index.js 4.8 MB

12
  1. /*! For license information please see index.js.LICENSE.txt */
  2. (()=>{var e={64353:(e,t,r)=>{"use strict";r.d(t,{Sg:()=>s,zt:()=>u});var n=r(2593),i=r(53587),o=r(80711);const a=new o.Logger("abstract-provider/5.7.0");class s extends i.dk{static isForkEvent(e){return!(!e||!e._isForkEvent)}}class u{constructor(){a.checkAbstract(new.target,u),(0,i.zG)(this,"_isProvider",!0)}getFeeData(){return e=this,t=void 0,o=function*(){const{block:e,gasPrice:t}=yield(0,i.mE)({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch((e=>null))});let r=null,o=null,a=null;return e&&e.baseFeePerGas&&(r=e.baseFeePerGas,a=n.O$.from("1500000000"),o=e.baseFeePerGas.mul(2).add(a)),{lastBaseFeePerGas:r,maxFeePerGas:o,maxPriorityFeePerGas:a,gasPrice:t}},new((r=void 0)||(r=Promise))((function(n,i){function a(e){try{u(o.next(e))}catch(e){i(e)}}function s(e){try{u(o.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((o=o.apply(e,t||[])).next())}));var e,t,r,o}addListener(e,t){return this.on(e,t)}removeListener(e,t){return this.off(e,t)}static isProvider(e){return!(!e||!e._isProvider)}}},48171:(e,t,r)=>{"use strict";r.d(t,{E:()=>c,b:()=>f});var n=r(53587),i=r(80711),o=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))};const a=new i.Logger("abstract-signer/5.7.0"),s=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],u=[i.Logger.errors.INSUFFICIENT_FUNDS,i.Logger.errors.NONCE_EXPIRED,i.Logger.errors.REPLACEMENT_UNDERPRICED];class c{constructor(){a.checkAbstract(new.target,c),(0,n.zG)(this,"_isSigner",!0)}getBalance(e){return o(this,void 0,void 0,(function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),e)}))}getTransactionCount(e){return o(this,void 0,void 0,(function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),e)}))}estimateGas(e){return o(this,void 0,void 0,(function*(){this._checkProvider("estimateGas");const t=yield(0,n.mE)(this.checkTransaction(e));return yield this.provider.estimateGas(t)}))}call(e,t){return o(this,void 0,void 0,(function*(){this._checkProvider("call");const r=yield(0,n.mE)(this.checkTransaction(e));return yield this.provider.call(r,t)}))}sendTransaction(e){return o(this,void 0,void 0,(function*(){this._checkProvider("sendTransaction");const t=yield this.populateTransaction(e),r=yield this.signTransaction(t);return yield this.provider.sendTransaction(r)}))}getChainId(){return o(this,void 0,void 0,(function*(){return this._checkProvider("getChainId"),(yield this.provider.getNetwork()).chainId}))}getGasPrice(){return o(this,void 0,void 0,(function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()}))}getFeeData(){return o(this,void 0,void 0,(function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()}))}resolveName(e){return o(this,void 0,void 0,(function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(e)}))}checkTransaction(e){for(const t in e)-1===s.indexOf(t)&&a.throwArgumentError("invalid transaction key: "+t,"transaction",e);const t=(0,n.DC)(e);return null==t.from?t.from=this.getAddress():t.from=Promise.all([Promise.resolve(t.from),this.getAddress()]).then((t=>(t[0].toLowerCase()!==t[1].toLowerCase()&&a.throwArgumentError("from address mismatch","transaction",e),t[0]))),t}populateTransaction(e){return o(this,void 0,void 0,(function*(){const t=yield(0,n.mE)(this.checkTransaction(e));null!=t.to&&(t.to=Promise.resolve(t.to).then((e=>o(this,void 0,void 0,(function*(){if(null==e)return null;const t=yield this.resolveName(e);return null==t&&a.throwArgumentError("provided ENS name resolves to null","tx.to",e),t})))),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",i.Logger.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),null==t.gasPrice&&(t.gasPrice=e.gasPrice),t.type=0):a.throwError("failed to get consistent fee data",i.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(u.indexOf(e.code)>=0)throw e;return a.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",i.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(0,n.mE)(t)}))}_checkProvider(e){this.provider||a.throwError("missing provider",i.Logger.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}static isSigner(e){return!(!e||!e._isSigner)}}class f extends c{constructor(e,t){super(),(0,n.zG)(this,"address",e),(0,n.zG)(this,"provider",t||null)}getAddress(){return Promise.resolve(this.address)}_fail(e,t){return Promise.resolve().then((()=>{a.throwError(e,i.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 f(this.address,e)}}},64594:(e,t,r)=>{"use strict";r.d(t,{getAddress:()=>h,getContractAddress:()=>y,getCreate2Address:()=>g,getIcapAddress:()=>b,isAddress:()=>p});var n=r(93286),i=r(2593),o=r(38197),a=r(61843);const s=new(r(80711).Logger)("address/5.7.0");function u(e){(0,n.isHexString)(e,20)||s.throwArgumentError("invalid address","address",e);const t=(e=e.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let e=0;e<40;e++)r[e]=t[e].charCodeAt(0);const i=(0,n.arrayify)((0,o.keccak256)(r));for(let e=0;e<40;e+=2)i[e>>1]>>4>=8&&(t[e]=t[e].toUpperCase()),(15&i[e>>1])>=8&&(t[e+1]=t[e+1].toUpperCase());return"0x"+t.join("")}const c={};for(let e=0;e<10;e++)c[String(e)]=String(e);for(let e=0;e<26;e++)c[String.fromCharCode(65+e)]=String(10+e);const f=Math.floor((l=9007199254740991,Math.log10?Math.log10(l):Math.log(l)/Math.LN10));var l;function d(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map((e=>c[e])).join("");for(;t.length>=f;){let e=t.substring(0,f);t=parseInt(e,10)%97+t.substring(e.length)}let r=String(98-parseInt(t,10)%97);for(;r.length<2;)r="0"+r;return r}function h(e){let t=null;if("string"!=typeof e&&s.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),t=u(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&s.throwArgumentError("bad address checksum","address",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==d(e)&&s.throwArgumentError("bad icap checksum","address",e),t=(0,i.g$)(e.substring(4));t.length<40;)t="0"+t;t=u("0x"+t)}else s.throwArgumentError("invalid address","address",e);return t}function p(e){try{return h(e),!0}catch(e){}return!1}function b(e){let t=(0,i.t2)(h(e).substring(2)).toUpperCase();for(;t.length<30;)t="0"+t;return"XE"+d("XE00"+t)+t}function y(e){let t=null;try{t=h(e.from)}catch(t){s.throwArgumentError("missing from address","transaction",e)}const r=(0,n.stripZeros)((0,n.arrayify)(i.O$.from(e.nonce).toHexString()));return h((0,n.hexDataSlice)((0,o.keccak256)((0,a.encode)([t,r])),12))}function g(e,t,r){return 32!==(0,n.hexDataLength)(t)&&s.throwArgumentError("salt must be 32 bytes","salt",t),32!==(0,n.hexDataLength)(r)&&s.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",r),h((0,n.hexDataSlice)((0,o.keccak256)((0,n.concat)(["0xff",h(e),t,r])),12))}},59567:(e,t,r)=>{"use strict";r.d(t,{J:()=>i,c:()=>o});var n=r(93286);function i(e){e=atob(e);const t=[];for(let r=0;r<e.length;r++)t.push(e.charCodeAt(r));return(0,n.arrayify)(t)}function o(e){e=(0,n.arrayify)(e);let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}},57727:(e,t,r)=>{"use strict";r.d(t,{eU:()=>a});var n=r(93286),i=r(53587);class o{constructor(e){(0,i.zG)(this,"alphabet",e),(0,i.zG)(this,"base",e.length),(0,i.zG)(this,"_alphabetMap",{}),(0,i.zG)(this,"_leader",e.charAt(0));for(let t=0;t<e.length;t++)this._alphabetMap[e.charAt(t)]=t}encode(e){let t=(0,n.arrayify)(e);if(0===t.length)return"";let r=[0];for(let e=0;e<t.length;++e){let n=t[e];for(let e=0;e<r.length;++e)n+=r[e]<<8,r[e]=n%this.base,n=n/this.base|0;for(;n>0;)r.push(n%this.base),n=n/this.base|0}let i="";for(let e=0;0===t[e]&&e<t.length-1;++e)i+=this._leader;for(let e=r.length-1;e>=0;--e)i+=this.alphabet[r[e]];return i}decode(e){if("string"!=typeof e)throw new TypeError("Expected String");let t=[];if(0===e.length)return new Uint8Array(t);t.push(0);for(let r=0;r<e.length;r++){let n=this._alphabetMap[e[r]];if(void 0===n)throw new Error("Non-base"+this.base+" character");let i=n;for(let e=0;e<t.length;++e)i+=t[e]*this.base,t[e]=255&i,i>>=8;for(;i>0;)t.push(255&i),i>>=8}for(let r=0;e[r]===this._leader&&r<e.length-1;++r)t.push(0);return(0,n.arrayify)(new Uint8Array(t.reverse()))}}new o("abcdefghijklmnopqrstuvwxyz234567");const a=new o("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},48794:(e,t,r)=>{"use strict";r.d(t,{i:()=>n});const n="bignumber/5.7.0"},2593:(e,t,r)=>{"use strict";r.d(t,{O$:()=>p,Zm:()=>d,g$:()=>v,t2:()=>w});var n=r(13550),i=r.n(n),o=r(93286),a=r(80711),s=r(48794),u=i().BN;const c=new a.Logger(s.i),f={},l=9007199254740991;function d(e){return null!=e&&(p.isBigNumber(e)||"number"==typeof e&&e%1==0||"string"==typeof e&&!!e.match(/^-?[0-9]+$/)||(0,o.isHexString)(e)||"bigint"==typeof e||(0,o.isBytes)(e))}let h=!1;class p{constructor(e,t){e!==f&&c.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 y(g(this).fromTwos(e))}toTwos(e){return y(g(this).toTwos(e))}abs(){return"-"===this._hex[0]?p.from(this._hex.substring(1)):this}add(e){return y(g(this).add(g(e)))}sub(e){return y(g(this).sub(g(e)))}div(e){return p.from(e).isZero()&&m("division-by-zero","div"),y(g(this).div(g(e)))}mul(e){return y(g(this).mul(g(e)))}mod(e){const t=g(e);return t.isNeg()&&m("division-by-zero","mod"),y(g(this).umod(t))}pow(e){const t=g(e);return t.isNeg()&&m("negative-power","pow"),y(g(this).pow(t))}and(e){const t=g(e);return(this.isNegative()||t.isNeg())&&m("unbound-bitwise-result","and"),y(g(this).and(t))}or(e){const t=g(e);return(this.isNegative()||t.isNeg())&&m("unbound-bitwise-result","or"),y(g(this).or(t))}xor(e){const t=g(e);return(this.isNegative()||t.isNeg())&&m("unbound-bitwise-result","xor"),y(g(this).xor(t))}mask(e){return(this.isNegative()||e<0)&&m("negative-width","mask"),y(g(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&m("negative-width","shl"),y(g(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&m("negative-width","shr"),y(g(this).shrn(e))}eq(e){return g(this).eq(g(e))}lt(e){return g(this).lt(g(e))}lte(e){return g(this).lte(g(e))}gt(e){return g(this).gt(g(e))}gte(e){return g(this).gte(g(e))}isNegative(){return"-"===this._hex[0]}isZero(){return g(this).isZero()}toNumber(){try{return g(this).toNumber()}catch(e){m("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(e){}return c.throwError("this platform does not support BigInt",a.Logger.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?h||(h=!0,c.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?c.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",a.Logger.errors.UNEXPECTED_ARGUMENT,{}):c.throwError("BigNumber.toString does not accept parameters",a.Logger.errors.UNEXPECTED_ARGUMENT,{})),g(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof p)return e;if("string"==typeof e)return e.match(/^-?0x[0-9a-f]+$/i)?new p(f,b(e)):e.match(/^-?[0-9]+$/)?new p(f,b(new u(e))):c.throwArgumentError("invalid BigNumber string","value",e);if("number"==typeof e)return e%1&&m("underflow","BigNumber.from",e),(e>=l||e<=-l)&&m("overflow","BigNumber.from",e),p.from(String(e));const t=e;if("bigint"==typeof t)return p.from(t.toString());if((0,o.isBytes)(t))return p.from((0,o.hexlify)(t));if(t)if(t.toHexString){const e=t.toHexString();if("string"==typeof e)return p.from(e)}else{let e=t._hex;if(null==e&&"BigNumber"===t.type&&(e=t.hex),"string"==typeof e&&((0,o.isHexString)(e)||"-"===e[0]&&(0,o.isHexString)(e.substring(1))))return p.from(e)}return c.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!(!e||!e._isBigNumber)}}function b(e){if("string"!=typeof e)return b(e.toString(16));if("-"===e[0])return"-"===(e=e.substring(1))[0]&&c.throwArgumentError("invalid hex","value",e),"0x00"===(e=b(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 y(e){return p.from(b(e))}function g(e){const t=p.from(e).toHexString();return"-"===t[0]?new u("-"+t.substring(3),16):new u(t.substring(2),16)}function m(e,t,r){const n={fault:e,operation:t};return null!=r&&(n.value=r),c.throwError(e,a.Logger.errors.NUMERIC_FAULT,n)}function v(e){return new u(e,36).toString(16)}function w(e){return new u(e,16).toString(36)}},20335:(e,t,r)=>{"use strict";r.d(t,{Ox:()=>b,S5:()=>p,xs:()=>g});var n=r(93286),i=r(80711),o=r(48794),a=r(2593);const s=new i.Logger(o.i),u={},c=a.O$.from(0),f=a.O$.from(-1);function l(e,t,r,n){const o={fault:t,operation:r};return void 0!==n&&(o.value=n),s.throwError(e,i.Logger.errors.NUMERIC_FAULT,o)}let d="0";for(;d.length<256;)d+=d;function h(e){if("number"!=typeof e)try{e=a.O$.from(e).toNumber()}catch(e){}return"number"==typeof e&&e>=0&&e<=256&&!(e%1)?"1"+d.substring(0,e):s.throwArgumentError("invalid decimal size","decimals",e)}function p(e,t){null==t&&(t=0);const r=h(t),n=(e=a.O$.from(e)).lt(c);n&&(e=e.mul(f));let i=e.mod(r).toString();for(;i.length<r.length-1;)i="0"+i;i=i.match(/^([0-9]*[1-9]|0)(0*)/)[1];const o=e.div(r).toString();return e=1===r.length?o:o+"."+i,n&&(e="-"+e),e}function b(e,t){null==t&&(t=0);const r=h(t);"string"==typeof e&&e.match(/^-?[0-9.]+$/)||s.throwArgumentError("invalid decimal value","value",e);const n="-"===e.substring(0,1);n&&(e=e.substring(1)),"."===e&&s.throwArgumentError("missing value","value",e);const i=e.split(".");i.length>2&&s.throwArgumentError("too many decimal points","value",e);let o=i[0],u=i[1];for(o||(o="0"),u||(u="0");"0"===u[u.length-1];)u=u.substring(0,u.length-1);for(u.length>r.length-1&&l("fractional component exceeds decimals","underflow","parseFixed"),""===u&&(u="0");u.length<r.length-1;)u+="0";const c=a.O$.from(o),d=a.O$.from(u);let p=c.mul(r).add(d);return n&&(p=p.mul(f)),p}class y{constructor(e,t,r,n){e!==u&&s.throwError("cannot use FixedFormat constructor; use FixedFormat.from",i.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.signed=t,this.width=r,this.decimals=n,this.name=(t?"":"u")+"fixed"+String(r)+"x"+String(n),this._multiplier=h(n),Object.freeze(this)}static from(e){if(e instanceof y)return e;"number"==typeof e&&(e=`fixed128x${e}`);let t=!0,r=128,n=18;if("string"==typeof e)if("fixed"===e);else if("ufixed"===e)t=!1;else{const i=e.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);i||s.throwArgumentError("invalid fixed format","format",e),t="u"!==i[1],r=parseInt(i[2]),n=parseInt(i[3])}else if(e){const i=(t,r,n)=>null==e[t]?n:(typeof e[t]!==r&&s.throwArgumentError("invalid fixed format ("+t+" not "+r+")","format."+t,e[t]),e[t]);t=i("signed","boolean",t),r=i("width","number",r),n=i("decimals","number",n)}return r%8&&s.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",r),n>80&&s.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",n),new y(u,t,r,n)}}class g{constructor(e,t,r,n){e!==u&&s.throwError("cannot use FixedNumber constructor; use FixedNumber.from",i.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=n,this._hex=t,this._value=r,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(e){this.format.name!==e.format.name&&s.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}addUnsafe(e){this._checkFormat(e);const t=b(this._value,this.format.decimals),r=b(e._value,e.format.decimals);return g.fromValue(t.add(r),this.format.decimals,this.format)}subUnsafe(e){this._checkFormat(e);const t=b(this._value,this.format.decimals),r=b(e._value,e.format.decimals);return g.fromValue(t.sub(r),this.format.decimals,this.format)}mulUnsafe(e){this._checkFormat(e);const t=b(this._value,this.format.decimals),r=b(e._value,e.format.decimals);return g.fromValue(t.mul(r).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(e){this._checkFormat(e);const t=b(this._value,this.format.decimals),r=b(e._value,e.format.decimals);return g.fromValue(t.mul(this.format._multiplier).div(r),this.format.decimals,this.format)}floor(){const e=this.toString().split(".");1===e.length&&e.push("0");let t=g.from(e[0],this.format);const r=!e[1].match(/^(0*)$/);return this.isNegative()&&r&&(t=t.subUnsafe(m.toFormat(t.format))),t}ceiling(){const e=this.toString().split(".");1===e.length&&e.push("0");let t=g.from(e[0],this.format);const r=!e[1].match(/^(0*)$/);return!this.isNegative()&&r&&(t=t.addUnsafe(m.toFormat(t.format))),t}round(e){null==e&&(e=0);const t=this.toString().split(".");if(1===t.length&&t.push("0"),(e<0||e>80||e%1)&&s.throwArgumentError("invalid decimal count","decimals",e),t[1].length<=e)return this;const r=g.from("1"+d.substring(0,e),this.format),n=v.toFormat(this.format);return this.mulUnsafe(r).addUnsafe(n).floor().divUnsafe(r)}isZero(){return"0.0"===this._value||"0"===this._value}isNegative(){return"-"===this._value[0]}toString(){return this._value}toHexString(e){if(null==e)return this._hex;e%8&&s.throwArgumentError("invalid byte width","width",e);const t=a.O$.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return(0,n.hexZeroPad)(t,e/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return g.fromString(this._value,e)}static fromValue(e,t,r){return null!=r||null==t||(0,a.Zm)(t)||(r=t,t=null),null==t&&(t=0),null==r&&(r="fixed"),g.fromString(p(e,t),y.from(r))}static fromString(e,t){null==t&&(t="fixed");const r=y.from(t),i=b(e,r.decimals);!r.signed&&i.lt(c)&&l("unsigned value cannot be negative","overflow","value",e);let o=null;r.signed?o=i.toTwos(r.width).toHexString():(o=i.toHexString(),o=(0,n.hexZeroPad)(o,r.width/8));const a=p(i,r.decimals);return new g(u,o,a,r)}static fromBytes(e,t){null==t&&(t="fixed");const r=y.from(t);if((0,n.arrayify)(e).length>r.width/8)throw new Error("overflow");let i=a.O$.from(e);r.signed&&(i=i.fromTwos(r.width));const o=i.toTwos((r.signed?0:1)+r.width).toHexString(),s=p(i,r.decimals);return new g(u,o,s,r)}static from(e,t){if("string"==typeof e)return g.fromString(e,t);if((0,n.isBytes)(e))return g.fromBytes(e,t);try{return g.fromValue(e,0,t)}catch(e){if(e.code!==i.Logger.errors.INVALID_ARGUMENT)throw e}return s.throwArgumentError("invalid FixedNumber value","value",e)}static isFixedNumber(e){return!(!e||!e._isFixedNumber)}}const m=g.from(1),v=g.from("0.5")},93286:(e,t,r)=>{"use strict";r.d(t,{arrayify:()=>c,concat:()=>f,hexConcat:()=>m,hexDataLength:()=>y,hexDataSlice:()=>g,hexStripZeros:()=>w,hexValue:()=>v,hexZeroPad:()=>_,hexlify:()=>b,isBytes:()=>u,isBytesLike:()=>a,isHexString:()=>h,joinSignature:()=>O,splitSignature:()=>x,stripZeros:()=>l,zeroPad:()=>d});const n=new(r(80711).Logger)("bytes/5.7.0");function i(e){return!!e.toHexString}function o(e){return e.slice||(e.slice=function(){const t=Array.prototype.slice.call(arguments);return o(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function a(e){return h(e)&&!(e.length%2)||u(e)}function s(e){return"number"==typeof e&&e==e&&e%1==0}function u(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"==typeof e)return!1;if(!s(e.length)||e.length<0)return!1;for(let t=0;t<e.length;t++){const r=e[t];if(!s(r)||r<0||r>=256)return!1}return!0}function c(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),o(new Uint8Array(t))}if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),i(e)&&(e=e.toHexString()),h(e)){let r=e.substring(2);r.length%2&&("left"===t.hexPad?r="0"+r:"right"===t.hexPad?r+="0":n.throwArgumentError("hex data is odd-length","value",e));const i=[];for(let e=0;e<r.length;e+=2)i.push(parseInt(r.substring(e,e+2),16));return o(new Uint8Array(i))}return u(e)?o(new Uint8Array(e)):n.throwArgumentError("invalid arrayify value","value",e)}function f(e){const t=e.map((e=>c(e))),r=t.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(r);return t.reduce(((e,t)=>(n.set(t,e),e+t.length)),0),o(n)}function l(e){let t=c(e);if(0===t.length)return t;let r=0;for(;r<t.length&&0===t[r];)r++;return r&&(t=t.slice(r)),t}function d(e,t){(e=c(e)).length>t&&n.throwArgumentError("value out of range","value",arguments[0]);const r=new Uint8Array(t);return r.set(e,t-e.length),o(r)}function h(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}const p="0123456789abcdef";function b(e,t){if(t||(t={}),"number"==typeof e){n.checkSafeUint53(e,"invalid hexlify value");let t="";for(;e;)t=p[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),i(e))return e.toHexString();if(h(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(u(e)){let t="0x";for(let r=0;r<e.length;r++){let n=e[r];t+=p[(240&n)>>4]+p[15&n]}return t}return n.throwArgumentError("invalid hexlify value","value",e)}function y(e){if("string"!=typeof e)e=b(e);else if(!h(e)||e.length%2)return null;return(e.length-2)/2}function g(e,t,r){return"string"!=typeof e?e=b(e):(!h(e)||e.length%2)&&n.throwArgumentError("invalid hexData","value",e),t=2+2*t,null!=r?"0x"+e.substring(t,2+2*r):"0x"+e.substring(t)}function m(e){let t="0x";return e.forEach((e=>{t+=b(e).substring(2)})),t}function v(e){const t=w(b(e,{hexPad:"left"}));return"0x"===t?"0x0":t}function w(e){"string"!=typeof e&&(e=b(e)),h(e)||n.throwArgumentError("invalid hex string","value",e),e=e.substring(2);let t=0;for(;t<e.length&&"0"===e[t];)t++;return"0x"+e.substring(t)}function _(e,t){for("string"!=typeof e?e=b(e):h(e)||n.throwArgumentError("invalid hex string","value",e),e.length>2*t+2&&n.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function x(e){const t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(a(e)){let r=c(e);64===r.length?(t.v=27+(r[32]>>7),r[32]&=127,t.r=b(r.slice(0,32)),t.s=b(r.slice(32,64))):65===r.length?(t.r=b(r.slice(0,32)),t.s=b(r.slice(32,64)),t.v=r[64]):n.throwArgumentError("invalid signature string","signature",e),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=b(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=d(c(t._vs),32);t._vs=b(r);const i=r[0]>=128?1:0;null==t.recoveryParam?t.recoveryParam=i:t.recoveryParam!==i&&n.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),r[0]&=127;const o=b(r);null==t.s?t.s=o:t.s!==o&&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&&h(t.r)?t.r=_(t.r,32):n.throwArgumentError("signature missing or invalid r","signature",e),null!=t.s&&h(t.s)?t.s=_(t.s,32):n.throwArgumentError("signature missing or invalid s","signature",e);const r=c(t.s);r[0]>=128&&n.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(r[0]|=128);const i=b(r);t._vs&&(h(t._vs)||n.throwArgumentError("signature invalid _vs","signature",e),t._vs=_(t._vs,32)),null==t._vs?t._vs=i:t._vs!==i&&n.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t.yParityAndS=t._vs,t.compact=t.r+t.yParityAndS.substring(2),t}function O(e){return b(f([(e=x(e)).r,e.s,e.recoveryParam?"0x1c":"0x1b"]))}},9279:(e,t,r)=>{"use strict";r.d(t,{d:()=>n});const n="0x0000000000000000000000000000000000000000"},21046:(e,t,r)=>{"use strict";r.d(t,{$B:()=>f,Bz:()=>c,Ce:()=>u,PS:()=>l,Py:()=>s,_Y:()=>o,fh:()=>a,tL:()=>i});var n=r(2593);const i=n.O$.from(-1),o=n.O$.from(0),a=n.O$.from(1),s=n.O$.from(2),u=n.O$.from("1000000000000000000"),c=n.O$.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),f=n.O$.from("-0x8000000000000000000000000000000000000000000000000000000000000000"),l=n.O$.from("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")},57218:(e,t,r)=>{"use strict";r.d(t,{R:()=>n});const n="0x0000000000000000000000000000000000000000000000000000000000000000"},35644:(e,t,r)=>{"use strict";r.d(t,{i:()=>n});const n="hash/5.7.0"},32046:(e,t,r)=>{"use strict";r.d(t,{id:()=>o});var n=r(38197),i=r(44242);function o(e){return(0,n.keccak256)((0,i.Y0)(e))}},93684:(e,t,r)=>{"use strict";r.d(t,{r:()=>s});var n=r(93286),i=r(38197),o=r(44242);const a="Ethereum Signed Message:\n";function s(e){return"string"==typeof e&&(e=(0,o.Y0)(e)),(0,i.keccak256)((0,n.concat)([(0,o.Y0)(a),(0,o.Y0)(String(e.length)),e]))}},78339:(e,t,r)=>{"use strict";r.d(t,{Kn:()=>I,r1:()=>T,VM:()=>B});var n=r(93286),i=r(44242),o=r(38197),a=r(80711),s=r(35644);function u(e,t){null==t&&(t=1);const r=[],n=r.forEach,i=function(e,t){n.call(e,(function(e){t>0&&Array.isArray(e)?i(e,t-1):r.push(e)}))};return i(e,t),r}function c(e){return 1&e?~e>>1:e>>1}function f(e,t){let r=Array(e);for(let n=0,i=-1;n<e;n++)r[n]=i+=1+t();return r}function l(e,t){let r=Array(e);for(let n=0,i=0;n<e;n++)r[n]=i+=c(t());return r}function d(e,t){let r=f(e(),e),n=e(),i=f(n,e),o=function(e,t){let r=Array(e);for(let n=0;n<e;n++)r[n]=1+t();return r}(n,e);for(let e=0;e<n;e++)for(let t=0;t<o[e];t++)r.push(i[e]+t);return t?r.map((e=>t[e])):r}function h(e,t,r){let n=Array(e).fill(void 0).map((()=>[]));for(let i=0;i<t;i++)l(e,r).forEach(((e,t)=>n[t].push(e)));return n}function p(e,t){let r=1+t(),n=t(),i=function(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(r)}return t}(t);return u(h(i.length,1+e,t).map(((e,t)=>{const o=e[0],a=e.slice(1);return Array(i[t]).fill(void 0).map(((e,t)=>{let i=t*n;return[o+t*r,a.map((e=>e+i))]}))})))}function b(e,t){return h(1+t(),1+e,t).map((e=>[e[0],e.slice(1)]))}const y=function(e){let t=0;return()=>e[t++]}(function(e){let t=0;function r(){return e[t++]<<8|e[t++]}let n=r(),i=1,o=[0,1];for(let e=1;e<n;e++)o.push(i+=r());let a=r(),s=t;t+=a;let u=0,c=0;function f(){return 0==u&&(c=c<<8|e[t++],u=8),c>>--u&1}const l=Math.pow(2,31),d=l>>>1,h=d>>1,p=l-1;let b=0;for(let e=0;e<31;e++)b=b<<1|f();let y=[],g=0,m=l;for(;;){let e=Math.floor(((b-g+1)*i-1)/m),t=0,r=n;for(;r-t>1;){let n=t+r>>>1;e<o[n]?r=n:t=n}if(0==t)break;y.push(t);let a=g+Math.floor(m*o[t]/i),s=g+Math.floor(m*o[t+1]/i)-1;for(;0==((a^s)&d);)b=b<<1&p|f(),a=a<<1&p,s=s<<1&p|1;for(;a&~s&h;)b=b&d|b<<1&p>>>1|f(),a=a<<1^d,s=(s^d)<<1|d|1;g=a,m=1+s-a}let v=n-4;return y.map((t=>{switch(t-v){case 3:return v+65792+(e[s++]<<16|e[s++]<<8|e[s++]);case 2:return v+256+(e[s++]<<8|e[s++]);case 1:return v+e[s++];default:return t-1}}))}((0,r(59567).J)("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"))),g=new Set(d(y)),m=new Set(d(y)),v=function(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(p(r,e))}for(;;){let r=e()-1;if(r<0)break;t.push(b(r,e))}return function(e){const t={};for(let r=0;r<e.length;r++){const n=e[r];t[n[0]]=n[1]}return t}(u(t))}(y),w=function(e){let t=d(e).sort(((e,t)=>e-t));return function r(){let n=[];for(;;){let i=d(e,t);if(0==i.length)break;n.push({set:new Set(i),node:r()})}n.sort(((e,t)=>t.set.size-e.set.size));let i=e(),o=i%3;i=i/3|0;let a=!!(1&i);return i>>=1,{branches:n,valid:o,fe0f:a,save:1==i,check:2==i}}()}(y),_=45,x=95;function O(e){return(0,i.XL)(e)}function k(e){return e.filter((e=>65039!=e))}function P(e){for(let t of e.split(".")){let e=O(t);try{for(let t=e.lastIndexOf(x)-1;t>=0;t--)if(e[t]!==x)throw new Error("underscore only allowed at start");if(e.length>=4&&e.every((e=>e<128))&&e[2]===_&&e[3]===_)throw new Error("invalid label extension")}catch(e){throw new Error(`Invalid label "${t}": ${e.message}`)}}return e}function S(e,t){var r;let n,i,o=w,a=[],s=e.length;for(t&&(t.length=0);s;){let u=e[--s];if(o=null===(r=o.branches.find((e=>e.set.has(u))))||void 0===r?void 0:r.node,!o)break;if(o.save)i=u;else if(o.check&&u===i)break;a.push(u),o.fe0f&&(a.push(65039),s>0&&65039==e[s-1]&&s--),o.valid&&(n=a.slice(),2==o.valid&&n.splice(1,1),t&&t.push(...e.slice(s).reverse()),e.length=s)}return n}const A=new a.Logger(s.i),E=new Uint8Array(32);function M(e){if(0===e.length)throw new Error("invalid ENS name; empty component");return e}function j(e){const t=(0,i.Y0)(function(e){return P(function(e,t){let r=O(e).reverse(),n=[];for(;r.length;){let e=S(r);if(e){n.push(...t(e));continue}let i=r.pop();if(g.has(i)){n.push(i);continue}if(m.has(i))continue;let o=v[i];if(!o)throw new Error(`Disallowed codepoint: 0x${i.toString(16).toUpperCase()}`);n.push(...o)}return P(String.fromCodePoint(...n).normalize("NFC"))}(e,k))}(e)),r=[];if(0===e.length)return r;let n=0;for(let e=0;e<t.length;e++)46===t[e]&&(r.push(M(t.slice(n,e))),n=e+1);if(n>=t.length)throw new Error("invalid ENS name; empty component");return r.push(M(t.slice(n))),r}function T(e){try{return 0!==j(e).length}catch(e){}return!1}function B(e){"string"!=typeof e&&A.throwArgumentError("invalid ENS name; not a string","name",e);let t=E;const r=j(e);for(;r.length;)t=(0,o.keccak256)((0,n.concat)([t,(0,o.keccak256)(r.pop())]));return(0,n.hexlify)(t)}function I(e){return(0,n.hexlify)((0,n.concat)(j(e).map((e=>{if(e.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");const t=new Uint8Array(e.length+1);return t.set(e,1),t[0]=t.length-1,t}))))+"00"}E.fill(0)},67827:(e,t,r)=>{"use strict";r.d(t,{E:()=>P});var n=r(64594),i=r(2593),o=r(93286),a=r(38197),s=r(53587),u=r(80711),c=r(35644),f=r(32046);const l=new u.Logger(c.i),d=new Uint8Array(32);d.fill(0);const h=i.O$.from(-1),p=i.O$.from(0),b=i.O$.from(1),y=i.O$.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),g=(0,o.hexZeroPad)(b.toHexString(),32),m=(0,o.hexZeroPad)(p.toHexString(),32),v={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},w=["name","version","chainId","verifyingContract","salt"];function _(e){return function(t){return"string"!=typeof t&&l.throwArgumentError(`invalid domain value for ${JSON.stringify(e)}`,`domain.${e}`,t),t}}const x={name:_("name"),version:_("version"),chainId:function(e){try{return i.O$.from(e).toString()}catch(e){}return l.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",e)},verifyingContract:function(e){try{return(0,n.getAddress)(e).toLowerCase()}catch(e){}return l.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){try{const t=(0,o.arrayify)(e);if(32!==t.length)throw new Error("bad length");return(0,o.hexlify)(t)}catch(e){}return l.throwArgumentError('invalid domain value "salt"',"domain.salt",e)}};function O(e){{const t=e.match(/^(u?)int(\d*)$/);if(t){const r=""===t[1],n=parseInt(t[2]||"256");(n%8!=0||n>256||t[2]&&t[2]!==String(n))&&l.throwArgumentError("invalid numeric width","type",e);const a=y.mask(r?n-1:n),s=r?a.add(b).mul(h):p;return function(t){const r=i.O$.from(t);return(r.lt(s)||r.gt(a))&&l.throwArgumentError(`value out-of-bounds for ${e}`,"value",t),(0,o.hexZeroPad)(r.toTwos(256).toHexString(),32)}}}{const t=e.match(/^bytes(\d+)$/);if(t){const r=parseInt(t[1]);return(0===r||r>32||t[1]!==String(r))&&l.throwArgumentError("invalid bytes width","type",e),function(t){return(0,o.arrayify)(t).length!==r&&l.throwArgumentError(`invalid length for ${e}`,"value",t),function(e){const t=(0,o.arrayify)(e),r=t.length%32;return r?(0,o.hexConcat)([t,d.slice(r)]):(0,o.hexlify)(t)}(t)}}}switch(e){case"address":return function(e){return(0,o.hexZeroPad)((0,n.getAddress)(e),32)};case"bool":return function(e){return e?g:m};case"bytes":return function(e){return(0,a.keccak256)(e)};case"string":return function(e){return(0,f.id)(e)}}return null}function k(e,t){return`${e}(${t.map((({name:e,type:t})=>t+" "+e)).join(",")})`}class P{constructor(e){(0,s.zG)(this,"types",Object.freeze((0,s.p$)(e))),(0,s.zG)(this,"_encoderCache",{}),(0,s.zG)(this,"_types",{});const t={},r={},n={};Object.keys(e).forEach((e=>{t[e]={},r[e]=[],n[e]={}}));for(const n in e){const i={};e[n].forEach((o=>{i[o.name]&&l.throwArgumentError(`duplicate variable name ${JSON.stringify(o.name)} in ${JSON.stringify(n)}`,"types",e),i[o.name]=!0;const a=o.type.match(/^([^\x5b]*)(\x5b|$)/)[1];a===n&&l.throwArgumentError(`circular type reference to ${JSON.stringify(a)}`,"types",e),O(a)||(r[a]||l.throwArgumentError(`unknown type ${JSON.stringify(a)}`,"types",e),r[a].push(n),t[n][a]=!0)}))}const i=Object.keys(r).filter((e=>0===r[e].length));0===i.length?l.throwArgumentError("missing primary type","types",e):i.length>1&&l.throwArgumentError(`ambiguous primary types or unused types: ${i.map((e=>JSON.stringify(e))).join(", ")}`,"types",e),(0,s.zG)(this,"primaryType",i[0]),function i(o,a){a[o]&&l.throwArgumentError(`circular type reference to ${JSON.stringify(o)}`,"types",e),a[o]=!0,Object.keys(t[o]).forEach((e=>{r[e]&&(i(e,a),Object.keys(a).forEach((t=>{n[t][e]=!0})))})),delete a[o]}(this.primaryType,{});for(const t in n){const r=Object.keys(n[t]);r.sort(),this._types[t]=k(t,e[t])+r.map((t=>k(t,e[t]))).join("")}}getEncoder(e){let t=this._encoderCache[e];return t||(t=this._encoderCache[e]=this._getEncoder(e)),t}_getEncoder(e){{const t=O(e);if(t)return t}const t=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(t){const e=t[1],r=this.getEncoder(e),n=parseInt(t[3]);return t=>{n>=0&&t.length!==n&&l.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t);let i=t.map(r);return this._types[e]&&(i=i.map(a.keccak256)),(0,a.keccak256)((0,o.hexConcat)(i))}}const r=this.types[e];if(r){const t=(0,f.id)(this._types[e]);return e=>{const n=r.map((({name:t,type:r})=>{const n=this.getEncoder(r)(e[t]);return this._types[r]?(0,a.keccak256)(n):n}));return n.unshift(t),(0,o.hexConcat)(n)}}return l.throwArgumentError(`unknown type: ${e}`,"type",e)}encodeType(e){const t=this._types[e];return t||l.throwArgumentError(`unknown type: ${JSON.stringify(e)}`,"name",e),t}encodeData(e,t){return this.getEncoder(e)(t)}hashStruct(e,t){return(0,a.keccak256)(this.encodeData(e,t))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,t,r){if(O(e))return r(e,t);const n=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(n){const e=n[1],i=parseInt(n[3]);return i>=0&&t.length!==i&&l.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t),t.map((t=>this._visit(e,t,r)))}const i=this.types[e];return i?i.reduce(((e,{name:n,type:i})=>(e[n]=this._visit(i,t[n],r),e)),{}):l.throwArgumentError(`unknown type: ${e}`,"type",e)}visit(e,t){return this._visit(this.primaryType,e,t)}static from(e){return new P(e)}static getPrimaryType(e){return P.from(e).primaryType}static hashStruct(e,t,r){return P.from(t).hashStruct(e,r)}static hashDomain(e){const t=[];for(const r in e){const n=v[r];n||l.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(r)}`,"domain",e),t.push({name:r,type:n})}return t.sort(((e,t)=>w.indexOf(e.name)-w.indexOf(t.name))),P.hashStruct("EIP712Domain",{EIP712Domain:t},e)}static encode(e,t,r){return(0,o.hexConcat)(["0x1901",P.hashDomain(e),P.from(t).hash(r)])}static hash(e,t,r){return(0,a.keccak256)(P.encode(e,t,r))}static resolveNames(e,t,r,n){return i=this,a=void 0,c=function*(){e=(0,s.DC)(e);const i={};e.verifyingContract&&!(0,o.isHexString)(e.verifyingContract,20)&&(i[e.verifyingContract]="0x");const a=P.from(t);a.visit(r,((e,t)=>("address"!==e||(0,o.isHexString)(t,20)||(i[t]="0x"),t)));for(const e in i)i[e]=yield n(e);return e.verifyingContract&&i[e.verifyingContract]&&(e.verifyingContract=i[e.verifyingContract]),r=a.visit(r,((e,t)=>"address"===e&&i[t]?i[t]:t)),{domain:e,value:r}},new((u=void 0)||(u=Promise))((function(e,t){function r(e){try{o(c.next(e))}catch(e){t(e)}}function n(e){try{o(c.throw(e))}catch(e){t(e)}}function o(t){var i;t.done?e(t.value):(i=t.value,i instanceof u?i:new u((function(e){e(i)}))).then(r,n)}o((c=c.apply(i,a||[])).next())}));var i,a,u,c}static getPayload(e,t,r){P.hashDomain(e);const n={},a=[];w.forEach((t=>{const r=e[t];null!=r&&(n[t]=x[t](r),a.push({name:t,type:v[t]}))}));const u=P.from(t),c=(0,s.DC)(t);return c.EIP712Domain?l.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",t):c.EIP712Domain=a,u.encode(r),{types:c,domain:n,primaryType:u.primaryType,message:u.visit(r,((e,t)=>{if(e.match(/^bytes(\d*)/))return(0,o.hexlify)((0,o.arrayify)(t));if(e.match(/^u?int/))return i.O$.from(t).toString();switch(e){case"address":return t.toLowerCase();case"bool":return!!t;case"string":return"string"!=typeof t&&l.throwArgumentError("invalid string","value",t),t}return l.throwArgumentError("unsupported type","type",e)}))}}}},36274:(e,t,r)=>{"use strict";r.d(t,{m$:()=>k,cD:()=>O,JJ:()=>A,ny:()=>M,xh:()=>E,oy:()=>S,OI:()=>P});var n=r(57727),i=r(93286),o=r(2593),a=r(44242),s=r(85306),u=r(53587),c=r(62768),f=r(23951),l=r(21261),d=r(64377),h=r(9855);const p=new(r(80711).Logger)("hdnode/5.7.0"),b=o.O$.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),y=(0,a.Y0)("Bitcoin seed"),g=2147483648;function m(e){return(1<<e)-1<<8-e}function v(e){return(0,i.hexZeroPad)((0,i.hexlify)(e),32)}function w(e){return n.eU.encode((0,i.concat)([e,(0,i.hexDataSlice)((0,f.JQ)((0,f.JQ)(e)),0,4)]))}function _(e){if(null==e)return h.E.en;if("string"==typeof e){const t=h.E[e];return null==t&&p.throwArgumentError("unknown locale","wordlist",e),t}return e}const x={},O="m/44'/60'/0'/0/0";class k{constructor(e,t,r,n,o,a,s,l){if(e!==x)throw new Error("HDNode constructor cannot be called directly");if(t){const e=new c.Et(t);(0,u.zG)(this,"privateKey",e.privateKey),(0,u.zG)(this,"publicKey",e.compressedPublicKey)}else(0,u.zG)(this,"privateKey",null),(0,u.zG)(this,"publicKey",(0,i.hexlify)(r));(0,u.zG)(this,"parentFingerprint",n),(0,u.zG)(this,"fingerprint",(0,i.hexDataSlice)((0,f.bP)((0,f.JQ)(this.publicKey)),0,4)),(0,u.zG)(this,"address",(0,d.db)(this.publicKey)),(0,u.zG)(this,"chainCode",o),(0,u.zG)(this,"index",a),(0,u.zG)(this,"depth",s),null==l?((0,u.zG)(this,"mnemonic",null),(0,u.zG)(this,"path",null)):"string"==typeof l?((0,u.zG)(this,"mnemonic",null),(0,u.zG)(this,"path",l)):((0,u.zG)(this,"mnemonic",l),(0,u.zG)(this,"path",l.path))}get extendedKey(){if(this.depth>=256)throw new Error("Depth too large!");return w((0,i.concat)([null!=this.privateKey?"0x0488ADE4":"0x0488B21E",(0,i.hexlify)(this.depth),this.parentFingerprint,(0,i.hexZeroPad)((0,i.hexlify)(this.index),4),this.chainCode,null!=this.privateKey?(0,i.concat)(["0x00",this.privateKey]):this.publicKey]))}neuter(){return new k(x,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 t=this.path;t&&(t+="/"+(e&~g));const r=new Uint8Array(37);if(e&g){if(!this.privateKey)throw new Error("cannot derive child of neutered node");r.set((0,i.arrayify)(this.privateKey),1),t&&(t+="'")}else r.set((0,i.arrayify)(this.publicKey));for(let t=24;t>=0;t-=8)r[33+(t>>3)]=e>>24-t&255;const n=(0,i.arrayify)((0,f.Gy)(l.p.sha512,this.chainCode,r)),a=n.slice(0,32),s=n.slice(32);let u=null,d=null;this.privateKey?u=v(o.O$.from(a).add(this.privateKey).mod(b)):d=new c.Et((0,i.hexlify)(a))._addPoint(this.publicKey);let h=t;const p=this.mnemonic;return p&&(h=Object.freeze({phrase:p.phrase,path:t,locale:p.locale||"en"})),new k(x,u,d,this.fingerprint,v(s),e,this.depth+1,h)}derivePath(e){const t=e.split("/");if(0===t.length||"m"===t[0]&&0!==this.depth)throw new Error("invalid path - "+e);"m"===t[0]&&t.shift();let r=this;for(let e=0;e<t.length;e++){const n=t[e];if(n.match(/^[0-9]+'$/)){const e=parseInt(n.substring(0,n.length-1));if(e>=g)throw new Error("invalid path index - "+n);r=r._derive(g+e)}else{if(!n.match(/^[0-9]+$/))throw new Error("invalid path component - "+n);{const e=parseInt(n);if(e>=g)throw new Error("invalid path index - "+n);r=r._derive(e)}}}return r}static _fromSeed(e,t){const r=(0,i.arrayify)(e);if(r.length<16||r.length>64)throw new Error("invalid seed");const n=(0,i.arrayify)((0,f.Gy)(l.p.sha512,y,r));return new k(x,v(n.slice(0,32)),null,"0x00000000",v(n.slice(32)),0,0,t)}static fromMnemonic(e,t,r){return e=A(S(e,r=_(r)),r),k._fromSeed(P(e,t),{phrase:e,path:"m",locale:r.locale})}static fromSeed(e){return k._fromSeed(e,null)}static fromExtendedKey(e){const t=n.eU.decode(e);82===t.length&&w(t.slice(0,78))===e||p.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");const r=t[4],o=(0,i.hexlify)(t.slice(5,9)),a=parseInt((0,i.hexlify)(t.slice(9,13)).substring(2),16),s=(0,i.hexlify)(t.slice(13,45)),u=t.slice(45,78);switch((0,i.hexlify)(t.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new k(x,null,(0,i.hexlify)(u),o,s,a,r,null);case"0x0488ade4":case"0x04358394 ":if(0!==u[0])break;return new k(x,(0,i.hexlify)(u.slice(1)),null,o,s,a,r,null)}return p.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}function P(e,t){t||(t="");const r=(0,a.Y0)("mnemonic"+t,a.Uj.NFKD);return(0,s.n)((0,a.Y0)(e,a.Uj.NFKD),r,2048,64,"sha512")}function S(e,t){t=_(t),p.checkNormalize();const r=t.split(e);if(r.length%3!=0)throw new Error("invalid mnemonic");const n=(0,i.arrayify)(new Uint8Array(Math.ceil(11*r.length/8)));let o=0;for(let e=0;e<r.length;e++){let i=t.getWordIndex(r[e].normalize("NFKD"));if(-1===i)throw new Error("invalid mnemonic");for(let e=0;e<11;e++)i&1<<10-e&&(n[o>>3]|=1<<7-o%8),o++}const a=32*r.length/3,s=m(r.length/3);if(((0,i.arrayify)((0,f.JQ)(n.slice(0,a/8)))[0]&s)!=(n[n.length-1]&s))throw new Error("invalid checksum");return(0,i.hexlify)(n.slice(0,a/8))}function A(e,t){if(t=_(t),(e=(0,i.arrayify)(e)).length%4!=0||e.length<16||e.length>32)throw new Error("invalid entropy");const r=[0];let n=11;for(let t=0;t<e.length;t++)n>8?(r[r.length-1]<<=8,r[r.length-1]|=e[t],n-=8):(r[r.length-1]<<=n,r[r.length-1]|=e[t]>>8-n,r.push(e[t]&(1<<8-n)-1),n+=3);const o=e.length/4,a=(0,i.arrayify)((0,f.JQ)(e))[0]&m(o);return r[r.length-1]<<=o,r[r.length-1]|=a>>8-o,t.join(r.map((e=>t.getWord(e))))}function E(e,t){try{return S(e,t),!0}catch(e){}return!1}function M(e){return("number"!=typeof e||e<0||e>=g||e%1)&&p.throwArgumentError("invalid account index","index",e),`m/44'/60'/${e}'/0/0`}},67949:(e,t,r)=>{"use strict";r.d(t,{LW:()=>i,Rb:()=>a,aO:()=>o});var n=r(64594);function i(e){let t=null;try{t=JSON.parse(e)}catch(e){return!1}return t.encseed&&t.ethaddr}function o(e){let t=null;try{t=JSON.parse(e)}catch(e){return!1}return!(!t.version||parseInt(t.version)!==t.version||3!==parseInt(t.version))}function a(e){if(i(e))try{return(0,n.getAddress)(JSON.parse(e).ethaddr)}catch(e){return null}if(o(e))try{return(0,n.getAddress)(JSON.parse(e).address)}catch(e){return null}return null}},48709:function(e){"use strict";!function(t){function r(e){return parseInt(e)===e}function n(e){if(!r(e.length))return!1;for(var t=0;t<e.length;t++)if(!r(e[t])||e[t]<0||e[t]>255)return!1;return!0}function i(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 o(e){return new Uint8Array(e)}function a(e,t,r,n,i){null==n&&null==i||(e=e.slice?e.slice(n,i):Array.prototype.slice.call(e,n,i)),t.set(e,r)}var s,u={toBytes:function(e){var t=[],r=0;for(e=encodeURI(e);r<e.length;){var n=e.charCodeAt(r++);37===n?(t.push(parseInt(e.substr(r,2),16)),r+=2):t.push(n)}return i(t)},fromBytes:function(e){for(var t=[],r=0;r<e.length;){var n=e[r];n<128?(t.push(String.fromCharCode(n)),r++):n>191&&n<224?(t.push(String.fromCharCode((31&n)<<6|63&e[r+1])),r+=2):(t.push(String.fromCharCode((15&n)<<12|(63&e[r+1])<<6|63&e[r+2])),r+=3)}return t.join("")}},c=(s="0123456789abcdef",{toBytes:function(e){for(var t=[],r=0;r<e.length;r+=2)t.push(parseInt(e.substr(r,2),16));return t},fromBytes:function(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];t.push(s[(240&n)>>4]+s[15&n])}return t.join("")}}),f={16:10,24:12,32:14},l=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],d=[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],h=[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],p=[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],b=[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],y=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],g=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],m=[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],v=[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],w=[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],_=[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],x=[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],O=[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],P=[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 S(e){for(var t=[],r=0;r<e.length;r+=4)t.push(e[r]<<24|e[r+1]<<16|e[r+2]<<8|e[r+3]);return t}var A=function(e){if(!(this instanceof A))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:i(e,!0)}),this._prepare()};A.prototype._prepare=function(){var e=f[this.key.length];if(null==e)throw new Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var t=0;t<=e;t++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);var r,n=4*(e+1),i=this.key.length/4,o=S(this.key);for(t=0;t<i;t++)r=t>>2,this._Ke[r][t%4]=o[t],this._Kd[e-r][t%4]=o[t];for(var a,s=0,u=i;u<n;){if(a=o[i-1],o[0]^=d[a>>16&255]<<24^d[a>>8&255]<<16^d[255&a]<<8^d[a>>24&255]^l[s]<<24,s+=1,8!=i)for(t=1;t<i;t++)o[t]^=o[t-1];else{for(t=1;t<i/2;t++)o[t]^=o[t-1];for(a=o[i/2-1],o[i/2]^=d[255&a]^d[a>>8&255]<<8^d[a>>16&255]<<16^d[a>>24&255]<<24,t=i/2+1;t<i;t++)o[t]^=o[t-1]}for(t=0;t<i&&u<n;)c=u>>2,h=u%4,this._Ke[c][h]=o[t],this._Kd[e-c][h]=o[t++],u++}for(var c=1;c<e;c++)for(var h=0;h<4;h++)a=this._Kd[c][h],this._Kd[c][h]=x[a>>24&255]^O[a>>16&255]^k[a>>8&255]^P[255&a]},A.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,r=[0,0,0,0],n=S(e),i=0;i<4;i++)n[i]^=this._Ke[0][i];for(var a=1;a<t;a++){for(i=0;i<4;i++)r[i]=p[n[i]>>24&255]^b[n[(i+1)%4]>>16&255]^y[n[(i+2)%4]>>8&255]^g[255&n[(i+3)%4]]^this._Ke[a][i];n=r.slice()}var s,u=o(16);for(i=0;i<4;i++)s=this._Ke[t][i],u[4*i]=255&(d[n[i]>>24&255]^s>>24),u[4*i+1]=255&(d[n[(i+1)%4]>>16&255]^s>>16),u[4*i+2]=255&(d[n[(i+2)%4]>>8&255]^s>>8),u[4*i+3]=255&(d[255&n[(i+3)%4]]^s);return u},A.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,r=[0,0,0,0],n=S(e),i=0;i<4;i++)n[i]^=this._Kd[0][i];for(var a=1;a<t;a++){for(i=0;i<4;i++)r[i]=m[n[i]>>24&255]^v[n[(i+3)%4]>>16&255]^w[n[(i+2)%4]>>8&255]^_[255&n[(i+1)%4]]^this._Kd[a][i];n=r.slice()}var s,u=o(16);for(i=0;i<4;i++)s=this._Kd[t][i],u[4*i]=255&(h[n[i]>>24&255]^s>>24),u[4*i+1]=255&(h[n[(i+3)%4]>>16&255]^s>>16),u[4*i+2]=255&(h[n[(i+2)%4]>>8&255]^s>>8),u[4*i+3]=255&(h[255&n[(i+1)%4]]^s);return u};var E=function(e){if(!(this instanceof E))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new A(e)};E.prototype.encrypt=function(e){if((e=i(e)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=o(e.length),r=o(16),n=0;n<e.length;n+=16)a(e,r,0,n,n+16),a(r=this._aes.encrypt(r),t,n);return t},E.prototype.decrypt=function(e){if((e=i(e)).length%16!=0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var t=o(e.length),r=o(16),n=0;n<e.length;n+=16)a(e,r,0,n,n+16),a(r=this._aes.decrypt(r),t,n);return t};var M=function(e,t){if(!(this instanceof M))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Block Chaining",this.name="cbc",t){if(16!=t.length)throw new Error("invalid initialation vector size (must be 16 bytes)")}else t=o(16);this._lastCipherblock=i(t,!0),this._aes=new A(e)};M.prototype.encrypt=function(e){if((e=i(e)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=o(e.length),r=o(16),n=0;n<e.length;n+=16){a(e,r,0,n,n+16);for(var s=0;s<16;s++)r[s]^=this._lastCipherblock[s];this._lastCipherblock=this._aes.encrypt(r),a(this._lastCipherblock,t,n)}return t},M.prototype.decrypt=function(e){if((e=i(e)).length%16!=0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var t=o(e.length),r=o(16),n=0;n<e.length;n+=16){a(e,r,0,n,n+16),r=this._aes.decrypt(r);for(var s=0;s<16;s++)t[n+s]=r[s]^this._lastCipherblock[s];a(e,this._lastCipherblock,0,n,n+16)}return t};var j=function(e,t,r){if(!(this instanceof j))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Feedback",this.name="cfb",t){if(16!=t.length)throw new Error("invalid initialation vector size (must be 16 size)")}else t=o(16);r||(r=1),this.segmentSize=r,this._shiftRegister=i(t,!0),this._aes=new A(e)};j.prototype.encrypt=function(e){if(e.length%this.segmentSize!=0)throw new Error("invalid plaintext size (must be segmentSize bytes)");for(var t,r=i(e,!0),n=0;n<r.length;n+=this.segmentSize){t=this._aes.encrypt(this._shiftRegister);for(var o=0;o<this.segmentSize;o++)r[n+o]^=t[o];a(this._shiftRegister,this._shiftRegister,0,this.segmentSize),a(r,this._shiftRegister,16-this.segmentSize,n,n+this.segmentSize)}return r},j.prototype.decrypt=function(e){if(e.length%this.segmentSize!=0)throw new Error("invalid ciphertext size (must be segmentSize bytes)");for(var t,r=i(e,!0),n=0;n<r.length;n+=this.segmentSize){t=this._aes.encrypt(this._shiftRegister);for(var o=0;o<this.segmentSize;o++)r[n+o]^=t[o];a(this._shiftRegister,this._shiftRegister,0,this.segmentSize),a(e,this._shiftRegister,16-this.segmentSize,n,n+this.segmentSize)}return r};var T=function(e,t){if(!(this instanceof T))throw Error("AES must be instanitated with `new`");if(this.description="Output Feedback",this.name="ofb",t){if(16!=t.length)throw new Error("invalid initialation vector size (must be 16 bytes)")}else t=o(16);this._lastPrecipher=i(t,!0),this._lastPrecipherIndex=16,this._aes=new A(e)};T.prototype.encrypt=function(e){for(var t=i(e,!0),r=0;r<t.length;r++)16===this._lastPrecipherIndex&&(this._lastPrecipher=this._aes.encrypt(this._lastPrecipher),this._lastPrecipherIndex=0),t[r]^=this._lastPrecipher[this._lastPrecipherIndex++];return t},T.prototype.decrypt=T.prototype.encrypt;var B=function(e){if(!(this instanceof B))throw Error("Counter must be instanitated with `new`");0===e||e||(e=1),"number"==typeof e?(this._counter=o(16),this.setValue(e)):this.setBytes(e)};B.prototype.setValue=function(e){if("number"!=typeof e||parseInt(e)!=e)throw new Error("invalid counter value (must be an integer)");for(var t=15;t>=0;--t)this._counter[t]=e%256,e>>=8},B.prototype.setBytes=function(e){if(16!=(e=i(e,!0)).length)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=e},B.prototype.increment=function(){for(var e=15;e>=0;e--){if(255!==this._counter[e]){this._counter[e]++;break}this._counter[e]=0}};var I=function(e,t){if(!(this instanceof I))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",t instanceof B||(t=new B(t)),this._counter=t,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new A(e)};I.prototype.encrypt=function(e){for(var t=i(e,!0),r=0;r<t.length;r++)16===this._remainingCounterIndex&&(this._remainingCounter=this._aes.encrypt(this._counter._counter),this._remainingCounterIndex=0,this._counter.increment()),t[r]^=this._remainingCounter[this._remainingCounterIndex++];return t},I.prototype.decrypt=I.prototype.encrypt;var N={AES:A,Counter:B,ModeOfOperation:{ecb:E,cbc:M,cfb:j,ofb:T,ctr:I},utils:{hex:c,utf8:u},padding:{pkcs7:{pad:function(e){var t=16-(e=i(e,!0)).length%16,r=o(e.length+t);a(e,r);for(var n=e.length;n<r.length;n++)r[n]=t;return r},strip:function(e){if((e=i(e,!0)).length<16)throw new Error("PKCS#7 invalid length");var t=e[e.length-1];if(t>16)throw new Error("PKCS#7 padding byte out of range");for(var r=e.length-t,n=0;n<t;n++)if(e[r+n]!==t)throw new Error("PKCS#7 invalid padding byte");var s=o(r);return a(e,s,0,0,r),s}}},_arrayTest:{coerceArray:i,createArray:o,copyArray:a}};e.exports=N}()},38197:(e,t,r)=>{"use strict";r.d(t,{keccak256:()=>a});var n=r(91094),i=r.n(n),o=r(93286);function a(e){return"0x"+i().keccak_256((0,o.arrayify)(e))}},80711:(e,t,r)=>{"use strict";r.d(t,{ErrorCode:()=>f,Logger:()=>d});let n=!1,i=!1;const o={debug:1,default:2,info:2,warning:3,error:4,off:5};let a=o.default,s=null;const u=function(){try{const e=[];if(["NFD","NFC","NFKD","NFKC"].forEach((t=>{try{if("test"!=="test".normalize(t))throw new Error("bad normalize")}catch(r){e.push(t)}})),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 c,f;!function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"}(c||(c={})),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",e.ACTION_REJECTED="ACTION_REJECTED"}(f||(f={}));const l="0123456789abcdef";class d{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,t){const r=e.toLowerCase();null==o[r]&&this.throwArgumentError("invalid log level name","logLevel",e),a>o[r]||console.log.apply(console,t)}debug(...e){this._log(d.levels.DEBUG,e)}info(...e){this._log(d.levels.INFO,e)}warn(...e){this._log(d.levels.WARNING,e)}makeError(e,t,r){if(i)return this.makeError("censored error",t,{});t||(t=d.errors.UNKNOWN_ERROR),r||(r={});const n=[];Object.keys(r).forEach((e=>{const t=r[e];try{if(t instanceof Uint8Array){let r="";for(let e=0;e<t.length;e++)r+=l[t[e]>>4],r+=l[15&t[e]];n.push(e+"=Uint8Array(0x"+r+")")}else n.push(e+"="+JSON.stringify(t))}catch(t){n.push(e+"="+JSON.stringify(r[e].toString()))}})),n.push(`code=${t}`),n.push(`version=${this.version}`);const o=e;let a="";switch(t){case f.NUMERIC_FAULT:{a="NUMERIC_FAULT";const t=e;switch(t){case"overflow":case"underflow":case"division-by-zero":a+="-"+t;break;case"negative-power":case"negative-width":a+="-unsupported";break;case"unbound-bitwise-result":a+="-unbound-result"}break}case f.CALL_EXCEPTION:case f.INSUFFICIENT_FUNDS:case f.MISSING_NEW:case f.NONCE_EXPIRED:case f.REPLACEMENT_UNDERPRICED:case f.TRANSACTION_REPLACED:case f.UNPREDICTABLE_GAS_LIMIT:a=t}a&&(e+=" [ See: https://links.ethers.org/v5-errors-"+a+" ]"),n.length&&(e+=" ("+n.join(", ")+")");const s=new Error(e);return s.reason=o,s.code=t,Object.keys(r).forEach((function(e){s[e]=r[e]})),s}throwError(e,t,r){throw this.makeError(e,t,r)}throwArgumentError(e,t,r){return this.throwError(e,d.errors.INVALID_ARGUMENT,{argument:t,value:r})}assert(e,t,r,n){e||this.throwError(t,r,n)}assertArgument(e,t,r,n){e||this.throwArgumentError(t,r,n)}checkNormalize(e){null==e&&(e="platform missing String.prototype.normalize"),u&&this.throwError("platform missing String.prototype.normalize",d.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:u})}checkSafeUint53(e,t){"number"==typeof e&&(null==t&&(t="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(t,d.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,d.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,t,r){r=r?": "+r:"",e<t&&this.throwError("missing argument"+r,d.errors.MISSING_ARGUMENT,{count:e,expectedCount:t}),e>t&&this.throwError("too many arguments"+r,d.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})}checkNew(e,t){e!==Object&&null!=e||this.throwError("missing new",d.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",d.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):e!==Object&&null!=e||this.throwError("missing new",d.errors.MISSING_NEW,{name:t.name})}static globalLogger(){return s||(s=new d("logger/5.7.0")),s}static setCensorship(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",d.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),n){if(!e)return;this.globalLogger().throwError("error censorship permanent",d.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}i=!!e,n=!!t}static setLogLevel(e){const t=o[e.toLowerCase()];null!=t?a=t:d.globalLogger().warn("invalid log level - "+e)}static from(e){return new d(e)}}d.errors=f,d.levels=c},85306:(e,t,r)=>{"use strict";r.d(t,{n:()=>o});var n=r(93286),i=r(23951);function o(e,t,r,o,a){let s;e=(0,n.arrayify)(e),t=(0,n.arrayify)(t);let u=1;const c=new Uint8Array(o),f=new Uint8Array(t.length+4);let l,d;f.set(t);for(let h=1;h<=u;h++){f[t.length]=h>>24&255,f[t.length+1]=h>>16&255,f[t.length+2]=h>>8&255,f[t.length+3]=255&h;let p=(0,n.arrayify)((0,i.Gy)(a,e,f));s||(s=p.length,d=new Uint8Array(s),u=Math.ceil(o/s),l=o-(u-1)*s),d.set(p);for(let t=1;t<r;t++){p=(0,n.arrayify)((0,i.Gy)(a,e,p));for(let e=0;e<s;e++)d[e]^=p[e]}const b=(h-1)*s,y=h===u?l:s;c.set((0,n.arrayify)(d).slice(0,y),b)}return(0,n.hexlify)(c)}},53587:(e,t,r)=>{"use strict";r.d(t,{dk:()=>b,uj:()=>c,p$:()=>p,zG:()=>a,tu:()=>s,mE:()=>u,DC:()=>f});var n=r(80711),i=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))};const o=new n.Logger("properties/5.7.0");function a(e,t,r){Object.defineProperty(e,t,{enumerable:!0,value:r,writable:!1})}function s(e,t){for(let r=0;r<32;r++){if(e[t])return e[t];if(!e.prototype||"object"!=typeof e.prototype)break;e=Object.getPrototypeOf(e.prototype).constructor}return null}function u(e){return i(this,void 0,void 0,(function*(){const t=Object.keys(e).map((t=>{const r=e[t];return Promise.resolve(r).then((e=>({key:t,value:e})))}));return(yield Promise.all(t)).reduce(((e,t)=>(e[t.key]=t.value,e)),{})}))}function c(e,t){e&&"object"==typeof e||o.throwArgumentError("invalid object","object",e),Object.keys(e).forEach((r=>{t[r]||o.throwArgumentError("invalid object key - "+r,"transaction:"+r,e)}))}function f(e){const t={};for(const r in e)t[r]=e[r];return t}const l={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function d(e){if(null==e||l[typeof e])return!0;if(Array.isArray(e)||"object"==typeof e){if(!Object.isFrozen(e))return!1;const t=Object.keys(e);for(let r=0;r<t.length;r++){let n=null;try{n=e[t[r]]}catch(e){continue}if(!d(n))return!1}return!0}return o.throwArgumentError("Cannot deepCopy "+typeof e,"object",e)}function h(e){if(d(e))return e;if(Array.isArray(e))return Object.freeze(e.map((e=>p(e))));if("object"==typeof e){const t={};for(const r in e){const n=e[r];void 0!==n&&a(t,r,p(n))}return t}return o.throwArgumentError("Cannot deepCopy "+typeof e,"object",e)}function p(e){return h(e)}class b{constructor(e){for(const t in e)this[t]=p(e[t])}}},62354:(e,t,r)=>{"use strict";r.r(t),r.d(t,{AlchemyProvider:()=>Te,AlchemyWebSocketProvider:()=>je,AnkrProvider:()=>Re,BaseProvider:()=>ie,CloudflareProvider:()=>Ue,EtherscanProvider:()=>Ke,FallbackProvider:()=>at,Formatter:()=>j,InfuraProvider:()=>lt,InfuraWebSocketProvider:()=>ft,IpcProvider:()=>st,JsonRpcBatchProvider:()=>dt,JsonRpcProvider:()=>ve,JsonRpcSigner:()=>ye,NodesmithProvider:()=>pt,PocketProvider:()=>gt,Provider:()=>n.zt,Resolver:()=>te,StaticJsonRpcProvider:()=>Se,UrlJsonRpcProvider:()=>Ae,Web3Provider:()=>_t,WebSocketProvider:()=>ke,getDefaultProvider:()=>Ot,getNetwork:()=>d,isCommunityResourcable:()=>T,isCommunityResource:()=>B,showThrottleMessage:()=>N});var n=r(64353),i=r(80711);const o=new i.Logger("networks/5.7.1");function a(e){const t=function(t,r){null==r&&(r={});const n=[];if(t.InfuraProvider&&"-"!==r.infura)try{n.push(new t.InfuraProvider(e,r.infura))}catch(e){}if(t.EtherscanProvider&&"-"!==r.etherscan)try{n.push(new t.EtherscanProvider(e,r.etherscan))}catch(e){}if(t.AlchemyProvider&&"-"!==r.alchemy)try{n.push(new t.AlchemyProvider(e,r.alchemy))}catch(e){}if(t.PocketProvider&&"-"!==r.pocket){const i=["goerli","ropsten","rinkeby","sepolia"];try{const o=new t.PocketProvider(e,r.pocket);o.network&&-1===i.indexOf(o.network.name)&&n.push(o)}catch(e){}}if(t.CloudflareProvider&&"-"!==r.cloudflare)try{n.push(new t.CloudflareProvider(e))}catch(e){}if(t.AnkrProvider&&"-"!==r.ankr)try{const i=["ropsten"],o=new t.AnkrProvider(e,r.ankr);o.network&&-1===i.indexOf(o.network.name)&&n.push(o)}catch(e){}if(0===n.length)return null;if(t.FallbackProvider){let i=1;return null!=r.quorum?i=r.quorum:"homestead"===e&&(i=2),new t.FallbackProvider(n,i)}return n[0]};return t.renetwork=function(e){return a(e)},t}function s(e,t){const r=function(r,n){return r.JsonRpcProvider?new r.JsonRpcProvider(e,t):null};return r.renetwork=function(t){return s(e,t)},r}const u={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:a("homestead")},c={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:a("ropsten")},f={chainId:63,name:"classicMordor",_defaultProvider:s("https://www.ethercluster.com/mordor","classicMordor")},l={unspecified:{chainId:0,name:"unspecified"},homestead:u,mainnet:u,morden:{chainId:2,name:"morden"},ropsten:c,testnet:c,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:a("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:a("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:a("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:a("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:s("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:f,classicTestnet:f,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:s("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:a("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:a("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function d(e){if(null==e)return null;if("number"==typeof e){for(const t in l){const r=l[t];if(r.chainId===e)return{name:r.name,chainId:r.chainId,ensAddress:r.ensAddress||null,_defaultProvider:r._defaultProvider||null}}return{chainId:e,name:"unknown"}}if("string"==typeof e){const t=l[e];return null==t?null:{name:t.name,chainId:t.chainId,ensAddress:t.ensAddress,_defaultProvider:t._defaultProvider||null}}const t=l[e.name];if(!t)return"number"!=typeof e.chainId&&o.throwArgumentError("invalid network chainId","network",e),e;0!==e.chainId&&e.chainId!==t.chainId&&o.throwArgumentError("network chainId mismatch","network",e);let r=e._defaultProvider||null;var n;return null==r&&t._defaultProvider&&(r=(n=t._defaultProvider)&&"function"==typeof n.renetwork?t._defaultProvider.renetwork(e):t._defaultProvider),{name:e.name,chainId:t.chainId,ensAddress:e.ensAddress||t.ensAddress||null,_defaultProvider:r}}var h=r(59567),p=r(57727),b=r(2593),y=r(93286),g=r(57218),m=r(78339),v=r(53587),w=r(23951),_=r(44242),x=r(58341),O=r(92882),k=r.n(O);const P="providers/5.7.2";var S=r(64594),A=r(9279),E=r(64377);const M=new i.Logger(P);class j{constructor(){this.formats=this.getDefaultFormats()}getDefaultFormats(){const e={},t=this.address.bind(this),r=this.bigNumber.bind(this),n=this.blockTag.bind(this),i=this.data.bind(this),o=this.hash.bind(this),a=this.hex.bind(this),s=this.number.bind(this),u=this.type.bind(this);return e.transaction={hash:o,type:u,accessList:j.allowNull(this.accessList.bind(this),null),blockHash:j.allowNull(o,null),blockNumber:j.allowNull(s,null),transactionIndex:j.allowNull(s,null),confirmations:j.allowNull(s,null),from:t,gasPrice:j.allowNull(r),maxPriorityFeePerGas:j.allowNull(r),maxFeePerGas:j.allowNull(r),gasLimit:r,to:j.allowNull(t,null),value:r,nonce:s,data:i,r:j.allowNull(this.uint256),s:j.allowNull(this.uint256),v:j.allowNull(s),creates:j.allowNull(t,null),raw:j.allowNull(i)},e.transactionRequest={from:j.allowNull(t),nonce:j.allowNull(s),gasLimit:j.allowNull(r),gasPrice:j.allowNull(r),maxPriorityFeePerGas:j.allowNull(r),maxFeePerGas:j.allowNull(r),to:j.allowNull(t),value:j.allowNull(r),data:j.allowNull((e=>this.data(e,!0))),type:j.allowNull(s),accessList:j.allowNull(this.accessList.bind(this),null)},e.receiptLog={transactionIndex:s,blockNumber:s,transactionHash:o,address:t,topics:j.arrayOf(o),data:i,logIndex:s,blockHash:o},e.receipt={to:j.allowNull(this.address,null),from:j.allowNull(this.address,null),contractAddress:j.allowNull(t,null),transactionIndex:s,root:j.allowNull(a),gasUsed:r,logsBloom:j.allowNull(i),blockHash:o,transactionHash:o,logs:j.arrayOf(this.receiptLog.bind(this)),blockNumber:s,confirmations:j.allowNull(s,null),cumulativeGasUsed:r,effectiveGasPrice:j.allowNull(r),status:j.allowNull(s),type:u},e.block={hash:j.allowNull(o),parentHash:o,number:s,timestamp:s,nonce:j.allowNull(a),difficulty:this.difficulty.bind(this),gasLimit:r,gasUsed:r,miner:j.allowNull(t),extraData:i,transactions:j.allowNull(j.arrayOf(o)),baseFeePerGas:j.allowNull(r)},e.blockWithTransactions=(0,v.DC)(e.block),e.blockWithTransactions.transactions=j.allowNull(j.arrayOf(this.transactionResponse.bind(this))),e.filter={fromBlock:j.allowNull(n,void 0),toBlock:j.allowNull(n,void 0),blockHash:j.allowNull(o,void 0),address:j.allowNull(t,void 0),topics:j.allowNull(this.topics.bind(this),void 0)},e.filterLog={blockNumber:j.allowNull(s),blockHash:j.allowNull(o),transactionIndex:s,removed:j.allowNull(this.boolean.bind(this)),address:t,data:j.allowFalsish(i,"0x"),topics:j.arrayOf(o),transactionHash:o,logIndex:s},e}accessList(e){return(0,E.z7)(e||[])}number(e){return"0x"===e?0:b.O$.from(e).toNumber()}type(e){return"0x"===e||null==e?0:b.O$.from(e).toNumber()}bigNumber(e){return b.O$.from(e)}boolean(e){if("boolean"==typeof e)return e;if("string"==typeof e){if("true"===(e=e.toLowerCase()))return!0;if("false"===e)return!1}throw new Error("invalid boolean - "+e)}hex(e,t){return"string"==typeof e&&(t||"0x"===e.substring(0,2)||(e="0x"+e),(0,y.isHexString)(e))?e.toLowerCase():M.throwArgumentError("invalid hash","value",e)}data(e,t){const r=this.hex(e,t);if(r.length%2!=0)throw new Error("invalid data; odd-length - "+e);return r}address(e){return(0,S.getAddress)(e)}callAddress(e){if(!(0,y.isHexString)(e,32))return null;const t=(0,S.getAddress)((0,y.hexDataSlice)(e,12));return t===A.d?null:t}contractAddress(e){return(0,S.getContractAddress)(e)}blockTag(e){if(null==e)return"latest";if("earliest"===e)return"0x0";switch(e){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return e}if("number"==typeof e||(0,y.isHexString)(e))return(0,y.hexValue)(e);throw new Error("invalid blockTag")}hash(e,t){const r=this.hex(e,t);return 32!==(0,y.hexDataLength)(r)?M.throwArgumentError("invalid hash","value",e):r}difficulty(e){if(null==e)return null;const t=b.O$.from(e);try{return t.toNumber()}catch(e){}return null}uint256(e){if(!(0,y.isHexString)(e))throw new Error("invalid uint256");return(0,y.hexZeroPad)(e,32)}_block(e,t){null!=e.author&&null==e.miner&&(e.miner=e.author);const r=null!=e._difficulty?e._difficulty:e.difficulty,n=j.check(t,e);return n._difficulty=null==r?null:b.O$.from(r),n}block(e){return this._block(e,this.formats.block)}blockWithTransactions(e){return this._block(e,this.formats.blockWithTransactions)}transactionRequest(e){return j.check(this.formats.transactionRequest,e)}transactionResponse(e){null!=e.gas&&null==e.gasLimit&&(e.gasLimit=e.gas),e.to&&b.O$.from(e.to).isZero()&&(e.to="0x0000000000000000000000000000000000000000"),null!=e.input&&null==e.data&&(e.data=e.input),null==e.to&&null==e.creates&&(e.creates=this.contractAddress(e)),1!==e.type&&2!==e.type||null!=e.accessList||(e.accessList=[]);const t=j.check(this.formats.transaction,e);if(null!=e.chainId){let r=e.chainId;(0,y.isHexString)(r)&&(r=b.O$.from(r).toNumber()),t.chainId=r}else{let r=e.networkId;null==r&&null==t.v&&(r=e.chainId),(0,y.isHexString)(r)&&(r=b.O$.from(r).toNumber()),"number"!=typeof r&&null!=t.v&&(r=(t.v-35)/2,r<0&&(r=0),r=parseInt(r)),"number"!=typeof r&&(r=0),t.chainId=r}return t.blockHash&&"x"===t.blockHash.replace(/0/g,"")&&(t.blockHash=null),t}transaction(e){return(0,E.Qc)(e)}receiptLog(e){return j.check(this.formats.receiptLog,e)}receipt(e){const t=j.check(this.formats.receipt,e);if(null!=t.root)if(t.root.length<=4){const e=b.O$.from(t.root).toNumber();0===e||1===e?(null!=t.status&&t.status!==e&&M.throwArgumentError("alt-root-status/status mismatch","value",{root:t.root,status:t.status}),t.status=e,delete t.root):M.throwArgumentError("invalid alt-root-status","value.root",t.root)}else 66!==t.root.length&&M.throwArgumentError("invalid root hash","value.root",t.root);return null!=t.status&&(t.byzantium=!0),t}topics(e){return Array.isArray(e)?e.map((e=>this.topics(e))):null!=e?this.hash(e,!0):null}filter(e){return j.check(this.formats.filter,e)}filterLog(e){return j.check(this.formats.filterLog,e)}static check(e,t){const r={};for(const n in e)try{const i=e[n](t[n]);void 0!==i&&(r[n]=i)}catch(e){throw e.checkKey=n,e.checkValue=t[n],e}return r}static allowNull(e,t){return function(r){return null==r?t:e(r)}}static allowFalsish(e,t){return function(r){return r?e(r):t}}static arrayOf(e){return function(t){if(!Array.isArray(t))throw new Error("not an array");const r=[];return t.forEach((function(t){r.push(e(t))})),r}}}function T(e){return e&&"function"==typeof e.isCommunityResource}function B(e){return T(e)&&e.isCommunityResource()}let I=!1;function N(){I||(I=!0,console.log("========= NOTICE ========="),console.log("Request-Rate Exceeded (this message will not be repeated)"),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.io/api-keys/"),console.log("=========================="))}var R=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))};const C=new i.Logger(P);function U(e){return null==e?"null":(32!==(0,y.hexDataLength)(e)&&C.throwArgumentError("invalid topic","topic",e),e.toLowerCase())}function L(e){for(e=e.slice();e.length>0&&null==e[e.length-1];)e.pop();return e.map((e=>{if(Array.isArray(e)){const t={};e.forEach((e=>{t[U(e)]=!0}));const r=Object.keys(t);return r.sort(),r.join("|")}return U(e)})).join("&")}function D(e){if("string"==typeof e){if(e=e.toLowerCase(),32===(0,y.hexDataLength)(e))return"tx:"+e;if(-1===e.indexOf(":"))return e}else{if(Array.isArray(e))return"filter:*:"+L(e);if(n.Sg.isForkEvent(e))throw C.warn("not implemented"),new Error("not implemented");if(e&&"object"==typeof e)return"filter:"+(e.address||"*")+":"+L(e.topics||[])}throw new Error("invalid event - "+e)}function H(){return(new Date).getTime()}function F(e){return new Promise((t=>{setTimeout(t,e)}))}const V=["block","network","pending","poll"];class z{constructor(e,t,r){(0,v.zG)(this,"tag",e),(0,v.zG)(this,"listener",t),(0,v.zG)(this,"once",r),this._lastBlockNumber=-2,this._inflight=!1}get event(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}get type(){return this.tag.split(":")[0]}get hash(){const e=this.tag.split(":");return"tx"!==e[0]?null:e[1]}get filter(){const e=this.tag.split(":");if("filter"!==e[0])return null;const t=e[1],r=""===(n=e[2])?[]:n.split(/&/g).map((e=>{if(""===e)return[];const t=e.split("|").map((e=>"null"===e?null:e));return 1===t.length?t[0]:t}));var n;const i={};return r.length>0&&(i.topics=r),t&&"*"!==t&&(i.address=t),i}pollable(){return this.tag.indexOf(":")>=0||V.indexOf(this.tag)>=0}}const q={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function K(e){return(0,y.hexZeroPad)(b.O$.from(e).toHexString(),32)}function W(e){return p.eU.encode((0,y.concat)([e,(0,y.hexDataSlice)((0,w.JQ)((0,w.JQ)(e)),0,4)]))}const G=new RegExp("^(ipfs)://(.*)$","i"),X=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),G,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function Z(e,t){try{return(0,_.ZN)(J(e,t))}catch(e){}return null}function J(e,t){if("0x"===e)return null;const r=b.O$.from((0,y.hexDataSlice)(e,t,t+32)).toNumber(),n=b.O$.from((0,y.hexDataSlice)(e,r,r+32)).toNumber();return(0,y.hexDataSlice)(e,r+32,r+32+n)}function Y(e){return e.match(/^ipfs:\/\/ipfs\//i)?e=e.substring(12):e.match(/^ipfs:\/\//i)?e=e.substring(7):C.throwArgumentError("unsupported IPFS format","link",e),`https://gateway.ipfs.io/ipfs/${e}`}function Q(e){const t=(0,y.arrayify)(e);if(t.length>32)throw new Error("internal; should not happen");const r=new Uint8Array(32);return r.set(t,32-t.length),r}function $(e){if(e.length%32==0)return e;const t=new Uint8Array(32*Math.ceil(e.length/32));return t.set(e),t}function ee(e){const t=[];let r=0;for(let n=0;n<e.length;n++)t.push(null),r+=32;for(let n=0;n<e.length;n++){const i=(0,y.arrayify)(e[n]);t[n]=Q(r),t.push(Q(i.length)),t.push($(i)),r+=32+32*Math.ceil(i.length/32)}return(0,y.hexConcat)(t)}class te{constructor(e,t,r,n){(0,v.zG)(this,"provider",e),(0,v.zG)(this,"name",r),(0,v.zG)(this,"address",e.formatter.address(t)),(0,v.zG)(this,"_resolvedAddress",n)}supportsWildcard(){return this._supportsEip2544||(this._supportsEip2544=this.provider.call({to:this.address,data:"0x01ffc9a79061b92300000000000000000000000000000000000000000000000000000000"}).then((e=>b.O$.from(e).eq(1))).catch((e=>{if(e.code===i.Logger.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,e}))),this._supportsEip2544}_fetch(e,t){return R(this,void 0,void 0,(function*(){const r={to:this.address,ccipReadEnabled:!0,data:(0,y.hexConcat)([e,(0,m.VM)(this.name),t||"0x"])};let n=!1;(yield this.supportsWildcard())&&(n=!0,r.data=(0,y.hexConcat)(["0x9061b923",ee([(0,m.Kn)(this.name),r.data])]));try{let e=yield this.provider.call(r);return(0,y.arrayify)(e).length%32==4&&C.throwError("resolver threw error",i.Logger.errors.CALL_EXCEPTION,{transaction:r,data:e}),n&&(e=J(e,0)),e}catch(e){if(e.code===i.Logger.errors.CALL_EXCEPTION)return null;throw e}}))}_fetchBytes(e,t){return R(this,void 0,void 0,(function*(){const r=yield this._fetch(e,t);return null!=r?J(r,0):null}))}_getAddress(e,t){const r=q[String(e)];if(null==r&&C.throwError(`unsupported coin type: ${e}`,i.Logger.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`}),"eth"===r.ilk)return this.provider.formatter.address(t);const n=(0,y.arrayify)(t);if(null!=r.p2pkh){const e=t.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(e){const t=parseInt(e[1],16);if(e[2].length===2*t&&t>=1&&t<=75)return W((0,y.concat)([[r.p2pkh],"0x"+e[2]]))}}if(null!=r.p2sh){const e=t.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(e){const t=parseInt(e[1],16);if(e[2].length===2*t&&t>=1&&t<=75)return W((0,y.concat)([[r.p2sh],"0x"+e[2]]))}}if(null!=r.prefix){const e=n[1];let t=n[0];if(0===t?20!==e&&32!==e&&(t=-1):t=-1,t>=0&&n.length===2+e&&e>=1&&e<=75){const e=k().toWords(n.slice(2));return e.unshift(t),k().encode(r.prefix,e)}}return null}getAddress(e){return R(this,void 0,void 0,(function*(){if(null==e&&(e=60),60===e)try{const e=yield this._fetch("0x3b3b57de");return"0x"===e||e===g.R?null:this.provider.formatter.callAddress(e)}catch(e){if(e.code===i.Logger.errors.CALL_EXCEPTION)return null;throw e}const t=yield this._fetchBytes("0xf1cb7e06",K(e));if(null==t||"0x"===t)return null;const r=this._getAddress(e,t);return null==r&&C.throwError("invalid or unsupported coin data",i.Logger.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`,coinType:e,data:t}),r}))}getAvatar(){return R(this,void 0,void 0,(function*(){const e=[{type:"name",content:this.name}];try{const t=yield this.getText("avatar");if(null==t)return null;for(let r=0;r<X.length;r++){const n=t.match(X[r]);if(null==n)continue;const i=n[1].toLowerCase();switch(i){case"https":return e.push({type:"url",content:t}),{linkage:e,url:t};case"data":return e.push({type:"data",content:t}),{linkage:e,url:t};case"ipfs":return e.push({type:"ipfs",content:t}),{linkage:e,url:Y(t)};case"erc721":case"erc1155":{const r="erc721"===i?"0xc87b56dd":"0x0e89341c";e.push({type:i,content:t});const o=this._resolvedAddress||(yield this.getAddress()),a=(n[2]||"").split("/");if(2!==a.length)return null;const s=yield this.provider.formatter.address(a[0]),u=(0,y.hexZeroPad)(b.O$.from(a[1]).toHexString(),32);if("erc721"===i){const t=this.provider.formatter.callAddress(yield this.provider.call({to:s,data:(0,y.hexConcat)(["0x6352211e",u])}));if(o!==t)return null;e.push({type:"owner",content:t})}else if("erc1155"===i){const t=b.O$.from(yield this.provider.call({to:s,data:(0,y.hexConcat)(["0x00fdd58e",(0,y.hexZeroPad)(o,32),u])}));if(t.isZero())return null;e.push({type:"balance",content:t.toString()})}const c={to:this.provider.formatter.address(a[0]),data:(0,y.hexConcat)([r,u])};let f=Z(yield this.provider.call(c),0);if(null==f)return null;e.push({type:"metadata-url-base",content:f}),"erc1155"===i&&(f=f.replace("{id}",u.substring(2)),e.push({type:"metadata-url-expanded",content:f})),f.match(/^ipfs:/i)&&(f=Y(f)),e.push({type:"metadata-url",content:f});const l=yield(0,x.rd)(f);if(!l)return null;e.push({type:"metadata",content:JSON.stringify(l)});let d=l.image;if("string"!=typeof d)return null;if(d.match(/^(https:\/\/|data:)/i));else{if(null==d.match(G))return null;e.push({type:"url-ipfs",content:d}),d=Y(d)}return e.push({type:"url",content:d}),{linkage:e,url:d}}}}}catch(e){}return null}))}getContentHash(){return R(this,void 0,void 0,(function*(){const e=yield this._fetchBytes("0xbc1c58d1");if(null==e||"0x"===e)return null;const t=e.match(/^0xe3010170(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(t){const e=parseInt(t[3],16);if(t[4].length===2*e)return"ipfs://"+p.eU.encode("0x"+t[1])}const r=e.match(/^0xe5010172(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(r){const e=parseInt(r[3],16);if(r[4].length===2*e)return"ipns://"+p.eU.encode("0x"+r[1])}const n=e.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(n&&64===n[1].length)return"bzz://"+n[1];const o=e.match(/^0x90b2c605([0-9a-f]*)$/);if(o&&68===o[1].length){const e={"=":"","+":"-","/":"_"};return"sia://"+(0,h.c)("0x"+o[1]).replace(/[=+\/]/g,(t=>e[t]))}return C.throwError("invalid or unsupported content hash data",i.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:e})}))}getText(e){return R(this,void 0,void 0,(function*(){let t=(0,_.Y0)(e);t=(0,y.concat)([K(64),K(t.length),t]),t.length%32!=0&&(t=(0,y.concat)([t,(0,y.hexZeroPad)("0x",32-e.length%32)]));const r=yield this._fetchBytes("0x59d1d43c",(0,y.hexlify)(t));return null==r||"0x"===r?null:(0,_.ZN)(r)}))}}let re=null,ne=1;class ie extends n.zt{constructor(e){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),(0,v.zG)(this,"anyNetwork","any"===e),this.anyNetwork&&(e=this.detectNetwork()),e instanceof Promise)this._networkPromise=e,e.catch((e=>{})),this._ready().catch((e=>{}));else{const t=(0,v.tu)(new.target,"getNetwork")(e);t?((0,v.zG)(this,"_network",t),this.emit("network",t,null)):C.throwArgumentError("invalid network","network",e)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return R(this,void 0,void 0,(function*(){if(null==this._network){let e=null;if(this._networkPromise)try{e=yield this._networkPromise}catch(e){}null==e&&(e=yield this.detectNetwork()),e||C.throwError("no network detected",i.Logger.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=e:(0,v.zG)(this,"_network",e),this.emit("network",e,null))}return this._network}))}get ready(){return(0,x.$l)((()=>this._ready().then((e=>e),(e=>{if(e.code!==i.Logger.errors.NETWORK_ERROR||"noNetwork"!==e.event)throw e}))))}static getFormatter(){return null==re&&(re=new j),re}static getNetwork(e){return d(null==e?"homestead":e)}ccipReadFetch(e,t,r){return R(this,void 0,void 0,(function*(){if(this.disableCcipRead||0===r.length)return null;const n=e.to.toLowerCase(),o=t.toLowerCase(),a=[];for(let e=0;e<r.length;e++){const t=r[e],s=t.replace("{sender}",n).replace("{data}",o),u=t.indexOf("{data}")>=0?null:JSON.stringify({data:o,sender:n}),c=yield(0,x.rd)({url:s,errorPassThrough:!0},u,((e,t)=>(e.status=t.statusCode,e)));if(c.data)return c.data;const f=c.message||"unknown error";if(c.status>=400&&c.status<500)return C.throwError(`response not found during CCIP fetch: ${f}`,i.Logger.errors.SERVER_ERROR,{url:t,errorMessage:f});a.push(f)}return C.throwError(`error encountered during CCIP fetch: ${a.map((e=>JSON.stringify(e))).join(", ")}`,i.Logger.errors.SERVER_ERROR,{urls:r,errorMessages:a})}))}_getInternalBlockNumber(e){return R(this,void 0,void 0,(function*(){if(yield this._ready(),e>0)for(;this._internalBlockNumber;){const t=this._internalBlockNumber;try{const r=yield t;if(H()-r.respTime<=e)return r.blockNumber;break}catch(e){if(this._internalBlockNumber===t)break}}const t=H(),r=(0,v.mE)({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then((e=>null),(e=>e))}).then((({blockNumber:e,networkError:n})=>{if(n)throw this._internalBlockNumber===r&&(this._internalBlockNumber=null),n;const i=H();return(e=b.O$.from(e).toNumber())<this._maxInternalBlockNumber&&(e=this._maxInternalBlockNumber),this._maxInternalBlockNumber=e,this._setFastBlockNumber(e),{blockNumber:e,reqTime:t,respTime:i}}));return this._internalBlockNumber=r,r.catch((e=>{this._internalBlockNumber===r&&(this._internalBlockNumber=null)})),(yield r).blockNumber}))}poll(){return R(this,void 0,void 0,(function*(){const e=ne++,t=[];let r=null;try{r=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(e){return void this.emit("error",e)}if(this._setFastBlockNumber(r),this.emit("poll",e,r),r!==this._lastBlockNumber){if(-2===this._emitted.block&&(this._emitted.block=r-1),Math.abs(this._emitted.block-r)>1e3)C.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${r})`),this.emit("error",C.makeError("network block skew detected",i.Logger.errors.NETWORK_ERROR,{blockNumber:r,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",r);else for(let e=this._emitted.block+1;e<=r;e++)this.emit("block",e);this._emitted.block!==r&&(this._emitted.block=r,Object.keys(this._emitted).forEach((e=>{if("block"===e)return;const t=this._emitted[e];"pending"!==t&&r-t>12&&delete this._emitted[e]}))),-2===this._lastBlockNumber&&(this._lastBlockNumber=r-1),this._events.forEach((e=>{switch(e.type){case"tx":{const r=e.hash;let n=this.getTransactionReceipt(r).then((e=>e&&null!=e.blockNumber?(this._emitted["t:"+r]=e.blockNumber,this.emit(r,e),null):null)).catch((e=>{this.emit("error",e)}));t.push(n);break}case"filter":if(!e._inflight){e._inflight=!0,-2===e._lastBlockNumber&&(e._lastBlockNumber=r-1);const n=e.filter;n.fromBlock=e._lastBlockNumber+1,n.toBlock=r;const i=n.toBlock-this._maxFilterBlockRange;i>n.fromBlock&&(n.fromBlock=i),n.fromBlock<0&&(n.fromBlock=0);const o=this.getLogs(n).then((t=>{e._inflight=!1,0!==t.length&&t.forEach((t=>{t.blockNumber>e._lastBlockNumber&&(e._lastBlockNumber=t.blockNumber),this._emitted["b:"+t.blockHash]=t.blockNumber,this._emitted["t:"+t.transactionHash]=t.blockNumber,this.emit(n,t)}))})).catch((t=>{this.emit("error",t),e._inflight=!1}));t.push(o)}}})),this._lastBlockNumber=r,Promise.all(t).then((()=>{this.emit("didPoll",e)})).catch((e=>{this.emit("error",e)}))}else this.emit("didPoll",e)}))}resetEventsBlock(e){this._lastBlockNumber=e-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return R(this,void 0,void 0,(function*(){return C.throwError("provider does not support network detection",i.Logger.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})}))}getNetwork(){return R(this,void 0,void 0,(function*(){const e=yield this._ready(),t=yield this.detectNetwork();if(e.chainId!==t.chainId){if(this.anyNetwork)return this._network=t,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",t,e),yield F(0),this._network;const r=C.makeError("underlying network changed",i.Logger.errors.NETWORK_ERROR,{event:"changed",network:e,detectedNetwork:t});throw this.emit("error",r),r}return e}))}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then((e=>{this._setFastBlockNumber(e)}),(e=>{})),null!=this._fastBlockNumber?this._fastBlockNumber:-1}get polling(){return null!=this._poller}set polling(e){e&&!this._poller?(this._poller=setInterval((()=>{this.poll()}),this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout((()=>{this.poll(),this._bootstrapPoll=setTimeout((()=>{this._poller||this.poll(),this._bootstrapPoll=null}),this.pollingInterval)}),0))):!e&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(e){if("number"!=typeof e||e<=0||parseInt(String(e))!=e)throw new Error("invalid polling interval");this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval((()=>{this.poll()}),this._pollingInterval))}_getFastBlockNumber(){const e=H();return e-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=e,this._fastBlockNumberPromise=this.getBlockNumber().then((e=>((null==this._fastBlockNumber||e>this._fastBlockNumber)&&(this._fastBlockNumber=e),this._fastBlockNumber)))),this._fastBlockNumberPromise}_setFastBlockNumber(e){null!=this._fastBlockNumber&&e<this._fastBlockNumber||(this._fastQueryDate=H(),(null==this._fastBlockNumber||e>this._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))}waitForTransaction(e,t,r){return R(this,void 0,void 0,(function*(){return this._waitForTransaction(e,null==t?1:t,r||0,null)}))}_waitForTransaction(e,t,r,n){return R(this,void 0,void 0,(function*(){const o=yield this.getTransactionReceipt(e);return(o?o.confirmations:0)>=t?o:new Promise(((o,a)=>{const s=[];let u=!1;const c=function(){return!!u||(u=!0,s.forEach((e=>{e()})),!1)},f=e=>{e.confirmations<t||c()||o(e)};if(this.on(e,f),s.push((()=>{this.removeListener(e,f)})),n){let r=n.startBlock,o=null;const f=s=>R(this,void 0,void 0,(function*(){u||(yield F(1e3),this.getTransactionCount(n.from).then((l=>R(this,void 0,void 0,(function*(){if(!u){if(l<=n.nonce)r=s;else{{const t=yield this.getTransaction(e);if(t&&null!=t.blockNumber)return}for(null==o&&(o=r-3,o<n.startBlock&&(o=n.startBlock));o<=s;){if(u)return;const r=yield this.getBlockWithTransactions(o);for(let o=0;o<r.transactions.length;o++){const s=r.transactions[o];if(s.hash===e)return;if(s.from===n.from&&s.nonce===n.nonce){if(u)return;const r=yield this.waitForTransaction(s.hash,t);if(c())return;let o="replaced";return s.data===n.data&&s.to===n.to&&s.value.eq(n.value)?o="repriced":"0x"===s.data&&s.from===s.to&&s.value.isZero()&&(o="cancelled"),void a(C.makeError("transaction was replaced",i.Logger.errors.TRANSACTION_REPLACED,{cancelled:"replaced"===o||"cancelled"===o,reason:o,replacement:this._wrapTransaction(s),hash:e,receipt:r}))}}o++}}u||this.once("block",f)}}))),(e=>{u||this.once("block",f)})))}));if(u)return;this.once("block",f),s.push((()=>{this.removeListener("block",f)}))}if("number"==typeof r&&r>0){const e=setTimeout((()=>{c()||a(C.makeError("timeout exceeded",i.Logger.errors.TIMEOUT,{timeout:r}))}),r);e.unref&&e.unref(),s.push((()=>{clearTimeout(e)}))}}))}))}getBlockNumber(){return R(this,void 0,void 0,(function*(){return this._getInternalBlockNumber(0)}))}getGasPrice(){return R(this,void 0,void 0,(function*(){yield this.getNetwork();const e=yield this.perform("getGasPrice",{});try{return b.O$.from(e)}catch(t){return C.throwError("bad result from backend",i.Logger.errors.SERVER_ERROR,{method:"getGasPrice",result:e,error:t})}}))}getBalance(e,t){return R(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield(0,v.mE)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform("getBalance",r);try{return b.O$.from(n)}catch(e){return C.throwError("bad result from backend",i.Logger.errors.SERVER_ERROR,{method:"getBalance",params:r,result:n,error:e})}}))}getTransactionCount(e,t){return R(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield(0,v.mE)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform("getTransactionCount",r);try{return b.O$.from(n).toNumber()}catch(e){return C.throwError("bad result from backend",i.Logger.errors.SERVER_ERROR,{method:"getTransactionCount",params:r,result:n,error:e})}}))}getCode(e,t){return R(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield(0,v.mE)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform("getCode",r);try{return(0,y.hexlify)(n)}catch(e){return C.throwError("bad result from backend",i.Logger.errors.SERVER_ERROR,{method:"getCode",params:r,result:n,error:e})}}))}getStorageAt(e,t,r){return R(this,void 0,void 0,(function*(){yield this.getNetwork();const n=yield(0,v.mE)({address:this._getAddress(e),blockTag:this._getBlockTag(r),position:Promise.resolve(t).then((e=>(0,y.hexValue)(e)))}),o=yield this.perform("getStorageAt",n);try{return(0,y.hexlify)(o)}catch(e){return C.throwError("bad result from backend",i.Logger.errors.SERVER_ERROR,{method:"getStorageAt",params:n,result:o,error:e})}}))}_wrapTransaction(e,t,r){if(null!=t&&32!==(0,y.hexDataLength)(t))throw new Error("invalid response - sendTransaction");const n=e;return null!=t&&e.hash!==t&&C.throwError("Transaction hash mismatch from Provider.sendTransaction.",i.Logger.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:t}),n.wait=(t,n)=>R(this,void 0,void 0,(function*(){let o;null==t&&(t=1),null==n&&(n=0),0!==t&&null!=r&&(o={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:r});const a=yield this._waitForTransaction(e.hash,t,n,o);return null==a&&0===t?null:(this._emitted["t:"+e.hash]=a.blockNumber,0===a.status&&C.throwError("transaction failed",i.Logger.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:a}),a)})),n}sendTransaction(e){return R(this,void 0,void 0,(function*(){yield this.getNetwork();const t=yield Promise.resolve(e).then((e=>(0,y.hexlify)(e))),r=this.formatter.transaction(e);null==r.confirmations&&(r.confirmations=0);const n=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{const e=yield this.perform("sendTransaction",{signedTransaction:t});return this._wrapTransaction(r,e,n)}catch(e){throw e.transaction=r,e.transactionHash=r.hash,e}}))}_getTransactionRequest(e){return R(this,void 0,void 0,(function*(){const t=yield e,r={};return["from","to"].forEach((e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then((e=>e?this._getAddress(e):null)))})),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach((e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then((e=>e?b.O$.from(e):null)))})),["type"].forEach((e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then((e=>null!=e?e:null)))})),t.accessList&&(r.accessList=this.formatter.accessList(t.accessList)),["data"].forEach((e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then((e=>e?(0,y.hexlify)(e):null)))})),this.formatter.transactionRequest(yield(0,v.mE)(r))}))}_getFilter(e){return R(this,void 0,void 0,(function*(){e=yield e;const t={};return null!=e.address&&(t.address=this._getAddress(e.address)),["blockHash","topics"].forEach((r=>{null!=e[r]&&(t[r]=e[r])})),["fromBlock","toBlock"].forEach((r=>{null!=e[r]&&(t[r]=this._getBlockTag(e[r]))})),this.formatter.filter(yield(0,v.mE)(t))}))}_call(e,t,r){return R(this,void 0,void 0,(function*(){r>=10&&C.throwError("CCIP read exceeded maximum redirections",i.Logger.errors.SERVER_ERROR,{redirects:r,transaction:e});const n=e.to,o=yield this.perform("call",{transaction:e,blockTag:t});if(r>=0&&"latest"===t&&null!=n&&"0x556f1830"===o.substring(0,10)&&(0,y.hexDataLength)(o)%32==4)try{const a=(0,y.hexDataSlice)(o,4),s=(0,y.hexDataSlice)(a,0,32);b.O$.from(s).eq(n)||C.throwError("CCIP Read sender did not match",i.Logger.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:o});const u=[],c=b.O$.from((0,y.hexDataSlice)(a,32,64)).toNumber(),f=b.O$.from((0,y.hexDataSlice)(a,c,c+32)).toNumber(),l=(0,y.hexDataSlice)(a,c+32);for(let t=0;t<f;t++){const r=Z(l,32*t);null==r&&C.throwError("CCIP Read contained corrupt URL string",i.Logger.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:o}),u.push(r)}const d=J(a,64);b.O$.from((0,y.hexDataSlice)(a,100,128)).isZero()||C.throwError("CCIP Read callback selector included junk",i.Logger.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:o});const h=(0,y.hexDataSlice)(a,96,100),p=J(a,128),g=yield this.ccipReadFetch(e,d,u);null==g&&C.throwError("CCIP Read disabled or provided no URLs",i.Logger.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:o});const m={to:n,data:(0,y.hexConcat)([h,ee([g,p])])};return this._call(m,t,r+1)}catch(e){if(e.code===i.Logger.errors.SERVER_ERROR)throw e}try{return(0,y.hexlify)(o)}catch(r){return C.throwError("bad result from backend",i.Logger.errors.SERVER_ERROR,{method:"call",params:{transaction:e,blockTag:t},result:o,error:r})}}))}call(e,t){return R(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield(0,v.mE)({transaction:this._getTransactionRequest(e),blockTag:this._getBlockTag(t),ccipReadEnabled:Promise.resolve(e.ccipReadEnabled)});return this._call(r.transaction,r.blockTag,r.ccipReadEnabled?0:-1)}))}estimateGas(e){return R(this,void 0,void 0,(function*(){yield this.getNetwork();const t=yield(0,v.mE)({transaction:this._getTransactionRequest(e)}),r=yield this.perform("estimateGas",t);try{return b.O$.from(r)}catch(e){return C.throwError("bad result from backend",i.Logger.errors.SERVER_ERROR,{method:"estimateGas",params:t,result:r,error:e})}}))}_getAddress(e){return R(this,void 0,void 0,(function*(){"string"!=typeof(e=yield e)&&C.throwArgumentError("invalid address or ENS name","name",e);const t=yield this.resolveName(e);return null==t&&C.throwError("ENS name not configured",i.Logger.errors.UNSUPPORTED_OPERATION,{operation:`resolveName(${JSON.stringify(e)})`}),t}))}_getBlock(e,t){return R(this,void 0,void 0,(function*(){yield this.getNetwork(),e=yield e;let r=-128;const n={includeTransactions:!!t};if((0,y.isHexString)(e,32))n.blockHash=e;else try{n.blockTag=yield this._getBlockTag(e),(0,y.isHexString)(n.blockTag)&&(r=parseInt(n.blockTag.substring(2),16))}catch(t){C.throwArgumentError("invalid block hash or block tag","blockHashOrBlockTag",e)}return(0,x.$l)((()=>R(this,void 0,void 0,(function*(){const e=yield this.perform("getBlock",n);if(null==e)return null!=n.blockHash&&null==this._emitted["b:"+n.blockHash]||null!=n.blockTag&&r>this._emitted.block?null:void 0;if(t){let t=null;for(let r=0;r<e.transactions.length;r++){const n=e.transactions[r];if(null==n.blockNumber)n.confirmations=0;else if(null==n.confirmations){null==t&&(t=yield this._getInternalBlockNumber(100+2*this.pollingInterval));let e=t-n.blockNumber+1;e<=0&&(e=1),n.confirmations=e}}const r=this.formatter.blockWithTransactions(e);return r.transactions=r.transactions.map((e=>this._wrapTransaction(e))),r}return this.formatter.block(e)}))),{oncePoll:this})}))}getBlock(e){return this._getBlock(e,!1)}getBlockWithTransactions(e){return this._getBlock(e,!0)}getTransaction(e){return R(this,void 0,void 0,(function*(){yield this.getNetwork(),e=yield e;const t={transactionHash:this.formatter.hash(e,!0)};return(0,x.$l)((()=>R(this,void 0,void 0,(function*(){const r=yield this.perform("getTransaction",t);if(null==r)return null==this._emitted["t:"+e]?null:void 0;const n=this.formatter.transactionResponse(r);if(null==n.blockNumber)n.confirmations=0;else if(null==n.confirmations){let e=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-n.blockNumber+1;e<=0&&(e=1),n.confirmations=e}return this._wrapTransaction(n)}))),{oncePoll:this})}))}getTransactionReceipt(e){return R(this,void 0,void 0,(function*(){yield this.getNetwork(),e=yield e;const t={transactionHash:this.formatter.hash(e,!0)};return(0,x.$l)((()=>R(this,void 0,void 0,(function*(){const r=yield this.perform("getTransactionReceipt",t);if(null==r)return null==this._emitted["t:"+e]?null:void 0;if(null==r.blockHash)return;const n=this.formatter.receipt(r);if(null==n.blockNumber)n.confirmations=0;else if(null==n.confirmations){let e=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-n.blockNumber+1;e<=0&&(e=1),n.confirmations=e}return n}))),{oncePoll:this})}))}getLogs(e){return R(this,void 0,void 0,(function*(){yield this.getNetwork();const t=yield(0,v.mE)({filter:this._getFilter(e)}),r=yield this.perform("getLogs",t);return r.forEach((e=>{null==e.removed&&(e.removed=!1)})),j.arrayOf(this.formatter.filterLog.bind(this.formatter))(r)}))}getEtherPrice(){return R(this,void 0,void 0,(function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})}))}_getBlockTag(e){return R(this,void 0,void 0,(function*(){if("number"==typeof(e=yield e)&&e<0){e%1&&C.throwArgumentError("invalid BlockTag","blockTag",e);let t=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return t+=e,t<0&&(t=0),this.formatter.blockTag(t)}return this.formatter.blockTag(e)}))}getResolver(e){return R(this,void 0,void 0,(function*(){let t=e;for(;;){if(""===t||"."===t)return null;if("eth"!==e&&"eth"===t)return null;const r=yield this._getResolver(t,"getResolver");if(null!=r){const n=new te(this,r,e);return t===e||(yield n.supportsWildcard())?n:null}t=t.split(".").slice(1).join(".")}}))}_getResolver(e,t){return R(this,void 0,void 0,(function*(){null==t&&(t="ENS");const r=yield this.getNetwork();r.ensAddress||C.throwError("network does not support ENS",i.Logger.errors.UNSUPPORTED_OPERATION,{operation:t,network:r.name});try{const t=yield this.call({to:r.ensAddress,data:"0x0178b8bf"+(0,m.VM)(e).substring(2)});return this.formatter.callAddress(t)}catch(e){}return null}))}resolveName(e){return R(this,void 0,void 0,(function*(){e=yield e;try{return Promise.resolve(this.formatter.address(e))}catch(t){if((0,y.isHexString)(e))throw t}"string"!=typeof e&&C.throwArgumentError("invalid ENS name","name",e);const t=yield this.getResolver(e);return t?yield t.getAddress():null}))}lookupAddress(e){return R(this,void 0,void 0,(function*(){e=yield e;const t=(e=this.formatter.address(e)).substring(2).toLowerCase()+".addr.reverse",r=yield this._getResolver(t,"lookupAddress");if(null==r)return null;const n=Z(yield this.call({to:r,data:"0x691f3431"+(0,m.VM)(t).substring(2)}),0);return(yield this.resolveName(n))!=e?null:n}))}getAvatar(e){return R(this,void 0,void 0,(function*(){let t=null;if((0,y.isHexString)(e)){const r=this.formatter.address(e).substring(2).toLowerCase()+".addr.reverse",n=yield this._getResolver(r,"getAvatar");if(!n)return null;t=new te(this,n,r);try{const e=yield t.getAvatar();if(e)return e.url}catch(e){if(e.code!==i.Logger.errors.CALL_EXCEPTION)throw e}try{const e=Z(yield this.call({to:n,data:"0x691f3431"+(0,m.VM)(r).substring(2)}),0);t=yield this.getResolver(e)}catch(e){if(e.code!==i.Logger.errors.CALL_EXCEPTION)throw e;return null}}else if(t=yield this.getResolver(e),!t)return null;const r=yield t.getAvatar();return null==r?null:r.url}))}perform(e,t){return C.throwError(e+" not implemented",i.Logger.errors.NOT_IMPLEMENTED,{operation:e})}_startEvent(e){this.polling=this._events.filter((e=>e.pollable())).length>0}_stopEvent(e){this.polling=this._events.filter((e=>e.pollable())).length>0}_addEventListener(e,t,r){const n=new z(D(e),t,r);return this._events.push(n),this._startEvent(n),this}on(e,t){return this._addEventListener(e,t,!1)}once(e,t){return this._addEventListener(e,t,!0)}emit(e,...t){let r=!1,n=[],i=D(e);return this._events=this._events.filter((e=>e.tag!==i||(setTimeout((()=>{e.listener.apply(this,t)}),0),r=!0,!e.once||(n.push(e),!1)))),n.forEach((e=>{this._stopEvent(e)})),r}listenerCount(e){if(!e)return this._events.length;let t=D(e);return this._events.filter((e=>e.tag===t)).length}listeners(e){if(null==e)return this._events.map((e=>e.listener));let t=D(e);return this._events.filter((e=>e.tag===t)).map((e=>e.listener))}off(e,t){if(null==t)return this.removeAllListeners(e);const r=[];let n=!1,i=D(e);return this._events=this._events.filter((e=>e.tag!==i||e.listener!=t||!!n||(n=!0,r.push(e),!1))),r.forEach((e=>{this._stopEvent(e)})),this}removeAllListeners(e){let t=[];if(null==e)t=this._events,this._events=[];else{const r=D(e);this._events=this._events.filter((e=>e.tag!==r||(t.push(e),!1)))}return t.forEach((e=>{this._stopEvent(e)})),this}}var oe=r(48171),ae=r(67827),se=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))};const ue=new i.Logger(P),ce=["call","estimateGas"];function fe(e,t){if(null==e)return null;if("string"==typeof e.message&&e.message.match("reverted")){const r=(0,y.isHexString)(e.data)?e.data:null;if(!t||r)return{message:e.message,data:r}}if("object"==typeof e){for(const r in e){const n=fe(e[r],t);if(n)return n}return null}if("string"==typeof e)try{return fe(JSON.parse(e),t)}catch(e){}return null}function le(e,t,r){const n=r.transaction||r.signedTransaction;if("call"===e){const e=fe(t,!0);if(e)return e.data;ue.throwError("missing revert data in call exception; Transaction reverted without a reason string",i.Logger.errors.CALL_EXCEPTION,{data:"0x",transaction:n,error:t})}if("estimateGas"===e){let r=fe(t.body,!1);null==r&&(r=fe(t,!1)),r&&ue.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",i.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{reason:r.message,method:e,transaction:n,error:t})}let o=t.message;throw t.code===i.Logger.errors.SERVER_ERROR&&t.error&&"string"==typeof t.error.message?o=t.error.message:"string"==typeof t.body?o=t.body:"string"==typeof t.responseText&&(o=t.responseText),o=(o||"").toLowerCase(),o.match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&ue.throwError("insufficient funds for intrinsic transaction cost",i.Logger.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:n}),o.match(/nonce (is )?too low/i)&&ue.throwError("nonce has already been used",i.Logger.errors.NONCE_EXPIRED,{error:t,method:e,transaction:n}),o.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&ue.throwError("replacement fee too low",i.Logger.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:n}),o.match(/only replay-protected/i)&&ue.throwError("legacy pre-eip-155 transactions not supported",i.Logger.errors.UNSUPPORTED_OPERATION,{error:t,method:e,transaction:n}),ce.indexOf(e)>=0&&o.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&ue.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",i.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:n}),t}function de(e){return new Promise((function(t){setTimeout(t,e)}))}function he(e){if(e.error){const t=new Error(e.error.message);throw t.code=e.error.code,t.data=e.error.data,t}return e.result}function pe(e){return e?e.toLowerCase():e}const be={};class ye extends oe.E{constructor(e,t,r){if(super(),e!==be)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");(0,v.zG)(this,"provider",t),null==r&&(r=0),"string"==typeof r?((0,v.zG)(this,"_address",this.provider.formatter.address(r)),(0,v.zG)(this,"_index",null)):"number"==typeof r?((0,v.zG)(this,"_index",r),(0,v.zG)(this,"_address",null)):ue.throwArgumentError("invalid address or index","addressOrIndex",r)}connect(e){return ue.throwError("cannot alter JSON-RPC Signer connection",i.Logger.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new ge(be,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then((e=>(e.length<=this._index&&ue.throwError("unknown account #"+this._index,i.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(e[this._index]))))}sendUncheckedTransaction(e){e=(0,v.DC)(e);const t=this.getAddress().then((e=>(e&&(e=e.toLowerCase()),e)));if(null==e.gasLimit){const r=(0,v.DC)(e);r.from=t,e.gasLimit=this.provider.estimateGas(r)}return null!=e.to&&(e.to=Promise.resolve(e.to).then((e=>se(this,void 0,void 0,(function*(){if(null==e)return null;const t=yield this.provider.resolveName(e);return null==t&&ue.throwArgumentError("provided ENS name resolves to null","tx.to",e),t}))))),(0,v.mE)({tx:(0,v.mE)(e),sender:t}).then((({tx:t,sender:r})=>{null!=t.from?t.from.toLowerCase()!==r&&ue.throwArgumentError("from address mismatch","transaction",e):t.from=r;const n=this.provider.constructor.hexlifyTransaction(t,{from:!0});return this.provider.send("eth_sendTransaction",[n]).then((e=>e),(e=>("string"==typeof e.message&&e.message.match(/user denied/i)&&ue.throwError("user rejected transaction",i.Logger.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:t}),le("sendTransaction",e,n))))}))}signTransaction(e){return ue.throwError("signing transactions is unsupported",i.Logger.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(e){return se(this,void 0,void 0,(function*(){const t=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),r=yield this.sendUncheckedTransaction(e);try{return yield(0,x.$l)((()=>se(this,void 0,void 0,(function*(){const e=yield this.provider.getTransaction(r);if(null!==e)return this.provider._wrapTransaction(e,r,t)}))),{oncePoll:this.provider})}catch(e){throw e.transactionHash=r,e}}))}signMessage(e){return se(this,void 0,void 0,(function*(){const t="string"==typeof e?(0,_.Y0)(e):e,r=yield this.getAddress();try{return yield this.provider.send("personal_sign",[(0,y.hexlify)(t),r.toLowerCase()])}catch(t){throw"string"==typeof t.message&&t.message.match(/user denied/i)&&ue.throwError("user rejected signing",i.Logger.errors.ACTION_REJECTED,{action:"signMessage",from:r,messageData:e}),t}}))}_legacySignMessage(e){return se(this,void 0,void 0,(function*(){const t="string"==typeof e?(0,_.Y0)(e):e,r=yield this.getAddress();try{return yield this.provider.send("eth_sign",[r.toLowerCase(),(0,y.hexlify)(t)])}catch(t){throw"string"==typeof t.message&&t.message.match(/user denied/i)&&ue.throwError("user rejected signing",i.Logger.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:r,messageData:e}),t}}))}_signTypedData(e,t,r){return se(this,void 0,void 0,(function*(){const n=yield ae.E.resolveNames(e,t,r,(e=>this.provider.resolveName(e))),o=yield this.getAddress();try{return yield this.provider.send("eth_signTypedData_v4",[o.toLowerCase(),JSON.stringify(ae.E.getPayload(n.domain,t,n.value))])}catch(e){throw"string"==typeof e.message&&e.message.match(/user denied/i)&&ue.throwError("user rejected signing",i.Logger.errors.ACTION_REJECTED,{action:"_signTypedData",from:o,messageData:{domain:n.domain,types:t,value:n.value}}),e}}))}unlock(e){return se(this,void 0,void 0,(function*(){const t=this.provider,r=yield this.getAddress();return t.send("personal_unlockAccount",[r.toLowerCase(),e,null])}))}}class ge extends ye{sendTransaction(e){return this.sendUncheckedTransaction(e).then((e=>({hash:e,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:t=>this.provider.waitForTransaction(e,t)})))}}const me={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};class ve extends ie{constructor(e,t){let r=t;null==r&&(r=new Promise(((e,t)=>{setTimeout((()=>{this.detectNetwork().then((t=>{e(t)}),(e=>{t(e)}))}),0)}))),super(r),e||(e=(0,v.tu)(this.constructor,"defaultUrl")()),"string"==typeof e?(0,v.zG)(this,"connection",Object.freeze({url:e})):(0,v.zG)(this,"connection",Object.freeze((0,v.DC)(e))),this._nextId=42}get _cache(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return"http://localhost:8545"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout((()=>{this._cache.detectNetwork=null}),0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return se(this,void 0,void 0,(function*(){yield de(0);let e=null;try{e=yield this.send("eth_chainId",[])}catch(t){try{e=yield this.send("net_version",[])}catch(e){}}if(null!=e){const t=(0,v.tu)(this.constructor,"getNetwork");try{return t(b.O$.from(e).toNumber())}catch(t){return ue.throwError("could not detect network",i.Logger.errors.NETWORK_ERROR,{chainId:e,event:"invalidNetwork",serverError:t})}}return ue.throwError("could not detect network",i.Logger.errors.NETWORK_ERROR,{event:"noNetwork"})}))}getSigner(e){return new ye(be,this,e)}getUncheckedSigner(e){return this.getSigner(e).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then((e=>e.map((e=>this.formatter.address(e)))))}send(e,t){const r={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:(0,v.p$)(r),provider:this});const n=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(n&&this._cache[e])return this._cache[e];const i=(0,x.rd)(this.connection,JSON.stringify(r),he).then((e=>(this.emit("debug",{action:"response",request:r,response:e,provider:this}),e)),(e=>{throw this.emit("debug",{action:"response",error:e,request:r,provider:this}),e}));return n&&(this._cache[e]=i,setTimeout((()=>{this._cache[e]=null}),0)),i}prepareRequest(e,t){switch(e){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[pe(t.address),t.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[pe(t.address),t.blockTag]];case"getCode":return["eth_getCode",[pe(t.address),t.blockTag]];case"getStorageAt":return["eth_getStorageAt",[pe(t.address),(0,y.hexZeroPad)(t.position,32),t.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[t.signedTransaction]];case"getBlock":return t.blockTag?["eth_getBlockByNumber",[t.blockTag,!!t.includeTransactions]]:t.blockHash?["eth_getBlockByHash",[t.blockHash,!!t.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[t.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[t.transactionHash]];case"call":return["eth_call",[(0,v.tu)(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0}),t.blockTag]];case"estimateGas":return["eth_estimateGas",[(0,v.tu)(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0})]];case"getLogs":return t.filter&&null!=t.filter.address&&(t.filter.address=pe(t.filter.address)),["eth_getLogs",[t.filter]]}return null}perform(e,t){return se(this,void 0,void 0,(function*(){if("call"===e||"estimateGas"===e){const e=t.transaction;if(e&&null!=e.type&&b.O$.from(e.type).isZero()&&null==e.maxFeePerGas&&null==e.maxPriorityFeePerGas){const r=yield this.getFeeData();null==r.maxFeePerGas&&null==r.maxPriorityFeePerGas&&((t=(0,v.DC)(t)).transaction=(0,v.DC)(e),delete t.transaction.type)}}const r=this.prepareRequest(e,t);null==r&&ue.throwError(e+" not implemented",i.Logger.errors.NOT_IMPLEMENTED,{operation:e});try{return yield this.send(r[0],r[1])}catch(r){return le(e,r,t)}}))}_startEvent(e){"pending"===e.tag&&this._startPending(),super._startEvent(e)}_startPending(){if(null!=this._pendingFilter)return;const e=this,t=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=t,t.then((function(r){return function n(){e.send("eth_getFilterChanges",[r]).then((function(r){if(e._pendingFilter!=t)return null;let n=Promise.resolve();return r.forEach((function(t){e._emitted["t:"+t.toLowerCase()]="pending",n=n.then((function(){return e.getTransaction(t).then((function(t){return e.emit("pending",t),null}))}))})),n.then((function(){return de(1e3)}))})).then((function(){if(e._pendingFilter==t)return setTimeout((function(){n()}),0),null;e.send("eth_uninstallFilter",[r])})).catch((e=>{}))}(),r})).catch((e=>{}))}_stopEvent(e){"pending"===e.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),super._stopEvent(e)}static hexlifyTransaction(e,t){const r=(0,v.DC)(me);if(t)for(const e in t)t[e]&&(r[e]=!0);(0,v.uj)(e,r);const n={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach((function(t){if(null==e[t])return;const r=(0,y.hexValue)(b.O$.from(e[t]));"gasLimit"===t&&(t="gas"),n[t]=r})),["from","to","data"].forEach((function(t){null!=e[t]&&(n[t]=(0,y.hexlify)(e[t]))})),e.accessList&&(n.accessList=(0,E.z7)(e.accessList)),n}}let we=null;try{if(we=WebSocket,null==we)throw new Error("inject please")}catch(e){const t=new i.Logger(P);we=function(){t.throwError("WebSockets not supported in this environment",i.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}var _e=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))};const xe=new i.Logger(P);let Oe=1;class ke extends ve{constructor(e,t){"any"===t&&xe.throwError("WebSocketProvider does not support 'any' network yet",i.Logger.errors.UNSUPPORTED_OPERATION,{operation:"network:any"}),super("string"==typeof e?e:"_websocket",t),this._pollingInterval=-1,this._wsReady=!1,"string"==typeof e?(0,v.zG)(this,"_websocket",new we(this.connection.url)):(0,v.zG)(this,"_websocket",e),(0,v.zG)(this,"_requests",{}),(0,v.zG)(this,"_subs",{}),(0,v.zG)(this,"_subIds",{}),(0,v.zG)(this,"_detectNetwork",super.detectNetwork()),this.websocket.onopen=()=>{this._wsReady=!0,Object.keys(this._requests).forEach((e=>{this.websocket.send(this._requests[e].payload)}))},this.websocket.onmessage=e=>{const t=e.data,r=JSON.parse(t);if(null!=r.id){const e=String(r.id),n=this._requests[e];if(delete this._requests[e],void 0!==r.result)n.callback(null,r.result),this.emit("debug",{action:"response",request:JSON.parse(n.payload),response:r.result,provider:this});else{let e=null;r.error?(e=new Error(r.error.message||"unknown error"),(0,v.zG)(e,"code",r.error.code||null),(0,v.zG)(e,"response",t)):e=new Error("unknown error"),n.callback(e,void 0),this.emit("debug",{action:"response",error:e,request:JSON.parse(n.payload),provider:this})}}else if("eth_subscription"===r.method){const e=this._subs[r.params.subscription];e&&e.processFunc(r.params.result)}else console.warn("this should not happen")};const r=setInterval((()=>{this.emit("poll")}),1e3);r.unref&&r.unref()}get websocket(){return this._websocket}detectNetwork(){return this._detectNetwork}get pollingInterval(){return 0}resetEventsBlock(e){xe.throwError("cannot reset events block on WebSocketProvider",i.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resetEventBlock"})}set pollingInterval(e){xe.throwError("cannot set polling interval on WebSocketProvider",i.Logger.errors.UNSUPPORTED_OPERATION,{operation:"setPollingInterval"})}poll(){return _e(this,void 0,void 0,(function*(){return null}))}set polling(e){e&&xe.throwError("cannot set polling on WebSocketProvider",i.Logger.errors.UNSUPPORTED_OPERATION,{operation:"setPolling"})}send(e,t){const r=Oe++;return new Promise(((n,i)=>{const o=JSON.stringify({method:e,params:t,id:r,jsonrpc:"2.0"});this.emit("debug",{action:"request",request:JSON.parse(o),provider:this}),this._requests[String(r)]={callback:function(e,t){return e?i(e):n(t)},payload:o},this._wsReady&&this.websocket.send(o)}))}static defaultUrl(){return"ws://localhost:8546"}_subscribe(e,t,r){return _e(this,void 0,void 0,(function*(){let n=this._subIds[e];null==n&&(n=Promise.all(t).then((e=>this.send("eth_subscribe",e))),this._subIds[e]=n);const i=yield n;this._subs[i]={tag:e,processFunc:r}}))}_startEvent(e){switch(e.type){case"block":this._subscribe("block",["newHeads"],(e=>{const t=b.O$.from(e.number).toNumber();this._emitted.block=t,this.emit("block",t)}));break;case"pending":this._subscribe("pending",["newPendingTransactions"],(e=>{this.emit("pending",e)}));break;case"filter":this._subscribe(e.tag,["logs",this._getFilter(e.filter)],(t=>{null==t.removed&&(t.removed=!1),this.emit(e.filter,this.formatter.filterLog(t))}));break;case"tx":{const t=e=>{const t=e.hash;this.getTransactionReceipt(t).then((e=>{e&&this.emit(t,e)}))};t(e),this._subscribe("tx",["newHeads"],(e=>{this._events.filter((e=>"tx"===e.type)).forEach(t)}));break}case"debug":case"poll":case"willPoll":case"didPoll":case"error":break;default:console.log("unhandled:",e)}}_stopEvent(e){let t=e.tag;if("tx"===e.type){if(this._events.filter((e=>"tx"===e.type)).length)return;t="tx"}else if(this.listenerCount(e.event))return;const r=this._subIds[t];r&&(delete this._subIds[t],r.then((e=>{this._subs[e]&&(delete this._subs[e],this.send("eth_unsubscribe",[e]))})))}destroy(){return _e(this,void 0,void 0,(function*(){this.websocket.readyState===we.CONNECTING&&(yield new Promise((e=>{this.websocket.onopen=function(){e(!0)},this.websocket.onerror=function(){e(!1)}}))),this.websocket.close(1e3)}))}}const Pe=new i.Logger(P);class Se extends ve{detectNetwork(){const e=Object.create(null,{detectNetwork:{get:()=>super.detectNetwork}});return t=this,r=void 0,o=function*(){let t=this.network;return null==t&&(t=yield e.detectNetwork.call(this),t||Pe.throwError("no network detected",i.Logger.errors.UNKNOWN_ERROR,{}),null==this._network&&((0,v.zG)(this,"_network",t),this.emit("network",t,null))),t},new((n=void 0)||(n=Promise))((function(e,i){function a(e){try{u(o.next(e))}catch(e){i(e)}}function s(e){try{u(o.throw(e))}catch(e){i(e)}}function u(t){var r;t.done?e(t.value):(r=t.value,r instanceof n?r:new n((function(e){e(r)}))).then(a,s)}u((o=o.apply(t,r||[])).next())}));var t,r,n,o}}class Ae extends Se{constructor(e,t){Pe.checkAbstract(new.target,Ae),e=(0,v.tu)(new.target,"getNetwork")(e),t=(0,v.tu)(new.target,"getApiKey")(t),super((0,v.tu)(new.target,"getUrl")(e,t),e),"string"==typeof t?(0,v.zG)(this,"apiKey",t):null!=t&&Object.keys(t).forEach((e=>{(0,v.zG)(this,e,t[e])}))}_startPending(){Pe.warn("WARNING: API provider does not support pending filters")}isCommunityResource(){return!1}getSigner(e){return Pe.throwError("API provider does not support signing",i.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getSigner"})}listAccounts(){return Promise.resolve([])}static getApiKey(e){return e}static getUrl(e,t){return Pe.throwError("not implemented; sub-classes must override getUrl",i.Logger.errors.NOT_IMPLEMENTED,{operation:"getUrl"})}}const Ee=new i.Logger(P),Me="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";class je extends ke{constructor(e,t){const r=new Te(e,t);super(r.connection.url.replace(/^http/i,"ws").replace(".alchemyapi.",".ws.alchemyapi."),r.network),(0,v.zG)(this,"apiKey",r.apiKey)}isCommunityResource(){return this.apiKey===Me}}class Te extends Ae{static getWebSocketProvider(e,t){return new je(e,t)}static getApiKey(e){return null==e?Me:(e&&"string"!=typeof e&&Ee.throwArgumentError("invalid apiKey","apiKey",e),e)}static getUrl(e,t){let r=null;switch(e.name){case"homestead":r="eth-mainnet.alchemyapi.io/v2/";break;case"goerli":r="eth-goerli.g.alchemy.com/v2/";break;case"matic":r="polygon-mainnet.g.alchemy.com/v2/";break;case"maticmum":r="polygon-mumbai.g.alchemy.com/v2/";break;case"arbitrum":r="arb-mainnet.g.alchemy.com/v2/";break;case"arbitrum-goerli":r="arb-goerli.g.alchemy.com/v2/";break;case"optimism":r="opt-mainnet.g.alchemy.com/v2/";break;case"optimism-goerli":r="opt-goerli.g.alchemy.com/v2/";break;default:Ee.throwArgumentError("unsupported network","network",arguments[0])}return{allowGzip:!0,url:"https://"+r+t,throttleCallback:(e,r)=>(t===Me&&N(),Promise.resolve(!0))}}isCommunityResource(){return this.apiKey===Me}}const Be=new i.Logger(P),Ie="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";function Ne(e){switch(e){case"homestead":return"rpc.ankr.com/eth/";case"ropsten":return"rpc.ankr.com/eth_ropsten/";case"rinkeby":return"rpc.ankr.com/eth_rinkeby/";case"goerli":return"rpc.ankr.com/eth_goerli/";case"matic":return"rpc.ankr.com/polygon/";case"arbitrum":return"rpc.ankr.com/arbitrum/"}return Be.throwArgumentError("unsupported network","name",e)}class Re extends Ae{isCommunityResource(){return this.apiKey===Ie}static getApiKey(e){return null==e?Ie:e}static getUrl(e,t){null==t&&(t=Ie);const r={allowGzip:!0,url:"https://"+Ne(e.name)+t,throttleCallback:(e,r)=>(t.apiKey===Ie&&N(),Promise.resolve(!0))};return null!=t.projectSecret&&(r.user="",r.password=t.projectSecret),r}}const Ce=new i.Logger(P);class Ue extends Ae{static getApiKey(e){return null!=e&&Ce.throwArgumentError("apiKey not supported for cloudflare","apiKey",e),null}static getUrl(e,t){let r=null;return"homestead"===e.name?r="https://cloudflare-eth.com/":Ce.throwArgumentError("unsupported network","network",arguments[0]),r}perform(e,t){const r=Object.create(null,{perform:{get:()=>super.perform}});return n=this,i=void 0,a=function*(){return"getBlockNumber"===e?(yield r.perform.call(this,"getBlock",{blockTag:"latest"})).number:r.perform.call(this,e,t)},new((o=void 0)||(o=Promise))((function(e,t){function r(e){try{u(a.next(e))}catch(e){t(e)}}function s(e){try{u(a.throw(e))}catch(e){t(e)}}function u(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(r,s)}u((a=a.apply(n,i||[])).next())}));var n,i,o,a}}var Le=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))};const De=new i.Logger(P);function He(e){const t={};for(let r in e){if(null==e[r])continue;let n=e[r];"type"===r&&0===n||(n={type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[r]?(0,y.hexValue)((0,y.hexlify)(n)):"accessList"===r?"["+(0,E.z7)(n).map((e=>`{address:"${e.address}",storageKeys:["${e.storageKeys.join('","')}"]}`)).join(",")+"]":(0,y.hexlify)(n),t[r]=n)}return t}function Fe(e){if(0==e.status&&("No records found"===e.message||"No transactions found"===e.message))return e.result;if(1!=e.status||"string"!=typeof e.message||!e.message.match(/^OK/)){const t=new Error("invalid response");throw t.result=JSON.stringify(e),(e.result||"").toLowerCase().indexOf("rate limit")>=0&&(t.throttleRetry=!0),t}return e.result}function Ve(e){if(e&&0==e.status&&"NOTOK"==e.message&&(e.result||"").toLowerCase().indexOf("rate limit")>=0){const t=new Error("throttled response");throw t.result=JSON.stringify(e),t.throttleRetry=!0,t}if("2.0"!=e.jsonrpc){const t=new Error("invalid response");throw t.result=JSON.stringify(e),t}if(e.error){const t=new Error(e.error.message||"unknown error");throw e.error.code&&(t.code=e.error.code),e.error.data&&(t.data=e.error.data),t}return e.result}function ze(e){if("pending"===e)throw new Error("pending not supported");return"latest"===e?e:parseInt(e.substring(2),16)}function qe(e,t,r){if("call"===e&&t.code===i.Logger.errors.SERVER_ERROR){const e=t.error;if(e&&(e.message.match(/reverted/i)||e.message.match(/VM execution error/i))){let r=e.data;if(r&&(r="0x"+r.replace(/^.*0x/i,"")),(0,y.isHexString)(r))return r;De.throwError("missing revert data in call exception",i.Logger.errors.CALL_EXCEPTION,{error:t,data:"0x"})}}let n=t.message;throw t.code===i.Logger.errors.SERVER_ERROR&&(t.error&&"string"==typeof t.error.message?n=t.error.message:"string"==typeof t.body?n=t.body:"string"==typeof t.responseText&&(n=t.responseText)),n=(n||"").toLowerCase(),n.match(/insufficient funds/)&&De.throwError("insufficient funds for intrinsic transaction cost",i.Logger.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:r}),n.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&De.throwError("nonce has already been used",i.Logger.errors.NONCE_EXPIRED,{error:t,method:e,transaction:r}),n.match(/another transaction with same nonce/)&&De.throwError("replacement fee too low",i.Logger.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:r}),n.match(/execution failed due to an exception|execution reverted/)&&De.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",i.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:r}),t}class Ke extends ie{constructor(e,t){super(e),(0,v.zG)(this,"baseUrl",this.getBaseUrl()),(0,v.zG)(this,"apiKey",t||null)}getBaseUrl(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"matic":return"https://api.polygonscan.com";case"maticmum":return"https://api-testnet.polygonscan.com";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io"}return De.throwArgumentError("unsupported network","network",this.network.name)}getUrl(e,t){const r=Object.keys(t).reduce(((e,r)=>{const n=t[r];return null!=n&&(e+=`&${r}=${n}`),e}),""),n=this.apiKey?`&apikey=${this.apiKey}`:"";return`${this.baseUrl}/api?module=${e}${r}${n}`}getPostUrl(){return`${this.baseUrl}/api`}getPostData(e,t){return t.module=e,t.apikey=this.apiKey,t}fetch(e,t,r){return Le(this,void 0,void 0,(function*(){const n=r?this.getPostUrl():this.getUrl(e,t),i=r?this.getPostData(e,t):null,o="proxy"===e?Ve:Fe;this.emit("debug",{action:"request",request:n,provider:this});const a={url:n,throttleSlotInterval:1e3,throttleCallback:(e,t)=>(this.isCommunityResource()&&N(),Promise.resolve(!0))};let s=null;i&&(a.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},s=Object.keys(i).map((e=>`${e}=${i[e]}`)).join("&"));const u=yield(0,x.rd)(a,s,o||Ve);return this.emit("debug",{action:"response",request:n,response:(0,v.p$)(u),provider:this}),u}))}detectNetwork(){return Le(this,void 0,void 0,(function*(){return this.network}))}perform(e,t){const r=Object.create(null,{perform:{get:()=>super.perform}});return Le(this,void 0,void 0,(function*(){switch(e){case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getBalance":return this.fetch("account",{action:"balance",address:t.address,tag:t.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:t.address,tag:t.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:t.address,tag:t.blockTag});case"getStorageAt":return this.fetch("proxy",{action:"eth_getStorageAt",address:t.address,position:t.position,tag:t.blockTag});case"sendTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:t.signedTransaction},!0).catch((e=>qe("sendTransaction",e,t.signedTransaction)));case"getBlock":if(t.blockTag)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:t.blockTag,boolean:t.includeTransactions?"true":"false"});throw new Error("getBlock by blockHash not implemented");case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:t.transactionHash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:t.transactionHash});case"call":{if("latest"!==t.blockTag)throw new Error("EtherscanProvider does not support blockTag for call");const e=He(t.transaction);e.module="proxy",e.action="eth_call";try{return yield this.fetch("proxy",e,!0)}catch(e){return qe("call",e,t.transaction)}}case"estimateGas":{const e=He(t.transaction);e.module="proxy",e.action="eth_estimateGas";try{return yield this.fetch("proxy",e,!0)}catch(e){return qe("estimateGas",e,t.transaction)}}case"getLogs":{const e={action:"getLogs"};if(t.filter.fromBlock&&(e.fromBlock=ze(t.filter.fromBlock)),t.filter.toBlock&&(e.toBlock=ze(t.filter.toBlock)),t.filter.address&&(e.address=t.filter.address),t.filter.topics&&t.filter.topics.length>0&&(t.filter.topics.length>1&&De.throwError("unsupported topic count",i.Logger.errors.UNSUPPORTED_OPERATION,{topics:t.filter.topics}),1===t.filter.topics.length)){const r=t.filter.topics[0];"string"==typeof r&&66===r.length||De.throwError("unsupported topic format",i.Logger.errors.UNSUPPORTED_OPERATION,{topic0:r}),e.topic0=r}const r=yield this.fetch("logs",e);let n={};for(let e=0;e<r.length;e++){const t=r[e];if(null==t.blockHash){if(null==n[t.blockNumber]){const e=yield this.getBlock(t.blockNumber);e&&(n[t.blockNumber]=e.hash)}t.blockHash=n[t.blockNumber]}}return r}case"getEtherPrice":return"homestead"!==this.network.name?0:parseFloat((yield this.fetch("stats",{action:"ethprice"})).ethusd)}return r.perform.call(this,e,t)}))}getHistory(e,t,r){return Le(this,void 0,void 0,(function*(){const n={action:"txlist",address:yield this.resolveName(e),startblock:null==t?0:t,endblock:null==r?99999999:r,sort:"asc"};return(yield this.fetch("account",n)).map((e=>{["contractAddress","to"].forEach((function(t){""==e[t]&&delete e[t]})),null==e.creates&&null!=e.contractAddress&&(e.creates=e.contractAddress);const t=this.formatter.transactionResponse(e);return e.timeStamp&&(t.timestamp=parseInt(e.timeStamp)),t}))}))}isCommunityResource(){return null==this.apiKey}}var We=r(52472),Ge=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))};const Xe=new i.Logger(P);function Ze(){return(new Date).getTime()}function Je(e){let t=null;for(let r=0;r<e.length;r++){const n=e[r];if(null==n)return null;t?t.name===n.name&&t.chainId===n.chainId&&(t.ensAddress===n.ensAddress||null==t.ensAddress&&null==n.ensAddress)||Xe.throwArgumentError("provider mismatch","networks",e):t=n}return t}function Ye(e,t){e=e.slice().sort();const r=Math.floor(e.length/2);if(e.length%2)return e[r];const n=e[r-1],i=e[r];return null!=t&&Math.abs(n-i)>t?null:(n+i)/2}function Qe(e){if(null===e)return"null";if("number"==typeof e||"boolean"==typeof e)return JSON.stringify(e);if("string"==typeof e)return e;if(b.O$.isBigNumber(e))return e.toString();if(Array.isArray(e))return JSON.stringify(e.map((e=>Qe(e))));if("object"==typeof e){const t=Object.keys(e);return t.sort(),"{"+t.map((t=>{let r=e[t];return r="function"==typeof r?"[function]":Qe(r),JSON.stringify(t)+":"+r})).join(",")+"}"}throw new Error("unknown value type: "+typeof e)}let $e=1;function et(e){let t=null,r=null,n=new Promise((n=>{t=function(){r&&(clearTimeout(r),r=null),n()},r=setTimeout(t,e)}));return{cancel:t,getPromise:function(){return n},wait:e=>(n=n.then(e),n)}}const tt=[i.Logger.errors.CALL_EXCEPTION,i.Logger.errors.INSUFFICIENT_FUNDS,i.Logger.errors.NONCE_EXPIRED,i.Logger.errors.REPLACEMENT_UNDERPRICED,i.Logger.errors.UNPREDICTABLE_GAS_LIMIT],rt=["address","args","errorArgs","errorSignature","method","transaction"];function nt(e,t){const r={weight:e.weight};return Object.defineProperty(r,"provider",{get:()=>e.provider}),e.start&&(r.start=e.start),t&&(r.duration=t-e.start),e.done&&(e.error?r.error=e.error:r.result=e.result||null),r}function it(e,t){return Ge(this,void 0,void 0,(function*(){const r=e.provider;return null!=r.blockNumber&&r.blockNumber>=t||-1===t?r:(0,x.$l)((()=>new Promise(((n,i)=>{setTimeout((function(){return r.blockNumber>=t?n(r):e.cancelled?n(null):n(void 0)}),0)}))),{oncePoll:r})}))}function ot(e,t,r,n){return Ge(this,void 0,void 0,(function*(){let o=e.provider;switch(r){case"getBlockNumber":case"getGasPrice":return o[r]();case"getEtherPrice":if(o.getEtherPrice)return o.getEtherPrice();break;case"getBalance":case"getTransactionCount":case"getCode":return n.blockTag&&(0,y.isHexString)(n.blockTag)&&(o=yield it(e,t)),o[r](n.address,n.blockTag||"latest");case"getStorageAt":return n.blockTag&&(0,y.isHexString)(n.blockTag)&&(o=yield it(e,t)),o.getStorageAt(n.address,n.position,n.blockTag||"latest");case"getBlock":return n.blockTag&&(0,y.isHexString)(n.blockTag)&&(o=yield it(e,t)),o[n.includeTransactions?"getBlockWithTransactions":"getBlock"](n.blockTag||n.blockHash);case"call":case"estimateGas":return n.blockTag&&(0,y.isHexString)(n.blockTag)&&(o=yield it(e,t)),"call"===r&&n.blockTag?o[r](n.transaction,n.blockTag):o[r](n.transaction);case"getTransaction":case"getTransactionReceipt":return o[r](n.transactionHash);case"getLogs":{let r=n.filter;return(r.fromBlock&&(0,y.isHexString)(r.fromBlock)||r.toBlock&&(0,y.isHexString)(r.toBlock))&&(o=yield it(e,t)),o.getLogs(r)}}return Xe.throwError("unknown method error",i.Logger.errors.UNKNOWN_ERROR,{method:r,params:n})}))}class at extends ie{constructor(e,t){0===e.length&&Xe.throwArgumentError("missing providers","providers",e);const r=e.map(((e,t)=>{if(n.zt.isProvider(e)){const t=B(e)?2e3:750,r=1;return Object.freeze({provider:e,weight:1,stallTimeout:t,priority:r})}const r=(0,v.DC)(e);null==r.priority&&(r.priority=1),null==r.stallTimeout&&(r.stallTimeout=B(e)?2e3:750),null==r.weight&&(r.weight=1);const i=r.weight;return(i%1||i>512||i<1)&&Xe.throwArgumentError("invalid weight; must be integer in [1, 512]",`providers[${t}].weight`,i),Object.freeze(r)})),i=r.reduce(((e,t)=>e+t.weight),0);null==t?t=i/2:t>i&&Xe.throwArgumentError("quorum will always fail; larger than total weight","quorum",t);let o=Je(r.map((e=>e.provider.network)));null==o&&(o=new Promise(((e,t)=>{setTimeout((()=>{this.detectNetwork().then(e,t)}),0)}))),super(o),(0,v.zG)(this,"providerConfigs",Object.freeze(r)),(0,v.zG)(this,"quorum",t),this._highestBlockNumber=-1}detectNetwork(){return Ge(this,void 0,void 0,(function*(){return Je(yield Promise.all(this.providerConfigs.map((e=>e.provider.getNetwork()))))}))}perform(e,t){return Ge(this,void 0,void 0,(function*(){if("sendTransaction"===e){const e=yield Promise.all(this.providerConfigs.map((e=>e.provider.sendTransaction(t.signedTransaction).then((e=>e.hash),(e=>e)))));for(let t=0;t<e.length;t++){const r=e[t];if("string"==typeof r)return r}throw e[0]}-1===this._highestBlockNumber&&"getBlockNumber"!==e&&(yield this.getBlockNumber());const r=function(e,t,r){let n=Qe;switch(t){case"getBlockNumber":return function(t){const r=t.map((e=>e.result));let n=Ye(t.map((e=>e.result)),2);if(null!=n)return n=Math.ceil(n),r.indexOf(n+1)>=0&&n++,n>=e._highestBlockNumber&&(e._highestBlockNumber=n),e._highestBlockNumber};case"getGasPrice":return function(e){const t=e.map((e=>e.result));return t.sort(),t[Math.floor(t.length/2)]};case"getEtherPrice":return function(e){return Ye(e.map((e=>e.result)))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":n=function(e){return null==e?null:((e=(0,v.DC)(e)).confirmations=-1,Qe(e))};break;case"getBlock":n=r.includeTransactions?function(e){return null==e?null:((e=(0,v.DC)(e)).transactions=e.transactions.map((e=>((e=(0,v.DC)(e)).confirmations=-1,e))),Qe(e))}:function(e){return null==e?null:Qe(e)};break;default:throw new Error("unknown method: "+t)}return function(e,t){return function(r){const n={};r.forEach((t=>{const r=e(t.result);n[r]||(n[r]={count:0,result:t.result}),n[r].count++}));const i=Object.keys(n);for(let e=0;e<i.length;e++){const r=n[i[e]];if(r.count>=t)return r.result}}}(n,e.quorum)}(this,e,t),n=(0,We.y)(this.providerConfigs.map(v.DC));n.sort(((e,t)=>e.priority-t.priority));const o=this._highestBlockNumber;let a=0,s=!0;for(;;){const i=Ze();let u=n.filter((e=>e.runner&&i-e.start<e.stallTimeout)).reduce(((e,t)=>e+t.weight),0);for(;u<this.quorum&&a<n.length;){const r=n[a++],i=$e++;r.start=Ze(),r.staller=et(r.stallTimeout),r.staller.wait((()=>{r.staller=null})),r.runner=ot(r,o,e,t).then((n=>{r.done=!0,r.result=n,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:i,backend:nt(r,Ze()),request:{method:e,params:(0,v.p$)(t)},provider:this})}),(n=>{r.done=!0,r.error=n,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:i,backend:nt(r,Ze()),request:{method:e,params:(0,v.p$)(t)},provider:this})})),this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:i,backend:nt(r,null),request:{method:e,params:(0,v.p$)(t)},provider:this}),u+=r.weight}const c=[];n.forEach((e=>{!e.done&&e.runner&&(c.push(e.runner),e.staller&&c.push(e.staller.getPromise()))})),c.length&&(yield Promise.race(c));const f=n.filter((e=>e.done&&null==e.error));if(f.length>=this.quorum){const e=r(f);if(void 0!==e)return n.forEach((e=>{e.staller&&e.staller.cancel(),e.cancelled=!0})),e;s||(yield et(100).getPromise()),s=!1}const l=n.reduce(((e,t)=>{if(!t.done||null==t.error)return e;const r=t.error.code;return tt.indexOf(r)>=0&&(e[r]||(e[r]={error:t.error,weight:0}),e[r].weight+=t.weight),e}),{});if(Object.keys(l).forEach((e=>{const t=l[e];if(t.weight<this.quorum)return;n.forEach((e=>{e.staller&&e.staller.cancel(),e.cancelled=!0}));const r=t.error,i={};rt.forEach((e=>{null!=r[e]&&(i[e]=r[e])})),Xe.throwError(r.reason||r.message,e,i)})),0===n.filter((e=>!e.done)).length)break}return n.forEach((e=>{e.staller&&e.staller.cancel(),e.cancelled=!0})),Xe.throwError("failed to meet quorum",i.Logger.errors.SERVER_ERROR,{method:e,params:t,results:n.map((e=>nt(e))),provider:this})}))}}const st=null,ut=new i.Logger(P),ct="84842078b09946638c03157f83405213";class ft extends ke{constructor(e,t){const r=new lt(e,t),n=r.connection;n.password&&ut.throwError("INFURA WebSocket project secrets unsupported",i.Logger.errors.UNSUPPORTED_OPERATION,{operation:"InfuraProvider.getWebSocketProvider()"}),super(n.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/"),e),(0,v.zG)(this,"apiKey",r.projectId),(0,v.zG)(this,"projectId",r.projectId),(0,v.zG)(this,"projectSecret",r.projectSecret)}isCommunityResource(){return this.projectId===ct}}class lt extends Ae{static getWebSocketProvider(e,t){return new ft(e,t)}static getApiKey(e){const t={apiKey:ct,projectId:ct,projectSecret:null};return null==e||("string"==typeof e?t.projectId=e:null!=e.projectSecret?(ut.assertArgument("string"==typeof e.projectId,"projectSecret requires a projectId","projectId",e.projectId),ut.assertArgument("string"==typeof e.projectSecret,"invalid projectSecret","projectSecret","[REDACTED]"),t.projectId=e.projectId,t.projectSecret=e.projectSecret):e.projectId&&(t.projectId=e.projectId),t.apiKey=t.projectId),t}static getUrl(e,t){let r=null;switch(e?e.name:"unknown"){case"homestead":r="mainnet.infura.io";break;case"goerli":r="goerli.infura.io";break;case"sepolia":r="sepolia.infura.io";break;case"matic":r="polygon-mainnet.infura.io";break;case"maticmum":r="polygon-mumbai.infura.io";break;case"optimism":r="optimism-mainnet.infura.io";break;case"optimism-goerli":r="optimism-goerli.infura.io";break;case"arbitrum":r="arbitrum-mainnet.infura.io";break;case"arbitrum-goerli":r="arbitrum-goerli.infura.io";break;default:ut.throwError("unsupported network",i.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:e})}const n={allowGzip:!0,url:"https://"+r+"/v3/"+t.projectId,throttleCallback:(e,r)=>(t.projectId===ct&&N(),Promise.resolve(!0))};return null!=t.projectSecret&&(n.user="",n.password=t.projectSecret),n}isCommunityResource(){return this.projectId===ct}}class dt extends ve{send(e,t){const r={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};null==this._pendingBatch&&(this._pendingBatch=[]);const n={request:r,resolve:null,reject:null},i=new Promise(((e,t)=>{n.resolve=e,n.reject=t}));return this._pendingBatch.push(n),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout((()=>{const e=this._pendingBatch;this._pendingBatch=null,this._pendingBatchAggregator=null;const t=e.map((e=>e.request));return this.emit("debug",{action:"requestBatch",request:(0,v.p$)(t),provider:this}),(0,x.rd)(this.connection,JSON.stringify(t)).then((r=>{this.emit("debug",{action:"response",request:t,response:r,provider:this}),e.forEach(((e,t)=>{const n=r[t];if(n.error){const t=new Error(n.error.message);t.code=n.error.code,t.data=n.error.data,e.reject(t)}else e.resolve(n.result)}))}),(r=>{this.emit("debug",{action:"response",error:r,request:t,provider:this}),e.forEach((e=>{e.reject(r)}))}))}),10)),i}}const ht=new i.Logger(P);class pt extends Ae{static getApiKey(e){return e&&"string"!=typeof e&&ht.throwArgumentError("invalid apiKey","apiKey",e),e||"ETHERS_JS_SHARED"}static getUrl(e,t){ht.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");let r=null;switch(e.name){case"homestead":r="https://ethereum.api.nodesmith.io/v1/mainnet/jsonrpc";break;case"ropsten":r="https://ethereum.api.nodesmith.io/v1/ropsten/jsonrpc";break;case"rinkeby":r="https://ethereum.api.nodesmith.io/v1/rinkeby/jsonrpc";break;case"goerli":r="https://ethereum.api.nodesmith.io/v1/goerli/jsonrpc";break;case"kovan":r="https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc";break;default:ht.throwArgumentError("unsupported network","network",arguments[0])}return r+"?apiKey="+t}}const bt=new i.Logger(P),yt="62e1ad51b37b8e00394bda3b";class gt extends Ae{static getApiKey(e){const t={applicationId:null,loadBalancer:!0,applicationSecretKey:null};return null==e?t.applicationId=yt:"string"==typeof e?t.applicationId=e:null!=e.applicationSecretKey?(t.applicationId=e.applicationId,t.applicationSecretKey=e.applicationSecretKey):e.applicationId?t.applicationId=e.applicationId:bt.throwArgumentError("unsupported PocketProvider apiKey","apiKey",e),t}static getUrl(e,t){let r=null;switch(e?e.name:"unknown"){case"goerli":r="eth-goerli.gateway.pokt.network";break;case"homestead":r="eth-mainnet.gateway.pokt.network";break;case"kovan":r="poa-kovan.gateway.pokt.network";break;case"matic":r="poly-mainnet.gateway.pokt.network";break;case"maticmum":r="polygon-mumbai-rpc.gateway.pokt.network";break;case"rinkeby":r="eth-rinkeby.gateway.pokt.network";break;case"ropsten":r="eth-ropsten.gateway.pokt.network";break;default:bt.throwError("unsupported network",i.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:e})}const n={headers:{},url:`https://${r}/v1/lb/${t.applicationId}`};return null!=t.applicationSecretKey&&(n.user="",n.password=t.applicationSecretKey),n}isCommunityResource(){return this.applicationId===yt}}const mt=new i.Logger(P);let vt=1;function wt(e,t){const r="Web3LegacyFetcher";return function(e,n){const i={method:e,params:n,id:vt++,jsonrpc:"2.0"};return new Promise(((e,n)=>{this.emit("debug",{action:"request",fetcher:r,request:(0,v.p$)(i),provider:this}),t(i,((t,o)=>{if(t)return this.emit("debug",{action:"response",fetcher:r,error:t,request:i,provider:this}),n(t);if(this.emit("debug",{action:"response",fetcher:r,request:i,response:o,provider:this}),o.error){const e=new Error(o.error.message);return e.code=o.error.code,e.data=o.error.data,n(e)}e(o.result)}))}))}}class _t extends ve{constructor(e,t){null==e&&mt.throwArgumentError("missing provider","provider",e);let r=null,n=null,i=null;"function"==typeof e?(r="unknown:",n=e):(r=e.host||e.path||"",!r&&e.isMetaMask&&(r="metamask"),i=e,e.request?(""===r&&(r="eip-1193:"),n=function(e){return function(t,r){null==r&&(r=[]);const n={method:t,params:r};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:(0,v.p$)(n),provider:this}),e.request(n).then((e=>(this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:n,response:e,provider:this}),e)),(e=>{throw this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:n,error:e,provider:this}),e}))}}(e)):e.sendAsync?n=wt(0,e.sendAsync.bind(e)):e.send?n=wt(0,e.send.bind(e)):mt.throwArgumentError("unsupported provider","provider",e),r||(r="unknown:")),super(r,t),(0,v.zG)(this,"jsonRpcFetchFunc",n),(0,v.zG)(this,"provider",i)}send(e,t){return this.jsonRpcFetchFunc(e,t)}}const xt=new i.Logger(P);function Ot(e,t){if(null==e&&(e="homestead"),"string"==typeof e){const t=e.match(/^(ws|http)s?:/i);if(t)switch(t[1].toLowerCase()){case"http":case"https":return new ve(e);case"ws":case"wss":return new ke(e);default:xt.throwArgumentError("unsupported URL scheme","network",e)}}const r=d(e);return r&&r._defaultProvider||xt.throwError("unsupported getDefaultProvider network",i.Logger.errors.NETWORK_ERROR,{operation:"getDefaultProvider",network:e}),r._defaultProvider({FallbackProvider:at,AlchemyProvider:Te,AnkrProvider:Re,CloudflareProvider:Ue,EtherscanProvider:Ke,InfuraProvider:lt,JsonRpcProvider:ve,NodesmithProvider:pt,PocketProvider:gt,Web3Provider:_t,IpcProvider:st},t)}},44478:(e,t,r)=>{"use strict";r.d(t,{O:()=>u});var n=r(93286),i=r(80711);const o=new i.Logger("random/5.7.0"),a=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r.g)return r.g;throw new Error("unable to locate global object")}();let s=a.crypto||a.msCrypto;function u(e){(e<=0||e>1024||e%1||e!=e)&&o.throwArgumentError("invalid length","length",e);const t=new Uint8Array(e);return s.getRandomValues(t),(0,n.arrayify)(t)}s&&s.getRandomValues||(o.warn("WARNING: Missing strong random number source"),s={getRandomValues:function(e){return o.throwError("no secure random source avaialble",i.Logger.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}})},52472:(e,t,r)=>{"use strict";function n(e){for(let t=(e=e.slice()).length-1;t>0;t--){const r=Math.floor(Math.random()*(t+1)),n=e[t];e[t]=e[r],e[r]=n}return e}r.d(t,{y:()=>n})},61843:(e,t,r)=>{"use strict";r.r(t),r.d(t,{decode:()=>d,encode:()=>c});var n=r(93286),i=r(80711);const o=new i.Logger("rlp/5.7.0");function a(e){const t=[];for(;e;)t.unshift(255&e),e>>=8;return t}function s(e,t,r){let n=0;for(let i=0;i<r;i++)n=256*n+e[t+i];return n}function u(e){if(Array.isArray(e)){let t=[];if(e.forEach((function(e){t=t.concat(u(e))})),t.length<=55)return t.unshift(192+t.length),t;const r=a(t.length);return r.unshift(247+r.length),r.concat(t)}(0,n.isBytesLike)(e)||o.throwArgumentError("RLP object must be BytesLike","object",e);const t=Array.prototype.slice.call((0,n.arrayify)(e));if(1===t.length&&t[0]<=127)return t;if(t.length<=55)return t.unshift(128+t.length),t;const r=a(t.length);return r.unshift(183+r.length),r.concat(t)}function c(e){return(0,n.hexlify)(u(e))}function f(e,t,r,n){const a=[];for(;r<t+1+n;){const s=l(e,r);a.push(s.result),(r+=s.consumed)>t+1+n&&o.throwError("child data too short",i.Logger.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:a}}function l(e,t){if(0===e.length&&o.throwError("data too short",i.Logger.errors.BUFFER_OVERRUN,{}),e[t]>=248){const r=e[t]-247;t+1+r>e.length&&o.throwError("data short segment too short",i.Logger.errors.BUFFER_OVERRUN,{});const n=s(e,t+1,r);return t+1+r+n>e.length&&o.throwError("data long segment too short",i.Logger.errors.BUFFER_OVERRUN,{}),f(e,t,t+1+r,r+n)}if(e[t]>=192){const r=e[t]-192;return t+1+r>e.length&&o.throwError("data array too short",i.Logger.errors.BUFFER_OVERRUN,{}),f(e,t,t+1,r)}if(e[t]>=184){const r=e[t]-183;t+1+r>e.length&&o.throwError("data array too short",i.Logger.errors.BUFFER_OVERRUN,{});const a=s(e,t+1,r);return t+1+r+a>e.length&&o.throwError("data array too short",i.Logger.errors.BUFFER_OVERRUN,{}),{consumed:1+r+a,result:(0,n.hexlify)(e.slice(t+1+r,t+1+r+a))}}if(e[t]>=128){const r=e[t]-128;return t+1+r>e.length&&o.throwError("data too short",i.Logger.errors.BUFFER_OVERRUN,{}),{consumed:1+r,result:(0,n.hexlify)(e.slice(t+1,t+1+r))}}return{consumed:1,result:(0,n.hexlify)(e[t])}}function d(e){const t=(0,n.arrayify)(e),r=l(t,0);return r.consumed!==t.length&&o.throwArgumentError("invalid rlp data","data",e),r.result}},23951:(e,t,r)=>{"use strict";r.d(t,{Gy:()=>d,bP:()=>c,JQ:()=>f,o:()=>l});var n=r(33715),i=r.n(n),o=r(93286),a=r(21261),s=r(80711);const u=new s.Logger("sha2/5.7.0");function c(e){return"0x"+i().ripemd160().update((0,o.arrayify)(e)).digest("hex")}function f(e){return"0x"+i().sha256().update((0,o.arrayify)(e)).digest("hex")}function l(e){return"0x"+i().sha512().update((0,o.arrayify)(e)).digest("hex")}function d(e,t,r){return a.p[e]||u.throwError("unsupported algorithm "+e,s.Logger.errors.UNSUPPORTED_OPERATION,{operation:"hmac",algorithm:e}),"0x"+i().hmac(i()[e],(0,o.arrayify)(t)).update((0,o.arrayify)(r)).digest("hex")}},21261:(e,t,r)=>{"use strict";var n;r.d(t,{p:()=>n}),function(e){e.sha256="sha256",e.sha512="sha512"}(n||(n={}))},62768:(e,t,r)=>{"use strict";r.d(t,{Et:()=>X,VW:()=>J,LO:()=>Z});var n=r(13550),i=r.n(n),o=r(33715),a=r.n(o);function s(e,t,r){return r={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&r.path)}},e(r,r.exports),r.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self&&self;var u=c;function c(e,t){if(!e)throw new Error(t||"Assertion failed")}c.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)};var f=s((function(e,t){var r=t;function n(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",r=0;r<e.length;r++)t+=n(e[r].toString(16));return t}r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e){for(var n=0;n<e.length;n++)r[n]=0|e[n];return r}if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16));else for(n=0;n<e.length;n++){var i=e.charCodeAt(n),o=i>>8,a=255&i;o?r.push(o,a):r.push(a)}return r},r.zero2=n,r.toHex=i,r.encode=function(e,t){return"hex"===t?i(e):e}})),l=s((function(e,t){var r=t;r.assert=u,r.toArray=f.toArray,r.zero2=f.zero2,r.toHex=f.toHex,r.encode=f.encode,r.getNAF=function(e,t,r){var n=new Array(Math.max(e.bitLength(),r)+1);n.fill(0);for(var i=1<<t+1,o=e.clone(),a=0;a<n.length;a++){var s,u=o.andln(i-1);o.isOdd()?(s=u>(i>>1)-1?(i>>1)-u:u,o.isubn(s)):s=0,n[a]=s,o.iushrn(1)}return n},r.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n,i=0,o=0;e.cmpn(-i)>0||t.cmpn(-o)>0;){var a,s,u=e.andln(3)+i&3,c=t.andln(3)+o&3;3===u&&(u=-1),3===c&&(c=-1),a=0==(1&u)?0:3!=(n=e.andln(7)+i&7)&&5!==n||2!==c?u:-u,r[0].push(a),s=0==(1&c)?0:3!=(n=t.andln(7)+o&7)&&5!==n||2!==u?c:-c,r[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return r},r.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new(i())(e,"hex","le")}})),d=l.getNAF,h=l.getJSF,p=l.assert;function b(e,t){this.type=e,this.p=new(i())(t.p,16),this.red=t.prime?i().red(t.prime):i().mont(this.p),this.zero=new(i())(0).toRed(this.red),this.one=new(i())(1).toRed(this.red),this.two=new(i())(2).toRed(this.red),this.n=t.n&&new(i())(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var y=b;function g(e,t){this.curve=e,this.type=t,this.precomputed=null}b.prototype.point=function(){throw new Error("Not implemented")},b.prototype.validate=function(){throw new Error("Not implemented")},b.prototype._fixedNafMul=function(e,t){p(e.precomputed);var r=e._getDoubles(),n=d(t,1,this._bitLength),i=(1<<r.step+1)-(r.step%2==0?2:1);i/=3;var o,a,s=[];for(o=0;o<n.length;o+=r.step){a=0;for(var u=o+r.step-1;u>=o;u--)a=(a<<1)+n[u];s.push(a)}for(var c=this.jpoint(null,null,null),f=this.jpoint(null,null,null),l=i;l>0;l--){for(o=0;o<s.length;o++)(a=s[o])===l?f=f.mixedAdd(r.points[o]):a===-l&&(f=f.mixedAdd(r.points[o].neg()));c=c.add(f)}return c.toP()},b.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var i=n.points,o=d(t,r,this._bitLength),a=this.jpoint(null,null,null),s=o.length-1;s>=0;s--){for(var u=0;s>=0&&0===o[s];s--)u++;if(s>=0&&u++,a=a.dblp(u),s<0)break;var c=o[s];p(0!==c),a="affine"===e.type?c>0?a.mixedAdd(i[c-1>>1]):a.mixedAdd(i[-c-1>>1].neg()):c>0?a.add(i[c-1>>1]):a.add(i[-c-1>>1].neg())}return"affine"===e.type?a.toP():a},b.prototype._wnafMulAdd=function(e,t,r,n,i){var o,a,s,u=this._wnafT1,c=this._wnafT2,f=this._wnafT3,l=0;for(o=0;o<n;o++){var p=(s=t[o])._getNAFPoints(e);u[o]=p.wnd,c[o]=p.points}for(o=n-1;o>=1;o-=2){var b=o-1,y=o;if(1===u[b]&&1===u[y]){var g=[t[b],null,null,t[y]];0===t[b].y.cmp(t[y].y)?(g[1]=t[b].add(t[y]),g[2]=t[b].toJ().mixedAdd(t[y].neg())):0===t[b].y.cmp(t[y].y.redNeg())?(g[1]=t[b].toJ().mixedAdd(t[y]),g[2]=t[b].add(t[y].neg())):(g[1]=t[b].toJ().mixedAdd(t[y]),g[2]=t[b].toJ().mixedAdd(t[y].neg()));var m=[-3,-1,-5,-7,0,7,5,1,3],v=h(r[b],r[y]);for(l=Math.max(v[0].length,l),f[b]=new Array(l),f[y]=new Array(l),a=0;a<l;a++){var w=0|v[0][a],_=0|v[1][a];f[b][a]=m[3*(w+1)+(_+1)],f[y][a]=0,c[b]=g}}else f[b]=d(r[b],u[b],this._bitLength),f[y]=d(r[y],u[y],this._bitLength),l=Math.max(f[b].length,l),l=Math.max(f[y].length,l)}var x=this.jpoint(null,null,null),O=this._wnafT4;for(o=l;o>=0;o--){for(var k=0;o>=0;){var P=!0;for(a=0;a<n;a++)O[a]=0|f[a][o],0!==O[a]&&(P=!1);if(!P)break;k++,o--}if(o>=0&&k++,x=x.dblp(k),o<0)break;for(a=0;a<n;a++){var S=O[a];0!==S&&(S>0?s=c[a][S-1>>1]:S<0&&(s=c[a][-S-1>>1].neg()),x="affine"===s.type?x.mixedAdd(s):x.add(s))}}for(o=0;o<n;o++)c[o]=null;return i?x:x.toP()},b.BasePoint=g,g.prototype.eq=function(){throw new Error("Not implemented")},g.prototype.validate=function(){return this.curve.validate(this)},b.prototype.decodePoint=function(e,t){e=l.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?p(e[e.length-1]%2==0):7===e[0]&&p(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw new Error("Unknown point format")},g.prototype.encodeCompressed=function(e){return this.encode(e,!0)},g.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},g.prototype.encode=function(e,t){return l.encode(this._encode(t),e)},g.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},g.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},g.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)n=n.dbl();r.push(n)}return{step:e,points:r}},g.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},g.prototype._getBeta=function(){return null},g.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t};var m=s((function(e){"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}}})),v=l.assert;function w(e){y.call(this,"short",e),this.a=new(i())(e.a,16).toRed(this.red),this.b=new(i())(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}m(w,y);var _=w;function x(e,t,r,n){y.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new(i())(t,16),this.y=new(i())(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function O(e,t,r,n){y.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new(i())(0)):(this.x=new(i())(t,16),this.y=new(i())(r,16),this.z=new(i())(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}w.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,r;if(e.beta)t=new(i())(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);t=(t=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(e.lambda)r=new(i())(e.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(t))?r=o[0]:(r=o[1],v(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:r,basis:e.basis?e.basis.map((function(e){return{a:new(i())(e.a,16),b:new(i())(e.b,16)}})):this._getEndoBasis(r)}}},w.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i().mont(e),r=new(i())(2).toRed(t).redInvm(),n=r.redNeg(),o=new(i())(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(o).fromRed(),n.redSub(o).fromRed()]},w.prototype._getEndoBasis=function(e){for(var t,r,n,o,a,s,u,c,f,l=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=e,h=this.n.clone(),p=new(i())(1),b=new(i())(0),y=new(i())(0),g=new(i())(1),m=0;0!==d.cmpn(0);){var v=h.div(d);c=h.sub(v.mul(d)),f=y.sub(v.mul(p));var w=g.sub(v.mul(b));if(!n&&c.cmp(l)<0)t=u.neg(),r=p,n=c.neg(),o=f;else if(n&&2==++m)break;u=c,h=d,d=c,y=p,p=f,g=b,b=w}a=c.neg(),s=f;var _=n.sqr().add(o.sqr());return a.sqr().add(s.sqr()).cmp(_)>=0&&(a=t,s=r),n.negative&&(n=n.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:o},{a,b:s}]},w.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),u=i.mul(r.b),c=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:u.add(c).neg()}},w.prototype.pointFromX=function(e,t){(e=new(i())(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var o=n.fromRed().isOdd();return(t&&!o||!t&&o)&&(n=n.redNeg()),this.point(e,n)},w.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},w.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var a=this._endoSplit(t[o]),s=e[o],u=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),u=u.neg(!0)),n[2*o]=s,n[2*o+1]=u,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var c=this._wnafMulAdd(1,n,i,2*o,r),f=0;f<2*o;f++)n[f]=null,i[f]=null;return c},m(x,y.BasePoint),w.prototype.point=function(e,t,r){return new x(this,e,t,r)},w.prototype.pointFromJSON=function(e,t){return x.fromJSON(this,e,t)},x.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},x.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},x.fromJSON=function(e,t,r){"string"==typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],r);if(!t[2])return n;function i(t){return e.point(t[0],t[1],r)}var o=t[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},x.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},x.prototype.isInfinity=function(){return this.inf},x.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},x.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},x.prototype.getX=function(){return this.x.fromRed()},x.prototype.getY=function(){return this.y.fromRed()},x.prototype.mul=function(e){return e=new(i())(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},x.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},x.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},x.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},x.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},x.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},m(O,y.BasePoint),w.prototype.jpoint=function(e,t,r){return new O(this,e,t,r)},O.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},O.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},O.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),f=c.redMul(s),l=n.redMul(c),d=u.redSqr().redIAdd(f).redISub(l).redISub(l),h=u.redMul(l.redISub(d)).redISub(o.redMul(f)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,h,p)},O.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),c=u.redMul(a),f=r.redMul(u),l=s.redSqr().redIAdd(c).redISub(f).redISub(f),d=s.redMul(f.redISub(l)).redISub(i.redMul(c)),h=this.z.redMul(a);return this.curve.jpoint(l,d,h)},O.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var r=this;for(t=0;t<e;t++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,u=s.redSqr().redSqr(),c=a.redAdd(a);for(t=0;t<e;t++){var f=o.redSqr(),l=c.redSqr(),d=l.redSqr(),h=f.redAdd(f).redIAdd(f).redIAdd(n.redMul(u)),p=o.redMul(l),b=h.redSqr().redISub(p.redAdd(p)),y=p.redISub(b),g=h.redMul(y);g=g.redIAdd(g).redISub(d);var m=c.redMul(s);t+1<e&&(u=u.redMul(d)),o=b,s=m,c=g}return this.curve.jpoint(o,c.redMul(i),s)},O.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},O.prototype._zeroDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n),u=s.redSqr().redISub(a).redISub(a),c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),e=u,t=s.redMul(a.redISub(u)).redISub(c),r=this.y.redAdd(this.y)}else{var f=this.x.redSqr(),l=this.y.redSqr(),d=l.redSqr(),h=this.x.redAdd(l).redSqr().redISub(f).redISub(d);h=h.redIAdd(h);var p=f.redAdd(f).redIAdd(f),b=p.redSqr(),y=d.redIAdd(d);y=(y=y.redIAdd(y)).redIAdd(y),e=b.redISub(h).redISub(h),t=p.redMul(h.redISub(e)).redISub(y),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},O.prototype._threeDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),u=s.redSqr().redISub(a).redISub(a);e=u;var c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),t=s.redMul(a.redISub(u)).redISub(c),r=this.y.redAdd(this.y)}else{var f=this.z.redSqr(),l=this.y.redSqr(),d=this.x.redMul(l),h=this.x.redSub(f).redMul(this.x.redAdd(f));h=h.redAdd(h).redIAdd(h);var p=d.redIAdd(d),b=(p=p.redIAdd(p)).redAdd(p);e=h.redSqr().redISub(b),r=this.y.redAdd(this.z).redSqr().redISub(l).redISub(f);var y=l.redSqr();y=(y=(y=y.redIAdd(y)).redIAdd(y)).redIAdd(y),t=h.redMul(p.redISub(e)).redISub(y)}return this.curve.jpoint(e,t,r)},O.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=t.redSqr(),a=r.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),u=t.redAdd(t),c=(u=u.redIAdd(u)).redMul(a),f=s.redSqr().redISub(c.redAdd(c)),l=c.redISub(f),d=a.redSqr();d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var h=s.redMul(l).redISub(d),p=r.redAdd(r).redMul(n);return this.curve.jpoint(f,h,p)},O.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),a=this.x.redAdd(t).redSqr().redISub(e).redISub(n),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),u=n.redIAdd(n);u=(u=(u=u.redIAdd(u)).redIAdd(u)).redIAdd(u);var c=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(u),f=t.redMul(c);f=(f=f.redIAdd(f)).redIAdd(f);var l=this.x.redMul(s).redISub(f);l=(l=l.redIAdd(l)).redIAdd(l);var d=this.y.redMul(c.redMul(u.redISub(c)).redISub(a.redMul(s)));d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var h=this.z.redAdd(a).redSqr().redISub(r).redISub(s);return this.curve.jpoint(l,d,h)},O.prototype.mul=function(e,t){return e=new(i())(e,t),this.curve._wnafMul(this,e)},O.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),i=r.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)},O.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),i=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},O.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},O.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var k=s((function(e,t){var r=t;r.base=y,r.short=_,r.mont=null,r.edwards=null})),P=s((function(e,t){var r,n=t,i=l.assert;function o(e){"short"===e.type?this.curve=new k.short(e):"edwards"===e.type?this.curve=new k.edwards(e):this.curve=new k.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function s(e,t){Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:function(){var r=new o(t);return Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=o,s("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:a().sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),s("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:a().sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),s("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:a().sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),s("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:a().sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),s("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:a().sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),s("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a().sha256,gRed:!1,g:["9"]}),s("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a().sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=null.crash()}catch(e){r=void 0}s("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:a().sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})}));function S(e){if(!(this instanceof S))return new S(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=f.toArray(e.entropy,e.entropyEnc||"hex"),r=f.toArray(e.nonce,e.nonceEnc||"hex"),n=f.toArray(e.pers,e.persEnc||"hex");u(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}var A=S;S.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},S.prototype._hmac=function(){return new(a().hmac)(this.hash,this.K)},S.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},S.prototype.reseed=function(e,t,r,n){"string"!=typeof t&&(n=r,r=t,t=null),e=f.toArray(e,t),r=f.toArray(r,n),u(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},S.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=f.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length<e;)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var o=i.slice(0,e);return this._update(r),this._reseed++,f.encode(o,t)};var E=l.assert;function M(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}var j=M;M.fromPublic=function(e,t,r){return t instanceof M?t:new M(e,{pub:t,pubEnc:r})},M.fromPrivate=function(e,t,r){return t instanceof M?t:new M(e,{priv:t,privEnc:r})},M.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},M.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},M.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},M.prototype._importPrivate=function(e,t){this.priv=new(i())(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},M.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?E(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||E(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},M.prototype.derive=function(e){return e.validate()||E(e.validate(),"public point not validated"),e.mul(this.priv).getX()},M.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},M.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},M.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var T=l.assert;function B(e,t){if(e instanceof B)return e;this._importDER(e,t)||(T(e.r&&e.s,"Signature without r or s"),this.r=new(i())(e.r,16),this.s=new(i())(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var I=B;function N(){this.place=0}function R(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,o=0,a=t.place;o<n;o++,a++)i<<=8,i|=e[a],i>>>=0;return!(i<=127)&&(t.place=a,i)}function C(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function U(e,t){if(t<128)e.push(t);else{var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}B.prototype._importDER=function(e,t){e=l.toArray(e,t);var r=new N;if(48!==e[r.place++])return!1;var n=R(e,r);if(!1===n)return!1;if(n+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var o=R(e,r);if(!1===o)return!1;var a=e.slice(r.place,o+r.place);if(r.place+=o,2!==e[r.place++])return!1;var s=R(e,r);if(!1===s)return!1;if(e.length!==s+r.place)return!1;var u=e.slice(r.place,s+r.place);if(0===a[0]){if(!(128&a[1]))return!1;a=a.slice(1)}if(0===u[0]){if(!(128&u[1]))return!1;u=u.slice(1)}return this.r=new(i())(a),this.s=new(i())(u),this.recoveryParam=null,!0},B.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=C(t),r=C(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];U(n,t.length),(n=n.concat(t)).push(2),U(n,r.length);var i=n.concat(r),o=[48];return U(o,i.length),o=o.concat(i),l.encode(o,e)};var L=function(){throw new Error("unsupported")},D=l.assert;function H(e){if(!(this instanceof H))return new H(e);"string"==typeof e&&(D(Object.prototype.hasOwnProperty.call(P,e),"Unknown curve "+e),e=P[e]),e instanceof P.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}var F=H;H.prototype.keyPair=function(e){return new j(this,e)},H.prototype.keyFromPrivate=function(e,t){return j.fromPrivate(this,e,t)},H.prototype.keyFromPublic=function(e,t){return j.fromPublic(this,e,t)},H.prototype.genKeyPair=function(e){e||(e={});for(var t=new A({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||L(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new(i())(2));;){var o=new(i())(t.generate(r));if(!(o.cmp(n)>0))return o.iaddn(1),this.keyFromPrivate(o)}},H.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},H.prototype.sign=function(e,t,r,n){"object"==typeof r&&(n=r,r=null),n||(n={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new(i())(e,16));for(var o=this.n.byteLength(),a=t.getPrivate().toArray("be",o),s=e.toArray("be",o),u=new A({hash:this.hash,entropy:a,nonce:s,pers:n.pers,persEnc:n.persEnc||"utf8"}),c=this.n.sub(new(i())(1)),f=0;;f++){var l=n.k?n.k(f):new(i())(u.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(c)>=0)){var d=this.g.mul(l);if(!d.isInfinity()){var h=d.getX(),p=h.umod(this.n);if(0!==p.cmpn(0)){var b=l.invm(this.n).mul(p.mul(t.getPrivate()).iadd(e));if(0!==(b=b.umod(this.n)).cmpn(0)){var y=(d.getY().isOdd()?1:0)|(0!==h.cmp(p)?2:0);return n.canonical&&b.cmp(this.nh)>0&&(b=this.n.sub(b),y^=1),new I({r:p,s:b,recoveryParam:y})}}}}}},H.prototype.verify=function(e,t,r,n){e=this._truncateToN(new(i())(e,16)),r=this.keyFromPublic(r,n);var o=(t=new I(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,u=a.invm(this.n),c=u.mul(e).umod(this.n),f=u.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,r.getPublic(),f)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(c,r.getPublic(),f)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},H.prototype.recoverPubKey=function(e,t,r,n){D((3&r)===r,"The recovery param is more than two bits"),t=new I(t,n);var o=this.n,a=new(i())(e),s=t.r,u=t.s,c=1&r,f=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&f)throw new Error("Unable to find sencond key candinate");s=f?this.curve.pointFromX(s.add(this.curve.n),c):this.curve.pointFromX(s,c);var l=t.r.invm(o),d=o.sub(a).mul(l).umod(o),h=u.mul(l).umod(o);return this.g.mulAdd(d,s,h)},H.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new I(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")};var V=s((function(e,t){var r=t;r.version="6.5.4",r.utils=l,r.rand=function(){throw new Error("unsupported")},r.curve=k,r.curves=P,r.ec=F,r.eddsa=null})).ec,z=r(93286),q=r(53587);const K=new(r(80711).Logger)("signing-key/5.7.0");let W=null;function G(){return W||(W=new V("secp256k1")),W}class X{constructor(e){(0,q.zG)(this,"curve","secp256k1"),(0,q.zG)(this,"privateKey",(0,z.hexlify)(e)),32!==(0,z.hexDataLength)(this.privateKey)&&K.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const t=G().keyFromPrivate((0,z.arrayify)(this.privateKey));(0,q.zG)(this,"publicKey","0x"+t.getPublic(!1,"hex")),(0,q.zG)(this,"compressedPublicKey","0x"+t.getPublic(!0,"hex")),(0,q.zG)(this,"_isSigningKey",!0)}_addPoint(e){const t=G().keyFromPublic((0,z.arrayify)(this.publicKey)),r=G().keyFromPublic((0,z.arrayify)(e));return"0x"+t.pub.add(r.pub).encodeCompressed("hex")}signDigest(e){const t=G().keyFromPrivate((0,z.arrayify)(this.privateKey)),r=(0,z.arrayify)(e);32!==r.length&&K.throwArgumentError("bad digest length","digest",e);const n=t.sign(r,{canonical:!0});return(0,z.splitSignature)({recoveryParam:n.recoveryParam,r:(0,z.hexZeroPad)("0x"+n.r.toString(16),32),s:(0,z.hexZeroPad)("0x"+n.s.toString(16),32)})}computeSharedSecret(e){const t=G().keyFromPrivate((0,z.arrayify)(this.privateKey)),r=G().keyFromPublic((0,z.arrayify)(J(e)));return(0,z.hexZeroPad)("0x"+t.derive(r.getPublic()).toString(16),32)}static isSigningKey(e){return!(!e||!e._isSigningKey)}}function Z(e,t){const r=(0,z.splitSignature)(t),n={r:(0,z.arrayify)(r.r),s:(0,z.arrayify)(r.s)};return"0x"+G().recoverPubKey((0,z.arrayify)(e),n,r.recoveryParam).encode("hex",!1)}function J(e,t){const r=(0,z.arrayify)(e);if(32===r.length){const e=new X(r);return t?"0x"+G().keyFromPrivate(r).getPublic(!0,"hex"):e.publicKey}return 33===r.length?t?(0,z.hexlify)(r):"0x"+G().keyFromPublic(r).getPublic(!1,"hex"):65===r.length?t?"0x"+G().keyFromPublic(r).getPublic(!0,"hex"):(0,z.hexlify)(r):K.throwArgumentError("invalid public or private key","key","[REDACTED]")}},44242:(e,t,r)=>{"use strict";r.d(t,{Uj:()=>o,te:()=>u,Uw:()=>a,U$:()=>d,uu:()=>h,Y0:()=>f,XL:()=>b,ZN:()=>p});var n=r(93286);const i=new(r(80711).Logger)("strings/5.7.0");var o,a;function s(e,t,r,n,i){if(e===a.BAD_PREFIX||e===a.UNEXPECTED_CONTINUE){let e=0;for(let n=t+1;n<r.length&&r[n]>>6==2;n++)e++;return e}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"}(o||(o={})),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 u=Object.freeze({error:function(e,t,r,n,o){return i.throwArgumentError(`invalid codepoint at offset ${t}; ${e}`,"bytes",r)},ignore:s,replace:function(e,t,r,n,i){return e===a.OVERLONG?(n.push(i),0):(n.push(65533),s(e,t,r))}});function c(e,t){null==t&&(t=u.error),e=(0,n.arrayify)(e);const r=[];let i=0;for(;i<e.length;){const n=e[i++];if(n>>7==0){r.push(n);continue}let o=null,s=null;if(192==(224&n))o=1,s=127;else if(224==(240&n))o=2,s=2047;else{if(240!=(248&n)){i+=t(128==(192&n)?a.UNEXPECTED_CONTINUE:a.BAD_PREFIX,i-1,e,r);continue}o=3,s=65535}if(i-1+o>=e.length){i+=t(a.OVERRUN,i-1,e,r);continue}let u=n&(1<<8-o-1)-1;for(let n=0;n<o;n++){let n=e[i];if(128!=(192&n)){i+=t(a.MISSING_CONTINUE,i,e,r),u=null;break}u=u<<6|63&n,i++}null!==u&&(u>1114111?i+=t(a.OUT_OF_RANGE,i-1-o,e,r,u):u>=55296&&u<=57343?i+=t(a.UTF16_SURROGATE,i-1-o,e,r,u):u<=s?i+=t(a.OVERLONG,i-1-o,e,r,u):r.push(u))}return r}function f(e,t=o.current){t!=o.current&&(i.checkNormalize(),e=e.normalize(t));let r=[];for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n<128)r.push(n);else if(n<2048)r.push(n>>6|192),r.push(63&n|128);else if(55296==(64512&n)){t++;const i=e.charCodeAt(t);if(t>=e.length||56320!=(64512&i))throw new Error("invalid utf-8 string");const o=65536+((1023&n)<<10)+(1023&i);r.push(o>>18|240),r.push(o>>12&63|128),r.push(o>>6&63|128),r.push(63&o|128)}else r.push(n>>12|224),r.push(n>>6&63|128),r.push(63&n|128)}return(0,n.arrayify)(r)}function l(e){const t="0000"+e.toString(16);return"\\u"+t.substring(t.length-4)}function d(e,t){return'"'+c(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?l(e):l(55296+((e-=65536)>>10&1023))+l(56320+(1023&e))})).join("")+'"'}function h(e){return e.map((e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10&1023),56320+(1023&e))))).join("")}function p(e,t){return h(c(e,t))}function b(e,t=o.current){return c(f(e,t))}},64377:(e,t,r)=>{"use strict";r.d(t,{em:()=>h,z7:()=>x,db:()=>m,Qc:()=>E,RJ:()=>v,qC:()=>S});var n=r(64594),i=r(2593),o=r(93286),a=r(21046),s=r(38197),u=r(53587),c=r(61843),f=r(62768),l=r(80711);const d=new l.Logger("transactions/5.7.0");var h;function p(e){return"0x"===e?null:(0,n.getAddress)(e)}function b(e){return"0x"===e?a._Y:i.O$.from(e)}!function(e){e[e.legacy=0]="legacy",e[e.eip2930=1]="eip2930",e[e.eip1559=2]="eip1559"}(h||(h={}));const y=[{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"}],g={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function m(e){const t=(0,f.VW)(e);return(0,n.getAddress)((0,o.hexDataSlice)((0,s.keccak256)((0,o.hexDataSlice)(t,1)),12))}function v(e,t){return m((0,f.LO)((0,o.arrayify)(e),t))}function w(e,t){const r=(0,o.stripZeros)(i.O$.from(e).toHexString());return r.length>32&&d.throwArgumentError("invalid length for "+t,"transaction:"+t,e),r}function _(e,t){return{address:(0,n.getAddress)(e),storageKeys:(t||[]).map(((t,r)=>(32!==(0,o.hexDataLength)(t)&&d.throwArgumentError("invalid access list storageKey",`accessList[${e}:${r}]`,t),t.toLowerCase())))}}function x(e){if(Array.isArray(e))return e.map(((e,t)=>Array.isArray(e)?(e.length>2&&d.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${t}]`,e),_(e[0],e[1])):_(e.address,e.storageKeys)));const t=Object.keys(e).map((t=>{const r=e[t].reduce(((e,t)=>(e[t]=!0,e)),{});return _(t,Object.keys(r).sort())}));return t.sort(((e,t)=>e.address.localeCompare(t.address))),t}function O(e){return x(e).map((e=>[e.address,e.storageKeys]))}function k(e,t){if(null!=e.gasPrice){const t=i.O$.from(e.gasPrice),r=i.O$.from(e.maxFeePerGas||0);t.eq(r)||d.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:t,maxFeePerGas:r})}const r=[w(e.chainId||0,"chainId"),w(e.nonce||0,"nonce"),w(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),w(e.maxFeePerGas||0,"maxFeePerGas"),w(e.gasLimit||0,"gasLimit"),null!=e.to?(0,n.getAddress)(e.to):"0x",w(e.value||0,"value"),e.data||"0x",O(e.accessList||[])];if(t){const e=(0,o.splitSignature)(t);r.push(w(e.recoveryParam,"recoveryParam")),r.push((0,o.stripZeros)(e.r)),r.push((0,o.stripZeros)(e.s))}return(0,o.hexConcat)(["0x02",c.encode(r)])}function P(e,t){const r=[w(e.chainId||0,"chainId"),w(e.nonce||0,"nonce"),w(e.gasPrice||0,"gasPrice"),w(e.gasLimit||0,"gasLimit"),null!=e.to?(0,n.getAddress)(e.to):"0x",w(e.value||0,"value"),e.data||"0x",O(e.accessList||[])];if(t){const e=(0,o.splitSignature)(t);r.push(w(e.recoveryParam,"recoveryParam")),r.push((0,o.stripZeros)(e.r)),r.push((0,o.stripZeros)(e.s))}return(0,o.hexConcat)(["0x01",c.encode(r)])}function S(e,t){if(null==e.type||0===e.type)return null!=e.accessList&&d.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",e),function(e,t){(0,u.uj)(e,g);const r=[];y.forEach((function(t){let n=e[t.name]||[];const i={};t.numeric&&(i.hexPad="left"),n=(0,o.arrayify)((0,o.hexlify)(n,i)),t.length&&n.length!==t.length&&n.length>0&&d.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,n),t.maxLength&&(n=(0,o.stripZeros)(n),n.length>t.maxLength&&d.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,n)),r.push((0,o.hexlify)(n))}));let n=0;if(null!=e.chainId?(n=e.chainId,"number"!=typeof n&&d.throwArgumentError("invalid transaction.chainId","transaction",e)):t&&!(0,o.isBytesLike)(t)&&t.v>28&&(n=Math.floor((t.v-35)/2)),0!==n&&(r.push((0,o.hexlify)(n)),r.push("0x"),r.push("0x")),!t)return c.encode(r);const i=(0,o.splitSignature)(t);let a=27+i.recoveryParam;return 0!==n?(r.pop(),r.pop(),r.pop(),a+=2*n+8,i.v>28&&i.v!==a&&d.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t)):i.v!==a&&d.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t),r.push((0,o.hexlify)(a)),r.push((0,o.stripZeros)((0,o.arrayify)(i.r))),r.push((0,o.stripZeros)((0,o.arrayify)(i.s))),c.encode(r)}(e,t);switch(e.type){case 1:return P(e,t);case 2:return k(e,t)}return d.throwError(`unsupported transaction type: ${e.type}`,l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:e.type})}function A(e,t,r){try{const r=b(t[0]).toNumber();if(0!==r&&1!==r)throw new Error("bad recid");e.v=r}catch(e){d.throwArgumentError("invalid v for transaction type: 1","v",t[0])}e.r=(0,o.hexZeroPad)(t[1],32),e.s=(0,o.hexZeroPad)(t[2],32);try{const t=(0,s.keccak256)(r(e));e.from=v(t,{r:e.r,s:e.s,recoveryParam:e.v})}catch(e){}}function E(e){const t=(0,o.arrayify)(e);if(t[0]>127)return function(e){const t=c.decode(e);9!==t.length&&6!==t.length&&d.throwArgumentError("invalid raw transaction","rawTransaction",e);const r={nonce:b(t[0]).toNumber(),gasPrice:b(t[1]),gasLimit:b(t[2]),to:p(t[3]),value:b(t[4]),data:t[5],chainId:0};if(6===t.length)return r;try{r.v=i.O$.from(t[6]).toNumber()}catch(e){return r}if(r.r=(0,o.hexZeroPad)(t[7],32),r.s=(0,o.hexZeroPad)(t[8],32),i.O$.from(r.r).isZero()&&i.O$.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 i=t.slice(0,6);0!==r.chainId&&(i.push((0,o.hexlify)(r.chainId)),i.push("0x"),i.push("0x"),n-=2*r.chainId+8);const a=(0,s.keccak256)(c.encode(i));try{r.from=v(a,{r:(0,o.hexlify)(r.r),s:(0,o.hexlify)(r.s),recoveryParam:n})}catch(e){}r.hash=(0,s.keccak256)(e)}return r.type=null,r}(t);switch(t[0]){case 1:return function(e){const t=c.decode(e.slice(1));8!==t.length&&11!==t.length&&d.throwArgumentError("invalid component count for transaction type: 1","payload",(0,o.hexlify)(e));const r={type:1,chainId:b(t[0]).toNumber(),nonce:b(t[1]).toNumber(),gasPrice:b(t[2]),gasLimit:b(t[3]),to:p(t[4]),value:b(t[5]),data:t[6],accessList:x(t[7])};return 8===t.length||(r.hash=(0,s.keccak256)(e),A(r,t.slice(8),P)),r}(t);case 2:return function(e){const t=c.decode(e.slice(1));9!==t.length&&12!==t.length&&d.throwArgumentError("invalid component count for transaction type: 2","payload",(0,o.hexlify)(e));const r=b(t[2]),n=b(t[3]),i={type:2,chainId:b(t[0]).toNumber(),nonce:b(t[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:n,gasPrice:null,gasLimit:b(t[4]),to:p(t[5]),value:b(t[6]),data:t[7],accessList:x(t[8])};return 9===t.length||(i.hash=(0,s.keccak256)(e),A(i,t.slice(9),k)),i}(t)}return d.throwError(`unsupported transaction type: ${t[0]}`,l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:t[0]})}},93752:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Wallet:()=>V,verifyMessage:()=>z,verifyTypedData:()=>q});var n=r(64594),i=r(64353),o=r(48171),a=r(93286),s=r(93684),u=r(67827),c=r(36274),f=r(38197),l=r(53587),d=r(44478),h=r(62768),p=r(48709),b=r.n(p),y=r(17635),g=r.n(y),m=r(85306),v=r(64377),w=r(44242);function _(e){return"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),(0,a.arrayify)(e)}function x(e,t){for(e=String(e);e.length<t;)e="0"+e;return e}function O(e){return"string"==typeof e?(0,w.Y0)(e,w.Uj.NFKC):(0,a.arrayify)(e)}function k(e,t){let r=e;const n=t.toLowerCase().split("/");for(let e=0;e<n.length;e++){let t=null;for(const i in r)if(i.toLowerCase()===n[e]){t=r[i];break}if(null===t)return null;r=t}return r}function P(e){const t=(0,a.arrayify)(e);t[6]=15&t[6]|64,t[8]=63&t[8]|128;const r=(0,a.hexlify)(t);return[r.substring(2,10),r.substring(10,14),r.substring(14,18),r.substring(18,22),r.substring(22,34)].join("-")}var S=r(80711);const A="json-wallets/5.7.0";const E=new S.Logger(A);function M(e){return null!=e&&e.mnemonic&&e.mnemonic.phrase}class j extends l.dk{isKeystoreAccount(e){return!(!e||!e._isKeystoreAccount)}}function T(e,t){const r=_(k(e,"crypto/ciphertext"));if((0,a.hexlify)((0,f.keccak256)((0,a.concat)([t.slice(16,32),r]))).substring(2)!==k(e,"crypto/mac").toLowerCase())throw new Error("invalid password");const i=function(e,t,r){if("aes-128-ctr"===k(e,"crypto/cipher")){const n=_(k(e,"crypto/cipherparams/iv")),i=new(b().Counter)(n),o=new(b().ModeOfOperation.ctr)(t,i);return(0,a.arrayify)(o.decrypt(r))}return null}(e,t.slice(0,16),r);i||E.throwError("unsupported cipher",S.Logger.errors.UNSUPPORTED_OPERATION,{operation:"decrypt"});const o=t.slice(32,64),s=(0,v.db)(i);if(e.address){let t=e.address.toLowerCase();if("0x"!==t.substring(0,2)&&(t="0x"+t),(0,n.getAddress)(t)!==s)throw new Error("address mismatch")}const u={_isKeystoreAccount:!0,address:s,privateKey:(0,a.hexlify)(i)};if("0.1"===k(e,"x-ethers/version")){const t=_(k(e,"x-ethers/mnemonicCiphertext")),r=_(k(e,"x-ethers/mnemonicCounter")),n=new(b().Counter)(r),i=new(b().ModeOfOperation.ctr)(o,n),s=k(e,"x-ethers/path")||c.cD,f=k(e,"x-ethers/locale")||"en",l=(0,a.arrayify)(i.decrypt(t));try{const e=(0,c.JJ)(l,f),t=c.m$.fromMnemonic(e,null,f).derivePath(s);if(t.privateKey!=u.privateKey)throw new Error("mnemonic mismatch");u.mnemonic=t.mnemonic}catch(e){if(e.code!==S.Logger.errors.INVALID_ARGUMENT||"wordlist"!==e.argument)throw e}}return new j(u)}function B(e,t,r,n,i){return(0,a.arrayify)((0,m.n)(e,t,r,n,i))}function I(e,t,r,n,i){return Promise.resolve(B(e,t,r,n,i))}function N(e,t,r,n,i){const o=O(t),a=k(e,"crypto/kdf");if(a&&"string"==typeof a){const t=function(e,t){return E.throwArgumentError("invalid key-derivation function parameters",e,t)};if("scrypt"===a.toLowerCase()){const r=_(k(e,"crypto/kdfparams/salt")),s=parseInt(k(e,"crypto/kdfparams/n")),u=parseInt(k(e,"crypto/kdfparams/r")),c=parseInt(k(e,"crypto/kdfparams/p"));s&&u&&c||t("kdf",a),0!=(s&s-1)&&t("N",s);const f=parseInt(k(e,"crypto/kdfparams/dklen"));return 32!==f&&t("dklen",f),n(o,r,s,u,c,64,i)}if("pbkdf2"===a.toLowerCase()){const n=_(k(e,"crypto/kdfparams/salt"));let i=null;const a=k(e,"crypto/kdfparams/prf");"hmac-sha256"===a?i="sha256":"hmac-sha512"===a?i="sha512":t("prf",a);const s=parseInt(k(e,"crypto/kdfparams/c")),u=parseInt(k(e,"crypto/kdfparams/dklen"));return 32!==u&&t("dklen",u),r(o,n,s,u,i)}}return E.throwArgumentError("unsupported key-derivation function","kdf",a)}const R=new S.Logger(A);class C extends l.dk{isCrowdsaleAccount(e){return!(!e||!e._isCrowdsaleAccount)}}function U(e,t){const r=JSON.parse(e);t=O(t);const i=(0,n.getAddress)(k(r,"ethaddr")),o=_(k(r,"encseed"));o&&o.length%16==0||R.throwArgumentError("invalid encseed","json",e);const s=(0,a.arrayify)((0,m.n)(t,t,2e3,32,"sha256")).slice(0,16),u=o.slice(0,16),c=o.slice(16),l=new(b().ModeOfOperation.cbc)(s,u),d=b().padding.pkcs7.strip((0,a.arrayify)(l.decrypt(c)));let h="";for(let e=0;e<d.length;e++)h+=String.fromCharCode(d[e]);const p=(0,w.Y0)(h),y=(0,f.keccak256)(p);return new C({_isCrowdsaleAccount:!0,address:i,privateKey:y})}var L=r(67949);function D(e,t,r){if((0,L.LW)(e)){r&&r(0);const n=U(e,t);return r&&r(1),Promise.resolve(n)}return(0,L.aO)(e)?function(e,t,r){return n=this,i=void 0,a=function*(){const n=JSON.parse(e);return T(n,yield N(n,t,I,g().scrypt,r))},new((o=void 0)||(o=Promise))((function(e,t){function r(e){try{u(a.next(e))}catch(e){t(e)}}function s(e){try{u(a.throw(e))}catch(e){t(e)}}function u(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(r,s)}u((a=a.apply(n,i||[])).next())}));var n,i,o,a}(e,t,r):Promise.reject(new Error("invalid JSON wallet"))}var H=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))};const F=new S.Logger("wallet/5.7.0");class V extends o.E{constructor(e,t){if(super(),null!=(r=e)&&(0,a.isHexString)(r.privateKey,32)&&null!=r.address){const t=new h.Et(e.privateKey);if((0,l.zG)(this,"_signingKey",(()=>t)),(0,l.zG)(this,"address",(0,v.db)(this.publicKey)),this.address!==(0,n.getAddress)(e.address)&&F.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),function(e){const t=e.mnemonic;return t&&t.phrase}(e)){const t=e.mnemonic;(0,l.zG)(this,"_mnemonic",(()=>({phrase:t.phrase,path:t.path||c.cD,locale:t.locale||"en"})));const r=this.mnemonic,n=c.m$.fromMnemonic(r.phrase,null,r.locale).derivePath(r.path);(0,v.db)(n.privateKey)!==this.address&&F.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else(0,l.zG)(this,"_mnemonic",(()=>null))}else{if(h.Et.isSigningKey(e))"secp256k1"!==e.curve&&F.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),(0,l.zG)(this,"_signingKey",(()=>e));else{"string"==typeof e&&e.match(/^[0-9a-f]*$/i)&&64===e.length&&(e="0x"+e);const t=new h.Et(e);(0,l.zG)(this,"_signingKey",(()=>t))}(0,l.zG)(this,"_mnemonic",(()=>null)),(0,l.zG)(this,"address",(0,v.db)(this.publicKey))}var r;t&&!i.zt.isProvider(t)&&F.throwArgumentError("invalid provider","provider",t),(0,l.zG)(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 V(this,e)}signTransaction(e){return(0,l.mE)(e).then((t=>{null!=t.from&&((0,n.getAddress)(t.from)!==this.address&&F.throwArgumentError("transaction from address mismatch","transaction.from",e.from),delete t.from);const r=this._signingKey().signDigest((0,f.keccak256)((0,v.qC)(t)));return(0,v.qC)(t,r)}))}signMessage(e){return H(this,void 0,void 0,(function*(){return(0,a.joinSignature)(this._signingKey().signDigest((0,s.r)(e)))}))}_signTypedData(e,t,r){return H(this,void 0,void 0,(function*(){const n=yield u.E.resolveNames(e,t,r,(e=>(null==this.provider&&F.throwError("cannot resolve ENS names without a provider",S.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:e}),this.provider.resolveName(e))));return(0,a.joinSignature)(this._signingKey().signDigest(u.E.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={}),function(e,t,r,i){try{if((0,n.getAddress)(e.address)!==(0,v.db)(e.privateKey))throw new Error("address/privateKey mismatch");if(M(e)){const t=e.mnemonic;if(c.m$.fromMnemonic(t.phrase,null,t.locale).derivePath(t.path||c.cD).privateKey!=e.privateKey)throw new Error("mnemonic mismatch")}}catch(e){return Promise.reject(e)}"function"!=typeof r||i||(i=r,r={}),r||(r={});const o=(0,a.arrayify)(e.privateKey),s=O(t);let u=null,l=null,h=null;if(M(e)){const t=e.mnemonic;u=(0,a.arrayify)((0,c.oy)(t.phrase,t.locale||"en")),l=t.path||c.cD,h=t.locale||"en"}let p=r.client;p||(p="ethers.js");let y=null;y=r.salt?(0,a.arrayify)(r.salt):(0,d.O)(32);let m=null;if(r.iv){if(m=(0,a.arrayify)(r.iv),16!==m.length)throw new Error("invalid iv")}else m=(0,d.O)(16);let w=null;if(r.uuid){if(w=(0,a.arrayify)(r.uuid),16!==w.length)throw new Error("invalid uuid")}else w=(0,d.O)(16);let _=1<<17,k=8,S=1;return r.scrypt&&(r.scrypt.N&&(_=r.scrypt.N),r.scrypt.r&&(k=r.scrypt.r),r.scrypt.p&&(S=r.scrypt.p)),g().scrypt(s,y,_,k,S,64,i).then((t=>{const r=(t=(0,a.arrayify)(t)).slice(0,16),n=t.slice(16,32),i=t.slice(32,64),s=new(b().Counter)(m),c=new(b().ModeOfOperation.ctr)(r,s),g=(0,a.arrayify)(c.encrypt(o)),v=(0,f.keccak256)((0,a.concat)([n,g])),O={address:e.address.substring(2).toLowerCase(),id:P(w),version:3,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:(0,a.hexlify)(m).substring(2)},ciphertext:(0,a.hexlify)(g).substring(2),kdf:"scrypt",kdfparams:{salt:(0,a.hexlify)(y).substring(2),n:_,dklen:32,p:S,r:k},mac:v.substring(2)}};if(u){const e=(0,d.O)(16),t=new(b().Counter)(e),r=new(b().ModeOfOperation.ctr)(i,t),n=(0,a.arrayify)(r.encrypt(u)),o=new Date,s=o.getUTCFullYear()+"-"+x(o.getUTCMonth()+1,2)+"-"+x(o.getUTCDate(),2)+"T"+x(o.getUTCHours(),2)+"-"+x(o.getUTCMinutes(),2)+"-"+x(o.getUTCSeconds(),2)+".0Z";O["x-ethers"]={client:p,gethFilename:"UTC--"+s+"--"+O.address,mnemonicCounter:(0,a.hexlify)(e).substring(2),mnemonicCiphertext:(0,a.hexlify)(n).substring(2),path:l,locale:h,version:"0.1"}}return JSON.stringify(O)}))}(this,e,t,r)}static createRandom(e){let t=(0,d.O)(16);e||(e={}),e.extraEntropy&&(t=(0,a.arrayify)((0,a.hexDataSlice)((0,f.keccak256)((0,a.concat)([t,e.extraEntropy])),0,16)));const r=(0,c.JJ)(t,e.locale);return V.fromMnemonic(r,e.path,e.locale)}static fromEncryptedJson(e,t,r){return D(e,t,r).then((e=>new V(e)))}static fromEncryptedJsonSync(e,t){return new V(function(e,t){if((0,L.LW)(e))return U(e,t);if((0,L.aO)(e))return function(e,t){const r=JSON.parse(e);return T(r,N(r,t,B,g().syncScrypt))}(e,t);throw new Error("invalid JSON wallet")}(e,t))}static fromMnemonic(e,t,r){return t||(t=c.cD),new V(c.m$.fromMnemonic(e,null,r).derivePath(t))}}function z(e,t){return(0,v.RJ)((0,s.r)(e),t)}function q(e,t,r,n){return(0,v.RJ)(u.E.hash(e,t,r),n)}},58341:(e,t,r)=>{"use strict";r.d(t,{MY:()=>p,rd:()=>b,$l:()=>y});var n=r(59567),i=r(93286),o=r(53587),a=r(44242),s=r(80711),u=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))};function c(e,t){return u(this,void 0,void 0,(function*(){null==t&&(t={});const r={method:t.method||"GET",headers:t.headers||{},body:t.body||void 0};if(!0!==t.skipFetchSetup&&(r.mode="cors",r.cache="no-cache",r.credentials="same-origin",r.redirect="follow",r.referrer="client"),null!=t.fetchOptions){const e=t.fetchOptions;e.mode&&(r.mode=e.mode),e.cache&&(r.cache=e.cache),e.credentials&&(r.credentials=e.credentials),e.redirect&&(r.redirect=e.redirect),e.referrer&&(r.referrer=e.referrer)}const n=yield fetch(e,r),o=yield n.arrayBuffer(),a={};return n.headers.forEach?n.headers.forEach(((e,t)=>{a[t.toLowerCase()]=e})):n.headers.keys().forEach((e=>{a[e.toLowerCase()]=n.headers.get(e)})),{headers:a,statusCode:n.status,statusMessage:n.statusText,body:(0,i.arrayify)(new Uint8Array(o))}}))}var f=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))};const l=new s.Logger("web/5.7.1");function d(e){return new Promise((t=>{setTimeout(t,e)}))}function h(e,t){if(null==e)return null;if("string"==typeof e)return e;if((0,i.isBytesLike)(e)){if(t&&("text"===t.split("/")[0]||"application/json"===t.split(";")[0].trim()))try{return(0,a.ZN)(e)}catch(e){}return(0,i.hexlify)(e)}return e}function p(e,t,r){const i="object"==typeof e&&null!=e.throttleLimit?e.throttleLimit:12;l.assertArgument(i>0&&i%1==0,"invalid connection throttle limit","connection.throttleLimit",i);const u="object"==typeof e?e.throttleCallback:null,p="object"==typeof e&&"number"==typeof e.throttleSlotInterval?e.throttleSlotInterval:100;l.assertArgument(p>0&&p%1==0,"invalid connection throttle slot interval","connection.throttleSlotInterval",p);const b="object"==typeof e&&!!e.errorPassThrough,y={};let g=null;const m={method:"GET"};let v=!1,w=12e4;if("string"==typeof e)g=e;else if("object"==typeof e){if(null!=e&&null!=e.url||l.throwArgumentError("missing URL","connection.url",e),g=e.url,"number"==typeof e.timeout&&e.timeout>0&&(w=e.timeout),e.headers)for(const t in e.headers)y[t.toLowerCase()]={key:t,value:String(e.headers[t])},["if-none-match","if-modified-since"].indexOf(t.toLowerCase())>=0&&(v=!0);if(m.allowGzip=!!e.allowGzip,null!=e.user&&null!=e.password){"https:"!==g.substring(0,6)&&!0!==e.allowInsecureAuthentication&&l.throwError("basic authentication requires a secure https url",s.Logger.errors.INVALID_ARGUMENT,{argument:"url",url:g,user:e.user,password:"[REDACTED]"});const t=e.user+":"+e.password;y.authorization={key:"Authorization",value:"Basic "+(0,n.c)((0,a.Y0)(t))}}null!=e.skipFetchSetup&&(m.skipFetchSetup=!!e.skipFetchSetup),null!=e.fetchOptions&&(m.fetchOptions=(0,o.DC)(e.fetchOptions))}const _=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),x=g?g.match(_):null;if(x)try{const e={statusCode:200,statusMessage:"OK",headers:{"content-type":x[1]||"text/plain"},body:x[2]?(0,n.J)(x[3]):(O=x[3],(0,a.Y0)(O.replace(/%([0-9a-f][0-9a-f])/gi,((e,t)=>String.fromCharCode(parseInt(t,16))))))};let t=e.body;return r&&(t=r(e.body,e)),Promise.resolve(t)}catch(e){l.throwError("processing response error",s.Logger.errors.SERVER_ERROR,{body:h(x[1],x[2]),error:e,requestBody:null,requestMethod:"GET",url:g})}var O;t&&(m.method="POST",m.body=t,null==y["content-type"]&&(y["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==y["content-length"]&&(y["content-length"]={key:"Content-Length",value:String(t.length)}));const k={};Object.keys(y).forEach((e=>{const t=y[e];k[t.key]=t.value})),m.headers=k;const P=function(){let e=null;return{promise:new Promise((function(t,r){w&&(e=setTimeout((()=>{null!=e&&(e=null,r(l.makeError("timeout",s.Logger.errors.TIMEOUT,{requestBody:h(m.body,k["content-type"]),requestMethod:m.method,timeout:w,url:g})))}),w))})),cancel:function(){null!=e&&(clearTimeout(e),e=null)}}}(),S=function(){return f(this,void 0,void 0,(function*(){for(let e=0;e<i;e++){let t=null;try{if(t=yield c(g,m),e<i)if(301===t.statusCode||302===t.statusCode){const e=t.headers.location||"";if("GET"===m.method&&e.match(/^https:/)){g=t.headers.location;continue}}else if(429===t.statusCode){let r=!0;if(u&&(r=yield u(e,g)),r){let r=0;const n=t.headers["retry-after"];r="string"==typeof n&&n.match(/^[1-9][0-9]*$/)?1e3*parseInt(n):p*parseInt(String(Math.random()*Math.pow(2,e))),yield d(r);continue}}}catch(e){t=e.response,null==t&&(P.cancel(),l.throwError("missing response",s.Logger.errors.SERVER_ERROR,{requestBody:h(m.body,k["content-type"]),requestMethod:m.method,serverError:e,url:g}))}let n=t.body;if(v&&304===t.statusCode?n=null:!b&&(t.statusCode<200||t.statusCode>=300)&&(P.cancel(),l.throwError("bad response",s.Logger.errors.SERVER_ERROR,{status:t.statusCode,headers:t.headers,body:h(n,t.headers?t.headers["content-type"]:null),requestBody:h(m.body,k["content-type"]),requestMethod:m.method,url:g})),r)try{const e=yield r(n,t);return P.cancel(),e}catch(r){if(r.throttleRetry&&e<i){let t=!0;if(u&&(t=yield u(e,g)),t){const t=p*parseInt(String(Math.random()*Math.pow(2,e)));yield d(t);continue}}P.cancel(),l.throwError("processing response error",s.Logger.errors.SERVER_ERROR,{body:h(n,t.headers?t.headers["content-type"]:null),error:r,requestBody:h(m.body,k["content-type"]),requestMethod:m.method,url:g})}return P.cancel(),n}return l.throwError("failed response",s.Logger.errors.SERVER_ERROR,{requestBody:h(m.body,k["content-type"]),requestMethod:m.method,url:g})}))}();return Promise.race([P.promise,S])}function b(e,t,r){let n=null;if(null!=t){n=(0,a.Y0)(t);const r="string"==typeof e?{url:e}:(0,o.DC)(e);r.headers?0!==Object.keys(r.headers).filter((e=>"content-type"===e.toLowerCase())).length||(r.headers=(0,o.DC)(r.headers),r.headers["content-type"]="application/json"):r.headers={"content-type":"application/json"},e=r}return p(e,n,((e,t)=>{let n=null;if(null!=e)try{n=JSON.parse((0,a.ZN)(e))}catch(t){l.throwError("invalid JSON",s.Logger.errors.SERVER_ERROR,{body:e,error:t})}return r&&(n=r(n,t)),n}))}function y(e,t){return t||(t={}),null==(t=(0,o.DC)(t)).floor&&(t.floor=0),null==t.ceiling&&(t.ceiling=1e4),null==t.interval&&(t.interval=250),new Promise((function(r,n){let i=null,o=!1;const a=()=>!o&&(o=!0,i&&clearTimeout(i),!0);t.timeout&&(i=setTimeout((()=>{a()&&n(new Error("timeout"))}),t.timeout));const s=t.retryLimit;let u=0;!function i(){return e().then((function(e){if(void 0!==e)a()&&r(e);else if(t.oncePoll)t.oncePoll.once("poll",i);else if(t.onceBlock)t.onceBlock.once("block",i);else if(!o){if(u++,u>s)return void(a()&&n(new Error("retry limit reached")));let e=t.interval*parseInt(String(Math.random()*Math.pow(2,u)));e<t.floor&&(e=t.floor),e>t.ceiling&&(e=t.ceiling),setTimeout(i,e)}return null}),(function(e){a()&&n(e)}))}()}))}},48659:(e,t,r)=>{"use strict";r.d(t,{D:()=>a});var n=r(32046),i=r(53587);const o=new(r(80711).Logger)("wordlists/5.7.0");class a{constructor(e){o.checkAbstract(new.target,a),(0,i.zG)(this,"locale",e)}split(e){return e.toLowerCase().split(/ +/g)}join(e){return e.join(" ")}static check(e){const t=[];for(let r=0;r<2048;r++){const n=e.getWord(r);if(r!==e.getWordIndex(n))return"0x";t.push(n)}return(0,n.id)(t.join("\n")+"\n")}static register(e,t){t||(t=e.locale)}}},9855:(e,t,r)=>{"use strict";r.d(t,{E:()=>u});var n=r(48659);let i=null;function o(e){if(null==i&&(i="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThenTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),"0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"!==n.D.check(e)))throw i=null,new Error("BIP39 Wordlist for en (English) FAILED")}class a extends n.D{constructor(){super("en")}getWord(e){return o(this),i[e]}getWordIndex(e){return o(this),i.indexOf(e)}}const s=new a;n.D.register(s);const u={en:s}},83972:e=>{e.exports=["#01888C","#FC7500","#034F5D","#F73F01","#FC1960","#C7144C","#F3C100","#1598F2","#2465E1","#F19E02"]},1935:(e,t,r)=>{var n,i=r(7996),o=r(69533),a=r(6767),s=r(83972),u="http://www.w3.org/2000/svg";function c(e,t,r,i,o){var a=t/2,s=document.createElementNS(u,"rect");s.setAttributeNS(null,"x","0"),s.setAttributeNS(null,"y","0"),s.setAttributeNS(null,"width",t),s.setAttributeNS(null,"height",t);var c=n.random(),l=2*Math.PI*c,d=t/i*n.random()+r*t/i,h="translate("+Math.cos(l)*d+" "+Math.sin(l)*d+") rotate("+(360*c+180*n.random()).toFixed(1)+" "+a+" "+a+")";s.setAttributeNS(null,"transform",h);var p=f(e);s.setAttributeNS(null,"fill",p),o.appendChild(s)}function f(e){n.random();var t=Math.floor(e.length*n.random());return e.splice(t,1)[0]}e.exports=function(e,t){n=new i(t);var r=function(e,t){var r=30*t.random()-l/2;return e.map((function(e){var t=a(e);return t.rotate(r),t.hexString()}))}(s.slice(),n),d=o(e,f(r)).container,h=document.createElementNS(u,"svg");h.setAttributeNS(null,"x","0"),h.setAttributeNS(null,"y","0"),h.setAttributeNS(null,"width",e),h.setAttributeNS(null,"height",e),d.appendChild(h);for(var p=0;p<3;p++)c(r,e,p,3,h);return d};var l=30},69533:e=>{e.exports=function(e,t){var r=document.createElement("div");return r.style.borderRadius="50px",r.style.overflow="hidden",r.style.padding="0px",r.style.margin="0px",r.style.width=e+"px",r.style.height=e+"px",r.style.display="inline-block",r.style.background=t,{container:r}}},27320:(e,t)=>{"use strict";function r(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function n(e){if("boolean"!=typeof e)throw new Error(`Expected boolean, not ${e}`)}function i(e,...t){if(!(e instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new TypeError(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function o(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");r(e.outputLen),r(e.blockLen)}function a(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function s(e,t){i(e);const r=t.outputLen;if(e.length<r)throw new Error(`digestInto() expects output buffer of length at least ${r}`)}Object.defineProperty(t,"__esModule",{value:!0}),t.output=t.exists=t.hash=t.bytes=t.bool=t.number=void 0,t.number=r,t.bool=n,t.bytes=i,t.hash=o,t.exists=a,t.output=s;const u={number:r,bool:n,bytes:i,hash:o,exists:a,output:s};t.default=u},97395:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BLAKE2=t.SIGMA=void 0;const n=r(27320),i=r(98089);t.SIGMA=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3]);class o extends i.Hash{constructor(e,t,r={},o,a,s){if(super(),this.blockLen=e,this.outputLen=t,this.length=0,this.pos=0,this.finished=!1,this.destroyed=!1,n.default.number(e),n.default.number(t),n.default.number(o),t<0||t>o)throw new Error("Blake2: outputLen bigger than keyLen");if(void 0!==r.key&&(r.key.length<1||r.key.length>o))throw new Error(`Key should be up 1..${o} byte long or undefined`);if(void 0!==r.salt&&r.salt.length!==a)throw new Error(`Salt should be ${a} byte long or undefined`);if(void 0!==r.personalization&&r.personalization.length!==s)throw new Error(`Personalization should be ${s} byte long or undefined`);this.buffer32=(0,i.u32)(this.buffer=new Uint8Array(e))}update(e){n.default.exists(this);const{blockLen:t,buffer:r,buffer32:o}=this,a=(e=(0,i.toBytes)(e)).length;for(let n=0;n<a;){this.pos===t&&(this.compress(o,0,!1),this.pos=0);const i=Math.min(t-this.pos,a-n),s=e.byteOffset+n;if(i!==t||s%4||!(n+i<a))r.set(e.subarray(n,n+i),this.pos),this.pos+=i,this.length+=i,n+=i;else{const r=new Uint32Array(e.buffer,s,Math.floor((a-n)/4));for(let e=0;n+t<a;e+=o.length,n+=t)this.length+=t,this.compress(r,e,!1)}}return this}digestInto(e){n.default.exists(this),n.default.output(e,this);const{pos:t,buffer32:r}=this;this.finished=!0,this.buffer.subarray(t).fill(0),this.compress(r,0,!0);const o=(0,i.u32)(e);this.get().forEach(((e,t)=>o[t]=e))}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){const{buffer:t,length:r,finished:n,destroyed:i,outputLen:o,pos:a}=this;return e||(e=new this.constructor({dkLen:o})),e.set(...this.get()),e.length=r,e.finished=n,e.destroyed=i,e.outputLen=o,e.buffer.set(t),e.pos=a,e}}t.BLAKE2=o},27505:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHA2=void 0;const n=r(27320),i=r(98089);class o extends i.Hash{constructor(e,t,r,n){super(),this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,i.createView)(this.buffer)}update(e){n.default.exists(this);const{view:t,buffer:r,blockLen:o}=this,a=(e=(0,i.toBytes)(e)).length;for(let n=0;n<a;){const s=Math.min(o-this.pos,a-n);if(s!==o)r.set(e.subarray(n,n+s),this.pos),this.pos+=s,n+=s,this.pos===o&&(this.process(t,0),this.pos=0);else{const t=(0,i.createView)(e);for(;o<=a-n;n+=o)this.process(t,n)}}return this.length+=e.length,this.roundClean(),this}digestInto(e){n.default.exists(this),n.default.output(e,this),this.finished=!0;const{buffer:t,view:r,blockLen:o,isLE:a}=this;let{pos:s}=this;t[s++]=128,this.buffer.subarray(s).fill(0),this.padOffset>o-s&&(this.process(r,0),s=0);for(let e=s;e<o;e++)t[e]=0;!function(e,t,r,n){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,r,n);const i=BigInt(32),o=BigInt(4294967295),a=Number(r>>i&o),s=Number(r&o),u=n?4:0,c=n?0:4;e.setUint32(t+u,a,n),e.setUint32(t+c,s,n)}(r,o-8,BigInt(8*this.length),a),this.process(r,0);const u=(0,i.createView)(e);this.get().forEach(((e,t)=>u.setUint32(4*t,e,a)))}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:t,buffer:r,length:n,finished:i,destroyed:o,pos:a}=this;return e.length=n,e.pos=a,e.finished=i,e.destroyed=o,n%t&&e.buffer.set(r),e}}t.SHA2=o},6873:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.add=t.toBig=t.split=t.fromBig=void 0;const r=BigInt(2**32-1),n=BigInt(32);function i(e,t=!1){return t?{h:Number(e&r),l:Number(e>>n&r)}:{h:0|Number(e>>n&r),l:0|Number(e&r)}}function o(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let o=0;o<e.length;o++){const{h:a,l:s}=i(e[o],t);[r[o],n[o]]=[a,s]}return[r,n]}function a(e,t,r,n){const i=(t>>>0)+(n>>>0);return{h:e+r+(i/2**32|0)|0,l:0|i}}t.fromBig=i,t.split=o,t.toBig=(e,t)=>BigInt(e>>>0)<<n|BigInt(t>>>0),t.add=a;const s={fromBig:i,split:o,toBig:t.toBig,shrSH:(e,t,r)=>e>>>r,shrSL:(e,t,r)=>e<<32-r|t>>>r,rotrSH:(e,t,r)=>e>>>r|t<<32-r,rotrSL:(e,t,r)=>e<<32-r|t>>>r,rotrBH:(e,t,r)=>e<<64-r|t>>>r-32,rotrBL:(e,t,r)=>e>>>r-32|t<<64-r,rotr32H:(e,t)=>t,rotr32L:(e,t)=>e,rotlSH:(e,t,r)=>e<<r|t>>>32-r,rotlSL:(e,t,r)=>t<<r|e>>>32-r,rotlBH:(e,t,r)=>t<<r-32|e>>>64-r,rotlBL:(e,t,r)=>e<<r-32|t>>>64-r,add:a,add3L:(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),add3H:(e,t,r,n)=>t+r+n+(e/2**32|0)|0,add4L:(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),add4H:(e,t,r,n,i)=>t+r+n+i+(e/2**32|0)|0,add5H:(e,t,r,n,i,o)=>t+r+n+i+o+(e/2**32|0)|0,add5L:(e,t,r,n,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(i>>>0)};t.default=s},13803:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.blake2b=void 0;const n=r(97395),i=r(6873),o=r(98089),a=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),s=new Uint32Array(32);function u(e,t,r,n,o,a){const u=o[a],c=o[a+1];let f=s[2*e],l=s[2*e+1],d=s[2*t],h=s[2*t+1],p=s[2*r],b=s[2*r+1],y=s[2*n],g=s[2*n+1],m=i.default.add3L(f,d,u);l=i.default.add3H(m,l,h,c),f=0|m,({Dh:g,Dl:y}={Dh:g^l,Dl:y^f}),({Dh:g,Dl:y}={Dh:i.default.rotr32H(g,y),Dl:i.default.rotr32L(g,y)}),({h:b,l:p}=i.default.add(b,p,g,y)),({Bh:h,Bl:d}={Bh:h^b,Bl:d^p}),({Bh:h,Bl:d}={Bh:i.default.rotrSH(h,d,24),Bl:i.default.rotrSL(h,d,24)}),s[2*e]=f,s[2*e+1]=l,s[2*t]=d,s[2*t+1]=h,s[2*r]=p,s[2*r+1]=b,s[2*n]=y,s[2*n+1]=g}function c(e,t,r,n,o,a){const u=o[a],c=o[a+1];let f=s[2*e],l=s[2*e+1],d=s[2*t],h=s[2*t+1],p=s[2*r],b=s[2*r+1],y=s[2*n],g=s[2*n+1],m=i.default.add3L(f,d,u);l=i.default.add3H(m,l,h,c),f=0|m,({Dh:g,Dl:y}={Dh:g^l,Dl:y^f}),({Dh:g,Dl:y}={Dh:i.default.rotrSH(g,y,16),Dl:i.default.rotrSL(g,y,16)}),({h:b,l:p}=i.default.add(b,p,g,y)),({Bh:h,Bl:d}={Bh:h^b,Bl:d^p}),({Bh:h,Bl:d}={Bh:i.default.rotrBH(h,d,63),Bl:i.default.rotrBL(h,d,63)}),s[2*e]=f,s[2*e+1]=l,s[2*t]=d,s[2*t+1]=h,s[2*r]=p,s[2*r+1]=b,s[2*n]=y,s[2*n+1]=g}class f extends n.BLAKE2{constructor(e={}){super(128,void 0===e.dkLen?64:e.dkLen,e,64,16,16),this.v0l=0|a[0],this.v0h=0|a[1],this.v1l=0|a[2],this.v1h=0|a[3],this.v2l=0|a[4],this.v2h=0|a[5],this.v3l=0|a[6],this.v3h=0|a[7],this.v4l=0|a[8],this.v4h=0|a[9],this.v5l=0|a[10],this.v5h=0|a[11],this.v6l=0|a[12],this.v6h=0|a[13],this.v7l=0|a[14],this.v7h=0|a[15];const t=e.key?e.key.length:0;if(this.v0l^=this.outputLen|t<<8|65536|1<<24,e.salt){const t=(0,o.u32)((0,o.toBytes)(e.salt));this.v4l^=t[0],this.v4h^=t[1],this.v5l^=t[2],this.v5h^=t[3]}if(e.personalization){const t=(0,o.u32)((0,o.toBytes)(e.personalization));this.v6l^=t[0],this.v6h^=t[1],this.v7l^=t[2],this.v7h^=t[3]}if(e.key){const t=new Uint8Array(this.blockLen);t.set((0,o.toBytes)(e.key)),this.update(t)}}get(){let{v0l:e,v0h:t,v1l:r,v1h:n,v2l:i,v2h:o,v3l:a,v3h:s,v4l:u,v4h:c,v5l:f,v5h:l,v6l:d,v6h:h,v7l:p,v7h:b}=this;return[e,t,r,n,i,o,a,s,u,c,f,l,d,h,p,b]}set(e,t,r,n,i,o,a,s,u,c,f,l,d,h,p,b){this.v0l=0|e,this.v0h=0|t,this.v1l=0|r,this.v1h=0|n,this.v2l=0|i,this.v2h=0|o,this.v3l=0|a,this.v3h=0|s,this.v4l=0|u,this.v4h=0|c,this.v5l=0|f,this.v5h=0|l,this.v6l=0|d,this.v6h=0|h,this.v7l=0|p,this.v7h=0|b}compress(e,t,r){this.get().forEach(((e,t)=>s[t]=e)),s.set(a,16);let{h:o,l:f}=i.default.fromBig(BigInt(this.length));s[24]=a[8]^f,s[25]=a[9]^o,r&&(s[28]=~s[28],s[29]=~s[29]);let l=0;const d=n.SIGMA;for(let r=0;r<12;r++)u(0,4,8,12,e,t+2*d[l++]),c(0,4,8,12,e,t+2*d[l++]),u(1,5,9,13,e,t+2*d[l++]),c(1,5,9,13,e,t+2*d[l++]),u(2,6,10,14,e,t+2*d[l++]),c(2,6,10,14,e,t+2*d[l++]),u(3,7,11,15,e,t+2*d[l++]),c(3,7,11,15,e,t+2*d[l++]),u(0,5,10,15,e,t+2*d[l++]),c(0,5,10,15,e,t+2*d[l++]),u(1,6,11,12,e,t+2*d[l++]),c(1,6,11,12,e,t+2*d[l++]),u(2,7,8,13,e,t+2*d[l++]),c(2,7,8,13,e,t+2*d[l++]),u(3,4,9,14,e,t+2*d[l++]),c(3,4,9,14,e,t+2*d[l++]);this.v0l^=s[0]^s[16],this.v0h^=s[1]^s[17],this.v1l^=s[2]^s[18],this.v1h^=s[3]^s[19],this.v2l^=s[4]^s[20],this.v2h^=s[5]^s[21],this.v3l^=s[6]^s[22],this.v3h^=s[7]^s[23],this.v4l^=s[8]^s[24],this.v4h^=s[9]^s[25],this.v5l^=s[10]^s[26],this.v5h^=s[11]^s[27],this.v6l^=s[12]^s[28],this.v6h^=s[13]^s[29],this.v7l^=s[14]^s[30],this.v7h^=s[15]^s[31],s.fill(0)}destroy(){this.destroyed=!0,this.buffer32.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}t.blake2b=(0,o.wrapConstructorWithOpts)((e=>new f(e)))},64421:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto={node:void 0,web:"object"==typeof self&&"crypto"in self?self.crypto:void 0}},79569:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=void 0;const n=r(27320),i=r(98089);class o extends i.Hash{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,n.default.hash(e);const r=(0,i.toBytes)(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw new TypeError("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const o=this.blockLen,a=new Uint8Array(o);a.set(r.length>o?e.create().update(r).digest():r);for(let e=0;e<a.length;e++)a[e]^=54;this.iHash.update(a),this.oHash=e.create();for(let e=0;e<a.length;e++)a[e]^=106;this.oHash.update(a),a.fill(0)}update(e){return n.default.exists(this),this.iHash.update(e),this}digestInto(e){n.default.exists(this),n.default.bytes(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:t,iHash:r,finished:n,destroyed:i,blockLen:o,outputLen:a}=this;return e.finished=n,e.destroyed=i,e.blockLen=o,e.outputLen=a,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}t.hmac=(e,t,r)=>new o(e,t).update(r).digest(),t.hmac.create=(e,t)=>new o(e,t)},29023:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pbkdf2Async=t.pbkdf2=void 0;const n=r(27320),i=r(79569),o=r(98089);function a(e,t,r,a){n.default.hash(e);const s=(0,o.checkOpts)({dkLen:32,asyncTick:10},a),{c:u,dkLen:c,asyncTick:f}=s;if(n.default.number(u),n.default.number(c),n.default.number(f),u<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const l=(0,o.toBytes)(t),d=(0,o.toBytes)(r),h=new Uint8Array(c),p=i.hmac.create(e,l),b=p._cloneInto().update(d);return{c:u,dkLen:c,asyncTick:f,DK:h,PRF:p,PRFSalt:b}}function s(e,t,r,n,i){return e.destroy(),t.destroy(),n&&n.destroy(),i.fill(0),r}t.pbkdf2=function(e,t,r,n){const{c:i,dkLen:u,DK:c,PRF:f,PRFSalt:l}=a(e,t,r,n);let d;const h=new Uint8Array(4),p=(0,o.createView)(h),b=new Uint8Array(f.outputLen);for(let e=1,t=0;t<u;e++,t+=f.outputLen){const r=c.subarray(t,t+f.outputLen);p.setInt32(0,e,!1),(d=l._cloneInto(d)).update(h).digestInto(b),r.set(b.subarray(0,r.length));for(let e=1;e<i;e++){f._cloneInto(d).update(b).digestInto(b);for(let e=0;e<r.length;e++)r[e]^=b[e]}}return s(f,l,c,d,b)},t.pbkdf2Async=async function(e,t,r,n){const{c:i,dkLen:u,asyncTick:c,DK:f,PRF:l,PRFSalt:d}=a(e,t,r,n);let h;const p=new Uint8Array(4),b=(0,o.createView)(p),y=new Uint8Array(l.outputLen);for(let e=1,t=0;t<u;e++,t+=l.outputLen){const r=f.subarray(t,t+l.outputLen);b.setInt32(0,e,!1),(h=d._cloneInto(h)).update(p).digestInto(y),r.set(y.subarray(0,r.length)),await(0,o.asyncLoop)(i-1,c,(e=>{l._cloneInto(h).update(y).digestInto(y);for(let e=0;e<r.length;e++)r[e]^=y[e]}))}return s(l,d,f,h,y)}},69514:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scryptAsync=t.scrypt=void 0;const n=r(27320),i=r(23061),o=r(29023),a=r(98089),s=(e,t)=>e<<t|e>>>32-t;function u(e,t,r,n,i,o){let a=e[t++]^r[n++],u=e[t++]^r[n++],c=e[t++]^r[n++],f=e[t++]^r[n++],l=e[t++]^r[n++],d=e[t++]^r[n++],h=e[t++]^r[n++],p=e[t++]^r[n++],b=e[t++]^r[n++],y=e[t++]^r[n++],g=e[t++]^r[n++],m=e[t++]^r[n++],v=e[t++]^r[n++],w=e[t++]^r[n++],_=e[t++]^r[n++],x=e[t++]^r[n++],O=a,k=u,P=c,S=f,A=l,E=d,M=h,j=p,T=b,B=y,I=g,N=m,R=v,C=w,U=_,L=x;for(let e=0;e<8;e+=2)A^=s(O+R|0,7),T^=s(A+O|0,9),R^=s(T+A|0,13),O^=s(R+T|0,18),B^=s(E+k|0,7),C^=s(B+E|0,9),k^=s(C+B|0,13),E^=s(k+C|0,18),U^=s(I+M|0,7),P^=s(U+I|0,9),M^=s(P+U|0,13),I^=s(M+P|0,18),S^=s(L+N|0,7),j^=s(S+L|0,9),N^=s(j+S|0,13),L^=s(N+j|0,18),k^=s(O+S|0,7),P^=s(k+O|0,9),S^=s(P+k|0,13),O^=s(S+P|0,18),M^=s(E+A|0,7),j^=s(M+E|0,9),A^=s(j+M|0,13),E^=s(A+j|0,18),N^=s(I+B|0,7),T^=s(N+I|0,9),B^=s(T+N|0,13),I^=s(B+T|0,18),R^=s(L+U|0,7),C^=s(R+L|0,9),U^=s(C+R|0,13),L^=s(U+C|0,18);i[o++]=a+O|0,i[o++]=u+k|0,i[o++]=c+P|0,i[o++]=f+S|0,i[o++]=l+A|0,i[o++]=d+E|0,i[o++]=h+M|0,i[o++]=p+j|0,i[o++]=b+T|0,i[o++]=y+B|0,i[o++]=g+I|0,i[o++]=m+N|0,i[o++]=v+R|0,i[o++]=w+C|0,i[o++]=_+U|0,i[o++]=x+L|0}function c(e,t,r,n,i){let o=n+0,a=n+16*i;for(let n=0;n<16;n++)r[a+n]=e[t+16*(2*i-1)+n];for(let n=0;n<i;n++,o+=16,t+=16)u(r,a,e,t,r,o),n>0&&(a+=16),u(r,o,e,t+=16,r,a)}function f(e,t,r){const s=(0,a.checkOpts)({dkLen:32,asyncTick:10,maxmem:1073742848},r),{N:u,r:c,p:f,dkLen:l,asyncTick:d,maxmem:h,onProgress:p}=s;if(n.default.number(u),n.default.number(c),n.default.number(f),n.default.number(l),n.default.number(d),n.default.number(h),void 0!==p&&"function"!=typeof p)throw new Error("progressCb should be function");const b=128*c,y=b/4;if(u<=1||0!=(u&u-1)||u>=2**(b/8)||u>2**32)throw new Error("Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32");if(f<0||f>137438953440/b)throw new Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(l<0||l>137438953440)throw new Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");const g=b*(u+f);if(g>h)throw new Error(`Scrypt: parameters too large, ${g} (128 * r * (N + p)) > ${h} (maxmem)`);const m=(0,o.pbkdf2)(i.sha256,e,t,{c:1,dkLen:b*f}),v=(0,a.u32)(m),w=(0,a.u32)(new Uint8Array(b*u)),_=(0,a.u32)(new Uint8Array(b));let x=()=>{};if(p){const e=2*u*f,t=Math.max(Math.floor(e/1e4),1);let r=0;x=()=>{r++,!p||r%t&&r!==e||p(r/e)}}return{N:u,r:c,p:f,dkLen:l,blockSize32:y,V:w,B32:v,B:m,tmp:_,blockMixCb:x,asyncTick:d}}function l(e,t,r,n,a){const s=(0,o.pbkdf2)(i.sha256,e,r,{c:1,dkLen:t});return r.fill(0),n.fill(0),a.fill(0),s}t.scrypt=function(e,t,r){const{N:n,r:i,p:o,dkLen:a,blockSize32:s,V:u,B32:d,B:h,tmp:p,blockMixCb:b}=f(e,t,r);for(let e=0;e<o;e++){const t=s*e;for(let e=0;e<s;e++)u[e]=d[t+e];for(let e=0,t=0;e<n-1;e++)c(u,t,u,t+=s,i),b();c(u,(n-1)*s,d,t,i),b();for(let e=0;e<n;e++){const e=d[t+s-16]%n;for(let r=0;r<s;r++)p[r]=d[t+r]^u[e*s+r];c(p,0,d,t,i),b()}}return l(e,a,h,u,p)},t.scryptAsync=async function(e,t,r){const{N:n,r:i,p:o,dkLen:s,blockSize32:u,V:d,B32:h,B:p,tmp:b,blockMixCb:y,asyncTick:g}=f(e,t,r);for(let e=0;e<o;e++){const t=u*e;for(let e=0;e<u;e++)d[e]=h[t+e];let r=0;await(0,a.asyncLoop)(n-1,g,(e=>{c(d,r,d,r+=u,i),y()})),c(d,(n-1)*u,h,t,i),y(),await(0,a.asyncLoop)(n,g,(e=>{const r=h[t+u-16]%n;for(let e=0;e<u;e++)b[e]=h[t+e]^d[r*u+e];c(b,0,h,t,i),y()}))}return l(e,s,p,d,b)}},23061:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha256=void 0;const n=r(27505),i=r(98089),o=(e,t,r)=>e&t^e&r^t&r,a=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),s=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),u=new Uint32Array(64);class c extends n.SHA2{constructor(){super(64,32,8,!1),this.A=0|s[0],this.B=0|s[1],this.C=0|s[2],this.D=0|s[3],this.E=0|s[4],this.F=0|s[5],this.G=0|s[6],this.H=0|s[7]}get(){const{A:e,B:t,C:r,D:n,E:i,F:o,G:a,H:s}=this;return[e,t,r,n,i,o,a,s]}set(e,t,r,n,i,o,a,s){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|i,this.F=0|o,this.G=0|a,this.H=0|s}process(e,t){for(let r=0;r<16;r++,t+=4)u[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){const t=u[e-15],r=u[e-2],n=(0,i.rotr)(t,7)^(0,i.rotr)(t,18)^t>>>3,o=(0,i.rotr)(r,17)^(0,i.rotr)(r,19)^r>>>10;u[e]=o+u[e-7]+n+u[e-16]|0}let{A:r,B:n,C:s,D:c,E:f,F:l,G:d,H:h}=this;for(let e=0;e<64;e++){const t=h+((0,i.rotr)(f,6)^(0,i.rotr)(f,11)^(0,i.rotr)(f,25))+((p=f)&l^~p&d)+a[e]+u[e]|0,b=((0,i.rotr)(r,2)^(0,i.rotr)(r,13)^(0,i.rotr)(r,22))+o(r,n,s)|0;h=d,d=l,l=f,f=c+t|0,c=s,s=n,n=r,r=t+b|0}var p;r=r+this.A|0,n=n+this.B|0,s=s+this.C|0,c=c+this.D|0,f=f+this.E|0,l=l+this.F|0,d=d+this.G|0,h=h+this.H|0,this.set(r,n,s,c,f,l,d,h)}roundClean(){u.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}t.sha256=(0,i.wrapConstructor)((()=>new c))},85426:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shake256=t.shake128=t.keccak_512=t.keccak_384=t.keccak_256=t.keccak_224=t.sha3_512=t.sha3_384=t.sha3_256=t.sha3_224=t.Keccak=t.keccakP=void 0;const n=r(27320),i=r(6873),o=r(98089),[a,s,u]=[[],[],[]],c=BigInt(0),f=BigInt(1),l=BigInt(2),d=BigInt(7),h=BigInt(256),p=BigInt(113);for(let e=0,t=f,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],a.push(2*(5*n+r)),s.push((e+1)*(e+2)/2%64);let i=c;for(let e=0;e<7;e++)t=(t<<f^(t>>d)*p)%h,t&l&&(i^=f<<(f<<BigInt(e))-f);u.push(i)}const[b,y]=i.default.split(u,!0),g=(e,t,r)=>r>32?i.default.rotlBH(e,t,r):i.default.rotlSH(e,t,r),m=(e,t,r)=>r>32?i.default.rotlBL(e,t,r):i.default.rotlSL(e,t,r);function v(e,t=24){const r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){const n=(t+8)%10,i=(t+2)%10,o=r[i],a=r[i+1],s=g(o,a,1)^r[n],u=m(o,a,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=s,e[t+r+1]^=u}let t=e[2],i=e[3];for(let r=0;r<24;r++){const n=s[r],o=g(t,i,n),u=m(t,i,n),c=a[r];t=e[c],i=e[c+1],e[c]=o,e[c+1]=u}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)r[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~r[(n+2)%10]&r[(n+4)%10]}e[0]^=b[n],e[1]^=y[n]}r.fill(0)}t.keccakP=v;class w extends o.Hash{constructor(e,t,r,i=!1,a=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=i,this.rounds=a,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,n.default.number(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,o.u32)(this.state)}keccak(){v(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){n.default.exists(this);const{blockLen:t,state:r}=this,i=(e=(0,o.toBytes)(e)).length;for(let n=0;n<i;){const o=Math.min(t-this.pos,i-n);for(let t=0;t<o;t++)r[this.pos++]^=e[n++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:e,suffix:t,pos:r,blockLen:n}=this;e[r]^=t,0!=(128&t)&&r===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}writeInto(e){n.default.exists(this,!1),n.default.bytes(e),this.finish();const t=this.state,{blockLen:r}=this;for(let n=0,i=e.length;n<i;){this.posOut>=r&&this.keccak();const o=Math.min(r-this.posOut,i-n);e.set(t.subarray(this.posOut,this.posOut+o),n),this.posOut+=o,n+=o}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return n.default.number(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(n.default.output(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:t,suffix:r,outputLen:n,rounds:i,enableXOF:o}=this;return e||(e=new w(t,r,n,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=n,e.enableXOF=o,e.destroyed=this.destroyed,e}}t.Keccak=w;const _=(e,t,r)=>(0,o.wrapConstructor)((()=>new w(t,e,r)));t.sha3_224=_(6,144,28),t.sha3_256=_(6,136,32),t.sha3_384=_(6,104,48),t.sha3_512=_(6,72,64),t.keccak_224=_(1,144,28),t.keccak_256=_(1,136,32),t.keccak_384=_(1,104,48),t.keccak_512=_(1,72,64);const x=(e,t,r)=>(0,o.wrapConstructorWithOpts)(((n={})=>new w(t,e,void 0===n.dkLen?r:n.dkLen,!0)));t.shake128=x(31,168,16),t.shake256=x(31,136,32)},86262:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha384=t.sha512_256=t.sha512=t.SHA512=void 0;const n=r(27505),i=r(6873),o=r(98089),[a,s]=i.default.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map((e=>BigInt(e)))),u=new Uint32Array(80),c=new Uint32Array(80);class f extends n.SHA2{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:e,Al:t,Bh:r,Bl:n,Ch:i,Cl:o,Dh:a,Dl:s,Eh:u,El:c,Fh:f,Fl:l,Gh:d,Gl:h,Hh:p,Hl:b}=this;return[e,t,r,n,i,o,a,s,u,c,f,l,d,h,p,b]}set(e,t,r,n,i,o,a,s,u,c,f,l,d,h,p,b){this.Ah=0|e,this.Al=0|t,this.Bh=0|r,this.Bl=0|n,this.Ch=0|i,this.Cl=0|o,this.Dh=0|a,this.Dl=0|s,this.Eh=0|u,this.El=0|c,this.Fh=0|f,this.Fl=0|l,this.Gh=0|d,this.Gl=0|h,this.Hh=0|p,this.Hl=0|b}process(e,t){for(let r=0;r<16;r++,t+=4)u[r]=e.getUint32(t),c[r]=e.getUint32(t+=4);for(let e=16;e<80;e++){const t=0|u[e-15],r=0|c[e-15],n=i.default.rotrSH(t,r,1)^i.default.rotrSH(t,r,8)^i.default.shrSH(t,r,7),o=i.default.rotrSL(t,r,1)^i.default.rotrSL(t,r,8)^i.default.shrSL(t,r,7),a=0|u[e-2],s=0|c[e-2],f=i.default.rotrSH(a,s,19)^i.default.rotrBH(a,s,61)^i.default.shrSH(a,s,6),l=i.default.rotrSL(a,s,19)^i.default.rotrBL(a,s,61)^i.default.shrSL(a,s,6),d=i.default.add4L(o,l,c[e-7],c[e-16]),h=i.default.add4H(d,n,f,u[e-7],u[e-16]);u[e]=0|h,c[e]=0|d}let{Ah:r,Al:n,Bh:o,Bl:f,Ch:l,Cl:d,Dh:h,Dl:p,Eh:b,El:y,Fh:g,Fl:m,Gh:v,Gl:w,Hh:_,Hl:x}=this;for(let e=0;e<80;e++){const t=i.default.rotrSH(b,y,14)^i.default.rotrSH(b,y,18)^i.default.rotrBH(b,y,41),O=i.default.rotrSL(b,y,14)^i.default.rotrSL(b,y,18)^i.default.rotrBL(b,y,41),k=b&g^~b&v,P=y&m^~y&w,S=i.default.add5L(x,O,P,s[e],c[e]),A=i.default.add5H(S,_,t,k,a[e],u[e]),E=0|S,M=i.default.rotrSH(r,n,28)^i.default.rotrBH(r,n,34)^i.default.rotrBH(r,n,39),j=i.default.rotrSL(r,n,28)^i.default.rotrBL(r,n,34)^i.default.rotrBL(r,n,39),T=r&o^r&l^o&l,B=n&f^n&d^f&d;_=0|v,x=0|w,v=0|g,w=0|m,g=0|b,m=0|y,({h:b,l:y}=i.default.add(0|h,0|p,0|A,0|E)),h=0|l,p=0|d,l=0|o,d=0|f,o=0|r,f=0|n;const I=i.default.add3L(E,j,B);r=i.default.add3H(I,A,M,T),n=0|I}({h:r,l:n}=i.default.add(0|this.Ah,0|this.Al,0|r,0|n)),({h:o,l:f}=i.default.add(0|this.Bh,0|this.Bl,0|o,0|f)),({h:l,l:d}=i.default.add(0|this.Ch,0|this.Cl,0|l,0|d)),({h,l:p}=i.default.add(0|this.Dh,0|this.Dl,0|h,0|p)),({h:b,l:y}=i.default.add(0|this.Eh,0|this.El,0|b,0|y)),({h:g,l:m}=i.default.add(0|this.Fh,0|this.Fl,0|g,0|m)),({h:v,l:w}=i.default.add(0|this.Gh,0|this.Gl,0|v,0|w)),({h:_,l:x}=i.default.add(0|this.Hh,0|this.Hl,0|_,0|x)),this.set(r,n,o,f,l,d,h,p,b,y,g,m,v,w,_,x)}roundClean(){u.fill(0),c.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}t.SHA512=f;class l extends f{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}class d extends f{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}}t.sha512=(0,o.wrapConstructor)((()=>new f)),t.sha512_256=(0,o.wrapConstructor)((()=>new l)),t.sha384=(0,o.wrapConstructor)((()=>new d))},98089:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.wrapConstructorWithOpts=t.wrapConstructor=t.checkOpts=t.Hash=t.concatBytes=t.toBytes=t.utf8ToBytes=t.asyncLoop=t.nextTick=t.hexToBytes=t.bytesToHex=t.isLE=t.rotr=t.createView=t.u32=t.u8=void 0;const n=r(64421);if(t.u8=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),t.u32=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),t.createView=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),t.rotr=(e,t)=>e<<32-t|e>>>t,t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],!t.isLE)throw new Error("Non little-endian hardware is not supported");const i=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function o(e){if("string"!=typeof e)throw new TypeError("utf8ToBytes expected string, got "+typeof e);return(new TextEncoder).encode(e)}function a(e){if("string"==typeof e&&(e=o(e)),!(e instanceof Uint8Array))throw new TypeError(`Expected input type is Uint8Array (got ${typeof e})`);return e}t.bytesToHex=function(e){if(!(e instanceof Uint8Array))throw new Error("Uint8Array expected");let t="";for(let r=0;r<e.length;r++)t+=i[e[r]];return t},t.hexToBytes=function(e){if("string"!=typeof e)throw new TypeError("hexToBytes: expected string, got "+typeof e);if(e.length%2)throw new Error("hexToBytes: received invalid unpadded hex");const t=new Uint8Array(e.length/2);for(let r=0;r<t.length;r++){const n=2*r,i=e.slice(n,n+2),o=Number.parseInt(i,16);if(Number.isNaN(o)||o<0)throw new Error("Invalid byte sequence");t[r]=o}return t},t.nextTick=async()=>{},t.asyncLoop=async function(e,r,n){let i=Date.now();for(let o=0;o<e;o++){n(o);const e=Date.now()-i;e>=0&&e<r||(await(0,t.nextTick)(),i+=e)}},t.utf8ToBytes=o,t.toBytes=a,t.concatBytes=function(...e){if(!e.every((e=>e instanceof Uint8Array)))throw new Error("Uint8Array list expected");if(1===e.length)return e[0];const t=e.reduce(((e,t)=>e+t.length),0),r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){const i=e[t];r.set(i,n),n+=i.length}return r},t.Hash=class{clone(){return this._cloneInto()}},t.checkOpts=function(e,t){if(void 0!==t&&("object"!=typeof t||(r=t,"[object Object]"!==Object.prototype.toString.call(r)||r.constructor!==Object)))throw new TypeError("Options should be object or undefined");var r;return Object.assign(e,t)},t.wrapConstructor=function(e){const t=t=>e().update(a(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t},t.wrapConstructorWithOpts=function(e){const t=(t,r)=>e(r).update(a(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},t.randomBytes=function(e=32){if(n.crypto.web)return n.crypto.web.getRandomValues(new Uint8Array(e));if(n.crypto.node)return new Uint8Array(n.crypto.node.randomBytes(e).buffer);throw new Error("The environment doesn't have randomBytes function")}},79656:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.utils=t.schnorr=t.verify=t.signSync=t.sign=t.getSharedSecret=t.recoverPublicKey=t.getPublicKey=t.Signature=t.Point=t.CURVE=void 0;const n=r(69159),i=BigInt(0),o=BigInt(1),a=BigInt(2),s=BigInt(3),u=BigInt(8),c=Object.freeze({a:i,b:BigInt(7),P:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:o,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee")});function f(e){const{a:t,b:r}=c,n=T(e*e),i=T(n*e);return T(i+t*e+r)}t.CURVE=c;const l=c.a===i;class d extends Error{constructor(e){super(e)}}class h{constructor(e,t,r){this.x=e,this.y=t,this.z=r}static fromAffine(e){if(!(e instanceof b))throw new TypeError("JacobianPoint#fromAffine: expected Point");return new h(e.x,e.y,o)}static toAffineBatch(e){const t=function(e,t=c.P){const r=new Array(e.length),n=I(e.reduce(((e,n,o)=>n===i?e:(r[o]=e,T(e*n,t))),o),t);return e.reduceRight(((e,n,o)=>n===i?e:(r[o]=T(e*r[o],t),T(e*n,t))),n),r}(e.map((e=>e.z)));return e.map(((e,r)=>e.toAffine(t[r])))}static normalizeZ(e){return h.toAffineBatch(e).map(h.fromAffine)}equals(e){if(!(e instanceof h))throw new TypeError("JacobianPoint expected");const{x:t,y:r,z:n}=this,{x:i,y:o,z:a}=e,s=T(n*n),u=T(a*a),c=T(t*u),f=T(i*s),l=T(T(r*a)*u),d=T(T(o*n)*s);return c===f&&l===d}negate(){return new h(this.x,T(-this.y),this.z)}double(){const{x:e,y:t,z:r}=this,n=T(e*e),i=T(t*t),o=T(i*i),c=e+i,f=T(a*(T(c*c)-n-o)),l=T(s*n),d=T(l*l),p=T(d-a*f),b=T(l*(f-p)-u*o),y=T(a*t*r);return new h(p,b,y)}add(e){if(!(e instanceof h))throw new TypeError("JacobianPoint expected");const{x:t,y:r,z:n}=this,{x:o,y:s,z:u}=e;if(o===i||s===i)return this;if(t===i||r===i)return e;const c=T(n*n),f=T(u*u),l=T(t*f),d=T(o*c),p=T(T(r*u)*f),b=T(T(s*n)*c),y=T(d-l),g=T(b-p);if(y===i)return g===i?this.double():h.ZERO;const m=T(y*y),v=T(y*m),w=T(l*m),_=T(g*g-v-a*w),x=T(g*(w-_)-p*v),O=T(n*u*y);return new h(_,x,O)}subtract(e){return this.add(e.negate())}multiplyUnsafe(e){const t=h.ZERO;if("bigint"==typeof e&&e===i)return t;let r=j(e);if(r===o)return this;if(!l){let e=t,n=this;for(;r>i;)r&o&&(e=e.add(n)),n=n.double(),r>>=o;return e}let{k1neg:n,k1:a,k2neg:s,k2:u}=C(r),f=t,d=t,p=this;for(;a>i||u>i;)a&o&&(f=f.add(p)),u&o&&(d=d.add(p)),p=p.double(),a>>=o,u>>=o;return n&&(f=f.negate()),s&&(d=d.negate()),d=new h(T(d.x*c.beta),d.y,d.z),f.add(d)}precomputeWindow(e){const t=l?128/e+1:256/e+1,r=[];let n=this,i=n;for(let o=0;o<t;o++){i=n,r.push(i);for(let t=1;t<2**(e-1);t++)i=i.add(n),r.push(i);n=i.double()}return r}wNAF(e,t){!t&&this.equals(h.BASE)&&(t=b.BASE);const r=t&&t._WINDOW_SIZE||1;if(256%r)throw new Error("Point#wNAF: Invalid precomputation window, must be power of 2");let n=t&&p.get(t);n||(n=this.precomputeWindow(r),t&&1!==r&&(n=h.normalizeZ(n),p.set(t,n)));let i=h.ZERO,a=h.ZERO;const s=1+(l?128/r:256/r),u=2**(r-1),c=BigInt(2**r-1),f=2**r,d=BigInt(r);for(let t=0;t<s;t++){const r=t*u;let s=Number(e&c);if(e>>=d,s>u&&(s-=f,e+=o),0===s){let e=n[r];t%2&&(e=e.negate()),a=a.add(e)}else{let e=n[r+Math.abs(s)-1];s<0&&(e=e.negate()),i=i.add(e)}}return{p:i,f:a}}multiply(e,t){let r,n,i=j(e);if(l){const{k1neg:e,k1:o,k2neg:a,k2:s}=C(i);let{p:u,f}=this.wNAF(o,t),{p:l,f:d}=this.wNAF(s,t);e&&(u=u.negate()),a&&(l=l.negate()),l=new h(T(l.x*c.beta),l.y,l.z),r=u.add(l),n=f.add(d)}else{const{p:e,f:o}=this.wNAF(i,t);r=e,n=o}return h.normalizeZ([r,n])[0]}toAffine(e=I(this.z)){const{x:t,y:r,z:n}=this,i=e,a=T(i*i),s=T(a*i),u=T(t*a),c=T(r*s);if(T(n*i)!==o)throw new Error("invZ was invalid");return new b(u,c)}}h.BASE=new h(c.Gx,c.Gy,o),h.ZERO=new h(i,o,i);const p=new WeakMap;class b{constructor(e,t){this.x=e,this.y=t}_setWindowSize(e){this._WINDOW_SIZE=e,p.delete(this)}hasEvenY(){return this.y%a===i}static fromCompressedHex(e){const t=32===e.length,r=E(t?e:e.subarray(1));if(!V(r))throw new Error("Point is not on curve");let n=function(e){const{P:t}=c,r=BigInt(6),n=BigInt(11),i=BigInt(22),o=BigInt(23),u=BigInt(44),f=BigInt(88),l=e*e*e%t,d=l*l*e%t,h=B(d,s)*d%t,p=B(h,s)*d%t,b=B(p,a)*l%t,y=B(b,n)*b%t,g=B(y,i)*y%t,m=B(g,u)*g%t,v=B(m,f)*m%t,w=B(v,u)*g%t,_=B(w,s)*d%t,x=B(_,o)*y%t,O=B(x,r)*l%t;return B(O,a)}(f(r));const i=(n&o)===o;t?i&&(n=T(-n)):1==(1&e[0])!==i&&(n=T(-n));const u=new b(r,n);return u.assertValidity(),u}static fromUncompressedHex(e){const t=E(e.subarray(1,33)),r=E(e.subarray(33,65)),n=new b(t,r);return n.assertValidity(),n}static fromHex(e){const t=M(e),r=t.length,n=t[0];if(32===r||33===r&&(2===n||3===n))return this.fromCompressedHex(t);if(65===r&&4===n)return this.fromUncompressedHex(t);throw new Error(`Point.fromHex: received invalid point. Expected 32-33 compressed bytes or 65 uncompressed bytes, not ${r}`)}static fromPrivateKey(e){return b.BASE.multiply(q(e))}static fromSignature(e,t,r){const n=U(e=M(e)),{r:i,s:o}=W(t);if(0!==r&&1!==r)throw new Error("Cannot recover signature: invalid recovery bit");const a=1&r?"03":"02",s=b.fromHex(a+O(i)),{n:u}=c,f=I(i,u),l=T(-n*f,u),d=T(o*f,u),h=b.BASE.multiplyAndAddUnsafe(s,l,d);if(!h)throw new Error("Cannot recover signature: point at infinify");return h.assertValidity(),h}toRawBytes(e=!1){return A(this.toHex(e))}toHex(e=!1){const t=O(this.x);return e?`${this.hasEvenY()?"02":"03"}${t}`:`04${t}${O(this.y)}`}toHexX(){return this.toHex(!0).slice(2)}toRawX(){return this.toRawBytes(!0).slice(1)}assertValidity(){const e="Point is not on elliptic curve",{x:t,y:r}=this;if(!V(t)||!V(r))throw new Error(e);const n=T(r*r);if(T(n-f(t))!==i)throw new Error(e)}equals(e){return this.x===e.x&&this.y===e.y}negate(){return new b(this.x,T(-this.y))}double(){return h.fromAffine(this).double().toAffine()}add(e){return h.fromAffine(this).add(h.fromAffine(e)).toAffine()}subtract(e){return this.add(e.negate())}multiply(e){return h.fromAffine(this).multiply(e,this).toAffine()}multiplyAndAddUnsafe(e,t,r){const n=h.fromAffine(this),a=t===i||t===o||this!==b.BASE?n.multiplyUnsafe(t):n.multiply(t),s=h.fromAffine(e).multiplyUnsafe(r),u=a.add(s);return u.equals(h.ZERO)?void 0:u.toAffine()}}function y(e){return Number.parseInt(e[0],16)>=8?"00"+e:e}function g(e){if(e.length<2||2!==e[0])throw new Error(`Invalid signature integer tag: ${_(e)}`);const t=e[1],r=e.subarray(2,t+2);if(!t||r.length!==t)throw new Error("Invalid signature integer: wrong length");if(0===r[0]&&r[1]<=127)throw new Error("Invalid signature integer: trailing length");return{data:E(r),left:e.subarray(t+2)}}t.Point=b,b.BASE=new b(c.Gx,c.Gy),b.ZERO=new b(i,i);class m{constructor(e,t){this.r=e,this.s=t,this.assertValidity()}static fromCompact(e){const t=e instanceof Uint8Array,r="Signature.fromCompact";if("string"!=typeof e&&!t)throw new TypeError(`${r}: Expected string or Uint8Array`);const n=t?_(e):e;if(128!==n.length)throw new Error(`${r}: Expected 64-byte hex`);return new m(S(n.slice(0,64)),S(n.slice(64,128)))}static fromDER(e){const t=e instanceof Uint8Array;if("string"!=typeof e&&!t)throw new TypeError("Signature.fromDER: Expected string or Uint8Array");const{r,s:n}=function(e){if(e.length<2||48!=e[0])throw new Error(`Invalid signature tag: ${_(e)}`);if(e[1]!==e.length-2)throw new Error("Invalid signature: incorrect length");const{data:t,left:r}=g(e.subarray(2)),{data:n,left:i}=g(r);if(i.length)throw new Error(`Invalid signature: left bytes after parsing: ${_(i)}`);return{r:t,s:n}}(t?e:A(e));return new m(r,n)}static fromHex(e){return this.fromDER(e)}assertValidity(){const{r:e,s:t}=this;if(!F(e))throw new Error("Invalid Signature: r must be 0 < r < n");if(!F(t))throw new Error("Invalid Signature: s must be 0 < s < n")}hasHighS(){const e=c.n>>o;return this.s>e}normalizeS(){return this.hasHighS()?new m(this.r,c.n-this.s):this}toDERRawBytes(e=!1){return A(this.toDERHex(e))}toDERHex(e=!1){const t=y(P(this.s));if(e)return t;const r=y(P(this.r)),n=P(r.length/2),i=P(t.length/2);return`30${P(r.length/2+t.length/2+4)}02${n}${r}02${i}${t}`}toRawBytes(){return this.toDERRawBytes()}toHex(){return this.toDERHex()}toCompactRawBytes(){return A(this.toCompactHex())}toCompactHex(){return O(this.r)+O(this.s)}}function v(...e){if(!e.every((e=>e instanceof Uint8Array)))throw new Error("Uint8Array list expected");if(1===e.length)return e[0];const t=e.reduce(((e,t)=>e+t.length),0),r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){const i=e[t];r.set(i,n),n+=i.length}return r}t.Signature=m;const w=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function _(e){if(!(e instanceof Uint8Array))throw new Error("Expected Uint8Array");let t="";for(let r=0;r<e.length;r++)t+=w[e[r]];return t}const x=BigInt("0x10000000000000000000000000000000000000000000000000000000000000000");function O(e){if("bigint"!=typeof e)throw new Error("Expected bigint");if(!(i<=e&&e<x))throw new Error("Expected number < 2^256");return e.toString(16).padStart(64,"0")}function k(e){const t=A(O(e));if(32!==t.length)throw new Error("Error: expected 32 bytes");return t}function P(e){const t=e.toString(16);return 1&t.length?`0${t}`:t}function S(e){if("string"!=typeof e)throw new TypeError("hexToNumber: expected string, got "+typeof e);return BigInt(`0x${e}`)}function A(e){if("string"!=typeof e)throw new TypeError("hexToBytes: expected string, got "+typeof e);if(e.length%2)throw new Error("hexToBytes: received invalid unpadded hex"+e.length);const t=new Uint8Array(e.length/2);for(let r=0;r<t.length;r++){const n=2*r,i=e.slice(n,n+2),o=Number.parseInt(i,16);if(Number.isNaN(o)||o<0)throw new Error("Invalid byte sequence");t[r]=o}return t}function E(e){return S(_(e))}function M(e){return e instanceof Uint8Array?Uint8Array.from(e):A(e)}function j(e){if("number"==typeof e&&Number.isSafeInteger(e)&&e>0)return BigInt(e);if("bigint"==typeof e&&F(e))return e;throw new TypeError("Expected valid private scalar: 0 < scalar < curve.n")}function T(e,t=c.P){const r=e%t;return r>=i?r:t+r}function B(e,t){const{P:r}=c;let n=e;for(;t-- >i;)n*=n,n%=r;return n}function I(e,t=c.P){if(e===i||t<=i)throw new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let r=T(e,t),n=t,a=i,s=o,u=o,f=i;for(;r!==i;){const e=n/r,t=n%r,i=a-u*e,o=s-f*e;n=r,r=t,a=u,s=f,u=i,f=o}if(n!==o)throw new Error("invert: does not exist");return T(a,t)}const N=(e,t)=>(e+t/a)/t,R={a1:BigInt("0x3086d221a7d46bcde86c90e49284eb15"),b1:-o*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),a2:BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),b2:BigInt("0x3086d221a7d46bcde86c90e49284eb15"),POW_2_128:BigInt("0x100000000000000000000000000000000")};function C(e){const{n:t}=c,{a1:r,b1:n,a2:i,b2:o,POW_2_128:a}=R,s=N(o*e,t),u=N(-n*e,t);let f=T(e-s*r-u*i,t),l=T(-s*n-u*o,t);const d=f>a,h=l>a;if(d&&(f=t-f),h&&(l=t-l),f>a||l>a)throw new Error("splitScalarEndo: Endomorphism failed, k="+e);return{k1neg:d,k1:f,k2neg:h,k2:l}}function U(e){const{n:t}=c,r=8*e.length-256;let n=E(e);return r>0&&(n>>=BigInt(r)),n>=t&&(n-=t),n}let L,D;class H{constructor(){this.v=new Uint8Array(32).fill(1),this.k=new Uint8Array(32).fill(0),this.counter=0}hmac(...e){return t.utils.hmacSha256(this.k,...e)}hmacSync(...e){return D(this.k,...e)}checkSync(){if("function"!=typeof D)throw new d("hmacSha256Sync needs to be set")}incr(){if(this.counter>=1e3)throw new Error("Tried 1,000 k values for sign(), all were invalid");this.counter+=1}async reseed(e=new Uint8Array){this.k=await this.hmac(this.v,Uint8Array.from([0]),e),this.v=await this.hmac(this.v),0!==e.length&&(this.k=await this.hmac(this.v,Uint8Array.from([1]),e),this.v=await this.hmac(this.v))}reseedSync(e=new Uint8Array){this.checkSync(),this.k=this.hmacSync(this.v,Uint8Array.from([0]),e),this.v=this.hmacSync(this.v),0!==e.length&&(this.k=this.hmacSync(this.v,Uint8Array.from([1]),e),this.v=this.hmacSync(this.v))}async generate(){return this.incr(),this.v=await this.hmac(this.v),this.v}generateSync(){return this.checkSync(),this.incr(),this.v=this.hmacSync(this.v),this.v}}function F(e){return i<e&&e<c.n}function V(e){return i<e&&e<c.P}function z(e,t,r){const n=E(e);if(!F(n))return;const{n:a}=c,s=b.BASE.multiply(n),u=T(s.x,a);if(u===i)return;const f=T(I(n,a)*T(t+r*u,a),a);if(f===i)return;const l=new m(u,f);return{sig:l,recovery:(s.x===l.r?0:2)|Number(s.y&o)}}function q(e){let t;if("bigint"==typeof e)t=e;else if("number"==typeof e&&Number.isSafeInteger(e)&&e>0)t=BigInt(e);else if("string"==typeof e){if(64!==e.length)throw new Error("Expected 32 bytes of private key");t=S(e)}else{if(!(e instanceof Uint8Array))throw new TypeError("Expected valid private key");if(32!==e.length)throw new Error("Expected 32 bytes of private key");t=E(e)}if(!F(t))throw new Error("Expected private key: 0 < key < n");return t}function K(e){return e instanceof b?(e.assertValidity(),e):b.fromHex(e)}function W(e){if(e instanceof m)return e.assertValidity(),e;try{return m.fromDER(e)}catch(t){return m.fromCompact(e)}}function G(e){const t=e instanceof Uint8Array,r="string"==typeof e,n=(t||r)&&e.length;return t?33===n||65===n:r?66===n||130===n:e instanceof b}function X(e){return E(e.length>32?e.slice(0,32):e)}function Z(e){const t=X(e),r=T(t,c.n);return J(r<i?t:r)}function J(e){return k(e)}function Y(e,r,n){if(null==e)throw new Error(`sign: expected valid message hash, not "${e}"`);const i=M(e),o=q(r),a=[J(o),Z(i)];if(null!=n){!0===n&&(n=t.utils.randomBytes(32));const e=M(n);if(32!==e.length)throw new Error("sign: Expected 32 bytes of extra data");a.push(e)}return{seed:v(...a),m:X(i),d:o}}function Q(e,t){let{sig:r,recovery:n}=e;const{canonical:i,der:o,recovered:a}=Object.assign({canonical:!0,der:!0},t);i&&r.hasHighS()&&(r=r.normalizeS(),n^=1);const s=o?r.toDERRawBytes():r.toCompactRawBytes();return a?[s,n]:s}t.getPublicKey=function(e,t=!1){return b.fromPrivateKey(e).toRawBytes(t)},t.recoverPublicKey=function(e,t,r,n=!1){return b.fromSignature(e,t,r).toRawBytes(n)},t.getSharedSecret=function(e,t,r=!1){if(G(e))throw new TypeError("getSharedSecret: first arg must be private key");if(!G(t))throw new TypeError("getSharedSecret: second arg must be public key");const n=K(t);return n.assertValidity(),n.multiply(q(e)).toRawBytes(r)},t.sign=async function(e,t,r={}){const{seed:n,m:i,d:o}=Y(e,t,r.extraEntropy);let a;const s=new H;for(await s.reseed(n);!(a=z(await s.generate(),i,o));)await s.reseed();return Q(a,r)},t.signSync=function(e,t,r={}){const{seed:n,m:i,d:o}=Y(e,t,r.extraEntropy);let a;const s=new H;for(s.reseedSync(n);!(a=z(s.generateSync(),i,o));)s.reseedSync();return Q(a,r)};const $={strict:!0};function ee(e){return T(E(e),c.n)}t.verify=function(e,t,r,n=$){let i;try{i=W(e),t=M(t)}catch(e){return!1}const{r:o,s:a}=i;if(n.strict&&i.hasHighS())return!1;const s=U(t);let u;try{u=K(r)}catch(e){return!1}const{n:f}=c,l=I(a,f),d=T(s*l,f),h=T(o*l,f),p=b.BASE.multiplyAndAddUnsafe(u,d,h);return!!p&&T(p.x,f)===o};class te{constructor(e,t){this.r=e,this.s=t,this.assertValidity()}static fromHex(e){const t=M(e);if(64!==t.length)throw new TypeError(`SchnorrSignature.fromHex: expected 64 bytes, not ${t.length}`);const r=E(t.subarray(0,32)),n=E(t.subarray(32,64));return new te(r,n)}assertValidity(){const{r:e,s:t}=this;if(!V(e)||!F(t))throw new Error("Invalid signature")}toHex(){return O(this.r)+O(this.s)}toRawBytes(){return A(this.toHex())}}class re{constructor(e,r,n=t.utils.randomBytes()){if(null==e)throw new TypeError(`sign: Expected valid message, not "${e}"`);this.m=M(e);const{x:i,scalar:o}=this.getScalar(q(r));if(this.px=i,this.d=o,this.rand=M(n),32!==this.rand.length)throw new TypeError("sign: Expected 32 bytes of aux randomness")}getScalar(e){const t=b.fromPrivateKey(e),r=t.hasEvenY()?e:c.n-e;return{point:t,scalar:r,x:t.toRawX()}}initNonce(e,t){return k(e^E(t))}finalizeNonce(e){const t=T(E(e),c.n);if(t===i)throw new Error("sign: Creation of signature failed. k is zero");const{point:r,x:n,scalar:o}=this.getScalar(t);return{R:r,rx:n,k:o}}finalizeSig(e,t,r,n){return new te(e.x,T(t+r*n,c.n)).toRawBytes()}error(){throw new Error("sign: Invalid signature produced")}async calc(){const{m:e,d:r,px:n,rand:i}=this,o=t.utils.taggedHash,a=this.initNonce(r,await o(ue.aux,i)),{R:s,rx:u,k:c}=this.finalizeNonce(await o(ue.nonce,a,n,e)),f=ee(await o(ue.challenge,u,n,e)),l=this.finalizeSig(s,c,f,r);return await oe(l,e,n)||this.error(),l}calcSync(){const{m:e,d:r,px:n,rand:i}=this,o=t.utils.taggedHashSync,a=this.initNonce(r,o(ue.aux,i)),{R:s,rx:u,k:c}=this.finalizeNonce(o(ue.nonce,a,n,e)),f=ee(o(ue.challenge,u,n,e)),l=this.finalizeSig(s,c,f,r);return ae(l,e,n)||this.error(),l}}function ne(e,t,r){const n=e instanceof te,i=n?e:te.fromHex(e);return n&&i.assertValidity(),{...i,m:M(t),P:K(r)}}function ie(e,t,r,n){const i=b.BASE.multiplyAndAddUnsafe(t,q(r),T(-n,c.n));return!(!i||!i.hasEvenY()||i.x!==e)}async function oe(e,r,n){try{const{r:i,s:o,m:a,P:s}=ne(e,r,n),u=ee(await t.utils.taggedHash(ue.challenge,k(i),s.toRawX(),a));return ie(i,s,o,u)}catch(e){return!1}}function ae(e,r,n){try{const{r:i,s:o,m:a,P:s}=ne(e,r,n),u=ee(t.utils.taggedHashSync(ue.challenge,k(i),s.toRawX(),a));return ie(i,s,o,u)}catch(e){if(e instanceof d)throw e;return!1}}t.schnorr={Signature:te,getPublicKey:function(e){return b.fromPrivateKey(e).toRawX()},sign:async function(e,t,r){return new re(e,t,r).calc()},verify:oe,signSync:function(e,t,r){return new re(e,t,r).calcSync()},verifySync:ae},b.BASE._setWindowSize(8);const se={node:n,web:"object"==typeof self&&"crypto"in self?self.crypto:void 0},ue={challenge:"BIP0340/challenge",aux:"BIP0340/aux",nonce:"BIP0340/nonce"},ce={};t.utils={bytesToHex:_,hexToBytes:A,concatBytes:v,mod:T,invert:I,isValidPrivateKey(e){try{return q(e),!0}catch(e){return!1}},_bigintTo32Bytes:k,_normalizePrivateKey:q,hashToPrivateKey:e=>{if((e=M(e)).length<40||e.length>1024)throw new Error("Expected 40-1024 bytes of private key as per FIPS 186");return k(T(E(e),c.n-o)+o)},randomBytes:(e=32)=>{if(se.web)return se.web.getRandomValues(new Uint8Array(e));if(se.node){const{randomBytes:t}=se.node;return Uint8Array.from(t(e))}throw new Error("The environment doesn't have randomBytes function")},randomPrivateKey:()=>t.utils.hashToPrivateKey(t.utils.randomBytes(40)),sha256:async(...e)=>{if(se.web){const t=await se.web.subtle.digest("SHA-256",v(...e));return new Uint8Array(t)}if(se.node){const{createHash:t}=se.node,r=t("sha256");return e.forEach((e=>r.update(e))),Uint8Array.from(r.digest())}throw new Error("The environment doesn't have sha256 function")},hmacSha256:async(e,...t)=>{if(se.web){const r=await se.web.subtle.importKey("raw",e,{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign"]),n=v(...t),i=await se.web.subtle.sign("HMAC",r,n);return new Uint8Array(i)}if(se.node){const{createHmac:r}=se.node,n=r("sha256",e);return t.forEach((e=>n.update(e))),Uint8Array.from(n.digest())}throw new Error("The environment doesn't have hmac-sha256 function")},sha256Sync:void 0,hmacSha256Sync:void 0,taggedHash:async(e,...r)=>{let n=ce[e];if(void 0===n){const r=await t.utils.sha256(Uint8Array.from(e,(e=>e.charCodeAt(0))));n=v(r,r),ce[e]=n}return t.utils.sha256(n,...r)},taggedHashSync:(e,...t)=>{if("function"!=typeof L)throw new d("sha256Sync is undefined, you need to set it");let r=ce[e];if(void 0===r){const t=L(Uint8Array.from(e,(e=>e.charCodeAt(0))));r=v(t,t),ce[e]=r}return L(r,...t)},precompute(e=8,t=b.BASE){const r=t===b.BASE?t:new b(t.x,t.y);return r._setWindowSize(e),r.multiply(s),r}},Object.defineProperties(t.utils,{sha256Sync:{configurable:!1,get:()=>L,set(e){L||(L=e)}},hmacSha256Sync:{configurable:!1,get:()=>D,set(e){D||(D=e)}}})},39187:(e,t)=>{"use strict";function r(e){if(!Number.isSafeInteger(e))throw new Error(`Wrong integer: ${e}`)}function n(...e){const t=(e,t)=>r=>e(t(r));return{encode:Array.from(e).reverse().reduce(((e,r)=>e?t(e,r.encode):r.encode),void 0),decode:e.reduce(((e,r)=>e?t(e,r.decode):r.decode),void 0)}}function i(e){return{encode:t=>{if(!Array.isArray(t)||t.length&&"number"!=typeof t[0])throw new Error("alphabet.encode input should be an array of numbers");return t.map((t=>{if(r(t),t<0||t>=e.length)throw new Error(`Digit index outside alphabet: ${t} (alphabet: ${e.length})`);return e[t]}))},decode:t=>{if(!Array.isArray(t)||t.length&&"string"!=typeof t[0])throw new Error("alphabet.decode input should be array of strings");return t.map((t=>{if("string"!=typeof t)throw new Error(`alphabet.decode: not string element=${t}`);const r=e.indexOf(t);if(-1===r)throw new Error(`Unknown letter: "${t}". Allowed: ${e}`);return r}))}}}function o(e=""){if("string"!=typeof e)throw new Error("join separator should be string");return{encode:t=>{if(!Array.isArray(t)||t.length&&"string"!=typeof t[0])throw new Error("join.encode input should be array of strings");for(let e of t)if("string"!=typeof e)throw new Error(`join.encode: non-string input=${e}`);return t.join(e)},decode:t=>{if("string"!=typeof t)throw new Error("join.decode input should be string");return t.split(e)}}}function a(e,t="="){if(r(e),"string"!=typeof t)throw new Error("padding chr should be string");return{encode(r){if(!Array.isArray(r)||r.length&&"string"!=typeof r[0])throw new Error("padding.encode input should be array of strings");for(let e of r)if("string"!=typeof e)throw new Error(`padding.encode: non-string input=${e}`);for(;r.length*e%8;)r.push(t);return r},decode(r){if(!Array.isArray(r)||r.length&&"string"!=typeof r[0])throw new Error("padding.encode input should be array of strings");for(let e of r)if("string"!=typeof e)throw new Error(`padding.decode: non-string input=${e}`);let n=r.length;if(n*e%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;n>0&&r[n-1]===t;n--)if(!((n-1)*e%8))throw new Error("Invalid padding: string has too much padding");return r.slice(0,n)}}}function s(e){if("function"!=typeof e)throw new Error("normalize fn should be function");return{encode:e=>e,decode:t=>e(t)}}function u(e,t,n){if(t<2)throw new Error(`convertRadix: wrong from=${t}, base cannot be less than 2`);if(n<2)throw new Error(`convertRadix: wrong to=${n}, base cannot be less than 2`);if(!Array.isArray(e))throw new Error("convertRadix: data should be array");if(!e.length)return[];let i=0;const o=[],a=Array.from(e);for(a.forEach((e=>{if(r(e),e<0||e>=t)throw new Error(`Wrong integer: ${e}`)}));;){let e=0,r=!0;for(let o=i;o<a.length;o++){const s=a[o],u=t*e+s;if(!Number.isSafeInteger(u)||t*e/t!==e||u-s!=t*e)throw new Error("convertRadix: carry overflow");if(e=u%n,a[o]=Math.floor(u/n),!Number.isSafeInteger(a[o])||a[o]*n+e!==u)throw new Error("convertRadix: carry overflow");r&&(a[o]?r=!1:i=o)}if(o.push(e),r)break}for(let t=0;t<e.length-1&&0===e[t];t++)o.push(0);return o.reverse()}Object.defineProperty(t,"__esModule",{value:!0}),t.bytes=t.stringToBytes=t.str=t.bytesToString=t.hex=t.utf8=t.bech32m=t.bech32=t.base58check=t.base58xmr=t.base58xrp=t.base58flickr=t.base58=t.base64url=t.base64=t.base32crockford=t.base32hex=t.base32=t.base16=t.utils=t.assertNumber=void 0,t.assertNumber=r;const c=(e,t)=>t?c(t,e%t):e,f=(e,t)=>e+(t-c(e,t));function l(e,t,n,i){if(!Array.isArray(e))throw new Error("convertRadix2: data should be array");if(t<=0||t>32)throw new Error(`convertRadix2: wrong from=${t}`);if(n<=0||n>32)throw new Error(`convertRadix2: wrong to=${n}`);if(f(t,n)>32)throw new Error(`convertRadix2: carry overflow from=${t} to=${n} carryBits=${f(t,n)}`);let o=0,a=0;const s=2**n-1,u=[];for(const i of e){if(r(i),i>=2**t)throw new Error(`convertRadix2: invalid data word=${i} from=${t}`);if(o=o<<t|i,a+t>32)throw new Error(`convertRadix2: carry overflow pos=${a} from=${t}`);for(a+=t;a>=n;a-=n)u.push((o>>a-n&s)>>>0);o&=2**a-1}if(o=o<<n-a&s,!i&&a>=t)throw new Error("Excess padding");if(!i&&o)throw new Error(`Non-zero padding: ${o}`);return i&&a>0&&u.push(o>>>0),u}function d(e){return r(e),{encode:t=>{if(!(t instanceof Uint8Array))throw new Error("radix.encode input should be Uint8Array");return u(Array.from(t),256,e)},decode:t=>{if(!Array.isArray(t)||t.length&&"number"!=typeof t[0])throw new Error("radix.decode input should be array of strings");return Uint8Array.from(u(t,e,256))}}}function h(e,t=!1){if(r(e),e<=0||e>32)throw new Error("radix2: bits should be in (0..32]");if(f(8,e)>32||f(e,8)>32)throw new Error("radix2: carry overflow");return{encode:r=>{if(!(r instanceof Uint8Array))throw new Error("radix2.encode input should be Uint8Array");return l(Array.from(r),8,e,!t)},decode:r=>{if(!Array.isArray(r)||r.length&&"number"!=typeof r[0])throw new Error("radix2.decode input should be array of strings");return Uint8Array.from(l(r,e,8,t))}}}function p(e){if("function"!=typeof e)throw new Error("unsafeWrapper fn should be function");return function(...t){try{return e.apply(null,t)}catch(e){}}}function b(e,t){if(r(e),"function"!=typeof t)throw new Error("checksum fn should be function");return{encode(r){if(!(r instanceof Uint8Array))throw new Error("checksum.encode: input should be Uint8Array");const n=t(r).slice(0,e),i=new Uint8Array(r.length+e);return i.set(r),i.set(n,r.length),i},decode(r){if(!(r instanceof Uint8Array))throw new Error("checksum.decode: input should be Uint8Array");const n=r.slice(0,-e),i=t(n).slice(0,e),o=r.slice(-e);for(let t=0;t<e;t++)if(i[t]!==o[t])throw new Error("Invalid checksum");return n}}}t.utils={alphabet:i,chain:n,checksum:b,radix:d,radix2:h,join:o,padding:a},t.base16=n(h(4),i("0123456789ABCDEF"),o("")),t.base32=n(h(5),i("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),a(5),o("")),t.base32hex=n(h(5),i("0123456789ABCDEFGHIJKLMNOPQRSTUV"),a(5),o("")),t.base32crockford=n(h(5),i("0123456789ABCDEFGHJKMNPQRSTVWXYZ"),o(""),s((e=>e.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1")))),t.base64=n(h(6),i("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),a(6),o("")),t.base64url=n(h(6),i("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),a(6),o(""));const y=e=>n(d(58),i(e),o(""));t.base58=y("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),t.base58flickr=y("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),t.base58xrp=y("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz");const g=[0,2,3,5,6,7,9,10,11];t.base58xmr={encode(e){let r="";for(let n=0;n<e.length;n+=8){const i=e.subarray(n,n+8);r+=t.base58.encode(i).padStart(g[i.length],"1")}return r},decode(e){let r=[];for(let n=0;n<e.length;n+=11){const i=e.slice(n,n+11),o=g.indexOf(i.length),a=t.base58.decode(i);for(let e=0;e<a.length-o;e++)if(0!==a[e])throw new Error("base58xmr: wrong padding");r=r.concat(Array.from(a.slice(a.length-o)))}return Uint8Array.from(r)}},t.base58check=e=>n(b(4,(t=>e(e(t)))),t.base58);const m=n(i("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),o("")),v=[996825010,642813549,513874426,1027748829,705979059];function w(e){const t=e>>25;let r=(33554431&e)<<5;for(let e=0;e<v.length;e++)1==(t>>e&1)&&(r^=v[e]);return r}function _(e,t,r=1){const n=e.length;let i=1;for(let t=0;t<n;t++){const r=e.charCodeAt(t);if(r<33||r>126)throw new Error(`Invalid prefix (${e})`);i=w(i)^r>>5}i=w(i);for(let t=0;t<n;t++)i=w(i)^31&e.charCodeAt(t);for(let e of t)i=w(i)^e;for(let e=0;e<6;e++)i=w(i);return i^=r,m.encode(l([i%2**30],30,5,!1))}function x(e){const t="bech32"===e?1:734539939,r=h(5),n=r.decode,i=r.encode,o=p(n);function a(e,r=90){if("string"!=typeof e)throw new Error("bech32.decode input should be string, not "+typeof e);if(e.length<8||!1!==r&&e.length>r)throw new TypeError(`Wrong string length: ${e.length} (${e}). Expected (8..${r})`);const n=e.toLowerCase();if(e!==n&&e!==e.toUpperCase())throw new Error("String must be lowercase or uppercase");const i=(e=n).lastIndexOf("1");if(0===i||-1===i)throw new Error('Letter "1" must be present between prefix and data only');const o=e.slice(0,i),a=e.slice(i+1);if(a.length<6)throw new Error("Data must be at least 6 characters long");const s=m.decode(a).slice(0,-6),u=_(o,s,t);if(!a.endsWith(u))throw new Error(`Invalid checksum in ${e}: expected "${u}"`);return{prefix:o,words:s}}return{encode:function(e,r,n=90){if("string"!=typeof e)throw new Error("bech32.encode prefix should be string, not "+typeof e);if(!Array.isArray(r)||r.length&&"number"!=typeof r[0])throw new Error("bech32.encode words should be array of numbers, not "+typeof r);const i=e.length+7+r.length;if(!1!==n&&i>n)throw new TypeError(`Length ${i} exceeds limit ${n}`);return`${e=e.toLowerCase()}1${m.encode(r)}${_(e,r,t)}`},decode:a,decodeToBytes:function(e){const{prefix:t,words:r}=a(e,!1);return{prefix:t,words:r,bytes:n(r)}},decodeUnsafe:p(a),fromWords:n,fromWordsUnsafe:o,toWords:i}}t.bech32=x("bech32"),t.bech32m=x("bech32m"),t.utf8={encode:e=>(new TextDecoder).decode(e),decode:e=>(new TextEncoder).encode(e)},t.hex=n(h(4),i("0123456789abcdef"),o(""),s((e=>{if("string"!=typeof e||e.length%2)throw new TypeError(`hex.decode: expected string, got ${typeof e} with length ${e.length}`);return e.toLowerCase()})));const O={utf8:t.utf8,hex:t.hex,base16:t.base16,base32:t.base32,base64:t.base64,base64url:t.base64url,base58:t.base58,base58xmr:t.base58xmr},k=`Invalid encoding type. Available types: ${Object.keys(O).join(", ")}`;t.bytesToString=(e,t)=>{if("string"!=typeof e||!O.hasOwnProperty(e))throw new TypeError(k);if(!(t instanceof Uint8Array))throw new TypeError("bytesToString() expects Uint8Array");return O[e].encode(t)},t.str=t.bytesToString,t.stringToBytes=(e,t)=>{if(!O.hasOwnProperty(e))throw new TypeError(k);if("string"!=typeof t)throw new TypeError("stringToBytes() expects string");return O[e].decode(t)},t.bytes=t.stringToBytes},89437:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>N});var n={};r.r(n),r.d(n,{decrypt:()=>I,encrypt:()=>B,generateKey:()=>j,verifyHmac:()=>T});var i=r(93441);const o=class{constructor(){this._eventEmitters=[],"undefined"!=typeof window&&void 0!==window.addEventListener&&(window.addEventListener("online",(()=>this.trigger("online"))),window.addEventListener("offline",(()=>this.trigger("offline"))))}on(e,t){this._eventEmitters.push({event:e,callback:t})}trigger(e){let t=[];e&&(t=this._eventEmitters.filter((t=>t.event===e))),t.forEach((e=>{e.callback()}))}},a=void 0!==r.g.WebSocket?r.g.WebSocket:r(15460),s=class{constructor(e){if(this.opts=e,this._queue=[],this._events=[],this._subscriptions=[],this._protocol=e.protocol,this._version=e.version,this._url="",this._netMonitor=null,this._socket=null,this._nextSocket=null,this._subscriptions=e.subscriptions||[],this._netMonitor=e.netMonitor||new o,!e.url||"string"!=typeof e.url)throw new Error("Missing or invalid WebSocket url");this._url=e.url,this._netMonitor.on("online",(()=>this._socketCreate()))}set readyState(e){}get readyState(){return this._socket?this._socket.readyState:-1}set connecting(e){}get connecting(){return 0===this.readyState}set connected(e){}get connected(){return 1===this.readyState}set closing(e){}get closing(){return 2===this.readyState}set closed(e){}get closed(){return 3===this.readyState}open(){this._socketCreate()}close(){this._socketClose()}send(e,t,r){if(!t||"string"!=typeof t)throw new Error("Missing or invalid topic field");this._socketSend({topic:t,type:"pub",payload:e,silent:!!r})}subscribe(e){this._socketSend({topic:e,type:"sub",payload:"",silent:!0})}on(e,t){this._events.push({event:e,callback:t})}_socketCreate(){if(this._nextSocket)return;const e=function(e,t,r){var n,o;const a=(e.startsWith("https")?e.replace("https","wss"):e.startsWith("http")?e.replace("http","ws"):e).split("?"),s=(0,i.isBrowser)()?{protocol:t,version:r,env:"browser",host:(null===(n=(0,i.getLocation)())||void 0===n?void 0:n.host)||""}:{protocol:t,version:r,env:(null===(o=(0,i.detectEnv)())||void 0===o?void 0:o.name)||""},u=(0,i.appendToQueryString)((0,i.getQueryString)(a[1]||""),s);return a[0]+"?"+u}(this._url,this._protocol,this._version);if(this._nextSocket=new a(e),!this._nextSocket)throw new Error("Failed to create socket");this._nextSocket.onmessage=e=>this._socketReceive(e),this._nextSocket.onopen=()=>this._socketOpen(),this._nextSocket.onerror=e=>this._socketError(e),this._nextSocket.onclose=()=>{setTimeout((()=>{this._nextSocket=null,this._socketCreate()}),1e3)}}_socketOpen(){this._socketClose(),this._socket=this._nextSocket,this._nextSocket=null,this._queueSubscriptions(),this._pushQueue()}_socketClose(){this._socket&&(this._socket.onclose=()=>{},this._socket.close())}_socketSend(e){const t=JSON.stringify(e);this._socket&&1===this._socket.readyState?this._socket.send(t):(this._setToQueue(e),this._socketCreate())}async _socketReceive(e){let t;try{t=JSON.parse(e.data)}catch(e){return}if(this._socketSend({topic:t.topic,type:"ack",payload:"",silent:!0}),this._socket&&1===this._socket.readyState){const e=this._events.filter((e=>"message"===e.event));e&&e.length&&e.forEach((e=>e.callback(t)))}}_socketError(e){const t=this._events.filter((e=>"error"===e.event));t&&t.length&&t.forEach((t=>t.callback(e)))}_queueSubscriptions(){this._subscriptions.forEach((e=>this._queue.push({topic:e,type:"sub",payload:"",silent:!0}))),this._subscriptions=this.opts.subscriptions||[]}_setToQueue(e){this._queue.push(e)}_pushQueue(){this._queue.forEach((e=>this._socketSend(e))),this._queue=[]}},u="Session currently connected",c="Session currently disconnected",f="JSON RPC response format is invalid",l="User close QRCode Modal",d=class{constructor(){this._eventEmitters=[]}subscribe(e){this._eventEmitters.push(e)}unsubscribe(e){this._eventEmitters=this._eventEmitters.filter((t=>t.event!==e))}trigger(e){let t,r=[];t=(0,i.isJsonRpcRequest)(e)?e.method:(0,i.isJsonRpcResponseSuccess)(e)||(0,i.isJsonRpcResponseError)(e)?`response:${e.id}`:(0,i.isInternalEvent)(e)?e.event:"",t&&(r=this._eventEmitters.filter((e=>e.event===t))),r&&r.length||(0,i.isReservedEvent)(t)||(0,i.isInternalEvent)(t)||(r=this._eventEmitters.filter((e=>"call_request"===e.event))),r.forEach((t=>{if((0,i.isJsonRpcResponseError)(e)){const r=new Error(e.error.message);t.callback(r,null)}else t.callback(null,e)}))}},h=class{constructor(e="walletconnect"){this.storageId=e}getSession(){let e=null;const t=(0,i.getLocal)(this.storageId);return t&&(0,i.isWalletConnectSession)(t)&&(e=t),e}setSession(e){return(0,i.setLocal)(this.storageId,e),e}removeSession(){(0,i.removeLocal)(this.storageId)}},p="abcdefghijklmnopqrstuvwxyz0123456789".split("").map((e=>`https://${e}.bridge.walletconnect.org`));function b(e){return function(e){return"walletconnect.org"===function(e){return function(e){let t=e.indexOf("//")>-1?e.split("/")[2]:e.split("/")[0];return t=t.split(":")[0],t=t.split("?")[0],t}(e).split(".").slice(-2).join(".")}(e)}(e)?p[Math.floor(Math.random()*p.length)]:e}const y=class{constructor(e){if(this.protocol="wc",this.version=1,this._bridge="",this._key=null,this._clientId="",this._clientMeta=null,this._peerId="",this._peerMeta=null,this._handshakeId=0,this._handshakeTopic="",this._connected=!1,this._accounts=[],this._chainId=0,this._networkId=0,this._rpcUrl="",this._eventManager=new d,this._clientMeta=(0,i.getClientMeta)()||e.connectorOpts.clientMeta||null,this._cryptoLib=e.cryptoLib,this._sessionStorage=e.sessionStorage||new h(e.connectorOpts.storageId),this._qrcodeModal=e.connectorOpts.qrcodeModal,this._qrcodeModalOptions=e.connectorOpts.qrcodeModalOptions,this._signingMethods=[...i.signingMethods,...e.connectorOpts.signingMethods||[]],!e.connectorOpts.bridge&&!e.connectorOpts.uri&&!e.connectorOpts.session)throw new Error("Missing one of the required parameters: bridge / uri / session");e.connectorOpts.bridge&&(this.bridge=b(e.connectorOpts.bridge)),e.connectorOpts.uri&&(this.uri=e.connectorOpts.uri);const t=e.connectorOpts.session||this._getStorageSession();t&&(this.session=t),this.handshakeId&&this._subscribeToSessionResponse(this.handshakeId,"Session request rejected"),this._transport=e.transport||new s({protocol:this.protocol,version:this.version,url:this.bridge,subscriptions:[this.clientId]}),this._subscribeToInternalEvents(),this._initTransport(),e.connectorOpts.uri&&this._subscribeToSessionRequest(),e.pushServerOpts&&this._registerPushServer(e.pushServerOpts)}set bridge(e){e&&(this._bridge=e)}get bridge(){return this._bridge}set key(e){if(!e)return;const t=(0,i.convertHexToArrayBuffer)(e);this._key=t}get key(){return this._key?(0,i.convertArrayBufferToHex)(this._key,!0):""}set clientId(e){e&&(this._clientId=e)}get clientId(){let e=this._clientId;return e||(e=this._clientId=(0,i.uuid)()),this._clientId}set peerId(e){e&&(this._peerId=e)}get peerId(){return this._peerId}set clientMeta(e){}get clientMeta(){let e=this._clientMeta;return e||(e=this._clientMeta=(0,i.getClientMeta)()),e}set peerMeta(e){this._peerMeta=e}get peerMeta(){return this._peerMeta}set handshakeTopic(e){e&&(this._handshakeTopic=e)}get handshakeTopic(){return this._handshakeTopic}set handshakeId(e){e&&(this._handshakeId=e)}get handshakeId(){return this._handshakeId}get uri(){return this._formatUri()}set uri(e){if(!e)return;const{handshakeTopic:t,bridge:r,key:n}=this._parseUri(e);this.handshakeTopic=t,this.bridge=r,this.key=n}set chainId(e){this._chainId=e}get chainId(){return this._chainId}set networkId(e){this._networkId=e}get networkId(){return this._networkId}set accounts(e){this._accounts=e}get accounts(){return this._accounts}set rpcUrl(e){this._rpcUrl=e}get rpcUrl(){return this._rpcUrl}set connected(e){}get connected(){return this._connected}set pending(e){}get pending(){return!!this._handshakeTopic}get session(){return{connected:this.connected,accounts:this.accounts,chainId:this.chainId,bridge:this.bridge,key:this.key,clientId:this.clientId,clientMeta:this.clientMeta,peerId:this.peerId,peerMeta:this.peerMeta,handshakeId:this.handshakeId,handshakeTopic:this.handshakeTopic}}set session(e){e&&(this._connected=e.connected,this.accounts=e.accounts,this.chainId=e.chainId,this.bridge=e.bridge,this.key=e.key,this.clientId=e.clientId,this.clientMeta=e.clientMeta,this.peerId=e.peerId,this.peerMeta=e.peerMeta,this.handshakeId=e.handshakeId,this.handshakeTopic=e.handshakeTopic)}on(e,t){const r={event:e,callback:t};this._eventManager.subscribe(r)}off(e){this._eventManager.unsubscribe(e)}async createInstantRequest(e){this._key=await this._generateKey();const t=this._formatRequest({method:"wc_instantRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,request:this._formatRequest(e)}]});this.handshakeId=t.id,this.handshakeTopic=(0,i.uuid)(),this._eventManager.trigger({event:"display_uri",params:[this.uri]}),this.on("modal_closed",(()=>{throw new Error(l)}));const r=()=>{this.killSession()};try{const e=await this._sendCallRequest(t);return e&&r(),e}catch(e){throw r(),e}}async connect(e){if(!this._qrcodeModal)throw new Error("QRCode Modal not provided");return this.connected?{chainId:this.chainId,accounts:this.accounts}:(await this.createSession(e),new Promise((async(e,t)=>{this.on("modal_closed",(()=>t(new Error(l)))),this.on("connect",((r,n)=>{if(r)return t(r);e(n.params[0])}))})))}async createSession(e){if(this._connected)throw new Error(u);if(this.pending)return;this._key=await this._generateKey();const t=this._formatRequest({method:"wc_sessionRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,chainId:e&&e.chainId?e.chainId:null}]});this.handshakeId=t.id,this.handshakeTopic=(0,i.uuid)(),this._sendSessionRequest(t,"Session update rejected",{topic:this.handshakeTopic}),this._eventManager.trigger({event:"display_uri",params:[this.uri]})}approveSession(e){if(this._connected)throw new Error(u);this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";const t={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl,peerId:this.clientId,peerMeta:this.clientMeta},r={id:this.handshakeId,jsonrpc:"2.0",result:t};this._sendResponse(r),this._connected=!0,this._setStorageSession(),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})}rejectSession(e){if(this._connected)throw new Error(u);const t=e&&e.message?e.message:"Session Rejected",r=this._formatResponse({id:this.handshakeId,error:{message:t}});this._sendResponse(r),this._connected=!1,this._eventManager.trigger({event:"disconnect",params:[{message:t}]}),this._removeStorageSession()}updateSession(e){if(!this._connected)throw new Error(c);this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";const t={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl},r=this._formatRequest({method:"wc_sessionUpdate",params:[t]});this._sendSessionRequest(r,"Session update rejected"),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]}),this._manageStorageSession()}async killSession(e){const t=e?e.message:"Session Disconnected",r=this._formatRequest({method:"wc_sessionUpdate",params:[{approved:!1,chainId:null,networkId:null,accounts:null}]});await this._sendRequest(r),this._handleSessionDisconnect(t)}async sendTransaction(e){if(!this._connected)throw new Error(c);const t=(0,i.parseTransactionData)(e),r=this._formatRequest({method:"eth_sendTransaction",params:[t]});return await this._sendCallRequest(r)}async signTransaction(e){if(!this._connected)throw new Error(c);const t=(0,i.parseTransactionData)(e),r=this._formatRequest({method:"eth_signTransaction",params:[t]});return await this._sendCallRequest(r)}async signMessage(e){if(!this._connected)throw new Error(c);const t=this._formatRequest({method:"eth_sign",params:e});return await this._sendCallRequest(t)}async signPersonalMessage(e){if(!this._connected)throw new Error(c);e=(0,i.parsePersonalSign)(e);const t=this._formatRequest({method:"personal_sign",params:e});return await this._sendCallRequest(t)}async signTypedData(e){if(!this._connected)throw new Error(c);const t=this._formatRequest({method:"eth_signTypedData",params:e});return await this._sendCallRequest(t)}async updateChain(e){if(!this._connected)throw new Error("Session currently disconnected");const t=this._formatRequest({method:"wallet_updateChain",params:[e]});return await this._sendCallRequest(t)}unsafeSend(e,t){return this._sendRequest(e,t),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:t}]}),new Promise(((t,r)=>{this._subscribeToResponse(e.id,((e,n)=>{if(e)r(e);else{if(!n)throw new Error("Missing JSON RPC response");t(n)}}))}))}async sendCustomRequest(e,t){if(!this._connected)throw new Error(c);switch(e.method){case"eth_accounts":return this.accounts;case"eth_chainId":return(0,i.convertNumberToHex)(this.chainId);case"eth_sendTransaction":case"eth_signTransaction":e.params&&(e.params[0]=(0,i.parseTransactionData)(e.params[0]));break;case"personal_sign":e.params&&(e.params=(0,i.parsePersonalSign)(e.params))}const r=this._formatRequest(e);return await this._sendCallRequest(r,t)}approveRequest(e){if(!(0,i.isJsonRpcResponseSuccess)(e))throw new Error('JSON-RPC success response must include "result" field');{const t=this._formatResponse(e);this._sendResponse(t)}}rejectRequest(e){if(!(0,i.isJsonRpcResponseError)(e))throw new Error('JSON-RPC error response must include "error" field');{const t=this._formatResponse(e);this._sendResponse(t)}}transportClose(){this._transport.close()}async _sendRequest(e,t){const r=this._formatRequest(e),n=await this._encrypt(r),o=void 0!==(null==t?void 0:t.topic)?t.topic:this.peerId,a=JSON.stringify(n),s=void 0!==(null==t?void 0:t.forcePushNotification)?!t.forcePushNotification:(0,i.isSilentPayload)(r);this._transport.send(a,o,s)}async _sendResponse(e){const t=await this._encrypt(e),r=this.peerId,n=JSON.stringify(t);this._transport.send(n,r,!0)}async _sendSessionRequest(e,t,r){this._sendRequest(e,r),this._subscribeToSessionResponse(e.id,t)}_sendCallRequest(e,t){return this._sendRequest(e,t),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:t}]}),this._subscribeToCallResponse(e.id)}_formatRequest(e){if(void 0===e.method)throw new Error('JSON RPC request must have valid "method" value');return{id:void 0===e.id?(0,i.payloadId)():e.id,jsonrpc:"2.0",method:e.method,params:void 0===e.params?[]:e.params}}_formatResponse(e){if(void 0===e.id)throw new Error('JSON RPC request must have valid "id" value');const t={id:e.id,jsonrpc:"2.0"};if((0,i.isJsonRpcResponseError)(e)){const r=(0,i.formatRpcError)(e.error);return Object.assign(Object.assign(Object.assign({},t),e),{error:r})}if((0,i.isJsonRpcResponseSuccess)(e))return Object.assign(Object.assign({},t),e);throw new Error(f)}_handleSessionDisconnect(e){const t=e||"Session Disconnected";this._connected||(this._qrcodeModal&&this._qrcodeModal.close(),(0,i.removeLocal)(i.mobileLinkChoiceKey)),this._connected&&(this._connected=!1),this._handshakeId&&(this._handshakeId=0),this._handshakeTopic&&(this._handshakeTopic=""),this._peerId&&(this._peerId=""),this._eventManager.trigger({event:"disconnect",params:[{message:t}]}),this._removeStorageSession(),this.transportClose()}_handleSessionResponse(e,t){t&&t.approved?(this._connected?(t.chainId&&(this.chainId=t.chainId),t.accounts&&(this.accounts=t.accounts),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]})):(this._connected=!0,t.chainId&&(this.chainId=t.chainId),t.accounts&&(this.accounts=t.accounts),t.peerId&&!this.peerId&&(this.peerId=t.peerId),t.peerMeta&&!this.peerMeta&&(this.peerMeta=t.peerMeta),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})),this._manageStorageSession()):this._handleSessionDisconnect(e)}async _handleIncomingMessages(e){if(![this.clientId,this.handshakeTopic].includes(e.topic))return;let t;try{t=JSON.parse(e.payload)}catch(e){return}const r=await this._decrypt(t);r&&this._eventManager.trigger(r)}_subscribeToSessionRequest(){this._transport.subscribe(this.handshakeTopic)}_subscribeToResponse(e,t){this.on(`response:${e}`,t)}_subscribeToSessionResponse(e,t){this._subscribeToResponse(e,((e,r)=>{e?this._handleSessionResponse(e.message):(0,i.isJsonRpcResponseSuccess)(r)?this._handleSessionResponse(t,r.result):r.error&&r.error.message?this._handleSessionResponse(r.error.message):this._handleSessionResponse(t)}))}_subscribeToCallResponse(e){return new Promise(((t,r)=>{this._subscribeToResponse(e,((e,n)=>{e?r(e):(0,i.isJsonRpcResponseSuccess)(n)?t(n.result):n.error&&n.error.message?r(n.error):r(new Error(f))}))}))}_subscribeToInternalEvents(){this.on("display_uri",(()=>{this._qrcodeModal&&this._qrcodeModal.open(this.uri,(()=>{this._eventManager.trigger({event:"modal_closed",params:[]})}),this._qrcodeModalOptions)})),this.on("connect",(()=>{this._qrcodeModal&&this._qrcodeModal.close()})),this.on("call_request_sent",((e,t)=>{const{request:r}=t.params[0];if((0,i.isMobile)()&&this._signingMethods.includes(r.method)){const e=(0,i.getLocal)(i.mobileLinkChoiceKey);e&&(window.location.href=e.href)}})),this.on("wc_sessionRequest",((e,t)=>{e&&this._eventManager.trigger({event:"error",params:[{code:"SESSION_REQUEST_ERROR",message:e.toString()}]}),this.handshakeId=t.id,this.peerId=t.params[0].peerId,this.peerMeta=t.params[0].peerMeta;const r=Object.assign(Object.assign({},t),{method:"session_request"});this._eventManager.trigger(r)})),this.on("wc_sessionUpdate",((e,t)=>{e&&this._handleSessionResponse(e.message),this._handleSessionResponse("Session disconnected",t.params[0])}))}_initTransport(){this._transport.on("message",(e=>this._handleIncomingMessages(e))),this._transport.on("open",(()=>this._eventManager.trigger({event:"transport_open",params:[]}))),this._transport.on("close",(()=>this._eventManager.trigger({event:"transport_close",params:[]}))),this._transport.on("error",(()=>this._eventManager.trigger({event:"transport_error",params:["Websocket connection failed"]}))),this._transport.open()}_formatUri(){return`${this.protocol}:${this.handshakeTopic}@${this.version}?bridge=${encodeURIComponent(this.bridge)}&key=${this.key}`}_parseUri(e){const t=(0,i.parseWalletConnectUri)(e);if(t.protocol===this.protocol){if(!t.handshakeTopic)throw Error("Invalid or missing handshakeTopic parameter value");const e=t.handshakeTopic;if(!t.bridge)throw Error("Invalid or missing bridge url parameter value");const r=decodeURIComponent(t.bridge);if(!t.key)throw Error("Invalid or missing key parameter value");return{handshakeTopic:e,bridge:r,key:t.key}}throw new Error("URI format is invalid")}async _generateKey(){return this._cryptoLib?await this._cryptoLib.generateKey():null}async _encrypt(e){const t=this._key;return this._cryptoLib&&t?await this._cryptoLib.encrypt(e,t):null}async _decrypt(e){const t=this._key;return this._cryptoLib&&t?await this._cryptoLib.decrypt(e,t):null}_getStorageSession(){let e=null;return this._sessionStorage&&(e=this._sessionStorage.getSession()),e}_setStorageSession(){this._sessionStorage&&this._sessionStorage.setSession(this.session)}_removeStorageSession(){this._sessionStorage&&this._sessionStorage.removeSession()}_manageStorageSession(){this._connected?this._setStorageSession():this._removeStorageSession()}_registerPushServer(e){if(!e.url||"string"!=typeof e.url)throw Error("Invalid or missing pushServerOpts.url parameter value");if(!e.type||"string"!=typeof e.type)throw Error("Invalid or missing pushServerOpts.type parameter value");if(!e.token||"string"!=typeof e.token)throw Error("Invalid or missing pushServerOpts.token parameter value");const t={bridge:this.bridge,topic:this.clientId,type:e.type,token:e.token,peerName:"",language:e.language||""};this.on("connect",(async(r,n)=>{if(r)throw r;if(e.peerMeta){const e=n.params[0].peerMeta.name;t.peerName=e}try{const r=await fetch(`${e.url}/new`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)});if(!(await r.json()).success)throw Error("Failed to register in Push Server")}catch(r){throw Error("Failed to register in Push Server")}}))}};var g=r(1468);const m=256,v=256,w="AES-CBC",_=`SHA-${m}`,x="HMAC",O="encrypt",k="decrypt",P="sign",S="verify";async function A(e,t=w){return g.getSubtleCrypto().importKey("raw",e,function(e){return e===w?{length:m,name:w}:{hash:{name:_},name:x}}(t),!0,function(e){return e===w?[O,k]:[P,S]}(t))}async function E(e,t){const r=await async function(e,t){const r=g.getSubtleCrypto(),n=await A(e,x),i=await r.sign({length:v,name:x},n,t);return new Uint8Array(i)}(e,t);return r}var M=r(52707);async function j(e){const t=function(e){return g.getBrowerCrypto().getRandomValues(new Uint8Array(e))}((e||256)/8);return(0,i.convertBufferToArrayBuffer)(M.QM(t))}async function T(e,t){const r=M.eu(e.data),n=M.eu(e.iv),i=M.eu(e.hmac),o=M.ek(i,!1),a=M.w3(r,n),s=await E(t,a),u=M.ek(s,!1);return M.KT(o)===M.KT(u)}async function B(e,t,r){const n=M._W((0,i.convertArrayBufferToBuffer)(t)),o=r||await j(128),a=M._W((0,i.convertArrayBufferToBuffer)(o)),s=M.ek(a,!1),u=JSON.stringify(e),c=M.ZV(u),f=await function(e,t,r){return async function(e,t,r){const n=g.getSubtleCrypto(),i=await A(t,w),o=await n.encrypt({iv:e,name:w},i,r);return new Uint8Array(o)}(e,t,r)}(a,n,c),l=M.ek(f,!1),d=M.w3(f,a),h=await E(n,d);return{data:l,hmac:M.ek(h,!1),iv:s}}async function I(e,t){const r=M._W((0,i.convertArrayBufferToBuffer)(t));if(!r)throw new Error("Missing key: required for decryption");if(!await T(e,r))return null;const n=M.eu(e.data),o=M.eu(e.iv),a=await function(e,t,r){return async function(e,t,r){const n=g.getSubtleCrypto(),i=await A(t,w),o=await n.decrypt({iv:e,name:w},i,r);return new Uint8Array(o)}(e,t,r)}(o,r,n),s=M.oO(a);let u;try{u=JSON.parse(s)}catch(e){return null}return u}const N=class extends y{constructor(e,t){super({cryptoLib:n,connectorOpts:e,pushServerOpts:t})}}},52707:(e,t,r)=>{"use strict";r.d(t,{A7:()=>N,DS:()=>v,Gj:()=>T,H3:()=>S,KT:()=>z,Kb:()=>H,L_:()=>q,OG:()=>M,Pt:()=>m,QM:()=>w,VQ:()=>O,ZV:()=>E,Zr:()=>A,_W:()=>y,bZ:()=>D,eP:()=>U,ek:()=>_,eu:()=>P,fU:()=>C,ii:()=>k,kh:()=>g,oL:()=>L,oO:()=>x,w3:()=>F,wL:()=>W,xb:()=>K,y$:()=>j,zH:()=>R});var n=r(4501),i=r.n(n),o=r(65054),a=r.n(o),s=r(48764).Buffer;const u="hex",c="utf8",f="binary",l="buffer",d="array",h="typed-array",p="array-buffer",b="0";function y(e){return new Uint8Array(e)}function g(e,t=!1){const r=e.toString(u);return t?q(r):r}function m(e){return e.toString(c)}function v(e){return e.readUIntBE(0,e.length)}function w(e){return a()(e)}function _(e,t=!1){return g(w(e),t)}function x(e){return m(w(e))}function O(e){return v(w(e))}function k(e){return s.from(z(e),u)}function P(e){return y(k(e))}function S(e){return m(k(e))}function A(e){return s.from(e,c)}function E(e){return y(A(e))}function M(e,t=!1){return g(A(e),t)}function j(e){return w(I(B(e)))}function T(e){return I(B(e))}function B(e){return V((e>>>0).toString(2))}function I(e){return new Uint8Array(function(e,t=8){const r=V(e).match(new RegExp(`.{${t}}`,"gi"));return Array.from(r||[])}(e).map((e=>parseInt(e,2))))}function N(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}function R(e){return s.isBuffer(e)}function C(e){return i().strict(e)&&!R(e)}function U(e){return!C(e)&&!R(e)&&void 0!==e.byteLength}function L(e){return R(e)?l:C(e)?h:U(e)?p:Array.isArray(e)?d:typeof e}function D(e){return function(e){return!("string"!=typeof e||!new RegExp(/^[01]+$/).test(e))&&e.length%8==0}(e)?f:N(e)?u:c}function H(...e){return s.concat(e)}function F(...e){let t=[];return e.forEach((e=>t=t.concat(Array.from(e)))),new Uint8Array([...t])}function V(e,t=8,r=b){return function(e,t,r=b){return function(e,t,r,n=b){const i=t-e.length;let o=e;if(i>0){const t=n.repeat(i);o=r?t+e:e+t}return o}(e,t,!0,r)}(e,function(e,t=8){const r=e%t;return r?(e-r)/t*t+t:e}(e.length,t),r)}function z(e){return e.replace(/^0x/,"")}function q(e){return e.startsWith("0x")?e:`0x${e}`}function K(e){return(e=V(e=z(e),2))&&(e=q(e)),e}function W(e){const t=e.startsWith("0x");return e=(e=z(e)).startsWith(b)?e.substring(1):e,t?q(e):e}},40926:(e,t,r)=>{"use strict";function n(){return(null===r.g||void 0===r.g?void 0:r.g.crypto)||(null===r.g||void 0===r.g?void 0:r.g.msCrypto)||{}}function i(){const e=n();return e.subtle||e.webkitSubtle}Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowserCryptoAvailable=t.getSubtleCrypto=t.getBrowerCrypto=void 0,t.getBrowerCrypto=n,t.getSubtleCrypto=i,t.isBrowserCryptoAvailable=function(){return!!n()&&!!i()}},88618:(e,t,r)=>{"use strict";var n=r(34155);function i(){return"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product}function o(){return void 0!==n&&void 0!==n.versions&&void 0!==n.versions.node}Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowser=t.isNode=t.isReactNative=void 0,t.isReactNative=i,t.isNode=o,t.isBrowser=function(){return!i()&&!o()}},1468:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(70655);n.__exportStar(r(40926),t),n.__exportStar(r(88618),t)},15460:e=>{"use strict";e.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}},93441:(e,t,r)=>{"use strict";r.r(t),r.d(t,{addHexPrefix:()=>Me,appendToQueryString:()=>at,concatArrayBuffers:()=>ce,concatBuffers:()=>pe,convertArrayBufferToBuffer:()=>oe,convertArrayBufferToHex:()=>se,convertArrayBufferToNumber:()=>ue,convertArrayBufferToUtf8:()=>ae,convertBufferToArrayBuffer:()=>fe,convertBufferToHex:()=>de,convertBufferToNumber:()=>he,convertBufferToUtf8:()=>le,convertHexToArrayBuffer:()=>we,convertHexToBuffer:()=>ve,convertHexToNumber:()=>xe,convertHexToUtf8:()=>_e,convertNumberToArrayBuffer:()=>ke,convertNumberToBuffer:()=>Oe,convertNumberToHex:()=>Se,convertNumberToUtf8:()=>Pe,convertUtf8ToArrayBuffer:()=>be,convertUtf8ToBuffer:()=>ye,convertUtf8ToHex:()=>ge,convertUtf8ToNumber:()=>me,detectEnv:()=>g,detectOS:()=>m,formatIOSMobile:()=>z,formatMobileRegistry:()=>Y,formatMobileRegistryEntry:()=>J,formatQueryString:()=>ut,formatRpcError:()=>nt,getClientMeta:()=>C,getCrypto:()=>I,getCryptoOrThrow:()=>B,getDappRegistryUrl:()=>Z,getDocument:()=>A,getDocumentOrThrow:()=>S,getEncoding:()=>ze,getFromWindow:()=>k,getFromWindowOrThrow:()=>P,getInfuraRpcUrl:()=>Re,getLocal:()=>H,getLocalStorage:()=>R,getLocalStorageOrThrow:()=>N,getLocation:()=>T,getLocationOrThrow:()=>j,getMobileLinkRegistry:()=>W,getMobileRegistryEntry:()=>K,getNavigator:()=>M,getNavigatorOrThrow:()=>E,getQueryString:()=>ot,getRpcUrl:()=>Ce,getType:()=>Ve,getWalletRegistryUrl:()=>X,infuraNetworks:()=>te,isAndroid:()=>v,isArrayBuffer:()=>Fe,isBrowser:()=>O,isBuffer:()=>De,isEmptyArray:()=>Le,isEmptyString:()=>Ue,isHexString:()=>qe,isIOS:()=>w,isInternalEvent:()=>Ze,isJsonRpcRequest:()=>We,isJsonRpcResponseError:()=>Xe,isJsonRpcResponseSuccess:()=>Ge,isJsonRpcSubscription:()=>Ke,isMobile:()=>_,isNode:()=>x,isReservedEvent:()=>Je,isSilentPayload:()=>Ye,isTypedArray:()=>He,isValidAddress:()=>$e,isWalletConnectSession:()=>ct,logDeprecationWarning:()=>Ne,mobileLinkChoiceKey:()=>V,parsePersonalSign:()=>et,parseQueryString:()=>st,parseTransactionData:()=>tt,parseWalletConnectUri:()=>ft,payloadId:()=>Be,promisify:()=>rt,removeHexLeadingZeros:()=>Te,removeHexPrefix:()=>je,removeLocal:()=>F,reservedEvents:()=>Q,safeJsonParse:()=>U,safeJsonStringify:()=>L,sanitizeHex:()=>Ee,saveMobileLinkInfo:()=>q,setLocal:()=>D,signingMethods:()=>$,stateMethods:()=>ee,toChecksumAddress:()=>Qe,uuid:()=>Ie});var n=r(65755),i=r(27529),o=r(34155),a=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),i=0;for(t=0;t<r;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)n[i]=o[a];return n},s=function(e,t,r){this.name=e,this.version=t,this.os=r,this.type="browser"},u=function(e){this.version=e,this.type="node",this.name="node",this.os=o.platform},c=function(e,t,r,n){this.name=e,this.version=t,this.os=r,this.bot=n,this.type="bot-device"},f=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},l=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},d=/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,h=3,p=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FBAV\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],b=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function y(e){var t=function(e){return""!==e&&p.reduce((function(t,r){var n=r[0],i=r[1];if(t)return t;var o=i.exec(e);return!!o&&[n,o]}),!1)}(e);if(!t)return null;var r=t[0],n=t[1];if("searchbot"===r)return new f;var i=n[1]&&n[1].split(/[._]/).slice(0,3);i?i.length<h&&(i=a(i,function(e){for(var t=[],r=0;r<e;r++)t.push("0");return t}(h-i.length))):i=[];var o=i.join("."),u=function(e){for(var t=0,r=b.length;t<r;t++){var n=b[t],i=n[0];if(n[1].exec(e))return i}return null}(e),l=d.exec(e);return l&&l[1]?new c(r,o,u,l[1]):new s(r,o,u)}function g(e){return function(e){return e?y(e):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new l:"undefined"!=typeof navigator?y(navigator.userAgent):void 0!==o&&o.version?new u(o.version.slice(1)):null}(e)}function m(){const e=g();return e&&e.os?e.os:void 0}function v(){const e=m();return!!e&&e.toLowerCase().includes("android")}function w(){const e=m();return!!e&&(e.toLowerCase().includes("ios")||e.toLowerCase().includes("mac")&&navigator.maxTouchPoints>1)}function _(){return!!m()&&(v()||w())}function x(){const e=g();return!(!e||!e.name)&&"node"===e.name.toLowerCase()}function O(){return!x()&&!!M()}const k=i.sD,P=i.$2,S=i.uT,A=i.Me,E=i.Gw,M=i.jW,j=i.UO,T=i.k$,B=i.VQ,I=i.MX,N=i.xP,R=i.$o;function C(){return n.D()}const U=function(e){if("string"!=typeof e)throw new Error("Cannot safe json parse value of type "+typeof e);try{return JSON.parse(e)}catch(t){return e}},L=function(e){return"string"==typeof e?e:JSON.stringify(e)};function D(e,t){const r=L(t),n=R();n&&n.setItem(e,r)}function H(e){let t=null,r=null;const n=R();return n&&(r=n.getItem(e)),t=r?U(r):r,t}function F(e){const t=R();t&&t.removeItem(e)}const V="WALLETCONNECT_DEEPLINK_CHOICE";function z(e,t){const r=encodeURIComponent(e);return t.universalLink?`${t.universalLink}/wc?uri=${r}`:t.deepLink?`${t.deepLink}${t.deepLink.endsWith(":")?"//":"/"}wc?uri=${r}`:""}function q(e){const t=e.href.split("?")[0];D(V,Object.assign(Object.assign({},e),{href:t}))}function K(e,t){return e.filter((e=>e.name.toLowerCase().includes(t.toLowerCase())))[0]}function W(e,t){let r=e;return t&&(r=t.map((t=>K(e,t))).filter(Boolean)),r}const G="https://registry.walletconnect.com";function X(){return G+"/api/v2/wallets"}function Z(){return G+"/api/v2/dapps"}function J(e,t="mobile"){var r;return{name:e.name||"",shortName:e.metadata.shortName||"",color:e.metadata.colors.primary||"",logo:null!==(r=e.image_url.sm)&&void 0!==r?r:"",universalLink:e[t].universal||"",deepLink:e[t].native||""}}function Y(e,t="mobile"){return Object.values(e).filter((e=>!!e[t].universal||!!e[t].native)).map((e=>J(e,t)))}const Q=["session_request","session_update","exchange_key","connect","disconnect","display_uri","modal_closed","transport_open","transport_close","transport_error"],$=["eth_sendTransaction","eth_signTransaction","eth_sign","eth_signTypedData","eth_signTypedData_v1","eth_signTypedData_v2","eth_signTypedData_v3","eth_signTypedData_v4","personal_sign","wallet_addEthereumChain","wallet_switchEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"],ee=["eth_accounts","eth_chainId","net_version"],te={1:"mainnet",3:"ropsten",4:"rinkeby",5:"goerli",42:"kovan"};var re=r(11460),ne=r.n(re),ie=r(52707);function oe(e){return ie.QM(new Uint8Array(e))}function ae(e){return ie.oO(new Uint8Array(e))}function se(e,t){return ie.ek(new Uint8Array(e),!t)}function ue(e){return ie.VQ(new Uint8Array(e))}function ce(...e){return ie.eu(e.map((e=>ie.ek(new Uint8Array(e)))).join("")).buffer}function fe(e){return ie._W(e).buffer}function le(e){return ie.Pt(e)}function de(e,t){return ie.kh(e,!t)}function he(e){return ie.DS(e)}function pe(...e){return ie.Kb(...e)}function be(e){return ie.ZV(e).buffer}function ye(e){return ie.Zr(e)}function ge(e,t){return ie.OG(e,!t)}function me(e){return new(ne())(e,10).toNumber()}function ve(e){return ie.ii(e)}function we(e){return ie.eu(e).buffer}function _e(e){return ie.H3(e)}function xe(e){return new(ne())(ie.KT(e),"hex").toNumber()}function Oe(e){return ie.y$(e)}function ke(e){return ie.Gj(e).buffer}function Pe(e){return new(ne())(e).toString()}function Se(e,t){const r=ie.KT(ie.xb(new(ne())(e).toString(16)));return t?r:ie.L_(r)}var Ae=r(91094);function Ee(e){return ie.xb(e)}function Me(e){return ie.L_(e)}function je(e){return ie.KT(e)}function Te(e){return ie.wL(ie.L_(e))}r(1468);const Be=function(){return Date.now()*Math.pow(10,3)+Math.floor(Math.random()*Math.pow(10,3))};function Ie(){return((e,t)=>{for(t=e="";e++<36;t+=51*e&52?(15^e?8^Math.random()*(20^e?16:4):4).toString(16):"-");return t})()}function Ne(){console.warn("DEPRECATION WARNING: This WalletConnect client library will be deprecated in favor of @walletconnect/client. Please check docs.walletconnect.org to learn more about this migration!")}function Re(e,t){let r;const n=te[e];return n&&(r=`https://${n}.infura.io/v3/${t}`),r}function Ce(e,t){let r;const n=Re(e,t.infuraId);return t.custom&&t.custom[e]?r=t.custom[e]:n&&(r=n),r}function Ue(e){return""===e||"string"==typeof e&&""===e.trim()}function Le(e){return!(e&&e.length)}function De(e){return ie.zH(e)}function He(e){return ie.fU(e)}function Fe(e){return ie.eP(e)}function Ve(e){return ie.oL(e)}function ze(e){return ie.bZ(e)}function qe(e,t){return ie.A7(e,t)}function Ke(e){return"object"==typeof e.params}function We(e){return void 0!==e.method}function Ge(e){return void 0!==e.result}function Xe(e){return void 0!==e.error}function Ze(e){return void 0!==e.event}function Je(e){return Q.includes(e)||e.startsWith("wc_")}function Ye(e){return!!e.method.startsWith("wc_")||!$.includes(e.method)}function Qe(e){e=(0,ie.KT)(e.toLowerCase());const t=(0,ie.KT)((0,Ae.keccak_256)(ye(e)));let r="";for(let n=0;n<e.length;n++)parseInt(t[n],16)>7?r+=e[n].toUpperCase():r+=e[n];return(0,ie.L_)(r)}const $e=e=>!(!e||"0x"!==e.toLowerCase().substring(0,2)||!/^(0x)?[0-9a-f]{40}$/i.test(e)||!/^(0x)?[0-9a-f]{40}$/.test(e)&&!/^(0x)?[0-9A-F]{40}$/.test(e)&&e!==Qe(e));function et(e){return Le(e)||qe(e[0])||(e[0]=ge(e[0])),e}function tt(e){if(void 0!==e.type&&"0"!==e.type)return e;if(void 0===e.from||!$e(e.from))throw new Error("Transaction object must include a valid 'from' value.");function t(e){let t=e;return("number"==typeof e||"string"==typeof e&&!Ue(e))&&(qe(e)?"string"==typeof e&&(t=Ee(e)):t=Se(e)),"string"==typeof t&&(t=Te(t)),t}const r={from:Ee(e.from),to:void 0===e.to?void 0:Ee(e.to),gasPrice:void 0===e.gasPrice?"":t(e.gasPrice),gas:void 0===e.gas?void 0===e.gasLimit?"":t(e.gasLimit):t(e.gas),value:void 0===e.value?"":t(e.value),nonce:void 0===e.nonce?"":t(e.nonce),data:void 0===e.data?"":Ee(e.data)||"0x"},n=["gasPrice","gas","value","nonce"];return Object.keys(r).forEach((e=>{(void 0===r[e]||"string"==typeof r[e]&&!r[e].trim().length)&&n.includes(e)&&delete r[e]})),r}function rt(e,t){return async(...r)=>new Promise(((n,i)=>{e.apply(t,[...r,(e,t)=>{null==e&&i(e),n(t)}])}))}function nt(e){const t=e.message||"Failed or Rejected Request";let r=-32e3;if(e&&!e.code)switch(t){case"Parse error":r=-32700;break;case"Invalid request":r=-32600;break;case"Method not found":r=-32601;break;case"Invalid params":r=-32602;break;case"Internal error":r=-32603;break;default:r=-32e3}const n={code:r,message:t};return e.data&&(n.data=e.data),n}var it=r(17563);function ot(e){const t=-1!==e.indexOf("?")?e.indexOf("?"):void 0;return void 0!==t?e.substr(t):""}function at(e,t){let r=st(e);return r=Object.assign(Object.assign({},r),t),ut(r)}function st(e){return it.parse(e)}function ut(e){return it.stringify(e)}function ct(e){return void 0!==e.bridge}function ft(e){const t=e.indexOf(":"),r=-1!==e.indexOf("?")?e.indexOf("?"):void 0,n=e.substring(0,t),i=function(e){const t=e.split("@");return{handshakeTopic:t[0],version:parseInt(t[1],10)}}(e.substring(t+1,r)),o=function(e){const t=st(e);return{key:t.key||"",bridge:t.bridge||""}}(void 0!==r?e.substr(r):"");return Object.assign(Object.assign({protocol:n},i),o)}},11460:function(e,t,r){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a=r(36563).Buffer}catch(e){}function s(e,t,r){for(var n=0,i=Math.min(e.length,r),o=t;o<i;o++){var a=e.charCodeAt(o)-48;n<<=4,n|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return n}function u(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a<o;a++){var s=e.charCodeAt(a)-48;i*=n,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===r)for(i=e.length-1,o=0;i>=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<e.length;i+=3)a=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var n,i,o=0;for(r=e.length-6,n=0;r>=t;r-=6)i=s(e,r,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);r+6!==t&&(i=s(e,t,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,c=0,f=r;f<s;f+=n)c=u(e,f,f+n,t),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==a){var l=1;for(c=u(e,f,e.length,t),f=0;f<a;f++)l*=t;this.imuln(l),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var f=u>>>26,l=67108863&u,d=Math.min(c,t.length-1),h=Math.max(0,c-e.length+1);h<=d;h++){var p=c-h|0;f+=(a=(i=0|e.words[p])*(o=0|t.words[h])+l)/67108864|0,l=67108863&a}r.words[c]=0|l,u=0|f}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);r=0!=(o=s>>>24-i&16777215)||a!==this.length-1?c[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=f[e],h=l[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(h).toString(e);r=(p=p.idivn(h)).isZero()?b+r:c[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var 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},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n(void 0!==a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===t,c=new e(o),f=this.clone();if(u){for(s=0;!f.isZero();s++)a=f.andln(255),f.iushrn(8),c[s]=a;for(;s<o;s++)c[s]=0}else{for(s=0;s<o-i;s++)c[s]=0;for(s=0;!f.isZero();s++)a=f.andln(255),f.iushrn(8),c[o-s-1]=a}return c},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=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},o.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},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},o.prototype.ior=function(e){return n(0==(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return n(0==(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return n(0==(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.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;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.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 r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a<n.length;a++)o=(t=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&t;for(;0!==o&&a<r.length;a++)o=(t=(0|r.words[a])+o)>>26,this.words[a]=67108863&t;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var h=function(e,t,r){var n,i,o,a=e.words,s=t.words,u=r.words,c=0,f=0|a[0],l=8191&f,d=f>>>13,h=0|a[1],p=8191&h,b=h>>>13,y=0|a[2],g=8191&y,m=y>>>13,v=0|a[3],w=8191&v,_=v>>>13,x=0|a[4],O=8191&x,k=x>>>13,P=0|a[5],S=8191&P,A=P>>>13,E=0|a[6],M=8191&E,j=E>>>13,T=0|a[7],B=8191&T,I=T>>>13,N=0|a[8],R=8191&N,C=N>>>13,U=0|a[9],L=8191&U,D=U>>>13,H=0|s[0],F=8191&H,V=H>>>13,z=0|s[1],q=8191&z,K=z>>>13,W=0|s[2],G=8191&W,X=W>>>13,Z=0|s[3],J=8191&Z,Y=Z>>>13,Q=0|s[4],$=8191&Q,ee=Q>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,fe=0|s[8],le=8191&fe,de=fe>>>13,he=0|s[9],pe=8191&he,be=he>>>13;r.negative=e.negative^t.negative,r.length=19;var ye=(c+(n=Math.imul(l,F))|0)+((8191&(i=(i=Math.imul(l,V))+Math.imul(d,F)|0))<<13)|0;c=((o=Math.imul(d,V))+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(p,F),i=(i=Math.imul(p,V))+Math.imul(b,F)|0,o=Math.imul(b,V);var ge=(c+(n=n+Math.imul(l,q)|0)|0)+((8191&(i=(i=i+Math.imul(l,K)|0)+Math.imul(d,q)|0))<<13)|0;c=((o=o+Math.imul(d,K)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(g,F),i=(i=Math.imul(g,V))+Math.imul(m,F)|0,o=Math.imul(m,V),n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(b,q)|0,o=o+Math.imul(b,K)|0;var me=(c+(n=n+Math.imul(l,G)|0)|0)+((8191&(i=(i=i+Math.imul(l,X)|0)+Math.imul(d,G)|0))<<13)|0;c=((o=o+Math.imul(d,X)|0)+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(w,F),i=(i=Math.imul(w,V))+Math.imul(_,F)|0,o=Math.imul(_,V),n=n+Math.imul(g,q)|0,i=(i=i+Math.imul(g,K)|0)+Math.imul(m,q)|0,o=o+Math.imul(m,K)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(b,G)|0,o=o+Math.imul(b,X)|0;var ve=(c+(n=n+Math.imul(l,J)|0)|0)+((8191&(i=(i=i+Math.imul(l,Y)|0)+Math.imul(d,J)|0))<<13)|0;c=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(O,F),i=(i=Math.imul(O,V))+Math.imul(k,F)|0,o=Math.imul(k,V),n=n+Math.imul(w,q)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(_,q)|0,o=o+Math.imul(_,K)|0,n=n+Math.imul(g,G)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(m,G)|0,o=o+Math.imul(m,X)|0,n=n+Math.imul(p,J)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(b,J)|0,o=o+Math.imul(b,Y)|0;var we=(c+(n=n+Math.imul(l,$)|0)|0)+((8191&(i=(i=i+Math.imul(l,ee)|0)+Math.imul(d,$)|0))<<13)|0;c=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(S,F),i=(i=Math.imul(S,V))+Math.imul(A,F)|0,o=Math.imul(A,V),n=n+Math.imul(O,q)|0,i=(i=i+Math.imul(O,K)|0)+Math.imul(k,q)|0,o=o+Math.imul(k,K)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(g,J)|0,i=(i=i+Math.imul(g,Y)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,Y)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,ee)|0;var _e=(c+(n=n+Math.imul(l,re)|0)|0)+((8191&(i=(i=i+Math.imul(l,ne)|0)+Math.imul(d,re)|0))<<13)|0;c=((o=o+Math.imul(d,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(M,F),i=(i=Math.imul(M,V))+Math.imul(j,F)|0,o=Math.imul(j,V),n=n+Math.imul(S,q)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul(A,q)|0,o=o+Math.imul(A,K)|0,n=n+Math.imul(O,G)|0,i=(i=i+Math.imul(O,X)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,X)|0,n=n+Math.imul(w,J)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(g,$)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0;var xe=(c+(n=n+Math.imul(l,oe)|0)|0)+((8191&(i=(i=i+Math.imul(l,ae)|0)+Math.imul(d,oe)|0))<<13)|0;c=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(B,F),i=(i=Math.imul(B,V))+Math.imul(I,F)|0,o=Math.imul(I,V),n=n+Math.imul(M,q)|0,i=(i=i+Math.imul(M,K)|0)+Math.imul(j,q)|0,o=o+Math.imul(j,K)|0,n=n+Math.imul(S,G)|0,i=(i=i+Math.imul(S,X)|0)+Math.imul(A,G)|0,o=o+Math.imul(A,X)|0,n=n+Math.imul(O,J)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,Y)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(g,re)|0,i=(i=i+Math.imul(g,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0;var Oe=(c+(n=n+Math.imul(l,ue)|0)|0)+((8191&(i=(i=i+Math.imul(l,ce)|0)+Math.imul(d,ue)|0))<<13)|0;c=((o=o+Math.imul(d,ce)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(R,F),i=(i=Math.imul(R,V))+Math.imul(C,F)|0,o=Math.imul(C,V),n=n+Math.imul(B,q)|0,i=(i=i+Math.imul(B,K)|0)+Math.imul(I,q)|0,o=o+Math.imul(I,K)|0,n=n+Math.imul(M,G)|0,i=(i=i+Math.imul(M,X)|0)+Math.imul(j,G)|0,o=o+Math.imul(j,X)|0,n=n+Math.imul(S,J)|0,i=(i=i+Math.imul(S,Y)|0)+Math.imul(A,J)|0,o=o+Math.imul(A,Y)|0,n=n+Math.imul(O,$)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(g,oe)|0,i=(i=i+Math.imul(g,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(b,ue)|0,o=o+Math.imul(b,ce)|0;var ke=(c+(n=n+Math.imul(l,le)|0)|0)+((8191&(i=(i=i+Math.imul(l,de)|0)+Math.imul(d,le)|0))<<13)|0;c=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(L,F),i=(i=Math.imul(L,V))+Math.imul(D,F)|0,o=Math.imul(D,V),n=n+Math.imul(R,q)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(C,q)|0,o=o+Math.imul(C,K)|0,n=n+Math.imul(B,G)|0,i=(i=i+Math.imul(B,X)|0)+Math.imul(I,G)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(M,J)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(j,J)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(S,$)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,ee)|0,n=n+Math.imul(O,re)|0,i=(i=i+Math.imul(O,ne)|0)+Math.imul(k,re)|0,o=o+Math.imul(k,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(g,ue)|0,i=(i=i+Math.imul(g,ce)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,ce)|0,n=n+Math.imul(p,le)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(b,le)|0,o=o+Math.imul(b,de)|0;var Pe=(c+(n=n+Math.imul(l,pe)|0)|0)+((8191&(i=(i=i+Math.imul(l,be)|0)+Math.imul(d,pe)|0))<<13)|0;c=((o=o+Math.imul(d,be)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(L,q),i=(i=Math.imul(L,K))+Math.imul(D,q)|0,o=Math.imul(D,K),n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,X)|0)+Math.imul(C,G)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(B,J)|0,i=(i=i+Math.imul(B,Y)|0)+Math.imul(I,J)|0,o=o+Math.imul(I,Y)|0,n=n+Math.imul(M,$)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(j,$)|0,o=o+Math.imul(j,ee)|0,n=n+Math.imul(S,re)|0,i=(i=i+Math.imul(S,ne)|0)+Math.imul(A,re)|0,o=o+Math.imul(A,ne)|0,n=n+Math.imul(O,oe)|0,i=(i=i+Math.imul(O,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,ce)|0,n=n+Math.imul(g,le)|0,i=(i=i+Math.imul(g,de)|0)+Math.imul(m,le)|0,o=o+Math.imul(m,de)|0;var Se=(c+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,be)|0)+Math.imul(b,pe)|0))<<13)|0;c=((o=o+Math.imul(b,be)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(L,G),i=(i=Math.imul(L,X))+Math.imul(D,G)|0,o=Math.imul(D,X),n=n+Math.imul(R,J)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,Y)|0,n=n+Math.imul(B,$)|0,i=(i=i+Math.imul(B,ee)|0)+Math.imul(I,$)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(M,re)|0,i=(i=i+Math.imul(M,ne)|0)+Math.imul(j,re)|0,o=o+Math.imul(j,ne)|0,n=n+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,ae)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,ae)|0,n=n+Math.imul(O,ue)|0,i=(i=i+Math.imul(O,ce)|0)+Math.imul(k,ue)|0,o=o+Math.imul(k,ce)|0,n=n+Math.imul(w,le)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(_,le)|0,o=o+Math.imul(_,de)|0;var Ae=(c+(n=n+Math.imul(g,pe)|0)|0)+((8191&(i=(i=i+Math.imul(g,be)|0)+Math.imul(m,pe)|0))<<13)|0;c=((o=o+Math.imul(m,be)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(L,J),i=(i=Math.imul(L,Y))+Math.imul(D,J)|0,o=Math.imul(D,Y),n=n+Math.imul(R,$)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(B,re)|0,i=(i=i+Math.imul(B,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(M,oe)|0,i=(i=i+Math.imul(M,ae)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,ae)|0,n=n+Math.imul(S,ue)|0,i=(i=i+Math.imul(S,ce)|0)+Math.imul(A,ue)|0,o=o+Math.imul(A,ce)|0,n=n+Math.imul(O,le)|0,i=(i=i+Math.imul(O,de)|0)+Math.imul(k,le)|0,o=o+Math.imul(k,de)|0;var Ee=(c+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,be)|0)+Math.imul(_,pe)|0))<<13)|0;c=((o=o+Math.imul(_,be)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(L,$),i=(i=Math.imul(L,ee))+Math.imul(D,$)|0,o=Math.imul(D,ee),n=n+Math.imul(R,re)|0,i=(i=i+Math.imul(R,ne)|0)+Math.imul(C,re)|0,o=o+Math.imul(C,ne)|0,n=n+Math.imul(B,oe)|0,i=(i=i+Math.imul(B,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,n=n+Math.imul(M,ue)|0,i=(i=i+Math.imul(M,ce)|0)+Math.imul(j,ue)|0,o=o+Math.imul(j,ce)|0,n=n+Math.imul(S,le)|0,i=(i=i+Math.imul(S,de)|0)+Math.imul(A,le)|0,o=o+Math.imul(A,de)|0;var Me=(c+(n=n+Math.imul(O,pe)|0)|0)+((8191&(i=(i=i+Math.imul(O,be)|0)+Math.imul(k,pe)|0))<<13)|0;c=((o=o+Math.imul(k,be)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(L,re),i=(i=Math.imul(L,ne))+Math.imul(D,re)|0,o=Math.imul(D,ne),n=n+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,ae)|0,n=n+Math.imul(B,ue)|0,i=(i=i+Math.imul(B,ce)|0)+Math.imul(I,ue)|0,o=o+Math.imul(I,ce)|0,n=n+Math.imul(M,le)|0,i=(i=i+Math.imul(M,de)|0)+Math.imul(j,le)|0,o=o+Math.imul(j,de)|0;var je=(c+(n=n+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,be)|0)+Math.imul(A,pe)|0))<<13)|0;c=((o=o+Math.imul(A,be)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(L,oe),i=(i=Math.imul(L,ae))+Math.imul(D,oe)|0,o=Math.imul(D,ae),n=n+Math.imul(R,ue)|0,i=(i=i+Math.imul(R,ce)|0)+Math.imul(C,ue)|0,o=o+Math.imul(C,ce)|0,n=n+Math.imul(B,le)|0,i=(i=i+Math.imul(B,de)|0)+Math.imul(I,le)|0,o=o+Math.imul(I,de)|0;var Te=(c+(n=n+Math.imul(M,pe)|0)|0)+((8191&(i=(i=i+Math.imul(M,be)|0)+Math.imul(j,pe)|0))<<13)|0;c=((o=o+Math.imul(j,be)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(L,ue),i=(i=Math.imul(L,ce))+Math.imul(D,ue)|0,o=Math.imul(D,ce),n=n+Math.imul(R,le)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(C,le)|0,o=o+Math.imul(C,de)|0;var Be=(c+(n=n+Math.imul(B,pe)|0)|0)+((8191&(i=(i=i+Math.imul(B,be)|0)+Math.imul(I,pe)|0))<<13)|0;c=((o=o+Math.imul(I,be)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(L,le),i=(i=Math.imul(L,de))+Math.imul(D,le)|0,o=Math.imul(D,de);var Ie=(c+(n=n+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,be)|0)+Math.imul(C,pe)|0))<<13)|0;c=((o=o+Math.imul(C,be)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863;var Ne=(c+(n=Math.imul(L,pe))|0)+((8191&(i=(i=Math.imul(L,be))+Math.imul(D,pe)|0))<<13)|0;return c=((o=Math.imul(D,be))+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,u[0]=ye,u[1]=ge,u[2]=me,u[3]=ve,u[4]=we,u[5]=_e,u[6]=xe,u[7]=Oe,u[8]=ke,u[9]=Pe,u[10]=Se,u[11]=Ae,u[12]=Ee,u[13]=Me,u[14]=je,u[15]=Te,u[16]=Be,u[17]=Ie,u[18]=Ne,0!==c&&(u[19]=c,r.length++),r};function p(e,t,r){return(new b).mulp(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(h=d),o.prototype.mulTo=function(e,t){var r,n=this.length+e.length;return r=10===this.length&&10===e.length?h(this,e,t):n<63?d(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,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,u=Math.min(o,t.length-1),c=Math.max(0,o-e.length+1);c<=u;c++){var f=o-c,l=(0|e.words[f])*(0|t.words[c]),d=67108863&l;s=67108863&(d=d+s|0),i+=(a=(a=a+(l/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):p(this,e,t),r},b.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},b.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},b.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a<o;a++)n[a]=t[e[a]],i[a]=r[e[a]]},b.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),f=0;f<i;f+=s)for(var l=u,d=c,h=0;h<a;h++){var p=r[f+h],b=n[f+h],y=r[f+h+a],g=n[f+h+a],m=l*y-d*g;g=l*g+d*y,y=m,r[f+h]=p+y,n[f+h]=b+g,r[f+h+a]=p-y,n[f+h+a]=b-g,h!==s&&(m=u*l-c*d,d=u*d+c*l,l=m)}},b.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},b.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},b.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},b.prototype.convert13b=function(e,t,r,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)r[a]=0;n(0===o),n(0==(-8192&o))},b.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},b.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),c=new Array(n),f=new Array(n),l=new Array(n),d=r.words;d.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,c,n),this.transform(a,o,s,u,n,i),this.transform(c,o,f,l,n,i);for(var h=0;h<n;h++){var p=s[h]*f[h]-u[h]*l[h];u[h]=s[h]*l[h]+u[h]*f[h],s[h]=p}return this.conjugate(s,u,n),this.transform(s,u,d,o,n,i),this.conjugate(d,o,n),this.normalize13b(d,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),p(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){n("number"==typeof e),n(e<67108864);for(var t=0,r=0;r<this.length;r++){var i=(0|this.words[r])*e,o=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=(e.words[n]&1<<i)>>>i}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,u=(0|this.words[t])-s<<r;this.words[t]=u|a,a=s>>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,r){var i;n("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o,u=r;if(i-=a,i=Math.max(0,i),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var f=0;for(c=this.length-1;c>=0&&(0!==f||c>=i);c--){var l=0|this.words[c];this.words[c]=f<<26-o|l>>>o,f=l&s}return u&&0!==f&&(u.words[u.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r||!(this.words[r]&i))},o.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.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 t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,r){var i,o,a=e.length+r;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+s;var u=(0|e.words[i])*t;s=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>26,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!=(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==t){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var f=n.clone()._ishlnsubmul(i,1,u);0===f.negative&&(n=f,s&&(s.words[u]=1));for(var l=u-1;l>=0;l--){var d=67108864*(0|n.words[i.length+l])+(0|n.words[i.length+l-1]);for(d=Math.min(d/a|0,67108863),n._ishlnsubmul(i,d,l);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,l),n.isZero()||(n.negative^=1);s&&(s.words[l]=d)}return s&&s.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.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),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++c;for(var f=r.clone(),l=t.clone();!t.isZero();){for(var d=0,h=1;0==(t.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(f),a.isub(l)),i.iushrn(1),a.iushrn(1);for(var p=0,b=1;0==(r.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(f),u.isub(l)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(u)):(r.isub(t),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,f=1;0==(t.words[0]&f)&&c<26;++c,f<<=1);if(c>0)for(t.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var l=0,d=1;0==(r.words[0]&d)&&l<26;++l,d<<=1);if(l>0)for(r.iushrn(l);l-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.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 i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new x(e)},o.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)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function g(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function m(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function v(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(e){if("string"==typeof e){var t=o._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 O(e){x.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}g.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},g.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=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):r.strip(),r},g.prototype.split=function(e,t){e.iushrn(this.n,0,t)},g.prototype.imulK=function(e){return e.imul(this.k)},i(m,g),m.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i<n;i++)t.words[i]=e.words[i];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(t.words[t.length++]=o&r,i=10;i<e.length;i++){var a=0|e.words[i];e.words[i-10]=(a&r)<<4|o>>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},m.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(v,g),i(w,g),i(_,g),_.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(y[e])return y[e];var t;if("k256"===e)t=new m;else if("p224"===e)t=new v;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return y[e]=t,t},x.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},x.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},x.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},x.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},x.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},x.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},x.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},x.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},x.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},x.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},x.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},x.prototype.isqr=function(e){return this.imul(e,e.clone())},x.prototype.sqr=function(e){return this.mul(e,e)},x.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new o(2*f*f).toRed(this);0!==this.pow(f,c).cmp(u);)f.redIAdd(u);for(var l=this.pow(f,i),d=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var b=h,y=0;0!==b.cmp(s);y++)b=b.redSqr();n(y<p);var g=this.pow(l,new o(1).iushln(p-y-1));d=d.redMul(g),l=g.redSqr(),h=h.redMul(l),p=y}return d},x.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},x.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],a=0,s=0,u=t.bitLength()%26;for(0===u&&(u=26),n=t.length-1;n>=0;n--){for(var c=t.words[n],f=u-1;f>=0;f--){var l=c>>f&1;i!==r[0]&&(i=this.sqr(i)),0!==l||0!==a?(a<<=1,a|=l,(4==++s||0===n&&0===f)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=26}return i},x.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},x.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new O(e)},i(O,x),O.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},O.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},O.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},O.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},O.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},27529:(e,t)=>{"use strict";function r(e){let t;return"undefined"!=typeof window&&void 0!==window[e]&&(t=window[e]),t}function n(e){const t=r(e);if(!t)throw new Error(`${e} is not defined in Window`);return t}t.$o=t.xP=t.MX=t.VQ=t.k$=t.UO=t.jW=t.Gw=t.Me=t.uT=t.$2=t.sD=void 0,t.sD=r,t.$2=n,t.uT=function(){return n("document")},t.Me=function(){return r("document")},t.Gw=function(){return n("navigator")},t.jW=function(){return r("navigator")},t.UO=function(){return n("location")},t.k$=function(){return r("location")},t.VQ=function(){return n("crypto")},t.MX=function(){return r("crypto")},t.xP=function(){return n("localStorage")},t.$o=function(){return r("localStorage")}},65755:(e,t,r)=>{"use strict";t.D=void 0;const n=r(42269);t.D=function(){let e,t;try{e=n.getDocumentOrThrow(),t=n.getLocationOrThrow()}catch(e){return null}function r(...t){const r=e.getElementsByTagName("meta");for(let e=0;e<r.length;e++){const n=r[e],i=["itemprop","property","name"].map((e=>n.getAttribute(e))).filter((e=>!!e&&t.includes(e)));if(i.length&&i){const e=n.getAttribute("content");if(e)return e}}return""}const i=function(){let t=r("name","og:site_name","og:title","twitter:title");return t||(t=e.title),t}();return{description:r("description","og:description","twitter:description","keywords"),url:t.origin,icons:function(){const r=e.getElementsByTagName("link"),n=[];for(let e=0;e<r.length;e++){const i=r[e],o=i.getAttribute("rel");if(o&&o.toLowerCase().indexOf("icon")>-1){const e=i.getAttribute("href");if(e)if(-1===e.toLowerCase().indexOf("https:")&&-1===e.toLowerCase().indexOf("http:")&&0!==e.indexOf("//")){let r=t.protocol+"//"+t.host;if(0===e.indexOf("/"))r+=e;else{const n=t.pathname.split("/");n.pop(),r+=n.join("/")+"/"+e}n.push(r)}else if(0===e.indexOf("//")){const r=t.protocol+e;n.push(r)}else n.push(e)}}return n}(),name:i}}},42269:(e,t)=>{"use strict";function r(e){let t;return"undefined"!=typeof window&&void 0!==window[e]&&(t=window[e]),t}function n(e){const t=r(e);if(!t)throw new Error(`${e} is not defined in Window`);return t}Object.defineProperty(t,"__esModule",{value:!0}),t.getLocalStorage=t.getLocalStorageOrThrow=t.getCrypto=t.getCryptoOrThrow=t.getLocation=t.getLocationOrThrow=t.getNavigator=t.getNavigatorOrThrow=t.getDocument=t.getDocumentOrThrow=t.getFromWindowOrThrow=t.getFromWindow=void 0,t.getFromWindow=r,t.getFromWindowOrThrow=n,t.getDocumentOrThrow=function(){return n("document")},t.getDocument=function(){return r("document")},t.getNavigatorOrThrow=function(){return n("navigator")},t.getNavigator=function(){return r("navigator")},t.getLocationOrThrow=function(){return n("location")},t.getLocation=function(){return r("location")},t.getCryptoOrThrow=function(){return n("crypto")},t.getCrypto=function(){return r("crypto")},t.getLocalStorageOrThrow=function(){return n("localStorage")},t.getLocalStorage=function(){return r("localStorage")}},69282:(e,t,r)=>{"use strict";var n=r(34155);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var o,a,s=r(62136).codes,u=s.ERR_AMBIGUOUS_ARGUMENT,c=s.ERR_INVALID_ARG_TYPE,f=s.ERR_INVALID_ARG_VALUE,l=s.ERR_INVALID_RETURN_VALUE,d=s.ERR_MISSING_ARGS,h=r(25961),p=r(89539).inspect,b=r(89539).types,y=b.isPromise,g=b.isRegExp,m=Object.assign?Object.assign:r(8091).assign,v=Object.is?Object.is:r(20609);function w(){var e=r(19158);o=e.isDeepEqual,a=e.isDeepStrictEqual}new Map;var _=!1,x=e.exports=S,O={};function k(e){if(e.message instanceof Error)throw e.message;throw new h(e)}function P(e,t,r,n){if(!r){var i=!1;if(0===t)i=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var o=new h({actual:r,expected:!0,message:n,operator:"==",stackStartFn:e});throw o.generatedMessage=i,o}}function S(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];P.apply(void 0,[S,t.length].concat(t))}x.fail=function e(t,r,i,o,a){var s,u=arguments.length;if(0===u?s="Failed":1===u?(i=t,t=void 0):(!1===_&&(_=!0,(n.emitWarning?n.emitWarning:console.warn.bind(console))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===u&&(o="!=")),i instanceof Error)throw i;var c={actual:t,expected:r,operator:void 0===o?"fail":o,stackStartFn:a||e};void 0!==i&&(c.message=i);var f=new h(c);throw s&&(f.message=s,f.generatedMessage=!0),f},x.AssertionError=h,x.ok=S,x.equal=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");t!=r&&k({actual:t,expected:r,message:n,operator:"==",stackStartFn:e})},x.notEqual=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");t==r&&k({actual:t,expected:r,message:n,operator:"!=",stackStartFn:e})},x.deepEqual=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");void 0===o&&w(),o(t,r)||k({actual:t,expected:r,message:n,operator:"deepEqual",stackStartFn:e})},x.notDeepEqual=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");void 0===o&&w(),o(t,r)&&k({actual:t,expected:r,message:n,operator:"notDeepEqual",stackStartFn:e})},x.deepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");void 0===o&&w(),a(t,r)||k({actual:t,expected:r,message:n,operator:"deepStrictEqual",stackStartFn:e})},x.notDeepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");void 0===o&&w(),a(t,r)&&k({actual:t,expected:r,message:n,operator:"notDeepStrictEqual",stackStartFn:e})},x.strictEqual=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");v(t,r)||k({actual:t,expected:r,message:n,operator:"strictEqual",stackStartFn:e})},x.notStrictEqual=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");v(t,r)&&k({actual:t,expected:r,message:n,operator:"notStrictEqual",stackStartFn:e})};var A=function e(t,r,n){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r.forEach((function(e){e in t&&(void 0!==n&&"string"==typeof n[e]&&g(t[e])&&t[e].test(n[e])?i[e]=n[e]:i[e]=t[e])}))};function E(e,t,r,n){if("function"!=typeof t){if(g(t))return t.test(e);if(2===arguments.length)throw new c("expected",["Function","RegExp"],t);if("object"!==i(e)||null===e){var s=new h({actual:e,expected:t,message:r,operator:"deepStrictEqual",stackStartFn:n});throw s.operator=n.name,s}var u=Object.keys(t);if(t instanceof Error)u.push("name","message");else if(0===u.length)throw new f("error",t,"may not be an empty object");return void 0===o&&w(),u.forEach((function(i){"string"==typeof e[i]&&g(t[i])&&t[i].test(e[i])||function(e,t,r,n,i,o){if(!(r in e)||!a(e[r],t[r])){if(!n){var s=new A(e,i),u=new A(t,i,e),c=new h({actual:s,expected:u,operator:"deepStrictEqual",stackStartFn:o});throw c.actual=e,c.expected=t,c.operator=o.name,c}k({actual:e,expected:t,message:n,operator:o.name,stackStartFn:o})}}(e,t,i,r,u,n)})),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function M(e){if("function"!=typeof e)throw new c("fn","Function",e);try{e()}catch(e){return e}return O}function j(e){return y(e)||null!==e&&"object"===i(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function T(e){return Promise.resolve().then((function(){var t;if("function"==typeof e){if(!j(t=e()))throw new l("instance of Promise","promiseFn",t)}else{if(!j(e))throw new c("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then((function(){return t})).then((function(){return O})).catch((function(e){return e}))}))}function B(e,t,r,n){if("string"==typeof r){if(4===arguments.length)throw new c("error",["Object","Error","Function","RegExp"],r);if("object"===i(t)&&null!==t){if(t.message===r)throw new u("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===r)throw new u("error/message",'The error "'.concat(t,'" is identical to the message.'));n=r,r=void 0}else if(null!=r&&"object"!==i(r)&&"function"!=typeof r)throw new c("error",["Object","Error","Function","RegExp"],r);if(t===O){var o="";r&&r.name&&(o+=" (".concat(r.name,")")),o+=n?": ".concat(n):".";var a="rejects"===e.name?"rejection":"exception";k({actual:void 0,expected:r,operator:e.name,message:"Missing expected ".concat(a).concat(o),stackStartFn:e})}if(r&&!E(t,r,n,e))throw t}function I(e,t,r,n){if(t!==O){if("string"==typeof r&&(n=r,r=void 0),!r||E(t,r)){var i=n?": ".concat(n):".",o="doesNotReject"===e.name?"rejection":"exception";k({actual:t,expected:r,operator:e.name,message:"Got unwanted ".concat(o).concat(i,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function N(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];P.apply(void 0,[N,t.length].concat(t))}x.throws=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];B.apply(void 0,[e,M(t)].concat(n))},x.rejects=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return T(t).then((function(t){return B.apply(void 0,[e,t].concat(n))}))},x.doesNotThrow=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];I.apply(void 0,[e,M(t)].concat(n))},x.doesNotReject=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return T(t).then((function(t){return I.apply(void 0,[e,t].concat(n))}))},x.ifError=function e(t){if(null!=t){var r="ifError got unwanted exception: ";"object"===i(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?r+=t.constructor.name:r+=t.message:r+=p(t);var n=new h({actual:t,expected:null,operator:"ifError",message:r,stackStartFn:e}),o=t.stack;if("string"==typeof o){var a=o.split("\n");a.shift();for(var s=n.stack.split("\n"),u=0;u<a.length;u++){var c=s.indexOf(a[u]);if(-1!==c){s=s.slice(0,c);break}}n.stack="".concat(s.join("\n"),"\n").concat(a.join("\n"))}throw n}},x.strict=m(N,x,{equal:x.strictEqual,deepEqual:x.deepStrictEqual,notEqual:x.notStrictEqual,notDeepEqual:x.notDeepStrictEqual}),x.strict.strict=x.strict},25961:(e,t,r)=>{"use strict";var n=r(34155);function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?s(e):t}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){var t="function"==typeof Map?new Map:void 0;return u=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return c(e,arguments,l(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),f(n,e)},u(e)}function c(e,t,r){return c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&f(i,r.prototype),i},c.apply(null,arguments)}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}var h=r(89539).inspect,p=r(62136).codes.ERR_INVALID_ARG_TYPE;function b(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}var y="",g="",m="",v="",w={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function _(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){r[t]=e[t]})),Object.defineProperty(r,"message",{value:e.message}),r}function x(e){return h(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var O=function(e){function t(e){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),"object"!==d(e)||null===e)throw new p("options","Object",e);var i=e.message,o=e.operator,u=e.stackStartFn,c=e.actual,f=e.expected,h=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=i)r=a(this,l(t).call(this,String(i)));else if(n.stderr&&n.stderr.isTTY&&(n.stderr&&n.stderr.getColorDepth&&1!==n.stderr.getColorDepth()?(y="",g="",v="",m=""):(y="",g="",v="",m="")),"object"===d(c)&&null!==c&&"object"===d(f)&&null!==f&&"stack"in c&&c instanceof Error&&"stack"in f&&f instanceof Error&&(c=_(c),f=_(f)),"deepStrictEqual"===o||"strictEqual"===o)r=a(this,l(t).call(this,function(e,t,r){var i="",o="",a=0,s="",u=!1,c=x(e),f=c.split("\n"),l=x(t).split("\n"),h=0,p="";if("strictEqual"===r&&"object"===d(e)&&"object"===d(t)&&null!==e&&null!==t&&(r="strictEqualObject"),1===f.length&&1===l.length&&f[0]!==l[0]){var _=f[0].length+l[0].length;if(_<=10){if(!("object"===d(e)&&null!==e||"object"===d(t)&&null!==t||0===e&&0===t))return"".concat(w[r],"\n\n")+"".concat(f[0]," !== ").concat(l[0],"\n")}else if("strictEqualObject"!==r&&_<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;f[0][h]===l[0][h];)h++;h>2&&(p="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,r-e.length)}(" ",h),"^"),h=0)}}for(var O=f[f.length-1],k=l[l.length-1];O===k&&(h++<2?s="\n ".concat(O).concat(s):i=O,f.pop(),l.pop(),0!==f.length&&0!==l.length);)O=f[f.length-1],k=l[l.length-1];var P=Math.max(f.length,l.length);if(0===P){var S=c.split("\n");if(S.length>30)for(S[26]="".concat(y,"...").concat(v);S.length>27;)S.pop();return"".concat(w.notIdentical,"\n\n").concat(S.join("\n"),"\n")}h>3&&(s="\n".concat(y,"...").concat(v).concat(s),u=!0),""!==i&&(s="\n ".concat(i).concat(s),i="");var A=0,E=w[r]+"\n".concat(g,"+ actual").concat(v," ").concat(m,"- expected").concat(v),M=" ".concat(y,"...").concat(v," Lines skipped");for(h=0;h<P;h++){var j=h-a;if(f.length<h+1)j>1&&h>2&&(j>4?(o+="\n".concat(y,"...").concat(v),u=!0):j>3&&(o+="\n ".concat(l[h-2]),A++),o+="\n ".concat(l[h-1]),A++),a=h,i+="\n".concat(m,"-").concat(v," ").concat(l[h]),A++;else if(l.length<h+1)j>1&&h>2&&(j>4?(o+="\n".concat(y,"...").concat(v),u=!0):j>3&&(o+="\n ".concat(f[h-2]),A++),o+="\n ".concat(f[h-1]),A++),a=h,o+="\n".concat(g,"+").concat(v," ").concat(f[h]),A++;else{var T=l[h],B=f[h],I=B!==T&&(!b(B,",")||B.slice(0,-1)!==T);I&&b(T,",")&&T.slice(0,-1)===B&&(I=!1,B+=","),I?(j>1&&h>2&&(j>4?(o+="\n".concat(y,"...").concat(v),u=!0):j>3&&(o+="\n ".concat(f[h-2]),A++),o+="\n ".concat(f[h-1]),A++),a=h,o+="\n".concat(g,"+").concat(v," ").concat(B),i+="\n".concat(m,"-").concat(v," ").concat(T),A+=2):(o+=i,i="",1!==j&&0!==h||(o+="\n ".concat(B),A++))}if(A>20&&h<P-2)return"".concat(E).concat(M,"\n").concat(o,"\n").concat(y,"...").concat(v).concat(i,"\n")+"".concat(y,"...").concat(v)}return"".concat(E).concat(u?M:"","\n").concat(o).concat(i).concat(s).concat(p)}(c,f,o)));else if("notDeepStrictEqual"===o||"notStrictEqual"===o){var O=w[o],k=x(c).split("\n");if("notStrictEqual"===o&&"object"===d(c)&&null!==c&&(O=w.notStrictEqualObject),k.length>30)for(k[26]="".concat(y,"...").concat(v);k.length>27;)k.pop();r=1===k.length?a(this,l(t).call(this,"".concat(O," ").concat(k[0]))):a(this,l(t).call(this,"".concat(O,"\n\n").concat(k.join("\n"),"\n")))}else{var P=x(c),S="",A=w[o];"notDeepEqual"===o||"notEqual"===o?(P="".concat(w[o],"\n\n").concat(P)).length>1024&&(P="".concat(P.slice(0,1021),"...")):(S="".concat(x(f)),P.length>512&&(P="".concat(P.slice(0,509),"...")),S.length>512&&(S="".concat(S.slice(0,509),"...")),"deepEqual"===o||"equal"===o?P="".concat(A,"\n\n").concat(P,"\n\nshould equal\n\n"):S=" ".concat(o," ").concat(S)),r=a(this,l(t).call(this,"".concat(P).concat(S)))}return Error.stackTraceLimit=h,r.generatedMessage=!i,Object.defineProperty(s(r),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),r.code="ERR_ASSERTION",r.actual=c,r.expected=f,r.operator=o,Error.captureStackTrace&&Error.captureStackTrace(s(r),u),r.stack,r.name="AssertionError",a(r)}var r,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(t,e),r=t,u=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:h.custom,value:function(e,t){return h(this,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){i(e,t,r[t])}))}return e}({},t,{customInspect:!1,depth:0}))}}],u&&o(r.prototype,u),t}(u(Error));e.exports=O},62136:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}var a,s,u={};function c(e,t,r){r||(r=Error);var a=function(r){function a(r,o,s){var u;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),u=function(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,i(a).call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,o,s))),u.code=e,u}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(a,r),a}(r);u[e]=a}function f(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}c("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),c("ERR_INVALID_ARG_TYPE",(function(e,t,i){var o,s,u,c,l;if(void 0===a&&(a=r(69282)),a("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(s="not ",t.substr(0,4)===s)?(o="must not be",t=t.replace(/^not /,"")):o="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-9,r)===t}(e," argument"))u="The ".concat(e," ").concat(o," ").concat(f(t,"type"));else{var d=("number"!=typeof l&&(l=0),l+1>(c=e).length||-1===c.indexOf(".",l)?"argument":"property");u='The "'.concat(e,'" ').concat(d," ").concat(o," ").concat(f(t,"type"))}return u+". Received type ".concat(n(i))}),TypeError),c("ERR_INVALID_ARG_VALUE",(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===s&&(s=r(89539));var i=s.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(n,". Received ").concat(i)}),TypeError,RangeError),c("ERR_INVALID_RETURN_VALUE",(function(e,t,r){var i;return i=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")}),TypeError),c("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];void 0===a&&(a=r(69282)),a(t.length>0,"At least one arg needs to be specified");var i="The ",o=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),o){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,o-1).join(", "),i+=", and ".concat(t[o-1]," arguments")}return"".concat(i," must be specified")}),TypeError),e.exports.codes=u},19158:(e,t,r)=>{"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var o=void 0!==/a/g.flags,a=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},s=function(e){var t=[];return e.forEach((function(e,r){return t.push([r,e])})),t},u=Object.is?Object.is:r(20609),c=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},f=Number.isNaN?Number.isNaN:r(20360);function l(e){return e.call.bind(e)}var d=l(Object.prototype.hasOwnProperty),h=l(Object.prototype.propertyIsEnumerable),p=l(Object.prototype.toString),b=r(89539).types,y=b.isAnyArrayBuffer,g=b.isArrayBufferView,m=b.isDate,v=b.isMap,w=b.isRegExp,_=b.isSet,x=b.isNativeError,O=b.isBoxedPrimitive,k=b.isNumberObject,P=b.isStringObject,S=b.isBooleanObject,A=b.isBigIntObject,E=b.isSymbolObject,M=b.isFloat32Array,j=b.isFloat64Array;function T(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r<48||r>57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function B(e){return Object.keys(e).filter(T).concat(c(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function I(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0}var N=0,R=1,C=2,U=3;function L(e,t,r,n){if(e===t)return 0!==e||!r||u(e,t);if(r){if("object"!==i(e))return"number"==typeof e&&f(e)&&f(t);if("object"!==i(t)||null===e||null===t)return!1;if(Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==i(e))return(null===t||"object"!==i(t))&&e==t;if(null===t||"object"!==i(t))return!1}var a,s,c,l,d=p(e);if(d!==p(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var h=B(e),b=B(t);return h.length===b.length&&H(e,t,r,n,R,h)}if("[object Object]"===d&&(!v(e)&&v(t)||!_(e)&&_(t)))return!1;if(m(e)){if(!m(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(w(e)){if(!w(t)||(c=e,l=t,!(o?c.source===l.source&&c.flags===l.flags:RegExp.prototype.toString.call(c)===RegExp.prototype.toString.call(l))))return!1}else if(x(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(g(e)){if(r||!M(e)&&!j(e)){if(!function(e,t){return e.byteLength===t.byteLength&&0===I(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}(e,t))return!1}else if(!function(e,t){if(e.byteLength!==t.byteLength)return!1;for(var r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0}(e,t))return!1;var T=B(e),L=B(t);return T.length===L.length&&H(e,t,r,n,N,T)}if(_(e))return!(!_(t)||e.size!==t.size)&&H(e,t,r,n,C);if(v(e))return!(!v(t)||e.size!==t.size)&&H(e,t,r,n,U);if(y(e)){if(s=t,(a=e).byteLength!==s.byteLength||0!==I(new Uint8Array(a),new Uint8Array(s)))return!1}else if(O(e)&&!function(e,t){return k(e)?k(t)&&u(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):P(e)?P(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):S(e)?S(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):A(e)?A(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):E(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}(e,t))return!1}return H(e,t,r,n,N)}function D(e,t){return t.filter((function(t){return h(e,t)}))}function H(e,t,r,o,u,f){if(5===arguments.length){f=Object.keys(e);var l=Object.keys(t);if(f.length!==l.length)return!1}for(var p=0;p<f.length;p++)if(!d(t,f[p]))return!1;if(r&&5===arguments.length){var b=c(e);if(0!==b.length){var y=0;for(p=0;p<b.length;p++){var g=b[p];if(h(e,g)){if(!h(t,g))return!1;f.push(g),y++}else if(h(t,g))return!1}var m=c(t);if(b.length!==m.length&&D(t,m).length!==y)return!1}else{var v=c(t);if(0!==v.length&&0!==D(t,v).length)return!1}}if(0===f.length&&(u===N||u===R&&0===e.length||0===e.size))return!0;if(void 0===o)o={val1:new Map,val2:new Map,position:0};else{var w=o.val1.get(e);if(void 0!==w){var _=o.val2.get(t);if(void 0!==_)return w===_}o.position++}o.val1.set(e,o.position),o.val2.set(t,o.position);var x=function(e,t,r,o,u,c){var f=0;if(c===C){if(!function(e,t,r,n){for(var o=null,s=a(e),u=0;u<s.length;u++){var c=s[u];if("object"===i(c)&&null!==c)null===o&&(o=new Set),o.add(c);else if(!t.has(c)){if(r)return!1;if(!z(e,t,c))return!1;null===o&&(o=new Set),o.add(c)}}if(null!==o){for(var f=a(t),l=0;l<f.length;l++){var d=f[l];if("object"===i(d)&&null!==d){if(!F(o,d,r,n))return!1}else if(!r&&!e.has(d)&&!F(o,d,r,n))return!1}return 0===o.size}return!0}(e,t,r,u))return!1}else if(c===U){if(!function(e,t,r,o){for(var a=null,u=s(e),c=0;c<u.length;c++){var f=n(u[c],2),l=f[0],d=f[1];if("object"===i(l)&&null!==l)null===a&&(a=new Set),a.add(l);else{var h=t.get(l);if(void 0===h&&!t.has(l)||!L(d,h,r,o)){if(r)return!1;if(!q(e,t,l,d,o))return!1;null===a&&(a=new Set),a.add(l)}}}if(null!==a){for(var p=s(t),b=0;b<p.length;b++){var y=n(p[b],2),g=(l=y[0],y[1]);if("object"===i(l)&&null!==l){if(!K(a,e,l,g,r,o))return!1}else if(!(r||e.has(l)&&L(e.get(l),g,!1,o)||K(a,e,l,g,!1,o)))return!1}return 0===a.size}return!0}(e,t,r,u))return!1}else if(c===R)for(;f<e.length;f++){if(!d(e,f)){if(d(t,f))return!1;for(var l=Object.keys(e);f<l.length;f++){var h=l[f];if(!d(t,h)||!L(e[h],t[h],r,u))return!1}return l.length===Object.keys(t).length}if(!d(t,f)||!L(e[f],t[f],r,u))return!1}for(f=0;f<o.length;f++){var p=o[f];if(!L(e[p],t[p],r,u))return!1}return!0}(e,t,r,f,o,u);return o.val1.delete(e),o.val2.delete(t),x}function F(e,t,r,n){for(var i=a(e),o=0;o<i.length;o++){var s=i[o];if(L(t,s,r,n))return e.delete(s),!0}return!1}function V(e){switch(i(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(f(e))return!1}return!0}function z(e,t,r){var n=V(r);return null!=n?n:t.has(n)&&!e.has(n)}function q(e,t,r,n,i){var o=V(r);if(null!=o)return o;var a=t.get(o);return!(void 0===a&&!t.has(o)||!L(n,a,!1,i))&&!e.has(o)&&L(n,a,!1,i)}function K(e,t,r,n,i,o){for(var s=a(e),u=0;u<s.length;u++){var c=s[u];if(L(r,c,i,o)&&L(n,t.get(c),i,o))return e.delete(c),!0}return!1}e.exports={isDeepEqual:function(e,t){return L(e,t,!1)},isDeepStrictEqual:function(e,t){return L(e,t,!0)}}},9669:(e,t,r)=>{e.exports=r(51609)},55448:(e,t,r)=>{"use strict";var n=r(64867),i=r(36026),o=r(4372),a=r(15327),s=r(94097),u=r(84109),c=r(67985),f=r(77874),l=r(82648),d=r(60644),h=r(90205);e.exports=function(e){return new Promise((function(t,r){var p,b=e.data,y=e.headers,g=e.responseType;function m(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}n.isFormData(b)&&n.isStandardBrowserEnv()&&delete y["Content-Type"];var v=new XMLHttpRequest;if(e.auth){var w=e.auth.username||"",_=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";y.Authorization="Basic "+btoa(w+":"+_)}var x=s(e.baseURL,e.url);function O(){if(v){var n="getAllResponseHeaders"in v?u(v.getAllResponseHeaders()):null,o={data:g&&"text"!==g&&"json"!==g?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:n,config:e,request:v};i((function(e){t(e),m()}),(function(e){r(e),m()}),o),v=null}}if(v.open(e.method.toUpperCase(),a(x,e.params,e.paramsSerializer),!0),v.timeout=e.timeout,"onloadend"in v?v.onloadend=O:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(O)},v.onabort=function(){v&&(r(new l("Request aborted",l.ECONNABORTED,e,v)),v=null)},v.onerror=function(){r(new l("Network Error",l.ERR_NETWORK,e,v,v)),v=null},v.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||f;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new l(t,n.clarifyTimeoutError?l.ETIMEDOUT:l.ECONNABORTED,e,v)),v=null},n.isStandardBrowserEnv()){var k=(e.withCredentials||c(x))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;k&&(y[e.xsrfHeaderName]=k)}"setRequestHeader"in v&&n.forEach(y,(function(e,t){void 0===b&&"content-type"===t.toLowerCase()?delete y[t]:v.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(v.withCredentials=!!e.withCredentials),g&&"json"!==g&&(v.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&v.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&v.upload&&v.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){v&&(r(!e||e&&e.type?new d:e),v.abort(),v=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),b||(b=null);var P=h(x);P&&-1===["http","https","file"].indexOf(P)?r(new l("Unsupported protocol "+P+":",l.ERR_BAD_REQUEST,e)):v.send(b)}))}},51609:(e,t,r)=>{"use strict";var n=r(64867),i=r(91849),o=r(30321),a=r(47185),s=function e(t){var r=new o(t),s=i(o.prototype.request,r);return n.extend(s,o.prototype,r),n.extend(s,r),s.create=function(r){return e(a(t,r))},s}(r(45546));s.Axios=o,s.CanceledError=r(60644),s.CancelToken=r(14972),s.isCancel=r(26502),s.VERSION=r(97288).version,s.toFormData=r(47675),s.AxiosError=r(82648),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=r(8713),s.isAxiosError=r(16268),e.exports=s,e.exports.default=s},14972:(e,t,r)=>{"use strict";var n=r(60644);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;this.promise.then((function(e){if(r._listeners){var t,n=r._listeners.length;for(t=0;t<n;t++)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e){r.reason||(r.reason=new n(e),t(r.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},i.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},60644:(e,t,r)=>{"use strict";var n=r(82648);function i(e){n.call(this,null==e?"canceled":e,n.ERR_CANCELED),this.name="CanceledError"}r(64867).inherits(i,n,{__CANCEL__:!0}),e.exports=i},26502:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},30321:(e,t,r)=>{"use strict";var n=r(64867),i=r(15327),o=r(80782),a=r(13572),s=r(47185),u=r(94097),c=r(54875),f=c.validators;function l(e){this.defaults=e,this.interceptors={request:new o,response:new o}}l.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;void 0!==r&&c.assertOptions(r,{silentJSONParsing:f.transitional(f.boolean),forcedJSONParsing:f.transitional(f.boolean),clarifyTimeoutError:f.transitional(f.boolean)},!1);var n=[],i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var o,u=[];if(this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)})),!i){var l=[a,void 0];for(Array.prototype.unshift.apply(l,n),l=l.concat(u),o=Promise.resolve(t);l.length;)o=o.then(l.shift(),l.shift());return o}for(var d=t;n.length;){var h=n.shift(),p=n.shift();try{d=h(d)}catch(e){p(e);break}}try{o=a(d)}catch(e){return Promise.reject(e)}for(;u.length;)o=o.then(u.shift(),u.shift());return o},l.prototype.getUri=function(e){e=s(this.defaults,e);var t=u(e.baseURL,e.url);return i(t,e.params,e.paramsSerializer)},n.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,r){return this.request(s(r||{},{method:e,url:t,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,i){return this.request(s(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}l.prototype[e]=t(),l.prototype[e+"Form"]=t(!0)})),e.exports=l},82648:(e,t,r)=>{"use strict";var n=r(64867);function i(e,t,r,n,i){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i)}n.inherits(i,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var o=i.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){a[e]={value:e}})),Object.defineProperties(i,a),Object.defineProperty(o,"isAxiosError",{value:!0}),i.from=function(e,t,r,a,s,u){var c=Object.create(o);return n.toFlatObject(e,c,(function(e){return e!==Error.prototype})),i.call(c,e.message,t,r,a,s),c.name=e.name,u&&Object.assign(c,u),c},e.exports=i},80782:(e,t,r)=>{"use strict";var n=r(64867);function i(){this.handlers=[]}i.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){n.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},94097:(e,t,r)=>{"use strict";var n=r(91793),i=r(7303);e.exports=function(e,t){return e&&!n(t)?i(e,t):t}},13572:(e,t,r)=>{"use strict";var n=r(64867),i=r(18527),o=r(26502),a=r(45546),s=r(60644);function u(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}e.exports=function(e){return u(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return u(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(u(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},47185:(e,t,r)=>{"use strict";var n=r(64867);e.exports=function(e,t){t=t||{};var r={};function i(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function o(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:i(void 0,e[r]):i(e[r],t[r])}function a(e){if(!n.isUndefined(t[e]))return i(void 0,t[e])}function s(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:i(void 0,e[r]):i(void 0,t[r])}function u(r){return r in t?i(e[r],t[r]):r in e?i(void 0,e[r]):void 0}var c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};return n.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||o,i=t(e);n.isUndefined(i)&&t!==u||(r[e]=i)})),r}},36026:(e,t,r)=>{"use strict";var n=r(82648);e.exports=function(e,t,r){var i=r.config.validateStatus;r.status&&i&&!i(r.status)?t(new n("Request failed with status code "+r.status,[n.ERR_BAD_REQUEST,n.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}},18527:(e,t,r)=>{"use strict";var n=r(64867),i=r(45546);e.exports=function(e,t,r){var o=this||i;return n.forEach(r,(function(r){e=r.call(o,e,t)})),e}},45546:(e,t,r)=>{"use strict";var n=r(34155),i=r(64867),o=r(16016),a=r(82648),s=r(77874),u=r(47675),c={"Content-Type":"application/x-www-form-urlencoded"};function f(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l,d={transitional:s,adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==n&&"[object process]"===Object.prototype.toString.call(n))&&(l=r(55448)),l),transformRequest:[function(e,t){if(o(t,"Accept"),o(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e))return e;if(i.isArrayBufferView(e))return e.buffer;if(i.isURLSearchParams(e))return f(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var r,n=i.isObject(e),a=t&&t["Content-Type"];if((r=i.isFileList(e))||n&&"multipart/form-data"===a){var s=this.env&&this.env.FormData;return u(r?{"files[]":e}:e,s&&new s)}return n||"application/json"===a?(f(t,"application/json"),function(e,t,r){if(i.isString(e))try{return(0,JSON.parse)(e),i.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||d.transitional,r=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,o=!r&&"json"===this.responseType;if(o||n&&i.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw a.from(e,a.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:r(91623)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],(function(e){d.headers[e]={}})),i.forEach(["post","put","patch"],(function(e){d.headers[e]=i.merge(c)})),e.exports=d},77874:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},97288:e=>{e.exports={version:"0.27.2"}},91849:e=>{"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},15327:(e,t,r)=>{"use strict";var n=r(64867);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var o;if(r)o=r(t);else if(n.isURLSearchParams(t))o=t.toString();else{var a=[];n.forEach(t,(function(e,t){null!=e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,(function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},7303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:(e,t,r)=>{"use strict";var n=r(64867);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,r,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(i)&&s.push("path="+i),n.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},91793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},16268:(e,t,r)=>{"use strict";var n=r(64867);e.exports=function(e){return n.isObject(e)&&!0===e.isAxiosError}},67985:(e,t,r)=>{"use strict";var n=r(64867);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function i(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=i(window.location.href),function(t){var r=n.isString(t)?i(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},16016:(e,t,r)=>{"use strict";var n=r(64867);e.exports=function(e,t){n.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))}},91623:e=>{e.exports=null},84109:(e,t,r)=>{"use strict";var n=r(64867),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,o,a={};return e?(n.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=n.trim(e.substr(0,o)).toLowerCase(),r=n.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([r]):a[t]?a[t]+", "+r:r}})),a):a}},90205:e=>{"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},8713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},47675:(e,t,r)=>{"use strict";var n=r(48764).Buffer,i=r(64867);e.exports=function(e,t){t=t||new FormData;var r=[];function o(e){return null===e?"":i.isDate(e)?e.toISOString():i.isArrayBuffer(e)||i.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):n.from(e):e}return function e(n,a){if(i.isPlainObject(n)||i.isArray(n)){if(-1!==r.indexOf(n))throw Error("Circular reference detected in "+a);r.push(n),i.forEach(n,(function(r,n){if(!i.isUndefined(r)){var s,u=a?a+"."+n:n;if(r&&!a&&"object"==typeof r)if(i.endsWith(n,"{}"))r=JSON.stringify(r);else if(i.endsWith(n,"[]")&&(s=i.toArray(r)))return void s.forEach((function(e){!i.isUndefined(e)&&t.append(u,o(e))}));e(r,u)}})),r.pop()}else t.append(a,o(n))}(e),t}},54875:(e,t,r)=>{"use strict";var n=r(97288).version,i=r(82648),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var a={};o.transitional=function(e,t,r){function o(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,s){if(!1===e)throw new i(o(n," has been removed"+(t?" in "+t:"")),i.ERR_DEPRECATED);return t&&!a[n]&&(a[n]=!0,console.warn(o(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,s)}},e.exports={assertOptions:function(e,t,r){if("object"!=typeof e)throw new i("options must be an object",i.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),o=n.length;o-- >0;){var a=n[o],s=t[a];if(s){var u=e[a],c=void 0===u||s(u,a,e);if(!0!==c)throw new i("option "+a+" must be "+c,i.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new i("Unknown option "+a,i.ERR_BAD_OPTION)}},validators:o}},64867:(e,t,r)=>{"use strict";var n,i=r(91849),o=Object.prototype.toString,a=(n=Object.create(null),function(e){var t=o.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())});function s(e){return e=e.toLowerCase(),function(t){return a(t)===e}}function u(e){return Array.isArray(e)}function c(e){return void 0===e}var f=s("ArrayBuffer");function l(e){return null!==e&&"object"==typeof e}function d(e){if("object"!==a(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var h=s("Date"),p=s("File"),b=s("Blob"),y=s("FileList");function g(e){return"[object Function]"===o.call(e)}var m=s("URLSearchParams");function v(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),u(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}var w,_=(w="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return w&&e instanceof w});e.exports={isArray:u,isArrayBuffer:f,isBuffer:function(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||o.call(e)===t||g(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&f(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:l,isPlainObject:d,isUndefined:c,isDate:h,isFile:p,isBlob:b,isFunction:g,isStream:function(e){return l(e)&&g(e.pipe)},isURLSearchParams:m,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:v,merge:function e(){var t={};function r(r,n){d(t[n])&&d(r)?t[n]=e(t[n],r):d(r)?t[n]=e({},r):u(r)?t[n]=r.slice():t[n]=r}for(var n=0,i=arguments.length;n<i;n++)v(arguments[n],r);return t},extend:function(e,t,r){return v(t,(function(t,n){e[n]=r&&"function"==typeof t?i(t,r):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,r,n){e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,r&&Object.assign(e.prototype,r)},toFlatObject:function(e,t,r){var n,i,o,a={};t=t||{};do{for(i=(n=Object.getOwnPropertyNames(e)).length;i-- >0;)a[o=n[i]]||(t[o]=e[o],a[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:s,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 t=e.length;if(c(t))return null;for(var r=new Array(t);t-- >0;)r[t]=e[t];return r},isTypedArray:_,isFileList:y}},75469:(e,t)=>{"use strict";function r(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function n(e){if("boolean"!=typeof e)throw new Error(`Expected boolean, not ${e}`)}function i(e){if(!(e instanceof Uint8Array))throw new TypeError("Expected Uint8Array");for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(r.length>0&&!r.includes(e.length))throw new TypeError(`Expected Uint8Array of length ${r}, not of length=${e.length}`)}function o(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");r(e.outputLen),r(e.blockLen)}function a(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function s(e,t){i(e);const r=t.outputLen;if(e.length<r)throw new Error(`digestInto() expects output buffer of length at least ${r}`)}Object.defineProperty(t,"__esModule",{value:!0}),t.output=t.exists=t.hash=t.bytes=t.bool=t.number=void 0,t.number=r,t.bool=n,t.bytes=i,t.hash=o,t.exists=a,t.output=s;const u={number:r,bool:n,bytes:i,hash:o,exists:a,output:s};t.default=u},96908:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.BLAKE2=t.SIGMA=void 0;const c=r(75469),f=r(91720);t.SIGMA=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3]);let l=function(e){(0,a.default)(l,e);var t,r,n=(t=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function l(e,t){var r;let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,u=arguments.length>5?arguments[5]:void 0;if((0,i.default)(this,l),(r=n.call(this)).blockLen=e,r.outputLen=t,r.length=0,r.pos=0,r.finished=!1,r.destroyed=!1,c.default.number(e),c.default.number(t),c.default.number(a),t<0||t>a)throw new Error("Blake2: outputLen bigger than keyLen");if(void 0!==o.key&&(o.key.length<1||o.key.length>a))throw new Error(`Key should be up 1..${a} byte long or undefined`);if(void 0!==o.salt&&o.salt.length!==s)throw new Error(`Salt should be ${s} byte long or undefined`);if(void 0!==o.personalization&&o.personalization.length!==u)throw new Error(`Personalization should be ${u} byte long or undefined`);return r.buffer32=(0,f.u32)(r.buffer=new Uint8Array(e)),r}return(0,o.default)(l,[{key:"update",value:function(e){c.default.exists(this);const{blockLen:t,buffer:r,buffer32:n}=this,i=(e=(0,f.toBytes)(e)).length;for(let o=0;o<i;){this.pos===t&&(this.compress(n,0,!1),this.pos=0);const a=Math.min(t-this.pos,i-o),s=e.byteOffset+o;if(a!==t||s%4||!(o+a<i))r.set(e.subarray(o,o+a),this.pos),this.pos+=a,this.length+=a,o+=a;else{const r=new Uint32Array(e.buffer,s,Math.floor((i-o)/4));for(let e=0;o+t<i;e+=n.length,o+=t)this.length+=t,this.compress(r,e,!1)}}return this}},{key:"digestInto",value:function(e){c.default.exists(this),c.default.output(e,this);const{pos:t,buffer32:r}=this;this.finished=!0,this.buffer.subarray(t).fill(0),this.compress(r,0,!0);const n=(0,f.u32)(e);this.get().forEach(((e,t)=>n[t]=e))}},{key:"digest",value:function(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const r=e.slice(0,t);return this.destroy(),r}},{key:"_cloneInto",value:function(e){const{buffer:t,length:r,finished:n,destroyed:i,outputLen:o,pos:a}=this;return e||(e=new this.constructor({dkLen:o})),e.set(...this.get()),e.length=r,e.finished=n,e.destroyed=i,e.outputLen=o,e.buffer.set(t),e.pos=a,e}}]),l}(f.Hash);t.BLAKE2=l},65509:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.SHA2=void 0;const c=r(75469),f=r(91720);let l=function(e){(0,a.default)(l,e);var t,r,n=(t=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function l(e,t,r,o){var a;return(0,i.default)(this,l),(a=n.call(this)).blockLen=e,a.outputLen=t,a.padOffset=r,a.isLE=o,a.finished=!1,a.length=0,a.pos=0,a.destroyed=!1,a.buffer=new Uint8Array(e),a.view=(0,f.createView)(a.buffer),a}return(0,o.default)(l,[{key:"update",value:function(e){c.default.exists(this);const{view:t,buffer:r,blockLen:n}=this,i=(e=(0,f.toBytes)(e)).length;for(let o=0;o<i;){const a=Math.min(n-this.pos,i-o);if(a!==n)r.set(e.subarray(o,o+a),this.pos),this.pos+=a,o+=a,this.pos===n&&(this.process(t,0),this.pos=0);else{const t=(0,f.createView)(e);for(;n<=i-o;o+=n)this.process(t,o)}}return this.length+=e.length,this.roundClean(),this}},{key:"digestInto",value:function(e){c.default.exists(this),c.default.output(e,this),this.finished=!0;const{buffer:t,view:r,blockLen:n,isLE:i}=this;let{pos:o}=this;t[o++]=128,this.buffer.subarray(o).fill(0),this.padOffset>n-o&&(this.process(r,0),o=0);for(let e=o;e<n;e++)t[e]=0;!function(e,t,r,n){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,r,n);const i=BigInt(32),o=BigInt(4294967295),a=Number(r>>i&o),s=Number(r&o),u=n?4:0,c=n?0:4;e.setUint32(t+u,a,n),e.setUint32(t+c,s,n)}(r,n-8,BigInt(8*this.length),i),this.process(r,0);const a=(0,f.createView)(e),s=this.outputLen;if(s%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=s/4,l=this.get();if(u>l.length)throw new Error("_sha2: outputLen bigger than state");for(let e=0;e<u;e++)a.setUint32(4*e,l[e],i)}},{key:"digest",value:function(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const r=e.slice(0,t);return this.destroy(),r}},{key:"_cloneInto",value:function(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:t,buffer:r,length:n,finished:i,destroyed:o,pos:a}=this;return e.length=n,e.pos=a,e.finished=i,e.destroyed=o,n%t&&e.buffer.set(r),e}}]),l}(f.Hash);t.SHA2=l},33628:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.add=t.toBig=t.split=t.fromBig=void 0;const r=BigInt(2**32-1),n=BigInt(32);function i(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?{h:Number(e&r),l:Number(e>>n&r)}:{h:0|Number(e>>n&r),l:0|Number(e&r)}}function o(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let o=0;o<e.length;o++){const{h:a,l:s}=i(e[o],t);[r[o],n[o]]=[a,s]}return[r,n]}function a(e,t,r,n){const i=(t>>>0)+(n>>>0);return{h:e+r+(i/2**32|0)|0,l:0|i}}t.fromBig=i,t.split=o,t.toBig=(e,t)=>BigInt(e>>>0)<<n|BigInt(t>>>0),t.add=a;const s={fromBig:i,split:o,toBig:t.toBig,shrSH:(e,t,r)=>e>>>r,shrSL:(e,t,r)=>e<<32-r|t>>>r,rotrSH:(e,t,r)=>e>>>r|t<<32-r,rotrSL:(e,t,r)=>e<<32-r|t>>>r,rotrBH:(e,t,r)=>e<<64-r|t>>>r-32,rotrBL:(e,t,r)=>e>>>r-32|t<<64-r,rotr32H:(e,t)=>t,rotr32L:(e,t)=>e,rotlSH:(e,t,r)=>e<<r|t>>>32-r,rotlSL:(e,t,r)=>t<<r|e>>>32-r,rotlBH:(e,t,r)=>t<<r-32|e>>>64-r,rotlBL:(e,t,r)=>e<<r-32|t>>>64-r,add:a,add3L:(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),add3H:(e,t,r,n)=>t+r+n+(e/2**32|0)|0,add4L:(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),add4H:(e,t,r,n,i)=>t+r+n+i+(e/2**32|0)|0,add5H:(e,t,r,n,i,o)=>t+r+n+i+o+(e/2**32|0)|0,add5L:(e,t,r,n,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(i>>>0)};t.default=s},30572:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.blake2b=void 0;const c=r(96908),f=r(33628),l=r(91720),d=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),h=new Uint32Array(32);function p(e,t,r,n,i,o){const a=i[o],s=i[o+1];let u=h[2*e],c=h[2*e+1],l=h[2*t],d=h[2*t+1],p=h[2*r],b=h[2*r+1],y=h[2*n],g=h[2*n+1],m=f.default.add3L(u,l,a);c=f.default.add3H(m,c,d,s),u=0|m,({Dh:g,Dl:y}={Dh:g^c,Dl:y^u}),({Dh:g,Dl:y}={Dh:f.default.rotr32H(g,y),Dl:f.default.rotr32L(g,y)}),({h:b,l:p}=f.default.add(b,p,g,y)),({Bh:d,Bl:l}={Bh:d^b,Bl:l^p}),({Bh:d,Bl:l}={Bh:f.default.rotrSH(d,l,24),Bl:f.default.rotrSL(d,l,24)}),h[2*e]=u,h[2*e+1]=c,h[2*t]=l,h[2*t+1]=d,h[2*r]=p,h[2*r+1]=b,h[2*n]=y,h[2*n+1]=g}function b(e,t,r,n,i,o){const a=i[o],s=i[o+1];let u=h[2*e],c=h[2*e+1],l=h[2*t],d=h[2*t+1],p=h[2*r],b=h[2*r+1],y=h[2*n],g=h[2*n+1],m=f.default.add3L(u,l,a);c=f.default.add3H(m,c,d,s),u=0|m,({Dh:g,Dl:y}={Dh:g^c,Dl:y^u}),({Dh:g,Dl:y}={Dh:f.default.rotrSH(g,y,16),Dl:f.default.rotrSL(g,y,16)}),({h:b,l:p}=f.default.add(b,p,g,y)),({Bh:d,Bl:l}={Bh:d^b,Bl:l^p}),({Bh:d,Bl:l}={Bh:f.default.rotrBH(d,l,63),Bl:f.default.rotrBL(d,l,63)}),h[2*e]=u,h[2*e+1]=c,h[2*t]=l,h[2*t+1]=d,h[2*r]=p,h[2*r+1]=b,h[2*n]=y,h[2*n+1]=g}let y=function(e){(0,a.default)(y,e);var t,r,n=(t=y,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function y(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,i.default)(this,y),(e=n.call(this,128,void 0===t.dkLen?64:t.dkLen,t,64,16,16)).v0l=0|d[0],e.v0h=0|d[1],e.v1l=0|d[2],e.v1h=0|d[3],e.v2l=0|d[4],e.v2h=0|d[5],e.v3l=0|d[6],e.v3h=0|d[7],e.v4l=0|d[8],e.v4h=0|d[9],e.v5l=0|d[10],e.v5h=0|d[11],e.v6l=0|d[12],e.v6h=0|d[13],e.v7l=0|d[14],e.v7h=0|d[15];const r=t.key?t.key.length:0;if(e.v0l^=e.outputLen|r<<8|65536|1<<24,t.salt){const r=(0,l.u32)((0,l.toBytes)(t.salt));e.v4l^=r[0],e.v4h^=r[1],e.v5l^=r[2],e.v5h^=r[3]}if(t.personalization){const r=(0,l.u32)((0,l.toBytes)(t.personalization));e.v6l^=r[0],e.v6h^=r[1],e.v7l^=r[2],e.v7h^=r[3]}if(t.key){const r=new Uint8Array(e.blockLen);r.set((0,l.toBytes)(t.key)),e.update(r)}return e}return(0,o.default)(y,[{key:"get",value:function(){let{v0l:e,v0h:t,v1l:r,v1h:n,v2l:i,v2h:o,v3l:a,v3h:s,v4l:u,v4h:c,v5l:f,v5h:l,v6l:d,v6h:h,v7l:p,v7h:b}=this;return[e,t,r,n,i,o,a,s,u,c,f,l,d,h,p,b]}},{key:"set",value:function(e,t,r,n,i,o,a,s,u,c,f,l,d,h,p,b){this.v0l=0|e,this.v0h=0|t,this.v1l=0|r,this.v1h=0|n,this.v2l=0|i,this.v2h=0|o,this.v3l=0|a,this.v3h=0|s,this.v4l=0|u,this.v4h=0|c,this.v5l=0|f,this.v5h=0|l,this.v6l=0|d,this.v6h=0|h,this.v7l=0|p,this.v7h=0|b}},{key:"compress",value:function(e,t,r){this.get().forEach(((e,t)=>h[t]=e)),h.set(d,16);let{h:n,l:i}=f.default.fromBig(BigInt(this.length));h[24]=d[8]^i,h[25]=d[9]^n,r&&(h[28]=~h[28],h[29]=~h[29]);let o=0;const a=c.SIGMA;for(let r=0;r<12;r++)p(0,4,8,12,e,t+2*a[o++]),b(0,4,8,12,e,t+2*a[o++]),p(1,5,9,13,e,t+2*a[o++]),b(1,5,9,13,e,t+2*a[o++]),p(2,6,10,14,e,t+2*a[o++]),b(2,6,10,14,e,t+2*a[o++]),p(3,7,11,15,e,t+2*a[o++]),b(3,7,11,15,e,t+2*a[o++]),p(0,5,10,15,e,t+2*a[o++]),b(0,5,10,15,e,t+2*a[o++]),p(1,6,11,12,e,t+2*a[o++]),b(1,6,11,12,e,t+2*a[o++]),p(2,7,8,13,e,t+2*a[o++]),b(2,7,8,13,e,t+2*a[o++]),p(3,4,9,14,e,t+2*a[o++]),b(3,4,9,14,e,t+2*a[o++]);this.v0l^=h[0]^h[16],this.v0h^=h[1]^h[17],this.v1l^=h[2]^h[18],this.v1h^=h[3]^h[19],this.v2l^=h[4]^h[20],this.v2h^=h[5]^h[21],this.v3l^=h[6]^h[22],this.v3h^=h[7]^h[23],this.v4l^=h[8]^h[24],this.v4h^=h[9]^h[25],this.v5l^=h[10]^h[26],this.v5h^=h[11]^h[27],this.v6l^=h[12]^h[28],this.v6h^=h[13]^h[29],this.v7l^=h[14]^h[30],this.v7h^=h[15]^h[31],h.fill(0)}},{key:"destroy",value:function(){this.destroyed=!0,this.buffer32.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}]),y}(c.BLAKE2);t.blake2b=(0,l.wrapConstructorWithOpts)((e=>new y(e)))},43333:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto={node:void 0,web:"object"==typeof self&&"crypto"in self?self.crypto:void 0}},50708:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=void 0;const c=r(75469),f=r(91720);let l=function(e){(0,a.default)(l,e);var t,r,n=(t=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function l(e,t){var r;(0,i.default)(this,l),(r=n.call(this)).finished=!1,r.destroyed=!1,c.default.hash(e);const o=(0,f.toBytes)(t);if(r.iHash=e.create(),"function"!=typeof r.iHash.update)throw new TypeError("Expected instance of class which extends utils.Hash");r.blockLen=r.iHash.blockLen,r.outputLen=r.iHash.outputLen;const a=r.blockLen,s=new Uint8Array(a);s.set(o.length>a?e.create().update(o).digest():o);for(let e=0;e<s.length;e++)s[e]^=54;r.iHash.update(s),r.oHash=e.create();for(let e=0;e<s.length;e++)s[e]^=106;return r.oHash.update(s),s.fill(0),r}return(0,o.default)(l,[{key:"update",value:function(e){return c.default.exists(this),this.iHash.update(e),this}},{key:"digestInto",value:function(e){c.default.exists(this),c.default.bytes(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}},{key:"digest",value:function(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}},{key:"_cloneInto",value:function(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:t,iHash:r,finished:n,destroyed:i,blockLen:o,outputLen:a}=this;return e.finished=n,e.destroyed=i,e.blockLen=o,e.outputLen=a,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}},{key:"destroy",value:function(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}]),l}(f.Hash);t.hmac=(e,t,r)=>new l(e,t).update(r).digest(),t.hmac.create=(e,t)=>new l(e,t)},7169:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pbkdf2Async=t.pbkdf2=void 0;const n=r(75469),i=r(50708),o=r(91720);function a(e,t,r,a){n.default.hash(e);const s=(0,o.checkOpts)({dkLen:32,asyncTick:10},a),{c:u,dkLen:c,asyncTick:f}=s;if(n.default.number(u),n.default.number(c),n.default.number(f),u<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const l=(0,o.toBytes)(t),d=(0,o.toBytes)(r),h=new Uint8Array(c),p=i.hmac.create(e,l),b=p._cloneInto().update(d);return{c:u,dkLen:c,asyncTick:f,DK:h,PRF:p,PRFSalt:b}}function s(e,t,r,n,i){return e.destroy(),t.destroy(),n&&n.destroy(),i.fill(0),r}t.pbkdf2=function(e,t,r,n){const{c:i,dkLen:u,DK:c,PRF:f,PRFSalt:l}=a(e,t,r,n);let d;const h=new Uint8Array(4),p=(0,o.createView)(h),b=new Uint8Array(f.outputLen);for(let e=1,t=0;t<u;e++,t+=f.outputLen){const r=c.subarray(t,t+f.outputLen);p.setInt32(0,e,!1),(d=l._cloneInto(d)).update(h).digestInto(b),r.set(b.subarray(0,r.length));for(let e=1;e<i;e++){f._cloneInto(d).update(b).digestInto(b);for(let e=0;e<r.length;e++)r[e]^=b[e]}}return s(f,l,c,d,b)},t.pbkdf2Async=async function(e,t,r,n){const{c:i,dkLen:u,asyncTick:c,DK:f,PRF:l,PRFSalt:d}=a(e,t,r,n);let h;const p=new Uint8Array(4),b=(0,o.createView)(p),y=new Uint8Array(l.outputLen);for(let e=1,t=0;t<u;e++,t+=l.outputLen){const r=f.subarray(t,t+l.outputLen);b.setInt32(0,e,!1),(h=d._cloneInto(h)).update(p).digestInto(y),r.set(y.subarray(0,r.length)),await(0,o.asyncLoop)(i-1,c,(e=>{l._cloneInto(h).update(y).digestInto(y);for(let e=0;e<r.length;e++)r[e]^=y[e]}))}return s(l,d,f,h,y)}},58851:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scryptAsync=t.scrypt=void 0;const n=r(75469),i=r(41712),o=r(7169),a=r(91720),s=(e,t)=>e<<t|e>>>32-t;function u(e,t,r,n,i,o){let a=e[t++]^r[n++],u=e[t++]^r[n++],c=e[t++]^r[n++],f=e[t++]^r[n++],l=e[t++]^r[n++],d=e[t++]^r[n++],h=e[t++]^r[n++],p=e[t++]^r[n++],b=e[t++]^r[n++],y=e[t++]^r[n++],g=e[t++]^r[n++],m=e[t++]^r[n++],v=e[t++]^r[n++],w=e[t++]^r[n++],_=e[t++]^r[n++],x=e[t++]^r[n++],O=a,k=u,P=c,S=f,A=l,E=d,M=h,j=p,T=b,B=y,I=g,N=m,R=v,C=w,U=_,L=x;for(let e=0;e<8;e+=2)A^=s(O+R|0,7),T^=s(A+O|0,9),R^=s(T+A|0,13),O^=s(R+T|0,18),B^=s(E+k|0,7),C^=s(B+E|0,9),k^=s(C+B|0,13),E^=s(k+C|0,18),U^=s(I+M|0,7),P^=s(U+I|0,9),M^=s(P+U|0,13),I^=s(M+P|0,18),S^=s(L+N|0,7),j^=s(S+L|0,9),N^=s(j+S|0,13),L^=s(N+j|0,18),k^=s(O+S|0,7),P^=s(k+O|0,9),S^=s(P+k|0,13),O^=s(S+P|0,18),M^=s(E+A|0,7),j^=s(M+E|0,9),A^=s(j+M|0,13),E^=s(A+j|0,18),N^=s(I+B|0,7),T^=s(N+I|0,9),B^=s(T+N|0,13),I^=s(B+T|0,18),R^=s(L+U|0,7),C^=s(R+L|0,9),U^=s(C+R|0,13),L^=s(U+C|0,18);i[o++]=a+O|0,i[o++]=u+k|0,i[o++]=c+P|0,i[o++]=f+S|0,i[o++]=l+A|0,i[o++]=d+E|0,i[o++]=h+M|0,i[o++]=p+j|0,i[o++]=b+T|0,i[o++]=y+B|0,i[o++]=g+I|0,i[o++]=m+N|0,i[o++]=v+R|0,i[o++]=w+C|0,i[o++]=_+U|0,i[o++]=x+L|0}function c(e,t,r,n,i){let o=n+0,a=n+16*i;for(let n=0;n<16;n++)r[a+n]=e[t+16*(2*i-1)+n];for(let n=0;n<i;n++,o+=16,t+=16)u(r,a,e,t,r,o),n>0&&(a+=16),u(r,o,e,t+=16,r,a)}function f(e,t,r){const s=(0,a.checkOpts)({dkLen:32,asyncTick:10,maxmem:1073742848},r),{N:u,r:c,p:f,dkLen:l,asyncTick:d,maxmem:h,onProgress:p}=s;if(n.default.number(u),n.default.number(c),n.default.number(f),n.default.number(l),n.default.number(d),n.default.number(h),void 0!==p&&"function"!=typeof p)throw new Error("progressCb should be function");const b=128*c,y=b/4;if(u<=1||0!=(u&u-1)||u>=2**(b/8)||u>2**32)throw new Error("Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32");if(f<0||f>137438953440/b)throw new Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(l<0||l>137438953440)throw new Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");const g=b*(u+f);if(g>h)throw new Error(`Scrypt: parameters too large, ${g} (128 * r * (N + p)) > ${h} (maxmem)`);const m=(0,o.pbkdf2)(i.sha256,e,t,{c:1,dkLen:b*f}),v=(0,a.u32)(m),w=(0,a.u32)(new Uint8Array(b*u)),_=(0,a.u32)(new Uint8Array(b));let x=()=>{};if(p){const e=2*u*f,t=Math.max(Math.floor(e/1e4),1);let r=0;x=()=>{r++,!p||r%t&&r!==e||p(r/e)}}return{N:u,r:c,p:f,dkLen:l,blockSize32:y,V:w,B32:v,B:m,tmp:_,blockMixCb:x,asyncTick:d}}function l(e,t,r,n,a){const s=(0,o.pbkdf2)(i.sha256,e,r,{c:1,dkLen:t});return r.fill(0),n.fill(0),a.fill(0),s}t.scrypt=function(e,t,r){const{N:n,r:i,p:o,dkLen:a,blockSize32:s,V:u,B32:d,B:h,tmp:p,blockMixCb:b}=f(e,t,r);for(let e=0;e<o;e++){const t=s*e;for(let e=0;e<s;e++)u[e]=d[t+e];for(let e=0,t=0;e<n-1;e++)c(u,t,u,t+=s,i),b();c(u,(n-1)*s,d,t,i),b();for(let e=0;e<n;e++){const e=d[t+s-16]%n;for(let r=0;r<s;r++)p[r]=d[t+r]^u[e*s+r];c(p,0,d,t,i),b()}}return l(e,a,h,u,p)},t.scryptAsync=async function(e,t,r){const{N:n,r:i,p:o,dkLen:s,blockSize32:u,V:d,B32:h,B:p,tmp:b,blockMixCb:y,asyncTick:g}=f(e,t,r);for(let e=0;e<o;e++){const t=u*e;for(let e=0;e<u;e++)d[e]=h[t+e];let r=0;await(0,a.asyncLoop)(n-1,g,(e=>{c(d,r,d,r+=u,i),y()})),c(d,(n-1)*u,h,t,i),y(),await(0,a.asyncLoop)(n,g,(e=>{const r=h[t+u-16]%n;for(let e=0;e<u;e++)b[e]=h[t+e]^d[r*u+e];c(b,0,h,t,i),y()}))}return l(e,s,p,d,b)}},41712:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,u.default)(e);if(t){var i=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.sha224=t.sha256=void 0;const f=r(65509),l=r(91720),d=(e,t,r)=>e&t^e&r^t&r,h=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),p=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),b=new Uint32Array(64);let y=function(e){(0,a.default)(r,e);var t=c(r);function r(){var e;return(0,i.default)(this,r),(e=t.call(this,64,32,8,!1)).A=0|p[0],e.B=0|p[1],e.C=0|p[2],e.D=0|p[3],e.E=0|p[4],e.F=0|p[5],e.G=0|p[6],e.H=0|p[7],e}return(0,o.default)(r,[{key:"get",value:function(){const{A:e,B:t,C:r,D:n,E:i,F:o,G:a,H:s}=this;return[e,t,r,n,i,o,a,s]}},{key:"set",value:function(e,t,r,n,i,o,a,s){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|i,this.F=0|o,this.G=0|a,this.H=0|s}},{key:"process",value:function(e,t){for(let r=0;r<16;r++,t+=4)b[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){const t=b[e-15],r=b[e-2],n=(0,l.rotr)(t,7)^(0,l.rotr)(t,18)^t>>>3,i=(0,l.rotr)(r,17)^(0,l.rotr)(r,19)^r>>>10;b[e]=i+b[e-7]+n+b[e-16]|0}let{A:r,B:n,C:i,D:o,E:a,F:s,G:u,H:c}=this;for(let e=0;e<64;e++){const t=c+((0,l.rotr)(a,6)^(0,l.rotr)(a,11)^(0,l.rotr)(a,25))+((f=a)&s^~f&u)+h[e]+b[e]|0,p=((0,l.rotr)(r,2)^(0,l.rotr)(r,13)^(0,l.rotr)(r,22))+d(r,n,i)|0;c=u,u=s,s=a,a=o+t|0,o=i,i=n,n=r,r=t+p|0}var f;r=r+this.A|0,n=n+this.B|0,i=i+this.C|0,o=o+this.D|0,a=a+this.E|0,s=s+this.F|0,u=u+this.G|0,c=c+this.H|0,this.set(r,n,i,o,a,s,u,c)}},{key:"roundClean",value:function(){b.fill(0)}},{key:"destroy",value:function(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}]),r}(f.SHA2),g=function(e){(0,a.default)(r,e);var t=c(r);function r(){var e;return(0,i.default)(this,r),(e=t.call(this)).A=-1056596264,e.B=914150663,e.C=812702999,e.D=-150054599,e.E=-4191439,e.F=1750603025,e.G=1694076839,e.H=-1090891868,e.outputLen=28,e}return(0,o.default)(r)}(y);t.sha256=(0,l.wrapConstructor)((()=>new y)),t.sha224=(0,l.wrapConstructor)((()=>new g))},57661:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.shake256=t.shake128=t.keccak_512=t.keccak_384=t.keccak_256=t.keccak_224=t.sha3_512=t.sha3_384=t.sha3_256=t.sha3_224=t.Keccak=t.keccakP=void 0;const c=r(75469),f=r(33628),l=r(91720),[d,h,p]=[[],[],[]],b=BigInt(0),y=BigInt(1),g=BigInt(2),m=BigInt(7),v=BigInt(256),w=BigInt(113);for(let e=0,t=y,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],d.push(2*(5*n+r)),h.push((e+1)*(e+2)/2%64);let i=b;for(let e=0;e<7;e++)t=(t<<y^(t>>m)*w)%v,t&g&&(i^=y<<(y<<BigInt(e))-y);p.push(i)}const[_,x]=f.default.split(p,!0),O=(e,t,r)=>r>32?f.default.rotlBH(e,t,r):f.default.rotlSH(e,t,r),k=(e,t,r)=>r>32?f.default.rotlBL(e,t,r):f.default.rotlSL(e,t,r);function P(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24;const r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){const n=(t+8)%10,i=(t+2)%10,o=r[i],a=r[i+1],s=O(o,a,1)^r[n],u=k(o,a,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=s,e[t+r+1]^=u}let t=e[2],i=e[3];for(let r=0;r<24;r++){const n=h[r],o=O(t,i,n),a=k(t,i,n),s=d[r];t=e[s],i=e[s+1],e[s]=o,e[s+1]=a}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)r[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~r[(n+2)%10]&r[(n+4)%10]}e[0]^=_[n],e[1]^=x[n]}r.fill(0)}t.keccakP=P;let S=function(e){(0,a.default)(f,e);var t,r,n=(t=f,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function f(e,t,r){var o;let a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:24;if((0,i.default)(this,f),(o=n.call(this)).blockLen=e,o.suffix=t,o.outputLen=r,o.enableXOF=a,o.rounds=s,o.pos=0,o.posOut=0,o.finished=!1,o.destroyed=!1,c.default.number(r),0>=o.blockLen||o.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");return o.state=new Uint8Array(200),o.state32=(0,l.u32)(o.state),o}return(0,o.default)(f,[{key:"keccak",value:function(){P(this.state32,this.rounds),this.posOut=0,this.pos=0}},{key:"update",value:function(e){c.default.exists(this);const{blockLen:t,state:r}=this,n=(e=(0,l.toBytes)(e)).length;for(let i=0;i<n;){const o=Math.min(t-this.pos,n-i);for(let t=0;t<o;t++)r[this.pos++]^=e[i++];this.pos===t&&this.keccak()}return this}},{key:"finish",value:function(){if(this.finished)return;this.finished=!0;const{state:e,suffix:t,pos:r,blockLen:n}=this;e[r]^=t,0!=(128&t)&&r===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}},{key:"writeInto",value:function(e){c.default.exists(this,!1),c.default.bytes(e),this.finish();const t=this.state,{blockLen:r}=this;for(let n=0,i=e.length;n<i;){this.posOut>=r&&this.keccak();const o=Math.min(r-this.posOut,i-n);e.set(t.subarray(this.posOut,this.posOut+o),n),this.posOut+=o,n+=o}return e}},{key:"xofInto",value:function(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}},{key:"xof",value:function(e){return c.default.number(e),this.xofInto(new Uint8Array(e))}},{key:"digestInto",value:function(e){if(c.default.output(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}},{key:"digest",value:function(){return this.digestInto(new Uint8Array(this.outputLen))}},{key:"destroy",value:function(){this.destroyed=!0,this.state.fill(0)}},{key:"_cloneInto",value:function(e){const{blockLen:t,suffix:r,outputLen:n,rounds:i,enableXOF:o}=this;return e||(e=new f(t,r,n,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=n,e.enableXOF=o,e.destroyed=this.destroyed,e}}]),f}(l.Hash);t.Keccak=S;const A=(e,t,r)=>(0,l.wrapConstructor)((()=>new S(t,e,r)));t.sha3_224=A(6,144,28),t.sha3_256=A(6,136,32),t.sha3_384=A(6,104,48),t.sha3_512=A(6,72,64),t.keccak_224=A(1,144,28),t.keccak_256=A(1,136,32),t.keccak_384=A(1,104,48),t.keccak_512=A(1,72,64);const E=(e,t,r)=>(0,l.wrapConstructorWithOpts)((function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new S(t,e,void 0===n.dkLen?r:n.dkLen,!0)}));t.shake128=E(31,168,16),t.shake256=E(31,136,32)},50416:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,u.default)(e);if(t){var i=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.sha384=t.sha512_256=t.sha512_224=t.sha512=t.SHA512=void 0;const f=r(65509),l=r(33628),d=r(91720),[h,p]=l.default.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map((e=>BigInt(e)))),b=new Uint32Array(80),y=new Uint32Array(80);let g=function(e){(0,a.default)(r,e);var t=c(r);function r(){var e;return(0,i.default)(this,r),(e=t.call(this,128,64,16,!1)).Ah=1779033703,e.Al=-205731576,e.Bh=-1150833019,e.Bl=-2067093701,e.Ch=1013904242,e.Cl=-23791573,e.Dh=-1521486534,e.Dl=1595750129,e.Eh=1359893119,e.El=-1377402159,e.Fh=-1694144372,e.Fl=725511199,e.Gh=528734635,e.Gl=-79577749,e.Hh=1541459225,e.Hl=327033209,e}return(0,o.default)(r,[{key:"get",value:function(){const{Ah:e,Al:t,Bh:r,Bl:n,Ch:i,Cl:o,Dh:a,Dl:s,Eh:u,El:c,Fh:f,Fl:l,Gh:d,Gl:h,Hh:p,Hl:b}=this;return[e,t,r,n,i,o,a,s,u,c,f,l,d,h,p,b]}},{key:"set",value:function(e,t,r,n,i,o,a,s,u,c,f,l,d,h,p,b){this.Ah=0|e,this.Al=0|t,this.Bh=0|r,this.Bl=0|n,this.Ch=0|i,this.Cl=0|o,this.Dh=0|a,this.Dl=0|s,this.Eh=0|u,this.El=0|c,this.Fh=0|f,this.Fl=0|l,this.Gh=0|d,this.Gl=0|h,this.Hh=0|p,this.Hl=0|b}},{key:"process",value:function(e,t){for(let r=0;r<16;r++,t+=4)b[r]=e.getUint32(t),y[r]=e.getUint32(t+=4);for(let e=16;e<80;e++){const t=0|b[e-15],r=0|y[e-15],n=l.default.rotrSH(t,r,1)^l.default.rotrSH(t,r,8)^l.default.shrSH(t,r,7),i=l.default.rotrSL(t,r,1)^l.default.rotrSL(t,r,8)^l.default.shrSL(t,r,7),o=0|b[e-2],a=0|y[e-2],s=l.default.rotrSH(o,a,19)^l.default.rotrBH(o,a,61)^l.default.shrSH(o,a,6),u=l.default.rotrSL(o,a,19)^l.default.rotrBL(o,a,61)^l.default.shrSL(o,a,6),c=l.default.add4L(i,u,y[e-7],y[e-16]),f=l.default.add4H(c,n,s,b[e-7],b[e-16]);b[e]=0|f,y[e]=0|c}let{Ah:r,Al:n,Bh:i,Bl:o,Ch:a,Cl:s,Dh:u,Dl:c,Eh:f,El:d,Fh:g,Fl:m,Gh:v,Gl:w,Hh:_,Hl:x}=this;for(let e=0;e<80;e++){const t=l.default.rotrSH(f,d,14)^l.default.rotrSH(f,d,18)^l.default.rotrBH(f,d,41),O=l.default.rotrSL(f,d,14)^l.default.rotrSL(f,d,18)^l.default.rotrBL(f,d,41),k=f&g^~f&v,P=d&m^~d&w,S=l.default.add5L(x,O,P,p[e],y[e]),A=l.default.add5H(S,_,t,k,h[e],b[e]),E=0|S,M=l.default.rotrSH(r,n,28)^l.default.rotrBH(r,n,34)^l.default.rotrBH(r,n,39),j=l.default.rotrSL(r,n,28)^l.default.rotrBL(r,n,34)^l.default.rotrBL(r,n,39),T=r&i^r&a^i&a,B=n&o^n&s^o&s;_=0|v,x=0|w,v=0|g,w=0|m,g=0|f,m=0|d,({h:f,l:d}=l.default.add(0|u,0|c,0|A,0|E)),u=0|a,c=0|s,a=0|i,s=0|o,i=0|r,o=0|n;const I=l.default.add3L(E,j,B);r=l.default.add3H(I,A,M,T),n=0|I}({h:r,l:n}=l.default.add(0|this.Ah,0|this.Al,0|r,0|n)),({h:i,l:o}=l.default.add(0|this.Bh,0|this.Bl,0|i,0|o)),({h:a,l:s}=l.default.add(0|this.Ch,0|this.Cl,0|a,0|s)),({h:u,l:c}=l.default.add(0|this.Dh,0|this.Dl,0|u,0|c)),({h:f,l:d}=l.default.add(0|this.Eh,0|this.El,0|f,0|d)),({h:g,l:m}=l.default.add(0|this.Fh,0|this.Fl,0|g,0|m)),({h:v,l:w}=l.default.add(0|this.Gh,0|this.Gl,0|v,0|w)),({h:_,l:x}=l.default.add(0|this.Hh,0|this.Hl,0|_,0|x)),this.set(r,n,i,o,a,s,u,c,f,d,g,m,v,w,_,x)}},{key:"roundClean",value:function(){b.fill(0),y.fill(0)}},{key:"destroy",value:function(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}]),r}(f.SHA2);t.SHA512=g;let m=function(e){(0,a.default)(r,e);var t=c(r);function r(){var e;return(0,i.default)(this,r),(e=t.call(this)).Ah=-1942145080,e.Al=424955298,e.Bh=1944164710,e.Bl=-1982016298,e.Ch=502970286,e.Cl=855612546,e.Dh=1738396948,e.Dl=1479516111,e.Eh=258812777,e.El=2077511080,e.Fh=2011393907,e.Fl=79989058,e.Gh=1067287976,e.Gl=1780299464,e.Hh=286451373,e.Hl=-1848208735,e.outputLen=28,e}return(0,o.default)(r)}(g),v=function(e){(0,a.default)(r,e);var t=c(r);function r(){var e;return(0,i.default)(this,r),(e=t.call(this)).Ah=573645204,e.Al=-64227540,e.Bh=-1621794909,e.Bl=-934517566,e.Ch=596883563,e.Cl=1867755857,e.Dh=-1774684391,e.Dl=1497426621,e.Eh=-1775747358,e.El=-1467023389,e.Fh=-1101128155,e.Fl=1401305490,e.Gh=721525244,e.Gl=746961066,e.Hh=246885852,e.Hl=-2117784414,e.outputLen=32,e}return(0,o.default)(r)}(g),w=function(e){(0,a.default)(r,e);var t=c(r);function r(){var e;return(0,i.default)(this,r),(e=t.call(this)).Ah=-876896931,e.Al=-1056596264,e.Bh=1654270250,e.Bl=914150663,e.Ch=-1856437926,e.Cl=812702999,e.Dh=355462360,e.Dl=-150054599,e.Eh=1731405415,e.El=-4191439,e.Fh=-1900787065,e.Fl=1750603025,e.Gh=-619958771,e.Gl=1694076839,e.Hh=1203062813,e.Hl=-1090891868,e.outputLen=48,e}return(0,o.default)(r)}(g);t.sha512=(0,d.wrapConstructor)((()=>new g)),t.sha512_224=(0,d.wrapConstructor)((()=>new m)),t.sha512_256=(0,d.wrapConstructor)((()=>new v)),t.sha384=(0,d.wrapConstructor)((()=>new w))},91720:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728));Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.wrapConstructorWithOpts=t.wrapConstructor=t.checkOpts=t.Hash=t.concatBytes=t.toBytes=t.utf8ToBytes=t.asyncLoop=t.nextTick=t.hexToBytes=t.bytesToHex=t.isLE=t.rotr=t.createView=t.u32=t.u8=void 0;const a=r(43333);if(t.u8=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),t.u32=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),t.createView=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),t.rotr=(e,t)=>e<<32-t|e>>>t,t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],!t.isLE)throw new Error("Non little-endian hardware is not supported");const s=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function u(e){if("string"!=typeof e)throw new TypeError("utf8ToBytes expected string, got "+typeof e);return(new TextEncoder).encode(e)}function c(e){if("string"==typeof e&&(e=u(e)),!(e instanceof Uint8Array))throw new TypeError(`Expected input type is Uint8Array (got ${typeof e})`);return e}t.bytesToHex=function(e){if(!(e instanceof Uint8Array))throw new Error("Uint8Array expected");let t="";for(let r=0;r<e.length;r++)t+=s[e[r]];return t},t.hexToBytes=function(e){if("string"!=typeof e)throw new TypeError("hexToBytes: expected string, got "+typeof e);if(e.length%2)throw new Error("hexToBytes: received invalid unpadded hex");const t=new Uint8Array(e.length/2);for(let r=0;r<t.length;r++){const n=2*r,i=e.slice(n,n+2),o=Number.parseInt(i,16);if(Number.isNaN(o)||o<0)throw new Error("Invalid byte sequence");t[r]=o}return t},t.nextTick=async()=>{},t.asyncLoop=async function(e,r,n){let i=Date.now();for(let o=0;o<e;o++){n(o);const e=Date.now()-i;e>=0&&e<r||(await(0,t.nextTick)(),i+=e)}},t.utf8ToBytes=u,t.toBytes=c,t.concatBytes=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!t.every((e=>e instanceof Uint8Array)))throw new Error("Uint8Array list expected");if(1===t.length)return t[0];const n=t.reduce(((e,t)=>e+t.length),0),i=new Uint8Array(n);for(let e=0,r=0;e<t.length;e++){const n=t[e];i.set(n,r),r+=n.length}return i};let f=function(){function e(){(0,i.default)(this,e)}return(0,o.default)(e,[{key:"clone",value:function(){return this._cloneInto()}}]),e}();t.Hash=f,t.checkOpts=function(e,t){if(void 0!==t&&("object"!=typeof t||(r=t,"[object Object]"!==Object.prototype.toString.call(r)||r.constructor!==Object)))throw new TypeError("Options should be object or undefined");var r;return Object.assign(e,t)},t.wrapConstructor=function(e){const t=t=>e().update(c(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t},t.wrapConstructorWithOpts=function(e){const t=(t,r)=>e(r).update(c(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},t.randomBytes=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32;if(a.crypto.web)return a.crypto.web.getRandomValues(new Uint8Array(e));if(a.crypto.node)return new Uint8Array(a.crypto.node.randomBytes(e).buffer);throw new Error("The environment doesn't have randomBytes function")}},47041:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(38416)),o=n(r(89728)),a=n(r(56690)),s=n(r(61655)),u=n(r(94993)),c=n(r(73808)),f=n(r(33496));function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}Object.defineProperty(t,"__esModule",{value:!0}),t.utils=t.schnorr=t.verify=t.signSync=t.sign=t.getSharedSecret=t.recoverPublicKey=t.getPublicKey=t.Signature=t.Point=t.CURVE=void 0;const h=r(72082),p=BigInt(0),b=BigInt(1),y=BigInt(2),g=BigInt(3),m=BigInt(8),v=Object.freeze({a:p,b:BigInt(7),P:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:b,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee")});t.CURVE=v;const w=(e,t)=>(e+t/y)/t,_={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar(e){const{n:t}=v,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-b*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),o=r,a=BigInt("0x100000000000000000000000000000000"),s=w(o*e,t),u=w(-n*e,t);let c=Z(e-s*r-u*i,t),f=Z(-s*n-u*o,t);const l=c>a,d=f>a;if(l&&(c=t-c),d&&(f=t-f),c>a||f>a)throw new Error("splitScalarEndo: Endomorphism failed, k="+e);return{k1neg:l,k1:c,k2neg:d,k2:f}}},x=32,O=32,k=x+1,P=2*x+1;function S(e){const{a:t,b:r}=v,n=Z(e*e),i=Z(n*e);return Z(i+t*e+r)}const A=v.a===p;let E=function(e){(0,s.default)(i,e);var t,r,n=(t=i,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,c.default)(t);if(r){var i=(0,c.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,u.default)(this,e)});function i(e){return(0,a.default)(this,i),n.call(this,e)}return(0,o.default)(i)}((0,f.default)(Error));function M(e){if(!(e instanceof j))throw new TypeError("JacobianPoint expected")}let j=function(){function e(t,r,n){(0,a.default)(this,e),this.x=t,this.y=r,this.z=n}return(0,o.default)(e,[{key:"equals",value:function(e){M(e);const{x:t,y:r,z:n}=this,{x:i,y:o,z:a}=e,s=Z(n*n),u=Z(a*a),c=Z(t*u),f=Z(i*s),l=Z(Z(r*a)*u),d=Z(Z(o*n)*s);return c===f&&l===d}},{key:"negate",value:function(){return new e(this.x,Z(-this.y),this.z)}},{key:"double",value:function(){const{x:t,y:r,z:n}=this,i=Z(t*t),o=Z(r*r),a=Z(o*o),s=t+o,u=Z(y*(Z(s*s)-i-a)),c=Z(g*i),f=Z(c*c),l=Z(f-y*u);return new e(l,Z(c*(u-l)-m*a),Z(y*r*n))}},{key:"add",value:function(t){M(t);const{x:r,y:n,z:i}=this,{x:o,y:a,z:s}=t;if(o===p||a===p)return this;if(r===p||n===p)return t;const u=Z(i*i),c=Z(s*s),f=Z(r*c),l=Z(o*u),d=Z(Z(n*s)*c),h=Z(Z(a*i)*u),b=Z(l-f),g=Z(h-d);if(b===p)return g===p?this.double():e.ZERO;const m=Z(b*b),v=Z(b*m),w=Z(f*m),_=Z(g*g-v-y*w);return new e(_,Z(g*(w-_)-d*v),Z(i*s*b))}},{key:"subtract",value:function(e){return this.add(e.negate())}},{key:"multiplyUnsafe",value:function(t){const r=e.ZERO;if("bigint"==typeof t&&t===p)return r;let n=X(t);if(n===b)return this;if(!A){let e=r,t=this;for(;n>p;)n&b&&(e=e.add(t)),t=t.double(),n>>=b;return e}let{k1neg:i,k1:o,k2neg:a,k2:s}=_.splitScalar(n),u=r,c=r,f=this;for(;o>p||s>p;)o&b&&(u=u.add(f)),s&b&&(c=c.add(f)),f=f.double(),o>>=b,s>>=b;return i&&(u=u.negate()),a&&(c=c.negate()),c=new e(Z(c.x*_.beta),c.y,c.z),u.add(c)}},{key:"precomputeWindow",value:function(e){const t=A?128/e+1:256/e+1,r=[];let n=this,i=n;for(let o=0;o<t;o++){i=n,r.push(i);for(let t=1;t<2**(e-1);t++)i=i.add(n),r.push(i);n=i.double()}return r}},{key:"wNAF",value:function(t,r){!r&&this.equals(e.BASE)&&(r=I.BASE);const n=r&&r._WINDOW_SIZE||1;if(256%n)throw new Error("Point#wNAF: Invalid precomputation window, must be power of 2");let i=r&&B.get(r);i||(i=this.precomputeWindow(n),r&&1!==n&&(i=e.normalizeZ(i),B.set(r,i)));let o=e.ZERO,a=e.BASE;const s=1+(A?128/n:256/n),u=2**(n-1),c=BigInt(2**n-1),f=2**n,l=BigInt(n);for(let e=0;e<s;e++){const r=e*u;let n=Number(t&c);t>>=l,n>u&&(n-=f,t+=b);const s=r,d=r+Math.abs(n)-1,h=e%2!=0,p=n<0;0===n?a=a.add(T(h,i[s])):o=o.add(T(p,i[d]))}return{p:o,f:a}}},{key:"multiply",value:function(t,r){let n,i,o=X(t);if(A){const{k1neg:t,k1:a,k2neg:s,k2:u}=_.splitScalar(o);let{p:c,f}=this.wNAF(a,r),{p:l,f:d}=this.wNAF(u,r);c=T(t,c),l=T(s,l),l=new e(Z(l.x*_.beta),l.y,l.z),n=c.add(l),i=f.add(d)}else{const{p:e,f:t}=this.wNAF(o,r);n=e,i=t}return e.normalizeZ([n,i])[0]}},{key:"toAffine",value:function(t){const{x:r,y:n,z:i}=this,o=this.equals(e.ZERO);null==t&&(t=o?m:Y(i));const a=t,s=Z(a*a),u=Z(s*a),c=Z(r*s),f=Z(n*u),l=Z(i*a);if(o)return I.ZERO;if(l!==b)throw new Error("invZ was invalid");return new I(c,f)}}],[{key:"fromAffine",value:function(t){if(!(t instanceof I))throw new TypeError("JacobianPoint#fromAffine: expected Point");return t.equals(I.ZERO)?e.ZERO:new e(t.x,t.y,b)}},{key:"toAffineBatch",value:function(e){const t=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.P;const r=new Array(e.length),n=Y(e.reduce(((e,n,i)=>n===p?e:(r[i]=e,Z(e*n,t))),b),t);return e.reduceRight(((e,n,i)=>n===p?e:(r[i]=Z(e*r[i],t),Z(e*n,t))),n),r}(e.map((e=>e.z)));return e.map(((e,r)=>e.toAffine(t[r])))}},{key:"normalizeZ",value:function(t){return e.toAffineBatch(t).map(e.fromAffine)}}]),e}();function T(e,t){const r=t.negate();return e?r:t}j.BASE=new j(v.Gx,v.Gy,b),j.ZERO=new j(p,b,p);const B=new WeakMap;let I=function(){function e(t,r){(0,a.default)(this,e),this.x=t,this.y=r}return(0,o.default)(e,[{key:"_setWindowSize",value:function(e){this._WINDOW_SIZE=e,B.delete(this)}},{key:"hasEvenY",value:function(){return this.y%y===p}},{key:"toRawBytes",value:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return K(this.toHex(e))}},{key:"toHex",value:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=F(this.x);return e?`${this.hasEvenY()?"02":"03"}${t}`:`04${t}${F(this.y)}`}},{key:"toHexX",value:function(){return this.toHex(!0).slice(2)}},{key:"toRawX",value:function(){return this.toRawBytes(!0).slice(1)}},{key:"assertValidity",value:function(){const e="Point is not on elliptic curve",{x:t,y:r}=this;if(!ne(t)||!ne(r))throw new Error(e);const n=Z(r*r);if(Z(n-S(t))!==p)throw new Error(e)}},{key:"equals",value:function(e){return this.x===e.x&&this.y===e.y}},{key:"negate",value:function(){return new e(this.x,Z(-this.y))}},{key:"double",value:function(){return j.fromAffine(this).double().toAffine()}},{key:"add",value:function(e){return j.fromAffine(this).add(j.fromAffine(e)).toAffine()}},{key:"subtract",value:function(e){return this.add(e.negate())}},{key:"multiply",value:function(e){return j.fromAffine(this).multiply(e,this).toAffine()}},{key:"multiplyAndAddUnsafe",value:function(t,r,n){const i=j.fromAffine(this),o=r===p||r===b||this!==e.BASE?i.multiplyUnsafe(r):i.multiply(r),a=j.fromAffine(t).multiplyUnsafe(n),s=o.add(a);return s.equals(j.ZERO)?void 0:s.toAffine()}}],[{key:"fromCompressedHex",value:function(t){const r=32===t.length,n=W(r?t:t.subarray(1));if(!ne(n))throw new Error("Point is not on curve");let i=function(e){const{P:t}=v,r=BigInt(6),n=BigInt(11),i=BigInt(22),o=BigInt(23),a=BigInt(44),s=BigInt(88),u=e*e*e%t,c=u*u*e%t,f=J(c,g)*c%t,l=J(f,g)*c%t,d=J(l,y)*u%t,h=J(d,n)*d%t,p=J(h,i)*h%t,b=J(p,a)*p%t,m=J(b,s)*b%t,w=J(m,a)*p%t,_=J(w,g)*c%t,x=J(_,o)*h%t,O=J(x,r)*u%t,k=J(O,y);if(k*k%t!==e)throw new Error("Cannot find square root");return k}(S(n));const o=(i&b)===b;r?o&&(i=Z(-i)):1==(1&t[0])!==o&&(i=Z(-i));const a=new e(n,i);return a.assertValidity(),a}},{key:"fromUncompressedHex",value:function(t){const r=new e(W(t.subarray(1,x+1)),W(t.subarray(x+1,2*x+1)));return r.assertValidity(),r}},{key:"fromHex",value:function(e){const t=G(e),r=t.length,n=t[0];if(r===x)return this.fromCompressedHex(t);if(r===k&&(2===n||3===n))return this.fromCompressedHex(t);if(r===P&&4===n)return this.fromUncompressedHex(t);throw new Error(`Point.fromHex: received invalid point. Expected 32-${k} compressed bytes or ${P} uncompressed bytes, not ${r}`)}},{key:"fromPrivateKey",value:function(t){return e.BASE.multiply(oe(t))}},{key:"fromSignature",value:function(t,r,n){const{r:i,s:o}=se(r);if(![0,1,2,3].includes(n))throw new Error("Cannot recover: invalid recovery bit");const a=Q(G(t)),{n:s}=v,u=2===n||3===n?i+s:i,c=Y(u,s),f=Z(-a*c,s),l=Z(o*c,s),d=1&n?"03":"02",h=e.fromHex(d+F(u)),p=e.BASE.multiplyAndAddUnsafe(h,f,l);if(!p)throw new Error("Cannot recover signature: point at infinify");return p.assertValidity(),p}}]),e}();function N(e){return Number.parseInt(e[0],16)>=8?"00"+e:e}function R(e){if(e.length<2||2!==e[0])throw new Error(`Invalid signature integer tag: ${D(e)}`);const t=e[1],r=e.subarray(2,t+2);if(!t||r.length!==t)throw new Error("Invalid signature integer: wrong length");if(0===r[0]&&r[1]<=127)throw new Error("Invalid signature integer: trailing length");return{data:W(r),left:e.subarray(t+2)}}t.Point=I,I.BASE=new I(v.Gx,v.Gy),I.ZERO=new I(p,p);let C=function(){function e(t,r){(0,a.default)(this,e),this.r=t,this.s=r,this.assertValidity()}return(0,o.default)(e,[{key:"assertValidity",value:function(){const{r:e,s:t}=this;if(!re(e))throw new Error("Invalid Signature: r must be 0 < r < n");if(!re(t))throw new Error("Invalid Signature: s must be 0 < s < n")}},{key:"hasHighS",value:function(){const e=v.n>>b;return this.s>e}},{key:"normalizeS",value:function(){return this.hasHighS()?new e(this.r,Z(-this.s,v.n)):this}},{key:"toDERRawBytes",value:function(){return K(this.toDERHex())}},{key:"toDERHex",value:function(){const e=N(z(this.s)),t=N(z(this.r)),r=e.length/2,n=t.length/2,i=z(r),o=z(n);return`30${z(n+r+4)}02${o}${t}02${i}${e}`}},{key:"toRawBytes",value:function(){return this.toDERRawBytes()}},{key:"toHex",value:function(){return this.toDERHex()}},{key:"toCompactRawBytes",value:function(){return K(this.toCompactHex())}},{key:"toCompactHex",value:function(){return F(this.r)+F(this.s)}}],[{key:"fromCompact",value:function(t){const r=t instanceof Uint8Array,n="Signature.fromCompact";if("string"!=typeof t&&!r)throw new TypeError(`${n}: Expected string or Uint8Array`);const i=r?D(t):t;if(128!==i.length)throw new Error(`${n}: Expected 64-byte hex`);return new e(q(i.slice(0,64)),q(i.slice(64,128)))}},{key:"fromDER",value:function(t){const r=t instanceof Uint8Array;if("string"!=typeof t&&!r)throw new TypeError("Signature.fromDER: Expected string or Uint8Array");const{r:n,s:i}=function(e){if(e.length<2||48!=e[0])throw new Error(`Invalid signature tag: ${D(e)}`);if(e[1]!==e.length-2)throw new Error("Invalid signature: incorrect length");const{data:t,left:r}=R(e.subarray(2)),{data:n,left:i}=R(r);if(i.length)throw new Error(`Invalid signature: left bytes after parsing: ${D(i)}`);return{r:t,s:n}}(r?t:K(t));return new e(n,i)}},{key:"fromHex",value:function(e){return this.fromDER(e)}}]),e}();function U(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!t.every((e=>e instanceof Uint8Array)))throw new Error("Uint8Array list expected");if(1===t.length)return t[0];const n=t.reduce(((e,t)=>e+t.length),0),i=new Uint8Array(n);for(let e=0,r=0;e<t.length;e++){const n=t[e];i.set(n,r),r+=n.length}return i}t.Signature=C;const L=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function D(e){if(!(e instanceof Uint8Array))throw new Error("Expected Uint8Array");let t="";for(let r=0;r<e.length;r++)t+=L[e[r]];return t}const H=BigInt("0x10000000000000000000000000000000000000000000000000000000000000000");function F(e){if("bigint"!=typeof e)throw new Error("Expected bigint");if(!(p<=e&&e<H))throw new Error("Expected number 0 <= n < 2^256");return e.toString(16).padStart(64,"0")}function V(e){const t=K(F(e));if(32!==t.length)throw new Error("Error: expected 32 bytes");return t}function z(e){const t=e.toString(16);return 1&t.length?`0${t}`:t}function q(e){if("string"!=typeof e)throw new TypeError("hexToNumber: expected string, got "+typeof e);return BigInt(`0x${e}`)}function K(e){if("string"!=typeof e)throw new TypeError("hexToBytes: expected string, got "+typeof e);if(e.length%2)throw new Error("hexToBytes: received invalid unpadded hex"+e.length);const t=new Uint8Array(e.length/2);for(let r=0;r<t.length;r++){const n=2*r,i=e.slice(n,n+2),o=Number.parseInt(i,16);if(Number.isNaN(o)||o<0)throw new Error("Invalid byte sequence");t[r]=o}return t}function W(e){return q(D(e))}function G(e){return e instanceof Uint8Array?Uint8Array.from(e):K(e)}function X(e){if("number"==typeof e&&Number.isSafeInteger(e)&&e>0)return BigInt(e);if("bigint"==typeof e&&re(e))return e;throw new TypeError("Expected valid private scalar: 0 < scalar < curve.n")}function Z(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.P;const r=e%t;return r>=p?r:t+r}function J(e,t){const{P:r}=v;let n=e;for(;t-- >p;)n*=n,n%=r;return n}function Y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.P;if(e===p||t<=p)throw new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let r=Z(e,t),n=t,i=p,o=b,a=b,s=p;for(;r!==p;){const e=n/r,t=n%r,u=i-a*e,c=o-s*e;n=r,r=t,i=a,o=s,a=u,s=c}if(n!==b)throw new Error("invert: does not exist");return Z(i,t)}function Q(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=function(e){const t=8*e.length-8*O,r=W(e);return t>0?r>>BigInt(t):r}(e);if(t)return r;const{n}=v;return r>=n?r-n:r}let $,ee,te=function(){function e(t,r){if((0,a.default)(this,e),this.hashLen=t,this.qByteLen=r,"number"!=typeof t||t<2)throw new Error("hashLen must be a number");if("number"!=typeof r||r<2)throw new Error("qByteLen must be a number");this.v=new Uint8Array(t).fill(1),this.k=new Uint8Array(t).fill(0),this.counter=0}return(0,o.default)(e,[{key:"hmac",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.utils.hmacSha256(this.k,...r)}},{key:"hmacSync",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ee(this.k,...t)}},{key:"checkSync",value:function(){if("function"!=typeof ee)throw new E("hmacSha256Sync needs to be set")}},{key:"incr",value:function(){if(this.counter>=1e3)throw new Error("Tried 1,000 k values for sign(), all were invalid");this.counter+=1}},{key:"reseed",value:async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Uint8Array;this.k=await this.hmac(this.v,Uint8Array.from([0]),e),this.v=await this.hmac(this.v),0!==e.length&&(this.k=await this.hmac(this.v,Uint8Array.from([1]),e),this.v=await this.hmac(this.v))}},{key:"reseedSync",value:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Uint8Array;this.checkSync(),this.k=this.hmacSync(this.v,Uint8Array.from([0]),e),this.v=this.hmacSync(this.v),0!==e.length&&(this.k=this.hmacSync(this.v,Uint8Array.from([1]),e),this.v=this.hmacSync(this.v))}},{key:"generate",value:async function(){this.incr();let e=0;const t=[];for(;e<this.qByteLen;){this.v=await this.hmac(this.v);const r=this.v.slice();t.push(r),e+=this.v.length}return U(...t)}},{key:"generateSync",value:function(){this.checkSync(),this.incr();let e=0;const t=[];for(;e<this.qByteLen;){this.v=this.hmacSync(this.v);const r=this.v.slice();t.push(r),e+=this.v.length}return U(...t)}}]),e}();function re(e){return p<e&&e<v.n}function ne(e){return p<e&&e<v.P}function ie(e,t,r){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const{n:i}=v,o=Q(e,!0);if(!re(o))return;const a=Y(o,i),s=I.BASE.multiply(o),u=Z(s.x,i);if(u===p)return;const c=Z(a*Z(t+r*u,i),i);if(c===p)return;let f=new C(u,c),l=(s.x===f.r?0:2)|Number(s.y&b);return n&&f.hasHighS()&&(f=f.normalizeS(),l^=1),{sig:f,recovery:l}}function oe(e){let t;if("bigint"==typeof e)t=e;else if("number"==typeof e&&Number.isSafeInteger(e)&&e>0)t=BigInt(e);else if("string"==typeof e){if(e.length!==2*O)throw new Error("Expected 32 bytes of private key");t=q(e)}else{if(!(e instanceof Uint8Array))throw new TypeError("Expected valid private key");if(e.length!==O)throw new Error("Expected 32 bytes of private key");t=W(e)}if(!re(t))throw new Error("Expected private key: 0 < key < n");return t}function ae(e){return e instanceof I?(e.assertValidity(),e):I.fromHex(e)}function se(e){if(e instanceof C)return e.assertValidity(),e;try{return C.fromDER(e)}catch(t){return C.fromCompact(e)}}function ue(e){const t=e instanceof Uint8Array,r="string"==typeof e,n=(t||r)&&e.length;return t?n===k||n===P:r?n===2*k||n===2*P:e instanceof I}function ce(e){return W(e.length>x?e.slice(0,x):e)}function fe(e){const t=ce(e),r=Z(t,v.n);return le(r<p?t:r)}function le(e){return V(e)}function de(e,r,n){if(null==e)throw new Error(`sign: expected valid message hash, not "${e}"`);const i=G(e),o=oe(r),a=[le(o),fe(i)];if(null!=n){!0===n&&(n=t.utils.randomBytes(x));const e=G(n);if(e.length!==x)throw new Error(`sign: Expected ${x} bytes of extra data`);a.push(e)}return{seed:U(...a),m:ce(i),d:o}}function he(e,t){const{sig:r,recovery:n}=e,{der:i,recovered:o}=Object.assign({canonical:!0,der:!0},t),a=i?r.toDERRawBytes():r.toCompactRawBytes();return o?[a,n]:a}t.getPublicKey=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return I.fromPrivateKey(e).toRawBytes(t)},t.recoverPublicKey=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return I.fromSignature(e,t,r).toRawBytes(n)},t.getSharedSecret=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(ue(e))throw new TypeError("getSharedSecret: first arg must be private key");if(!ue(t))throw new TypeError("getSharedSecret: second arg must be public key");const n=ae(t);return n.assertValidity(),n.multiply(oe(e)).toRawBytes(r)},t.sign=async function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{seed:n,m:i,d:o}=de(e,t,r.extraEntropy),a=new te(32,O);let s;for(await a.reseed(n);!(s=ie(await a.generate(),i,o,r.canonical));)await a.reseed();return he(s,r)},t.signSync=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{seed:n,m:i,d:o}=de(e,t,r.extraEntropy),a=new te(32,O);let s;for(a.reseedSync(n);!(s=ie(a.generateSync(),i,o,r.canonical));)a.reseedSync();return he(s,r)};const pe={strict:!0};function be(e){return Z(W(e),v.n)}t.verify=function(e,t,r){let n,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:pe;try{n=se(e),t=G(t)}catch(e){return!1}const{r:o,s:a}=n;if(i.strict&&n.hasHighS())return!1;const s=Q(t);let u;try{u=ae(r)}catch(e){return!1}const{n:c}=v,f=Y(a,c),l=Z(s*f,c),d=Z(o*f,c),h=I.BASE.multiplyAndAddUnsafe(u,l,d);return!!h&&Z(h.x,c)===o};let ye=function(){function e(t,r){(0,a.default)(this,e),this.r=t,this.s=r,this.assertValidity()}return(0,o.default)(e,[{key:"assertValidity",value:function(){const{r:e,s:t}=this;if(!ne(e)||!re(t))throw new Error("Invalid signature")}},{key:"toHex",value:function(){return F(this.r)+F(this.s)}},{key:"toRawBytes",value:function(){return K(this.toHex())}}],[{key:"fromHex",value:function(t){const r=G(t);if(64!==r.length)throw new TypeError(`SchnorrSignature.fromHex: expected 64 bytes, not ${r.length}`);return new e(W(r.subarray(0,32)),W(r.subarray(32,64)))}}]),e}(),ge=function(){function e(r,n){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.utils.randomBytes();if((0,a.default)(this,e),null==r)throw new TypeError(`sign: Expected valid message, not "${r}"`);this.m=G(r);const{x:o,scalar:s}=this.getScalar(oe(n));if(this.px=o,this.d=s,this.rand=G(i),32!==this.rand.length)throw new TypeError("sign: Expected 32 bytes of aux randomness")}return(0,o.default)(e,[{key:"getScalar",value:function(e){const t=I.fromPrivateKey(e),r=t.hasEvenY()?e:v.n-e;return{point:t,scalar:r,x:t.toRawX()}}},{key:"initNonce",value:function(e,t){return V(e^W(t))}},{key:"finalizeNonce",value:function(e){const t=Z(W(e),v.n);if(t===p)throw new Error("sign: Creation of signature failed. k is zero");const{point:r,x:n,scalar:i}=this.getScalar(t);return{R:r,rx:n,k:i}}},{key:"finalizeSig",value:function(e,t,r,n){return new ye(e.x,Z(t+r*n,v.n)).toRawBytes()}},{key:"error",value:function(){throw new Error("sign: Invalid signature produced")}},{key:"calc",value:async function(){const{m:e,d:r,px:n,rand:i}=this,o=t.utils.taggedHash,a=this.initNonce(r,await o(Oe.aux,i)),{R:s,rx:u,k:c}=this.finalizeNonce(await o(Oe.nonce,a,n,e)),f=be(await o(Oe.challenge,u,n,e)),l=this.finalizeSig(s,c,f,r);return await we(l,e,n)||this.error(),l}},{key:"calcSync",value:function(){const{m:e,d:r,px:n,rand:i}=this,o=t.utils.taggedHashSync,a=this.initNonce(r,o(Oe.aux,i)),{R:s,rx:u,k:c}=this.finalizeNonce(o(Oe.nonce,a,n,e)),f=be(o(Oe.challenge,u,n,e)),l=this.finalizeSig(s,c,f,r);return _e(l,e,n)||this.error(),l}}]),e}();function me(e,t,r){const n=e instanceof ye,i=n?e:ye.fromHex(e);return n&&i.assertValidity(),d(d({},i),{},{m:G(t),P:ae(r)})}function ve(e,t,r,n){const i=I.BASE.multiplyAndAddUnsafe(t,oe(r),Z(-n,v.n));return!(!i||!i.hasEvenY()||i.x!==e)}async function we(e,r,n){try{const{r:i,s:o,m:a,P:s}=me(e,r,n),u=be(await t.utils.taggedHash(Oe.challenge,V(i),s.toRawX(),a));return ve(i,s,o,u)}catch(e){return!1}}function _e(e,r,n){try{const{r:i,s:o,m:a,P:s}=me(e,r,n),u=be(t.utils.taggedHashSync(Oe.challenge,V(i),s.toRawX(),a));return ve(i,s,o,u)}catch(e){if(e instanceof E)throw e;return!1}}t.schnorr={Signature:ye,getPublicKey:function(e){return I.fromPrivateKey(e).toRawX()},sign:async function(e,t,r){return new ge(e,t,r).calc()},verify:we,signSync:function(e,t,r){return new ge(e,t,r).calcSync()},verifySync:_e},I.BASE._setWindowSize(8);const xe={node:h,web:"object"==typeof self&&"crypto"in self?self.crypto:void 0},Oe={challenge:"BIP0340/challenge",aux:"BIP0340/aux",nonce:"BIP0340/nonce"},ke={};t.utils={bytesToHex:D,hexToBytes:K,concatBytes:U,mod:Z,invert:Y,isValidPrivateKey(e){try{return oe(e),!0}catch(e){return!1}},_bigintTo32Bytes:V,_normalizePrivateKey:oe,hashToPrivateKey:e=>{e=G(e);const t=O+8;if(e.length<t||e.length>1024)throw new Error("Expected valid bytes of private key as per FIPS 186");return V(Z(W(e),v.n-b)+b)},randomBytes:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32;if(xe.web)return xe.web.getRandomValues(new Uint8Array(e));if(xe.node){const{randomBytes:t}=xe.node;return Uint8Array.from(t(e))}throw new Error("The environment doesn't have randomBytes function")},randomPrivateKey:()=>t.utils.hashToPrivateKey(t.utils.randomBytes(O+8)),precompute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:I.BASE;const r=t===I.BASE?t:new I(t.x,t.y);return r._setWindowSize(e),r.multiply(g),r},sha256:async function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(xe.web){const e=await xe.web.subtle.digest("SHA-256",U(...t));return new Uint8Array(e)}if(xe.node){const{createHash:e}=xe.node,r=e("sha256");return t.forEach((e=>r.update(e))),Uint8Array.from(r.digest())}throw new Error("The environment doesn't have sha256 function")},hmacSha256:async function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(xe.web){const t=await xe.web.subtle.importKey("raw",e,{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign"]),n=U(...r),i=await xe.web.subtle.sign("HMAC",t,n);return new Uint8Array(i)}if(xe.node){const{createHmac:t}=xe.node,n=t("sha256",e);return r.forEach((e=>n.update(e))),Uint8Array.from(n.digest())}throw new Error("The environment doesn't have hmac-sha256 function")},sha256Sync:void 0,hmacSha256Sync:void 0,taggedHash:async function(e){let r=ke[e];if(void 0===r){const n=await t.utils.sha256(Uint8Array.from(e,(e=>e.charCodeAt(0))));r=U(n,n),ke[e]=r}for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return t.utils.sha256(r,...i)},taggedHashSync:function(e){if("function"!=typeof $)throw new E("sha256Sync is undefined, you need to set it");let t=ke[e];if(void 0===t){const r=$(Uint8Array.from(e,(e=>e.charCodeAt(0))));t=U(r,r),ke[e]=t}for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return $(t,...n)},_JacobianPoint:j},Object.defineProperties(t.utils,{sha256Sync:{configurable:!1,get:()=>$,set(e){$||($=e)}},hmacSha256Sync:{configurable:!1,get:()=>ee,set(e){ee||(ee=e)}}})},44967:e=>{"use strict";var t=Object.prototype.hasOwnProperty,r="~";function n(){}function i(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function o(e,t,n,o,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new i(n,o||e,a),u=r?r+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],s]:e._events[u].push(s):(e._events[u]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function s(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),s.prototype.eventNames=function(){var e,n,i=[];if(0===this._eventsCount)return i;for(n in e=this._events)t.call(e,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,a=new Array(o);i<o;i++)a[i]=n[i].fn;return a},s.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},s.prototype.emit=function(e,t,n,i,o,a){var s=r?r+e:e;if(!this._events[s])return!1;var u,c,f=this._events[s],l=arguments.length;if(f.fn){switch(f.once&&this.removeListener(e,f.fn,void 0,!0),l){case 1:return f.fn.call(f.context),!0;case 2:return f.fn.call(f.context,t),!0;case 3:return f.fn.call(f.context,t,n),!0;case 4:return f.fn.call(f.context,t,n,i),!0;case 5:return f.fn.call(f.context,t,n,i,o),!0;case 6:return f.fn.call(f.context,t,n,i,o,a),!0}for(c=1,u=new Array(l-1);c<l;c++)u[c-1]=arguments[c];f.fn.apply(f.context,u)}else{var d,h=f.length;for(c=0;c<h;c++)switch(f[c].once&&this.removeListener(e,f[c].fn,void 0,!0),l){case 1:f[c].fn.call(f[c].context);break;case 2:f[c].fn.call(f[c].context,t);break;case 3:f[c].fn.call(f[c].context,t,n);break;case 4:f[c].fn.call(f[c].context,t,n,i);break;default:if(!u)for(d=1,u=new Array(l-1);d<l;d++)u[d-1]=arguments[d];f[c].fn.apply(f[c].context,u)}}return!0},s.prototype.on=function(e,t,r){return o(this,e,t,r,!1)},s.prototype.once=function(e,t,r){return o(this,e,t,r,!0)},s.prototype.removeListener=function(e,t,n,i){var o=r?r+e:e;if(!this._events[o])return this;if(!t)return a(this,o),this;var s=this._events[o];if(s.fn)s.fn!==t||i&&!s.once||n&&s.context!==n||a(this,o);else{for(var u=0,c=[],f=s.length;u<f;u++)(s[u].fn!==t||i&&!s[u].once||n&&s[u].context!==n)&&c.push(s[u]);c.length?this._events[o]=1===c.length?c[0]:c:a(this,o)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&a(this,t)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s},80020:(e,t)=>{"use strict";function r(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function n(e){if("boolean"!=typeof e)throw new Error(`Expected boolean, not ${e}`)}function i(e){if(!(e instanceof Uint8Array))throw new TypeError("Expected Uint8Array");for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(r.length>0&&!r.includes(e.length))throw new TypeError(`Expected Uint8Array of length ${r}, not of length=${e.length}`)}function o(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");r(e.outputLen),r(e.blockLen)}function a(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function s(e,t){i(e);const r=t.outputLen;if(e.length<r)throw new Error(`digestInto() expects output buffer of length at least ${r}`)}Object.defineProperty(t,"__esModule",{value:!0}),t.output=t.exists=t.hash=t.bytes=t.bool=t.number=void 0,t.number=r,t.bool=n,t.bytes=i,t.hash=o,t.exists=a,t.output=s;const u={number:r,bool:n,bytes:i,hash:o,exists:a,output:s};t.default=u},77047:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.BLAKE2=t.SIGMA=void 0;const c=r(80020),f=r(86138);t.SIGMA=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3]);let l=function(e){(0,a.default)(l,e);var t,r,n=(t=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function l(e,t){var r;let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,u=arguments.length>5?arguments[5]:void 0;if((0,i.default)(this,l),(r=n.call(this)).blockLen=e,r.outputLen=t,r.length=0,r.pos=0,r.finished=!1,r.destroyed=!1,c.default.number(e),c.default.number(t),c.default.number(a),t<0||t>a)throw new Error("Blake2: outputLen bigger than keyLen");if(void 0!==o.key&&(o.key.length<1||o.key.length>a))throw new Error(`Key should be up 1..${a} byte long or undefined`);if(void 0!==o.salt&&o.salt.length!==s)throw new Error(`Salt should be ${s} byte long or undefined`);if(void 0!==o.personalization&&o.personalization.length!==u)throw new Error(`Personalization should be ${u} byte long or undefined`);return r.buffer32=(0,f.u32)(r.buffer=new Uint8Array(e)),r}return(0,o.default)(l,[{key:"update",value:function(e){c.default.exists(this);const{blockLen:t,buffer:r,buffer32:n}=this,i=(e=(0,f.toBytes)(e)).length;for(let o=0;o<i;){this.pos===t&&(this.compress(n,0,!1),this.pos=0);const a=Math.min(t-this.pos,i-o),s=e.byteOffset+o;if(a!==t||s%4||!(o+a<i))r.set(e.subarray(o,o+a),this.pos),this.pos+=a,this.length+=a,o+=a;else{const r=new Uint32Array(e.buffer,s,Math.floor((i-o)/4));for(let e=0;o+t<i;e+=n.length,o+=t)this.length+=t,this.compress(r,e,!1)}}return this}},{key:"digestInto",value:function(e){c.default.exists(this),c.default.output(e,this);const{pos:t,buffer32:r}=this;this.finished=!0,this.buffer.subarray(t).fill(0),this.compress(r,0,!0);const n=(0,f.u32)(e);this.get().forEach(((e,t)=>n[t]=e))}},{key:"digest",value:function(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const r=e.slice(0,t);return this.destroy(),r}},{key:"_cloneInto",value:function(e){const{buffer:t,length:r,finished:n,destroyed:i,outputLen:o,pos:a}=this;return e||(e=new this.constructor({dkLen:o})),e.set(...this.get()),e.length=r,e.finished=n,e.destroyed=i,e.outputLen=o,e.buffer.set(t),e.pos=a,e}}]),l}(f.Hash);t.BLAKE2=l},41954:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.SHA2=void 0;const c=r(80020),f=r(86138);let l=function(e){(0,a.default)(l,e);var t,r,n=(t=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function l(e,t,r,o){var a;return(0,i.default)(this,l),(a=n.call(this)).blockLen=e,a.outputLen=t,a.padOffset=r,a.isLE=o,a.finished=!1,a.length=0,a.pos=0,a.destroyed=!1,a.buffer=new Uint8Array(e),a.view=(0,f.createView)(a.buffer),a}return(0,o.default)(l,[{key:"update",value:function(e){c.default.exists(this);const{view:t,buffer:r,blockLen:n}=this,i=(e=(0,f.toBytes)(e)).length;for(let o=0;o<i;){const a=Math.min(n-this.pos,i-o);if(a!==n)r.set(e.subarray(o,o+a),this.pos),this.pos+=a,o+=a,this.pos===n&&(this.process(t,0),this.pos=0);else{const t=(0,f.createView)(e);for(;n<=i-o;o+=n)this.process(t,o)}}return this.length+=e.length,this.roundClean(),this}},{key:"digestInto",value:function(e){c.default.exists(this),c.default.output(e,this),this.finished=!0;const{buffer:t,view:r,blockLen:n,isLE:i}=this;let{pos:o}=this;t[o++]=128,this.buffer.subarray(o).fill(0),this.padOffset>n-o&&(this.process(r,0),o=0);for(let e=o;e<n;e++)t[e]=0;!function(e,t,r,n){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,r,n);const i=BigInt(32),o=BigInt(4294967295),a=Number(r>>i&o),s=Number(r&o),u=n?4:0,c=n?0:4;e.setUint32(t+u,a,n),e.setUint32(t+c,s,n)}(r,n-8,BigInt(8*this.length),i),this.process(r,0);const a=(0,f.createView)(e),s=this.outputLen;if(s%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=s/4,l=this.get();if(u>l.length)throw new Error("_sha2: outputLen bigger than state");for(let e=0;e<u;e++)a.setUint32(4*e,l[e],i)}},{key:"digest",value:function(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const r=e.slice(0,t);return this.destroy(),r}},{key:"_cloneInto",value:function(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:t,buffer:r,length:n,finished:i,destroyed:o,pos:a}=this;return e.length=n,e.pos=a,e.finished=i,e.destroyed=o,n%t&&e.buffer.set(r),e}}]),l}(f.Hash);t.SHA2=l},10328:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.add=t.toBig=t.split=t.fromBig=void 0;const r=BigInt(2**32-1),n=BigInt(32);function i(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?{h:Number(e&r),l:Number(e>>n&r)}:{h:0|Number(e>>n&r),l:0|Number(e&r)}}function o(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let o=0;o<e.length;o++){const{h:a,l:s}=i(e[o],t);[r[o],n[o]]=[a,s]}return[r,n]}function a(e,t,r,n){const i=(t>>>0)+(n>>>0);return{h:e+r+(i/2**32|0)|0,l:0|i}}t.fromBig=i,t.split=o,t.toBig=(e,t)=>BigInt(e>>>0)<<n|BigInt(t>>>0),t.add=a;const s={fromBig:i,split:o,toBig:t.toBig,shrSH:(e,t,r)=>e>>>r,shrSL:(e,t,r)=>e<<32-r|t>>>r,rotrSH:(e,t,r)=>e>>>r|t<<32-r,rotrSL:(e,t,r)=>e<<32-r|t>>>r,rotrBH:(e,t,r)=>e<<64-r|t>>>r-32,rotrBL:(e,t,r)=>e>>>r-32|t<<64-r,rotr32H:(e,t)=>t,rotr32L:(e,t)=>e,rotlSH:(e,t,r)=>e<<r|t>>>32-r,rotlSL:(e,t,r)=>t<<r|e>>>32-r,rotlBH:(e,t,r)=>t<<r-32|e>>>64-r,rotlBL:(e,t,r)=>e<<r-32|t>>>64-r,add:a,add3L:(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),add3H:(e,t,r,n)=>t+r+n+(e/2**32|0)|0,add4L:(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),add4H:(e,t,r,n,i)=>t+r+n+i+(e/2**32|0)|0,add5H:(e,t,r,n,i,o)=>t+r+n+i+o+(e/2**32|0)|0,add5L:(e,t,r,n,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(i>>>0)};t.default=s},31298:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.blake2b=void 0;const c=r(77047),f=r(10328),l=r(86138),d=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),h=new Uint32Array(32);function p(e,t,r,n,i,o){const a=i[o],s=i[o+1];let u=h[2*e],c=h[2*e+1],l=h[2*t],d=h[2*t+1],p=h[2*r],b=h[2*r+1],y=h[2*n],g=h[2*n+1],m=f.default.add3L(u,l,a);c=f.default.add3H(m,c,d,s),u=0|m,({Dh:g,Dl:y}={Dh:g^c,Dl:y^u}),({Dh:g,Dl:y}={Dh:f.default.rotr32H(g,y),Dl:f.default.rotr32L(g,y)}),({h:b,l:p}=f.default.add(b,p,g,y)),({Bh:d,Bl:l}={Bh:d^b,Bl:l^p}),({Bh:d,Bl:l}={Bh:f.default.rotrSH(d,l,24),Bl:f.default.rotrSL(d,l,24)}),h[2*e]=u,h[2*e+1]=c,h[2*t]=l,h[2*t+1]=d,h[2*r]=p,h[2*r+1]=b,h[2*n]=y,h[2*n+1]=g}function b(e,t,r,n,i,o){const a=i[o],s=i[o+1];let u=h[2*e],c=h[2*e+1],l=h[2*t],d=h[2*t+1],p=h[2*r],b=h[2*r+1],y=h[2*n],g=h[2*n+1],m=f.default.add3L(u,l,a);c=f.default.add3H(m,c,d,s),u=0|m,({Dh:g,Dl:y}={Dh:g^c,Dl:y^u}),({Dh:g,Dl:y}={Dh:f.default.rotrSH(g,y,16),Dl:f.default.rotrSL(g,y,16)}),({h:b,l:p}=f.default.add(b,p,g,y)),({Bh:d,Bl:l}={Bh:d^b,Bl:l^p}),({Bh:d,Bl:l}={Bh:f.default.rotrBH(d,l,63),Bl:f.default.rotrBL(d,l,63)}),h[2*e]=u,h[2*e+1]=c,h[2*t]=l,h[2*t+1]=d,h[2*r]=p,h[2*r+1]=b,h[2*n]=y,h[2*n+1]=g}let y=function(e){(0,a.default)(y,e);var t,r,n=(t=y,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function y(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,i.default)(this,y),(e=n.call(this,128,void 0===t.dkLen?64:t.dkLen,t,64,16,16)).v0l=0|d[0],e.v0h=0|d[1],e.v1l=0|d[2],e.v1h=0|d[3],e.v2l=0|d[4],e.v2h=0|d[5],e.v3l=0|d[6],e.v3h=0|d[7],e.v4l=0|d[8],e.v4h=0|d[9],e.v5l=0|d[10],e.v5h=0|d[11],e.v6l=0|d[12],e.v6h=0|d[13],e.v7l=0|d[14],e.v7h=0|d[15];const r=t.key?t.key.length:0;if(e.v0l^=e.outputLen|r<<8|65536|1<<24,t.salt){const r=(0,l.u32)((0,l.toBytes)(t.salt));e.v4l^=r[0],e.v4h^=r[1],e.v5l^=r[2],e.v5h^=r[3]}if(t.personalization){const r=(0,l.u32)((0,l.toBytes)(t.personalization));e.v6l^=r[0],e.v6h^=r[1],e.v7l^=r[2],e.v7h^=r[3]}if(t.key){const r=new Uint8Array(e.blockLen);r.set((0,l.toBytes)(t.key)),e.update(r)}return e}return(0,o.default)(y,[{key:"get",value:function(){let{v0l:e,v0h:t,v1l:r,v1h:n,v2l:i,v2h:o,v3l:a,v3h:s,v4l:u,v4h:c,v5l:f,v5h:l,v6l:d,v6h:h,v7l:p,v7h:b}=this;return[e,t,r,n,i,o,a,s,u,c,f,l,d,h,p,b]}},{key:"set",value:function(e,t,r,n,i,o,a,s,u,c,f,l,d,h,p,b){this.v0l=0|e,this.v0h=0|t,this.v1l=0|r,this.v1h=0|n,this.v2l=0|i,this.v2h=0|o,this.v3l=0|a,this.v3h=0|s,this.v4l=0|u,this.v4h=0|c,this.v5l=0|f,this.v5h=0|l,this.v6l=0|d,this.v6h=0|h,this.v7l=0|p,this.v7h=0|b}},{key:"compress",value:function(e,t,r){this.get().forEach(((e,t)=>h[t]=e)),h.set(d,16);let{h:n,l:i}=f.default.fromBig(BigInt(this.length));h[24]=d[8]^i,h[25]=d[9]^n,r&&(h[28]=~h[28],h[29]=~h[29]);let o=0;const a=c.SIGMA;for(let r=0;r<12;r++)p(0,4,8,12,e,t+2*a[o++]),b(0,4,8,12,e,t+2*a[o++]),p(1,5,9,13,e,t+2*a[o++]),b(1,5,9,13,e,t+2*a[o++]),p(2,6,10,14,e,t+2*a[o++]),b(2,6,10,14,e,t+2*a[o++]),p(3,7,11,15,e,t+2*a[o++]),b(3,7,11,15,e,t+2*a[o++]),p(0,5,10,15,e,t+2*a[o++]),b(0,5,10,15,e,t+2*a[o++]),p(1,6,11,12,e,t+2*a[o++]),b(1,6,11,12,e,t+2*a[o++]),p(2,7,8,13,e,t+2*a[o++]),b(2,7,8,13,e,t+2*a[o++]),p(3,4,9,14,e,t+2*a[o++]),b(3,4,9,14,e,t+2*a[o++]);this.v0l^=h[0]^h[16],this.v0h^=h[1]^h[17],this.v1l^=h[2]^h[18],this.v1h^=h[3]^h[19],this.v2l^=h[4]^h[20],this.v2h^=h[5]^h[21],this.v3l^=h[6]^h[22],this.v3h^=h[7]^h[23],this.v4l^=h[8]^h[24],this.v4h^=h[9]^h[25],this.v5l^=h[10]^h[26],this.v5h^=h[11]^h[27],this.v6l^=h[12]^h[28],this.v6h^=h[13]^h[29],this.v7l^=h[14]^h[30],this.v7h^=h[15]^h[31],h.fill(0)}},{key:"destroy",value:function(){this.destroyed=!0,this.buffer32.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}]),y}(c.BLAKE2);t.blake2b=(0,l.wrapConstructorWithOpts)((e=>new y(e)))},48309:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto={node:void 0,web:"object"==typeof self&&"crypto"in self?self.crypto:void 0}},93358:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=void 0;const c=r(80020),f=r(86138);let l=function(e){(0,a.default)(l,e);var t,r,n=(t=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function l(e,t){var r;(0,i.default)(this,l),(r=n.call(this)).finished=!1,r.destroyed=!1,c.default.hash(e);const o=(0,f.toBytes)(t);if(r.iHash=e.create(),"function"!=typeof r.iHash.update)throw new TypeError("Expected instance of class which extends utils.Hash");r.blockLen=r.iHash.blockLen,r.outputLen=r.iHash.outputLen;const a=r.blockLen,s=new Uint8Array(a);s.set(o.length>a?e.create().update(o).digest():o);for(let e=0;e<s.length;e++)s[e]^=54;r.iHash.update(s),r.oHash=e.create();for(let e=0;e<s.length;e++)s[e]^=106;return r.oHash.update(s),s.fill(0),r}return(0,o.default)(l,[{key:"update",value:function(e){return c.default.exists(this),this.iHash.update(e),this}},{key:"digestInto",value:function(e){c.default.exists(this),c.default.bytes(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}},{key:"digest",value:function(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}},{key:"_cloneInto",value:function(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:t,iHash:r,finished:n,destroyed:i,blockLen:o,outputLen:a}=this;return e.finished=n,e.destroyed=i,e.blockLen=o,e.outputLen=a,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}},{key:"destroy",value:function(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}]),l}(f.Hash);t.hmac=(e,t,r)=>new l(e,t).update(r).digest(),t.hmac.create=(e,t)=>new l(e,t)},16743:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pbkdf2Async=t.pbkdf2=void 0;const n=r(80020),i=r(93358),o=r(86138);function a(e,t,r,a){n.default.hash(e);const s=(0,o.checkOpts)({dkLen:32,asyncTick:10},a),{c:u,dkLen:c,asyncTick:f}=s;if(n.default.number(u),n.default.number(c),n.default.number(f),u<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const l=(0,o.toBytes)(t),d=(0,o.toBytes)(r),h=new Uint8Array(c),p=i.hmac.create(e,l),b=p._cloneInto().update(d);return{c:u,dkLen:c,asyncTick:f,DK:h,PRF:p,PRFSalt:b}}function s(e,t,r,n,i){return e.destroy(),t.destroy(),n&&n.destroy(),i.fill(0),r}t.pbkdf2=function(e,t,r,n){const{c:i,dkLen:u,DK:c,PRF:f,PRFSalt:l}=a(e,t,r,n);let d;const h=new Uint8Array(4),p=(0,o.createView)(h),b=new Uint8Array(f.outputLen);for(let e=1,t=0;t<u;e++,t+=f.outputLen){const r=c.subarray(t,t+f.outputLen);p.setInt32(0,e,!1),(d=l._cloneInto(d)).update(h).digestInto(b),r.set(b.subarray(0,r.length));for(let e=1;e<i;e++){f._cloneInto(d).update(b).digestInto(b);for(let e=0;e<r.length;e++)r[e]^=b[e]}}return s(f,l,c,d,b)},t.pbkdf2Async=async function(e,t,r,n){const{c:i,dkLen:u,asyncTick:c,DK:f,PRF:l,PRFSalt:d}=a(e,t,r,n);let h;const p=new Uint8Array(4),b=(0,o.createView)(p),y=new Uint8Array(l.outputLen);for(let e=1,t=0;t<u;e++,t+=l.outputLen){const r=f.subarray(t,t+l.outputLen);b.setInt32(0,e,!1),(h=d._cloneInto(h)).update(p).digestInto(y),r.set(y.subarray(0,r.length)),await(0,o.asyncLoop)(i-1,c,(e=>{l._cloneInto(h).update(y).digestInto(y);for(let e=0;e<r.length;e++)r[e]^=y[e]}))}return s(l,d,f,h,y)}},58878:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scryptAsync=t.scrypt=void 0;const n=r(80020),i=r(82037),o=r(16743),a=r(86138),s=(e,t)=>e<<t|e>>>32-t;function u(e,t,r,n,i,o){let a=e[t++]^r[n++],u=e[t++]^r[n++],c=e[t++]^r[n++],f=e[t++]^r[n++],l=e[t++]^r[n++],d=e[t++]^r[n++],h=e[t++]^r[n++],p=e[t++]^r[n++],b=e[t++]^r[n++],y=e[t++]^r[n++],g=e[t++]^r[n++],m=e[t++]^r[n++],v=e[t++]^r[n++],w=e[t++]^r[n++],_=e[t++]^r[n++],x=e[t++]^r[n++],O=a,k=u,P=c,S=f,A=l,E=d,M=h,j=p,T=b,B=y,I=g,N=m,R=v,C=w,U=_,L=x;for(let e=0;e<8;e+=2)A^=s(O+R|0,7),T^=s(A+O|0,9),R^=s(T+A|0,13),O^=s(R+T|0,18),B^=s(E+k|0,7),C^=s(B+E|0,9),k^=s(C+B|0,13),E^=s(k+C|0,18),U^=s(I+M|0,7),P^=s(U+I|0,9),M^=s(P+U|0,13),I^=s(M+P|0,18),S^=s(L+N|0,7),j^=s(S+L|0,9),N^=s(j+S|0,13),L^=s(N+j|0,18),k^=s(O+S|0,7),P^=s(k+O|0,9),S^=s(P+k|0,13),O^=s(S+P|0,18),M^=s(E+A|0,7),j^=s(M+E|0,9),A^=s(j+M|0,13),E^=s(A+j|0,18),N^=s(I+B|0,7),T^=s(N+I|0,9),B^=s(T+N|0,13),I^=s(B+T|0,18),R^=s(L+U|0,7),C^=s(R+L|0,9),U^=s(C+R|0,13),L^=s(U+C|0,18);i[o++]=a+O|0,i[o++]=u+k|0,i[o++]=c+P|0,i[o++]=f+S|0,i[o++]=l+A|0,i[o++]=d+E|0,i[o++]=h+M|0,i[o++]=p+j|0,i[o++]=b+T|0,i[o++]=y+B|0,i[o++]=g+I|0,i[o++]=m+N|0,i[o++]=v+R|0,i[o++]=w+C|0,i[o++]=_+U|0,i[o++]=x+L|0}function c(e,t,r,n,i){let o=n+0,a=n+16*i;for(let n=0;n<16;n++)r[a+n]=e[t+16*(2*i-1)+n];for(let n=0;n<i;n++,o+=16,t+=16)u(r,a,e,t,r,o),n>0&&(a+=16),u(r,o,e,t+=16,r,a)}function f(e,t,r){const s=(0,a.checkOpts)({dkLen:32,asyncTick:10,maxmem:1073742848},r),{N:u,r:c,p:f,dkLen:l,asyncTick:d,maxmem:h,onProgress:p}=s;if(n.default.number(u),n.default.number(c),n.default.number(f),n.default.number(l),n.default.number(d),n.default.number(h),void 0!==p&&"function"!=typeof p)throw new Error("progressCb should be function");const b=128*c,y=b/4;if(u<=1||0!=(u&u-1)||u>=2**(b/8)||u>2**32)throw new Error("Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32");if(f<0||f>137438953440/b)throw new Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(l<0||l>137438953440)throw new Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");const g=b*(u+f);if(g>h)throw new Error(`Scrypt: parameters too large, ${g} (128 * r * (N + p)) > ${h} (maxmem)`);const m=(0,o.pbkdf2)(i.sha256,e,t,{c:1,dkLen:b*f}),v=(0,a.u32)(m),w=(0,a.u32)(new Uint8Array(b*u)),_=(0,a.u32)(new Uint8Array(b));let x=()=>{};if(p){const e=2*u*f,t=Math.max(Math.floor(e/1e4),1);let r=0;x=()=>{r++,!p||r%t&&r!==e||p(r/e)}}return{N:u,r:c,p:f,dkLen:l,blockSize32:y,V:w,B32:v,B:m,tmp:_,blockMixCb:x,asyncTick:d}}function l(e,t,r,n,a){const s=(0,o.pbkdf2)(i.sha256,e,r,{c:1,dkLen:t});return r.fill(0),n.fill(0),a.fill(0),s}t.scrypt=function(e,t,r){const{N:n,r:i,p:o,dkLen:a,blockSize32:s,V:u,B32:d,B:h,tmp:p,blockMixCb:b}=f(e,t,r);for(let e=0;e<o;e++){const t=s*e;for(let e=0;e<s;e++)u[e]=d[t+e];for(let e=0,t=0;e<n-1;e++)c(u,t,u,t+=s,i),b();c(u,(n-1)*s,d,t,i),b();for(let e=0;e<n;e++){const e=d[t+s-16]%n;for(let r=0;r<s;r++)p[r]=d[t+r]^u[e*s+r];c(p,0,d,t,i),b()}}return l(e,a,h,u,p)},t.scryptAsync=async function(e,t,r){const{N:n,r:i,p:o,dkLen:s,blockSize32:u,V:d,B32:h,B:p,tmp:b,blockMixCb:y,asyncTick:g}=f(e,t,r);for(let e=0;e<o;e++){const t=u*e;for(let e=0;e<u;e++)d[e]=h[t+e];let r=0;await(0,a.asyncLoop)(n-1,g,(e=>{c(d,r,d,r+=u,i),y()})),c(d,(n-1)*u,h,t,i),y(),await(0,a.asyncLoop)(n,g,(e=>{const r=h[t+u-16]%n;for(let e=0;e<u;e++)b[e]=h[t+e]^d[r*u+e];c(b,0,h,t,i),y()}))}return l(e,s,p,d,b)}},82037:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,u.default)(e);if(t){var i=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.sha224=t.sha256=void 0;const f=r(41954),l=r(86138),d=(e,t,r)=>e&t^e&r^t&r,h=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),p=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),b=new Uint32Array(64);let y=function(e){(0,a.default)(r,e);var t=c(r);function r(){var e;return(0,i.default)(this,r),(e=t.call(this,64,32,8,!1)).A=0|p[0],e.B=0|p[1],e.C=0|p[2],e.D=0|p[3],e.E=0|p[4],e.F=0|p[5],e.G=0|p[6],e.H=0|p[7],e}return(0,o.default)(r,[{key:"get",value:function(){const{A:e,B:t,C:r,D:n,E:i,F:o,G:a,H:s}=this;return[e,t,r,n,i,o,a,s]}},{key:"set",value:function(e,t,r,n,i,o,a,s){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|i,this.F=0|o,this.G=0|a,this.H=0|s}},{key:"process",value:function(e,t){for(let r=0;r<16;r++,t+=4)b[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){const t=b[e-15],r=b[e-2],n=(0,l.rotr)(t,7)^(0,l.rotr)(t,18)^t>>>3,i=(0,l.rotr)(r,17)^(0,l.rotr)(r,19)^r>>>10;b[e]=i+b[e-7]+n+b[e-16]|0}let{A:r,B:n,C:i,D:o,E:a,F:s,G:u,H:c}=this;for(let e=0;e<64;e++){const t=c+((0,l.rotr)(a,6)^(0,l.rotr)(a,11)^(0,l.rotr)(a,25))+((f=a)&s^~f&u)+h[e]+b[e]|0,p=((0,l.rotr)(r,2)^(0,l.rotr)(r,13)^(0,l.rotr)(r,22))+d(r,n,i)|0;c=u,u=s,s=a,a=o+t|0,o=i,i=n,n=r,r=t+p|0}var f;r=r+this.A|0,n=n+this.B|0,i=i+this.C|0,o=o+this.D|0,a=a+this.E|0,s=s+this.F|0,u=u+this.G|0,c=c+this.H|0,this.set(r,n,i,o,a,s,u,c)}},{key:"roundClean",value:function(){b.fill(0)}},{key:"destroy",value:function(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}]),r}(f.SHA2),g=function(e){(0,a.default)(r,e);var t=c(r);function r(){var e;return(0,i.default)(this,r),(e=t.call(this)).A=-1056596264,e.B=914150663,e.C=812702999,e.D=-150054599,e.E=-4191439,e.F=1750603025,e.G=1694076839,e.H=-1090891868,e.outputLen=28,e}return(0,o.default)(r)}(y);t.sha256=(0,l.wrapConstructor)((()=>new y)),t.sha224=(0,l.wrapConstructor)((()=>new g))},37258:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.shake256=t.shake128=t.keccak_512=t.keccak_384=t.keccak_256=t.keccak_224=t.sha3_512=t.sha3_384=t.sha3_256=t.sha3_224=t.Keccak=t.keccakP=void 0;const c=r(80020),f=r(10328),l=r(86138),[d,h,p]=[[],[],[]],b=BigInt(0),y=BigInt(1),g=BigInt(2),m=BigInt(7),v=BigInt(256),w=BigInt(113);for(let e=0,t=y,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],d.push(2*(5*n+r)),h.push((e+1)*(e+2)/2%64);let i=b;for(let e=0;e<7;e++)t=(t<<y^(t>>m)*w)%v,t&g&&(i^=y<<(y<<BigInt(e))-y);p.push(i)}const[_,x]=f.default.split(p,!0),O=(e,t,r)=>r>32?f.default.rotlBH(e,t,r):f.default.rotlSH(e,t,r),k=(e,t,r)=>r>32?f.default.rotlBL(e,t,r):f.default.rotlSL(e,t,r);function P(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24;const r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){const n=(t+8)%10,i=(t+2)%10,o=r[i],a=r[i+1],s=O(o,a,1)^r[n],u=k(o,a,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=s,e[t+r+1]^=u}let t=e[2],i=e[3];for(let r=0;r<24;r++){const n=h[r],o=O(t,i,n),a=k(t,i,n),s=d[r];t=e[s],i=e[s+1],e[s]=o,e[s+1]=a}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)r[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~r[(n+2)%10]&r[(n+4)%10]}e[0]^=_[n],e[1]^=x[n]}r.fill(0)}t.keccakP=P;let S=function(e){(0,a.default)(f,e);var t,r,n=(t=f,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function f(e,t,r){var o;let a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:24;if((0,i.default)(this,f),(o=n.call(this)).blockLen=e,o.suffix=t,o.outputLen=r,o.enableXOF=a,o.rounds=s,o.pos=0,o.posOut=0,o.finished=!1,o.destroyed=!1,c.default.number(r),0>=o.blockLen||o.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");return o.state=new Uint8Array(200),o.state32=(0,l.u32)(o.state),o}return(0,o.default)(f,[{key:"keccak",value:function(){P(this.state32,this.rounds),this.posOut=0,this.pos=0}},{key:"update",value:function(e){c.default.exists(this);const{blockLen:t,state:r}=this,n=(e=(0,l.toBytes)(e)).length;for(let i=0;i<n;){const o=Math.min(t-this.pos,n-i);for(let t=0;t<o;t++)r[this.pos++]^=e[i++];this.pos===t&&this.keccak()}return this}},{key:"finish",value:function(){if(this.finished)return;this.finished=!0;const{state:e,suffix:t,pos:r,blockLen:n}=this;e[r]^=t,0!=(128&t)&&r===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}},{key:"writeInto",value:function(e){c.default.exists(this,!1),c.default.bytes(e),this.finish();const t=this.state,{blockLen:r}=this;for(let n=0,i=e.length;n<i;){this.posOut>=r&&this.keccak();const o=Math.min(r-this.posOut,i-n);e.set(t.subarray(this.posOut,this.posOut+o),n),this.posOut+=o,n+=o}return e}},{key:"xofInto",value:function(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}},{key:"xof",value:function(e){return c.default.number(e),this.xofInto(new Uint8Array(e))}},{key:"digestInto",value:function(e){if(c.default.output(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}},{key:"digest",value:function(){return this.digestInto(new Uint8Array(this.outputLen))}},{key:"destroy",value:function(){this.destroyed=!0,this.state.fill(0)}},{key:"_cloneInto",value:function(e){const{blockLen:t,suffix:r,outputLen:n,rounds:i,enableXOF:o}=this;return e||(e=new f(t,r,n,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=n,e.enableXOF=o,e.destroyed=this.destroyed,e}}]),f}(l.Hash);t.Keccak=S;const A=(e,t,r)=>(0,l.wrapConstructor)((()=>new S(t,e,r)));t.sha3_224=A(6,144,28),t.sha3_256=A(6,136,32),t.sha3_384=A(6,104,48),t.sha3_512=A(6,72,64),t.keccak_224=A(1,144,28),t.keccak_256=A(1,136,32),t.keccak_384=A(1,104,48),t.keccak_512=A(1,72,64);const E=(e,t,r)=>(0,l.wrapConstructorWithOpts)((function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new S(t,e,void 0===n.dkLen?r:n.dkLen,!0)}));t.shake128=E(31,168,16),t.shake256=E(31,136,32)},26616:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,u.default)(e);if(t){var i=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.sha384=t.sha512_256=t.sha512_224=t.sha512=t.SHA512=void 0;const f=r(41954),l=r(10328),d=r(86138),[h,p]=l.default.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map((e=>BigInt(e)))),b=new Uint32Array(80),y=new Uint32Array(80);let g=function(e){(0,a.default)(r,e);var t=c(r);function r(){var e;return(0,i.default)(this,r),(e=t.call(this,128,64,16,!1)).Ah=1779033703,e.Al=-205731576,e.Bh=-1150833019,e.Bl=-2067093701,e.Ch=1013904242,e.Cl=-23791573,e.Dh=-1521486534,e.Dl=1595750129,e.Eh=1359893119,e.El=-1377402159,e.Fh=-1694144372,e.Fl=725511199,e.Gh=528734635,e.Gl=-79577749,e.Hh=1541459225,e.Hl=327033209,e}return(0,o.default)(r,[{key:"get",value:function(){const{Ah:e,Al:t,Bh:r,Bl:n,Ch:i,Cl:o,Dh:a,Dl:s,Eh:u,El:c,Fh:f,Fl:l,Gh:d,Gl:h,Hh:p,Hl:b}=this;return[e,t,r,n,i,o,a,s,u,c,f,l,d,h,p,b]}},{key:"set",value:function(e,t,r,n,i,o,a,s,u,c,f,l,d,h,p,b){this.Ah=0|e,this.Al=0|t,this.Bh=0|r,this.Bl=0|n,this.Ch=0|i,this.Cl=0|o,this.Dh=0|a,this.Dl=0|s,this.Eh=0|u,this.El=0|c,this.Fh=0|f,this.Fl=0|l,this.Gh=0|d,this.Gl=0|h,this.Hh=0|p,this.Hl=0|b}},{key:"process",value:function(e,t){for(let r=0;r<16;r++,t+=4)b[r]=e.getUint32(t),y[r]=e.getUint32(t+=4);for(let e=16;e<80;e++){const t=0|b[e-15],r=0|y[e-15],n=l.default.rotrSH(t,r,1)^l.default.rotrSH(t,r,8)^l.default.shrSH(t,r,7),i=l.default.rotrSL(t,r,1)^l.default.rotrSL(t,r,8)^l.default.shrSL(t,r,7),o=0|b[e-2],a=0|y[e-2],s=l.default.rotrSH(o,a,19)^l.default.rotrBH(o,a,61)^l.default.shrSH(o,a,6),u=l.default.rotrSL(o,a,19)^l.default.rotrBL(o,a,61)^l.default.shrSL(o,a,6),c=l.default.add4L(i,u,y[e-7],y[e-16]),f=l.default.add4H(c,n,s,b[e-7],b[e-16]);b[e]=0|f,y[e]=0|c}let{Ah:r,Al:n,Bh:i,Bl:o,Ch:a,Cl:s,Dh:u,Dl:c,Eh:f,El:d,Fh:g,Fl:m,Gh:v,Gl:w,Hh:_,Hl:x}=this;for(let e=0;e<80;e++){const t=l.default.rotrSH(f,d,14)^l.default.rotrSH(f,d,18)^l.default.rotrBH(f,d,41),O=l.default.rotrSL(f,d,14)^l.default.rotrSL(f,d,18)^l.default.rotrBL(f,d,41),k=f&g^~f&v,P=d&m^~d&w,S=l.default.add5L(x,O,P,p[e],y[e]),A=l.default.add5H(S,_,t,k,h[e],b[e]),E=0|S,M=l.default.rotrSH(r,n,28)^l.default.rotrBH(r,n,34)^l.default.rotrBH(r,n,39),j=l.default.rotrSL(r,n,28)^l.default.rotrBL(r,n,34)^l.default.rotrBL(r,n,39),T=r&i^r&a^i&a,B=n&o^n&s^o&s;_=0|v,x=0|w,v=0|g,w=0|m,g=0|f,m=0|d,({h:f,l:d}=l.default.add(0|u,0|c,0|A,0|E)),u=0|a,c=0|s,a=0|i,s=0|o,i=0|r,o=0|n;const I=l.default.add3L(E,j,B);r=l.default.add3H(I,A,M,T),n=0|I}({h:r,l:n}=l.default.add(0|this.Ah,0|this.Al,0|r,0|n)),({h:i,l:o}=l.default.add(0|this.Bh,0|this.Bl,0|i,0|o)),({h:a,l:s}=l.default.add(0|this.Ch,0|this.Cl,0|a,0|s)),({h:u,l:c}=l.default.add(0|this.Dh,0|this.Dl,0|u,0|c)),({h:f,l:d}=l.default.add(0|this.Eh,0|this.El,0|f,0|d)),({h:g,l:m}=l.default.add(0|this.Fh,0|this.Fl,0|g,0|m)),({h:v,l:w}=l.default.add(0|this.Gh,0|this.Gl,0|v,0|w)),({h:_,l:x}=l.default.add(0|this.Hh,0|this.Hl,0|_,0|x)),this.set(r,n,i,o,a,s,u,c,f,d,g,m,v,w,_,x)}},{key:"roundClean",value:function(){b.fill(0),y.fill(0)}},{key:"destroy",value:function(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}]),r}(f.SHA2);t.SHA512=g;let m=function(e){(0,a.default)(r,e);var t=c(r);function r(){var e;return(0,i.default)(this,r),(e=t.call(this)).Ah=-1942145080,e.Al=424955298,e.Bh=1944164710,e.Bl=-1982016298,e.Ch=502970286,e.Cl=855612546,e.Dh=1738396948,e.Dl=1479516111,e.Eh=258812777,e.El=2077511080,e.Fh=2011393907,e.Fl=79989058,e.Gh=1067287976,e.Gl=1780299464,e.Hh=286451373,e.Hl=-1848208735,e.outputLen=28,e}return(0,o.default)(r)}(g),v=function(e){(0,a.default)(r,e);var t=c(r);function r(){var e;return(0,i.default)(this,r),(e=t.call(this)).Ah=573645204,e.Al=-64227540,e.Bh=-1621794909,e.Bl=-934517566,e.Ch=596883563,e.Cl=1867755857,e.Dh=-1774684391,e.Dl=1497426621,e.Eh=-1775747358,e.El=-1467023389,e.Fh=-1101128155,e.Fl=1401305490,e.Gh=721525244,e.Gl=746961066,e.Hh=246885852,e.Hl=-2117784414,e.outputLen=32,e}return(0,o.default)(r)}(g),w=function(e){(0,a.default)(r,e);var t=c(r);function r(){var e;return(0,i.default)(this,r),(e=t.call(this)).Ah=-876896931,e.Al=-1056596264,e.Bh=1654270250,e.Bl=914150663,e.Ch=-1856437926,e.Cl=812702999,e.Dh=355462360,e.Dl=-150054599,e.Eh=1731405415,e.El=-4191439,e.Fh=-1900787065,e.Fl=1750603025,e.Gh=-619958771,e.Gl=1694076839,e.Hh=1203062813,e.Hl=-1090891868,e.outputLen=48,e}return(0,o.default)(r)}(g);t.sha512=(0,d.wrapConstructor)((()=>new g)),t.sha512_224=(0,d.wrapConstructor)((()=>new m)),t.sha512_256=(0,d.wrapConstructor)((()=>new v)),t.sha384=(0,d.wrapConstructor)((()=>new w))},86138:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728));Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.wrapConstructorWithOpts=t.wrapConstructor=t.checkOpts=t.Hash=t.concatBytes=t.toBytes=t.utf8ToBytes=t.asyncLoop=t.nextTick=t.hexToBytes=t.bytesToHex=t.isLE=t.rotr=t.createView=t.u32=t.u8=void 0;const a=r(48309);if(t.u8=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),t.u32=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),t.createView=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),t.rotr=(e,t)=>e<<32-t|e>>>t,t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],!t.isLE)throw new Error("Non little-endian hardware is not supported");const s=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function u(e){if("string"!=typeof e)throw new TypeError("utf8ToBytes expected string, got "+typeof e);return(new TextEncoder).encode(e)}function c(e){if("string"==typeof e&&(e=u(e)),!(e instanceof Uint8Array))throw new TypeError(`Expected input type is Uint8Array (got ${typeof e})`);return e}t.bytesToHex=function(e){if(!(e instanceof Uint8Array))throw new Error("Uint8Array expected");let t="";for(let r=0;r<e.length;r++)t+=s[e[r]];return t},t.hexToBytes=function(e){if("string"!=typeof e)throw new TypeError("hexToBytes: expected string, got "+typeof e);if(e.length%2)throw new Error("hexToBytes: received invalid unpadded hex");const t=new Uint8Array(e.length/2);for(let r=0;r<t.length;r++){const n=2*r,i=e.slice(n,n+2),o=Number.parseInt(i,16);if(Number.isNaN(o)||o<0)throw new Error("Invalid byte sequence");t[r]=o}return t},t.nextTick=async()=>{},t.asyncLoop=async function(e,r,n){let i=Date.now();for(let o=0;o<e;o++){n(o);const e=Date.now()-i;e>=0&&e<r||(await(0,t.nextTick)(),i+=e)}},t.utf8ToBytes=u,t.toBytes=c,t.concatBytes=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!t.every((e=>e instanceof Uint8Array)))throw new Error("Uint8Array list expected");if(1===t.length)return t[0];const n=t.reduce(((e,t)=>e+t.length),0),i=new Uint8Array(n);for(let e=0,r=0;e<t.length;e++){const n=t[e];i.set(n,r),r+=n.length}return i};let f=function(){function e(){(0,i.default)(this,e)}return(0,o.default)(e,[{key:"clone",value:function(){return this._cloneInto()}}]),e}();t.Hash=f,t.checkOpts=function(e,t){if(void 0!==t&&("object"!=typeof t||(r=t,"[object Object]"!==Object.prototype.toString.call(r)||r.constructor!==Object)))throw new TypeError("Options should be object or undefined");var r;return Object.assign(e,t)},t.wrapConstructor=function(e){const t=t=>e().update(c(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t},t.wrapConstructorWithOpts=function(e){const t=(t,r)=>e(r).update(c(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},t.randomBytes=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32;if(a.crypto.web)return a.crypto.web.getRandomValues(new Uint8Array(e));if(a.crypto.node)return new Uint8Array(a.crypto.node.randomBytes(e).buffer);throw new Error("The environment doesn't have randomBytes function")}},9574:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(38416)),o=n(r(89728)),a=n(r(56690)),s=n(r(61655)),u=n(r(94993)),c=n(r(73808)),f=n(r(33496));function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}Object.defineProperty(t,"__esModule",{value:!0}),t.utils=t.schnorr=t.verify=t.signSync=t.sign=t.getSharedSecret=t.recoverPublicKey=t.getPublicKey=t.Signature=t.Point=t.CURVE=void 0;const h=r(79631),p=BigInt(0),b=BigInt(1),y=BigInt(2),g=BigInt(3),m=BigInt(8),v=Object.freeze({a:p,b:BigInt(7),P:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:b,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee")});t.CURVE=v;const w=(e,t)=>(e+t/y)/t,_={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar(e){const{n:t}=v,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-b*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),o=r,a=BigInt("0x100000000000000000000000000000000"),s=w(o*e,t),u=w(-n*e,t);let c=Z(e-s*r-u*i,t),f=Z(-s*n-u*o,t);const l=c>a,d=f>a;if(l&&(c=t-c),d&&(f=t-f),c>a||f>a)throw new Error("splitScalarEndo: Endomorphism failed, k="+e);return{k1neg:l,k1:c,k2neg:d,k2:f}}},x=32,O=32,k=x+1,P=2*x+1;function S(e){const{a:t,b:r}=v,n=Z(e*e),i=Z(n*e);return Z(i+t*e+r)}const A=v.a===p;let E=function(e){(0,s.default)(i,e);var t,r,n=(t=i,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,c.default)(t);if(r){var i=(0,c.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,u.default)(this,e)});function i(e){return(0,a.default)(this,i),n.call(this,e)}return(0,o.default)(i)}((0,f.default)(Error));function M(e){if(!(e instanceof j))throw new TypeError("JacobianPoint expected")}let j=function(){function e(t,r,n){(0,a.default)(this,e),this.x=t,this.y=r,this.z=n}return(0,o.default)(e,[{key:"equals",value:function(e){M(e);const{x:t,y:r,z:n}=this,{x:i,y:o,z:a}=e,s=Z(n*n),u=Z(a*a),c=Z(t*u),f=Z(i*s),l=Z(Z(r*a)*u),d=Z(Z(o*n)*s);return c===f&&l===d}},{key:"negate",value:function(){return new e(this.x,Z(-this.y),this.z)}},{key:"double",value:function(){const{x:t,y:r,z:n}=this,i=Z(t*t),o=Z(r*r),a=Z(o*o),s=t+o,u=Z(y*(Z(s*s)-i-a)),c=Z(g*i),f=Z(c*c),l=Z(f-y*u);return new e(l,Z(c*(u-l)-m*a),Z(y*r*n))}},{key:"add",value:function(t){M(t);const{x:r,y:n,z:i}=this,{x:o,y:a,z:s}=t;if(o===p||a===p)return this;if(r===p||n===p)return t;const u=Z(i*i),c=Z(s*s),f=Z(r*c),l=Z(o*u),d=Z(Z(n*s)*c),h=Z(Z(a*i)*u),b=Z(l-f),g=Z(h-d);if(b===p)return g===p?this.double():e.ZERO;const m=Z(b*b),v=Z(b*m),w=Z(f*m),_=Z(g*g-v-y*w);return new e(_,Z(g*(w-_)-d*v),Z(i*s*b))}},{key:"subtract",value:function(e){return this.add(e.negate())}},{key:"multiplyUnsafe",value:function(t){const r=e.ZERO;if("bigint"==typeof t&&t===p)return r;let n=X(t);if(n===b)return this;if(!A){let e=r,t=this;for(;n>p;)n&b&&(e=e.add(t)),t=t.double(),n>>=b;return e}let{k1neg:i,k1:o,k2neg:a,k2:s}=_.splitScalar(n),u=r,c=r,f=this;for(;o>p||s>p;)o&b&&(u=u.add(f)),s&b&&(c=c.add(f)),f=f.double(),o>>=b,s>>=b;return i&&(u=u.negate()),a&&(c=c.negate()),c=new e(Z(c.x*_.beta),c.y,c.z),u.add(c)}},{key:"precomputeWindow",value:function(e){const t=A?128/e+1:256/e+1,r=[];let n=this,i=n;for(let o=0;o<t;o++){i=n,r.push(i);for(let t=1;t<2**(e-1);t++)i=i.add(n),r.push(i);n=i.double()}return r}},{key:"wNAF",value:function(t,r){!r&&this.equals(e.BASE)&&(r=I.BASE);const n=r&&r._WINDOW_SIZE||1;if(256%n)throw new Error("Point#wNAF: Invalid precomputation window, must be power of 2");let i=r&&B.get(r);i||(i=this.precomputeWindow(n),r&&1!==n&&(i=e.normalizeZ(i),B.set(r,i)));let o=e.ZERO,a=e.BASE;const s=1+(A?128/n:256/n),u=2**(n-1),c=BigInt(2**n-1),f=2**n,l=BigInt(n);for(let e=0;e<s;e++){const r=e*u;let n=Number(t&c);t>>=l,n>u&&(n-=f,t+=b);const s=r,d=r+Math.abs(n)-1,h=e%2!=0,p=n<0;0===n?a=a.add(T(h,i[s])):o=o.add(T(p,i[d]))}return{p:o,f:a}}},{key:"multiply",value:function(t,r){let n,i,o=X(t);if(A){const{k1neg:t,k1:a,k2neg:s,k2:u}=_.splitScalar(o);let{p:c,f}=this.wNAF(a,r),{p:l,f:d}=this.wNAF(u,r);c=T(t,c),l=T(s,l),l=new e(Z(l.x*_.beta),l.y,l.z),n=c.add(l),i=f.add(d)}else{const{p:e,f:t}=this.wNAF(o,r);n=e,i=t}return e.normalizeZ([n,i])[0]}},{key:"toAffine",value:function(t){const{x:r,y:n,z:i}=this,o=this.equals(e.ZERO);null==t&&(t=o?m:Y(i));const a=t,s=Z(a*a),u=Z(s*a),c=Z(r*s),f=Z(n*u),l=Z(i*a);if(o)return I.ZERO;if(l!==b)throw new Error("invZ was invalid");return new I(c,f)}}],[{key:"fromAffine",value:function(t){if(!(t instanceof I))throw new TypeError("JacobianPoint#fromAffine: expected Point");return t.equals(I.ZERO)?e.ZERO:new e(t.x,t.y,b)}},{key:"toAffineBatch",value:function(e){const t=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.P;const r=new Array(e.length),n=Y(e.reduce(((e,n,i)=>n===p?e:(r[i]=e,Z(e*n,t))),b),t);return e.reduceRight(((e,n,i)=>n===p?e:(r[i]=Z(e*r[i],t),Z(e*n,t))),n),r}(e.map((e=>e.z)));return e.map(((e,r)=>e.toAffine(t[r])))}},{key:"normalizeZ",value:function(t){return e.toAffineBatch(t).map(e.fromAffine)}}]),e}();function T(e,t){const r=t.negate();return e?r:t}j.BASE=new j(v.Gx,v.Gy,b),j.ZERO=new j(p,b,p);const B=new WeakMap;let I=function(){function e(t,r){(0,a.default)(this,e),this.x=t,this.y=r}return(0,o.default)(e,[{key:"_setWindowSize",value:function(e){this._WINDOW_SIZE=e,B.delete(this)}},{key:"hasEvenY",value:function(){return this.y%y===p}},{key:"toRawBytes",value:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return K(this.toHex(e))}},{key:"toHex",value:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=F(this.x);return e?`${this.hasEvenY()?"02":"03"}${t}`:`04${t}${F(this.y)}`}},{key:"toHexX",value:function(){return this.toHex(!0).slice(2)}},{key:"toRawX",value:function(){return this.toRawBytes(!0).slice(1)}},{key:"assertValidity",value:function(){const e="Point is not on elliptic curve",{x:t,y:r}=this;if(!ne(t)||!ne(r))throw new Error(e);const n=Z(r*r);if(Z(n-S(t))!==p)throw new Error(e)}},{key:"equals",value:function(e){return this.x===e.x&&this.y===e.y}},{key:"negate",value:function(){return new e(this.x,Z(-this.y))}},{key:"double",value:function(){return j.fromAffine(this).double().toAffine()}},{key:"add",value:function(e){return j.fromAffine(this).add(j.fromAffine(e)).toAffine()}},{key:"subtract",value:function(e){return this.add(e.negate())}},{key:"multiply",value:function(e){return j.fromAffine(this).multiply(e,this).toAffine()}},{key:"multiplyAndAddUnsafe",value:function(t,r,n){const i=j.fromAffine(this),o=r===p||r===b||this!==e.BASE?i.multiplyUnsafe(r):i.multiply(r),a=j.fromAffine(t).multiplyUnsafe(n),s=o.add(a);return s.equals(j.ZERO)?void 0:s.toAffine()}}],[{key:"fromCompressedHex",value:function(t){const r=32===t.length,n=W(r?t:t.subarray(1));if(!ne(n))throw new Error("Point is not on curve");let i=function(e){const{P:t}=v,r=BigInt(6),n=BigInt(11),i=BigInt(22),o=BigInt(23),a=BigInt(44),s=BigInt(88),u=e*e*e%t,c=u*u*e%t,f=J(c,g)*c%t,l=J(f,g)*c%t,d=J(l,y)*u%t,h=J(d,n)*d%t,p=J(h,i)*h%t,b=J(p,a)*p%t,m=J(b,s)*b%t,w=J(m,a)*p%t,_=J(w,g)*c%t,x=J(_,o)*h%t,O=J(x,r)*u%t,k=J(O,y);if(k*k%t!==e)throw new Error("Cannot find square root");return k}(S(n));const o=(i&b)===b;r?o&&(i=Z(-i)):1==(1&t[0])!==o&&(i=Z(-i));const a=new e(n,i);return a.assertValidity(),a}},{key:"fromUncompressedHex",value:function(t){const r=new e(W(t.subarray(1,x+1)),W(t.subarray(x+1,2*x+1)));return r.assertValidity(),r}},{key:"fromHex",value:function(e){const t=G(e),r=t.length,n=t[0];if(r===x)return this.fromCompressedHex(t);if(r===k&&(2===n||3===n))return this.fromCompressedHex(t);if(r===P&&4===n)return this.fromUncompressedHex(t);throw new Error(`Point.fromHex: received invalid point. Expected 32-${k} compressed bytes or ${P} uncompressed bytes, not ${r}`)}},{key:"fromPrivateKey",value:function(t){return e.BASE.multiply(oe(t))}},{key:"fromSignature",value:function(t,r,n){const{r:i,s:o}=se(r);if(![0,1,2,3].includes(n))throw new Error("Cannot recover: invalid recovery bit");const a=Q(G(t)),{n:s}=v,u=2===n||3===n?i+s:i,c=Y(u,s),f=Z(-a*c,s),l=Z(o*c,s),d=1&n?"03":"02",h=e.fromHex(d+F(u)),p=e.BASE.multiplyAndAddUnsafe(h,f,l);if(!p)throw new Error("Cannot recover signature: point at infinify");return p.assertValidity(),p}}]),e}();function N(e){return Number.parseInt(e[0],16)>=8?"00"+e:e}function R(e){if(e.length<2||2!==e[0])throw new Error(`Invalid signature integer tag: ${D(e)}`);const t=e[1],r=e.subarray(2,t+2);if(!t||r.length!==t)throw new Error("Invalid signature integer: wrong length");if(0===r[0]&&r[1]<=127)throw new Error("Invalid signature integer: trailing length");return{data:W(r),left:e.subarray(t+2)}}t.Point=I,I.BASE=new I(v.Gx,v.Gy),I.ZERO=new I(p,p);let C=function(){function e(t,r){(0,a.default)(this,e),this.r=t,this.s=r,this.assertValidity()}return(0,o.default)(e,[{key:"assertValidity",value:function(){const{r:e,s:t}=this;if(!re(e))throw new Error("Invalid Signature: r must be 0 < r < n");if(!re(t))throw new Error("Invalid Signature: s must be 0 < s < n")}},{key:"hasHighS",value:function(){const e=v.n>>b;return this.s>e}},{key:"normalizeS",value:function(){return this.hasHighS()?new e(this.r,Z(-this.s,v.n)):this}},{key:"toDERRawBytes",value:function(){return K(this.toDERHex())}},{key:"toDERHex",value:function(){const e=N(z(this.s)),t=N(z(this.r)),r=e.length/2,n=t.length/2,i=z(r),o=z(n);return`30${z(n+r+4)}02${o}${t}02${i}${e}`}},{key:"toRawBytes",value:function(){return this.toDERRawBytes()}},{key:"toHex",value:function(){return this.toDERHex()}},{key:"toCompactRawBytes",value:function(){return K(this.toCompactHex())}},{key:"toCompactHex",value:function(){return F(this.r)+F(this.s)}}],[{key:"fromCompact",value:function(t){const r=t instanceof Uint8Array,n="Signature.fromCompact";if("string"!=typeof t&&!r)throw new TypeError(`${n}: Expected string or Uint8Array`);const i=r?D(t):t;if(128!==i.length)throw new Error(`${n}: Expected 64-byte hex`);return new e(q(i.slice(0,64)),q(i.slice(64,128)))}},{key:"fromDER",value:function(t){const r=t instanceof Uint8Array;if("string"!=typeof t&&!r)throw new TypeError("Signature.fromDER: Expected string or Uint8Array");const{r:n,s:i}=function(e){if(e.length<2||48!=e[0])throw new Error(`Invalid signature tag: ${D(e)}`);if(e[1]!==e.length-2)throw new Error("Invalid signature: incorrect length");const{data:t,left:r}=R(e.subarray(2)),{data:n,left:i}=R(r);if(i.length)throw new Error(`Invalid signature: left bytes after parsing: ${D(i)}`);return{r:t,s:n}}(r?t:K(t));return new e(n,i)}},{key:"fromHex",value:function(e){return this.fromDER(e)}}]),e}();function U(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!t.every((e=>e instanceof Uint8Array)))throw new Error("Uint8Array list expected");if(1===t.length)return t[0];const n=t.reduce(((e,t)=>e+t.length),0),i=new Uint8Array(n);for(let e=0,r=0;e<t.length;e++){const n=t[e];i.set(n,r),r+=n.length}return i}t.Signature=C;const L=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function D(e){if(!(e instanceof Uint8Array))throw new Error("Expected Uint8Array");let t="";for(let r=0;r<e.length;r++)t+=L[e[r]];return t}const H=BigInt("0x10000000000000000000000000000000000000000000000000000000000000000");function F(e){if("bigint"!=typeof e)throw new Error("Expected bigint");if(!(p<=e&&e<H))throw new Error("Expected number 0 <= n < 2^256");return e.toString(16).padStart(64,"0")}function V(e){const t=K(F(e));if(32!==t.length)throw new Error("Error: expected 32 bytes");return t}function z(e){const t=e.toString(16);return 1&t.length?`0${t}`:t}function q(e){if("string"!=typeof e)throw new TypeError("hexToNumber: expected string, got "+typeof e);return BigInt(`0x${e}`)}function K(e){if("string"!=typeof e)throw new TypeError("hexToBytes: expected string, got "+typeof e);if(e.length%2)throw new Error("hexToBytes: received invalid unpadded hex"+e.length);const t=new Uint8Array(e.length/2);for(let r=0;r<t.length;r++){const n=2*r,i=e.slice(n,n+2),o=Number.parseInt(i,16);if(Number.isNaN(o)||o<0)throw new Error("Invalid byte sequence");t[r]=o}return t}function W(e){return q(D(e))}function G(e){return e instanceof Uint8Array?Uint8Array.from(e):K(e)}function X(e){if("number"==typeof e&&Number.isSafeInteger(e)&&e>0)return BigInt(e);if("bigint"==typeof e&&re(e))return e;throw new TypeError("Expected valid private scalar: 0 < scalar < curve.n")}function Z(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.P;const r=e%t;return r>=p?r:t+r}function J(e,t){const{P:r}=v;let n=e;for(;t-- >p;)n*=n,n%=r;return n}function Y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.P;if(e===p||t<=p)throw new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let r=Z(e,t),n=t,i=p,o=b,a=b,s=p;for(;r!==p;){const e=n/r,t=n%r,u=i-a*e,c=o-s*e;n=r,r=t,i=a,o=s,a=u,s=c}if(n!==b)throw new Error("invert: does not exist");return Z(i,t)}function Q(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=function(e){const t=8*e.length-8*O,r=W(e);return t>0?r>>BigInt(t):r}(e);if(t)return r;const{n}=v;return r>=n?r-n:r}let $,ee,te=function(){function e(t,r){if((0,a.default)(this,e),this.hashLen=t,this.qByteLen=r,"number"!=typeof t||t<2)throw new Error("hashLen must be a number");if("number"!=typeof r||r<2)throw new Error("qByteLen must be a number");this.v=new Uint8Array(t).fill(1),this.k=new Uint8Array(t).fill(0),this.counter=0}return(0,o.default)(e,[{key:"hmac",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.utils.hmacSha256(this.k,...r)}},{key:"hmacSync",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ee(this.k,...t)}},{key:"checkSync",value:function(){if("function"!=typeof ee)throw new E("hmacSha256Sync needs to be set")}},{key:"incr",value:function(){if(this.counter>=1e3)throw new Error("Tried 1,000 k values for sign(), all were invalid");this.counter+=1}},{key:"reseed",value:async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Uint8Array;this.k=await this.hmac(this.v,Uint8Array.from([0]),e),this.v=await this.hmac(this.v),0!==e.length&&(this.k=await this.hmac(this.v,Uint8Array.from([1]),e),this.v=await this.hmac(this.v))}},{key:"reseedSync",value:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Uint8Array;this.checkSync(),this.k=this.hmacSync(this.v,Uint8Array.from([0]),e),this.v=this.hmacSync(this.v),0!==e.length&&(this.k=this.hmacSync(this.v,Uint8Array.from([1]),e),this.v=this.hmacSync(this.v))}},{key:"generate",value:async function(){this.incr();let e=0;const t=[];for(;e<this.qByteLen;){this.v=await this.hmac(this.v);const r=this.v.slice();t.push(r),e+=this.v.length}return U(...t)}},{key:"generateSync",value:function(){this.checkSync(),this.incr();let e=0;const t=[];for(;e<this.qByteLen;){this.v=this.hmacSync(this.v);const r=this.v.slice();t.push(r),e+=this.v.length}return U(...t)}}]),e}();function re(e){return p<e&&e<v.n}function ne(e){return p<e&&e<v.P}function ie(e,t,r){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const{n:i}=v,o=Q(e,!0);if(!re(o))return;const a=Y(o,i),s=I.BASE.multiply(o),u=Z(s.x,i);if(u===p)return;const c=Z(a*Z(t+r*u,i),i);if(c===p)return;let f=new C(u,c),l=(s.x===f.r?0:2)|Number(s.y&b);return n&&f.hasHighS()&&(f=f.normalizeS(),l^=1),{sig:f,recovery:l}}function oe(e){let t;if("bigint"==typeof e)t=e;else if("number"==typeof e&&Number.isSafeInteger(e)&&e>0)t=BigInt(e);else if("string"==typeof e){if(e.length!==2*O)throw new Error("Expected 32 bytes of private key");t=q(e)}else{if(!(e instanceof Uint8Array))throw new TypeError("Expected valid private key");if(e.length!==O)throw new Error("Expected 32 bytes of private key");t=W(e)}if(!re(t))throw new Error("Expected private key: 0 < key < n");return t}function ae(e){return e instanceof I?(e.assertValidity(),e):I.fromHex(e)}function se(e){if(e instanceof C)return e.assertValidity(),e;try{return C.fromDER(e)}catch(t){return C.fromCompact(e)}}function ue(e){const t=e instanceof Uint8Array,r="string"==typeof e,n=(t||r)&&e.length;return t?n===k||n===P:r?n===2*k||n===2*P:e instanceof I}function ce(e){return W(e.length>x?e.slice(0,x):e)}function fe(e){const t=ce(e),r=Z(t,v.n);return le(r<p?t:r)}function le(e){return V(e)}function de(e,r,n){if(null==e)throw new Error(`sign: expected valid message hash, not "${e}"`);const i=G(e),o=oe(r),a=[le(o),fe(i)];if(null!=n){!0===n&&(n=t.utils.randomBytes(x));const e=G(n);if(e.length!==x)throw new Error(`sign: Expected ${x} bytes of extra data`);a.push(e)}return{seed:U(...a),m:ce(i),d:o}}function he(e,t){const{sig:r,recovery:n}=e,{der:i,recovered:o}=Object.assign({canonical:!0,der:!0},t),a=i?r.toDERRawBytes():r.toCompactRawBytes();return o?[a,n]:a}t.getPublicKey=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return I.fromPrivateKey(e).toRawBytes(t)},t.recoverPublicKey=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return I.fromSignature(e,t,r).toRawBytes(n)},t.getSharedSecret=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(ue(e))throw new TypeError("getSharedSecret: first arg must be private key");if(!ue(t))throw new TypeError("getSharedSecret: second arg must be public key");const n=ae(t);return n.assertValidity(),n.multiply(oe(e)).toRawBytes(r)},t.sign=async function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{seed:n,m:i,d:o}=de(e,t,r.extraEntropy),a=new te(32,O);let s;for(await a.reseed(n);!(s=ie(await a.generate(),i,o,r.canonical));)await a.reseed();return he(s,r)},t.signSync=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{seed:n,m:i,d:o}=de(e,t,r.extraEntropy),a=new te(32,O);let s;for(a.reseedSync(n);!(s=ie(a.generateSync(),i,o,r.canonical));)a.reseedSync();return he(s,r)};const pe={strict:!0};function be(e){return Z(W(e),v.n)}t.verify=function(e,t,r){let n,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:pe;try{n=se(e),t=G(t)}catch(e){return!1}const{r:o,s:a}=n;if(i.strict&&n.hasHighS())return!1;const s=Q(t);let u;try{u=ae(r)}catch(e){return!1}const{n:c}=v,f=Y(a,c),l=Z(s*f,c),d=Z(o*f,c),h=I.BASE.multiplyAndAddUnsafe(u,l,d);return!!h&&Z(h.x,c)===o};let ye=function(){function e(t,r){(0,a.default)(this,e),this.r=t,this.s=r,this.assertValidity()}return(0,o.default)(e,[{key:"assertValidity",value:function(){const{r:e,s:t}=this;if(!ne(e)||!re(t))throw new Error("Invalid signature")}},{key:"toHex",value:function(){return F(this.r)+F(this.s)}},{key:"toRawBytes",value:function(){return K(this.toHex())}}],[{key:"fromHex",value:function(t){const r=G(t);if(64!==r.length)throw new TypeError(`SchnorrSignature.fromHex: expected 64 bytes, not ${r.length}`);return new e(W(r.subarray(0,32)),W(r.subarray(32,64)))}}]),e}(),ge=function(){function e(r,n){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.utils.randomBytes();if((0,a.default)(this,e),null==r)throw new TypeError(`sign: Expected valid message, not "${r}"`);this.m=G(r);const{x:o,scalar:s}=this.getScalar(oe(n));if(this.px=o,this.d=s,this.rand=G(i),32!==this.rand.length)throw new TypeError("sign: Expected 32 bytes of aux randomness")}return(0,o.default)(e,[{key:"getScalar",value:function(e){const t=I.fromPrivateKey(e),r=t.hasEvenY()?e:v.n-e;return{point:t,scalar:r,x:t.toRawX()}}},{key:"initNonce",value:function(e,t){return V(e^W(t))}},{key:"finalizeNonce",value:function(e){const t=Z(W(e),v.n);if(t===p)throw new Error("sign: Creation of signature failed. k is zero");const{point:r,x:n,scalar:i}=this.getScalar(t);return{R:r,rx:n,k:i}}},{key:"finalizeSig",value:function(e,t,r,n){return new ye(e.x,Z(t+r*n,v.n)).toRawBytes()}},{key:"error",value:function(){throw new Error("sign: Invalid signature produced")}},{key:"calc",value:async function(){const{m:e,d:r,px:n,rand:i}=this,o=t.utils.taggedHash,a=this.initNonce(r,await o(Oe.aux,i)),{R:s,rx:u,k:c}=this.finalizeNonce(await o(Oe.nonce,a,n,e)),f=be(await o(Oe.challenge,u,n,e)),l=this.finalizeSig(s,c,f,r);return await we(l,e,n)||this.error(),l}},{key:"calcSync",value:function(){const{m:e,d:r,px:n,rand:i}=this,o=t.utils.taggedHashSync,a=this.initNonce(r,o(Oe.aux,i)),{R:s,rx:u,k:c}=this.finalizeNonce(o(Oe.nonce,a,n,e)),f=be(o(Oe.challenge,u,n,e)),l=this.finalizeSig(s,c,f,r);return _e(l,e,n)||this.error(),l}}]),e}();function me(e,t,r){const n=e instanceof ye,i=n?e:ye.fromHex(e);return n&&i.assertValidity(),d(d({},i),{},{m:G(t),P:ae(r)})}function ve(e,t,r,n){const i=I.BASE.multiplyAndAddUnsafe(t,oe(r),Z(-n,v.n));return!(!i||!i.hasEvenY()||i.x!==e)}async function we(e,r,n){try{const{r:i,s:o,m:a,P:s}=me(e,r,n),u=be(await t.utils.taggedHash(Oe.challenge,V(i),s.toRawX(),a));return ve(i,s,o,u)}catch(e){return!1}}function _e(e,r,n){try{const{r:i,s:o,m:a,P:s}=me(e,r,n),u=be(t.utils.taggedHashSync(Oe.challenge,V(i),s.toRawX(),a));return ve(i,s,o,u)}catch(e){if(e instanceof E)throw e;return!1}}t.schnorr={Signature:ye,getPublicKey:function(e){return I.fromPrivateKey(e).toRawX()},sign:async function(e,t,r){return new ge(e,t,r).calc()},verify:we,signSync:function(e,t,r){return new ge(e,t,r).calcSync()},verifySync:_e},I.BASE._setWindowSize(8);const xe={node:h,web:"object"==typeof self&&"crypto"in self?self.crypto:void 0},Oe={challenge:"BIP0340/challenge",aux:"BIP0340/aux",nonce:"BIP0340/nonce"},ke={};t.utils={bytesToHex:D,hexToBytes:K,concatBytes:U,mod:Z,invert:Y,isValidPrivateKey(e){try{return oe(e),!0}catch(e){return!1}},_bigintTo32Bytes:V,_normalizePrivateKey:oe,hashToPrivateKey:e=>{e=G(e);const t=O+8;if(e.length<t||e.length>1024)throw new Error("Expected valid bytes of private key as per FIPS 186");return V(Z(W(e),v.n-b)+b)},randomBytes:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32;if(xe.web)return xe.web.getRandomValues(new Uint8Array(e));if(xe.node){const{randomBytes:t}=xe.node;return Uint8Array.from(t(e))}throw new Error("The environment doesn't have randomBytes function")},randomPrivateKey:()=>t.utils.hashToPrivateKey(t.utils.randomBytes(O+8)),precompute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:I.BASE;const r=t===I.BASE?t:new I(t.x,t.y);return r._setWindowSize(e),r.multiply(g),r},sha256:async function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(xe.web){const e=await xe.web.subtle.digest("SHA-256",U(...t));return new Uint8Array(e)}if(xe.node){const{createHash:e}=xe.node,r=e("sha256");return t.forEach((e=>r.update(e))),Uint8Array.from(r.digest())}throw new Error("The environment doesn't have sha256 function")},hmacSha256:async function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(xe.web){const t=await xe.web.subtle.importKey("raw",e,{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign"]),n=U(...r),i=await xe.web.subtle.sign("HMAC",t,n);return new Uint8Array(i)}if(xe.node){const{createHmac:t}=xe.node,n=t("sha256",e);return r.forEach((e=>n.update(e))),Uint8Array.from(n.digest())}throw new Error("The environment doesn't have hmac-sha256 function")},sha256Sync:void 0,hmacSha256Sync:void 0,taggedHash:async function(e){let r=ke[e];if(void 0===r){const n=await t.utils.sha256(Uint8Array.from(e,(e=>e.charCodeAt(0))));r=U(n,n),ke[e]=r}for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return t.utils.sha256(r,...i)},taggedHashSync:function(e){if("function"!=typeof $)throw new E("sha256Sync is undefined, you need to set it");let t=ke[e];if(void 0===t){const r=$(Uint8Array.from(e,(e=>e.charCodeAt(0))));t=U(r,r),ke[e]=t}for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return $(t,...n)},_JacobianPoint:j},Object.defineProperties(t.utils,{sha256Sync:{configurable:!1,get:()=>$,set(e){$||($=e)}},hmacSha256Sync:{configurable:!1,get:()=>ee,set(e){ee||(ee=e)}}})},28918:e=>{"use strict";var t=Object.prototype.hasOwnProperty,r="~";function n(){}function i(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function o(e,t,n,o,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new i(n,o||e,a),u=r?r+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],s]:e._events[u].push(s):(e._events[u]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function s(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),s.prototype.eventNames=function(){var e,n,i=[];if(0===this._eventsCount)return i;for(n in e=this._events)t.call(e,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,a=new Array(o);i<o;i++)a[i]=n[i].fn;return a},s.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},s.prototype.emit=function(e,t,n,i,o,a){var s=r?r+e:e;if(!this._events[s])return!1;var u,c,f=this._events[s],l=arguments.length;if(f.fn){switch(f.once&&this.removeListener(e,f.fn,void 0,!0),l){case 1:return f.fn.call(f.context),!0;case 2:return f.fn.call(f.context,t),!0;case 3:return f.fn.call(f.context,t,n),!0;case 4:return f.fn.call(f.context,t,n,i),!0;case 5:return f.fn.call(f.context,t,n,i,o),!0;case 6:return f.fn.call(f.context,t,n,i,o,a),!0}for(c=1,u=new Array(l-1);c<l;c++)u[c-1]=arguments[c];f.fn.apply(f.context,u)}else{var d,h=f.length;for(c=0;c<h;c++)switch(f[c].once&&this.removeListener(e,f[c].fn,void 0,!0),l){case 1:f[c].fn.call(f[c].context);break;case 2:f[c].fn.call(f[c].context,t);break;case 3:f[c].fn.call(f[c].context,t,n);break;case 4:f[c].fn.call(f[c].context,t,n,i);break;default:if(!u)for(d=1,u=new Array(l-1);d<l;d++)u[d-1]=arguments[d];f[c].fn.apply(f[c].context,u)}}return!0},s.prototype.on=function(e,t,r){return o(this,e,t,r,!1)},s.prototype.once=function(e,t,r){return o(this,e,t,r,!0)},s.prototype.removeListener=function(e,t,n,i){var o=r?r+e:e;if(!this._events[o])return this;if(!t)return a(this,o),this;var s=this._events[o];if(s.fn)s.fn!==t||i&&!s.once||n&&s.context!==n||a(this,o);else{for(var u=0,c=[],f=s.length;u<f;u++)(s[u].fn!==t||i&&!s[u].once||n&&s[u].context!==n)&&c.push(s[u]);c.length?this._events[o]=1===c.length?c[0]:c:a(this,o)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&a(this,t)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s},69715:(e,t)=>{"use strict";function r(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function n(e){if("boolean"!=typeof e)throw new Error(`Expected boolean, not ${e}`)}function i(e){if(!(e instanceof Uint8Array))throw new TypeError("Expected Uint8Array");for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(r.length>0&&!r.includes(e.length))throw new TypeError(`Expected Uint8Array of length ${r}, not of length=${e.length}`)}function o(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");r(e.outputLen),r(e.blockLen)}function a(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function s(e,t){i(e);const r=t.outputLen;if(e.length<r)throw new Error(`digestInto() expects output buffer of length at least ${r}`)}Object.defineProperty(t,"__esModule",{value:!0}),t.output=t.exists=t.hash=t.bytes=t.bool=t.number=void 0,t.number=r,t.bool=n,t.bytes=i,t.hash=o,t.exists=a,t.output=s;const u={number:r,bool:n,bytes:i,hash:o,exists:a,output:s};t.default=u},38102:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.BLAKE2=t.SIGMA=void 0;const c=r(69715),f=r(41909);t.SIGMA=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3]);let l=function(e){(0,a.default)(l,e);var t,r,n=(t=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function l(e,t){var r;let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,u=arguments.length>5?arguments[5]:void 0;if((0,i.default)(this,l),(r=n.call(this)).blockLen=e,r.outputLen=t,r.length=0,r.pos=0,r.finished=!1,r.destroyed=!1,c.default.number(e),c.default.number(t),c.default.number(a),t<0||t>a)throw new Error("Blake2: outputLen bigger than keyLen");if(void 0!==o.key&&(o.key.length<1||o.key.length>a))throw new Error(`Key should be up 1..${a} byte long or undefined`);if(void 0!==o.salt&&o.salt.length!==s)throw new Error(`Salt should be ${s} byte long or undefined`);if(void 0!==o.personalization&&o.personalization.length!==u)throw new Error(`Personalization should be ${u} byte long or undefined`);return r.buffer32=(0,f.u32)(r.buffer=new Uint8Array(e)),r}return(0,o.default)(l,[{key:"update",value:function(e){c.default.exists(this);const{blockLen:t,buffer:r,buffer32:n}=this,i=(e=(0,f.toBytes)(e)).length;for(let o=0;o<i;){this.pos===t&&(this.compress(n,0,!1),this.pos=0);const a=Math.min(t-this.pos,i-o),s=e.byteOffset+o;if(a!==t||s%4||!(o+a<i))r.set(e.subarray(o,o+a),this.pos),this.pos+=a,this.length+=a,o+=a;else{const r=new Uint32Array(e.buffer,s,Math.floor((i-o)/4));for(let e=0;o+t<i;e+=n.length,o+=t)this.length+=t,this.compress(r,e,!1)}}return this}},{key:"digestInto",value:function(e){c.default.exists(this),c.default.output(e,this);const{pos:t,buffer32:r}=this;this.finished=!0,this.buffer.subarray(t).fill(0),this.compress(r,0,!0);const n=(0,f.u32)(e);this.get().forEach(((e,t)=>n[t]=e))}},{key:"digest",value:function(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const r=e.slice(0,t);return this.destroy(),r}},{key:"_cloneInto",value:function(e){const{buffer:t,length:r,finished:n,destroyed:i,outputLen:o,pos:a}=this;return e||(e=new this.constructor({dkLen:o})),e.set(...this.get()),e.length=r,e.finished=n,e.destroyed=i,e.outputLen=o,e.buffer.set(t),e.pos=a,e}}]),l}(f.Hash);t.BLAKE2=l},93214:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.SHA2=void 0;const c=r(69715),f=r(41909);let l=function(e){(0,a.default)(l,e);var t,r,n=(t=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function l(e,t,r,o){var a;return(0,i.default)(this,l),(a=n.call(this)).blockLen=e,a.outputLen=t,a.padOffset=r,a.isLE=o,a.finished=!1,a.length=0,a.pos=0,a.destroyed=!1,a.buffer=new Uint8Array(e),a.view=(0,f.createView)(a.buffer),a}return(0,o.default)(l,[{key:"update",value:function(e){c.default.exists(this);const{view:t,buffer:r,blockLen:n}=this,i=(e=(0,f.toBytes)(e)).length;for(let o=0;o<i;){const a=Math.min(n-this.pos,i-o);if(a!==n)r.set(e.subarray(o,o+a),this.pos),this.pos+=a,o+=a,this.pos===n&&(this.process(t,0),this.pos=0);else{const t=(0,f.createView)(e);for(;n<=i-o;o+=n)this.process(t,o)}}return this.length+=e.length,this.roundClean(),this}},{key:"digestInto",value:function(e){c.default.exists(this),c.default.output(e,this),this.finished=!0;const{buffer:t,view:r,blockLen:n,isLE:i}=this;let{pos:o}=this;t[o++]=128,this.buffer.subarray(o).fill(0),this.padOffset>n-o&&(this.process(r,0),o=0);for(let e=o;e<n;e++)t[e]=0;!function(e,t,r,n){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,r,n);const i=BigInt(32),o=BigInt(4294967295),a=Number(r>>i&o),s=Number(r&o),u=n?4:0,c=n?0:4;e.setUint32(t+u,a,n),e.setUint32(t+c,s,n)}(r,n-8,BigInt(8*this.length),i),this.process(r,0);const a=(0,f.createView)(e),s=this.outputLen;if(s%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=s/4,l=this.get();if(u>l.length)throw new Error("_sha2: outputLen bigger than state");for(let e=0;e<u;e++)a.setUint32(4*e,l[e],i)}},{key:"digest",value:function(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const r=e.slice(0,t);return this.destroy(),r}},{key:"_cloneInto",value:function(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:t,buffer:r,length:n,finished:i,destroyed:o,pos:a}=this;return e.length=n,e.pos=a,e.finished=i,e.destroyed=o,n%t&&e.buffer.set(r),e}}]),l}(f.Hash);t.SHA2=l},74133:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.add=t.toBig=t.split=t.fromBig=void 0;const r=BigInt(2**32-1),n=BigInt(32);function i(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?{h:Number(e&r),l:Number(e>>n&r)}:{h:0|Number(e>>n&r),l:0|Number(e&r)}}function o(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let o=0;o<e.length;o++){const{h:a,l:s}=i(e[o],t);[r[o],n[o]]=[a,s]}return[r,n]}function a(e,t,r,n){const i=(t>>>0)+(n>>>0);return{h:e+r+(i/2**32|0)|0,l:0|i}}t.fromBig=i,t.split=o,t.toBig=(e,t)=>BigInt(e>>>0)<<n|BigInt(t>>>0),t.add=a;const s={fromBig:i,split:o,toBig:t.toBig,shrSH:(e,t,r)=>e>>>r,shrSL:(e,t,r)=>e<<32-r|t>>>r,rotrSH:(e,t,r)=>e>>>r|t<<32-r,rotrSL:(e,t,r)=>e<<32-r|t>>>r,rotrBH:(e,t,r)=>e<<64-r|t>>>r-32,rotrBL:(e,t,r)=>e>>>r-32|t<<64-r,rotr32H:(e,t)=>t,rotr32L:(e,t)=>e,rotlSH:(e,t,r)=>e<<r|t>>>32-r,rotlSL:(e,t,r)=>t<<r|e>>>32-r,rotlBH:(e,t,r)=>t<<r-32|e>>>64-r,rotlBL:(e,t,r)=>e<<r-32|t>>>64-r,add:a,add3L:(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),add3H:(e,t,r,n)=>t+r+n+(e/2**32|0)|0,add4L:(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),add4H:(e,t,r,n,i)=>t+r+n+i+(e/2**32|0)|0,add5H:(e,t,r,n,i,o)=>t+r+n+i+o+(e/2**32|0)|0,add5L:(e,t,r,n,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(i>>>0)};t.default=s},39973:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.blake2b=void 0;const c=r(38102),f=r(74133),l=r(41909),d=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),h=new Uint32Array(32);function p(e,t,r,n,i,o){const a=i[o],s=i[o+1];let u=h[2*e],c=h[2*e+1],l=h[2*t],d=h[2*t+1],p=h[2*r],b=h[2*r+1],y=h[2*n],g=h[2*n+1],m=f.default.add3L(u,l,a);c=f.default.add3H(m,c,d,s),u=0|m,({Dh:g,Dl:y}={Dh:g^c,Dl:y^u}),({Dh:g,Dl:y}={Dh:f.default.rotr32H(g,y),Dl:f.default.rotr32L(g,y)}),({h:b,l:p}=f.default.add(b,p,g,y)),({Bh:d,Bl:l}={Bh:d^b,Bl:l^p}),({Bh:d,Bl:l}={Bh:f.default.rotrSH(d,l,24),Bl:f.default.rotrSL(d,l,24)}),h[2*e]=u,h[2*e+1]=c,h[2*t]=l,h[2*t+1]=d,h[2*r]=p,h[2*r+1]=b,h[2*n]=y,h[2*n+1]=g}function b(e,t,r,n,i,o){const a=i[o],s=i[o+1];let u=h[2*e],c=h[2*e+1],l=h[2*t],d=h[2*t+1],p=h[2*r],b=h[2*r+1],y=h[2*n],g=h[2*n+1],m=f.default.add3L(u,l,a);c=f.default.add3H(m,c,d,s),u=0|m,({Dh:g,Dl:y}={Dh:g^c,Dl:y^u}),({Dh:g,Dl:y}={Dh:f.default.rotrSH(g,y,16),Dl:f.default.rotrSL(g,y,16)}),({h:b,l:p}=f.default.add(b,p,g,y)),({Bh:d,Bl:l}={Bh:d^b,Bl:l^p}),({Bh:d,Bl:l}={Bh:f.default.rotrBH(d,l,63),Bl:f.default.rotrBL(d,l,63)}),h[2*e]=u,h[2*e+1]=c,h[2*t]=l,h[2*t+1]=d,h[2*r]=p,h[2*r+1]=b,h[2*n]=y,h[2*n+1]=g}let y=function(e){(0,a.default)(y,e);var t,r,n=(t=y,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function y(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,i.default)(this,y),(e=n.call(this,128,void 0===t.dkLen?64:t.dkLen,t,64,16,16)).v0l=0|d[0],e.v0h=0|d[1],e.v1l=0|d[2],e.v1h=0|d[3],e.v2l=0|d[4],e.v2h=0|d[5],e.v3l=0|d[6],e.v3h=0|d[7],e.v4l=0|d[8],e.v4h=0|d[9],e.v5l=0|d[10],e.v5h=0|d[11],e.v6l=0|d[12],e.v6h=0|d[13],e.v7l=0|d[14],e.v7h=0|d[15];const r=t.key?t.key.length:0;if(e.v0l^=e.outputLen|r<<8|65536|1<<24,t.salt){const r=(0,l.u32)((0,l.toBytes)(t.salt));e.v4l^=r[0],e.v4h^=r[1],e.v5l^=r[2],e.v5h^=r[3]}if(t.personalization){const r=(0,l.u32)((0,l.toBytes)(t.personalization));e.v6l^=r[0],e.v6h^=r[1],e.v7l^=r[2],e.v7h^=r[3]}if(t.key){const r=new Uint8Array(e.blockLen);r.set((0,l.toBytes)(t.key)),e.update(r)}return e}return(0,o.default)(y,[{key:"get",value:function(){let{v0l:e,v0h:t,v1l:r,v1h:n,v2l:i,v2h:o,v3l:a,v3h:s,v4l:u,v4h:c,v5l:f,v5h:l,v6l:d,v6h:h,v7l:p,v7h:b}=this;return[e,t,r,n,i,o,a,s,u,c,f,l,d,h,p,b]}},{key:"set",value:function(e,t,r,n,i,o,a,s,u,c,f,l,d,h,p,b){this.v0l=0|e,this.v0h=0|t,this.v1l=0|r,this.v1h=0|n,this.v2l=0|i,this.v2h=0|o,this.v3l=0|a,this.v3h=0|s,this.v4l=0|u,this.v4h=0|c,this.v5l=0|f,this.v5h=0|l,this.v6l=0|d,this.v6h=0|h,this.v7l=0|p,this.v7h=0|b}},{key:"compress",value:function(e,t,r){this.get().forEach(((e,t)=>h[t]=e)),h.set(d,16);let{h:n,l:i}=f.default.fromBig(BigInt(this.length));h[24]=d[8]^i,h[25]=d[9]^n,r&&(h[28]=~h[28],h[29]=~h[29]);let o=0;const a=c.SIGMA;for(let r=0;r<12;r++)p(0,4,8,12,e,t+2*a[o++]),b(0,4,8,12,e,t+2*a[o++]),p(1,5,9,13,e,t+2*a[o++]),b(1,5,9,13,e,t+2*a[o++]),p(2,6,10,14,e,t+2*a[o++]),b(2,6,10,14,e,t+2*a[o++]),p(3,7,11,15,e,t+2*a[o++]),b(3,7,11,15,e,t+2*a[o++]),p(0,5,10,15,e,t+2*a[o++]),b(0,5,10,15,e,t+2*a[o++]),p(1,6,11,12,e,t+2*a[o++]),b(1,6,11,12,e,t+2*a[o++]),p(2,7,8,13,e,t+2*a[o++]),b(2,7,8,13,e,t+2*a[o++]),p(3,4,9,14,e,t+2*a[o++]),b(3,4,9,14,e,t+2*a[o++]);this.v0l^=h[0]^h[16],this.v0h^=h[1]^h[17],this.v1l^=h[2]^h[18],this.v1h^=h[3]^h[19],this.v2l^=h[4]^h[20],this.v2h^=h[5]^h[21],this.v3l^=h[6]^h[22],this.v3h^=h[7]^h[23],this.v4l^=h[8]^h[24],this.v4h^=h[9]^h[25],this.v5l^=h[10]^h[26],this.v5h^=h[11]^h[27],this.v6l^=h[12]^h[28],this.v6h^=h[13]^h[29],this.v7l^=h[14]^h[30],this.v7h^=h[15]^h[31],h.fill(0)}},{key:"destroy",value:function(){this.destroyed=!0,this.buffer32.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}]),y}(c.BLAKE2);t.blake2b=(0,l.wrapConstructorWithOpts)((e=>new y(e)))},83140:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto={node:void 0,web:"object"==typeof self&&"crypto"in self?self.crypto:void 0}},5842:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=void 0;const c=r(69715),f=r(41909);let l=function(e){(0,a.default)(l,e);var t,r,n=(t=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function l(e,t){var r;(0,i.default)(this,l),(r=n.call(this)).finished=!1,r.destroyed=!1,c.default.hash(e);const o=(0,f.toBytes)(t);if(r.iHash=e.create(),"function"!=typeof r.iHash.update)throw new TypeError("Expected instance of class which extends utils.Hash");r.blockLen=r.iHash.blockLen,r.outputLen=r.iHash.outputLen;const a=r.blockLen,s=new Uint8Array(a);s.set(o.length>a?e.create().update(o).digest():o);for(let e=0;e<s.length;e++)s[e]^=54;r.iHash.update(s),r.oHash=e.create();for(let e=0;e<s.length;e++)s[e]^=106;return r.oHash.update(s),s.fill(0),r}return(0,o.default)(l,[{key:"update",value:function(e){return c.default.exists(this),this.iHash.update(e),this}},{key:"digestInto",value:function(e){c.default.exists(this),c.default.bytes(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}},{key:"digest",value:function(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}},{key:"_cloneInto",value:function(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:t,iHash:r,finished:n,destroyed:i,blockLen:o,outputLen:a}=this;return e.finished=n,e.destroyed=i,e.blockLen=o,e.outputLen=a,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}},{key:"destroy",value:function(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}]),l}(f.Hash);t.hmac=(e,t,r)=>new l(e,t).update(r).digest(),t.hmac.create=(e,t)=>new l(e,t)},98497:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pbkdf2Async=t.pbkdf2=void 0;const n=r(69715),i=r(5842),o=r(41909);function a(e,t,r,a){n.default.hash(e);const s=(0,o.checkOpts)({dkLen:32,asyncTick:10},a),{c:u,dkLen:c,asyncTick:f}=s;if(n.default.number(u),n.default.number(c),n.default.number(f),u<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const l=(0,o.toBytes)(t),d=(0,o.toBytes)(r),h=new Uint8Array(c),p=i.hmac.create(e,l),b=p._cloneInto().update(d);return{c:u,dkLen:c,asyncTick:f,DK:h,PRF:p,PRFSalt:b}}function s(e,t,r,n,i){return e.destroy(),t.destroy(),n&&n.destroy(),i.fill(0),r}t.pbkdf2=function(e,t,r,n){const{c:i,dkLen:u,DK:c,PRF:f,PRFSalt:l}=a(e,t,r,n);let d;const h=new Uint8Array(4),p=(0,o.createView)(h),b=new Uint8Array(f.outputLen);for(let e=1,t=0;t<u;e++,t+=f.outputLen){const r=c.subarray(t,t+f.outputLen);p.setInt32(0,e,!1),(d=l._cloneInto(d)).update(h).digestInto(b),r.set(b.subarray(0,r.length));for(let e=1;e<i;e++){f._cloneInto(d).update(b).digestInto(b);for(let e=0;e<r.length;e++)r[e]^=b[e]}}return s(f,l,c,d,b)},t.pbkdf2Async=async function(e,t,r,n){const{c:i,dkLen:u,asyncTick:c,DK:f,PRF:l,PRFSalt:d}=a(e,t,r,n);let h;const p=new Uint8Array(4),b=(0,o.createView)(p),y=new Uint8Array(l.outputLen);for(let e=1,t=0;t<u;e++,t+=l.outputLen){const r=f.subarray(t,t+l.outputLen);b.setInt32(0,e,!1),(h=d._cloneInto(h)).update(p).digestInto(y),r.set(y.subarray(0,r.length)),await(0,o.asyncLoop)(i-1,c,(e=>{l._cloneInto(h).update(y).digestInto(y);for(let e=0;e<r.length;e++)r[e]^=y[e]}))}return s(l,d,f,h,y)}},56147:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scryptAsync=t.scrypt=void 0;const n=r(69715),i=r(15468),o=r(98497),a=r(41909),s=(e,t)=>e<<t|e>>>32-t;function u(e,t,r,n,i,o){let a=e[t++]^r[n++],u=e[t++]^r[n++],c=e[t++]^r[n++],f=e[t++]^r[n++],l=e[t++]^r[n++],d=e[t++]^r[n++],h=e[t++]^r[n++],p=e[t++]^r[n++],b=e[t++]^r[n++],y=e[t++]^r[n++],g=e[t++]^r[n++],m=e[t++]^r[n++],v=e[t++]^r[n++],w=e[t++]^r[n++],_=e[t++]^r[n++],x=e[t++]^r[n++],O=a,k=u,P=c,S=f,A=l,E=d,M=h,j=p,T=b,B=y,I=g,N=m,R=v,C=w,U=_,L=x;for(let e=0;e<8;e+=2)A^=s(O+R|0,7),T^=s(A+O|0,9),R^=s(T+A|0,13),O^=s(R+T|0,18),B^=s(E+k|0,7),C^=s(B+E|0,9),k^=s(C+B|0,13),E^=s(k+C|0,18),U^=s(I+M|0,7),P^=s(U+I|0,9),M^=s(P+U|0,13),I^=s(M+P|0,18),S^=s(L+N|0,7),j^=s(S+L|0,9),N^=s(j+S|0,13),L^=s(N+j|0,18),k^=s(O+S|0,7),P^=s(k+O|0,9),S^=s(P+k|0,13),O^=s(S+P|0,18),M^=s(E+A|0,7),j^=s(M+E|0,9),A^=s(j+M|0,13),E^=s(A+j|0,18),N^=s(I+B|0,7),T^=s(N+I|0,9),B^=s(T+N|0,13),I^=s(B+T|0,18),R^=s(L+U|0,7),C^=s(R+L|0,9),U^=s(C+R|0,13),L^=s(U+C|0,18);i[o++]=a+O|0,i[o++]=u+k|0,i[o++]=c+P|0,i[o++]=f+S|0,i[o++]=l+A|0,i[o++]=d+E|0,i[o++]=h+M|0,i[o++]=p+j|0,i[o++]=b+T|0,i[o++]=y+B|0,i[o++]=g+I|0,i[o++]=m+N|0,i[o++]=v+R|0,i[o++]=w+C|0,i[o++]=_+U|0,i[o++]=x+L|0}function c(e,t,r,n,i){let o=n+0,a=n+16*i;for(let n=0;n<16;n++)r[a+n]=e[t+16*(2*i-1)+n];for(let n=0;n<i;n++,o+=16,t+=16)u(r,a,e,t,r,o),n>0&&(a+=16),u(r,o,e,t+=16,r,a)}function f(e,t,r){const s=(0,a.checkOpts)({dkLen:32,asyncTick:10,maxmem:1073742848},r),{N:u,r:c,p:f,dkLen:l,asyncTick:d,maxmem:h,onProgress:p}=s;if(n.default.number(u),n.default.number(c),n.default.number(f),n.default.number(l),n.default.number(d),n.default.number(h),void 0!==p&&"function"!=typeof p)throw new Error("progressCb should be function");const b=128*c,y=b/4;if(u<=1||0!=(u&u-1)||u>=2**(b/8)||u>2**32)throw new Error("Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32");if(f<0||f>137438953440/b)throw new Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(l<0||l>137438953440)throw new Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");const g=b*(u+f);if(g>h)throw new Error(`Scrypt: parameters too large, ${g} (128 * r * (N + p)) > ${h} (maxmem)`);const m=(0,o.pbkdf2)(i.sha256,e,t,{c:1,dkLen:b*f}),v=(0,a.u32)(m),w=(0,a.u32)(new Uint8Array(b*u)),_=(0,a.u32)(new Uint8Array(b));let x=()=>{};if(p){const e=2*u*f,t=Math.max(Math.floor(e/1e4),1);let r=0;x=()=>{r++,!p||r%t&&r!==e||p(r/e)}}return{N:u,r:c,p:f,dkLen:l,blockSize32:y,V:w,B32:v,B:m,tmp:_,blockMixCb:x,asyncTick:d}}function l(e,t,r,n,a){const s=(0,o.pbkdf2)(i.sha256,e,r,{c:1,dkLen:t});return r.fill(0),n.fill(0),a.fill(0),s}t.scrypt=function(e,t,r){const{N:n,r:i,p:o,dkLen:a,blockSize32:s,V:u,B32:d,B:h,tmp:p,blockMixCb:b}=f(e,t,r);for(let e=0;e<o;e++){const t=s*e;for(let e=0;e<s;e++)u[e]=d[t+e];for(let e=0,t=0;e<n-1;e++)c(u,t,u,t+=s,i),b();c(u,(n-1)*s,d,t,i),b();for(let e=0;e<n;e++){const e=d[t+s-16]%n;for(let r=0;r<s;r++)p[r]=d[t+r]^u[e*s+r];c(p,0,d,t,i),b()}}return l(e,a,h,u,p)},t.scryptAsync=async function(e,t,r){const{N:n,r:i,p:o,dkLen:s,blockSize32:u,V:d,B32:h,B:p,tmp:b,blockMixCb:y,asyncTick:g}=f(e,t,r);for(let e=0;e<o;e++){const t=u*e;for(let e=0;e<u;e++)d[e]=h[t+e];let r=0;await(0,a.asyncLoop)(n-1,g,(e=>{c(d,r,d,r+=u,i),y()})),c(d,(n-1)*u,h,t,i),y(),await(0,a.asyncLoop)(n,g,(e=>{const r=h[t+u-16]%n;for(let e=0;e<u;e++)b[e]=h[t+e]^d[r*u+e];c(b,0,h,t,i),y()}))}return l(e,s,p,d,b)}},15468:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,u.default)(e);if(t){var i=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.sha224=t.sha256=void 0;const f=r(93214),l=r(41909),d=(e,t,r)=>e&t^e&r^t&r,h=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),p=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),b=new Uint32Array(64);let y=function(e){(0,a.default)(r,e);var t=c(r);function r(){var e;return(0,i.default)(this,r),(e=t.call(this,64,32,8,!1)).A=0|p[0],e.B=0|p[1],e.C=0|p[2],e.D=0|p[3],e.E=0|p[4],e.F=0|p[5],e.G=0|p[6],e.H=0|p[7],e}return(0,o.default)(r,[{key:"get",value:function(){const{A:e,B:t,C:r,D:n,E:i,F:o,G:a,H:s}=this;return[e,t,r,n,i,o,a,s]}},{key:"set",value:function(e,t,r,n,i,o,a,s){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|i,this.F=0|o,this.G=0|a,this.H=0|s}},{key:"process",value:function(e,t){for(let r=0;r<16;r++,t+=4)b[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){const t=b[e-15],r=b[e-2],n=(0,l.rotr)(t,7)^(0,l.rotr)(t,18)^t>>>3,i=(0,l.rotr)(r,17)^(0,l.rotr)(r,19)^r>>>10;b[e]=i+b[e-7]+n+b[e-16]|0}let{A:r,B:n,C:i,D:o,E:a,F:s,G:u,H:c}=this;for(let e=0;e<64;e++){const t=c+((0,l.rotr)(a,6)^(0,l.rotr)(a,11)^(0,l.rotr)(a,25))+((f=a)&s^~f&u)+h[e]+b[e]|0,p=((0,l.rotr)(r,2)^(0,l.rotr)(r,13)^(0,l.rotr)(r,22))+d(r,n,i)|0;c=u,u=s,s=a,a=o+t|0,o=i,i=n,n=r,r=t+p|0}var f;r=r+this.A|0,n=n+this.B|0,i=i+this.C|0,o=o+this.D|0,a=a+this.E|0,s=s+this.F|0,u=u+this.G|0,c=c+this.H|0,this.set(r,n,i,o,a,s,u,c)}},{key:"roundClean",value:function(){b.fill(0)}},{key:"destroy",value:function(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}]),r}(f.SHA2),g=function(e){(0,a.default)(r,e);var t=c(r);function r(){var e;return(0,i.default)(this,r),(e=t.call(this)).A=-1056596264,e.B=914150663,e.C=812702999,e.D=-150054599,e.E=-4191439,e.F=1750603025,e.G=1694076839,e.H=-1090891868,e.outputLen=28,e}return(0,o.default)(r)}(y);t.sha256=(0,l.wrapConstructor)((()=>new y)),t.sha224=(0,l.wrapConstructor)((()=>new g))},3442:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.shake256=t.shake128=t.keccak_512=t.keccak_384=t.keccak_256=t.keccak_224=t.sha3_512=t.sha3_384=t.sha3_256=t.sha3_224=t.Keccak=t.keccakP=void 0;const c=r(69715),f=r(74133),l=r(41909),[d,h,p]=[[],[],[]],b=BigInt(0),y=BigInt(1),g=BigInt(2),m=BigInt(7),v=BigInt(256),w=BigInt(113);for(let e=0,t=y,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],d.push(2*(5*n+r)),h.push((e+1)*(e+2)/2%64);let i=b;for(let e=0;e<7;e++)t=(t<<y^(t>>m)*w)%v,t&g&&(i^=y<<(y<<BigInt(e))-y);p.push(i)}const[_,x]=f.default.split(p,!0),O=(e,t,r)=>r>32?f.default.rotlBH(e,t,r):f.default.rotlSH(e,t,r),k=(e,t,r)=>r>32?f.default.rotlBL(e,t,r):f.default.rotlSL(e,t,r);function P(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24;const r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){const n=(t+8)%10,i=(t+2)%10,o=r[i],a=r[i+1],s=O(o,a,1)^r[n],u=k(o,a,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=s,e[t+r+1]^=u}let t=e[2],i=e[3];for(let r=0;r<24;r++){const n=h[r],o=O(t,i,n),a=k(t,i,n),s=d[r];t=e[s],i=e[s+1],e[s]=o,e[s+1]=a}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)r[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~r[(n+2)%10]&r[(n+4)%10]}e[0]^=_[n],e[1]^=x[n]}r.fill(0)}t.keccakP=P;let S=function(e){(0,a.default)(f,e);var t,r,n=(t=f,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function f(e,t,r){var o;let a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:24;if((0,i.default)(this,f),(o=n.call(this)).blockLen=e,o.suffix=t,o.outputLen=r,o.enableXOF=a,o.rounds=s,o.pos=0,o.posOut=0,o.finished=!1,o.destroyed=!1,c.default.number(r),0>=o.blockLen||o.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");return o.state=new Uint8Array(200),o.state32=(0,l.u32)(o.state),o}return(0,o.default)(f,[{key:"keccak",value:function(){P(this.state32,this.rounds),this.posOut=0,this.pos=0}},{key:"update",value:function(e){c.default.exists(this);const{blockLen:t,state:r}=this,n=(e=(0,l.toBytes)(e)).length;for(let i=0;i<n;){const o=Math.min(t-this.pos,n-i);for(let t=0;t<o;t++)r[this.pos++]^=e[i++];this.pos===t&&this.keccak()}return this}},{key:"finish",value:function(){if(this.finished)return;this.finished=!0;const{state:e,suffix:t,pos:r,blockLen:n}=this;e[r]^=t,0!=(128&t)&&r===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}},{key:"writeInto",value:function(e){c.default.exists(this,!1),c.default.bytes(e),this.finish();const t=this.state,{blockLen:r}=this;for(let n=0,i=e.length;n<i;){this.posOut>=r&&this.keccak();const o=Math.min(r-this.posOut,i-n);e.set(t.subarray(this.posOut,this.posOut+o),n),this.posOut+=o,n+=o}return e}},{key:"xofInto",value:function(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}},{key:"xof",value:function(e){return c.default.number(e),this.xofInto(new Uint8Array(e))}},{key:"digestInto",value:function(e){if(c.default.output(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}},{key:"digest",value:function(){return this.digestInto(new Uint8Array(this.outputLen))}},{key:"destroy",value:function(){this.destroyed=!0,this.state.fill(0)}},{key:"_cloneInto",value:function(e){const{blockLen:t,suffix:r,outputLen:n,rounds:i,enableXOF:o}=this;return e||(e=new f(t,r,n,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=n,e.enableXOF=o,e.destroyed=this.destroyed,e}}]),f}(l.Hash);t.Keccak=S;const A=(e,t,r)=>(0,l.wrapConstructor)((()=>new S(t,e,r)));t.sha3_224=A(6,144,28),t.sha3_256=A(6,136,32),t.sha3_384=A(6,104,48),t.sha3_512=A(6,72,64),t.keccak_224=A(1,144,28),t.keccak_256=A(1,136,32),t.keccak_384=A(1,104,48),t.keccak_512=A(1,72,64);const E=(e,t,r)=>(0,l.wrapConstructorWithOpts)((function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new S(t,e,void 0===n.dkLen?r:n.dkLen,!0)}));t.shake128=E(31,168,16),t.shake256=E(31,136,32)},49116:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,u.default)(e);if(t){var i=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.sha384=t.sha512_256=t.sha512_224=t.sha512=t.SHA512=void 0;const f=r(93214),l=r(74133),d=r(41909),[h,p]=l.default.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map((e=>BigInt(e)))),b=new Uint32Array(80),y=new Uint32Array(80);let g=function(e){(0,a.default)(r,e);var t=c(r);function r(){var e;return(0,i.default)(this,r),(e=t.call(this,128,64,16,!1)).Ah=1779033703,e.Al=-205731576,e.Bh=-1150833019,e.Bl=-2067093701,e.Ch=1013904242,e.Cl=-23791573,e.Dh=-1521486534,e.Dl=1595750129,e.Eh=1359893119,e.El=-1377402159,e.Fh=-1694144372,e.Fl=725511199,e.Gh=528734635,e.Gl=-79577749,e.Hh=1541459225,e.Hl=327033209,e}return(0,o.default)(r,[{key:"get",value:function(){const{Ah:e,Al:t,Bh:r,Bl:n,Ch:i,Cl:o,Dh:a,Dl:s,Eh:u,El:c,Fh:f,Fl:l,Gh:d,Gl:h,Hh:p,Hl:b}=this;return[e,t,r,n,i,o,a,s,u,c,f,l,d,h,p,b]}},{key:"set",value:function(e,t,r,n,i,o,a,s,u,c,f,l,d,h,p,b){this.Ah=0|e,this.Al=0|t,this.Bh=0|r,this.Bl=0|n,this.Ch=0|i,this.Cl=0|o,this.Dh=0|a,this.Dl=0|s,this.Eh=0|u,this.El=0|c,this.Fh=0|f,this.Fl=0|l,this.Gh=0|d,this.Gl=0|h,this.Hh=0|p,this.Hl=0|b}},{key:"process",value:function(e,t){for(let r=0;r<16;r++,t+=4)b[r]=e.getUint32(t),y[r]=e.getUint32(t+=4);for(let e=16;e<80;e++){const t=0|b[e-15],r=0|y[e-15],n=l.default.rotrSH(t,r,1)^l.default.rotrSH(t,r,8)^l.default.shrSH(t,r,7),i=l.default.rotrSL(t,r,1)^l.default.rotrSL(t,r,8)^l.default.shrSL(t,r,7),o=0|b[e-2],a=0|y[e-2],s=l.default.rotrSH(o,a,19)^l.default.rotrBH(o,a,61)^l.default.shrSH(o,a,6),u=l.default.rotrSL(o,a,19)^l.default.rotrBL(o,a,61)^l.default.shrSL(o,a,6),c=l.default.add4L(i,u,y[e-7],y[e-16]),f=l.default.add4H(c,n,s,b[e-7],b[e-16]);b[e]=0|f,y[e]=0|c}let{Ah:r,Al:n,Bh:i,Bl:o,Ch:a,Cl:s,Dh:u,Dl:c,Eh:f,El:d,Fh:g,Fl:m,Gh:v,Gl:w,Hh:_,Hl:x}=this;for(let e=0;e<80;e++){const t=l.default.rotrSH(f,d,14)^l.default.rotrSH(f,d,18)^l.default.rotrBH(f,d,41),O=l.default.rotrSL(f,d,14)^l.default.rotrSL(f,d,18)^l.default.rotrBL(f,d,41),k=f&g^~f&v,P=d&m^~d&w,S=l.default.add5L(x,O,P,p[e],y[e]),A=l.default.add5H(S,_,t,k,h[e],b[e]),E=0|S,M=l.default.rotrSH(r,n,28)^l.default.rotrBH(r,n,34)^l.default.rotrBH(r,n,39),j=l.default.rotrSL(r,n,28)^l.default.rotrBL(r,n,34)^l.default.rotrBL(r,n,39),T=r&i^r&a^i&a,B=n&o^n&s^o&s;_=0|v,x=0|w,v=0|g,w=0|m,g=0|f,m=0|d,({h:f,l:d}=l.default.add(0|u,0|c,0|A,0|E)),u=0|a,c=0|s,a=0|i,s=0|o,i=0|r,o=0|n;const I=l.default.add3L(E,j,B);r=l.default.add3H(I,A,M,T),n=0|I}({h:r,l:n}=l.default.add(0|this.Ah,0|this.Al,0|r,0|n)),({h:i,l:o}=l.default.add(0|this.Bh,0|this.Bl,0|i,0|o)),({h:a,l:s}=l.default.add(0|this.Ch,0|this.Cl,0|a,0|s)),({h:u,l:c}=l.default.add(0|this.Dh,0|this.Dl,0|u,0|c)),({h:f,l:d}=l.default.add(0|this.Eh,0|this.El,0|f,0|d)),({h:g,l:m}=l.default.add(0|this.Fh,0|this.Fl,0|g,0|m)),({h:v,l:w}=l.default.add(0|this.Gh,0|this.Gl,0|v,0|w)),({h:_,l:x}=l.default.add(0|this.Hh,0|this.Hl,0|_,0|x)),this.set(r,n,i,o,a,s,u,c,f,d,g,m,v,w,_,x)}},{key:"roundClean",value:function(){b.fill(0),y.fill(0)}},{key:"destroy",value:function(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}]),r}(f.SHA2);t.SHA512=g;let m=function(e){(0,a.default)(r,e);var t=c(r);function r(){var e;return(0,i.default)(this,r),(e=t.call(this)).Ah=-1942145080,e.Al=424955298,e.Bh=1944164710,e.Bl=-1982016298,e.Ch=502970286,e.Cl=855612546,e.Dh=1738396948,e.Dl=1479516111,e.Eh=258812777,e.El=2077511080,e.Fh=2011393907,e.Fl=79989058,e.Gh=1067287976,e.Gl=1780299464,e.Hh=286451373,e.Hl=-1848208735,e.outputLen=28,e}return(0,o.default)(r)}(g),v=function(e){(0,a.default)(r,e);var t=c(r);function r(){var e;return(0,i.default)(this,r),(e=t.call(this)).Ah=573645204,e.Al=-64227540,e.Bh=-1621794909,e.Bl=-934517566,e.Ch=596883563,e.Cl=1867755857,e.Dh=-1774684391,e.Dl=1497426621,e.Eh=-1775747358,e.El=-1467023389,e.Fh=-1101128155,e.Fl=1401305490,e.Gh=721525244,e.Gl=746961066,e.Hh=246885852,e.Hl=-2117784414,e.outputLen=32,e}return(0,o.default)(r)}(g),w=function(e){(0,a.default)(r,e);var t=c(r);function r(){var e;return(0,i.default)(this,r),(e=t.call(this)).Ah=-876896931,e.Al=-1056596264,e.Bh=1654270250,e.Bl=914150663,e.Ch=-1856437926,e.Cl=812702999,e.Dh=355462360,e.Dl=-150054599,e.Eh=1731405415,e.El=-4191439,e.Fh=-1900787065,e.Fl=1750603025,e.Gh=-619958771,e.Gl=1694076839,e.Hh=1203062813,e.Hl=-1090891868,e.outputLen=48,e}return(0,o.default)(r)}(g);t.sha512=(0,d.wrapConstructor)((()=>new g)),t.sha512_224=(0,d.wrapConstructor)((()=>new m)),t.sha512_256=(0,d.wrapConstructor)((()=>new v)),t.sha384=(0,d.wrapConstructor)((()=>new w))},41909:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728));Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.wrapConstructorWithOpts=t.wrapConstructor=t.checkOpts=t.Hash=t.concatBytes=t.toBytes=t.utf8ToBytes=t.asyncLoop=t.nextTick=t.hexToBytes=t.bytesToHex=t.isLE=t.rotr=t.createView=t.u32=t.u8=void 0;const a=r(83140);if(t.u8=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),t.u32=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),t.createView=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),t.rotr=(e,t)=>e<<32-t|e>>>t,t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],!t.isLE)throw new Error("Non little-endian hardware is not supported");const s=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function u(e){if("string"!=typeof e)throw new TypeError("utf8ToBytes expected string, got "+typeof e);return(new TextEncoder).encode(e)}function c(e){if("string"==typeof e&&(e=u(e)),!(e instanceof Uint8Array))throw new TypeError(`Expected input type is Uint8Array (got ${typeof e})`);return e}t.bytesToHex=function(e){if(!(e instanceof Uint8Array))throw new Error("Uint8Array expected");let t="";for(let r=0;r<e.length;r++)t+=s[e[r]];return t},t.hexToBytes=function(e){if("string"!=typeof e)throw new TypeError("hexToBytes: expected string, got "+typeof e);if(e.length%2)throw new Error("hexToBytes: received invalid unpadded hex");const t=new Uint8Array(e.length/2);for(let r=0;r<t.length;r++){const n=2*r,i=e.slice(n,n+2),o=Number.parseInt(i,16);if(Number.isNaN(o)||o<0)throw new Error("Invalid byte sequence");t[r]=o}return t},t.nextTick=async()=>{},t.asyncLoop=async function(e,r,n){let i=Date.now();for(let o=0;o<e;o++){n(o);const e=Date.now()-i;e>=0&&e<r||(await(0,t.nextTick)(),i+=e)}},t.utf8ToBytes=u,t.toBytes=c,t.concatBytes=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!t.every((e=>e instanceof Uint8Array)))throw new Error("Uint8Array list expected");if(1===t.length)return t[0];const n=t.reduce(((e,t)=>e+t.length),0),i=new Uint8Array(n);for(let e=0,r=0;e<t.length;e++){const n=t[e];i.set(n,r),r+=n.length}return i};let f=function(){function e(){(0,i.default)(this,e)}return(0,o.default)(e,[{key:"clone",value:function(){return this._cloneInto()}}]),e}();t.Hash=f,t.checkOpts=function(e,t){if(void 0!==t&&("object"!=typeof t||(r=t,"[object Object]"!==Object.prototype.toString.call(r)||r.constructor!==Object)))throw new TypeError("Options should be object or undefined");var r;return Object.assign(e,t)},t.wrapConstructor=function(e){const t=t=>e().update(c(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t},t.wrapConstructorWithOpts=function(e){const t=(t,r)=>e(r).update(c(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},t.randomBytes=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32;if(a.crypto.web)return a.crypto.web.getRandomValues(new Uint8Array(e));if(a.crypto.node)return new Uint8Array(a.crypto.node.randomBytes(e).buffer);throw new Error("The environment doesn't have randomBytes function")}},63494:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(38416)),o=n(r(89728)),a=n(r(56690)),s=n(r(61655)),u=n(r(94993)),c=n(r(73808)),f=n(r(33496));function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}Object.defineProperty(t,"__esModule",{value:!0}),t.utils=t.schnorr=t.verify=t.signSync=t.sign=t.getSharedSecret=t.recoverPublicKey=t.getPublicKey=t.Signature=t.Point=t.CURVE=void 0;const h=r(34278),p=BigInt(0),b=BigInt(1),y=BigInt(2),g=BigInt(3),m=BigInt(8),v=Object.freeze({a:p,b:BigInt(7),P:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:b,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee")});t.CURVE=v;const w=(e,t)=>(e+t/y)/t,_={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar(e){const{n:t}=v,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-b*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),o=r,a=BigInt("0x100000000000000000000000000000000"),s=w(o*e,t),u=w(-n*e,t);let c=Z(e-s*r-u*i,t),f=Z(-s*n-u*o,t);const l=c>a,d=f>a;if(l&&(c=t-c),d&&(f=t-f),c>a||f>a)throw new Error("splitScalarEndo: Endomorphism failed, k="+e);return{k1neg:l,k1:c,k2neg:d,k2:f}}},x=32,O=32,k=x+1,P=2*x+1;function S(e){const{a:t,b:r}=v,n=Z(e*e),i=Z(n*e);return Z(i+t*e+r)}const A=v.a===p;let E=function(e){(0,s.default)(i,e);var t,r,n=(t=i,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,c.default)(t);if(r){var i=(0,c.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,u.default)(this,e)});function i(e){return(0,a.default)(this,i),n.call(this,e)}return(0,o.default)(i)}((0,f.default)(Error));function M(e){if(!(e instanceof j))throw new TypeError("JacobianPoint expected")}let j=function(){function e(t,r,n){(0,a.default)(this,e),this.x=t,this.y=r,this.z=n}return(0,o.default)(e,[{key:"equals",value:function(e){M(e);const{x:t,y:r,z:n}=this,{x:i,y:o,z:a}=e,s=Z(n*n),u=Z(a*a),c=Z(t*u),f=Z(i*s),l=Z(Z(r*a)*u),d=Z(Z(o*n)*s);return c===f&&l===d}},{key:"negate",value:function(){return new e(this.x,Z(-this.y),this.z)}},{key:"double",value:function(){const{x:t,y:r,z:n}=this,i=Z(t*t),o=Z(r*r),a=Z(o*o),s=t+o,u=Z(y*(Z(s*s)-i-a)),c=Z(g*i),f=Z(c*c),l=Z(f-y*u);return new e(l,Z(c*(u-l)-m*a),Z(y*r*n))}},{key:"add",value:function(t){M(t);const{x:r,y:n,z:i}=this,{x:o,y:a,z:s}=t;if(o===p||a===p)return this;if(r===p||n===p)return t;const u=Z(i*i),c=Z(s*s),f=Z(r*c),l=Z(o*u),d=Z(Z(n*s)*c),h=Z(Z(a*i)*u),b=Z(l-f),g=Z(h-d);if(b===p)return g===p?this.double():e.ZERO;const m=Z(b*b),v=Z(b*m),w=Z(f*m),_=Z(g*g-v-y*w);return new e(_,Z(g*(w-_)-d*v),Z(i*s*b))}},{key:"subtract",value:function(e){return this.add(e.negate())}},{key:"multiplyUnsafe",value:function(t){const r=e.ZERO;if("bigint"==typeof t&&t===p)return r;let n=X(t);if(n===b)return this;if(!A){let e=r,t=this;for(;n>p;)n&b&&(e=e.add(t)),t=t.double(),n>>=b;return e}let{k1neg:i,k1:o,k2neg:a,k2:s}=_.splitScalar(n),u=r,c=r,f=this;for(;o>p||s>p;)o&b&&(u=u.add(f)),s&b&&(c=c.add(f)),f=f.double(),o>>=b,s>>=b;return i&&(u=u.negate()),a&&(c=c.negate()),c=new e(Z(c.x*_.beta),c.y,c.z),u.add(c)}},{key:"precomputeWindow",value:function(e){const t=A?128/e+1:256/e+1,r=[];let n=this,i=n;for(let o=0;o<t;o++){i=n,r.push(i);for(let t=1;t<2**(e-1);t++)i=i.add(n),r.push(i);n=i.double()}return r}},{key:"wNAF",value:function(t,r){!r&&this.equals(e.BASE)&&(r=I.BASE);const n=r&&r._WINDOW_SIZE||1;if(256%n)throw new Error("Point#wNAF: Invalid precomputation window, must be power of 2");let i=r&&B.get(r);i||(i=this.precomputeWindow(n),r&&1!==n&&(i=e.normalizeZ(i),B.set(r,i)));let o=e.ZERO,a=e.BASE;const s=1+(A?128/n:256/n),u=2**(n-1),c=BigInt(2**n-1),f=2**n,l=BigInt(n);for(let e=0;e<s;e++){const r=e*u;let n=Number(t&c);t>>=l,n>u&&(n-=f,t+=b);const s=r,d=r+Math.abs(n)-1,h=e%2!=0,p=n<0;0===n?a=a.add(T(h,i[s])):o=o.add(T(p,i[d]))}return{p:o,f:a}}},{key:"multiply",value:function(t,r){let n,i,o=X(t);if(A){const{k1neg:t,k1:a,k2neg:s,k2:u}=_.splitScalar(o);let{p:c,f}=this.wNAF(a,r),{p:l,f:d}=this.wNAF(u,r);c=T(t,c),l=T(s,l),l=new e(Z(l.x*_.beta),l.y,l.z),n=c.add(l),i=f.add(d)}else{const{p:e,f:t}=this.wNAF(o,r);n=e,i=t}return e.normalizeZ([n,i])[0]}},{key:"toAffine",value:function(t){const{x:r,y:n,z:i}=this,o=this.equals(e.ZERO);null==t&&(t=o?m:Y(i));const a=t,s=Z(a*a),u=Z(s*a),c=Z(r*s),f=Z(n*u),l=Z(i*a);if(o)return I.ZERO;if(l!==b)throw new Error("invZ was invalid");return new I(c,f)}}],[{key:"fromAffine",value:function(t){if(!(t instanceof I))throw new TypeError("JacobianPoint#fromAffine: expected Point");return t.equals(I.ZERO)?e.ZERO:new e(t.x,t.y,b)}},{key:"toAffineBatch",value:function(e){const t=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.P;const r=new Array(e.length),n=Y(e.reduce(((e,n,i)=>n===p?e:(r[i]=e,Z(e*n,t))),b),t);return e.reduceRight(((e,n,i)=>n===p?e:(r[i]=Z(e*r[i],t),Z(e*n,t))),n),r}(e.map((e=>e.z)));return e.map(((e,r)=>e.toAffine(t[r])))}},{key:"normalizeZ",value:function(t){return e.toAffineBatch(t).map(e.fromAffine)}}]),e}();function T(e,t){const r=t.negate();return e?r:t}j.BASE=new j(v.Gx,v.Gy,b),j.ZERO=new j(p,b,p);const B=new WeakMap;let I=function(){function e(t,r){(0,a.default)(this,e),this.x=t,this.y=r}return(0,o.default)(e,[{key:"_setWindowSize",value:function(e){this._WINDOW_SIZE=e,B.delete(this)}},{key:"hasEvenY",value:function(){return this.y%y===p}},{key:"toRawBytes",value:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return K(this.toHex(e))}},{key:"toHex",value:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=F(this.x);return e?`${this.hasEvenY()?"02":"03"}${t}`:`04${t}${F(this.y)}`}},{key:"toHexX",value:function(){return this.toHex(!0).slice(2)}},{key:"toRawX",value:function(){return this.toRawBytes(!0).slice(1)}},{key:"assertValidity",value:function(){const e="Point is not on elliptic curve",{x:t,y:r}=this;if(!ne(t)||!ne(r))throw new Error(e);const n=Z(r*r);if(Z(n-S(t))!==p)throw new Error(e)}},{key:"equals",value:function(e){return this.x===e.x&&this.y===e.y}},{key:"negate",value:function(){return new e(this.x,Z(-this.y))}},{key:"double",value:function(){return j.fromAffine(this).double().toAffine()}},{key:"add",value:function(e){return j.fromAffine(this).add(j.fromAffine(e)).toAffine()}},{key:"subtract",value:function(e){return this.add(e.negate())}},{key:"multiply",value:function(e){return j.fromAffine(this).multiply(e,this).toAffine()}},{key:"multiplyAndAddUnsafe",value:function(t,r,n){const i=j.fromAffine(this),o=r===p||r===b||this!==e.BASE?i.multiplyUnsafe(r):i.multiply(r),a=j.fromAffine(t).multiplyUnsafe(n),s=o.add(a);return s.equals(j.ZERO)?void 0:s.toAffine()}}],[{key:"fromCompressedHex",value:function(t){const r=32===t.length,n=W(r?t:t.subarray(1));if(!ne(n))throw new Error("Point is not on curve");let i=function(e){const{P:t}=v,r=BigInt(6),n=BigInt(11),i=BigInt(22),o=BigInt(23),a=BigInt(44),s=BigInt(88),u=e*e*e%t,c=u*u*e%t,f=J(c,g)*c%t,l=J(f,g)*c%t,d=J(l,y)*u%t,h=J(d,n)*d%t,p=J(h,i)*h%t,b=J(p,a)*p%t,m=J(b,s)*b%t,w=J(m,a)*p%t,_=J(w,g)*c%t,x=J(_,o)*h%t,O=J(x,r)*u%t,k=J(O,y);if(k*k%t!==e)throw new Error("Cannot find square root");return k}(S(n));const o=(i&b)===b;r?o&&(i=Z(-i)):1==(1&t[0])!==o&&(i=Z(-i));const a=new e(n,i);return a.assertValidity(),a}},{key:"fromUncompressedHex",value:function(t){const r=new e(W(t.subarray(1,x+1)),W(t.subarray(x+1,2*x+1)));return r.assertValidity(),r}},{key:"fromHex",value:function(e){const t=G(e),r=t.length,n=t[0];if(r===x)return this.fromCompressedHex(t);if(r===k&&(2===n||3===n))return this.fromCompressedHex(t);if(r===P&&4===n)return this.fromUncompressedHex(t);throw new Error(`Point.fromHex: received invalid point. Expected 32-${k} compressed bytes or ${P} uncompressed bytes, not ${r}`)}},{key:"fromPrivateKey",value:function(t){return e.BASE.multiply(oe(t))}},{key:"fromSignature",value:function(t,r,n){const{r:i,s:o}=se(r);if(![0,1,2,3].includes(n))throw new Error("Cannot recover: invalid recovery bit");const a=Q(G(t)),{n:s}=v,u=2===n||3===n?i+s:i,c=Y(u,s),f=Z(-a*c,s),l=Z(o*c,s),d=1&n?"03":"02",h=e.fromHex(d+F(u)),p=e.BASE.multiplyAndAddUnsafe(h,f,l);if(!p)throw new Error("Cannot recover signature: point at infinify");return p.assertValidity(),p}}]),e}();function N(e){return Number.parseInt(e[0],16)>=8?"00"+e:e}function R(e){if(e.length<2||2!==e[0])throw new Error(`Invalid signature integer tag: ${D(e)}`);const t=e[1],r=e.subarray(2,t+2);if(!t||r.length!==t)throw new Error("Invalid signature integer: wrong length");if(0===r[0]&&r[1]<=127)throw new Error("Invalid signature integer: trailing length");return{data:W(r),left:e.subarray(t+2)}}t.Point=I,I.BASE=new I(v.Gx,v.Gy),I.ZERO=new I(p,p);let C=function(){function e(t,r){(0,a.default)(this,e),this.r=t,this.s=r,this.assertValidity()}return(0,o.default)(e,[{key:"assertValidity",value:function(){const{r:e,s:t}=this;if(!re(e))throw new Error("Invalid Signature: r must be 0 < r < n");if(!re(t))throw new Error("Invalid Signature: s must be 0 < s < n")}},{key:"hasHighS",value:function(){const e=v.n>>b;return this.s>e}},{key:"normalizeS",value:function(){return this.hasHighS()?new e(this.r,Z(-this.s,v.n)):this}},{key:"toDERRawBytes",value:function(){return K(this.toDERHex())}},{key:"toDERHex",value:function(){const e=N(z(this.s)),t=N(z(this.r)),r=e.length/2,n=t.length/2,i=z(r),o=z(n);return`30${z(n+r+4)}02${o}${t}02${i}${e}`}},{key:"toRawBytes",value:function(){return this.toDERRawBytes()}},{key:"toHex",value:function(){return this.toDERHex()}},{key:"toCompactRawBytes",value:function(){return K(this.toCompactHex())}},{key:"toCompactHex",value:function(){return F(this.r)+F(this.s)}}],[{key:"fromCompact",value:function(t){const r=t instanceof Uint8Array,n="Signature.fromCompact";if("string"!=typeof t&&!r)throw new TypeError(`${n}: Expected string or Uint8Array`);const i=r?D(t):t;if(128!==i.length)throw new Error(`${n}: Expected 64-byte hex`);return new e(q(i.slice(0,64)),q(i.slice(64,128)))}},{key:"fromDER",value:function(t){const r=t instanceof Uint8Array;if("string"!=typeof t&&!r)throw new TypeError("Signature.fromDER: Expected string or Uint8Array");const{r:n,s:i}=function(e){if(e.length<2||48!=e[0])throw new Error(`Invalid signature tag: ${D(e)}`);if(e[1]!==e.length-2)throw new Error("Invalid signature: incorrect length");const{data:t,left:r}=R(e.subarray(2)),{data:n,left:i}=R(r);if(i.length)throw new Error(`Invalid signature: left bytes after parsing: ${D(i)}`);return{r:t,s:n}}(r?t:K(t));return new e(n,i)}},{key:"fromHex",value:function(e){return this.fromDER(e)}}]),e}();function U(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!t.every((e=>e instanceof Uint8Array)))throw new Error("Uint8Array list expected");if(1===t.length)return t[0];const n=t.reduce(((e,t)=>e+t.length),0),i=new Uint8Array(n);for(let e=0,r=0;e<t.length;e++){const n=t[e];i.set(n,r),r+=n.length}return i}t.Signature=C;const L=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function D(e){if(!(e instanceof Uint8Array))throw new Error("Expected Uint8Array");let t="";for(let r=0;r<e.length;r++)t+=L[e[r]];return t}const H=BigInt("0x10000000000000000000000000000000000000000000000000000000000000000");function F(e){if("bigint"!=typeof e)throw new Error("Expected bigint");if(!(p<=e&&e<H))throw new Error("Expected number 0 <= n < 2^256");return e.toString(16).padStart(64,"0")}function V(e){const t=K(F(e));if(32!==t.length)throw new Error("Error: expected 32 bytes");return t}function z(e){const t=e.toString(16);return 1&t.length?`0${t}`:t}function q(e){if("string"!=typeof e)throw new TypeError("hexToNumber: expected string, got "+typeof e);return BigInt(`0x${e}`)}function K(e){if("string"!=typeof e)throw new TypeError("hexToBytes: expected string, got "+typeof e);if(e.length%2)throw new Error("hexToBytes: received invalid unpadded hex"+e.length);const t=new Uint8Array(e.length/2);for(let r=0;r<t.length;r++){const n=2*r,i=e.slice(n,n+2),o=Number.parseInt(i,16);if(Number.isNaN(o)||o<0)throw new Error("Invalid byte sequence");t[r]=o}return t}function W(e){return q(D(e))}function G(e){return e instanceof Uint8Array?Uint8Array.from(e):K(e)}function X(e){if("number"==typeof e&&Number.isSafeInteger(e)&&e>0)return BigInt(e);if("bigint"==typeof e&&re(e))return e;throw new TypeError("Expected valid private scalar: 0 < scalar < curve.n")}function Z(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.P;const r=e%t;return r>=p?r:t+r}function J(e,t){const{P:r}=v;let n=e;for(;t-- >p;)n*=n,n%=r;return n}function Y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.P;if(e===p||t<=p)throw new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let r=Z(e,t),n=t,i=p,o=b,a=b,s=p;for(;r!==p;){const e=n/r,t=n%r,u=i-a*e,c=o-s*e;n=r,r=t,i=a,o=s,a=u,s=c}if(n!==b)throw new Error("invert: does not exist");return Z(i,t)}function Q(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=function(e){const t=8*e.length-8*O,r=W(e);return t>0?r>>BigInt(t):r}(e);if(t)return r;const{n}=v;return r>=n?r-n:r}let $,ee,te=function(){function e(t,r){if((0,a.default)(this,e),this.hashLen=t,this.qByteLen=r,"number"!=typeof t||t<2)throw new Error("hashLen must be a number");if("number"!=typeof r||r<2)throw new Error("qByteLen must be a number");this.v=new Uint8Array(t).fill(1),this.k=new Uint8Array(t).fill(0),this.counter=0}return(0,o.default)(e,[{key:"hmac",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.utils.hmacSha256(this.k,...r)}},{key:"hmacSync",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ee(this.k,...t)}},{key:"checkSync",value:function(){if("function"!=typeof ee)throw new E("hmacSha256Sync needs to be set")}},{key:"incr",value:function(){if(this.counter>=1e3)throw new Error("Tried 1,000 k values for sign(), all were invalid");this.counter+=1}},{key:"reseed",value:async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Uint8Array;this.k=await this.hmac(this.v,Uint8Array.from([0]),e),this.v=await this.hmac(this.v),0!==e.length&&(this.k=await this.hmac(this.v,Uint8Array.from([1]),e),this.v=await this.hmac(this.v))}},{key:"reseedSync",value:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Uint8Array;this.checkSync(),this.k=this.hmacSync(this.v,Uint8Array.from([0]),e),this.v=this.hmacSync(this.v),0!==e.length&&(this.k=this.hmacSync(this.v,Uint8Array.from([1]),e),this.v=this.hmacSync(this.v))}},{key:"generate",value:async function(){this.incr();let e=0;const t=[];for(;e<this.qByteLen;){this.v=await this.hmac(this.v);const r=this.v.slice();t.push(r),e+=this.v.length}return U(...t)}},{key:"generateSync",value:function(){this.checkSync(),this.incr();let e=0;const t=[];for(;e<this.qByteLen;){this.v=this.hmacSync(this.v);const r=this.v.slice();t.push(r),e+=this.v.length}return U(...t)}}]),e}();function re(e){return p<e&&e<v.n}function ne(e){return p<e&&e<v.P}function ie(e,t,r){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const{n:i}=v,o=Q(e,!0);if(!re(o))return;const a=Y(o,i),s=I.BASE.multiply(o),u=Z(s.x,i);if(u===p)return;const c=Z(a*Z(t+r*u,i),i);if(c===p)return;let f=new C(u,c),l=(s.x===f.r?0:2)|Number(s.y&b);return n&&f.hasHighS()&&(f=f.normalizeS(),l^=1),{sig:f,recovery:l}}function oe(e){let t;if("bigint"==typeof e)t=e;else if("number"==typeof e&&Number.isSafeInteger(e)&&e>0)t=BigInt(e);else if("string"==typeof e){if(e.length!==2*O)throw new Error("Expected 32 bytes of private key");t=q(e)}else{if(!(e instanceof Uint8Array))throw new TypeError("Expected valid private key");if(e.length!==O)throw new Error("Expected 32 bytes of private key");t=W(e)}if(!re(t))throw new Error("Expected private key: 0 < key < n");return t}function ae(e){return e instanceof I?(e.assertValidity(),e):I.fromHex(e)}function se(e){if(e instanceof C)return e.assertValidity(),e;try{return C.fromDER(e)}catch(t){return C.fromCompact(e)}}function ue(e){const t=e instanceof Uint8Array,r="string"==typeof e,n=(t||r)&&e.length;return t?n===k||n===P:r?n===2*k||n===2*P:e instanceof I}function ce(e){return W(e.length>x?e.slice(0,x):e)}function fe(e){const t=ce(e),r=Z(t,v.n);return le(r<p?t:r)}function le(e){return V(e)}function de(e,r,n){if(null==e)throw new Error(`sign: expected valid message hash, not "${e}"`);const i=G(e),o=oe(r),a=[le(o),fe(i)];if(null!=n){!0===n&&(n=t.utils.randomBytes(x));const e=G(n);if(e.length!==x)throw new Error(`sign: Expected ${x} bytes of extra data`);a.push(e)}return{seed:U(...a),m:ce(i),d:o}}function he(e,t){const{sig:r,recovery:n}=e,{der:i,recovered:o}=Object.assign({canonical:!0,der:!0},t),a=i?r.toDERRawBytes():r.toCompactRawBytes();return o?[a,n]:a}t.getPublicKey=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return I.fromPrivateKey(e).toRawBytes(t)},t.recoverPublicKey=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return I.fromSignature(e,t,r).toRawBytes(n)},t.getSharedSecret=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(ue(e))throw new TypeError("getSharedSecret: first arg must be private key");if(!ue(t))throw new TypeError("getSharedSecret: second arg must be public key");const n=ae(t);return n.assertValidity(),n.multiply(oe(e)).toRawBytes(r)},t.sign=async function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{seed:n,m:i,d:o}=de(e,t,r.extraEntropy),a=new te(32,O);let s;for(await a.reseed(n);!(s=ie(await a.generate(),i,o,r.canonical));)await a.reseed();return he(s,r)},t.signSync=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{seed:n,m:i,d:o}=de(e,t,r.extraEntropy),a=new te(32,O);let s;for(a.reseedSync(n);!(s=ie(a.generateSync(),i,o,r.canonical));)a.reseedSync();return he(s,r)};const pe={strict:!0};function be(e){return Z(W(e),v.n)}t.verify=function(e,t,r){let n,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:pe;try{n=se(e),t=G(t)}catch(e){return!1}const{r:o,s:a}=n;if(i.strict&&n.hasHighS())return!1;const s=Q(t);let u;try{u=ae(r)}catch(e){return!1}const{n:c}=v,f=Y(a,c),l=Z(s*f,c),d=Z(o*f,c),h=I.BASE.multiplyAndAddUnsafe(u,l,d);return!!h&&Z(h.x,c)===o};let ye=function(){function e(t,r){(0,a.default)(this,e),this.r=t,this.s=r,this.assertValidity()}return(0,o.default)(e,[{key:"assertValidity",value:function(){const{r:e,s:t}=this;if(!ne(e)||!re(t))throw new Error("Invalid signature")}},{key:"toHex",value:function(){return F(this.r)+F(this.s)}},{key:"toRawBytes",value:function(){return K(this.toHex())}}],[{key:"fromHex",value:function(t){const r=G(t);if(64!==r.length)throw new TypeError(`SchnorrSignature.fromHex: expected 64 bytes, not ${r.length}`);return new e(W(r.subarray(0,32)),W(r.subarray(32,64)))}}]),e}(),ge=function(){function e(r,n){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.utils.randomBytes();if((0,a.default)(this,e),null==r)throw new TypeError(`sign: Expected valid message, not "${r}"`);this.m=G(r);const{x:o,scalar:s}=this.getScalar(oe(n));if(this.px=o,this.d=s,this.rand=G(i),32!==this.rand.length)throw new TypeError("sign: Expected 32 bytes of aux randomness")}return(0,o.default)(e,[{key:"getScalar",value:function(e){const t=I.fromPrivateKey(e),r=t.hasEvenY()?e:v.n-e;return{point:t,scalar:r,x:t.toRawX()}}},{key:"initNonce",value:function(e,t){return V(e^W(t))}},{key:"finalizeNonce",value:function(e){const t=Z(W(e),v.n);if(t===p)throw new Error("sign: Creation of signature failed. k is zero");const{point:r,x:n,scalar:i}=this.getScalar(t);return{R:r,rx:n,k:i}}},{key:"finalizeSig",value:function(e,t,r,n){return new ye(e.x,Z(t+r*n,v.n)).toRawBytes()}},{key:"error",value:function(){throw new Error("sign: Invalid signature produced")}},{key:"calc",value:async function(){const{m:e,d:r,px:n,rand:i}=this,o=t.utils.taggedHash,a=this.initNonce(r,await o(Oe.aux,i)),{R:s,rx:u,k:c}=this.finalizeNonce(await o(Oe.nonce,a,n,e)),f=be(await o(Oe.challenge,u,n,e)),l=this.finalizeSig(s,c,f,r);return await we(l,e,n)||this.error(),l}},{key:"calcSync",value:function(){const{m:e,d:r,px:n,rand:i}=this,o=t.utils.taggedHashSync,a=this.initNonce(r,o(Oe.aux,i)),{R:s,rx:u,k:c}=this.finalizeNonce(o(Oe.nonce,a,n,e)),f=be(o(Oe.challenge,u,n,e)),l=this.finalizeSig(s,c,f,r);return _e(l,e,n)||this.error(),l}}]),e}();function me(e,t,r){const n=e instanceof ye,i=n?e:ye.fromHex(e);return n&&i.assertValidity(),d(d({},i),{},{m:G(t),P:ae(r)})}function ve(e,t,r,n){const i=I.BASE.multiplyAndAddUnsafe(t,oe(r),Z(-n,v.n));return!(!i||!i.hasEvenY()||i.x!==e)}async function we(e,r,n){try{const{r:i,s:o,m:a,P:s}=me(e,r,n),u=be(await t.utils.taggedHash(Oe.challenge,V(i),s.toRawX(),a));return ve(i,s,o,u)}catch(e){return!1}}function _e(e,r,n){try{const{r:i,s:o,m:a,P:s}=me(e,r,n),u=be(t.utils.taggedHashSync(Oe.challenge,V(i),s.toRawX(),a));return ve(i,s,o,u)}catch(e){if(e instanceof E)throw e;return!1}}t.schnorr={Signature:ye,getPublicKey:function(e){return I.fromPrivateKey(e).toRawX()},sign:async function(e,t,r){return new ge(e,t,r).calc()},verify:we,signSync:function(e,t,r){return new ge(e,t,r).calcSync()},verifySync:_e},I.BASE._setWindowSize(8);const xe={node:h,web:"object"==typeof self&&"crypto"in self?self.crypto:void 0},Oe={challenge:"BIP0340/challenge",aux:"BIP0340/aux",nonce:"BIP0340/nonce"},ke={};t.utils={bytesToHex:D,hexToBytes:K,concatBytes:U,mod:Z,invert:Y,isValidPrivateKey(e){try{return oe(e),!0}catch(e){return!1}},_bigintTo32Bytes:V,_normalizePrivateKey:oe,hashToPrivateKey:e=>{e=G(e);const t=O+8;if(e.length<t||e.length>1024)throw new Error("Expected valid bytes of private key as per FIPS 186");return V(Z(W(e),v.n-b)+b)},randomBytes:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32;if(xe.web)return xe.web.getRandomValues(new Uint8Array(e));if(xe.node){const{randomBytes:t}=xe.node;return Uint8Array.from(t(e))}throw new Error("The environment doesn't have randomBytes function")},randomPrivateKey:()=>t.utils.hashToPrivateKey(t.utils.randomBytes(O+8)),precompute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:I.BASE;const r=t===I.BASE?t:new I(t.x,t.y);return r._setWindowSize(e),r.multiply(g),r},sha256:async function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(xe.web){const e=await xe.web.subtle.digest("SHA-256",U(...t));return new Uint8Array(e)}if(xe.node){const{createHash:e}=xe.node,r=e("sha256");return t.forEach((e=>r.update(e))),Uint8Array.from(r.digest())}throw new Error("The environment doesn't have sha256 function")},hmacSha256:async function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(xe.web){const t=await xe.web.subtle.importKey("raw",e,{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign"]),n=U(...r),i=await xe.web.subtle.sign("HMAC",t,n);return new Uint8Array(i)}if(xe.node){const{createHmac:t}=xe.node,n=t("sha256",e);return r.forEach((e=>n.update(e))),Uint8Array.from(n.digest())}throw new Error("The environment doesn't have hmac-sha256 function")},sha256Sync:void 0,hmacSha256Sync:void 0,taggedHash:async function(e){let r=ke[e];if(void 0===r){const n=await t.utils.sha256(Uint8Array.from(e,(e=>e.charCodeAt(0))));r=U(n,n),ke[e]=r}for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return t.utils.sha256(r,...i)},taggedHashSync:function(e){if("function"!=typeof $)throw new E("sha256Sync is undefined, you need to set it");let t=ke[e];if(void 0===t){const r=$(Uint8Array.from(e,(e=>e.charCodeAt(0))));t=U(r,r),ke[e]=t}for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return $(t,...n)},_JacobianPoint:j},Object.defineProperties(t.utils,{sha256Sync:{configurable:!1,get:()=>$,set(e){$||($=e)}},hmacSha256Sync:{configurable:!1,get:()=>ee,set(e){ee||(ee=e)}}})},34706:(e,t,r)=>{"use strict";var n=r(8874),i=r(86851),o=Object.hasOwnProperty,a=Object.create(null);for(var s in n)o.call(n,s)&&(a[n[s]]=s);var u=e.exports={to:{},get:{}};function c(e,t,r){return Math.min(Math.max(t,e),r)}function f(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}u.get=function(e){var t,r;switch(e.substring(0,3).toLowerCase()){case"hsl":t=u.get.hsl(e),r="hsl";break;case"hwb":t=u.get.hwb(e),r="hwb";break;default:t=u.get.rgb(e),r="rgb"}return t?{model:r,value:t}:null},u.get.rgb=function(e){if(!e)return null;var t,r,i,a=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(i=t[2],t=t[1],r=0;r<3;r++){var s=2*r;a[r]=parseInt(t.slice(s,s+2),16)}i&&(a[3]=parseInt(i,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(i=(t=t[1])[3],r=0;r<3;r++)a[r]=parseInt(t[r]+t[r],16);i&&(a[3]=parseInt(i+i,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(r=0;r<3;r++)a[r]=parseInt(t[r+1],0);t[4]&&(t[5]?a[3]=.01*parseFloat(t[4]):a[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:o.call(n,t[1])?((a=n[t[1]])[3]=1,a):null:null;for(r=0;r<3;r++)a[r]=Math.round(2.55*parseFloat(t[r+1]));t[4]&&(t[5]?a[3]=.01*parseFloat(t[4]):a[3]=parseFloat(t[4]))}for(r=0;r<3;r++)a[r]=c(a[r],0,255);return a[3]=c(a[3],0,1),a},u.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var r=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(r)?1:r,0,1)]}return null},u.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var r=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(r)?1:r,0,1)]}return null},u.to.hex=function(){var e=i(arguments);return"#"+f(e[0])+f(e[1])+f(e[2])+(e[3]<1?f(Math.round(255*e[3])):"")},u.to.rgb=function(){var e=i(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},u.to.rgb.percent=function(){var e=i(arguments),t=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),n=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+r+"%, "+n+"%)":"rgba("+t+"%, "+r+"%, "+n+"%, "+e[3]+")"},u.to.hsl=function(){var e=i(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},u.to.hwb=function(){var e=i(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},u.to.keyword=function(e){return a[e.slice(0,3)]}},7043:(e,t,r)=>{"use strict";var n=r(34706),i=r(12085),o=[].slice,a=["keyword","gray","hex"],s={};Object.keys(i).forEach((function(e){s[o.call(i[e].labels).sort().join("")]=e}));var u={};function c(e,t){if(!(this instanceof c))return new c(e,t);if(t&&t in a&&(t=null),t&&!(t in i))throw new Error("Unknown model: "+t);var r,f;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof c)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if("string"==typeof e){var l=n.get(e);if(null===l)throw new Error("Unable to parse color from string: "+e);this.model=l.model,f=i[this.model].channels,this.color=l.value.slice(0,f),this.valpha="number"==typeof l.value[f]?l.value[f]:1}else if(e.length){this.model=t||"rgb",f=i[this.model].channels;var h=o.call(e,0,f);this.color=d(h,f),this.valpha="number"==typeof e[f]?e[f]:1}else if("number"==typeof e)e&=16777215,this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;var p=Object.keys(e);"alpha"in e&&(p.splice(p.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);var b=p.sort().join("");if(!(b in s))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=s[b];var y=i[this.model].labels,g=[];for(r=0;r<y.length;r++)g.push(e[y[r]]);this.color=d(g)}if(u[this.model])for(f=i[this.model].channels,r=0;r<f;r++){var m=u[this.model][r];m&&(this.color[r]=m(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}function f(e,t,r){return(e=Array.isArray(e)?e:[e]).forEach((function(e){(u[e]||(u[e]=[]))[t]=r})),e=e[0],function(n){var i;return arguments.length?(r&&(n=r(n)),(i=this[e]()).color[t]=n,i):(i=this[e]().color[t],r&&(i=r(i)),i)}}function l(e){return function(t){return Math.max(0,Math.min(e,t))}}function d(e,t){for(var r=0;r<t;r++)"number"!=typeof e[r]&&(e[r]=0);return e}c.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(e){var t=this.model in n.to?this:this.rgb(),r=1===(t=t.round("number"==typeof e?e:1)).valpha?t.color:t.color.concat(this.valpha);return n.to[t.model](r)},percentString:function(e){var t=this.rgb().round("number"==typeof e?e:1),r=1===t.valpha?t.color:t.color.concat(this.valpha);return n.to.rgb.percent(r)},array:function(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var e={},t=i[this.model].channels,r=i[this.model].labels,n=0;n<t;n++)e[r[n]]=this.color[n];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray:function(){var e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject:function(){var e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round:function(e){return e=Math.max(e||0,0),new c(this.color.map(function(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}(e)).concat(this.valpha),this.model)},alpha:function(e){return arguments.length?new c(this.color.concat(Math.max(0,Math.min(1,e))),this.model):this.valpha},red:f("rgb",0,l(255)),green:f("rgb",1,l(255)),blue:f("rgb",2,l(255)),hue:f(["hsl","hsv","hsl","hwb","hcg"],0,(function(e){return(e%360+360)%360})),saturationl:f("hsl",1,l(100)),lightness:f("hsl",2,l(100)),saturationv:f("hsv",1,l(100)),value:f("hsv",2,l(100)),chroma:f("hcg",1,l(100)),gray:f("hcg",2,l(100)),white:f("hwb",1,l(100)),wblack:f("hwb",2,l(100)),cyan:f("cmyk",0,l(100)),magenta:f("cmyk",1,l(100)),yellow:f("cmyk",2,l(100)),black:f("cmyk",3,l(100)),x:f("xyz",0,l(100)),y:f("xyz",1,l(100)),z:f("xyz",2,l(100)),l:f("lab",0,l(100)),a:f("lab",1),b:f("lab",2),keyword:function(e){return arguments.length?new c(e):i[this.model].keyword(this.color)},hex:function(e){return arguments.length?new c(e):n.to.hex(this.rgb().round().color)},rgbNumber:function(){var e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity:function(){for(var e=this.rgb().color,t=[],r=0;r<e.length;r++){var n=e[r]/255;t[r]=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),r=e.luminosity();return t>r?(t+.05)/(r+.05):(r+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},isDark:function(){var e=this.rgb().color;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var e=this.rgb(),t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten:function(e){var t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken:function(e){var t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate:function(e){var t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate:function(e){var t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten:function(e){var t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken:function(e){var t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale:function(){var e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return c.rgb(t,t,t)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var t=this.hsl(),r=t.color[0];return r=(r=(r+e)%360)<0?360+r:r,t.color[0]=r,t},mix:function(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);var r=e.rgb(),n=this.rgb(),i=void 0===t?.5:t,o=2*i-1,a=r.alpha()-n.alpha(),s=((o*a==-1?o:(o+a)/(1+o*a))+1)/2,u=1-s;return c.rgb(s*r.red()+u*n.red(),s*r.green()+u*n.green(),s*r.blue()+u*n.blue(),r.alpha()*i+n.alpha()*(1-i))}},Object.keys(i).forEach((function(e){if(-1===a.indexOf(e)){var t=i[e].channels;c.prototype[e]=function(){if(this.model===e)return new c(this);if(arguments.length)return new c(arguments,e);var r,n="number"==typeof arguments[t]?t:this.valpha;return new c((r=i[this.model][e].raw(this.color),Array.isArray(r)?r:[r]).concat(n),e)},c[e]=function(r){return"number"==typeof r&&(r=d(o.call(arguments),t)),new c(r,e)}}})),e.exports=c},14199:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.unknownNetworkPathId=t.defaultNetworkKey=t.UnknownNetworkKeys=t.UNKNOWN_NETWORK=t.SubstrateNetworkKeys=t.SUBSTRATE_NETWORK_LIST=t.STATEMINT_GENESIS=t.STATEMINE_GENESIS=t.POLKADOT_GENESIS=t.PATH_IDS_LIST=t.NetworkProtocols=t.NETWORK_LIST=t.KUSAMA_GENESIS=void 0;var i=n(r(38416)),o=r(90015),a=r(69338);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const c="#262626";t.unknownNetworkPathId="";const f=Object.freeze({ETHEREUM:"ethereum",SUBSTRATE:"substrate",UNKNOWN:"unknown"});t.NetworkProtocols=f;const l=Object.freeze({UNKNOWN:"unknown"});t.UnknownNetworkKeys=l;const d=Object.freeze({KUSAMA:"0xb0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe",POLKADOT:"0x91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3"});t.SubstrateNetworkKeys=d;const h={[l.UNKNOWN]:{color:"#D73400",order:99,pathId:"",prefix:2,protocol:f.UNKNOWN,secondaryColor:c,title:"Unknown network"}},p={[d.KUSAMA]:{color:"#000",decimals:12,genesisHash:d.KUSAMA,order:2,pathId:"kusama",prefix:2,title:"Kusama",unit:"KSM"},[d.POLKADOT]:{color:"#E6027A",decimals:12,genesisHash:null,order:1,pathId:"polkadot",prefix:0,title:"Polkadot",unit:"DOT"}},b={color:"#4C4646",protocol:f.SUBSTRATE,secondaryColor:c},y=Object.freeze((g=p,m=b,Object.keys(g).reduce(((e,t)=>u(u({},e),{},{[t]:u(u({},m),g[t])})),{})));var g,m;t.SUBSTRATE_NETWORK_LIST=y;const v=Object.freeze(h);t.UNKNOWN_NETWORK=v;const w=Object.values(u(u({},y),v)).map((e=>e.pathId));t.PATH_IDS_LIST=w;const _=Object.freeze(Object.assign({},y,[],v));t.NETWORK_LIST=_;const x=d.KUSAMA;function O(e){const t=o.allNetworks.find((t=>{let{network:r}=t;return r===e}));return(0,a.assert)(t&&t.genesisHash[0],`Unable to find genesisHash for ${e}`),t.genesisHash[0]}t.defaultNetworkKey=x;const k=O("kusama");t.KUSAMA_GENESIS=k;const P=O("polkadot");t.POLKADOT_GENESIS=P,t.STATEMINE_GENESIS="0x48239ef607d7928874027a43a67689209727dfb3d3dc5e5b03a39bdc2eda771a",t.STATEMINT_GENESIS=""},15350:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(38416)),o=r(94459),a=r(69338),s=r(65198),u=r(2610),c=r(42946),f=r(50484);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}let h=new c.Keyring({ss58Format:0,type:"sr25519"});async function p(e){return e.map((e=>[e,`<svg viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'>${(0,u.polkadotIcon)(e,{isAlternative:!1}).map((e=>{let{cx:t,cy:r,fill:n,r:i}=e;return`<circle cx='${t}' cy='${r}' fill='${n}' r='${i}' />`})).join("")}</svg>`]))}var b={encodeAddress:async function(e,t){await(0,o.cryptoWaitReady)();const r={};return t.forEach((t=>{r[t]={},e.forEach((e=>{r[t][e]=h.encodeAddress((0,a.hexToU8a)(e),t)}))})),r},decodeAddress:async function(e){await(0,o.cryptoWaitReady)();try{const t={};return e.forEach((e=>{const r=(0,a.u8aToHex)(h.decodeAddress(e));t[r]=e})),t}catch(e){return window.send("log",{error:e.message}),null}},checkAddressFormat:async function(e,t){await(0,o.cryptoWaitReady)();try{return h.encodeAddress(h.decodeAddress(e),t).toUpperCase()==e.toUpperCase()}catch(e){return window.send("log",{error:e.message}),!1}},queryAddressWithAccountIndex:async function(e,t,r){const n=(0,s.ss58Decode)(t,r).toJSON();return await e.query.indices.accounts(n.data)},genIcons:p,genPubKeyIcons:async function(e){return(await p(e.map((e=>h.encodeAddress((0,a.hexToU8a)(e),2))))).map(((t,r)=>(t[0]=e[r],t)))},queryAccountsBonded:async function(e,t){return Promise.all(t.map((e=>h.encodeAddress((0,a.hexToU8a)(e),2))).map((t=>Promise.all([e.query.staking.bonded(t),e.query.staking.ledger(t)])))).then((e=>e.map(((e,r)=>[t[r],e[0],e[1].toHuman()?e[1].toHuman().stash:null]))))},getBalance:async function(e,t,r){const n=e=>{const t=e.lockedBreakdown.map((e=>d(d({},e.toJSON()),{},{use:(0,a.hexToString)(e.id.toHex())})));return d(d({},e),{},{lockedBreakdown:t})};return r?void(0,f.subscribeMessage)(e.derive.balances.all,[t],r,n):n(await e.derive.balances.all(t))},getAccountIndex:async function(e,t){return e.derive.accounts.indexes().then((r=>Promise.all(t.map((t=>e.derive.accounts.info(t))))))}};t.default=b},6402:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(38416));function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var a={getAssetsAll:async function(e){return(await e.query.assets.metadata.entries()).map((e=>{let[{args:[t]},r]=e;return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({id:t.toNumber()},r.toHuman())})).sort(((e,t)=>e.id-t.id))}};t.default=a},30215:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(1935)),o=r(81292),a={genIcons:async function(e){return e.map((e=>{const t=(0,i.default)(16,parseInt(e.slice(2,10),16));return[e,t.innerHTML.replace(">",`><rect x="0" y="0" width="16" height="16" fill="${t.style.background}"></rect>`)]}))},getEthBalance:async function(e){return(0,o.getWeb3)().eth.getBalance(e)},getTokenBalance:async function(e,t){return Promise.all(t.map((async t=>{const r=new((0,o.getWeb3)().eth.Contract)(o.erc20Abi,t),[n,i,a,s]=await Promise.all([r.methods.symbol().call(),r.methods.name().call(),r.methods.decimals().call(),r.methods.balanceOf(e).call()]);return{contractAddress:t,symbol:n,name:i,decimals:a,amount:s.toString()}})))},getAddress:async function(e){return(0,o.getWeb3)().utils.toChecksumAddress(e)}};t.default=a},78159:(e,t,r)=>{"use strict";var n=r(48764).Buffer,i=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(r(38416)),a=r(70420),s=r(93752),u=i(r(30215)),c=r(81292),f=r(50144);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){(0,o.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const h={};function p(e){return e.startsWith("0x")?e:`0x${e}`}function b(e,t){h[p(e.toLowerCase())]=t}function y(e){return h[p(e.toLowerCase())]}var g={initKeys:async function(e){e.forEach((e=>{b(e.address,JSON.stringify(e))}))},gen:async function(e,t){const r=a.ethers.utils.defaultPath.split("/"),n=r.slice(0,r.length-1).join("/")+"/"+(t||0).toString(),i=e?a.ethers.Wallet.fromMnemonic(e,n):a.ethers.Wallet.createRandom({path:n}),o=(await u.default.genIcons([i.address]))[0];return{mnemonic:i.mnemonic.phrase,path:i.mnemonic.path,address:i.address,svg:o[1]}},addressFromMnemonic:async function(e,t){try{const r=a.ethers.Wallet.fromMnemonic(e,t),n=(await u.default.genIcons([r.address]))[0];return{address:r.address,svg:n[1]}}catch(e){return{error:e.message}}},addressFromPrivateKey:async function(e){try{const t=new a.ethers.Wallet(e),r=(await u.default.genIcons([t.address]))[0];return{address:t.address,svg:r[1]}}catch(e){return{error:e.message}}},recover:async function(e,t,r,n){let i,o="",s="";try{switch(e){case"mnemonic":i=a.ethers.Wallet.fromMnemonic(t,r),o=t;break;case"privateKey":i=new a.ethers.Wallet(t),s=t;break;case"keystore":i=await a.ethers.Wallet.fromEncryptedJson(t,n)}}catch(e){return{error:e.message}}if(i.address){const e=await i.encrypt(n,{scrypt:{N:16384}});return b(i.address,e),{pubKey:i.publicKey,address:i.address,mnemonic:o,privateKey:s,keystore:e}}return null},checkPassword:async function(e,t){const r=y(e);if(!r)return{success:!1,error:`Can not find account ${e}`};try{return{success:!!(await a.ethers.Wallet.fromEncryptedJson(r,t)).address}}catch(e){return{success:!1,error:e.message}}},changePassword:async function(e,t,r){const n=y(e);if(!n)return{success:!1,error:`Can not find account ${e}`};try{const e=await a.ethers.Wallet.fromEncryptedJson(n,t);if(e.address){const t=await e.encrypt(r,{scrypt:{N:16384}});return b(e.address,t),{pubKey:e.publicKey,address:e.address,keystore:t}}}catch(e){return{success:!1,error:e.message}}},signMessage:async function(e,t,r){const n=y(t);if(!n)return{success:!1,error:`Can not find account ${t}`};try{const t=await a.ethers.Wallet.fromEncryptedJson(n,r);if(t.address){const r=await t.signMessage(a.ethers.utils.isHexString(e)?a.ethers.utils.arrayify(e):e);return{pubKey:t.publicKey,address:t.address,signature:r}}}catch(e){return{success:!1,error:e.message}}},verifySignature:async function(e,t){try{return{signer:(0,s.verifyMessage)(e,t)}}catch(e){return{error:e.message}}},estimateTransferGas:async function(e,t,r,n){const i=(0,c.getWeb3)().eth;if(e.startsWith("0x")){const o=new i.Contract(c.erc20Abi,e),s=await o.methods.decimals().call();return o.methods.transfer(r,a.ethers.utils.parseUnits(t.toString(),s).toHexString()).estimateGas({from:n})}return i.estimateGas({from:n,to:r,value:a.ethers.utils.parseEther(t.toString()).toHexString()})},estimateTxGas:async function(e){return(0,c.getWeb3)().eth.estimateGas(d(d({},e),{},{gas:void 0,gasPrice:void 0}))},getGasPrice:async function(){return(0,c.getWeb3)().eth.getGasPrice()},transfer:async function(e,t,r,n,i,o){const s=y(n);if(!s)return{success:!1,error:`Can not find account ${n}`};try{const n=await a.ethers.Wallet.fromEncryptedJson(s,i);if(n.address){const i=(0,c.getWeb3)().eth;i.accounts.wallet.add(n.privateKey);const s=(e,t)=>{e>3||window.send(t.transactionHash,{hash:t.transactionHash,confirmNumber:e})},u=await new Promise((async(u,f)=>{if(e.startsWith("0x")){const l=new i.Contract(c.erc20Abi,e),h=await l.methods.decimals().call();l.methods.transfer(r,a.ethers.utils.parseUnits(t.toString(),h).toHexString()).send(d({from:n.address},o)).on("transactionHash",(function(e){u(e)})).on("confirmation",s).on("error",f)}else i.sendTransaction(d({from:n.address,to:r,value:a.ethers.utils.parseEther(t.toString()).toHexString()},o)).on("transactionHash",(function(e){u(e)})).on("confirmation",s).on("error",f)}));return i.accounts.wallet.clear(),{pubKey:n.publicKey,address:n.address,hash:u}}}catch(e){return{success:!1,error:e.message}}},signAndSendTx:async function(e,t,r,n){const i=y(t);if(!i)return{success:!1,error:`Can not find account ${t}`};try{const t=await a.ethers.Wallet.fromEncryptedJson(i,r);if(t.address){const r=(0,c.getWeb3)().eth;r.accounts.wallet.add(t.privateKey);const i=await new Promise((async(t,i)=>{r.sendTransaction(d(d({},e),n)).on("transactionHash",(function(e){t(e)})).on("error",i)}));return r.accounts.wallet.clear(),{pubKey:t.publicKey,address:t.address,hash:i}}}catch(e){return{success:!1,error:e.message}}},signTx:async function(e,t,r){const n=y(t);if(!n)return{success:!1,error:`Can not find account ${t}`};try{const t=await a.ethers.Wallet.fromEncryptedJson(n,r);if(t.address){const r=d({},e);r&&r.from&&delete r.from,r.gasLimit=r.gas,delete r.gas;const n=await t.signTransaction(r);return{pubKey:t.publicKey,address:t.address,signed:n}}}catch(e){return{success:!1,error:e.message}}},signTypedData:async function(e,t,r){const i=y(t);if(!i)return{success:!1,error:`Can not find account ${t}`};try{const t=await a.ethers.Wallet.fromEncryptedJson(i,r);if(t.address){const r=(0,f.signTypedData_v4)(n.from(t.privateKey.slice(2),"hex"),{data:"string"==typeof e?JSON.parse(e):e});return{pubKey:t.publicKey,address:t.address,signature:r}}}catch(e){return{success:!1,error:e.message}}},verifyTypedData:async function(e,t){try{return{signer:(0,f.recoverTypedSignature_v4)({data:e,sig:t})}}catch(e){return{error:e.message}}}};t.default=g},81292:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.connect=async function(e){return o?o.setProvider(e):o=new i.default(e),{chainId:await o.eth.getChainId()}},t.erc20Abi=void 0,t.getWeb3=function(){return o};var i=n(r(37918));let o;t.erc20Abi=[{constant:!0,inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"dst",type:"address"},{internalType:"uint256",name:"wad",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"src",type:"address"},{indexed:!0,internalType:"address",name:"dst",type:"address"},{indexed:!1,internalType:"uint256",name:"wad",type:"uint256"}],name:"Transfer",type:"event"}]},52072:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(38416)),o=r(26700),a=r(69338),s=r(18145);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e){const{meta:t}=e.registry.findMetaCall(e.callIndex),r=t.documentation||t.docs;let n="";for(let e=0;e<r.length&&r[e].length;e++)n+=r[e];const i=e.toHuman();let o=Object.values(i.args);return"setCode"==i.method&&(o=[i.args.code.substring(0,64)]),{callIndex:e.toJSON().callIndex,method:i.method,section:i.section,args:o,meta:c(c({},t.toJSON()),{},{documentation:n})}}const l=[1,2,4,8,16,32].map(((e,t)=>[t+1,e])),d={"0x91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3":new a.BN(403200)},h=(0,a.stringToU8a)("modlpy/trsry".padEnd(32,"\0"));var p={fetchReferendums:async function(e,t){const r=await e.derive.democracy.referendums(),n=await e.derive.democracy.sqrtElectorate(),i=r.map((e=>{var r;let{image:i,imageHash:a,status:u,votedAye:l,votedNay:d,votedTotal:h,votes:p}=e,b={},y={};i&&i.proposal&&(b=function(e){const t=e.meta.args.map((e=>{let{name:t,type:r}=e;return{name:t.toString(),type:(0,o.getTypeDef)(r.toString())}})),r=e.args.map((e=>({isValid:!0,value:e})));return{hash:e.hash.toHex(),params:t,values:r}}(i.proposal),y=f(i.proposal),i.proposal=c(c({},i.proposal.toHuman()),{},{args:y.args}));const g=(0,s.approxChanges)(u.threshold,n,{votedAye:l,votedNay:d,votedTotal:h}),m=p.find((e=>e.accountId.toString()==t)),v=m?{balance:m.balance,vote:m.vote.toHuman()}:null;return c(c(c({},b),y),{},{title:`${y.section}.${y.method}`,content:null===(r=y.meta)||void 0===r?void 0:r.documentation,imageHash:a.toString(),changes:{changeAye:g.changeAye.toString(),changeNay:g.changeNay.toString()},userVoted:v})}));return{referendums:r,details:i}},getReferendumVoteConvictions:async function(e){const t=(d[e.genesisHash.toHex()]||e.consts.democracy.enactmentPeriod).toNumber()*e.consts.timestamp.minimumPeriod.toNumber()/1e3*2/86400;return l.map((e=>{let[r,n]=e;return{lock:n,period:(t*n).toFixed(2),value:r}}))},fetchProposals:async function(e){return(await e.derive.democracy.proposals()).map((e=>(e.image&&e.image.proposal&&(e.image.proposal=f(e.image.proposal)),e)))},fetchExternal:async function(e){const t=await e.derive.democracy.nextExternal();return t?(t.image.proposal=f(t.image.proposal),c(c({},t),{},{balance:t.image.balance,proposer:t.image.proposer})):null},fetchCouncilVotes:async function(e){return(await e.derive.council.votes()).reduce(((e,t)=>{let[r,{stake:n,votes:i}]=t;const o=c({},e);return i.forEach((e=>{const t=e.toString();o[t]||(o[t]={}),o[t][r.toString()]=n})),o}),{})},getCouncilMotions:async function(e){const t=await e.derive.council.proposals(),r=[];return t.forEach((e=>{r.push(c(c({},e),{},{proposal:f(e.proposal)}))})),r},getTreasuryOverview:async function(e){var t;const[r,n,i]=await Promise.all([null===(t=e.derive.bounties)||void 0===t?void 0:t.bounties(),e.derive.treasury.proposals(),e.derive.balances.account(h)]),o=r.reduce(((e,t)=>{let{bounty:{status:r,value:n}}=t;return e.iadd(r.isApproved?n:a.BN_ZERO)}),new a.BN(0)),s=n.approvals.reduce(((e,t)=>{let{proposal:{value:r}}=t;return e.iadd(r)}),new a.BN(0)),u=i.freeBalance.gt(a.BN_ZERO)&&!e.consts.treasury.burn.isZero()?e.consts.treasury.burn.mul(i.freeBalance).div(a.BN_MILLION):a.BN_ZERO,l=c({},n);return l.balance=i.freeBalance.toString(),l.burn=u.toString(),l.approved=s.toString(),l.spendable=i.freeBalance.sub(o).sub(s).toString(),l.proposals.forEach((e=>{e.council.length&&(e.council=e.council.map((e=>c(c({},e),{},{proposal:f(e.proposal)}))))})),l},getTreasuryTips:async function(e){const t=(await(e.query.tips||e.query.treasury).tips.keys()).map((e=>e.args[0].toHex())),r=(await(e.query.tips||e.query.treasury).tips.multi(t)).map(((e,r)=>[t[r],e.unwrapOr(null)])).filter((e=>!!e[1])).sort(((e,t)=>e[1].closes.unwrapOr(a.BN_ZERO).cmp(t[1].closes.unwrapOr(a.BN_ZERO))));return Promise.all(r.map((async t=>{const r=t[1].toJSON(),n=await(e.query.tips||e.query.treasury).reasons(r.reason),i=r.tips.map((e=>({address:e[0],value:e[1]})));return c(c({hash:t[0]},r),{},{reason:n.isSome?(0,a.hexToString)(n.unwrap().toHex()):null,tips:i})})))},makeTreasuryProposalSubmission:async function(e,t,r){const n=await(e.query.electionsPhragmen||e.query.elections||e.query.phragmenElection).members(),i=Math.ceil(.6*n.length),o=r?e.tx.treasury.rejectProposal(t):e.tx.treasury.approveProposal(t);return e.tx.council.propose(i,o,o.length)},getDemocracyUnlocks:async function(e,t){const r=await Promise.all([e.derive.chain.bestNumber(),e.derive.democracy.locks(t)]);return r[1].filter((e=>{let{isFinished:t,unlockAt:n}=e;return t&&r[0].gt(n)})).map((e=>{let{referendumId:t}=e;return t}))}};t.default=p},12450:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._curveDelay=u,t.default=void 0;var n=r(26700),i=r(69338);function o(e){return!!e.support&&!e.bareAyes}function a(e){return e.isOngoing&&o(e.asOngoing.tally)}function s(e,t){return`${(0,i.formatNumber)(e)} / ${t.replace(/_/g," ").split(" ").map(i.stringPascalCase).join(" ")}`}function u(e,t,r){if(r.isZero())return i.BN_BILLION;const n=t.mul(i.BN_BILLION).div(r);if(e.isLinearDecreasing){const{ceil:t,floor:r,length:o}=e.asLinearDecreasing;return n.lt(r)?i.BN_BILLION:n.gt(t)?i.BN_ZERO:(0,i.bnMin)(i.BN_BILLION,(0,i.bnMax)(i.BN_ZERO,t.sub(n).mul(o).div(t.sub(r))))}if(e.isSteppedDecreasing){const{begin:t,end:r,period:o,step:a}=e.asSteppedDecreasing;return n.lt(r)?i.BN_BILLION:(0,i.bnMin)(i.BN_BILLION,(0,i.bnMax)(i.BN_ZERO,o.mul(t.sub((0,i.bnMin)(n,t)).add(a.isZero()?a:a.sub(i.BN_ONE))).div(a)))}if(e.asReciprocal){const{factor:t,xOffset:r,yOffset:o}=e.asReciprocal;return(0,i.bnMin)(i.BN_BILLION,(0,i.bnMax)(i.BN_ZERO,t.mul(i.BN_BILLION).div(n.sub(o)).sub(r)))}throw new Error(`Unknown curve found ${e.type}`)}function c(e,t,r,n){let{decisionPeriod:a,minApproval:s,minSupport:c}=r;const f=o(t)?t.support:t.bareAyes;return n.add(a.mul((0,i.bnMax)(u(s,t.ayes,t.ayes.add(t.nays)),u(c,f,e))).div(i.BN_BILLION))}function f(e){if(e.query.preimage&&e.query.preimage.preimageFor&&e.query.preimage.preimageFor.creator.meta.type.isMap){const{type:t}=e.registry.lookup.getTypeDef(e.query.preimage.preimageFor.creator.meta.type.asMap.key);if("H256"===t)return"hash";if("(H256,u32)"===t)return"hashAndLen"}return"unknown"}function l(e){return e instanceof n.Option?e.unwrapOr(null):e}function d(e,t){const r=(0,i.isU8a)(t)?t:t.unwrapOr(null);let n,o=null,a=null,s=null;if(r)try{o=e.registry.createType("Call",r);const t=o.encodedLength;if(e.proposalLength){const r=e.proposalLength.toNumber();t!==r&&(s=`Decoded call length does not match on-chain stored preimage length (${(0,i.formatNumber)(t)} bytes vs ${(0,i.formatNumber)(r)} bytes)`)}else n=new i.BN(t)}catch(e){console.error(e),a="Unable to decode preimage bytes into a valid Call"}else s="No preimage bytes found";return(0,i.objectSpread)({},e,{isCompleted:!0,proposal:o,proposalError:a,proposalLength:n||e.proposalLength,proposalWarning:s})}function h(e){return e?{amount:e[1],who:e[0].toString()}:void 0}async function p(e,t,r){var o,a,s,u,c,p,b,y,g;const m=t.asOngoing,v=function(e,t){let r,n;if((0,i.isString)(t))r=t;else if((0,i.isU8a)(t))r=t.toHex();else{const o=t;o.isInline?(n=o.asInline.toU8a(!0),r=(0,i.u8aToHex)(e.registry.hash(n))):t.isLegacy?r=t.asLegacy.hash_.toHex():t.isLookup?r=t.asLookup.hash_.toHex():console.error(`Unhandled FrameSupportPreimagesBounded type ${t.type}`)}return{inlineData:n,paramsStatus:r&&[r],proposalHash:r,resultPreimageHash:r&&{count:0,isCompleted:!1,isHashParam:"hash"===f(e),proposalHash:r,proposalLength:n&&new i.BN(n.length),registry:e.registry,status:null}}}(e,m.proposal||m.proposalHash),w=await async function(e,t){var r,o;const a=!t.inlineData&&t.paramsStatus&&await(null===(r=e.query.preimage)||void 0===r?void 0:r.statusFor(t.paramsStatus[0])),s=t.resultPreimageHash&&a?function(e,t){const r=(0,i.objectSpread)({},e,{status:t.unwrapOr(null)});if(r.status)if(r.status.isRequested){const e=r.status.asRequested;if(e instanceof n.Option);else{const{count:t,deposit:n,len:o}=e;r.count=t.toNumber(),r.deposit=h(n.unwrapOr(null)),r.proposalLength=o.unwrapOr(i.BN_ZERO)}}else if(r.status.isUnrequested){const e=r.status.asUnrequested;if(e instanceof n.Option)r.deposit=h(e.unwrapOr(null));else{const{deposit:e,len:t}=r.status.asUnrequested;r.deposit=h(e),r.proposalLength=t}}else console.error(`Unhandled PalletPreimageRequestStatus type: ${r.status.type}`);return{paramsBytes:r.isHashParam?[r.proposalHash]:[[r.proposalHash,r.proposalLength||i.BN_ZERO]],resultPreimageFor:r}}(t.resultPreimageHash,a):{},u=s.paramsBytes&&await(null===(o=e.query.preimage)||void 0===o?void 0:o.preimageFor(...s.paramsBytes));return s.resultPreimageFor?u?d(s.resultPreimageFor,u):s.resultPreimageFor:t.resultPreimageHash?t.inlineData?d(t.resultPreimageHash,t.inlineData):t.resultPreimageHash:void 0}(e,v);let _=null,x=null,O=null;if(r){const{deciding:e,submitted:t}=m;if(e.isSome){const{confirming:t,since:n}=e.unwrap();t.isSome?O=t.unwrap():x=n.add(r.decisionPeriod)}else _=t.add(r.preparePeriod)}return{decisionDeposit:null===(o=l(m.decisionDeposit))||void 0===o?void 0:o.toJSON(),confirmEnd:null===(a=O)||void 0===a?void 0:a.toString(),decideEnd:null===(s=x)||void 0===s?void 0:s.toString(),periodEnd:(O||x||_).toString(),prepareEnd:null===(u=_)||void 0===u?void 0:u.toString(),callMethod:`${null===(c=w.proposal)||void 0===c?void 0:c.section}.${null===(p=w.proposal)||void 0===p?void 0:p.method}`,callDocs:(null===(b=w.proposal)||void 0===b?void 0:b.meta)&&(null===(y=w.proposal.meta.docs)||void 0===y?void 0:y.toJSON()[0]),proposalHash:v.proposalHash,submissionDeposit:null===(g=l(m.submissionDeposit))||void 0===g?void 0:g.toJSON(),tally:m.tally,tallyTotal:m.tally.ayes.add(m.tally.nays)}}function b(e,t){return(e.info.isOngoing===t.info.isOngoing?e.info.isOngoing?function(e,t){const r=e.info.asOngoing,n=t.info.asOngoing;return r.track.cmp(n.track)||(r.deciding.isSome===n.deciding.isSome?r.deciding.isSome?e.info.asOngoing.deciding.unwrap().since.cmp(t.info.asOngoing.deciding.unwrap().since):0:r.deciding.isSome?-1:1)}(e,t):0:e.info.isOngoing?-1:1)||t.id.cmp(e.id)}function y(e,t){return e.trackId&&t.trackId?e.trackId.cmp(t.trackId):e.trackId?-1:1}const g=[1,2,4,8,16,32].map(((e,t)=>[t+1,e]));var m={checkGovExist:function(e,t){var r,n,i,o;return 1===t?!(null===(o=e.tx.democracy)||void 0===o||!o.propose):!(null===(r=e.tx.referenda)||void 0===r||!r.submit||null===(n=e.tx.convictionVoting)||void 0===n||!n.vote||null===(i=e.consts.referenda)||void 0===i||!i.tracks)},queryReferendums:async function(e,t){const r=await e.query.balances.totalIssuance(),n=await e.query.referenda.referendumInfoFor.keys(),i=e.consts.referenda.tracks.map((e=>{let[t,r]=e;return{id:t,info:r}})),o=n.map((e=>{let{args:[t]}=e;return t})),u=(await e.query.referenda.referendumInfoFor.multi(o)).map(((e,t)=>e.isSome?[o[t],e.unwrap()]:null)).filter((e=>!!e)).map((e=>{let[t,r]=e;return{id:t,info:r,isConvictionVote:a(r),key:t.toString()}})),f=await async function(e,t,r,n){if(!n||!r)return[{key:"empty"}];if(!t)return[{key:"referenda",referenda:n.sort(b)}];const i=[],o={key:"referenda",referenda:[]};for(let a=0;a<n.length;a++){const u=n[a],f=u.info.isOngoing?t.find((e=>{let{id:t}=e;return t.eq(u.info.asOngoing.track)})):void 0;if(f){if(u.trackGraph=f.graph,u.trackId=f.id,u.track=f.info,u.isConvictionVote&&u.info.isOngoing){const{deciding:e,tally:t}=u.info.asOngoing;if(e.isSome){const{since:n}=e.unwrap();u.decidingEnd=c(r,t,f.info,n)}}u.expanded=await p(e,u.info,u.track);const t=i.find((e=>{let{track:t}=e;return u.track===t}));t?t.referenda.push(u):i.push({key:`track:${u.trackId.toString()}`,referenda:[u],track:u.track,trackId:u.trackId,trackName:s(u.trackId,u.track.name)})}else o.referenda.push(u)}(o.referenda&&0!==o.referenda.length||!i.length)&&i.push(o);for(let e=0;e<i.length;e++)i[e].referenda.sort(b);return i.sort(y)}(e,i,r,u),l=await e.query.convictionVoting.votingFor.entries(t),d=await e.derive.chain.bestNumber(),h=l.filter((e=>e[1].toHuman().Casting.votes.length>0)).map((t=>{const r=t[1].toHuman().Casting.votes[0];let n;return f.forEach((i=>{const o=i.key,a=i.referenda.find((e=>e.key===r[0].toString()));if(a)if("referenda"===o){const i=e.consts.convictionVoting.voteLockingPeriod.toNumber(),o=a.info.toJSON();let s=Object.values(o)[0][0];r[1].Standard?"None"!=r[1].Standard.vote.conviction&&(s+=parseInt(r[1].Standard.vote.conviction.substring(6,7))*i):s+=i,n={trackId:t[0].args[1].toString(),key:r[0].toString(),vote:r[1],isEnded:!0,redeemable:d>s,status:Object.keys(o)[0],endBlock:s}}else n={trackId:t[0].args[1].toString(),key:r[0].toString(),vote:r[1],isEnded:!1,status:a.expanded.confirmEnd?"confirming":a.expanded.decideEnd?"deciding":"preparing",endBlock:a.expanded.periodEnd}})),n}));return{ongoing:f.filter((e=>"referenda"!==e.key)),userVotes:h}},getReferendumVoteConvictions:async function(e){const t=e.consts.convictionVoting.voteLockingPeriod.toNumber()*e.consts.timestamp.minimumPeriod.toNumber()/1e3*2/86400;return g.map((e=>{let[r,n]=e;return{lock:n,period:(t*n).toFixed(2),value:r}}))}};t.default=m},35450:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t._getDispatchError=p,t.default=void 0;var i=n(r(38416)),o=r(94459),a=r(69338),s=n(r(52072)),u=r(70820),c=r(42946),f=n(r(15350));function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}let h=new c.Keyring({ss58Format:0,type:"sr25519"});function p(e){let t=e.type;if(e.isModule)try{const r=e.asModule,n=e.registry.findMetaError(r);t=`${n.section}.${n.name}`}catch(e){}else e.isToken&&(t=`${e.type}.${e.asToken.type}`);return t}var b={initKeys:async function(e,t){await(0,o.cryptoWaitReady)();const r={};return t.forEach((e=>{r[e]={}})),e.forEach((e=>{const n=h.addFromJson(e);t.forEach((e=>{const t=(0,a.u8aToHex)(n.publicKey);r[e][t]=h.encodeAddress(n.publicKey,e)}))})),r},gen:async function(e,t,r,n){const i=e||(0,o.mnemonicGenerate)();if(!(0,o.mnemonicValidate)(i))return null;const a=h.addFromMnemonic(i+(n||""),{},r||"sr25519"),s=(0,o.encodeAddress)(a.publicKey,t||0);return{mnemonic:i,address:s,svg:(await f.default.genIcons([s]))[0][1]}},checkMnemonicValid:async function(e){return(0,o.mnemonicValidate)(e)},addressFromMnemonic:async function(e,t,r,n){let i;try{i=h.addFromMnemonic(e+(n||""),{},r);const a=(0,o.encodeAddress)(i.publicKey,t);return{address:a,svg:(await f.default.genIcons([a]))[0][1]}}catch(e){return{error:e.message}}},addressFromRawSeed:async function(e,t,r,n){let i;try{i=h.addFromUri(e+(n||""),{},r);const a=(0,o.encodeAddress)(i.publicKey,t);return{address:a,svg:(await f.default.genIcons([a]))[0][1]}}catch(e){return{error:e.message}}},recover:function(e,t,r,n){return new Promise(((i,s)=>{let u,c="",f="";try{switch(e){case"mnemonic":if(!(0,o.mnemonicValidate)(r.split("/")[0]))throw new Error(`invalid mnemonic ${r}`);u=h.addFromMnemonic(r,{},t),c=r;break;case"rawSeed":u=h.addFromUri(r,{},t),f=r;break;case"keystore":const e=JSON.parse(r);u=h.addFromJson(e);try{u.decodePkcs8(n)}catch(e){i(null)}i(d({pubKey:(0,a.u8aToHex)(u.publicKey)},u.toJson(n)))}}catch(e){i({error:e.message})}if(u.address){const e=u.toJson(n);u.lock(),h.addFromJson(e),i(d({pubKey:(0,a.u8aToHex)(u.publicKey),mnemonic:c,rawSeed:f},e))}else i(null)}))},txFeeEstimate:async function(e,t,r){let n;n="treasury.approveProposal"==t.txName?await s.default.makeTreasuryProposalSubmission(e,r[0],!1):"treasury.rejectProposal"==t.txName?await s.default.makeTreasuryProposalSubmission(e,r[0],!0):t.txHex?e.tx(t.txHex):e.tx[t.module][t.call](...r);let i=t.sender.address;return t.proxy&&(n=e.tx.recovery.asRecovered(t.sender.address,n),i=h.encodeAddress((0,a.hexToU8a)(t.proxy.pubKey))),await n.paymentInfo(i)},sendTx:function(e,t,r,n,i){return new Promise((async o=>{let u;u="treasury.approveProposal"==t.txName?await s.default.makeTreasuryProposalSubmission(e,r[0],!1):"treasury.rejectProposal"==t.txName?await s.default.makeTreasuryProposalSubmission(e,r[0],!0):t.txHex?e.tx(t.txHex):e.tx[t.module][t.call](...r);let c=()=>{};const f=e=>{if(e.status.isInBlock||e.status.isFinalized){const{success:t,error:r}=function(e,t,r){if(!t||!t.events)return{};let n,i=!1;return t.events.filter((e=>!!e.event)).map((e=>{let{event:{data:t,method:o,section:a}}=e;if("system"===a&&"ExtrinsicFailed"===o){const[e]=t;n=p(e),window.send("txUpdateEvent|msgId="+r,{title:`${a}.${o}`,message:n})}else window.send("txUpdateEvent|msgId="+r,{title:`${a}.${o}`,message:"ok"}),"system"==a&&"ExtrinsicSuccess"==o&&(i=!0)})),{success:i,error:n}}(0,e,i);t&&o({hash:u.hash.toString(),blockHash:(e.status.asInBlock||e.status.asFinalized).toHex()}),r&&o({error:r}),c()}else window.send(i,e.status.type)};if(t.isUnsigned)return void u.send(f).then((e=>{c=e})).catch((e=>{o({error:e.message})}));let l;t.proxy?(u=e.tx.recovery.asRecovered(t.sender.address,u),l=h.getPair((0,a.hexToU8a)(t.proxy.pubKey))):l=h.getPair((0,a.hexToU8a)(t.sender.pubKey));try{l.decodePkcs8(n),u.signAndSend(l,{tip:t.tip},f).then((e=>{c=e,window.send(i,e)})).catch((e=>{o({error:e.message})}))}catch(e){o({error:"password check failed"})}}))},checkPassword:function(e,t){return new Promise((r=>{const n=h.getPair((0,a.hexToU8a)(e));try{n.isLocked||n.lock(),n.decodePkcs8(t)}catch(e){r(null)}r({success:!0})}))},changePassword:function(e,t,r){return new Promise((n=>{const i=(0,a.hexToU8a)(e),o=h.getPair(i);try{o.isLocked||o.lock(),o.decodePkcs8(t)}catch(e){return void n(null)}const s=o.toJson(r);h.removePair(i),h.addFromJson(s),n(d({pubKey:(0,a.u8aToHex)(o.publicKey)},s))}))},checkDerivePath:async function(e,t,r){try{const{path:n}=(0,o.keyExtractSuri)(`${e}${t}`);if("ed25519"===r&&n.some((e=>{let{isSoft:t}=e;return t})))return"Soft derivation paths are not allowed on ed25519"}catch(e){return e.message}return null},signTxAsExtension:async function(e,t){return new Promise((r=>{const n=h.getPair(t.address);try{n.isLocked||n.lock(),n.decodePkcs8(e);const i=window.api.registry;i.setSignedExtensions(t.signedExtensions);r(i.createType("ExtrinsicPayload",t,{version:t.version}).sign(n))}catch(e){r({error:e.message})}}))},signBytesAsExtension:async function(e,t){return new Promise((r=>{const n=h.getPair(t.address);try{n.isLocked||n.lock(),n.decodePkcs8(e),r({signature:(0,a.u8aToHex)(n.sign((0,u.wrapBytes)(t.data)))})}catch(e){r({error:e.message})}}))},verifySignature:async function(e,t,r){return(0,o.signatureVerify)((0,u.wrapBytes)(e),t,r)}};t.default=b},40660:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(38416)),o=r(69338),a=n(r(13550));function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const c=(0,o.stringToU8a)("modlpy/cfund"),f=[[0,0],[0,1],[0,2],[0,3],[1,1],[1,2],[1,3],[2,2],[2,3],[3,3]];function l(e,t){return e.concat(...t.filter((r=>{let{firstSlot:n,lastSlot:i,paraId:o,value:a}=r;return!e.some((e=>e.firstSlot==n&&e.lastSlot==i))&&!t.some((e=>o!==e.paraId&&n==e.firstSlot&&i==e.lastSlot&&a.lt(e.value)))}))).map((e=>t.find((t=>{let{firstSlot:r,lastSlot:n,value:i}=t;return e.firstSlot==r&&e.lastSlot==n&&e.value.lt(i)}))||e)).sort(((e,t)=>e.firstSlot==t.firstSlot?e.lastSlot>t.lastSlot?1:-1:e.firstSlot>t.firstSlot?1:-1))}async function d(e){var t,r;const n=await Promise.all([null===(t=e.query.auctions)||void 0===t?void 0:t.auctionCounter(),null===(r=e.query.auctions)||void 0===r?void 0:r.auctionInfo()]),i=n[1].unwrapOr([null,null]);return{numAuctions:n[0].toJSON(),leasePeriod:i[0],endBlock:i[1]}}var h={queryAuctionWithWinners:async function(e){var t,r;const n=e.consts.crowdloan.minContribution,i=function(e){var t;if(null===(t=e.consts.auctions)||void 0===t?void 0:t.leasePeriodsPerSlot){const t=[];for(let r=0;e.consts.auctions.leasePeriodsPerSlot.gtn(r);r++)for(let n=r;e.consts.auctions.leasePeriodsPerSlot.gtn(n);n++)t.push([r,n]);return t}return f}(e),[s,h,p,b,y]=await Promise.all([e.derive.chain.bestNumber(),d(e),e.query.crowdloan.funds.entries(),e.query.slots.leases.entries(),null===(t=e.query.auctions)||void 0===t?void 0:t.winning.entries()]),g=b.map((e=>{let[t]=e;return t.toHuman()[0].replace(/,/g,"")})),m=p.map((e=>{let[t,r]=e;return function(e,t,r,n){return r.info?{paraId:r.paraId,cap:r.info.cap,end:r.info.end,isCapped:r.info.cap.sub(r.info.raised).lt(t),isEnded:e.gt(r.info.end),isWinner:n.some((e=>e===r.paraId)),isCrowdloan:!0,firstSlot:r.info.firstPeriod.toJSON(),lastSlot:r.info.lastPeriod.toJSON(),value:r.info.raised}:null}(s,n,{info:r.unwrapOr(null),paraId:t.toHuman()[0].replace(/,/g,"")},g)})).filter((e=>!!e)),v=function(e,t,r){if(e&&e.leasePeriod&&t){const n=e.leasePeriod,i=n.add(r);return t.filter((e=>{let{firstSlot:t,isWinner:r,lastSlot:o}=e;return!r&&t>=n.toNumber()&&o<=i.toNumber()})).sort(((e,t)=>t.value.cmp(e.value)))}}(h,m,new a.default(i[i.length-1][1])),w=function(e,t,r){return r.sort(((e,t)=>{let[{args:[r]}]=e,[{args:[n]}]=t;return r.cmp(n)})).reduce(((r,n)=>{let[{args:[i]},s]=n;const u=function(e,t,r){return r.isNone?[]:r.unwrap().reduce(((r,n,i)=>{if(n.isSome){const[a,s,u]=n.unwrap(),f=t.leasePeriod||o.BN_ZERO,[l,d]=e[i];r.push({accountId:a.toString(),firstSlot:f.addn(l).toNumber(),isCrowdloan:(0,o.u8aEq)(c,a.subarray(0,c.length)),lastSlot:f.addn(d).toNumber(),paraId:s.toString(),value:u})}return r}),[])}(e,t,s);var f,l;return u.length&&(0===r.length||(f=u,l=r[r.length-1].winners,JSON.stringify({w:f})!==JSON.stringify({w:l})))&&r.push(function(e,t,r){let{endBlock:n}=e;return{blockNumber:n&&t?t.add(n):t||o.BN_ZERO,blockOffset:t||o.BN_ZERO,total:r.reduce(((e,t)=>{let{value:r}=t;return e.iadd(r)}),new a.default(0)),winners:r}}(t,i,u)),r}),[]).reverse()}(i,h,y);return{auction:h.leasePeriod?u(u({},h),{},{bestNumber:s.toString(),leasePeriod:h.leasePeriod.toNumber(),leaseEnd:h.leasePeriod.add(e.consts.auctions.leasePeriodsPerSlot).isub(o.BN_ONE).toNumber()}):{},funds:m,winners:l((null===(r=w[0])||void 0===r?void 0:r.winners)||[],v||[])}},queryParasOverview:async function(e){const[t,r]=await Promise.all([e.query.paras.parachains(),e.derive.chain.bestNumber()]),n=e.consts.slots.leasePeriod,i=r.sub(e.consts.slots.leaseOffset||o.BN_ZERO);return{parasCount:t.length,currentLease:i.div(n).toNumber(),leaseLength:n.toNumber(),leaseProgress:i.mod(n).toNumber()}},queryUserContributions:async function(e,t,r){return(await e.derive.crowdloan.ownContributions(t,[r]))[r]}};t.default=h},50484:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.getNetworkConst=async function(e){var t,r,n,i,o,a,s,c,f;return{auctions:{endingPeriod:null===(t=e.consts.auctions)||void 0===t?void 0:t.endingPeriod},babe:{expectedBlockTime:null===(r=e.consts.babe)||void 0===r?void 0:r.expectedBlockTime},balances:{existentialDeposit:null===(n=e.consts.balances)||void 0===n?void 0:n.existentialDeposit},staking:{maxNominations:(null===(i=e.consts.staking)||void 0===i?void 0:i.maxNominations)||u,maxNominatorRewardedPerValidator:null===(o=e.consts.staking)||void 0===o?void 0:o.maxNominatorRewardedPerValidator},timestamp:{minimumPeriod:null===(a=e.consts.timestamp)||void 0===a?void 0:a.minimumPeriod},treasury:{proposalBondMinimum:null===(s=e.consts.treasury)||void 0===s?void 0:s.proposalBondMinimum,proposalBond:null===(c=e.consts.treasury)||void 0===c?void 0:c.proposalBond,spendPeriod:null===(f=e.consts.treasury)||void 0===f?void 0:f.spendPeriod}}},t.getNetworkProperties=async function(e){const t=await e.rpc.system.properties(),r=e.genesisHash.toHuman();return r==o.SubstrateNetworkKeys.POLKADOT?e.registry.createType("ChainProperties",s(s({},t),{},{tokenDecimals:[10],tokenSymbol:["DOT"],genesisHash:r})):s(s({},t.toJSON()),{},{genesisHash:r})},t.subscribeMessage=async function(e,t,r,n){return e(...t,(e=>{const t=n?n(e):e;window.send(r,t)})).then((e=>(window[`unsub${r}`]=e,{})))};var i=n(r(38416)),o=r(14199);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const u=16},56717:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(38416)),o=r(69338),a=n(r(13550)),s=r(59387);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const f=new a.default("1".padEnd(13,"0"));function l(e){return e.muln(1e3).div(f).toNumber()/1e3}function d(e){return Object.entries(e).reduce(((e,t)=>{let[r,n]=t;return n.forEach((t=>{Object.entries(t.validators).forEach((n=>{let[i,{value:o}]=n;const a=e.find((e=>e.validatorId===i));if(a){const e=a.eras.find((e=>e.era.eq(t.era)));e?e.stashes[r]=o:a.eras.push({era:t.era,stashes:{[r]:o}}),a.available=a.available.add(o)}else e.push({available:o,eras:[{era:t.era,stashes:{[r]:o}}],validatorId:i})}))})),e}),[]).sort(((e,t)=>t.available.cmp(e.available)))}const h=new a.default(864e5);async function p(e){return(await e.query.staking.nominators.entries()).reduce(((e,t)=>{let[r,n]=t;if(n.isSome&&r.args.length){const t=r.args[0].toString(),{targets:i}=n.unwrap();i.forEach(((r,n)=>{const i=r.toString();e[i]?e[i].push(t):e[i]=[t]}))}return e}),{})}function b(e){return!e.nextElected}function y(e,t,r,n){let{activeEra:i,eraLength:a,lastEra:s,sessionLength:u}=r;const c=e.createType("Exposure"),f=n&&s.sub(n).iadd(o.BN_ONE);return[t.info.map((r=>{let{accountId:n,exposure:l=c,stakingLedger:d,validatorPrefs:h}=r,[p,y]=l.total?[l.own.unwrap(),l.total.unwrap()]:[o.BN_ZERO,o.BN_ZERO];const g=y.isZero(),m=(l.others||[]).reduce(((t,r)=>{let{value:n=e.createType("Compact<Balance>")}=r;const i=n.unwrap();return t.isZero()||i.lt(t)?i:t}),o.BN_ZERO);y.isZero()&&(y=p=d.total.unwrap());const v=n.toString(),w=s.isZero()?void 0:d.claimedRewards[d.claimedRewards.length-1];let _=f&&w&&w.gt(f)?w:void 0;return _&&!u.eq(o.BN_ONE)&&(_=s.sub(_).mul(a)),{accountId:n,bondOther:y.sub(p),bondOwn:p,bondShare:0,bondTotal:y,commissionPer:h.commission.unwrap().toNumber()/1e7,exposure:l,isActive:!g,isBlocking:!(!h.blocked||!h.blocked.isTrue),isElected:!b(t)&&t.nextElected.some((e=>e.eq(n))),key:v,knownLength:i.sub(d.claimedRewards[0]||i),lastPayout:_,minNominated:m,numNominators:(l.others||[]).length,numRecentPayouts:f?d.claimedRewards.filter((e=>e.gte(f))).length:0,rankBondOther:0,rankBondOwn:0,rankBondTotal:0,rankNumNominators:0,rankOverall:0,rankReward:0,skipRewards:g,stakedReturn:0,stakedReturnCmp:0}})),Object.keys({})]}function g(e){return(t,r)=>(t[e]=r+1,t)}function m(e){return e?e.toString():null}var v={loadValidatorRewardsData:async function(e,t){const r=await e.derive.staking.ownSlashes(t,!0),n=await e.derive.staking.erasRewards(),i=await e.derive.staking.stakerPoints(t,!0),o=await e.derive.staking.ownExposures(t,!0),a=function(e){const t=[],r=[],n=[];let i=0,o=0;return e.forEach((e=>{let{era:a,points:s}=e;o+=s.toNumber(),t.push(a.toString()),s.gtn(0)&&i++,r.push((i?Math.ceil(100*o/i):0)/100),n.push(s)})),{chart:[n,r],labels:t}}(i),s=function(e,t,r){const n=[],i=[],o=[],a=[];let s=0,u=0;return e.forEach((e=>{let{era:c,eraReward:f}=e;const d=r.find((e=>e.era.eq(c))),h=t.find((e=>e.era.eq(c))),p=null!=d&&d.eraPoints.gtn(0)?l(d.points.mul(f).div(d.eraPoints)):0,b=h?l(h.total):0;u+=p,p>0&&s++,n.push(c.toString()),o.push(p),a.push((s?Math.ceil(100*u/s):0)/100),i.push(b)})),{chart:[i,o,a],labels:n}}(n,r,i);return{points:a,rewards:s,stakes:function(e){const t=[],r=[],n=[],i=[];let o=0,a=0;return e.forEach((e=>{let{clipped:s,era:u,exposure:c}=e;const f=l(s.total.unwrap()),d=l(c.total.unwrap());a+=f,f>0&&o++,i.push((o?Math.ceil(100*a/o):0)/100),t.push(u.toString()),r.push(f),n.push(d)})),{chart:[r,n,i],labels:t}}(o)}},getAccountRewardsEraOptions:async function(e){const[t,r]=await Promise.all([e.derive.session.eraLength(),e.query.staking.historyDepth()]);if(t&&r){var n,i;const o=h.div((null===(n=e.consts.babe)||void 0===n?void 0:n.expectedBlockTime)||(null===(i=e.consts.timestamp)||void 0===i?void 0:i.minimumPeriod.muln(2))||new a.default(6e3)),s=t.mul(r),u=[];let c=2;for(;;){const e=o.muln(c);if(e.gte(s))break;u.push({text:c,unit:"day",value:e.div(t).toNumber()}),c*=3}return u.push({text:r.toNumber(),unit:"eras",value:r.toNumber()}),u}return[{text:0,unit:"",value:0}]},loadAccountRewardsData:async function(e,t,r){var n;const i=(await(null===(n=e.derive.staking)||void 0===n?void 0:n.erasHistoric())).slice(-1*r),s=await e.derive.staking.stakerRewardsMultiEras([t],i),{allRewards:u}=function(e,t){const r={};return e.forEach(((e,n)=>{r[e]=t[n].filter((e=>{let{eraReward:t}=e;return!t.isZero()}))})),{allRewards:r,rewardCount:Object.values(r).filter((e=>0!==e.length)).length}}([t],s),c=function(e){if(e){const t=function(e){return Object.entries(e).map((e=>{let[t,r]=e;return{available:r.reduce(((e,t)=>{let{validators:r}=t;return Object.values(r).reduce(((e,t)=>{let{value:r}=t;return e.iadd(r)}),e)}),new a.default(0)),rewards:r,stashId:t}})).filter((e=>{let{available:t}=e;return!t.isZero()})).sort(((e,t)=>t.available.cmp(e.available)))}(e);return{stashTotal:t.length?t.reduce(((e,t)=>{let{available:r}=t;return e.add(r)}),o.BN_ZERO):null,stashes:t,validators:d(e)}}return{}}(u);return{available:c.stashTotal,validators:c.validators}},querySortedTargets:async function(e){var t;const r=await Promise.all([e.query.staking.historyDepth&&e.query.staking.historyDepth(),null===(t=e.query.balances)||void 0===t?void 0:t.totalIssuance(),e.derive.staking.electedInfo({withExposure:!0,withPrefs:!0}),e.derive.staking.waitingInfo({withPrefs:!0}),e.derive.session.info(),e.query.staking.minNominatorBond(),e.query.staking.counterForNominators()]);return c(c({inflation:{inflation:0,stakedReturn:0},medianComm:0},r[1]&&r[2]&&r[3]&&r[4]?function(e,t,r,n,i,u){const[c,f]=y(e,t,i,u),[l]=y(e,r,i),d=c.filter((e=>{let{isActive:t}=e;return t})).map((e=>{let{bondTotal:t}=e;return t})).sort(((e,t)=>e.cmp(t))),h=d.reduce(((e,t)=>e.iadd(t)),new a.default(0)),p=h.divn(d.length),b=function(e,t,r){const{falloff:n,idealStake:i,maxInflation:o,minInflation:a}=(0,s.getInflationParams)(e),u=t.muln(1e6).div(r).toNumber()/1e6,c=o/i,f=100*(a+(u<=i?u*(c-a/i):(c*i-a)*Math.pow(2,(i-u)/n)));return{inflation:f,stakedReturn:f/u}}(e,h,n);!p.isZero()&&c.forEach((e=>{e.skipRewards||(e.stakedReturn=b.stakedReturn*p.mul(o.BN_MILLION).div(e.bondTotal).toNumber()/o.BN_MILLION.toNumber(),e.stakedReturnCmp=e.stakedReturn*(100-e.commissionPer)/100)}));const m=c.reduce(((e,t)=>{let{minNominated:r}=t;return e.isZero()||r.lt(e)?r:e}),o.BN_ZERO),v=function(e){const t=[];return e.filter((e=>{const r=e.accountId.toString();return!t.includes(r)&&(t.push(r),!0)})).sort(((e,t)=>t.bondTotal.cmp(e.bondTotal))).map(g("rankBondTotal")).sort(((e,t)=>e.stakedReturnCmp-t.stakedReturnCmp)).map(g("rankReward")).sort(((e,t)=>t.stakedReturnCmp-e.stakedReturnCmp||e.commissionPer-t.commissionPer||t.rankBondTotal-e.rankBondTotal)).map(g("rankOverall")).sort(((e,t)=>e.isFavorite===t.isFavorite?0:e.isFavorite?-1:1))}((0,o.arrayFlatten)([c,l])),w=v.map((e=>{let{commissionPer:t}=e;return t})).sort(((e,t)=>e-t)),_=Math.floor(w.length/2),x=w.length?w.length%2?w[_]:(w[_-1]+w[_])/2:0,O=c.map((e=>{let{key:t}=e;return t})),k=l.map((e=>{let{key:t}=e;return t})),P=(0,o.arrayFlatten)([O,k]);return{avgStaked:p,inflation:b,lowStaked:d[0]||o.BN_ZERO,medianComm:x,minNominated:m,nominators:f,totalIssuance:n,totalStaked:h,validatorIds:P,validators:v,waitingIds:k}}(e,r[2],r[3],r[1],(e=>{let{activeEra:t,eraLength:r,sessionLength:n}=e;return{activeEra:t,eraLength:r,lastEra:t.isZero()?o.BN_ZERO:t.subn(1),sessionLength:n}})(r[4]),r[0]):{}),{},{minNominatorBond:r[5],counterForNominators:r[6]})},queryNominations:p,queryNominationsCount:async function(e){const t=await p(e),r={};return Object.keys(t).forEach((e=>{r[e]=t[e].length})),r},getOwnStashInfo:async function(e,t){const[r,n]=await async function(e,t){let r=t,n=!1;const i=await Promise.all([e.query.staking.bonded(t),e.query.staking.ledger(t)]);return i[0].isSome&&(n=!0),i[1].isSome&&(r=i[1].unwrap().stash.toString(),t!=r&&(n=!1)),[r,n]}(e,t),[i,s,u,f]=await Promise.all([e.derive.staking.account(r),e.query.staking.validators(r),e.derive.staking.stashes().then((e=>e.map((e=>e.toString())))),e.derive.session.progress()]),l=function(e,t,r,n){let[i,{controllerId:a,exposure:s,nextSessionIds:u,nominators:c,rewardDestination:f,sessionIds:l,stakingLedger:d,validatorPrefs:h},p]=n;const b=!(null==c||!c.length),y=!(Array.isArray(p)?p[1].isEmpty:p.isEmpty)||!(null==r||!r.includes(t)),g=(0,o.u8aConcat)(...u.map((e=>e.toU8a()))),v=(0,o.u8aConcat)(...l.map((e=>e.toU8a()))),w=m(a);return{controllerId:w,destination:null==f?void 0:f.toString().toLowerCase(),destinationId:(null==f?void 0:f.toNumber())||0,exposure:s,hexSessionIdNext:(0,o.u8aToHex)(g,48),hexSessionIdQueue:(0,o.u8aToHex)(v.length?v:g,48),isOwnController:e==w,isOwnStash:i,isStashNominating:b,isStashValidating:y,nominating:null==c?void 0:c.map(m),sessionIds:(u.length?u:l).map(m),stakingLedger:d,stashId:t,validatorPrefs:h}}(t,r,u,[n,i,s]),d=function(e,t){if(null==e||!e.unlocking||!t)return{mapped:[],total:o.BN_ZERO};const r=e.unlocking.filter((e=>{let{remainingEras:t,value:r}=e;return r.gt(o.BN_ZERO)&&t.gt(o.BN_ZERO)})).map((e=>[e,e.remainingEras.sub(o.BN_ONE).imul(t.eraLength).iadd(t.eraLength).isub(t.eraProgress).toNumber()])),n=r.reduce(((e,t)=>{let[{value:r}]=t;return e.iadd(r)}),new a.default(0));return{mapped:r.map((e=>[(0,o.formatBalance)(e[0].value,{forceUnit:"-",withSi:!1}),e[1]])),total:n}}(i,f);let h;return l.nominating&&l.nominating.length&&(h=await async function(e,t,r){const n=await e.derive.session.indexes(),[i,...o]=await Promise.all([e.query.staking.nominators(t)].concat(r.map((t=>e.query.staking.erasStakers(n.activeEra,t)))).concat(r.map((t=>e.query.staking.slashingSpans(t))))),a=o.slice(0,r.length),s=o.slice(r.length);return function(e,t,r,n,i,o,a){var s;const u=null===(s=e.consts.staking)||void 0===s?void 0:s.maxNominatorRewardedPerValidator,c=n.filter(((e,t)=>{if(r[t].isNone)return!1;const{lastNonzeroSlash:n}=r[t].unwrap();return!n.isZero()&&n.gte(o)})),f=a.map((e=>{let{others:t}=e;return t.sort(((e,t)=>t.value.unwrap().cmp(e.value.unwrap())))})).map(((e,r)=>!u||u.gtn(e.map((e=>{let{who:t}=e;return t.toString()})).indexOf(t))?null:n[r])).filter((e=>!!e&&!c.includes(e)));let l=a.map(((e,r)=>e.others.some((e=>{let{who:r}=e;return r.eq(t)}))?null:n[r])).filter((e=>!!e));const d=a.map(((e,t)=>e.total.unwrap().isZero()||l.includes(n[t])&&o.eq(i)?n[t]:null)).filter((e=>!!e)).filter((e=>!c.includes(e)&&!f.includes(e))),h=n.filter((e=>!l.includes(e)&&!c.includes(e)&&!f.includes(e)));return l=l.filter((e=>!d.includes(e)&&!c.includes(e)&&!f.includes(e))),{nomsActive:h,nomsChilled:c,nomsInactive:l,nomsOver:f,nomsWaiting:d}}(e,t,s,r,n.activeEra,i.unwrapOrDefault().submittedIn,a)}(e,r,l.nominating)),c(c({account:i},l),{},{inactives:h,unbondings:d})},getSlashingSpans:async function(e,t){const r=await e.query.staking.slashingSpans(t);return r.isNone?0:r.unwrap().prior.length+1}};t.default=v},59387:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.getInflationParams=function(e){return c[e.genesisHash.toHex()]||u};var i=n(r(38416)),o=r(14199);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const u={falloff:.05,idealStake:.5,maxInflation:.1,minInflation:.025},c={[o.KUSAMA_GENESIS]:s(s({},u),{},{idealStake:.75}),[o.POLKADOT_GENESIS]:s(s({},u),{},{idealStake:.75})}},30663:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const i=new(n(r(1074)).default);var o={initConnect:async function(e,t,r){i.onURIReceive(e,t,r)},reConnectSession:async function(e){i.reConnectSession(e)},confirmConnect:async function(e){e?i.approveSession():i.rejectSession()},updateSession:async function(e){i.updateSession(e)},disconnect:async function(){i.killSession()},confirmCallRequest:async function(e,t,r,n){return new Promise((o=>{t?i.approveRequest(e,r,n,(e=>{o(e)})):(i.rejectRequest(e),o({}))}))}};t.default=o},1074:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.INITIAL_STATE=void 0;var i=n(r(38416)),o=n(r(56690)),a=n(r(89728)),s=n(r(89437)),u=r(62006),c=r(26748),f=r(82334),l=n(r(78159)),d=r(40877);function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const b={loading:!1,connector:null,uri:"",peerMeta:{description:"",url:"",icons:[],name:""},connected:!1,chainId:u.DEFAULT_CHAIN_ID,address:"",requests:[],results:[]};t.INITIAL_STATE=b;var y=function(){function e(){(0,o.default)(this,e),this.state=void 0,this.bindedSetState=e=>this.setState(e),this.initWalletConnect=async(e,t,r)=>{var n;if(null!==(n=this.state.connector)&&void 0!==n&&n.connected)return this.killSession(),void setTimeout((()=>this.initWalletConnect(e,t,r)),300);this.setState({loading:!0,address:t,chainId:r,uri:e});try{const t=new s.default({uri:e,clientMeta:u.DEFAULT_WALLET_CLIENT});t.connected||await t.createSession({chainId:r}),this.setState({loading:!1,connector:t,uri:t.uri}),this.subscribeToEvents()}catch(e){throw this.setState({loading:!1}),e}},this.reConnectSession=async e=>{const t=new s.default({session:e}),{chainId:r,accounts:n,peerMeta:i}=t;this.setState({connector:t,address:n[0],chainId:r,peerMeta:i}),this.subscribeToEvents()},this.approveSession=()=>{const{connector:e,chainId:t,address:r}=this.state;e&&e.approveSession({chainId:t,accounts:[r]}),this.setState({connector:e})},this.rejectSession=()=>{const{connector:e}=this.state;e&&e.rejectSession(),this.setState({connector:e})},this.killSession=()=>{const{connector:e}=this.state;e&&e.killSession(),this.resetApp()},this.resetApp=async()=>{this.setState(p({},b))},this.subscribeToEvents=()=>{const{connector:e}=this.state;e&&(e.on("session_request",((e,t)=>{if(e)throw e;const{peerMeta:r}=t.params[0];this.setState({peerMeta:r}),(0,f.notifyWallet)({event:"session_request",peerMeta:r})})),e.on("session_update",(e=>{if(e)throw e})),e.on("call_request",(async(e,t)=>{if(e)throw e;await(0,c.getRpcEngine)().router(t,this.state,this.bindedSetState);const r=(0,c.getRpcEngine)().render(t);(0,f.notifyWallet)({event:"call_request",id:t.id,params:r})})),e.on("connect",((e,t)=>{if(e)throw e;this.setState({connected:!0}),(0,f.notifyWallet)({event:"connect",session:(0,d.getCachedSession)()})})),e.on("disconnect",((e,t)=>{if(e)throw e;(0,f.notifyWallet)({event:"disconnect"}),this.resetApp()})),this.setState({connector:e}))},this.updateSession=async e=>{const{connector:t,chainId:r,address:n}=this.state,i=e.chainId||r,o=e.address||n;t&&t.updateSession({chainId:i,accounts:[o]}),this.setState({connector:t,address:o,chainId:i})},this.updateChain=async e=>{await this.updateSession({chainId:Number(e)})},this.onURIReceive=async(e,t,r)=>{const n="string"==typeof e?e:"";n&&await this.initWalletConnect(n,t,r)},this.onQRCodeError=e=>{throw e},this.closeRequest=async e=>{const{requests:t}=this.state,r=t.filter((t=>t.id!==e));this.setState({requests:r})},this.approveRequest=async(e,t,r,n)=>{const{connector:i,requests:o,address:a}=this.state,s=o.find((t=>t.id===e));if(!s)return console.error("call request id no match."),void n({error:"call request id no match."});if(!(await l.default.checkPassword(a,t)).success)return console.error("invalid password."),void n({error:"invalid password."});try{n(await(0,c.getRpcEngine)().signer(s,this.state,this.bindedSetState,t,r))}catch(e){console.error(e),n({error:e}),i&&i.rejectRequest({id:s.id,error:{message:"Failed or Rejected Request"}})}this.closeRequest(e),this.setState({connector:i})},this.rejectRequest=async e=>{const{connector:t}=this.state;t&&t.rejectRequest({id:e,error:{message:"Failed or Rejected Request"}}),await this.closeRequest(e),this.setState({connector:t})},this.state=p({},b)}return(0,a.default)(e,[{key:"setState",value:function(e){this.state=p(p({},this.state),e)}}]),e}();t.default=y},80449:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SUPPORTED_CHAINS=void 0,t.SUPPORTED_CHAINS=[{name:"Ethereum Mainnet",short_name:"eth",chain:"ETH",network:"mainnet",chain_id:1,network_id:1,rpc_url:"https://mainnet.infura.io/v3/%API_KEY%",native_currency:{symbol:"ETH",name:"Ether",decimals:"18",contractAddress:"",balance:""}},{name:"Ethereum Görli",short_name:"gor",chain:"ETH",network:"goerli",chain_id:5,network_id:5,rpc_url:"https://goerli.infura.io/v3/%API_KEY%",native_currency:{symbol:"ETH",name:"Ether",decimals:"18",contractAddress:"",balance:""}}]},83020:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MAINNET_CHAIN_ID=t.GOERLI_CHAIN_ID=t.ETH_STANDARD_PATH=t.DEFAULT_WALLET_CLIENT=t.DEFAULT_CHAIN_ID=void 0,t.ETH_STANDARD_PATH="m/44'/60'/0'/0",t.MAINNET_CHAIN_ID=1,t.GOERLI_CHAIN_ID=5,t.DEFAULT_CHAIN_ID=5,t.DEFAULT_WALLET_CLIENT={description:"Mobile wallet for Dotsama eco.",url:"https://polkawallet.io",icons:["https://raw.githubusercontent.com/polkawallet-io/app/master/assets/images/icon.png"],name:"Polkawallet"}},62006:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(80449);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}));var i=r(83020);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}))},61971:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.filterEthereumRequests=u,t.renderEthereumRequests=f,t.routeEthereumRequests=c,t.signEthPayload=l,t.signEthereumRequests=d;var i=r(93441),o=r(30382),a=r(40877),s=n(r(78159));function u(e){return e.method.startsWith("eth_")||e.method.startsWith("net_")||e.method.startsWith("shh_")||e.method.startsWith("personal_")||e.method.startsWith("wallet_")}async function c(e,t,r){if(!t.connector)return;"eth_sendTransaction"===e.method&&(e.params[0].gas=(0,i.convertNumberToHex)(await s.default.estimateTxGas(e.params[0])),e.params[0].gasLimit=e.params[0].gas);const{chainId:n,connector:a}=t;if(i.signingMethods.includes(e.method)){const n=t.requests;n.push(e),await r({requests:n})}else try{const t=await(0,o.apiGetCustomRequest)(n,e);a.approveRequest({id:e.id,result:t})}catch(t){return a.rejectRequest({id:e.id,error:{message:"JSON RPC method not supported"}})}}function f(e){var t;let r=[{label:"Method",value:e.method}];switch(e.method){case"eth_sendTransaction":case"eth_signTransaction":r=[...r,{label:"From",value:e.params[0].from},{label:"To",value:e.params[0].to},{label:"Gas Limit",value:e.params[0].gas?(0,i.convertHexToNumber)(e.params[0].gas):e.params[0].gasLimit?(0,i.convertHexToNumber)(e.params[0].gasLimit):""},{label:"Gas Price",value:(0,i.convertHexToNumber)(null!==(t=e.params[0].gasPrice)&&void 0!==t?t:"0x0")}],void 0!==e.params[0].nonce&&r.push({label:"Nonce",value:(0,i.convertHexToNumber)(e.params[0].nonce)}),r=[...r,{label:"Value",value:e.params[0].value?(0,i.convertHexToNumber)(e.params[0].value):""},{label:"Data",value:e.params[0].data}];break;case"eth_sign":r=[...r,{label:"Address",value:e.params[0]},{label:"Message",value:e.params[1]}];break;case"personal_sign":r=[...r,{label:"Address",value:e.params[1]},{label:"Message",value:(0,a.convertHexToUtf8IfPossible)(e.params[0])}];break;default:r=[...r,{label:"params",value:JSON.stringify(e.params,null,"\t")}]}return r}async function l(e,t,r,n){let i="",o=null,a=null,u=null,c=null;switch(e.method){case"eth_sendTransaction":if(a=e.params[0],c=a.from,t.toLowerCase()===c.toLowerCase()){const e=await s.default.signAndSendTx(a,t,r,n);e.error?i=e.error:o=e.hash}else i="Address requested does not match active account";break;case"eth_signTransaction":if(a=e.params[0],c=a.from,t.toLowerCase()===c.toLowerCase()){const e=await s.default.signTx(a,t,r);e.error?i=e.error:o=e.signed}else i="Address requested does not match active account";break;case"eth_sign":if(u=e.params[1],c=e.params[0],t.toLowerCase()===c.toLowerCase()){const e=await s.default.signMessage(u,t,r);e.error?i=e.error:o=e.signature}else i="Address requested does not match active account";break;case"personal_sign":if(u=e.params[0],c=e.params[1],t.toLowerCase()===c.toLowerCase()){const e=await s.default.signMessage(u,t,r);e.error?i=e.error:o=e.signature}else i="Address requested does not match active account";break;case"eth_signTypedData":case"eth_signTypedData_v4":const f="string"==typeof e.params[0]&&"0x"===e.params[0].substring(0,2);if(u=e.params[f?1:0],c=e.params[f?0:1],t.toLowerCase()===c.toLowerCase()){const e=await s.default.signTypedData(u,t,r);e.error?i=e.error:o=e.signature}else i="Address requested does not match active account"}return o||i||(i="JSON RPC method not supported"),{id:e.id,result:o,error:i}}async function d(e,t,r,n,i){const{connector:o,address:a,chainId:s}=t;let u="",c=null;if(o){const t=await l(e,a,n,i);c=t.result,u=t.error,c?o.approveRequest({id:e.id,result:c}):o.rejectRequest({id:e.id,error:{message:u}})}return{result:c,error:u}}var h={filter:u,router:c,render:f,signer:d};t.default=h},26748:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.getRpcEngine=function(){return new s([a.default])};var i=n(r(56690)),o=n(r(89728)),a=n(r(61971));let s=function(){function e(t){(0,i.default)(this,e),this.engines=void 0,this.engines=t}return(0,o.default)(e,[{key:"filter",value:function(e){return this.getEngine(e).filter(e)}},{key:"router",value:function(e,t,r){return this.getEngine(e).router(e,t,r)}},{key:"render",value:function(e){return this.getEngine(e).render(e)}},{key:"signer",value:function(e,t,r,n,i){return this.getEngine(e).signer(e,t,r,n,i)}},{key:"getEngine",value:function(e){const t=this.engines.filter((t=>t.filter(e)));if(!t||!t.length)throw new Error(`No RPC Engine found to handle payload with method ${e.method}`);return t[0]}}]),e}()},30382:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.apiGetAccountAssets=async function(e,t){const r=await a.get(`/account-assets?address=${e}&chainId=${t}`),{result:n}=r.data;return n},t.apiGetAccountNonce=void 0,t.apiGetAccountTransactions=async function(e,t){const r=await a.get(`/account-transactions?address=${e}&chainId=${t}`),{result:n}=r.data;return n},t.apiSendTransaction=t.apiGetGasPrices=t.apiGetCustomRequest=t.apiGetBlockNumber=void 0;var i=n(r(9669)),o=r(40877);const a=i.default.create({baseURL:"https://ethereum-api.xyz",timeout:3e4,headers:{Accept:"application/json","Content-Type":"application/json"}});t.apiSendTransaction=async(e,t)=>{const r=(0,o.getChainData)(t).rpc_url;if(!r&&"string"!=typeof r)throw new Error("Invalid or missing rpc url");return(await i.default.post(r,{jsonrpc:"2.0",id:(0,o.payloadId)(),method:"eth_sendTransaction",params:[e]})).data.result},t.apiGetAccountNonce=async(e,t)=>{const r=await a.get(`/account-nonce?address=${e}&chainId=${t}`),{result:n}=r.data;return n},t.apiGetGasPrices=async()=>{const e=await a.get("/gas-prices"),{result:t}=e.data;return t},t.apiGetBlockNumber=async e=>{const t=await a.get(`/block-number?chainId=${e}`),{result:r}=t.data;return r},t.apiGetCustomRequest=async(e,t)=>{const r=await a.post(`config-request?chainId=${e}`,t),{result:n}=r.data;return n}},40877:(e,t,r)=>{"use strict";var n=r(34155),i=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.capitalize=function(e){return e.split(" ").map((e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase())).join(" ")},t.convertHexToUtf8IfPossible=function(e){try{return(0,a.convertHexToUtf8)(e)}catch(t){return e}},t.ellipseAddress=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;return`${e.slice(0,t)}...${e.slice(-t)}`},t.ellipseText=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:9999;if(e.length<=t)return e;const r=t-3;let n=!1,i=0;return e.split(" ").filter((e=>(i+=e.length,!(n||i>=r)||(n=!0,!1)))).join(" ")+"..."},t.getCachedSession=function(){const e=localStorage?localStorage.getItem("walletconnect"):null;let t=null;if(e)try{t=JSON.parse(e)}catch(e){throw e}return t},t.getChainData=function(e){const t=s.SUPPORTED_CHAINS.filter((t=>t.chain_id===e))[0];if(!t)throw new Error("ChainId missing or not supported");const r=n.env.REACT_APP_INFURA_PROJECT_ID;if(!r)throw new Error("Environment variable REACT_APP_INFURA_PROJECT_ID is not set");if(t.rpc_url.includes("infura.io")&&t.rpc_url.includes("%API_KEY%")&&r){const e=t.rpc_url.replace("%API_KEY%",r);return c(c({},t),{},{rpc_url:e})}return t},t.getDataString=function(e,t){let r="";for(let e=0;e<t.length;e++)r+=f(t[e],64);return e+r},t.getViewportDimensions=function(){const e=window,t=document,r=t.documentElement,n=t.getElementsByTagName("body")[0];return{x:e.innerWidth||r.clientWidth||n.clientWidth,y:e.innerHeight||r.clientHeight||n.clientHeight}},t.isMobile=function(){let e=!1;return e=!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(navigator.userAgent.substr(0,4))&&!function(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}()),e},t.padLeft=f,t.payloadId=function(){return(new Date).getTime()*Math.pow(10,3)+Math.floor(Math.random()*Math.pow(10,3))},t.prettyPrint=l,t.removeHexPrefix=function(e){return e.toLowerCase().replace("0x","")},t.sanitizeHex=function(e){return""===(e="0x"===e.substring(0,2)?e.substring(2):e)?"":"0x"+(e.length%2!=0?"0"+e:e)},t.verifyFields=function(e,t){if(t.length<=0||0!==t.filter((e=>"string"!=typeof e)).length)throw new Error("[verifyFields] Must provide an array of fields to check");if("object"!=typeof e)throw new Error("[verifyFields] Must provide a params object");if(0!==t.filter((t=>!e[t])).length)throw new Error(`[verifyFields] Params missing needed keys. Params: ${l(e)}, keys: ${l(t)}`)},t.verifyPayload=function(e){const{params:t,id:r,method:n}=e;if(!t||"object"!=typeof t)throw new Error(`WalletConnect Error - invalid payload params. Payload: ${l(e)}`);if(!r||"number"!=typeof r)throw new Error(`WalletConnect Error - invalid payload id. Payload: ${l(e)}`);if(!n||"string"!=typeof n)throw new Error(`WalletConnect Error - invalid payload method. Payload: ${l(e)}`)};var o=i(r(38416)),a=r(93441),s=r(62006);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){(0,o.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e,t,r){return r=r||"0",(e+="").length>=t?e:new Array(t-e.length+1).join(r)+e}function l(e){return JSON.stringify(e,null,2)}},82334:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.notifyWallet=void 0,t.notifyWallet=e=>{window.send("wallet_connect_message",e)}},32390:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.genLinks=async function(e,t){let{data:r,hash:n,type:a,withShort:s}=t;const u=await e.rpc.system.chain();return Object.entries(i.default).map((e=>{let[t,{chains:i,create:c,isActive:f,paths:l,url:d}]=e;const h=i[u.toHuman()],p=l[a];return f&&h&&p?{name:s?o(t):t,link:c(h,p,r,n)}:null})).filter((e=>e))};var i=n(r(90162));function o(e){return`${e[0]}${e[e.length-1]}`}},93417:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const r=["proposal/councilmotion"];var n={chains:{Edgeware:"edgeware",Kusama:"kusama","Kusama CC3":"kusama"},create:(e,t,n,i)=>`https://commonwealth.im/${e}/${t}/${r.includes(t)?i||"":n.toString()}`,isActive:!0,paths:{council:"proposal/councilmotion",proposal:"proposal/democracyproposal",referendum:"proposal/referendum",treasury:"proposal/treasuryproposal"},url:"https://commonwealth.im/"};t.default=n},90162:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(93417)),o=n(r(70393)),a=r(82818),s=n(r(23181)),u=n(r(10793)),c={Commonwealth:i.default,Polkascan:o.default,Polkassembly:a.PolkassemblyIo,PolkassemblyNetwork:a.PolkassemblyNetwork,Subscan:s.default,SubSquare:u.default};t.default=c},70393:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={chains:{Kusama:"kusama",Polkadot:"polkadot","Polkadot CC1":"polkadot-cc1"},create:(e,t,r)=>`https://polkascan.io/${e}/${t}/${r.toString()}`,isActive:!0,paths:{address:"account",block:"block",council:"council/motion",extrinsic:"transaction",proposal:"democracy/proposal",referendum:"democracy/referendum",techcomm:"techcomm/proposal",treasury:"treasury/proposal"},url:"https://polkascan.io/"}},82818:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.PolkassemblyNetwork=t.PolkassemblyIo=void 0;var i=n(r(38416));function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const s={chains:{Altair:"Altair",Astar:"astar","Bifrost Polkadot":"bifrost",Calamari:"calamari","Centrifuge Mainnet":"centrifuge",Khala:"khala",Kusama:"kusama","Kusama CC3":"kusama",Parallel:"parallel","Parallel Heiko":"heiko","Pioneer Network":"pioneer",Polkadex:"polkadex",Polkadot:"polkadot",Robonomics:"robonomics",Shibuya:"shibuya",Shiden:"shiden"},create:(e,t,r)=>`https://${e}.polkassembly.io/${t}/${r.toString()}`,isActive:!0,paths:{council:"motion",proposal:"proposal",referendum:"referendum",treasury:"treasury",referenda:"referenda"},url:"https://polkassembly.io/"};t.PolkassemblyIo=s;const u=a(a({},s),{},{chains:{Bifrost:"bifrost","KILT Spiritnet":"kilt",Karura:"karura","Khala Network":"khala","Moonbase Alpha":"moonbase",Moonbeam:"moonbeam",Moonriver:"moonriver"},create:(e,t,r)=>`https://${e}.polkassembly.network/${t}/${r.toString()}`,url:"https://polkassembly.network/"});t.PolkassemblyNetwork=u},23181:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={chains:{Acala:"acala",Karura:"karura",Kusama:"kusama","Kusama CC3":"kusama",Polkadot:"polkadot","Polkadot CC1":"polkadot-cc1",Westend:"westend"},create:(e,t,r)=>`https://${e}.subscan.io/${t}/${r.toString()}`,isActive:!0,paths:{address:"account",block:"block",council:"council",extrinsic:"extrinsic",proposal:"democracy_proposal",referendum:"referenda",techcomm:"tech",treasury:"treasury"},url:"https://subscan.io/"}},10793:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={chains:{Acala:"acala",Altair:"altair",Basilisk:"basilisk",Bifrost:"bifrost",Centrifuge:"centrifuge",Crust:"crust","Darwinia Crab":"crab",HydraDX:"hydradx",Interlay:"interlay",Karura:"karura",Khala:"khala",Kusama:"kusama",Litmus:"litmus",Phala:"phala",Polkadot:"polkadot",Rococo:"rococo","Turing Network":"turing",Zeitgeist:"zeitgeist",kintsugi:"kintsugi"},create:(e,t,r)=>`https://${e}.subsquare.io/${t}/${r.toString()}`,isActive:!0,paths:{bounty:"treasury/bounty",council:"council/motion",proposal:"democracy/proposal",referendum:"democracy/referendum",referenda:"referenda/referendum",tip:"treasury/tip",treasury:"treasury/proposal"},url:"https://subsquare.io/"}},18145:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.approxChanges=function(e,t,r){const n=(0,o.calcPassing)(e,t,r);if(e.isSimplemajority){const e=n?r.votedAye.sub(r.votedNay):r.votedNay.sub(r.votedAye);return{changeAye:r.votedNay.isZero()?a.BN_ZERO:e,changeNay:r.votedAye.isZero()?a.BN_ZERO:e}}let s=a.BN_ZERO,c=a.BN_ZERO,d=r.votedTotal.div(u);for(;!d.isZero();){s=f(e,t,r,n,s,d),c=l(e,t,r,n,c,d);const i=d.div(u);i.isZero()&&(s=s.add(d),c=c.add(d)),d=i}return{changeAye:r.votedNay.isZero()?a.BN_ZERO:n?i.default.min(s,r.votedAye):s,changeNay:r.votedAye.isZero()?a.BN_ZERO:n?c:i.default.min(c,r.votedNay)}};var i=n(r(13550)),o=r(31015),a=r(69338);const s=new i.default(-1),u=new i.default(2);function c(e,t,r,n,o,u){const c=1===u?a.BN_ONE:s,f=r.add(n),l=a.BN_ONE.muln(10*o).mul(f).div(a.BN_TEN);return[f,e.add(c.mul(f)),i.default.max(a.BN_ZERO,t.add(c.mul(l)))]}function f(e,t,r,n,i,a){let{votedAye:s,votedNay:u,votedTotal:f}=r;for(;;){const[r,l,d]=c(s,f,i,a,n?0:1,n?-1:1);if((0,o.calcPassing)(e,t,{votedAye:l,votedNay:u,votedTotal:d})!==n)return i;i=r}}function l(e,t,r,n,i,a){let{votedAye:s,votedNay:u,votedTotal:f}=r;for(;;){const[r,l,d]=c(u,f,i,a,n?1:0,n?1:-1);if((0,o.calcPassing)(e,t,{votedAye:s,votedNay:l,votedTotal:d})!==n)return i;i=r}}},58162:(e,t,r)=>{"use strict";var n=r(89509).Buffer;e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),r=0;r<t.length;r++)t[r]=255;for(var i=0;i<e.length;i++){var o=e.charAt(i),a=o.charCodeAt(0);if(255!==t[a])throw new TypeError(o+" is ambiguous");t[a]=i}var s=e.length,u=e.charAt(0),c=Math.log(s)/Math.log(256),f=Math.log(256)/Math.log(s);function l(e){if("string"!=typeof e)throw new TypeError("Expected String");if(0===e.length)return n.alloc(0);for(var r=0,i=0,o=0;e[r]===u;)i++,r++;for(var a=(e.length-r)*c+1>>>0,f=new Uint8Array(a);e[r];){var l=t[e.charCodeAt(r)];if(255===l)return;for(var d=0,h=a-1;(0!==l||d<o)&&-1!==h;h--,d++)l+=s*f[h]>>>0,f[h]=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error("Non-zero carry");o=d,r++}for(var p=a-o;p!==a&&0===f[p];)p++;var b=n.allocUnsafe(i+(a-p));b.fill(0,0,i);for(var y=i;p!==a;)b[y++]=f[p++];return b}return{encode:function(t){if((Array.isArray(t)||t instanceof Uint8Array)&&(t=n.from(t)),!n.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var r=0,i=0,o=0,a=t.length;o!==a&&0===t[o];)o++,r++;for(var c=(a-o)*f+1>>>0,l=new Uint8Array(c);o!==a;){for(var d=t[o],h=0,p=c-1;(0!==d||h<i)&&-1!==p;p--,h++)d+=256*l[p]>>>0,l[p]=d%s>>>0,d=d/s>>>0;if(0!==d)throw new Error("Non-zero carry");i=h,o++}for(var b=c-i;b!==c&&0===l[b];)b++;for(var y=u.repeat(r);b<c;++b)y+=e.charAt(l[b]);return y},decodeUnsafe:l,decode:function(e){var t=l(e);if(t)return t;throw new Error("Non-base"+s+" character")}}}},79742:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,o=s(e),a=o[0],u=o[1],c=new i(function(e,t,r){return 3*(t+r)/4-r}(0,a,u)),f=0,l=u>0?a-4:a;for(r=0;r<l;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],c[f++]=t>>16&255,c[f++]=t>>8&255,c[f++]=255&t;return 2===u&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[f++]=255&t),1===u&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[f++]=t>>8&255,c[f++]=255&t),c},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=16383,s=0,c=n-i;s<c;s+=a)o.push(u(e,s,s+a>c?c:s+a));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)r[a]=o[a],n[o.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function u(e,t,n){for(var i,o,a=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},92882:e=>{"use strict";for(var t="qpzry9x8gf2tvdw0s3jn54khce6mua7l",r={},n=0;n<32;n++){var i=t.charAt(n);if(void 0!==r[i])throw new TypeError(i+" is ambiguous");r[i]=n}function o(e){var t=e>>25;return(33554431&e)<<5^996825010&-(t>>0&1)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function a(e){for(var t=1,r=0;r<e.length;++r){var n=e.charCodeAt(r);if(n<33||n>126)return"Invalid prefix ("+e+")";t=o(t)^n>>5}for(t=o(t),r=0;r<e.length;++r){var i=e.charCodeAt(r);t=o(t)^31&i}return t}function s(e,t){if(t=t||90,e.length<8)return e+" too short";if(e.length>t)return"Exceeds length limit";var n=e.toLowerCase(),i=e.toUpperCase();if(e!==n&&e!==i)return"Mixed-case string "+e;var s=(e=n).lastIndexOf("1");if(-1===s)return"No separator character for "+e;if(0===s)return"Missing prefix for "+e;var u=e.slice(0,s),c=e.slice(s+1);if(c.length<6)return"Data too short";var f=a(u);if("string"==typeof f)return f;for(var l=[],d=0;d<c.length;++d){var h=c.charAt(d),p=r[h];if(void 0===p)return"Unknown character "+h;f=o(f)^p,d+6>=c.length||l.push(p)}return 1!==f?"Invalid checksum for "+e:{prefix:u,words:l}}function u(e,t,r,n){for(var i=0,o=0,a=(1<<r)-1,s=[],u=0;u<e.length;++u)for(i=i<<t|e[u],o+=t;o>=r;)o-=r,s.push(i>>o&a);if(n)o>0&&s.push(i<<r-o&a);else{if(o>=t)return"Excess padding";if(i<<r-o&a)return"Non-zero padding"}return s}e.exports={decodeUnsafe:function(){var e=s.apply(null,arguments);if("object"==typeof e)return e},decode:function(e){var t=s.apply(null,arguments);if("object"==typeof t)return t;throw new Error(t)},encode:function(e,r,n){if(n=n||90,e.length+7+r.length>n)throw new TypeError("Exceeds length limit");var i=a(e=e.toLowerCase());if("string"==typeof i)throw new Error(i);for(var s=e+"1",u=0;u<r.length;++u){var c=r[u];if(c>>5!=0)throw new Error("Non 5-bit word");i=o(i)^c,s+=t.charAt(c)}for(u=0;u<6;++u)i=o(i);for(i^=1,u=0;u<6;++u)s+=t.charAt(i>>5*(5-u)&31);return s},toWordsUnsafe:function(e){var t=u(e,8,5,!0);if(Array.isArray(t))return t},toWords:function(e){var t=u(e,8,5,!0);if(Array.isArray(t))return t;throw new Error(t)},fromWordsUnsafe:function(e){var t=u(e,5,8,!1);if(Array.isArray(t))return t},fromWords:function(e){var t=u(e,5,8,!1);if(Array.isArray(t))return t;throw new Error(t)}}},8442:(e,t,r)=>{const n=r(99488);function i(e,t,r){const n=e[t]+e[r];let i=e[t+1]+e[r+1];n>=4294967296&&i++,e[t]=n,e[t+1]=i}function o(e,t,r,n){let i=e[t]+r;r<0&&(i+=4294967296);let o=e[t+1]+n;i>=4294967296&&o++,e[t]=i,e[t+1]=o}function a(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function s(e,t,r,n,a,s){const u=l[a],c=l[a+1],d=l[s],h=l[s+1];i(f,e,t),o(f,e,u,c);let p=f[n]^f[e],b=f[n+1]^f[e+1];f[n]=b,f[n+1]=p,i(f,r,n),p=f[t]^f[r],b=f[t+1]^f[r+1],f[t]=p>>>24^b<<8,f[t+1]=b>>>24^p<<8,i(f,e,t),o(f,e,d,h),p=f[n]^f[e],b=f[n+1]^f[e+1],f[n]=p>>>16^b<<16,f[n+1]=b>>>16^p<<16,i(f,r,n),p=f[t]^f[r],b=f[t+1]^f[r+1],f[t]=b>>>31^p<<1,f[t+1]=p>>>31^b<<1}const u=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),c=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3].map((function(e){return 2*e}))),f=new Uint32Array(32),l=new Uint32Array(32);function d(e,t){let r=0;for(r=0;r<16;r++)f[r]=e.h[r],f[r+16]=u[r];for(f[24]=f[24]^e.t,f[25]=f[25]^e.t/4294967296,t&&(f[28]=~f[28],f[29]=~f[29]),r=0;r<32;r++)l[r]=a(e.b,4*r);for(r=0;r<12;r++)s(0,8,16,24,c[16*r+0],c[16*r+1]),s(2,10,18,26,c[16*r+2],c[16*r+3]),s(4,12,20,28,c[16*r+4],c[16*r+5]),s(6,14,22,30,c[16*r+6],c[16*r+7]),s(0,10,20,30,c[16*r+8],c[16*r+9]),s(2,12,22,24,c[16*r+10],c[16*r+11]),s(4,14,16,26,c[16*r+12],c[16*r+13]),s(6,8,18,28,c[16*r+14],c[16*r+15]);for(r=0;r<16;r++)e.h[r]=e.h[r]^f[r]^f[r+16]}const h=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function p(e,t,r,n){if(0===e||e>64)throw new Error("Illegal output length, expected 0 < length <= 64");if(t&&t.length>64)throw new Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(r&&16!==r.length)throw new Error("Illegal salt, expected Uint8Array with length is 16");if(n&&16!==n.length)throw new Error("Illegal personal, expected Uint8Array with length is 16");const i={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:e};h.fill(0),h[0]=e,t&&(h[1]=t.length),h[2]=1,h[3]=1,r&&h.set(r,32),n&&h.set(n,48);for(let e=0;e<16;e++)i.h[e]=u[e]^a(h,4*e);return t&&(b(i,t),i.c=128),i}function b(e,t){for(let r=0;r<t.length;r++)128===e.c&&(e.t+=e.c,d(e,!1),e.c=0),e.b[e.c++]=t[r]}function y(e){for(e.t+=e.c;e.c<128;)e.b[e.c++]=0;d(e,!0);const t=new Uint8Array(e.outlen);for(let r=0;r<e.outlen;r++)t[r]=e.h[r>>2]>>8*(3&r);return t}function g(e,t,r,i,o){r=r||64,e=n.normalizeInput(e),i&&(i=n.normalizeInput(i)),o&&(o=n.normalizeInput(o));const a=p(r,t,i,o);return b(a,e),y(a)}e.exports={blake2b:g,blake2bHex:function(e,t,r,i,o){const a=g(e,t,r,i,o);return n.toHex(a)},blake2bInit:p,blake2bUpdate:b,blake2bFinal:y}},45297:(e,t,r)=>{const n=r(99488);function i(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function o(e,t,r,n,i,o){c[e]=c[e]+c[t]+i,c[n]=a(c[n]^c[e],16),c[r]=c[r]+c[n],c[t]=a(c[t]^c[r],12),c[e]=c[e]+c[t]+o,c[n]=a(c[n]^c[e],8),c[r]=c[r]+c[n],c[t]=a(c[t]^c[r],7)}function a(e,t){return e>>>t^e<<32-t}const s=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),u=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),c=new Uint32Array(16),f=new Uint32Array(16);function l(e,t){let r=0;for(r=0;r<8;r++)c[r]=e.h[r],c[r+8]=s[r];for(c[12]^=e.t,c[13]^=e.t/4294967296,t&&(c[14]=~c[14]),r=0;r<16;r++)f[r]=i(e.b,4*r);for(r=0;r<10;r++)o(0,4,8,12,f[u[16*r+0]],f[u[16*r+1]]),o(1,5,9,13,f[u[16*r+2]],f[u[16*r+3]]),o(2,6,10,14,f[u[16*r+4]],f[u[16*r+5]]),o(3,7,11,15,f[u[16*r+6]],f[u[16*r+7]]),o(0,5,10,15,f[u[16*r+8]],f[u[16*r+9]]),o(1,6,11,12,f[u[16*r+10]],f[u[16*r+11]]),o(2,7,8,13,f[u[16*r+12]],f[u[16*r+13]]),o(3,4,9,14,f[u[16*r+14]],f[u[16*r+15]]);for(r=0;r<8;r++)e.h[r]^=c[r]^c[r+8]}function d(e,t){if(!(e>0&&e<=32))throw new Error("Incorrect output length, should be in [1, 32]");const r=t?t.length:0;if(t&&!(r>0&&r<=32))throw new Error("Incorrect key length, should be in [1, 32]");const n={h:new Uint32Array(s),b:new Uint8Array(64),c:0,t:0,outlen:e};return n.h[0]^=16842752^r<<8^e,r>0&&(h(n,t),n.c=64),n}function h(e,t){for(let r=0;r<t.length;r++)64===e.c&&(e.t+=e.c,l(e,!1),e.c=0),e.b[e.c++]=t[r]}function p(e){for(e.t+=e.c;e.c<64;)e.b[e.c++]=0;l(e,!0);const t=new Uint8Array(e.outlen);for(let r=0;r<e.outlen;r++)t[r]=e.h[r>>2]>>8*(3&r)&255;return t}function b(e,t,r){r=r||32,e=n.normalizeInput(e);const i=d(r,t);return h(i,e),p(i)}e.exports={blake2s:b,blake2sHex:function(e,t,r){const i=b(e,t,r);return n.toHex(i)},blake2sInit:d,blake2sUpdate:h,blake2sFinal:p}},1191:(e,t,r)=>{const n=r(8442),i=r(45297);e.exports={blake2b:n.blake2b,blake2bHex:n.blake2bHex,blake2bInit:n.blake2bInit,blake2bUpdate:n.blake2bUpdate,blake2bFinal:n.blake2bFinal,blake2s:i.blake2s,blake2sHex:i.blake2sHex,blake2sInit:i.blake2sInit,blake2sUpdate:i.blake2sUpdate,blake2sFinal:i.blake2sFinal}},99488:e=>{function t(e){return(4294967296+e).toString(16).substring(1)}e.exports={normalizeInput:function(e){let t;if(e instanceof Uint8Array)t=e;else{if("string"!=typeof e)throw new Error("Input must be an string, Buffer or Uint8Array");t=(new TextEncoder).encode(e)}return t},toHex:function(e){return Array.prototype.map.call(e,(function(e){return(e<16?"0":"")+e.toString(16)})).join("")},debugPrint:function(e,r,n){let i="\n"+e+" = ";for(let o=0;o<r.length;o+=2){if(32===n)i+=t(r[o]).toUpperCase(),i+=" ",i+=t(r[o+1]).toUpperCase();else{if(64!==n)throw new Error("Invalid size "+n);i+=t(r[o+1]).toUpperCase(),i+=t(r[o]).toUpperCase()}o%6==4?i+="\n"+new Array(e.length+4).join(" "):o<r.length-2&&(i+=" ")}console.log(i)},testSpeed:function(e,t,r){let n=(new Date).getTime();const i=new Uint8Array(t);for(let e=0;e<t;e++)i[e]=e%256;const o=(new Date).getTime();console.log("Generated random input in "+(o-n)+"ms"),n=o;for(let o=0;o<r;o++){const r=e(i),o=(new Date).getTime(),a=o-n;n=o,console.log("Hashed in "+a+"ms: "+r.substring(0,20)+"..."),console.log(Math.round(t/(1<<20)/(a/1e3)*100)/100+" MB PER SECOND")}}}},13550:function(e,t,r){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(46601).Buffer}catch(e){}function s(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function u(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function c(e,t,r,i){for(var o=0,a=0,s=Math.min(e.length,r),u=t;u<s;u++){var c=e.charCodeAt(u)-48;o*=i,a=c>=49?c-49+10:c>=17?c-17+10:c,n(c>=0&&a<i,"Invalid character"),o+=a}return o}function f(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===r)for(i=e.length-1,o=0;i>=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<e.length;i+=3)a=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,a=0;if("be"===r)for(n=e.length-1;n>=t;n-=2)i=u(e,t,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(e.length-t)%2==0?t+1:t;n<e.length;n+=2)i=u(e,t,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,u=0,f=r;f<s;f+=n)u=c(e,f,f+n,t),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var l=1;for(u=c(e,f,e.length,t),f=0;f<a;f++)l*=t;this.imuln(l),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype._move=function(e){f(e,this)},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(e){o.prototype.inspect=l}else o.prototype.inspect=l;function l(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}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"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function b(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var f=u>>>26,l=67108863&u,d=Math.min(c,t.length-1),h=Math.max(0,c-e.length+1);h<=d;h++){var p=c-h|0;f+=(a=(i=0|e.words[p])*(o=0|t.words[h])+l)/67108864|0,l=67108863&a}r.words[c]=0|l,u=0|f}return 0!==u?r.words[c]=0|u:r.length--,r._strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);o=s>>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?d[6-u.length]+u+r:u+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var c=h[e],f=p[e];r="";var l=this.clone();for(l.negative=0;!l.isZero();){var b=l.modrn(f).toString(e);r=(l=l.idivn(f)).isZero()?b+r:d[c-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var 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},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(a,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;e[r++]=255&a,r<e.length&&(e[r++]=a>>8&255),r<e.length&&(e[r++]=a>>16&255),6===o?(r<e.length&&(e[r++]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r<e.length)for(e[r++]=n;r<e.length;)e[r++]=0},o.prototype._toArrayLikeBE=function(e,t){for(var r=e.length-1,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;e[r--]=255&a,r>=0&&(e[r--]=a>>8&255),r>=0&&(e[r--]=a>>16&255),6===o?(r>=0&&(e[r--]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=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},o.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},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},o.prototype.ior=function(e){return n(0==(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this._strip()},o.prototype.iand=function(e){return n(0==(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this._strip()},o.prototype.ixor=function(e){return n(0==(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.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;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this._strip()},o.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.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 r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a<n.length;a++)o=(t=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&t;for(;0!==o&&a<r.length;a++)o=(t=(0|r.words[a])+o)>>26,this.words[a]=67108863&t;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var y=function(e,t,r){var n,i,o,a=e.words,s=t.words,u=r.words,c=0,f=0|a[0],l=8191&f,d=f>>>13,h=0|a[1],p=8191&h,b=h>>>13,y=0|a[2],g=8191&y,m=y>>>13,v=0|a[3],w=8191&v,_=v>>>13,x=0|a[4],O=8191&x,k=x>>>13,P=0|a[5],S=8191&P,A=P>>>13,E=0|a[6],M=8191&E,j=E>>>13,T=0|a[7],B=8191&T,I=T>>>13,N=0|a[8],R=8191&N,C=N>>>13,U=0|a[9],L=8191&U,D=U>>>13,H=0|s[0],F=8191&H,V=H>>>13,z=0|s[1],q=8191&z,K=z>>>13,W=0|s[2],G=8191&W,X=W>>>13,Z=0|s[3],J=8191&Z,Y=Z>>>13,Q=0|s[4],$=8191&Q,ee=Q>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,fe=0|s[8],le=8191&fe,de=fe>>>13,he=0|s[9],pe=8191&he,be=he>>>13;r.negative=e.negative^t.negative,r.length=19;var ye=(c+(n=Math.imul(l,F))|0)+((8191&(i=(i=Math.imul(l,V))+Math.imul(d,F)|0))<<13)|0;c=((o=Math.imul(d,V))+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(p,F),i=(i=Math.imul(p,V))+Math.imul(b,F)|0,o=Math.imul(b,V);var ge=(c+(n=n+Math.imul(l,q)|0)|0)+((8191&(i=(i=i+Math.imul(l,K)|0)+Math.imul(d,q)|0))<<13)|0;c=((o=o+Math.imul(d,K)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(g,F),i=(i=Math.imul(g,V))+Math.imul(m,F)|0,o=Math.imul(m,V),n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(b,q)|0,o=o+Math.imul(b,K)|0;var me=(c+(n=n+Math.imul(l,G)|0)|0)+((8191&(i=(i=i+Math.imul(l,X)|0)+Math.imul(d,G)|0))<<13)|0;c=((o=o+Math.imul(d,X)|0)+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(w,F),i=(i=Math.imul(w,V))+Math.imul(_,F)|0,o=Math.imul(_,V),n=n+Math.imul(g,q)|0,i=(i=i+Math.imul(g,K)|0)+Math.imul(m,q)|0,o=o+Math.imul(m,K)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(b,G)|0,o=o+Math.imul(b,X)|0;var ve=(c+(n=n+Math.imul(l,J)|0)|0)+((8191&(i=(i=i+Math.imul(l,Y)|0)+Math.imul(d,J)|0))<<13)|0;c=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(O,F),i=(i=Math.imul(O,V))+Math.imul(k,F)|0,o=Math.imul(k,V),n=n+Math.imul(w,q)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(_,q)|0,o=o+Math.imul(_,K)|0,n=n+Math.imul(g,G)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(m,G)|0,o=o+Math.imul(m,X)|0,n=n+Math.imul(p,J)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(b,J)|0,o=o+Math.imul(b,Y)|0;var we=(c+(n=n+Math.imul(l,$)|0)|0)+((8191&(i=(i=i+Math.imul(l,ee)|0)+Math.imul(d,$)|0))<<13)|0;c=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(S,F),i=(i=Math.imul(S,V))+Math.imul(A,F)|0,o=Math.imul(A,V),n=n+Math.imul(O,q)|0,i=(i=i+Math.imul(O,K)|0)+Math.imul(k,q)|0,o=o+Math.imul(k,K)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(g,J)|0,i=(i=i+Math.imul(g,Y)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,Y)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,ee)|0;var _e=(c+(n=n+Math.imul(l,re)|0)|0)+((8191&(i=(i=i+Math.imul(l,ne)|0)+Math.imul(d,re)|0))<<13)|0;c=((o=o+Math.imul(d,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(M,F),i=(i=Math.imul(M,V))+Math.imul(j,F)|0,o=Math.imul(j,V),n=n+Math.imul(S,q)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul(A,q)|0,o=o+Math.imul(A,K)|0,n=n+Math.imul(O,G)|0,i=(i=i+Math.imul(O,X)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,X)|0,n=n+Math.imul(w,J)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(g,$)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0;var xe=(c+(n=n+Math.imul(l,oe)|0)|0)+((8191&(i=(i=i+Math.imul(l,ae)|0)+Math.imul(d,oe)|0))<<13)|0;c=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(B,F),i=(i=Math.imul(B,V))+Math.imul(I,F)|0,o=Math.imul(I,V),n=n+Math.imul(M,q)|0,i=(i=i+Math.imul(M,K)|0)+Math.imul(j,q)|0,o=o+Math.imul(j,K)|0,n=n+Math.imul(S,G)|0,i=(i=i+Math.imul(S,X)|0)+Math.imul(A,G)|0,o=o+Math.imul(A,X)|0,n=n+Math.imul(O,J)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,Y)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(g,re)|0,i=(i=i+Math.imul(g,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0;var Oe=(c+(n=n+Math.imul(l,ue)|0)|0)+((8191&(i=(i=i+Math.imul(l,ce)|0)+Math.imul(d,ue)|0))<<13)|0;c=((o=o+Math.imul(d,ce)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(R,F),i=(i=Math.imul(R,V))+Math.imul(C,F)|0,o=Math.imul(C,V),n=n+Math.imul(B,q)|0,i=(i=i+Math.imul(B,K)|0)+Math.imul(I,q)|0,o=o+Math.imul(I,K)|0,n=n+Math.imul(M,G)|0,i=(i=i+Math.imul(M,X)|0)+Math.imul(j,G)|0,o=o+Math.imul(j,X)|0,n=n+Math.imul(S,J)|0,i=(i=i+Math.imul(S,Y)|0)+Math.imul(A,J)|0,o=o+Math.imul(A,Y)|0,n=n+Math.imul(O,$)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(g,oe)|0,i=(i=i+Math.imul(g,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(b,ue)|0,o=o+Math.imul(b,ce)|0;var ke=(c+(n=n+Math.imul(l,le)|0)|0)+((8191&(i=(i=i+Math.imul(l,de)|0)+Math.imul(d,le)|0))<<13)|0;c=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(L,F),i=(i=Math.imul(L,V))+Math.imul(D,F)|0,o=Math.imul(D,V),n=n+Math.imul(R,q)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(C,q)|0,o=o+Math.imul(C,K)|0,n=n+Math.imul(B,G)|0,i=(i=i+Math.imul(B,X)|0)+Math.imul(I,G)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(M,J)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(j,J)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(S,$)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,ee)|0,n=n+Math.imul(O,re)|0,i=(i=i+Math.imul(O,ne)|0)+Math.imul(k,re)|0,o=o+Math.imul(k,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(g,ue)|0,i=(i=i+Math.imul(g,ce)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,ce)|0,n=n+Math.imul(p,le)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(b,le)|0,o=o+Math.imul(b,de)|0;var Pe=(c+(n=n+Math.imul(l,pe)|0)|0)+((8191&(i=(i=i+Math.imul(l,be)|0)+Math.imul(d,pe)|0))<<13)|0;c=((o=o+Math.imul(d,be)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(L,q),i=(i=Math.imul(L,K))+Math.imul(D,q)|0,o=Math.imul(D,K),n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,X)|0)+Math.imul(C,G)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(B,J)|0,i=(i=i+Math.imul(B,Y)|0)+Math.imul(I,J)|0,o=o+Math.imul(I,Y)|0,n=n+Math.imul(M,$)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(j,$)|0,o=o+Math.imul(j,ee)|0,n=n+Math.imul(S,re)|0,i=(i=i+Math.imul(S,ne)|0)+Math.imul(A,re)|0,o=o+Math.imul(A,ne)|0,n=n+Math.imul(O,oe)|0,i=(i=i+Math.imul(O,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,ce)|0,n=n+Math.imul(g,le)|0,i=(i=i+Math.imul(g,de)|0)+Math.imul(m,le)|0,o=o+Math.imul(m,de)|0;var Se=(c+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,be)|0)+Math.imul(b,pe)|0))<<13)|0;c=((o=o+Math.imul(b,be)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(L,G),i=(i=Math.imul(L,X))+Math.imul(D,G)|0,o=Math.imul(D,X),n=n+Math.imul(R,J)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,Y)|0,n=n+Math.imul(B,$)|0,i=(i=i+Math.imul(B,ee)|0)+Math.imul(I,$)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(M,re)|0,i=(i=i+Math.imul(M,ne)|0)+Math.imul(j,re)|0,o=o+Math.imul(j,ne)|0,n=n+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,ae)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,ae)|0,n=n+Math.imul(O,ue)|0,i=(i=i+Math.imul(O,ce)|0)+Math.imul(k,ue)|0,o=o+Math.imul(k,ce)|0,n=n+Math.imul(w,le)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(_,le)|0,o=o+Math.imul(_,de)|0;var Ae=(c+(n=n+Math.imul(g,pe)|0)|0)+((8191&(i=(i=i+Math.imul(g,be)|0)+Math.imul(m,pe)|0))<<13)|0;c=((o=o+Math.imul(m,be)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(L,J),i=(i=Math.imul(L,Y))+Math.imul(D,J)|0,o=Math.imul(D,Y),n=n+Math.imul(R,$)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(B,re)|0,i=(i=i+Math.imul(B,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(M,oe)|0,i=(i=i+Math.imul(M,ae)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,ae)|0,n=n+Math.imul(S,ue)|0,i=(i=i+Math.imul(S,ce)|0)+Math.imul(A,ue)|0,o=o+Math.imul(A,ce)|0,n=n+Math.imul(O,le)|0,i=(i=i+Math.imul(O,de)|0)+Math.imul(k,le)|0,o=o+Math.imul(k,de)|0;var Ee=(c+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,be)|0)+Math.imul(_,pe)|0))<<13)|0;c=((o=o+Math.imul(_,be)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(L,$),i=(i=Math.imul(L,ee))+Math.imul(D,$)|0,o=Math.imul(D,ee),n=n+Math.imul(R,re)|0,i=(i=i+Math.imul(R,ne)|0)+Math.imul(C,re)|0,o=o+Math.imul(C,ne)|0,n=n+Math.imul(B,oe)|0,i=(i=i+Math.imul(B,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,n=n+Math.imul(M,ue)|0,i=(i=i+Math.imul(M,ce)|0)+Math.imul(j,ue)|0,o=o+Math.imul(j,ce)|0,n=n+Math.imul(S,le)|0,i=(i=i+Math.imul(S,de)|0)+Math.imul(A,le)|0,o=o+Math.imul(A,de)|0;var Me=(c+(n=n+Math.imul(O,pe)|0)|0)+((8191&(i=(i=i+Math.imul(O,be)|0)+Math.imul(k,pe)|0))<<13)|0;c=((o=o+Math.imul(k,be)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(L,re),i=(i=Math.imul(L,ne))+Math.imul(D,re)|0,o=Math.imul(D,ne),n=n+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,ae)|0,n=n+Math.imul(B,ue)|0,i=(i=i+Math.imul(B,ce)|0)+Math.imul(I,ue)|0,o=o+Math.imul(I,ce)|0,n=n+Math.imul(M,le)|0,i=(i=i+Math.imul(M,de)|0)+Math.imul(j,le)|0,o=o+Math.imul(j,de)|0;var je=(c+(n=n+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,be)|0)+Math.imul(A,pe)|0))<<13)|0;c=((o=o+Math.imul(A,be)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(L,oe),i=(i=Math.imul(L,ae))+Math.imul(D,oe)|0,o=Math.imul(D,ae),n=n+Math.imul(R,ue)|0,i=(i=i+Math.imul(R,ce)|0)+Math.imul(C,ue)|0,o=o+Math.imul(C,ce)|0,n=n+Math.imul(B,le)|0,i=(i=i+Math.imul(B,de)|0)+Math.imul(I,le)|0,o=o+Math.imul(I,de)|0;var Te=(c+(n=n+Math.imul(M,pe)|0)|0)+((8191&(i=(i=i+Math.imul(M,be)|0)+Math.imul(j,pe)|0))<<13)|0;c=((o=o+Math.imul(j,be)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(L,ue),i=(i=Math.imul(L,ce))+Math.imul(D,ue)|0,o=Math.imul(D,ce),n=n+Math.imul(R,le)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(C,le)|0,o=o+Math.imul(C,de)|0;var Be=(c+(n=n+Math.imul(B,pe)|0)|0)+((8191&(i=(i=i+Math.imul(B,be)|0)+Math.imul(I,pe)|0))<<13)|0;c=((o=o+Math.imul(I,be)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(L,le),i=(i=Math.imul(L,de))+Math.imul(D,le)|0,o=Math.imul(D,de);var Ie=(c+(n=n+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,be)|0)+Math.imul(C,pe)|0))<<13)|0;c=((o=o+Math.imul(C,be)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863;var Ne=(c+(n=Math.imul(L,pe))|0)+((8191&(i=(i=Math.imul(L,be))+Math.imul(D,pe)|0))<<13)|0;return c=((o=Math.imul(D,be))+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,u[0]=ye,u[1]=ge,u[2]=me,u[3]=ve,u[4]=we,u[5]=_e,u[6]=xe,u[7]=Oe,u[8]=ke,u[9]=Pe,u[10]=Se,u[11]=Ae,u[12]=Ee,u[13]=Me,u[14]=je,u[15]=Te,u[16]=Be,u[17]=Ie,u[18]=Ne,0!==c&&(u[19]=c,r.length++),r};function g(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,u=Math.min(o,t.length-1),c=Math.max(0,o-e.length+1);c<=u;c++){var f=o-c,l=(0|e.words[f])*(0|t.words[c]),d=67108863&l;s=67108863&(d=d+s|0),i+=(a=(a=a+(l/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function m(e,t,r){return g(e,t,r)}function v(e,t){this.x=e,this.y=t}Math.imul||(y=b),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?y(this,e,t):r<63?b(this,e,t):r<1024?g(this,e,t):m(this,e,t)},v.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},v.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},v.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a<o;a++)n[a]=t[e[a]],i[a]=r[e[a]]},v.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),f=0;f<i;f+=s)for(var l=u,d=c,h=0;h<a;h++){var p=r[f+h],b=n[f+h],y=r[f+h+a],g=n[f+h+a],m=l*y-d*g;g=l*g+d*y,y=m,r[f+h]=p+y,n[f+h]=b+g,r[f+h+a]=p-y,n[f+h+a]=b-g,h!==s&&(m=u*l-c*d,d=u*d+c*l,l=m)}},v.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},v.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},v.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},v.prototype.convert13b=function(e,t,r,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)r[a]=0;n(0===o),n(0==(-8192&o))},v.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},v.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),c=new Array(n),f=new Array(n),l=new Array(n),d=r.words;d.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,c,n),this.transform(a,o,s,u,n,i),this.transform(c,o,f,l,n,i);for(var h=0;h<n;h++){var p=s[h]*f[h]-u[h]*l[h];u[h]=s[h]*l[h]+u[h]*f[h],s[h]=p}return this.conjugate(s,u,n),this.transform(s,u,d,o,n,i),this.conjugate(d,o,n),this.normalize13b(d,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r._strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),m(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"==typeof e),n(e<67108864);for(var r=0,i=0;i<this.length;i++){var o=(0|this.words[i])*e,a=(67108863&o)+(67108863&r);r>>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=e.words[n]>>>i&1}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,u=(0|this.words[t])-s<<r;this.words[t]=u|a,a=s>>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this._strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,r){var i;n("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o,u=r;if(i-=a,i=Math.max(0,i),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var f=0;for(c=this.length-1;c>=0&&(0!==f||c>=i);c--){var l=0|this.words[c];this.words[c]=f<<26-o|l>>>o,f=l&s}return u&&0!==f&&(u.words[u.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r||!(this.words[r]&i))},o.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this._strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.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 t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,r){var i,o,a=e.length+r;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+s;var u=(0|e.words[i])*t;s=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!=(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==t){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var f=n.clone()._ishlnsubmul(i,1,u);0===f.negative&&(n=f,s&&(s.words[u]=1));for(var l=u-1;l>=0;l--){var d=67108864*(0|n.words[i.length+l])+(0|n.words[i.length+l-1]);for(d=Math.min(d/a|0,67108863),n._ishlnsubmul(i,d,l);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,l),n.isZero()||(n.negative^=1);s&&(s.words[l]=d)}return s&&s._strip(),n._strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.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),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++c;for(var f=r.clone(),l=t.clone();!t.isZero();){for(var d=0,h=1;0==(t.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(f),a.isub(l)),i.iushrn(1),a.iushrn(1);for(var p=0,b=1;0==(r.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(f),u.isub(l)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(u)):(r.isub(t),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,f=1;0==(t.words[0]&f)&&c<26;++c,f<<=1);if(c>0)for(t.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var l=0,d=1;0==(r.words[0]&d)&&l<26;++l,d<<=1);if(l>0)for(r.iushrn(l);l-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.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 i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new S(e)},o.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)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function _(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function O(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function P(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=o._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 A(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}_.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},_.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=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},_.prototype.split=function(e,t){e.iushrn(this.n,0,t)},_.prototype.imulK=function(e){return e.imul(this.k)},i(x,_),x.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i<n;i++)t.words[i]=e.words[i];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(t.words[t.length++]=o&r,i=10;i<e.length;i++){var a=0|e.words[i];e.words[i-10]=(a&r)<<4|o>>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},x.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(O,_),i(k,_),i(P,_),P.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(w[e])return w[e];var t;if("k256"===e)t=new x;else if("p224"===e)t=new O;else if("p192"===e)t=new k;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new P}return w[e]=t,t},S.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},S.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(f(e,e.umod(this.m)._forceRed(this)),e)},S.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},S.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},S.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},S.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},S.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},S.prototype.isqr=function(e){return this.imul(e,e.clone())},S.prototype.sqr=function(e){return this.mul(e,e)},S.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new o(2*f*f).toRed(this);0!==this.pow(f,c).cmp(u);)f.redIAdd(u);for(var l=this.pow(f,i),d=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var b=h,y=0;0!==b.cmp(s);y++)b=b.redSqr();n(y<p);var g=this.pow(l,new o(1).iushln(p-y-1));d=d.redMul(g),l=g.redSqr(),h=h.redMul(l),p=y}return d},S.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},S.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],a=0,s=0,u=t.bitLength()%26;for(0===u&&(u=26),n=t.length-1;n>=0;n--){for(var c=t.words[n],f=u-1;f>=0;f--){var l=c>>f&1;i!==r[0]&&(i=this.sqr(i)),0!==l||0!==a?(a<<=1,a|=l,(4==++s||0===n&&0===f)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=26}return i},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},o.mont=function(e){return new A(e)},i(A,S),A.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},A.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},A.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},A.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},A.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},29931:(e,t,r)=>{var n;function i(e){this.rand=e}if(e.exports=function(e){return n||(n=new i(null)),n.generate(e)},e.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r<t.length;r++)t[r]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(i.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=r(89214);if("function"!=typeof o.randomBytes)throw new Error("Not supported");i.prototype._rand=function(e){return o.randomBytes(e)}}catch(e){}},77191:(e,t,r)=>{var n=r(58162);e.exports=n("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},48764:(e,t,r)=>{"use strict";var n=r(79742),i=r(80645),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=u,t.SlowBuffer=function(e){return+e!=e&&(e=0),u.alloc(+e)},t.INSPECT_MAX_BYTES=50;var a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return l(e)}return c(e,t,r)}function c(e,t,r){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=0|b(e,t),n=s(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(F(e,Uint8Array)){var t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(F(e,ArrayBuffer)||e&&F(e.buffer,ArrayBuffer))return h(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(F(e,SharedArrayBuffer)||e&&F(e.buffer,SharedArrayBuffer)))return h(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return u.from(n,t,r);var i=function(e){if(u.isBuffer(e)){var t=0|p(e.length),r=s(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||V(e.length)?s(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return u.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function f(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function l(e){return f(e),s(e<0?0:0|p(e))}function d(e){for(var t=e.length<0?0:0|p(e.length),r=s(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function h(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(n,u.prototype),n}function p(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function b(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||F(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return L(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return D(e).length;default:if(i)return n?-1:L(e).length;t=(""+t).toLowerCase(),i=!0}}function y(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 j(this,t,r);case"utf8":case"utf-8":return S(this,t,r);case"ascii":return E(this,t,r);case"latin1":case"binary":return M(this,t,r);case"base64":return P(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 g(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function m(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),V(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:v(e,t,r,n,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):v(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function v(e,t,r,n,i){var o,a=1,s=e.length,u=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;a=2,s/=2,u/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var f=-1;for(o=r;o<s;o++)if(c(e,o)===c(t,-1===f?0:o-f)){if(-1===f&&(f=o),o-f+1===u)return f*a}else-1!==f&&(o-=o-f),f=-1}else for(r+u>s&&(r=s-u),o=r;o>=0;o--){for(var l=!0,d=0;d<u;d++)if(c(e,o+d)!==c(t,d)){l=!1;break}if(l)return o}return-1}function w(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(V(s))return a;e[r+a]=s}return a}function _(e,t,r,n){return H(L(t,e.length-r),e,r,n)}function x(e,t,r,n){return H(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function O(e,t,r,n){return H(D(t),e,r,n)}function k(e,t,r,n){return H(function(e,t){for(var r,n,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=(r=e.charCodeAt(a))>>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function P(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function S(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,a,s,u,c=e[i],f=null,l=c>239?4:c>223?3:c>191?2:1;if(i+l<=r)switch(l){case 1:c<128&&(f=c);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(f=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(f=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(f=u)}null===f?(f=65533,l=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=l}return function(e){var t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=A));return r}(n)}t.kMaxLength=a,u.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),u.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(e,t,r){return c(e,t,r)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(e,t,r){return function(e,t,r){return f(e),e<=0?s(e):void 0!==t?"string"==typeof r?s(e).fill(t,r):s(e).fill(t):s(e)}(e,t,r)},u.allocUnsafe=function(e){return l(e)},u.allocUnsafeSlow=function(e){return l(e)},u.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==u.prototype},u.compare=function(e,t){if(F(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),F(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=u.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var o=e[r];if(F(o,Uint8Array))i+o.length>n.length?u.from(o).copy(n,i):Uint8Array.prototype.set.call(n,o,i);else{if(!u.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i)}i+=o.length}return n},u.byteLength=b,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},u.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?S(this,0,e):y.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},o&&(u.prototype[o]=u.prototype.inspect),u.prototype.compare=function(e,t,r,n,i){if(F(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),c=this.slice(n,i),f=e.slice(t,r),l=0;l<s;++l)if(c[l]!==f[l]){o=c[l],a=f[l];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},u.prototype.indexOf=function(e,t,r){return m(this,e,t,r,!0)},u.prototype.lastIndexOf=function(e,t,r){return m(this,e,t,r,!1)},u.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return w(this,e,t,r);case"utf8":case"utf-8":return _(this,e,t,r);case"ascii":case"latin1":case"binary":return x(this,e,t,r);case"base64":return O(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function E(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function M(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function j(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=z[e[o]];return i}function T(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function B(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,r,n,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function N(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function R(e,t,r,n,o){return t=+t,r>>>=0,o||N(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function C(e,t,r,n,o){return t=+t,r>>>=0,o||N(e,0,r,8),i.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,u.prototype),n},u.prototype.readUintLE=u.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||B(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},u.prototype.readUintBE=u.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||B(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},u.prototype.readUint8=u.prototype.readUInt8=function(e,t){return e>>>=0,t||B(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||B(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||B(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||B(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||B(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||B(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||B(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return e>>>=0,t||B(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||B(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){e>>>=0,t||B(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||B(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||B(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return e>>>=0,t||B(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||B(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||B(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||B(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||I(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||I(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},u.prototype.writeUint8=u.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,1,255,0),this[t]=255&e,t+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);I(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);I(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeFloatLE=function(e,t,r){return R(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return R(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return C(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return C(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(!u.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},u.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){var i=e.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(e=i)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{var a=u.isBuffer(e)?e:u.from(e,n),s=a.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var U=/[^+/0-9A-Za-z-_]/g;function L(e,t){var r;t=t||1/0;for(var n=e.length,i=null,o=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.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;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function D(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function F(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function V(e){return e!=e}var z=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},21924:(e,t,r)=>{"use strict";var n=r(40210),i=r(55559),o=i(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?i(r):r}},55559:(e,t,r)=>{"use strict";var n=r(58612),i=r(40210),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||n.call(a,o),u=i("%Object.getOwnPropertyDescriptor%",!0),c=i("%Object.defineProperty%",!0),f=i("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(e){var t=s(n,a,arguments);return u&&c&&u(t,"length").configurable&&c(t,"length",{value:1+f(0,e.length-(arguments.length-1))}),t};var l=function(){return s(n,o,arguments)};c?c(e.exports,"apply",{value:l}):e.exports.apply=l},71027:(e,t,r)=>{var n=r(89509).Buffer,i=r(42830).Transform,o=r(32553).s;function a(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(35717)(a,i),a.prototype.update=function(e,t,r){"string"==typeof e&&(e=n.from(e,t));var i=this._update(e);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){n=e}finally{r(n)}},a.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},a.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0);return e&&(t=this._toString(t,e,!0)),t},a.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},e.exports=a},16313:(e,t,r)=>{var n=r(48764).Buffer,i=function(){"use strict";function e(t,i,o,a){"object"==typeof i&&(o=i.depth,a=i.prototype,i.filter,i=i.circular);var s=[],u=[],c=void 0!==n;return void 0===i&&(i=!0),void 0===o&&(o=1/0),function t(o,f){if(null===o)return null;if(0==f)return o;var l,d;if("object"!=typeof o)return o;if(e.__isArray(o))l=[];else if(e.__isRegExp(o))l=new RegExp(o.source,r(o)),o.lastIndex&&(l.lastIndex=o.lastIndex);else if(e.__isDate(o))l=new Date(o.getTime());else{if(c&&n.isBuffer(o))return l=n.allocUnsafe?n.allocUnsafe(o.length):new n(o.length),o.copy(l),l;void 0===a?(d=Object.getPrototypeOf(o),l=Object.create(d)):(l=Object.create(a),d=a)}if(i){var h=s.indexOf(o);if(-1!=h)return u[h];s.push(o),u.push(l)}for(var p in o){var b;d&&(b=Object.getOwnPropertyDescriptor(d,p)),b&&null==b.set||(l[p]=t(o[p],f-1))}return l}(t,o)}function t(e){return Object.prototype.toString.call(e)}function r(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return e.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},e.__objToStr=t,e.__isDate=function(e){return"object"==typeof e&&"[object Date]"===t(e)},e.__isArray=function(e){return"object"==typeof e&&"[object Array]"===t(e)},e.__isRegExp=function(e){return"object"==typeof e&&"[object RegExp]"===t(e)},e.__getRegExpFlags=r,e}();e.exports&&(e.exports=i)},48168:(e,t,r)=>{var n=r(39092),i={};for(var o in n)n.hasOwnProperty(o)&&(i[n[o]]=o);var a=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var s in a)if(a.hasOwnProperty(s)){if(!("channels"in a[s]))throw new Error("missing channels property: "+s);if(!("labels"in a[s]))throw new Error("missing channel labels property: "+s);if(a[s].labels.length!==a[s].channels)throw new Error("channel and label counts mismatch: "+s);var u=a[s].channels,c=a[s].labels;delete a[s].channels,delete a[s].labels,Object.defineProperty(a[s],"channels",{value:u}),Object.defineProperty(a[s],"labels",{value:c})}a.rgb.hsl=function(e){var t,r,n=e[0]/255,i=e[1]/255,o=e[2]/255,a=Math.min(n,i,o),s=Math.max(n,i,o),u=s-a;return s===a?t=0:n===s?t=(i-o)/u:i===s?t=2+(o-n)/u:o===s&&(t=4+(n-i)/u),(t=Math.min(60*t,360))<0&&(t+=360),r=(a+s)/2,[t,100*(s===a?0:r<=.5?u/(s+a):u/(2-s-a)),100*r]},a.rgb.hsv=function(e){var t,r,n,i,o,a=e[0]/255,s=e[1]/255,u=e[2]/255,c=Math.max(a,s,u),f=c-Math.min(a,s,u),l=function(e){return(c-e)/6/f+.5};return 0===f?i=o=0:(o=f/c,t=l(a),r=l(s),n=l(u),a===c?i=n-r:s===c?i=1/3+t-n:u===c&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*c]},a.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2];return[a.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(r,n))*100,100*(n=1-1/255*Math.max(t,Math.max(r,n)))]},a.rgb.cmyk=function(e){var t,r=e[0]/255,n=e[1]/255,i=e[2]/255;return[100*((1-r-(t=Math.min(1-r,1-n,1-i)))/(1-t)||0),100*((1-n-t)/(1-t)||0),100*((1-i-t)/(1-t)||0),100*t]},a.rgb.keyword=function(e){var t=i[e];if(t)return t;var r,o,a,s=1/0;for(var u in n)if(n.hasOwnProperty(u)){var c=(o=e,a=n[u],Math.pow(o[0]-a[0],2)+Math.pow(o[1]-a[1],2)+Math.pow(o[2]-a[2],2));c<s&&(s=c,r=u)}return r},a.keyword.rgb=function(e){return n[e]},a.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.1805*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},a.rgb.lab=function(e){var t=a.rgb.xyz(e),r=t[0],n=t[1],i=t[2];return n/=100,i/=108.883,r=(r/=95.047)>.008856?Math.pow(r,1/3):7.787*r+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(r-n),200*(n-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},a.hsl.rgb=function(e){var t,r,n,i,o,a=e[0]/360,s=e[1]/100,u=e[2]/100;if(0===s)return[o=255*u,o,o];t=2*u-(r=u<.5?u*(1+s):u+s-u*s),i=[0,0,0];for(var c=0;c<3;c++)(n=a+1/3*-(c-1))<0&&n++,n>1&&n--,o=6*n<1?t+6*(r-t)*n:2*n<1?r:3*n<2?t+(r-t)*(2/3-n)*6:t,i[c]=255*o;return i},a.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=r,o=Math.max(n,.01);return r*=(n*=2)<=1?n:2-n,i*=o<=1?o:2-o,[t,100*(0===n?2*i/(o+i):2*r/(n+r)),(n+r)/2*100]},a.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,o=t-Math.floor(t),a=255*n*(1-r),s=255*n*(1-r*o),u=255*n*(1-r*(1-o));switch(n*=255,i){case 0:return[n,u,a];case 1:return[s,n,a];case 2:return[a,n,u];case 3:return[a,s,n];case 4:return[u,a,n];case 5:return[n,a,s]}},a.hsv.hsl=function(e){var t,r,n,i=e[0],o=e[1]/100,a=e[2]/100,s=Math.max(a,.01);return n=(2-o)*a,r=o*s,[i,100*(r=(r/=(t=(2-o)*s)<=1?t:2-t)||0),100*(n/=2)]},a.hwb.rgb=function(e){var t,r,n,i,o,a,s,u=e[0]/360,c=e[1]/100,f=e[2]/100,l=c+f;switch(l>1&&(c/=l,f/=l),n=6*u-(t=Math.floor(6*u)),0!=(1&t)&&(n=1-n),i=c+n*((r=1-f)-c),t){default:case 6:case 0:o=r,a=i,s=c;break;case 1:o=i,a=r,s=c;break;case 2:o=c,a=r,s=i;break;case 3:o=c,a=i,s=r;break;case 4:o=i,a=c,s=r;break;case 5:o=r,a=c,s=i}return[255*o,255*a,255*s]},a.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i))]},a.xyz.rgb=function(e){var t,r,n,i=e[0]/100,o=e[1]/100,a=e[2]/100;return r=-.9689*i+1.8758*o+.0415*a,n=.0557*i+-.204*o+1.057*a,t=(t=3.2406*i+-1.5372*o+-.4986*a)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,[255*(t=Math.min(Math.max(0,t),1)),255*(r=Math.min(Math.max(0,r),1)),255*(n=Math.min(Math.max(0,n),1))]},a.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2];return r/=100,n/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(t-r),200*(r-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},a.lab.xyz=function(e){var t,r,n,i=e[0];t=e[1]/500+(r=(i+16)/116),n=r-e[2]/200;var o=Math.pow(r,3),a=Math.pow(t,3),s=Math.pow(n,3);return r=o>.008856?o:(r-16/116)/7.787,t=a>.008856?a:(t-16/116)/7.787,n=s>.008856?s:(n-16/116)/7.787,[t*=95.047,r*=100,n*=108.883]},a.lab.lch=function(e){var t,r=e[0],n=e[1],i=e[2];return(t=360*Math.atan2(i,n)/2/Math.PI)<0&&(t+=360),[r,Math.sqrt(n*n+i*i),t]},a.lch.lab=function(e){var t,r=e[0],n=e[1];return t=e[2]/360*2*Math.PI,[r,n*Math.cos(t),n*Math.sin(t)]},a.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],i=1 in arguments?arguments[1]:a.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var o=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return 2===i&&(o+=60),o},a.hsv.ansi16=function(e){return a.rgb.ansi16(a.hsv.rgb(e),e[2])},a.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},a.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},a.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var r;return e-=16,[Math.floor(e/36)/5*255,Math.floor((r=e%36)/6)/5*255,r%6/5*255]},a.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},a.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];3===t[0].length&&(r=r.split("").map((function(e){return e+e})).join(""));var n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},a.rgb.hcg=function(e){var t,r=e[0]/255,n=e[1]/255,i=e[2]/255,o=Math.max(Math.max(r,n),i),a=Math.min(Math.min(r,n),i),s=o-a;return t=s<=0?0:o===r?(n-i)/s%6:o===n?2+(i-r)/s:4+(r-n)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?a/(1-s):0)]},a.hsl.hcg=function(e){var t,r=e[1]/100,n=e[2]/100,i=0;return(t=n<.5?2*r*n:2*r*(1-n))<1&&(i=(n-.5*t)/(1-t)),[e[0],100*t,100*i]},a.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],100*n,100*i]},a.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100;if(0===r)return[255*n,255*n,255*n];var i,o=[0,0,0],a=t%1*6,s=a%1,u=1-s;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=u,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=u,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=u}return i=(1-r)*n,[255*(r*o[0]+i),255*(r*o[1]+i),255*(r*o[2]+i)]},a.hcg.hsv=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t),n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},a.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100*(1-t)+.5*t,n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},a.hcg.hwb=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},a.hwb.hcg=function(e){var t=e[1]/100,r=1-e[2]/100,n=r-t,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],100*n,100*i]},a.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},a.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},a.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},a.gray.hsl=a.gray.hsv=function(e){return[0,0,e[0]]},a.gray.hwb=function(e){return[0,100,e[0]]},a.gray.cmyk=function(e){return[0,0,0,e[0]]},a.gray.lab=function(e){return[e[0],0,0]},a.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},a.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},12085:(e,t,r)=>{var n=r(48168),i=r(4111),o={};Object.keys(n).forEach((function(e){o[e]={},Object.defineProperty(o[e],"channels",{value:n[e].channels}),Object.defineProperty(o[e],"labels",{value:n[e].labels});var t=i(e);Object.keys(t).forEach((function(r){var n=t[r];o[e][r]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var r=e(t);if("object"==typeof r)for(var n=r.length,i=0;i<n;i++)r[i]=Math.round(r[i]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}(n),o[e][r].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(n)}))})),e.exports=o},39092:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},4111:(e,t,r)=>{var n=r(48168);function i(e,t){return function(r){return t(e(r))}}function o(e,t){for(var r=[t[e].parent,e],o=n[t[e].parent][e],a=t[e].parent;t[a].parent;)r.unshift(t[a].parent),o=i(n[t[a].parent][a],o),a=t[a].parent;return o.conversion=r,o}e.exports=function(e){for(var t=function(e){var t=function(){for(var e={},t=Object.keys(n),r=t.length,i=0;i<r;i++)e[t[i]]={distance:-1,parent:null};return e}(),r=[e];for(t[e].distance=0;r.length;)for(var i=r.pop(),o=Object.keys(n[i]),a=o.length,s=0;s<a;s++){var u=o[s],c=t[u];-1===c.distance&&(c.distance=t[i].distance+1,c.parent=i,r.unshift(u))}return t}(e),r={},i=Object.keys(t),a=i.length,s=0;s<a;s++){var u=i[s];null!==t[u].parent&&(r[u]=o(u,t))}return r}},8874:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},79375:(e,t,r)=>{var n=r(8874);function i(e){if(e){var t=[0,0,0],r=1,i=e.match(/^#([a-fA-F0-9]{3})$/);if(i){i=i[1];for(var o=0;o<t.length;o++)t[o]=parseInt(i[o]+i[o],16)}else if(i=e.match(/^#([a-fA-F0-9]{6})$/))for(i=i[1],o=0;o<t.length;o++)t[o]=parseInt(i.slice(2*o,2*o+2),16);else if(i=e.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){for(o=0;o<t.length;o++)t[o]=parseInt(i[o+1]);r=parseFloat(i[4])}else if(i=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){for(o=0;o<t.length;o++)t[o]=Math.round(2.55*parseFloat(i[o+1]));r=parseFloat(i[4])}else if(i=e.match(/(\D+)/)){if("transparent"==i[1])return[0,0,0,0];if(!(t=n[i[1]]))return}for(o=0;o<t.length;o++)t[o]=f(t[o],0,255);return r=r||0==r?f(r,0,1):1,t[3]=r,t}}function o(e){if(e){var t=e.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var r=parseFloat(t[4]);return[f(parseInt(t[1]),0,360),f(parseFloat(t[2]),0,100),f(parseFloat(t[3]),0,100),f(isNaN(r)?1:r,0,1)]}}}function a(e){if(e){var t=e.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var r=parseFloat(t[4]);return[f(parseInt(t[1]),0,360),f(parseFloat(t[2]),0,100),f(parseFloat(t[3]),0,100),f(isNaN(r)?1:r,0,1)]}}}function s(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+t+")"}function u(e,t){return"rgba("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%, "+(t||e[3]||1)+")"}function c(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+t+")"}function f(e,t,r){return Math.min(Math.max(t,e),r)}function l(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}e.exports={getRgba:i,getHsla:o,getRgb:function(e){var t=i(e);return t&&t.slice(0,3)},getHsl:function(e){var t=o(e);return t&&t.slice(0,3)},getHwb:a,getAlpha:function(e){var t=i(e);return t||(t=o(e))||(t=a(e))?t[3]:void 0},hexString:function(e){return"#"+l(e[0])+l(e[1])+l(e[2])},rgbString:function(e,t){return t<1||e[3]&&e[3]<1?s(e,t):"rgb("+e[0]+", "+e[1]+", "+e[2]+")"},rgbaString:s,percentString:function(e,t){return t<1||e[3]&&e[3]<1?u(e,t):"rgb("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%)"},percentaString:u,hslString:function(e,t){return t<1||e[3]&&e[3]<1?c(e,t):"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"},hslaString:c,hwbString:function(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+(void 0!==t&&1!==t?", "+t:"")+")"},keyword:function(e){return d[e.slice(0,3)]}};var d={};for(var h in n)d[n[h]]=h},6767:(e,t,r)=>{var n=r(16313),i=r(12085),o=r(79375),a=function(e){if(e instanceof a)return e;if(!(this instanceof a))return new a(e);var t;if(this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},"string"==typeof e)if(t=o.getRgba(e))this.setValues("rgb",t);else if(t=o.getHsla(e))this.setValues("hsl",t);else{if(!(t=o.getHwb(e)))throw new Error('Unable to parse color from string "'+e+'"');this.setValues("hwb",t)}else if("object"==typeof e)if(void 0!==(t=e).r||void 0!==t.red)this.setValues("rgb",t);else if(void 0!==t.l||void 0!==t.lightness)this.setValues("hsl",t);else if(void 0!==t.v||void 0!==t.value)this.setValues("hsv",t);else if(void 0!==t.w||void 0!==t.whiteness)this.setValues("hwb",t);else{if(void 0===t.c&&void 0===t.cyan)throw new Error("Unable to parse color from object "+JSON.stringify(e));this.setValues("cmyk",t)}};a.prototype={rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){return 1!==this.values.alpha?this.values.hwb.concat([this.values.alpha]):this.values.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){return this.values.rgb.concat([this.values.alpha])},rgbaArrayNormalized:function(){for(var e=this.values.rgb,t=[],r=0;r<3;r++)t[r]=e[r]/255;return t.push(this.values.alpha),t},hslaArray:function(){return this.values.hsl.concat([this.values.alpha])},alpha:function(e){return void 0===e?this.values.alpha:(this.setValues("alpha",e),this)},red:function(e){return this.setChannel("rgb",0,e)},green:function(e){return this.setChannel("rgb",1,e)},blue:function(e){return this.setChannel("rgb",2,e)},hue:function(e){return e&&(e=(e%=360)<0?360+e:e),this.setChannel("hsl",0,e)},saturation:function(e){return this.setChannel("hsl",1,e)},lightness:function(e){return this.setChannel("hsl",2,e)},saturationv:function(e){return this.setChannel("hsv",1,e)},whiteness:function(e){return this.setChannel("hwb",1,e)},blackness:function(e){return this.setChannel("hwb",2,e)},value:function(e){return this.setChannel("hsv",2,e)},cyan:function(e){return this.setChannel("cmyk",0,e)},magenta:function(e){return this.setChannel("cmyk",1,e)},yellow:function(e){return this.setChannel("cmyk",2,e)},black:function(e){return this.setChannel("cmyk",3,e)},hexString:function(){return o.hexString(this.values.rgb)},rgbString:function(){return o.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return o.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return o.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return o.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return o.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return o.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return o.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){return this.values.rgb[0]<<16|this.values.rgb[1]<<8|this.values.rgb[2]},luminosity:function(){for(var e=this.values.rgb,t=[],r=0;r<e.length;r++){var n=e[r]/255;t[r]=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),r=e.luminosity();return t>r?(t+.05)/(r+.05):(r+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){return this.values.hsl[2]+=this.values.hsl[2]*e,this.setValues("hsl",this.values.hsl),this},darken:function(e){return this.values.hsl[2]-=this.values.hsl[2]*e,this.setValues("hsl",this.values.hsl),this},saturate:function(e){return this.values.hsl[1]+=this.values.hsl[1]*e,this.setValues("hsl",this.values.hsl),this},desaturate:function(e){return this.values.hsl[1]-=this.values.hsl[1]*e,this.setValues("hsl",this.values.hsl),this},whiten:function(e){return this.values.hwb[1]+=this.values.hwb[1]*e,this.setValues("hwb",this.values.hwb),this},blacken:function(e){return this.values.hwb[2]+=this.values.hwb[2]*e,this.setValues("hwb",this.values.hwb),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(e){return this.setValues("alpha",this.values.alpha-this.values.alpha*e),this},opaquer:function(e){return this.setValues("alpha",this.values.alpha+this.values.alpha*e),this},rotate:function(e){var t=this.values.hsl[0];return t=(t=(t+e)%360)<0?360+t:t,this.values.hsl[0]=t,this.setValues("hsl",this.values.hsl),this},mix:function(e,t){var r=this,n=e,i=void 0===t?.5:t,o=2*i-1,a=r.alpha()-n.alpha(),s=((o*a==-1?o:(o+a)/(1+o*a))+1)/2,u=1-s;return this.rgb(s*r.red()+u*n.red(),s*r.green()+u*n.green(),s*r.blue()+u*n.blue()).alpha(r.alpha()*i+n.alpha()*(1-i))},toJSON:function(){return this.rgb()},clone:function(){var e=new a;return e.values=n(this.values),e}},a.prototype.getValues=function(e){for(var t={},r=0;r<e.length;r++)t[e.charAt(r)]=this.values[e][r];return 1!==this.values.alpha&&(t.a=this.values.alpha),t},a.prototype.setValues=function(e,t){var r,n,o={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},a={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},s=1;if("alpha"===e)s=t;else if(t.length)this.values[e]=t.slice(0,e.length),s=t[e.length];else if(void 0!==t[e.charAt(0)]){for(r=0;r<e.length;r++)this.values[e][r]=t[e.charAt(r)];s=t.a}else if(void 0!==t[o[e][0]]){var u=o[e];for(r=0;r<e.length;r++)this.values[e][r]=t[u[r]];s=t.alpha}if(this.values.alpha=Math.max(0,Math.min(1,void 0===s?this.values.alpha:s)),"alpha"===e)return!1;for(r=0;r<e.length;r++)n=Math.max(0,Math.min(a[e][r],this.values[e][r])),this.values[e][r]=Math.round(n);for(var c in o)for(c!==e&&(this.values[c]=i[e][c](this.values[e])),r=0;r<c.length;r++)n=Math.max(0,Math.min(a[c][r],this.values[c][r])),this.values[c][r]=Math.round(n);return!0},a.prototype.setSpace=function(e,t){var r=t[0];return void 0===r?this.getValues(e):("number"==typeof r&&(r=Array.prototype.slice.call(t)),this.setValues(e,r),this)},a.prototype.setChannel=function(e,t,r){return void 0===r?this.values[e][t]:(r===this.values[e][t]||(this.values[e][t]=r,this.setValues(e,this.values[e])),this)},e.exports=a},23482:(e,t,r)=>{"use strict";var n=r(35717),i=r(62318),o=r(71566),a=r(89072),s=r(71027);function u(e){s.call(this,"digest"),this._hash=e}n(u,s),u.prototype._update=function(e){this._hash.update(e)},u.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new i:"rmd160"===e||"ripemd160"===e?new o:new u(a(e))}},44020:e=>{"use strict";var t="%[a-f0-9]{2}",r=new RegExp("("+t+")|([^%]+?)","gi"),n=new RegExp("("+t+")+","gi");function i(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],i(r),i(n))}function o(e){try{return decodeURIComponent(e)}catch(o){for(var t=e.match(r)||[],n=1;n<t.length;n++)t=(e=i(t,n).join("")).match(r)||[];return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=n.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(e){var i=o(r[0]);i!==r[0]&&(t[r[0]]=i)}r=n.exec(e)}t["%C2"]="�";for(var a=Object.keys(t),s=0;s<a.length;s++){var u=a[s];e=e.replace(new RegExp(u,"g"),t[u])}return e}(e)}}},4289:(e,t,r)=>{"use strict";var n=r(82215),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=Object.defineProperty,u=r(31044)(),c=s&&u,f=function(e,t,r,n){var i;(!(t in e)||"function"==typeof(i=n)&&"[object Function]"===o.call(i)&&n())&&(c?s(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r)},l=function(e,t){var r=arguments.length>2?arguments[2]:{},o=n(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s<o.length;s+=1)f(e,o[s],t[o[s]],r[o[s]])};l.supportsDescriptors=!!c,e.exports=l},75678:function(e,t,r){!function(t,n){"use strict";e.exports?e.exports=n(r(50780)):t.ed2curve=n(t.nacl)}(this,(function(e){"use strict";if(!e)throw new Error("tweetnacl not loaded");var t=function(e){var t,r=new Float64Array(16);if(e)for(t=0;t<e.length;t++)r[t]=e[t];return r},r=t(),n=t([1]),i=t([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),o=t([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function a(e){var t,r;for(r=0;r<16;r++)e[r]+=65536,t=Math.floor(e[r]/65536),e[(r+1)*(r<15?1:0)]+=t-1+37*(t-1)*(15===r?1:0),e[r]-=65536*t}function s(e,t,r){for(var n,i=~(r-1),o=0;o<16;o++)n=i&(e[o]^t[o]),e[o]^=n,t[o]^=n}function u(e,t,r){var n;for(n=0;n<16;n++)e[n]=t[n]+r[n]|0}function c(e,t,r){var n;for(n=0;n<16;n++)e[n]=t[n]-r[n]|0}function f(e,t,r){var n,i,o=new Float64Array(31);for(n=0;n<31;n++)o[n]=0;for(n=0;n<16;n++)for(i=0;i<16;i++)o[n+i]+=t[n]*r[i];for(n=0;n<15;n++)o[n]+=38*o[n+16];for(n=0;n<16;n++)e[n]=o[n];a(e),a(e)}function l(e,t){f(e,t,t)}function d(e,r){var n,i,o,u=t(),c=t();for(n=0;n<16;n++)c[n]=r[n];for(a(c),a(c),a(c),i=0;i<2;i++){for(u[0]=c[0]-65517,n=1;n<15;n++)u[n]=c[n]-65535-(u[n-1]>>16&1),u[n-1]&=65535;u[15]=c[15]-32767-(u[14]>>16&1),o=u[15]>>16&1,u[14]&=65535,s(c,u,1-o)}for(n=0;n<16;n++)e[2*n]=255&c[n],e[2*n+1]=c[n]>>8}function h(e,t){var r=new Uint8Array(32),n=new Uint8Array(32);return d(r,e),d(n,t),function(e,t,r,n,i){var o,a=0;for(o=0;o<32;o++)a|=e[0+o]^r[0+o];return(1&a-1>>>8)-1}(r,0,n)}function p(e){var a=new Uint8Array(32),s=[t(),t(),t(),t()],p=t(),b=t();if(function(e,a){var s,p,b=t(),y=t(),g=t(),m=t(),v=t(),w=t(),_=t();return function(e,t){var r;for(r=0;r<16;r++)e[r]=0|t[r]}(e[2],n),function(e,t){var r;for(r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}(e[1],a),l(g,e[1]),f(m,g,i),c(g,g,e[2]),u(m,e[2],m),l(v,m),l(w,v),f(_,w,v),f(b,_,g),f(b,b,m),function(e,r){var n,i=t();for(n=0;n<16;n++)i[n]=r[n];for(n=250;n>=0;n--)l(i,i),1!==n&&f(i,i,r);for(n=0;n<16;n++)e[n]=i[n]}(b,b),f(b,b,g),f(b,b,m),f(b,b,m),f(e[0],b,m),l(y,e[0]),f(y,y,m),h(y,g)&&f(e[0],e[0],o),l(y,e[0]),f(y,y,m),h(y,g)?-1:(s=e[0],d(p=new Uint8Array(32),s),(1&p[0])==a[31]>>7&&c(e[0],r,e[0]),f(e[3],e[0],e[1]),0)}(s,e))return null;var y=s[1];return u(p,n,y),c(b,n,y),function(e,r){var n,i=t();for(n=0;n<16;n++)i[n]=r[n];for(n=253;n>=0;n--)l(i,i),2!==n&&4!==n&&f(i,i,r);for(n=0;n<16;n++)e[n]=i[n]}(b,b),f(p,p,b),d(a,p),a}function b(t){var r,n=new Uint8Array(64),i=new Uint8Array(32);for(e.lowlevel.crypto_hash(n,t,32),n[0]&=248,n[31]&=127,n[31]|=64,r=0;r<32;r++)i[r]=n[r];for(r=0;r<64;r++)n[r]=0;return i}return{convertPublicKey:p,convertSecretKey:b,convertKeyPair:function(e){var t=p(e.publicKey);return t?{publicKey:t,secretKey:b(e.secretKey)}:null}}}))},86266:(e,t,r)=>{"use strict";var n=t;n.version=r(18597).i8,n.utils=r(80953),n.rand=r(29931),n.curve=r(88254),n.curves=r(45427),n.ec=r(57954),n.eddsa=r(65980)},4918:(e,t,r)=>{"use strict";var n=r(73785),i=r(80953),o=i.getNAF,a=i.getJSF,s=i.assert;function u(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),n=o(t,1,this._bitLength),i=(1<<r.step+1)-(r.step%2==0?2:1);i/=3;var a,u,c=[];for(a=0;a<n.length;a+=r.step){u=0;for(var f=a+r.step-1;f>=a;f--)u=(u<<1)+n[f];c.push(u)}for(var l=this.jpoint(null,null,null),d=this.jpoint(null,null,null),h=i;h>0;h--){for(a=0;a<c.length;a++)(u=c[a])===h?d=d.mixedAdd(r.points[a]):u===-h&&(d=d.mixedAdd(r.points[a].neg()));l=l.add(d)}return l.toP()},u.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var i=n.points,a=o(t,r,this._bitLength),u=this.jpoint(null,null,null),c=a.length-1;c>=0;c--){for(var f=0;c>=0&&0===a[c];c--)f++;if(c>=0&&f++,u=u.dblp(f),c<0)break;var l=a[c];s(0!==l),u="affine"===e.type?l>0?u.mixedAdd(i[l-1>>1]):u.mixedAdd(i[-l-1>>1].neg()):l>0?u.add(i[l-1>>1]):u.add(i[-l-1>>1].neg())}return"affine"===e.type?u.toP():u},u.prototype._wnafMulAdd=function(e,t,r,n,i){var s,u,c,f=this._wnafT1,l=this._wnafT2,d=this._wnafT3,h=0;for(s=0;s<n;s++){var p=(c=t[s])._getNAFPoints(e);f[s]=p.wnd,l[s]=p.points}for(s=n-1;s>=1;s-=2){var b=s-1,y=s;if(1===f[b]&&1===f[y]){var g=[t[b],null,null,t[y]];0===t[b].y.cmp(t[y].y)?(g[1]=t[b].add(t[y]),g[2]=t[b].toJ().mixedAdd(t[y].neg())):0===t[b].y.cmp(t[y].y.redNeg())?(g[1]=t[b].toJ().mixedAdd(t[y]),g[2]=t[b].add(t[y].neg())):(g[1]=t[b].toJ().mixedAdd(t[y]),g[2]=t[b].toJ().mixedAdd(t[y].neg()));var m=[-3,-1,-5,-7,0,7,5,1,3],v=a(r[b],r[y]);for(h=Math.max(v[0].length,h),d[b]=new Array(h),d[y]=new Array(h),u=0;u<h;u++){var w=0|v[0][u],_=0|v[1][u];d[b][u]=m[3*(w+1)+(_+1)],d[y][u]=0,l[b]=g}}else d[b]=o(r[b],f[b],this._bitLength),d[y]=o(r[y],f[y],this._bitLength),h=Math.max(d[b].length,h),h=Math.max(d[y].length,h)}var x=this.jpoint(null,null,null),O=this._wnafT4;for(s=h;s>=0;s--){for(var k=0;s>=0;){var P=!0;for(u=0;u<n;u++)O[u]=0|d[u][s],0!==O[u]&&(P=!1);if(!P)break;k++,s--}if(s>=0&&k++,x=x.dblp(k),s<0)break;for(u=0;u<n;u++){var S=O[u];0!==S&&(S>0?c=l[u][S-1>>1]:S<0&&(c=l[u][-S-1>>1].neg()),x="affine"===c.type?x.mixedAdd(c):x.add(c))}}for(s=0;s<n;s++)l[s]=null;return i?x:x.toP()},u.BasePoint=c,c.prototype.eq=function(){throw new Error("Not implemented")},c.prototype.validate=function(){return this.curve.validate(this)},u.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?s(e[e.length-1]%2==0):7===e[0]&&s(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw new Error("Unknown point format")},c.prototype.encodeCompressed=function(e){return this.encode(e,!0)},c.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},c.prototype.encode=function(e,t){return i.encode(this._encode(t),e)},c.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},c.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},c.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)n=n.dbl();r.push(n)}return{step:e,points:r}},c.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},c.prototype._getBeta=function(){return null},c.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}},31138:(e,t,r)=>{"use strict";var n=r(80953),i=r(73785),o=r(35717),a=r(4918),s=n.assert;function u(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,a.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,r,n,o){a.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(t,16),this.y=new i(r,16),this.z=n?new i(n,16):this.curve.one,this.t=o&&new i(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(u,a),e.exports=u,u.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},u.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},u.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},u.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),o=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(o.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var u=s.fromRed().isOdd();return(t&&!u||!t&&u)&&(s=s.redNeg()),this.point(e,s)},u.prototype.pointFromY=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),o=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(o.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},u.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},o(c,a.BasePoint),u.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},u.prototype.point=function(e,t,r,n){return new c(this,e,t,r,n)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),u=i.redMul(a),c=o.redMul(s),f=i.redMul(s),l=a.redMul(o);return this.curve.point(u,c,l,f)},c.prototype._projDbl=function(){var e,t,r,n,i,o,a=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),u=this.y.redSqr();if(this.curve.twisted){var c=(n=this.curve._mulA(s)).redAdd(u);this.zOne?(e=a.redSub(s).redSub(u).redMul(c.redSub(this.curve.two)),t=c.redMul(n.redSub(u)),r=c.redSqr().redSub(c).redSub(c)):(i=this.z.redSqr(),o=c.redSub(i).redISub(i),e=a.redSub(s).redISub(u).redMul(o),t=c.redMul(n.redSub(u)),r=c.redMul(o))}else n=s.redAdd(u),i=this.curve._mulC(this.z).redSqr(),o=n.redSub(i).redSub(i),e=this.curve._mulC(a.redISub(n)).redMul(o),t=this.curve._mulC(n).redMul(s.redISub(u)),r=n.redMul(o);return this.curve.point(e,t,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),u=r.redAdd(t),c=o.redMul(a),f=s.redMul(u),l=o.redMul(u),d=a.redMul(s);return this.curve.point(c,f,d,l)},c.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),u=i.redSub(s),c=i.redAdd(s),f=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),l=n.redMul(u).redMul(f);return this.curve.twisted?(t=n.redMul(c).redMul(a.redSub(this.curve._mulA(o))),r=u.redMul(c)):(t=n.redMul(c).redMul(a.redSub(o)),r=this.curve._mulC(u).redMul(c)),this.curve.point(l,t,r)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},88254:(e,t,r)=>{"use strict";var n=t;n.base=r(4918),n.short=r(6673),n.mont=r(22881),n.edwards=r(31138)},22881:(e,t,r)=>{"use strict";var n=r(73785),i=r(35717),o=r(4918),a=r(80953);function s(e){o.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(e,t,r){o.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,o),e.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},i(u,o.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(a.toArray(e,t),1)},s.prototype.point=function(e,t){return new u(this,e,t)},s.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(e,t){return new u(e,t[0],t[1]||e.one)},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},u.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),u=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,u)},u.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},u.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},6673:(e,t,r)=>{"use strict";var n=r(80953),i=r(73785),o=r(35717),a=r(4918),s=n.assert;function u(e){a.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function c(e,t,r,n){a.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function f(e,t,r,n){a.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(r,16),this.z=new i(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(u,a),e.exports=u,u.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,r;if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);t=(t=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(e.lambda)r=new i(e.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(t))?r=o[0]:(r=o[1],s(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:r,basis:e.basis?e.basis.map((function(e){return{a:new i(e.a,16),b:new i(e.b,16)}})):this._getEndoBasis(r)}}},u.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),r=new i(2).toRed(t).redInvm(),n=r.redNeg(),o=new i(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(o).fromRed(),n.redSub(o).fromRed()]},u.prototype._getEndoBasis=function(e){for(var t,r,n,o,a,s,u,c,f,l=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=e,h=this.n.clone(),p=new i(1),b=new i(0),y=new i(0),g=new i(1),m=0;0!==d.cmpn(0);){var v=h.div(d);c=h.sub(v.mul(d)),f=y.sub(v.mul(p));var w=g.sub(v.mul(b));if(!n&&c.cmp(l)<0)t=u.neg(),r=p,n=c.neg(),o=f;else if(n&&2==++m)break;u=c,h=d,d=c,y=p,p=f,g=b,b=w}a=c.neg(),s=f;var _=n.sqr().add(o.sqr());return a.sqr().add(s.sqr()).cmp(_)>=0&&(a=t,s=r),n.negative&&(n=n.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:o},{a,b:s}]},u.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),u=i.mul(r.b),c=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:u.add(c).neg()}},u.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var o=n.fromRed().isOdd();return(t&&!o||!t&&o)&&(n=n.redNeg()),this.point(e,n)},u.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},u.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var a=this._endoSplit(t[o]),s=e[o],u=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),u=u.neg(!0)),n[2*o]=s,n[2*o+1]=u,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var c=this._wnafMulAdd(1,n,i,2*o,r),f=0;f<2*o;f++)n[f]=null,i[f]=null;return c},o(c,a.BasePoint),u.prototype.point=function(e,t,r){return new c(this,e,t,r)},u.prototype.pointFromJSON=function(e,t){return c.fromJSON(this,e,t)},c.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},c.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},c.fromJSON=function(e,t,r){"string"==typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],r);if(!t[2])return n;function i(t){return e.point(t[0],t[1],r)}var o=t[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},c.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new i(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},c.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},c.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(f,a.BasePoint),u.prototype.jpoint=function(e,t,r){return new f(this,e,t,r)},f.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},f.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},f.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),f=c.redMul(s),l=n.redMul(c),d=u.redSqr().redIAdd(f).redISub(l).redISub(l),h=u.redMul(l.redISub(d)).redISub(o.redMul(f)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,h,p)},f.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),c=u.redMul(a),f=r.redMul(u),l=s.redSqr().redIAdd(c).redISub(f).redISub(f),d=s.redMul(f.redISub(l)).redISub(i.redMul(c)),h=this.z.redMul(a);return this.curve.jpoint(l,d,h)},f.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var r=this;for(t=0;t<e;t++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,u=s.redSqr().redSqr(),c=a.redAdd(a);for(t=0;t<e;t++){var f=o.redSqr(),l=c.redSqr(),d=l.redSqr(),h=f.redAdd(f).redIAdd(f).redIAdd(n.redMul(u)),p=o.redMul(l),b=h.redSqr().redISub(p.redAdd(p)),y=p.redISub(b),g=h.redMul(y);g=g.redIAdd(g).redISub(d);var m=c.redMul(s);t+1<e&&(u=u.redMul(d)),o=b,s=m,c=g}return this.curve.jpoint(o,c.redMul(i),s)},f.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},f.prototype._zeroDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n),u=s.redSqr().redISub(a).redISub(a),c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),e=u,t=s.redMul(a.redISub(u)).redISub(c),r=this.y.redAdd(this.y)}else{var f=this.x.redSqr(),l=this.y.redSqr(),d=l.redSqr(),h=this.x.redAdd(l).redSqr().redISub(f).redISub(d);h=h.redIAdd(h);var p=f.redAdd(f).redIAdd(f),b=p.redSqr(),y=d.redIAdd(d);y=(y=y.redIAdd(y)).redIAdd(y),e=b.redISub(h).redISub(h),t=p.redMul(h.redISub(e)).redISub(y),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},f.prototype._threeDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),u=s.redSqr().redISub(a).redISub(a);e=u;var c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),t=s.redMul(a.redISub(u)).redISub(c),r=this.y.redAdd(this.y)}else{var f=this.z.redSqr(),l=this.y.redSqr(),d=this.x.redMul(l),h=this.x.redSub(f).redMul(this.x.redAdd(f));h=h.redAdd(h).redIAdd(h);var p=d.redIAdd(d),b=(p=p.redIAdd(p)).redAdd(p);e=h.redSqr().redISub(b),r=this.y.redAdd(this.z).redSqr().redISub(l).redISub(f);var y=l.redSqr();y=(y=(y=y.redIAdd(y)).redIAdd(y)).redIAdd(y),t=h.redMul(p.redISub(e)).redISub(y)}return this.curve.jpoint(e,t,r)},f.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=t.redSqr(),a=r.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),u=t.redAdd(t),c=(u=u.redIAdd(u)).redMul(a),f=s.redSqr().redISub(c.redAdd(c)),l=c.redISub(f),d=a.redSqr();d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var h=s.redMul(l).redISub(d),p=r.redAdd(r).redMul(n);return this.curve.jpoint(f,h,p)},f.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),a=this.x.redAdd(t).redSqr().redISub(e).redISub(n),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),u=n.redIAdd(n);u=(u=(u=u.redIAdd(u)).redIAdd(u)).redIAdd(u);var c=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(u),f=t.redMul(c);f=(f=f.redIAdd(f)).redIAdd(f);var l=this.x.redMul(s).redISub(f);l=(l=l.redIAdd(l)).redIAdd(l);var d=this.y.redMul(c.redMul(u.redISub(c)).redISub(a.redMul(s)));d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var h=this.z.redAdd(a).redSqr().redISub(r).redISub(s);return this.curve.jpoint(l,d,h)},f.prototype.mul=function(e,t){return e=new i(e,t),this.curve._wnafMul(this,e)},f.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),i=r.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)},f.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),i=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},f.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},f.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},45427:(e,t,r)=>{"use strict";var n,i=t,o=r(33715),a=r(88254),s=r(80953).assert;function u(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new u(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=u,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(91037)}catch(e){n=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},57954:(e,t,r)=>{"use strict";var n=r(73785),i=r(2156),o=r(80953),a=r(45427),s=r(29931),u=o.assert,c=r(34371),f=r(90611);function l(e){if(!(this instanceof l))return new l(e);"string"==typeof e&&(u(Object.prototype.hasOwnProperty.call(a,e),"Unknown curve "+e),e=a[e]),e instanceof a.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=l,l.prototype.keyPair=function(e){return new c(this,e)},l.prototype.keyFromPrivate=function(e,t){return c.fromPrivate(this,e,t)},l.prototype.keyFromPublic=function(e,t){return c.fromPublic(this,e,t)},l.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||s(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),o=this.n.sub(new n(2));;){var a=new n(t.generate(r));if(!(a.cmp(o)>0))return a.iaddn(1),this.keyFromPrivate(a)}},l.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},l.prototype.sign=function(e,t,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),u=e.toArray("be",a),c=new i({hash:this.hash,entropy:s,nonce:u,pers:o.pers,persEnc:o.persEnc||"utf8"}),l=this.n.sub(new n(1)),d=0;;d++){var h=o.k?o.k(d):new n(c.generate(this.n.byteLength()));if(!((h=this._truncateToN(h,!0)).cmpn(1)<=0||h.cmp(l)>=0)){var p=this.g.mul(h);if(!p.isInfinity()){var b=p.getX(),y=b.umod(this.n);if(0!==y.cmpn(0)){var g=h.invm(this.n).mul(y.mul(t.getPrivate()).iadd(e));if(0!==(g=g.umod(this.n)).cmpn(0)){var m=(p.getY().isOdd()?1:0)|(0!==b.cmp(y)?2:0);return o.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),m^=1),new f({r:y,s:g,recoveryParam:m})}}}}}},l.prototype.verify=function(e,t,r,i){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,i);var o=(t=new f(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,u=a.invm(this.n),c=u.mul(e).umod(this.n),l=u.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,r.getPublic(),l)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(c,r.getPublic(),l)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},l.prototype.recoverPubKey=function(e,t,r,i){u((3&r)===r,"The recovery param is more than two bits"),t=new f(t,i);var o=this.n,a=new n(e),s=t.r,c=t.s,l=1&r,d=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");s=d?this.curve.pointFromX(s.add(this.curve.n),l):this.curve.pointFromX(s,l);var h=t.r.invm(o),p=o.sub(a).mul(h).umod(o),b=c.mul(h).umod(o);return this.g.mulAdd(p,s,b)},l.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new f(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},34371:(e,t,r)=>{"use strict";var n=r(73785),i=r(80953).assert;function o(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=o,o.fromPublic=function(e,t,r){return t instanceof o?t:new o(e,{pub:t,pubEnc:r})},o.fromPrivate=function(e,t,r){return t instanceof o?t:new o(e,{priv:t,privEnc:r})},o.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},o.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},o.prototype.derive=function(e){return e.validate()||i(e.validate(),"public point not validated"),e.mul(this.priv).getX()},o.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},o.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},90611:(e,t,r)=>{"use strict";var n=r(73785),i=r(80953),o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function u(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,o=0,a=t.place;o<n;o++,a++)i<<=8,i|=e[a],i>>>=0;return!(i<=127)&&(t.place=a,i)}function c(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function f(e,t){if(t<128)e.push(t);else{var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;var o=u(e,r);if(!1===o)return!1;if(o+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var a=u(e,r);if(!1===a)return!1;var c=e.slice(r.place,a+r.place);if(r.place+=a,2!==e[r.place++])return!1;var f=u(e,r);if(!1===f)return!1;if(e.length!==f+r.place)return!1;var l=e.slice(r.place,f+r.place);if(0===c[0]){if(!(128&c[1]))return!1;c=c.slice(1)}if(0===l[0]){if(!(128&l[1]))return!1;l=l.slice(1)}return this.r=new n(c),this.s=new n(l),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=c(t),r=c(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];f(n,t.length),(n=n.concat(t)).push(2),f(n,r.length);var o=n.concat(r),a=[48];return f(a,o.length),a=a.concat(o),i.encode(a,e)}},65980:(e,t,r)=>{"use strict";var n=r(33715),i=r(45427),o=r(80953),a=o.assert,s=o.parseBytes,u=r(79087),c=r(23622);function f(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof f))return new f(e);e=i[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}e.exports=f,f.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),u=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:u,Rencoded:o})},f.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},f.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return o.intFromLE(e.digest()).umod(this.curve.n)},f.prototype.keyFromPublic=function(e){return u.fromPublic(this,e)},f.prototype.keyFromSecret=function(e){return u.fromSecret(this,e)},f.prototype.makeSignature=function(e){return e instanceof c?e:new c(this,e)},f.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},f.prototype.decodePoint=function(e){var t=(e=o.parseBytes(e)).length-1,r=e.slice(0,t).concat(-129&e[t]),n=0!=(128&e[t]),i=o.intFromLE(r);return this.curve.pointFromY(i,n)},f.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},f.prototype.decodeInt=function(e){return o.intFromLE(e)},f.prototype.isPoint=function(e){return e instanceof this.pointClass}},79087:(e,t,r)=>{"use strict";var n=r(80953),i=n.assert,o=n.parseBytes,a=n.cachedProperty;function s(e,t){this.eddsa=e,this._secret=o(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=o(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},a(s,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),a(s,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),a(s,"privBytes",(function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n})),a(s,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),a(s,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),a(s,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),s.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),e)},s.prototype.getPublic=function(e){return n.encode(this.pubBytes(),e)},e.exports=s},23622:(e,t,r)=>{"use strict";var n=r(73785),i=r(80953),o=i.assert,a=i.cachedProperty,s=i.parseBytes;function u(e,t){this.eddsa=e,"object"!=typeof t&&(t=s(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),o(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof n&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}a(u,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),a(u,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),a(u,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),a(u,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),u.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},u.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},e.exports=u},91037:e=>{e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},80953:(e,t,r)=>{"use strict";var n=t,i=r(73785),o=r(79746),a=r(34504);n.assert=o,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 i=1<<t+1,o=e.clone(),a=0;a<n.length;a++){var s,u=o.andln(i-1);o.isOdd()?(s=u>(i>>1)-1?(i>>1)-u:u,o.isubn(s)):s=0,n[a]=s,o.iushrn(1)}return n},n.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n,i=0,o=0;e.cmpn(-i)>0||t.cmpn(-o)>0;){var a,s,u=e.andln(3)+i&3,c=t.andln(3)+o&3;3===u&&(u=-1),3===c&&(c=-1),a=0==(1&u)?0:3!=(n=e.andln(7)+i&7)&&5!==n||2!==c?u:-u,r[0].push(a),s=0==(1&c)?0:3!=(n=t.andln(7)+o&7)&&5!==n||2!==u?c:-c,r[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),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 i(e,"hex","le")}},73785:function(e,t,r){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(85568).Buffer}catch(e){}function s(e,t){var r=e.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function u(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function c(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a<o;a++){var s=e.charCodeAt(a)-48;i*=n,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===r)for(i=e.length-1,o=0;i>=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<e.length;i+=3)a=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,a=0;if("be"===r)for(n=e.length-1;n>=t;n-=2)i=u(e,t,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(e.length-t)%2==0?t+1:t;n<e.length;n+=2)i=u(e,t,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,u=0,f=r;f<s;f+=n)u=c(e,f,f+n,t),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var l=1;for(u=c(e,f,e.length,t),f=0;f<a;f++)l*=t;this.imuln(l),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[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 h(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var f=u>>>26,l=67108863&u,d=Math.min(c,t.length-1),h=Math.max(0,c-e.length+1);h<=d;h++){var p=c-h|0;f+=(a=(i=0|e.words[p])*(o=0|t.words[h])+l)/67108864|0,l=67108863&a}r.words[c]=0|l,u=0|f}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);r=0!=(o=s>>>24-i&16777215)||a!==this.length-1?f[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var c=l[e],h=d[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(h).toString(e);r=(p=p.idivn(h)).isZero()?b+r:f[c-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var 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},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n(void 0!==a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===t,c=new e(o),f=this.clone();if(u){for(s=0;!f.isZero();s++)a=f.andln(255),f.iushrn(8),c[s]=a;for(;s<o;s++)c[s]=0}else{for(s=0;s<o-i;s++)c[s]=0;for(s=0;!f.isZero();s++)a=f.andln(255),f.iushrn(8),c[o-s-1]=a}return c},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=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},o.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},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},o.prototype.ior=function(e){return n(0==(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return n(0==(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return n(0==(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.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;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.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 r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a<n.length;a++)o=(t=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&t;for(;0!==o&&a<r.length;a++)o=(t=(0|r.words[a])+o)>>26,this.words[a]=67108863&t;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,r){var n,i,o,a=e.words,s=t.words,u=r.words,c=0,f=0|a[0],l=8191&f,d=f>>>13,h=0|a[1],p=8191&h,b=h>>>13,y=0|a[2],g=8191&y,m=y>>>13,v=0|a[3],w=8191&v,_=v>>>13,x=0|a[4],O=8191&x,k=x>>>13,P=0|a[5],S=8191&P,A=P>>>13,E=0|a[6],M=8191&E,j=E>>>13,T=0|a[7],B=8191&T,I=T>>>13,N=0|a[8],R=8191&N,C=N>>>13,U=0|a[9],L=8191&U,D=U>>>13,H=0|s[0],F=8191&H,V=H>>>13,z=0|s[1],q=8191&z,K=z>>>13,W=0|s[2],G=8191&W,X=W>>>13,Z=0|s[3],J=8191&Z,Y=Z>>>13,Q=0|s[4],$=8191&Q,ee=Q>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,fe=0|s[8],le=8191&fe,de=fe>>>13,he=0|s[9],pe=8191&he,be=he>>>13;r.negative=e.negative^t.negative,r.length=19;var ye=(c+(n=Math.imul(l,F))|0)+((8191&(i=(i=Math.imul(l,V))+Math.imul(d,F)|0))<<13)|0;c=((o=Math.imul(d,V))+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(p,F),i=(i=Math.imul(p,V))+Math.imul(b,F)|0,o=Math.imul(b,V);var ge=(c+(n=n+Math.imul(l,q)|0)|0)+((8191&(i=(i=i+Math.imul(l,K)|0)+Math.imul(d,q)|0))<<13)|0;c=((o=o+Math.imul(d,K)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(g,F),i=(i=Math.imul(g,V))+Math.imul(m,F)|0,o=Math.imul(m,V),n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(b,q)|0,o=o+Math.imul(b,K)|0;var me=(c+(n=n+Math.imul(l,G)|0)|0)+((8191&(i=(i=i+Math.imul(l,X)|0)+Math.imul(d,G)|0))<<13)|0;c=((o=o+Math.imul(d,X)|0)+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(w,F),i=(i=Math.imul(w,V))+Math.imul(_,F)|0,o=Math.imul(_,V),n=n+Math.imul(g,q)|0,i=(i=i+Math.imul(g,K)|0)+Math.imul(m,q)|0,o=o+Math.imul(m,K)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(b,G)|0,o=o+Math.imul(b,X)|0;var ve=(c+(n=n+Math.imul(l,J)|0)|0)+((8191&(i=(i=i+Math.imul(l,Y)|0)+Math.imul(d,J)|0))<<13)|0;c=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(O,F),i=(i=Math.imul(O,V))+Math.imul(k,F)|0,o=Math.imul(k,V),n=n+Math.imul(w,q)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(_,q)|0,o=o+Math.imul(_,K)|0,n=n+Math.imul(g,G)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(m,G)|0,o=o+Math.imul(m,X)|0,n=n+Math.imul(p,J)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(b,J)|0,o=o+Math.imul(b,Y)|0;var we=(c+(n=n+Math.imul(l,$)|0)|0)+((8191&(i=(i=i+Math.imul(l,ee)|0)+Math.imul(d,$)|0))<<13)|0;c=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(S,F),i=(i=Math.imul(S,V))+Math.imul(A,F)|0,o=Math.imul(A,V),n=n+Math.imul(O,q)|0,i=(i=i+Math.imul(O,K)|0)+Math.imul(k,q)|0,o=o+Math.imul(k,K)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(g,J)|0,i=(i=i+Math.imul(g,Y)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,Y)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,ee)|0;var _e=(c+(n=n+Math.imul(l,re)|0)|0)+((8191&(i=(i=i+Math.imul(l,ne)|0)+Math.imul(d,re)|0))<<13)|0;c=((o=o+Math.imul(d,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(M,F),i=(i=Math.imul(M,V))+Math.imul(j,F)|0,o=Math.imul(j,V),n=n+Math.imul(S,q)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul(A,q)|0,o=o+Math.imul(A,K)|0,n=n+Math.imul(O,G)|0,i=(i=i+Math.imul(O,X)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,X)|0,n=n+Math.imul(w,J)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(g,$)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0;var xe=(c+(n=n+Math.imul(l,oe)|0)|0)+((8191&(i=(i=i+Math.imul(l,ae)|0)+Math.imul(d,oe)|0))<<13)|0;c=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(B,F),i=(i=Math.imul(B,V))+Math.imul(I,F)|0,o=Math.imul(I,V),n=n+Math.imul(M,q)|0,i=(i=i+Math.imul(M,K)|0)+Math.imul(j,q)|0,o=o+Math.imul(j,K)|0,n=n+Math.imul(S,G)|0,i=(i=i+Math.imul(S,X)|0)+Math.imul(A,G)|0,o=o+Math.imul(A,X)|0,n=n+Math.imul(O,J)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,Y)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(g,re)|0,i=(i=i+Math.imul(g,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0;var Oe=(c+(n=n+Math.imul(l,ue)|0)|0)+((8191&(i=(i=i+Math.imul(l,ce)|0)+Math.imul(d,ue)|0))<<13)|0;c=((o=o+Math.imul(d,ce)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(R,F),i=(i=Math.imul(R,V))+Math.imul(C,F)|0,o=Math.imul(C,V),n=n+Math.imul(B,q)|0,i=(i=i+Math.imul(B,K)|0)+Math.imul(I,q)|0,o=o+Math.imul(I,K)|0,n=n+Math.imul(M,G)|0,i=(i=i+Math.imul(M,X)|0)+Math.imul(j,G)|0,o=o+Math.imul(j,X)|0,n=n+Math.imul(S,J)|0,i=(i=i+Math.imul(S,Y)|0)+Math.imul(A,J)|0,o=o+Math.imul(A,Y)|0,n=n+Math.imul(O,$)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(g,oe)|0,i=(i=i+Math.imul(g,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(b,ue)|0,o=o+Math.imul(b,ce)|0;var ke=(c+(n=n+Math.imul(l,le)|0)|0)+((8191&(i=(i=i+Math.imul(l,de)|0)+Math.imul(d,le)|0))<<13)|0;c=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(L,F),i=(i=Math.imul(L,V))+Math.imul(D,F)|0,o=Math.imul(D,V),n=n+Math.imul(R,q)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(C,q)|0,o=o+Math.imul(C,K)|0,n=n+Math.imul(B,G)|0,i=(i=i+Math.imul(B,X)|0)+Math.imul(I,G)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(M,J)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(j,J)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(S,$)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,ee)|0,n=n+Math.imul(O,re)|0,i=(i=i+Math.imul(O,ne)|0)+Math.imul(k,re)|0,o=o+Math.imul(k,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(g,ue)|0,i=(i=i+Math.imul(g,ce)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,ce)|0,n=n+Math.imul(p,le)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(b,le)|0,o=o+Math.imul(b,de)|0;var Pe=(c+(n=n+Math.imul(l,pe)|0)|0)+((8191&(i=(i=i+Math.imul(l,be)|0)+Math.imul(d,pe)|0))<<13)|0;c=((o=o+Math.imul(d,be)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(L,q),i=(i=Math.imul(L,K))+Math.imul(D,q)|0,o=Math.imul(D,K),n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,X)|0)+Math.imul(C,G)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(B,J)|0,i=(i=i+Math.imul(B,Y)|0)+Math.imul(I,J)|0,o=o+Math.imul(I,Y)|0,n=n+Math.imul(M,$)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(j,$)|0,o=o+Math.imul(j,ee)|0,n=n+Math.imul(S,re)|0,i=(i=i+Math.imul(S,ne)|0)+Math.imul(A,re)|0,o=o+Math.imul(A,ne)|0,n=n+Math.imul(O,oe)|0,i=(i=i+Math.imul(O,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,ce)|0,n=n+Math.imul(g,le)|0,i=(i=i+Math.imul(g,de)|0)+Math.imul(m,le)|0,o=o+Math.imul(m,de)|0;var Se=(c+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,be)|0)+Math.imul(b,pe)|0))<<13)|0;c=((o=o+Math.imul(b,be)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(L,G),i=(i=Math.imul(L,X))+Math.imul(D,G)|0,o=Math.imul(D,X),n=n+Math.imul(R,J)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,Y)|0,n=n+Math.imul(B,$)|0,i=(i=i+Math.imul(B,ee)|0)+Math.imul(I,$)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(M,re)|0,i=(i=i+Math.imul(M,ne)|0)+Math.imul(j,re)|0,o=o+Math.imul(j,ne)|0,n=n+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,ae)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,ae)|0,n=n+Math.imul(O,ue)|0,i=(i=i+Math.imul(O,ce)|0)+Math.imul(k,ue)|0,o=o+Math.imul(k,ce)|0,n=n+Math.imul(w,le)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(_,le)|0,o=o+Math.imul(_,de)|0;var Ae=(c+(n=n+Math.imul(g,pe)|0)|0)+((8191&(i=(i=i+Math.imul(g,be)|0)+Math.imul(m,pe)|0))<<13)|0;c=((o=o+Math.imul(m,be)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(L,J),i=(i=Math.imul(L,Y))+Math.imul(D,J)|0,o=Math.imul(D,Y),n=n+Math.imul(R,$)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(B,re)|0,i=(i=i+Math.imul(B,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(M,oe)|0,i=(i=i+Math.imul(M,ae)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,ae)|0,n=n+Math.imul(S,ue)|0,i=(i=i+Math.imul(S,ce)|0)+Math.imul(A,ue)|0,o=o+Math.imul(A,ce)|0,n=n+Math.imul(O,le)|0,i=(i=i+Math.imul(O,de)|0)+Math.imul(k,le)|0,o=o+Math.imul(k,de)|0;var Ee=(c+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,be)|0)+Math.imul(_,pe)|0))<<13)|0;c=((o=o+Math.imul(_,be)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(L,$),i=(i=Math.imul(L,ee))+Math.imul(D,$)|0,o=Math.imul(D,ee),n=n+Math.imul(R,re)|0,i=(i=i+Math.imul(R,ne)|0)+Math.imul(C,re)|0,o=o+Math.imul(C,ne)|0,n=n+Math.imul(B,oe)|0,i=(i=i+Math.imul(B,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,n=n+Math.imul(M,ue)|0,i=(i=i+Math.imul(M,ce)|0)+Math.imul(j,ue)|0,o=o+Math.imul(j,ce)|0,n=n+Math.imul(S,le)|0,i=(i=i+Math.imul(S,de)|0)+Math.imul(A,le)|0,o=o+Math.imul(A,de)|0;var Me=(c+(n=n+Math.imul(O,pe)|0)|0)+((8191&(i=(i=i+Math.imul(O,be)|0)+Math.imul(k,pe)|0))<<13)|0;c=((o=o+Math.imul(k,be)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(L,re),i=(i=Math.imul(L,ne))+Math.imul(D,re)|0,o=Math.imul(D,ne),n=n+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,ae)|0,n=n+Math.imul(B,ue)|0,i=(i=i+Math.imul(B,ce)|0)+Math.imul(I,ue)|0,o=o+Math.imul(I,ce)|0,n=n+Math.imul(M,le)|0,i=(i=i+Math.imul(M,de)|0)+Math.imul(j,le)|0,o=o+Math.imul(j,de)|0;var je=(c+(n=n+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,be)|0)+Math.imul(A,pe)|0))<<13)|0;c=((o=o+Math.imul(A,be)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(L,oe),i=(i=Math.imul(L,ae))+Math.imul(D,oe)|0,o=Math.imul(D,ae),n=n+Math.imul(R,ue)|0,i=(i=i+Math.imul(R,ce)|0)+Math.imul(C,ue)|0,o=o+Math.imul(C,ce)|0,n=n+Math.imul(B,le)|0,i=(i=i+Math.imul(B,de)|0)+Math.imul(I,le)|0,o=o+Math.imul(I,de)|0;var Te=(c+(n=n+Math.imul(M,pe)|0)|0)+((8191&(i=(i=i+Math.imul(M,be)|0)+Math.imul(j,pe)|0))<<13)|0;c=((o=o+Math.imul(j,be)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(L,ue),i=(i=Math.imul(L,ce))+Math.imul(D,ue)|0,o=Math.imul(D,ce),n=n+Math.imul(R,le)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(C,le)|0,o=o+Math.imul(C,de)|0;var Be=(c+(n=n+Math.imul(B,pe)|0)|0)+((8191&(i=(i=i+Math.imul(B,be)|0)+Math.imul(I,pe)|0))<<13)|0;c=((o=o+Math.imul(I,be)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(L,le),i=(i=Math.imul(L,de))+Math.imul(D,le)|0,o=Math.imul(D,de);var Ie=(c+(n=n+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,be)|0)+Math.imul(C,pe)|0))<<13)|0;c=((o=o+Math.imul(C,be)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863;var Ne=(c+(n=Math.imul(L,pe))|0)+((8191&(i=(i=Math.imul(L,be))+Math.imul(D,pe)|0))<<13)|0;return c=((o=Math.imul(D,be))+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,u[0]=ye,u[1]=ge,u[2]=me,u[3]=ve,u[4]=we,u[5]=_e,u[6]=xe,u[7]=Oe,u[8]=ke,u[9]=Pe,u[10]=Se,u[11]=Ae,u[12]=Ee,u[13]=Me,u[14]=je,u[15]=Te,u[16]=Be,u[17]=Ie,u[18]=Ne,0!==c&&(u[19]=c,r.length++),r};function b(e,t,r){return(new y).mulp(e,t,r)}function y(e,t){this.x=e,this.y=t}Math.imul||(p=h),o.prototype.mulTo=function(e,t){var r,n=this.length+e.length;return r=10===this.length&&10===e.length?p(this,e,t):n<63?h(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,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,u=Math.min(o,t.length-1),c=Math.max(0,o-e.length+1);c<=u;c++){var f=o-c,l=(0|e.words[f])*(0|t.words[c]),d=67108863&l;s=67108863&(d=d+s|0),i+=(a=(a=a+(l/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):b(this,e,t),r},y.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},y.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},y.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a<o;a++)n[a]=t[e[a]],i[a]=r[e[a]]},y.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),f=0;f<i;f+=s)for(var l=u,d=c,h=0;h<a;h++){var p=r[f+h],b=n[f+h],y=r[f+h+a],g=n[f+h+a],m=l*y-d*g;g=l*g+d*y,y=m,r[f+h]=p+y,n[f+h]=b+g,r[f+h+a]=p-y,n[f+h+a]=b-g,h!==s&&(m=u*l-c*d,d=u*d+c*l,l=m)}},y.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},y.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},y.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},y.prototype.convert13b=function(e,t,r,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)r[a]=0;n(0===o),n(0==(-8192&o))},y.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},y.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),c=new Array(n),f=new Array(n),l=new Array(n),d=r.words;d.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,c,n),this.transform(a,o,s,u,n,i),this.transform(c,o,f,l,n,i);for(var h=0;h<n;h++){var p=s[h]*f[h]-u[h]*l[h];u[h]=s[h]*l[h]+u[h]*f[h],s[h]=p}return this.conjugate(s,u,n),this.transform(s,u,d,o,n,i),this.conjugate(d,o,n),this.normalize13b(d,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),b(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){n("number"==typeof e),n(e<67108864);for(var t=0,r=0;r<this.length;r++){var i=(0|this.words[r])*e,o=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=(e.words[n]&1<<i)>>>i}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,u=(0|this.words[t])-s<<r;this.words[t]=u|a,a=s>>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,r){var i;n("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o,u=r;if(i-=a,i=Math.max(0,i),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var f=0;for(c=this.length-1;c>=0&&(0!==f||c>=i);c--){var l=0|this.words[c];this.words[c]=f<<26-o|l>>>o,f=l&s}return u&&0!==f&&(u.words[u.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r||!(this.words[r]&i))},o.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.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 t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,r){var i,o,a=e.length+r;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+s;var u=(0|e.words[i])*t;s=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>26,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!=(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==t){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var f=n.clone()._ishlnsubmul(i,1,u);0===f.negative&&(n=f,s&&(s.words[u]=1));for(var l=u-1;l>=0;l--){var d=67108864*(0|n.words[i.length+l])+(0|n.words[i.length+l-1]);for(d=Math.min(d/a|0,67108863),n._ishlnsubmul(i,d,l);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,l),n.isZero()||(n.negative^=1);s&&(s.words[l]=d)}return s&&s.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.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),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++c;for(var f=r.clone(),l=t.clone();!t.isZero();){for(var d=0,h=1;0==(t.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(f),a.isub(l)),i.iushrn(1),a.iushrn(1);for(var p=0,b=1;0==(r.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(f),u.isub(l)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(u)):(r.isub(t),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,f=1;0==(t.words[0]&f)&&c<26;++c,f<<=1);if(c>0)for(t.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var l=0,d=1;0==(r.words[0]&d)&&l<26;++l,d<<=1);if(l>0)for(r.iushrn(l);l-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.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 i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new O(e)},o.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)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function m(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){m.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){m.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){m.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){m.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function O(e){if("string"==typeof e){var t=o._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){O.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}m.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},m.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=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},m.prototype.split=function(e,t){e.iushrn(this.n,0,t)},m.prototype.imulK=function(e){return e.imul(this.k)},i(v,m),v.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i<n;i++)t.words[i]=e.words[i];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(t.words[t.length++]=o&r,i=10;i<e.length;i++){var a=0|e.words[i];e.words[i-10]=(a&r)<<4|o>>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(w,m),i(_,m),i(x,m),x.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new _;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new x}return g[e]=t,t},O.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},O.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},O.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},O.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},O.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},O.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},O.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},O.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},O.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},O.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},O.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},O.prototype.isqr=function(e){return this.imul(e,e.clone())},O.prototype.sqr=function(e){return this.mul(e,e)},O.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new o(2*f*f).toRed(this);0!==this.pow(f,c).cmp(u);)f.redIAdd(u);for(var l=this.pow(f,i),d=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var b=h,y=0;0!==b.cmp(s);y++)b=b.redSqr();n(y<p);var g=this.pow(l,new o(1).iushln(p-y-1));d=d.redMul(g),l=g.redSqr(),h=h.redMul(l),p=y}return d},O.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},O.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],a=0,s=0,u=t.bitLength()%26;for(0===u&&(u=26),n=t.length-1;n>=0;n--){for(var c=t.words[n],f=u-1;f>=0;f--){var l=c>>f&1;i!==r[0]&&(i=this.sqr(i)),0!==l||0!==a?(a<<=1,a|=l,(4==++s||0===n&&0===f)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=26}return i},O.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},O.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new k(e)},i(k,O),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(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},8091:e=>{"use strict";function t(e,t){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var r=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var o=Object.keys(Object(i)),a=0,s=o.length;a<s;a++){var u=o[a],c=Object.getOwnPropertyDescriptor(i,u);void 0!==c&&c.enumerable&&(r[u]=i[u])}}return r}e.exports={assign:t,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:t})}}},50144:function(e,t,r){"use strict";var n=r(48764).Buffer,i=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.recoverTypedSignature_v4=t.recoverTypedSignature=t.signTypedData_v4=t.signTypedData=t.recoverTypedMessage=t.signTypedMessage=t.getEncryptionPublicKey=t.decryptSafely=t.decrypt=t.encryptSafely=t.encrypt=t.recoverTypedSignatureLegacy=t.signTypedDataLegacy=t.typedSignatureHash=t.extractPublicKey=t.recoverPersonalSignature=t.personalSign=t.normalize=t.concatSig=t.TypedDataUtils=t.TYPED_MESSAGE_SCHEMA=void 0;const s=a(r(17499)),u=a(r(68142)),c=a(r(50780)),f=a(r(16885)),l={type:"object",properties:{types:{type:"object",additionalProperties:{type:"array",items:{type:"object",properties:{name:{type:"string"},type:{type:"string"}},required:["name","type"]}}},primaryType:{type:"string"},domain:{type:"object"},message:{type:"object"}},required:["types","primaryType","domain","message"]};t.TYPED_MESSAGE_SCHEMA=l;const d={encodeData(e,t,r,i=!0){const o=["bytes32"],a=[this.hashType(e,r)];if(i){const c=(e,t,o)=>{if(void 0!==r[t])return["bytes32",null==o?"0x0000000000000000000000000000000000000000000000000000000000000000":s.keccak(this.encodeData(t,o,r,i))];if(void 0===o)throw new Error(`missing value for field ${e} of type ${t}`);if("bytes"===t)return["bytes32",s.keccak(o)];if("string"===t)return"string"==typeof o&&(o=n.from(o,"utf8")),["bytes32",s.keccak(o)];if(t.lastIndexOf("]")===t.length-1){const r=t.slice(0,t.lastIndexOf("[")),n=o.map((t=>c(e,r,t)));return["bytes32",s.keccak(u.rawEncode(n.map((([e])=>e)),n.map((([,e])=>e))))]}return[t,o]};for(const n of r[e]){const[e,r]=c(n.name,n.type,t[n.name]);o.push(e),a.push(r)}}else for(const u of r[e]){let e=t[u.name];if(void 0!==e)if("bytes"===u.type)o.push("bytes32"),e=s.keccak(e),a.push(e);else if("string"===u.type)o.push("bytes32"),"string"==typeof e&&(e=n.from(e,"utf8")),e=s.keccak(e),a.push(e);else if(void 0!==r[u.type])o.push("bytes32"),e=s.keccak(this.encodeData(u.type,e,r,i)),a.push(e);else{if(u.type.lastIndexOf("]")===u.type.length-1)throw new Error("Arrays are unimplemented in encodeData; use V4 extension");o.push(u.type),a.push(e)}}return u.rawEncode(o,a)},encodeType(e,t){let r="",n=this.findTypeDependencies(e,t).filter((t=>t!==e));n=[e].concat(n.sort());for(const e of n){if(!t[e])throw new Error(`No type definition specified: ${e}`);r+=`${e}(${t[e].map((({name:e,type:t})=>`${t} ${e}`)).join(",")})`}return r},findTypeDependencies(e,t,r=[]){if([e]=e.match(/^\w*/u),r.includes(e)||void 0===t[e])return r;r.push(e);for(const n of t[e])for(const e of this.findTypeDependencies(n.type,t,r))!r.includes(e)&&r.push(e);return r},hashStruct(e,t,r,n=!0){return s.keccak(this.encodeData(e,t,r,n))},hashType(e,t){return s.keccak(this.encodeType(e,t))},sanitizeData(e){const t={};for(const r in l.properties)e[r]&&(t[r]=e[r]);return"types"in t&&(t.types=Object.assign({EIP712Domain:[]},t.types)),t},sign(e,t=!0){const r=this.sanitizeData(e),i=[n.from("1901","hex")];return i.push(this.hashStruct("EIP712Domain",r.domain,r.types,t)),"EIP712Domain"!==r.primaryType&&i.push(this.hashStruct(r.primaryType,r.message,r.types,t)),s.keccak(n.concat(i))}};function h(e,t,r){const n=s.fromSigned(t),i=s.fromSigned(r),o=s.bufferToInt(e),a=P(s.toUnsigned(n).toString("hex"),64),u=P(s.toUnsigned(i).toString("hex"),64),c=s.stripHexPrefix(s.intToHex(o));return s.addHexPrefix(a.concat(u,c)).toString("hex")}function p(e,t){const r=x(t.data),n=s.ecsign(r,e);return s.bufferToHex(h(n.v,n.r,n.s))}function b(e){const t=O(x(e.data),e.sig),r=s.publicToAddress(t);return s.bufferToHex(r)}function y(e,t,r){if("x25519-xsalsa20-poly1305"===r){if("string"!=typeof t.data)throw new Error('Cannot detect secret message, message params should be of the form {data: "secret message"} ');const r=c.box.keyPair();let n;try{n=f.decodeBase64(e)}catch(e){throw new Error("Bad public key")}const i=f.decodeUTF8(t.data),o=c.randomBytes(c.box.nonceLength),a=c.box(i,o,n,r.secretKey);return{version:"x25519-xsalsa20-poly1305",nonce:f.encodeBase64(o),ephemPublicKey:f.encodeBase64(r.publicKey),ciphertext:f.encodeBase64(a)}}throw new Error("Encryption type/version not supported")}function g(e,t){if("x25519-xsalsa20-poly1305"===e.version){const r=S(t),n=c.box.keyPair.fromSecretKey(r).secretKey,i=f.decodeBase64(e.nonce),o=f.decodeBase64(e.ciphertext),a=f.decodeBase64(e.ephemPublicKey),s=c.box.open(o,i,a,n);let u;try{u=f.encodeUTF8(s)}catch(e){throw new Error("Decryption failed.")}if(u)return u;throw new Error("Decryption failed.")}throw new Error("Encryption type/version not supported.")}function m(e,t){const r=d.sign(t.data,!1),n=s.ecsign(r,e);return s.bufferToHex(h(n.v,n.r,n.s))}function v(e,t){const r=d.sign(t.data),n=s.ecsign(r,e);return s.bufferToHex(h(n.v,n.r,n.s))}function w(e){const t=O(d.sign(e.data,!1),e.sig),r=s.publicToAddress(t);return s.bufferToHex(r)}function _(e){const t=O(d.sign(e.data),e.sig),r=s.publicToAddress(t);return s.bufferToHex(r)}function x(e){const t=new Error("Expect argument to be non-empty array");if("object"!=typeof e||!("length"in e)||!e.length)throw t;const r=e.map((function(e){return"bytes"===e.type?s.toBuffer(e.value):e.value})),n=e.map((function(e){return e.type})),i=e.map((function(e){if(!e.name)throw t;return`${e.type} ${e.name}`}));return u.soliditySHA3(["bytes32","bytes32"],[u.soliditySHA3(new Array(e.length).fill("string"),i),u.soliditySHA3(n,r)])}function O(e,t){const r=s.toBuffer(t),n=s.fromRpcSig(r);return s.ecrecover(e,n.v,n.r,n.s)}function k(e){const t=s.toBuffer(e.data);return O(s.hashPersonalMessage(t),e.sig)}function P(e,t){let r=`${e}`;for(;r.length<t;)r=`0${r}`;return r}function S(e){const t=n.from(e,"hex").toString("base64");return f.decodeBase64(t)}t.TypedDataUtils=d,t.concatSig=h,t.normalize=function(e){if(e){if("number"==typeof e){const t=s.toBuffer(e);e=s.bufferToHex(t)}if("string"!=typeof e){let t="eth-sig-util.normalize() requires hex string or integer input.";throw t+=` received ${typeof e}: ${e}`,new Error(t)}return s.addHexPrefix(e.toLowerCase())}},t.personalSign=function(e,t){const r=s.toBuffer(t.data),n=s.hashPersonalMessage(r),i=s.ecsign(n,e);return s.bufferToHex(h(i.v,i.r,i.s))},t.recoverPersonalSignature=function(e){const t=k(e),r=s.publicToAddress(t);return s.bufferToHex(r)},t.extractPublicKey=function(e){return`0x${k(e).toString("hex")}`},t.typedSignatureHash=function(e){const t=x(e);return s.bufferToHex(t)},t.signTypedDataLegacy=p,t.recoverTypedSignatureLegacy=b,t.encrypt=y,t.encryptSafely=function(e,t,r){const{data:i}=t;if(!i)throw new Error("Cannot encrypt empty msg.data");if("object"==typeof i&&"toJSON"in i)throw new Error("Cannot encrypt with toJSON property. Please remove toJSON property");const o={data:i,padding:""},a=n.byteLength(JSON.stringify(o),"utf-8")%2048;let s=0;return a>0&&(s=2048-a-16),o.padding="0".repeat(s),y(e,{data:JSON.stringify(o)},r)},t.decrypt=g,t.decryptSafely=function(e,t){return JSON.parse(g(e,t)).data},t.getEncryptionPublicKey=function(e){const t=S(e),r=c.box.keyPair.fromSecretKey(t).publicKey;return f.encodeBase64(r)},t.signTypedMessage=function(e,t,r="V4"){switch(r){case"V1":return p(e,t);case"V3":return m(e,t);default:return v(e,t)}},t.recoverTypedMessage=function(e,t="V4"){switch(t){case"V1":return b(e);case"V3":return w(e);default:return _(e)}},t.signTypedData=m,t.signTypedData_v4=v,t.recoverTypedSignature=w,t.recoverTypedSignature_v4=_},89817:function(e,t,r){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(89568).Buffer}catch(e){}function s(e,t){var r=e.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function u(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function c(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a<o;a++){var s=e.charCodeAt(a)-48;i*=n,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===r)for(i=e.length-1,o=0;i>=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<e.length;i+=3)a=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,a=0;if("be"===r)for(n=e.length-1;n>=t;n-=2)i=u(e,t,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(e.length-t)%2==0?t+1:t;n<e.length;n+=2)i=u(e,t,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,u=0,f=r;f<s;f+=n)u=c(e,f,f+n,t),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var l=1;for(u=c(e,f,e.length,t),f=0;f<a;f++)l*=t;this.imuln(l),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[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 h(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var f=u>>>26,l=67108863&u,d=Math.min(c,t.length-1),h=Math.max(0,c-e.length+1);h<=d;h++){var p=c-h|0;f+=(a=(i=0|e.words[p])*(o=0|t.words[h])+l)/67108864|0,l=67108863&a}r.words[c]=0|l,u=0|f}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);r=0!=(o=s>>>24-i&16777215)||a!==this.length-1?f[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var c=l[e],h=d[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(h).toString(e);r=(p=p.idivn(h)).isZero()?b+r:f[c-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var 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},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n(void 0!==a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===t,c=new e(o),f=this.clone();if(u){for(s=0;!f.isZero();s++)a=f.andln(255),f.iushrn(8),c[s]=a;for(;s<o;s++)c[s]=0}else{for(s=0;s<o-i;s++)c[s]=0;for(s=0;!f.isZero();s++)a=f.andln(255),f.iushrn(8),c[o-s-1]=a}return c},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=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},o.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},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},o.prototype.ior=function(e){return n(0==(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return n(0==(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return n(0==(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.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;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.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 r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a<n.length;a++)o=(t=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&t;for(;0!==o&&a<r.length;a++)o=(t=(0|r.words[a])+o)>>26,this.words[a]=67108863&t;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,r){var n,i,o,a=e.words,s=t.words,u=r.words,c=0,f=0|a[0],l=8191&f,d=f>>>13,h=0|a[1],p=8191&h,b=h>>>13,y=0|a[2],g=8191&y,m=y>>>13,v=0|a[3],w=8191&v,_=v>>>13,x=0|a[4],O=8191&x,k=x>>>13,P=0|a[5],S=8191&P,A=P>>>13,E=0|a[6],M=8191&E,j=E>>>13,T=0|a[7],B=8191&T,I=T>>>13,N=0|a[8],R=8191&N,C=N>>>13,U=0|a[9],L=8191&U,D=U>>>13,H=0|s[0],F=8191&H,V=H>>>13,z=0|s[1],q=8191&z,K=z>>>13,W=0|s[2],G=8191&W,X=W>>>13,Z=0|s[3],J=8191&Z,Y=Z>>>13,Q=0|s[4],$=8191&Q,ee=Q>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,fe=0|s[8],le=8191&fe,de=fe>>>13,he=0|s[9],pe=8191&he,be=he>>>13;r.negative=e.negative^t.negative,r.length=19;var ye=(c+(n=Math.imul(l,F))|0)+((8191&(i=(i=Math.imul(l,V))+Math.imul(d,F)|0))<<13)|0;c=((o=Math.imul(d,V))+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(p,F),i=(i=Math.imul(p,V))+Math.imul(b,F)|0,o=Math.imul(b,V);var ge=(c+(n=n+Math.imul(l,q)|0)|0)+((8191&(i=(i=i+Math.imul(l,K)|0)+Math.imul(d,q)|0))<<13)|0;c=((o=o+Math.imul(d,K)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(g,F),i=(i=Math.imul(g,V))+Math.imul(m,F)|0,o=Math.imul(m,V),n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(b,q)|0,o=o+Math.imul(b,K)|0;var me=(c+(n=n+Math.imul(l,G)|0)|0)+((8191&(i=(i=i+Math.imul(l,X)|0)+Math.imul(d,G)|0))<<13)|0;c=((o=o+Math.imul(d,X)|0)+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(w,F),i=(i=Math.imul(w,V))+Math.imul(_,F)|0,o=Math.imul(_,V),n=n+Math.imul(g,q)|0,i=(i=i+Math.imul(g,K)|0)+Math.imul(m,q)|0,o=o+Math.imul(m,K)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(b,G)|0,o=o+Math.imul(b,X)|0;var ve=(c+(n=n+Math.imul(l,J)|0)|0)+((8191&(i=(i=i+Math.imul(l,Y)|0)+Math.imul(d,J)|0))<<13)|0;c=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(O,F),i=(i=Math.imul(O,V))+Math.imul(k,F)|0,o=Math.imul(k,V),n=n+Math.imul(w,q)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(_,q)|0,o=o+Math.imul(_,K)|0,n=n+Math.imul(g,G)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(m,G)|0,o=o+Math.imul(m,X)|0,n=n+Math.imul(p,J)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(b,J)|0,o=o+Math.imul(b,Y)|0;var we=(c+(n=n+Math.imul(l,$)|0)|0)+((8191&(i=(i=i+Math.imul(l,ee)|0)+Math.imul(d,$)|0))<<13)|0;c=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(S,F),i=(i=Math.imul(S,V))+Math.imul(A,F)|0,o=Math.imul(A,V),n=n+Math.imul(O,q)|0,i=(i=i+Math.imul(O,K)|0)+Math.imul(k,q)|0,o=o+Math.imul(k,K)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(g,J)|0,i=(i=i+Math.imul(g,Y)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,Y)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,ee)|0;var _e=(c+(n=n+Math.imul(l,re)|0)|0)+((8191&(i=(i=i+Math.imul(l,ne)|0)+Math.imul(d,re)|0))<<13)|0;c=((o=o+Math.imul(d,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(M,F),i=(i=Math.imul(M,V))+Math.imul(j,F)|0,o=Math.imul(j,V),n=n+Math.imul(S,q)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul(A,q)|0,o=o+Math.imul(A,K)|0,n=n+Math.imul(O,G)|0,i=(i=i+Math.imul(O,X)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,X)|0,n=n+Math.imul(w,J)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(g,$)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0;var xe=(c+(n=n+Math.imul(l,oe)|0)|0)+((8191&(i=(i=i+Math.imul(l,ae)|0)+Math.imul(d,oe)|0))<<13)|0;c=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(B,F),i=(i=Math.imul(B,V))+Math.imul(I,F)|0,o=Math.imul(I,V),n=n+Math.imul(M,q)|0,i=(i=i+Math.imul(M,K)|0)+Math.imul(j,q)|0,o=o+Math.imul(j,K)|0,n=n+Math.imul(S,G)|0,i=(i=i+Math.imul(S,X)|0)+Math.imul(A,G)|0,o=o+Math.imul(A,X)|0,n=n+Math.imul(O,J)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,Y)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(g,re)|0,i=(i=i+Math.imul(g,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0;var Oe=(c+(n=n+Math.imul(l,ue)|0)|0)+((8191&(i=(i=i+Math.imul(l,ce)|0)+Math.imul(d,ue)|0))<<13)|0;c=((o=o+Math.imul(d,ce)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(R,F),i=(i=Math.imul(R,V))+Math.imul(C,F)|0,o=Math.imul(C,V),n=n+Math.imul(B,q)|0,i=(i=i+Math.imul(B,K)|0)+Math.imul(I,q)|0,o=o+Math.imul(I,K)|0,n=n+Math.imul(M,G)|0,i=(i=i+Math.imul(M,X)|0)+Math.imul(j,G)|0,o=o+Math.imul(j,X)|0,n=n+Math.imul(S,J)|0,i=(i=i+Math.imul(S,Y)|0)+Math.imul(A,J)|0,o=o+Math.imul(A,Y)|0,n=n+Math.imul(O,$)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(g,oe)|0,i=(i=i+Math.imul(g,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(b,ue)|0,o=o+Math.imul(b,ce)|0;var ke=(c+(n=n+Math.imul(l,le)|0)|0)+((8191&(i=(i=i+Math.imul(l,de)|0)+Math.imul(d,le)|0))<<13)|0;c=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(L,F),i=(i=Math.imul(L,V))+Math.imul(D,F)|0,o=Math.imul(D,V),n=n+Math.imul(R,q)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(C,q)|0,o=o+Math.imul(C,K)|0,n=n+Math.imul(B,G)|0,i=(i=i+Math.imul(B,X)|0)+Math.imul(I,G)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(M,J)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(j,J)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(S,$)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,ee)|0,n=n+Math.imul(O,re)|0,i=(i=i+Math.imul(O,ne)|0)+Math.imul(k,re)|0,o=o+Math.imul(k,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(g,ue)|0,i=(i=i+Math.imul(g,ce)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,ce)|0,n=n+Math.imul(p,le)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(b,le)|0,o=o+Math.imul(b,de)|0;var Pe=(c+(n=n+Math.imul(l,pe)|0)|0)+((8191&(i=(i=i+Math.imul(l,be)|0)+Math.imul(d,pe)|0))<<13)|0;c=((o=o+Math.imul(d,be)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(L,q),i=(i=Math.imul(L,K))+Math.imul(D,q)|0,o=Math.imul(D,K),n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,X)|0)+Math.imul(C,G)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(B,J)|0,i=(i=i+Math.imul(B,Y)|0)+Math.imul(I,J)|0,o=o+Math.imul(I,Y)|0,n=n+Math.imul(M,$)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(j,$)|0,o=o+Math.imul(j,ee)|0,n=n+Math.imul(S,re)|0,i=(i=i+Math.imul(S,ne)|0)+Math.imul(A,re)|0,o=o+Math.imul(A,ne)|0,n=n+Math.imul(O,oe)|0,i=(i=i+Math.imul(O,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,ce)|0,n=n+Math.imul(g,le)|0,i=(i=i+Math.imul(g,de)|0)+Math.imul(m,le)|0,o=o+Math.imul(m,de)|0;var Se=(c+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,be)|0)+Math.imul(b,pe)|0))<<13)|0;c=((o=o+Math.imul(b,be)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(L,G),i=(i=Math.imul(L,X))+Math.imul(D,G)|0,o=Math.imul(D,X),n=n+Math.imul(R,J)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,Y)|0,n=n+Math.imul(B,$)|0,i=(i=i+Math.imul(B,ee)|0)+Math.imul(I,$)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(M,re)|0,i=(i=i+Math.imul(M,ne)|0)+Math.imul(j,re)|0,o=o+Math.imul(j,ne)|0,n=n+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,ae)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,ae)|0,n=n+Math.imul(O,ue)|0,i=(i=i+Math.imul(O,ce)|0)+Math.imul(k,ue)|0,o=o+Math.imul(k,ce)|0,n=n+Math.imul(w,le)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(_,le)|0,o=o+Math.imul(_,de)|0;var Ae=(c+(n=n+Math.imul(g,pe)|0)|0)+((8191&(i=(i=i+Math.imul(g,be)|0)+Math.imul(m,pe)|0))<<13)|0;c=((o=o+Math.imul(m,be)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(L,J),i=(i=Math.imul(L,Y))+Math.imul(D,J)|0,o=Math.imul(D,Y),n=n+Math.imul(R,$)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(B,re)|0,i=(i=i+Math.imul(B,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(M,oe)|0,i=(i=i+Math.imul(M,ae)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,ae)|0,n=n+Math.imul(S,ue)|0,i=(i=i+Math.imul(S,ce)|0)+Math.imul(A,ue)|0,o=o+Math.imul(A,ce)|0,n=n+Math.imul(O,le)|0,i=(i=i+Math.imul(O,de)|0)+Math.imul(k,le)|0,o=o+Math.imul(k,de)|0;var Ee=(c+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,be)|0)+Math.imul(_,pe)|0))<<13)|0;c=((o=o+Math.imul(_,be)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(L,$),i=(i=Math.imul(L,ee))+Math.imul(D,$)|0,o=Math.imul(D,ee),n=n+Math.imul(R,re)|0,i=(i=i+Math.imul(R,ne)|0)+Math.imul(C,re)|0,o=o+Math.imul(C,ne)|0,n=n+Math.imul(B,oe)|0,i=(i=i+Math.imul(B,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,n=n+Math.imul(M,ue)|0,i=(i=i+Math.imul(M,ce)|0)+Math.imul(j,ue)|0,o=o+Math.imul(j,ce)|0,n=n+Math.imul(S,le)|0,i=(i=i+Math.imul(S,de)|0)+Math.imul(A,le)|0,o=o+Math.imul(A,de)|0;var Me=(c+(n=n+Math.imul(O,pe)|0)|0)+((8191&(i=(i=i+Math.imul(O,be)|0)+Math.imul(k,pe)|0))<<13)|0;c=((o=o+Math.imul(k,be)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(L,re),i=(i=Math.imul(L,ne))+Math.imul(D,re)|0,o=Math.imul(D,ne),n=n+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,ae)|0,n=n+Math.imul(B,ue)|0,i=(i=i+Math.imul(B,ce)|0)+Math.imul(I,ue)|0,o=o+Math.imul(I,ce)|0,n=n+Math.imul(M,le)|0,i=(i=i+Math.imul(M,de)|0)+Math.imul(j,le)|0,o=o+Math.imul(j,de)|0;var je=(c+(n=n+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,be)|0)+Math.imul(A,pe)|0))<<13)|0;c=((o=o+Math.imul(A,be)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(L,oe),i=(i=Math.imul(L,ae))+Math.imul(D,oe)|0,o=Math.imul(D,ae),n=n+Math.imul(R,ue)|0,i=(i=i+Math.imul(R,ce)|0)+Math.imul(C,ue)|0,o=o+Math.imul(C,ce)|0,n=n+Math.imul(B,le)|0,i=(i=i+Math.imul(B,de)|0)+Math.imul(I,le)|0,o=o+Math.imul(I,de)|0;var Te=(c+(n=n+Math.imul(M,pe)|0)|0)+((8191&(i=(i=i+Math.imul(M,be)|0)+Math.imul(j,pe)|0))<<13)|0;c=((o=o+Math.imul(j,be)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(L,ue),i=(i=Math.imul(L,ce))+Math.imul(D,ue)|0,o=Math.imul(D,ce),n=n+Math.imul(R,le)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(C,le)|0,o=o+Math.imul(C,de)|0;var Be=(c+(n=n+Math.imul(B,pe)|0)|0)+((8191&(i=(i=i+Math.imul(B,be)|0)+Math.imul(I,pe)|0))<<13)|0;c=((o=o+Math.imul(I,be)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(L,le),i=(i=Math.imul(L,de))+Math.imul(D,le)|0,o=Math.imul(D,de);var Ie=(c+(n=n+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,be)|0)+Math.imul(C,pe)|0))<<13)|0;c=((o=o+Math.imul(C,be)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863;var Ne=(c+(n=Math.imul(L,pe))|0)+((8191&(i=(i=Math.imul(L,be))+Math.imul(D,pe)|0))<<13)|0;return c=((o=Math.imul(D,be))+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,u[0]=ye,u[1]=ge,u[2]=me,u[3]=ve,u[4]=we,u[5]=_e,u[6]=xe,u[7]=Oe,u[8]=ke,u[9]=Pe,u[10]=Se,u[11]=Ae,u[12]=Ee,u[13]=Me,u[14]=je,u[15]=Te,u[16]=Be,u[17]=Ie,u[18]=Ne,0!==c&&(u[19]=c,r.length++),r};function b(e,t,r){return(new y).mulp(e,t,r)}function y(e,t){this.x=e,this.y=t}Math.imul||(p=h),o.prototype.mulTo=function(e,t){var r,n=this.length+e.length;return r=10===this.length&&10===e.length?p(this,e,t):n<63?h(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,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,u=Math.min(o,t.length-1),c=Math.max(0,o-e.length+1);c<=u;c++){var f=o-c,l=(0|e.words[f])*(0|t.words[c]),d=67108863&l;s=67108863&(d=d+s|0),i+=(a=(a=a+(l/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):b(this,e,t),r},y.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},y.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},y.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a<o;a++)n[a]=t[e[a]],i[a]=r[e[a]]},y.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),f=0;f<i;f+=s)for(var l=u,d=c,h=0;h<a;h++){var p=r[f+h],b=n[f+h],y=r[f+h+a],g=n[f+h+a],m=l*y-d*g;g=l*g+d*y,y=m,r[f+h]=p+y,n[f+h]=b+g,r[f+h+a]=p-y,n[f+h+a]=b-g,h!==s&&(m=u*l-c*d,d=u*d+c*l,l=m)}},y.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},y.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},y.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},y.prototype.convert13b=function(e,t,r,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)r[a]=0;n(0===o),n(0==(-8192&o))},y.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},y.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),c=new Array(n),f=new Array(n),l=new Array(n),d=r.words;d.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,c,n),this.transform(a,o,s,u,n,i),this.transform(c,o,f,l,n,i);for(var h=0;h<n;h++){var p=s[h]*f[h]-u[h]*l[h];u[h]=s[h]*l[h]+u[h]*f[h],s[h]=p}return this.conjugate(s,u,n),this.transform(s,u,d,o,n,i),this.conjugate(d,o,n),this.normalize13b(d,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),b(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){n("number"==typeof e),n(e<67108864);for(var t=0,r=0;r<this.length;r++){var i=(0|this.words[r])*e,o=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=(e.words[n]&1<<i)>>>i}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,u=(0|this.words[t])-s<<r;this.words[t]=u|a,a=s>>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,r){var i;n("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o,u=r;if(i-=a,i=Math.max(0,i),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var f=0;for(c=this.length-1;c>=0&&(0!==f||c>=i);c--){var l=0|this.words[c];this.words[c]=f<<26-o|l>>>o,f=l&s}return u&&0!==f&&(u.words[u.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r||!(this.words[r]&i))},o.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.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 t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,r){var i,o,a=e.length+r;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+s;var u=(0|e.words[i])*t;s=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>26,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!=(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==t){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var f=n.clone()._ishlnsubmul(i,1,u);0===f.negative&&(n=f,s&&(s.words[u]=1));for(var l=u-1;l>=0;l--){var d=67108864*(0|n.words[i.length+l])+(0|n.words[i.length+l-1]);for(d=Math.min(d/a|0,67108863),n._ishlnsubmul(i,d,l);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,l),n.isZero()||(n.negative^=1);s&&(s.words[l]=d)}return s&&s.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.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),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++c;for(var f=r.clone(),l=t.clone();!t.isZero();){for(var d=0,h=1;0==(t.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(f),a.isub(l)),i.iushrn(1),a.iushrn(1);for(var p=0,b=1;0==(r.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(f),u.isub(l)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(u)):(r.isub(t),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,f=1;0==(t.words[0]&f)&&c<26;++c,f<<=1);if(c>0)for(t.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var l=0,d=1;0==(r.words[0]&d)&&l<26;++l,d<<=1);if(l>0)for(r.iushrn(l);l-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.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 i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new O(e)},o.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)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function m(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){m.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){m.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){m.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){m.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function O(e){if("string"==typeof e){var t=o._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){O.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}m.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},m.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=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},m.prototype.split=function(e,t){e.iushrn(this.n,0,t)},m.prototype.imulK=function(e){return e.imul(this.k)},i(v,m),v.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i<n;i++)t.words[i]=e.words[i];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(t.words[t.length++]=o&r,i=10;i<e.length;i++){var a=0|e.words[i];e.words[i-10]=(a&r)<<4|o>>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(w,m),i(_,m),i(x,m),x.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new _;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new x}return g[e]=t,t},O.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},O.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},O.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},O.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},O.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},O.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},O.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},O.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},O.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},O.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},O.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},O.prototype.isqr=function(e){return this.imul(e,e.clone())},O.prototype.sqr=function(e){return this.mul(e,e)},O.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new o(2*f*f).toRed(this);0!==this.pow(f,c).cmp(u);)f.redIAdd(u);for(var l=this.pow(f,i),d=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var b=h,y=0;0!==b.cmp(s);y++)b=b.redSqr();n(y<p);var g=this.pow(l,new o(1).iushln(p-y-1));d=d.redMul(g),l=g.redSqr(),h=h.redMul(l),p=y}return d},O.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},O.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],a=0,s=0,u=t.bitLength()%26;for(0===u&&(u=26),n=t.length-1;n>=0;n--){for(var c=t.words[n],f=u-1;f>=0;f--){var l=c>>f&1;i!==r[0]&&(i=this.sqr(i)),0!==l||0!==a?(a<<=1,a|=l,(4==++s||0===n&&0===f)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=26}return i},O.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},O.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new k(e)},i(k,O),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(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},17499:(e,t,r)=>{"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=r(82192),o=i.keccak224,a=i.keccak384,s=i.keccak256,u=i.keccak512,c=r(35525),f=r(69282),l=r(51675),d=r(89817),h=r(23482),p=r(89509).Buffer;Object.assign(t,r(80884)),t.MAX_INTEGER=new d("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),t.TWO_POW256=new d("10000000000000000000000000000000000000000000000000000000000000000",16),t.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",t.SHA3_NULL_S=t.KECCAK256_NULL_S,t.KECCAK256_NULL=p.from(t.KECCAK256_NULL_S,"hex"),t.SHA3_NULL=t.KECCAK256_NULL,t.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",t.SHA3_RLP_ARRAY_S=t.KECCAK256_RLP_ARRAY_S,t.KECCAK256_RLP_ARRAY=p.from(t.KECCAK256_RLP_ARRAY_S,"hex"),t.SHA3_RLP_ARRAY=t.KECCAK256_RLP_ARRAY,t.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",t.SHA3_RLP_S=t.KECCAK256_RLP_S,t.KECCAK256_RLP=p.from(t.KECCAK256_RLP_S,"hex"),t.SHA3_RLP=t.KECCAK256_RLP,t.BN=d,t.rlp=l,t.secp256k1=c,t.zeros=function(e){return p.allocUnsafe(e).fill(0)},t.zeroAddress=function(){var e=t.zeros(20);return t.bufferToHex(e)},t.setLengthLeft=t.setLength=function(e,r,n){var i=t.zeros(r);return e=t.toBuffer(e),n?e.length<r?(e.copy(i),i):e.slice(0,r):e.length<r?(e.copy(i,r-e.length),i):e.slice(-r)},t.setLengthRight=function(e,r){return t.setLength(e,r,!0)},t.unpad=t.stripZeros=function(e){for(var r=(e=t.stripHexPrefix(e))[0];e.length>0&&"0"===r.toString();)r=(e=e.slice(1))[0];return e},t.toBuffer=function(e){if(!p.isBuffer(e))if(Array.isArray(e))e=p.from(e);else if("string"==typeof e)e=t.isHexString(e)?p.from(t.padToEven(t.stripHexPrefix(e)),"hex"):p.from(e);else if("number"==typeof e)e=t.intToBuffer(e);else if(null==e)e=p.allocUnsafe(0);else if(d.isBN(e))e=e.toArrayLike(p);else{if(!e.toArray)throw new Error("invalid type");e=p.from(e.toArray())}return e},t.bufferToInt=function(e){return new d(t.toBuffer(e)).toNumber()},t.bufferToHex=function(e){return"0x"+(e=t.toBuffer(e)).toString("hex")},t.fromSigned=function(e){return new d(e).fromTwos(256)},t.toUnsigned=function(e){return p.from(e.toTwos(256).toArray())},t.keccak=function(e,r){switch(e=t.toBuffer(e),r||(r=256),r){case 224:return o(e);case 256:return s(e);case 384:return a(e);case 512:return u(e);default:throw new Error("Invald algorithm: keccak"+r)}},t.keccak256=function(e){return t.keccak(e)},t.sha3=t.keccak,t.sha256=function(e){return e=t.toBuffer(e),h("sha256").update(e).digest()},t.ripemd160=function(e,r){e=t.toBuffer(e);var n=h("rmd160").update(e).digest();return!0===r?t.setLength(n,32):n},t.rlphash=function(e){return t.keccak(l.encode(e))},t.isValidPrivate=function(e){return c.privateKeyVerify(e)},t.isValidPublic=function(e,t){return 64===e.length?c.publicKeyVerify(p.concat([p.from([4]),e])):!!t&&c.publicKeyVerify(e)},t.pubToAddress=t.publicToAddress=function(e,r){return e=t.toBuffer(e),r&&64!==e.length&&(e=c.publicKeyConvert(e,!1).slice(1)),f(64===e.length),t.keccak(e).slice(-20)};var b=t.privateToPublic=function(e){return e=t.toBuffer(e),c.publicKeyCreate(e,!1).slice(1)};t.importPublic=function(e){return 64!==(e=t.toBuffer(e)).length&&(e=c.publicKeyConvert(e,!1).slice(1)),e},t.ecsign=function(e,t){var r=c.sign(e,t),n={};return n.r=r.signature.slice(0,32),n.s=r.signature.slice(32,64),n.v=r.recovery+27,n},t.hashPersonalMessage=function(e){var r=t.toBuffer("Ethereum Signed Message:\n"+e.length.toString());return t.keccak(p.concat([r,e]))},t.ecrecover=function(e,r,n,i){var o=p.concat([t.setLength(n,32),t.setLength(i,32)],64),a=r-27;if(0!==a&&1!==a)throw new Error("Invalid signature v value");var s=c.recover(e,o,a);return c.publicKeyConvert(s,!1).slice(1)},t.toRpcSig=function(e,r,n){if(27!==e&&28!==e)throw new Error("Invalid recovery id");return t.bufferToHex(p.concat([t.setLengthLeft(r,32),t.setLengthLeft(n,32),t.toBuffer(e-27)]))},t.fromRpcSig=function(e){if(65!==(e=t.toBuffer(e)).length)throw new Error("Invalid signature length");var r=e[64];return r<27&&(r+=27),{v:r,r:e.slice(0,32),s:e.slice(32,64)}},t.privateToAddress=function(e){return t.publicToAddress(b(e))},t.isValidAddress=function(e){return/^0x[0-9a-fA-F]{40}$/.test(e)},t.isZeroAddress=function(e){return t.zeroAddress()===t.addHexPrefix(e)},t.toChecksumAddress=function(e){e=t.stripHexPrefix(e).toLowerCase();for(var r=t.keccak(e).toString("hex"),n="0x",i=0;i<e.length;i++)parseInt(r[i],16)>=8?n+=e[i].toUpperCase():n+=e[i];return n},t.isValidChecksumAddress=function(e){return t.isValidAddress(e)&&t.toChecksumAddress(e)===e},t.generateAddress=function(e,r){return e=t.toBuffer(e),r=(r=new d(r)).isZero()?null:p.from(r.toArray()),t.rlphash([e,r]).slice(-20)},t.isPrecompiled=function(e){var r=t.unpad(e);return 1===r.length&&r[0]>=1&&r[0]<=8},t.addHexPrefix=function(e){return"string"!=typeof e||t.isHexPrefixed(e)?e:"0x"+e},t.isValidSignature=function(e,t,r,n){var i=new d("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),o=new d("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);return!(32!==t.length||32!==r.length||27!==e&&28!==e||(t=new d(t),r=new d(r),t.isZero()||t.gt(o)||r.isZero()||r.gt(o)||!1===n&&1===new d(r).cmp(i)))},t.baToJSON=function(e){if(p.isBuffer(e))return"0x"+e.toString("hex");if(e instanceof Array){for(var r=[],n=0;n<e.length;n++)r.push(t.baToJSON(e[n]));return r}},t.defineProperties=function(e,r,i){if(e.raw=[],e._fields=[],e.toJSON=function(r){if(r){var n={};return e._fields.forEach((function(t){n[t]="0x"+e[t].toString("hex")})),n}return t.baToJSON(this.raw)},e.serialize=function(){return l.encode(e.raw)},r.forEach((function(r,n){function i(){return e.raw[n]}function o(i){"00"!==(i=t.toBuffer(i)).toString("hex")||r.allowZero||(i=p.allocUnsafe(0)),r.allowLess&&r.length?(i=t.stripZeros(i),f(r.length>=i.length,"The field "+r.name+" must not have more "+r.length+" bytes")):r.allowZero&&0===i.length||!r.length||f(r.length===i.length,"The field "+r.name+" must have byte length of "+r.length),e.raw[n]=i}e._fields.push(r.name),Object.defineProperty(e,r.name,{enumerable:!0,configurable:!0,get:i,set:o}),r.default&&(e[r.name]=r.default),r.alias&&Object.defineProperty(e,r.alias,{enumerable:!1,configurable:!0,set:o,get:i})})),i)if("string"==typeof i&&(i=p.from(t.stripHexPrefix(i),"hex")),p.isBuffer(i)&&(i=l.decode(i)),Array.isArray(i)){if(i.length>e._fields.length)throw new Error("wrong number of fields in data");i.forEach((function(r,n){e[e._fields[n]]=t.toBuffer(r)}))}else{if("object"!==(void 0===i?"undefined":n(i)))throw new Error("invalid data");var o=Object.keys(i);r.forEach((function(t){-1!==o.indexOf(t.name)&&(e[t.name]=i[t.name]),-1!==o.indexOf(t.alias)&&(e[t.alias]=i[t.alias])}))}}},35525:(e,t,r)=>{"use strict";var n=r(48764).Buffer,i=r(95053),o=r(33780),a=r(1029),s=function(e){return 32===e.length&&i.privateKeyVerify(Uint8Array.from(e))};e.exports={privateKeyVerify:s,privateKeyExport:function(e,t){if(32!==e.length)throw new RangeError("private key length is invalid");var r=o.privateKeyExport(e,t);return a.privateKeyExport(e,r,t)},privateKeyImport:function(e){if(null!==(e=a.privateKeyImport(e))&&32===e.length&&s(e))return e;throw new Error("couldn't import from DER format")},privateKeyNegate:function(e){return n.from(i.privateKeyNegate(Uint8Array.from(e)))},privateKeyModInverse:function(e){if(32!==e.length)throw new Error("private key length is invalid");return n.from(o.privateKeyModInverse(Uint8Array.from(e)))},privateKeyTweakAdd:function(e,t){return n.from(i.privateKeyTweakAdd(Uint8Array.from(e),t))},privateKeyTweakMul:function(e,t){return n.from(i.privateKeyTweakMul(Uint8Array.from(e),Uint8Array.from(t)))},publicKeyCreate:function(e,t){return n.from(i.publicKeyCreate(Uint8Array.from(e),t))},publicKeyConvert:function(e,t){return n.from(i.publicKeyConvert(Uint8Array.from(e),t))},publicKeyVerify:function(e){return(33===e.length||65===e.length)&&i.publicKeyVerify(Uint8Array.from(e))},publicKeyTweakAdd:function(e,t,r){return n.from(i.publicKeyTweakAdd(Uint8Array.from(e),Uint8Array.from(t),r))},publicKeyTweakMul:function(e,t,r){return n.from(i.publicKeyTweakMul(Uint8Array.from(e),Uint8Array.from(t),r))},publicKeyCombine:function(e,t){var r=[];return e.forEach((function(e){r.push(Uint8Array.from(e))})),n.from(i.publicKeyCombine(r,t))},signatureNormalize:function(e){return n.from(i.signatureNormalize(Uint8Array.from(e)))},signatureExport:function(e){return n.from(i.signatureExport(Uint8Array.from(e)))},signatureImport:function(e){return n.from(i.signatureImport(Uint8Array.from(e)))},signatureImportLax:function(e){if(0===e.length)throw new RangeError("signature length is invalid");var t=a.signatureImportLax(e);if(null===t)throw new Error("couldn't parse DER signature");return o.signatureImport(t)},sign:function(e,t,r){if(null===r)throw new TypeError("options should be an Object");var o=void 0;if(r){if(o={},null===r.data)throw new TypeError("options.data should be a Buffer");if(r.data){if(32!==r.data.length)throw new RangeError("options.data length is invalid");o.data=new Uint8Array(r.data)}if(null===r.noncefn)throw new TypeError("options.noncefn should be a Function");r.noncefn&&(o.noncefn=function(e,t,i,o,a){var s=null!=i?n.from(i):null,u=null!=o?n.from(o):null,c=n.from("");return r.noncefn&&(c=r.noncefn(n.from(e),n.from(t),s,u,a)),Uint8Array.from(c)})}var a=i.ecdsaSign(Uint8Array.from(e),Uint8Array.from(t),o);return{signature:n.from(a.signature),recovery:a.recid}},verify:function(e,t,r){return i.ecdsaVerify(Uint8Array.from(t),Uint8Array.from(e),r)},recover:function(e,t,r,o){return n.from(i.ecdsaRecover(Uint8Array.from(t),r,Uint8Array.from(e),o))},ecdh:function(e,t){return n.from(i.ecdh(Uint8Array.from(e),Uint8Array.from(t),{}))},ecdhUnsafe:function(e,t,r){if(33!==e.length&&65!==e.length)throw new RangeError("public key length is invalid");if(32!==t.length)throw new RangeError("private key length is invalid");return n.from(o.ecdhUnsafe(Uint8Array.from(e),Uint8Array.from(t),r))}}},1029:(e,t,r)=>{"use strict";var n=r(48764).Buffer,i=n.from([48,129,211,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,133,48,129,130,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,33,2,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,36,3,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),o=n.from([48,130,1,19,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,165,48,129,162,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,65,4,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,72,58,218,119,38,163,196,101,93,164,251,252,14,17,8,168,253,23,180,72,166,133,84,25,156,71,208,143,251,16,212,184,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,68,3,66,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);t.privateKeyExport=function(e,t,r){var a=n.from(r?i:o);return e.copy(a,r?8:9),t.copy(a,r?181:214),a},t.privateKeyImport=function(e){var t=e.length,r=0;if(t<r+1||48!==e[r])return null;if(t<(r+=1)+1||!(128&e[r]))return null;var n=127&e[r];if(n<1||n>2)return null;if(t<(r+=1)+n)return null;var i=e[r+n-1]|(n>1?e[r+n-2]<<8:0);return t<(r+=n)+i||t<r+3||2!==e[r]||1!==e[r+1]||1!==e[r+2]||t<(r+=3)+2||4!==e[r]||e[r+1]>32||t<r+2+e[r+1]?null:e.slice(r+2,r+2+e[r+1])},t.signatureImportLax=function(e){var t=n.alloc(32,0),r=n.alloc(32,0),i=e.length,o=0;if(48!==e[o++])return null;var a=e[o++];if(128&a&&(o+=a-128)>i)return null;if(2!==e[o++])return null;var s=e[o++];if(128&s){if(o+(a=s-128)>i)return null;for(;a>0&&0===e[o];o+=1,a-=1);for(s=0;a>0;o+=1,a-=1)s=(s<<8)+e[o]}if(s>i-o)return null;var u=o;if(o+=s,2!==e[o++])return null;var c=e[o++];if(128&c){if(o+(a=c-128)>i)return null;for(;a>0&&0===e[o];o+=1,a-=1);for(c=0;a>0;o+=1,a-=1)c=(c<<8)+e[o]}if(c>i-o)return null;var f=o;for(o+=c;s>0&&0===e[u];s-=1,u+=1);if(s>32)return null;var l=e.slice(u,u+s);for(l.copy(t,32-l.length);c>0&&0===e[f];c-=1,f+=1);if(c>32)return null;var d=e.slice(f,f+c);return d.copy(r,32-d.length),{r:t,s:r}}},33780:(e,t,r)=>{"use strict";var n=r(48764).Buffer,i=r(89817),o=new(0,r(86266).ec)("secp256k1"),a=o.curve;t.privateKeyExport=function(e,t){var r=new i(e);if(r.ucmp(a.n)>=0)throw new Error("couldn't export to DER format");var n=o.g.mul(r);return s(n.getX(),n.getY(),t)},t.privateKeyModInverse=function(e){var t=new i(e);if(t.ucmp(a.n)>=0||t.isZero())throw new Error("private key range is invalid");return t.invm(a.n).toArrayLike(n,"be",32)},t.signatureImport=function(e){var t=new i(e.r);t.ucmp(a.n)>=0&&(t=new i(0));var r=new i(e.s);return r.ucmp(a.n)>=0&&(r=new i(0)),n.concat([t.toArrayLike(n,"be",32),r.toArrayLike(n,"be",32)])},t.ecdhUnsafe=function(e,t,r){var n=o.keyFromPublic(e),u=new i(t);if(u.ucmp(a.n)>=0||u.isZero())throw new Error("scalar was invalid (zero or overflow)");var c=n.pub.mul(u);return s(c.getX(),c.getY(),r)};var s=function(e,t,r){var i=void 0;return r?((i=n.alloc(33))[0]=t.isOdd()?3:2,e.toArrayLike(n,"be",32).copy(i,1)):((i=n.alloc(65))[0]=4,e.toArrayLike(n,"be",32).copy(i,1),t.toArrayLike(n,"be",32).copy(i,33)),i}},75443:(e,t,r)=>{"use strict";var n=r(48764).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.createHashFunction=function(e){return function(t){var r=e();return r.update(t),n.from(r.digest())}}},82192:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(75443),i=r(95811);t.keccak224=n.createHashFunction((function(){return i("keccak224")})),t.keccak256=n.createHashFunction((function(){return i("keccak256")})),t.keccak384=n.createHashFunction((function(){return i("keccak384")})),t.keccak512=n.createHashFunction((function(){return i("keccak512")}))},53242:(e,t,r)=>{e.exports=r(39203)(r(25166))},25166:(e,t,r)=>{const n=new(0,r(86266).ec)("secp256k1"),i=n.curve,o=i.n.constructor;function a(e){const t=e[0];switch(t){case 2:case 3:return 33!==e.length?null:function(e,t){let r=new o(t);if(r.cmp(i.p)>=0)return null;r=r.toRed(i.red);let a=r.redSqr().redIMul(r).redIAdd(i.b).redSqrt();return 3===e!==a.isOdd()&&(a=a.redNeg()),n.keyPair({pub:{x:r,y:a}})}(t,e.subarray(1,33));case 4:case 6:case 7:return 65!==e.length?null:function(e,t,r){let a=new o(t),s=new o(r);if(a.cmp(i.p)>=0||s.cmp(i.p)>=0)return null;if(a=a.toRed(i.red),s=s.toRed(i.red),(6===e||7===e)&&s.isOdd()!==(7===e))return null;const u=a.redSqr().redIMul(a);return s.redSqr().redISub(u.redIAdd(i.b)).isZero()?n.keyPair({pub:{x:a,y:s}}):null}(t,e.subarray(1,33),e.subarray(33,65));default:return null}}function s(e,t){const r=t.encode(null,33===e.length);for(let t=0;t<e.length;++t)e[t]=r[t]}e.exports={contextRandomize:()=>0,privateKeyVerify(e){const t=new o(e);return t.cmp(i.n)<0&&!t.isZero()?0:1},privateKeyNegate(e){const t=new o(e),r=i.n.sub(t).umod(i.n).toArrayLike(Uint8Array,"be",32);return e.set(r),0},privateKeyTweakAdd(e,t){const r=new o(t);if(r.cmp(i.n)>=0)return 1;if(r.iadd(new o(e)),r.cmp(i.n)>=0&&r.isub(i.n),r.isZero())return 1;const n=r.toArrayLike(Uint8Array,"be",32);return e.set(n),0},privateKeyTweakMul(e,t){let r=new o(t);if(r.cmp(i.n)>=0||r.isZero())return 1;r.imul(new o(e)),r.cmp(i.n)>=0&&(r=r.umod(i.n));const n=r.toArrayLike(Uint8Array,"be",32);return e.set(n),0},publicKeyVerify:e=>null===a(e)?1:0,publicKeyCreate(e,t){const r=new o(t);return r.cmp(i.n)>=0||r.isZero()?1:(s(e,n.keyFromPrivate(t).getPublic()),0)},publicKeyConvert(e,t){const r=a(t);return null===r?1:(s(e,r.getPublic()),0)},publicKeyNegate(e,t){const r=a(t);if(null===r)return 1;const n=r.getPublic();return n.y=n.y.redNeg(),s(e,n),0},publicKeyCombine(e,t){const r=new Array(t.length);for(let e=0;e<t.length;++e)if(r[e]=a(t[e]),null===r[e])return 1;let n=r[0].getPublic();for(let e=1;e<r.length;++e)n=n.add(r[e].pub);return n.isInfinity()?2:(s(e,n),0)},publicKeyTweakAdd(e,t,r){const n=a(t);if(null===n)return 1;if((r=new o(r)).cmp(i.n)>=0)return 2;const u=n.getPublic().add(i.g.mul(r));return u.isInfinity()?2:(s(e,u),0)},publicKeyTweakMul(e,t,r){const n=a(t);return null===n?1:(r=new o(r)).cmp(i.n)>=0||r.isZero()?2:(s(e,n.getPublic().mul(r)),0)},signatureNormalize(e){const t=new o(e.subarray(0,32)),r=new o(e.subarray(32,64));return t.cmp(i.n)>=0||r.cmp(i.n)>=0?1:(1===r.cmp(n.nh)&&e.set(i.n.sub(r).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport(e,t){const r=t.subarray(0,32),n=t.subarray(32,64);if(new o(r).cmp(i.n)>=0)return 1;if(new o(n).cmp(i.n)>=0)return 1;const{output:a}=e;let s=a.subarray(4,37);s[0]=0,s.set(r,1);let u=33,c=0;for(;u>1&&0===s[c]&&!(128&s[c+1]);--u,++c);if(s=s.subarray(c),128&s[0])return 1;if(u>1&&0===s[0]&&!(128&s[1]))return 1;let f=a.subarray(39,72);f[0]=0,f.set(n,1);let l=33,d=0;for(;l>1&&0===f[d]&&!(128&f[d+1]);--l,++d);return f=f.subarray(d),128&f[0]||l>1&&0===f[0]&&!(128&f[1])?1:(e.outputlen=6+u+l,a[0]=48,a[1]=e.outputlen-2,a[2]=2,a[3]=s.length,a.set(s,4),a[4+u]=2,a[5+u]=f.length,a.set(f,6+u),0)},signatureImport(e,t){if(t.length<8)return 1;if(t.length>72)return 1;if(48!==t[0])return 1;if(t[1]!==t.length-2)return 1;if(2!==t[2])return 1;const r=t[3];if(0===r)return 1;if(5+r>=t.length)return 1;if(2!==t[4+r])return 1;const n=t[5+r];if(0===n)return 1;if(6+r+n!==t.length)return 1;if(128&t[4])return 1;if(r>1&&0===t[4]&&!(128&t[5]))return 1;if(128&t[r+6])return 1;if(n>1&&0===t[r+6]&&!(128&t[r+7]))return 1;let a=t.subarray(4,4+r);if(33===a.length&&0===a[0]&&(a=a.subarray(1)),a.length>32)return 1;let s=t.subarray(6+r);if(33===s.length&&0===s[0]&&(s=s.slice(1)),s.length>32)throw new Error("S length is too long");let u=new o(a);u.cmp(i.n)>=0&&(u=new o(0));let c=new o(t.subarray(6+r));return c.cmp(i.n)>=0&&(c=new o(0)),e.set(u.toArrayLike(Uint8Array,"be",32),0),e.set(c.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign(e,t,r,a,s){if(s){const e=s;s=n=>{const i=e(t,r,null,a,n);if(!(i instanceof Uint8Array&&32===i.length))throw new Error("This is the way");return new o(i)}}const u=new o(r);if(u.cmp(i.n)>=0||u.isZero())return 1;let c;try{c=n.sign(t,r,{canonical:!0,k:s,pers:a})}catch(e){return 1}return e.signature.set(c.r.toArrayLike(Uint8Array,"be",32),0),e.signature.set(c.s.toArrayLike(Uint8Array,"be",32),32),e.recid=c.recoveryParam,0},ecdsaVerify(e,t,r){const s={r:e.subarray(0,32),s:e.subarray(32,64)},u=new o(s.r),c=new o(s.s);if(u.cmp(i.n)>=0||c.cmp(i.n)>=0)return 1;if(1===c.cmp(n.nh)||u.isZero()||c.isZero())return 3;const f=a(r);if(null===f)return 2;const l=f.getPublic();return n.verify(t,s,l)?0:3},ecdsaRecover(e,t,r,a){const u={r:t.slice(0,32),s:t.slice(32,64)},c=new o(u.r),f=new o(u.s);if(c.cmp(i.n)>=0||f.cmp(i.n)>=0)return 1;if(c.isZero()||f.isZero())return 2;let l;try{l=n.recoverPubKey(a,u,r)}catch(e){return 2}return s(e,l),0},ecdh(e,t,r,s,u,c,f){const l=a(t);if(null===l)return 1;const d=new o(r);if(d.cmp(i.n)>=0||d.isZero())return 2;const h=l.getPublic().mul(d);if(void 0===u){const t=h.encode(null,!0),r=n.hash().update(t).digest();for(let t=0;t<32;++t)e[t]=r[t]}else{c||(c=new Uint8Array(32));const t=h.getX().toArray("be",32);for(let e=0;e<32;++e)c[e]=t[e];f||(f=new Uint8Array(32));const r=h.getY().toArray("be",32);for(let e=0;e<32;++e)f[e]=r[e];const n=u(c,f,s);if(!(n instanceof Uint8Array&&n.length===e.length))return 2;e.set(n)}return 0}}},39203:e=>{const t="Impossible case. Please create issue.",r="The tweak was out of range or the resulted private key is invalid",n="The tweak was out of range or equal to zero",i="Public Key could not be parsed",o="Public Key serialization error",a="Signature could not be parsed";function s(e,t){if(!e)throw new Error(t)}function u(e,t,r){if(s(t instanceof Uint8Array,`Expected ${e} to be an Uint8Array`),void 0!==r)if(Array.isArray(r)){const n=`Expected ${e} to be an Uint8Array with length [${r.join(", ")}]`;s(r.includes(t.length),n)}else{const n=`Expected ${e} to be an Uint8Array with length ${r}`;s(t.length===r,n)}}function c(e){s("Boolean"===l(e),"Expected compressed to be a Boolean")}function f(e=(e=>new Uint8Array(e)),t){return"function"==typeof e&&(e=e(t)),u("output",e,t),e}function l(e){return Object.prototype.toString.call(e).slice(8,-1)}e.exports=e=>({contextRandomize(t){if(s(null===t||t instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),null!==t&&u("seed",t,32),1===e.contextRandomize(t))throw new Error("Unknow error on context randomization")},privateKeyVerify:t=>(u("private key",t,32),0===e.privateKeyVerify(t)),privateKeyNegate(r){switch(u("private key",r,32),e.privateKeyNegate(r)){case 0:return r;case 1:throw new Error(t)}},privateKeyTweakAdd(t,n){switch(u("private key",t,32),u("tweak",n,32),e.privateKeyTweakAdd(t,n)){case 0:return t;case 1:throw new Error(r)}},privateKeyTweakMul(t,r){switch(u("private key",t,32),u("tweak",r,32),e.privateKeyTweakMul(t,r)){case 0:return t;case 1:throw new Error(n)}},publicKeyVerify:t=>(u("public key",t,[33,65]),0===e.publicKeyVerify(t)),publicKeyCreate(t,r=!0,n){switch(u("private key",t,32),c(r),n=f(n,r?33:65),e.publicKeyCreate(n,t)){case 0:return n;case 1:throw new Error("Private Key is invalid");case 2:throw new Error(o)}},publicKeyConvert(t,r=!0,n){switch(u("public key",t,[33,65]),c(r),n=f(n,r?33:65),e.publicKeyConvert(n,t)){case 0:return n;case 1:throw new Error(i);case 2:throw new Error(o)}},publicKeyNegate(r,n=!0,a){switch(u("public key",r,[33,65]),c(n),a=f(a,n?33:65),e.publicKeyNegate(a,r)){case 0:return a;case 1:throw new Error(i);case 2:throw new Error(t);case 3:throw new Error(o)}},publicKeyCombine(t,r=!0,n){s(Array.isArray(t),"Expected public keys to be an Array"),s(t.length>0,"Expected public keys array will have more than zero items");for(const e of t)u("public key",e,[33,65]);switch(c(r),n=f(n,r?33:65),e.publicKeyCombine(n,t)){case 0:return n;case 1:throw new Error(i);case 2:throw new Error("The sum of the public keys is not valid");case 3:throw new Error(o)}},publicKeyTweakAdd(t,n,o=!0,a){switch(u("public key",t,[33,65]),u("tweak",n,32),c(o),a=f(a,o?33:65),e.publicKeyTweakAdd(a,t,n)){case 0:return a;case 1:throw new Error(i);case 2:throw new Error(r)}},publicKeyTweakMul(t,r,o=!0,a){switch(u("public key",t,[33,65]),u("tweak",r,32),c(o),a=f(a,o?33:65),e.publicKeyTweakMul(a,t,r)){case 0:return a;case 1:throw new Error(i);case 2:throw new Error(n)}},signatureNormalize(t){switch(u("signature",t,64),e.signatureNormalize(t)){case 0:return t;case 1:throw new Error(a)}},signatureExport(r,n){u("signature",r,64);const i={output:n=f(n,72),outputlen:72};switch(e.signatureExport(i,r)){case 0:return n.slice(0,i.outputlen);case 1:throw new Error(a);case 2:throw new Error(t)}},signatureImport(r,n){switch(u("signature",r),n=f(n,64),e.signatureImport(n,r)){case 0:return n;case 1:throw new Error(a);case 2:throw new Error(t)}},ecdsaSign(r,n,i={},o){u("message",r,32),u("private key",n,32),s("Object"===l(i),"Expected options to be an Object"),void 0!==i.data&&u("options.data",i.data),void 0!==i.noncefn&&s("Function"===l(i.noncefn),"Expected options.noncefn to be a Function");const a={signature:o=f(o,64),recid:null};switch(e.ecdsaSign(a,r,n,i.data,i.noncefn)){case 0:return a;case 1:throw new Error("The nonce generation function failed, or the private key was invalid");case 2:throw new Error(t)}},ecdsaVerify(t,r,n){switch(u("signature",t,64),u("message",r,32),u("public key",n,[33,65]),e.ecdsaVerify(t,r,n)){case 0:return!0;case 3:return!1;case 1:throw new Error(a);case 2:throw new Error(i)}},ecdsaRecover(r,n,i,o=!0,d){switch(u("signature",r,64),s("Number"===l(n)&&n>=0&&n<=3,"Expected recovery id to be a Number within interval [0, 3]"),u("message",i,32),c(o),d=f(d,o?33:65),e.ecdsaRecover(d,r,n,i)){case 0:return d;case 1:throw new Error(a);case 2:throw new Error("Public key could not be recover");case 3:throw new Error(t)}},ecdh(t,r,n={},o){switch(u("public key",t,[33,65]),u("private key",r,32),s("Object"===l(n),"Expected options to be an Object"),void 0!==n.data&&u("options.data",n.data),void 0!==n.hashfn?(s("Function"===l(n.hashfn),"Expected options.hashfn to be a Function"),void 0!==n.xbuf&&u("options.xbuf",n.xbuf,32),void 0!==n.ybuf&&u("options.ybuf",n.ybuf,32),u("output",o)):o=f(o,32),e.ecdh(o,t,r,n.data,n.hashfn,n.xbuf,n.ybuf)){case 0:return o;case 1:throw new Error(i);case 2:throw new Error("Scalar was invalid (zero or overflow)")}}})},90472:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(61798);t.getRandomBytes=function(e){return new Promise((function(t,r){n(e,(function(e,n){e?r(e):t(n)}))}))},t.getRandomBytesSync=function(e){return n(e)}},95053:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(53242),a=r(90472);t.createPrivateKey=function(){return n(this,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:return[4,a.getRandomBytes(32)];case 1:return e=t.sent(),o.privateKeyVerify(e)?[2,e]:[3,0];case 2:return[2]}}))}))},t.createPrivateKeySync=function(){for(;;){var e=a.getRandomBytesSync(32);if(o.privateKeyVerify(e))return e}},function(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}(r(53242))},68142:(e,t,r)=>{e.exports=r(75437)},75437:(e,t,r)=>{var n=r(48764).Buffer;const i=r(86589),o=r(91609);var a=function(){};function s(e){return e.startsWith("int[")?"int256"+e.slice(3):"int"===e?"int256":e.startsWith("uint[")?"uint256"+e.slice(4):"uint"===e?"uint256":e.startsWith("fixed[")?"fixed128x128"+e.slice(5):"fixed"===e?"fixed128x128":e.startsWith("ufixed[")?"ufixed128x128"+e.slice(6):"ufixed"===e?"ufixed128x128":e}function u(e){return parseInt(/^\D+(\d+)$/.exec(e)[1],10)}function c(e){var t=/^\D+(\d+)x(\d+)$/.exec(e);return[parseInt(t[1],10),parseInt(t[2],10)]}function f(e){var t=e.match(/(.*)\[(.*?)\]$/);return t?""===t[2]?"dynamic":parseInt(t[2],10):null}function l(e){var t=typeof e;if("string"===t)return i.isHexPrefixed(e)?new o(i.stripHexPrefix(e),16):new o(e,10);if("number"===t)return new o(e);if(e.toArray)return e;throw new Error("Argument is not a number")}function d(e){var t=/^(\w+)\((.*)\)$/.exec(e);if(3!==t.length)throw new Error("Invalid method signature");var r=/^(.+)\):\((.+)$/.exec(t[2]);if(null!==r&&3===r.length)return{method:t[1],args:r[1].split(","),retargs:r[2].split(",")};var n=t[2].split(",");return 1===n.length&&""===n[0]&&(n=[]),{method:t[1],args:n}}function h(e,t){var r,a,s,d;if("address"===e)return h("uint160",l(t));if("bool"===e)return h("uint8",t?1:0);if("string"===e)return h("bytes",n.from(t,"utf8"));if(g(e)){if(void 0===t.length)throw new Error("Not an array?");if("dynamic"!==(r=f(e))&&0!==r&&t.length>r)throw new Error("Elements exceed array size: "+r);for(d in s=[],e=e.slice(0,e.lastIndexOf("[")),"string"==typeof t&&(t=JSON.parse(t)),t)s.push(h(e,t[d]));if("dynamic"===r){var p=h("uint256",t.length);s.unshift(p)}return n.concat(s)}if("bytes"===e)return t=n.from(t),s=n.concat([h("uint256",t.length),t]),t.length%32!=0&&(s=n.concat([s,i.zeros(32-t.length%32)])),s;if(e.startsWith("bytes")){if((r=u(e))<1||r>32)throw new Error("Invalid bytes<N> width: "+r);return i.setLengthRight(t,32)}if(e.startsWith("uint")){if((r=u(e))%8||r<8||r>256)throw new Error("Invalid uint<N> width: "+r);if((a=l(t)).bitLength()>r)throw new Error("Supplied uint exceeds width: "+r+" vs "+a.bitLength());if(a<0)throw new Error("Supplied uint is negative");return a.toArrayLike(n,"be",32)}if(e.startsWith("int")){if((r=u(e))%8||r<8||r>256)throw new Error("Invalid int<N> width: "+r);if((a=l(t)).bitLength()>r)throw new Error("Supplied int exceeds width: "+r+" vs "+a.bitLength());return a.toTwos(256).toArrayLike(n,"be",32)}if(e.startsWith("ufixed")){if(r=c(e),(a=l(t))<0)throw new Error("Supplied ufixed is negative");return h("uint256",a.mul(new o(2).pow(new o(r[1]))))}if(e.startsWith("fixed"))return r=c(e),h("int256",l(t).mul(new o(2).pow(new o(r[1]))));throw new Error("Unsupported or invalid type: "+e)}function p(e,t,r){var i,a,s,u;if("string"==typeof e&&(e=b(e)),"address"===e.name)return p(e.rawType,t,r).toArrayLike(n,"be",20).toString("hex");if("bool"===e.name)return p(e.rawType,t,r).toString()===new o(1).toString();if("string"===e.name){var c=p(e.rawType,t,r);return n.from(c,"utf8").toString()}if(e.isArray){for(s=[],i=e.size,"dynamic"===e.size&&(r=p("uint256",t,r).toNumber(),i=p("uint256",t,r).toNumber(),r+=32),u=0;u<i;u++){var f=p(e.subArray,t,r);s.push(f),r+=e.subArray.memoryUsage}return s}if("bytes"===e.name)return r=p("uint256",t,r).toNumber(),i=p("uint256",t,r).toNumber(),t.slice(r+32,r+32+i);if(e.name.startsWith("bytes"))return t.slice(r,r+e.size);if(e.name.startsWith("uint")){if((a=new o(t.slice(r,r+32),16,"be")).bitLength()>e.size)throw new Error("Decoded int exceeds width: "+e.size+" vs "+a.bitLength());return a}if(e.name.startsWith("int")){if((a=new o(t.slice(r,r+32),16,"be").fromTwos(256)).bitLength()>e.size)throw new Error("Decoded uint exceeds width: "+e.size+" vs "+a.bitLength());return a}if(e.name.startsWith("ufixed")){if(i=new o(2).pow(new o(e.size[1])),!(a=p("uint256",t,r)).mod(i).isZero())throw new Error("Decimals not supported yet");return a.div(i)}if(e.name.startsWith("fixed")){if(i=new o(2).pow(new o(e.size[1])),!(a=p("int256",t,r)).mod(i).isZero())throw new Error("Decimals not supported yet");return a.div(i)}throw new Error("Unsupported or invalid type: "+e.name)}function b(e){var t,r,n;if(g(e)){t=f(e);var i=e.slice(0,e.lastIndexOf("["));return i=b(i),{isArray:!0,name:e,size:t,memoryUsage:"dynamic"===t?32:i.memoryUsage*t,subArray:i}}switch(e){case"address":n="uint160";break;case"bool":n="uint8";break;case"string":n="bytes"}if(r={rawType:n,name:e,memoryUsage:32},e.startsWith("bytes")&&"bytes"!==e||e.startsWith("uint")||e.startsWith("int")?r.size=u(e):(e.startsWith("ufixed")||e.startsWith("fixed"))&&(r.size=c(e)),e.startsWith("bytes")&&"bytes"!==e&&(r.size<1||r.size>32))throw new Error("Invalid bytes<N> width: "+r.size);if((e.startsWith("uint")||e.startsWith("int"))&&(r.size%8||r.size<8||r.size>256))throw new Error("Invalid int/uint<N> width: "+r.size);return r}function y(e){return"string"===e||"bytes"===e||"dynamic"===f(e)}function g(e){return e.lastIndexOf("]")===e.length-1}function m(e,t){return e.startsWith("address")||e.startsWith("bytes")?"0x"+t.toString("hex"):t.toString()}a.eventID=function(e,t){var r=e+"("+t.map(s).join(",")+")";return i.keccak256(n.from(r))},a.methodID=function(e,t){return a.eventID(e,t).slice(0,4)},a.rawEncode=function(e,t){var r=[],i=[],o=0;e.forEach((function(e){if(g(e)){var t=f(e);o+="dynamic"!==t?32*t:32}else o+=32}));for(var a=0;a<e.length;a++){var u=s(e[a]),c=h(u,t[a]);y(u)?(r.push(h("uint256",o)),i.push(c),o+=c.length):r.push(c)}return n.concat(r.concat(i))},a.rawDecode=function(e,t){var r=[];t=n.from(t);for(var i=0,o=0;o<e.length;o++){var a=b(s(e[o])),u=p(a,t,i);i+=a.memoryUsage,r.push(u)}return r},a.simpleEncode=function(e){var t=Array.prototype.slice.call(arguments).slice(1),r=d(e);if(t.length!==r.args.length)throw new Error("Argument count mismatch");return n.concat([a.methodID(r.method,r.args),a.rawEncode(r.args,t)])},a.simpleDecode=function(e,t){var r=d(e);if(!r.retargs)throw new Error("No return values in method");return a.rawDecode(r.retargs,t)},a.stringify=function(e,t){var r=[];for(var n in e){var i=e[n],o=t[n];o=/^[^\[]+\[.*\]$/.test(i)?o.map((function(e){return m(i,e)})).join(", "):m(i,o),r.push(o)}return r},a.solidityHexValue=function(e,t,r){var o,s;if(g(e)){var c=e.replace(/\[.*?\]/,"");if(!g(c)){var d=f(e);if("dynamic"!==d&&0!==d&&t.length>d)throw new Error("Elements exceed array size: "+d)}var h=t.map((function(e){return a.solidityHexValue(c,e,256)}));return n.concat(h)}if("bytes"===e)return t;if("string"===e)return n.from(t,"utf8");if("bool"===e){r=r||8;var p=Array(r/4).join("0");return n.from(t?p+"1":p+"0","hex")}if("address"===e){var b=20;return r&&(b=r/8),i.setLengthLeft(t,b)}if(e.startsWith("bytes")){if((o=u(e))<1||o>32)throw new Error("Invalid bytes<N> width: "+o);return i.setLengthRight(t,o)}if(e.startsWith("uint")){if((o=u(e))%8||o<8||o>256)throw new Error("Invalid uint<N> width: "+o);if((s=l(t)).bitLength()>o)throw new Error("Supplied uint exceeds width: "+o+" vs "+s.bitLength());return r=r||o,s.toArrayLike(n,"be",r/8)}if(e.startsWith("int")){if((o=u(e))%8||o<8||o>256)throw new Error("Invalid int<N> width: "+o);if((s=l(t)).bitLength()>o)throw new Error("Supplied int exceeds width: "+o+" vs "+s.bitLength());return r=r||o,s.toTwos(o).toArrayLike(n,"be",r/8)}throw new Error("Unsupported or invalid type: "+e)},a.solidityPack=function(e,t){if(e.length!==t.length)throw new Error("Number of types are not matching the values");for(var r=[],i=0;i<e.length;i++){var o=s(e[i]),u=t[i];r.push(a.solidityHexValue(o,u,null))}return n.concat(r)},a.soliditySHA3=function(e,t){return i.keccak256(a.solidityPack(e,t))},a.soliditySHA256=function(e,t){return i.sha256(a.solidityPack(e,t))},a.solidityRIPEMD160=function(e,t){return i.ripemd160(a.solidityPack(e,t),!0)},a.fromSerpent=function(e){for(var t,r=[],n=0;n<e.length;n++){var i=e[n];if("s"===i)r.push("bytes");else if("b"===i){for(var o="bytes",a=n+1;a<e.length&&(t=e[a])>="0"&&t<="9";)o+=e[a]-"0",a++;n=a-1,r.push(o)}else if("i"===i)r.push("int256");else{if("a"!==i)throw new Error("Unsupported or invalid type: "+i);r.push("int256[]")}}return r},a.toSerpent=function(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if("bytes"===n)t.push("s");else if(n.startsWith("bytes"))t.push("b"+u(n));else if("int256"===n)t.push("i");else{if("int256[]"!==n)throw new Error("Unsupported or invalid type: "+n);t.push("a")}}return t.join("")},e.exports=a},91609:function(e,t,r){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(40127).Buffer}catch(e){}function s(e,t){var r=e.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function u(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function c(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a<o;a++){var s=e.charCodeAt(a)-48;i*=n,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===r)for(i=e.length-1,o=0;i>=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<e.length;i+=3)a=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,a=0;if("be"===r)for(n=e.length-1;n>=t;n-=2)i=u(e,t,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(e.length-t)%2==0?t+1:t;n<e.length;n+=2)i=u(e,t,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,u=0,f=r;f<s;f+=n)u=c(e,f,f+n,t),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var l=1;for(u=c(e,f,e.length,t),f=0;f<a;f++)l*=t;this.imuln(l),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[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 h(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var f=u>>>26,l=67108863&u,d=Math.min(c,t.length-1),h=Math.max(0,c-e.length+1);h<=d;h++){var p=c-h|0;f+=(a=(i=0|e.words[p])*(o=0|t.words[h])+l)/67108864|0,l=67108863&a}r.words[c]=0|l,u=0|f}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);r=0!=(o=s>>>24-i&16777215)||a!==this.length-1?f[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var c=l[e],h=d[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(h).toString(e);r=(p=p.idivn(h)).isZero()?b+r:f[c-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var 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},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n(void 0!==a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===t,c=new e(o),f=this.clone();if(u){for(s=0;!f.isZero();s++)a=f.andln(255),f.iushrn(8),c[s]=a;for(;s<o;s++)c[s]=0}else{for(s=0;s<o-i;s++)c[s]=0;for(s=0;!f.isZero();s++)a=f.andln(255),f.iushrn(8),c[o-s-1]=a}return c},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=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},o.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},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},o.prototype.ior=function(e){return n(0==(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return n(0==(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return n(0==(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.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;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.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 r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a<n.length;a++)o=(t=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&t;for(;0!==o&&a<r.length;a++)o=(t=(0|r.words[a])+o)>>26,this.words[a]=67108863&t;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,r){var n,i,o,a=e.words,s=t.words,u=r.words,c=0,f=0|a[0],l=8191&f,d=f>>>13,h=0|a[1],p=8191&h,b=h>>>13,y=0|a[2],g=8191&y,m=y>>>13,v=0|a[3],w=8191&v,_=v>>>13,x=0|a[4],O=8191&x,k=x>>>13,P=0|a[5],S=8191&P,A=P>>>13,E=0|a[6],M=8191&E,j=E>>>13,T=0|a[7],B=8191&T,I=T>>>13,N=0|a[8],R=8191&N,C=N>>>13,U=0|a[9],L=8191&U,D=U>>>13,H=0|s[0],F=8191&H,V=H>>>13,z=0|s[1],q=8191&z,K=z>>>13,W=0|s[2],G=8191&W,X=W>>>13,Z=0|s[3],J=8191&Z,Y=Z>>>13,Q=0|s[4],$=8191&Q,ee=Q>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,fe=0|s[8],le=8191&fe,de=fe>>>13,he=0|s[9],pe=8191&he,be=he>>>13;r.negative=e.negative^t.negative,r.length=19;var ye=(c+(n=Math.imul(l,F))|0)+((8191&(i=(i=Math.imul(l,V))+Math.imul(d,F)|0))<<13)|0;c=((o=Math.imul(d,V))+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(p,F),i=(i=Math.imul(p,V))+Math.imul(b,F)|0,o=Math.imul(b,V);var ge=(c+(n=n+Math.imul(l,q)|0)|0)+((8191&(i=(i=i+Math.imul(l,K)|0)+Math.imul(d,q)|0))<<13)|0;c=((o=o+Math.imul(d,K)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(g,F),i=(i=Math.imul(g,V))+Math.imul(m,F)|0,o=Math.imul(m,V),n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(b,q)|0,o=o+Math.imul(b,K)|0;var me=(c+(n=n+Math.imul(l,G)|0)|0)+((8191&(i=(i=i+Math.imul(l,X)|0)+Math.imul(d,G)|0))<<13)|0;c=((o=o+Math.imul(d,X)|0)+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(w,F),i=(i=Math.imul(w,V))+Math.imul(_,F)|0,o=Math.imul(_,V),n=n+Math.imul(g,q)|0,i=(i=i+Math.imul(g,K)|0)+Math.imul(m,q)|0,o=o+Math.imul(m,K)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(b,G)|0,o=o+Math.imul(b,X)|0;var ve=(c+(n=n+Math.imul(l,J)|0)|0)+((8191&(i=(i=i+Math.imul(l,Y)|0)+Math.imul(d,J)|0))<<13)|0;c=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(O,F),i=(i=Math.imul(O,V))+Math.imul(k,F)|0,o=Math.imul(k,V),n=n+Math.imul(w,q)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(_,q)|0,o=o+Math.imul(_,K)|0,n=n+Math.imul(g,G)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(m,G)|0,o=o+Math.imul(m,X)|0,n=n+Math.imul(p,J)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(b,J)|0,o=o+Math.imul(b,Y)|0;var we=(c+(n=n+Math.imul(l,$)|0)|0)+((8191&(i=(i=i+Math.imul(l,ee)|0)+Math.imul(d,$)|0))<<13)|0;c=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(S,F),i=(i=Math.imul(S,V))+Math.imul(A,F)|0,o=Math.imul(A,V),n=n+Math.imul(O,q)|0,i=(i=i+Math.imul(O,K)|0)+Math.imul(k,q)|0,o=o+Math.imul(k,K)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(g,J)|0,i=(i=i+Math.imul(g,Y)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,Y)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,ee)|0;var _e=(c+(n=n+Math.imul(l,re)|0)|0)+((8191&(i=(i=i+Math.imul(l,ne)|0)+Math.imul(d,re)|0))<<13)|0;c=((o=o+Math.imul(d,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(M,F),i=(i=Math.imul(M,V))+Math.imul(j,F)|0,o=Math.imul(j,V),n=n+Math.imul(S,q)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul(A,q)|0,o=o+Math.imul(A,K)|0,n=n+Math.imul(O,G)|0,i=(i=i+Math.imul(O,X)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,X)|0,n=n+Math.imul(w,J)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(g,$)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0;var xe=(c+(n=n+Math.imul(l,oe)|0)|0)+((8191&(i=(i=i+Math.imul(l,ae)|0)+Math.imul(d,oe)|0))<<13)|0;c=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(B,F),i=(i=Math.imul(B,V))+Math.imul(I,F)|0,o=Math.imul(I,V),n=n+Math.imul(M,q)|0,i=(i=i+Math.imul(M,K)|0)+Math.imul(j,q)|0,o=o+Math.imul(j,K)|0,n=n+Math.imul(S,G)|0,i=(i=i+Math.imul(S,X)|0)+Math.imul(A,G)|0,o=o+Math.imul(A,X)|0,n=n+Math.imul(O,J)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,Y)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(g,re)|0,i=(i=i+Math.imul(g,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0;var Oe=(c+(n=n+Math.imul(l,ue)|0)|0)+((8191&(i=(i=i+Math.imul(l,ce)|0)+Math.imul(d,ue)|0))<<13)|0;c=((o=o+Math.imul(d,ce)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(R,F),i=(i=Math.imul(R,V))+Math.imul(C,F)|0,o=Math.imul(C,V),n=n+Math.imul(B,q)|0,i=(i=i+Math.imul(B,K)|0)+Math.imul(I,q)|0,o=o+Math.imul(I,K)|0,n=n+Math.imul(M,G)|0,i=(i=i+Math.imul(M,X)|0)+Math.imul(j,G)|0,o=o+Math.imul(j,X)|0,n=n+Math.imul(S,J)|0,i=(i=i+Math.imul(S,Y)|0)+Math.imul(A,J)|0,o=o+Math.imul(A,Y)|0,n=n+Math.imul(O,$)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(g,oe)|0,i=(i=i+Math.imul(g,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(b,ue)|0,o=o+Math.imul(b,ce)|0;var ke=(c+(n=n+Math.imul(l,le)|0)|0)+((8191&(i=(i=i+Math.imul(l,de)|0)+Math.imul(d,le)|0))<<13)|0;c=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(L,F),i=(i=Math.imul(L,V))+Math.imul(D,F)|0,o=Math.imul(D,V),n=n+Math.imul(R,q)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(C,q)|0,o=o+Math.imul(C,K)|0,n=n+Math.imul(B,G)|0,i=(i=i+Math.imul(B,X)|0)+Math.imul(I,G)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(M,J)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(j,J)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(S,$)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,ee)|0,n=n+Math.imul(O,re)|0,i=(i=i+Math.imul(O,ne)|0)+Math.imul(k,re)|0,o=o+Math.imul(k,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(g,ue)|0,i=(i=i+Math.imul(g,ce)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,ce)|0,n=n+Math.imul(p,le)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(b,le)|0,o=o+Math.imul(b,de)|0;var Pe=(c+(n=n+Math.imul(l,pe)|0)|0)+((8191&(i=(i=i+Math.imul(l,be)|0)+Math.imul(d,pe)|0))<<13)|0;c=((o=o+Math.imul(d,be)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(L,q),i=(i=Math.imul(L,K))+Math.imul(D,q)|0,o=Math.imul(D,K),n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,X)|0)+Math.imul(C,G)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(B,J)|0,i=(i=i+Math.imul(B,Y)|0)+Math.imul(I,J)|0,o=o+Math.imul(I,Y)|0,n=n+Math.imul(M,$)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(j,$)|0,o=o+Math.imul(j,ee)|0,n=n+Math.imul(S,re)|0,i=(i=i+Math.imul(S,ne)|0)+Math.imul(A,re)|0,o=o+Math.imul(A,ne)|0,n=n+Math.imul(O,oe)|0,i=(i=i+Math.imul(O,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,ce)|0,n=n+Math.imul(g,le)|0,i=(i=i+Math.imul(g,de)|0)+Math.imul(m,le)|0,o=o+Math.imul(m,de)|0;var Se=(c+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,be)|0)+Math.imul(b,pe)|0))<<13)|0;c=((o=o+Math.imul(b,be)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(L,G),i=(i=Math.imul(L,X))+Math.imul(D,G)|0,o=Math.imul(D,X),n=n+Math.imul(R,J)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,Y)|0,n=n+Math.imul(B,$)|0,i=(i=i+Math.imul(B,ee)|0)+Math.imul(I,$)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(M,re)|0,i=(i=i+Math.imul(M,ne)|0)+Math.imul(j,re)|0,o=o+Math.imul(j,ne)|0,n=n+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,ae)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,ae)|0,n=n+Math.imul(O,ue)|0,i=(i=i+Math.imul(O,ce)|0)+Math.imul(k,ue)|0,o=o+Math.imul(k,ce)|0,n=n+Math.imul(w,le)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(_,le)|0,o=o+Math.imul(_,de)|0;var Ae=(c+(n=n+Math.imul(g,pe)|0)|0)+((8191&(i=(i=i+Math.imul(g,be)|0)+Math.imul(m,pe)|0))<<13)|0;c=((o=o+Math.imul(m,be)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(L,J),i=(i=Math.imul(L,Y))+Math.imul(D,J)|0,o=Math.imul(D,Y),n=n+Math.imul(R,$)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(B,re)|0,i=(i=i+Math.imul(B,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(M,oe)|0,i=(i=i+Math.imul(M,ae)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,ae)|0,n=n+Math.imul(S,ue)|0,i=(i=i+Math.imul(S,ce)|0)+Math.imul(A,ue)|0,o=o+Math.imul(A,ce)|0,n=n+Math.imul(O,le)|0,i=(i=i+Math.imul(O,de)|0)+Math.imul(k,le)|0,o=o+Math.imul(k,de)|0;var Ee=(c+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,be)|0)+Math.imul(_,pe)|0))<<13)|0;c=((o=o+Math.imul(_,be)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(L,$),i=(i=Math.imul(L,ee))+Math.imul(D,$)|0,o=Math.imul(D,ee),n=n+Math.imul(R,re)|0,i=(i=i+Math.imul(R,ne)|0)+Math.imul(C,re)|0,o=o+Math.imul(C,ne)|0,n=n+Math.imul(B,oe)|0,i=(i=i+Math.imul(B,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,n=n+Math.imul(M,ue)|0,i=(i=i+Math.imul(M,ce)|0)+Math.imul(j,ue)|0,o=o+Math.imul(j,ce)|0,n=n+Math.imul(S,le)|0,i=(i=i+Math.imul(S,de)|0)+Math.imul(A,le)|0,o=o+Math.imul(A,de)|0;var Me=(c+(n=n+Math.imul(O,pe)|0)|0)+((8191&(i=(i=i+Math.imul(O,be)|0)+Math.imul(k,pe)|0))<<13)|0;c=((o=o+Math.imul(k,be)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(L,re),i=(i=Math.imul(L,ne))+Math.imul(D,re)|0,o=Math.imul(D,ne),n=n+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,ae)|0,n=n+Math.imul(B,ue)|0,i=(i=i+Math.imul(B,ce)|0)+Math.imul(I,ue)|0,o=o+Math.imul(I,ce)|0,n=n+Math.imul(M,le)|0,i=(i=i+Math.imul(M,de)|0)+Math.imul(j,le)|0,o=o+Math.imul(j,de)|0;var je=(c+(n=n+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,be)|0)+Math.imul(A,pe)|0))<<13)|0;c=((o=o+Math.imul(A,be)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(L,oe),i=(i=Math.imul(L,ae))+Math.imul(D,oe)|0,o=Math.imul(D,ae),n=n+Math.imul(R,ue)|0,i=(i=i+Math.imul(R,ce)|0)+Math.imul(C,ue)|0,o=o+Math.imul(C,ce)|0,n=n+Math.imul(B,le)|0,i=(i=i+Math.imul(B,de)|0)+Math.imul(I,le)|0,o=o+Math.imul(I,de)|0;var Te=(c+(n=n+Math.imul(M,pe)|0)|0)+((8191&(i=(i=i+Math.imul(M,be)|0)+Math.imul(j,pe)|0))<<13)|0;c=((o=o+Math.imul(j,be)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(L,ue),i=(i=Math.imul(L,ce))+Math.imul(D,ue)|0,o=Math.imul(D,ce),n=n+Math.imul(R,le)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(C,le)|0,o=o+Math.imul(C,de)|0;var Be=(c+(n=n+Math.imul(B,pe)|0)|0)+((8191&(i=(i=i+Math.imul(B,be)|0)+Math.imul(I,pe)|0))<<13)|0;c=((o=o+Math.imul(I,be)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(L,le),i=(i=Math.imul(L,de))+Math.imul(D,le)|0,o=Math.imul(D,de);var Ie=(c+(n=n+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,be)|0)+Math.imul(C,pe)|0))<<13)|0;c=((o=o+Math.imul(C,be)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863;var Ne=(c+(n=Math.imul(L,pe))|0)+((8191&(i=(i=Math.imul(L,be))+Math.imul(D,pe)|0))<<13)|0;return c=((o=Math.imul(D,be))+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,u[0]=ye,u[1]=ge,u[2]=me,u[3]=ve,u[4]=we,u[5]=_e,u[6]=xe,u[7]=Oe,u[8]=ke,u[9]=Pe,u[10]=Se,u[11]=Ae,u[12]=Ee,u[13]=Me,u[14]=je,u[15]=Te,u[16]=Be,u[17]=Ie,u[18]=Ne,0!==c&&(u[19]=c,r.length++),r};function b(e,t,r){return(new y).mulp(e,t,r)}function y(e,t){this.x=e,this.y=t}Math.imul||(p=h),o.prototype.mulTo=function(e,t){var r,n=this.length+e.length;return r=10===this.length&&10===e.length?p(this,e,t):n<63?h(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,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,u=Math.min(o,t.length-1),c=Math.max(0,o-e.length+1);c<=u;c++){var f=o-c,l=(0|e.words[f])*(0|t.words[c]),d=67108863&l;s=67108863&(d=d+s|0),i+=(a=(a=a+(l/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):b(this,e,t),r},y.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},y.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},y.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a<o;a++)n[a]=t[e[a]],i[a]=r[e[a]]},y.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),f=0;f<i;f+=s)for(var l=u,d=c,h=0;h<a;h++){var p=r[f+h],b=n[f+h],y=r[f+h+a],g=n[f+h+a],m=l*y-d*g;g=l*g+d*y,y=m,r[f+h]=p+y,n[f+h]=b+g,r[f+h+a]=p-y,n[f+h+a]=b-g,h!==s&&(m=u*l-c*d,d=u*d+c*l,l=m)}},y.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},y.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},y.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},y.prototype.convert13b=function(e,t,r,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)r[a]=0;n(0===o),n(0==(-8192&o))},y.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},y.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),c=new Array(n),f=new Array(n),l=new Array(n),d=r.words;d.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,c,n),this.transform(a,o,s,u,n,i),this.transform(c,o,f,l,n,i);for(var h=0;h<n;h++){var p=s[h]*f[h]-u[h]*l[h];u[h]=s[h]*l[h]+u[h]*f[h],s[h]=p}return this.conjugate(s,u,n),this.transform(s,u,d,o,n,i),this.conjugate(d,o,n),this.normalize13b(d,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),b(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){n("number"==typeof e),n(e<67108864);for(var t=0,r=0;r<this.length;r++){var i=(0|this.words[r])*e,o=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=(e.words[n]&1<<i)>>>i}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,u=(0|this.words[t])-s<<r;this.words[t]=u|a,a=s>>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,r){var i;n("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o,u=r;if(i-=a,i=Math.max(0,i),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var f=0;for(c=this.length-1;c>=0&&(0!==f||c>=i);c--){var l=0|this.words[c];this.words[c]=f<<26-o|l>>>o,f=l&s}return u&&0!==f&&(u.words[u.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r||!(this.words[r]&i))},o.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.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 t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,r){var i,o,a=e.length+r;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+s;var u=(0|e.words[i])*t;s=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>26,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!=(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==t){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var f=n.clone()._ishlnsubmul(i,1,u);0===f.negative&&(n=f,s&&(s.words[u]=1));for(var l=u-1;l>=0;l--){var d=67108864*(0|n.words[i.length+l])+(0|n.words[i.length+l-1]);for(d=Math.min(d/a|0,67108863),n._ishlnsubmul(i,d,l);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,l),n.isZero()||(n.negative^=1);s&&(s.words[l]=d)}return s&&s.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.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),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++c;for(var f=r.clone(),l=t.clone();!t.isZero();){for(var d=0,h=1;0==(t.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(f),a.isub(l)),i.iushrn(1),a.iushrn(1);for(var p=0,b=1;0==(r.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(f),u.isub(l)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(u)):(r.isub(t),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,f=1;0==(t.words[0]&f)&&c<26;++c,f<<=1);if(c>0)for(t.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var l=0,d=1;0==(r.words[0]&d)&&l<26;++l,d<<=1);if(l>0)for(r.iushrn(l);l-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.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 i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new O(e)},o.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)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function m(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){m.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){m.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){m.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){m.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function O(e){if("string"==typeof e){var t=o._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){O.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}m.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},m.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=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},m.prototype.split=function(e,t){e.iushrn(this.n,0,t)},m.prototype.imulK=function(e){return e.imul(this.k)},i(v,m),v.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i<n;i++)t.words[i]=e.words[i];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(t.words[t.length++]=o&r,i=10;i<e.length;i++){var a=0|e.words[i];e.words[i-10]=(a&r)<<4|o>>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(w,m),i(_,m),i(x,m),x.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new _;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new x}return g[e]=t,t},O.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},O.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},O.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},O.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},O.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},O.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},O.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},O.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},O.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},O.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},O.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},O.prototype.isqr=function(e){return this.imul(e,e.clone())},O.prototype.sqr=function(e){return this.mul(e,e)},O.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new o(2*f*f).toRed(this);0!==this.pow(f,c).cmp(u);)f.redIAdd(u);for(var l=this.pow(f,i),d=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var b=h,y=0;0!==b.cmp(s);y++)b=b.redSqr();n(y<p);var g=this.pow(l,new o(1).iushln(p-y-1));d=d.redMul(g),l=g.redSqr(),h=h.redMul(l),p=y}return d},O.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},O.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],a=0,s=0,u=t.bitLength()%26;for(0===u&&(u=26),n=t.length-1;n>=0;n--){for(var c=t.words[n],f=u-1;f>=0;f--){var l=c>>f&1;i!==r[0]&&(i=this.sqr(i)),0!==l||0!==a?(a<<=1,a|=l,(4==++s||0===n&&0===f)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=26}return i},O.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},O.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new k(e)},i(k,O),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(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},30248:(e,t,r)=>{"use strict";var n=r(48764).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.importPublic=t.privateToPublic=t.privateToAddress=t.publicToAddress=t.pubToAddress=t.isValidPublic=t.isValidPrivate=t.isPrecompiled=t.generateAddress2=t.generateAddress=t.isValidChecksumAddress=t.toChecksumAddress=t.isZeroAddress=t.isValidAddress=t.zeroAddress=void 0;var i=r(69282),o=r(80884),a=r(83230),s=r(91609),u=r(77124),c=r(91550);t.zeroAddress=function(){var e=u.zeros(20);return u.bufferToHex(e)},t.isValidAddress=function(e){return/^0x[0-9a-fA-F]{40}$/.test(e)},t.isZeroAddress=function(e){return t.zeroAddress()===u.addHexPrefix(e)},t.toChecksumAddress=function(e,t){e=o.stripHexPrefix(e).toLowerCase();for(var r=void 0!==t?t.toString()+"0x":"",n=c.keccak(r+e).toString("hex"),i="0x",a=0;a<e.length;a++)parseInt(n[a],16)>=8?i+=e[a].toUpperCase():i+=e[a];return i},t.isValidChecksumAddress=function(e,r){return t.isValidAddress(e)&&t.toChecksumAddress(e,r)===e},t.generateAddress=function(e,t){e=u.toBuffer(e);var r=new s(t);return r.isZero()?c.rlphash([e,null]).slice(-20):c.rlphash([e,n.from(r.toArray())]).slice(-20)},t.generateAddress2=function(e,t,r){var o=u.toBuffer(e),a=u.toBuffer(t),s=u.toBuffer(r);return i(20===o.length),i(32===a.length),c.keccak256(n.concat([n.from("ff","hex"),o,a,c.keccak256(s)])).slice(-20)},t.isPrecompiled=function(e){var t=u.unpad(e);return 1===t.length&&t[0]>=1&&t[0]<=8},t.isValidPrivate=function(e){return a.privateKeyVerify(e)},t.isValidPublic=function(e,t){return void 0===t&&(t=!1),64===e.length?a.publicKeyVerify(n.concat([n.from([4]),e])):!!t&&a.publicKeyVerify(e)},t.pubToAddress=function(e,t){return void 0===t&&(t=!1),e=u.toBuffer(e),t&&64!==e.length&&(e=a.publicKeyConvert(e,!1).slice(1)),i(64===e.length),c.keccak(e).slice(-20)},t.publicToAddress=t.pubToAddress,t.privateToAddress=function(e){return t.publicToAddress(t.privateToPublic(e))},t.privateToPublic=function(e){return e=u.toBuffer(e),a.publicKeyCreate(e,!1).slice(1)},t.importPublic=function(e){return 64!==(e=u.toBuffer(e)).length&&(e=a.publicKeyConvert(e,!1).slice(1)),e}},77124:(e,t,r)=>{"use strict";var n=r(48764).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.baToJSON=t.addHexPrefix=t.toUnsigned=t.fromSigned=t.bufferToHex=t.bufferToInt=t.toBuffer=t.stripZeros=t.unpad=t.setLengthRight=t.setLength=t.setLengthLeft=t.zeros=void 0;var i=r(80884),o=r(91609);t.zeros=function(e){return n.allocUnsafe(e).fill(0)},t.setLengthLeft=function(e,r,n){void 0===n&&(n=!1);var i=t.zeros(r);return e=t.toBuffer(e),n?e.length<r?(e.copy(i),i):e.slice(0,r):e.length<r?(e.copy(i,r-e.length),i):e.slice(-r)},t.setLength=t.setLengthLeft,t.setLengthRight=function(e,r){return t.setLength(e,r,!0)},t.unpad=function(e){for(var t=(e=i.stripHexPrefix(e))[0];e.length>0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e},t.stripZeros=t.unpad,t.toBuffer=function(e){if(!n.isBuffer(e))if(Array.isArray(e))e=n.from(e);else if("string"==typeof e){if(!i.isHexString(e))throw new Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: "+e);e=n.from(i.padToEven(i.stripHexPrefix(e)),"hex")}else if("number"==typeof e)e=i.intToBuffer(e);else if(null==e)e=n.allocUnsafe(0);else if(o.isBN(e))e=e.toArrayLike(n);else{if(!e.toArray)throw new Error("invalid type");e=n.from(e.toArray())}return e},t.bufferToInt=function(e){return new o(t.toBuffer(e)).toNumber()},t.bufferToHex=function(e){return"0x"+(e=t.toBuffer(e)).toString("hex")},t.fromSigned=function(e){return new o(e).fromTwos(256)},t.toUnsigned=function(e){return n.from(e.toTwos(256).toArray())},t.addHexPrefix=function(e){return"string"!=typeof e||i.isHexPrefixed(e)?e:"0x"+e},t.baToJSON=function(e){if(n.isBuffer(e))return"0x"+e.toString("hex");if(e instanceof Array){for(var r=[],i=0;i<e.length;i++)r.push(t.baToJSON(e[i]));return r}}},46649:(e,t,r)=>{"use strict";var n=r(48764).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.KECCAK256_RLP=t.KECCAK256_RLP_S=t.KECCAK256_RLP_ARRAY=t.KECCAK256_RLP_ARRAY_S=t.KECCAK256_NULL=t.KECCAK256_NULL_S=t.TWO_POW256=t.MAX_INTEGER=void 0;var i=r(91609);t.MAX_INTEGER=new i("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),t.TWO_POW256=new i("10000000000000000000000000000000000000000000000000000000000000000",16),t.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",t.KECCAK256_NULL=n.from(t.KECCAK256_NULL_S,"hex"),t.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",t.KECCAK256_RLP_ARRAY=n.from(t.KECCAK256_RLP_ARRAY_S,"hex"),t.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",t.KECCAK256_RLP=n.from(t.KECCAK256_RLP_S,"hex")},91550:(e,t,r)=>{"use strict";var n=r(48764).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.rlphash=t.ripemd160=t.sha256=t.keccak256=t.keccak=void 0;var i=r(82192),o=i.keccak224,a=i.keccak384,s=i.keccak256,u=i.keccak512,c=r(23482),f=r(80884),l=r(51675),d=r(77124);t.keccak=function(e,t){switch(void 0===t&&(t=256),e="string"!=typeof e||f.isHexString(e)?d.toBuffer(e):n.from(e,"utf8"),t||(t=256),t){case 224:return o(e);case 256:return s(e);case 384:return a(e);case 512:return u(e);default:throw new Error("Invald algorithm: keccak"+t)}},t.keccak256=function(e){return t.keccak(e)},t.sha256=function(e){return e=d.toBuffer(e),c("sha256").update(e).digest()},t.ripemd160=function(e,t){e=d.toBuffer(e);var r=c("rmd160").update(e).digest();return!0===t?d.setLength(r,32):r},t.rlphash=function(e){return t.keccak(l.encode(e))}},86589:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||t.hasOwnProperty(r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.secp256k1=t.rlp=t.BN=void 0;var o=r(83230);t.secp256k1=o;var a=r(80884),s=r(91609);t.BN=s;var u=r(51675);t.rlp=u,Object.assign(t,a),i(r(46649),t),i(r(30248),t),i(r(91550),t),i(r(86232),t),i(r(77124),t),i(r(81113),t)},81113:(e,t,r)=>{"use strict";var n=r(48764).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.defineProperties=void 0;var i=r(69282),o=r(80884),a=r(51675),s=r(77124);t.defineProperties=function(e,t,r){if(e.raw=[],e._fields=[],e.toJSON=function(t){if(void 0===t&&(t=!1),t){var r={};return e._fields.forEach((function(t){r[t]="0x"+e[t].toString("hex")})),r}return s.baToJSON(e.raw)},e.serialize=function(){return a.encode(e.raw)},t.forEach((function(t,r){function o(){return e.raw[r]}function a(o){"00"!==(o=s.toBuffer(o)).toString("hex")||t.allowZero||(o=n.allocUnsafe(0)),t.allowLess&&t.length?(o=s.stripZeros(o),i(t.length>=o.length,"The field "+t.name+" must not have more "+t.length+" bytes")):t.allowZero&&0===o.length||!t.length||i(t.length===o.length,"The field "+t.name+" must have byte length of "+t.length),e.raw[r]=o}e._fields.push(t.name),Object.defineProperty(e,t.name,{enumerable:!0,configurable:!0,get:o,set:a}),t.default&&(e[t.name]=t.default),t.alias&&Object.defineProperty(e,t.alias,{enumerable:!1,configurable:!0,set:a,get:o})})),r)if("string"==typeof r&&(r=n.from(o.stripHexPrefix(r),"hex")),n.isBuffer(r)&&(r=a.decode(r)),Array.isArray(r)){if(r.length>e._fields.length)throw new Error("wrong number of fields in data");r.forEach((function(t,r){e[e._fields[r]]=s.toBuffer(t)}))}else{if("object"!=typeof r)throw new Error("invalid data");var u=Object.keys(r);t.forEach((function(t){-1!==u.indexOf(t.name)&&(e[t.name]=r[t.name]),-1!==u.indexOf(t.alias)&&(e[t.alias]=r[t.alias])}))}}},83230:(e,t,r)=>{"use strict";var n=r(48764).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.ecdhUnsafe=t.ecdh=t.recover=t.verify=t.sign=t.signatureImportLax=t.signatureImport=t.signatureExport=t.signatureNormalize=t.publicKeyCombine=t.publicKeyTweakMul=t.publicKeyTweakAdd=t.publicKeyVerify=t.publicKeyConvert=t.publicKeyCreate=t.privateKeyTweakMul=t.privateKeyTweakAdd=t.privateKeyModInverse=t.privateKeyNegate=t.privateKeyImport=t.privateKeyExport=t.privateKeyVerify=void 0;var i=r(95053),o=r(78427),a=r(33646);t.privateKeyVerify=function(e){return 32===e.length&&i.privateKeyVerify(Uint8Array.from(e))},t.privateKeyExport=function(e,t){if(32!==e.length)throw new RangeError("private key length is invalid");var r=o.privateKeyExport(e,t);return a.privateKeyExport(e,r,t)},t.privateKeyImport=function(e){if(null!==(e=a.privateKeyImport(e))&&32===e.length&&t.privateKeyVerify(e))return e;throw new Error("couldn't import from DER format")},t.privateKeyNegate=function(e){return n.from(i.privateKeyNegate(Uint8Array.from(e)))},t.privateKeyModInverse=function(e){if(32!==e.length)throw new Error("private key length is invalid");return n.from(o.privateKeyModInverse(Uint8Array.from(e)))},t.privateKeyTweakAdd=function(e,t){return n.from(i.privateKeyTweakAdd(Uint8Array.from(e),t))},t.privateKeyTweakMul=function(e,t){return n.from(i.privateKeyTweakMul(Uint8Array.from(e),Uint8Array.from(t)))},t.publicKeyCreate=function(e,t){return n.from(i.publicKeyCreate(Uint8Array.from(e),t))},t.publicKeyConvert=function(e,t){return n.from(i.publicKeyConvert(Uint8Array.from(e),t))},t.publicKeyVerify=function(e){return(33===e.length||65===e.length)&&i.publicKeyVerify(Uint8Array.from(e))},t.publicKeyTweakAdd=function(e,t,r){return n.from(i.publicKeyTweakAdd(Uint8Array.from(e),Uint8Array.from(t),r))},t.publicKeyTweakMul=function(e,t,r){return n.from(i.publicKeyTweakMul(Uint8Array.from(e),Uint8Array.from(t),r))},t.publicKeyCombine=function(e,t){var r=[];return e.forEach((function(e){r.push(Uint8Array.from(e))})),n.from(i.publicKeyCombine(r,t))},t.signatureNormalize=function(e){return n.from(i.signatureNormalize(Uint8Array.from(e)))},t.signatureExport=function(e){return n.from(i.signatureExport(Uint8Array.from(e)))},t.signatureImport=function(e){return n.from(i.signatureImport(Uint8Array.from(e)))},t.signatureImportLax=function(e){if(0===e.length)throw new RangeError("signature length is invalid");var t=a.signatureImportLax(e);if(null===t)throw new Error("couldn't parse DER signature");return o.signatureImport(t)},t.sign=function(e,t,r){if(null===r)throw new TypeError("options should be an Object");var o=void 0;if(r){if(o={},null===r.data)throw new TypeError("options.data should be a Buffer");if(r.data){if(32!=r.data.length)throw new RangeError("options.data length is invalid");o.data=new Uint8Array(r.data)}if(null===r.noncefn)throw new TypeError("options.noncefn should be a Function");r.noncefn&&(o.noncefn=function(e,t,i,o,a){var s=null!=i?n.from(i):null,u=null!=o?n.from(o):null,c=n.from("");return r.noncefn&&(c=r.noncefn(n.from(e),n.from(t),s,u,a)),new Uint8Array(c)})}var a=i.ecdsaSign(Uint8Array.from(e),Uint8Array.from(t),o);return{signature:n.from(a.signature),recovery:a.recid}},t.verify=function(e,t,r){return i.ecdsaVerify(Uint8Array.from(t),Uint8Array.from(e),r)},t.recover=function(e,t,r,o){return n.from(i.ecdsaRecover(Uint8Array.from(t),r,Uint8Array.from(e),o))},t.ecdh=function(e,t){return n.from(i.ecdh(Uint8Array.from(e),Uint8Array.from(t),{}))},t.ecdhUnsafe=function(e,t,r){if(33!==e.length&&65!==e.length)throw new RangeError("public key length is invalid");if(32!==t.length)throw new RangeError("private key length is invalid");return n.from(o.ecdhUnsafe(Uint8Array.from(e),Uint8Array.from(t),r))}},33646:(e,t,r)=>{"use strict";var n=r(48764).Buffer;Object.defineProperty(t,"__esModule",{value:!0});var i=n.from([48,129,211,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,133,48,129,130,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,33,2,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,36,3,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),o=n.from([48,130,1,19,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,165,48,129,162,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,65,4,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,72,58,218,119,38,163,196,101,93,164,251,252,14,17,8,168,253,23,180,72,166,133,84,25,156,71,208,143,251,16,212,184,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,68,3,66,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);t.privateKeyExport=function(e,t,r){void 0===r&&(r=!0);var a=n.from(r?i:o);return e.copy(a,r?8:9),t.copy(a,r?181:214),a},t.privateKeyImport=function(e){var t=e.length,r=0;if(t<r+1||48!==e[r])return null;if(t<(r+=1)+1||!(128&e[r]))return null;var n=127&e[r];if(n<1||n>2)return null;if(t<(r+=1)+n)return null;var i=e[r+n-1]|(n>1?e[r+n-2]<<8:0);return t<(r+=n)+i||t<r+3||2!==e[r]||1!==e[r+1]||1!==e[r+2]||t<(r+=3)+2||4!==e[r]||e[r+1]>32||t<r+2+e[r+1]?null:e.slice(r+2,r+2+e[r+1])},t.signatureImportLax=function(e){var t=n.alloc(32,0),r=n.alloc(32,0),i=e.length,o=0;if(48!==e[o++])return null;var a=e[o++];if(128&a&&(o+=a-128)>i)return null;if(2!==e[o++])return null;var s=e[o++];if(128&s){if(o+(a=s-128)>i)return null;for(;a>0&&0===e[o];o+=1,a-=1);for(s=0;a>0;o+=1,a-=1)s=(s<<8)+e[o]}if(s>i-o)return null;var u=o;if(o+=s,2!==e[o++])return null;var c=e[o++];if(128&c){if(o+(a=c-128)>i)return null;for(;a>0&&0===e[o];o+=1,a-=1);for(c=0;a>0;o+=1,a-=1)c=(c<<8)+e[o]}if(c>i-o)return null;var f=o;for(o+=c;s>0&&0===e[u];s-=1,u+=1);if(s>32)return null;var l=e.slice(u,u+s);for(l.copy(t,32-l.length);c>0&&0===e[f];c-=1,f+=1);if(c>32)return null;var d=e.slice(f,f+c);return d.copy(r,32-d.length),{r:t,s:r}}},78427:(e,t,r)=>{"use strict";var n=r(48764).Buffer;Object.defineProperty(t,"__esModule",{value:!0});var i=r(91609),o=new(0,r(86266).ec)("secp256k1"),a=o.curve;t.privateKeyExport=function(e,t){void 0===t&&(t=!0);var r=new i(e);if(r.ucmp(a.n)>=0)throw new Error("couldn't export to DER format");var n=o.g.mul(r);return s(n.getX(),n.getY(),t)},t.privateKeyModInverse=function(e){var t=new i(e);if(t.ucmp(a.n)>=0||t.isZero())throw new Error("private key range is invalid");return t.invm(a.n).toArrayLike(n,"be",32)},t.signatureImport=function(e){var t=new i(e.r);t.ucmp(a.n)>=0&&(t=new i(0));var r=new i(e.s);return r.ucmp(a.n)>=0&&(r=new i(0)),n.concat([t.toArrayLike(n,"be",32),r.toArrayLike(n,"be",32)])},t.ecdhUnsafe=function(e,t,r){void 0===r&&(r=!0);var n=o.keyFromPublic(e),u=new i(t);if(u.ucmp(a.n)>=0||u.isZero())throw new Error("scalar was invalid (zero or overflow)");var c=n.pub.mul(u);return s(c.getX(),c.getY(),r)};var s=function(e,t,r){var i;return r?((i=n.alloc(33))[0]=t.isOdd()?3:2,e.toArrayLike(n,"be",32).copy(i,1)):((i=n.alloc(65))[0]=4,e.toArrayLike(n,"be",32).copy(i,1),t.toArrayLike(n,"be",32).copy(i,33)),i}},86232:(e,t,r)=>{"use strict";var n=r(48764).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.hashPersonalMessage=t.isValidSignature=t.fromRpcSig=t.toRpcSig=t.ecrecover=t.ecsign=void 0;var i=r(83230),o=r(91609),a=r(77124),s=r(91550);function u(e,t){return t?e-(2*t+35):e-27}function c(e){return 0===e||1===e}t.ecsign=function(e,t,r){var n=i.sign(e,t),o=n.recovery;return{r:n.signature.slice(0,32),s:n.signature.slice(32,64),v:r?o+(2*r+35):o+27}},t.ecrecover=function(e,t,r,o,s){var f=n.concat([a.setLength(r,32),a.setLength(o,32)],64),l=u(t,s);if(!c(l))throw new Error("Invalid signature v value");var d=i.recover(e,f,l);return i.publicKeyConvert(d,!1).slice(1)},t.toRpcSig=function(e,t,r,i){if(!c(u(e,i)))throw new Error("Invalid signature v value");return a.bufferToHex(n.concat([a.setLengthLeft(t,32),a.setLengthLeft(r,32),a.toBuffer(e)]))},t.fromRpcSig=function(e){var t=a.toBuffer(e);if(65!==t.length)throw new Error("Invalid signature length");var r=t[64];return r<27&&(r+=27),{v:r,r:t.slice(0,32),s:t.slice(32,64)}},t.isValidSignature=function(e,t,r,n,i){void 0===n&&(n=!0);var a=new o("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),s=new o("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);if(32!==t.length||32!==r.length)return!1;if(!c(u(e,i)))return!1;var f=new o(t),l=new o(r);return!(f.isZero()||f.gt(s)||l.isZero()||l.gt(s)||n&&1===l.cmp(a))},t.hashPersonalMessage=function(e){var t=n.from("Ethereum Signed Message:\n"+e.length.toString(),"utf-8");return s.keccak(n.concat([t,e]))}},70420:(e,t,r)=>{"use strict";r.r(t),r.d(t,{BaseContract:()=>Re,BigNumber:()=>u.O$,Contract:()=>Ce,ContractFactory:()=>Ue,FixedNumber:()=>Le.xs,Signer:()=>ve.E,VoidSigner:()=>ve.b,Wallet:()=>De.Wallet,Wordlist:()=>Ke.D,constants:()=>n,errors:()=>f.ErrorCode,ethers:()=>a,getDefaultProvider:()=>ze.getDefaultProvider,logger:()=>Ct,providers:()=>ze,utils:()=>o,version:()=>Rt,wordlists:()=>qe.E});var n={};r.r(n),r.d(n,{AddressZero:()=>He.d,EtherSymbol:()=>Ve,HashZero:()=>Fe.R,MaxInt256:()=>T.PS,MaxUint256:()=>T.Bz,MinInt256:()=>T.$B,NegativeOne:()=>T.tL,One:()=>T.fh,Two:()=>T.Py,WeiPerEther:()=>T.Ce,Zero:()=>T._Y});var i={};r.r(i),r.d(i,{decode:()=>We.J,encode:()=>We.c});var o={};r.r(o),r.d(o,{AbiCoder:()=>ue,ConstructorFragment:()=>Y,ErrorFragment:()=>ee,EventFragment:()=>G,FormatTypes:()=>V,Fragment:()=>W,FunctionFragment:()=>Q,HDNode:()=>Ye.m$,Indexed:()=>pe,Interface:()=>ge,LogDescription:()=>le,Logger:()=>f.Logger,ParamType:()=>q,RLP:()=>lt,SigningKey:()=>dt.Et,SupportedAlgorithm:()=>Nt.p,TransactionDescription:()=>de,TransactionTypes:()=>we.em,UnicodeNormalizationForm:()=>I.Uj,Utf8ErrorFuncs:()=>I.te,Utf8ErrorReason:()=>I.Uw,_TypedDataEncoder:()=>Je.E,_fetchData:()=>It.MY,_toEscapedUtf8String:()=>I.U$,accessListify:()=>we.z7,arrayify:()=>s.arrayify,base58:()=>Ge.eU,base64:()=>i,checkProperties:()=>c.uj,checkResultErrors:()=>h,commify:()=>Et,computeAddress:()=>we.db,computeHmac:()=>$e.Gy,computePublicKey:()=>dt.VW,concat:()=>s.concat,deepCopy:()=>c.p$,defaultAbiCoder:()=>ce,defaultPath:()=>Ye.cD,defineReadOnly:()=>c.zG,dnsEncode:()=>Xe.Kn,entropyToMnemonic:()=>Ye.JJ,fetchJson:()=>It.rd,formatBytes32String:()=>kt,formatEther:()=>Tt,formatUnits:()=>Mt,getAccountPath:()=>Ye.ny,getAddress:()=>g.getAddress,getContractAddress:()=>g.getContractAddress,getCreate2Address:()=>g.getCreate2Address,getIcapAddress:()=>g.getIcapAddress,getJsonWalletAddress:()=>Qe.Rb,getStatic:()=>c.tu,hashMessage:()=>Ze.r,hexConcat:()=>s.hexConcat,hexDataLength:()=>s.hexDataLength,hexDataSlice:()=>s.hexDataSlice,hexStripZeros:()=>s.hexStripZeros,hexValue:()=>s.hexValue,hexZeroPad:()=>s.hexZeroPad,hexlify:()=>s.hexlify,id:()=>m.id,isAddress:()=>g.isAddress,isBytes:()=>s.isBytes,isBytesLike:()=>s.isBytesLike,isHexString:()=>s.isHexString,isValidMnemonic:()=>Ye.xh,isValidName:()=>Xe.r1,joinSignature:()=>s.joinSignature,keccak256:()=>v.keccak256,mnemonicToEntropy:()=>Ye.oy,mnemonicToSeed:()=>Ye.OI,namehash:()=>Xe.VM,nameprep:()=>Ot,parseBytes32String:()=>Pt,parseEther:()=>Bt,parseTransaction:()=>we.Qc,parseUnits:()=>jt,poll:()=>It.$l,randomBytes:()=>ct.O,recoverAddress:()=>we.RJ,recoverPublicKey:()=>dt.LO,resolveProperties:()=>c.mE,ripemd160:()=>$e.bP,serializeTransaction:()=>we.qC,sha256:()=>$e.JQ,sha512:()=>$e.o,shallowCopy:()=>c.DC,shuffled:()=>ft.y,solidityKeccak256:()=>st,solidityPack:()=>at,soliditySha256:()=>ut,splitSignature:()=>s.splitSignature,stripZeros:()=>s.stripZeros,toUtf8Bytes:()=>I.Y0,toUtf8CodePoints:()=>I.XL,toUtf8String:()=>I.ZN,verifyMessage:()=>De.verifyMessage,verifyTypedData:()=>De.verifyTypedData,zeroPad:()=>s.zeroPad});var a={};r.r(a),r.d(a,{BaseContract:()=>Re,BigNumber:()=>u.O$,Contract:()=>Ce,ContractFactory:()=>Ue,FixedNumber:()=>Le.xs,Signer:()=>ve.E,VoidSigner:()=>ve.b,Wallet:()=>De.Wallet,Wordlist:()=>Ke.D,constants:()=>n,errors:()=>f.ErrorCode,getDefaultProvider:()=>ze.getDefaultProvider,logger:()=>Ct,providers:()=>ze,utils:()=>o,version:()=>Rt,wordlists:()=>qe.E});var s=r(93286),u=r(2593),c=r(53587),f=r(80711);const l="abi/5.7.0",d=new f.Logger(l);function h(e){const t=[],r=function(e,n){if(Array.isArray(n))for(let i in n){const o=e.slice();o.push(i);try{r(o,n[i])}catch(e){t.push({path:o,error:e})}}};return r([],e),t}class p{constructor(e,t,r,n){this.name=e,this.type=t,this.localName=r,this.dynamic=n}_throwError(e,t){d.throwArgumentError(e,this.localName,t)}}class b{constructor(e){(0,c.zG)(this,"wordSize",e||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(e)}get data(){return(0,s.hexConcat)(this._data)}get length(){return this._dataLength}_writeData(e){return this._data.push(e),this._dataLength+=e.length,e.length}appendWriter(e){return this._writeData((0,s.concat)(e._data))}writeBytes(e){let t=(0,s.arrayify)(e);const r=t.length%this.wordSize;return r&&(t=(0,s.concat)([t,this._padding.slice(r)])),this._writeData(t)}_getValue(e){let t=(0,s.arrayify)(u.O$.from(e));return t.length>this.wordSize&&d.throwError("value out-of-bounds",f.Logger.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=(0,s.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(e,t,r,n){(0,c.zG)(this,"_data",(0,s.arrayify)(e)),(0,c.zG)(this,"wordSize",t||32),(0,c.zG)(this,"_coerceFunc",r),(0,c.zG)(this,"allowLoose",n),this._offset=0}get data(){return(0,s.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:d.throwError("data out-of-bounds",f.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 u.O$.from(this.readBytes(this.wordSize))}}var g=r(64594),m=r(32046),v=r(38197);class w extends p{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,t){try{t=(0,g.getAddress)(t)}catch(e){this._throwError(e.message,t)}return e.writeValue(t)}decode(e){return(0,g.getAddress)((0,s.hexZeroPad)(e.readValue().toHexString(),20))}}class _ extends p{constructor(e){super(e.name,e.type,void 0,e.dynamic),this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,t){return this.coder.encode(e,t)}decode(e){return this.coder.decode(e)}}const x=new f.Logger(l);function O(e,t,r){let n=null;if(Array.isArray(r))n=r;else if(r&&"object"==typeof r){let e={};n=t.map((t=>{const n=t.localName;return n||x.throwError("cannot encode object for signature with missing names",f.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:r}),e[n]&&x.throwError("cannot encode object for signature with duplicate names",f.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:r}),e[n]=!0,r[n]}))}else x.throwArgumentError("invalid tuple value","tuple",r);t.length!==n.length&&x.throwArgumentError("types/value length mismatch","tuple",r);let i=new b(e.wordSize),o=new b(e.wordSize),a=[];t.forEach(((e,t)=>{let r=n[t];if(e.dynamic){let t=o.length;e.encode(o,r);let n=i.writeUpdatableValue();a.push((e=>{n(e+t)}))}else e.encode(i,r)})),a.forEach((e=>{e(i.length)}));let s=e.appendWriter(i);return s+=e.appendWriter(o),s}function k(e,t){let r=[],n=e.subReader(0);t.forEach((t=>{let i=null;if(t.dynamic){let r=e.readValue(),o=n.subReader(r.toNumber());try{i=t.decode(o)}catch(e){if(e.code===f.Logger.errors.BUFFER_OVERRUN)throw e;i=e,i.baseType=t.name,i.name=t.localName,i.type=t.type}}else try{i=t.decode(e)}catch(e){if(e.code===f.Logger.errors.BUFFER_OVERRUN)throw e;i=e,i.baseType=t.name,i.name=t.localName,i.type=t.type}null!=i&&r.push(i)}));const i=t.reduce(((e,t)=>{const r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e}),{});t.forEach(((e,t)=>{let n=e.localName;if(!n||1!==i[n])return;if("length"===n&&(n="_length"),null!=r[n])return;const o=r[t];o instanceof Error?Object.defineProperty(r,n,{enumerable:!0,get:()=>{throw o}}):r[n]=o}));for(let e=0;e<r.length;e++){const t=r[e];t instanceof Error&&Object.defineProperty(r,e,{enumerable:!0,get:()=>{throw t}})}return Object.freeze(r)}class P extends p{constructor(e,t,r){super("array",e.type+"["+(t>=0?t:"")+"]",r,-1===t||e.dynamic),this.coder=e,this.length=t}defaultValue(){const e=this.coder.defaultValue(),t=[];for(let r=0;r<this.length;r++)t.push(e);return t}encode(e,t){Array.isArray(t)||this._throwError("expected array value",t);let r=this.length;-1===r&&(r=t.length,e.writeValue(t.length)),x.checkArgumentCount(t.length,r,"coder array"+(this.localName?" "+this.localName:""));let n=[];for(let e=0;e<t.length;e++)n.push(this.coder);return O(e,n,t)}decode(e){let t=this.length;-1===t&&(t=e.readValue().toNumber(),32*t>e._data.length&&x.throwError("insufficient data length",f.Logger.errors.BUFFER_OVERRUN,{length:e._data.length,count:t}));let r=[];for(let e=0;e<t;e++)r.push(new _(this.coder));return e.coerce(this.name,k(e,r))}}class S extends p{constructor(e){super("bool","bool",e,!1)}defaultValue(){return!1}encode(e,t){return e.writeValue(t?1:0)}decode(e){return e.coerce(this.type,!e.readValue().isZero())}}class A extends p{constructor(e,t){super(e,e,t,!0)}defaultValue(){return"0x"}encode(e,t){t=(0,s.arrayify)(t);let r=e.writeValue(t.length);return r+=e.writeBytes(t),r}decode(e){return e.readBytes(e.readValue().toNumber(),!0)}}class E extends A{constructor(e){super("bytes",e)}decode(e){return e.coerce(this.name,(0,s.hexlify)(super.decode(e)))}}class M extends p{constructor(e,t){let r="bytes"+String(e);super(r,r,t,!1),this.size=e}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}encode(e,t){let r=(0,s.arrayify)(t);return r.length!==this.size&&this._throwError("incorrect data length",t),e.writeBytes(r)}decode(e){return e.coerce(this.name,(0,s.hexlify)(e.readBytes(this.size)))}}class j extends p{constructor(e){super("null","",e,!1)}defaultValue(){return null}encode(e,t){return null!=t&&this._throwError("not null",t),e.writeBytes([])}decode(e){return e.readBytes(0),e.coerce(this.name,null)}}var T=r(21046);class B extends p{constructor(e,t,r){const n=(t?"int":"uint")+8*e;super(n,n,r,!1),this.size=e,this.signed=t}defaultValue(){return 0}encode(e,t){let r=u.O$.from(t),n=T.Bz.mask(8*e.wordSize);if(this.signed){let e=n.mask(8*this.size-1);(r.gt(e)||r.lt(e.add(T.fh).mul(T.tL)))&&this._throwError("value out-of-bounds",t)}else(r.lt(T._Y)||r.gt(n.mask(8*this.size)))&&this._throwError("value out-of-bounds",t);return r=r.toTwos(8*this.size).mask(8*this.size),this.signed&&(r=r.fromTwos(8*this.size).toTwos(8*e.wordSize)),e.writeValue(r)}decode(e){let t=e.readValue().mask(8*this.size);return this.signed&&(t=t.fromTwos(8*this.size)),e.coerce(this.name,t)}}var I=r(44242);class N extends A{constructor(e){super("string",e)}defaultValue(){return""}encode(e,t){return super.encode(e,(0,I.Y0)(t))}decode(e){return(0,I.ZN)(super.decode(e))}}class R extends p{constructor(e,t){let r=!1;const n=[];e.forEach((e=>{e.dynamic&&(r=!0),n.push(e.type)})),super("tuple","tuple("+n.join(",")+")",t,r),this.coders=e}defaultValue(){const e=[];this.coders.forEach((t=>{e.push(t.defaultValue())}));const t=this.coders.reduce(((e,t)=>{const r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e}),{});return this.coders.forEach(((r,n)=>{let i=r.localName;i&&1===t[i]&&("length"===i&&(i="_length"),null==e[i]&&(e[i]=e[n]))})),Object.freeze(e)}encode(e,t){return O(e,this.coders,t)}decode(e){return e.coerce(this.name,k(e,this.coders))}}const C=new f.Logger(l),U={};let L={calldata:!0,memory:!0,storage:!0},D={calldata:!0,memory:!0};function H(e,t){if("bytes"===e||"string"===e){if(L[t])return!0}else if("address"===e){if("payable"===t)return!0}else if((e.indexOf("[")>=0||"tuple"===e)&&D[t])return!0;return(L[t]||"payable"===t)&&C.throwArgumentError("invalid modifier","name",t),!1}function F(e,t){for(let r in t)(0,c.zG)(e,r,t[r])}const V=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),z=new RegExp(/^(.*)\[([0-9]*)\]$/);class q{constructor(e,t){e!==U&&C.throwError("use fromString",f.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),F(this,t);let r=this.type.match(z);F(this,r?{arrayLength:parseInt(r[2]||"-1"),arrayChildren:q.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]||C.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?q.fromString(e,t):q.fromObject(e)}static fromObject(e){return q.isParamType(e)?e:new q(U,{name:e.name||null,type:te(e.type),indexed:null==e.indexed?null:!!e.indexed,components:e.components?e.components.map(q.fromObject):null})}static fromString(e,t){return r=function(e,t){let r=e;function n(t){C.throwArgumentError(`unexpected character at position ${t}`,"param",e)}function i(e){let r={type:"",name:"",parent:e,state:{allowType:!0}};return t&&(r.indexed=!1),r}e=e.replace(/\s/g," ");let o={type:"",name:"",state:{allowType:!0}},a=o;for(let r=0;r<e.length;r++){let o=e[r];switch(o){case"(":a.state.allowType&&""===a.type?a.type="tuple":a.state.allowParams||n(r),a.state.allowType=!1,a.type=te(a.type),a.components=[i(a)],a=a.components[0];break;case")":delete a.state,"indexed"===a.name&&(t||n(r),a.indexed=!0,a.name=""),H(a.type,a.name)&&(a.name=""),a.type=te(a.type);let e=a;a=a.parent,a||n(r),delete e.parent,a.state.allowParams=!1,a.state.allowName=!0,a.state.allowArray=!0;break;case",":delete a.state,"indexed"===a.name&&(t||n(r),a.indexed=!0,a.name=""),H(a.type,a.name)&&(a.name=""),a.type=te(a.type);let s=i(a.parent);a.parent.components.push(s),delete a.parent,a=s;break;case" ":a.state.allowType&&""!==a.type&&(a.type=te(a.type),delete a.state.allowType,a.state.allowName=!0,a.state.allowParams=!0),a.state.allowName&&""!==a.name&&("indexed"===a.name?(t||n(r),a.indexed&&n(r),a.indexed=!0,a.name=""):H(a.type,a.name)?a.name="":a.state.allowName=!1);break;case"[":a.state.allowArray||n(r),a.type+=o,a.state.allowArray=!1,a.state.allowName=!1,a.state.readArray=!0;break;case"]":a.state.readArray||n(r),a.type+=o,a.state.readArray=!1,a.state.allowArray=!0,a.state.allowName=!0;break;default:a.state.allowType?(a.type+=o,a.state.allowParams=!0,a.state.allowArray=!0):a.state.allowName?(a.name+=o,delete a.state.allowArray):a.state.readArray?a.type+=o:n(r)}}return a.parent&&C.throwArgumentError("unexpected eof","param",e),delete o.state,"indexed"===a.name?(t||n(r.length-7),a.indexed&&n(r.length-7),a.indexed=!0,a.name=""):H(a.type,a.name)&&(a.name=""),o.type=te(o.type),o}(e,!!t),q.fromObject({name:r.name,type:r.type,indexed:r.indexed,components:r.components});var r}static isParamType(e){return!(null==e||!e._isParamType)}}function K(e,t){return function(e){e=e.trim();let t=[],r="",n=0;for(let i=0;i<e.length;i++){let o=e[i];","===o&&0===n?(t.push(r),r=""):(r+=o,"("===o?n++:")"===o&&(n--,-1===n&&C.throwArgumentError("unbalanced parenthesis","value",e)))}return r&&t.push(r),t}(e).map((e=>q.fromString(e,t)))}class W{constructor(e,t){e!==U&&C.throwError("use a static from method",f.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),F(this,t),this._isFragment=!0,Object.freeze(this)}static from(e){return W.isFragment(e)?e:"string"==typeof e?W.fromString(e):W.fromObject(e)}static fromObject(e){if(W.isFragment(e))return e;switch(e.type){case"function":return Q.fromObject(e);case"event":return G.fromObject(e);case"constructor":return Y.fromObject(e);case"error":return ee.fromObject(e);case"fallback":case"receive":return null}return C.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]?G.fromString(e.substring(5).trim()):"function"===e.split(" ")[0]?Q.fromString(e.substring(8).trim()):"constructor"===e.split("(")[0].trim()?Y.fromString(e.trim()):"error"===e.split(" ")[0]?ee.fromString(e.substring(5).trim()):C.throwArgumentError("unsupported fragment","value",e)}static isFragment(e){return!(!e||!e._isFragment)}}class G extends W{format(e){if(e||(e=V.sighash),V[e]||C.throwArgumentError("invalid format type","format",e),e===V.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map((t=>JSON.parse(t.format(e))))});let t="";return e!==V.sighash&&(t+="event "),t+=this.name+"("+this.inputs.map((t=>t.format(e))).join(e===V.full?", ":",")+") ",e!==V.sighash&&this.anonymous&&(t+="anonymous "),t.trim()}static from(e){return"string"==typeof e?G.fromString(e):G.fromObject(e)}static fromObject(e){if(G.isEventFragment(e))return e;"event"!==e.type&&C.throwArgumentError("invalid event object","value",e);const t={name:ne(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(q.fromObject):[],type:"event"};return new G(U,t)}static fromString(e){let t=e.match(ie);t||C.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:C.warn("unknown modifier: "+e)}})),G.fromObject({name:t[1].trim(),anonymous:r,inputs:K(t[2],!0),type:"event"})}static isEventFragment(e){return e&&e._isFragment&&"event"===e.type}}function X(e,t){t.gas=null;let r=e.split("@");return 1!==r.length?(r.length>2&&C.throwArgumentError("invalid human-readable ABI signature","value",e),r[1].match(/^[0-9]+$/)||C.throwArgumentError("invalid human-readable ABI signature gas","value",e),t.gas=u.O$.from(r[1]),r[0]):e}function Z(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 J(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&&C.throwArgumentError("cannot have constant function with mutability "+t.stateMutability,"value",e),t.payable="payable"===t.stateMutability,null!=e.payable&&!!e.payable!==t.payable&&C.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||C.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&&C.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&&C.throwArgumentError("unable to determine stateMutability","value",e),t}class Y extends W{format(e){if(e||(e=V.sighash),V[e]||C.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((t=>JSON.parse(t.format(e))))});e===V.sighash&&C.throwError("cannot format a constructor for sighash",f.Logger.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let t="constructor("+this.inputs.map((t=>t.format(e))).join(e===V.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "),t.trim()}static from(e){return"string"==typeof e?Y.fromString(e):Y.fromObject(e)}static fromObject(e){if(Y.isConstructorFragment(e))return e;"constructor"!==e.type&&C.throwArgumentError("invalid constructor object","value",e);let t=J(e);t.constant&&C.throwArgumentError("constructor cannot be constant","value",e);const r={name:null,type:e.type,inputs:e.inputs?e.inputs.map(q.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?u.O$.from(e.gas):null};return new Y(U,r)}static fromString(e){let t={type:"constructor"},r=(e=X(e,t)).match(ie);return r&&"constructor"===r[1].trim()||C.throwArgumentError("invalid constructor string","value",e),t.inputs=K(r[2].trim(),!1),Z(r[3].trim(),t),Y.fromObject(t)}static isConstructorFragment(e){return e&&e._isFragment&&"constructor"===e.type}}class Q extends Y{format(e){if(e||(e=V.sighash),V[e]||C.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((t=>JSON.parse(t.format(e)))),outputs:this.outputs.map((t=>JSON.parse(t.format(e))))});let t="";return e!==V.sighash&&(t+="function "),t+=this.name+"("+this.inputs.map((t=>t.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((t=>t.format(e))).join(", ")+") "),null!=this.gas&&(t+="@"+this.gas.toString()+" ")),t.trim()}static from(e){return"string"==typeof e?Q.fromString(e):Q.fromObject(e)}static fromObject(e){if(Q.isFunctionFragment(e))return e;"function"!==e.type&&C.throwArgumentError("invalid function object","value",e);let t=J(e);const r={type:e.type,name:ne(e.name),constant:t.constant,inputs:e.inputs?e.inputs.map(q.fromObject):[],outputs:e.outputs?e.outputs.map(q.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?u.O$.from(e.gas):null};return new Q(U,r)}static fromString(e){let t={type:"function"},r=(e=X(e,t)).split(" returns ");r.length>2&&C.throwArgumentError("invalid function string","value",e);let n=r[0].match(ie);if(n||C.throwArgumentError("invalid function signature","value",e),t.name=n[1].trim(),t.name&&ne(t.name),t.inputs=K(n[2],!1),Z(n[3].trim(),t),r.length>1){let n=r[1].match(ie);""==n[1].trim()&&""==n[3].trim()||C.throwArgumentError("unexpected tokens","value",e),t.outputs=K(n[2],!1)}else t.outputs=[];return Q.fromObject(t)}static isFunctionFragment(e){return e&&e._isFragment&&"function"===e.type}}function $(e){const t=e.format();return"Error(string)"!==t&&"Panic(uint256)"!==t||C.throwArgumentError(`cannot specify user defined ${t} error`,"fragment",e),e}class ee extends W{format(e){if(e||(e=V.sighash),V[e]||C.throwArgumentError("invalid format type","format",e),e===V.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map((t=>JSON.parse(t.format(e))))});let t="";return e!==V.sighash&&(t+="error "),t+=this.name+"("+this.inputs.map((t=>t.format(e))).join(e===V.full?", ":",")+") ",t.trim()}static from(e){return"string"==typeof e?ee.fromString(e):ee.fromObject(e)}static fromObject(e){if(ee.isErrorFragment(e))return e;"error"!==e.type&&C.throwArgumentError("invalid error object","value",e);const t={type:e.type,name:ne(e.name),inputs:e.inputs?e.inputs.map(q.fromObject):[]};return $(new ee(U,t))}static fromString(e){let t={type:"error"},r=e.match(ie);return r||C.throwArgumentError("invalid error signature","value",e),t.name=r[1].trim(),t.name&&ne(t.name),t.inputs=K(r[2],!1),$(ee.fromObject(t))}static isErrorFragment(e){return e&&e._isFragment&&"error"===e.type}}function te(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}const re=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function ne(e){return e&&e.match(re)||C.throwArgumentError(`invalid identifier "${e}"`,"value",e),e}const ie=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$"),oe=new f.Logger(l),ae=new RegExp(/^bytes([0-9]*)$/),se=new RegExp(/^(u?int)([0-9]*)$/);class ue{constructor(e){(0,c.zG)(this,"coerceFunc",e||null)}_getCoder(e){switch(e.baseType){case"address":return new w(e.name);case"bool":return new S(e.name);case"string":return new N(e.name);case"bytes":return new E(e.name);case"array":return new P(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new R((e.components||[]).map((e=>this._getCoder(e))),e.name);case"":return new j(e.name)}let t=e.type.match(se);if(t){let r=parseInt(t[2]||"256");return(0===r||r>256||r%8!=0)&&oe.throwArgumentError("invalid "+t[1]+" bit length","param",e),new B(r/8,"int"===t[1],e.name)}if(t=e.type.match(ae),t){let r=parseInt(t[1]);return(0===r||r>32)&&oe.throwArgumentError("invalid bytes length","param",e),new M(r,e.name)}return oe.throwArgumentError("invalid type","type",e.type)}_getWordSize(){return 32}_getReader(e,t){return new y(e,this._getWordSize(),this.coerceFunc,t)}_getWriter(){return new b(this._getWordSize())}getDefaultValue(e){const t=e.map((e=>this._getCoder(q.from(e))));return new R(t,"_").defaultValue()}encode(e,t){e.length!==t.length&&oe.throwError("types/values length mismatch",f.Logger.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});const r=e.map((e=>this._getCoder(q.from(e)))),n=new R(r,"_"),i=this._getWriter();return n.encode(i,t),i.data}decode(e,t,r){const n=e.map((e=>this._getCoder(q.from(e))));return new R(n,"_").decode(this._getReader((0,s.arrayify)(t),r))}}const ce=new ue,fe=new f.Logger(l);class le extends c.dk{}class de extends c.dk{}class he extends c.dk{}class pe extends c.dk{static isIndexed(e){return!(!e||!e._isIndexed)}}const be={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function ye(e,t){const r=new Error(`deferred error during ABI decoding triggered accessing ${e}`);return r.error=t,r}class ge{constructor(e){let t=[];t="string"==typeof e?JSON.parse(e):e,(0,c.zG)(this,"fragments",t.map((e=>W.from(e))).filter((e=>null!=e))),(0,c.zG)(this,"_abiCoder",(0,c.tu)(new.target,"getAbiCoder")()),(0,c.zG)(this,"functions",{}),(0,c.zG)(this,"errors",{}),(0,c.zG)(this,"events",{}),(0,c.zG)(this,"structs",{}),this.fragments.forEach((e=>{let t=null;switch(e.type){case"constructor":return this.deploy?void fe.warn("duplicate definition - constructor"):void(0,c.zG)(this,"deploy",e);case"function":t=this.functions;break;case"event":t=this.events;break;case"error":t=this.errors;break;default:return}let r=e.format();t[r]?fe.warn("duplicate definition - "+r):t[r]=e})),this.deploy||(0,c.zG)(this,"deploy",Y.from({payable:!1,type:"constructor"})),(0,c.zG)(this,"_isInterface",!0)}format(e){e||(e=V.full),e===V.sighash&&fe.throwArgumentError("interface does not support formatting sighash","format",e);const t=this.fragments.map((t=>t.format(e)));return e===V.json?JSON.stringify(t.map((e=>JSON.parse(e)))):t}static getAbiCoder(){return ce}static getAddress(e){return(0,g.getAddress)(e)}static getSighash(e){return(0,s.hexDataSlice)((0,m.id)(e.format()),0,4)}static getEventTopic(e){return(0,m.id)(e.format())}getFunction(e){if((0,s.isHexString)(e)){for(const t in this.functions)if(e===this.getSighash(t))return this.functions[t];fe.throwArgumentError("no matching function","sighash",e)}if(-1===e.indexOf("(")){const t=e.trim(),r=Object.keys(this.functions).filter((e=>e.split("(")[0]===t));return 0===r.length?fe.throwArgumentError("no matching function","name",t):r.length>1&&fe.throwArgumentError("multiple matching functions","name",t),this.functions[r[0]]}const t=this.functions[Q.fromString(e).format()];return t||fe.throwArgumentError("no matching function","signature",e),t}getEvent(e){if((0,s.isHexString)(e)){const t=e.toLowerCase();for(const e in this.events)if(t===this.getEventTopic(e))return this.events[e];fe.throwArgumentError("no matching event","topichash",t)}if(-1===e.indexOf("(")){const t=e.trim(),r=Object.keys(this.events).filter((e=>e.split("(")[0]===t));return 0===r.length?fe.throwArgumentError("no matching event","name",t):r.length>1&&fe.throwArgumentError("multiple matching events","name",t),this.events[r[0]]}const t=this.events[G.fromString(e).format()];return t||fe.throwArgumentError("no matching event","signature",e),t}getError(e){if((0,s.isHexString)(e)){const t=(0,c.tu)(this.constructor,"getSighash");for(const r in this.errors)if(e===t(this.errors[r]))return this.errors[r];fe.throwArgumentError("no matching error","sighash",e)}if(-1===e.indexOf("(")){const t=e.trim(),r=Object.keys(this.errors).filter((e=>e.split("(")[0]===t));return 0===r.length?fe.throwArgumentError("no matching error","name",t):r.length>1&&fe.throwArgumentError("multiple matching errors","name",t),this.errors[r[0]]}const t=this.errors[Q.fromString(e).format()];return t||fe.throwArgumentError("no matching error","signature",e),t}getSighash(e){if("string"==typeof e)try{e=this.getFunction(e)}catch(t){try{e=this.getError(e)}catch(e){throw t}}return(0,c.tu)(this.constructor,"getSighash")(e)}getEventTopic(e){return"string"==typeof e&&(e=this.getEvent(e)),(0,c.tu)(this.constructor,"getEventTopic")(e)}_decodeParams(e,t){return this._abiCoder.decode(e,t)}_encodeParams(e,t){return this._abiCoder.encode(e,t)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeErrorResult(e,t){"string"==typeof e&&(e=this.getError(e));const r=(0,s.arrayify)(t);return(0,s.hexlify)(r.slice(0,4))!==this.getSighash(e)&&fe.throwArgumentError(`data signature does not match error ${e.name}.`,"data",(0,s.hexlify)(r)),this._decodeParams(e.inputs,r.slice(4))}encodeErrorResult(e,t){return"string"==typeof e&&(e=this.getError(e)),(0,s.hexlify)((0,s.concat)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}decodeFunctionData(e,t){"string"==typeof e&&(e=this.getFunction(e));const r=(0,s.arrayify)(t);return(0,s.hexlify)(r.slice(0,4))!==this.getSighash(e)&&fe.throwArgumentError(`data signature does not match function ${e.name}.`,"data",(0,s.hexlify)(r)),this._decodeParams(e.inputs,r.slice(4))}encodeFunctionData(e,t){return"string"==typeof e&&(e=this.getFunction(e)),(0,s.hexlify)((0,s.concat)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}decodeFunctionResult(e,t){"string"==typeof e&&(e=this.getFunction(e));let r=(0,s.arrayify)(t),n=null,i="",o=null,a=null,u=null;switch(r.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,r)}catch(e){}break;case 4:{const e=(0,s.hexlify)(r.slice(0,4)),t=be[e];if(t)o=this._abiCoder.decode(t.inputs,r.slice(4)),a=t.name,u=t.signature,t.reason&&(n=o[0]),"Error"===a?i=`; VM Exception while processing transaction: reverted with reason string ${JSON.stringify(o[0])}`:"Panic"===a&&(i=`; VM Exception while processing transaction: reverted with panic code ${o[0]}`);else try{const t=this.getError(e);o=this._abiCoder.decode(t.inputs,r.slice(4)),a=t.name,u=t.format()}catch(e){}break}}return fe.throwError("call revert exception"+i,f.Logger.errors.CALL_EXCEPTION,{method:e.format(),data:(0,s.hexlify)(t),errorArgs:o,errorName:a,errorSignature:u,reason:n})}encodeFunctionResult(e,t){return"string"==typeof e&&(e=this.getFunction(e)),(0,s.hexlify)(this._abiCoder.encode(e.outputs,t||[]))}encodeFilterTopics(e,t){"string"==typeof e&&(e=this.getEvent(e)),t.length>e.inputs.length&&fe.throwError("too many arguments for "+e.format(),f.Logger.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t});let r=[];e.anonymous||r.push(this.getEventTopic(e));const n=(e,t)=>"string"===e.type?(0,m.id)(t):"bytes"===e.type?(0,v.keccak256)((0,s.hexlify)(t)):("bool"===e.type&&"boolean"==typeof t&&(t=t?"0x01":"0x00"),e.type.match(/^u?int/)&&(t=u.O$.from(t).toHexString()),"address"===e.type&&this._abiCoder.encode(["address"],[t]),(0,s.hexZeroPad)((0,s.hexlify)(t),32));for(t.forEach(((t,i)=>{let o=e.inputs[i];o.indexed?null==t?r.push(null):"array"===o.baseType||"tuple"===o.baseType?fe.throwArgumentError("filtering with tuples or arrays not supported","contract."+o.name,t):Array.isArray(t)?r.push(t.map((e=>n(o,e)))):r.push(n(o,t)):null!=t&&fe.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+o.name,t)}));r.length&&null===r[r.length-1];)r.pop();return r}encodeEventLog(e,t){"string"==typeof e&&(e=this.getEvent(e));const r=[],n=[],i=[];return e.anonymous||r.push(this.getEventTopic(e)),t.length!==e.inputs.length&&fe.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach(((e,o)=>{const a=t[o];if(e.indexed)if("string"===e.type)r.push((0,m.id)(a));else if("bytes"===e.type)r.push((0,v.keccak256)(a));else{if("tuple"===e.baseType||"array"===e.baseType)throw new Error("not implemented");r.push(this._abiCoder.encode([e.type],[a]))}else n.push(e),i.push(a)})),{data:this._abiCoder.encode(n,i),topics:r}}decodeEventLog(e,t,r){if("string"==typeof e&&(e=this.getEvent(e)),null!=r&&!e.anonymous){let t=this.getEventTopic(e);(0,s.isHexString)(r[0],32)&&r[0].toLowerCase()===t||fe.throwError("fragment/topic mismatch",f.Logger.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:t,value:r[0]}),r=r.slice(1)}let n=[],i=[],o=[];e.inputs.forEach(((e,t)=>{e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(n.push(q.fromObject({type:"bytes32",name:e.name})),o.push(!0)):(n.push(e),o.push(!1)):(i.push(e),o.push(!1))}));let a=null!=r?this._abiCoder.decode(n,(0,s.concat)(r)):null,u=this._abiCoder.decode(i,t,!0),c=[],l=0,d=0;e.inputs.forEach(((e,t)=>{if(e.indexed)if(null==a)c[t]=new pe({_isIndexed:!0,hash:null});else if(o[t])c[t]=new pe({_isIndexed:!0,hash:a[d++]});else try{c[t]=a[d++]}catch(e){c[t]=e}else try{c[t]=u[l++]}catch(e){c[t]=e}if(e.name&&null==c[e.name]){const r=c[t];r instanceof Error?Object.defineProperty(c,e.name,{enumerable:!0,get:()=>{throw ye(`property ${JSON.stringify(e.name)}`,r)}}):c[e.name]=r}}));for(let e=0;e<c.length;e++){const t=c[e];t instanceof Error&&Object.defineProperty(c,e,{enumerable:!0,get:()=>{throw ye(`index ${e}`,t)}})}return Object.freeze(c)}parseTransaction(e){let t=this.getFunction(e.data.substring(0,10).toLowerCase());return t?new de({args:this._abiCoder.decode(t.inputs,"0x"+e.data.substring(10)),functionFragment:t,name:t.name,signature:t.format(),sighash:this.getSighash(t),value:u.O$.from(e.value||"0")}):null}parseLog(e){let t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new le({eventFragment:t,name:t.name,signature:t.format(),topic:this.getEventTopic(t),args:this.decodeEventLog(t,e.data,e.topics)})}parseError(e){const t=(0,s.hexlify)(e);let r=this.getError(t.substring(0,10).toLowerCase());return r?new he({args:this._abiCoder.decode(r.inputs,"0x"+t.substring(10)),errorFragment:r,name:r.name,signature:r.format(),sighash:this.getSighash(r)}):null}static isInterface(e){return!(!e||!e._isInterface)}}var me=r(64353),ve=r(48171),we=r(64377),_e=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))};const xe=new f.Logger("contracts/5.7.0"),Oe={chainId:!0,data:!0,from:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0,customData:!0,ccipReadEnabled:!0};function ke(e,t){return _e(this,void 0,void 0,(function*(){const r=yield t;"string"!=typeof r&&xe.throwArgumentError("invalid address or ENS name","name",r);try{return(0,g.getAddress)(r)}catch(e){}e||xe.throwError("a provider or signer is needed to resolve ENS names",f.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});const n=yield e.resolveName(r);return null==n&&xe.throwArgumentError("resolver or addr is not configured for ENS name","name",r),n}))}function Pe(e,t,r){return _e(this,void 0,void 0,(function*(){return Array.isArray(r)?yield Promise.all(r.map(((r,n)=>Pe(e,Array.isArray(t)?t[n]:t[r.name],r)))):"address"===r.type?yield ke(e,t):"tuple"===r.type?yield Pe(e,t,r.components):"array"===r.baseType?Array.isArray(t)?yield Promise.all(t.map((t=>Pe(e,t,r.arrayChildren)))):Promise.reject(xe.makeError("invalid value for array",f.Logger.errors.INVALID_ARGUMENT,{argument:"value",value:t})):t}))}function Se(e,t,r){return _e(this,void 0,void 0,(function*(){let n={};r.length===t.inputs.length+1&&"object"==typeof r[r.length-1]&&(n=(0,c.DC)(r.pop())),xe.checkArgumentCount(r.length,t.inputs.length,"passed to contract"),e.signer?n.from?n.from=(0,c.mE)({override:ke(e.signer,n.from),signer:e.signer.getAddress()}).then((e=>_e(this,void 0,void 0,(function*(){return(0,g.getAddress)(e.signer)!==e.override&&xe.throwError("Contract with a Signer cannot override from",f.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),e.override})))):n.from=e.signer.getAddress():n.from&&(n.from=ke(e.provider,n.from));const i=yield(0,c.mE)({args:Pe(e.signer||e.provider,r,t.inputs),address:e.resolvedAddress,overrides:(0,c.mE)(n)||{}}),o=e.interface.encodeFunctionData(t,i.args),a={data:o,to:i.address},l=i.overrides;if(null!=l.nonce&&(a.nonce=u.O$.from(l.nonce).toNumber()),null!=l.gasLimit&&(a.gasLimit=u.O$.from(l.gasLimit)),null!=l.gasPrice&&(a.gasPrice=u.O$.from(l.gasPrice)),null!=l.maxFeePerGas&&(a.maxFeePerGas=u.O$.from(l.maxFeePerGas)),null!=l.maxPriorityFeePerGas&&(a.maxPriorityFeePerGas=u.O$.from(l.maxPriorityFeePerGas)),null!=l.from&&(a.from=l.from),null!=l.type&&(a.type=l.type),null!=l.accessList&&(a.accessList=(0,we.z7)(l.accessList)),null==a.gasLimit&&null!=t.gas){let e=21e3;const r=(0,s.arrayify)(o);for(let t=0;t<r.length;t++)e+=4,r[t]&&(e+=64);a.gasLimit=u.O$.from(t.gas).add(e)}if(l.value){const e=u.O$.from(l.value);e.isZero()||t.payable||xe.throwError("non-payable method cannot override value",f.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:n.value}),a.value=e}l.customData&&(a.customData=(0,c.DC)(l.customData)),l.ccipReadEnabled&&(a.ccipReadEnabled=!!l.ccipReadEnabled),delete n.nonce,delete n.gasLimit,delete n.gasPrice,delete n.from,delete n.value,delete n.type,delete n.accessList,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas,delete n.customData,delete n.ccipReadEnabled;const d=Object.keys(n).filter((e=>null!=n[e]));return d.length&&xe.throwError(`cannot override ${d.map((e=>JSON.stringify(e))).join(",")}`,f.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:d}),a}))}function Ae(e,t){const r=t.wait.bind(t);t.wait=t=>r(t).then((t=>(t.events=t.logs.map((r=>{let n=(0,c.p$)(r),i=null;try{i=e.interface.parseLog(r)}catch(e){}return i&&(n.args=i.args,n.decode=(t,r)=>e.interface.decodeEventLog(i.eventFragment,t,r),n.event=i.name,n.eventSignature=i.signature),n.removeListener=()=>e.provider,n.getBlock=()=>e.provider.getBlock(t.blockHash),n.getTransaction=()=>e.provider.getTransaction(t.transactionHash),n.getTransactionReceipt=()=>Promise.resolve(t),n})),t)))}function Ee(e,t,r){const n=e.signer||e.provider;return function(...i){return _e(this,void 0,void 0,(function*(){let o;if(i.length===t.inputs.length+1&&"object"==typeof i[i.length-1]){const e=(0,c.DC)(i.pop());null!=e.blockTag&&(o=yield e.blockTag),delete e.blockTag,i.push(e)}null!=e.deployTransaction&&(yield e._deployed(o));const a=yield Se(e,t,i),s=yield n.call(a,o);try{let n=e.interface.decodeFunctionResult(t,s);return r&&1===t.outputs.length&&(n=n[0]),n}catch(t){throw t.code===f.Logger.errors.CALL_EXCEPTION&&(t.address=e.address,t.args=i,t.transaction=a),t}}))}}function Me(e,t,r){return t.constant?Ee(e,t,r):function(e,t){return function(...r){return _e(this,void 0,void 0,(function*(){e.signer||xe.throwError("sending a transaction requires a signer",f.Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),null!=e.deployTransaction&&(yield e._deployed());const n=yield Se(e,t,r),i=yield e.signer.sendTransaction(n);return Ae(e,i),i}))}}(e,t)}function je(e){return!e.address||null!=e.topics&&0!==e.topics.length?(e.address||"*")+"@"+(e.topics?e.topics.map((e=>Array.isArray(e)?e.join("|"):e)).join(":"):""):"*"}class Te{constructor(e,t){(0,c.zG)(this,"tag",e),(0,c.zG)(this,"filter",t),this._listeners=[]}addListener(e,t){this._listeners.push({listener:e,once:t})}removeListener(e){let t=!1;this._listeners=this._listeners.filter((r=>!(!t&&r.listener===e&&(t=!0,1))))}removeAllListeners(){this._listeners=[]}listeners(){return this._listeners.map((e=>e.listener))}listenerCount(){return this._listeners.length}run(e){const t=this.listenerCount();return this._listeners=this._listeners.filter((t=>{const r=e.slice();return setTimeout((()=>{t.listener.apply(this,r)}),0),!t.once})),t}prepareEvent(e){}getEmit(e){return[e]}}class Be extends Te{constructor(){super("error",null)}}class Ie extends Te{constructor(e,t,r,n){const i={address:e};let o=t.getEventTopic(r);n?(o!==n[0]&&xe.throwArgumentError("topic mismatch","topics",n),i.topics=n.slice()):i.topics=[o],super(je(i),i),(0,c.zG)(this,"address",e),(0,c.zG)(this,"interface",t),(0,c.zG)(this,"fragment",r)}prepareEvent(e){super.prepareEvent(e),e.event=this.fragment.name,e.eventSignature=this.fragment.format(),e.decode=(e,t)=>this.interface.decodeEventLog(this.fragment,e,t);try{e.args=this.interface.decodeEventLog(this.fragment,e.data,e.topics)}catch(t){e.args=null,e.decodeError=t}}getEmit(e){const t=h(e.args);if(t.length)throw t[0].error;const r=(e.args||[]).slice();return r.push(e),r}}class Ne extends Te{constructor(e,t){super("*",{address:e}),(0,c.zG)(this,"address",e),(0,c.zG)(this,"interface",t)}prepareEvent(e){super.prepareEvent(e);try{const t=this.interface.parseLog(e);e.event=t.name,e.eventSignature=t.signature,e.decode=(e,r)=>this.interface.decodeEventLog(t.eventFragment,e,r),e.args=t.args}catch(e){}}}class Re{constructor(e,t,r){(0,c.zG)(this,"interface",(0,c.tu)(new.target,"getInterface")(t)),null==r?((0,c.zG)(this,"provider",null),(0,c.zG)(this,"signer",null)):ve.E.isSigner(r)?((0,c.zG)(this,"provider",r.provider||null),(0,c.zG)(this,"signer",r)):me.zt.isProvider(r)?((0,c.zG)(this,"provider",r),(0,c.zG)(this,"signer",null)):xe.throwArgumentError("invalid signer or provider","signerOrProvider",r),(0,c.zG)(this,"callStatic",{}),(0,c.zG)(this,"estimateGas",{}),(0,c.zG)(this,"functions",{}),(0,c.zG)(this,"populateTransaction",{}),(0,c.zG)(this,"filters",{});{const e={};Object.keys(this.interface.events).forEach((t=>{const r=this.interface.events[t];(0,c.zG)(this.filters,t,((...e)=>({address:this.address,topics:this.interface.encodeFilterTopics(r,e)}))),e[r.name]||(e[r.name]=[]),e[r.name].push(t)})),Object.keys(e).forEach((t=>{const r=e[t];1===r.length?(0,c.zG)(this.filters,t,this.filters[r[0]]):xe.warn(`Duplicate definition of ${t} (${r.join(", ")})`)}))}if((0,c.zG)(this,"_runningEvents",{}),(0,c.zG)(this,"_wrappedEmits",{}),null==e&&xe.throwArgumentError("invalid contract address or ENS name","addressOrName",e),(0,c.zG)(this,"address",e),this.provider)(0,c.zG)(this,"resolvedAddress",ke(this.provider,e));else try{(0,c.zG)(this,"resolvedAddress",Promise.resolve((0,g.getAddress)(e)))}catch(e){xe.throwError("provider is required to use ENS name as contract address",f.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}this.resolvedAddress.catch((e=>{}));const n={},i={};Object.keys(this.interface.functions).forEach((e=>{const t=this.interface.functions[e];if(i[e])xe.warn(`Duplicate ABI entry for ${JSON.stringify(e)}`);else{i[e]=!0;{const r=t.name;n[`%${r}`]||(n[`%${r}`]=[]),n[`%${r}`].push(e)}null==this[e]&&(0,c.zG)(this,e,Me(this,t,!0)),null==this.functions[e]&&(0,c.zG)(this.functions,e,Me(this,t,!1)),null==this.callStatic[e]&&(0,c.zG)(this.callStatic,e,Ee(this,t,!0)),null==this.populateTransaction[e]&&(0,c.zG)(this.populateTransaction,e,function(e,t){return function(...r){return Se(e,t,r)}}(this,t)),null==this.estimateGas[e]&&(0,c.zG)(this.estimateGas,e,function(e,t){const r=e.signer||e.provider;return function(...n){return _e(this,void 0,void 0,(function*(){r||xe.throwError("estimate require a provider or signer",f.Logger.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});const i=yield Se(e,t,n);return yield r.estimateGas(i)}))}}(this,t))}})),Object.keys(n).forEach((e=>{const t=n[e];if(t.length>1)return;e=e.substring(1);const r=t[0];try{null==this[e]&&(0,c.zG)(this,e,this[r])}catch(e){}null==this.functions[e]&&(0,c.zG)(this.functions,e,this.functions[r]),null==this.callStatic[e]&&(0,c.zG)(this.callStatic,e,this.callStatic[r]),null==this.populateTransaction[e]&&(0,c.zG)(this.populateTransaction,e,this.populateTransaction[r]),null==this.estimateGas[e]&&(0,c.zG)(this.estimateGas,e,this.estimateGas[r])}))}static getContractAddress(e){return(0,g.getContractAddress)(e)}static getInterface(e){return ge.isInterface(e)?e:new ge(e)}deployed(){return this._deployed()}_deployed(e){return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then((()=>this)):this._deployedPromise=this.provider.getCode(this.address,e).then((e=>("0x"===e&&xe.throwError("contract not deployed",f.Logger.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this)))),this._deployedPromise}fallback(e){this.signer||xe.throwError("sending a transactions require a signer",f.Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});const t=(0,c.DC)(e||{});return["from","to"].forEach((function(e){null!=t[e]&&xe.throwError("cannot override "+e,f.Logger.errors.UNSUPPORTED_OPERATION,{operation:e})})),t.to=this.resolvedAddress,this.deployed().then((()=>this.signer.sendTransaction(t)))}connect(e){"string"==typeof e&&(e=new ve.b(e,this.provider));const t=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&(0,c.zG)(t,"deployTransaction",this.deployTransaction),t}attach(e){return new this.constructor(e,this.interface,this.signer||this.provider)}static isIndexed(e){return pe.isIndexed(e)}_normalizeRunningEvent(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e}_getRunningEvent(e){if("string"==typeof e){if("error"===e)return this._normalizeRunningEvent(new Be);if("event"===e)return this._normalizeRunningEvent(new Te("event",null));if("*"===e)return this._normalizeRunningEvent(new Ne(this.address,this.interface));const t=this.interface.getEvent(e);return this._normalizeRunningEvent(new Ie(this.address,this.interface,t))}if(e.topics&&e.topics.length>0){try{const t=e.topics[0];if("string"!=typeof t)throw new Error("invalid topic");const r=this.interface.getEvent(t);return this._normalizeRunningEvent(new Ie(this.address,this.interface,r,e.topics))}catch(e){}const t={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new Te(je(t),t))}return this._normalizeRunningEvent(new Ne(this.address,this.interface))}_checkRunningEvents(e){if(0===e.listenerCount()){delete this._runningEvents[e.tag];const t=this._wrappedEmits[e.tag];t&&e.filter&&(this.provider.off(e.filter,t),delete this._wrappedEmits[e.tag])}}_wrapEvent(e,t,r){const n=(0,c.p$)(t);return n.removeListener=()=>{r&&(e.removeListener(r),this._checkRunningEvents(e))},n.getBlock=()=>this.provider.getBlock(t.blockHash),n.getTransaction=()=>this.provider.getTransaction(t.transactionHash),n.getTransactionReceipt=()=>this.provider.getTransactionReceipt(t.transactionHash),e.prepareEvent(n),n}_addEventListener(e,t,r){if(this.provider||xe.throwError("events require a provider or a signer with a provider",f.Logger.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(t,r),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){const r=r=>{let n=this._wrapEvent(e,r,t);if(null==n.decodeError)try{const t=e.getEmit(n);this.emit(e.filter,...t)}catch(e){n.decodeError=e.error}null!=e.filter&&this.emit("event",n),null!=n.decodeError&&this.emit("error",n.decodeError,n)};this._wrappedEmits[e.tag]=r,null!=e.filter&&this.provider.on(e.filter,r)}}queryFilter(e,t,r){const n=this._getRunningEvent(e),i=(0,c.DC)(n.filter);return"string"==typeof t&&(0,s.isHexString)(t,32)?(null!=r&&xe.throwArgumentError("cannot specify toBlock with blockhash","toBlock",r),i.blockHash=t):(i.fromBlock=null!=t?t:0,i.toBlock=null!=r?r:"latest"),this.provider.getLogs(i).then((e=>e.map((e=>this._wrapEvent(n,e,null)))))}on(e,t){return this._addEventListener(this._getRunningEvent(e),t,!1),this}once(e,t){return this._addEventListener(this._getRunningEvent(e),t,!0),this}emit(e,...t){if(!this.provider)return!1;const r=this._getRunningEvent(e),n=r.run(t)>0;return this._checkRunningEvents(r),n}listenerCount(e){return this.provider?null==e?Object.keys(this._runningEvents).reduce(((e,t)=>e+this._runningEvents[t].listenerCount()),0):this._getRunningEvent(e).listenerCount():0}listeners(e){if(!this.provider)return[];if(null==e){const e=[];for(let t in this._runningEvents)this._runningEvents[t].listeners().forEach((t=>{e.push(t)}));return e}return this._getRunningEvent(e).listeners()}removeAllListeners(e){if(!this.provider)return this;if(null==e){for(const e in this._runningEvents){const t=this._runningEvents[e];t.removeAllListeners(),this._checkRunningEvents(t)}return this}const t=this._getRunningEvent(e);return t.removeAllListeners(),this._checkRunningEvents(t),this}off(e,t){if(!this.provider)return this;const r=this._getRunningEvent(e);return r.removeListener(t),this._checkRunningEvents(r),this}removeListener(e,t){return this.off(e,t)}}class Ce extends Re{}class Ue{constructor(e,t,r){let n=null;n="string"==typeof t?t:(0,s.isBytes)(t)?(0,s.hexlify)(t):t&&"string"==typeof t.object?t.object:"!","0x"!==n.substring(0,2)&&(n="0x"+n),(!(0,s.isHexString)(n)||n.length%2)&&xe.throwArgumentError("invalid bytecode","bytecode",t),r&&!ve.E.isSigner(r)&&xe.throwArgumentError("invalid signer","signer",r),(0,c.zG)(this,"bytecode",n),(0,c.zG)(this,"interface",(0,c.tu)(new.target,"getInterface")(e)),(0,c.zG)(this,"signer",r||null)}getDeployTransaction(...e){let t={};if(e.length===this.interface.deploy.inputs.length+1&&"object"==typeof e[e.length-1]){t=(0,c.DC)(e.pop());for(const e in t)if(!Oe[e])throw new Error("unknown transaction override "+e)}return["data","from","to"].forEach((e=>{null!=t[e]&&xe.throwError("cannot override "+e,f.Logger.errors.UNSUPPORTED_OPERATION,{operation:e})})),t.value&&(u.O$.from(t.value).isZero()||this.interface.deploy.payable||xe.throwError("non-payable constructor cannot override value",f.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:t.value})),xe.checkArgumentCount(e.length,this.interface.deploy.inputs.length," in Contract constructor"),t.data=(0,s.hexlify)((0,s.concat)([this.bytecode,this.interface.encodeDeploy(e)])),t}deploy(...e){return _e(this,void 0,void 0,(function*(){let t={};e.length===this.interface.deploy.inputs.length+1&&(t=e.pop()),xe.checkArgumentCount(e.length,this.interface.deploy.inputs.length," in Contract constructor");const r=yield Pe(this.signer,e,this.interface.deploy.inputs);r.push(t);const n=this.getDeployTransaction(...r),i=yield this.signer.sendTransaction(n),o=(0,c.tu)(this.constructor,"getContractAddress")(i),a=(0,c.tu)(this.constructor,"getContract")(o,this.interface,this.signer);return Ae(a,i),(0,c.zG)(a,"deployTransaction",i),a}))}attach(e){return this.constructor.getContract(e,this.interface,this.signer)}connect(e){return new this.constructor(this.interface,this.bytecode,e)}static fromSolidity(e,t){null==e&&xe.throwError("missing compiler output",f.Logger.errors.MISSING_ARGUMENT,{argument:"compilerOutput"}),"string"==typeof e&&(e=JSON.parse(e));const r=e.abi;let n=null;return e.bytecode?n=e.bytecode:e.evm&&e.evm.bytecode&&(n=e.evm.bytecode),new this(r,n,t)}static getInterface(e){return Ce.getInterface(e)}static getContractAddress(e){return(0,g.getContractAddress)(e)}static getContract(e,t,r){return new Ce(e,t,r)}}var Le=r(20335),De=r(93752),He=r(9279),Fe=r(57218);const Ve="Ξ";var ze=r(62354),qe=r(9855),Ke=r(48659),We=r(59567),Ge=r(57727),Xe=r(78339),Ze=r(93684),Je=r(67827),Ye=r(36274),Qe=r(67949),$e=r(23951);const et=new RegExp("^bytes([0-9]+)$"),tt=new RegExp("^(u?int)([0-9]*)$"),rt=new RegExp("^(.*)\\[([0-9]*)\\]$"),nt="0000000000000000000000000000000000000000000000000000000000000000",it=new f.Logger("solidity/5.7.0");function ot(e,t,r){switch(e){case"address":return r?(0,s.zeroPad)(t,32):(0,s.arrayify)(t);case"string":return(0,I.Y0)(t);case"bytes":return(0,s.arrayify)(t);case"bool":return t=t?"0x01":"0x00",r?(0,s.zeroPad)(t,32):(0,s.arrayify)(t)}let n=e.match(tt);if(n){let i=parseInt(n[2]||"256");return(n[2]&&String(i)!==n[2]||i%8!=0||0===i||i>256)&&it.throwArgumentError("invalid number type","type",e),r&&(i=256),t=u.O$.from(t).toTwos(i),(0,s.zeroPad)(t,i/8)}if(n=e.match(et),n){const i=parseInt(n[1]);return(String(i)!==n[1]||0===i||i>32)&&it.throwArgumentError("invalid bytes type","type",e),(0,s.arrayify)(t).byteLength!==i&&it.throwArgumentError(`invalid value for ${e}`,"value",t),r?(0,s.arrayify)((t+nt).substring(0,66)):t}if(n=e.match(rt),n&&Array.isArray(t)){const r=n[1];parseInt(n[2]||String(t.length))!=t.length&&it.throwArgumentError(`invalid array length for ${e}`,"value",t);const i=[];return t.forEach((function(e){i.push(ot(r,e,!0))})),(0,s.concat)(i)}return it.throwArgumentError("invalid type","type",e)}function at(e,t){e.length!=t.length&&it.throwArgumentError("wrong number of values; expected ${ types.length }","values",t);const r=[];return e.forEach((function(e,n){r.push(ot(e,t[n]))})),(0,s.hexlify)((0,s.concat)(r))}function st(e,t){return(0,v.keccak256)(at(e,t))}function ut(e,t){return(0,$e.JQ)(at(e,t))}var ct=r(44478),ft=r(52472),lt=r(61843),dt=r(62768);function ht(e,t){t||(t=function(e){return[parseInt(e,16)]});let r=0,n={};return e.split(",").forEach((e=>{let i=e.split(":");r+=parseInt(i[0],16),n[r]=t(i[1])})),n}function pt(e){let t=0;return e.split(",").map((e=>{let r=e.split("-");1===r.length?r[1]="0":""===r[1]&&(r[1]="1");let n=t+parseInt(r[0],16);return t=parseInt(r[1],16),{l:n,h:t}}))}function bt(e,t){let r=0;for(let n=0;n<t.length;n++){let i=t[n];if(r+=i.l,e>=r&&e<=r+i.h&&(e-r)%(i.d||1)==0){if(i.e&&-1!==i.e.indexOf(e-r))continue;return i}}return null}const yt=pt("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),gt="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map((e=>parseInt(e,16))),mt=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],vt=ht("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),wt=ht("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),_t=ht("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",(function(e){if(e.length%4!=0)throw new Error("bad data");let t=[];for(let r=0;r<e.length;r+=4)t.push(parseInt(e.substring(r,r+4),16));return t})),xt=pt("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");function Ot(e){if(e.match(/^[a-z0-9-]*$/i)&&e.length<=59)return e.toLowerCase();let t=(0,I.XL)(e);var r;r=t.map((e=>{if(gt.indexOf(e)>=0)return[];if(e>=65024&&e<=65039)return[];let t=function(e){let t=bt(e,mt);if(t)return[e+t.s];let r=vt[e];if(r)return r;let n=wt[e];return n?[e+n[0]]:_t[e]||null}(e);return t||[e]})),t=r.reduce(((e,t)=>(t.forEach((t=>{e.push(t)})),e)),[]),t=(0,I.XL)((0,I.uu)(t),I.Uj.NFKC),t.forEach((e=>{if(bt(e,xt))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")})),t.forEach((e=>{if(bt(e,yt))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")}));let n=(0,I.uu)(t);if("-"===n.substring(0,1)||"--"===n.substring(2,4)||"-"===n.substring(n.length-1))throw new Error("invalid hyphen");return n}function kt(e){const t=(0,I.Y0)(e);if(t.length>31)throw new Error("bytes32 string must be less than 32 bytes");return(0,s.hexlify)((0,s.concat)([t,Fe.R]).slice(0,32))}function Pt(e){const t=(0,s.arrayify)(e);if(32!==t.length)throw new Error("invalid bytes32 - not 32 bytes long");if(0!==t[31])throw new Error("invalid bytes32 string - no null terminator");let r=31;for(;0===t[r-1];)r--;return(0,I.ZN)(t.slice(0,r))}const St=new f.Logger("units/5.7.0"),At=["wei","kwei","mwei","gwei","szabo","finney","ether"];function Et(e){const t=String(e).split(".");(t.length>2||!t[0].match(/^-?[0-9]*$/)||t[1]&&!t[1].match(/^[0-9]*$/)||"."===e||"-."===e)&&St.throwArgumentError("invalid value","value",e);let r=t[0],n="";for("-"===r.substring(0,1)&&(n="-",r=r.substring(1));"0"===r.substring(0,1);)r=r.substring(1);""===r&&(r="0");let i="";for(2===t.length&&(i="."+(t[1]||"0"));i.length>2&&"0"===i[i.length-1];)i=i.substring(0,i.length-1);const o=[];for(;r.length;){if(r.length<=3){o.unshift(r);break}{const e=r.length-3;o.unshift(r.substring(e)),r=r.substring(0,e)}}return n+o.join(",")+i}function Mt(e,t){if("string"==typeof t){const e=At.indexOf(t);-1!==e&&(t=3*e)}return(0,Le.S5)(e,null!=t?t:18)}function jt(e,t){if("string"!=typeof e&&St.throwArgumentError("value must be a string","value",e),"string"==typeof t){const e=At.indexOf(t);-1!==e&&(t=3*e)}return(0,Le.Ox)(e,null!=t?t:18)}function Tt(e){return Mt(e,18)}function Bt(e){return jt(e,18)}var It=r(58341),Nt=r(21261);const Rt="ethers/5.7.2",Ct=new f.Logger(Rt);try{const e=window;null==e._ethers&&(e._ethers=a)}catch(e){}},80884:(e,t,r)=>{"use strict";var n=r(48764).Buffer,i=r(23944),o=r(49604);function a(e){var t=e;if("string"!=typeof t)throw new Error("[ethjs-util] while padding to even, value must be string, is currently "+typeof t+", while padToEven.");return t.length%2&&(t="0"+t),t}function s(e){return"0x"+e.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(e){var t=s(e);return new n(a(t.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 n.byteLength(e,"utf8")},isHexPrefixed:i,stripHexPrefix:o,padToEven:a,intToHex:s,fromAscii:function(e){for(var t="",r=0;r<e.length;r++){var n=e.charCodeAt(r).toString(16);t+=n.length<2?"0"+n:n}return"0x"+t},fromUtf8:function(e){return"0x"+a(new n(e,"utf8").toString("hex")).replace(/^0+|0+$/g,"")},toAscii:function(e){var t="",r=0,n=e.length;for("0x"===e.substring(0,2)&&(r=2);r<n;r+=2){var i=parseInt(e.substr(r,2),16);t+=String.fromCharCode(i)}return t},toUtf8:function(e){return new n(a(o(e).replace(/^0+|0+$/g,"")),"hex").toString("utf8")},getKeys:function(e,t,r){if(!Array.isArray(e))throw new Error("[ethjs-util] method getKeys expecting type Array as 'params' input, got '"+typeof e+"'");if("string"!=typeof t)throw new Error("[ethjs-util] method getKeys expecting type String for input 'key' got '"+typeof t+"'.");for(var n=[],i=0;i<e.length;i++){var o=e[i][t];if(r&&!o)o="";else if("string"!=typeof o)throw new Error("invalid abi");n.push(o)}return n},isHexString:function(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}}},17187:e=>{"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(r,n){function i(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}b(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&b(e,"error",t,{once:!0})}(e,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,r,n){var i,o,a,c;if(s(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=u(e))>0&&a.length>i&&!a.warned){a.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=e,f.type=t,f.count=a.length,c=f,console&&console.warn&&console.warn(c)}return e}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function l(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=f.bind(n);return i.listener=r,n.wrapFn=i,i}function d(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):p(i,i.length)}function h(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function p(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function b(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){n.once&&e.removeEventListener(t,i),r(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)n(u,this,t);else{var c=u.length,f=p(u,c);for(r=0;r<c;++r)n(f[r],this,t)}return!0},o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,l(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,l(this,e,t)),this},o.prototype.removeListener=function(e,t){var r,n,i,o,a;if(s(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return d(this,e,!0)},o.prototype.rawListeners=function(e){return d(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},94029:(e,t,r)=>{"use strict";var n=r(95320),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){if(!n(t))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=r),"[object Array]"===i.call(e)?function(e,t,r){for(var n=0,i=e.length;n<i;n++)o.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))}(e,t,a):"string"==typeof e?function(e,t,r){for(var n=0,i=e.length;n<i;n++)null==r?t(e.charAt(n),n,e):t.call(r,e.charAt(n),n,e)}(e,t,a):function(e,t,r){for(var n in e)o.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))}(e,t,a)}},17648:e=>{"use strict";var t=Array.prototype.slice,r=Object.prototype.toString;e.exports=function(e){var n=this;if("function"!=typeof n||"[object Function]"!==r.call(n))throw new TypeError("Function.prototype.bind called on incompatible "+n);for(var i,o=t.call(arguments,1),a=Math.max(0,n.length-o.length),s=[],u=0;u<a;u++)s.push("$"+u);if(i=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var r=n.apply(this,o.concat(t.call(arguments)));return Object(r)===r?r:this}return n.apply(e,o.concat(t.call(arguments)))})),n.prototype){var c=function(){};c.prototype=n.prototype,i.prototype=new c,c.prototype=null}return i}},58612:(e,t,r)=>{"use strict";var n=r(17648);e.exports=Function.prototype.bind||n},40210:(e,t,r)=>{"use strict";var n,i=SyntaxError,o=Function,a=TypeError,s=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(e){u=null}var c=function(){throw new a},f=u?function(){try{return c}catch(e){try{return u(arguments,"callee").get}catch(e){return c}}}():c,l=r(41405)(),d=Object.getPrototypeOf||function(e){return e.__proto__},h={},p="undefined"==typeof Uint8Array?n:d(Uint8Array),b={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":l?d([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":l?d(d([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&l?d((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&l?d((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":l?d(""[Symbol.iterator]()):n,"%Symbol%":l?Symbol:n,"%SyntaxError%":i,"%ThrowTypeError%":f,"%TypedArray%":p,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet},y=function e(t){var r;if("%AsyncFunction%"===t)r=s("async function () {}");else if("%GeneratorFunction%"===t)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=s("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&(r=d(i.prototype))}return b[t]=r,r},g={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},m=r(58612),v=r(17642),w=m.call(Function.call,Array.prototype.concat),_=m.call(Function.apply,Array.prototype.splice),x=m.call(Function.call,String.prototype.replace),O=m.call(Function.call,String.prototype.slice),k=m.call(Function.call,RegExp.prototype.exec),P=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,S=/\\(\\)?/g,A=function(e,t){var r,n=e;if(v(g,n)&&(n="%"+(r=g[n])[0]+"%"),v(b,n)){var o=b[n];if(o===h&&(o=y(n)),void 0===o&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===k(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=O(e,0,1),r=O(e,-1);if("%"===t&&"%"!==r)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var n=[];return x(e,P,(function(e,t,r,i){n[n.length]=r?x(i,S,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",o=A("%"+n+"%",t),s=o.name,c=o.value,f=!1,l=o.alias;l&&(n=l[0],_(r,w([0,1],l)));for(var d=1,h=!0;d<r.length;d+=1){var p=r[d],y=O(p,0,1),g=O(p,-1);if(('"'===y||"'"===y||"`"===y||'"'===g||"'"===g||"`"===g)&&y!==g)throw new i("property names with quotes must have matching quotes");if("constructor"!==p&&h||(f=!0),v(b,s="%"+(n+="."+p)+"%"))c=b[s];else if(null!=c){if(!(p in c)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(u&&d+1>=r.length){var m=u(c,p);c=(h=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:c[p]}else h=v(c,p),c=c[p];h&&!f&&(b[s]=c)}}return c}},27296:(e,t,r)=>{"use strict";var n=r(40210)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},31044:(e,t,r)=>{"use strict";var n=r(40210)("%Object.defineProperty%",!0),i=function(){if(n)try{return n({},"a",{value:1}),!0}catch(e){return!1}return!1};i.hasArrayLengthDefineBug=function(){if(!i())return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},41405:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(55419);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},55419:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},96410:(e,t,r)=>{"use strict";var n=r(55419);e.exports=function(){return n()&&!!Symbol.toStringTag}},17642:(e,t,r)=>{"use strict";var n=r(58612);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},3349:(e,t,r)=>{"use strict";var n=r(89509).Buffer,i=r(88473).Transform;function o(e){i.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(35717)(o,i),o.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)},o.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},o.prototype.update=function(e,t){if(function(e,t){if(!n.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer")}(e),this._finalized)throw new Error("Digest already called");n.isBuffer(e)||(e=n.from(e,t));for(var r=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)r[o++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)r[this._blockOffset++]=e[i++];for(var a=0,s=8*e.length;s>0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=o},33715:(e,t,r)=>{var n=t;n.utils=r(26436),n.common=r(95772),n.sha=r(89041),n.ripemd=r(12949),n.hmac=r(52344),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},95772:(e,t,r)=>{"use strict";var n=r(26436),i=r(79746);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=new Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=e>>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o<this.padLength;o++)n[i++]=0;return n}},52344:(e,t,r)=>{"use strict";var n=r(26436),i=r(79746);function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,r))}e.exports=o,o.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},o.prototype.update=function(e,t){return this.inner.update(e,t),this},o.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},12949:(e,t,r)=>{"use strict";var n=r(26436),i=r(95772),o=n.rotl32,a=n.sum32,s=n.sum32_3,u=n.sum32_4,c=i.BlockHash;function f(){if(!(this instanceof f))return new f;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function l(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function d(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function h(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}n.inherits(f,c),t.ripemd160=f,f.blockSize=512,f.outSize=160,f.hmacStrength=192,f.padLength=64,f.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],i=this.h[2],c=this.h[3],f=this.h[4],m=r,v=n,w=i,_=c,x=f,O=0;O<80;O++){var k=a(o(u(r,l(O,n,i,c),e[p[O]+t],d(O)),y[O]),f);r=f,f=c,c=o(i,10),i=n,n=k,k=a(o(u(m,l(79-O,v,w,_),e[b[O]+t],h(O)),g[O]),x),m=x,x=_,_=o(w,10),w=v,v=k}k=s(this.h[1],i,_),this.h[1]=s(this.h[2],c,x),this.h[2]=s(this.h[3],f,m),this.h[3]=s(this.h[4],r,v),this.h[4]=s(this.h[0],n,w),this.h[0]=k},f.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],b=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],y=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],g=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},89041:(e,t,r)=>{"use strict";t.sha1=r(84761),t.sha224=r(10799),t.sha256=r(89344),t.sha384=r(80772),t.sha512=r(45900)},84761:(e,t,r)=>{"use strict";var n=r(26436),i=r(95772),o=r(37038),a=n.rotl32,s=n.sum32,u=n.sum32_5,c=o.ft_1,f=i.BlockHash,l=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;f.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(d,f),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=a(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],o=this.h[1],f=this.h[2],d=this.h[3],h=this.h[4];for(n=0;n<r.length;n++){var p=~~(n/20),b=u(a(i,5),c(p,o,f,d),h,r[n],l[p]);h=d,d=f,f=a(o,30),o=i,i=b}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],f),this.h[3]=s(this.h[3],d),this.h[4]=s(this.h[4],h)},d.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},10799:(e,t,r)=>{"use strict";var n=r(26436),i=r(89344);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(o,i),e.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},89344:(e,t,r)=>{"use strict";var n=r(26436),i=r(95772),o=r(37038),a=r(79746),s=n.sum32,u=n.sum32_4,c=n.sum32_5,f=o.ch32,l=o.maj32,d=o.s0_256,h=o.s1_256,p=o.g0_256,b=o.g1_256,y=i.BlockHash,g=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function m(){if(!(this instanceof m))return new m;y.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}n.inherits(m,y),e.exports=m,m.blockSize=512,m.outSize=256,m.hmacStrength=192,m.padLength=64,m.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=u(b(r[n-2]),r[n-7],p(r[n-15]),r[n-16]);var i=this.h[0],o=this.h[1],y=this.h[2],g=this.h[3],m=this.h[4],v=this.h[5],w=this.h[6],_=this.h[7];for(a(this.k.length===r.length),n=0;n<r.length;n++){var x=c(_,h(m),f(m,v,w),this.k[n],r[n]),O=s(d(i),l(i,o,y));_=w,w=v,v=m,m=s(g,x),g=y,y=o,o=i,i=s(x,O)}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],y),this.h[3]=s(this.h[3],g),this.h[4]=s(this.h[4],m),this.h[5]=s(this.h[5],v),this.h[6]=s(this.h[6],w),this.h[7]=s(this.h[7],_)},m.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},80772:(e,t,r)=>{"use strict";var n=r(26436),i=r(45900);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(o,i),e.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},45900:(e,t,r)=>{"use strict";var n=r(26436),i=r(95772),o=r(79746),a=n.rotr64_hi,s=n.rotr64_lo,u=n.shr64_hi,c=n.shr64_lo,f=n.sum64,l=n.sum64_hi,d=n.sum64_lo,h=n.sum64_4_hi,p=n.sum64_4_lo,b=n.sum64_5_hi,y=n.sum64_5_lo,g=i.BlockHash,m=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function v(){if(!(this instanceof v))return new v;g.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=m,this.W=new Array(160)}function w(e,t,r,n,i){var o=e&r^~e&i;return o<0&&(o+=4294967296),o}function _(e,t,r,n,i,o){var a=t&n^~t&o;return a<0&&(a+=4294967296),a}function x(e,t,r,n,i){var o=e&r^e&i^r&i;return o<0&&(o+=4294967296),o}function O(e,t,r,n,i,o){var a=t&n^t&o^n&o;return a<0&&(a+=4294967296),a}function k(e,t){var r=a(e,t,28)^a(t,e,2)^a(t,e,7);return r<0&&(r+=4294967296),r}function P(e,t){var r=s(e,t,28)^s(t,e,2)^s(t,e,7);return r<0&&(r+=4294967296),r}function S(e,t){var r=s(e,t,14)^s(e,t,18)^s(t,e,9);return r<0&&(r+=4294967296),r}function A(e,t){var r=a(e,t,1)^a(e,t,8)^u(e,t,7);return r<0&&(r+=4294967296),r}function E(e,t){var r=s(e,t,1)^s(e,t,8)^c(e,t,7);return r<0&&(r+=4294967296),r}function M(e,t){var r=s(e,t,19)^s(t,e,29)^c(e,t,6);return r<0&&(r+=4294967296),r}n.inherits(v,g),e.exports=v,v.blockSize=1024,v.outSize=512,v.hmacStrength=192,v.padLength=128,v.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n<r.length;n+=2){var i=(y=r[n-4],g=r[n-3],m=void 0,(m=a(y,g,19)^a(g,y,29)^u(y,g,6))<0&&(m+=4294967296),m),o=M(r[n-4],r[n-3]),s=r[n-14],c=r[n-13],f=A(r[n-30],r[n-29]),l=E(r[n-30],r[n-29]),d=r[n-32],b=r[n-31];r[n]=h(i,o,s,c,f,l,d,b),r[n+1]=p(i,o,s,c,f,l,d,b)}var y,g,m},v.prototype._update=function(e,t){this._prepareBlock(e,t);var r,n,i,s=this.W,u=this.h[0],c=this.h[1],h=this.h[2],p=this.h[3],g=this.h[4],m=this.h[5],v=this.h[6],A=this.h[7],E=this.h[8],M=this.h[9],j=this.h[10],T=this.h[11],B=this.h[12],I=this.h[13],N=this.h[14],R=this.h[15];o(this.k.length===s.length);for(var C=0;C<s.length;C+=2){var U=N,L=R,D=(i=void 0,(i=a(r=E,n=M,14)^a(r,n,18)^a(n,r,9))<0&&(i+=4294967296),i),H=S(E,M),F=w(E,0,j,0,B),V=_(0,M,0,T,0,I),z=this.k[C],q=this.k[C+1],K=s[C],W=s[C+1],G=b(U,L,D,H,F,V,z,q,K,W),X=y(U,L,D,H,F,V,z,q,K,W);U=k(u,c),L=P(u,c),D=x(u,0,h,0,g),H=O(0,c,0,p,0,m);var Z=l(U,L,D,H),J=d(U,L,D,H);N=B,R=I,B=j,I=T,j=E,T=M,E=l(v,A,G,X),M=d(A,A,G,X),v=g,A=m,g=h,m=p,h=u,p=c,u=l(G,X,Z,J),c=d(G,X,Z,J)}f(this.h,0,u,c),f(this.h,2,h,p),f(this.h,4,g,m),f(this.h,6,v,A),f(this.h,8,E,M),f(this.h,10,j,T),f(this.h,12,B,I),f(this.h,14,N,R)},v.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},37038:(e,t,r)=>{"use strict";var n=r(26436).rotr32;function i(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?i(t,r,n):1===e||3===e?a(t,r,n):2===e?o(t,r,n):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},26436:(e,t,r)=>{"use strict";var n=r(79746),i=r(35717);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function u(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=i,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<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16))}else for(var n=0,i=0;i<e.length;i++){var a=e.charCodeAt(i);a<128?r[n++]=a:a<2048?(r[n++]=a>>6|192,r[n++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(i=0;i<e.length;i++)r[i]=0|e[i];return r},t.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=s(e[r].toString(16));return t},t.htonl=a,t.toHex32=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e[n];"little"===t&&(i=a(i)),r+=u(i.toString(16))}return r},t.zero2=s,t.zero8=u,t.join32=function(e,t,r,i){var o=r-t;n(o%4==0);for(var a=new Array(o/4),s=0,u=t;s<a.length;s++,u+=4){var c;c="big"===i?e[u]<<24|e[u+1]<<16|e[u+2]<<8|e[u+3]:e[u+3]<<24|e[u+2]<<16|e[u+1]<<8|e[u],a[s]=c>>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n<e.length;n++,i+=4){var o=e[n];"big"===t?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=(o<n?1:0)+r+i;e[t]=a>>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return(t+n>>>0<t?1:0)+e+r>>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,a,s){var u=0,c=t;return u+=(c=c+n>>>0)<t?1:0,u+=(c=c+o>>>0)<o?1:0,e+r+i+a+(u+=(c=c+s>>>0)<s?1:0)>>>0},t.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,a,s,u,c){var f=0,l=t;return f+=(l=l+n>>>0)<t?1:0,f+=(l=l+o>>>0)<o?1:0,f+=(l=l+s>>>0)<s?1:0,e+r+i+a+u+(f+=(l=l+c>>>0)<c?1:0)>>>0},t.sum64_5_lo=function(e,t,r,n,i,o,a,s,u,c){return t+n+o+s+c>>>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}},2156:(e,t,r)=>{"use strict";var n=r(33715),i=r(34504),o=r(79746);function a(e){if(!(this instanceof a))return new a(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=a,a.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},a.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},a.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},a.prototype.reseed=function(e,t,r,n){"string"!=typeof t&&(n=r,r=t,t=null),e=i.toArray(e,t),r=i.toArray(r,n),o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length<e;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var a=o.slice(0,e);return this._update(r),this._reseed++,i.encode(a,t)}},80645:(e,t)=>{t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,c=u>>1,f=-7,l=r?i-1:0,d=r?-1:1,h=e[t+l];for(l+=d,o=h&(1<<-f)-1,h>>=-f,f+=s;f>0;o=256*o+e[t+l],l+=d,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=n;f>0;a=256*a+e[t+l],l+=d,f-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),o-=c}return(h?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,u,c=8*o-i-1,f=(1<<c)-1,l=f>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:o-1,p=n?1:-1,b=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=f):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+l>=1?d/u:d*Math.pow(2,1-l))*u>=2&&(a++,u/=2),a+l>=f?(s=0,a=f):a+l>=1?(s=(t*u-1)*Math.pow(2,i),a+=l):(s=t*Math.pow(2,l-1)*Math.pow(2,i),a=0));i>=8;e[r+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[r+h]=255&a,h+=p,a/=256,c-=8);e[r+h-p]|=128*b}},35717:e=>{"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}}},1476:e=>{"use strict";const t="[a-fA-F\\d:]",r=e=>e&&e.includeBoundaries?`(?:(?<=\\s|^)(?=${t})|(?<=${t})(?=\\s|$))`:"",n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",i="[a-fA-F\\d]{1,4}",o=`\n(?:\n(?:${i}:){7}(?:${i}|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:${i}:){6}(?:${n}|:${i}|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:${i}:){5}(?::${n}|(?::${i}){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:${i}:){4}(?:(?::${i}){0,1}:${n}|(?::${i}){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:${i}:){3}(?:(?::${i}){0,2}:${n}|(?::${i}){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:${i}:){2}(?:(?::${i}){0,3}:${n}|(?::${i}){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:${i}:){1}(?:(?::${i}){0,4}:${n}|(?::${i}){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::${i}){0,5}:${n}|(?::${i}){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n`.replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),a=new RegExp(`(?:^${n}$)|(?:^${o}$)`),s=new RegExp(`^${n}$`),u=new RegExp(`^${o}$`),c=e=>e&&e.exact?a:new RegExp(`(?:${r(e)}${n}${r(e)})|(?:${r(e)}${o}${r(e)})`,"g");c.v4=e=>e&&e.exact?s:new RegExp(`${r(e)}${n}${r(e)}`,"g"),c.v6=e=>e&&e.exact?u:new RegExp(`${r(e)}${o}${r(e)}`,"g"),e.exports=c},82584:(e,t,r)=>{"use strict";var n=r(96410)(),i=r(21924)("Object.prototype.toString"),o=function(e){return!(n&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},a=function(e){return!!o(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"[object Function]"===i(e.callee)},s=function(){return o(arguments)}();o.isLegacyArguments=a,e.exports=s?o:a},35171:e=>{e.exports=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},95320:e=>{"use strict";var t,r,n=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i((function(){throw 42}),null,t)}catch(e){e!==r&&(i=null)}else i=null;var o=/^\s*class\b/,a=function(e){try{var t=n.call(e);return o.test(t)}catch(e){return!1}},s=function(e){try{return!a(e)&&(n.call(e),!0)}catch(e){return!1}},u=Object.prototype.toString,c="function"==typeof Symbol&&!!Symbol.toStringTag,f=!(0 in[,]),l=function(){return!1};if("object"==typeof document){var d=document.all;u.call(d)===u.call(document.all)&&(l=function(e){if((f||!e)&&(void 0===e||"object"==typeof e))try{var t=u.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=i?function(e){if(l(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{i(e,null,t)}catch(e){if(e!==r)return!1}return!a(e)&&s(e)}:function(e){if(l(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(c)return s(e);if(a(e))return!1;var t=u.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&s(e)}},48662:(e,t,r)=>{"use strict";var n,i=Object.prototype.toString,o=Function.prototype.toString,a=/^\s*(?:function)?\*/,s=r(96410)(),u=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(a.test(o.call(e)))return!0;if(!s)return"[object GeneratorFunction]"===i.call(e);if(!u)return!1;if(void 0===n){var t=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(e){}}();n=!!t&&u(t)}return u(e)===n}},23944:e=>{e.exports=function(e){if("string"!=typeof e)throw new Error("[is-hex-prefixed] value must be type 'string', is currently type "+typeof e+", while checking isHexPrefixed.");return"0x"===e.slice(0,2)}},98611:e=>{"use strict";e.exports=function(e){return e!=e}},20360:(e,t,r)=>{"use strict";var n=r(55559),i=r(4289),o=r(98611),a=r(29415),s=r(23194),u=n(a(),Number);i(u,{getPolyfill:a,implementation:o,shim:s}),e.exports=u},29415:(e,t,r)=>{"use strict";var n=r(98611);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},23194:(e,t,r)=>{"use strict";var n=r(4289),i=r(29415);e.exports=function(){var e=i();return n(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},85692:(e,t,r)=>{"use strict";var n=r(94029),i=r(63083),o=r(21924),a=o("Object.prototype.toString"),s=r(96410)(),u=r(27296),c="undefined"==typeof globalThis?r.g:globalThis,f=i(),l=o("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return-1},d=o("String.prototype.slice"),h={},p=Object.getPrototypeOf;s&&u&&p&&n(f,(function(e){var t=new c[e];if(Symbol.toStringTag in t){var r=p(t),n=u(r,Symbol.toStringTag);if(!n){var i=p(r);n=u(i,Symbol.toStringTag)}h[e]=n.get}})),e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!s||!(Symbol.toStringTag in e)){var t=d(a(e),8,-1);return l(f,t)>-1}return!!u&&function(e){var t=!1;return n(h,(function(r,n){if(!t)try{t=r.call(e)===n}catch(e){}})),t}(e)}},4501:e=>{e.exports=n,n.strict=i,n.loose=o;var t=Object.prototype.toString,r={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0};function n(e){return i(e)||o(e)}function i(e){return e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array}function o(e){return r[t.call(e)]}},91094:(e,t,r)=>{var n,i=r(34155);!function(){"use strict";var o="input is invalid type",a="object"==typeof window,s=a?window:{};s.JS_SHA3_NO_WINDOW&&(a=!1);var u=!a&&"object"==typeof self;!s.JS_SHA3_NO_NODE_JS&&"object"==typeof i&&i.versions&&i.versions.node?s=r.g:u&&(s=self);var c=!s.JS_SHA3_NO_COMMON_JS&&e.exports,f=r.amdO,l=!s.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,d="0123456789abcdef".split(""),h=[4,1024,262144,67108864],p=[0,8,16,24],b=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],y=[224,256,384,512],g=[128,256],m=["hex","buffer","arrayBuffer","array","digest"],v={128:168,256:136};!s.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!l||!s.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var w=function(e,t,r){return function(n){return new R(e,t,e).update(n)[r]()}},_=function(e,t,r){return function(n,i){return new R(e,t,i).update(n)[r]()}},x=function(e,t,r){return function(t,n,i,o){return A["cshake"+e].update(t,n,i,o)[r]()}},O=function(e,t,r){return function(t,n,i,o){return A["kmac"+e].update(t,n,i,o)[r]()}},k=function(e,t,r,n){for(var i=0;i<m.length;++i){var o=m[i];e[o]=t(r,n,o)}return e},P=function(e,t){var r=w(e,t,"hex");return r.create=function(){return new R(e,t,e)},r.update=function(e){return r.create().update(e)},k(r,w,e,t)},S=[{name:"keccak",padding:[1,256,65536,16777216],bits:y,createMethod:P},{name:"sha3",padding:[6,1536,393216,100663296],bits:y,createMethod:P},{name:"shake",padding:[31,7936,2031616,520093696],bits:g,createMethod:function(e,t){var r=_(e,t,"hex");return r.create=function(r){return new R(e,t,r)},r.update=function(e,t){return r.create(t).update(e)},k(r,_,e,t)}},{name:"cshake",padding:h,bits:g,createMethod:function(e,t){var r=v[e],n=x(e,0,"hex");return n.create=function(n,i,o){return i||o?new R(e,t,n).bytepad([i,o],r):A["shake"+e].create(n)},n.update=function(e,t,r,i){return n.create(t,r,i).update(e)},k(n,x,e,t)}},{name:"kmac",padding:h,bits:g,createMethod:function(e,t){var r=v[e],n=O(e,0,"hex");return n.create=function(n,i,o){return new C(e,t,i).bytepad(["KMAC",o],r).bytepad([n],r)},n.update=function(e,t,r,i){return n.create(e,r,i).update(t)},k(n,O,e,t)}}],A={},E=[],M=0;M<S.length;++M)for(var j=S[M],T=j.bits,B=0;B<T.length;++B){var I=j.name+"_"+T[B];if(E.push(I),A[I]=j.createMethod(T[B],j.padding),"sha3"!==j.name){var N=j.name+T[B];E.push(N),A[N]=A[I]}}function R(e,t,r){this.blocks=[],this.s=[],this.padding=t,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function C(e,t,r){R.call(this,e,t,r)}R.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var t,r=typeof e;if("string"!==r){if("object"!==r)throw new Error(o);if(null===e)throw new Error(o);if(l&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||l&&ArrayBuffer.isView(e)))throw new Error(o);t=!0}for(var n,i,a=this.blocks,s=this.byteCount,u=e.length,c=this.blockCount,f=0,d=this.s;f<u;){if(this.reset)for(this.reset=!1,a[0]=this.block,n=1;n<c+1;++n)a[n]=0;if(t)for(n=this.start;f<u&&n<s;++f)a[n>>2]|=e[f]<<p[3&n++];else for(n=this.start;f<u&&n<s;++f)(i=e.charCodeAt(f))<128?a[n>>2]|=i<<p[3&n++]:i<2048?(a[n>>2]|=(192|i>>6)<<p[3&n++],a[n>>2]|=(128|63&i)<<p[3&n++]):i<55296||i>=57344?(a[n>>2]|=(224|i>>12)<<p[3&n++],a[n>>2]|=(128|i>>6&63)<<p[3&n++],a[n>>2]|=(128|63&i)<<p[3&n++]):(i=65536+((1023&i)<<10|1023&e.charCodeAt(++f)),a[n>>2]|=(240|i>>18)<<p[3&n++],a[n>>2]|=(128|i>>12&63)<<p[3&n++],a[n>>2]|=(128|i>>6&63)<<p[3&n++],a[n>>2]|=(128|63&i)<<p[3&n++]);if(this.lastByteIndex=n,n>=s){for(this.start=n-s,this.block=a[c],n=0;n<c;++n)d[n]^=a[n];U(d),this.reset=!0}else this.start=n}return this},R.prototype.encode=function(e,t){var r=255&e,n=1,i=[r];for(r=255&(e>>=8);r>0;)i.unshift(r),r=255&(e>>=8),++n;return t?i.push(n):i.unshift(n),this.update(i),i.length},R.prototype.encodeString=function(e){var t,r=typeof e;if("string"!==r){if("object"!==r)throw new Error(o);if(null===e)throw new Error(o);if(l&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||l&&ArrayBuffer.isView(e)))throw new Error(o);t=!0}var n=0,i=e.length;if(t)n=i;else for(var a=0;a<e.length;++a){var s=e.charCodeAt(a);s<128?n+=1:s<2048?n+=2:s<55296||s>=57344?n+=3:(s=65536+((1023&s)<<10|1023&e.charCodeAt(++a)),n+=4)}return n+=this.encode(8*n),this.update(e),n},R.prototype.bytepad=function(e,t){for(var r=this.encode(t),n=0;n<e.length;++n)r+=this.encodeString(e[n]);var i=t-r%t,o=[];return o.length=i,this.update(o),this},R.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex,r=this.blockCount,n=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[r],t=1;t<r+1;++t)e[t]=0;for(e[r-1]|=2147483648,t=0;t<r;++t)n[t]^=e[t];U(n)}},R.prototype.toString=R.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s="";a<n;){for(o=0;o<t&&a<n;++o,++a)e=r[o],s+=d[e>>4&15]+d[15&e]+d[e>>12&15]+d[e>>8&15]+d[e>>20&15]+d[e>>16&15]+d[e>>28&15]+d[e>>24&15];a%t==0&&(U(r),o=0)}return i&&(e=r[o],s+=d[e>>4&15]+d[15&e],i>1&&(s+=d[e>>12&15]+d[e>>8&15]),i>2&&(s+=d[e>>20&15]+d[e>>16&15])),s},R.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;e=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(s);for(var u=new Uint32Array(e);a<n;){for(o=0;o<t&&a<n;++o,++a)u[a]=r[o];a%t==0&&U(r)}return i&&(u[o]=r[o],e=e.slice(0,s)),e},R.prototype.buffer=R.prototype.arrayBuffer,R.prototype.digest=R.prototype.array=function(){this.finalize();for(var e,t,r=this.blockCount,n=this.s,i=this.outputBlocks,o=this.extraBytes,a=0,s=0,u=[];s<i;){for(a=0;a<r&&s<i;++a,++s)e=s<<2,t=n[a],u[e]=255&t,u[e+1]=t>>8&255,u[e+2]=t>>16&255,u[e+3]=t>>24&255;s%r==0&&U(n)}return o&&(e=s<<2,t=n[a],u[e]=255&t,o>1&&(u[e+1]=t>>8&255),o>2&&(u[e+2]=t>>16&255)),u},C.prototype=new R,C.prototype.finalize=function(){return this.encode(this.outputBits,!0),R.prototype.finalize.call(this)};var U=function(e){var t,r,n,i,o,a,s,u,c,f,l,d,h,p,y,g,m,v,w,_,x,O,k,P,S,A,E,M,j,T,B,I,N,R,C,U,L,D,H,F,V,z,q,K,W,G,X,Z,J,Y,Q,$,ee,te,re,ne,ie,oe,ae,se,ue,ce,fe;for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],u=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],f=e[6]^e[16]^e[26]^e[36]^e[46],l=e[7]^e[17]^e[27]^e[37]^e[47],t=(d=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|s>>>31),r=(h=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|a>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=i^(u<<1|c>>>31),r=o^(c<<1|u>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=a^(f<<1|l>>>31),r=s^(l<<1|f>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=u^(d<<1|h>>>31),r=c^(h<<1|d>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=f^(i<<1|o>>>31),r=l^(o<<1|i>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,p=e[0],y=e[1],G=e[11]<<4|e[10]>>>28,X=e[10]<<4|e[11]>>>28,M=e[20]<<3|e[21]>>>29,j=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ue=e[30]<<9|e[31]>>>23,z=e[40]<<18|e[41]>>>14,q=e[41]<<18|e[40]>>>14,R=e[2]<<1|e[3]>>>31,C=e[3]<<1|e[2]>>>31,g=e[13]<<12|e[12]>>>20,m=e[12]<<12|e[13]>>>20,Z=e[22]<<10|e[23]>>>22,J=e[23]<<10|e[22]>>>22,T=e[33]<<13|e[32]>>>19,B=e[32]<<13|e[33]>>>19,ce=e[42]<<2|e[43]>>>30,fe=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,re=e[4]<<30|e[5]>>>2,U=e[14]<<6|e[15]>>>26,L=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,Y=e[34]<<15|e[35]>>>17,Q=e[35]<<15|e[34]>>>17,I=e[45]<<29|e[44]>>>3,N=e[44]<<29|e[45]>>>3,P=e[6]<<28|e[7]>>>4,S=e[7]<<28|e[6]>>>4,ne=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,D=e[26]<<25|e[27]>>>7,H=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,x=e[37]<<21|e[36]>>>11,$=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,K=e[8]<<27|e[9]>>>5,W=e[9]<<27|e[8]>>>5,A=e[18]<<20|e[19]>>>12,E=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,F=e[38]<<8|e[39]>>>24,V=e[39]<<8|e[38]>>>24,O=e[48]<<14|e[49]>>>18,k=e[49]<<14|e[48]>>>18,e[0]=p^~g&v,e[1]=y^~m&w,e[10]=P^~A&M,e[11]=S^~E&j,e[20]=R^~U&D,e[21]=C^~L&H,e[30]=K^~G&Z,e[31]=W^~X&J,e[40]=te^~ne&oe,e[41]=re^~ie&ae,e[2]=g^~v&_,e[3]=m^~w&x,e[12]=A^~M&T,e[13]=E^~j&B,e[22]=U^~D&F,e[23]=L^~H&V,e[32]=G^~Z&Y,e[33]=X^~J&Q,e[42]=ne^~oe&se,e[43]=ie^~ae&ue,e[4]=v^~_&O,e[5]=w^~x&k,e[14]=M^~T&I,e[15]=j^~B&N,e[24]=D^~F&z,e[25]=H^~V&q,e[34]=Z^~Y&$,e[35]=J^~Q&ee,e[44]=oe^~se&ce,e[45]=ae^~ue&fe,e[6]=_^~O&p,e[7]=x^~k&y,e[16]=T^~I&P,e[17]=B^~N&S,e[26]=F^~z&R,e[27]=V^~q&C,e[36]=Y^~$&K,e[37]=Q^~ee&W,e[46]=se^~ce&te,e[47]=ue^~fe&re,e[8]=O^~p&g,e[9]=k^~y&m,e[18]=I^~P&A,e[19]=N^~S&E,e[28]=z^~R&U,e[29]=q^~C&L,e[38]=$^~K&G,e[39]=ee^~W&X,e[48]=ce^~te&ne,e[49]=fe^~re&ie,e[0]^=b[n],e[1]^=b[n+1]};if(c)e.exports=A;else{for(M=0;M<E.length;++M)s[E[M]]=A[E[M]];f&&(void 0===(n=function(){return A}.call(t,r,t,e))||(e.exports=n))}}()},95811:(e,t,r)=>{e.exports=r(26066)(r(79653))},26066:(e,t,r)=>{const n=r(37016),i=r(5675);e.exports=function(e){const t=n(e),r=i(e);return function(e,n){switch("string"==typeof e?e.toLowerCase():e){case"keccak224":return new t(1152,448,null,224,n);case"keccak256":return new t(1088,512,null,256,n);case"keccak384":return new t(832,768,null,384,n);case"keccak512":return new t(576,1024,null,512,n);case"sha3-224":return new t(1152,448,6,224,n);case"sha3-256":return new t(1088,512,6,256,n);case"sha3-384":return new t(832,768,6,384,n);case"sha3-512":return new t(576,1024,6,512,n);case"shake128":return new r(1344,256,31,n);case"shake256":return new r(1088,512,31,n);default:throw new Error("Invald algorithm: "+e)}}}},37016:(e,t,r)=>{var n=r(48764).Buffer;const{Transform:i}=r(88473);e.exports=e=>class t extends i{constructor(t,r,n,i,o){super(o),this._rate=t,this._capacity=r,this._delimitedSuffix=n,this._hashBitLength=i,this._options=o,this._state=new e,this._state.initialize(t,r),this._finalized=!1}_transform(e,t,r){let n=null;try{this.update(e,t)}catch(e){n=e}r(n)}_flush(e){let t=null;try{this.push(this.digest())}catch(e){t=e}e(t)}update(e,t){if(!n.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return n.isBuffer(e)||(e=n.from(e,t)),this._state.absorb(e),this}digest(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let t=this._state.squeeze(this._hashBitLength/8);return void 0!==e&&(t=t.toString(e)),this._resetState(),t}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const e=new t(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e}}},5675:(e,t,r)=>{var n=r(48764).Buffer;const{Transform:i}=r(88473);e.exports=e=>class t extends i{constructor(t,r,n,i){super(i),this._rate=t,this._capacity=r,this._delimitedSuffix=n,this._options=i,this._state=new e,this._state.initialize(t,r),this._finalized=!1}_transform(e,t,r){let n=null;try{this.update(e,t)}catch(e){n=e}r(n)}_flush(){}_read(e){this.push(this.squeeze(e))}update(e,t){if(!n.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return n.isBuffer(e)||(e=n.from(e,t)),this._state.absorb(e),this}squeeze(e,t){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let r=this._state.squeeze(e);return void 0!==t&&(r=r.toString(t)),r}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const e=new t(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e}}},34040:(e,t)=>{const r=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];t.p1600=function(e){for(let t=0;t<24;++t){const n=e[0]^e[10]^e[20]^e[30]^e[40],i=e[1]^e[11]^e[21]^e[31]^e[41],o=e[2]^e[12]^e[22]^e[32]^e[42],a=e[3]^e[13]^e[23]^e[33]^e[43],s=e[4]^e[14]^e[24]^e[34]^e[44],u=e[5]^e[15]^e[25]^e[35]^e[45],c=e[6]^e[16]^e[26]^e[36]^e[46],f=e[7]^e[17]^e[27]^e[37]^e[47],l=e[8]^e[18]^e[28]^e[38]^e[48],d=e[9]^e[19]^e[29]^e[39]^e[49];let h=l^(o<<1|a>>>31),p=d^(a<<1|o>>>31);const b=e[0]^h,y=e[1]^p,g=e[10]^h,m=e[11]^p,v=e[20]^h,w=e[21]^p,_=e[30]^h,x=e[31]^p,O=e[40]^h,k=e[41]^p;h=n^(s<<1|u>>>31),p=i^(u<<1|s>>>31);const P=e[2]^h,S=e[3]^p,A=e[12]^h,E=e[13]^p,M=e[22]^h,j=e[23]^p,T=e[32]^h,B=e[33]^p,I=e[42]^h,N=e[43]^p;h=o^(c<<1|f>>>31),p=a^(f<<1|c>>>31);const R=e[4]^h,C=e[5]^p,U=e[14]^h,L=e[15]^p,D=e[24]^h,H=e[25]^p,F=e[34]^h,V=e[35]^p,z=e[44]^h,q=e[45]^p;h=s^(l<<1|d>>>31),p=u^(d<<1|l>>>31);const K=e[6]^h,W=e[7]^p,G=e[16]^h,X=e[17]^p,Z=e[26]^h,J=e[27]^p,Y=e[36]^h,Q=e[37]^p,$=e[46]^h,ee=e[47]^p;h=c^(n<<1|i>>>31),p=f^(i<<1|n>>>31);const te=e[8]^h,re=e[9]^p,ne=e[18]^h,ie=e[19]^p,oe=e[28]^h,ae=e[29]^p,se=e[38]^h,ue=e[39]^p,ce=e[48]^h,fe=e[49]^p,le=b,de=y,he=m<<4|g>>>28,pe=g<<4|m>>>28,be=v<<3|w>>>29,ye=w<<3|v>>>29,ge=x<<9|_>>>23,me=_<<9|x>>>23,ve=O<<18|k>>>14,we=k<<18|O>>>14,_e=P<<1|S>>>31,xe=S<<1|P>>>31,Oe=E<<12|A>>>20,ke=A<<12|E>>>20,Pe=M<<10|j>>>22,Se=j<<10|M>>>22,Ae=B<<13|T>>>19,Ee=T<<13|B>>>19,Me=I<<2|N>>>30,je=N<<2|I>>>30,Te=C<<30|R>>>2,Be=R<<30|C>>>2,Ie=U<<6|L>>>26,Ne=L<<6|U>>>26,Re=H<<11|D>>>21,Ce=D<<11|H>>>21,Ue=F<<15|V>>>17,Le=V<<15|F>>>17,De=q<<29|z>>>3,He=z<<29|q>>>3,Fe=K<<28|W>>>4,Ve=W<<28|K>>>4,ze=X<<23|G>>>9,qe=G<<23|X>>>9,Ke=Z<<25|J>>>7,We=J<<25|Z>>>7,Ge=Y<<21|Q>>>11,Xe=Q<<21|Y>>>11,Ze=ee<<24|$>>>8,Je=$<<24|ee>>>8,Ye=te<<27|re>>>5,Qe=re<<27|te>>>5,$e=ne<<20|ie>>>12,et=ie<<20|ne>>>12,tt=ae<<7|oe>>>25,rt=oe<<7|ae>>>25,nt=se<<8|ue>>>24,it=ue<<8|se>>>24,ot=ce<<14|fe>>>18,at=fe<<14|ce>>>18;e[0]=le^~Oe&Re,e[1]=de^~ke&Ce,e[10]=Fe^~$e&be,e[11]=Ve^~et&ye,e[20]=_e^~Ie&Ke,e[21]=xe^~Ne&We,e[30]=Ye^~he&Pe,e[31]=Qe^~pe&Se,e[40]=Te^~ze&tt,e[41]=Be^~qe&rt,e[2]=Oe^~Re&Ge,e[3]=ke^~Ce&Xe,e[12]=$e^~be&Ae,e[13]=et^~ye&Ee,e[22]=Ie^~Ke&nt,e[23]=Ne^~We&it,e[32]=he^~Pe&Ue,e[33]=pe^~Se&Le,e[42]=ze^~tt&ge,e[43]=qe^~rt&me,e[4]=Re^~Ge&ot,e[5]=Ce^~Xe&at,e[14]=be^~Ae&De,e[15]=ye^~Ee&He,e[24]=Ke^~nt&ve,e[25]=We^~it&we,e[34]=Pe^~Ue&Ze,e[35]=Se^~Le&Je,e[44]=tt^~ge&Me,e[45]=rt^~me&je,e[6]=Ge^~ot&le,e[7]=Xe^~at&de,e[16]=Ae^~De&Fe,e[17]=Ee^~He&Ve,e[26]=nt^~ve&_e,e[27]=it^~we&xe,e[36]=Ue^~Ze&Ye,e[37]=Le^~Je&Qe,e[46]=ge^~Me&Te,e[47]=me^~je&Be,e[8]=ot^~le&Oe,e[9]=at^~de&ke,e[18]=De^~Fe&$e,e[19]=He^~Ve&et,e[28]=ve^~_e&Ie,e[29]=we^~xe&Ne,e[38]=Ze^~Ye&he,e[39]=Je^~Qe&pe,e[48]=Me^~Te&ze,e[49]=je^~Be&qe,e[0]^=r[2*t],e[1]^=r[2*t+1]}}},79653:(e,t,r)=>{var n=r(48764).Buffer;const i=r(34040);function o(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}o.prototype.initialize=function(e,t){for(let e=0;e<50;++e)this.state[e]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1},o.prototype.absorb=function(e){for(let t=0;t<e.length;++t)this.state[~~(this.count/4)]^=e[t]<<this.count%4*8,this.count+=1,this.count===this.blockSize&&(i.p1600(this.state),this.count=0)},o.prototype.absorbLastFewBits=function(e){this.state[~~(this.count/4)]^=e<<this.count%4*8,0!=(128&e)&&this.count===this.blockSize-1&&i.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<(this.blockSize-1)%4*8,i.p1600(this.state),this.count=0,this.squeezing=!0},o.prototype.squeeze=function(e){this.squeezing||this.absorbLastFewBits(1);const t=n.alloc(e);for(let r=0;r<e;++r)t[r]=this.state[~~(this.count/4)]>>>this.count%4*8&255,this.count+=1,this.count===this.blockSize&&(i.p1600(this.state),this.count=0);return t},o.prototype.copy=function(e){for(let t=0;t<50;++t)e.state[t]=this.state[t];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing},e.exports=o},62318:(e,t,r)=>{"use strict";var n=r(35717),i=r(3349),o=r(89509).Buffer,a=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function u(e,t){return e<<t|e>>>32-t}function c(e,t,r,n,i,o,a){return u(e+(t&r|~t&n)+i+o|0,a)+t|0}function f(e,t,r,n,i,o,a){return u(e+(t&n|r&~n)+i+o|0,a)+t|0}function l(e,t,r,n,i,o,a){return u(e+(t^r^n)+i+o|0,a)+t|0}function d(e,t,r,n,i,o,a){return u(e+(r^(t|~n))+i+o|0,a)+t|0}n(s,i),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,i=this._c,o=this._d;r=c(r,n,i,o,e[0],3614090360,7),o=c(o,r,n,i,e[1],3905402710,12),i=c(i,o,r,n,e[2],606105819,17),n=c(n,i,o,r,e[3],3250441966,22),r=c(r,n,i,o,e[4],4118548399,7),o=c(o,r,n,i,e[5],1200080426,12),i=c(i,o,r,n,e[6],2821735955,17),n=c(n,i,o,r,e[7],4249261313,22),r=c(r,n,i,o,e[8],1770035416,7),o=c(o,r,n,i,e[9],2336552879,12),i=c(i,o,r,n,e[10],4294925233,17),n=c(n,i,o,r,e[11],2304563134,22),r=c(r,n,i,o,e[12],1804603682,7),o=c(o,r,n,i,e[13],4254626195,12),i=c(i,o,r,n,e[14],2792965006,17),r=f(r,n=c(n,i,o,r,e[15],1236535329,22),i,o,e[1],4129170786,5),o=f(o,r,n,i,e[6],3225465664,9),i=f(i,o,r,n,e[11],643717713,14),n=f(n,i,o,r,e[0],3921069994,20),r=f(r,n,i,o,e[5],3593408605,5),o=f(o,r,n,i,e[10],38016083,9),i=f(i,o,r,n,e[15],3634488961,14),n=f(n,i,o,r,e[4],3889429448,20),r=f(r,n,i,o,e[9],568446438,5),o=f(o,r,n,i,e[14],3275163606,9),i=f(i,o,r,n,e[3],4107603335,14),n=f(n,i,o,r,e[8],1163531501,20),r=f(r,n,i,o,e[13],2850285829,5),o=f(o,r,n,i,e[2],4243563512,9),i=f(i,o,r,n,e[7],1735328473,14),r=l(r,n=f(n,i,o,r,e[12],2368359562,20),i,o,e[5],4294588738,4),o=l(o,r,n,i,e[8],2272392833,11),i=l(i,o,r,n,e[11],1839030562,16),n=l(n,i,o,r,e[14],4259657740,23),r=l(r,n,i,o,e[1],2763975236,4),o=l(o,r,n,i,e[4],1272893353,11),i=l(i,o,r,n,e[7],4139469664,16),n=l(n,i,o,r,e[10],3200236656,23),r=l(r,n,i,o,e[13],681279174,4),o=l(o,r,n,i,e[0],3936430074,11),i=l(i,o,r,n,e[3],3572445317,16),n=l(n,i,o,r,e[6],76029189,23),r=l(r,n,i,o,e[9],3654602809,4),o=l(o,r,n,i,e[12],3873151461,11),i=l(i,o,r,n,e[15],530742520,16),r=d(r,n=l(n,i,o,r,e[2],3299628645,23),i,o,e[0],4096336452,6),o=d(o,r,n,i,e[7],1126891415,10),i=d(i,o,r,n,e[14],2878612391,15),n=d(n,i,o,r,e[5],4237533241,21),r=d(r,n,i,o,e[12],1700485571,6),o=d(o,r,n,i,e[3],2399980690,10),i=d(i,o,r,n,e[10],4293915773,15),n=d(n,i,o,r,e[1],2240044497,21),r=d(r,n,i,o,e[8],1873313359,6),o=d(o,r,n,i,e[15],4264355552,10),i=d(i,o,r,n,e[6],2734768916,15),n=d(n,i,o,r,e[13],1309151649,21),r=d(r,n,i,o,e[4],4149444226,6),o=d(o,r,n,i,e[11],3174756917,10),i=d(i,o,r,n,e[2],718787259,15),n=d(n,i,o,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=o.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},7996:e=>{var t=function(e){null==e&&(e=(new Date).getTime()),this.N=624,this.M=397,this.MATRIX_A=2567483615,this.UPPER_MASK=2147483648,this.LOWER_MASK=2147483647,this.mt=new Array(this.N),this.mti=this.N+1,e.constructor==Array?this.init_by_array(e,e.length):this.init_seed(e)};t.prototype.init_seed=function(e){for(this.mt[0]=e>>>0,this.mti=1;this.mti<this.N;this.mti++)e=this.mt[this.mti-1]^this.mt[this.mti-1]>>>30,this.mt[this.mti]=(1812433253*((4294901760&e)>>>16)<<16)+1812433253*(65535&e)+this.mti,this.mt[this.mti]>>>=0},t.prototype.init_by_array=function(e,t){var r,n,i;for(this.init_seed(19650218),r=1,n=0,i=this.N>t?this.N:t;i;i--){var o=this.mt[r-1]^this.mt[r-1]>>>30;this.mt[r]=(this.mt[r]^(1664525*((4294901760&o)>>>16)<<16)+1664525*(65535&o))+e[n]+n,this.mt[r]>>>=0,n++,++r>=this.N&&(this.mt[0]=this.mt[this.N-1],r=1),n>=t&&(n=0)}for(i=this.N-1;i;i--)o=this.mt[r-1]^this.mt[r-1]>>>30,this.mt[r]=(this.mt[r]^(1566083941*((4294901760&o)>>>16)<<16)+1566083941*(65535&o))-r,this.mt[r]>>>=0,++r>=this.N&&(this.mt[0]=this.mt[this.N-1],r=1);this.mt[0]=2147483648},t.prototype.random_int=function(){var e,t=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var r;for(this.mti==this.N+1&&this.init_seed(5489),r=0;r<this.N-this.M;r++)e=this.mt[r]&this.UPPER_MASK|this.mt[r+1]&this.LOWER_MASK,this.mt[r]=this.mt[r+this.M]^e>>>1^t[1&e];for(;r<this.N-1;r++)e=this.mt[r]&this.UPPER_MASK|this.mt[r+1]&this.LOWER_MASK,this.mt[r]=this.mt[r+(this.M-this.N)]^e>>>1^t[1&e];e=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^e>>>1^t[1&e],this.mti=0}return e=this.mt[this.mti++],e^=e>>>11,e^=e<<7&2636928640,e^=e<<15&4022730752,(e^=e>>>18)>>>0},t.prototype.random_int31=function(){return this.random_int()>>>1},t.prototype.random_incl=function(){return this.random_int()*(1/4294967295)},t.prototype.random=function(){return this.random_int()*(1/4294967296)},t.prototype.random_excl=function(){return(this.random_int()+.5)*(1/4294967296)},t.prototype.random_long=function(){return(67108864*(this.random_int()>>>5)+(this.random_int()>>>6))*(1/9007199254740992)},e.exports=t},79746:e=>{function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},34504:(e,t)=>{"use strict";var r=t;function n(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",r=0;r<e.length;r++)t+=n(e[r].toString(16));return t}r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e){for(var n=0;n<e.length;n++)r[n]=0|e[n];return r}if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16));else for(n=0;n<e.length;n++){var i=e.charCodeAt(n),o=i>>8,a=255&i;o?r.push(o,a):r.push(a)}return r},r.zero2=n,r.toHex=i,r.encode=function(e,t){return"hex"===t?i(e):e}},24244:e=>{"use strict";var t=function(e){return e!=e};e.exports=function(e,r){return 0===e&&0===r?1/e==1/r:e===r||!(!t(e)||!t(r))}},20609:(e,t,r)=>{"use strict";var n=r(4289),i=r(55559),o=r(24244),a=r(75624),s=r(52281),u=i(a(),Object);n(u,{getPolyfill:a,implementation:o,shim:s}),e.exports=u},75624:(e,t,r)=>{"use strict";var n=r(24244);e.exports=function(){return"function"==typeof Object.is?Object.is:n}},52281:(e,t,r)=>{"use strict";var n=r(75624),i=r(4289);e.exports=function(){var e=n();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},18987:(e,t,r)=>{"use strict";var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=r(21414),s=Object.prototype.propertyIsEnumerable,u=!s.call({toString:null},"toString"),c=s.call((function(){}),"prototype"),f=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{l(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();n=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===o.call(e),n=a(e),s=t&&"[object String]"===o.call(e),d=[];if(!t&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var p=c&&r;if(s&&e.length>0&&!i.call(e,0))for(var b=0;b<e.length;++b)d.push(String(b));if(n&&e.length>0)for(var y=0;y<e.length;++y)d.push(String(y));else for(var g in e)p&&"prototype"===g||!i.call(e,g)||d.push(String(g));if(u)for(var m=function(e){if("undefined"==typeof window||!h)return l(e);try{return l(e)}catch(e){return!1}}(e),v=0;v<f.length;++v)m&&"constructor"===f[v]||!i.call(e,f[v])||d.push(f[v]);return d}}e.exports=n},82215:(e,t,r)=>{"use strict";var n=Array.prototype.slice,i=r(21414),o=Object.keys,a=o?function(e){return o(e)}:r(18987),s=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return i(e)?s(n.call(e)):s(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},21414:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},65198:(e,t,r)=>{var n=r(48764).Buffer;const i=r(77191),{blake2b:o}=r(1191),{toLE:a,leToNumber:s,stringToBytes:u}=r(75150),{AccountIndex:c,AccountId:f}=r(28807);let l=42;const d=[0,1,42,43,68,69],h=u("SS58PRE");e.exports={ss58Decode:function(e,t){let r;try{r=i.decode(e)}catch(e){return null}let n=r[0];if(-1===d.indexOf(n))return null;if(r.length<3)return null;let a,u=r.length<=3?1:r.length<=5?2:r.length<=9?4:r.length<=17?8:32,l=r.length-1-u,p=r.slice(1,1+u);r.slice(1+r.length),32===u&&(a=p);let b=u<32?new c(s(p)):new f(p);if(r[0]%1&&!a&&!t)return null;let y=o(new Uint8Array([...h,...r[0]%1?a||t(b):r.slice(0,1+u)]));for(var g=0;g<l;++g)if(y[g]!==r[1+u+g])return null;return b},ss58Encode:function(e,t=l,r=null,s=null,u){let p;if(-1===d.indexOf(t))throw new Error("Unknown ss58 address type",t);if("number"==typeof e||e instanceof c){let t=e<256?1:e<65536?2:e<1?4:8;if(-1===[1,2,4,8].indexOf(s=s||t))throw new Error("Invalid length");if(s=Math.max(t,s),r&&"number"!=typeof r)throw new Error("Invalid checksum length");switch(s){case 1:r=1;break;case 2:r=[1,2].indexOf(r)+1||1;break;case 4:r=[1,2,3,4].indexOf(r)+1||1;break;case 8:r=[1,2,3,4,5,6,7,8].indexOf(r)+1||1}p=a(e,s)}else{if(!(e instanceof f||e instanceof Uint8Array)||32!==e.length)throw new Error("Unknown item to encode as ss58. Passing back.",e);r=2,p=e,u=e}let b=o(new Uint8Array([...h,...1&t?u:new Uint8Array([t,...p])])),y=new Uint8Array([t,...p,...b.slice(0,r)]);return i.encode(n.from(y))},setNetworkDefault:function(e){l=e}}},28807:(e,t,r)=>{const{toLE:n}=r(75150);class i extends Uint8Array{toJSON(){return{_type:"VecU8",data:Array.from(this)}}}class o extends Uint8Array{toJSON(){return{_type:"AccountId",data:Array.from(this)}}compare(e){return this.length===e.length&&this.every(((t,r)=>e[r]===t))}memberOf(e){return void 0!==e.find((e=>this.compare(e)))}}class a extends Uint8Array{toJSON(){return{_type:"Hash",data:Array.from(this)}}}class s extends Uint8Array{toJSON(){return{_type:"Signature",data:Array.from(this)}}}class u extends String{toJSON(){return{_type:"VoteThreshold",data:this+""}}}class c extends Number{toJSON(){return{_type:"BlockNumber",data:this+0}}}class f extends Number{toJSON(){return{_type:"AccountIndex",data:this+0}}}class l extends Array{toJSON(){return{_type:"Tuple",data:Array.from(this)}}}class d extends Number{toJSON(){return{_type:"SlashPreference",data:this+0}}}class h extends Number{toJSON(){return{_type:"Perbill",data:this+0}}}class p extends Number{toJSON(){return{_type:"Permill",data:this+0}}}class b extends Date{constructor(e){super(1e3*e),this.number=e}toJSON(){return{_type:"Moment",data:this.number}}}class y extends Number{toJSON(){return{_type:"Balance",data:this+0}}add(e){return new y(this+e)}sub(e){return new y(this-e)}}e.exports={VecU8:i,AccountId:o,Hash:a,Signature:s,VoteThreshold:u,SlashPreference:d,Moment:b,Balance:y,BlockNumber:c,AccountIndex:f,Tuple:l,TransactionEra:class{constructor(e,t){"number"==typeof e&&"number"==typeof t&&(this.period=2<<Math.min(15,Math.max(1,Math.ceil(Math.log2(e))-1)),this.phase=t%this.period)}encode(){if("number"==typeof this.period&&"number"==typeof this.phase){let e=Math.min(15,Math.max(1,Math.ceil(Math.log2(this.period))-1)),t=Math.max(1,this.period>>12);return n((Math.floor(this.phase/t)<<4)+e,2)}return new Uint8Array([0])}},Perbill:h,Permill:p,reviver:function(e,t){if("object"==typeof t&&t)switch(t._type){case"VecU8":return new i(t.data);case"AccountId":return new o(t.data);case"Hash":return new a(t.data);case"Signature":return new s(t.data);case"VoteThreshold":return new u(t.data);case"SlashPreference":return new d(t.data);case"Perbill":return new h(t.data);case"Permill":return new p(t.data);case"Moment":return new b(t.data);case"Tuple":return new l(t.data);case"Balance":return new y(t.data);case"BlockNumber":return new c(t.data);case"AccountIndex":return new f(t.data);case"Payee":return new Payee(t.data)}return t},RewardDestination:class extends String{toJSON(){return{_type:"RewardDestination",data:this+""}}}}},75150:e=>{function t(e){if(!e)return new Uint8Array;for(var t=[],r=e.startsWith("0x")?2:0,n=e.length;r<n;r+=2)t.push(parseInt(e.substr(r,2),16));return new Uint8Array(t)}e.exports={stringToSeed:function(e){if(e.match(/^0x[0-9a-fA-F]{64}$/))return t(e);var r=new Uint8Array(32);r.fill(32);for(var n=0;n<e.length;n++)r[n]=e.charCodeAt(n);return r},stringToBytes:function(e){for(var t=new Uint8Array(e.length),r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t},hexToBytes:t,bytesToHex:function(e){if(!e)return"";for(var t="",r=0;r<e.length;r++){var n=(255&e[r]).toString(16);t+=n=1===n.length?"0"+n:n}return t.toLowerCase()},toLEHex:function(e,t){let r=("00".repeat(t)+e.toString(16)).slice(2*-t);for(var n="",i=0;i<r.length;i+=2)n=r.substr(i,2)+n;return n},leHexToNumber:function(e){for(var t="",r=e.startsWith("0x")?2:0;r<e.length;r+=2)t=e.substr(r,2)+t;return Number.parseInt(t,16)},toLE:function(e,t){let r=!1;e<0&&(e=-e-1,r=!0);let n=new Uint8Array(t);for(var i=0;i<t;++i)n[i]=e%256,r&&(n[i]=255&~n[i]),e/=256;return n},leToNumber:function(e){let t=0,r=1;return e.forEach((e=>{t+=e*r,r*=256})),t},leToSigned:function(e){let t=e.slice(),r=1,n=0;128==(128&t[t.length-1])&&(t=t.map((e=>255&~e)),n=1,r=-1);let i=1;return t.forEach((e=>{n+=e*i,i*=256})),n*r},injectChunkUtils:function(){String.prototype.chunks=function(e){for(var t=[],r=this.length/e,n=0;n<r;++n)t.push(this.substr(n*e,e));return t},String.prototype.mapChunks=function(e,t){for(var r=[],n=this.length/e.reduce(((e,t)=>e+t),0),i=0,o=0;o<n;++o)r.push(t(e.map((e=>{let t=this.substr(i,e);return i+=e,t}))));return r},Uint8Array.prototype.mapChunks=function(e,t){for(var r=[],n=this.length/e.reduce(((e,t)=>e+t),0),i=0,o=0;o<n;++o)r.push(t(e.map((e=>(i+=e,this.slice(i-e,i))))));return r}},siPrefix:function(e){switch(e){case-24:return"y";case-21:return"z";case-18:return"a";case-15:return"f";case-12:return"p";case-9:return"n";case-6:return"µ";case-3:return"m";case 0:return"";case 3:return"k";case 6:return"M";case 9:return"G";case 12:return"T";case 15:return"P";case 18:return"E";case 21:return"Z";case 24:return"Y"}}}},34155:e=>{var t,r,n=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var s,u=[],c=!1,f=-1;function l(){c&&s&&(c=!1,s.length?u=s.concat(u):f=-1,u.length&&d())}function d(){if(!c){var e=a(l);c=!0;for(var t=u.length;t;){for(s=u,u=[];++f<t;)s&&s[f].run();f=-1,t=u.length}s=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function p(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new h(e,t)),1!==u.length||c||a(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},17563:(e,t,r)=>{"use strict";const n=r(70610),i=r(44020),o=r(80500);function a(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function s(e,t){return t.encode?t.strict?n(e):encodeURIComponent(e):e}function u(e,t){return t.decode?i(e):e}function c(e){return Array.isArray(e)?e.sort():"object"==typeof e?c(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function f(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function l(e){const t=(e=f(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function d(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function h(e,t){a((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return(e,r,n)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};case"comma":case"separator":return(t,r,n)=>{const i="string"==typeof r&&r.split("").indexOf(e.arrayFormatSeparator)>-1?r.split(e.arrayFormatSeparator).map((t=>u(t,e))):null===r?r:u(r,e);n[t]=i};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t),n=Object.create(null);if("string"!=typeof e)return n;if(!(e=e.trim().replace(/^[?#&]/,"")))return n;for(const i of e.split("&")){let[e,a]=o(t.decode?i.replace(/\+/g," "):i,"=");a=void 0===a?null:["comma","separator"].includes(t.arrayFormat)?a:u(a,t),r(u(e,t),a,n)}for(const e of Object.keys(n)){const r=n[e];if("object"==typeof r&&null!==r)for(const e of Object.keys(r))r[e]=d(r[e],t);else n[e]=d(r,t)}return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce(((e,t)=>{const r=n[t];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?e[t]=c(r):e[t]=r,e}),Object.create(null))}t.extract=l,t.parse=h,t.stringify=(e,t)=>{if(!e)return"";a((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const r=r=>t.skipNull&&null==e[r]||t.skipEmptyString&&""===e[r],n=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{const i=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[s(t,e),"[",i,"]"].join("")]:[...r,[s(t,e),"[",s(i,e),"]=",s(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[s(t,e),"[]"].join("")]:[...r,[s(t,e),"[]=",s(n,e)].join("")];case"comma":case"separator":return t=>(r,n)=>null==n||0===n.length?r:0===r.length?[[s(t,e),"=",s(n,e)].join("")]:[[r,s(n,e)].join(e.arrayFormatSeparator)];default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,s(t,e)]:[...r,[s(t,e),"=",s(n,e)].join("")]}}(t),i={};for(const t of Object.keys(e))r(t)||(i[t]=e[t]);const o=Object.keys(i);return!1!==t.sort&&o.sort(t.sort),o.map((r=>{const i=e[r];return void 0===i?"":null===i?s(r,t):Array.isArray(i)?i.reduce(n(r),[]).join("&"):s(r,t)+"="+s(i,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[r,n]=o(e,"#");return Object.assign({url:r.split("?")[0]||"",query:h(l(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:u(n,t)}:{})},t.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0},r);const n=f(e.url).split("?")[0]||"",i=t.extract(e.url),o=t.parse(i,{sort:!1}),a=Object.assign(o,e.query);let u=t.stringify(a,r);u&&(u=`?${u}`);let c=function(e){let t="";const r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(e.url);return e.fragmentIdentifier&&(c=`#${s(e.fragmentIdentifier,r)}`),`${n}${u}${c}`}},61798:(e,t,r)=>{"use strict";var n=r(34155),i=65536,o=r(89509).Buffer,a=r.g.crypto||r.g.msCrypto;a&&a.getRandomValues?e.exports=function(e,t){if(e>4294967295)throw new RangeError("requested too many random bytes");var r=o.allocUnsafe(e);if(e>0)if(e>i)for(var s=0;s<e;s+=i)a.getRandomValues(r.slice(s,s+i));else a.getRandomValues(r);return"function"==typeof t?n.nextTick((function(){t(null,r)})):r}:e.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}},94281:e=>{"use strict";var t={};function r(e,r,n){n||(n=Error);var i=function(e){var t,n;function i(t,n,i){return e.call(this,function(e,t,n){return"string"==typeof r?r:r(e,t,n)}(t,n,i))||this}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i}(n);i.prototype.name=n.name,i.prototype.code=e,t[e]=i}function n(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}r("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(e,t,r){var i,o,a,s,u;if("string"==typeof t&&(o="not ",t.substr(0,4)===o)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-9,r)===t}(e," argument"))a="The ".concat(e," ").concat(i," ").concat(n(t,"type"));else{var c=("number"!=typeof u&&(u=0),u+1>(s=e).length||-1===s.indexOf(".",u)?"argument":"property");a='The "'.concat(e,'" ').concat(c," ").concat(i," ").concat(n(t,"type"))}return a+". Received type ".concat(typeof r)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},56753:(e,t,r)=>{"use strict";var n=r(34155),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=f;var o=r(79481),a=r(64229);r(35717)(f,o);for(var s=i(a.prototype),u=0;u<s.length;u++){var c=s[u];f.prototype[c]||(f.prototype[c]=a.prototype[c])}function f(e){if(!(this instanceof f))return new f(e);o.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",l)))}function l(){this._writableState.ended||n.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(f.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(f.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},82725:(e,t,r)=>{"use strict";e.exports=i;var n=r(74605);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(35717)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},79481:(e,t,r)=>{"use strict";var n,i=r(34155);e.exports=P,P.ReadableState=k,r(17187).EventEmitter;var o,a=function(e,t){return e.listeners(t).length},s=r(22503),u=r(48764).Buffer,c=r.g.Uint8Array||function(){},f=r(94616);o=f&&f.debuglog?f.debuglog("stream"):function(){};var l,d,h,p=r(57327),b=r(61195),y=r(82457).getHighWaterMark,g=r(94281).q,m=g.ERR_INVALID_ARG_TYPE,v=g.ERR_STREAM_PUSH_AFTER_EOF,w=g.ERR_METHOD_NOT_IMPLEMENTED,_=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(35717)(P,s);var x=b.errorOrDestroy,O=["error","close","destroy","pause","resume"];function k(e,t,i){n=n||r(56753),e=e||{},"boolean"!=typeof i&&(i=t instanceof n),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=y(this,e,"readableHighWaterMark",i),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(l||(l=r(32553).s),this.decoder=new l(e.encoding),this.encoding=e.encoding)}function P(e){if(n=n||r(56753),!(this instanceof P))return new P(e);var t=this instanceof n;this._readableState=new k(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function S(e,t,r,n,i){o("readableAddChunk",t);var a,s=e._readableState;if(null===t)s.reading=!1,function(e,t){if(o("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?j(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,T(e)))}}(e,s);else if(i||(a=function(e,t){var r,n;return n=t,u.isBuffer(n)||n instanceof c||"string"==typeof t||void 0===t||e.objectMode||(r=new m("chunk",["string","Buffer","Uint8Array"],t)),r}(s,t)),a)x(e,a);else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),n)s.endEmitted?x(e,new _):A(e,s,t,!0);else if(s.ended)x(e,new v);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?A(e,s,t,!1):B(e,s)):A(e,s,t,!1)}else n||(s.reading=!1,B(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function A(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&j(e)),B(e,t)}Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),P.prototype.destroy=b.destroy,P.prototype._undestroy=b.undestroy,P.prototype._destroy=function(e,t){t(e)},P.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=u.from(e,t),t=""),r=!0),S(this,e,t,!1,r)},P.prototype.unshift=function(e){return S(this,e,null,!0,!1)},P.prototype.isPaused=function(){return!1===this._readableState.flowing},P.prototype.setEncoding=function(e){l||(l=r(32553).s);var t=new l(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";null!==n;)i+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var E=1073741824;function M(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=E?e=E:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function j(e){var t=e._readableState;o("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(T,e))}function T(e){var t=e._readableState;o("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,U(e)}function B(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(I,e,t))}function I(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(o("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function N(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function R(e){o("readable nexttick read 0"),e.read(0)}function C(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),U(e),t.flowing&&!t.reading&&e.read(0)}function U(e){var t=e._readableState;for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function L(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function D(e){var t=e._readableState;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(H,t,e))}function H(e,t){if(o("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function F(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}P.prototype.read=function(e){o("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return o("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?D(this):j(this),null;if(0===(e=M(e,t))&&t.ended)return 0===t.length&&D(this),null;var n,i=t.needReadable;return o("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&o("length less than watermark",i=!0),t.ended||t.reading?o("reading or ended",i=!1):i&&(o("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=M(r,t))),null===(n=e>0?L(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&D(this)),null!==n&&this.emit("data",n),n},P.prototype._read=function(e){x(this,new w("_read()"))},P.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,o("pipe count=%d opts=%j",n.pipesCount,t);var s=t&&!1===t.end||e===i.stdout||e===i.stderr?b:u;function u(){o("onend"),e.end()}n.endEmitted?i.nextTick(s):r.once("end",s),e.on("unpipe",(function t(i,a){o("onunpipe"),i===r&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,o("cleanup"),e.removeListener("close",h),e.removeListener("finish",p),e.removeListener("drain",c),e.removeListener("error",d),e.removeListener("unpipe",t),r.removeListener("end",u),r.removeListener("end",b),r.removeListener("data",l),f=!0,!n.awaitDrain||e._writableState&&!e._writableState.needDrain||c())}));var c=function(e){return function(){var t=e._readableState;o("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,U(e))}}(r);e.on("drain",c);var f=!1;function l(t){o("ondata");var i=e.write(t);o("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==F(n.pipes,e))&&!f&&(o("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function d(t){o("onerror",t),b(),e.removeListener("error",d),0===a(e,"error")&&x(e,t)}function h(){e.removeListener("finish",p),b()}function p(){o("onfinish"),e.removeListener("close",h),b()}function b(){o("unpipe"),r.unpipe(e)}return r.on("data",l),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",d),e.once("close",h),e.once("finish",p),e.emit("pipe",r),n.flowing||(o("pipe resume"),r.resume()),e},P.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=F(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},P.prototype.on=function(e,t){var r=s.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"===e&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,o("on readable",n.length,n.reading),n.length?j(this):n.reading||i.nextTick(R,this))),r},P.prototype.addListener=P.prototype.on,P.prototype.removeListener=function(e,t){var r=s.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(N,this),r},P.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||i.nextTick(N,this),t},P.prototype.resume=function(){var e=this._readableState;return e.flowing||(o("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(C,e,t))}(this,e)),e.paused=!1,this},P.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},P.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(o("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){o("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<O.length;a++)e.on(O[a],this.emit.bind(this,O[a]));return this._read=function(t){o("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(P.prototype[Symbol.asyncIterator]=function(){return void 0===d&&(d=r(45850)),d(this)}),Object.defineProperty(P.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(P.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(P.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),P._fromList=L,Object.defineProperty(P.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(P.from=function(e,t){return void 0===h&&(h=r(15167)),h(P,e,t)})},74605:(e,t,r)=>{"use strict";e.exports=f;var n=r(94281).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(56753);function c(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function f(e){if(!(this instanceof f))return new f(e);u.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",l)}function l(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush((function(t,r){d(e,t,r)}))}function d(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}r(35717)(f,u),f.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},f.prototype._transform=function(e,t,r){r(new i("_transform()"))},f.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},f.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},f.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,(function(e){t(e)}))}},64229:(e,t,r)=>{"use strict";var n,i=r(34155);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(undefined),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=P,P.WritableState=k;var a,s={deprecate:r(94927)},u=r(22503),c=r(48764).Buffer,f=r.g.Uint8Array||function(){},l=r(61195),d=r(82457).getHighWaterMark,h=r(94281).q,p=h.ERR_INVALID_ARG_TYPE,b=h.ERR_METHOD_NOT_IMPLEMENTED,y=h.ERR_MULTIPLE_CALLBACK,g=h.ERR_STREAM_CANNOT_PIPE,m=h.ERR_STREAM_DESTROYED,v=h.ERR_STREAM_NULL_VALUES,w=h.ERR_STREAM_WRITE_AFTER_END,_=h.ERR_UNKNOWN_ENCODING,x=l.errorOrDestroy;function O(){}function k(e,t,a){n=n||r(56753),e=e||{},"boolean"!=typeof a&&(a=t instanceof n),this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,o=r.writecb;if("function"!=typeof o)throw new y;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,o){--t.pendingcb,r?(i.nextTick(o,n),i.nextTick(T,e,t),e._writableState.errorEmitted=!0,x(e,n)):(o(n),e._writableState.errorEmitted=!0,x(e,n),T(e,t))}(e,r,n,t,o);else{var a=M(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||E(e,r),n?i.nextTick(A,e,r,a,o):A(e,r,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function P(e){var t=this instanceof(n=n||r(56753));if(!t&&!a.call(P,this))return new P(e);this._writableState=new k(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function S(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new m("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function A(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),T(e,t)}function E(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),a=t.corkedRequestsFree;a.entry=r;for(var s=0,u=!0;r;)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;i.allBuffers=u,S(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,f=r.encoding,l=r.callback;if(S(e,t,!1,t.objectMode?1:c.length,c,f,l),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function M(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function j(e,t){e._final((function(r){t.pendingcb--,r&&x(e,r),t.prefinished=!0,e.emit("prefinish"),T(e,t)}))}function T(e,t){var r=M(t);if(r&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,i.nextTick(j,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}r(35717)(P,u),k.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(k.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(a=Function.prototype[Symbol.hasInstance],Object.defineProperty(P,Symbol.hasInstance,{value:function(e){return!!a.call(this,e)||this===P&&e&&e._writableState instanceof k}})):a=function(e){return e instanceof this},P.prototype.pipe=function(){x(this,new g)},P.prototype.write=function(e,t,r){var n,o=this._writableState,a=!1,s=!o.objectMode&&(n=e,c.isBuffer(n)||n instanceof f);return s&&!c.isBuffer(e)&&(e=function(e){return c.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof r&&(r=O),o.ending?function(e,t){var r=new w;x(e,r),i.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var o;return null===r?o=new v:"string"==typeof r||t.objectMode||(o=new p("chunk",["string","Buffer"],r)),!o||(x(e,o),i.nextTick(n,o),!1)}(this,o,e,r))&&(o.pendingcb++,a=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=c.from(t,r)),t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var f=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},f?f.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else S(e,t,!1,s,n,i,o);return u}(this,o,s,e,t,r)),a},P.prototype.cork=function(){this._writableState.corked++},P.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||E(this,e))},P.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new _(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(P.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(P.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),P.prototype._write=function(e,t,r){r(new b("_write()"))},P.prototype._writev=null,P.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,r){t.ending=!0,T(e,t),r&&(t.finished?i.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,n,r),this},Object.defineProperty(P.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),P.prototype.destroy=l.destroy,P.prototype._undestroy=l.undestroy,P.prototype._destroy=function(e,t){t(e)}},45850:(e,t,r)=>{"use strict";var n,i=r(34155);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a=r(8610),s=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),f=Symbol("ended"),l=Symbol("lastPromise"),d=Symbol("handlePromise"),h=Symbol("stream");function p(e,t){return{value:e,done:t}}function b(e){var t=e[s];if(null!==t){var r=e[h].read();null!==r&&(e[l]=null,e[s]=null,e[u]=null,t(p(r,!1)))}}function y(e){i.nextTick(b,e)}var g=Object.getPrototypeOf((function(){})),m=Object.setPrototypeOf((o(n={get stream(){return this[h]},next:function(){var e=this,t=this[c];if(null!==t)return Promise.reject(t);if(this[f])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise((function(t,r){i.nextTick((function(){e[c]?r(e[c]):t(p(void 0,!0))}))}));var r,n=this[l];if(n)r=new Promise(function(e,t){return function(r,n){e.then((function(){t[f]?r(p(void 0,!0)):t[d](r,n)}),n)}}(n,this));else{var o=this[h].read();if(null!==o)return Promise.resolve(p(o,!1));r=new Promise(this[d])}return this[l]=r,r}},Symbol.asyncIterator,(function(){return this})),o(n,"return",(function(){var e=this;return new Promise((function(t,r){e[h].destroy(null,(function(e){e?r(e):t(p(void 0,!0))}))}))})),n),g);e.exports=function(e){var t,r=Object.create(m,(o(t={},h,{value:e,writable:!0}),o(t,s,{value:null,writable:!0}),o(t,u,{value:null,writable:!0}),o(t,c,{value:null,writable:!0}),o(t,f,{value:e._readableState.endEmitted,writable:!0}),o(t,d,{value:function(e,t){var n=r[h].read();n?(r[l]=null,r[s]=null,r[u]=null,e(p(n,!1))):(r[s]=e,r[u]=t)},writable:!0}),t));return r[l]=null,a(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[u];return null!==t&&(r[l]=null,r[s]=null,r[u]=null,t(e)),void(r[c]=e)}var n=r[s];null!==n&&(r[l]=null,r[s]=null,r[u]=null,n(p(void 0,!0))),r[f]=!0})),e.on("readable",y.bind(null,r)),r}},57327:(e,t,r)=>{"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=r(48764).Buffer,s=r(52361).inspect,u=s&&s.custom||"inspect";e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,r;return t=e,r=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return a.alloc(0);for(var t,r,n,i=a.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,r=i,n=s,a.prototype.copy.call(t,r,n),s+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=a.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:u,value:function(e,t){return s(this,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},t,{depth:0,customInspect:!1}))}}],r&&o(t.prototype,r),e}()},61195:(e,t,r)=>{"use strict";var n=r(34155);function i(e,t){a(e,t),o(e)}function o(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function a(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(a,this,e)):n.nextTick(a,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?r._writableState?r._writableState.errorEmitted?n.nextTick(o,r):(r._writableState.errorEmitted=!0,n.nextTick(i,r,e)):n.nextTick(i,r,e):t?(n.nextTick(o,r),t(e)):n.nextTick(o,r)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},8610:(e,t,r)=>{"use strict";var n=r(94281).q.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,r,o){if("function"==typeof r)return e(t,null,r);r||(r={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}(o||i);var a=r.readable||!1!==r.readable&&t.readable,s=r.writable||!1!==r.writable&&t.writable,u=function(){t.writable||f()},c=t._writableState&&t._writableState.finished,f=function(){s=!1,c=!0,a||o.call(t)},l=t._readableState&&t._readableState.endEmitted,d=function(){a=!1,l=!0,s||o.call(t)},h=function(e){o.call(t,e)},p=function(){var e;return a&&!l?(t._readableState&&t._readableState.ended||(e=new n),o.call(t,e)):s&&!c?(t._writableState&&t._writableState.ended||(e=new n),o.call(t,e)):void 0},b=function(){t.req.on("finish",f)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",f),t.on("abort",p),t.req?b():t.on("request",b)):s&&!t._writableState&&(t.on("end",u),t.on("close",u)),t.on("end",d),t.on("finish",f),!1!==r.error&&t.on("error",h),t.on("close",p),function(){t.removeListener("complete",f),t.removeListener("abort",p),t.removeListener("request",b),t.req&&t.req.removeListener("finish",f),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",f),t.removeListener("end",d),t.removeListener("error",h),t.removeListener("close",p)}}},15167:e=>{e.exports=function(){throw new Error("Readable.from is not available in the browser")}},59946:(e,t,r)=>{"use strict";var n,i=r(94281).q,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function u(e){e()}function c(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var f,l=function(e){return e.length?"function"!=typeof e[e.length-1]?s:e.pop():s}(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new o("streams");var d=t.map((function(e,i){var o=i<t.length-1;return function(e,t,i,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);var s=!1;e.on("close",(function(){s=!0})),void 0===n&&(n=r(8610)),n(e,{readable:t,writable:i},(function(e){if(e)return o(e);s=!0,o()}));var u=!1;return function(t){if(!s&&!u)return u=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void o(t||new a("pipe"))}}(e,o,i>0,(function(e){f||(f=e),e&&d.forEach(u),o||(d.forEach(u),l(f))}))}));return t.reduce(c)}},82457:(e,t,r)=>{"use strict";var n=r(94281).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,i){var o=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,i,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},22503:(e,t,r)=>{e.exports=r(17187).EventEmitter},88473:(e,t,r)=>{(t=e.exports=r(79481)).Stream=t,t.Readable=t,t.Writable=r(64229),t.Duplex=r(56753),t.Transform=r(74605),t.PassThrough=r(82725),t.finished=r(8610),t.pipeline=r(59946)},71566:(e,t,r)=>{"use strict";var n=r(48764).Buffer,i=r(35717),o=r(3349),a=new Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],u=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],c=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],f=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],l=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0];function h(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<<t|e>>>32-t}function b(e,t,r,n,i,o,a,s){return p(e+(t^r^n)+o+a|0,s)+i|0}function y(e,t,r,n,i,o,a,s){return p(e+(t&r|~t&n)+o+a|0,s)+i|0}function g(e,t,r,n,i,o,a,s){return p(e+((t|~r)^n)+o+a|0,s)+i|0}function m(e,t,r,n,i,o,a,s){return p(e+(t&n|r&~n)+o+a|0,s)+i|0}function v(e,t,r,n,i,o,a,s){return p(e+(t^(r|~n))+o+a|0,s)+i|0}i(h,o),h.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,h=0|this._e,w=0|this._a,_=0|this._b,x=0|this._c,O=0|this._d,k=0|this._e,P=0;P<80;P+=1){var S,A;P<16?(S=b(r,n,i,o,h,e[s[P]],l[0],c[P]),A=v(w,_,x,O,k,e[u[P]],d[0],f[P])):P<32?(S=y(r,n,i,o,h,e[s[P]],l[1],c[P]),A=m(w,_,x,O,k,e[u[P]],d[1],f[P])):P<48?(S=g(r,n,i,o,h,e[s[P]],l[2],c[P]),A=g(w,_,x,O,k,e[u[P]],d[2],f[P])):P<64?(S=m(r,n,i,o,h,e[s[P]],l[3],c[P]),A=y(w,_,x,O,k,e[u[P]],d[3],f[P])):(S=v(r,n,i,o,h,e[s[P]],l[4],c[P]),A=b(w,_,x,O,k,e[u[P]],d[4],f[P])),r=h,h=o,o=p(i,10),i=n,n=S,w=k,k=O,O=p(x,10),x=_,_=A}var E=this._b+i+O|0;this._b=this._c+o+k|0,this._c=this._d+h+w|0,this._d=this._e+r+_|0,this._e=this._a+n+x|0,this._a=E},h.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=n.alloc?n.alloc(20):new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=h},51675:function(e,t,r){"use strict";var n=r(48764).Buffer,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getLength=t.decode=t.encode=void 0;var o=i(r(13550));function a(e,t){if("0"===e[0]&&"0"===e[1])throw new Error("invalid RLP: extra zeros");return parseInt(e,t)}function s(e,t){if(e<56)return n.from([e+t]);var r=f(e),i=f(t+55+r.length/2);return n.from(i+r,"hex")}function u(e){var t,r,i,o,s,c=[],f=e[0];if(f<=127)return{data:e.slice(0,1),remainder:e.slice(1)};if(f<=183){if(t=f-127,i=128===f?n.from([]):e.slice(1,t),2===t&&i[0]<128)throw new Error("invalid rlp encoding: byte must be less 0x80");return{data:i,remainder:e.slice(t)}}if(f<=191){if(r=f-182,e.length-1<r)throw new Error("invalid RLP: not enough bytes for string length");if((t=a(e.slice(1,r).toString("hex"),16))<=55)throw new Error("invalid RLP: expected string length to be greater than 55");if((i=e.slice(r,t+r)).length<t)throw new Error("invalid RLP: not enough bytes for string");return{data:i,remainder:e.slice(t+r)}}if(f<=247){for(t=f-191,o=e.slice(1,t);o.length;)s=u(o),c.push(s.data),o=s.remainder;return{data:c,remainder:e.slice(t)}}var l=(r=f-246)+(t=a(e.slice(1,r).toString("hex"),16));if(l>e.length)throw new Error("invalid rlp: total length is larger than the data");if(0===(o=e.slice(r,l)).length)throw new Error("invalid rlp, List has a invalid length");for(;o.length;)s=u(o),c.push(s.data),o=s.remainder;return{data:c,remainder:e.slice(l)}}function c(e){return"0x"===e.slice(0,2)}function f(e){if(e<0)throw new Error("Invalid integer as argument, must be unsigned!");var t=e.toString(16);return t.length%2?"0"+t:t}function l(e){if(!n.isBuffer(e)){if("string"==typeof e)return c(e)?n.from((r="string"!=typeof(i=e)?i:c(i)?i.slice(2):i).length%2?"0"+r:r,"hex"):n.from(e);if("number"==typeof e||"bigint"==typeof e)return e?(t=f(e),n.from(t,"hex")):n.from([]);if(null==e)return n.from([]);if(e instanceof Uint8Array)return n.from(e);if(o.default.isBN(e))return n.from(e.toArray());throw new Error("invalid type")}var t,r,i;return e}t.encode=function e(t){if(Array.isArray(t)){for(var r=[],i=0;i<t.length;i++)r.push(e(t[i]));var o=n.concat(r);return n.concat([s(o.length,192),o])}var a=l(t);return 1===a.length&&a[0]<128?a:n.concat([s(a.length,128),a])},t.decode=function(e,t){if(void 0===t&&(t=!1),!e||0===e.length)return n.from([]);var r=u(l(e));if(t)return r;if(0!==r.remainder.length)throw new Error("invalid remainder");return r.data},t.getLength=function(e){if(!e||0===e.length)return n.from([]);var t=l(e),r=t[0];if(r<=127)return t.length;if(r<=183)return r-127;if(r<=191)return r-182;if(r<=247)return r-191;var i=r-246;return i+a(t.slice(1,i).toString("hex"),16)}},72872:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.interval=t.iif=t.generate=t.fromEventPattern=t.fromEvent=t.from=t.forkJoin=t.empty=t.defer=t.connectable=t.concat=t.combineLatest=t.bindNodeCallback=t.bindCallback=t.UnsubscriptionError=t.TimeoutError=t.SequenceError=t.ObjectUnsubscribedError=t.NotFoundError=t.EmptyError=t.ArgumentOutOfRangeError=t.firstValueFrom=t.lastValueFrom=t.isObservable=t.identity=t.noop=t.pipe=t.NotificationKind=t.Notification=t.Subscriber=t.Subscription=t.Scheduler=t.VirtualAction=t.VirtualTimeScheduler=t.animationFrameScheduler=t.animationFrame=t.queueScheduler=t.queue=t.asyncScheduler=t.async=t.asapScheduler=t.asap=t.AsyncSubject=t.ReplaySubject=t.BehaviorSubject=t.Subject=t.animationFrames=t.observable=t.ConnectableObservable=t.Observable=void 0,t.filter=t.expand=t.exhaustMap=t.exhaustAll=t.exhaust=t.every=t.endWith=t.elementAt=t.distinctUntilKeyChanged=t.distinctUntilChanged=t.distinct=t.dematerialize=t.delayWhen=t.delay=t.defaultIfEmpty=t.debounceTime=t.debounce=t.count=t.connect=t.concatWith=t.concatMapTo=t.concatMap=t.concatAll=t.combineLatestWith=t.combineLatestAll=t.combineAll=t.catchError=t.bufferWhen=t.bufferToggle=t.bufferTime=t.bufferCount=t.buffer=t.auditTime=t.audit=t.config=t.NEVER=t.EMPTY=t.scheduled=t.zip=t.using=t.timer=t.throwError=t.range=t.race=t.partition=t.pairs=t.onErrorResumeNext=t.of=t.never=t.merge=void 0,t.switchMap=t.switchAll=t.subscribeOn=t.startWith=t.skipWhile=t.skipUntil=t.skipLast=t.skip=t.single=t.shareReplay=t.share=t.sequenceEqual=t.scan=t.sampleTime=t.sample=t.refCount=t.retryWhen=t.retry=t.repeatWhen=t.repeat=t.reduce=t.raceWith=t.publishReplay=t.publishLast=t.publishBehavior=t.publish=t.pluck=t.pairwise=t.onErrorResumeNextWith=t.observeOn=t.multicast=t.min=t.mergeWith=t.mergeScan=t.mergeMapTo=t.mergeMap=t.flatMap=t.mergeAll=t.max=t.materialize=t.mapTo=t.map=t.last=t.isEmpty=t.ignoreElements=t.groupBy=t.first=t.findIndex=t.find=t.finalize=void 0,t.zipWith=t.zipAll=t.withLatestFrom=t.windowWhen=t.windowToggle=t.windowTime=t.windowCount=t.window=t.toArray=t.timestamp=t.timeoutWith=t.timeout=t.timeInterval=t.throwIfEmpty=t.throttleTime=t.throttle=t.tap=t.takeWhile=t.takeUntil=t.takeLast=t.take=t.switchScan=t.switchMapTo=void 0;var o=r(2419);Object.defineProperty(t,"Observable",{enumerable:!0,get:function(){return o.Observable}});var a=r(99518);Object.defineProperty(t,"ConnectableObservable",{enumerable:!0,get:function(){return a.ConnectableObservable}});var s=r(72801);Object.defineProperty(t,"observable",{enumerable:!0,get:function(){return s.observable}});var u=r(79106);Object.defineProperty(t,"animationFrames",{enumerable:!0,get:function(){return u.animationFrames}});var c=r(63032);Object.defineProperty(t,"Subject",{enumerable:!0,get:function(){return c.Subject}});var f=r(15240);Object.defineProperty(t,"BehaviorSubject",{enumerable:!0,get:function(){return f.BehaviorSubject}});var l=r(33274);Object.defineProperty(t,"ReplaySubject",{enumerable:!0,get:function(){return l.ReplaySubject}});var d=r(90280);Object.defineProperty(t,"AsyncSubject",{enumerable:!0,get:function(){return d.AsyncSubject}});var h=r(30580);Object.defineProperty(t,"asap",{enumerable:!0,get:function(){return h.asap}}),Object.defineProperty(t,"asapScheduler",{enumerable:!0,get:function(){return h.asapScheduler}});var p=r(52445);Object.defineProperty(t,"async",{enumerable:!0,get:function(){return p.async}}),Object.defineProperty(t,"asyncScheduler",{enumerable:!0,get:function(){return p.asyncScheduler}});var b=r(38615);Object.defineProperty(t,"queue",{enumerable:!0,get:function(){return b.queue}}),Object.defineProperty(t,"queueScheduler",{enumerable:!0,get:function(){return b.queueScheduler}});var y=r(63660);Object.defineProperty(t,"animationFrame",{enumerable:!0,get:function(){return y.animationFrame}}),Object.defineProperty(t,"animationFrameScheduler",{enumerable:!0,get:function(){return y.animationFrameScheduler}});var g=r(8558);Object.defineProperty(t,"VirtualTimeScheduler",{enumerable:!0,get:function(){return g.VirtualTimeScheduler}}),Object.defineProperty(t,"VirtualAction",{enumerable:!0,get:function(){return g.VirtualAction}});var m=r(10218);Object.defineProperty(t,"Scheduler",{enumerable:!0,get:function(){return m.Scheduler}});var v=r(93865);Object.defineProperty(t,"Subscription",{enumerable:!0,get:function(){return v.Subscription}});var w=r(85125);Object.defineProperty(t,"Subscriber",{enumerable:!0,get:function(){return w.Subscriber}});var _=r(23104);Object.defineProperty(t,"Notification",{enumerable:!0,get:function(){return _.Notification}}),Object.defineProperty(t,"NotificationKind",{enumerable:!0,get:function(){return _.NotificationKind}});var x=r(9985);Object.defineProperty(t,"pipe",{enumerable:!0,get:function(){return x.pipe}});var O=r(42576);Object.defineProperty(t,"noop",{enumerable:!0,get:function(){return O.noop}});var k=r(14781);Object.defineProperty(t,"identity",{enumerable:!0,get:function(){return k.identity}});var P=r(88386);Object.defineProperty(t,"isObservable",{enumerable:!0,get:function(){return P.isObservable}});var S=r(99309);Object.defineProperty(t,"lastValueFrom",{enumerable:!0,get:function(){return S.lastValueFrom}});var A=r(58182);Object.defineProperty(t,"firstValueFrom",{enumerable:!0,get:function(){return A.firstValueFrom}});var E=r(42351);Object.defineProperty(t,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return E.ArgumentOutOfRangeError}});var M=r(39474);Object.defineProperty(t,"EmptyError",{enumerable:!0,get:function(){return M.EmptyError}});var j=r(48598);Object.defineProperty(t,"NotFoundError",{enumerable:!0,get:function(){return j.NotFoundError}});var T=r(82642);Object.defineProperty(t,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return T.ObjectUnsubscribedError}});var B=r(46156);Object.defineProperty(t,"SequenceError",{enumerable:!0,get:function(){return B.SequenceError}});var I=r(34173);Object.defineProperty(t,"TimeoutError",{enumerable:!0,get:function(){return I.TimeoutError}});var N=r(24805);Object.defineProperty(t,"UnsubscriptionError",{enumerable:!0,get:function(){return N.UnsubscriptionError}});var R=r(63050);Object.defineProperty(t,"bindCallback",{enumerable:!0,get:function(){return R.bindCallback}});var C=r(48130);Object.defineProperty(t,"bindNodeCallback",{enumerable:!0,get:function(){return C.bindNodeCallback}});var U=r(99258);Object.defineProperty(t,"combineLatest",{enumerable:!0,get:function(){return U.combineLatest}});var L=r(12239);Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return L.concat}});var D=r(62873);Object.defineProperty(t,"connectable",{enumerable:!0,get:function(){return D.connectable}});var H=r(37885);Object.defineProperty(t,"defer",{enumerable:!0,get:function(){return H.defer}});var F=r(16332);Object.defineProperty(t,"empty",{enumerable:!0,get:function(){return F.empty}});var V=r(7245);Object.defineProperty(t,"forkJoin",{enumerable:!0,get:function(){return V.forkJoin}});var z=r(85432);Object.defineProperty(t,"from",{enumerable:!0,get:function(){return z.from}});var q=r(83267);Object.defineProperty(t,"fromEvent",{enumerable:!0,get:function(){return q.fromEvent}});var K=r(20470);Object.defineProperty(t,"fromEventPattern",{enumerable:!0,get:function(){return K.fromEventPattern}});var W=r(24303);Object.defineProperty(t,"generate",{enumerable:!0,get:function(){return W.generate}});var G=r(61757);Object.defineProperty(t,"iif",{enumerable:!0,get:function(){return G.iif}});var X=r(98990);Object.defineProperty(t,"interval",{enumerable:!0,get:function(){return X.interval}});var Z=r(21846);Object.defineProperty(t,"merge",{enumerable:!0,get:function(){return Z.merge}});var J=r(41339);Object.defineProperty(t,"never",{enumerable:!0,get:function(){return J.never}});var Y=r(95726);Object.defineProperty(t,"of",{enumerable:!0,get:function(){return Y.of}});var Q=r(90724);Object.defineProperty(t,"onErrorResumeNext",{enumerable:!0,get:function(){return Q.onErrorResumeNext}});var $=r(74380);Object.defineProperty(t,"pairs",{enumerable:!0,get:function(){return $.pairs}});var ee=r(97273);Object.defineProperty(t,"partition",{enumerable:!0,get:function(){return ee.partition}});var te=r(85182);Object.defineProperty(t,"race",{enumerable:!0,get:function(){return te.race}});var re=r(40322);Object.defineProperty(t,"range",{enumerable:!0,get:function(){return re.range}});var ne=r(92098);Object.defineProperty(t,"throwError",{enumerable:!0,get:function(){return ne.throwError}});var ie=r(87513);Object.defineProperty(t,"timer",{enumerable:!0,get:function(){return ie.timer}});var oe=r(62962);Object.defineProperty(t,"using",{enumerable:!0,get:function(){return oe.using}});var ae=r(57654);Object.defineProperty(t,"zip",{enumerable:!0,get:function(){return ae.zip}});var se=r(65207);Object.defineProperty(t,"scheduled",{enumerable:!0,get:function(){return se.scheduled}});var ue=r(16332);Object.defineProperty(t,"EMPTY",{enumerable:!0,get:function(){return ue.EMPTY}});var ce=r(41339);Object.defineProperty(t,"NEVER",{enumerable:!0,get:function(){return ce.NEVER}}),i(r(28433),t);var fe=r(23280);Object.defineProperty(t,"config",{enumerable:!0,get:function(){return fe.config}});var le=r(76474);Object.defineProperty(t,"audit",{enumerable:!0,get:function(){return le.audit}});var de=r(95382);Object.defineProperty(t,"auditTime",{enumerable:!0,get:function(){return de.auditTime}});var he=r(89715);Object.defineProperty(t,"buffer",{enumerable:!0,get:function(){return he.buffer}});var pe=r(63814);Object.defineProperty(t,"bufferCount",{enumerable:!0,get:function(){return pe.bufferCount}});var be=r(7211);Object.defineProperty(t,"bufferTime",{enumerable:!0,get:function(){return be.bufferTime}});var ye=r(84943);Object.defineProperty(t,"bufferToggle",{enumerable:!0,get:function(){return ye.bufferToggle}});var ge=r(91240);Object.defineProperty(t,"bufferWhen",{enumerable:!0,get:function(){return ge.bufferWhen}});var me=r(69548);Object.defineProperty(t,"catchError",{enumerable:!0,get:function(){return me.catchError}});var ve=r(52128);Object.defineProperty(t,"combineAll",{enumerable:!0,get:function(){return ve.combineAll}});var we=r(73240);Object.defineProperty(t,"combineLatestAll",{enumerable:!0,get:function(){return we.combineLatestAll}});var _e=r(65024);Object.defineProperty(t,"combineLatestWith",{enumerable:!0,get:function(){return _e.combineLatestWith}});var xe=r(84413);Object.defineProperty(t,"concatAll",{enumerable:!0,get:function(){return xe.concatAll}});var Oe=r(27498);Object.defineProperty(t,"concatMap",{enumerable:!0,get:function(){return Oe.concatMap}});var ke=r(6109);Object.defineProperty(t,"concatMapTo",{enumerable:!0,get:function(){return ke.concatMapTo}});var Pe=r(78185);Object.defineProperty(t,"concatWith",{enumerable:!0,get:function(){return Pe.concatWith}});var Se=r(81995);Object.defineProperty(t,"connect",{enumerable:!0,get:function(){return Se.connect}});var Ae=r(70993);Object.defineProperty(t,"count",{enumerable:!0,get:function(){return Ae.count}});var Ee=r(70496);Object.defineProperty(t,"debounce",{enumerable:!0,get:function(){return Ee.debounce}});var Me=r(61385);Object.defineProperty(t,"debounceTime",{enumerable:!0,get:function(){return Me.debounceTime}});var je=r(71658);Object.defineProperty(t,"defaultIfEmpty",{enumerable:!0,get:function(){return je.defaultIfEmpty}});var Te=r(77305);Object.defineProperty(t,"delay",{enumerable:!0,get:function(){return Te.delay}});var Be=r(78798);Object.defineProperty(t,"delayWhen",{enumerable:!0,get:function(){return Be.delayWhen}});var Ie=r(11080);Object.defineProperty(t,"dematerialize",{enumerable:!0,get:function(){return Ie.dematerialize}});var Ne=r(63054);Object.defineProperty(t,"distinct",{enumerable:!0,get:function(){return Ne.distinct}});var Re=r(98737);Object.defineProperty(t,"distinctUntilChanged",{enumerable:!0,get:function(){return Re.distinctUntilChanged}});var Ce=r(77957);Object.defineProperty(t,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return Ce.distinctUntilKeyChanged}});var Ue=r(88633);Object.defineProperty(t,"elementAt",{enumerable:!0,get:function(){return Ue.elementAt}});var Le=r(90911);Object.defineProperty(t,"endWith",{enumerable:!0,get:function(){return Le.endWith}});var De=r(2096);Object.defineProperty(t,"every",{enumerable:!0,get:function(){return De.every}});var He=r(70067);Object.defineProperty(t,"exhaust",{enumerable:!0,get:function(){return He.exhaust}});var Fe=r(75337);Object.defineProperty(t,"exhaustAll",{enumerable:!0,get:function(){return Fe.exhaustAll}});var Ve=r(5635);Object.defineProperty(t,"exhaustMap",{enumerable:!0,get:function(){return Ve.exhaustMap}});var ze=r(59745);Object.defineProperty(t,"expand",{enumerable:!0,get:function(){return ze.expand}});var qe=r(49154);Object.defineProperty(t,"filter",{enumerable:!0,get:function(){return qe.filter}});var Ke=r(9283);Object.defineProperty(t,"finalize",{enumerable:!0,get:function(){return Ke.finalize}});var We=r(47119);Object.defineProperty(t,"find",{enumerable:!0,get:function(){return We.find}});var Ge=r(74706);Object.defineProperty(t,"findIndex",{enumerable:!0,get:function(){return Ge.findIndex}});var Xe=r(29219);Object.defineProperty(t,"first",{enumerable:!0,get:function(){return Xe.first}});var Ze=r(79749);Object.defineProperty(t,"groupBy",{enumerable:!0,get:function(){return Ze.groupBy}});var Je=r(29438);Object.defineProperty(t,"ignoreElements",{enumerable:!0,get:function(){return Je.ignoreElements}});var Ye=r(28515);Object.defineProperty(t,"isEmpty",{enumerable:!0,get:function(){return Ye.isEmpty}});var Qe=r(22435);Object.defineProperty(t,"last",{enumerable:!0,get:function(){return Qe.last}});var $e=r(47291);Object.defineProperty(t,"map",{enumerable:!0,get:function(){return $e.map}});var et=r(18313);Object.defineProperty(t,"mapTo",{enumerable:!0,get:function(){return et.mapTo}});var tt=r(33209);Object.defineProperty(t,"materialize",{enumerable:!0,get:function(){return tt.materialize}});var rt=r(72620);Object.defineProperty(t,"max",{enumerable:!0,get:function(){return rt.max}});var nt=r(93783);Object.defineProperty(t,"mergeAll",{enumerable:!0,get:function(){return nt.mergeAll}});var it=r(21788);Object.defineProperty(t,"flatMap",{enumerable:!0,get:function(){return it.flatMap}});var ot=r(99475);Object.defineProperty(t,"mergeMap",{enumerable:!0,get:function(){return ot.mergeMap}});var at=r(61211);Object.defineProperty(t,"mergeMapTo",{enumerable:!0,get:function(){return at.mergeMapTo}});var st=r(97267);Object.defineProperty(t,"mergeScan",{enumerable:!0,get:function(){return st.mergeScan}});var ut=r(49303);Object.defineProperty(t,"mergeWith",{enumerable:!0,get:function(){return ut.mergeWith}});var ct=r(99714);Object.defineProperty(t,"min",{enumerable:!0,get:function(){return ct.min}});var ft=r(73848);Object.defineProperty(t,"multicast",{enumerable:!0,get:function(){return ft.multicast}});var lt=r(1184);Object.defineProperty(t,"observeOn",{enumerable:!0,get:function(){return lt.observeOn}});var dt=r(37582);Object.defineProperty(t,"onErrorResumeNextWith",{enumerable:!0,get:function(){return dt.onErrorResumeNextWith}});var ht=r(52731);Object.defineProperty(t,"pairwise",{enumerable:!0,get:function(){return ht.pairwise}});var pt=r(84691);Object.defineProperty(t,"pluck",{enumerable:!0,get:function(){return pt.pluck}});var bt=r(4474);Object.defineProperty(t,"publish",{enumerable:!0,get:function(){return bt.publish}});var yt=r(70052);Object.defineProperty(t,"publishBehavior",{enumerable:!0,get:function(){return yt.publishBehavior}});var gt=r(82110);Object.defineProperty(t,"publishLast",{enumerable:!0,get:function(){return gt.publishLast}});var mt=r(89864);Object.defineProperty(t,"publishReplay",{enumerable:!0,get:function(){return mt.publishReplay}});var vt=r(179);Object.defineProperty(t,"raceWith",{enumerable:!0,get:function(){return vt.raceWith}});var wt=r(60122);Object.defineProperty(t,"reduce",{enumerable:!0,get:function(){return wt.reduce}});var _t=r(5313);Object.defineProperty(t,"repeat",{enumerable:!0,get:function(){return _t.repeat}});var xt=r(54068);Object.defineProperty(t,"repeatWhen",{enumerable:!0,get:function(){return xt.repeatWhen}});var Ot=r(40064);Object.defineProperty(t,"retry",{enumerable:!0,get:function(){return Ot.retry}});var kt=r(11188);Object.defineProperty(t,"retryWhen",{enumerable:!0,get:function(){return kt.retryWhen}});var Pt=r(28739);Object.defineProperty(t,"refCount",{enumerable:!0,get:function(){return Pt.refCount}});var St=r(84193);Object.defineProperty(t,"sample",{enumerable:!0,get:function(){return St.sample}});var At=r(76170);Object.defineProperty(t,"sampleTime",{enumerable:!0,get:function(){return At.sampleTime}});var Et=r(85876);Object.defineProperty(t,"scan",{enumerable:!0,get:function(){return Et.scan}});var Mt=r(41791);Object.defineProperty(t,"sequenceEqual",{enumerable:!0,get:function(){return Mt.sequenceEqual}});var jt=r(15137);Object.defineProperty(t,"share",{enumerable:!0,get:function(){return jt.share}});var Tt=r(11348);Object.defineProperty(t,"shareReplay",{enumerable:!0,get:function(){return Tt.shareReplay}});var Bt=r(28242);Object.defineProperty(t,"single",{enumerable:!0,get:function(){return Bt.single}});var It=r(83169);Object.defineProperty(t,"skip",{enumerable:!0,get:function(){return It.skip}});var Nt=r(42454);Object.defineProperty(t,"skipLast",{enumerable:!0,get:function(){return Nt.skipLast}});var Rt=r(36931);Object.defineProperty(t,"skipUntil",{enumerable:!0,get:function(){return Rt.skipUntil}});var Ct=r(77913);Object.defineProperty(t,"skipWhile",{enumerable:!0,get:function(){return Ct.skipWhile}});var Ut=r(29234);Object.defineProperty(t,"startWith",{enumerable:!0,get:function(){return Ut.startWith}});var Lt=r(40276);Object.defineProperty(t,"subscribeOn",{enumerable:!0,get:function(){return Lt.subscribeOn}});var Dt=r(29253);Object.defineProperty(t,"switchAll",{enumerable:!0,get:function(){return Dt.switchAll}});var Ht=r(68518);Object.defineProperty(t,"switchMap",{enumerable:!0,get:function(){return Ht.switchMap}});var Ft=r(21173);Object.defineProperty(t,"switchMapTo",{enumerable:!0,get:function(){return Ft.switchMapTo}});var Vt=r(73855);Object.defineProperty(t,"switchScan",{enumerable:!0,get:function(){return Vt.switchScan}});var zt=r(54783);Object.defineProperty(t,"take",{enumerable:!0,get:function(){return zt.take}});var qt=r(71980);Object.defineProperty(t,"takeLast",{enumerable:!0,get:function(){return qt.takeLast}});var Kt=r(69845);Object.defineProperty(t,"takeUntil",{enumerable:!0,get:function(){return Kt.takeUntil}});var Wt=r(6060);Object.defineProperty(t,"takeWhile",{enumerable:!0,get:function(){return Wt.takeWhile}});var Gt=r(1138);Object.defineProperty(t,"tap",{enumerable:!0,get:function(){return Gt.tap}});var Xt=r(77306);Object.defineProperty(t,"throttle",{enumerable:!0,get:function(){return Xt.throttle}});var Zt=r(2239);Object.defineProperty(t,"throttleTime",{enumerable:!0,get:function(){return Zt.throttleTime}});var Jt=r(81779);Object.defineProperty(t,"throwIfEmpty",{enumerable:!0,get:function(){return Jt.throwIfEmpty}});var Yt=r(28005);Object.defineProperty(t,"timeInterval",{enumerable:!0,get:function(){return Yt.timeInterval}});var Qt=r(34173);Object.defineProperty(t,"timeout",{enumerable:!0,get:function(){return Qt.timeout}});var $t=r(87223);Object.defineProperty(t,"timeoutWith",{enumerable:!0,get:function(){return $t.timeoutWith}});var er=r(88975);Object.defineProperty(t,"timestamp",{enumerable:!0,get:function(){return er.timestamp}});var tr=r(40002);Object.defineProperty(t,"toArray",{enumerable:!0,get:function(){return tr.toArray}});var rr=r(2826);Object.defineProperty(t,"window",{enumerable:!0,get:function(){return rr.window}});var nr=r(47526);Object.defineProperty(t,"windowCount",{enumerable:!0,get:function(){return nr.windowCount}});var ir=r(78294);Object.defineProperty(t,"windowTime",{enumerable:!0,get:function(){return ir.windowTime}});var or=r(61883);Object.defineProperty(t,"windowToggle",{enumerable:!0,get:function(){return or.windowToggle}});var ar=r(94309);Object.defineProperty(t,"windowWhen",{enumerable:!0,get:function(){return ar.windowWhen}});var sr=r(83032);Object.defineProperty(t,"withLatestFrom",{enumerable:!0,get:function(){return sr.withLatestFrom}});var ur=r(78593);Object.defineProperty(t,"zipAll",{enumerable:!0,get:function(){return ur.zipAll}});var cr=r(78096);Object.defineProperty(t,"zipWith",{enumerable:!0,get:function(){return cr.zipWith}})},90280:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncSubject=void 0;var o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._value=null,t._hasValue=!1,t._isComplete=!1,t}return i(t,e),t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t._hasValue,i=t._value,o=t.thrownError,a=t.isStopped,s=t._isComplete;r?e.error(o):(a||s)&&(n&&e.next(i),e.complete())},t.prototype.next=function(e){this.isStopped||(this._value=e,this._hasValue=!0)},t.prototype.complete=function(){var t=this,r=t._hasValue,n=t._value;t._isComplete||(this._isComplete=!0,r&&e.prototype.next.call(this,n),e.prototype.complete.call(this))},t}(r(63032).Subject);t.AsyncSubject=o},15240:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.BehaviorSubject=void 0;var o=function(e){function t(t){var r=e.call(this)||this;return r._value=t,r}return i(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var r=e.prototype._subscribe.call(this,t);return!r.closed&&t.next(this._value),r},t.prototype.getValue=function(){var e=this,t=e.hasError,r=e.thrownError,n=e._value;if(t)throw r;return this._throwIfClosed(),n},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(r(63032).Subject);t.BehaviorSubject=o},23104:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observeNotification=t.Notification=t.NotificationKind=void 0;var n,i=r(16332),o=r(95726),a=r(92098),s=r(73005);(n=t.NotificationKind||(t.NotificationKind={})).NEXT="N",n.ERROR="E",n.COMPLETE="C";var u=function(){function e(e,t,r){this.kind=e,this.value=t,this.error=r,this.hasValue="N"===e}return e.prototype.observe=function(e){return c(this,e)},e.prototype.do=function(e,t,r){var n=this,i=n.kind,o=n.value,a=n.error;return"N"===i?null==e?void 0:e(o):"E"===i?null==t?void 0:t(a):null==r?void 0:r()},e.prototype.accept=function(e,t,r){var n;return s.isFunction(null===(n=e)||void 0===n?void 0:n.next)?this.observe(e):this.do(e,t,r)},e.prototype.toObservable=function(){var e=this,t=e.kind,r=e.value,n=e.error,s="N"===t?o.of(r):"E"===t?a.throwError((function(){return n})):"C"===t?i.EMPTY:0;if(!s)throw new TypeError("Unexpected notification kind "+t);return s},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e}();function c(e,t){var r,n,i,o=e,a=o.kind,s=o.value,u=o.error;if("string"!=typeof a)throw new TypeError('Invalid notification, missing "kind"');"N"===a?null===(r=t.next)||void 0===r||r.call(t,s):"E"===a?null===(n=t.error)||void 0===n||n.call(t,u):null===(i=t.complete)||void 0===i||i.call(t)}t.Notification=u,t.observeNotification=c},17286:(e,t)=>{"use strict";function r(e,t,r){return{kind:e,value:t,error:r}}Object.defineProperty(t,"__esModule",{value:!0}),t.createNotification=t.nextNotification=t.errorNotification=t.COMPLETE_NOTIFICATION=void 0,t.COMPLETE_NOTIFICATION=r("C",void 0,void 0),t.errorNotification=function(e){return r("E",void 0,e)},t.nextNotification=function(e){return r("N",e,void 0)},t.createNotification=r},2419:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Observable=void 0;var n=r(85125),i=r(93865),o=r(72801),a=r(9985),s=r(23280),u=r(73005),c=r(86110),f=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var o,a=this,s=(o=e)&&o instanceof n.Subscriber||function(e){return e&&u.isFunction(e.next)&&u.isFunction(e.error)&&u.isFunction(e.complete)}(o)&&i.isSubscription(o)?e:new n.SafeSubscriber(e,t,r);return c.errorContext((function(){var e=a,t=e.operator,r=e.source;s.add(t?t.call(s,r):r?a._subscribe(s):a._trySubscribe(s))})),s},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=l(t))((function(t,i){var o=new n.SafeSubscriber({next:function(t){try{e(t)}catch(e){i(e),o.unsubscribe()}},error:i,complete:t});r.subscribe(o)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[o.observable]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a.pipeFromArray(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=l(e))((function(e,r){var n;t.subscribe((function(e){return n=e}),(function(e){return r(e)}),(function(){return e(n)}))}))},e.create=function(t){return new e(t)},e}();function l(e){var t;return null!==(t=null!=e?e:s.config.Promise)&&void 0!==t?t:Promise}t.Observable=f},33274:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.ReplaySubject=void 0;var o=r(63032),a=r(87950),s=function(e){function t(t,r,n){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===n&&(n=a.dateTimestampProvider);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=r,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,r),i}return i(t,e),t.prototype.next=function(t){var r=this,n=r.isStopped,i=r._buffer,o=r._infiniteTimeWindow,a=r._timestampProvider,s=r._windowTime;n||(i.push(t),!o&&i.push(a.now()+s)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!e.closed;i+=r?1:2)e.next(n[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,r=e._timestampProvider,n=e._buffer,i=e._infiniteTimeWindow,o=(i?1:2)*t;if(t<1/0&&o<n.length&&n.splice(0,n.length-o),!i){for(var a=r.now(),s=0,u=1;u<n.length&&n[u]<=a;u+=2)s=u;s&&n.splice(0,s+1)}},t}(o.Subject);t.ReplaySubject=s},10218:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Scheduler=void 0;var n=r(87950),i=function(){function e(t,r){void 0===r&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(e,t,r){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},e.now=n.dateTimestampProvider.now,e}();t.Scheduler=i},63032:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.AnonymousSubject=t.Subject=void 0;var a=r(2419),s=r(93865),u=r(82642),c=r(26967),f=r(86110),l=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i(t,e),t.prototype.lift=function(e){var t=new d(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new u.ObjectUnsubscribedError},t.prototype.next=function(e){var t=this;f.errorContext((function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=o(t.currentObservers),a=i.next();!a.done;a=i.next())a.value.next(e)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}}))},t.prototype.error=function(e){var t=this;f.errorContext((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}}))},t.prototype.complete=function(){var e=this;f.errorContext((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this,n=r.hasError,i=r.isStopped,o=r.observers;return n||i?s.EMPTY_SUBSCRIPTION:(this.currentObservers=null,o.push(e),new s.Subscription((function(){t.currentObservers=null,c.arrRemove(o,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,i=t.isStopped;r?e.error(n):i&&e.complete()},t.prototype.asObservable=function(){var e=new a.Observable;return e.source=this,e},t.create=function(e,t){return new d(e,t)},t}(a.Observable);t.Subject=l;var d=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return i(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:s.EMPTY_SUBSCRIPTION},t}(l);t.AnonymousSubject=d},85125:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_OBSERVER=t.SafeSubscriber=t.Subscriber=void 0;var o=r(73005),a=r(93865),s=r(23280),u=r(47968),c=r(42576),f=r(17286),l=r(84590),d=r(86110),h=function(e){function r(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,a.isSubscription(r)&&r.add(n)):n.destination=t.EMPTY_OBSERVER,n}return i(r,e),r.create=function(e,t,r){return new g(e,t,r)},r.prototype.next=function(e){this.isStopped?v(f.nextNotification(e),this):this._next(e)},r.prototype.error=function(e){this.isStopped?v(f.errorNotification(e),this):(this.isStopped=!0,this._error(e))},r.prototype.complete=function(){this.isStopped?v(f.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(e){this.destination.next(e)},r.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(a.Subscription);t.Subscriber=h;var p=Function.prototype.bind;function b(e,t){return p.call(e,t)}var y=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){m(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){m(e)}else m(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){m(e)}},e}(),g=function(e){function t(t,r,n){var i,a,u=e.call(this)||this;return o.isFunction(t)||!t?i={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:u&&s.config.useDeprecatedNextContext?((a=Object.create(t)).unsubscribe=function(){return u.unsubscribe()},i={next:t.next&&b(t.next,a),error:t.error&&b(t.error,a),complete:t.complete&&b(t.complete,a)}):i=t,u.destination=new y(i),u}return i(t,e),t}(h);function m(e){s.config.useDeprecatedSynchronousErrorHandling?d.captureError(e):u.reportUnhandledError(e)}function v(e,t){var r=s.config.onStoppedNotification;r&&l.timeoutProvider.setTimeout((function(){return r(e,t)}))}t.SafeSubscriber=g,t.EMPTY_OBSERVER={closed:!0,next:c.noop,error:function(e){throw e},complete:c.noop}},93865:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},o=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.isSubscription=t.EMPTY_SUBSCRIPTION=t.Subscription=void 0;var a=r(73005),s=r(24805),u=r(26967),c=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,r,u,c;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var d=n(l),h=d.next();!h.done;h=d.next())h.value.remove(this)}catch(t){e={error:t}}finally{try{h&&!h.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}else l.remove(this);var p=this.initialTeardown;if(a.isFunction(p))try{p()}catch(e){c=e instanceof s.UnsubscriptionError?e.errors:[e]}var b=this._finalizers;if(b){this._finalizers=null;try{for(var y=n(b),g=y.next();!g.done;g=y.next()){var m=g.value;try{f(m)}catch(e){c=null!=c?c:[],e instanceof s.UnsubscriptionError?c=o(o([],i(c)),i(e.errors)):c.push(e)}}}catch(e){r={error:e}}finally{try{g&&!g.done&&(u=y.return)&&u.call(y)}finally{if(r)throw r.error}}}if(c)throw new s.UnsubscriptionError(c)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)f(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&u.arrRemove(t,e)},e.prototype.remove=function(t){var r=this._finalizers;r&&u.arrRemove(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}();function f(e){a.isFunction(e)?e():e.unsubscribe()}t.Subscription=c,t.EMPTY_SUBSCRIPTION=c.EMPTY,t.isSubscription=function(e){return e instanceof c||e&&"closed"in e&&a.isFunction(e.remove)&&a.isFunction(e.add)&&a.isFunction(e.unsubscribe)}},23280:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.config=void 0,t.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},58182:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.firstValueFrom=void 0;var n=r(39474),i=r(85125);t.firstValueFrom=function(e,t){var r="object"==typeof t;return new Promise((function(o,a){var s=new i.SafeSubscriber({next:function(e){o(e),s.unsubscribe()},error:a,complete:function(){r?o(t.defaultValue):a(new n.EmptyError)}});e.subscribe(s)}))}},99309:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lastValueFrom=void 0;var n=r(39474);t.lastValueFrom=function(e,t){var r="object"==typeof t;return new Promise((function(i,o){var a,s=!1;e.subscribe({next:function(e){a=e,s=!0},error:o,complete:function(){s?i(a):r?i(t.defaultValue):o(new n.EmptyError)}})}))}},99518:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectableObservable=void 0;var o=r(2419),a=r(93865),s=r(28739),u=r(14990),c=r(84935),f=function(e){function t(t,r){var n=e.call(this)||this;return n.source=t,n.subjectFactory=r,n._subject=null,n._refCount=0,n._connection=null,c.hasLift(t)&&(n.lift=t.lift),n}return i(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype._teardown=function(){this._refCount=0;var e=this._connection;this._subject=this._connection=null,null==e||e.unsubscribe()},t.prototype.connect=function(){var e=this,t=this._connection;if(!t){t=this._connection=new a.Subscription;var r=this.getSubject();t.add(this.source.subscribe(u.createOperatorSubscriber(r,void 0,(function(){e._teardown(),r.complete()}),(function(t){e._teardown(),r.error(t)}),(function(){return e._teardown()})))),t.closed&&(this._connection=null,t=a.Subscription.EMPTY)}return t},t.prototype.refCount=function(){return s.refCount()(this)},t}(o.Observable);t.ConnectableObservable=f},63050:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bindCallback=void 0;var n=r(29592);t.bindCallback=function(e,t,r){return n.bindCallbackInternals(!1,e,t,r)}},29592:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.bindCallbackInternals=void 0;var o=r(59016),a=r(2419),s=r(40276),u=r(11914),c=r(1184),f=r(90280);t.bindCallbackInternals=function e(t,r,l,d){if(l){if(!o.isScheduler(l))return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return e(t,r,d).apply(this,n).pipe(u.mapOneOrManyArgs(l))};d=l}return d?function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return e(t,r).apply(this,n).pipe(s.subscribeOn(d),c.observeOn(d))}:function(){for(var e=this,o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var u=new f.AsyncSubject,c=!0;return new a.Observable((function(a){var s=u.subscribe(a);if(c){c=!1;var f=!1,l=!1;r.apply(e,i(i([],n(o)),[function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(t){var n=e.shift();if(null!=n)return void u.error(n)}u.next(1<e.length?e:e[0]),l=!0,f&&u.complete()}])),l&&u.complete(),f=!0}return s}))}}},48130:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bindNodeCallback=void 0;var n=r(29592);t.bindNodeCallback=function(e,t,r){return n.bindCallbackInternals(!0,e,t,r)}},99258:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatestInit=t.combineLatest=void 0;var n=r(2419),i=r(91203),o=r(85432),a=r(14781),s=r(11914),u=r(12433),c=r(60641),f=r(14990),l=r(27738);function d(e,t,r){return void 0===r&&(r=a.identity),function(n){h(t,(function(){for(var i=e.length,a=new Array(i),s=i,u=i,c=function(i){h(t,(function(){var c=o.from(e[i],t),l=!1;c.subscribe(f.createOperatorSubscriber(n,(function(e){a[i]=e,l||(l=!0,u--),u||n.next(r(a.slice()))}),(function(){--s||n.complete()})))}),n)},l=0;l<i;l++)c(l)}),n)}}function h(e,t,r){e?l.executeSchedule(r,e,t):t()}t.combineLatest=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=u.popScheduler(e),f=u.popResultSelector(e),l=i.argsArgArrayOrObject(e),h=l.args,p=l.keys;if(0===h.length)return o.from([],r);var b=new n.Observable(d(h,r,p?function(e){return c.createObject(p,e)}:a.identity));return f?b.pipe(s.mapOneOrManyArgs(f)):b},t.combineLatestInit=d},12239:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concat=void 0;var n=r(84413),i=r(12433),o=r(85432);t.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.concatAll()(o.from(e,i.popScheduler(e)))}},62873:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.connectable=void 0;var n=r(63032),i=r(2419),o=r(37885),a={connector:function(){return new n.Subject},resetOnDisconnect:!0};t.connectable=function(e,t){void 0===t&&(t=a);var r=null,n=t.connector,s=t.resetOnDisconnect,u=void 0===s||s,c=n(),f=new i.Observable((function(e){return c.subscribe(e)}));return f.connect=function(){return r&&!r.closed||(r=o.defer((function(){return e})).subscribe(c),u&&r.add((function(){return c=n()}))),r},f}},37885:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defer=void 0;var n=r(2419),i=r(87103);t.defer=function(e){return new n.Observable((function(t){i.innerFrom(e()).subscribe(t)}))}},79106:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.animationFrames=void 0;var n=r(2419),i=r(46813),o=r(70505);function a(e){return new n.Observable((function(t){var r=e||i.performanceTimestampProvider,n=r.now(),a=0,s=function(){t.closed||(a=o.animationFrameProvider.requestAnimationFrame((function(i){a=0;var o=r.now();t.next({timestamp:e?o:i,elapsed:o-n}),s()})))};return s(),function(){a&&o.animationFrameProvider.cancelAnimationFrame(a)}}))}t.animationFrames=function(e){return e?a(e):s};var s=a()},16332:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.empty=t.EMPTY=void 0;var n=r(2419);t.EMPTY=new n.Observable((function(e){return e.complete()})),t.empty=function(e){return e?function(e){return new n.Observable((function(t){return e.schedule((function(){return t.complete()}))}))}(e):t.EMPTY}},7245:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.forkJoin=void 0;var n=r(2419),i=r(91203),o=r(87103),a=r(12433),s=r(14990),u=r(11914),c=r(60641);t.forkJoin=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=a.popResultSelector(e),f=i.argsArgArrayOrObject(e),l=f.args,d=f.keys,h=new n.Observable((function(e){var t=l.length;if(t)for(var r=new Array(t),n=t,i=t,a=function(t){var a=!1;o.innerFrom(l[t]).subscribe(s.createOperatorSubscriber(e,(function(e){a||(a=!0,i--),r[t]=e}),(function(){return n--}),void 0,(function(){n&&a||(i||e.next(d?c.createObject(d,r):r),e.complete())})))},u=0;u<t;u++)a(u);else e.complete()}));return r?h.pipe(u.mapOneOrManyArgs(r)):h}},85432:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.from=void 0;var n=r(65207),i=r(87103);t.from=function(e,t){return t?n.scheduled(e,t):i.innerFrom(e)}},83267:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.fromEvent=void 0;var i=r(87103),o=r(2419),a=r(99475),s=r(73909),u=r(73005),c=r(11914),f=["addListener","removeListener"],l=["addEventListener","removeEventListener"],d=["on","off"];function h(e,t){return function(r){return function(n){return e[r](t,n)}}}t.fromEvent=function e(t,r,p,b){if(u.isFunction(p)&&(b=p,p=void 0),b)return e(t,r,p).pipe(c.mapOneOrManyArgs(b));var y=n(function(e){return u.isFunction(e.addEventListener)&&u.isFunction(e.removeEventListener)}(t)?l.map((function(e){return function(n){return t[e](r,n,p)}})):function(e){return u.isFunction(e.addListener)&&u.isFunction(e.removeListener)}(t)?f.map(h(t,r)):function(e){return u.isFunction(e.on)&&u.isFunction(e.off)}(t)?d.map(h(t,r)):[],2),g=y[0],m=y[1];if(!g&&s.isArrayLike(t))return a.mergeMap((function(t){return e(t,r,p)}))(i.innerFrom(t));if(!g)throw new TypeError("Invalid event target");return new o.Observable((function(e){var t=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.next(1<t.length?t:t[0])};return g(t),function(){return m(t)}}))}},20470:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromEventPattern=void 0;var n=r(2419),i=r(73005),o=r(11914);t.fromEventPattern=function e(t,r,a){return a?e(t,r).pipe(o.mapOneOrManyArgs(a)):new n.Observable((function(e){var n=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.next(1===t.length?t[0]:t)},o=t(n);return i.isFunction(r)?function(){return r(n,o)}:void 0}))}},90851:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromSubscribable=void 0;var n=r(2419);t.fromSubscribable=function(e){return new n.Observable((function(t){return e.subscribe(t)}))}},24303:function(e,t,r){"use strict";var n=this&&this.__generator||function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.generate=void 0;var i=r(14781),o=r(59016),a=r(37885),s=r(51297);t.generate=function(e,t,r,u,c){var f,l,d,h;function p(){var e;return n(this,(function(n){switch(n.label){case 0:e=h,n.label=1;case 1:return t&&!t(e)?[3,4]:[4,d(e)];case 2:n.sent(),n.label=3;case 3:return e=r(e),[3,1];case 4:return[2]}}))}return 1===arguments.length?(h=(f=e).initialState,t=f.condition,r=f.iterate,l=f.resultSelector,d=void 0===l?i.identity:l,c=f.scheduler):(h=e,!u||o.isScheduler(u)?(d=i.identity,c=u):d=u),a.defer(c?function(){return s.scheduleIterable(p(),c)}:p)}},61757:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.iif=void 0;var n=r(37885);t.iif=function(e,t,r){return n.defer((function(){return e()?t:r}))}},87103:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof a?a(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){!function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,i,(t=e[r](t)).done,t.value)}))}}},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.fromReadableStreamLike=t.fromAsyncIterable=t.fromIterable=t.fromPromise=t.fromArrayLike=t.fromInteropObservable=t.innerFrom=void 0;var s=r(73909),u=r(36018),c=r(2419),f=r(89500),l=r(49595),d=r(59906),h=r(52743),p=r(77823),b=r(73005),y=r(47968),g=r(72801);function m(e){return new c.Observable((function(t){var r=e[g.observable]();if(b.isFunction(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")}))}function v(e){return new c.Observable((function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()}))}function w(e){return new c.Observable((function(t){e.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,y.reportUnhandledError)}))}function _(e){return new c.Observable((function(t){var r,n;try{for(var i=a(e),o=i.next();!o.done;o=i.next()){var s=o.value;if(t.next(s),t.closed)return}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}t.complete()}))}function x(e){return new c.Observable((function(t){(function(e,t){var r,a,s,u;return n(this,void 0,void 0,(function(){var n,c;return i(this,(function(i){switch(i.label){case 0:i.trys.push([0,5,6,11]),r=o(e),i.label=1;case 1:return[4,r.next()];case 2:if((a=i.sent()).done)return[3,4];if(n=a.value,t.next(n),t.closed)return[2];i.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return c=i.sent(),s={error:c},[3,11];case 6:return i.trys.push([6,,9,10]),a&&!a.done&&(u=r.return)?[4,u.call(r)]:[3,8];case 7:i.sent(),i.label=8;case 8:return[3,10];case 9:if(s)throw s.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}}))}))})(e,t).catch((function(e){return t.error(e)}))}))}function O(e){return x(p.readableStreamLikeToAsyncGenerator(e))}t.innerFrom=function(e){if(e instanceof c.Observable)return e;if(null!=e){if(f.isInteropObservable(e))return m(e);if(s.isArrayLike(e))return v(e);if(u.isPromise(e))return w(e);if(l.isAsyncIterable(e))return x(e);if(h.isIterable(e))return _(e);if(p.isReadableStreamLike(e))return O(e)}throw d.createInvalidObservableTypeError(e)},t.fromInteropObservable=m,t.fromArrayLike=v,t.fromPromise=w,t.fromIterable=_,t.fromAsyncIterable=x,t.fromReadableStreamLike=O},98990:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.interval=void 0;var n=r(52445),i=r(87513);t.interval=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=n.asyncScheduler),e<0&&(e=0),i.timer(e,e,t)}},21846:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.merge=void 0;var n=r(93783),i=r(87103),o=r(16332),a=r(12433),s=r(85432);t.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=a.popScheduler(e),u=a.popNumber(e,1/0),c=e;return c.length?1===c.length?i.innerFrom(c[0]):n.mergeAll(u)(s.from(c,r)):o.EMPTY}},41339:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.never=t.NEVER=void 0;var n=r(2419),i=r(42576);t.NEVER=new n.Observable(i.noop),t.never=function(){return t.NEVER}},95726:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.of=void 0;var n=r(12433),i=r(85432);t.of=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=n.popScheduler(e);return i.from(e,r)}},90724:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onErrorResumeNext=void 0;var n=r(2419),i=r(5498),o=r(14990),a=r(42576),s=r(87103);t.onErrorResumeNext=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=i.argsOrArgArray(e);return new n.Observable((function(e){var t=0,n=function(){if(t<r.length){var i=void 0;try{i=s.innerFrom(r[t++])}catch(e){return void n()}var u=new o.OperatorSubscriber(e,void 0,a.noop,a.noop);i.subscribe(u),u.add(n)}else e.complete()};n()}))}},74380:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pairs=void 0;var n=r(85432);t.pairs=function(e,t){return n.from(Object.entries(e),t)}},97273:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.partition=void 0;var n=r(38634),i=r(49154),o=r(87103);t.partition=function(e,t,r){return[i.filter(t,r)(o.innerFrom(e)),i.filter(n.not(t,r))(o.innerFrom(e))]}},85182:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.raceInit=t.race=void 0;var n=r(2419),i=r(87103),o=r(5498),a=r(14990);function s(e){return function(t){for(var r=[],n=function(n){r.push(i.innerFrom(e[n]).subscribe(a.createOperatorSubscriber(t,(function(e){if(r){for(var i=0;i<r.length;i++)i!==n&&r[i].unsubscribe();r=null}t.next(e)}))))},o=0;r&&!t.closed&&o<e.length;o++)n(o)}}t.race=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===(e=o.argsOrArgArray(e)).length?i.innerFrom(e[0]):new n.Observable(s(e))},t.raceInit=s},40322:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.range=void 0;var n=r(2419),i=r(16332);t.range=function(e,t,r){if(null==t&&(t=e,e=0),t<=0)return i.EMPTY;var o=t+e;return new n.Observable(r?function(t){var n=e;return r.schedule((function(){n<o?(t.next(n++),this.schedule()):t.complete()}))}:function(t){for(var r=e;r<o&&!t.closed;)t.next(r++);t.complete()})}},92098:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throwError=void 0;var n=r(2419),i=r(73005);t.throwError=function(e,t){var r=i.isFunction(e)?e:function(){return e},o=function(e){return e.error(r())};return new n.Observable(t?function(e){return t.schedule(o,0,e)}:o)}},87513:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timer=void 0;var n=r(2419),i=r(52445),o=r(59016),a=r(91677);t.timer=function(e,t,r){void 0===e&&(e=0),void 0===r&&(r=i.async);var s=-1;return null!=t&&(o.isScheduler(t)?r=t:s=t),new n.Observable((function(t){var n=a.isValidDate(e)?+e-r.now():e;n<0&&(n=0);var i=0;return r.schedule((function(){t.closed||(t.next(i++),0<=s?this.schedule(void 0,s):t.complete())}),n)}))}},62962:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.using=void 0;var n=r(2419),i=r(87103),o=r(16332);t.using=function(e,t){return new n.Observable((function(r){var n=e(),a=t(n);return(a?i.innerFrom(a):o.EMPTY).subscribe(r),function(){n&&n.unsubscribe()}}))}},57654:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.zip=void 0;var o=r(2419),a=r(87103),s=r(5498),u=r(16332),c=r(14990),f=r(12433);t.zip=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=f.popResultSelector(e),l=s.argsOrArgArray(e);return l.length?new o.Observable((function(e){var t=l.map((function(){return[]})),o=l.map((function(){return!1}));e.add((function(){t=o=null}));for(var s=function(s){a.innerFrom(l[s]).subscribe(c.createOperatorSubscriber(e,(function(a){if(t[s].push(a),t.every((function(e){return e.length}))){var u=t.map((function(e){return e.shift()}));e.next(r?r.apply(void 0,i([],n(u))):u),t.some((function(e,t){return!e.length&&o[t]}))&&e.complete()}}),(function(){o[s]=!0,!t[s].length&&e.complete()})))},u=0;!e.closed&&u<l.length;u++)s(u);return function(){t=o=null}})):u.EMPTY}},14990:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.OperatorSubscriber=t.createOperatorSubscriber=void 0;var o=r(85125);t.createOperatorSubscriber=function(e,t,r,n,i){return new a(e,t,r,n,i)};var a=function(e){function t(t,r,n,i,o,a){var s=e.call(this,t)||this;return s.onFinalize=o,s.shouldUnsubscribe=a,s._next=r?function(e){try{r(e)}catch(e){t.error(e)}}:e.prototype._next,s._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=n?function(){try{n()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,s}return i(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),!r&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}},t}(o.Subscriber);t.OperatorSubscriber=a},76474:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.audit=void 0;var n=r(84935),i=r(87103),o=r(14990);t.audit=function(e){return n.operate((function(t,r){var n=!1,a=null,s=null,u=!1,c=function(){if(null==s||s.unsubscribe(),s=null,n){n=!1;var e=a;a=null,r.next(e)}u&&r.complete()},f=function(){s=null,u&&r.complete()};t.subscribe(o.createOperatorSubscriber(r,(function(t){n=!0,a=t,s||i.innerFrom(e(t)).subscribe(s=o.createOperatorSubscriber(r,c,f))}),(function(){u=!0,(!n||!s||s.closed)&&r.complete()})))}))}},95382:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.auditTime=void 0;var n=r(52445),i=r(76474),o=r(87513);t.auditTime=function(e,t){return void 0===t&&(t=n.asyncScheduler),i.audit((function(){return o.timer(e,t)}))}},89715:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buffer=void 0;var n=r(84935),i=r(42576),o=r(14990),a=r(87103);t.buffer=function(e){return n.operate((function(t,r){var n=[];return t.subscribe(o.createOperatorSubscriber(r,(function(e){return n.push(e)}),(function(){r.next(n),r.complete()}))),a.innerFrom(e).subscribe(o.createOperatorSubscriber(r,(function(){var e=n;n=[],r.next(e)}),i.noop)),function(){n=null}}))}},63814:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.bufferCount=void 0;var i=r(84935),o=r(14990),a=r(26967);t.bufferCount=function(e,t){return void 0===t&&(t=null),t=null!=t?t:e,i.operate((function(r,i){var s=[],u=0;r.subscribe(o.createOperatorSubscriber(i,(function(r){var o,c,f,l,d=null;u++%t==0&&s.push([]);try{for(var h=n(s),p=h.next();!p.done;p=h.next())(g=p.value).push(r),e<=g.length&&(d=null!=d?d:[]).push(g)}catch(e){o={error:e}}finally{try{p&&!p.done&&(c=h.return)&&c.call(h)}finally{if(o)throw o.error}}if(d)try{for(var b=n(d),y=b.next();!y.done;y=b.next()){var g=y.value;a.arrRemove(s,g),i.next(g)}}catch(e){f={error:e}}finally{try{y&&!y.done&&(l=b.return)&&l.call(b)}finally{if(f)throw f.error}}}),(function(){var e,t;try{for(var r=n(s),o=r.next();!o.done;o=r.next()){var a=o.value;i.next(a)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}i.complete()}),void 0,(function(){s=null})))}))}},7211:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.bufferTime=void 0;var i=r(93865),o=r(84935),a=r(14990),s=r(26967),u=r(52445),c=r(12433),f=r(27738);t.bufferTime=function(e){for(var t,r,l=[],d=1;d<arguments.length;d++)l[d-1]=arguments[d];var h=null!==(t=c.popScheduler(l))&&void 0!==t?t:u.asyncScheduler,p=null!==(r=l[0])&&void 0!==r?r:null,b=l[1]||1/0;return o.operate((function(t,r){var o=[],u=!1,c=function(e){var t=e.buffer;e.subs.unsubscribe(),s.arrRemove(o,e),r.next(t),u&&l()},l=function(){if(o){var t=new i.Subscription;r.add(t);var n={buffer:[],subs:t};o.push(n),f.executeSchedule(t,h,(function(){return c(n)}),e)}};null!==p&&p>=0?f.executeSchedule(r,h,l,p,!0):u=!0,l();var d=a.createOperatorSubscriber(r,(function(e){var t,r,i=o.slice();try{for(var a=n(i),s=a.next();!s.done;s=a.next()){var u=s.value,f=u.buffer;f.push(e),b<=f.length&&c(u)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}}),(function(){for(;null==o?void 0:o.length;)r.next(o.shift().buffer);null==d||d.unsubscribe(),r.complete(),r.unsubscribe()}),void 0,(function(){return o=null}));t.subscribe(d)}))}},84943:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.bufferToggle=void 0;var i=r(93865),o=r(84935),a=r(87103),s=r(14990),u=r(42576),c=r(26967);t.bufferToggle=function(e,t){return o.operate((function(r,o){var f=[];a.innerFrom(e).subscribe(s.createOperatorSubscriber(o,(function(e){var r=[];f.push(r);var n=new i.Subscription;n.add(a.innerFrom(t(e)).subscribe(s.createOperatorSubscriber(o,(function(){c.arrRemove(f,r),o.next(r),n.unsubscribe()}),u.noop)))}),u.noop)),r.subscribe(s.createOperatorSubscriber(o,(function(e){var t,r;try{for(var i=n(f),o=i.next();!o.done;o=i.next())o.value.push(e)}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}}),(function(){for(;f.length>0;)o.next(f.shift());o.complete()})))}))}},91240:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bufferWhen=void 0;var n=r(84935),i=r(42576),o=r(14990),a=r(87103);t.bufferWhen=function(e){return n.operate((function(t,r){var n=null,s=null,u=function(){null==s||s.unsubscribe();var t=n;n=[],t&&r.next(t),a.innerFrom(e()).subscribe(s=o.createOperatorSubscriber(r,u,i.noop))};u(),t.subscribe(o.createOperatorSubscriber(r,(function(e){return null==n?void 0:n.push(e)}),(function(){n&&r.next(n),r.complete()}),void 0,(function(){return n=s=null})))}))}},69548:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.catchError=void 0;var n=r(87103),i=r(14990),o=r(84935);t.catchError=function e(t){return o.operate((function(r,o){var a,s=null,u=!1;s=r.subscribe(i.createOperatorSubscriber(o,void 0,void 0,(function(i){a=n.innerFrom(t(i,e(t)(r))),s?(s.unsubscribe(),s=null,a.subscribe(o)):u=!0}))),u&&(s.unsubscribe(),s=null,a.subscribe(o))}))}},52128:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineAll=void 0;var n=r(73240);t.combineAll=n.combineLatestAll},46318:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatest=void 0;var o=r(99258),a=r(84935),s=r(5498),u=r(11914),c=r(9985),f=r(12433);t.combineLatest=function e(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var l=f.popResultSelector(t);return l?c.pipe(e.apply(void 0,i([],n(t))),u.mapOneOrManyArgs(l)):a.operate((function(e,r){o.combineLatestInit(i([e],n(s.argsOrArgArray(t))))(r)}))}},73240:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatestAll=void 0;var n=r(99258),i=r(32069);t.combineLatestAll=function(e){return i.joinAllInternals(n.combineLatest,e)}},65024:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatestWith=void 0;var o=r(46318);t.combineLatestWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.combineLatest.apply(void 0,i([],n(e)))}},94919:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.concat=void 0;var o=r(84935),a=r(84413),s=r(12433),u=r(85432);t.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=s.popScheduler(e);return o.operate((function(t,o){a.concatAll()(u.from(i([t],n(e)),r)).subscribe(o)}))}},84413:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatAll=void 0;var n=r(93783);t.concatAll=function(){return n.mergeAll(1)}},27498:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatMap=void 0;var n=r(99475),i=r(73005);t.concatMap=function(e,t){return i.isFunction(t)?n.mergeMap(e,t,1):n.mergeMap(e,1)}},6109:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatMapTo=void 0;var n=r(27498),i=r(73005);t.concatMapTo=function(e,t){return i.isFunction(t)?n.concatMap((function(){return e}),t):n.concatMap((function(){return e}))}},78185:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.concatWith=void 0;var o=r(94919);t.concatWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.concat.apply(void 0,i([],n(e)))}},81995:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.connect=void 0;var n=r(63032),i=r(87103),o=r(84935),a=r(90851),s={connector:function(){return new n.Subject}};t.connect=function(e,t){void 0===t&&(t=s);var r=t.connector;return o.operate((function(t,n){var o=r();i.innerFrom(e(a.fromSubscribable(o))).subscribe(n),n.add(t.subscribe(o))}))}},70993:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.count=void 0;var n=r(60122);t.count=function(e){return n.reduce((function(t,r,n){return!e||e(r,n)?t+1:t}),0)}},70496:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debounce=void 0;var n=r(84935),i=r(42576),o=r(14990),a=r(87103);t.debounce=function(e){return n.operate((function(t,r){var n=!1,s=null,u=null,c=function(){if(null==u||u.unsubscribe(),u=null,n){n=!1;var e=s;s=null,r.next(e)}};t.subscribe(o.createOperatorSubscriber(r,(function(t){null==u||u.unsubscribe(),n=!0,s=t,u=o.createOperatorSubscriber(r,c,i.noop),a.innerFrom(e(t)).subscribe(u)}),(function(){c(),r.complete()}),void 0,(function(){s=u=null})))}))}},61385:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debounceTime=void 0;var n=r(52445),i=r(84935),o=r(14990);t.debounceTime=function(e,t){return void 0===t&&(t=n.asyncScheduler),i.operate((function(r,n){var i=null,a=null,s=null,u=function(){if(i){i.unsubscribe(),i=null;var e=a;a=null,n.next(e)}};function c(){var r=s+e,o=t.now();if(o<r)return i=this.schedule(void 0,r-o),void n.add(i);u()}r.subscribe(o.createOperatorSubscriber(n,(function(r){a=r,s=t.now(),i||(i=t.schedule(c,e),n.add(i))}),(function(){u(),n.complete()}),void 0,(function(){a=i=null})))}))}},71658:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultIfEmpty=void 0;var n=r(84935),i=r(14990);t.defaultIfEmpty=function(e){return n.operate((function(t,r){var n=!1;t.subscribe(i.createOperatorSubscriber(r,(function(e){n=!0,r.next(e)}),(function(){n||r.next(e),r.complete()})))}))}},77305:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.delay=void 0;var n=r(52445),i=r(78798),o=r(87513);t.delay=function(e,t){void 0===t&&(t=n.asyncScheduler);var r=o.timer(e,t);return i.delayWhen((function(){return r}))}},78798:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.delayWhen=void 0;var n=r(12239),i=r(54783),o=r(29438),a=r(18313),s=r(99475),u=r(87103);t.delayWhen=function e(t,r){return r?function(a){return n.concat(r.pipe(i.take(1),o.ignoreElements()),a.pipe(e(t)))}:s.mergeMap((function(e,r){return u.innerFrom(t(e,r)).pipe(i.take(1),a.mapTo(e))}))}},11080:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dematerialize=void 0;var n=r(23104),i=r(84935),o=r(14990);t.dematerialize=function(){return i.operate((function(e,t){e.subscribe(o.createOperatorSubscriber(t,(function(e){return n.observeNotification(e,t)})))}))}},63054:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distinct=void 0;var n=r(84935),i=r(14990),o=r(42576),a=r(87103);t.distinct=function(e,t){return n.operate((function(r,n){var s=new Set;r.subscribe(i.createOperatorSubscriber(n,(function(t){var r=e?e(t):t;s.has(r)||(s.add(r),n.next(t))}))),t&&a.innerFrom(t).subscribe(i.createOperatorSubscriber(n,(function(){return s.clear()}),o.noop))}))}},98737:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distinctUntilChanged=void 0;var n=r(14781),i=r(84935),o=r(14990);function a(e,t){return e===t}t.distinctUntilChanged=function(e,t){return void 0===t&&(t=n.identity),e=null!=e?e:a,i.operate((function(r,n){var i,a=!0;r.subscribe(o.createOperatorSubscriber(n,(function(r){var o=t(r);!a&&e(i,o)||(a=!1,i=o,n.next(r))})))}))}},77957:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distinctUntilKeyChanged=void 0;var n=r(98737);t.distinctUntilKeyChanged=function(e,t){return n.distinctUntilChanged((function(r,n){return t?t(r[e],n[e]):r[e]===n[e]}))}},88633:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.elementAt=void 0;var n=r(42351),i=r(49154),o=r(81779),a=r(71658),s=r(54783);t.elementAt=function(e,t){if(e<0)throw new n.ArgumentOutOfRangeError;var r=arguments.length>=2;return function(u){return u.pipe(i.filter((function(t,r){return r===e})),s.take(1),r?a.defaultIfEmpty(t):o.throwIfEmpty((function(){return new n.ArgumentOutOfRangeError})))}}},90911:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.endWith=void 0;var o=r(12239),a=r(95726);t.endWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return o.concat(t,a.of.apply(void 0,i([],n(e))))}}},2096:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.every=void 0;var n=r(84935),i=r(14990);t.every=function(e,t){return n.operate((function(r,n){var o=0;r.subscribe(i.createOperatorSubscriber(n,(function(i){e.call(t,i,o++,r)||(n.next(!1),n.complete())}),(function(){n.next(!0),n.complete()})))}))}},70067:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exhaust=void 0;var n=r(75337);t.exhaust=n.exhaustAll},75337:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exhaustAll=void 0;var n=r(5635),i=r(14781);t.exhaustAll=function(){return n.exhaustMap(i.identity)}},5635:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exhaustMap=void 0;var n=r(47291),i=r(87103),o=r(84935),a=r(14990);t.exhaustMap=function e(t,r){return r?function(o){return o.pipe(e((function(e,o){return i.innerFrom(t(e,o)).pipe(n.map((function(t,n){return r(e,t,o,n)})))})))}:o.operate((function(e,r){var n=0,o=null,s=!1;e.subscribe(a.createOperatorSubscriber(r,(function(e){o||(o=a.createOperatorSubscriber(r,void 0,(function(){o=null,s&&r.complete()})),i.innerFrom(t(e,n++)).subscribe(o))}),(function(){s=!0,!o&&r.complete()})))}))}},59745:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.expand=void 0;var n=r(84935),i=r(87788);t.expand=function(e,t,r){return void 0===t&&(t=1/0),t=(t||0)<1?1/0:t,n.operate((function(n,o){return i.mergeInternals(n,o,e,t,void 0,!0,r)}))}},49154:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filter=void 0;var n=r(84935),i=r(14990);t.filter=function(e,t){return n.operate((function(r,n){var o=0;r.subscribe(i.createOperatorSubscriber(n,(function(r){return e.call(t,r,o++)&&n.next(r)})))}))}},9283:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.finalize=void 0;var n=r(84935);t.finalize=function(e){return n.operate((function(t,r){try{t.subscribe(r)}finally{r.add(e)}}))}},47119:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createFind=t.find=void 0;var n=r(84935),i=r(14990);function o(e,t,r){var n="index"===r;return function(r,o){var a=0;r.subscribe(i.createOperatorSubscriber(o,(function(i){var s=a++;e.call(t,i,s,r)&&(o.next(n?s:i),o.complete())}),(function(){o.next(n?-1:void 0),o.complete()})))}}t.find=function(e,t){return n.operate(o(e,t,"value"))},t.createFind=o},74706:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findIndex=void 0;var n=r(84935),i=r(47119);t.findIndex=function(e,t){return n.operate(i.createFind(e,t,"index"))}},29219:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.first=void 0;var n=r(39474),i=r(49154),o=r(54783),a=r(71658),s=r(81779),u=r(14781);t.first=function(e,t){var r=arguments.length>=2;return function(c){return c.pipe(e?i.filter((function(t,r){return e(t,r,c)})):u.identity,o.take(1),r?a.defaultIfEmpty(t):s.throwIfEmpty((function(){return new n.EmptyError})))}}},21788:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flatMap=void 0;var n=r(99475);t.flatMap=n.mergeMap},79749:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.groupBy=void 0;var n=r(2419),i=r(87103),o=r(63032),a=r(84935),s=r(14990);t.groupBy=function(e,t,r,u){return a.operate((function(a,c){var f;t&&"function"!=typeof t?(r=t.duration,f=t.element,u=t.connector):f=t;var l=new Map,d=function(e){l.forEach(e),e(c)},h=function(e){return d((function(t){return t.error(e)}))},p=0,b=!1,y=new s.OperatorSubscriber(c,(function(t){try{var a=e(t),d=l.get(a);if(!d){l.set(a,d=u?u():new o.Subject);var g=(v=a,w=d,(_=new n.Observable((function(e){p++;var t=w.subscribe(e);return function(){t.unsubscribe(),0==--p&&b&&y.unsubscribe()}}))).key=v,_);if(c.next(g),r){var m=s.createOperatorSubscriber(d,(function(){d.complete(),null==m||m.unsubscribe()}),void 0,void 0,(function(){return l.delete(a)}));y.add(i.innerFrom(r(g)).subscribe(m))}}d.next(f?f(t):t)}catch(e){h(e)}var v,w,_}),(function(){return d((function(e){return e.complete()}))}),h,(function(){return l.clear()}),(function(){return b=!0,0===p}));a.subscribe(y)}))}},29438:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ignoreElements=void 0;var n=r(84935),i=r(14990),o=r(42576);t.ignoreElements=function(){return n.operate((function(e,t){e.subscribe(i.createOperatorSubscriber(t,o.noop))}))}},28515:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmpty=void 0;var n=r(84935),i=r(14990);t.isEmpty=function(){return n.operate((function(e,t){e.subscribe(i.createOperatorSubscriber(t,(function(){t.next(!1),t.complete()}),(function(){t.next(!0),t.complete()})))}))}},32069:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.joinAllInternals=void 0;var n=r(14781),i=r(11914),o=r(9985),a=r(99475),s=r(40002);t.joinAllInternals=function(e,t){return o.pipe(s.toArray(),a.mergeMap((function(t){return e(t)})),t?i.mapOneOrManyArgs(t):n.identity)}},22435:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.last=void 0;var n=r(39474),i=r(49154),o=r(71980),a=r(81779),s=r(71658),u=r(14781);t.last=function(e,t){var r=arguments.length>=2;return function(c){return c.pipe(e?i.filter((function(t,r){return e(t,r,c)})):u.identity,o.takeLast(1),r?s.defaultIfEmpty(t):a.throwIfEmpty((function(){return new n.EmptyError})))}}},47291:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.map=void 0;var n=r(84935),i=r(14990);t.map=function(e,t){return n.operate((function(r,n){var o=0;r.subscribe(i.createOperatorSubscriber(n,(function(r){n.next(e.call(t,r,o++))})))}))}},18313:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapTo=void 0;var n=r(47291);t.mapTo=function(e){return n.map((function(){return e}))}},33209:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.materialize=void 0;var n=r(23104),i=r(84935),o=r(14990);t.materialize=function(){return i.operate((function(e,t){e.subscribe(o.createOperatorSubscriber(t,(function(e){t.next(n.Notification.createNext(e))}),(function(){t.next(n.Notification.createComplete()),t.complete()}),(function(e){t.next(n.Notification.createError(e)),t.complete()})))}))}},72620:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.max=void 0;var n=r(60122),i=r(73005);t.max=function(e){return n.reduce(i.isFunction(e)?function(t,r){return e(t,r)>0?t:r}:function(e,t){return e>t?e:t})}},99821:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.merge=void 0;var o=r(84935),a=r(5498),s=r(93783),u=r(12433),c=r(85432);t.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=u.popScheduler(e),f=u.popNumber(e,1/0);return e=a.argsOrArgArray(e),o.operate((function(t,o){s.mergeAll(f)(c.from(i([t],n(e)),r)).subscribe(o)}))}},93783:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeAll=void 0;var n=r(99475),i=r(14781);t.mergeAll=function(e){return void 0===e&&(e=1/0),n.mergeMap(i.identity,e)}},87788:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeInternals=void 0;var n=r(87103),i=r(27738),o=r(14990);t.mergeInternals=function(e,t,r,a,s,u,c,f){var l=[],d=0,h=0,p=!1,b=function(){!p||l.length||d||t.complete()},y=function(e){return d<a?g(e):l.push(e)},g=function(e){u&&t.next(e),d++;var f=!1;n.innerFrom(r(e,h++)).subscribe(o.createOperatorSubscriber(t,(function(e){null==s||s(e),u?y(e):t.next(e)}),(function(){f=!0}),void 0,(function(){if(f)try{d--;for(var e=function(){var e=l.shift();c?i.executeSchedule(t,c,(function(){return g(e)})):g(e)};l.length&&d<a;)e();b()}catch(e){t.error(e)}})))};return e.subscribe(o.createOperatorSubscriber(t,y,(function(){p=!0,b()}))),function(){null==f||f()}}},99475:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeMap=void 0;var n=r(47291),i=r(87103),o=r(84935),a=r(87788),s=r(73005);t.mergeMap=function e(t,r,u){return void 0===u&&(u=1/0),s.isFunction(r)?e((function(e,o){return n.map((function(t,n){return r(e,t,o,n)}))(i.innerFrom(t(e,o)))}),u):("number"==typeof r&&(u=r),o.operate((function(e,r){return a.mergeInternals(e,r,t,u)})))}},61211:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeMapTo=void 0;var n=r(99475),i=r(73005);t.mergeMapTo=function(e,t,r){return void 0===r&&(r=1/0),i.isFunction(t)?n.mergeMap((function(){return e}),t,r):("number"==typeof t&&(r=t),n.mergeMap((function(){return e}),r))}},97267:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeScan=void 0;var n=r(84935),i=r(87788);t.mergeScan=function(e,t,r){return void 0===r&&(r=1/0),n.operate((function(n,o){var a=t;return i.mergeInternals(n,o,(function(t,r){return e(a,t,r)}),r,(function(e){a=e}),!1,void 0,(function(){return a=null}))}))}},49303:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.mergeWith=void 0;var o=r(99821);t.mergeWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.merge.apply(void 0,i([],n(e)))}},99714:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.min=void 0;var n=r(60122),i=r(73005);t.min=function(e){return n.reduce(i.isFunction(e)?function(t,r){return e(t,r)<0?t:r}:function(e,t){return e<t?e:t})}},73848:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.multicast=void 0;var n=r(99518),i=r(73005),o=r(81995);t.multicast=function(e,t){var r=i.isFunction(e)?e:function(){return e};return i.isFunction(t)?o.connect(t,{connector:r}):function(e){return new n.ConnectableObservable(e,r)}}},1184:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observeOn=void 0;var n=r(27738),i=r(84935),o=r(14990);t.observeOn=function(e,t){return void 0===t&&(t=0),i.operate((function(r,i){r.subscribe(o.createOperatorSubscriber(i,(function(r){return n.executeSchedule(i,e,(function(){return i.next(r)}),t)}),(function(){return n.executeSchedule(i,e,(function(){return i.complete()}),t)}),(function(r){return n.executeSchedule(i,e,(function(){return i.error(r)}),t)})))}))}},37582:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.onErrorResumeNext=t.onErrorResumeNextWith=void 0;var o=r(5498),a=r(90724);function s(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=o.argsOrArgArray(e);return function(e){return a.onErrorResumeNext.apply(void 0,i([e],n(r)))}}t.onErrorResumeNextWith=s,t.onErrorResumeNext=s},52731:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pairwise=void 0;var n=r(84935),i=r(14990);t.pairwise=function(){return n.operate((function(e,t){var r,n=!1;e.subscribe(i.createOperatorSubscriber(t,(function(e){var i=r;r=e,n&&t.next([i,e]),n=!0})))}))}},84691:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pluck=void 0;var n=r(47291);t.pluck=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e.length;if(0===r)throw new Error("list of properties cannot be empty.");return n.map((function(t){for(var n=t,i=0;i<r;i++){var o=null==n?void 0:n[e[i]];if(void 0===o)return;n=o}return n}))}},4474:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publish=void 0;var n=r(63032),i=r(73848),o=r(81995);t.publish=function(e){return e?function(t){return o.connect(e)(t)}:function(e){return i.multicast(new n.Subject)(e)}}},70052:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publishBehavior=void 0;var n=r(15240),i=r(99518);t.publishBehavior=function(e){return function(t){var r=new n.BehaviorSubject(e);return new i.ConnectableObservable(t,(function(){return r}))}}},82110:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publishLast=void 0;var n=r(90280),i=r(99518);t.publishLast=function(){return function(e){var t=new n.AsyncSubject;return new i.ConnectableObservable(e,(function(){return t}))}}},89864:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publishReplay=void 0;var n=r(33274),i=r(73848),o=r(73005);t.publishReplay=function(e,t,r,a){r&&!o.isFunction(r)&&(a=r);var s=o.isFunction(r)?r:void 0;return function(r){return i.multicast(new n.ReplaySubject(e,t,a),s)(r)}}},179:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.raceWith=void 0;var o=r(85182),a=r(84935),s=r(14781);t.raceWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length?a.operate((function(t,r){o.raceInit(i([t],n(e)))(r)})):s.identity}},60122:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reduce=void 0;var n=r(58345),i=r(84935);t.reduce=function(e,t){return i.operate(n.scanInternals(e,t,arguments.length>=2,!1,!0))}},28739:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.refCount=void 0;var n=r(84935),i=r(14990);t.refCount=function(){return n.operate((function(e,t){var r=null;e._refCount++;var n=i.createOperatorSubscriber(t,void 0,void 0,void 0,(function(){if(!e||e._refCount<=0||0<--e._refCount)r=null;else{var n=e._connection,i=r;r=null,!n||i&&n!==i||n.unsubscribe(),t.unsubscribe()}}));e.subscribe(n),n.closed||(r=e.connect())}))}},5313:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.repeat=void 0;var n=r(16332),i=r(84935),o=r(14990),a=r(87103),s=r(87513);t.repeat=function(e){var t,r,u=1/0;return null!=e&&("object"==typeof e?(t=e.count,u=void 0===t?1/0:t,r=e.delay):u=e),u<=0?function(){return n.EMPTY}:i.operate((function(e,t){var n,i=0,c=function(){if(null==n||n.unsubscribe(),n=null,null!=r){var e="number"==typeof r?s.timer(r):a.innerFrom(r(i)),u=o.createOperatorSubscriber(t,(function(){u.unsubscribe(),f()}));e.subscribe(u)}else f()},f=function(){var r=!1;n=e.subscribe(o.createOperatorSubscriber(t,void 0,(function(){++i<u?n?c():r=!0:t.complete()}))),r&&c()};f()}))}},54068:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.repeatWhen=void 0;var n=r(87103),i=r(63032),o=r(84935),a=r(14990);t.repeatWhen=function(e){return o.operate((function(t,r){var o,s,u=!1,c=!1,f=!1,l=function(){return f&&c&&(r.complete(),!0)},d=function(){f=!1,o=t.subscribe(a.createOperatorSubscriber(r,void 0,(function(){f=!0,!l()&&(s||(s=new i.Subject,n.innerFrom(e(s)).subscribe(a.createOperatorSubscriber(r,(function(){o?d():u=!0}),(function(){c=!0,l()})))),s).next()}))),u&&(o.unsubscribe(),o=null,u=!1,d())};d()}))}},40064:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.retry=void 0;var n=r(84935),i=r(14990),o=r(14781),a=r(87513),s=r(87103);t.retry=function(e){var t;void 0===e&&(e=1/0);var r=(t=e&&"object"==typeof e?e:{count:e}).count,u=void 0===r?1/0:r,c=t.delay,f=t.resetOnSuccess,l=void 0!==f&&f;return u<=0?o.identity:n.operate((function(e,t){var r,n=0,o=function(){var f=!1;r=e.subscribe(i.createOperatorSubscriber(t,(function(e){l&&(n=0),t.next(e)}),void 0,(function(e){if(n++<u){var l=function(){r?(r.unsubscribe(),r=null,o()):f=!0};if(null!=c){var d="number"==typeof c?a.timer(c):s.innerFrom(c(e,n)),h=i.createOperatorSubscriber(t,(function(){h.unsubscribe(),l()}),(function(){t.complete()}));d.subscribe(h)}else l()}else t.error(e)}))),f&&(r.unsubscribe(),r=null,o())};o()}))}},11188:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.retryWhen=void 0;var n=r(87103),i=r(63032),o=r(84935),a=r(14990);t.retryWhen=function(e){return o.operate((function(t,r){var o,s,u=!1,c=function(){o=t.subscribe(a.createOperatorSubscriber(r,void 0,void 0,(function(t){s||(s=new i.Subject,n.innerFrom(e(s)).subscribe(a.createOperatorSubscriber(r,(function(){return o?c():u=!0})))),s&&s.next(t)}))),u&&(o.unsubscribe(),o=null,u=!1,c())};c()}))}},84193:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sample=void 0;var n=r(87103),i=r(84935),o=r(42576),a=r(14990);t.sample=function(e){return i.operate((function(t,r){var i=!1,s=null;t.subscribe(a.createOperatorSubscriber(r,(function(e){i=!0,s=e}))),n.innerFrom(e).subscribe(a.createOperatorSubscriber(r,(function(){if(i){i=!1;var e=s;s=null,r.next(e)}}),o.noop))}))}},76170:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sampleTime=void 0;var n=r(52445),i=r(84193),o=r(98990);t.sampleTime=function(e,t){return void 0===t&&(t=n.asyncScheduler),i.sample(o.interval(e,t))}},85876:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scan=void 0;var n=r(84935),i=r(58345);t.scan=function(e,t){return n.operate(i.scanInternals(e,t,arguments.length>=2,!0))}},58345:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scanInternals=void 0;var n=r(14990);t.scanInternals=function(e,t,r,i,o){return function(a,s){var u=r,c=t,f=0;a.subscribe(n.createOperatorSubscriber(s,(function(t){var r=f++;c=u?e(c,t,r):(u=!0,t),i&&s.next(c)}),o&&function(){u&&s.next(c),s.complete()}))}}},41791:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sequenceEqual=void 0;var n=r(84935),i=r(14990),o=r(87103);t.sequenceEqual=function(e,t){return void 0===t&&(t=function(e,t){return e===t}),n.operate((function(r,n){var a={buffer:[],complete:!1},s={buffer:[],complete:!1},u=function(e){n.next(e),n.complete()},c=function(e,r){var o=i.createOperatorSubscriber(n,(function(n){var i=r.buffer,o=r.complete;0===i.length?o?u(!1):e.buffer.push(n):!t(n,i.shift())&&u(!1)}),(function(){e.complete=!0;var t=r.complete,n=r.buffer;t&&u(0===n.length),null==o||o.unsubscribe()}));return o};r.subscribe(c(a,s)),o.innerFrom(e).subscribe(c(s,a))}))}},15137:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.share=void 0;var o=r(87103),a=r(63032),s=r(85125),u=r(84935);function c(e,t){for(var r=[],a=2;a<arguments.length;a++)r[a-2]=arguments[a];if(!0!==t){if(!1!==t){var u=new s.SafeSubscriber({next:function(){u.unsubscribe(),e()}});return o.innerFrom(t.apply(void 0,i([],n(r)))).subscribe(u)}}else e()}t.share=function(e){void 0===e&&(e={});var t=e.connector,r=void 0===t?function(){return new a.Subject}:t,n=e.resetOnError,i=void 0===n||n,f=e.resetOnComplete,l=void 0===f||f,d=e.resetOnRefCountZero,h=void 0===d||d;return function(e){var t,n,a,f=0,d=!1,p=!1,b=function(){null==n||n.unsubscribe(),n=void 0},y=function(){b(),t=a=void 0,d=p=!1},g=function(){var e=t;y(),null==e||e.unsubscribe()};return u.operate((function(e,u){f++,p||d||b();var m=a=null!=a?a:r();u.add((function(){0!=--f||p||d||(n=c(g,h))})),m.subscribe(u),!t&&f>0&&(t=new s.SafeSubscriber({next:function(e){return m.next(e)},error:function(e){p=!0,b(),n=c(y,i,e),m.error(e)},complete:function(){d=!0,b(),n=c(y,l),m.complete()}}),o.innerFrom(e).subscribe(t))}))(e)}}},11348:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shareReplay=void 0;var n=r(33274),i=r(15137);t.shareReplay=function(e,t,r){var o,a,s,u,c=!1;return e&&"object"==typeof e?(o=e.bufferSize,u=void 0===o?1/0:o,a=e.windowTime,t=void 0===a?1/0:a,c=void 0!==(s=e.refCount)&&s,r=e.scheduler):u=null!=e?e:1/0,i.share({connector:function(){return new n.ReplaySubject(u,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:c})}},28242:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.single=void 0;var n=r(39474),i=r(46156),o=r(48598),a=r(84935),s=r(14990);t.single=function(e){return a.operate((function(t,r){var a,u=!1,c=!1,f=0;t.subscribe(s.createOperatorSubscriber(r,(function(n){c=!0,e&&!e(n,f++,t)||(u&&r.error(new i.SequenceError("Too many matching values")),u=!0,a=n)}),(function(){u?(r.next(a),r.complete()):r.error(c?new o.NotFoundError("No matching values"):new n.EmptyError)})))}))}},83169:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skip=void 0;var n=r(49154);t.skip=function(e){return n.filter((function(t,r){return e<=r}))}},42454:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skipLast=void 0;var n=r(14781),i=r(84935),o=r(14990);t.skipLast=function(e){return e<=0?n.identity:i.operate((function(t,r){var n=new Array(e),i=0;return t.subscribe(o.createOperatorSubscriber(r,(function(t){var o=i++;if(o<e)n[o]=t;else{var a=o%e,s=n[a];n[a]=t,r.next(s)}}))),function(){n=null}}))}},36931:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skipUntil=void 0;var n=r(84935),i=r(14990),o=r(87103),a=r(42576);t.skipUntil=function(e){return n.operate((function(t,r){var n=!1,s=i.createOperatorSubscriber(r,(function(){null==s||s.unsubscribe(),n=!0}),a.noop);o.innerFrom(e).subscribe(s),t.subscribe(i.createOperatorSubscriber(r,(function(e){return n&&r.next(e)})))}))}},77913:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skipWhile=void 0;var n=r(84935),i=r(14990);t.skipWhile=function(e){return n.operate((function(t,r){var n=!1,o=0;t.subscribe(i.createOperatorSubscriber(r,(function(t){return(n||(n=!e(t,o++)))&&r.next(t)})))}))}},29234:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.startWith=void 0;var n=r(12239),i=r(12433),o=r(84935);t.startWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=i.popScheduler(e);return o.operate((function(t,i){(r?n.concat(e,t,r):n.concat(e,t)).subscribe(i)}))}},40276:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.subscribeOn=void 0;var n=r(84935);t.subscribeOn=function(e,t){return void 0===t&&(t=0),n.operate((function(r,n){n.add(e.schedule((function(){return r.subscribe(n)}),t))}))}},29253:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchAll=void 0;var n=r(68518),i=r(14781);t.switchAll=function(){return n.switchMap(i.identity)}},68518:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchMap=void 0;var n=r(87103),i=r(84935),o=r(14990);t.switchMap=function(e,t){return i.operate((function(r,i){var a=null,s=0,u=!1,c=function(){return u&&!a&&i.complete()};r.subscribe(o.createOperatorSubscriber(i,(function(r){null==a||a.unsubscribe();var u=0,f=s++;n.innerFrom(e(r,f)).subscribe(a=o.createOperatorSubscriber(i,(function(e){return i.next(t?t(r,e,f,u++):e)}),(function(){a=null,c()})))}),(function(){u=!0,c()})))}))}},21173:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchMapTo=void 0;var n=r(68518),i=r(73005);t.switchMapTo=function(e,t){return i.isFunction(t)?n.switchMap((function(){return e}),t):n.switchMap((function(){return e}))}},73855:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchScan=void 0;var n=r(68518),i=r(84935);t.switchScan=function(e,t){return i.operate((function(r,i){var o=t;return n.switchMap((function(t,r){return e(o,t,r)}),(function(e,t){return o=t,t}))(r).subscribe(i),function(){o=null}}))}},54783:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.take=void 0;var n=r(16332),i=r(84935),o=r(14990);t.take=function(e){return e<=0?function(){return n.EMPTY}:i.operate((function(t,r){var n=0;t.subscribe(o.createOperatorSubscriber(r,(function(t){++n<=e&&(r.next(t),e<=n&&r.complete())})))}))}},71980:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.takeLast=void 0;var i=r(16332),o=r(84935),a=r(14990);t.takeLast=function(e){return e<=0?function(){return i.EMPTY}:o.operate((function(t,r){var i=[];t.subscribe(a.createOperatorSubscriber(r,(function(t){i.push(t),e<i.length&&i.shift()}),(function(){var e,t;try{for(var o=n(i),a=o.next();!a.done;a=o.next()){var s=a.value;r.next(s)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}r.complete()}),void 0,(function(){i=null})))}))}},69845:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.takeUntil=void 0;var n=r(84935),i=r(14990),o=r(87103),a=r(42576);t.takeUntil=function(e){return n.operate((function(t,r){o.innerFrom(e).subscribe(i.createOperatorSubscriber(r,(function(){return r.complete()}),a.noop)),!r.closed&&t.subscribe(r)}))}},6060:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.takeWhile=void 0;var n=r(84935),i=r(14990);t.takeWhile=function(e,t){return void 0===t&&(t=!1),n.operate((function(r,n){var o=0;r.subscribe(i.createOperatorSubscriber(n,(function(r){var i=e(r,o++);(i||t)&&n.next(r),!i&&n.complete()})))}))}},1138:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tap=void 0;var n=r(73005),i=r(84935),o=r(14990),a=r(14781);t.tap=function(e,t,r){var s=n.isFunction(e)||t||r?{next:e,error:t,complete:r}:e;return s?i.operate((function(e,t){var r;null===(r=s.subscribe)||void 0===r||r.call(s);var n=!0;e.subscribe(o.createOperatorSubscriber(t,(function(e){var r;null===(r=s.next)||void 0===r||r.call(s,e),t.next(e)}),(function(){var e;n=!1,null===(e=s.complete)||void 0===e||e.call(s),t.complete()}),(function(e){var r;n=!1,null===(r=s.error)||void 0===r||r.call(s,e),t.error(e)}),(function(){var e,t;n&&(null===(e=s.unsubscribe)||void 0===e||e.call(s)),null===(t=s.finalize)||void 0===t||t.call(s)})))})):a.identity}},77306:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throttle=t.defaultThrottleConfig=void 0;var n=r(84935),i=r(14990),o=r(87103);t.defaultThrottleConfig={leading:!0,trailing:!1},t.throttle=function(e,r){return void 0===r&&(r=t.defaultThrottleConfig),n.operate((function(t,n){var a=r.leading,s=r.trailing,u=!1,c=null,f=null,l=!1,d=function(){null==f||f.unsubscribe(),f=null,s&&(b(),l&&n.complete())},h=function(){f=null,l&&n.complete()},p=function(t){return f=o.innerFrom(e(t)).subscribe(i.createOperatorSubscriber(n,d,h))},b=function(){if(u){u=!1;var e=c;c=null,n.next(e),!l&&p(e)}};t.subscribe(i.createOperatorSubscriber(n,(function(e){u=!0,c=e,(!f||f.closed)&&(a?b():p(e))}),(function(){l=!0,(!(s&&u&&f)||f.closed)&&n.complete()})))}))}},2239:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throttleTime=void 0;var n=r(52445),i=r(77306),o=r(87513);t.throttleTime=function(e,t,r){void 0===t&&(t=n.asyncScheduler),void 0===r&&(r=i.defaultThrottleConfig);var a=o.timer(e,t);return i.throttle((function(){return a}),r)}},81779:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throwIfEmpty=void 0;var n=r(39474),i=r(84935),o=r(14990);function a(){return new n.EmptyError}t.throwIfEmpty=function(e){return void 0===e&&(e=a),i.operate((function(t,r){var n=!1;t.subscribe(o.createOperatorSubscriber(r,(function(e){n=!0,r.next(e)}),(function(){return n?r.complete():r.error(e())})))}))}},28005:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimeInterval=t.timeInterval=void 0;var n=r(52445),i=r(84935),o=r(14990);t.timeInterval=function(e){return void 0===e&&(e=n.asyncScheduler),i.operate((function(t,r){var n=e.now();t.subscribe(o.createOperatorSubscriber(r,(function(t){var i=e.now(),o=i-n;n=i,r.next(new a(t,o))})))}))};var a=function(e,t){this.value=e,this.interval=t};t.TimeInterval=a},34173:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timeout=t.TimeoutError=void 0;var n=r(52445),i=r(91677),o=r(84935),a=r(87103),s=r(7029),u=r(14990),c=r(27738);function f(e){throw new t.TimeoutError(e)}t.TimeoutError=s.createErrorClass((function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}})),t.timeout=function(e,t){var r=i.isValidDate(e)?{first:e}:"number"==typeof e?{each:e}:e,s=r.first,l=r.each,d=r.with,h=void 0===d?f:d,p=r.scheduler,b=void 0===p?null!=t?t:n.asyncScheduler:p,y=r.meta,g=void 0===y?null:y;if(null==s&&null==l)throw new TypeError("No timeout provided.");return o.operate((function(e,t){var r,n,i=null,o=0,f=function(e){n=c.executeSchedule(t,b,(function(){try{r.unsubscribe(),a.innerFrom(h({meta:g,lastValue:i,seen:o})).subscribe(t)}catch(e){t.error(e)}}),e)};r=e.subscribe(u.createOperatorSubscriber(t,(function(e){null==n||n.unsubscribe(),o++,t.next(i=e),l>0&&f(l)}),void 0,void 0,(function(){(null==n?void 0:n.closed)||null==n||n.unsubscribe(),i=null}))),!o&&f(null!=s?"number"==typeof s?s:+s-b.now():l)}))}},87223:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timeoutWith=void 0;var n=r(52445),i=r(91677),o=r(34173);t.timeoutWith=function(e,t,r){var a,s,u;if(r=null!=r?r:n.async,i.isValidDate(e)?a=e:"number"==typeof e&&(s=e),!t)throw new TypeError("No observable provided to switch to");if(u=function(){return t},null==a&&null==s)throw new TypeError("No timeout provided.");return o.timeout({first:a,each:s,scheduler:r,with:u})}},88975:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timestamp=void 0;var n=r(87950),i=r(47291);t.timestamp=function(e){return void 0===e&&(e=n.dateTimestampProvider),i.map((function(t){return{value:t,timestamp:e.now()}}))}},40002:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toArray=void 0;var n=r(60122),i=r(84935),o=function(e,t){return e.push(t),e};t.toArray=function(){return i.operate((function(e,t){n.reduce(o,[])(e).subscribe(t)}))}},2826:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.window=void 0;var n=r(63032),i=r(84935),o=r(14990),a=r(42576),s=r(87103);t.window=function(e){return i.operate((function(t,r){var i=new n.Subject;r.next(i.asObservable());var u=function(e){i.error(e),r.error(e)};return t.subscribe(o.createOperatorSubscriber(r,(function(e){return null==i?void 0:i.next(e)}),(function(){i.complete(),r.complete()}),u)),s.innerFrom(e).subscribe(o.createOperatorSubscriber(r,(function(){i.complete(),r.next(i=new n.Subject)}),a.noop,u)),function(){null==i||i.unsubscribe(),i=null}}))}},47526:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.windowCount=void 0;var i=r(63032),o=r(84935),a=r(14990);t.windowCount=function(e,t){void 0===t&&(t=0);var r=t>0?t:e;return o.operate((function(t,o){var s=[new i.Subject],u=0;o.next(s[0].asObservable()),t.subscribe(a.createOperatorSubscriber(o,(function(t){var a,c;try{for(var f=n(s),l=f.next();!l.done;l=f.next())l.value.next(t)}catch(e){a={error:e}}finally{try{l&&!l.done&&(c=f.return)&&c.call(f)}finally{if(a)throw a.error}}var d=u-e+1;if(d>=0&&d%r==0&&s.shift().complete(),++u%r==0){var h=new i.Subject;s.push(h),o.next(h.asObservable())}}),(function(){for(;s.length>0;)s.shift().complete();o.complete()}),(function(e){for(;s.length>0;)s.shift().error(e);o.error(e)}),(function(){s=null})))}))}},78294:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.windowTime=void 0;var n=r(63032),i=r(52445),o=r(93865),a=r(84935),s=r(14990),u=r(26967),c=r(12433),f=r(27738);t.windowTime=function(e){for(var t,r,l=[],d=1;d<arguments.length;d++)l[d-1]=arguments[d];var h=null!==(t=c.popScheduler(l))&&void 0!==t?t:i.asyncScheduler,p=null!==(r=l[0])&&void 0!==r?r:null,b=l[1]||1/0;return a.operate((function(t,r){var i=[],a=!1,c=function(e){var t=e.window,r=e.subs;t.complete(),r.unsubscribe(),u.arrRemove(i,e),a&&l()},l=function(){if(i){var t=new o.Subscription;r.add(t);var a=new n.Subject,s={window:a,subs:t,seen:0};i.push(s),r.next(a.asObservable()),f.executeSchedule(t,h,(function(){return c(s)}),e)}};null!==p&&p>=0?f.executeSchedule(r,h,l,p,!0):a=!0,l();var d=function(e){return i.slice().forEach(e)},y=function(e){d((function(t){var r=t.window;return e(r)})),e(r),r.unsubscribe()};return t.subscribe(s.createOperatorSubscriber(r,(function(e){d((function(t){t.window.next(e),b<=++t.seen&&c(t)}))}),(function(){return y((function(e){return e.complete()}))}),(function(e){return y((function(t){return t.error(e)}))}))),function(){i=null}}))}},61883:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.windowToggle=void 0;var i=r(63032),o=r(93865),a=r(84935),s=r(87103),u=r(14990),c=r(42576),f=r(26967);t.windowToggle=function(e,t){return a.operate((function(r,a){var l=[],d=function(e){for(;0<l.length;)l.shift().error(e);a.error(e)};s.innerFrom(e).subscribe(u.createOperatorSubscriber(a,(function(e){var r=new i.Subject;l.push(r);var n,h=new o.Subscription;try{n=s.innerFrom(t(e))}catch(e){return void d(e)}a.next(r.asObservable()),h.add(n.subscribe(u.createOperatorSubscriber(a,(function(){f.arrRemove(l,r),r.complete(),h.unsubscribe()}),c.noop,d)))}),c.noop)),r.subscribe(u.createOperatorSubscriber(a,(function(e){var t,r,i=l.slice();try{for(var o=n(i),a=o.next();!a.done;a=o.next())a.value.next(e)}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}}),(function(){for(;0<l.length;)l.shift().complete();a.complete()}),d,(function(){for(;0<l.length;)l.shift().unsubscribe()})))}))}},94309:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.windowWhen=void 0;var n=r(63032),i=r(84935),o=r(14990),a=r(87103);t.windowWhen=function(e){return i.operate((function(t,r){var i,s,u=function(e){i.error(e),r.error(e)},c=function(){var t;null==s||s.unsubscribe(),null==i||i.complete(),i=new n.Subject,r.next(i.asObservable());try{t=a.innerFrom(e())}catch(e){return void u(e)}t.subscribe(s=o.createOperatorSubscriber(r,c,c,u))};c(),t.subscribe(o.createOperatorSubscriber(r,(function(e){return i.next(e)}),(function(){i.complete(),r.complete()}),u,(function(){null==s||s.unsubscribe(),i=null})))}))}},83032:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.withLatestFrom=void 0;var o=r(84935),a=r(14990),s=r(87103),u=r(14781),c=r(42576),f=r(12433);t.withLatestFrom=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=f.popResultSelector(e);return o.operate((function(t,o){for(var f=e.length,l=new Array(f),d=e.map((function(){return!1})),h=!1,p=function(t){s.innerFrom(e[t]).subscribe(a.createOperatorSubscriber(o,(function(e){l[t]=e,h||d[t]||(d[t]=!0,(h=d.every(u.identity))&&(d=null))}),c.noop))},b=0;b<f;b++)p(b);t.subscribe(a.createOperatorSubscriber(o,(function(e){if(h){var t=i([e],n(l));o.next(r?r.apply(void 0,i([],n(t))):t)}})))}))}},34400:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.zip=void 0;var o=r(57654),a=r(84935);t.zip=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a.operate((function(t,r){o.zip.apply(void 0,i([t],n(e))).subscribe(r)}))}},78593:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zipAll=void 0;var n=r(57654),i=r(32069);t.zipAll=function(e){return i.joinAllInternals(n.zip,e)}},78096:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.zipWith=void 0;var o=r(34400);t.zipWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.zip.apply(void 0,i([],n(e)))}},97631:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleArray=void 0;var n=r(2419);t.scheduleArray=function(e,t){return new n.Observable((function(r){var n=0;return t.schedule((function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())}))}))}},78489:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleAsyncIterable=void 0;var n=r(2419),i=r(27738);t.scheduleAsyncIterable=function(e,t){if(!e)throw new Error("Iterable cannot be null");return new n.Observable((function(r){i.executeSchedule(r,t,(function(){var n=e[Symbol.asyncIterator]();i.executeSchedule(r,t,(function(){n.next().then((function(e){e.done?r.complete():r.next(e.value)}))}),0,!0)}))}))}},51297:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleIterable=void 0;var n=r(2419),i=r(3725),o=r(73005),a=r(27738);t.scheduleIterable=function(e,t){return new n.Observable((function(r){var n;return a.executeSchedule(r,t,(function(){n=e[i.iterator](),a.executeSchedule(r,t,(function(){var e,t,i;try{t=(e=n.next()).value,i=e.done}catch(e){return void r.error(e)}i?r.complete():r.next(t)}),0,!0)})),function(){return o.isFunction(null==n?void 0:n.return)&&n.return()}}))}},14001:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleObservable=void 0;var n=r(87103),i=r(1184),o=r(40276);t.scheduleObservable=function(e,t){return n.innerFrom(e).pipe(o.subscribeOn(t),i.observeOn(t))}},25143:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.schedulePromise=void 0;var n=r(87103),i=r(1184),o=r(40276);t.schedulePromise=function(e,t){return n.innerFrom(e).pipe(o.subscribeOn(t),i.observeOn(t))}},23676:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleReadableStreamLike=void 0;var n=r(78489),i=r(77823);t.scheduleReadableStreamLike=function(e,t){return n.scheduleAsyncIterable(i.readableStreamLikeToAsyncGenerator(e),t)}},65207:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduled=void 0;var n=r(14001),i=r(25143),o=r(97631),a=r(51297),s=r(78489),u=r(89500),c=r(36018),f=r(73909),l=r(52743),d=r(49595),h=r(59906),p=r(77823),b=r(23676);t.scheduled=function(e,t){if(null!=e){if(u.isInteropObservable(e))return n.scheduleObservable(e,t);if(f.isArrayLike(e))return o.scheduleArray(e,t);if(c.isPromise(e))return i.schedulePromise(e,t);if(d.isAsyncIterable(e))return s.scheduleAsyncIterable(e,t);if(l.isIterable(e))return a.scheduleIterable(e,t);if(p.isReadableStreamLike(e))return b.scheduleReadableStreamLike(e,t)}throw h.createInvalidObservableTypeError(e)}},21986:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.Action=void 0;var o=function(e){function t(t,r){return e.call(this)||this}return i(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(r(93865).Subscription);t.Action=o},57574:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.AnimationFrameAction=void 0;var o=r(49702),a=r(70505),s=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return i(t,e),t.prototype.requestAsyncId=function(t,r,n){return void 0===n&&(n=0),null!==n&&n>0?e.prototype.requestAsyncId.call(this,t,r,n):(t.actions.push(this),t._scheduled||(t._scheduled=a.animationFrameProvider.requestAnimationFrame((function(){return t.flush(void 0)}))))},t.prototype.recycleAsyncId=function(t,r,n){var i;if(void 0===n&&(n=0),null!=n?n>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,n);var o=t.actions;null!=r&&(null===(i=o[o.length-1])||void 0===i?void 0:i.id)!==r&&(a.animationFrameProvider.cancelAnimationFrame(r),t._scheduled=void 0)},t}(o.AsyncAction);t.AnimationFrameAction=s},92934:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.AnimationFrameScheduler=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.flush=function(e){this._active=!0;var t=this._scheduled;this._scheduled=void 0;var r,n=this.actions;e=e||n.shift();do{if(r=e.execute(e.state,e.delay))break}while((e=n[0])&&e.id===t&&n.shift());if(this._active=!1,r){for(;(e=n[0])&&e.id===t&&n.shift();)e.unsubscribe();throw r}},t}(r(83643).AsyncScheduler);t.AnimationFrameScheduler=o},92189:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsapAction=void 0;var o=r(49702),a=r(38908),s=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return i(t,e),t.prototype.requestAsyncId=function(t,r,n){return void 0===n&&(n=0),null!==n&&n>0?e.prototype.requestAsyncId.call(this,t,r,n):(t.actions.push(this),t._scheduled||(t._scheduled=a.immediateProvider.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,r,n){var i;if(void 0===n&&(n=0),null!=n?n>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,n);var o=t.actions;null!=r&&(null===(i=o[o.length-1])||void 0===i?void 0:i.id)!==r&&(a.immediateProvider.clearImmediate(r),t._scheduled=void 0)},t}(o.AsyncAction);t.AsapAction=s},35523:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsapScheduler=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.flush=function(e){this._active=!0;var t=this._scheduled;this._scheduled=void 0;var r,n=this.actions;e=e||n.shift();do{if(r=e.execute(e.state,e.delay))break}while((e=n[0])&&e.id===t&&n.shift());if(this._active=!1,r){for(;(e=n[0])&&e.id===t&&n.shift();)e.unsubscribe();throw r}},t}(r(83643).AsyncScheduler);t.AsapScheduler=o},49702:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncAction=void 0;var o=r(21986),a=r(98203),s=r(26967),u=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n.pending=!1,n}return i(t,e),t.prototype.schedule=function(e,t){var r;if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(i,this.id,t),this},t.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),a.intervalProvider.setInterval(e.flush.bind(e,this),r)},t.prototype.recycleAsyncId=function(e,t,r){if(void 0===r&&(r=0),null!=r&&this.delay===r&&!1===this.pending)return t;null!=t&&a.intervalProvider.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var r,n=!1;try{this.work(e)}catch(e){n=!0,r=e||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,r=this.scheduler,n=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,s.arrRemove(n,this),null!=t&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(o.Action);t.AsyncAction=u},83643:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncScheduler=void 0;var o=r(10218),a=function(e){function t(t,r){void 0===r&&(r=o.Scheduler.now);var n=e.call(this,t,r)||this;return n.actions=[],n._active=!1,n}return i(t,e),t.prototype.flush=function(e){var t=this.actions;if(this._active)t.push(e);else{var r;this._active=!0;do{if(r=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,r){for(;e=t.shift();)e.unsubscribe();throw r}}},t}(o.Scheduler);t.AsyncScheduler=a},36201:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.QueueAction=void 0;var o=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return i(t,e),t.prototype.schedule=function(t,r){return void 0===r&&(r=0),r>0?e.prototype.schedule.call(this,t,r):(this.delay=r,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,r){return r>0||this.closed?e.prototype.execute.call(this,t,r):this._execute(t,r)},t.prototype.requestAsyncId=function(t,r,n){return void 0===n&&(n=0),null!=n&&n>0||null==n&&this.delay>0?e.prototype.requestAsyncId.call(this,t,r,n):(t.flush(this),0)},t}(r(49702).AsyncAction);t.QueueAction=o},5860:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.QueueScheduler=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(r(83643).AsyncScheduler);t.QueueScheduler=o},8558:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.VirtualAction=t.VirtualTimeScheduler=void 0;var o=r(49702),a=r(93865),s=function(e){function t(t,r){void 0===t&&(t=u),void 0===r&&(r=1/0);var n=e.call(this,t,(function(){return n.frame}))||this;return n.maxFrames=r,n.frame=0,n.index=-1,n}return i(t,e),t.prototype.flush=function(){for(var e,t,r=this.actions,n=this.maxFrames;(t=r[0])&&t.delay<=n&&(r.shift(),this.frame=t.delay,!(e=t.execute(t.state,t.delay))););if(e){for(;t=r.shift();)t.unsubscribe();throw e}},t.frameTimeFactor=10,t}(r(83643).AsyncScheduler);t.VirtualTimeScheduler=s;var u=function(e){function t(t,r,n){void 0===n&&(n=t.index+=1);var i=e.call(this,t,r)||this;return i.scheduler=t,i.work=r,i.index=n,i.active=!0,i.index=t.index=n,i}return i(t,e),t.prototype.schedule=function(r,n){if(void 0===n&&(n=0),Number.isFinite(n)){if(!this.id)return e.prototype.schedule.call(this,r,n);this.active=!1;var i=new t(this.scheduler,this.work);return this.add(i),i.schedule(r,n)}return a.Subscription.EMPTY},t.prototype.requestAsyncId=function(e,r,n){void 0===n&&(n=0),this.delay=e.frame+n;var i=e.actions;return i.push(this),i.sort(t.sortActions),1},t.prototype.recycleAsyncId=function(e,t,r){void 0===r&&(r=0)},t.prototype._execute=function(t,r){if(!0===this.active)return e.prototype._execute.call(this,t,r)},t.sortActions=function(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>t.index?1:-1:e.delay>t.delay?1:-1},t}(o.AsyncAction);t.VirtualAction=u},63660:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.animationFrame=t.animationFrameScheduler=void 0;var n=r(57574),i=r(92934);t.animationFrameScheduler=new i.AnimationFrameScheduler(n.AnimationFrameAction),t.animationFrame=t.animationFrameScheduler},70505:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.animationFrameProvider=void 0;var o=r(93865);t.animationFrameProvider={schedule:function(e){var r=requestAnimationFrame,n=cancelAnimationFrame,i=t.animationFrameProvider.delegate;i&&(r=i.requestAnimationFrame,n=i.cancelAnimationFrame);var a=r((function(t){n=void 0,e(t)}));return new o.Subscription((function(){return null==n?void 0:n(a)}))},requestAnimationFrame:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var o=t.animationFrameProvider.delegate;return((null==o?void 0:o.requestAnimationFrame)||requestAnimationFrame).apply(void 0,i([],n(e)))},cancelAnimationFrame:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var o=t.animationFrameProvider.delegate;return((null==o?void 0:o.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,i([],n(e)))},delegate:void 0}},30580:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.asap=t.asapScheduler=void 0;var n=r(92189),i=r(35523);t.asapScheduler=new i.AsapScheduler(n.AsapAction),t.asap=t.asapScheduler},52445:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.async=t.asyncScheduler=void 0;var n=r(49702),i=r(83643);t.asyncScheduler=new i.AsyncScheduler(n.AsyncAction),t.async=t.asyncScheduler},87950:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dateTimestampProvider=void 0,t.dateTimestampProvider={now:function(){return(t.dateTimestampProvider.delegate||Date).now()},delegate:void 0}},38908:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.immediateProvider=void 0;var o=r(97629),a=o.Immediate.setImmediate,s=o.Immediate.clearImmediate;t.immediateProvider={setImmediate:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var o=t.immediateProvider.delegate;return((null==o?void 0:o.setImmediate)||a).apply(void 0,i([],n(e)))},clearImmediate:function(e){var r=t.immediateProvider.delegate;return((null==r?void 0:r.clearImmediate)||s)(e)},delegate:void 0}},98203:function(e,t){"use strict";var r=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},n=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.intervalProvider=void 0,t.intervalProvider={setInterval:function(e,i){for(var o=[],a=2;a<arguments.length;a++)o[a-2]=arguments[a];var s=t.intervalProvider.delegate;return(null==s?void 0:s.setInterval)?s.setInterval.apply(s,n([e,i],r(o))):setInterval.apply(void 0,n([e,i],r(o)))},clearInterval:function(e){var r=t.intervalProvider.delegate;return((null==r?void 0:r.clearInterval)||clearInterval)(e)},delegate:void 0}},46813:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.performanceTimestampProvider=void 0,t.performanceTimestampProvider={now:function(){return(t.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}},38615:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.queue=t.queueScheduler=void 0;var n=r(36201),i=r(5860);t.queueScheduler=new i.QueueScheduler(n.QueueAction),t.queue=t.queueScheduler},84590:function(e,t){"use strict";var r=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},n=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.timeoutProvider=void 0,t.timeoutProvider={setTimeout:function(e,i){for(var o=[],a=2;a<arguments.length;a++)o[a-2]=arguments[a];var s=t.timeoutProvider.delegate;return(null==s?void 0:s.setTimeout)?s.setTimeout.apply(s,n([e,i],r(o))):setTimeout.apply(void 0,n([e,i],r(o)))},clearTimeout:function(e){var r=t.timeoutProvider.delegate;return((null==r?void 0:r.clearTimeout)||clearTimeout)(e)},delegate:void 0}},3725:(e,t)=>{"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}Object.defineProperty(t,"__esModule",{value:!0}),t.iterator=t.getSymbolIterator=void 0,t.getSymbolIterator=r,t.iterator=r()},72801:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observable=void 0,t.observable="function"==typeof Symbol&&Symbol.observable||"@@observable"},28433:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},42351:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArgumentOutOfRangeError=void 0;var n=r(7029);t.ArgumentOutOfRangeError=n.createErrorClass((function(e){return function(){e(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}}))},39474:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyError=void 0;var n=r(7029);t.EmptyError=n.createErrorClass((function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}}))},97629:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TestTools=t.Immediate=void 0;var r,n=1,i={};function o(e){return e in i&&(delete i[e],!0)}t.Immediate={setImmediate:function(e){var t=n++;return i[t]=!0,r||(r=Promise.resolve()),r.then((function(){return o(t)&&e()})),t},clearImmediate:function(e){o(e)}},t.TestTools={pending:function(){return Object.keys(i).length}}},48598:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotFoundError=void 0;var n=r(7029);t.NotFoundError=n.createErrorClass((function(e){return function(t){e(this),this.name="NotFoundError",this.message=t}}))},82642:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectUnsubscribedError=void 0;var n=r(7029);t.ObjectUnsubscribedError=n.createErrorClass((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}))},46156:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SequenceError=void 0;var n=r(7029);t.SequenceError=n.createErrorClass((function(e){return function(t){e(this),this.name="SequenceError",this.message=t}}))},24805:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnsubscriptionError=void 0;var n=r(7029);t.UnsubscriptionError=n.createErrorClass((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}))},12433:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.popNumber=t.popScheduler=t.popResultSelector=void 0;var n=r(73005),i=r(59016);function o(e){return e[e.length-1]}t.popResultSelector=function(e){return n.isFunction(o(e))?e.pop():void 0},t.popScheduler=function(e){return i.isScheduler(o(e))?e.pop():void 0},t.popNumber=function(e,t){return"number"==typeof o(e)?e.pop():t}},91203:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.argsArgArrayOrObject=void 0;var r=Array.isArray,n=Object.getPrototypeOf,i=Object.prototype,o=Object.keys;t.argsArgArrayOrObject=function(e){if(1===e.length){var t=e[0];if(r(t))return{args:t,keys:null};if((s=t)&&"object"==typeof s&&n(s)===i){var a=o(t);return{args:a.map((function(e){return t[e]})),keys:a}}}var s;return{args:e,keys:null}}},5498:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.argsOrArgArray=void 0;var r=Array.isArray;t.argsOrArgArray=function(e){return 1===e.length&&r(e[0])?e[0]:e}},26967:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrRemove=void 0,t.arrRemove=function(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}},7029:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createErrorClass=void 0,t.createErrorClass=function(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}},60641:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createObject=void 0,t.createObject=function(e,t){return e.reduce((function(e,r,n){return e[r]=t[n],e}),{})}},86110:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.captureError=t.errorContext=void 0;var n=r(23280),i=null;t.errorContext=function(e){if(n.config.useDeprecatedSynchronousErrorHandling){var t=!i;if(t&&(i={errorThrown:!1,error:null}),e(),t){var r=i,o=r.errorThrown,a=r.error;if(i=null,o)throw a}}else e()},t.captureError=function(e){n.config.useDeprecatedSynchronousErrorHandling&&i&&(i.errorThrown=!0,i.error=e)}},27738:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.executeSchedule=void 0,t.executeSchedule=function(e,t,r,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var o=t.schedule((function(){r(),i?e.add(this.schedule(null,n)):this.unsubscribe()}),n);if(e.add(o),!i)return o}},14781:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.identity=void 0,t.identity=function(e){return e}},73909:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isArrayLike=void 0,t.isArrayLike=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},49595:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAsyncIterable=void 0;var n=r(73005);t.isAsyncIterable=function(e){return Symbol.asyncIterator&&n.isFunction(null==e?void 0:e[Symbol.asyncIterator])}},91677:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidDate=void 0,t.isValidDate=function(e){return e instanceof Date&&!isNaN(e)}},73005:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFunction=void 0,t.isFunction=function(e){return"function"==typeof e}},89500:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInteropObservable=void 0;var n=r(72801),i=r(73005);t.isInteropObservable=function(e){return i.isFunction(e[n.observable])}},52743:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIterable=void 0;var n=r(3725),i=r(73005);t.isIterable=function(e){return i.isFunction(null==e?void 0:e[n.iterator])}},88386:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObservable=void 0;var n=r(2419),i=r(73005);t.isObservable=function(e){return!!e&&(e instanceof n.Observable||i.isFunction(e.lift)&&i.isFunction(e.subscribe))}},36018:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPromise=void 0;var n=r(73005);t.isPromise=function(e){return n.isFunction(null==e?void 0:e.then)}},77823:function(e,t,r){"use strict";var n=this&&this.__generator||function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},i=this&&this.__await||function(e){return this instanceof i?(this.v=e,this):new i(e)},o=this&&this.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||u(e,t)}))})}function u(e,t){try{(r=o[e](t)).value instanceof i?Promise.resolve(r.value.v).then(c,f):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){u("next",e)}function f(e){u("throw",e)}function l(e,t){e(t),a.shift(),a.length&&u(a[0][0],a[0][1])}};Object.defineProperty(t,"__esModule",{value:!0}),t.isReadableStreamLike=t.readableStreamLikeToAsyncGenerator=void 0;var a=r(73005);t.readableStreamLikeToAsyncGenerator=function(e){return o(this,arguments,(function(){var t,r,o;return n(this,(function(n){switch(n.label){case 0:t=e.getReader(),n.label=1;case 1:n.trys.push([1,,9,10]),n.label=2;case 2:return[4,i(t.read())];case 3:return r=n.sent(),o=r.value,r.done?[4,i(void 0)]:[3,5];case 4:return[2,n.sent()];case 5:return[4,i(o)];case 6:return[4,n.sent()];case 7:return n.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}}))}))},t.isReadableStreamLike=function(e){return a.isFunction(null==e?void 0:e.getReader)}},59016:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isScheduler=void 0;var n=r(73005);t.isScheduler=function(e){return e&&n.isFunction(e.schedule)}},84935:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.operate=t.hasLift=void 0;var n=r(73005);function i(e){return n.isFunction(null==e?void 0:e.lift)}t.hasLift=i,t.operate=function(e){return function(t){if(i(t))return t.lift((function(t){try{return e(t,this)}catch(e){this.error(e)}}));throw new TypeError("Unable to lift unknown Observable type")}}},11914:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.mapOneOrManyArgs=void 0;var o=r(47291),a=Array.isArray;t.mapOneOrManyArgs=function(e){return o.map((function(t){return function(e,t){return a(t)?e.apply(void 0,i([],n(t))):e(t)}(e,t)}))}},42576:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.noop=void 0,t.noop=function(){}},38634:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.not=void 0,t.not=function(e,t){return function(r,n){return!e.call(t,r,n)}}},9985:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pipeFromArray=t.pipe=void 0;var n=r(14781);function i(e){return 0===e.length?n.identity:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}t.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i(e)},t.pipeFromArray=i},47968:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportUnhandledError=void 0;var n=r(23280),i=r(84590);t.reportUnhandledError=function(e){i.timeoutProvider.setTimeout((function(){var t=n.config.onUnhandledError;if(!t)throw e;t(e)}))}},59906:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createInvalidObservableTypeError=void 0,t.createInvalidObservableTypeError=function(e){return new TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}},89509:(e,t,r)=>{var n=r(48764),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(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 i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},17635:function(e){"use strict";!function(t){const r=2147483647;function n(e){const t=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);let r=1779033703,n=3144134277,i=1013904242,o=2773480762,a=1359893119,s=2600822924,u=528734635,c=1541459225;const f=new Uint32Array(64);function l(e){let l=0,d=e.length;for(;d>=64;){let h,p,b,y,g,m=r,v=n,w=i,_=o,x=a,O=s,k=u,P=c;for(p=0;p<16;p++)b=l+4*p,f[p]=(255&e[b])<<24|(255&e[b+1])<<16|(255&e[b+2])<<8|255&e[b+3];for(p=16;p<64;p++)h=f[p-2],y=(h>>>17|h<<15)^(h>>>19|h<<13)^h>>>10,h=f[p-15],g=(h>>>7|h<<25)^(h>>>18|h<<14)^h>>>3,f[p]=(y+f[p-7]|0)+(g+f[p-16]|0)|0;for(p=0;p<64;p++)y=(((x>>>6|x<<26)^(x>>>11|x<<21)^(x>>>25|x<<7))+(x&O^~x&k)|0)+(P+(t[p]+f[p]|0)|0)|0,g=((m>>>2|m<<30)^(m>>>13|m<<19)^(m>>>22|m<<10))+(m&v^m&w^v&w)|0,P=k,k=O,O=x,x=_+y|0,_=w,w=v,v=m,m=y+g|0;r=r+m|0,n=n+v|0,i=i+w|0,o=o+_|0,a=a+x|0,s=s+O|0,u=u+k|0,c=c+P|0,l+=64,d-=64}}l(e);let d,h=e.length%64,p=e.length/536870912|0,b=e.length<<3,y=h<56?56:120,g=e.slice(e.length-h,e.length);for(g.push(128),d=h+1;d<y;d++)g.push(0);return g.push(p>>>24&255),g.push(p>>>16&255),g.push(p>>>8&255),g.push(p>>>0&255),g.push(b>>>24&255),g.push(b>>>16&255),g.push(b>>>8&255),g.push(b>>>0&255),l(g),[r>>>24&255,r>>>16&255,r>>>8&255,r>>>0&255,n>>>24&255,n>>>16&255,n>>>8&255,n>>>0&255,i>>>24&255,i>>>16&255,i>>>8&255,i>>>0&255,o>>>24&255,o>>>16&255,o>>>8&255,o>>>0&255,a>>>24&255,a>>>16&255,a>>>8&255,a>>>0&255,s>>>24&255,s>>>16&255,s>>>8&255,s>>>0&255,u>>>24&255,u>>>16&255,u>>>8&255,u>>>0&255,c>>>24&255,c>>>16&255,c>>>8&255,c>>>0&255]}function i(e,t,r){e=e.length<=64?e:n(e);const i=64+t.length+4,o=new Array(i),a=new Array(64);let s,u=[];for(s=0;s<64;s++)o[s]=54;for(s=0;s<e.length;s++)o[s]^=e[s];for(s=0;s<t.length;s++)o[64+s]=t[s];for(s=i-4;s<i;s++)o[s]=0;for(s=0;s<64;s++)a[s]=92;for(s=0;s<e.length;s++)a[s]^=e[s];function c(){for(let e=i-1;e>=i-4;e--){if(o[e]++,o[e]<=255)return;o[e]=0}}for(;r>=32;)c(),u=u.concat(n(a.concat(n(o)))),r-=32;return r>0&&(c(),u=u.concat(n(a.concat(n(o))).slice(0,r))),u}function o(e,t,r,n,i){let o;for(c(e,16*(2*r-1),i,0,16),o=0;o<2*r;o++)u(e,16*o,i,16),s(i,n),c(i,0,e,t+16*o,16);for(o=0;o<r;o++)c(e,t+2*o*16,e,16*o,16);for(o=0;o<r;o++)c(e,t+16*(2*o+1),e,16*(o+r),16)}function a(e,t){return e<<t|e>>>32-t}function s(e,t){c(e,0,t,0,16);for(let e=8;e>0;e-=2)t[4]^=a(t[0]+t[12],7),t[8]^=a(t[4]+t[0],9),t[12]^=a(t[8]+t[4],13),t[0]^=a(t[12]+t[8],18),t[9]^=a(t[5]+t[1],7),t[13]^=a(t[9]+t[5],9),t[1]^=a(t[13]+t[9],13),t[5]^=a(t[1]+t[13],18),t[14]^=a(t[10]+t[6],7),t[2]^=a(t[14]+t[10],9),t[6]^=a(t[2]+t[14],13),t[10]^=a(t[6]+t[2],18),t[3]^=a(t[15]+t[11],7),t[7]^=a(t[3]+t[15],9),t[11]^=a(t[7]+t[3],13),t[15]^=a(t[11]+t[7],18),t[1]^=a(t[0]+t[3],7),t[2]^=a(t[1]+t[0],9),t[3]^=a(t[2]+t[1],13),t[0]^=a(t[3]+t[2],18),t[6]^=a(t[5]+t[4],7),t[7]^=a(t[6]+t[5],9),t[4]^=a(t[7]+t[6],13),t[5]^=a(t[4]+t[7],18),t[11]^=a(t[10]+t[9],7),t[8]^=a(t[11]+t[10],9),t[9]^=a(t[8]+t[11],13),t[10]^=a(t[9]+t[8],18),t[12]^=a(t[15]+t[14],7),t[13]^=a(t[12]+t[15],9),t[14]^=a(t[13]+t[12],13),t[15]^=a(t[14]+t[13],18);for(let r=0;r<16;++r)e[r]+=t[r]}function u(e,t,r,n){for(let i=0;i<n;i++)r[i]^=e[t+i]}function c(e,t,r,n,i){for(;i--;)r[n++]=e[t++]}function f(e){if(!e||"number"!=typeof e.length)return!1;for(let t=0;t<e.length;t++){const r=e[t];if("number"!=typeof r||r%1||r<0||r>=256)return!1}return!0}function l(e,t){if("number"!=typeof e||e%1)throw new Error("invalid "+t);return e}function d(e,t,n,a,s,d,h){if(n=l(n,"N"),a=l(a,"r"),s=l(s,"p"),d=l(d,"dkLen"),0===n||0!=(n&n-1))throw new Error("N must be power of 2");if(n>r/128/a)throw new Error("N too large");if(a>r/128/s)throw new Error("r too large");if(!f(e))throw new Error("password must be an array or buffer");if(e=Array.prototype.slice.call(e),!f(t))throw new Error("salt must be an array or buffer");t=Array.prototype.slice.call(t);let p=i(e,t,128*s*a);const b=new Uint32Array(32*s*a);for(let e=0;e<b.length;e++){const t=4*e;b[e]=(255&p[t+3])<<24|(255&p[t+2])<<16|(255&p[t+1])<<8|(255&p[t+0])<<0}const y=new Uint32Array(64*a),g=new Uint32Array(32*a*n),m=32*a,v=new Uint32Array(16),w=new Uint32Array(16),_=s*n*2;let x,O,k=0,P=null,S=!1,A=0,E=0;const M=h?parseInt(1e3/a):4294967295,j="undefined"!=typeof setImmediate?setImmediate:setTimeout,T=function(){if(S)return h(new Error("cancelled"),k/_);let t;switch(A){case 0:O=32*E*a,c(b,O,y,0,m),A=1,x=0;case 1:t=n-x,t>M&&(t=M);for(let e=0;e<t;e++)c(y,0,g,(x+e)*m,m),o(y,m,a,v,w);if(x+=t,k+=t,h){const e=parseInt(1e3*k/_);if(e!==P){if(S=h(null,k/_),S)break;P=e}}if(x<n)break;x=0,A=2;case 2:t=n-x,t>M&&(t=M);for(let e=0;e<t;e++){const e=y[16*(2*a-1)]&n-1;u(g,e*m,y,m),o(y,m,a,v,w)}if(x+=t,k+=t,h){const e=parseInt(1e3*k/_);if(e!==P){if(S=h(null,k/_),S)break;P=e}}if(x<n)break;if(c(y,0,b,O,m),E++,E<s){A=0;break}p=[];for(let e=0;e<b.length;e++)p.push(b[e]>>0&255),p.push(b[e]>>8&255),p.push(b[e]>>16&255),p.push(b[e]>>24&255);const r=i(e,p,d);return h&&h(null,1,r),r}h&&j(T)};if(!h)for(;;){const e=T();if(null!=e)return e}T()}const h={scrypt:function(e,t,r,n,i,o,a){return new Promise((function(s,u){let c=0;a&&a(0),d(e,t,r,n,i,o,(function(e,t,r){if(e)u(e);else if(r)a&&1!==c&&a(1),s(new Uint8Array(r));else if(a&&t!==c)return c=t,a(t)}))}))},syncScrypt:function(e,t,r,n,i,o){return new Uint8Array(d(e,t,r,n,i,o))}};e.exports=h}()},24189:(e,t,r)=>{var n=r(89509).Buffer;function i(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=n.from(e,t));for(var r=this._block,i=this._blockSize,o=e.length,a=this._len,s=0;s<o;){for(var u=a%i,c=Math.min(o-s,i-u),f=0;f<c;f++)r[u+f]=e[s+f];s+=c,(a+=c)%i==0&&this._update(r)}return this._len+=o,this},i.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},89072:(e,t,r)=>{var n=e.exports=function(e){e=e.toLowerCase();var t=n[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};n.sha=r(74448),n.sha1=r(18336),n.sha224=r(48432),n.sha256=r(67499),n.sha384=r(51686),n.sha512=r(87816)},74448:(e,t,r)=>{var n=r(35717),i=r(24189),o=r(89509).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function c(e){return e<<30|e>>>2}function f(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,l=0;l<16;++l)r[l]=e.readInt32BE(4*l);for(;l<80;++l)r[l]=r[l-3]^r[l-8]^r[l-14]^r[l-16];for(var d=0;d<80;++d){var h=~~(d/20),p=0|((t=n)<<5|t>>>27)+f(h,i,o,s)+u+r[d]+a[h];u=s,s=o,o=c(i),i=n,n=p}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=u},18336:(e,t,r)=>{var n=r(35717),i=r(24189),o=r(89509).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function c(e){return e<<5|e>>>27}function f(e){return e<<30|e>>>2}function l(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,d=0;d<16;++d)r[d]=e.readInt32BE(4*d);for(;d<80;++d)r[d]=(t=r[d-3]^r[d-8]^r[d-14]^r[d-16])<<1|t>>>31;for(var h=0;h<80;++h){var p=~~(h/20),b=c(n)+l(p,i,o,s)+u+r[h]+a[p]|0;u=s,s=o,o=f(i),i=n,n=b}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=u},48432:(e,t,r)=>{var n=r(35717),i=r(67499),o=r(24189),a=r(89509).Buffer,s=new Array(64);function u(){this.init(),this._w=s,o.call(this,64,56)}n(u,i),u.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},u.prototype._hash=function(){var e=a.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=u},67499:(e,t,r)=>{var n=r(35717),i=r(24189),o=r(89509).Buffer,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=new Array(64);function u(){this.init(),this._w=s,i.call(this,64,56)}function c(e,t,r){return r^e&(t^r)}function f(e,t,r){return e&t|r&(e|t)}function l(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function d(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function h(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}n(u,i),u.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,p=0|this._f,b=0|this._g,y=0|this._h,g=0;g<16;++g)r[g]=e.readInt32BE(4*g);for(;g<64;++g)r[g]=0|(((t=r[g-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[g-7]+h(r[g-15])+r[g-16];for(var m=0;m<64;++m){var v=y+d(u)+c(u,p,b)+a[m]+r[m]|0,w=l(n)+f(n,i,o)|0;y=b,b=p,p=u,u=s+v|0,s=o,o=i,i=n,n=v+w|0}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0,this._f=p+this._f|0,this._g=b+this._g|0,this._h=y+this._h|0},u.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=u},51686:(e,t,r)=>{var n=r(35717),i=r(87816),o=r(24189),a=r(89509).Buffer,s=new Array(160);function u(){this.init(),this._w=s,o.call(this,128,112)}n(u,i),u.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},u.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=u},87816:(e,t,r)=>{var n=r(35717),i=r(24189),o=r(89509).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function u(){this.init(),this._w=s,i.call(this,128,112)}function c(e,t,r){return r^e&(t^r)}function f(e,t,r){return e&t|r&(e|t)}function l(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function d(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function b(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function y(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function g(e,t){return e>>>0<t>>>0?1:0}n(u,i),u.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},u.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,u=0|this._fh,m=0|this._gh,v=0|this._hh,w=0|this._al,_=0|this._bl,x=0|this._cl,O=0|this._dl,k=0|this._el,P=0|this._fl,S=0|this._gl,A=0|this._hl,E=0;E<32;E+=2)t[E]=e.readInt32BE(4*E),t[E+1]=e.readInt32BE(4*E+4);for(;E<160;E+=2){var M=t[E-30],j=t[E-30+1],T=h(M,j),B=p(j,M),I=b(M=t[E-4],j=t[E-4+1]),N=y(j,M),R=t[E-14],C=t[E-14+1],U=t[E-32],L=t[E-32+1],D=B+C|0,H=T+R+g(D,B)|0;H=(H=H+I+g(D=D+N|0,N)|0)+U+g(D=D+L|0,L)|0,t[E]=H,t[E+1]=D}for(var F=0;F<160;F+=2){H=t[F],D=t[F+1];var V=f(r,n,i),z=f(w,_,x),q=l(r,w),K=l(w,r),W=d(s,k),G=d(k,s),X=a[F],Z=a[F+1],J=c(s,u,m),Y=c(k,P,S),Q=A+G|0,$=v+W+g(Q,A)|0;$=($=($=$+J+g(Q=Q+Y|0,Y)|0)+X+g(Q=Q+Z|0,Z)|0)+H+g(Q=Q+D|0,D)|0;var ee=K+z|0,te=q+V+g(ee,K)|0;v=m,A=S,m=u,S=P,u=s,P=k,s=o+$+g(k=O+Q|0,O)|0,o=i,O=x,i=n,x=_,n=r,_=w,r=$+te+g(w=Q+ee|0,Q)|0}this._al=this._al+w|0,this._bl=this._bl+_|0,this._cl=this._cl+x|0,this._dl=this._dl+O|0,this._el=this._el+k|0,this._fl=this._fl+P|0,this._gl=this._gl+S|0,this._hl=this._hl+A|0,this._ah=this._ah+r+g(this._al,w)|0,this._bh=this._bh+n+g(this._bl,_)|0,this._ch=this._ch+i+g(this._cl,x)|0,this._dh=this._dh+o+g(this._dl,O)|0,this._eh=this._eh+s+g(this._el,k)|0,this._fh=this._fh+u+g(this._fl,P)|0,this._gh=this._gh+m+g(this._gl,S)|0,this._hh=this._hh+v+g(this._hl,A)|0},u.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=u},86851:(e,t,r)=>{"use strict";var n=r(35171),i=Array.prototype.concat,o=Array.prototype.slice,a=e.exports=function(e){for(var t=[],r=0,a=e.length;r<a;r++){var s=e[r];n(s)?t=i.call(t,o.call(s)):t.push(s)}return t};a.wrap=function(e){return function(){return e(a(arguments))}}},80500:e=>{"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const r=e.indexOf(t);return-1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},42830:(e,t,r)=>{e.exports=i;var n=r(17187).EventEmitter;function i(){n.call(this)}r(35717)(i,n),i.Readable=r(79481),i.Writable=r(64229),i.Duplex=r(56753),i.Transform=r(74605),i.PassThrough=r(82725),i.finished=r(8610),i.pipeline=r(59946),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",u));var a=!1;function s(){a||(a=!0,e.end())}function u(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(f(),0===n.listenerCount(this,"error"))throw e}function f(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",u),r.removeListener("error",c),e.removeListener("error",c),r.removeListener("end",f),r.removeListener("close",f),e.removeListener("close",f)}return r.on("error",c),e.on("error",c),r.on("end",f),r.on("close",f),e.on("close",f),e.emit("pipe",r),e}},70610:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},32553:(e,t,r)=>{"use strict";var n=r(89509).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=f,this.end=l,t=3;break;default:return this.write=d,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function f(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function l(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.s=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=a(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=a(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=a(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},49604:(e,t,r)=>{var n=r(23944);e.exports=function(e){return"string"!=typeof e?e:n(e)?e.slice(2):e}},70655:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__assign:()=>o,__asyncDelegator:()=>w,__asyncGenerator:()=>v,__asyncValues:()=>_,__await:()=>m,__awaiter:()=>f,__classPrivateFieldGet:()=>P,__classPrivateFieldSet:()=>S,__createBinding:()=>d,__decorate:()=>s,__exportStar:()=>h,__extends:()=>i,__generator:()=>l,__importDefault:()=>k,__importStar:()=>O,__makeTemplateObject:()=>x,__metadata:()=>c,__param:()=>u,__read:()=>b,__rest:()=>a,__spread:()=>y,__spreadArrays:()=>g,__values:()=>p});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},n(e,t)};function i(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}function s(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}function u(e,t){return function(r,n){t(r,n,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function f(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))}function l(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function d(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}function h(e,t){for(var r in e)"default"===r||t.hasOwnProperty(r)||(t[r]=e[r])}function p(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function y(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function g(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),i=0;for(t=0;t<r;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)n[i]=o[a];return n}function m(e){return this instanceof m?(this.v=e,this):new m(e)}function v(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){i[e]&&(n[e]=function(t){return new Promise((function(r,n){o.push([e,t,r,n])>1||s(e,t)}))})}function s(e,t){try{(r=i[e](t)).value instanceof m?Promise.resolve(r.value.v).then(u,c):f(o[0][2],r)}catch(e){f(o[0][3],e)}var r}function u(e){s("next",e)}function c(e){s("throw",e)}function f(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function w(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:m(e[n](t)),done:"return"===n}:i?i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=p(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){!function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,i,(t=e[r](t)).done,t.value)}))}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function O(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function k(e){return e&&e.__esModule?e:{default:e}}function P(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function S(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},16885:function(e,t,r){var n=r(88924).Buffer;!function(t,r){"use strict";e.exports?e.exports=r():(t.nacl||(t.nacl={}),t.nacl.util=r())}(this,(function(){"use strict";var e={};function t(e){if(!/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.test(e))throw new TypeError("invalid encoding")}return e.decodeUTF8=function(e){if("string"!=typeof e)throw new TypeError("expected string");var t,r=unescape(encodeURIComponent(e)),n=new Uint8Array(r.length);for(t=0;t<r.length;t++)n[t]=r.charCodeAt(t);return n},e.encodeUTF8=function(e){var t,r=[];for(t=0;t<e.length;t++)r.push(String.fromCharCode(e[t]));return decodeURIComponent(escape(r.join("")))},"undefined"==typeof atob?void 0!==n.from?(e.encodeBase64=function(e){return n.from(e).toString("base64")},e.decodeBase64=function(e){return t(e),new Uint8Array(Array.prototype.slice.call(n.from(e,"base64"),0))}):(e.encodeBase64=function(e){return new n(e).toString("base64")},e.decodeBase64=function(e){return t(e),new Uint8Array(Array.prototype.slice.call(new n(e,"base64"),0))}):(e.encodeBase64=function(e){var t,r=[],n=e.length;for(t=0;t<n;t++)r.push(String.fromCharCode(e[t]));return btoa(r.join(""))},e.decodeBase64=function(e){t(e);var r,n=atob(e),i=new Uint8Array(n.length);for(r=0;r<n.length;r++)i[r]=n.charCodeAt(r);return i}),e}))},50780:(e,t,r)=>{!function(e){"use strict";var t=function(e){var t,r=new Float64Array(16);if(e)for(t=0;t<e.length;t++)r[t]=e[t];return r},n=function(){throw new Error("no PRNG")},i=new Uint8Array(16),o=new Uint8Array(32);o[0]=9;var a=t(),s=t([1]),u=t([56129,1]),c=t([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),f=t([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),l=t([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),d=t([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),h=t([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function p(e,t,r,n){e[t]=r>>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r,e[t+4]=n>>24&255,e[t+5]=n>>16&255,e[t+6]=n>>8&255,e[t+7]=255&n}function b(e,t,r,n,i){var o,a=0;for(o=0;o<i;o++)a|=e[t+o]^r[n+o];return(1&a-1>>>8)-1}function y(e,t,r,n){return b(e,t,r,n,16)}function g(e,t,r,n){return b(e,t,r,n,32)}function m(e,t,r,n){!function(e,t,r,n){for(var i,o=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,u=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,c=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,f=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,l=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,d=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,h=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,b=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,y=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,g=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,m=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,v=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,w=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,_=o,x=a,O=s,k=u,P=c,S=f,A=l,E=d,M=h,j=p,T=b,B=y,I=g,N=m,R=v,C=w,U=0;U<20;U+=2)_^=(i=(I^=(i=(M^=(i=(P^=(i=_+I|0)<<7|i>>>25)+_|0)<<9|i>>>23)+P|0)<<13|i>>>19)+M|0)<<18|i>>>14,S^=(i=(x^=(i=(N^=(i=(j^=(i=S+x|0)<<7|i>>>25)+S|0)<<9|i>>>23)+j|0)<<13|i>>>19)+N|0)<<18|i>>>14,T^=(i=(A^=(i=(O^=(i=(R^=(i=T+A|0)<<7|i>>>25)+T|0)<<9|i>>>23)+R|0)<<13|i>>>19)+O|0)<<18|i>>>14,C^=(i=(B^=(i=(E^=(i=(k^=(i=C+B|0)<<7|i>>>25)+C|0)<<9|i>>>23)+k|0)<<13|i>>>19)+E|0)<<18|i>>>14,_^=(i=(k^=(i=(O^=(i=(x^=(i=_+k|0)<<7|i>>>25)+_|0)<<9|i>>>23)+x|0)<<13|i>>>19)+O|0)<<18|i>>>14,S^=(i=(P^=(i=(E^=(i=(A^=(i=S+P|0)<<7|i>>>25)+S|0)<<9|i>>>23)+A|0)<<13|i>>>19)+E|0)<<18|i>>>14,T^=(i=(j^=(i=(M^=(i=(B^=(i=T+j|0)<<7|i>>>25)+T|0)<<9|i>>>23)+B|0)<<13|i>>>19)+M|0)<<18|i>>>14,C^=(i=(R^=(i=(N^=(i=(I^=(i=C+R|0)<<7|i>>>25)+C|0)<<9|i>>>23)+I|0)<<13|i>>>19)+N|0)<<18|i>>>14;_=_+o|0,x=x+a|0,O=O+s|0,k=k+u|0,P=P+c|0,S=S+f|0,A=A+l|0,E=E+d|0,M=M+h|0,j=j+p|0,T=T+b|0,B=B+y|0,I=I+g|0,N=N+m|0,R=R+v|0,C=C+w|0,e[0]=_>>>0&255,e[1]=_>>>8&255,e[2]=_>>>16&255,e[3]=_>>>24&255,e[4]=x>>>0&255,e[5]=x>>>8&255,e[6]=x>>>16&255,e[7]=x>>>24&255,e[8]=O>>>0&255,e[9]=O>>>8&255,e[10]=O>>>16&255,e[11]=O>>>24&255,e[12]=k>>>0&255,e[13]=k>>>8&255,e[14]=k>>>16&255,e[15]=k>>>24&255,e[16]=P>>>0&255,e[17]=P>>>8&255,e[18]=P>>>16&255,e[19]=P>>>24&255,e[20]=S>>>0&255,e[21]=S>>>8&255,e[22]=S>>>16&255,e[23]=S>>>24&255,e[24]=A>>>0&255,e[25]=A>>>8&255,e[26]=A>>>16&255,e[27]=A>>>24&255,e[28]=E>>>0&255,e[29]=E>>>8&255,e[30]=E>>>16&255,e[31]=E>>>24&255,e[32]=M>>>0&255,e[33]=M>>>8&255,e[34]=M>>>16&255,e[35]=M>>>24&255,e[36]=j>>>0&255,e[37]=j>>>8&255,e[38]=j>>>16&255,e[39]=j>>>24&255,e[40]=T>>>0&255,e[41]=T>>>8&255,e[42]=T>>>16&255,e[43]=T>>>24&255,e[44]=B>>>0&255,e[45]=B>>>8&255,e[46]=B>>>16&255,e[47]=B>>>24&255,e[48]=I>>>0&255,e[49]=I>>>8&255,e[50]=I>>>16&255,e[51]=I>>>24&255,e[52]=N>>>0&255,e[53]=N>>>8&255,e[54]=N>>>16&255,e[55]=N>>>24&255,e[56]=R>>>0&255,e[57]=R>>>8&255,e[58]=R>>>16&255,e[59]=R>>>24&255,e[60]=C>>>0&255,e[61]=C>>>8&255,e[62]=C>>>16&255,e[63]=C>>>24&255}(e,t,r,n)}function v(e,t,r,n){!function(e,t,r,n){for(var i,o=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,u=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,c=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,f=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,l=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,d=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,h=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,b=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,y=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,g=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,m=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,v=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,w=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,_=0;_<20;_+=2)o^=(i=(g^=(i=(h^=(i=(c^=(i=o+g|0)<<7|i>>>25)+o|0)<<9|i>>>23)+c|0)<<13|i>>>19)+h|0)<<18|i>>>14,f^=(i=(a^=(i=(m^=(i=(p^=(i=f+a|0)<<7|i>>>25)+f|0)<<9|i>>>23)+p|0)<<13|i>>>19)+m|0)<<18|i>>>14,b^=(i=(l^=(i=(s^=(i=(v^=(i=b+l|0)<<7|i>>>25)+b|0)<<9|i>>>23)+v|0)<<13|i>>>19)+s|0)<<18|i>>>14,w^=(i=(y^=(i=(d^=(i=(u^=(i=w+y|0)<<7|i>>>25)+w|0)<<9|i>>>23)+u|0)<<13|i>>>19)+d|0)<<18|i>>>14,o^=(i=(u^=(i=(s^=(i=(a^=(i=o+u|0)<<7|i>>>25)+o|0)<<9|i>>>23)+a|0)<<13|i>>>19)+s|0)<<18|i>>>14,f^=(i=(c^=(i=(d^=(i=(l^=(i=f+c|0)<<7|i>>>25)+f|0)<<9|i>>>23)+l|0)<<13|i>>>19)+d|0)<<18|i>>>14,b^=(i=(p^=(i=(h^=(i=(y^=(i=b+p|0)<<7|i>>>25)+b|0)<<9|i>>>23)+y|0)<<13|i>>>19)+h|0)<<18|i>>>14,w^=(i=(v^=(i=(m^=(i=(g^=(i=w+v|0)<<7|i>>>25)+w|0)<<9|i>>>23)+g|0)<<13|i>>>19)+m|0)<<18|i>>>14;e[0]=o>>>0&255,e[1]=o>>>8&255,e[2]=o>>>16&255,e[3]=o>>>24&255,e[4]=f>>>0&255,e[5]=f>>>8&255,e[6]=f>>>16&255,e[7]=f>>>24&255,e[8]=b>>>0&255,e[9]=b>>>8&255,e[10]=b>>>16&255,e[11]=b>>>24&255,e[12]=w>>>0&255,e[13]=w>>>8&255,e[14]=w>>>16&255,e[15]=w>>>24&255,e[16]=l>>>0&255,e[17]=l>>>8&255,e[18]=l>>>16&255,e[19]=l>>>24&255,e[20]=d>>>0&255,e[21]=d>>>8&255,e[22]=d>>>16&255,e[23]=d>>>24&255,e[24]=h>>>0&255,e[25]=h>>>8&255,e[26]=h>>>16&255,e[27]=h>>>24&255,e[28]=p>>>0&255,e[29]=p>>>8&255,e[30]=p>>>16&255,e[31]=p>>>24&255}(e,t,r,n)}var w=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function _(e,t,r,n,i,o,a){var s,u,c=new Uint8Array(16),f=new Uint8Array(64);for(u=0;u<16;u++)c[u]=0;for(u=0;u<8;u++)c[u]=o[u];for(;i>=64;){for(m(f,c,a,w),u=0;u<64;u++)e[t+u]=r[n+u]^f[u];for(s=1,u=8;u<16;u++)s=s+(255&c[u])|0,c[u]=255&s,s>>>=8;i-=64,t+=64,n+=64}if(i>0)for(m(f,c,a,w),u=0;u<i;u++)e[t+u]=r[n+u]^f[u];return 0}function x(e,t,r,n,i){var o,a,s=new Uint8Array(16),u=new Uint8Array(64);for(a=0;a<16;a++)s[a]=0;for(a=0;a<8;a++)s[a]=n[a];for(;r>=64;){for(m(u,s,i,w),a=0;a<64;a++)e[t+a]=u[a];for(o=1,a=8;a<16;a++)o=o+(255&s[a])|0,s[a]=255&o,o>>>=8;r-=64,t+=64}if(r>0)for(m(u,s,i,w),a=0;a<r;a++)e[t+a]=u[a];return 0}function O(e,t,r,n,i){var o=new Uint8Array(32);v(o,n,i,w);for(var a=new Uint8Array(8),s=0;s<8;s++)a[s]=n[s+16];return x(e,t,r,a,o)}function k(e,t,r,n,i,o,a){var s=new Uint8Array(32);v(s,o,a,w);for(var u=new Uint8Array(8),c=0;c<8;c++)u[c]=o[c+16];return _(e,t,r,n,i,u,s)}var P=function(e){var t,r,n,i,o,a,s,u;this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0,t=255&e[0]|(255&e[1])<<8,this.r[0]=8191&t,r=255&e[2]|(255&e[3])<<8,this.r[1]=8191&(t>>>13|r<<3),n=255&e[4]|(255&e[5])<<8,this.r[2]=7939&(r>>>10|n<<6),i=255&e[6]|(255&e[7])<<8,this.r[3]=8191&(n>>>7|i<<9),o=255&e[8]|(255&e[9])<<8,this.r[4]=255&(i>>>4|o<<12),this.r[5]=o>>>1&8190,a=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(o>>>14|a<<2),s=255&e[12]|(255&e[13])<<8,this.r[7]=8065&(a>>>11|s<<5),u=255&e[14]|(255&e[15])<<8,this.r[8]=8191&(s>>>8|u<<8),this.r[9]=u>>>5&127,this.pad[0]=255&e[16]|(255&e[17])<<8,this.pad[1]=255&e[18]|(255&e[19])<<8,this.pad[2]=255&e[20]|(255&e[21])<<8,this.pad[3]=255&e[22]|(255&e[23])<<8,this.pad[4]=255&e[24]|(255&e[25])<<8,this.pad[5]=255&e[26]|(255&e[27])<<8,this.pad[6]=255&e[28]|(255&e[29])<<8,this.pad[7]=255&e[30]|(255&e[31])<<8};function S(e,t,r,n,i,o){var a=new P(o);return a.update(r,n,i),a.finish(e,t),0}function A(e,t,r,n,i,o){var a=new Uint8Array(16);return S(a,0,r,n,i,o),y(e,t,a,0)}function E(e,t,r,n,i){var o;if(r<32)return-1;for(k(e,0,t,0,r,n,i),S(e,16,e,32,r-32,e),o=0;o<16;o++)e[o]=0;return 0}function M(e,t,r,n,i){var o,a=new Uint8Array(32);if(r<32)return-1;if(O(a,0,32,n,i),0!==A(t,16,t,32,r-32,a))return-1;for(k(e,0,t,0,r,n,i),o=0;o<32;o++)e[o]=0;return 0}function j(e,t){var r;for(r=0;r<16;r++)e[r]=0|t[r]}function T(e){var t,r,n=1;for(t=0;t<16;t++)r=e[t]+n+65535,n=Math.floor(r/65536),e[t]=r-65536*n;e[0]+=n-1+37*(n-1)}function B(e,t,r){for(var n,i=~(r-1),o=0;o<16;o++)n=i&(e[o]^t[o]),e[o]^=n,t[o]^=n}function I(e,r){var n,i,o,a=t(),s=t();for(n=0;n<16;n++)s[n]=r[n];for(T(s),T(s),T(s),i=0;i<2;i++){for(a[0]=s[0]-65517,n=1;n<15;n++)a[n]=s[n]-65535-(a[n-1]>>16&1),a[n-1]&=65535;a[15]=s[15]-32767-(a[14]>>16&1),o=a[15]>>16&1,a[14]&=65535,B(s,a,1-o)}for(n=0;n<16;n++)e[2*n]=255&s[n],e[2*n+1]=s[n]>>8}function N(e,t){var r=new Uint8Array(32),n=new Uint8Array(32);return I(r,e),I(n,t),g(r,0,n,0)}function R(e){var t=new Uint8Array(32);return I(t,e),1&t[0]}function C(e,t){var r;for(r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function U(e,t,r){for(var n=0;n<16;n++)e[n]=t[n]+r[n]}function L(e,t,r){for(var n=0;n<16;n++)e[n]=t[n]-r[n]}function D(e,t,r){var n,i,o=0,a=0,s=0,u=0,c=0,f=0,l=0,d=0,h=0,p=0,b=0,y=0,g=0,m=0,v=0,w=0,_=0,x=0,O=0,k=0,P=0,S=0,A=0,E=0,M=0,j=0,T=0,B=0,I=0,N=0,R=0,C=r[0],U=r[1],L=r[2],D=r[3],H=r[4],F=r[5],V=r[6],z=r[7],q=r[8],K=r[9],W=r[10],G=r[11],X=r[12],Z=r[13],J=r[14],Y=r[15];o+=(n=t[0])*C,a+=n*U,s+=n*L,u+=n*D,c+=n*H,f+=n*F,l+=n*V,d+=n*z,h+=n*q,p+=n*K,b+=n*W,y+=n*G,g+=n*X,m+=n*Z,v+=n*J,w+=n*Y,a+=(n=t[1])*C,s+=n*U,u+=n*L,c+=n*D,f+=n*H,l+=n*F,d+=n*V,h+=n*z,p+=n*q,b+=n*K,y+=n*W,g+=n*G,m+=n*X,v+=n*Z,w+=n*J,_+=n*Y,s+=(n=t[2])*C,u+=n*U,c+=n*L,f+=n*D,l+=n*H,d+=n*F,h+=n*V,p+=n*z,b+=n*q,y+=n*K,g+=n*W,m+=n*G,v+=n*X,w+=n*Z,_+=n*J,x+=n*Y,u+=(n=t[3])*C,c+=n*U,f+=n*L,l+=n*D,d+=n*H,h+=n*F,p+=n*V,b+=n*z,y+=n*q,g+=n*K,m+=n*W,v+=n*G,w+=n*X,_+=n*Z,x+=n*J,O+=n*Y,c+=(n=t[4])*C,f+=n*U,l+=n*L,d+=n*D,h+=n*H,p+=n*F,b+=n*V,y+=n*z,g+=n*q,m+=n*K,v+=n*W,w+=n*G,_+=n*X,x+=n*Z,O+=n*J,k+=n*Y,f+=(n=t[5])*C,l+=n*U,d+=n*L,h+=n*D,p+=n*H,b+=n*F,y+=n*V,g+=n*z,m+=n*q,v+=n*K,w+=n*W,_+=n*G,x+=n*X,O+=n*Z,k+=n*J,P+=n*Y,l+=(n=t[6])*C,d+=n*U,h+=n*L,p+=n*D,b+=n*H,y+=n*F,g+=n*V,m+=n*z,v+=n*q,w+=n*K,_+=n*W,x+=n*G,O+=n*X,k+=n*Z,P+=n*J,S+=n*Y,d+=(n=t[7])*C,h+=n*U,p+=n*L,b+=n*D,y+=n*H,g+=n*F,m+=n*V,v+=n*z,w+=n*q,_+=n*K,x+=n*W,O+=n*G,k+=n*X,P+=n*Z,S+=n*J,A+=n*Y,h+=(n=t[8])*C,p+=n*U,b+=n*L,y+=n*D,g+=n*H,m+=n*F,v+=n*V,w+=n*z,_+=n*q,x+=n*K,O+=n*W,k+=n*G,P+=n*X,S+=n*Z,A+=n*J,E+=n*Y,p+=(n=t[9])*C,b+=n*U,y+=n*L,g+=n*D,m+=n*H,v+=n*F,w+=n*V,_+=n*z,x+=n*q,O+=n*K,k+=n*W,P+=n*G,S+=n*X,A+=n*Z,E+=n*J,M+=n*Y,b+=(n=t[10])*C,y+=n*U,g+=n*L,m+=n*D,v+=n*H,w+=n*F,_+=n*V,x+=n*z,O+=n*q,k+=n*K,P+=n*W,S+=n*G,A+=n*X,E+=n*Z,M+=n*J,j+=n*Y,y+=(n=t[11])*C,g+=n*U,m+=n*L,v+=n*D,w+=n*H,_+=n*F,x+=n*V,O+=n*z,k+=n*q,P+=n*K,S+=n*W,A+=n*G,E+=n*X,M+=n*Z,j+=n*J,T+=n*Y,g+=(n=t[12])*C,m+=n*U,v+=n*L,w+=n*D,_+=n*H,x+=n*F,O+=n*V,k+=n*z,P+=n*q,S+=n*K,A+=n*W,E+=n*G,M+=n*X,j+=n*Z,T+=n*J,B+=n*Y,m+=(n=t[13])*C,v+=n*U,w+=n*L,_+=n*D,x+=n*H,O+=n*F,k+=n*V,P+=n*z,S+=n*q,A+=n*K,E+=n*W,M+=n*G,j+=n*X,T+=n*Z,B+=n*J,I+=n*Y,v+=(n=t[14])*C,w+=n*U,_+=n*L,x+=n*D,O+=n*H,k+=n*F,P+=n*V,S+=n*z,A+=n*q,E+=n*K,M+=n*W,j+=n*G,T+=n*X,B+=n*Z,I+=n*J,N+=n*Y,w+=(n=t[15])*C,a+=38*(x+=n*L),s+=38*(O+=n*D),u+=38*(k+=n*H),c+=38*(P+=n*F),f+=38*(S+=n*V),l+=38*(A+=n*z),d+=38*(E+=n*q),h+=38*(M+=n*K),p+=38*(j+=n*W),b+=38*(T+=n*G),y+=38*(B+=n*X),g+=38*(I+=n*Z),m+=38*(N+=n*J),v+=38*(R+=n*Y),o=(n=(o+=38*(_+=n*U))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),a=(n=a+i+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),u=(n=u+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),w=(n=w+i+65535)-65536*(i=Math.floor(n/65536)),o=(n=(o+=i-1+37*(i-1))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),a=(n=a+i+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),u=(n=u+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),w=(n=w+i+65535)-65536*(i=Math.floor(n/65536)),o+=i-1+37*(i-1),e[0]=o,e[1]=a,e[2]=s,e[3]=u,e[4]=c,e[5]=f,e[6]=l,e[7]=d,e[8]=h,e[9]=p,e[10]=b,e[11]=y,e[12]=g,e[13]=m,e[14]=v,e[15]=w}function H(e,t){D(e,t,t)}function F(e,r){var n,i=t();for(n=0;n<16;n++)i[n]=r[n];for(n=253;n>=0;n--)H(i,i),2!==n&&4!==n&&D(i,i,r);for(n=0;n<16;n++)e[n]=i[n]}function V(e,r){var n,i=t();for(n=0;n<16;n++)i[n]=r[n];for(n=250;n>=0;n--)H(i,i),1!==n&&D(i,i,r);for(n=0;n<16;n++)e[n]=i[n]}function z(e,r,n){var i,o,a=new Uint8Array(32),s=new Float64Array(80),c=t(),f=t(),l=t(),d=t(),h=t(),p=t();for(o=0;o<31;o++)a[o]=r[o];for(a[31]=127&r[31]|64,a[0]&=248,C(s,n),o=0;o<16;o++)f[o]=s[o],d[o]=c[o]=l[o]=0;for(c[0]=d[0]=1,o=254;o>=0;--o)B(c,f,i=a[o>>>3]>>>(7&o)&1),B(l,d,i),U(h,c,l),L(c,c,l),U(l,f,d),L(f,f,d),H(d,h),H(p,c),D(c,l,c),D(l,f,h),U(h,c,l),L(c,c,l),H(f,c),L(l,d,p),D(c,l,u),U(c,c,d),D(l,l,c),D(c,d,p),D(d,f,s),H(f,h),B(c,f,i),B(l,d,i);for(o=0;o<16;o++)s[o+16]=c[o],s[o+32]=l[o],s[o+48]=f[o],s[o+64]=d[o];var b=s.subarray(32),y=s.subarray(16);return F(b,b),D(y,y,b),I(e,y),0}function q(e,t){return z(e,t,o)}function K(e,t){return n(t,32),q(e,t)}function W(e,t,r){var n=new Uint8Array(32);return z(n,r,t),v(e,i,n,w)}P.prototype.blocks=function(e,t,r){for(var n,i,o,a,s,u,c,f,l,d,h,p,b,y,g,m,v,w,_,x=this.fin?0:2048,O=this.h[0],k=this.h[1],P=this.h[2],S=this.h[3],A=this.h[4],E=this.h[5],M=this.h[6],j=this.h[7],T=this.h[8],B=this.h[9],I=this.r[0],N=this.r[1],R=this.r[2],C=this.r[3],U=this.r[4],L=this.r[5],D=this.r[6],H=this.r[7],F=this.r[8],V=this.r[9];r>=16;)d=l=0,d+=(O+=8191&(n=255&e[t+0]|(255&e[t+1])<<8))*I,d+=(k+=8191&(n>>>13|(i=255&e[t+2]|(255&e[t+3])<<8)<<3))*(5*V),d+=(P+=8191&(i>>>10|(o=255&e[t+4]|(255&e[t+5])<<8)<<6))*(5*F),d+=(S+=8191&(o>>>7|(a=255&e[t+6]|(255&e[t+7])<<8)<<9))*(5*H),l=(d+=(A+=8191&(a>>>4|(s=255&e[t+8]|(255&e[t+9])<<8)<<12))*(5*D))>>>13,d&=8191,d+=(E+=s>>>1&8191)*(5*L),d+=(M+=8191&(s>>>14|(u=255&e[t+10]|(255&e[t+11])<<8)<<2))*(5*U),d+=(j+=8191&(u>>>11|(c=255&e[t+12]|(255&e[t+13])<<8)<<5))*(5*C),d+=(T+=8191&(c>>>8|(f=255&e[t+14]|(255&e[t+15])<<8)<<8))*(5*R),h=l+=(d+=(B+=f>>>5|x)*(5*N))>>>13,h+=O*N,h+=k*I,h+=P*(5*V),h+=S*(5*F),l=(h+=A*(5*H))>>>13,h&=8191,h+=E*(5*D),h+=M*(5*L),h+=j*(5*U),h+=T*(5*C),l+=(h+=B*(5*R))>>>13,h&=8191,p=l,p+=O*R,p+=k*N,p+=P*I,p+=S*(5*V),l=(p+=A*(5*F))>>>13,p&=8191,p+=E*(5*H),p+=M*(5*D),p+=j*(5*L),p+=T*(5*U),b=l+=(p+=B*(5*C))>>>13,b+=O*C,b+=k*R,b+=P*N,b+=S*I,l=(b+=A*(5*V))>>>13,b&=8191,b+=E*(5*F),b+=M*(5*H),b+=j*(5*D),b+=T*(5*L),y=l+=(b+=B*(5*U))>>>13,y+=O*U,y+=k*C,y+=P*R,y+=S*N,l=(y+=A*I)>>>13,y&=8191,y+=E*(5*V),y+=M*(5*F),y+=j*(5*H),y+=T*(5*D),g=l+=(y+=B*(5*L))>>>13,g+=O*L,g+=k*U,g+=P*C,g+=S*R,l=(g+=A*N)>>>13,g&=8191,g+=E*I,g+=M*(5*V),g+=j*(5*F),g+=T*(5*H),m=l+=(g+=B*(5*D))>>>13,m+=O*D,m+=k*L,m+=P*U,m+=S*C,l=(m+=A*R)>>>13,m&=8191,m+=E*N,m+=M*I,m+=j*(5*V),m+=T*(5*F),v=l+=(m+=B*(5*H))>>>13,v+=O*H,v+=k*D,v+=P*L,v+=S*U,l=(v+=A*C)>>>13,v&=8191,v+=E*R,v+=M*N,v+=j*I,v+=T*(5*V),w=l+=(v+=B*(5*F))>>>13,w+=O*F,w+=k*H,w+=P*D,w+=S*L,l=(w+=A*U)>>>13,w&=8191,w+=E*C,w+=M*R,w+=j*N,w+=T*I,_=l+=(w+=B*(5*V))>>>13,_+=O*V,_+=k*F,_+=P*H,_+=S*D,l=(_+=A*L)>>>13,_&=8191,_+=E*U,_+=M*C,_+=j*R,_+=T*N,O=d=8191&(l=(l=((l+=(_+=B*I)>>>13)<<2)+l|0)+(d&=8191)|0),k=h+=l>>>=13,P=p&=8191,S=b&=8191,A=y&=8191,E=g&=8191,M=m&=8191,j=v&=8191,T=w&=8191,B=_&=8191,t+=16,r-=16;this.h[0]=O,this.h[1]=k,this.h[2]=P,this.h[3]=S,this.h[4]=A,this.h[5]=E,this.h[6]=M,this.h[7]=j,this.h[8]=T,this.h[9]=B},P.prototype.finish=function(e,t){var r,n,i,o,a=new Uint16Array(10);if(this.leftover){for(o=this.leftover,this.buffer[o++]=1;o<16;o++)this.buffer[o]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(r=this.h[1]>>>13,this.h[1]&=8191,o=2;o<10;o++)this.h[o]+=r,r=this.h[o]>>>13,this.h[o]&=8191;for(this.h[0]+=5*r,r=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=r,r=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=r,a[0]=this.h[0]+5,r=a[0]>>>13,a[0]&=8191,o=1;o<10;o++)a[o]=this.h[o]+r,r=a[o]>>>13,a[o]&=8191;for(a[9]-=8192,n=(1^r)-1,o=0;o<10;o++)a[o]&=n;for(n=~n,o=0;o<10;o++)this.h[o]=this.h[o]&n|a[o];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),i=this.h[0]+this.pad[0],this.h[0]=65535&i,o=1;o<8;o++)i=(this.h[o]+this.pad[o]|0)+(i>>>16)|0,this.h[o]=65535&i;e[t+0]=this.h[0]>>>0&255,e[t+1]=this.h[0]>>>8&255,e[t+2]=this.h[1]>>>0&255,e[t+3]=this.h[1]>>>8&255,e[t+4]=this.h[2]>>>0&255,e[t+5]=this.h[2]>>>8&255,e[t+6]=this.h[3]>>>0&255,e[t+7]=this.h[3]>>>8&255,e[t+8]=this.h[4]>>>0&255,e[t+9]=this.h[4]>>>8&255,e[t+10]=this.h[5]>>>0&255,e[t+11]=this.h[5]>>>8&255,e[t+12]=this.h[6]>>>0&255,e[t+13]=this.h[6]>>>8&255,e[t+14]=this.h[7]>>>0&255,e[t+15]=this.h[7]>>>8&255},P.prototype.update=function(e,t,r){var n,i;if(this.leftover){for((i=16-this.leftover)>r&&(i=r),n=0;n<i;n++)this.buffer[this.leftover+n]=e[t+n];if(r-=i,t+=i,this.leftover+=i,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(r>=16&&(i=r-r%16,this.blocks(e,t,i),t+=i,r-=i),r){for(n=0;n<r;n++)this.buffer[this.leftover+n]=e[t+n];this.leftover+=r}};var G=E,X=M,Z=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function J(e,t,r,n){for(var i,o,a,s,u,c,f,l,d,h,p,b,y,g,m,v,w,_,x,O,k,P,S,A,E,M,j=new Int32Array(16),T=new Int32Array(16),B=e[0],I=e[1],N=e[2],R=e[3],C=e[4],U=e[5],L=e[6],D=e[7],H=t[0],F=t[1],V=t[2],z=t[3],q=t[4],K=t[5],W=t[6],G=t[7],X=0;n>=128;){for(x=0;x<16;x++)O=8*x+X,j[x]=r[O+0]<<24|r[O+1]<<16|r[O+2]<<8|r[O+3],T[x]=r[O+4]<<24|r[O+5]<<16|r[O+6]<<8|r[O+7];for(x=0;x<80;x++)if(i=B,o=I,a=N,s=R,u=C,c=U,f=L,d=H,h=F,p=V,b=z,y=q,g=K,m=W,S=65535&(P=G),A=P>>>16,E=65535&(k=D),M=k>>>16,S+=65535&(P=(q>>>14|C<<18)^(q>>>18|C<<14)^(C>>>9|q<<23)),A+=P>>>16,E+=65535&(k=(C>>>14|q<<18)^(C>>>18|q<<14)^(q>>>9|C<<23)),M+=k>>>16,S+=65535&(P=q&K^~q&W),A+=P>>>16,E+=65535&(k=C&U^~C&L),M+=k>>>16,k=Z[2*x],S+=65535&(P=Z[2*x+1]),A+=P>>>16,E+=65535&k,M+=k>>>16,k=j[x%16],A+=(P=T[x%16])>>>16,E+=65535&k,M+=k>>>16,E+=(A+=(S+=65535&P)>>>16)>>>16,S=65535&(P=_=65535&S|A<<16),A=P>>>16,E=65535&(k=w=65535&E|(M+=E>>>16)<<16),M=k>>>16,S+=65535&(P=(H>>>28|B<<4)^(B>>>2|H<<30)^(B>>>7|H<<25)),A+=P>>>16,E+=65535&(k=(B>>>28|H<<4)^(H>>>2|B<<30)^(H>>>7|B<<25)),M+=k>>>16,A+=(P=H&F^H&V^F&V)>>>16,E+=65535&(k=B&I^B&N^I&N),M+=k>>>16,l=65535&(E+=(A+=(S+=65535&P)>>>16)>>>16)|(M+=E>>>16)<<16,v=65535&S|A<<16,S=65535&(P=b),A=P>>>16,E=65535&(k=s),M=k>>>16,A+=(P=_)>>>16,E+=65535&(k=w),M+=k>>>16,I=i,N=o,R=a,C=s=65535&(E+=(A+=(S+=65535&P)>>>16)>>>16)|(M+=E>>>16)<<16,U=u,L=c,D=f,B=l,F=d,V=h,z=p,q=b=65535&S|A<<16,K=y,W=g,G=m,H=v,x%16==15)for(O=0;O<16;O++)k=j[O],S=65535&(P=T[O]),A=P>>>16,E=65535&k,M=k>>>16,k=j[(O+9)%16],S+=65535&(P=T[(O+9)%16]),A+=P>>>16,E+=65535&k,M+=k>>>16,w=j[(O+1)%16],S+=65535&(P=((_=T[(O+1)%16])>>>1|w<<31)^(_>>>8|w<<24)^(_>>>7|w<<25)),A+=P>>>16,E+=65535&(k=(w>>>1|_<<31)^(w>>>8|_<<24)^w>>>7),M+=k>>>16,w=j[(O+14)%16],A+=(P=((_=T[(O+14)%16])>>>19|w<<13)^(w>>>29|_<<3)^(_>>>6|w<<26))>>>16,E+=65535&(k=(w>>>19|_<<13)^(_>>>29|w<<3)^w>>>6),M+=k>>>16,M+=(E+=(A+=(S+=65535&P)>>>16)>>>16)>>>16,j[O]=65535&E|M<<16,T[O]=65535&S|A<<16;S=65535&(P=H),A=P>>>16,E=65535&(k=B),M=k>>>16,k=e[0],A+=(P=t[0])>>>16,E+=65535&k,M+=k>>>16,M+=(E+=(A+=(S+=65535&P)>>>16)>>>16)>>>16,e[0]=B=65535&E|M<<16,t[0]=H=65535&S|A<<16,S=65535&(P=F),A=P>>>16,E=65535&(k=I),M=k>>>16,k=e[1],A+=(P=t[1])>>>16,E+=65535&k,M+=k>>>16,M+=(E+=(A+=(S+=65535&P)>>>16)>>>16)>>>16,e[1]=I=65535&E|M<<16,t[1]=F=65535&S|A<<16,S=65535&(P=V),A=P>>>16,E=65535&(k=N),M=k>>>16,k=e[2],A+=(P=t[2])>>>16,E+=65535&k,M+=k>>>16,M+=(E+=(A+=(S+=65535&P)>>>16)>>>16)>>>16,e[2]=N=65535&E|M<<16,t[2]=V=65535&S|A<<16,S=65535&(P=z),A=P>>>16,E=65535&(k=R),M=k>>>16,k=e[3],A+=(P=t[3])>>>16,E+=65535&k,M+=k>>>16,M+=(E+=(A+=(S+=65535&P)>>>16)>>>16)>>>16,e[3]=R=65535&E|M<<16,t[3]=z=65535&S|A<<16,S=65535&(P=q),A=P>>>16,E=65535&(k=C),M=k>>>16,k=e[4],A+=(P=t[4])>>>16,E+=65535&k,M+=k>>>16,M+=(E+=(A+=(S+=65535&P)>>>16)>>>16)>>>16,e[4]=C=65535&E|M<<16,t[4]=q=65535&S|A<<16,S=65535&(P=K),A=P>>>16,E=65535&(k=U),M=k>>>16,k=e[5],A+=(P=t[5])>>>16,E+=65535&k,M+=k>>>16,M+=(E+=(A+=(S+=65535&P)>>>16)>>>16)>>>16,e[5]=U=65535&E|M<<16,t[5]=K=65535&S|A<<16,S=65535&(P=W),A=P>>>16,E=65535&(k=L),M=k>>>16,k=e[6],A+=(P=t[6])>>>16,E+=65535&k,M+=k>>>16,M+=(E+=(A+=(S+=65535&P)>>>16)>>>16)>>>16,e[6]=L=65535&E|M<<16,t[6]=W=65535&S|A<<16,S=65535&(P=G),A=P>>>16,E=65535&(k=D),M=k>>>16,k=e[7],A+=(P=t[7])>>>16,E+=65535&k,M+=k>>>16,M+=(E+=(A+=(S+=65535&P)>>>16)>>>16)>>>16,e[7]=D=65535&E|M<<16,t[7]=G=65535&S|A<<16,X+=128,n-=128}return n}function Y(e,t,r){var n,i=new Int32Array(8),o=new Int32Array(8),a=new Uint8Array(256),s=r;for(i[0]=1779033703,i[1]=3144134277,i[2]=1013904242,i[3]=2773480762,i[4]=1359893119,i[5]=2600822924,i[6]=528734635,i[7]=1541459225,o[0]=4089235720,o[1]=2227873595,o[2]=4271175723,o[3]=1595750129,o[4]=2917565137,o[5]=725511199,o[6]=4215389547,o[7]=327033209,J(i,o,t,r),r%=128,n=0;n<r;n++)a[n]=t[s-r+n];for(a[r]=128,a[(r=256-128*(r<112?1:0))-9]=0,p(a,r-8,s/536870912|0,s<<3),J(i,o,a,r),n=0;n<8;n++)p(e,8*n,i[n],o[n]);return 0}function Q(e,r){var n=t(),i=t(),o=t(),a=t(),s=t(),u=t(),c=t(),l=t(),d=t();L(n,e[1],e[0]),L(d,r[1],r[0]),D(n,n,d),U(i,e[0],e[1]),U(d,r[0],r[1]),D(i,i,d),D(o,e[3],r[3]),D(o,o,f),D(a,e[2],r[2]),U(a,a,a),L(s,i,n),L(u,a,o),U(c,a,o),U(l,i,n),D(e[0],s,u),D(e[1],l,c),D(e[2],c,u),D(e[3],s,l)}function $(e,t,r){var n;for(n=0;n<4;n++)B(e[n],t[n],r)}function ee(e,r){var n=t(),i=t(),o=t();F(o,r[2]),D(n,r[0],o),D(i,r[1],o),I(e,i),e[31]^=R(n)<<7}function te(e,t,r){var n,i;for(j(e[0],a),j(e[1],s),j(e[2],s),j(e[3],a),i=255;i>=0;--i)$(e,t,n=r[i/8|0]>>(7&i)&1),Q(t,e),Q(e,e),$(e,t,n)}function re(e,r){var n=[t(),t(),t(),t()];j(n[0],l),j(n[1],d),j(n[2],s),D(n[3],l,d),te(e,n,r)}function ne(e,r,i){var o,a=new Uint8Array(64),s=[t(),t(),t(),t()];for(i||n(r,32),Y(a,r,32),a[0]&=248,a[31]&=127,a[31]|=64,re(s,a),ee(e,s),o=0;o<32;o++)r[o+32]=e[o];return 0}var ie=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function oe(e,t){var r,n,i,o;for(n=63;n>=32;--n){for(r=0,i=n-32,o=n-12;i<o;++i)t[i]+=r-16*t[n]*ie[i-(n-32)],r=Math.floor((t[i]+128)/256),t[i]-=256*r;t[i]+=r,t[n]=0}for(r=0,i=0;i<32;i++)t[i]+=r-(t[31]>>4)*ie[i],r=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=r*ie[i];for(n=0;n<32;n++)t[n+1]+=t[n]>>8,e[n]=255&t[n]}function ae(e){var t,r=new Float64Array(64);for(t=0;t<64;t++)r[t]=e[t];for(t=0;t<64;t++)e[t]=0;oe(e,r)}function se(e,r,n,i){var o,a,s=new Uint8Array(64),u=new Uint8Array(64),c=new Uint8Array(64),f=new Float64Array(64),l=[t(),t(),t(),t()];Y(s,i,32),s[0]&=248,s[31]&=127,s[31]|=64;var d=n+64;for(o=0;o<n;o++)e[64+o]=r[o];for(o=0;o<32;o++)e[32+o]=s[32+o];for(Y(c,e.subarray(32),n+32),ae(c),re(l,c),ee(e,l),o=32;o<64;o++)e[o]=i[o];for(Y(u,e,n+64),ae(u),o=0;o<64;o++)f[o]=0;for(o=0;o<32;o++)f[o]=c[o];for(o=0;o<32;o++)for(a=0;a<32;a++)f[o+a]+=u[o]*s[a];return oe(e.subarray(32),f),d}function ue(e,r,n,i){var o,u=new Uint8Array(32),f=new Uint8Array(64),l=[t(),t(),t(),t()],d=[t(),t(),t(),t()];if(n<64)return-1;if(function(e,r){var n=t(),i=t(),o=t(),u=t(),f=t(),l=t(),d=t();return j(e[2],s),C(e[1],r),H(o,e[1]),D(u,o,c),L(o,o,e[2]),U(u,e[2],u),H(f,u),H(l,f),D(d,l,f),D(n,d,o),D(n,n,u),V(n,n),D(n,n,o),D(n,n,u),D(n,n,u),D(e[0],n,u),H(i,e[0]),D(i,i,u),N(i,o)&&D(e[0],e[0],h),H(i,e[0]),D(i,i,u),N(i,o)?-1:(R(e[0])===r[31]>>7&&L(e[0],a,e[0]),D(e[3],e[0],e[1]),0)}(d,i))return-1;for(o=0;o<n;o++)e[o]=r[o];for(o=0;o<32;o++)e[o+32]=i[o];if(Y(f,e,n),ae(f),te(l,d,f),re(d,r.subarray(32)),Q(l,d),ee(u,l),n-=64,g(r,0,u,0)){for(o=0;o<n;o++)e[o]=0;return-1}for(o=0;o<n;o++)e[o]=r[o+64];return n}var ce=64,fe=32,le=64;function de(e,t){if(32!==e.length)throw new Error("bad key size");if(24!==t.length)throw new Error("bad nonce size")}function he(){for(var e=0;e<arguments.length;e++)if(!(arguments[e]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function pe(e){for(var t=0;t<e.length;t++)e[t]=0}e.lowlevel={crypto_core_hsalsa20:v,crypto_stream_xor:k,crypto_stream:O,crypto_stream_salsa20_xor:_,crypto_stream_salsa20:x,crypto_onetimeauth:S,crypto_onetimeauth_verify:A,crypto_verify_16:y,crypto_verify_32:g,crypto_secretbox:E,crypto_secretbox_open:M,crypto_scalarmult:z,crypto_scalarmult_base:q,crypto_box_beforenm:W,crypto_box_afternm:G,crypto_box:function(e,t,r,n,i,o){var a=new Uint8Array(32);return W(a,i,o),G(e,t,r,n,a)},crypto_box_open:function(e,t,r,n,i,o){var a=new Uint8Array(32);return W(a,i,o),X(e,t,r,n,a)},crypto_box_keypair:K,crypto_hash:Y,crypto_sign:se,crypto_sign_keypair:ne,crypto_sign_open:ue,crypto_secretbox_KEYBYTES:32,crypto_secretbox_NONCEBYTES:24,crypto_secretbox_ZEROBYTES:32,crypto_secretbox_BOXZEROBYTES:16,crypto_scalarmult_BYTES:32,crypto_scalarmult_SCALARBYTES:32,crypto_box_PUBLICKEYBYTES:32,crypto_box_SECRETKEYBYTES:32,crypto_box_BEFORENMBYTES:32,crypto_box_NONCEBYTES:24,crypto_box_ZEROBYTES:32,crypto_box_BOXZEROBYTES:16,crypto_sign_BYTES:ce,crypto_sign_PUBLICKEYBYTES:fe,crypto_sign_SECRETKEYBYTES:le,crypto_sign_SEEDBYTES:32,crypto_hash_BYTES:64,gf:t,D:c,L:ie,pack25519:I,unpack25519:C,M:D,A:U,S:H,Z:L,pow2523:V,add:Q,set25519:j,modL:oe,scalarmult:te,scalarbase:re},e.randomBytes=function(e){var t=new Uint8Array(e);return n(t,e),t},e.secretbox=function(e,t,r){he(e,t,r),de(r,t);for(var n=new Uint8Array(32+e.length),i=new Uint8Array(n.length),o=0;o<e.length;o++)n[o+32]=e[o];return E(i,n,n.length,t,r),i.subarray(16)},e.secretbox.open=function(e,t,r){he(e,t,r),de(r,t);for(var n=new Uint8Array(16+e.length),i=new Uint8Array(n.length),o=0;o<e.length;o++)n[o+16]=e[o];return n.length<32||0!==M(i,n,n.length,t,r)?null:i.subarray(32)},e.secretbox.keyLength=32,e.secretbox.nonceLength=24,e.secretbox.overheadLength=16,e.scalarMult=function(e,t){if(he(e,t),32!==e.length)throw new Error("bad n size");if(32!==t.length)throw new Error("bad p size");var r=new Uint8Array(32);return z(r,e,t),r},e.scalarMult.base=function(e){if(he(e),32!==e.length)throw new Error("bad n size");var t=new Uint8Array(32);return q(t,e),t},e.scalarMult.scalarLength=32,e.scalarMult.groupElementLength=32,e.box=function(t,r,n,i){var o=e.box.before(n,i);return e.secretbox(t,r,o)},e.box.before=function(e,t){he(e,t),function(e,t){if(32!==e.length)throw new Error("bad public key size");if(32!==t.length)throw new Error("bad secret key size")}(e,t);var r=new Uint8Array(32);return W(r,e,t),r},e.box.after=e.secretbox,e.box.open=function(t,r,n,i){var o=e.box.before(n,i);return e.secretbox.open(t,r,o)},e.box.open.after=e.secretbox.open,e.box.keyPair=function(){var e=new Uint8Array(32),t=new Uint8Array(32);return K(e,t),{publicKey:e,secretKey:t}},e.box.keyPair.fromSecretKey=function(e){if(he(e),32!==e.length)throw new Error("bad secret key size");var t=new Uint8Array(32);return q(t,e),{publicKey:t,secretKey:new Uint8Array(e)}},e.box.publicKeyLength=32,e.box.secretKeyLength=32,e.box.sharedKeyLength=32,e.box.nonceLength=24,e.box.overheadLength=e.secretbox.overheadLength,e.sign=function(e,t){if(he(e,t),t.length!==le)throw new Error("bad secret key size");var r=new Uint8Array(ce+e.length);return se(r,e,e.length,t),r},e.sign.open=function(e,t){if(he(e,t),t.length!==fe)throw new Error("bad public key size");var r=new Uint8Array(e.length),n=ue(r,e,e.length,t);if(n<0)return null;for(var i=new Uint8Array(n),o=0;o<i.length;o++)i[o]=r[o];return i},e.sign.detached=function(t,r){for(var n=e.sign(t,r),i=new Uint8Array(ce),o=0;o<i.length;o++)i[o]=n[o];return i},e.sign.detached.verify=function(e,t,r){if(he(e,t,r),t.length!==ce)throw new Error("bad signature size");if(r.length!==fe)throw new Error("bad public key size");var n,i=new Uint8Array(ce+e.length),o=new Uint8Array(ce+e.length);for(n=0;n<ce;n++)i[n]=t[n];for(n=0;n<e.length;n++)i[n+ce]=e[n];return ue(o,i,i.length,r)>=0},e.sign.keyPair=function(){var e=new Uint8Array(fe),t=new Uint8Array(le);return ne(e,t),{publicKey:e,secretKey:t}},e.sign.keyPair.fromSecretKey=function(e){if(he(e),e.length!==le)throw new Error("bad secret key size");for(var t=new Uint8Array(fe),r=0;r<t.length;r++)t[r]=e[32+r];return{publicKey:t,secretKey:new Uint8Array(e)}},e.sign.keyPair.fromSeed=function(e){if(he(e),32!==e.length)throw new Error("bad seed size");for(var t=new Uint8Array(fe),r=new Uint8Array(le),n=0;n<32;n++)r[n]=e[n];return ne(t,r,!0),{publicKey:t,secretKey:r}},e.sign.publicKeyLength=fe,e.sign.secretKeyLength=le,e.sign.seedLength=32,e.sign.signatureLength=ce,e.hash=function(e){he(e);var t=new Uint8Array(64);return Y(t,e,e.length),t},e.hash.hashLength=64,e.verify=function(e,t){return he(e,t),0!==e.length&&0!==t.length&&e.length===t.length&&0===b(e,0,t,0,e.length)},e.setPRNG=function(e){n=e},function(){var t="undefined"!=typeof self?self.crypto||self.msCrypto:null;t&&t.getRandomValues?e.setPRNG((function(e,r){var n,i=new Uint8Array(r);for(n=0;n<r;n+=65536)t.getRandomValues(i.subarray(n,n+Math.min(r-n,65536)));for(n=0;n<r;n++)e[n]=i[n];pe(i)})):(t=r(55024))&&t.randomBytes&&e.setPRNG((function(e,r){var n,i=t.randomBytes(r);for(n=0;n<r;n++)e[n]=i[n];pe(i)}))}()}(e.exports?e.exports:self.nacl=self.nacl||{})},65054:(e,t,r)=>{var n=r(48764).Buffer,i=r(4501).strict;e.exports=function(e){if(i(e)){var t=n.from(e.buffer);return e.byteLength!==e.buffer.byteLength&&(t=t.slice(e.byteOffset,e.byteOffset+e.byteLength)),t}return n.from(e)}},94927:(e,t,r)=>{function n(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}},20384:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},55955:(e,t,r)=>{"use strict";var n=r(82584),i=r(48662),o=r(86430),a=r(85692);function s(e){return e.call.bind(e)}var u="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,f=s(Object.prototype.toString),l=s(Number.prototype.valueOf),d=s(String.prototype.valueOf),h=s(Boolean.prototype.valueOf);if(u)var p=s(BigInt.prototype.valueOf);if(c)var b=s(Symbol.prototype.valueOf);function y(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function g(e){return"[object Map]"===f(e)}function m(e){return"[object Set]"===f(e)}function v(e){return"[object WeakMap]"===f(e)}function w(e){return"[object WeakSet]"===f(e)}function _(e){return"[object ArrayBuffer]"===f(e)}function x(e){return"undefined"!=typeof ArrayBuffer&&(_.working?_(e):e instanceof ArrayBuffer)}function O(e){return"[object DataView]"===f(e)}function k(e){return"undefined"!=typeof DataView&&(O.working?O(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=i,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||k(e)},t.isUint8Array=function(e){return"Uint8Array"===o(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},t.isUint16Array=function(e){return"Uint16Array"===o(e)},t.isUint32Array=function(e){return"Uint32Array"===o(e)},t.isInt8Array=function(e){return"Int8Array"===o(e)},t.isInt16Array=function(e){return"Int16Array"===o(e)},t.isInt32Array=function(e){return"Int32Array"===o(e)},t.isFloat32Array=function(e){return"Float32Array"===o(e)},t.isFloat64Array=function(e){return"Float64Array"===o(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},g.working="undefined"!=typeof Map&&g(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(g.working?g(e):e instanceof Map)},m.working="undefined"!=typeof Set&&m(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(m.working?m(e):e instanceof Set)},v.working="undefined"!=typeof WeakMap&&v(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(v.working?v(e):e instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),t.isWeakSet=function(e){return w(e)},_.working="undefined"!=typeof ArrayBuffer&&_(new ArrayBuffer),t.isArrayBuffer=x,O.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&O(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=k;var P="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function S(e){return"[object SharedArrayBuffer]"===f(e)}function A(e){return void 0!==P&&(void 0===S.working&&(S.working=S(new P)),S.working?S(e):e instanceof P)}function E(e){return y(e,l)}function M(e){return y(e,d)}function j(e){return y(e,h)}function T(e){return u&&y(e,p)}function B(e){return c&&y(e,b)}t.isSharedArrayBuffer=A,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===f(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===f(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===f(e)},t.isGeneratorObject=function(e){return"[object Generator]"===f(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===f(e)},t.isNumberObject=E,t.isStringObject=M,t.isBooleanObject=j,t.isBigIntObject=T,t.isSymbolObject=B,t.isBoxedPrimitive=function(e){return E(e)||M(e)||j(e)||T(e)||B(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(x(e)||A(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},89539:(e,t,r)=>{var n=r(34155),i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},o=/%[sdj%]/g;t.format=function(e){if(!v(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(c(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,i=n.length,a=String(e).replace(o,(function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),s=n[r];r<i;s=n[++r])g(s)||!x(s)?a+=" "+s:a+=" "+c(s);return a},t.deprecate=function(e,r){if(void 0!==n&&!0===n.noDeprecation)return e;if(void 0===n)return function(){return t.deprecate(e,r).apply(this,arguments)};var i=!1;return function(){if(!i){if(n.throwDeprecation)throw new Error(r);n.traceDeprecation?console.trace(r):console.error(r),i=!0}return e.apply(this,arguments)}};var a={},s=/^$/;if(n.env.NODE_DEBUG){var u=n.env.NODE_DEBUG;u=u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+u+"$","i")}function c(e,r){var n={seen:[],stylize:l};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),y(r)?n.showHidden=r:r&&t._extend(n,r),w(n.showHidden)&&(n.showHidden=!1),w(n.depth)&&(n.depth=2),w(n.colors)&&(n.colors=!1),w(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=f),d(n,e,n.depth)}function f(e,t){var r=c.styles[t];return r?"["+c.colors[r][0]+"m"+e+"["+c.colors[r][1]+"m":e}function l(e,t){return e}function d(e,r,n){if(e.customInspect&&r&&P(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return v(i)||(i=d(e,i,n)),i}var o=function(e,t){if(w(t))return e.stylize("undefined","undefined");if(v(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return m(t)?e.stylize(""+t,"number"):y(t)?e.stylize(""+t,"boolean"):g(t)?e.stylize("null","null"):void 0}(e,r);if(o)return o;var a=Object.keys(r),s=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),k(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return h(r);if(0===a.length){if(P(r)){var u=r.name?": "+r.name:"";return e.stylize("[Function"+u+"]","special")}if(_(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(O(r))return e.stylize(Date.prototype.toString.call(r),"date");if(k(r))return h(r)}var c,f="",l=!1,x=["{","}"];return b(r)&&(l=!0,x=["[","]"]),P(r)&&(f=" [Function"+(r.name?": "+r.name:"")+"]"),_(r)&&(f=" "+RegExp.prototype.toString.call(r)),O(r)&&(f=" "+Date.prototype.toUTCString.call(r)),k(r)&&(f=" "+h(r)),0!==a.length||l&&0!=r.length?n<0?_(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),c=l?function(e,t,r,n,i){for(var o=[],a=0,s=t.length;a<s;++a)M(t,String(a))?o.push(p(e,t,r,n,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(p(e,t,r,n,i,!0))})),o}(e,r,n,s,a):a.map((function(t){return p(e,r,n,s,t,l)})),e.seen.pop(),function(e,t,r){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}(c,f,x)):x[0]+f+x[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,r,n,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),M(n,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=g(r)?d(e,u.value,null):d(e,u.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),w(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function b(e){return Array.isArray(e)}function y(e){return"boolean"==typeof e}function g(e){return null===e}function m(e){return"number"==typeof e}function v(e){return"string"==typeof e}function w(e){return void 0===e}function _(e){return x(e)&&"[object RegExp]"===S(e)}function x(e){return"object"==typeof e&&null!==e}function O(e){return x(e)&&"[object Date]"===S(e)}function k(e){return x(e)&&("[object Error]"===S(e)||e instanceof Error)}function P(e){return"function"==typeof e}function S(e){return Object.prototype.toString.call(e)}function A(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!a[e])if(s.test(e)){var r=n.pid;a[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else a[e]=function(){};return a[e]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(55955),t.isArray=b,t.isBoolean=y,t.isNull=g,t.isNullOrUndefined=function(e){return null==e},t.isNumber=m,t.isString=v,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=w,t.isRegExp=_,t.types.isRegExp=_,t.isObject=x,t.isDate=O,t.types.isDate=O,t.isError=k,t.types.isNativeError=k,t.isFunction=P,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(20384);var E=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function M(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;console.log("%s - %s",(r=[A((e=new Date).getHours()),A(e.getMinutes()),A(e.getSeconds())].join(":"),[e.getDate(),E[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(35717),t._extend=function(e,t){if(!t||!x(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var j="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function T(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(j&&e[j]){var t;if("function"!=typeof(t=e[j]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,j,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise((function(e,n){t=e,r=n})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(e,n){e?r(e):t(n)}));try{e.apply(this,i)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),j&&Object.defineProperty(t,j,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,i(e))},t.promisify.custom=j,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var i=t.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var o=this,a=function(){return i.apply(o,arguments)};e.apply(this,t).then((function(e){n.nextTick(a.bind(null,null,e))}),(function(e){n.nextTick(T.bind(null,e,a))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,i(e)),t}},37918:e=>{window,e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=252)}([function(e,t,r){"use strict";e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";(function(e){var n=r(262),i=r(263),o=r(130);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,r){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return l(this,e)}return c(this,e,t,r)}function c(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n),u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=d(e,t),e}(e,t,r,n):"string"==typeof t?function(e,t,r){if("string"==typeof r&&""!==r||(r="utf8"),!u.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|p(t,r),i=(e=s(e,n)).write(t,r);return i!==n&&(e=e.slice(0,i)),e}(e,t,r):function(e,t){if(u.isBuffer(t)){var r=0|h(t.length);return 0===(e=s(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?s(e,0):d(e,t);if("Buffer"===t.type&&o(t.data))return d(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function f(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function l(e,t){if(f(t),e=s(e,t<0?0:0|h(t)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function d(e,t){var r=t.length<0?0:0|h(t.length);e=s(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function h(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(u.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 H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return F(e).length;default:if(n)return H(e).length;t=(""+t).toLowerCase(),n=!0}}function b(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 M(this,t,r);case"utf8":case"utf-8":return S(this,t,r);case"ascii":return A(this,t,r);case"latin1":case"binary":return E(this,t,r);case"base64":return P(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function y(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function g(e,t,r,n,i){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=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:m(e,t,r,n,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function m(e,t,r,n,i){var o,a=1,s=e.length,u=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;a=2,s/=2,u/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var f=-1;for(o=r;o<s;o++)if(c(e,o)===c(t,-1===f?0:o-f)){if(-1===f&&(f=o),o-f+1===u)return f*a}else-1!==f&&(o-=o-f),f=-1}else for(r+u>s&&(r=s-u),o=r;o>=0;o--){for(var l=!0,d=0;d<u;d++)if(c(e,o+d)!==c(t,d)){l=!1;break}if(l)return o}return-1}function v(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[r+a]=s}return a}function w(e,t,r,n){return V(H(t,e.length-r),e,r,n)}function _(e,t,r,n){return V(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function x(e,t,r,n){return _(e,t,r,n)}function O(e,t,r,n){return V(F(t),e,r,n)}function k(e,t,r,n){return V(function(e,t){for(var r,n,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=(r=e.charCodeAt(a))>>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function P(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function S(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,a,s,u,c=e[i],f=null,l=c>239?4:c>223?3:c>191?2:1;if(i+l<=r)switch(l){case 1:c<128&&(f=c);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(f=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(f=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(f=u)}null===f?(f=65533,l=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=l}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return r}(n)}function A(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function E(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function M(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=D(e[o]);return i}function j(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function T(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function B(e,t,r,n,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function I(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i<o;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function N(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i<o;++i)e[r+i]=t>>>8*(n?i:3-i)&255}function R(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function C(e,t,r,n,o){return o||R(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function U(e,t,r,n,o){return o||R(e,0,r,8),i.write(e,t,r,n,52,8),r+8}t.Buffer=u,t.SlowBuffer=function(e){return+e!=e&&(e=0),u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,r){return c(null,e,t,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,r){return function(e,t,r,n){return f(t),t<=0?s(e,t):void 0!==r?"string"==typeof n?s(e,t).fill(r,n):s(e,t).fill(r):s(e,t)}(null,e,t,r)},u.allocUnsafe=function(e){return l(null,e)},u.allocUnsafeSlow=function(e){return l(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=u.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var a=e[r];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},u.byteLength=p,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)y(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?S(this,0,e):b.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,r,n,i){if(!u.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===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),c=this.slice(n,i),f=e.slice(t,r),l=0;l<s;++l)if(c[l]!==f[l]){o=c[l],a=f[l];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},u.prototype.indexOf=function(e,t,r){return g(this,e,t,r,!0)},u.prototype.lastIndexOf=function(e,t,r){return g(this,e,t,r,!1)},u.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return v(this,e,t,r);case"utf8":case"utf-8":return w(this,e,t,r);case"ascii":return _(this,e,t,r);case"latin1":case"binary":return x(this,e,t,r);case"base64":return O(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},u.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),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=u.prototype;else{var i=t-e;r=new u(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+e]}return r},u.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||T(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},u.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||T(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},u.prototype.readUInt8=function(e,t){return t||T(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||T(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||T(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||T(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||T(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||T(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||T(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||T(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||T(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||T(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||T(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){e=+e,t|=0,r|=0,n||B(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},u.prototype.writeUIntBE=function(e,t,r,n){e=+e,t|=0,r|=0,n||B(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||B(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||B(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||B(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||B(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):N(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||B(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);B(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);B(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||B(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||B(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||B(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||B(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):N(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||B(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return C(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return C(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return U(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return U(this,e,t,!1,r)},u.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<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=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<n-r&&(n=e.length-t+r);var i,o=n-r;if(this===e&&r<t&&t<n)for(i=o-1;i>=0;--i)e[i+t]=this[i+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+o),t);return o},u.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{var a=u.isBuffer(e)?e:H(new u(e,n).toString()),s=a.length;for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var L=/[^+\/0-9A-Za-z-_]/g;function D(e){return e<16?"0"+e.toString(16):e.toString(16)}function H(e,t){var r;t=t||1/0;for(var n=e.length,i=null,o=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.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;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function F(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(L,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}}).call(this,r(7))},function(e,t,r){"use strict";function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";"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(e){var t=r(0)(r(2));!function(e,n){function i(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 a(e,t,r){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var s;"object"===(0,t.default)(e)?e.exports=a:(void 0).BN=a,a.BN=a,a.wordSize=26;try{s="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(259).Buffer}catch(e){}function u(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void i(!1,"Invalid character in "+e)}function c(e,t,r){var n=u(e,r);return r-1>=t&&(n|=u(e,r-1)<<4),n}function f(e,t,r,n){for(var o=0,a=0,s=Math.min(e.length,r),u=t;u<s;u++){var c=e.charCodeAt(u)-48;o*=n,a=c>=49?c-49+10:c>=17?c-17+10:c,i(c>=0&&a<n,"Invalid character"),o+=a}return o}function l(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(a.isBN=function(e){return e instanceof a||null!==e&&"object"===(0,t.default)(e)&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,r,n){if("number"==typeof e)return this._initNumber(e,r,n);if("object"===(0,t.default)(e))return this._initArray(e,r,n);"hex"===r&&(r=16),i(r===(0|r)&&r>=2&&r<=36);var o=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(o++,this.negative=1),o<e.length&&(16===r?this._parseHex(e,o,n):(this._parseBase(e,r,o),"le"===n&&this._initArray(this.toArray(),r,n)))},a.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(i(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},a.prototype._initArray=function(e,t,r){if(i("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var o,a,s=0;if("be"===r)for(n=e.length-1,o=0;n>=0;n-=3)a=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(n=0,o=0;n<e.length;n+=3)a=e[n]|e[n+1]<<8|e[n+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},a.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,a=0;if("be"===r)for(n=e.length-1;n>=t;n-=2)i=c(e,t,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(e.length-t)%2==0?t+1:t;n<e.length;n+=2)i=c(e,t,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,u=0,c=r;c<s;c+=n)u=f(e,c,c+n,t),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var l=1;for(u=f(e,c,e.length,t),c=0;c<a;c++)l*=t;this.imuln(l),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},a.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},a.prototype._move=function(e){l(e,this)},a.prototype.clone=function(){var e=new a(null);return this.copy(e),e},a.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},a.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=d}catch(e){a.prototype.inspect=d}else a.prototype.inspect=d;function d(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[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],b=[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 y(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var f=u>>>26,l=67108863&u,d=Math.min(c,t.length-1),h=Math.max(0,c-e.length+1);h<=d;h++){var p=c-h|0;f+=(a=(i=0|e.words[p])*(o=0|t.words[h])+l)/67108864|0,l=67108863&a}r.words[c]=0|l,u=0|f}return 0!==u?r.words[c]=0|u:r.length--,r._strip()}a.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var n=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<n|o)).toString(16);o=s>>>24-n&16777215,(n+=2)>=26&&(n-=26,a--),r=0!==o||a!==this.length-1?h[6-u.length]+u+r:u+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var c=p[e],f=b[e];r="";var l=this.clone();for(l.negative=0;!l.isZero();){var d=l.modrn(f).toString(e);r=(l=l.idivn(f)).isZero()?d+r:h[c-d.length]+d+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},a.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&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16,2)},s&&(a.prototype.toBuffer=function(e,t){return this.toArrayLike(s,e,t)}),a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){this._strip();var n=this.byteLength(),o=r||Math.max(1,n);i(n<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,n),a},a.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;e[r++]=255&a,r<e.length&&(e[r++]=a>>8&255),r<e.length&&(e[r++]=a>>16&255),6===o?(r<e.length&&(e[r++]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r<e.length)for(e[r++]=n;r<e.length;)e[r++]=0},a.prototype._toArrayLikeBE=function(e,t){for(var r=e.length-1,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;e[r--]=255&a,r>=0&&(e[r--]=a>>8&255),r>=0&&(e[r--]=a>>16&255),6===o?(r>=0&&(e[r--]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?a.prototype._countBits=function(e){return 32-Math.clz32(e)}:a.prototype._countBits=function(e){var t=e,r=0;return t>=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},a.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},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},a.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},a.prototype.ior=function(e){return i(0==(this.negative|e.negative)),this.iuor(e)},a.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this._strip()},a.prototype.iand=function(e){return i(0==(this.negative|e.negative)),this.iuand(e)},a.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this._strip()},a.prototype.ixor=function(e){return i(0==(this.negative|e.negative)),this.iuxor(e)},a.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n<t;n++)this.words[n]=67108863&~this.words[n];return r>0&&(this.words[n]=~this.words[n]&67108863>>26-r),this._strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<n:this.words[r]&~(1<<n),this._strip()},a.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},a.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},a.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 r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a<n.length;a++)o=(t=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&t;for(;0!==o&&a<r.length;a++)o=(t=(0|r.words[a])+o)>>26,this.words[a]=67108863&t;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this._strip()},a.prototype.sub=function(e){return this.clone().isub(e)};var g=function(e,t,r){var n,i,o,a=e.words,s=t.words,u=r.words,c=0,f=0|a[0],l=8191&f,d=f>>>13,h=0|a[1],p=8191&h,b=h>>>13,y=0|a[2],g=8191&y,m=y>>>13,v=0|a[3],w=8191&v,_=v>>>13,x=0|a[4],O=8191&x,k=x>>>13,P=0|a[5],S=8191&P,A=P>>>13,E=0|a[6],M=8191&E,j=E>>>13,T=0|a[7],B=8191&T,I=T>>>13,N=0|a[8],R=8191&N,C=N>>>13,U=0|a[9],L=8191&U,D=U>>>13,H=0|s[0],F=8191&H,V=H>>>13,z=0|s[1],q=8191&z,K=z>>>13,W=0|s[2],G=8191&W,X=W>>>13,Z=0|s[3],J=8191&Z,Y=Z>>>13,Q=0|s[4],$=8191&Q,ee=Q>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,fe=0|s[8],le=8191&fe,de=fe>>>13,he=0|s[9],pe=8191&he,be=he>>>13;r.negative=e.negative^t.negative,r.length=19;var ye=(c+(n=Math.imul(l,F))|0)+((8191&(i=(i=Math.imul(l,V))+Math.imul(d,F)|0))<<13)|0;c=((o=Math.imul(d,V))+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(p,F),i=(i=Math.imul(p,V))+Math.imul(b,F)|0,o=Math.imul(b,V);var ge=(c+(n=n+Math.imul(l,q)|0)|0)+((8191&(i=(i=i+Math.imul(l,K)|0)+Math.imul(d,q)|0))<<13)|0;c=((o=o+Math.imul(d,K)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(g,F),i=(i=Math.imul(g,V))+Math.imul(m,F)|0,o=Math.imul(m,V),n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(b,q)|0,o=o+Math.imul(b,K)|0;var me=(c+(n=n+Math.imul(l,G)|0)|0)+((8191&(i=(i=i+Math.imul(l,X)|0)+Math.imul(d,G)|0))<<13)|0;c=((o=o+Math.imul(d,X)|0)+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(w,F),i=(i=Math.imul(w,V))+Math.imul(_,F)|0,o=Math.imul(_,V),n=n+Math.imul(g,q)|0,i=(i=i+Math.imul(g,K)|0)+Math.imul(m,q)|0,o=o+Math.imul(m,K)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(b,G)|0,o=o+Math.imul(b,X)|0;var ve=(c+(n=n+Math.imul(l,J)|0)|0)+((8191&(i=(i=i+Math.imul(l,Y)|0)+Math.imul(d,J)|0))<<13)|0;c=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(O,F),i=(i=Math.imul(O,V))+Math.imul(k,F)|0,o=Math.imul(k,V),n=n+Math.imul(w,q)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(_,q)|0,o=o+Math.imul(_,K)|0,n=n+Math.imul(g,G)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(m,G)|0,o=o+Math.imul(m,X)|0,n=n+Math.imul(p,J)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(b,J)|0,o=o+Math.imul(b,Y)|0;var we=(c+(n=n+Math.imul(l,$)|0)|0)+((8191&(i=(i=i+Math.imul(l,ee)|0)+Math.imul(d,$)|0))<<13)|0;c=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(S,F),i=(i=Math.imul(S,V))+Math.imul(A,F)|0,o=Math.imul(A,V),n=n+Math.imul(O,q)|0,i=(i=i+Math.imul(O,K)|0)+Math.imul(k,q)|0,o=o+Math.imul(k,K)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(g,J)|0,i=(i=i+Math.imul(g,Y)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,Y)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,ee)|0;var _e=(c+(n=n+Math.imul(l,re)|0)|0)+((8191&(i=(i=i+Math.imul(l,ne)|0)+Math.imul(d,re)|0))<<13)|0;c=((o=o+Math.imul(d,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(M,F),i=(i=Math.imul(M,V))+Math.imul(j,F)|0,o=Math.imul(j,V),n=n+Math.imul(S,q)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul(A,q)|0,o=o+Math.imul(A,K)|0,n=n+Math.imul(O,G)|0,i=(i=i+Math.imul(O,X)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,X)|0,n=n+Math.imul(w,J)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(g,$)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0;var xe=(c+(n=n+Math.imul(l,oe)|0)|0)+((8191&(i=(i=i+Math.imul(l,ae)|0)+Math.imul(d,oe)|0))<<13)|0;c=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(B,F),i=(i=Math.imul(B,V))+Math.imul(I,F)|0,o=Math.imul(I,V),n=n+Math.imul(M,q)|0,i=(i=i+Math.imul(M,K)|0)+Math.imul(j,q)|0,o=o+Math.imul(j,K)|0,n=n+Math.imul(S,G)|0,i=(i=i+Math.imul(S,X)|0)+Math.imul(A,G)|0,o=o+Math.imul(A,X)|0,n=n+Math.imul(O,J)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,Y)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(g,re)|0,i=(i=i+Math.imul(g,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0;var Oe=(c+(n=n+Math.imul(l,ue)|0)|0)+((8191&(i=(i=i+Math.imul(l,ce)|0)+Math.imul(d,ue)|0))<<13)|0;c=((o=o+Math.imul(d,ce)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(R,F),i=(i=Math.imul(R,V))+Math.imul(C,F)|0,o=Math.imul(C,V),n=n+Math.imul(B,q)|0,i=(i=i+Math.imul(B,K)|0)+Math.imul(I,q)|0,o=o+Math.imul(I,K)|0,n=n+Math.imul(M,G)|0,i=(i=i+Math.imul(M,X)|0)+Math.imul(j,G)|0,o=o+Math.imul(j,X)|0,n=n+Math.imul(S,J)|0,i=(i=i+Math.imul(S,Y)|0)+Math.imul(A,J)|0,o=o+Math.imul(A,Y)|0,n=n+Math.imul(O,$)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(g,oe)|0,i=(i=i+Math.imul(g,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(b,ue)|0,o=o+Math.imul(b,ce)|0;var ke=(c+(n=n+Math.imul(l,le)|0)|0)+((8191&(i=(i=i+Math.imul(l,de)|0)+Math.imul(d,le)|0))<<13)|0;c=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(L,F),i=(i=Math.imul(L,V))+Math.imul(D,F)|0,o=Math.imul(D,V),n=n+Math.imul(R,q)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(C,q)|0,o=o+Math.imul(C,K)|0,n=n+Math.imul(B,G)|0,i=(i=i+Math.imul(B,X)|0)+Math.imul(I,G)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(M,J)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(j,J)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(S,$)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,ee)|0,n=n+Math.imul(O,re)|0,i=(i=i+Math.imul(O,ne)|0)+Math.imul(k,re)|0,o=o+Math.imul(k,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(g,ue)|0,i=(i=i+Math.imul(g,ce)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,ce)|0,n=n+Math.imul(p,le)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(b,le)|0,o=o+Math.imul(b,de)|0;var Pe=(c+(n=n+Math.imul(l,pe)|0)|0)+((8191&(i=(i=i+Math.imul(l,be)|0)+Math.imul(d,pe)|0))<<13)|0;c=((o=o+Math.imul(d,be)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(L,q),i=(i=Math.imul(L,K))+Math.imul(D,q)|0,o=Math.imul(D,K),n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,X)|0)+Math.imul(C,G)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(B,J)|0,i=(i=i+Math.imul(B,Y)|0)+Math.imul(I,J)|0,o=o+Math.imul(I,Y)|0,n=n+Math.imul(M,$)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(j,$)|0,o=o+Math.imul(j,ee)|0,n=n+Math.imul(S,re)|0,i=(i=i+Math.imul(S,ne)|0)+Math.imul(A,re)|0,o=o+Math.imul(A,ne)|0,n=n+Math.imul(O,oe)|0,i=(i=i+Math.imul(O,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,ce)|0,n=n+Math.imul(g,le)|0,i=(i=i+Math.imul(g,de)|0)+Math.imul(m,le)|0,o=o+Math.imul(m,de)|0;var Se=(c+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,be)|0)+Math.imul(b,pe)|0))<<13)|0;c=((o=o+Math.imul(b,be)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(L,G),i=(i=Math.imul(L,X))+Math.imul(D,G)|0,o=Math.imul(D,X),n=n+Math.imul(R,J)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,Y)|0,n=n+Math.imul(B,$)|0,i=(i=i+Math.imul(B,ee)|0)+Math.imul(I,$)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(M,re)|0,i=(i=i+Math.imul(M,ne)|0)+Math.imul(j,re)|0,o=o+Math.imul(j,ne)|0,n=n+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,ae)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,ae)|0,n=n+Math.imul(O,ue)|0,i=(i=i+Math.imul(O,ce)|0)+Math.imul(k,ue)|0,o=o+Math.imul(k,ce)|0,n=n+Math.imul(w,le)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(_,le)|0,o=o+Math.imul(_,de)|0;var Ae=(c+(n=n+Math.imul(g,pe)|0)|0)+((8191&(i=(i=i+Math.imul(g,be)|0)+Math.imul(m,pe)|0))<<13)|0;c=((o=o+Math.imul(m,be)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(L,J),i=(i=Math.imul(L,Y))+Math.imul(D,J)|0,o=Math.imul(D,Y),n=n+Math.imul(R,$)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(B,re)|0,i=(i=i+Math.imul(B,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(M,oe)|0,i=(i=i+Math.imul(M,ae)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,ae)|0,n=n+Math.imul(S,ue)|0,i=(i=i+Math.imul(S,ce)|0)+Math.imul(A,ue)|0,o=o+Math.imul(A,ce)|0,n=n+Math.imul(O,le)|0,i=(i=i+Math.imul(O,de)|0)+Math.imul(k,le)|0,o=o+Math.imul(k,de)|0;var Ee=(c+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,be)|0)+Math.imul(_,pe)|0))<<13)|0;c=((o=o+Math.imul(_,be)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(L,$),i=(i=Math.imul(L,ee))+Math.imul(D,$)|0,o=Math.imul(D,ee),n=n+Math.imul(R,re)|0,i=(i=i+Math.imul(R,ne)|0)+Math.imul(C,re)|0,o=o+Math.imul(C,ne)|0,n=n+Math.imul(B,oe)|0,i=(i=i+Math.imul(B,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,n=n+Math.imul(M,ue)|0,i=(i=i+Math.imul(M,ce)|0)+Math.imul(j,ue)|0,o=o+Math.imul(j,ce)|0,n=n+Math.imul(S,le)|0,i=(i=i+Math.imul(S,de)|0)+Math.imul(A,le)|0,o=o+Math.imul(A,de)|0;var Me=(c+(n=n+Math.imul(O,pe)|0)|0)+((8191&(i=(i=i+Math.imul(O,be)|0)+Math.imul(k,pe)|0))<<13)|0;c=((o=o+Math.imul(k,be)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(L,re),i=(i=Math.imul(L,ne))+Math.imul(D,re)|0,o=Math.imul(D,ne),n=n+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,ae)|0,n=n+Math.imul(B,ue)|0,i=(i=i+Math.imul(B,ce)|0)+Math.imul(I,ue)|0,o=o+Math.imul(I,ce)|0,n=n+Math.imul(M,le)|0,i=(i=i+Math.imul(M,de)|0)+Math.imul(j,le)|0,o=o+Math.imul(j,de)|0;var je=(c+(n=n+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,be)|0)+Math.imul(A,pe)|0))<<13)|0;c=((o=o+Math.imul(A,be)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(L,oe),i=(i=Math.imul(L,ae))+Math.imul(D,oe)|0,o=Math.imul(D,ae),n=n+Math.imul(R,ue)|0,i=(i=i+Math.imul(R,ce)|0)+Math.imul(C,ue)|0,o=o+Math.imul(C,ce)|0,n=n+Math.imul(B,le)|0,i=(i=i+Math.imul(B,de)|0)+Math.imul(I,le)|0,o=o+Math.imul(I,de)|0;var Te=(c+(n=n+Math.imul(M,pe)|0)|0)+((8191&(i=(i=i+Math.imul(M,be)|0)+Math.imul(j,pe)|0))<<13)|0;c=((o=o+Math.imul(j,be)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(L,ue),i=(i=Math.imul(L,ce))+Math.imul(D,ue)|0,o=Math.imul(D,ce),n=n+Math.imul(R,le)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(C,le)|0,o=o+Math.imul(C,de)|0;var Be=(c+(n=n+Math.imul(B,pe)|0)|0)+((8191&(i=(i=i+Math.imul(B,be)|0)+Math.imul(I,pe)|0))<<13)|0;c=((o=o+Math.imul(I,be)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(L,le),i=(i=Math.imul(L,de))+Math.imul(D,le)|0,o=Math.imul(D,de);var Ie=(c+(n=n+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,be)|0)+Math.imul(C,pe)|0))<<13)|0;c=((o=o+Math.imul(C,be)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863;var Ne=(c+(n=Math.imul(L,pe))|0)+((8191&(i=(i=Math.imul(L,be))+Math.imul(D,pe)|0))<<13)|0;return c=((o=Math.imul(D,be))+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,u[0]=ye,u[1]=ge,u[2]=me,u[3]=ve,u[4]=we,u[5]=_e,u[6]=xe,u[7]=Oe,u[8]=ke,u[9]=Pe,u[10]=Se,u[11]=Ae,u[12]=Ee,u[13]=Me,u[14]=je,u[15]=Te,u[16]=Be,u[17]=Ie,u[18]=Ne,0!==c&&(u[19]=c,r.length++),r};function m(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,u=Math.min(o,t.length-1),c=Math.max(0,o-e.length+1);c<=u;c++){var f=o-c,l=(0|e.words[f])*(0|t.words[c]),d=67108863&l;s=67108863&(d=d+s|0),i+=(a=(a=a+(l/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function v(e,t,r){return m(e,t,r)}function w(e,t){this.x=e,this.y=t}Math.imul||(g=y),a.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?g(this,e,t):r<63?y(this,e,t):r<1024?m(this,e,t):v(this,e,t)},w.prototype.makeRBT=function(e){for(var t=new Array(e),r=a.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},w.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},w.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a<o;a++)n[a]=t[e[a]],i[a]=r[e[a]]},w.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),f=0;f<i;f+=s)for(var l=u,d=c,h=0;h<a;h++){var p=r[f+h],b=n[f+h],y=r[f+h+a],g=n[f+h+a],m=l*y-d*g;g=l*g+d*y,y=m,r[f+h]=p+y,n[f+h]=b+g,r[f+h+a]=p-y,n[f+h+a]=b-g,h!==s&&(m=u*l-c*d,d=u*d+c*l,l=m)}},w.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},w.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},w.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},w.prototype.convert13b=function(e,t,r,n){for(var o=0,a=0;a<t;a++)o+=0|e[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<n;++a)r[a]=0;i(0===o),i(0==(-8192&o))},w.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},w.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),c=new Array(n),f=new Array(n),l=new Array(n),d=r.words;d.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,c,n),this.transform(a,o,s,u,n,i),this.transform(c,o,f,l,n,i);for(var h=0;h<n;h++){var p=s[h]*f[h]-u[h]*l[h];u[h]=s[h]*l[h]+u[h]*f[h],s[h]=p}return this.conjugate(s,u,n),this.transform(s,u,d,o,n,i),this.conjugate(d,o,n),this.normalize13b(d,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r._strip()},a.prototype.mul=function(e){var t=new a(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},a.prototype.mulf=function(e){var t=new a(null);return t.words=new Array(this.length+e.length),v(this,e,t)},a.prototype.imul=function(e){return this.clone().mulTo(e,this)},a.prototype.imuln=function(e){var t=e<0;t&&(e=-e),i("number"==typeof e),i(e<67108864);for(var r=0,n=0;n<this.length;n++){var o=(0|this.words[n])*e,a=(67108863&o)+(67108863&r);r>>=26,r+=o/67108864|0,r+=a>>>26,this.words[n]=67108863&a}return 0!==r&&(this.words[n]=r,this.length++),t?this.ineg():this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=e.words[n]>>>i&1}return t}(e);if(0===t.length)return new a(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},a.prototype.iushln=function(e){i("number"==typeof e&&e>=0);var t,r=e%26,n=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,u=(0|this.words[t])-s<<r;this.words[t]=u|a,a=s>>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t<n;t++)this.words[t]=0;this.length+=n}return this._strip()},a.prototype.ishln=function(e){return i(0===this.negative),this.iushln(e)},a.prototype.iushrn=function(e,t,r){var n;i("number"==typeof e&&e>=0),n=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o,u=r;if(n-=a,n=Math.max(0,n),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var f=0;for(c=this.length-1;c>=0&&(0!==f||c>=n);c--){var l=0|this.words[c];this.words[c]=f<<26-o|l>>>o,f=l&s}return u&&0!==f&&(u.words[u.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(e,t,r){return i(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){i("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,n=1<<t;return!(this.length<=r||!(this.words[r]&n))},a.prototype.imaskn=function(e){i("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var n=67108863^67108863>>>t<<t;this.words[this.length-1]&=n}return this._strip()},a.prototype.maskn=function(e){return this.clone().imaskn(e)},a.prototype.iaddn=function(e){return i("number"==typeof e),i(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},a.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(i("number"==typeof e),i(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 t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},a.prototype.addn=function(e){return this.clone().iaddn(e)},a.prototype.subn=function(e){return this.clone().isubn(e)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(e,t,r){var n,o,a=e.length+r;this._expand(a);var s=0;for(n=0;n<e.length;n++){o=(0|this.words[n+r])+s;var u=(0|e.words[n])*t;s=((o-=67108863&u)>>26)-(u/67108864|0),this.words[n+r]=67108863&o}for(;n<this.length-r;n++)s=(o=(0|this.words[n+r])+s)>>26,this.words[n+r]=67108863&o;if(0===s)return this._strip();for(i(-1===s),s=0,n=0;n<this.length;n++)s=(o=-(0|this.words[n])+s)>>26,this.words[n]=67108863&o;return this.negative=1,this._strip()},a.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,o=0|i.words[i.length-1];0!=(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==t){(s=new a(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var f=n.clone()._ishlnsubmul(i,1,u);0===f.negative&&(n=f,s&&(s.words[u]=1));for(var l=u-1;l>=0;l--){var d=67108864*(0|n.words[i.length+l])+(0|n.words[i.length+l-1]);for(d=Math.min(d/o|0,67108863),n._ishlnsubmul(i,d,l);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,l),n.isZero()||(n.negative^=1);s&&(s.words[l]=d)}return s&&s._strip(),n._strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},a.prototype.divmod=function(e,t,r){return i(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(n=s.div.neg()),"div"!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.iadd(e)),{div:n,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modrn(e.words[0]))}:this._wordDiv(e,t);var n,o,s},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.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),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modrn=function(e){var t=e<0;t&&(e=-e),i(e<=67108863);for(var r=(1<<26)%e,n=0,o=this.length-1;o>=0;o--)n=(r*n+(0|this.words[o]))%e;return t?-n:n},a.prototype.modn=function(e){return this.modrn(e)},a.prototype.idivn=function(e){var t=e<0;t&&(e=-e),i(e<=67108863);for(var r=0,n=this.length-1;n>=0;n--){var o=(0|this.words[n])+67108864*r;this.words[n]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new a(1),o=new a(0),s=new a(0),u=new a(1),c=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++c;for(var f=r.clone(),l=t.clone();!t.isZero();){for(var d=0,h=1;0==(t.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(n.isOdd()||o.isOdd())&&(n.iadd(f),o.isub(l)),n.iushrn(1),o.iushrn(1);for(var p=0,b=1;0==(r.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(f),u.isub(l)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(s),o.isub(u)):(r.isub(t),s.isub(n),u.isub(o))}return{a:s,b:u,gcd:r.iushln(c)}},a.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,o=new a(1),s=new a(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,f=1;0==(t.words[0]&f)&&c<26;++c,f<<=1);if(c>0)for(t.iushrn(c);c-- >0;)o.isOdd()&&o.iadd(u),o.iushrn(1);for(var l=0,d=1;0==(r.words[0]&d)&&l<26;++l,d<<=1);if(l>0)for(r.iushrn(l);l-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),o.isub(s)):(r.isub(t),s.isub(o))}return(n=0===t.cmpn(1)?o:s).cmpn(0)<0&&n.iadd(e),n},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=n,this;for(var o=n,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.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),i(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:n<e?-1:1}return 0!==this.negative?0|-t:t},a.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},a.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new A(e)},a.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var _={k256:null,p224:null,p192:null,p25519:null};function x(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function O(){x.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function k(){x.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function P(){x.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){x.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){A.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}x.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},x.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=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},x.prototype.split=function(e,t){e.iushrn(this.n,0,t)},x.prototype.imulK=function(e){return e.imul(this.k)},o(O,x),O.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n<r;n++)t.words[n]=e.words[n];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,n=10;n<e.length;n++){var o=0|e.words[n];e.words[n-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},O.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},o(k,x),o(P,x),o(S,x),S.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(_[e])return _[e];var t;if("k256"===e)t=new O;else if("p224"===e)t=new k;else if("p192"===e)t=new P;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new S}return _[e]=t,t},A.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},A.prototype._verify2=function(e,t){i(0==(e.negative|t.negative),"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},A.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(l(e,e.umod(this.m)._forceRed(this)),e)},A.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},A.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},A.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},A.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},A.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},A.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},A.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},A.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},A.prototype.isqr=function(e){return this.imul(e,e.clone())},A.prototype.sqr=function(e){return this.mul(e,e)},A.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(i(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),o=0;!n.isZero()&&0===n.andln(1);)o++,n.iushrn(1);i(!n.isZero());var s=new a(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new a(2*f*f).toRed(this);0!==this.pow(f,c).cmp(u);)f.redIAdd(u);for(var l=this.pow(f,n),d=this.pow(e,n.addn(1).iushrn(1)),h=this.pow(e,n),p=o;0!==h.cmp(s);){for(var b=h,y=0;0!==b.cmp(s);y++)b=b.redSqr();i(y<p);var g=this.pow(l,new a(1).iushln(p-y-1));d=d.redMul(g),l=g.redSqr(),h=h.redMul(l),p=y}return d},A.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},A.prototype.pow=function(e,t){if(t.isZero())return new a(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new a(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],o=0,s=0,u=t.bitLength()%26;for(0===u&&(u=26),n=t.length-1;n>=0;n--){for(var c=t.words[n],f=u-1;f>=0;f--){var l=c>>f&1;i!==r[0]&&(i=this.sqr(i)),0!==l||0!==o?(o<<=1,o|=l,(4==++s||0===n&&0===f)&&(i=this.mul(i,r[o]),s=0,o=0)):s=0}u=26}return i},A.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},A.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new E(e)},o(E,A),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e)}).call(this,r(35)(e))},function(e,t,r){"use strict";var n=r(1),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(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 i(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){"use strict";var n,i,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function u(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(e){i=s}}();var c,f=[],l=!1,d=-1;function h(){l&&c&&(l=!1,c.length?f=c.concat(f):d=-1,f.length&&p())}function p(){if(!l){var e=u(h);l=!0;for(var t=f.length;t;){for(c=f,f=[];++d<t;)c&&c[d].run();d=-1,t=f.length}c=null,l=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function b(e,t){this.fun=e,this.array=t}function y(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];f.push(new b(e,t)),1!==f.length||l||u(p)},b.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=y,o.addListener=y,o.once=y,o.off=y,o.removeListener=y,o.removeAllListeners=y,o.emit=y,o.prependListener=y,o.prependOnceListener=y,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,r){"use strict";var n,i=r(0)(r(2));n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":(0,i.default)(window))&&(n=window)}e.exports=n},function(e,t,r){"use strict";e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";"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";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayify=l,t.concat=d,t.hexConcat=function(e){var t="0x";return e.forEach((function(e){t+=b(e).substring(2)})),t},t.hexDataLength=function(e){if("string"!=typeof e)e=b(e);else if(!p(e)||e.length%2)return null;return(e.length-2)/2},t.hexDataSlice=function(e,t,r){return"string"!=typeof e?e=b(e):(!p(e)||e.length%2)&&o.throwArgumentError("invalid hexData","value",e),t=2+2*t,null!=r?"0x"+e.substring(t,2+2*r):"0x"+e.substring(t)},t.hexStripZeros=y,t.hexValue=function(e){var t=y(b(e,{hexPad:"left"}));return"0x"===t?"0x0":t},t.hexZeroPad=g,t.hexlify=b,t.isBytes=f,t.isBytesLike=u,t.isHexString=p,t.joinSignature=function(e){return b(d([(e=m(e)).r,e.s,e.recoveryParam?"0x1c":"0x1b"]))},t.splitSignature=m,t.stripZeros=function(e){var t=l(e);if(0===t.length)return t;for(var r=0;r<t.length&&0===t[r];)r++;return r&&(t=t.slice(r)),t},t.zeroPad=h;var n=r(16),i=r(361),o=new n.Logger(i.version);function a(e){return!!e.toHexString}function s(e){return e.slice||(e.slice=function(){var t=Array.prototype.slice.call(arguments);return s(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function u(e){return p(e)&&!(e.length%2)||f(e)}function c(e){return"number"==typeof e&&e==e&&e%1==0}function f(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"==typeof e)return!1;if(!c(e.length)||e.length<0)return!1;for(var t=0;t<e.length;t++){var r=e[t];if(!c(r)||r<0||r>=256)return!1}return!0}function l(e,t){if(t||(t={}),"number"==typeof e){o.checkSafeUint53(e,"invalid arrayify value");for(var r=[];e;)r.unshift(255&e),e=parseInt(String(e/256));return 0===r.length&&r.push(0),s(new Uint8Array(r))}if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),a(e)&&(e=e.toHexString()),p(e)){var n=e.substring(2);n.length%2&&("left"===t.hexPad?n="0"+n:"right"===t.hexPad?n+="0":o.throwArgumentError("hex data is odd-length","value",e));for(var i=[],u=0;u<n.length;u+=2)i.push(parseInt(n.substring(u,u+2),16));return s(new Uint8Array(i))}return f(e)?s(new Uint8Array(e)):o.throwArgumentError("invalid arrayify value","value",e)}function d(e){var t=e.map((function(e){return l(e)})),r=t.reduce((function(e,t){return e+t.length}),0),n=new Uint8Array(r);return t.reduce((function(e,t){return n.set(t,e),e+t.length}),0),s(n)}function h(e,t){(e=l(e)).length>t&&o.throwArgumentError("value out of range","value",arguments[0]);var r=new Uint8Array(t);return r.set(e,t-e.length),s(r)}function p(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}function b(e,t){if(t||(t={}),"number"==typeof e){o.checkSafeUint53(e,"invalid hexlify value");for(var r="";e;)r="0123456789abcdef"[15&e]+r,e=Math.floor(e/16);return r.length?(r.length%2&&(r="0"+r),"0x"+r):"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),a(e))return e.toHexString();if(p(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":o.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(f(e)){for(var n="0x",i=0;i<e.length;i++){var s=e[i];n+="0123456789abcdef"[(240&s)>>4]+"0123456789abcdef"[15&s]}return n}return o.throwArgumentError("invalid hexlify value","value",e)}function y(e){"string"!=typeof e&&(e=b(e)),p(e)||o.throwArgumentError("invalid hex string","value",e),e=e.substring(2);for(var t=0;t<e.length&&"0"===e[t];)t++;return"0x"+e.substring(t)}function g(e,t){for("string"!=typeof e?e=b(e):p(e)||o.throwArgumentError("invalid hex string","value",e),e.length>2*t+2&&o.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function m(e){var t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(u(e)){var r=l(e);64===r.length?(t.v=27+(r[32]>>7),r[32]&=127,t.r=b(r.slice(0,32)),t.s=b(r.slice(32,64))):65===r.length?(t.r=b(r.slice(0,32)),t.s=b(r.slice(32,64)),t.v=r[64]):o.throwArgumentError("invalid signature string","signature",e),t.v<27&&(0===t.v||1===t.v?t.v+=27:o.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(r[32]|=128),t._vs=b(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){var n=h(l(t._vs),32);t._vs=b(n);var i=n[0]>=128?1:0;null==t.recoveryParam?t.recoveryParam=i:t.recoveryParam!==i&&o.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),n[0]&=127;var a=b(n);null==t.s?t.s=a:t.s!==a&&o.throwArgumentError("signature v mismatch _vs","signature",e)}if(null==t.recoveryParam)null==t.v?o.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{var s=0===t.v||1===t.v?t.v:1-t.v%2;t.recoveryParam!==s&&o.throwArgumentError("signature recoveryParam mismatch v","signature",e)}null!=t.r&&p(t.r)?t.r=g(t.r,32):o.throwArgumentError("signature missing or invalid r","signature",e),null!=t.s&&p(t.s)?t.s=g(t.s,32):o.throwArgumentError("signature missing or invalid s","signature",e);var c=l(t.s);c[0]>=128&&o.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(c[0]|=128);var f=b(c);t._vs&&(p(t._vs)||o.throwArgumentError("signature invalid _vs","signature",e),t._vs=g(t._vs,32)),null==t._vs?t._vs=f:t._vs!==f&&o.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t.yParityAndS=t._vs,t.compact=t.r+t.yParityAndS.substring(2),t}},function(e,t,r){"use strict";var n=r(256),i=r(257);e.exports={errors:n,formatters:i}},function(e,t,r){"use strict";function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";var n=r(142);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&n(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";var n=r(2).default,i=r(143);e.exports=function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.Logger=t.LogLevel=t.ErrorCode=void 0;var i,o,a=n(r(8)),s=n(r(9)),u=r(360),c=!1,f=!1,l={debug:1,default:2,info:2,warning:3,error:4,off:5},d=l.default,h=null,p=function(){try{var e=[];if(["NFD","NFC","NFKD","NFKC"].forEach((function(t){try{if("test"!=="test".normalize(t))throw new Error("bad normalize")}catch(r){e.push(t)}})),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}();t.LogLevel=i,function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"}(i||(t.LogLevel=i={})),t.ErrorCode=o,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",e.ACTION_REJECTED="ACTION_REJECTED"}(o||(t.ErrorCode=o={}));var b="0123456789abcdef",y=function(){function e(t){(0,a.default)(this,e),Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}return(0,s.default)(e,[{key:"_log",value:function(e,t){var r=e.toLowerCase();null==l[r]&&this.throwArgumentError("invalid log level name","logLevel",e),d>l[r]||console.log.apply(console,t)}},{key:"debug",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];this._log(e.levels.DEBUG,r)}},{key:"info",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];this._log(e.levels.INFO,r)}},{key:"warn",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];this._log(e.levels.WARNING,r)}},{key:"makeError",value:function(t,r,n){if(f)return this.makeError("censored error",r,{});r||(r=e.errors.UNKNOWN_ERROR),n||(n={});var i=[];Object.keys(n).forEach((function(e){var t=n[e];try{if(t instanceof Uint8Array){for(var r="",o=0;o<t.length;o++)r+=b[t[o]>>4],r+=b[15&t[o]];i.push(e+"=Uint8Array(0x"+r+")")}else i.push(e+"="+JSON.stringify(t))}catch(t){i.push(e+"="+JSON.stringify(n[e].toString()))}})),i.push("code=".concat(r)),i.push("version=".concat(this.version));var a=t,s="";switch(r){case o.NUMERIC_FAULT:s="NUMERIC_FAULT";var u=t;switch(u){case"overflow":case"underflow":case"division-by-zero":s+="-"+u;break;case"negative-power":case"negative-width":s+="-unsupported";break;case"unbound-bitwise-result":s+="-unbound-result"}break;case o.CALL_EXCEPTION:case o.INSUFFICIENT_FUNDS:case o.MISSING_NEW:case o.NONCE_EXPIRED:case o.REPLACEMENT_UNDERPRICED:case o.TRANSACTION_REPLACED:case o.UNPREDICTABLE_GAS_LIMIT:s=r}s&&(t+=" [ See: https://links.ethers.org/v5-errors-"+s+" ]"),i.length&&(t+=" ("+i.join(", ")+")");var c=new Error(t);return c.reason=a,c.code=r,Object.keys(n).forEach((function(e){c[e]=n[e]})),c}},{key:"throwError",value:function(e,t,r){throw this.makeError(e,t,r)}},{key:"throwArgumentError",value:function(t,r,n){return this.throwError(t,e.errors.INVALID_ARGUMENT,{argument:r,value:n})}},{key:"assert",value:function(e,t,r,n){e||this.throwError(t,r,n)}},{key:"assertArgument",value:function(e,t,r,n){e||this.throwArgumentError(t,r,n)}},{key:"checkNormalize",value:function(t){null==t&&(t="platform missing String.prototype.normalize"),p&&this.throwError("platform missing String.prototype.normalize",e.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:p})}},{key:"checkSafeUint53",value:function(t,r){"number"==typeof t&&(null==r&&(r="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(r,e.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(r,e.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}},{key:"checkArgumentCount",value:function(t,r,n){n=n?": "+n:"",t<r&&this.throwError("missing argument"+n,e.errors.MISSING_ARGUMENT,{count:t,expectedCount:r}),t>r&&this.throwError("too many arguments"+n,e.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:r})}},{key:"checkNew",value:function(t,r){t!==Object&&null!=t||this.throwError("missing new",e.errors.MISSING_NEW,{name:r.name})}},{key:"checkAbstract",value:function(t,r){t===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",e.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):t!==Object&&null!=t||this.throwError("missing new",e.errors.MISSING_NEW,{name:r.name})}}],[{key:"globalLogger",value:function(){return h||(h=new e(u.version)),h}},{key:"setCensorship",value:function(t,r){if(!t&&r&&this.globalLogger().throwError("cannot permanently disable censorship",e.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),c){if(!t)return;this.globalLogger().throwError("error censorship permanent",e.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}f=!!t,c=!!r}},{key:"setLogLevel",value:function(t){var r=l[t.toLowerCase()];null!=r?d=r:e.globalLogger().warn("invalid log level - "+t)}},{key:"from",value:function(t){return new e(t)}}]),e}();t.Logger=y,y.errors=o,y.levels=i},function(e,t,r){"use strict";var n=r(0)(r(2)),i=r(258),o=r(129),a=r(333),s=r(31),u=r(4),c=function e(t,r){var i=[];return r.forEach((function(r){if("object"===(0,n.default)(r.components)){if("tuple"!==r.type.substring(0,5))throw new Error("components found but type is not tuple; report on GitHub");var o="",a=r.type.indexOf("[");a>=0&&(o=r.type.substring(a));var s=e(t,r.components);Array.isArray(s)&&t?i.push("tuple("+s.join(",")+")"+o):t?i.push("("+s+")"):i.push("("+s.join(",")+")"+o)}else i.push(r.type)})),i},f=function(e){if(!o.isHexStrict(e))throw new Error("The parameter must be a valid HEX string.");var t="",r=0,n=e.length;for("0x"===e.substring(0,2)&&(r=2);r<n;r+=2){var i=parseInt(e.slice(r,r+2),16);t+=String.fromCharCode(i)}return t},l=function(e){if(!e)return"0x00";for(var t="",r=0;r<e.length;r++){var n=e.charCodeAt(r).toString(16);t+=n.length<2?"0"+n:n}return"0x"+t},d=function(e){if(e=e?e.toLowerCase():"ether",!i.unitMap[e])throw new Error('This unit "'+e+"\" doesn't exist, please use the one of the following units"+JSON.stringify(i.unitMap,null,2));return e};e.exports={_fireError:function(e,t,r,i,o){return!e||"object"!==(0,n.default)(e)||e instanceof Error||!e.data||((e.data&&"object"===(0,n.default)(e.data)||Array.isArray(e.data))&&(e.data=JSON.stringify(e.data,null,2)),e=e.message+"\n"+e.data),"string"==typeof e&&(e=new Error(e)),"function"==typeof i&&i(e,o),"function"==typeof r&&((t&&"function"==typeof t.listeners&&t.listeners("error").length||"function"==typeof i)&&t.catch((function(){})),setTimeout((function(){r(e)}),1)),t&&"function"==typeof t.emit&&setTimeout((function(){t.emit("error",e,o),t.removeAllListeners()}),1),t},_jsonInterfaceMethodToString:function(e){return e&&"object"===(0,n.default)(e)&&e.name&&-1!==e.name.indexOf("(")?e.name:e.name+"("+c(!1,e.inputs).join(",")+")"},_flattenTypes:c,randomHex:function(e){return"0x"+s(e).toString("hex")},BN:o.BN,isBN:o.isBN,isBigNumber:o.isBigNumber,isHex:o.isHex,isHexStrict:o.isHexStrict,sha3:o.sha3,sha3Raw:o.sha3Raw,keccak256:o.sha3,soliditySha3:a.soliditySha3,soliditySha3Raw:a.soliditySha3Raw,encodePacked:a.encodePacked,isAddress:o.isAddress,checkAddressChecksum:o.checkAddressChecksum,toChecksumAddress:function(e){if(void 0===e)return"";if(!/^(0x)?[0-9a-f]{40}$/i.test(e))throw new Error('Given address "'+e+'" is not a valid Ethereum address.');e=e.toLowerCase().replace(/^0x/i,"");for(var t=o.sha3(e).replace(/^0x/i,""),r="0x",n=0;n<e.length;n++)parseInt(t[n],16)>7?r+=e[n].toUpperCase():r+=e[n];return r},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:f,toAscii:f,asciiToHex:l,fromAscii:l,unitMap:i.unitMap,toWei:function(e,t){if(t=d(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)?i.toWei(e,t):i.toWei(e,t).toString(10)},fromWei:function(e,t){if(t=d(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)?i.fromWei(e,t):i.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(e,t){if(e===t)return 0;if("genesis"!==e&&"earliest"!==e&&0!==e||"genesis"!==t&&"earliest"!==t&&0!==t){if("genesis"===e||"earliest"===e||0===e)return-1;if("genesis"===t||"earliest"===t||0===t)return 1;if("latest"===e||"finalized"===e)return"pending"===t?-1:1;if("latest"===t||"finalized"===t)return"pending"===e?1:-1;if("pending"===e)return 1;if("pending"===t)return-1;if("safe"===e||"safe"===t)return;var r=new u(e),n=new u(t);return r.lt(n)?-1:r.eq(n)?0:1}return 0},toNumber:o.toNumber}},function(e,t,r){"use strict";var n=t,i=r(4),o=r(19),a=r(137);n.assert=o,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 i=1<<t+1,o=e.clone(),a=0;a<n.length;a++){var s,u=o.andln(i-1);o.isOdd()?(s=u>(i>>1)-1?(i>>1)-u:u,o.isubn(s)):s=0,n[a]=s,o.iushrn(1)}return n},n.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n,i=0,o=0;e.cmpn(-i)>0||t.cmpn(-o)>0;){var a,s,u=e.andln(3)+i&3,c=t.andln(3)+o&3;3===u&&(u=-1),3===c&&(c=-1),a=0==(1&u)?0:3!=(n=e.andln(7)+i&7)&&5!==n||2!==c?u:-u,r[0].push(a),s=0==(1&c)?0:3!=(n=t.andln(7)+o&7)&&5!==n||2!==u?c:-c,r[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),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 i(e,"hex","le")}},function(e,t,r){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=n,n.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},function(e,t,r){"use strict";var n,i=r(0)(r(2)),o="object"===("undefined"==typeof Reflect?"undefined":(0,i.default)(Reflect))?Reflect:null,a=o&&"function"==typeof o.apply?o.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};n=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function u(){u.init.call(this)}e.exports=u,e.exports.once=function(e,t){return new Promise((function(r,n){function i(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}m(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&m(e,"error",t,{once:!0})}(e,i)}))},u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0;var c=10;function f(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+(0,i.default)(e))}function l(e){return void 0===e._maxListeners?u.defaultMaxListeners:e._maxListeners}function d(e,t,r,n){var i,o,a,s;if(f(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=l(e))>0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return e}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=h.bind(n);return i.listener=r,n.wrapFn=i,i}function b(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):g(i,i.length)}function y(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function g(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function m(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+(0,i.default)(e));e.addEventListener(t,(function i(o){n.once&&e.removeEventListener(t,i),r(o)}))}}Object.defineProperty(u,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");c=e}}),u.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},u.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},u.prototype.getMaxListeners=function(){return l(this)},u.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,i=this._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)a(u,this,t);else{var c=u.length,f=g(u,c);for(r=0;r<c;++r)a(f[r],this,t)}return!0},u.prototype.addListener=function(e,t){return d(this,e,t,!1)},u.prototype.on=u.prototype.addListener,u.prototype.prependListener=function(e,t){return d(this,e,t,!0)},u.prototype.once=function(e,t){return f(t),this.on(e,p(this,e,t)),this},u.prototype.prependOnceListener=function(e,t){return f(t),this.prependListener(e,p(this,e,t)),this},u.prototype.removeListener=function(e,t){var r,n,i,o,a;if(f(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},u.prototype.off=u.prototype.removeListener,u.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},u.prototype.listeners=function(e){return b(this,e,!0)},u.prototype.rawListeners=function(e){return b(this,e,!1)},u.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):y.call(e,t)},u.prototype.listenerCount=y,u.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},function(e,t,r){"use strict";var n=r(5).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=f,this.end=l,t=3;break;default:return this.write=d,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function f(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function l(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=a(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=a(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=a(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,r){"use strict";var n=t,i=r(4),o=r(41),a=r(236);n.assert=o,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 i=1<<t+1,o=e.clone(),a=0;a<n.length;a++){var s,u=o.andln(i-1);o.isOdd()?(s=u>(i>>1)-1?(i>>1)-u:u,o.isubn(s)):s=0,n[a]=s,o.iushrn(1)}return n},n.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n,i=0,o=0;e.cmpn(-i)>0||t.cmpn(-o)>0;){var a,s,u=e.andln(3)+i&3,c=t.andln(3)+o&3;3===u&&(u=-1),3===c&&(c=-1),a=0==(1&u)?0:3!=(n=e.andln(7)+i&7)&&5!==n||2!==c?u:-u,r[0].push(a),s=0==(1&c)?0:3!=(n=t.andln(7)+o&7)&&5!==n||2!==u?c:-c,r[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),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 i(e,"hex","le")}},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.Writer=t.Reader=t.Coder=void 0,t.checkResultErrors=function(e){var t=[];return function e(r,n){if(Array.isArray(n))for(var i in n){var o=r.slice();o.push(i);try{e(o,n[i])}catch(e){t.push({path:o,error:e})}}}([],e),t};var i=n(r(8)),o=n(r(9)),a=r(11),s=r(33),u=r(40),c=r(16),f=r(64),l=new c.Logger(f.version),d=function(){function e(t,r,n,o){(0,i.default)(this,e),this.name=t,this.type=r,this.localName=n,this.dynamic=o}return(0,o.default)(e,[{key:"_throwError",value:function(e,t){l.throwArgumentError(e,this.localName,t)}}]),e}();t.Coder=d;var h=function(){function e(t){(0,i.default)(this,e),(0,u.defineReadOnly)(this,"wordSize",t||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(t)}return(0,o.default)(e,[{key:"data",get:function(){return(0,a.hexConcat)(this._data)}},{key:"length",get:function(){return this._dataLength}},{key:"_writeData",value:function(e){return this._data.push(e),this._dataLength+=e.length,e.length}},{key:"appendWriter",value:function(e){return this._writeData((0,a.concat)(e._data))}},{key:"writeBytes",value:function(e){var t=(0,a.arrayify)(e),r=t.length%this.wordSize;return r&&(t=(0,a.concat)([t,this._padding.slice(r)])),this._writeData(t)}},{key:"_getValue",value:function(e){var t=(0,a.arrayify)(s.BigNumber.from(e));return t.length>this.wordSize&&l.throwError("value out-of-bounds",c.Logger.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=(0,a.concat)([this._padding.slice(t.length%this.wordSize),t])),t}},{key:"writeValue",value:function(e){return this._writeData(this._getValue(e))}},{key:"writeUpdatableValue",value:function(){var e=this,t=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,function(r){e._data[t]=e._getValue(r)}}}]),e}();t.Writer=h;var p=function(){function e(t,r,n,o){(0,i.default)(this,e),(0,u.defineReadOnly)(this,"_data",(0,a.arrayify)(t)),(0,u.defineReadOnly)(this,"wordSize",r||32),(0,u.defineReadOnly)(this,"_coerceFunc",n),(0,u.defineReadOnly)(this,"allowLoose",o),this._offset=0}return(0,o.default)(e,[{key:"data",get:function(){return(0,a.hexlify)(this._data)}},{key:"consumed",get:function(){return this._offset}},{key:"coerce",value:function(t,r){return this._coerceFunc?this._coerceFunc(t,r):e.coerce(t,r)}},{key:"_peekBytes",value:function(e,t,r){var 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",c.Logger.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+n})),this._data.slice(this._offset,this._offset+n)}},{key:"subReader",value:function(t){return new e(this._data.slice(this._offset+t),this.wordSize,this._coerceFunc,this.allowLoose)}},{key:"readBytes",value:function(e,t){var r=this._peekBytes(0,e,!!t);return this._offset+=r.length,r.slice(0,e)}},{key:"readValue",value:function(){return s.BigNumber.from(this.readBytes(this.wordSize))}}],[{key:"coerce",value:function(e,t){var r=e.match("^u?int([0-9]+)$");return r&&parseInt(r[1])<=48&&(t=t.toNumber()),t}}]),e}();t.Reader=p},function(e,t,r){"use strict";var n=r(1),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(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 i(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){"use strict";var n=r(19),i=r(3);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function u(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=i,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<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16))}else for(var n=0,i=0;i<e.length;i++){var a=e.charCodeAt(i);a<128?r[n++]=a:a<2048?(r[n++]=a>>6|192,r[n++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(i=0;i<e.length;i++)r[i]=0|e[i];return r},t.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=s(e[r].toString(16));return t},t.htonl=a,t.toHex32=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e[n];"little"===t&&(i=a(i)),r+=u(i.toString(16))}return r},t.zero2=s,t.zero8=u,t.join32=function(e,t,r,i){var o=r-t;n(o%4==0);for(var a=new Array(o/4),s=0,u=t;s<a.length;s++,u+=4){var c;c="big"===i?e[u]<<24|e[u+1]<<16|e[u+2]<<8|e[u+3]:e[u+3]<<24|e[u+2]<<16|e[u+1]<<8|e[u],a[s]=c>>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n<e.length;n++,i+=4){var o=e[n];"big"===t?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=(o<n?1:0)+r+i;e[t]=a>>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return(t+n>>>0<t?1:0)+e+r>>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,a,s){var u=0,c=t;return u+=(c=c+n>>>0)<t?1:0,u+=(c=c+o>>>0)<o?1:0,e+r+i+a+(u+=(c=c+s>>>0)<s?1:0)>>>0},t.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,a,s,u,c){var f=0,l=t;return f+=(l=l+n>>>0)<t?1:0,f+=(l=l+o>>>0)<o?1:0,f+=(l=l+s>>>0)<s?1:0,e+r+i+a+u+(f+=(l=l+c>>>0)<c?1:0)>>>0},t.sum64_5_lo=function(e,t,r,n,i,o,a,s,u,c){return t+n+o+s+c>>>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(41),i=r(10);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function u(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=i,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<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16))}else for(var n=0,i=0;i<e.length;i++){var a=e.charCodeAt(i);a<128?r[n++]=a:a<2048?(r[n++]=a>>6|192,r[n++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(i=0;i<e.length;i++)r[i]=0|e[i];return r},t.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=s(e[r].toString(16));return t},t.htonl=a,t.toHex32=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e[n];"little"===t&&(i=a(i)),r+=u(i.toString(16))}return r},t.zero2=s,t.zero8=u,t.join32=function(e,t,r,i){var o=r-t;n(o%4==0);for(var a=new Array(o/4),s=0,u=t;s<a.length;s++,u+=4){var c;c="big"===i?e[u]<<24|e[u+1]<<16|e[u+2]<<8|e[u+3]:e[u+3]<<24|e[u+2]<<16|e[u+1]<<8|e[u],a[s]=c>>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n<e.length;n++,i+=4){var o=e[n];"big"===t?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=(o<n?1:0)+r+i;e[t]=a>>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return(t+n>>>0<t?1:0)+e+r>>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,a,s){var u=0,c=t;return u+=(c=c+n>>>0)<t?1:0,u+=(c=c+o>>>0)<o?1:0,e+r+i+a+(u+=(c=c+s>>>0)<s?1:0)>>>0},t.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,a,s,u,c){var f=0,l=t;return f+=(l=l+n>>>0)<t?1:0,f+=(l=l+o>>>0)<o?1:0,f+=(l=l+s>>>0)<s?1:0,e+r+i+a+u+(f+=(l=l+c>>>0)<c?1:0)>>>0},t.sum64_5_lo=function(e,t,r,n,i,o,a,s,u,c){return t+n+o+s+c>>>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=Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]},i=function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.isHexString=t.getKeys=t.fromAscii=t.fromUtf8=t.toAscii=t.arrayContainsArray=t.getBinarySize=t.padToEven=t.stripHexPrefix=t.isHexPrefixed=void 0,i(r(133),t),i(r(134),t),i(r(327),t),i(r(95),t),i(r(328),t),i(r(36),t),i(r(329),t),i(r(28),t),i(r(103),t);var o=r(44);Object.defineProperty(t,"isHexPrefixed",{enumerable:!0,get:function(){return o.isHexPrefixed}}),Object.defineProperty(t,"stripHexPrefix",{enumerable:!0,get:function(){return o.stripHexPrefix}}),Object.defineProperty(t,"padToEven",{enumerable:!0,get:function(){return o.padToEven}}),Object.defineProperty(t,"getBinarySize",{enumerable:!0,get:function(){return o.getBinarySize}}),Object.defineProperty(t,"arrayContainsArray",{enumerable:!0,get:function(){return o.arrayContainsArray}}),Object.defineProperty(t,"toAscii",{enumerable:!0,get:function(){return o.toAscii}}),Object.defineProperty(t,"fromUtf8",{enumerable:!0,get:function(){return o.fromUtf8}}),Object.defineProperty(t,"fromAscii",{enumerable:!0,get:function(){return o.fromAscii}}),Object.defineProperty(t,"getKeys",{enumerable:!0,get:function(){return o.getKeys}}),Object.defineProperty(t,"isHexString",{enumerable:!0,get:function(){return o.isHexString}})},function(e,t,r){"use strict";var n=Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]},i=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};Object.defineProperty(t,"__esModule",{value:!0}),t.rlp=t.BN=void 0;var o=function(e){return e&&e.__esModule?e:{default:e}}(r(4));t.BN=o.default;var a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t}(r(268));t.rlp=a},function(e,t,r){"use strict";var n=Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]},i=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};Object.defineProperty(t,"__esModule",{value:!0}),t.rlp=t.BN=void 0;var o=function(e){return e&&e.__esModule?e:{default:e}}(r(4));t.BN=o.default;var a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t}(r(547));t.rlp=a},function(e,t,r){"use strict";var n=r(264),i=r(265),o=r(131),a=r(266);e.exports=function(e,t){return n(e)||i(e,t)||o(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";(function(t,n){var i=r(5).Buffer,o=t.crypto||t.msCrypto;o&&o.getRandomValues?e.exports=function(e,t){if(e>4294967295)throw new RangeError("requested too many random bytes");var r=i.allocUnsafe(e);if(e>0)if(e>65536)for(var a=0;a<e;a+=65536)o.getRandomValues(r.slice(a,a+65536));else o.getRandomValues(r);return"function"==typeof t?n.nextTick((function(){t(null,r)})):r}:e.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this,r(7),r(6))},function(e,t,r){"use strict";var n=r(5).Buffer,i=r(160).Transform,o=r(21).StringDecoder;function a(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(3)(a,i),a.prototype.update=function(e,t,r){"string"==typeof e&&(e=n.from(e,t));var i=this._update(e);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){n=e}finally{r(n)}},a.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},a.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0);return e&&(t=this._toString(t,e,!0)),t},a.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},e.exports=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BigNumber",{enumerable:!0,get:function(){return n.BigNumber}}),Object.defineProperty(t,"FixedFormat",{enumerable:!0,get:function(){return i.FixedFormat}}),Object.defineProperty(t,"FixedNumber",{enumerable:!0,get:function(){return i.FixedNumber}}),Object.defineProperty(t,"_base16To36",{enumerable:!0,get:function(){return n._base16To36}}),Object.defineProperty(t,"_base36To16",{enumerable:!0,get:function(){return n._base36To16}}),Object.defineProperty(t,"formatFixed",{enumerable:!0,get:function(){return i.formatFixed}}),Object.defineProperty(t,"parseFixed",{enumerable:!0,get:function(){return i.parseFixed}});var n=r(173),i=r(362)},function(e,t,r){"use strict";var n=r(254),i=r(356);e.exports={packageInit:function(e,t){if(t=Array.prototype.slice.call(t),!e)throw new Error('You need to instantiate using the "new" keyword.');Object.defineProperty(e,"currentProvider",{get:function(){return e._provider},set:function(t){return e.setProvider(t)},enumerable:!0,configurable:!0}),t[0]&&t[0]._requestManager?e._requestManager=t[0]._requestManager:e._requestManager=new n.Manager(t[0],t[1]),e.givenProvider=n.Manager.givenProvider,e.providers=n.Manager.providers,e._provider=e._requestManager.provider,e.setProvider||(e.setProvider=function(t,r){return e._requestManager.setProvider(t,r),e._provider=e._requestManager.provider,!0}),e.setRequestManager=function(t){e._requestManager=t,e._provider=t.provider},e.BatchRequest=n.BatchManager.bind(null,e._requestManager),e.extend=i(e)},addProviders:function(e){e.givenProvider=n.Manager.givenProvider,e.providers=n.Manager.providers}}},function(e,t,r){"use strict";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";(function(e){var n=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.bufArrToArr=t.arrToBufArr=t.validateNoLeadingZeroes=t.baToJSON=t.toUtf8=t.addHexPrefix=t.toUnsigned=t.fromSigned=t.bufferToHex=t.bufferToInt=t.toBuffer=t.unpadHexString=t.unpadArray=t.unpadBuffer=t.setLengthRight=t.setLengthLeft=t.zeros=t.intToBuffer=t.intToHex=void 0;var i=r(28),o=r(44),a=r(73);t.intToHex=function(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("Received an invalid integer type: ".concat(e));return"0x".concat(e.toString(16))},t.intToBuffer=function(r){var n=(0,t.intToHex)(r);return e.from((0,o.padToEven)(n.slice(2)),"hex")},t.zeros=function(t){return e.allocUnsafe(t).fill(0)};var s=function(e,r,n){var i=(0,t.zeros)(r);return n?e.length<r?(e.copy(i),i):e.slice(0,r):e.length<r?(e.copy(i,r-e.length),i):e.slice(-r)};t.setLengthLeft=function(e,t){return(0,a.assertIsBuffer)(e),s(e,t,!1)},t.setLengthRight=function(e,t){return(0,a.assertIsBuffer)(e),s(e,t,!0)};var u=function(e){for(var t=e[0];e.length>0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e};t.unpadBuffer=function(e){return(0,a.assertIsBuffer)(e),u(e)},t.unpadArray=function(e){return(0,a.assertIsArray)(e),u(e)},t.unpadHexString=function(e){return(0,a.assertIsHexString)(e),e=(0,o.stripHexPrefix)(e),u(e)},t.toBuffer=function(r){if(null==r)return e.allocUnsafe(0);if(e.isBuffer(r))return e.from(r);if(Array.isArray(r)||r instanceof Uint8Array)return e.from(r);if("string"==typeof r){if(!(0,o.isHexString)(r))throw new Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: ".concat(r));return e.from((0,o.padToEven)((0,o.stripHexPrefix)(r)),"hex")}if("number"==typeof r)return(0,t.intToBuffer)(r);if(i.BN.isBN(r)){if(r.isNeg())throw new Error("Cannot convert negative BN to buffer. Given: ".concat(r));return r.toArrayLike(e)}if(r.toArray)return e.from(r.toArray());if(r.toBuffer)return e.from(r.toBuffer());throw new Error("invalid type")},t.bufferToInt=function(e){return new i.BN((0,t.toBuffer)(e)).toNumber()},t.bufferToHex=function(e){return"0x"+(e=(0,t.toBuffer)(e)).toString("hex")},t.fromSigned=function(e){return new i.BN(e).fromTwos(256)},t.toUnsigned=function(t){return e.from(t.toTwos(256).toArray())},t.addHexPrefix=function(e){return"string"!=typeof e||(0,o.isHexPrefixed)(e)?e:"0x"+e},t.toUtf8=function(t){if((t=(0,o.stripHexPrefix)(t)).length%2!=0)throw new Error("Invalid non-even hex string input for toUtf8() provided");return e.from(t.replace(/^(00)+|(00)+$/g,""),"hex").toString("utf8")},t.baToJSON=function(r){if(e.isBuffer(r))return"0x".concat(r.toString("hex"));if(r instanceof Array){for(var n=[],i=0;i<r.length;i++)n.push((0,t.baToJSON)(r[i]));return n}},t.validateNoLeadingZeroes=function(e){var t,r;try{for(var i=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(Object.entries(e)),o=i.next();!o.done;o=i.next()){var a=n(o.value,2),s=a[0],u=a[1];if(void 0!==u&&u.length>0&&0===u[0])throw new Error("".concat(s," cannot have leading zeroes, received: ").concat(u.toString("hex")))}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}},t.arrToBufArr=function t(r){return Array.isArray(r)?r.map((function(e){return t(e)})):e.from(r)},t.bufArrToArr=function e(t){return Array.isArray(t)?t.map((function(t){return e(t)})):Uint8Array.from(null!=t?t:[])}}).call(this,r(1).Buffer)},function(e,t,r){"use strict";var n=r(75),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var o=Object.create(r(62));o.inherits=r(3);var a=r(161),s=r(102);o.inherits(l,a);for(var u=i(s.prototype),c=0;c<u.length;c++){var f=u[c];l.prototype[f]||(l.prototype[f]=s.prototype[f])}function l(e){if(!(this instanceof l))return new l(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",d)}function d(){this.allowHalfOpen||this._writableState.ended||n.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),l.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},function(e,t,r){"use strict";var n=r(0),i=n(r(63)),o=n(r(30)),a=n(r(58)),s=n(r(105)),u=n(r(2));function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){(0,a.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var l=r(12).errors,d=r(12).formatters,h=r(17),p=r(78),b=r(79).subscriptions,y=r(359),g=function(e){if(!e.call||!e.name)throw new Error('When creating a method you need to provide at least the "name" and "call" property.');this.name=e.name,this.call=e.call,this.params=e.params||0,this.inputFormatter=e.inputFormatter,this.outputFormatter=e.outputFormatter,this.transformPayload=e.transformPayload,this.extraFormatters=e.extraFormatters,this.abiCoder=e.abiCoder,this.requestManager=e.requestManager,this.accounts=e.accounts,this.defaultBlock=e.defaultBlock||"latest",this.defaultAccount=e.defaultAccount||null,this.transactionBlockTimeout=e.transactionBlockTimeout||50,this.transactionConfirmationBlocks=e.transactionConfirmationBlocks||24,this.transactionPollingTimeout=e.transactionPollingTimeout||750,this.transactionPollingInterval=e.transactionPollingInterval||1e3,this.blockHeaderTimeout=e.blockHeaderTimeout||10,this.defaultCommon=e.defaultCommon,this.defaultChain=e.defaultChain,this.defaultHardfork=e.defaultHardfork,this.handleRevert=e.handleRevert};g.prototype.setRequestManager=function(e,t){this.requestManager=e,t&&(this.accounts=t)},g.prototype.createFunction=function(e,t){var r=this.buildCall();return Object.defineProperty(r,"call",{configurable:!0,writable:!0,value:this.call}),this.setRequestManager(e||this.requestManager,t||this.accounts),r},g.prototype.attachToObject=function(e){var t=this.buildCall();Object.defineProperty(t,"call",{configurable:!0,writable:!0,value:this.call});var r=this.name.split(".");r.length>1?(e[r[0]]=e[r[0]]||{},e[r[0]][r[1]]=t):e[r[0]]=t},g.prototype.getCall=function(e){return"function"==typeof this.call?this.call(e):this.call},g.prototype.extractCallback=function(e){if("function"==typeof e[e.length-1])return e.pop()},g.prototype.validateArgs=function(e){if(e.length!==this.params)throw l.InvalidNumberOfParams(e.length,this.params,this.name)},g.prototype.formatInput=function(e){var t=this;return this.inputFormatter?this.inputFormatter.map((function(r,n){return r?r.call(t,e[n]):e[n]})):e},g.prototype.formatOutput=function(e){var t=this;return Array.isArray(e)?e.map((function(e){return t.outputFormatter&&e?t.outputFormatter(e):e})):this.outputFormatter&&e?this.outputFormatter(e):e},g.prototype.toPayload=function(e){var t=this.getCall(e),r=this.extractCallback(e),n=this.formatInput(e);this.validateArgs(n);var i={method:t,params:n,callback:r};return this.transformPayload&&(i=this.transformPayload(i)),i},g.prototype._confirmTransaction=function(e,t,r){var n=this,o=!1,a=!0,c=0,f=0,m=null,v=null,w=null,_=r.params[0]&&"object"===(0,u.default)(r.params[0])&&r.params[0].gas?r.params[0].gas:null,x=!!r.params[0]&&"object"===(0,u.default)(r.params[0])&&r.params[0].data&&r.params[0].from&&!r.params[0].to,O=x&&r.params[0].data.length>2,k=[new g({name:"getBlockByNumber",call:"eth_getBlockByNumber",params:2,inputFormatter:[d.inputBlockNumberFormatter,function(e){return!!e}],outputFormatter:d.outputBlockFormatter}),new g({name:"getTransactionReceipt",call:"eth_getTransactionReceipt",params:1,inputFormatter:[null],outputFormatter:d.outputTransactionReceiptFormatter}),new g({name:"getCode",call:"eth_getCode",params:2,inputFormatter:[d.inputAddressFormatter,d.inputDefaultBlockNumberFormatter]}),new g({name:"getTransactionByHash",call:"eth_getTransactionByHash",params:1,inputFormatter:[null],outputFormatter:d.outputTransactionFormatter}),new b({name:"subscribe",type:"eth",subscriptions:{newBlockHeaders:{subscriptionName:"newHeads",params:0,outputFormatter:d.outputBlockFormatter}}})],P={};k.forEach((function(e){e.attachToObject(P),e.requestManager=n.requestManager}));var S=function(u,b,g,k,S){if(!g)return S||(S={unsubscribe:function(){clearInterval(m),clearTimeout(v)}}),(u?p.resolve(u):P.getTransactionReceipt(t)).catch((function(t){S.unsubscribe(),o=!0,h._fireError({message:"Failed to check for transaction receipt:",data:t},e.eventEmitter,e.reject)})).then(function(){var t=(0,s.default)(i.default.mark((function t(r){var o,s,c;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r&&r.blockHash){t.next=2;break}throw new Error("Receipt missing or blockHash null");case 2:if(n.extraFormatters&&n.extraFormatters.receiptFormatter&&(r=n.extraFormatters.receiptFormatter(r)),!(e.eventEmitter.listeners("confirmation").length>0)){t.next=28;break}if(void 0!==u&&0===f){t.next=25;break}return t.next=7,P.getBlockByNumber("latest");case 7:if(s=t.sent,c=s?s.hash:null,!b){t.next=24;break}if(!w){t.next=17;break}return t.next=13,P.getBlockByNumber(w.number+1);case 13:(o=t.sent)&&(w=o,e.eventEmitter.emit("confirmation",f,r,c)),t.next=22;break;case 17:return t.next=19,P.getBlockByNumber(r.blockNumber);case 19:o=t.sent,w=o,e.eventEmitter.emit("confirmation",f,r,c);case 22:t.next=25;break;case 24:e.eventEmitter.emit("confirmation",f,r,c);case 25:(b&&o||!b)&&f++,a=!1,f===n.transactionConfirmationBlocks+1&&(S.unsubscribe(),e.eventEmitter.removeAllListeners());case 28:return t.abrupt("return",r);case 29:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).then(function(){var t=(0,s.default)(i.default.mark((function t(r){var s;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!x||o){t.next=19;break}if(r.contractAddress){t.next=5;break}return a&&(S.unsubscribe(),o=!0),h._fireError(l.NoContractAddressFoundError(r),e.eventEmitter,e.reject,null,r),t.abrupt("return");case 5:return t.prev=5,t.next=8,P.getCode(r.contractAddress);case 8:s=t.sent,t.next=13;break;case 11:t.prev=11,t.t0=t.catch(5);case 13:if(s){t.next=15;break}return t.abrupt("return");case 15:!0===r.status&&O||s.length>2?(e.eventEmitter.emit("receipt",r),n.extraFormatters&&n.extraFormatters.contractDeployFormatter?e.resolve(n.extraFormatters.contractDeployFormatter(r)):e.resolve(r),a&&e.eventEmitter.removeAllListeners()):h._fireError(l.ContractCodeNotStoredError(r),e.eventEmitter,e.reject,null,r),a&&S.unsubscribe(),o=!0;case 19:return t.abrupt("return",r);case 20:case"end":return t.stop()}}),t,null,[[5,11]])})));return function(e){return t.apply(this,arguments)}}()).then(function(){var t=(0,s.default)(i.default.mark((function t(s){var u,c,f,p;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(x||o){t.next=35;break}if(s.outOfGas||_&&_===s.gasUsed||!0!==s.status&&"0x1"!==s.status&&void 0!==s.status){t.next=7;break}e.eventEmitter.emit("receipt",s),e.resolve(s),a&&e.eventEmitter.removeAllListeners(),t.next=33;break;case 7:if(JSON.stringify(s,null,2),!1!==s.status&&"0x0"!==s.status){t.next=32;break}if(t.prev=9,u=null,!n.handleRevert||"eth_sendTransaction"!==n.call&&"eth_sendRawTransaction"!==n.call){t.next=24;break}return c=r.params[0],"eth_sendRawTransaction"===n.call&&(f=r.params[0],p=y.parse(f),c=d.inputTransactionFormatter({data:p.data,to:p.to,from:p.from,gas:p.gasLimit.toHexString(),gasPrice:p.gasPrice?p.gasPrice.toHexString():void 0,value:p.value.toHexString()})),t.next=16,n.getRevertReason(c,s.blockNumber);case 16:if(!(u=t.sent)){t.next=21;break}h._fireError(l.TransactionRevertInstructionError(u.reason,u.signature,s),e.eventEmitter,e.reject,null,s),t.next=22;break;case 21:throw!1;case 22:t.next=25;break;case 24:throw!1;case 25:t.next=30;break;case 27:t.prev=27,t.t0=t.catch(9),h._fireError(l.TransactionRevertedWithoutReasonError(s),e.eventEmitter,e.reject,null,s);case 30:t.next=33;break;case 32:h._fireError(l.TransactionOutOfGasError(s),e.eventEmitter,e.reject,null,s);case 33:a&&S.unsubscribe(),o=!0;case 35:case"end":return t.stop()}}),t,null,[[9,27]])})));return function(e){return t.apply(this,arguments)}}()).catch((function(){c++,b?c-1>=n.transactionPollingTimeout&&(S.unsubscribe(),o=!0,h._fireError(l.TransactionError("Transaction was not mined within "+n.transactionPollingTimeout+" seconds, please make sure your transaction was properly sent. Be aware that it might still be mined!"),e.eventEmitter,e.reject)):c-1>=n.transactionBlockTimeout&&(S.unsubscribe(),o=!0,h._fireError(l.TransactionError("Transaction was not mined within "+n.transactionBlockTimeout+" blocks, please make sure your transaction was properly sent. Be aware that it might still be mined!"),e.eventEmitter,e.reject))}));S.unsubscribe(),o=!0,h._fireError({message:"Failed to subscribe to new newBlockHeaders to confirm the transaction receipts.",data:g},e.eventEmitter,e.reject)},A=function(e){var t=!1,r=function(){m=setInterval(S.bind(null,e,!0),n.transactionPollingInterval)};if(!this.requestManager.provider.on)return r();P.subscribe("newBlockHeaders",(function(n,i,o){if(t=!0,n||!i)return r();S(e,!1,n,0,o)})),v=setTimeout((function(){t||r()}),1e3*this.blockHeaderTimeout)}.bind(this);P.getTransactionReceipt(t).then((function(t){t&&t.blockHash?(e.eventEmitter.listeners("confirmation").length>0&&A(t),S(t,!1)):o||A()})).catch((function(){o||A()}))};var m=function(e,t){return"number"==typeof e?t.wallet[e]:e&&"object"===(0,u.default)(e)&&e.address&&e.privateKey?e:t.wallet[e.toLowerCase()]};function v(e,t){return new Promise((function(r,n){try{var i=new g({name:"getBlockByNumber",call:"eth_getBlockByNumber",params:2,inputFormatter:[function(e){return e?h.toHex(e):"latest"},function(){return!1}]}).createFunction(e.requestManager),a=new g({name:"getGasPrice",call:"eth_gasPrice",params:0}).createFunction(e.requestManager);Promise.all([i(),a()]).then((function(e){var n=(0,o.default)(e,2),i=n[0],a=n[1];if(("0x2"===t.type||void 0===t.type)&&i&&i.baseFeePerGas){var s,u;t.gasPrice?(s=t.gasPrice,u=t.gasPrice,delete t.gasPrice):(s=t.maxPriorityFeePerGas||"0x9502F900",u=t.maxFeePerGas||h.toHex(h.toBN(i.baseFeePerGas).mul(h.toBN(2)).add(h.toBN(s)))),r({maxFeePerGas:u,maxPriorityFeePerGas:s})}else{if(t.maxPriorityFeePerGas||t.maxFeePerGas)throw Error("Network doesn't support eip-1559");r({gasPrice:a})}}))}catch(e){n(e)}}))}g.prototype.buildCall=function(){var e=this,t="eth_sendTransaction"===e.call||"eth_sendRawTransaction"===e.call,r="eth_call"===e.call,n=function(){var n=Array.prototype.slice.call(arguments),i=p(!t),o=e.toPayload(n);e.hexFormat=!1,"eth_getTransactionReceipt"===e.call&&(e.hexFormat=o.params.length<n.length&&"hex"===n[n.length-1]);var a=function(n,a){var s;if(e.handleRevert&&r&&e.abiCoder&&(!n&&e.isRevertReasonString(a)?s=a.substring(10):n&&n.data&&(s=n.data.substring(10)),s)){var u=e.abiCoder.decodeParameter("string","0x"+s);h._fireError(l.RevertInstructionError(u,"Error(String)"),i.eventEmitter,i.reject,o.callback,{reason:u,signature:"Error(String)"})}else{try{a=e.formatOutput(a)}catch(e){n=e}if(a instanceof Error&&(n=a),n)return n.error&&(n=n.error),h._fireError(n,i.eventEmitter,i.reject,o.callback);o.callback&&o.callback(null,a),t?(i.eventEmitter.emit("transactionHash",a),e._confirmTransaction(i,a,o)):n||i.resolve(a)}},s=function(t){var r=f(f({},o),{},{method:"eth_sendRawTransaction",params:[t.rawTransaction]});e.requestManager.send(r,a)},c=function(e,t){var r;if(t&&t.accounts&&t.accounts.wallet&&t.accounts.wallet.length)if("eth_sendTransaction"===e.method){var n=e.params[0];if((r=m(n&&"object"===(0,u.default)(n)?n.from:null,t.accounts))&&r.privateKey)return delete(n=JSON.parse(JSON.stringify(n))).from,t.defaultChain&&!n.chain&&(n.chain=t.defaultChain),t.defaultHardfork&&!n.hardfork&&(n.hardfork=t.defaultHardfork),t.defaultCommon&&!n.common&&(n.common=t.defaultCommon),void t.accounts.signTransaction(n,r.privateKey).then(s).catch((function(e){if("function"==typeof i.eventEmitter.listeners&&i.eventEmitter.listeners("error").length){try{i.eventEmitter.emit("error",e)}catch(e){}i.eventEmitter.removeAllListeners(),i.eventEmitter.catch((function(){}))}i.reject(e)}))}else if("eth_sign"===e.method){var o=e.params[1];if((r=m(e.params[0],t.accounts))&&r.privateKey){var c=t.accounts.sign(o,r.privateKey);return e.callback&&e.callback(null,c.signature),void i.resolve(c.signature)}}return t.requestManager.send(e,a)};return t&&o.params[0]&&"object"===(0,u.default)(o.params[0])&&void 0===o.params[0].gasPrice&&(void 0===o.params[0].maxPriorityFeePerGas||void 0===o.params[0].maxFeePerGas)?v(e,o.params[0]).then((function(r){void 0!==r.gasPrice?o.params[0].gasPrice=r.gasPrice:void 0!==r.maxPriorityFeePerGas&&void 0!==r.maxFeePerGas&&(o.params[0].maxPriorityFeePerGas=r.maxPriorityFeePerGas,o.params[0].maxFeePerGas=r.maxFeePerGas),t&&setTimeout((function(){i.eventEmitter.emit("sending",o)}),0),c(o,e)})):(t&&setTimeout((function(){i.eventEmitter.emit("sending",o)}),0),c(o,e)),t&&setTimeout((function(){i.eventEmitter.emit("sent",o)}),0),i.eventEmitter};return n.method=e,n.request=this.request.bind(this),n},g.prototype.getRevertReason=function(e,t){var r=this;return new Promise((function(n,i){new g({name:"call",call:"eth_call",params:2,abiCoder:r.abiCoder,handleRevert:!0}).createFunction(r.requestManager)(e,h.numberToHex(t)).then((function(){n(!1)})).catch((function(e){e.reason?n({reason:e.reason,signature:e.signature}):i(e)}))}))},g.prototype.isRevertReasonString=function(e){return"string"==typeof e&&(e.length-2)/2%32==4&&"0x08c379a0"===e.substring(0,10)},g.prototype.request=function(){var e=this.toPayload(Array.prototype.slice.call(arguments));return e.format=this.formatOutput.bind(this),e},e.exports=g},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.keccak256=function(e){return"0x"+i.default.keccak_256((0,o.arrayify)(e))};var i=n(r(363)),o=r(11)},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.Description=void 0,t.checkProperties=function(e,t){e&&"object"===(0,s.default)(e)||l.throwArgumentError("invalid object","object",e),Object.keys(e).forEach((function(r){t[r]||l.throwArgumentError("invalid object key - "+r,"transaction:"+r,e)}))},t.deepCopy=p,t.defineReadOnly=d,t.getStatic=function(e,t){for(var r=0;r<32;r++){if(e[t])return e[t];if(!e.prototype||"object"!==(0,s.default)(e.prototype))break;e=Object.getPrototypeOf(e.prototype).constructor}return null},t.resolveProperties=function(e){return f(this,void 0,void 0,i.default.mark((function t(){var r,n;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=Object.keys(e).map((function(t){var r=e[t];return Promise.resolve(r).then((function(e){return{key:t,value:e}}))})),t.next=3,Promise.all(r);case 3:return n=t.sent,t.abrupt("return",n.reduce((function(e,t){return e[t.key]=t.value,e}),{}));case 5:case"end":return t.stop()}}),t)})))},t.shallowCopy=function(e){var t={};for(var r in e)t[r]=e[r];return t};var i=n(r(63)),o=n(r(9)),a=n(r(8)),s=n(r(2)),u=r(16),c=r(370),f=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))},l=new u.Logger(c.version);function d(e,t,r){Object.defineProperty(e,t,{enumerable:!0,value:r,writable:!1})}var h={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function p(e){return function(e){if(function e(t){if(null==t||h[(0,s.default)(t)])return!0;if(Array.isArray(t)||"object"===(0,s.default)(t)){if(!Object.isFrozen(t))return!1;for(var r=Object.keys(t),n=0;n<r.length;n++){var i=null;try{i=t[r[n]]}catch(e){continue}if(!e(i))return!1}return!0}return l.throwArgumentError("Cannot deepCopy ".concat((0,s.default)(t)),"object",t)}(e))return e;if(Array.isArray(e))return Object.freeze(e.map((function(e){return p(e)})));if("object"===(0,s.default)(e)){var t={};for(var r in e){var n=e[r];void 0!==n&&d(t,r,p(n))}return t}return l.throwArgumentError("Cannot deepCopy ".concat((0,s.default)(e)),"object",e)}(e)}var b=(0,o.default)((function e(t){for(var r in(0,a.default)(this,e),t)this[r]=p(t[r])}));t.Description=b},function(e,t,r){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=n,n.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},function(e,t,r){"use strict";(function(e){var n=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.bufArrToArr=t.arrToBufArr=t.validateNoLeadingZeroes=t.baToJSON=t.toUtf8=t.addHexPrefix=t.toUnsigned=t.fromSigned=t.bufferToHex=t.bufferToInt=t.toBuffer=t.unpadHexString=t.unpadArray=t.unpadBuffer=t.setLengthRight=t.setLengthLeft=t.zeros=t.intToBuffer=t.intToHex=void 0;var i=r(29),o=r(54),a=r(90);t.intToHex=function(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("Received an invalid integer type: ".concat(e));return"0x".concat(e.toString(16))},t.intToBuffer=function(r){var n=(0,t.intToHex)(r);return e.from((0,o.padToEven)(n.slice(2)),"hex")},t.zeros=function(t){return e.allocUnsafe(t).fill(0)};var s=function(e,r,n){var i=(0,t.zeros)(r);return n?e.length<r?(e.copy(i),i):e.slice(0,r):e.length<r?(e.copy(i,r-e.length),i):e.slice(-r)};t.setLengthLeft=function(e,t){return(0,a.assertIsBuffer)(e),s(e,t,!1)},t.setLengthRight=function(e,t){return(0,a.assertIsBuffer)(e),s(e,t,!0)};var u=function(e){for(var t=e[0];e.length>0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e};t.unpadBuffer=function(e){return(0,a.assertIsBuffer)(e),u(e)},t.unpadArray=function(e){return(0,a.assertIsArray)(e),u(e)},t.unpadHexString=function(e){return(0,a.assertIsHexString)(e),e=(0,o.stripHexPrefix)(e),u(e)},t.toBuffer=function(r){if(null==r)return e.allocUnsafe(0);if(e.isBuffer(r))return e.from(r);if(Array.isArray(r)||r instanceof Uint8Array)return e.from(r);if("string"==typeof r){if(!(0,o.isHexString)(r))throw new Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: ".concat(r));return e.from((0,o.padToEven)((0,o.stripHexPrefix)(r)),"hex")}if("number"==typeof r)return(0,t.intToBuffer)(r);if(i.BN.isBN(r)){if(r.isNeg())throw new Error("Cannot convert negative BN to buffer. Given: ".concat(r));return r.toArrayLike(e)}if(r.toArray)return e.from(r.toArray());if(r.toBuffer)return e.from(r.toBuffer());throw new Error("invalid type")},t.bufferToInt=function(e){return new i.BN((0,t.toBuffer)(e)).toNumber()},t.bufferToHex=function(e){return"0x"+(e=(0,t.toBuffer)(e)).toString("hex")},t.fromSigned=function(e){return new i.BN(e).fromTwos(256)},t.toUnsigned=function(t){return e.from(t.toTwos(256).toArray())},t.addHexPrefix=function(e){return"string"!=typeof e||(0,o.isHexPrefixed)(e)?e:"0x"+e},t.toUtf8=function(t){if((t=(0,o.stripHexPrefix)(t)).length%2!=0)throw new Error("Invalid non-even hex string input for toUtf8() provided");return e.from(t.replace(/^(00)+|(00)+$/g,""),"hex").toString("utf8")},t.baToJSON=function(r){if(e.isBuffer(r))return"0x".concat(r.toString("hex"));if(r instanceof Array){for(var n=[],i=0;i<r.length;i++)n.push((0,t.baToJSON)(r[i]));return n}},t.validateNoLeadingZeroes=function(e){var t,r;try{for(var i=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(Object.entries(e)),o=i.next();!o.done;o=i.next()){var a=n(o.value,2),s=a[0],u=a[1];if(void 0!==u&&u.length>0&&0===u[0])throw new Error("".concat(s," cannot have leading zeroes, received: ").concat(u.toString("hex")))}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}},t.arrToBufArr=function t(r){return Array.isArray(r)?r.map((function(e){return t(e)})):e.from(r)},t.bufArrToArr=function e(t){return Array.isArray(t)?t.map((function(t){return e(t)})):Uint8Array.from(null!=t?t:[])}}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(0)(r(2)),i=r(92);function o(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0}function a(e){return t.Buffer&&"function"==typeof t.Buffer.isBuffer?t.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var s=r(127),u=Object.prototype.hasOwnProperty,c=Array.prototype.slice,f="foo"===function(){}.name;function l(e){return Object.prototype.toString.call(e)}function d(e){return!a(e)&&"function"==typeof t.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer)))}var h=e.exports=v,p=/\s*function\s+([^\(\s]*)\s*/;function b(e){if(s.isFunction(e)){if(f)return e.name;var t=e.toString().match(p);return t&&t[1]}}function y(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function g(e){if(f||!s.isFunction(e))return s.inspect(e);var t=b(e);return"[Function"+(t?": "+t:"")+"]"}function m(e,t,r,n,i){throw new h.AssertionError({message:r,actual:e,expected:t,operator:n,stackStartFunction:i})}function v(e,t){e||m(e,!0,t,"==",h.ok)}function w(e,t,r,i){if(e===t)return!0;if(a(e)&&a(t))return 0===o(e,t);if(s.isDate(e)&&s.isDate(t))return e.getTime()===t.getTime();if(s.isRegExp(e)&&s.isRegExp(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(null!==e&&"object"===(0,n.default)(e)||null!==t&&"object"===(0,n.default)(t)){if(d(e)&&d(t)&&l(e)===l(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===o(new Uint8Array(e.buffer),new Uint8Array(t.buffer));if(a(e)!==a(t))return!1;var u=(i=i||{actual:[],expected:[]}).actual.indexOf(e);return-1!==u&&u===i.expected.indexOf(t)||(i.actual.push(e),i.expected.push(t),function(e,t,r,n){if(null==e||null==t)return!1;if(s.isPrimitive(e)||s.isPrimitive(t))return e===t;if(r&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var i=_(e),o=_(t);if(i&&!o||!i&&o)return!1;if(i)return w(e=c.call(e),t=c.call(t),r);var a,u,f=k(e),l=k(t);if(f.length!==l.length)return!1;for(f.sort(),l.sort(),u=f.length-1;u>=0;u--)if(f[u]!==l[u])return!1;for(u=f.length-1;u>=0;u--)if(!w(e[a=f[u]],t[a],r,n))return!1;return!0}(e,t,r,i))}return r?e===t:e==t}function _(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function x(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 O(e,t,r,n){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(n=r,r=null),i=function(e){var t;try{e()}catch(e){t=e}return t}(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!i&&m(i,r,"Missing expected exception"+n);var o="string"==typeof n,a=!e&&i&&!r;if((!e&&s.isError(i)&&o&&x(i,r)||a)&&m(i,r,"Got unwanted exception"+n),e&&i&&r&&!x(i,r)||!e&&i)throw i}h.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 y(g(e.actual),128)+" "+e.operator+" "+y(g(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||m;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var r=new Error;if(r.stack){var n=r.stack,i=b(t),o=n.indexOf("\n"+i);if(o>=0){var a=n.indexOf("\n",o+1);n=n.substring(a+1)}this.stack=n}}},s.inherits(h.AssertionError,Error),h.fail=m,h.ok=v,h.equal=function(e,t,r){e!=t&&m(e,t,r,"==",h.equal)},h.notEqual=function(e,t,r){e==t&&m(e,t,r,"!=",h.notEqual)},h.deepEqual=function(e,t,r){w(e,t,!1)||m(e,t,r,"deepEqual",h.deepEqual)},h.deepStrictEqual=function(e,t,r){w(e,t,!0)||m(e,t,r,"deepStrictEqual",h.deepStrictEqual)},h.notDeepEqual=function(e,t,r){w(e,t,!1)&&m(e,t,r,"notDeepEqual",h.notDeepEqual)},h.notDeepStrictEqual=function e(t,r,n){w(t,r,!0)&&m(t,r,n,"notDeepStrictEqual",e)},h.strictEqual=function(e,t,r){e!==t&&m(e,t,r,"===",h.strictEqual)},h.notStrictEqual=function(e,t,r){e===t&&m(e,t,r,"!==",h.notStrictEqual)},h.throws=function(e,t,r){O(!0,e,t,r)},h.doesNotThrow=function(e,t,r){O(!1,e,t,r)},h.ifError=function(e){if(e)throw e},h.strict=i((function e(t,r){t||m(t,!0,r,"==",e)}),h,{equal:h.strictEqual,deepEqual:h.deepStrictEqual,notEqual:h.notStrictEqual,notDeepEqual:h.notDeepStrictEqual}),h.strict.strict=h.strict;var k=Object.keys||function(e){var t=[];for(var r in e)u.call(e,r)&&t.push(r);return t}}).call(this,r(7))},function(e,t,r){"use strict";(function(e){var n=r(0)(r(2));function i(e){if("string"!=typeof e)throw new Error("[isHexPrefixed] input must be type 'string', received type ".concat((0,n.default)(e)));return"0"===e[0]&&"x"===e[1]}function o(e){var t=e;if("string"!=typeof t)throw new Error("[padToEven] value must be type 'string', received ".concat((0,n.default)(t)));return t.length%2&&(t="0".concat(t)),t}Object.defineProperty(t,"__esModule",{value:!0}),t.isHexString=t.getKeys=t.fromAscii=t.fromUtf8=t.toAscii=t.arrayContainsArray=t.getBinarySize=t.padToEven=t.stripHexPrefix=t.isHexPrefixed=void 0,t.isHexPrefixed=i,t.stripHexPrefix=function(e){if("string"!=typeof e)throw new Error("[stripHexPrefix] input must be type 'string', received ".concat((0,n.default)(e)));return i(e)?e.slice(2):e},t.padToEven=o,t.getBinarySize=function(t){if("string"!=typeof t)throw new Error("[getBinarySize] method requires input type 'string', recieved ".concat((0,n.default)(t)));return e.byteLength(t,"utf8")},t.arrayContainsArray=function(e,t,r){if(!0!==Array.isArray(e))throw new Error("[arrayContainsArray] method requires input 'superset' to be an array, got type '".concat((0,n.default)(e),"'"));if(!0!==Array.isArray(t))throw new Error("[arrayContainsArray] method requires input 'subset' to be an array, got type '".concat((0,n.default)(t),"'"));return t[r?"some":"every"]((function(t){return e.indexOf(t)>=0}))},t.toAscii=function(e){var t="",r=0,n=e.length;for("0x"===e.substring(0,2)&&(r=2);r<n;r+=2){var i=parseInt(e.substr(r,2),16);t+=String.fromCharCode(i)}return t},t.fromUtf8=function(t){var r=e.from(t,"utf8");return"0x".concat(o(r.toString("hex")).replace(/^0+|0+$/g,""))},t.fromAscii=function(e){for(var t="",r=0;r<e.length;r++){var n=e.charCodeAt(r).toString(16);t+=n.length<2?"0".concat(n):n}return"0x".concat(t)},t.getKeys=function(e,t,r){if(!Array.isArray(e))throw new Error("[getKeys] method expects input 'params' to be an array, got ".concat((0,n.default)(e)));if("string"!=typeof t)throw new Error("[getKeys] method expects input 'key' to be type 'string', got ".concat((0,n.default)(e)));for(var i=[],o=0;o<e.length;o++){var a=e[o][t];if(r&&!a)a="";else if("string"!=typeof a)throw new Error("invalid abi - expected type 'string', received ".concat((0,n.default)(a)));i.push(a)}return i},t.isHexString=function(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}}).call(this,r(1).Buffer)},function(e,t,r){"use strict";var n=r(0)(r(2)),i={};function o(e,t,r){r||(r=Error);var n=function(e){var r,n;function i(r,n,i){return e.call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,n,i))||this}return n=e,(r=i).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,i}(r);n.prototype.name=r.name,n.prototype.code=e,i[e]=n}function a(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}o("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(e,t,r){var i,o,s;if("string"==typeof t&&(o="not ",t.substr(0,4)===o)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-9,r)===t}(e," argument"))s="The ".concat(e," ").concat(i," ").concat(a(t,"type"));else{var u=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+1>e.length)&&-1!==e.indexOf(".",r)}(e)?"property":"argument";s='The "'.concat(e,'" ').concat(u," ").concat(i," ").concat(a(t,"type"))}return s+". Received type ".concat((0,n.default)(r))}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=i},function(e,t,r){"use strict";(function(t){var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=c;var i=r(145),o=r(149);r(3)(c,i);for(var a=n(o.prototype),s=0;s<a.length;s++){var u=a[s];c.prototype[u]||(c.prototype[u]=o.prototype[u])}function c(e){if(!(this instanceof c))return new c(e);i.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||t.nextTick(l,this)}function l(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}).call(this,r(6))},function(e,t,r){"use strict";var n=r(3),i=r(97),o=r(99),a=r(100),s=r(32);function u(e){s.call(this,"digest"),this._hash=e}n(u,s),u.prototype._update=function(e){this._hash.update(e)},u.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new i:"rmd160"===e||"ripemd160"===e?new o:new u(a(e))}},function(e,t,r){"use strict";var n=r(0)(r(2)),i={};function o(e,t,r){r||(r=Error);var n=function(e){var r,n;function i(r,n,i){return e.call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,n,i))||this}return n=e,(r=i).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,i}(r);n.prototype.name=r.name,n.prototype.code=e,i[e]=n}function a(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}o("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(e,t,r){var i,o,s;if("string"==typeof t&&(o="not ",t.substr(0,4)===o)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-9,r)===t}(e," argument"))s="The ".concat(e," ").concat(i," ").concat(a(t,"type"));else{var u=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+1>e.length)&&-1!==e.indexOf(".",r)}(e)?"property":"argument";s='The "'.concat(e,'" ').concat(u," ").concat(i," ").concat(a(t,"type"))}return s+". Received type ".concat((0,n.default)(r))}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=i},function(e,t,r){"use strict";(function(t){var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=c;var i=r(152),o=r(156);r(3)(c,i);for(var a=n(o.prototype),s=0;s<a.length;s++){var u=a[s];c.prototype[u]||(c.prototype[u]=o.prototype[u])}function c(e){if(!(this instanceof c))return new c(e);i.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||t.nextTick(l,this)}function l(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}).call(this,r(6))},function(e,t,r){"use strict";var n=r(5).Buffer;function i(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=n.from(e,t));for(var r=this._block,i=this._blockSize,o=e.length,a=this._len,s=0;s<o;){for(var u=a%i,c=Math.min(o-s,i-u),f=0;f<c;f++)r[u+f]=e[s+f];s+=c,(a+=c)%i==0&&this._update(r)}return this._len+=o,this},i.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},function(e,t,r){"use strict";var n=r(0)(r(2)),i={};function o(e,t,r){r||(r=Error);var n=function(e){var r,n;function i(r,n,i){return e.call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,n,i))||this}return n=e,(r=i).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,i}(r);n.prototype.name=r.name,n.prototype.code=e,i[e]=n}function a(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}o("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(e,t,r){var i,o,s;if("string"==typeof t&&(o="not ",t.substr(0,4)===o)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-9,r)===t}(e," argument"))s="The ".concat(e," ").concat(i," ").concat(a(t,"type"));else{var u=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+1>e.length)&&-1!==e.indexOf(".",r)}(e)?"property":"argument";s='The "'.concat(e,'" ').concat(u," ").concat(i," ").concat(a(t,"type"))}return s+". Received type ".concat((0,n.default)(r))}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=i},function(e,t,r){"use strict";(function(t){var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=c;var i=r(212),o=r(216);r(3)(c,i);for(var a=n(o.prototype),s=0;s<a.length;s++){var u=a[s];c.prototype[u]||(c.prototype[u]=o.prototype[u])}function c(e){if(!(this instanceof c))return new c(e);i.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||t.nextTick(l,this)}function l(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}).call(this,r(6))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.N_DIV_2=t.isAccessList=t.isAccessListBuffer=t.Capability=void 0;var n=r(27);function i(e){if(0===e.length)return!0;var t=e[0];return!!Array.isArray(t)}!function(e){e[e.EIP155ReplayProtection=155]="EIP155ReplayProtection",e[e.EIP1559FeeMarket=1559]="EIP1559FeeMarket",e[e.EIP2718TypedTransaction=2718]="EIP2718TypedTransaction",e[e.EIP2930AccessLists=2930]="EIP2930AccessLists"}(t.Capability||(t.Capability={})),t.isAccessListBuffer=i,t.isAccessList=function(e){return!i(e)},t.N_DIV_2=new n.BN("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16)},function(e,t,r){"use strict";(function(e){var n=r(0)(r(2));function i(e){if("string"!=typeof e)throw new Error("[isHexPrefixed] input must be type 'string', received type ".concat((0,n.default)(e)));return"0"===e[0]&&"x"===e[1]}function o(e){var t=e;if("string"!=typeof t)throw new Error("[padToEven] value must be type 'string', received ".concat((0,n.default)(t)));return t.length%2&&(t="0".concat(t)),t}Object.defineProperty(t,"__esModule",{value:!0}),t.isHexString=t.getKeys=t.fromAscii=t.fromUtf8=t.toAscii=t.arrayContainsArray=t.getBinarySize=t.padToEven=t.stripHexPrefix=t.isHexPrefixed=void 0,t.isHexPrefixed=i,t.stripHexPrefix=function(e){if("string"!=typeof e)throw new Error("[stripHexPrefix] input must be type 'string', received ".concat((0,n.default)(e)));return i(e)?e.slice(2):e},t.padToEven=o,t.getBinarySize=function(t){if("string"!=typeof t)throw new Error("[getBinarySize] method requires input type 'string', recieved ".concat((0,n.default)(t)));return e.byteLength(t,"utf8")},t.arrayContainsArray=function(e,t,r){if(!0!==Array.isArray(e))throw new Error("[arrayContainsArray] method requires input 'superset' to be an array, got type '".concat((0,n.default)(e),"'"));if(!0!==Array.isArray(t))throw new Error("[arrayContainsArray] method requires input 'subset' to be an array, got type '".concat((0,n.default)(t),"'"));return t[r?"some":"every"]((function(t){return e.indexOf(t)>=0}))},t.toAscii=function(e){var t="",r=0,n=e.length;for("0x"===e.substring(0,2)&&(r=2);r<n;r+=2){var i=parseInt(e.substr(r,2),16);t+=String.fromCharCode(i)}return t},t.fromUtf8=function(t){var r=e.from(t,"utf8");return"0x".concat(o(r.toString("hex")).replace(/^0+|0+$/g,""))},t.fromAscii=function(e){for(var t="",r=0;r<e.length;r++){var n=e.charCodeAt(r).toString(16);t+=n.length<2?"0".concat(n):n}return"0x".concat(t)},t.getKeys=function(e,t,r){if(!Array.isArray(e))throw new Error("[getKeys] method expects input 'params' to be an array, got ".concat((0,n.default)(e)));if("string"!=typeof t)throw new Error("[getKeys] method expects input 'key' to be type 'string', got ".concat((0,n.default)(e)));for(var i=[],o=0;o<e.length;o++){var a=e[o][t];if(r&&!a)a="";else if("string"!=typeof a)throw new Error("invalid abi - expected type 'string', received ".concat((0,n.default)(a)));i.push(a)}return i},t.isHexString=function(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}}).call(this,r(1).Buffer)},function(e,t,r){"use strict";var n=r(0)(r(2)),i={};function o(e,t,r){r||(r=Error);var n=function(e){var r,n;function i(r,n,i){return e.call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,n,i))||this}return n=e,(r=i).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,i}(r);n.prototype.name=r.name,n.prototype.code=e,i[e]=n}function a(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}o("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(e,t,r){var i,o,s;if("string"==typeof t&&(o="not ",t.substr(0,4)===o)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-9,r)===t}(e," argument"))s="The ".concat(e," ").concat(i," ").concat(a(t,"type"));else{var u=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+1>e.length)&&-1!==e.indexOf(".",r)}(e)?"property":"argument";s='The "'.concat(e,'" ').concat(u," ").concat(i," ").concat(a(t,"type"))}return s+". Received type ".concat((0,n.default)(r))}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=i},function(e,t,r){"use strict";(function(t){var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=c;var i=r(242),o=r(246);r(10)(c,i);for(var a=n(o.prototype),s=0;s<a.length;s++){var u=a[s];c.prototype[u]||(c.prototype[u]=o.prototype[u])}function c(e){if(!(this instanceof c))return new c(e);i.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||t.nextTick(l,this)}function l(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}).call(this,r(6))},function(e,t,r){"use strict";var n=r(24).Buffer;function i(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=n.from(e,t));for(var r=this._block,i=this._blockSize,o=e.length,a=this._len,s=0;s<o;){for(var u=a%i,c=Math.min(o-s,i-u),f=0;f<c;f++)r[u+f]=e[s+f];s+=c,(a+=c)%i==0&&this._update(r)}return this._len+=o,this},i.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},function(e,t,r){"use strict";e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";var n=t;n.version=r(271).version,n.utils=r(18),n.rand=r(93),n.curve=r(138),n.curves=r(94),n.ec=r(283),n.eddsa=r(287)},function(e,t,r){"use strict";var n=r(25),i=r(19);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=new Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=e>>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o<this.padLength;o++)n[i++]=0;return n}},function(e,t,r){"use strict";(t=e.exports=r(161)).Stream=t,t.Readable=t,t.Writable=r(102),t.Duplex=r(37),t.Transform=r(165),t.PassThrough=r(322)},function(e,t,r){"use strict";var n=r(0)(r(2));function i(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===i(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"===(0,n.default)(e)},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===i(e)},t.isObject=function(e){return"object"===(0,n.default)(e)&&null!==e},t.isDate=function(e){return"[object Date]"===i(e)},t.isError=function(e){return"[object Error]"===i(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===(0,n.default)(e)||void 0===e},t.isBuffer=r(1).Buffer.isBuffer},function(e,t,r){"use strict";var n=r(0)(r(2)),i=r(357)();e.exports=i;try{regeneratorRuntime=i}catch(e){"object"===("undefined"==typeof globalThis?"undefined":(0,n.default)(globalThis))?globalThis.regeneratorRuntime=i:Function("r","regeneratorRuntime = r")(i)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="abi/5.7.0"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"UnicodeNormalizationForm",{enumerable:!0,get:function(){return o.UnicodeNormalizationForm}}),Object.defineProperty(t,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return o.Utf8ErrorFuncs}}),Object.defineProperty(t,"Utf8ErrorReason",{enumerable:!0,get:function(){return o.Utf8ErrorReason}}),Object.defineProperty(t,"_toEscapedUtf8String",{enumerable:!0,get:function(){return o._toEscapedUtf8String}}),Object.defineProperty(t,"formatBytes32String",{enumerable:!0,get:function(){return n.formatBytes32String}}),Object.defineProperty(t,"nameprep",{enumerable:!0,get:function(){return i.nameprep}}),Object.defineProperty(t,"parseBytes32String",{enumerable:!0,get:function(){return n.parseBytes32String}}),Object.defineProperty(t,"toUtf8Bytes",{enumerable:!0,get:function(){return o.toUtf8Bytes}}),Object.defineProperty(t,"toUtf8CodePoints",{enumerable:!0,get:function(){return o.toUtf8CodePoints}}),Object.defineProperty(t,"toUtf8String",{enumerable:!0,get:function(){return o.toUtf8String}});var n=r(387),i=r(389),o=r(108)},function(e,t,r){"use strict";e.exports={encode:r(412),decode:r(413),encodingLength:r(414)}},function(e){e.exports=JSON.parse('{"identity":0,"ip4":4,"tcp":6,"sha1":17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,"blake3":30,"dccp":33,"murmur3-128":34,"murmur3-32":35,"ip6":41,"ip6zone":42,"path":47,"multicodec":48,"multihash":49,"multiaddr":50,"multibase":51,"dns":53,"dns4":54,"dns6":55,"dnsaddr":56,"protobuf":80,"cbor":81,"raw":85,"dbl-sha2-256":86,"rlp":96,"bencode":99,"dag-pb":112,"dag-cbor":113,"libp2p-key":114,"git-raw":120,"torrent-info":123,"torrent-file":124,"leofcoin-block":129,"leofcoin-tx":130,"leofcoin-pr":131,"sctp":132,"dag-jose":133,"dag-cose":134,"eth-block":144,"eth-block-list":145,"eth-tx-trie":146,"eth-tx":147,"eth-tx-receipt-trie":148,"eth-tx-receipt":149,"eth-state-trie":150,"eth-account-snapshot":151,"eth-storage-trie":152,"bitcoin-block":176,"bitcoin-tx":177,"bitcoin-witness-commitment":178,"zcash-block":192,"zcash-tx":193,"stellar-block":208,"stellar-tx":209,"md4":212,"md5":213,"bmt":214,"decred-block":224,"decred-tx":225,"ipld-ns":226,"ipfs-ns":227,"swarm-ns":228,"ipns-ns":229,"zeronet":230,"secp256k1-pub":231,"bls12_381-g1-pub":234,"bls12_381-g2-pub":235,"x25519-pub":236,"ed25519-pub":237,"dash-block":240,"dash-tx":241,"swarm-manifest":250,"swarm-feed":251,"udp":273,"p2p-webrtc-star":275,"p2p-webrtc-direct":276,"p2p-stardust":277,"p2p-circuit":290,"dag-json":297,"udt":301,"utp":302,"unix":400,"p2p":421,"ipfs":421,"https":443,"onion":444,"onion3":445,"garlic64":446,"garlic32":447,"tls":448,"quic":460,"ws":477,"wss":478,"p2p-websocket-star":479,"http":480,"json":512,"messagepack":513,"libp2p-peer-record":769,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,"x11":4352,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46000,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082,"zeroxcert-imprint-256":52753,"fil-commitment-unsealed":61697,"fil-commitment-sealed":61698,"holochain-adr-v0":8417572,"holochain-adr-v1":8483108,"holochain-key-v0":9728292,"holochain-key-v1":9793828,"holochain-sig-v0":10645796,"holochain-sig-v1":10711332}')},function(e,t,r){"use strict";(function(t){e.exports=function(e,r){for(var n=Math.min(e.length,r.length),i=new t(n),o=0;o<n;++o)i[o]=e[o]^r[o];return i}}).call(this,r(1).Buffer)},function(e,t,r){"use strict";var n=r(0)(r(2)),i=r(3),o=r(117).Reporter,a=r(115).Buffer;function s(e,t){o.call(this,t),a.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function u(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return u.isEncoderBuffer(e)||(e=new u(e,t)),this.length+=e.length,e}),this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=a.byteLength(e);else{if(!a.isBuffer(e))return t.error("Unsupported type: "+(0,n.default)(e));this.value=e,this.length=e.length}}i(s,o),t.DecoderBuffer=s,s.isDecoderBuffer=function(e){return e instanceof s||"object"===(0,n.default)(e)&&a.isBuffer(e.base)&&"DecoderBuffer"===e.constructor.name&&"number"==typeof e.offset&&"number"==typeof e.length&&"function"==typeof e.save&&"function"==typeof e.restore&&"function"==typeof e.isEmpty&&"function"==typeof e.readUInt8&&"function"==typeof e.skip&&"function"==typeof e.raw},s.prototype.save=function(){return{offset:this.offset,reporter:o.prototype.save.call(this)}},s.prototype.restore=function(e){var t=new s(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,o.prototype.restore.call(this,e.reporter),t},s.prototype.isEmpty=function(){return this.offset===this.length},s.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},s.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var r=new s(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+e,this.offset+=e,r},s.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.EncoderBuffer=u,u.isEncoderBuffer=function(e){return e instanceof u||"object"===(0,n.default)(e)&&"EncoderBuffer"===e.constructor.name&&"number"==typeof e.length&&"function"==typeof e.join},u.prototype.join=function(e,t){return e||(e=a.alloc(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(r){r.join(e,t),t+=r.length})):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):a.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},function(e,t,r){"use strict";var n=r(26),i=r(41);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=new Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=e>>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o<this.padLength;o++)n[i++]=0;return n}},function(e,t,r){"use strict";var n=r(4),i=r(18),o=i.getNAF,a=i.getJSF,s=i.assert;function u(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),n=o(t,1,this._bitLength),i=(1<<r.step+1)-(r.step%2==0?2:1);i/=3;var a,u,c=[];for(a=0;a<n.length;a+=r.step){u=0;for(var f=a+r.step-1;f>=a;f--)u=(u<<1)+n[f];c.push(u)}for(var l=this.jpoint(null,null,null),d=this.jpoint(null,null,null),h=i;h>0;h--){for(a=0;a<c.length;a++)(u=c[a])===h?d=d.mixedAdd(r.points[a]):u===-h&&(d=d.mixedAdd(r.points[a].neg()));l=l.add(d)}return l.toP()},u.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var i=n.points,a=o(t,r,this._bitLength),u=this.jpoint(null,null,null),c=a.length-1;c>=0;c--){for(var f=0;c>=0&&0===a[c];c--)f++;if(c>=0&&f++,u=u.dblp(f),c<0)break;var l=a[c];s(0!==l),u="affine"===e.type?l>0?u.mixedAdd(i[l-1>>1]):u.mixedAdd(i[-l-1>>1].neg()):l>0?u.add(i[l-1>>1]):u.add(i[-l-1>>1].neg())}return"affine"===e.type?u.toP():u},u.prototype._wnafMulAdd=function(e,t,r,n,i){var s,u,c,f=this._wnafT1,l=this._wnafT2,d=this._wnafT3,h=0;for(s=0;s<n;s++){var p=(c=t[s])._getNAFPoints(e);f[s]=p.wnd,l[s]=p.points}for(s=n-1;s>=1;s-=2){var b=s-1,y=s;if(1===f[b]&&1===f[y]){var g=[t[b],null,null,t[y]];0===t[b].y.cmp(t[y].y)?(g[1]=t[b].add(t[y]),g[2]=t[b].toJ().mixedAdd(t[y].neg())):0===t[b].y.cmp(t[y].y.redNeg())?(g[1]=t[b].toJ().mixedAdd(t[y]),g[2]=t[b].add(t[y].neg())):(g[1]=t[b].toJ().mixedAdd(t[y]),g[2]=t[b].toJ().mixedAdd(t[y].neg()));var m=[-3,-1,-5,-7,0,7,5,1,3],v=a(r[b],r[y]);for(h=Math.max(v[0].length,h),d[b]=new Array(h),d[y]=new Array(h),u=0;u<h;u++){var w=0|v[0][u],_=0|v[1][u];d[b][u]=m[3*(w+1)+(_+1)],d[y][u]=0,l[b]=g}}else d[b]=o(r[b],f[b],this._bitLength),d[y]=o(r[y],f[y],this._bitLength),h=Math.max(d[b].length,h),h=Math.max(d[y].length,h)}var x=this.jpoint(null,null,null),O=this._wnafT4;for(s=h;s>=0;s--){for(var k=0;s>=0;){var P=!0;for(u=0;u<n;u++)O[u]=0|d[u][s],0!==O[u]&&(P=!1);if(!P)break;k++,s--}if(s>=0&&k++,x=x.dblp(k),s<0)break;for(u=0;u<n;u++){var S=O[u];0!==S&&(S>0?c=l[u][S-1>>1]:S<0&&(c=l[u][-S-1>>1].neg()),x="affine"===c.type?x.mixedAdd(c):x.add(c))}}for(s=0;s<n;s++)l[s]=null;return i?x:x.toP()},u.BasePoint=c,c.prototype.eq=function(){throw new Error("Not implemented")},c.prototype.validate=function(){return this.curve.validate(this)},u.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?s(e[e.length-1]%2==0):7===e[0]&&s(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw new Error("Unknown point format")},c.prototype.encodeCompressed=function(e){return this.encode(e,!0)},c.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},c.prototype.encode=function(e,t){return i.encode(this._encode(t),e)},c.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},c.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},c.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)n=n.dbl();r.push(n)}return{step:e,points:r}},c.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},c.prototype._getBeta=function(){return null},c.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}},function(e,t,r){"use strict";var n=t;n.utils=r(25),n.common=r(60),n.sha=r(276),n.ripemd=r(280),n.hmac=r(281),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){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.assertIsString=t.assertIsArray=t.assertIsBuffer=t.assertIsHexString=void 0;var n=r(44);t.assertIsHexString=function(e){if(!(0,n.isHexString)(e)){var t="This method only supports 0x-prefixed hex strings but input was: ".concat(e);throw new Error(t)}},t.assertIsBuffer=function(t){if(!e.isBuffer(t)){var r="This method only supports Buffer but input was: ".concat(t);throw new Error(r)}},t.assertIsArray=function(e){if(!Array.isArray(e)){var t="This method only supports number arrays but input was: ".concat(e);throw new Error(t)}},t.assertIsString=function(e){if("string"!=typeof e){var t="This method only supports strings but input was: ".concat(e);throw new Error(t)}}}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){function r(e){try{if(!t.localStorage)return!1}catch(e){return!1}var r=t.localStorage[e];return null!=r&&"true"===String(r).toLowerCase()}e.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}}).call(this,r(7))},function(e,t,r){"use strict";(function(t){void 0===t||!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,r,n,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,r)}));case 3:return t.nextTick((function(){e.call(null,r,n)}));case 4:return t.nextTick((function(){e.call(null,r,n,i)}));default:for(o=new Array(s-1),a=0;a<o.length;)o[a++]=arguments[a];return t.nextTick((function(){e.apply(null,o)}))}}}:e.exports=t}).call(this,r(6))},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,r){"use strict";var n=r(0)(r(2)),i=r(168),o=r(338);function a(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=w,t.resolve=function(e,t){return w(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?w(e,!1,!0).resolveObject(t):t},t.format=function(e){return o.isString(e)&&(e=w(e)),e instanceof a?e.format():a.prototype.format.call(e)},t.Url=a;var s=/^([a-z0-9.+-]+:)/i,u=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,f=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(f),d=["%","/","?",";","#"].concat(l),h=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,b=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,y={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=r(339);function w(e,t,r){if(e&&o.isObject(e)&&e instanceof a)return e;var n=new a;return n.parse(e,t,r),n}a.prototype.parse=function(e,t,r){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+(0,n.default)(e));var a=e.indexOf("?"),u=-1!==a&&a<e.indexOf("#")?"?":"#",f=e.split(u);f[0]=f[0].replace(/\\/g,"/");var w=e=f.join(u);if(w=w.trim(),!r&&1===e.split("#").length){var _=c.exec(w);if(_)return this.path=w,this.href=w,this.pathname=_[1],_[2]?(this.search=_[2],this.query=t?v.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var x=s.exec(w);if(x){var O=(x=x[0]).toLowerCase();this.protocol=O,w=w.substr(x.length)}if(r||x||w.match(/^\/\/[^@\/]+@[^@\/]+/)){var k="//"===w.substr(0,2);!k||x&&g[x]||(w=w.substr(2),this.slashes=!0)}if(!g[x]&&(k||x&&!m[x])){for(var P,S,A=-1,E=0;E<h.length;E++)-1!==(M=w.indexOf(h[E]))&&(-1===A||M<A)&&(A=M);for(-1!==(S=-1===A?w.lastIndexOf("@"):w.lastIndexOf("@",A))&&(P=w.slice(0,S),w=w.slice(S+1),this.auth=decodeURIComponent(P)),A=-1,E=0;E<d.length;E++){var M;-1!==(M=w.indexOf(d[E]))&&(-1===A||M<A)&&(A=M)}-1===A&&(A=w.length),this.host=w.slice(0,A),w=w.slice(A),this.parseHost(),this.hostname=this.hostname||"";var j="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!j)for(var T=this.hostname.split(/\./),B=(E=0,T.length);E<B;E++){var I=T[E];if(I&&!I.match(p)){for(var N="",R=0,C=I.length;R<C;R++)I.charCodeAt(R)>127?N+="x":N+=I[R];if(!N.match(p)){var U=T.slice(0,E),L=T.slice(E+1),D=I.match(b);D&&(U.push(D[1]),L.unshift(D[2])),L.length&&(w="/"+L.join(".")+w),this.hostname=U.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),j||(this.hostname=i.toASCII(this.hostname));var H=this.port?":"+this.port:"",F=this.hostname||"";this.host=F+H,this.href+=this.host,j&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==w[0]&&(w="/"+w))}if(!y[O])for(E=0,B=l.length;E<B;E++){var V=l[E];if(-1!==w.indexOf(V)){var z=encodeURIComponent(V);z===V&&(z=escape(V)),w=w.split(V).join(z)}}var q=w.indexOf("#");-1!==q&&(this.hash=w.substr(q),w=w.slice(0,q));var K=w.indexOf("?");if(-1!==K?(this.search=w.substr(K),this.query=w.substr(K+1),t&&(this.query=v.parse(this.query)),w=w.slice(0,K)):t&&(this.search="",this.query={}),w&&(this.pathname=w),m[O]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){H=this.pathname||"";var W=this.search||"";this.path=H+W}return this.href=this.format(),this},a.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,a="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(a=v.stringify(this.query));var s=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||m[t])&&!1!==i?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i||(i=""),n&&"#"!==n.charAt(0)&&(n="#"+n),s&&"?"!==s.charAt(0)&&(s="?"+s),t+i+(r=r.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+n},a.prototype.resolve=function(e){return this.resolveObject(w(e,!1,!0)).format()},a.prototype.resolveObject=function(e){if(o.isString(e)){var t=new a;t.parse(e,!1,!0),e=t}for(var r=new a,n=Object.keys(this),i=0;i<n.length;i++){var s=n[i];r[s]=this[s]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var u=Object.keys(e),c=0;c<u.length;c++){var f=u[c];"protocol"!==f&&(r[f]=e[f])}return m[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!m[e.protocol]){for(var l=Object.keys(e),d=0;d<l.length;d++){var h=l[d];r[h]=e[h]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||g[e.protocol])r.pathname=e.pathname;else{for(var p=(e.pathname||"").split("/");p.length&&!(e.host=p.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),r.pathname=p.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var b=r.pathname||"",y=r.search||"";r.path=b+y}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var v=r.pathname&&"/"===r.pathname.charAt(0),w=e.host||e.pathname&&"/"===e.pathname.charAt(0),_=w||v||r.host&&e.pathname,x=_,O=r.pathname&&r.pathname.split("/")||[],k=(p=e.pathname&&e.pathname.split("/")||[],r.protocol&&!m[r.protocol]);if(k&&(r.hostname="",r.port=null,r.host&&(""===O[0]?O[0]=r.host:O.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===p[0]?p[0]=e.host:p.unshift(e.host)),e.host=null),_=_&&(""===p[0]||""===O[0])),w)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,O=p;else if(p.length)O||(O=[]),O.pop(),O=O.concat(p),r.search=e.search,r.query=e.query;else if(!o.isNullOrUndefined(e.search))return k&&(r.hostname=r.host=O.shift(),(M=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=M.shift(),r.host=r.hostname=M.shift())),r.search=e.search,r.query=e.query,o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!O.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var P=O.slice(-1)[0],S=(r.host||e.host||O.length>1)&&("."===P||".."===P)||""===P,A=0,E=O.length;E>=0;E--)"."===(P=O[E])?O.splice(E,1):".."===P?(O.splice(E,1),A++):A&&(O.splice(E,1),A--);if(!_&&!x)for(;A--;A)O.unshift("..");!_||""===O[0]||O[0]&&"/"===O[0].charAt(0)||O.unshift(""),S&&"/"!==O.join("/").substr(-1)&&O.push("");var M,j=""===O[0]||O[0]&&"/"===O[0].charAt(0);return k&&(r.hostname=r.host=j?"":O.length?O.shift():"",(M=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=M.shift(),r.host=r.hostname=M.shift())),(_=_||r.host&&O.length)&&!j&&O.unshift(""),O.length?r.pathname=O.join("/"):(r.pathname=null,r.path=null),o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},a.prototype.parseHost=function(){var e=this.host,t=u.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,r){"use strict";var n=r(104),i=function(e){var t,r,i=new Promise((function(){t=arguments[0],r=arguments[1]}));if(e)return{resolve:t,reject:r,eventEmitter:i};var o=new n;return i._events=o._events,i.emit=o.emit,i.on=o.on,i.once=o.once,i.off=o.off,i.listeners=o.listeners,i.addListener=o.addListener,i.removeListener=o.removeListener,i.removeAllListeners=o.removeAllListeners,{resolve:t,reject:r,eventEmitter:i}};i.resolve=function(e){var t=i(!0);return t.resolve(e),t.eventEmitter},e.exports=i},function(e,t,r){"use strict";var n=r(358),i=function(e){this.name=e.name,this.type=e.type,this.subscriptions=e.subscriptions||{},this.requestManager=null};i.prototype.setRequestManager=function(e){this.requestManager=e},i.prototype.attachToObject=function(e){var t=this.buildCall(),r=this.name.split(".");r.length>1?(e[r[0]]=e[r[0]]||{},e[r[0]][r[1]]=t):e[r[0]]=t},i.prototype.buildCall=function(){var e=this;return function(){e.subscriptions[arguments[0]]||console.warn("Subscription "+JSON.stringify(arguments[0])+" doesn't exist. Subscribing anyway.");var t=new n({subscription:e.subscriptions[arguments[0]]||{},requestManager:e.requestManager,type:e.type});return t.subscribe.apply(t,arguments)}},e.exports={subscriptions:i,subscription:n}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAddress=g,t.getContractAddress=function(e){var t=null;try{t=g(e.from)}catch(t){c.throwArgumentError("missing from address","transaction",e)}var r=(0,n.stripZeros)((0,n.arrayify)(i.BigNumber.from(e.nonce).toHexString()));return g((0,n.hexDataSlice)((0,o.keccak256)((0,a.encode)([t,r])),12))},t.getCreate2Address=function(e,t,r){return 32!==(0,n.hexDataLength)(t)&&c.throwArgumentError("salt must be 32 bytes","salt",t),32!==(0,n.hexDataLength)(r)&&c.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",r),g((0,n.hexDataSlice)((0,o.keccak256)((0,n.concat)(["0xff",g(e),t,r])),12))},t.getIcapAddress=function(e){for(var t=(0,i._base16To36)(g(e).substring(2)).toUpperCase();t.length<30;)t="0"+t;return"XE"+y("XE00"+t)+t},t.isAddress=function(e){try{return g(e),!0}catch(e){}return!1};var n=r(11),i=r(33),o=r(39),a=r(175),s=r(16),u=r(365),c=new s.Logger(u.version);function f(e){(0,n.isHexString)(e,20)||c.throwArgumentError("invalid address","address",e);for(var t=(e=e.toLowerCase()).substring(2).split(""),r=new Uint8Array(40),i=0;i<40;i++)r[i]=t[i].charCodeAt(0);for(var a=(0,n.arrayify)((0,o.keccak256)(r)),s=0;s<40;s+=2)a[s>>1]>>4>=8&&(t[s]=t[s].toUpperCase()),(15&a[s>>1])>=8&&(t[s+1]=t[s+1].toUpperCase());return"0x"+t.join("")}for(var l={},d=0;d<10;d++)l[String(d)]=String(d);for(var h=0;h<26;h++)l[String.fromCharCode(65+h)]=String(10+h);var p,b=Math.floor((p=9007199254740991,Math.log10?Math.log10(p):Math.log(p)/Math.LN10));function y(e){for(var t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map((function(e){return l[e]})).join("");t.length>=b;){var r=t.substring(0,b);t=parseInt(r,10)%97+t.substring(r.length)}for(var n=String(98-parseInt(t,10)%97);n.length<2;)n="0"+n;return n}function g(e){var t=null;if("string"!=typeof e&&c.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),t=f(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&c.throwArgumentError("bad address checksum","address",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==y(e)&&c.throwArgumentError("bad icap checksum","address",e),t=(0,i._base36To16)(e.substring(4));t.length<40;)t="0"+t;t=f("0x"+t)}else c.throwArgumentError("invalid address","address",e);return t}},function(e,t,r){"use strict";var n=r(34),i=r(38),o=r(17),a=function(){var e=this;n.packageInit(this,arguments),[new i({name:"getId",call:"net_version",params:0,outputFormatter:parseInt}),new i({name:"isListening",call:"net_listening",params:0}),new i({name:"getPeerCount",call:"net_peerCount",params:0,outputFormatter:o.hexToNumber})].forEach((function(t){t.attachToObject(e),t.setRequestManager(e._requestManager)}))};n.addProviders(a),e.exports=a},function(e){e.exports=JSON.parse('{"identity":0,"ip4":4,"tcp":6,"sha1":17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,"dccp":33,"murmur3-128":34,"murmur3-32":35,"ip6":41,"ip6zone":42,"path":47,"multicodec":48,"multihash":49,"multiaddr":50,"multibase":51,"dns":53,"dns4":54,"dns6":55,"dnsaddr":56,"protobuf":80,"cbor":81,"raw":85,"dbl-sha2-256":86,"rlp":96,"bencode":99,"dag-pb":112,"dag-cbor":113,"libp2p-key":114,"git-raw":120,"torrent-info":123,"torrent-file":124,"leofcoin-block":129,"leofcoin-tx":130,"leofcoin-pr":131,"sctp":132,"eth-block":144,"eth-block-list":145,"eth-tx-trie":146,"eth-tx":147,"eth-tx-receipt-trie":148,"eth-tx-receipt":149,"eth-state-trie":150,"eth-account-snapshot":151,"eth-storage-trie":152,"bitcoin-block":176,"bitcoin-tx":177,"zcash-block":192,"zcash-tx":193,"stellar-block":208,"stellar-tx":209,"md4":212,"md5":213,"bmt":214,"decred-block":224,"decred-tx":225,"ipld-ns":226,"ipfs-ns":227,"swarm-ns":228,"ipns-ns":229,"zeronet":230,"ed25519-pub":237,"dash-block":240,"dash-tx":241,"swarm-manifest":250,"swarm-feed":251,"udp":273,"p2p-webrtc-star":275,"p2p-webrtc-direct":276,"p2p-stardust":277,"p2p-circuit":290,"dag-json":297,"udt":301,"utp":302,"unix":400,"p2p":421,"ipfs":421,"https":443,"onion":444,"onion3":445,"garlic64":446,"garlic32":447,"tls":448,"quic":460,"ws":477,"wss":478,"p2p-websocket-star":479,"http":480,"json":512,"messagepack":513,"x11":4352,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46000,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"holochain-adr-v0":8417572,"holochain-adr-v1":8483108,"holochain-key-v0":9728292,"holochain-key-v1":9793828,"holochain-sig-v0":10645796,"holochain-sig-v1":10711332}')},function(e,t,r){"use strict";t.randomBytes=t.rng=t.pseudoRandomBytes=t.prng=r(31),t.createHash=t.Hash=r(47),t.createHmac=t.Hmac=r(195);var n=r(447),i=Object.keys(n),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);t.getHashes=function(){return o};var a=r(198);t.pbkdf2=a.pbkdf2,t.pbkdf2Sync=a.pbkdf2Sync;var s=r(449);t.Cipher=s.Cipher,t.createCipher=s.createCipher,t.Cipheriv=s.Cipheriv,t.createCipheriv=s.createCipheriv,t.Decipher=s.Decipher,t.createDecipher=s.createDecipher,t.Decipheriv=s.Decipheriv,t.createDecipheriv=s.createDecipheriv,t.getCiphers=s.getCiphers,t.listCiphers=s.listCiphers;var u=r(464);t.DiffieHellmanGroup=u.DiffieHellmanGroup,t.createDiffieHellmanGroup=u.createDiffieHellmanGroup,t.getDiffieHellman=u.getDiffieHellman,t.createDiffieHellman=u.createDiffieHellman,t.DiffieHellman=u.DiffieHellman;var c=r(467);t.createSign=c.createSign,t.Sign=c.Sign,t.createVerify=c.createVerify,t.Verify=c.Verify,t.createECDH=r(487);var f=r(488);t.publicEncrypt=f.publicEncrypt,t.privateEncrypt=f.privateEncrypt,t.publicDecrypt=f.publicDecrypt,t.privateDecrypt=f.privateDecrypt;var l=r(491);t.randomFill=l.randomFill,t.randomFillSync=l.randomFillSync,t.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},t.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},function(e,t,r){"use strict";var n=r(5).Buffer;function i(e){n.isBuffer(e)||(e=n.from(e));for(var t=e.length/4|0,r=new Array(t),i=0;i<t;i++)r[i]=e.readUInt32BE(4*i);return r}function o(e){for(;0<e.length;e++)e[0]=0}function a(e,t,r,n,i){for(var o,a,s,u,c=r[0],f=r[1],l=r[2],d=r[3],h=e[0]^t[0],p=e[1]^t[1],b=e[2]^t[2],y=e[3]^t[3],g=4,m=1;m<i;m++)o=c[h>>>24]^f[p>>>16&255]^l[b>>>8&255]^d[255&y]^t[g++],a=c[p>>>24]^f[b>>>16&255]^l[y>>>8&255]^d[255&h]^t[g++],s=c[b>>>24]^f[y>>>16&255]^l[h>>>8&255]^d[255&p]^t[g++],u=c[y>>>24]^f[h>>>16&255]^l[p>>>8&255]^d[255&b]^t[g++],h=o,p=a,b=s,y=u;return o=(n[h>>>24]<<24|n[p>>>16&255]<<16|n[b>>>8&255]<<8|n[255&y])^t[g++],a=(n[p>>>24]<<24|n[b>>>16&255]<<16|n[y>>>8&255]<<8|n[255&h])^t[g++],s=(n[b>>>24]<<24|n[y>>>16&255]<<16|n[h>>>8&255]<<8|n[255&p])^t[g++],u=(n[y>>>24]<<24|n[h>>>16&255]<<16|n[p>>>8&255]<<8|n[255&b])^t[g++],[o>>>=0,a>>>=0,s>>>=0,u>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],u=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],n=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,u=0;u<256;++u){var c=s^s<<1^s<<2^s<<3^s<<4;c=c>>>8^255&c^99,r[a]=c,n[c]=a;var f=e[a],l=e[f],d=e[l],h=257*e[c]^16843008*c;i[0][a]=h<<24|h>>>8,i[1][a]=h<<16|h>>>16,i[2][a]=h<<8|h>>>24,i[3][a]=h,h=16843009*d^65537*l^257*f^16843008*a,o[0][c]=h<<24|h>>>8,o[1][c]=h<<16|h>>>16,o[2][c]=h<<8|h>>>24,o[3][c]=h,0===a?a=s=1:(a=f^e[e[e[d^f]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:o}}();function c(e){this._key=i(e),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=4*(r+1),i=[],o=0;o<t;o++)i[o]=e[o];for(o=t;o<n;o++){var a=i[o-1];o%t==0?(a=a<<8|a>>>24,a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a],a^=s[o/t|0]<<24):t>6&&o%t==4&&(a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a]),i[o]=i[o-t]^a}for(var c=[],f=0;f<n;f++){var l=n-f,d=i[l-(f%4?0:4)];c[f]=f<4||l<=4?d:u.INV_SUB_MIX[0][u.SBOX[d>>>24]]^u.INV_SUB_MIX[1][u.SBOX[d>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[d>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&d]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=c},c.prototype.encryptBlockRaw=function(e){return a(e=i(e),this._keySchedule,u.SUB_MIX,u.SBOX,this._nRounds)},c.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=n.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},c.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var r=a(e,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),o=n.allocUnsafe(16);return o.writeUInt32BE(r[0],0),o.writeUInt32BE(r[3],4),o.writeUInt32BE(r[2],8),o.writeUInt32BE(r[1],12),o},c.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},e.exports.AES=c},function(e,t,r){"use strict";var n=r(5).Buffer,i=r(97);e.exports=function(e,t,r,o){if(n.isBuffer(e)||(e=n.from(e,"binary")),t&&(n.isBuffer(t)||(t=n.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=r/8,s=n.alloc(a),u=n.alloc(o||0),c=n.alloc(0);a>0||o>0;){var f=new i;f.update(c),f.update(e),t&&f.update(t),c=f.digest();var l=0;if(a>0){var d=s.length-a;l=Math.min(a,c.length),c.copy(s,d,0,l),a-=l}if(l<c.length&&o>0){var h=u.length-o,p=Math.min(o,c.length-l);c.copy(u,h,l,l+p),o-=p}}return c.fill(0),{key:s,iv:u}}},function(e,t,r){"use strict";var n=r(0)(r(2)),i=r(477),o=r(484),a=r(485),s=r(111),u=r(198),c=r(5).Buffer;function f(e){var t;"object"!==(0,n.default)(e)||c.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=c.from(e));var r,f,l=a(e,t),d=l.tag,h=l.data;switch(d){case"CERTIFICATE":f=i.certificate.decode(h,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(f||(f=i.PublicKey.decode(h,"der")),r=f.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPublicKey.decode(f.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return f.subjectPrivateKey=f.subjectPublicKey,{type:"ec",data:f};case"1.2.840.10040.4.1":return f.algorithm.params.pub_key=i.DSAparam.decode(f.subjectPublicKey.data,"der"),{type:"dsa",data:f.algorithm.params};default:throw new Error("unknown key id "+r)}case"ENCRYPTED PRIVATE KEY":h=function(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),i=o[e.algorithm.decrypt.cipher.algo.join(".")],a=e.algorithm.decrypt.cipher.iv,f=e.subjectPrivateKey,l=parseInt(i.split("-")[1],10)/8,d=u.pbkdf2Sync(t,r,n,l,"sha1"),h=s.createDecipheriv(i,d,a),p=[];return p.push(h.update(f)),p.push(h.final()),c.concat(p)}(h=i.EncryptedPrivateKey.decode(h,"der"),t);case"PRIVATE KEY":switch(r=(f=i.PrivateKey.decode(h,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPrivateKey.decode(f.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:f.algorithm.curve,privateKey:i.ECPrivateKey.decode(f.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return f.algorithm.params.priv_key=i.DSAparam.decode(f.subjectPrivateKey,"der"),{type:"dsa",params:f.algorithm.params};default:throw new Error("unknown key id "+r)}case"RSA PUBLIC KEY":return i.RSAPublicKey.decode(h,"der");case"RSA PRIVATE KEY":return i.RSAPrivateKey.decode(h,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:i.DSAPrivateKey.decode(h,"der")};case"EC PRIVATE KEY":return{curve:(h=i.ECPrivateKey.decode(h,"der")).parameters.value,privateKey:h.privateKey};default:throw new Error("unknown key type "+d)}}e.exports=f,f.signature=i.signature},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=s;for(var i=n(r(88)),o=[],a=0;a<256;++a)o.push((a+256).toString(16).slice(1));function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]).toLowerCase()}t.default=function(e){var t=s(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0);if(!(0,i.default)(t))throw TypeError("Stringified UUID is invalid");return t}},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(498));t.default=function(e){return"string"==typeof e&&i.default.test(e)}},function(e,t,r){"use strict";var n=r(4),i=r(22),o=i.getNAF,a=i.getJSF,s=i.assert;function u(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),n=o(t,1,this._bitLength),i=(1<<r.step+1)-(r.step%2==0?2:1);i/=3;var a,u,c=[];for(a=0;a<n.length;a+=r.step){u=0;for(var f=a+r.step-1;f>=a;f--)u=(u<<1)+n[f];c.push(u)}for(var l=this.jpoint(null,null,null),d=this.jpoint(null,null,null),h=i;h>0;h--){for(a=0;a<c.length;a++)(u=c[a])===h?d=d.mixedAdd(r.points[a]):u===-h&&(d=d.mixedAdd(r.points[a].neg()));l=l.add(d)}return l.toP()},u.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var i=n.points,a=o(t,r,this._bitLength),u=this.jpoint(null,null,null),c=a.length-1;c>=0;c--){for(var f=0;c>=0&&0===a[c];c--)f++;if(c>=0&&f++,u=u.dblp(f),c<0)break;var l=a[c];s(0!==l),u="affine"===e.type?l>0?u.mixedAdd(i[l-1>>1]):u.mixedAdd(i[-l-1>>1].neg()):l>0?u.add(i[l-1>>1]):u.add(i[-l-1>>1].neg())}return"affine"===e.type?u.toP():u},u.prototype._wnafMulAdd=function(e,t,r,n,i){var s,u,c,f=this._wnafT1,l=this._wnafT2,d=this._wnafT3,h=0;for(s=0;s<n;s++){var p=(c=t[s])._getNAFPoints(e);f[s]=p.wnd,l[s]=p.points}for(s=n-1;s>=1;s-=2){var b=s-1,y=s;if(1===f[b]&&1===f[y]){var g=[t[b],null,null,t[y]];0===t[b].y.cmp(t[y].y)?(g[1]=t[b].add(t[y]),g[2]=t[b].toJ().mixedAdd(t[y].neg())):0===t[b].y.cmp(t[y].y.redNeg())?(g[1]=t[b].toJ().mixedAdd(t[y]),g[2]=t[b].add(t[y].neg())):(g[1]=t[b].toJ().mixedAdd(t[y]),g[2]=t[b].toJ().mixedAdd(t[y].neg()));var m=[-3,-1,-5,-7,0,7,5,1,3],v=a(r[b],r[y]);for(h=Math.max(v[0].length,h),d[b]=new Array(h),d[y]=new Array(h),u=0;u<h;u++){var w=0|v[0][u],_=0|v[1][u];d[b][u]=m[3*(w+1)+(_+1)],d[y][u]=0,l[b]=g}}else d[b]=o(r[b],f[b],this._bitLength),d[y]=o(r[y],f[y],this._bitLength),h=Math.max(d[b].length,h),h=Math.max(d[y].length,h)}var x=this.jpoint(null,null,null),O=this._wnafT4;for(s=h;s>=0;s--){for(var k=0;s>=0;){var P=!0;for(u=0;u<n;u++)O[u]=0|d[u][s],0!==O[u]&&(P=!1);if(!P)break;k++,s--}if(s>=0&&k++,x=x.dblp(k),s<0)break;for(u=0;u<n;u++){var S=O[u];0!==S&&(S>0?c=l[u][S-1>>1]:S<0&&(c=l[u][-S-1>>1].neg()),x="affine"===c.type?x.mixedAdd(c):x.add(c))}}for(s=0;s<n;s++)l[s]=null;return i?x:x.toP()},u.BasePoint=c,c.prototype.eq=function(){throw new Error("Not implemented")},c.prototype.validate=function(){return this.curve.validate(this)},u.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?s(e[e.length-1]%2==0):7===e[0]&&s(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw new Error("Unknown point format")},c.prototype.encodeCompressed=function(e){return this.encode(e,!0)},c.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},c.prototype.encode=function(e,t){return i.encode(this._encode(t),e)},c.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},c.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},c.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)n=n.dbl();r.push(n)}return{step:e,points:r}},c.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},c.prototype._getBeta=function(){return null},c.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.assertIsString=t.assertIsArray=t.assertIsBuffer=t.assertIsHexString=void 0;var n=r(54);t.assertIsHexString=function(e){if(!(0,n.isHexString)(e)){var t="This method only supports 0x-prefixed hex strings but input was: ".concat(e);throw new Error(t)}},t.assertIsBuffer=function(t){if(!e.isBuffer(t)){var r="This method only supports Buffer but input was: ".concat(t);throw new Error(r)}},t.assertIsArray=function(e){if(!Array.isArray(e)){var t="This method only supports number arrays but input was: ".concat(e);throw new Error(t)}},t.assertIsString=function(e){if("string"!=typeof e){var t="This method only supports strings but input was: ".concat(e);throw new Error(t)}}}).call(this,r(1).Buffer)},function(e,t,r){"use strict";"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,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";var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u<arguments.length;u++){for(var c in r=Object(arguments[u]))i.call(r,c)&&(s[c]=r[c]);if(n){a=n(r);for(var f=0;f<a.length;f++)o.call(r,a[f])&&(s[a[f]]=r[a[f]])}}return s}},function(e,t,r){"use strict";var n,i=r(0)(r(2));function o(e){this.rand=e}if(e.exports=function(e){return n||(n=new o(null)),n.generate(e)},e.exports.Rand=o,o.prototype.generate=function(e){return this._rand(e)},o.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r<t.length;r++)t[r]=this.rand.getByte();return t},"object"===("undefined"==typeof self?"undefined":(0,i.default)(self)))self.crypto&&self.crypto.getRandomValues?o.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?o.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"===("undefined"==typeof window?"undefined":(0,i.default)(window))&&(o.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var a=r(272);if("function"!=typeof a.randomBytes)throw new Error("Not supported");o.prototype._rand=function(e){return a.randomBytes(e)}}catch(e){}},function(e,t,r){"use strict";var n,i=t,o=r(72),a=r(138),s=r(18).assert;function u(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new u(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=u,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(282)}catch(e){n=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.rlphash=t.ripemd160FromArray=t.ripemd160FromString=t.ripemd160=t.sha256FromArray=t.sha256FromString=t.sha256=t.keccakFromArray=t.keccakFromHexString=t.keccakFromString=t.keccak256=t.keccak=void 0;var n=r(291),i=r(47),o=r(28),a=r(36),s=r(73);t.keccak=function(e,t){switch(void 0===t&&(t=256),(0,s.assertIsBuffer)(e),t){case 224:return(0,n.keccak224)(e);case 256:return(0,n.keccak256)(e);case 384:return(0,n.keccak384)(e);case 512:return(0,n.keccak512)(e);default:throw new Error("Invald algorithm: keccak".concat(t))}},t.keccak256=function(e){return(0,t.keccak)(e)},t.keccakFromString=function(r,n){void 0===n&&(n=256),(0,s.assertIsString)(r);var i=e.from(r,"utf8");return(0,t.keccak)(i,n)},t.keccakFromHexString=function(e,r){return void 0===r&&(r=256),(0,s.assertIsHexString)(e),(0,t.keccak)((0,a.toBuffer)(e),r)},t.keccakFromArray=function(e,r){return void 0===r&&(r=256),(0,s.assertIsArray)(e),(0,t.keccak)((0,a.toBuffer)(e),r)};var u=function(e){return e=(0,a.toBuffer)(e),i("sha256").update(e).digest()};t.sha256=function(e){return(0,s.assertIsBuffer)(e),u(e)},t.sha256FromString=function(e){return(0,s.assertIsString)(e),u(e)},t.sha256FromArray=function(e){return(0,s.assertIsArray)(e),u(e)};var c=function(e,t){e=(0,a.toBuffer)(e);var r=i("rmd160").update(e).digest();return!0===t?(0,a.setLengthLeft)(r,32):r};t.ripemd160=function(e,t){return(0,s.assertIsBuffer)(e),c(e,t)},t.ripemd160FromString=function(e,t){return(0,s.assertIsString)(e),c(e,t)},t.ripemd160FromArray=function(e,t){return(0,s.assertIsArray)(e),c(e,t)},t.rlphash=function(e){return(0,t.keccak)(o.rlp.encode(e))}}).call(this,r(1).Buffer)},function(e,t,r){"use strict";var n=r(45).codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,r,o){if("function"==typeof r)return e(t,null,r);r||(r={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}(o||i);var a=r.readable||!1!==r.readable&&t.readable,s=r.writable||!1!==r.writable&&t.writable,u=function(){t.writable||f()},c=t._writableState&&t._writableState.finished,f=function(){s=!1,c=!0,a||o.call(t)},l=t._readableState&&t._readableState.endEmitted,d=function(){a=!1,l=!0,s||o.call(t)},h=function(e){o.call(t,e)},p=function(){var e;return a&&!l?(t._readableState&&t._readableState.ended||(e=new n),o.call(t,e)):s&&!c?(t._writableState&&t._writableState.ended||(e=new n),o.call(t,e)):void 0},b=function(){t.req.on("finish",f)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",f),t.on("abort",p),t.req?b():t.on("request",b)):s&&!t._writableState&&(t.on("end",u),t.on("close",u)),t.on("end",d),t.on("finish",f),!1!==r.error&&t.on("error",h),t.on("close",p),function(){t.removeListener("complete",f),t.removeListener("abort",p),t.removeListener("request",b),t.req&&t.req.removeListener("finish",f),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",f),t.removeListener("end",d),t.removeListener("error",h),t.removeListener("close",p)}}},function(e,t,r){"use strict";var n=r(3),i=r(151),o=r(5).Buffer,a=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function u(e,t){return e<<t|e>>>32-t}function c(e,t,r,n,i,o,a){return u(e+(t&r|~t&n)+i+o|0,a)+t|0}function f(e,t,r,n,i,o,a){return u(e+(t&n|r&~n)+i+o|0,a)+t|0}function l(e,t,r,n,i,o,a){return u(e+(t^r^n)+i+o|0,a)+t|0}function d(e,t,r,n,i,o,a){return u(e+(r^(t|~n))+i+o|0,a)+t|0}n(s,i),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,i=this._c,o=this._d;r=c(r,n,i,o,e[0],3614090360,7),o=c(o,r,n,i,e[1],3905402710,12),i=c(i,o,r,n,e[2],606105819,17),n=c(n,i,o,r,e[3],3250441966,22),r=c(r,n,i,o,e[4],4118548399,7),o=c(o,r,n,i,e[5],1200080426,12),i=c(i,o,r,n,e[6],2821735955,17),n=c(n,i,o,r,e[7],4249261313,22),r=c(r,n,i,o,e[8],1770035416,7),o=c(o,r,n,i,e[9],2336552879,12),i=c(i,o,r,n,e[10],4294925233,17),n=c(n,i,o,r,e[11],2304563134,22),r=c(r,n,i,o,e[12],1804603682,7),o=c(o,r,n,i,e[13],4254626195,12),i=c(i,o,r,n,e[14],2792965006,17),r=f(r,n=c(n,i,o,r,e[15],1236535329,22),i,o,e[1],4129170786,5),o=f(o,r,n,i,e[6],3225465664,9),i=f(i,o,r,n,e[11],643717713,14),n=f(n,i,o,r,e[0],3921069994,20),r=f(r,n,i,o,e[5],3593408605,5),o=f(o,r,n,i,e[10],38016083,9),i=f(i,o,r,n,e[15],3634488961,14),n=f(n,i,o,r,e[4],3889429448,20),r=f(r,n,i,o,e[9],568446438,5),o=f(o,r,n,i,e[14],3275163606,9),i=f(i,o,r,n,e[3],4107603335,14),n=f(n,i,o,r,e[8],1163531501,20),r=f(r,n,i,o,e[13],2850285829,5),o=f(o,r,n,i,e[2],4243563512,9),i=f(i,o,r,n,e[7],1735328473,14),r=l(r,n=f(n,i,o,r,e[12],2368359562,20),i,o,e[5],4294588738,4),o=l(o,r,n,i,e[8],2272392833,11),i=l(i,o,r,n,e[11],1839030562,16),n=l(n,i,o,r,e[14],4259657740,23),r=l(r,n,i,o,e[1],2763975236,4),o=l(o,r,n,i,e[4],1272893353,11),i=l(i,o,r,n,e[7],4139469664,16),n=l(n,i,o,r,e[10],3200236656,23),r=l(r,n,i,o,e[13],681279174,4),o=l(o,r,n,i,e[0],3936430074,11),i=l(i,o,r,n,e[3],3572445317,16),n=l(n,i,o,r,e[6],76029189,23),r=l(r,n,i,o,e[9],3654602809,4),o=l(o,r,n,i,e[12],3873151461,11),i=l(i,o,r,n,e[15],530742520,16),r=d(r,n=l(n,i,o,r,e[2],3299628645,23),i,o,e[0],4096336452,6),o=d(o,r,n,i,e[7],1126891415,10),i=d(i,o,r,n,e[14],2878612391,15),n=d(n,i,o,r,e[5],4237533241,21),r=d(r,n,i,o,e[12],1700485571,6),o=d(o,r,n,i,e[3],2399980690,10),i=d(i,o,r,n,e[10],4293915773,15),n=d(n,i,o,r,e[1],2240044497,21),r=d(r,n,i,o,e[8],1873313359,6),o=d(o,r,n,i,e[15],4264355552,10),i=d(i,o,r,n,e[6],2734768916,15),n=d(n,i,o,r,e[13],1309151649,21),r=d(r,n,i,o,e[4],4149444226,6),o=d(o,r,n,i,e[11],3174756917,10),i=d(i,o,r,n,e[2],718787259,15),n=d(n,i,o,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=o.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},function(e,t,r){"use strict";var n=r(48).codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,r,o){if("function"==typeof r)return e(t,null,r);r||(r={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}(o||i);var a=r.readable||!1!==r.readable&&t.readable,s=r.writable||!1!==r.writable&&t.writable,u=function(){t.writable||f()},c=t._writableState&&t._writableState.finished,f=function(){s=!1,c=!0,a||o.call(t)},l=t._readableState&&t._readableState.endEmitted,d=function(){a=!1,l=!0,s||o.call(t)},h=function(e){o.call(t,e)},p=function(){var e;return a&&!l?(t._readableState&&t._readableState.ended||(e=new n),o.call(t,e)):s&&!c?(t._writableState&&t._writableState.ended||(e=new n),o.call(t,e)):void 0},b=function(){t.req.on("finish",f)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",f),t.on("abort",p),t.req?b():t.on("request",b)):s&&!t._writableState&&(t.on("end",u),t.on("close",u)),t.on("end",d),t.on("finish",f),!1!==r.error&&t.on("error",h),t.on("close",p),function(){t.removeListener("complete",f),t.removeListener("abort",p),t.removeListener("request",b),t.req&&t.req.removeListener("finish",f),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",f),t.removeListener("end",d),t.removeListener("error",h),t.removeListener("close",p)}}},function(e,t,r){"use strict";var n=r(1).Buffer,i=r(3),o=r(151),a=new Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],u=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],c=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],f=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],l=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0];function h(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<<t|e>>>32-t}function b(e,t,r,n,i,o,a,s){return p(e+(t^r^n)+o+a|0,s)+i|0}function y(e,t,r,n,i,o,a,s){return p(e+(t&r|~t&n)+o+a|0,s)+i|0}function g(e,t,r,n,i,o,a,s){return p(e+((t|~r)^n)+o+a|0,s)+i|0}function m(e,t,r,n,i,o,a,s){return p(e+(t&n|r&~n)+o+a|0,s)+i|0}function v(e,t,r,n,i,o,a,s){return p(e+(t^(r|~n))+o+a|0,s)+i|0}i(h,o),h.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,h=0|this._e,w=0|this._a,_=0|this._b,x=0|this._c,O=0|this._d,k=0|this._e,P=0;P<80;P+=1){var S,A;P<16?(S=b(r,n,i,o,h,e[s[P]],l[0],c[P]),A=v(w,_,x,O,k,e[u[P]],d[0],f[P])):P<32?(S=y(r,n,i,o,h,e[s[P]],l[1],c[P]),A=m(w,_,x,O,k,e[u[P]],d[1],f[P])):P<48?(S=g(r,n,i,o,h,e[s[P]],l[2],c[P]),A=g(w,_,x,O,k,e[u[P]],d[2],f[P])):P<64?(S=m(r,n,i,o,h,e[s[P]],l[3],c[P]),A=y(w,_,x,O,k,e[u[P]],d[3],f[P])):(S=v(r,n,i,o,h,e[s[P]],l[4],c[P]),A=b(w,_,x,O,k,e[u[P]],d[4],f[P])),r=h,h=o,o=p(i,10),i=n,n=S,w=k,k=O,O=p(x,10),x=_,_=A}var E=this._b+i+O|0;this._b=this._c+o+k|0,this._c=this._d+h+w|0,this._d=this._e+r+_|0,this._e=this._a+n+x|0,this._a=E},h.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=n.alloc?n.alloc(20):new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=h},function(e,t,r){"use strict";var n=e.exports=function(e){e=e.toLowerCase();var t=n[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};n.sha=r(314),n.sha1=r(315),n.sha224=r(316),n.sha256=r(158),n.sha384=r(317),n.sha512=r(159)},function(e,t,r){"use strict";var n=r(1),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(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 i(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){"use strict";(function(t,n,i){var o=r(75);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(undefined),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=m;var s,u=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?n:o.nextTick;m.WritableState=g;var c=Object.create(r(62));c.inherits=r(3);var f,l={deprecate:r(74)},d=r(162),h=r(101).Buffer,p=i.Uint8Array||function(){},b=r(163);function y(){}function g(e,t){s=s||r(37),e=e||{};var n=t instanceof s;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,c=e.writableHighWaterMark,f=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(c||0===c)?c:f,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var l=!1===e.decodeStrings;this.decodeStrings=!l,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?(o.nextTick(i,n),o.nextTick(k,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),k(e,t))}(e,r,n,t,i);else{var a=x(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||_(e,r),n?u(w,e,r,a,i):w(e,r,a,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function m(e){if(s=s||r(37),!(f.call(m,this)||this instanceof s))return new m(e);this._writableState=new g(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),d.call(this)}function v(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function w(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),k(e,t)}function _(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),o=t.corkedRequestsFree;o.entry=r;for(var s=0,u=!0;r;)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;i.allBuffers=u,v(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,f=r.encoding,l=r.callback;if(v(e,t,!1,t.objectMode?1:c.length,c,f,l),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function x(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function O(e,t){e._final((function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),k(e,t)}))}function k(e,t){var r=x(t);return r&&(function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(O,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}c.inherits(m,d),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:l.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(f=Function.prototype[Symbol.hasInstance],Object.defineProperty(m,Symbol.hasInstance,{value:function(e){return!!f.call(this,e)||this===m&&e&&e._writableState instanceof g}})):f=function(e){return e instanceof this},m.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},m.prototype.write=function(e,t,r){var n,i=this._writableState,a=!1,s=!i.objectMode&&(n=e,h.isBuffer(n)||n instanceof p);return s&&!h.isBuffer(e)&&(e=function(e){return h.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=y),i.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),o.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var i=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o.nextTick(n,a),i=!1),i}(this,i,e,r))&&(i.pendingcb++,a=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=h.from(t,r)),t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else v(e,t,!1,s,n,i,o);return u}(this,i,s,e,t,r)),a},m.prototype.cork=function(){this._writableState.corked++},m.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||_(this,e))},m.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),m.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},m.prototype._writev=null,m.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,r){t.ending=!0,k(e,t),r&&(t.finished?o.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(m.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),m.prototype.destroy=b.destroy,m.prototype._undestroy=b.undestroy,m.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,r(6),r(164).setImmediate,r(7))},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.toType=t.TypeOutput=t.bnToRlp=t.bnToUnpaddedBuffer=t.bnToHex=void 0;var n,i=r(28),o=r(44),a=r(36);function s(t){return(0,a.unpadBuffer)(t.toArrayLike(e))}t.bnToHex=function(e){return"0x".concat(e.toString(16))},t.bnToUnpaddedBuffer=s,t.bnToRlp=function(e){return s(e)},function(e){e[e.Number=0]="Number",e[e.BN=1]="BN",e[e.Buffer=2]="Buffer",e[e.PrefixedHexString=3]="PrefixedHexString"}(n=t.TypeOutput||(t.TypeOutput={})),t.toType=function(e,t){if(null===e)return null;if(void 0!==e){if("string"==typeof e&&!(0,o.isHexString)(e))throw new Error("A string must be provided with a 0x-prefix, given: ".concat(e));if("number"==typeof e&&!Number.isSafeInteger(e))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");var r=(0,a.toBuffer)(e);if(t===n.Buffer)return r;if(t===n.BN)return new i.BN(r);if(t===n.Number){var s=new i.BN(r),u=new i.BN(Number.MAX_SAFE_INTEGER.toString());if(s.gt(u))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return s.toNumber()}return"0x".concat(r.toString("hex"))}}}).call(this,r(1).Buffer)},function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty,i="~";function o(){}function a(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function s(e,t,r,n,o){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new a(r,n||e,o),u=i?i+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],s]:e._events[u].push(s):(e._events[u]=s,e._eventsCount++),e}function u(e,t){0==--e._eventsCount?e._events=new o:delete e._events[t]}function c(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),c.prototype.eventNames=function(){var e,t,r=[];if(0===this._eventsCount)return r;for(t in e=this._events)n.call(e,t)&&r.push(i?t.slice(1):t);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},c.prototype.listeners=function(e){var t=i?i+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var n=0,o=r.length,a=new Array(o);n<o;n++)a[n]=r[n].fn;return a},c.prototype.listenerCount=function(e){var t=i?i+e:e,r=this._events[t];return r?r.fn?1:r.length:0},c.prototype.emit=function(e,t,r,n,o,a){var s=i?i+e:e;if(!this._events[s])return!1;var u,c,f=this._events[s],l=arguments.length;if(f.fn){switch(f.once&&this.removeListener(e,f.fn,void 0,!0),l){case 1:return f.fn.call(f.context),!0;case 2:return f.fn.call(f.context,t),!0;case 3:return f.fn.call(f.context,t,r),!0;case 4:return f.fn.call(f.context,t,r,n),!0;case 5:return f.fn.call(f.context,t,r,n,o),!0;case 6:return f.fn.call(f.context,t,r,n,o,a),!0}for(c=1,u=new Array(l-1);c<l;c++)u[c-1]=arguments[c];f.fn.apply(f.context,u)}else{var d,h=f.length;for(c=0;c<h;c++)switch(f[c].once&&this.removeListener(e,f[c].fn,void 0,!0),l){case 1:f[c].fn.call(f[c].context);break;case 2:f[c].fn.call(f[c].context,t);break;case 3:f[c].fn.call(f[c].context,t,r);break;case 4:f[c].fn.call(f[c].context,t,r,n);break;default:if(!u)for(d=1,u=new Array(l-1);d<l;d++)u[d-1]=arguments[d];f[c].fn.apply(f[c].context,u)}}return!0},c.prototype.on=function(e,t,r){return s(this,e,t,r,!1)},c.prototype.once=function(e,t,r){return s(this,e,t,r,!0)},c.prototype.removeListener=function(e,t,r,n){var o=i?i+e:e;if(!this._events[o])return this;if(!t)return u(this,o),this;var a=this._events[o];if(a.fn)a.fn!==t||n&&!a.once||r&&a.context!==r||u(this,o);else{for(var s=0,c=[],f=a.length;s<f;s++)(a[s].fn!==t||n&&!a[s].once||r&&a[s].context!==r)&&c.push(a[s]);c.length?this._events[o]=1===c.length?c[0]:c:u(this,o)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=i?i+e:e,this._events[t]&&u(this,t)):(this._events=new o,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=i,c.EventEmitter=c,e.exports=c},function(e,t,r){"use strict";function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(i,o){var a=e.apply(t,r);function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AddressZero",{enumerable:!0,get:function(){return n.AddressZero}}),Object.defineProperty(t,"EtherSymbol",{enumerable:!0,get:function(){return a.EtherSymbol}}),Object.defineProperty(t,"HashZero",{enumerable:!0,get:function(){return o.HashZero}}),Object.defineProperty(t,"MaxInt256",{enumerable:!0,get:function(){return i.MaxInt256}}),Object.defineProperty(t,"MaxUint256",{enumerable:!0,get:function(){return i.MaxUint256}}),Object.defineProperty(t,"MinInt256",{enumerable:!0,get:function(){return i.MinInt256}}),Object.defineProperty(t,"NegativeOne",{enumerable:!0,get:function(){return i.NegativeOne}}),Object.defineProperty(t,"One",{enumerable:!0,get:function(){return i.One}}),Object.defineProperty(t,"Two",{enumerable:!0,get:function(){return i.Two}}),Object.defineProperty(t,"WeiPerEther",{enumerable:!0,get:function(){return i.WeiPerEther}}),Object.defineProperty(t,"Zero",{enumerable:!0,get:function(){return i.Zero}});var n=r(366),i=r(367),o=r(368),a=r(369)},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.ParamType=t.FunctionFragment=t.Fragment=t.FormatTypes=t.EventFragment=t.ErrorFragment=t.ConstructorFragment=void 0;var i=n(r(14)),o=n(r(15)),a=n(r(13)),s=n(r(8)),u=n(r(9)),c=r(33),f=r(40),l=r(16),d=r(64);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,a.default)(e);if(t){var i=(0,a.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,o.default)(this,r)}}var p=new l.Logger(d.version),b={},y={calldata:!0,memory:!0,storage:!0},g={calldata:!0,memory:!0};function m(e,t){if("bytes"===e||"string"===e){if(y[t])return!0}else if("address"===e){if("payable"===t)return!0}else if((e.indexOf("[")>=0||"tuple"===e)&&g[t])return!0;return(y[t]||"payable"===t)&&p.throwArgumentError("invalid modifier","name",t),!1}function v(e,t){for(var r in t)(0,f.defineReadOnly)(e,r,t[r])}var w=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"});t.FormatTypes=w;var _=new RegExp(/^(.*)\[([0-9]*)\]$/),x=function(){function e(t,r){(0,s.default)(this,e),t!==b&&p.throwError("use fromString",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),v(this,r);var n=this.type.match(_);v(this,n?{arrayLength:parseInt(n[2]||"-1"),arrayChildren:e.fromObject({type:n[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}return(0,u.default)(e,[{key:"format",value:function(e){if(e||(e=w.sighash),w[e]||p.throwArgumentError("invalid format type","format",e),e===w.json){var 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((function(t){return JSON.parse(t.format(e))}))),JSON.stringify(t)}var r="";return"array"===this.baseType?(r+=this.arrayChildren.format(e),r+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(e!==w.sighash&&(r+=this.type),r+="("+this.components.map((function(t){return t.format(e)})).join(e===w.full?", ":",")+")"):r+=this.type,e!==w.sighash&&(!0===this.indexed&&(r+=" indexed"),e===w.full&&this.name&&(r+=" "+this.name)),r}}],[{key:"from",value:function(t,r){return"string"==typeof t?e.fromString(t,r):e.fromObject(t)}},{key:"fromObject",value:function(t){return e.isParamType(t)?t:new e(b,{name:t.name||null,type:I(t.type),indexed:null==t.indexed?null:!!t.indexed,components:t.components?t.components.map(e.fromObject):null})}},{key:"fromString",value:function(t,r){return function(t){return e.fromObject({name:t.name,type:t.type,indexed:t.indexed,components:t.components})}(function(e,t){var r=e;function n(t){p.throwArgumentError("unexpected character at position ".concat(t),"param",e)}function i(e){var r={type:"",name:"",parent:e,state:{allowType:!0}};return t&&(r.indexed=!1),r}e=e.replace(/\s/g," ");for(var o={type:"",name:"",state:{allowType:!0}},a=o,s=0;s<e.length;s++){var u=e[s];switch(u){case"(":a.state.allowType&&""===a.type?a.type="tuple":a.state.allowParams||n(s),a.state.allowType=!1,a.type=I(a.type),a.components=[i(a)],a=a.components[0];break;case")":delete a.state,"indexed"===a.name&&(t||n(s),a.indexed=!0,a.name=""),m(a.type,a.name)&&(a.name=""),a.type=I(a.type);var c=a;(a=a.parent)||n(s),delete c.parent,a.state.allowParams=!1,a.state.allowName=!0,a.state.allowArray=!0;break;case",":delete a.state,"indexed"===a.name&&(t||n(s),a.indexed=!0,a.name=""),m(a.type,a.name)&&(a.name=""),a.type=I(a.type);var f=i(a.parent);a.parent.components.push(f),delete a.parent,a=f;break;case" ":a.state.allowType&&""!==a.type&&(a.type=I(a.type),delete a.state.allowType,a.state.allowName=!0,a.state.allowParams=!0),a.state.allowName&&""!==a.name&&("indexed"===a.name?(t||n(s),a.indexed&&n(s),a.indexed=!0,a.name=""):m(a.type,a.name)?a.name="":a.state.allowName=!1);break;case"[":a.state.allowArray||n(s),a.type+=u,a.state.allowArray=!1,a.state.allowName=!1,a.state.readArray=!0;break;case"]":a.state.readArray||n(s),a.type+=u,a.state.readArray=!1,a.state.allowArray=!0,a.state.allowName=!0;break;default:a.state.allowType?(a.type+=u,a.state.allowParams=!0,a.state.allowArray=!0):a.state.allowName?(a.name+=u,delete a.state.allowArray):a.state.readArray?a.type+=u:n(s)}}return a.parent&&p.throwArgumentError("unexpected eof","param",e),delete o.state,"indexed"===a.name?(t||n(r.length-7),a.indexed&&n(r.length-7),a.indexed=!0,a.name=""):m(a.type,a.name)&&(a.name=""),o.type=I(o.type),o}(t,!!r))}},{key:"isParamType",value:function(e){return!(null==e||!e._isParamType)}}]),e}();function O(e,t){return function(e){e=e.trim();for(var t=[],r="",n=0,i=0;i<e.length;i++){var o=e[i];","===o&&0===n?(t.push(r),r=""):(r+=o,"("===o?n++:")"===o&&-1==--n&&p.throwArgumentError("unbalanced parenthesis","value",e))}return r&&t.push(r),t}(e).map((function(e){return x.fromString(e,t)}))}t.ParamType=x;var k=function(){function e(t,r){(0,s.default)(this,e),t!==b&&p.throwError("use a static from method",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),v(this,r),this._isFragment=!0,Object.freeze(this)}return(0,u.default)(e,null,[{key:"from",value:function(t){return e.isFragment(t)?t:"string"==typeof t?e.fromString(t):e.fromObject(t)}},{key:"fromObject",value:function(t){if(e.isFragment(t))return t;switch(t.type){case"function":return j.fromObject(t);case"event":return P.fromObject(t);case"constructor":return M.fromObject(t);case"error":return B.fromObject(t);case"fallback":case"receive":return null}return p.throwArgumentError("invalid fragment object","value",t)}},{key:"fromString",value:function(e){return"event"===(e=(e=(e=e.replace(/\s/g," ")).replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," ")).trim()).split(" ")[0]?P.fromString(e.substring(5).trim()):"function"===e.split(" ")[0]?j.fromString(e.substring(8).trim()):"constructor"===e.split("(")[0].trim()?M.fromString(e.trim()):"error"===e.split(" ")[0]?B.fromString(e.substring(5).trim()):p.throwArgumentError("unsupported fragment","value",e)}},{key:"isFragment",value:function(e){return!(!e||!e._isFragment)}}]),e}();t.Fragment=k;var P=function(e){(0,i.default)(r,e);var t=h(r);function r(){return(0,s.default)(this,r),t.apply(this,arguments)}return(0,u.default)(r,[{key:"format",value:function(e){if(e||(e=w.sighash),w[e]||p.throwArgumentError("invalid format type","format",e),e===w.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))}))});var t="";return e!==w.sighash&&(t+="event "),t+=this.name+"("+this.inputs.map((function(t){return t.format(e)})).join(e===w.full?", ":",")+") ",e!==w.sighash&&this.anonymous&&(t+="anonymous "),t.trim()}}],[{key:"from",value:function(e){return"string"==typeof e?r.fromString(e):r.fromObject(e)}},{key:"fromObject",value:function(e){if(r.isEventFragment(e))return e;"event"!==e.type&&p.throwArgumentError("invalid event object","value",e);var t={name:R(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(x.fromObject):[],type:"event"};return new r(b,t)}},{key:"fromString",value:function(e){var t=e.match(C);t||p.throwArgumentError("invalid event string","value",e);var n=!1;return t[3].split(" ").forEach((function(e){switch(e.trim()){case"anonymous":n=!0;break;case"":break;default:p.warn("unknown modifier: "+e)}})),r.fromObject({name:t[1].trim(),anonymous:n,inputs:O(t[2],!0),type:"event"})}},{key:"isEventFragment",value:function(e){return e&&e._isFragment&&"event"===e.type}}]),r}(k);function S(e,t){t.gas=null;var r=e.split("@");return 1!==r.length?(r.length>2&&p.throwArgumentError("invalid human-readable ABI signature","value",e),r[1].match(/^[0-9]+$/)||p.throwArgumentError("invalid human-readable ABI signature gas","value",e),t.gas=c.BigNumber.from(r[1]),r[0]):e}function A(e,t){t.constant=!1,t.payable=!1,t.stateMutability="nonpayable",e.split(" ").forEach((function(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 E(e){var 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&&p.throwArgumentError("cannot have constant function with mutability "+t.stateMutability,"value",e),t.payable="payable"===t.stateMutability,null!=e.payable&&!!e.payable!==t.payable&&p.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||p.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&&p.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&&p.throwArgumentError("unable to determine stateMutability","value",e),t}t.EventFragment=P;var M=function(e){(0,i.default)(r,e);var t=h(r);function r(){return(0,s.default)(this,r),t.apply(this,arguments)}return(0,u.default)(r,[{key:"format",value:function(e){if(e||(e=w.sighash),w[e]||p.throwArgumentError("invalid format type","format",e),e===w.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))}))});e===w.sighash&&p.throwError("cannot format a constructor for sighash",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});var t="constructor("+this.inputs.map((function(t){return t.format(e)})).join(e===w.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "),t.trim()}}],[{key:"from",value:function(e){return"string"==typeof e?r.fromString(e):r.fromObject(e)}},{key:"fromObject",value:function(e){if(r.isConstructorFragment(e))return e;"constructor"!==e.type&&p.throwArgumentError("invalid constructor object","value",e);var t=E(e);t.constant&&p.throwArgumentError("constructor cannot be constant","value",e);var n={name:null,type:e.type,inputs:e.inputs?e.inputs.map(x.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?c.BigNumber.from(e.gas):null};return new r(b,n)}},{key:"fromString",value:function(e){var t={type:"constructor"},n=(e=S(e,t)).match(C);return n&&"constructor"===n[1].trim()||p.throwArgumentError("invalid constructor string","value",e),t.inputs=O(n[2].trim(),!1),A(n[3].trim(),t),r.fromObject(t)}},{key:"isConstructorFragment",value:function(e){return e&&e._isFragment&&"constructor"===e.type}}]),r}(k);t.ConstructorFragment=M;var j=function(e){(0,i.default)(r,e);var t=h(r);function r(){return(0,s.default)(this,r),t.apply(this,arguments)}return(0,u.default)(r,[{key:"format",value:function(e){if(e||(e=w.sighash),w[e]||p.throwArgumentError("invalid format type","format",e),e===w.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))})),outputs:this.outputs.map((function(t){return JSON.parse(t.format(e))}))});var t="";return e!==w.sighash&&(t+="function "),t+=this.name+"("+this.inputs.map((function(t){return t.format(e)})).join(e===w.full?", ":",")+") ",e!==w.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "):this.constant&&(t+="view "),this.outputs&&this.outputs.length&&(t+="returns ("+this.outputs.map((function(t){return t.format(e)})).join(", ")+") "),null!=this.gas&&(t+="@"+this.gas.toString()+" ")),t.trim()}}],[{key:"from",value:function(e){return"string"==typeof e?r.fromString(e):r.fromObject(e)}},{key:"fromObject",value:function(e){if(r.isFunctionFragment(e))return e;"function"!==e.type&&p.throwArgumentError("invalid function object","value",e);var t=E(e),n={type:e.type,name:R(e.name),constant:t.constant,inputs:e.inputs?e.inputs.map(x.fromObject):[],outputs:e.outputs?e.outputs.map(x.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?c.BigNumber.from(e.gas):null};return new r(b,n)}},{key:"fromString",value:function(e){var t={type:"function"},n=(e=S(e,t)).split(" returns ");n.length>2&&p.throwArgumentError("invalid function string","value",e);var i=n[0].match(C);if(i||p.throwArgumentError("invalid function signature","value",e),t.name=i[1].trim(),t.name&&R(t.name),t.inputs=O(i[2],!1),A(i[3].trim(),t),n.length>1){var o=n[1].match(C);""==o[1].trim()&&""==o[3].trim()||p.throwArgumentError("unexpected tokens","value",e),t.outputs=O(o[2],!1)}else t.outputs=[];return r.fromObject(t)}},{key:"isFunctionFragment",value:function(e){return e&&e._isFragment&&"function"===e.type}}]),r}(M);function T(e){var t=e.format();return"Error(string)"!==t&&"Panic(uint256)"!==t||p.throwArgumentError("cannot specify user defined ".concat(t," error"),"fragment",e),e}t.FunctionFragment=j;var B=function(e){(0,i.default)(r,e);var t=h(r);function r(){return(0,s.default)(this,r),t.apply(this,arguments)}return(0,u.default)(r,[{key:"format",value:function(e){if(e||(e=w.sighash),w[e]||p.throwArgumentError("invalid format type","format",e),e===w.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))}))});var t="";return e!==w.sighash&&(t+="error "),(t+=this.name+"("+this.inputs.map((function(t){return t.format(e)})).join(e===w.full?", ":",")+") ").trim()}}],[{key:"from",value:function(e){return"string"==typeof e?r.fromString(e):r.fromObject(e)}},{key:"fromObject",value:function(e){if(r.isErrorFragment(e))return e;"error"!==e.type&&p.throwArgumentError("invalid error object","value",e);var t={type:e.type,name:R(e.name),inputs:e.inputs?e.inputs.map(x.fromObject):[]};return T(new r(b,t))}},{key:"fromString",value:function(e){var t={type:"error"},n=e.match(C);return n||p.throwArgumentError("invalid error signature","value",e),t.name=n[1].trim(),t.name&&R(t.name),t.inputs=O(n[2],!1),T(r.fromObject(t))}},{key:"isErrorFragment",value:function(e){return e&&e._isFragment&&"error"===e.type}}]),r}(k);function I(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}t.ErrorFragment=B;var N=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function R(e){return e&&e.match(N)||p.throwArgumentError('invalid identifier "'.concat(e,'"'),"value",e),e}var C=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Utf8ErrorReason=t.Utf8ErrorFuncs=t.UnicodeNormalizationForm=void 0,t._toEscapedUtf8String=function(e,t){return'"'+l(e,t).map((function(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?h(e):h(55296+((e-=65536)>>10&1023))+h(56320+(1023&e))})).join("")+'"'},t._toUtf8String=p,t.toUtf8Bytes=d,t.toUtf8CodePoints=function(e){return l(d(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.current))},t.toUtf8String=function(e,t){return p(l(e,t))};var n,i,o=r(11),a=r(16),s=r(388),u=new a.Logger(s.version);function c(e,t,r,n,o){if(e===i.BAD_PREFIX||e===i.UNEXPECTED_CONTINUE){for(var a=0,s=t+1;s<r.length&&r[s]>>6==2;s++)a++;return a}return e===i.OVERRUN?r.length-t-1:0}t.UnicodeNormalizationForm=n,function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"}(n||(t.UnicodeNormalizationForm=n={})),t.Utf8ErrorReason=i,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"}(i||(t.Utf8ErrorReason=i={}));var f=Object.freeze({error:function(e,t,r,n,i){return u.throwArgumentError("invalid codepoint at offset ".concat(t,"; ").concat(e),"bytes",r)},ignore:c,replace:function(e,t,r,n,o){return e===i.OVERLONG?(n.push(o),0):(n.push(65533),c(e,t,r))}});function l(e,t){null==t&&(t=f.error),e=(0,o.arrayify)(e);for(var r=[],n=0;n<e.length;){var a=e[n++];if(a>>7!=0){var s=null,u=null;if(192==(224&a))s=1,u=127;else if(224==(240&a))s=2,u=2047;else{if(240!=(248&a)){n+=t(128==(192&a)?i.UNEXPECTED_CONTINUE:i.BAD_PREFIX,n-1,e,r);continue}s=3,u=65535}if(n-1+s>=e.length)n+=t(i.OVERRUN,n-1,e,r);else{for(var c=a&(1<<8-s-1)-1,l=0;l<s;l++){var d=e[n];if(128!=(192&d)){n+=t(i.MISSING_CONTINUE,n,e,r),c=null;break}c=c<<6|63&d,n++}null!==c&&(c>1114111?n+=t(i.OUT_OF_RANGE,n-1-s,e,r,c):c>=55296&&c<=57343?n+=t(i.UTF16_SURROGATE,n-1-s,e,r,c):c<=u?n+=t(i.OVERLONG,n-1-s,e,r,c):r.push(c))}}else r.push(a)}return r}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.current;t!=n.current&&(u.checkNormalize(),e=e.normalize(t));for(var r=[],i=0;i<e.length;i++){var a=e.charCodeAt(i);if(a<128)r.push(a);else if(a<2048)r.push(a>>6|192),r.push(63&a|128);else if(55296==(64512&a)){i++;var s=e.charCodeAt(i);if(i>=e.length||56320!=(64512&s))throw new Error("invalid utf-8 string");var c=65536+((1023&a)<<10)+(1023&s);r.push(c>>18|240),r.push(c>>12&63|128),r.push(c>>6&63|128),r.push(63&c|128)}else r.push(a>>12|224),r.push(a>>6&63|128),r.push(63&a|128)}return(0,o.arrayify)(r)}function h(e){var t="0000"+e.toString(16);return"\\u"+t.substring(t.length-4)}function p(e){return e.map((function(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10&1023),56320+(1023&e)))})).join("")}t.Utf8ErrorFuncs=f},function(e,t,r){"use strict";var n=r(1).Buffer,i=r(420),o=r(66),a=r(426);function s(e){t.decode(e)}t.names=a.names,t.codes=a.codes,t.defaultLengths=a.defaultLengths,t.toHexString=function(e){if(!n.isBuffer(e))throw new Error("must be passed a buffer");return e.toString("hex")},t.fromHexString=function(e){return n.from(e,"hex")},t.toB58String=function(e){if(!n.isBuffer(e))throw new Error("must be passed a buffer");return i.encode("base58btc",e).toString().slice(1)},t.fromB58String=function(e){var t=e;return n.isBuffer(e)&&(t=e.toString()),i.decode("z"+t)},t.decode=function(e){if(!n.isBuffer(e))throw new Error("multihash must be a Buffer");if(e.length<2)throw new Error("multihash too short. must be > 2 bytes.");var r=o.decode(e);if(!t.isValidCode(r))throw new Error("multihash unknown function code: 0x".concat(r.toString(16)));e=e.slice(o.decode.bytes);var i=o.decode(e);if(i<0)throw new Error("multihash invalid length: ".concat(i));if((e=e.slice(o.decode.bytes)).length!==i)throw new Error("multihash length inconsistent: 0x".concat(e.toString("hex")));return{code:r,name:a.codes[r],length:i,digest:e}},t.encode=function(e,r,i){if(!e||void 0===r)throw new Error("multihash encode requires at least two args: digest, code");var a=t.coerceCode(r);if(!n.isBuffer(e))throw new Error("digest should be a Buffer");if(null==i&&(i=e.length),i&&e.length!==i)throw new Error("digest length should be equal to specified length.");return n.concat([n.from(o.encode(a)),n.from(o.encode(i)),e])},t.coerceCode=function(e){var r=e;if("string"==typeof e){if(void 0===a.names[e])throw new Error("Unrecognized hash function named: ".concat(e));r=a.names[e]}if("number"!=typeof r)throw new Error("Hash function code should be a number. Got: ".concat(r));if(void 0===a.codes[r]&&!t.isAppCode(r))throw new Error("Unrecognized function code: ".concat(r));return r},t.isAppCode=function(e){return e>0&&e<16},t.isValidCode=function(e){return!!t.isAppCode(e)||!!a.codes[e]},t.validate=s,t.prefix=function(e){return s(e),e.slice(0,2)}},function(e,t,r){"use strict";var n=r(19);function i(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}e.exports=i,i.prototype._init=function(){},i.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},i.prototype._buffer=function(e,t){for(var r=Math.min(this.buffer.length-this.bufferOff,e.length-t),n=0;n<r;n++)this.buffer[this.bufferOff+n]=e[t+n];return this.bufferOff+=r,r},i.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(e){var t=0,r=0,n=(this.bufferOff+e.length)/this.blockSize|0,i=new Array(n*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(r+=this._flushBuffer(i,r)));for(var o=e.length-(e.length-t)%this.blockSize;t<o;t+=this.blockSize)this._update(e,t,i,r),r+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return i},i.prototype._updateDecrypt=function(e){for(var t=0,r=0,n=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,i=new Array(n*this.blockSize);n>0;n--)t+=this._buffer(e,t),r+=this._flushBuffer(i,r);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,r;return e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(r):r},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},i.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},i.prototype._unpad=function(e){return e},i.prototype._finalDecrypt=function(){n.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},function(e,t,r){"use strict";var n=r(454),i=r(462),o=r(207);t.createCipher=t.Cipher=n.createCipher,t.createCipheriv=t.Cipheriv=n.createCipheriv,t.createDecipher=t.Decipher=i.createDecipher,t.createDecipheriv=t.Decipheriv=i.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(o)}},function(e,t,r){"use strict";var n={ECB:r(455),CBC:r(456),CFB:r(457),CFB8:r(458),CFB1:r(459),OFB:r(460),CTR:r(205),GCM:r(205)},i=r(207);for(var o in i)i[o].module=n[i[o].mode];e.exports=i},function(e,t,r){"use strict";var n=r(51).codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,r,o){if("function"==typeof r)return e(t,null,r);r||(r={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}(o||i);var a=r.readable||!1!==r.readable&&t.readable,s=r.writable||!1!==r.writable&&t.writable,u=function(){t.writable||f()},c=t._writableState&&t._writableState.finished,f=function(){s=!1,c=!0,a||o.call(t)},l=t._readableState&&t._readableState.endEmitted,d=function(){a=!1,l=!0,s||o.call(t)},h=function(e){o.call(t,e)},p=function(){var e;return a&&!l?(t._readableState&&t._readableState.ended||(e=new n),o.call(t,e)):s&&!c?(t._writableState&&t._writableState.ended||(e=new n),o.call(t,e)):void 0},b=function(){t.req.on("finish",f)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",f),t.on("abort",p),t.req?b():t.on("request",b)):s&&!t._writableState&&(t.on("end",u),t.on("close",u)),t.on("end",d),t.on("finish",f),!1!==r.error&&t.on("error",h),t.on("close",p),function(){t.removeListener("complete",f),t.removeListener("abort",p),t.removeListener("request",b),t.req&&t.req.removeListener("finish",f),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",f),t.removeListener("end",d),t.removeListener("error",h),t.removeListener("close",p)}}},function(e,t,r){"use strict";(function(t){var n=r(4),i=r(31);function o(e){var t,r=e.modulus.byteLength();do{t=new n(i(r))}while(t.cmp(e.modulus)>=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function a(e,r){var i=function(e){var t=o(e);return{blinder:t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(r),a=r.modulus.byteLength(),s=new n(e).mul(i.blinder).umod(r.modulus),u=s.toRed(n.mont(r.prime1)),c=s.toRed(n.mont(r.prime2)),f=r.coefficient,l=r.prime1,d=r.prime2,h=u.redPow(r.exponent1).fromRed(),p=c.redPow(r.exponent2).fromRed(),b=h.isub(p).imul(f).umod(l).imul(d);return p.iadd(b).imul(i.unblinder).umod(r.modulus).toArrayLike(t,"be",a)}a.getr=o,e.exports=a}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n,i=r(0)(r(2)),o=r(1),a=o.Buffer,s={};for(n in o)o.hasOwnProperty(n)&&"SlowBuffer"!==n&&"Buffer"!==n&&(s[n]=o[n]);var u=s.Buffer={};for(n in a)a.hasOwnProperty(n)&&"allocUnsafe"!==n&&"allocUnsafeSlow"!==n&&(u[n]=a[n]);if(s.Buffer.prototype=a.prototype,u.from&&u.from!==Uint8Array.from||(u.from=function(e,t,r){if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type '+(0,i.default)(e));if(e&&void 0===e.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+(0,i.default)(e));return a(e,t,r)}),u.alloc||(u.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError('The "size" argument must be of type number. Received type '+(0,i.default)(e));if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var n=a(e);return t&&0!==t.length?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n}),!s.kStringMaxLength)try{s.kStringMaxLength=t.binding("buffer").kStringMaxLength}catch(e){}s.constants||(s.constants={MAX_LENGTH:s.kMaxLength},s.kStringMaxLength&&(s.constants.MAX_STRING_LENGTH=s.kStringMaxLength)),e.exports=s}).call(this,r(6))},function(e,t,r){"use strict";var n=r(0)(r(2)),i=r(117).Reporter,o=r(69).EncoderBuffer,a=r(69).DecoderBuffer,s=r(19),u=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],c=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(u);function f(e,t,r){var n={};this._baseState=n,n.name=r,n.enc=e,n.parent=t||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}e.exports=f;var l=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];f.prototype.clone=function(){var e=this._baseState,t={};l.forEach((function(r){t[r]=e[r]}));var r=new this.constructor(t.parent);return r._baseState=t,r},f.prototype._wrap=function(){var e=this._baseState;c.forEach((function(t){this[t]=function(){var r=new this.constructor(this);return e.children.push(r),r[t].apply(r,arguments)}}),this)},f.prototype._init=function(e){var t=this._baseState;s(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),s.equal(t.children.length,1,"Root node can have only one child")},f.prototype._useArgs=function(e){var t=this._baseState,r=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==r.length&&(s(null===t.children),t.children=r,r.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(s(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!==(0,n.default)(e)||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach((function(r){r==(0|r)&&(r|=0);var n=e[r];t[n]=r})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){f.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),u.forEach((function(e){f.prototype[e]=function(){var t=this._baseState,r=Array.prototype.slice.call(arguments);return s(null===t.tag),t.tag=e,this._useArgs(r),this}})),f.prototype.use=function(e){s(e);var t=this._baseState;return s(null===t.use),t.use=e,this},f.prototype.optional=function(){return this._baseState.optional=!0,this},f.prototype.def=function(e){var t=this._baseState;return s(null===t.default),t.default=e,t.optional=!0,this},f.prototype.explicit=function(e){var t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.explicit=e,this},f.prototype.implicit=function(e){var t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.implicit=e,this},f.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},f.prototype.key=function(e){var t=this._baseState;return s(null===t.key),t.key=e,this},f.prototype.any=function(){return this._baseState.any=!0,this},f.prototype.choice=function(e){var t=this._baseState;return s(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},f.prototype.contains=function(e){var t=this._baseState;return s(null===t.use),t.contains=e,this},f.prototype._decode=function(e,t){var r=this._baseState;if(null===r.parent)return e.wrapResult(r.children[0]._decode(e,t));var n,i=r.default,o=!0,s=null;if(null!==r.key&&(s=e.enterKey(r.key)),r.optional){var u=null;if(null!==r.explicit?u=r.explicit:null!==r.implicit?u=r.implicit:null!==r.tag&&(u=r.tag),null!==u||r.any){if(o=this._peekTag(e,u,r.any),e.isError(o))return o}else{var c=e.save();try{null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t),o=!0}catch(e){o=!1}e.restore(c)}}if(r.obj&&o&&(n=e.enterObject()),o){if(null!==r.explicit){var f=this._decodeTag(e,r.explicit);if(e.isError(f))return f;e=f}var l=e.offset;if(null===r.use&&null===r.choice){var d;r.any&&(d=e.save());var h=this._decodeTag(e,null!==r.implicit?r.implicit:r.tag,r.any);if(e.isError(h))return h;r.any?i=e.raw(d):e=h}if(t&&t.track&&null!==r.tag&&t.track(e.path(),l,e.length,"tagged"),t&&t.track&&null!==r.tag&&t.track(e.path(),e.offset,e.length,"content"),r.any||(i=null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t)),e.isError(i))return i;if(r.any||null!==r.choice||null===r.children||r.children.forEach((function(r){r._decode(e,t)})),r.contains&&("octstr"===r.tag||"bitstr"===r.tag)){var p=new a(i);i=this._getUse(r.contains,e._reporterState.obj)._decode(p,t)}}return r.obj&&o&&(i=e.leaveObject(n)),null===r.key||null===i&&!0!==o?null!==s&&e.exitKey(s):e.leaveKey(s,r.key,i),i},f.prototype._decodeGeneric=function(e,t,r){var n=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,n.args[0],r):/str$/.test(e)?this._decodeStr(t,e,r):"objid"===e&&n.args?this._decodeObjid(t,n.args[0],n.args[1],r):"objid"===e?this._decodeObjid(t,null,null,r):"gentime"===e||"utctime"===e?this._decodeTime(t,e,r):"null_"===e?this._decodeNull(t,r):"bool"===e?this._decodeBool(t,r):"objDesc"===e?this._decodeStr(t,e,r):"int"===e||"enum"===e?this._decodeInt(t,n.args&&n.args[0],r):null!==n.use?this._getUse(n.use,t._reporterState.obj)._decode(t,r):t.error("unknown tag: "+e)},f.prototype._getUse=function(e,t){var r=this._baseState;return r.useDecoder=this._use(e,t),s(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},f.prototype._decodeChoice=function(e,t){var r=this._baseState,n=null,i=!1;return Object.keys(r.choice).some((function(o){var a=e.save(),s=r.choice[o];try{var u=s._decode(e,t);if(e.isError(u))return!1;n={type:o,value:u},i=!0}catch(t){return e.restore(a),!1}return!0}),this),i?n:e.error("Choice not matched")},f.prototype._createEncoderBuffer=function(e){return new o(e,this.reporter)},f.prototype._encode=function(e,t,r){var n=this._baseState;if(null===n.default||n.default!==e){var i=this._encodeValue(e,t,r);if(void 0!==i&&!this._skipDefault(i,t,r))return i}},f.prototype._encodeValue=function(e,t,r){var o=this._baseState;if(null===o.parent)return o.children[0]._encode(e,t||new i);var a=null;if(this.reporter=t,o.optional&&void 0===e){if(null===o.default)return;e=o.default}var s=null,u=!1;if(o.any)a=this._createEncoderBuffer(e);else if(o.choice)a=this._encodeChoice(e,t);else if(o.contains)s=this._getUse(o.contains,r)._encode(e,t),u=!0;else if(o.children)s=o.children.map((function(r){if("null_"===r._baseState.tag)return r._encode(null,t,e);if(null===r._baseState.key)return t.error("Child should have a key");var i=t.enterKey(r._baseState.key);if("object"!==(0,n.default)(e))return t.error("Child expected, but input is not object");var o=r._encode(e[r._baseState.key],t,e);return t.leaveKey(i),o}),this).filter((function(e){return e})),s=this._createEncoderBuffer(s);else if("seqof"===o.tag||"setof"===o.tag){if(!o.args||1!==o.args.length)return t.error("Too many args for : "+o.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var c=this.clone();c._baseState.implicit=null,s=this._createEncoderBuffer(e.map((function(r){var n=this._baseState;return this._getUse(n.args[0],e)._encode(r,t)}),c))}else null!==o.use?a=this._getUse(o.use,r)._encode(e,t):(s=this._encodePrimitive(o.tag,e),u=!0);if(!o.any&&null===o.choice){var f=null!==o.implicit?o.implicit:o.tag,l=null===o.implicit?"universal":"context";null===f?null===o.use&&t.error("Tag could be omitted only for .use()"):null===o.use&&(a=this._encodeComposite(f,u,l,s))}return null!==o.explicit&&(a=this._encodeComposite(o.explicit,!1,"context",a)),a},f.prototype._encodeChoice=function(e,t){var r=this._baseState,n=r.choice[e.type];return n||s(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(e.value,t)},f.prototype._encodePrimitive=function(e,t){var r=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},f.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},f.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}},function(e,t,r){"use strict";var n=r(3);function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function o(e,t){this.path=e,this.rethrow(t)}t.Reporter=i,i.prototype.isError=function(e){return e instanceof o},i.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,r){var n=this._reporterState;this.exitKey(e),null!==n.obj&&(n.obj[t]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){var t=this._reporterState,r=t.obj;return t.obj=e,r},i.prototype.error=function(e){var t,r=this._reporterState,n=e instanceof o;if(t=n?e:new o(r.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!r.options.partial)throw t;return n||r.errors.push(t),t},i.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},n(o,Error),o.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},function(e,t,r){"use strict";function n(e){var t={};return Object.keys(e).forEach((function(r){(0|r)==r&&(r|=0);var n=e[r];t[n]=r})),t}t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=n(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=n(t.tag)},function(e,t,r){"use strict";var n=Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]},i=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},o=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseTransaction=void 0;var a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t}(r(120)),s=r(27),u=r(53),c=function(){function e(e){this.cache={hash:void 0},this.activeCapabilities=[],this.DEFAULT_CHAIN=a.Chain.Mainnet,this.DEFAULT_HARDFORK=a.Hardfork.Istanbul;var t=e.nonce,r=e.gasLimit,n=e.to,i=e.value,o=e.data,u=e.v,c=e.r,f=e.s,l=e.type;this._type=new s.BN((0,s.toBuffer)(l)).toNumber();var d=(0,s.toBuffer)(""===n?"0x":n),h=(0,s.toBuffer)(""===u?"0x":u),p=(0,s.toBuffer)(""===c?"0x":c),b=(0,s.toBuffer)(""===f?"0x":f);this.nonce=new s.BN((0,s.toBuffer)(""===t?"0x":t)),this.gasLimit=new s.BN((0,s.toBuffer)(""===r?"0x":r)),this.to=d.length>0?new s.Address(d):void 0,this.value=new s.BN((0,s.toBuffer)(""===i?"0x":i)),this.data=(0,s.toBuffer)(""===o?"0x":o),this.v=h.length>0?new s.BN(h):void 0,this.r=p.length>0?new s.BN(p):void 0,this.s=b.length>0?new s.BN(b):void 0,this._validateCannotExceedMaxInteger({nonce:this.nonce,gasLimit:this.gasLimit,value:this.value,r:this.r,s:this.s})}return Object.defineProperty(e.prototype,"transactionType",{get:function(){return this.type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),e.prototype.supports=function(e){return this.activeCapabilities.includes(e)},e.prototype.validate=function(e){void 0===e&&(e=!1);var t=[];return this.getBaseFee().gt(this.gasLimit)&&t.push("gasLimit is too low. given "+this.gasLimit+", need at least "+this.getBaseFee()),this.isSigned()&&!this.verifySignature()&&t.push("Invalid Signature"),e?t:0===t.length},e.prototype.getBaseFee=function(){var e=this.getDataFee().addn(this.common.param("gasPrices","tx"));return this.common.gteHardfork("homestead")&&this.toCreationAddress()&&e.iaddn(this.common.param("gasPrices","txCreation")),e},e.prototype.getDataFee=function(){for(var e=this.common.param("gasPrices","txDataZero"),t=this.common.param("gasPrices","txDataNonZero"),r=0,n=0;n<this.data.length;n++)0===this.data[n]?r+=e:r+=t;return new s.BN(r)},e.prototype.toCreationAddress=function(){return void 0===this.to||0===this.to.buf.length},e.prototype.isSigned=function(){var e=this.v,t=this.r,r=this.s;return 0===this.type?!!(e&&t&&r):!(void 0===e||!t||!r)},e.prototype.verifySignature=function(){try{var e=this.getSenderPublicKey();return 0!==(0,s.unpadBuffer)(e).length}catch(e){return!1}},e.prototype.getSenderAddress=function(){return new s.Address((0,s.publicToAddress)(this.getSenderPublicKey()))},e.prototype.sign=function(e){if(32!==e.length)throw new Error("Private key must be 32 bytes in length.");var t=!1;0===this.type&&this.common.gteHardfork("spuriousDragon")&&!this.supports(u.Capability.EIP155ReplayProtection)&&(this.activeCapabilities.push(u.Capability.EIP155ReplayProtection),t=!0);var r=this.getMessageToSign(!0),n=(0,s.ecsign)(r,e),i=n.v,o=n.r,a=n.s,c=this._processSignature(i,o,a);if(t){var f=this.activeCapabilities.indexOf(u.Capability.EIP155ReplayProtection);f>-1&&this.activeCapabilities.splice(f,1)}return c},e.prototype._getCommon=function(e,t){var r;if(t){var n=new s.BN((0,s.toBuffer)(t));if(e){if(!e.chainIdBN().eq(n))throw new Error("The chain ID does not match the chain ID of Common");return e.copy()}return a.default.isSupportedChainId(n)?new a.default({chain:n,hardfork:this.DEFAULT_HARDFORK}):a.default.forCustomChain(this.DEFAULT_CHAIN,{name:"custom-chain",networkId:n,chainId:n},this.DEFAULT_HARDFORK)}return null!==(r=null==e?void 0:e.copy())&&void 0!==r?r:new a.default({chain:this.DEFAULT_CHAIN,hardfork:this.DEFAULT_HARDFORK})},e.prototype._validateCannotExceedMaxInteger=function(e,t){var r,n;void 0===t&&(t=53);try{for(var i=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(Object.entries(e)),a=i.next();!a.done;a=i.next()){var u=o(a.value,2),c=u[0],f=u[1];if(53===t){if(null==f?void 0:f.gt(s.MAX_INTEGER))throw new Error(c+" cannot exceed MAX_INTEGER, given "+f)}else{if(256!==t)throw new Error("unimplemented bits value");if(null==f?void 0:f.gte(s.TWO_POW256))throw new Error(c+" must be less than 2^256, given "+f)}}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},e}();t.BaseTransaction=c},function(e,t,r){"use strict";(function(e){var n,i=r(0)(r(2)),o=(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},s=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.ConsensusAlgorithm=t.ConsensusType=t.Hardfork=t.Chain=t.CustomChain=void 0;var u,c,f=r(20),l=r(508),d=r(27),h=r(509),p=r(515),b=r(530);!function(e){e.PolygonMainnet="polygon-mainnet",e.PolygonMumbai="polygon-mumbai",e.ArbitrumRinkebyTestnet="arbitrum-rinkeby-testnet",e.xDaiChain="x-dai-chain"}(u=t.CustomChain||(t.CustomChain={})),function(e){e[e.Mainnet=1]="Mainnet",e[e.Ropsten=3]="Ropsten",e[e.Rinkeby=4]="Rinkeby",e[e.Kovan=42]="Kovan",e[e.Goerli=5]="Goerli"}(t.Chain||(t.Chain={})),function(e){e.Chainstart="chainstart",e.Homestead="homestead",e.Dao="dao",e.TangerineWhistle="tangerineWhistle",e.SpuriousDragon="spuriousDragon",e.Byzantium="byzantium",e.Constantinople="constantinople",e.Petersburg="petersburg",e.Istanbul="istanbul",e.MuirGlacier="muirGlacier",e.Berlin="berlin",e.London="london",e.Shanghai="shanghai",e.Merge="merge"}(c=t.Hardfork||(t.Hardfork={})),function(e){e.ProofOfStake="pos",e.ProofOfWork="pow",e.ProofOfAuthority="poa"}(t.ConsensusType||(t.ConsensusType={})),function(e){e.Ethash="ethash",e.Clique="clique",e.Casper="casper"}(t.ConsensusAlgorithm||(t.ConsensusAlgorithm={}));var y=function(t){function n(e){var r,n,i,o,a=t.call(this)||this;a._supportedHardforks=[],a._eips=[],a._customChains=null!==(i=e.customChains)&&void 0!==i?i:[],a._chainParams=a.setChain(e.chain),a.DEFAULT_HARDFORK=null!==(o=a._chainParams.defaultHardfork)&&void 0!==o?o:c.Istanbul;try{for(var u=s(a._chainParams.hardforks),f=u.next();!f.done;f=u.next()){var l=f.value;l.forkHash||(l.forkHash=a._calcForkHash(l.name))}}catch(e){r={error:e}}finally{try{f&&!f.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}return a._hardfork=a.DEFAULT_HARDFORK,e.supportedHardforks&&(a._supportedHardforks=e.supportedHardforks),e.hardfork&&a.setHardfork(e.hardfork),e.eips&&a.setEIPs(e.eips),a}return o(n,t),n.custom=function(e,t){var r;void 0===t&&(t={});var i=null!==(r=t.baseChain)&&void 0!==r?r:"mainnet",o=a({},n._getChainParams(i));if(o.name="custom-chain","string"!=typeof e)return new n(a({chain:a(a({},o),e)},t));if(e===u.PolygonMainnet)return n.custom({name:u.PolygonMainnet,chainId:137,networkId:137});if(e===u.PolygonMumbai)return n.custom({name:u.PolygonMumbai,chainId:80001,networkId:80001});if(e===u.ArbitrumRinkebyTestnet)return n.custom({name:u.ArbitrumRinkebyTestnet,chainId:421611,networkId:421611});if(e===u.xDaiChain)return n.custom({name:u.xDaiChain,chainId:100,networkId:100});throw new Error("Custom chain "+e+" not supported")},n.forCustomChain=function(e,t,r,i){var o=n._getChainParams(e);return new n({chain:a(a({},o),t),hardfork:r,supportedHardforks:i})},n.isSupportedChainId=function(e){var t=(0,h._getInitializedChains)();return Boolean(t.names[e.toString()])},n._getChainParams=function(e,t){var r=(0,h._getInitializedChains)(t);if("number"==typeof e||d.BN.isBN(e)){if(e=e.toString(),r.names[e])return r[r.names[e]];throw new Error("Chain with ID "+e+" not supported")}if(r[e])return r[e];throw new Error("Chain with name "+e+" not supported")},n.prototype.setChain=function(e){var t,r;if("number"==typeof e||"string"==typeof e||d.BN.isBN(e)){var o;o=this._customChains&&this._customChains.length>0&&Array.isArray(this._customChains[0])?this._customChains.map((function(e){return e[0]})):this._customChains,this._chainParams=n._getChainParams(e,o)}else{if("object"!==(0,i.default)(e))throw new Error("Wrong input format");if(this._customChains.length>0)throw new Error("Chain must be a string, number, or BN when initialized with customChains passed in");try{for(var a=s(["networkId","genesis","hardforks","bootstrapNodes"]),u=a.next();!u.done;u=a.next()){var c=u.value;if(void 0===e[c])throw new Error("Missing required chain parameter: "+c)}}catch(e){t={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}this._chainParams=e}return this._chainParams},n.prototype.setHardfork=function(e){var t,r;if(!this._isSupportedHardfork(e))throw new Error("Hardfork "+e+" not set as supported in supportedHardforks");var n=!1;try{for(var i=s(p.hardforks),o=i.next();!o.done;o=i.next())o.value[0]===e&&(this._hardfork!==e&&(this._hardfork=e,this.emit("hardforkChanged",e)),n=!0)}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}if(!n)throw new Error("Hardfork with name "+e+" not supported")},n.prototype.getHardforkByBlockNumber=function(e,t){var r,n;e=(0,d.toType)(e,d.TypeOutput.BN),t=t?(0,d.toType)(t,d.TypeOutput.BN):void 0;var i,o,a,u=c.Chainstart;try{for(var f=s(this.hardforks()),l=f.next();!l.done;l=f.next()){var h=l.value;if(null!==h.block)e.gte(new d.BN(h.block))&&(u=h.name),t&&h.td&&(t.gten(h.td)?i=h.name:o=a),a=h.name;else if(t&&h.td&&t.gten(h.td))return h.name}}catch(e){r={error:e}}finally{try{l&&!l.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}if(t){var p="block number: "+e+" (-> "+u+"), ";if(i&&!this.hardforkGteHardfork(u,i)){var b="HF determined by block number is lower than the minimum total difficulty HF";throw p+="total difficulty: "+t+" (-> "+i+")",new Error(b+": "+p)}if(o&&!this.hardforkGteHardfork(o,u))throw b="Maximum HF determined by total difficulty is lower than the block number HF",p+="total difficulty: "+t+" (-> "+o+")",new Error(b+": "+p)}return u},n.prototype.setHardforkByBlockNumber=function(e,t){var r=this.getHardforkByBlockNumber(e,t);return this.setHardfork(r),r},n.prototype._chooseHardfork=function(e,t){if(void 0===t&&(t=!0),e){if(t&&!this._isSupportedHardfork(e))throw new Error("Hardfork "+e+" not set as supported in supportedHardforks")}else e=this._hardfork;return e},n.prototype._getHardfork=function(e){var t,r,n=this.hardforks();try{for(var i=s(n),o=i.next();!o.done;o=i.next()){var a=o.value;if(a.name===e)return a}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}throw new Error("Hardfork "+e+" not defined for chain "+this.chainName())},n.prototype._isSupportedHardfork=function(e){var t,r;if(!(this._supportedHardforks.length>0))return!0;try{for(var n=s(this._supportedHardforks),i=n.next();!i.done;i=n.next())if(e===i.value)return!0}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return!1},n.prototype.setEIPs=function(e){var t,r,n=this;void 0===e&&(e=[]);var i=function(t){if(!(t in b.EIPs))throw new Error(t+" not supported");var r=o.gteHardfork(b.EIPs[t].minimumHardfork);if(!r)throw new Error(t+" cannot be activated on hardfork "+o.hardfork()+", minimumHardfork: "+r);b.EIPs[t].requiredEIPs&&b.EIPs[t].requiredEIPs.forEach((function(r){if(!e.includes(r)&&!n.isActivatedEIP(r))throw new Error(t+" requires EIP "+r+", but is not included in the EIP list")}))},o=this;try{for(var a=s(e),u=a.next();!u.done;u=a.next())i(u.value)}catch(e){t={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}this._eips=e},n.prototype.param=function(e,t){var r,n,i=null;try{for(var o=s(this._eips),a=o.next();!a.done;a=o.next()){var u=a.value;if(null!==(i=this.paramByEIP(e,t,u)))return i}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return this.paramByHardfork(e,t,this._hardfork)},n.prototype.paramByHardfork=function(e,t,r){var n,i,o,a;r=this._chooseHardfork(r);var u=null;try{for(var c=s(p.hardforks),f=c.next();!f.done;f=c.next()){var l=f.value;if("eips"in l[1]){var d=l[1].eips;try{for(var h=(o=void 0,s(d)),b=h.next();!b.done;b=h.next()){var y=b.value,g=this.paramByEIP(e,t,y);u=null!==g?g:u}}catch(e){o={error:e}}finally{try{b&&!b.done&&(a=h.return)&&a.call(h)}finally{if(o)throw o.error}}}else{if(!l[1][e])throw new Error("Topic "+e+" not defined");void 0!==l[1][e][t]&&(u=l[1][e][t].v)}if(l[0]===r)break}}catch(e){n={error:e}}finally{try{f&&!f.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}return u},n.prototype.paramByEIP=function(e,t,r){if(!(r in b.EIPs))throw new Error(r+" not supported");var n=b.EIPs[r];if(!(e in n))throw new Error("Topic "+e+" not defined");return void 0===n[e][t]?null:n[e][t].v},n.prototype.paramByBlock=function(e,t,r){var n=this.activeHardforks(r),i=n[n.length-1].name;return this.paramByHardfork(e,t,i)},n.prototype.isActivatedEIP=function(e){var t,r;if(this.eips().includes(e))return!0;try{for(var n=s(p.hardforks),i=n.next();!i.done;i=n.next()){var o=i.value[1];if(this.gteHardfork(o.name)&&"eips"in o&&o.eips.includes(e))return!0}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return!1},n.prototype.hardforkIsActiveOnBlock=function(e,t,r){var n;void 0===r&&(r={}),t=(0,d.toType)(t,d.TypeOutput.BN);var i=null!==(n=r.onlySupported)&&void 0!==n&&n;e=this._chooseHardfork(e,i);var o=this.hardforkBlockBN(e);return!(!o||!t.gte(o))},n.prototype.activeOnBlock=function(e,t){return this.hardforkIsActiveOnBlock(null,e,t)},n.prototype.hardforkGteHardfork=function(e,t,r){var n,i;void 0===r&&(r={});var o,a=void 0!==r.onlyActive&&r.onlyActive;e=this._chooseHardfork(e,r.onlySupported),o=a?this.activeHardforks(null,r):this.hardforks();var u=-1,c=-1,f=0;try{for(var l=s(o),d=l.next();!d.done;d=l.next()){var h=d.value;h.name===e&&(u=f),h.name===t&&(c=f),f+=1}}catch(e){n={error:e}}finally{try{d&&!d.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}return u>=c&&-1!==c},n.prototype.gteHardfork=function(e,t){return this.hardforkGteHardfork(null,e,t)},n.prototype.hardforkIsActiveOnChain=function(e,t){var r,n,i;void 0===t&&(t={});var o=null!==(i=t.onlySupported)&&void 0!==i&&i;e=this._chooseHardfork(e,o);try{for(var a=s(this.hardforks()),u=a.next();!u.done;u=a.next()){var c=u.value;if(c.name===e&&null!==c.block)return!0}}catch(e){r={error:e}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return!1},n.prototype.activeHardforks=function(e,t){var r,n;void 0===t&&(t={});var i=[],o=this.hardforks();try{for(var a=s(o),u=a.next();!u.done;u=a.next()){var c=u.value;if(null!==c.block){if(null!=e&&e<c.block)break;t.onlySupported&&!this._isSupportedHardfork(c.name)||i.push(c)}}}catch(e){r={error:e}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i},n.prototype.activeHardfork=function(e,t){void 0===t&&(t={});var r=this.activeHardforks(e,t);if(r.length>0)return r[r.length-1].name;throw new Error("No (supported) active hardfork found")},n.prototype.hardforkBlock=function(e){var t=this.hardforkBlockBN(e);return t?(0,d.toType)(t,d.TypeOutput.Number):null},n.prototype.hardforkBlockBN=function(e){e=this._chooseHardfork(e,!1);var t=this._getHardfork(e).block;return null==t?null:new d.BN(t)},n.prototype.hardforkTD=function(e){e=this._chooseHardfork(e,!1);var t=this._getHardfork(e).td;return null==t?null:new d.BN(t)},n.prototype.isHardforkBlock=function(e,t){e=(0,d.toType)(e,d.TypeOutput.BN),t=this._chooseHardfork(t,!1);var r=this.hardforkBlockBN(t);return!!r&&r.eq(e)},n.prototype.nextHardforkBlock=function(e){var t=this.nextHardforkBlockBN(e);return null===t?null:(0,d.toType)(t,d.TypeOutput.Number)},n.prototype.nextHardforkBlockBN=function(e){e=this._chooseHardfork(e,!1);var t=this.hardforkBlockBN(e);return null===t?null:this.hardforks().reduce((function(e,r){var n=new d.BN(r.block);return n.gt(t)&&null===e?n:e}),null)},n.prototype.isNextHardforkBlock=function(e,t){e=(0,d.toType)(e,d.TypeOutput.BN),t=this._chooseHardfork(t,!1);var r=this.nextHardforkBlockBN(t);return null!==r&&r.eq(e)},n.prototype._calcForkHash=function(t){var r,n,i=e.from(this.genesis().hash.substr(2),"hex"),o=e.alloc(0),a=0;try{for(var u=s(this.hardforks()),c=u.next();!c.done;c=u.next()){var f=c.value,h=f.block;if(0!==h&&null!==h&&h!==a){var p=e.from(h.toString(16).padStart(16,"0"),"hex");o=e.concat([o,p])}if(f.name===t)break;null!==h&&(a=h)}}catch(e){r={error:e}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}var b=e.concat([i,o]);return"0x"+(0,d.intToBuffer)((0,l.buf)(b)>>>0).toString("hex")},n.prototype.forkHash=function(e){e=this._chooseHardfork(e,!1);var t=this._getHardfork(e);if(null===t.block)throw new Error("No fork hash calculation possible for non-applied or future hardfork");return void 0!==t.forkHash?t.forkHash:this._calcForkHash(e)},n.prototype.hardforkForForkHash=function(e){var t=this.hardforks().filter((function(t){return t.forkHash===e}));return t.length>=1?t[t.length-1]:null},n.prototype.genesis=function(){return this._chainParams.genesis},n.prototype.genesisState=function(){var e,t;switch(this.chainName()){case"mainnet":return r(!function(){var e=new Error("Cannot find module './genesisStates/mainnet.json'");throw e.code="MODULE_NOT_FOUND",e}());case"ropsten":return r(!function(){var e=new Error("Cannot find module './genesisStates/ropsten.json'");throw e.code="MODULE_NOT_FOUND",e}());case"rinkeby":return r(!function(){var e=new Error("Cannot find module './genesisStates/rinkeby.json'");throw e.code="MODULE_NOT_FOUND",e}());case"kovan":return r(!function(){var e=new Error("Cannot find module './genesisStates/kovan.json'");throw e.code="MODULE_NOT_FOUND",e}());case"goerli":return r(!function(){var e=new Error("Cannot find module './genesisStates/goerli.json'");throw e.code="MODULE_NOT_FOUND",e}())}if(this._customChains&&this._customChains.length>0&&Array.isArray(this._customChains[0]))try{for(var n=s(this._customChains),i=n.next();!i.done;i=n.next()){var o=i.value;if(o[0].name===this.chainName())return o[1]}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return{}},n.prototype.hardforks=function(){return this._chainParams.hardforks},n.prototype.bootstrapNodes=function(){return this._chainParams.bootstrapNodes},n.prototype.dnsNetworks=function(){return this._chainParams.dnsNetworks},n.prototype.hardfork=function(){return this._hardfork},n.prototype.chainId=function(){return(0,d.toType)(this.chainIdBN(),d.TypeOutput.Number)},n.prototype.chainIdBN=function(){return new d.BN(this._chainParams.chainId)},n.prototype.chainName=function(){return this._chainParams.name},n.prototype.networkId=function(){return(0,d.toType)(this.networkIdBN(),d.TypeOutput.Number)},n.prototype.networkIdBN=function(){return new d.BN(this._chainParams.networkId)},n.prototype.eips=function(){return this._eips},n.prototype.consensusType=function(){var e,t,r,n=this.hardfork();try{for(var i=s(p.hardforks),o=i.next();!o.done;o=i.next()){var a=o.value;if("consensus"in a[1]&&(r=a[1].consensus.type),a[0]===n)break}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return r||this._chainParams.consensus.type},n.prototype.consensusAlgorithm=function(){var e,t,r,n=this.hardfork();try{for(var i=s(p.hardforks),o=i.next();!o.done;o=i.next()){var a=o.value;if("consensus"in a[1]&&(r=a[1].consensus.algorithm),a[0]===n)break}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return r||this._chainParams.consensus.algorithm},n.prototype.consensusConfig=function(){var e,t,r,n=this.hardfork();try{for(var i=s(p.hardforks),o=i.next();!o.done;o=i.next()){var a=o.value;if("consensus"in a[1]&&(r=a[1].consensus[a[1].consensus.algorithm]),a[0]===n)break}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}if(r)return r;var u=this.consensusAlgorithm();return this._chainParams.consensus[u]},n.prototype.copy=function(){return Object.assign(Object.create(Object.getPrototypeOf(this)),this)},n}(f.EventEmitter);t.default=y}).call(this,r(1).Buffer)},function(e,t,r){"use strict";var n,i=t,o=r(122),a=r(238),s=r(22).assert;function u(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new u(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=u,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(562)}catch(e){n=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},function(e,t,r){"use strict";var n=t;n.utils=r(26),n.common=r(70),n.sha=r(556),n.ripemd=r(560),n.hmac=r(561),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){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.rlphash=t.ripemd160FromArray=t.ripemd160FromString=t.ripemd160=t.sha256FromArray=t.sha256FromString=t.sha256=t.keccakFromArray=t.keccakFromHexString=t.keccakFromString=t.keccak256=t.keccak=void 0;var n=r(572),i=r(588),o=r(29),a=r(42),s=r(90);t.keccak=function(e,t){switch(void 0===t&&(t=256),(0,s.assertIsBuffer)(e),t){case 224:return(0,n.keccak224)(e);case 256:return(0,n.keccak256)(e);case 384:return(0,n.keccak384)(e);case 512:return(0,n.keccak512)(e);default:throw new Error("Invald algorithm: keccak".concat(t))}},t.keccak256=function(e){return(0,t.keccak)(e)},t.keccakFromString=function(r,n){void 0===n&&(n=256),(0,s.assertIsString)(r);var i=e.from(r,"utf8");return(0,t.keccak)(i,n)},t.keccakFromHexString=function(e,r){return void 0===r&&(r=256),(0,s.assertIsHexString)(e),(0,t.keccak)((0,a.toBuffer)(e),r)},t.keccakFromArray=function(e,r){return void 0===r&&(r=256),(0,s.assertIsArray)(e),(0,t.keccak)((0,a.toBuffer)(e),r)};var u=function(e){return e=(0,a.toBuffer)(e),i("sha256").update(e).digest()};t.sha256=function(e){return(0,s.assertIsBuffer)(e),u(e)},t.sha256FromString=function(e){return(0,s.assertIsString)(e),u(e)},t.sha256FromArray=function(e){return(0,s.assertIsArray)(e),u(e)};var c=function(e,t){e=(0,a.toBuffer)(e);var r=i("rmd160").update(e).digest();return!0===t?(0,a.setLengthLeft)(r,32):r};t.ripemd160=function(e,t){return(0,s.assertIsBuffer)(e),c(e,t)},t.ripemd160FromString=function(e,t){return(0,s.assertIsString)(e),c(e,t)},t.ripemd160FromArray=function(e,t){return(0,s.assertIsArray)(e),c(e,t)},t.rlphash=function(e){return(0,t.keccak)(o.rlp.encode(e))}}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(t=e.exports=r(242)).Stream=t,t.Readable=t,t.Writable=r(246),t.Duplex=r(56),t.Transform=r(247),t.PassThrough=r(583),t.finished=r(125),t.pipeline=r(584)},function(e,t,r){"use strict";var n=r(55).codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,r,o){if("function"==typeof r)return e(t,null,r);r||(r={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}(o||i);var a=r.readable||!1!==r.readable&&t.readable,s=r.writable||!1!==r.writable&&t.writable,u=function(){t.writable||f()},c=t._writableState&&t._writableState.finished,f=function(){s=!1,c=!0,a||o.call(t)},l=t._readableState&&t._readableState.endEmitted,d=function(){a=!1,l=!0,s||o.call(t)},h=function(e){o.call(t,e)},p=function(){var e;return a&&!l?(t._readableState&&t._readableState.ended||(e=new n),o.call(t,e)):s&&!c?(t._writableState&&t._writableState.ended||(e=new n),o.call(t,e)):void 0},b=function(){t.req.on("finish",f)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",f),t.on("abort",p),t.req?b():t.on("request",b)):s&&!t._writableState&&(t.on("end",u),t.on("close",u)),t.on("end",d),t.on("finish",f),!1!==r.error&&t.on("error",h),t.on("close",p),function(){t.removeListener("complete",f),t.removeListener("abort",p),t.removeListener("request",b),t.req&&t.req.removeListener("finish",f),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",f),t.removeListener("end",d),t.removeListener("error",h),t.removeListener("close",p)}}},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.toType=t.TypeOutput=t.bnToRlp=t.bnToUnpaddedBuffer=t.bnToHex=void 0;var n,i=r(29),o=r(54),a=r(42);function s(t){return(0,a.unpadBuffer)(t.toArrayLike(e))}t.bnToHex=function(e){return"0x".concat(e.toString(16))},t.bnToUnpaddedBuffer=s,t.bnToRlp=function(e){return s(e)},function(e){e[e.Number=0]="Number",e[e.BN=1]="BN",e[e.Buffer=2]="Buffer",e[e.PrefixedHexString=3]="PrefixedHexString"}(n=t.TypeOutput||(t.TypeOutput={})),t.toType=function(e,t){if(null===e)return null;if(void 0!==e){if("string"==typeof e&&!(0,o.isHexString)(e))throw new Error("A string must be provided with a 0x-prefix, given: ".concat(e));if("number"==typeof e&&!Number.isSafeInteger(e))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");var r=(0,a.toBuffer)(e);if(t===n.Buffer)return r;if(t===n.BN)return new i.BN(r);if(t===n.Number){var s=new i.BN(r),u=new i.BN(Number.MAX_SAFE_INTEGER.toString());if(s.gt(u))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return s.toNumber()}return"0x".concat(r.toString("hex"))}}}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(e){var n=r(0)(r(2)),i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},o=/%[sdj%]/g;t.format=function(e){if(!m(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(u(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,i=n.length,a=String(e).replace(o,(function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),s=n[r];r<i;s=n[++r])y(s)||!_(s)?a+=" "+s:a+=" "+u(s);return a},t.deprecate=function(r,n){if(void 0!==e&&!0===e.noDeprecation)return r;if(void 0===e)return function(){return t.deprecate(r,n).apply(this,arguments)};var i=!1;return function(){if(!i){if(e.throwDeprecation)throw new Error(n);e.traceDeprecation?console.trace(n):console.error(n),i=!0}return r.apply(this,arguments)}};var a,s={};function u(e,r){var n={seen:[],stylize:f};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),b(r)?n.showHidden=r:r&&t._extend(n,r),v(n.showHidden)&&(n.showHidden=!1),v(n.depth)&&(n.depth=2),v(n.colors)&&(n.colors=!1),v(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),l(n,e,n.depth)}function c(e,t){var r=u.styles[t];return r?"["+u.colors[r][0]+"m"+e+"["+u.colors[r][1]+"m":e}function f(e,t){return e}function l(e,r,n){if(e.customInspect&&r&&k(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return m(i)||(i=l(e,i,n)),i}var o=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(m(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return g(t)?e.stylize(""+t,"number"):b(t)?e.stylize(""+t,"boolean"):y(t)?e.stylize("null","null"):void 0}(e,r);if(o)return o;var a=Object.keys(r),s=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),O(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return d(r);if(0===a.length){if(k(r)){var u=r.name?": "+r.name:"";return e.stylize("[Function"+u+"]","special")}if(w(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(x(r))return e.stylize(Date.prototype.toString.call(r),"date");if(O(r))return d(r)}var c,f="",_=!1,P=["{","}"];return p(r)&&(_=!0,P=["[","]"]),k(r)&&(f=" [Function"+(r.name?": "+r.name:"")+"]"),w(r)&&(f=" "+RegExp.prototype.toString.call(r)),x(r)&&(f=" "+Date.prototype.toUTCString.call(r)),O(r)&&(f=" "+d(r)),0!==a.length||_&&0!=r.length?n<0?w(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),c=_?function(e,t,r,n,i){for(var o=[],a=0,s=t.length;a<s;++a)E(t,String(a))?o.push(h(e,t,r,n,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(h(e,t,r,n,i,!0))})),o}(e,r,n,s,a):a.map((function(t){return h(e,r,n,s,t,_)})),e.seen.pop(),function(e,t,r){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}(c,f,P)):P[0]+f+P[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,r,n,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),E(n,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=y(r)?l(e,u.value,null):l(e,u.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),v(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function p(e){return Array.isArray(e)}function b(e){return"boolean"==typeof e}function y(e){return null===e}function g(e){return"number"==typeof e}function m(e){return"string"==typeof e}function v(e){return void 0===e}function w(e){return _(e)&&"[object RegExp]"===P(e)}function _(e){return"object"===(0,n.default)(e)&&null!==e}function x(e){return _(e)&&"[object Date]"===P(e)}function O(e){return _(e)&&("[object Error]"===P(e)||e instanceof Error)}function k(e){return"function"==typeof e}function P(e){return Object.prototype.toString.call(e)}function S(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(r){if(v(a)&&(a=e.env.NODE_DEBUG||""),r=r.toUpperCase(),!s[r])if(new RegExp("\\b"+r+"\\b","i").test(a)){var n=e.pid;s[r]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",r,n,e)}}else s[r]=function(){};return s[r]},t.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=p,t.isBoolean=b,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=m,t.isSymbol=function(e){return"symbol"===(0,n.default)(e)},t.isUndefined=v,t.isRegExp=w,t.isObject=_,t.isDate=x,t.isError=O,t.isFunction=k,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===(0,n.default)(e)||void 0===e},t.isBuffer=r(255);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",function(){var e=new Date,t=[S(e.getHours()),S(e.getMinutes()),S(e.getSeconds())].join(":");return[e.getDate(),A[e.getMonth()],t].join(" ")}(),t.format.apply(t,arguments))},t.inherits=r(91),t._extend=function(e,t){if(!t||!_(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var M="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function j(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(M&&e[M]){var t;if("function"!=typeof(t=e[M]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,M,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise((function(e,n){t=e,r=n})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(e,n){e?r(e):t(n)}));try{e.apply(this,i)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),M&&Object.defineProperty(t,M,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,i(e))},t.promisify.custom=M,t.callbackify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');function r(){for(var r=[],n=0;n<arguments.length;n++)r.push(arguments[n]);var i=r.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var o=this,a=function(){return i.apply(o,arguments)};t.apply(this,r).then((function(t){e.nextTick(a,null,t)}),(function(t){e.nextTick(j,t,a)}))}return Object.setPrototypeOf(r,Object.getPrototypeOf(t)),Object.defineProperties(r,i(t)),r}}).call(this,r(6))},function(e,t,r){"use strict";var n=r(0)(r(2)),i=r(4),o=r(260);e.exports=function(e){if("string"==typeof e||"number"==typeof e){var t=new i(1),r=String(e).toLowerCase().trim(),a="0x"===r.substr(0,2)||"-0x"===r.substr(0,3),s=o(r);if("-"===s.substr(0,1)&&(s=o(s.slice(1)),t=new i(-1,10)),!(s=""===s?"0":s).match(/^-?[0-9]+$/)&&s.match(/^[0-9A-Fa-f]+$/)||s.match(/^[a-fA-F]+$/)||!0===a&&s.match(/^[0-9A-Fa-f]+$/))return new i(s,16).mul(t);if((s.match(/^-?[0-9]+$/)||""===s)&&!1===a)return new i(s,10).mul(t)}else if("object"===(0,n.default)(e)&&e.toString&&!e.pop&&!e.push&&e.toString(10).match(/^-?[0-9]+$/)&&(e.mul||e.dividedToIntegerBy))return new i(e.toString(10),10);throw new Error("[number-to-bn] while converting number "+JSON.stringify(e)+" to BN.js instance, error: invalid number value. Value must be an integer, hex string, BN or BigNumber instance. Note, decimals are not supported.")}},function(e,t,r){"use strict";(function(t){var n=r(0),i=n(r(30)),o=n(r(2)),a=r(4),s=r(128),u=r(267),c=r(27),f=r(330),l=function(e){return a.isBN(e)},d=function(e){return e&&e.constructor&&"BigNumber"===e.constructor.name},h=function(e){try{return s.apply(null,arguments)}catch(t){throw new Error(t+' Given value: "'+e+'"')}},p=function(e){return!!/^(0x)?[0-9a-f]{40}$/i.test(e)&&(!(!/^(0x|0X)?[0-9a-f]{40}$/.test(e)&&!/^(0x|0X)?[0-9A-F]{40}$/.test(e))||b(e))},b=function(e){e=e.replace(/^0x/i,"");for(var t=O(e.toLowerCase()).replace(/^0x/i,""),r=0;r<40;r++)if(parseInt(t[r],16)>7&&e[r].toUpperCase()!==e[r]||parseInt(t[r],16)<=7&&e[r].toLowerCase()!==e[r])return!1;return!0},y=function(e){var t="";e=(e=(e=(e=(e=u.encode(e)).replace(/^(?:\u0000)*/,"")).split("").reverse().join("")).replace(/^(?:\u0000)*/,"")).split("").reverse().join("");for(var r=0;r<e.length;r++){var n=e.charCodeAt(r).toString(16);t+=n.length<2?"0"+n:n}return"0x"+t},g=function(e){if(!e)return e;if("string"==typeof e&&!w(e))throw new Error('Given value "'+e+'" is not a valid hex string.');return h(e).toNumber()},m=function(e){if(null==e)return e;if(!isFinite(e)&&!w(e))throw new Error('Given input "'+e+'" is not a number.');var t=h(e),r=t.toString(16);return t.lt(new a(0))?"-0x"+r.slice(1):"0x"+r},v=function(e,r){if(p(e))return r?"address":"0x"+e.toLowerCase().replace(/^0x/i,"");if("boolean"==typeof e)return r?"bool":e?"0x01":"0x00";if(t.isBuffer(e))return"0x"+e.toString("hex");if("object"===(0,o.default)(e)&&e&&!d(e)&&!l(e))return r?"string":y(JSON.stringify(e));if("string"==typeof e){if(0===e.indexOf("-0x")||0===e.indexOf("-0X"))return r?"int256":m(e);if(0===e.indexOf("0x")||0===e.indexOf("0X"))return r?"bytes":e;if(!isFinite(e))return r?"string":y(e)}return r?e<0?"int256":"uint256":m(e)},w=function(e){return("string"==typeof e||"number"==typeof e)&&/^(-)?0x[0-9a-f]*$/i.test(e)},_=function(e){return("string"==typeof e||"number"==typeof e)&&/^(-0x|0x)?[0-9a-f]*$/i.test(e)},x="0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",O=function(e){l(e)&&(e=e.toString()),w(e)&&/^0x/i.test(e.toString())?e=c.toBuffer(e):"string"==typeof e&&(e=t.from(e,"utf-8"));var r=c.bufferToHex(c.keccak256(e));return r===x?null:r};O._Hash=c.keccak256;var k=function(e){if("string"==typeof e&&e.includes("0x")){var t=e.toLocaleLowerCase().startsWith("-")?["-",e.slice(3)]:["",e.slice(2)],r=(0,i.default)(t,2),n=r[0],o=r[1];return new a(n+o,16)}return new a(e)};Object.setPrototypeOf(k,a),Object.setPrototypeOf(k.prototype,a.prototype),e.exports={BN:k,isBN:l,isBigNumber:d,toBN:h,isAddress:p,isBloom:function(e){return f.isBloom(e)},isUserEthereumAddressInBloom:function(e,t){return f.isUserEthereumAddressInBloom(e,t)},isContractAddressInBloom:function(e,t){return f.isContractAddressInBloom(e,t)},isTopic:function(e){return f.isTopic(e)},isTopicInBloom:function(e,t){return f.isTopicInBloom(e,t)},isInBloom:function(e,t){return f.isInBloom(e,t)},checkAddressChecksum:b,utf8ToHex:y,hexToUtf8:function(e){if(!w(e))throw new Error('The parameter "'+e+'" must be a valid HEX string.');for(var t="",r=0,n=(e=(e=(e=(e=(e=e.replace(/^0x/i,"")).replace(/^(?:00)*/,"")).split("").reverse().join("")).replace(/^(?:00)*/,"")).split("").reverse().join("")).length,i=0;i<n;i+=2)r=parseInt(e.slice(i,i+2),16),t+=String.fromCharCode(r);return u.decode(t)},hexToNumber:g,hexToNumberString:function(e){if(!e)return e;if("string"==typeof e&&!w(e))throw new Error('Given value "'+e+'" is not a valid hex string.');return h(e).toString(10)},numberToHex:m,toHex:v,hexToBytes:function(e){if(e=e.toString(16),!w(e))throw new Error('Given value "'+e+'" is not a valid hex string.');e=e.replace(/^0x/i,"");for(var t=[],r=0;r<e.length;r+=2)t.push(parseInt(e.slice(r,r+2),16));return t},bytesToHex:function(e){for(var t=[],r=0;r<e.length;r++)t.push((e[r]>>>4).toString(16)),t.push((15&e[r]).toString(16));return"0x"+t.join("")},isHex:_,isHexStrict:w,stripHexPrefix:function(e){return 0!==e&&_(e)?e.replace(/^(-)?0x/i,"$1"):e},leftPad:function(e,t,r){var n=/^0x/i.test(e)||"number"==typeof e,i=t-(e=e.toString(16).replace(/^0x/i,"")).length+1>=0?t-e.length+1:0;return(n?"0x":"")+new Array(i).join(r||"0")+e},rightPad:function(e,t,r){var n=/^0x/i.test(e)||"number"==typeof e,i=t-(e=e.toString(16).replace(/^0x/i,"")).length+1>=0?t-e.length+1:0;return(n?"0x":"")+e+new Array(i).join(r||"0")},toTwosComplement:function(e){return"0x"+h(e).toTwos(256).toString(16,64)},sha3:O,sha3Raw:function(e){return null===(e=O(e))?x:e},toNumber:function(e){return"number"==typeof e?e:g(v(e))}}}).call(this,r(1).Buffer)},function(e,t,r){"use strict";var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,r){"use strict";var n=r(132);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KECCAK256_RLP=t.KECCAK256_RLP_S=t.KECCAK256_RLP_ARRAY=t.KECCAK256_RLP_ARRAY_S=t.KECCAK256_NULL=t.KECCAK256_NULL_S=t.TWO_POW256=t.MAX_INTEGER=t.MAX_UINT64=void 0;var n=r(1),i=r(28);t.MAX_UINT64=new i.BN("ffffffffffffffff",16),t.MAX_INTEGER=new i.BN("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),t.TWO_POW256=new i.BN("10000000000000000000000000000000000000000000000000000000000000000",16),t.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",t.KECCAK256_NULL=n.Buffer.from(t.KECCAK256_NULL_S,"hex"),t.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",t.KECCAK256_RLP_ARRAY=n.Buffer.from(t.KECCAK256_RLP_ARRAY_S,"hex"),t.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",t.KECCAK256_RLP=n.Buffer.from(t.KECCAK256_RLP_S,"hex")},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.isZeroAddress=t.zeroAddress=t.importPublic=t.privateToAddress=t.privateToPublic=t.publicToAddress=t.pubToAddress=t.isValidPublic=t.isValidPrivate=t.generateAddress2=t.generateAddress=t.isValidChecksumAddress=t.toChecksumAddress=t.isValidAddress=t.Account=void 0;var n=function(e){return e&&e.__esModule?e:{default:e}}(r(43)),i=r(28),o=r(135),a=r(44),s=r(133),u=r(36),c=r(95),f=r(73),l=r(103),d=function(){function e(e,t,r,n){void 0===e&&(e=new i.BN(0)),void 0===t&&(t=new i.BN(0)),void 0===r&&(r=s.KECCAK256_RLP),void 0===n&&(n=s.KECCAK256_NULL),this.nonce=e,this.balance=t,this.stateRoot=r,this.codeHash=n,this._validate()}return e.fromAccountData=function(t){var r=t.nonce,n=t.balance,o=t.stateRoot,a=t.codeHash;return new e(r?new i.BN((0,u.toBuffer)(r)):void 0,n?new i.BN((0,u.toBuffer)(n)):void 0,o?(0,u.toBuffer)(o):void 0,a?(0,u.toBuffer)(a):void 0)},e.fromRlpSerializedAccount=function(e){var t=i.rlp.decode(e);if(!Array.isArray(t))throw new Error("Invalid serialized account input. Must be array");return this.fromValuesArray(t)},e.fromValuesArray=function(t){var r=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}(t,4),n=r[0],o=r[1],a=r[2],s=r[3];return new e(new i.BN(n),new i.BN(o),a,s)},e.prototype._validate=function(){if(this.nonce.lt(new i.BN(0)))throw new Error("nonce must be greater than zero");if(this.balance.lt(new i.BN(0)))throw new Error("balance must be greater than zero");if(32!==this.stateRoot.length)throw new Error("stateRoot must have a length of 32");if(32!==this.codeHash.length)throw new Error("codeHash must have a length of 32")},e.prototype.raw=function(){return[(0,l.bnToUnpaddedBuffer)(this.nonce),(0,l.bnToUnpaddedBuffer)(this.balance),this.stateRoot,this.codeHash]},e.prototype.serialize=function(){return i.rlp.encode(this.raw())},e.prototype.isContract=function(){return!this.codeHash.equals(s.KECCAK256_NULL)},e.prototype.isEmpty=function(){return this.balance.isZero()&&this.nonce.isZero()&&this.codeHash.equals(s.KECCAK256_NULL)},e}();t.Account=d,t.isValidAddress=function(e){try{(0,f.assertIsString)(e)}catch(e){return!1}return/^0x[0-9a-fA-F]{40}$/.test(e)},t.toChecksumAddress=function(e,t){(0,f.assertIsHexString)(e);var r=(0,a.stripHexPrefix)(e).toLowerCase(),n="";t&&(n=(0,l.toType)(t,l.TypeOutput.BN).toString()+"0x");for(var i=(0,c.keccakFromString)(n+r).toString("hex"),o="0x",s=0;s<r.length;s++)parseInt(i[s],16)>=8?o+=r[s].toUpperCase():o+=r[s];return o},t.isValidChecksumAddress=function(e,r){return(0,t.isValidAddress)(e)&&(0,t.toChecksumAddress)(e,r)===e},t.generateAddress=function(t,r){(0,f.assertIsBuffer)(t),(0,f.assertIsBuffer)(r);var n=new i.BN(r);return n.isZero()?(0,c.rlphash)([t,null]).slice(-20):(0,c.rlphash)([t,e.from(n.toArray())]).slice(-20)},t.generateAddress2=function(t,r,i){return(0,f.assertIsBuffer)(t),(0,f.assertIsBuffer)(r),(0,f.assertIsBuffer)(i),(0,n.default)(20===t.length),(0,n.default)(32===r.length),(0,c.keccak256)(e.concat([e.from("ff","hex"),t,r,(0,c.keccak256)(i)])).slice(-20)},t.isValidPrivate=function(e){return(0,o.privateKeyVerify)(e)},t.isValidPublic=function(t,r){return void 0===r&&(r=!1),(0,f.assertIsBuffer)(t),64===t.length?(0,o.publicKeyVerify)(e.concat([e.from([4]),t])):!!r&&(0,o.publicKeyVerify)(t)},t.pubToAddress=function(t,r){return void 0===r&&(r=!1),(0,f.assertIsBuffer)(t),r&&64!==t.length&&(t=e.from((0,o.publicKeyConvert)(t,!1).slice(1))),(0,n.default)(64===t.length),(0,c.keccak)(t).slice(-20)},t.publicToAddress=t.pubToAddress,t.privateToPublic=function(t){return(0,f.assertIsBuffer)(t),e.from((0,o.publicKeyCreate)(t,!1)).slice(1)},t.privateToAddress=function(e){return(0,t.publicToAddress)((0,t.privateToPublic)(e))},t.importPublic=function(t){return(0,f.assertIsBuffer)(t),64!==t.length&&(t=e.from((0,o.publicKeyConvert)(t,!1).slice(1))),t},t.zeroAddress=function(){var e=(0,u.zeros)(20);return(0,u.bufferToHex)(e)},t.isZeroAddress=function(e){try{(0,f.assertIsString)(e)}catch(e){return!1}return(0,t.zeroAddress)()===e}}).call(this,r(1).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(136),i=r(290);t.createPrivateKey=function(){return function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){var e;return function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,(function(t){switch(t.label){case 0:return[4,i.getRandomBytes(32)];case 1:return e=t.sent(),n.privateKeyVerify(e)?[2,e]:[3,0];case 2:return[2]}}))}))},t.createPrivateKeySync=function(){for(;;){var e=i.getRandomBytesSync(32);if(n.privateKeyVerify(e))return e}},function(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}(r(136))},function(e,t,r){"use strict";e.exports=r(269)(r(270))},function(e,t,r){"use strict";var n=t;function i(e){return 1===e.length?"0"+e:e}function o(e){for(var t="",r=0;r<e.length;r++)t+=i(e[r].toString(16));return t}n.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e){for(var n=0;n<e.length;n++)r[n]=0|e[n];return r}if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16));else for(n=0;n<e.length;n++){var i=e.charCodeAt(n),o=i>>8,a=255&i;o?r.push(o,a):r.push(a)}return r},n.zero2=i,n.toHex=o,n.encode=function(e,t){return"hex"===t?o(e):e}},function(e,t,r){"use strict";var n=t;n.base=r(71),n.short=r(273),n.mont=r(274),n.edwards=r(275)},function(e,t,r){"use strict";var n=r(25).rotr32;function i(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?i(t,r,n):1===e||3===e?a(t,r,n):2===e?o(t,r,n):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},function(e,t,r){"use strict";var n=r(25),i=r(60),o=r(139),a=r(19),s=n.sum32,u=n.sum32_4,c=n.sum32_5,f=o.ch32,l=o.maj32,d=o.s0_256,h=o.s1_256,p=o.g0_256,b=o.g1_256,y=i.BlockHash,g=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function m(){if(!(this instanceof m))return new m;y.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}n.inherits(m,y),e.exports=m,m.blockSize=512,m.outSize=256,m.hmacStrength=192,m.padLength=64,m.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=u(b(r[n-2]),r[n-7],p(r[n-15]),r[n-16]);var i=this.h[0],o=this.h[1],y=this.h[2],g=this.h[3],m=this.h[4],v=this.h[5],w=this.h[6],_=this.h[7];for(a(this.k.length===r.length),n=0;n<r.length;n++){var x=c(_,h(m),f(m,v,w),this.k[n],r[n]),O=s(d(i),l(i,o,y));_=w,w=v,v=m,m=s(g,x),g=y,y=o,o=i,i=s(x,O)}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],y),this.h[3]=s(this.h[3],g),this.h[4]=s(this.h[4],m),this.h[5]=s(this.h[5],v),this.h[6]=s(this.h[6],w),this.h[7]=s(this.h[7],_)},m.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(e,t,r){"use strict";var n=r(25),i=r(60),o=r(19),a=n.rotr64_hi,s=n.rotr64_lo,u=n.shr64_hi,c=n.shr64_lo,f=n.sum64,l=n.sum64_hi,d=n.sum64_lo,h=n.sum64_4_hi,p=n.sum64_4_lo,b=n.sum64_5_hi,y=n.sum64_5_lo,g=i.BlockHash,m=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function v(){if(!(this instanceof v))return new v;g.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=m,this.W=new Array(160)}function w(e,t,r,n,i){var o=e&r^~e&i;return o<0&&(o+=4294967296),o}function _(e,t,r,n,i,o){var a=t&n^~t&o;return a<0&&(a+=4294967296),a}function x(e,t,r,n,i){var o=e&r^e&i^r&i;return o<0&&(o+=4294967296),o}function O(e,t,r,n,i,o){var a=t&n^t&o^n&o;return a<0&&(a+=4294967296),a}function k(e,t){var r=a(e,t,28)^a(t,e,2)^a(t,e,7);return r<0&&(r+=4294967296),r}function P(e,t){var r=s(e,t,28)^s(t,e,2)^s(t,e,7);return r<0&&(r+=4294967296),r}function S(e,t){var r=a(e,t,14)^a(e,t,18)^a(t,e,9);return r<0&&(r+=4294967296),r}function A(e,t){var r=s(e,t,14)^s(e,t,18)^s(t,e,9);return r<0&&(r+=4294967296),r}function E(e,t){var r=a(e,t,1)^a(e,t,8)^u(e,t,7);return r<0&&(r+=4294967296),r}function M(e,t){var r=s(e,t,1)^s(e,t,8)^c(e,t,7);return r<0&&(r+=4294967296),r}function j(e,t){var r=a(e,t,19)^a(t,e,29)^u(e,t,6);return r<0&&(r+=4294967296),r}function T(e,t){var r=s(e,t,19)^s(t,e,29)^c(e,t,6);return r<0&&(r+=4294967296),r}n.inherits(v,g),e.exports=v,v.blockSize=1024,v.outSize=512,v.hmacStrength=192,v.padLength=128,v.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n<r.length;n+=2){var i=j(r[n-4],r[n-3]),o=T(r[n-4],r[n-3]),a=r[n-14],s=r[n-13],u=E(r[n-30],r[n-29]),c=M(r[n-30],r[n-29]),f=r[n-32],l=r[n-31];r[n]=h(i,o,a,s,u,c,f,l),r[n+1]=p(i,o,a,s,u,c,f,l)}},v.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,n=this.h[0],i=this.h[1],a=this.h[2],s=this.h[3],u=this.h[4],c=this.h[5],h=this.h[6],p=this.h[7],g=this.h[8],m=this.h[9],v=this.h[10],E=this.h[11],M=this.h[12],j=this.h[13],T=this.h[14],B=this.h[15];o(this.k.length===r.length);for(var I=0;I<r.length;I+=2){var N=T,R=B,C=S(g,m),U=A(g,m),L=w(g,0,v,0,M),D=_(0,m,0,E,0,j),H=this.k[I],F=this.k[I+1],V=r[I],z=r[I+1],q=b(N,R,C,U,L,D,H,F,V,z),K=y(N,R,C,U,L,D,H,F,V,z);N=k(n,i),R=P(n,i),C=x(n,0,a,0,u),U=O(0,i,0,s,0,c);var W=l(N,R,C,U),G=d(N,R,C,U);T=M,B=j,M=v,j=E,v=g,E=m,g=l(h,p,q,K),m=d(p,p,q,K),h=u,p=c,u=a,c=s,a=n,s=i,n=l(q,K,W,G),i=d(q,K,W,G)}f(this.h,0,n,i),f(this.h,2,a,s),f(this.h,4,u,c),f(this.h,6,h,p),f(this.h,8,g,m),f(this.h,10,v,E),f(this.h,12,M,j),f(this.h,14,T,B)},v.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(e,t,r){"use strict";function n(t,r){return e.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t,r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";(t=e.exports=r(145)).Stream=t,t.Readable=t,t.Writable=r(149),t.Duplex=r(46),t.Transform=r(150),t.PassThrough=r(301),t.finished=r(96),t.pipeline=r(302)},function(e,t,r){"use strict";(function(t,n){var i;e.exports=P,P.ReadableState=k,r(20).EventEmitter;var o,a=function(e,t){return e.listeners(t).length},s=r(146),u=r(1).Buffer,c=t.Uint8Array||function(){},f=r(296);o=f&&f.debuglog?f.debuglog("stream"):function(){};var l,d,h,p=r(297),b=r(147),y=r(148).getHighWaterMark,g=r(45).codes,m=g.ERR_INVALID_ARG_TYPE,v=g.ERR_STREAM_PUSH_AFTER_EOF,w=g.ERR_METHOD_NOT_IMPLEMENTED,_=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(3)(P,s);var x=b.errorOrDestroy,O=["error","close","destroy","pause","resume"];function k(e,t,n){i=i||r(46),e=e||{},"boolean"!=typeof n&&(n=t instanceof i),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=y(this,e,"readableHighWaterMark",n),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(l||(l=r(21).StringDecoder),this.decoder=new l(e.encoding),this.encoding=e.encoding)}function P(e){if(i=i||r(46),!(this instanceof P))return new P(e);var t=this instanceof i;this._readableState=new k(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function S(e,t,r,n,i){o("readableAddChunk",t);var a,s=e._readableState;if(null===t)s.reading=!1,function(e,t){if(o("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?M(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,j(e)))}}(e,s);else if(i||(a=function(e,t){var r,n;return n=t,u.isBuffer(n)||n instanceof c||"string"==typeof t||void 0===t||e.objectMode||(r=new m("chunk",["string","Buffer","Uint8Array"],t)),r}(s,t)),a)x(e,a);else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),n)s.endEmitted?x(e,new _):A(e,s,t,!0);else if(s.ended)x(e,new v);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?A(e,s,t,!1):T(e,s)):A(e,s,t,!1)}else n||(s.reading=!1,T(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function A(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&M(e)),T(e,t)}function E(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function M(e){var t=e._readableState;o("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(j,e))}function j(e){var t=e._readableState;o("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,C(e)}function T(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(B,e,t))}function B(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(o("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function I(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function N(e){o("readable nexttick read 0"),e.read(0)}function R(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),C(e),t.flowing&&!t.reading&&e.read(0)}function C(e){var t=e._readableState;for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function U(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function L(e){var t=e._readableState;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(D,t,e))}function D(e,t){if(o("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function H(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),P.prototype.destroy=b.destroy,P.prototype._undestroy=b.undestroy,P.prototype._destroy=function(e,t){t(e)},P.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=u.from(e,t),t=""),r=!0),S(this,e,t,!1,r)},P.prototype.unshift=function(e){return S(this,e,null,!0,!1)},P.prototype.isPaused=function(){return!1===this._readableState.flowing},P.prototype.setEncoding=function(e){l||(l=r(21).StringDecoder);var t=new l(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";null!==n;)i+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this},P.prototype.read=function(e){o("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return o("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?L(this):M(this),null;if(0===(e=E(e,t))&&t.ended)return 0===t.length&&L(this),null;var n,i=t.needReadable;return o("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&o("length less than watermark",i=!0),t.ended||t.reading?o("reading or ended",i=!1):i&&(o("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=E(r,t))),null===(n=e>0?U(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&L(this)),null!==n&&this.emit("data",n),n},P.prototype._read=function(e){x(this,new w("_read()"))},P.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,o("pipe count=%d opts=%j",i.pipesCount,t);var s=t&&!1===t.end||e===n.stdout||e===n.stderr?b:u;function u(){o("onend"),e.end()}i.endEmitted?n.nextTick(s):r.once("end",s),e.on("unpipe",(function t(n,a){o("onunpipe"),n===r&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,o("cleanup"),e.removeListener("close",h),e.removeListener("finish",p),e.removeListener("drain",c),e.removeListener("error",d),e.removeListener("unpipe",t),r.removeListener("end",u),r.removeListener("end",b),r.removeListener("data",l),f=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||c())}));var c=function(e){return function(){var t=e._readableState;o("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,C(e))}}(r);e.on("drain",c);var f=!1;function l(t){o("ondata");var n=e.write(t);o("dest.write",n),!1===n&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==H(i.pipes,e))&&!f&&(o("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function d(t){o("onerror",t),b(),e.removeListener("error",d),0===a(e,"error")&&x(e,t)}function h(){e.removeListener("finish",p),b()}function p(){o("onfinish"),e.removeListener("close",h),b()}function b(){o("unpipe"),r.unpipe(e)}return r.on("data",l),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",d),e.once("close",h),e.once("finish",p),e.emit("pipe",r),i.flowing||(o("pipe resume"),r.resume()),e},P.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=H(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},P.prototype.on=function(e,t){var r=s.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,o("on readable",i.length,i.reading),i.length?M(this):i.reading||n.nextTick(N,this))),r},P.prototype.addListener=P.prototype.on,P.prototype.removeListener=function(e,t){var r=s.prototype.removeListener.call(this,e,t);return"readable"===e&&n.nextTick(I,this),r},P.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||n.nextTick(I,this),t},P.prototype.resume=function(){var e=this._readableState;return e.flowing||(o("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(R,e,t))}(this,e)),e.paused=!1,this},P.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},P.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(o("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){o("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<O.length;a++)e.on(O[a],this.emit.bind(this,O[a]));return this._read=function(t){o("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(P.prototype[Symbol.asyncIterator]=function(){return void 0===d&&(d=r(299)),d(this)}),Object.defineProperty(P.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(P.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(P.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),P._fromList=U,Object.defineProperty(P.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(P.from=function(e,t){return void 0===h&&(h=r(300)),h(P,e,t)})}).call(this,r(7),r(6))},function(e,t,r){"use strict";e.exports=r(20).EventEmitter},function(e,t,r){"use strict";(function(t){function r(e,t){i(e,t),n(e)}function n(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,o){var a=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?(o?o(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,t.nextTick(i,this,e)):t.nextTick(i,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!o&&e?a._writableState?a._writableState.errorEmitted?t.nextTick(n,a):(a._writableState.errorEmitted=!0,t.nextTick(r,a,e)):t.nextTick(r,a,e):o?(t.nextTick(n,a),o(e)):t.nextTick(n,a)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this,r(6))},function(e,t,r){"use strict";var n=r(45).codes.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,i){var o=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,i,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},function(e,t,r){"use strict";(function(t,n){function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(undefined),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var o;e.exports=P,P.WritableState=k;var a,s={deprecate:r(74)},u=r(146),c=r(1).Buffer,f=t.Uint8Array||function(){},l=r(147),d=r(148).getHighWaterMark,h=r(45).codes,p=h.ERR_INVALID_ARG_TYPE,b=h.ERR_METHOD_NOT_IMPLEMENTED,y=h.ERR_MULTIPLE_CALLBACK,g=h.ERR_STREAM_CANNOT_PIPE,m=h.ERR_STREAM_DESTROYED,v=h.ERR_STREAM_NULL_VALUES,w=h.ERR_STREAM_WRITE_AFTER_END,_=h.ERR_UNKNOWN_ENCODING,x=l.errorOrDestroy;function O(){}function k(e,t,a){o=o||r(46),e=e||{},"boolean"!=typeof a&&(a=t instanceof o),this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,i=r.sync,o=r.writecb;if("function"!=typeof o)throw new y;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,i,o){--t.pendingcb,r?(n.nextTick(o,i),n.nextTick(T,e,t),e._writableState.errorEmitted=!0,x(e,i)):(o(i),e._writableState.errorEmitted=!0,x(e,i),T(e,t))}(e,r,i,t,o);else{var a=M(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||E(e,r),i?n.nextTick(A,e,r,a,o):A(e,r,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function P(e){var t=this instanceof(o=o||r(46));if(!t&&!a.call(P,this))return new P(e);this._writableState=new k(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function S(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new m("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function A(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),T(e,t)}function E(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,o=new Array(n),a=t.corkedRequestsFree;a.entry=r;for(var s=0,u=!0;r;)o[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;o.allBuffers=u,S(e,t,!0,t.length,o,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,f=r.encoding,l=r.callback;if(S(e,t,!1,t.objectMode?1:c.length,c,f,l),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function M(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function j(e,t){e._final((function(r){t.pendingcb--,r&&x(e,r),t.prefinished=!0,e.emit("prefinish"),T(e,t)}))}function T(e,t){var r=M(t);if(r&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,n.nextTick(j,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return r}r(3)(P,u),k.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(k.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(a=Function.prototype[Symbol.hasInstance],Object.defineProperty(P,Symbol.hasInstance,{value:function(e){return!!a.call(this,e)||this===P&&e&&e._writableState instanceof k}})):a=function(e){return e instanceof this},P.prototype.pipe=function(){x(this,new g)},P.prototype.write=function(e,t,r){var i,o=this._writableState,a=!1,s=!o.objectMode&&(i=e,c.isBuffer(i)||i instanceof f);return s&&!c.isBuffer(e)&&(e=function(e){return c.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof r&&(r=O),o.ending?function(e,t){var r=new w;x(e,r),n.nextTick(t,r)}(this,r):(s||function(e,t,r,i){var o;return null===r?o=new v:"string"==typeof r||t.objectMode||(o=new p("chunk",["string","Buffer"],r)),!o||(x(e,o),n.nextTick(i,o),!1)}(this,o,e,r))&&(o.pendingcb++,a=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=c.from(t,r)),t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var f=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},f?f.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else S(e,t,!1,s,n,i,o);return u}(this,o,s,e,t,r)),a},P.prototype.cork=function(){this._writableState.corked++},P.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||E(this,e))},P.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new _(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(P.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(P.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),P.prototype._write=function(e,t,r){r(new b("_write()"))},P.prototype._writev=null,P.prototype.end=function(e,t,r){var i=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,r){t.ending=!0,T(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,i,r),this},Object.defineProperty(P.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),P.prototype.destroy=l.destroy,P.prototype._undestroy=l.undestroy,P.prototype._destroy=function(e,t){t(e)}}).call(this,r(7),r(6))},function(e,t,r){"use strict";e.exports=f;var n=r(45).codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(46);function c(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function f(e){if(!(this instanceof f))return new f(e);u.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",l)}function l(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush((function(t,r){d(e,t,r)}))}function d(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}r(3)(f,u),f.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},f.prototype._transform=function(e,t,r){r(new i("_transform()"))},f.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},f.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},f.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,(function(e){t(e)}))}},function(e,t,r){"use strict";var n=r(5).Buffer,i=r(306).Transform;function o(e){i.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(3)(o,i),o.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)},o.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},o.prototype.update=function(e,t){if(function(e,t){if(!n.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer")}(e),this._finalized)throw new Error("Digest already called");n.isBuffer(e)||(e=n.from(e,t));for(var r=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)r[o++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)r[this._blockOffset++]=e[i++];for(var a=0,s=8*e.length;s>0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=o},function(e,t,r){"use strict";(function(t,n){var i;e.exports=P,P.ReadableState=k,r(20).EventEmitter;var o,a=function(e,t){return e.listeners(t).length},s=r(153),u=r(1).Buffer,c=t.Uint8Array||function(){},f=r(307);o=f&&f.debuglog?f.debuglog("stream"):function(){};var l,d,h,p=r(308),b=r(154),y=r(155).getHighWaterMark,g=r(48).codes,m=g.ERR_INVALID_ARG_TYPE,v=g.ERR_STREAM_PUSH_AFTER_EOF,w=g.ERR_METHOD_NOT_IMPLEMENTED,_=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(3)(P,s);var x=b.errorOrDestroy,O=["error","close","destroy","pause","resume"];function k(e,t,n){i=i||r(49),e=e||{},"boolean"!=typeof n&&(n=t instanceof i),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=y(this,e,"readableHighWaterMark",n),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(l||(l=r(21).StringDecoder),this.decoder=new l(e.encoding),this.encoding=e.encoding)}function P(e){if(i=i||r(49),!(this instanceof P))return new P(e);var t=this instanceof i;this._readableState=new k(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function S(e,t,r,n,i){o("readableAddChunk",t);var a,s=e._readableState;if(null===t)s.reading=!1,function(e,t){if(o("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?M(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,j(e)))}}(e,s);else if(i||(a=function(e,t){var r,n;return n=t,u.isBuffer(n)||n instanceof c||"string"==typeof t||void 0===t||e.objectMode||(r=new m("chunk",["string","Buffer","Uint8Array"],t)),r}(s,t)),a)x(e,a);else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),n)s.endEmitted?x(e,new _):A(e,s,t,!0);else if(s.ended)x(e,new v);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?A(e,s,t,!1):T(e,s)):A(e,s,t,!1)}else n||(s.reading=!1,T(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function A(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&M(e)),T(e,t)}function E(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function M(e){var t=e._readableState;o("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(j,e))}function j(e){var t=e._readableState;o("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,C(e)}function T(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(B,e,t))}function B(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(o("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function I(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function N(e){o("readable nexttick read 0"),e.read(0)}function R(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),C(e),t.flowing&&!t.reading&&e.read(0)}function C(e){var t=e._readableState;for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function U(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function L(e){var t=e._readableState;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(D,t,e))}function D(e,t){if(o("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function H(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),P.prototype.destroy=b.destroy,P.prototype._undestroy=b.undestroy,P.prototype._destroy=function(e,t){t(e)},P.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=u.from(e,t),t=""),r=!0),S(this,e,t,!1,r)},P.prototype.unshift=function(e){return S(this,e,null,!0,!1)},P.prototype.isPaused=function(){return!1===this._readableState.flowing},P.prototype.setEncoding=function(e){l||(l=r(21).StringDecoder);var t=new l(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";null!==n;)i+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this},P.prototype.read=function(e){o("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return o("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?L(this):M(this),null;if(0===(e=E(e,t))&&t.ended)return 0===t.length&&L(this),null;var n,i=t.needReadable;return o("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&o("length less than watermark",i=!0),t.ended||t.reading?o("reading or ended",i=!1):i&&(o("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=E(r,t))),null===(n=e>0?U(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&L(this)),null!==n&&this.emit("data",n),n},P.prototype._read=function(e){x(this,new w("_read()"))},P.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,o("pipe count=%d opts=%j",i.pipesCount,t);var s=t&&!1===t.end||e===n.stdout||e===n.stderr?b:u;function u(){o("onend"),e.end()}i.endEmitted?n.nextTick(s):r.once("end",s),e.on("unpipe",(function t(n,a){o("onunpipe"),n===r&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,o("cleanup"),e.removeListener("close",h),e.removeListener("finish",p),e.removeListener("drain",c),e.removeListener("error",d),e.removeListener("unpipe",t),r.removeListener("end",u),r.removeListener("end",b),r.removeListener("data",l),f=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||c())}));var c=function(e){return function(){var t=e._readableState;o("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,C(e))}}(r);e.on("drain",c);var f=!1;function l(t){o("ondata");var n=e.write(t);o("dest.write",n),!1===n&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==H(i.pipes,e))&&!f&&(o("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function d(t){o("onerror",t),b(),e.removeListener("error",d),0===a(e,"error")&&x(e,t)}function h(){e.removeListener("finish",p),b()}function p(){o("onfinish"),e.removeListener("close",h),b()}function b(){o("unpipe"),r.unpipe(e)}return r.on("data",l),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",d),e.once("close",h),e.once("finish",p),e.emit("pipe",r),i.flowing||(o("pipe resume"),r.resume()),e},P.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=H(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},P.prototype.on=function(e,t){var r=s.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,o("on readable",i.length,i.reading),i.length?M(this):i.reading||n.nextTick(N,this))),r},P.prototype.addListener=P.prototype.on,P.prototype.removeListener=function(e,t){var r=s.prototype.removeListener.call(this,e,t);return"readable"===e&&n.nextTick(I,this),r},P.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||n.nextTick(I,this),t},P.prototype.resume=function(){var e=this._readableState;return e.flowing||(o("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(R,e,t))}(this,e)),e.paused=!1,this},P.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},P.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(o("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){o("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<O.length;a++)e.on(O[a],this.emit.bind(this,O[a]));return this._read=function(t){o("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(P.prototype[Symbol.asyncIterator]=function(){return void 0===d&&(d=r(310)),d(this)}),Object.defineProperty(P.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(P.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(P.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),P._fromList=U,Object.defineProperty(P.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(P.from=function(e,t){return void 0===h&&(h=r(311)),h(P,e,t)})}).call(this,r(7),r(6))},function(e,t,r){"use strict";e.exports=r(20).EventEmitter},function(e,t,r){"use strict";(function(t){function r(e,t){i(e,t),n(e)}function n(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,o){var a=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?(o?o(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,t.nextTick(i,this,e)):t.nextTick(i,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!o&&e?a._writableState?a._writableState.errorEmitted?t.nextTick(n,a):(a._writableState.errorEmitted=!0,t.nextTick(r,a,e)):t.nextTick(r,a,e):o?(t.nextTick(n,a),o(e)):t.nextTick(n,a)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this,r(6))},function(e,t,r){"use strict";var n=r(48).codes.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,i){var o=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,i,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},function(e,t,r){"use strict";(function(t,n){function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(undefined),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var o;e.exports=P,P.WritableState=k;var a,s={deprecate:r(74)},u=r(153),c=r(1).Buffer,f=t.Uint8Array||function(){},l=r(154),d=r(155).getHighWaterMark,h=r(48).codes,p=h.ERR_INVALID_ARG_TYPE,b=h.ERR_METHOD_NOT_IMPLEMENTED,y=h.ERR_MULTIPLE_CALLBACK,g=h.ERR_STREAM_CANNOT_PIPE,m=h.ERR_STREAM_DESTROYED,v=h.ERR_STREAM_NULL_VALUES,w=h.ERR_STREAM_WRITE_AFTER_END,_=h.ERR_UNKNOWN_ENCODING,x=l.errorOrDestroy;function O(){}function k(e,t,a){o=o||r(49),e=e||{},"boolean"!=typeof a&&(a=t instanceof o),this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,i=r.sync,o=r.writecb;if("function"!=typeof o)throw new y;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,i,o){--t.pendingcb,r?(n.nextTick(o,i),n.nextTick(T,e,t),e._writableState.errorEmitted=!0,x(e,i)):(o(i),e._writableState.errorEmitted=!0,x(e,i),T(e,t))}(e,r,i,t,o);else{var a=M(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||E(e,r),i?n.nextTick(A,e,r,a,o):A(e,r,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function P(e){var t=this instanceof(o=o||r(49));if(!t&&!a.call(P,this))return new P(e);this._writableState=new k(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function S(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new m("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function A(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),T(e,t)}function E(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,o=new Array(n),a=t.corkedRequestsFree;a.entry=r;for(var s=0,u=!0;r;)o[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;o.allBuffers=u,S(e,t,!0,t.length,o,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,f=r.encoding,l=r.callback;if(S(e,t,!1,t.objectMode?1:c.length,c,f,l),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function M(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function j(e,t){e._final((function(r){t.pendingcb--,r&&x(e,r),t.prefinished=!0,e.emit("prefinish"),T(e,t)}))}function T(e,t){var r=M(t);if(r&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,n.nextTick(j,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return r}r(3)(P,u),k.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(k.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(a=Function.prototype[Symbol.hasInstance],Object.defineProperty(P,Symbol.hasInstance,{value:function(e){return!!a.call(this,e)||this===P&&e&&e._writableState instanceof k}})):a=function(e){return e instanceof this},P.prototype.pipe=function(){x(this,new g)},P.prototype.write=function(e,t,r){var i,o=this._writableState,a=!1,s=!o.objectMode&&(i=e,c.isBuffer(i)||i instanceof f);return s&&!c.isBuffer(e)&&(e=function(e){return c.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof r&&(r=O),o.ending?function(e,t){var r=new w;x(e,r),n.nextTick(t,r)}(this,r):(s||function(e,t,r,i){var o;return null===r?o=new v:"string"==typeof r||t.objectMode||(o=new p("chunk",["string","Buffer"],r)),!o||(x(e,o),n.nextTick(i,o),!1)}(this,o,e,r))&&(o.pendingcb++,a=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=c.from(t,r)),t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var f=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},f?f.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else S(e,t,!1,s,n,i,o);return u}(this,o,s,e,t,r)),a},P.prototype.cork=function(){this._writableState.corked++},P.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||E(this,e))},P.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new _(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(P.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(P.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),P.prototype._write=function(e,t,r){r(new b("_write()"))},P.prototype._writev=null,P.prototype.end=function(e,t,r){var i=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,r){t.ending=!0,T(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,i,r),this},Object.defineProperty(P.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),P.prototype.destroy=l.destroy,P.prototype._undestroy=l.undestroy,P.prototype._destroy=function(e,t){t(e)}}).call(this,r(7),r(6))},function(e,t,r){"use strict";e.exports=f;var n=r(48).codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(49);function c(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function f(e){if(!(this instanceof f))return new f(e);u.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",l)}function l(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush((function(t,r){d(e,t,r)}))}function d(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}r(3)(f,u),f.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},f.prototype._transform=function(e,t,r){r(new i("_transform()"))},f.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},f.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},f.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,(function(e){t(e)}))}},function(e,t,r){"use strict";var n=r(3),i=r(50),o=r(5).Buffer,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=new Array(64);function u(){this.init(),this._w=s,i.call(this,64,56)}function c(e,t,r){return r^e&(t^r)}function f(e,t,r){return e&t|r&(e|t)}function l(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function d(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function h(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}n(u,i),u.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,p=0|this._f,b=0|this._g,y=0|this._h,g=0;g<16;++g)r[g]=e.readInt32BE(4*g);for(;g<64;++g)r[g]=0|(((t=r[g-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[g-7]+h(r[g-15])+r[g-16];for(var m=0;m<64;++m){var v=y+d(u)+c(u,p,b)+a[m]+r[m]|0,w=l(n)+f(n,i,o)|0;y=b,b=p,p=u,u=s+v|0,s=o,o=i,i=n,n=v+w|0}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0,this._f=p+this._f|0,this._g=b+this._g|0,this._h=y+this._h|0},u.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=u},function(e,t,r){"use strict";var n=r(3),i=r(50),o=r(5).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function u(){this.init(),this._w=s,i.call(this,128,112)}function c(e,t,r){return r^e&(t^r)}function f(e,t,r){return e&t|r&(e|t)}function l(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function d(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function b(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function y(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function g(e,t){return e>>>0<t>>>0?1:0}n(u,i),u.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},u.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,u=0|this._fh,m=0|this._gh,v=0|this._hh,w=0|this._al,_=0|this._bl,x=0|this._cl,O=0|this._dl,k=0|this._el,P=0|this._fl,S=0|this._gl,A=0|this._hl,E=0;E<32;E+=2)t[E]=e.readInt32BE(4*E),t[E+1]=e.readInt32BE(4*E+4);for(;E<160;E+=2){var M=t[E-30],j=t[E-30+1],T=h(M,j),B=p(j,M),I=b(M=t[E-4],j=t[E-4+1]),N=y(j,M),R=t[E-14],C=t[E-14+1],U=t[E-32],L=t[E-32+1],D=B+C|0,H=T+R+g(D,B)|0;H=(H=H+I+g(D=D+N|0,N)|0)+U+g(D=D+L|0,L)|0,t[E]=H,t[E+1]=D}for(var F=0;F<160;F+=2){H=t[F],D=t[F+1];var V=f(r,n,i),z=f(w,_,x),q=l(r,w),K=l(w,r),W=d(s,k),G=d(k,s),X=a[F],Z=a[F+1],J=c(s,u,m),Y=c(k,P,S),Q=A+G|0,$=v+W+g(Q,A)|0;$=($=($=$+J+g(Q=Q+Y|0,Y)|0)+X+g(Q=Q+Z|0,Z)|0)+H+g(Q=Q+D|0,D)|0;var ee=K+z|0,te=q+V+g(ee,K)|0;v=m,A=S,m=u,S=P,u=s,P=k,s=o+$+g(k=O+Q|0,O)|0,o=i,O=x,i=n,x=_,n=r,_=w,r=$+te+g(w=Q+ee|0,Q)|0}this._al=this._al+w|0,this._bl=this._bl+_|0,this._cl=this._cl+x|0,this._dl=this._dl+O|0,this._el=this._el+k|0,this._fl=this._fl+P|0,this._gl=this._gl+S|0,this._hl=this._hl+A|0,this._ah=this._ah+r+g(this._al,w)|0,this._bh=this._bh+n+g(this._bl,_)|0,this._ch=this._ch+i+g(this._cl,x)|0,this._dh=this._dh+o+g(this._dl,O)|0,this._eh=this._eh+s+g(this._el,k)|0,this._fh=this._fh+u+g(this._fl,P)|0,this._gh=this._gh+m+g(this._gl,S)|0,this._hh=this._hh+v+g(this._hl,A)|0},u.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=u},function(e,t,r){"use strict";e.exports=i;var n=r(20).EventEmitter;function i(){n.call(this)}r(3)(i,n),i.Readable=r(61),i.Writable=r(323),i.Duplex=r(324),i.Transform=r(325),i.PassThrough=r(326),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",u));var a=!1;function s(){a||(a=!0,e.end())}function u(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(f(),0===n.listenerCount(this,"error"))throw e}function f(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",u),r.removeListener("error",c),e.removeListener("error",c),r.removeListener("end",f),r.removeListener("close",f),e.removeListener("close",f)}return r.on("error",c),e.on("error",c),r.on("end",f),r.on("close",f),e.on("close",f),e.emit("pipe",r),e}},function(e,t,r){"use strict";(function(t,n){var i=r(75);e.exports=v;var o,a=r(130);v.ReadableState=m,r(20).EventEmitter;var s=function(e,t){return e.listeners(t).length},u=r(162),c=r(101).Buffer,f=t.Uint8Array||function(){},l=Object.create(r(62));l.inherits=r(3);var d=r(318),h=void 0;h=d&&d.debuglog?d.debuglog("stream"):function(){};var p,b=r(319),y=r(163);l.inherits(v,u);var g=["error","close","destroy","pause","resume"];function m(e,t){e=e||{};var n=t instanceof(o=o||r(37));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new b,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=r(21).StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function v(e){if(o=o||r(37),!(this instanceof v))return new v(e);this._readableState=new m(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),u.call(this)}function w(e,t,r,n,i){var o,a=e._readableState;return null===t?(a.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,O(e)}}(e,a)):(i||(o=function(e,t){var r,n;return n=t,c.isBuffer(n)||n instanceof f||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),n?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):_(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?_(e,a,t,!1):P(e,a)):_(e,a,t,!1))):n||(a.reading=!1)),function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(a)}function _(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&O(e)),P(e,t)}function x(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function O(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(k,e):k(e))}function k(e){h("emit readable"),e.emit("readable"),M(e)}function P(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(S,e,t))}function S(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(h("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function A(e){h("readable nexttick read 0"),e.read(0)}function E(e,t){t.reading||(h("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),M(e),t.flowing&&!t.reading&&e.read(0)}function M(e){var t=e._readableState;for(h("flow",t.flowing);t.flowing&&null!==e.read(););}function j(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;return e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?function(e,t){var r=t.head,n=1,i=r.data;for(e-=i.length;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0==(e-=a)){a===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=c.allocUnsafe(e),n=t.head,i=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),0==(e-=a)){a===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++i}return t.length-=i,r}(e,t),n}(e,t.buffer,t.decoder),r);var r}function T(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(B,t,e))}function B(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function I(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),v.prototype.destroy=y.destroy,v.prototype._undestroy=y.undestroy,v.prototype._destroy=function(e,t){this.push(null),t(e)},v.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=c.from(e,t),t=""),r=!0),w(this,e,t,!1,r)},v.prototype.unshift=function(e){return w(this,e,null,!0,!1)},v.prototype.isPaused=function(){return!1===this._readableState.flowing},v.prototype.setEncoding=function(e){return p||(p=r(21).StringDecoder),this._readableState.decoder=new p(e),this._readableState.encoding=e,this},v.prototype.read=function(e){h("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?T(this):O(this),null;if(0===(e=x(e,t))&&t.ended)return 0===t.length&&T(this),null;var n,i=t.needReadable;return h("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&h("length less than watermark",i=!0),t.ended||t.reading?h("reading or ended",i=!1):i&&(h("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=x(r,t))),null===(n=e>0?j(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&T(this)),null!==n&&this.emit("data",n),n},v.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},v.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,h("pipe count=%d opts=%j",o.pipesCount,t);var u=t&&!1===t.end||e===n.stdout||e===n.stderr?m:c;function c(){h("onend"),e.end()}o.endEmitted?i.nextTick(u):r.once("end",u),e.on("unpipe",(function t(n,i){h("onunpipe"),n===r&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,h("cleanup"),e.removeListener("close",y),e.removeListener("finish",g),e.removeListener("drain",f),e.removeListener("error",b),e.removeListener("unpipe",t),r.removeListener("end",c),r.removeListener("end",m),r.removeListener("data",p),l=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||f())}));var f=function(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,M(e))}}(r);e.on("drain",f);var l=!1,d=!1;function p(t){h("ondata"),d=!1,!1!==e.write(t)||d||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==I(o.pipes,e))&&!l&&(h("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,d=!0),r.pause())}function b(t){h("onerror",t),m(),e.removeListener("error",b),0===s(e,"error")&&e.emit("error",t)}function y(){e.removeListener("finish",g),m()}function g(){h("onfinish"),e.removeListener("close",y),m()}function m(){h("unpipe"),r.unpipe(e)}return r.on("data",p),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",b),e.once("close",y),e.once("finish",g),e.emit("pipe",r),o.flowing||(h("pipe resume"),r.resume()),e},v.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,r);return this}var a=I(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},v.prototype.on=function(e,t){var r=u.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&O(this):i.nextTick(A,this))}return r},v.prototype.addListener=v.prototype.on,v.prototype.resume=function(){var e=this._readableState;return e.flowing||(h("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(E,e,t))}(this,e)),this},v.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this},v.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(h("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){h("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<g.length;o++)e.on(g[o],this.emit.bind(this,g[o]));return this._read=function(t){h("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(v.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),v._fromList=j}).call(this,r(7),r(6))},function(e,t,r){"use strict";e.exports=r(20).EventEmitter},function(e,t,r){"use strict";var n=r(75);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||n.nextTick(i,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(n.nextTick(i,r,e),r._writableState&&(r._writableState.errorEmitted=!0)):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,r){"use strict";(function(e){var n=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(i.call(setTimeout,n,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,n,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(n,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},r(321),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||void 0,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||void 0}).call(this,r(7))},function(e,t,r){"use strict";e.exports=a;var n=r(37),i=Object.create(r(62));function o(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function a(e){if(!(this instanceof a))return new a(e);n.call(this,e),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",s)}function s(){var e=this;"function"==typeof this._flush?this._flush((function(t,r){u(e,t,r)})):u(this,null,null)}function u(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=r(3),i.inherits(a,n),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},a.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},a.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,(function(e){t(e),r.emit("close")}))}},function(e,t,r){"use strict";var n=r(0),i=n(r(8)),o=n(r(9)),a=r(17),s=r(4),u=function(e){var t="A".charCodeAt(0),r="Z".charCodeAt(0);return(e=(e=e.toUpperCase()).slice(4)+e.slice(0,4)).split("").map((function(e){var n=e.charCodeAt(0);return n>=t&&n<=r?n-t+10:e})).join("")},c=function(e){for(var t,r=e;r.length>2;)t=r.slice(0,9),r=parseInt(t,10)%97+r.slice(t.length);return parseInt(r,10)%97},f=function(){function e(t){(0,i.default)(this,e),this._iban=t}return(0,o.default)(e,[{key:"isValid",value:function(){return/^XE[0-9]{2}(ETH[0-9A-Z]{13}|[0-9A-Z]{30,31})$/.test(this._iban)&&1===c(u(this._iban))}},{key:"isDirect",value:function(){return 34===this._iban.length||35===this._iban.length}},{key:"isIndirect",value:function(){return 20===this._iban.length}},{key:"checksum",value:function(){return this._iban.slice(2,4)}},{key:"institution",value:function(){return this.isIndirect()?this._iban.slice(7,11):""}},{key:"client",value:function(){return this.isIndirect()?this._iban.slice(11):""}},{key:"toAddress",value:function(){if(this.isDirect()){var e=this._iban.slice(4),t=new s(e,36);return a.toChecksumAddress(t.toString(16,20))}return""}},{key:"toString",value:function(){return this._iban}}],[{key:"toAddress",value:function(t){if(!(t=new e(t)).isDirect())throw new Error("IBAN is indirect and can't be converted");return t.toAddress()}},{key:"toIban",value:function(t){return e.fromAddress(t).toString()}},{key:"fromAddress",value:function(t){if(!a.isAddress(t))throw new Error("Provided address is not a valid address: "+t);t=t.replace("0x","").replace("0X","");var r=function(e,t){for(var r=e;r.length<30;)r="0"+r;return r}(new s(t,16).toString(36));return e.fromBban(r.toUpperCase())}},{key:"fromBban",value:function(t){return new e("XE"+("0"+(98-c(u("XE00"+t)))).slice(-2)+t)}},{key:"createIndirect",value:function(t){return e.fromBban("ETH"+t.institution+t.identifier)}},{key:"isValid",value:function(t){return new e(t).isValid()}}]),e}();e.exports=f},function(e,t,r){"use strict";var n={messageId:Math.floor(Math.random()*Number.MAX_SAFE_INTEGER),toPayload:function(e,t){if(!e)throw new Error('JSONRPC method should be specified for params: "'+JSON.stringify(t)+'"!');return n.messageId===Number.MAX_SAFE_INTEGER?n.messageId=Math.floor(Math.random()*Number.MAX_SAFE_INTEGER):n.messageId++,{jsonrpc:"2.0",id:n.messageId,method:e,params:t||[]}},isValidResponse:function(e){return Array.isArray(e)?e.every(t):t(e);function t(e){return!(!e||e.error||"2.0"!==e.jsonrpc||"number"!=typeof e.id&&"string"!=typeof e.id||void 0===e.result)}},toBatchPayload:function(e){return e.map((function(e){return n.toPayload(e.method,e.params)}))}};e.exports=n},function(e,t,r){"use strict";(function(e,n){var i,o=r(0)(r(2));!function(a){var s="object"==(0,o.default)(t)&&t&&!t.nodeType&&t,u="object"==(0,o.default)(e)&&e&&!e.nodeType&&e,c="object"==(void 0===n?"undefined":(0,o.default)(n))&&n;c.global!==c&&c.window!==c&&c.self!==c||(a=c);var f,l,d=2147483647,h=/^xn--/,p=/[^\x20-\x7E]/,b=/[\x2E\u3002\uFF0E\uFF61]/g,y={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},g=Math.floor,m=String.fromCharCode;function v(e){throw new RangeError(y[e])}function w(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function _(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+w((e=e.replace(b,".")).split("."),t).join(".")}function x(e){for(var t,r,n=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(r=e.charCodeAt(i++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--):n.push(t);return n}function O(e){return w(e,(function(e){var t="";return e>65535&&(t+=m((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+m(e)})).join("")}function k(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function P(e,t,r){var n=0;for(e=r?g(e/700):e>>1,e+=g(e/t);e>455;n+=36)e=g(e/35);return g(n+36*e/(e+38))}function S(e){var t,r,n,i,o,a,s,u,c,f,l,h=[],p=e.length,b=0,y=128,m=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&v("not-basic"),h.push(e.charCodeAt(n));for(i=r>0?r+1:0;i<p;){for(o=b,a=1,s=36;i>=p&&v("invalid-input"),((u=(l=e.charCodeAt(i++))-48<10?l-22:l-65<26?l-65:l-97<26?l-97:36)>=36||u>g((d-b)/a))&&v("overflow"),b+=u*a,!(u<(c=s<=m?1:s>=m+26?26:s-m));s+=36)a>g(d/(f=36-c))&&v("overflow"),a*=f;m=P(b-o,t=h.length+1,0==o),g(b/t)>d-y&&v("overflow"),y+=g(b/t),b%=t,h.splice(b++,0,y)}return O(h)}function A(e){var t,r,n,i,o,a,s,u,c,f,l,h,p,b,y,w=[];for(h=(e=x(e)).length,t=128,r=0,o=72,a=0;a<h;++a)(l=e[a])<128&&w.push(m(l));for(n=i=w.length,i&&w.push("-");n<h;){for(s=d,a=0;a<h;++a)(l=e[a])>=t&&l<s&&(s=l);for(s-t>g((d-r)/(p=n+1))&&v("overflow"),r+=(s-t)*p,t=s,a=0;a<h;++a)if((l=e[a])<t&&++r>d&&v("overflow"),l==t){for(u=r,c=36;!(u<(f=c<=o?1:c>=o+26?26:c-o));c+=36)y=u-f,b=36-f,w.push(m(k(f+y%b,0))),u=g(y/b);w.push(m(k(u,0))),o=P(r,p,n==i),r=0,++n}++r,++t}return w.join("")}if(f={version:"1.4.1",ucs2:{decode:x,encode:O},decode:S,encode:A,toASCII:function(e){return _(e,(function(e){return p.test(e)?"xn--"+A(e):e}))},toUnicode:function(e){return _(e,(function(e){return h.test(e)?S(e.slice(4).toLowerCase()):e}))}},"object"==(0,o.default)(r(76))&&r(76))void 0===(i=function(){return f}.call(t,r,t,e))||(e.exports=i);else if(s&&u)if(e.exports==s)u.exports=f;else for(l in f)f.hasOwnProperty(l)&&(s[l]=f[l]);else a.punycode=f}(void 0)}).call(this,r(35)(e),r(7))},function(e,t,r){"use strict";(function(e){var n=r(347),i=r(171),o=r(172),a=r(349),s=r(77),u=t;u.request=function(t,r){t="string"==typeof t?s.parse(t):o(t);var i=-1===e.location.protocol.search(/^https?:$/)?"http:":"",a=t.protocol||i,u=t.hostname||t.host,c=t.port,f=t.path||"/";u&&-1!==u.indexOf(":")&&(u="["+u+"]"),t.url=(u?a+"//"+u:"")+(c?":"+c:"")+f,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var l=new n(t);return r&&l.on("response",r),l},u.get=function(e,t){var r=u.request(e,t);return r.end(),r},u.ClientRequest=n,u.IncomingMessage=i.IncomingMessage,u.Agent=function(){},u.Agent.defaultMaxSockets=4,u.globalAgent=new u.Agent,u.STATUS_CODES=a,u.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,r(7))},function(e,t,r){"use strict";(function(e){t.fetch=s(e.fetch)&&s(e.ReadableStream),t.writableStream=s(e.WritableStream),t.abortController=s(e.AbortController),t.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),t.blobConstructor=!0}catch(e){}var r;function n(){if(void 0!==r)return r;if(e.XMLHttpRequest){r=new e.XMLHttpRequest;try{r.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(e){r=null}}else r=null;return r}function i(e){var t=n();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}var o=void 0!==e.ArrayBuffer,a=o&&s(e.ArrayBuffer.prototype.slice);function s(e){return"function"==typeof e}t.arraybuffer=t.fetch||o&&i("arraybuffer"),t.msstream=!t.fetch&&a&&i("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&o&&i("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!n()&&s(n().overrideMimeType),t.vbArray=s(e.VBArray),r=null}).call(this,r(7))},function(e,t,r){"use strict";(function(e,n,i){var o=r(170),a=r(91),s=r(61),u=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},c=t.IncomingMessage=function(t,r,a,u){var c=this;if(s.Readable.call(c),c._mode=a,c.headers={},c.rawHeaders=[],c.trailers={},c.rawTrailers=[],c.on("end",(function(){e.nextTick((function(){c.emit("close")}))})),"fetch"===a){if(c._fetchResponse=r,c.url=r.url,c.statusCode=r.status,c.statusMessage=r.statusText,r.headers.forEach((function(e,t){c.headers[t.toLowerCase()]=e,c.rawHeaders.push(t,e)})),o.writableStream){var f=new WritableStream({write:function(e){return new Promise((function(t,r){c._destroyed?r():c.push(new i(e))?t():c._resumeFetch=t}))},close:function(){n.clearTimeout(u),c._destroyed||c.push(null)},abort:function(e){c._destroyed||c.emit("error",e)}});try{return void r.body.pipeTo(f).catch((function(e){n.clearTimeout(u),c._destroyed||c.emit("error",e)}))}catch(e){}}var l=r.body.getReader();!function e(){l.read().then((function(t){if(!c._destroyed){if(t.done)return n.clearTimeout(u),void c.push(null);c.push(new i(t.value)),e()}})).catch((function(e){n.clearTimeout(u),c._destroyed||c.emit("error",e)}))}()}else if(c._xhr=t,c._pos=0,c.url=t.responseURL,c.statusCode=t.status,c.statusMessage=t.statusText,t.getAllResponseHeaders().split(/\r?\n/).forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(void 0===c.headers[r]&&(c.headers[r]=[]),c.headers[r].push(t[2])):void 0!==c.headers[r]?c.headers[r]+=", "+t[2]:c.headers[r]=t[2],c.rawHeaders.push(t[1],t[2])}})),c._charset="x-user-defined",!o.overrideMimeType){var d=c.rawHeaders["mime-type"];if(d){var h=d.match(/;\s*charset=([^;])(;|$)/);h&&(c._charset=h[1].toLowerCase())}c._charset||(c._charset="utf-8")}};a(c,s.Readable),c.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},c.prototype._onXHRProgress=function(){var e=this,t=e._xhr,r=null;switch(e._mode){case"text:vbarray":if(t.readyState!==u.DONE)break;try{r=new n.VBArray(t.responseBody).toArray()}catch(e){}if(null!==r){e.push(new i(r));break}case"text":try{r=t.responseText}catch(t){e._mode="text:vbarray";break}if(r.length>e._pos){var o=r.substr(e._pos);if("x-user-defined"===e._charset){for(var a=new i(o.length),s=0;s<o.length;s++)a[s]=255&o.charCodeAt(s);e.push(a)}else e.push(o,e._charset);e._pos=r.length}break;case"arraybuffer":if(t.readyState!==u.DONE||!t.response)break;r=t.response,e.push(new i(new Uint8Array(r)));break;case"moz-chunked-arraybuffer":if(r=t.response,t.readyState!==u.LOADING||!r)break;e.push(new i(new Uint8Array(r)));break;case"ms-stream":if(r=t.response,t.readyState!==u.LOADING)break;var c=new n.MSStreamReader;c.onprogress=function(){c.result.byteLength>e._pos&&(e.push(new i(new Uint8Array(c.result.slice(e._pos)))),e._pos=c.result.byteLength)},c.onload=function(){e.push(null)},c.readAsArrayBuffer(r)}e._xhr.readyState===u.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this,r(6),r(7),r(1).Buffer)},function(e,t,r){"use strict";e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var i in r)n.call(r,i)&&(e[i]=r[i])}return e};var n=Object.prototype.hasOwnProperty},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.BigNumber=void 0,t._base16To36=function(e){return new f(e,16).toString(36)},t._base36To16=function(e){return new f(e,36).toString(16)},t.isBigNumberish=function(e){return null!=e&&(p.isBigNumber(e)||"number"==typeof e&&e%1==0||"string"==typeof e&&!!e.match(/^-?[0-9]+$/)||(0,s.isHexString)(e)||"bigint"==typeof e||(0,s.isBytes)(e))};var i=n(r(8)),o=n(r(9)),a=n(r(4)),s=r(11),u=r(16),c=r(174),f=a.default.BN,l=new u.Logger(c.version),d={},h=!1,p=function(){function e(t,r){(0,i.default)(this,e),t!==d&&l.throwError("cannot call constructor directly; use BigNumber.from",u.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=r,this._isBigNumber=!0,Object.freeze(this)}return(0,o.default)(e,[{key:"fromTwos",value:function(e){return y(g(this).fromTwos(e))}},{key:"toTwos",value:function(e){return y(g(this).toTwos(e))}},{key:"abs",value:function(){return"-"===this._hex[0]?e.from(this._hex.substring(1)):this}},{key:"add",value:function(e){return y(g(this).add(g(e)))}},{key:"sub",value:function(e){return y(g(this).sub(g(e)))}},{key:"div",value:function(t){return e.from(t).isZero()&&m("division-by-zero","div"),y(g(this).div(g(t)))}},{key:"mul",value:function(e){return y(g(this).mul(g(e)))}},{key:"mod",value:function(e){var t=g(e);return t.isNeg()&&m("division-by-zero","mod"),y(g(this).umod(t))}},{key:"pow",value:function(e){var t=g(e);return t.isNeg()&&m("negative-power","pow"),y(g(this).pow(t))}},{key:"and",value:function(e){var t=g(e);return(this.isNegative()||t.isNeg())&&m("unbound-bitwise-result","and"),y(g(this).and(t))}},{key:"or",value:function(e){var t=g(e);return(this.isNegative()||t.isNeg())&&m("unbound-bitwise-result","or"),y(g(this).or(t))}},{key:"xor",value:function(e){var t=g(e);return(this.isNegative()||t.isNeg())&&m("unbound-bitwise-result","xor"),y(g(this).xor(t))}},{key:"mask",value:function(e){return(this.isNegative()||e<0)&&m("negative-width","mask"),y(g(this).maskn(e))}},{key:"shl",value:function(e){return(this.isNegative()||e<0)&&m("negative-width","shl"),y(g(this).shln(e))}},{key:"shr",value:function(e){return(this.isNegative()||e<0)&&m("negative-width","shr"),y(g(this).shrn(e))}},{key:"eq",value:function(e){return g(this).eq(g(e))}},{key:"lt",value:function(e){return g(this).lt(g(e))}},{key:"lte",value:function(e){return g(this).lte(g(e))}},{key:"gt",value:function(e){return g(this).gt(g(e))}},{key:"gte",value:function(e){return g(this).gte(g(e))}},{key:"isNegative",value:function(){return"-"===this._hex[0]}},{key:"isZero",value:function(){return g(this).isZero()}},{key:"toNumber",value:function(){try{return g(this).toNumber()}catch(e){m("overflow","toNumber",this.toString())}return null}},{key:"toBigInt",value:function(){try{return BigInt(this.toString())}catch(e){}return l.throwError("this platform does not support BigInt",u.Logger.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}},{key:"toString",value:function(){return arguments.length>0&&(10===arguments[0]?h||(h=!0,l.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?l.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",u.Logger.errors.UNEXPECTED_ARGUMENT,{}):l.throwError("BigNumber.toString does not accept parameters",u.Logger.errors.UNEXPECTED_ARGUMENT,{})),g(this).toString(10)}},{key:"toHexString",value:function(){return this._hex}},{key:"toJSON",value:function(e){return{type:"BigNumber",hex:this.toHexString()}}}],[{key:"from",value:function(t){if(t instanceof e)return t;if("string"==typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new e(d,b(t)):t.match(/^-?[0-9]+$/)?new e(d,b(new f(t))):l.throwArgumentError("invalid BigNumber string","value",t);if("number"==typeof t)return t%1&&m("underflow","BigNumber.from",t),(t>=9007199254740991||t<=-9007199254740991)&&m("overflow","BigNumber.from",t),e.from(String(t));var r=t;if("bigint"==typeof r)return e.from(r.toString());if((0,s.isBytes)(r))return e.from((0,s.hexlify)(r));if(r)if(r.toHexString){var n=r.toHexString();if("string"==typeof n)return e.from(n)}else{var i=r._hex;if(null==i&&"BigNumber"===r.type&&(i=r.hex),"string"==typeof i&&((0,s.isHexString)(i)||"-"===i[0]&&(0,s.isHexString)(i.substring(1))))return e.from(i)}return l.throwArgumentError("invalid BigNumber value","value",t)}},{key:"isBigNumber",value:function(e){return!(!e||!e._isBigNumber)}}]),e}();function b(e){if("string"!=typeof e)return b(e.toString(16));if("-"===e[0])return"-"===(e=e.substring(1))[0]&&l.throwArgumentError("invalid hex","value",e),"0x00"===(e=b(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 y(e){return p.from(b(e))}function g(e){var t=p.from(e).toHexString();return"-"===t[0]?new f("-"+t.substring(3),16):new f(t.substring(2),16)}function m(e,t,r){var n={fault:e,operation:t};return null!=r&&(n.value=r),l.throwError(e,u.Logger.errors.NUMERIC_FAULT,n)}t.BigNumber=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="bignumber/5.7.0"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decode=function(e){var t=(0,n.arrayify)(e),r=f(t,0);return r.consumed!==t.length&&a.throwArgumentError("invalid rlp data","data",e),r.result},t.encode=function(e){return(0,n.hexlify)(function e(t){if(Array.isArray(t)){var r=[];if(t.forEach((function(t){r=r.concat(e(t))})),r.length<=55)return r.unshift(192+r.length),r;var i=s(r.length);return i.unshift(247+i.length),i.concat(r)}(0,n.isBytesLike)(t)||a.throwArgumentError("RLP object must be BytesLike","object",t);var o=Array.prototype.slice.call((0,n.arrayify)(t));if(1===o.length&&o[0]<=127)return o;if(o.length<=55)return o.unshift(128+o.length),o;var u=s(o.length);return u.unshift(183+u.length),u.concat(o)}(e))};var n=r(11),i=r(16),o=r(364),a=new i.Logger(o.version);function s(e){for(var t=[];e;)t.unshift(255&e),e>>=8;return t}function u(e,t,r){for(var n=0,i=0;i<r;i++)n=256*n+e[t+i];return n}function c(e,t,r,n){for(var o=[];r<t+1+n;){var s=f(e,r);o.push(s.result),(r+=s.consumed)>t+1+n&&a.throwError("child data too short",i.Logger.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:o}}function f(e,t){if(0===e.length&&a.throwError("data too short",i.Logger.errors.BUFFER_OVERRUN,{}),e[t]>=248){var r=e[t]-247;t+1+r>e.length&&a.throwError("data short segment too short",i.Logger.errors.BUFFER_OVERRUN,{});var o=u(e,t+1,r);return t+1+r+o>e.length&&a.throwError("data long segment too short",i.Logger.errors.BUFFER_OVERRUN,{}),c(e,t,t+1+r,r+o)}if(e[t]>=192){var s=e[t]-192;return t+1+s>e.length&&a.throwError("data array too short",i.Logger.errors.BUFFER_OVERRUN,{}),c(e,t,t+1,s)}if(e[t]>=184){var f=e[t]-183;t+1+f>e.length&&a.throwError("data array too short",i.Logger.errors.BUFFER_OVERRUN,{});var l=u(e,t+1,f);return t+1+f+l>e.length&&a.throwError("data array too short",i.Logger.errors.BUFFER_OVERRUN,{}),{consumed:1+f+l,result:(0,n.hexlify)(e.slice(t+1+f,t+1+f+l))}}if(e[t]>=128){var d=e[t]-128;return t+1+d>e.length&&a.throwError("data too short",i.Logger.errors.BUFFER_OVERRUN,{}),{consumed:1+d,result:(0,n.hexlify)(e.slice(t+1,t+1+d))}}return{consumed:1,result:(0,n.hexlify)(e[t])}}},function(e,t,r){"use strict";e.exports={addresses:{main:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",ropsten:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",rinkeby:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",goerli:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},interfaceIds:{addr:"0x3b3b57de",setAddr:"0x3b3b57de",pubkey:"0xc8690233",setPubkey:"0xc8690233",contenthash:"0xbc1c58d1",setContenthash:"0xbc1c58d1",content:"0xd8389dc5",setContent:"0xd8389dc5"}}},function(e,t,r){"use strict";var n=r(0),i=n(r(58)),o=n(r(2));function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var u=r(34),c=r(38),f=r(17),l=r(79).subscription,d=r(12).formatters,h=r(12).errors,p=r(78),b=r(178),y=function e(t,r,n){var i=this,a=Array.prototype.slice.call(arguments);if(!(this instanceof e))throw new Error('Please use the "new" keyword to instantiate a web3.eth.Contract() object!');if(this.setProvider=function(){u.packageInit(i,arguments),i.clearSubscriptions=i._requestManager.clearSubscriptions},u.packageInit(this,[this.constructor]),this.clearSubscriptions=this._requestManager.clearSubscriptions,!t||!Array.isArray(t))throw h.ContractMissingABIError();this.options={};var c=a[a.length-1];c&&"object"===(0,o.default)(c)&&!Array.isArray(c)&&(n=c,this.options=s(s({},this.options),this._getOrSetDefaultOptions(n)),r&&"object"===(0,o.default)(r)&&(r=null)),Object.defineProperty(this.options,"address",{set:function(e){e&&(i._address=f.toChecksumAddress(d.inputAddressFormatter(e)))},get:function(){return i._address},enumerable:!0}),Object.defineProperty(this.options,"jsonInterface",{set:function(e){return i.methods={},i.events={},i._jsonInterface=e.map((function(e){var t,r;if(e.constant="view"===e.stateMutability||"pure"===e.stateMutability||e.constant,e.payable="payable"===e.stateMutability||e.payable,e.name&&(r=f._jsonInterfaceMethodToString(e)),"function"===e.type){if(e.signature=b.encodeFunctionSignature(r),t=i._createTxObject.bind({method:e,parent:i}),i.methods[e.name]){var n=i._createTxObject.bind({method:e,parent:i,nextMethod:i.methods[e.name]});i.methods[e.name]=n}else i.methods[e.name]=t;i.methods[e.signature]=t,i.methods[r]=t}else if("event"===e.type){e.signature=b.encodeEventSignature(r);var o=i._on.bind(i,e.signature);i.events[e.name]&&"bound "!==i.events[e.name].name||(i.events[e.name]=o),i.events[e.signature]=o,i.events[r]=o}return e})),i.events.allEvents=i._on.bind(i,"allevents"),i._jsonInterface},get:function(){return i._jsonInterface},enumerable:!0});var l=this.constructor.defaultAccount,p=this.constructor.defaultBlock||"latest";Object.defineProperty(this,"handleRevert",{get:function(){return!1===i.options.handleRevert||!0===i.options.handleRevert?i.options.handleRevert:this.constructor.handleRevert},set:function(e){i.options.handleRevert=e},enumerable:!0}),Object.defineProperty(this,"defaultCommon",{get:function(){return i.options.common||this.constructor.defaultCommon},set:function(e){i.options.common=e},enumerable:!0}),Object.defineProperty(this,"defaultHardfork",{get:function(){return i.options.hardfork||this.constructor.defaultHardfork},set:function(e){i.options.hardfork=e},enumerable:!0}),Object.defineProperty(this,"defaultChain",{get:function(){return i.options.chain||this.constructor.defaultChain},set:function(e){i.options.chain=e},enumerable:!0}),Object.defineProperty(this,"transactionPollingTimeout",{get:function(){return 0===i.options.transactionPollingTimeout?i.options.transactionPollingTimeout:i.options.transactionPollingTimeout||this.constructor.transactionPollingTimeout},set:function(e){i.options.transactionPollingTimeout=e},enumerable:!0}),Object.defineProperty(this,"transactionPollingInterval",{get:function(){return 0===i.options.transactionPollingInterval?i.options.transactionPollingInterval:i.options.transactionPollingInterval||this.constructor.transactionPollingInterval},set:function(e){i.options.transactionPollingInterval=e},enumerable:!0}),Object.defineProperty(this,"transactionConfirmationBlocks",{get:function(){return 0===i.options.transactionConfirmationBlocks?i.options.transactionConfirmationBlocks:i.options.transactionConfirmationBlocks||this.constructor.transactionConfirmationBlocks},set:function(e){i.options.transactionConfirmationBlocks=e},enumerable:!0}),Object.defineProperty(this,"transactionBlockTimeout",{get:function(){return 0===i.options.transactionBlockTimeout?i.options.transactionBlockTimeout:i.options.transactionBlockTimeout||this.constructor.transactionBlockTimeout},set:function(e){i.options.transactionBlockTimeout=e},enumerable:!0}),Object.defineProperty(this,"blockHeaderTimeout",{get:function(){return 0===i.options.blockHeaderTimeout?i.options.blockHeaderTimeout:i.options.blockHeaderTimeout||this.constructor.blockHeaderTimeout},set:function(e){i.options.blockHeaderTimeout=e},enumerable:!0}),Object.defineProperty(this,"defaultAccount",{get:function(){return l},set:function(e){return e&&(l=f.toChecksumAddress(d.inputAddressFormatter(e))),e},enumerable:!0}),Object.defineProperty(this,"defaultBlock",{get:function(){return p},set:function(e){return p=e,e},enumerable:!0}),this.methods={},this.events={},this._address=null,this._jsonInterface=[],this.options.address=r,this.options.jsonInterface=t};y.setProvider=function(e,t){u.packageInit(this,[e]),this._ethAccounts=t},y.prototype._getCallback=function(e){if(e&&e[e.length-1]&&"function"==typeof e[e.length-1])return e.pop()},y.prototype._checkListener=function(e,t){if(t===e)throw h.ContractReservedEventError(e)},y.prototype._getOrSetDefaultOptions=function(e){var t=s({},e),r=t.gasPrice?String(t.gasPrice):null,n=t.from?f.toChecksumAddress(d.inputAddressFormatter(t.from)):null;return t.data=t.data||this.options.data,t.from=n||this.options.from,t.gasPrice=r||this.options.gasPrice,t.gas=t.gas||t.gasLimit||this.options.gas,delete t.gasLimit,t},y.prototype._encodeEventABI=function(e,t){var r=(t=t||{}).filter||{},n={};if(["fromBlock","toBlock"].filter((function(e){return void 0!==t[e]})).forEach((function(e){n[e]=d.inputBlockNumberFormatter(t[e])})),Array.isArray(t.topics))n.topics=t.topics;else{if(n.topics=[],e&&!e.anonymous&&"ALLEVENTS"!==e.name&&n.topics.push(e.signature),"ALLEVENTS"!==e.name){var i=e.inputs.filter((function(e){return!0===e.indexed})).map((function(e){var t=r[e.name];return t?Array.isArray(t)?t.map((function(t){return b.encodeParameter(e.type,t)})):b.encodeParameter(e.type,t):null}));n.topics=n.topics.concat(i)}n.topics.length||delete n.topics}return this.options.address&&(n.address=this.options.address.toLowerCase()),n},y.prototype._decodeEventABI=function(e){var t=this;e.data=e.data||"",e.topics=e.topics||[];var r=d.outputLogFormatter(e);if("ALLEVENTS"===t.name&&(t=t.jsonInterface.find((function(t){return t.signature===e.topics[0]}))||{anonymous:!0}),t.inputs=t.inputs||[],!t.anonymous){var n=0;t.inputs.forEach((function(e){return e.indexed?n++:null})),n>0&&e.topics.length!==n+1&&(t={anonymous:!0,inputs:[]})}var i=t.anonymous?e.topics:e.topics.slice(1);return r.returnValues=b.decodeLog(t.inputs,e.data,i),delete r.returnValues.__length__,r.event=t.name,r.signature=t.anonymous||!e.topics[0]?null:e.topics[0],r.raw={data:r.data,topics:r.topics},delete r.data,delete r.topics,r},y.prototype._encodeMethodABI=function(){var e=this._method.signature,t=this.arguments||[],r=!1,n=this._parent.options.jsonInterface.filter((function(t){return"constructor"===e&&t.type===e||(t.signature===e||t.signature===e.replace("0x","")||t.name===e)&&"function"===t.type})).map((function(e){var n=Array.isArray(e.inputs)?e.inputs.length:0;if(n!==t.length)throw new Error("The number of arguments is not matching the methods required number. You need to pass "+n+" arguments.");return"function"===e.type&&(r=e.signature),Array.isArray(e.inputs)?e.inputs:[]})).map((function(e){return b.encodeParameters(e,t).replace("0x","")}))[0]||"";if("constructor"===e){if(!this._deployData)throw new Error("The contract has no contract data option set. This is necessary to append the constructor parameters.");return this._deployData.startsWith("0x")||(this._deployData="0x"+this._deployData),this._deployData+n}var i=r?r+n:n;if(!i)throw new Error("Couldn't find a matching contract method named \""+this._method.name+'".');return i},y.prototype._decodeMethodReturn=function(e,t){if(!t)return null;t=t.length>=2?t.slice(2):t;var r=b.decodeParameters(e,t);return 1===r.__length__?r[0]:(delete r.__length__,r)},y.prototype.deploy=function(e,t){if((e=e||{}).arguments=e.arguments||[],!(e=this._getOrSetDefaultOptions(e)).data){if("function"==typeof t)return t(h.ContractMissingDeployDataError());throw h.ContractMissingDeployDataError()}var r=this.options.jsonInterface.find((function(e){return"constructor"===e.type}))||{};return r.signature="constructor",this._createTxObject.apply({method:r,parent:this,deployData:e.data,_ethAccounts:this.constructor._ethAccounts},e.arguments)},y.prototype._generateEventOptions=function(){var e=Array.prototype.slice.call(arguments),t=this._getCallback(e),r="object"===(!!e[e.length-1]&&(0,o.default)(e[e.length-1]))?e.pop():{},n="string"==typeof e[0]?e[0]:"allevents",i="allevents"===n.toLowerCase()?{name:"ALLEVENTS",jsonInterface:this.options.jsonInterface}:this.options.jsonInterface.find((function(e){return"event"===e.type&&(e.name===n||e.signature==="0x"+n.replace("0x",""))}));if(!i)throw h.ContractEventDoesNotExistError(n);if(!f.isAddress(this.options.address))throw h.ContractNoAddressDefinedError();return{params:this._encodeEventABI(i,r),event:i,callback:t}},y.prototype.clone=function(){return new this.constructor(this.options.jsonInterface,this.options.address,this.options)},y.prototype.once=function(e,t,r){var n=Array.prototype.slice.call(arguments);if(!(r=this._getCallback(n)))throw h.ContractOnceRequiresCallbackError();t&&delete t.fromBlock,this._on(e,t,(function(e,t,n){n.unsubscribe(),"function"==typeof r&&r(e,t,n)}))},y.prototype._on=function(){var e=this._generateEventOptions.apply(this,arguments);e.params&&e.params.toBlock&&(delete e.params.toBlock,console.warn("Invalid option: toBlock. Use getPastEvents for specific range.")),this._checkListener("newListener",e.event.name),this._checkListener("removeListener",e.event.name);var t=new l({subscription:{params:1,inputFormatter:[d.inputLogFormatter],outputFormatter:this._decodeEventABI.bind(e.event),subscriptionHandler:function(e){e.removed?this.emit("changed",e):this.emit("data",e),"function"==typeof this.callback&&this.callback(null,e,this)}},type:"eth",requestManager:this._requestManager});return t.subscribe("logs",e.params,e.callback||function(){}),t},y.prototype.getPastEvents=function(){var e=this._generateEventOptions.apply(this,arguments),t=new c({name:"getPastLogs",call:"eth_getLogs",params:1,inputFormatter:[d.inputLogFormatter],outputFormatter:this._decodeEventABI.bind(e.event)});t.setRequestManager(this._requestManager);var r=t.buildCall();return t=null,r(e.params,e.callback)},y.prototype._createTxObject=function(){var e=Array.prototype.slice.call(arguments),t={};if("function"===this.method.type&&(t.call=this.parent._executeMethod.bind(t,"call"),t.call.request=this.parent._executeMethod.bind(t,"call",!0)),t.send=this.parent._executeMethod.bind(t,"send"),t.send.request=this.parent._executeMethod.bind(t,"send",!0),t.encodeABI=this.parent._encodeMethodABI.bind(t),t.estimateGas=this.parent._executeMethod.bind(t,"estimate"),t.createAccessList=this.parent._executeMethod.bind(t,"createAccessList"),e&&this.method.inputs&&e.length!==this.method.inputs.length){if(this.nextMethod)return this.nextMethod.apply(null,e);throw h.InvalidNumberOfParams(e.length,this.method.inputs.length,this.method.name)}return t.arguments=e||[],t._method=this.method,t._parent=this.parent,t._ethAccounts=this.parent.constructor._ethAccounts||this._ethAccounts,this.deployData&&(t._deployData=this.deployData),t},y.prototype._processExecuteArguments=function(e,t){var r={};if(r.type=e.shift(),r.callback=this._parent._getCallback(e),"call"!==r.type||!0===e[e.length-1]||"string"!=typeof e[e.length-1]&&!isFinite(e[e.length-1])||(r.defaultBlock=e.pop()),r.options="object"===(!!e[e.length-1]&&(0,o.default)(e[e.length-1]))?e.pop():{},r.generateRequest=!0===e[e.length-1]&&e.pop(),r.options=this._parent._getOrSetDefaultOptions(r.options),r.options.data=this.encodeABI(),!this._deployData&&!f.isAddress(this._parent.options.address))throw h.ContractNoAddressDefinedError();return this._deployData||(r.options.to=this._parent.options.address),r.options.data?r:f._fireError(new Error("Couldn't find a matching contract method, or the number of parameters is wrong."),t.eventEmitter,t.reject,r.callback)},y.prototype._executeMethod=function(){var e=this,t=this._parent._processExecuteArguments.call(this,Array.prototype.slice.call(arguments),r),r=p("send"!==t.type),n=e.constructor._ethAccounts||e._ethAccounts;if(t.generateRequest){var i={params:[d.inputCallFormatter.call(this._parent,t.options)],callback:t.callback};return"call"===t.type?(i.params.push(d.inputDefaultBlockNumberFormatter.call(this._parent,t.defaultBlock)),i.method="eth_call",i.format=this._parent._decodeMethodReturn.bind(null,this._method.outputs)):i.method="eth_sendTransaction",i}switch(t.type){case"createAccessList":return f.isAddress(t.options.from)?new c({name:"createAccessList",call:"eth_createAccessList",params:2,inputFormatter:[d.inputTransactionFormatter,d.inputDefaultBlockNumberFormatter],requestManager:e._parent._requestManager,accounts:n,defaultAccount:e._parent.defaultAccount,defaultBlock:e._parent.defaultBlock}).createFunction()(t.options,t.callback):f._fireError(h.ContractNoFromAddressDefinedError(),r.eventEmitter,r.reject,t.callback);case"estimate":return new c({name:"estimateGas",call:"eth_estimateGas",params:1,inputFormatter:[d.inputCallFormatter],outputFormatter:f.hexToNumber,requestManager:e._parent._requestManager,accounts:n,defaultAccount:e._parent.defaultAccount,defaultBlock:e._parent.defaultBlock}).createFunction()(t.options,t.callback);case"call":var o=new c({name:"call",call:"eth_call",params:2,inputFormatter:[d.inputCallFormatter,d.inputDefaultBlockNumberFormatter],outputFormatter:function(t){return e._parent._decodeMethodReturn(e._method.outputs,t)},requestManager:e._parent._requestManager,accounts:n,defaultAccount:e._parent.defaultAccount,defaultBlock:e._parent.defaultBlock,handleRevert:e._parent.handleRevert,abiCoder:b}).createFunction();return o(t.options,t.defaultBlock,t.callback);case"send":if(!f.isAddress(t.options.from))return f._fireError(h.ContractNoFromAddressDefinedError(),r.eventEmitter,r.reject,t.callback);if("boolean"==typeof this._method.payable&&!this._method.payable&&t.options.value&&t.options.value>0)return f._fireError(new Error("Can not send value to non-payable contract method or constructor"),r.eventEmitter,r.reject,t.callback);var a={receiptFormatter:function(t){if(Array.isArray(t.logs)){var r=t.logs.map((function(t){return e._parent._decodeEventABI.call({name:"ALLEVENTS",jsonInterface:e._parent.options.jsonInterface},t)}));t.events={};var n=0;r.forEach((function(e){e.event?t.events[e.event]?Array.isArray(t.events[e.event])?t.events[e.event].push(e):t.events[e.event]=[t.events[e.event],e]:t.events[e.event]=e:(t.events[n]=e,n++)})),delete t.logs}return t},contractDeployFormatter:function(t){var r=e._parent.clone();return r.options.address=t.contractAddress,r}};return new c({name:"sendTransaction",call:"eth_sendTransaction",params:1,inputFormatter:[d.inputTransactionFormatter],requestManager:e._parent._requestManager,accounts:e.constructor._ethAccounts||e._ethAccounts,defaultAccount:e._parent.defaultAccount,defaultBlock:e._parent.defaultBlock,transactionBlockTimeout:e._parent.transactionBlockTimeout,transactionConfirmationBlocks:e._parent.transactionConfirmationBlocks,transactionPollingTimeout:e._parent.transactionPollingTimeout,transactionPollingInterval:e._parent.transactionPollingInterval,defaultCommon:e._parent.defaultCommon,defaultChain:e._parent.defaultChain,defaultHardfork:e._parent.defaultHardfork,handleRevert:e._parent.handleRevert,extraFormatters:a,abiCoder:b}).createFunction()(t.options,t.callback);default:throw new Error('Method "'+t.type+'" not implemented.')}},e.exports=y},function(e,t,r){"use strict";var n=r(0)(r(2)),i=r(1).Buffer,o=r(17),a=r(179).AbiCoder,s=r(179).ParamType,u=new a((function(e,t){return!e.match(/^u?int/)||Array.isArray(t)||t&&"object"===(0,n.default)(t)&&"BN"===t.constructor.name?t:t.toString()}));function c(){}var f=function(){};f.prototype.encodeFunctionSignature=function(e){return("function"==typeof e||"object"===(0,n.default)(e)&&e)&&(e=o._jsonInterfaceMethodToString(e)),o.sha3(e).slice(0,10)},f.prototype.encodeEventSignature=function(e){return("function"==typeof e||"object"===(0,n.default)(e)&&e)&&(e=o._jsonInterfaceMethodToString(e)),o.sha3(e)},f.prototype.encodeParameter=function(e,t){return this.encodeParameters([e],[t])},f.prototype.encodeParameters=function(e,t){var r=this;return e=r.mapTypes(e),t=t.map((function(t,i){var o=e[i];return"object"===(0,n.default)(o)&&o.type&&(o=o.type),t=r.formatParam(o,t),"string"==typeof o&&o.includes("tuple")&&function e(t,n){if("array"===t.name){if(!t.type.match(/\[(\d+)\]/))return n.map((function(r){return e(u._getCoder(s.from(t.type.replace("[]",""))),r)}));var i=parseInt(t.type.match(/\[(\d+)\]/)[1]);if(n.length!==i)throw new Error("Array length does not matches with the given input");return n.map((function(r){return e(u._getCoder(s.from(t.type.replace(/\[\d+\]/,""))),r)}))}t.coders.forEach((function(t,i){"tuple"===t.name?e(t,n[i]):n[i]=r.formatParam(t.name,n[i])}))}(u._getCoder(s.from(o)),t),t})),u.encode(e,t)},f.prototype.mapTypes=function(e){var t=this,r=[];return e.forEach((function(e){if("object"===(0,n.default)(e)&&"function"===e.type&&(e=Object.assign({},e,{type:"bytes24"})),t.isSimplifiedStructFormat(e)){var i=Object.keys(e)[0];r.push(Object.assign(t.mapStructNameAndType(i),{components:t.mapStructToCoderFormat(e[i])}))}else r.push(e)})),r},f.prototype.isSimplifiedStructFormat=function(e){return"object"===(0,n.default)(e)&&void 0===e.components&&void 0===e.name},f.prototype.mapStructNameAndType=function(e){var t="tuple";return e.indexOf("[]")>-1&&(t="tuple[]",e=e.slice(0,-2)),{type:t,name:e}},f.prototype.mapStructToCoderFormat=function(e){var t=this,r=[];return Object.keys(e).forEach((function(i){"object"!==(0,n.default)(e[i])?r.push({name:i,type:e[i]}):r.push(Object.assign(t.mapStructNameAndType(i),{components:t.mapStructToCoderFormat(e[i])}))})),r},f.prototype.formatParam=function(e,t){var r=this,n=new RegExp(/^bytes([0-9]*)$/),a=new RegExp(/^bytes([0-9]*)\[\]$/),s=new RegExp(/^(u?int)([0-9]*)$/),u=new RegExp(/^(u?int)([0-9]*)\[\]$/);if(o.isBN(t)||o.isBigNumber(t))return t.toString(10);if(e.match(a)||e.match(u))return t.map((function(t){return r.formatParam(e.replace("[]",""),t)}));var c=e.match(s);if(c){var f=parseInt(c[2]||"256");f/8<t.length&&(t=o.leftPad(t,f))}if(c=e.match(n)){i.isBuffer(t)&&(t=o.toHex(t));var l=parseInt(c[1]);if(l){var d=2*l;"0x"===t.substring(0,2)&&(d+=2),t.length<d&&(t=o.rightPad(t,2*l))}t.length%2==1&&(t="0x0"+t.substring(2))}return t},f.prototype.encodeFunctionCall=function(e,t){return this.encodeFunctionSignature(e)+this.encodeParameters(e.inputs,t).replace("0x","")},f.prototype.decodeParameter=function(e,t){return this.decodeParameters([e],t)[0]},f.prototype.decodeParameters=function(e,t){return this.decodeParametersWith(e,t,!1)},f.prototype.decodeParametersWith=function(e,t,r){if(e.length>0&&(!t||"0x"===t||"0X"===t))throw new Error("Returned values aren't valid, did it run Out of Gas? You might also see this error if you are not using the correct ABI for the contract you are retrieving data from, requesting data from a block number that does not exist, or querying a node which is not fully synced.");var i=u.decode(this.mapTypes(e),"0x"+t.replace(/0x/i,""),r),o=new c;return o.__length__=0,e.forEach((function(e,t){var r=i[o.__length__],a="object"===(0,n.default)(e)&&e.type&&"string"===e.type;r="0x"!==r||a||"string"==typeof e&&"string"===e?r:null,o[t]=r,("function"==typeof e||e&&"object"===(0,n.default)(e))&&e.name&&(o[e.name]=r),o.__length__++})),o},f.prototype.decodeLog=function(e,t,r){var n=this;r=Array.isArray(r)?r:[r],t=t||"";var i=[],o=[],a=0;e.forEach((function(e,t){e.indexed?(o[t]=["bool","int","uint","address","fixed","ufixed"].find((function(t){return-1!==e.type.indexOf(t)}))?n.decodeParameter(e.type,r[a]):r[a],a++):i[t]=e}));var s=t,u=s?this.decodeParametersWith(i,s,!0):[],f=new c;return f.__length__=0,e.forEach((function(e,t){f[t]="string"===e.type?"":null,void 0!==u[t]&&(f[t]=u[t]),void 0!==o[t]&&(f[t]=o[t]),e.name&&(f[e.name]=f[t]),f.__length__++})),f};var l=new f;e.exports=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AbiCoder",{enumerable:!0,get:function(){return i.AbiCoder}}),Object.defineProperty(t,"ConstructorFragment",{enumerable:!0,get:function(){return n.ConstructorFragment}}),Object.defineProperty(t,"ErrorFragment",{enumerable:!0,get:function(){return n.ErrorFragment}}),Object.defineProperty(t,"EventFragment",{enumerable:!0,get:function(){return n.EventFragment}}),Object.defineProperty(t,"FormatTypes",{enumerable:!0,get:function(){return n.FormatTypes}}),Object.defineProperty(t,"Fragment",{enumerable:!0,get:function(){return n.Fragment}}),Object.defineProperty(t,"FunctionFragment",{enumerable:!0,get:function(){return n.FunctionFragment}}),Object.defineProperty(t,"Indexed",{enumerable:!0,get:function(){return o.Indexed}}),Object.defineProperty(t,"Interface",{enumerable:!0,get:function(){return o.Interface}}),Object.defineProperty(t,"LogDescription",{enumerable:!0,get:function(){return o.LogDescription}}),Object.defineProperty(t,"ParamType",{enumerable:!0,get:function(){return n.ParamType}}),Object.defineProperty(t,"TransactionDescription",{enumerable:!0,get:function(){return o.TransactionDescription}}),Object.defineProperty(t,"checkResultErrors",{enumerable:!0,get:function(){return o.checkResultErrors}}),Object.defineProperty(t,"defaultAbiCoder",{enumerable:!0,get:function(){return i.defaultAbiCoder}});var n=r(107),i=r(180),o=r(391)},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.defaultAbiCoder=t.AbiCoder=void 0;var i=n(r(8)),o=n(r(9)),a=r(11),s=r(40),u=r(16),c=r(64),f=r(23),l=r(379),d=r(181),h=r(381),p=r(182),b=r(383),y=r(384),g=r(385),m=r(386),v=r(390),w=r(107),_=new u.Logger(c.version),x=new RegExp(/^bytes([0-9]*)$/),O=new RegExp(/^(u?int)([0-9]*)$/),k=function(){function e(t){(0,i.default)(this,e),(0,s.defineReadOnly)(this,"coerceFunc",t||null)}return(0,o.default)(e,[{key:"_getCoder",value:function(e){var t=this;switch(e.baseType){case"address":return new l.AddressCoder(e.name);case"bool":return new h.BooleanCoder(e.name);case"string":return new m.StringCoder(e.name);case"bytes":return new p.BytesCoder(e.name);case"array":return new d.ArrayCoder(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new v.TupleCoder((e.components||[]).map((function(e){return t._getCoder(e)})),e.name);case"":return new y.NullCoder(e.name)}var r=e.type.match(O);if(r){var n=parseInt(r[2]||"256");return(0===n||n>256||n%8!=0)&&_.throwArgumentError("invalid "+r[1]+" bit length","param",e),new g.NumberCoder(n/8,"int"===r[1],e.name)}if(r=e.type.match(x)){var i=parseInt(r[1]);return(0===i||i>32)&&_.throwArgumentError("invalid bytes length","param",e),new b.FixedBytesCoder(i,e.name)}return _.throwArgumentError("invalid type","type",e.type)}},{key:"_getWordSize",value:function(){return 32}},{key:"_getReader",value:function(e,t){return new f.Reader(e,this._getWordSize(),this.coerceFunc,t)}},{key:"_getWriter",value:function(){return new f.Writer(this._getWordSize())}},{key:"getDefaultValue",value:function(e){var t=this,r=e.map((function(e){return t._getCoder(w.ParamType.from(e))}));return new v.TupleCoder(r,"_").defaultValue()}},{key:"encode",value:function(e,t){var r=this;e.length!==t.length&&_.throwError("types/values length mismatch",u.Logger.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});var n=e.map((function(e){return r._getCoder(w.ParamType.from(e))})),i=new v.TupleCoder(n,"_"),o=this._getWriter();return i.encode(o,t),o.data}},{key:"decode",value:function(e,t,r){var n=this,i=e.map((function(e){return n._getCoder(w.ParamType.from(e))}));return new v.TupleCoder(i,"_").decode(this._getReader((0,a.arrayify)(t),r))}}]),e}();t.AbiCoder=k;var P=new k;t.defaultAbiCoder=P},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayCoder=void 0,t.pack=b,t.unpack=y;var i=n(r(8)),o=n(r(9)),a=n(r(14)),s=n(r(15)),u=n(r(13)),c=n(r(2)),f=r(16),l=r(64),d=r(23),h=r(380);var p=new f.Logger(l.version);function b(e,t,r){var n=null;if(Array.isArray(r))n=r;else if(r&&"object"===(0,c.default)(r)){var i={};n=t.map((function(e){var t=e.localName;return t||p.throwError("cannot encode object for signature with missing names",f.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:r}),i[t]&&p.throwError("cannot encode object for signature with duplicate names",f.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:r}),i[t]=!0,r[t]}))}else p.throwArgumentError("invalid tuple value","tuple",r);t.length!==n.length&&p.throwArgumentError("types/value length mismatch","tuple",r);var o=new d.Writer(e.wordSize),a=new d.Writer(e.wordSize),s=[];return t.forEach((function(e,t){var r=n[t];if(e.dynamic){var i=a.length;e.encode(a,r);var u=o.writeUpdatableValue();s.push((function(e){u(e+i)}))}else e.encode(o,r)})),s.forEach((function(e){e(o.length)})),e.appendWriter(o)+e.appendWriter(a)}function y(e,t){var r=[],n=e.subReader(0);t.forEach((function(t){var i=null;if(t.dynamic){var o=e.readValue(),a=n.subReader(o.toNumber());try{i=t.decode(a)}catch(e){if(e.code===f.Logger.errors.BUFFER_OVERRUN)throw e;(i=e).baseType=t.name,i.name=t.localName,i.type=t.type}}else try{i=t.decode(e)}catch(e){if(e.code===f.Logger.errors.BUFFER_OVERRUN)throw e;(i=e).baseType=t.name,i.name=t.localName,i.type=t.type}null!=i&&r.push(i)}));var i=t.reduce((function(e,t){var r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e}),{});t.forEach((function(e,t){var n=e.localName;if(n&&1===i[n]&&("length"===n&&(n="_length"),null==r[n])){var o=r[t];o instanceof Error?Object.defineProperty(r,n,{enumerable:!0,get:function(){throw o}}):r[n]=o}}));for(var o=function(e){var t=r[e];t instanceof Error&&Object.defineProperty(r,e,{enumerable:!0,get:function(){throw t}})},a=0;a<r.length;a++)o(a);return Object.freeze(r)}var g=function(e){(0,a.default)(r,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,u.default)(e);if(t){var i=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}(r);function r(e,n,o){var a;(0,i.default)(this,r);var s=e.type+"["+(n>=0?n:"")+"]",u=-1===n||e.dynamic;return(a=t.call(this,"array",s,o,u)).coder=e,a.length=n,a}return(0,o.default)(r,[{key:"defaultValue",value:function(){for(var e=this.coder.defaultValue(),t=[],r=0;r<this.length;r++)t.push(e);return t}},{key:"encode",value:function(e,t){Array.isArray(t)||this._throwError("expected array value",t);var r=this.length;-1===r&&(r=t.length,e.writeValue(t.length)),p.checkArgumentCount(t.length,r,"coder array"+(this.localName?" "+this.localName:""));for(var n=[],i=0;i<t.length;i++)n.push(this.coder);return b(e,n,t)}},{key:"decode",value:function(e){var t=this.length;-1===t&&32*(t=e.readValue().toNumber())>e._data.length&&p.throwError("insufficient data length",f.Logger.errors.BUFFER_OVERRUN,{length:e._data.length,count:t});for(var r=[],n=0;n<t;n++)r.push(new h.AnonymousCoder(this.coder));return e.coerce(this.name,y(e,r))}}]),r}(d.Coder);t.ArrayCoder=g},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.DynamicBytesCoder=t.BytesCoder=void 0;var i=n(r(183)),o=n(r(8)),a=n(r(9)),s=n(r(14)),u=n(r(15)),c=n(r(13)),f=r(11);function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,c.default)(e);if(t){var i=(0,c.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,u.default)(this,r)}}var d=function(e){(0,s.default)(r,e);var t=l(r);function r(e,n){return(0,o.default)(this,r),t.call(this,e,e,n,!0)}return(0,a.default)(r,[{key:"defaultValue",value:function(){return"0x"}},{key:"encode",value:function(e,t){return t=(0,f.arrayify)(t),e.writeValue(t.length)+e.writeBytes(t)}},{key:"decode",value:function(e){return e.readBytes(e.readValue().toNumber(),!0)}}]),r}(r(23).Coder);t.DynamicBytesCoder=d;var h=function(e){(0,s.default)(r,e);var t=l(r);function r(e){return(0,o.default)(this,r),t.call(this,"bytes",e)}return(0,a.default)(r,[{key:"decode",value:function(e){return e.coerce(this.name,(0,f.hexlify)((0,i.default)((0,c.default)(r.prototype),"decode",this).call(this,e)))}}]),r}(d);t.BytesCoder=h},function(e,t,r){"use strict";var n=r(382);function i(){return"undefined"!=typeof Reflect&&Reflect.get?(e.exports=i=Reflect.get.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=i=function(e,t,r){var i=n(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},e.exports.__esModule=!0,e.exports.default=e.exports),i.apply(this,arguments)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.id=function(e){return(0,n.keccak256)((0,i.toUtf8Bytes)(e))};var n=r(39),i=r(65)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="hash/5.7.0"},function(e,t,r){"use strict";var n=r(395),i=r(396),o=r(131),a=r(397);e.exports=function(e){return n(e)||i(e)||o(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";function n(e,t){null==t&&(t=1);var r=[],n=r.forEach;return function e(t,i){n.call(t,(function(t){i>0&&Array.isArray(t)?e(t,i-1):r.push(t)}))}(e,t),r}function i(e){var t=0;function r(){return e[t++]<<8|e[t++]}for(var n=r(),i=1,o=[0,1],a=1;a<n;a++)o.push(i+=r());var s=r(),u=t;t+=s;var c=0,f=0;function l(){return 0==c&&(f=f<<8|e[t++],c=8),f>>--c&1}for(var d=Math.pow(2,31),h=d>>>1,p=h>>1,b=d-1,y=0,g=0;g<31;g++)y=y<<1|l();for(var m=[],v=0,w=d;;){for(var _=Math.floor(((y-v+1)*i-1)/w),x=0,O=n;O-x>1;){var k=x+O>>>1;_<o[k]?O=k:x=k}if(0==x)break;m.push(x);for(var P=v+Math.floor(w*o[x]/i),S=v+Math.floor(w*o[x+1]/i)-1;0==((P^S)&h);)y=y<<1&b|l(),P=P<<1&b,S=S<<1&b|1;for(;P&~S&p;)y=y&h|y<<1&b>>>1|l(),P=P<<1^h,S=(S^h)<<1|h|1;v=P,w=1+S-P}var A=n-4;return m.map((function(t){switch(t-A){case 3:return A+65792+(e[u++]<<16|e[u++]<<8|e[u++]);case 2:return A+256+(e[u++]<<8|e[u++]);case 1:return A+e[u++];default:return t-1}}))}function o(e){var t=0;return function(){return e[t++]}}function a(e){return 1&e?~e>>1:e>>1}function s(e,t){for(var r=Array(e),n=0,i=-1;n<e;n++)r[n]=i+=1+t();return r}function u(e,t){for(var r=Array(e),n=0,i=0;n<e;n++)r[n]=i+=a(t());return r}function c(e,t){for(var r=s(e(),e),n=e(),i=s(n,e),o=function(e,t){for(var r=Array(e),n=0;n<e;n++)r[n]=1+t();return r}(n,e),a=0;a<n;a++)for(var u=0;u<o[a];u++)r.push(i[a]+u);return t?r.map((function(e){return t[e]})):r}function f(e){for(var t=[];;){var r=e();if(0==r)break;t.push(r)}return t}function l(e,t,r){for(var n=Array(e).fill(void 0).map((function(){return[]})),i=0;i<t;i++)u(e,r).forEach((function(e,t){return n[t].push(e)}));return n}function d(e,t){var r=1+t(),i=t(),o=f(t);return n(l(o.length,1+e,t).map((function(e,t){var n=e[0],a=e.slice(1);return Array(o[t]).fill(void 0).map((function(e,t){var o=t*i;return[n+t*r,a.map((function(e){return e+o}))]}))})))}function h(e,t){return l(1+t(),1+e,t).map((function(e){return[e[0],e.slice(1)]}))}Object.defineProperty(t,"__esModule",{value:!0}),t.decode_arithmetic=i,t.read_compressed_payload=function(e){return o(i(e))},t.read_emoji_trie=function(e){var t=c(e).sort((function(e,t){return e-t}));return function r(){for(var n=[];;){var i=c(e,t);if(0==i.length)break;n.push({set:new Set(i),node:r()})}n.sort((function(e,t){return t.set.size-e.set.size}));var o=e();return{branches:n,valid:o%3,fe0f:!!(1&(o=o/3|0)),save:1==(o>>=1),check:2==o}}()},t.read_mapped_map=function(e){for(var t=[];;){var r=e();if(0==r)break;t.push(d(r,e))}for(;;){var i=e()-1;if(i<0)break;t.push(h(i,e))}return function(e){for(var t={},r=0;r<e.length;r++){var n=e[r];t[n[0]]=n[1]}return t}(n(t))},t.read_member_array=c,t.read_payload=o,t.read_zero_terminated_array=f,t.signed=a},function(e,t,r){"use strict";(function(e){var n=r(403).keccak_256,i=r(404);function o(e){return e?i.toUnicode(e,{useStd3ASCII:!0,transitional:!1}):e}t.hash=function(t){for(var r="",i=0;i<32;i++)r+="00";if(name=o(t),name){var a=name.split(".");for(i=a.length-1;i>=0;i--){var s=n(a[i]);r=n(new e(r+s,"hex"))}}return"0x"+r},t.normalize=o}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(66);function i(e){return parseInt(e.toString("hex"),16)}function o(e){var r=e.toString(16);return r.length%2==1&&(r="0"+r),t.from(r,"hex")}e.exports={numberToBuffer:o,bufferToNumber:i,varintBufferEncode:function(e){return t.from(n.encode(i(e)))},varintBufferDecode:function(e){return o(n.decode(e))},varintEncode:function(e){return t.from(n.encode(e))}}}).call(this,r(1).Buffer)},function(e,t,r){"use strict";var n=r(0),i=n(r(8)),o=n(r(9)),a=r(1).Buffer,s=r(109),u=r(427),c=r(433),f=r(67),l=r(438),d=r(439)(function(e){function t(e,r,n,o){if((0,i.default)(this,t),d.isCID(e)){var f=e;return this.version=f.version,this.codec=f.codec,this.multihash=a.from(f.multihash),void(this.multibaseName=f.multibaseName||(0===f.version?"base58btc":"base32"))}if("string"==typeof e){var l=u.isEncoded(e);if(l){var h=u.decode(e);this.version=parseInt(h.slice(0,1).toString("hex"),16),this.codec=c.getCodec(h.slice(1)),this.multihash=c.rmPrefix(h.slice(1)),this.multibaseName=l}else this.version=0,this.codec="dag-pb",this.multihash=s.fromB58String(e),this.multibaseName="base58btc";return t.validateCID(this),void Object.defineProperty(this,"string",{value:e})}if(a.isBuffer(e)){var p=e.slice(0,1),b=parseInt(p.toString("hex"),16);if(1===b){var y=e;this.version=b,this.codec=c.getCodec(y.slice(1)),this.multihash=c.rmPrefix(y.slice(1)),this.multibaseName="base32"}else this.version=0,this.codec="dag-pb",this.multihash=e,this.multibaseName="base58btc";t.validateCID(this)}else this.version=e,this.codec=r,this.multihash=n,this.multibaseName=o||(0===e?"base58btc":"base32"),t.validateCID(this)}return(0,o.default)(t,[{key:"buffer",get:function(){var e=this._buffer;if(!e){if(0===this.version)e=this.multihash;else{if(1!==this.version)throw new Error("unsupported version");e=a.concat([a.from("01","hex"),c.getCodeVarint(this.codec),this.multihash])}Object.defineProperty(this,"_buffer",{value:e})}return e}},{key:"prefix",get:function(){return a.concat([a.from("0".concat(this.version),"hex"),c.getCodeVarint(this.codec),s.prefix(this.multihash)])}},{key:"toV0",value:function(){if("dag-pb"!==this.codec)throw new Error("Cannot convert a non dag-pb CID to CIDv0");var e=s.decode(this.multihash),t=e.name,r=e.length;if("sha2-256"!==t)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");if(32!==r)throw new Error("Cannot convert non 32 byte multihash CID to CIDv0");return new d(0,this.codec,this.multihash)}},{key:"toV1",value:function(){return new d(1,this.codec,this.multihash)}},{key:"toBaseEncodedString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.multibaseName;if(this.string&&e===this.multibaseName)return this.string;var t=null;if(0===this.version){if("base58btc"!==e)throw new Error("not supported with CIDv0, to support different bases, please migrate the instance do CIDv1, you can do that through cid.toV1()");t=s.toB58String(this.multihash)}else{if(1!==this.version)throw new Error("unsupported version");t=u.encode(e,this.buffer).toString()}return e===this.multibaseName&&Object.defineProperty(this,"string",{value:t}),t}},{key:e,value:function(){return"CID("+this.toString()+")"}},{key:"toString",value:function(e){return this.toBaseEncodedString(e)}},{key:"toJSON",value:function(){return{codec:this.codec,version:this.version,hash:this.multihash}}},{key:"equals",value:function(e){return this.codec===e.codec&&this.version===e.version&&this.multihash.equals(e.multihash)}}],[{key:"validateCID",value:function(e){var t=l.checkCIDComponents(e);if(t)throw new Error(t)}}]),t}(Symbol.for("nodejs.util.inspect.custom")),{className:"CID",symbolName:"@ipld/js-cid/CID"});d.codecs=f,e.exports=d},function(e,t,r){"use strict";var n=r(5).Buffer;e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),r=0;r<t.length;r++)t[r]=255;for(var i=0;i<e.length;i++){var o=e.charAt(i),a=o.charCodeAt(0);if(255!==t[a])throw new TypeError(o+" is ambiguous");t[a]=i}var s=e.length,u=e.charAt(0),c=Math.log(s)/Math.log(256),f=Math.log(256)/Math.log(s);function l(e){if("string"!=typeof e)throw new TypeError("Expected String");if(0===e.length)return n.alloc(0);for(var r=0,i=0,o=0;e[r]===u;)i++,r++;for(var a=(e.length-r)*c+1>>>0,f=new Uint8Array(a);e[r];){var l=t[e.charCodeAt(r)];if(255===l)return;for(var d=0,h=a-1;(0!==l||d<o)&&-1!==h;h--,d++)l+=s*f[h]>>>0,f[h]=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error("Non-zero carry");o=d,r++}for(var p=a-o;p!==a&&0===f[p];)p++;var b=n.allocUnsafe(i+(a-p));b.fill(0,0,i);for(var y=i;p!==a;)b[y++]=f[p++];return b}return{encode:function(t){if((Array.isArray(t)||t instanceof Uint8Array)&&(t=n.from(t)),!n.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var r=0,i=0,o=0,a=t.length;o!==a&&0===t[o];)o++,r++;for(var c=(a-o)*f+1>>>0,l=new Uint8Array(c);o!==a;){for(var d=t[o],h=0,p=c-1;(0!==d||h<i)&&-1!==p;p--,h++)d+=256*l[p]>>>0,l[p]=d%s>>>0,d=d/s>>>0;if(0!==d)throw new Error("Non-zero carry");i=h,o++}for(var b=c-i;b!==c&&0===l[b];)b++;for(var y=u.repeat(r);b<c;++b)y+=e.charAt(l[b]);return y},decodeUnsafe:l,decode:function(e){var t=l(e);if(t)return t;throw new Error("Non-base"+s+" character")}}}},function(e,t,r){"use strict";var n=r(66),i=r(1).Buffer;function o(e){return parseInt(e.toString("hex"),16)}function a(e){var t=e.toString(16);return t.length%2==1&&(t="0"+t),i.from(t,"hex")}e.exports={numberToBuffer:a,bufferToNumber:o,varintBufferEncode:function(e){return i.from(n.encode(o(e)))},varintBufferDecode:function(e){return a(n.decode(e))},varintEncode:function(e){return i.from(n.encode(e))}}},function(e,t,r){"use strict";var n=r(34),i=r(38),o=r(17),a=r(81),s=r(12).formatters,u=function(){var e=this;n.packageInit(this,arguments),this.net=new a(this);var t=null,r="latest";Object.defineProperty(this,"defaultAccount",{get:function(){return t},set:function(e){return e&&(t=o.toChecksumAddress(s.inputAddressFormatter(e))),u.forEach((function(e){e.defaultAccount=t})),e},enumerable:!0}),Object.defineProperty(this,"defaultBlock",{get:function(){return r},set:function(e){return r=e,u.forEach((function(e){e.defaultBlock=r})),e},enumerable:!0});var u=[new i({name:"getAccounts",call:"personal_listAccounts",params:0,outputFormatter:o.toChecksumAddress}),new i({name:"newAccount",call:"personal_newAccount",params:1,inputFormatter:[null],outputFormatter:o.toChecksumAddress}),new i({name:"unlockAccount",call:"personal_unlockAccount",params:3,inputFormatter:[s.inputAddressFormatter,null,null]}),new i({name:"lockAccount",call:"personal_lockAccount",params:1,inputFormatter:[s.inputAddressFormatter]}),new i({name:"importRawKey",call:"personal_importRawKey",params:2}),new i({name:"sendTransaction",call:"personal_sendTransaction",params:2,inputFormatter:[s.inputTransactionFormatter,null]}),new i({name:"signTransaction",call:"personal_signTransaction",params:2,inputFormatter:[s.inputTransactionFormatter,null]}),new i({name:"sign",call:"personal_sign",params:3,inputFormatter:[s.inputSignFormatter,s.inputAddressFormatter,null]}),new i({name:"ecRecover",call:"personal_ecRecover",params:2,inputFormatter:[s.inputSignFormatter,null]})];u.forEach((function(t){t.attachToObject(e),t.setRequestManager(e._requestManager),t.defaultBlock=e.defaultBlock,t.defaultAccount=e.defaultAccount}))};n.addProviders(u),e.exports=u},function(e,t,r){"use strict";r(445);var n=function(e,t){return parseInt(e.slice(2*t+2,2*t+4),16)},i=function(e){return(e.length-2)/2},o=function(e){for(var t=[],r=2,n=e.length;r<n;r+=2)t.push(parseInt(e.slice(r,r+2),16));return t},a=function(e){for(var t="0x",r=0,n=e.length;r<n;++r){var i=e[r];t+=(i<16?"0":"")+i.toString(16)}return t};e.exports={random:function(e){var t;t="undefined"!=typeof window&&window.crypto&&window.crypto.getRandomValues?window.crypto.getRandomValues(new Uint8Array(e)):r(83).randomBytes(e);for(var n="0x",i=0;i<e;++i)n+=("00"+t[i].toString(16)).slice(-2);return n},length:i,concat:function(e,t){return e.concat(t.slice(2))},flatten:function(e){return"0x"+e.reduce((function(e,t){return e+t.slice(2)}),"")},slice:function(e,t,r){return"0x"+r.slice(2*e+2,2*t+2)},reverse:function(e){for(var t="0x",r=0,n=i(e);r<n;++r)t+=e.slice(2*(n-r),2*(n-r+1));return t},pad:function e(t,r){return r.length===2*t+2?r:e(t,"0x0"+r.slice(2))},padRight:function e(t,r){return r.length===2*t+2?r:e(t,r+"0")},fromAscii:function(e){for(var t="0x",r=0;r<e.length;++r)t+=("00"+e.charCodeAt(r).toString(16)).slice(-2);return t},toAscii:function(e){for(var t="",r=2;r<e.length;r+=2)t+=String.fromCharCode(parseInt(e.slice(r,r+2),16));return t},fromString:function(e){for(var t=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},r="0x",n=0;n!=e.length;n++){var i=e.charCodeAt(n);if(i<128)r+=t(i);else{if(i<2048)r+=t(i>>6|192);else{if(i>55295&&i<56320){if(++n==e.length)return null;var o=e.charCodeAt(n);if(o<56320||o>57343)return null;r+=t((i=65536+((1023&i)<<10)+(1023&o))>>18|240),r+=t(i>>12&63|128)}else r+=t(i>>12|224);r+=t(i>>6&63|128)}r+=t(63&i|128)}}return r},toString:function(e){for(var t="",r=0,o=i(e);r<o;){var a=n(e,r++);if(a>127){if(a>191&&a<224){if(r>=o)return null;a=(31&a)<<6|63&n(e,r)}else if(a>223&&a<240){if(r+1>=o)return null;a=(15&a)<<12|(63&n(e,r))<<6|63&n(e,++r)}else{if(!(a>239&&a<248))return null;if(r+2>=o)return null;a=(7&a)<<18|(63&n(e,r))<<12|(63&n(e,++r))<<6|63&n(e,++r)}++r}if(a<=65535)t+=String.fromCharCode(a);else{if(!(a<=1114111))return null;a-=65536,t+=String.fromCharCode(a>>10|55296),t+=String.fromCharCode(1023&a|56320)}}return t},fromNumber:function(e){var t=e.toString(16);return t.length%2==0?"0x"+t:"0x0"+t},toNumber:function(e){return parseInt(e.slice(2),16)},fromNat:function(e){return"0x0"===e?"0x":e.length%2==0?e:"0x0"+e.slice(2)},toNat:function(e){return"0"===e[2]?"0x"+e.slice(3):e},fromArray:a,toArray:o,fromUint8Array:function(e){return a([].slice.call(e,0))},toUint8Array:function(e){return new Uint8Array(o(e))}}},function(e,t,r){"use strict";var n=r(3),i=r(446),o=r(32),a=r(5).Buffer,s=r(196),u=r(99),c=r(100),f=a.alloc(128);function l(e,t){o.call(this,"digest"),"string"==typeof t&&(t=a.from(t));var r="sha512"===e||"sha384"===e?128:64;this._alg=e,this._key=t,t.length>r?t=("rmd160"===e?new u:c(e)).update(t).digest():t.length<r&&(t=a.concat([t,f],r));for(var n=this._ipad=a.allocUnsafe(r),i=this._opad=a.allocUnsafe(r),s=0;s<r;s++)n[s]=54^t[s],i[s]=92^t[s];this._hash="rmd160"===e?new u:c(e),this._hash.update(n)}n(l,o),l.prototype._update=function(e){this._hash.update(e)},l.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new u:c(this._alg)).update(this._opad).update(e).digest()},e.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new l("rmd160",t):"md5"===e?new i(s,t):new l(e,t)}},function(e,t,r){"use strict";var n=r(97);e.exports=function(e){return(new n).update(e).digest()}},function(e){e.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},function(e,t,r){"use strict";t.pbkdf2=r(448),t.pbkdf2Sync=r(201)},function(e,t,r){"use strict";var n=Math.pow(2,30)-1;e.exports=function(e,t){if("number"!=typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!=typeof t)throw new TypeError("Key length not a number");if(t<0||t>n||t!=t)throw new TypeError("Bad key length")}},function(e,t,r){"use strict";(function(t,r){var n;n=t.process&&t.process.browser?"utf-8":t.process&&t.process.version?parseInt(r.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",e.exports=n}).call(this,r(7),r(6))},function(e,t,r){"use strict";var n=r(196),i=r(99),o=r(100),a=r(5).Buffer,s=r(199),u=r(200),c=r(202),f=a.alloc(128),l={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function d(e,t,r){var s=function(e){return"rmd160"===e||"ripemd160"===e?function(e){return(new i).update(e).digest()}:"md5"===e?n:function(t){return o(e).update(t).digest()}}(e),u="sha512"===e||"sha384"===e?128:64;t.length>u?t=s(t):t.length<u&&(t=a.concat([t,f],u));for(var c=a.allocUnsafe(u+l[e]),d=a.allocUnsafe(u+l[e]),h=0;h<u;h++)c[h]=54^t[h],d[h]=92^t[h];var p=a.allocUnsafe(u+r+4);c.copy(p,0,0,u),this.ipad1=p,this.ipad2=c,this.opad=d,this.alg=e,this.blocksize=u,this.hash=s,this.size=l[e]}d.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)},e.exports=function(e,t,r,n,i){s(r,n);var o=new d(i=i||"sha1",e=c(e,u,"Password"),(t=c(t,u,"Salt")).length),f=a.allocUnsafe(n),h=a.allocUnsafe(t.length+4);t.copy(h,0,0,t.length);for(var p=0,b=l[i],y=Math.ceil(n/b),g=1;g<=y;g++){h.writeUInt32BE(g,t.length);for(var m=o.run(h,o.ipad1),v=m,w=1;w<r;w++){v=o.run(v,o.ipad2);for(var _=0;_<b;_++)m[_]^=v[_]}m.copy(f,p),p+=b}return f}},function(e,t,r){"use strict";var n=r(5).Buffer;e.exports=function(e,t,r){if(n.isBuffer(e))return e;if("string"==typeof e)return n.from(e,t);if(ArrayBuffer.isView(e))return n.from(e.buffer);throw new TypeError(r+" must be a string, a Buffer, a typed array or a DataView")}},function(e,t,r){"use strict";t.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},t.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},t.ip=function(e,t,r,n){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1}r[n+0]=i>>>0,r[n+1]=o>>>0},t.rip=function(e,t,r,n){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+a&1,i<<=1,i|=e>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.pc1=function(e,t,r,n){for(var i=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1}for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var n=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,r,i){for(var o=0,a=0,s=n.length>>>1,u=0;u<s;u++)o<<=1,o|=e>>>n[u]&1;for(u=s;u<n.length;u++)a<<=1,a|=t>>>n[u]&1;r[i+0]=o>>>0,r[i+1]=a>>>0},t.expand=function(e,t,r){var n=0,i=0;n=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)n<<=6,n|=e>>>o&63;for(o=11;o>=3;o-=4)i|=e>>>o&63,i<<=6;i|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=i>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var r=0,n=0;n<4;n++)r<<=4,r|=i[64*n+(e>>>18-6*n&63)];for(n=0;n<4;n++)r<<=4,r|=i[256+64*n+(t>>>18-6*n&63)];return r>>>0};var o=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,r=0;r<o.length;r++)t<<=1,t|=e>>>o[r]&1;return t>>>0},t.padSplit=function(e,t,r){for(var n=e.toString(2);n.length<t;)n="0"+n;for(var i=[],o=0;o<t;o+=r)i.push(n.slice(o,o+r));return i.join(" ")}},function(e,t,r){"use strict";var n=r(19),i=r(3),o=r(203),a=r(110);function s(){this.tmp=new Array(2),this.keys=null}function u(e){a.call(this,e);var t=new s;this._desState=t,this.deriveKeys(t,e.key)}i(u,a),e.exports=u,u.create=function(e){return new u(e)};var c=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];u.prototype.deriveKeys=function(e,t){e.keys=new Array(32),n.equal(t.length,this.blockSize,"Invalid key length");var r=o.readUInt32BE(t,0),i=o.readUInt32BE(t,4);o.pc1(r,i,e.tmp,0),r=e.tmp[0],i=e.tmp[1];for(var a=0;a<e.keys.length;a+=2){var s=c[a>>>1];r=o.r28shl(r,s),i=o.r28shl(i,s),o.pc2(r,i,e.keys,a)}},u.prototype._update=function(e,t,r,n){var i=this._desState,a=o.readUInt32BE(e,t),s=o.readUInt32BE(e,t+4);o.ip(a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,a,s,i.tmp,0):this._decrypt(i,a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],o.writeUInt32BE(r,a,n),o.writeUInt32BE(r,s,n+4)},u.prototype._pad=function(e,t){for(var r=e.length-t,n=t;n<e.length;n++)e[n]=r;return!0},u.prototype._unpad=function(e){for(var t=e[e.length-1],r=e.length-t;r<e.length;r++)n.equal(e[r],t);return e.slice(0,e.length-t)},u.prototype._encrypt=function(e,t,r,n,i){for(var a=t,s=r,u=0;u<e.keys.length;u+=2){var c=e.keys[u],f=e.keys[u+1];o.expand(s,e.tmp,0),c^=e.tmp[0],f^=e.tmp[1];var l=o.substitute(c,f),d=s;s=(a^o.permute(l))>>>0,a=d}o.rip(s,a,n,i)},u.prototype._decrypt=function(e,t,r,n,i){for(var a=r,s=t,u=e.keys.length-2;u>=0;u-=2){var c=e.keys[u],f=e.keys[u+1];o.expand(a,e.tmp,0),c^=e.tmp[0],f^=e.tmp[1];var l=o.substitute(c,f),d=a;a=(s^o.permute(l))>>>0,s=d}o.rip(a,s,n,i)}},function(e,t,r){"use strict";var n=r(68),i=r(5).Buffer,o=r(206);function a(e){var t=e._cipher.encryptBlockRaw(e._prev);return o(e._prev),t}t.encrypt=function(e,t){var r=Math.ceil(t.length/16),o=e._cache.length;e._cache=i.concat([e._cache,i.allocUnsafe(16*r)]);for(var s=0;s<r;s++){var u=a(e),c=o+16*s;e._cache.writeUInt32BE(u[0],c+0),e._cache.writeUInt32BE(u[1],c+4),e._cache.writeUInt32BE(u[2],c+8),e._cache.writeUInt32BE(u[3],c+12)}var f=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),n(t,f)}},function(e,t,r){"use strict";e.exports=function(e){for(var t,r=e.length;r--;){if(255!==(t=e.readUInt8(r))){t++,e.writeUInt8(t,r);break}e.writeUInt8(0,r)}}},function(e){e.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},function(e,t,r){"use strict";var n=r(84),i=r(5).Buffer,o=r(32),a=r(3),s=r(461),u=r(68),c=r(206);function f(e,t,r,a){o.call(this);var u=i.alloc(4,0);this._cipher=new n.AES(t);var f=this._cipher.encryptBlock(u);this._ghash=new s(f),r=function(e,t,r){if(12===t.length)return e._finID=i.concat([t,i.from([0,0,0,1])]),i.concat([t,i.from([0,0,0,2])]);var n=new s(r),o=t.length,a=o%16;n.update(t),a&&(a=16-a,n.update(i.alloc(a,0))),n.update(i.alloc(8,0));var u=8*o,f=i.alloc(8);f.writeUIntBE(u,0,8),n.update(f),e._finID=n.state;var l=i.from(e._finID);return c(l),l}(this,r,f),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}a(f,o),f.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=i.alloc(t,0),this._ghash.update(t))}this._called=!0;var r=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(r),this._len+=e.length,r},f.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=u(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var r=0;e.length!==t.length&&r++;for(var n=Math.min(e.length,t.length),i=0;i<n;++i)r+=e[i]^t[i];return r}(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},f.prototype.getAuthTag=function(){if(this._decrypt||!i.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},f.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},f.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},e.exports=f},function(e,t,r){"use strict";var n=r(84),i=r(5).Buffer,o=r(32);function a(e,t,r,a){o.call(this),this._cipher=new n.AES(t),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._mode=e}r(3)(a,o),a.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},a.prototype._final=function(){this._cipher.scrub()},e.exports=a},function(e,t,r){"use strict";var n=r(31);e.exports=g,g.simpleSieve=b,g.fermatTest=y;var i=r(4),o=new i(24),a=new(r(211)),s=new i(1),u=new i(2),c=new i(5),f=(new i(16),new i(8),new i(10)),l=new i(3),d=(new i(7),new i(11)),h=new i(4),p=(new i(12),null);function b(e){for(var t=function(){if(null!==p)return p;var e=[];e[0]=2;for(var t=1,r=3;r<1048576;r+=2){for(var n=Math.ceil(Math.sqrt(r)),i=0;i<t&&e[i]<=n&&r%e[i]!=0;i++);t!==i&&e[i]<=n||(e[t++]=r)}return p=e,e}(),r=0;r<t.length;r++)if(0===e.modn(t[r]))return 0===e.cmpn(t[r]);return!0}function y(e){var t=i.mont(e);return 0===u.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function g(e,t){if(e<16)return new i(2===t||5===t?[140,123]:[140,39]);var r,p;for(t=new i(t);;){for(r=new i(n(Math.ceil(e/8)));r.bitLength()>e;)r.ishrn(1);if(r.isEven()&&r.iadd(s),r.testn(1)||r.iadd(u),t.cmp(u)){if(!t.cmp(c))for(;r.mod(f).cmp(l);)r.iadd(h)}else for(;r.mod(o).cmp(d);)r.iadd(h);if(b(p=r.shrn(1))&&b(r)&&y(p)&&y(r)&&a.test(p)&&a.test(r))return r}}},function(e,t,r){"use strict";var n=r(4),i=r(93);function o(e){this.rand=e||new i.Rand}e.exports=o,o.create=function(e){return new o(e)},o.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do{var i=new n(this.rand.generate(r))}while(i.cmp(e)>=0);return i},o.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},o.prototype.test=function(e,t,r){var i=e.bitLength(),o=n.mont(e),a=new n(1).toRed(o);t||(t=Math.max(1,i/48|0));for(var s=e.subn(1),u=0;!s.testn(u);u++);for(var c=e.shrn(u),f=s.toRed(o);t>0;t--){var l=this._randrange(new n(2),s);r&&r(l);var d=l.toRed(o).redPow(c);if(0!==d.cmp(a)&&0!==d.cmp(f)){for(var h=1;h<u;h++){if(0===(d=d.redSqr()).cmp(a))return!1;if(0===d.cmp(f))break}if(h===u)return!1}}return!0},o.prototype.getDivisor=function(e,t){var r=e.bitLength(),i=n.mont(e),o=new n(1).toRed(i);t||(t=Math.max(1,r/48|0));for(var a=e.subn(1),s=0;!a.testn(s);s++);for(var u=e.shrn(s),c=a.toRed(i);t>0;t--){var f=this._randrange(new n(2),a),l=e.gcd(f);if(0!==l.cmpn(1))return l;var d=f.toRed(i).redPow(u);if(0!==d.cmp(o)&&0!==d.cmp(c)){for(var h=1;h<s;h++){if(0===(d=d.redSqr()).cmp(o))return d.fromRed().subn(1).gcd(e);if(0===d.cmp(c))break}if(h===s)return(d=d.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},function(e,t,r){"use strict";(function(t,n){var i;e.exports=P,P.ReadableState=k,r(20).EventEmitter;var o,a=function(e,t){return e.listeners(t).length},s=r(213),u=r(1).Buffer,c=t.Uint8Array||function(){},f=r(469);o=f&&f.debuglog?f.debuglog("stream"):function(){};var l,d,h,p=r(470),b=r(214),y=r(215).getHighWaterMark,g=r(51).codes,m=g.ERR_INVALID_ARG_TYPE,v=g.ERR_STREAM_PUSH_AFTER_EOF,w=g.ERR_METHOD_NOT_IMPLEMENTED,_=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(3)(P,s);var x=b.errorOrDestroy,O=["error","close","destroy","pause","resume"];function k(e,t,n){i=i||r(52),e=e||{},"boolean"!=typeof n&&(n=t instanceof i),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=y(this,e,"readableHighWaterMark",n),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(l||(l=r(21).StringDecoder),this.decoder=new l(e.encoding),this.encoding=e.encoding)}function P(e){if(i=i||r(52),!(this instanceof P))return new P(e);var t=this instanceof i;this._readableState=new k(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function S(e,t,r,n,i){o("readableAddChunk",t);var a,s=e._readableState;if(null===t)s.reading=!1,function(e,t){if(o("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?M(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,j(e)))}}(e,s);else if(i||(a=function(e,t){var r,n;return n=t,u.isBuffer(n)||n instanceof c||"string"==typeof t||void 0===t||e.objectMode||(r=new m("chunk",["string","Buffer","Uint8Array"],t)),r}(s,t)),a)x(e,a);else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),n)s.endEmitted?x(e,new _):A(e,s,t,!0);else if(s.ended)x(e,new v);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?A(e,s,t,!1):T(e,s)):A(e,s,t,!1)}else n||(s.reading=!1,T(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function A(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&M(e)),T(e,t)}function E(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function M(e){var t=e._readableState;o("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(j,e))}function j(e){var t=e._readableState;o("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,C(e)}function T(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(B,e,t))}function B(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(o("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function I(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function N(e){o("readable nexttick read 0"),e.read(0)}function R(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),C(e),t.flowing&&!t.reading&&e.read(0)}function C(e){var t=e._readableState;for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function U(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function L(e){var t=e._readableState;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(D,t,e))}function D(e,t){if(o("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function H(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),P.prototype.destroy=b.destroy,P.prototype._undestroy=b.undestroy,P.prototype._destroy=function(e,t){t(e)},P.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=u.from(e,t),t=""),r=!0),S(this,e,t,!1,r)},P.prototype.unshift=function(e){return S(this,e,null,!0,!1)},P.prototype.isPaused=function(){return!1===this._readableState.flowing},P.prototype.setEncoding=function(e){l||(l=r(21).StringDecoder);var t=new l(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";null!==n;)i+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this},P.prototype.read=function(e){o("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return o("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?L(this):M(this),null;if(0===(e=E(e,t))&&t.ended)return 0===t.length&&L(this),null;var n,i=t.needReadable;return o("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&o("length less than watermark",i=!0),t.ended||t.reading?o("reading or ended",i=!1):i&&(o("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=E(r,t))),null===(n=e>0?U(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&L(this)),null!==n&&this.emit("data",n),n},P.prototype._read=function(e){x(this,new w("_read()"))},P.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,o("pipe count=%d opts=%j",i.pipesCount,t);var s=t&&!1===t.end||e===n.stdout||e===n.stderr?b:u;function u(){o("onend"),e.end()}i.endEmitted?n.nextTick(s):r.once("end",s),e.on("unpipe",(function t(n,a){o("onunpipe"),n===r&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,o("cleanup"),e.removeListener("close",h),e.removeListener("finish",p),e.removeListener("drain",c),e.removeListener("error",d),e.removeListener("unpipe",t),r.removeListener("end",u),r.removeListener("end",b),r.removeListener("data",l),f=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||c())}));var c=function(e){return function(){var t=e._readableState;o("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,C(e))}}(r);e.on("drain",c);var f=!1;function l(t){o("ondata");var n=e.write(t);o("dest.write",n),!1===n&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==H(i.pipes,e))&&!f&&(o("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function d(t){o("onerror",t),b(),e.removeListener("error",d),0===a(e,"error")&&x(e,t)}function h(){e.removeListener("finish",p),b()}function p(){o("onfinish"),e.removeListener("close",h),b()}function b(){o("unpipe"),r.unpipe(e)}return r.on("data",l),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",d),e.once("close",h),e.once("finish",p),e.emit("pipe",r),i.flowing||(o("pipe resume"),r.resume()),e},P.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=H(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},P.prototype.on=function(e,t){var r=s.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,o("on readable",i.length,i.reading),i.length?M(this):i.reading||n.nextTick(N,this))),r},P.prototype.addListener=P.prototype.on,P.prototype.removeListener=function(e,t){var r=s.prototype.removeListener.call(this,e,t);return"readable"===e&&n.nextTick(I,this),r},P.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||n.nextTick(I,this),t},P.prototype.resume=function(){var e=this._readableState;return e.flowing||(o("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(R,e,t))}(this,e)),e.paused=!1,this},P.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},P.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(o("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){o("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<O.length;a++)e.on(O[a],this.emit.bind(this,O[a]));return this._read=function(t){o("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(P.prototype[Symbol.asyncIterator]=function(){return void 0===d&&(d=r(472)),d(this)}),Object.defineProperty(P.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(P.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(P.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),P._fromList=U,Object.defineProperty(P.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(P.from=function(e,t){return void 0===h&&(h=r(473)),h(P,e,t)})}).call(this,r(7),r(6))},function(e,t,r){"use strict";e.exports=r(20).EventEmitter},function(e,t,r){"use strict";(function(t){function r(e,t){i(e,t),n(e)}function n(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,o){var a=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?(o?o(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,t.nextTick(i,this,e)):t.nextTick(i,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!o&&e?a._writableState?a._writableState.errorEmitted?t.nextTick(n,a):(a._writableState.errorEmitted=!0,t.nextTick(r,a,e)):t.nextTick(r,a,e):o?(t.nextTick(n,a),o(e)):t.nextTick(n,a)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this,r(6))},function(e,t,r){"use strict";var n=r(51).codes.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,i){var o=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,i,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},function(e,t,r){"use strict";(function(t,n){function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(undefined),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var o;e.exports=P,P.WritableState=k;var a,s={deprecate:r(74)},u=r(213),c=r(1).Buffer,f=t.Uint8Array||function(){},l=r(214),d=r(215).getHighWaterMark,h=r(51).codes,p=h.ERR_INVALID_ARG_TYPE,b=h.ERR_METHOD_NOT_IMPLEMENTED,y=h.ERR_MULTIPLE_CALLBACK,g=h.ERR_STREAM_CANNOT_PIPE,m=h.ERR_STREAM_DESTROYED,v=h.ERR_STREAM_NULL_VALUES,w=h.ERR_STREAM_WRITE_AFTER_END,_=h.ERR_UNKNOWN_ENCODING,x=l.errorOrDestroy;function O(){}function k(e,t,a){o=o||r(52),e=e||{},"boolean"!=typeof a&&(a=t instanceof o),this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,i=r.sync,o=r.writecb;if("function"!=typeof o)throw new y;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,i,o){--t.pendingcb,r?(n.nextTick(o,i),n.nextTick(T,e,t),e._writableState.errorEmitted=!0,x(e,i)):(o(i),e._writableState.errorEmitted=!0,x(e,i),T(e,t))}(e,r,i,t,o);else{var a=M(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||E(e,r),i?n.nextTick(A,e,r,a,o):A(e,r,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function P(e){var t=this instanceof(o=o||r(52));if(!t&&!a.call(P,this))return new P(e);this._writableState=new k(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function S(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new m("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function A(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),T(e,t)}function E(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,o=new Array(n),a=t.corkedRequestsFree;a.entry=r;for(var s=0,u=!0;r;)o[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;o.allBuffers=u,S(e,t,!0,t.length,o,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,f=r.encoding,l=r.callback;if(S(e,t,!1,t.objectMode?1:c.length,c,f,l),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function M(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function j(e,t){e._final((function(r){t.pendingcb--,r&&x(e,r),t.prefinished=!0,e.emit("prefinish"),T(e,t)}))}function T(e,t){var r=M(t);if(r&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,n.nextTick(j,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return r}r(3)(P,u),k.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(k.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(a=Function.prototype[Symbol.hasInstance],Object.defineProperty(P,Symbol.hasInstance,{value:function(e){return!!a.call(this,e)||this===P&&e&&e._writableState instanceof k}})):a=function(e){return e instanceof this},P.prototype.pipe=function(){x(this,new g)},P.prototype.write=function(e,t,r){var i,o=this._writableState,a=!1,s=!o.objectMode&&(i=e,c.isBuffer(i)||i instanceof f);return s&&!c.isBuffer(e)&&(e=function(e){return c.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof r&&(r=O),o.ending?function(e,t){var r=new w;x(e,r),n.nextTick(t,r)}(this,r):(s||function(e,t,r,i){var o;return null===r?o=new v:"string"==typeof r||t.objectMode||(o=new p("chunk",["string","Buffer"],r)),!o||(x(e,o),n.nextTick(i,o),!1)}(this,o,e,r))&&(o.pendingcb++,a=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=c.from(t,r)),t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var f=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},f?f.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else S(e,t,!1,s,n,i,o);return u}(this,o,s,e,t,r)),a},P.prototype.cork=function(){this._writableState.corked++},P.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||E(this,e))},P.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new _(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(P.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(P.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),P.prototype._write=function(e,t,r){r(new b("_write()"))},P.prototype._writev=null,P.prototype.end=function(e,t,r){var i=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,r){t.ending=!0,T(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,i,r),this},Object.defineProperty(P.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),P.prototype.destroy=l.destroy,P.prototype._undestroy=l.undestroy,P.prototype._destroy=function(e,t){t(e)}}).call(this,r(7),r(6))},function(e,t,r){"use strict";e.exports=f;var n=r(51).codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(52);function c(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function f(e){if(!(this instanceof f))return new f(e);u.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",l)}function l(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush((function(t,r){d(e,t,r)}))}function d(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}r(3)(f,u),f.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},f.prototype._transform=function(e,t,r){r(new i("_transform()"))},f.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},f.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},f.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,(function(e){t(e)}))}},function(e,t,r){"use strict";var n=t;n.bignum=r(4),n.define=r(478).define,n.base=r(481),n.constants=r(482),n.decoders=r(221),n.encoders=r(219)},function(e,t,r){"use strict";var n=t;n.der=r(220),n.pem=r(479)},function(e,t,r){"use strict";var n=r(3),i=r(115).Buffer,o=r(116),a=r(118);function s(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new u,this.tree._init(e.body)}function u(e){o.call(this,"der",e)}function c(e){return e<10?"0"+e:e}e.exports=s,s.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},n(u,o),u.prototype._encodeComposite=function(e,t,r,n){var o=function(e,t,r,n){var i;if("seqof"===e?e="seq":"setof"===e&&(e="set"),a.tagByName.hasOwnProperty(e))i=a.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return n.error("Unknown tag: "+e);i=e}return i>=31?n.error("Multi-octet tag encoding unsupported"):(t||(i|=32),i|a.tagClassByName[r||"universal"]<<6)}(e,t,r,this.reporter);if(n.length<128){var s=i.alloc(2);return s[0]=o,s[1]=n.length,this._createEncoderBuffer([s,n])}for(var u=1,c=n.length;c>=256;c>>=8)u++;var f=i.alloc(2+u);f[0]=o,f[1]=128|u;for(var l=1+u,d=n.length;d>0;l--,d>>=8)f[l]=255&d;return this._createEncoderBuffer([f,n])},u.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var r=i.alloc(2*e.length),n=0;n<e.length;n++)r.writeUInt16BE(e.charCodeAt(n),2*n);return this._createEncoderBuffer(r)}return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)||"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")},u.prototype._encodeObjid=function(e,t,r){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s.]+/g);for(var n=0;n<e.length;n++)e[n]|=0}else if(Array.isArray(e)){e=e.slice();for(var o=0;o<e.length;o++)e[o]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!r){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}for(var a=0,s=0;s<e.length;s++){var u=e[s];for(a++;u>=128;u>>=7)a++}for(var c=i.alloc(a),f=c.length-1,l=e.length-1;l>=0;l--){var d=e[l];for(c[f--]=127&d;(d>>=7)>0;)c[f--]=128|127&d}return this._createEncoderBuffer(c)},u.prototype._encodeTime=function(e,t){var r,n=new Date(e);return"gentime"===t?r=[c(n.getUTCFullYear()),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[c(n.getUTCFullYear()%100),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},u.prototype._encodeNull=function(){return this._createEncoderBuffer("")},u.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!i.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=i.from(r)}if(i.isBuffer(e)){var n=e.length;0===e.length&&n++;var o=i.alloc(n);return e.copy(o),0===e.length&&(o[0]=0),this._createEncoderBuffer(o)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);for(var a=1,s=e;s>=256;s>>=8)a++;for(var u=new Array(a),c=u.length-1;c>=0;c--)u[c]=255&e,e>>=8;return 128&u[0]&&u.unshift(0),this._createEncoderBuffer(i.from(u))},u.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},u.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},u.prototype._skipDefault=function(e,t,r){var n,i=this._baseState;if(null===i.default)return!1;var o=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,r).join()),o.length!==i.defaultBuffer.length)return!1;for(n=0;n<o.length;n++)if(o[n]!==i.defaultBuffer[n])return!1;return!0}},function(e,t,r){"use strict";var n=t;n.der=r(222),n.pem=r(480)},function(e,t,r){"use strict";var n=r(3),i=r(4),o=r(69).DecoderBuffer,a=r(116),s=r(118);function u(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){a.call(this,"der",e)}function f(e,t){var r=e.readUInt8(t);if(e.isError(r))return r;var n=s.tagClass[r>>6],i=0==(32&r);if(31==(31&r)){var o=r;for(r=0;128==(128&o);){if(o=e.readUInt8(t),e.isError(o))return o;r<<=7,r|=127&o}}else r&=31;return{cls:n,primitive:i,tag:r,tagStr:s.tag[r]}}function l(e,t,r){var n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if(0==(128&n))return n;var i=127&n;if(i>4)return e.error("length octect is too long");n=0;for(var o=0;o<i;o++){n<<=8;var a=e.readUInt8(r);if(e.isError(a))return a;n|=a}return n}e.exports=u,u.prototype.decode=function(e,t){return o.isDecoderBuffer(e)||(e=new o(e,t)),this.tree._decode(e,t)},n(c,a),c.prototype._peekTag=function(e,t,r){if(e.isEmpty())return!1;var n=e.save(),i=f(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(n),i.tag===t||i.tagStr===t||i.tagStr+"of"===t||r)},c.prototype._decodeTag=function(e,t,r){var n=f(e,'Failed to decode tag of "'+t+'"');if(e.isError(n))return n;var i=l(e,n.primitive,'Failed to get length of "'+t+'"');if(e.isError(i))return i;if(!r&&n.tag!==t&&n.tagStr!==t&&n.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(n.primitive||null!==i)return e.skip(i,'Failed to match body of: "'+t+'"');var o=e.save(),a=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(a)?a:(i=e.offset-o.offset,e.restore(o),e.skip(i,'Failed to match body of: "'+t+'"'))},c.prototype._skipUntilEnd=function(e,t){for(;;){var r=f(e,t);if(e.isError(r))return r;var n=l(e,r.primitive,t);if(e.isError(n))return n;var i;if(i=r.primitive||null!==n?e.skip(n):this._skipUntilEnd(e,t),e.isError(i))return i;if("end"===r.tagStr)break}},c.prototype._decodeList=function(e,t,r,n){for(var i=[];!e.isEmpty();){var o=this._peekTag(e,"end");if(e.isError(o))return o;var a=r.decode(e,"der",n);if(e.isError(a)&&o)break;i.push(a)}return i},c.prototype._decodeStr=function(e,t){if("bitstr"===t){var r=e.readUInt8();return e.isError(r)?r:{unused:r,data:e.raw()}}if("bmpstr"===t){var n=e.raw();if(n.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");for(var i="",o=0;o<n.length/2;o++)i+=String.fromCharCode(n.readUInt16BE(2*o));return i}if("numstr"===t){var a=e.raw().toString("ascii");return this._isNumstr(a)?a:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"===t){var s=e.raw().toString("ascii");return this._isPrintstr(s)?s:e.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")},c.prototype._decodeObjid=function(e,t,r){for(var n,i=[],o=0,a=0;!e.isEmpty();)o<<=7,o|=127&(a=e.readUInt8()),0==(128&a)&&(i.push(o),o=0);128&a&&i.push(o);var s=i[0]/40|0,u=i[0]%40;if(n=r?i:[s,u].concat(i.slice(1)),t){var c=t[n.join(" ")];void 0===c&&(c=t[n.join(".")]),void 0!==c&&(n=c)}return n},c.prototype._decodeTime=function(e,t){var r,n,i,o,a,s,u=e.raw().toString();if("gentime"===t)r=0|u.slice(0,4),n=0|u.slice(4,6),i=0|u.slice(6,8),o=0|u.slice(8,10),a=0|u.slice(10,12),s=0|u.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");r=0|u.slice(0,2),n=0|u.slice(2,4),i=0|u.slice(4,6),o=0|u.slice(6,8),a=0|u.slice(8,10),s=0|u.slice(10,12),r=r<70?2e3+r:1900+r}return Date.UTC(r,n-1,i,o,a,s,0)},c.prototype._decodeNull=function(){return null},c.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},c.prototype._decodeInt=function(e,t){var r=e.raw(),n=new i(r);return t&&(n=t[n.toString(10)]||n),n},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},function(e){e.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},function(e,t,r){"use strict";var n=r(47),i=r(5).Buffer;function o(e){var t=i.allocUnsafe(4);return t.writeUInt32BE(e,0),t}e.exports=function(e,t){for(var r,a=i.alloc(0),s=0;a.length<t;)r=o(s++),a=i.concat([a,n("sha1").update(e).update(r).digest()]);return a.slice(0,t)}},function(e,t,r){"use strict";e.exports=function(e,t){for(var r=e.length,n=-1;++n<r;)e[n]^=t[n];return e}},function(e,t,r){"use strict";var n=r(4),i=r(5).Buffer;e.exports=function(e,t){return i.from(e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed().toArray())}},function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(i)};var i=new Uint8Array(16)},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(e,t,r){function n(e,n,a,s){var u;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),"string"==typeof n&&(n=(0,o.default)(n)),16!==(null===(u=n)||void 0===u?void 0:u.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var c=new Uint8Array(16+e.length);if(c.set(n),c.set(e,n.length),(c=r(c))[6]=15&c[6]|t,c[8]=63&c[8]|128,a){s=s||0;for(var f=0;f<16;++f)a[s+f]=c[f];return a}return(0,i.unsafeStringify)(c)}try{n.name=e}catch(e){}return n.DNS=a,n.URL=s,n};var i=r(87),o=n(r(229)),a="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=a;var s="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=s},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(88));t.default=function(e){if(!(0,i.default)(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r}},function(e,t,r){"use strict";var n=Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]},i=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FeeMarketEIP1559Transaction=t.TransactionFactory=t.AccessListEIP2930Transaction=t.Transaction=void 0;var o=r(507);Object.defineProperty(t,"Transaction",{enumerable:!0,get:function(){return i(o).default}});var a=r(543);Object.defineProperty(t,"AccessListEIP2930Transaction",{enumerable:!0,get:function(){return i(a).default}});var s=r(544);Object.defineProperty(t,"TransactionFactory",{enumerable:!0,get:function(){return i(s).default}});var u=r(545);Object.defineProperty(t,"FeeMarketEIP1559Transaction",{enumerable:!0,get:function(){return i(u).default}}),function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)}(r(53),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AccessLists=void 0;var n=r(27),i=r(53),o=function(){function e(){}return e.getAccessListData=function(e){var t,r;if(e&&(0,i.isAccessList)(e)){t=e;for(var o=[],a=0;a<e.length;a++){for(var s=e[a],u=(0,n.toBuffer)(s.address),c=[],f=0;f<s.storageKeys.length;f++)c.push((0,n.toBuffer)(s.storageKeys[f]));o.push([u,c])}r=o}else{r=null!=e?e:[];var l=[];for(a=0;a<r.length;a++){var d=r[a],h=(0,n.bufferToHex)(d[0]),p=[];for(s=0;s<d[1].length;s++)p.push((0,n.bufferToHex)(d[1][s]));var b={address:h,storageKeys:p};l.push(b)}t=l}return{AccessListJSON:t,accessList:r}},e.verifyAccessList=function(e){for(var t=0;t<e.length;t++){var r=e[t],n=r[0],i=r[1];if(void 0!==r[2])throw new Error("Access list item cannot have 3 elements. It can only have an address, and an array of storage slots.");if(20!=n.length)throw new Error("Invalid EIP-2930 transaction: address length should be 20 bytes");for(var o=0;o<i.length;o++)if(32!=i[o].length)throw new Error("Invalid EIP-2930 transaction: storage slot length should be 32 bytes")}},e.getAccessListJSON=function(e){for(var t=[],r=0;r<e.length;r++){for(var i=e[r],o={address:"0x"+(0,n.setLengthLeft)(i[0],20).toString("hex"),storageKeys:[]},a=i[1],s=0;s<a.length;s++){var u=a[s];o.storageKeys.push("0x"+(0,n.setLengthLeft)(u,32).toString("hex"))}t.push(o)}return t},e.getDataFeeEIP2930=function(e,t){for(var r=t.param("gasPrices","accessListStorageKeyCost"),n=t.param("gasPrices","accessListAddressCost"),i=0,o=0;o<e.length;o++)i+=e[o][1].length;return e.length*n+i*r},e}();t.AccessLists=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KECCAK256_RLP=t.KECCAK256_RLP_S=t.KECCAK256_RLP_ARRAY=t.KECCAK256_RLP_ARRAY_S=t.KECCAK256_NULL=t.KECCAK256_NULL_S=t.TWO_POW256=t.MAX_INTEGER=t.MAX_UINT64=void 0;var n=r(1),i=r(29);t.MAX_UINT64=new i.BN("ffffffffffffffff",16),t.MAX_INTEGER=new i.BN("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),t.TWO_POW256=new i.BN("10000000000000000000000000000000000000000000000000000000000000000",16),t.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",t.KECCAK256_NULL=n.Buffer.from(t.KECCAK256_NULL_S,"hex"),t.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",t.KECCAK256_RLP_ARRAY=n.Buffer.from(t.KECCAK256_RLP_ARRAY_S,"hex"),t.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",t.KECCAK256_RLP=n.Buffer.from(t.KECCAK256_RLP_S,"hex")},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.isZeroAddress=t.zeroAddress=t.importPublic=t.privateToAddress=t.privateToPublic=t.publicToAddress=t.pubToAddress=t.isValidPublic=t.isValidPrivate=t.generateAddress2=t.generateAddress=t.isValidChecksumAddress=t.toChecksumAddress=t.isValidAddress=t.Account=void 0;var n=function(e){return e&&e.__esModule?e:{default:e}}(r(43)),i=r(29),o=r(234),a=r(54),s=r(232),u=r(42),c=r(123),f=r(90),l=r(126),d=function(){function e(e,t,r,n){void 0===e&&(e=new i.BN(0)),void 0===t&&(t=new i.BN(0)),void 0===r&&(r=s.KECCAK256_RLP),void 0===n&&(n=s.KECCAK256_NULL),this.nonce=e,this.balance=t,this.stateRoot=r,this.codeHash=n,this._validate()}return e.fromAccountData=function(t){var r=t.nonce,n=t.balance,o=t.stateRoot,a=t.codeHash;return new e(r?new i.BN((0,u.toBuffer)(r)):void 0,n?new i.BN((0,u.toBuffer)(n)):void 0,o?(0,u.toBuffer)(o):void 0,a?(0,u.toBuffer)(a):void 0)},e.fromRlpSerializedAccount=function(e){var t=i.rlp.decode(e);if(!Array.isArray(t))throw new Error("Invalid serialized account input. Must be array");return this.fromValuesArray(t)},e.fromValuesArray=function(t){var r=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}(t,4),n=r[0],o=r[1],a=r[2],s=r[3];return new e(new i.BN(n),new i.BN(o),a,s)},e.prototype._validate=function(){if(this.nonce.lt(new i.BN(0)))throw new Error("nonce must be greater than zero");if(this.balance.lt(new i.BN(0)))throw new Error("balance must be greater than zero");if(32!==this.stateRoot.length)throw new Error("stateRoot must have a length of 32");if(32!==this.codeHash.length)throw new Error("codeHash must have a length of 32")},e.prototype.raw=function(){return[(0,l.bnToUnpaddedBuffer)(this.nonce),(0,l.bnToUnpaddedBuffer)(this.balance),this.stateRoot,this.codeHash]},e.prototype.serialize=function(){return i.rlp.encode(this.raw())},e.prototype.isContract=function(){return!this.codeHash.equals(s.KECCAK256_NULL)},e.prototype.isEmpty=function(){return this.balance.isZero()&&this.nonce.isZero()&&this.codeHash.equals(s.KECCAK256_NULL)},e}();t.Account=d,t.isValidAddress=function(e){try{(0,f.assertIsString)(e)}catch(e){return!1}return/^0x[0-9a-fA-F]{40}$/.test(e)},t.toChecksumAddress=function(e,t){(0,f.assertIsHexString)(e);var r=(0,a.stripHexPrefix)(e).toLowerCase(),n="";t&&(n=(0,l.toType)(t,l.TypeOutput.BN).toString()+"0x");for(var i=(0,c.keccakFromString)(n+r).toString("hex"),o="0x",s=0;s<r.length;s++)parseInt(i[s],16)>=8?o+=r[s].toUpperCase():o+=r[s];return o},t.isValidChecksumAddress=function(e,r){return(0,t.isValidAddress)(e)&&(0,t.toChecksumAddress)(e,r)===e},t.generateAddress=function(t,r){(0,f.assertIsBuffer)(t),(0,f.assertIsBuffer)(r);var n=new i.BN(r);return n.isZero()?(0,c.rlphash)([t,null]).slice(-20):(0,c.rlphash)([t,e.from(n.toArray())]).slice(-20)},t.generateAddress2=function(t,r,i){return(0,f.assertIsBuffer)(t),(0,f.assertIsBuffer)(r),(0,f.assertIsBuffer)(i),(0,n.default)(20===t.length),(0,n.default)(32===r.length),(0,c.keccak256)(e.concat([e.from("ff","hex"),t,r,(0,c.keccak256)(i)])).slice(-20)},t.isValidPrivate=function(e){return(0,o.privateKeyVerify)(e)},t.isValidPublic=function(t,r){return void 0===r&&(r=!1),(0,f.assertIsBuffer)(t),64===t.length?(0,o.publicKeyVerify)(e.concat([e.from([4]),t])):!!r&&(0,o.publicKeyVerify)(t)},t.pubToAddress=function(t,r){return void 0===r&&(r=!1),(0,f.assertIsBuffer)(t),r&&64!==t.length&&(t=e.from((0,o.publicKeyConvert)(t,!1).slice(1))),(0,n.default)(64===t.length),(0,c.keccak)(t).slice(-20)},t.publicToAddress=t.pubToAddress,t.privateToPublic=function(t){return(0,f.assertIsBuffer)(t),e.from((0,o.publicKeyCreate)(t,!1)).slice(1)},t.privateToAddress=function(e){return(0,t.publicToAddress)((0,t.privateToPublic)(e))},t.importPublic=function(t){return(0,f.assertIsBuffer)(t),64!==t.length&&(t=e.from((0,o.publicKeyConvert)(t,!1).slice(1))),t},t.zeroAddress=function(){var e=(0,u.zeros)(20);return(0,u.bufferToHex)(e)},t.isZeroAddress=function(e){try{(0,f.assertIsString)(e)}catch(e){return!1}return(0,t.zeroAddress)()===e}}).call(this,r(1).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(235),i=r(570);t.createPrivateKey=function(){return function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){var e;return function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,(function(t){switch(t.label){case 0:return[4,i.getRandomBytes(32)];case 1:return e=t.sent(),n.privateKeyVerify(e)?[2,e]:[3,0];case 2:return[2]}}))}))},t.createPrivateKeySync=function(){for(;;){var e=i.getRandomBytesSync(32);if(n.privateKeyVerify(e))return e}},function(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}(r(235))},function(e,t,r){"use strict";e.exports=r(548)(r(549))},function(e,t,r){"use strict";var n=t;function i(e){return 1===e.length?"0"+e:e}function o(e){for(var t="",r=0;r<e.length;r++)t+=i(e[r].toString(16));return t}n.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e){for(var n=0;n<e.length;n++)r[n]=0|e[n];return r}if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16));else for(n=0;n<e.length;n++){var i=e.charCodeAt(n),o=i>>8,a=255&i;o?r.push(o,a):r.push(a)}return r},n.zero2=i,n.toHex=o,n.encode=function(e,t){return"hex"===t?o(e):e}},function(e,t,r){"use strict";var n,i=r(0)(r(2));function o(e){this.rand=e}if(e.exports=function(e){return n||(n=new o(null)),n.generate(e)},e.exports.Rand=o,o.prototype.generate=function(e){return this._rand(e)},o.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r<t.length;r++)t[r]=this.rand.getByte();return t},"object"===("undefined"==typeof self?"undefined":(0,i.default)(self)))self.crypto&&self.crypto.getRandomValues?o.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?o.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"===("undefined"==typeof window?"undefined":(0,i.default)(window))&&(o.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var a=r(552);if("function"!=typeof a.randomBytes)throw new Error("Not supported");o.prototype._rand=function(e){return a.randomBytes(e)}}catch(e){}},function(e,t,r){"use strict";var n=t;n.base=r(89),n.short=r(553),n.mont=r(554),n.edwards=r(555)},function(e,t,r){"use strict";var n=r(26).rotr32;function i(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?i(t,r,n):1===e||3===e?a(t,r,n):2===e?o(t,r,n):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},function(e,t,r){"use strict";var n=r(26),i=r(70),o=r(239),a=r(41),s=n.sum32,u=n.sum32_4,c=n.sum32_5,f=o.ch32,l=o.maj32,d=o.s0_256,h=o.s1_256,p=o.g0_256,b=o.g1_256,y=i.BlockHash,g=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function m(){if(!(this instanceof m))return new m;y.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}n.inherits(m,y),e.exports=m,m.blockSize=512,m.outSize=256,m.hmacStrength=192,m.padLength=64,m.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=u(b(r[n-2]),r[n-7],p(r[n-15]),r[n-16]);var i=this.h[0],o=this.h[1],y=this.h[2],g=this.h[3],m=this.h[4],v=this.h[5],w=this.h[6],_=this.h[7];for(a(this.k.length===r.length),n=0;n<r.length;n++){var x=c(_,h(m),f(m,v,w),this.k[n],r[n]),O=s(d(i),l(i,o,y));_=w,w=v,v=m,m=s(g,x),g=y,y=o,o=i,i=s(x,O)}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],y),this.h[3]=s(this.h[3],g),this.h[4]=s(this.h[4],m),this.h[5]=s(this.h[5],v),this.h[6]=s(this.h[6],w),this.h[7]=s(this.h[7],_)},m.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(e,t,r){"use strict";var n=r(26),i=r(70),o=r(41),a=n.rotr64_hi,s=n.rotr64_lo,u=n.shr64_hi,c=n.shr64_lo,f=n.sum64,l=n.sum64_hi,d=n.sum64_lo,h=n.sum64_4_hi,p=n.sum64_4_lo,b=n.sum64_5_hi,y=n.sum64_5_lo,g=i.BlockHash,m=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function v(){if(!(this instanceof v))return new v;g.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=m,this.W=new Array(160)}function w(e,t,r,n,i){var o=e&r^~e&i;return o<0&&(o+=4294967296),o}function _(e,t,r,n,i,o){var a=t&n^~t&o;return a<0&&(a+=4294967296),a}function x(e,t,r,n,i){var o=e&r^e&i^r&i;return o<0&&(o+=4294967296),o}function O(e,t,r,n,i,o){var a=t&n^t&o^n&o;return a<0&&(a+=4294967296),a}function k(e,t){var r=a(e,t,28)^a(t,e,2)^a(t,e,7);return r<0&&(r+=4294967296),r}function P(e,t){var r=s(e,t,28)^s(t,e,2)^s(t,e,7);return r<0&&(r+=4294967296),r}function S(e,t){var r=a(e,t,14)^a(e,t,18)^a(t,e,9);return r<0&&(r+=4294967296),r}function A(e,t){var r=s(e,t,14)^s(e,t,18)^s(t,e,9);return r<0&&(r+=4294967296),r}function E(e,t){var r=a(e,t,1)^a(e,t,8)^u(e,t,7);return r<0&&(r+=4294967296),r}function M(e,t){var r=s(e,t,1)^s(e,t,8)^c(e,t,7);return r<0&&(r+=4294967296),r}function j(e,t){var r=a(e,t,19)^a(t,e,29)^u(e,t,6);return r<0&&(r+=4294967296),r}function T(e,t){var r=s(e,t,19)^s(t,e,29)^c(e,t,6);return r<0&&(r+=4294967296),r}n.inherits(v,g),e.exports=v,v.blockSize=1024,v.outSize=512,v.hmacStrength=192,v.padLength=128,v.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n<r.length;n+=2){var i=j(r[n-4],r[n-3]),o=T(r[n-4],r[n-3]),a=r[n-14],s=r[n-13],u=E(r[n-30],r[n-29]),c=M(r[n-30],r[n-29]),f=r[n-32],l=r[n-31];r[n]=h(i,o,a,s,u,c,f,l),r[n+1]=p(i,o,a,s,u,c,f,l)}},v.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,n=this.h[0],i=this.h[1],a=this.h[2],s=this.h[3],u=this.h[4],c=this.h[5],h=this.h[6],p=this.h[7],g=this.h[8],m=this.h[9],v=this.h[10],E=this.h[11],M=this.h[12],j=this.h[13],T=this.h[14],B=this.h[15];o(this.k.length===r.length);for(var I=0;I<r.length;I+=2){var N=T,R=B,C=S(g,m),U=A(g,m),L=w(g,0,v,0,M),D=_(0,m,0,E,0,j),H=this.k[I],F=this.k[I+1],V=r[I],z=r[I+1],q=b(N,R,C,U,L,D,H,F,V,z),K=y(N,R,C,U,L,D,H,F,V,z);N=k(n,i),R=P(n,i),C=x(n,0,a,0,u),U=O(0,i,0,s,0,c);var W=l(N,R,C,U),G=d(N,R,C,U);T=M,B=j,M=v,j=E,v=g,E=m,g=l(h,p,q,K),m=d(p,p,q,K),h=u,p=c,u=a,c=s,a=n,s=i,n=l(q,K,W,G),i=d(q,K,W,G)}f(this.h,0,n,i),f(this.h,2,a,s),f(this.h,4,u,c),f(this.h,6,h,p),f(this.h,8,g,m),f(this.h,10,v,E),f(this.h,12,M,j),f(this.h,14,T,B)},v.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(e,t,r){"use strict";(function(t,n){var i;e.exports=P,P.ReadableState=k,r(20).EventEmitter;var o,a=function(e,t){return e.listeners(t).length},s=r(243),u=r(1).Buffer,c=t.Uint8Array||function(){},f=r(577);o=f&&f.debuglog?f.debuglog("stream"):function(){};var l,d,h,p=r(578),b=r(244),y=r(245).getHighWaterMark,g=r(55).codes,m=g.ERR_INVALID_ARG_TYPE,v=g.ERR_STREAM_PUSH_AFTER_EOF,w=g.ERR_METHOD_NOT_IMPLEMENTED,_=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(10)(P,s);var x=b.errorOrDestroy,O=["error","close","destroy","pause","resume"];function k(e,t,n){i=i||r(56),e=e||{},"boolean"!=typeof n&&(n=t instanceof i),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=y(this,e,"readableHighWaterMark",n),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(l||(l=r(21).StringDecoder),this.decoder=new l(e.encoding),this.encoding=e.encoding)}function P(e){if(i=i||r(56),!(this instanceof P))return new P(e);var t=this instanceof i;this._readableState=new k(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function S(e,t,r,n,i){o("readableAddChunk",t);var a,s=e._readableState;if(null===t)s.reading=!1,function(e,t){if(o("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?M(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,j(e)))}}(e,s);else if(i||(a=function(e,t){var r,n;return n=t,u.isBuffer(n)||n instanceof c||"string"==typeof t||void 0===t||e.objectMode||(r=new m("chunk",["string","Buffer","Uint8Array"],t)),r}(s,t)),a)x(e,a);else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),n)s.endEmitted?x(e,new _):A(e,s,t,!0);else if(s.ended)x(e,new v);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?A(e,s,t,!1):T(e,s)):A(e,s,t,!1)}else n||(s.reading=!1,T(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function A(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&M(e)),T(e,t)}function E(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function M(e){var t=e._readableState;o("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(j,e))}function j(e){var t=e._readableState;o("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,C(e)}function T(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(B,e,t))}function B(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(o("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function I(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function N(e){o("readable nexttick read 0"),e.read(0)}function R(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),C(e),t.flowing&&!t.reading&&e.read(0)}function C(e){var t=e._readableState;for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function U(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function L(e){var t=e._readableState;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(D,t,e))}function D(e,t){if(o("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function H(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),P.prototype.destroy=b.destroy,P.prototype._undestroy=b.undestroy,P.prototype._destroy=function(e,t){t(e)},P.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=u.from(e,t),t=""),r=!0),S(this,e,t,!1,r)},P.prototype.unshift=function(e){return S(this,e,null,!0,!1)},P.prototype.isPaused=function(){return!1===this._readableState.flowing},P.prototype.setEncoding=function(e){l||(l=r(21).StringDecoder);var t=new l(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";null!==n;)i+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this},P.prototype.read=function(e){o("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return o("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?L(this):M(this),null;if(0===(e=E(e,t))&&t.ended)return 0===t.length&&L(this),null;var n,i=t.needReadable;return o("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&o("length less than watermark",i=!0),t.ended||t.reading?o("reading or ended",i=!1):i&&(o("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=E(r,t))),null===(n=e>0?U(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&L(this)),null!==n&&this.emit("data",n),n},P.prototype._read=function(e){x(this,new w("_read()"))},P.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,o("pipe count=%d opts=%j",i.pipesCount,t);var s=t&&!1===t.end||e===n.stdout||e===n.stderr?b:u;function u(){o("onend"),e.end()}i.endEmitted?n.nextTick(s):r.once("end",s),e.on("unpipe",(function t(n,a){o("onunpipe"),n===r&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,o("cleanup"),e.removeListener("close",h),e.removeListener("finish",p),e.removeListener("drain",c),e.removeListener("error",d),e.removeListener("unpipe",t),r.removeListener("end",u),r.removeListener("end",b),r.removeListener("data",l),f=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||c())}));var c=function(e){return function(){var t=e._readableState;o("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,C(e))}}(r);e.on("drain",c);var f=!1;function l(t){o("ondata");var n=e.write(t);o("dest.write",n),!1===n&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==H(i.pipes,e))&&!f&&(o("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function d(t){o("onerror",t),b(),e.removeListener("error",d),0===a(e,"error")&&x(e,t)}function h(){e.removeListener("finish",p),b()}function p(){o("onfinish"),e.removeListener("close",h),b()}function b(){o("unpipe"),r.unpipe(e)}return r.on("data",l),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",d),e.once("close",h),e.once("finish",p),e.emit("pipe",r),i.flowing||(o("pipe resume"),r.resume()),e},P.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=H(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},P.prototype.on=function(e,t){var r=s.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,o("on readable",i.length,i.reading),i.length?M(this):i.reading||n.nextTick(N,this))),r},P.prototype.addListener=P.prototype.on,P.prototype.removeListener=function(e,t){var r=s.prototype.removeListener.call(this,e,t);return"readable"===e&&n.nextTick(I,this),r},P.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||n.nextTick(I,this),t},P.prototype.resume=function(){var e=this._readableState;return e.flowing||(o("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(R,e,t))}(this,e)),e.paused=!1,this},P.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},P.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(o("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){o("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<O.length;a++)e.on(O[a],this.emit.bind(this,O[a]));return this._read=function(t){o("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(P.prototype[Symbol.asyncIterator]=function(){return void 0===d&&(d=r(581)),d(this)}),Object.defineProperty(P.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(P.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(P.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),P._fromList=U,Object.defineProperty(P.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(P.from=function(e,t){return void 0===h&&(h=r(582)),h(P,e,t)})}).call(this,r(7),r(6))},function(e,t,r){"use strict";e.exports=r(20).EventEmitter},function(e,t,r){"use strict";(function(t){function r(e,t){i(e,t),n(e)}function n(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,o){var a=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?(o?o(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,t.nextTick(i,this,e)):t.nextTick(i,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!o&&e?a._writableState?a._writableState.errorEmitted?t.nextTick(n,a):(a._writableState.errorEmitted=!0,t.nextTick(r,a,e)):t.nextTick(r,a,e):o?(t.nextTick(n,a),o(e)):t.nextTick(n,a)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this,r(6))},function(e,t,r){"use strict";var n=r(55).codes.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,i){var o=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,i,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},function(e,t,r){"use strict";(function(t,n){function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(undefined),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var o;e.exports=P,P.WritableState=k;var a,s={deprecate:r(580)},u=r(243),c=r(1).Buffer,f=t.Uint8Array||function(){},l=r(244),d=r(245).getHighWaterMark,h=r(55).codes,p=h.ERR_INVALID_ARG_TYPE,b=h.ERR_METHOD_NOT_IMPLEMENTED,y=h.ERR_MULTIPLE_CALLBACK,g=h.ERR_STREAM_CANNOT_PIPE,m=h.ERR_STREAM_DESTROYED,v=h.ERR_STREAM_NULL_VALUES,w=h.ERR_STREAM_WRITE_AFTER_END,_=h.ERR_UNKNOWN_ENCODING,x=l.errorOrDestroy;function O(){}function k(e,t,a){o=o||r(56),e=e||{},"boolean"!=typeof a&&(a=t instanceof o),this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,i=r.sync,o=r.writecb;if("function"!=typeof o)throw new y;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,i,o){--t.pendingcb,r?(n.nextTick(o,i),n.nextTick(T,e,t),e._writableState.errorEmitted=!0,x(e,i)):(o(i),e._writableState.errorEmitted=!0,x(e,i),T(e,t))}(e,r,i,t,o);else{var a=M(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||E(e,r),i?n.nextTick(A,e,r,a,o):A(e,r,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function P(e){var t=this instanceof(o=o||r(56));if(!t&&!a.call(P,this))return new P(e);this._writableState=new k(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function S(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new m("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function A(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),T(e,t)}function E(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,o=new Array(n),a=t.corkedRequestsFree;a.entry=r;for(var s=0,u=!0;r;)o[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;o.allBuffers=u,S(e,t,!0,t.length,o,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,f=r.encoding,l=r.callback;if(S(e,t,!1,t.objectMode?1:c.length,c,f,l),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function M(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function j(e,t){e._final((function(r){t.pendingcb--,r&&x(e,r),t.prefinished=!0,e.emit("prefinish"),T(e,t)}))}function T(e,t){var r=M(t);if(r&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,n.nextTick(j,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return r}r(10)(P,u),k.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(k.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(a=Function.prototype[Symbol.hasInstance],Object.defineProperty(P,Symbol.hasInstance,{value:function(e){return!!a.call(this,e)||this===P&&e&&e._writableState instanceof k}})):a=function(e){return e instanceof this},P.prototype.pipe=function(){x(this,new g)},P.prototype.write=function(e,t,r){var i,o=this._writableState,a=!1,s=!o.objectMode&&(i=e,c.isBuffer(i)||i instanceof f);return s&&!c.isBuffer(e)&&(e=function(e){return c.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof r&&(r=O),o.ending?function(e,t){var r=new w;x(e,r),n.nextTick(t,r)}(this,r):(s||function(e,t,r,i){var o;return null===r?o=new v:"string"==typeof r||t.objectMode||(o=new p("chunk",["string","Buffer"],r)),!o||(x(e,o),n.nextTick(i,o),!1)}(this,o,e,r))&&(o.pendingcb++,a=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=c.from(t,r)),t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var f=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},f?f.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else S(e,t,!1,s,n,i,o);return u}(this,o,s,e,t,r)),a},P.prototype.cork=function(){this._writableState.corked++},P.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||E(this,e))},P.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new _(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(P.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(P.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),P.prototype._write=function(e,t,r){r(new b("_write()"))},P.prototype._writev=null,P.prototype.end=function(e,t,r){var i=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,r){t.ending=!0,T(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,i,r),this},Object.defineProperty(P.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),P.prototype.destroy=l.destroy,P.prototype._undestroy=l.undestroy,P.prototype._destroy=function(e,t){t(e)}}).call(this,r(7),r(6))},function(e,t,r){"use strict";e.exports=f;var n=r(55).codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(56);function c(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function f(e){if(!(this instanceof f))return new f(e);u.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",l)}function l(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush((function(t,r){d(e,t,r)}))}function d(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}r(10)(f,u),f.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},f.prototype._transform=function(e,t,r){r(new i("_transform()"))},f.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},f.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},f.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,(function(e){t(e)}))}},function(e,t,r){"use strict";var n=r(24).Buffer,i=r(124).Transform;function o(e){i.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(10)(o,i),o.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)},o.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},o.prototype.update=function(e,t){if(function(e,t){if(!n.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer")}(e),this._finalized)throw new Error("Digest already called");n.isBuffer(e)||(e=n.from(e,t));for(var r=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)r[o++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)r[this._blockOffset++]=e[i++];for(var a=0,s=8*e.length;s>0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=o},function(e,t,r){"use strict";var n=r(10),i=r(57),o=r(24).Buffer,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=new Array(64);function u(){this.init(),this._w=s,i.call(this,64,56)}function c(e,t,r){return r^e&(t^r)}function f(e,t,r){return e&t|r&(e|t)}function l(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function d(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function h(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}n(u,i),u.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,p=0|this._f,b=0|this._g,y=0|this._h,g=0;g<16;++g)r[g]=e.readInt32BE(4*g);for(;g<64;++g)r[g]=0|(((t=r[g-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[g-7]+h(r[g-15])+r[g-16];for(var m=0;m<64;++m){var v=y+d(u)+c(u,p,b)+a[m]+r[m]|0,w=l(n)+f(n,i,o)|0;y=b,b=p,p=u,u=s+v|0,s=o,o=i,i=n,n=v+w|0}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0,this._f=p+this._f|0,this._g=b+this._g|0,this._h=y+this._h|0},u.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=u},function(e,t,r){"use strict";var n=r(10),i=r(57),o=r(24).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function u(){this.init(),this._w=s,i.call(this,128,112)}function c(e,t,r){return r^e&(t^r)}function f(e,t,r){return e&t|r&(e|t)}function l(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function d(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function b(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function y(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function g(e,t){return e>>>0<t>>>0?1:0}n(u,i),u.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},u.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,u=0|this._fh,m=0|this._gh,v=0|this._hh,w=0|this._al,_=0|this._bl,x=0|this._cl,O=0|this._dl,k=0|this._el,P=0|this._fl,S=0|this._gl,A=0|this._hl,E=0;E<32;E+=2)t[E]=e.readInt32BE(4*E),t[E+1]=e.readInt32BE(4*E+4);for(;E<160;E+=2){var M=t[E-30],j=t[E-30+1],T=h(M,j),B=p(j,M),I=b(M=t[E-4],j=t[E-4+1]),N=y(j,M),R=t[E-14],C=t[E-14+1],U=t[E-32],L=t[E-32+1],D=B+C|0,H=T+R+g(D,B)|0;H=(H=H+I+g(D=D+N|0,N)|0)+U+g(D=D+L|0,L)|0,t[E]=H,t[E+1]=D}for(var F=0;F<160;F+=2){H=t[F],D=t[F+1];var V=f(r,n,i),z=f(w,_,x),q=l(r,w),K=l(w,r),W=d(s,k),G=d(k,s),X=a[F],Z=a[F+1],J=c(s,u,m),Y=c(k,P,S),Q=A+G|0,$=v+W+g(Q,A)|0;$=($=($=$+J+g(Q=Q+Y|0,Y)|0)+X+g(Q=Q+Z|0,Z)|0)+H+g(Q=Q+D|0,D)|0;var ee=K+z|0,te=q+V+g(ee,K)|0;v=m,A=S,m=u,S=P,u=s,P=k,s=o+$+g(k=O+Q|0,O)|0,o=i,O=x,i=n,x=_,n=r,_=w,r=$+te+g(w=Q+ee|0,Q)|0}this._al=this._al+w|0,this._bl=this._bl+_|0,this._cl=this._cl+x|0,this._dl=this._dl+O|0,this._el=this._el+k|0,this._fl=this._fl+P|0,this._gl=this._gl+S|0,this._hl=this._hl+A|0,this._ah=this._ah+r+g(this._al,w)|0,this._bh=this._bh+n+g(this._bl,_)|0,this._ch=this._ch+i+g(this._cl,x)|0,this._dh=this._dh+o+g(this._dl,O)|0,this._eh=this._eh+s+g(this._el,k)|0,this._fh=this._fh+u+g(this._fl,P)|0,this._gh=this._gh+m+g(this._gl,S)|0,this._hh=this._hh+v+g(this._hl,A)|0},u.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=u},function(e,t,r){"use strict";r(616);var n=function(e,t){return parseInt(e.slice(2*t+2,2*t+4),16)},i=function(e){return(e.length-2)/2},o=function(e){for(var t=[],r=2,n=e.length;r<n;r+=2)t.push(parseInt(e.slice(r,r+2),16));return t},a=function(e){for(var t="0x",r=0,n=e.length;r<n;++r){var i=e[r];t+=(i<16?"0":"")+i.toString(16)}return t};e.exports={random:function(e){var t=void 0;t="undefined"!=typeof window&&window.crypto&&window.crypto.getRandomValues?window.crypto.getRandomValues(new Uint8Array(e)):r(83).randomBytes(e);for(var n="0x",i=0;i<e;++i)n+=("00"+t[i].toString(16)).slice(-2);return n},length:i,concat:function(e,t){return e.concat(t.slice(2))},flatten:function(e){return"0x"+e.reduce((function(e,t){return e+t.slice(2)}),"")},slice:function(e,t,r){return"0x"+r.slice(2*e+2,2*t+2)},reverse:function(e){for(var t="0x",r=0,n=i(e);r<n;++r)t+=e.slice(2*(n-r),2*(n-r+1));return t},pad:function e(t,r){return r.length===2*t+2?r:e(t,"0x0"+r.slice(2))},padRight:function e(t,r){return r.length===2*t+2?r:e(t,r+"0")},fromAscii:function(e){for(var t="0x",r=0;r<e.length;++r)t+=("00"+e.charCodeAt(r).toString(16)).slice(-2);return t},toAscii:function(e){for(var t="",r=2;r<e.length;r+=2)t+=String.fromCharCode(parseInt(e.slice(r,r+2),16));return t},fromString:function(e){for(var t=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},r="0x",n=0;n!=e.length;n++){var i=e.charCodeAt(n);if(i<128)r+=t(i);else{if(i<2048)r+=t(i>>6|192);else{if(i>55295&&i<56320){if(++n==e.length)return null;var o=e.charCodeAt(n);if(o<56320||o>57343)return null;r+=t((i=65536+((1023&i)<<10)+(1023&o))>>18|240),r+=t(i>>12&63|128)}else r+=t(i>>12|224);r+=t(i>>6&63|128)}r+=t(63&i|128)}}return r},toString:function(e){for(var t="",r=0,o=i(e);r<o;){var a=n(e,r++);if(a>127){if(a>191&&a<224){if(r>=o)return null;a=(31&a)<<6|63&n(e,r)}else if(a>223&&a<240){if(r+1>=o)return null;a=(15&a)<<12|(63&n(e,r))<<6|63&n(e,++r)}else{if(!(a>239&&a<248))return null;if(r+2>=o)return null;a=(7&a)<<18|(63&n(e,r))<<12|(63&n(e,++r))<<6|63&n(e,++r)}++r}if(a<=65535)t+=String.fromCharCode(a);else{if(!(a<=1114111))return null;a-=65536,t+=String.fromCharCode(a>>10|55296),t+=String.fromCharCode(1023&a|56320)}}return t},fromNumber:function(e){var t=e.toString(16);return t.length%2==0?"0x"+t:"0x0"+t},toNumber:function(e){return parseInt(e.slice(2),16)},fromNat:function(e){return"0x0"===e?"0x":e.length%2==0?e:"0x0"+e.slice(2)},toNat:function(e){return"0"===e[2]?"0x"+e.slice(3):e},fromArray:a,toArray:o,fromUint8Array:function(e){return a([].slice.call(e,0))},toUint8Array:function(e){return new Uint8Array(o(e))}}},function(e,t,r){"use strict";var n=r(253).version,i=r(34),o=r(375),a=r(81),s=r(193),u=r(601),c=r(602),f=r(17),l=function(){var e=this;i.packageInit(this,arguments),this.version=n,this.utils=f,this.eth=new o(this),this.shh=new u(this),this.bzz=new c(this);var t=this.setProvider;this.setProvider=function(r,n){return t.apply(e,arguments),e.eth.setRequestManager(e._requestManager),e.shh.setRequestManager(e._requestManager),e.bzz.setProvider(r),!0}};l.version=n,l.utils=f,l.modules={Eth:o,Net:a,Personal:s,Shh:u,Bzz:c},i.addProviders(l),e.exports=l},function(e){e.exports=JSON.parse('{"name":"web3","version":"1.8.1","description":"Ethereum JavaScript API","repository":"https://github.com/ethereum/web3.js","license":"LGPL-3.0","engines":{"node":">=8.0.0"},"main":"lib/index.js","browser":"dist/web3.min.js","bugs":{"url":"https://github.com/ethereum/web3.js/issues"},"keywords":["Ethereum","JavaScript","API"],"author":"ethereum.org","types":"types/index.d.ts","scripts":{"compile":"tsc -b tsconfig.json","dtslint":"dtslint --localTs ../../node_modules/typescript/lib types","postinstall":"echo \\"Web3.js 4.x alpha has been released for early testing and feedback. Checkout doc at https://docs.web3js.org/ \\""},"authors":[{"name":"Fabian Vogelsteller","email":"fabian@ethereum.org","homepage":"http://frozeman.de"},{"name":"Marek Kotewicz","email":"marek@parity.io","url":"https://github.com/debris"},{"name":"Marian Oancea","url":"https://github.com/cubedro"},{"name":"Gav Wood","email":"g@parity.io","homepage":"http://gavwood.com"},{"name":"Jeffery Wilcke","email":"jeffrey.wilcke@ethereum.org","url":"https://github.com/obscuren"}],"dependencies":{"web3-bzz":"1.8.1","web3-core":"1.8.1","web3-eth":"1.8.1","web3-eth-personal":"1.8.1","web3-net":"1.8.1","web3-shh":"1.8.1","web3-utils":"1.8.1"},"devDependencies":{"@types/node":"^12.12.6","dtslint":"^3.4.1","typescript":"^3.9.5","web3-core-helpers":"1.8.1"}}')},function(e,t,r){"use strict";var n=r(0)(r(2)),i=r(127).callbackify,o=r(12).errors,a=r(167),s=r(334),u=r(335),c=function e(t,r){this.provider=null,this.providers=e.providers,this.setProvider(t,r),this.subscriptions=new Map};c.givenProvider=u,c.providers={WebsocketProvider:r(336),HttpProvider:r(346),IpcProvider:r(354)},c.prototype.setProvider=function(e,t){var r=this;if(e&&"string"==typeof e&&this.providers)if(/^http(s)?:\/\//i.test(e))e=new this.providers.HttpProvider(e);else if(/^ws(s)?:\/\//i.test(e))e=new this.providers.WebsocketProvider(e);else if(e&&"object"===(0,n.default)(t)&&"function"==typeof t.connect)e=new this.providers.IpcProvider(e,t);else if(e)throw new Error("Can't autodetect provider for \""+e+'"');this.provider&&this.provider.connected&&this.clearSubscriptions(),this.provider=e||null,this.provider&&this.provider.on&&("function"==typeof e.request?this.provider.on("message",(function(e){if(e&&"eth_subscription"===e.type&&e.data){var t=e.data;t.subscription&&r.subscriptions.has(t.subscription)&&r.subscriptions.get(t.subscription).callback(null,t.result)}})):this.provider.on("data",(function(e,t){(e=e||t).method&&e.params&&e.params.subscription&&r.subscriptions.has(e.params.subscription)&&r.subscriptions.get(e.params.subscription).callback(null,e.params.result)})),this.provider.on("connect",(function(){r.subscriptions.forEach((function(e){e.subscription.resubscribe()}))})),this.provider.on("error",(function(e){r.subscriptions.forEach((function(t){t.callback(e)}))})),this.provider.on("disconnect",(function(e){r._isCleanCloseEvent(e)&&!r._isIpcCloseError(e)||(r.subscriptions.forEach((function(t){t.callback(o.ConnectionCloseError(e)),r.subscriptions.delete(t.subscription.id)})),r.provider&&r.provider.emit&&r.provider.emit("error",o.ConnectionCloseError(e))),r.provider&&r.provider.emit&&r.provider.emit("end",e)})))},c.prototype.send=function(e,t){if(t=t||function(){},!this.provider)return t(o.InvalidProvider());var r=e.method,n=e.params,s=a.toPayload(r,n),u=this._jsonrpcResultCallback(t,s);if(this.provider.request)i(this.provider.request.bind(this.provider))({method:r,params:n},t);else if(this.provider.sendAsync)this.provider.sendAsync(s,u);else{if(!this.provider.send)throw new Error("Provider does not have a request or send method to use.");this.provider.send(s,u)}},c.prototype.sendBatch=function(e,t){if(!this.provider)return t(o.InvalidProvider());var r=a.toBatchPayload(e);this.provider[this.provider.sendAsync?"sendAsync":"send"](r,(function(e,r){return e?t(e):Array.isArray(r)?void t(null,r):t(o.InvalidResponse(r))}))},c.prototype.addSubscription=function(e,t){if(!this.provider.on)throw new Error("The provider doesn't support subscriptions: "+this.provider.constructor.name);this.subscriptions.set(e.id,{callback:t,subscription:e})},c.prototype.removeSubscription=function(e,t){if(this.subscriptions.has(e)){var r=this.subscriptions.get(e).subscription.options.type;return this.subscriptions.delete(e),void this.send({method:r+"_unsubscribe",params:[e]},t)}"function"==typeof t&&t(null)},c.prototype.clearSubscriptions=function(e){try{var t=this;return this.subscriptions.size>0&&this.subscriptions.forEach((function(r,n){e&&"syncing"===r.name||t.removeSubscription(n)})),this.provider.reset&&this.provider.reset(),!0}catch(e){throw new Error("Error while clearing subscriptions: ".concat(e))}},c.prototype._isCleanCloseEvent=function(e){return"object"===(0,n.default)(e)&&([1e3].includes(e.code)||!0===e.wasClean)},c.prototype._isIpcCloseError=function(e){return"boolean"==typeof e&&e},c.prototype._jsonrpcResultCallback=function(e,t){return function(r,n){return n&&n.id&&t.id!==n.id?e(new Error("Wrong response id ".concat(n.id," (expected: ").concat(t.id,") in ").concat(JSON.stringify(t)))):r?e(r):n&&n.error?e(o.ErrorResponse(n)):a.isValidResponse(n)?void e(null,n.result):e(o.InvalidResponse(n))}},e.exports={Manager:c,BatchManager:s}},function(e,t,r){"use strict";var n=r(0)(r(2));e.exports=function(e){return e&&"object"===(0,n.default)(e)&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},function(e,t,r){"use strict";var n=r(0)(r(2));e.exports={ErrorResponse:function(e){var t=e&&e.error&&e.error.message?e.error.message:JSON.stringify(e),r=e.error&&e.error.data?e.error.data:null,n=new Error("Returned error: "+t);return n.data=r,n},InvalidNumberOfParams:function(e,t,r){return new Error('Invalid number of parameters for "'+r+'". Got '+e+" expected "+t+"!")},InvalidConnection:function(e,t){return this.ConnectionError("CONNECTION ERROR: Couldn't connect to node "+e+".",t)},InvalidProvider:function(){return new Error("Provider not set or invalid")},InvalidResponse:function(e){var t=e&&e.error&&e.error.message?e.error.message:"Invalid JSON RPC response: "+JSON.stringify(e);return new Error(t)},ConnectionTimeout:function(e){return new Error("CONNECTION TIMEOUT: timeout of "+e+" ms achived")},ConnectionNotOpenError:function(e){return this.ConnectionError("connection not open on send()",e)},ConnectionCloseError:function(e){return"object"===(0,n.default)(e)&&e.code&&e.reason?this.ConnectionError("CONNECTION ERROR: The connection got closed with the close code `"+e.code+"` and the following reason string `"+e.reason+"`",e):new Error("CONNECTION ERROR: The connection closed unexpectedly")},MaxAttemptsReachedOnReconnectingError:function(){return new Error("Maximum number of reconnect attempts reached!")},PendingRequestsOnReconnectingError:function(){return new Error("CONNECTION ERROR: Provider started to reconnect before the response got received!")},ConnectionError:function(e,t){var r=new Error(e);return t&&(r.code=t.code,r.reason=t.reason),r},RevertInstructionError:function(e,t){var r=new Error("Your request got reverted with the following reason string: "+e);return r.reason=e,r.signature=t,r},TransactionRevertInstructionError:function(e,t,r){var n=new Error("Transaction has been reverted by the EVM:\n"+JSON.stringify(r,null,2));return n.reason=e,n.signature=t,n.receipt=r,n},TransactionError:function(e,t){var r=new Error(e);return r.receipt=t,r},NoContractAddressFoundError:function(e){return this.TransactionError("The transaction receipt didn't contain a contract address.",e)},ContractCodeNotStoredError:function(e){return this.TransactionError("The contract code couldn't be stored, please check your gas limit.",e)},TransactionRevertedWithoutReasonError:function(e){return this.TransactionError("Transaction has been reverted by the EVM:\n"+JSON.stringify(e,null,2),e)},TransactionOutOfGasError:function(e){return this.TransactionError("Transaction ran out of gas. Please provide more gas:\n"+JSON.stringify(e,null,2),e)},ResolverMethodMissingError:function(e,t){return new Error("The resolver at "+e+'does not implement requested method: "'+t+'".')},ContractMissingABIError:function(){return new Error("You must provide the json interface of the contract when instantiating a contract object.")},ContractOnceRequiresCallbackError:function(){return new Error("Once requires a callback as the second parameter.")},ContractEventDoesNotExistError:function(e){return new Error('Event "'+e+"\" doesn't exist in this contract.")},ContractReservedEventError:function(e){return new Error('The event "'+e+"\" is a reserved event name, you can't use it.")},ContractMissingDeployDataError:function(){return new Error('No "data" specified in neither the given options, nor the default options.')},ContractNoAddressDefinedError:function(){return new Error("This contract object doesn't have address set yet, please set an address first.")},ContractNoFromAddressDefinedError:function(){return new Error('No "from" address specified in neither the given options, nor the default options.')}}},function(e,t,r){"use strict";var n=r(0),i=n(r(58)),o=n(r(2));function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var u=r(17),c=r(166),f=function(e){return u.toBN(e).toString(10)},l=function(e){if(void 0!==e)return function(e){return["latest","pending","earliest","finalized","safe"].includes(e)}(e)?e:"genesis"===e?"0x0":u.isHexStrict(e)?"string"==typeof e?e.toLowerCase():e:u.numberToHex(e)},d=function(e){if(e.to&&(e.to=b(e.to)),e.data&&e.input)throw new Error('You can\'t have "data" and "input" as properties of transactions at the same time, please use either "data" or "input" instead.');if(!e.data&&e.input&&(e.data=e.input,delete e.input),e.data&&!e.data.startsWith("0x")&&(e.data="0x"+e.data),e.data&&!u.isHex(e.data))throw new Error("The data field must be HEX encoded data.");return(e.gas||e.gasLimit)&&(e.gas=e.gas||e.gasLimit),(e.maxPriorityFeePerGas||e.maxFeePerGas)&&delete e.gasPrice,["gasPrice","gas","value","maxPriorityFeePerGas","maxFeePerGas","nonce"].filter((function(t){return void 0!==e[t]})).forEach((function(t){e[t]=u.numberToHex(e[t])})),e},h=function(e){return null!==e.blockNumber&&(e.blockNumber=u.hexToNumber(e.blockNumber)),null!==e.transactionIndex&&(e.transactionIndex=u.hexToNumber(e.transactionIndex)),e.nonce=u.hexToNumber(e.nonce),e.gas=u.hexToNumber(e.gas),e.gasPrice&&(e.gasPrice=f(e.gasPrice)),e.maxFeePerGas&&(e.maxFeePerGas=f(e.maxFeePerGas)),e.maxPriorityFeePerGas&&(e.maxPriorityFeePerGas=f(e.maxPriorityFeePerGas)),e.type&&(e.type=u.hexToNumber(e.type)),e.value=f(e.value),e.to&&u.isAddress(e.to)?e.to=u.toChecksumAddress(e.to):e.to=null,e.from&&(e.from=u.toChecksumAddress(e.from)),e},p=function(e){if("string"==typeof e.blockHash&&"string"==typeof e.transactionHash&&"string"==typeof e.logIndex){var t=u.sha3(e.blockHash.replace("0x","")+e.transactionHash.replace("0x","")+e.logIndex.replace("0x",""));e.id="log_"+t.replace("0x","").slice(0,8)}else e.id||(e.id=null);return null!==e.blockNumber&&(e.blockNumber=u.hexToNumber(e.blockNumber)),null!==e.transactionIndex&&(e.transactionIndex=u.hexToNumber(e.transactionIndex)),null!==e.logIndex&&(e.logIndex=u.hexToNumber(e.logIndex)),e.address&&(e.address=u.toChecksumAddress(e.address)),e},b=function(e){var t=new c(e);if(t.isValid()&&t.isDirect())return t.toAddress().toLowerCase();if(u.isAddress(e))return"0x"+e.toLowerCase().replace("0x","");throw new Error("Provided address ".concat(e," is invalid, the capitalization checksum test failed, or it's an indirect IBAN address which can't be converted."))};e.exports={inputDefaultBlockNumberFormatter:function(e){return l(this&&null==e?this.defaultBlock:e)},inputBlockNumberFormatter:l,inputCallFormatter:function(e){var t=(e=d(e)).from||(this?this.defaultAccount:null);return t&&(e.from=b(t)),e},inputTransactionFormatter:function(e){if("number"!=typeof(e=d(e)).from&&(!e.from||"object"!==(0,o.default)(e.from))){if(e.from=e.from||(this?this.defaultAccount:null),!e.from&&"number"!=typeof e.from)throw new Error('The send transactions "from" field must be defined!');e.from=b(e.from)}return e},inputAddressFormatter:b,inputPostFormatter:function(e){return e.ttl&&(e.ttl=u.numberToHex(e.ttl)),e.workToProve&&(e.workToProve=u.numberToHex(e.workToProve)),e.priority&&(e.priority=u.numberToHex(e.priority)),Array.isArray(e.topics)||(e.topics=e.topics?[e.topics]:[]),e.topics=e.topics.map((function(e){return 0===e.indexOf("0x")?e:u.fromUtf8(e)})),e},inputLogFormatter:function(e){var t=function(e){return null==e?null:0===(e=String(e)).indexOf("0x")?e:u.fromUtf8(e)};return void 0===e&&(e={}),void 0===e.fromBlock&&(e=s(s({},e),{},{fromBlock:"latest"})),(e.fromBlock||0===e.fromBlock)&&(e.fromBlock=l(e.fromBlock)),(e.toBlock||0===e.toBlock)&&(e.toBlock=l(e.toBlock)),e.topics=e.topics||[],e.topics=e.topics.map((function(e){return Array.isArray(e)?e.map(t):t(e)})),t=null,e.address&&(e.address=Array.isArray(e.address)?e.address.map((function(e){return b(e)})):b(e.address)),e},inputSignFormatter:function(e){return u.isHexStrict(e)?e:u.utf8ToHex(e)},inputStorageKeysFormatter:function(e){return e.map(u.numberToHex)},outputProofFormatter:function(e){return e.address=u.toChecksumAddress(e.address),e.nonce=u.hexToNumberString(e.nonce),e.balance=u.hexToNumberString(e.balance),e},outputBigNumberFormatter:f,outputTransactionFormatter:h,outputTransactionReceiptFormatter:function(e){if("object"!==(0,o.default)(e))throw new Error("Received receipt is invalid: "+e);return this.hexFormat||(null!==e.blockNumber&&(e.blockNumber=u.hexToNumber(e.blockNumber)),null!==e.transactionIndex&&(e.transactionIndex=u.hexToNumber(e.transactionIndex)),e.cumulativeGasUsed=u.hexToNumber(e.cumulativeGasUsed),e.gasUsed=u.hexToNumber(e.gasUsed),e.effectiveGasPrice&&(e.effectiveGasPrice=u.hexToNumber(e.effectiveGasPrice))),Array.isArray(e.logs)&&(e.logs=e.logs.map(p)),e.contractAddress&&(e.contractAddress=u.toChecksumAddress(e.contractAddress)),void 0!==e.status&&null!==e.status&&(e.status=Boolean(parseInt(e.status))),e},outputBlockFormatter:function(e){return e.gasLimit=u.hexToNumber(e.gasLimit),e.gasUsed=u.hexToNumber(e.gasUsed),e.size=u.hexToNumber(e.size),e.timestamp=u.hexToNumber(e.timestamp),null!==e.number&&(e.number=u.hexToNumber(e.number)),e.difficulty&&(e.difficulty=f(e.difficulty)),e.totalDifficulty&&(e.totalDifficulty=f(e.totalDifficulty)),Array.isArray(e.transactions)&&e.transactions.forEach((function(e){if("string"!=typeof e)return h(e)})),e.miner&&(e.miner=u.toChecksumAddress(e.miner)),e.baseFeePerGas&&(e.baseFeePerGas=u.hexToNumber(e.baseFeePerGas)),e},outputLogFormatter:p,outputPostFormatter:function(e){return e.expiry=u.hexToNumber(e.expiry),e.sent=u.hexToNumber(e.sent),e.ttl=u.hexToNumber(e.ttl),e.workProved=u.hexToNumber(e.workProved),e.topics||(e.topics=[]),e.topics=e.topics.map((function(e){return u.toUtf8(e)})),e},outputSyncingFormatter:function(e){return e.startingBlock=u.hexToNumber(e.startingBlock),e.currentBlock=u.hexToNumber(e.currentBlock),e.highestBlock=u.hexToNumber(e.highestBlock),e.knownStates&&(e.knownStates=u.hexToNumber(e.knownStates),e.pulledStates=u.hexToNumber(e.pulledStates)),e}}},function(e,t,r){"use strict";var n=r(0)(r(2)),i=r(4),o=r(128),a=new i(0),s=new i(-1),u={noether:"0",wei:"1",kwei:"1000",Kwei:"1000",babbage:"1000",femtoether:"1000",mwei:"1000000",Mwei:"1000000",lovelace:"1000000",picoether:"1000000",gwei:"1000000000",Gwei:"1000000000",shannon:"1000000000",nanoether:"1000000000",nano:"1000000000",szabo:"1000000000000",microether:"1000000000000",micro:"1000000000000",finney:"1000000000000000",milliether:"1000000000000000",milli:"1000000000000000",ether:"1000000000000000000",kether:"1000000000000000000000",grand:"1000000000000000000000",mether:"1000000000000000000000000",gether:"1000000000000000000000000000",tether:"1000000000000000000000000000000"};function c(e){var t=e?e.toLowerCase():"ether",r=u[t];if("string"!=typeof r)throw new Error("[ethjs-unit] the unit provided "+e+" doesn't exists, please use the one of the following units "+JSON.stringify(u,null,2));return new i(r,10)}function f(e){if("string"==typeof e){if(!e.match(/^-?[0-9.]+$/))throw new Error("while converting number to string, invalid number value '"+e+"', should be a number matching (^-?[0-9.]+).");return e}if("number"==typeof e)return String(e);if("object"===(0,n.default)(e)&&e.toString&&(e.toTwos||e.dividedToIntegerBy))return e.toPrecision?String(e.toPrecision()):e.toString(10);throw new Error("while converting number to string, invalid number value '"+e+"' type "+(0,n.default)(e)+".")}e.exports={unitMap:u,numberToString:f,getValueOfUnit:c,fromWei:function(e,t,r){var n=o(e),i=n.lt(a),f=c(t),l=u[t].length-1||1,d=r||{};i&&(n=n.mul(s));for(var h=n.mod(f).toString(10);h.length<l;)h="0"+h;d.pad||(h=h.match(/^([0-9]*[1-9]|0)(0*)/)[1]);var p=n.div(f).toString(10);d.commify&&(p=p.replace(/\B(?=(\d{3})+(?!\d))/g,","));var b=p+("0"==h?"":"."+h);return i&&(b="-"+b),b},toWei:function(e,t){var r=f(e),n=c(t),o=u[t].length-1||1,a="-"===r.substring(0,1);if(a&&(r=r.substring(1)),"."===r)throw new Error("[ethjs-unit] while converting number "+e+" to wei, invalid value");var l=r.split(".");if(l.length>2)throw new Error("[ethjs-unit] while converting number "+e+" to wei, too many decimal points");var d=l[0],h=l[1];if(d||(d="0"),h||(h="0"),h.length>o)throw new Error("[ethjs-unit] while converting number "+e+" to wei, too many decimal places");for(;h.length<o;)h+="0";d=new i(d),h=new i(h);var p=d.mul(n).add(h);return a&&(p=p.mul(s)),new i(p.toString(10),10)}}},function(e,t){},function(e,t,r){"use strict";var n=r(261);e.exports=function(e){return"string"!=typeof e?e:n(e)?e.slice(2):e}},function(e,t,r){"use strict";var n=r(0)(r(2));e.exports=function(e){if("string"!=typeof e)throw new Error("[is-hex-prefixed] value must be type 'string', is currently type "+(0,n.default)(e)+", while checking isHexPrefixed.");return"0x"===e.slice(0,2)}},function(e,t,r){"use strict";t.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,n=u(e),a=n[0],s=n[1],c=new o(function(e,t,r){return 3*(t+r)/4-r}(0,a,s)),f=0,l=s>0?a-4:a;for(r=0;r<l;r+=4)t=i[e.charCodeAt(r)]<<18|i[e.charCodeAt(r+1)]<<12|i[e.charCodeAt(r+2)]<<6|i[e.charCodeAt(r+3)],c[f++]=t>>16&255,c[f++]=t>>8&255,c[f++]=255&t;return 2===s&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,c[f++]=255&t),1===s&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,c[f++]=t>>8&255,c[f++]=255&t),c},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=0,s=r-i;a<s;a+=16383)o.push(c(e,a,a+16383>s?s:a+16383));return 1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),o.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)n[s]=a[s],i[a.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,r){for(var i,o,a=[],s=t;s<r;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t,r){"use strict";t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,c=u>>1,f=-7,l=r?i-1:0,d=r?-1:1,h=e[t+l];for(l+=d,o=h&(1<<-f)-1,h>>=-f,f+=s;f>0;o=256*o+e[t+l],l+=d,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=n;f>0;a=256*a+e[t+l],l+=d,f-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),o-=c}return(h?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,u,c=8*o-i-1,f=(1<<c)-1,l=f>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:o-1,p=n?1:-1,b=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=f):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+l>=1?d/u:d*Math.pow(2,1-l))*u>=2&&(a++,u/=2),a+l>=f?(s=0,a=f):a+l>=1?(s=(t*u-1)*Math.pow(2,i),a+=l):(s=t*Math.pow(2,l-1)*Math.pow(2,i),a=0));i>=8;e[r+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[r+h]=255&a,h+=p,a/=256,c-=8);e[r+h-p]|=128*b}},function(e,t,r){"use strict";e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";!function(e){var t,r,n,i=String.fromCharCode;function o(e){for(var t,r,n=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(r=e.charCodeAt(i++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--):n.push(t);return n}function a(e){if(e>=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}function s(e,t){return i(e>>t&63|128)}function u(e){if(0==(4294967168&e))return i(e);var t="";return 0==(4294965248&e)?t=i(e>>6&31|192):0==(4294901760&e)?(a(e),t=i(e>>12&15|224),t+=s(e,6)):0==(4292870144&e)&&(t=i(e>>18&7|240),t+=s(e,12),t+=s(e,6)),t+i(63&e|128)}function c(){if(n>=r)throw Error("Invalid byte index");var e=255&t[n];if(n++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function f(){var e,i;if(n>r)throw Error("Invalid byte index");if(n==r)return!1;if(e=255&t[n],n++,0==(128&e))return e;if(192==(224&e)){if((i=(31&e)<<6|c())>=128)return i;throw Error("Invalid continuation byte")}if(224==(240&e)){if((i=(15&e)<<12|c()<<6|c())>=2048)return a(i),i;throw Error("Invalid continuation byte")}if(240==(248&e)&&(i=(7&e)<<18|c()<<12|c()<<6|c())>=65536&&i<=1114111)return i;throw Error("Invalid UTF-8 detected")}e.version="3.0.0",e.encode=function(e){for(var t=o(e),r=t.length,n=-1,i="";++n<r;)i+=u(t[n]);return i},e.decode=function(e){t=o(e),r=t.length,n=0;for(var a,s=[];!1!==(a=f());)s.push(a);return function(e){for(var t,r=e.length,n=-1,o="";++n<r;)(t=e[n])>65535&&(o+=i((t-=65536)>>>10&1023|55296),t=56320|1023&t),o+=i(t);return o}(s)}}(t)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.getLength=t.decode=t.encode=void 0;var n=function(e){return e&&e.__esModule?e:{default:e}}(r(4));function i(e,t){if("0"===e[0]&&"0"===e[1])throw new Error("invalid RLP: extra zeros");return parseInt(e,t)}function o(t,r){if(t<56)return e.from([t+r]);var n=s(t),i=s(r+55+n.length/2);return e.from(i+n,"hex")}function a(e){return"0x"===e.slice(0,2)}function s(e){if(e<0)throw new Error("Invalid integer as argument, must be unsigned!");var t=e.toString(16);return t.length%2?"0"+t:t}function u(t){if(!e.isBuffer(t)){if("string"==typeof t)return a(t)?e.from((i="string"!=typeof(o=t)?o:a(o)?o.slice(2):o).length%2?"0"+i:i,"hex"):e.from(t);if("number"==typeof t||"bigint"==typeof t)return t?(r=s(t),e.from(r,"hex")):e.from([]);if(null==t)return e.from([]);if(t instanceof Uint8Array)return e.from(t);if(n.default.isBN(t))return e.from(t.toArray());throw new Error("invalid type")}var r,i,o;return t}t.encode=function t(r){if(Array.isArray(r)){for(var n=[],i=0;i<r.length;i++)n.push(t(r[i]));var a=e.concat(n);return e.concat([o(a.length,192),a])}var s=u(r);return 1===s.length&&s[0]<128?s:e.concat([o(s.length,128),s])},t.decode=function(t,r){if(void 0===r&&(r=!1),!t||0===t.length)return e.from([]);var n=function t(r){var n,o,a,s,u,c=[],f=r[0];if(f<=127)return{data:r.slice(0,1),remainder:r.slice(1)};if(f<=183){if(n=f-127,a=128===f?e.from([]):r.slice(1,n),2===n&&a[0]<128)throw new Error("invalid rlp encoding: byte must be less 0x80");return{data:a,remainder:r.slice(n)}}if(f<=191){if(o=f-182,r.length-1<o)throw new Error("invalid RLP: not enough bytes for string length");if((n=i(r.slice(1,o).toString("hex"),16))<=55)throw new Error("invalid RLP: expected string length to be greater than 55");if((a=r.slice(o,n+o)).length<n)throw new Error("invalid RLP: not enough bytes for string");return{data:a,remainder:r.slice(n+o)}}if(f<=247){for(n=f-191,s=r.slice(1,n);s.length;)u=t(s),c.push(u.data),s=u.remainder;return{data:c,remainder:r.slice(n)}}var l=(o=f-246)+(n=i(r.slice(1,o).toString("hex"),16));if(l>r.length)throw new Error("invalid rlp: total length is larger than the data");if(0===(s=r.slice(o,l)).length)throw new Error("invalid rlp, List has a invalid length");for(;s.length;)u=t(s),c.push(u.data),s=u.remainder;return{data:c,remainder:r.slice(l)}}(u(t));if(r)return n;if(0!==n.remainder.length)throw new Error("invalid remainder");return n.data},t.getLength=function(t){if(!t||0===t.length)return e.from([]);var r=u(t),n=r[0];if(n<=127)return r.length;if(n<=183)return n-127;if(n<=191)return n-182;if(n<=247)return n-191;var o=n-246;return o+i(r.slice(1,o).toString("hex"),16)}}).call(this,r(1).Buffer)},function(e,t,r){"use strict";function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 a,s=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var o="Impossible case. Please create issue.",a="The tweak was out of range or the resulted private key is invalid",s="The tweak was out of range or equal to zero",u="Public Key could not be parsed",c="Public Key serialization error",f="Signature could not be parsed";function l(e,t){if(!e)throw new Error(t)}function d(e,t,r){if(l(t instanceof Uint8Array,"Expected ".concat(e," to be an Uint8Array")),void 0!==r)if(Array.isArray(r)){var n=r.join(", "),i="Expected ".concat(e," to be an Uint8Array with length [").concat(n,"]");l(r.includes(t.length),i)}else{var o="Expected ".concat(e," to be an Uint8Array with length ").concat(r);l(t.length===r,o)}}function h(e){l("Boolean"===b(e),"Expected compressed to be a Boolean")}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return new Uint8Array(e)},t=arguments.length>1?arguments[1]:void 0;return"function"==typeof e&&(e=e(t)),d("output",e,t),e}function b(e){return Object.prototype.toString.call(e).slice(8,-1)}e.exports=function(e){return{contextRandomize:function(t){if(1===(l(null===t||t instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),null!==t&&d("seed",t,32),e.contextRandomize(t)))throw new Error("Unknow error on context randomization")},privateKeyVerify:function(t){return d("private key",t,32),0===e.privateKeyVerify(t)},privateKeyNegate:function(t){switch(d("private key",t,32),e.privateKeyNegate(t)){case 0:return t;case 1:throw new Error(o)}},privateKeyTweakAdd:function(t,r){switch(d("private key",t,32),d("tweak",r,32),e.privateKeyTweakAdd(t,r)){case 0:return t;case 1:throw new Error(a)}},privateKeyTweakMul:function(t,r){switch(d("private key",t,32),d("tweak",r,32),e.privateKeyTweakMul(t,r)){case 0:return t;case 1:throw new Error(s)}},publicKeyVerify:function(t){return d("public key",t,[33,65]),0===e.publicKeyVerify(t)},publicKeyCreate:function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;switch(d("private key",t,32),h(r),n=p(n,r?33:65),e.publicKeyCreate(n,t)){case 0:return n;case 1:throw new Error("Private Key is invalid");case 2:throw new Error(c)}},publicKeyConvert:function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;switch(d("public key",t,[33,65]),h(r),n=p(n,r?33:65),e.publicKeyConvert(n,t)){case 0:return n;case 1:throw new Error(u);case 2:throw new Error(c)}},publicKeyNegate:function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;switch(d("public key",t,[33,65]),h(r),n=p(n,r?33:65),e.publicKeyNegate(n,t)){case 0:return n;case 1:throw new Error(u);case 2:throw new Error(o);case 3:throw new Error(c)}},publicKeyCombine:function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2?arguments[2]:void 0;l(Array.isArray(t),"Expected public keys to be an Array"),l(t.length>0,"Expected public keys array will have more than zero items");var o,a=n(t);try{for(a.s();!(o=a.n()).done;)d("public key",o.value,[33,65])}catch(e){a.e(e)}finally{a.f()}switch(h(r),i=p(i,r?33:65),e.publicKeyCombine(i,t)){case 0:return i;case 1:throw new Error(u);case 2:throw new Error("The sum of the public keys is not valid");case 3:throw new Error(c)}},publicKeyTweakAdd:function(t,r){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3?arguments[3]:void 0;switch(d("public key",t,[33,65]),d("tweak",r,32),h(n),i=p(i,n?33:65),e.publicKeyTweakAdd(i,t,r)){case 0:return i;case 1:throw new Error(u);case 2:throw new Error(a)}},publicKeyTweakMul:function(t,r){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3?arguments[3]:void 0;switch(d("public key",t,[33,65]),d("tweak",r,32),h(n),i=p(i,n?33:65),e.publicKeyTweakMul(i,t,r)){case 0:return i;case 1:throw new Error(u);case 2:throw new Error(s)}},signatureNormalize:function(t){switch(d("signature",t,64),e.signatureNormalize(t)){case 0:return t;case 1:throw new Error(f)}},signatureExport:function(t,r){d("signature",t,64);var n={output:r=p(r,72),outputlen:72};switch(e.signatureExport(n,t)){case 0:return r.slice(0,n.outputlen);case 1:throw new Error(f);case 2:throw new Error(o)}},signatureImport:function(t,r){switch(d("signature",t),r=p(r,64),e.signatureImport(r,t)){case 0:return r;case 1:throw new Error(f);case 2:throw new Error(o)}},ecdsaSign:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;d("message",t,32),d("private key",r,32),l("Object"===b(n),"Expected options to be an Object"),void 0!==n.data&&d("options.data",n.data),void 0!==n.noncefn&&l("Function"===b(n.noncefn),"Expected options.noncefn to be a Function");var a={signature:i=p(i,64),recid:null};switch(e.ecdsaSign(a,t,r,n.data,n.noncefn)){case 0:return a;case 1:throw new Error("The nonce generation function failed, or the private key was invalid");case 2:throw new Error(o)}},ecdsaVerify:function(t,r,n){switch(d("signature",t,64),d("message",r,32),d("public key",n,[33,65]),e.ecdsaVerify(t,r,n)){case 0:return!0;case 3:return!1;case 1:throw new Error(f);case 2:throw new Error(u)}},ecdsaRecover:function(t,r,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=arguments.length>4?arguments[4]:void 0;switch(d("signature",t,64),l("Number"===b(r)&&r>=0&&r<=3,"Expected recovery id to be a Number within interval [0, 3]"),d("message",n,32),h(i),a=p(a,i?33:65),e.ecdsaRecover(a,t,r,n)){case 0:return a;case 1:throw new Error(f);case 2:throw new Error("Public key could not be recover");case 3:throw new Error(o)}},ecdh:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;switch(d("public key",t,[33,65]),d("private key",r,32),l("Object"===b(n),"Expected options to be an Object"),void 0!==n.data&&d("options.data",n.data),void 0!==n.hashfn?(l("Function"===b(n.hashfn),"Expected options.hashfn to be a Function"),void 0!==n.xbuf&&d("options.xbuf",n.xbuf,32),void 0!==n.ybuf&&d("options.ybuf",n.ybuf,32),d("output",i)):i=p(i,32),e.ecdh(i,t,r,n.data,n.hashfn,n.xbuf,n.ybuf)){case 0:return i;case 1:throw new Error(u);case 2:throw new Error("Scalar was invalid (zero or overflow)")}}}}},function(e,t,r){"use strict";var n=new(0,r(59).ec)("secp256k1"),i=n.curve,o=i.n.constructor;function a(e){var t=e[0];switch(t){case 2:case 3:return 33!==e.length?null:function(e,t){var r=new o(t);if(r.cmp(i.p)>=0)return null;var a=(r=r.toRed(i.red)).redSqr().redIMul(r).redIAdd(i.b).redSqrt();return 3===e!==a.isOdd()&&(a=a.redNeg()),n.keyPair({pub:{x:r,y:a}})}(t,e.subarray(1,33));case 4:case 6:case 7:return 65!==e.length?null:function(e,t,r){var a=new o(t),s=new o(r);if(a.cmp(i.p)>=0||s.cmp(i.p)>=0)return null;if(a=a.toRed(i.red),s=s.toRed(i.red),(6===e||7===e)&&s.isOdd()!==(7===e))return null;var u=a.redSqr().redIMul(a);return s.redSqr().redISub(u.redIAdd(i.b)).isZero()?n.keyPair({pub:{x:a,y:s}}):null}(t,e.subarray(1,33),e.subarray(33,65));default:return null}}function s(e,t){for(var r=t.encode(null,33===e.length),n=0;n<e.length;++n)e[n]=r[n]}e.exports={contextRandomize:function(){return 0},privateKeyVerify:function(e){var t=new o(e);return t.cmp(i.n)<0&&!t.isZero()?0:1},privateKeyNegate:function(e){var t=new o(e),r=i.n.sub(t).umod(i.n).toArrayLike(Uint8Array,"be",32);return e.set(r),0},privateKeyTweakAdd:function(e,t){var r=new o(t);if(r.cmp(i.n)>=0)return 1;if(r.iadd(new o(e)),r.cmp(i.n)>=0&&r.isub(i.n),r.isZero())return 1;var n=r.toArrayLike(Uint8Array,"be",32);return e.set(n),0},privateKeyTweakMul:function(e,t){var r=new o(t);if(r.cmp(i.n)>=0||r.isZero())return 1;r.imul(new o(e)),r.cmp(i.n)>=0&&(r=r.umod(i.n));var n=r.toArrayLike(Uint8Array,"be",32);return e.set(n),0},publicKeyVerify:function(e){return null===a(e)?1:0},publicKeyCreate:function(e,t){var r=new o(t);return r.cmp(i.n)>=0||r.isZero()?1:(s(e,n.keyFromPrivate(t).getPublic()),0)},publicKeyConvert:function(e,t){var r=a(t);return null===r?1:(s(e,r.getPublic()),0)},publicKeyNegate:function(e,t){var r=a(t);if(null===r)return 1;var n=r.getPublic();return n.y=n.y.redNeg(),s(e,n),0},publicKeyCombine:function(e,t){for(var r=new Array(t.length),n=0;n<t.length;++n)if(r[n]=a(t[n]),null===r[n])return 1;for(var i=r[0].getPublic(),o=1;o<r.length;++o)i=i.add(r[o].pub);return i.isInfinity()?2:(s(e,i),0)},publicKeyTweakAdd:function(e,t,r){var n=a(t);if(null===n)return 1;if((r=new o(r)).cmp(i.n)>=0)return 2;var u=n.getPublic().add(i.g.mul(r));return u.isInfinity()?2:(s(e,u),0)},publicKeyTweakMul:function(e,t,r){var n=a(t);return null===n?1:(r=new o(r)).cmp(i.n)>=0||r.isZero()?2:(s(e,n.getPublic().mul(r)),0)},signatureNormalize:function(e){var t=new o(e.subarray(0,32)),r=new o(e.subarray(32,64));return t.cmp(i.n)>=0||r.cmp(i.n)>=0?1:(1===r.cmp(n.nh)&&e.set(i.n.sub(r).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport:function(e,t){var r=t.subarray(0,32),n=t.subarray(32,64);if(new o(r).cmp(i.n)>=0)return 1;if(new o(n).cmp(i.n)>=0)return 1;var a=e.output,s=a.subarray(4,37);s[0]=0,s.set(r,1);for(var u=33,c=0;u>1&&0===s[c]&&!(128&s[c+1]);--u,++c);if(128&(s=s.subarray(c))[0])return 1;if(u>1&&0===s[0]&&!(128&s[1]))return 1;var f=a.subarray(39,72);f[0]=0,f.set(n,1);for(var l=33,d=0;l>1&&0===f[d]&&!(128&f[d+1]);--l,++d);return 128&(f=f.subarray(d))[0]||l>1&&0===f[0]&&!(128&f[1])?1:(e.outputlen=6+u+l,a[0]=48,a[1]=e.outputlen-2,a[2]=2,a[3]=s.length,a.set(s,4),a[4+u]=2,a[5+u]=f.length,a.set(f,6+u),0)},signatureImport:function(e,t){if(t.length<8)return 1;if(t.length>72)return 1;if(48!==t[0])return 1;if(t[1]!==t.length-2)return 1;if(2!==t[2])return 1;var r=t[3];if(0===r)return 1;if(5+r>=t.length)return 1;if(2!==t[4+r])return 1;var n=t[5+r];if(0===n)return 1;if(6+r+n!==t.length)return 1;if(128&t[4])return 1;if(r>1&&0===t[4]&&!(128&t[5]))return 1;if(128&t[r+6])return 1;if(n>1&&0===t[r+6]&&!(128&t[r+7]))return 1;var a=t.subarray(4,4+r);if(33===a.length&&0===a[0]&&(a=a.subarray(1)),a.length>32)return 1;var s=t.subarray(6+r);if(33===s.length&&0===s[0]&&(s=s.slice(1)),s.length>32)throw new Error("S length is too long");var u=new o(a);u.cmp(i.n)>=0&&(u=new o(0));var c=new o(t.subarray(6+r));return c.cmp(i.n)>=0&&(c=new o(0)),e.set(u.toArrayLike(Uint8Array,"be",32),0),e.set(c.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign:function(e,t,r,a,s){if(s){var u=s;s=function(e){var n=u(t,r,null,a,e);if(!(n instanceof Uint8Array&&32===n.length))throw new Error("This is the way");return new o(n)}}var c,f=new o(r);if(f.cmp(i.n)>=0||f.isZero())return 1;try{c=n.sign(t,r,{canonical:!0,k:s,pers:a})}catch(e){return 1}return e.signature.set(c.r.toArrayLike(Uint8Array,"be",32),0),e.signature.set(c.s.toArrayLike(Uint8Array,"be",32),32),e.recid=c.recoveryParam,0},ecdsaVerify:function(e,t,r){var s={r:e.subarray(0,32),s:e.subarray(32,64)},u=new o(s.r),c=new o(s.s);if(u.cmp(i.n)>=0||c.cmp(i.n)>=0)return 1;if(1===c.cmp(n.nh)||u.isZero()||c.isZero())return 3;var f=a(r);if(null===f)return 2;var l=f.getPublic();return n.verify(t,s,l)?0:3},ecdsaRecover:function(e,t,r,a){var u,c={r:t.slice(0,32),s:t.slice(32,64)},f=new o(c.r),l=new o(c.s);if(f.cmp(i.n)>=0||l.cmp(i.n)>=0)return 1;if(f.isZero()||l.isZero())return 2;try{u=n.recoverPubKey(a,c,r)}catch(e){return 2}return s(e,u),0},ecdh:function(e,t,r,s,u,c,f){var l=a(t);if(null===l)return 1;var d=new o(r);if(d.cmp(i.n)>=0||d.isZero())return 2;var h=l.getPublic().mul(d);if(void 0===u)for(var p=h.encode(null,!0),b=n.hash().update(p).digest(),y=0;y<32;++y)e[y]=b[y];else{c||(c=new Uint8Array(32));for(var g=h.getX().toArray("be",32),m=0;m<32;++m)c[m]=g[m];f||(f=new Uint8Array(32));for(var v=h.getY().toArray("be",32),w=0;w<32;++w)f[w]=v[w];var _=u(c,f,s);if(!(_ instanceof Uint8Array&&_.length===e.length))return 2;e.set(_)}return 0}}},function(e){e.exports=JSON.parse('{"_args":[["elliptic@6.5.4","/Users/user1/Desktop/office/web3/deployments/1.8.1/web3.js"]],"_from":"elliptic@6.5.4","_id":"elliptic@6.5.4","_inBundle":false,"_integrity":"sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==","_location":"/elliptic","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"elliptic@6.5.4","name":"elliptic","escapedName":"elliptic","rawSpec":"6.5.4","saveSpec":null,"fetchSpec":"6.5.4"},"_requiredBy":["/@ethersproject/signing-key","/browserify-sign","/create-ecdh","/eth-lib","/secp256k1","/swarm-js/eth-lib"],"_resolved":"https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz","_spec":"6.5.4","_where":"/Users/user1/Desktop/office/web3/deployments/1.8.1/web3.js","author":{"name":"Fedor Indutny","email":"fedor@indutny.com"},"bugs":{"url":"https://github.com/indutny/elliptic/issues"},"dependencies":{"bn.js":"^4.11.9","brorand":"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1","inherits":"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"},"description":"EC cryptography","devDependencies":{"brfs":"^2.0.2","coveralls":"^3.1.0","eslint":"^7.6.0","grunt":"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.5","mocha":"^8.0.1"},"files":["lib"],"homepage":"https://github.com/indutny/elliptic","keywords":["EC","Elliptic","curve","Cryptography"],"license":"MIT","main":"lib/elliptic.js","name":"elliptic","repository":{"type":"git","url":"git+ssh://git@github.com/indutny/elliptic.git"},"scripts":{"lint":"eslint lib test","lint:fix":"npm run lint -- --fix","test":"npm run lint && npm run unit","unit":"istanbul test _mocha --reporter=spec test/index.js","version":"grunt dist && git add dist/"},"version":"6.5.4"}')},function(e,t){},function(e,t,r){"use strict";var n=r(18),i=r(4),o=r(3),a=r(71),s=n.assert;function u(e){a.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function c(e,t,r,n){a.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function f(e,t,r,n){a.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(r,16),this.z=new i(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(u,a),e.exports=u,u.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,r;if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);t=(t=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(e.lambda)r=new i(e.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(t))?r=o[0]:(r=o[1],s(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:r,basis:e.basis?e.basis.map((function(e){return{a:new i(e.a,16),b:new i(e.b,16)}})):this._getEndoBasis(r)}}},u.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),r=new i(2).toRed(t).redInvm(),n=r.redNeg(),o=new i(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(o).fromRed(),n.redSub(o).fromRed()]},u.prototype._getEndoBasis=function(e){for(var t,r,n,o,a,s,u,c,f,l=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=e,h=this.n.clone(),p=new i(1),b=new i(0),y=new i(0),g=new i(1),m=0;0!==d.cmpn(0);){var v=h.div(d);c=h.sub(v.mul(d)),f=y.sub(v.mul(p));var w=g.sub(v.mul(b));if(!n&&c.cmp(l)<0)t=u.neg(),r=p,n=c.neg(),o=f;else if(n&&2==++m)break;u=c,h=d,d=c,y=p,p=f,g=b,b=w}a=c.neg(),s=f;var _=n.sqr().add(o.sqr());return a.sqr().add(s.sqr()).cmp(_)>=0&&(a=t,s=r),n.negative&&(n=n.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:o},{a,b:s}]},u.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),u=i.mul(r.b),c=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:u.add(c).neg()}},u.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var o=n.fromRed().isOdd();return(t&&!o||!t&&o)&&(n=n.redNeg()),this.point(e,n)},u.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},u.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var a=this._endoSplit(t[o]),s=e[o],u=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),u=u.neg(!0)),n[2*o]=s,n[2*o+1]=u,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var c=this._wnafMulAdd(1,n,i,2*o,r),f=0;f<2*o;f++)n[f]=null,i[f]=null;return c},o(c,a.BasePoint),u.prototype.point=function(e,t,r){return new c(this,e,t,r)},u.prototype.pointFromJSON=function(e,t){return c.fromJSON(this,e,t)},c.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},c.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},c.fromJSON=function(e,t,r){"string"==typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],r);if(!t[2])return n;function i(t){return e.point(t[0],t[1],r)}var o=t[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},c.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new i(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},c.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},c.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(f,a.BasePoint),u.prototype.jpoint=function(e,t,r){return new f(this,e,t,r)},f.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},f.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},f.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),f=c.redMul(s),l=n.redMul(c),d=u.redSqr().redIAdd(f).redISub(l).redISub(l),h=u.redMul(l.redISub(d)).redISub(o.redMul(f)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,h,p)},f.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),c=u.redMul(a),f=r.redMul(u),l=s.redSqr().redIAdd(c).redISub(f).redISub(f),d=s.redMul(f.redISub(l)).redISub(i.redMul(c)),h=this.z.redMul(a);return this.curve.jpoint(l,d,h)},f.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var r=this;for(t=0;t<e;t++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,u=s.redSqr().redSqr(),c=a.redAdd(a);for(t=0;t<e;t++){var f=o.redSqr(),l=c.redSqr(),d=l.redSqr(),h=f.redAdd(f).redIAdd(f).redIAdd(n.redMul(u)),p=o.redMul(l),b=h.redSqr().redISub(p.redAdd(p)),y=p.redISub(b),g=h.redMul(y);g=g.redIAdd(g).redISub(d);var m=c.redMul(s);t+1<e&&(u=u.redMul(d)),o=b,s=m,c=g}return this.curve.jpoint(o,c.redMul(i),s)},f.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},f.prototype._zeroDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n),u=s.redSqr().redISub(a).redISub(a),c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),e=u,t=s.redMul(a.redISub(u)).redISub(c),r=this.y.redAdd(this.y)}else{var f=this.x.redSqr(),l=this.y.redSqr(),d=l.redSqr(),h=this.x.redAdd(l).redSqr().redISub(f).redISub(d);h=h.redIAdd(h);var p=f.redAdd(f).redIAdd(f),b=p.redSqr(),y=d.redIAdd(d);y=(y=y.redIAdd(y)).redIAdd(y),e=b.redISub(h).redISub(h),t=p.redMul(h.redISub(e)).redISub(y),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},f.prototype._threeDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),u=s.redSqr().redISub(a).redISub(a);e=u;var c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),t=s.redMul(a.redISub(u)).redISub(c),r=this.y.redAdd(this.y)}else{var f=this.z.redSqr(),l=this.y.redSqr(),d=this.x.redMul(l),h=this.x.redSub(f).redMul(this.x.redAdd(f));h=h.redAdd(h).redIAdd(h);var p=d.redIAdd(d),b=(p=p.redIAdd(p)).redAdd(p);e=h.redSqr().redISub(b),r=this.y.redAdd(this.z).redSqr().redISub(l).redISub(f);var y=l.redSqr();y=(y=(y=y.redIAdd(y)).redIAdd(y)).redIAdd(y),t=h.redMul(p.redISub(e)).redISub(y)}return this.curve.jpoint(e,t,r)},f.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=t.redSqr(),a=r.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),u=t.redAdd(t),c=(u=u.redIAdd(u)).redMul(a),f=s.redSqr().redISub(c.redAdd(c)),l=c.redISub(f),d=a.redSqr();d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var h=s.redMul(l).redISub(d),p=r.redAdd(r).redMul(n);return this.curve.jpoint(f,h,p)},f.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),a=this.x.redAdd(t).redSqr().redISub(e).redISub(n),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),u=n.redIAdd(n);u=(u=(u=u.redIAdd(u)).redIAdd(u)).redIAdd(u);var c=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(u),f=t.redMul(c);f=(f=f.redIAdd(f)).redIAdd(f);var l=this.x.redMul(s).redISub(f);l=(l=l.redIAdd(l)).redIAdd(l);var d=this.y.redMul(c.redMul(u.redISub(c)).redISub(a.redMul(s)));d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var h=this.z.redAdd(a).redSqr().redISub(r).redISub(s);return this.curve.jpoint(l,d,h)},f.prototype.mul=function(e,t){return e=new i(e,t),this.curve._wnafMul(this,e)},f.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),i=r.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)},f.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),i=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},f.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},f.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,r){"use strict";var n=r(4),i=r(3),o=r(71),a=r(18);function s(e){o.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(e,t,r){o.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,o),e.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},i(u,o.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(a.toArray(e,t),1)},s.prototype.point=function(e,t){return new u(this,e,t)},s.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(e,t){return new u(e,t[0],t[1]||e.one)},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},u.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),u=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,u)},u.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},u.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,r){"use strict";var n=r(18),i=r(4),o=r(3),a=r(71),s=n.assert;function u(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,a.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,r,n,o){a.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(t,16),this.y=new i(r,16),this.z=n?new i(n,16):this.curve.one,this.t=o&&new i(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(u,a),e.exports=u,u.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},u.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},u.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},u.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),o=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(o.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var u=s.fromRed().isOdd();return(t&&!u||!t&&u)&&(s=s.redNeg()),this.point(e,s)},u.prototype.pointFromY=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),o=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(o.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},u.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},o(c,a.BasePoint),u.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},u.prototype.point=function(e,t,r,n){return new c(this,e,t,r,n)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),u=i.redMul(a),c=o.redMul(s),f=i.redMul(s),l=a.redMul(o);return this.curve.point(u,c,l,f)},c.prototype._projDbl=function(){var e,t,r,n,i,o,a=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),u=this.y.redSqr();if(this.curve.twisted){var c=(n=this.curve._mulA(s)).redAdd(u);this.zOne?(e=a.redSub(s).redSub(u).redMul(c.redSub(this.curve.two)),t=c.redMul(n.redSub(u)),r=c.redSqr().redSub(c).redSub(c)):(i=this.z.redSqr(),o=c.redSub(i).redISub(i),e=a.redSub(s).redISub(u).redMul(o),t=c.redMul(n.redSub(u)),r=c.redMul(o))}else n=s.redAdd(u),i=this.curve._mulC(this.z).redSqr(),o=n.redSub(i).redSub(i),e=this.curve._mulC(a.redISub(n)).redMul(o),t=this.curve._mulC(n).redMul(s.redISub(u)),r=n.redMul(o);return this.curve.point(e,t,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),u=r.redAdd(t),c=o.redMul(a),f=s.redMul(u),l=o.redMul(u),d=a.redMul(s);return this.curve.point(c,f,d,l)},c.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),u=i.redSub(s),c=i.redAdd(s),f=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),l=n.redMul(u).redMul(f);return this.curve.twisted?(t=n.redMul(c).redMul(a.redSub(this.curve._mulA(o))),r=u.redMul(c)):(t=n.redMul(c).redMul(a.redSub(o)),r=this.curve._mulC(u).redMul(c)),this.curve.point(l,t,r)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},function(e,t,r){"use strict";t.sha1=r(277),t.sha224=r(278),t.sha256=r(140),t.sha384=r(279),t.sha512=r(141)},function(e,t,r){"use strict";var n=r(25),i=r(60),o=r(139),a=n.rotl32,s=n.sum32,u=n.sum32_5,c=o.ft_1,f=i.BlockHash,l=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;f.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(d,f),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=a(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],o=this.h[1],f=this.h[2],d=this.h[3],h=this.h[4];for(n=0;n<r.length;n++){var p=~~(n/20),b=u(a(i,5),c(p,o,f,d),h,r[n],l[p]);h=d,d=f,f=a(o,30),o=i,i=b}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],f),this.h[3]=s(this.h[3],d),this.h[4]=s(this.h[4],h)},d.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(e,t,r){"use strict";var n=r(25),i=r(140);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(o,i),e.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},function(e,t,r){"use strict";var n=r(25),i=r(141);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(o,i),e.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},function(e,t,r){"use strict";var n=r(25),i=r(60),o=n.rotl32,a=n.sum32,s=n.sum32_3,u=n.sum32_4,c=i.BlockHash;function f(){if(!(this instanceof f))return new f;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function l(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function d(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function h(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}n.inherits(f,c),t.ripemd160=f,f.blockSize=512,f.outSize=160,f.hmacStrength=192,f.padLength=64,f.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],i=this.h[2],c=this.h[3],f=this.h[4],m=r,v=n,w=i,_=c,x=f,O=0;O<80;O++){var k=a(o(u(r,l(O,n,i,c),e[p[O]+t],d(O)),y[O]),f);r=f,f=c,c=o(i,10),i=n,n=k,k=a(o(u(m,l(79-O,v,w,_),e[b[O]+t],h(O)),g[O]),x),m=x,x=_,_=o(w,10),w=v,v=k}k=s(this.h[1],i,_),this.h[1]=s(this.h[2],c,x),this.h[2]=s(this.h[3],f,m),this.h[3]=s(this.h[4],r,v),this.h[4]=s(this.h[0],n,w),this.h[0]=k},f.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],b=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],y=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],g=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},function(e,t,r){"use strict";var n=r(25),i=r(19);function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,r))}e.exports=o,o.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},o.prototype.update=function(e,t){return this.inner.update(e,t),this},o.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},function(e,t,r){"use strict";e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},function(e,t,r){"use strict";var n=r(0)(r(2)),i=r(4),o=r(284),a=r(18),s=r(94),u=r(93),c=a.assert,f=r(285),l=r(286);function d(e){if(!(this instanceof d))return new d(e);"string"==typeof e&&(c(Object.prototype.hasOwnProperty.call(s,e),"Unknown curve "+e),e=s[e]),e instanceof s.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=d,d.prototype.keyPair=function(e){return new f(this,e)},d.prototype.keyFromPrivate=function(e,t){return f.fromPrivate(this,e,t)},d.prototype.keyFromPublic=function(e,t){return f.fromPublic(this,e,t)},d.prototype.genKeyPair=function(e){e||(e={});for(var t=new o({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||u(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new i(2));;){var a=new i(t.generate(r));if(!(a.cmp(n)>0))return a.iaddn(1),this.keyFromPrivate(a)}},d.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},d.prototype.sign=function(e,t,r,a){"object"===(0,n.default)(r)&&(a=r,r=null),a||(a={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new i(e,16));for(var s=this.n.byteLength(),u=t.getPrivate().toArray("be",s),c=e.toArray("be",s),f=new o({hash:this.hash,entropy:u,nonce:c,pers:a.pers,persEnc:a.persEnc||"utf8"}),d=this.n.sub(new i(1)),h=0;;h++){var p=a.k?a.k(h):new i(f.generate(this.n.byteLength()));if(!((p=this._truncateToN(p,!0)).cmpn(1)<=0||p.cmp(d)>=0)){var b=this.g.mul(p);if(!b.isInfinity()){var y=b.getX(),g=y.umod(this.n);if(0!==g.cmpn(0)){var m=p.invm(this.n).mul(g.mul(t.getPrivate()).iadd(e));if(0!==(m=m.umod(this.n)).cmpn(0)){var v=(b.getY().isOdd()?1:0)|(0!==y.cmp(g)?2:0);return a.canonical&&m.cmp(this.nh)>0&&(m=this.n.sub(m),v^=1),new l({r:g,s:m,recoveryParam:v})}}}}}},d.prototype.verify=function(e,t,r,n){e=this._truncateToN(new i(e,16)),r=this.keyFromPublic(r,n);var o=(t=new l(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,u=a.invm(this.n),c=u.mul(e).umod(this.n),f=u.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,r.getPublic(),f)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(c,r.getPublic(),f)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},d.prototype.recoverPubKey=function(e,t,r,n){c((3&r)===r,"The recovery param is more than two bits"),t=new l(t,n);var o=this.n,a=new i(e),s=t.r,u=t.s,f=1&r,d=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");s=d?this.curve.pointFromX(s.add(this.curve.n),f):this.curve.pointFromX(s,f);var h=t.r.invm(o),p=o.sub(a).mul(h).umod(o),b=u.mul(h).umod(o);return this.g.mulAdd(p,s,b)},d.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new l(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},function(e,t,r){"use strict";var n=r(72),i=r(137),o=r(19);function a(e){if(!(this instanceof a))return new a(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=a,a.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},a.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},a.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},a.prototype.reseed=function(e,t,r,n){"string"!=typeof t&&(n=r,r=t,t=null),e=i.toArray(e,t),r=i.toArray(r,n),o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length<e;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var a=o.slice(0,e);return this._update(r),this._reseed++,i.encode(a,t)}},function(e,t,r){"use strict";var n=r(4),i=r(18).assert;function o(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=o,o.fromPublic=function(e,t,r){return t instanceof o?t:new o(e,{pub:t,pubEnc:r})},o.fromPrivate=function(e,t,r){return t instanceof o?t:new o(e,{priv:t,privEnc:r})},o.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},o.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},o.prototype.derive=function(e){return e.validate()||i(e.validate(),"public point not validated"),e.mul(this.priv).getX()},o.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},o.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},function(e,t,r){"use strict";var n=r(4),i=r(18),o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function u(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,o=0,a=t.place;o<n;o++,a++)i<<=8,i|=e[a],i>>>=0;return!(i<=127)&&(t.place=a,i)}function c(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function f(e,t){if(t<128)e.push(t);else{var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;var o=u(e,r);if(!1===o)return!1;if(o+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var a=u(e,r);if(!1===a)return!1;var c=e.slice(r.place,a+r.place);if(r.place+=a,2!==e[r.place++])return!1;var f=u(e,r);if(!1===f)return!1;if(e.length!==f+r.place)return!1;var l=e.slice(r.place,f+r.place);if(0===c[0]){if(!(128&c[1]))return!1;c=c.slice(1)}if(0===l[0]){if(!(128&l[1]))return!1;l=l.slice(1)}return this.r=new n(c),this.s=new n(l),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=c(t),r=c(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];f(n,t.length),(n=n.concat(t)).push(2),f(n,r.length);var o=n.concat(r),a=[48];return f(a,o.length),a=a.concat(o),i.encode(a,e)}},function(e,t,r){"use strict";var n=r(72),i=r(94),o=r(18),a=o.assert,s=o.parseBytes,u=r(288),c=r(289);function f(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof f))return new f(e);e=i[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}e.exports=f,f.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),u=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:u,Rencoded:o})},f.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},f.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return o.intFromLE(e.digest()).umod(this.curve.n)},f.prototype.keyFromPublic=function(e){return u.fromPublic(this,e)},f.prototype.keyFromSecret=function(e){return u.fromSecret(this,e)},f.prototype.makeSignature=function(e){return e instanceof c?e:new c(this,e)},f.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},f.prototype.decodePoint=function(e){var t=(e=o.parseBytes(e)).length-1,r=e.slice(0,t).concat(-129&e[t]),n=0!=(128&e[t]),i=o.intFromLE(r);return this.curve.pointFromY(i,n)},f.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},f.prototype.decodeInt=function(e){return o.intFromLE(e)},f.prototype.isPoint=function(e){return e instanceof this.pointClass}},function(e,t,r){"use strict";var n=r(18),i=n.assert,o=n.parseBytes,a=n.cachedProperty;function s(e,t){this.eddsa=e,this._secret=o(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=o(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},a(s,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),a(s,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),a(s,"privBytes",(function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n})),a(s,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),a(s,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),a(s,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),s.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),e)},s.prototype.getPublic=function(e){return n.encode(this.pubBytes(),e)},e.exports=s},function(e,t,r){"use strict";var n=r(0)(r(2)),i=r(4),o=r(18),a=o.assert,s=o.cachedProperty,u=o.parseBytes;function c(e,t){this.eddsa=e,"object"!==(0,n.default)(t)&&(t=u(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),a(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof i&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}s(c,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),s(c,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),s(c,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),s(c,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),c.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},c.prototype.toHex=function(){return o.encode(this.toBytes(),"hex").toUpperCase()},e.exports=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(31);t.getRandomBytes=function(e){return new Promise((function(t,r){n(e,(function(e,n){e?r(e):t(n)}))}))},t.getRandomBytesSync=function(e){return n(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(292),i=r(293);t.keccak224=n.createHashFunction((function(){return i("keccak224")})),t.keccak256=n.createHashFunction((function(){return i("keccak256")})),t.keccak384=n.createHashFunction((function(){return i("keccak384")})),t.keccak512=n.createHashFunction((function(){return i("keccak512")}))},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.createHashFunction=function(t){return function(r){var n=t();return n.update(r),e.from(n.digest())}}}).call(this,r(1).Buffer)},function(e,t,r){"use strict";e.exports=r(294)(r(304))},function(e,t,r){"use strict";var n=r(295),i=r(303);e.exports=function(e){var t=n(e),r=i(e);return function(e,n){switch("string"==typeof e?e.toLowerCase():e){case"keccak224":return new t(1152,448,null,224,n);case"keccak256":return new t(1088,512,null,256,n);case"keccak384":return new t(832,768,null,384,n);case"keccak512":return new t(576,1024,null,512,n);case"sha3-224":return new t(1152,448,6,224,n);case"sha3-256":return new t(1088,512,6,256,n);case"sha3-384":return new t(832,768,6,384,n);case"sha3-512":return new t(576,1024,6,512,n);case"shake128":return new r(1344,256,31,n);case"shake256":return new r(1088,512,31,n);default:throw new Error("Invald algorithm: "+e)}}}},function(e,t,r){"use strict";(function(t){var n=r(0),i=n(r(8)),o=n(r(9)),a=n(r(14)),s=n(r(15)),u=n(r(13));function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,u.default)(e);if(t){var i=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}var f=r(144).Transform;e.exports=function(e){return function(r){(0,a.default)(s,r);var n=c(s);function s(t,r,o,a,u){var c;return(0,i.default)(this,s),(c=n.call(this,u))._rate=t,c._capacity=r,c._delimitedSuffix=o,c._hashBitLength=a,c._options=u,c._state=new e,c._state.initialize(t,r),c._finalized=!1,c}return(0,o.default)(s,[{key:"_transform",value:function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)}},{key:"_flush",value:function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)}},{key:"update",value:function(e,r){if(!t.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return t.isBuffer(e)||(e=t.from(e,r)),this._state.absorb(e),this}},{key:"digest",value:function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);var t=this._state.squeeze(this._hashBitLength/8);return void 0!==e&&(t=t.toString(e)),this._resetState(),t}},{key:"_resetState",value:function(){return this._state.initialize(this._rate,this._capacity),this}},{key:"_clone",value:function(){var e=new s(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e}}]),s}(f)}}).call(this,r(1).Buffer)},function(e,t){},function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=r(1).Buffer,s=r(298).inspect,u=s&&s.custom||"inspect";e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,r;return t=e,(r=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return a.alloc(0);for(var t,r,n,i=a.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,r=i,n=s,a.prototype.copy.call(t,r,n),s+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=a.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:u,value:function(e,t){return s(this,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},t,{depth:0,customInspect:!1}))}}])&&o(t.prototype,r),e}()},function(e,t){},function(e,t,r){"use strict";(function(t){var n;function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(96),a=Symbol("lastResolve"),s=Symbol("lastReject"),u=Symbol("error"),c=Symbol("ended"),f=Symbol("lastPromise"),l=Symbol("handlePromise"),d=Symbol("stream");function h(e,t){return{value:e,done:t}}function p(e){var t=e[a];if(null!==t){var r=e[d].read();null!==r&&(e[f]=null,e[a]=null,e[s]=null,t(h(r,!1)))}}function b(e){t.nextTick(p,e)}var y=Object.getPrototypeOf((function(){})),g=Object.setPrototypeOf((i(n={get stream(){return this[d]},next:function(){var e=this,r=this[u];if(null!==r)return Promise.reject(r);if(this[c])return Promise.resolve(h(void 0,!0));if(this[d].destroyed)return new Promise((function(r,n){t.nextTick((function(){e[u]?n(e[u]):r(h(void 0,!0))}))}));var n,i=this[f];if(i)n=new Promise(function(e,t){return function(r,n){e.then((function(){t[c]?r(h(void 0,!0)):t[l](r,n)}),n)}}(i,this));else{var o=this[d].read();if(null!==o)return Promise.resolve(h(o,!1));n=new Promise(this[l])}return this[f]=n,n}},Symbol.asyncIterator,(function(){return this})),i(n,"return",(function(){var e=this;return new Promise((function(t,r){e[d].destroy(null,(function(e){e?r(e):t(h(void 0,!0))}))}))})),n),y);e.exports=function(e){var t,r=Object.create(g,(i(t={},d,{value:e,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,u,{value:null,writable:!0}),i(t,c,{value:e._readableState.endEmitted,writable:!0}),i(t,l,{value:function(e,t){var n=r[d].read();n?(r[f]=null,r[a]=null,r[s]=null,e(h(n,!1))):(r[a]=e,r[s]=t)},writable:!0}),t));return r[f]=null,o(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[s];return null!==t&&(r[f]=null,r[a]=null,r[s]=null,t(e)),void(r[u]=e)}var n=r[a];null!==n&&(r[f]=null,r[a]=null,r[s]=null,n(h(void 0,!0))),r[c]=!0})),e.on("readable",b.bind(null,r)),r}}).call(this,r(6))},function(e,t,r){"use strict";e.exports=function(){throw new Error("Readable.from is not available in the browser")}},function(e,t,r){"use strict";e.exports=i;var n=r(150);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(3)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},function(e,t,r){"use strict";var n,i=r(45).codes,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function u(e,t,i,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);var s=!1;e.on("close",(function(){s=!0})),void 0===n&&(n=r(96)),n(e,{readable:t,writable:i},(function(e){if(e)return o(e);s=!0,o()}));var u=!1;return function(t){if(!s&&!u)return u=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void o(t||new a("pipe"))}}function c(e){e()}function f(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,i=function(e){return e.length?"function"!=typeof e[e.length-1]?s:e.pop():s}(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new o("streams");var a=t.map((function(e,r){var o=r<t.length-1;return u(e,o,r>0,(function(e){n||(n=e),e&&a.forEach(c),o||(a.forEach(c),i(n))}))}));return t.reduce(f)}},function(e,t,r){"use strict";(function(t){var n=r(0),i=n(r(8)),o=n(r(9)),a=n(r(14)),s=n(r(15)),u=n(r(13));function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,u.default)(e);if(t){var i=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}var f=r(144).Transform;e.exports=function(e){return function(r){(0,a.default)(s,r);var n=c(s);function s(t,r,o,a){var u;return(0,i.default)(this,s),(u=n.call(this,a))._rate=t,u._capacity=r,u._delimitedSuffix=o,u._options=a,u._state=new e,u._state.initialize(t,r),u._finalized=!1,u}return(0,o.default)(s,[{key:"_transform",value:function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)}},{key:"_flush",value:function(){}},{key:"_read",value:function(e){this.push(this.squeeze(e))}},{key:"update",value:function(e,r){if(!t.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return t.isBuffer(e)||(e=t.from(e,r)),this._state.absorb(e),this}},{key:"squeeze",value:function(e,t){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));var r=this._state.squeeze(e);return void 0!==t&&(r=r.toString(t)),r}},{key:"_resetState",value:function(){return this._state.initialize(this._rate,this._capacity),this}},{key:"_clone",value:function(){var e=new s(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e}}]),s}(f)}}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(305);function i(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}i.prototype.initialize=function(e,t){for(var r=0;r<50;++r)this.state[r]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1},i.prototype.absorb=function(e){for(var t=0;t<e.length;++t)this.state[~~(this.count/4)]^=e[t]<<this.count%4*8,this.count+=1,this.count===this.blockSize&&(n.p1600(this.state),this.count=0)},i.prototype.absorbLastFewBits=function(e){this.state[~~(this.count/4)]^=e<<this.count%4*8,0!=(128&e)&&this.count===this.blockSize-1&&n.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<(this.blockSize-1)%4*8,n.p1600(this.state),this.count=0,this.squeezing=!0},i.prototype.squeeze=function(e){this.squeezing||this.absorbLastFewBits(1);for(var r=t.alloc(e),i=0;i<e;++i)r[i]=this.state[~~(this.count/4)]>>>this.count%4*8&255,this.count+=1,this.count===this.blockSize&&(n.p1600(this.state),this.count=0);return r},i.prototype.copy=function(e){for(var t=0;t<50;++t)e.state[t]=this.state[t];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing},e.exports=i}).call(this,r(1).Buffer)},function(e,t,r){"use strict";var n=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];t.p1600=function(e){for(var t=0;t<24;++t){var r=e[0]^e[10]^e[20]^e[30]^e[40],i=e[1]^e[11]^e[21]^e[31]^e[41],o=e[2]^e[12]^e[22]^e[32]^e[42],a=e[3]^e[13]^e[23]^e[33]^e[43],s=e[4]^e[14]^e[24]^e[34]^e[44],u=e[5]^e[15]^e[25]^e[35]^e[45],c=e[6]^e[16]^e[26]^e[36]^e[46],f=e[7]^e[17]^e[27]^e[37]^e[47],l=e[8]^e[18]^e[28]^e[38]^e[48],d=e[9]^e[19]^e[29]^e[39]^e[49],h=l^(o<<1|a>>>31),p=d^(a<<1|o>>>31),b=e[0]^h,y=e[1]^p,g=e[10]^h,m=e[11]^p,v=e[20]^h,w=e[21]^p,_=e[30]^h,x=e[31]^p,O=e[40]^h,k=e[41]^p;h=r^(s<<1|u>>>31),p=i^(u<<1|s>>>31);var P=e[2]^h,S=e[3]^p,A=e[12]^h,E=e[13]^p,M=e[22]^h,j=e[23]^p,T=e[32]^h,B=e[33]^p,I=e[42]^h,N=e[43]^p;h=o^(c<<1|f>>>31),p=a^(f<<1|c>>>31);var R=e[4]^h,C=e[5]^p,U=e[14]^h,L=e[15]^p,D=e[24]^h,H=e[25]^p,F=e[34]^h,V=e[35]^p,z=e[44]^h,q=e[45]^p;h=s^(l<<1|d>>>31),p=u^(d<<1|l>>>31);var K=e[6]^h,W=e[7]^p,G=e[16]^h,X=e[17]^p,Z=e[26]^h,J=e[27]^p,Y=e[36]^h,Q=e[37]^p,$=e[46]^h,ee=e[47]^p;h=c^(r<<1|i>>>31),p=f^(i<<1|r>>>31);var te=e[8]^h,re=e[9]^p,ne=e[18]^h,ie=e[19]^p,oe=e[28]^h,ae=e[29]^p,se=e[38]^h,ue=e[39]^p,ce=e[48]^h,fe=e[49]^p,le=b,de=y,he=m<<4|g>>>28,pe=g<<4|m>>>28,be=v<<3|w>>>29,ye=w<<3|v>>>29,ge=x<<9|_>>>23,me=_<<9|x>>>23,ve=O<<18|k>>>14,we=k<<18|O>>>14,_e=P<<1|S>>>31,xe=S<<1|P>>>31,Oe=E<<12|A>>>20,ke=A<<12|E>>>20,Pe=M<<10|j>>>22,Se=j<<10|M>>>22,Ae=B<<13|T>>>19,Ee=T<<13|B>>>19,Me=I<<2|N>>>30,je=N<<2|I>>>30,Te=C<<30|R>>>2,Be=R<<30|C>>>2,Ie=U<<6|L>>>26,Ne=L<<6|U>>>26,Re=H<<11|D>>>21,Ce=D<<11|H>>>21,Ue=F<<15|V>>>17,Le=V<<15|F>>>17,De=q<<29|z>>>3,He=z<<29|q>>>3,Fe=K<<28|W>>>4,Ve=W<<28|K>>>4,ze=X<<23|G>>>9,qe=G<<23|X>>>9,Ke=Z<<25|J>>>7,We=J<<25|Z>>>7,Ge=Y<<21|Q>>>11,Xe=Q<<21|Y>>>11,Ze=ee<<24|$>>>8,Je=$<<24|ee>>>8,Ye=te<<27|re>>>5,Qe=re<<27|te>>>5,$e=ne<<20|ie>>>12,et=ie<<20|ne>>>12,tt=ae<<7|oe>>>25,rt=oe<<7|ae>>>25,nt=se<<8|ue>>>24,it=ue<<8|se>>>24,ot=ce<<14|fe>>>18,at=fe<<14|ce>>>18;e[0]=le^~Oe&Re,e[1]=de^~ke&Ce,e[10]=Fe^~$e&be,e[11]=Ve^~et&ye,e[20]=_e^~Ie&Ke,e[21]=xe^~Ne&We,e[30]=Ye^~he&Pe,e[31]=Qe^~pe&Se,e[40]=Te^~ze&tt,e[41]=Be^~qe&rt,e[2]=Oe^~Re&Ge,e[3]=ke^~Ce&Xe,e[12]=$e^~be&Ae,e[13]=et^~ye&Ee,e[22]=Ie^~Ke&nt,e[23]=Ne^~We&it,e[32]=he^~Pe&Ue,e[33]=pe^~Se&Le,e[42]=ze^~tt&ge,e[43]=qe^~rt&me,e[4]=Re^~Ge&ot,e[5]=Ce^~Xe&at,e[14]=be^~Ae&De,e[15]=ye^~Ee&He,e[24]=Ke^~nt&ve,e[25]=We^~it&we,e[34]=Pe^~Ue&Ze,e[35]=Se^~Le&Je,e[44]=tt^~ge&Me,e[45]=rt^~me&je,e[6]=Ge^~ot&le,e[7]=Xe^~at&de,e[16]=Ae^~De&Fe,e[17]=Ee^~He&Ve,e[26]=nt^~ve&_e,e[27]=it^~we&xe,e[36]=Ue^~Ze&Ye,e[37]=Le^~Je&Qe,e[46]=ge^~Me&Te,e[47]=me^~je&Be,e[8]=ot^~le&Oe,e[9]=at^~de&ke,e[18]=De^~Fe&$e,e[19]=He^~Ve&et,e[28]=ve^~_e&Ie,e[29]=we^~xe&Ne,e[38]=Ze^~Ye&he,e[39]=Je^~Qe&pe,e[48]=Me^~Te&ze,e[49]=je^~Be&qe,e[0]^=n[2*t],e[1]^=n[2*t+1]}}},function(e,t,r){"use strict";(t=e.exports=r(152)).Stream=t,t.Readable=t,t.Writable=r(156),t.Duplex=r(49),t.Transform=r(157),t.PassThrough=r(312),t.finished=r(98),t.pipeline=r(313)},function(e,t){},function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=r(1).Buffer,s=r(309).inspect,u=s&&s.custom||"inspect";e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,r;return t=e,(r=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return a.alloc(0);for(var t,r,n,i=a.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,r=i,n=s,a.prototype.copy.call(t,r,n),s+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=a.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:u,value:function(e,t){return s(this,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},t,{depth:0,customInspect:!1}))}}])&&o(t.prototype,r),e}()},function(e,t){},function(e,t,r){"use strict";(function(t){var n;function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(98),a=Symbol("lastResolve"),s=Symbol("lastReject"),u=Symbol("error"),c=Symbol("ended"),f=Symbol("lastPromise"),l=Symbol("handlePromise"),d=Symbol("stream");function h(e,t){return{value:e,done:t}}function p(e){var t=e[a];if(null!==t){var r=e[d].read();null!==r&&(e[f]=null,e[a]=null,e[s]=null,t(h(r,!1)))}}function b(e){t.nextTick(p,e)}var y=Object.getPrototypeOf((function(){})),g=Object.setPrototypeOf((i(n={get stream(){return this[d]},next:function(){var e=this,r=this[u];if(null!==r)return Promise.reject(r);if(this[c])return Promise.resolve(h(void 0,!0));if(this[d].destroyed)return new Promise((function(r,n){t.nextTick((function(){e[u]?n(e[u]):r(h(void 0,!0))}))}));var n,i=this[f];if(i)n=new Promise(function(e,t){return function(r,n){e.then((function(){t[c]?r(h(void 0,!0)):t[l](r,n)}),n)}}(i,this));else{var o=this[d].read();if(null!==o)return Promise.resolve(h(o,!1));n=new Promise(this[l])}return this[f]=n,n}},Symbol.asyncIterator,(function(){return this})),i(n,"return",(function(){var e=this;return new Promise((function(t,r){e[d].destroy(null,(function(e){e?r(e):t(h(void 0,!0))}))}))})),n),y);e.exports=function(e){var t,r=Object.create(g,(i(t={},d,{value:e,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,u,{value:null,writable:!0}),i(t,c,{value:e._readableState.endEmitted,writable:!0}),i(t,l,{value:function(e,t){var n=r[d].read();n?(r[f]=null,r[a]=null,r[s]=null,e(h(n,!1))):(r[a]=e,r[s]=t)},writable:!0}),t));return r[f]=null,o(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[s];return null!==t&&(r[f]=null,r[a]=null,r[s]=null,t(e)),void(r[u]=e)}var n=r[a];null!==n&&(r[f]=null,r[a]=null,r[s]=null,n(h(void 0,!0))),r[c]=!0})),e.on("readable",b.bind(null,r)),r}}).call(this,r(6))},function(e,t,r){"use strict";e.exports=function(){throw new Error("Readable.from is not available in the browser")}},function(e,t,r){"use strict";e.exports=i;var n=r(157);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(3)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},function(e,t,r){"use strict";var n,i=r(48).codes,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function u(e,t,i,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);var s=!1;e.on("close",(function(){s=!0})),void 0===n&&(n=r(98)),n(e,{readable:t,writable:i},(function(e){if(e)return o(e);s=!0,o()}));var u=!1;return function(t){if(!s&&!u)return u=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void o(t||new a("pipe"))}}function c(e){e()}function f(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,i=function(e){return e.length?"function"!=typeof e[e.length-1]?s:e.pop():s}(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new o("streams");var a=t.map((function(e,r){var o=r<t.length-1;return u(e,o,r>0,(function(e){n||(n=e),e&&a.forEach(c),o||(a.forEach(c),i(n))}))}));return t.reduce(f)}},function(e,t,r){"use strict";var n=r(3),i=r(50),o=r(5).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function c(e){return e<<30|e>>>2}function f(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,l=0;l<16;++l)r[l]=e.readInt32BE(4*l);for(;l<80;++l)r[l]=r[l-3]^r[l-8]^r[l-14]^r[l-16];for(var d=0;d<80;++d){var h=~~(d/20),p=0|((t=n)<<5|t>>>27)+f(h,i,o,s)+u+r[d]+a[h];u=s,s=o,o=c(i),i=n,n=p}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=u},function(e,t,r){"use strict";var n=r(3),i=r(50),o=r(5).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function c(e){return e<<5|e>>>27}function f(e){return e<<30|e>>>2}function l(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,d=0;d<16;++d)r[d]=e.readInt32BE(4*d);for(;d<80;++d)r[d]=(t=r[d-3]^r[d-8]^r[d-14]^r[d-16])<<1|t>>>31;for(var h=0;h<80;++h){var p=~~(h/20),b=c(n)+l(p,i,o,s)+u+r[h]+a[p]|0;u=s,s=o,o=f(i),i=n,n=b}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=u},function(e,t,r){"use strict";var n=r(3),i=r(158),o=r(50),a=r(5).Buffer,s=new Array(64);function u(){this.init(),this._w=s,o.call(this,64,56)}n(u,i),u.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},u.prototype._hash=function(){var e=a.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=u},function(e,t,r){"use strict";var n=r(3),i=r(159),o=r(50),a=r(5).Buffer,s=new Array(160);function u(){this.init(),this._w=s,o.call(this,128,112)}n(u,i),u.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},u.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=u},function(e,t){},function(e,t,r){"use strict";var n=r(101).Buffer,i=r(320);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);if(1===this.length)return this.head.data;for(var t,r,i=n.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=i,r=a,o.data.copy(t,r),a+=o.data.length,o=o.next;return i},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,r){"use strict";(function(e,t){!function(e,r){if(!e.setImmediate){var n,i,o,a,s,u=1,c={},f=!1,l=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?n=function(e){t.nextTick((function(){p(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&p(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),n=function(t){e.postMessage(a+t,"*")}):e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){p(e.data)},n=function(e){o.port2.postMessage(e)}):l&&"onreadystatechange"in l.createElement("script")?(i=l.documentElement,n=function(e){var t=l.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):n=function(e){setTimeout(p,0,e)},d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var i={callback:e,args:t};return c[u]=i,n(u),u++},d.clearImmediate=h}function h(e){delete c[e]}function p(e){if(f)setTimeout(p,0,e);else{var t=c[e];if(t){f=!0;try{!function(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(void 0,r)}}(t)}finally{h(e),f=!1}}}}}("undefined"==typeof self?void 0===e?void 0:e:self)}).call(this,r(7),r(6))},function(e,t,r){"use strict";e.exports=o;var n=r(165),i=Object.create(r(62));function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r(3),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},function(e,t,r){"use strict";e.exports=r(102)},function(e,t,r){"use strict";e.exports=r(37)},function(e,t,r){"use strict";e.exports=r(61).Transform},function(e,t,r){"use strict";e.exports=r(61).PassThrough},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.Address=void 0;var n=function(e){return e&&e.__esModule?e:{default:e}}(r(43)),i=r(28),o=r(36),a=r(134),s=function(){function t(e){(0,n.default)(20===e.length,"Invalid address length"),this.buf=e}return t.zero=function(){return new t((0,o.zeros)(20))},t.fromString=function(e){return(0,n.default)((0,a.isValidAddress)(e),"Invalid address"),new t((0,o.toBuffer)(e))},t.fromPublicKey=function(r){return(0,n.default)(e.isBuffer(r),"Public key should be Buffer"),new t((0,a.pubToAddress)(r))},t.fromPrivateKey=function(r){return(0,n.default)(e.isBuffer(r),"Private key should be Buffer"),new t((0,a.privateToAddress)(r))},t.generate=function(r,o){return(0,n.default)(i.BN.isBN(o)),new t((0,a.generateAddress)(r.buf,o.toArrayLike(e)))},t.generate2=function(r,i,o){return(0,n.default)(e.isBuffer(i)),(0,n.default)(e.isBuffer(o)),new t((0,a.generateAddress2)(r.buf,i,o))},t.prototype.equals=function(e){return this.buf.equals(e.buf)},t.prototype.isZero=function(){return this.equals(t.zero())},t.prototype.isPrecompileOrSystemAddress=function(){var e=new i.BN(this.buf),t=new i.BN(0),r=new i.BN("ffff","hex");return e.gte(t)&&e.lte(r)},t.prototype.toString=function(){return"0x"+this.buf.toString("hex")},t.prototype.toBuffer=function(){return e.from(this.buf)},t}();t.Address=s}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.hashPersonalMessage=t.isValidSignature=t.fromRpcSig=t.toCompactSig=t.toRpcSig=t.ecrecover=t.ecsign=void 0;var n=r(135),i=r(28),o=r(36),a=r(95),s=r(73),u=r(103);function c(e,t){var r=(0,u.toType)(e,u.TypeOutput.BN);if(r.eqn(0)||r.eqn(1))return(0,u.toType)(e,u.TypeOutput.BN);if(!t)return r.subn(27);var n=(0,u.toType)(t,u.TypeOutput.BN);return r.sub(n.muln(2).addn(35))}function f(e){var t=new i.BN(e);return t.eqn(0)||t.eqn(1)}t.ecsign=function(t,r,i){var o=(0,n.ecdsaSign)(t,r),a=o.signature,s=o.recid,c=e.from(a.slice(0,32)),f=e.from(a.slice(32,64));if(!i||"number"==typeof i){if(i&&!Number.isSafeInteger(i))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");return{r:c,s:f,v:i?s+(2*i+35):s+27}}return{r:c,s:f,v:(0,u.toType)(i,u.TypeOutput.BN).muln(2).addn(35).addn(s).toArrayLike(e)}},t.ecrecover=function(t,r,i,a,s){var u=e.concat([(0,o.setLengthLeft)(i,32),(0,o.setLengthLeft)(a,32)],64),l=c(r,s);if(!f(l))throw new Error("Invalid signature v value");var d=(0,n.ecdsaRecover)(u,l.toNumber(),t);return e.from((0,n.publicKeyConvert)(d,!1).slice(1))},t.toRpcSig=function(t,r,n,i){if(!f(c(t,i)))throw new Error("Invalid signature v value");return(0,o.bufferToHex)(e.concat([(0,o.setLengthLeft)(r,32),(0,o.setLengthLeft)(n,32),(0,o.toBuffer)(t)]))},t.toCompactSig=function(t,r,n,i){if(!f(c(t,i)))throw new Error("Invalid signature v value");var a=(0,u.toType)(t,u.TypeOutput.Number),s=n;return(a>28&&a%2==1||1===a||28===a)&&((s=e.from(n))[0]|=128),(0,o.bufferToHex)(e.concat([(0,o.setLengthLeft)(r,32),(0,o.setLengthLeft)(s,32)]))},t.fromRpcSig=function(e){var t,r,n,i=(0,o.toBuffer)(e);if(i.length>=65)t=i.slice(0,32),r=i.slice(32,64),n=(0,o.bufferToInt)(i.slice(64));else{if(64!==i.length)throw new Error("Invalid signature length");t=i.slice(0,32),r=i.slice(32,64),n=(0,o.bufferToInt)(i.slice(32,33))>>7,r[0]&=127}return n<27&&(n+=27),{v:n,r:t,s:r}},t.isValidSignature=function(e,t,r,n,o){void 0===n&&(n=!0);var a=new i.BN("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),s=new i.BN("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);if(32!==t.length||32!==r.length)return!1;if(!f(c(e,o)))return!1;var u=new i.BN(t),l=new i.BN(r);return!(u.isZero()||u.gt(s)||l.isZero()||l.gt(s)||n&&1===l.cmp(a))},t.hashPersonalMessage=function(t){(0,s.assertIsBuffer)(t);var r=e.from("Ethereum Signed Message:\n".concat(t.length),"utf-8");return(0,a.keccak)(e.concat([r,t]))}}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(e){var n=r(0)(r(2));Object.defineProperty(t,"__esModule",{value:!0}),t.defineProperties=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(r(43)),o=r(44),a=r(28),s=r(36);t.defineProperties=function(t,r,u){if(t.raw=[],t._fields=[],t.toJSON=function(e){if(void 0===e&&(e=!1),e){var r={};return t._fields.forEach((function(e){r[e]="0x".concat(t[e].toString("hex"))})),r}return(0,s.baToJSON)(t.raw)},t.serialize=function(){return a.rlp.encode(t.raw)},r.forEach((function(r,n){function o(){return t.raw[n]}function a(o){"00"!==(o=(0,s.toBuffer)(o)).toString("hex")||r.allowZero||(o=e.allocUnsafe(0)),r.allowLess&&r.length?(o=(0,s.unpadBuffer)(o),(0,i.default)(r.length>=o.length,"The field ".concat(r.name," must not have more ").concat(r.length," bytes"))):r.allowZero&&0===o.length||!r.length||(0,i.default)(r.length===o.length,"The field ".concat(r.name," must have byte length of ").concat(r.length)),t.raw[n]=o}t._fields.push(r.name),Object.defineProperty(t,r.name,{enumerable:!0,configurable:!0,get:o,set:a}),r.default&&(t[r.name]=r.default),r.alias&&Object.defineProperty(t,r.alias,{enumerable:!1,configurable:!0,set:a,get:o})})),u)if("string"==typeof u&&(u=e.from((0,o.stripHexPrefix)(u),"hex")),e.isBuffer(u)&&(u=a.rlp.decode(u)),Array.isArray(u)){if(u.length>t._fields.length)throw new Error("wrong number of fields in data");u.forEach((function(e,r){t[t._fields[r]]=(0,s.toBuffer)(e)}))}else{if("object"!==(0,n.default)(u))throw new Error("invalid data");var c=Object.keys(u);r.forEach((function(e){-1!==c.indexOf(e.name)&&(t[e.name]=u[e.name]),-1!==c.indexOf(e.alias)&&(t[e.alias]=u[e.alias])}))}}}).call(this,r(1).Buffer)},function(e,t,r){"use strict";var n=r(0)(r(2));Object.defineProperty(t,"__esModule",{value:!0});var i=r(331);function o(e){return!("string"!=typeof e||!/^(0x)?[0-9a-f]{512}$/i.test(e)||!/^(0x)?[0-9a-f]{512}$/.test(e)&&!/^(0x)?[0-9A-F]{512}$/.test(e))}function a(e,t){"object"===(0,n.default)(t)&&t.constructor===Uint8Array&&(t=i.bytesToHex(t));for(var r=i.keccak256(t).replace("0x",""),o=0;o<12;o+=4){var a=(parseInt(r.substr(o,2),16)<<8)+parseInt(r.substr(o+2,2),16)&2047,u=1<<a%4;if((s(e.charCodeAt(e.length-1-Math.floor(a/4)))&u)!==u)return!1}return!0}function s(e){if(e>=48&&e<=57)return e-48;if(e>=65&&e<=70)return e-55;if(e>=97&&e<=102)return e-87;throw new Error("invalid bloom")}function u(e){return!("string"!=typeof e||!/^(0x)?[0-9a-f]{64}$/i.test(e)||!/^(0x)?[0-9a-f]{64}$/.test(e)&&!/^(0x)?[0-9A-F]{64}$/.test(e))}function c(e){return!("string"!=typeof e||!e.match(/^(0x)?[0-9a-fA-F]{40}$/)&&!e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/))}t.isBloom=o,t.isInBloom=a,t.isUserEthereumAddressInBloom=function(e,t){if(!o(e))throw new Error("Invalid bloom given");if(!c(t))throw new Error('Invalid ethereum address given: "'.concat(t,'"'));return a(e,i.padLeft(t,64))},t.isContractAddressInBloom=function(e,t){if(!o(e))throw new Error("Invalid bloom given");if(!c(t))throw new Error('Invalid contract address given: "'.concat(t,'"'));return a(e,t)},t.isTopicInBloom=function(e,t){if(!o(e))throw new Error("Invalid bloom given");if(!u(t))throw new Error("Invalid topic");return a(e,t)},t.isTopic=u,t.isAddress=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(332);function i(e){if(null==e)throw new Error("cannot convert null value to array");if("string"==typeof e){var t=e.match(/^(0x)?[0-9a-fA-F]*$/);if(!t)throw new Error("invalid hexidecimal string");if("0x"!==t[1])throw new Error("hex string must have 0x prefix");(e=e.substring(2)).length%2&&(e="0"+e);for(var r=[],n=0;n<e.length;n+=2)r.push(parseInt(e.substr(n,2),16));return o(new Uint8Array(r))}if(function(e){if(!e||parseInt(String(e.length))!=e.length||"string"==typeof e)return!1;for(var t=0;t<e.length;t++){var r=e[t];if(r<0||r>=256||parseInt(String(r))!=r)return!1}return!0}(e))return o(new Uint8Array(e));throw new Error("invalid arrayify value")}function o(e){var t=arguments;return void 0!==e.slice||(e.slice=function(){var r=Array.prototype.slice.call(t);return o(new Uint8Array(Array.prototype.slice.apply(e,r)))}),e}t.keccak256=function(e){return"0x"+n.keccak_256(i(e))},t.padLeft=function(e,t){var r=/^0x/i.test(e)||"number"==typeof e,n=t-(e=e.toString().replace(/^0x/i,"")).length+1>=0?t-e.length+1:0;return(r?"0x":"")+new Array(n).join("0")+e},t.bytesToHex=function(e){for(var t=[],r=0;r<e.length;r++)t.push((e[r]>>>4).toString(16)),t.push((15&e[r]).toString(16));return"0x".concat(t.join("").replace(/^0+/,""))},t.toByteArray=i},function(e,t,r){"use strict";(function(e,n,i){var o,a=r(0)(r(2));!function(){var s="input is invalid type",u="object"===("undefined"==typeof window?"undefined":(0,a.default)(window)),c=u?window:{};c.JS_SHA3_NO_WINDOW&&(u=!1);var f=!u&&"object"===("undefined"==typeof self?"undefined":(0,a.default)(self));!c.JS_SHA3_NO_NODE_JS&&"object"===(void 0===e?"undefined":(0,a.default)(e))&&e.versions&&e.versions.node?c=n:f&&(c=self);var l=!c.JS_SHA3_NO_COMMON_JS&&"object"===(0,a.default)(i)&&i.exports,d=r(76),h=!c.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,p="0123456789abcdef".split(""),b=[4,1024,262144,67108864],y=[0,8,16,24],g=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],m=[224,256,384,512],v=[128,256],w=["hex","buffer","arrayBuffer","array","digest"],_={128:168,256:136};!c.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!h||!c.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"===(0,a.default)(e)&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var x=function(e,t,r){return function(n){return new U(e,t,e).update(n)[r]()}},O=function(e,t,r){return function(n,i){return new U(e,t,i).update(n)[r]()}},k=function(e,t,r){return function(t,n,i,o){return M["cshake"+e].update(t,n,i,o)[r]()}},P=function(e,t,r){return function(t,n,i,o){return M["kmac"+e].update(t,n,i,o)[r]()}},S=function(e,t,r,n){for(var i=0;i<w.length;++i){var o=w[i];e[o]=t(r,n,o)}return e},A=function(e,t){var r=x(e,t,"hex");return r.create=function(){return new U(e,t,e)},r.update=function(e){return r.create().update(e)},S(r,x,e,t)},E=[{name:"keccak",padding:[1,256,65536,16777216],bits:m,createMethod:A},{name:"sha3",padding:[6,1536,393216,100663296],bits:m,createMethod:A},{name:"shake",padding:[31,7936,2031616,520093696],bits:v,createMethod:function(e,t){var r=O(e,t,"hex");return r.create=function(r){return new U(e,t,r)},r.update=function(e,t){return r.create(t).update(e)},S(r,O,e,t)}},{name:"cshake",padding:b,bits:v,createMethod:function(e,t){var r=_[e],n=k(e,0,"hex");return n.create=function(n,i,o){return i||o?new U(e,t,n).bytepad([i,o],r):M["shake"+e].create(n)},n.update=function(e,t,r,i){return n.create(t,r,i).update(e)},S(n,k,e,t)}},{name:"kmac",padding:b,bits:v,createMethod:function(e,t){var r=_[e],n=P(e,0,"hex");return n.create=function(n,i,o){return new L(e,t,i).bytepad(["KMAC",o],r).bytepad([n],r)},n.update=function(e,t,r,i){return n.create(e,r,i).update(t)},S(n,P,e,t)}}],M={},j=[],T=0;T<E.length;++T)for(var B=E[T],I=B.bits,N=0;N<I.length;++N){var R=B.name+"_"+I[N];if(j.push(R),M[R]=B.createMethod(I[N],B.padding),"sha3"!==B.name){var C=B.name+I[N];j.push(C),M[C]=M[R]}}function U(e,t,r){this.blocks=[],this.s=[],this.padding=t,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function L(e,t,r){U.call(this,e,t,r)}U.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var t,r=(0,a.default)(e);if("string"!==r){if("object"!==r)throw new Error(s);if(null===e)throw new Error(s);if(h&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||h&&ArrayBuffer.isView(e)))throw new Error(s);t=!0}for(var n,i,o=this.blocks,u=this.byteCount,c=e.length,f=this.blockCount,l=0,d=this.s;l<c;){if(this.reset)for(this.reset=!1,o[0]=this.block,n=1;n<f+1;++n)o[n]=0;if(t)for(n=this.start;l<c&&n<u;++l)o[n>>2]|=e[l]<<y[3&n++];else for(n=this.start;l<c&&n<u;++l)(i=e.charCodeAt(l))<128?o[n>>2]|=i<<y[3&n++]:i<2048?(o[n>>2]|=(192|i>>6)<<y[3&n++],o[n>>2]|=(128|63&i)<<y[3&n++]):i<55296||i>=57344?(o[n>>2]|=(224|i>>12)<<y[3&n++],o[n>>2]|=(128|i>>6&63)<<y[3&n++],o[n>>2]|=(128|63&i)<<y[3&n++]):(i=65536+((1023&i)<<10|1023&e.charCodeAt(++l)),o[n>>2]|=(240|i>>18)<<y[3&n++],o[n>>2]|=(128|i>>12&63)<<y[3&n++],o[n>>2]|=(128|i>>6&63)<<y[3&n++],o[n>>2]|=(128|63&i)<<y[3&n++]);if(this.lastByteIndex=n,n>=u){for(this.start=n-u,this.block=o[f],n=0;n<f;++n)d[n]^=o[n];D(d),this.reset=!0}else this.start=n}return this},U.prototype.encode=function(e,t){var r=255&e,n=1,i=[r];for(r=255&(e>>=8);r>0;)i.unshift(r),r=255&(e>>=8),++n;return t?i.push(n):i.unshift(n),this.update(i),i.length},U.prototype.encodeString=function(e){var t,r=(0,a.default)(e);if("string"!==r){if("object"!==r)throw new Error(s);if(null===e)throw new Error(s);if(h&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||h&&ArrayBuffer.isView(e)))throw new Error(s);t=!0}var n=0,i=e.length;if(t)n=i;else for(var o=0;o<e.length;++o){var u=e.charCodeAt(o);u<128?n+=1:u<2048?n+=2:u<55296||u>=57344?n+=3:(u=65536+((1023&u)<<10|1023&e.charCodeAt(++o)),n+=4)}return n+=this.encode(8*n),this.update(e),n},U.prototype.bytepad=function(e,t){for(var r=this.encode(t),n=0;n<e.length;++n)r+=this.encodeString(e[n]);var i=t-r%t,o=[];return o.length=i,this.update(o),this},U.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex,r=this.blockCount,n=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[r],t=1;t<r+1;++t)e[t]=0;for(e[r-1]|=2147483648,t=0;t<r;++t)n[t]^=e[t];D(n)}},U.prototype.toString=U.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s="";a<n;){for(o=0;o<t&&a<n;++o,++a)e=r[o],s+=p[e>>4&15]+p[15&e]+p[e>>12&15]+p[e>>8&15]+p[e>>20&15]+p[e>>16&15]+p[e>>28&15]+p[e>>24&15];a%t==0&&(D(r),o=0)}return i&&(e=r[o],s+=p[e>>4&15]+p[15&e],i>1&&(s+=p[e>>12&15]+p[e>>8&15]),i>2&&(s+=p[e>>20&15]+p[e>>16&15])),s},U.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;e=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(s);for(var u=new Uint32Array(e);a<n;){for(o=0;o<t&&a<n;++o,++a)u[a]=r[o];a%t==0&&D(r)}return i&&(u[o]=r[o],e=e.slice(0,s)),e},U.prototype.buffer=U.prototype.arrayBuffer,U.prototype.digest=U.prototype.array=function(){this.finalize();for(var e,t,r=this.blockCount,n=this.s,i=this.outputBlocks,o=this.extraBytes,a=0,s=0,u=[];s<i;){for(a=0;a<r&&s<i;++a,++s)e=s<<2,t=n[a],u[e]=255&t,u[e+1]=t>>8&255,u[e+2]=t>>16&255,u[e+3]=t>>24&255;s%r==0&&D(n)}return o&&(e=s<<2,t=n[a],u[e]=255&t,o>1&&(u[e+1]=t>>8&255),o>2&&(u[e+2]=t>>16&255)),u},L.prototype=new U,L.prototype.finalize=function(){return this.encode(this.outputBits,!0),U.prototype.finalize.call(this)};var D=function(e){var t,r,n,i,o,a,s,u,c,f,l,d,h,p,b,y,m,v,w,_,x,O,k,P,S,A,E,M,j,T,B,I,N,R,C,U,L,D,H,F,V,z,q,K,W,G,X,Z,J,Y,Q,$,ee,te,re,ne,ie,oe,ae,se,ue,ce,fe;for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],u=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],f=e[6]^e[16]^e[26]^e[36]^e[46],l=e[7]^e[17]^e[27]^e[37]^e[47],t=(d=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|s>>>31),r=(h=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|a>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=i^(u<<1|c>>>31),r=o^(c<<1|u>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=a^(f<<1|l>>>31),r=s^(l<<1|f>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=u^(d<<1|h>>>31),r=c^(h<<1|d>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=f^(i<<1|o>>>31),r=l^(o<<1|i>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,p=e[0],b=e[1],G=e[11]<<4|e[10]>>>28,X=e[10]<<4|e[11]>>>28,M=e[20]<<3|e[21]>>>29,j=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ue=e[30]<<9|e[31]>>>23,z=e[40]<<18|e[41]>>>14,q=e[41]<<18|e[40]>>>14,R=e[2]<<1|e[3]>>>31,C=e[3]<<1|e[2]>>>31,y=e[13]<<12|e[12]>>>20,m=e[12]<<12|e[13]>>>20,Z=e[22]<<10|e[23]>>>22,J=e[23]<<10|e[22]>>>22,T=e[33]<<13|e[32]>>>19,B=e[32]<<13|e[33]>>>19,ce=e[42]<<2|e[43]>>>30,fe=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,re=e[4]<<30|e[5]>>>2,U=e[14]<<6|e[15]>>>26,L=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,Y=e[34]<<15|e[35]>>>17,Q=e[35]<<15|e[34]>>>17,I=e[45]<<29|e[44]>>>3,N=e[44]<<29|e[45]>>>3,P=e[6]<<28|e[7]>>>4,S=e[7]<<28|e[6]>>>4,ne=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,D=e[26]<<25|e[27]>>>7,H=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,x=e[37]<<21|e[36]>>>11,$=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,K=e[8]<<27|e[9]>>>5,W=e[9]<<27|e[8]>>>5,A=e[18]<<20|e[19]>>>12,E=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,F=e[38]<<8|e[39]>>>24,V=e[39]<<8|e[38]>>>24,O=e[48]<<14|e[49]>>>18,k=e[49]<<14|e[48]>>>18,e[0]=p^~y&v,e[1]=b^~m&w,e[10]=P^~A&M,e[11]=S^~E&j,e[20]=R^~U&D,e[21]=C^~L&H,e[30]=K^~G&Z,e[31]=W^~X&J,e[40]=te^~ne&oe,e[41]=re^~ie&ae,e[2]=y^~v&_,e[3]=m^~w&x,e[12]=A^~M&T,e[13]=E^~j&B,e[22]=U^~D&F,e[23]=L^~H&V,e[32]=G^~Z&Y,e[33]=X^~J&Q,e[42]=ne^~oe&se,e[43]=ie^~ae&ue,e[4]=v^~_&O,e[5]=w^~x&k,e[14]=M^~T&I,e[15]=j^~B&N,e[24]=D^~F&z,e[25]=H^~V&q,e[34]=Z^~Y&$,e[35]=J^~Q&ee,e[44]=oe^~se&ce,e[45]=ae^~ue&fe,e[6]=_^~O&p,e[7]=x^~k&b,e[16]=T^~I&P,e[17]=B^~N&S,e[26]=F^~z&R,e[27]=V^~q&C,e[36]=Y^~$&K,e[37]=Q^~ee&W,e[46]=se^~ce&te,e[47]=ue^~fe&re,e[8]=O^~p&y,e[9]=k^~b&m,e[18]=I^~P&A,e[19]=N^~S&E,e[28]=z^~R&U,e[29]=q^~C&L,e[38]=$^~K&G,e[39]=ee^~W&X,e[48]=ce^~te&ne,e[49]=fe^~re&ie,e[0]^=g[n],e[1]^=g[n+1]};if(l)i.exports=M;else{for(T=0;T<j.length;++T)c[j[T]]=M[j[T]];d&&(void 0===(o=function(){return M}.call(t,r,t,i))||(i.exports=o))}}()}).call(this,r(6),r(7),r(35)(e))},function(e,t,r){"use strict";var n=r(0)(r(2)),i=r(4),o=r(129),a=function(e){var t=(0,n.default)(e);if("string"===t)return o.isHexStrict(e)?new i(e.replace(/0x/i,""),16):new i(e,10);if("number"===t)return new i(e);if(o.isBigNumber(e))return new i(e.toString(10));if(o.isBN(e))return e;throw new Error(e+" is not a number")},s=function(e,t,r){var n,s;if("bytes"===(e=function(e){return e.startsWith("int[")?"int256"+e.slice(3):"int"===e?"int256":e.startsWith("uint[")?"uint256"+e.slice(4):"uint"===e?"uint256":e.startsWith("fixed[")?"fixed128x128"+e.slice(5):"fixed"===e?"fixed128x128":e.startsWith("ufixed[")?"ufixed128x128"+e.slice(6):"ufixed"===e?"ufixed128x128":e}(e))){if(t.replace(/^0x/i,"").length%2!=0)throw new Error("Invalid bytes characters "+t.length);return t}if("string"===e)return o.utf8ToHex(t);if("bool"===e)return t?"01":"00";if(e.startsWith("address")){if(n=r?64:40,!o.isAddress(t))throw new Error(t+" is not a valid address, or the checksum is invalid.");return o.leftPad(t.toLowerCase(),n)}if(n=function(e){var t=/^\D+(\d+).*$/.exec(e);return t?parseInt(t[1],10):null}(e),e.startsWith("bytes")){if(!n)throw new Error("bytes[] not yet supported in solidity");if(r&&(n=32),n<1||n>32||n<t.replace(/^0x/i,"").length/2)throw new Error("Invalid bytes"+n+" for "+t);return o.rightPad(t,2*n)}if(e.startsWith("uint")){if(n%8||n<8||n>256)throw new Error("Invalid uint"+n+" size");if((s=a(t)).bitLength()>n)throw new Error("Supplied uint exceeds width: "+n+" vs "+s.bitLength());if(s.lt(new i(0)))throw new Error("Supplied uint "+s.toString()+" is negative");return n?o.leftPad(s.toString("hex"),n/8*2):s}if(e.startsWith("int")){if(n%8||n<8||n>256)throw new Error("Invalid int"+n+" size");if((s=a(t)).bitLength()>n)throw new Error("Supplied int exceeds width: "+n+" vs "+s.bitLength());return s.lt(new i(0))?s.toTwos(n).toString("hex"):n?o.leftPad(s.toString("hex"),n/8*2):s}throw new Error("Unsupported or invalid type: "+e)},u=function(e){if(Array.isArray(e))throw new Error("Autodetection of array types is not supported.");var t,r,a="";if(e&&"object"===(0,n.default)(e)&&(e.hasOwnProperty("v")||e.hasOwnProperty("t")||e.hasOwnProperty("value")||e.hasOwnProperty("type"))?(t=e.hasOwnProperty("t")?e.t:e.type,a=e.hasOwnProperty("v")?e.v:e.value):(t=o.toHex(e,!0),a=o.toHex(e),t.startsWith("int")||t.startsWith("uint")||(t="bytes")),!t.startsWith("int")&&!t.startsWith("uint")||"string"!=typeof a||/^(-)?0x/i.test(a)||(a=new i(a)),Array.isArray(a)){if((r=function(e){var t=/^\D+\d*\[(\d+)\]$/.exec(e);return t?parseInt(t[1],10):null}(t))&&a.length!==r)throw new Error(t+" is not matching the given array "+JSON.stringify(a));r=a.length}return Array.isArray(a)?a.map((function(e){return s(t,e,r).toString("hex").replace("0x","")})).join(""):s(t,a,r).toString("hex").replace("0x","")};e.exports={soliditySha3:function(){var e=Array.prototype.slice.call(arguments).map(u);return o.sha3("0x"+e.join(""))},soliditySha3Raw:function(){return o.sha3Raw("0x"+Array.prototype.slice.call(arguments).map(u).join(""))},encodePacked:function(){return"0x"+Array.prototype.slice.call(arguments).map(u).join("").toLowerCase()}}},function(e,t,r){"use strict";var n=r(167),i=r(12).errors,o=function(e){this.requestManager=e,this.requests=[]};o.prototype.add=function(e){this.requests.push(e)},o.prototype.execute=function(){var e=this.requests,t=this._sortResponses.bind(this);this.requestManager.sendBatch(e,(function(r,o){o=t(o),e.map((function(e,t){return o[t]||{}})).forEach((function(t,r){if(e[r].callback){if(t&&t.error)return e[r].callback(i.ErrorResponse(t));if(!n.isValidResponse(t))return e[r].callback(i.InvalidResponse(t));try{e[r].callback(null,e[r].format?e[r].format(t.result):t.result)}catch(t){e[r].callback(t)}}}))}))},o.prototype._sortResponses=function(e){return(e||[]).sort((function(e,t){return e.id-t.id}))},e.exports=o},function(e,t,r){"use strict";var n=r(0)(r(2)),i=null,o="object"===("undefined"==typeof globalThis?"undefined":(0,n.default)(globalThis))?globalThis:void 0;if(!o)try{o=Function("return this")()}catch(e){o=self}void 0!==o.ethereum?i=o.ethereum:void 0!==o.web3&&o.web3.currentProvider&&(o.web3.currentProvider.sendAsync&&(o.web3.currentProvider.send=o.web3.currentProvider.sendAsync,delete o.web3.currentProvider.sendAsync),!o.web3.currentProvider.on&&o.web3.currentProvider.connection&&"ipcProviderWrapper"===o.web3.currentProvider.connection.constructor.name&&(o.web3.currentProvider.on=function(e,t){if("function"!=typeof t)throw new Error("The second parameter callback must be a function.");"data"===e?this.connection.on("data",(function(e){var r="";e=e.toString();try{r=JSON.parse(e)}catch(r){return t(new Error("Couldn't parse response data"+e))}r.id||-1===r.method.indexOf("_subscription")||t(null,r)})):this.connection.on(e,t)}),i=o.web3.currentProvider),e.exports=i},function(e,t,r){"use strict";var n=r(104),i=r(337),o=r(12).errors,a=r(342).w3cwebsocket,s=function(e,t){n.call(this),t=t||{},this.url=e,this._customTimeout=t.timeout||15e3,this.headers=t.headers||{},this.protocol=t.protocol||void 0,this.reconnectOptions=Object.assign({auto:!1,delay:5e3,maxAttempts:!1,onTimeout:!1},t.reconnect),this.clientConfig=t.clientConfig||void 0,this.requestOptions=t.requestOptions||void 0,this.DATA="data",this.CLOSE="close",this.ERROR="error",this.CONNECT="connect",this.RECONNECT="reconnect",this.connection=null,this.requestQueue=new Map,this.responseQueue=new Map,this.reconnectAttempts=0,this.reconnecting=!1;var r=i.parseURL(e);r.username&&r.password&&(this.headers.authorization="Basic "+i.btoa(r.username+":"+r.password)),r.auth&&(this.headers.authorization="Basic "+i.btoa(r.auth)),Object.defineProperty(this,"connected",{get:function(){return this.connection&&this.connection.readyState===this.connection.OPEN},enumerable:!0}),this.connect()};(s.prototype=Object.create(n.prototype)).constructor=s,s.prototype.connect=function(){this.connection=new a(this.url,this.protocol,void 0,this.headers,this.requestOptions,this.clientConfig),this._addSocketListeners()},s.prototype._onMessage=function(e){var t=this;this._parseResponse("string"==typeof e.data?e.data:"").forEach((function(e){if(e.method&&-1!==e.method.indexOf("_subscription"))t.emit(t.DATA,e);else{var r=e.id;Array.isArray(e)&&(r=e[0].id),t.responseQueue.has(r)&&(void 0!==t.responseQueue.get(r).callback&&t.responseQueue.get(r).callback(!1,e),t.responseQueue.delete(r))}}))},s.prototype._onConnect=function(){if(this.emit(this.CONNECT),this.reconnectAttempts=0,this.reconnecting=!1,this.requestQueue.size>0){var e=this;this.requestQueue.forEach((function(t,r){e.send(t.payload,t.callback),e.requestQueue.delete(r)}))}},s.prototype._onClose=function(e){var t=this;!this.reconnectOptions.auto||[1e3,1001].includes(e.code)&&!1!==e.wasClean?(this.emit(this.CLOSE,e),this.requestQueue.size>0&&this.requestQueue.forEach((function(r,n){r.callback(o.ConnectionNotOpenError(e)),t.requestQueue.delete(n)})),this.responseQueue.size>0&&this.responseQueue.forEach((function(r,n){r.callback(o.InvalidConnection("on WS",e)),t.responseQueue.delete(n)})),this._removeSocketListeners(),this.removeAllListeners()):this.reconnect()},s.prototype._addSocketListeners=function(){this.connection.addEventListener("message",this._onMessage.bind(this)),this.connection.addEventListener("open",this._onConnect.bind(this)),this.connection.addEventListener("close",this._onClose.bind(this))},s.prototype._removeSocketListeners=function(){this.connection.removeEventListener("message",this._onMessage),this.connection.removeEventListener("open",this._onConnect),this.connection.removeEventListener("close",this._onClose)},s.prototype._parseResponse=function(e){var t=this,r=[];return e.replace(/\}[\n\r]?\{/g,"}|--|{").replace(/\}\][\n\r]?\[\{/g,"}]|--|[{").replace(/\}[\n\r]?\[\{/g,"}|--|[{").replace(/\}\][\n\r]?\{/g,"}]|--|{").split("|--|").forEach((function(e){t.lastChunk&&(e=t.lastChunk+e);var n=null;try{n=JSON.parse(e)}catch(r){return t.lastChunk=e,clearTimeout(t.lastChunkTimeout),void(t.lastChunkTimeout=setTimeout((function(){t.reconnectOptions.auto&&t.reconnectOptions.onTimeout?t.reconnect():(t.emit(t.ERROR,o.ConnectionTimeout(t._customTimeout)),t.requestQueue.size>0&&t.requestQueue.forEach((function(e,r){e.callback(o.ConnectionTimeout(t._customTimeout)),t.requestQueue.delete(r)})))}),t._customTimeout))}clearTimeout(t.lastChunkTimeout),t.lastChunk=null,n&&r.push(n)})),r},s.prototype.send=function(e,t){var r=e.id,n={payload:e,callback:t};if(Array.isArray(e)&&(r=e[0].id),this.connection.readyState===this.connection.CONNECTING||this.reconnecting)this.requestQueue.set(r,n);else{if(this.connection.readyState!==this.connection.OPEN)return this.requestQueue.delete(r),this.emit(this.ERROR,o.ConnectionNotOpenError()),void n.callback(o.ConnectionNotOpenError());this.responseQueue.set(r,n),this.requestQueue.delete(r);try{this.connection.send(JSON.stringify(n.payload))}catch(e){n.callback(e),this.responseQueue.delete(r)}}},s.prototype.reset=function(){this.responseQueue.clear(),this.requestQueue.clear(),this.removeAllListeners(),this._removeSocketListeners(),this._addSocketListeners()},s.prototype.disconnect=function(e,t){this._removeSocketListeners(),this.connection.close(e||1e3,t)},s.prototype.supportsSubscriptions=function(){return!0},s.prototype.reconnect=function(){var e=this;this.reconnecting=!0,this.responseQueue.size>0&&this.responseQueue.forEach((function(t,r){t.callback(o.PendingRequestsOnReconnectingError()),e.responseQueue.delete(r)})),!this.reconnectOptions.maxAttempts||this.reconnectAttempts<this.reconnectOptions.maxAttempts?setTimeout((function(){e.reconnectAttempts++,e._removeSocketListeners(),e.emit(e.RECONNECT,e.reconnectAttempts),e.connect()}),this.reconnectOptions.delay):(this.emit(this.ERROR,o.MaxAttemptsReachedOnReconnectingError()),this.reconnecting=!1,this.requestQueue.size>0&&this.requestQueue.forEach((function(t,r){t.callback(o.MaxAttemptsReachedOnReconnectingError()),e.requestQueue.delete(r)})))},e.exports=s},function(e,t,r){"use strict";(function(t,n){var i=r(0)(r(2)),o="[object process]"===Object.prototype.toString.call(void 0!==t?t:0),a="undefined"!=typeof navigator&&"ReactNative"===navigator.product,s=null,u=null;if(o||a){s=function(e){return n.from(e).toString("base64")};var c=r(77);if(c.URL){var f=c.URL;u=function(e){return new f(e)}}else u=r(77).parse}else s=btoa.bind("object"===("undefined"==typeof globalThis?"undefined":(0,i.default)(globalThis))?globalThis:self),u=function(e){return new URL(e)};e.exports={parseURL:u,btoa:s}}).call(this,r(6),r(1).Buffer)},function(e,t,r){"use strict";var n=r(0)(r(2));e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"===(0,n.default)(e)&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,r){"use strict";t.decode=t.parse=r(340),t.encode=t.stringify=r(341)},function(e,t,r){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,r,o){t=t||"&",r=r||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var u=1e3;o&&"number"==typeof o.maxKeys&&(u=o.maxKeys);var c=e.length;u>0&&c>u&&(c=u);for(var f=0;f<c;++f){var l,d,h,p,b=e[f].replace(s,"%20"),y=b.indexOf(r);y>=0?(l=b.substr(0,y),d=b.substr(y+1)):(l=b,d=""),h=decodeURIComponent(l),p=decodeURIComponent(d),n(a,h)?i(a[h])?a[h].push(p):a[h]=[a[h],p]:a[h]=p}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,r){"use strict";var n=r(0)(r(2)),i=function(e){switch((0,n.default)(e)){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,r,u){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"===(0,n.default)(e)?a(s(e),(function(n){var s=encodeURIComponent(i(n))+r;return o(e[n])?a(e[n],(function(e){return s+encodeURIComponent(i(e))})).join(t):s+encodeURIComponent(i(e[n]))})).join(t):u?encodeURIComponent(i(u))+r+encodeURIComponent(i(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function a(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var s=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}},function(e,t,r){"use strict";var n,i=r(0)(r(2));if("object"===("undefined"==typeof globalThis?"undefined":(0,i.default)(globalThis)))n=globalThis;else try{n=r(343)}catch(e){}finally{if(n||"undefined"==typeof window||(n=window),!n)throw new Error("Could not determine global this")}var o=n.WebSocket||n.MozWebSocket,a=r(344);function s(e,t){return t?new o(e,t):new o(e)}o&&["CONNECTING","OPEN","CLOSING","CLOSED"].forEach((function(e){Object.defineProperty(s,e,{get:function(){return o[e]}})})),e.exports={w3cwebsocket:o?s:null,version:a}},function(e,t,r){"use strict";var n=r(0)(r(2)),i=function(){if("object"===("undefined"==typeof self?"undefined":(0,n.default)(self))&&self)return self;if("object"===("undefined"==typeof window?"undefined":(0,n.default)(window))&&window)return window;throw new Error("Unable to resolve global `this`")};e.exports=function(){if(this)return this;if("object"===("undefined"==typeof globalThis?"undefined":(0,n.default)(globalThis))&&globalThis)return globalThis;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return i()}try{return __global__||i()}finally{delete Object.prototype.__global__}}()},function(e,t,r){"use strict";e.exports=r(345).version},function(e){e.exports=JSON.parse('{"_args":[["websocket@1.0.34","/Users/user1/Desktop/office/web3/deployments/1.8.1/web3.js"]],"_from":"websocket@1.0.34","_id":"websocket@1.0.34","_inBundle":false,"_integrity":"sha512-PRDso2sGwF6kM75QykIesBijKSVceR6jL2G8NGYyq2XrItNC2P5/qL5XeR056GhA+Ly7JMFvJb9I312mJfmqnQ==","_location":"/websocket","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"websocket@1.0.34","name":"websocket","escapedName":"websocket","rawSpec":"1.0.34","saveSpec":null,"fetchSpec":"1.0.34"},"_requiredBy":["/web3-providers-ws"],"_resolved":"https://registry.npmjs.org/websocket/-/websocket-1.0.34.tgz","_spec":"1.0.34","_where":"/Users/user1/Desktop/office/web3/deployments/1.8.1/web3.js","author":{"name":"Brian McKelvey","email":"theturtle32@gmail.com","url":"https://github.com/theturtle32"},"browser":"lib/browser.js","bugs":{"url":"https://github.com/theturtle32/WebSocket-Node/issues"},"config":{"verbose":false},"contributors":[{"name":"Iñaki Baz Castillo","email":"ibc@aliax.net","url":"http://dev.sipdoc.net"}],"dependencies":{"bufferutil":"^4.0.1","debug":"^2.2.0","es5-ext":"^0.10.50","typedarray-to-buffer":"^3.1.5","utf-8-validate":"^5.0.2","yaeti":"^0.0.6"},"description":"Websocket Client & Server Library implementing the WebSocket protocol as specified in RFC 6455.","devDependencies":{"buffer-equal":"^1.0.0","gulp":"^4.0.2","gulp-jshint":"^2.0.4","jshint":"^2.0.0","jshint-stylish":"^2.2.1","tape":"^4.9.1"},"directories":{"lib":"./lib"},"engines":{"node":">=4.0.0"},"homepage":"https://github.com/theturtle32/WebSocket-Node","keywords":["websocket","websockets","socket","networking","comet","push","RFC-6455","realtime","server","client"],"license":"Apache-2.0","main":"index","name":"websocket","repository":{"type":"git","url":"git+https://github.com/theturtle32/WebSocket-Node.git"},"scripts":{"gulp":"gulp","test":"tape test/unit/*.js"},"version":"1.0.34"}')},function(e,t,r){"use strict";var n=r(12).errors,i=r(169),o=r(350);r(351),r(352).polyfill(),r(353);var a=function(e,t){t=t||{},this.withCredentials=t.withCredentials,this.timeout=t.timeout||0,this.headers=t.headers,this.agent=t.agent,this.connected=!1;var r=!1!==t.keepAlive;this.host=e||"http://localhost:8545",this.agent||("https"===this.host.substring(0,5)?this.httpsAgent=new o.Agent({keepAlive:r}):this.httpAgent=new i.Agent({keepAlive:r}))};a.prototype.send=function(e,t){var r,i={method:"POST",body:JSON.stringify(e)},o={};if("undefined"!=typeof AbortController?r=new AbortController:"undefined"!=typeof window&&void 0!==window.AbortController&&(r=new window.AbortController),void 0!==r&&(i.signal=r.signal),"undefined"==typeof XMLHttpRequest){var a={httpsAgent:this.httpsAgent,httpAgent:this.httpAgent};this.agent&&(a.httpsAgent=this.agent.https,a.httpAgent=this.agent.http),"https"===this.host.substring(0,5)?i.agent=a.httpsAgent:i.agent=a.httpAgent}this.headers&&this.headers.forEach((function(e){o[e.name]=e.value})),o["Content-Type"]||(o["Content-Type"]="application/json"),this.withCredentials?i.credentials="include":i.credentials="omit",i.headers=o,this.timeout>0&&void 0!==r&&(this.timeoutId=setTimeout((function(){r.abort()}),this.timeout)),fetch(this.host,i).then(function(e){void 0!==this.timeoutId&&clearTimeout(this.timeoutId),e.json().then((function(e){t(null,e)})).catch((function(r){t(n.InvalidResponse(e))}))}.bind(this)).catch(function(e){void 0!==this.timeoutId&&clearTimeout(this.timeoutId),"AbortError"===e.name&&t(n.ConnectionTimeout(this.timeout)),t(n.InvalidConnection(this.host))}.bind(this))},a.prototype.disconnect=function(){},a.prototype.supportsSubscriptions=function(){return!1},e.exports=a},function(e,t,r){"use strict";(function(t,n,i){var o=r(170),a=r(91),s=r(171),u=r(61),c=r(348),f=s.IncomingMessage,l=s.readyStates,d=e.exports=function(e){var r,n=this;u.Writable.call(n),n._opts=e,n._body=[],n._headers={},e.auth&&n.setHeader("Authorization","Basic "+new t(e.auth).toString("base64")),Object.keys(e.headers).forEach((function(t){n.setHeader(t,e.headers[t])}));var i=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!o.abortController)i=!1,r=!0;else if("prefer-streaming"===e.mode)r=!1;else if("allow-wrong-content-type"===e.mode)r=!o.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");r=!0}n._mode=function(e,t){return o.fetch&&t?"fetch":o.mozchunkedarraybuffer?"moz-chunked-arraybuffer":o.msstream?"ms-stream":o.arraybuffer&&e?"arraybuffer":o.vbArray&&e?"text:vbarray":"text"}(r,i),n._fetchTimer=null,n.on("finish",(function(){n._onFinish()}))};a(d,u.Writable),d.prototype.setHeader=function(e,t){var r=e.toLowerCase();-1===h.indexOf(r)&&(this._headers[r]={name:e,value:t})},d.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},d.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},d.prototype._onFinish=function(){var e=this;if(!e._destroyed){var r=e._opts,a=e._headers,s=null;"GET"!==r.method&&"HEAD"!==r.method&&(s=o.arraybuffer?c(t.concat(e._body)):o.blobConstructor?new n.Blob(e._body.map((function(e){return c(e)})),{type:(a["content-type"]||{}).value||""}):t.concat(e._body).toString());var u=[];if(Object.keys(a).forEach((function(e){var t=a[e].name,r=a[e].value;Array.isArray(r)?r.forEach((function(e){u.push([t,e])})):u.push([t,r])})),"fetch"===e._mode){var f=null;if(o.abortController){var d=new AbortController;f=d.signal,e._fetchAbortController=d,"requestTimeout"in r&&0!==r.requestTimeout&&(e._fetchTimer=n.setTimeout((function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()}),r.requestTimeout))}n.fetch(e._opts.url,{method:e._opts.method,headers:u,body:s||void 0,mode:"cors",credentials:r.withCredentials?"include":"same-origin",signal:f}).then((function(t){e._fetchResponse=t,e._connect()}),(function(t){n.clearTimeout(e._fetchTimer),e._destroyed||e.emit("error",t)}))}else{var h=e._xhr=new n.XMLHttpRequest;try{h.open(e._opts.method,e._opts.url,!0)}catch(t){return void i.nextTick((function(){e.emit("error",t)}))}"responseType"in h&&(h.responseType=e._mode.split(":")[0]),"withCredentials"in h&&(h.withCredentials=!!r.withCredentials),"text"===e._mode&&"overrideMimeType"in h&&h.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in r&&(h.timeout=r.requestTimeout,h.ontimeout=function(){e.emit("requestTimeout")}),u.forEach((function(e){h.setRequestHeader(e[0],e[1])})),e._response=null,h.onreadystatechange=function(){switch(h.readyState){case l.LOADING:case l.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(h.onprogress=function(){e._onXHRProgress()}),h.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{h.send(s)}catch(t){return void i.nextTick((function(){e.emit("error",t)}))}}}},d.prototype._onXHRProgress=function(){(function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}})(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())},d.prototype._connect=function(){var e=this;e._destroyed||(e._response=new f(e._xhr,e._fetchResponse,e._mode,e._fetchTimer),e._response.on("error",(function(t){e.emit("error",t)})),e.emit("response",e._response))},d.prototype._write=function(e,t,r){this._body.push(e),r()},d.prototype.abort=d.prototype.destroy=function(){this._destroyed=!0,n.clearTimeout(this._fetchTimer),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},d.prototype.end=function(e,t,r){"function"==typeof e&&(r=e,e=void 0),u.Writable.prototype.end.call(this,e,t,r)},d.prototype.flushHeaders=function(){},d.prototype.setTimeout=function(){},d.prototype.setNoDelay=function(){},d.prototype.setSocketKeepAlive=function(){};var h=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}).call(this,r(1).Buffer,r(7),r(6))},function(e,t,r){"use strict";var n=r(1).Buffer;e.exports=function(e){if(e instanceof Uint8Array){if(0===e.byteOffset&&e.byteLength===e.buffer.byteLength)return e.buffer;if("function"==typeof e.buffer.slice)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(n.isBuffer(e)){for(var t=new Uint8Array(e.length),r=e.length,i=0;i<r;i++)t[i]=e[i];return t.buffer}throw new Error("Argument must be a Buffer")}},function(e,t,r){"use strict";e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},function(e,t,r){"use strict";var n=r(169),i=r(77),o=e.exports;for(var a in n)n.hasOwnProperty(a)&&(o[a]=n[a]);function s(e){if("string"==typeof e&&(e=i.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}o.request=function(e,t){return e=s(e),n.request.call(this,e,t)},o.get=function(e,t){return e=s(e),n.get.call(this,e,t)}},function(e,t,r){"use strict";!function(e){!function(t){var r="URLSearchParams"in e,n="Symbol"in e&&"iterator"in Symbol,i="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),o="FormData"in e,a="ArrayBuffer"in e;if(a)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function c(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function f(e){return"string"!=typeof e&&(e=String(e)),e}function l(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n&&(t[Symbol.iterator]=function(){return t}),t}function d(e){this.map={},e instanceof d?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function h(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function p(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function b(e){var t=new FileReader,r=p(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:o&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&i&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=y(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(b)}),this.text=function(){var e,t,r,n=h(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,r=p(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(e,t){e=c(e),t=f(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},d.prototype.delete=function(e){delete this.map[c(e)]},d.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},d.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},d.prototype.set=function(e,t){this.map[c(e)]=f(t)},d.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},d.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),l(e)},d.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),l(e)},d.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),l(e)},n&&(d.prototype[Symbol.iterator]=d.prototype.entries);var m=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function v(e,t){var r,n,i=(t=t||{}).body;if(e instanceof v){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new d(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new d(t.headers)),this.method=(n=(r=t.method||this.method||"GET").toUpperCase(),m.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function w(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(i))}})),t}function _(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new d(t.headers),this.url=t.url||"",this._initBody(e)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},g.call(v.prototype),g.call(_.prototype),_.prototype.clone=function(){return new _(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},_.error=function(){var e=new _(null,{status:0,statusText:""});return e.type="error",e};var x=[301,302,303,307,308];_.redirect=function(e,t){if(-1===x.indexOf(t))throw new RangeError("Invalid status code");return new _(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function O(e,r){return new Promise((function(n,o){var a=new v(e,r);if(a.signal&&a.signal.aborted)return o(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function u(){s.abort()}s.onload=function(){var e,t,r={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new d,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();t.append(n,i)}})),t)};r.url="responseURL"in s?s.responseURL:r.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;n(new _(i,r))},s.onerror=function(){o(new TypeError("Network request failed"))},s.ontimeout=function(){o(new TypeError("Network request failed"))},s.onabort=function(){o(new t.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&i&&(s.responseType="blob"),a.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",u),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",u)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}O.polyfill=!0,e.fetch||(e.fetch=O,e.Headers=d,e.Request=v,e.Response=_),t.Headers=d,t.Request=v,t.Response=_,t.fetch=O,Object.defineProperty(t,"__esModule",{value:!0})}({})}("undefined"!=typeof self?self:void 0)},function(e,t,r){"use strict";(function(n,i){var o,a,s,u=r(0)(r(2));s=function(){function e(e){return"function"==typeof e}var t=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},r=0,o=void 0,a=void 0,s=function(e,t){b[r]=e,b[r+1]=t,2===(r+=2)&&(a?a(y):_())},c="undefined"!=typeof window?window:void 0,f=c||{},l=f.MutationObserver||f.WebKitMutationObserver,d="undefined"==typeof self&&void 0!==n&&"[object process]"==={}.toString.call(n),h="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function p(){var e=setTimeout;return function(){return e(y,1)}}var b=new Array(1e3);function y(){for(var e=0;e<r;e+=2)(0,b[e])(b[e+1]),b[e]=void 0,b[e+1]=void 0;r=0}var g,m,v,w,_=void 0;function x(e,t){var r=this,n=new this.constructor(P);void 0===n[k]&&R(n);var i=r._state;if(i){var o=arguments[i-1];s((function(){return I(i,n,o,r._result)}))}else T(r,n,e,t);return n}function O(e){if(e&&"object"===(0,u.default)(e)&&e.constructor===this)return e;var t=new this(P);return A(t,e),t}d?_=function(){return n.nextTick(y)}:l?(m=0,v=new l(y),w=document.createTextNode(""),v.observe(w,{characterData:!0}),_=function(){w.data=m=++m%2}):h?((g=new MessageChannel).port1.onmessage=y,_=function(){return g.port2.postMessage(0)}):_=void 0===c?function(){try{var e=Function("return this")().require("vertx");return void 0!==(o=e.runOnLoop||e.runOnContext)?function(){o(y)}:p()}catch(e){return p()}}():p();var k=Math.random().toString(36).substring(2);function P(){}function S(t,r,n){r.constructor===t.constructor&&n===x&&r.constructor.resolve===O?function(e,t){1===t._state?M(e,t._result):2===t._state?j(e,t._result):T(t,void 0,(function(t){return A(e,t)}),(function(t){return j(e,t)}))}(t,r):void 0===n?M(t,r):e(n)?function(e,t,r){s((function(e){var n=!1,i=function(e,t,r,n){try{e.call(t,r,n)}catch(e){return e}}(r,t,(function(r){n||(n=!0,t!==r?A(e,r):M(e,r))}),(function(t){n||(n=!0,j(e,t))}),e._label);!n&&i&&(n=!0,j(e,i))}),e)}(t,r,n):M(t,r)}function A(e,t){if(e===t)j(e,new TypeError("You cannot resolve a promise with itself"));else if(n=t,i=(0,u.default)(n),null===n||"object"!==i&&"function"!==i)M(e,t);else{var r=void 0;try{r=t.then}catch(t){return void j(e,t)}S(e,t,r)}var n,i}function E(e){e._onerror&&e._onerror(e._result),B(e)}function M(e,t){void 0===e._state&&(e._result=t,e._state=1,0!==e._subscribers.length&&s(B,e))}function j(e,t){void 0===e._state&&(e._state=2,e._result=t,s(E,e))}function T(e,t,r,n){var i=e._subscribers,o=i.length;e._onerror=null,i[o]=t,i[o+1]=r,i[o+2]=n,0===o&&e._state&&s(B,e)}function B(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var n=void 0,i=void 0,o=e._result,a=0;a<t.length;a+=3)n=t[a],i=t[a+r],n?I(r,n,i,o):i(o);e._subscribers.length=0}}function I(t,r,n,i){var o=e(n),a=void 0,s=void 0,u=!0;if(o){try{a=n(i)}catch(e){u=!1,s=e}if(r===a)return void j(r,new TypeError("A promises callback cannot return that same promise."))}else a=i;void 0!==r._state||(o&&u?A(r,a):!1===u?j(r,s):1===t?M(r,a):2===t&&j(r,a))}var N=0;function R(e){e[k]=N++,e._state=void 0,e._result=void 0,e._subscribers=[]}var C=function(){function e(e,r){this._instanceConstructor=e,this.promise=new e(P),this.promise[k]||R(this.promise),t(r)?(this.length=r.length,this._remaining=r.length,this._result=new Array(this.length),0===this.length?M(this.promise,this._result):(this.length=this.length||0,this._enumerate(r),0===this._remaining&&M(this.promise,this._result))):j(this.promise,new Error("Array Methods must be provided an Array"))}return e.prototype._enumerate=function(e){for(var t=0;void 0===this._state&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var r=this._instanceConstructor,n=r.resolve;if(n===O){var i=void 0,o=void 0,a=!1;try{i=e.then}catch(e){a=!0,o=e}if(i===x&&void 0!==e._state)this._settledAt(e._state,t,e._result);else if("function"!=typeof i)this._remaining--,this._result[t]=e;else if(r===U){var s=new r(P);a?j(s,o):S(s,e,i),this._willSettleAt(s,t)}else this._willSettleAt(new r((function(t){return t(e)})),t)}else this._willSettleAt(n(e),t)},e.prototype._settledAt=function(e,t,r){var n=this.promise;void 0===n._state&&(this._remaining--,2===e?j(n,r):this._result[t]=r),0===this._remaining&&M(n,this._result)},e.prototype._willSettleAt=function(e,t){var r=this;T(e,void 0,(function(e){return r._settledAt(1,t,e)}),(function(e){return r._settledAt(2,t,e)}))},e}(),U=function(){function t(e){this[k]=N++,this._result=this._state=void 0,this._subscribers=[],P!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof t?function(e,t){try{t((function(t){A(e,t)}),(function(t){j(e,t)}))}catch(t){j(e,t)}}(this,e):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return t.prototype.catch=function(e){return this.then(null,e)},t.prototype.finally=function(t){var r=this.constructor;return e(t)?this.then((function(e){return r.resolve(t()).then((function(){return e}))}),(function(e){return r.resolve(t()).then((function(){throw e}))})):this.then(t,t)},t}();return U.prototype.then=x,U.all=function(e){return new C(this,e).promise},U.race=function(e){var r=this;return t(e)?new r((function(t,n){for(var i=e.length,o=0;o<i;o++)r.resolve(e[o]).then(t,n)})):new r((function(e,t){return t(new TypeError("You must pass an array to race."))}))},U.resolve=O,U.reject=function(e){var t=new this(P);return j(t,e),t},U._setScheduler=function(e){a=e},U._setAsap=function(e){s=e},U._asap=s,U.polyfill=function(){var e=void 0;if(void 0!==i)e=i;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===r&&!t.cast)return}e.Promise=U},U.Promise=U,U},"object"===(0,u.default)(t)&&void 0!==e?e.exports=s():void 0===(a="function"==typeof(o=s)?o.call(t,r,t,e):o)||(e.exports=a)}).call(this,r(6),r(7))},function(e,t,r){"use strict";(function(n){var i,o,a=r(0)(r(2));void 0===(o="function"==typeof(i=function(){function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function o(e,t){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=i(e);if(t){var o=i(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===(0,a.default)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return s(e)}(this,r)}}function c(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=i(e)););return e}function f(){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=c(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}var l=function(){function t(){e(this,t),Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}return r(t,[{key:"addEventListener",value:function(e,t,r){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push({callback:t,options:r})}},{key:"removeEventListener",value:function(e,t){if(e in this.listeners)for(var r=this.listeners[e],n=0,i=r.length;n<i;n++)if(r[n].callback===t)return void r.splice(n,1)}},{key:"dispatchEvent",value:function(e){if(e.type in this.listeners){for(var t=this.listeners[e.type].slice(),r=0,n=t.length;r<n;r++){var i=t[r];try{i.callback.call(this,e)}catch(e){Promise.resolve().then((function(){throw e}))}i.options&&i.options.once&&this.removeEventListener(e.type,i.callback)}return!e.defaultPrevented}}}]),t}(),d=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)}(a,t);var n=u(a);function a(){var t;return e(this,a),(t=n.call(this)).listeners||l.call(s(t)),Object.defineProperty(s(t),"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(s(t),"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(s(t),"reason",{value:void 0,writable:!0,configurable:!0}),t}return r(a,[{key:"toString",value:function(){return"[object AbortSignal]"}},{key:"dispatchEvent",value:function(e){"abort"===e.type&&(this.aborted=!0,"function"==typeof this.onabort&&this.onabort.call(this,e)),f(i(a.prototype),"dispatchEvent",this).call(this,e)}}]),a}(l),h=function(){function t(){e(this,t),Object.defineProperty(this,"signal",{value:new d,writable:!0,configurable:!0})}return r(t,[{key:"abort",value:function(e){var t;try{t=new Event("abort")}catch(e){"undefined"!=typeof document?document.createEvent?(t=document.createEvent("Event")).initEvent("abort",!1,!1):(t=document.createEventObject()).type="abort":t={type:"abort",bubbles:!1,cancelable:!1}}var r=e;if(void 0===r)if("undefined"==typeof document)(r=new Error("This operation was aborted")).name="AbortError";else try{r=new DOMException("signal is aborted without reason")}catch(e){(r=new Error("This operation was aborted")).name="AbortError"}this.signal.reason=r,this.signal.dispatchEvent(t)}},{key:"toString",value:function(){return"[object AbortController]"}}]),t}();function p(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):"function"==typeof e.Request&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController}"undefined"!=typeof Symbol&&Symbol.toStringTag&&(h.prototype[Symbol.toStringTag]="AbortController",d.prototype[Symbol.toStringTag]="AbortSignal"),function(e){if(p(e))if(e.fetch){var t=function(e){"function"==typeof e&&(e={fetch:e});var t=e,r=t.fetch,n=t.Request,i=void 0===n?r.Request:n,o=t.AbortController,a=t.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL,s=void 0!==a&&a;if(!p({fetch:r,Request:i,AbortController:o,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:s}))return{fetch:r,Request:u};var u=i;(u&&!u.prototype.hasOwnProperty("signal")||s)&&((u=function(e,t){var r;t&&t.signal&&(r=t.signal,delete t.signal);var n=new i(e,t);return r&&Object.defineProperty(n,"signal",{writable:!1,enumerable:!1,configurable:!0,value:r}),n}).prototype=i.prototype);var c=r;return{fetch:function(e,t){var r=u&&u.prototype.isPrototypeOf(e)?e.signal:t?t.signal:void 0;if(r){var n;try{n=new DOMException("Aborted","AbortError")}catch(e){(n=new Error("Aborted")).name="AbortError"}if(r.aborted)return Promise.reject(n);var i=new Promise((function(e,t){r.addEventListener("abort",(function(){return t(n)}),{once:!0})}));return t&&t.signal&&delete t.signal,Promise.race([i,c(e,t)])}return c(e,t)},Request:u}}(e),r=t.fetch,n=t.Request;e.fetch=r,e.Request=n,Object.defineProperty(e,"AbortController",{writable:!0,enumerable:!1,configurable:!0,value:h}),Object.defineProperty(e,"AbortSignal",{writable:!0,enumerable:!1,configurable:!0,value:d})}else console.warn("fetch() is not available, cannot install abortcontroller-polyfill")}("undefined"!=typeof self?self:n)})?i.call(t,r,t,e):i)||(e.exports=o)}).call(this,r(7))},function(e,t,r){"use strict";var n=r(12).errors,i=r(355),o=function(e,t){var r=this;this.responseCallbacks={},this.notificationCallbacks=[],this.path=e,this.connected=!1,this.connection=t.connect({path:this.path}),this.addDefaultEvents();var n=function(e){var t=null;Array.isArray(e)?e.forEach((function(e){r.responseCallbacks[e.id]&&(t=e.id)})):t=e.id,t||-1===e.method.indexOf("_subscription")?r.responseCallbacks[t]&&(r.responseCallbacks[t](null,e),delete r.responseCallbacks[t]):r.notificationCallbacks.forEach((function(t){"function"==typeof t&&t(e)}))};"Socket"===t.constructor.name?i(this.connection).done(n):this.connection.on("data",(function(e){r._parseResponse(e.toString()).forEach(n)}))};o.prototype.addDefaultEvents=function(){var e=this;this.connection.on("connect",(function(){e.connected=!0})),this.connection.on("close",(function(){e.connected=!1})),this.connection.on("error",(function(){e._timeout()})),this.connection.on("end",(function(){e._timeout()})),this.connection.on("timeout",(function(){e._timeout()}))},o.prototype._parseResponse=function(e){var t=this,r=[];return e.replace(/\}[\n\r]?\{/g,"}|--|{").replace(/\}\][\n\r]?\[\{/g,"}]|--|[{").replace(/\}[\n\r]?\[\{/g,"}|--|[{").replace(/\}\][\n\r]?\{/g,"}]|--|{").split("|--|").forEach((function(e){t.lastChunk&&(e=t.lastChunk+e);var i=null;try{i=JSON.parse(e)}catch(r){return t.lastChunk=e,clearTimeout(t.lastChunkTimeout),void(t.lastChunkTimeout=setTimeout((function(){throw t._timeout(),n.InvalidResponse(e)}),15e3))}clearTimeout(t.lastChunkTimeout),t.lastChunk=null,i&&r.push(i)})),r},o.prototype._addResponseCallback=function(e,t){var r=e.id||e[0].id,n=e.method||e[0].method;this.responseCallbacks[r]=t,this.responseCallbacks[r].method=n},o.prototype._timeout=function(){for(var e in this.responseCallbacks)this.responseCallbacks.hasOwnProperty(e)&&(this.responseCallbacks[e](n.InvalidConnection("on IPC")),delete this.responseCallbacks[e])},o.prototype.reconnect=function(){this.connection.connect({path:this.path})},o.prototype.send=function(e,t){this.connection.writable||this.connection.connect({path:this.path}),this.connection.write(JSON.stringify(e)),this._addResponseCallback(e,t)},o.prototype.on=function(e,t){if("function"!=typeof t)throw new Error("The second parameter callback must be a function.");"data"===e?this.notificationCallbacks.push(t):this.connection.on(e,t)},o.prototype.once=function(e,t){if("function"!=typeof t)throw new Error("The second parameter callback must be a function.");this.connection.once(e,t)},o.prototype.removeListener=function(e,t){var r=this;"data"===e?this.notificationCallbacks.forEach((function(e,n){e===t&&r.notificationCallbacks.splice(n,1)})):this.connection.removeListener(e,t)},o.prototype.removeAllListeners=function(e){"data"===e?this.notificationCallbacks=[]:this.connection.removeAllListeners(e)},o.prototype.reset=function(){this._timeout(),this.notificationCallbacks=[],this.connection.removeAllListeners("error"),this.connection.removeAllListeners("end"),this.connection.removeAllListeners("timeout"),this.addDefaultEvents()},o.prototype.supportsSubscriptions=function(){return!0},e.exports=o},function(e,t,r){"use strict";(function(e){var n,i,o,a,s=r(0)(r(2));"undefined"!=typeof self&&self,a=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=7)}([function(e,t,r){r.d(t,"j",(function(){return i})),r.d(t,"d",(function(){return o})),r.d(t,"c",(function(){return a})),r.d(t,"h",(function(){return s})),r.d(t,"b",(function(){return u})),r.d(t,"k",(function(){return c})),r.d(t,"e",(function(){return f})),r.d(t,"g",(function(){return l})),r.d(t,"i",(function(){return d})),r.d(t,"a",(function(){return h})),r.d(t,"f",(function(){return p}));var n=r(1),i=c((function(e,t){var r=t.length;return c((function(n){for(var i=0;i<n.length;i++)t[r+i]=n[i];return t.length=r+n.length,e.apply(this,t)}))}));function o(e,t){return function(){return e.call(this,t.apply(this,arguments))}}function a(e){return function(t){return t[e]}}c((function(e){var t=Object(n.c)(e);function r(e,t){return[u(e,t)]}return c((function(e){return Object(n.f)(r,e,t)[0]}))}));var s=c((function(e){return c((function(t){for(var r,n=0;n<a("length")(e);n++)if(r=u(t,e[n]))return r}))}));function u(e,t){return t.apply(void 0,e)}function c(e){var t=e.length-1,r=Array.prototype.slice;if(0===t)return function(){return e.call(this,r.call(arguments))};if(1===t)return function(){return e.call(this,arguments[0],r.call(arguments,1))};var n=Array(e.length);return function(){for(var i=0;i<t;i++)n[i]=arguments[i];return n[t]=r.call(arguments,t),e.apply(this,n)}}function f(e){return function(t,r){return e(r,t)}}function l(e,t){return function(r){return e(r)&&t(r)}}function d(){}function h(){return!0}function p(e){return function(){return e}}},function(e,t,r){r.d(t,"d",(function(){return i})),r.d(t,"g",(function(){return o})),r.d(t,"l",(function(){return a})),r.d(t,"c",(function(){return s})),r.d(t,"h",(function(){return u})),r.d(t,"i",(function(){return c})),r.d(t,"j",(function(){return f})),r.d(t,"f",(function(){return l})),r.d(t,"m",(function(){return d})),r.d(t,"a",(function(){return h})),r.d(t,"b",(function(){return p})),r.d(t,"k",(function(){return b})),r.d(t,"e",(function(){return y}));var n=r(0);function i(e,t){return[e,t]}var o=Object(n.c)(0),a=Object(n.c)(1);function s(e){return b(e.reduce(Object(n.e)(i),null))}var u=Object(n.k)(s);function c(e){return l((function(e,t){return e.unshift(t),e}),[],e)}function f(e,t){return t?i(e(o(t)),f(e,a(t))):null}function l(e,t,r){return r?e(l(e,t,a(r)),o(r)):t}function d(e,t,r){return function e(r,n){return r?t(o(r))?(n(o(r)),a(r)):i(o(r),e(a(r),n)):null}(e,r||n.i)}function h(e,t){return!t||e(o(t))&&h(e,a(t))}function p(e,t){e&&(o(e).apply(null,t),p(a(e),t))}function b(e){return function e(t,r){return t?e(a(t),i(o(t),r)):r}(e,null)}function y(e,t){return t&&(e(o(t))?o(t):y(e,a(t)))}},function(e,t,r){r.d(t,"c",(function(){return o})),r.d(t,"e",(function(){return a})),r.d(t,"d",(function(){return s})),r.d(t,"a",(function(){return u})),r.d(t,"b",(function(){return c}));var n=r(1),i=r(0);function o(e,t){return t&&t.constructor===e}var a=Object(i.c)("length"),s=Object(i.j)(o,String);function u(e){return void 0!==e}function c(e,t){return t instanceof Object&&Object(n.a)((function(e){return e in t}),e)}},function(e,t,r){r.d(t,"f",(function(){return i})),r.d(t,"d",(function(){return o})),r.d(t,"g",(function(){return a})),r.d(t,"e",(function(){return s})),r.d(t,"b",(function(){return u})),r.d(t,"h",(function(){return c})),r.d(t,"i",(function(){return f})),r.d(t,"c",(function(){return l})),r.d(t,"m",(function(){return d})),r.d(t,"n",(function(){return h})),r.d(t,"a",(function(){return p})),r.d(t,"j",(function(){return b})),r.d(t,"l",(function(){return y})),r.d(t,"k",(function(){return g})),r.d(t,"o",(function(){return m}));var n=1,i=n++,o=n++,a=n++,s=n++,u="fail",c=n++,f=n++,l="start",d="data",h="end",p=n++,b=n++,y=n++,g=n++;function m(e,t,r){try{var n=JSON.parse(t)}catch(e){}return{statusCode:e,body:t,jsonBody:n,thrown:r}}},function(e,t,r){r.d(t,"b",(function(){return i})),r.d(t,"a",(function(){return o})),r.d(t,"c",(function(){return a}));var n=r(0);function i(e,t){return{key:e,node:t}}var o=Object(n.c)("key"),a=Object(n.c)("node")},function(e,t,r){r.d(t,"a",(function(){return u}));var n=r(1),i=r(0),o=r(2),a=r(8),s=r(9);function u(e){var t=Object(n.h)("resume","pause","pipe"),r=Object(i.j)(o.b,t);return e?r(e)||Object(o.d)(e)?Object(a.a)(s.a,e):Object(a.a)(s.a,e.url,e.method,e.body,e.headers,e.withCredentials,e.cached):Object(s.a)()}u.drop=function(){return u.drop}},function(e,t,r){r.d(t,"b",(function(){return u})),r.d(t,"a",(function(){return s}));var n=r(3),i=r(4),o=r(2),a=r(1),s={};function u(e){var t=e(n.f).emit,r=e(n.d).emit,u=e(n.i).emit,c=e(n.h).emit;function f(e,t,r){Object(i.c)(Object(a.g)(e))[t]=r}function l(e,r,n){e&&f(e,r,n);var o=Object(a.d)(Object(i.b)(r,n),e);return t(o),o}var d={};return d[n.l]=function(e,t){if(!e)return u(t),l(e,s,t);var r=function(e,t){var r=Object(i.c)(Object(a.g)(e));return Object(o.c)(Array,r)?l(e,Object(o.e)(r),t):e}(e,t),n=Object(a.l)(r),c=Object(i.a)(Object(a.g)(r));return f(n,c,t),Object(a.d)(Object(i.b)(c,t),n)},d[n.k]=function(e){return r(e),Object(a.l)(e)||c(Object(i.c)(Object(a.g)(e)))},d[n.j]=l,d}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(5);t.default=n.a},function(e,t,r){r.d(t,"a",(function(){return i}));var n=r(2);function i(e,t,r,i,o,a,s){return o=o?JSON.parse(JSON.stringify(o)):{},i?(Object(n.d)(i)||(i=JSON.stringify(i),o["Content-Type"]=o["Content-Type"]||"application/json"),o["Content-Length"]=o["Content-Length"]||i.length):i=null,e(r||"GET",function(e,t){return!1===t&&(-1===e.indexOf("?")?e+="?":e+="&",e+="_="+(new Date).getTime()),e}(t,s),i,o,a||!1)}},function(e,t,r){r.d(t,"a",(function(){return l}));var n=r(10),i=r(12),o=r(6),a=r(13),s=r(14),u=r(16),c=r(17),f=r(18);function l(e,t,r,l,d){var h=Object(n.a)();return t&&Object(f.b)(h,Object(f.a)(),e,t,r,l,d),Object(c.a)(h),Object(i.a)(h,Object(o.b)(h)),Object(a.a)(h,s.a),Object(u.a)(h,t)}},function(e,t,r){r.d(t,"a",(function(){return o}));var n=r(11),i=r(0);function o(){var e={},t=o("newListener"),r=o("removeListener");function o(i){return e[i]=Object(n.a)(i,t,r),e[i]}function a(t){return e[t]||o(t)}return["emit","on","un"].forEach((function(e){a[e]=Object(i.k)((function(t,r){Object(i.b)(r,a(t)[e])}))})),a}},function(e,t,r){r.d(t,"a",(function(){return a}));var n=r(1),i=r(2),o=r(0);function a(e,t,r){var a,s;function u(e){return function(t){return t.id===e}}return{on:function(r,i){var o={listener:r,id:i||r};return t&&t.emit(e,r,o.id),a=Object(n.d)(o,a),s=Object(n.d)(r,s),this},emit:function(){Object(n.b)(s,arguments)},un:function(t){var i;a=Object(n.m)(a,u(t),(function(e){i=e})),i&&(s=Object(n.m)(s,(function(e){return e===i.listener})),r&&r.emit(e,i.listener,i.id))},listeners:function(){return s},hasListener:function(e){var t=e?u(e):o.a;return Object(i.a)(Object(n.e)(t,a))}}}},function(e,t,r){r.d(t,"a",(function(){return a}));var n=r(4),i=r(3),o=r(1);function a(e,t){var r,a={};function s(e){return function(t){r=e(r,t)}}for(var u in t)e(u).on(s(t[u]),a);e(i.g).on((function(e){var t=Object(o.g)(r),i=Object(n.a)(t),a=Object(o.l)(r);a&&(Object(n.c)(Object(o.g)(a))[i]=e)})),e(i.e).on((function(){var e=Object(o.g)(r),t=Object(n.a)(e),i=Object(o.l)(r);i&&delete Object(n.c)(Object(o.g)(i))[t]})),e(i.a).on((function(){for(var r in t)e(r).un(a)}))}},function(e,t,r){r.d(t,"a",(function(){return a}));var n=r(3),i=r(1),o=r(4);function a(e,t){var r={node:e(n.d),path:e(n.f)};function a(t,r,n){var a=e(t).emit;r.on((function(e){var t=n(e);!1!==t&&function(e,t,r){var n=Object(i.k)(r);e(t,Object(i.i)(Object(i.l)(Object(i.j)(o.a,n))),Object(i.i)(Object(i.j)(o.c,n)))}(a,Object(o.c)(t),e)}),t),e("removeListener").on((function(n){n===t&&(e(n).listeners()||r.un(t))}))}e("newListener").on((function(e){var n=/(node|path):(.*)/.exec(e);if(n){var i=r[n[1]];i.hasListener(e)||a(e,i,t(n[2]))}}))}},function(e,t,r){r.d(t,"a",(function(){return c}));var n=r(0),i=r(1),o=r(4),a=r(2),s=r(6),u=r(15),c=Object(u.a)((function(e,t,r,u,c){var f=Object(n.d)(o.a,i.g),l=Object(n.d)(o.c,i.g);function d(e,t){return t[1]?Object(n.g)(e,i.g):e}function h(e){return e===n.a?n.a:Object(n.g)((function(e){return f(e)!==s.a}),Object(n.d)(e,i.l))}function p(){return function(e){return f(e)===s.a}}function b(e,t,r,n,o){var s=e(r);if(s){var u=function(e,t,r){return Object(i.f)((function(e,t){return t(e,r)}),t,e)}(t,n,s);return o(r.substr(Object(a.e)(s[0])),u)}}function y(e,t){return Object(n.j)(b,e,t)}var g=Object(n.h)(y(e,Object(i.h)(d,(function(e,t){var r=t[3];if(!r)return e;var o=Object(n.j)(a.b,Object(i.c)(r.split(/\W+/))),s=Object(n.d)(o,l);return Object(n.g)(s,e)}),(function(e,t){var r=t[2],i=r&&"*"!==r?function(e){return String(f(e))===r}:n.a;return Object(n.g)(i,e)}),h)),y(t,Object(i.h)((function(e){if(e===n.a)return n.a;var t=p(),r=e,i=h((function(e){return o(e)})),o=Object(n.h)(t,r,i);return o}))),y(r,Object(i.h)()),y(u,Object(i.h)(d,p)),y(c,Object(i.h)((function(e){return function(t){var r=e(t);return!0===r?Object(i.g)(t):r}}))),(function(e){throw Error('"'+e+'" could not be tokenised')}));function m(e,t){return t}function v(e,t){return g(e,t,e?v:m)}return function(e){try{return v(e,n.a)}catch(t){throw Error('Could not compile "'+e+'" because '+t.message)}}}))},function(e,t,r){r.d(t,"a",(function(){return b}));var n,i,o,a,s,u,c,f,l,d,h,p=r(0),b=(n=Object(p.k)((function(e){return e.unshift(/^/),(t=RegExp(e.map(Object(p.c)("source")).join(""))).exec.bind(t);var t})),a=n(i=/(\$?)/,/([\w-_]+|\*)/,o=/(?:{([\w ]*?)})?/),s=n(i,/\["([^"]+)"\]/,o),u=n(i,/\[(\d+|\*)\]/,o),c=n(i,/()/,/{([\w ]*?)}/),f=n(/\.\./),l=n(/\./),d=n(i,/!/),h=n(/$/),function(e){return e(Object(p.h)(a,s,u,c),f,l,d,h)})},function(e,t,r){r.d(t,"a",(function(){return s}));var n=r(3),i=r(0),o=r(2),a=r(5);function s(e,t){var r,s=/^(node|path):./,u=e(n.h),c=e(n.e).emit,f=e(n.g).emit,l=Object(i.k)((function(t,n){if(r[t])Object(i.b)(n,r[t]);else{var o=e(t),a=n[0];s.test(t)?d(o,p(a)):o.on(a)}return r}));function d(e,t,n){n=n||t;var o=h(t);return e.on((function(){var t=!1;r.forget=function(){t=!0},Object(i.b)(arguments,o),delete r.forget,t&&e.un(n)}),n),r}function h(e){return function(){try{return e.apply(r,arguments)}catch(e){setTimeout((function(){throw new Error(e.message)}))}}}function p(e){return function(){var t=e.apply(this,arguments);Object(o.a)(t)&&(t===a.a.drop?c():f(t))}}function b(t,r,n){var i;i="node"===t?p(n):n,d(function(t,r){return e(t+":"+r)}(t,r),i,n)}function y(e,t,n){return Object(o.d)(t)?b(e,t,n):function(e,t){for(var r in t)b(e,r,t[r])}(e,t),r}return e(n.i).on((function(e){r.root=Object(i.f)(e)})),e(n.c).on((function(e,t){r.header=function(e){return e?t[e]:t}})),r={on:l,addListener:l,removeListener:function(t,n,i){if("done"===t)u.un(n);else if("node"===t||"path"===t)e.un(t+":"+n,i);else{var o=n;e(t).un(o)}return r},emit:e.emit,node:Object(i.j)(y,"node"),path:Object(i.j)(y,"path"),done:Object(i.j)(d,u),start:Object(i.j)((function(t,n){return e(t).on(h(n),n),r}),n.c),fail:e(n.b).on,abort:e(n.a).emit,header:i.i,root:i.i,source:t}}},function(e,t,r){r.d(t,"a",(function(){return i}));var n=r(3);function i(e){var t,r,i,o,a=e(n.j).emit,s=e(n.l).emit,u=e(n.k).emit,c=e(n.b).emit,f=/[\\"\n]/g,l=0,d=l++,h=l++,p=l++,b=l++,y=l++,g=l++,m=l++,v=l++,w=l++,_=l++,x=l++,O=l++,k=l++,P=l++,S=l++,A=l++,E=l++,M=l++,j=l++,T=l++,B=65536,I="",N=!1,R=!1,C=d,U=[],L=null,D=0,H=0,F=0,V=0,z=1;function q(e){void 0!==o&&(s(o),u(),o=void 0),t=Error(e+"\nLn: "+z+"\nCol: "+V+"\nChr: "+r),c(Object(n.o)(void 0,void 0,t))}function K(e){return"\r"===e||"\n"===e||" "===e||"\t"===e}e(n.m).on((function(e){if(!t){if(R)return q("Cannot write after close");var n,c=0;for(r=e[0];r&&(c>0&&(i=r),r=e[c++]);)switch(F++,"\n"===r?(z++,V=0):V++,C){case d:if("{"===r)C=p;else if("["===r)C=y;else if(!K(r))return q("Non-whitespace before {[.");continue;case v:case p:if(K(r))continue;if(C===v)U.push(w);else{if("}"===r){s({}),u(),C=U.pop()||h;continue}U.push(b)}if('"'!==r)return q('Malformed object key should start with " ');C=m;continue;case w:case b:if(K(r))continue;if(":"===r)C===b?(U.push(b),void 0!==o&&(s({}),a(o),o=void 0),H++):void 0!==o&&(a(o),o=void 0),C=h;else if("}"===r)void 0!==o&&(s(o),u(),o=void 0),u(),H--,C=U.pop()||h;else{if(","!==r)return q("Bad object");C===b&&U.push(b),void 0!==o&&(s(o),u(),o=void 0),C=v}continue;case y:case h:if(K(r))continue;if(C===y){if(s([]),H++,C=h,"]"===r){u(),H--,C=U.pop()||h;continue}U.push(g)}if('"'===r)C=m;else if("{"===r)C=p;else if("["===r)C=y;else if("t"===r)C=_;else if("f"===r)C=k;else if("n"===r)C=E;else if("-"===r)I+=r;else if("0"===r)I+=r,C=20;else{if(-1==="123456789".indexOf(r))return q("Bad value");I+=r,C=20}continue;case g:if(","===r)U.push(g),void 0!==o&&(s(o),u(),o=void 0),C=h;else{if("]"!==r){if(K(r))continue;return q("Bad array")}void 0!==o&&(s(o),u(),o=void 0),u(),H--,C=U.pop()||h}continue;case m:void 0===o&&(o="");var l=c-1;e:for(;;){for(;D>0;)if(L+=r,r=e.charAt(c++),4===D?(o+=String.fromCharCode(parseInt(L,16)),D=0,l=c-1):D++,!r)break e;if('"'===r&&!N){C=U.pop()||h,o+=e.substring(l,c-1);break}if(!("\\"!==r||N||(N=!0,o+=e.substring(l,c-1),r=e.charAt(c++))))break;if(N){if(N=!1,"n"===r?o+="\n":"r"===r?o+="\r":"t"===r?o+="\t":"f"===r?o+="\f":"b"===r?o+="\b":"u"===r?(D=1,L=""):o+=r,r=e.charAt(c++),l=c-1,r)continue;break}f.lastIndex=c;var W=f.exec(e);if(!W){c=e.length+1,o+=e.substring(l,c-1);break}if(c=W.index+1,!(r=e.charAt(W.index))){o+=e.substring(l,c-1);break}}continue;case _:if(!r)continue;if("r"!==r)return q("Invalid true started with t"+r);C=x;continue;case x:if(!r)continue;if("u"!==r)return q("Invalid true started with tr"+r);C=O;continue;case O:if(!r)continue;if("e"!==r)return q("Invalid true started with tru"+r);s(!0),u(),C=U.pop()||h;continue;case k:if(!r)continue;if("a"!==r)return q("Invalid false started with f"+r);C=P;continue;case P:if(!r)continue;if("l"!==r)return q("Invalid false started with fa"+r);C=S;continue;case S:if(!r)continue;if("s"!==r)return q("Invalid false started with fal"+r);C=A;continue;case A:if(!r)continue;if("e"!==r)return q("Invalid false started with fals"+r);s(!1),u(),C=U.pop()||h;continue;case E:if(!r)continue;if("u"!==r)return q("Invalid null started with n"+r);C=M;continue;case M:if(!r)continue;if("l"!==r)return q("Invalid null started with nu"+r);C=j;continue;case j:if(!r)continue;if("l"!==r)return q("Invalid null started with nul"+r);s(null),u(),C=U.pop()||h;continue;case T:if("."!==r)return q("Leading zero not followed by .");I+=r,C=20;continue;case 20:if(-1!=="0123456789".indexOf(r))I+=r;else if("."===r){if(-1!==I.indexOf("."))return q("Invalid number has two dots");I+=r}else if("e"===r||"E"===r){if(-1!==I.indexOf("e")||-1!==I.indexOf("E"))return q("Invalid number has two exponential");I+=r}else if("+"===r||"-"===r){if("e"!==i&&"E"!==i)return q("Invalid symbol in number");I+=r}else I&&(s(parseFloat(I)),u(),I=""),c--,C=U.pop()||h;continue;default:return q("Unknown state: "+C)}F>=B&&(n=0,void 0!==o&&o.length>65536&&(q("Max buffer length exceeded: textNode"),n=Math.max(n,o.length)),I.length>65536&&(q("Max buffer length exceeded: numberNode"),n=Math.max(n,I.length)),B=65536-n+F)}})),e(n.n).on((function(){if(C===d)return s({}),u(),void(R=!0);C===h&&0===H||q("Unexpected end"),void 0!==o&&(s(o),u(),o=void 0),R=!0}))}},function(e,t,r){r.d(t,"a",(function(){return u})),r.d(t,"b",(function(){return c}));var n=r(19),i=r(3),o=r(2),a=r(20),s=r(0);function u(){return new XMLHttpRequest}function c(e,t,r,u,c,f,l){var d=e(i.m).emit,h=e(i.b).emit,p=0,b=!0;function y(){if("2"===String(t.status)[0]){var e=t.responseText,r=(" "+e.substr(p)).substr(1);r&&d(r),p=Object(o.e)(e)}}function g(t){try{b&&e(i.c).emit(t.status,Object(a.a)(t.getAllResponseHeaders())),b=!1}catch(e){}}e(i.a).on((function(){t.onreadystatechange=null,t.abort()})),"onprogress"in t&&(t.onprogress=y),t.onreadystatechange=function(){switch(t.readyState){case 2:case 3:return g(t);case 4:g(t),"2"===String(t.status)[0]?(y(),e(i.n).emit()):h(Object(i.o)(t.status,t.responseText))}};try{for(var m in t.open(r,u,!0),f)t.setRequestHeader(m,f[m]);Object(n.a)(window.location,Object(n.b)(u))||t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.withCredentials=l,t.send(c)}catch(e){window.setTimeout(Object(s.j)(h,Object(i.o)(void 0,void 0,e)),0)}}},function(e,t,r){function n(e,t){function r(t){return String(t.port||{"http:":80,"https:":443}[t.protocol||e.protocol])}return!!(t.protocol&&t.protocol!==e.protocol||t.host&&t.host!==e.host||t.host&&r(t)!==r(e))}function i(e){var t=/(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/.exec(e)||[];return{protocol:t[1]||"",host:t[2]||"",port:t[3]||""}}r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return i}))},function(e,t,r){function n(e){var t={};return e&&e.split("\r\n").forEach((function(e){var r=e.indexOf(": ");t[e.substring(0,r)]=e.substring(r+2)})),t}r.d(t,"a",(function(){return n}))}]).default},"object"===(0,s.default)(t)&&"object"===(0,s.default)(e)?e.exports=a():(i=[],void 0===(o="function"==typeof(n=a)?n.apply(t,i):n)||(e.exports=o))}).call(this,r(35)(e))},function(e,t,r){"use strict";var n=r(12).formatters,i=r(38),o=r(17);e.exports=function(e){var t=function(t){var r;return t.property?(e[t.property]||(e[t.property]={}),r=e[t.property]):r=e,t.methods&&t.methods.forEach((function(t){t instanceof i||(t=new i(t)),t.attachToObject(r),t.setRequestManager(e._requestManager)})),e};return t.formatters=n,t.utils=o,t.Method=i,t}},function(e,t,r){"use strict";var n=r(2).default;function i(){e.exports=i=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},r=Object.prototype,o=r.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new S(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===h)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=d(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(e,r,a),o}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var h={};function p(){}function b(){}function y(){}var g={};f(g,s,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(A([])));v&&v!==r&&o.call(v,s)&&(g=v);var w=y.prototype=p.prototype=Object.create(g);function _(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){var r;this._invoke=function(i,a){function s(){return new t((function(r,s){!function r(i,a,s,u){var c=d(e[i],e,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,s,u)}),(function(e){r("throw",e,s,u)})):t.resolve(l).then((function(e){f.value=e,s(f)}),(function(e){return r("throw",e,s,u)}))}u(c.arg)}(i,a,r,s)}))}return r=r?r.then(s,s):s()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return h;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=d(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,h;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function A(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(o.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:E}}function E(){return{value:void 0,done:!0}}return b.prototype=y,f(w,"constructor",y),f(y,"constructor",b),b.displayName=f(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,f(e,c,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},_(x.prototype),f(x.prototype,u,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new x(l(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(w),f(w,c,"Generator"),f(w,s,(function(){return this})),f(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=A,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:A(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";var n=r(0)(r(2)),i=r(12).errors,o=r(104),a=r(12).formatters;function s(e){return e}function u(e){o.call(this),this.id=null,this.callback=s,this.arguments=null,this.lastBlock=null,this.options={subscription:e.subscription,type:e.type,requestManager:e.requestManager}}u.prototype=Object.create(o.prototype),u.prototype.constructor=u,u.prototype._extractCallback=function(e){if("function"==typeof e[e.length-1])return e.pop()},u.prototype._validateArgs=function(e){var t=this.options.subscription;if(t||(t={}),t.params||(t.params=0),e.length!==t.params)throw i.InvalidNumberOfParams(e.length,t.params,t.subscriptionName)},u.prototype._formatInput=function(e){var t=this.options.subscription;return t&&t.inputFormatter?t.inputFormatter.map((function(t,r){return t?t(e[r]):e[r]})):e},u.prototype._formatOutput=function(e){var t=this.options.subscription;return t&&t.outputFormatter&&e?t.outputFormatter(e):e},u.prototype._toPayload=function(e){var t=[];if(this.callback=this._extractCallback(e)||s,this.subscriptionMethod||(this.subscriptionMethod=e.shift(),this.options.subscription.subscriptionName&&(this.subscriptionMethod=this.options.subscription.subscriptionName)),this.arguments||(this.arguments=this._formatInput(e),this._validateArgs(this.arguments),e=[]),t.push(this.subscriptionMethod),t=t.concat(this.arguments),e.length)throw new Error("Only a callback is allowed as parameter on an already instantiated subscription.");return{method:this.options.type+"_subscribe",params:t}},u.prototype.unsubscribe=function(e){this.options.requestManager.removeSubscription(this.id,e),this.id=null,this.lastBlock=null,this.removeAllListeners()},u.prototype.subscribe=function(){var e=this,t=Array.prototype.slice.call(arguments),r=this._toPayload(t);if(!r)return this;if(!this.options.requestManager.provider)return setTimeout((function(){var t=new Error("No provider set.");e.callback(t,null,e),e.emit("error",t)}),0),this;if(!this.options.requestManager.provider.on)return setTimeout((function(){var t=new Error("The current provider doesn't support subscriptions: "+e.options.requestManager.provider.constructor.name);e.callback(t,null,e),e.emit("error",t)}),0),this;if(this.lastBlock&&this.options.params&&"object"===(0,n.default)(this.options.params)&&(r.params[1]=this.options.params,r.params[1].fromBlock=a.inputBlockNumberFormatter(this.lastBlock+1)),this.id&&this.unsubscribe(),this.options.params=r.params[1],"logs"===r.params[0]&&r.params[1]&&"object"===(0,n.default)(r.params[1])&&r.params[1].hasOwnProperty("fromBlock")&&isFinite(r.params[1].fromBlock)){var i=Object.assign({},r.params[1]);this.options.requestManager.send({method:"eth_getLogs",params:[i]},(function(t,r){t?setTimeout((function(){e.callback(t,null,e),e.emit("error",t)}),0):r.forEach((function(t){var r=e._formatOutput(t);e.callback(null,r,e),e.emit("data",r)}))}))}return"object"===(0,n.default)(r.params[1])&&delete r.params[1].fromBlock,this.options.requestManager.send(r,(function(t,i){!t&&i?(e.id=i,e.method=r.params[0],e.options.requestManager.addSubscription(e,(function(t,r){t?(e.callback(t,!1,e),e.emit("error",t)):(Array.isArray(r)||(r=[r]),r.forEach((function(t){var r=e._formatOutput(t);if(e.lastBlock=r&&"object"===(0,n.default)(r)?r.blockNumber:null,"function"==typeof e.options.subscription.subscriptionHandler)return e.options.subscription.subscriptionHandler.call(e,r);e.emit("data",r),e.callback(null,r,e)})))})),e.emit("connected",i)):setTimeout((function(){e.callback(t,!1,e),e.emit("error",t)}),0)})),this},u.prototype.resubscribe=function(){this.options.requestManager.removeSubscription(this.id),this.id=null,this.subscribe(this.callback)},e.exports=u},function(e,t,r){"use strict";var n=r(2);Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionTypes=void 0,t.accessListify=P,t.computeAddress=_,t.parse=function(e){var t=(0,a.arrayify)(e);if(t[0]>127)return function(e){var t=f.decode(e);9!==t.length&&6!==t.length&&y.throwArgumentError("invalid raw transaction","rawTransaction",e);var r={nonce:m(t[0]).toNumber(),gasPrice:m(t[1]),gasLimit:m(t[2]),to:g(t[3]),value:m(t[4]),data:t[5],chainId:0};if(6===t.length)return r;try{r.v=o.BigNumber.from(t[6]).toNumber()}catch(e){return r}if(r.r=(0,a.hexZeroPad)(t[7],32),r.s=(0,a.hexZeroPad)(t[8],32),o.BigNumber.from(r.r).isZero()&&o.BigNumber.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);var n=r.v-27,i=t.slice(0,6);0!==r.chainId&&(i.push((0,a.hexlify)(r.chainId)),i.push("0x"),i.push("0x"),n-=2*r.chainId+8);var s=(0,u.keccak256)(f.encode(i));try{r.from=x(s,{r:(0,a.hexlify)(r.r),s:(0,a.hexlify)(r.s),recoveryParam:n})}catch(e){}r.hash=(0,u.keccak256)(e)}return r.type=null,r}(t);switch(t[0]){case 1:return function(e){var t=f.decode(e.slice(1));8!==t.length&&11!==t.length&&y.throwArgumentError("invalid component count for transaction type: 1","payload",(0,a.hexlify)(e));var r={type:1,chainId:m(t[0]).toNumber(),nonce:m(t[1]).toNumber(),gasPrice:m(t[2]),gasLimit:m(t[3]),to:g(t[4]),value:m(t[5]),data:t[6],accessList:P(t[7])};return 8===t.length||(r.hash=(0,u.keccak256)(e),M(r,t.slice(8),E)),r}(t);case 2:return function(e){var t=f.decode(e.slice(1));9!==t.length&&12!==t.length&&y.throwArgumentError("invalid component count for transaction type: 2","payload",(0,a.hexlify)(e));var r=m(t[2]),n=m(t[3]),i={type:2,chainId:m(t[0]).toNumber(),nonce:m(t[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:n,gasPrice:null,gasLimit:m(t[4]),to:g(t[5]),value:m(t[6]),data:t[7],accessList:P(t[8])};return 9===t.length||(i.hash=(0,u.keccak256)(e),M(i,t.slice(9),A)),i}(t)}return y.throwError("unsupported transaction type: ".concat(t[0]),d.Logger.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:t[0]})},t.recoverAddress=x,t.serialize=function(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){(0,c.checkProperties)(e,w);var r=[];v.forEach((function(t){var n=e[t.name]||[],i={};t.numeric&&(i.hexPad="left"),n=(0,a.arrayify)((0,a.hexlify)(n,i)),t.length&&n.length!==t.length&&n.length>0&&y.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,n),t.maxLength&&(n=(0,a.stripZeros)(n)).length>t.maxLength&&y.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,n),r.push((0,a.hexlify)(n))}));var n=0;if(null!=e.chainId?"number"!=typeof(n=e.chainId)&&y.throwArgumentError("invalid transaction.chainId","transaction",e):t&&!(0,a.isBytesLike)(t)&&t.v>28&&(n=Math.floor((t.v-35)/2)),0!==n&&(r.push((0,a.hexlify)(n)),r.push("0x"),r.push("0x")),!t)return f.encode(r);var i=(0,a.splitSignature)(t),o=27+i.recoveryParam;return 0!==n?(r.pop(),r.pop(),r.pop(),o+=2*n+8,i.v>28&&i.v!==o&&y.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t)):i.v!==o&&y.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t),r.push((0,a.hexlify)(o)),r.push((0,a.stripZeros)((0,a.arrayify)(i.r))),r.push((0,a.stripZeros)((0,a.arrayify)(i.s))),f.encode(r)}(e,t);switch(e.type){case 1:return E(e,t);case 2:return A(e,t)}return y.throwError("unsupported transaction type: ".concat(e.type),d.Logger.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:e.type})};var i=r(80),o=r(33),a=r(11),s=r(106),u=r(39),c=r(40),f=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=p(t);if(r&&r.has(e))return r.get(e);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(i,a,s):i[a]=e[a]}return i.default=e,r&&r.set(e,i),i}(r(175)),l=r(371),d=r(16),h=r(374);function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(p=function(e){return e?r:t})(e)}var b,y=new d.Logger(h.version);function g(e){return"0x"===e?null:(0,i.getAddress)(e)}function m(e){return"0x"===e?s.Zero:o.BigNumber.from(e)}t.TransactionTypes=b,function(e){e[e.legacy=0]="legacy",e[e.eip2930=1]="eip2930",e[e.eip1559=2]="eip1559"}(b||(t.TransactionTypes=b={}));var v=[{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"}],w={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function _(e){var t=(0,l.computePublicKey)(e);return(0,i.getAddress)((0,a.hexDataSlice)((0,u.keccak256)((0,a.hexDataSlice)(t,1)),12))}function x(e,t){return _((0,l.recoverPublicKey)((0,a.arrayify)(e),t))}function O(e,t){var r=(0,a.stripZeros)(o.BigNumber.from(e).toHexString());return r.length>32&&y.throwArgumentError("invalid length for "+t,"transaction:"+t,e),r}function k(e,t){return{address:(0,i.getAddress)(e),storageKeys:(t||[]).map((function(t,r){return 32!==(0,a.hexDataLength)(t)&&y.throwArgumentError("invalid access list storageKey","accessList[".concat(e,":").concat(r,"]"),t),t.toLowerCase()}))}}function P(e){if(Array.isArray(e))return e.map((function(e,t){return Array.isArray(e)?(e.length>2&&y.throwArgumentError("access list expected to be [ address, storageKeys[] ]","value[".concat(t,"]"),e),k(e[0],e[1])):k(e.address,e.storageKeys)}));var t=Object.keys(e).map((function(t){var r=e[t].reduce((function(e,t){return e[t]=!0,e}),{});return k(t,Object.keys(r).sort())}));return t.sort((function(e,t){return e.address.localeCompare(t.address)})),t}function S(e){return P(e).map((function(e){return[e.address,e.storageKeys]}))}function A(e,t){if(null!=e.gasPrice){var r=o.BigNumber.from(e.gasPrice),n=o.BigNumber.from(e.maxFeePerGas||0);r.eq(n)||y.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:r,maxFeePerGas:n})}var s=[O(e.chainId||0,"chainId"),O(e.nonce||0,"nonce"),O(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),O(e.maxFeePerGas||0,"maxFeePerGas"),O(e.gasLimit||0,"gasLimit"),null!=e.to?(0,i.getAddress)(e.to):"0x",O(e.value||0,"value"),e.data||"0x",S(e.accessList||[])];if(t){var u=(0,a.splitSignature)(t);s.push(O(u.recoveryParam,"recoveryParam")),s.push((0,a.stripZeros)(u.r)),s.push((0,a.stripZeros)(u.s))}return(0,a.hexConcat)(["0x02",f.encode(s)])}function E(e,t){var r=[O(e.chainId||0,"chainId"),O(e.nonce||0,"nonce"),O(e.gasPrice||0,"gasPrice"),O(e.gasLimit||0,"gasLimit"),null!=e.to?(0,i.getAddress)(e.to):"0x",O(e.value||0,"value"),e.data||"0x",S(e.accessList||[])];if(t){var n=(0,a.splitSignature)(t);r.push(O(n.recoveryParam,"recoveryParam")),r.push((0,a.stripZeros)(n.r)),r.push((0,a.stripZeros)(n.s))}return(0,a.hexConcat)(["0x01",f.encode(r)])}function M(e,t,r){try{var n=m(t[0]).toNumber();if(0!==n&&1!==n)throw new Error("bad recid");e.v=n}catch(e){y.throwArgumentError("invalid v for transaction type: 1","v",t[0])}e.r=(0,a.hexZeroPad)(t[1],32),e.s=(0,a.hexZeroPad)(t[2],32);try{var i=(0,u.keccak256)(r(e));e.from=x(i,{r:e.r,s:e.s,recoveryParam:e.v})}catch(e){}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="logger/5.7.0"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="bytes/5.7.0"},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.FixedNumber=t.FixedFormat=void 0,t.formatFixed=m,t.parseFixed=v;var i=n(r(2)),o=n(r(8)),a=n(r(9)),s=r(11),u=r(16),c=r(174),f=r(173),l=new u.Logger(c.version),d={},h=f.BigNumber.from(0),p=f.BigNumber.from(-1);function b(e,t,r,n){var i={fault:t,operation:r};return void 0!==n&&(i.value=n),l.throwError(e,u.Logger.errors.NUMERIC_FAULT,i)}for(var y="0";y.length<256;)y+=y;function g(e){if("number"!=typeof e)try{e=f.BigNumber.from(e).toNumber()}catch(e){}return"number"==typeof e&&e>=0&&e<=256&&!(e%1)?"1"+y.substring(0,e):l.throwArgumentError("invalid decimal size","decimals",e)}function m(e,t){null==t&&(t=0);var r=g(t),n=(e=f.BigNumber.from(e)).lt(h);n&&(e=e.mul(p));for(var i=e.mod(r).toString();i.length<r.length-1;)i="0"+i;i=i.match(/^([0-9]*[1-9]|0)(0*)/)[1];var o=e.div(r).toString();return e=1===r.length?o:o+"."+i,n&&(e="-"+e),e}function v(e,t){null==t&&(t=0);var r=g(t);"string"==typeof e&&e.match(/^-?[0-9.]+$/)||l.throwArgumentError("invalid decimal value","value",e);var n="-"===e.substring(0,1);n&&(e=e.substring(1)),"."===e&&l.throwArgumentError("missing value","value",e);var i=e.split(".");i.length>2&&l.throwArgumentError("too many decimal points","value",e);var o=i[0],a=i[1];for(o||(o="0"),a||(a="0");"0"===a[a.length-1];)a=a.substring(0,a.length-1);for(a.length>r.length-1&&b("fractional component exceeds decimals","underflow","parseFixed"),""===a&&(a="0");a.length<r.length-1;)a+="0";var s=f.BigNumber.from(o),u=f.BigNumber.from(a),c=s.mul(r).add(u);return n&&(c=c.mul(p)),c}var w=function(){function e(t,r,n,i){(0,o.default)(this,e),t!==d&&l.throwError("cannot use FixedFormat constructor; use FixedFormat.from",u.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.signed=r,this.width=n,this.decimals=i,this.name=(r?"":"u")+"fixed"+String(n)+"x"+String(i),this._multiplier=g(i),Object.freeze(this)}return(0,a.default)(e,null,[{key:"from",value:function(t){if(t instanceof e)return t;"number"==typeof t&&(t="fixed128x".concat(t));var r=!0,n=128,o=18;if("string"==typeof t)if("fixed"===t);else if("ufixed"===t)r=!1;else{var a=t.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);a||l.throwArgumentError("invalid fixed format","format",t),r="u"!==a[1],n=parseInt(a[2]),o=parseInt(a[3])}else if(t){var s=function(e,r,n){return null==t[e]?n:((0,i.default)(t[e])!==r&&l.throwArgumentError("invalid fixed format ("+e+" not "+r+")","format."+e,t[e]),t[e])};r=s("signed","boolean",r),n=s("width","number",n),o=s("decimals","number",o)}return n%8&&l.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",n),o>80&&l.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",o),new e(d,r,n,o)}}]),e}();t.FixedFormat=w;var _=function(){function e(t,r,n,i){(0,o.default)(this,e),t!==d&&l.throwError("cannot use FixedNumber constructor; use FixedNumber.from",u.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=i,this._hex=r,this._value=n,this._isFixedNumber=!0,Object.freeze(this)}return(0,a.default)(e,[{key:"_checkFormat",value:function(e){this.format.name!==e.format.name&&l.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}},{key:"addUnsafe",value:function(t){this._checkFormat(t);var r=v(this._value,this.format.decimals),n=v(t._value,t.format.decimals);return e.fromValue(r.add(n),this.format.decimals,this.format)}},{key:"subUnsafe",value:function(t){this._checkFormat(t);var r=v(this._value,this.format.decimals),n=v(t._value,t.format.decimals);return e.fromValue(r.sub(n),this.format.decimals,this.format)}},{key:"mulUnsafe",value:function(t){this._checkFormat(t);var r=v(this._value,this.format.decimals),n=v(t._value,t.format.decimals);return e.fromValue(r.mul(n).div(this.format._multiplier),this.format.decimals,this.format)}},{key:"divUnsafe",value:function(t){this._checkFormat(t);var r=v(this._value,this.format.decimals),n=v(t._value,t.format.decimals);return e.fromValue(r.mul(this.format._multiplier).div(n),this.format.decimals,this.format)}},{key:"floor",value:function(){var t=this.toString().split(".");1===t.length&&t.push("0");var r=e.from(t[0],this.format),n=!t[1].match(/^(0*)$/);return this.isNegative()&&n&&(r=r.subUnsafe(x.toFormat(r.format))),r}},{key:"ceiling",value:function(){var t=this.toString().split(".");1===t.length&&t.push("0");var r=e.from(t[0],this.format),n=!t[1].match(/^(0*)$/);return!this.isNegative()&&n&&(r=r.addUnsafe(x.toFormat(r.format))),r}},{key:"round",value:function(t){null==t&&(t=0);var r=this.toString().split(".");if(1===r.length&&r.push("0"),(t<0||t>80||t%1)&&l.throwArgumentError("invalid decimal count","decimals",t),r[1].length<=t)return this;var n=e.from("1"+y.substring(0,t),this.format),i=O.toFormat(this.format);return this.mulUnsafe(n).addUnsafe(i).floor().divUnsafe(n)}},{key:"isZero",value:function(){return"0.0"===this._value||"0"===this._value}},{key:"isNegative",value:function(){return"-"===this._value[0]}},{key:"toString",value:function(){return this._value}},{key:"toHexString",value:function(e){if(null==e)return this._hex;e%8&&l.throwArgumentError("invalid byte width","width",e);var t=f.BigNumber.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return(0,s.hexZeroPad)(t,e/8)}},{key:"toUnsafeFloat",value:function(){return parseFloat(this.toString())}},{key:"toFormat",value:function(t){return e.fromString(this._value,t)}}],[{key:"fromValue",value:function(t,r,n){return null!=n||null==r||(0,f.isBigNumberish)(r)||(n=r,r=null),null==r&&(r=0),null==n&&(n="fixed"),e.fromString(m(t,r),w.from(n))}},{key:"fromString",value:function(t,r){null==r&&(r="fixed");var n=w.from(r),i=v(t,n.decimals);!n.signed&&i.lt(h)&&b("unsigned value cannot be negative","overflow","value",t);var o=null;n.signed?o=i.toTwos(n.width).toHexString():(o=i.toHexString(),o=(0,s.hexZeroPad)(o,n.width/8));var a=m(i,n.decimals);return new e(d,o,a,n)}},{key:"fromBytes",value:function(t,r){null==r&&(r="fixed");var n=w.from(r);if((0,s.arrayify)(t).length>n.width/8)throw new Error("overflow");var i=f.BigNumber.from(t);n.signed&&(i=i.fromTwos(n.width));var o=i.toTwos((n.signed?0:1)+n.width).toHexString(),a=m(i,n.decimals);return new e(d,o,a,n)}},{key:"from",value:function(t,r){if("string"==typeof t)return e.fromString(t,r);if((0,s.isBytes)(t))return e.fromBytes(t,r);try{return e.fromValue(t,0,r)}catch(e){if(e.code!==u.Logger.errors.INVALID_ARGUMENT)throw e}return l.throwArgumentError("invalid FixedNumber value","value",t)}},{key:"isFixedNumber",value:function(e){return!(!e||!e._isFixedNumber)}}]),e}();t.FixedNumber=_;var x=_.from(1),O=_.from("0.5")},function(e,t,r){"use strict";(function(e,n,i){var o,a=r(0)(r(2));!function(){var s="input is invalid type",u="object"===("undefined"==typeof window?"undefined":(0,a.default)(window)),c=u?window:{};c.JS_SHA3_NO_WINDOW&&(u=!1);var f=!u&&"object"===("undefined"==typeof self?"undefined":(0,a.default)(self));!c.JS_SHA3_NO_NODE_JS&&"object"===(void 0===e?"undefined":(0,a.default)(e))&&e.versions&&e.versions.node?c=n:f&&(c=self);var l=!c.JS_SHA3_NO_COMMON_JS&&"object"===(0,a.default)(i)&&i.exports,d=r(76),h=!c.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,p="0123456789abcdef".split(""),b=[4,1024,262144,67108864],y=[0,8,16,24],g=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],m=[224,256,384,512],v=[128,256],w=["hex","buffer","arrayBuffer","array","digest"],_={128:168,256:136};!c.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!h||!c.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"===(0,a.default)(e)&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var x=function(e,t,r){return function(n){return new U(e,t,e).update(n)[r]()}},O=function(e,t,r){return function(n,i){return new U(e,t,i).update(n)[r]()}},k=function(e,t,r){return function(t,n,i,o){return M["cshake"+e].update(t,n,i,o)[r]()}},P=function(e,t,r){return function(t,n,i,o){return M["kmac"+e].update(t,n,i,o)[r]()}},S=function(e,t,r,n){for(var i=0;i<w.length;++i){var o=w[i];e[o]=t(r,n,o)}return e},A=function(e,t){var r=x(e,t,"hex");return r.create=function(){return new U(e,t,e)},r.update=function(e){return r.create().update(e)},S(r,x,e,t)},E=[{name:"keccak",padding:[1,256,65536,16777216],bits:m,createMethod:A},{name:"sha3",padding:[6,1536,393216,100663296],bits:m,createMethod:A},{name:"shake",padding:[31,7936,2031616,520093696],bits:v,createMethod:function(e,t){var r=O(e,t,"hex");return r.create=function(r){return new U(e,t,r)},r.update=function(e,t){return r.create(t).update(e)},S(r,O,e,t)}},{name:"cshake",padding:b,bits:v,createMethod:function(e,t){var r=_[e],n=k(e,0,"hex");return n.create=function(n,i,o){return i||o?new U(e,t,n).bytepad([i,o],r):M["shake"+e].create(n)},n.update=function(e,t,r,i){return n.create(t,r,i).update(e)},S(n,k,e,t)}},{name:"kmac",padding:b,bits:v,createMethod:function(e,t){var r=_[e],n=P(e,0,"hex");return n.create=function(n,i,o){return new L(e,t,i).bytepad(["KMAC",o],r).bytepad([n],r)},n.update=function(e,t,r,i){return n.create(e,r,i).update(t)},S(n,P,e,t)}}],M={},j=[],T=0;T<E.length;++T)for(var B=E[T],I=B.bits,N=0;N<I.length;++N){var R=B.name+"_"+I[N];if(j.push(R),M[R]=B.createMethod(I[N],B.padding),"sha3"!==B.name){var C=B.name+I[N];j.push(C),M[C]=M[R]}}function U(e,t,r){this.blocks=[],this.s=[],this.padding=t,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function L(e,t,r){U.call(this,e,t,r)}U.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var t,r=(0,a.default)(e);if("string"!==r){if("object"!==r)throw new Error(s);if(null===e)throw new Error(s);if(h&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||h&&ArrayBuffer.isView(e)))throw new Error(s);t=!0}for(var n,i,o=this.blocks,u=this.byteCount,c=e.length,f=this.blockCount,l=0,d=this.s;l<c;){if(this.reset)for(this.reset=!1,o[0]=this.block,n=1;n<f+1;++n)o[n]=0;if(t)for(n=this.start;l<c&&n<u;++l)o[n>>2]|=e[l]<<y[3&n++];else for(n=this.start;l<c&&n<u;++l)(i=e.charCodeAt(l))<128?o[n>>2]|=i<<y[3&n++]:i<2048?(o[n>>2]|=(192|i>>6)<<y[3&n++],o[n>>2]|=(128|63&i)<<y[3&n++]):i<55296||i>=57344?(o[n>>2]|=(224|i>>12)<<y[3&n++],o[n>>2]|=(128|i>>6&63)<<y[3&n++],o[n>>2]|=(128|63&i)<<y[3&n++]):(i=65536+((1023&i)<<10|1023&e.charCodeAt(++l)),o[n>>2]|=(240|i>>18)<<y[3&n++],o[n>>2]|=(128|i>>12&63)<<y[3&n++],o[n>>2]|=(128|i>>6&63)<<y[3&n++],o[n>>2]|=(128|63&i)<<y[3&n++]);if(this.lastByteIndex=n,n>=u){for(this.start=n-u,this.block=o[f],n=0;n<f;++n)d[n]^=o[n];D(d),this.reset=!0}else this.start=n}return this},U.prototype.encode=function(e,t){var r=255&e,n=1,i=[r];for(r=255&(e>>=8);r>0;)i.unshift(r),r=255&(e>>=8),++n;return t?i.push(n):i.unshift(n),this.update(i),i.length},U.prototype.encodeString=function(e){var t,r=(0,a.default)(e);if("string"!==r){if("object"!==r)throw new Error(s);if(null===e)throw new Error(s);if(h&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||h&&ArrayBuffer.isView(e)))throw new Error(s);t=!0}var n=0,i=e.length;if(t)n=i;else for(var o=0;o<e.length;++o){var u=e.charCodeAt(o);u<128?n+=1:u<2048?n+=2:u<55296||u>=57344?n+=3:(u=65536+((1023&u)<<10|1023&e.charCodeAt(++o)),n+=4)}return n+=this.encode(8*n),this.update(e),n},U.prototype.bytepad=function(e,t){for(var r=this.encode(t),n=0;n<e.length;++n)r+=this.encodeString(e[n]);var i=t-r%t,o=[];return o.length=i,this.update(o),this},U.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex,r=this.blockCount,n=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[r],t=1;t<r+1;++t)e[t]=0;for(e[r-1]|=2147483648,t=0;t<r;++t)n[t]^=e[t];D(n)}},U.prototype.toString=U.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s="";a<n;){for(o=0;o<t&&a<n;++o,++a)e=r[o],s+=p[e>>4&15]+p[15&e]+p[e>>12&15]+p[e>>8&15]+p[e>>20&15]+p[e>>16&15]+p[e>>28&15]+p[e>>24&15];a%t==0&&(D(r),o=0)}return i&&(e=r[o],s+=p[e>>4&15]+p[15&e],i>1&&(s+=p[e>>12&15]+p[e>>8&15]),i>2&&(s+=p[e>>20&15]+p[e>>16&15])),s},U.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;e=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(s);for(var u=new Uint32Array(e);a<n;){for(o=0;o<t&&a<n;++o,++a)u[a]=r[o];a%t==0&&D(r)}return i&&(u[o]=r[o],e=e.slice(0,s)),e},U.prototype.buffer=U.prototype.arrayBuffer,U.prototype.digest=U.prototype.array=function(){this.finalize();for(var e,t,r=this.blockCount,n=this.s,i=this.outputBlocks,o=this.extraBytes,a=0,s=0,u=[];s<i;){for(a=0;a<r&&s<i;++a,++s)e=s<<2,t=n[a],u[e]=255&t,u[e+1]=t>>8&255,u[e+2]=t>>16&255,u[e+3]=t>>24&255;s%r==0&&D(n)}return o&&(e=s<<2,t=n[a],u[e]=255&t,o>1&&(u[e+1]=t>>8&255),o>2&&(u[e+2]=t>>16&255)),u},L.prototype=new U,L.prototype.finalize=function(){return this.encode(this.outputBits,!0),U.prototype.finalize.call(this)};var D=function(e){var t,r,n,i,o,a,s,u,c,f,l,d,h,p,b,y,m,v,w,_,x,O,k,P,S,A,E,M,j,T,B,I,N,R,C,U,L,D,H,F,V,z,q,K,W,G,X,Z,J,Y,Q,$,ee,te,re,ne,ie,oe,ae,se,ue,ce,fe;for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],u=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],f=e[6]^e[16]^e[26]^e[36]^e[46],l=e[7]^e[17]^e[27]^e[37]^e[47],t=(d=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|s>>>31),r=(h=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|a>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=i^(u<<1|c>>>31),r=o^(c<<1|u>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=a^(f<<1|l>>>31),r=s^(l<<1|f>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=u^(d<<1|h>>>31),r=c^(h<<1|d>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=f^(i<<1|o>>>31),r=l^(o<<1|i>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,p=e[0],b=e[1],G=e[11]<<4|e[10]>>>28,X=e[10]<<4|e[11]>>>28,M=e[20]<<3|e[21]>>>29,j=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ue=e[30]<<9|e[31]>>>23,z=e[40]<<18|e[41]>>>14,q=e[41]<<18|e[40]>>>14,R=e[2]<<1|e[3]>>>31,C=e[3]<<1|e[2]>>>31,y=e[13]<<12|e[12]>>>20,m=e[12]<<12|e[13]>>>20,Z=e[22]<<10|e[23]>>>22,J=e[23]<<10|e[22]>>>22,T=e[33]<<13|e[32]>>>19,B=e[32]<<13|e[33]>>>19,ce=e[42]<<2|e[43]>>>30,fe=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,re=e[4]<<30|e[5]>>>2,U=e[14]<<6|e[15]>>>26,L=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,Y=e[34]<<15|e[35]>>>17,Q=e[35]<<15|e[34]>>>17,I=e[45]<<29|e[44]>>>3,N=e[44]<<29|e[45]>>>3,P=e[6]<<28|e[7]>>>4,S=e[7]<<28|e[6]>>>4,ne=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,D=e[26]<<25|e[27]>>>7,H=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,x=e[37]<<21|e[36]>>>11,$=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,K=e[8]<<27|e[9]>>>5,W=e[9]<<27|e[8]>>>5,A=e[18]<<20|e[19]>>>12,E=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,F=e[38]<<8|e[39]>>>24,V=e[39]<<8|e[38]>>>24,O=e[48]<<14|e[49]>>>18,k=e[49]<<14|e[48]>>>18,e[0]=p^~y&v,e[1]=b^~m&w,e[10]=P^~A&M,e[11]=S^~E&j,e[20]=R^~U&D,e[21]=C^~L&H,e[30]=K^~G&Z,e[31]=W^~X&J,e[40]=te^~ne&oe,e[41]=re^~ie&ae,e[2]=y^~v&_,e[3]=m^~w&x,e[12]=A^~M&T,e[13]=E^~j&B,e[22]=U^~D&F,e[23]=L^~H&V,e[32]=G^~Z&Y,e[33]=X^~J&Q,e[42]=ne^~oe&se,e[43]=ie^~ae&ue,e[4]=v^~_&O,e[5]=w^~x&k,e[14]=M^~T&I,e[15]=j^~B&N,e[24]=D^~F&z,e[25]=H^~V&q,e[34]=Z^~Y&$,e[35]=J^~Q&ee,e[44]=oe^~se&ce,e[45]=ae^~ue&fe,e[6]=_^~O&p,e[7]=x^~k&b,e[16]=T^~I&P,e[17]=B^~N&S,e[26]=F^~z&R,e[27]=V^~q&C,e[36]=Y^~$&K,e[37]=Q^~ee&W,e[46]=se^~ce&te,e[47]=ue^~fe&re,e[8]=O^~p&y,e[9]=k^~b&m,e[18]=I^~P&A,e[19]=N^~S&E,e[28]=z^~R&U,e[29]=q^~C&L,e[38]=$^~K&G,e[39]=ee^~W&X,e[48]=ce^~te&ne,e[49]=fe^~re&ie,e[0]^=g[n],e[1]^=g[n+1]};if(l)i.exports=M;else{for(T=0;T<j.length;++T)c[j[T]]=M[j[T]];d&&(void 0===(o=function(){return M}.call(t,r,t,i))||(i.exports=o))}}()}).call(this,r(6),r(7),r(35)(e))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="rlp/5.7.0"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="address/5.7.0"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AddressZero=void 0,t.AddressZero="0x0000000000000000000000000000000000000000"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Zero=t.WeiPerEther=t.Two=t.One=t.NegativeOne=t.MinInt256=t.MaxUint256=t.MaxInt256=void 0;var n=r(33),i=n.BigNumber.from(-1);t.NegativeOne=i;var o=n.BigNumber.from(0);t.Zero=o;var a=n.BigNumber.from(1);t.One=a;var s=n.BigNumber.from(2);t.Two=s;var u=n.BigNumber.from("1000000000000000000");t.WeiPerEther=u;var c=n.BigNumber.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");t.MaxUint256=c;var f=n.BigNumber.from("-0x8000000000000000000000000000000000000000000000000000000000000000");t.MinInt256=f;var l=n.BigNumber.from("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");t.MaxInt256=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HashZero=void 0,t.HashZero="0x0000000000000000000000000000000000000000000000000000000000000000"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EtherSymbol=void 0,t.EtherSymbol="Ξ"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="properties/5.7.0"},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.SigningKey=void 0,t.computePublicKey=b,t.recoverPublicKey=function(e,t){var r=(0,s.splitSignature)(t),n={r:(0,s.arrayify)(r.r),s:(0,s.arrayify)(r.s)};return"0x"+h().recoverPubKey((0,s.arrayify)(e),n,r.recoveryParam).encode("hex",!1)};var i=n(r(8)),o=n(r(9)),a=r(372),s=r(11),u=r(40),c=r(16),f=r(373),l=new c.Logger(f.version),d=null;function h(){return d||(d=new a.EC("secp256k1")),d}var p=function(){function e(t){(0,i.default)(this,e),(0,u.defineReadOnly)(this,"curve","secp256k1"),(0,u.defineReadOnly)(this,"privateKey",(0,s.hexlify)(t)),32!==(0,s.hexDataLength)(this.privateKey)&&l.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");var r=h().keyFromPrivate((0,s.arrayify)(this.privateKey));(0,u.defineReadOnly)(this,"publicKey","0x"+r.getPublic(!1,"hex")),(0,u.defineReadOnly)(this,"compressedPublicKey","0x"+r.getPublic(!0,"hex")),(0,u.defineReadOnly)(this,"_isSigningKey",!0)}return(0,o.default)(e,[{key:"_addPoint",value:function(e){var t=h().keyFromPublic((0,s.arrayify)(this.publicKey)),r=h().keyFromPublic((0,s.arrayify)(e));return"0x"+t.pub.add(r.pub).encodeCompressed("hex")}},{key:"signDigest",value:function(e){var t=h().keyFromPrivate((0,s.arrayify)(this.privateKey)),r=(0,s.arrayify)(e);32!==r.length&&l.throwArgumentError("bad digest length","digest",e);var n=t.sign(r,{canonical:!0});return(0,s.splitSignature)({recoveryParam:n.recoveryParam,r:(0,s.hexZeroPad)("0x"+n.r.toString(16),32),s:(0,s.hexZeroPad)("0x"+n.s.toString(16),32)})}},{key:"computeSharedSecret",value:function(e){var t=h().keyFromPrivate((0,s.arrayify)(this.privateKey)),r=h().keyFromPublic((0,s.arrayify)(b(e)));return(0,s.hexZeroPad)("0x"+t.derive(r.getPublic()).toString(16),32)}}],[{key:"isSigningKey",value:function(e){return!(!e||!e._isSigningKey)}}]),e}();function b(e,t){var r=(0,s.arrayify)(e);if(32===r.length){var n=new p(r);return t?"0x"+h().keyFromPrivate(r).getPublic(!0,"hex"):n.publicKey}return 33===r.length?t?(0,s.hexlify)(r):"0x"+h().keyFromPublic(r).getPublic(!1,"hex"):65===r.length?t?"0x"+h().keyFromPublic(r).getPublic(!0,"hex"):(0,s.hexlify)(r):l.throwArgumentError("invalid public or private key","key","[REDACTED]")}t.SigningKey=p},function(e,t,r){"use strict";(function(e){var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.EC=void 0;var i=n(r(2)),o=n(r(4)),a=n(r(72));function s(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&r.path)}},r.exports),r.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e||"undefined"!=typeof self&&self;var u=c;function c(e,t){if(!e)throw new Error(t||"Assertion failed")}c.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)};var f=s((function(e,t){var r=t;function n(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",r=0;r<e.length;r++)t+=n(e[r].toString(16));return t}r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e){for(var n=0;n<e.length;n++)r[n]=0|e[n];return r}if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16));else for(n=0;n<e.length;n++){var i=e.charCodeAt(n),o=i>>8,a=255&i;o?r.push(o,a):r.push(a)}return r},r.zero2=n,r.toHex=i,r.encode=function(e,t){return"hex"===t?i(e):e}})),l=s((function(e,t){var r=t;r.assert=u,r.toArray=f.toArray,r.zero2=f.zero2,r.toHex=f.toHex,r.encode=f.encode,r.getNAF=function(e,t,r){var n=new Array(Math.max(e.bitLength(),r)+1);n.fill(0);for(var i=1<<t+1,o=e.clone(),a=0;a<n.length;a++){var s,u=o.andln(i-1);o.isOdd()?(s=u>(i>>1)-1?(i>>1)-u:u,o.isubn(s)):s=0,n[a]=s,o.iushrn(1)}return n},r.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n,i=0,o=0;e.cmpn(-i)>0||t.cmpn(-o)>0;){var a,s,u=e.andln(3)+i&3,c=t.andln(3)+o&3;3===u&&(u=-1),3===c&&(c=-1),a=0==(1&u)?0:3!=(n=e.andln(7)+i&7)&&5!==n||2!==c?u:-u,r[0].push(a),s=0==(1&c)?0:3!=(n=t.andln(7)+o&7)&&5!==n||2!==u?c:-c,r[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return r},r.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new o.default(e,"hex","le")}})),d=l.getNAF,h=l.getJSF,p=l.assert;function b(e,t){this.type=e,this.p=new o.default(t.p,16),this.red=t.prime?o.default.red(t.prime):o.default.mont(this.p),this.zero=new o.default(0).toRed(this.red),this.one=new o.default(1).toRed(this.red),this.two=new o.default(2).toRed(this.red),this.n=t.n&&new o.default(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var y=b;function g(e,t){this.curve=e,this.type=t,this.precomputed=null}b.prototype.point=function(){throw new Error("Not implemented")},b.prototype.validate=function(){throw new Error("Not implemented")},b.prototype._fixedNafMul=function(e,t){p(e.precomputed);var r=e._getDoubles(),n=d(t,1,this._bitLength),i=(1<<r.step+1)-(r.step%2==0?2:1);i/=3;var o,a,s=[];for(o=0;o<n.length;o+=r.step){a=0;for(var u=o+r.step-1;u>=o;u--)a=(a<<1)+n[u];s.push(a)}for(var c=this.jpoint(null,null,null),f=this.jpoint(null,null,null),l=i;l>0;l--){for(o=0;o<s.length;o++)(a=s[o])===l?f=f.mixedAdd(r.points[o]):a===-l&&(f=f.mixedAdd(r.points[o].neg()));c=c.add(f)}return c.toP()},b.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var i=n.points,o=d(t,r,this._bitLength),a=this.jpoint(null,null,null),s=o.length-1;s>=0;s--){for(var u=0;s>=0&&0===o[s];s--)u++;if(s>=0&&u++,a=a.dblp(u),s<0)break;var c=o[s];p(0!==c),a="affine"===e.type?c>0?a.mixedAdd(i[c-1>>1]):a.mixedAdd(i[-c-1>>1].neg()):c>0?a.add(i[c-1>>1]):a.add(i[-c-1>>1].neg())}return"affine"===e.type?a.toP():a},b.prototype._wnafMulAdd=function(e,t,r,n,i){var o,a,s,u=this._wnafT1,c=this._wnafT2,f=this._wnafT3,l=0;for(o=0;o<n;o++){var p=(s=t[o])._getNAFPoints(e);u[o]=p.wnd,c[o]=p.points}for(o=n-1;o>=1;o-=2){var b=o-1,y=o;if(1===u[b]&&1===u[y]){var g=[t[b],null,null,t[y]];0===t[b].y.cmp(t[y].y)?(g[1]=t[b].add(t[y]),g[2]=t[b].toJ().mixedAdd(t[y].neg())):0===t[b].y.cmp(t[y].y.redNeg())?(g[1]=t[b].toJ().mixedAdd(t[y]),g[2]=t[b].add(t[y].neg())):(g[1]=t[b].toJ().mixedAdd(t[y]),g[2]=t[b].toJ().mixedAdd(t[y].neg()));var m=[-3,-1,-5,-7,0,7,5,1,3],v=h(r[b],r[y]);for(l=Math.max(v[0].length,l),f[b]=new Array(l),f[y]=new Array(l),a=0;a<l;a++){var w=0|v[0][a],_=0|v[1][a];f[b][a]=m[3*(w+1)+(_+1)],f[y][a]=0,c[b]=g}}else f[b]=d(r[b],u[b],this._bitLength),f[y]=d(r[y],u[y],this._bitLength),l=Math.max(f[b].length,l),l=Math.max(f[y].length,l)}var x=this.jpoint(null,null,null),O=this._wnafT4;for(o=l;o>=0;o--){for(var k=0;o>=0;){var P=!0;for(a=0;a<n;a++)O[a]=0|f[a][o],0!==O[a]&&(P=!1);if(!P)break;k++,o--}if(o>=0&&k++,x=x.dblp(k),o<0)break;for(a=0;a<n;a++){var S=O[a];0!==S&&(S>0?s=c[a][S-1>>1]:S<0&&(s=c[a][-S-1>>1].neg()),x="affine"===s.type?x.mixedAdd(s):x.add(s))}}for(o=0;o<n;o++)c[o]=null;return i?x:x.toP()},b.BasePoint=g,g.prototype.eq=function(){throw new Error("Not implemented")},g.prototype.validate=function(){return this.curve.validate(this)},b.prototype.decodePoint=function(e,t){e=l.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?p(e[e.length-1]%2==0):7===e[0]&&p(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw new Error("Unknown point format")},g.prototype.encodeCompressed=function(e){return this.encode(e,!0)},g.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},g.prototype.encode=function(e,t){return l.encode(this._encode(t),e)},g.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},g.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},g.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)n=n.dbl();r.push(n)}return{step:e,points:r}},g.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},g.prototype._getBeta=function(){return null},g.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t};var m=s((function(e){"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}}})),v=l.assert;function w(e){y.call(this,"short",e),this.a=new o.default(e.a,16).toRed(this.red),this.b=new o.default(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}m(w,y);var _=w;function x(e,t,r,n){y.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new o.default(t,16),this.y=new o.default(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function O(e,t,r,n){y.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new o.default(0)):(this.x=new o.default(t,16),this.y=new o.default(r,16),this.z=new o.default(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}w.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,r;if(e.beta)t=new o.default(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);t=(t=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(e.lambda)r=new o.default(e.lambda,16);else{var i=this._getEndoRoots(this.n);0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(t))?r=i[0]:(r=i[1],v(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:r,basis:e.basis?e.basis.map((function(e){return{a:new o.default(e.a,16),b:new o.default(e.b,16)}})):this._getEndoBasis(r)}}},w.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:o.default.mont(e),r=new o.default(2).toRed(t).redInvm(),n=r.redNeg(),i=new o.default(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(i).fromRed(),n.redSub(i).fromRed()]},w.prototype._getEndoBasis=function(e){for(var t,r,n,i,a,s,u,c,f,l=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=e,h=this.n.clone(),p=new o.default(1),b=new o.default(0),y=new o.default(0),g=new o.default(1),m=0;0!==d.cmpn(0);){var v=h.div(d);c=h.sub(v.mul(d)),f=y.sub(v.mul(p));var w=g.sub(v.mul(b));if(!n&&c.cmp(l)<0)t=u.neg(),r=p,n=c.neg(),i=f;else if(n&&2==++m)break;u=c,h=d,d=c,y=p,p=f,g=b,b=w}a=c.neg(),s=f;var _=n.sqr().add(i.sqr());return a.sqr().add(s.sqr()).cmp(_)>=0&&(a=t,s=r),n.negative&&(n=n.neg(),i=i.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:i},{a,b:s}]},w.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),u=i.mul(r.b),c=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:u.add(c).neg()}},w.prototype.pointFromX=function(e,t){(e=new o.default(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},w.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},w.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var a=this._endoSplit(t[o]),s=e[o],u=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),u=u.neg(!0)),n[2*o]=s,n[2*o+1]=u,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var c=this._wnafMulAdd(1,n,i,2*o,r),f=0;f<2*o;f++)n[f]=null,i[f]=null;return c},m(x,y.BasePoint),w.prototype.point=function(e,t,r){return new x(this,e,t,r)},w.prototype.pointFromJSON=function(e,t){return x.fromJSON(this,e,t)},x.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},x.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},x.fromJSON=function(e,t,r){"string"==typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],r);if(!t[2])return n;function i(t){return e.point(t[0],t[1],r)}var o=t[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},x.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},x.prototype.isInfinity=function(){return this.inf},x.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},x.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},x.prototype.getX=function(){return this.x.fromRed()},x.prototype.getY=function(){return this.y.fromRed()},x.prototype.mul=function(e){return e=new o.default(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},x.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},x.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},x.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},x.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},x.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},m(O,y.BasePoint),w.prototype.jpoint=function(e,t,r){return new O(this,e,t,r)},O.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},O.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},O.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),f=c.redMul(s),l=n.redMul(c),d=u.redSqr().redIAdd(f).redISub(l).redISub(l),h=u.redMul(l.redISub(d)).redISub(o.redMul(f)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,h,p)},O.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),c=u.redMul(a),f=r.redMul(u),l=s.redSqr().redIAdd(c).redISub(f).redISub(f),d=s.redMul(f.redISub(l)).redISub(i.redMul(c)),h=this.z.redMul(a);return this.curve.jpoint(l,d,h)},O.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var r=this;for(t=0;t<e;t++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,u=s.redSqr().redSqr(),c=a.redAdd(a);for(t=0;t<e;t++){var f=o.redSqr(),l=c.redSqr(),d=l.redSqr(),h=f.redAdd(f).redIAdd(f).redIAdd(n.redMul(u)),p=o.redMul(l),b=h.redSqr().redISub(p.redAdd(p)),y=p.redISub(b),g=h.redMul(y);g=g.redIAdd(g).redISub(d);var m=c.redMul(s);t+1<e&&(u=u.redMul(d)),o=b,s=m,c=g}return this.curve.jpoint(o,c.redMul(i),s)},O.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},O.prototype._zeroDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n),u=s.redSqr().redISub(a).redISub(a),c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),e=u,t=s.redMul(a.redISub(u)).redISub(c),r=this.y.redAdd(this.y)}else{var f=this.x.redSqr(),l=this.y.redSqr(),d=l.redSqr(),h=this.x.redAdd(l).redSqr().redISub(f).redISub(d);h=h.redIAdd(h);var p=f.redAdd(f).redIAdd(f),b=p.redSqr(),y=d.redIAdd(d);y=(y=y.redIAdd(y)).redIAdd(y),e=b.redISub(h).redISub(h),t=p.redMul(h.redISub(e)).redISub(y),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},O.prototype._threeDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),u=s.redSqr().redISub(a).redISub(a);e=u;var c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),t=s.redMul(a.redISub(u)).redISub(c),r=this.y.redAdd(this.y)}else{var f=this.z.redSqr(),l=this.y.redSqr(),d=this.x.redMul(l),h=this.x.redSub(f).redMul(this.x.redAdd(f));h=h.redAdd(h).redIAdd(h);var p=d.redIAdd(d),b=(p=p.redIAdd(p)).redAdd(p);e=h.redSqr().redISub(b),r=this.y.redAdd(this.z).redSqr().redISub(l).redISub(f);var y=l.redSqr();y=(y=(y=y.redIAdd(y)).redIAdd(y)).redIAdd(y),t=h.redMul(p.redISub(e)).redISub(y)}return this.curve.jpoint(e,t,r)},O.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=t.redSqr(),a=r.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),u=t.redAdd(t),c=(u=u.redIAdd(u)).redMul(a),f=s.redSqr().redISub(c.redAdd(c)),l=c.redISub(f),d=a.redSqr();d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var h=s.redMul(l).redISub(d),p=r.redAdd(r).redMul(n);return this.curve.jpoint(f,h,p)},O.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),a=this.x.redAdd(t).redSqr().redISub(e).redISub(n),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),u=n.redIAdd(n);u=(u=(u=u.redIAdd(u)).redIAdd(u)).redIAdd(u);var c=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(u),f=t.redMul(c);f=(f=f.redIAdd(f)).redIAdd(f);var l=this.x.redMul(s).redISub(f);l=(l=l.redIAdd(l)).redIAdd(l);var d=this.y.redMul(c.redMul(u.redISub(c)).redISub(a.redMul(s)));d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var h=this.z.redAdd(a).redSqr().redISub(r).redISub(s);return this.curve.jpoint(l,d,h)},O.prototype.mul=function(e,t){return e=new o.default(e,t),this.curve._wnafMul(this,e)},O.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),i=r.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)},O.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),i=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},O.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},O.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var k=s((function(e,t){var r=t;r.base=y,r.short=_,r.mont=null,r.edwards=null})),P=s((function(e,t){var r,n=t,i=l.assert;function o(e){"short"===e.type?this.curve=new k.short(e):"edwards"===e.type?this.curve=new k.edwards(e):this.curve=new k.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function s(e,t){Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:function(){var r=new o(t);return Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=o,s("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:a.default.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),s("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:a.default.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),s("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:a.default.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),s("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:a.default.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),s("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:a.default.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),s("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.default.sha256,gRed:!1,g:["9"]}),s("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.default.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=null.crash()}catch(e){r=void 0}s("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:a.default.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})}));function S(e){if(!(this instanceof S))return new S(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=f.toArray(e.entropy,e.entropyEnc||"hex"),r=f.toArray(e.nonce,e.nonceEnc||"hex"),n=f.toArray(e.pers,e.persEnc||"hex");u(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}var A=S;S.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},S.prototype._hmac=function(){return new a.default.hmac(this.hash,this.K)},S.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},S.prototype.reseed=function(e,t,r,n){"string"!=typeof t&&(n=r,r=t,t=null),e=f.toArray(e,t),r=f.toArray(r,n),u(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},S.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=f.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length<e;)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var o=i.slice(0,e);return this._update(r),this._reseed++,f.encode(o,t)};var E=l.assert;function M(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}var j=M;M.fromPublic=function(e,t,r){return t instanceof M?t:new M(e,{pub:t,pubEnc:r})},M.fromPrivate=function(e,t,r){return t instanceof M?t:new M(e,{priv:t,privEnc:r})},M.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},M.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},M.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},M.prototype._importPrivate=function(e,t){this.priv=new o.default(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},M.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?E(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||E(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},M.prototype.derive=function(e){return e.validate()||E(e.validate(),"public point not validated"),e.mul(this.priv).getX()},M.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},M.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},M.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var T=l.assert;function B(e,t){if(e instanceof B)return e;this._importDER(e,t)||(T(e.r&&e.s,"Signature without r or s"),this.r=new o.default(e.r,16),this.s=new o.default(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var I=B;function N(){this.place=0}function R(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,o=0,a=t.place;o<n;o++,a++)i<<=8,i|=e[a],i>>>=0;return!(i<=127)&&(t.place=a,i)}function C(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function U(e,t){if(t<128)e.push(t);else{var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}B.prototype._importDER=function(e,t){e=l.toArray(e,t);var r=new N;if(48!==e[r.place++])return!1;var n=R(e,r);if(!1===n)return!1;if(n+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var i=R(e,r);if(!1===i)return!1;var a=e.slice(r.place,i+r.place);if(r.place+=i,2!==e[r.place++])return!1;var s=R(e,r);if(!1===s)return!1;if(e.length!==s+r.place)return!1;var u=e.slice(r.place,s+r.place);if(0===a[0]){if(!(128&a[1]))return!1;a=a.slice(1)}if(0===u[0]){if(!(128&u[1]))return!1;u=u.slice(1)}return this.r=new o.default(a),this.s=new o.default(u),this.recoveryParam=null,!0},B.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=C(t),r=C(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];U(n,t.length),(n=n.concat(t)).push(2),U(n,r.length);var i=n.concat(r),o=[48];return U(o,i.length),o=o.concat(i),l.encode(o,e)};var L=function(){throw new Error("unsupported")},D=l.assert;function H(e){if(!(this instanceof H))return new H(e);"string"==typeof e&&(D(Object.prototype.hasOwnProperty.call(P,e),"Unknown curve "+e),e=P[e]),e instanceof P.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}var F=H;H.prototype.keyPair=function(e){return new j(this,e)},H.prototype.keyFromPrivate=function(e,t){return j.fromPrivate(this,e,t)},H.prototype.keyFromPublic=function(e,t){return j.fromPublic(this,e,t)},H.prototype.genKeyPair=function(e){e||(e={});for(var t=new A({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||L(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new o.default(2));;){var i=new o.default(t.generate(r));if(!(i.cmp(n)>0))return i.iaddn(1),this.keyFromPrivate(i)}},H.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},H.prototype.sign=function(e,t,r,n){"object"===(0,i.default)(r)&&(n=r,r=null),n||(n={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new o.default(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),u=e.toArray("be",a),c=new A({hash:this.hash,entropy:s,nonce:u,pers:n.pers,persEnc:n.persEnc||"utf8"}),f=this.n.sub(new o.default(1)),l=0;;l++){var d=n.k?n.k(l):new o.default(c.generate(this.n.byteLength()));if(!((d=this._truncateToN(d,!0)).cmpn(1)<=0||d.cmp(f)>=0)){var h=this.g.mul(d);if(!h.isInfinity()){var p=h.getX(),b=p.umod(this.n);if(0!==b.cmpn(0)){var y=d.invm(this.n).mul(b.mul(t.getPrivate()).iadd(e));if(0!==(y=y.umod(this.n)).cmpn(0)){var g=(h.getY().isOdd()?1:0)|(0!==p.cmp(b)?2:0);return n.canonical&&y.cmp(this.nh)>0&&(y=this.n.sub(y),g^=1),new I({r:b,s:y,recoveryParam:g})}}}}}},H.prototype.verify=function(e,t,r,n){e=this._truncateToN(new o.default(e,16)),r=this.keyFromPublic(r,n);var i=(t=new I(t,"hex")).r,a=t.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,u=a.invm(this.n),c=u.mul(e).umod(this.n),f=u.mul(i).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,r.getPublic(),f)).isInfinity()&&s.eqXToP(i):!(s=this.g.mulAdd(c,r.getPublic(),f)).isInfinity()&&0===s.getX().umod(this.n).cmp(i)},H.prototype.recoverPubKey=function(e,t,r,n){D((3&r)===r,"The recovery param is more than two bits"),t=new I(t,n);var i=this.n,a=new o.default(e),s=t.r,u=t.s,c=1&r,f=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&f)throw new Error("Unable to find sencond key candinate");s=f?this.curve.pointFromX(s.add(this.curve.n),c):this.curve.pointFromX(s,c);var l=t.r.invm(i),d=i.sub(a).mul(l).umod(i),h=u.mul(l).umod(i);return this.g.mulAdd(d,s,h)},H.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new I(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")};var V=s((function(e,t){var r=t;r.version="6.5.4",r.utils=l,r.rand=function(){throw new Error("unsupported")},r.curve=k,r.curves=P,r.ec=F,r.eddsa=null})).ec;t.EC=V}).call(this,r(7))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="signing-key/5.7.0"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="transactions/5.7.0"},function(e,t,r){"use strict";var n=r(34),i=r(12),o=r(79).subscriptions,a=r(38),s=r(17),u=r(81),c=r(376),f=r(193),l=r(177),d=r(166),h=r(443),p=r(178),b=r(600),y=i.formatters,g=function(e){return"string"==typeof e[0]&&0===e[0].indexOf("0x")?"eth_getBlockByHash":"eth_getBlockByNumber"},m=function(e){return"string"==typeof e[0]&&0===e[0].indexOf("0x")?"eth_getTransactionByBlockHashAndIndex":"eth_getTransactionByBlockNumberAndIndex"},v=function(e){return"string"==typeof e[0]&&0===e[0].indexOf("0x")?"eth_getUncleByBlockHashAndIndex":"eth_getUncleByBlockNumberAndIndex"},w=function(e){return"string"==typeof e[0]&&0===e[0].indexOf("0x")?"eth_getBlockTransactionCountByHash":"eth_getBlockTransactionCountByNumber"},_=function(e){return"string"==typeof e[0]&&0===e[0].indexOf("0x")?"eth_getUncleCountByBlockHash":"eth_getUncleCountByBlockNumber"},x=function(){var e=this;n.packageInit(this,arguments);var t=this.setRequestManager;this.setRequestManager=function(r){return t(r),e.net.setRequestManager(r),e.personal.setRequestManager(r),e.accounts.setRequestManager(r),e.Contract._requestManager=e._requestManager,e.Contract.currentProvider=e._provider,!0};var r=this.setProvider;this.setProvider=function(){r.apply(e,arguments),e.setRequestManager(e._requestManager),e.ens._detectedAddress=null,e.ens._lastSyncCheck=null};var i,x,O,k=!1,P=null,S="latest",A=50,E=24,M=750,j=1e3,T=10,B=100;Object.defineProperty(this,"handleRevert",{get:function(){return k},set:function(t){k=t,e.Contract.handleRevert=k,R.forEach((function(e){e.handleRevert=k}))},enumerable:!0}),Object.defineProperty(this,"defaultCommon",{get:function(){return O},set:function(t){O=t,e.Contract.defaultCommon=O,R.forEach((function(e){e.defaultCommon=O}))},enumerable:!0}),Object.defineProperty(this,"defaultHardfork",{get:function(){return x},set:function(t){x=t,e.Contract.defaultHardfork=x,R.forEach((function(e){e.defaultHardfork=x}))},enumerable:!0}),Object.defineProperty(this,"defaultChain",{get:function(){return i},set:function(t){i=t,e.Contract.defaultChain=i,R.forEach((function(e){e.defaultChain=i}))},enumerable:!0}),Object.defineProperty(this,"transactionPollingTimeout",{get:function(){return M},set:function(t){M=t,e.Contract.transactionPollingTimeout=M,R.forEach((function(e){e.transactionPollingTimeout=M}))},enumerable:!0}),Object.defineProperty(this,"transactionPollingInterval",{get:function(){return j},set:function(t){j=t,e.Contract.transactionPollingInterval=j,R.forEach((function(e){e.transactionPollingInterval=j}))},enumerable:!0}),Object.defineProperty(this,"transactionConfirmationBlocks",{get:function(){return E},set:function(t){E=t,e.Contract.transactionConfirmationBlocks=E,R.forEach((function(e){e.transactionConfirmationBlocks=E}))},enumerable:!0}),Object.defineProperty(this,"transactionBlockTimeout",{get:function(){return A},set:function(t){A=t,e.Contract.transactionBlockTimeout=A,R.forEach((function(e){e.transactionBlockTimeout=A}))},enumerable:!0}),Object.defineProperty(this,"blockHeaderTimeout",{get:function(){return T},set:function(t){T=t,e.Contract.blockHeaderTimeout=T,R.forEach((function(e){e.blockHeaderTimeout=T}))},enumerable:!0}),Object.defineProperty(this,"defaultAccount",{get:function(){return P},set:function(t){return t&&(P=s.toChecksumAddress(y.inputAddressFormatter(t))),e.Contract.defaultAccount=P,e.personal.defaultAccount=P,R.forEach((function(e){e.defaultAccount=P})),t},enumerable:!0}),Object.defineProperty(this,"defaultBlock",{get:function(){return S},set:function(t){return S=t,e.Contract.defaultBlock=S,e.personal.defaultBlock=S,R.forEach((function(e){e.defaultBlock=S})),t},enumerable:!0}),Object.defineProperty(this,"maxListenersWarningThreshold",{get:function(){return B},set:function(t){e.currentProvider&&e.currentProvider.setMaxListeners&&(B=t,e.currentProvider.setMaxListeners(t))},enumerable:!0}),this.clearSubscriptions=e._requestManager.clearSubscriptions.bind(e._requestManager),this.removeSubscriptionById=e._requestManager.removeSubscription.bind(e._requestManager),this.net=new u(this),this.net.getNetworkType=b.bind(this),this.accounts=new h(this),this.personal=new f(this),this.personal.defaultAccount=this.defaultAccount,this.maxListenersWarningThreshold=B;var I=this,N=function(){l.apply(this,arguments);var e=this,t=I.setProvider;I.setProvider=function(){t.apply(I,arguments),n.packageInit(e,[I])}};N.setProvider=function(){l.setProvider.apply(this,arguments)},(N.prototype=Object.create(l.prototype)).constructor=N,this.Contract=N,this.Contract.defaultAccount=this.defaultAccount,this.Contract.defaultBlock=this.defaultBlock,this.Contract.transactionBlockTimeout=this.transactionBlockTimeout,this.Contract.transactionConfirmationBlocks=this.transactionConfirmationBlocks,this.Contract.transactionPollingTimeout=this.transactionPollingTimeout,this.Contract.transactionPollingInterval=this.transactionPollingInterval,this.Contract.blockHeaderTimeout=this.blockHeaderTimeout,this.Contract.handleRevert=this.handleRevert,this.Contract._requestManager=this._requestManager,this.Contract._ethAccounts=this.accounts,this.Contract.currentProvider=this._requestManager.provider,this.Iban=d,this.abi=p,this.ens=new c(this);var R=[new a({name:"getNodeInfo",call:"web3_clientVersion"}),new a({name:"getProtocolVersion",call:"eth_protocolVersion",params:0}),new a({name:"getCoinbase",call:"eth_coinbase",params:0}),new a({name:"isMining",call:"eth_mining",params:0}),new a({name:"getHashrate",call:"eth_hashrate",params:0,outputFormatter:s.hexToNumber}),new a({name:"isSyncing",call:"eth_syncing",params:0,outputFormatter:y.outputSyncingFormatter}),new a({name:"getGasPrice",call:"eth_gasPrice",params:0,outputFormatter:y.outputBigNumberFormatter}),new a({name:"getFeeHistory",call:"eth_feeHistory",params:3,inputFormatter:[s.numberToHex,y.inputBlockNumberFormatter,null]}),new a({name:"getAccounts",call:"eth_accounts",params:0,outputFormatter:s.toChecksumAddress}),new a({name:"getBlockNumber",call:"eth_blockNumber",params:0,outputFormatter:s.hexToNumber}),new a({name:"getBalance",call:"eth_getBalance",params:2,inputFormatter:[y.inputAddressFormatter,y.inputDefaultBlockNumberFormatter],outputFormatter:y.outputBigNumberFormatter}),new a({name:"getStorageAt",call:"eth_getStorageAt",params:3,inputFormatter:[y.inputAddressFormatter,s.numberToHex,y.inputDefaultBlockNumberFormatter]}),new a({name:"getCode",call:"eth_getCode",params:2,inputFormatter:[y.inputAddressFormatter,y.inputDefaultBlockNumberFormatter]}),new a({name:"getBlock",call:g,params:2,inputFormatter:[y.inputBlockNumberFormatter,function(e){return!!e}],outputFormatter:y.outputBlockFormatter}),new a({name:"getUncle",call:v,params:2,inputFormatter:[y.inputBlockNumberFormatter,s.numberToHex],outputFormatter:y.outputBlockFormatter}),new a({name:"getBlockTransactionCount",call:w,params:1,inputFormatter:[y.inputBlockNumberFormatter],outputFormatter:s.hexToNumber}),new a({name:"getBlockUncleCount",call:_,params:1,inputFormatter:[y.inputBlockNumberFormatter],outputFormatter:s.hexToNumber}),new a({name:"getTransaction",call:"eth_getTransactionByHash",params:1,inputFormatter:[null],outputFormatter:y.outputTransactionFormatter}),new a({name:"getTransactionFromBlock",call:m,params:2,inputFormatter:[y.inputBlockNumberFormatter,s.numberToHex],outputFormatter:y.outputTransactionFormatter}),new a({name:"getTransactionReceipt",call:"eth_getTransactionReceipt",params:1,inputFormatter:[null],outputFormatter:y.outputTransactionReceiptFormatter}),new a({name:"getTransactionCount",call:"eth_getTransactionCount",params:2,inputFormatter:[y.inputAddressFormatter,y.inputDefaultBlockNumberFormatter],outputFormatter:s.hexToNumber}),new a({name:"sendSignedTransaction",call:"eth_sendRawTransaction",params:1,inputFormatter:[null],abiCoder:p}),new a({name:"signTransaction",call:"eth_signTransaction",params:1,inputFormatter:[y.inputTransactionFormatter]}),new a({name:"sendTransaction",call:"eth_sendTransaction",params:1,inputFormatter:[y.inputTransactionFormatter],abiCoder:p}),new a({name:"sign",call:"eth_sign",params:2,inputFormatter:[y.inputSignFormatter,y.inputAddressFormatter],transformPayload:function(e){return e.params.reverse(),e}}),new a({name:"call",call:"eth_call",params:2,inputFormatter:[y.inputCallFormatter,y.inputDefaultBlockNumberFormatter],abiCoder:p}),new a({name:"estimateGas",call:"eth_estimateGas",params:1,inputFormatter:[y.inputCallFormatter],outputFormatter:s.hexToNumber}),new a({name:"submitWork",call:"eth_submitWork",params:3}),new a({name:"getWork",call:"eth_getWork",params:0}),new a({name:"getPastLogs",call:"eth_getLogs",params:1,inputFormatter:[y.inputLogFormatter],outputFormatter:y.outputLogFormatter}),new a({name:"getChainId",call:"eth_chainId",params:0,outputFormatter:s.hexToNumber}),new a({name:"requestAccounts",call:"eth_requestAccounts",params:0,outputFormatter:s.toChecksumAddress}),new a({name:"getProof",call:"eth_getProof",params:3,inputFormatter:[y.inputAddressFormatter,y.inputStorageKeysFormatter,y.inputDefaultBlockNumberFormatter],outputFormatter:y.outputProofFormatter}),new a({name:"getPendingTransactions",call:"eth_pendingTransactions",params:0,outputFormatter:y.outputTransactionFormatter}),new a({name:"createAccessList",call:"eth_createAccessList",params:2,inputFormatter:[y.inputTransactionFormatter,y.inputDefaultBlockNumberFormatter]}),new o({name:"subscribe",type:"eth",subscriptions:{newBlockHeaders:{subscriptionName:"newHeads",params:0,outputFormatter:y.outputBlockFormatter},pendingTransactions:{subscriptionName:"newPendingTransactions",params:0},logs:{params:1,inputFormatter:[y.inputLogFormatter],outputFormatter:y.outputLogFormatter,subscriptionHandler:function(e){e.removed?this.emit("changed",e):this.emit("data",e),"function"==typeof this.callback&&this.callback(null,e,this)}},syncing:{params:0,outputFormatter:y.outputSyncingFormatter,subscriptionHandler:function(e){var t=this;!0!==this._isSyncing?(this._isSyncing=!0,this.emit("changed",t._isSyncing),"function"==typeof this.callback&&this.callback(null,t._isSyncing,this),setTimeout((function(){t.emit("data",e),"function"==typeof t.callback&&t.callback(null,e,t)}),0)):(this.emit("data",e),"function"==typeof t.callback&&this.callback(null,e,this),clearTimeout(this._isSyncingTimeout),this._isSyncingTimeout=setTimeout((function(){e.currentBlock>e.highestBlock-200&&(t._isSyncing=!1,t.emit("changed",t._isSyncing),"function"==typeof t.callback&&t.callback(null,t._isSyncing,t))}),500))}}}})];R.forEach((function(t){t.attachToObject(e),t.setRequestManager(e._requestManager,e.accounts),t.defaultBlock=e.defaultBlock,t.defaultAccount=e.defaultAccount,t.transactionBlockTimeout=e.transactionBlockTimeout,t.transactionConfirmationBlocks=e.transactionConfirmationBlocks,t.transactionPollingTimeout=e.transactionPollingTimeout,t.transactionPollingInterval=e.transactionPollingInterval,t.handleRevert=e.handleRevert}))};n.addProviders(x),e.exports=x},function(e,t,r){"use strict";var n=r(377);e.exports=n},function(e,t,r){"use strict";var n=r(0),i=n(r(63)),o=n(r(105)),a=r(176),s=r(12).formatters,u=r(17),c=r(378),f=r(408),l=r(409);function d(e){this.eth=e;var t=null;this._detectedAddress=null,this._lastSyncCheck=null,Object.defineProperty(this,"registry",{get:function(){return new c(this)},enumerable:!0}),Object.defineProperty(this,"resolverMethodHandler",{get:function(){return new f(this.registry)},enumerable:!0}),Object.defineProperty(this,"registryAddress",{get:function(){return t},set:function(e){t=null!==e?s.inputAddressFormatter(e):e},enumerable:!0})}d.prototype.supportsInterface=function(e,t,r){return this.getResolver(e).then((function(e){return u.isHexStrict(t)||(t=u.sha3(t).slice(0,10)),e.methods.supportsInterface(t).call(r)})).catch((function(e){if("function"!=typeof r)throw e;r(e,null)}))},d.prototype.resolver=function(e,t){return this.registry.resolver(e,t)},d.prototype.getResolver=function(e,t){return this.registry.getResolver(e,t)},d.prototype.setResolver=function(e,t,r,n){return this.registry.setResolver(e,t,r,n)},d.prototype.setRecord=function(e,t,r,n,i,o){return this.registry.setRecord(e,t,r,n,i,o)},d.prototype.setSubnodeRecord=function(e,t,r,n,i,o,a){return this.registry.setSubnodeRecord(e,t,r,n,i,o,a)},d.prototype.setApprovalForAll=function(e,t,r,n){return this.registry.setApprovalForAll(e,t,r,n)},d.prototype.isApprovedForAll=function(e,t,r){return this.registry.isApprovedForAll(e,t,r)},d.prototype.recordExists=function(e,t){return this.registry.recordExists(e,t)},d.prototype.setSubnodeOwner=function(e,t,r,n,i){return this.registry.setSubnodeOwner(e,t,r,n,i)},d.prototype.getTTL=function(e,t){return this.registry.getTTL(e,t)},d.prototype.setTTL=function(e,t,r,n){return this.registry.setTTL(e,t,r,n)},d.prototype.getOwner=function(e,t){return this.registry.getOwner(e,t)},d.prototype.setOwner=function(e,t,r,n){return this.registry.setOwner(e,t,r,n)},d.prototype.getAddress=function(e,t){return this.resolverMethodHandler.method(e,"addr",[]).call(t)},d.prototype.setAddress=function(e,t,r,n){return this.resolverMethodHandler.method(e,"setAddr",[t]).send(r,n)},d.prototype.getPubkey=function(e,t){return this.resolverMethodHandler.method(e,"pubkey",[],null,t).call(t)},d.prototype.setPubkey=function(e,t,r,n,i){return this.resolverMethodHandler.method(e,"setPubkey",[t,r]).send(n,i)},d.prototype.getContent=function(e,t){return this.resolverMethodHandler.method(e,"content",[]).call(t)},d.prototype.setContent=function(e,t,r,n){return this.resolverMethodHandler.method(e,"setContent",[t]).send(r,n)},d.prototype.getContenthash=function(e,t){return this.resolverMethodHandler.method(e,"contenthash",[],l.decode).call(t)},d.prototype.setContenthash=function(e,t,r,n){var i;try{i=l.encode(t)}catch(e){var o=new Error("Could not encode "+t+". See docs for supported hash protocols.");if("function"==typeof n)return void n(o,null);throw o}return this.resolverMethodHandler.method(e,"setContenthash",[i]).send(r,n)},d.prototype.getMultihash=function(e,t){return this.resolverMethodHandler.method(e,"multihash",[]).call(t)},d.prototype.setMultihash=function(e,t,r,n){return this.resolverMethodHandler.method(e,"multihash",[t]).send(r,n)},d.prototype.checkNetwork=(0,o.default)(i.default.mark((function e(){var t,r,n,o,s;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=new Date/1e3,this._lastSyncCheck&&!(t-this._lastSyncCheck>3600)){e.next=9;break}return e.next=4,this.eth.getBlock("latest");case 4:if(r=e.sent,!((n=t-r.timestamp)>3600)){e.next=8;break}throw new Error("Network not synced; last block was "+n+" seconds ago");case 8:this._lastSyncCheck=t;case 9:if(!this.registryAddress){e.next=11;break}return e.abrupt("return",this.registryAddress);case 11:if(this._detectedAddress){e.next=20;break}return e.next=14,this.eth.net.getNetworkType();case 14:if(o=e.sent,void 0!==(s=a.addresses[o])){e.next=18;break}throw new Error("ENS is not supported on network "+o);case 18:return this._detectedAddress=s,e.abrupt("return",this._detectedAddress);case 20:return e.abrupt("return",this._detectedAddress);case 21:case"end":return e.stop()}}),e,this)}))),e.exports=d},function(e,t,r){"use strict";var n=r(177),i=r(188),o=r(78),a=r(12).formatters,s=r(17),u=r(406),c=r(407);function f(e){var t=this;this.ens=e,this.contract=e.checkNetwork().then((function(e){var r=new n(u,e);return r.setProvider(t.ens.eth.currentProvider),r}))}f.prototype.owner=function(e,t){return console.warn('Deprecated: Please use the "getOwner" method instead of "owner".'),this.getOwner(e,t)},f.prototype.getOwner=function(e,t){var r=new o(!0);return this.contract.then((function(t){return t.methods.owner(i.hash(e)).call()})).then((function(e){"function"!=typeof t?r.resolve(e):t(e,e)})).catch((function(e){"function"!=typeof t?r.reject(e):t(e,null)})),r.eventEmitter},f.prototype.setOwner=function(e,t,r,n){var s=new o(!0);return this.contract.then((function(n){return n.methods.setOwner(i.hash(e),a.inputAddressFormatter(t)).send(r)})).then((function(e){"function"!=typeof n?s.resolve(e):n(e,e)})).catch((function(e){"function"!=typeof n?s.reject(e):n(e,null)})),s.eventEmitter},f.prototype.getTTL=function(e,t){var r=new o(!0);return this.contract.then((function(t){return t.methods.ttl(i.hash(e)).call()})).then((function(e){"function"!=typeof t?r.resolve(e):t(e,e)})).catch((function(e){"function"!=typeof t?r.reject(e):t(e,null)})),r.eventEmitter},f.prototype.setTTL=function(e,t,r,n){var a=new o(!0);return this.contract.then((function(n){return n.methods.setTTL(i.hash(e),t).send(r)})).then((function(e){"function"!=typeof n?a.resolve(e):n(e,e)})).catch((function(e){"function"!=typeof n?a.reject(e):n(e,null)})),a.eventEmitter},f.prototype.setSubnodeOwner=function(e,t,r,n,u){var c=new o(!0);return s.isHexStrict(t)||(t=s.sha3(t)),this.contract.then((function(o){return o.methods.setSubnodeOwner(i.hash(e),t,a.inputAddressFormatter(r)).send(n)})).then((function(e){"function"!=typeof u?c.resolve(e):u(e,e)})).catch((function(e){"function"!=typeof u?c.reject(e):u(e,null)})),c.eventEmitter},f.prototype.setRecord=function(e,t,r,n,s,u){var c=new o(!0);return this.contract.then((function(o){return o.methods.setRecord(i.hash(e),a.inputAddressFormatter(t),a.inputAddressFormatter(r),n).send(s)})).then((function(e){"function"!=typeof u?c.resolve(e):u(e,e)})).catch((function(e){"function"!=typeof u?c.reject(e):u(e,null)})),c.eventEmitter},f.prototype.setSubnodeRecord=function(e,t,r,n,u,c,f){var l=new o(!0);return s.isHexStrict(t)||(t=s.sha3(t)),this.contract.then((function(o){return o.methods.setSubnodeRecord(i.hash(e),t,a.inputAddressFormatter(r),a.inputAddressFormatter(n),u).send(c)})).then((function(e){"function"!=typeof f?l.resolve(e):f(e,e)})).catch((function(e){"function"!=typeof f?l.reject(e):f(e,null)})),l.eventEmitter},f.prototype.setApprovalForAll=function(e,t,r,n){var i=new o(!0);return this.contract.then((function(n){return n.methods.setApprovalForAll(a.inputAddressFormatter(e),t).send(r)})).then((function(e){"function"!=typeof n?i.resolve(e):n(e,e)})).catch((function(e){"function"!=typeof n?i.reject(e):n(e,null)})),i.eventEmitter},f.prototype.isApprovedForAll=function(e,t,r){var n=new o(!0);return this.contract.then((function(r){return r.methods.isApprovedForAll(a.inputAddressFormatter(e),a.inputAddressFormatter(t)).call()})).then((function(e){"function"!=typeof r?n.resolve(e):r(e,e)})).catch((function(e){"function"!=typeof r?n.reject(e):r(e,null)})),n.eventEmitter},f.prototype.recordExists=function(e,t){var r=new o(!0);return this.contract.then((function(t){return t.methods.recordExists(i.hash(e)).call()})).then((function(e){"function"!=typeof t?r.resolve(e):t(e,e)})).catch((function(e){"function"!=typeof t?r.reject(e):t(e,null)})),r.eventEmitter},f.prototype.resolver=function(e,t){return console.warn('Deprecated: Please use the "getResolver" method instead of "resolver".'),this.getResolver(e,t)},f.prototype.getResolver=function(e,t){var r=this;return this.contract.then((function(t){return t.methods.resolver(i.hash(e)).call()})).then((function(e){var i=new n(c,e);if(i.setProvider(r.ens.eth.currentProvider),"function"!=typeof t)return i;t(i,i)})).catch((function(e){if("function"!=typeof t)throw e;t(e,null)}))},f.prototype.setResolver=function(e,t,r,n){var s=new o(!0);return this.contract.then((function(n){return n.methods.setResolver(i.hash(e),a.inputAddressFormatter(t)).send(r)})).then((function(e){"function"!=typeof n?s.resolve(e):n(e,e)})).catch((function(e){"function"!=typeof n?s.reject(e):n(e,null)})),s.eventEmitter},e.exports=f},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.AddressCoder=void 0;var i=n(r(8)),o=n(r(9)),a=n(r(14)),s=n(r(15)),u=n(r(13)),c=r(80),f=r(11);var l=function(e){(0,a.default)(r,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,u.default)(e);if(t){var i=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}(r);function r(e){return(0,i.default)(this,r),t.call(this,"address","address",e,!1)}return(0,o.default)(r,[{key:"defaultValue",value:function(){return"0x0000000000000000000000000000000000000000"}},{key:"encode",value:function(e,t){try{t=(0,c.getAddress)(t)}catch(e){this._throwError(e.message,t)}return e.writeValue(t)}},{key:"decode",value:function(e){return(0,c.getAddress)((0,f.hexZeroPad)(e.readValue().toHexString(),20))}}]),r}(r(23).Coder);t.AddressCoder=l},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.AnonymousCoder=void 0;var i=n(r(8)),o=n(r(9)),a=n(r(14)),s=n(r(15)),u=n(r(13));var c=function(e){(0,a.default)(r,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,u.default)(e);if(t){var i=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}(r);function r(e){var n;return(0,i.default)(this,r),(n=t.call(this,e.name,e.type,void 0,e.dynamic)).coder=e,n}return(0,o.default)(r,[{key:"defaultValue",value:function(){return this.coder.defaultValue()}},{key:"encode",value:function(e,t){return this.coder.encode(e,t)}},{key:"decode",value:function(e){return this.coder.decode(e)}}]),r}(r(23).Coder);t.AnonymousCoder=c},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanCoder=void 0;var i=n(r(8)),o=n(r(9)),a=n(r(14)),s=n(r(15)),u=n(r(13));var c=function(e){(0,a.default)(r,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,u.default)(e);if(t){var i=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}(r);function r(e){return(0,i.default)(this,r),t.call(this,"bool","bool",e,!1)}return(0,o.default)(r,[{key:"defaultValue",value:function(){return!1}},{key:"encode",value:function(e,t){return e.writeValue(t?1:0)}},{key:"decode",value:function(e){return e.coerce(this.type,!e.readValue().isZero())}}]),r}(r(23).Coder);t.BooleanCoder=c},function(e,t,r){"use strict";var n=r(13);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=n(e)););return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.FixedBytesCoder=void 0;var i=n(r(8)),o=n(r(9)),a=n(r(14)),s=n(r(15)),u=n(r(13)),c=r(11);var f=function(e){(0,a.default)(r,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,u.default)(e);if(t){var i=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}(r);function r(e,n){var o;(0,i.default)(this,r);var a="bytes"+String(e);return(o=t.call(this,a,a,n,!1)).size=e,o}return(0,o.default)(r,[{key:"defaultValue",value:function(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}},{key:"encode",value:function(e,t){var r=(0,c.arrayify)(t);return r.length!==this.size&&this._throwError("incorrect data length",t),e.writeBytes(r)}},{key:"decode",value:function(e){return e.coerce(this.name,(0,c.hexlify)(e.readBytes(this.size)))}}]),r}(r(23).Coder);t.FixedBytesCoder=f},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.NullCoder=void 0;var i=n(r(8)),o=n(r(9)),a=n(r(14)),s=n(r(15)),u=n(r(13));var c=function(e){(0,a.default)(r,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,u.default)(e);if(t){var i=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}(r);function r(e){return(0,i.default)(this,r),t.call(this,"null","",e,!1)}return(0,o.default)(r,[{key:"defaultValue",value:function(){return null}},{key:"encode",value:function(e,t){return null!=t&&this._throwError("not null",t),e.writeBytes([])}},{key:"decode",value:function(e){return e.readBytes(0),e.coerce(this.name,null)}}]),r}(r(23).Coder);t.NullCoder=c},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.NumberCoder=void 0;var i=n(r(8)),o=n(r(9)),a=n(r(14)),s=n(r(15)),u=n(r(13)),c=r(33),f=r(106);var l=function(e){(0,a.default)(r,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,u.default)(e);if(t){var i=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}(r);function r(e,n,o){var a;(0,i.default)(this,r);var s=(n?"int":"uint")+8*e;return(a=t.call(this,s,s,o,!1)).size=e,a.signed=n,a}return(0,o.default)(r,[{key:"defaultValue",value:function(){return 0}},{key:"encode",value:function(e,t){var r=c.BigNumber.from(t),n=f.MaxUint256.mask(8*e.wordSize);if(this.signed){var i=n.mask(8*this.size-1);(r.gt(i)||r.lt(i.add(f.One).mul(f.NegativeOne)))&&this._throwError("value out-of-bounds",t)}else(r.lt(f.Zero)||r.gt(n.mask(8*this.size)))&&this._throwError("value out-of-bounds",t);return r=r.toTwos(8*this.size).mask(8*this.size),this.signed&&(r=r.fromTwos(8*this.size).toTwos(8*e.wordSize)),e.writeValue(r)}},{key:"decode",value:function(e){var t=e.readValue().mask(8*this.size);return this.signed&&(t=t.fromTwos(8*this.size)),e.coerce(this.name,t)}}]),r}(r(23).Coder);t.NumberCoder=l},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.StringCoder=void 0;var i=n(r(8)),o=n(r(9)),a=n(r(183)),s=n(r(14)),u=n(r(15)),c=n(r(13)),f=r(65);var l=function(e){(0,s.default)(r,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,c.default)(e);if(t){var i=(0,c.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,u.default)(this,r)}}(r);function r(e){return(0,i.default)(this,r),t.call(this,"string",e)}return(0,o.default)(r,[{key:"defaultValue",value:function(){return""}},{key:"encode",value:function(e,t){return(0,a.default)((0,c.default)(r.prototype),"encode",this).call(this,e,(0,f.toUtf8Bytes)(t))}},{key:"decode",value:function(e){return(0,f.toUtf8String)((0,a.default)((0,c.default)(r.prototype),"decode",this).call(this,e))}}]),r}(r(182).DynamicBytesCoder);t.StringCoder=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatBytes32String=function(e){var t=(0,o.toUtf8Bytes)(e);if(t.length>31)throw new Error("bytes32 string must be less than 32 bytes");return(0,i.hexlify)((0,i.concat)([t,n.HashZero]).slice(0,32))},t.parseBytes32String=function(e){var t=(0,i.arrayify)(e);if(32!==t.length)throw new Error("invalid bytes32 - not 32 bytes long");if(0!==t[31])throw new Error("invalid bytes32 string - no null terminator");for(var r=31;0===t[r-1];)r--;return(0,o.toUtf8String)(t.slice(0,r))};var n=r(106),i=r(11),o=r(108)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="strings/5.7.0"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._nameprepTableA1=p,t._nameprepTableB2=b,t._nameprepTableC=y,t.nameprep=function(e){if(e.match(/^[a-z0-9-]*$/i)&&e.length<=59)return e.toLowerCase();var t,r=(0,n.toUtf8CodePoints)(e);t=r.map((function(e){return u.indexOf(e)>=0||e>=65024&&e<=65039?[]:b(e)||[e]})),r=t.reduce((function(e,t){return t.forEach((function(t){e.push(t)})),e}),[]),(r=(0,n.toUtf8CodePoints)((0,n._toUtf8String)(r),n.UnicodeNormalizationForm.NFKC)).forEach((function(e){if(y(e))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")})),r.forEach((function(e){if(p(e))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")}));var i=(0,n._toUtf8String)(r);if("-"===i.substring(0,1)||"--"===i.substring(2,4)||"-"===i.substring(i.length-1))throw new Error("invalid hyphen");return i};var n=r(108);function i(e,t){t||(t=function(e){return[parseInt(e,16)]});var r=0,n={};return e.split(",").forEach((function(e){var i=e.split(":");r+=parseInt(i[0],16),n[r]=t(i[1])})),n}function o(e){var t=0;return e.split(",").map((function(e){var r=e.split("-");return 1===r.length?r[1]="0":""===r[1]&&(r[1]="1"),{l:t+parseInt(r[0],16),h:t=parseInt(r[1],16)}}))}function a(e,t){for(var r=0,n=0;n<t.length;n++){var i=t[n];if(e>=(r+=i.l)&&e<=r+i.h&&(e-r)%(i.d||1)==0){if(i.e&&-1!==i.e.indexOf(e-r))continue;return i}}return null}var s=o("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),u="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map((function(e){return parseInt(e,16)})),c=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],f=i("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),l=i("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),d=i("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",(function(e){if(e.length%4!=0)throw new Error("bad data");for(var t=[],r=0;r<e.length;r+=4)t.push(parseInt(e.substring(r,r+4),16));return t})),h=o("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");function p(e){return!!a(e,s)}function b(e){var t=a(e,c);if(t)return[e+t.s];var r=f[e];if(r)return r;var n=l[e];return n?[e+n[0]]:d[e]||null}function y(e){return!!a(e,h)}},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.TupleCoder=void 0;var i=n(r(8)),o=n(r(9)),a=n(r(14)),s=n(r(15)),u=n(r(13)),c=r(23),f=r(181);var l=function(e){(0,a.default)(r,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,u.default)(e);if(t){var i=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}(r);function r(e,n){var o;(0,i.default)(this,r);var a=!1,s=[];e.forEach((function(e){e.dynamic&&(a=!0),s.push(e.type)}));var u="tuple("+s.join(",")+")";return(o=t.call(this,"tuple",u,n,a)).coders=e,o}return(0,o.default)(r,[{key:"defaultValue",value:function(){var e=[];this.coders.forEach((function(t){e.push(t.defaultValue())}));var t=this.coders.reduce((function(e,t){var r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e}),{});return this.coders.forEach((function(r,n){var i=r.localName;i&&1===t[i]&&("length"===i&&(i="_length"),null==e[i]&&(e[i]=e[n]))})),Object.freeze(e)}},{key:"encode",value:function(e,t){return(0,f.pack)(e,this.coders,t)}},{key:"decode",value:function(e){return e.coerce(this.name,(0,f.unpack)(e,this.coders))}}]),r}(c.Coder);t.TupleCoder=l},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionDescription=t.LogDescription=t.Interface=t.Indexed=t.ErrorDescription=void 0,Object.defineProperty(t,"checkResultErrors",{enumerable:!0,get:function(){return y.checkResultErrors}});var i=n(r(9)),o=n(r(8)),a=n(r(14)),s=n(r(15)),u=n(r(13)),c=r(80),f=r(33),l=r(11),d=r(392),h=r(39),p=r(40),b=r(180),y=r(23),g=r(107),m=r(16),v=r(64);function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,u.default)(e);if(t){var i=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}var _=new m.Logger(v.version),x=function(e){(0,a.default)(r,e);var t=w(r);function r(){return(0,o.default)(this,r),t.apply(this,arguments)}return(0,i.default)(r)}(p.Description);t.LogDescription=x;var O=function(e){(0,a.default)(r,e);var t=w(r);function r(){return(0,o.default)(this,r),t.apply(this,arguments)}return(0,i.default)(r)}(p.Description);t.TransactionDescription=O;var k=function(e){(0,a.default)(r,e);var t=w(r);function r(){return(0,o.default)(this,r),t.apply(this,arguments)}return(0,i.default)(r)}(p.Description);t.ErrorDescription=k;var P=function(e){(0,a.default)(r,e);var t=w(r);function r(){return(0,o.default)(this,r),t.apply(this,arguments)}return(0,i.default)(r,null,[{key:"isIndexed",value:function(e){return!(!e||!e._isIndexed)}}]),r}(p.Description);t.Indexed=P;var S={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function A(e,t){var r=new Error("deferred error during ABI decoding triggered accessing ".concat(e));return r.error=t,r}var E=function(){function e(t){var r=this;(0,o.default)(this,e);var n=[];n="string"==typeof t?JSON.parse(t):t,(0,p.defineReadOnly)(this,"fragments",n.map((function(e){return g.Fragment.from(e)})).filter((function(e){return null!=e}))),(0,p.defineReadOnly)(this,"_abiCoder",(0,p.getStatic)(this instanceof e?this.constructor:void 0,"getAbiCoder")()),(0,p.defineReadOnly)(this,"functions",{}),(0,p.defineReadOnly)(this,"errors",{}),(0,p.defineReadOnly)(this,"events",{}),(0,p.defineReadOnly)(this,"structs",{}),this.fragments.forEach((function(e){var t=null;switch(e.type){case"constructor":return r.deploy?void _.warn("duplicate definition - constructor"):void(0,p.defineReadOnly)(r,"deploy",e);case"function":t=r.functions;break;case"event":t=r.events;break;case"error":t=r.errors;break;default:return}var n=e.format();t[n]?_.warn("duplicate definition - "+n):t[n]=e})),this.deploy||(0,p.defineReadOnly)(this,"deploy",g.ConstructorFragment.from({payable:!1,type:"constructor"})),(0,p.defineReadOnly)(this,"_isInterface",!0)}return(0,i.default)(e,[{key:"format",value:function(e){e||(e=g.FormatTypes.full),e===g.FormatTypes.sighash&&_.throwArgumentError("interface does not support formatting sighash","format",e);var t=this.fragments.map((function(t){return t.format(e)}));return e===g.FormatTypes.json?JSON.stringify(t.map((function(e){return JSON.parse(e)}))):t}},{key:"getFunction",value:function(e){if((0,l.isHexString)(e)){for(var t in this.functions)if(e===this.getSighash(t))return this.functions[t];_.throwArgumentError("no matching function","sighash",e)}if(-1===e.indexOf("(")){var r=e.trim(),n=Object.keys(this.functions).filter((function(e){return e.split("(")[0]===r}));return 0===n.length?_.throwArgumentError("no matching function","name",r):n.length>1&&_.throwArgumentError("multiple matching functions","name",r),this.functions[n[0]]}var i=this.functions[g.FunctionFragment.fromString(e).format()];return i||_.throwArgumentError("no matching function","signature",e),i}},{key:"getEvent",value:function(e){if((0,l.isHexString)(e)){var t=e.toLowerCase();for(var r in this.events)if(t===this.getEventTopic(r))return this.events[r];_.throwArgumentError("no matching event","topichash",t)}if(-1===e.indexOf("(")){var n=e.trim(),i=Object.keys(this.events).filter((function(e){return e.split("(")[0]===n}));return 0===i.length?_.throwArgumentError("no matching event","name",n):i.length>1&&_.throwArgumentError("multiple matching events","name",n),this.events[i[0]]}var o=this.events[g.EventFragment.fromString(e).format()];return o||_.throwArgumentError("no matching event","signature",e),o}},{key:"getError",value:function(e){if((0,l.isHexString)(e)){var t=(0,p.getStatic)(this.constructor,"getSighash");for(var r in this.errors)if(e===t(this.errors[r]))return this.errors[r];_.throwArgumentError("no matching error","sighash",e)}if(-1===e.indexOf("(")){var n=e.trim(),i=Object.keys(this.errors).filter((function(e){return e.split("(")[0]===n}));return 0===i.length?_.throwArgumentError("no matching error","name",n):i.length>1&&_.throwArgumentError("multiple matching errors","name",n),this.errors[i[0]]}var o=this.errors[g.FunctionFragment.fromString(e).format()];return o||_.throwArgumentError("no matching error","signature",e),o}},{key:"getSighash",value:function(e){if("string"==typeof e)try{e=this.getFunction(e)}catch(t){try{e=this.getError(e)}catch(e){throw t}}return(0,p.getStatic)(this.constructor,"getSighash")(e)}},{key:"getEventTopic",value:function(e){return"string"==typeof e&&(e=this.getEvent(e)),(0,p.getStatic)(this.constructor,"getEventTopic")(e)}},{key:"_decodeParams",value:function(e,t){return this._abiCoder.decode(e,t)}},{key:"_encodeParams",value:function(e,t){return this._abiCoder.encode(e,t)}},{key:"encodeDeploy",value:function(e){return this._encodeParams(this.deploy.inputs,e||[])}},{key:"decodeErrorResult",value:function(e,t){"string"==typeof e&&(e=this.getError(e));var r=(0,l.arrayify)(t);return(0,l.hexlify)(r.slice(0,4))!==this.getSighash(e)&&_.throwArgumentError("data signature does not match error ".concat(e.name,"."),"data",(0,l.hexlify)(r)),this._decodeParams(e.inputs,r.slice(4))}},{key:"encodeErrorResult",value:function(e,t){return"string"==typeof e&&(e=this.getError(e)),(0,l.hexlify)((0,l.concat)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}},{key:"decodeFunctionData",value:function(e,t){"string"==typeof e&&(e=this.getFunction(e));var r=(0,l.arrayify)(t);return(0,l.hexlify)(r.slice(0,4))!==this.getSighash(e)&&_.throwArgumentError("data signature does not match function ".concat(e.name,"."),"data",(0,l.hexlify)(r)),this._decodeParams(e.inputs,r.slice(4))}},{key:"encodeFunctionData",value:function(e,t){return"string"==typeof e&&(e=this.getFunction(e)),(0,l.hexlify)((0,l.concat)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}},{key:"decodeFunctionResult",value:function(e,t){"string"==typeof e&&(e=this.getFunction(e));var r=(0,l.arrayify)(t),n=null,i="",o=null,a=null,s=null;switch(r.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,r)}catch(f){}break;case 4:var u=(0,l.hexlify)(r.slice(0,4)),c=S[u];if(c)o=this._abiCoder.decode(c.inputs,r.slice(4)),a=c.name,s=c.signature,c.reason&&(n=o[0]),"Error"===a?i="; VM Exception while processing transaction: reverted with reason string ".concat(JSON.stringify(o[0])):"Panic"===a&&(i="; VM Exception while processing transaction: reverted with panic code ".concat(o[0]));else try{var f=this.getError(u);o=this._abiCoder.decode(f.inputs,r.slice(4)),a=f.name,s=f.format()}catch(f){}}return _.throwError("call revert exception"+i,m.Logger.errors.CALL_EXCEPTION,{method:e.format(),data:(0,l.hexlify)(t),errorArgs:o,errorName:a,errorSignature:s,reason:n})}},{key:"encodeFunctionResult",value:function(e,t){return"string"==typeof e&&(e=this.getFunction(e)),(0,l.hexlify)(this._abiCoder.encode(e.outputs,t||[]))}},{key:"encodeFilterTopics",value:function(e,t){var r=this;"string"==typeof e&&(e=this.getEvent(e)),t.length>e.inputs.length&&_.throwError("too many arguments for "+e.format(),m.Logger.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t});var n=[];e.anonymous||n.push(this.getEventTopic(e));var i=function(e,t){return"string"===e.type?(0,d.id)(t):"bytes"===e.type?(0,h.keccak256)((0,l.hexlify)(t)):("bool"===e.type&&"boolean"==typeof t&&(t=t?"0x01":"0x00"),e.type.match(/^u?int/)&&(t=f.BigNumber.from(t).toHexString()),"address"===e.type&&r._abiCoder.encode(["address"],[t]),(0,l.hexZeroPad)((0,l.hexlify)(t),32))};for(t.forEach((function(t,r){var o=e.inputs[r];o.indexed?null==t?n.push(null):"array"===o.baseType||"tuple"===o.baseType?_.throwArgumentError("filtering with tuples or arrays not supported","contract."+o.name,t):Array.isArray(t)?n.push(t.map((function(e){return i(o,e)}))):n.push(i(o,t)):null!=t&&_.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+o.name,t)}));n.length&&null===n[n.length-1];)n.pop();return n}},{key:"encodeEventLog",value:function(e,t){var r=this;"string"==typeof e&&(e=this.getEvent(e));var n=[],i=[],o=[];return e.anonymous||n.push(this.getEventTopic(e)),t.length!==e.inputs.length&&_.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach((function(e,a){var s=t[a];if(e.indexed)if("string"===e.type)n.push((0,d.id)(s));else if("bytes"===e.type)n.push((0,h.keccak256)(s));else{if("tuple"===e.baseType||"array"===e.baseType)throw new Error("not implemented");n.push(r._abiCoder.encode([e.type],[s]))}else i.push(e),o.push(s)})),{data:this._abiCoder.encode(i,o),topics:n}}},{key:"decodeEventLog",value:function(e,t,r){if("string"==typeof e&&(e=this.getEvent(e)),null!=r&&!e.anonymous){var n=this.getEventTopic(e);(0,l.isHexString)(r[0],32)&&r[0].toLowerCase()===n||_.throwError("fragment/topic mismatch",m.Logger.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:n,value:r[0]}),r=r.slice(1)}var i=[],o=[],a=[];e.inputs.forEach((function(e,t){e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(i.push(g.ParamType.fromObject({type:"bytes32",name:e.name})),a.push(!0)):(i.push(e),a.push(!1)):(o.push(e),a.push(!1))}));var s=null!=r?this._abiCoder.decode(i,(0,l.concat)(r)):null,u=this._abiCoder.decode(o,t,!0),c=[],f=0,d=0;e.inputs.forEach((function(e,t){if(e.indexed)if(null==s)c[t]=new P({_isIndexed:!0,hash:null});else if(a[t])c[t]=new P({_isIndexed:!0,hash:s[d++]});else try{c[t]=s[d++]}catch(e){c[t]=e}else try{c[t]=u[f++]}catch(e){c[t]=e}if(e.name&&null==c[e.name]){var r=c[t];r instanceof Error?Object.defineProperty(c,e.name,{enumerable:!0,get:function(){throw A("property ".concat(JSON.stringify(e.name)),r)}}):c[e.name]=r}}));for(var h=function(e){var t=c[e];t instanceof Error&&Object.defineProperty(c,e,{enumerable:!0,get:function(){throw A("index ".concat(e),t)}})},p=0;p<c.length;p++)h(p);return Object.freeze(c)}},{key:"parseTransaction",value:function(e){var t=this.getFunction(e.data.substring(0,10).toLowerCase());return t?new O({args:this._abiCoder.decode(t.inputs,"0x"+e.data.substring(10)),functionFragment:t,name:t.name,signature:t.format(),sighash:this.getSighash(t),value:f.BigNumber.from(e.value||"0")}):null}},{key:"parseLog",value:function(e){var t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new x({eventFragment:t,name:t.name,signature:t.format(),topic:this.getEventTopic(t),args:this.decodeEventLog(t,e.data,e.topics)})}},{key:"parseError",value:function(e){var t=(0,l.hexlify)(e),r=this.getError(t.substring(0,10).toLowerCase());return r?new k({args:this._abiCoder.decode(r.inputs,"0x"+t.substring(10)),errorFragment:r,name:r.name,signature:r.format(),sighash:this.getSighash(r)}):null}}],[{key:"getAbiCoder",value:function(){return b.defaultAbiCoder}},{key:"getAddress",value:function(e){return(0,c.getAddress)(e)}},{key:"getSighash",value:function(e){return(0,l.hexDataSlice)((0,d.id)(e.format()),0,4)}},{key:"getEventTopic",value:function(e){return(0,d.id)(e.format())}},{key:"isInterface",value:function(e){return!(!e||!e._isInterface)}}]),e}();t.Interface=E},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"_TypedDataEncoder",{enumerable:!0,get:function(){return a.TypedDataEncoder}}),Object.defineProperty(t,"dnsEncode",{enumerable:!0,get:function(){return i.dnsEncode}}),Object.defineProperty(t,"ensNormalize",{enumerable:!0,get:function(){return i.ensNormalize}}),Object.defineProperty(t,"hashMessage",{enumerable:!0,get:function(){return o.hashMessage}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return n.id}}),Object.defineProperty(t,"isValidName",{enumerable:!0,get:function(){return i.isValidName}}),Object.defineProperty(t,"messagePrefix",{enumerable:!0,get:function(){return o.messagePrefix}}),Object.defineProperty(t,"namehash",{enumerable:!0,get:function(){return i.namehash}});var n=r(184),i=r(393),o=r(401),a=r(402)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dnsEncode=function(e){return(0,n.hexlify)((0,n.concat)(d(e).map((function(e){if(e.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");var t=new Uint8Array(e.length+1);return t.set(e,1),t[0]=t.length-1,t}))))+"00"},t.ensNormalize=function(e){return d(e).map((function(e){return(0,i.toUtf8String)(e)})).join(".")},t.isValidName=function(e){try{return 0!==d(e).length}catch(e){}return!1},t.namehash=function(e){"string"!=typeof e&&c.throwArgumentError("invalid ENS name; not a string","name",e);for(var t=f,r=d(e);r.length;)t=(0,o.keccak256)((0,n.concat)([t,(0,o.keccak256)(r.pop())]));return(0,n.hexlify)(t)};var n=r(11),i=r(65),o=r(39),a=r(16),s=r(185),u=r(394),c=new a.Logger(s.version),f=new Uint8Array(32);function l(e){if(0===e.length)throw new Error("invalid ENS name; empty component");return e}function d(e){var t=(0,i.toUtf8Bytes)((0,u.ens_normalize)(e)),r=[];if(0===e.length)return r;for(var n=0,o=0;o<t.length;o++)46===t[o]&&(r.push(l(t.slice(n,o))),n=o+1);if(n>=t.length)throw new Error("invalid ENS name; empty component");return r.push(l(t.slice(n))),r}f.fill(0)},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.ens_normalize=function(e){return y(function(e,t){for(var r=p(e).reverse(),n=[];r.length;){var o=g(r);if(o)n.push.apply(n,(0,i.default)(t(o)));else{var a=r.pop();if(f.has(a))n.push(a);else if(!l.has(a)){var s=d[a];if(!s)throw new Error("Disallowed codepoint: 0x".concat(a.toString(16).toUpperCase()));n.push.apply(n,(0,i.default)(s))}}}return y(String.fromCodePoint.apply(String,n).normalize("NFC"))}(e,b))},t.ens_normalize_post_check=y;var i=n(r(186)),o=r(65),a=r(398),s=r(187);function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var c=(0,a.getData)(),f=new Set((0,s.read_member_array)(c)),l=new Set((0,s.read_member_array)(c)),d=(0,s.read_mapped_map)(c),h=(0,s.read_emoji_trie)(c);function p(e){return(0,o.toUtf8CodePoints)(e)}function b(e){return e.filter((function(e){return 65039!=e}))}function y(e){var t,r=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}(e.split("."));try{for(r.s();!(t=r.n()).done;){var n=t.value,i=p(n);try{for(var o=i.lastIndexOf(95)-1;o>=0;o--)if(95!==i[o])throw new Error("underscore only allowed at start");if(i.length>=4&&i.every((function(e){return e<128}))&&45===i[2]&&45===i[3])throw new Error("invalid label extension")}catch(e){throw new Error('Invalid label "'.concat(n,'": ').concat(e.message))}}}catch(e){r.e(e)}finally{r.f()}return e}function g(e,t){var r,n,o,a=h,s=[],u=e.length;t&&(t.length=0);for(var c=function(){var c=e[--u];if(!(a=null===(r=a.branches.find((function(e){return e.set.has(c)})))||void 0===r?void 0:r.node))return"break";if(a.save)o=c;else if(a.check&&c===o)return"break";s.push(c),a.fe0f&&(s.push(65039),u>0&&65039==e[u-1]&&u--),a.valid&&(n=s.slice(),2==a.valid&&n.splice(1,1),t&&t.push.apply(t,(0,i.default)(e.slice(u).reverse())),e.length=u)};u&&"break"!==c(););return n}},function(e,t,r){"use strict";var n=r(132);e.exports=function(e){if(Array.isArray(e))return n(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getData=function(){return(0,i.read_compressed_payload)((0,n.decode)("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"))};var n=r(399),i=r(187)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"decode",{enumerable:!0,get:function(){return n.decode}}),Object.defineProperty(t,"encode",{enumerable:!0,get:function(){return n.encode}});var n=r(400)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decode=function(e){e=atob(e);for(var t=[],r=0;r<e.length;r++)t.push(e.charCodeAt(r));return(0,n.arrayify)(t)},t.encode=function(e){e=(0,n.arrayify)(e);for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)};var n=r(11)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hashMessage=function(e){return"string"==typeof e&&(e=(0,o.toUtf8Bytes)(e)),(0,i.keccak256)((0,n.concat)([(0,o.toUtf8Bytes)("Ethereum Signed Message:\n"),(0,o.toUtf8Bytes)(String(e.length)),e]))},t.messagePrefix=void 0;var n=r(11),i=r(39),o=r(65);t.messagePrefix="Ethereum Signed Message:\n"},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.TypedDataEncoder=void 0;var i=n(r(63)),o=n(r(8)),a=n(r(9)),s=r(80),u=r(33),c=r(11),f=r(39),l=r(40),d=r(16),h=r(185),p=r(184),b=new d.Logger(h.version),y=new Uint8Array(32);y.fill(0);var g=u.BigNumber.from(-1),m=u.BigNumber.from(0),v=u.BigNumber.from(1),w=u.BigNumber.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),_=(0,c.hexZeroPad)(v.toHexString(),32),x=(0,c.hexZeroPad)(m.toHexString(),32),O={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},k=["name","version","chainId","verifyingContract","salt"];function P(e){return function(t){return"string"!=typeof t&&b.throwArgumentError("invalid domain value for ".concat(JSON.stringify(e)),"domain.".concat(e),t),t}}var S={name:P("name"),version:P("version"),chainId:function(e){try{return u.BigNumber.from(e).toString()}catch(e){}return b.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",e)},verifyingContract:function(e){try{return(0,s.getAddress)(e).toLowerCase()}catch(e){}return b.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){try{var t=(0,c.arrayify)(e);if(32!==t.length)throw new Error("bad length");return(0,c.hexlify)(t)}catch(e){}return b.throwArgumentError('invalid domain value "salt"',"domain.salt",e)}};function A(e){var t=e.match(/^(u?)int(\d*)$/);if(t){var r=""===t[1],n=parseInt(t[2]||"256");(n%8!=0||n>256||t[2]&&t[2]!==String(n))&&b.throwArgumentError("invalid numeric width","type",e);var i=w.mask(r?n-1:n),o=r?i.add(v).mul(g):m;return function(t){var r=u.BigNumber.from(t);return(r.lt(o)||r.gt(i))&&b.throwArgumentError("value out-of-bounds for ".concat(e),"value",t),(0,c.hexZeroPad)(r.toTwos(256).toHexString(),32)}}var a=e.match(/^bytes(\d+)$/);if(a){var l=parseInt(a[1]);return(0===l||l>32||a[1]!==String(l))&&b.throwArgumentError("invalid bytes width","type",e),function(t){return(0,c.arrayify)(t).length!==l&&b.throwArgumentError("invalid length for ".concat(e),"value",t),function(e){var t=(0,c.arrayify)(e),r=t.length%32;return r?(0,c.hexConcat)([t,y.slice(r)]):(0,c.hexlify)(t)}(t)}}switch(e){case"address":return function(e){return(0,c.hexZeroPad)((0,s.getAddress)(e),32)};case"bool":return function(e){return e?_:x};case"bytes":return function(e){return(0,f.keccak256)(e)};case"string":return function(e){return(0,p.id)(e)}}return null}function E(e,t){return"".concat(e,"(").concat(t.map((function(e){var t=e.name;return e.type+" "+t})).join(","),")")}var M=function(){function e(t){(0,o.default)(this,e),(0,l.defineReadOnly)(this,"types",Object.freeze((0,l.deepCopy)(t))),(0,l.defineReadOnly)(this,"_encoderCache",{}),(0,l.defineReadOnly)(this,"_types",{});var r={},n={},i={};Object.keys(t).forEach((function(e){r[e]={},n[e]=[],i[e]={}}));var a=function(e){var i={};t[e].forEach((function(o){i[o.name]&&b.throwArgumentError("duplicate variable name ".concat(JSON.stringify(o.name)," in ").concat(JSON.stringify(e)),"types",t),i[o.name]=!0;var a=o.type.match(/^([^\x5b]*)(\x5b|$)/)[1];a===e&&b.throwArgumentError("circular type reference to ".concat(JSON.stringify(a)),"types",t),A(a)||(n[a]||b.throwArgumentError("unknown type ".concat(JSON.stringify(a)),"types",t),n[a].push(e),r[e][a]=!0)}))};for(var s in t)a(s);var u=Object.keys(n).filter((function(e){return 0===n[e].length}));for(var c in 0===u.length?b.throwArgumentError("missing primary type","types",t):u.length>1&&b.throwArgumentError("ambiguous primary types or unused types: ".concat(u.map((function(e){return JSON.stringify(e)})).join(", ")),"types",t),(0,l.defineReadOnly)(this,"primaryType",u[0]),function e(o,a){a[o]&&b.throwArgumentError("circular type reference to ".concat(JSON.stringify(o)),"types",t),a[o]=!0,Object.keys(r[o]).forEach((function(t){n[t]&&(e(t,a),Object.keys(a).forEach((function(e){i[e][t]=!0})))})),delete a[o]}(this.primaryType,{}),i){var f=Object.keys(i[c]);f.sort(),this._types[c]=E(c,t[c])+f.map((function(e){return E(e,t[e])})).join("")}}return(0,a.default)(e,[{key:"getEncoder",value:function(e){var t=this._encoderCache[e];return t||(t=this._encoderCache[e]=this._getEncoder(e)),t}},{key:"_getEncoder",value:function(e){var t=this,r=A(e);if(r)return r;var n=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(n){var i=n[1],o=this.getEncoder(i),a=parseInt(n[3]);return function(e){a>=0&&e.length!==a&&b.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",e);var r=e.map(o);return t._types[i]&&(r=r.map(f.keccak256)),(0,f.keccak256)((0,c.hexConcat)(r))}}var s=this.types[e];if(s){var u=(0,p.id)(this._types[e]);return function(e){var r=s.map((function(r){var n=r.name,i=r.type,o=t.getEncoder(i)(e[n]);return t._types[i]?(0,f.keccak256)(o):o}));return r.unshift(u),(0,c.hexConcat)(r)}}return b.throwArgumentError("unknown type: ".concat(e),"type",e)}},{key:"encodeType",value:function(e){var t=this._types[e];return t||b.throwArgumentError("unknown type: ".concat(JSON.stringify(e)),"name",e),t}},{key:"encodeData",value:function(e,t){return this.getEncoder(e)(t)}},{key:"hashStruct",value:function(e,t){return(0,f.keccak256)(this.encodeData(e,t))}},{key:"encode",value:function(e){return this.encodeData(this.primaryType,e)}},{key:"hash",value:function(e){return this.hashStruct(this.primaryType,e)}},{key:"_visit",value:function(e,t,r){var n=this;if(A(e))return r(e,t);var i=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(i){var o=i[1],a=parseInt(i[3]);return a>=0&&t.length!==a&&b.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t),t.map((function(e){return n._visit(o,e,r)}))}var s=this.types[e];return s?s.reduce((function(e,i){var o=i.name,a=i.type;return e[o]=n._visit(a,t[o],r),e}),{}):b.throwArgumentError("unknown type: ".concat(e),"type",e)}},{key:"visit",value:function(e,t){return this._visit(this.primaryType,e,t)}}],[{key:"from",value:function(t){return new e(t)}},{key:"getPrimaryType",value:function(t){return e.from(t).primaryType}},{key:"hashStruct",value:function(t,r,n){return e.from(r).hashStruct(t,n)}},{key:"hashDomain",value:function(t){var r=[];for(var n in t){var i=O[n];i||b.throwArgumentError("invalid typed-data domain key: ".concat(JSON.stringify(n)),"domain",t),r.push({name:n,type:i})}return r.sort((function(e,t){return k.indexOf(e.name)-k.indexOf(t.name)})),e.hashStruct("EIP712Domain",{EIP712Domain:r},t)}},{key:"encode",value:function(t,r,n){return(0,c.hexConcat)(["0x1901",e.hashDomain(t),e.from(r).hash(n)])}},{key:"hash",value:function(t,r,n){return(0,f.keccak256)(e.encode(t,r,n))}},{key:"resolveNames",value:function(t,r,n,o){return function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))}(this,void 0,void 0,i.default.mark((function a(){var s,u,f;return i.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:t=(0,l.shallowCopy)(t),s={},t.verifyingContract&&!(0,c.isHexString)(t.verifyingContract,20)&&(s[t.verifyingContract]="0x"),(u=e.from(r)).visit(n,(function(e,t){return"address"!==e||(0,c.isHexString)(t,20)||(s[t]="0x"),t})),a.t0=i.default.keys(s);case 6:if((a.t1=a.t0()).done){a.next=13;break}return f=a.t1.value,a.next=10,o(f);case 10:s[f]=a.sent,a.next=6;break;case 13:return t.verifyingContract&&s[t.verifyingContract]&&(t.verifyingContract=s[t.verifyingContract]),n=u.visit(n,(function(e,t){return"address"===e&&s[t]?s[t]:t})),a.abrupt("return",{domain:t,value:n});case 16:case"end":return a.stop()}}),a)})))}},{key:"getPayload",value:function(t,r,n){e.hashDomain(t);var i={},o=[];k.forEach((function(e){var r=t[e];null!=r&&(i[e]=S[e](r),o.push({name:e,type:O[e]}))}));var a=e.from(r),s=(0,l.shallowCopy)(r);return s.EIP712Domain?b.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",r):s.EIP712Domain=o,a.encode(n),{types:s,domain:i,primaryType:a.primaryType,message:a.visit(n,(function(e,t){if(e.match(/^bytes(\d*)/))return(0,c.hexlify)((0,c.arrayify)(t));if(e.match(/^u?int/))return u.BigNumber.from(t).toString();switch(e){case"address":return t.toLowerCase();case"bool":return!!t;case"string":return"string"!=typeof t&&b.throwArgumentError("invalid string","value",t),t}return b.throwArgumentError("unsupported type","type",e)}))}}}]),e}();t.TypedDataEncoder=M},function(e,t,r){"use strict";(function(e,t,n){var i=r(0)(r(2));!function(){var r="object"===("undefined"==typeof window?"undefined":(0,i.default)(window))?window:{};!r.JS_SHA3_NO_NODE_JS&&"object"===(void 0===e?"undefined":(0,i.default)(e))&&e.versions&&e.versions.node&&(r=t);for(var o=!r.JS_SHA3_NO_COMMON_JS&&"object"===(0,i.default)(n)&&n.exports,a="0123456789abcdef".split(""),s=[0,8,16,24],u=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],c=[224,256,384,512],f=["hex","buffer","arrayBuffer","array"],l=function(e,t,r){return function(n){return new x(e,t,e).update(n)[r]()}},d=function(e,t,r){return function(n,i){return new x(e,t,i).update(n)[r]()}},h=function(e,t){var r=l(e,t,"hex");r.create=function(){return new x(e,t,e)},r.update=function(e){return r.create().update(e)};for(var n=0;n<f.length;++n){var i=f[n];r[i]=l(e,t,i)}return r},p=[{name:"keccak",padding:[1,256,65536,16777216],bits:c,createMethod:h},{name:"sha3",padding:[6,1536,393216,100663296],bits:c,createMethod:h},{name:"shake",padding:[31,7936,2031616,520093696],bits:[128,256],createMethod:function(e,t){var r=d(e,t,"hex");r.create=function(r){return new x(e,t,r)},r.update=function(e,t){return r.create(t).update(e)};for(var n=0;n<f.length;++n){var i=f[n];r[i]=d(e,t,i)}return r}}],b={},y=[],g=0;g<p.length;++g)for(var m=p[g],v=m.bits,w=0;w<v.length;++w){var _=m.name+"_"+v[w];y.push(_),b[_]=m.createMethod(v[w],m.padding)}function x(e,t,r){this.blocks=[],this.s=[],this.padding=t,this.outputBits=r,this.reset=!0,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}x.prototype.update=function(e){var t="string"!=typeof e;t&&e.constructor===ArrayBuffer&&(e=new Uint8Array(e));for(var r,n,i=e.length,o=this.blocks,a=this.byteCount,u=this.blockCount,c=0,f=this.s;c<i;){if(this.reset)for(this.reset=!1,o[0]=this.block,r=1;r<u+1;++r)o[r]=0;if(t)for(r=this.start;c<i&&r<a;++c)o[r>>2]|=e[c]<<s[3&r++];else for(r=this.start;c<i&&r<a;++c)(n=e.charCodeAt(c))<128?o[r>>2]|=n<<s[3&r++]:n<2048?(o[r>>2]|=(192|n>>6)<<s[3&r++],o[r>>2]|=(128|63&n)<<s[3&r++]):n<55296||n>=57344?(o[r>>2]|=(224|n>>12)<<s[3&r++],o[r>>2]|=(128|n>>6&63)<<s[3&r++],o[r>>2]|=(128|63&n)<<s[3&r++]):(n=65536+((1023&n)<<10|1023&e.charCodeAt(++c)),o[r>>2]|=(240|n>>18)<<s[3&r++],o[r>>2]|=(128|n>>12&63)<<s[3&r++],o[r>>2]|=(128|n>>6&63)<<s[3&r++],o[r>>2]|=(128|63&n)<<s[3&r++]);if(this.lastByteIndex=r,r>=a){for(this.start=r-a,this.block=o[u],r=0;r<u;++r)f[r]^=o[r];O(f),this.reset=!0}else this.start=r}return this},x.prototype.finalize=function(){var e=this.blocks,t=this.lastByteIndex,r=this.blockCount,n=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[r],t=1;t<r+1;++t)e[t]=0;for(e[r-1]|=2147483648,t=0;t<r;++t)n[t]^=e[t];O(n)},x.prototype.toString=x.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,s=0,u="";s<n;){for(o=0;o<t&&s<n;++o,++s)e=r[o],u+=a[e>>4&15]+a[15&e]+a[e>>12&15]+a[e>>8&15]+a[e>>20&15]+a[e>>16&15]+a[e>>28&15]+a[e>>24&15];s%t==0&&(O(r),o=0)}return i&&(e=r[o],i>0&&(u+=a[e>>4&15]+a[15&e]),i>1&&(u+=a[e>>12&15]+a[e>>8&15]),i>2&&(u+=a[e>>20&15]+a[e>>16&15])),u},x.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;e=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(s);for(var u=new Uint32Array(e);a<n;){for(o=0;o<t&&a<n;++o,++a)u[a]=r[o];a%t==0&&O(r)}return i&&(u[o]=r[o],e=e.slice(0,s)),e},x.prototype.buffer=x.prototype.arrayBuffer,x.prototype.digest=x.prototype.array=function(){this.finalize();for(var e,t,r=this.blockCount,n=this.s,i=this.outputBlocks,o=this.extraBytes,a=0,s=0,u=[];s<i;){for(a=0;a<r&&s<i;++a,++s)e=s<<2,t=n[a],u[e]=255&t,u[e+1]=t>>8&255,u[e+2]=t>>16&255,u[e+3]=t>>24&255;s%r==0&&O(n)}return o&&(e=s<<2,t=n[a],o>0&&(u[e]=255&t),o>1&&(u[e+1]=t>>8&255),o>2&&(u[e+2]=t>>16&255)),u};var O=function(e){var t,r,n,i,o,a,s,c,f,l,d,h,p,b,y,g,m,v,w,_,x,O,k,P,S,A,E,M,j,T,B,I,N,R,C,U,L,D,H,F,V,z,q,K,W,G,X,Z,J,Y,Q,$,ee,te,re,ne,ie,oe,ae,se,ue,ce,fe;for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],c=e[4]^e[14]^e[24]^e[34]^e[44],f=e[5]^e[15]^e[25]^e[35]^e[45],l=e[6]^e[16]^e[26]^e[36]^e[46],d=e[7]^e[17]^e[27]^e[37]^e[47],t=(h=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|s>>>31),r=(p=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|a>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=i^(c<<1|f>>>31),r=o^(f<<1|c>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=a^(l<<1|d>>>31),r=s^(d<<1|l>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=c^(h<<1|p>>>31),r=f^(p<<1|h>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=l^(i<<1|o>>>31),r=d^(o<<1|i>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,b=e[0],y=e[1],G=e[11]<<4|e[10]>>>28,X=e[10]<<4|e[11]>>>28,M=e[20]<<3|e[21]>>>29,j=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ue=e[30]<<9|e[31]>>>23,z=e[40]<<18|e[41]>>>14,q=e[41]<<18|e[40]>>>14,R=e[2]<<1|e[3]>>>31,C=e[3]<<1|e[2]>>>31,g=e[13]<<12|e[12]>>>20,m=e[12]<<12|e[13]>>>20,Z=e[22]<<10|e[23]>>>22,J=e[23]<<10|e[22]>>>22,T=e[33]<<13|e[32]>>>19,B=e[32]<<13|e[33]>>>19,ce=e[42]<<2|e[43]>>>30,fe=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,re=e[4]<<30|e[5]>>>2,U=e[14]<<6|e[15]>>>26,L=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,Y=e[34]<<15|e[35]>>>17,Q=e[35]<<15|e[34]>>>17,I=e[45]<<29|e[44]>>>3,N=e[44]<<29|e[45]>>>3,P=e[6]<<28|e[7]>>>4,S=e[7]<<28|e[6]>>>4,ne=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,D=e[26]<<25|e[27]>>>7,H=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,x=e[37]<<21|e[36]>>>11,$=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,K=e[8]<<27|e[9]>>>5,W=e[9]<<27|e[8]>>>5,A=e[18]<<20|e[19]>>>12,E=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,F=e[38]<<8|e[39]>>>24,V=e[39]<<8|e[38]>>>24,O=e[48]<<14|e[49]>>>18,k=e[49]<<14|e[48]>>>18,e[0]=b^~g&v,e[1]=y^~m&w,e[10]=P^~A&M,e[11]=S^~E&j,e[20]=R^~U&D,e[21]=C^~L&H,e[30]=K^~G&Z,e[31]=W^~X&J,e[40]=te^~ne&oe,e[41]=re^~ie&ae,e[2]=g^~v&_,e[3]=m^~w&x,e[12]=A^~M&T,e[13]=E^~j&B,e[22]=U^~D&F,e[23]=L^~H&V,e[32]=G^~Z&Y,e[33]=X^~J&Q,e[42]=ne^~oe&se,e[43]=ie^~ae&ue,e[4]=v^~_&O,e[5]=w^~x&k,e[14]=M^~T&I,e[15]=j^~B&N,e[24]=D^~F&z,e[25]=H^~V&q,e[34]=Z^~Y&$,e[35]=J^~Q&ee,e[44]=oe^~se&ce,e[45]=ae^~ue&fe,e[6]=_^~O&b,e[7]=x^~k&y,e[16]=T^~I&P,e[17]=B^~N&S,e[26]=F^~z&R,e[27]=V^~q&C,e[36]=Y^~$&K,e[37]=Q^~ee&W,e[46]=se^~ce&te,e[47]=ue^~fe&re,e[8]=O^~b&g,e[9]=k^~y&m,e[18]=I^~P&A,e[19]=N^~S&E,e[28]=z^~R&U,e[29]=q^~C&L,e[38]=$^~K&G,e[39]=ee^~W&X,e[48]=ce^~te&ne,e[49]=fe^~re&ie,e[0]^=u[n],e[1]^=u[n+1]};if(o)n.exports=b;else for(g=0;g<y.length;++g)r[y[g]]=b[y[g]]}()}).call(this,r(6),r(7),r(35)(e))},function(e,t,r){"use strict";var n,i;r(0)(r(2)),n=[r(168),r(405)],void 0===(i=function(e,t){return function(e,t){function r(r,n,i){for(var o=[],a=e.ucs2.decode(r),s=0;s<a.length;s++){var u=a[s],c=e.ucs2.encode([a[s]]),f=t.mapChar(u),l=f>>23,d=f>>21&3,h=f>>5&65535,p=31&f,b=t.mapStr.substr(h,p);if(0===d||n&&1&l)throw new Error("Illegal char "+c);1===d?o.push(b):2===d?o.push(i?b:c):3===d&&o.push(c)}return o.join("").normalize("NFC")}function n(t,n,o){void 0===o&&(o=!1);var a=r(t,o,n).split(".");return(a=a.map((function(t){return t.startsWith("xn--")?i(t=e.decode(t.substring(4)),o,!1):i(t,o,n),t}))).join(".")}function i(e,n,i){if("-"===e[2]&&"-"===e[3])throw new Error("Failed to validate "+e);if(e.startsWith("-")||e.endsWith("-"))throw new Error("Failed to validate "+e);if(e.includes("."))throw new Error("Failed to validate "+e);if(r(e,n,i)!==e)throw new Error("Failed to validate "+e);var o=e.codePointAt(0);if(t.mapChar(o)&2<<23)throw new Error("Label contains illegal character: "+o)}return{toUnicode:function(e,t){return void 0===t&&(t={}),n(e,!1,"useStd3ASCII"in t&&t.useStd3ASCII)},toAscii:function(t,r){void 0===r&&(r={});var i,o=!("transitional"in r)||r.transitional,a="useStd3ASCII"in r&&r.useStd3ASCII,s="verifyDnsLength"in r&&r.verifyDnsLength,u=n(t,o,a).split(".").map(e.toASCII),c=u.join(".");if(s){if(c.length<1||c.length>253)throw new Error("DNS name has wrong length: "+c);for(i=0;i<u.length;i++){var f=u[i];if(f.length<1||f.length>63)throw new Error("DNS label has wrong length: "+f)}}return c}}}(e,t)}.apply(t,n))||(e.exports=i)},function(e,t,r){"use strict";var n;r(0)(r(2)),void 0===(n=function(){return e=[new Uint32Array([2157250,2157314,2157378,2157442,2157506,2157570,2157634,0,2157698,2157762,2157826,2157890,2157954,0,2158018,0]),new Uint32Array([2179041,6291456,2179073,6291456,2179105,6291456,2179137,6291456,2179169,6291456,2179201,6291456,2179233,6291456,2179265,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,14680064,14680064,14680064,14680064,14680064]),new Uint32Array([0,2113729,2197345,2197377,2113825,2197409,2197441,2113921,2197473,2114017,2197505,2197537,2197569,2197601,2197633,2197665]),new Uint32Array([6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,23068672,23068672,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,0,23068672,23068672,23068672,0,0,0,0,23068672]),new Uint32Array([14680064,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,14680064,14680064]),new Uint32Array([2196001,2196033,2196065,2196097,2196129,2196161,2196193,2196225,2196257,2196289,2196321,2196353,2196385,2196417,2196449,2196481]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,6291456,0,0,0,0,0]),new Uint32Array([2097281,2105921,2097729,2106081,0,2097601,2162337,2106017,2133281,2097505,2105889,2097185,2097697,2135777,2097633,2097441]),new Uint32Array([2177025,6291456,2177057,6291456,2177089,6291456,2177121,6291456,2177153,6291456,2177185,6291456,2177217,6291456,2177249,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,0,6291456,6291456,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456]),new Uint32Array([0,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,6291456]),new Uint32Array([2134435,2134531,2134627,2134723,2134723,2134819,2134819,2134915,2134915,2135011,2105987,2135107,2135203,2135299,2131587,2135395]),new Uint32Array([0,0,0,0,0,0,0,6291456,2168673,2169249,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2147906,2147970,2148034,2148098,2148162,2148226,2148290,2148354,2147906,2147970,2148034,2148098,2148162,2148226,2148290,2148354]),new Uint32Array([2125219,2125315,2152834,2152898,2125411,2152962,2153026,2125506,2125507,2125603,2153090,2153154,2153218,2153282,2153346,2105348]),new Uint32Array([2203393,6291456,2203425,6291456,2203457,6291456,2203489,6291456,6291456,6291456,6291456,2203521,6291456,2181281,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,23068672,6291456,2145538,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,6291456]),new Uint32Array([2139426,2160834,2160898,2160962,2134242,2161026,2161090,2161154,2161218,2161282,2161346,2161410,2138658,2161474,2161538,2134722]),new Uint32Array([2119939,2124930,2125026,2106658,2125218,2128962,2129058,2129154,2129250,2129346,2129442,2108866,2108770,2150466,2150530,2150594]),new Uint32Array([2201601,6291456,2201633,6291456,2201665,6291456,2201697,6291456,2201729,6291456,2201761,6291456,2201793,6291456,2201825,6291456]),new Uint32Array([2193537,2193569,2193601,2193633,2193665,2193697,2193729,2193761,2193793,2193825,2193857,2193889,2193921,2193953,2193985,2194017]),new Uint32Array([6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2190561,6291456,2190593,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2190625,6291456,2190657,6291456,23068672]),new Uint32Array([2215905,2215937,2215969,2216001,2216033,2216065,2216097,2216129,2216161,2216193,2216225,2216257,2105441,2216289,2216321,2216353]),new Uint32Array([23068672,18884130,23068672,23068672,23068672,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2191233,2191265,2191297,2191329,2191361,2191393,2191425,2117377,2191457,2191489,2191521,2191553,2191585,2191617,2191649,2117953]),new Uint32Array([2132227,2132323,2132419,2132419,2132515,2132515,2132611,2132707,2132707,2132803,2132899,2132899,2132995,2132995,2133091,2133187]),new Uint32Array([0,0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,6291456,0,0]),new Uint32Array([2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,10609889,10610785,10609921,10610817,2222241]),new Uint32Array([6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,0,0]),new Uint32Array([2219969,2157121,2157441,2157505,2157889,2157953,2220001,2158465,2158529,10575617,2156994,2157058,2129923,2130019,2157122,2157186]),new Uint32Array([6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0]),new Uint32Array([2185249,6291456,2185281,6291456,2185313,6291456,2185345,6291456,2185377,6291456,2185409,6291456,2185441,6291456,2185473,6291456]),new Uint32Array([0,0,0,0,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,0,23068672,23068672,0,0,23068672,23068672,23068672,6291456,0]),new Uint32Array([2183361,6291456,2183393,6291456,2183425,6291456,2183457,6291456,2183489,6291456,2183521,6291456,2183553,6291456,2183585,6291456]),new Uint32Array([2192161,2192193,2192225,2192257,2192289,2192321,2192353,2192385,2192417,2192449,2192481,2192513,2192545,2192577,2192609,2192641]),new Uint32Array([2212001,2212033,2212065,2212097,2212129,2212161,2212193,2212225,2212257,2212289,2212321,2212353,2212385,2212417,2212449,2207265]),new Uint32Array([2249825,2249857,2249889,2249921,2249954,2250018,2250082,2250145,2250177,2250209,2250241,2250274,2250337,2250370,2250433,2250465]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2147905,2147969,2148033,2148097,2148161,2148225,2148289,2148353]),new Uint32Array([10485857,6291456,2197217,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,23068672,23068672]),new Uint32Array([0,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([2180353,2180385,2144033,2180417,2180449,2180481,2180513,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,10610209,10610465,10610241,10610753,10609857]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,0,0]),new Uint32Array([2223842,2223906,2223970,2224034,2224098,2224162,2224226,2224290,2224354,2224418,2224482,2224546,2224610,2224674,2224738,2224802]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,6291456,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456]),new Uint32Array([23068672,23068672,23068672,18923650,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,18923714,23068672,23068672]),new Uint32Array([2126179,2125538,2126275,2126371,2126467,2125634,2126563,2105603,2105604,2125346,2126659,2126755,2126851,2098179,2098181,2098182]),new Uint32Array([2227426,2227490,2227554,2227618,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2192353,2240642,2240642,2240705,2240737,2240737,2240769,2240802,2240866,2240929,2240961,2240993,2241025,2241057,2241089,2241121]),new Uint32Array([6291456,2170881,2170913,2170945,6291456,2170977,6291456,2171009,2171041,6291456,6291456,6291456,2171073,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2132226,2132514,2163586,2132610,2160386,2133090,2133186,2160450,2160514,2160578,2133570,2106178,2160642,2133858,2160706,2160770]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,10532162,10532226,10532290,10532354,10532418,10532482,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,23068672]),new Uint32Array([2098209,2108353,2108193,2108481,2170241,2111713,2105473,2105569,2105601,2112289,2112481,2098305,2108321,0,0,0]),new Uint32Array([2209121,2209153,2209185,2209217,2209249,2209281,2209313,2209345,2209377,2209409,2209441,2209473,2207265,2209505,2209537,2209569]),new Uint32Array([2189025,6291456,2189057,6291456,2189089,6291456,2189121,6291456,2189153,6291456,2189185,6291456,2189217,6291456,2189249,6291456]),new Uint32Array([2173825,2153473,2173857,2173889,2173921,2173953,2173985,2173761,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233057]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2165764,2140004]),new Uint32Array([2215105,6291456,2215137,6291456,6291456,2215169,2215201,6291456,6291456,6291456,2215233,2215265,2215297,2215329,2215361,2215393]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,6291456,6291456,6291456,23068672,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([10505091,10505187,10505283,10505379,10505475,10505571,10505667,10505763,10505859,10505955,10506051,10506147,10506243,10506339,10506435,10506531]),new Uint32Array([2229730,2229794,2229858,2229922,2229986,2230050,2230114,2230178,2230242,2230306,2230370,2230434,2230498,2230562,2230626,2230690]),new Uint32Array([2105505,2098241,2108353,2108417,2105825,0,2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177]),new Uint32Array([6291456,6291456,6291456,6291456,10502115,10502178,10502211,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456]),new Uint32Array([2190305,6291456,2190337,6291456,2190369,6291456,2190401,6291456,2190433,6291456,2190465,6291456,2190497,6291456,2190529,6291456]),new Uint32Array([2173793,2173985,2174017,6291456,2173761,2173697,6291456,2174689,6291456,2174017,2174721,6291456,6291456,2174753,2174785,2174817]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2099521,2099105,2120705,2098369,2120801,2103361,2097985,2098433,2121377,2121473,2099169,2099873,2098401,2099393,2152609,2100033]),new Uint32Array([2132898,2163842,2163906,2133282,2132034,2131938,2137410,2132802,2132706,2164866,2133282,2160578,2165186,2165186,6291456,6291456]),new Uint32Array([10500003,10500099,10500195,10500291,10500387,10500483,10500579,10500675,10500771,10500867,10500963,10501059,10501155,10501251,10501347,10501443]),new Uint32Array([2163458,2130978,2131074,2131266,2131362,2163522,2160130,2132066,2131010,2131106,2106018,2131618,2131298,2132034,2131938,2137410]),new Uint32Array([2212961,2116993,2212993,2213025,2213057,2213089,2213121,2213153,2213185,2213217,2213249,2209633,2213281,2213313,2213345,2213377]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([2113729,2113825,2113921,2114017,2114113,2114209,2114305,2114401,2114497,2114593,2114689,2114785,2114881,2114977,2115073,2115169]),new Uint32Array([2238177,2238209,2238241,2238273,2238305,2238337,2238337,2217537,2238369,2238401,2238433,2238465,2215649,2238497,2238529,2238561]),new Uint32Array([2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905]),new Uint32Array([6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,0]),new Uint32Array([6291456,0,6291456,2145026,0,6291456,2145090,0,6291456,6291456,0,0,23068672,0,23068672,23068672]),new Uint32Array([2099233,2122017,2200673,2098113,2121537,2103201,2200705,2104033,2121857,2121953,2122401,2099649,2099969,2123009,2100129,2100289]),new Uint32Array([6291456,23068672,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,23068672,23068672,0,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0]),new Uint32Array([2187681,2187713,2187745,2187777,2187809,2187841,2187873,2187905,2187937,2187969,2188001,2188033,2188065,2188097,2188129,2188161]),new Uint32Array([0,10554498,10554562,10554626,10554690,10554754,10554818,10554882,10554946,10555010,10555074,6291456,6291456,0,0,0]),new Uint32Array([2235170,2235234,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0]),new Uint32Array([2181153,6291456,2188897,6291456,6291456,2188929,6291456,6291456,6291456,6291456,6291456,6291456,2111905,2100865,2188961,2188993]),new Uint32Array([2100833,2100897,0,0,2101569,2101697,2101825,2101953,2102081,2102209,10575617,2187041,10502177,10489601,10489697,2112289]),new Uint32Array([6291456,2172833,6291456,2172865,2172897,2172929,2172961,6291456,2172993,6291456,2173025,6291456,2173057,6291456,2173089,6291456]),new Uint32Array([6291456,0,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,0,0,23068672,6291456,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,2190721]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,23068672,6291456,6291456]),new Uint32Array([2184993,6291456,2185025,6291456,2185057,6291456,2185089,6291456,2185121,6291456,2185153,6291456,2185185,6291456,2185217,6291456]),new Uint32Array([2115265,2115361,2115457,2115553,2115649,2115745,2115841,2115937,2116033,2116129,2116225,2116321,2150658,2150722,2200225,6291456]),new Uint32Array([2168321,6291456,2168353,6291456,2168385,6291456,2168417,6291456,2168449,6291456,2168481,6291456,2168513,6291456,2168545,6291456]),new Uint32Array([23068672,23068672,23068672,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,0,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,0,6291456,0,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,2186625,0,0,6291456,6291456,2186657,2186689,2186721,2173505,0,10496067,10496163,10496259]),new Uint32Array([2178785,6291456,2178817,6291456,2178849,6291456,2178881,6291456,2178913,6291456,2178945,6291456,2178977,6291456,2179009,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0]),new Uint32Array([2097152,0,0,0,2097152,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,2197857,2197889,2197921,2197953,2197985,2198017,0,0,2198049,2198081,2198113,2198145,2198177,2198209]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2098209,2167297,2111137,6291456]),new Uint32Array([2171393,6291456,2171425,6291456,2171457,6291456,2171489,6291456,2171521,6291456,2171553,6291456,2171585,6291456,2171617,6291456]),new Uint32Array([2206753,2206785,2195457,2206817,2206849,2206881,2206913,2197153,2197153,2206945,2117857,2206977,2207009,2207041,2207073,2207105]),new Uint32Array([0,0,0,0,0,0,0,23068672,0,0,0,0,2144834,2144898,0,2144962]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,23068672]),new Uint32Array([2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,0,2105505,2098241]),new Uint32Array([6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,2202049,6291456,2202081,6291456,2202113,6291456,2202145,6291456,2202177,6291456,2202209,6291456,2202241,6291456]),new Uint32Array([10501155,10501251,10501347,10501443,10501539,10501635,10501731,10501827,10501923,10502019,2141731,2105505,2098177,2155586,2166530,0]),new Uint32Array([2102081,2102209,2100833,2100737,2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209,2100833,2100737,2098337,2101441]),new Uint32Array([2146882,2146946,2147010,2147074,2147138,2147202,2147266,2147330,2146882,2146946,2147010,2147074,2147138,2147202,2147266,2147330]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([10502307,10502403,10502499,10502595,10502691,10502787,10502883,10502979,10503075,10503171,10503267,10503363,10503459,10503555,10503651,10503747]),new Uint32Array([2179937,2179969,2180001,2180033,2156545,2180065,2156577,2180097,2180129,2180161,2180193,2180225,2180257,2180289,2156737,2180321]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,0,0,0,6291456,0,0,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0]),new Uint32Array([2227682,2227746,2227810,2227874,2227938,2228002,2228066,2228130,2228194,2228258,2228322,2228386,2228450,2228514,2228578,2228642]),new Uint32Array([2105601,2169121,2108193,2170049,2181025,2181057,2112481,2108321,2108289,2181089,2170497,2100865,2181121,2173601,2173633,2173665]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2180641,6291456,6291456,6291456]),new Uint32Array([0,6291456,6291456,6291456,0,6291456,0,6291456,0,0,6291456,6291456,0,6291456,6291456,6291456]),new Uint32Array([2178273,6291456,2178305,6291456,2178337,6291456,2178369,6291456,2178401,6291456,2178433,6291456,2178465,6291456,2178497,6291456]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,6291456,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,14680064,14680064,14680064,14680064,14680064,14680064]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456]),new Uint32Array([2237377,2237409,2236225,2237441,2237473,2217441,2215521,2215553,2217473,2237505,2237537,2209697,2237569,2215585,2237601,2237633]),new Uint32Array([2221985,2165601,2165601,2165665,2165665,2222017,2222017,2165729,2165729,2158913,2158913,2158913,2158913,2097281,2097281,2105921]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2149634,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2176897,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,2176929,6291456,2176961,6291456,2176993,6291456]),new Uint32Array([2172641,6291456,2172673,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2172705,2172737,6291456,2172769,2172801,6291456]),new Uint32Array([2099173,2104196,2121667,2099395,2121763,2152258,2152322,2098946,2152386,2121859,2121955,2099333,2122051,2104324,2099493,2122147]),new Uint32Array([6291456,6291456,6291456,2145794,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,2145858,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,0,0,6291456,0]),new Uint32Array([0,2105921,2097729,0,2097377,0,0,2106017,0,2097505,2105889,2097185,2097697,2135777,2097633,2097441]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2239074,2239138,2239201,2239233,2239265,2239297,2239329,2239361,0,2239393,2239425,2239425,2239458,2239521,2239553,2209569]),new Uint32Array([14680064,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,6291456,23068672]),new Uint32Array([2108321,2108289,2113153,2098209,2180897,2180929,2180961,2111137,2098241,2108353,2170241,2170273,2180993,2105825,6291456,2105473]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2146114,6291456,6291456,6291456,0,0,0]),new Uint32Array([2105921,2105921,2105921,2222049,2222049,2130977,2130977,2130977,2130977,2160065,2160065,2160065,2160065,2097729,2097729,2097729]),new Uint32Array([2218145,2214785,2207937,2218177,2218209,2192993,2210113,2212769,2218241,2218273,2216129,2218305,2216161,2218337,2218369,2218401]),new Uint32Array([0,0,0,2156546,2156610,2156674,2156738,2156802,0,0,0,0,0,2156866,23068672,2156930]),new Uint32Array([23068672,23068672,23068672,0,0,0,0,23068672,23068672,0,0,23068672,23068672,23068672,0,0]),new Uint32Array([2213409,2213441,2213473,2213505,2213537,2213569,2213601,2213633,2213665,2195681,2213697,2213729,2213761,2213793,2213825,2213857]),new Uint32Array([2100033,2099233,2122017,2200673,2098113,2121537,2103201,2200705,2104033,2121857,2121953,2122401,2099649,2099969,2123009,2100129]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([2201857,6291456,2201889,6291456,2201921,6291456,2201953,6291456,2201985,6291456,2202017,6291456,2176193,2176257,23068672,23068672]),new Uint32Array([6291456,6291456,23068672,23068672,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2188193,2188225,2188257,2188289,2188321,2188353,2188385,2188417,2188449,2188481,2188513,2188545,2188577,2188609,2188641,0]),new Uint32Array([10554529,2221089,0,10502113,10562017,10537921,10538049,2221121,2221153,0,0,0,0,0,0,0]),new Uint32Array([2213889,2213921,2213953,2213985,2214017,2214049,2214081,2194177,2214113,2214145,2214177,2214209,2214241,2214273,2214305,2214337]),new Uint32Array([2166978,2167042,2099169,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2180545,6291456,6291456,6291456]),new Uint32Array([10518915,10519011,10519107,10519203,2162242,2162306,2159554,2162370,2159362,2159618,2105922,2162434,2159746,2162498,2159810,2159874]),new Uint32Array([2161730,2161794,2135586,2161858,2161922,2137186,2131810,2160290,2135170,2161986,2137954,2162050,2162114,2162178,10518723,10518819]),new Uint32Array([10506627,10506723,10506819,10506915,10507011,10507107,10507203,10507299,10507395,10507491,10507587,10507683,10507779,10507875,10507971,10508067]),new Uint32Array([6291456,23068672,23068672,23068672,0,23068672,23068672,0,0,0,0,0,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0]),new Uint32Array([2175873,2175905,2175937,2175969,2176001,2176033,2176065,2176097,2176129,2176161,2176193,2176225,2176257,2176289,2176321,2176353]),new Uint32Array([2140006,2140198,2140390,2140582,2140774,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,23068672,23068672,23068672]),new Uint32Array([2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241]),new Uint32Array([0,23068672,0,0,0,0,0,0,0,2145154,2145218,2145282,6291456,0,2145346,0]),new Uint32Array([0,0,0,0,10531458,10495395,2148545,2143201,2173473,2148865,2173505,0,2173537,0,2173569,2149121]),new Uint32Array([10537282,10495683,2148738,2148802,2148866,0,6291456,2148930,2186593,2173473,2148737,2148865,2148802,10495779,10495875,10495971]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2215425,2215457,2215489,2215521,2215553,2215585,2215617,2215649,2215681,2215713,2215745,2215777,2192033,2215809,2215841,2215873]),new Uint32Array([2242049,2242081,2242113,2242145,2242177,2242209,2242241,2242273,2215937,2242305,2242338,2242401,2242433,2242465,2242497,2216001]),new Uint32Array([10554529,2221089,0,0,10562017,10502113,10538049,10537921,2221185,10489601,10489697,10609889,10609921,2141729,2141793,10610273]),new Uint32Array([2141923,2142019,2142115,2142211,2142307,2142403,2142499,2142595,2142691,0,0,0,0,0,0,0]),new Uint32Array([0,2221185,2221217,10609857,10609857,10489601,10489697,10609889,10609921,2141729,2141793,2221345,2221377,2221409,2221441,2187105]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,18923970,23068672,23068672,23068672,0,6291456,6291456]),new Uint32Array([2183105,6291456,2183137,6291456,2183169,6291456,2183201,6291456,2183233,6291456,2183265,6291456,2183297,6291456,2183329,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456]),new Uint32Array([2134434,2134818,2097666,2097186,2097474,2097698,2105986,2131586,2132450,2131874,2131778,2135970,2135778,2161602,2136162,2161666]),new Uint32Array([2236865,2236897,2236930,2236993,2237025,2235681,2237058,2237121,2237153,2237185,2237217,2217281,2237250,2191233,2237313,2237345]),new Uint32Array([2190049,6291456,2190081,6291456,2190113,6291456,2190145,6291456,2190177,6291456,2190209,6291456,2190241,6291456,2190273,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2101922,2102050,2102178,2102306,10498755,10498851,10498947,10499043,10499139,10499235,10499331,10499427,10499523,10489604,10489732,10489860]),new Uint32Array([2166914,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0]),new Uint32Array([2181601,2170561,2181633,2181665,2170753,2181697,2172897,2170881,2181729,2170913,2172929,2113441,2181761,2181793,2171009,2173761]),new Uint32Array([0,2105921,2097729,2106081,0,2097601,2162337,2106017,2133281,2097505,0,2097185,2097697,2135777,2097633,2097441]),new Uint32Array([6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,0,0,0,0]),new Uint32Array([2248001,2248033,2248066,2248130,2248193,2248226,2248289,2248322,2248385,2248417,2216673,2248450,2248514,2248577,2248610,2248673]),new Uint32Array([6291456,6291456,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,0,0,0]),new Uint32Array([2169729,6291456,2169761,6291456,2169793,6291456,2169825,6291456,2169857,2169889,6291456,2169921,6291456,2143329,6291456,2098305]),new Uint32Array([2162178,2163202,2163266,2135170,2136226,2161986,2137954,2159426,2159490,2163330,2159554,2163394,2159682,2139522,2136450,2159746]),new Uint32Array([2173953,2173985,0,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2174209,2174241,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,4271169,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2174273]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,0,0,0,0,0,0,0,6291456,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,2190785,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2189793,6291456,2189825,6291456,2189857,6291456,2189889,6291456,2189921,6291456,2189953,6291456,2189985,6291456,2190017,6291456]),new Uint32Array([2105601,2112289,2108193,2112481,2112577,0,2098305,2108321,2108289,2100865,2113153,2108481,2113345,0,2098209,2111137]),new Uint32Array([2172129,6291456,2172161,6291456,2172193,6291456,2172225,6291456,2172257,6291456,2172289,6291456,2172321,6291456,2172353,6291456]),new Uint32Array([2214753,6291456,2214785,6291456,6291456,2214817,2214849,2214881,2214913,2214945,2214977,2215009,2215041,2215073,2194401,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,6291456,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([0,0,0,0,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([10610305,10610337,10575617,2221761,10610401,10610433,10502177,0,10610465,10610497,10610529,10610561,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,23068672,0,0,0,0,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2187105,2187137,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2199393,2199425,2199457,2199489,2199521,2199553,2199585,2199617,2199649,2199681,2199713,2199745,2199777,2199809,2199841,0]),new Uint32Array([2217249,2217281,2217313,2217345,2217377,2217409,2217441,2217473,2215617,2217505,2217537,2217569,2214753,2217601,2217633,2217665]),new Uint32Array([2170273,2170305,6291456,2170337,2170369,6291456,2170401,2170433,2170465,6291456,6291456,6291456,2170497,2170529,6291456,2170561]),new Uint32Array([2188673,6291456,2188705,2188737,2188769,6291456,6291456,2188801,6291456,2188833,6291456,2188865,6291456,2180929,2181505,2180897]),new Uint32Array([10489988,10490116,10490244,10490372,10490500,10490628,10490756,10490884,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2147393,2147457,2147521,2147585,2147649,2147713,2147777,2147841]),new Uint32Array([23068672,23068672,0,23068672,23068672,0,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0]),new Uint32Array([2241153,2241185,2241217,2215809,2241250,2241313,2241345,2241377,2217921,2241377,2241409,2215873,2241441,2241473,2241505,2241537]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2220417,2220417,2220449,2220449,2220481,2220481,2220513,2220513,2220545,2220545,2220577,2220577,2220609,2220609,2220641,2220641]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,2144002,0,6291456,6291456,0,0,6291456,6291456,6291456]),new Uint32Array([2167105,2167137,2167169,2167201,2167233,2167265,2167297,2167329,2167361,2167393,2167425,2167457,2167489,2167521,2167553,2167585]),new Uint32Array([10575521,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193]),new Uint32Array([2234146,2234210,2234274,2234338,2234402,2234466,2234530,2234594,2234658,2234722,2234786,2234850,2234914,2234978,2235042,2235106]),new Uint32Array([0,0,0,0,0,0,0,2180577,0,0,0,0,0,2180609,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,0,0,6291456,6291456]),new Uint32Array([2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2242529,2242561,2242593,2242625,2242657,2242689,2242721,2242753,2207937,2218177,2242785,2242817,2242849,2242882,2242945,2242977]),new Uint32Array([2118049,2105345,2118241,2105441,2118433,2118529,2118625,2118721,2118817,2200257,2200289,2191809,2200321,2200353,2200385,2200417]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0]),new Uint32Array([2185505,6291456,2185537,6291456,2185569,6291456,2185601,6291456,2185633,6291456,2185665,6291456,2185697,6291456,2185729,6291456]),new Uint32Array([2231970,2232034,2232098,2232162,2232226,2232290,2232354,2232418,2232482,2232546,2232610,2232674,2232738,2232802,2232866,2232930]),new Uint32Array([2218625,2246402,2246466,2246530,2246594,2246657,2246689,2246689,2218657,2219681,2246721,2246753,2246785,2246818,2246881,2208481]),new Uint32Array([2197025,2197057,2197089,2197121,2197153,2197185,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2219137,2216961,2219169,2219201,2219233,2219265,2219297,2217025,2215041,2219329,2217057,2219361,2217089,2219393,2197153,2219426]),new Uint32Array([23068672,23068672,23068672,0,0,0,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,0,0]),new Uint32Array([2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713]),new Uint32Array([2243522,2243585,2243617,2243649,2243681,2210113,2243713,2243746,2243810,2243874,2243937,2243970,2244033,2244065,2244097,2244129]),new Uint32Array([2178017,6291456,2178049,6291456,2178081,6291456,2178113,6291456,2178145,6291456,2178177,6291456,2178209,6291456,2178241,6291456]),new Uint32Array([10553858,2165314,10518722,6291456,10518818,0,10518914,2130690,10519010,2130786,10519106,2130882,10519202,2165378,10554050,2165506]),new Uint32Array([0,0,2135491,2135587,2135683,2135779,2135875,2135971,2135971,2136067,2136163,2136259,2136355,2136355,2136451,2136547]),new Uint32Array([23068672,23068672,23068672,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2220033,2220033,2220065,2220065,2220065,2220065,2220097,2220097,2220097,2220097,2220129,2220129,2220129,2220129,2220161,2220161]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,23068672,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2100897,2100898,2100899,2150018,2100865,2100866,2100867,2100868,2150082,2108481,2109858,2109859,2105569,2105505,2098241,2105601]),new Uint32Array([2097217,2097505,2097505,2097505,2097505,2165570,2165570,2165634,2165634,2165698,2165698,2097858,2097858,0,0,2097152]),new Uint32Array([23068672,6291456,23068672,23068672,23068672,6291456,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,23068672,23068672]),new Uint32Array([23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([10503843,10503939,10504035,10504131,10504227,10504323,10504419,10504515,10504611,10504707,10504803,10504899,10504995,10491140,10491268,0]),new Uint32Array([2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889,2173921,2173953,2173985,2173761,2174017,2174049]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2134145,2097153,2134241,2105953,2132705,2130977,2160065,2131297,2162049,2133089,2160577,2133857,2235297,2220769,2235329,2235361]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2222401,2222433,2222465,10531394,2222497,2222529,2222561,0,2222593,2222625,2222657,2222689,2222721,2222753,2222785,0]),new Uint32Array([2184481,6291456,2184513,6291456,2184545,6291456,2184577,6291456,2184609,6291456,2184641,6291456,2184673,6291456,2184705,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,0,0,0,0,0,0,0,0,0]),new Uint32Array([2105570,2156034,2126947,2156098,2153666,2127043,2127139,2156162,0,2127235,2156226,2156290,2156354,2156418,2127331,2127427]),new Uint32Array([2215905,2207041,2153185,2241569,2241601,2241633,2241665,2241697,2241730,2241793,2241825,2241857,2241889,2241921,2241954,2242017]),new Uint32Array([2203777,6291456,2203809,6291456,2203841,6291456,2203873,6291456,2203905,6291456,2173121,2180993,2181249,2203937,2181313,0]),new Uint32Array([2168577,6291456,2168609,6291456,2168641,6291456,2168673,6291456,2168705,6291456,2168737,6291456,2168769,6291456,2168801,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,23068672,23068672,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,0,23068672,23068672,23068672,0,0]),new Uint32Array([2210113,2195521,2210145,2210177,2210209,2210241,2210273,2210305,2210337,2210369,2210401,2210433,2210465,2210497,2210529,2210561]),new Uint32Array([6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([2228706,2228770,2228834,2228898,2228962,2229026,2229090,2229154,2229218,2229282,2229346,2229410,2229474,2229538,2229602,2229666]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,18874368,18874368,18874368,0,0]),new Uint32Array([2133089,2133281,2133281,2133281,2133281,2160577,2160577,2160577,2160577,2097441,2097441,2097441,2097441,2133857,2133857,2133857]),new Uint32Array([6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2173825,2153473,2173857,2173889,2173921,2173953,2173985,2174017,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233089]),new Uint32Array([2178529,6291456,2178561,6291456,2178593,6291456,2178625,6291456,2178657,6291456,2178689,6291456,2178721,6291456,2178753,6291456]),new Uint32Array([2221025,2221025,2221057,2221057,2159329,2159329,2159329,2159329,2097217,2097217,2158914,2158914,2158978,2158978,2159042,2159042]),new Uint32Array([2208161,2208193,2208225,2208257,2194433,2208289,2208321,2208353,2208385,2208417,2208449,2208481,2208513,2208545,2208577,2208609]),new Uint32Array([2169217,6291456,2169249,6291456,2169281,6291456,2169313,6291456,2169345,6291456,2169377,6291456,2169409,6291456,2169441,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456]),new Uint32Array([2133187,2133283,2133283,2133379,2133475,2133571,2133667,2133667,2133763,2133859,2133955,2134051,2134147,2134147,2134243,2134339]),new Uint32Array([2197697,2114113,2114209,2197729,2197761,2114305,2197793,2114401,2114497,2197825,2114593,2114689,2114785,2114881,2114977,0]),new Uint32Array([2193089,2193121,2193153,2193185,2117665,2117569,2193217,2193249,2193281,2193313,2193345,2193377,2193409,2193441,2193473,2193505]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2184225,6291456,2184257,6291456,2184289,6291456,2184321,6291456,2184353,6291456,2184385,6291456,2184417,6291456,2184449,6291456]),new Uint32Array([2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2100833,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2098657,2098049,2200737,2123489,2123681,2200769,2098625,2100321,2098145,2100449,2098017,2098753,2200801,2200833,2200865,0]),new Uint32Array([23068672,23068672,23068672,0,0,0,0,0,0,0,0,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0]),new Uint32Array([2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,0,2098241,2108353,2108417,2105825,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2181153,2105505,2181185,2167617,2180993]),new Uint32Array([2160002,2160066,2160130,2160194,2160258,2132066,2131010,2131106,2106018,2131618,2160322,2131298,2132034,2131938,2137410,2132226]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,6291456]),new Uint32Array([2183617,6291456,2183649,6291456,2183681,6291456,2183713,6291456,2183745,6291456,2183777,6291456,2183809,6291456,2183841,6291456]),new Uint32Array([0,6291456,6291456,0,6291456,0,0,6291456,6291456,0,6291456,0,0,6291456,0,0]),new Uint32Array([2250977,2251009,2251041,2251073,2195009,2251106,2251169,2251201,2251233,2251265,2251297,2251330,2251394,2251457,2251489,2251521]),new Uint32Array([2205729,2205761,2205793,2205825,2205857,2205889,2205921,2205953,2205985,2206017,2206049,2206081,2206113,2206145,2206177,2206209]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2143170,2168993,6291456,2169025,6291456,2169057,6291456,2169089,6291456,2143234,2169121,6291456,2169153,6291456,2169185,6291456]),new Uint32Array([23068672,23068672,2190689,6291456,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2248706,2248769,2248801,2248833,2248865,2248897,2248929,2248962,2249026,2249090,2249154,2240705,2249217,2249249,2249281,2249313]),new Uint32Array([10485857,6291456,6291456,6291456,6291456,6291456,6291456,6291456,10495394,6291456,2098209,6291456,6291456,2097152,6291456,10531394]),new Uint32Array([0,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([14680064,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2173985,2173953,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889]),new Uint32Array([6291456,2186977,6291456,6291456,6291456,6291456,6291456,10537858,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2209601,2209633,2209665,2209697,2209729,2209761,2209793,2209825,2209857,2209889,2209921,2209953,2209985,2210017,2210049,2210081]),new Uint32Array([10501539,10501635,10501731,10501827,10501923,10502019,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905]),new Uint32Array([2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889,2173921,2173953,2173985,2174017,2174017,2174049]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2194561,2194593,2194625,2119777,2119873,2194657,2194689,2194721,2194753,2194785,2194817,2194849,2194881,2194913,2194945,2194977]),new Uint32Array([2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569]),new Uint32Array([2222818,2222882,2222946,2223010,2223074,2223138,2223202,2223266,2223330,2223394,2223458,2223522,2223586,2223650,2223714,2223778]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672]),new Uint32Array([0,2179553,2179585,2179617,2179649,2144001,2179681,2179713,2179745,2179777,2179809,2156705,2179841,2156833,2179873,2179905]),new Uint32Array([6291456,23068672,6291456,2145602,23068672,23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,6291456,0,0]),new Uint32Array([2196513,2196545,2196577,2196609,2196641,2196673,2196705,2196737,2196769,2196801,2196833,2196865,2196897,2196929,2196961,2196993]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2177281,6291456,2177313,6291456,2177345,6291456,2177377,6291456,2177409,6291456,2177441,6291456,2177473,6291456,2177505,6291456]),new Uint32Array([2187137,2221473,2221505,2221537,2221569,6291456,6291456,10610209,10610241,10537986,10537986,10537986,10537986,10609857,10609857,10609857]),new Uint32Array([2243009,2243041,2216033,2243074,2243137,2243169,2243201,2219617,2243233,2243265,2243297,2243329,2243362,2243425,2243457,2243489]),new Uint32Array([10485857,10485857,10485857,10485857,10485857,10485857,10485857,10485857,10485857,10485857,10485857,2097152,4194304,4194304,0,0]),new Uint32Array([2143042,6291456,2143106,2143106,2168833,6291456,2168865,6291456,6291456,2168897,6291456,2168929,6291456,2168961,6291456,2143170]),new Uint32Array([6291456,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2204193,2204225,2204257,2204289,2204321,2204353,2204385,2204417,2204449,2204481,2204513,2204545,2204577,2204609,2204641,2204673]),new Uint32Array([2202753,6291456,2202785,6291456,2202817,6291456,2202849,6291456,2202881,6291456,2202913,6291456,2202945,6291456,2202977,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177,2098305,2108321]),new Uint32Array([2147394,2147458,2147522,2147586,2147650,2147714,2147778,2147842,2147394,2147458,2147522,2147586,2147650,2147714,2147778,2147842]),new Uint32Array([2253313,2253346,2253409,2253441,2253473,2253505,2253537,2253569,2253601,2253634,2219393,2253697,2253729,2253761,2253793,2253825]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([2162562,2162626,2131362,2162690,2159938,2160002,2162754,2162818,2160130,2162882,2160194,2160258,2160834,2160898,2161026,2161090]),new Uint32Array([2175361,2175393,2175425,2175457,2175489,2175521,2175553,2175585,2175617,2175649,2175681,2175713,2175745,2175777,2175809,2175841]),new Uint32Array([2253858,2253921,2253954,2254018,2254082,2196737,2254145,2196865,2254177,2254209,2254241,2254273,2197025,2254306,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2202113,2204129,2188705,2204161]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([2173985,2174017,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233089,2173697,2173761,2173793,2174113,2173985,2173953]),new Uint32Array([2101569,2101697,2101825,2101953,2102081,2102209,2100833,2100737,2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209]),new Uint32Array([2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241,0,2108417,0,2111713,2100897,2111905]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0]),new Uint32Array([2175425,2175489,2175809,2175905,2175937,2175937,2176193,2176417,2180865,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,2143298,2143298,2143298,2143362,2143362,2143362,2143426,2143426,2143426,2171105,6291456,2171137]),new Uint32Array([2120162,2120258,2151618,2151682,2151746,2151810,2151874,2151938,2152002,2120035,2120131,2120227,2152066,2120323,2152130,2120419]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2195361,2142433,2236065,2236097,2236129,2236161,2118241,2117473,2236193,2236225,2236257,2236289,0,0,0,0]),new Uint32Array([2189281,6291456,2189313,6291456,2189345,6291456,2189377,6291456,2189409,6291456,2189441,6291456,2189473,6291456,2189505,6291456]),new Uint32Array([6291456,6291456,2145922,6291456,6291456,6291456,6291456,2145986,6291456,6291456,6291456,6291456,2146050,6291456,6291456,6291456]),new Uint32Array([2100833,2100737,2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209,10502113,10562017,10610401,10502177,10610433,10538049]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,2186401,0,2186433,0,2186465,0,2186497]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,23068672,23068672,23068672]),new Uint32Array([0,0,2198241,2198273,2198305,2198337,2198369,2198401,0,0,2198433,2198465,2198497,0,0,0]),new Uint32Array([6291456,0,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,0,6291456,0,23068672,23068672,23068672,23068672,23068672,23068672,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,0,0,23068672,6291456,23068672,23068672]),new Uint32Array([0,2105921,2097729,0,2097377,0,0,2106017,2133281,2097505,2105889,0,2097697,2135777,2097633,2097441]),new Uint32Array([2197889,2197921,2197953,2197985,2198017,2198049,2198081,2198113,2198145,2198177,2198209,2198241,2198273,2198305,2198337,2198369]),new Uint32Array([2132514,2132610,2160386,2133090,2133186,2160450,2160514,2133282,2160578,2133570,2106178,2160642,2133858,2160706,2160770,2134146]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,0,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,23068672,23068672,6291456,23068672,23068672,6291456,23068672,0,0,0,0,0,0,0,0]),new Uint32Array([2184737,6291456,2184769,6291456,2184801,6291456,2184833,6291456,2184865,6291456,2184897,6291456,2184929,6291456,2184961,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,6291456,6291456,6291456,6291456,0,6291456]),new Uint32Array([6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,23068672,23068672,23068672,6291456,23068672,23068672,23068672,23068672,23068672,0,0]),new Uint32Array([6291456,6291456,6291456,2186753,6291456,6291456,6291456,6291456,2186785,2186817,2186849,2173569,2186881,10496355,10495395,10575521]),new Uint32Array([0,0,2097729,0,0,0,0,2106017,0,2097505,0,2097185,0,2135777,2097633,2097441]),new Uint32Array([2189537,6291456,2189569,6291456,2189601,6291456,2189633,6291456,2189665,6291456,2189697,6291456,2189729,6291456,2189761,6291456]),new Uint32Array([2202497,6291456,2202529,6291456,2202561,6291456,2202593,6291456,2202625,6291456,2202657,6291456,2202689,6291456,2202721,6291456]),new Uint32Array([2245217,2218369,2245249,2245282,2245345,2245377,2245410,2245474,2245537,2245569,2245601,2245633,2245665,2245665,2245697,2245729]),new Uint32Array([6291456,0,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,0,0,0,0,0,0,23068672,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,6291456,23068672,6291456,23068672,6291456,6291456,6291456,6291456,23068672,23068672]),new Uint32Array([0,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([2097281,2105921,2097729,2106081,2097377,2097601,2162337,2106017,2133281,2097505,0,2097185,2097697,2135777,2097633,2097441]),new Uint32Array([2176641,6291456,2176673,6291456,2176705,6291456,2176737,6291456,2176769,6291456,2176801,6291456,2176833,6291456,2176865,6291456]),new Uint32Array([2174145,2174177,2149057,2233089,2173697,2173761,2173793,2174113,2173985,2173953,2174369,2174369,0,0,2100833,2100737]),new Uint32Array([2116513,2190817,2190849,2190881,2190913,2190945,2116609,2190977,2191009,2191041,2191073,2117185,2191105,2191137,2191169,2191201]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,6291456,6291456,6291456]),new Uint32Array([0,0,0,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456]),new Uint32Array([2167617,2167649,2167681,2167713,2167745,2167777,2167809,6291456,2167841,2167873,2167905,2167937,2167969,2168001,2168033,4240130]),new Uint32Array([2165122,2163970,2164034,2164098,2164162,2164226,2164290,2164354,2164418,2164482,2164546,2133122,2134562,2132162,2132834,2136866]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,2186209,2186241,2186273,2186305,2186337,2186369,0,0]),new Uint32Array([2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,14680064,14680064,14680064,14680064,14680064]),new Uint32Array([0,0,23068672,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456]),new Uint32Array([0,10537921,10610689,10610273,10610497,10610529,10610305,10610721,10489601,10489697,10610337,10575617,10554529,2221761,2197217,10496577]),new Uint32Array([2105473,2105569,2105601,2112289,0,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441]),new Uint32Array([2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481]),new Uint32Array([2125346,2153410,2153474,2127394,2153538,2153602,2153666,2153730,2105507,2105476,2153794,2153858,2153922,2153986,2154050,2105794]),new Uint32Array([2200449,2119681,2200481,2153313,2199873,2199905,2199937,2200513,2200545,2200577,2200609,2119105,2119201,2119297,2119393,2119489]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2175777,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2222273,2197217,2221473,2221505,2221089,2222305,2200865,2099681,2104481,2222337,2099905,2120737,2222369,2103713,2100225,2098785]),new Uint32Array([2201377,6291456,2201409,6291456,2201441,6291456,2201473,6291456,2201505,6291456,2201537,6291456,2201569,6291456,6291456,23068672]),new Uint32Array([2174081,2174113,2174145,2174177,2149057,2233057,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793]),new Uint32Array([2200897,6291456,2200929,6291456,2200961,6291456,2200993,6291456,2201025,6291456,2180865,6291456,2201057,6291456,2201089,6291456]),new Uint32Array([0,0,0,0,0,23068672,23068672,0,6291456,6291456,6291456,0,0,0,0,0]),new Uint32Array([2161154,2161410,2138658,2161474,2161538,2097666,2097186,2097474,2162946,2132450,2163010,2163074,2136162,2163138,2161666,2161730]),new Uint32Array([2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889,2173921,2173953]),new Uint32Array([0,0,0,0,0,0,23068672,23068672,0,0,0,0,2145410,2145474,0,6291456]),new Uint32Array([2244161,2216065,2212769,2244193,2244225,2244257,2244290,2244353,2244385,2244417,2244449,2218273,2244481,2244514,2244577,2244609]),new Uint32Array([2125730,2125699,2125795,2125891,2125987,2154114,2154178,2154242,2154306,2154370,2154434,2154498,2126082,2126178,2126274,2126083]),new Uint32Array([2237665,2237697,2237697,2237697,2237730,2237793,2237825,2237857,2237890,2237953,2237985,2238017,2238049,2238081,2238113,2238145]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2150146,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,0,23068672,23068672,0,0,23068672,23068672,23068672,0,0]),new Uint32Array([2214369,2238593,2238625,2238657,2238689,2238721,2238753,2238785,2238817,2238850,2238913,2238945,2238977,2235457,2239009,2239041]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([2252066,2252130,2252193,2252225,2252257,2252290,2252353,2252385,2252417,2252449,2252481,2252513,2252545,2252578,2252641,2252673]),new Uint32Array([2197697,2114113,2114209,2197729,2197761,2114305,2197793,2114401,2114497,2197825,2114593,2114689,2114785,2114881,2114977,2197857]),new Uint32Array([2224866,2224930,2224994,2225058,2225122,2225186,2225250,2225314,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2219490,2219554,2219617,2219649,2219681,2219714,2219778,2219842,2219905,2219937,0,0,0,0,0,0]),new Uint32Array([6291456,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456]),new Uint32Array([2113345,2113441,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289]),new Uint32Array([2174081,2174113,2174145,2174177,2149057,2233089,2173697,2173761,2173793,2174113,2173985,2173953,2148481,2173601,2173633,2173665]),new Uint32Array([2220161,2220161,2220193,2220193,2220193,2220193,2220225,2220225,2220225,2220225,2220257,2220257,2220257,2220257,2220289,2220289]),new Uint32Array([2192673,2192705,2192737,2192769,2192801,2192833,2192865,2118049,2192897,2117473,2117761,2192929,2192961,2192993,2193025,2193057]),new Uint32Array([2179297,6291456,2179329,6291456,2179361,6291456,2179393,6291456,2179425,6291456,2179457,6291456,2179489,6291456,2179521,6291456]),new Uint32Array([6291456,6291456,6291456,23068672,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([2235745,2235777,2193633,2235809,2235841,2235873,2235905,2235937,2235969,2116513,2116705,2236001,2200513,2199905,2200545,2236033]),new Uint32Array([2113153,2108481,2113345,2113441,2232993,2233025,0,0,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761]),new Uint32Array([2170593,6291456,2170625,6291456,2170657,6291456,2170689,2170721,6291456,2170753,6291456,6291456,2170785,6291456,2170817,2170849]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2166786,2166850,0,0,0,0]),new Uint32Array([23068672,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([2100833,2100737,2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209,10575617,2187041,10502177,10489601,10489697,0]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2134562,2132162,2132834,2136866,2136482,2164610,2164674,2164738,2164802,2132802,2132706,2164866,2132898,2164930,2164994,2165058]),new Uint32Array([6291456,6291456,2098337,2101441,10531458,2153473,6291456,6291456,10531522,2100737,2108193,6291456,2106499,2106595,2106691,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,0]),new Uint32Array([2233122,2233186,2233250,2233314,2233378,2233442,2233506,2233570,2233634,2233698,2233762,2233826,2233890,2233954,2234018,2234082]),new Uint32Array([23068672,6291456,23068672,23068672,23068672,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2205217,2205249,2205281,2205313,2205345,2205377,2205409,2205441,2205473,2205505,2205537,2205569,2205601,2205633,2205665,2205697]),new Uint32Array([6291456,0,6291456,0,0,0,6291456,6291456,6291456,6291456,0,0,23068672,6291456,23068672,23068672]),new Uint32Array([2173601,2173761,2174081,2173569,2174241,2174113,2173953,6291456,2174305,6291456,2174337,6291456,2174369,6291456,2174401,6291456]),new Uint32Array([6291456,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([2152450,2152514,2099653,2104452,2099813,2122243,2099973,2152578,2122339,2122435,2122531,2122627,2122723,2104580,2122819,2152642]),new Uint32Array([2236385,2236417,2236449,2236482,2236545,2215425,2236577,2236609,2236641,2236673,2215457,2236705,2236737,2236770,2215489,2236833]),new Uint32Array([2163394,2159746,2163458,2131362,2163522,2160130,2163778,2132226,2163842,2132898,2163906,2161410,2138658,2097666,2136162,2163650]),new Uint32Array([2218721,2246913,2246946,2216385,2247010,2247074,2215009,2247137,2247169,2216481,2247201,2247233,2247266,2247330,2247330,0]),new Uint32Array([2129730,2129762,2129858,2129731,2129827,2156482,2156482,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,0,0,0,0,6291456,0,0]),new Uint32Array([2203969,2204001,2181377,2204033,2204065,6291456,2204097,6291456,0,0,0,0,0,0,0,0]),new Uint32Array([2169473,6291456,2169505,6291456,2169537,6291456,2169569,6291456,2169601,6291456,2169633,6291456,2169665,6291456,2169697,6291456]),new Uint32Array([2141542,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2220801,2220801,2220801,2220801,2220833,2220833,2220865,2220865,2220865,2220865,2220897,2220897,2220897,2220897,2139873,2139873]),new Uint32Array([0,0,0,0,0,23068672,23068672,0,0,0,0,0,0,0,6291456,0]),new Uint32Array([2214849,2218433,2218465,2218497,2218529,2218561,2214881,2218593,2218625,2218657,2218689,2218721,2218753,2216545,2218785,2218817]),new Uint32Array([23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0,6291456]),new Uint32Array([2136482,2164610,2164674,2164738,2164802,2132802,2132706,2164866,2132898,2164930,2164994,2165058,2165122,2132802,2132706,2164866]),new Uint32Array([2207649,2207681,2207713,2207745,2207777,2207809,2207841,2207873,2207905,2207937,2207969,2208001,2208033,2208065,2208097,2208129]),new Uint32Array([2123683,2105092,2152706,2123779,2105220,2152770,2100453,2098755,2123906,2124002,2124098,2124194,2124290,2124386,2124482,2124578]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,6291456,0,0,0,0,0,0,0,10485857]),new Uint32Array([6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([10508163,10508259,10508355,10508451,2200129,2200161,2192737,2200193,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2203553,6291456,2203585,6291456,6291456,6291456,2203617,6291456,2203649,6291456,2203681,6291456,2203713,6291456,2203745,6291456]),new Uint32Array([18884449,18884065,23068672,18884417,18884034,18921185,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,18874368]),new Uint32Array([2247393,2247426,2247489,2247521,2247553,2247586,2247649,2247681,2247713,2247745,2247777,2247810,2247873,2247905,2247937,2247969]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,23068672]),new Uint32Array([2134145,2097153,2134241,0,2132705,2130977,2160065,2131297,0,2133089,2160577,2133857,2235297,0,2235329,0]),new Uint32Array([2182593,6291456,2182625,6291456,2182657,6291456,2182689,6291456,2182721,6291456,2182753,6291456,2182785,6291456,2182817,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2102402,2102403,6291456,2110050]),new Uint32Array([2149890,2108323,2149954,6291456,2113441,6291456,2149057,6291456,2113441,6291456,2105473,2167265,2111137,2105505,6291456,2108353]),new Uint32Array([2219105,2219137,2195233,2251554,2251617,2251649,2251681,2251713,2251746,2251810,2251873,2251905,2251937,2251970,2252033,2219169]),new Uint32Array([2203009,6291456,2203041,6291456,2203073,6291456,2203105,6291456,2203137,6291456,2203169,6291456,2203201,6291456,2203233,6291456]),new Uint32Array([2128195,2128291,2128387,2128483,2128579,2128675,2128771,2128867,2128963,2129059,2129155,2129251,2129347,2129443,2129539,2129635]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2140964,2141156,2140966,2141158,2141350]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2225378,2225442,2225506,2225570,2225634,2225698,2225762,2225826,2225890,2225954,2226018,2226082,2226146,2226210,2226274,2226338]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241,2108353,2108417]),new Uint32Array([2108353,2108417,0,2105601,2108193,2157121,2157313,2157377,2157441,2100897,6291456,2108419,2173953,2173633,2173633,2173953]),new Uint32Array([2111713,2173121,2111905,2098177,2173153,2173185,2173217,2113153,2113345,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,2190753]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,2197249,6291456,2117377,2197281,2197313,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,0,0,0,0,0,0,23068672,0,0,0,0,0,6291456,6291456,6291456]),new Uint32Array([2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209,2100833,2100737,2098337,2101441,2101569,2101697,2101825,2101953]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0]),new Uint32Array([0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,23068672,23068672,23068672]),new Uint32Array([2173281,6291456,2173313,6291456,2173345,6291456,2173377,6291456,0,0,10532546,6291456,6291456,6291456,10562017,2173441]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,0,0]),new Uint32Array([23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2159426,2159490,2159554,2159362,2159618,2159682,2139522,2136450,2159746,2159810,2159874,2130978,2131074,2131266,2131362,2159938]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2203233,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2203265,6291456,2203297,6291456,2203329,2203361,6291456]),new Uint32Array([6291456,6291456,2148418,2148482,2148546,0,6291456,2148610,2186529,2186561,2148417,2148545,2148482,10495778,2143969,10495778]),new Uint32Array([2134146,2139426,2160962,2134242,2161218,2161282,2161346,2161410,2138658,2134722,2134434,2134818,2097666,2097346,2097698,2105986]),new Uint32Array([2198881,2198913,2198945,2198977,2199009,2199041,2199073,2199105,2199137,2199169,2199201,2199233,2199265,2199297,2199329,2199361]),new Uint32Array([0,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456]),new Uint32Array([10610561,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193]),new Uint32Array([2183873,6291456,2183905,6291456,2183937,6291456,2183969,6291456,2184001,6291456,2184033,6291456,2184065,6291456,2184097,6291456]),new Uint32Array([2244642,2244706,2244769,2244801,2218305,2244833,2244865,2244897,2244929,2244961,2244993,2245026,2245089,2245122,2245185,0]),new Uint32Array([6291456,6291456,2116513,2116609,2116705,2116801,2199873,2199905,2199937,2199969,2190913,2200001,2200033,2200065,2200097,2191009]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,2180673,2180705,2180737,2180769,2180801,2180833,0,0]),new Uint32Array([2098081,2099521,2099105,2120705,2098369,2120801,2103361,2097985,2098433,2121377,2121473,2099169,2099873,2098401,2099393,2152609]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2150402]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,2145666,2145730,6291456,6291456]),new Uint32Array([2173921,2173953,2173985,2173761,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233057,2148481,2173601,2173633,2173665]),new Uint32Array([2187073,6291456,6291456,6291456,6291456,2098241,2098241,2108353,2100897,2111905,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2102404,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,2100612,6291456,6291456,6291456,6291456,6291456,6291456,6291456,10485857]),new Uint32Array([2149057,2233057,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889]),new Uint32Array([2217697,2217729,2217761,2217793,2217825,2217857,2217889,2217921,2217953,2215873,2217985,2215905,2218017,2218049,2218081,2218113]),new Uint32Array([2211233,2218849,2216673,2218881,2218913,2218945,2218977,2219009,2216833,2219041,2215137,2219073,2216865,2209505,2219105,2216897]),new Uint32Array([2240097,2240129,2240161,2240193,2240225,2240257,2240289,2240321,2240353,2240386,2240449,2240481,2240513,2240545,2207905,2240578]),new Uint32Array([6291456,6291456,2202273,6291456,2202305,6291456,2202337,6291456,2202369,6291456,2202401,6291456,2202433,6291456,2202465,6291456]),new Uint32Array([0,23068672,23068672,18923394,23068672,18923458,18923522,18884099,18923586,18884195,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2201121,6291456,2201153,6291456,2201185,6291456,2201217,6291456,2201249,6291456,2201281,6291456,2201313,6291456,2201345,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456]),new Uint32Array([2211041,2211073,2211105,2211137,2211169,2211201,2211233,2211265,2211297,2211329,2211361,2211393,2211425,2211457,2211489,2211521]),new Uint32Array([2181825,6291456,2181857,6291456,2181889,6291456,2181921,6291456,2181953,6291456,2181985,6291456,2182017,6291456,2182049,6291456]),new Uint32Array([2162337,2097633,2097633,2097633,2097633,2132705,2132705,2132705,2132705,2097153,2097153,2097153,2097153,2133089,2133089,2133089]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,2148545,6291456,2173473,6291456,2148865,6291456,2173505,6291456,2173537,6291456,2173569,6291456,2149121,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,0,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0]),new Uint32Array([2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889,2173921,2173953,2173985,2174017,2174017,2174049,2174081,2174113]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2207137,2207169,2207201,2207233,2207265,2207297,2207329,2207361,2207393,2207425,2207457,2207489,2207521,2207553,2207585,2207617]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,6291456,6291456,0,23068672,23068672,0,0,0,0,0,0]),new Uint32Array([2198401,2198433,2198465,2198497,0,2198529,2198561,2198593,2198625,2198657,2198689,2198721,2198753,2198785,2198817,2198849]),new Uint32Array([2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,0,0]),new Uint32Array([2216385,2118721,2216417,2216449,2216481,2216513,2216545,2211233,2216577,2216609,2216641,2216673,2216705,2216737,2216737,2216769]),new Uint32Array([2216801,2216833,2216865,2216897,2216929,2216961,2216993,2215169,2217025,2217057,2217089,2217121,2217154,2217217,0,0]),new Uint32Array([2210593,2191809,2210625,2210657,2210689,2210721,2210753,2210785,2210817,2210849,2191297,2210881,2210913,2210945,2210977,2211009]),new Uint32Array([0,0,2105825,0,0,2111905,2105473,0,0,2112289,2108193,2112481,2112577,0,2098305,2108321]),new Uint32Array([0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,2097153,2134241,0,2132705,0,0,2131297,0,2133089,0,2133857,0,2220769,0,2235361]),new Uint32Array([14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,6291456,6291456,14680064]),new Uint32Array([23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0]),new Uint32Array([2171873,6291456,2171905,6291456,2171937,6291456,2171969,6291456,2172001,6291456,2172033,6291456,2172065,6291456,2172097,6291456]),new Uint32Array([2220929,2220929,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2133857,2134145,2134145,2134145,2134145,2134241,2134241,2134241,2134241,2105889,2105889,2105889,2105889,2097185,2097185,2097185]),new Uint32Array([2173697,2173761,2173793,2174113,2173985,2173953,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,10499619,10499715,10499811,10499907]),new Uint32Array([0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,0,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,0,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,2144322,2144386,2144450,2144514,2144578,2144642,2144706,2144770]),new Uint32Array([23068672,23068672,23068672,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456]),new Uint32Array([2113153,2108481,2113345,2113441,2098209,2111137,0,2098241,2108353,2108417,2105825,0,0,2111905,2105473,2105569]),new Uint32Array([2236321,2236353,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2152194,2121283,2103684,2103812,2097986,2098533,2097990,2098693,2098595,2098853,2099013,2103940,2121379,2121475,2121571,2104068]),new Uint32Array([2206241,2206273,2206305,2206337,2206369,2206401,2206433,2206465,2206497,2206529,2206561,2206593,2206625,2206657,2206689,2206721]),new Uint32Array([6291456,6291456,6291456,6291456,16777216,16777216,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,23068672,23068672,10538818,10538882,6291456,6291456,2150338]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2214369,2214401,2214433,2214465,2214497,2214529,2214561,2214593,2194977,2214625,2195073,2214657,2214689,2214721,6291456,6291456]),new Uint32Array([2097152,2097152,2097152,2097152,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2182081,6291456,2182113,6291456,2182145,6291456,2182177,6291456,2182209,6291456,2182241,6291456,2182273,6291456,2182305,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2146881,2146945,2147009,2147073,2147137,2147201,2147265,2147329]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,23068672,23068672]),new Uint32Array([0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2122915,2123011,2123107,2104708,2123203,2123299,2123395,2100133,2104836,2100290,2100293,2104962,2104964,2098052,2123491,2123587]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456]),new Uint32Array([6291456,2171169,6291456,2171201,6291456,2171233,6291456,2171265,6291456,2171297,6291456,2171329,6291456,6291456,2171361,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,2148994,2149058,2149122,0,6291456,2149186,2186945,2173537,2148993,2149121,2149058,10531458,10496066,0]),new Uint32Array([2195009,2195041,2195073,2195105,2195137,2195169,2195201,2195233,2195265,2195297,2195329,2195361,2195393,2195425,2195457,2195489]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,0,0,6291456,6291456]),new Uint32Array([2182849,6291456,2182881,6291456,2182913,6291456,2182945,6291456,2182977,6291456,2183009,6291456,2183041,6291456,2183073,6291456]),new Uint32Array([2211553,2210081,2211585,2211617,2211649,2211681,2211713,2211745,2211777,2211809,2209569,2211841,2211873,2211905,2211937,2211969]),new Uint32Array([2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2166594,2127298,2166658,2142978,2141827,2166722]),new Uint32Array([2173985,2173761,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233057,2148481,2173601,2173633,2173665,2173697,2173729]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,2185761,2185793,2185825,2185857,2185889,2185921,0,0]),new Uint32Array([6291456,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889,2173921]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,6291456]),new Uint32Array([0,0,0,2220961,2220961,2220961,2220961,2144193,2144193,2159201,2159201,2159265,2159265,2144194,2220993,2220993]),new Uint32Array([2192641,2235393,2235425,2152257,2116609,2235457,2235489,2200065,2235521,2235553,2235585,2212449,2235617,2235649,2235681,2235713]),new Uint32Array([2194049,2194081,2194113,2194145,2194177,2194209,2194241,2194273,2194305,2194337,2194369,2194401,2194433,2194465,2194497,2194529]),new Uint32Array([2196673,2208641,2208673,2208705,2208737,2208769,2208801,2208833,2208865,2208897,2208929,2208961,2208993,2209025,2209057,2209089]),new Uint32Array([2191681,2191713,2191745,2191777,2153281,2191809,2191841,2191873,2191905,2191937,2191969,2192001,2192033,2192065,2192097,2192129]),new Uint32Array([2230946,2231010,2231074,2231138,2231202,2231266,2231330,2231394,2231458,2231522,2231586,2231650,2231714,2231778,2231842,2231906]),new Uint32Array([14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2185953,2185985,2186017,2186049,2186081,2186113,2186145,2186177]),new Uint32Array([2139811,2139907,2097284,2105860,2105988,2106116,2106244,2097444,2097604,2097155,10485778,10486344,2106372,6291456,0,0]),new Uint32Array([2110051,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2172385,6291456,2172417,6291456,2172449,6291456,2172481,6291456,2172513,6291456,2172545,6291456,2172577,6291456,2172609,6291456]),new Uint32Array([0,0,23068672,23068672,6291456,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2249345,2249377,2249409,2249441,2249473,2249505,2249537,2249570,2210209,2249633,2249665,2249697,2249729,2249761,2249793,2216769]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,6291456,6291456,6291456,6291456]),new Uint32Array([2187169,2187201,2187233,2187265,2187297,2187329,2187361,2187393,2187425,2187457,2187489,2187521,2187553,2187585,2187617,2187649]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,0,6291456,6291456,0,0,0,6291456,6291456,6291456,0,0,0,6291456,6291456]),new Uint32Array([2182337,6291456,2182369,6291456,2182401,6291456,2182433,6291456,2182465,6291456,2182497,6291456,2182529,6291456,2182561,6291456]),new Uint32Array([2138179,2138275,2138371,2138467,2134243,2134435,2138563,2138659,2138755,2138851,2138947,2139043,2138947,2138755,2139139,2139235]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0]),new Uint32Array([0,0,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2250498,2250562,2250625,2250657,2208321,2250689,2250721,2250753,2250785,2250817,2250849,2218945,2250881,2250913,2250945,0]),new Uint32Array([2170369,2105569,2098305,2108481,2173249,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456]),new Uint32Array([2100897,2111905,2105473,2105569,2105601,0,2108193,0,0,0,2098305,2108321,2108289,2100865,2113153,2108481]),new Uint32Array([2100897,2100897,2105569,2105569,6291456,2112289,2149826,6291456,6291456,2112481,2112577,2098177,2098177,2098177,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,6291456,6291456,6291456]),new Uint32Array([6291456,2169953,2169985,6291456,2170017,6291456,2170049,2170081,6291456,2170113,2170145,2170177,6291456,6291456,2170209,2170241]),new Uint32Array([6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2220641,2220641,2220673,2220673,2220673,2220673,2220705,2220705,2220705,2220705,2220737,2220737,2220737,2220737,2220769,2220769]),new Uint32Array([2127650,2127746,2127842,2127938,2128034,2128130,2128226,2128322,2128418,2127523,2127619,2127715,2127811,2127907,2128003,2128099]),new Uint32Array([2143969,2173793,2173825,2153473,2173857,2173889,2173921,2173953,2173985,2173761,2174017,2174049,2174081,2174113,2174145,2174177]),new Uint32Array([0,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2204705,2204737,2204769,2204801,2204833,2204865,2204897,2204929,2204961,2204993,2205025,2205057,2205089,2205121,2205153,2205185]),new Uint32Array([2176385,6291456,2176417,6291456,2176449,6291456,2176481,6291456,2176513,6291456,2176545,6291456,2176577,6291456,2176609,6291456]),new Uint32Array([2195521,2195553,2195585,2195617,2195649,2195681,2117857,2195713,2195745,2195777,2195809,2195841,2195873,2195905,2195937,2195969]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456]),new Uint32Array([2173921,2173953,2173985,2174017,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233089,2173697,2173761,2173793,2174113]),new Uint32Array([2131586,2132450,2135970,2135778,2161602,2136162,2163650,2161794,2135586,2163714,2137186,2131810,2160290,2135170,2097506,2159554]),new Uint32Array([2134145,2097153,2134241,2105953,2132705,2130977,2160065,2131297,2162049,2133089,2160577,2133857,0,0,0,0]),new Uint32Array([2116513,2116609,2116705,2116801,2116897,2116993,2117089,2117185,2117281,2117377,2117473,2117569,2117665,2117761,2117857,2117953]),new Uint32Array([2100737,2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209,2100802,2101154,2101282,2101410,2101538,2101666,2101794]),new Uint32Array([2100289,2098657,2098049,2200737,2123489,2123681,2200769,2098625,2100321,2098145,2100449,2098017,2098753,2098977,2150241,2150305]),new Uint32Array([6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,2109955,6291456,6291456,0,0,0,0]),new Uint32Array([18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,6291456,0,0]),new Uint32Array([2130979,2131075,2131075,2131171,2131267,2131363,2131459,2131555,2131651,2131651,2131747,2131843,2131939,2132035,2132131,2132227]),new Uint32Array([0,2177793,6291456,2177825,6291456,2177857,6291456,2177889,6291456,2177921,6291456,2177953,6291456,2177985,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2113345,0,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289]),new Uint32Array([2136643,2136739,2136835,2136931,2137027,2137123,2137219,2137315,2137411,2137507,2137603,2137699,2137795,2137891,2137987,2138083]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([2174433,6291456,2174465,6291456,2174497,6291456,2174529,6291456,2174561,6291456,2174593,6291456,2174625,6291456,2174657,6291456]),new Uint32Array([0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441]),new Uint32Array([10496547,10496643,2105505,2149698,6291456,10496739,10496835,2170273,6291456,2149762,2105825,2111713,2111713,2111713,2111713,2168673]),new Uint32Array([6291456,2143490,2143490,2143490,2171649,6291456,2171681,2171713,2171745,6291456,2171777,6291456,2171809,6291456,2171841,6291456]),new Uint32Array([2159106,2159106,2159170,2159170,2159234,2159234,2159298,2159298,2159298,2159362,2159362,2159362,2106401,2106401,2106401,2106401]),new Uint32Array([2105601,2112289,2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137]),new Uint32Array([2108417,2181217,2181249,2181281,2170433,2170401,2181313,2181345,2181377,2181409,2181441,2181473,2181505,2181537,2170529,2181569]),new Uint32Array([2218433,2245761,2245793,2245825,2245857,2245890,2245953,2245986,2209665,2246050,2246113,2246146,2246210,2246274,2246337,2246369]),new Uint32Array([2230754,2230818,2230882,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,0,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2184129,6291456,2184161,6291456,2184193,6291456,6291456,6291456,6291456,6291456,2146818,2183361,6291456,6291456,2142978,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2135170,2097506,2130691,2130787,2130883,2163970,2164034,2164098,2164162,2164226,2164290,2164354,2164418,2164482,2164546,2133122]),new Uint32Array([2108515,2108611,2100740,2108707,2108803,2108899,2108995,2109091,2109187,2109283,2109379,2109475,2109571,2109667,2109763,2100738]),new Uint32Array([2102788,2102916,2103044,2120515,2103172,2120611,2120707,2098373,2103300,2120803,2120899,2120995,2103428,2103556,2121091,2121187]),new Uint32Array([2158082,2158146,0,2158210,2158274,0,2158338,2158402,2158466,2129922,2158530,2158594,2158658,2158722,2158786,2158850]),new Uint32Array([10499619,10499715,10499811,10499907,10500003,10500099,10500195,10500291,10500387,10500483,10500579,10500675,10500771,10500867,10500963,10501059]),new Uint32Array([2239585,2239618,2239681,2239713,0,2191969,2239745,2239777,2192033,2239809,2239841,2239874,2239937,2239970,2240033,2240065]),new Uint32Array([2252705,2252738,2252801,2252833,2252865,2252897,2252930,2252994,2253057,2253089,2253121,2253154,2253217,2253250,2219361,2219361]),new Uint32Array([2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,10538050,10538114,10538178,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2226402,2226466,2226530,2226594,2226658,2226722,2226786,2226850,2226914,2226978,2227042,2227106,2227170,2227234,2227298,2227362]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,2144066,2144130,2144194,2144258,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,6291456,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0]),new Uint32Array([2124674,2124770,2123875,2123971,2124067,2124163,2124259,2124355,2124451,2124547,2124643,2124739,2124835,2124931,2125027,2125123]),new Uint32Array([2168065,6291456,2168097,6291456,2168129,6291456,2168161,6291456,2168193,6291456,2168225,6291456,2168257,6291456,2168289,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0]),new Uint32Array([23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,2100610,2100611,6291456,2107842,2107843,6291456,6291456,6291456,6291456,10537922,6291456,10537986,6291456]),new Uint32Array([2174849,2174881,2174913,2174945,2174977,2175009,2175041,2175073,2175105,2175137,2175169,2175201,2175233,2175265,2175297,2175329]),new Uint32Array([2154562,2154626,2154690,2154754,2141858,2154818,2154882,2127298,2154946,2127298,2155010,2155074,2155138,2155202,2155266,2155202]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,23068672,0]),new Uint32Array([2200641,2150786,2150850,2150914,2150978,2151042,2106562,2151106,2150562,2151170,2151234,2151298,2151362,2151426,2151490,2151554]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,6291456,6291456]),new Uint32Array([2220289,2220289,2220321,2220321,2220321,2220321,2220353,2220353,2220353,2220353,2220385,2220385,2220385,2220385,2220417,2220417]),new Uint32Array([2155330,2155394,0,2155458,2155522,2155586,2105732,0,2155650,2155714,2155778,2125314,2155842,2155906,2126274,2155970]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,6291456,6291456,23068672,23068672,6291456,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0]),new Uint32Array([2097729,2106017,2106017,2106017,2106017,2131297,2131297,2131297,2131297,2106081,2106081,2162049,2162049,2105953,2105953,2162337]),new Uint32Array([2097185,2097697,2097697,2097697,2097697,2135777,2135777,2135777,2135777,2097377,2097377,2097377,2097377,2097601,2097601,2097217]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23068672]),new Uint32Array([2139331,2139427,2139523,2139043,2133571,2132611,2139619,2139715,0,0,0,0,0,0,0,0]),new Uint32Array([2174113,2174145,2100897,2098177,2108289,2100865,2173601,2173633,2173985,2174113,2174145,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,23068672,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,18923778,23068672,23068672,23068672,23068672,18923842,23068672,23068672,23068672,23068672,18923906,23068672,23068672,23068672]),new Uint32Array([2134145,2097153,2134241,0,2132705,2130977,2160065,2131297,0,2133089,0,2133857,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2177537,6291456,2177569,6291456,2177601,6291456,2177633,6291456,2177665,6291456,2177697,6291456,2177729,6291456,2177761,6291456]),new Uint32Array([2212481,2212513,2212545,2212577,2197121,2212609,2212641,2212673,2212705,2212737,2212769,2212801,2212833,2212865,2212897,2212929]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,6291456,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([2098241,2108353,2170209,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,6291456,2108193,2172417,2112481,2098177]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456])],t=new Uint16Array([616,616,565,147,161,411,330,2,131,131,328,454,241,408,86,86,696,113,285,350,325,301,473,214,639,232,447,64,369,598,124,672,567,223,621,154,107,86,86,86,86,86,86,505,86,68,634,86,218,218,218,218,486,218,218,513,188,608,216,86,217,463,668,85,700,360,184,86,86,86,647,402,153,10,346,718,662,260,145,298,117,1,443,342,138,54,563,86,240,572,218,70,387,86,118,460,641,602,86,86,306,218,86,692,86,86,86,86,86,162,707,86,458,26,86,218,638,86,86,86,86,86,65,449,86,86,306,183,86,58,391,667,86,157,131,131,131,131,86,433,131,406,31,218,247,86,86,693,218,581,351,86,438,295,69,462,45,126,173,650,14,295,69,97,168,187,641,78,523,390,69,108,287,664,173,219,83,295,69,108,431,426,173,694,412,115,628,52,257,398,641,118,501,121,69,579,151,423,173,620,464,121,69,382,151,476,173,27,53,121,86,594,578,226,173,86,632,130,86,96,228,268,641,622,563,86,86,21,148,650,131,131,321,43,144,343,381,531,131,131,178,20,86,399,156,375,164,541,30,60,715,198,92,118,131,131,86,86,306,407,86,280,457,196,488,358,131,131,244,86,86,143,86,86,86,86,86,667,563,86,86,86,86,86,86,86,86,86,86,86,86,86,336,363,86,86,336,86,86,380,678,67,86,86,86,678,86,86,86,512,86,307,86,708,86,86,86,86,86,528,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,563,307,86,86,86,86,86,104,450,337,86,720,86,32,450,397,86,86,86,587,218,558,708,708,293,708,86,86,86,86,86,694,205,86,8,86,86,86,86,549,86,667,697,697,679,86,458,460,86,86,650,86,708,543,86,86,86,245,86,86,86,140,218,127,708,708,458,197,131,131,131,131,500,86,86,483,251,86,306,510,515,86,722,86,86,86,65,201,86,86,483,580,470,86,86,86,368,131,131,131,694,114,110,555,86,86,123,721,163,142,713,418,86,317,675,209,218,218,218,371,545,592,629,490,603,199,46,320,525,680,310,279,388,111,42,252,593,607,235,617,410,377,50,548,135,356,17,520,189,116,392,600,349,332,482,699,690,535,119,106,451,71,152,667,131,218,218,265,671,637,492,504,533,683,269,269,658,86,86,86,86,86,86,86,86,86,491,619,86,86,6,86,86,86,86,86,86,86,86,86,86,86,229,86,86,86,86,86,86,86,86,86,86,86,86,667,86,86,171,131,118,131,656,206,234,571,89,334,670,246,311,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,534,86,86,86,86,86,86,82,86,86,86,86,86,430,86,86,86,86,86,86,86,86,86,599,86,324,86,470,69,640,264,131,626,101,174,86,86,667,233,105,73,374,394,221,204,84,28,326,86,86,471,86,86,86,109,573,86,171,200,200,200,200,218,218,86,86,86,86,460,131,131,131,86,506,86,86,86,86,86,220,404,34,614,47,442,305,25,612,338,601,648,7,344,255,131,131,51,86,312,507,563,86,86,86,86,588,86,86,86,86,86,530,511,86,458,3,435,384,556,522,230,527,86,118,86,86,717,86,137,273,79,181,484,23,93,112,655,249,417,703,370,87,98,313,684,585,155,465,596,481,695,18,416,428,61,701,706,282,643,495,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,549,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,549,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,307,86,86,86,171,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,650,131,422,542,420,263,24,172,86,86,86,86,86,566,86,86,132,540,395,353,494,519,19,485,284,472,131,131,131,16,714,86,211,708,86,86,86,694,698,86,86,483,704,708,218,272,86,86,120,86,159,478,86,307,247,86,86,663,597,459,627,667,86,86,277,455,39,302,86,250,86,86,86,271,99,452,306,281,329,400,200,86,86,362,549,352,646,461,323,586,86,86,4,708,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,717,86,518,86,86,650,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,125,554,480,300,613,72,333,288,561,544,604,48,719,91,169,176,590,224,76,191,29,559,560,231,537,166,477,538,256,437,131,131,469,167,40,0,685,266,441,705,239,642,475,568,640,610,299,673,517,318,385,22,202,180,179,359,424,215,90,66,521,653,467,682,453,409,479,88,131,661,35,303,15,262,666,630,712,131,131,618,659,175,218,195,347,193,227,261,150,165,709,546,294,569,710,270,413,376,524,55,242,38,419,529,170,657,3,304,122,379,278,131,651,86,67,576,458,458,131,131,86,86,86,86,86,86,86,118,309,86,86,547,86,86,86,86,667,650,664,131,131,86,86,56,131,131,131,131,131,131,131,131,86,307,86,86,86,664,238,650,86,86,717,86,118,86,86,315,86,59,86,86,574,549,131,131,340,57,436,86,86,86,86,86,86,458,708,499,691,62,86,650,86,86,694,86,86,86,319,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,171,86,549,694,131,131,131,131,131,131,131,131,131,77,86,86,139,86,502,86,86,86,667,595,131,131,131,86,12,86,13,86,609,131,131,131,131,86,86,86,625,86,669,86,86,182,129,86,5,694,104,86,86,86,86,131,131,86,86,386,171,86,86,86,345,86,324,86,589,86,213,36,131,131,131,131,131,86,86,86,86,104,131,131,131,141,290,80,677,86,86,86,267,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,667,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,515,86,86,33,136,669,86,711,515,86,86,550,640,86,104,708,515,86,159,372,717,86,86,444,515,86,86,663,37,86,563,460,86,390,624,702,131,131,131,131,389,59,708,86,86,341,208,708,635,295,69,108,431,508,100,190,131,131,131,131,131,131,131,131,86,86,86,649,516,660,131,131,86,86,86,218,631,708,131,131,131,131,131,131,131,131,131,131,86,86,341,575,238,514,131,131,86,86,86,218,291,708,307,131,86,86,306,367,708,131,131,131,86,378,697,86,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,615,253,86,86,86,292,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,104,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,69,86,341,553,549,86,307,86,86,645,275,455,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,708,131,131,131,131,131,131,86,86,86,86,86,86,667,460,86,86,86,86,86,86,86,86,86,86,86,86,717,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,667,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,171,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,104,86,667,459,131,131,131,131,131,131,86,458,225,86,86,86,516,549,11,390,405,86,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,460,44,218,197,711,515,131,131,131,131,664,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,307,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,308,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,640,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,118,307,104,286,591,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,549,86,86,681,86,86,75,185,314,582,86,358,496,474,86,104,131,86,86,86,86,146,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,171,86,640,131,131,131,131,131,131,131,131,246,503,689,339,674,81,258,415,439,128,562,366,414,246,503,689,583,222,557,316,636,665,186,355,95,670,246,503,689,339,674,557,258,415,439,186,355,95,670,246,503,689,446,644,536,652,331,532,335,440,274,421,297,570,74,425,364,425,606,552,403,509,134,365,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,218,218,218,498,218,218,577,627,551,497,572,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,553,354,236,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,296,455,131,131,456,243,103,86,41,459,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,9,276,158,716,393,564,383,489,401,654,210,654,131,131,131,640,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,650,86,86,86,86,86,86,717,667,563,563,563,86,549,102,686,133,246,605,86,448,86,86,207,307,131,131,131,641,86,177,611,445,373,194,584,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,308,307,171,86,86,86,86,86,86,86,717,86,86,86,86,86,460,131,131,650,86,86,86,694,708,86,86,694,86,458,131,131,131,131,131,131,667,694,289,650,667,131,131,86,640,131,131,664,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,171,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,460,86,86,86,86,86,86,86,86,86,86,86,86,86,458,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,640,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,466,203,149,429,94,432,160,687,539,63,237,283,192,248,348,259,427,526,396,676,254,468,487,212,327,623,49,633,322,493,434,688,357,361,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131]),{mapStr:"صلى الله عليه وسلمجل جلالهキロメートルrad∕s2エスクードキログラムキロワットグラムトンクルゼイロサンチームパーセントピアストルファラッドブッシェルヘクタールマンションミリバールレントゲン′′′′1⁄10viii(10)(11)(12)(13)(14)(15)(16)(17)(18)(19)(20)∫∫∫∫(오전)(오후)アパートアルファアンペアイニングエーカーカラットカロリーキュリーギルダークローネサイクルシリングバーレルフィートポイントマイクロミクロンメガトンリットルルーブル株式会社kcalm∕s2c∕kgاكبرمحمدصلعمرسولریال1⁄41⁄23⁄4 ̈́ྲཱྀླཱྀ ̈͂ ̓̀ ̓́ ̓͂ ̔̀ ̔́ ̔͂ ̈̀‵‵‵a/ca/sc/oc/utelfax1⁄71⁄91⁄32⁄31⁄52⁄53⁄54⁄51⁄65⁄61⁄83⁄85⁄87⁄8xii0⁄3∮∮∮(1)(2)(3)(4)(5)(6)(7)(8)(9)(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)(m)(n)(o)(p)(q)(r)(s)(t)(u)(v)(w)(x)(y)(z)::====(ᄀ)(ᄂ)(ᄃ)(ᄅ)(ᄆ)(ᄇ)(ᄉ)(ᄋ)(ᄌ)(ᄎ)(ᄏ)(ᄐ)(ᄑ)(ᄒ)(가)(나)(다)(라)(마)(바)(사)(아)(자)(차)(카)(타)(파)(하)(주)(一)(二)(三)(四)(五)(六)(七)(八)(九)(十)(月)(火)(水)(木)(金)(土)(日)(株)(有)(社)(名)(特)(財)(祝)(労)(代)(呼)(学)(監)(企)(資)(協)(祭)(休)(自)(至)pte10月11月12月ergltdアールインチウォンオンスオームカイリガロンガンマギニーケースコルナコーポセンチダースノットハイツパーツピクルフランペニヒヘルツペンスページベータボルトポンドホールホーンマイルマッハマルクヤードヤールユアンルピー10点11点12点13点14点15点16点17点18点19点20点21点22点23点24点hpabardm2dm3khzmhzghzthzmm2cm2km2mm3cm3km3kpampagpalogmilmolppmv∕ma∕m10日11日12日13日14日15日16日17日18日19日20日21日22日23日24日25日26日27日28日29日30日31日galffifflשּׁשּׂ ٌّ ٍّ َّ ُّ ِّ ّٰـَّـُّـِّتجمتحجتحمتخمتمجتمحتمخجمححميحمىسحجسجحسجىسمحسمجسممصححصممشحمشجيشمخشممضحىضخمطمحطممطميعجمعممعمىغممغميغمىفخمقمحقمملحملحيلحىلججلخملمحمحجمحيمجحمجممخممجخهمجهممنحمنحىنجمنجىنمينمىيممبخيتجيتجىتخيتخىتميتمىجميجحىجمىسخىصحيشحيضحيلجيلمييحييجييميمميقمينحيعميكمينجحمخيلجمكممجحيحجيمجيفميبحيسخينجيصلےقلے𝅘𝅥𝅮𝅘𝅥𝅯𝅘𝅥𝅰𝅘𝅥𝅱𝅘𝅥𝅲𝆹𝅥𝅮𝆺𝅥𝅮𝆹𝅥𝅯𝆺𝅥𝅯〔s〕ppv〔本〕〔三〕〔二〕〔安〕〔点〕〔打〕〔盗〕〔勝〕〔敗〕 ̄ ́ ̧ssi̇ijl·ʼndžljnjdz ̆ ̇ ̊ ̨ ̃ ̋ ιեւاٴوٴۇٴيٴक़ख़ग़ज़ड़ढ़फ़य़ড়ঢ়য়ਲ਼ਸ਼ਖ਼ਗ਼ਜ਼ਫ਼ଡ଼ଢ଼ําໍາຫນຫມགྷཌྷདྷབྷཛྷཀྵཱཱིུྲྀླྀྒྷྜྷྡྷྦྷྫྷྐྵaʾἀιἁιἂιἃιἄιἅιἆιἇιἠιἡιἢιἣιἤιἥιἦιἧιὠιὡιὢιὣιὤιὥιὦιὧιὰιαιάιᾶι ͂ὴιηιήιῆιὼιωιώιῶι ̳!! ̅???!!?rs°c°fnosmtmivix⫝̸ ゙ ゚よりコト333435참고주의363738394042444546474849503月4月5月6月7月8月9月hgevギガデシドルナノピコビルペソホンリラレムdaauovpciu平成昭和大正明治naμakakbmbgbpfnfμfμgmgμlmldlklfmnmμmpsnsμsmsnvμvkvpwnwμwmwkwkωmωbqcccddbgyhainkkktlnlxphprsrsvwbstմնմեմիվնմխיִײַשׁשׂאַאָאּבּגּדּהּוּזּטּיּךּכּלּמּנּסּףּפּצּקּרּתּוֹבֿכֿפֿאלئائەئوئۇئۆئۈئېئىئجئحئمئيبجبمبىبيتىتيثجثمثىثيخحضجضمطحظمغجفجفحفىفيقحقىقيكاكجكحكخكلكىكينخنىنيهجهىهييىذٰرٰىٰئرئزئنبزبنترتزتنثرثزثنمانرنزننيريزئخئهبهتهصخنههٰثهسهشهطىطيعىعيغىغيسىسيشىشيصىصيضىضيشخشرسرصرضراً ًـًـّ ْـْلآلألإ𝅗𝅥0,1,2,3,4,5,6,7,8,9,wzhvsdwcmcmddjほかココàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþāăąćĉċčďđēĕėęěĝğġģĥħĩīĭįĵķĺļľłńņňŋōŏőœŕŗřśŝşšţťŧũūŭůűųŵŷÿźżɓƃƅɔƈɖɗƌǝəɛƒɠɣɩɨƙɯɲɵơƣƥʀƨʃƭʈưʊʋƴƶʒƹƽǎǐǒǔǖǘǚǜǟǡǣǥǧǩǫǭǯǵƕƿǹǻǽǿȁȃȅȇȉȋȍȏȑȓȕȗșțȝȟƞȣȥȧȩȫȭȯȱȳⱥȼƚⱦɂƀʉʌɇɉɋɍɏɦɹɻʁʕͱͳʹͷ;ϳέίόύβγδεζθκλνξοπρστυφχψϊϋϗϙϛϝϟϡϣϥϧϩϫϭϯϸϻͻͼͽѐёђѓєѕіїјљњћќѝўџабвгдежзийклмнопрстуфхцчшщъыьэюяѡѣѥѧѩѫѭѯѱѳѵѷѹѻѽѿҁҋҍҏґғҕҗҙқҝҟҡңҥҧҩҫҭүұҳҵҷҹһҽҿӂӄӆӈӊӌӎӑӓӕӗәӛӝӟӡӣӥӧөӫӭӯӱӳӵӷӹӻӽӿԁԃԅԇԉԋԍԏԑԓԕԗԙԛԝԟԡԣԥԧԩԫԭԯաբգդզէըթժլծկհձղճյշոչպջռստրցփքօֆ་ⴧⴭნᏰᏱᏲᏳᏴᏵꙋɐɑᴂɜᴖᴗᴝᴥɒɕɟɡɥɪᵻʝɭᶅʟɱɰɳɴɸʂƫᴜʐʑḁḃḅḇḉḋḍḏḑḓḕḗḙḛḝḟḡḣḥḧḩḫḭḯḱḳḵḷḹḻḽḿṁṃṅṇṉṋṍṏṑṓṕṗṙṛṝṟṡṣṥṧṩṫṭṯṱṳṵṷṹṻṽṿẁẃẅẇẉẋẍẏẑẓẕạảấầẩẫậắằẳẵặẹẻẽếềểễệỉịọỏốồổỗộớờởỡợụủứừửữựỳỵỷỹỻỽỿἐἑἒἓἔἕἰἱἲἳἴἵἶἷὀὁὂὃὄὅὑὓὕὗᾰᾱὲΐῐῑὶΰῠῡὺῥ`ὸ‐+−∑〈〉ⰰⰱⰲⰳⰴⰵⰶⰷⰸⰹⰺⰻⰼⰽⰾⰿⱀⱁⱂⱃⱄⱅⱆⱇⱈⱉⱊⱋⱌⱍⱎⱏⱐⱑⱒⱓⱔⱕⱖⱗⱘⱙⱚⱛⱜⱝⱞⱡɫᵽɽⱨⱪⱬⱳⱶȿɀⲁⲃⲅⲇⲉⲋⲍⲏⲑⲓⲕⲗⲙⲛⲝⲟⲡⲣⲥⲧⲩⲫⲭⲯⲱⲳⲵⲷⲹⲻⲽⲿⳁⳃⳅⳇⳉⳋⳍⳏⳑⳓⳕⳗⳙⳛⳝⳟⳡⳣⳬⳮⳳⵡ母龟丨丶丿乙亅亠人儿入冂冖冫几凵刀力勹匕匚匸卜卩厂厶又口囗士夂夊夕女子宀寸小尢尸屮山巛工己巾干幺广廴廾弋弓彐彡彳心戈戶手支攴文斗斤方无曰欠止歹殳毋比毛氏气爪父爻爿片牙牛犬玄玉瓜瓦甘生用田疋疒癶白皮皿目矛矢石示禸禾穴立竹米糸缶网羊羽老而耒耳聿肉臣臼舌舛舟艮色艸虍虫血行衣襾見角言谷豆豕豸貝赤走足身車辛辰辵邑酉釆里長門阜隶隹雨靑非面革韋韭音頁風飛食首香馬骨高髟鬥鬯鬲鬼魚鳥鹵鹿麥麻黃黍黑黹黽鼎鼓鼠鼻齊齒龍龜龠.〒卄卅ᄁᆪᆬᆭᄄᆰᆱᆲᆳᆴᆵᄚᄈᄡᄊ짜ᅢᅣᅤᅥᅦᅧᅨᅩᅪᅫᅬᅭᅮᅯᅰᅱᅲᅳᅴᅵᄔᄕᇇᇈᇌᇎᇓᇗᇙᄜᇝᇟᄝᄞᄠᄢᄣᄧᄩᄫᄬᄭᄮᄯᄲᄶᅀᅇᅌᇱᇲᅗᅘᅙᆄᆅᆈᆑᆒᆔᆞᆡ上中下甲丙丁天地問幼箏우秘男適優印注項写左右医宗夜テヌモヨヰヱヲꙁꙃꙅꙇꙉꙍꙏꙑꙓꙕꙗꙙꙛꙝꙟꙡꙣꙥꙧꙩꙫꙭꚁꚃꚅꚇꚉꚋꚍꚏꚑꚓꚕꚗꚙꚛꜣꜥꜧꜩꜫꜭꜯꜳꜵꜷꜹꜻꜽꜿꝁꝃꝅꝇꝉꝋꝍꝏꝑꝓꝕꝗꝙꝛꝝꝟꝡꝣꝥꝧꝩꝫꝭꝯꝺꝼᵹꝿꞁꞃꞅꞇꞌꞑꞓꞗꞙꞛꞝꞟꞡꞣꞥꞧꞩɬʞʇꭓꞵꞷꬷꭒᎠᎡᎢᎣᎤᎥᎦᎧᎨᎩᎪᎫᎬᎭᎮᎯᎰᎱᎲᎳᎴᎵᎶᎷᎸᎹᎺᎻᎼᎽᎾᎿᏀᏁᏂᏃᏄᏅᏆᏇᏈᏉᏊᏋᏌᏍᏎᏏᏐᏑᏒᏓᏔᏕᏖᏗᏘᏙᏚᏛᏜᏝᏞᏟᏠᏡᏢᏣᏤᏥᏦᏧᏨᏩᏪᏫᏬᏭᏮᏯ豈更賈滑串句契喇奈懶癩羅蘿螺裸邏樂洛烙珞落酪駱亂卵欄爛蘭鸞嵐濫藍襤拉臘蠟廊朗浪狼郎來冷勞擄櫓爐盧蘆虜路露魯鷺碌祿綠菉錄論壟弄籠聾牢磊賂雷壘屢樓淚漏累縷陋勒肋凜凌稜綾菱陵讀拏諾丹寧怒率異北磻便復不泌數索參塞省葉說殺沈拾若掠略亮兩凉梁糧良諒量勵呂廬旅濾礪閭驪麗黎曆歷轢年憐戀撚漣煉璉秊練聯輦蓮連鍊列劣咽烈裂廉念捻殮簾獵令囹嶺怜玲瑩羚聆鈴零靈領例禮醴隸惡了僚寮尿料燎療蓼遼暈阮劉杻柳流溜琉留硫紐類戮陸倫崙淪輪律慄栗隆利吏履易李梨泥理痢罹裏裡離匿溺吝燐璘藺隣鱗麟林淋臨笠粒狀炙識什茶刺切度拓糖宅洞暴輻降廓兀嗀塚晴凞猪益礼神祥福靖精蘒諸逸都飯飼館鶴郞隷侮僧免勉勤卑喝嘆器塀墨層悔慨憎懲敏既暑梅海渚漢煮爫琢碑祉祈祐祖禍禎穀突節縉繁署者臭艹著褐視謁謹賓贈辶難響頻恵𤋮舘並况全侀充冀勇勺啕喙嗢墳奄奔婢嬨廒廙彩徭惘慎愈慠戴揄搜摒敖望杖滛滋瀞瞧爵犯瑱甆画瘝瘟盛直睊着磌窱类絛缾荒華蝹襁覆調請諭變輸遲醙鉶陼韛頋鬒𢡊𢡄𣏕㮝䀘䀹𥉉𥳐𧻓齃龎עםٱٻپڀٺٿٹڤڦڄڃچڇڍڌڎڈژڑکگڳڱںڻۀہھۓڭۋۅۉ、〖〗—–_{}【】《》「」『』[]#&*-<>\\$%@ءؤة\"'^|~⦅⦆・ゥャ¢£¬¦¥₩│←↑→↓■○𐐨𐐩𐐪𐐫𐐬𐐭𐐮𐐯𐐰𐐱𐐲𐐳𐐴𐐵𐐶𐐷𐐸𐐹𐐺𐐻𐐼𐐽𐐾𐐿𐑀𐑁𐑂𐑃𐑄𐑅𐑆𐑇𐑈𐑉𐑊𐑋𐑌𐑍𐑎𐑏𐓘𐓙𐓚𐓛𐓜𐓝𐓞𐓟𐓠𐓡𐓢𐓣𐓤𐓥𐓦𐓧𐓨𐓩𐓪𐓫𐓬𐓭𐓮𐓯𐓰𐓱𐓲𐓳𐓴𐓵𐓶𐓷𐓸𐓹𐓺𐓻𐳀𐳁𐳂𐳃𐳄𐳅𐳆𐳇𐳈𐳉𐳊𐳋𐳌𐳍𐳎𐳏𐳐𐳑𐳒𐳓𐳔𐳕𐳖𐳗𐳘𐳙𐳚𐳛𐳜𐳝𐳞𐳟𐳠𐳡𐳢𐳣𐳤𐳥𐳦𐳧𐳨𐳩𐳪𐳫𐳬𐳭𐳮𐳯𐳰𐳱𐳲𑣀𑣁𑣂𑣃𑣄𑣅𑣆𑣇𑣈𑣉𑣊𑣋𑣌𑣍𑣎𑣏𑣐𑣑𑣒𑣓𑣔𑣕𑣖𑣗𑣘𑣙𑣚𑣛𑣜𑣝𑣞𑣟ıȷ∇∂𞤢𞤣𞤤𞤥𞤦𞤧𞤨𞤩𞤪𞤫𞤬𞤭𞤮𞤯𞤰𞤱𞤲𞤳𞤴𞤵𞤶𞤷𞤸𞤹𞤺𞤻𞤼𞤽𞤾𞤿𞥀𞥁𞥂𞥃ٮڡٯ字双多解交映無前後再新初終販声吹演投捕遊指禁空合満申割営配得可丽丸乁𠄢你侻倂偺備像㒞𠘺兔兤具𠔜㒹內𠕋冗冤仌冬𩇟刃㓟刻剆剷㔕包匆卉博即卽卿𠨬灰及叟𠭣叫叱吆咞吸呈周咢哶唐啓啣善喫喳嗂圖圗噑噴壮城埴堍型堲報墬𡓤売壷夆夢奢𡚨𡛪姬娛娧姘婦㛮嬈嬾𡧈寃寘寳𡬘寿将㞁屠峀岍𡷤嵃𡷦嵮嵫嵼巡巢㠯巽帨帽幩㡢𢆃㡼庰庳庶𪎒𢌱舁弢㣇𣊸𦇚形彫㣣徚忍志忹悁㤺㤜𢛔惇慈慌慺憲憤憯懞戛扝抱拔捐𢬌挽拼捨掃揤𢯱搢揅掩㨮摩摾撝摷㩬敬𣀊旣書晉㬙㬈㫤冒冕最暜肭䏙朡杞杓𣏃㭉柺枅桒𣑭梎栟椔楂榣槪檨𣚣櫛㰘次𣢧歔㱎歲殟殻𣪍𡴋𣫺汎𣲼沿泍汧洖派浩浸涅𣴞洴港湮㴳滇𣻑淹潮𣽞𣾎濆瀹瀛㶖灊災灷炭𠔥煅𤉣熜爨牐𤘈犀犕𤜵𤠔獺王㺬玥㺸瑇瑜璅瓊㼛甤𤰶甾𤲒𢆟瘐𤾡𤾸𥁄㿼䀈𥃳𥃲𥄙𥄳眞真瞋䁆䂖𥐝硎䃣𥘦𥚚𥛅秫䄯穊穏𥥼𥪧䈂𥮫篆築䈧𥲀糒䊠糨糣紀𥾆絣䌁緇縂繅䌴𦈨𦉇䍙𦋙罺𦌾羕翺𦓚𦔣聠𦖨聰𣍟䏕育脃䐋脾媵𦞧𦞵𣎓𣎜舄辞䑫芑芋芝劳花芳芽苦𦬼茝荣莭茣莽菧荓菊菌菜𦰶𦵫𦳕䔫蓱蓳蔖𧏊蕤𦼬䕝䕡𦾱𧃒䕫虐虧虩蚩蚈蜎蛢蜨蝫螆蟡蠁䗹衠𧙧裗裞䘵裺㒻𧢮𧥦䚾䛇誠𧲨貫賁贛起𧼯𠠄跋趼跰𠣞軔𨗒𨗭邔郱鄑𨜮鄛鈸鋗鋘鉼鏹鐕𨯺開䦕閷𨵷䧦雃嶲霣𩅅𩈚䩮䩶韠𩐊䪲𩒖頩𩖶飢䬳餩馧駂駾䯎𩬰鱀鳽䳎䳭鵧𪃎䳸𪄅𪈎𪊑䵖黾鼅鼏鼖𪘀",mapChar:function(r){return r>=196608?r>=917760&&r<=917999?18874368:0:e[t[r>>4]][15&r]}};var e,t}.apply(t,[]))||(e.exports=n)},function(e,t,r){"use strict";e.exports=[{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"resolver",outputs:[{name:"",type:"address"}],payable:!1,type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"owner",outputs:[{name:"",type:"address"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"label",type:"bytes32"},{name:"owner",type:"address"}],name:"setSubnodeOwner",outputs:[],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"ttl",type:"uint64"}],name:"setTTL",outputs:[],payable:!1,type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"ttl",outputs:[{name:"",type:"uint64"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"resolver",type:"address"}],name:"setResolver",outputs:[],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"owner",type:"address"}],name:"setOwner",outputs:[],payable:!1,type:"function"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"owner",type:"address"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!0,name:"label",type:"bytes32"},{indexed:!1,name:"owner",type:"address"}],name:"NewOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"resolver",type:"address"}],name:"NewResolver",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"ttl",type:"uint64"}],name:"NewTTL",type:"event"},{constant:!1,inputs:[{internalType:"bytes32",name:"node",type:"bytes32"},{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"resolver",type:"address"},{internalType:"uint64",name:"ttl",type:"uint64"}],name:"setRecord",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{constant:!0,inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"bytes32",name:"node",type:"bytes32"}],name:"recordExists",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"bytes32",name:"node",type:"bytes32"},{internalType:"bytes32",name:"label",type:"bytes32"},{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"resolver",type:"address"},{internalType:"uint64",name:"ttl",type:"uint64"}],name:"setSubnodeRecord",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"}]},function(e,t,r){"use strict";e.exports=[{constant:!0,inputs:[{name:"interfaceID",type:"bytes4"}],name:"supportsInterface",outputs:[{name:"",type:"bool"}],payable:!1,type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"},{name:"contentTypes",type:"uint256"}],name:"ABI",outputs:[{name:"contentType",type:"uint256"},{name:"data",type:"bytes"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"hash",type:"bytes"}],name:"setMultihash",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"multihash",outputs:[{name:"",type:"bytes"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"x",type:"bytes32"},{name:"y",type:"bytes32"}],name:"setPubkey",outputs:[],payable:!1,type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"content",outputs:[{name:"ret",type:"bytes32"}],payable:!1,type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"addr",outputs:[{name:"ret",type:"address"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"contentType",type:"uint256"},{name:"data",type:"bytes"}],name:"setABI",outputs:[],payable:!1,type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"name",outputs:[{name:"ret",type:"string"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"name",type:"string"}],name:"setName",outputs:[],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"hash",type:"bytes32"}],name:"setContent",outputs:[],payable:!1,type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"pubkey",outputs:[{name:"x",type:"bytes32"},{name:"y",type:"bytes32"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"addr",type:"address"}],name:"setAddr",outputs:[],payable:!1,type:"function"},{inputs:[{name:"ensAddr",type:"address"}],payable:!1,type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"a",type:"address"}],name:"AddrChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"hash",type:"bytes32"}],name:"ContentChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"name",type:"string"}],name:"NameChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!0,name:"contentType",type:"uint256"}],name:"ABIChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"x",type:"bytes32"},{indexed:!1,name:"y",type:"bytes32"}],name:"PubkeyChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"hash",type:"bytes"}],name:"ContenthashChanged",type:"event"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"contenthash",outputs:[{name:"",type:"bytes"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"hash",type:"bytes"}],name:"setContenthash",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"}]},function(e,t,r){"use strict";var n=r(0),i=n(r(63)),o=n(r(105)),a=r(78),s=r(188),u=r(12).errors,c=r(176).interfaceIds;function f(e){this.registry=e}f.prototype.method=function(e,t,r,n,i){return{call:this.call.bind({ensName:e,methodName:t,methodArguments:r,callback:i,parent:this,outputFormatter:n}),send:this.send.bind({ensName:e,methodName:t,methodArguments:r,callback:i,parent:this})}},f.prototype.call=function(e){var t=this,r=new a,n=this.parent.prepareArguments(this.ensName,this.methodArguments),s=this.outputFormatter||null;return this.parent.registry.getResolver(this.ensName).then(function(){var a=(0,o.default)(i.default.mark((function o(a){return i.default.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,t.parent.checkInterfaceSupport(a,t.methodName);case 2:t.parent.handleCall(r,a.methods[t.methodName],n,s,e);case 3:case"end":return i.stop()}}),o)})));return function(e){return a.apply(this,arguments)}}()).catch((function(t){"function"!=typeof e?r.reject(t):e(t,null)})),r.eventEmitter},f.prototype.send=function(e,t){var r=this,n=new a,s=this.parent.prepareArguments(this.ensName,this.methodArguments);return this.parent.registry.getResolver(this.ensName).then(function(){var a=(0,o.default)(i.default.mark((function o(a){return i.default.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,r.parent.checkInterfaceSupport(a,r.methodName);case 2:r.parent.handleSend(n,a.methods[r.methodName],s,e,t);case 3:case"end":return i.stop()}}),o)})));return function(e){return a.apply(this,arguments)}}()).catch((function(e){"function"!=typeof t?n.reject(e):t(e,null)})),n.eventEmitter},f.prototype.handleCall=function(e,t,r,n,i){return t.apply(this,r).call().then((function(t){n&&(t=n(t)),"function"!=typeof i?e.resolve(t):i(t,t)})).catch((function(t){"function"!=typeof i?e.reject(t):i(t,null)})),e},f.prototype.handleSend=function(e,t,r,n,i){return t.apply(this,r).send(n).on("sending",(function(){e.eventEmitter.emit("sending")})).on("sent",(function(){e.eventEmitter.emit("sent")})).on("transactionHash",(function(t){e.eventEmitter.emit("transactionHash",t)})).on("confirmation",(function(t,r){e.eventEmitter.emit("confirmation",t,r)})).on("receipt",(function(t){e.eventEmitter.emit("receipt",t),e.resolve(t),"function"==typeof i&&i(t,t)})).on("error",(function(t){e.eventEmitter.emit("error",t),"function"!=typeof i?e.reject(t):i(t,null)})),e},f.prototype.prepareArguments=function(e,t){var r=s.hash(e);return t.length>0?(t.unshift(r),t):[r]},f.prototype.checkInterfaceSupport=function(){var e=(0,o.default)(i.default.mark((function e(t,r){var n;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c[r]){e.next=2;break}return e.abrupt("return");case 2:return n=!1,e.prev=3,e.next=6,t.methods.supportsInterface(c[r]).call();case 6:n=e.sent,e.next=12;break;case 9:e.prev=9,e.t0=e.catch(3),console.warn('Could not verify interface of resolver contract at "'+t.options.address+'". ');case 12:if(n){e.next=14;break}throw u.ResolverMethodMissingError(t.options.address,r);case 14:case"end":return e.stop()}}),e,null,[[3,9]])})));return function(t,r){return e.apply(this,arguments)}}(),e.exports=f},function(e,t,r){"use strict";var n=r(410);e.exports={decode:function(e){var t=null,r=null,i=null;if(e&&e.error)return{protocolType:null,decoded:e.error};if(e)try{t=n.decode(e);var o=n.getCodec(e);"ipfs-ns"===o?r="ipfs":"swarm-ns"===o?r="bzz":"onion"===o?r="onion":"onion3"===o?r="onion3":t=e}catch(e){i=e.message}return{protocolType:r,decoded:t,error:i}},encode:function(e){var t,r,i=!1;if(e){var o=e.match(/^(ipfs|bzz|onion|onion3):\/\/(.*)/)||e.match(/\/(ipfs)\/(.*)/);o&&(r=o[1],t=o[2]);try{if("ipfs"===r)t.length>=4&&(i="0x"+n.fromIpfs(t));else if("bzz"===r)t.length>=4&&(i="0x"+n.fromSwarm(t));else if("onion"===r)16===t.length&&(i="0x"+n.encode("onion",t));else{if("onion3"!==r)throw new Error("Could not encode content hash: unsupported content type");56===t.length&&(i="0x"+n.encode("onion3",t))}}catch(e){throw e}}return i}}},function(e,t,r){"use strict";var n=r(411),i=r(419),o=i.hexStringToBuffer,a=i.profiles,s=r(442).cidV0ToV1Base32;e.exports={helpers:{cidV0ToV1Base32:s},decode:function(e){var t=o(e),r=n.getCodec(t),i=n.rmPrefix(t),s=a[r];return s||(s=a.default),s.decode(i)},fromIpfs:function(e){return this.encode("ipfs-ns",e)},fromSwarm:function(e){return this.encode("swarm-ns",e)},encode:function(e,t){var r=a[e];r||(r=a.default);var i=r.encode(t);return n.addPrefix(e,i).toString("hex")},getCodec:function(e){var t=o(e);return n.getCodec(t)}}},function(e,t,r){"use strict";(function(n){var i=r(66),o=r(415),a=r(416),s=r(189);(t=e.exports).addPrefix=function(e,t){var r;if(n.isBuffer(e))r=s.varintBufferEncode(e);else{if(!a[e])throw new Error("multicodec not recognized");r=a[e]}return n.concat([r,t])},t.rmPrefix=function(e){return i.decode(e),e.slice(i.decode.bytes)},t.getCodec=function(e){var t=i.decode(e),r=o.get(t);if(void 0===r)throw new Error("Code ".concat(t," not found"));return r},t.getName=function(e){return o.get(e)},t.getNumber=function(e){var t=a[e];if(void 0===t)throw new Error("Codec `"+e+"` not found");return s.varintBufferDecode(t)[0]},t.getCode=function(e){return i.decode(e)},t.getCodeVarint=function(e){var t=a[e];if(void 0===t)throw new Error("Codec `"+e+"` not found");return t},t.getVarint=function(e){return i.encode(e)};var u=r(417);Object.assign(t,u),t.print=r(418)}).call(this,r(1).Buffer)},function(e,t,r){"use strict";e.exports=function e(t,r,i){r=r||[];for(var o=i=i||0;t>=n;)r[i++]=255&t|128,t/=128;for(;-128&t;)r[i++]=255&t|128,t>>>=7;return r[i]=0|t,e.bytes=i-o+1,r};var n=Math.pow(2,31)},function(e,t,r){"use strict";e.exports=function e(t,r){var n,i=0,o=0,a=r=r||0,s=t.length;do{if(a>=s)throw e.bytes=0,new RangeError("Could not decode varint");n=t[a++],i+=o<28?(127&n)<<o:(127&n)*Math.pow(2,o),o+=7}while(n>=128);return e.bytes=a-r,i}},function(e,t,r){"use strict";var n=Math.pow(2,7),i=Math.pow(2,14),o=Math.pow(2,21),a=Math.pow(2,28),s=Math.pow(2,35),u=Math.pow(2,42),c=Math.pow(2,49),f=Math.pow(2,56),l=Math.pow(2,63);e.exports=function(e){return e<n?1:e<i?2:e<o?3:e<a?4:e<s?5:e<u?6:e<c?7:e<f?8:e<l?9:10}},function(e,t,r){"use strict";var n=r(82),i=new Map;for(var o in n){var a=n[o];i.set(a,o)}e.exports=Object.freeze(i)},function(e,t,r){"use strict";var n=r(82),i=r(189).varintEncode,o={};for(var a in n){var s=n[a];o[a]=i(s)}e.exports=Object.freeze(o)},function(e,t,r){"use strict";for(var n=r(0)(r(30)),i=r(82),o={},a=0,s=Object.entries(i);a<s.length;a++){var u=(0,n.default)(s[a],2),c=u[0],f=u[1];o[c.toUpperCase().replace(/-/g,"_")]=f}e.exports=Object.freeze(o)},function(e,t,r){"use strict";for(var n=r(0)(r(30)),i=r(82),o={},a=0,s=Object.entries(i);a<s.length;a++){var u=(0,n.default)(s[a],2),c=u[0],f=u[1];void 0===o[f]&&(o[f]=c)}e.exports=Object.freeze(o)},function(e,t,r){"use strict";(function(e){var n=r(190),i=r(109),o=function(e){var t,r=e.slice(0,2),n=e.slice(2);return t="0x"===r?n:e,i.fromHexString(t)},a={swarm:function(e){var t=i.encode(o(e),"keccak-256");return new n(1,"swarm-manifest",t).buffer},ipfs:function(e){var t=i.fromB58String(e);return new n(1,"dag-pb",t).buffer},utf8:function(t){return e.from(t,"utf8")}},s={hexMultiHash:function(e){var t=new n(e);return i.decode(t.multihash).digest.toString("hex")},b58MultiHash:function(e){var t=new n(e);return i.toB58String(t.multihash)},utf8:function(e){return e.toString("utf8")}},u={"swarm-ns":{encode:a.swarm,decode:s.hexMultiHash},"ipfs-ns":{encode:a.ipfs,decode:s.b58MultiHash},"ipns-ns":{encode:a.ipfs,decode:s.b58MultiHash},default:{encode:a.utf8,decode:s.utf8}};t.hexStringToBuffer=o,t.profiles=u}).call(this,r(1).Buffer)},function(e,t,r){"use strict";var n=r(1).Buffer,i=r(421);function o(e,t){if(!t)throw new Error("requires an encoded buffer");var r=a(e),i=n.from(r.code);return function(e,t){a(e).decode(t.toString())}(r.name,t),n.concat([i,t])}function a(e){var t;if(i.names[e])t=i.names[e];else{if(!i.codes[e])throw new Error("Unsupported encoding");t=i.codes[e]}if(!t.isImplemented())throw new Error("Base "+e+" is not implemented yet");return t}(t=e.exports=o).encode=function(e,t){var r=a(e);return o(r.name,n.from(r.encode(t)))},t.decode=function(e){n.isBuffer(e)&&(e=e.toString());var t=e.substring(0,1);"string"==typeof(e=e.substring(1,e.length))&&(e=n.from(e));var r=a(t);return n.from(r.decode(e.toString()))},t.isEncoded=function(e){if(n.isBuffer(e)&&(e=e.toString()),"[object String]"!==Object.prototype.toString.call(e))return!1;var t=e.substring(0,1);try{return a(t).name}catch(e){return!1}},t.names=Object.freeze(Object.keys(i.names)),t.codes=Object.freeze(Object.keys(i.codes))},function(e,t,r){"use strict";var n=r(422),i=r(191),o=r(423),a=r(424),s=r(425),u=[["base1","1","","1"],["base2","0",i,"01"],["base8","7",i,"01234567"],["base10","9",i,"0123456789"],["base16","f",o,"0123456789abcdef"],["base32","b",a,"abcdefghijklmnopqrstuvwxyz234567"],["base32pad","c",a,"abcdefghijklmnopqrstuvwxyz234567="],["base32hex","v",a,"0123456789abcdefghijklmnopqrstuv"],["base32hexpad","t",a,"0123456789abcdefghijklmnopqrstuv="],["base32z","h",a,"ybndrfg8ejkmcpqxot1uwisza345h769"],["base58flickr","Z",i,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base58btc","z",i,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base64","m",s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],c=u.reduce((function(e,t){return e[t[0]]=new n(t[0],t[1],t[2],t[3]),e}),{}),f=u.reduce((function(e,t){return e[t[1]]=c[t[0]],e}),{});e.exports={names:c,codes:f}},function(e,t,r){"use strict";var n=r(0),i=n(r(8)),o=n(r(9)),a=function(){function e(t,r,n,o){(0,i.default)(this,e),this.name=t,this.code=r,this.alphabet=o,n&&o&&(this.engine=n(o))}return(0,o.default)(e,[{key:"encode",value:function(e){return this.engine.encode(e)}},{key:"decode",value:function(e){return this.engine.decode(e)}},{key:"isImplemented",value:function(){return this.engine}}]),e}();e.exports=a},function(e,t,r){"use strict";function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 a,s=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var o=r(1).Buffer;e.exports=function(e){return{encode:function(e){return"string"==typeof e?o.from(e).toString("hex"):e.toString("hex")},decode:function(t){var r,i=n(t);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(e.indexOf(a)<0)throw new Error("invalid base16 character")}}catch(e){i.e(e)}finally{i.f()}return o.from(t,"hex")}}}},function(e,t,r){"use strict";function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 a,s=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}e.exports=function(e){return{encode:function(t){return function(e,t){var r=e.byteLength,n=new Uint8Array(e),i=t.indexOf("=")===t.length-1;i&&(t=t.substring(0,t.length-1));for(var o=0,a=0,s="",u=0;u<r;u++)for(a=a<<8|n[u],o+=8;o>=5;)s+=t[a>>>o-5&31],o-=5;if(o>0&&(s+=t[a<<5-o&31]),i)for(;s.length%8!=0;)s+="=";return s}("string"==typeof t?Uint8Array.from(t):t,e)},decode:function(t){var r,i=n(t);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(e.indexOf(o)<0)throw new Error("invalid base32 character")}}catch(e){i.e(e)}finally{i.f()}return function(e,t){for(var r=(e=e.replace(new RegExp("=","g"),"")).length,n=0,i=0,o=0,a=new Uint8Array(5*r/8|0),s=0;s<r;s++)i=i<<5|t.indexOf(e[s]),(n+=5)>=8&&(a[o++]=i>>>n-8&255,n-=8);return a.buffer}(t,e)}}}},function(e,t,r){"use strict";function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 a,s=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var o=r(1).Buffer;e.exports=function(e){var t=e.indexOf("=")>-1,r=e.indexOf("-")>-1&&e.indexOf("_")>-1;return{encode:function(e){var n="";n="string"==typeof e?o.from(e).toString("base64"):e.toString("base64"),r&&(n=n.replace(/\+/g,"-").replace(/\//g,"_"));var i=n.indexOf("=");return i>0&&!t&&(n=n.substring(0,i)),n},decode:function(t){var r,i=n(t);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(e.indexOf(a)<0)throw new Error("invalid base64 character")}}catch(e){i.e(e)}finally{i.f()}return o.from(t,"base64")}}}},function(e,t,r){"use strict";t.names=Object.freeze({identity:0,sha1:17,"sha2-256":18,"sha2-512":19,"dbl-sha2-256":86,"sha3-224":23,"sha3-256":22,"sha3-384":21,"sha3-512":20,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,"murmur3-128":34,"murmur3-32":35,md4:212,md5:213,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"Skein256-8":45825,"Skein256-16":45826,"Skein256-24":45827,"Skein256-32":45828,"Skein256-40":45829,"Skein256-48":45830,"Skein256-56":45831,"Skein256-64":45832,"Skein256-72":45833,"Skein256-80":45834,"Skein256-88":45835,"Skein256-96":45836,"Skein256-104":45837,"Skein256-112":45838,"Skein256-120":45839,"Skein256-128":45840,"Skein256-136":45841,"Skein256-144":45842,"Skein256-152":45843,"Skein256-160":45844,"Skein256-168":45845,"Skein256-176":45846,"Skein256-184":45847,"Skein256-192":45848,"Skein256-200":45849,"Skein256-208":45850,"Skein256-216":45851,"Skein256-224":45852,"Skein256-232":45853,"Skein256-240":45854,"Skein256-248":45855,"Skein256-256":45856,"Skein512-8":45857,"Skein512-16":45858,"Skein512-24":45859,"Skein512-32":45860,"Skein512-40":45861,"Skein512-48":45862,"Skein512-56":45863,"Skein512-64":45864,"Skein512-72":45865,"Skein512-80":45866,"Skein512-88":45867,"Skein512-96":45868,"Skein512-104":45869,"Skein512-112":45870,"Skein512-120":45871,"Skein512-128":45872,"Skein512-136":45873,"Skein512-144":45874,"Skein512-152":45875,"Skein512-160":45876,"Skein512-168":45877,"Skein512-176":45878,"Skein512-184":45879,"Skein512-192":45880,"Skein512-200":45881,"Skein512-208":45882,"Skein512-216":45883,"Skein512-224":45884,"Skein512-232":45885,"Skein512-240":45886,"Skein512-248":45887,"Skein512-256":45888,"Skein512-264":45889,"Skein512-272":45890,"Skein512-280":45891,"Skein512-288":45892,"Skein512-296":45893,"Skein512-304":45894,"Skein512-312":45895,"Skein512-320":45896,"Skein512-328":45897,"Skein512-336":45898,"Skein512-344":45899,"Skein512-352":45900,"Skein512-360":45901,"Skein512-368":45902,"Skein512-376":45903,"Skein512-384":45904,"Skein512-392":45905,"Skein512-400":45906,"Skein512-408":45907,"Skein512-416":45908,"Skein512-424":45909,"Skein512-432":45910,"Skein512-440":45911,"Skein512-448":45912,"Skein512-456":45913,"Skein512-464":45914,"Skein512-472":45915,"Skein512-480":45916,"Skein512-488":45917,"Skein512-496":45918,"Skein512-504":45919,"Skein512-512":45920,"Skein1024-8":45921,"Skein1024-16":45922,"Skein1024-24":45923,"Skein1024-32":45924,"Skein1024-40":45925,"Skein1024-48":45926,"Skein1024-56":45927,"Skein1024-64":45928,"Skein1024-72":45929,"Skein1024-80":45930,"Skein1024-88":45931,"Skein1024-96":45932,"Skein1024-104":45933,"Skein1024-112":45934,"Skein1024-120":45935,"Skein1024-128":45936,"Skein1024-136":45937,"Skein1024-144":45938,"Skein1024-152":45939,"Skein1024-160":45940,"Skein1024-168":45941,"Skein1024-176":45942,"Skein1024-184":45943,"Skein1024-192":45944,"Skein1024-200":45945,"Skein1024-208":45946,"Skein1024-216":45947,"Skein1024-224":45948,"Skein1024-232":45949,"Skein1024-240":45950,"Skein1024-248":45951,"Skein1024-256":45952,"Skein1024-264":45953,"Skein1024-272":45954,"Skein1024-280":45955,"Skein1024-288":45956,"Skein1024-296":45957,"Skein1024-304":45958,"Skein1024-312":45959,"Skein1024-320":45960,"Skein1024-328":45961,"Skein1024-336":45962,"Skein1024-344":45963,"Skein1024-352":45964,"Skein1024-360":45965,"Skein1024-368":45966,"Skein1024-376":45967,"Skein1024-384":45968,"Skein1024-392":45969,"Skein1024-400":45970,"Skein1024-408":45971,"Skein1024-416":45972,"Skein1024-424":45973,"Skein1024-432":45974,"Skein1024-440":45975,"Skein1024-448":45976,"Skein1024-456":45977,"Skein1024-464":45978,"Skein1024-472":45979,"Skein1024-480":45980,"Skein1024-488":45981,"Skein1024-496":45982,"Skein1024-504":45983,"Skein1024-512":45984,"Skein1024-520":45985,"Skein1024-528":45986,"Skein1024-536":45987,"Skein1024-544":45988,"Skein1024-552":45989,"Skein1024-560":45990,"Skein1024-568":45991,"Skein1024-576":45992,"Skein1024-584":45993,"Skein1024-592":45994,"Skein1024-600":45995,"Skein1024-608":45996,"Skein1024-616":45997,"Skein1024-624":45998,"Skein1024-632":45999,"Skein1024-640":46e3,"Skein1024-648":46001,"Skein1024-656":46002,"Skein1024-664":46003,"Skein1024-672":46004,"Skein1024-680":46005,"Skein1024-688":46006,"Skein1024-696":46007,"Skein1024-704":46008,"Skein1024-712":46009,"Skein1024-720":46010,"Skein1024-728":46011,"Skein1024-736":46012,"Skein1024-744":46013,"Skein1024-752":46014,"Skein1024-760":46015,"Skein1024-768":46016,"Skein1024-776":46017,"Skein1024-784":46018,"Skein1024-792":46019,"Skein1024-800":46020,"Skein1024-808":46021,"Skein1024-816":46022,"Skein1024-824":46023,"Skein1024-832":46024,"Skein1024-840":46025,"Skein1024-848":46026,"Skein1024-856":46027,"Skein1024-864":46028,"Skein1024-872":46029,"Skein1024-880":46030,"Skein1024-888":46031,"Skein1024-896":46032,"Skein1024-904":46033,"Skein1024-912":46034,"Skein1024-920":46035,"Skein1024-928":46036,"Skein1024-936":46037,"Skein1024-944":46038,"Skein1024-952":46039,"Skein1024-960":46040,"Skein1024-968":46041,"Skein1024-976":46042,"Skein1024-984":46043,"Skein1024-992":46044,"Skein1024-1000":46045,"Skein1024-1008":46046,"Skein1024-1016":46047,"Skein1024-1024":46048}),t.codes=Object.freeze({0:"identity",17:"sha1",18:"sha2-256",19:"sha2-512",86:"dbl-sha2-256",23:"sha3-224",22:"sha3-256",21:"sha3-384",20:"sha3-512",24:"shake-128",25:"shake-256",26:"keccak-224",27:"keccak-256",28:"keccak-384",29:"keccak-512",34:"murmur3-128",35:"murmur3-32",212:"md4",213:"md5",45569:"blake2b-8",45570:"blake2b-16",45571:"blake2b-24",45572:"blake2b-32",45573:"blake2b-40",45574:"blake2b-48",45575:"blake2b-56",45576:"blake2b-64",45577:"blake2b-72",45578:"blake2b-80",45579:"blake2b-88",45580:"blake2b-96",45581:"blake2b-104",45582:"blake2b-112",45583:"blake2b-120",45584:"blake2b-128",45585:"blake2b-136",45586:"blake2b-144",45587:"blake2b-152",45588:"blake2b-160",45589:"blake2b-168",45590:"blake2b-176",45591:"blake2b-184",45592:"blake2b-192",45593:"blake2b-200",45594:"blake2b-208",45595:"blake2b-216",45596:"blake2b-224",45597:"blake2b-232",45598:"blake2b-240",45599:"blake2b-248",45600:"blake2b-256",45601:"blake2b-264",45602:"blake2b-272",45603:"blake2b-280",45604:"blake2b-288",45605:"blake2b-296",45606:"blake2b-304",45607:"blake2b-312",45608:"blake2b-320",45609:"blake2b-328",45610:"blake2b-336",45611:"blake2b-344",45612:"blake2b-352",45613:"blake2b-360",45614:"blake2b-368",45615:"blake2b-376",45616:"blake2b-384",45617:"blake2b-392",45618:"blake2b-400",45619:"blake2b-408",45620:"blake2b-416",45621:"blake2b-424",45622:"blake2b-432",45623:"blake2b-440",45624:"blake2b-448",45625:"blake2b-456",45626:"blake2b-464",45627:"blake2b-472",45628:"blake2b-480",45629:"blake2b-488",45630:"blake2b-496",45631:"blake2b-504",45632:"blake2b-512",45633:"blake2s-8",45634:"blake2s-16",45635:"blake2s-24",45636:"blake2s-32",45637:"blake2s-40",45638:"blake2s-48",45639:"blake2s-56",45640:"blake2s-64",45641:"blake2s-72",45642:"blake2s-80",45643:"blake2s-88",45644:"blake2s-96",45645:"blake2s-104",45646:"blake2s-112",45647:"blake2s-120",45648:"blake2s-128",45649:"blake2s-136",45650:"blake2s-144",45651:"blake2s-152",45652:"blake2s-160",45653:"blake2s-168",45654:"blake2s-176",45655:"blake2s-184",45656:"blake2s-192",45657:"blake2s-200",45658:"blake2s-208",45659:"blake2s-216",45660:"blake2s-224",45661:"blake2s-232",45662:"blake2s-240",45663:"blake2s-248",45664:"blake2s-256",45825:"Skein256-8",45826:"Skein256-16",45827:"Skein256-24",45828:"Skein256-32",45829:"Skein256-40",45830:"Skein256-48",45831:"Skein256-56",45832:"Skein256-64",45833:"Skein256-72",45834:"Skein256-80",45835:"Skein256-88",45836:"Skein256-96",45837:"Skein256-104",45838:"Skein256-112",45839:"Skein256-120",45840:"Skein256-128",45841:"Skein256-136",45842:"Skein256-144",45843:"Skein256-152",45844:"Skein256-160",45845:"Skein256-168",45846:"Skein256-176",45847:"Skein256-184",45848:"Skein256-192",45849:"Skein256-200",45850:"Skein256-208",45851:"Skein256-216",45852:"Skein256-224",45853:"Skein256-232",45854:"Skein256-240",45855:"Skein256-248",45856:"Skein256-256",45857:"Skein512-8",45858:"Skein512-16",45859:"Skein512-24",45860:"Skein512-32",45861:"Skein512-40",45862:"Skein512-48",45863:"Skein512-56",45864:"Skein512-64",45865:"Skein512-72",45866:"Skein512-80",45867:"Skein512-88",45868:"Skein512-96",45869:"Skein512-104",45870:"Skein512-112",45871:"Skein512-120",45872:"Skein512-128",45873:"Skein512-136",45874:"Skein512-144",45875:"Skein512-152",45876:"Skein512-160",45877:"Skein512-168",45878:"Skein512-176",45879:"Skein512-184",45880:"Skein512-192",45881:"Skein512-200",45882:"Skein512-208",45883:"Skein512-216",45884:"Skein512-224",45885:"Skein512-232",45886:"Skein512-240",45887:"Skein512-248",45888:"Skein512-256",45889:"Skein512-264",45890:"Skein512-272",45891:"Skein512-280",45892:"Skein512-288",45893:"Skein512-296",45894:"Skein512-304",45895:"Skein512-312",45896:"Skein512-320",45897:"Skein512-328",45898:"Skein512-336",45899:"Skein512-344",45900:"Skein512-352",45901:"Skein512-360",45902:"Skein512-368",45903:"Skein512-376",45904:"Skein512-384",45905:"Skein512-392",45906:"Skein512-400",45907:"Skein512-408",45908:"Skein512-416",45909:"Skein512-424",45910:"Skein512-432",45911:"Skein512-440",45912:"Skein512-448",45913:"Skein512-456",45914:"Skein512-464",45915:"Skein512-472",45916:"Skein512-480",45917:"Skein512-488",45918:"Skein512-496",45919:"Skein512-504",45920:"Skein512-512",45921:"Skein1024-8",45922:"Skein1024-16",45923:"Skein1024-24",45924:"Skein1024-32",45925:"Skein1024-40",45926:"Skein1024-48",45927:"Skein1024-56",45928:"Skein1024-64",45929:"Skein1024-72",45930:"Skein1024-80",45931:"Skein1024-88",45932:"Skein1024-96",45933:"Skein1024-104",45934:"Skein1024-112",45935:"Skein1024-120",45936:"Skein1024-128",45937:"Skein1024-136",45938:"Skein1024-144",45939:"Skein1024-152",45940:"Skein1024-160",45941:"Skein1024-168",45942:"Skein1024-176",45943:"Skein1024-184",45944:"Skein1024-192",45945:"Skein1024-200",45946:"Skein1024-208",45947:"Skein1024-216",45948:"Skein1024-224",45949:"Skein1024-232",45950:"Skein1024-240",45951:"Skein1024-248",45952:"Skein1024-256",45953:"Skein1024-264",45954:"Skein1024-272",45955:"Skein1024-280",45956:"Skein1024-288",45957:"Skein1024-296",45958:"Skein1024-304",45959:"Skein1024-312",45960:"Skein1024-320",45961:"Skein1024-328",45962:"Skein1024-336",45963:"Skein1024-344",45964:"Skein1024-352",45965:"Skein1024-360",45966:"Skein1024-368",45967:"Skein1024-376",45968:"Skein1024-384",45969:"Skein1024-392",45970:"Skein1024-400",45971:"Skein1024-408",45972:"Skein1024-416",45973:"Skein1024-424",45974:"Skein1024-432",45975:"Skein1024-440",45976:"Skein1024-448",45977:"Skein1024-456",45978:"Skein1024-464",45979:"Skein1024-472",45980:"Skein1024-480",45981:"Skein1024-488",45982:"Skein1024-496",45983:"Skein1024-504",45984:"Skein1024-512",45985:"Skein1024-520",45986:"Skein1024-528",45987:"Skein1024-536",45988:"Skein1024-544",45989:"Skein1024-552",45990:"Skein1024-560",45991:"Skein1024-568",45992:"Skein1024-576",45993:"Skein1024-584",45994:"Skein1024-592",45995:"Skein1024-600",45996:"Skein1024-608",45997:"Skein1024-616",45998:"Skein1024-624",45999:"Skein1024-632",46e3:"Skein1024-640",46001:"Skein1024-648",46002:"Skein1024-656",46003:"Skein1024-664",46004:"Skein1024-672",46005:"Skein1024-680",46006:"Skein1024-688",46007:"Skein1024-696",46008:"Skein1024-704",46009:"Skein1024-712",46010:"Skein1024-720",46011:"Skein1024-728",46012:"Skein1024-736",46013:"Skein1024-744",46014:"Skein1024-752",46015:"Skein1024-760",46016:"Skein1024-768",46017:"Skein1024-776",46018:"Skein1024-784",46019:"Skein1024-792",46020:"Skein1024-800",46021:"Skein1024-808",46022:"Skein1024-816",46023:"Skein1024-824",46024:"Skein1024-832",46025:"Skein1024-840",46026:"Skein1024-848",46027:"Skein1024-856",46028:"Skein1024-864",46029:"Skein1024-872",46030:"Skein1024-880",46031:"Skein1024-888",46032:"Skein1024-896",46033:"Skein1024-904",46034:"Skein1024-912",46035:"Skein1024-920",46036:"Skein1024-928",46037:"Skein1024-936",46038:"Skein1024-944",46039:"Skein1024-952",46040:"Skein1024-960",46041:"Skein1024-968",46042:"Skein1024-976",46043:"Skein1024-984",46044:"Skein1024-992",46045:"Skein1024-1000",46046:"Skein1024-1008",46047:"Skein1024-1016",46048:"Skein1024-1024"}),t.defaultLengths=Object.freeze({17:20,18:32,19:64,86:32,23:28,22:32,21:48,20:64,24:32,25:64,26:28,27:32,28:48,29:64,34:32,45569:1,45570:2,45571:3,45572:4,45573:5,45574:6,45575:7,45576:8,45577:9,45578:10,45579:11,45580:12,45581:13,45582:14,45583:15,45584:16,45585:17,45586:18,45587:19,45588:20,45589:21,45590:22,45591:23,45592:24,45593:25,45594:26,45595:27,45596:28,45597:29,45598:30,45599:31,45600:32,45601:33,45602:34,45603:35,45604:36,45605:37,45606:38,45607:39,45608:40,45609:41,45610:42,45611:43,45612:44,45613:45,45614:46,45615:47,45616:48,45617:49,45618:50,45619:51,45620:52,45621:53,45622:54,45623:55,45624:56,45625:57,45626:58,45627:59,45628:60,45629:61,45630:62,45631:63,45632:64,45633:1,45634:2,45635:3,45636:4,45637:5,45638:6,45639:7,45640:8,45641:9,45642:10,45643:11,45644:12,45645:13,45646:14,45647:15,45648:16,45649:17,45650:18,45651:19,45652:20,45653:21,45654:22,45655:23,45656:24,45657:25,45658:26,45659:27,45660:28,45661:29,45662:30,45663:31,45664:32,45825:1,45826:2,45827:3,45828:4,45829:5,45830:6,45831:7,45832:8,45833:9,45834:10,45835:11,45836:12,45837:13,45838:14,45839:15,45840:16,45841:17,45842:18,45843:19,45844:20,45845:21,45846:22,45847:23,45848:24,45849:25,45850:26,45851:27,45852:28,45853:29,45854:30,45855:31,45856:32,45857:1,45858:2,45859:3,45860:4,45861:5,45862:6,45863:7,45864:8,45865:9,45866:10,45867:11,45868:12,45869:13,45870:14,45871:15,45872:16,45873:17,45874:18,45875:19,45876:20,45877:21,45878:22,45879:23,45880:24,45881:25,45882:26,45883:27,45884:28,45885:29,45886:30,45887:31,45888:32,45889:33,45890:34,45891:35,45892:36,45893:37,45894:38,45895:39,45896:40,45897:41,45898:42,45899:43,45900:44,45901:45,45902:46,45903:47,45904:48,45905:49,45906:50,45907:51,45908:52,45909:53,45910:54,45911:55,45912:56,45913:57,45914:58,45915:59,45916:60,45917:61,45918:62,45919:63,45920:64,45921:1,45922:2,45923:3,45924:4,45925:5,45926:6,45927:7,45928:8,45929:9,45930:10,45931:11,45932:12,45933:13,45934:14,45935:15,45936:16,45937:17,45938:18,45939:19,45940:20,45941:21,45942:22,45943:23,45944:24,45945:25,45946:26,45947:27,45948:28,45949:29,45950:30,45951:31,45952:32,45953:33,45954:34,45955:35,45956:36,45957:37,45958:38,45959:39,45960:40,45961:41,45962:42,45963:43,45964:44,45965:45,45966:46,45967:47,45968:48,45969:49,45970:50,45971:51,45972:52,45973:53,45974:54,45975:55,45976:56,45977:57,45978:58,45979:59,45980:60,45981:61,45982:62,45983:63,45984:64,45985:65,45986:66,45987:67,45988:68,45989:69,45990:70,45991:71,45992:72,45993:73,45994:74,45995:75,45996:76,45997:77,45998:78,45999:79,46e3:80,46001:81,46002:82,46003:83,46004:84,46005:85,46006:86,46007:87,46008:88,46009:89,46010:90,46011:91,46012:92,46013:93,46014:94,46015:95,46016:96,46017:97,46018:98,46019:99,46020:100,46021:101,46022:102,46023:103,46024:104,46025:105,46026:106,46027:107,46028:108,46029:109,46030:110,46031:111,46032:112,46033:113,46034:114,46035:115,46036:116,46037:117,46038:118,46039:119,46040:120,46041:121,46042:122,46043:123,46044:124,46045:125,46046:126,46047:127,46048:128})},function(e,t,r){"use strict";var n=r(1).Buffer,i=r(428);(t=e.exports=a).encode=function(e,t){var r=s(e);return a(r.name,n.from(r.encode(t)))},t.decode=function(e){n.isBuffer(e)&&(e=e.toString());var t=e.substring(0,1);"string"==typeof(e=e.substring(1,e.length))&&(e=n.from(e));var r=s(t);return n.from(r.decode(e.toString()))},t.isEncoded=function(e){if(n.isBuffer(e)&&(e=e.toString()),"[object String]"!==Object.prototype.toString.call(e))return!1;var t=e.substring(0,1);try{return s(t).name}catch(e){return!1}},t.names=Object.freeze(Object.keys(i.names)),t.codes=Object.freeze(Object.keys(i.codes));var o=new Error("Unsupported encoding");function a(e,t){if(!t)throw new Error("requires an encoded buffer");var r=s(e),i=n.from(r.code);return function(e,t){s(e).decode(t.toString())}(r.name,t),n.concat([i,t])}function s(e){var t;if(i.names[e])t=i.names[e];else{if(!i.codes[e])throw o;t=i.codes[e]}if(!t.isImplemented())throw new Error("Base "+e+" is not implemented yet");return t}},function(e,t,r){"use strict";var n=r(429),i=r(191),o=r(430),a=r(431),s=r(432),u=[["base1","1","","1"],["base2","0",i,"01"],["base8","7",i,"01234567"],["base10","9",i,"0123456789"],["base16","f",o,"0123456789abcdef"],["base32","b",a,"abcdefghijklmnopqrstuvwxyz234567"],["base32pad","c",a,"abcdefghijklmnopqrstuvwxyz234567="],["base32hex","v",a,"0123456789abcdefghijklmnopqrstuv"],["base32hexpad","t",a,"0123456789abcdefghijklmnopqrstuv="],["base32z","h",a,"ybndrfg8ejkmcpqxot1uwisza345h769"],["base58flickr","Z",i,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base58btc","z",i,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base64","m",s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],c=u.reduce((function(e,t){return e[t[0]]=new n(t[0],t[1],t[2],t[3]),e}),{}),f=u.reduce((function(e,t){return e[t[1]]=c[t[0]],e}),{});e.exports={names:c,codes:f}},function(e,t,r){"use strict";var n=r(0),i=n(r(8)),o=n(r(9)),a=function(){function e(t,r,n,o){(0,i.default)(this,e),this.name=t,this.code=r,this.alphabet=o,n&&o&&(this.engine=n(o))}return(0,o.default)(e,[{key:"encode",value:function(e){return this.engine.encode(e)}},{key:"decode",value:function(e){return this.engine.decode(e)}},{key:"isImplemented",value:function(){return this.engine}}]),e}();e.exports=a},function(e,t,r){"use strict";function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 a,s=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var o=r(1).Buffer;e.exports=function(e){return{encode:function(e){return"string"==typeof e?o.from(e).toString("hex"):e.toString("hex")},decode:function(t){var r,i=n(t);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(e.indexOf(a)<0)throw new Error("invalid base16 character")}}catch(e){i.e(e)}finally{i.f()}return o.from(t,"hex")}}}},function(e,t,r){"use strict";function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 a,s=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}e.exports=function(e){return{encode:function(t){return function(e,t){var r=e.byteLength,n=new Uint8Array(e),i=t.indexOf("=")===t.length-1;i&&(t=t.substring(0,t.length-1));for(var o=0,a=0,s="",u=0;u<r;u++)for(a=a<<8|n[u],o+=8;o>=5;)s+=t[a>>>o-5&31],o-=5;if(o>0&&(s+=t[a<<5-o&31]),i)for(;s.length%8!=0;)s+="=";return s}("string"==typeof t?Uint8Array.from(t):t,e)},decode:function(t){var r,i=n(t);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(e.indexOf(o)<0)throw new Error("invalid base32 character")}}catch(e){i.e(e)}finally{i.f()}return function(e,t){for(var r=(e=e.replace(new RegExp("=","g"),"")).length,n=0,i=0,o=0,a=new Uint8Array(5*r/8|0),s=0;s<r;s++)i=i<<5|t.indexOf(e[s]),(n+=5)>=8&&(a[o++]=i>>>n-8&255,n-=8);return a.buffer}(t,e)}}}},function(e,t,r){"use strict";function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 a,s=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var o=r(1).Buffer;e.exports=function(e){var t=e.indexOf("=")>-1,r=e.indexOf("-")>-1&&e.indexOf("_")>-1;return{encode:function(e){var n="";n="string"==typeof e?o.from(e).toString("base64"):e.toString("base64"),r&&(n=n.replace(/\+/g,"-").replace(/\//g,"_"));var i=n.indexOf("=");return i>0&&!t&&(n=n.substring(0,i)),n},decode:function(t){var r,i=n(t);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(e.indexOf(a)<0)throw new Error("invalid base64 character")}}catch(e){i.e(e)}finally{i.f()}return o.from(t,"base64")}}}},function(e,t,r){"use strict";var n=r(1).Buffer,i=r(66),o=r(434),a=r(435),s=r(192);(t=e.exports).addPrefix=function(e,t){var r;if(n.isBuffer(e))r=s.varintBufferEncode(e);else{if(!a[e])throw new Error("multicodec not recognized");r=a[e]}return n.concat([r,t])},t.rmPrefix=function(e){return i.decode(e),e.slice(i.decode.bytes)},t.getCodec=function(e){var t=i.decode(e),r=o.get(t);if(void 0===r)throw new Error("Code ".concat(t," not found"));return r},t.getName=function(e){return o.get(e)},t.getNumber=function(e){var t=a[e];if(void 0===t)throw new Error("Codec `"+e+"` not found");return s.varintBufferDecode(t)[0]},t.getCode=function(e){return i.decode(e)},t.getCodeVarint=function(e){var t=a[e];if(void 0===t)throw new Error("Codec `"+e+"` not found");return t},t.getVarint=function(e){return i.encode(e)};var u=r(436);Object.assign(t,u),t.print=r(437)},function(e,t,r){"use strict";var n=r(67),i=new Map;for(var o in n){var a=n[o];i.set(a,o)}e.exports=Object.freeze(i)},function(e,t,r){"use strict";var n=r(67),i=r(192).varintEncode,o={};for(var a in n){var s=n[a];o[a]=i(s)}e.exports=Object.freeze(o)},function(e,t,r){"use strict";for(var n=r(0)(r(30)),i=r(67),o={},a=0,s=Object.entries(i);a<s.length;a++){var u=(0,n.default)(s[a],2),c=u[0],f=u[1];o[c.toUpperCase().replace(/-/g,"_")]=f}e.exports=Object.freeze(o)},function(e,t,r){"use strict";for(var n=r(0)(r(30)),i=r(67),o={},a=0,s=Object.entries(i);a<s.length;a++){var u=(0,n.default)(s[a],2),c=u[0],f=u[1];void 0===o[f]&&(o[f]=c)}e.exports=Object.freeze(o)},function(e,t,r){"use strict";var n=r(109),i=r(1).Buffer,o={checkCIDComponents:function(e){if(null==e)return"null values are not valid CIDs";if(0!==e.version&&1!==e.version)return"Invalid version, must be a number equal to 1 or 0";if("string"!=typeof e.codec)return"codec must be string";if(0===e.version){if("dag-pb"!==e.codec)return"codec must be 'dag-pb' for CIDv0";if("base58btc"!==e.multibaseName)return"multibaseName must be 'base58btc' for CIDv0"}if(!i.isBuffer(e.multihash))return"multihash must be a Buffer";try{n.validate(e.multihash)}catch(e){var t=e.message;return t||(t="Multihash validation failed"),t}}};e.exports=o},function(e,t,r){"use strict";var n=r(0),i=n(r(440)),o=n(r(58)),a=n(r(8)),s=n(r(9)),u=n(r(143)),c=n(r(14)),f=n(r(15)),l=n(r(13));function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,l.default)(e);if(t){var i=(0,l.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,f.default)(this,r)}}e.exports=function(e,t){var r=t.className,n=t.symbolName,i=Symbol.for(n),f=(0,o.default)({},r,function(e,t){(0,c.default)(o,e);var n=d(o);function o(){var e;(0,a.default)(this,o);for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return e=n.call.apply(n,[this].concat(r)),Object.defineProperty((0,u.default)(e),i,{value:!0}),e}return(0,s.default)(o,[{key:t,get:function(){return r}}]),o}(e,Symbol.toStringTag))[r];return f["is".concat(r)]=function(e){return!(!e||!e[i])},f},e.exports.proto=function(e,t){var r=t.className,n=t.symbolName,a=t.withoutNew,s=Symbol.for(n),u=(0,o.default)({},r,(function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(a&&!(this instanceof u))return(0,i.default)(u,r);var o=e.call.apply(e,[this].concat(r))||this;return o&&!o[s]&&Object.defineProperty(o,s,{value:!0}),o}))[r];return u.prototype=Object.create(e.prototype),u.prototype.constructor=u,Object.defineProperty(u.prototype,Symbol.toStringTag,{get:function(){return r}}),u["is".concat(r)]=function(e){return!(!e||!e[s])},u}},function(e,t,r){"use strict";var n=r(142),i=r(441);function o(t,r,a){return i()?(e.exports=o=Reflect.construct.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=o=function(e,t,r){var i=[null];i.push.apply(i,t);var o=new(Function.bind.apply(e,i));return r&&n(o,r.prototype),o},e.exports.__esModule=!0,e.exports.default=e.exports),o.apply(null,arguments)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";var n=r(190);t.cidV0ToV1Base32=function(e){var t=new n(e);return 0===t.version&&(t=t.toV1()),t.toString("base32")}},function(e,t,r){"use strict";(function(t,n){var i=r(0),o=i(r(186)),a=i(r(2)),s=i(r(58)),u=i(r(30));function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){(0,s.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var h=r(34),p=r(38),b=r(444),y=r(83),g=r(495),m=r(496),v=r(17),w=r(12),_=r(230).TransactionFactory,x=r(120).default,O=r(120).Hardfork,k=r(546),P=function(e){return null==e},S=function(e){return null!=e},A=function(){var e=this;h.packageInit(this,arguments),delete this.BatchRequest,delete this.extend;var t=[new p({name:"getNetworkId",call:"net_version",params:0,outputFormatter:parseInt}),new p({name:"getChainId",call:"eth_chainId",params:0,outputFormatter:v.hexToNumber}),new p({name:"getGasPrice",call:"eth_gasPrice",params:0}),new p({name:"getTransactionCount",call:"eth_getTransactionCount",params:2,inputFormatter:[function(e){if(v.isAddress(e))return e;throw new Error("Address "+e+' is not a valid address to get the "transactionCount".')},function(){return"latest"}]}),new p({name:"getBlockByNumber",call:"eth_getBlockByNumber",params:2,inputFormatter:[function(e){return e?v.toHex(e):"latest"},function(){return!1}]})];this._ethereumCall={},t.forEach((function(t){t.attachToObject(e._ethereumCall),t.setRequestManager(e._requestManager)})),this.wallet=new M(this)};function E(e,t){return new Promise((function(r,n){try{(void 0===t.type||t.type<"0x2")&&void 0!==t.gasPrice?r({gasPrice:t.gasPrice}):"0x2"===t.type&&t.maxFeePerGas&&t.maxPriorityFeePerGas?r({maxFeePerGas:t.maxFeePerGas,maxPriorityFeePerGas:t.maxPriorityFeePerGas}):Promise.all([e._ethereumCall.getBlockByNumber(),e._ethereumCall.getGasPrice()]).then((function(e){var n=(0,u.default)(e,2),i=n[0],o=n[1];if("0x2"===t.type&&i&&i.baseFeePerGas){var a,s;t.gasPrice?(a=t.gasPrice,s=t.gasPrice,delete t.gasPrice):(a=t.maxPriorityFeePerGas||"0x9502F900",s=t.maxFeePerGas||v.toHex(v.toBN(i.baseFeePerGas).mul(v.toBN(2)).add(v.toBN(a)))),r({maxFeePerGas:s,maxPriorityFeePerGas:a})}else{if(t.maxPriorityFeePerGas||t.maxFeePerGas)throw Error("Network doesn't support eip-1559");r({gasPrice:o})}})).catch((function(e){n(e)}))}catch(e){n(e)}}))}function M(e){this._accounts=e,this.length=0,this.defaultKeyName="web3js_wallet"}A.prototype._addAccountFunctions=function(e){var t=this;return e.signTransaction=function(r,n){return t.signTransaction(r,e.privateKey,n)},e.sign=function(r){return t.sign(r,e.privateKey)},e.encrypt=function(r,n){return t.encrypt(e.privateKey,r,n)},e},A.prototype.create=function(e){return this._addAccountFunctions(b.create(e||v.randomHex(32)))},A.prototype.privateKeyToAccount=function(e,t){if(e.startsWith("0x")||(e="0x"+e),!t&&66!==e.length)throw new Error("Private key must be 32 bytes long");return this._addAccountFunctions(b.fromPrivate(e))},A.prototype.signTransaction=function(e,t,r){var i=!1,o={},a=!(!e||!(e.chain&&e.hardfork||e.common));if(r=r||function(){},!e)return i=new Error("No transaction object given!"),r(i),Promise.reject(i);if(S(e.common)&&P(e.common.customChain))return i=new Error("If tx.common is provided it must have tx.common.customChain"),r(i),Promise.reject(i);if(S(e.common)&&P(e.common.customChain.chainId))return i=new Error("If tx.common is provided it must have tx.common.customChain and tx.common.customChain.chainId"),r(i),Promise.reject(i);if(S(e.common)&&S(e.common.customChain.chainId)&&S(e.chainId)&&e.chainId!==e.common.customChain.chainId)return i=new Error("Chain Id doesnt match in tx.chainId tx.common.customChain.chainId"),r(i),Promise.reject(i);function s(e){var i=function(e){if(e.common&&e.chain&&e.hardfork)return new Error("Please provide the @ethereumjs/common object or the chain and hardfork property but not all together.");if(e.chain&&!e.hardfork||e.hardfork&&!e.chain)return new Error('When specifying chain and hardfork, both values must be defined. Received "chain": '+e.chain+', "hardfork": '+e.hardfork);if(!(e.gas||e.gasLimit||e.maxPriorityFeePerGas||e.maxFeePerGas))return new Error('"gas" is missing');if(e.gas&&e.gasPrice){if(e.gas<0||e.gasPrice<0)return new Error("Gas or gasPrice is lower than 0")}else if(e.maxPriorityFeePerGas<0||e.maxFeePerGas<0)return new Error("maxPriorityFeePerGas or maxFeePerGas is lower than 0");return e.nonce<0||e.chainId<0?new Error("Nonce or chainId is lower than 0"):void 0}(e);if(i)return r(i),Promise.reject(i);try{var s=w.formatters.inputCallFormatter(Object.assign({},e));s.data=s.data||"0x",s.value=s.value||"0x",s.gasLimit=s.gasLimit||s.gas,"0x1"===s.type&&void 0===s.accessList&&(s.accessList=[]),a?(s.common&&(o.common=x.forCustomChain(s.common.baseChain||"mainnet",{name:s.common.customChain.name||"custom-network",networkId:s.common.customChain.networkId,chainId:s.common.customChain.chainId},s.common.hardfork||O.London),delete s.common),s.chain&&(o.chain=s.chain,delete s.chain),s.hardfork&&(o.hardfork=s.hardfork,delete s.hardfork)):(o.common=x.forCustomChain("mainnet",{name:"custom-network",networkId:s.networkId,chainId:s.chainId},s.hardfork||O.London),delete s.networkId),t.startsWith("0x")&&(t=t.substring(2));var u=_.fromTxData(s,o).sign(n.from(t,"hex")),c=u.validate(!0);if(c.length>0){var f,d="Signer Error: ",h=l(c);try{for(h.s();!(f=h.n()).done;){var p=f.value;d+="".concat(d," ").concat(p,".")}}catch(e){h.e(e)}finally{h.f()}throw new Error(d)}var b="0x"+u.serialize().toString("hex"),y=v.keccak256(b),g={messageHash:"0x"+n.from(u.getMessageToSign(!0)).toString("hex"),v:"0x"+u.v.toString("hex"),r:"0x"+u.r.toString("hex"),s:"0x"+u.s.toString("hex"),rawTransaction:b,transactionHash:y};return r(null,g),g}catch(e){return r(e),Promise.reject(e)}}return e.type=function(e){var t,r=void 0!==e.maxFeePerGas||void 0!==e.maxPriorityFeePerGas;if(void 0!==e.type?t=v.toHex(e.type):void 0===e.type&&r&&(t="0x2"),void 0!==e.gasPrice&&("0x2"===t||r))throw Error("eip-1559 transactions don't support gasPrice");if(("0x1"===t||"0x0"===t)&&r)throw Error("pre-eip-1559 transaction don't support maxFeePerGas/maxPriorityFeePerGas");return r||e.common&&e.common.hardfork&&e.common.hardfork.toLowerCase()===O.London||e.hardfork&&e.hardfork.toLowerCase()===O.London?t="0x2":(e.accessList||e.common&&e.common.hardfork&&e.common.hardfork.toLowerCase()===O.Berlin||e.hardfork&&e.hardfork.toLowerCase()===O.Berlin)&&(t="0x1"),t}(e),void 0!==e.nonce&&void 0!==e.chainId&&(void 0!==e.gasPrice||void 0!==e.maxFeePerGas&&void 0!==e.maxPriorityFeePerGas)&&a?Promise.resolve(s(e)):Promise.all([P(e.common)||P(e.common.customChain.chainId)?P(e.chainId)?this._ethereumCall.getChainId():e.chainId:void 0,P(e.nonce)?this._ethereumCall.getTransactionCount(this.privateKeyToAccount(t).address):e.nonce,P(a)?this._ethereumCall.getNetworkId():1,E(this,e)]).then((function(t){var r=(0,u.default)(t,4),n=r[0],i=r[1],o=r[2],a=r[3];if(P(n)&&P(e.common)&&P(e.common.customChain.chainId)||P(i)||P(o)||P(a))throw new Error('One of the values "chainId", "networkId", "gasPrice", or "nonce" couldn\'t be fetched: '+JSON.stringify(t));return s(f(f(f({},e),P(e.common)||P(e.common.customChain.chainId)?{chainId:n}:{}),{},{nonce:i,networkId:o},a))}))},A.prototype.recoverTransaction=function(e){var t=n.from(e.slice(2),"hex"),r=_.fromSerializedData(t);return v.toChecksumAddress(r.getSenderAddress().toString("hex"))},A.prototype.hashMessage=function(e){var t=v.isHexStrict(e)?e:v.utf8ToHex(e),r=v.hexToBytes(t),i=n.from(r),o="Ethereum Signed Message:\n"+r.length,a=n.from(o),s=n.concat([a,i]);return k.bufferToHex(k.keccak256(s))},A.prototype.sign=function(e,t){if(t.startsWith("0x")||(t="0x"+t),66!==t.length)throw new Error("Private key must be 32 bytes long");var r=this.hashMessage(e),n=b.sign(r,t),i=b.decodeSignature(n);return{message:e,messageHash:r,v:i[0],r:i[1],s:i[2],signature:n}},A.prototype.recover=function(e,t,r){var n=[].slice.apply(arguments);return e&&"object"===(0,a.default)(e)?this.recover(e.messageHash,b.encodeSignature([e.v,e.r,e.s]),!0):(r||(e=this.hashMessage(e)),n.length>=4?(r="boolean"==typeof(r=n.slice(-1)[0])&&!!r,this.recover(e,b.encodeSignature(n.slice(1,4)),r)):b.recover(e,t))},A.prototype.decrypt=function(e,t,r){if("string"!=typeof t)throw new Error("No password given.");var i,s,u=e&&"object"===(0,a.default)(e)?e:JSON.parse(r?e.toLowerCase():e);if(3!==u.version)throw new Error("Not a valid V3 wallet");if("scrypt"===u.crypto.kdf)s=u.crypto.kdfparams,i=g.syncScrypt(n.from(t),n.from(s.salt,"hex"),s.n,s.r,s.p,s.dklen);else{if("pbkdf2"!==u.crypto.kdf)throw new Error("Unsupported key derivation scheme");if("hmac-sha256"!==(s=u.crypto.kdfparams).prf)throw new Error("Unsupported parameters to PBKDF2");i=y.pbkdf2Sync(n.from(t),n.from(s.salt,"hex"),s.c,s.dklen,"sha256")}var c=n.from(u.crypto.ciphertext,"hex");if(v.sha3(n.from([].concat((0,o.default)(i.slice(16,32)),(0,o.default)(c)))).replace("0x","")!==u.crypto.mac)throw new Error("Key derivation failed - possibly wrong password");var f=y.createDecipheriv(u.crypto.cipher,i.slice(0,16),n.from(u.crypto.cipherparams.iv,"hex")),l="0x"+n.from([].concat((0,o.default)(f.update(c)),(0,o.default)(f.final()))).toString("hex");return this.privateKeyToAccount(l,!0)},A.prototype.encrypt=function(e,t,r){var i,a=this.privateKeyToAccount(e,!0),s=(r=r||{}).salt||y.randomBytes(32),u=r.iv||y.randomBytes(16),c=r.kdf||"scrypt",f={dklen:r.dklen||32,salt:s.toString("hex")};if("pbkdf2"===c)f.c=r.c||262144,f.prf="hmac-sha256",i=y.pbkdf2Sync(n.from(t),n.from(f.salt,"hex"),f.c,f.dklen,"sha256");else{if("scrypt"!==c)throw new Error("Unsupported kdf");f.n=r.n||8192,f.r=r.r||8,f.p=r.p||1,i=g.syncScrypt(n.from(t),n.from(f.salt,"hex"),f.n,f.r,f.p,f.dklen)}var l=y.createCipheriv(r.cipher||"aes-128-ctr",i.slice(0,16),u);if(!l)throw new Error("Unsupported cipher");var d=n.from([].concat((0,o.default)(l.update(n.from(a.privateKey.replace("0x",""),"hex"))),(0,o.default)(l.final()))),h=v.sha3(n.from([].concat((0,o.default)(i.slice(16,32)),(0,o.default)(d)))).replace("0x","");return{version:3,id:m.v4({random:r.uuid||y.randomBytes(16)}),address:a.address.toLowerCase().replace("0x",""),crypto:{ciphertext:d.toString("hex"),cipherparams:{iv:u.toString("hex")},cipher:r.cipher||"aes-128-ctr",kdf:c,kdfparams:f,mac:h.toString("hex")}}},M.prototype._findSafeIndex=function(e){return e=e||0,this.hasOwnProperty(e)?this._findSafeIndex(e+1):e},M.prototype._currentIndexes=function(){return Object.keys(this).map((function(e){return parseInt(e)})).filter((function(e){return e<9e20}))},M.prototype.create=function(e,t){for(var r=0;r<e;++r)this.add(this._accounts.create(t).privateKey);return this},M.prototype.add=function(e){return"string"==typeof e&&(e=this._accounts.privateKeyToAccount(e)),this[e.address]?this[e.address]:((e=this._accounts.privateKeyToAccount(e.privateKey)).index=this._findSafeIndex(),this[e.index]=e,this[e.address]=e,this[e.address.toLowerCase()]=e,this.length++,e)},M.prototype.remove=function(e){var t=this[e];return!(!t||!t.address||(this[t.address].privateKey=null,delete this[t.address],this[t.address.toLowerCase()]&&(this[t.address.toLowerCase()].privateKey=null,delete this[t.address.toLowerCase()]),this[t.index].privateKey=null,delete this[t.index],this.length--,0))},M.prototype.clear=function(){var e=this;return this._currentIndexes().forEach((function(t){e.remove(t)})),this},M.prototype.encrypt=function(e,t){var r=this;return this._currentIndexes().map((function(n){return r[n].encrypt(e,t)}))},M.prototype.decrypt=function(e,t){var r=this;return e.forEach((function(e){var n=r._accounts.decrypt(e,t);if(!n)throw new Error("Couldn't decrypt accounts. Password wrong?");r.add(n)})),this},M.prototype.save=function(e,t){return localStorage.setItem(t||this.defaultKeyName,JSON.stringify(this.encrypt(e))),!0},M.prototype.load=function(e,t){var r=localStorage.getItem(t||this.defaultKeyName);if(r)try{r=JSON.parse(r)}catch(e){}return this.decrypt(r||[],e)},function(e){var t;try{t=self.localStorage;var r="__storage_test__";return t.setItem(r,r),t.removeItem(r),!0}catch(e){return e&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&t&&0!==t.length}}("localStorage")||(delete M.prototype.save,delete M.prototype.load),e.exports=A}).call(this,r(7),r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(0)(r(30)),i=r(194),o=r(492),a=r(59),s=(r(493),new a.ec("secp256k1")),u=r(494),c=u.keccak256,f=u.keccak256s,l=function(e){for(var t=f(e.slice(2)),r="0x",n=0;n<40;n++)r+=parseInt(t[n+2],16)>7?e[n+2].toUpperCase():e[n+2];return r},d=function(e){var r=new t(e.slice(2),"hex"),n="0x"+s.keyFromPrivate(r).getPublic(!1,"hex").slice(2),i=c(n);return{address:l("0x"+i.slice(-40)),privateKey:e}},h=function(e){var t=(0,n.default)(e,3),r=t[0],o=t[1],a=t[2];return i.flatten([o,a,r])},p=function(e){return[i.slice(64,i.length(e),e),i.slice(0,32,e),i.slice(32,64,e)]},b=function(e){return function(r,n){var a=s.keyFromPrivate(new t(n.slice(2),"hex")).sign(new t(r.slice(2),"hex"),{canonical:!0});return h([o.fromString(i.fromNumber(e+a.recoveryParam)),i.pad(32,i.fromNat("0x"+a.r.toString(16))),i.pad(32,i.fromNat("0x"+a.s.toString(16)))])}},y=b(27);e.exports={create:function(e){var t=c(i.concat(i.random(32),e||i.random(32))),r=i.concat(i.concat(i.random(32),t),i.random(32)),n=c(r);return d(n)},toChecksum:l,fromPrivate:d,sign:y,makeSigner:b,recover:function(e,r){var n=p(r),o={v:i.toNumber(n[0]),r:n[1].slice(2),s:n[2].slice(2)},a="0x"+s.recoverPubKey(new t(e.slice(2),"hex"),o,o.v<2?o.v:1-o.v%2).encode("hex",!1).slice(2),u=c(a);return l("0x"+u.slice(-40))},encodeSignature:h,decodeSignature:p}}).call(this,r(1).Buffer)},function(e,t,r){"use strict";var n=function(e,t){for(var r=[],n=0;n<e;++n)r.push(t(n));return r};e.exports={generate:n,replicate:function(e,t){return n(e,(function(){return t}))},concat:function(e,t){return e.concat(t)},flatten:function(e){for(var t=[],r=0,n=e.length;r<n;++r)for(var i=0,o=e[r].length;i<o;++i)t.push(e[r][i]);return t},chunksOf:function(e,t){for(var r=[],n=0,i=t.length;n<i;n+=e)r.push(t.slice(n,n+e));return r}}},function(e,t,r){"use strict";var n=r(3),i=r(5).Buffer,o=r(32),a=i.alloc(128);function s(e,t){o.call(this,"digest"),"string"==typeof t&&(t=i.from(t)),this._alg=e,this._key=t,t.length>64?t=e(t):t.length<64&&(t=i.concat([t,a],64));for(var r=this._ipad=i.allocUnsafe(64),n=this._opad=i.allocUnsafe(64),s=0;s<64;s++)r[s]=54^t[s],n[s]=92^t[s];this._hash=[r]}n(s,o),s.prototype._update=function(e){this._hash.push(e)},s.prototype._final=function(){var e=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,e]))},e.exports=s},function(e,t,r){"use strict";e.exports=r(197)},function(e,t,r){"use strict";(function(t){var n,i,o=r(5).Buffer,a=r(199),s=r(200),u=r(201),c=r(202),f=t.crypto&&t.crypto.subtle,l={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},d=[];function h(){return i||(i=t.process&&t.process.nextTick?t.process.nextTick:t.queueMicrotask?t.queueMicrotask:t.setImmediate?t.setImmediate:t.setTimeout)}function p(e,t,r,n,i){return f.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then((function(e){return f.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:i}},e,n<<3)})).then((function(e){return o.from(e)}))}e.exports=function(e,r,i,b,y,g){"function"==typeof y&&(g=y,y=void 0);var m=l[(y=y||"sha1").toLowerCase()];if(m&&"function"==typeof t.Promise){if(a(i,b),e=c(e,s,"Password"),r=c(r,s,"Salt"),"function"!=typeof g)throw new Error("No callback provided to pbkdf2");!function(e,t){e.then((function(e){h()((function(){t(null,e)}))}),(function(e){h()((function(){t(e)}))}))}(function(e){if(t.process&&!t.process.browser)return Promise.resolve(!1);if(!f||!f.importKey||!f.deriveBits)return Promise.resolve(!1);if(void 0!==d[e])return d[e];var r=p(n=n||o.alloc(8),n,10,128,e).then((function(){return!0})).catch((function(){return!1}));return d[e]=r,r}(m).then((function(t){return t?p(e,r,i,b,m):u(e,r,i,b,y)})),g)}else h()((function(){var t;try{t=u(e,r,i,b,y)}catch(e){return g(e)}g(null,t)}))}}).call(this,r(7))},function(e,t,r){"use strict";var n=r(450),i=r(111),o=r(112),a=r(463),s=r(85);function u(e,t,r){if(e=e.toLowerCase(),o[e])return i.createCipheriv(e,t,r);if(a[e])return new n({key:t,iv:r,mode:e});throw new TypeError("invalid suite type")}function c(e,t,r){if(e=e.toLowerCase(),o[e])return i.createDecipheriv(e,t,r);if(a[e])return new n({key:t,iv:r,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}t.createCipher=t.Cipher=function(e,t){var r,n;if(e=e.toLowerCase(),o[e])r=o[e].key,n=o[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");r=8*a[e].key,n=a[e].iv}var i=s(t,!1,r,n);return u(e,i.key,i.iv)},t.createCipheriv=t.Cipheriv=u,t.createDecipher=t.Decipher=function(e,t){var r,n;if(e=e.toLowerCase(),o[e])r=o[e].key,n=o[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");r=8*a[e].key,n=a[e].iv}var i=s(t,!1,r,n);return c(e,i.key,i.iv)},t.createDecipheriv=t.Decipheriv=c,t.listCiphers=t.getCiphers=function(){return Object.keys(a).concat(i.getCiphers())}},function(e,t,r){"use strict";var n=r(32),i=r(451),o=r(3),a=r(5).Buffer,s={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function u(e){n.call(this);var t,r=e.mode.toLowerCase(),i=s[r];t=e.decrypt?"decrypt":"encrypt";var o=e.key;a.isBuffer(o)||(o=a.from(o)),"des-ede"!==r&&"des-ede-cbc"!==r||(o=a.concat([o,o.slice(0,8)]));var u=e.iv;a.isBuffer(u)||(u=a.from(u)),this._des=i.create({key:o,iv:u,type:t})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],e.exports=u,o(u,n),u.prototype._update=function(e){return a.from(this._des.update(e))},u.prototype._final=function(){return a.from(this._des.final())}},function(e,t,r){"use strict";t.utils=r(203),t.Cipher=r(110),t.DES=r(204),t.CBC=r(452),t.EDE=r(453)},function(e,t,r){"use strict";var n=r(19),i=r(3),o={};function a(e){n.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}t.instantiate=function(e){function t(t){e.call(this,t),this._cbcInit()}i(t,e);for(var r=Object.keys(o),n=0;n<r.length;n++){var a=r[n];t.prototype[a]=o[a]}return t.create=function(e){return new t(e)},t},o._cbcInit=function(){var e=new a(this.options.iv);this._cbcState=e},o._update=function(e,t,r,n){var i=this._cbcState,o=this.constructor.super_.prototype,a=i.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)a[s]^=e[t+s];for(o._update.call(this,a,0,r,n),s=0;s<this.blockSize;s++)a[s]=r[n+s]}else{for(o._update.call(this,e,t,r,n),s=0;s<this.blockSize;s++)r[n+s]^=a[s];for(s=0;s<this.blockSize;s++)a[s]=e[t+s]}}},function(e,t,r){"use strict";var n=r(19),i=r(3),o=r(110),a=r(204);function s(e,t){n.equal(t.length,24,"Invalid key length");var r=t.slice(0,8),i=t.slice(8,16),o=t.slice(16,24);this.ciphers="encrypt"===e?[a.create({type:"encrypt",key:r}),a.create({type:"decrypt",key:i}),a.create({type:"encrypt",key:o})]:[a.create({type:"decrypt",key:o}),a.create({type:"encrypt",key:i}),a.create({type:"decrypt",key:r})]}function u(e){o.call(this,e);var t=new s(this.type,this.options.key);this._edeState=t}i(u,o),e.exports=u,u.create=function(e){return new u(e)},u.prototype._update=function(e,t,r,n){var i=this._edeState;i.ciphers[0]._update(e,t,r,n),i.ciphers[1]._update(r,n,r,n),i.ciphers[2]._update(r,n,r,n)},u.prototype._pad=a.prototype._pad,u.prototype._unpad=a.prototype._unpad},function(e,t,r){"use strict";var n=r(112),i=r(208),o=r(5).Buffer,a=r(209),s=r(32),u=r(84),c=r(85);function f(e,t,r){s.call(this),this._cache=new d,this._cipher=new u.AES(t),this._prev=o.from(r),this._mode=e,this._autopadding=!0}r(3)(f,s),f.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get();)r=this._mode.encrypt(this,t),n.push(r);return o.concat(n)};var l=o.alloc(16,16);function d(){this.cache=o.allocUnsafe(0)}function h(e,t,r){var s=n[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=o.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof r&&(r=o.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw new TypeError("invalid iv length "+r.length);return"stream"===s.type?new a(s.module,t,r):"auth"===s.type?new i(s.module,t,r):new f(s.module,t,r)}f.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(l))throw this._cipher.scrub(),new Error("data not multiple of block length")},f.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},d.prototype.add=function(e){this.cache=o.concat([this.cache,e])},d.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},d.prototype.flush=function(){for(var e=16-this.cache.length,t=o.allocUnsafe(e),r=-1;++r<e;)t.writeUInt8(e,r);return o.concat([this.cache,t])},t.createCipheriv=h,t.createCipher=function(e,t){var r=n[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=c(t,!1,r.key,r.iv);return h(e,i.key,i.iv)}},function(e,t,r){"use strict";t.encrypt=function(e,t){return e._cipher.encryptBlock(t)},t.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},function(e,t,r){"use strict";var n=r(68);t.encrypt=function(e,t){var r=n(t,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev},t.decrypt=function(e,t){var r=e._prev;e._prev=t;var i=e._cipher.decryptBlock(t);return n(i,r)}},function(e,t,r){"use strict";var n=r(5).Buffer,i=r(68);function o(e,t,r){var o=t.length,a=i(t,e._cache);return e._cache=e._cache.slice(o),e._prev=n.concat([e._prev,r?t:a]),a}t.encrypt=function(e,t,r){for(var i,a=n.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=n.allocUnsafe(0)),!(e._cache.length<=t.length)){a=n.concat([a,o(e,t,r)]);break}i=e._cache.length,a=n.concat([a,o(e,t.slice(0,i),r)]),t=t.slice(i)}return a}},function(e,t,r){"use strict";var n=r(5).Buffer;function i(e,t,r){var i=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=n.concat([e._prev.slice(1),n.from([r?t:i])]),i}t.encrypt=function(e,t,r){for(var o=t.length,a=n.allocUnsafe(o),s=-1;++s<o;)a[s]=i(e,t[s],r);return a}},function(e,t,r){"use strict";var n=r(5).Buffer;function i(e,t,r){for(var n,i,a=-1,s=0;++a<8;)n=t&1<<7-a?128:0,s+=(128&(i=e._cipher.encryptBlock(e._prev)[0]^n))>>a%8,e._prev=o(e._prev,r?n:i);return s}function o(e,t){var r=e.length,i=-1,o=n.allocUnsafe(e.length);for(e=n.concat([e,n.from([t])]);++i<r;)o[i]=e[i]<<1|e[i+1]>>7;return o}t.encrypt=function(e,t,r){for(var o=t.length,a=n.allocUnsafe(o),s=-1;++s<o;)a[s]=i(e,t[s],r);return a}},function(e,t,r){"use strict";(function(e){var n=r(68);function i(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}t.encrypt=function(t,r){for(;t._cache.length<r.length;)t._cache=e.concat([t._cache,i(t)]);var o=t._cache.slice(0,r.length);return t._cache=t._cache.slice(r.length),n(r,o)}}).call(this,r(1).Buffer)},function(e,t,r){"use strict";var n=r(5).Buffer,i=n.alloc(16,0);function o(e){var t=n.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function a(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}a.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},a.prototype._multiply=function(){for(var e,t,r,n=[(e=this.h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],i=[0,0,0,0],a=-1;++a<128;){for(0!=(this.state[~~(a/8)]&1<<7-a%8)&&(i[0]^=n[0],i[1]^=n[1],i[2]^=n[2],i[3]^=n[3]),r=0!=(1&n[3]),t=3;t>0;t--)n[t]=n[t]>>>1|(1&n[t-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=n[0]^225<<24)}this.state=o(i)},a.prototype.update=function(e){var t;for(this.cache=n.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},a.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(o([0,e,0,t])),this.state},e.exports=a},function(e,t,r){"use strict";var n=r(208),i=r(5).Buffer,o=r(112),a=r(209),s=r(32),u=r(84),c=r(85);function f(e,t,r){s.call(this),this._cache=new l,this._last=void 0,this._cipher=new u.AES(t),this._prev=i.from(r),this._mode=e,this._autopadding=!0}function l(){this.cache=i.allocUnsafe(0)}function d(e,t,r){var s=o[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=i.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof t&&(t=i.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===s.type?new a(s.module,t,r,!0):"auth"===s.type?new n(s.module,t,r,!0):new f(s.module,t,r)}r(3)(f,s),f.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),n.push(r);return i.concat(n)},f.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");for(var r=-1;++r<t;)if(e[r+(16-t)]!==t)throw new Error("unable to decrypt data");if(16!==t)return e.slice(0,16-t)}(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},f.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},l.prototype.add=function(e){this.cache=i.concat([this.cache,e])},l.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},l.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var r=o[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=c(t,!1,r.key,r.iv);return d(e,n.key,n.iv)},t.createDecipheriv=d},function(e,t,r){"use strict";t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},function(e,t,r){"use strict";(function(e){var n=r(210),i=r(465),o=r(466),a={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(t){var r=new e(i[t].prime,"hex"),n=new e(i[t].gen,"hex");return new o(r,n)},t.createDiffieHellman=t.DiffieHellman=function t(r,i,s,u){return e.isBuffer(i)||void 0===a[i]?t(r,"binary",i,s):(i=i||"binary",u=u||"binary",s=s||new e([2]),e.isBuffer(s)||(s=new e(s,u)),"number"==typeof r?new o(n(r,s),s,!0):(e.isBuffer(r)||(r=new e(r,i)),new o(r,s,!0)))}}).call(this,r(1).Buffer)},function(e){e.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},function(e,t,r){"use strict";(function(t){var n=r(4),i=new(r(211)),o=new n(24),a=new n(11),s=new n(10),u=new n(3),c=new n(7),f=r(210),l=r(31);function d(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this._pub=new n(e),this}function h(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this._priv=new n(e),this}e.exports=b;var p={};function b(e,t,r){this.setGenerator(t),this.__prime=new n(e),this._prime=n.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=d,this.setPrivateKey=h):this._primeCode=8}function y(e,r){var n=new t(e.toArray());return r?n.toString(r):n}Object.defineProperty(b.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var r=t.toString("hex"),n=[r,e.toString(16)].join("_");if(n in p)return p[n];var l,d=0;if(e.isEven()||!f.simpleSieve||!f.fermatTest(e)||!i.test(e))return d+=1,d+="02"===r||"05"===r?8:4,p[n]=d,d;switch(i.test(e.shrn(1))||(d+=2),r){case"02":e.mod(o).cmp(a)&&(d+=8);break;case"05":(l=e.mod(s)).cmp(u)&&l.cmp(c)&&(d+=8);break;default:d+=4}return p[n]=d,d}(this.__prime,this.__gen)),this._primeCode}}),b.prototype.generateKeys=function(){return this._priv||(this._priv=new n(l(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},b.prototype.computeSecret=function(e){var r=(e=(e=new n(e)).toRed(this._prime)).redPow(this._priv).fromRed(),i=new t(r.toArray()),o=this.getPrime();if(i.length<o.length){var a=new t(o.length-i.length);a.fill(0),i=t.concat([a,i])}return i},b.prototype.getPublicKey=function(e){return y(this._pub,e)},b.prototype.getPrivateKey=function(e){return y(this._priv,e)},b.prototype.getPrime=function(e){return y(this.__prime,e)},b.prototype.getGenerator=function(e){return y(this._gen,e)},b.prototype.setGenerator=function(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this.__gen=e,this._gen=new n(e),this}}).call(this,r(1).Buffer)},function(e,t,r){"use strict";var n=r(5).Buffer,i=r(47),o=r(468),a=r(3),s=r(476),u=r(486),c=r(197);function f(e){o.Writable.call(this);var t=c[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function l(e){o.Writable.call(this);var t=c[e];if(!t)throw new Error("Unknown message digest");this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function d(e){return new f(e)}function h(e){return new l(e)}Object.keys(c).forEach((function(e){c[e].id=n.from(c[e].id,"hex"),c[e.toLowerCase()]=c[e]})),a(f,o.Writable),f.prototype._write=function(e,t,r){this._hash.update(e),r()},f.prototype.update=function(e,t){return"string"==typeof e&&(e=n.from(e,t)),this._hash.update(e),this},f.prototype.sign=function(e,t){this.end();var r=this._hash.digest(),n=s(r,e,this._hashType,this._signType,this._tag);return t?n.toString(t):n},a(l,o.Writable),l.prototype._write=function(e,t,r){this._hash.update(e),r()},l.prototype.update=function(e,t){return"string"==typeof e&&(e=n.from(e,t)),this._hash.update(e),this},l.prototype.verify=function(e,t,r){"string"==typeof t&&(t=n.from(t,r)),this.end();var i=this._hash.digest();return u(t,i,e,this._signType,this._tag)},e.exports={Sign:d,Verify:h,createSign:d,createVerify:h}},function(e,t,r){"use strict";(t=e.exports=r(212)).Stream=t,t.Readable=t,t.Writable=r(216),t.Duplex=r(52),t.Transform=r(217),t.PassThrough=r(474),t.finished=r(113),t.pipeline=r(475)},function(e,t){},function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=r(1).Buffer,s=r(471).inspect,u=s&&s.custom||"inspect";e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,r;return t=e,(r=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return a.alloc(0);for(var t,r,n,i=a.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,r=i,n=s,a.prototype.copy.call(t,r,n),s+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=a.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:u,value:function(e,t){return s(this,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},t,{depth:0,customInspect:!1}))}}])&&o(t.prototype,r),e}()},function(e,t){},function(e,t,r){"use strict";(function(t){var n;function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(113),a=Symbol("lastResolve"),s=Symbol("lastReject"),u=Symbol("error"),c=Symbol("ended"),f=Symbol("lastPromise"),l=Symbol("handlePromise"),d=Symbol("stream");function h(e,t){return{value:e,done:t}}function p(e){var t=e[a];if(null!==t){var r=e[d].read();null!==r&&(e[f]=null,e[a]=null,e[s]=null,t(h(r,!1)))}}function b(e){t.nextTick(p,e)}var y=Object.getPrototypeOf((function(){})),g=Object.setPrototypeOf((i(n={get stream(){return this[d]},next:function(){var e=this,r=this[u];if(null!==r)return Promise.reject(r);if(this[c])return Promise.resolve(h(void 0,!0));if(this[d].destroyed)return new Promise((function(r,n){t.nextTick((function(){e[u]?n(e[u]):r(h(void 0,!0))}))}));var n,i=this[f];if(i)n=new Promise(function(e,t){return function(r,n){e.then((function(){t[c]?r(h(void 0,!0)):t[l](r,n)}),n)}}(i,this));else{var o=this[d].read();if(null!==o)return Promise.resolve(h(o,!1));n=new Promise(this[l])}return this[f]=n,n}},Symbol.asyncIterator,(function(){return this})),i(n,"return",(function(){var e=this;return new Promise((function(t,r){e[d].destroy(null,(function(e){e?r(e):t(h(void 0,!0))}))}))})),n),y);e.exports=function(e){var t,r=Object.create(g,(i(t={},d,{value:e,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,u,{value:null,writable:!0}),i(t,c,{value:e._readableState.endEmitted,writable:!0}),i(t,l,{value:function(e,t){var n=r[d].read();n?(r[f]=null,r[a]=null,r[s]=null,e(h(n,!1))):(r[a]=e,r[s]=t)},writable:!0}),t));return r[f]=null,o(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[s];return null!==t&&(r[f]=null,r[a]=null,r[s]=null,t(e)),void(r[u]=e)}var n=r[a];null!==n&&(r[f]=null,r[a]=null,r[s]=null,n(h(void 0,!0))),r[c]=!0})),e.on("readable",b.bind(null,r)),r}}).call(this,r(6))},function(e,t,r){"use strict";e.exports=function(){throw new Error("Readable.from is not available in the browser")}},function(e,t,r){"use strict";e.exports=i;var n=r(217);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(3)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},function(e,t,r){"use strict";var n,i=r(51).codes,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function u(e,t,i,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);var s=!1;e.on("close",(function(){s=!0})),void 0===n&&(n=r(113)),n(e,{readable:t,writable:i},(function(e){if(e)return o(e);s=!0,o()}));var u=!1;return function(t){if(!s&&!u)return u=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void o(t||new a("pipe"))}}function c(e){e()}function f(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,i=function(e){return e.length?"function"!=typeof e[e.length-1]?s:e.pop():s}(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new o("streams");var a=t.map((function(e,r){var o=r<t.length-1;return u(e,o,r>0,(function(e){n||(n=e),e&&a.forEach(c),o||(a.forEach(c),i(n))}))}));return t.reduce(f)}},function(e,t,r){"use strict";var n=r(5).Buffer,i=r(195),o=r(114),a=r(59).ec,s=r(4),u=r(86),c=r(223);function f(e,t,r,o){if((e=n.from(e.toArray())).length<t.byteLength()){var a=n.alloc(t.byteLength()-e.length);e=n.concat([a,e])}var s=r.length,u=function(e,t){e=(e=l(e,t)).mod(t);var r=n.from(e.toArray());if(r.length<t.byteLength()){var i=n.alloc(t.byteLength()-r.length);r=n.concat([i,r])}return r}(r,t),c=n.alloc(s);c.fill(1);var f=n.alloc(s);return f=i(o,f).update(c).update(n.from([0])).update(e).update(u).digest(),c=i(o,f).update(c).digest(),{k:f=i(o,f).update(c).update(n.from([1])).update(e).update(u).digest(),v:c=i(o,f).update(c).digest()}}function l(e,t){var r=new s(e),n=(e.length<<3)-t.bitLength();return n>0&&r.ishrn(n),r}function d(e,t,r){var o,a;do{for(o=n.alloc(0);8*o.length<e.bitLength();)t.v=i(r,t.k).update(t.v).digest(),o=n.concat([o,t.v]);a=l(o,e),t.k=i(r,t.k).update(t.v).update(n.from([0])).digest(),t.v=i(r,t.k).update(t.v).digest()}while(-1!==a.cmp(e));return a}function h(e,t,r,n){return e.toRed(s.mont(r)).redPow(t).fromRed().mod(n)}e.exports=function(e,t,r,i,p){var b=u(t);if(b.curve){if("ecdsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");return function(e,t){var r=c[t.curve.join(".")];if(!r)throw new Error("unknown curve "+t.curve.join("."));var i=new a(r).keyFromPrivate(t.privateKey).sign(e);return n.from(i.toDER())}(e,b)}if("dsa"===b.type){if("dsa"!==i)throw new Error("wrong private key type");return function(e,t,r){for(var i,o=t.params.priv_key,a=t.params.p,u=t.params.q,c=t.params.g,p=new s(0),b=l(e,u).mod(u),y=!1,g=f(o,u,e,r);!1===y;)p=h(c,i=d(u,g,r),a,u),0===(y=i.invm(u).imul(b.add(o.mul(p))).mod(u)).cmpn(0)&&(y=!1,p=new s(0));return function(e,t){e=e.toArray(),t=t.toArray(),128&e[0]&&(e=[0].concat(e)),128&t[0]&&(t=[0].concat(t));var r=[48,e.length+t.length+4,2,e.length];return r=r.concat(e,[2,t.length],t),n.from(r)}(p,y)}(e,b,r)}if("rsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");e=n.concat([p,e]);for(var y=b.modulus.byteLength(),g=[0,1];e.length+g.length+1<y;)g.push(255);g.push(0);for(var m=-1;++m<e.length;)g.push(e[m]);return o(g,b)},e.exports.getKey=f,e.exports.makeKey=d},function(e,t,r){"use strict";var n=r(218);t.certificate=r(483);var i=n.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));t.RSAPrivateKey=i;var o=n.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));t.RSAPublicKey=o;var a=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())}));t.PublicKey=a;var s=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),u=n.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())}));t.PrivateKey=u;var c=n.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));t.EncryptedPrivateKey=c;var f=n.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));t.DSAPrivateKey=f,t.DSAparam=n.define("DSAparam",(function(){this.int()}));var l=n.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(d),this.key("publicKey").optional().explicit(1).bitstr())}));t.ECPrivateKey=l;var d=n.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));t.signature=n.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},function(e,t,r){"use strict";var n=r(219),i=r(221),o=r(3);function a(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}t.define=function(e,t){return new a(e,t)},a.prototype._createNamed=function(e){var t=this.name;function r(e){this._initNamed(e,t)}return o(r,e),r.prototype._initNamed=function(t,r){e.call(this,t,r)},new r(this)},a.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(i[e])),this.decoders[e]},a.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},a.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(n[e])),this.encoders[e]},a.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}},function(e,t,r){"use strict";var n=r(3),i=r(220);function o(e){i.call(this,e),this.enc="pem"}n(o,i),e.exports=o,o.prototype.encode=function(e,t){for(var r=i.prototype.encode.call(this,e).toString("base64"),n=["-----BEGIN "+t.label+"-----"],o=0;o<r.length;o+=64)n.push(r.slice(o,o+64));return n.push("-----END "+t.label+"-----"),n.join("\n")}},function(e,t,r){"use strict";var n=r(3),i=r(115).Buffer,o=r(222);function a(e){o.call(this,e),this.enc="pem"}n(a,o),e.exports=a,a.prototype.decode=function(e,t){for(var r=e.toString().split(/[\r\n]+/g),n=t.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,u=-1,c=0;c<r.length;c++){var f=r[c].match(a);if(null!==f&&f[2]===n){if(-1!==s){if("END"!==f[1])break;u=c;break}if("BEGIN"!==f[1])break;s=c}}if(-1===s||-1===u)throw new Error("PEM section not found for: "+n);var l=r.slice(s+1,u).join("");l.replace(/[^a-z0-9+/=]+/gi,"");var d=i.from(l,"base64");return o.prototype.decode.call(this,d,t)}},function(e,t,r){"use strict";var n=t;n.Reporter=r(117).Reporter,n.DecoderBuffer=r(69).DecoderBuffer,n.EncoderBuffer=r(69).EncoderBuffer,n.Node=r(116)},function(e,t,r){"use strict";var n=t;n._reverse=function(e){var t={};return Object.keys(e).forEach((function(r){(0|r)==r&&(r|=0);var n=e[r];t[n]=r})),t},n.der=r(118)},function(e,t,r){"use strict";var n=r(218),i=n.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),o=n.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),a=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),s=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())})),u=n.define("RelativeDistinguishedName",(function(){this.setof(o)})),c=n.define("RDNSequence",(function(){this.seqof(u)})),f=n.define("Name",(function(){this.choice({rdnSequence:this.use(c)})})),l=n.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))})),d=n.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),h=n.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(f),this.key("validity").use(l),this.key("subject").use(f),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(d).optional())})),p=n.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(h),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr())}));e.exports=p},function(e){e.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')},function(e,t,r){"use strict";var n=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,a=r(85),s=r(111),u=r(5).Buffer;e.exports=function(e,t){var r,c=e.toString(),f=c.match(n);if(f){var l="aes"+f[1],d=u.from(f[2],"hex"),h=u.from(f[3].replace(/[\r\n]/g,""),"base64"),p=a(t,d.slice(0,8),parseInt(f[1],10)).key,b=[],y=s.createDecipheriv(l,p,d);b.push(y.update(h)),b.push(y.final()),r=u.concat(b)}else{var g=c.match(o);r=u.from(g[2].replace(/[\r\n]/g,""),"base64")}return{tag:c.match(i)[1],data:r}}},function(e,t,r){"use strict";var n=r(5).Buffer,i=r(4),o=r(59).ec,a=r(86),s=r(223);function u(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=t)throw new Error("invalid sig")}e.exports=function(e,t,r,c,f){var l=a(r);if("ec"===l.type){if("ecdsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");return function(e,t,r){var n=s[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var i=new o(n),a=r.data.subjectPrivateKey.data;return i.verify(t,e,a)}(e,t,l)}if("dsa"===l.type){if("dsa"!==c)throw new Error("wrong public key type");return function(e,t,r){var n=r.data.p,o=r.data.q,s=r.data.g,c=r.data.pub_key,f=a.signature.decode(e,"der"),l=f.s,d=f.r;u(l,o),u(d,o);var h=i.mont(n),p=l.invm(o);return 0===s.toRed(h).redPow(new i(t).mul(p).mod(o)).fromRed().mul(c.toRed(h).redPow(d.mul(p).mod(o)).fromRed()).mod(n).mod(o).cmp(d)}(e,t,l)}if("rsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");t=n.concat([f,t]);for(var d=l.modulus.byteLength(),h=[1],p=0;t.length+h.length+2<d;)h.push(255),p++;h.push(0);for(var b=-1;++b<t.length;)h.push(t[b]);h=n.from(h);var y=i.mont(l.modulus);e=(e=new i(e).toRed(y)).redPow(new i(l.publicExponent)),e=n.from(e.fromRed().toArray());var g=p<8?1:0;for(d=Math.min(e.length,h.length),e.length!==h.length&&(g=1),b=-1;++b<d;)g|=e[b]^h[b];return 0===g}},function(e,t,r){"use strict";(function(t){var n=r(59),i=r(4);e.exports=function(e){return new a(e)};var o={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function a(e){this.curveType=o[e],this.curveType||(this.curveType={name:e}),this.curve=new n.ec(this.curveType.name),this.keys=void 0}function s(e,r,n){Array.isArray(e)||(e=e.toArray());var i=new t(e);if(n&&i.length<n){var o=new t(n-i.length);o.fill(0),i=t.concat([o,i])}return r?i.toString(r):i}o.p224=o.secp224r1,o.p256=o.secp256r1=o.prime256v1,o.p192=o.secp192r1=o.prime192v1,o.p384=o.secp384r1,o.p521=o.secp521r1,a.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},a.prototype.computeSecret=function(e,r,n){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),s(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),n,this.curveType.byteLength)},a.prototype.getPublicKey=function(e,t){var r=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(r[r.length-1]%2?r[0]=7:r[0]=6),s(r,e)},a.prototype.getPrivateKey=function(e){return s(this.keys.getPrivate(),e)},a.prototype.setPublicKey=function(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this.keys._importPublic(e),this},a.prototype.setPrivateKey=function(e,r){r=r||"utf8",t.isBuffer(e)||(e=new t(e,r));var n=new i(e);return n=n.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(n),this}}).call(this,r(1).Buffer)},function(e,t,r){"use strict";t.publicEncrypt=r(489),t.privateDecrypt=r(490),t.privateEncrypt=function(e,r){return t.publicEncrypt(e,r,!0)},t.publicDecrypt=function(e,r){return t.privateDecrypt(e,r,!0)}},function(e,t,r){"use strict";var n=r(86),i=r(31),o=r(47),a=r(224),s=r(225),u=r(4),c=r(226),f=r(114),l=r(5).Buffer;e.exports=function(e,t,r){var d;d=e.padding?e.padding:r?1:4;var h,p=n(e);if(4===d)h=function(e,t){var r=e.modulus.byteLength(),n=t.length,c=o("sha1").update(l.alloc(0)).digest(),f=c.length,d=2*f;if(n>r-d-2)throw new Error("message too long");var h=l.alloc(r-n-d-2),p=r-f-1,b=i(f),y=s(l.concat([c,h,l.alloc(1,1),t],p),a(b,p)),g=s(b,a(y,f));return new u(l.concat([l.alloc(1),g,y],r))}(p,t);else if(1===d)h=function(e,t,r){var n,o=t.length,a=e.modulus.byteLength();if(o>a-11)throw new Error("message too long");return n=r?l.alloc(a-o-3,255):function(e){for(var t,r=l.allocUnsafe(e),n=0,o=i(2*e),a=0;n<e;)a===o.length&&(o=i(2*e),a=0),(t=o[a++])&&(r[n++]=t);return r}(a-o-3),new u(l.concat([l.from([0,r?1:2]),n,l.alloc(1),t],a))}(p,t,r);else{if(3!==d)throw new Error("unknown padding");if((h=new u(t)).cmp(p.modulus)>=0)throw new Error("data too long for modulus")}return r?f(h,p):c(h,p)}},function(e,t,r){"use strict";var n=r(86),i=r(224),o=r(225),a=r(4),s=r(114),u=r(47),c=r(226),f=r(5).Buffer;e.exports=function(e,t,r){var l;l=e.padding?e.padding:r?1:4;var d,h=n(e),p=h.modulus.byteLength();if(t.length>p||new a(t).cmp(h.modulus)>=0)throw new Error("decryption error");d=r?c(new a(t),h):s(t,h);var b=f.alloc(p-d.length);if(d=f.concat([b,d],p),4===l)return function(e,t){var r=e.modulus.byteLength(),n=u("sha1").update(f.alloc(0)).digest(),a=n.length;if(0!==t[0])throw new Error("decryption error");var s=t.slice(1,a+1),c=t.slice(a+1),l=o(s,i(c,a)),d=o(c,i(l,r-a-1));if(function(e,t){e=f.from(e),t=f.from(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));for(var i=-1;++i<n;)r+=e[i]^t[i];return r}(n,d.slice(0,a)))throw new Error("decryption error");for(var h=a;0===d[h];)h++;if(1!==d[h++])throw new Error("decryption error");return d.slice(h)}(h,d);if(1===l)return function(e,t,r){for(var n=t.slice(0,2),i=2,o=0;0!==t[i++];)if(i>=t.length){o++;break}var a=t.slice(2,i-1);if(("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&o++,a.length<8&&o++,o)throw new Error("decryption error");return t.slice(i)}(0,d,r);if(3===l)return d;throw new Error("unknown padding")}},function(e,t,r){"use strict";(function(e,n){function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=r(5),a=r(31),s=o.Buffer,u=o.kMaxLength,c=e.crypto||e.msCrypto,f=Math.pow(2,32)-1;function l(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>f||e<0)throw new TypeError("offset must be a uint32");if(e>u||e>t)throw new RangeError("offset out of range")}function d(e,t,r){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>f||e<0)throw new TypeError("size must be a uint32");if(e+t>r||e>u)throw new RangeError("buffer too small")}function h(e,t,r,i){if(n.browser){var o=e.buffer,s=new Uint8Array(o,t,r);return c.getRandomValues(s),i?void n.nextTick((function(){i(null,e)})):e}if(!i)return a(r).copy(e,t),e;a(r,(function(r,n){if(r)return i(r);n.copy(e,t),i(null,e)}))}c&&c.getRandomValues||!n.browser?(t.randomFill=function(t,r,n,i){if(!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof r)i=r,r=0,n=t.length;else if("function"==typeof n)i=n,n=t.length-r;else if("function"!=typeof i)throw new TypeError('"cb" argument must be a function');return l(r,t.length),d(n,r,t.length),h(t,r,n,i)},t.randomFillSync=function(t,r,n){if(void 0===r&&(r=0),!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return l(r,t.length),void 0===n&&(n=t.length-r),d(n,r,t.length),h(t,r,n)}):(t.randomFill=i,t.randomFillSync=i)}).call(this,r(7),r(6))},function(e,t,r){"use strict";var n=r(4),i=r(194),o=function(e){return new n(e.slice(2),16)},a=function(e){var t="0x"+("0x"===e.slice(0,2)?new n(e.slice(2),16):new n(e,10)).toString("hex");return"0x0"===t?"0x":t},s=function(e){return"string"==typeof e?/^0x/.test(e)?e:"0x"+e:"0x"+new n(e).toString("hex")},u=function(e){return o(e).toNumber()},c=function(e){return function(t,r){return"0x"+o(t)[e](o(r)).toString("hex")}},f=c("add"),l=c("mul"),d=c("div"),h=c("sub");e.exports={toString:function(e){return o(e).toString(10)},fromString:a,toNumber:u,fromNumber:s,toEther:function(e){return u(d(e,a("10000000000")))/1e8},fromEther:function(e){return l(s(Math.floor(1e8*e)),a("10000000000"))},toUint256:function(e){return i.pad(32,e)},add:f,mul:l,div:d,sub:h}},function(e,t,r){"use strict";e.exports={encode:function(e){var t=function(e){return(t=e.toString(16)).length%2==0?t:"0"+t;var t},r=function(e,r){return e<56?t(r+e):t(r+t(e).length/2+55)+t(e)};return"0x"+function e(t){if("string"==typeof t){var n=t.slice(2);return(2!=n.length||n>="80"?r(n.length/2,128):"")+n}var i=t.map(e).join("");return r(i.length/2,192)+i}(e)},decode:function(e){var t=2,r=function(){if(t>=e.length)throw"";var r=e.slice(t,t+2);return r<"80"?(t+=2,"0x"+r):r<"c0"?i():o()},n=function(){var r=parseInt(e.slice(t,t+=2),16)%64;return r<56?r:parseInt(e.slice(t,t+=2*(r-55)),16)},i=function(){var r=n();return"0x"+e.slice(t,t+=2*r)},o=function(){for(var e=2*n()+t,i=[];t<e;)i.push(r());return i};try{return r()}catch(e){return[]}}}},function(e,t,r){"use strict";var n="0123456789abcdef".split(""),i=[1,256,65536,16777216],o=[0,8,16,24],a=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],s=function(e){var t,r,n,i,o,s,u,c,f,l,d,h,p,b,y,g,m,v,w,_,x,O,k,P,S,A,E,M,j,T,B,I,N,R,C,U,L,D,H,F,V,z,q,K,W,G,X,Z,J,Y,Q,$,ee,te,re,ne,ie,oe,ae,se,ue,ce,fe;for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],s=e[2]^e[12]^e[22]^e[32]^e[42],u=e[3]^e[13]^e[23]^e[33]^e[43],c=e[4]^e[14]^e[24]^e[34]^e[44],f=e[5]^e[15]^e[25]^e[35]^e[45],l=e[6]^e[16]^e[26]^e[36]^e[46],d=e[7]^e[17]^e[27]^e[37]^e[47],t=(h=e[8]^e[18]^e[28]^e[38]^e[48])^(s<<1|u>>>31),r=(p=e[9]^e[19]^e[29]^e[39]^e[49])^(u<<1|s>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=i^(c<<1|f>>>31),r=o^(f<<1|c>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=s^(l<<1|d>>>31),r=u^(d<<1|l>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=c^(h<<1|p>>>31),r=f^(p<<1|h>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=l^(i<<1|o>>>31),r=d^(o<<1|i>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,b=e[0],y=e[1],G=e[11]<<4|e[10]>>>28,X=e[10]<<4|e[11]>>>28,M=e[20]<<3|e[21]>>>29,j=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ue=e[30]<<9|e[31]>>>23,z=e[40]<<18|e[41]>>>14,q=e[41]<<18|e[40]>>>14,R=e[2]<<1|e[3]>>>31,C=e[3]<<1|e[2]>>>31,g=e[13]<<12|e[12]>>>20,m=e[12]<<12|e[13]>>>20,Z=e[22]<<10|e[23]>>>22,J=e[23]<<10|e[22]>>>22,T=e[33]<<13|e[32]>>>19,B=e[32]<<13|e[33]>>>19,ce=e[42]<<2|e[43]>>>30,fe=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,re=e[4]<<30|e[5]>>>2,U=e[14]<<6|e[15]>>>26,L=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,Y=e[34]<<15|e[35]>>>17,Q=e[35]<<15|e[34]>>>17,I=e[45]<<29|e[44]>>>3,N=e[44]<<29|e[45]>>>3,P=e[6]<<28|e[7]>>>4,S=e[7]<<28|e[6]>>>4,ne=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,D=e[26]<<25|e[27]>>>7,H=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,x=e[37]<<21|e[36]>>>11,$=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,K=e[8]<<27|e[9]>>>5,W=e[9]<<27|e[8]>>>5,A=e[18]<<20|e[19]>>>12,E=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,F=e[38]<<8|e[39]>>>24,V=e[39]<<8|e[38]>>>24,O=e[48]<<14|e[49]>>>18,k=e[49]<<14|e[48]>>>18,e[0]=b^~g&v,e[1]=y^~m&w,e[10]=P^~A&M,e[11]=S^~E&j,e[20]=R^~U&D,e[21]=C^~L&H,e[30]=K^~G&Z,e[31]=W^~X&J,e[40]=te^~ne&oe,e[41]=re^~ie&ae,e[2]=g^~v&_,e[3]=m^~w&x,e[12]=A^~M&T,e[13]=E^~j&B,e[22]=U^~D&F,e[23]=L^~H&V,e[32]=G^~Z&Y,e[33]=X^~J&Q,e[42]=ne^~oe&se,e[43]=ie^~ae&ue,e[4]=v^~_&O,e[5]=w^~x&k,e[14]=M^~T&I,e[15]=j^~B&N,e[24]=D^~F&z,e[25]=H^~V&q,e[34]=Z^~Y&$,e[35]=J^~Q&ee,e[44]=oe^~se&ce,e[45]=ae^~ue&fe,e[6]=_^~O&b,e[7]=x^~k&y,e[16]=T^~I&P,e[17]=B^~N&S,e[26]=F^~z&R,e[27]=V^~q&C,e[36]=Y^~$&K,e[37]=Q^~ee&W,e[46]=se^~ce&te,e[47]=ue^~fe&re,e[8]=O^~b&g,e[9]=k^~y&m,e[18]=I^~P&A,e[19]=N^~S&E,e[28]=z^~R&U,e[29]=q^~C&L,e[38]=$^~K&G,e[39]=ee^~W&X,e[48]=ce^~te&ne,e[49]=fe^~re&ie,e[0]^=a[n],e[1]^=a[n+1]},u=function(e){return function(t){var r;if("0x"===t.slice(0,2)){r=[];for(var a=2,u=t.length;a<u;a+=2)r.push(parseInt(t.slice(a,a+2),16))}else r=t;return function(e,t){for(var r,a=t.length,u=e.blocks,c=e.blockCount<<2,f=e.blockCount,l=e.outputBlocks,d=e.s,h=0;h<a;){if(e.reset)for(e.reset=!1,u[0]=e.block,y=1;y<f+1;++y)u[y]=0;if("string"!=typeof t)for(y=e.start;h<a&&y<c;++h)u[y>>2]|=t[h]<<o[3&y++];else for(y=e.start;h<a&&y<c;++h)(r=t.charCodeAt(h))<128?u[y>>2]|=r<<o[3&y++]:r<2048?(u[y>>2]|=(192|r>>6)<<o[3&y++],u[y>>2]|=(128|63&r)<<o[3&y++]):r<55296||r>=57344?(u[y>>2]|=(224|r>>12)<<o[3&y++],u[y>>2]|=(128|r>>6&63)<<o[3&y++],u[y>>2]|=(128|63&r)<<o[3&y++]):(r=65536+((1023&r)<<10|1023&t.charCodeAt(++h)),u[y>>2]|=(240|r>>18)<<o[3&y++],u[y>>2]|=(128|r>>12&63)<<o[3&y++],u[y>>2]|=(128|r>>6&63)<<o[3&y++],u[y>>2]|=(128|63&r)<<o[3&y++]);if(e.lastByteIndex=y,y>=c){for(e.start=y-c,e.block=u[f],y=0;y<f;++y)d[y]^=u[y];s(d),e.reset=!0}else e.start=y}if(u[(y=e.lastByteIndex)>>2]|=i[3&y],e.lastByteIndex===c)for(u[0]=u[f],y=1;y<f+1;++y)u[y]=0;for(u[f-1]|=2147483648,y=0;y<f;++y)d[y]^=u[y];s(d);for(var p,b="",y=0,g=0;g<l;){for(y=0;y<f&&g<l;++y,++g)p=d[y],b+=n[p>>4&15]+n[15&p]+n[p>>12&15]+n[p>>8&15]+n[p>>20&15]+n[p>>16&15]+n[p>>28&15]+n[p>>24&15];g%f==0&&(s(d),y=0)}return"0x"+b}(function(e){return{blocks:[],reset:!0,block:0,start:0,blockCount:1600-(e<<1)>>5,outputBlocks:e>>5,s:(t=[0,0,0,0,0,0,0,0,0,0],[].concat(t,t,t,t,t))};var t}(e),r)}};e.exports={keccak256:u(256),keccak512:u(512),keccak256s:u(256),keccak512s:u(512)}},function(e,t,r){"use strict";(function(t){!function(r){function n(e){var t=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),r=1779033703,n=3144134277,i=1013904242,o=2773480762,a=1359893119,s=2600822924,u=528734635,c=1541459225,f=new Uint32Array(64);function l(e){for(var l=0,d=e.length;d>=64;){var h=r,p=n,b=i,y=o,g=a,m=s,v=u,w=c,_=void 0,x=void 0,O=void 0,k=void 0,P=void 0;for(x=0;x<16;x++)O=l+4*x,f[x]=(255&e[O])<<24|(255&e[O+1])<<16|(255&e[O+2])<<8|255&e[O+3];for(x=16;x<64;x++)k=((_=f[x-2])>>>17|_<<15)^(_>>>19|_<<13)^_>>>10,P=((_=f[x-15])>>>7|_<<25)^(_>>>18|_<<14)^_>>>3,f[x]=(k+f[x-7]|0)+(P+f[x-16]|0)|0;for(x=0;x<64;x++)k=(((g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(g&m^~g&v)|0)+(w+(t[x]+f[x]|0)|0)|0,P=((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+(h&p^h&b^p&b)|0,w=v,v=m,m=g,g=y+k|0,y=b,b=p,p=h,h=k+P|0;r=r+h|0,n=n+p|0,i=i+b|0,o=o+y|0,a=a+g|0,s=s+m|0,u=u+v|0,c=c+w|0,l+=64,d-=64}}l(e);var d,h=e.length%64,p=e.length/536870912|0,b=e.length<<3,y=h<56?56:120,g=e.slice(e.length-h,e.length);for(g.push(128),d=h+1;d<y;d++)g.push(0);return g.push(p>>>24&255),g.push(p>>>16&255),g.push(p>>>8&255),g.push(p>>>0&255),g.push(b>>>24&255),g.push(b>>>16&255),g.push(b>>>8&255),g.push(b>>>0&255),l(g),[r>>>24&255,r>>>16&255,r>>>8&255,r>>>0&255,n>>>24&255,n>>>16&255,n>>>8&255,n>>>0&255,i>>>24&255,i>>>16&255,i>>>8&255,i>>>0&255,o>>>24&255,o>>>16&255,o>>>8&255,o>>>0&255,a>>>24&255,a>>>16&255,a>>>8&255,a>>>0&255,s>>>24&255,s>>>16&255,s>>>8&255,s>>>0&255,u>>>24&255,u>>>16&255,u>>>8&255,u>>>0&255,c>>>24&255,c>>>16&255,c>>>8&255,c>>>0&255]}function i(e,t,r){e=e.length<=64?e:n(e);var i,o=64+t.length+4,a=new Array(o),s=new Array(64),u=[];for(i=0;i<64;i++)a[i]=54;for(i=0;i<e.length;i++)a[i]^=e[i];for(i=0;i<t.length;i++)a[64+i]=t[i];for(i=o-4;i<o;i++)a[i]=0;for(i=0;i<64;i++)s[i]=92;for(i=0;i<e.length;i++)s[i]^=e[i];function c(){for(var e=o-1;e>=o-4;e--){if(a[e]++,a[e]<=255)return;a[e]=0}}for(;r>=32;)c(),u=u.concat(n(s.concat(n(a)))),r-=32;return r>0&&(c(),u=u.concat(n(s.concat(n(a))).slice(0,r))),u}function o(e,t,r,n,i){var o;for(c(e,16*(2*r-1),i,0,16),o=0;o<2*r;o++)u(e,16*o,i,16),s(i,n),c(i,0,e,t+16*o,16);for(o=0;o<r;o++)c(e,t+2*o*16,e,16*o,16);for(o=0;o<r;o++)c(e,t+16*(2*o+1),e,16*(o+r),16)}function a(e,t){return e<<t|e>>>32-t}function s(e,t){c(e,0,t,0,16);for(var r=8;r>0;r-=2)t[4]^=a(t[0]+t[12],7),t[8]^=a(t[4]+t[0],9),t[12]^=a(t[8]+t[4],13),t[0]^=a(t[12]+t[8],18),t[9]^=a(t[5]+t[1],7),t[13]^=a(t[9]+t[5],9),t[1]^=a(t[13]+t[9],13),t[5]^=a(t[1]+t[13],18),t[14]^=a(t[10]+t[6],7),t[2]^=a(t[14]+t[10],9),t[6]^=a(t[2]+t[14],13),t[10]^=a(t[6]+t[2],18),t[3]^=a(t[15]+t[11],7),t[7]^=a(t[3]+t[15],9),t[11]^=a(t[7]+t[3],13),t[15]^=a(t[11]+t[7],18),t[1]^=a(t[0]+t[3],7),t[2]^=a(t[1]+t[0],9),t[3]^=a(t[2]+t[1],13),t[0]^=a(t[3]+t[2],18),t[6]^=a(t[5]+t[4],7),t[7]^=a(t[6]+t[5],9),t[4]^=a(t[7]+t[6],13),t[5]^=a(t[4]+t[7],18),t[11]^=a(t[10]+t[9],7),t[8]^=a(t[11]+t[10],9),t[9]^=a(t[8]+t[11],13),t[10]^=a(t[9]+t[8],18),t[12]^=a(t[15]+t[14],7),t[13]^=a(t[12]+t[15],9),t[14]^=a(t[13]+t[12],13),t[15]^=a(t[14]+t[13],18);for(var n=0;n<16;++n)e[n]+=t[n]}function u(e,t,r,n){for(var i=0;i<n;i++)r[i]^=e[t+i]}function c(e,t,r,n,i){for(;i--;)r[n++]=e[t++]}function f(e){if(!e||"number"!=typeof e.length)return!1;for(var t=0;t<e.length;t++){var r=e[t];if("number"!=typeof r||r%1||r<0||r>=256)return!1}return!0}function l(e,t){if("number"!=typeof e||e%1)throw new Error("invalid "+t);return e}function d(e,r,n,a,s,d,h){if(n=l(n,"N"),a=l(a,"r"),s=l(s,"p"),d=l(d,"dkLen"),0===n||0!=(n&n-1))throw new Error("N must be power of 2");if(n>2147483647/128/a)throw new Error("N too large");if(a>2147483647/128/s)throw new Error("r too large");if(!f(e))throw new Error("password must be an array or buffer");if(e=Array.prototype.slice.call(e),!f(r))throw new Error("salt must be an array or buffer");r=Array.prototype.slice.call(r);for(var p=i(e,r,128*s*a),b=new Uint32Array(32*s*a),y=0;y<b.length;y++){var g=4*y;b[y]=(255&p[g+3])<<24|(255&p[g+2])<<16|(255&p[g+1])<<8|(255&p[g+0])<<0}var m,v,w=new Uint32Array(64*a),_=new Uint32Array(32*a*n),x=32*a,O=new Uint32Array(16),k=new Uint32Array(16),P=s*n*2,S=0,A=null,E=!1,M=0,j=0,T=h?parseInt(1e3/a):4294967295,B=void 0!==t?t:setTimeout,I=function t(){if(E)return h(new Error("cancelled"),S/P);var r;switch(M){case 0:c(b,v=32*j*a,w,0,x),M=1,m=0;case 1:(r=n-m)>T&&(r=T);for(var f=0;f<r;f++)c(w,0,_,(m+f)*x,x),o(w,x,a,O,k);if(m+=r,S+=r,h){var l=parseInt(1e3*S/P);if(l!==A){if(E=h(null,S/P))break;A=l}}if(m<n)break;m=0,M=2;case 2:(r=n-m)>T&&(r=T);for(var y=0;y<r;y++){var g=w[16*(2*a-1)]&n-1;u(_,g*x,w,x),o(w,x,a,O,k)}if(m+=r,S+=r,h){var I=parseInt(1e3*S/P);if(I!==A){if(E=h(null,S/P))break;A=I}}if(m<n)break;if(c(w,0,b,v,x),++j<s){M=0;break}p=[];for(var N=0;N<b.length;N++)p.push(b[N]>>0&255),p.push(b[N]>>8&255),p.push(b[N]>>16&255),p.push(b[N]>>24&255);var R=i(e,p,d);return h&&h(null,1,R),R}h&&B(t)};if(!h)for(;;){var N=I();if(null!=N)return N}I()}var h={scrypt:function(e,t,r,n,i,o,a){return new Promise((function(s,u){var c=0;a&&a(0),d(e,t,r,n,i,o,(function(e,t,r){if(e)u(e);else if(r)a&&1!==c&&a(1),s(new Uint8Array(r));else if(a&&t!==c)return c=t,a(t)}))}))},syncScrypt:function(e,t,r,n,i,o){return new Uint8Array(d(e,t,r,n,i,o))}};e.exports=h}()}).call(this,r(164).setImmediate)},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return c.default}});var i=n(r(497)),o=n(r(499)),a=n(r(501)),s=n(r(503)),u=n(r(505)),c=n(r(506)),f=n(r(88)),l=n(r(87)),d=n(r(229))},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o,a=n(r(227)),s=r(87),u=0,c=0;t.default=function(e,t,r){var n=t&&r||0,f=t||new Array(16),l=(e=e||{}).node||i,d=void 0!==e.clockseq?e.clockseq:o;if(null==l||null==d){var h=e.random||(e.rng||a.default)();null==l&&(l=i=[1|h[0],h[1],h[2],h[3],h[4],h[5]]),null==d&&(d=o=16383&(h[6]<<8|h[7]))}var p=void 0!==e.msecs?e.msecs:Date.now(),b=void 0!==e.nsecs?e.nsecs:c+1,y=p-u+(b-c)/1e4;if(y<0&&void 0===e.clockseq&&(d=d+1&16383),(y<0||p>u)&&void 0===e.nsecs&&(b=0),b>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");u=p,c=b,o=d;var g=(1e4*(268435455&(p+=122192928e5))+b)%4294967296;f[n++]=g>>>24&255,f[n++]=g>>>16&255,f[n++]=g>>>8&255,f[n++]=255&g;var m=p/4294967296*1e4&268435455;f[n++]=m>>>8&255,f[n++]=255&m,f[n++]=m>>>24&15|16,f[n++]=m>>>16&255,f[n++]=d>>>8|128,f[n++]=255&d;for(var v=0;v<6;++v)f[n+v]=l[v];return t||(0,s.unsafeStringify)(f)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(228)),o=n(r(500)),a=(0,i.default)("v3",48,o.default);t.default=a},function(e,t,r){"use strict";function n(e){return 14+(e+64>>>9<<4)+1}function i(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function o(e,t,r,n,o,a){return i((s=i(i(t,e),i(n,a)))<<(u=o)|s>>>32-u,r);var s,u}function a(e,t,r,n,i,a,s){return o(t&r|~t&n,e,t,i,a,s)}function s(e,t,r,n,i,a,s){return o(t&n|r&~n,e,t,i,a,s)}function u(e,t,r,n,i,a,s){return o(t^r^n,e,t,i,a,s)}function c(e,t,r,n,i,a,s){return o(r^(t|~n),e,t,i,a,s)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return function(e){for(var t=[],r=32*e.length,n=0;n<r;n+=8){var i=e[n>>5]>>>n%32&255,o=parseInt("0123456789abcdef".charAt(i>>>4&15)+"0123456789abcdef".charAt(15&i),16);t.push(o)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[n(t)-1]=t;for(var r=1732584193,o=-271733879,f=-1732584194,l=271733878,d=0;d<e.length;d+=16){var h=r,p=o,b=f,y=l;r=a(r,o,f,l,e[d],7,-680876936),l=a(l,r,o,f,e[d+1],12,-389564586),f=a(f,l,r,o,e[d+2],17,606105819),o=a(o,f,l,r,e[d+3],22,-1044525330),r=a(r,o,f,l,e[d+4],7,-176418897),l=a(l,r,o,f,e[d+5],12,1200080426),f=a(f,l,r,o,e[d+6],17,-1473231341),o=a(o,f,l,r,e[d+7],22,-45705983),r=a(r,o,f,l,e[d+8],7,1770035416),l=a(l,r,o,f,e[d+9],12,-1958414417),f=a(f,l,r,o,e[d+10],17,-42063),o=a(o,f,l,r,e[d+11],22,-1990404162),r=a(r,o,f,l,e[d+12],7,1804603682),l=a(l,r,o,f,e[d+13],12,-40341101),f=a(f,l,r,o,e[d+14],17,-1502002290),r=s(r,o=a(o,f,l,r,e[d+15],22,1236535329),f,l,e[d+1],5,-165796510),l=s(l,r,o,f,e[d+6],9,-1069501632),f=s(f,l,r,o,e[d+11],14,643717713),o=s(o,f,l,r,e[d],20,-373897302),r=s(r,o,f,l,e[d+5],5,-701558691),l=s(l,r,o,f,e[d+10],9,38016083),f=s(f,l,r,o,e[d+15],14,-660478335),o=s(o,f,l,r,e[d+4],20,-405537848),r=s(r,o,f,l,e[d+9],5,568446438),l=s(l,r,o,f,e[d+14],9,-1019803690),f=s(f,l,r,o,e[d+3],14,-187363961),o=s(o,f,l,r,e[d+8],20,1163531501),r=s(r,o,f,l,e[d+13],5,-1444681467),l=s(l,r,o,f,e[d+2],9,-51403784),f=s(f,l,r,o,e[d+7],14,1735328473),r=u(r,o=s(o,f,l,r,e[d+12],20,-1926607734),f,l,e[d+5],4,-378558),l=u(l,r,o,f,e[d+8],11,-2022574463),f=u(f,l,r,o,e[d+11],16,1839030562),o=u(o,f,l,r,e[d+14],23,-35309556),r=u(r,o,f,l,e[d+1],4,-1530992060),l=u(l,r,o,f,e[d+4],11,1272893353),f=u(f,l,r,o,e[d+7],16,-155497632),o=u(o,f,l,r,e[d+10],23,-1094730640),r=u(r,o,f,l,e[d+13],4,681279174),l=u(l,r,o,f,e[d],11,-358537222),f=u(f,l,r,o,e[d+3],16,-722521979),o=u(o,f,l,r,e[d+6],23,76029189),r=u(r,o,f,l,e[d+9],4,-640364487),l=u(l,r,o,f,e[d+12],11,-421815835),f=u(f,l,r,o,e[d+15],16,530742520),r=c(r,o=u(o,f,l,r,e[d+2],23,-995338651),f,l,e[d],6,-198630844),l=c(l,r,o,f,e[d+7],10,1126891415),f=c(f,l,r,o,e[d+14],15,-1416354905),o=c(o,f,l,r,e[d+5],21,-57434055),r=c(r,o,f,l,e[d+12],6,1700485571),l=c(l,r,o,f,e[d+3],10,-1894986606),f=c(f,l,r,o,e[d+10],15,-1051523),o=c(o,f,l,r,e[d+1],21,-2054922799),r=c(r,o,f,l,e[d+8],6,1873313359),l=c(l,r,o,f,e[d+15],10,-30611744),f=c(f,l,r,o,e[d+6],15,-1560198380),o=c(o,f,l,r,e[d+13],21,1309151649),r=c(r,o,f,l,e[d+4],6,-145523070),l=c(l,r,o,f,e[d+11],10,-1120210379),f=c(f,l,r,o,e[d+2],15,718787259),o=c(o,f,l,r,e[d+9],21,-343485551),r=i(r,h),o=i(o,p),f=i(f,b),l=i(l,y)}return[r,o,f,l]}(function(e){if(0===e.length)return[];for(var t=8*e.length,r=new Uint32Array(n(t)),i=0;i<t;i+=8)r[i>>5]|=(255&e[i/8])<<i%32;return r}(e),8*e.length))}},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(502)),o=n(r(227)),a=r(87);t.default=function(e,t,r){if(i.default.randomUUID&&!t&&!e)return i.default.randomUUID();var n=(e=e||{}).random||(e.rng||o.default)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var s=0;s<16;++s)t[r+s]=n[s];return t}return(0,a.unsafeStringify)(n)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};t.default=n},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(228)),o=n(r(504)),a=(0,i.default)("v5",80,o.default);t.default=a},function(e,t,r){"use strict";function n(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}function i(e,t){return e<<t|e>>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var o=unescape(encodeURIComponent(e));e=[];for(var a=0;a<o.length;++a)e.push(o.charCodeAt(a))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var s=e.length/4+2,u=Math.ceil(s/16),c=new Array(u),f=0;f<u;++f){for(var l=new Uint32Array(16),d=0;d<16;++d)l[d]=e[64*f+4*d]<<24|e[64*f+4*d+1]<<16|e[64*f+4*d+2]<<8|e[64*f+4*d+3];c[f]=l}c[u-1][14]=8*(e.length-1)/Math.pow(2,32),c[u-1][14]=Math.floor(c[u-1][14]),c[u-1][15]=8*(e.length-1)&4294967295;for(var h=0;h<u;++h){for(var p=new Uint32Array(80),b=0;b<16;++b)p[b]=c[h][b];for(var y=16;y<80;++y)p[y]=i(p[y-3]^p[y-8]^p[y-14]^p[y-16],1);for(var g=r[0],m=r[1],v=r[2],w=r[3],_=r[4],x=0;x<80;++x){var O=Math.floor(x/20),k=i(g,5)+n(O,m,v,w)+_+t[O]+p[x]>>>0;_=w,w=v,v=i(m,30)>>>0,m=g,g=k}r[0]=r[0]+g>>>0,r[1]=r[1]+m>>>0,r[2]=r[2]+v>>>0,r[3]=r[3]+w>>>0,r[4]=r[4]+_>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="00000000-0000-0000-0000-000000000000"},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(88));t.default=function(e){if(!(0,i.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}},function(e,t,r){"use strict";(function(e){var n,i=(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=r(27),s=r(53),u=function(t){function r(e,r){var n;void 0===r&&(r={});var i=t.call(this,o(o({},e),{type:0}))||this;if(i.common=i._validateTxV(i.v,r.common),i.gasPrice=new a.BN((0,a.toBuffer)(""===e.gasPrice?"0x":e.gasPrice)),i._validateCannotExceedMaxInteger({gasPrice:i.gasPrice}),i.common.gteHardfork("spuriousDragon"))if(i.isSigned()){var u=i.v,c=i.common.chainIdBN().muln(2);(u.eq(c.addn(35))||u.eq(c.addn(36)))&&i.activeCapabilities.push(s.Capability.EIP155ReplayProtection)}else i.activeCapabilities.push(s.Capability.EIP155ReplayProtection);return(null===(n=null==r?void 0:r.freeze)||void 0===n||n)&&Object.freeze(i),i}return i(r,t),r.fromTxData=function(e,t){return void 0===t&&(t={}),new r(e,t)},r.fromSerializedTx=function(e,t){void 0===t&&(t={});var r=a.rlp.decode(e);if(!Array.isArray(r))throw new Error("Invalid serialized tx input. Must be array");return this.fromValuesArray(r,t)},r.fromRlpSerializedTx=function(e,t){return void 0===t&&(t={}),r.fromSerializedTx(e,t)},r.fromValuesArray=function(e,t){if(void 0===t&&(t={}),6!==e.length&&9!==e.length)throw new Error("Invalid transaction. Only expecting 6 values (for unsigned tx) or 9 values (for signed tx).");var n=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}(e,9);return new r({nonce:n[0],gasPrice:n[1],gasLimit:n[2],to:n[3],value:n[4],data:n[5],v:n[6],r:n[7],s:n[8]},t)},r.prototype.raw=function(){return[(0,a.bnToUnpaddedBuffer)(this.nonce),(0,a.bnToUnpaddedBuffer)(this.gasPrice),(0,a.bnToUnpaddedBuffer)(this.gasLimit),void 0!==this.to?this.to.buf:e.from([]),(0,a.bnToUnpaddedBuffer)(this.value),this.data,void 0!==this.v?(0,a.bnToUnpaddedBuffer)(this.v):e.from([]),void 0!==this.r?(0,a.bnToUnpaddedBuffer)(this.r):e.from([]),void 0!==this.s?(0,a.bnToUnpaddedBuffer)(this.s):e.from([])]},r.prototype.serialize=function(){return a.rlp.encode(this.raw())},r.prototype._getMessageToSign=function(){var t=[(0,a.bnToUnpaddedBuffer)(this.nonce),(0,a.bnToUnpaddedBuffer)(this.gasPrice),(0,a.bnToUnpaddedBuffer)(this.gasLimit),void 0!==this.to?this.to.buf:e.from([]),(0,a.bnToUnpaddedBuffer)(this.value),this.data];return this.supports(s.Capability.EIP155ReplayProtection)&&(t.push((0,a.toBuffer)(this.common.chainIdBN())),t.push((0,a.unpadBuffer)((0,a.toBuffer)(0))),t.push((0,a.unpadBuffer)((0,a.toBuffer)(0)))),t},r.prototype.getMessageToSign=function(e){void 0===e&&(e=!0);var t=this._getMessageToSign();return e?(0,a.rlphash)(t):t},r.prototype.getUpfrontCost=function(){return this.gasLimit.mul(this.gasPrice).add(this.value)},r.prototype.hash=function(){return Object.isFrozen(this)?(this.cache.hash||(this.cache.hash=(0,a.rlphash)(this.raw())),this.cache.hash):(0,a.rlphash)(this.raw())},r.prototype.getMessageToVerifySignature=function(){if(!this.isSigned())throw Error("This transaction is not signed");var e=this._getMessageToSign();return(0,a.rlphash)(e)},r.prototype.getSenderPublicKey=function(){var e,t=this.getMessageToVerifySignature();if(this.common.gteHardfork("homestead")&&(null===(e=this.s)||void 0===e?void 0:e.gt(s.N_DIV_2)))throw new Error("Invalid Signature: s-values greater than secp256k1n/2 are considered invalid");var r=this.v,n=this.r,i=this.s;try{return(0,a.ecrecover)(t,r,(0,a.bnToUnpaddedBuffer)(n),(0,a.bnToUnpaddedBuffer)(i),this.supports(s.Capability.EIP155ReplayProtection)?this.common.chainIdBN():void 0)}catch(e){throw new Error("Invalid Signature")}},r.prototype._processSignature=function(e,t,n){var i=new a.BN(e);this.supports(s.Capability.EIP155ReplayProtection)&&i.iadd(this.common.chainIdBN().muln(2).addn(8));var o={common:this.common};return r.fromTxData({nonce:this.nonce,gasPrice:this.gasPrice,gasLimit:this.gasLimit,to:this.to,value:this.value,data:this.data,v:i,r:new a.BN(t),s:new a.BN(n)},o)},r.prototype.toJSON=function(){return{nonce:(0,a.bnToHex)(this.nonce),gasPrice:(0,a.bnToHex)(this.gasPrice),gasLimit:(0,a.bnToHex)(this.gasLimit),to:void 0!==this.to?this.to.toString():void 0,value:(0,a.bnToHex)(this.value),data:"0x"+this.data.toString("hex"),v:void 0!==this.v?(0,a.bnToHex)(this.v):void 0,r:void 0!==this.r?(0,a.bnToHex)(this.r):void 0,s:void 0!==this.s?(0,a.bnToHex)(this.s):void 0}},r.prototype._validateTxV=function(e,t){var r;if(void 0!==e&&!e.eqn(0)&&(!t||t.gteHardfork("spuriousDragon"))&&!e.eqn(27)&&!e.eqn(28))if(t){var n=t.chainIdBN().muln(2);if(!e.eq(n.addn(35))&&!e.eq(n.addn(36)))throw new Error("Incompatible EIP155-based V "+e.toString()+" and chain id "+t.chainIdBN().toString()+". See the Common parameter of the Transaction constructor to set the chain id.")}else{var i;i=e.subn(35).isEven()?35:36,r=e.subn(i).divn(2)}return this._getCommon(t,r)},r.prototype._unsignedTxImplementsEIP155=function(){return this.common.gteHardfork("spuriousDragon")},r.prototype._signedTxImplementsEIP155=function(){if(!this.isSigned())throw Error("This transaction is not signed");var e=this.common.gteHardfork("spuriousDragon"),t=this.v,r=this.common.chainIdBN().muln(2);return(t.eq(r.addn(35))||t.eq(r.addn(36)))&&e},r}(r(119).BaseTransaction);t.default=u}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(e){var n,i,o=r(0)(r(2));i=function(e){e.version="1.2.2";var t=function(){for(var e=0,t=new Array(256),r=0;256!=r;++r)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=r)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,t[r]=e;return"undefined"!=typeof Int32Array?new Int32Array(t):t}(),r=function(e){var t=0,r=0,n=0,i="undefined"!=typeof Int32Array?new Int32Array(4096):new Array(4096);for(n=0;256!=n;++n)i[n]=e[n];for(n=0;256!=n;++n)for(r=e[n],t=256+n;t<4096;t+=256)r=i[t]=r>>>8^e[255&r];var o=[];for(n=1;16!=n;++n)o[n-1]="undefined"!=typeof Int32Array?i.subarray(256*n,256*n+256):i.slice(256*n,256*n+256);return o}(t),n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],u=r[5],c=r[6],f=r[7],l=r[8],d=r[9],h=r[10],p=r[11],b=r[12],y=r[13],g=r[14];e.table=t,e.bstr=function(e,r){for(var n=-1^r,i=0,o=e.length;i<o;)n=n>>>8^t[255&(n^e.charCodeAt(i++))];return~n},e.buf=function(e,r){for(var m=-1^r,v=e.length-15,w=0;w<v;)m=g[e[w++]^255&m]^y[e[w++]^m>>8&255]^b[e[w++]^m>>16&255]^p[e[w++]^m>>>24]^h[e[w++]]^d[e[w++]]^l[e[w++]]^f[e[w++]]^c[e[w++]]^u[e[w++]]^s[e[w++]]^a[e[w++]]^o[e[w++]]^i[e[w++]]^n[e[w++]]^t[e[w++]];for(v+=15;w<v;)m=m>>>8^t[255&(m^e[w++])];return~m},e.str=function(e,r){for(var n=-1^r,i=0,o=e.length,a=0,s=0;i<o;)(a=e.charCodeAt(i++))<128?n=n>>>8^t[255&(n^a)]:a<2048?n=(n=n>>>8^t[255&(n^(192|a>>6&31))])>>>8^t[255&(n^(128|63&a))]:a>=55296&&a<57344?(a=64+(1023&a),s=1023&e.charCodeAt(i++),n=(n=(n=(n=n>>>8^t[255&(n^(240|a>>8&7))])>>>8^t[255&(n^(128|a>>2&63))])>>>8^t[255&(n^(128|s>>6&15|(3&a)<<4))])>>>8^t[255&(n^(128|63&s))]):n=(n=(n=n>>>8^t[255&(n^(224|a>>12&15))])>>>8^t[255&(n^(128|a>>6&63))])>>>8^t[255&(n^(128|63&a))];return~n}},"undefined"==typeof DO_NOT_EXPORT_CRC?"object"===(0,o.default)(t)?i(t):void 0===(n=function(){var e={};return i(e),e}.call(t,r,t,e))||(e.exports=n):i({})}).call(this,r(35)(e))},function(e,t,r){"use strict";var n=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.chains=t._getInitializedChains=void 0;var i=n(r(510)),o=n(r(511)),a=n(r(512)),s=n(r(513)),u=n(r(514));function c(e){var t,r,n={1:"mainnet",3:"ropsten",4:"rinkeby",42:"kovan",5:"goerli"},c={mainnet:i.default,ropsten:o.default,rinkeby:a.default,kovan:s.default,goerli:u.default};if(e)try{for(var f=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),l=f.next();!l.done;l=f.next()){var d=l.value,h=d.name;n[d.chainId.toString()]=h,c[h]=d}}catch(e){t={error:e}}finally{try{l&&!l.done&&(r=f.return)&&r.call(f)}finally{if(t)throw t.error}}return c.names=n,c}t._getInitializedChains=c,t.chains=c()},function(e){e.exports=JSON.parse('{"name":"mainnet","chainId":1,"networkId":1,"defaultHardfork":"istanbul","consensus":{"type":"pow","algorithm":"ethash","ethash":{}},"comment":"The Ethereum main chain","url":"https://ethstats.net/","genesis":{"hash":"0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3","timestamp":null,"gasLimit":5000,"difficulty":17179869184,"nonce":"0x0000000000000042","extraData":"0x11bbe8db4e347b4e8c937c1c8370e4b5ed33adb3db69cbdb7a38e1e50b1b82fa","stateRoot":"0xd7f8974fb5ac78d9ac099b9ad5018bedc2ce0a72dad1827a1709da30580f0544"},"hardforks":[{"name":"chainstart","block":0,"forkHash":"0xfc64ec04"},{"name":"homestead","block":1150000,"forkHash":"0x97c2c34c"},{"name":"dao","block":1920000,"forkHash":"0x91d1f948"},{"name":"tangerineWhistle","block":2463000,"forkHash":"0x7a64da13"},{"name":"spuriousDragon","block":2675000,"forkHash":"0x3edd5b10"},{"name":"byzantium","block":4370000,"forkHash":"0xa00bc324"},{"name":"constantinople","block":7280000,"forkHash":"0x668db0af"},{"name":"petersburg","block":7280000,"forkHash":"0x668db0af"},{"name":"istanbul","block":9069000,"forkHash":"0x879d6e30"},{"name":"muirGlacier","block":9200000,"forkHash":"0xe029e991"},{"name":"berlin","block":12244000,"forkHash":"0x0eb440f6"},{"name":"london","block":12965000,"forkHash":"0xb715077d"},{"name":"merge","block":null,"forkash":null},{"name":"shanghai","block":null,"forkash":null}],"bootstrapNodes":[{"ip":"18.138.108.67","port":30303,"id":"d860a01f9722d78051619d1e2351aba3f43f943f6f00718d1b9baa4101932a1f5011f16bb2b1bb35db20d6fe28fa0bf09636d26a87d31de9ec6203eeedb1f666","location":"ap-southeast-1-001","comment":"bootnode-aws-ap-southeast-1-001"},{"ip":"3.209.45.79","port":30303,"id":"22a8232c3abc76a16ae9d6c3b164f98775fe226f0917b0ca871128a74a8e9630b458460865bab457221f1d448dd9791d24c4e5d88786180ac185df813a68d4de","location":"us-east-1-001","comment":"bootnode-aws-us-east-1-001"},{"ip":"34.255.23.113","port":30303,"id":"ca6de62fce278f96aea6ec5a2daadb877e51651247cb96ee310a318def462913b653963c155a0ef6c7d50048bba6e6cea881130857413d9f50a621546b590758","location":"eu-west-1-001","comment":"bootnode-aws-eu-west-1-001"},{"ip":"35.158.244.151","port":30303,"id":"279944d8dcd428dffaa7436f25ca0ca43ae19e7bcf94a8fb7d1641651f92d121e972ac2e8f381414b80cc8e5555811c2ec6e1a99bb009b3f53c4c69923e11bd8","location":"eu-central-1-001","comment":"bootnode-aws-eu-central-1-001"},{"ip":"52.187.207.27","port":30303,"id":"8499da03c47d637b20eee24eec3c356c9a2e6148d6fe25ca195c7949ab8ec2c03e3556126b0d7ed644675e78c4318b08691b7b57de10e5f0d40d05b09238fa0a","location":"australiaeast-001","comment":"bootnode-azure-australiaeast-001"},{"ip":"191.234.162.198","port":30303,"id":"103858bdb88756c71f15e9b5e09b56dc1be52f0a5021d46301dbbfb7e130029cc9d0d6f73f693bc29b665770fff7da4d34f3c6379fe12721b5d7a0bcb5ca1fc1","location":"brazilsouth-001","comment":"bootnode-azure-brazilsouth-001"},{"ip":"52.231.165.108","port":30303,"id":"715171f50508aba88aecd1250af392a45a330af91d7b90701c436b618c86aaa1589c9184561907bebbb56439b8f8787bc01f49a7c77276c58c1b09822d75e8e8","location":"koreasouth-001","comment":"bootnode-azure-koreasouth-001"},{"ip":"104.42.217.25","port":30303,"id":"5d6d7cd20d6da4bb83a1d28cadb5d409b64edf314c0335df658c1a54e32c7c4a7ab7823d57c39b6a757556e68ff1df17c748b698544a55cb488b52479a92b60f","location":"westus-001","comment":"bootnode-azure-westus-001"}],"dnsNetworks":["enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.mainnet.ethdisco.net"]}')},function(e){e.exports=JSON.parse('{"name":"ropsten","chainId":3,"networkId":3,"defaultHardfork":"istanbul","consensus":{"type":"pow","algorithm":"ethash","ethash":{}},"comment":"PoW test network","url":"https://github.com/ethereum/ropsten","genesis":{"hash":"0x41941023680923e0fe4d74a34bdac8141f2540e3ae90623718e47d66d1ca4a2d","timestamp":null,"gasLimit":16777216,"difficulty":1048576,"nonce":"0x0000000000000042","extraData":"0x3535353535353535353535353535353535353535353535353535353535353535","stateRoot":"0x217b0bbcfb72e2d57e28f33cb361b9983513177755dc3f33ce3e7022ed62b77b"},"hardforks":[{"name":"chainstart","block":0,"forkHash":"0x30c7ddbc"},{"name":"homestead","block":0,"forkHash":"0x30c7ddbc"},{"name":"tangerineWhistle","block":0,"forkHash":"0x30c7ddbc"},{"name":"spuriousDragon","block":10,"forkHash":"0x63760190"},{"name":"byzantium","block":1700000,"forkHash":"0x3ea159c7"},{"name":"constantinople","block":4230000,"forkHash":"0x97b544f3"},{"name":"petersburg","block":4939394,"forkHash":"0xd6e2149b"},{"name":"istanbul","block":6485846,"forkHash":"0x4bc66396"},{"name":"muirGlacier","block":7117117,"forkHash":"0x6727ef90"},{"name":"berlin","block":9812189,"forkHash":"0xa157d377"},{"name":"london","block":10499401,"forkHash":"0x7119b6b3"},{"name":"merge","block":null,"forkash":null},{"name":"shanghai","block":null,"forkash":null}],"bootstrapNodes":[{"ip":"52.176.7.10","port":30303,"id":"30b7ab30a01c124a6cceca36863ece12c4f5fa68e3ba9b0b51407ccc002eeed3b3102d20a88f1c1d3c3154e2449317b8ef95090e77b312d5cc39354f86d5d606","location":"","comment":"US-Azure geth"},{"ip":"52.176.100.77","port":30303,"id":"865a63255b3bb68023b6bffd5095118fcc13e79dcf014fe4e47e065c350c7cc72af2e53eff895f11ba1bbb6a2b33271c1116ee870f266618eadfc2e78aa7349c","location":"","comment":"US-Azure parity"},{"ip":"52.232.243.152","port":30303,"id":"6332792c4a00e3e4ee0926ed89e0d27ef985424d97b6a45bf0f23e51f0dcb5e66b875777506458aea7af6f9e4ffb69f43f3778ee73c81ed9d34c51c4b16b0b0f","location":"","comment":"Parity"},{"ip":"192.81.208.223","port":30303,"id":"94c15d1b9e2fe7ce56e458b9a3b672ef11894ddedd0c6f247e0f1d3487f52b66208fb4aeb8179fce6e3a749ea93ed147c37976d67af557508d199d9594c35f09","location":"","comment":"@gpip"}],"dnsNetworks":["enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.ropsten.ethdisco.net"]}')},function(e){e.exports=JSON.parse('{"name":"rinkeby","chainId":4,"networkId":4,"defaultHardfork":"istanbul","consensus":{"type":"poa","algorithm":"clique","clique":{"period":15,"epoch":30000}},"comment":"PoA test network","url":"https://www.rinkeby.io","genesis":{"hash":"0x6341fd3daf94b748c72ced5a5b26028f2474f5f00d824504e4fa37a75767e177","timestamp":"0x58ee40ba","gasLimit":4700000,"difficulty":1,"nonce":"0x0000000000000000","extraData":"0x52657370656374206d7920617574686f7269746168207e452e436172746d616e42eb768f2244c8811c63729a21a3569731535f067ffc57839b00206d1ad20c69a1981b489f772031b279182d99e65703f0076e4812653aab85fca0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","stateRoot":"0x53580584816f617295ea26c0e17641e0120cab2f0a8ffb53a866fd53aa8e8c2d"},"hardforks":[{"name":"chainstart","block":0,"forkHash":"0x3b8e0691"},{"name":"homestead","block":1,"forkHash":"0x60949295"},{"name":"tangerineWhistle","block":2,"forkHash":"0x8bde40dd"},{"name":"spuriousDragon","block":3,"forkHash":"0xcb3a64bb"},{"name":"byzantium","block":1035301,"forkHash":"0x8d748b57"},{"name":"constantinople","block":3660663,"forkHash":"0xe49cab14"},{"name":"petersburg","block":4321234,"forkHash":"0xafec6b27"},{"name":"istanbul","block":5435345,"forkHash":"0xcbdb8838"},{"name":"berlin","block":8290928,"forkHash":"0x6910c8bd"},{"name":"london","block":8897988,"forkHash":"0x8e29f2f3"},{"name":"merge","block":null,"forkash":null},{"name":"shanghai","block":null,"forkash":null}],"bootstrapNodes":[{"ip":"52.169.42.101","port":30303,"id":"a24ac7c5484ef4ed0c5eb2d36620ba4e4aa13b8c84684e1b4aab0cebea2ae45cb4d375b77eab56516d34bfbd3c1a833fc51296ff084b770b94fb9028c4d25ccf","location":"","comment":"IE"},{"ip":"52.3.158.184","port":30303,"id":"343149e4feefa15d882d9fe4ac7d88f885bd05ebb735e547f12e12080a9fa07c8014ca6fd7f373123488102fe5e34111f8509cf0b7de3f5b44339c9f25e87cb8","location":"","comment":"INFURA"},{"ip":"159.89.28.211","port":30303,"id":"b6b28890b006743680c52e64e0d16db57f28124885595fa03a562be1d2bf0f3a1da297d56b13da25fb992888fd556d4c1a27b1f39d531bde7de1921c90061cc6","location":"","comment":"AKASHA"}],"dnsNetworks":["enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.rinkeby.ethdisco.net"]}')},function(e){e.exports=JSON.parse('{"name":"kovan","chainId":42,"networkId":42,"defaultHardfork":"istanbul","consensus":{"type":"poa","algorithm":"aura","aura":{}},"comment":"Parity PoA test network","url":"https://kovan-testnet.github.io/website/","genesis":{"hash":"0xa3c565fc15c7478862d50ccd6561e3c06b24cc509bf388941c25ea985ce32cb9","timestamp":null,"gasLimit":6000000,"difficulty":131072,"nonce":"0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","extraData":"0x","stateRoot":"0x2480155b48a1cea17d67dbfdfaafe821c1d19cdd478c5358e8ec56dec24502b2"},"hardforks":[{"name":"chainstart","block":0,"forkHash":"0x010ffe56"},{"name":"homestead","block":0,"forkHash":"0x010ffe56"},{"name":"tangerineWhistle","block":0,"forkHash":"0x010ffe56"},{"name":"spuriousDragon","block":0,"forkHash":"0x010ffe56"},{"name":"byzantium","block":5067000,"forkHash":"0x7f83c620"},{"name":"constantinople","block":9200000,"forkHash":"0xa94e3dc4"},{"name":"petersburg","block":10255201,"forkHash":"0x186874aa"},{"name":"istanbul","block":14111141,"forkHash":"0x7f6599a6"},{"name":"berlin","block":null,"forkHash":null},{"name":"london","block":null,"forkHash":null},{"name":"merge","block":null,"forkash":null},{"name":"shanghai","block":null,"forkash":null}],"bootstrapNodes":[{"ip":"116.203.116.241","port":30303,"id":"16898006ba2cd4fa8bf9a3dfe32684c178fa861df144bfc21fe800dc4838a03e342056951fa9fd533dcb0be1219e306106442ff2cf1f7e9f8faa5f2fc1a3aa45","location":"","comment":"1"},{"ip":"3.217.96.11","port":30303,"id":"2909846f78c37510cc0e306f185323b83bb2209e5ff4fdd279d93c60e3f365e3c6e62ad1d2133ff11f9fd6d23ad9c3dad73bb974d53a22f7d1ac5b7dea79d0b0","location":"","comment":"2"},{"ip":"108.61.170.124","port":30303,"id":"740e1c8ea64e71762c71a463a04e2046070a0c9394fcab5891d41301dc473c0cff00ebab5a9bc87fbcb610ab98ac18225ff897bc8b7b38def5975d5ceb0a7d7c","location":"","comment":"3"},{"ip":"157.230.31.163","port":30303,"id":"2909846f78c37510cc0e306f185323b83bb2209e5ff4fdd279d93c60e3f365e3c6e62ad1d2133ff11f9fd6d23ad9c3dad73bb974d53a22f7d1ac5b7dea79d0b0","location":"","comment":"4"}]}')},function(e){e.exports=JSON.parse('{"name":"goerli","chainId":5,"networkId":5,"defaultHardfork":"istanbul","consensus":{"type":"poa","algorithm":"clique","clique":{"period":15,"epoch":30000}},"comment":"Cross-client PoA test network","url":"https://github.com/goerli/testnet","genesis":{"hash":"0xbf7e331f7f7c1dd2e05159666b3bf8bc7a8a3a9eb1d518969eab529dd9b88c1a","timestamp":"0x5c51a607","gasLimit":10485760,"difficulty":1,"nonce":"0x0000000000000000","extraData":"0x22466c6578692069732061207468696e6722202d204166726900000000000000e0a2bd4258d2768837baa26a28fe71dc079f84c70000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","stateRoot":"0x5d6cded585e73c4e322c30c2f782a336316f17dd85a4863b9d838d2d4b8b3008"},"hardforks":[{"name":"chainstart","block":0,"forkHash":"0xa3f5ab08"},{"name":"homestead","block":0,"forkHash":"0xa3f5ab08"},{"name":"tangerineWhistle","block":0,"forkHash":"0xa3f5ab08"},{"name":"spuriousDragon","block":0,"forkHash":"0xa3f5ab08"},{"name":"byzantium","block":0,"forkHash":"0xa3f5ab08"},{"name":"constantinople","block":0,"forkHash":"0xa3f5ab08"},{"name":"petersburg","block":0,"forkHash":"0xa3f5ab08"},{"name":"istanbul","block":1561651,"forkHash":"0xc25efa5c"},{"name":"berlin","block":4460644,"forkHash":"0x757a1c47"},{"name":"london","block":5062605,"forkHash":"0xb8c6299d"},{"name":"merge","block":null,"forkash":null},{"name":"shanghai","block":null,"forkash":null}],"bootstrapNodes":[{"ip":"51.141.78.53","port":30303,"id":"011f758e6552d105183b1761c5e2dea0111bc20fd5f6422bc7f91e0fabbec9a6595caf6239b37feb773dddd3f87240d99d859431891e4a642cf2a0a9e6cbb98a","location":"","comment":"Upstream bootnode 1"},{"ip":"13.93.54.137","port":30303,"id":"176b9417f511d05b6b2cf3e34b756cf0a7096b3094572a8f6ef4cdcb9d1f9d00683bf0f83347eebdf3b81c3521c2332086d9592802230bf528eaf606a1d9677b","location":"","comment":"Upstream bootnode 2"},{"ip":"94.237.54.114","port":30313,"id":"46add44b9f13965f7b9875ac6b85f016f341012d84f975377573800a863526f4da19ae2c620ec73d11591fa9510e992ecc03ad0751f53cc02f7c7ed6d55c7291","location":"","comment":"Upstream bootnode 3"},{"ip":"18.218.250.66","port":30313,"id":"b5948a2d3e9d486c4d75bf32713221c2bd6cf86463302339299bd227dc2e276cd5a1c7ca4f43a0e9122fe9af884efed563bd2a1fd28661f3b5f5ad7bf1de5949","location":"","comment":"Upstream bootnode 4"},{"ip":"3.11.147.67","port":30303,"id":"a61215641fb8714a373c80edbfa0ea8878243193f57c96eeb44d0bc019ef295abd4e044fd619bfc4c59731a73fb79afe84e9ab6da0c743ceb479cbb6d263fa91","location":"","comment":"Ethereum Foundation bootnode"},{"ip":"51.15.116.226","port":30303,"id":"a869b02cec167211fb4815a82941db2e7ed2936fd90e78619c53eb17753fcf0207463e3419c264e2a1dd8786de0df7e68cf99571ab8aeb7c4e51367ef186b1dd","location":"","comment":"Goerli Initiative bootnode"},{"ip":"51.15.119.157","port":30303,"id":"807b37ee4816ecf407e9112224494b74dd5933625f655962d892f2f0f02d7fbbb3e2a94cf87a96609526f30c998fd71e93e2f53015c558ffc8b03eceaf30ee33","location":"","comment":"Goerli Initiative bootnode"},{"ip":"51.15.119.157","port":40303,"id":"a59e33ccd2b3e52d578f1fbd70c6f9babda2650f0760d6ff3b37742fdcdfdb3defba5d56d315b40c46b70198c7621e63ffa3f987389c7118634b0fefbbdfa7fd","location":"","comment":"Goerli Initiative bootnode"}],"dnsNetworks":["enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.goerli.ethdisco.net"]}')},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hardforks=void 0,t.hardforks=[["chainstart",r(516)],["homestead",r(517)],["dao",r(518)],["tangerineWhistle",r(519)],["spuriousDragon",r(520)],["byzantium",r(521)],["constantinople",r(522)],["petersburg",r(523)],["istanbul",r(524)],["muirGlacier",r(525)],["berlin",r(526)],["london",r(527)],["shanghai",r(528)],["merge",r(529)]]},function(e){e.exports=JSON.parse('{"name":"chainstart","comment":"Start of the Ethereum main chain","url":"","status":"","gasConfig":{"minGasLimit":{"v":5000,"d":"Minimum the gas limit may ever be"},"gasLimitBoundDivisor":{"v":1024,"d":"The bound divisor of the gas limit, used in update calculations"},"maxRefundQuotient":{"v":2,"d":"Maximum refund quotient; max tx refund is min(tx.gasUsed/maxRefundQuotient, tx.gasRefund)"}},"gasPrices":{"base":{"v":2,"d":"Gas base cost, used e.g. for ChainID opcode (Istanbul)"},"tierStep":{"v":[0,2,3,5,8,10,20],"d":"Once per operation, for a selection of them"},"exp":{"v":10,"d":"Base fee of the EXP opcode"},"expByte":{"v":10,"d":"Times ceil(log256(exponent)) for the EXP instruction"},"sha3":{"v":30,"d":"Base fee of the SHA3 opcode"},"sha3Word":{"v":6,"d":"Once per word of the SHA3 operation\'s data"},"sload":{"v":50,"d":"Base fee of the SLOAD opcode"},"sstoreSet":{"v":20000,"d":"Once per SSTORE operation if the zeroness changes from zero"},"sstoreReset":{"v":5000,"d":"Once per SSTORE operation if the zeroness does not change from zero"},"sstoreRefund":{"v":15000,"d":"Once per SSTORE operation if the zeroness changes to zero"},"jumpdest":{"v":1,"d":"Base fee of the JUMPDEST opcode"},"log":{"v":375,"d":"Base fee of the LOG opcode"},"logData":{"v":8,"d":"Per byte in a LOG* operation\'s data"},"logTopic":{"v":375,"d":"Multiplied by the * of the LOG*, per LOG transaction. e.g. LOG0 incurs 0 * c_txLogTopicGas, LOG4 incurs 4 * c_txLogTopicGas"},"create":{"v":32000,"d":"Base fee of the CREATE opcode"},"call":{"v":40,"d":"Base fee of the CALL opcode"},"callStipend":{"v":2300,"d":"Free gas given at beginning of call"},"callValueTransfer":{"v":9000,"d":"Paid for CALL when the value transfor is non-zero"},"callNewAccount":{"v":25000,"d":"Paid for CALL when the destination address didn\'t exist prior"},"selfdestructRefund":{"v":24000,"d":"Refunded following a selfdestruct operation"},"memory":{"v":3,"d":"Times the address of the (highest referenced byte in memory + 1). NOTE: referencing happens on read, write and in instructions such as RETURN and CALL"},"quadCoeffDiv":{"v":512,"d":"Divisor for the quadratic particle of the memory cost equation"},"createData":{"v":200,"d":""},"tx":{"v":21000,"d":"Per transaction. NOTE: Not payable on data of calls between transactions"},"txCreation":{"v":32000,"d":"The cost of creating a contract via tx"},"txDataZero":{"v":4,"d":"Per byte of data attached to a transaction that equals zero. NOTE: Not payable on data of calls between transactions"},"txDataNonZero":{"v":68,"d":"Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions"},"copy":{"v":3,"d":"Multiplied by the number of 32-byte words that are copied (round up) for any *COPY operation and added"},"ecRecover":{"v":3000,"d":""},"sha256":{"v":60,"d":""},"sha256Word":{"v":12,"d":""},"ripemd160":{"v":600,"d":""},"ripemd160Word":{"v":120,"d":""},"identity":{"v":15,"d":""},"identityWord":{"v":3,"d":""},"stop":{"v":0,"d":"Base fee of the STOP opcode"},"add":{"v":3,"d":"Base fee of the ADD opcode"},"mul":{"v":5,"d":"Base fee of the MUL opcode"},"sub":{"v":3,"d":"Base fee of the SUB opcode"},"div":{"v":5,"d":"Base fee of the DIV opcode"},"sdiv":{"v":5,"d":"Base fee of the SDIV opcode"},"mod":{"v":5,"d":"Base fee of the MOD opcode"},"smod":{"v":5,"d":"Base fee of the SMOD opcode"},"addmod":{"v":8,"d":"Base fee of the ADDMOD opcode"},"mulmod":{"v":8,"d":"Base fee of the MULMOD opcode"},"signextend":{"v":5,"d":"Base fee of the SIGNEXTEND opcode"},"lt":{"v":3,"d":"Base fee of the LT opcode"},"gt":{"v":3,"d":"Base fee of the GT opcode"},"slt":{"v":3,"d":"Base fee of the SLT opcode"},"sgt":{"v":3,"d":"Base fee of the SGT opcode"},"eq":{"v":3,"d":"Base fee of the EQ opcode"},"iszero":{"v":3,"d":"Base fee of the ISZERO opcode"},"and":{"v":3,"d":"Base fee of the AND opcode"},"or":{"v":3,"d":"Base fee of the OR opcode"},"xor":{"v":3,"d":"Base fee of the XOR opcode"},"not":{"v":3,"d":"Base fee of the NOT opcode"},"byte":{"v":3,"d":"Base fee of the BYTE opcode"},"address":{"v":2,"d":"Base fee of the ADDRESS opcode"},"balance":{"v":20,"d":"Base fee of the BALANCE opcode"},"origin":{"v":2,"d":"Base fee of the ORIGIN opcode"},"caller":{"v":2,"d":"Base fee of the CALLER opcode"},"callvalue":{"v":2,"d":"Base fee of the CALLVALUE opcode"},"calldataload":{"v":3,"d":"Base fee of the CALLDATALOAD opcode"},"calldatasize":{"v":2,"d":"Base fee of the CALLDATASIZE opcode"},"calldatacopy":{"v":3,"d":"Base fee of the CALLDATACOPY opcode"},"codesize":{"v":2,"d":"Base fee of the CODESIZE opcode"},"codecopy":{"v":3,"d":"Base fee of the CODECOPY opcode"},"gasprice":{"v":2,"d":"Base fee of the GASPRICE opcode"},"extcodesize":{"v":20,"d":"Base fee of the EXTCODESIZE opcode"},"extcodecopy":{"v":20,"d":"Base fee of the EXTCODECOPY opcode"},"blockhash":{"v":20,"d":"Base fee of the BLOCKHASH opcode"},"coinbase":{"v":2,"d":"Base fee of the COINBASE opcode"},"timestamp":{"v":2,"d":"Base fee of the TIMESTAMP opcode"},"number":{"v":2,"d":"Base fee of the NUMBER opcode"},"difficulty":{"v":2,"d":"Base fee of the DIFFICULTY opcode"},"gaslimit":{"v":2,"d":"Base fee of the GASLIMIT opcode"},"pop":{"v":2,"d":"Base fee of the POP opcode"},"mload":{"v":3,"d":"Base fee of the MLOAD opcode"},"mstore":{"v":3,"d":"Base fee of the MSTORE opcode"},"mstore8":{"v":3,"d":"Base fee of the MSTORE8 opcode"},"sstore":{"v":0,"d":"Base fee of the SSTORE opcode"},"jump":{"v":8,"d":"Base fee of the JUMP opcode"},"jumpi":{"v":10,"d":"Base fee of the JUMPI opcode"},"pc":{"v":2,"d":"Base fee of the PC opcode"},"msize":{"v":2,"d":"Base fee of the MSIZE opcode"},"gas":{"v":2,"d":"Base fee of the GAS opcode"},"push":{"v":3,"d":"Base fee of the PUSH opcode"},"dup":{"v":3,"d":"Base fee of the DUP opcode"},"swap":{"v":3,"d":"Base fee of the SWAP opcode"},"callcode":{"v":40,"d":"Base fee of the CALLCODE opcode"},"return":{"v":0,"d":"Base fee of the RETURN opcode"},"invalid":{"v":0,"d":"Base fee of the INVALID opcode"},"selfdestruct":{"v":0,"d":"Base fee of the SELFDESTRUCT opcode"}},"vm":{"stackLimit":{"v":1024,"d":"Maximum size of VM stack allowed"},"callCreateDepth":{"v":1024,"d":"Maximum depth of call/create stack"},"maxExtraDataSize":{"v":32,"d":"Maximum size extra data may be after Genesis"}},"pow":{"minimumDifficulty":{"v":131072,"d":"The minimum that the difficulty may ever be"},"difficultyBoundDivisor":{"v":2048,"d":"The bound divisor of the difficulty, used in the update calculations"},"durationLimit":{"v":13,"d":"The decision boundary on the blocktime duration used to determine whether difficulty should go up or not"},"epochDuration":{"v":30000,"d":"Duration between proof-of-work epochs"},"timebombPeriod":{"v":100000,"d":"Exponential difficulty timebomb period"},"minerReward":{"v":"5000000000000000000","d":"the amount a miner get rewarded for mining a block"},"difficultyBombDelay":{"v":0,"d":"the amount of blocks to delay the difficulty bomb with"}}}')},function(e){e.exports=JSON.parse('{"name":"homestead","comment":"Homestead hardfork with protocol and network changes","url":"https://eips.ethereum.org/EIPS/eip-606","status":"Final","gasConfig":{},"gasPrices":{"delegatecall":{"v":40,"d":"Base fee of the DELEGATECALL opcode"}},"vm":{},"pow":{}}')},function(e){e.exports=JSON.parse('{"name":"dao","comment":"DAO rescue hardfork","url":"https://eips.ethereum.org/EIPS/eip-779","status":"Final","gasConfig":{},"gasPrices":{},"vm":{},"pow":{}}')},function(e){e.exports=JSON.parse('{"name":"tangerineWhistle","comment":"Hardfork with gas cost changes for IO-heavy operations","url":"https://eips.ethereum.org/EIPS/eip-608","status":"Final","gasConfig":{},"gasPrices":{"sload":{"v":200,"d":"Once per SLOAD operation"},"call":{"v":700,"d":"Once per CALL operation & message call transaction"},"extcodesize":{"v":700,"d":"Base fee of the EXTCODESIZE opcode"},"extcodecopy":{"v":700,"d":"Base fee of the EXTCODECOPY opcode"},"balance":{"v":400,"d":"Base fee of the BALANCE opcode"},"delegatecall":{"v":700,"d":"Base fee of the DELEGATECALL opcode"},"callcode":{"v":700,"d":"Base fee of the CALLCODE opcode"},"selfdestruct":{"v":5000,"d":"Base fee of the SELFDESTRUCT opcode"}},"vm":{},"pow":{}}')},function(e){e.exports=JSON.parse('{"name":"spuriousDragon","comment":"HF with EIPs for simple replay attack protection, EXP cost increase, state trie clearing, contract code size limit","url":"https://eips.ethereum.org/EIPS/eip-607","status":"Final","gasConfig":{},"gasPrices":{"expByte":{"v":50,"d":"Times ceil(log256(exponent)) for the EXP instruction"}},"vm":{"maxCodeSize":{"v":24576,"d":"Maximum length of contract code"}},"pow":{}}')},function(e){e.exports=JSON.parse('{"name":"byzantium","comment":"Hardfork with new precompiles, instructions and other protocol changes","url":"https://eips.ethereum.org/EIPS/eip-609","status":"Final","gasConfig":{},"gasPrices":{"modexpGquaddivisor":{"v":20,"d":"Gquaddivisor from modexp precompile for gas calculation"},"ecAdd":{"v":500,"d":"Gas costs for curve addition precompile"},"ecMul":{"v":40000,"d":"Gas costs for curve multiplication precompile"},"ecPairing":{"v":100000,"d":"Base gas costs for curve pairing precompile"},"ecPairingWord":{"v":80000,"d":"Gas costs regarding curve pairing precompile input length"},"revert":{"v":0,"d":"Base fee of the REVERT opcode"},"staticcall":{"v":700,"d":"Base fee of the STATICCALL opcode"},"returndatasize":{"v":2,"d":"Base fee of the RETURNDATASIZE opcode"},"returndatacopy":{"v":3,"d":"Base fee of the RETURNDATACOPY opcode"}},"vm":{},"pow":{"minerReward":{"v":"3000000000000000000","d":"the amount a miner get rewarded for mining a block"},"difficultyBombDelay":{"v":3000000,"d":"the amount of blocks to delay the difficulty bomb with"}}}')},function(e){e.exports=JSON.parse('{"name":"constantinople","comment":"Postponed hardfork including EIP-1283 (SSTORE gas metering changes)","url":"https://eips.ethereum.org/EIPS/eip-1013","status":"Final","gasConfig":{},"gasPrices":{"netSstoreNoopGas":{"v":200,"d":"Once per SSTORE operation if the value doesn\'t change"},"netSstoreInitGas":{"v":20000,"d":"Once per SSTORE operation from clean zero"},"netSstoreCleanGas":{"v":5000,"d":"Once per SSTORE operation from clean non-zero"},"netSstoreDirtyGas":{"v":200,"d":"Once per SSTORE operation from dirty"},"netSstoreClearRefund":{"v":15000,"d":"Once per SSTORE operation for clearing an originally existing storage slot"},"netSstoreResetRefund":{"v":4800,"d":"Once per SSTORE operation for resetting to the original non-zero value"},"netSstoreResetClearRefund":{"v":19800,"d":"Once per SSTORE operation for resetting to the original zero value"},"shl":{"v":3,"d":"Base fee of the SHL opcode"},"shr":{"v":3,"d":"Base fee of the SHR opcode"},"sar":{"v":3,"d":"Base fee of the SAR opcode"},"extcodehash":{"v":400,"d":"Base fee of the EXTCODEHASH opcode"},"create2":{"v":32000,"d":"Base fee of the CREATE2 opcode"}},"vm":{},"pow":{"minerReward":{"v":"2000000000000000000","d":"The amount a miner gets rewarded for mining a block"},"difficultyBombDelay":{"v":5000000,"d":"the amount of blocks to delay the difficulty bomb with"}}}')},function(e){e.exports=JSON.parse('{"name":"petersburg","comment":"Aka constantinopleFix, removes EIP-1283, activate together with or after constantinople","url":"https://eips.ethereum.org/EIPS/eip-1716","status":"Draft","gasConfig":{},"gasPrices":{"netSstoreNoopGas":{"v":null,"d":"Removed along EIP-1283"},"netSstoreInitGas":{"v":null,"d":"Removed along EIP-1283"},"netSstoreCleanGas":{"v":null,"d":"Removed along EIP-1283"},"netSstoreDirtyGas":{"v":null,"d":"Removed along EIP-1283"},"netSstoreClearRefund":{"v":null,"d":"Removed along EIP-1283"},"netSstoreResetRefund":{"v":null,"d":"Removed along EIP-1283"},"netSstoreResetClearRefund":{"v":null,"d":"Removed along EIP-1283"}},"vm":{},"pow":{}}')},function(e){e.exports=JSON.parse('{"name":"istanbul","comment":"HF targeted for December 2019 following the Constantinople/Petersburg HF","url":"https://eips.ethereum.org/EIPS/eip-1679","status":"Draft","gasConfig":{},"gasPrices":{"blake2Round":{"v":1,"d":"Gas cost per round for the Blake2 F precompile"},"ecAdd":{"v":150,"d":"Gas costs for curve addition precompile"},"ecMul":{"v":6000,"d":"Gas costs for curve multiplication precompile"},"ecPairing":{"v":45000,"d":"Base gas costs for curve pairing precompile"},"ecPairingWord":{"v":34000,"d":"Gas costs regarding curve pairing precompile input length"},"txDataNonZero":{"v":16,"d":"Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions"},"sstoreSentryGasEIP2200":{"v":2300,"d":"Minimum gas required to be present for an SSTORE call, not consumed"},"sstoreNoopGasEIP2200":{"v":800,"d":"Once per SSTORE operation if the value doesn\'t change"},"sstoreDirtyGasEIP2200":{"v":800,"d":"Once per SSTORE operation if a dirty value is changed"},"sstoreInitGasEIP2200":{"v":20000,"d":"Once per SSTORE operation from clean zero to non-zero"},"sstoreInitRefundEIP2200":{"v":19200,"d":"Once per SSTORE operation for resetting to the original zero value"},"sstoreCleanGasEIP2200":{"v":5000,"d":"Once per SSTORE operation from clean non-zero to something else"},"sstoreCleanRefundEIP2200":{"v":4200,"d":"Once per SSTORE operation for resetting to the original non-zero value"},"sstoreClearRefundEIP2200":{"v":15000,"d":"Once per SSTORE operation for clearing an originally existing storage slot"},"balance":{"v":700,"d":"Base fee of the BALANCE opcode"},"extcodehash":{"v":700,"d":"Base fee of the EXTCODEHASH opcode"},"chainid":{"v":2,"d":"Base fee of the CHAINID opcode"},"selfbalance":{"v":5,"d":"Base fee of the SELFBALANCE opcode"},"sload":{"v":800,"d":"Base fee of the SLOAD opcode"}},"vm":{},"pow":{}}')},function(e){e.exports=JSON.parse('{"name":"muirGlacier","comment":"HF to delay the difficulty bomb","url":"https://eips.ethereum.org/EIPS/eip-2384","status":"Final","gasConfig":{},"gasPrices":{},"vm":{},"pow":{"difficultyBombDelay":{"v":9000000,"d":"the amount of blocks to delay the difficulty bomb with"}}}')},function(e){e.exports=JSON.parse('{"name":"berlin","comment":"HF targeted for July 2020 following the Muir Glacier HF","url":"https://eips.ethereum.org/EIPS/eip-2070","status":"Draft","eips":[2565,2929,2718,2930]}')},function(e){e.exports=JSON.parse('{"name":"london","comment":"HF targeted for July 2021 following the Berlin fork","url":"https://github.com/ethereum/eth1.0-specs/blob/master/network-upgrades/mainnet-upgrades/london.md","status":"Draft","eips":[1559,3198,3529,3541]}')},function(e){e.exports=JSON.parse('{"name":"shanghai","comment":"Next feature hardfork after the London HF","url":"https://github.com/ethereum/pm/issues/356","status":"Pre-Draft","eips":[]}')},function(e){e.exports=JSON.parse('{"name":"merge","comment":"Hardfork to upgrade the consensus mechanism to Proof-of-Stake","url":"https://github.com/ethereum/pm/issues/361","status":"pre-Draft","consensus":{"type":"pos","algorithm":"casper","casper":{}},"eips":[3675]}')},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EIPs=void 0,t.EIPs={1559:r(531),2315:r(532),2537:r(533),2565:r(534),2718:r(535),2929:r(536),2930:r(537),3198:r(538),3529:r(539),3541:r(540),3554:r(541),3675:r(542)}},function(e){e.exports=JSON.parse('{"name":"EIP-1559","number":1559,"comment":"Fee market change for ETH 1.0 chain","url":"https://eips.ethereum.org/EIPS/eip-1559","status":"Review","minimumHardfork":"berlin","requiredEIPs":[2930],"gasConfig":{"baseFeeMaxChangeDenominator":{"v":8,"d":"Maximum base fee change denominator"},"elasticityMultiplier":{"v":2,"d":"Maximum block gas target elasticity"},"initialBaseFee":{"v":1000000000,"d":"Initial base fee on first EIP1559 block"}},"gasPrices":{},"vm":{},"pow":{}}')},function(e){e.exports=JSON.parse('{"name":"EIP-2315","number":2315,"comment":"Simple subroutines for the EVM","url":"https://eips.ethereum.org/EIPS/eip-2315","status":"Draft","minimumHardfork":"istanbul","gasConfig":{},"gasPrices":{"beginsub":{"v":2,"d":"Base fee of the BEGINSUB opcode"},"returnsub":{"v":5,"d":"Base fee of the RETURNSUB opcode"},"jumpsub":{"v":10,"d":"Base fee of the JUMPSUB opcode"}},"vm":{},"pow":{}}')},function(e){e.exports=JSON.parse('{"name":"EIP-2537","number":2537,"comment":"BLS12-381 precompiles","url":"https://eips.ethereum.org/EIPS/eip-2537","status":"Draft","minimumHardfork":"chainstart","gasConfig":{},"gasPrices":{"Bls12381G1AddGas":{"v":600,"d":"Gas cost of a single BLS12-381 G1 addition precompile-call"},"Bls12381G1MulGas":{"v":12000,"d":"Gas cost of a single BLS12-381 G1 multiplication precompile-call"},"Bls12381G2AddGas":{"v":4500,"d":"Gas cost of a single BLS12-381 G2 addition precompile-call"},"Bls12381G2MulGas":{"v":55000,"d":"Gas cost of a single BLS12-381 G2 multiplication precompile-call"},"Bls12381PairingBaseGas":{"v":115000,"d":"Base gas cost of BLS12-381 pairing check"},"Bls12381PairingPerPairGas":{"v":23000,"d":"Per-pair gas cost of BLS12-381 pairing check"},"Bls12381MapG1Gas":{"v":5500,"d":"Gas cost of BLS12-381 map field element to G1"},"Bls12381MapG2Gas":{"v":110000,"d":"Gas cost of BLS12-381 map field element to G2"},"Bls12381MultiExpGasDiscount":{"v":[[1,1200],[2,888],[3,764],[4,641],[5,594],[6,547],[7,500],[8,453],[9,438],[10,423],[11,408],[12,394],[13,379],[14,364],[15,349],[16,334],[17,330],[18,326],[19,322],[20,318],[21,314],[22,310],[23,306],[24,302],[25,298],[26,294],[27,289],[28,285],[29,281],[30,277],[31,273],[32,269],[33,268],[34,266],[35,265],[36,263],[37,262],[38,260],[39,259],[40,257],[41,256],[42,254],[43,253],[44,251],[45,250],[46,248],[47,247],[48,245],[49,244],[50,242],[51,241],[52,239],[53,238],[54,236],[55,235],[56,233],[57,232],[58,231],[59,229],[60,228],[61,226],[62,225],[63,223],[64,222],[65,221],[66,220],[67,219],[68,219],[69,218],[70,217],[71,216],[72,216],[73,215],[74,214],[75,213],[76,213],[77,212],[78,211],[79,211],[80,210],[81,209],[82,208],[83,208],[84,207],[85,206],[86,205],[87,205],[88,204],[89,203],[90,202],[91,202],[92,201],[93,200],[94,199],[95,199],[96,198],[97,197],[98,196],[99,196],[100,195],[101,194],[102,193],[103,193],[104,192],[105,191],[106,191],[107,190],[108,189],[109,188],[110,188],[111,187],[112,186],[113,185],[114,185],[115,184],[116,183],[117,182],[118,182],[119,181],[120,180],[121,179],[122,179],[123,178],[124,177],[125,176],[126,176],[127,175],[128,174]],"d":"Discount gas costs of calls to the MultiExp precompiles with `k` (point, scalar) pair"}},"vm":{},"pow":{}}')},function(e){e.exports=JSON.parse('{"name":"EIP-2565","number":2565,"comment":"ModExp gas cost","url":"https://eips.ethereum.org/EIPS/eip-2565","status":"Last call","minimumHardfork":"byzantium","gasConfig":{},"gasPrices":{"modexpGquaddivisor":{"v":3,"d":"Gquaddivisor from modexp precompile for gas calculation"}},"vm":{},"pow":{}}')},function(e){e.exports=JSON.parse('{"name":"EIP-2718","comment":"Typed Transaction Envelope","url":"https://eips.ethereum.org/EIPS/eip-2718","status":"Draft","minimumHardfork":"chainstart","gasConfig":{},"gasPrices":{},"vm":{},"pow":{}}')},function(e){e.exports=JSON.parse('{"name":"EIP-2929","comment":"Gas cost increases for state access opcodes","url":"https://eips.ethereum.org/EIPS/eip-2929","status":"Draft","minimumHardfork":"chainstart","gasConfig":{},"gasPrices":{"coldsload":{"v":2100,"d":"Gas cost of the first read of storage from a given location (per transaction)"},"coldaccountaccess":{"v":2600,"d":"Gas cost of the first read of a given address (per transaction)"},"warmstorageread":{"v":100,"d":"Gas cost of reading storage locations which have already loaded \'cold\'"},"sstoreCleanGasEIP2200":{"v":2900,"d":"Once per SSTORE operation from clean non-zero to something else"},"sstoreNoopGasEIP2200":{"v":100,"d":"Once per SSTORE operation if the value doesn\'t change"},"sstoreDirtyGasEIP2200":{"v":100,"d":"Once per SSTORE operation if a dirty value is changed"},"sstoreInitRefundEIP2200":{"v":19900,"d":"Once per SSTORE operation for resetting to the original zero value"},"sstoreCleanRefundEIP2200":{"v":4900,"d":"Once per SSTORE operation for resetting to the original non-zero value"},"call":{"v":0,"d":"Base fee of the CALL opcode"},"callcode":{"v":0,"d":"Base fee of the CALLCODE opcode"},"delegatecall":{"v":0,"d":"Base fee of the DELEGATECALL opcode"},"staticcall":{"v":0,"d":"Base fee of the STATICCALL opcode"},"balance":{"v":0,"d":"Base fee of the BALANCE opcode"},"extcodesize":{"v":0,"d":"Base fee of the EXTCODESIZE opcode"},"extcodecopy":{"v":0,"d":"Base fee of the EXTCODECOPY opcode"},"extcodehash":{"v":0,"d":"Base fee of the EXTCODEHASH opcode"},"sload":{"v":0,"d":"Base fee of the SLOAD opcode"},"sstore":{"v":0,"d":"Base fee of the SSTORE opcode"}},"vm":{},"pow":{}}')},function(e){e.exports=JSON.parse('{"name":"EIP-2930","comment":"Optional access lists","url":"https://eips.ethereum.org/EIPS/eip-2930","status":"Draft","minimumHardfork":"istanbul","requiredEIPs":[2718,2929],"gasConfig":{},"gasPrices":{"accessListStorageKeyCost":{"v":1900,"d":"Gas cost per storage key in an Access List transaction"},"accessListAddressCost":{"v":2400,"d":"Gas cost per storage key in an Access List transaction"}},"vm":{},"pow":{}}')},function(e){e.exports=JSON.parse('{"name":"EIP-3198","number":3198,"comment":"BASEFEE opcode","url":"https://eips.ethereum.org/EIPS/eip-3198","status":"Review","minimumHardfork":"london","gasConfig":{},"gasPrices":{"basefee":{"v":2,"d":"Gas cost of the BASEFEE opcode"}},"vm":{},"pow":{}}')},function(e){e.exports=JSON.parse('{"name":"EIP-3529","comment":"Reduction in refunds","url":"https://eips.ethereum.org/EIPS/eip-3529","status":"Draft","minimumHardfork":"berlin","requiredEIPs":[2929],"gasConfig":{"maxRefundQuotient":{"v":5,"d":"Maximum refund quotient; max tx refund is min(tx.gasUsed/maxRefundQuotient, tx.gasRefund)"}},"gasPrices":{"selfdestructRefund":{"v":0,"d":"Refunded following a selfdestruct operation"},"sstoreClearRefundEIP2200":{"v":4800,"d":"Once per SSTORE operation for clearing an originally existing storage slot"}},"vm":{},"pow":{}}')},function(e){e.exports=JSON.parse('{"name":"EIP-3541","comment":"Reject new contracts starting with the 0xEF byte","url":"https://eips.ethereum.org/EIPS/eip-3541","status":"Draft","minimumHardfork":"berlin","requiredEIPs":[],"gasConfig":{},"gasPrices":{},"vm":{},"pow":{}}')},function(e){e.exports=JSON.parse('{"name":"EIP-3554","comment":"Reduction in refunds","url":"Difficulty Bomb Delay to December 1st 2021","status":"Draft","minimumHardfork":"muirGlacier","requiredEIPs":[],"gasConfig":{},"gasPrices":{},"vm":{},"pow":{"difficultyBombDelay":{"v":9500000,"d":"the amount of blocks to delay the difficulty bomb with"}}}')},function(e){e.exports=JSON.parse('{"name":"EIP-3675","number":3675,"comment":"Upgrade consensus to Proof-of-Stake","url":"https://eips.ethereum.org/EIPS/eip-3675","status":"Draft","minimumHardfork":"london","requiredEIPs":[],"gasConfig":{},"gasPrices":{},"vm":{},"pow":{}}')},function(e,t,r){"use strict";(function(e){var n,i=(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=r(27),s=r(119),u=r(53),c=r(231),f=e.from(1..toString(16).padStart(2,"0"),"hex"),l=function(t){function r(e,r){var n,i;void 0===r&&(r={});var s=t.call(this,o(o({},e),{type:1}))||this;s.DEFAULT_HARDFORK="berlin";var f=e.chainId,l=e.accessList,d=e.gasPrice;if(s.common=s._getCommon(r.common,f),s.chainId=s.common.chainIdBN(),!s.common.isActivatedEIP(2930))throw new Error("EIP-2930 not enabled on Common");s.activeCapabilities=s.activeCapabilities.concat([2718,2930]);var h=c.AccessLists.getAccessListData(null!=l?l:[]);if(s.accessList=h.accessList,s.AccessListJSON=h.AccessListJSON,c.AccessLists.verifyAccessList(s.accessList),s.gasPrice=new a.BN((0,a.toBuffer)(""===d?"0x":d)),s._validateCannotExceedMaxInteger({gasPrice:s.gasPrice}),s.v&&!s.v.eqn(0)&&!s.v.eqn(1))throw new Error("The y-parity of the transaction should either be 0 or 1");if(s.common.gteHardfork("homestead")&&(null===(n=s.s)||void 0===n?void 0:n.gt(u.N_DIV_2)))throw new Error("Invalid Signature: s-values greater than secp256k1n/2 are considered invalid");return(null===(i=null==r?void 0:r.freeze)||void 0===i||i)&&Object.freeze(s),s}return i(r,t),Object.defineProperty(r.prototype,"senderR",{get:function(){return this.r},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"senderS",{get:function(){return this.s},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"yParity",{get:function(){return this.v},enumerable:!1,configurable:!0}),r.fromTxData=function(e,t){return void 0===t&&(t={}),new r(e,t)},r.fromSerializedTx=function(e,t){if(void 0===t&&(t={}),!e.slice(0,1).equals(f))throw new Error("Invalid serialized tx input: not an EIP-2930 transaction (wrong tx type, expected: 1, received: "+e.slice(0,1).toString("hex"));var n=a.rlp.decode(e.slice(1));if(!Array.isArray(n))throw new Error("Invalid serialized tx input: must be array");return r.fromValuesArray(n,t)},r.fromRlpSerializedTx=function(e,t){return void 0===t&&(t={}),r.fromSerializedTx(e,t)},r.fromValuesArray=function(e,t){if(void 0===t&&(t={}),8!==e.length&&11!==e.length)throw new Error("Invalid EIP-2930 transaction. Only expecting 8 values (for unsigned tx) or 11 values (for signed tx).");var n=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}(e,11),i=n[0],o=n[1],s=n[2],u=n[3],c=n[4],f=n[5],l=n[6],d=n[7],h=n[8],p=n[9],b=n[10];return new r({chainId:new a.BN(i),nonce:o,gasPrice:s,gasLimit:u,to:c,value:f,data:l,accessList:null!=d?d:[],v:void 0!==h?new a.BN(h):void 0,r:p,s:b},t)},r.prototype.getDataFee=function(){var e=t.prototype.getDataFee.call(this);return e.iaddn(c.AccessLists.getDataFeeEIP2930(this.accessList,this.common)),e},r.prototype.getUpfrontCost=function(){return this.gasLimit.mul(this.gasPrice).add(this.value)},r.prototype.raw=function(){return[(0,a.bnToUnpaddedBuffer)(this.chainId),(0,a.bnToUnpaddedBuffer)(this.nonce),(0,a.bnToUnpaddedBuffer)(this.gasPrice),(0,a.bnToUnpaddedBuffer)(this.gasLimit),void 0!==this.to?this.to.buf:e.from([]),(0,a.bnToUnpaddedBuffer)(this.value),this.data,this.accessList,void 0!==this.v?(0,a.bnToUnpaddedBuffer)(this.v):e.from([]),void 0!==this.r?(0,a.bnToUnpaddedBuffer)(this.r):e.from([]),void 0!==this.s?(0,a.bnToUnpaddedBuffer)(this.s):e.from([])]},r.prototype.serialize=function(){var t=this.raw();return e.concat([f,a.rlp.encode(t)])},r.prototype.getMessageToSign=function(t){void 0===t&&(t=!0);var r=this.raw().slice(0,8),n=e.concat([f,a.rlp.encode(r)]);return t?(0,a.keccak256)(n):n},r.prototype.hash=function(){if(!this.isSigned())throw new Error("Cannot call hash method if transaction is not signed");return Object.isFrozen(this)?(this.cache.hash||(this.cache.hash=(0,a.keccak256)(this.serialize())),this.cache.hash):(0,a.keccak256)(this.serialize())},r.prototype.getMessageToVerifySignature=function(){return this.getMessageToSign()},r.prototype.getSenderPublicKey=function(){var e;if(!this.isSigned())throw new Error("Cannot call this method if transaction is not signed");var t=this.getMessageToVerifySignature();if(this.common.gteHardfork("homestead")&&(null===(e=this.s)||void 0===e?void 0:e.gt(u.N_DIV_2)))throw new Error("Invalid Signature: s-values greater than secp256k1n/2 are considered invalid");var r=this.yParity,n=this.r,i=this.s;try{return(0,a.ecrecover)(t,r.addn(27),(0,a.bnToUnpaddedBuffer)(n),(0,a.bnToUnpaddedBuffer)(i))}catch(e){throw new Error("Invalid Signature")}},r.prototype._processSignature=function(e,t,n){var i={common:this.common};return r.fromTxData({chainId:this.chainId,nonce:this.nonce,gasPrice:this.gasPrice,gasLimit:this.gasLimit,to:this.to,value:this.value,data:this.data,accessList:this.accessList,v:new a.BN(e-27),r:new a.BN(t),s:new a.BN(n)},i)},r.prototype.toJSON=function(){var e=c.AccessLists.getAccessListJSON(this.accessList);return{chainId:(0,a.bnToHex)(this.chainId),nonce:(0,a.bnToHex)(this.nonce),gasPrice:(0,a.bnToHex)(this.gasPrice),gasLimit:(0,a.bnToHex)(this.gasLimit),to:void 0!==this.to?this.to.toString():void 0,value:(0,a.bnToHex)(this.value),data:"0x"+this.data.toString("hex"),accessList:e,v:void 0!==this.v?(0,a.bnToHex)(this.v):void 0,r:void 0!==this.r?(0,a.bnToHex)(this.r):void 0,s:void 0!==this.s?(0,a.bnToHex)(this.s):void 0}},r}(s.BaseTransaction);t.default=l}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var n=r(27),i=r(230),o=function(){function t(){}return t.fromTxData=function(e,t){if(void 0===t&&(t={}),"type"in e&&void 0!==e.type){var r=new n.BN((0,n.toBuffer)(e.type)).toNumber();if(0===r)return i.Transaction.fromTxData(e,t);if(1===r)return i.AccessListEIP2930Transaction.fromTxData(e,t);if(2===r)return i.FeeMarketEIP1559Transaction.fromTxData(e,t);throw new Error("Tx instantiation with type "+r+" not supported")}return i.Transaction.fromTxData(e,t)},t.fromSerializedData=function(e,t){if(void 0===t&&(t={}),e[0]<=127){var r=void 0;switch(e[0]){case 1:r=2930;break;case 2:r=1559;break;default:throw new Error("TypedTransaction with ID "+e[0]+" unknown")}return 1559===r?i.FeeMarketEIP1559Transaction.fromSerializedTx(e,t):i.AccessListEIP2930Transaction.fromSerializedTx(e,t)}return i.Transaction.fromSerializedTx(e,t)},t.fromBlockBodyData=function(t,r){if(void 0===r&&(r={}),e.isBuffer(t))return this.fromSerializedData(t,r);if(Array.isArray(t))return i.Transaction.fromValuesArray(t,r);throw new Error("Cannot decode transaction: unknown type input")},t.getTransactionClass=function(e,t){if(void 0===e&&(e=0),0==e||e>=128&&e<=255)return i.Transaction;switch(e){case 1:return i.AccessListEIP2930Transaction;case 2:return i.FeeMarketEIP1559Transaction;default:throw new Error("TypedTransaction with ID "+e+" unknown")}},t}();t.default=o}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(e){var n,i=(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=r(27),s=r(119),u=r(53),c=r(231),f=e.from(2..toString(16).padStart(2,"0"),"hex"),l=function(t){function r(e,r){var n,i;void 0===r&&(r={});var s=t.call(this,o(o({},e),{type:2}))||this;s.DEFAULT_HARDFORK="london";var f=e.chainId,l=e.accessList,d=e.maxFeePerGas,h=e.maxPriorityFeePerGas;if(s.common=s._getCommon(r.common,f),s.chainId=s.common.chainIdBN(),!s.common.isActivatedEIP(1559))throw new Error("EIP-1559 not enabled on Common");s.activeCapabilities=s.activeCapabilities.concat([1559,2718,2930]);var p=c.AccessLists.getAccessListData(null!=l?l:[]);if(s.accessList=p.accessList,s.AccessListJSON=p.AccessListJSON,c.AccessLists.verifyAccessList(s.accessList),s.maxFeePerGas=new a.BN((0,a.toBuffer)(""===d?"0x":d)),s.maxPriorityFeePerGas=new a.BN((0,a.toBuffer)(""===h?"0x":h)),s._validateCannotExceedMaxInteger({maxFeePerGas:s.maxFeePerGas,maxPriorityFeePerGas:s.maxPriorityFeePerGas},256),s.maxFeePerGas.lt(s.maxPriorityFeePerGas))throw new Error("maxFeePerGas cannot be less than maxPriorityFeePerGas (The total must be the larger of the two)");if(s.v&&!s.v.eqn(0)&&!s.v.eqn(1))throw new Error("The y-parity of the transaction should either be 0 or 1");if(s.common.gteHardfork("homestead")&&(null===(n=s.s)||void 0===n?void 0:n.gt(u.N_DIV_2)))throw new Error("Invalid Signature: s-values greater than secp256k1n/2 are considered invalid");return(null===(i=null==r?void 0:r.freeze)||void 0===i||i)&&Object.freeze(s),s}return i(r,t),Object.defineProperty(r.prototype,"senderR",{get:function(){return this.r},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"senderS",{get:function(){return this.s},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"yParity",{get:function(){return this.v},enumerable:!1,configurable:!0}),r.fromTxData=function(e,t){return void 0===t&&(t={}),new r(e,t)},r.fromSerializedTx=function(e,t){if(void 0===t&&(t={}),!e.slice(0,1).equals(f))throw new Error("Invalid serialized tx input: not an EIP-1559 transaction (wrong tx type, expected: 2, received: "+e.slice(0,1).toString("hex"));var n=a.rlp.decode(e.slice(1));if(!Array.isArray(n))throw new Error("Invalid serialized tx input: must be array");return r.fromValuesArray(n,t)},r.fromRlpSerializedTx=function(e,t){return void 0===t&&(t={}),r.fromSerializedTx(e,t)},r.fromValuesArray=function(e,t){if(void 0===t&&(t={}),9!==e.length&&12!==e.length)throw new Error("Invalid EIP-1559 transaction. Only expecting 9 values (for unsigned tx) or 12 values (for signed tx).");var n=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}(e,12),i=n[0],o=n[1],s=n[2],u=n[3],c=n[4],f=n[5],l=n[6],d=n[7],h=n[8],p=n[9],b=n[10],y=n[11];return new r({chainId:new a.BN(i),nonce:o,maxPriorityFeePerGas:s,maxFeePerGas:u,gasLimit:c,to:f,value:l,data:d,accessList:null!=h?h:[],v:void 0!==p?new a.BN(p):void 0,r:b,s:y},t)},r.prototype.getDataFee=function(){var e=t.prototype.getDataFee.call(this);return e.iaddn(c.AccessLists.getDataFeeEIP2930(this.accessList,this.common)),e},r.prototype.getUpfrontCost=function(e){void 0===e&&(e=new a.BN(0));var t=a.BN.min(this.maxPriorityFeePerGas,this.maxFeePerGas.sub(e)).add(e);return this.gasLimit.mul(t).add(this.value)},r.prototype.raw=function(){return[(0,a.bnToUnpaddedBuffer)(this.chainId),(0,a.bnToUnpaddedBuffer)(this.nonce),(0,a.bnToUnpaddedBuffer)(this.maxPriorityFeePerGas),(0,a.bnToUnpaddedBuffer)(this.maxFeePerGas),(0,a.bnToUnpaddedBuffer)(this.gasLimit),void 0!==this.to?this.to.buf:e.from([]),(0,a.bnToUnpaddedBuffer)(this.value),this.data,this.accessList,void 0!==this.v?(0,a.bnToUnpaddedBuffer)(this.v):e.from([]),void 0!==this.r?(0,a.bnToUnpaddedBuffer)(this.r):e.from([]),void 0!==this.s?(0,a.bnToUnpaddedBuffer)(this.s):e.from([])]},r.prototype.serialize=function(){var t=this.raw();return e.concat([f,a.rlp.encode(t)])},r.prototype.getMessageToSign=function(t){void 0===t&&(t=!0);var r=this.raw().slice(0,9),n=e.concat([f,a.rlp.encode(r)]);return t?(0,a.keccak256)(n):n},r.prototype.hash=function(){if(!this.isSigned())throw new Error("Cannot call hash method if transaction is not signed");return Object.isFrozen(this)?(this.cache.hash||(this.cache.hash=(0,a.keccak256)(this.serialize())),this.cache.hash):(0,a.keccak256)(this.serialize())},r.prototype.getMessageToVerifySignature=function(){return this.getMessageToSign()},r.prototype.getSenderPublicKey=function(){var e;if(!this.isSigned())throw new Error("Cannot call this method if transaction is not signed");var t=this.getMessageToVerifySignature();if(this.common.gteHardfork("homestead")&&(null===(e=this.s)||void 0===e?void 0:e.gt(u.N_DIV_2)))throw new Error("Invalid Signature: s-values greater than secp256k1n/2 are considered invalid");var r=this.v,n=this.r,i=this.s;try{return(0,a.ecrecover)(t,r.addn(27),(0,a.bnToUnpaddedBuffer)(n),(0,a.bnToUnpaddedBuffer)(i))}catch(e){throw new Error("Invalid Signature")}},r.prototype._processSignature=function(e,t,n){var i={common:this.common};return r.fromTxData({chainId:this.chainId,nonce:this.nonce,maxPriorityFeePerGas:this.maxPriorityFeePerGas,maxFeePerGas:this.maxFeePerGas,gasLimit:this.gasLimit,to:this.to,value:this.value,data:this.data,accessList:this.accessList,v:new a.BN(e-27),r:new a.BN(t),s:new a.BN(n)},i)},r.prototype.toJSON=function(){var e=c.AccessLists.getAccessListJSON(this.accessList);return{chainId:(0,a.bnToHex)(this.chainId),nonce:(0,a.bnToHex)(this.nonce),maxPriorityFeePerGas:(0,a.bnToHex)(this.maxPriorityFeePerGas),maxFeePerGas:(0,a.bnToHex)(this.maxFeePerGas),gasLimit:(0,a.bnToHex)(this.gasLimit),to:void 0!==this.to?this.to.toString():void 0,value:(0,a.bnToHex)(this.value),data:"0x"+this.data.toString("hex"),accessList:e,v:void 0!==this.v?(0,a.bnToHex)(this.v):void 0,r:void 0!==this.r?(0,a.bnToHex)(this.r):void 0,s:void 0!==this.s?(0,a.bnToHex)(this.s):void 0}},r}(s.BaseTransaction);t.default=l}).call(this,r(1).Buffer)},function(e,t,r){"use strict";var n=Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]},i=function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.isHexString=t.getKeys=t.fromAscii=t.fromUtf8=t.toAscii=t.arrayContainsArray=t.getBinarySize=t.padToEven=t.stripHexPrefix=t.isHexPrefixed=void 0,i(r(232),t),i(r(233),t),i(r(597),t),i(r(123),t),i(r(598),t),i(r(42),t),i(r(599),t),i(r(29),t),i(r(126),t);var o=r(54);Object.defineProperty(t,"isHexPrefixed",{enumerable:!0,get:function(){return o.isHexPrefixed}}),Object.defineProperty(t,"stripHexPrefix",{enumerable:!0,get:function(){return o.stripHexPrefix}}),Object.defineProperty(t,"padToEven",{enumerable:!0,get:function(){return o.padToEven}}),Object.defineProperty(t,"getBinarySize",{enumerable:!0,get:function(){return o.getBinarySize}}),Object.defineProperty(t,"arrayContainsArray",{enumerable:!0,get:function(){return o.arrayContainsArray}}),Object.defineProperty(t,"toAscii",{enumerable:!0,get:function(){return o.toAscii}}),Object.defineProperty(t,"fromUtf8",{enumerable:!0,get:function(){return o.fromUtf8}}),Object.defineProperty(t,"fromAscii",{enumerable:!0,get:function(){return o.fromAscii}}),Object.defineProperty(t,"getKeys",{enumerable:!0,get:function(){return o.getKeys}}),Object.defineProperty(t,"isHexString",{enumerable:!0,get:function(){return o.isHexString}})},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.getLength=t.decode=t.encode=void 0;var n=function(e){return e&&e.__esModule?e:{default:e}}(r(4));function i(e,t){if("0"===e[0]&&"0"===e[1])throw new Error("invalid RLP: extra zeros");return parseInt(e,t)}function o(t,r){if(t<56)return e.from([t+r]);var n=s(t),i=s(r+55+n.length/2);return e.from(i+n,"hex")}function a(e){return"0x"===e.slice(0,2)}function s(e){if(e<0)throw new Error("Invalid integer as argument, must be unsigned!");var t=e.toString(16);return t.length%2?"0"+t:t}function u(t){if(!e.isBuffer(t)){if("string"==typeof t)return a(t)?e.from((i="string"!=typeof(o=t)?o:a(o)?o.slice(2):o).length%2?"0"+i:i,"hex"):e.from(t);if("number"==typeof t||"bigint"==typeof t)return t?(r=s(t),e.from(r,"hex")):e.from([]);if(null==t)return e.from([]);if(t instanceof Uint8Array)return e.from(t);if(n.default.isBN(t))return e.from(t.toArray());throw new Error("invalid type")}var r,i,o;return t}t.encode=function t(r){if(Array.isArray(r)){for(var n=[],i=0;i<r.length;i++)n.push(t(r[i]));var a=e.concat(n);return e.concat([o(a.length,192),a])}var s=u(r);return 1===s.length&&s[0]<128?s:e.concat([o(s.length,128),s])},t.decode=function(t,r){if(void 0===r&&(r=!1),!t||0===t.length)return e.from([]);var n=function t(r){var n,o,a,s,u,c=[],f=r[0];if(f<=127)return{data:r.slice(0,1),remainder:r.slice(1)};if(f<=183){if(n=f-127,a=128===f?e.from([]):r.slice(1,n),2===n&&a[0]<128)throw new Error("invalid rlp encoding: byte must be less 0x80");return{data:a,remainder:r.slice(n)}}if(f<=191){if(o=f-182,r.length-1<o)throw new Error("invalid RLP: not enough bytes for string length");if((n=i(r.slice(1,o).toString("hex"),16))<=55)throw new Error("invalid RLP: expected string length to be greater than 55");if((a=r.slice(o,n+o)).length<n)throw new Error("invalid RLP: not enough bytes for string");return{data:a,remainder:r.slice(n+o)}}if(f<=247){for(n=f-191,s=r.slice(1,n);s.length;)u=t(s),c.push(u.data),s=u.remainder;return{data:c,remainder:r.slice(n)}}var l=(o=f-246)+(n=i(r.slice(1,o).toString("hex"),16));if(l>r.length)throw new Error("invalid rlp: total length is larger than the data");if(0===(s=r.slice(o,l)).length)throw new Error("invalid rlp, List has a invalid length");for(;s.length;)u=t(s),c.push(u.data),s=u.remainder;return{data:c,remainder:r.slice(l)}}(u(t));if(r)return n;if(0!==n.remainder.length)throw new Error("invalid remainder");return n.data},t.getLength=function(t){if(!t||0===t.length)return e.from([]);var r=u(t),n=r[0];if(n<=127)return r.length;if(n<=183)return n-127;if(n<=191)return n-182;if(n<=247)return n-191;var o=n-246;return o+i(r.slice(1,o).toString("hex"),16)}}).call(this,r(1).Buffer)},function(e,t,r){"use strict";function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 a,s=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var o="Impossible case. Please create issue.",a="The tweak was out of range or the resulted private key is invalid",s="The tweak was out of range or equal to zero",u="Public Key could not be parsed",c="Public Key serialization error",f="Signature could not be parsed";function l(e,t){if(!e)throw new Error(t)}function d(e,t,r){if(l(t instanceof Uint8Array,"Expected ".concat(e," to be an Uint8Array")),void 0!==r)if(Array.isArray(r)){var n=r.join(", "),i="Expected ".concat(e," to be an Uint8Array with length [").concat(n,"]");l(r.includes(t.length),i)}else{var o="Expected ".concat(e," to be an Uint8Array with length ").concat(r);l(t.length===r,o)}}function h(e){l("Boolean"===b(e),"Expected compressed to be a Boolean")}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return new Uint8Array(e)},t=arguments.length>1?arguments[1]:void 0;return"function"==typeof e&&(e=e(t)),d("output",e,t),e}function b(e){return Object.prototype.toString.call(e).slice(8,-1)}e.exports=function(e){return{contextRandomize:function(t){if(1===(l(null===t||t instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),null!==t&&d("seed",t,32),e.contextRandomize(t)))throw new Error("Unknow error on context randomization")},privateKeyVerify:function(t){return d("private key",t,32),0===e.privateKeyVerify(t)},privateKeyNegate:function(t){switch(d("private key",t,32),e.privateKeyNegate(t)){case 0:return t;case 1:throw new Error(o)}},privateKeyTweakAdd:function(t,r){switch(d("private key",t,32),d("tweak",r,32),e.privateKeyTweakAdd(t,r)){case 0:return t;case 1:throw new Error(a)}},privateKeyTweakMul:function(t,r){switch(d("private key",t,32),d("tweak",r,32),e.privateKeyTweakMul(t,r)){case 0:return t;case 1:throw new Error(s)}},publicKeyVerify:function(t){return d("public key",t,[33,65]),0===e.publicKeyVerify(t)},publicKeyCreate:function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;switch(d("private key",t,32),h(r),n=p(n,r?33:65),e.publicKeyCreate(n,t)){case 0:return n;case 1:throw new Error("Private Key is invalid");case 2:throw new Error(c)}},publicKeyConvert:function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;switch(d("public key",t,[33,65]),h(r),n=p(n,r?33:65),e.publicKeyConvert(n,t)){case 0:return n;case 1:throw new Error(u);case 2:throw new Error(c)}},publicKeyNegate:function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;switch(d("public key",t,[33,65]),h(r),n=p(n,r?33:65),e.publicKeyNegate(n,t)){case 0:return n;case 1:throw new Error(u);case 2:throw new Error(o);case 3:throw new Error(c)}},publicKeyCombine:function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2?arguments[2]:void 0;l(Array.isArray(t),"Expected public keys to be an Array"),l(t.length>0,"Expected public keys array will have more than zero items");var o,a=n(t);try{for(a.s();!(o=a.n()).done;)d("public key",o.value,[33,65])}catch(e){a.e(e)}finally{a.f()}switch(h(r),i=p(i,r?33:65),e.publicKeyCombine(i,t)){case 0:return i;case 1:throw new Error(u);case 2:throw new Error("The sum of the public keys is not valid");case 3:throw new Error(c)}},publicKeyTweakAdd:function(t,r){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3?arguments[3]:void 0;switch(d("public key",t,[33,65]),d("tweak",r,32),h(n),i=p(i,n?33:65),e.publicKeyTweakAdd(i,t,r)){case 0:return i;case 1:throw new Error(u);case 2:throw new Error(a)}},publicKeyTweakMul:function(t,r){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3?arguments[3]:void 0;switch(d("public key",t,[33,65]),d("tweak",r,32),h(n),i=p(i,n?33:65),e.publicKeyTweakMul(i,t,r)){case 0:return i;case 1:throw new Error(u);case 2:throw new Error(s)}},signatureNormalize:function(t){switch(d("signature",t,64),e.signatureNormalize(t)){case 0:return t;case 1:throw new Error(f)}},signatureExport:function(t,r){d("signature",t,64);var n={output:r=p(r,72),outputlen:72};switch(e.signatureExport(n,t)){case 0:return r.slice(0,n.outputlen);case 1:throw new Error(f);case 2:throw new Error(o)}},signatureImport:function(t,r){switch(d("signature",t),r=p(r,64),e.signatureImport(r,t)){case 0:return r;case 1:throw new Error(f);case 2:throw new Error(o)}},ecdsaSign:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;d("message",t,32),d("private key",r,32),l("Object"===b(n),"Expected options to be an Object"),void 0!==n.data&&d("options.data",n.data),void 0!==n.noncefn&&l("Function"===b(n.noncefn),"Expected options.noncefn to be a Function");var a={signature:i=p(i,64),recid:null};switch(e.ecdsaSign(a,t,r,n.data,n.noncefn)){case 0:return a;case 1:throw new Error("The nonce generation function failed, or the private key was invalid");case 2:throw new Error(o)}},ecdsaVerify:function(t,r,n){switch(d("signature",t,64),d("message",r,32),d("public key",n,[33,65]),e.ecdsaVerify(t,r,n)){case 0:return!0;case 3:return!1;case 1:throw new Error(f);case 2:throw new Error(u)}},ecdsaRecover:function(t,r,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=arguments.length>4?arguments[4]:void 0;switch(d("signature",t,64),l("Number"===b(r)&&r>=0&&r<=3,"Expected recovery id to be a Number within interval [0, 3]"),d("message",n,32),h(i),a=p(a,i?33:65),e.ecdsaRecover(a,t,r,n)){case 0:return a;case 1:throw new Error(f);case 2:throw new Error("Public key could not be recover");case 3:throw new Error(o)}},ecdh:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;switch(d("public key",t,[33,65]),d("private key",r,32),l("Object"===b(n),"Expected options to be an Object"),void 0!==n.data&&d("options.data",n.data),void 0!==n.hashfn?(l("Function"===b(n.hashfn),"Expected options.hashfn to be a Function"),void 0!==n.xbuf&&d("options.xbuf",n.xbuf,32),void 0!==n.ybuf&&d("options.ybuf",n.ybuf,32),d("output",i)):i=p(i,32),e.ecdh(i,t,r,n.data,n.hashfn,n.xbuf,n.ybuf)){case 0:return i;case 1:throw new Error(u);case 2:throw new Error("Scalar was invalid (zero or overflow)")}}}}},function(e,t,r){"use strict";var n=new(0,r(550).ec)("secp256k1"),i=n.curve,o=i.n.constructor;function a(e){var t=e[0];switch(t){case 2:case 3:return 33!==e.length?null:function(e,t){var r=new o(t);if(r.cmp(i.p)>=0)return null;var a=(r=r.toRed(i.red)).redSqr().redIMul(r).redIAdd(i.b).redSqrt();return 3===e!==a.isOdd()&&(a=a.redNeg()),n.keyPair({pub:{x:r,y:a}})}(t,e.subarray(1,33));case 4:case 6:case 7:return 65!==e.length?null:function(e,t,r){var a=new o(t),s=new o(r);if(a.cmp(i.p)>=0||s.cmp(i.p)>=0)return null;if(a=a.toRed(i.red),s=s.toRed(i.red),(6===e||7===e)&&s.isOdd()!==(7===e))return null;var u=a.redSqr().redIMul(a);return s.redSqr().redISub(u.redIAdd(i.b)).isZero()?n.keyPair({pub:{x:a,y:s}}):null}(t,e.subarray(1,33),e.subarray(33,65));default:return null}}function s(e,t){for(var r=t.encode(null,33===e.length),n=0;n<e.length;++n)e[n]=r[n]}e.exports={contextRandomize:function(){return 0},privateKeyVerify:function(e){var t=new o(e);return t.cmp(i.n)<0&&!t.isZero()?0:1},privateKeyNegate:function(e){var t=new o(e),r=i.n.sub(t).umod(i.n).toArrayLike(Uint8Array,"be",32);return e.set(r),0},privateKeyTweakAdd:function(e,t){var r=new o(t);if(r.cmp(i.n)>=0)return 1;if(r.iadd(new o(e)),r.cmp(i.n)>=0&&r.isub(i.n),r.isZero())return 1;var n=r.toArrayLike(Uint8Array,"be",32);return e.set(n),0},privateKeyTweakMul:function(e,t){var r=new o(t);if(r.cmp(i.n)>=0||r.isZero())return 1;r.imul(new o(e)),r.cmp(i.n)>=0&&(r=r.umod(i.n));var n=r.toArrayLike(Uint8Array,"be",32);return e.set(n),0},publicKeyVerify:function(e){return null===a(e)?1:0},publicKeyCreate:function(e,t){var r=new o(t);return r.cmp(i.n)>=0||r.isZero()?1:(s(e,n.keyFromPrivate(t).getPublic()),0)},publicKeyConvert:function(e,t){var r=a(t);return null===r?1:(s(e,r.getPublic()),0)},publicKeyNegate:function(e,t){var r=a(t);if(null===r)return 1;var n=r.getPublic();return n.y=n.y.redNeg(),s(e,n),0},publicKeyCombine:function(e,t){for(var r=new Array(t.length),n=0;n<t.length;++n)if(r[n]=a(t[n]),null===r[n])return 1;for(var i=r[0].getPublic(),o=1;o<r.length;++o)i=i.add(r[o].pub);return i.isInfinity()?2:(s(e,i),0)},publicKeyTweakAdd:function(e,t,r){var n=a(t);if(null===n)return 1;if((r=new o(r)).cmp(i.n)>=0)return 2;var u=n.getPublic().add(i.g.mul(r));return u.isInfinity()?2:(s(e,u),0)},publicKeyTweakMul:function(e,t,r){var n=a(t);return null===n?1:(r=new o(r)).cmp(i.n)>=0||r.isZero()?2:(s(e,n.getPublic().mul(r)),0)},signatureNormalize:function(e){var t=new o(e.subarray(0,32)),r=new o(e.subarray(32,64));return t.cmp(i.n)>=0||r.cmp(i.n)>=0?1:(1===r.cmp(n.nh)&&e.set(i.n.sub(r).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport:function(e,t){var r=t.subarray(0,32),n=t.subarray(32,64);if(new o(r).cmp(i.n)>=0)return 1;if(new o(n).cmp(i.n)>=0)return 1;var a=e.output,s=a.subarray(4,37);s[0]=0,s.set(r,1);for(var u=33,c=0;u>1&&0===s[c]&&!(128&s[c+1]);--u,++c);if(128&(s=s.subarray(c))[0])return 1;if(u>1&&0===s[0]&&!(128&s[1]))return 1;var f=a.subarray(39,72);f[0]=0,f.set(n,1);for(var l=33,d=0;l>1&&0===f[d]&&!(128&f[d+1]);--l,++d);return 128&(f=f.subarray(d))[0]||l>1&&0===f[0]&&!(128&f[1])?1:(e.outputlen=6+u+l,a[0]=48,a[1]=e.outputlen-2,a[2]=2,a[3]=s.length,a.set(s,4),a[4+u]=2,a[5+u]=f.length,a.set(f,6+u),0)},signatureImport:function(e,t){if(t.length<8)return 1;if(t.length>72)return 1;if(48!==t[0])return 1;if(t[1]!==t.length-2)return 1;if(2!==t[2])return 1;var r=t[3];if(0===r)return 1;if(5+r>=t.length)return 1;if(2!==t[4+r])return 1;var n=t[5+r];if(0===n)return 1;if(6+r+n!==t.length)return 1;if(128&t[4])return 1;if(r>1&&0===t[4]&&!(128&t[5]))return 1;if(128&t[r+6])return 1;if(n>1&&0===t[r+6]&&!(128&t[r+7]))return 1;var a=t.subarray(4,4+r);if(33===a.length&&0===a[0]&&(a=a.subarray(1)),a.length>32)return 1;var s=t.subarray(6+r);if(33===s.length&&0===s[0]&&(s=s.slice(1)),s.length>32)throw new Error("S length is too long");var u=new o(a);u.cmp(i.n)>=0&&(u=new o(0));var c=new o(t.subarray(6+r));return c.cmp(i.n)>=0&&(c=new o(0)),e.set(u.toArrayLike(Uint8Array,"be",32),0),e.set(c.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign:function(e,t,r,a,s){if(s){var u=s;s=function(e){var n=u(t,r,null,a,e);if(!(n instanceof Uint8Array&&32===n.length))throw new Error("This is the way");return new o(n)}}var c,f=new o(r);if(f.cmp(i.n)>=0||f.isZero())return 1;try{c=n.sign(t,r,{canonical:!0,k:s,pers:a})}catch(e){return 1}return e.signature.set(c.r.toArrayLike(Uint8Array,"be",32),0),e.signature.set(c.s.toArrayLike(Uint8Array,"be",32),32),e.recid=c.recoveryParam,0},ecdsaVerify:function(e,t,r){var s={r:e.subarray(0,32),s:e.subarray(32,64)},u=new o(s.r),c=new o(s.s);if(u.cmp(i.n)>=0||c.cmp(i.n)>=0)return 1;if(1===c.cmp(n.nh)||u.isZero()||c.isZero())return 3;var f=a(r);if(null===f)return 2;var l=f.getPublic();return n.verify(t,s,l)?0:3},ecdsaRecover:function(e,t,r,a){var u,c={r:t.slice(0,32),s:t.slice(32,64)},f=new o(c.r),l=new o(c.s);if(f.cmp(i.n)>=0||l.cmp(i.n)>=0)return 1;if(f.isZero()||l.isZero())return 2;try{u=n.recoverPubKey(a,c,r)}catch(e){return 2}return s(e,u),0},ecdh:function(e,t,r,s,u,c,f){var l=a(t);if(null===l)return 1;var d=new o(r);if(d.cmp(i.n)>=0||d.isZero())return 2;var h=l.getPublic().mul(d);if(void 0===u)for(var p=h.encode(null,!0),b=n.hash().update(p).digest(),y=0;y<32;++y)e[y]=b[y];else{c||(c=new Uint8Array(32));for(var g=h.getX().toArray("be",32),m=0;m<32;++m)c[m]=g[m];f||(f=new Uint8Array(32));for(var v=h.getY().toArray("be",32),w=0;w<32;++w)f[w]=v[w];var _=u(c,f,s);if(!(_ instanceof Uint8Array&&_.length===e.length))return 2;e.set(_)}return 0}}},function(e,t,r){"use strict";var n=t;n.version=r(551).version,n.utils=r(22),n.rand=r(237),n.curve=r(238),n.curves=r(121),n.ec=r(563),n.eddsa=r(567)},function(e){e.exports=JSON.parse('{"_args":[["elliptic@6.5.4","/Users/user1/Desktop/office/web3/deployments/1.8.1/web3.js/packages/web3-eth-accounts"]],"_from":"elliptic@6.5.4","_id":"elliptic@6.5.4","_inBundle":false,"_integrity":"sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==","_location":"/elliptic","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"elliptic@6.5.4","name":"elliptic","escapedName":"elliptic","rawSpec":"6.5.4","saveSpec":null,"fetchSpec":"6.5.4"},"_requiredBy":["/ethereumjs-util/secp256k1"],"_resolved":"https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz","_spec":"6.5.4","_where":"/Users/user1/Desktop/office/web3/deployments/1.8.1/web3.js/packages/web3-eth-accounts","author":{"name":"Fedor Indutny","email":"fedor@indutny.com"},"bugs":{"url":"https://github.com/indutny/elliptic/issues"},"dependencies":{"bn.js":"^4.11.9","brorand":"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1","inherits":"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"},"description":"EC cryptography","devDependencies":{"brfs":"^2.0.2","coveralls":"^3.1.0","eslint":"^7.6.0","grunt":"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.5","mocha":"^8.0.1"},"files":["lib"],"homepage":"https://github.com/indutny/elliptic","keywords":["EC","Elliptic","curve","Cryptography"],"license":"MIT","main":"lib/elliptic.js","name":"elliptic","repository":{"type":"git","url":"git+ssh://git@github.com/indutny/elliptic.git"},"scripts":{"lint":"eslint lib test","lint:fix":"npm run lint -- --fix","test":"npm run lint && npm run unit","unit":"istanbul test _mocha --reporter=spec test/index.js","version":"grunt dist && git add dist/"},"version":"6.5.4"}')},function(e,t){},function(e,t,r){"use strict";var n=r(22),i=r(4),o=r(10),a=r(89),s=n.assert;function u(e){a.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function c(e,t,r,n){a.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function f(e,t,r,n){a.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(r,16),this.z=new i(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(u,a),e.exports=u,u.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,r;if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);t=(t=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(e.lambda)r=new i(e.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(t))?r=o[0]:(r=o[1],s(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:r,basis:e.basis?e.basis.map((function(e){return{a:new i(e.a,16),b:new i(e.b,16)}})):this._getEndoBasis(r)}}},u.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),r=new i(2).toRed(t).redInvm(),n=r.redNeg(),o=new i(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(o).fromRed(),n.redSub(o).fromRed()]},u.prototype._getEndoBasis=function(e){for(var t,r,n,o,a,s,u,c,f,l=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=e,h=this.n.clone(),p=new i(1),b=new i(0),y=new i(0),g=new i(1),m=0;0!==d.cmpn(0);){var v=h.div(d);c=h.sub(v.mul(d)),f=y.sub(v.mul(p));var w=g.sub(v.mul(b));if(!n&&c.cmp(l)<0)t=u.neg(),r=p,n=c.neg(),o=f;else if(n&&2==++m)break;u=c,h=d,d=c,y=p,p=f,g=b,b=w}a=c.neg(),s=f;var _=n.sqr().add(o.sqr());return a.sqr().add(s.sqr()).cmp(_)>=0&&(a=t,s=r),n.negative&&(n=n.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:o},{a,b:s}]},u.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),u=i.mul(r.b),c=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:u.add(c).neg()}},u.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var o=n.fromRed().isOdd();return(t&&!o||!t&&o)&&(n=n.redNeg()),this.point(e,n)},u.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},u.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var a=this._endoSplit(t[o]),s=e[o],u=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),u=u.neg(!0)),n[2*o]=s,n[2*o+1]=u,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var c=this._wnafMulAdd(1,n,i,2*o,r),f=0;f<2*o;f++)n[f]=null,i[f]=null;return c},o(c,a.BasePoint),u.prototype.point=function(e,t,r){return new c(this,e,t,r)},u.prototype.pointFromJSON=function(e,t){return c.fromJSON(this,e,t)},c.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},c.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},c.fromJSON=function(e,t,r){"string"==typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],r);if(!t[2])return n;function i(t){return e.point(t[0],t[1],r)}var o=t[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},c.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new i(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},c.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},c.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(f,a.BasePoint),u.prototype.jpoint=function(e,t,r){return new f(this,e,t,r)},f.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},f.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},f.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),f=c.redMul(s),l=n.redMul(c),d=u.redSqr().redIAdd(f).redISub(l).redISub(l),h=u.redMul(l.redISub(d)).redISub(o.redMul(f)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,h,p)},f.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),c=u.redMul(a),f=r.redMul(u),l=s.redSqr().redIAdd(c).redISub(f).redISub(f),d=s.redMul(f.redISub(l)).redISub(i.redMul(c)),h=this.z.redMul(a);return this.curve.jpoint(l,d,h)},f.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var r=this;for(t=0;t<e;t++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,u=s.redSqr().redSqr(),c=a.redAdd(a);for(t=0;t<e;t++){var f=o.redSqr(),l=c.redSqr(),d=l.redSqr(),h=f.redAdd(f).redIAdd(f).redIAdd(n.redMul(u)),p=o.redMul(l),b=h.redSqr().redISub(p.redAdd(p)),y=p.redISub(b),g=h.redMul(y);g=g.redIAdd(g).redISub(d);var m=c.redMul(s);t+1<e&&(u=u.redMul(d)),o=b,s=m,c=g}return this.curve.jpoint(o,c.redMul(i),s)},f.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},f.prototype._zeroDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n),u=s.redSqr().redISub(a).redISub(a),c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),e=u,t=s.redMul(a.redISub(u)).redISub(c),r=this.y.redAdd(this.y)}else{var f=this.x.redSqr(),l=this.y.redSqr(),d=l.redSqr(),h=this.x.redAdd(l).redSqr().redISub(f).redISub(d);h=h.redIAdd(h);var p=f.redAdd(f).redIAdd(f),b=p.redSqr(),y=d.redIAdd(d);y=(y=y.redIAdd(y)).redIAdd(y),e=b.redISub(h).redISub(h),t=p.redMul(h.redISub(e)).redISub(y),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},f.prototype._threeDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),u=s.redSqr().redISub(a).redISub(a);e=u;var c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),t=s.redMul(a.redISub(u)).redISub(c),r=this.y.redAdd(this.y)}else{var f=this.z.redSqr(),l=this.y.redSqr(),d=this.x.redMul(l),h=this.x.redSub(f).redMul(this.x.redAdd(f));h=h.redAdd(h).redIAdd(h);var p=d.redIAdd(d),b=(p=p.redIAdd(p)).redAdd(p);e=h.redSqr().redISub(b),r=this.y.redAdd(this.z).redSqr().redISub(l).redISub(f);var y=l.redSqr();y=(y=(y=y.redIAdd(y)).redIAdd(y)).redIAdd(y),t=h.redMul(p.redISub(e)).redISub(y)}return this.curve.jpoint(e,t,r)},f.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=t.redSqr(),a=r.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),u=t.redAdd(t),c=(u=u.redIAdd(u)).redMul(a),f=s.redSqr().redISub(c.redAdd(c)),l=c.redISub(f),d=a.redSqr();d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var h=s.redMul(l).redISub(d),p=r.redAdd(r).redMul(n);return this.curve.jpoint(f,h,p)},f.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),a=this.x.redAdd(t).redSqr().redISub(e).redISub(n),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),u=n.redIAdd(n);u=(u=(u=u.redIAdd(u)).redIAdd(u)).redIAdd(u);var c=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(u),f=t.redMul(c);f=(f=f.redIAdd(f)).redIAdd(f);var l=this.x.redMul(s).redISub(f);l=(l=l.redIAdd(l)).redIAdd(l);var d=this.y.redMul(c.redMul(u.redISub(c)).redISub(a.redMul(s)));d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var h=this.z.redAdd(a).redSqr().redISub(r).redISub(s);return this.curve.jpoint(l,d,h)},f.prototype.mul=function(e,t){return e=new i(e,t),this.curve._wnafMul(this,e)},f.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),i=r.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)},f.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),i=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},f.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},f.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,r){"use strict";var n=r(4),i=r(10),o=r(89),a=r(22);function s(e){o.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(e,t,r){o.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,o),e.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},i(u,o.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(a.toArray(e,t),1)},s.prototype.point=function(e,t){return new u(this,e,t)},s.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(e,t){return new u(e,t[0],t[1]||e.one)},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},u.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),u=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,u)},u.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},u.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,r){"use strict";var n=r(22),i=r(4),o=r(10),a=r(89),s=n.assert;function u(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,a.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,r,n,o){a.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(t,16),this.y=new i(r,16),this.z=n?new i(n,16):this.curve.one,this.t=o&&new i(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(u,a),e.exports=u,u.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},u.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},u.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},u.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),o=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(o.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var u=s.fromRed().isOdd();return(t&&!u||!t&&u)&&(s=s.redNeg()),this.point(e,s)},u.prototype.pointFromY=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),o=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(o.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},u.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},o(c,a.BasePoint),u.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},u.prototype.point=function(e,t,r,n){return new c(this,e,t,r,n)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),u=i.redMul(a),c=o.redMul(s),f=i.redMul(s),l=a.redMul(o);return this.curve.point(u,c,l,f)},c.prototype._projDbl=function(){var e,t,r,n,i,o,a=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),u=this.y.redSqr();if(this.curve.twisted){var c=(n=this.curve._mulA(s)).redAdd(u);this.zOne?(e=a.redSub(s).redSub(u).redMul(c.redSub(this.curve.two)),t=c.redMul(n.redSub(u)),r=c.redSqr().redSub(c).redSub(c)):(i=this.z.redSqr(),o=c.redSub(i).redISub(i),e=a.redSub(s).redISub(u).redMul(o),t=c.redMul(n.redSub(u)),r=c.redMul(o))}else n=s.redAdd(u),i=this.curve._mulC(this.z).redSqr(),o=n.redSub(i).redSub(i),e=this.curve._mulC(a.redISub(n)).redMul(o),t=this.curve._mulC(n).redMul(s.redISub(u)),r=n.redMul(o);return this.curve.point(e,t,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),u=r.redAdd(t),c=o.redMul(a),f=s.redMul(u),l=o.redMul(u),d=a.redMul(s);return this.curve.point(c,f,d,l)},c.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),u=i.redSub(s),c=i.redAdd(s),f=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),l=n.redMul(u).redMul(f);return this.curve.twisted?(t=n.redMul(c).redMul(a.redSub(this.curve._mulA(o))),r=u.redMul(c)):(t=n.redMul(c).redMul(a.redSub(o)),r=this.curve._mulC(u).redMul(c)),this.curve.point(l,t,r)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},function(e,t,r){"use strict";t.sha1=r(557),t.sha224=r(558),t.sha256=r(240),t.sha384=r(559),t.sha512=r(241)},function(e,t,r){"use strict";var n=r(26),i=r(70),o=r(239),a=n.rotl32,s=n.sum32,u=n.sum32_5,c=o.ft_1,f=i.BlockHash,l=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;f.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(d,f),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=a(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],o=this.h[1],f=this.h[2],d=this.h[3],h=this.h[4];for(n=0;n<r.length;n++){var p=~~(n/20),b=u(a(i,5),c(p,o,f,d),h,r[n],l[p]);h=d,d=f,f=a(o,30),o=i,i=b}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],f),this.h[3]=s(this.h[3],d),this.h[4]=s(this.h[4],h)},d.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(e,t,r){"use strict";var n=r(26),i=r(240);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(o,i),e.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},function(e,t,r){"use strict";var n=r(26),i=r(241);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(o,i),e.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},function(e,t,r){"use strict";var n=r(26),i=r(70),o=n.rotl32,a=n.sum32,s=n.sum32_3,u=n.sum32_4,c=i.BlockHash;function f(){if(!(this instanceof f))return new f;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function l(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function d(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function h(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}n.inherits(f,c),t.ripemd160=f,f.blockSize=512,f.outSize=160,f.hmacStrength=192,f.padLength=64,f.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],i=this.h[2],c=this.h[3],f=this.h[4],m=r,v=n,w=i,_=c,x=f,O=0;O<80;O++){var k=a(o(u(r,l(O,n,i,c),e[p[O]+t],d(O)),y[O]),f);r=f,f=c,c=o(i,10),i=n,n=k,k=a(o(u(m,l(79-O,v,w,_),e[b[O]+t],h(O)),g[O]),x),m=x,x=_,_=o(w,10),w=v,v=k}k=s(this.h[1],i,_),this.h[1]=s(this.h[2],c,x),this.h[2]=s(this.h[3],f,m),this.h[3]=s(this.h[4],r,v),this.h[4]=s(this.h[0],n,w),this.h[0]=k},f.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],b=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],y=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],g=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},function(e,t,r){"use strict";var n=r(26),i=r(41);function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,r))}e.exports=o,o.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},o.prototype.update=function(e,t){return this.inner.update(e,t),this},o.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},function(e,t,r){"use strict";e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},function(e,t,r){"use strict";var n=r(0)(r(2)),i=r(4),o=r(564),a=r(22),s=r(121),u=r(237),c=a.assert,f=r(565),l=r(566);function d(e){if(!(this instanceof d))return new d(e);"string"==typeof e&&(c(Object.prototype.hasOwnProperty.call(s,e),"Unknown curve "+e),e=s[e]),e instanceof s.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=d,d.prototype.keyPair=function(e){return new f(this,e)},d.prototype.keyFromPrivate=function(e,t){return f.fromPrivate(this,e,t)},d.prototype.keyFromPublic=function(e,t){return f.fromPublic(this,e,t)},d.prototype.genKeyPair=function(e){e||(e={});for(var t=new o({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||u(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new i(2));;){var a=new i(t.generate(r));if(!(a.cmp(n)>0))return a.iaddn(1),this.keyFromPrivate(a)}},d.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},d.prototype.sign=function(e,t,r,a){"object"===(0,n.default)(r)&&(a=r,r=null),a||(a={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new i(e,16));for(var s=this.n.byteLength(),u=t.getPrivate().toArray("be",s),c=e.toArray("be",s),f=new o({hash:this.hash,entropy:u,nonce:c,pers:a.pers,persEnc:a.persEnc||"utf8"}),d=this.n.sub(new i(1)),h=0;;h++){var p=a.k?a.k(h):new i(f.generate(this.n.byteLength()));if(!((p=this._truncateToN(p,!0)).cmpn(1)<=0||p.cmp(d)>=0)){var b=this.g.mul(p);if(!b.isInfinity()){var y=b.getX(),g=y.umod(this.n);if(0!==g.cmpn(0)){var m=p.invm(this.n).mul(g.mul(t.getPrivate()).iadd(e));if(0!==(m=m.umod(this.n)).cmpn(0)){var v=(b.getY().isOdd()?1:0)|(0!==y.cmp(g)?2:0);return a.canonical&&m.cmp(this.nh)>0&&(m=this.n.sub(m),v^=1),new l({r:g,s:m,recoveryParam:v})}}}}}},d.prototype.verify=function(e,t,r,n){e=this._truncateToN(new i(e,16)),r=this.keyFromPublic(r,n);var o=(t=new l(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,u=a.invm(this.n),c=u.mul(e).umod(this.n),f=u.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,r.getPublic(),f)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(c,r.getPublic(),f)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},d.prototype.recoverPubKey=function(e,t,r,n){c((3&r)===r,"The recovery param is more than two bits"),t=new l(t,n);var o=this.n,a=new i(e),s=t.r,u=t.s,f=1&r,d=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");s=d?this.curve.pointFromX(s.add(this.curve.n),f):this.curve.pointFromX(s,f);var h=t.r.invm(o),p=o.sub(a).mul(h).umod(o),b=u.mul(h).umod(o);return this.g.mulAdd(p,s,b)},d.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new l(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},function(e,t,r){"use strict";var n=r(122),i=r(236),o=r(41);function a(e){if(!(this instanceof a))return new a(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=a,a.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},a.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},a.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},a.prototype.reseed=function(e,t,r,n){"string"!=typeof t&&(n=r,r=t,t=null),e=i.toArray(e,t),r=i.toArray(r,n),o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length<e;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var a=o.slice(0,e);return this._update(r),this._reseed++,i.encode(a,t)}},function(e,t,r){"use strict";var n=r(4),i=r(22).assert;function o(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=o,o.fromPublic=function(e,t,r){return t instanceof o?t:new o(e,{pub:t,pubEnc:r})},o.fromPrivate=function(e,t,r){return t instanceof o?t:new o(e,{priv:t,privEnc:r})},o.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},o.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},o.prototype.derive=function(e){return e.validate()||i(e.validate(),"public point not validated"),e.mul(this.priv).getX()},o.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},o.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},function(e,t,r){"use strict";var n=r(4),i=r(22),o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function u(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,o=0,a=t.place;o<n;o++,a++)i<<=8,i|=e[a],i>>>=0;return!(i<=127)&&(t.place=a,i)}function c(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function f(e,t){if(t<128)e.push(t);else{var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;var o=u(e,r);if(!1===o)return!1;if(o+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var a=u(e,r);if(!1===a)return!1;var c=e.slice(r.place,a+r.place);if(r.place+=a,2!==e[r.place++])return!1;var f=u(e,r);if(!1===f)return!1;if(e.length!==f+r.place)return!1;var l=e.slice(r.place,f+r.place);if(0===c[0]){if(!(128&c[1]))return!1;c=c.slice(1)}if(0===l[0]){if(!(128&l[1]))return!1;l=l.slice(1)}return this.r=new n(c),this.s=new n(l),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=c(t),r=c(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];f(n,t.length),(n=n.concat(t)).push(2),f(n,r.length);var o=n.concat(r),a=[48];return f(a,o.length),a=a.concat(o),i.encode(a,e)}},function(e,t,r){"use strict";var n=r(122),i=r(121),o=r(22),a=o.assert,s=o.parseBytes,u=r(568),c=r(569);function f(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof f))return new f(e);e=i[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}e.exports=f,f.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),u=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:u,Rencoded:o})},f.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},f.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return o.intFromLE(e.digest()).umod(this.curve.n)},f.prototype.keyFromPublic=function(e){return u.fromPublic(this,e)},f.prototype.keyFromSecret=function(e){return u.fromSecret(this,e)},f.prototype.makeSignature=function(e){return e instanceof c?e:new c(this,e)},f.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},f.prototype.decodePoint=function(e){var t=(e=o.parseBytes(e)).length-1,r=e.slice(0,t).concat(-129&e[t]),n=0!=(128&e[t]),i=o.intFromLE(r);return this.curve.pointFromY(i,n)},f.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},f.prototype.decodeInt=function(e){return o.intFromLE(e)},f.prototype.isPoint=function(e){return e instanceof this.pointClass}},function(e,t,r){"use strict";var n=r(22),i=n.assert,o=n.parseBytes,a=n.cachedProperty;function s(e,t){this.eddsa=e,this._secret=o(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=o(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},a(s,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),a(s,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),a(s,"privBytes",(function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n})),a(s,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),a(s,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),a(s,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),s.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),e)},s.prototype.getPublic=function(e){return n.encode(this.pubBytes(),e)},e.exports=s},function(e,t,r){"use strict";var n=r(0)(r(2)),i=r(4),o=r(22),a=o.assert,s=o.cachedProperty,u=o.parseBytes;function c(e,t){this.eddsa=e,"object"!==(0,n.default)(t)&&(t=u(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),a(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof i&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}s(c,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),s(c,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),s(c,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),s(c,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),c.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},c.prototype.toHex=function(){return o.encode(this.toBytes(),"hex").toUpperCase()},e.exports=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(571);t.getRandomBytes=function(e){return new Promise((function(t,r){n(e,(function(e,n){e?r(e):t(n)}))}))},t.getRandomBytesSync=function(e){return n(e)}},function(e,t,r){"use strict";(function(t,n){var i=r(24).Buffer,o=t.crypto||t.msCrypto;o&&o.getRandomValues?e.exports=function(e,t){if(e>4294967295)throw new RangeError("requested too many random bytes");var r=i.allocUnsafe(e);if(e>0)if(e>65536)for(var a=0;a<e;a+=65536)o.getRandomValues(r.slice(a,a+65536));else o.getRandomValues(r);return"function"==typeof t?n.nextTick((function(){t(null,r)})):r}:e.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this,r(7),r(6))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(573),i=r(574);t.keccak224=n.createHashFunction((function(){return i("keccak224")})),t.keccak256=n.createHashFunction((function(){return i("keccak256")})),t.keccak384=n.createHashFunction((function(){return i("keccak384")})),t.keccak512=n.createHashFunction((function(){return i("keccak512")}))},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.createHashFunction=function(t){return function(r){var n=t();return n.update(r),e.from(n.digest())}}}).call(this,r(1).Buffer)},function(e,t,r){"use strict";e.exports=r(575)(r(586))},function(e,t,r){"use strict";var n=r(576),i=r(585);e.exports=function(e){var t=n(e),r=i(e);return function(e,n){switch("string"==typeof e?e.toLowerCase():e){case"keccak224":return new t(1152,448,null,224,n);case"keccak256":return new t(1088,512,null,256,n);case"keccak384":return new t(832,768,null,384,n);case"keccak512":return new t(576,1024,null,512,n);case"sha3-224":return new t(1152,448,6,224,n);case"sha3-256":return new t(1088,512,6,256,n);case"sha3-384":return new t(832,768,6,384,n);case"sha3-512":return new t(576,1024,6,512,n);case"shake128":return new r(1344,256,31,n);case"shake256":return new r(1088,512,31,n);default:throw new Error("Invald algorithm: "+e)}}}},function(e,t,r){"use strict";(function(t){var n=r(0),i=n(r(8)),o=n(r(9)),a=n(r(14)),s=n(r(15)),u=n(r(13));function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,u.default)(e);if(t){var i=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}var f=r(124).Transform;e.exports=function(e){return function(r){(0,a.default)(s,r);var n=c(s);function s(t,r,o,a,u){var c;return(0,i.default)(this,s),(c=n.call(this,u))._rate=t,c._capacity=r,c._delimitedSuffix=o,c._hashBitLength=a,c._options=u,c._state=new e,c._state.initialize(t,r),c._finalized=!1,c}return(0,o.default)(s,[{key:"_transform",value:function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)}},{key:"_flush",value:function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)}},{key:"update",value:function(e,r){if(!t.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return t.isBuffer(e)||(e=t.from(e,r)),this._state.absorb(e),this}},{key:"digest",value:function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);var t=this._state.squeeze(this._hashBitLength/8);return void 0!==e&&(t=t.toString(e)),this._resetState(),t}},{key:"_resetState",value:function(){return this._state.initialize(this._rate,this._capacity),this}},{key:"_clone",value:function(){var e=new s(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e}}]),s}(f)}}).call(this,r(1).Buffer)},function(e,t){},function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=r(1).Buffer,s=r(579).inspect,u=s&&s.custom||"inspect";e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,r;return t=e,(r=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return a.alloc(0);for(var t,r,n,i=a.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,r=i,n=s,a.prototype.copy.call(t,r,n),s+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=a.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:u,value:function(e,t){return s(this,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},t,{depth:0,customInspect:!1}))}}])&&o(t.prototype,r),e}()},function(e,t){},function(e,t,r){"use strict";(function(t){function r(e){try{if(!t.localStorage)return!1}catch(e){return!1}var r=t.localStorage[e];return null!=r&&"true"===String(r).toLowerCase()}e.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}}).call(this,r(7))},function(e,t,r){"use strict";(function(t){var n;function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(125),a=Symbol("lastResolve"),s=Symbol("lastReject"),u=Symbol("error"),c=Symbol("ended"),f=Symbol("lastPromise"),l=Symbol("handlePromise"),d=Symbol("stream");function h(e,t){return{value:e,done:t}}function p(e){var t=e[a];if(null!==t){var r=e[d].read();null!==r&&(e[f]=null,e[a]=null,e[s]=null,t(h(r,!1)))}}function b(e){t.nextTick(p,e)}var y=Object.getPrototypeOf((function(){})),g=Object.setPrototypeOf((i(n={get stream(){return this[d]},next:function(){var e=this,r=this[u];if(null!==r)return Promise.reject(r);if(this[c])return Promise.resolve(h(void 0,!0));if(this[d].destroyed)return new Promise((function(r,n){t.nextTick((function(){e[u]?n(e[u]):r(h(void 0,!0))}))}));var n,i=this[f];if(i)n=new Promise(function(e,t){return function(r,n){e.then((function(){t[c]?r(h(void 0,!0)):t[l](r,n)}),n)}}(i,this));else{var o=this[d].read();if(null!==o)return Promise.resolve(h(o,!1));n=new Promise(this[l])}return this[f]=n,n}},Symbol.asyncIterator,(function(){return this})),i(n,"return",(function(){var e=this;return new Promise((function(t,r){e[d].destroy(null,(function(e){e?r(e):t(h(void 0,!0))}))}))})),n),y);e.exports=function(e){var t,r=Object.create(g,(i(t={},d,{value:e,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,u,{value:null,writable:!0}),i(t,c,{value:e._readableState.endEmitted,writable:!0}),i(t,l,{value:function(e,t){var n=r[d].read();n?(r[f]=null,r[a]=null,r[s]=null,e(h(n,!1))):(r[a]=e,r[s]=t)},writable:!0}),t));return r[f]=null,o(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[s];return null!==t&&(r[f]=null,r[a]=null,r[s]=null,t(e)),void(r[u]=e)}var n=r[a];null!==n&&(r[f]=null,r[a]=null,r[s]=null,n(h(void 0,!0))),r[c]=!0})),e.on("readable",b.bind(null,r)),r}}).call(this,r(6))},function(e,t,r){"use strict";e.exports=function(){throw new Error("Readable.from is not available in the browser")}},function(e,t,r){"use strict";e.exports=i;var n=r(247);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(10)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},function(e,t,r){"use strict";var n,i=r(55).codes,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function u(e,t,i,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);var s=!1;e.on("close",(function(){s=!0})),void 0===n&&(n=r(125)),n(e,{readable:t,writable:i},(function(e){if(e)return o(e);s=!0,o()}));var u=!1;return function(t){if(!s&&!u)return u=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void o(t||new a("pipe"))}}function c(e){e()}function f(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,i=function(e){return e.length?"function"!=typeof e[e.length-1]?s:e.pop():s}(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new o("streams");var a=t.map((function(e,r){var o=r<t.length-1;return u(e,o,r>0,(function(e){n||(n=e),e&&a.forEach(c),o||(a.forEach(c),i(n))}))}));return t.reduce(f)}},function(e,t,r){"use strict";(function(t){var n=r(0),i=n(r(8)),o=n(r(9)),a=n(r(14)),s=n(r(15)),u=n(r(13));function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,u.default)(e);if(t){var i=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}var f=r(124).Transform;e.exports=function(e){return function(r){(0,a.default)(s,r);var n=c(s);function s(t,r,o,a){var u;return(0,i.default)(this,s),(u=n.call(this,a))._rate=t,u._capacity=r,u._delimitedSuffix=o,u._options=a,u._state=new e,u._state.initialize(t,r),u._finalized=!1,u}return(0,o.default)(s,[{key:"_transform",value:function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)}},{key:"_flush",value:function(){}},{key:"_read",value:function(e){this.push(this.squeeze(e))}},{key:"update",value:function(e,r){if(!t.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return t.isBuffer(e)||(e=t.from(e,r)),this._state.absorb(e),this}},{key:"squeeze",value:function(e,t){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));var r=this._state.squeeze(e);return void 0!==t&&(r=r.toString(t)),r}},{key:"_resetState",value:function(){return this._state.initialize(this._rate,this._capacity),this}},{key:"_clone",value:function(){var e=new s(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e}}]),s}(f)}}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(587);function i(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}i.prototype.initialize=function(e,t){for(var r=0;r<50;++r)this.state[r]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1},i.prototype.absorb=function(e){for(var t=0;t<e.length;++t)this.state[~~(this.count/4)]^=e[t]<<this.count%4*8,this.count+=1,this.count===this.blockSize&&(n.p1600(this.state),this.count=0)},i.prototype.absorbLastFewBits=function(e){this.state[~~(this.count/4)]^=e<<this.count%4*8,0!=(128&e)&&this.count===this.blockSize-1&&n.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<(this.blockSize-1)%4*8,n.p1600(this.state),this.count=0,this.squeezing=!0},i.prototype.squeeze=function(e){this.squeezing||this.absorbLastFewBits(1);for(var r=t.alloc(e),i=0;i<e;++i)r[i]=this.state[~~(this.count/4)]>>>this.count%4*8&255,this.count+=1,this.count===this.blockSize&&(n.p1600(this.state),this.count=0);return r},i.prototype.copy=function(e){for(var t=0;t<50;++t)e.state[t]=this.state[t];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing},e.exports=i}).call(this,r(1).Buffer)},function(e,t,r){"use strict";var n=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];t.p1600=function(e){for(var t=0;t<24;++t){var r=e[0]^e[10]^e[20]^e[30]^e[40],i=e[1]^e[11]^e[21]^e[31]^e[41],o=e[2]^e[12]^e[22]^e[32]^e[42],a=e[3]^e[13]^e[23]^e[33]^e[43],s=e[4]^e[14]^e[24]^e[34]^e[44],u=e[5]^e[15]^e[25]^e[35]^e[45],c=e[6]^e[16]^e[26]^e[36]^e[46],f=e[7]^e[17]^e[27]^e[37]^e[47],l=e[8]^e[18]^e[28]^e[38]^e[48],d=e[9]^e[19]^e[29]^e[39]^e[49],h=l^(o<<1|a>>>31),p=d^(a<<1|o>>>31),b=e[0]^h,y=e[1]^p,g=e[10]^h,m=e[11]^p,v=e[20]^h,w=e[21]^p,_=e[30]^h,x=e[31]^p,O=e[40]^h,k=e[41]^p;h=r^(s<<1|u>>>31),p=i^(u<<1|s>>>31);var P=e[2]^h,S=e[3]^p,A=e[12]^h,E=e[13]^p,M=e[22]^h,j=e[23]^p,T=e[32]^h,B=e[33]^p,I=e[42]^h,N=e[43]^p;h=o^(c<<1|f>>>31),p=a^(f<<1|c>>>31);var R=e[4]^h,C=e[5]^p,U=e[14]^h,L=e[15]^p,D=e[24]^h,H=e[25]^p,F=e[34]^h,V=e[35]^p,z=e[44]^h,q=e[45]^p;h=s^(l<<1|d>>>31),p=u^(d<<1|l>>>31);var K=e[6]^h,W=e[7]^p,G=e[16]^h,X=e[17]^p,Z=e[26]^h,J=e[27]^p,Y=e[36]^h,Q=e[37]^p,$=e[46]^h,ee=e[47]^p;h=c^(r<<1|i>>>31),p=f^(i<<1|r>>>31);var te=e[8]^h,re=e[9]^p,ne=e[18]^h,ie=e[19]^p,oe=e[28]^h,ae=e[29]^p,se=e[38]^h,ue=e[39]^p,ce=e[48]^h,fe=e[49]^p,le=b,de=y,he=m<<4|g>>>28,pe=g<<4|m>>>28,be=v<<3|w>>>29,ye=w<<3|v>>>29,ge=x<<9|_>>>23,me=_<<9|x>>>23,ve=O<<18|k>>>14,we=k<<18|O>>>14,_e=P<<1|S>>>31,xe=S<<1|P>>>31,Oe=E<<12|A>>>20,ke=A<<12|E>>>20,Pe=M<<10|j>>>22,Se=j<<10|M>>>22,Ae=B<<13|T>>>19,Ee=T<<13|B>>>19,Me=I<<2|N>>>30,je=N<<2|I>>>30,Te=C<<30|R>>>2,Be=R<<30|C>>>2,Ie=U<<6|L>>>26,Ne=L<<6|U>>>26,Re=H<<11|D>>>21,Ce=D<<11|H>>>21,Ue=F<<15|V>>>17,Le=V<<15|F>>>17,De=q<<29|z>>>3,He=z<<29|q>>>3,Fe=K<<28|W>>>4,Ve=W<<28|K>>>4,ze=X<<23|G>>>9,qe=G<<23|X>>>9,Ke=Z<<25|J>>>7,We=J<<25|Z>>>7,Ge=Y<<21|Q>>>11,Xe=Q<<21|Y>>>11,Ze=ee<<24|$>>>8,Je=$<<24|ee>>>8,Ye=te<<27|re>>>5,Qe=re<<27|te>>>5,$e=ne<<20|ie>>>12,et=ie<<20|ne>>>12,tt=ae<<7|oe>>>25,rt=oe<<7|ae>>>25,nt=se<<8|ue>>>24,it=ue<<8|se>>>24,ot=ce<<14|fe>>>18,at=fe<<14|ce>>>18;e[0]=le^~Oe&Re,e[1]=de^~ke&Ce,e[10]=Fe^~$e&be,e[11]=Ve^~et&ye,e[20]=_e^~Ie&Ke,e[21]=xe^~Ne&We,e[30]=Ye^~he&Pe,e[31]=Qe^~pe&Se,e[40]=Te^~ze&tt,e[41]=Be^~qe&rt,e[2]=Oe^~Re&Ge,e[3]=ke^~Ce&Xe,e[12]=$e^~be&Ae,e[13]=et^~ye&Ee,e[22]=Ie^~Ke&nt,e[23]=Ne^~We&it,e[32]=he^~Pe&Ue,e[33]=pe^~Se&Le,e[42]=ze^~tt&ge,e[43]=qe^~rt&me,e[4]=Re^~Ge&ot,e[5]=Ce^~Xe&at,e[14]=be^~Ae&De,e[15]=ye^~Ee&He,e[24]=Ke^~nt&ve,e[25]=We^~it&we,e[34]=Pe^~Ue&Ze,e[35]=Se^~Le&Je,e[44]=tt^~ge&Me,e[45]=rt^~me&je,e[6]=Ge^~ot&le,e[7]=Xe^~at&de,e[16]=Ae^~De&Fe,e[17]=Ee^~He&Ve,e[26]=nt^~ve&_e,e[27]=it^~we&xe,e[36]=Ue^~Ze&Ye,e[37]=Le^~Je&Qe,e[46]=ge^~Me&Te,e[47]=me^~je&Be,e[8]=ot^~le&Oe,e[9]=at^~de&ke,e[18]=De^~Fe&$e,e[19]=He^~Ve&et,e[28]=ve^~_e&Ie,e[29]=we^~xe&Ne,e[38]=Ze^~Ye&he,e[39]=Je^~Qe&pe,e[48]=Me^~Te&ze,e[49]=je^~Be&qe,e[0]^=n[2*t],e[1]^=n[2*t+1]}}},function(e,t,r){"use strict";var n=r(10),i=r(589),o=r(590),a=r(591),s=r(596);function u(e){s.call(this,"digest"),this._hash=e}n(u,s),u.prototype._update=function(e){this._hash.update(e)},u.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new i:"rmd160"===e||"ripemd160"===e?new o:new u(a(e))}},function(e,t,r){"use strict";var n=r(10),i=r(248),o=r(24).Buffer,a=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function u(e,t){return e<<t|e>>>32-t}function c(e,t,r,n,i,o,a){return u(e+(t&r|~t&n)+i+o|0,a)+t|0}function f(e,t,r,n,i,o,a){return u(e+(t&n|r&~n)+i+o|0,a)+t|0}function l(e,t,r,n,i,o,a){return u(e+(t^r^n)+i+o|0,a)+t|0}function d(e,t,r,n,i,o,a){return u(e+(r^(t|~n))+i+o|0,a)+t|0}n(s,i),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,i=this._c,o=this._d;r=c(r,n,i,o,e[0],3614090360,7),o=c(o,r,n,i,e[1],3905402710,12),i=c(i,o,r,n,e[2],606105819,17),n=c(n,i,o,r,e[3],3250441966,22),r=c(r,n,i,o,e[4],4118548399,7),o=c(o,r,n,i,e[5],1200080426,12),i=c(i,o,r,n,e[6],2821735955,17),n=c(n,i,o,r,e[7],4249261313,22),r=c(r,n,i,o,e[8],1770035416,7),o=c(o,r,n,i,e[9],2336552879,12),i=c(i,o,r,n,e[10],4294925233,17),n=c(n,i,o,r,e[11],2304563134,22),r=c(r,n,i,o,e[12],1804603682,7),o=c(o,r,n,i,e[13],4254626195,12),i=c(i,o,r,n,e[14],2792965006,17),r=f(r,n=c(n,i,o,r,e[15],1236535329,22),i,o,e[1],4129170786,5),o=f(o,r,n,i,e[6],3225465664,9),i=f(i,o,r,n,e[11],643717713,14),n=f(n,i,o,r,e[0],3921069994,20),r=f(r,n,i,o,e[5],3593408605,5),o=f(o,r,n,i,e[10],38016083,9),i=f(i,o,r,n,e[15],3634488961,14),n=f(n,i,o,r,e[4],3889429448,20),r=f(r,n,i,o,e[9],568446438,5),o=f(o,r,n,i,e[14],3275163606,9),i=f(i,o,r,n,e[3],4107603335,14),n=f(n,i,o,r,e[8],1163531501,20),r=f(r,n,i,o,e[13],2850285829,5),o=f(o,r,n,i,e[2],4243563512,9),i=f(i,o,r,n,e[7],1735328473,14),r=l(r,n=f(n,i,o,r,e[12],2368359562,20),i,o,e[5],4294588738,4),o=l(o,r,n,i,e[8],2272392833,11),i=l(i,o,r,n,e[11],1839030562,16),n=l(n,i,o,r,e[14],4259657740,23),r=l(r,n,i,o,e[1],2763975236,4),o=l(o,r,n,i,e[4],1272893353,11),i=l(i,o,r,n,e[7],4139469664,16),n=l(n,i,o,r,e[10],3200236656,23),r=l(r,n,i,o,e[13],681279174,4),o=l(o,r,n,i,e[0],3936430074,11),i=l(i,o,r,n,e[3],3572445317,16),n=l(n,i,o,r,e[6],76029189,23),r=l(r,n,i,o,e[9],3654602809,4),o=l(o,r,n,i,e[12],3873151461,11),i=l(i,o,r,n,e[15],530742520,16),r=d(r,n=l(n,i,o,r,e[2],3299628645,23),i,o,e[0],4096336452,6),o=d(o,r,n,i,e[7],1126891415,10),i=d(i,o,r,n,e[14],2878612391,15),n=d(n,i,o,r,e[5],4237533241,21),r=d(r,n,i,o,e[12],1700485571,6),o=d(o,r,n,i,e[3],2399980690,10),i=d(i,o,r,n,e[10],4293915773,15),n=d(n,i,o,r,e[1],2240044497,21),r=d(r,n,i,o,e[8],1873313359,6),o=d(o,r,n,i,e[15],4264355552,10),i=d(i,o,r,n,e[6],2734768916,15),n=d(n,i,o,r,e[13],1309151649,21),r=d(r,n,i,o,e[4],4149444226,6),o=d(o,r,n,i,e[11],3174756917,10),i=d(i,o,r,n,e[2],718787259,15),n=d(n,i,o,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=o.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},function(e,t,r){"use strict";var n=r(1).Buffer,i=r(10),o=r(248),a=new Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],u=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],c=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],f=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],l=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0];function h(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<<t|e>>>32-t}function b(e,t,r,n,i,o,a,s){return p(e+(t^r^n)+o+a|0,s)+i|0}function y(e,t,r,n,i,o,a,s){return p(e+(t&r|~t&n)+o+a|0,s)+i|0}function g(e,t,r,n,i,o,a,s){return p(e+((t|~r)^n)+o+a|0,s)+i|0}function m(e,t,r,n,i,o,a,s){return p(e+(t&n|r&~n)+o+a|0,s)+i|0}function v(e,t,r,n,i,o,a,s){return p(e+(t^(r|~n))+o+a|0,s)+i|0}i(h,o),h.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,h=0|this._e,w=0|this._a,_=0|this._b,x=0|this._c,O=0|this._d,k=0|this._e,P=0;P<80;P+=1){var S,A;P<16?(S=b(r,n,i,o,h,e[s[P]],l[0],c[P]),A=v(w,_,x,O,k,e[u[P]],d[0],f[P])):P<32?(S=y(r,n,i,o,h,e[s[P]],l[1],c[P]),A=m(w,_,x,O,k,e[u[P]],d[1],f[P])):P<48?(S=g(r,n,i,o,h,e[s[P]],l[2],c[P]),A=g(w,_,x,O,k,e[u[P]],d[2],f[P])):P<64?(S=m(r,n,i,o,h,e[s[P]],l[3],c[P]),A=y(w,_,x,O,k,e[u[P]],d[3],f[P])):(S=v(r,n,i,o,h,e[s[P]],l[4],c[P]),A=b(w,_,x,O,k,e[u[P]],d[4],f[P])),r=h,h=o,o=p(i,10),i=n,n=S,w=k,k=O,O=p(x,10),x=_,_=A}var E=this._b+i+O|0;this._b=this._c+o+k|0,this._c=this._d+h+w|0,this._d=this._e+r+_|0,this._e=this._a+n+x|0,this._a=E},h.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=n.alloc?n.alloc(20):new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=h},function(e,t,r){"use strict";var n=e.exports=function(e){e=e.toLowerCase();var t=n[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};n.sha=r(592),n.sha1=r(593),n.sha224=r(594),n.sha256=r(249),n.sha384=r(595),n.sha512=r(250)},function(e,t,r){"use strict";var n=r(10),i=r(57),o=r(24).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function c(e){return e<<30|e>>>2}function f(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,l=0;l<16;++l)r[l]=e.readInt32BE(4*l);for(;l<80;++l)r[l]=r[l-3]^r[l-8]^r[l-14]^r[l-16];for(var d=0;d<80;++d){var h=~~(d/20),p=0|((t=n)<<5|t>>>27)+f(h,i,o,s)+u+r[d]+a[h];u=s,s=o,o=c(i),i=n,n=p}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=u},function(e,t,r){"use strict";var n=r(10),i=r(57),o=r(24).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function c(e){return e<<5|e>>>27}function f(e){return e<<30|e>>>2}function l(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,d=0;d<16;++d)r[d]=e.readInt32BE(4*d);for(;d<80;++d)r[d]=(t=r[d-3]^r[d-8]^r[d-14]^r[d-16])<<1|t>>>31;for(var h=0;h<80;++h){var p=~~(h/20),b=c(n)+l(p,i,o,s)+u+r[h]+a[p]|0;u=s,s=o,o=f(i),i=n,n=b}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=u},function(e,t,r){"use strict";var n=r(10),i=r(249),o=r(57),a=r(24).Buffer,s=new Array(64);function u(){this.init(),this._w=s,o.call(this,64,56)}n(u,i),u.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},u.prototype._hash=function(){var e=a.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=u},function(e,t,r){"use strict";var n=r(10),i=r(250),o=r(57),a=r(24).Buffer,s=new Array(160);function u(){this.init(),this._w=s,o.call(this,128,112)}n(u,i),u.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},u.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=u},function(e,t,r){"use strict";var n=r(24).Buffer,i=r(160).Transform,o=r(21).StringDecoder;function a(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(10)(a,i),a.prototype.update=function(e,t,r){"string"==typeof e&&(e=n.from(e,t));var i=this._update(e);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){n=e}finally{r(n)}},a.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},a.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0);return e&&(t=this._toString(t,e,!0)),t},a.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},e.exports=a},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.Address=void 0;var n=function(e){return e&&e.__esModule?e:{default:e}}(r(43)),i=r(29),o=r(42),a=r(233),s=function(){function t(e){(0,n.default)(20===e.length,"Invalid address length"),this.buf=e}return t.zero=function(){return new t((0,o.zeros)(20))},t.fromString=function(e){return(0,n.default)((0,a.isValidAddress)(e),"Invalid address"),new t((0,o.toBuffer)(e))},t.fromPublicKey=function(r){return(0,n.default)(e.isBuffer(r),"Public key should be Buffer"),new t((0,a.pubToAddress)(r))},t.fromPrivateKey=function(r){return(0,n.default)(e.isBuffer(r),"Private key should be Buffer"),new t((0,a.privateToAddress)(r))},t.generate=function(r,o){return(0,n.default)(i.BN.isBN(o)),new t((0,a.generateAddress)(r.buf,o.toArrayLike(e)))},t.generate2=function(r,i,o){return(0,n.default)(e.isBuffer(i)),(0,n.default)(e.isBuffer(o)),new t((0,a.generateAddress2)(r.buf,i,o))},t.prototype.equals=function(e){return this.buf.equals(e.buf)},t.prototype.isZero=function(){return this.equals(t.zero())},t.prototype.isPrecompileOrSystemAddress=function(){var e=new i.BN(this.buf),t=new i.BN(0),r=new i.BN("ffff","hex");return e.gte(t)&&e.lte(r)},t.prototype.toString=function(){return"0x"+this.buf.toString("hex")},t.prototype.toBuffer=function(){return e.from(this.buf)},t}();t.Address=s}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.hashPersonalMessage=t.isValidSignature=t.fromRpcSig=t.toCompactSig=t.toRpcSig=t.ecrecover=t.ecsign=void 0;var n=r(234),i=r(29),o=r(42),a=r(123),s=r(90),u=r(126);function c(e,t){var r=(0,u.toType)(e,u.TypeOutput.BN);if(r.eqn(0)||r.eqn(1))return(0,u.toType)(e,u.TypeOutput.BN);if(!t)return r.subn(27);var n=(0,u.toType)(t,u.TypeOutput.BN);return r.sub(n.muln(2).addn(35))}function f(e){var t=new i.BN(e);return t.eqn(0)||t.eqn(1)}t.ecsign=function(t,r,i){var o=(0,n.ecdsaSign)(t,r),a=o.signature,s=o.recid,c=e.from(a.slice(0,32)),f=e.from(a.slice(32,64));if(!i||"number"==typeof i){if(i&&!Number.isSafeInteger(i))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");return{r:c,s:f,v:i?s+(2*i+35):s+27}}return{r:c,s:f,v:(0,u.toType)(i,u.TypeOutput.BN).muln(2).addn(35).addn(s).toArrayLike(e)}},t.ecrecover=function(t,r,i,a,s){var u=e.concat([(0,o.setLengthLeft)(i,32),(0,o.setLengthLeft)(a,32)],64),l=c(r,s);if(!f(l))throw new Error("Invalid signature v value");var d=(0,n.ecdsaRecover)(u,l.toNumber(),t);return e.from((0,n.publicKeyConvert)(d,!1).slice(1))},t.toRpcSig=function(t,r,n,i){if(!f(c(t,i)))throw new Error("Invalid signature v value");return(0,o.bufferToHex)(e.concat([(0,o.setLengthLeft)(r,32),(0,o.setLengthLeft)(n,32),(0,o.toBuffer)(t)]))},t.toCompactSig=function(t,r,n,i){if(!f(c(t,i)))throw new Error("Invalid signature v value");var a=(0,u.toType)(t,u.TypeOutput.Number),s=n;return(a>28&&a%2==1||1===a||28===a)&&((s=e.from(n))[0]|=128),(0,o.bufferToHex)(e.concat([(0,o.setLengthLeft)(r,32),(0,o.setLengthLeft)(s,32)]))},t.fromRpcSig=function(e){var t,r,n,i=(0,o.toBuffer)(e);if(i.length>=65)t=i.slice(0,32),r=i.slice(32,64),n=(0,o.bufferToInt)(i.slice(64));else{if(64!==i.length)throw new Error("Invalid signature length");t=i.slice(0,32),r=i.slice(32,64),n=(0,o.bufferToInt)(i.slice(32,33))>>7,r[0]&=127}return n<27&&(n+=27),{v:n,r:t,s:r}},t.isValidSignature=function(e,t,r,n,o){void 0===n&&(n=!0);var a=new i.BN("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),s=new i.BN("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);if(32!==t.length||32!==r.length)return!1;if(!f(c(e,o)))return!1;var u=new i.BN(t),l=new i.BN(r);return!(u.isZero()||u.gt(s)||l.isZero()||l.gt(s)||n&&1===l.cmp(a))},t.hashPersonalMessage=function(t){(0,s.assertIsBuffer)(t);var r=e.from("Ethereum Signed Message:\n".concat(t.length),"utf-8");return(0,a.keccak)(e.concat([r,t]))}}).call(this,r(1).Buffer)},function(e,t,r){"use strict";(function(e){var n=r(0)(r(2));Object.defineProperty(t,"__esModule",{value:!0}),t.defineProperties=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(r(43)),o=r(54),a=r(29),s=r(42);t.defineProperties=function(t,r,u){if(t.raw=[],t._fields=[],t.toJSON=function(e){if(void 0===e&&(e=!1),e){var r={};return t._fields.forEach((function(e){r[e]="0x".concat(t[e].toString("hex"))})),r}return(0,s.baToJSON)(t.raw)},t.serialize=function(){return a.rlp.encode(t.raw)},r.forEach((function(r,n){function o(){return t.raw[n]}function a(o){"00"!==(o=(0,s.toBuffer)(o)).toString("hex")||r.allowZero||(o=e.allocUnsafe(0)),r.allowLess&&r.length?(o=(0,s.unpadBuffer)(o),(0,i.default)(r.length>=o.length,"The field ".concat(r.name," must not have more ").concat(r.length," bytes"))):r.allowZero&&0===o.length||!r.length||(0,i.default)(r.length===o.length,"The field ".concat(r.name," must have byte length of ").concat(r.length)),t.raw[n]=o}t._fields.push(r.name),Object.defineProperty(t,r.name,{enumerable:!0,configurable:!0,get:o,set:a}),r.default&&(t[r.name]=r.default),r.alias&&Object.defineProperty(t,r.alias,{enumerable:!1,configurable:!0,set:a,get:o})})),u)if("string"==typeof u&&(u=e.from((0,o.stripHexPrefix)(u),"hex")),e.isBuffer(u)&&(u=a.rlp.decode(u)),Array.isArray(u)){if(u.length>t._fields.length)throw new Error("wrong number of fields in data");u.forEach((function(e,r){t[t._fields[r]]=(0,s.toBuffer)(e)}))}else{if("object"!==(0,n.default)(u))throw new Error("invalid data");var c=Object.keys(u);r.forEach((function(e){-1!==c.indexOf(e.name)&&(t[e.name]=u[e.name]),-1!==c.indexOf(e.alias)&&(t[e.alias]=u[e.alias])}))}}}).call(this,r(1).Buffer)},function(e,t,r){"use strict";e.exports=function(e){var t,r=this;return this.net.getId().then((function(e){return t=e,r.getBlock(0)})).then((function(r){var n="private";return"0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3"===r.hash&&1===t&&(n="main"),"0x41941023680923e0fe4d74a34bdac8141f2540e3ae90623718e47d66d1ca4a2d"===r.hash&&3===t&&(n="ropsten"),"0x6341fd3daf94b748c72ced5a5b26028f2474f5f00d824504e4fa37a75767e177"===r.hash&&4===t&&(n="rinkeby"),"0xbf7e331f7f7c1dd2e05159666b3bf8bc7a8a3a9eb1d518969eab529dd9b88c1a"===r.hash&&5===t&&(n="goerli"),"0xa3c565fc15c7478862d50ccd6561e3c06b24cc509bf388941c25ea985ce32cb9"===r.hash&&42===t&&(n="kovan"),"function"==typeof e&&e(null,n),n})).catch((function(t){if("function"!=typeof e)throw t;e(t)}))}},function(e,t,r){"use strict";var n=r(34),i=r(79).subscriptions,o=r(38),a=r(81),s=function(){var e=this;n.packageInit(this,arguments);var t=this.setRequestManager;this.setRequestManager=function(r){return t(r),e.net.setRequestManager(r),!0};var r=this.setProvider;this.setProvider=function(){r.apply(e,arguments),e.setRequestManager(e._requestManager)},this.net=new a(this),[new i({name:"subscribe",type:"shh",subscriptions:{messages:{params:1}}}),new o({name:"getVersion",call:"shh_version",params:0}),new o({name:"getInfo",call:"shh_info",params:0}),new o({name:"setMaxMessageSize",call:"shh_setMaxMessageSize",params:1}),new o({name:"setMinPoW",call:"shh_setMinPoW",params:1}),new o({name:"markTrustedPeer",call:"shh_markTrustedPeer",params:1}),new o({name:"newKeyPair",call:"shh_newKeyPair",params:0}),new o({name:"addPrivateKey",call:"shh_addPrivateKey",params:1}),new o({name:"deleteKeyPair",call:"shh_deleteKeyPair",params:1}),new o({name:"hasKeyPair",call:"shh_hasKeyPair",params:1}),new o({name:"getPublicKey",call:"shh_getPublicKey",params:1}),new o({name:"getPrivateKey",call:"shh_getPrivateKey",params:1}),new o({name:"newSymKey",call:"shh_newSymKey",params:0}),new o({name:"addSymKey",call:"shh_addSymKey",params:1}),new o({name:"generateSymKeyFromPassword",call:"shh_generateSymKeyFromPassword",params:1}),new o({name:"hasSymKey",call:"shh_hasSymKey",params:1}),new o({name:"getSymKey",call:"shh_getSymKey",params:1}),new o({name:"deleteSymKey",call:"shh_deleteSymKey",params:1}),new o({name:"newMessageFilter",call:"shh_newMessageFilter",params:1}),new o({name:"getFilterMessages",call:"shh_getFilterMessages",params:1}),new o({name:"deleteMessageFilter",call:"shh_deleteMessageFilter",params:1}),new o({name:"post",call:"shh_post",params:1,inputFormatter:[null]}),new o({name:"unsubscribe",call:"shh_unsubscribe",params:1})].forEach((function(t){t.attachToObject(e),t.setRequestManager(e._requestManager)}))};s.prototype.clearSubscriptions=function(){this._requestManager.clearSubscriptions()},n.addProviders(s),e.exports=s},function(e,t,r){"use strict";var n=r(0)(r(2)),i=r(603),o=function e(t){this.givenProvider=e.givenProvider,t&&t._requestManager&&(t=t.currentProvider),"undefined"!=typeof document&&(this.pick=i.pick),this.setProvider(t)};o.givenProvider=null,"undefined"!=typeof ethereum&&ethereum.bzz&&(o.givenProvider=ethereum.bzz),o.prototype.setProvider=function(e){if(e&&"object"===(0,n.default)(e)&&"string"==typeof e.bzz&&(e=e.bzz),"string"!=typeof e){this.currentProvider=null;var t=new Error("No provider set, please set one using bzz.setProvider().");return this.download=this.upload=this.isAvailable=function(){throw t},!1}return this.currentProvider=e,this.download=i.at(e).download,this.upload=i.at(e).upload,this.isAvailable=i.at(e).isAvailable,!0},e.exports=o},function(e,t,r){"use strict";var n=function(){throw"This swarm.js function isn't available on the browser."},i={readFile:n},o={download:n,safeDownloadArchived:n,directoryTree:n},a={platform:n,arch:n},s={join:n,slice:n},u={spawn:n},c={lookup:n},f=r(604),l=r(251),d=r(617),h=r(619),p=r(620);e.exports=p({fs:i,files:o,os:a,path:s,child_process:u,defaultArchives:{},mimetype:c,request:f,downloadUrl:null,bytes:l,hash:d,pick:h})},function(e,t,r){"use strict";var n=r(605),i=r(608),o=r(92),a=r(609),s=r(610),u=function(){};e.exports=function(e,t,r){if(!e||"string"!=typeof e)throw new TypeError("must specify a URL");if("function"==typeof t&&(r=t,t={}),r&&"function"!=typeof r)throw new TypeError("expected cb to be undefined or a function");r=r||u;var c=(t=t||{}).json?"json":"text",f=(t=o({responseType:c},t)).headers||{},l=(t.method||"GET").toUpperCase(),d=t.query;return d&&("string"!=typeof d&&(d=n.stringify(d)),e=i(e,d)),"json"===t.responseType&&a(f,"Accept","application/json"),t.json&&"GET"!==l&&"HEAD"!==l&&(a(f,"Content-Type","application/json"),t.body=JSON.stringify(t.body)),t.method=l,t.url=e,t.headers=f,delete t.query,delete t.json,s(t,r)}},function(e,t,r){"use strict";var n=r(0)(r(2)),i=r(606),o=r(92),a=r(607);function s(e,t){return t.encode?t.strict?i(e):encodeURIComponent(e):e}function u(e){var t=e.indexOf("?");return-1===t?"":e.slice(t+1)}function c(e,t){var r=function(e){var t;switch(e.arrayFormat){case"index":return function(e,r,n){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return function(e,r,n){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};default:return function(e,t,r){void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t=o({arrayFormat:"none"},t)),i=Object.create(null);return"string"!=typeof e?i:(e=e.trim().replace(/^[?#&]/,""))?(e.split("&").forEach((function(e){var t=e.replace(/\+/g," ").split("="),n=t.shift(),o=t.length>0?t.join("="):void 0;o=void 0===o?null:a(o),r(a(n),o,i)})),Object.keys(i).sort().reduce((function(e,t){var r=i[t];return Boolean(r)&&"object"===(0,n.default)(r)&&!Array.isArray(r)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"===(0,n.default)(t)?e(Object.keys(t)).sort((function(e,t){return Number(e)-Number(t)})).map((function(e){return t[e]})):t}(r):e[t]=r,e}),Object.create(null))):i}t.extract=u,t.parse=c,t.stringify=function(e,t){!1===(t=o({encode:!0,strict:!0,arrayFormat:"none"},t)).sort&&(t.sort=function(){});var r=function(e){switch(e.arrayFormat){case"index":return function(t,r,n){return null===r?[s(t,e),"[",n,"]"].join(""):[s(t,e),"[",s(n,e),"]=",s(r,e)].join("")};case"bracket":return function(t,r){return null===r?s(t,e):[s(t,e),"[]=",s(r,e)].join("")};default:return function(t,r){return null===r?s(t,e):[s(t,e),"=",s(r,e)].join("")}}}(t);return e?Object.keys(e).sort(t.sort).map((function(n){var i=e[n];if(void 0===i)return"";if(null===i)return s(n,t);if(Array.isArray(i)){var o=[];return i.slice().forEach((function(e){void 0!==e&&o.push(r(n,e,o.length))})),o.join("&")}return s(n,t)+"="+s(i,t)})).filter((function(e){return e.length>0})).join("&"):""},t.parseUrl=function(e,t){return{url:e.split("?")[0]||"",query:c(u(e),t)}}},function(e,t,r){"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}},function(e,t,r){"use strict";var n=r(0)(r(2)),i=new RegExp("%[a-f0-9]{2}","gi"),o=new RegExp("(%[a-f0-9]{2})+","gi");function a(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],a(r),a(n))}function s(e){try{return decodeURIComponent(e)}catch(n){for(var t=e.match(i),r=1;r<t.length;r++)t=(e=a(t,r).join("")).match(i);return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+(0,n.default)(e)+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=o.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(e){var n=s(r[0]);n!==r[0]&&(t[r[0]]=n)}r=o.exec(e)}t["%C2"]="�";for(var i=Object.keys(t),a=0;a<i.length;a++){var u=i[a];e=e.replace(new RegExp(u,"g"),t[u])}return e}(e)}}},function(e,t,r){"use strict";e.exports=function(e,t){if(t){t=(t=t.trim().replace(/^(\?|#|&)/,""))?"?"+t:t;var r=e.split(/[\?\#]/)[0];t&&/\:\/\/[^\/]*$/.test(r)&&(r+="/");var n=e.match(/(\#.*)$/);e=r+t,n&&(e+=n[0])}return e}},function(e,t,r){"use strict";e.exports=function(e,t,r){var n=t.toLowerCase();e[t]||e[n]||(e[t]=r)}},function(e,t,r){"use strict";var n=r(611),i=r(615),o=function(){};e.exports=function(e,t){delete e.uri;var r=!1;"json"===e.responseType&&(e.responseType="text",r=!0);var a=n(e,(function(n,a,s){if(r&&!n)try{var u=a.rawRequest.responseText;s=JSON.parse(u)}catch(e){n=e}a=i(e,a),t(n,n?null:s,a),t=o})),s=a.onabort;return a.onabort=function(){var e=s.apply(a,Array.prototype.slice.call(arguments));return t(new Error("XHR Aborted")),t=o,e},a}},function(e,t,r){"use strict";var n=r(612),i=r(613),o=r(614),a=r(172);function s(e,t,r){var n=e;return i(t)?(r=t,"string"==typeof e&&(n={uri:e})):n=a(t,{uri:e}),n.callback=r,n}function u(e,t,r){return c(t=s(e,t,r))}function c(e){if(void 0===e.callback)throw new Error("callback argument missing");var t=!1,r=function(r,n,i){t||(t=!0,e.callback(r,n,i))};function n(){var e=void 0;if(e=f.response?f.response:f.responseText||function(e){try{if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML}catch(e){}return null}(f),g)try{e=JSON.parse(e)}catch(e){}return e}function i(e){return clearTimeout(l),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,r(e,m)}function a(){if(!c){var t;clearTimeout(l),t=e.useXDR&&void 0===f.status?200:1223===f.status?204:f.status;var i=m,a=null;return 0!==t?(i={body:n(),statusCode:t,method:h,headers:{},url:d,rawRequest:f},f.getAllResponseHeaders&&(i.headers=o(f.getAllResponseHeaders()))):a=new Error("Internal XMLHttpRequest Error"),r(a,i,i.body)}}var s,c,f=e.xhr||null;f||(f=e.cors||e.useXDR?new u.XDomainRequest:new u.XMLHttpRequest);var l,d=f.url=e.uri||e.url,h=f.method=e.method||"GET",p=e.body||e.data,b=f.headers=e.headers||{},y=!!e.sync,g=!1,m={body:void 0,headers:{},statusCode:0,method:h,url:d,rawRequest:f};if("json"in e&&!1!==e.json&&(g=!0,b.accept||b.Accept||(b.Accept="application/json"),"GET"!==h&&"HEAD"!==h&&(b["content-type"]||b["Content-Type"]||(b["Content-Type"]="application/json"),p=JSON.stringify(!0===e.json?p:e.json))),f.onreadystatechange=function(){4===f.readyState&&setTimeout(a,0)},f.onload=a,f.onerror=i,f.onprogress=function(){},f.onabort=function(){c=!0},f.ontimeout=i,f.open(h,d,!y,e.username,e.password),y||(f.withCredentials=!!e.withCredentials),!y&&e.timeout>0&&(l=setTimeout((function(){if(!c){c=!0,f.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",i(e)}}),e.timeout)),f.setRequestHeader)for(s in b)b.hasOwnProperty(s)&&f.setRequestHeader(s,b[s]);else if(e.headers&&!function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(f.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(f),f.send(p||null),f}e.exports=u,e.exports.default=u,u.XMLHttpRequest=n.XMLHttpRequest||function(){},u.XDomainRequest="withCredentials"in new u.XMLHttpRequest?u.XMLHttpRequest:n.XDomainRequest,function(e,t){for(var r=0;r<e.length;r++)t(e[r])}(["get","put","post","patch","head","delete"],(function(e){u["delete"===e?"del":e]=function(t,r,n){return(r=s(t,r,n)).method=e.toUpperCase(),c(r)}}))},function(e,t,r){"use strict";(function(t){var r;r="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},e.exports=r}).call(this,r(7))},function(e,t,r){"use strict";e.exports=function(e){if(!e)return!1;var t=n.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)};var n=Object.prototype.toString},function(e,t,r){"use strict";var n=function(e){return e.replace(/^\s+|\s+$/g,"")};e.exports=function(e){if(!e)return{};for(var t,r={},i=n(e).split("\n"),o=0;o<i.length;o++){var a=i[o],s=a.indexOf(":"),u=n(a.slice(0,s)).toLowerCase(),c=n(a.slice(s+1));void 0===r[u]?r[u]=c:(t=r[u],"[object Array]"===Object.prototype.toString.call(t)?r[u].push(c):r[u]=[r[u],c])}return r}},function(e,t,r){"use strict";e.exports=function(e,t){return t?{statusCode:t.statusCode,headers:t.headers,method:e.method,url:e.url,rawRequest:t.rawRequest?t.rawRequest:t}:null}},function(e,t,r){"use strict";var n=function(e,t){for(var r=[],n=0;n<e;++n)r.push(t(n));return r};e.exports={generate:n,replicate:function(e,t){return n(e,(function(){return t}))},concat:function(e,t){return e.concat(t)},flatten:function(e){for(var t=[],r=0,n=e.length;r<n;++r)for(var i=0,o=e[r].length;i<o;++i)t.push(e[r][i]);return t},chunksOf:function(e,t){for(var r=[],n=0,i=t.length;n<i;n+=e)r.push(t.slice(n,n+e));return r}}},function(e,t,r){"use strict";var n=r(618).keccak256,i=r(251),o=function(e,t){var r=i.reverse(i.pad(6,i.fromNumber(e))),o=i.flatten([r,"0x0000",t]);return n(o).slice(2)};e.exports=function e(t){"string"==typeof t&&"0x"!==t.slice(0,2)?t=i.fromString(t):"string"!=typeof t&&void 0!==t.length&&(t=i.fromUint8Array(t));var r=i.length(t);if(r<=4096)return o(r,t);for(var n=4096;128*n<r;)n*=128;for(var a=[],s=0;s<r;s+=n){var u=n<r-s?n:r-s;a.push(e(i.slice(t,s,s+u)))}return o(r,i.flatten(a))}},function(e,t,r){"use strict";var n="0123456789abcdef".split(""),i=[1,256,65536,16777216],o=[0,8,16,24],a=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],s=function(e){var t,r,n,i,o,s,u,c,f,l,d,h,p,b,y,g,m,v,w,_,x,O,k,P,S,A,E,M,j,T,B,I,N,R,C,U,L,D,H,F,V,z,q,K,W,G,X,Z,J,Y,Q,$,ee,te,re,ne,ie,oe,ae,se,ue,ce,fe;for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],s=e[2]^e[12]^e[22]^e[32]^e[42],u=e[3]^e[13]^e[23]^e[33]^e[43],c=e[4]^e[14]^e[24]^e[34]^e[44],f=e[5]^e[15]^e[25]^e[35]^e[45],l=e[6]^e[16]^e[26]^e[36]^e[46],d=e[7]^e[17]^e[27]^e[37]^e[47],t=(h=e[8]^e[18]^e[28]^e[38]^e[48])^(s<<1|u>>>31),r=(p=e[9]^e[19]^e[29]^e[39]^e[49])^(u<<1|s>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=i^(c<<1|f>>>31),r=o^(f<<1|c>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=s^(l<<1|d>>>31),r=u^(d<<1|l>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=c^(h<<1|p>>>31),r=f^(p<<1|h>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=l^(i<<1|o>>>31),r=d^(o<<1|i>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,b=e[0],y=e[1],G=e[11]<<4|e[10]>>>28,X=e[10]<<4|e[11]>>>28,M=e[20]<<3|e[21]>>>29,j=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ue=e[30]<<9|e[31]>>>23,z=e[40]<<18|e[41]>>>14,q=e[41]<<18|e[40]>>>14,R=e[2]<<1|e[3]>>>31,C=e[3]<<1|e[2]>>>31,g=e[13]<<12|e[12]>>>20,m=e[12]<<12|e[13]>>>20,Z=e[22]<<10|e[23]>>>22,J=e[23]<<10|e[22]>>>22,T=e[33]<<13|e[32]>>>19,B=e[32]<<13|e[33]>>>19,ce=e[42]<<2|e[43]>>>30,fe=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,re=e[4]<<30|e[5]>>>2,U=e[14]<<6|e[15]>>>26,L=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,Y=e[34]<<15|e[35]>>>17,Q=e[35]<<15|e[34]>>>17,I=e[45]<<29|e[44]>>>3,N=e[44]<<29|e[45]>>>3,P=e[6]<<28|e[7]>>>4,S=e[7]<<28|e[6]>>>4,ne=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,D=e[26]<<25|e[27]>>>7,H=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,x=e[37]<<21|e[36]>>>11,$=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,K=e[8]<<27|e[9]>>>5,W=e[9]<<27|e[8]>>>5,A=e[18]<<20|e[19]>>>12,E=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,F=e[38]<<8|e[39]>>>24,V=e[39]<<8|e[38]>>>24,O=e[48]<<14|e[49]>>>18,k=e[49]<<14|e[48]>>>18,e[0]=b^~g&v,e[1]=y^~m&w,e[10]=P^~A&M,e[11]=S^~E&j,e[20]=R^~U&D,e[21]=C^~L&H,e[30]=K^~G&Z,e[31]=W^~X&J,e[40]=te^~ne&oe,e[41]=re^~ie&ae,e[2]=g^~v&_,e[3]=m^~w&x,e[12]=A^~M&T,e[13]=E^~j&B,e[22]=U^~D&F,e[23]=L^~H&V,e[32]=G^~Z&Y,e[33]=X^~J&Q,e[42]=ne^~oe&se,e[43]=ie^~ae&ue,e[4]=v^~_&O,e[5]=w^~x&k,e[14]=M^~T&I,e[15]=j^~B&N,e[24]=D^~F&z,e[25]=H^~V&q,e[34]=Z^~Y&$,e[35]=J^~Q&ee,e[44]=oe^~se&ce,e[45]=ae^~ue&fe,e[6]=_^~O&b,e[7]=x^~k&y,e[16]=T^~I&P,e[17]=B^~N&S,e[26]=F^~z&R,e[27]=V^~q&C,e[36]=Y^~$&K,e[37]=Q^~ee&W,e[46]=se^~ce&te,e[47]=ue^~fe&re,e[8]=O^~b&g,e[9]=k^~y&m,e[18]=I^~P&A,e[19]=N^~S&E,e[28]=z^~R&U,e[29]=q^~C&L,e[38]=$^~K&G,e[39]=ee^~W&X,e[48]=ce^~te&ne,e[49]=fe^~re&ie,e[0]^=a[n],e[1]^=a[n+1]},u=function(e){return function(t){var r;if("0x"===t.slice(0,2)){r=[];for(var a=2,u=t.length;a<u;a+=2)r.push(parseInt(t.slice(a,a+2),16))}else r=t;return function(e,t){for(var r,a=t.length,u=e.blocks,c=e.blockCount<<2,f=e.blockCount,l=e.outputBlocks,d=e.s,h=0;h<a;){if(e.reset)for(e.reset=!1,u[0]=e.block,y=1;y<f+1;++y)u[y]=0;if("string"!=typeof t)for(y=e.start;h<a&&y<c;++h)u[y>>2]|=t[h]<<o[3&y++];else for(y=e.start;h<a&&y<c;++h)(r=t.charCodeAt(h))<128?u[y>>2]|=r<<o[3&y++]:r<2048?(u[y>>2]|=(192|r>>6)<<o[3&y++],u[y>>2]|=(128|63&r)<<o[3&y++]):r<55296||r>=57344?(u[y>>2]|=(224|r>>12)<<o[3&y++],u[y>>2]|=(128|r>>6&63)<<o[3&y++],u[y>>2]|=(128|63&r)<<o[3&y++]):(r=65536+((1023&r)<<10|1023&t.charCodeAt(++h)),u[y>>2]|=(240|r>>18)<<o[3&y++],u[y>>2]|=(128|r>>12&63)<<o[3&y++],u[y>>2]|=(128|r>>6&63)<<o[3&y++],u[y>>2]|=(128|63&r)<<o[3&y++]);if(e.lastByteIndex=y,y>=c){for(e.start=y-c,e.block=u[f],y=0;y<f;++y)d[y]^=u[y];s(d),e.reset=!0}else e.start=y}if(u[(y=e.lastByteIndex)>>2]|=i[3&y],e.lastByteIndex===c)for(u[0]=u[f],y=1;y<f+1;++y)u[y]=0;for(u[f-1]|=2147483648,y=0;y<f;++y)d[y]^=u[y];s(d);for(var p,b="",y=0,g=0;g<l;){for(y=0;y<f&&g<l;++y,++g)p=d[y],b+=n[p>>4&15]+n[15&p]+n[p>>12&15]+n[p>>8&15]+n[p>>20&15]+n[p>>16&15]+n[p>>28&15]+n[p>>24&15];g%f==0&&(s(d),y=0)}return"0x"+b}(function(e){return{blocks:[],reset:!0,block:0,start:0,blockCount:1600-(e<<1)>>5,outputBlocks:e>>5,s:(t=[0,0,0,0,0,0,0,0,0,0],[].concat(t,t,t,t,t))};var t}(e),r)}};e.exports={keccak256:u(256),keccak512:u(512),keccak256s:u(256),keccak512s:u(512)}},function(e,t,r){"use strict";var n=function(e){return function(){return new Promise((function(t,r){var n,i=function(r){var n={},i=r.target.files.length,o=0;[].map.call(r.target.files,(function(r){var a=new FileReader;a.onload=function(a){var s=new Uint8Array(a.target.result);if("directory"===e){var u=r.webkitRelativePath;n[u.slice(u.indexOf("/")+1)]={type:"text/plain",data:s},++o===i&&t(n)}else if("file"===e){var c=r.webkitRelativePath;t({type:mimetype.lookup(c),data:s})}else t(s)},a.readAsArrayBuffer(r)}))};"directory"===e?((n=document.createElement("input")).addEventListener("change",i),n.type="file",n.webkitdirectory=!0,n.mozdirectory=!0,n.msdirectory=!0,n.odirectory=!0,n.directory=!0):((n=document.createElement("input")).addEventListener("change",i),n.type="file");var o=document.createEvent("MouseEvents");o.initEvent("click",!0,!1),n.dispatchEvent(o)}))}};e.exports={data:n("data"),file:n("file"),directory:n("directory")}},function(e,t,r){"use strict";e.exports=function(e){var t=e.fs,r=e.files,n=e.os,i=e.path,o=e.child_process,a=e.mimetype,s=e.defaultArchives,u=e.request,c=e.downloadUrl,f=e.bytes,l=e.hash,d=e.pick,h=function(e){return function(t){for(var r={},n=0,i=e.length;n<i;++n)r[e[n]]=t[n];return r}},p=function(e){return function(t){return"".concat(e,"/bzz-raw:/").concat(t)}},b=function(e){return function(t){return new Promise((function(r,n){u(p(e)(t),{responseType:"arraybuffer"},(function(e,t,i){return e?n(e):i.statusCode>=400?n(new Error("Error ".concat(i.statusCode,"."))):r(new Uint8Array(t))}))}))}},y=function(e){return function(t){return function t(r){return function(n){return function(i){var o=function(e){return void 0===e.path?Promise.resolve():"application/bzz-manifest+json"===e.contentType?t(e.hash)(n+e.path)(i):Promise.resolve((r=n+e.path,function(e){return function(t){return t[r]=e,t}})(function(e){return{type:e.contentType,hash:e.hash}}(e))(i));var r};return b(e)(r).then((function(e){return JSON.parse(C(e)).entries})).then((function(e){return Promise.all(e.map(o))})).then((function(){return i}))}}}(t)("")({})}},g=function(e){return function(t){return y(e)(t).then((function(e){return h(Object.keys(e))(Object.keys(e).map((function(t){return e[t].hash})))}))}},m=function(e){return function(t){return y(e)(t).then((function(t){var r=Object.keys(t),n=r.map((function(e){return t[e].hash})),i=r.map((function(e){return t[e].type})),o=n.map(b(e));return Promise.all(o).then((function(e){return h(r)(function(e){return e.map((function(e,t){return{type:i[t],data:e}}))}(e))}))}))}},v=function(e){return function(t){return function(n){return r.download(p(e)(t))(n)}}},w=function(e){return function(t){return function(r){return g(e)(t).then((function(t){var n=[];for(var o in t)if(o.length>0){var a=i.join(r,o);n.push(v(e)(t[o])(a))}return Promise.all(n).then((function(){return r}))}))}}},_=function(e){return function(t){return new Promise((function(r,n){var i={body:"string"==typeof t?U(t):t,method:"POST"};u("".concat(e,"/bzz-raw:/"),i,(function(e,t){return e?n(e):r(t)}))}))}},x=function(e){return function(t){return function(r){return function(n){return function i(o){var a="/"===r[0]?r:"/"+r,s="".concat(e,"/bzz:/").concat(t).concat(a),c={method:"PUT",headers:{"Content-Type":n.type},body:n.data};return new Promise((function(e,t){u(s,c,(function(r,n){return r?t(r):-1!==n.indexOf("error")?t(n):e(n)}))})).catch((function(e){return o>0&&i(o-1)}))}(3)}}}},O=function(e){return function(t){return P(e)({"":t})}},k=function(e){return function(r){return t.readFile(r).then((function(t){return O(e)({type:a.lookup(r),data:t})}))}},P=function(e){return function(t){return _(e)("{}").then((function(r){return Object.keys(t).reduce((function(r,n){return r.then(function(r){return function(n){return x(e)(n)(r)(t[r])}}(n))}),Promise.resolve(r))}))}},S=function(e){return function(r){return t.readFile(r).then(_(e))}},A=function(e){return function(n){return function(i){return r.directoryTree(i).then((function(e){return Promise.all(e.map((function(e){return t.readFile(e)}))).then((function(t){var r=e.map((function(e){return e.slice(i.length)})),n=e.map((function(e){return a.lookup(e)||"text/plain"}));return h(r)(t.map((function(e,t){return{type:n[t],data:e}})))}))})).then((function(e){return(t=n?{"":e[n]}:{},function(e){var r={};for(var n in t)r[n]=t[n];for(var i in e)r[i]=e[i];return r})(e);var t})).then(P(e))}}},E=function(e){return function(t){if("data"===t.pick)return d.data().then(_(e));if("file"===t.pick)return d.file().then(O(e));if("directory"===t.pick)return d.directory().then(P(e));if(t.path)switch(t.kind){case"data":return S(e)(t.path);case"file":return k(e)(t.path);case"directory":return A(e)(t.defaultFile)(t.path)}else{if(t.length||"string"==typeof t)return _(e)(t);if(t instanceof Object)return P(e)(t)}return Promise.reject(new Error("Bad arguments"))}},M=function(e){return function(t){return function(r){return N(e)(t).then((function(n){return n?r?w(e)(t)(r):m(e)(t):r?v(e)(t)(r):b(e)(t)}))}}},j=function(e,t){var i=n.platform().replace("win32","windows")+"-"+("x64"===n.arch()?"amd64":"386"),o=(t||s)[i],a=c+o.archive+".tar.gz",u=o.archiveMD5,f=o.binaryMD5;return r.safeDownloadArchived(a)(u)(f)(e)},T=function(e){return new Promise((function(t,r){var n=o.spawn,i=function(e){return function(t){return-1!==(""+t).indexOf(e)}},a=e.account,s=e.password,u=e.dataDir,c=e.ensApi,f=e.privateKey,l=0,d=n(e.binPath,["--bzzaccount",a||f,"--datadir",u,"--ens-api",c]),h=function(e){0===l&&i("Passphrase")(e)?setTimeout((function(){l=1,d.stdin.write(s+"\n")}),500):i("Swarm http proxy started")(e)&&(l=2,clearTimeout(p),t(d))};d.stdout.on("data",h),d.stderr.on("data",h);var p=setTimeout((function(){return r(new Error("Couldn't start swarm process."))}),2e4)}))},B=function(e){return new Promise((function(t,r){e.stderr.removeAllListeners("data"),e.stdout.removeAllListeners("data"),e.stdin.removeAllListeners("error"),e.removeAllListeners("error"),e.removeAllListeners("exit"),e.kill("SIGINT");var n=setTimeout((function(){return e.kill("SIGKILL")}),8e3);e.once("close",(function(){clearTimeout(n),t()}))}))},I=function(e){return _(e)("test").then((function(e){return"c9a99c7d326dcc6316f32fe2625b311f6dc49a175e6877681ded93137d3569e7"===e})).catch((function(){return!1}))},N=function(e){return function(t){return b(e)(t).then((function(e){try{return!!JSON.parse(C(e)).entries}catch(e){return!1}}))}},R=function(e){return function(t,r,n,i,o){var a;return void 0!==t&&(a=e(t)),void 0!==r&&(a=e(r)),void 0!==n&&(a=e(n)),void 0!==i&&(a=e(i)),void 0!==o&&(a=e(o)),a}},C=function(e){return f.toString(f.fromUint8Array(e))},U=function(e){return f.toUint8Array(f.fromString(e))},L=function(e){return{download:function(t,r){return M(e)(t)(r)},downloadData:R(b(e)),downloadDataToDisk:R(v(e)),downloadDirectory:R(m(e)),downloadDirectoryToDisk:R(w(e)),downloadEntries:R(y(e)),downloadRoutes:R(g(e)),isAvailable:function(){return I(e)},upload:function(t){return E(e)(t)},uploadData:R(_(e)),uploadFile:R(O(e)),uploadFileFromDisk:R(O(e)),uploadDataFromDisk:R(S(e)),uploadDirectory:R(P(e)),uploadDirectoryFromDisk:R(A(e)),uploadToManifest:R(x(e)),pick:d,hash:l,fromString:U,toString:C}};return{at:L,local:function(e){return function(t){return I("http://localhost:8500").then((function(r){return r?t(L("http://localhost:8500")).then((function(){})):j(e.binPath,e.archives).onData((function(t){return(e.onProgress||function(){})(t.length)})).then((function(){return T(e)})).then((function(e){return t(L("http://localhost:8500")).then((function(){return e}))})).then(B)}))}},download:M,downloadBinary:j,downloadData:b,downloadDataToDisk:v,downloadDirectory:m,downloadDirectoryToDisk:w,downloadEntries:y,downloadRoutes:g,isAvailable:I,startProcess:T,stopProcess:B,upload:E,uploadData:_,uploadDataFromDisk:S,uploadFile:O,uploadFileFromDisk:k,uploadDirectory:P,uploadDirectoryFromDisk:A,uploadToManifest:x,pick:d,hash:l,fromString:U,toString:C}}}])},86430:(e,t,r)=>{"use strict";var n=r(94029),i=r(63083),o=r(21924),a=r(27296),s=o("Object.prototype.toString"),u=r(96410)(),c="undefined"==typeof globalThis?r.g:globalThis,f=i(),l=o("String.prototype.slice"),d={},h=Object.getPrototypeOf;u&&a&&h&&n(f,(function(e){if("function"==typeof c[e]){var t=new c[e];if(Symbol.toStringTag in t){var r=h(t),n=a(r,Symbol.toStringTag);if(!n){var i=h(r);n=a(i,Symbol.toStringTag)}d[e]=n.get}}}));var p=r(85692);e.exports=function(e){return!!p(e)&&(u&&Symbol.toStringTag in e?function(e){var t=!1;return n(d,(function(r,n){if(!t)try{var i=r.call(e);i===n&&(t=i)}catch(e){}})),t}(e):l(s(e),8,-1))}},69159:()=>{},72082:()=>{},79631:()=>{},34278:()=>{},36563:()=>{},46601:()=>{},89214:()=>{},85568:()=>{},89568:()=>{},40127:()=>{},52361:()=>{},94616:()=>{},88924:()=>{},55024:()=>{},66115:e=>{e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},56690:e=>{e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},29399:e=>{e.exports=function(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e},e.exports.__esModule=!0,e.exports.default=e.exports},40426:e=>{var t=0;e.exports=function(e){return"__private_"+t+++"_"+e},e.exports.__esModule=!0,e.exports.default=e.exports},3515:(e,t,r)=>{var n=r(6015),i=r(69617);function o(t,r,a){return i()?(e.exports=o=Reflect.construct.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=o=function(e,t,r){var i=[null];i.push.apply(i,t);var o=new(Function.bind.apply(e,i));return r&&n(o,r.prototype),o},e.exports.__esModule=!0,e.exports.default=e.exports),o.apply(null,arguments)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},89728:(e,t,r)=>{var n=r(64062);function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,n(i.key),i)}}e.exports=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},38416:(e,t,r)=>{var n=r(64062);e.exports=function(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},41588:(e,t,r)=>{var n=r(1753);function i(){return"undefined"!=typeof Reflect&&Reflect.get?(e.exports=i=Reflect.get.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=i=function(e,t,r){var i=n(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},e.exports.__esModule=!0,e.exports.default=e.exports),i.apply(this,arguments)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},73808:e=>{function t(r){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},61655:(e,t,r)=>{var n=r(6015);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&n(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},64836:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},46035:e=>{e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")},e.exports.__esModule=!0,e.exports.default=e.exports},69617:e=>{e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},94993:(e,t,r)=>{var n=r(18698).default,i=r(66115);e.exports=function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},6015:e=>{function t(r,n){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},1753:(e,t,r)=>{var n=r(73808);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=n(e)););return e},e.exports.__esModule=!0,e.exports.default=e.exports},95036:(e,t,r)=>{var n=r(18698).default;e.exports=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!==n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},64062:(e,t,r)=>{var n=r(18698).default,i=r(95036);e.exports=function(e){var t=i(e,"string");return"symbol"===n(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},18698:e=>{function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},33496:(e,t,r)=>{var n=r(73808),i=r(6015),o=r(46035),a=r(3515);function s(t){var r="function"==typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!o(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(e))return r.get(e);r.set(e,t)}function t(){return a(e,arguments,n(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,s(t)}e.exports=s,e.exports.__esModule=!0,e.exports.default=e.exports},72314:e=>{e.exports=[{prefix:0,network:"polkadot",displayName:"Polkadot Relay Chain",symbols:["DOT"],decimals:[10],standardAccount:"*25519",website:"https://polkadot.network"},{prefix:1,network:"BareSr25519",displayName:"Bare 32-bit Schnorr/Ristretto (S/R 25519) public key.",symbols:[],decimals:[],standardAccount:"Sr25519",website:null},{prefix:2,network:"kusama",displayName:"Kusama Relay Chain",symbols:["KSM"],decimals:[12],standardAccount:"*25519",website:"https://kusama.network"},{prefix:3,network:"BareEd25519",displayName:"Bare 32-bit Ed25519 public key.",symbols:[],decimals:[],standardAccount:"Ed25519",website:null},{prefix:4,network:"katalchain",displayName:"Katal Chain",symbols:[],decimals:[],standardAccount:"*25519",website:null},{prefix:5,network:"astar",displayName:"Astar Network",symbols:["ASTR"],decimals:[18],standardAccount:"*25519",website:"https://astar.network"},{prefix:6,network:"bifrost",displayName:"Bifrost",symbols:["BNC"],decimals:[12],standardAccount:"*25519",website:"https://bifrost.finance/"},{prefix:7,network:"edgeware",displayName:"Edgeware",symbols:["EDG"],decimals:[18],standardAccount:"*25519",website:"https://edgewa.re"},{prefix:8,network:"karura",displayName:"Karura",symbols:["KAR"],decimals:[12],standardAccount:"*25519",website:"https://karura.network/"},{prefix:9,network:"reynolds",displayName:"Laminar Reynolds Canary",symbols:["REY"],decimals:[18],standardAccount:"*25519",website:"http://laminar.network/"},{prefix:10,network:"acala",displayName:"Acala",symbols:["ACA"],decimals:[12],standardAccount:"*25519",website:"https://acala.network/"},{prefix:11,network:"laminar",displayName:"Laminar",symbols:["LAMI"],decimals:[18],standardAccount:"*25519",website:"http://laminar.network/"},{prefix:12,network:"polymesh",displayName:"Polymesh",symbols:["POLYX"],decimals:[6],standardAccount:"*25519",website:"https://polymath.network/"},{prefix:13,network:"integritee",displayName:"Integritee",symbols:["TEER"],decimals:[12],standardAccount:"*25519",website:"https://integritee.network"},{prefix:14,network:"totem",displayName:"Totem",symbols:["TOTEM"],decimals:[0],standardAccount:"*25519",website:"https://totemaccounting.com"},{prefix:15,network:"synesthesia",displayName:"Synesthesia",symbols:["SYN"],decimals:[12],standardAccount:"*25519",website:"https://synesthesia.network/"},{prefix:16,network:"kulupu",displayName:"Kulupu",symbols:["KLP"],decimals:[12],standardAccount:"*25519",website:"https://kulupu.network/"},{prefix:17,network:"dark",displayName:"Dark Mainnet",symbols:[],decimals:[],standardAccount:"*25519",website:null},{prefix:18,network:"darwinia",displayName:"Darwinia Network",symbols:["RING","KTON"],decimals:[9,9],standardAccount:"*25519",website:"https://darwinia.network/"},{prefix:19,network:"watr",displayName:"Watr Protocol",symbols:["WATR"],decimals:[18],standardAccount:"*25519",website:"https://www.watr.org"},{prefix:20,network:"stafi",displayName:"Stafi",symbols:["FIS"],decimals:[12],standardAccount:"*25519",website:"https://stafi.io"},{prefix:22,network:"dock-pos-mainnet",displayName:"Dock Mainnet",symbols:["DCK"],decimals:[6],standardAccount:"*25519",website:"https://dock.io"},{prefix:23,network:"shift",displayName:"ShiftNrg",symbols:[],decimals:[],standardAccount:"*25519",website:null},{prefix:24,network:"zero",displayName:"ZERO",symbols:["ZERO"],decimals:[18],standardAccount:"*25519",website:"https://zero.io"},{prefix:25,network:"zero-alphaville",displayName:"ZERO Alphaville",symbols:["ZERO"],decimals:[18],standardAccount:"*25519",website:"https://zero.io"},{prefix:26,network:"jupiter",displayName:"Jupiter",symbols:["jDOT"],decimals:[10],standardAccount:"*25519",website:"https://jupiter.patract.io"},{prefix:27,network:"kabocha",displayName:"Kabocha",symbols:["KAB"],decimals:[12],standardAccount:"*25519",website:"https://kabocha.network"},{prefix:28,network:"subsocial",displayName:"Subsocial",symbols:[],decimals:[],standardAccount:"*25519",website:null},{prefix:29,network:"cord",displayName:"CORD Network",symbols:["DHI","WAY"],decimals:[12,12],standardAccount:"*25519",website:"https://cord.network/"},{prefix:30,network:"phala",displayName:"Phala Network",symbols:["PHA"],decimals:[12],standardAccount:"*25519",website:"https://phala.network"},{prefix:31,network:"litentry",displayName:"Litentry Network",symbols:["LIT"],decimals:[12],standardAccount:"*25519",website:"https://litentry.com/"},{prefix:32,network:"robonomics",displayName:"Robonomics",symbols:["XRT"],decimals:[9],standardAccount:"*25519",website:"https://robonomics.network"},{prefix:33,network:"datahighway",displayName:"DataHighway",symbols:[],decimals:[],standardAccount:"*25519",website:null},{prefix:34,network:"ares",displayName:"Ares Protocol",symbols:["ARES"],decimals:[12],standardAccount:"*25519",website:"https://www.aresprotocol.com/"},{prefix:35,network:"vln",displayName:"Valiu Liquidity Network",symbols:["USDv"],decimals:[15],standardAccount:"*25519",website:"https://valiu.com/"},{prefix:36,network:"centrifuge",displayName:"Centrifuge Chain",symbols:["CFG"],decimals:[18],standardAccount:"*25519",website:"https://centrifuge.io/"},{prefix:37,network:"nodle",displayName:"Nodle Chain",symbols:["NODL"],decimals:[11],standardAccount:"*25519",website:"https://nodle.io/"},{prefix:38,network:"kilt",displayName:"KILT Spiritnet",symbols:["KILT"],decimals:[15],standardAccount:"*25519",website:"https://kilt.io/"},{prefix:39,network:"mathchain",displayName:"MathChain mainnet",symbols:["MATH"],decimals:[18],standardAccount:"*25519",website:"https://mathwallet.org"},{prefix:40,network:"mathchain-testnet",displayName:"MathChain testnet",symbols:["MATH"],decimals:[18],standardAccount:"*25519",website:"https://mathwallet.org"},{prefix:41,network:"poli",displayName:"Polimec Chain",symbols:[],decimals:[],standardAccount:"*25519",website:"https://polimec.io/"},{prefix:42,network:"substrate",displayName:"Substrate",symbols:[],decimals:[],standardAccount:"*25519",website:"https://substrate.io/"},{prefix:43,network:"BareSecp256k1",displayName:"Bare 32-bit ECDSA SECP-256k1 public key.",symbols:[],decimals:[],standardAccount:"secp256k1",website:null},{prefix:44,network:"chainx",displayName:"ChainX",symbols:["PCX"],decimals:[8],standardAccount:"*25519",website:"https://chainx.org/"},{prefix:45,network:"uniarts",displayName:"UniArts Network",symbols:["UART","UINK"],decimals:[12,12],standardAccount:"*25519",website:"https://uniarts.me"},{prefix:46,network:"reserved46",displayName:"This prefix is reserved.",symbols:[],decimals:[],standardAccount:null,website:null},{prefix:47,network:"reserved47",displayName:"This prefix is reserved.",symbols:[],decimals:[],standardAccount:null,website:null},{prefix:48,network:"neatcoin",displayName:"Neatcoin Mainnet",symbols:["NEAT"],decimals:[12],standardAccount:"*25519",website:"https://neatcoin.org"},{prefix:49,network:"picasso",displayName:"Picasso",symbols:["PICA"],decimals:[12],standardAccount:"*25519",website:"https://picasso.composable.finance"},{prefix:50,network:"composable",displayName:"Composable",symbols:["LAYR"],decimals:[12],standardAccount:"*25519",website:"https://composable.finance"},{prefix:51,network:"oak",displayName:"OAK Network",symbols:["OAK","TUR"],decimals:[10,10],standardAccount:"*25519",website:"https://oak.tech"},{prefix:52,network:"KICO",displayName:"KICO",symbols:["KICO"],decimals:[14],standardAccount:"*25519",website:"https://dico.io"},{prefix:53,network:"DICO",displayName:"DICO",symbols:["DICO"],decimals:[14],standardAccount:"*25519",website:"https://dico.io"},{prefix:54,network:"cere",displayName:"Cere Network",symbols:["CERE"],decimals:[10],standardAccount:"*25519",website:"https://cere.network"},{prefix:55,network:"xxnetwork",displayName:"xx network",symbols:["XX"],decimals:[9],standardAccount:"*25519",website:"https://xx.network"},{prefix:56,network:"pendulum",displayName:"Pendulum chain",symbols:["PEN"],decimals:[12],standardAccount:"*25519",website:"https://pendulumchain.org/"},{prefix:57,network:"amplitude",displayName:"Amplitude chain",symbols:["AMPE"],decimals:[12],standardAccount:"*25519",website:"https://pendulumchain.org/"},{prefix:63,network:"hydradx",displayName:"HydraDX",symbols:["HDX"],decimals:[12],standardAccount:"*25519",website:"https://hydradx.io"},{prefix:65,network:"aventus",displayName:"AvN Mainnet",symbols:["AVT"],decimals:[18],standardAccount:"*25519",website:"https://aventus.io"},{prefix:66,network:"crust",displayName:"Crust Network",symbols:["CRU"],decimals:[12],standardAccount:"*25519",website:"https://crust.network"},{prefix:67,network:"genshiro",displayName:"Genshiro Network",symbols:["GENS","EQD","LPT0"],decimals:[9,9,9],standardAccount:"*25519",website:"https://genshiro.equilibrium.io"},{prefix:68,network:"equilibrium",displayName:"Equilibrium Network",symbols:["EQ"],decimals:[9],standardAccount:"*25519",website:"https://equilibrium.io"},{prefix:69,network:"sora",displayName:"SORA Network",symbols:["XOR"],decimals:[18],standardAccount:"*25519",website:"https://sora.org"},{prefix:71,network:"p3d",displayName:"3DP network",symbols:["P3D"],decimals:[12],standardAccount:"*25519",website:"https://3dpass.org"},{prefix:72,network:"p3dt",displayName:"3DP test network",symbols:["P3Dt"],decimals:[12],standardAccount:"*25519",website:"https://3dpass.org"},{prefix:73,network:"zeitgeist",displayName:"Zeitgeist",symbols:["ZTG"],decimals:[10],standardAccount:"*25519",website:"https://zeitgeist.pm"},{prefix:77,network:"manta",displayName:"Manta network",symbols:["MANTA"],decimals:[18],standardAccount:"*25519",website:"https://manta.network"},{prefix:78,network:"calamari",displayName:"Calamari: Manta Canary Network",symbols:["KMA"],decimals:[12],standardAccount:"*25519",website:"https://manta.network"},{prefix:81,network:"sora_dot_para",displayName:"SORA Polkadot Parachain",symbols:["XOR"],decimals:[18],standardAccount:"*25519",website:"https://sora.org"},{prefix:88,network:"polkadex",displayName:"Polkadex Mainnet",symbols:["PDEX"],decimals:[12],standardAccount:"*25519",website:"https://polkadex.trade"},{prefix:89,network:"polkadexparachain",displayName:"Polkadex Parachain",symbols:["PDEX"],decimals:[12],standardAccount:"*25519",website:"https://polkadex.trade"},{prefix:90,network:"frequency",displayName:"Frequency",symbols:["FRQCY"],decimals:[8],standardAccount:"*25519",website:"https://www.frequency.xyz"},{prefix:92,network:"anmol",displayName:"Anmol Network",symbols:["ANML"],decimals:[18],standardAccount:"*25519",website:"https://anmol.network/"},{prefix:93,network:"fragnova",displayName:"Fragnova Network",symbols:["NOVA"],decimals:[12],standardAccount:"*25519",website:"https://fragnova.com"},{prefix:98,network:"polkasmith",displayName:"PolkaSmith Canary Network",symbols:["PKS"],decimals:[18],standardAccount:"*25519",website:"https://polkafoundry.com"},{prefix:99,network:"polkafoundry",displayName:"PolkaFoundry Network",symbols:["PKF"],decimals:[18],standardAccount:"*25519",website:"https://polkafoundry.com"},{prefix:100,network:"ibtida",displayName:"Anmol Network Ibtida Canary network",symbols:["IANML"],decimals:[18],standardAccount:"*25519",website:"https://anmol.network/"},{prefix:101,network:"origintrail-parachain",displayName:"OriginTrail Parachain",symbols:["OTP"],decimals:[12],standardAccount:"*25519",website:"https://parachain.origintrail.io/"},{prefix:105,network:"pontem-network",displayName:"Pontem Network",symbols:["PONT"],decimals:[10],standardAccount:"*25519",website:"https://pontem.network"},{prefix:110,network:"heiko",displayName:"Heiko",symbols:["HKO"],decimals:[12],standardAccount:"*25519",website:"https://parallel.fi/"},{prefix:113,network:"integritee-incognito",displayName:"Integritee Incognito",symbols:[],decimals:[],standardAccount:"*25519",website:"https://integritee.network"},{prefix:117,network:"tinker",displayName:"Tinker",symbols:["TNKR"],decimals:[12],standardAccount:"*25519",website:"https://invarch.network"},{prefix:126,network:"joystream",displayName:"Joystream",symbols:["JOY"],decimals:[10],standardAccount:"*25519",website:"https://www.joystream.org"},{prefix:128,network:"clover",displayName:"Clover Finance",symbols:["CLV"],decimals:[18],standardAccount:"*25519",website:"https://clover.finance"},{prefix:129,network:"dorafactory-polkadot",displayName:"Dorafactory Polkadot Network",symbols:["DORA"],decimals:[12],standardAccount:"*25519",website:"https://dorafactory.org"},{prefix:131,network:"litmus",displayName:"Litmus Network",symbols:["LIT"],decimals:[12],standardAccount:"*25519",website:"https://litentry.com/"},{prefix:136,network:"altair",displayName:"Altair",symbols:["AIR"],decimals:[18],standardAccount:"*25519",website:"https://centrifuge.io/"},{prefix:137,network:"vara",displayName:"Vara Network",symbols:["VARA"],decimals:[12],standardAccount:"*25519",website:"https://vara-network.io/"},{prefix:172,network:"parallel",displayName:"Parallel",symbols:["PARA"],decimals:[12],standardAccount:"*25519",website:"https://parallel.fi/"},{prefix:252,network:"social-network",displayName:"Social Network",symbols:["NET"],decimals:[18],standardAccount:"*25519",website:"https://social.network"},{prefix:255,network:"quartz_mainnet",displayName:"QUARTZ by UNIQUE",symbols:["QTZ"],decimals:[18],standardAccount:"*25519",website:"https://unique.network"},{prefix:268,network:"pioneer_network",displayName:"Pioneer Network by Bit.Country",symbols:["NEER"],decimals:[18],standardAccount:"*25519",website:"https://bit.country"},{prefix:420,network:"sora_kusama_para",displayName:"SORA Kusama Parachain",symbols:["XOR"],decimals:[18],standardAccount:"*25519",website:"https://sora.org"},{prefix:789,network:"geek",displayName:"GEEK Network",symbols:["GEEK"],decimals:[18],standardAccount:"*25519",website:"https://geek.gl"},{prefix:995,network:"ternoa",displayName:"Ternoa",symbols:["CAPS"],decimals:[18],standardAccount:"*25519",website:"https://www.ternoa.network"},{prefix:1110,network:"efinity",displayName:"Efinity",symbols:["EFI"],decimals:[18],standardAccount:"*25519",website:"https://efinity.io/"},{prefix:1221,network:"peaq",displayName:"Peaq Network",symbols:["PEAQ"],decimals:[18],standardAccount:"Sr25519",website:"https://www.peaq.network/"},{prefix:1222,network:"krest",displayName:"Krest Network",symbols:["KREST"],decimals:[18],standardAccount:"Sr25519",website:"https://www.peaq.network/"},{prefix:1284,network:"moonbeam",displayName:"Moonbeam",symbols:["GLMR"],decimals:[18],standardAccount:"secp256k1",website:"https://moonbeam.network"},{prefix:1285,network:"moonriver",displayName:"Moonriver",symbols:["MOVR"],decimals:[18],standardAccount:"secp256k1",website:"https://moonbeam.network"},{prefix:1328,network:"ajuna",displayName:"Ajuna Network",symbols:["AJUN"],decimals:[12],standardAccount:"*25519",website:"https://ajuna.io"},{prefix:1337,network:"bajun",displayName:"Bajun Network",symbols:["BAJU"],decimals:[12],standardAccount:"*25519",website:"https://ajuna.io"},{prefix:1985,network:"seals",displayName:"Seals Network",symbols:["SEAL"],decimals:[9],standardAccount:"*25519",website:"https://seals.app"},{prefix:2007,network:"kapex",displayName:"Kapex",symbols:["KAPEX"],decimals:[12],standardAccount:"*25519",website:"https://totemaccounting.com"},{prefix:2009,network:"cloudwalk_mainnet",displayName:"CloudWalk Network Mainnet",symbols:["CWN"],decimals:[18],standardAccount:"*25519",website:"https://explorer.mainnet.cloudwalk.io"},{prefix:2032,network:"interlay",displayName:"Interlay",symbols:["INTR"],decimals:[10],standardAccount:"*25519",website:"https://interlay.io/"},{prefix:2092,network:"kintsugi",displayName:"Kintsugi",symbols:["KINT"],decimals:[12],standardAccount:"*25519",website:"https://interlay.io/"},{prefix:2106,network:"bitgreen",displayName:"Bitgreen",symbols:["BBB"],decimals:[18],standardAccount:"*25519",website:"https://bitgreen.org/"},{prefix:2112,network:"chainflip",displayName:"Chainflip",symbols:["FLIP"],decimals:[18],standardAccount:"*25519",website:"https://chainflip.io/"},{prefix:2207,network:"SNOW",displayName:"SNOW: ICE Canary Network",symbols:["ICZ"],decimals:[18],standardAccount:"*25519",website:"https://icenetwork.io"},{prefix:2208,network:"ICE",displayName:"ICE Network",symbols:["ICY"],decimals:[18],standardAccount:"*25519",website:"https://icenetwork.io"},{prefix:2254,network:"subspace_testnet",displayName:"Subspace testnet",symbols:["tSSC"],decimals:[18],standardAccount:"*25519",website:"https://subspace.network"},{prefix:4006,network:"tangle",displayName:"Tangle Network",symbols:["TNT"],decimals:[18],standardAccount:"*25519",website:"https://www.webb.tools/"},{prefix:4450,network:"g1",displayName:"Ğ1",symbols:["G1"],decimals:[2],standardAccount:"*25519",website:"https://duniter.org"},{prefix:5234,network:"humanode",displayName:"Humanode Network",symbols:["HMND"],decimals:[18],standardAccount:"*25519",website:"https://humanode.io"},{prefix:6094,network:"subspace",displayName:"Subspace",symbols:["SSC"],decimals:[18],standardAccount:"*25519",website:"https://subspace.network"},{prefix:7007,network:"tidefi",displayName:"Tidefi",symbols:["TDFY"],decimals:[12],standardAccount:"*25519",website:"https://tidefi.com"},{prefix:7013,network:"gm",displayName:"GM",symbols:["FREN","GM","GN"],decimals:[12,0,0],standardAccount:"*25519",website:"https://gmordie.com"},{prefix:7391,network:"unique_mainnet",displayName:"Unique Network",symbols:["UNQ"],decimals:[18],standardAccount:"*25519",website:"https://unique.network"},{prefix:8883,network:"sapphire_mainnet",displayName:"Sapphire by Unique",symbols:["QTZ"],decimals:[18],standardAccount:"*25519",website:"https://unique.network"},{prefix:9072,network:"hashed",displayName:"Hashed Network",symbols:["HASH"],decimals:[18],standardAccount:"*25519",website:"https://hashed.network"},{prefix:9807,network:"dentnet",displayName:"DENTNet",symbols:["DENTX"],decimals:[18],standardAccount:"*25519",website:"https://www.dentnet.io"},{prefix:9935,network:"t3rn",displayName:"t3rn",symbols:["TRN"],decimals:[12],standardAccount:"*25519",website:"https://t3rn.io/"},{prefix:10041,network:"basilisk",displayName:"Basilisk",symbols:["BSX"],decimals:[12],standardAccount:"*25519",website:"https://bsx.fi"},{prefix:11330,network:"cess-testnet",displayName:"CESS Testnet",symbols:["TCESS"],decimals:[12],standardAccount:"*25519",website:"https://cess.cloud"},{prefix:11331,network:"cess",displayName:"CESS",symbols:["CESS"],decimals:[12],standardAccount:"*25519",website:"https://cess.cloud"},{prefix:11486,network:"luhn",displayName:"Luhn Network",symbols:["LUHN"],decimals:[18],standardAccount:"*25519",website:"https://luhn.network"},{prefix:11820,network:"contextfree",displayName:"Automata ContextFree",symbols:["CTX"],decimals:[18],standardAccount:"*25519",website:"https://ata.network"},{prefix:12191,network:"nftmart",displayName:"NFTMart",symbols:["NMT"],decimals:[12],standardAccount:"*25519",website:"https://nftmart.io"},{prefix:13116,network:"bittensor",displayName:"Bittensor",symbols:["TAO"],decimals:[9],standardAccount:"*25519",website:"https://bittensor.com"}]},63083:(e,t,r)=>{"use strict";var n=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],i="undefined"==typeof globalThis?r.g:globalThis;e.exports=function(){for(var e=[],t=0;t<n.length;t++)"function"==typeof i[n[t]]&&(e[e.length]=n[t]);return e}},31015:(e,t,r)=>{"use strict";var n=r(64836)(r(38416));function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){(0,n.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}Object.defineProperty(t,"__esModule",{value:!0}),t.calcPassing=u,t.calcVotes=function(e,t,r){const n=t.status.tally?function(e,t){const r=[],n=[];return t.forEach((e=>{e.vote.isAye?r.push(e):n.push(e)})),{allAye:r,allNay:n,voteCount:r.length+n.length,voteCountAye:r.length,voteCountNay:n.length,votedAye:e.ayes,votedNay:e.nays,votedTotal:e.turnout}}(t.status.tally,r):r.reduce(((e,t)=>{const{balance:r,vote:n}=t,i=0===n.conviction.index,o=r.muln(i?1:n.conviction.index).divn(i?10:1);return n.isAye?(e.allAye.push(t),e.voteCountAye++,e.votedAye.iadd(o)):(e.allNay.push(t),e.voteCountNay++,e.votedNay.iadd(o)),e.voteCount++,e.votedTotal.iadd(o),e}),{allAye:[],allNay:[],voteCount:0,voteCountAye:0,voteCountNay:0,votedAye:new a.BN(0),votedNay:new a.BN(0),votedTotal:new a.BN(0)});return o(o({},n),{},{isPassing:u(t.status.threshold,e,n),votes:r})},t.compareRationals=s,t.getStatus=function(e){if(e.isNone)return null;const t=e.unwrap();return function(e){return!!e.proposalHash}(t)?t:t.isOngoing?t.asOngoing:null};var a=r(69338);function s(e,t,r,n){for(;;){const i=e.div(t),o=r.div(n);if(i.lt(o))return!0;if(o.lt(i))return!1;const a=e.mod(t),s=r.mod(n);if(s.isZero())return!1;if(a.isZero())return!0;e=n,r=t,t=s,n=a}}function u(e,t,r){return e.isSimpleMajority?r.votedAye.gt(r.votedNay):function(e,t,r){let{votedAye:n,votedNay:i,votedTotal:o}=r;const u=(0,a.bnSqrt)(o);return!u.isZero()&&(e.isSuperMajorityApprove?s(i,u,n,t):s(i,t,n,u))}(e,t,r)}},52554:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(66115)),s=n(r(61655)),u=n(r(94993)),c=n(r(73808)),f=n(r(29399)),l=n(r(40426));Object.defineProperty(t,"__esModule",{value:!0}),t.Decorate=void 0;var d=r(72872),h=r(48985),p=r(82758),b=r(51290),y=r(26700),g=r(7086),m=r(86879),v=r(34070),w=r(40194),_=r(80137),x=r(68550),O=r(80062),k=r(77261),P=r(14635);const S=1e3,A=(0,m.logger)("api/init");let E=0;function M(e,t){let{method:r,section:n}=t;return(0,m.assertReturn)(e.rx.query[n]&&e.rx.query[n][r],(()=>`query.${n}.${r} is not available in this version of the metadata`))}var j=(0,l.default)("instanceId"),T=(0,l.default)("runtimeLog"),B=(0,l.default)("registry"),I=(0,l.default)("storageGetQ"),N=(0,l.default)("storageSubQ");let R=function(e){(0,s.default)(l,e);var t,r,n=(t=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,c.default)(t);if(r){var i=(0,c.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,u.default)(this,e)});function l(e,t,r){var o,s;(0,i.default)(this,l),o=n.call(this),Object.defineProperty((0,a.default)(o),j,{writable:!0,value:void 0}),Object.defineProperty((0,a.default)(o),T,{writable:!0,value:{}}),Object.defineProperty((0,a.default)(o),B,{writable:!0,value:void 0}),Object.defineProperty((0,a.default)(o),I,{writable:!0,value:[]}),Object.defineProperty((0,a.default)(o),N,{writable:!0,value:[]}),o.__phantom=new m.BN(0),o._call={},o._consts={},o._errors={},o._events={},o._extrinsicType=y.GenericExtrinsic.LATEST_EXTRINSIC_VERSION,o._isReady=!1,o._query={},o._runtimeMap={},o._rx={call:{},consts:{},query:{},tx:{}},o._rxDecorateMethod=e=>e,(0,f.default)((0,a.default)(o),j)[j]=""+ ++E,(0,f.default)((0,a.default)(o),B)[B]=(null==(s=e.source)?void 0:s.registry)||e.registry||new y.TypeRegistry,o._rx.callAt=(e,t)=>(0,d.from)(o.at(e,t)).pipe((0,d.map)((e=>e.rx.call))),o._rx.queryAt=(e,t)=>(0,d.from)(o.at(e,t)).pipe((0,d.map)((e=>e.rx.query))),o._rx.registry=(0,f.default)((0,a.default)(o),B)[B];const u=e.source?e.source._rpcCore.provider.isClonable?e.source._rpcCore.provider.clone():e.source._rpcCore.provider:e.provider||new b.WsProvider;return o._decorateMethod=r,o._options=e,o._type=t,o._rpcCore=new p.RpcCore((0,f.default)((0,a.default)(o),j)[j],(0,f.default)((0,a.default)(o),B)[B],u,o._options.rpc),o._isConnected=new d.BehaviorSubject(o._rpcCore.provider.isConnected),o._rx.hasSubscriptions=o._rpcCore.provider.hasSubscriptions,o}return(0,o.default)(l,[{key:"registry",get:function(){return(0,f.default)(this,B)[B]}},{key:"createType",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return(0,f.default)(this,B)[B].createType(e,...r)}},{key:"registerTypes",value:function(e){e&&(0,f.default)(this,B)[B].register(e)}},{key:"hasSubscriptions",get:function(){return this._rpcCore.provider.hasSubscriptions}},{key:"supportMulti",get:function(){return this._rpcCore.provider.hasSubscriptions||!!this._rpcCore.state.queryStorageAt}},{key:"_emptyDecorated",value:function(e,t){return{call:{},consts:{},errors:{},events:{},query:{},registry:e,rx:{call:{},query:{}},tx:(0,w.createSubmittable)(this._type,this._rx,this._decorateMethod,e,t)}}},{key:"_createDecorated",value:function(e,t,r,n){r||(r=this._emptyDecorated(e.registry,n)),!t&&e.decoratedMeta||(e.decoratedMeta=(0,y.expandMetadata)(e.registry,e.metadata));const i=this._decorateCalls(e,this._decorateMethod,n),o=this._decorateCalls(e,this._rxDecorateMethod,n),a=this._decorateStorage(e.decoratedMeta,this._decorateMethod,n),s=this._decorateStorage(e.decoratedMeta,this._rxDecorateMethod,n);return(0,_.augmentObject)("consts",e.decoratedMeta.consts,r.consts,t),(0,_.augmentObject)("errors",e.decoratedMeta.errors,r.errors,t),(0,_.augmentObject)("events",e.decoratedMeta.events,r.events,t),(0,_.augmentObject)("query",a,r.query,t),(0,_.augmentObject)("query",s,r.rx.query,t),(0,_.augmentObject)("call",i,r.call,t),(0,_.augmentObject)("call",o,r.rx.call,t),r.findCall=t=>(0,P.findCall)(e.registry,t),r.findError=t=>(0,P.findError)(e.registry,t),r.queryMulti=n?this._decorateMultiAt(r,this._decorateMethod,n):this._decorateMulti(this._decorateMethod),r.runtimeVersion=e.runtimeVersion,{createdAt:n,decoratedApi:r,decoratedMeta:e.decoratedMeta}}},{key:"_injectMetadata",value:function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];!t&&e.decoratedApi||(e.decoratedApi=this._emptyDecorated(e.registry));const{decoratedApi:r,decoratedMeta:n}=this._createDecorated(e,t,e.decoratedApi);this._call=r.call,this._consts=r.consts,this._errors=r.errors,this._events=r.events,this._query=r.query,this._rx.call=r.rx.call,this._rx.query=r.rx.query;const i=this._decorateExtrinsics(n,this._decorateMethod),o=this._decorateExtrinsics(n,this._rxDecorateMethod);t||!this._extrinsics?(this._extrinsics=i,this._rx.tx=o):((0,_.augmentObject)("tx",i,this._extrinsics,!1),(0,_.augmentObject)(null,o,this._rx.tx,!1)),(0,_.augmentObject)(null,n.consts,this._rx.consts,t),this.emit("decorated")}},{key:"injectMetadata",value:function(e,t,r){this._injectMetadata({counter:0,metadata:e,registry:r||(0,f.default)(this,B)[B],runtimeVersion:(0,f.default)(this,B)[B].createType("RuntimeVersionPartial")},t)}},{key:"_decorateFunctionMeta",value:function(e,t){return t.meta=e.meta,t.method=e.method,t.section=e.section,t.toJSON=e.toJSON,e.callIndex&&(t.callIndex=e.callIndex),t}},{key:"_filterRpc",value:function(e,t){0!==Object.keys(t).length&&(this._rpcCore.addUserInterfaces(t),this._decorateRpc(this._rpcCore,this._decorateMethod,this._rpc),this._decorateRpc(this._rpcCore,this._rxDecorateMethod,this._rx.rpc));const r={};for(let t=0;t<e.length;t++){const[n]=e[t].split("_");r[n]=!0}const n=Object.keys(r);for(let e=0;e<n.length;e++){const t=(0,m.stringUpperFirst)(n[e]),r=`${t}Api`;this._runtimeMap[(0,v.blake2AsHex)(t,64)]=t,this._runtimeMap[(0,v.blake2AsHex)(r,64)]=r}this._filterRpcMethods(e)}},{key:"_filterRpcMethods",value:function(e){const t=0!==e.length,r=[...this._rpcCore.mapping.entries()],n=[];for(let e=0;e<r.length;e++){const[,{alias:t,endpoint:i,method:o,pubsub:a,section:s}]=r[e];n.push(`${s}_${o}`),a&&(n.push(`${s}_${a[1]}`),n.push(`${s}_${a[2]}`)),t&&n.push(...t),i&&n.push(i)}const i=e.filter((e=>!n.includes(e)));i.length&&!this._options.noInitWarn&&A.warn(`RPC methods not decorated: ${i.join(", ")}`);for(let n=0;n<r.length;n++){const[i,{method:o,section:a}]=r[n];t&&!e.includes(i)&&"rpc_methods"!==i&&this._rpc[a]&&(delete this._rpc[a][o],delete this._rx.rpc[a][o])}}},{key:"_rpcSubmitter",value:function(e){var t=this;return e((function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return(0,d.from)(t._rpcCore.provider.send(e,n))}))}},{key:"_decorateRpc",value:function(e,t){const r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._rpcSubmitter(t),n=(r,n)=>{const i=e[r][n],o=t(i,{methodName:n});return o.meta=i.meta,o.raw=t(i.raw,{methodName:n}),o};for(let t=0;t<e.sections.length;t++){const i=e.sections[t];if(!Object.prototype.hasOwnProperty.call(r,i)){const t=Object.keys(e[i]),o=e=>n(i,e);for(let e=0;e<t.length;e++){const n=t[e];(this.hasSubscriptions||!n.startsWith("subscribe")&&!n.startsWith("unsubscribe"))&&(Object.prototype.hasOwnProperty.call(r,i)||(r[i]={}),(0,m.lazyMethod)(r[i],n,o))}}}return r}},{key:"_addRuntimeDef",value:function(e,t){if(!t)return;const r=Object.entries(t);for(let t=0;t<r.length;t++){const[n,i]=r[t];if(e[n])for(let t=0;t<i.length;t++){const r=i[t],o=e[n].find((e=>{let{version:t}=e;return r.version===t}));o?(0,m.objectSpread)(o.methods,r.methods):e[n].push(r)}else e[n]=i}}},{key:"_getRuntimeDefs",value:function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const n={},i=Object.values(y.typeDefinitions);for(let e=0;e<i.length;e++)this._addRuntimeDef(n,i[e].runtime);return this._addRuntimeDef(n,(0,g.getSpecRuntime)(e,r,t)),this._addRuntimeDef(n,this._options.runtime),Object.entries(n)}},{key:"_decorateCalls",value:function(e,t,r){let{registry:n,runtimeVersion:{apis:i,specName:o,specVersion:a}}=e;const s={},u={},c={},l=this._getRuntimeDefs(n,o,this._runtimeChain),d=[],h=`${o.toString()}/${a.toString()}`,p=(0,f.default)(this,T)[T][h]||!1;(0,f.default)(this,T)[T][h]=!0;for(let e=0;e<l.length;e++){const[t,r]=l[e],n=(0,v.blake2AsHex)(t,64),o=i.find((e=>{let[t]=e;return t.eq(n)}));if(c[n]=!0,o){const e=r.map((e=>{let{version:t}=e;return t})).sort(),i=r.find((e=>{let{version:t}=e;return o[1].eq(t)}));if(i){const e=(0,m.stringCamelCase)(t),r=Object.entries(i.methods);if(r.length){u[e]||(u[e]={});for(let i=0;i<r.length;i++){const[o,a]=r[i],s=(0,m.stringCamelCase)(o);u[e][s]=(0,m.objectSpread)({method:s,name:`${t}_${o}`,section:e,sectionHash:n},a)}}}else d.push(`${t}/${o[1].toString()} (${e.join("/")} known)`)}}const b=i.map((e=>{let[t,r]=e;return[t.toHex(),r.toString()]})).filter((e=>{let[t]=e;return!c[t]})).map((e=>{let[t,r]=e;return`${this._runtimeMap[t]||t}/${r}`}));this._options.noInitWarn||p||(d.length&&A.warn(`${h}: Not decorating runtime apis without matching versions: ${d.join(", ")}`),b.length&&A.warn(`${h}: Not decorating unknown runtime apis: ${b.join(", ")}`));const y=r?(e,t)=>this._rpcCore.state.call(e,t,r):(e,t)=>this._rpcCore.state.call(e,t),g=e=>(0,m.lazyMethods)({},Object.keys(u[e]),(r=>this._decorateCall(n,u[e][r],y,t))),w=Object.keys(u);for(let e=0;e<w.length;e++)(0,m.lazyMethod)(s,w[e],g);return s}},{key:"_decorateCall",value:function(e,t,r,n){const i=n((function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];if(i.length!==t.params.length)throw new Error(`${t.name}:: Expected ${t.params.length} arguments, found ${i.length}`);const a=e.createType("Raw",(0,m.u8aConcatStrict)(i.map(((r,n)=>e.createTypeUnsafe(t.params[n].type,[r]).toU8a()))));return r(t.name,a).pipe((0,d.map)((r=>e.createTypeUnsafe(t.type,[r]))))}));return i.meta=t,i}},{key:"_decorateMulti",value:function(e){return e((e=>e.length?(this.hasSubscriptions?this._rpcCore.state.subscribeStorage:this._rpcCore.state.queryStorageAt)(e.map((e=>Array.isArray(e)?e[0].creator.meta.type.isPlain?[e[0].creator]:1===e[0].creator.meta.type.asMap.hashers.length?[e[0].creator,e.slice(1)]:[e[0].creator,...e.slice(1)]:[e.creator]))):(0,d.of)([])))}},{key:"_decorateMultiAt",value:function(e,t,r){return t((t=>t.length?this._rpcCore.state.queryStorageAt(t.map((t=>{if(Array.isArray(t)){const{creator:r}=M(e,t[0].creator);return r.meta.type.isPlain?[r]:1===r.meta.type.asMap.hashers.length?[r,t.slice(1)]:[r,...t.slice(1)]}return[M(e,t.creator).creator]})),r):(0,d.of)([])))}},{key:"_decorateExtrinsics",value:function(e,t){let{tx:r}=e;const n=(0,w.createSubmittable)(this._type,this._rx,t),i=e=>(0,m.lazyMethods)({},Object.keys(r[e]),(t=>t.startsWith("$")?r[e][t]:this._decorateExtrinsicEntry(r[e][t],n))),o=Object.keys(r);for(let e=0;e<o.length;e++)(0,m.lazyMethod)(n,o[e],i);return n}},{key:"_decorateExtrinsicEntry",value:function(e,t){const r=function(){return t(e(...arguments))};return r.is=t=>e.is(t),this._decorateFunctionMeta(e,r)}},{key:"_decorateStorage",value:function(e,t,r){let{query:n,registry:i}=e;const o={},a=e=>(0,m.lazyMethods)({},Object.keys(n[e]),(o=>r?this._decorateStorageEntryAt(i,n[e][o],t,r):this._decorateStorageEntry(n[e][o],t))),s=Object.keys(n);for(let e=0;e<s.length;e++)(0,m.lazyMethod)(o,s[e],a);return o}},{key:"_decorateStorageEntry",value:function(e,t){var r=this;const n=(t,r)=>(0,O.extractStorageArgs)(r||(0,f.default)(this,B)[B],e,t),i=t=>(0,d.from)(this.at(t)).pipe((0,d.map)((t=>M(t,e)))),o=this._decorateStorageCall(e,t);return o.creator=e,o.at=t((function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return i(e).pipe((0,d.switchMap)((e=>e(...r))))})),o.hash=t((function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return r._rpcCore.state.getStorageHash(n(t))})),o.is=t=>t.section===e.section&&t.method===e.method,o.key=function(){return(0,m.u8aToHex)((0,m.compactStripLength)(e(...arguments))[1])},o.keyPrefix=function(){return(0,m.u8aToHex)(e.keyPrefix(...arguments))},o.size=t((function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return r._rpcCore.state.getStorageSize(n(t))})),o.sizeAt=t((function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),a=1;a<t;a++)o[a-1]=arguments[a];return i(e).pipe((0,d.switchMap)((t=>r._rpcCore.state.getStorageSize(n(o,t.creator.meta.registry),e))))})),e.iterKey&&e.meta.type.isMap&&(o.entries=t((0,p.memo)((0,f.default)(this,j)[j],(function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return r._retrieveMapEntries(e,null,n)}))),o.entriesAt=t((0,p.memo)((0,f.default)(this,j)[j],(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return i(e).pipe((0,d.switchMap)((t=>r._retrieveMapEntries(t.creator,e,n))))}))),o.entriesPaged=t((0,p.memo)((0,f.default)(this,j)[j],(t=>this._retrieveMapEntriesPaged(e,void 0,t)))),o.keys=t((0,p.memo)((0,f.default)(this,j)[j],(function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return r._retrieveMapKeys(e,null,n)}))),o.keysAt=t((0,p.memo)((0,f.default)(this,j)[j],(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return i(e).pipe((0,d.switchMap)((t=>r._retrieveMapKeys(t.creator,e,n))))}))),o.keysPaged=t((0,p.memo)((0,f.default)(this,j)[j],(t=>this._retrieveMapKeysPaged(e,void 0,t))))),this.supportMulti&&e.meta.type.isMap&&(o.multi=t((t=>1===e.meta.type.asMap.hashers.length?this._retrieveMulti(t.map((t=>[e,[t]]))):this._retrieveMulti(t.map((t=>[e,t])))))),this._decorateFunctionMeta(e,o)}},{key:"_decorateStorageEntryAt",value:function(e,t,r,n){var i=this;const o=r=>(0,O.extractStorageArgs)(e,t,r),a=r((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return i._rpcCore.state.getStorage(o(t),n)}));return a.creator=t,a.hash=r((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return i._rpcCore.state.getStorageHash(o(t),n)})),a.is=e=>e.section===t.section&&e.method===t.method,a.key=function(){return(0,m.u8aToHex)((0,m.compactStripLength)(t(...arguments))[1])},a.keyPrefix=function(){return(0,m.u8aToHex)(t.keyPrefix(...arguments))},a.size=r((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return i._rpcCore.state.getStorageSize(o(t),n)})),t.iterKey&&t.meta.type.isMap&&(a.entries=r((0,p.memo)((0,f.default)(this,j)[j],(function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return i._retrieveMapEntries(t,n,r)}))),a.entriesPaged=r((0,p.memo)((0,f.default)(this,j)[j],(e=>this._retrieveMapEntriesPaged(t,n,e)))),a.keys=r((0,p.memo)((0,f.default)(this,j)[j],(function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return i._retrieveMapKeys(t,n,r)}))),a.keysPaged=r((0,p.memo)((0,f.default)(this,j)[j],(e=>this._retrieveMapKeysPaged(t,n,e))))),this.supportMulti&&t.meta.type.isMap&&(a.multi=r((e=>1===t.meta.type.asMap.hashers.length?this._retrieveMulti(e.map((e=>[t,[e]])),n):this._retrieveMulti(e.map((e=>[t,e])),n)))),this._decorateFunctionMeta(t,a)}},{key:"_queueStorage",value:function(e,t){const r=t===(0,f.default)(this,N)[N]?this._rpcCore.state.subscribeStorage:this._rpcCore.state.queryStorageAt;let n,i=t.length-1,o=0;return-1!==i&&t[i]&&50!==t[i][1].length?(n=t[i][0],o=t[i][1].length,t[i][1].push(e)):(i++,n=(0,d.from)(new Promise((e=>{(0,m.nextTick)((()=>{const r=t[i][1];delete t[i],e(r)}))}))).pipe((0,d.switchMap)((e=>r(e)))),t.push([n,[e]])),n.pipe((0,d.map)((e=>e[o])))}},{key:"_decorateStorageCall",value:function(e,t){var r=this;const n=(0,p.memo)((0,f.default)(this,j)[j],(function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];const o=(0,O.extractStorageArgs)((0,f.default)(r,B)[B],e,n);return r.hasSubscriptions?r._queueStorage(o,(0,f.default)(r,N)[N]):r._rpcCore.state.getStorage(o)}));return t(n,{methodName:e.method,overrideNoSub:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return r._queueStorage((0,O.extractStorageArgs)((0,f.default)(r,B)[B],e,n),(0,f.default)(r,I)[I])}})}},{key:"_retrieveMulti",value:function(e,t){if(!e.length)return(0,d.of)([]);const r=this.hasSubscriptions&&!t?this._rpcCore.state.subscribeStorage:this._rpcCore.state.queryStorageAt;return e.length<=250?t?r(e,t):r(e):(0,d.combineLatest)((0,m.arrayChunk)(e,250).map((e=>t?r(e,t):r(e)))).pipe((0,d.map)(m.arrayFlatten))}},{key:"_retrieveMapKeys",value:function(e,t,r){let{iterKey:n,meta:i,method:o,section:a}=e;if(!n||!i.type.isMap)throw new Error("keys can only be retrieved on maps");const s=n(...r).toHex(),u=new d.BehaviorSubject(s),c=t?e=>this._rpcCore.state.getKeysPaged(s,S,e,t):e=>this._rpcCore.state.getKeysPaged(s,S,e),f=e=>e.setMeta(i,a,o);return u.pipe((0,d.switchMap)(c),(0,d.map)((e=>e.map(f))),(0,d.tap)((e=>(0,m.nextTick)((()=>{e.length===S?u.next(e[999].toHex()):u.complete()})))),(0,d.toArray)(),(0,d.map)(m.arrayFlatten))}},{key:"_retrieveMapKeysPaged",value:function(e,t,r){let{iterKey:n,meta:i,method:o,section:a}=e;if(!n||!i.type.isMap)throw new Error("keys can only be retrieved on maps");const s=e=>e.setMeta(i,a,o);return(t?e=>this._rpcCore.state.getKeysPaged(e,r.pageSize,r.startKey||e,t):e=>this._rpcCore.state.getKeysPaged(e,r.pageSize,r.startKey||e))(n(...r.args).toHex()).pipe((0,d.map)((e=>e.map(s))))}},{key:"_retrieveMapEntries",value:function(e,t,r){const n=t?e=>this._rpcCore.state.queryStorageAt(e,t):e=>this._rpcCore.state.queryStorageAt(e);return this._retrieveMapKeys(e,t,r).pipe((0,d.switchMap)((e=>e.length?(0,d.combineLatest)((0,m.arrayChunk)(e,250).map(n)).pipe((0,d.map)((t=>(0,m.arrayFlatten)(t).map(((t,r)=>[e[r],t]))))):(0,d.of)([]))))}},{key:"_retrieveMapEntriesPaged",value:function(e,t,r){const n=t?e=>this._rpcCore.state.queryStorageAt(e,t):e=>this._rpcCore.state.queryStorageAt(e);return this._retrieveMapKeysPaged(e,t,r).pipe((0,d.switchMap)((e=>e.length?n(e).pipe((0,d.map)((t=>t.map(((t,r)=>[e[r],t]))))):(0,d.of)([]))))}},{key:"_decorateDeriveRx",value:function(e){var t,r,n,i;const o=null==(t=this._runtimeVersion)?void 0:t.specName.toString(),a=(0,h.getAvailableDerives)((0,f.default)(this,j)[j],this._rx,(0,m.objectSpread)({},this._options.derives,null==(r=this._options.typesBundle)||null==(n=r.spec)||null==(i=n[o||""])?void 0:i.derives));return(0,x.decorateDeriveSections)(e,a)}},{key:"_decorateDerive",value:function(e){return(0,x.decorateDeriveSections)(e,this._rx.derive)}}]),l}(k.Events);t.Decorate=R},77261:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(29399)),s=n(r(40426)),u=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.Events=void 0;var c=u(r(44967)),f=(0,s.default)("eventemitter");let l=function(){function e(){(0,i.default)(this,e),Object.defineProperty(this,f,{writable:!0,value:new c.default})}return(0,o.default)(e,[{key:"emit",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return(0,a.default)(this,f)[f].emit(e,...r)}},{key:"on",value:function(e,t){return(0,a.default)(this,f)[f].on(e,t),this}},{key:"off",value:function(e,t){return(0,a.default)(this,f)[f].removeListener(e,t),this}},{key:"once",value:function(e,t){return(0,a.default)(this,f)[f].once(e,t),this}}]),e}();t.Events=l},87247:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.Getters=void 0;var c=r(63783),f=r(14635);function l(e){if(void 0===e)throw new Error("Api interfaces needs to be initialized before using, wait for 'isReady'");return e}let d=function(e){(0,a.default)(d,e);var t,r,n=(t=d,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function d(){return(0,i.default)(this,d),n.apply(this,arguments)}return(0,o.default)(d,[{key:"call",get:function(){return l(this._call)}},{key:"consts",get:function(){return l(this._consts)}},{key:"derive",get:function(){return l(this._derive)}},{key:"errors",get:function(){return l(this._errors)}},{key:"events",get:function(){return l(this._events)}},{key:"extrinsicVersion",get:function(){return this._extrinsicType}},{key:"genesisHash",get:function(){return l(this._genesisHash)}},{key:"isConnected",get:function(){return this._isConnected.getValue()}},{key:"libraryInfo",get:function(){return`${c.packageInfo.name} v${c.packageInfo.version}`}},{key:"query",get:function(){return l(this._query)}},{key:"queryMulti",get:function(){return l(this._queryMulti)}},{key:"rpc",get:function(){return l(this._rpc)}},{key:"runtimeChain",get:function(){return l(this._runtimeChain)}},{key:"runtimeMetadata",get:function(){return l(this._runtimeMetadata)}},{key:"runtimeVersion",get:function(){return l(this._runtimeVersion)}},{key:"rx",get:function(){return l(this._rx)}},{key:"stats",get:function(){return this._rpcCore.provider.stats}},{key:"type",get:function(){return this._type}},{key:"tx",get:function(){return l(this._extrinsics)}},{key:"findCall",value:function(e){return(0,f.findCall)(this.registry,e)}},{key:"findError",value:function(e){return(0,f.findError)(this.registry,e)}}]),d}(r(26174).Init);t.Getters=d},26174:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(66115)),s=n(r(61655)),u=n(r(94993)),c=n(r(73808));var f=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.Init=void 0;var l=f(r(29399)),d=f(r(40426)),h=r(72872),p=r(26700),b=r(7086),y=r(86879),g=r(34070),m=r(52554);const v=(0,y.logger)("api/init");function w(e){return e.toString()}var _=(0,d.default)("atLast"),x=(0,d.default)("healthTimer"),O=(0,d.default)("registries"),k=(0,d.default)("updateSub"),P=(0,d.default)("waitingRegistries"),S=(0,d.default)("onProviderConnect"),A=(0,d.default)("onProviderDisconnect"),E=(0,d.default)("onProviderError");let M=function(e){(0,s.default)(f,e);var t,r,n=(t=f,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,c.default)(t);if(r){var i=(0,c.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,u.default)(this,e)});function f(e,t,r){var o;return(0,i.default)(this,f),o=n.call(this,e,t,r),Object.defineProperty((0,a.default)(o),E,{value:B}),Object.defineProperty((0,a.default)(o),A,{value:T}),Object.defineProperty((0,a.default)(o),S,{value:j}),Object.defineProperty((0,a.default)(o),_,{writable:!0,value:null}),Object.defineProperty((0,a.default)(o),x,{writable:!0,value:null}),Object.defineProperty((0,a.default)(o),O,{writable:!0,value:[]}),Object.defineProperty((0,a.default)(o),k,{writable:!0,value:null}),Object.defineProperty((0,a.default)(o),P,{writable:!0,value:{}}),o.registry.setKnownTypes(e),e.source?(0,l.default)((0,a.default)(o),O)[O]=(0,l.default)(e.source,O)[O]:o.registerTypes(e.types),o._rpc=o._decorateRpc(o._rpcCore,o._decorateMethod),o._rx.rpc=o._decorateRpc(o._rpcCore,o._rxDecorateMethod),o.supportMulti&&(o._queryMulti=o._decorateMulti(o._decorateMethod),o._rx.queryMulti=o._decorateMulti(o._rxDecorateMethod)),o._rx.signer=e.signer,o._rpcCore.setRegistrySwap((e=>o.getBlockRegistry(e))),o._rpcCore.setResolveBlockHash((e=>(0,h.firstValueFrom)(o._rpcCore.chain.getBlockHash(e)))),o.hasSubscriptions?(o._rpcCore.provider.on("disconnected",(()=>(0,l.default)((0,a.default)(o),A)[A]())),o._rpcCore.provider.on("error",(e=>(0,l.default)((0,a.default)(o),E)[E](e))),o._rpcCore.provider.on("connected",(()=>(0,l.default)((0,a.default)(o),S)[S]()))):o._options.noInitWarn||v.warn("Api will be available in a limited mode since the provider does not support subscriptions"),o._rpcCore.provider.isConnected&&(0,l.default)((0,a.default)(o),S)[S](),o}return(0,o.default)(f,[{key:"_initRegistry",value:function(e,t,r,n,i){e.clearCache(),e.setChainProperties(i||this.registry.getChainProperties()),e.setKnownTypes(this._options),e.register((0,b.getSpecTypes)(e,t,r.specName,r.specVersion)),e.setHasher((0,b.getSpecHasher)(e,t,r.specName)),e.knownTypes.typesBundle&&(e.knownTypes.typesAlias=(0,b.getSpecAlias)(e,t,r.specName)),e.setMetadata(n,void 0,(0,y.objectSpread)({},(0,b.getSpecExtensions)(e,t,r.specName),this._options.signedExtensions))}},{key:"_getDefaultRegistry",value:function(){return(0,y.assertReturn)((0,l.default)(this,O)[O].find((e=>{let{isDefault:t}=e;return t})),"Initialization error, cannot find the default registry")}},{key:"at",value:async function(e,t){const r=(0,y.u8aToU8a)(e),n=(0,y.u8aToHex)(r),i=await this.getBlockRegistry(r,t);return(0,l.default)(this,_)[_]&&(0,l.default)(this,_)[_][0]===n||((0,l.default)(this,_)[_]=[n,this._createDecorated(i,!0,null,r).decoratedApi]),(0,l.default)(this,_)[_][1]}},{key:"_createBlockRegistry",value:async function(e,t,r){const n=new p.TypeRegistry(e),i=new p.Metadata(n,await(0,h.firstValueFrom)(this._rpcCore.state.getMetadata.raw(t.parentHash)));this._initRegistry(n,this._runtimeChain,r,i);const o={counter:0,lastBlockHash:e,metadata:i,registry:n,runtimeVersion:r};return(0,l.default)(this,O)[O].push(o),o}},{key:"_cacheBlockRegistryProgress",value:function(e,t){let r=(0,l.default)(this,P)[P][e];return(0,y.isUndefined)(r)&&(r=(0,l.default)(this,P)[P][e]=new Promise(((r,n)=>{t().then((t=>{delete(0,l.default)(this,P)[P][e],r(t)})).catch((t=>{delete(0,l.default)(this,P)[P][e],n(t)}))}))),r}},{key:"_getBlockRegistryViaVersion",value:function(e,t){if(t){const r=(0,l.default)(this,O)[O].find((e=>{let{runtimeVersion:{specName:r,specVersion:n}}=e;return r.eq(t.specName)&&n.eq(t.specVersion)}));if(r)return r.counter++,r.lastBlockHash=e,r}return null}},{key:"_getBlockRegistryViaHash",value:async function(e){if(!this._genesisHash||!this._runtimeVersion)throw new Error("Cannot retrieve data on an uninitialized chain");const t=this.registry.createType("HeaderPartial",this._genesisHash.eq(e)?{number:y.BN_ZERO,parentHash:this._genesisHash}:await(0,h.firstValueFrom)(this._rpcCore.chain.getHeader.raw(e)));if(t.parentHash.isEmpty)throw new Error("Unable to retrieve header and parent from supplied hash");const[r,n]=(0,b.getUpgradeVersion)(this._genesisHash,t.number),i=this.registry.createType("RuntimeVersionPartial",await(0,h.firstValueFrom)(this._rpcCore.state.getRuntimeVersion.raw(t.parentHash)));return this._getBlockRegistryViaVersion(e,i)||await this._cacheBlockRegistryProgress(i.toHex(),(()=>this._createBlockRegistry(e,t,i)))}},{key:"getBlockRegistry",value:async function(e,t){return(0,l.default)(this,O)[O].find((t=>{let{lastBlockHash:r}=t;return r&&(0,y.u8aEq)(r,e)}))||this._getBlockRegistryViaVersion(e,t)||await this._cacheBlockRegistryProgress((0,y.u8aToHex)(e),(()=>this._getBlockRegistryViaHash(e)))}},{key:"_loadMeta",value:async function(){var e;return!!this._isReady||(this._unsubscribeUpdates(),[this._genesisHash,this._runtimeMetadata]=null!=(e=this._options.source)&&e._isReady?await this._metaFromSource(this._options.source):await this._metaFromChain(this._options.metadata),this._initFromMeta(this._runtimeMetadata))}},{key:"_metaFromSource",value:async function(e){this._extrinsicType=e.extrinsicVersion,this._runtimeChain=e.runtimeChain,this._runtimeVersion=e.runtimeVersion;const t=Object.keys(e.rpc),r=[];for(let n=0;n<t.length;n++){const i=t[n],o=Object.keys(e.rpc[i]);for(let e=0;e<o.length;e++)r.push(`${i}_${o[e]}`)}return this._filterRpc(r,(0,b.getSpecRpc)(this.registry,e.runtimeChain,e.runtimeVersion.specName)),[e.genesisHash,e.runtimeMetadata]}},{key:"_subscribeUpdates",value:function(){!(0,l.default)(this,k)[k]&&this.hasSubscriptions&&((0,l.default)(this,k)[k]=this._rpcCore.state.subscribeRuntimeVersion().pipe((0,h.switchMap)((e=>{var t;return null!=(t=this._runtimeVersion)&&t.specVersion.eq(e.specVersion)?(0,h.of)(!1):this._rpcCore.state.getMetadata().pipe((0,h.map)((t=>{v.log(`Runtime version updated to spec=${e.specVersion.toString()}, tx=${e.transactionVersion.toString()}`),this._runtimeMetadata=t,this._runtimeVersion=e,this._rx.runtimeVersion=e;const r=this._getDefaultRegistry();return r.metadata=t,r.runtimeVersion=e,this._initRegistry(this.registry,this._runtimeChain,e,t),this._injectMetadata(r,!0),!0})))}))).subscribe())}},{key:"_metaFromChain",value:async function(e){const[t,r,n,i,o,a]=await Promise.all([(0,h.firstValueFrom)(this._rpcCore.chain.getBlockHash(0)),(0,h.firstValueFrom)(this._rpcCore.state.getRuntimeVersion()),(0,h.firstValueFrom)(this._rpcCore.system.chain()),(0,h.firstValueFrom)(this._rpcCore.system.properties()),(0,h.firstValueFrom)(this._rpcCore.rpc.methods()),e?Promise.resolve(null):(0,h.firstValueFrom)(this._rpcCore.state.getMetadata())]);this._runtimeChain=n,this._runtimeVersion=r,this._rx.runtimeVersion=r;const s=`${t.toHex()||"0x"}-${r.specVersion.toString()}`,u=a||(e&&e[s]?new p.Metadata(this.registry,e[s]):await(0,h.firstValueFrom)(this._rpcCore.state.getMetadata()));return this._initRegistry(this.registry,n,r,u,i),this._filterRpc(o.methods.map(w),(0,b.getSpecRpc)(this.registry,n,r.specName)),this._subscribeUpdates(),(0,l.default)(this,O)[O].length||(0,l.default)(this,O)[O].push({counter:0,isDefault:!0,metadata:u,registry:this.registry,runtimeVersion:r}),u.getUniqTypes(this._options.throwOnUnknown||!1),[t,u]}},{key:"_initFromMeta",value:function(e){return this._extrinsicType=e.asLatest.extrinsic.version.toNumber(),this._rx.extrinsicType=this._extrinsicType,this._rx.genesisHash=this._genesisHash,this._rx.runtimeVersion=this._runtimeVersion,this._injectMetadata(this._getDefaultRegistry(),!0),this._rx.derive=this._decorateDeriveRx(this._rxDecorateMethod),this._derive=this._decorateDerive(this._decorateMethod),!0}},{key:"_subscribeHealth",value:function(){(0,l.default)(this,x)[x]=this.hasSubscriptions?setInterval((()=>{(0,h.firstValueFrom)(this._rpcCore.system.health.raw()).catch((()=>{}))}),1e4):null}},{key:"_unsubscribeHealth",value:function(){(0,l.default)(this,x)[x]&&(clearInterval((0,l.default)(this,x)[x]),(0,l.default)(this,x)[x]=null)}},{key:"_unsubscribeUpdates",value:function(){(0,l.default)(this,k)[k]&&((0,l.default)(this,k)[k].unsubscribe(),(0,l.default)(this,k)[k]=null)}},{key:"_unsubscribe",value:function(){this._unsubscribeHealth(),this._unsubscribeUpdates()}}]),f}(m.Decorate);async function j(){this._isConnected.next(!0),this.emit("connected");try{const e=!1===this._options.initWasm||await(0,g.cryptoWaitReady)(),t=await this._loadMeta();this._subscribeHealth(),t&&!this._isReady&&e&&(this._isReady=!0,this.emit("ready",this))}catch(e){const t=new Error(`FATAL: Unable to initialize the API: ${e.message}`);v.error(t),this.emit("error",t)}}function T(){this._isConnected.next(!1),this._unsubscribeHealth(),this.emit("disconnected")}function B(e){this.emit("error",e)}t.Init=M},14635:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findCall=function(e,t){return e.findMetaCall((0,n.u8aToU8a)(t))},t.findError=function(e,t){return e.findMetaError((0,n.u8aToU8a)(t))};var n=r(86879)},7510:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.ApiBase=void 0;var c=r(86879);let f=function(e){(0,a.default)(f,e);var t,r,n=(t=f,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function f(){(0,i.default)(this,f);let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;return n.call(this,e,t,r)}return(0,o.default)(f,[{key:"connect",value:function(){return this._rpcCore.connect()}},{key:"disconnect",value:function(){return this._unsubscribe(),this._rpcCore.disconnect()}},{key:"setSigner",value:function(e){this._rx.signer=e}},{key:"sign",value:async function(e,t){let{signer:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if((0,c.isString)(e)){const n=r||this._rx.signer;if(!n||!n.signRaw)throw new Error("No signer exists with a signRaw interface. You possibly need to pass through an explicit keypair for the origin so it can be used for signing.");return(await n.signRaw((0,c.objectSpread)({type:"bytes"},t,{address:e}))).signature}return(0,c.u8aToHex)(e.sign((0,c.u8aToU8a)(t.data)))}}]),f}(r(87247).Getters);t.ApiBase=f},10133:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={Keyring:!0,HttpProvider:!0,ScProvider:!0,WsProvider:!0,packageInfo:!0,SubmittableResult:!0};Object.defineProperty(t,"HttpProvider",{enumerable:!0,get:function(){return o.HttpProvider}}),Object.defineProperty(t,"Keyring",{enumerable:!0,get:function(){return i.Keyring}}),Object.defineProperty(t,"ScProvider",{enumerable:!0,get:function(){return o.ScProvider}}),Object.defineProperty(t,"SubmittableResult",{enumerable:!0,get:function(){return s.SubmittableResult}}),Object.defineProperty(t,"WsProvider",{enumerable:!0,get:function(){return o.WsProvider}}),Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return a.packageInfo}}),r(34328);var i=r(42946),o=r(51290),a=r(63783),s=r(40194),u=r(76853);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var c=r(19981);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}))},23618:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(9243),i=r(16202),o=r(12130),a=r(10686),s=r(21038),u=[n.packageInfo,i.packageInfo,o.packageInfo,a.packageInfo,s.packageInfo];t.default=u},97178:(e,t,r)=>{"use strict";var n=r(64836),i=r(86879),o=n(r(23618)),a=r(63783);(0,i.detectPackage)(a.packageInfo,null,o.default)},13855:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(97178);var n=r(10133);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}))},63783:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/api",path:"/",type:"cjs",version:"9.13.2"}},62063:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(66115)),s=n(r(61655)),u=n(r(94993)),c=n(r(41588)),f=n(r(73808)),l=n(r(29399)),d=n(r(40426));Object.defineProperty(t,"__esModule",{value:!0}),t.ApiPromise=void 0;var h=r(86879),p=r(7510),b=r(87720),y=r(39158),g=(0,d.default)("isReadyPromise"),m=(0,d.default)("isReadyOrErrorPromise");let v=function(e){(0,s.default)(d,e);var t,r,n=(t=d,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,f.default)(t);if(r){var i=(0,f.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,u.default)(this,e)});function d(e){var t,r,o,s;return(0,i.default)(this,d),s=n.call(this,e,"promise",y.toPromiseMethod),Object.defineProperty((0,a.default)(s),g,{writable:!0,value:void 0}),Object.defineProperty((0,a.default)(s),m,{writable:!0,value:void 0}),(0,l.default)((0,a.default)(s),g)[g]=new Promise((e=>{(0,c.default)((t=(0,a.default)(s),(0,f.default)(d.prototype)),"once",t).call(t,"ready",(()=>e((0,a.default)(s))))})),(0,l.default)((0,a.default)(s),m)[m]=new Promise(((e,t)=>{const n=(0,y.promiseTracker)(e,t);(0,c.default)((r=(0,a.default)(s),(0,f.default)(d.prototype)),"once",r).call(r,"ready",(()=>n.resolve((0,a.default)(s)))),(0,c.default)((o=(0,a.default)(s),(0,f.default)(d.prototype)),"once",o).call(o,"error",(e=>n.reject(e)))})),s}return(0,o.default)(d,[{key:"isReady",get:function(){return(0,l.default)(this,g)[g]}},{key:"isReadyOrError",get:function(){return(0,l.default)(this,m)[m]}},{key:"clone",value:function(){return new d((0,h.objectSpread)({},this._options,{source:this}))}},{key:"combineLatest",value:async function(e,t){const r=new b.Combinator(e,t);return()=>{r.unsubscribe()}}}],[{key:"create",value:function(e){const t=new d(e);return e&&e.throwOnConnect?t.isReadyOrError:(t.isReadyOrError.catch((()=>{})),t.isReady)}}]),d}(p.ApiBase);t.ApiPromise=v},87720:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(29399)),s=n(r(40426));Object.defineProperty(t,"__esModule",{value:!0}),t.Combinator=void 0;var u=r(86879),c=(0,s.default)("allHasFired"),f=(0,s.default)("callback"),l=(0,s.default)("fired"),d=(0,s.default)("fns"),h=(0,s.default)("isActive"),p=(0,s.default)("results"),b=(0,s.default)("subscriptions");let y=function(){function e(t,r){(0,i.default)(this,e),Object.defineProperty(this,c,{writable:!0,value:!1}),Object.defineProperty(this,f,{writable:!0,value:void 0}),Object.defineProperty(this,l,{writable:!0,value:[]}),Object.defineProperty(this,d,{writable:!0,value:[]}),Object.defineProperty(this,h,{writable:!0,value:!0}),Object.defineProperty(this,p,{writable:!0,value:[]}),Object.defineProperty(this,b,{writable:!0,value:[]}),(0,a.default)(this,f)[f]=r,(0,a.default)(this,b)[b]=t.map((async(e,t)=>{const[r,...n]=Array.isArray(e)?e:[e];return(0,a.default)(this,l)[l].push(!1),(0,a.default)(this,d)[d].push(r),r(...n,this._createCallback(t))}))}return(0,o.default)(e,[{key:"_allHasFired",value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){return(0,a.default)(this,c)[c]||((0,a.default)(this,c)[c]=0===(0,a.default)(this,l)[l].filter((e=>!e)).length),(0,a.default)(this,c)[c]}))},{key:"_createCallback",value:function(e){return t=>{(0,a.default)(this,l)[l][e]=!0,(0,a.default)(this,p)[p][e]=t,this._triggerUpdate()}}},{key:"_triggerUpdate",value:function(){if((0,a.default)(this,h)[h]&&(0,u.isFunction)((0,a.default)(this,f)[f])&&this._allHasFired())try{(0,a.default)(this,f)[f]((0,a.default)(this,p)[p])}catch(e){}}},{key:"unsubscribe",value:function(){(0,a.default)(this,h)[h]&&((0,a.default)(this,h)[h]=!1,(0,a.default)(this,b)[b].forEach((async e=>{try{const t=await e;(0,u.isFunction)(t)&&t()}catch(e){}})))}}]),e}();t.Combinator=y},39158:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.promiseTracker=o,t.toPromiseMethod=function(e,t){const r=!!(t&&t.methodName&&t.methodName.includes("subscribe"));return function(){for(var a=arguments.length,s=new Array(a),u=0;u<a;u++)s[u]=arguments[u];const[c,f]=function(e,t){const r=e.slice(),n=e.length&&(0,i.isFunction)(e[e.length-1])?r.pop():void 0;if(t&&!(0,i.isFunction)(n))throw new Error("Expected a callback to be passed with subscriptions");return[r,n]}(s,r);return f?function(e,t,r){return new Promise(((a,s)=>{const u=o(a,s),c=e(...t).pipe((0,n.catchError)((e=>u.reject(e))),(0,n.tap)((()=>u.resolve((()=>c.unsubscribe()))))).subscribe((e=>{(0,i.nextTick)((()=>r(e)))}))}))}(e,c,f):function(e,t){return new Promise(((r,a)=>{const s=o(r,a),u=e(...t).pipe((0,n.catchError)((e=>s.reject(e)))).subscribe((e=>{s.resolve(e),(0,i.nextTick)((()=>u.unsubscribe()))}))}))}((null==t?void 0:t.overrideNoSub)||e,c)}};var n=r(72872),i=r(86879);function o(e,t){let r=!1;return{reject:e=>(r||(r=!0,t(e)),n.EMPTY),resolve:t=>{r||(r=!0,e(t))}}}},76853:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ApiPromise",{enumerable:!0,get:function(){return n.ApiPromise}}),Object.defineProperty(t,"toPromiseMethod",{enumerable:!0,get:function(){return i.toPromiseMethod}});var n=r(62063),i=r(39158)},93636:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(66115)),s=n(r(61655)),u=n(r(94993)),c=n(r(41588)),f=n(r(73808)),l=n(r(29399)),d=n(r(40426));Object.defineProperty(t,"__esModule",{value:!0}),t.ApiRx=void 0;var h=r(72872),p=r(86879),b=r(7510),y=r(36630),g=(0,d.default)("isReadyRx");let m=function(e){(0,s.default)(d,e);var t,r,n=(t=d,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,f.default)(t);if(r){var i=(0,f.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,u.default)(this,e)});function d(e){var t,r;return(0,i.default)(this,d),r=n.call(this,e,"rxjs",y.toRxMethod),Object.defineProperty((0,a.default)(r),g,{writable:!0,value:void 0}),(0,l.default)((0,a.default)(r),g)[g]=(0,h.from)(new Promise((e=>{(0,c.default)((t=(0,a.default)(r),(0,f.default)(d.prototype)),"on",t).call(t,"ready",(()=>e((0,a.default)(r))))}))),r}return(0,o.default)(d,[{key:"isReady",get:function(){return(0,l.default)(this,g)[g]}},{key:"clone",value:function(){return new d((0,p.objectSpread)({},this._options,{source:this}))}}],[{key:"create",value:function(e){return new d(e).isReady}}]),d}(b.ApiBase);t.ApiRx=m},36630:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toRxMethod=function(e){return e}},19981:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ApiRx",{enumerable:!0,get:function(){return n.ApiRx}}),Object.defineProperty(t,"toRxMethod",{enumerable:!0,get:function(){return i.toRxMethod}});var n=r(93636),i=r(36630)},37836:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728));Object.defineProperty(t,"__esModule",{value:!0}),t.SubmittableResult=void 0;const a=e=>e;function s(e,t,r,n){return e.filter((e=>{let{event:n}=e;return t===n.section&&r.includes(n.method)})).map((e=>n(e)))}function u(e){let{event:{data:[t]}}=e;return t}function c(e){let{event:{data:t,method:r}}=e;return"ExtrinsicSuccess"===r?t[0]:t[1]}let f=function(){function e(t){(0,i.default)(this,e);let{blockNumber:r,dispatchError:n,dispatchInfo:o,events:a,internalError:f,status:l,txHash:d,txIndex:h}=t;this.dispatchError=n||function(){return s(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],"system",["ExtrinsicFailed"],u)[0]}(a),this.dispatchInfo=o||function(){return s(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],"system",["ExtrinsicFailed","ExtrinsicSuccess"],c)[0]}(a),this.events=a||[],this.internalError=f,this.status=l,this.txHash=d,this.txIndex=h,this.blockNumber=r}return(0,o.default)(e,[{key:"isCompleted",get:function(){return this.isError||this.status.isInBlock||this.status.isFinalized}},{key:"isError",get:function(){return this.status.isDropped||this.status.isFinalityTimeout||this.status.isInvalid||this.status.isUsurped}},{key:"isFinalized",get:function(){return this.status.isFinalized}},{key:"isInBlock",get:function(){return this.status.isInBlock}},{key:"isWarning",get:function(){return this.status.isRetracted}},{key:"filterRecords",value:function(e,t){return s(this.events,e,Array.isArray(t)?t:[t],a)}},{key:"findRecord",value:function(e,t){return this.filterRecords(e,t)[0]}},{key:"toHuman",value:function(e){var t,r,n;return{dispatchError:null==(t=this.dispatchError)?void 0:t.toHuman(),dispatchInfo:null==(r=this.dispatchInfo)?void 0:r.toHuman(),events:this.events.map((t=>t.toHuman(e))),internalError:null==(n=this.internalError)?void 0:n.message.toString(),status:this.status.toHuman(e)}}}]),e}();t.SubmittableResult=f},11010:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(38416)),o=n(r(56690)),a=n(r(89728)),s=n(r(66115)),u=n(r(61655)),c=n(r(94993)),f=n(r(41588)),l=n(r(73808)),d=n(r(29399)),h=n(r(40426));function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}Object.defineProperty(t,"__esModule",{value:!0}),t.createClass=function(e){let{api:t,apiType:r,blockHash:n,decorateMethod:i}=e;const p=t.registry.createClass("Extrinsic");var k=(0,h.default)("ignoreStatusCb"),P=(0,h.default)("transformResult"),S=(0,h.default)("observeSign"),A=(0,h.default)("observeStatus"),E=(0,h.default)("observeSend"),M=(0,h.default)("observeSubscribe"),j=(0,h.default)("signViaSigner"),T=(0,h.default)("updateSigner");return function(e){(0,u.default)(I,e);var h,p,B=(h=I,p=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=(0,l.default)(h);if(p){var r=(0,l.default)(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return(0,c.default)(this,e)});function I(e,n){var i,a;return(0,o.default)(this,I),a=B.call(this,e,n,{version:t.extrinsicType}),Object.defineProperty((0,s.default)(a),k,{writable:!0,value:void 0}),Object.defineProperty((0,s.default)(a),P,{writable:!0,value:w}),Object.defineProperty((0,s.default)(a),S,{writable:!0,value:(e,r)=>{const n=(0,m.isKeyringPair)(e)?e.address:e.toString(),i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,g.isBn)(e)||(0,g.isNumber)(e)?{nonce:e}:e}(r);return t.derive.tx.signingInfo(n,i.nonce,i.era).pipe((0,y.first)(),(0,y.mergeMap)((async r=>{const o=_(t,a.registry,i,r);let u=-1;return(0,m.isKeyringPair)(e)?a.sign(e,o):u=await(0,d.default)((0,s.default)(a),j)[j](n,o,r.header),{options:o,updateId:u}})))}}),Object.defineProperty((0,s.default)(a),A,{writable:!0,value:(e,r)=>{if(!r.isFinalized&&!r.isInBlock)return(0,y.of)((0,d.default)((0,s.default)(a),P)[P](new v.SubmittableResult({status:r,txHash:e})));const n=r.isInBlock?r.asInBlock:r.asFinalized;return t.derive.tx.events(n).pipe((0,y.map)((t=>{let{block:n,events:i}=t;return(0,d.default)((0,s.default)(a),P)[P](new v.SubmittableResult(b(b({},(0,m.filterEvents)(e,n,i,r)),{},{status:r,txHash:e})))})),(0,y.catchError)((t=>(0,y.of)((0,d.default)((0,s.default)(a),P)[P](new v.SubmittableResult({internalError:t,status:r,txHash:e}))))))}}),Object.defineProperty((0,s.default)(a),E,{writable:!0,value:e=>t.rpc.author.submitExtrinsic((0,s.default)(a)).pipe((0,y.tap)((t=>{(0,d.default)((0,s.default)(a),T)[T](t,e)})))}),Object.defineProperty((0,s.default)(a),M,{writable:!0,value:e=>{const r=a.hash;return t.rpc.author.submitAndWatchExtrinsic((0,s.default)(a)).pipe((0,y.switchMap)((e=>(0,d.default)((0,s.default)(a),A)[A](r,e))),(0,y.tap)((t=>{(0,d.default)((0,s.default)(a),T)[T](t,e)})))}}),Object.defineProperty((0,s.default)(a),j,{writable:!0,value:async(e,r,n)=>{const o=r.signer||t.signer;if(!o)throw new Error("No signer specified, either via api.setSigner or via sign options. You possibly need to pass through an explicit keypair for the origin so it can be used for signing.");const u=a.registry.createTypeUnsafe("SignerPayload",[(0,g.objectSpread)({},r,{address:e,blockNumber:n?n.number:0,method:a.method})]);let c;if((0,g.isFunction)(o.signPayload))c=await o.signPayload(u.toPayload());else{if(!(0,g.isFunction)(o.signRaw))throw new Error("Invalid signer interface, it should implement either signPayload or signRaw (or both)");c=await o.signRaw(u.toRaw())}return(0,f.default)((i=(0,s.default)(a),(0,l.default)(I.prototype)),"addSignature",i).call(i,e,c.signature,u.toPayload()),c.id}}),Object.defineProperty((0,s.default)(a),T,{writable:!0,value:(e,r)=>{if(r&&-1!==r.updateId){const{options:n,updateId:i}=r,o=n.signer||t.signer;o&&(0,g.isFunction)(o.update)&&o.update(i,e)}}}),(0,d.default)((0,s.default)(a),k)[k]="rxjs"===r,a}return(0,a.default)(I,[{key:"hasDryRun",get:function(){var e;return(0,g.isFunction)(null==(e=t.rpc.system)?void 0:e.dryRun)}},{key:"hasPaymentInfo",get:function(){var e;return(0,g.isFunction)(null==(e=t.call.transactionPaymentApi)?void 0:e.queryInfo)}},{key:"dryRun",value:function(e,r){if(!this.hasDryRun)throw new Error("The system.dryRun RPC call is not available in your environment");return n||(0,g.isString)(r)||(0,g.isU8a)(r)?i((()=>t.rpc.system.dryRun(this.toHex(),n||r))):i((()=>(0,d.default)(this,S)[S](e,r).pipe((0,y.switchMap)((()=>t.rpc.system.dryRun(this.toHex()))))))()}},{key:"paymentInfo",value:function(e,r){if(!this.hasPaymentInfo)throw new Error("The transactionPaymentApi.queryInfo runtime call is not available in your environment");if(n||(0,g.isString)(r)||(0,g.isU8a)(r))return i((()=>t.callAt(n||r).pipe((0,y.switchMap)((e=>{const t=this.toU8a();return e.transactionPaymentApi.queryInfo(t,t.length)})))));const[o]=x(r),a=(0,m.isKeyringPair)(e)?e.address:e.toString();return i((()=>t.derive.tx.signingInfo(a,o.nonce,o.era).pipe((0,y.first)(),(0,y.switchMap)((e=>{const r=_(t,this.registry,o,e),n=O(t,r,{}),i=this.isSigned?t.tx(this).signFake(a,n).toU8a():this.signFake(a,n).toU8a();return t.call.transactionPaymentApi.queryInfo(i,i.length)})))))()}},{key:"send",value:function(e){const r=t.hasSubscriptions&&((0,d.default)(this,k)[k]||!!e);return i(r?(0,d.default)(this,M)[M]:(0,d.default)(this,E)[E])(e)}},{key:"signAsync",value:function(e,t){return i((()=>(0,d.default)(this,S)[S](e,t).pipe((0,y.map)((()=>this)))))()}},{key:"signAndSend",value:function(e,r,n){const[o,a]=x(r,n),s=t.hasSubscriptions&&((0,d.default)(this,k)[k]||!!a);return i((()=>(0,d.default)(this,S)[S](e,o).pipe((0,y.switchMap)((e=>s?(0,d.default)(this,M)[M](e):(0,d.default)(this,E)[E](e))))))(a)}},{key:"withResultTransform",value:function(e){return(0,d.default)(this,P)[P]=e,this}}]),I}(p)};var y=r(72872),g=r(86879),m=r(52737),v=r(37836);const w=e=>e;function _(e,t,r,n){let{header:i,mortalLength:o,nonce:a}=n;if(!i){if(r.era&&!r.blockHash)throw new Error("Expected blockHash to be passed alongside non-immortal era options");return(0,g.isNumber)(r.era)&&(delete r.era,delete r.blockHash),O(e,r,{nonce:a})}return O(e,r,{blockHash:i.hash,era:t.createTypeUnsafe("ExtrinsicEra",[{current:i.number,period:r.era||o}]),nonce:a})}function x(e,t){let r={};return(0,g.isFunction)(e)?t=e:r=(0,g.objectSpread)({},e),[r,t]}function O(e,t,r){return(0,g.objectSpread)({blockHash:e.genesisHash,genesisHash:e.genesisHash},t,r,{runtimeVersion:e.runtimeVersion,signedExtensions:e.registry.signedExtensions,version:e.extrinsicType})}},66430:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSubmittable=function(e,t,r,i,o){const a=(0,n.createClass)({api:t,apiType:e,blockHash:o,decorateMethod:r});return e=>new a(i||t.registry,e)};var n=r(11010)},40194:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"SubmittableResult",{enumerable:!0,get:function(){return i.SubmittableResult}}),Object.defineProperty(t,"createSubmittable",{enumerable:!0,get:function(){return n.createSubmittable}});var n=r(66430),i=r(37836)},80137:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.augmentObject=function(e,t,r){arguments.length>3&&void 0!==arguments[3]&&arguments[3]&&(0,n.objectClear)(r),e&&Object.keys(r).length&&(s(e,"modules",function(e,t){const r=Object.keys(e),n=Object.keys(t);return[u(r,n),u(n,r)]}(t,r)),s(e,"calls",function(e,t){return[c(t,e),c(e,t)]}(t,r)));const i=Object.keys(t);for(let e=0;e<i.length;e++){const o=i[e],a=t[o];r[o]||(r[o]={}),(0,n.lazyMethods)(r[o],Object.keys(a),(e=>a[e]))}return r};var n=r(86879);const i=(0,n.logger)("api/augment");function o(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return t.length?` ${t.length} ${e}${r.length?" and":""}`:""}function a(e,t){return t.length?`\n\t${e.padStart(7)}: ${t.sort().join(", ")}`:""}function s(e,t,r){let[n,s]=r;(n.length||s.length)&&i.warn(`api.${e}: Found${o("added",n,s)}${o("removed",s)} ${t}:${a("added",n)}${a("removed",s)}`)}function u(e,t){return e.filter((e=>!t.includes(e)))}function c(e,t){const r=Object.keys(e),n=(i=Object.keys(t),o=r,i.filter((e=>o.includes(e))));var i,o;const a=[];for(let r=0;r<n.length;r++){const i=n[r],o=Object.keys(e[i]),s=Object.keys(t[i]);for(let e=0;e<s.length;e++){const t=s[e];o.includes(t)||a.push(`${i}.${t}`)}}return a}},68550:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decorateDeriveSections=function(e,t){const r=e=>Object.keys(t[e]),i=(r,n)=>e(t[r][n]),o={},a=Object.keys(t);for(let e=0;e<a.length;e++)(0,n.lazyDeriveSection)(o,a[e],r,i);return o};var n=r(48985)},63705:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filterEvents=function(e,t,r,o){let{block:{extrinsics:a,header:s}}=t;for(const[t,i]of a.entries())if(i.hash.eq(e))return{blockNumber:(0,n.isCompact)(s.number)?s.number.unwrap():s.number,events:r.filter((e=>{let{phase:r}=e;return r.isApplyExtrinsic&&r.asApplyExtrinsic.eqn(t)})),txIndex:t};if(o.isInBlock){const t=a.map((e=>e.hash.toHex()));i.l.warn(`block ${s.hash.toHex()}: Unable to find extrinsic ${e.toHex()} inside ${t.join(", ")}`)}return{}};var n=r(86879),i=r(10632)},52737:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={filterEvents:!0,isKeyringPair:!0,l:!0};Object.defineProperty(t,"filterEvents",{enumerable:!0,get:function(){return o.filterEvents}}),Object.defineProperty(t,"isKeyringPair",{enumerable:!0,get:function(){return a.isKeyringPair}}),Object.defineProperty(t,"l",{enumerable:!0,get:function(){return s.l}});var i=r(68550);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=r(63705),a=r(13305),s=r(10632)},13305:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isKeyringPair=function(e){return(0,n.isFunction)(e.sign)};var n=r(86879)},10632:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.l=void 0;const n=(0,r(86879).logger)("api/util");t.l=n},80062:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extractStorageArgs=function(e,t,r){const o=r.filter((e=>!(0,n.isUndefined)(e)));if(t.meta.type.isPlain){if(0!==o.length)throw new Error(`${i(e,t,[])} does not take any arguments, ${o.length} found`)}else{const{hashers:r,key:n}=t.meta.type.asMap,a=1===r.length?[n]:e.lookup.getSiType(n).def.asTuple.map((e=>e));if(o.length!==a.length)throw new Error(`${i(e,t,a)} is a map, requiring ${a.length} arguments, ${o.length} found`)}return[t,o]};var n=r(86879);function i(e,t,r){let{lookup:n}=e,{method:i,section:o}=t;return`${o}.${i}(${r.map((e=>n.getTypeDef(e).type)).join(", ")})`}},61816:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.accountId=function(e,t){return(0,a.memo)(e,(e=>{const r=(0,i.isU8a)(e)?e:(0,o.decodeAddress)((e||"").toString());if(r.length>8)return(0,n.of)(t.registry.createType("AccountId",r));const a=t.registry.createType("AccountIndex",r);return t.derive.accounts.indexToId(a.toString()).pipe((0,n.map)((e=>(0,i.assertReturn)(e,"Unable to retrieve accountId"))))}))};var n=r(72872),i=r(86879),o=r(34070),a=r(58105)},33326:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._flags=function(e,t){return(0,o.memo)(e,(()=>{var e,r,o,a,s;const u=[void 0,[],[],[],void 0],c=[null==(e=t.query.phragmenElection||t.query.electionsPhragmen||t.query.elections)?void 0:e.members,null==(r=t.query.council)?void 0:r.members,null==(o=t.query.technicalCommittee)?void 0:o.members,null==(a=t.query.society)?void 0:a.members,null==(s=t.query.sudo)?void 0:s.key],f=c.filter((e=>e));return f.length?t.queryMulti(f).pipe((0,n.map)((e=>{let t=-1;for(let r=0;r<c.length;r++)(0,i.isFunction)(c[r])&&(u[r]=e[++t]);return u}))):(0,n.of)(u)}))},t.flags=function(e,t){return(0,o.memo)(e,(e=>t.derive.accounts._flags().pipe((0,n.map)((t=>function(e,t){let[r,n,i,o,a]=t;const s=e&&e.toString(),u=e=>e.toString()===s;return{isCouncil:((null==r?void 0:r.map((e=>Array.isArray(e)?e[0]:e.who)))||n||[]).some(u),isSociety:(o||[]).some(u),isSudo:(null==a?void 0:a.toString())===s,isTechCommittee:(i||[]).some(u)}}(e,t))))))};var n=r(72872),i=r(86879),o=r(58105)},891:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.idAndIndex=function(e,t){return(0,a.memo)(e,(e=>{try{const r=(0,i.isU8a)(e)?e:(0,o.decodeAddress)((e||"").toString());if(r.length>8){const e=t.registry.createType("AccountId",r);return t.derive.accounts.idToIndex(e).pipe((0,n.map)((t=>[e,t])))}const a=t.registry.createType("AccountIndex",r);return t.derive.accounts.indexToId(a.toString()).pipe((0,n.map)((e=>[e,a])))}catch(e){return(0,n.of)([void 0,void 0])}}))};var n=r(72872),i=r(86879),o=r(34070),a=r(58105)},70909:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.idToIndex=function(e,t){return(0,i.memo)(e,(e=>t.derive.accounts.indexes().pipe((0,n.map)((t=>(t||{})[e.toString()])))))};var n=r(72872),i=r(58105)},90522:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._identity=function(e,t){return(0,o.memo)(e,(e=>{var r;return e&&null!=(r=t.query.identity)&&r.identityOf?(0,n.combineLatest)([t.query.identity.identityOf(e),t.query.identity.superOf(e)]):(0,n.of)([void 0,void 0])}))},t.hasIdentity=void 0,t.hasIdentityMulti=function(e,t){return(0,o.memo)(e,(e=>{var r;return null!=(r=t.query.identity)&&r.identityOf?(0,n.combineLatest)([t.query.identity.identityOf.multi(e),t.query.identity.superOf.multi(e)]).pipe((0,n.map)((e=>{let[t,r]=e;return t.map(((e,t)=>{const n=r[t],o=n&&n.isSome?n.unwrap()[0].toString():void 0;let a;if(e&&e.isSome){const t=s(e.unwrap().info.display);t&&!(0,i.isHex)(t)&&(a=t)}return{display:a,hasIdentity:!(!a&&!o),parentId:o}}))}))):(0,n.of)(e.map((()=>({hasIdentity:!1}))))}))},t.identity=function(e,t){return(0,o.memo)(e,(e=>t.derive.accounts._identity(e).pipe((0,n.switchMap)((e=>{let[r,i]=e;return function(e,t,r){if(null!=t&&t.isSome)return(0,n.of)([t,void 0]);if(null!=r&&r.isSome){const t=r.unwrap();return(0,n.combineLatest)([e.derive.accounts._identity(t[0]).pipe((0,n.map)((e=>{let[t]=e;return t}))),(0,n.of)(t)])}return(0,n.of)([void 0,void 0])}(t,r,i)})),(0,n.map)((e=>{let[t,r]=e;return function(e,t){if(null==e||!e.isSome)return{judgements:[]};const{info:r,judgements:n}=e.unwrap(),i=s(r.display);return{display:t&&s(t[1])||i,displayParent:t&&i,email:s(r.email),image:s(r.image),judgements:n,legal:s(r.legal),other:(o=r.additional,o.reduce(((e,t)=>{let[r,n]=t;const i=s(r),o=s(n);return i&&o&&(e[i]=o),e}),{})),parent:t&&t[0],pgp:r.pgpFingerprint.unwrapOr(a).toHex(),riot:s(r.riot),twitter:s(r.twitter),web:s(r.web)};var o}(t,r)})))))};var n=r(72872),i=r(86879),o=r(58105);const a={toHex:()=>{}};function s(e){return e.isRaw?(0,i.u8aToString)(e.asRaw.toU8a(!0)):e.isNone?void 0:e.toHex()}const u=(0,o.firstMemo)(((e,t)=>e.derive.accounts.hasIdentityMulti([t])));t.hasIdentity=u},43538:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(61816);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}));var i=r(33326);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=r(891);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=r(70909);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var s=r(90522);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var u=r(84264);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var c=r(37965);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var f=r(99969);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))}))},84264:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.indexToId=function(e,t){return(0,i.memo)(e,(e=>t.query.indices?t.query.indices.accounts(e).pipe((0,n.map)((e=>e.unwrapOr([])[0]))):(0,n.of)(void 0)))};var n=r(72872),i=r(58105)},37965:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.indexes=function(e,t){return(0,i.memo)(e,(()=>o?(0,n.of)(o):(t.query.indices?function(e){return e.query.indices.accounts.entries().pipe((0,n.map)((t=>t.reduce(((t,r)=>{let[n,i]=r;return i.isSome&&(t[i.unwrap()[0].toString()]=e.registry.createType("AccountIndex",n.args[0])),t}),{}))))}(t).pipe((0,n.startWith)({})):(0,n.of)({})).pipe((0,n.map)((e=>(o=e,e))))))};var n=r(72872),i=r(58105);let o=null},99969:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.info=function(e,t){return(0,o.memo)(e,(e=>t.derive.accounts.idAndIndex(e).pipe((0,n.switchMap)((e=>{let[r,i]=e;return(0,n.combineLatest)([(0,n.of)({accountId:r,accountIndex:i}),t.derive.accounts.identity(r),a(t,r)])})),(0,n.map)((e=>{let[{accountId:t,accountIndex:r},n,i]=e;return{accountId:t,accountIndex:r,identity:n,nickname:i}})))))};var n=r(72872),i=r(86879),o=r(58105);function a(e,t){var r;return(t&&null!=(r=e.query.nicks)&&r.nameOf?e.query.nicks.nameOf(t):(0,n.of)(void 0)).pipe((0,n.map)((t=>null!=t&&t.isSome?(0,i.u8aToString)(t.unwrap()[0]).substring(0,e.consts.nicks.maxLength.toNumber()):void 0)))}},58439:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.proposals=t.proposalHashes=t.proposalCount=t.proposal=t.prime=t.members=t.hasProposals=void 0;var n=r(31199);const i=(0,n.members)("allianceMotion");t.members=i;const o=(0,n.hasProposals)("allianceMotion");t.hasProposals=o;const a=(0,n.proposal)("allianceMotion");t.proposal=a;const s=(0,n.proposalCount)("allianceMotion");t.proposalCount=s;const u=(0,n.proposalHashes)("allianceMotion");t.proposalHashes=u;const c=(0,n.proposals)("allianceMotion");t.proposals=c;const f=(0,n.prime)("allianceMotion");t.prime=f},10774:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getIds=function(e,t){const r=(0,a.getQueryInterface)(t);return(0,o.memo)(e,(e=>{const t=e.map((e=>(0,i.bnToBn)(e)));return t.length?r.listBags.multi(t).pipe((0,n.map)((e=>function(e,t){const r=e.map(((e,r)=>({bag:t[r].unwrapOr(null),id:e,key:e.toString()}))).sort(((e,t)=>t.id.cmp(e.id))),n=r.length-1;return r.map(((e,t)=>(0,i.objectSpread)(e,{bagLower:t===n?i.BN_ZERO:r[t+1].id,bagUpper:e.id,index:t})))}(t,e)))):(0,n.of)([])}))},t.all=function(e,t){const r=(0,a.getQueryInterface)(t);return(0,o.memo)(e,(()=>r.listBags.keys().pipe((0,n.switchMap)((e=>t.derive.bagsList._getIds(e.map((e=>{let{args:[t]}=e;return t}))))),(0,n.map)((e=>e.filter((e=>{let{bag:t}=e;return t})))))))},t.get=function(e,t){return(0,o.memo)(e,(e=>t.derive.bagsList._getIds([(0,i.bnToBn)(e)]).pipe((0,n.map)((e=>e[0])))))};var n=r(72872),i=r(86879),o=r(58105),a=r(17957)},27280:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.expand=function(e,t){return(0,o.memo)(e,(e=>t.derive.bagsList.listNodes(e.bag).pipe((0,n.map)((t=>(0,i.objectSpread)({nodes:t},e))))))},t.getExpanded=function(e,t){return(0,o.memo)(e,(e=>t.derive.bagsList.get(e).pipe((0,n.switchMap)((e=>t.derive.bagsList.expand(e))))))};var n=r(72872),i=r(86879),o=r(58105)},36600:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(10774);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}));var i=r(27280);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=r(49015);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}))},49015:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.listNodes=function(e,t){return(0,o.memo)(e,(e=>e&&e.head.isSome?function(e,t){const r=new n.BehaviorSubject(t),o=(0,a.getQueryInterface)(e);return r.pipe((0,n.switchMap)((e=>o.listNodes(e))),(0,n.tap)((e=>{(0,i.nextTick)((()=>{e.isSome&&e.value.next.isSome?r.next(e.unwrap().next.unwrap()):r.complete()}))})),(0,n.toArray)(),(0,n.map)((e=>e.map((e=>e.unwrap())))))}(t,e.head.unwrap()):(0,n.of)([])))};var n=r(72872),i=r(86879),o=r(58105),a=r(17957)},17957:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getQueryInterface=function(e){return e.query.voterBagsList||e.query.bagsList||e.query.voterList}},32391:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.account=function(e,t){const r=t.registry.getModuleInstances(t.runtimeVersion.specName,"balances"),d=r&&"balances"!==r[0];return(0,o.memo)(e,(e=>t.derive.accounts.accountId(e).pipe((0,n.switchMap)((e=>{var o,s,h;return e?(0,n.combineLatest)([(0,n.of)(e),d?f(t,e,r):(0,i.isFunction)(null==(o=t.query.system)?void 0:o.account)?l(t,e):(0,i.isFunction)(null==(s=t.query.balances)?void 0:s.account)?f(t,e):(0,i.isFunction)(null==(h=t.query.balances)?void 0:h.freeBalance)?u(t,e):c(t,e)]):(0,n.of)([t.registry.createType("AccountId"),[t.registry.createType("Index"),[[a(t),a(t),a(t),a(t)]]]])})),(0,n.map)((e=>function(e,t){let[r,[n,[o,...a]]]=t;return(0,i.objectSpread)({accountId:r,accountNonce:n,additional:a.map((t=>s(e,t)))},s(e,o))}(t,e))))))};var n=r(72872),i=r(86879),o=r(58105);function a(e){return e.registry.createType("Balance")}function s(e,t){let[r,n,i,o]=t;const a=e.registry.createType("Balance",r.toBn());return{freeBalance:r,frozenFee:i,frozenMisc:o,reservedBalance:n,votingBalance:a}}function u(e,t){return(0,n.combineLatest)([e.query.balances.freeBalance(t),e.query.balances.reservedBalance(t),e.query.system.accountNonce(t)]).pipe((0,n.map)((t=>{let[r,n,i]=t;return[i,[[r,n,a(e),a(e)]]]})))}function c(e,t){const r=t=>[t,[[a(e),a(e),a(e),a(e)]]];return(0,i.isFunction)(e.query.system.account)?e.query.system.account(t).pipe((0,n.map)((e=>{let{nonce:t}=e;return r(t)}))):(0,i.isFunction)(e.query.system.accountNonce)?e.query.system.accountNonce(t).pipe((0,n.map)((e=>r(e)))):(0,n.of)(r(e.registry.createType("Index")))}function f(e,t){const r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:["balances"]).map((t=>{var r,n;return(null==(r=e.derive[t])?void 0:r.customAccount)||(null==(n=e.query[t])?void 0:n.account)})).filter((e=>(0,i.isFunction)(e))),o=(e,t)=>[e,t.map((e=>{let{feeFrozen:t,free:r,miscFrozen:n,reserved:i}=e;return[r,i,t,n]}))];return r.length?(0,i.isFunction)(e.query.system.account)?(0,n.combineLatest)([e.query.system.account(t),...r.map((e=>e(t)))]).pipe((0,n.map)((e=>{let[{nonce:t},...r]=e;return o(t,r)}))):(0,n.combineLatest)([e.query.system.accountNonce(t),...r.map((e=>e(t)))]).pipe((0,n.map)((e=>{let[t,...r]=e;return o(t,r)}))):c(e,t)}function l(e,t){return e.query.system.account(t).pipe((0,n.map)((t=>{const r=t.nonce?t.data:t[1],n=t.nonce||t[0];if(!r||r.isEmpty)return[n,[[a(e),a(e),a(e),a(e)]]];const{feeFrozen:i,free:o,miscFrozen:s,reserved:u}=r;return[n,[[o,u,i,s]]]})))}},42721:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.all=function(e,t){const r=t.registry.getModuleInstances(t.runtimeVersion.specName,"balances");return(0,o.memo)(e,(e=>{var o,a;return(0,n.combineLatest)([t.derive.balances.account(e),(0,i.isFunction)(null==(o=t.query.system)?void 0:o.account)||(0,i.isFunction)(null==(a=t.query.balances)?void 0:a.account)?l(t,e,r):u(t,e)]).pipe((0,n.switchMap)((e=>{let[r,i]=e;return(0,n.combineLatest)([(0,n.of)(r),(0,n.of)(i),t.derive.chain.bestNumber()])})),(0,n.map)((e=>function(e,t){const[r,[n,o,a],u]=t,c=s(e,u,r,o[0]);return(0,i.objectSpread)(c,function(e,t,r){const n=r||[],o=!t.vestingLocked.isZero(),a=n.map((t=>{let{locked:r,perBlock:n,startingBlock:o}=t;return e.gt(o)?(0,i.bnMin)(r,n.mul(e.sub(o))):i.BN_ZERO})),s=a.reduce(((e,t)=>e.iadd(t)),new i.BN(0)),u=n.reduce(((e,t)=>{let{locked:r}=t;return e.iadd(r)}),new i.BN(0));return{isVesting:o,vestedBalance:s,vestedClaimable:o?t.vestingLocked.sub(u.sub(s)):i.BN_ZERO,vesting:n.map(((e,t)=>{let{locked:r,perBlock:n,startingBlock:i}=e;return{endBlock:r.div(n).iadd(i),locked:r,perBlock:n,startingBlock:i,vested:a[t]}})).filter((e=>{let{locked:t}=e;return!t.isZero()})),vestingTotal:u}}(u,c,n),{accountId:r.accountId,accountNonce:r.accountNonce,additional:o.slice(1).map(((t,n)=>s(e,u,r.additional[n],t))),namedReserves:a})}(t,e))))}))};var n=r(72872),i=r(86879),o=r(58105);const a="0x76657374696e6720";function s(e,t,r,n){const{allLocked:o,lockedBalance:s,lockedBreakdown:u,vestingLocked:c}=function(e,t,r){let n=e.registry.createType("Balance"),o=[],s=e.registry.createType("Balance"),u=!1;if(Array.isArray(r)){o=r.filter((e=>{let{until:r}=e;return!r||t&&r.gt(t)})),u=o.some((e=>{let{amount:t}=e;return t&&t.isMax()})),s=e.registry.createType("Balance",o.filter((e=>{let{id:t}=e;return t.eq(a)})).reduce(((e,t)=>{let{amount:r}=t;return e.iadd(r)}),new i.BN(0)));const c=o.filter((e=>{let{amount:t}=e;return t&&!t.isMax()}));c.length&&(n=e.registry.createType("Balance",(0,i.bnMax)(...c.map((e=>{let{amount:t}=e;return t})))))}return{allLocked:u,lockedBalance:n,lockedBreakdown:o,vestingLocked:s}}(e,t,n);return(0,i.objectSpread)({},r,{availableBalance:e.registry.createType("Balance",o?0:(0,i.bnMax)(new i.BN(0),null!=r&&r.freeBalance?r.freeBalance.sub(s):new i.BN(0))),lockedBalance:s,lockedBreakdown:u,vestingLocked:c})}function u(e,t){return(0,n.combineLatest)([e.query.balances.locks(t),e.query.balances.vesting(t)]).pipe((0,n.map)((t=>{let[r,n]=t,i=null;if(n.isSome){const{offset:t,perBlock:r,startingBlock:o}=n.unwrap();i=e.registry.createType("VestingInfo",{locked:t,perBlock:r,startingBlock:o})}return[i?[i]:null,[r],[]]})))}const c=e=>!!e;function f(e){return[e.map((e=>!e)),e.filter(c)]}function l(e,t){var r;let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["balances"];const[o,a]=f(i.map((t=>{var r,n;return(null==(r=e.derive[t])?void 0:r.customLocks)||(null==(n=e.query[t])?void 0:n.locks)}))),[s,u]=f(i.map((t=>{var r;return null==(r=e.query[t])?void 0:r.reserves})));return(0,n.combineLatest)([null!=(r=e.query.vesting)&&r.vesting?e.query.vesting.vesting(t):(0,n.of)(e.registry.createType("Option<VestingInfo>")),a.length?(0,n.combineLatest)(a.map((e=>e(t)))):(0,n.of)([]),u.length?(0,n.combineLatest)(u.map((e=>e(t)))):(0,n.of)([])]).pipe((0,n.map)((t=>{let[r,n,i]=t,a=-1,u=-1;const c=r.unwrapOr(null);return[c?Array.isArray(c)?c:[c]:null,o.map((t=>t?e.registry.createType("Vec<BalanceLock>"):n[++a])),s.map((t=>t?e.registry.createType("Vec<PalletBalancesReserveData>"):i[++u]))]})))}},94322:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={votingBalance:!0,all:!0};Object.defineProperty(t,"all",{enumerable:!0,get:function(){return i.all}}),t.votingBalance=void 0;var i=r(42721),o=r(32391);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=r(36207);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));const s=i.all;t.votingBalance=s},36207:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.votingBalances=function(e,t){return(0,i.memo)(e,(e=>e&&e.length?(0,n.combineLatest)(e.map((e=>t.derive.balances.account(e)))):(0,n.of)([])))};var n=r(72872),i=r(58105)},50464:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bounties=function(e,t){const r=t.query.bounties||t.query.treasury;return(0,i.memo)(e,(()=>r.bounties?(0,n.combineLatest)([r.bountyCount(),t.query.council?t.query.council.proposalCount():(0,n.of)(0)]).pipe((0,n.switchMap)((()=>(0,n.combineLatest)([r.bounties.keys(),t.derive.council?t.derive.council.proposals():(0,n.of)([])]))),(0,n.switchMap)((e=>{let[i,a]=e;const s=i.map((e=>{let{args:[t]}=e;return t}));return(0,n.combineLatest)([r.bounties.multi(s),r.bountyDescriptions.multi(s),(0,n.of)(s),(0,n.of)((0,o.filterBountiesProposals)(t,a))])})),(0,n.map)(a)):(0,n.of)(a([[],[],[],[]]))))};var n=r(72872),i=r(58105),o=r(62220);function a(e){let[t,r,n,i]=e;const o=[];return t.forEach(((e,t)=>{e.isSome&&o.push({bounty:e.unwrap(),description:r[t].unwrapOrDefault().toUtf8(),index:n[t],proposals:i.filter((e=>e.proposal&&n[t].eq(e.proposal.args[0])))})})),o}},62220:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filterBountiesProposals=function(e,t){const r=e.tx.bounties?e.tx.bounties:e.tx.treasury,n=[r.approveBounty,r.closeBounty,r.proposeCurator,r.unassignCurator];return t.filter((e=>n.find((t=>e.proposal&&t.is(e.proposal)))))}},97424:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(50464);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}))},77417:(e,t,r)=>{"use strict";var n=r(64836)(r(38416));function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){(0,n.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}Object.defineProperty(t,"__esModule",{value:!0});var a={getAvailableDerives:!0,lazyDeriveSection:!0};t.getAvailableDerives=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return o(o({},l(e,t,s.derive)),l(e,t,r))},Object.defineProperty(t,"lazyDeriveSection",{enumerable:!0,get:function(){return u.lazyDeriveSection}});var s=r(2212);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(a,e)||e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var u=r(58105),c=r(44101);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(a,e)||e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));const f={allianceMotion:{instances:["allianceMotion"],methods:[]},bagsList:{instances:["voterBagsList","voterList","bagsList"],methods:[],withDetect:!0},contracts:{instances:["contracts"],methods:[]},council:{instances:["council"],methods:[],withDetect:!0},crowdloan:{instances:["crowdloan"],methods:[]},democracy:{instances:["democracy"],methods:[]},elections:{instances:["phragmenElection","electionsPhragmen","elections","council"],methods:[],withDetect:!0},imOnline:{instances:["imOnline"],methods:[]},membership:{instances:["membership"],methods:[]},parachains:{instances:["parachains","registrar"],methods:[]},session:{instances:["session"],methods:[]},society:{instances:["society"],methods:[]},staking:{instances:["staking"],methods:["erasRewardPoints"]},technicalCommittee:{instances:["technicalCommittee"],methods:[],withDetect:!0},treasury:{instances:["treasury"],methods:[]}};function l(e,t,r){const n={},i=Object.keys(r),o=Object.keys(t.query),a=t.runtimeVersion.specName,s=e=>o.includes(e),c=e=>function(e,t,r){return e.registry.getModuleInstances(t,r)||[]}(t,a,e).some(s),l=e=>Object.keys(r[e]),d=(n,i)=>r[n][i](e,t),h=e=>{return!f[e]||f[e].instances.some(s)&&(!f[e].methods.length||f[e].methods.every((r=f[e].instances,e=>r.some((r=>o.includes(r)&&t.query[r][e])))))||f[e].withDetect&&f[e].instances.some(c);var r};for(let e=0;e<i.length;e++){const t=i[e];h(t)&&(0,u.lazyDeriveSection)(n,t,l,d)}return n}},91835:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bestNumber=void 0;const n=(0,r(56395).createBlockNumberDerive)((e=>e.rpc.chain.subscribeNewHeads()));t.bestNumber=n},19048:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bestNumberFinalized=void 0;const n=(0,r(56395).createBlockNumberDerive)((e=>e.rpc.chain.subscribeFinalizedHeads()));t.bestNumberFinalized=n},19457:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bestNumberLag=function(e,t){return(0,i.memo)(e,(()=>(0,n.combineLatest)([t.derive.chain.bestNumber(),t.derive.chain.bestNumberFinalized()]).pipe((0,n.map)((e=>{let[r,n]=e;return t.registry.createType("BlockNumber",r.sub(n))})))))};var n=r(72872),i=r(58105)},84023:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBlock=function(e,t){return(0,o.memo)(e,(e=>(0,n.combineLatest)([t.rpc.chain.getBlock(e),t.queryAt(e)]).pipe((0,n.switchMap)((e=>{let[t,r]=e;return(0,n.combineLatest)([(0,n.of)(t),r.system.events(),(0,a.getAuthorDetails)(t.block.header,r)])})),(0,n.map)((e=>{let[t,r,[,n,o]]=e;return(0,i.createSignedBlockExtended)(r.registry,t,r,n,o)})))))};var n=r(72872),i=r(44101),o=r(58105),a=r(56395)},58875:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBlockByNumber=function(e,t){return(0,i.memo)(e,(e=>t.rpc.chain.getBlockHash(e).pipe((0,n.switchMap)((e=>t.derive.chain.getBlock(e))))))};var n=r(72872),i=r(58105)},91895:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getHeader=function(e,t){return(0,o.memo)(e,(e=>(0,n.combineLatest)([t.rpc.chain.getHeader(e),t.queryAt(e)]).pipe((0,n.switchMap)((e=>{let[t,r]=e;return(0,a.getAuthorDetails)(t,r)})),(0,n.map)((e=>{let[t,r,n]=e;return(0,i.createHeaderExtended)((r||t).registry,t,r,n)})))))};var n=r(72872),i=r(44101),o=r(58105),a=r(56395)},9569:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(91835);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}));var i=r(19048);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=r(19457);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=r(91895);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var s=r(84023);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var u=r(58875);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var c=r(68700);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var f=r(26596);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))}));var l=r(36570);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}))},68700:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getHeaderRange=function(e,t){return(0,i.memo)(e,(function(e,r){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return t.rpc.chain.getHeader(e).pipe((0,n.switchMap)((e=>e.parentHash.eq(r)?(0,n.of)([e,...i]):t.derive.chain._getHeaderRange(e.parentHash,r,[e,...i]))))}))},t.subscribeFinalizedHeads=function(e,t){return(0,i.memo)(e,(()=>{let e=null;return t.rpc.chain.subscribeFinalizedHeads().pipe((0,n.switchMap)((r=>{const i=e,o=r.parentHash;return e=r.createdAtHash=r.hash,null===i||o.eq(i)?(0,n.of)(r):t.derive.chain._getHeaderRange(o,i,[r]).pipe((0,n.switchMap)((e=>(0,n.from)(e))))})))}))};var n=r(72872),i=r(58105)},26596:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.subscribeNewBlocks=function(e,t){return(0,i.memo)(e,(()=>t.derive.chain.subscribeNewHeads().pipe((0,n.switchMap)((e=>t.derive.chain.getBlock(e.createdAtHash||e.hash))))))};var n=r(72872),i=r(58105)},36570:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.subscribeNewHeads=function(e,t){return(0,o.memo)(e,(()=>t.rpc.chain.subscribeNewHeads().pipe((0,n.switchMap)((e=>(0,n.combineLatest)([(0,n.of)(e),t.queryAt(e.hash)]))),(0,n.switchMap)((e=>{let[t,r]=e;return(0,a.getAuthorDetails)(t,r)})),(0,n.map)((e=>{let[t,r,n]=e;return t.createdAtHash=t.hash,(0,i.createHeaderExtended)(t.registry,t,r,n)})))))};var n=r(72872),i=r(44101),o=r(58105),a=r(56395)},56395:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createBlockNumberDerive=function(e){return(t,r)=>(0,i.memo)(t,(()=>e(r).pipe((0,n.map)(i.unwrapBlockNumber))))},t.getAuthorDetails=function(e,t){if(t.authorMapping&&t.authorMapping.mappingWithDeposit){const r=e.digest.logs[0]&&(e.digest.logs[0].isConsensus&&e.digest.logs[0].asConsensus[1]||e.digest.logs[0].isPreRuntime&&e.digest.logs[0].asPreRuntime[1]);if(r)return(0,n.combineLatest)([(0,n.of)(e),t.session?t.session.validators():(0,n.of)(null),t.authorMapping.mappingWithDeposit(r).pipe((0,n.map)((e=>e.unwrapOr({account:null}).account)))])}return(0,n.combineLatest)([(0,n.of)(e),t.session?t.session.validators():(0,n.of)(null),(0,n.of)(null)])};var n=r(72872),i=r(58105)},57114:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callMethod=function(e,t){return r=>s(r,(r=>()=>(0,i.isFunction)(null==r?void 0:r[e])?r[e]():(0,n.of)(t)))},t.getInstance=a,t.withSection=s;var n=r(72872),i=r(86879),o=r(58105);function a(e,t){const r=e.registry.getModuleInstances(e.runtimeVersion.specName,t),n=r&&r.length?r[0]:t;return e.query[n]}function s(e,t){return(r,n)=>(0,o.memo)(r,t(a(n,e),n,r))}},31199:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(47047);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}));var i=r(24688);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=r(93069);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}))},47047:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.members=void 0;const n=(0,r(57114).callMethod)("members",[]);t.members=n},24688:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prime=function(e){return(0,o.withSection)(e,(e=>()=>(0,i.isFunction)(null==e?void 0:e.prime)?e.prime().pipe((0,n.map)((e=>e.unwrapOr(null)))):(0,n.of)(null)))};var n=r(72872),i=r(86879),o=r(57114)},93069:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasProposals=function(e){return(0,a.withSection)(e,(e=>()=>(0,n.of)((0,i.isFunction)(null==e?void 0:e.proposals))))},t.proposal=function(e){return(0,a.withSection)(e,((e,t)=>r=>(0,i.isFunction)(null==e?void 0:e.proposals)?(0,o.firstObservable)(s(t,e,[r])):(0,n.of)(null)))},t.proposalHashes=t.proposalCount=void 0,t.proposals=function(e){return(0,a.withSection)(e,((t,r)=>()=>r.derive[e].proposalHashes().pipe((0,n.switchMap)((e=>s(r,t,e))))))};var n=r(72872),i=r(86879),o=r(58105),a=r(57114);function s(e,t,r){return((0,i.isFunction)(null==t?void 0:t.proposals)&&r.length?(0,n.combineLatest)([(0,n.of)(r),t.proposalOf.multi(r).pipe((0,n.catchError)((()=>(0,n.of)(r.map((()=>null)))))),t.voting.multi(r)]):(0,n.of)([[],[],[]])).pipe((0,n.map)((t=>function(e,t){let[r,n,i]=t;return n.map(((t,n)=>({hash:e.registry.createType("Hash",r[n]),proposal:t&&t.isSome?t.unwrap():null,votes:i[n].unwrapOr(null)})))}(e,t))))}const u=(0,a.callMethod)("proposalCount",null);t.proposalCount=u;const c=(0,a.callMethod)("proposals",[]);t.proposalHashes=c},52745:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fees=function(e,t){return(0,i.memo)(e,(()=>function(e){return(0,n.of)([e.consts.contracts.callBaseFee||e.registry.createType("Balance"),e.consts.contracts.contractFee||e.registry.createType("Balance"),e.consts.contracts.creationFee||e.registry.createType("Balance"),e.consts.contracts.transactionBaseFee||e.registry.createType("Balance"),e.consts.contracts.transactionByteFee||e.registry.createType("Balance"),e.consts.contracts.transferFee||e.registry.createType("Balance"),e.consts.contracts.rentByteFee,e.consts.contracts.rentDepositOffset,e.consts.contracts.surchargeReward,e.consts.contracts.tombstoneDeposit])}(t).pipe((0,n.map)((e=>{let[t,r,n,i,o,a,s,u,c,f]=e;return{callBaseFee:t,contractFee:r,creationFee:n,rentByteFee:s,rentDepositOffset:u,surchargeReward:c,tombstoneDeposit:f,transactionBaseFee:i,transactionByteFee:o,transferFee:a}})))))};var n=r(72872),i=r(58105)},421:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(52745);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}))},40992:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={members:!0,hasProposals:!0,proposal:!0,proposalCount:!0,proposalHashes:!0,proposals:!0,prime:!0};t.proposals=t.proposalHashes=t.proposalCount=t.proposal=t.prime=t.members=t.hasProposals=void 0;var i=r(31199),o=r(52502);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=r(8543);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));const s=(0,i.members)("council");t.members=s;const u=(0,i.hasProposals)("council");t.hasProposals=u;const c=(0,i.proposal)("council");t.proposal=c;const f=(0,i.proposalCount)("council");t.proposalCount=f;const l=(0,i.proposalHashes)("council");t.proposalHashes=l;const d=(0,i.proposals)("council");t.proposals=d;const h=(0,i.prime)("council");t.prime=h},52502:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.votes=function(e,t){const r=t.query.phragmenElection||t.query.electionsPhragmen||t.query.elections;return(0,i.memo)(e,(()=>r?r.stakeOf?function(e,t){return(0,n.combineLatest)([a(t),s(t)]).pipe((0,n.map)((t=>{let[r,n]=t;const i=[];return n.forEach((t=>{let[r,n]=t;i.push([r,{stake:e.registry.createType("Balance"),votes:n}])})),r.forEach((e=>{let[t,r]=e;const n=i.find((e=>{let[r]=e;return r.eq(t)}));n?n[1].stake=r:i.push([t,{stake:r,votes:[]}])})),i})))}(t,r):function(e){return e.voting.entries().pipe((0,n.map)((e=>e.map((e=>{let[{args:[t]},r]=e;return[t,o(r)?{stake:r.stake,votes:r.votes}:{stake:r[0],votes:r[1]}]})))))}(r):(0,n.of)([])))};var n=r(72872),i=r(58105);function o(e){return!Array.isArray(e)}function a(e){return e.stakeOf.entries().pipe((0,n.map)((e=>e.map((e=>{let[{args:[t]},r]=e;return[t,r]})))))}function s(e){return e.votesOf.entries().pipe((0,n.map)((e=>e.map((e=>{let[{args:[t]},r]=e;return[t,r]})))))}},8543:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.votesOf=function(e,t){return(0,i.memo)(e,(e=>t.derive.council.votes().pipe((0,n.map)((r=>(r.find((t=>{let[r]=t;return r.eq(e)}))||[null,{stake:t.registry.createType("Balance"),votes:[]}])[1])))))};var n=r(72872),i=r(58105)},54984:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.childKey=function(e,t){return(0,a.memo)(e,(e=>t.query.crowdloan.funds(e).pipe((0,n.map)((e=>{return e.isSome?(t=e.unwrap(),(0,i.u8aToHex)((0,i.u8aConcat)(":child_storage:default:",(0,o.blake2AsU8a)((0,i.u8aConcat)("crowdloan",(t.fundIndex||t.trieIndex).toU8a()))))):null;var t})))))};var n=r(72872),i=r(86879),o=r(34070),a=r(58105)},73041:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contributions=function(e,t){return(0,o.memo)(e,(e=>t.derive.crowdloan.childKey(e).pipe((0,n.switchMap)((r=>r?function(e,t,r){return(0,n.combineLatest)([c(e,t,r),u(e,t)]).pipe((0,n.map)((e=>{let[t,{added:r,blockHash:n,removed:i}]=e;const o={};return t.forEach((e=>{o[e]=!0})),r.forEach((e=>{o[e]=!0})),i.forEach((e=>{delete o[e]})),{blockHash:n,contributorsHex:Object.keys(o)}})))}(t,e,r):(0,n.of)({blockHash:"-",contributorsHex:[]}))))))};var n=r(72872),i=r(86879),o=r(58105),a=r(28509);const s=1e3;function u(e,t){let r=[],i=[];return e.query.system.events().pipe((0,n.switchMap)((e=>{const o=(0,a.extractContributed)(t,e);var s;return o.added.length||o.removed.length?(r=r.concat(...o.added),i=i.concat(...o.removed),(0,n.of)({added:r,addedDelta:o.added,blockHash:(null==(s=e.createdAtHash)?void 0:s.toHex())||"-",removed:i,removedDelta:o.removed})):n.EMPTY})),(0,n.startWith)({added:r,addedDelta:[],blockHash:"-",removed:i,removedDelta:[]}))}function c(e,t,r){return function(e,t){return e.query.system.events().pipe((0,n.switchMap)((e=>{var r;return e.filter((e=>{let{event:{data:[r],method:n,section:i}}=e;return"crowdloan"===i&&["AllRefunded","Dissolved","PartiallyRefunded"].includes(n)&&r.eq(t)})).length?(0,n.of)((null==(r=e.createdAtHash)?void 0:r.toHex())||"-"):n.EMPTY})),(0,n.startWith)("-"))}(e,t).pipe((0,n.switchMap)((()=>(0,i.isFunction)(e.rpc.childstate.getKeysPaged)?function(e,t){const r=new n.BehaviorSubject(void 0);return r.pipe((0,n.switchMap)((r=>e.rpc.childstate.getKeysPaged(t,"0x",s,r))),(0,n.tap)((e=>{(0,i.nextTick)((()=>{e.length===s?r.next(e[s-1].toHex()):r.complete()}))})),(0,n.toArray)(),(0,n.map)((e=>(0,i.arrayFlatten)(e))))}(e,r):e.rpc.childstate.getKeys(r,"0x"))),(0,n.map)((e=>e.map((e=>e.toHex())))))}},40199:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(54984);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}));var i=r(73041);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=r(34720);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}))},34720:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ownContributions=function(e,t){return(0,o.memo)(e,((e,r)=>t.derive.crowdloan.childKey(e).pipe((0,n.switchMap)((o=>o&&r.length?function(e,t,r,o){return(0,n.combineLatest)([s(e,r,o),u(e,t,r,o)]).pipe((0,n.map)((e=>{let[t,r]=e;return(0,i.objectSpread)({},t,r)})))}(t,e,o,r):(0,n.of)({}))))))};var n=r(72872),i=r(86879),o=r(58105),a=r(28509);function s(e,t,r){return(0,n.combineLatest)(r.map((r=>e.rpc.childstate.getStorage(t,r)))).pipe((0,n.map)((t=>t.map((t=>e.registry.createType("Option<StorageData>",t))).map((t=>t.isSome?e.registry.createType("Balance",t.unwrap()):e.registry.createType("Balance"))).reduce(((e,t,n)=>(0,i.objectSpread)(e,{[r[n]]:t})),{}))))}function u(e,t,r,i){return e.query.system.events().pipe((0,n.switchMap)((o=>{const u=(0,a.extractContributed)(t,o),c=i.filter((e=>u.added.includes(e)||u.removed.includes(e)));return c.length?s(e,r,c):n.EMPTY})),(0,n.startWith)({}))}},28509:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extractContributed=function(e,t){var r;return t.filter((t=>{let{event:{data:[,r],method:n,section:i}}=t;return"crowdloan"===i&&["Contributed","Withdrew"].includes(n)&&r.eq(e)})).reduce(((e,t)=>{let{event:{data:[r],method:n}}=t;return"Contributed"===n?e.added.push(r.toHex()):e.removed.push(r.toHex()),e}),{added:[],blockHash:(null==(r=t.createdAtHash)?void 0:r.toHex())||"-",removed:[]})}},23868:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dispatchQueue=function(e,t){return(0,a.memo)(e,(()=>{var e;return(0,o.isFunction)(null==(e=t.query.scheduler)?void 0:e.agenda)?function(e){return function(e){return e.derive.democracy.referendumsFinished().pipe((0,n.switchMap)((()=>e.query.scheduler.agenda.keys())),(0,n.switchMap)((t=>{const r=t.map((e=>{let{args:[t]}=e;return t}));return r.length?(0,n.combineLatest)([(0,n.of)(r),e.query.scheduler.agenda.multi(r).pipe((0,n.catchError)((()=>(0,n.of)(r.map((()=>[]))))))]):(0,n.of)([[],[]])})))}(e).pipe((0,n.switchMap)((t=>{let[r,o]=t;const a=[];return r.forEach(((t,r)=>{(o[r]||[]).filter((e=>e.isSome)).forEach((r=>{const n=r.unwrap();if(n.maybeId.isSome){const r=n.maybeId.unwrap().toHex();if(r.startsWith(u)){const u=n.call instanceof i.Enum?(o=n.call).isInline||o.isLegacy||o.isLookup?(0,s.getImageHashBounded)(n.call):n.call.isHash?n.call.asHash.toHex():n.call.asValue.args[0].toHex():n.call.args[0].toHex();a.push({at:t,imageHash:u,index:e.registry.createType("(u64, ReferendumIndex)",r)[1]})}}var o}))})),(0,n.combineLatest)([(0,n.of)(a),a.length?e.derive.democracy.preimages(a.map((e=>{let{imageHash:t}=e;return t}))):(0,n.of)([])])})),(0,n.map)((e=>{let[t,r]=e;return t.map(((e,t)=>(0,o.objectSpread)({image:r[t]},e)))})))}(t):t.query.democracy.dispatchQueue?function(e){return e.query.democracy.dispatchQueue().pipe((0,n.switchMap)((t=>(0,n.combineLatest)([(0,n.of)(t),e.derive.democracy.preimages(t.map((e=>{let[,t]=e;return t})))]))),(0,n.map)((e=>{let[t,r]=e;return t.map(((e,t)=>{let[n,i,o]=e;return{at:n,image:r[t],imageHash:(0,s.getImageHashBounded)(i),index:o}}))})))}(t):(0,n.of)([])}))};var n=r(72872),i=r(26700),o=r(86879),a=r(58105),s=r(12082);const u=(0,o.stringToHex)("democrac")},90073:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(23868);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}));var i=r(51357);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=r(80767);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=r(60276);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var s=r(99990);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var u=r(73679);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var c=r(73449);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var f=r(64110);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))}));var l=r(10423);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var d=r(47094);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var h=r(37607);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))}))},51357:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.locks=function(e,t){return(0,o.memo)(e,(e=>t.query.democracy.votingOf?t.query.democracy.votingOf(e).pipe((0,n.switchMap)((e=>e.isDirect?function(e,t){let{votes:r}=t;return r.length?e.query.democracy.referendumInfoOf.multi(r.map((e=>{let[t]=e;return t}))).pipe((0,n.map)((t=>r.map(((e,r)=>[e,t[r].unwrapOr(null)])).filter((e=>!!e[1]&&(0,i.isUndefined)(e[1].end)&&e[0][1].isStandard)).map((t=>{let[r,n]=t;return function(e,t,r){let[n,o]=t;const{balance:s,vote:u}=o.asStandard,[c,f]=r.isFinished?function(e,t,r){let{approved:n,end:o}=r;return[o,n.isTrue&&t.isAye||n.isFalse&&t.isNay?o.add((e.consts.democracy.voteLockingPeriod||e.consts.democracy.enactmentPeriod).muln(a[t.conviction.index])):i.BN_ZERO]}(e,u,r.asFinished):[i.BN_ZERO,i.BN_ZERO];return{balance:s,isDelegated:!1,isFinished:r.isFinished,referendumEnd:c,referendumId:n,unlockAt:f,vote:u}}(e,r,n)}))))):(0,n.of)([])}(t,e.asDirect):e.isDelegating?function(e,t){let{balance:r,conviction:i,target:o}=t;return e.derive.democracy.locks(o).pipe((0,n.map)((t=>t.map((t=>{let{isFinished:n,referendumEnd:o,referendumId:s,unlockAt:u,vote:c}=t;return{balance:r,isDelegated:!0,isFinished:n,referendumEnd:o,referendumId:s,unlockAt:u.isZero()?u:o.add((e.consts.democracy.voteLockingPeriod||e.consts.democracy.enactmentPeriod).muln(a[i.index])),vote:e.registry.createType("Vote",{aye:c.isAye,conviction:i})}})))))}(t,e.asDelegating):(0,n.of)([])))):(0,n.of)([])))};var n=r(72872),i=r(86879),o=r(58105);const a=[0,1,2,4,8,16,32]},80767:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nextExternal=function(e,t){return(0,i.memo)(e,(()=>{var e;return null!=(e=t.query.democracy)&&e.nextExternal?t.query.democracy.nextExternal().pipe((0,n.switchMap)((e=>function(e,t){if(t.isNone)return(0,n.of)(null);const[r,i]=t.unwrap();return e.derive.democracy.preimage(r).pipe((0,n.map)((e=>({image:e,imageHash:(0,o.getImageHashBounded)(r),threshold:i}))))}(t,e)))):(0,n.of)(null)}))};var n=r(72872),i=r(58105),o=r(12082)},60276:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.preimage=void 0,t.preimages=function(e,t){return(0,o.memo)(e,(e=>e.length?(0,i.isFunction)(t.query.democracy.preimages)?function(e,t){const r=t.map((e=>(0,a.getImageHashBounded)(e)));return e.query.democracy.preimages.multi(r).pipe((0,n.map)((t=>t.map((t=>function(e,t){if(!t.isNone){if(function(e,t){return!!t&&!e.query.democracy.dispatchQueue}(e,t)){const r=t.unwrap();if(r.isMissing)return;const{data:n,deposit:i,provider:o,since:a}=r.asAvailable;return s(e,[n,o,i,a])}return s(e,t.unwrap())}}(e,t))))))}(t,e):(0,i.isFunction)(t.query.preimage.preimageFor)?function(e,t){const r=t.map((e=>(0,a.getImageHashBounded)(e))),o=e.registry.lookup.getTypeDef(e.query.preimage.preimageFor.creator.meta.type.asMap.key).type;return e.query.preimage.statusFor.multi(r).pipe((0,n.switchMap)((t=>{const a=t.map((e=>e.unwrapOr(null))),s=a.map(((e,t)=>e?"H256"===o?r[t]:e.isRequested?[r[t],e.asRequested.len.unwrapOr(0)]:[r[t],e.asUnrequested.len]:null)).filter((e=>!!e));return e.query.preimage.preimageFor.multi(s).pipe((0,n.map)((t=>{let n=-1;return a.map(((e,i)=>e?[r[i],e,t[++n].unwrapOr(null)]:[r[i],null,null])).map((t=>function(e,t){let[r,n,o]=t;if(!n)return;const[a,s]=n.isUnrequested?n.asUnrequested.deposit:n.asRequested.deposit.unwrapOrDefault();let u;if(o)try{u=e.registry.createType("Call",o.toU8a(!0))}catch(e){console.error(e)}return{at:i.BN_ZERO,balance:s,proposal:u,proposalHash:r,proposer:a}}(e,t)))})))})))}(t,e):(0,n.of)([]):(0,n.of)([])))};var n=r(72872),i=r(86879),o=r(58105),a=r(12082);function s(e,t){let r,[n,i,o,a]=t;try{r=e.registry.createType("Call",n.toU8a(!0))}catch(e){console.error(e)}return{at:a,balance:o,proposal:r,proposer:i}}const u=(0,o.firstMemo)(((e,t)=>e.derive.democracy.preimages([t])));t.preimage=u},99990:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.proposals=function(e,t){return(0,o.memo)(e,(()=>{var e;return(0,i.isFunction)(null==(e=t.query.democracy)?void 0:e.publicProps)?t.query.democracy.publicProps().pipe((0,n.switchMap)((e=>e.length?(0,n.combineLatest)([(0,n.of)(e),t.derive.democracy.preimages(e.map((e=>{let[,t]=e;return t}))),t.query.democracy.depositOf.multi(e.map((e=>{let[t]=e;return t})))]):(0,n.of)([[],[],[]]))),(0,n.map)(s)):(0,n.of)([])}))};var n=r(72872),i=r(86879),o=r(58105),a=r(12082);function s(e){let[t,r,n]=e;return t.filter(((e,t)=>{var r;let[,,i]=e;return!(null==(r=n[t])||!r.isSome||i.isEmpty)})).map(((e,t)=>{let[o,s,u]=e;const c=n[t].unwrap();return(0,i.objectSpread)({image:r[t],imageHash:(0,a.getImageHashBounded)(s),index:o,proposer:u},function(e){return(0,i.isFunction)(e[1].mul)}(c)?{balance:c[1],seconds:c[0]}:{balance:c[0],seconds:c[1]})}))}},73679:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.referendumIds=function(e,t){return(0,i.memo)(e,(()=>{var e;return null!=(e=t.query.democracy)&&e.lowestUnbaked?t.queryMulti([t.query.democracy.lowestUnbaked,t.query.democracy.referendumCount]).pipe((0,n.map)((e=>{let[t,r]=e;return r.gt(t)?[...Array(r.sub(t).toNumber())].map(((e,r)=>t.addn(r))):[]}))):(0,n.of)([])}))};var n=r(72872),i=r(58105)},73449:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.referendums=function(e,t){return(0,o.memo)(e,(()=>t.derive.democracy.referendumsActive().pipe((0,n.switchMap)((e=>e.length?(0,n.combineLatest)([(0,n.of)(e),t.derive.democracy._referendumsVotes(e)]):(0,n.of)([[],[]]))),(0,n.map)((e=>{let[t,r]=e;return t.map(((e,t)=>(0,i.objectSpread)({},e,r[t])))})))))};var n=r(72872),i=r(86879),o=r(58105)},64110:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.referendumsActive=function(e,t){return(0,i.memo)(e,(()=>t.derive.democracy.referendumIds().pipe((0,n.switchMap)((e=>e.length?t.derive.democracy.referendumsInfo(e):(0,n.of)([]))))))};var n=r(72872),i=r(58105)},10423:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.referendumsFinished=function(e,t){return(0,i.memo)(e,(()=>t.derive.democracy.referendumIds().pipe((0,n.switchMap)((e=>t.query.democracy.referendumInfoOf.multi(e))),(0,n.map)((e=>e.map((e=>e.unwrapOr(null))).filter((e=>!!e&&e.isFinished)).map((e=>e.asFinished)))))))};var n=r(72872),i=r(58105)},47094:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._referendumInfo=function(e,t){return(0,o.memo)(e,((e,r)=>{const i=(0,a.getStatus)(r);return i?t.derive.democracy.preimage(i.proposal||i.proposalHash).pipe((0,n.map)((r=>({image:r,imageHash:(0,a.getImageHash)(i),index:t.registry.createType("ReferendumIndex",e),status:i})))):(0,n.of)(null)}))},t._referendumVotes=function(e,t){return(0,o.memo)(e,(e=>(0,n.combineLatest)([t.derive.democracy.sqrtElectorate(),(0,i.isFunction)(t.query.democracy.votingOf)?u(t,e.index):s(t,e.index)]).pipe((0,n.map)((t=>{let[r,n]=t;return(0,a.calcVotes)(r,e,n)})))))},t._referendumsVotes=function(e,t){return(0,o.memo)(e,(e=>e.length?(0,n.combineLatest)(e.map((e=>t.derive.democracy._referendumVotes(e)))):(0,n.of)([])))},t.referendumsInfo=function(e,t){return(0,o.memo)(e,(e=>e.length?t.query.democracy.referendumInfoOf.multi(e).pipe((0,n.switchMap)((r=>(0,n.combineLatest)(e.map(((e,n)=>t.derive.democracy._referendumInfo(e,r[n])))))),(0,n.map)((e=>e.filter((e=>!!e))))):(0,n.of)([])))};var n=r(72872),i=r(86879),o=r(58105),a=r(12082);function s(e,t){return e.query.democracy.votersFor(t).pipe((0,n.switchMap)((r=>(0,n.combineLatest)([(0,n.of)(r),r.length?e.query.democracy.voteOf.multi(r.map((e=>[t,e]))):(0,n.of)([]),e.derive.balances.votingBalances(r)]))),(0,n.map)((t=>{let[r,n,i]=t;return r.map(((t,r)=>({accountId:t,balance:i[r].votingBalance||e.registry.createType("Balance"),isDelegating:!1,vote:n[r]||e.registry.createType("Vote")})))})))}function u(e,t){return e.query.democracy.votingOf.entries().pipe((0,n.map)((r=>{const n=r.map((e=>{let[{args:[t]},r]=e;return[t,r]})),o=function(e,t){return e.filter((e=>{let[,t]=e;return t.isDirect})).map((e=>{let[r,n]=e;return[r,n.asDirect.votes.filter((e=>{let[r]=e;return r.eq(t)}))]})).filter((e=>{let[,t]=e;return!!t.length})).reduce(((e,t)=>{let[r,n]=t;return n.reduce(((e,t)=>{let[,n]=t;return n.isStandard&&e.push((0,i.objectSpread)({accountId:r,isDelegating:!1},n.asStandard)),e}),e)}),[])}(n,t),a=n.filter((e=>{let[,t]=e;return t.isDelegating})).map((e=>{let[t,r]=e;return[t,r.asDelegating]}));return a.forEach((t=>{let[r,{balance:n,conviction:i,target:s}]=t;const u=a.find((e=>{let[t]=e;return t.eq(s)})),c=o.find((e=>{let{accountId:t}=e;return t.eq(u?u[0]:s)}));c&&o.push({accountId:r,balance:n,isDelegating:!0,vote:e.registry.createType("Vote",{aye:c.vote.isAye,conviction:i})})})),o})))}},37607:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sqrtElectorate=function(e,t){return(0,o.memo)(e,(()=>t.query.balances.totalIssuance().pipe((0,n.map)(i.bnSqrt))))};var n=r(72872),i=r(86879),o=r(58105)},12082:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calcPassing=o,t.calcVotes=function(e,t,r){const i=t.status.tally?function(e,t){const r=[],n=[];return t.forEach((e=>{e.vote.isAye?r.push(e):n.push(e)})),{allAye:r,allNay:n,voteCount:r.length+n.length,voteCountAye:r.length,voteCountNay:n.length,votedAye:e.ayes,votedNay:e.nays,votedTotal:e.turnout}}(t.status.tally,r):r.reduce(((e,t)=>{const{balance:r,vote:n}=t,i=0===n.conviction.index,o=r.muln(i?1:n.conviction.index).divn(i?10:1);return n.isAye?(e.allAye.push(t),e.voteCountAye++,e.votedAye.iadd(o)):(e.allNay.push(t),e.voteCountNay++,e.votedNay.iadd(o)),e.voteCount++,e.votedTotal.iadd(o),e}),{allAye:[],allNay:[],voteCount:0,voteCountAye:0,voteCountNay:0,votedAye:new n.BN(0),votedNay:new n.BN(0),votedTotal:new n.BN(0)});return(0,n.objectSpread)({},i,{isPassing:o(t.status.threshold,e,i),votes:r})},t.compareRationals=i,t.getImageHash=function(e){return a(e.proposal||e.proposalHash)},t.getImageHashBounded=a,t.getStatus=function(e){if(e.isNone)return null;const t=e.unwrap();return function(e){return!!e.proposalHash}(t)?t:t.isOngoing?t.asOngoing:null};var n=r(86879);function i(e,t,r,n){for(;;){const i=e.div(t),o=r.div(n);if(i.lt(o))return!0;if(o.lt(i))return!1;const a=e.mod(t),s=r.mod(n);if(s.isZero())return!1;if(a.isZero())return!0;e=n,r=t,t=s,n=a}}function o(e,t,r){return e.isSimpleMajority?r.votedAye.gt(r.votedNay):function(e,t,r){let{votedAye:o,votedNay:a,votedTotal:s}=r;const u=(0,n.bnSqrt)(s);return!u.isZero()&&(e.isSuperMajorityApprove?i(a,u,o,t):i(a,t,o,u))}(e,t,r)}function a(e){return e.isLegacy?e.asLegacy.hash_.toHex():e.isLookup?e.asLookup.hash_.toHex():e.isInline?e.asInline.hash.toHex():(0,n.isString)(e)?(0,n.isHex)(e)?e:(0,n.stringToHex)(e):(0,n.isU8a)(e)?(0,n.u8aToHex)(e):e.toHex()}},2212:(e,t,r)=>{"use strict";function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}function i(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(i,a,s):i[a]=e[a]}return i.default=e,r&&r.set(e,i),i}Object.defineProperty(t,"__esModule",{value:!0}),t.derive=void 0;const o={accounts:i(r(43538)),alliance:i(r(58439)),bagsList:i(r(36600)),balances:i(r(94322)),bounties:i(r(97424)),chain:i(r(9569)),contracts:i(r(421)),council:i(r(40992)),crowdloan:i(r(40199)),democracy:i(r(90073)),elections:i(r(68736)),imOnline:i(r(22793)),membership:i(r(38792)),parachains:i(r(93115)),session:i(r(55836)),society:i(r(32869)),staking:i(r(10250)),technicalCommittee:i(r(66577)),treasury:i(r(2996)),tx:i(r(69812))};t.derive=o},63535:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[]},63201:(e,t,r)=>{"use strict";var n=r(64836),i=r(86879),o=n(r(63535)),a=r(9243);(0,i.detectPackage)(a.packageInfo,null,o.default)},68736:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(28978);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}))},28978:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.info=function(e,t){return(0,o.memo)(e,(()=>{const[e,r]=function(e){const[t]=e.registry.getModuleInstances(e.runtimeVersion.specName,"council")||["council"];return[t,e.query.phragmenElection?"phragmenElection":e.query.electionsPhragmen?"electionsPhragmen":e.query.elections?"elections":null]}(t);return(r?function(e,t,r){return e.queryMulti([e.query[t].members,e.query[r].candidates,e.query[r].members,e.query[r].runnersUp])}(t,e,r):function(e,t){return(0,n.combineLatest)([e.query[t].members(),(0,n.of)([]),(0,n.of)([]),(0,n.of)([])])}(t,e)).pipe((0,n.map)((e=>{let[n,o,c,f]=e;return(0,i.objectSpread)({},function(e,t){return t?{candidacyBond:e.consts[t].candidacyBond,desiredRunnersUp:e.consts[t].desiredRunnersUp,desiredSeats:e.consts[t].desiredMembers,termDuration:e.consts[t].termDuration,votingBond:e.consts[t].votingBond}:{}}(t,r),{candidateCount:t.registry.createType("u32",o.length),candidates:o.map(s),members:c.length?c.map(a).sort(u):n.map((e=>[e,t.registry.createType("Balance")])),runnersUp:f.map(a).sort(u)})})))}))};var n=r(72872),i=r(86879),o=r(58105);function a(e){return function(e){return!Array.isArray(e)}(e)?[e.who,e.stake]:e}function s(e){return function(e){return Array.isArray(e)}(e)?e[0]:e}function u(e,t){let[,r]=e,[,n]=t;return n.cmp(r)}},22793:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(95415);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}))},95415:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.receivedHeartbeats=function(e,t){return(0,o.memo)(e,(()=>{var e;return null!=(e=t.query.imOnline)&&e.receivedHeartbeats?t.derive.staking.overview().pipe((0,n.switchMap)((e=>{let{currentIndex:r,validators:i}=e;return(0,n.combineLatest)([(0,n.of)({}),(0,n.of)(i),t.query.imOnline.receivedHeartbeats.multi(i.map(((e,t)=>[r,t]))),t.query.imOnline.authoredBlocks.multi(i.map((e=>[r,e])))])})),(0,n.map)(a)):(0,n.of)({})}))};var n=r(72872),i=r(86879),o=r(58105);function a(e){let[t,r,n,o]=e;return r.forEach(((e,r)=>{const a=e.toString(),s=o[r],u=!n[r].isEmpty,c=t[a];c&&c.hasMessage===u&&c.blockCount.eq(s)||(t[a]={blockCount:s,hasMessage:u,isOnline:u||s.gt(i.BN_ZERO)})})),t}},48985:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(63201);var n=r(77417);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}))},38792:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.proposals=t.proposalHashes=t.proposalCount=t.proposal=t.prime=t.members=t.hasProposals=void 0;var n=r(31199);const i=(0,n.members)("membership");t.members=i;const o=(0,n.hasProposals)("membership");t.hasProposals=o;const a=(0,n.proposal)("membership");t.proposal=a;const s=(0,n.proposalCount)("membership");t.proposalCount=s;const u=(0,n.proposalHashes)("membership");t.proposalHashes=u;const c=(0,n.proposals)("membership");t.proposals=c;const f=(0,n.prime)("membership");t.prime=f},9243:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/api-derive",path:"/",type:"cjs",version:"9.13.2"}},93115:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(15885);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}));var i=r(58252);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}))},15885:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.info=function(e,t){return(0,o.memo)(e,(e=>t.query.registrar&&t.query.parachains?t.queryMulti([t.query.registrar.active,t.query.registrar.retryQueue,t.query.registrar.selectedThreads,t.query.parachains.didUpdate,[t.query.registrar.paras,e],[t.query.registrar.pendingSwap,e],[t.query.parachains.heads,e],[t.query.parachains.relayDispatchQueue,e]]).pipe((0,n.map)((r=>function(e,t){let[r,n,o,c,f,l,d,h]=t;return f.isNone?null:{active:s(e,r),didUpdate:(0,a.didUpdateToBool)(c,e),heads:d,id:e,info:(0,i.objectSpread)({id:e},f.unwrap()),pendingSwapId:l.unwrapOr(null),relayDispatchQueue:h,retryCollators:u(e,n),selectedCollators:u(e,o)}}(t.registry.createType("ParaId",e),r)))):(0,n.of)(null)))};var n=r(72872),i=r(86879),o=r(58105),a=r(89301);function s(e,t){const r=t.find((t=>{let[r]=t;return r===e}));if(r&&r[1].isSome){const[e,t]=r[1].unwrap();return(0,i.objectSpread)({collatorId:e},t.isWithRetries?{isRetriable:!0,retries:t.asWithRetries.toNumber()}:{isRetriable:!1,retries:0})}return null}function u(e,t){return t.map((t=>{const r=t.find((t=>{let[r]=t;return r===e}));return r?r[1]:null}))}},58252:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.overview=function(e,t){return(0,o.memo)(e,(()=>{var e;return null!=(e=t.query.registrar)&&e.parachains&&t.query.parachains?t.query.registrar.parachains().pipe((0,n.switchMap)((e=>(0,n.combineLatest)([(0,n.of)(e),t.query.parachains.didUpdate(),t.query.registrar.paras.multi(e),t.query.registrar.pendingSwap.multi(e),t.query.parachains.relayDispatchQueueSize.multi(e)]))),(0,n.map)(s)):(0,n.of)([])}))};var n=r(72872),i=r(86879),o=r(58105),a=r(89301);function s(e){let[t,r,n,o,s]=e;return t.map(((e,t)=>({didUpdate:(0,a.didUpdateToBool)(r,e),id:e,info:(0,i.objectSpread)({id:e},n[t].unwrapOr(null)),pendingSwapId:o[t].unwrapOr(null),relayDispatchQueueSize:s[t][0].toNumber()})))}},89301:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.didUpdateToBool=function(e,t){return!!e.isSome&&e.unwrap().some((e=>e.eq(t)))}},55836:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(55552);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}));var i=r(64174);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=r(76841);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}))},55552:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.indexes=function(e,t){return(0,i.memo)(e,(()=>t.query.session?t.query.staking?function(e){return e.queryMulti([e.query.session.currentIndex,e.query.staking.activeEra,e.query.staking.currentEra,e.query.staking.validatorCount]).pipe((0,n.map)((e=>{let[t,r,n,i]=e;const{index:a,start:s}=r.unwrapOrDefault();return o([t,a,s,n.unwrapOrDefault(),i])})))}(t):function(e){return e.query.session.currentIndex().pipe((0,n.map)((t=>o([t,e.registry.createType("EraIndex"),e.registry.createType("Option<Moment>"),e.registry.createType("EraIndex"),e.registry.createType("u32")]))))}(t):function(e){return(0,n.of)(o([e.registry.createType("SessionIndex",1),e.registry.createType("EraIndex"),e.registry.createType("Option<Moment>"),e.registry.createType("EraIndex"),e.registry.createType("u32")]))}(t)))};var n=r(72872),i=r(58105);function o(e){let[t,r,n,i,o]=e;return{activeEra:r,activeEraStart:n,currentEra:i,currentIndex:t,validatorCount:o}}},64174:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.info=function(e,t){return(0,o.memo)(e,(()=>t.derive.session.indexes().pipe((0,n.map)((e=>{var r,n,o,a;const s=(null==(r=t.consts)||null==(n=r.babe)?void 0:n.epochDuration)||t.registry.createType("u64",1),u=(null==(o=t.consts)||null==(a=o.staking)?void 0:a.sessionsPerEra)||t.registry.createType("SessionIndex",1);return(0,i.objectSpread)({eraLength:t.registry.createType("BlockNumber",u.mul(s)),isEpoch:!!t.query.babe,sessionLength:s,sessionsPerEra:u},e)})))))};var n=r(72872),i=r(86879),o=r(58105)},76841:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eraProgress=t.eraLength=void 0,t.progress=function(e,t){return(0,o.memo)(e,(()=>t.query.babe?function(e){return e.derive.session.info().pipe((0,n.switchMap)((t=>{var r;return(0,n.combineLatest)([(0,n.of)(t),null!=(r=e.query.staking)&&r.erasStartSessionIndex?e.queryMulti([e.query.babe.currentSlot,e.query.babe.epochIndex,e.query.babe.genesisSlot,[e.query.staking.erasStartSessionIndex,t.activeEra]]):e.queryMulti([e.query.babe.currentSlot,e.query.babe.epochIndex,e.query.babe.genesisSlot])])})),(0,n.map)((t=>{let[r,[n,i,o,a]]=t;return[r,[n,i,o,a&&a.isSome?a.unwrap():e.registry.createType("SessionIndex",1)]]})))}(t).pipe((0,n.map)((e=>{let[r,n]=e;return function(e,t,r){let[n,o,a,s]=r;const u=o.mul(t.sessionLength).iadd(a),c=n.sub(u),f=t.currentIndex.sub(s).imul(t.sessionLength).iadd(c);return(0,i.objectSpread)({eraProgress:e.registry.createType("BlockNumber",f),sessionProgress:e.registry.createType("BlockNumber",c)},t)}(t,r,n)}))):function(e){return e.derive.session.info().pipe((0,n.map)((t=>(0,i.objectSpread)({eraProgress:e.registry.createType("BlockNumber"),sessionProgress:e.registry.createType("BlockNumber")},t))))}(t)))},t.sessionProgress=void 0;var n=r(72872),i=r(86879),o=r(58105);function a(e){return(t,r)=>(0,o.memo)(t,(()=>r.derive.session.progress().pipe((0,n.map)((t=>t[e])))))}const s=a("eraLength");t.eraLength=s;const u=a("eraProgress");t.eraProgress=u;const c=a("sessionProgress");t.sessionProgress=c},46054:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.candidates=function(e,t){return(0,i.memo)(e,(()=>t.query.society.candidates().pipe((0,n.switchMap)((e=>(0,n.combineLatest)([(0,n.of)(e),t.query.society.suspendedCandidates.multi(e.map((e=>{let{who:t}=e;return t})))]))),(0,n.map)((e=>{let[t,r]=e;return t.map(((e,t)=>{let{kind:n,value:i,who:o}=e;return{accountId:o,isSuspended:r[t].isSome,kind:n,value:i}}))})))))};var n=r(72872),i=r(58105)},32869:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(46054);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}));var i=r(33300);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=r(39825);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=r(84679);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}))},33300:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.info=function(e,t){return(0,i.memo)(e,(()=>t.queryMulti([t.query.society.bids,t.query.society.defender,t.query.society.founder,t.query.society.head,t.query.society.maxMembers,t.query.society.pot]).pipe((0,n.map)((e=>{let[t,r,n,i,o,a]=e;return{bids:t,defender:r.unwrapOr(void 0),founder:n.unwrapOr(void 0),hasDefender:r.isSome&&i.isSome&&!i.eq(r)||!1,head:i.unwrapOr(void 0),maxMembers:o,pot:a}})))))};var n=r(72872),i=r(58105)},39825:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.member=function(e,t){return(0,i.memo)(e,(e=>t.derive.society._members([e]).pipe((0,n.map)((e=>{let[t]=e;return t})))))};var n=r(72872),i=r(58105)},84679:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._members=function(e,t){return(0,i.memo)(e,(e=>(0,n.combineLatest)([(0,n.of)(e),t.query.society.payouts.multi(e),t.query.society.strikes.multi(e),t.query.society.defenderVotes.multi(e),t.query.society.suspendedMembers.multi(e),t.query.society.vouching.multi(e)]).pipe((0,n.map)((e=>{let[t,r,n,i,o,a]=e;return t.map(((e,t)=>({accountId:e,isDefenderVoter:i[t].isSome,isSuspended:o[t].isTrue,payouts:r[t],strikes:n[t],vote:i[t].unwrapOr(void 0),vouching:a[t].unwrapOr(void 0)})))})))))},t.members=function(e,t){return(0,i.memo)(e,(()=>t.query.society.members().pipe((0,n.switchMap)((e=>t.derive.society._members(e))))))};var n=r(72872),i=r(58105)},35720:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.account=void 0,t.accounts=function(e,t){return(0,o.memo)(e,(function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;return t.derive.session.info().pipe((0,n.switchMap)((o=>(0,n.combineLatest)([t.derive.staking.keysMulti(e),t.derive.staking.queryMulti(e,r)]).pipe((0,n.map)((e=>{let[r,n]=e;return n.map(((e,n)=>function(e,t,r,n){return(0,i.objectSpread)({},r,n,{redeemable:u(e,n.stakingLedger,t),unlocking:s(e,n.stakingLedger,t)})}(t,o,r[n],e)))}))))))}))};var n=r(72872),i=r(86879),o=r(58105);const a={withDestination:!0,withLedger:!0,withNominations:!0,withPrefs:!0};function s(e,t,r){const n=Object.entries((o=((null==t?void 0:t.unlocking)||[]).filter((e=>{let{era:t}=e;return t.unwrap().gt(r.activeEra)})),o.reduce(((e,t)=>{let{era:r,value:n}=t;const o=r.toString();return e[o]=(e[o]||i.BN_ZERO).add(n.unwrap()),e}),{}))).map((t=>{let[n,o]=t;return{remainingEras:new i.BN(n).isub(r.activeEra),value:e.registry.createType("Balance",o)}}));var o;return n.length?n:void 0}function u(e,t,r){return e.registry.createType("Balance",((null==t?void 0:t.unlocking)||[]).reduce(((e,t)=>{let{era:n,value:i}=t;return n.unwrap().gt(r.currentEra)?e:e.iadd(i.unwrap())}),new i.BN(0)))}const c=(0,o.firstMemo)(((e,t,r)=>e.derive.staking.accounts([t],r)));t.account=c},56517:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filterCachedEras=function(e,t,r){return e.map((e=>t.find((t=>{let{era:r}=t;return e.eq(r)}))||r.find((t=>{let{era:r}=t;return e.eq(r)}))))},t.getEraCache=function(e,t,r){const i=`${e}-${t.toString()}`;return[i,r?void 0:n.deriveCache.get(i)]},t.getEraMultiCache=function(e,t,r){return r?[]:t.map((t=>n.deriveCache.get(`${e}-${t.toString()}`))).filter((e=>!!e))},t.setEraCache=function(e,t,r){return!t&&n.deriveCache.set(e,r),r},t.setEraMultiCache=function(e,t,r){return!t&&r.forEach((t=>n.deriveCache.set(`${e}-${t.era.toString()}`,t))),r};var n=r(58105)},20141:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.currentPoints=function(e,t){return(0,i.memo)(e,(()=>t.derive.session.indexes().pipe((0,n.switchMap)((e=>{let{activeEra:r}=e;return t.query.staking.erasRewardPoints(r)})))))};var n=r(72872),i=r(58105)},34565:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.electedInfo=function(e,t){return(0,o.memo)(e,(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;return t.derive.staking.validators().pipe((0,n.switchMap)((r=>{let{nextElected:o,validators:a}=r;return t.derive.staking.queryMulti(function(e,t){return(0,i.arrayFlatten)([e,t.filter((t=>!e.find((e=>e.eq(t)))))])}(o,a),e).pipe((0,n.map)((e=>({info:e,nextElected:o,validators:a}))))})))}))};var n=r(72872),i=r(86879),o=r(58105);const a={withController:!0,withExposure:!0,withPrefs:!0}},71976:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._eraExposure=function(e,t){return(0,i.memo)(e,(function(e){let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const[i,a]=(0,o.getEraCache)(s,e,r);return a?(0,n.of)(a):t.query.staking.erasStakersClipped.entries(e).pipe((0,n.map)((t=>(0,o.setEraCache)(i,r,function(e,t){const r={},n={};return t.forEach((e=>{let[t,i]=e;const o=t.args[1].toString();n[o]=i,i.others.forEach(((e,t)=>{let{who:n}=e;const i=n.toString();r[i]=r[i]||[],r[i].push({validatorId:o,validatorIndex:t})}))})),{era:e,nominators:r,validators:n}}(e,t)))))}))},t.erasExposure=t.eraExposure=t._erasExposure=void 0;var n=r(72872),i=r(58105),o=r(56517),a=r(40500);const s="eraExposure",u=(0,a.singleEra)("_eraExposure");t.eraExposure=u;const c=(0,a.combineEras)("_eraExposure");t._erasExposure=c;const f=(0,a.erasHistoricApply)("_erasExposure");t.erasExposure=f},88843:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.erasHistoric=function(e,t){return(0,o.memo)(e,(e=>(0,n.combineLatest)([t.query.staking.activeEra(),t.consts.staking.historyDepth?(0,n.of)(t.consts.staking.historyDepth):t.query.staking.historyDepth()]).pipe((0,n.map)((r=>{let[n,o]=r;const a=[],s=o.toNumber(),u=n.unwrapOrDefault().index;let c=u;for(;c.gte(i.BN_ZERO)&&a.length<s;)c===u&&!0!==e||a.push(t.registry.createType("EraIndex",c)),c=c.sub(i.BN_ONE);return a.reverse()})))))};var n=r(72872),i=r(86879),o=r(58105)},9698:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._erasPoints=function(e,t){return(0,o.memo)(e,((e,r)=>{if(!e.length)return(0,n.of)([]);const i=(0,a.getEraMultiCache)(u,e,r),o=(0,s.filterEras)(e,i);return o.length?t.query.staking.erasRewardPoints.multi(o).pipe((0,n.map)((t=>(0,a.filterCachedEras)(e,i,(0,a.setEraMultiCache)(u,r,function(e,t){return e.map(((e,r)=>({era:e,eraPoints:t[r].total,validators:c(t[r])})))}(o,t)))))):(0,n.of)(i)}))},t.erasPoints=void 0;var n=r(72872),i=r(86879),o=r(58105),a=r(56517),s=r(40500);const u="eraPoints";function c(e){let{individual:t}=e;return[...t.entries()].filter((e=>{let[,t]=e;return t.gt(i.BN_ZERO)})).reduce(((e,t)=>{let[r,n]=t;return e[r.toString()]=n,e}),{})}const f=(0,s.erasHistoricApply)("_erasPoints");t.erasPoints=f},99305:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._eraPrefs=function(e,t){return(0,i.memo)(e,((e,r)=>{const[i,a]=(0,o.getEraCache)(s,e,r);return a?(0,n.of)(a):t.query.staking.erasValidatorPrefs.entries(e).pipe((0,n.map)((t=>(0,o.setEraCache)(i,r,function(e,t){const r={};return t.forEach((e=>{let[t,n]=e;r[t.args[1].toString()]=n})),{era:e,validators:r}}(e,t)))))}))},t.erasPrefs=t.eraPrefs=t._erasPrefs=void 0;var n=r(72872),i=r(58105),o=r(56517),a=r(40500);const s="eraPrefs",u=(0,a.singleEra)("_eraPrefs");t.eraPrefs=u;const c=(0,a.combineEras)("_eraPrefs");t._erasPrefs=c;const f=(0,a.erasHistoricApply)("_erasPrefs");t.erasPrefs=f},75835:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._erasRewards=function(e,t){return(0,i.memo)(e,((e,r)=>{if(!e.length)return(0,n.of)([]);const i=(0,o.getEraMultiCache)(s,e,r),u=(0,a.filterEras)(e,i);return u.length?t.query.staking.erasValidatorReward.multi(u).pipe((0,n.map)((t=>(0,o.filterCachedEras)(e,i,(0,o.setEraMultiCache)(s,r,function(e,t){return e.map(((e,r)=>({era:e,eraReward:t[r].unwrapOrDefault()})))}(u,t)))))):(0,n.of)(i)}))},t.erasRewards=void 0;var n=r(72872),i=r(58105),o=r(56517),a=r(40500);const s="eraRewards",u=(0,a.erasHistoricApply)("_erasRewards");t.erasRewards=u},56173:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._eraSlashes=function(e,t){return(0,i.memo)(e,((e,r)=>{const[i,a]=(0,o.getEraCache)(s,e,r);return a?(0,n.of)(a):(0,n.combineLatest)([t.query.staking.nominatorSlashInEra.entries(e),t.query.staking.validatorSlashInEra.entries(e)]).pipe((0,n.map)((t=>{let[n,a]=t;return(0,o.setEraCache)(i,r,function(e,t,r){const n={},i={};return t.forEach((e=>{let[t,r]=e;n[t.args[1].toString()]=r.unwrap()})),r.forEach((e=>{let[t,r]=e;i[t.args[1].toString()]=r.unwrapOrDefault()[1]})),{era:e,nominators:n,validators:i}}(e,n,a))})))}))},t.erasSlashes=t.eraSlashes=t._erasSlashes=void 0;var n=r(72872),i=r(58105),o=r(56517),a=r(40500);const s="eraSlashes",u=(0,a.singleEra)("_eraSlashes");t.eraSlashes=u;const c=(0,a.combineEras)("_eraSlashes");t._erasSlashes=c;const f=(0,a.erasHistoricApply)("_erasSlashes");t.erasSlashes=f},10250:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(35720);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}));var i=r(20141);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=r(71976);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=r(88843);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var s=r(9698);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var u=r(99305);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var c=r(75835);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var f=r(56173);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))}));var l=r(34565);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var d=r(34580);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var h=r(60790);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))}));var p=r(49231);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===p[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}}))}));var b=r(31300);Object.keys(b).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===b[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return b[e]}}))}));var y=r(28145);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===y[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return y[e]}}))}));var g=r(54686);Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===g[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return g[e]}}))}));var m=r(4085);Object.keys(m).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===m[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return m[e]}}))}));var v=r(35799);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===v[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return v[e]}}))}));var w=r(89199);Object.keys(w).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===w[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return w[e]}}))}));var _=r(57304);Object.keys(_).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===_[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return _[e]}}))}));var x=r(57785);Object.keys(x).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===x[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return x[e]}}))}));var O=r(91131);Object.keys(O).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===O[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return O[e]}}))}));var k=r(94681);Object.keys(k).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===k[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return k[e]}}))}))},34580:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keys=void 0,t.keysMulti=function(e,t){return(0,i.memo)(e,(e=>e.length?t.query.session.queuedKeys().pipe((0,n.switchMap)((r=>{var i;return(0,n.combineLatest)([(0,n.of)(r),null!=(i=t.consts.session)&&i.dedupKeyPrefix?t.query.session.nextKeys.multi(e.map((e=>[t.consts.session.dedupKeyPrefix,e]))):(0,n.combineLatest)(e.map((e=>t.query.session.nextKeys(e))))])})),(0,n.map)((t=>{let[r,n]=t;return e.map(((e,t)=>function(e,t,r){const n=(t.find((t=>{let[r]=t;return r.eq(e)}))||[void 0,[]])[1],i=r.unwrapOr([]);return{nextSessionIds:Array.isArray(i)?i:[...i.values()],sessionIds:Array.isArray(n)?n:[...n.values()]}}(e,r,n[t])))}))):(0,n.of)([])))};var n=r(72872),i=r(58105);const o=(0,i.firstMemo)(((e,t)=>e.derive.staking.keysMulti([t])));t.keys=o},60790:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.overview=function(e,t){return(0,o.memo)(e,(()=>(0,n.combineLatest)([t.derive.session.indexes(),t.derive.staking.validators()]).pipe((0,n.map)((e=>{let[t,{nextElected:r,validators:n}]=e;return(0,i.objectSpread)({},t,{nextElected:r,validators:n})})))))};var n=r(72872),i=r(86879),o=r(58105)},49231:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._ownExposures=function(e,t){return(0,i.memo)(e,((e,r,i)=>r.length?(0,n.combineLatest)([(0,n.combineLatest)(r.map((r=>t.query.staking.erasStakersClipped(r,e)))),(0,n.combineLatest)(r.map((r=>t.query.staking.erasStakers(r,e))))]).pipe((0,n.map)((e=>{let[t,n]=e;return r.map(((e,r)=>({clipped:t[r],era:e,exposure:n[r]})))}))):(0,n.of)([])))},t.ownExposures=t.ownExposure=void 0;var n=r(72872),i=r(58105),o=r(40500);const a=(0,i.firstMemo)(((e,t,r)=>e.derive.staking._ownExposures(t,[r],!0)));t.ownExposure=a;const s=(0,o.erasHistoricApplyAccount)("_ownExposures");t.ownExposures=s},31300:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._ownSlashes=function(e,t){return(0,i.memo)(e,((e,r,i)=>r.length?(0,n.combineLatest)([(0,n.combineLatest)(r.map((r=>t.query.staking.validatorSlashInEra(r,e)))),(0,n.combineLatest)(r.map((r=>t.query.staking.nominatorSlashInEra(r,e))))]).pipe((0,n.map)((e=>{let[t,n]=e;return r.map(((e,r)=>({era:e,total:t[r].isSome?t[r].unwrap()[1]:n[r].unwrapOrDefault()})))}))):(0,n.of)([])))},t.ownSlashes=t.ownSlash=void 0;var n=r(72872),i=r(58105),o=r(40500);const a=(0,i.firstMemo)(((e,t,r)=>e.derive.staking._ownSlashes(t,[r],!0)));t.ownSlash=a;const s=(0,o.erasHistoricApplyAccount)("_ownSlashes");t.ownSlashes=s},28145:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.query=void 0,t.queryMulti=function(e,t){return(0,i.memo)(e,((e,r)=>t.derive.session.indexes().pipe((0,n.switchMap)((i=>{let{activeEra:o}=i;const a=e.map((e=>t.registry.createType("AccountId",e)));return a.length?function(e,t,r,i){return function(e,t,r,i){let{withController:o,withDestination:a,withExposure:s,withLedger:u,withNominations:c,withPrefs:f}=i;const l=e.registry.createType("Option<Nominations>"),d=e.registry.createType("RewardDestination"),h=e.registry.createType("Exposure"),p=e.registry.createType("ValidatorPrefs");return(0,n.combineLatest)([o||u?(0,n.combineLatest)(t.map((t=>e.query.staking.bonded(t)))):(0,n.of)(t.map((()=>null))),c?(0,n.combineLatest)(t.map((t=>e.query.staking.nominators(t)))):(0,n.of)(t.map((()=>l))),a?(0,n.combineLatest)(t.map((t=>e.query.staking.payee(t)))):(0,n.of)(t.map((()=>d))),f?(0,n.combineLatest)(t.map((t=>e.query.staking.validators(t)))):(0,n.of)(t.map((()=>p))),s?(0,n.combineLatest)(t.map((t=>e.query.staking.erasStakers(r,t)))):(0,n.of)(t.map((()=>h)))])}(e,r,t,i).pipe((0,n.switchMap)((t=>{let[o,a,s,u,c]=t;return function(e,t,r){let{withLedger:i=!1}=r;const o=t.filter((e=>i&&!!e&&e.isSome)).map((e=>e.unwrap())),a=e.registry.createType("Option<StakingLedger>");return(o.length?(0,n.combineLatest)(o.map((t=>e.query.staking.ledger(t)))):(0,n.of)([])).pipe((0,n.map)((e=>{let r=-1;return t.map((t=>t&&t.isSome&&e[++r]||a))})))}(e,o,i).pipe((0,n.map)((e=>r.map(((t,r)=>function(e,t,r,n,i,o,a){return{accountId:e,controllerId:t&&t.unwrapOr(null),exposure:o,nominators:r.isSome?r.unwrap().targets:[],rewardDestination:n,stakingLedger:a.unwrapOrDefault(),stashId:e,validatorPrefs:i}}(t,o[r],a[r],s[r],u[r],c[r],e[r]))))))})))}(t,o,a,r):(0,n.of)([])})))))};var n=r(72872),i=r(58105);const o=(0,i.firstMemo)(((e,t,r)=>e.derive.staking.queryMulti([t],r)));t.query=o},54686:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._stakerExposures=function(e,t){return(0,i.memo)(e,(function(e,r){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=e.map((e=>t.registry.createType("AccountId",e).toString()));return t.derive.staking._erasExposure(r,i).pipe((0,n.map)((e=>o.map((t=>e.map((e=>{let{era:r,nominators:n,validators:i}=e;const o=!!i[t],a={},s=n[t]||[];return o?a[t]=i[t]:s&&s.forEach((e=>{let{validatorId:t}=e;a[t]=i[t]})),{era:r,isEmpty:!Object.keys(a).length,isValidator:o,nominating:s,validators:a}})))))))}))},t.stakerExposure=void 0,t.stakerExposures=function(e,t){return(0,i.memo)(e,(function(e){let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t.derive.staking.erasHistoric(r).pipe((0,n.switchMap)((n=>t.derive.staking._stakerExposures(e,n,r))))}))};var n=r(72872),i=r(58105);const o=(0,i.firstMemo)(((e,t,r)=>e.derive.staking.stakerExposures([t],r)));t.stakerExposure=o},4085:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._stakerPoints=function(e,t){return(0,i.memo)(e,((e,r,i)=>{const o=t.registry.createType("AccountId",e).toString();return t.derive.staking._erasPoints(r,i).pipe((0,n.map)((e=>e.map((e=>{let{era:r,eraPoints:n,validators:i}=e;return{era:r,eraPoints:n,points:i[o]||t.registry.createType("RewardPoint")}})))))}))},t.stakerPoints=void 0;var n=r(72872),i=r(58105);const o=(0,r(40500).erasHistoricApplyAccount)("_stakerPoints");t.stakerPoints=o},35799:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._stakerPrefs=function(e,t){return(0,i.memo)(e,((e,r,i)=>t.query.staking.erasValidatorPrefs.multi(r.map((t=>[t,e]))).pipe((0,n.map)((e=>e.map(((e,t)=>({era:r[t],validatorPrefs:e}))))))))},t.stakerPrefs=void 0;var n=r(72872),i=r(58105);const o=(0,r(40500).erasHistoricApplyAccount)("_stakerPrefs");t.stakerPrefs=o},89199:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._stakerRewards=function(e,t){return(0,o.memo)(e,(function(e,r){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,n.combineLatest)([t.derive.staking.queryMulti(e,{withLedger:!0}),t.derive.staking._stakerExposures(e,r,o),t.derive.staking._stakerRewardsEras(r,o)]).pipe((0,n.switchMap)((e=>{let[a,s,u]=e;const c=a.map(((e,r)=>{let{stakingLedger:n,stashId:o}=e;return o&&n?function(e,t,r,n){let[o,a,s]=r;return n.map((r=>{let{era:n,isEmpty:u,isValidator:c,nominating:f,validators:l}=r;const{eraPoints:d,validators:h}=o.find((e=>e.era.eq(n)))||{eraPoints:i.BN_ZERO,validators:{}},{eraReward:p}=s.find((e=>e.era.eq(n)))||{eraReward:e.registry.createType("Balance")},{validators:b}=a.find((e=>e.era.eq(n)))||{validators:{}},y={},g=t.toString();return Object.entries(l).forEach((t=>{var r,n;let[o,a]=t;const s=h[o]||i.BN_ZERO,u=(null==(r=b[o])?void 0:r.commission.unwrap())||i.BN_ZERO,c=(null==(n=a.total)?void 0:n.unwrap())||i.BN_ZERO;let f,l=i.BN_ZERO;if(!(c.isZero()||s.isZero()||d.isZero())){l=p.mul(s).div(d);const e=u.mul(l).div(i.BN_BILLION);let t;if(o===g)t=a.own.unwrap();else{const e=a.others.find((e=>{let{who:t}=e;return t.eq(g)}));t=e?e.value.unwrap():i.BN_ZERO}f=l.sub(e).imul(t).div(c).iadd(o===g?e:i.BN_ZERO)}y[o]={total:e.registry.createType("Balance",l),value:e.registry.createType("Balance",f)}})),{era:n,eraReward:p,isEmpty:u,isValidator:c,nominating:f,validators:y}}))}(t,o,u,s[r]):[]}));if(o)return(0,n.of)(c);const[f,l]=c.reduce(((e,t)=>{let[r,n]=e;const i=[];return n.push(i),t.forEach((e=>{let{validators:t}=e;return Object.keys(t).forEach((e=>{i.includes(e)||(i.push(e),r.includes(e)||r.push(e))}))})),[r,n]}),[[],[]]);return t.derive.staking.queryMulti(f,{withLedger:!0}).pipe((0,n.map)((e=>a.map(((t,n)=>{let{stakingLedger:o}=t;return function(e,t,r){let{rewards:n,stakingLedger:o}=r;const a=e.filter((e=>!o.claimedRewards.some((t=>t.eq(e))))),s=t.map((e=>{let[t]=e;return t})),u=t.map((e=>{let[,t]=e;return t}));return n.filter((e=>{let{isEmpty:t}=e;return!t})).filter((e=>!!a.some((t=>e.era.eq(t)))&&(function(e,t,r){const n=[];Object.keys(r.validators).forEach((i=>{const o=e.indexOf(i);if(-1!==o){const e=t[o].stakingLedger;null!=e&&e.claimedRewards.some((e=>r.era.eq(e)))&&n.push(i)}})),n.forEach((e=>{delete r.validators[e]}))}(s,u,e),!0))).filter((e=>{let{validators:t}=e;return 0!==Object.keys(t).length})).map((e=>(0,i.objectSpread)({},e,{nominators:e.nominating.filter((t=>e.validators[t.validatorId]))})))}(r,l[n].map((t=>[t,e.find((e=>e.accountId.eq(t)))])),{rewards:c[n],stakingLedger:o})})))))})))}))},t._stakerRewardsEras=function(e,t){return(0,o.memo)(e,(function(e){let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,n.combineLatest)([t.derive.staking._erasPoints(e,r),t.derive.staking._erasPrefs(e,r),t.derive.staking._erasRewards(e,r)])}))},t.stakerRewards=void 0,t.stakerRewardsMulti=function(e,t){return(0,o.memo)(e,(function(e){let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t.derive.staking.erasHistoric(r).pipe((0,n.switchMap)((r=>t.derive.staking.stakerRewardsMultiEras(e,r))))}))},t.stakerRewardsMultiEras=function(e,t){return(0,o.memo)(e,((e,r)=>e.length&&r.length?t.derive.staking._stakerRewards(e,r,!1):(0,n.of)([])))};var n=r(72872),i=r(86879),o=r(58105);const a=(0,o.firstMemo)(((e,t,r)=>e.derive.staking.erasHistoric(r).pipe((0,n.switchMap)((n=>e.derive.staking._stakerRewards([t],n,r))))));t.stakerRewards=a},57304:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._stakerSlashes=function(e,t){return(0,i.memo)(e,((e,r,i)=>{const o=t.registry.createType("AccountId",e).toString();return t.derive.staking._erasSlashes(r,i).pipe((0,n.map)((e=>e.map((e=>{let{era:r,nominators:n,validators:i}=e;return{era:r,total:n[o]||i[o]||t.registry.createType("Balance")}})))))}))},t.stakerSlashes=void 0;var n=r(72872),i=r(58105);const o=(0,r(40500).erasHistoricApplyAccount)("_stakerSlashes");t.stakerSlashes=o},57785:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stashes=function(e,t){return(0,i.memo)(e,(()=>function(e){let t=Date.now();return e.query.system.events().pipe((0,n.map)((e=>(t=e.filter((e=>{let{event:t,phase:r}=e;try{return r.isApplyExtrinsic&&"staking"===t.section&&"Bonded"===t.method}catch(e){return!1}}))?Date.now():t,t))),(0,n.startWith)(t),(0,i.drr)({skipTimeout:!0}))}(t).pipe((0,n.switchMap)((()=>t.query.staking.validators.keys())),(0,n.map)((e=>e.map((e=>{let{args:[t]}=e;return t})).filter((e=>e)))))))};var n=r(72872),i=r(58105)},40500:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineEras=function(e){return(t,r)=>(0,o.memo)(t,((t,o)=>t.length?function(e,t){const r=(0,i.arrayChunk)(e,a);let o=0;const s=new n.BehaviorSubject(r[o]);return s.pipe((0,n.switchMap)(t),(0,n.tap)((()=>{(0,i.nextTick)((()=>{o++,o===r.length?s.complete():s.next(r[o])}))})),(0,n.toArray)(),(0,n.map)(i.arrayFlatten))}(t,(t=>(0,n.combineLatest)(t.map((t=>r.derive.staking[e](t,o)))))):(0,n.of)([])))},t.erasHistoricApply=function(e){return(t,r)=>(0,o.memo)(t,(function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return r.derive.staking.erasHistoric(t).pipe((0,n.switchMap)((n=>r.derive.staking[e](n,t))))}))},t.erasHistoricApplyAccount=function(e){return(t,r)=>(0,o.memo)(t,(function(t){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return r.derive.staking.erasHistoric(i).pipe((0,n.switchMap)((n=>r.derive.staking[e](t,n,i))))}))},t.filterEras=function(e,t){return e.filter((e=>!t.some((t=>{let{era:r}=t;return e.eq(r)}))))},t.singleEra=function(e){return(t,r)=>(0,o.memo)(t,(t=>r.derive.staking[e](t,!0)))};var n=r(72872),i=r(86879),o=r(58105);const a=14},91131:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nextElected=function(e,t){return(0,i.memo)(e,(()=>t.query.staking.erasStakers?t.derive.session.indexes().pipe((0,n.switchMap)((e=>{let{currentEra:r}=e;return t.query.staking.erasStakers.keys(r)})),(0,n.map)((e=>e.map((e=>{let{args:[,t]}=e;return t}))))):t.query.staking.currentElected()))},t.validators=function(e,t){return(0,i.memo)(e,(()=>(0,n.combineLatest)([t.query.session?t.query.session.validators():(0,n.of)([]),t.query.staking?t.derive.staking.nextElected():(0,n.of)([])]).pipe((0,n.map)((e=>{let[t,r]=e;return{nextElected:r.length?r:t,validators:t}})))))};var n=r(72872),i=r(58105)},94681:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.waitingInfo=function(e,t){return(0,i.memo)(e,(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return(0,n.combineLatest)([t.derive.staking.validators(),t.derive.staking.stashes()]).pipe((0,n.switchMap)((r=>{let[{nextElected:i},o]=r;const a=i.map((e=>e.toString())),s=o.filter((e=>!a.includes(e.toString())));return t.derive.staking.queryMulti(s,e).pipe((0,n.map)((e=>({info:e,waiting:s}))))})))}))};var n=r(72872),i=r(58105);const o={withController:!0,withPrefs:!0}},66577:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.proposals=t.proposalHashes=t.proposalCount=t.proposal=t.prime=t.members=t.hasProposals=void 0;var n=r(31199);const i=(0,n.members)("technicalCommittee");t.members=i;const o=(0,n.hasProposals)("technicalCommittee");t.hasProposals=o;const a=(0,n.proposal)("technicalCommittee");t.proposal=a;const s=(0,n.proposalCount)("technicalCommittee");t.proposalCount=s;const u=(0,n.proposalHashes)("technicalCommittee");t.proposalHashes=u;const c=(0,n.proposals)("technicalCommittee");t.proposals=c;const f=(0,n.prime)("technicalCommittee");t.prime=f},2996:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(55942);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}))},55942:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.proposals=function(e,t){return(0,i.memo)(e,(()=>t.query.treasury?(0,n.combineLatest)([t.query.treasury.proposalCount(),t.query.treasury.approvals()]).pipe((0,n.switchMap)((e=>{let[r,i]=e;return function(e,t,r){const i=[],o=t.toNumber();for(let t=0;t<o;t++)r.some((e=>e.eqn(t)))||i.push(e.registry.createType("ProposalIndex",t));const a=[...i,...r];return(0,n.combineLatest)([e.query.treasury.proposals.multi(a),e.derive.council?e.derive.council.proposals():(0,n.of)([])]).pipe((0,n.map)((n=>{let[i,o]=n;return function(e,t){let{allIds:r,allProposals:n,approvalIds:i,councilProposals:o,proposalCount:a}=t;const s=[],u=[],c=o.filter((t=>{let{proposal:r}=t;return r&&(e.tx.treasury.approveProposal.is(r)||e.tx.treasury.rejectProposal.is(r))}));return r.forEach(((e,t)=>{if(n[t].isSome){const r=c.filter((t=>{let{proposal:r}=t;return r&&e.eq(r.args[0])})).sort(((e,t)=>e.proposal&&t.proposal?e.proposal.method.localeCompare(t.proposal.method):e.proposal?-1:1)),o=i.some((t=>t.eq(e))),a={council:r,id:e,proposal:n[t].unwrap()};o?s.push(a):u.push(a)}})),{approvals:s,proposalCount:a,proposals:u}}(e,{allIds:a,allProposals:i,approvalIds:r,councilProposals:o,proposalCount:t})})))}(t,r,i)}))):(0,n.of)({approvals:[],proposalCount:t.registry.createType("ProposalIndex"),proposals:[]})))};var n=r(72872),i=r(58105)},51071:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MORTAL_PERIOD=t.MAX_FINALITY_LAG=t.FALLBACK_PERIOD=t.FALLBACK_MAX_HASH_COUNT=void 0;var n=r(86879);t.FALLBACK_MAX_HASH_COUNT=250;const i=new n.BN(6e3);t.FALLBACK_PERIOD=i;const o=new n.BN(5);t.MAX_FINALITY_LAG=o;const a=new n.BN(3e5);t.MORTAL_PERIOD=a},52961:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.events=function(e,t){return(0,i.memo)(e,(e=>(0,n.combineLatest)([t.rpc.chain.getBlock(e),t.queryAt(e).pipe((0,n.switchMap)((e=>e.system.events())))]).pipe((0,n.map)((e=>{let[t,r]=e;return{block:t,events:r}})))))};var n=r(72872),i=r(58105)},69812:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(52961);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}));var i=r(91771);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}))},91771:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.signingInfo=function(e,t){return(e,r,o)=>(0,n.combineLatest)([(0,i.isUndefined)(r)?s(t,e):-1===r?u(t,e):(0,n.of)(t.registry.createType("Index",r)),(0,i.isUndefined)(o)||(0,i.isNumber)(o)&&o>0?c(t):(0,n.of)(null)]).pipe((0,n.map)((e=>{var r,n,i,o;let[s,u]=e;return{header:u,mortalLength:Math.min((null==(r=t.consts.system)||null==(n=r.blockHashCount)?void 0:n.toNumber())||a.FALLBACK_MAX_HASH_COUNT,a.MORTAL_PERIOD.div((null==(i=t.consts.babe)?void 0:i.expectedBlockTime)||(null==(o=t.consts.timestamp)?void 0:o.minimumPeriod.muln(2))||a.FALLBACK_PERIOD).iadd(a.MAX_FINALITY_LAG).toNumber()),nonce:s}})))};var n=r(72872),i=r(86879),o=r(58105),a=r(51071);function s(e,t){return e.derive.balances.account(t).pipe((0,n.map)((e=>{let{accountNonce:t}=e;return t})))}function u(e,t){var r;return null!=(r=e.rpc.system)&&r.accountNextIndex?e.rpc.system.accountNextIndex(t):s(e,t)}function c(e){return(0,n.combineLatest)([e.rpc.chain.getHeader().pipe((0,n.switchMap)((t=>t.parentHash.isEmpty?(0,n.of)(t):e.rpc.chain.getHeader(t.parentHash)))),e.rpc.chain.getFinalizedHead().pipe((0,n.switchMap)((t=>e.rpc.chain.getHeader(t))))]).pipe((0,n.map)((e=>{let[t,r]=e;return(0,o.unwrapBlockNumber)(t).sub((0,o.unwrapBlockNumber)(r)).gt(a.MAX_FINALITY_LAG)?t:r})))}},76421:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(66115)),s=n(r(61655)),u=n(r(94993)),c=n(r(73808)),f=n(r(29399)),l=n(r(40426));Object.defineProperty(t,"__esModule",{value:!0}),t.createHeaderExtended=function(e,t,r,n){const h=e.createClass("Header");var p=(0,l.default)("author");return new(function(e){(0,s.default)(l,e);var t,r,n=(t=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,c.default)(t);if(r){var i=(0,c.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,u.default)(this,e)});function l(e,t,r,o){var s;return(0,i.default)(this,l),s=n.call(this,e,t),Object.defineProperty((0,a.default)(s),p,{writable:!0,value:void 0}),(0,f.default)((0,a.default)(s),p)[p]=o||(0,d.extractAuthor)(s.digest,r||[]),s.createdAtHash=null==t?void 0:t.createdAtHash,s}return(0,o.default)(l,[{key:"author",get:function(){return(0,f.default)(this,p)[p]}}]),l}(h))(e,t,r,n)};var d=r(36429)},64679:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(66115)),s=n(r(61655)),u=n(r(94993)),c=n(r(73808)),f=n(r(29399)),l=n(r(40426));Object.defineProperty(t,"__esModule",{value:!0}),t.createSignedBlockExtended=function(e,t,r,n,h){const p=e.createClass("SignedBlock");var b=(0,l.default)("author"),y=(0,l.default)("events"),g=(0,l.default)("extrinsics");return new(function(e){(0,s.default)(l,e);var t,r,n=(t=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,c.default)(t);if(r){var i=(0,c.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,u.default)(this,e)});function l(e,t,r,o,s){var u,c,h;return(0,i.default)(this,l),u=n.call(this,e,t),Object.defineProperty((0,a.default)(u),b,{writable:!0,value:void 0}),Object.defineProperty((0,a.default)(u),y,{writable:!0,value:void 0}),Object.defineProperty((0,a.default)(u),g,{writable:!0,value:void 0}),(0,f.default)((0,a.default)(u),b)[b]=s||(0,d.extractAuthor)(u.block.header.digest,o||[]),(0,f.default)((0,a.default)(u),y)[y]=r||[],(0,f.default)((0,a.default)(u),g)[g]=(c=u.block.extrinsics,h=(0,f.default)((0,a.default)(u),y)[y],c.map(((e,t)=>{let r,n;const i=h.filter((e=>{let{phase:r}=e;return r.isApplyExtrinsic&&r.asApplyExtrinsic.eq(t)})).map((e=>{let{event:t}=e;return"system"===t.section&&("ExtrinsicSuccess"===t.method?n=t.data[0]:"ExtrinsicFailed"===t.method&&(r=t.data[0],n=t.data[1])),t}));return{dispatchError:r,dispatchInfo:n,events:i,extrinsic:e}}))),u.createdAtHash=null==t?void 0:t.createdAtHash,u}return(0,o.default)(l,[{key:"author",get:function(){return(0,f.default)(this,b)[b]}},{key:"events",get:function(){return(0,f.default)(this,y)[y]}},{key:"extrinsics",get:function(){return(0,f.default)(this,g)[g]}}]),l}(p))(e,t,r,n,h)};var d=r(36429)},44101:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createHeaderExtended",{enumerable:!0,get:function(){return n.createHeaderExtended}}),Object.defineProperty(t,"createSignedBlockExtended",{enumerable:!0,get:function(){return i.createSignedBlockExtended}});var n=r(76421),i=r(64679)},36429:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extractAuthor=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const[r]=e.logs.filter((e=>e.isConsensus)),[n]=e.logs.filter((e=>e.isPreRuntime)),[i]=e.logs.filter((e=>e.isSeal));let o;try{if(n){const[e,r]=n.asPreRuntime;o=e.extractAuthor(r,t)}if(!o&&r){const[e,n]=r.asConsensus;o=e.extractAuthor(n,t)}if(!o&&i){const[e,r]=i.asSeal;o=e.extractAuthor(r,t)}}catch(e){}return o}},5397:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.approvalFlagsToBools=function(e){const t=[];for(let r=0;r<e.length;r++){const n=e[r].toString(2);for(const e of n.split("").reverse())t.push(!!parseInt(e,10))}const r=t.lastIndexOf(!0);return r>=0?t.slice(0,r+1):[]}},96660:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unwrapBlockNumber=function(e){return(0,n.isCompact)(e.number)?e.number.unwrap():e.number};var n=r(86879)},1905:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deriveCache=void 0,t.setDeriveCache=a;var n=r(64708);const i=6048e5;let o;function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0;t.deriveCache=o=r?function(e,t){return{del:r=>t.del(`${e}${r}`),forEach:t.forEach,get:r=>{const n=`${e}${r}`,i=t.get(n);if(i)return i.x=Date.now(),t.set(n,i),i.v},set:(r,n)=>{t.set(`${e}${r}`,{v:n,x:Date.now()})}}}(`derive:${e}:`,r):n.deriveNoopCache,r&&function(e){const t=Date.now(),r=[];e.forEach(((e,n)=>{let{x:o}=n;t-o>i&&r.push(e)})),r.forEach((t=>e.del(t)))}(r)}t.deriveCache=o,a()},64708:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deriveNoopCache=t.deriveMapCache=void 0;const r=new Map,n={del:e=>{r.delete(e)},forEach:e=>{for(const[t,n]of r.entries())e(t,n)},get:e=>r.get(e),set:(e,t)=>{r.set(e,t)}};t.deriveMapCache=n;t.deriveNoopCache={del:()=>{},forEach:()=>{},get:()=>{},set:(e,t)=>t}},81442:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.firstMemo=function(e){return(t,r)=>(0,i.memo)(t,(function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return o(e(r,...n))}))},t.firstObservable=o;var n=r(72872),i=r(82758);function o(e){return e.pipe((0,n.map)((e=>{let[t]=e;return t})))}},58105:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={drr:!0,memo:!0};Object.defineProperty(t,"drr",{enumerable:!0,get:function(){return i.drr}}),Object.defineProperty(t,"memo",{enumerable:!0,get:function(){return i.memo}});var i=r(82758),o=r(5397);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=r(96660);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var s=r(1905);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var u=r(64708);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var c=r(81442);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var f=r(91337);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))}))},91337:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lazyDeriveSection=function(e,t,r,i){(0,n.lazyMethod)(e,t,(()=>(0,n.lazyMethods)({},r(t),(e=>i(t,e)))))};var n=r(86879)},64759:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.knownGenesis=void 0,t.knownGenesis={acala:["0xfc41b9bd8ef8fe53d58c7ea67c794c7ec9a73daf05e6d54b14ff6342c99ba64c"],ajuna:["0xe358eb1d11b31255a286c12e44fe6780b7edb171d657905a97e39f71d9c6c3ee"],"aleph-node":["0x70255b4d28de0fc4e1a193d7e175ad1ccef431598211c55538f1018651a0344e"],astar:["0x9eb76c5184c4ab8679d2d5d819fdf90b9c001403e9e17da2e14b6d8aec4029c6"],basilisk:["0xa85cfb9b9fd4d622a5b28289a02347af987d8f73fa3108450e2b4a11c1ce5755"],bifrost:["0x262e1b2ad728475fd6fe88e62d34c200abe6fd693931ddad144059b1eb884e5b"],"bifrost-kusama":["0x9f28c6a68e0fc9646eff64935684f6eeeece527e37bbe1f213d22caa1d9d6bed"],centrifuge:["0xb3db41421702df9a7fcac62b53ffeac85f7853cc4e689e0b93aeb3db18c09d82","0x67dddf2673b69e5f875f6f25277495834398eafd67f492e09f3f3345e003d1b5"],composable:["0xdaab8df776eb52ec604a5df5d388bb62a050a0aaec4556a64265b9d42755552d"],darwinia:["0xe71578b37a7c799b0ab4ee87ffa6f059a6b98f71f06fb8c84a8d88013a548ad6"],"dock-mainnet":["0x6bfe24dca2a3be10f22212678ac13a6446ec764103c0f3471c71609eac384aae","0xf73467c6544aa68df2ee546b135f955c46b90fa627e9b5d7935f41061bb8a5a9"],edgeware:["0x742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b"],equilibrium:["0x6f1a800de3daff7f5e037ddf66ab22ce03ab91874debeddb1086f5f7dbd48925"],genshiro:["0x9b8cefc0eb5c568b527998bdd76c184e2b76ae561be76e4667072230217ea243"],hydradx:["0xafdc188f45c71dacbaa0b62e16a91f726c7b8699a9748cdf715459de6b7f366d","0xd2a620c27ec5cbc5621ff9a522689895074f7cca0d08e7134a7804e1a3ba86fc","0x10af6e84234477d84dc572bac0789813b254aa490767ed06fb9591191d1073f9","0x3d75507dd46301767e601265791da1d9cb47b6ebc94e87347b635e5bf58bd047","0x0ed32bfcab4a83517fac88f2aa7cbc2f88d3ab93be9a12b6188a036bf8a943c2"],"interlay-parachain":["0xbf88efe70e9e0e916416e8bed61f2b45717f517d7f3523e33c7b001e5ffcbc72"],karura:["0xbaf5aabe40646d11f0ee8abbdc64f4a4b7674925cba08e4a05ff9ebed6e2126b"],khala:["0xd43540ba6d3eb4897c28a77d48cb5b729fea37603cbbfc7a86a73b72adb3be8d"],kulupu:["0xf7a99d3cb92853d00d5275c971c132c074636256583fee53b3bbe60d7b8769ba"],kusama:["0xb0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe","0xe3777fa922cafbff200cadeaea1a76bd7898ad5b89f7848999058b50e715f636","0x3fd7b9eb6a00376e5be61f01abb429ffb0b104be05eaff4d458da48fcd425baf"],nodle:["0x97da7ede98d7bad4e36b4d734b6055425a3be036da2a332ea5a7037656427a21"],origintrail:["0xe7e0962324a3b86c83404dbea483f25fb5dab4c224791c81b756cfc948006174"],parallel:["0xe61a41c53f5dcd0beb09df93b34402aada44cb05117b71059cce40a2723a4e97"],phala:["0x1bb969d85965e4bb5a651abbedf21a54b6b31a21f66b5401cc3f1e286268d736"],picasso:["0x6811a339673c9daa897944dcdac99c6e2939cc88245ed21951a0a3c9a2be75bc","0xe8e7f0f4c4f5a00720b4821dbfddefea7490bcf0b19009961cc46957984e2c1c"],polkadex:["0x3920bcb4960a1eef5580cd5367ff3f430eef052774f78468852f7b9cb39f8a3c"],polkadot:["0x91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3"],polymesh:["0x6fbd74e5e1d0a61d52ccfe9d4adaed16dd3a7caa37c6bc4d0c2fa12e8b2f4063"],rococo:["0x6408de7737c59c238890533af25896a2c20608d8b380bb01029acb392781063e","0xaaf2cd1b74b5f726895921259421b534124726263982522174147046b8827897","0x037f5f3c8e67b314062025fc886fcd6238ea25a4a9b45dce8d246815c9ebe770","0xc196f81260cf1686172b47a79cf002120735d7cb0eb1474e8adce56618456fff","0xf6e9983c37baf68846fedafe21e56718790e39fb1c582abc408b81bc7b208f9a","0x5fce687da39305dfe682b117f0820b319348e8bb37eb16cf34acbf6a202de9d9","0xe7c3d5edde7db964317cd9b51a3a059d7cd99f81bdbce14990047354334c9779","0x1611e1dbf0405379b861e2e27daa90f480b2e6d3682414a80835a52e8cb8a215","0x343442f12fa715489a8714e79a7b264ea88c0d5b8c66b684a7788a516032f6b9","0x78bcd530c6b3a068bc17473cf5d2aff9c287102bed9af3ae3c41c33b9d6c6147","0x47381ee0697153d64404fc578392c8fd5cba9073391908f46c888498415647bd","0x19c0e4fa8ab75f5ac7865e0b8f74ff91eb9a100d336f423cd013a8befba40299"],sora:["0x7e4e32d0feafd4f9c9414b0be86373f9a1efa904809b683453a9af6856d38ad5"],stafi:["0x290a4149f09ea0e402c74c1c7e96ae4239588577fe78932f94f5404c68243d80"],statemine:["0x48239ef607d7928874027a43a67689209727dfb3d3dc5e5b03a39bdc2eda771a"],statemint:["0x68d56f15f85d3136970ec16946040bc1752654e906147f7e43e9d539d7c3de2f"],subsocial:["0x0bd72c1c305172e1275278aaeb3f161e02eccb7a819e63f62d47bd53a28189f8"],ternoa:["0x6859c81ca95ef624c9dfe4dc6e3381c33e5d6509e35e147092bfbc780f777c4e"],unique:["0x84322d9cddbf35088f1e54e9a85c967a41a56a4f43445768125e61af166c7d31"],vtb:["0x286bc8414c7000ce1d6ee6a834e29a54c1784814b76243eb77ed0b2c5573c60f","0x7483b89572fb2bd687c7b9a93b242d0b237f9aba463aba07ec24503931038aaa"],westend:["0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e"],xxnetwork:["0x50dd5d206917bf10502c68fb4d18a59fc8aa31586f4e8856b493e43544aa82aa"]}},78085:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.knownIcon=void 0,t.knownIcon={centrifuge:"polkadot",kusama:"polkadot",polkadot:"polkadot",sora:"polkadot",statemine:"polkadot",statemint:"polkadot",westmint:"polkadot"}},81160:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"knownGenesis",{enumerable:!0,get:function(){return n.knownGenesis}}),Object.defineProperty(t,"knownIcon",{enumerable:!0,get:function(){return i.knownIcon}}),Object.defineProperty(t,"knownLedger",{enumerable:!0,get:function(){return o.knownLedger}}),Object.defineProperty(t,"knownTestnet",{enumerable:!0,get:function(){return a.knownTestnet}});var n=r(64759),i=r(78085),o=r(82097),a=r(74241)},82097:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.knownLedger=void 0,t.knownLedger={acala:787,ajuna:354,"aleph-node":643,astar:810,bifrost:788,"bifrost-kusama":788,centrifuge:747,composable:354,darwinia:354,"dock-mainnet":594,edgeware:523,equilibrium:99999997,genshiro:99999996,hydradx:354,"interlay-parachain":354,karura:686,khala:434,kusama:434,nodle:1003,origintrail:354,parallel:354,phala:354,picasso:434,polkadex:799,polkadot:354,polymesh:595,sora:617,stafi:907,statemine:434,statemint:354,ternoa:995,unique:354,vtb:694,xxnetwork:1955}},74241:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.knownTestnet=void 0,t.knownTestnet={"":!0,"cess-testnet":!0,"dock-testnet":!0,jupiter:!0,"mathchain-testnet":!0,p3dt:!0,subspace_testnet:!0,"zero-alphaville":!0}},70927:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={packageInfo:!0};Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return o.packageInfo}});var i=r(8727);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=r(93862)},8727:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.selectableNetworks=t.availableNetworks=t.allNetworks=void 0;var i=n(r(72314)),o=r(81160);const a=[0,2,42],s=["testnet"],u=i.default.map((function(e){const t=e.network||"",r=t.replace(/_/g,"-").split("-"),n=e;return n.slip44=o.knownLedger[t],n.hasLedgerSupport=!!n.slip44,n.genesisHash=o.knownGenesis[t]||[],n.icon=o.knownIcon[t]||"substrate",n.isTestnet=!!o.knownTestnet[t]||s.includes(r[r.length-1]),n.isIgnored=n.isTestnet||!(e.standardAccount&&e.decimals&&e.decimals.length&&e.symbols&&e.symbols.length)&&42!==e.prefix,n}));t.allNetworks=u;const c=u.filter((function(e){return!e.isIgnored&&!!e.network})).sort((function(e,t){const r=a.includes(e.prefix);return r===a.includes(t.prefix)?r?0:e.displayName.localeCompare(t.displayName):r?-1:1}));t.availableNetworks=c;const f=c.filter((function(e){let{genesisHash:t,prefix:r}=e;return!!t.length||42===r}));t.selectableNetworks=f},93862:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/networks",path:"/",type:"cjs",version:"10.4.1"}},9067:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(29399)),s=n(r(40426));Object.defineProperty(t,"__esModule",{value:!0});var u={RpcCore:!0,packageInfo:!0};t.RpcCore=void 0,Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return h.packageInfo}});var c=r(72872),f=r(26700),l=r(86879),d=r(47415);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(u,e)||e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var h=r(16202);const p=(0,l.logger)("rpc-core"),b={fallback:void 0,modifier:{isOptional:!0},type:{asMap:{linked:{isTrue:!1}},isMap:!1}};function y(e,t,r){let{noErrorLog:n,params:i,type:o}=t;if(n)return;const a=i.map((e=>{let{isOptional:t,name:r,type:n}=e;return`${r}${t?"?":""}: ${n}`})).join(", ");p.error(`${e}(${a}): ${o}:: ${r.message}`)}function g(e){return["0x3a636f6465"].includes(e.toHex())}var m=(0,s.default)("instanceId"),v=(0,s.default)("registryDefault"),w=(0,s.default)("getBlockRegistry"),_=(0,s.default)("getBlockHash"),x=(0,s.default)("storageCache");let O=function(){function e(t,r,n){(0,i.default)(this,e),Object.defineProperty(this,m,{writable:!0,value:void 0}),Object.defineProperty(this,v,{writable:!0,value:void 0}),Object.defineProperty(this,w,{writable:!0,value:void 0}),Object.defineProperty(this,_,{writable:!0,value:void 0}),Object.defineProperty(this,x,{writable:!0,value:new Map}),this.mapping=new Map,this.sections=[];let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!n||!(0,l.isFunction)(n.send))throw new Error("Expected Provider to API create");(0,a.default)(this,m)[m]=t,(0,a.default)(this,v)[v]=r,this.provider=n;const s=Object.keys(f.rpcDefinitions);this.sections.push(...s),this.addUserInterfaces(o)}return(0,o.default)(e,[{key:"isConnected",get:function(){return this.provider.isConnected}},{key:"connect",value:function(){return this.provider.connect()}},{key:"disconnect",value:function(){return this.provider.disconnect()}},{key:"setRegistrySwap",value:function(e){(0,a.default)(this,w)[w]=(0,l.memoize)(e,{getInstanceId:()=>(0,a.default)(this,m)[m]})}},{key:"setResolveBlockHash",value:function(e){(0,a.default)(this,_)[_]=(0,l.memoize)(e,{getInstanceId:()=>(0,a.default)(this,m)[m]})}},{key:"addUserInterfaces",value:function(e){this.sections.push(...Object.keys(e).filter((e=>!this.sections.includes(e))));for(let t=0;t<this.sections.length;t++){const r=this.sections[t],n=(0,l.objectSpread)({},f.rpcDefinitions[r],e[r]),i=Object.keys(n);for(let e=0;e<i.length;e++){const t=i[e],o=n[t],a=o.endpoint||`${r}_${t}`;if(!this.mapping.has(a)){const e=!!o.pubsub;this[r]||(this[r]={}),this.mapping.set(a,(0,l.objectSpread)({},o,{isSubscription:e,jsonrpc:a,method:t,section:r})),(0,l.lazyMethod)(this[r],t,(()=>e?this._createMethodSubscribe(r,t,o):this._createMethodSend(r,t,o)))}}}}},{key:"_memomize",value:function(e,t){const r={getInstanceId:()=>(0,a.default)(this,m)[m]},n=(0,l.memoize)(e(!0),r);return n.raw=(0,l.memoize)(e(!1),r),n.meta=t,n}},{key:"_formatResult",value:function(e,t,r,n,i,o,a){return e?this._formatOutput(t,r,n,i,o,a):a}},{key:"_createMethodSend",value:function(e,t,r){const n=r.endpoint||`${e}_${t}`,i=r.params.findIndex((e=>{let{isHistoric:t}=e;return t}));let o=null;const s=async(e,o)=>{var s;const u=-1===i?null:o[i],c=u&&"BlockNumber"===r.params[i].type?await(null==(s=(0,a.default)(this,_)[_])?void 0:s.call(this,u)):u,{registry:f}=e&&c&&(0,a.default)(this,w)[w]?await(0,a.default)(this,w)[w]((0,l.u8aToU8a)(c)):{registry:(0,a.default)(this,v)[v]},d=this._formatInputs(f,null,r,o),h=await this.provider.send(n,d.map((e=>e.toJSON())),!!c);return this._formatResult(e,f,c,t,r,d,h)};return o=this._memomize((e=>function(){for(var n=arguments.length,a=new Array(n),u=0;u<n;u++)a[u]=arguments[u];const f=e&&-1!==i&&!!a[i];return new c.Observable((n=>(s(e,a).then((e=>{n.next(e),n.complete()})).catch((e=>{y(t,r,e),n.error(e),n.complete()})),()=>{var t,r;e?null==(t=o)||t.unmemoize(...a):null==(r=o)||r.raw.unmemoize(...a)}))).pipe((0,c.publishReplay)(1),f?(0,d.refCountDelay)():(0,c.refCount)())}),r),o}},{key:"_createSubscriber",value:function(e,t){let{paramsJson:r,subName:n,subType:i,update:o}=e;return new Promise(((e,a)=>{this.provider.subscribe(i,n,r,o).then(e).catch((e=>{t(e),a(e)}))}))}},{key:"_createMethodSubscribe",value:function(e,t,r){var n=this;const[i,o,s]=r.pubsub,u=`${e}_${o}`,f=`${e}_${s}`,h=`${e}_${i}`;let p=null;return p=this._memomize((e=>function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return new c.Observable((i=>{let s=Promise.resolve(null);const c=(0,a.default)(n,v)[v],d=e=>{y(t,r,e),i.error(e)};try{const a=n._formatInputs(c,null,r,o),f=a.map((e=>e.toJSON())),l=(o,s)=>{if(o)y(t,r,o);else try{i.next(n._formatResult(e,c,null,t,r,a,s))}catch(o){i.error(o)}};s=n._createSubscriber({paramsJson:f,subName:u,subType:h,update:l},d)}catch(e){d(e)}return()=>{var i,a;e?null==(i=p)||i.unmemoize(...o):null==(a=p)||a.raw.unmemoize(...o),s.then((e=>(0,l.isNull)(e)?Promise.resolve(!1):n.provider.unsubscribe(h,f,e))).catch((e=>y(t,r,e)))}})).pipe((0,d.drr)())}),r),p}},{key:"_formatInputs",value:function(e,t,r,n){const i=r.params.filter((e=>{let{isOptional:t}=e;return!t})).length,o=i===r.params.length?"":` (${r.params.length-i} optional)`;if(n.length<i||n.length>r.params.length)throw new Error(`Expected ${r.params.length} parameters${o}, ${n.length} found instead`);return n.map(((n,i)=>e.createTypeUnsafe(r.params[i].type,[n],{blockHash:t})))}},{key:"_formatOutput",value:function(e,t,r,n,i,o){if("StorageData"===n.type){const r=i[0];return this._formatStorageData(e,t,r,o)}if("StorageChangeSet"===n.type){const t=i[0];return t?this._formatStorageSet(e,o.block,t,o.changes):e.createType("StorageChangeSet",o)}if("Vec<StorageChangeSet>"===n.type){const t=o.map((t=>{let{block:r,changes:n}=t;return[e.createType("Hash",r),this._formatStorageSet(e,r,i[0],n)]}));return"queryStorageAt"===r?t[0][1]:t}return e.createTypeUnsafe(n.type,[o],{blockHash:t})}},{key:"_formatStorageData",value:function(e,t,r,n){const i=(0,l.isNull)(n),o=i?null:g(r)?n:(0,l.u8aToU8a)(n);return this._newType(e,t,r,o,i)}},{key:"_formatStorageSet",value:function(e,t,r,n){const i=1!==r.length;return r.reduce(((r,o,a)=>(r.push(this._formatStorageSetEntry(e,t,o,n,i,a)),r)),[])}},{key:"_formatStorageSetEntry",value:function(e,t,r,n,i,o){const s=r.toHex(),u=n.find((e=>{let[t]=e;return t===s})),c=(0,l.isUndefined)(u);if(c&&i){const e=(0,a.default)(this,x)[x].get(s);if(e)return e}const f=c?null:u[1],d=(0,l.isNull)(f),h=d||g(r)?f:(0,l.u8aToU8a)(f),p=this._newType(e,t,r,h,d,o);return(0,a.default)(this,x)[x].set(s,p),p}},{key:"_newType",value:function(e,t,r,n,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:-1;const a=r.outputType||"Raw",s=r.meta||b,u=-1===o?"":` entry ${o}:`;try{return e.createTypeUnsafe(a,[i?s.fallback?a.includes("Linkage<")?(0,l.u8aConcat)((0,l.hexToU8a)(s.fallback.toHex()),new Uint8Array(2)):(0,l.hexToU8a)(s.fallback.toHex()):void 0:s.modifier.isOptional?e.createTypeUnsafe(a,[n],{blockHash:t,isPedantic:!0}):n],{blockHash:t,isFallback:i&&!!s.fallback,isOptional:s.modifier.isOptional,isPedantic:!s.modifier.isOptional})}catch(e){throw new Error(`Unable to decode storage ${r.section||"unknown"}.${r.method||"unknown"}:${u}: ${e.message}`)}}}]),e}();t.RpcCore=O},19277:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(12130),i=r(10686),o=[n.packageInfo,i.packageInfo];t.default=o},27224:(e,t,r)=>{"use strict";var n=r(64836),i=r(86879),o=n(r(19277)),a=r(16202);(0,i.detectPackage)(a.packageInfo,null,o.default)},82758:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(27224);var n=r(9067);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}))},16202:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/rpc-core",path:"/",type:"cjs",version:"9.13.2"}},92755:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.drr=function(){let{delay:e,skipChange:t=!1,skipTimeout:r=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i=>i.pipe((0,n.catchError)(s),t?(0,n.tap)(u):(0,n.distinctUntilChanged)(a),(0,n.publishReplay)(1),r?(0,n.refCount)():(0,o.refCountDelay)(e))};var n=r(72872),i=r(86879),o=r(51713);function a(e,t){return(0,i.stringify)({t:e})===(0,i.stringify)({t})}function s(e){throw e}function u(){}},47415:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(92755);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}));var i=r(20925);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=r(51713);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}))},20925:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.memo=function(e,t){const r={getInstanceId:()=>e},a=(0,i.memoize)((function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return new n.Observable((e=>{const n=t(...r).subscribe(e);return()=>{a.unmemoize(...r),n.unsubscribe()}})).pipe((0,o.drr)())}),r);return a};var n=r(72872),i=r(86879),o=r(92755)},51713:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.refCountDelay=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1750;return t=>{let[r,i,o,a]=[0,0,n.Subscription.EMPTY,n.Subscription.EMPTY];return new n.Observable((s=>(t.subscribe(s),0==i++&&(1===r?a.unsubscribe():o=t.connect(),r=3),()=>{0==--i&&(2===r?(r=0,a.unsubscribe()):(r=1,a=n.asapScheduler.schedule((()=>{r=0,o.unsubscribe()}),e)))})))}};var n=r(72872)},75201:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addressToEvm=function(e,t){return(0,n.decodeAddress)(e,t).subarray(0,20)};var n=r(29060)},79014:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkAddress=function(e,t){let r;try{r=(0,n.base58Decode)(e)}catch(e){return[!1,e.message]}const[a,,,s]=(0,i.checkAddressChecksum)(r);return s!==t?[!1,`Prefix mismatch, expected ${t}, found ${s}`]:o.defaults.allowedEncodedLengths.includes(r.length)?[a,a?null:"Invalid decoded address checksum"]:[!1,"Invalid decoded address length"]};var n=r(10715),i=r(86531),o=r(52136)},86531:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkAddressChecksum=function(e){const t=64&e[0]?2:1,r=1===t?e[0]:(63&e[0])<<2|e[1]>>6|(63&e[1])<<8,i=[34+t,35+t].includes(e.length),o=e.length-(i?2:1),a=(0,n.sshash)(e.subarray(0,o));return[0==(128&e[0])&&![46,47].includes(e[0])&&(i?e[e.length-2]===a[0]&&e[e.length-1]===a[1]:e[e.length-1]===a[0]),o,t,r]};var n=r(79278)},29060:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeAddress=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;if(!e)throw new Error("Invalid empty address passed");if((0,n.isU8a)(e)||(0,n.isHex)(e))return(0,n.u8aToU8a)(e);try{const n=(0,i.base58Decode)(e);if(!a.defaults.allowedEncodedLengths.includes(n.length))throw new Error("Invalid decoded address length");const[s,u,c,f]=(0,o.checkAddressChecksum)(n);if(!s&&!t)throw new Error("Invalid decoded address checksum");if(-1!==r&&r!==f)throw new Error(`Expected ss58Format ${r}, received ${f}`);return n.slice(c,u)}catch(t){throw new Error(`Decoding ${e}: ${t.message}`)}};var n=r(86879),i=r(10715),o=r(86531),a=r(52136)},52136:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaults=void 0;const n={allowedDecodedLengths:[1,2,4,8,32,33],allowedEncodedLengths:[3,4,6,10,35,36,37,38],allowedPrefix:r(57128).availableNetworks.map((e=>{let{prefix:t}=e;return t})),prefix:42};t.defaults=n},24373:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deriveAddress=function(e,t,r){const{path:u}=(0,n.keyExtractPath)(t);if(!u.length||u.every(s))throw new Error("Expected suri to contain a combination of non-hard paths");let c=(0,o.decodeAddress)(e);for(const{chainCode:e}of u)c=(0,i.sr25519DerivePublic)(c,e);return(0,a.encodeAddress)(c,r)};var n=r(25535),i=r(95899),o=r(29060),a=r(5469);function s(e){let{isHard:t}=e;return t}},5469:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeAddress=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.defaults.prefix;const r=(0,o.decodeAddress)(e);if(t<0||t>16383||[46,47].includes(t))throw new Error("Out of range ss58Format specified");if(!a.defaults.allowedDecodedLengths.includes(r.length))throw new Error(`Expected a valid key to convert, with length ${a.defaults.allowedDecodedLengths.join(", ")}`);const u=(0,n.u8aConcat)(t<64?[t]:[(252&t)>>2|64,t>>8|(3&t)<<6],r);return(0,i.base58Encode)((0,n.u8aConcat)(u,(0,s.sshash)(u).subarray(0,[32,33].includes(r.length)?2:1)))};var n=r(86879),i=r(10715),o=r(29060),a=r(52136),s=r(79278)},50124:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeDerivedAddress=function(e,t,r){return(0,i.encodeAddress)((0,o.createKeyDerived)((0,n.decodeAddress)(e),t),r)};var n=r(29060),i=r(5469),o=r(73744)},21194:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeMultiAddress=function(e,t,r){return(0,n.encodeAddress)((0,i.createKeyMulti)(e,t),r)};var n=r(5469),i=r(79061)},18203:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addressEq=function(e,t){return(0,n.u8aEq)((0,i.decodeAddress)(e),(0,i.decodeAddress)(t))};var n=r(86879),i=r(29060)},37618:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.evmToAddress=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"blake2";const a=(0,n.u8aConcat)("evm:",e);if(24!==a.length)throw new Error(`Converting ${e}: Invalid evm address length`);return(0,o.encodeAddress)((0,i.hasher)(r,a),t)};var n=r(86879),i=r(1897),o=r(5469)},1031:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addressEq",{enumerable:!0,get:function(){return p.addressEq}}),Object.defineProperty(t,"addressToEvm",{enumerable:!0,get:function(){return n.addressToEvm}}),Object.defineProperty(t,"checkAddress",{enumerable:!0,get:function(){return i.checkAddress}}),Object.defineProperty(t,"checkAddressChecksum",{enumerable:!0,get:function(){return o.checkAddressChecksum}}),Object.defineProperty(t,"createKeyDerived",{enumerable:!0,get:function(){return s.createKeyDerived}}),Object.defineProperty(t,"createKeyMulti",{enumerable:!0,get:function(){return a.createKeyMulti}}),Object.defineProperty(t,"decodeAddress",{enumerable:!0,get:function(){return u.decodeAddress}}),Object.defineProperty(t,"deriveAddress",{enumerable:!0,get:function(){return c.deriveAddress}}),Object.defineProperty(t,"encodeAddress",{enumerable:!0,get:function(){return f.encodeAddress}}),Object.defineProperty(t,"encodeDerivedAddress",{enumerable:!0,get:function(){return l.encodeDerivedAddress}}),Object.defineProperty(t,"encodeMultiAddress",{enumerable:!0,get:function(){return d.encodeMultiAddress}}),Object.defineProperty(t,"evmToAddress",{enumerable:!0,get:function(){return h.evmToAddress}}),Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return b.isAddress}}),Object.defineProperty(t,"setSS58Format",{enumerable:!0,get:function(){return m.setSS58Format}}),Object.defineProperty(t,"sortAddresses",{enumerable:!0,get:function(){return y.sortAddresses}}),Object.defineProperty(t,"validateAddress",{enumerable:!0,get:function(){return g.validateAddress}});var n=r(75201),i=r(79014),o=r(86531),a=r(79061),s=r(73744),u=r(29060),c=r(24373),f=r(5469),l=r(50124),d=r(21194),h=r(37618),p=r(18203),b=r(41670),y=r(51898),g=r(98983),m=r(74862)},41670:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAddress=function(e,t,r){try{return(0,n.validateAddress)(e,t,r)}catch(e){return!1}};var n=r(98983)},73744:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createKeyDerived=function(e,t){return(0,i.blake2AsU8a)((0,n.u8aConcat)(s,(0,a.decodeAddress)(e),(0,n.bnToU8a)(t,o.BN_LE_16_OPTS)))};var n=r(86879),i=r(44607),o=r(24285),a=r(29060);const s=(0,n.stringToU8a)("modlpy/utilisuba")},79061:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createKeyMulti=function(e,t){return(0,i.blake2AsU8a)((0,n.u8aConcat)(s,(0,n.compactToU8a)(e.length),...(0,n.u8aSorted)(e.map(a.addressToU8a)),(0,n.bnToU8a)(t,o.BN_LE_16_OPTS)))};var n=r(86879),i=r(44607),o=r(24285),a=r(93435);const s=(0,n.stringToU8a)("modlpy/utilisuba")},74862:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setSS58Format=function(e){o.warn("Global setting of the ss58Format is deprecated and not recommended. Set format on the keyring (if used) or as part of the address encode function"),i.defaults.prefix=e};var n=r(86879),i=r(52136);const o=(0,n.logger)("setSS58Format")},51898:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sortAddresses=function(e,t){return(0,n.u8aSorted)(e.map(o.addressToU8a)).map((e=>(0,i.encodeAddress)(e,t)))};var n=r(86879),i=r(5469),o=r(93435)},79278:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sshash=function(e){return(0,i.blake2AsU8a)((0,n.u8aConcat)(o,e),512)};var n=r(86879),i=r(44607);const o=(0,n.stringToU8a)("SS58PRE")},93435:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addressToU8a=function(e){return(0,n.decodeAddress)(e)};var n=r(29060)},98983:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAddress=function(e,t,r){return!!(0,n.decodeAddress)(e,t,r)};var n=r(29060)},15603:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBase32=t.base32Validate=t.base32Encode=t.base32Decode=void 0;var n=r(39187),i=r(34715);const o="abcdefghijklmnopqrstuvwxyz234567",a={chars:o,coder:n.utils.chain(n.utils.radix2(5),n.utils.alphabet(o),{decode:e=>e.split(""),encode:e=>e.join("")}),ipfs:"b",type:"base32"},s=(0,i.createValidate)(a);t.base32Validate=s;const u=(0,i.createIs)(s);t.isBase32=u;const c=(0,i.createDecode)(a,s);t.base32Decode=c;const f=(0,i.createEncode)(a);t.base32Encode=f},34715:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDecode=function(e,t){let{coder:r,ipfs:n}=e;return(e,i)=>(t(e,i),r.decode(n&&i?e.substring(1):e))},t.createEncode=function(e){let{coder:t,ipfs:r}=e;return(e,i)=>{const o=t.encode((0,n.u8aToU8a)(e));return r&&i?`${r}${o}`:o}},t.createIs=function(e){return(t,r)=>{try{return e(t,r)}catch(e){return!1}}},t.createValidate=function(e){let{chars:t,ipfs:r,type:n}=e;return(e,i)=>{if(!e||"string"!=typeof e)throw new Error(`Expected non-null, non-empty ${n} string input`);if(r&&i&&e[0]!==r)throw new Error(`Expected ipfs-compatible ${n} to start with '${r}'`);for(let r=i?1:0;r<e.length;r++)if(!t.includes(e[r])&&("="!==e[r]||r!==e.length-1&&t.includes(e[r+1])))throw new Error(`Invalid ${n} character "${e[r]}" (0x${e.charCodeAt(r).toString(16)}) at index ${r}`);return!0}};var n=r(86879)},44296:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"base32Decode",{enumerable:!0,get:function(){return n.base32Decode}}),Object.defineProperty(t,"base32Encode",{enumerable:!0,get:function(){return n.base32Encode}}),Object.defineProperty(t,"base32Validate",{enumerable:!0,get:function(){return n.base32Validate}}),Object.defineProperty(t,"isBase32",{enumerable:!0,get:function(){return n.isBase32}});var n=r(15603)},90873:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBase58=t.base58Validate=t.base58Encode=t.base58Decode=void 0;var n=r(39187),i=r(34715);const o={chars:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",coder:n.base58,ipfs:"z",type:"base58"},a=(0,i.createValidate)(o);t.base58Validate=a;const s=(0,i.createDecode)(o,a);t.base58Decode=s;const u=(0,i.createEncode)(o);t.base58Encode=u;const c=(0,i.createIs)(a);t.isBase58=c},10715:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"base58Decode",{enumerable:!0,get:function(){return n.base58Decode}}),Object.defineProperty(t,"base58Encode",{enumerable:!0,get:function(){return n.base58Encode}}),Object.defineProperty(t,"base58Validate",{enumerable:!0,get:function(){return n.base58Validate}}),Object.defineProperty(t,"isBase58",{enumerable:!0,get:function(){return n.isBase58}});var n=r(90873)},66603:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBase64=t.base64Validate=t.base64Encode=t.base64Decode=void 0;var n=r(39187),i=r(34715);const o={chars:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",coder:n.base64,type:"base64"},a=(0,i.createValidate)(o);t.base64Validate=a;const s=(0,i.createIs)(a);t.isBase64=s;const u=(0,i.createDecode)(o,a);t.base64Decode=u;const c=(0,i.createEncode)(o);t.base64Encode=c},69375:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"base64Decode",{enumerable:!0,get:function(){return n.base64Decode}}),Object.defineProperty(t,"base64Encode",{enumerable:!0,get:function(){return n.base64Encode}}),Object.defineProperty(t,"base64Pad",{enumerable:!0,get:function(){return i.base64Pad}}),Object.defineProperty(t,"base64Trim",{enumerable:!0,get:function(){return o.base64Trim}}),Object.defineProperty(t,"base64Validate",{enumerable:!0,get:function(){return n.base64Validate}}),Object.defineProperty(t,"isBase64",{enumerable:!0,get:function(){return n.isBase64}});var n=r(66603),i=r(81662),o=r(49948)},81662:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.base64Pad=function(e){return e.padEnd(e.length+e.length%4,"=")}},49948:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.base64Trim=function(e){for(;e.length&&"="===e[e.length-1];)e=e.slice(0,-1);return e}},44607:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.blake2AsHex=void 0,t.blake2AsU8a=a;var n=r(30572),i=r(86879),o=r(56431);function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:256,r=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0;const s=Math.ceil(t/8),u=(0,i.u8aToU8a)(e);return!i.hasBigInt||!a&&(0,o.isReady)()?(0,o.blake2b)(u,(0,i.u8aToU8a)(r),s):(0,n.blake2b)(u,{dkLen:s,key:r||void 0})}const s=(0,r(78649).createAsHex)(a);t.blake2AsHex=s},16819:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"blake2AsHex",{enumerable:!0,get:function(){return n.blake2AsHex}}),Object.defineProperty(t,"blake2AsU8a",{enumerable:!0,get:function(){return n.blake2AsU8a}});var n=r(44607)},24285:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BN_LE_OPTS=t.BN_LE_512_OPTS=t.BN_LE_32_OPTS=t.BN_LE_256_OPTS=t.BN_LE_16_OPTS=t.BN_BE_OPTS=t.BN_BE_32_OPTS=t.BN_BE_256_OPTS=void 0,t.BN_BE_OPTS={isLe:!1},t.BN_LE_OPTS={isLe:!0},t.BN_LE_16_OPTS={bitLength:16,isLe:!0},t.BN_BE_32_OPTS={bitLength:32,isLe:!1},t.BN_LE_32_OPTS={bitLength:32,isLe:!0},t.BN_BE_256_OPTS={bitLength:256,isLe:!1},t.BN_LE_256_OPTS={bitLength:256,isLe:!0},t.BN_LE_512_OPTS={bitLength:512,isLe:!0}},91936:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={packageInfo:!0};Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return i.packageInfo}}),r(71050);var i=r(42448),o=r(1031);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=r(44296);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var s=r(10715);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var u=r(69375);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var c=r(16819);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var f=r(70447);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))}));var l=r(20433);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var d=r(20723);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var h=r(86705);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))}));var p=r(48747);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===p[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}}))}));var b=r(48341);Object.keys(b).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===b[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return b[e]}}))}));var y=r(49322);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===y[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return y[e]}}))}));var g=r(25535);Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===g[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return g[e]}}))}));var m=r(69171);Object.keys(m).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===m[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return m[e]}}))}));var v=r(57128);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===v[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return v[e]}}))}));var w=r(63780);Object.keys(w).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===w[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return w[e]}}))}));var _=r(85065);Object.keys(_).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===_[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return _[e]}}))}));var x=r(13690);Object.keys(x).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===x[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return x[e]}}))}));var O=r(14946);Object.keys(O).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===O[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return O[e]}}))}));var k=r(67548);Object.keys(k).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===k[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return k[e]}}))}));var P=r(45926);Object.keys(P).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===P[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return P[e]}}))}));var S=r(43339);Object.keys(S).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===S[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return S[e]}}))}));var A=r(95899);Object.keys(A).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===A[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return A[e]}}))}));var E=r(76043);Object.keys(E).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===E[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return E[e]}}))}))},71050:(e,t,r)=>{"use strict";r(7041);var n=r(47041),i=r(86879),o=r(70447),a=r(48747);n.utils.hmacSha256Sync=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return(0,a.hmacSha256AsU8a)(e,(0,i.u8aConcat)(...r))},(0,o.cryptoWaitReady)().catch((()=>{}))},70447:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cryptoIsReady=void 0,t.cryptoWaitReady=function(){return(0,n.waitReady)().then((()=>{if(!(0,n.isReady)())throw new Error("Unable to initialize @polkadot/util-crypto");return!0})).catch((()=>!1))};var n=r(56431);const i=n.isReady;t.cryptoIsReady=i},81312:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(93862),i=r(71460),o=r(38741),a=[n.packageInfo,i.packageInfo,o.packageInfo];t.default=a},50370:(e,t,r)=>{"use strict";var n=r(64836),i=r(86879),o=n(r(81312)),a=r(42448);(0,i.detectPackage)(a.packageInfo,null,o.default)},36589:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.convertPublicKeyToCurve25519=function(e){return(0,o.assertReturn)(i.default.convertPublicKey(e),"Unable to convert publicKey to ed25519")},t.convertSecretKeyToCurve25519=function(e){return i.default.convertSecretKey(e)};var i=n(r(75678)),o=r(86879)},32703:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ed25519DeriveHard=function(e,t){if(!(0,n.isU8a)(t)||32!==t.length)throw new Error("Invalid chainCode passed to derive");return(0,i.blake2AsU8a)((0,n.u8aConcat)(o,e,t))};var n=r(86879),i=r(44607);const o=(0,n.compactAddLength)((0,n.stringToU8a)("Ed25519HDKD"))},20433:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"convertPublicKeyToCurve25519",{enumerable:!0,get:function(){return n.convertPublicKeyToCurve25519}}),Object.defineProperty(t,"convertSecretKeyToCurve25519",{enumerable:!0,get:function(){return n.convertSecretKeyToCurve25519}}),Object.defineProperty(t,"ed25519DeriveHard",{enumerable:!0,get:function(){return i.ed25519DeriveHard}}),Object.defineProperty(t,"ed25519PairFromRandom",{enumerable:!0,get:function(){return o.ed25519PairFromRandom}}),Object.defineProperty(t,"ed25519PairFromSecret",{enumerable:!0,get:function(){return a.ed25519PairFromSecret}}),Object.defineProperty(t,"ed25519PairFromSeed",{enumerable:!0,get:function(){return s.ed25519PairFromSeed}}),Object.defineProperty(t,"ed25519PairFromString",{enumerable:!0,get:function(){return u.ed25519PairFromString}}),Object.defineProperty(t,"ed25519Sign",{enumerable:!0,get:function(){return c.ed25519Sign}}),Object.defineProperty(t,"ed25519Verify",{enumerable:!0,get:function(){return f.ed25519Verify}});var n=r(36589),i=r(32703),o=r(72545),a=r(28102),s=r(70220),u=r(33902),c=r(43053),f=r(30130)},72545:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ed25519PairFromRandom=function(){return(0,i.ed25519PairFromSeed)((0,n.randomAsU8a)())};var n=r(13690),i=r(70220)},28102:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.ed25519PairFromSecret=function(e){return i.default.sign.keyPair.fromSecretKey(e)};var i=n(r(50780))},70220:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.ed25519PairFromSeed=function(e,t){if(!t&&(0,o.isReady)()){const t=(0,o.ed25519KeypairFromSeed)(e);return{publicKey:t.slice(32),secretKey:t.slice(0,64)}}return i.default.sign.keyPair.fromSeed(e)};var i=n(r(50780)),o=r(56431)},33902:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ed25519PairFromString=function(e){return(0,o.ed25519PairFromSeed)((0,i.blake2AsU8a)((0,n.stringToU8a)(e)))};var n=r(86879),i=r(44607),o=r(70220)},43053:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.ed25519Sign=function(e,t,r){let{publicKey:n,secretKey:s}=t;if(!s)throw new Error("Expected a valid secretKey");const u=(0,o.u8aToU8a)(e);return!r&&(0,a.isReady)()?(0,a.ed25519Sign)(n,s.subarray(0,32),u):i.default.sign.detached(u,s)};var i=n(r(50780)),o=r(86879),a=r(56431)},30130:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.ed25519Verify=function(e,t,r,n){const s=(0,o.u8aToU8a)(e),u=(0,o.u8aToU8a)(r),c=(0,o.u8aToU8a)(t);if(32!==u.length)throw new Error(`Invalid publicKey, received ${u.length}, expected 32`);if(64!==c.length)throw new Error(`Invalid signature, received ${c.length} bytes, expected 64`);return!n&&(0,a.isReady)()?(0,a.ed25519Verify)(c,s,u):i.default.sign.detached.verify(s,c,u)};var i=n(r(50780)),o=r(86879),a=r(56431)},40959:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ethereumEncode=function(e){if(!e)return"0x";const t=(0,n.u8aToU8a)(e);if(![20,32,33,65].includes(t.length))throw new Error("Invalid address or publicKey passed");const r=(0,n.u8aToHex)(([33,65].includes((s=t).length)&&(s=(0,i.keccakAsU8a)((0,o.secp256k1Expand)(s))),s.slice(-20)),-1,!1),a=(0,n.u8aToHex)((0,i.keccakAsU8a)(r),-1,!1);var s;let u="";for(let e=0;e<40;e++)u=`${u}${parseInt(a[e],16)>7?r[e].toUpperCase():r[e]}`;return`0x${u}`};var n=r(86879),i=r(49322),o=r(67548)},20723:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ethereumEncode",{enumerable:!0,get:function(){return n.ethereumEncode}}),Object.defineProperty(t,"isEthereumAddress",{enumerable:!0,get:function(){return i.isEthereumAddress}}),Object.defineProperty(t,"isEthereumChecksum",{enumerable:!0,get:function(){return o.isEthereumChecksum}});var n=r(40959),i=r(11983),o=r(62792)},11983:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEthereumAddress=function(e){return!(!e||42!==e.length||!(0,n.isHex)(e))&&(!(!/^(0x)?[0-9a-f]{40}$/.test(e)&&!/^(0x)?[0-9A-F]{40}$/.test(e))||(0,i.isEthereumChecksum)(e))};var n=r(86879),i=r(62792)},62792:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEthereumChecksum=function(e){const t=e.replace("0x",""),r=(0,n.u8aToHex)((0,i.keccakAsU8a)(t.toLowerCase()),-1,!1);for(let e=0;e<40;e++)if((o=t[e])!==(parseInt(r[e],16)>7?o.toUpperCase():o.toLowerCase()))return!1;var o;return!0};var n=r(86879),i=r(49322)},65001:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hdEthereum=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const r=(0,o.hmacShaAsU8a)(u,e,512);let n=c(r.slice(0,32),r.slice(32));if(!t||"m"===t||"M"===t||"m'"===t||"M'"===t)return n;if(!(0,s.hdValidatePath)(t))throw new Error("Invalid derivation path");const i=t.split("/").slice(1);for(const e of i)n=f(n,parseInt(e,10)+(e.length>1&&e.endsWith("'")?s.HARDENED:0));return n};var n=r(86879),i=r(24285),o=r(48747),a=r(67548),s=r(36917);const u=(0,n.stringToU8a)("Bitcoin seed");function c(e,t){return{chainCode:t,publicKey:(0,a.secp256k1PairFromSeed)(e).publicKey,secretKey:e}}function f(e,t){const r=(0,n.bnToU8a)(t,i.BN_BE_32_OPTS),u=t>=s.HARDENED?(0,n.u8aConcat)(new Uint8Array(1),e.secretKey,r):(0,n.u8aConcat)(e.publicKey,r);try{const t=(0,o.hmacShaAsU8a)(e.chainCode,u,512);return c((0,a.secp256k1PrivateKeyTweakAdd)(e.secretKey,t.slice(0,32)),t.slice(32))}catch(r){return f(e,t+1)}}},86705:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hdEthereum",{enumerable:!0,get:function(){return n.hdEthereum}}),Object.defineProperty(t,"hdLedger",{enumerable:!0,get:function(){return i.hdLedger}}),Object.defineProperty(t,"hdValidatePath",{enumerable:!0,get:function(){return o.hdValidatePath}});var n=r(65001),i=r(60573),o=r(36917)},95566:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ledgerDerivePrivate=function(e,t){const r=e.subarray(0,32),a=e.subarray(32,64),s=e.subarray(64,96),u=(0,n.u8aConcat)([0],r,a,(0,n.bnToU8a)(t,i.BN_LE_32_OPTS)),c=(0,o.hmacShaAsU8a)(s,u,512);return u[0]=1,(0,n.u8aConcat)((0,n.bnToU8a)((0,n.u8aToBn)(r,i.BN_LE_OPTS).iadd((0,n.u8aToBn)(c.subarray(0,28),i.BN_LE_OPTS).imul(n.BN_EIGHT)),i.BN_LE_512_OPTS).subarray(0,32),(0,n.bnToU8a)((0,n.u8aToBn)(a,i.BN_LE_OPTS).iadd((0,n.u8aToBn)(c.subarray(32,64),i.BN_LE_OPTS)),i.BN_LE_512_OPTS).subarray(0,32),(0,o.hmacShaAsU8a)(s,u,512).subarray(32,64))};var n=r(86879),i=r(24285),o=r(48747)},60573:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hdLedger=function(e,t){const r=e.split(" ").map((e=>e.trim())).filter((e=>e));if(![12,24,25].includes(r.length))throw new Error("Expected a mnemonic with 24 words (or 25 including a password)");const[u,c]=25===r.length?[r.slice(0,24).join(" "),r[24]]:[r.join(" "),""];if(!(0,i.mnemonicValidate)(u))throw new Error("Invalid mnemonic passed to ledger derivation");if(!(0,o.hdValidatePath)(t))throw new Error("Invalid derivation path");const f=t.split("/").slice(1);let l=(0,s.ledgerMaster)(u,c);for(const e of f){const t=parseInt(e.replace(/'$/,""),10);l=(0,a.ledgerDerivePrivate)(l,t<o.HARDENED?t+o.HARDENED:t)}return(0,n.ed25519PairFromSeed)(l.slice(0,32))};var n=r(20433),i=r(69171),o=r(36917),a=r(95566),s=r(33499)},33499:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ledgerMaster=function(e,t){const r=(0,o.mnemonicToSeedSync)(e,t),s=(0,i.hmacShaAsU8a)(a,new Uint8Array([1,...r]),256);let u;for(;!u||32&u[31];)u=(0,i.hmacShaAsU8a)(a,u||r,512);return u[0]&=248,u[31]&=127,u[31]|=64,(0,n.u8aConcat)(u,s)};var n=r(86879),i=r(48747),o=r(29879);const a="ed25519 seed"},36917:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HARDENED=void 0,t.hdValidatePath=function(e){if(!e.startsWith("m/"))return!1;const t=e.split("/").slice(1);for(const e of t){const t=/^\d+'?$/.test(e)?parseInt(e.replace(/'$/,""),10):Number.NaN;if(isNaN(t)||t>=r||t<0)return!1}return!0};const r=2147483648;t.HARDENED=r},78649:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createAsHex=function(e){return function(){return(0,n.u8aToHex)(e(...arguments))}},t.createBitHasher=function(e,t){return(r,n)=>t(r,e,n)},t.createDualHasher=function(e,t){return function(r){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:256,a=arguments.length>2?arguments[2]:void 0;const s=(0,n.u8aToU8a)(r);return!n.hasBigInt||!a&&(0,i.isReady)()?e[o](s):t[o](s)}};var n=r(86879),i=r(56431)},48747:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hmacSha256AsU8a",{enumerable:!0,get:function(){return n.hmacSha256AsU8a}}),Object.defineProperty(t,"hmacSha512AsU8a",{enumerable:!0,get:function(){return n.hmacSha512AsU8a}}),Object.defineProperty(t,"hmacShaAsU8a",{enumerable:!0,get:function(){return n.hmacShaAsU8a}});var n=r(17624)},17624:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hmacSha512AsU8a=t.hmacSha256AsU8a=void 0,t.hmacShaAsU8a=l;var n=r(50708),i=r(41712),o=r(50416),a=r(86879),s=r(56431);const u={256:i.sha256,512:o.sha512},c={256:s.hmacSha256,512:s.hmacSha512};function f(e){return(t,r,n)=>l(t,r,e,n)}function l(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:256,i=arguments.length>3?arguments[3]:void 0;const o=(0,a.u8aToU8a)(e);return!a.hasBigInt||!i&&(0,s.isReady)()?c[r](o,t):(0,n.hmac)(u[r],o,t)}const d=f(256);t.hmacSha256AsU8a=d;const h=f(512);t.hmacSha512AsU8a=h},34070:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(50370);var n=r(91936);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}))},56430:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SCRYPT_LENGTH=t.NONCE_LENGTH=t.ENCODING_VERSION=t.ENCODING_NONE=t.ENCODING=void 0,t.ENCODING=["scrypt","xsalsa20-poly1305"],t.ENCODING_NONE=["none"],t.ENCODING_VERSION="3",t.NONCE_LENGTH=24,t.SCRYPT_LENGTH=44},5830:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.jsonDecrypt=function(e,t){let{encoded:r,encoding:a}=e;if(!r)throw new Error("No encrypted data available to decode");return(0,o.jsonDecryptData)((0,n.isHex)(r)?(0,n.hexToU8a)(r):(0,i.base64Decode)(r),t,Array.isArray(a.type)?a.type:[a.type])};var n=r(86879),i=r(69375),o=r(18450)},18450:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.jsonDecryptData=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.ENCODING;if(!e)throw new Error("No encrypted data available to decode");if(r.includes("xsalsa20-poly1305")&&!t)throw new Error("Password required to decode encrypted data");let s=e;if(t){let u;if(r.includes("scrypt")){const{params:r,salt:n}=(0,o.scryptFromU8a)(e);u=(0,o.scryptEncode)(t,n,r).password,e=e.subarray(a.SCRYPT_LENGTH)}else u=(0,n.stringToU8a)(t);s=(0,i.naclDecrypt)(e.subarray(a.NONCE_LENGTH),e.subarray(0,a.NONCE_LENGTH),(0,n.u8aFixLength)(u,256,!0))}if(!s)throw new Error("Unable to decode using the supplied passphrase");return s};var n=r(86879),i=r(63780),o=r(14946),a=r(56430)},65245:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.jsonEncrypt=function(e,t,r){let s=!1,u=e;if(r){const{params:e,password:t,salt:a}=(0,o.scryptEncode)(r),{encrypted:c,nonce:f}=(0,i.naclEncrypt)(u,t.subarray(0,32));s=!0,u=(0,n.u8aConcat)((0,o.scryptToU8a)(a,e),f,c)}return(0,a.jsonEncryptFormat)(u,t,s)};var n=r(86879),i=r(63780),o=r(14946),a=r(45016)},45016:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.jsonEncryptFormat=function(e,t,r){return{encoded:(0,n.base64Encode)(e),encoding:{content:t,type:r?i.ENCODING:i.ENCODING_NONE,version:i.ENCODING_VERSION}}};var n=r(69375),i=r(56430)},48341:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"jsonDecrypt",{enumerable:!0,get:function(){return n.jsonDecrypt}}),Object.defineProperty(t,"jsonDecryptData",{enumerable:!0,get:function(){return i.jsonDecryptData}}),Object.defineProperty(t,"jsonEncrypt",{enumerable:!0,get:function(){return o.jsonEncrypt}}),Object.defineProperty(t,"jsonEncryptFormat",{enumerable:!0,get:function(){return a.jsonEncryptFormat}});var n=r(5830),i=r(18450),o=r(65245),a=r(45016)},86389:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keccakAsU8a=t.keccakAsHex=t.keccak512AsU8a=t.keccak256AsU8a=void 0;var n=r(57661),i=r(56431),o=r(78649);const a=(0,o.createDualHasher)({256:i.keccak256,512:i.keccak512},{256:n.keccak_256,512:n.keccak_512});t.keccakAsU8a=a;const s=(0,o.createBitHasher)(256,a);t.keccak256AsU8a=s;const u=(0,o.createBitHasher)(512,a);t.keccak512AsU8a=u;const c=(0,o.createAsHex)(a);t.keccakAsHex=c},49322:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"keccak256AsU8a",{enumerable:!0,get:function(){return n.keccak256AsU8a}}),Object.defineProperty(t,"keccak512AsU8a",{enumerable:!0,get:function(){return n.keccak512AsU8a}}),Object.defineProperty(t,"keccakAsHex",{enumerable:!0,get:function(){return n.keccakAsHex}}),Object.defineProperty(t,"keccakAsU8a",{enumerable:!0,get:function(){return n.keccakAsU8a}});var n=r(86389)},52748:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(29399)),s=n(r(40426));Object.defineProperty(t,"__esModule",{value:!0}),t.DeriveJunction=void 0;var u=r(86879),c=r(44607),f=r(24285);const l=/^\d+$/;var d=(0,s.default)("chainCode"),h=(0,s.default)("isHard");let p=function(){function e(){(0,i.default)(this,e),Object.defineProperty(this,d,{writable:!0,value:new Uint8Array(32)}),Object.defineProperty(this,h,{writable:!0,value:!1})}return(0,o.default)(e,[{key:"chainCode",get:function(){return(0,a.default)(this,d)[d]}},{key:"isHard",get:function(){return(0,a.default)(this,h)[h]}},{key:"isSoft",get:function(){return!(0,a.default)(this,h)[h]}},{key:"hard",value:function(e){return this.soft(e).harden()}},{key:"harden",value:function(){return(0,a.default)(this,h)[h]=!0,this}},{key:"soft",value:function(e){return(0,u.isNumber)(e)||(0,u.isBn)(e)||(0,u.isBigInt)(e)?this.soft((0,u.bnToU8a)(e,f.BN_LE_256_OPTS)):(0,u.isHex)(e)?this.soft((0,u.hexToU8a)(e)):(0,u.isString)(e)?this.soft((0,u.compactAddLength)((0,u.stringToU8a)(e))):e.length>32?this.soft((0,c.blake2AsU8a)(e)):((0,a.default)(this,d)[d].fill(0),(0,a.default)(this,d)[d].set(e,0),this)}},{key:"soften",value:function(){return(0,a.default)(this,h)[h]=!1,this}}],[{key:"from",value:function(t){const r=new e,[n,i]=t.startsWith("/")?[t.substring(1),!0]:[t,!1];return r.soft(l.test(n)?new u.BN(n,10):n),i?r.harden():r}}]),e}();t.DeriveJunction=p},27290:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keyExtractPath=function(e){const t=e.match(i),r=[];let o="";if(t){o=t.join("");for(const e of t)r.push(n.DeriveJunction.from(e.substring(1)))}if(o!==e)throw new Error(`Re-constructed path "${o}" does not match input`);return{parts:t,path:r}};var n=r(52748);const i=/\/(\/?)([^/]+)/g},94160:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keyExtractSuri=function(e){const t=e.match(i);if(null===t)throw new Error("Unable to match provided value to a secret URI");const[,r,,o,,,a]=t,{path:s}=(0,n.keyExtractPath)(o);return{derivePath:o,password:a,path:s,phrase:r}};var n=r(27290);const i=/^(\w+( \w+)*)((\/\/?[^/]+)*)(\/\/\/(.*))?$/},23826:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keyFromPath=function(e,t,r){const n=a[r];let i=e;for(const e of t)i=n(i,e);return i};var n=r(93689),i=r(3076),o=r(87818);const a={ecdsa:n.keyHdkdEcdsa,ed25519:i.keyHdkdEd25519,ethereum:n.keyHdkdEcdsa,sr25519:o.keyHdkdSr25519}},61627:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSeedDeriveFn=function(e,t){return(r,n)=>{let{chainCode:i,isHard:o}=n;if(!o)throw new Error("A soft key was found in the path and is not supported");return e(t(r.secretKey.subarray(0,32),i))}}},93689:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keyHdkdEcdsa=void 0;var n=r(10953),i=r(237);const o=(0,r(61627).createSeedDeriveFn)(i.secp256k1PairFromSeed,n.secp256k1DeriveHard);t.keyHdkdEcdsa=o},3076:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keyHdkdEd25519=void 0;var n=r(20433);const i=(0,r(61627).createSeedDeriveFn)(n.ed25519PairFromSeed,n.ed25519DeriveHard);t.keyHdkdEd25519=i},87818:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keyHdkdSr25519=function(e,t){let{chainCode:r,isSoft:o}=t;return o?(0,i.sr25519DeriveSoft)(e,r):(0,n.sr25519DeriveHard)(e,r)};var n=r(72698),i=r(26778)},25535:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"keyExtractPath",{enumerable:!0,get:function(){return n.keyExtractPath}}),Object.defineProperty(t,"keyExtractSuri",{enumerable:!0,get:function(){return i.keyExtractSuri}}),Object.defineProperty(t,"keyFromPath",{enumerable:!0,get:function(){return o.keyFromPath}}),Object.defineProperty(t,"keyHdkdEcdsa",{enumerable:!0,get:function(){return u.keyHdkdEcdsa}}),Object.defineProperty(t,"keyHdkdEd25519",{enumerable:!0,get:function(){return a.keyHdkdEd25519}}),Object.defineProperty(t,"keyHdkdSr25519",{enumerable:!0,get:function(){return s.keyHdkdSr25519}});var n=r(27290),i=r(94160),o=r(23826),a=r(3076),s=r(87818),u=r(93689)},48410:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r="abandon|ability|able|about|above|absent|absorb|abstract|absurd|abuse|access|accident|account|accuse|achieve|acid|acoustic|acquire|across|act|action|actor|actress|actual|adapt|add|addict|address|adjust|admit|adult|advance|advice|aerobic|affair|afford|afraid|again|age|agent|agree|ahead|aim|air|airport|aisle|alarm|album|alcohol|alert|alien|all|alley|allow|almost|alone|alpha|already|also|alter|always|amateur|amazing|among|amount|amused|analyst|anchor|ancient|anger|angle|angry|animal|ankle|announce|annual|another|answer|antenna|antique|anxiety|any|apart|apology|appear|apple|approve|april|arch|arctic|area|arena|argue|arm|armed|armor|army|around|arrange|arrest|arrive|arrow|art|artefact|artist|artwork|ask|aspect|assault|asset|assist|assume|asthma|athlete|atom|attack|attend|attitude|attract|auction|audit|august|aunt|author|auto|autumn|average|avocado|avoid|awake|aware|away|awesome|awful|awkward|axis|baby|bachelor|bacon|badge|bag|balance|balcony|ball|bamboo|banana|banner|bar|barely|bargain|barrel|base|basic|basket|battle|beach|bean|beauty|because|become|beef|before|begin|behave|behind|believe|below|belt|bench|benefit|best|betray|better|between|beyond|bicycle|bid|bike|bind|biology|bird|birth|bitter|black|blade|blame|blanket|blast|bleak|bless|blind|blood|blossom|blouse|blue|blur|blush|board|boat|body|boil|bomb|bone|bonus|book|boost|border|boring|borrow|boss|bottom|bounce|box|boy|bracket|brain|brand|brass|brave|bread|breeze|brick|bridge|brief|bright|bring|brisk|broccoli|broken|bronze|broom|brother|brown|brush|bubble|buddy|budget|buffalo|build|bulb|bulk|bullet|bundle|bunker|burden|burger|burst|bus|business|busy|butter|buyer|buzz|cabbage|cabin|cable|cactus|cage|cake|call|calm|camera|camp|can|canal|cancel|candy|cannon|canoe|canvas|canyon|capable|capital|captain|car|carbon|card|cargo|carpet|carry|cart|case|cash|casino|castle|casual|cat|catalog|catch|category|cattle|caught|cause|caution|cave|ceiling|celery|cement|census|century|cereal|certain|chair|chalk|champion|change|chaos|chapter|charge|chase|chat|cheap|check|cheese|chef|cherry|chest|chicken|chief|child|chimney|choice|choose|chronic|chuckle|chunk|churn|cigar|cinnamon|circle|citizen|city|civil|claim|clap|clarify|claw|clay|clean|clerk|clever|click|client|cliff|climb|clinic|clip|clock|clog|close|cloth|cloud|clown|club|clump|cluster|clutch|coach|coast|coconut|code|coffee|coil|coin|collect|color|column|combine|come|comfort|comic|common|company|concert|conduct|confirm|congress|connect|consider|control|convince|cook|cool|copper|copy|coral|core|corn|correct|cost|cotton|couch|country|couple|course|cousin|cover|coyote|crack|cradle|craft|cram|crane|crash|crater|crawl|crazy|cream|credit|creek|crew|cricket|crime|crisp|critic|crop|cross|crouch|crowd|crucial|cruel|cruise|crumble|crunch|crush|cry|crystal|cube|culture|cup|cupboard|curious|current|curtain|curve|cushion|custom|cute|cycle|dad|damage|damp|dance|danger|daring|dash|daughter|dawn|day|deal|debate|debris|decade|december|decide|decline|decorate|decrease|deer|defense|define|defy|degree|delay|deliver|demand|demise|denial|dentist|deny|depart|depend|deposit|depth|deputy|derive|describe|desert|design|desk|despair|destroy|detail|detect|develop|device|devote|diagram|dial|diamond|diary|dice|diesel|diet|differ|digital|dignity|dilemma|dinner|dinosaur|direct|dirt|disagree|discover|disease|dish|dismiss|disorder|display|distance|divert|divide|divorce|dizzy|doctor|document|dog|doll|dolphin|domain|donate|donkey|donor|door|dose|double|dove|draft|dragon|drama|drastic|draw|dream|dress|drift|drill|drink|drip|drive|drop|drum|dry|duck|dumb|dune|during|dust|dutch|duty|dwarf|dynamic|eager|eagle|early|earn|earth|easily|east|easy|echo|ecology|economy|edge|edit|educate|effort|egg|eight|either|elbow|elder|electric|elegant|element|elephant|elevator|elite|else|embark|embody|embrace|emerge|emotion|employ|empower|empty|enable|enact|end|endless|endorse|enemy|energy|enforce|engage|engine|enhance|enjoy|enlist|enough|enrich|enroll|ensure|enter|entire|entry|envelope|episode|equal|equip|era|erase|erode|erosion|error|erupt|escape|essay|essence|estate|eternal|ethics|evidence|evil|evoke|evolve|exact|example|excess|exchange|excite|exclude|excuse|execute|exercise|exhaust|exhibit|exile|exist|exit|exotic|expand|expect|expire|explain|expose|express|extend|extra|eye|eyebrow|fabric|face|faculty|fade|faint|faith|fall|false|fame|family|famous|fan|fancy|fantasy|farm|fashion|fat|fatal|father|fatigue|fault|favorite|feature|february|federal|fee|feed|feel|female|fence|festival|fetch|fever|few|fiber|fiction|field|figure|file|film|filter|final|find|fine|finger|finish|fire|firm|first|fiscal|fish|fit|fitness|fix|flag|flame|flash|flat|flavor|flee|flight|flip|float|flock|floor|flower|fluid|flush|fly|foam|focus|fog|foil|fold|follow|food|foot|force|forest|forget|fork|fortune|forum|forward|fossil|foster|found|fox|fragile|frame|frequent|fresh|friend|fringe|frog|front|frost|frown|frozen|fruit|fuel|fun|funny|furnace|fury|future|gadget|gain|galaxy|gallery|game|gap|garage|garbage|garden|garlic|garment|gas|gasp|gate|gather|gauge|gaze|general|genius|genre|gentle|genuine|gesture|ghost|giant|gift|giggle|ginger|giraffe|girl|give|glad|glance|glare|glass|glide|glimpse|globe|gloom|glory|glove|glow|glue|goat|goddess|gold|good|goose|gorilla|gospel|gossip|govern|gown|grab|grace|grain|grant|grape|grass|gravity|great|green|grid|grief|grit|grocery|group|grow|grunt|guard|guess|guide|guilt|guitar|gun|gym|habit|hair|half|hammer|hamster|hand|happy|harbor|hard|harsh|harvest|hat|have|hawk|hazard|head|health|heart|heavy|hedgehog|height|hello|helmet|help|hen|hero|hidden|high|hill|hint|hip|hire|history|hobby|hockey|hold|hole|holiday|hollow|home|honey|hood|hope|horn|horror|horse|hospital|host|hotel|hour|hover|hub|huge|human|humble|humor|hundred|hungry|hunt|hurdle|hurry|hurt|husband|hybrid|ice|icon|idea|identify|idle|ignore|ill|illegal|illness|image|imitate|immense|immune|impact|impose|improve|impulse|inch|include|income|increase|index|indicate|indoor|industry|infant|inflict|inform|inhale|inherit|initial|inject|injury|inmate|inner|innocent|input|inquiry|insane|insect|inside|inspire|install|intact|interest|into|invest|invite|involve|iron|island|isolate|issue|item|ivory|jacket|jaguar|jar|jazz|jealous|jeans|jelly|jewel|job|join|joke|journey|joy|judge|juice|jump|jungle|junior|junk|just|kangaroo|keen|keep|ketchup|key|kick|kid|kidney|kind|kingdom|kiss|kit|kitchen|kite|kitten|kiwi|knee|knife|knock|know|lab|label|labor|ladder|lady|lake|lamp|language|laptop|large|later|latin|laugh|laundry|lava|law|lawn|lawsuit|layer|lazy|leader|leaf|learn|leave|lecture|left|leg|legal|legend|leisure|lemon|lend|length|lens|leopard|lesson|letter|level|liar|liberty|library|license|life|lift|light|like|limb|limit|link|lion|liquid|list|little|live|lizard|load|loan|lobster|local|lock|logic|lonely|long|loop|lottery|loud|lounge|love|loyal|lucky|luggage|lumber|lunar|lunch|luxury|lyrics|machine|mad|magic|magnet|maid|mail|main|major|make|mammal|man|manage|mandate|mango|mansion|manual|maple|marble|march|margin|marine|market|marriage|mask|mass|master|match|material|math|matrix|matter|maximum|maze|meadow|mean|measure|meat|mechanic|medal|media|melody|melt|member|memory|mention|menu|mercy|merge|merit|merry|mesh|message|metal|method|middle|midnight|milk|million|mimic|mind|minimum|minor|minute|miracle|mirror|misery|miss|mistake|mix|mixed|mixture|mobile|model|modify|mom|moment|monitor|monkey|monster|month|moon|moral|more|morning|mosquito|mother|motion|motor|mountain|mouse|move|movie|much|muffin|mule|multiply|muscle|museum|mushroom|music|must|mutual|myself|mystery|myth|naive|name|napkin|narrow|nasty|nation|nature|near|neck|need|negative|neglect|neither|nephew|nerve|nest|net|network|neutral|never|news|next|nice|night|noble|noise|nominee|noodle|normal|north|nose|notable|note|nothing|notice|novel|now|nuclear|number|nurse|nut|oak|obey|object|oblige|obscure|observe|obtain|obvious|occur|ocean|october|odor|off|offer|office|often|oil|okay|old|olive|olympic|omit|once|one|onion|online|only|open|opera|opinion|oppose|option|orange|orbit|orchard|order|ordinary|organ|orient|original|orphan|ostrich|other|outdoor|outer|output|outside|oval|oven|over|own|owner|oxygen|oyster|ozone|pact|paddle|page|pair|palace|palm|panda|panel|panic|panther|paper|parade|parent|park|parrot|party|pass|patch|path|patient|patrol|pattern|pause|pave|payment|peace|peanut|pear|peasant|pelican|pen|penalty|pencil|people|pepper|perfect|permit|person|pet|phone|photo|phrase|physical|piano|picnic|picture|piece|pig|pigeon|pill|pilot|pink|pioneer|pipe|pistol|pitch|pizza|place|planet|plastic|plate|play|please|pledge|pluck|plug|plunge|poem|poet|point|polar|pole|police|pond|pony|pool|popular|portion|position|possible|post|potato|pottery|poverty|powder|power|practice|praise|predict|prefer|prepare|present|pretty|prevent|price|pride|primary|print|priority|prison|private|prize|problem|process|produce|profit|program|project|promote|proof|property|prosper|protect|proud|provide|public|pudding|pull|pulp|pulse|pumpkin|punch|pupil|puppy|purchase|purity|purpose|purse|push|put|puzzle|pyramid|quality|quantum|quarter|question|quick|quit|quiz|quote|rabbit|raccoon|race|rack|radar|radio|rail|rain|raise|rally|ramp|ranch|random|range|rapid|rare|rate|rather|raven|raw|razor|ready|real|reason|rebel|rebuild|recall|receive|recipe|record|recycle|reduce|reflect|reform|refuse|region|regret|regular|reject|relax|release|relief|rely|remain|remember|remind|remove|render|renew|rent|reopen|repair|repeat|replace|report|require|rescue|resemble|resist|resource|response|result|retire|retreat|return|reunion|reveal|review|reward|rhythm|rib|ribbon|rice|rich|ride|ridge|rifle|right|rigid|ring|riot|ripple|risk|ritual|rival|river|road|roast|robot|robust|rocket|romance|roof|rookie|room|rose|rotate|rough|round|route|royal|rubber|rude|rug|rule|run|runway|rural|sad|saddle|sadness|safe|sail|salad|salmon|salon|salt|salute|same|sample|sand|satisfy|satoshi|sauce|sausage|save|say|scale|scan|scare|scatter|scene|scheme|school|science|scissors|scorpion|scout|scrap|screen|script|scrub|sea|search|season|seat|second|secret|section|security|seed|seek|segment|select|sell|seminar|senior|sense|sentence|series|service|session|settle|setup|seven|shadow|shaft|shallow|share|shed|shell|sheriff|shield|shift|shine|ship|shiver|shock|shoe|shoot|shop|short|shoulder|shove|shrimp|shrug|shuffle|shy|sibling|sick|side|siege|sight|sign|silent|silk|silly|silver|similar|simple|since|sing|siren|sister|situate|six|size|skate|sketch|ski|skill|skin|skirt|skull|slab|slam|sleep|slender|slice|slide|slight|slim|slogan|slot|slow|slush|small|smart|smile|smoke|smooth|snack|snake|snap|sniff|snow|soap|soccer|social|sock|soda|soft|solar|soldier|solid|solution|solve|someone|song|soon|sorry|sort|soul|sound|soup|source|south|space|spare|spatial|spawn|speak|special|speed|spell|spend|sphere|spice|spider|spike|spin|spirit|split|spoil|sponsor|spoon|sport|spot|spray|spread|spring|spy|square|squeeze|squirrel|stable|stadium|staff|stage|stairs|stamp|stand|start|state|stay|steak|steel|stem|step|stereo|stick|still|sting|stock|stomach|stone|stool|story|stove|strategy|street|strike|strong|struggle|student|stuff|stumble|style|subject|submit|subway|success|such|sudden|suffer|sugar|suggest|suit|summer|sun|sunny|sunset|super|supply|supreme|sure|surface|surge|surprise|surround|survey|suspect|sustain|swallow|swamp|swap|swarm|swear|sweet|swift|swim|swing|switch|sword|symbol|symptom|syrup|system|table|tackle|tag|tail|talent|talk|tank|tape|target|task|taste|tattoo|taxi|teach|team|tell|ten|tenant|tennis|tent|term|test|text|thank|that|theme|then|theory|there|they|thing|this|thought|three|thrive|throw|thumb|thunder|ticket|tide|tiger|tilt|timber|time|tiny|tip|tired|tissue|title|toast|tobacco|today|toddler|toe|together|toilet|token|tomato|tomorrow|tone|tongue|tonight|tool|tooth|top|topic|topple|torch|tornado|tortoise|toss|total|tourist|toward|tower|town|toy|track|trade|traffic|tragic|train|transfer|trap|trash|travel|tray|treat|tree|trend|trial|tribe|trick|trigger|trim|trip|trophy|trouble|truck|true|truly|trumpet|trust|truth|try|tube|tuition|tumble|tuna|tunnel|turkey|turn|turtle|twelve|twenty|twice|twin|twist|two|type|typical|ugly|umbrella|unable|unaware|uncle|uncover|under|undo|unfair|unfold|unhappy|uniform|unique|unit|universe|unknown|unlock|until|unusual|unveil|update|upgrade|uphold|upon|upper|upset|urban|urge|usage|use|used|useful|useless|usual|utility|vacant|vacuum|vague|valid|valley|valve|van|vanish|vapor|various|vast|vault|vehicle|velvet|vendor|venture|venue|verb|verify|version|very|vessel|veteran|viable|vibrant|vicious|victory|video|view|village|vintage|violin|virtual|virus|visa|visit|visual|vital|vivid|vocal|voice|void|volcano|volume|vote|voyage|wage|wagon|wait|walk|wall|walnut|want|warfare|warm|warrior|wash|wasp|waste|water|wave|way|wealth|weapon|wear|weasel|weather|web|wedding|weekend|weird|welcome|west|wet|whale|what|wheat|wheel|when|where|whip|whisper|wide|width|wife|wild|will|win|window|wine|wing|wink|winner|winter|wire|wisdom|wise|wish|witness|wolf|woman|wonder|wood|wool|word|work|world|worry|worth|wrap|wreck|wrestle|wrist|write|wrong|yard|year|yellow|you|young|youth|zebra|zero|zone|zoo".split("|");t.default=r},29879:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.entropyToMnemonic=g,t.generateMnemonic=function(e){return g((0,a.randomAsU8a)(e/3*4))},t.mnemonicToEntropy=y,t.mnemonicToSeedSync=function(e,t){return(0,o.pbkdf2Encode)((0,i.stringToU8a)(d(e)),(0,i.stringToU8a)(`mnemonic${d(t)}`)).password},t.validateMnemonic=function(e){try{y(e)}catch(e){return!1}return!0};var i=r(86879),o=r(85065),a=r(13690),s=r(45926),u=n(r(48410));const c="Invalid mnemonic",f="Invalid entropy",l="Invalid mnemonic checksum";function d(e){return(e||"").normalize("NFKD")}function h(e){return parseInt(e,2)}function p(e){return e.map((e=>e.toString(2).padStart(8,"0"))).join("")}function b(e){return p(Array.from((0,s.sha256AsU8a)(e))).slice(0,8*e.length/32)}function y(e){const t=d(e).split(" ");if(t.length%3!=0)throw new Error(c);const r=t.map((e=>{const t=u.default.indexOf(e);if(-1===t)throw new Error(c);return t.toString(2).padStart(11,"0")})).join(""),n=32*Math.floor(r.length/33),o=r.slice(0,n),a=r.slice(n),s=o.match(/(.{1,8})/g),p=s&&s.map(h);if(!p||p.length%4!=0||p.length<16||p.length>32)throw new Error(f);const y=(0,i.u8aToU8a)(p);if(b(y)!==a)throw new Error(l);return y}function g(e){if(e.length%4!=0||e.length<16||e.length>32)throw new Error(f);const t=`${p(Array.from(e))}${b(e)}`.match(/(.{1,11})/g),r=t&&t.map((e=>u.default[h(e)]));if(!r||r.length<12)throw new Error("Unable to map entropy to mnemonic");return r.join(" ")}},58599:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mnemonicGenerate=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:12,t=arguments.length>1?arguments[1]:void 0;return!n.hasBigInt||!t&&(0,i.isReady)()?(0,i.bip39Generate)(e):(0,o.generateMnemonic)(e)};var n=r(86879),i=r(56431),o=r(29879)},69171:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"mnemonicGenerate",{enumerable:!0,get:function(){return n.mnemonicGenerate}}),Object.defineProperty(t,"mnemonicToEntropy",{enumerable:!0,get:function(){return i.mnemonicToEntropy}}),Object.defineProperty(t,"mnemonicToLegacySeed",{enumerable:!0,get:function(){return o.mnemonicToLegacySeed}}),Object.defineProperty(t,"mnemonicToMiniSecret",{enumerable:!0,get:function(){return a.mnemonicToMiniSecret}}),Object.defineProperty(t,"mnemonicValidate",{enumerable:!0,get:function(){return s.mnemonicValidate}});var n=r(58599),i=r(48900),o=r(29162),a=r(80519),s=r(56297)},48900:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mnemonicToEntropy=function(e,t){return!n.hasBigInt||!t&&(0,i.isReady)()?(0,i.bip39ToEntropy)(e):(0,o.mnemonicToEntropy)(e)};var n=r(86879),i=r(56431),o=r(29879)},29162:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mnemonicToLegacySeed=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:32;if(!(0,a.mnemonicValidate)(e))throw new Error("Invalid bip39 mnemonic specified");if(![32,64].includes(s))throw new Error(`Invalid seed length ${s}, expected 32 or 64`);return 32===s?!n.hasBigInt||!r&&(0,i.isReady)()?(0,i.bip39ToSeed)(e,t):(0,o.mnemonicToSeedSync)(e,t).subarray(0,32):(0,o.mnemonicToSeedSync)(e,t)};var n=r(86879),i=r(56431),o=r(29879),a=r(56297)},80519:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mnemonicToMiniSecret=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0;if(!(0,s.mnemonicValidate)(e))throw new Error("Invalid bip39 mnemonic specified");if(!r&&(0,i.isReady)())return(0,i.bip39ToMiniSecret)(e,t);const u=(0,a.mnemonicToEntropy)(e),c=(0,n.stringToU8a)(`mnemonic${t}`);return(0,o.pbkdf2Encode)(u,c).password.slice(0,32)};var n=r(86879),i=r(56431),o=r(85065),a=r(48900),s=r(56297)},56297:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mnemonicValidate=function(e,t){return!n.hasBigInt||!t&&(0,i.isReady)()?(0,i.bip39Validate)(e):(0,o.validateMnemonic)(e)};var n=r(86879),i=r(56431),o=r(29879)},37298:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.naclBoxPairFromSecret=function(e){return i.default.box.keyPair.fromSecretKey(e.slice(0,32))};var i=n(r(50780))},70111:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.naclDecrypt=function(e,t,r){return i.default.secretbox.open(e,t,r)||null};var i=n(r(50780))},20186:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.naclEncrypt=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,o.randomAsU8a)(24);return{encrypted:i.default.secretbox(e,r,t),nonce:r}};var i=n(r(50780)),o=r(90594)},63780:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"naclBoxPairFromSecret",{enumerable:!0,get:function(){return o.naclBoxPairFromSecret}}),Object.defineProperty(t,"naclDecrypt",{enumerable:!0,get:function(){return n.naclDecrypt}}),Object.defineProperty(t,"naclEncrypt",{enumerable:!0,get:function(){return i.naclEncrypt}}),Object.defineProperty(t,"naclOpen",{enumerable:!0,get:function(){return a.naclOpen}}),Object.defineProperty(t,"naclSeal",{enumerable:!0,get:function(){return s.naclSeal}});var n=r(70111),i=r(20186),o=r(37298),a=r(6412),s=r(33010)},6412:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.naclOpen=function(e,t,r,n){return i.default.box.open(e,t,r,n)||null};var i=n(r(50780))},33010:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.naclSeal=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:(0,o.randomAsU8a)(24);return{nonce:n,sealed:i.default.box(e,n,r,t)}};var i=n(r(50780)),o=r(90594)},57128:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"allNetworks",{enumerable:!0,get:function(){return n.allNetworks}}),Object.defineProperty(t,"availableNetworks",{enumerable:!0,get:function(){return n.availableNetworks}}),Object.defineProperty(t,"selectableNetworks",{enumerable:!0,get:function(){return n.selectableNetworks}});var n=r(70927)},42448:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/util-crypto",path:"/",type:"cjs",version:"10.4.1"}},63570:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pbkdf2Encode=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,s.randomAsU8a)(),r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2048,u=arguments.length>3?arguments[3]:void 0;const c=(0,o.u8aToU8a)(e),f=(0,o.u8aToU8a)(t);return{password:!o.hasBigInt||!u&&(0,a.isReady)()?(0,a.pbkdf2)(c,f,r):(0,n.pbkdf2)(i.sha512,c,f,{c:r,dkLen:64}),rounds:r,salt:t}};var n=r(7169),i=r(50416),o=r(86879),a=r(56431),s=r(90594)},85065:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pbkdf2Encode",{enumerable:!0,get:function(){return n.pbkdf2Encode}});var n=r(63570)},61685:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomAsNumber=function(){return(0,n.hexToBn)((0,i.randomAsHex)(8)).and(o).toNumber()};var n=r(86879),i=r(90594);const o=new n.BN(9007199254740991)},90594:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomAsHex=void 0,t.randomAsU8a=i;var n=r(38741);function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32;return(0,n.getRandomValues)(new Uint8Array(e))}const o=(0,r(78649).createAsHex)(i);t.randomAsHex=o},13690:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"randomAsHex",{enumerable:!0,get:function(){return i.randomAsHex}}),Object.defineProperty(t,"randomAsNumber",{enumerable:!0,get:function(){return n.randomAsNumber}}),Object.defineProperty(t,"randomAsU8a",{enumerable:!0,get:function(){return i.randomAsU8a}});var n=r(61685),i=r(90594)},62009:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_PARAMS=void 0,t.DEFAULT_PARAMS={N:32768,p:1,r:8}},17196:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scryptEncode=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,a.randomAsU8a)(),r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.DEFAULT_PARAMS,u=arguments.length>3?arguments[3]:void 0;const c=(0,i.u8aToU8a)(e);return{params:r,password:!i.hasBigInt||!u&&(0,o.isReady)()?(0,o.scrypt)(c,t,Math.log2(r.N),r.r,r.p):(0,n.scrypt)(c,t,(0,i.objectSpread)({dkLen:64},r)),salt:t}};var n=r(58851),i=r(86879),o=r(56431),a=r(90594),s=r(62009)},841:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scryptFromU8a=function(e){const t=e.subarray(0,32),r=(0,n.u8aToBn)(e.subarray(32,36),i.BN_LE_OPTS).toNumber(),a=(0,n.u8aToBn)(e.subarray(36,40),i.BN_LE_OPTS).toNumber(),s=(0,n.u8aToBn)(e.subarray(40,44),i.BN_LE_OPTS).toNumber();if(r!==o.DEFAULT_PARAMS.N||a!==o.DEFAULT_PARAMS.p||s!==o.DEFAULT_PARAMS.r)throw new Error("Invalid injected scrypt params found");return{params:{N:r,p:a,r:s},salt:t}};var n=r(86879),i=r(24285),o=r(62009)},14946:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"scryptEncode",{enumerable:!0,get:function(){return n.scryptEncode}}),Object.defineProperty(t,"scryptFromU8a",{enumerable:!0,get:function(){return i.scryptFromU8a}}),Object.defineProperty(t,"scryptToU8a",{enumerable:!0,get:function(){return o.scryptToU8a}});var n=r(17196),i=r(841),o=r(23687)},23687:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scryptToU8a=function(e,t){let{N:r,p:o,r:a}=t;return(0,n.u8aConcat)(e,(0,n.bnToU8a)(r,i.BN_LE_32_OPTS),(0,n.bnToU8a)(o,i.BN_LE_32_OPTS),(0,n.bnToU8a)(a,i.BN_LE_32_OPTS))};var n=r(86879),i=r(24285)},89847:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.secp256k1Compress=function(e,t){if(33===e.length)return e;if(65!==e.length)throw new Error("Invalid publicKey provided");return!i.hasBigInt||!t&&(0,o.isReady)()?(0,o.secp256k1Compress)(e):n.Point.fromHex(e).toRawBytes(!0)};var n=r(47041),i=r(86879),o=r(56431)},10953:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.secp256k1DeriveHard=function(e,t){if(!(0,n.isU8a)(t)||32!==t.length)throw new Error("Invalid chainCode passed to derive");return(0,i.blake2AsU8a)((0,n.u8aConcat)(o,e,t),256)};var n=r(86879),i=r(44607);const o=(0,n.compactAddLength)((0,n.stringToU8a)("Secp256k1HDKD"))},74263:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.secp256k1Expand=function(e,t){if(65===e.length)return e.subarray(1);if(33!==e.length)throw new Error("Invalid publicKey provided");if(!i.hasBigInt||!t&&(0,o.isReady)())return(0,o.secp256k1Expand)(e).subarray(1);const{x:r,y:s}=n.Point.fromHex(e);return(0,i.u8aConcat)((0,i.bnToU8a)(r,a.BN_BE_256_OPTS),(0,i.bnToU8a)(s,a.BN_BE_256_OPTS))};var n=r(47041),i=r(86879),o=r(56431),a=r(24285)},1897:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasher=function(e,t,r){return"keccak"===e?(0,i.keccakAsU8a)(t,void 0,r):(0,n.blake2AsU8a)(t,void 0,void 0,r)};var n=r(16819),i=r(49322)},67548:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"secp256k1Compress",{enumerable:!0,get:function(){return n.secp256k1Compress}}),Object.defineProperty(t,"secp256k1Expand",{enumerable:!0,get:function(){return i.secp256k1Expand}}),Object.defineProperty(t,"secp256k1PairFromSeed",{enumerable:!0,get:function(){return o.secp256k1PairFromSeed}}),Object.defineProperty(t,"secp256k1PrivateKeyTweakAdd",{enumerable:!0,get:function(){return u.secp256k1PrivateKeyTweakAdd}}),Object.defineProperty(t,"secp256k1Recover",{enumerable:!0,get:function(){return a.secp256k1Recover}}),Object.defineProperty(t,"secp256k1Sign",{enumerable:!0,get:function(){return s.secp256k1Sign}}),Object.defineProperty(t,"secp256k1Verify",{enumerable:!0,get:function(){return c.secp256k1Verify}});var n=r(89847),i=r(74263),o=r(237),a=r(4413),s=r(29039),u=r(81586),c=r(3293)},237:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.secp256k1PairFromSeed=function(e,t){if(32!==e.length)throw new Error("Expected valid 32-byte private key as a seed");if(!i.hasBigInt||!t&&(0,o.isReady)()){const t=(0,o.secp256k1FromSeed)(e),r=t.slice(32);if((0,i.u8aEmpty)(r))throw new Error("Invalid publicKey generated from WASM interface");return{publicKey:r,secretKey:t.slice(0,32)}}return{publicKey:(0,n.getPublicKey)(e,!0),secretKey:e}};var n=r(47041),i=r(86879),o=r(56431)},4413:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.secp256k1Recover=function(e,t,r){let u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"blake2",c=arguments.length>4?arguments[4]:void 0;const f=(0,i.u8aToU8a)(t).subarray(0,64),l=(0,i.u8aToU8a)(e),d=!i.hasBigInt||!c&&(0,o.isReady)()?(0,o.secp256k1Recover)(l,f,r):(0,n.recoverPublicKey)(l,n.Signature.fromCompact(f).toRawBytes(),r);if(!d)throw new Error("Unable to recover publicKey from signature");return"keccak"===u?(0,s.secp256k1Expand)(d,c):(0,a.secp256k1Compress)(d,c)};var n=r(47041),i=r(86879),o=r(56431),a=r(89847),s=r(74263)},29039:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.secp256k1Sign=function(e,t){let{secretKey:r}=t,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"blake2",c=arguments.length>3?arguments[3]:void 0;if(32!==(null==r?void 0:r.length))throw new Error("Expected valid secp256k1 secretKey, 32-bytes");const f=(0,s.hasher)(u,e,c);if(!i.hasBigInt||!c&&(0,o.isReady)())return(0,o.secp256k1Sign)(f,r);const[l,d]=(0,n.signSync)(f,r,{canonical:!0,recovered:!0}),{r:h,s:p}=n.Signature.fromHex(l);return(0,i.u8aConcat)((0,i.bnToU8a)(h,a.BN_BE_256_OPTS),(0,i.bnToU8a)(p,a.BN_BE_256_OPTS),new Uint8Array([d||0]))};var n=r(47041),i=r(86879),o=r(56431),a=r(24285),s=r(1897)},81586:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.secp256k1PrivateKeyTweakAdd=function(e,t,r){if(!(0,n.isU8a)(e)||32!==e.length)throw new Error("Expected seckey to be an Uint8Array with length 32");if(!(0,n.isU8a)(t)||32!==t.length)throw new Error("Expected tweak to be an Uint8Array with length 32");return!n.hasBigInt||r?function(e,t){const r=new n.BN(t);if(r.cmp(u)>=0)throw new Error("Tweak parameter is out of range");if(r.iadd(new n.BN(e)),r.cmp(u)>=0&&r.isub(u),r.isZero())throw new Error("Invalid resulting private key");return(0,n.bnToU8a)(r,o.BN_BE_256_OPTS)}(e,t):function(e,t){let r=(0,n.u8aToBigInt)(t,o.BN_BE_OPTS);if(r>=s)throw new Error("Tweak parameter is out of range");if(r+=(0,n.u8aToBigInt)(e,o.BN_BE_OPTS),r>=s&&(r-=s),r===n._0n)throw new Error("Invalid resulting private key");return(0,n.nToU8a)(r,o.BN_BE_256_OPTS)}(e,t)};var n=r(86879),i=r(45649),o=r(24285);const a="ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141".replace(/ /g,""),s=(0,i.BigInt)(`0x${a}`),u=new n.BN(a,"hex")},3293:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.secp256k1Verify=function(e,t,r){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"blake2",s=arguments.length>4?arguments[4]:void 0;const u=(0,n.u8aToU8a)(t);if(65!==u.length)throw new Error(`Expected signature with 65 bytes, ${u.length} found instead`);const c=(0,o.secp256k1Recover)((0,i.hasher)(a,e),u,u[64],a,s),f=(0,i.hasher)(a,c,s),l=(0,n.u8aToU8a)(r);return(0,n.u8aEq)(c,l)||("keccak"===a?(0,n.u8aEq)(f.slice(-20),l.slice(-20)):(0,n.u8aEq)(f,l))};var n=r(86879),i=r(1897),o=r(4413)},29166:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shaAsU8a=t.sha512AsU8a=t.sha256AsU8a=void 0;var n=r(41712),i=r(50416),o=r(56431),a=r(78649);const s=(0,a.createDualHasher)({256:o.sha256,512:o.sha512},{256:n.sha256,512:i.sha512});t.shaAsU8a=s;const u=(0,a.createBitHasher)(256,s);t.sha256AsU8a=u;const c=(0,a.createBitHasher)(512,s);t.sha512AsU8a=c},45926:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"sha256AsU8a",{enumerable:!0,get:function(){return n.sha256AsU8a}}),Object.defineProperty(t,"sha512AsU8a",{enumerable:!0,get:function(){return n.sha512AsU8a}}),Object.defineProperty(t,"shaAsU8a",{enumerable:!0,get:function(){return n.shaAsU8a}});var n=r(29166)},43339:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"signatureVerify",{enumerable:!0,get:function(){return n.signatureVerify}});var n=r(36635)},36635:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.signatureVerify=function(e,t,r){const o=(0,n.u8aToU8a)(t);if(![64,65,66].includes(o.length))throw new Error(`Invalid signature length, expected [64..66] bytes, found ${o.length}`);const a=(0,i.decodeAddress)(r),s={message:(0,n.u8aToU8a)(e),publicKey:a,signature:o},u={crypto:"none",isValid:!1,isWrapped:(0,n.u8aIsWrapped)(s.message,!0),publicKey:a},c=(0,n.u8aIsWrapped)(s.message,!1),f=function(e){return[0,1,2].includes(e[0])&&[65,66].includes(e.length)?h:d}(o);return f(u,s),"none"!==u.crypto||u.isWrapped&&!c?u:(s.message=c?(0,n.u8aUnwrapBytes)(s.message):(0,n.u8aWrapBytes)(s.message),f(u,s))};var n=r(86879),i=r(29060),o=r(30130),a=r(3293),s=r(53664);const u=e=>(t,r,n)=>(0,a.secp256k1Verify)(t,r,n,e),c=[["ecdsa",u("blake2")],["ethereum",u("keccak")]],f=[["ed25519",o.ed25519Verify],["sr25519",s.sr25519Verify],...c],l=["ed25519","sr25519","ecdsa"];function d(e,t){let{message:r,publicKey:n,signature:i}=t,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f;return e.isValid=o.some((t=>{let[o,a]=t;try{if(a(r,i,n))return e.crypto=o,!0}catch(e){}return!1})),e}function h(e,t){let{message:r,publicKey:n,signature:i}=t;if(![0,1,2].includes(i[0]))throw new Error(`Unknown crypto type, expected signature prefix [0..2], found ${i[0]}`);const a=l[i[0]]||"none";e.crypto=a;try{e.isValid={ecdsa:()=>d(e,{message:r,publicKey:n,signature:i.subarray(1)},c).isValid,ed25519:()=>(0,o.ed25519Verify)(r,i.subarray(1),n),none:()=>{throw Error("no verify for `none` crypto type")},sr25519:()=>(0,s.sr25519Verify)(r,i.subarray(1),n)}[a]()}catch(e){}return e}},82045:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sr25519Agreement=function(e,t){const r=(0,n.u8aToU8a)(e),o=(0,n.u8aToU8a)(t);if(32!==o.length)throw new Error(`Invalid publicKey, received ${o.length} bytes, expected 32`);if(64!==r.length)throw new Error(`Invalid secretKey, received ${r.length} bytes, expected 64`);return(0,i.sr25519Agree)(o,r)};var n=r(86879),i=r(56431)},10630:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDeriveFn=function(e){return(t,r)=>{if(!(0,n.isU8a)(r)||32!==r.length)throw new Error("Invalid chainCode passed to derive");return(0,i.sr25519PairFromU8a)(e((0,o.sr25519KeypairToU8a)(t),r))}};var n=r(86879),i=r(89249),o=r(70331)},72698:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sr25519DeriveHard=void 0;var n=r(56431);const i=(0,r(10630).createDeriveFn)(n.sr25519DeriveKeypairHard);t.sr25519DeriveHard=i},58946:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sr25519DerivePublic=function(e,t){const r=(0,n.u8aToU8a)(e);if(!(0,n.isU8a)(t)||32!==t.length)throw new Error("Invalid chainCode passed to derive");if(32!==r.length)throw new Error(`Invalid publicKey, received ${r.length} bytes, expected 32`);return(0,i.sr25519DerivePublicSoft)(r,t)};var n=r(86879),i=r(56431)},26778:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sr25519DeriveSoft=void 0;var n=r(56431);const i=(0,r(10630).createDeriveFn)(n.sr25519DeriveKeypairSoft);t.sr25519DeriveSoft=i},95899:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"sr25519Agreement",{enumerable:!0,get:function(){return n.sr25519Agreement}}),Object.defineProperty(t,"sr25519DeriveHard",{enumerable:!0,get:function(){return i.sr25519DeriveHard}}),Object.defineProperty(t,"sr25519DerivePublic",{enumerable:!0,get:function(){return o.sr25519DerivePublic}}),Object.defineProperty(t,"sr25519DeriveSoft",{enumerable:!0,get:function(){return a.sr25519DeriveSoft}}),Object.defineProperty(t,"sr25519PairFromSeed",{enumerable:!0,get:function(){return s.sr25519PairFromSeed}}),Object.defineProperty(t,"sr25519Sign",{enumerable:!0,get:function(){return u.sr25519Sign}}),Object.defineProperty(t,"sr25519Verify",{enumerable:!0,get:function(){return c.sr25519Verify}}),Object.defineProperty(t,"sr25519VrfSign",{enumerable:!0,get:function(){return f.sr25519VrfSign}}),Object.defineProperty(t,"sr25519VrfVerify",{enumerable:!0,get:function(){return l.sr25519VrfVerify}});var n=r(82045),i=r(72698),o=r(58946),a=r(26778),s=r(83705),u=r(73093),c=r(53664),f=r(62722),l=r(39790)},83705:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sr25519PairFromSeed=function(e){const t=(0,n.u8aToU8a)(e);if(32!==t.length)throw new Error(`Expected a seed matching 32 bytes, found ${t.length}`);return(0,o.sr25519PairFromU8a)((0,i.sr25519KeypairFromSeed)(t))};var n=r(86879),i=r(56431),o=r(89249)},89249:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sr25519PairFromU8a=function(e){const t=(0,n.u8aToU8a)(e);if(t.length!==o)throw new Error(`Expected keypair with ${o} bytes, found ${t.length}`);return{publicKey:t.slice(i,o),secretKey:t.slice(0,i)}};var n=r(86879);const i=64,o=i+32},70331:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sr25519KeypairToU8a=function(e){let{publicKey:t,secretKey:r}=e;return(0,n.u8aConcat)(r,t).slice()};var n=r(86879)},73093:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sr25519Sign=function(e,t){let{publicKey:r,secretKey:o}=t;if(32!==(null==r?void 0:r.length))throw new Error("Expected a valid publicKey, 32-bytes");if(64!==(null==o?void 0:o.length))throw new Error("Expected a valid secretKey, 64-bytes");return(0,i.sr25519Sign)(r,o,(0,n.u8aToU8a)(e))};var n=r(86879),i=r(56431)},53664:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sr25519Verify=function(e,t,r){const o=(0,n.u8aToU8a)(r),a=(0,n.u8aToU8a)(t);if(32!==o.length)throw new Error(`Invalid publicKey, received ${o.length} bytes, expected 32`);if(64!==a.length)throw new Error(`Invalid signature, received ${a.length} bytes, expected 64`);return(0,i.sr25519Verify)(a,(0,n.u8aToU8a)(e),o)};var n=r(86879),i=r(56431)},62722:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sr25519VrfSign=function(e,t){let{secretKey:r}=t,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o;if(64!==(null==r?void 0:r.length))throw new Error("Invalid secretKey, expected 64-bytes");return(0,i.vrfSign)(r,(0,n.u8aToU8a)(a),(0,n.u8aToU8a)(e),(0,n.u8aToU8a)(s))};var n=r(86879),i=r(56431);const o=new Uint8Array},39790:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sr25519VrfVerify=function(e,t,r){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:o;const u=(0,n.u8aToU8a)(r),c=(0,n.u8aToU8a)(t);if(32!==u.length)throw new Error("Invalid publicKey, expected 32-bytes");if(96!==c.length)throw new Error("Invalid vrfSign output, expected 96 bytes");return(0,i.vrfVerify)(u,(0,n.u8aToU8a)(a),(0,n.u8aToU8a)(e),(0,n.u8aToU8a)(s),c)};var n=r(86879),i=r(56431);const o=new Uint8Array},16557:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.xxhashAsHex=void 0,t.xxhashAsU8a=s;var n=r(86879),i=r(56431),o=r(78649),a=r(71421);function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:64,r=arguments.length>2?arguments[2]:void 0;const o=Math.ceil(t/64),s=(0,n.u8aToU8a)(e);if(!n.hasBigInt||!r&&(0,i.isReady)())return(0,i.twox)(s,o);const u=new Uint8Array(8*o);for(let e=0;e<o;e++)u.set((0,a.xxhash64)(s,e).reverse(),8*e);return u}const u=(0,o.createAsHex)(s);t.xxhashAsHex=u},76043:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"xxhashAsHex",{enumerable:!0,get:function(){return n.xxhashAsHex}}),Object.defineProperty(t,"xxhashAsU8a",{enumerable:!0,get:function(){return n.xxhashAsU8a}});var n=r(16557)},71421:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.xxhash64=function(e,t){const{seed:r,u8a:p,u8asize:x,v1:S,v2:A,v3:E,v4:M}=function(e,t){if(t.length<32)return e.u8a.set(t),e.u8asize=t.length,e;const r=t.length-32;let n=0;if(r>=0){const i=e=>o*k(e+a*P(t,n,4),v);do{e.v1=i(e.v1),n+=8,e.v2=i(e.v2),n+=8,e.v3=i(e.v3),n+=8,e.v4=i(e.v4),n+=8}while(n<=r)}return n<t.length&&(e.u8a.set(t.subarray(n,t.length)),e.u8asize=t.length-n),e}(function(e){const t=(0,i.BigInt)(e);return{seed:t,u8a:new Uint8Array(32),u8asize:0,v1:t+o+a,v2:t+a,v3:t,v4:t-o}}(t),e);let j=0,T=f&(0,i.BigInt)(e.length)+(e.length>=32?((((k(S,n._1n)+k(A,l)+k(E,h)+k(M,b)^o*k(S*a,v))*o+u^o*k(A*a,v))*o+u^o*k(E*a,v))*o+u^o*k(M*a,v))*o+u:r+c);for(;j<=x-8;)T=f&u+o*k(T^o*k(a*P(p,j,4),v),g),j+=8;for(j+4<=x&&(T=f&s+a*k(T^o*P(p,j,2),y),j+=4);j<x;)T=f&o*k(T^c*(0,i.BigInt)(p[j++]),d);return T=f&a*(T^T>>_),T=f&s*(T^T>>m),function(e){const t=new Uint8Array(8);for(let r=7;r>=0;r--)t[r]=Number(e%O),e/=O;return t}(f&(T^T>>w))};var n=r(86879),i=r(45649);const o=(0,i.BigInt)("11400714785074694791"),a=(0,i.BigInt)("14029467366897019727"),s=(0,i.BigInt)("1609587929392839161"),u=(0,i.BigInt)("9650029242287828579"),c=(0,i.BigInt)("2870177450012600261"),f=(0,i.BigInt)("0xffffffffffffffff"),l=(0,i.BigInt)(7),d=(0,i.BigInt)(11),h=(0,i.BigInt)(12),p=(0,i.BigInt)(16),b=(0,i.BigInt)(18),y=(0,i.BigInt)(23),g=(0,i.BigInt)(27),m=(0,i.BigInt)(29),v=(0,i.BigInt)(31),w=(0,i.BigInt)(32),_=(0,i.BigInt)(33),x=(0,i.BigInt)(64),O=(0,i.BigInt)(256);function k(e,t){const r=e&f;return(r<<t|r>>x-t)&f}function P(e,t,r){const o=new Array(r);let a=0;for(let n=0;n<r;n++,a+=2)o[n]=(0,i.BigInt)(e[t+a]|e[t+1+a]<<8);let s=n._0n;for(let e=r-1;e>=0;e--)s=(s<<p)+o[e];return s}},80414:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayChunk=function(e,t){const r=Math.ceil(e.length/t);if(1===r)return[e];const n=Array(r);for(let i=0;i<r;i++){const r=i*t;n[i]=e.slice(r,r+t)}return n}},98012:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayFilter=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.filter((e=>void 0!==e&&(t||null!==e)))}},64880:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayFlatten=function(e){if(0===e.length)return[];if(1===e.length)return e[0];let t=0;for(let r=0;r<e.length;r++)t+=e[r].length;const r=new Array(t);let n=-1;for(let t=0;t<e.length;t++){const i=e[t];for(let e=0;e<i.length;e++)r[++n]=i[e]}return r}},57178:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"arrayChunk",{enumerable:!0,get:function(){return n.arrayChunk}}),Object.defineProperty(t,"arrayFilter",{enumerable:!0,get:function(){return i.arrayFilter}}),Object.defineProperty(t,"arrayFlatten",{enumerable:!0,get:function(){return o.arrayFlatten}}),Object.defineProperty(t,"arrayRange",{enumerable:!0,get:function(){return a.arrayRange}}),Object.defineProperty(t,"arrayShuffle",{enumerable:!0,get:function(){return s.arrayShuffle}}),Object.defineProperty(t,"arrayUnzip",{enumerable:!0,get:function(){return u.arrayUnzip}}),Object.defineProperty(t,"arrayZip",{enumerable:!0,get:function(){return c.arrayZip}});var n=r(80414),i=r(98012),o=r(64880),a=r(51981),s=r(81291),u=r(74607),c=r(68499)},51981:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayRange=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e<=0)throw new Error("Expected non-zero, positive number as a range size");const r=new Array(e);for(let n=0;n<e;n++)r[n]=n+t;return r}},81291:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayShuffle=function(e){const t=e.slice();let r=t.length;if(1===r)return t;for(;0!==r;){const e=~~(Math.random()*r);r--,[t[r],t[e]]=[t[e],t[r]]}return t}},74607:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayUnzip=function(e){const t=new Array(e.length),r=new Array(e.length);for(let n=0;n<e.length;n++)[t[n],r[n]]=e[n];return[t,r]}},68499:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayZip=function(e,t){const r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=[e[n],t[n]];return r}},35804:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assert=i,t.assertReturn=function(e,t){return i(null!=e,t),e},t.assertUnreachable=function(e){throw new Error(`This codepath should be unreachable. Unhandled input: ${e}`)};var n=r(43973);function i(e,t){if(!e)throw new Error((0,n.isFunction)(t)?t():t)}},29829:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._sqrt2pow53n=t._9n=t._8n=t._7n=t._6n=t._5n=t._4n=t._3n=t._2pow53n=t._2n=t._1n=t._1Qn=t._1Mn=t._1Bn=t._10n=t._100n=t._1000n=t._0n=void 0;var n=r(45649);const i=(0,n.BigInt)(0);t._0n=i;const o=(0,n.BigInt)(1);t._1n=o;const a=(0,n.BigInt)(2);t._2n=a;const s=(0,n.BigInt)(3);t._3n=s;const u=(0,n.BigInt)(4);t._4n=u;const c=(0,n.BigInt)(5);t._5n=c;const f=(0,n.BigInt)(6);t._6n=f;const l=(0,n.BigInt)(7);t._7n=l;const d=(0,n.BigInt)(8);t._8n=d;const h=(0,n.BigInt)(9);t._9n=h;const p=(0,n.BigInt)(10);t._10n=p;const b=(0,n.BigInt)(100);t._100n=b;const y=(0,n.BigInt)(1e3);t._1000n=y;const g=(0,n.BigInt)(1e6);t._1Mn=g;const m=(0,n.BigInt)(1e9);t._1Bn=m;const v=m*m;t._1Qn=v;const w=(0,n.BigInt)(Number.MAX_SAFE_INTEGER);t._2pow53n=w;const _=(0,n.BigInt)(94906265);t._sqrt2pow53n=_},28664:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCmp=function(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(0===r.length)throw new Error("Must provide one or more arguments");let i=r[0];for(let t=1;t<r.length;t++)e(r[t],i)&&(i=r[t]);return i}}},58095:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={nSqrt:!0,nToBigInt:!0,nMax:!0,nMin:!0,nToHex:!0,nToU8a:!0};Object.defineProperty(t,"nMax",{enumerable:!0,get:function(){return s.nMax}}),Object.defineProperty(t,"nMin",{enumerable:!0,get:function(){return s.nMin}}),Object.defineProperty(t,"nSqrt",{enumerable:!0,get:function(){return o.nSqrt}}),Object.defineProperty(t,"nToBigInt",{enumerable:!0,get:function(){return a.nToBigInt}}),Object.defineProperty(t,"nToHex",{enumerable:!0,get:function(){return u.nToHex}}),Object.defineProperty(t,"nToU8a",{enumerable:!0,get:function(){return c.nToU8a}});var i=r(29829);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=r(74417),a=r(29611),s=r(5864),u=r(43012),c=r(35942)},5864:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nMin=t.nMax=void 0;var n=r(28664);const i=(0,n.createCmp)(((e,t)=>e>t));t.nMax=i;const o=(0,n.createCmp)(((e,t)=>e<t));t.nMin=o},74417:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nSqrt=function(e){const t=(0,o.nToBigInt)(e);if(t<i._0n)throw new Error("square root of negative numbers is not supported");if(t<=i._2pow53n)return(0,n.BigInt)(~~Math.sqrt(Number(t)));let r=i._sqrt2pow53n;for(;;){const e=t/r+r>>i._1n;if(r===e||r===e-i._1n)return r;r=e}};var n=r(45649),i=r(29829),o=r(29611)},29611:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nToBigInt=function(e){return"bigint"==typeof e?e:e?(0,a.isHex)(e)?(0,i.hexToBigInt)(e.toString()):(0,o.isBn)(e)?(0,n.BigInt)(e.toString()):(0,s.isToBigInt)(e)?e.toBigInt():(0,u.isToBn)(e)?(0,n.BigInt)(e.toBn().toString()):(0,n.BigInt)(e):(0,n.BigInt)(0)};var n=r(45649),i=r(22544),o=r(95408),a=r(42125),s=r(25077),u=r(52470)},43012:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nToHex=function(e){let{bitLength:t,isLe:r=!1,isNegative:o=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.u8aToHex)((0,i.nToU8a)(e||0,{bitLength:t,isLe:r,isNegative:o}))};var n=r(6761),i=r(35942)},35942:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nToU8a=function(e){let{bitLength:t=-1,isLe:r=!0,isNegative:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const u=(0,o.nToBigInt)(e);if(u===i._0n)return-1===t?new Uint8Array(1):new Uint8Array(Math.ceil((t||0)/8));const c=function(e,t,r){const n=[];for(r&&(e=(e+i._1n)*-i._1n);e!==i._0n;){const i=e%a,o=Number(r?i^s:i);t?n.push(o):n.unshift(o),e=(e-i)/a}return Uint8Array.from(n)}(u,r,n);if(-1===t)return c;const f=Math.ceil((t||0)/8),l=new Uint8Array(f);return n&&l.fill(255),l.set(c,r?0:f-c.length),l};var n=r(45649),i=r(29829),o=r(29611);const a=(0,n.BigInt)(256),s=(0,n.BigInt)(255)},64205:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BN",{enumerable:!0,get:function(){return i.default}});var i=n(r(13550))},15257:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BN_ZERO=t.BN_TWO=t.BN_THREE=t.BN_THOUSAND=t.BN_TEN=t.BN_SQRT_MAX_INTEGER=t.BN_SIX=t.BN_SEVEN=t.BN_QUINTILL=t.BN_ONE=t.BN_NINE=t.BN_MILLION=t.BN_MAX_INTEGER=t.BN_HUNDRED=t.BN_FOUR=t.BN_FIVE=t.BN_EIGHT=t.BN_BILLION=void 0;var n=r(64205);const i=new n.BN(0);t.BN_ZERO=i;const o=new n.BN(1);t.BN_ONE=o;const a=new n.BN(2);t.BN_TWO=a;const s=new n.BN(3);t.BN_THREE=s;const u=new n.BN(4);t.BN_FOUR=u;const c=new n.BN(5);t.BN_FIVE=c;const f=new n.BN(6);t.BN_SIX=f;const l=new n.BN(7);t.BN_SEVEN=l;const d=new n.BN(8);t.BN_EIGHT=d;const h=new n.BN(9);t.BN_NINE=h;const p=new n.BN(10);t.BN_TEN=p;const b=new n.BN(100);t.BN_HUNDRED=b;const y=new n.BN(1e3);t.BN_THOUSAND=y;const g=new n.BN(1e6);t.BN_MILLION=g;const m=new n.BN(1e9);t.BN_BILLION=m;const v=m.mul(m);t.BN_QUINTILL=v;const w=new n.BN(Number.MAX_SAFE_INTEGER);t.BN_MAX_INTEGER=w;const _=new n.BN(94906265);t.BN_SQRT_MAX_INTEGER=_},37356:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bnFromHex",{enumerable:!0,get:function(){return n.hexToBn}});var n=r(16418)},18015:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={BN:!0,bnFromHex:!0,bnMax:!0,bnMin:!0,bnSqrt:!0,bnToBn:!0,bnToHex:!0,bnToU8a:!0};Object.defineProperty(t,"BN",{enumerable:!0,get:function(){return o.BN}}),Object.defineProperty(t,"bnFromHex",{enumerable:!0,get:function(){return a.bnFromHex}}),Object.defineProperty(t,"bnMax",{enumerable:!0,get:function(){return s.bnMax}}),Object.defineProperty(t,"bnMin",{enumerable:!0,get:function(){return s.bnMin}}),Object.defineProperty(t,"bnSqrt",{enumerable:!0,get:function(){return u.bnSqrt}}),Object.defineProperty(t,"bnToBn",{enumerable:!0,get:function(){return c.bnToBn}}),Object.defineProperty(t,"bnToHex",{enumerable:!0,get:function(){return f.bnToHex}}),Object.defineProperty(t,"bnToU8a",{enumerable:!0,get:function(){return l.bnToU8a}});var i=r(15257);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=r(64205),a=r(37356),s=r(18179),u=r(22052),c=r(67826),f=r(1132),l=r(69362)},18179:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnMin=t.bnMax=void 0;var n=r(28664);const i=(0,n.createCmp)(((e,t)=>e.gt(t)));t.bnMax=i;const o=(0,n.createCmp)(((e,t)=>e.lt(t)));t.bnMin=o},22052:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnSqrt=function(e){const t=(0,o.bnToBn)(e);if(t.isNeg())throw new Error("square root of negative numbers is not supported");if(t.lte(i.BN_MAX_INTEGER))return new n.BN(~~Math.sqrt(t.toNumber()));let r=i.BN_SQRT_MAX_INTEGER.clone();for(;;){const e=t.div(r).iadd(r).ishrn(1);if(r.eq(e)||r.eq(e.sub(i.BN_ONE)))return r;r=e}};var n=r(64205),i=r(15257),o=r(67826)},67826:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnToBn=function(e){return e?u.BN.isBN(e)?e:(0,o.isHex)(e)?(0,n.hexToBn)(e.toString()):(0,i.isBigInt)(e)?new u.BN(e.toString()):(0,s.isToBn)(e)?e.toBn():(0,a.isToBigInt)(e)?new u.BN(e.toBigInt().toString()):new u.BN(e):new u.BN(0)};var n=r(16418),i=r(41401),o=r(42125),a=r(25077),s=r(52470),u=r(64205)},1132:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnToHex=function(e){let{bitLength:t=-1,isLe:r=!1,isNegative:o=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.u8aToHex)((0,i.bnToU8a)(e,{bitLength:t,isLe:r,isNegative:o}))};var n=r(6761),i=r(69362)},69362:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnToU8a=function(e){let{bitLength:t=-1,isLe:r=!0,isNegative:o=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;const a=(0,n.bnToBn)(e),s=-1===t?Math.ceil(a.bitLength()/8):Math.ceil((t||0)/8);if(!e)return-1===t?new Uint8Array(1):new Uint8Array(s);const u=new Uint8Array(s),c=o?a.toTwos(8*s):a;return u.set(c.toArray(r?"le":"be",s),0),u};var n=r(67826);const i={bitLength:-1,isLe:!0,isNegative:!1}},48581:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bufferToU8a",{enumerable:!0,get:function(){return n.bufferToU8a}});var n=r(39706)},39706:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bufferToU8a=function(e){return new Uint8Array(e||[])}},88456:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={packageInfo:!0};Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return i.packageInfo}});var i=r(71460),o=r(57178);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=r(35804);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var s=r(58095);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var u=r(18015);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var c=r(48581);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var f=r(59776);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))}));var l=r(74696);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var d=r(32139);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var h=r(55633);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))}));var p=r(21713);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===p[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}}))}));var b=r(45130);Object.keys(b).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===b[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return b[e]}}))}));var y=r(7573);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===y[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return y[e]}}))}));var g=r(10030);Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===g[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return g[e]}}))}));var m=r(71140);Object.keys(m).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===m[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return m[e]}}))}));var v=r(90596);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===v[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return v[e]}}))}));var w=r(25596);Object.keys(w).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===w[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return w[e]}}))}));var _=r(35134);Object.keys(_).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===_[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return _[e]}}))}));var x=r(46482);Object.keys(x).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===x[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return x[e]}}))}));var O=r(66374);Object.keys(O).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===O[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return O[e]}}))}));var k=r(46375);Object.keys(k).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===k[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return k[e]}}))}));var P=r(21302);Object.keys(P).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===P[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return P[e]}}))}));var S=r(6761);Object.keys(S).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===S[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return S[e]}}))}));var A=r(41150);Object.keys(A).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===A[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return A[e]}}))}))},18780:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactAddLength=function(e){return(0,n.u8aConcatStrict)([(0,i.compactToU8a)(e.length),e])};var n=r(6761),i=r(77916)},57659:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactFromU8a=function(e){const t=(0,i.u8aToU8a)(e);switch(3&t[0]){case 0:return[1,new n.BN(t[0]>>>2)];case 1:return[2,new n.BN(t[0]+(t[1]<<8)>>>2)];case 2:return[4,new n.BN(t[0]+(t[1]<<8)+(t[2]<<16)+16777216*t[3]>>>2)];default:{const e=5+(t[0]>>>2);switch(e){case 5:return[5,new n.BN(t[1]+(t[2]<<8)+(t[3]<<16)+16777216*t[4])];case 6:return[6,new n.BN(t[1]+(t[2]<<8)+(t[3]<<16)+16777216*(t[4]+(t[5]<<8)))];case 7:return[7,new n.BN(t[1]+(t[2]<<8)+(t[3]<<16)+16777216*(t[4]+(t[5]<<8)+(t[6]<<16)))];default:return[e,(0,i.u8aToBn)(t.subarray(1,e))]}}}},t.compactFromU8aLim=function(e){switch(3&e[0]){case 0:return[1,e[0]>>>2];case 1:return[2,e[0]+(e[1]<<8)>>>2];case 2:return[4,e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]>>>2];default:switch(5+(e[0]>>>2)){case 5:return[5,e[1]+(e[2]<<8)+(e[3]<<16)+16777216*e[4]];case 6:return[6,e[1]+(e[2]<<8)+(e[3]<<16)+16777216*(e[4]+(e[5]<<8))];case 7:return[7,e[1]+(e[2]<<8)+(e[3]<<16)+16777216*(e[4]+(e[5]<<8)+(e[6]<<16))];default:throw new Error("Compact input is > Number.MAX_SAFE_INTEGER")}}};var n=r(18015),i=r(6761)},59776:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"compactAddLength",{enumerable:!0,get:function(){return n.compactAddLength}}),Object.defineProperty(t,"compactFromU8a",{enumerable:!0,get:function(){return o.compactFromU8a}}),Object.defineProperty(t,"compactFromU8aLim",{enumerable:!0,get:function(){return o.compactFromU8aLim}}),Object.defineProperty(t,"compactStripLength",{enumerable:!0,get:function(){return i.compactStripLength}}),Object.defineProperty(t,"compactToU8a",{enumerable:!0,get:function(){return a.compactToU8a}});var n=r(18780),i=r(97434),o=r(57659),a=r(77916)},97434:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactStripLength=function(e){const[t,r]=(0,n.compactFromU8a)(e),i=t+r.toNumber();return[i,e.subarray(t,i)]};var n=r(57659)},77916:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactToU8a=function(e){const t=(0,n.bnToBn)(e);if(t.lte(o))return new Uint8Array([t.toNumber()<<2]);if(t.lte(a))return(0,n.bnToU8a)(t.shln(2).iadd(n.BN_ONE),u);if(t.lte(s))return(0,n.bnToU8a)(t.shln(2).iadd(n.BN_TWO),c);const r=(0,n.bnToU8a)(t);let f=r.length;for(;0===r[f-1];)f--;if(f<4)throw new Error("Invalid length, previous checks match anything less than 2^30");return(0,i.u8aConcatStrict)([new Uint8Array([3+(f-4<<2)]),r.subarray(0,f)])};var n=r(18015),i=r(6761);const o=n.BN_TWO.pow(new n.BN(6)).isub(n.BN_ONE),a=n.BN_TWO.pow(new n.BN(14)).isub(n.BN_ONE),s=n.BN_TWO.pow(new n.BN(30)).isub(n.BN_ONE),u={bitLength:16},c={bitLength:32}},66913:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(94370),i=r(54892),o=[n.packageInfo,i.packageInfo];t.default=o},61125:(e,t,r)=>{"use strict";var n=r(64836)(r(66913)),i=r(71460);(0,r(41150).detectPackage)(i.packageInfo,null,n.default)},74696:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extractTime=function e(t){return t?t<1e3?a({milliseconds:t},o):function(t){const o=t/1e3;if(o<60){const r=~~o;return a({seconds:r},e(t-1e3*r))}const s=o/60;if(s<60){const n=~~s;return a({minutes:n},e(t-n*r))}const u=s/60;if(u<24){const r=~~u;return a({hours:r},e(t-r*n))}const c=~~(u/24);return a({days:c},e(t-c*i))}(t):o};const r=6e4,n=60*r,i=24*n,o={days:0,hours:0,milliseconds:0,minutes:0,seconds:0};function a(e,t){return{days:(e.days||0)+t.days,hours:(e.hours||0)+t.hours,milliseconds:(e.milliseconds||0)+t.milliseconds,minutes:(e.minutes||0)+t.minutes,seconds:(e.seconds||0)+t.seconds}}},32139:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"floatToU8a",{enumerable:!0,get:function(){return n.floatToU8a}});var n=r(53536)},53536:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.floatToU8a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,{bitLength:t=32,isLe:r=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(32!==t&&64!==t)throw new Error("Invalid bitLength provided, expected 32 or 64");const n=new Uint8Array(t/8),i=new DataView(n.buffer,n.byteOffset);return 32===t?i.setFloat32(0,Number(e),r):i.setFloat64(0,Number(e),r),n}},44601:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatBalance=void 0;var n=r(67826),i=r(31157),o=r(76130),a=r(67568),s=r(42664);const u=s.SI[s.SI_MID].text;let c=0,f=u;const l=function(e){let{decimals:t=c,forceUnit:r,withAll:u=!1,withSi:f=!0,withSiFull:l=!1,withUnit:d=!0,withZero:h=!0,locale:p="en"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},b=(0,n.bnToBn)(e).toString();if(0===b.length||"0"===b)return"0";let y="";b[0].startsWith("-")&&(y="-",b=b.substring(1));const g=(0,s.calcSi)(b,t,r),m=b.length-(t+g.power),v=m<=0?"0":b.substring(0,m);let w=b.padStart(m<0?t:1,"0").substring(m<0?0:m).padEnd(u?Math.max(t,4):4,"0").substring(0,u?Math.max(4,t+g.power):4);if(!h){let e=w.length-1;do{"0"===w[e]&&e--}while("0"===w[e]);w=w.substring(0,e+1)}const _=(0,i.isBoolean)(d)?s.SI[s.SI_MID].text:d,x=f||l?"-"===g.value?d?` ${_}`:"":` ${l?`${g.text}${d?" ":""}`:g.value}${d?_:""}`:"",{decimal:O,thousand:k}=(0,a.getSeparator)(p);return`${y}${(0,o.formatDecimal)(v,k)}${w&&`${O}${w}`}${x}`};t.formatBalance=l,l.calcSi=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;return(0,s.calcSi)(e,t)},l.findSi=s.findSi,l.getDefaults=()=>({decimals:c,unit:f}),l.getOptions=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return s.SI.filter((t=>{let{power:r}=t;return!(r<0)||e+r>=0}))},l.setDefaults=e=>{let{decimals:t,unit:r}=e;c=void 0===t?c:Array.isArray(t)?t[0]:t,f=void 0===r?f:Array.isArray(r)?r[0]:r,s.SI[s.SI_MID].text=f}},63498:(e,t)=>{"use strict";function r(e){return e.toString().padStart(2,"0")}Object.defineProperty(t,"__esModule",{value:!0}),t.formatDate=function(e){return`${e.getFullYear().toString()}-${r(e.getMonth()+1)}-${r(e.getDate())} ${r(e.getHours())}:${r(e.getMinutes())}:${r(e.getSeconds())}`}},76130:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatDecimal=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";const n=e[0].startsWith("-"),i=n?e.substring(1).match(r):e.match(r);return i?`${n?"-":""}${i.join(t)}`:e};const r=new RegExp("(\\d+?)(?=(\\d{3})+(?!\\d)|$)","g")},3776:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatElapsed=function(e,t){const r=e&&e.getTime()||0,i=t instanceof Date?t.getTime():(0,n.bnToBn)(t).toNumber();return r&&i?(o=Math.max(Math.abs(r-i),0)/1e3)<15?`${o.toFixed(1)}s`:o<60?(0|o)+"s":o<3600?(o/60|0)+"m":(o/3600|0)+"h":"0.0s";var o};var n=r(67826)},4802:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatNumber=function(e){let{locale:t="en"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{thousand:r}=(0,o.getSeparator)(t);return(0,i.formatDecimal)((0,n.bnToBn)(e).toString(),r)};var n=r(67826),i=r(76130),o=r(67568)},67568:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSeparator=function(e){return{decimal:.1.toLocaleString(e).substring(1,2),thousand:1e3.toLocaleString(e).substring(1,2)}}},55633:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"calcSi",{enumerable:!0,get:function(){return u.calcSi}}),Object.defineProperty(t,"findSi",{enumerable:!0,get:function(){return u.findSi}}),Object.defineProperty(t,"formatBalance",{enumerable:!0,get:function(){return n.formatBalance}}),Object.defineProperty(t,"formatDate",{enumerable:!0,get:function(){return i.formatDate}}),Object.defineProperty(t,"formatDecimal",{enumerable:!0,get:function(){return o.formatDecimal}}),Object.defineProperty(t,"formatElapsed",{enumerable:!0,get:function(){return a.formatElapsed}}),Object.defineProperty(t,"formatNumber",{enumerable:!0,get:function(){return s.formatNumber}});var n=r(44601),i=r(63498),o=r(76130),a=r(3776),s=r(4802),u=r(42664)},42664:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SI_MID=t.SI=void 0,t.calcSi=function(e,t,o){if(o)return i(o);const a=r-1+Math.ceil((e.length-t)/3);return n[a]||n[a<0?0:n.length-1]},t.findSi=i;const r=8;t.SI_MID=r;const n=[{power:-24,text:"yocto",value:"y"},{power:-21,text:"zepto",value:"z"},{power:-18,text:"atto",value:"a"},{power:-15,text:"femto",value:"f"},{power:-12,text:"pico",value:"p"},{power:-9,text:"nano",value:"n"},{power:-6,text:"micro",value:"µ"},{power:-3,text:"milli",value:"m"},{power:0,text:"Unit",value:"-"},{power:3,text:"Kilo",value:"k"},{power:6,text:"Mill",value:"M"},{power:9,text:"Bill",value:"B"},{power:12,text:"Tril",value:"T"},{power:15,text:"Peta",value:"P"},{power:18,text:"Exa",value:"E"},{power:21,text:"Zeta",value:"Z"},{power:24,text:"Yotta",value:"Y"}];function i(e){for(let t=0;t<n.length;t++)if(n[t].value===e)return n[t];return n[r]}t.SI=n},21713:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasWasm=t.hasProcess=t.hasEsm=t.hasDirname=t.hasCjs=t.hasBuffer=t.hasBigInt=void 0;var n=r(45649),i=r(43987);const o="function"==typeof n.BigInt&&"function"==typeof n.BigInt.asIntN;t.hasBigInt=o,t.hasCjs=!0,t.hasDirname=!0,t.hasEsm=!1;const a="undefined"!=typeof WebAssembly;t.hasWasm=a;const s="function"==typeof i.xglobal.Buffer&&"function"==typeof i.xglobal.Buffer.isBuffer;t.hasBuffer=s;const u="object"==typeof i.xglobal.process;t.hasProcess=u},73048:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexAddPrefix=function(e){return e&&(0,n.hexHasPrefix)(e)?e:`0x${e&&e.length%2==1?"0":""}${e||""}`};var n=r(7613)},5379:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexFixLength=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=Math.ceil(t/4),a=o+2;return(0,n.hexAddPrefix)(-1===t||e.length===a||!r&&e.length<a?(0,i.hexStripPrefix)(e):e.length>a?(0,i.hexStripPrefix)(e).slice(-1*o):`${"0".repeat(o)}${(0,i.hexStripPrefix)(e)}`.slice(-1*o))};var n=r(73048),i=r(24112)},7613:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexHasPrefix=function(e){return!!e&&(0,n.isHex)(e,-1)};var n=r(42125)},45130:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hexAddPrefix",{enumerable:!0,get:function(){return n.hexAddPrefix}}),Object.defineProperty(t,"hexFixLength",{enumerable:!0,get:function(){return i.hexFixLength}}),Object.defineProperty(t,"hexHasPrefix",{enumerable:!0,get:function(){return o.hexHasPrefix}}),Object.defineProperty(t,"hexStripPrefix",{enumerable:!0,get:function(){return a.hexStripPrefix}}),Object.defineProperty(t,"hexToBigInt",{enumerable:!0,get:function(){return s.hexToBigInt}}),Object.defineProperty(t,"hexToBn",{enumerable:!0,get:function(){return u.hexToBn}}),Object.defineProperty(t,"hexToNumber",{enumerable:!0,get:function(){return c.hexToNumber}}),Object.defineProperty(t,"hexToString",{enumerable:!0,get:function(){return f.hexToString}}),Object.defineProperty(t,"hexToU8a",{enumerable:!0,get:function(){return l.hexToU8a}});var n=r(73048),i=r(5379),o=r(7613),a=r(24112),s=r(22544),u=r(16418),c=r(35339),f=r(90696),l=r(33855)},24112:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexStripPrefix=function(e){if(!e||"0x"===e)return"";if(n.REGEX_HEX_PREFIXED.test(e))return e.substring(2);if(n.REGEX_HEX_NOPREFIX.test(e))return e;throw new Error(`Expected hex value to convert, found '${e}'`)};var n=r(42125)},22544:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToBigInt=function(e){let{isLe:t=!1,isNegative:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e&&"0x"!==e?(0,i.u8aToBigInt)((0,o.hexToU8a)(e),{isLe:t,isNegative:r}):(0,n.BigInt)(0)};var n=r(45649),i=r(4348),o=r(33855)},16418:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToBn=function(e){let{isLe:t=!1,isNegative:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||"0x"===e)return new n.BN(0);const o=(0,i.hexStripPrefix)(e),a=new n.BN(o,16,t?"le":"be");return r?a.fromTwos(4*o.length):a};var n=r(64205),i=r(24112)},35339:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToNumber=function(e){return e?(0,n.hexToBn)(e).toNumber():NaN};var n=r(16418)},90696:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToString=function(e){return(0,n.u8aToString)((0,i.hexToU8a)(e))};var n=r(11403),i=r(33855)},33855:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToU8a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(!e)return new Uint8Array;let r=e.startsWith("0x")?2:0;const n=Math.ceil((e.length-r)/2),o=Math.ceil(-1===t?n:t/8),a=new Uint8Array(o);for(let t=o>n?o-n:0;t<o;t++,r+=2)a[t]=i[e.charCodeAt(r)<<8|e.charCodeAt(r+1)];return a};const r="0123456789abcdef",n=new Uint8Array(256),i=new Uint8Array(65536);for(let e=0;e<16;e++)n[0|r[e].charCodeAt(0)]=0|e,e>9&&(n[0|r[e].toUpperCase().charCodeAt(0)]=0|e);for(let e=0;e<256;e++){const t=e<<8;for(let r=0;r<256;r++)i[t|r]=n[e]<<4|n[r]}},86879:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(61125);var n=r(88456);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}))},6612:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isArray=function(e){return Array.isArray(e)}},51754:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAscii=function(e){return(0,o.isString)(e)?(0,i.isHex)(e)?a((0,n.u8aToU8a)(e)):function(e){const t=0|e.length;for(let r=0;r<t;r++){const t=e.charCodeAt(r);if(t<32||t>126)return!1}return!0}(e):!!e&&a(e)};var n=r(56463),i=r(42125),o=r(46248);function a(e){const t=0|e.length;for(let r=0;r<t;r++){const t=0|e[r];if(t<32||t>126)return!1}return!0}},41401:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBigInt=function(e){return"bigint"==typeof e}},95408:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBn=function(e){return n.BN.isBN(e)};var n=r(64205)},31157:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBoolean=function(e){return"boolean"==typeof e}},63909:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBuffer=function(e){return i.hasBuffer&&(0,o.isFunction)(e&&e.readDoubleLE)&&n.xglobal.Buffer.isBuffer(e)};var n=r(43987),i=r(21713),o=r(43973)},24041:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isChildClass=function(e,t){return!(!(0,n.isClass)(t)||!(0,n.isClass)(e))&&(e===t||e.isPrototypeOf(t))};var n=r(58426)},58426:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isClass=void 0;const n=(0,r(96510).isOnFunction)("isPrototypeOf","hasOwnProperty");t.isClass=n},34307:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isCodec=function(e){return i(e)&&o(e.registry)};var n=r(96510);const i=(0,n.isOnObject)("toHex","toU8a"),o=(0,n.isOnObject)("get")},13044:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isCompact=void 0;const n=(0,r(96510).isOnObject)("toBigInt","toBn","toNumber","unwrap");t.isCompact=n},17052:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isError=function(e){return(e&&e.constructor)===Error||e instanceof Error}},43973:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFunction=function(e){return"function"==typeof e}},96510:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isOn=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return e=>((0,i.isObject)(e)||(0,n.isFunction)(e))&&t.every((t=>(0,n.isFunction)(e[t])))},t.isOnFunction=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return e=>(0,n.isFunction)(e)&&t.every((t=>(0,n.isFunction)(e[t])))},t.isOnObject=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return e=>(0,i.isObject)(e)&&t.every((t=>(0,n.isFunction)(e[t])))};var n=r(43973),i=r(75791)},42125:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.REGEX_HEX_PREFIXED=t.REGEX_HEX_NOPREFIX=void 0,t.isHex=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=arguments.length>2?arguments[2]:void 0;return"string"==typeof e&&("0x"===e||r.test(e))&&(-1===t?n||e.length%2==0:e.length===2+Math.ceil(t/4))};const r=/^0x[\da-fA-F]+$/;t.REGEX_HEX_PREFIXED=r,t.REGEX_HEX_NOPREFIX=/^[\da-fA-F]+$/},7573:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isArray",{enumerable:!0,get:function(){return n.isArray}}),Object.defineProperty(t,"isAscii",{enumerable:!0,get:function(){return i.isAscii}}),Object.defineProperty(t,"isBigInt",{enumerable:!0,get:function(){return o.isBigInt}}),Object.defineProperty(t,"isBn",{enumerable:!0,get:function(){return a.isBn}}),Object.defineProperty(t,"isBoolean",{enumerable:!0,get:function(){return u.isBoolean}}),Object.defineProperty(t,"isBuffer",{enumerable:!0,get:function(){return s.isBuffer}}),Object.defineProperty(t,"isChildClass",{enumerable:!0,get:function(){return c.isChildClass}}),Object.defineProperty(t,"isClass",{enumerable:!0,get:function(){return f.isClass}}),Object.defineProperty(t,"isCodec",{enumerable:!0,get:function(){return l.isCodec}}),Object.defineProperty(t,"isCompact",{enumerable:!0,get:function(){return d.isCompact}}),Object.defineProperty(t,"isError",{enumerable:!0,get:function(){return h.isError}}),Object.defineProperty(t,"isFunction",{enumerable:!0,get:function(){return p.isFunction}}),Object.defineProperty(t,"isHex",{enumerable:!0,get:function(){return b.isHex}}),Object.defineProperty(t,"isInstanceOf",{enumerable:!0,get:function(){return y.isInstanceOf}}),Object.defineProperty(t,"isIp",{enumerable:!0,get:function(){return g.isIp}}),Object.defineProperty(t,"isJsonObject",{enumerable:!0,get:function(){return m.isJsonObject}}),Object.defineProperty(t,"isNull",{enumerable:!0,get:function(){return v.isNull}}),Object.defineProperty(t,"isNumber",{enumerable:!0,get:function(){return w.isNumber}}),Object.defineProperty(t,"isObject",{enumerable:!0,get:function(){return _.isObject}}),Object.defineProperty(t,"isObservable",{enumerable:!0,get:function(){return x.isObservable}}),Object.defineProperty(t,"isPromise",{enumerable:!0,get:function(){return O.isPromise}}),Object.defineProperty(t,"isString",{enumerable:!0,get:function(){return k.isString}}),Object.defineProperty(t,"isTestChain",{enumerable:!0,get:function(){return P.isTestChain}}),Object.defineProperty(t,"isToBigInt",{enumerable:!0,get:function(){return S.isToBigInt}}),Object.defineProperty(t,"isToBn",{enumerable:!0,get:function(){return A.isToBn}}),Object.defineProperty(t,"isU8a",{enumerable:!0,get:function(){return E.isU8a}}),Object.defineProperty(t,"isUndefined",{enumerable:!0,get:function(){return M.isUndefined}}),Object.defineProperty(t,"isUtf8",{enumerable:!0,get:function(){return j.isUtf8}}),Object.defineProperty(t,"isWasm",{enumerable:!0,get:function(){return T.isWasm}});var n=r(6612),i=r(51754),o=r(41401),a=r(95408),s=r(63909),u=r(31157),c=r(24041),f=r(58426),l=r(34307),d=r(13044),h=r(17052),p=r(43973),b=r(42125),y=r(49497),g=r(5396),m=r(88724),v=r(14207),w=r(25973),_=r(75791),x=r(92845),O=r(52413),k=r(46248),P=r(68533),S=r(25077),A=r(52470),E=r(20733),M=r(31263),j=r(93964),T=r(68280)},49497:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInstanceOf=function(e,t){return(e&&e.constructor)===t||e instanceof t}},5396:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIp=function(e,t){switch(t){case"v4":return a.test(e);case"v6":return s.test(e);default:return o.test(e)}};const r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",i=`\n(?:\n(?:${n}:){7}(?:${n}|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:${n}:){6}(?:${r}|:${n}|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:${n}:){5}(?::${r}|(?::${n}){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:${n}:){4}(?:(?::${n}){0,1}:${r}|(?::${n}){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:${n}:){3}(?:(?::${n}){0,2}:${r}|(?::${n}){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:${n}:){2}(?:(?::${n}){0,3}:${r}|(?::${n}){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:${n}:){1}(?:(?::${n}){0,4}:${r}|(?::${n}){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::${n}){0,5}:${r}|(?::${n}){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n`.replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),o=new RegExp(`(?:^${r}$)|(?:^${i}$)`),a=new RegExp(`^${r}$`),s=new RegExp(`^${i}$`)},88724:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isJsonObject=function(e){const t="string"!=typeof e?(0,n.stringify)(e):e;try{const e=JSON.parse(t);return"object"==typeof e&&null!==e}catch(e){return!1}};var n=r(21302)},14207:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNull=function(e){return null===e}},25973:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNumber=function(e){return"number"==typeof e}},75791:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObject=function(e){return!!e&&"object"==typeof e}},92845:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObservable=void 0;const n=(0,r(96510).isOn)("next");t.isObservable=n},52413:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPromise=void 0;const n=(0,r(96510).isOnObject)("catch","then");t.isPromise=n},46248:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isString=function(e){return"string"==typeof e||e instanceof String}},68533:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isTestChain=function(e){return!!e&&!!r.test(e.toString())};const r=/(Development|Local Testnet)$/},25077:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isToBigInt=void 0;const n=(0,r(96510).isOn)("toBigInt");t.isToBigInt=n},52470:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isToBn=void 0;const n=(0,r(96510).isOn)("toBn");t.isToBn=n},20733:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isU8a=function(e){return(e&&e.constructor)===Uint8Array||e instanceof Uint8Array}},31263:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isUndefined=function(e){return void 0===e}},93964:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isUtf8=function(e){if(!e)return(0,i.isString)(e);const t=(0,n.u8aToU8a)(e),r=t.length;let o=0;for(;o<r;)if(t[o]<=127)o+=1;else if(t[o]>=194&&t[o]<=223){if(!(o+1<r))return!1;if(t[o+1]<128||t[o+1]>191)return!1;o+=2}else if(224===t[o]){if(!(o+2<r))return!1;if(t[o+1]<160||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;o+=3}else if(t[o]>=225&&t[o]<=236){if(!(o+2<r))return!1;if(t[o+1]<128||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;o+=3}else if(237===t[o]){if(!(o+2<r))return!1;if(t[o+1]<128||t[o+1]>159)return!1;if(t[o+2]<128||t[o+2]>191)return!1;o+=3}else if(t[o]>=238&&t[o]<=239){if(!(o+2<r))return!1;if(t[o+1]<128||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;o+=3}else if(240===t[o]){if(!(o+3<r))return!1;if(t[o+1]<144||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;if(t[o+3]<128||t[o+3]>191)return!1;o+=4}else if(t[o]>=241&&t[o]<=243){if(!(o+3<r))return!1;if(t[o+1]<128||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;if(t[o+3]<128||t[o+3]>191)return!1;o+=4}else{if(244!==t[o])return!1;if(!(o+3<r))return!1;if(t[o+1]<128||t[o+1]>143)return!1;if(t[o+2]<128||t[o+2]>191)return!1;if(t[o+3]<128||t[o+3]>191)return!1;o+=4}return!0};var n=r(56463),i=r(46248)},68280:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isWasm=function(e){return(0,i.isU8a)(e)&&(0,n.u8aEq)(e.subarray(0,4),o)};var n=r(53556),i=r(20733);const o=new Uint8Array([0,97,115,109])},10030:(e,t)=>{"use strict";function r(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;const o=n?n(t,i):t.toString();let a;Object.defineProperty(e,o,{configurable:!0,enumerable:!0,get:function(){if(void 0===a){a=r(t,i,this);try{Object.defineProperty(this,o,{value:a})}catch(e){}}return a}})}Object.defineProperty(t,"__esModule",{value:!0}),t.lazyMethod=r,t.lazyMethods=function(e,t,n,i){for(let o=0;o<t.length;o++)r(e,t[o],n,i,o);return e}},71140:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.logger=function(e){const t=`${e.toUpperCase()}:`.padStart(16),[r,i]=function(e){const t=(d.hasProcess?n.xglobal.process:{}).env||{},r=parseInt(t.DEBUG_MAX||"-1",10);return[v((t.DEBUG||"").toLowerCase().split(","),e),isNaN(r)?-1:r]}(e.toLowerCase());return{debug:r?function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return b("debug",t,r,i)}:y,error:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return b("error",t,r)},log:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return b("log",t,r)},noop:y,warn:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return b("warn",t,r)}}},t.loggerFormat=p;var n=r(43987),i=r(63498),o=r(95408),a=r(63909),s=r(43973),u=r(75791),c=r(20733),f=r(46943),l=r(56463),d=r(21713);const h={debug:"log",error:"error",log:"log",warn:"warn"};function p(e){return Array.isArray(e)?e.map(p):(0,o.isBn)(e)?e.toString():(0,c.isU8a)(e)||(0,a.isBuffer)(e)?(0,f.u8aToHex)((0,l.u8aToU8a)(e)):function(e){if(e&&(0,u.isObject)(e)&&e.constructor===Object){const t={};for(const r of Object.keys(e))t[r]=p(e[r]);return t}return e}(e)}function b(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1;if(1===r.length&&(0,s.isFunction)(r[0])){const i=r[0]();return b(e,t,Array.isArray(i)?i:[i],n)}var o;console[h[e]]((0,i.formatDate)(new Date),t,...r.map(p).map((o=n,e=>{if(o<=0)return e;const t=`${e}`;return t.length<o?e:`${t.substring(0,o)} ...`})))}function y(){}function g(e,t){return!!e&&("*"===e||t===e||e.endsWith("*")&&t.startsWith(e.slice(0,-1)))}function m(e,t){return!!e&&e.startsWith("-")&&(t===e.slice(1)||e.endsWith("*")&&t.startsWith(e.slice(1,-1)))}function v(e,t){let r=!1;for(const n of e)g(n,t)?r=!0:m(n,t)&&(r=!1);return r}},90596:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.memoize=function(e){let{getInstanceId:t=i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r={},o=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];const s=(0,n.stringify)(o),u=t();return r[u]||(r[u]={}),void 0===r[u][s]&&(r[u][s]=e(...o)),r[u][s]};return o.unmemoize=function(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];const a=(0,n.stringify)(i),s=t();r[s]&&void 0!==r[s][a]&&delete r[s][a]},o};var n=r(21302);function i(){return"none"}},25596:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nextTick=function(e,t){setTimeout((()=>{Promise.resolve().then((()=>{e()})).catch((e=>{t?t(e):console.error(e)}))}),0)}},35134:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"numberToHex",{enumerable:!0,get:function(){return n.numberToHex}}),Object.defineProperty(t,"numberToU8a",{enumerable:!0,get:function(){return i.numberToU8a}});var n=r(46438),i=r(57033)},46438:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numberToHex=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;const r=(!e||Number.isNaN(e)?0:e).toString(16);return(0,n.hexFixLength)(r.length%2?`0${r}`:r,t,!0)};var n=r(5379)},57033:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numberToU8a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return(0,n.hexToU8a)((0,i.numberToHex)(e,t))};var n=r(33855),i=r(46438)},65078:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectClear=function(e){const t=Object.keys(e);for(let r=0;r<t.length;r++)delete e[t[r]];return e}},85736:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectCopy=function(e){return(0,n.objectSpread)({},e)};var n=r(87222)},48423:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectEntries=function(e){return Object.entries(e)}},46482:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"objectClear",{enumerable:!0,get:function(){return n.objectClear}}),Object.defineProperty(t,"objectCopy",{enumerable:!0,get:function(){return i.objectCopy}}),Object.defineProperty(t,"objectEntries",{enumerable:!0,get:function(){return o.objectEntries}}),Object.defineProperty(t,"objectKeys",{enumerable:!0,get:function(){return a.objectKeys}}),Object.defineProperty(t,"objectProperties",{enumerable:!0,get:function(){return s.objectProperties}}),Object.defineProperty(t,"objectProperty",{enumerable:!0,get:function(){return s.objectProperty}}),Object.defineProperty(t,"objectSpread",{enumerable:!0,get:function(){return u.objectSpread}}),Object.defineProperty(t,"objectValues",{enumerable:!0,get:function(){return c.objectValues}});var n=r(65078),i=r(85736),o=r(48423),a=r(31363),s=r(99062),u=r(87222),c=r(60107)},31363:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectKeys=function(e){return Object.keys(e)}},99062:(e,t)=>{"use strict";function r(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;const o=n?n(t,i):t;o in e||Object.defineProperty(e,o,{enumerable:!0,get:function(){return r(t,i,this)}})}Object.defineProperty(t,"__esModule",{value:!0}),t.objectProperties=function(e,t,n,i){for(let o=0;o<t.length;o++)r(e,t[o],n,i,o)},t.objectProperty=r},87222:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectSpread=function(e){for(let t=0;t<(arguments.length<=1?0:arguments.length-1);t++){const r=t+1<1||arguments.length<=t+1?void 0:arguments[t+1];if(r)if("function"==typeof r.entries)for(const[t,n]of r.entries())e[t]=n;else Object.assign(e,r)}return e}},60107:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectValues=function(e){return Object.values(e)}},71460:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/util",path:"/",type:"cjs",version:"10.4.1"}},66374:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.promisify=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return new Promise(((r,i)=>{t.apply(e,n.concat(((e,t)=>{e?i(e):r(t)})))}))}},75203:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringPascalCase=t.stringCamelCase=t.CC_TO_UP=t.CC_TO_LO=void 0;const r=new Array(256);t.CC_TO_UP=r;const n=new Array(256);t.CC_TO_LO=n;for(let e=0;e<r.length;e++)n[e]=String.fromCharCode(e).toLowerCase(),r[e]=String.fromCharCode(e).toUpperCase();function i(e){return e.slice(0,e.length-1).toLowerCase()+r[e.charCodeAt(e.length-1)]}function o(e){return t=>{const r=t.replace(/[-_., ]+/g," ").trim().split(" "),n=r.length;let o="";for(let t=0;t<n;t++){const n=r[t];o+=e(/^[\dA-Z]+$/.test(n)?n.toLowerCase():n.replace(/^[\dA-Z]{2,}[^a-z]/,i),t)}return o}}const a=o(((e,t)=>(t?r[e.charCodeAt(0)]:n[e.charCodeAt(0)])+e.slice(1)));t.stringCamelCase=a;const s=o((e=>r[e.charCodeAt(0)]+e.slice(1)));t.stringPascalCase=s},46375:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"stringCamelCase",{enumerable:!0,get:function(){return n.stringCamelCase}}),Object.defineProperty(t,"stringLowerFirst",{enumerable:!0,get:function(){return i.stringLowerFirst}}),Object.defineProperty(t,"stringPascalCase",{enumerable:!0,get:function(){return n.stringPascalCase}}),Object.defineProperty(t,"stringShorten",{enumerable:!0,get:function(){return o.stringShorten}}),Object.defineProperty(t,"stringToHex",{enumerable:!0,get:function(){return a.stringToHex}}),Object.defineProperty(t,"stringToU8a",{enumerable:!0,get:function(){return s.stringToU8a}}),Object.defineProperty(t,"stringUpperFirst",{enumerable:!0,get:function(){return i.stringUpperFirst}});var n=r(75203),i=r(49376),o=r(47433),a=r(85050),s=r(23788)},49376:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringUpperFirst=t.stringLowerFirst=void 0;var n=r(75203);function i(e){return t=>t?e[t.charCodeAt(0)]+t.slice(1):""}const o=i(n.CC_TO_LO);t.stringLowerFirst=o;const a=i(n.CC_TO_UP);t.stringUpperFirst=a},47433:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringShorten=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return e.length<=2+2*t?e.toString():`${e.substring(0,t)}…${e.slice(-t)}`}},85050:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringToHex=function(e){return(0,n.u8aToHex)((0,i.stringToU8a)(e))};var n=r(46943),i=r(23788)},23788:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringToU8a=function(e){return e?n.encode(e.toString()):new Uint8Array};const n=new(r(54892).TextEncoder)},21302:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=function(e,t){return JSON.stringify(e,i,t)};var n=r(41401);function i(e,t){return(0,n.isBigInt)(t)?t.toString():t}},26099:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aCmp=function(e,t){const r=(0,n.u8aToU8a)(e),i=(0,n.u8aToU8a)(t);let o=0;for(;;){const e=o>=r.length,t=o>=i.length;if(e&&t)return 0;if(e)return-1;if(t)return 1;if(r[o]!==i[o])return r[o]>i[o]?1:-1;o++}};var n=r(56463)},52890:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aConcat=function(){const e=new Array(arguments.length);let t=0;for(let r=0;r<arguments.length;r++)e[r]=(0,n.u8aToU8a)(r<0||arguments.length<=r?void 0:arguments[r]),t+=e[r].length;return i(e,t)},t.u8aConcatStrict=i;var n=r(56463);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=0;if(!t)for(let r=0;r<e.length;r++)t+=e[r].length;const n=new Uint8Array(t);for(let t=0;t<e.length;t++)n.set(e[t],r),r+=e[t].length;return n}},2590:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aEmpty=function(e){const t=0|e.length;for(let r=0;r<t;r++)if(0|e[r])return!1;return!0}},53556:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aEq=function(e,t){const r=(0,n.u8aToU8a)(e),i=(0,n.u8aToU8a)(t);if(r.length===i.length){const e=new DataView(r.buffer,r.byteOffset),t=new DataView(i.buffer,i.byteOffset),n=r.length%4|0,o=r.length-n|0;for(let r=0;r<o;r+=4)if(e.getUint32(r)!==t.getUint32(r))return!1;for(let e=o;e<r.length;e++)if(r[e]!==i[e])return!1;return!0}return!1};var n=r(56463)},68135:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aFixLength=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n=Math.ceil(t/8);if(-1===t||e.length===n)return e;if(e.length>n)return e.subarray(0,n);const i=new Uint8Array(n);return i.set(e,r?0:n-e.length),i}},6761:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"U8A_WRAP_ETHEREUM",{enumerable:!0,get:function(){return g.U8A_WRAP_ETHEREUM}}),Object.defineProperty(t,"U8A_WRAP_POSTFIX",{enumerable:!0,get:function(){return g.U8A_WRAP_POSTFIX}}),Object.defineProperty(t,"U8A_WRAP_PREFIX",{enumerable:!0,get:function(){return g.U8A_WRAP_PREFIX}}),Object.defineProperty(t,"u8aCmp",{enumerable:!0,get:function(){return n.u8aCmp}}),Object.defineProperty(t,"u8aConcat",{enumerable:!0,get:function(){return i.u8aConcat}}),Object.defineProperty(t,"u8aConcatStrict",{enumerable:!0,get:function(){return i.u8aConcatStrict}}),Object.defineProperty(t,"u8aEmpty",{enumerable:!0,get:function(){return o.u8aEmpty}}),Object.defineProperty(t,"u8aEq",{enumerable:!0,get:function(){return a.u8aEq}}),Object.defineProperty(t,"u8aFixLength",{enumerable:!0,get:function(){return s.u8aFixLength}}),Object.defineProperty(t,"u8aIsWrapped",{enumerable:!0,get:function(){return g.u8aIsWrapped}}),Object.defineProperty(t,"u8aSorted",{enumerable:!0,get:function(){return c.u8aSorted}}),Object.defineProperty(t,"u8aToBigInt",{enumerable:!0,get:function(){return f.u8aToBigInt}}),Object.defineProperty(t,"u8aToBn",{enumerable:!0,get:function(){return l.u8aToBn}}),Object.defineProperty(t,"u8aToBuffer",{enumerable:!0,get:function(){return d.u8aToBuffer}}),Object.defineProperty(t,"u8aToFloat",{enumerable:!0,get:function(){return u.u8aToFloat}}),Object.defineProperty(t,"u8aToHex",{enumerable:!0,get:function(){return h.u8aToHex}}),Object.defineProperty(t,"u8aToNumber",{enumerable:!0,get:function(){return p.u8aToNumber}}),Object.defineProperty(t,"u8aToString",{enumerable:!0,get:function(){return b.u8aToString}}),Object.defineProperty(t,"u8aToU8a",{enumerable:!0,get:function(){return y.u8aToU8a}}),Object.defineProperty(t,"u8aUnwrapBytes",{enumerable:!0,get:function(){return g.u8aUnwrapBytes}}),Object.defineProperty(t,"u8aWrapBytes",{enumerable:!0,get:function(){return g.u8aWrapBytes}});var n=r(26099),i=r(52890),o=r(2590),a=r(53556),s=r(68135),u=r(45393),c=r(98551),f=r(4348),l=r(34015),d=r(68773),h=r(46943),p=r(81731),b=r(11403),y=r(56463),g=r(67579)},98551:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aSorted=function(e){return e.sort(n.u8aCmp)};var n=r(26099)},4348:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToBigInt=function(e){let{isLe:t=!0,isNegative:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||!e.length)return(0,n.BigInt)(0);const s=t?e:e.reverse(),u=new DataView(s.buffer,s.byteOffset),c=s.length%2;let f=(0,n.BigInt)(0);if(r){for(let e=s.length-2;e>=c;e-=2)f=f*a+(0,n.BigInt)(65535^u.getUint16(e,!0));c&&(f=f*o+(0,n.BigInt)(255^u.getUint8(0)))}else{for(let e=s.length-2;e>=c;e-=2)f=f*a+(0,n.BigInt)(u.getUint16(e,!0));c&&(f=f*o+(0,n.BigInt)(u.getUint8(0)))}return r?f*-i._1n-i._1n:f};var n=r(45649),i=r(29829);const o=(0,n.BigInt)(256),a=(0,n.BigInt)(65536)},34015:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToBn=function(e){let{isLe:t=!0,isNegative:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=e.length;if(i<=6){if(r){let r=0;if(t)switch(i){case 0:return new n.BN(0);case 1:r=255^e[0];break;case 2:r=e[0]+(e[1]<<8)^65535;break;case 3:r=e[0]+(e[1]<<8)+(e[2]<<16)^16777215;break;case 4:r=e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295;break;case 5:r=(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295)+4294967296*(255^e[4]);break;default:r=(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295)+4294967296*(e[4]+(e[5]<<8)^65535)}else for(let t=0;t<i;t++)r=256*r+(255^e[t]);return i?new n.BN(-1*r-1):new n.BN(0)}if(!t){let t=0;for(let r=0;r<i;r++)t=256*t+e[r];return new n.BN(t)}switch(i){case 0:return new n.BN(0);case 1:return new n.BN(e[0]);case 2:return new n.BN(e[0]+(e[1]<<8));case 3:return new n.BN(e[0]+(e[1]<<8)+(e[2]<<16));case 4:return new n.BN(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]);case 5:return new n.BN(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*(e[3]+(e[4]<<8)));default:return new n.BN(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*(e[3]+(e[4]<<8)+(e[5]<<16)))}}return r?new n.BN(e,t?"le":"be").fromTwos(8*e.length):new n.BN(e,t?"le":"be")};var n=r(64205)},68773:(e,t,r)=>{"use strict";var n=r(48764).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToBuffer=function(e){return n.from(e||[])}},45393:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToFloat=function(e){let{bitLength:t=32,isLe:r=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(32!==t&&64!==t)throw new Error("Invalid bitLength provided, expected 32 or 64");if(e.length<t/8)throw new Error(`Invalid input buffer provided, expected at least ${t/8} bytes, found ${e.length}`);const n=new DataView(e.buffer,e.byteOffset);return 32===t?n.getFloat32(0,r):n.getFloat64(0,r)}},46943:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToHex=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;const r=arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?"":"0x";if(!e||!e.length)return r;if(t>0){const n=Math.ceil(t/8);if(e.length>n)return`${i(e.subarray(0,n/2),r)}…${i(e.subarray(e.length-n/2),"")}`}return i(e,r)};const r=new Array(256),n=new Array(65536);for(let e=0;e<256;e++)r[e]=e.toString(16).padStart(2,"0");for(let e=0;e<256;e++){const t=e<<8;for(let i=0;i<256;i++)n[t|i]=r[e]+r[i]}function i(e,t){const i=e.length%2|0,o=e.length-i|0;for(let r=0;r<o;r+=2)t+=n[e[r]<<8|e[r+1]];return i&&(t+=r[0|e[o]]),t}},81731:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToNumber=function(e){let{isNegative:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=e.length;if(t){let t=0;switch(r){case 0:return 0;case 1:t=255^e[0];break;case 2:t=e[0]+(e[1]<<8)^65535;break;case 3:t=e[0]+(e[1]<<8)+(e[2]<<16)^16777215;break;case 4:t=e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295;break;case 5:t=(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295)+4294967296*(255^e[4]);break;case 6:t=(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295)+4294967296*(e[4]+(e[5]<<8)^65535);break;default:throw new Error("Value more than 48-bits cannot be reliably converted")}return-1*t-1}switch(r){case 0:return 0;case 1:return e[0];case 2:return e[0]+(e[1]<<8);case 3:return e[0]+(e[1]<<8)+(e[2]<<16);case 4:return e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3];case 5:return e[0]+(e[1]<<8)+(e[2]<<16)+16777216*(e[3]+(e[4]<<8));case 6:return e[0]+(e[1]<<8)+(e[2]<<16)+16777216*(e[3]+(e[4]<<8)+(e[5]<<16));default:throw new Error("Value more than 48-bits cannot be reliably converted")}}},11403:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToString=function(e){return e?n.decode(e):""};const n=new(r(94370).TextDecoder)("utf-8")},56463:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToU8a=function(e){return(0,a.isU8a)(e)?e:(0,o.isHex)(e)?(0,n.hexToU8a)(e):(0,i.isBuffer)(e)||Array.isArray(e)?new Uint8Array(e):(0,s.stringToU8a)(e)};var n=r(33855),i=r(63909),o=r(42125),a=r(20733),s=r(23788)},67579:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.U8A_WRAP_PREFIX=t.U8A_WRAP_POSTFIX=t.U8A_WRAP_ETHEREUM=void 0,t.u8aIsWrapped=f,t.u8aUnwrapBytes=function(e){const t=(0,o.u8aToU8a)(e);return f(t,!1)?t.subarray(s.length,t.length-u.length):t},t.u8aWrapBytes=function(e){const t=(0,o.u8aToU8a)(e);return f(t,!0)?t:(0,n.u8aConcatStrict)([s,t,u])};var n=r(52890),i=r(53556),o=r(56463);const a=(0,o.u8aToU8a)("Ethereum Signed Message:\n");t.U8A_WRAP_ETHEREUM=a;const s=(0,o.u8aToU8a)("<Bytes>");t.U8A_WRAP_PREFIX=s;const u=(0,o.u8aToU8a)("</Bytes>");t.U8A_WRAP_POSTFIX=u;const c=s.length+u.length;function f(e,t){return e.length>=c&&(0,i.u8aEq)(e.subarray(0,s.length),s)&&(0,i.u8aEq)(e.slice(-u.length),u)||t&&e.length>=a.length&&(0,i.u8aEq)(e.subarray(0,a.length),a)}},41150:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.detectPackage=function(e,t){let{name:r,path:i,type:o,version:f}=e,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!r.startsWith("@polkadot"))throw new Error(`Invalid package descriptor ${r}`);const d=function(e){const t=n.xglobal;return t.__polkadotjs||(t.__polkadotjs={}),t.__polkadotjs[e]||(t.__polkadotjs[e]=[]),t.__polkadotjs[e]}(r);if(d.push({path:u(i,t),type:o,version:f}),1!==d.length)c(`${r} has multiple versions, ensure that there is only one installed.`,d,s);else{const e=l.filter((e=>e&&e.version!==f));e.length&&c(`${r} requires direct dependencies exactly matching version ${f}.`,e,a)}};var n=r(43987),i=r(43973);const o="Either remove and explicitly install matching versions or dedupe using your package manager.\nThe following conflicting packages were found:";function a(e,t){let{name:r}=t;return[e,r]}function s(e,t){let r,{path:n,type:i}=t;if(n&&n.length>=5){const e=n.indexOf("node_modules");r=-1===e?n:n.substring(e)}else r="<unknown>";return[`${`${i||""}`.padStart(3)} ${e}`,r]}function u(e,t){if(e)return e;if((0,i.isFunction)(t))try{return t()||""}catch(e){return""}return t||""}function c(e,t,r){console.warn(`${e}\n${o}\n${function(e,t){let r=0;for(let t=0;t<e.length;t++)r=Math.max(r,e[t].version.length);return e.map((e=>`\t${t(e.version.padEnd(r),e).join("\t")}`)).join("\n")}(t,r)}`)}},45649:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BigInt=void 0,Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return i.packageInfo}});var n=r(43987),i=r(68869);const o="function"==typeof n.xglobal.BigInt&&"function"==typeof n.xglobal.BigInt.asIntN?n.xglobal.BigInt:()=>Number.NaN;t.BigInt=o},68869:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-bigint",path:"/",type:"cjs",version:"10.4.1"}},7041:(e,t,r)=>{"use strict";var n=r(45649);(0,r(43987).exposeGlobal)("BigInt",n.BigInt)},43987:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exposeGlobal=function(e,t){void 0===i[e]&&(i[e]=t)},t.extractGlobal=function(e,t){return void 0===i[e]?t:i[e]},Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return n.packageInfo}}),t.xglobal=void 0;var n=r(76470);const i="undefined"!=typeof globalThis?globalThis:void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this");t.xglobal=i},76470:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-global",path:"/",type:"cjs",version:"10.4.1"}},38741:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRandomValues=function(e){return n.xglobal.crypto.getRandomValues(e)},Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return i.packageInfo}});var n=r(43987),i=r(69123)},69123:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-randomvalues",path:"/",type:"cjs",version:"10.4.1"}},94370:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextDecoder=void 0,Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return o.packageInfo}});var n=r(43987),i=r(69754),o=r(1201);const a=(0,n.extractGlobal)("TextDecoder",i.TextDecoder);t.TextDecoder=a},69754:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728));Object.defineProperty(t,"__esModule",{value:!0}),t.TextDecoder=void 0;let a=function(){function e(t){(0,i.default)(this,e)}return(0,o.default)(e,[{key:"decode",value:function(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t}}]),e}();t.TextDecoder=a},1201:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-textdecoder",path:"/",type:"cjs",version:"10.4.1"}},54892:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextEncoder=void 0,Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return o.packageInfo}});var n=r(43987),i=r(7528),o=r(75209);const a=(0,n.extractGlobal)("TextEncoder",i.TextEncoder);t.TextEncoder=a},7528:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728));Object.defineProperty(t,"__esModule",{value:!0}),t.TextEncoder=void 0;let a=function(){function e(){(0,i.default)(this,e)}return(0,o.default)(e,[{key:"encode",value:function(e){const t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}}]),e}();t.TextEncoder=a},75209:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-textencoder",path:"/",type:"cjs",version:"10.4.1"}},70820:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wrapBytes=t.unwrapBytes=t.isWrapped=t.PREFIX=t.POSTFIX=t.ETHEREUM=void 0;var n=r(9056);const i=n.U8A_WRAP_ETHEREUM;t.ETHEREUM=i;const o=n.U8A_WRAP_POSTFIX;t.POSTFIX=o;const a=n.U8A_WRAP_PREFIX;t.PREFIX=a;const s=n.u8aIsWrapped;t.isWrapped=s;const u=n.u8aUnwrapBytes;t.unwrapBytes=u;const c=n.u8aWrapBytes;t.wrapBytes=c},56791:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayChunk=function(e,t){const r=Math.ceil(e.length/t);if(1===r)return[e];const n=Array(r);for(let i=0;i<r;i++){const r=i*t;n[i]=e.slice(r,r+t)}return n}},31209:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayFilter=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.filter((e=>void 0!==e&&(t||null!==e)))}},77666:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayFlatten=function(e){if(1===e.length)return e[0];let t=0;for(let r=0;r<e.length;r++)t+=e[r].length;const r=new Array(t);let n=-1;for(let t=0;t<e.length;t++){const i=e[t];for(let e=0;e<i.length;e++)r[++n]=i[e]}return r}},40729:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"arrayChunk",{enumerable:!0,get:function(){return n.arrayChunk}}),Object.defineProperty(t,"arrayFilter",{enumerable:!0,get:function(){return i.arrayFilter}}),Object.defineProperty(t,"arrayFlatten",{enumerable:!0,get:function(){return o.arrayFlatten}}),Object.defineProperty(t,"arrayRange",{enumerable:!0,get:function(){return a.arrayRange}}),Object.defineProperty(t,"arrayShuffle",{enumerable:!0,get:function(){return s.arrayShuffle}}),Object.defineProperty(t,"arrayZip",{enumerable:!0,get:function(){return u.arrayZip}});var n=r(56791),i=r(31209),o=r(77666),a=r(97613),s=r(88475),u=r(83671)},97613:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayRange=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e<=0)throw new Error("Expected non-zero, positive number as a range size");const r=new Array(e);for(let n=0;n<e;n++)r[n]=n+t;return r}},88475:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayShuffle=function(e){const t=e.slice();let r=t.length;if(1===r)return t;for(;0!==r;){const e=~~(Math.random()*r);r--,[t[r],t[e]]=[t[e],t[r]]}return t}},83671:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayZip=function(e,t){const r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=[e[n],t[n]];return r}},49200:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assert=i,t.assertReturn=function(e,t){return i(null!=e,t),e},t.assertUnreachable=function(e){throw new Error(`This codepath should be unreachable. Unhandled input: ${e}`)};var n=r(15594);function i(e,t){if(!e)throw new Error((0,n.isFunction)(t)?t():t)}},94991:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._2pow53n=t._1n=t._1Qn=t._1Mn=t._1Bn=t._0n=void 0;var n=r(17016);const i=(0,n.BigInt)(0);t._0n=i;const o=(0,n.BigInt)(1);t._1n=o;const a=(0,n.BigInt)(1e6);t._1Mn=a;const s=(0,n.BigInt)(1e9);t._1Bn=s;const u=s*s;t._1Qn=u;const c=(0,n.BigInt)(Number.MAX_SAFE_INTEGER);t._2pow53n=c},9470:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCmp=function(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(0===r.length)throw new Error("Must provide one or more arguments");let i=r[0];for(let t=1;t<r.length;t++)e(r[t],i)&&(i=r[t]);return i}}},16078:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={nSqrt:!0,nToBigInt:!0,nMax:!0,nMin:!0,nToHex:!0,nToU8a:!0};Object.defineProperty(t,"nMax",{enumerable:!0,get:function(){return s.nMax}}),Object.defineProperty(t,"nMin",{enumerable:!0,get:function(){return s.nMin}}),Object.defineProperty(t,"nSqrt",{enumerable:!0,get:function(){return o.nSqrt}}),Object.defineProperty(t,"nToBigInt",{enumerable:!0,get:function(){return a.nToBigInt}}),Object.defineProperty(t,"nToHex",{enumerable:!0,get:function(){return u.nToHex}}),Object.defineProperty(t,"nToU8a",{enumerable:!0,get:function(){return c.nToU8a}});var i=r(94991);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=r(97753),a=r(86443),s=r(39272),u=r(40551),c=r(99489)},39272:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nMin=t.nMax=void 0;var n=r(9470);const i=(0,n.createCmp)(((e,t)=>e>t));t.nMax=i;const o=(0,n.createCmp)(((e,t)=>e<t));t.nMin=o},97753:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SQRT_MAX_SAFE_INTEGER=void 0,t.nSqrt=function(e){const t=(0,o.nToBigInt)(e);if(t<i._0n)throw new Error("square root of negative numbers is not supported");if(t<=i._2pow53n)return(0,n.BigInt)(~~Math.sqrt(Number(t)));let r=a;for(;;){const e=t/r+r>>i._1n;if(r===e||r===e-i._1n)return r;r=e}};var n=r(17016),i=r(94991),o=r(86443);const a=(0,n.BigInt)(94906265);t.SQRT_MAX_SAFE_INTEGER=a},86443:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nToBigInt=function(e){return"bigint"==typeof e?e:e?(0,a.isHex)(e)?(0,i.hexToBigInt)(e.toString()):(0,o.isBn)(e)?(0,n.BigInt)(e.toString()):(0,s.isToBigInt)(e)?e.toBigInt():(0,u.isToBn)(e)?(0,n.BigInt)(e.toBn().toString()):(0,n.BigInt)(e):(0,n.BigInt)(0)};var n=r(17016),i=r(29113),o=r(57590),a=r(4723),s=r(60621),u=r(19600)},40551:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nToHex=function(e,t){return e?(0,i.u8aToHex)((0,o.nToU8a)(e,(0,n.objectSpread)({isLe:!1,isNegative:!1},t))):a};var n=r(88879),i=r(25816),o=r(99489);const a="0x00"},99489:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nToU8a=function(e,t){const r=(0,i.objectSpread)({bitLength:-1,isLe:!0,isNegative:!1},t),n=(0,a.nToBigInt)(e);if(n===o._0n)return-1===r.bitLength?new Uint8Array:new Uint8Array(Math.ceil((r.bitLength||0)/8));const c=function(e,t){let{isLe:r,isNegative:n}=t;const i=[];for(n&&(e=(e+o._1n)*-o._1n);e!==o._0n;){const t=e%s,o=Number(n?t^u:t);r?i.push(o):i.unshift(o),e=(e-t)/s}return Uint8Array.from(i)}(n,r);if(-1===r.bitLength)return c;const f=Math.ceil((r.bitLength||0)/8),l=new Uint8Array(f);return r.isNegative&&l.fill(255),l.set(c,r.isLe?0:f-c.length),l};var n=r(17016),i=r(88879),o=r(94991),a=r(86443);const s=(0,n.BigInt)(256),u=(0,n.BigInt)(255)},90382:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BN",{enumerable:!0,get:function(){return i.default}});var i=n(r(13550))},42675:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BN_ZERO=t.BN_TWO=t.BN_THREE=t.BN_THOUSAND=t.BN_TEN=t.BN_SIX=t.BN_SEVEN=t.BN_QUINTILL=t.BN_ONE=t.BN_NINE=t.BN_MILLION=t.BN_MAX_INTEGER=t.BN_HUNDRED=t.BN_FOUR=t.BN_FIVE=t.BN_EIGHT=t.BN_BILLION=void 0;var n=r(90382);const i=new n.BN(0);t.BN_ZERO=i;const o=new n.BN(1);t.BN_ONE=o;const a=new n.BN(2);t.BN_TWO=a;const s=new n.BN(3);t.BN_THREE=s;const u=new n.BN(4);t.BN_FOUR=u;const c=new n.BN(5);t.BN_FIVE=c;const f=new n.BN(6);t.BN_SIX=f;const l=new n.BN(7);t.BN_SEVEN=l;const d=new n.BN(8);t.BN_EIGHT=d;const h=new n.BN(9);t.BN_NINE=h;const p=new n.BN(10);t.BN_TEN=p;const b=new n.BN(100);t.BN_HUNDRED=b;const y=new n.BN(1e3);t.BN_THOUSAND=y;const g=new n.BN(1e6);t.BN_MILLION=g;const m=new n.BN(1e9);t.BN_BILLION=m;const v=m.mul(m);t.BN_QUINTILL=v;const w=new n.BN(Number.MAX_SAFE_INTEGER);t.BN_MAX_INTEGER=w},74209:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bnFromHex",{enumerable:!0,get:function(){return n.hexToBn}});var n=r(32410)},93312:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={BN:!0,bnFromHex:!0,bnMax:!0,bnMin:!0,bnSqrt:!0,bnToBn:!0,bnToHex:!0,bnToU8a:!0};Object.defineProperty(t,"BN",{enumerable:!0,get:function(){return o.BN}}),Object.defineProperty(t,"bnFromHex",{enumerable:!0,get:function(){return a.bnFromHex}}),Object.defineProperty(t,"bnMax",{enumerable:!0,get:function(){return s.bnMax}}),Object.defineProperty(t,"bnMin",{enumerable:!0,get:function(){return s.bnMin}}),Object.defineProperty(t,"bnSqrt",{enumerable:!0,get:function(){return u.bnSqrt}}),Object.defineProperty(t,"bnToBn",{enumerable:!0,get:function(){return c.bnToBn}}),Object.defineProperty(t,"bnToHex",{enumerable:!0,get:function(){return f.bnToHex}}),Object.defineProperty(t,"bnToU8a",{enumerable:!0,get:function(){return l.bnToU8a}});var i=r(42675);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=r(90382),a=r(74209),s=r(14110),u=r(27638),c=r(8105),f=r(42373),l=r(44439)},14110:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnMin=t.bnMax=void 0;var n=r(9470);const i=(0,n.createCmp)(((e,t)=>e.gt(t)));t.bnMax=i;const o=(0,n.createCmp)(((e,t)=>e.lt(t)));t.bnMin=o},27638:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SQRT_MAX_SAFE_INTEGER=void 0,t.bnSqrt=function(e){const t=(0,o.bnToBn)(e);if(t.isNeg())throw new Error("square root of negative numbers is not supported");if(t.lte(i.BN_MAX_INTEGER))return new n.BN(~~Math.sqrt(t.toNumber()));let r=a.clone();for(;;){const e=t.div(r).iadd(r).ishrn(1);if(r.eq(e)||r.eq(e.sub(i.BN_ONE)))return r;r=e}};var n=r(90382),i=r(42675),o=r(8105);const a=new n.BN(94906265);t.SQRT_MAX_SAFE_INTEGER=a},8105:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnToBn=function(e){return e?u.BN.isBN(e)?e:(0,o.isHex)(e)?(0,n.hexToBn)(e.toString()):(0,i.isBigInt)(e)?new u.BN(e.toString()):(0,s.isToBn)(e)?e.toBn():(0,a.isToBigInt)(e)?new u.BN(e.toBigInt().toString()):new u.BN(e):new u.BN(0)};var n=r(32410),i=r(18858),o=r(4723),a=r(60621),s=r(19600),u=r(90382)},42373:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnToHex=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e?(0,o.u8aToHex)((0,a.bnToU8a)(e,(0,i.objectSpread)({isLe:!1,isNegative:!1},(0,n.isNumber)(t)?{bitLength:t,isLe:r}:t))):s};var n=r(53696),i=r(88879),o=r(25816),a=r(44439);const s="0x00",u={bitLength:-1,isLe:!1,isNegative:!1}},44439:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnToU8a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const{bitLength:a=-1,isLe:s=!0,isNegative:u=!1}=(0,n.isNumber)(t)?{bitLength:t,isLe:r}:t,c=(0,i.bnToBn)(e),f=-1===a?Math.ceil(c.bitLength()/8):Math.ceil((a||0)/8);if(!e)return-1===a?new Uint8Array:new Uint8Array(f);const l=new Uint8Array(f),d=u?c.toTwos(8*f):c;return l.set(d.toArray(s?"le":"be",f),0),l};var n=r(53696),i=r(8105);const o={bitLength:-1,isLe:!0,isNegative:!1}},91977:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bufferToU8a",{enumerable:!0,get:function(){return n.bufferToU8a}});var n=r(58206)},58206:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bufferToU8a=function(e){return new Uint8Array(e||[])}},64266:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={packageInfo:!0};Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return i.packageInfo}});var i=r(81041),o=r(40729);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=r(49200);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var s=r(16078);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var u=r(93312);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var c=r(91977);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var f=r(32937);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))}));var l=r(62286);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var d=r(59035);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var h=r(48145);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))}));var p=r(40614);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===p[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}}))}));var b=r(62713);Object.keys(b).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===b[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return b[e]}}))}));var y=r(73981);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===y[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return y[e]}}))}));var g=r(40647);Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===g[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return g[e]}}))}));var m=r(18031);Object.keys(m).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===m[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return m[e]}}))}));var v=r(67987);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===v[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return v[e]}}))}));var w=r(26306);Object.keys(w).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===w[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return w[e]}}))}));var _=r(92371);Object.keys(_).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===_[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return _[e]}}))}));var x=r(68931);Object.keys(x).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===x[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return x[e]}}))}));var O=r(9212);Object.keys(O).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===O[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return O[e]}}))}));var k=r(19346);Object.keys(k).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===k[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return k[e]}}))}));var P=r(77385);Object.keys(P).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===P[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return P[e]}}))}));var S=r(25816);Object.keys(S).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===S[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return S[e]}}))}));var A=r(61634);Object.keys(A).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===A[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return A[e]}}))}))},97959:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactAddLength=function(e){return(0,n.u8aConcatStrict)([(0,i.compactToU8a)(e.length),e])};var n=r(25816),i=r(55254)},3243:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactFromU8a=function(e){const t=(0,i.u8aToU8a)(e);switch(3&t[0]){case 0:return[1,new n.BN(t[0]>>>2)];case 1:return[2,new n.BN(t[0]+(t[1]<<8)>>>2)];case 2:return[4,new n.BN(t[0]+(t[1]<<8)+(t[2]<<16)+16777216*t[3]>>>2)];default:{const e=5+(t[0]>>>2);switch(e){case 5:return[5,new n.BN(t[1]+(t[2]<<8)+(t[3]<<16)+16777216*t[4])];case 6:return[6,new n.BN(t[1]+(t[2]<<8)+(t[3]<<16)+16777216*(t[4]+(t[5]<<8)))];case 7:return[7,new n.BN(t[1]+(t[2]<<8)+(t[3]<<16)+16777216*(t[4]+(t[5]<<8)+(t[6]<<16)))];default:return[e,(0,i.u8aToBn)(t.subarray(1,e))]}}}},t.compactFromU8aLim=function(e){switch(3&e[0]){case 0:return[1,e[0]>>>2];case 1:return[2,e[0]+(e[1]<<8)>>>2];case 2:return[4,e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]>>>2];default:switch(5+(e[0]>>>2)){case 5:return[5,e[1]+(e[2]<<8)+(e[3]<<16)+16777216*e[4]];case 6:return[6,e[1]+(e[2]<<8)+(e[3]<<16)+16777216*(e[4]+(e[5]<<8))];case 7:return[7,e[1]+(e[2]<<8)+(e[3]<<16)+16777216*(e[4]+(e[5]<<8)+(e[6]<<16))];default:throw new Error("Compact input is > Number.MAX_SAFE_INTEGER")}}};var n=r(93312),i=r(25816)},32937:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"compactAddLength",{enumerable:!0,get:function(){return n.compactAddLength}}),Object.defineProperty(t,"compactFromU8a",{enumerable:!0,get:function(){return o.compactFromU8a}}),Object.defineProperty(t,"compactFromU8aLim",{enumerable:!0,get:function(){return o.compactFromU8aLim}}),Object.defineProperty(t,"compactStripLength",{enumerable:!0,get:function(){return i.compactStripLength}}),Object.defineProperty(t,"compactToU8a",{enumerable:!0,get:function(){return a.compactToU8a}});var n=r(97959),i=r(13655),o=r(3243),a=r(55254)},13655:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactStripLength=function(e){const[t,r]=(0,n.compactFromU8a)(e),i=t+r.toNumber();return[i,e.subarray(t,i)]};var n=r(3243)},55254:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactToU8a=function(e){const t=(0,n.bnToBn)(e);if(t.lte(o))return new Uint8Array([t.toNumber()<<2]);if(t.lte(a))return(0,n.bnToU8a)(t.shln(2).iadd(n.BN_ONE),u);if(t.lte(s))return(0,n.bnToU8a)(t.shln(2).iadd(n.BN_TWO),c);const r=(0,n.bnToU8a)(t);let f=r.length;for(;0===r[f-1];)f--;if(f<4)throw new Error("Invalid length, previous checks match anything less than 2^30");return(0,i.u8aConcatStrict)([new Uint8Array([3+(f-4<<2)]),r.subarray(0,f)])};var n=r(93312),i=r(25816);const o=n.BN_TWO.pow(new n.BN(6)).isub(n.BN_ONE),a=n.BN_TWO.pow(new n.BN(14)).isub(n.BN_ONE),s=n.BN_TWO.pow(new n.BN(30)).isub(n.BN_ONE),u={bitLength:16},c={bitLength:32}},31229:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(52144),i=r(55109),o=[n.packageInfo,i.packageInfo];t.default=o},69920:(e,t,r)=>{"use strict";var n=r(64836)(r(31229)),i=r(81041);(0,r(61634).detectPackage)(i.packageInfo,null,n.default)},62286:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extractTime=function e(t){return t?t<1e3?a({milliseconds:t},o):function(t){const o=t/1e3;if(o<60){const r=~~o;return a({seconds:r},e(t-1e3*r))}const s=o/60;if(s<60){const n=~~s;return a({minutes:n},e(t-n*r))}const u=s/60;if(u<24){const r=~~u;return a({hours:r},e(t-r*n))}const c=~~(u/24);return a({days:c},e(t-c*i))}(t):o};const r=6e4,n=60*r,i=24*n,o={days:0,hours:0,milliseconds:0,minutes:0,seconds:0};function a(e,t){return{days:(e.days||0)+t.days,hours:(e.hours||0)+t.hours,milliseconds:(e.milliseconds||0)+t.milliseconds,minutes:(e.minutes||0)+t.minutes,seconds:(e.seconds||0)+t.seconds}}},59035:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"floatToU8a",{enumerable:!0,get:function(){return n.floatToU8a}});var n=r(55104)},55104:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.floatToU8a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,{bitLength:t=32,isLe:r=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(32!==t&&64!==t)throw new Error("Invalid bitLength provided, expected 32 or 64");const n=new Uint8Array(t/8),i=new DataView(n.buffer,n.byteOffset);return 32===t?i.setFloat32(0,Number(e),r):i.setFloat64(0,Number(e),r),n}},28865:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatBalance=void 0;var n=r(8105),i=r(38811),o=r(82509),a=r(7044);const s=a.SI[a.SI_MID].text;let u=0,c=s;const f=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u,s=(0,n.bnToBn)(e).toString();if(0===s.length||"0"===s)return"0";const{decimals:c=r,forceUnit:f,withSi:l=!0,withSiFull:d=!1,withUnit:h=!0}=(0,i.isBoolean)(t)?{withSi:t}:t;let p="";s[0].startsWith("-")&&(p="-",s=s.substring(1));const[b,y,g]=function(e,t,r){const n=(0,a.calcSi)(e,t,r),i=e.length-(t+n.power);return[n,e.substring(0,i)||"0",`${`${new Array(1+(i<0?0-i:0)).join("0")}${e}`.substring(i<0?0:i)}0000`.substring(0,4)]}(s,c,f),m=function(e,t,r,n){const o=(0,i.isBoolean)(n)?a.SI[a.SI_MID].text:n;return t||r?"-"===e.value?n?` ${o}`:"":` ${r?`${e.text}${n?" ":""}`:e.value}${n?o:""}`:""}(b,l,d,h);return`${p}${(0,o.formatDecimal)(y)}.${g}${m}`};t.formatBalance=f,f.calcSi=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u;return(0,a.calcSi)(e,t)},f.findSi=a.findSi,f.getDefaults=()=>({decimals:u,unit:c}),f.getOptions=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u;return a.SI.filter((t=>{let{power:r}=t;return!(r<0)||e+r>=0}))},f.setDefaults=e=>{let{decimals:t,unit:r}=e;u=void 0===t?u:Array.isArray(t)?t[0]:t,c=void 0===r?c:Array.isArray(r)?r[0]:r,a.SI[a.SI_MID].text=c}},49157:(e,t)=>{"use strict";function r(e){return e.toString().padStart(2,"0")}Object.defineProperty(t,"__esModule",{value:!0}),t.formatDate=function(e){return`${e.getFullYear().toString()}-${r(e.getMonth()+1)}-${r(e.getDate())} ${r(e.getHours())}:${r(e.getMinutes())}:${r(e.getSeconds())}`}},82509:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatDecimal=function(e){const t=e[0].startsWith("-"),n=t?e.substring(1).match(r):e.match(r);return n?`${t?"-":""}${n.join(",")}`:e};const r=new RegExp("(\\d+?)(?=(\\d{3})+(?!\\d)|$)","g")},48306:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatElapsed=function(e,t){const r=e&&e.getTime()||0,i=t instanceof Date?t.getTime():(0,n.bnToBn)(t).toNumber();return r&&i?(o=Math.max(Math.abs(r-i),0)/1e3)<15?`${o.toFixed(1)}s`:o<60?(0|o)+"s":o<3600?(o/60|0)+"m":(o/3600|0)+"h":"0.0s";var o};var n=r(8105)},60703:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatNumber=function(e){return(0,i.formatDecimal)((0,n.bnToBn)(e).toString())};var n=r(8105),i=r(82509)},48145:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"calcSi",{enumerable:!0,get:function(){return u.calcSi}}),Object.defineProperty(t,"findSi",{enumerable:!0,get:function(){return u.findSi}}),Object.defineProperty(t,"formatBalance",{enumerable:!0,get:function(){return n.formatBalance}}),Object.defineProperty(t,"formatDate",{enumerable:!0,get:function(){return i.formatDate}}),Object.defineProperty(t,"formatDecimal",{enumerable:!0,get:function(){return o.formatDecimal}}),Object.defineProperty(t,"formatElapsed",{enumerable:!0,get:function(){return a.formatElapsed}}),Object.defineProperty(t,"formatNumber",{enumerable:!0,get:function(){return s.formatNumber}});var n=r(28865),i=r(49157),o=r(82509),a=r(48306),s=r(60703),u=r(7044)},7044:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SI_MID=t.SI=void 0,t.calcSi=function(e,t,o){if(o)return i(o);const a=r-1+Math.ceil((e.length-t)/3);return n[a]||n[a<0?0:n.length-1]},t.findSi=i;const r=8;t.SI_MID=r;const n=[{power:-24,text:"yocto",value:"y"},{power:-21,text:"zepto",value:"z"},{power:-18,text:"atto",value:"a"},{power:-15,text:"femto",value:"f"},{power:-12,text:"pico",value:"p"},{power:-9,text:"nano",value:"n"},{power:-6,text:"micro",value:"µ"},{power:-3,text:"milli",value:"m"},{power:0,text:"Unit",value:"-"},{power:3,text:"Kilo",value:"k"},{power:6,text:"Mill",value:"M"},{power:9,text:"Bill",value:"B"},{power:12,text:"Tril",value:"T"},{power:15,text:"Peta",value:"P"},{power:18,text:"Exa",value:"E"},{power:21,text:"Zeta",value:"Z"},{power:24,text:"Yotta",value:"Y"}];function i(e){for(let t=0;t<n.length;t++)if(n[t].value===e)return n[t];return n[r]}t.SI=n},40614:(e,t,r)=>{"use strict";var n=r(48764).Buffer,i=r(34155);Object.defineProperty(t,"__esModule",{value:!0}),t.hasWasm=t.hasProcess=t.hasEsm=t.hasDirname=t.hasCjs=t.hasBuffer=t.hasBigInt=void 0;var o=r(17016);const a="function"==typeof o.BigInt&&"function"==typeof o.BigInt.asIntN;t.hasBigInt=a;const s=void 0!==n;t.hasBuffer=s,t.hasCjs=!0,t.hasDirname=!0,t.hasEsm=!1;const u="object"==typeof i;t.hasProcess=u;const c="undefined"!=typeof WebAssembly;t.hasWasm=c},37713:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexAddPrefix=function(e){return e&&(0,n.hexHasPrefix)(e)?e:`0x${e&&e.length%2==1?"0":""}${e||""}`};var n=r(53358)},64428:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexFixLength=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=Math.ceil(t/4),a=o+2;return(0,n.hexAddPrefix)(-1===t||e.length===a||!r&&e.length<a?(0,i.hexStripPrefix)(e):e.length>a?(0,i.hexStripPrefix)(e).slice(-1*o):`${"0".repeat(o)}${(0,i.hexStripPrefix)(e)}`.slice(-1*o))};var n=r(37713),i=r(99334)},53358:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexHasPrefix=function(e){return!!e&&(0,n.isHex)(e,-1)};var n=r(4723)},62713:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hexAddPrefix",{enumerable:!0,get:function(){return n.hexAddPrefix}}),Object.defineProperty(t,"hexFixLength",{enumerable:!0,get:function(){return i.hexFixLength}}),Object.defineProperty(t,"hexHasPrefix",{enumerable:!0,get:function(){return o.hexHasPrefix}}),Object.defineProperty(t,"hexStripPrefix",{enumerable:!0,get:function(){return a.hexStripPrefix}}),Object.defineProperty(t,"hexToBigInt",{enumerable:!0,get:function(){return s.hexToBigInt}}),Object.defineProperty(t,"hexToBn",{enumerable:!0,get:function(){return u.hexToBn}}),Object.defineProperty(t,"hexToNumber",{enumerable:!0,get:function(){return c.hexToNumber}}),Object.defineProperty(t,"hexToString",{enumerable:!0,get:function(){return f.hexToString}}),Object.defineProperty(t,"hexToU8a",{enumerable:!0,get:function(){return l.hexToU8a}});var n=r(37713),i=r(64428),o=r(53358),a=r(99334),s=r(29113),u=r(32410),c=r(65743),f=r(70720),l=r(80827)},99334:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexStripPrefix=function(e){if(!e||"0x"===e)return"";if(n.REGEX_HEX_PREFIXED.test(e))return e.substring(2);if(n.REGEX_HEX_NOPREFIX.test(e))return e;throw new Error(`Expected hex value to convert, found '${e}'`)};var n=r(4723)},29113:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToBigInt=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e&&"0x"!==e?(0,o.u8aToBigInt)((0,a.hexToU8a)(e),(0,i.objectSpread)({isLe:!1,isNegative:!1},t)):(0,n.BigInt)(0)};var n=r(17016),i=r(88879),o=r(12850),a=r(80827)},32410:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToBn=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||"0x"===e)return new n.BN(0);const{isLe:r=!1,isNegative:a=!1}=(0,i.isBoolean)(t)?{isLe:t}:t,s=(0,o.hexStripPrefix)(e),u=new n.BN(s,16,r?"le":"be");return a?u.fromTwos(4*s.length):u};var n=r(90382),i=r(38811),o=r(99334)},65743:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToNumber=function(e){return e?(0,n.hexToBn)(e).toNumber():NaN};var n=r(32410)},70720:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToString=function(e){return(0,n.u8aToString)((0,i.hexToU8a)(e))};var n=r(48036),i=r(80827)},80827:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToU8a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(!e||"0x"===e)return new Uint8Array;let r=0;if(n.REGEX_HEX_PREFIXED.test(e))r=2;else if(!n.REGEX_HEX_NOPREFIX.test(e))throw new Error(`Expected hex value to convert, found '${e}'`);const i=(e.length-r)/2,a=Math.ceil(-1===t?i:t/8),s=new Uint8Array(a);for(let t=a>i?a-i:0;t<a;t++,r+=2)s[t]=(o[e.charCodeAt(r)]<<4)+o[e.charCodeAt(r+1)];return s};var n=r(4723);const i="0123456789abcdef",o=new Array(256);for(let e=0;e<16;e++)o[i[e].charCodeAt(0)]=e,e>9&&(o[i[e].toUpperCase().charCodeAt(0)]=e)},9056:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(69920);var n=r(64266);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}))},14621:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isArray=function(e){return Array.isArray(e)}},59121:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAscii=function(e){return(0,o.isString)(e)?(0,i.isHex)(e)?a((0,n.u8aToU8a)(e)):function(e){const t=e.length;for(let r=0;r<t;r++){const t=e.charCodeAt(r);if(!(t<127&&(t>=32||10===t||9===t||13===t)))return!1}return!0}(e):!!e&&a(e)};var n=r(87505),i=r(4723),o=r(49104);function a(e){const t=e.length;for(let r=0;r<t;r++){const t=e[r];if(!(t<127&&(t>=32||10===t||9===t||13===t)))return!1}return!0}},18858:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBigInt=function(e){return"bigint"==typeof e}},57590:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBn=function(e){return n.BN.isBN(e)};var n=r(90382)},38811:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBoolean=function(e){return"boolean"==typeof e}},44305:(e,t,r)=>{"use strict";var n=r(48764).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.isBuffer=function(e){return i.hasBuffer&&(0,o.isFunction)(e&&e.readDoubleLE)&&n.isBuffer(e)};var i=r(40614),o=r(15594)},65482:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isChildClass=function(e,t){return!!t&&(e===t||e.isPrototypeOf(t))}},18611:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isCodec=function(e){return i(e)&&o(e.registry)};var n=r(33838);const i=(0,n.isOnObject)("toHex","toU8a"),o=(0,n.isOnObject)("get")},83247:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isCompact=void 0;const n=(0,r(33838).isOnObject)("toBigInt","toBn","toNumber","unwrap");t.isCompact=n},78338:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isError=function(e){return(e&&e.constructor)===Error||e instanceof Error}},15594:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFunction=function(e){return"function"==typeof e}},33838:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isOn=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return e=>((0,i.isObject)(e)||(0,n.isFunction)(e))&&t.every((t=>(0,n.isFunction)(e[t])))},t.isOnObject=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return e=>(0,i.isObject)(e)&&t.every((t=>(0,n.isFunction)(e[t])))};var n=r(15594),i=r(34097)},4723:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.REGEX_HEX_PREFIXED=t.REGEX_HEX_NOPREFIX=void 0,t.isHex=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=arguments.length>2?arguments[2]:void 0;return"string"==typeof e&&("0x"===e||r.test(e))&&(-1===t?n||e.length%2==0:e.length===2+Math.ceil(t/4))};const r=/^0x[\da-fA-F]+$/;t.REGEX_HEX_PREFIXED=r,t.REGEX_HEX_NOPREFIX=/^[\da-fA-F]+$/},73981:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isArray",{enumerable:!0,get:function(){return n.isArray}}),Object.defineProperty(t,"isAscii",{enumerable:!0,get:function(){return i.isAscii}}),Object.defineProperty(t,"isBigInt",{enumerable:!0,get:function(){return o.isBigInt}}),Object.defineProperty(t,"isBn",{enumerable:!0,get:function(){return a.isBn}}),Object.defineProperty(t,"isBoolean",{enumerable:!0,get:function(){return u.isBoolean}}),Object.defineProperty(t,"isBuffer",{enumerable:!0,get:function(){return s.isBuffer}}),Object.defineProperty(t,"isChildClass",{enumerable:!0,get:function(){return c.isChildClass}}),Object.defineProperty(t,"isCodec",{enumerable:!0,get:function(){return f.isCodec}}),Object.defineProperty(t,"isCompact",{enumerable:!0,get:function(){return l.isCompact}}),Object.defineProperty(t,"isError",{enumerable:!0,get:function(){return d.isError}}),Object.defineProperty(t,"isFunction",{enumerable:!0,get:function(){return h.isFunction}}),Object.defineProperty(t,"isHex",{enumerable:!0,get:function(){return p.isHex}}),Object.defineProperty(t,"isInstanceOf",{enumerable:!0,get:function(){return b.isInstanceOf}}),Object.defineProperty(t,"isIp",{enumerable:!0,get:function(){return y.isIp}}),Object.defineProperty(t,"isJsonObject",{enumerable:!0,get:function(){return g.isJsonObject}}),Object.defineProperty(t,"isNull",{enumerable:!0,get:function(){return m.isNull}}),Object.defineProperty(t,"isNumber",{enumerable:!0,get:function(){return v.isNumber}}),Object.defineProperty(t,"isObject",{enumerable:!0,get:function(){return w.isObject}}),Object.defineProperty(t,"isObservable",{enumerable:!0,get:function(){return _.isObservable}}),Object.defineProperty(t,"isPromise",{enumerable:!0,get:function(){return x.isPromise}}),Object.defineProperty(t,"isString",{enumerable:!0,get:function(){return O.isString}}),Object.defineProperty(t,"isTestChain",{enumerable:!0,get:function(){return k.isTestChain}}),Object.defineProperty(t,"isToBigInt",{enumerable:!0,get:function(){return P.isToBigInt}}),Object.defineProperty(t,"isToBn",{enumerable:!0,get:function(){return S.isToBn}}),Object.defineProperty(t,"isU8a",{enumerable:!0,get:function(){return A.isU8a}}),Object.defineProperty(t,"isUndefined",{enumerable:!0,get:function(){return E.isUndefined}}),Object.defineProperty(t,"isUtf8",{enumerable:!0,get:function(){return M.isUtf8}}),Object.defineProperty(t,"isWasm",{enumerable:!0,get:function(){return j.isWasm}});var n=r(14621),i=r(59121),o=r(18858),a=r(57590),s=r(44305),u=r(38811),c=r(65482),f=r(18611),l=r(83247),d=r(78338),h=r(15594),p=r(4723),b=r(35393),y=r(1167),g=r(72413),m=r(86789),v=r(53696),w=r(34097),_=r(34853),x=r(26139),O=r(49104),k=r(78872),P=r(60621),S=r(19600),A=r(68726),E=r(41190),M=r(41394),j=r(65914)},35393:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInstanceOf=function(e,t){return(e&&e.constructor)===t||e instanceof t}},1167:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.isIp=function(e,t){return"v4"===t?i.default.v4({exact:!0}).test(e):"v6"===t?i.default.v6({exact:!0}).test(e):(0,i.default)({exact:!0}).test(e)};var i=n(r(1476))},72413:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isJsonObject=function(e){const t="string"!=typeof e?(0,n.stringify)(e):e;try{const e=JSON.parse(t);return"object"==typeof e&&null!==e}catch(e){return!1}};var n=r(77385)},86789:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNull=function(e){return null===e}},53696:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNumber=function(e){return"number"==typeof e}},34097:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObject=function(e){return!!e&&"object"==typeof e}},34853:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObservable=void 0;const n=(0,r(33838).isOn)("next");t.isObservable=n},26139:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPromise=void 0;const n=(0,r(33838).isOnObject)("catch","then");t.isPromise=n},49104:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isString=function(e){return"string"==typeof e||e instanceof String}},78872:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isTestChain=function(e){return!!e&&!!r.test(e.toString())};const r=/(Development|Local Testnet)$/},60621:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isToBigInt=void 0;const n=(0,r(33838).isOn)("toBigInt");t.isToBigInt=n},19600:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isToBn=void 0;const n=(0,r(33838).isOn)("toBn");t.isToBn=n},68726:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isU8a=function(e){return(e&&e.constructor)===Uint8Array||e instanceof Uint8Array}},41190:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isUndefined=function(e){return void 0===e}},41394:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isUtf8=function(e){if(!e)return(0,i.isString)(e);const t=(0,n.u8aToU8a)(e),r=t.length;let o=0;for(;o<r;)if(t[o]<=127)o+=1;else if(t[o]>=194&&t[o]<=223){if(!(o+1<r))return!1;if(t[o+1]<128||t[o+1]>191)return!1;o+=2}else if(224===t[o]){if(!(o+2<r))return!1;if(t[o+1]<160||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;o+=3}else if(t[o]>=225&&t[o]<=236){if(!(o+2<r))return!1;if(t[o+1]<128||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;o+=3}else if(237===t[o]){if(!(o+2<r))return!1;if(t[o+1]<128||t[o+1]>159)return!1;if(t[o+2]<128||t[o+2]>191)return!1;o+=3}else if(t[o]>=238&&t[o]<=239){if(!(o+2<r))return!1;if(t[o+1]<128||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;o+=3}else if(240===t[o]){if(!(o+3<r))return!1;if(t[o+1]<144||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;if(t[o+3]<128||t[o+3]>191)return!1;o+=4}else if(t[o]>=241&&t[o]<=243){if(!(o+3<r))return!1;if(t[o+1]<128||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;if(t[o+3]<128||t[o+3]>191)return!1;o+=4}else{if(244!==t[o])return!1;if(!(o+3<r))return!1;if(t[o+1]<128||t[o+1]>143)return!1;if(t[o+2]<128||t[o+2]>191)return!1;if(t[o+3]<128||t[o+3]>191)return!1;o+=4}return!0};var n=r(87505),i=r(49104)},65914:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isWasm=function(e){return(0,i.isU8a)(e)&&(0,n.u8aEq)(e.subarray(0,4),o)};var n=r(60718),i=r(68726);const o=new Uint8Array([0,97,115,109])},40647:(e,t)=>{"use strict";function r(e,t,r,n){const i=n?n(t):t.toString();let o;Object.defineProperty(e,i,{configurable:!0,enumerable:!0,get:function(){if(void 0===o){o=r(t);try{Object.defineProperty(this,i,{value:o})}catch(e){}}return o}})}Object.defineProperty(t,"__esModule",{value:!0}),t.lazyMethod=r,t.lazyMethods=function(e,t,n,i){for(let o=0;o<t.length;o++)r(e,t[o],n,i);return e}},18031:(e,t,r)=>{"use strict";var n=r(34155);Object.defineProperty(t,"__esModule",{value:!0}),t.logger=function(e){const t=`${e.toUpperCase()}:`.padStart(16),[r,i]=function(e){const t=(d.hasProcess?n:{}).env||{},r=parseInt(t.DEBUG_MAX||"-1",10);return[v((t.DEBUG||"").toLowerCase().split(","),e),isNaN(r)?-1:r]}(e.toLowerCase());return{debug:r?function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return b("debug",t,r,i)}:y,error:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return b("error",t,r)},log:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return b("log",t,r)},noop:y,warn:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return b("warn",t,r)}}},t.loggerFormat=p;var i=r(49157),o=r(57590),a=r(44305),s=r(15594),u=r(34097),c=r(68726),f=r(84024),l=r(87505),d=r(40614);const h={debug:"log",error:"error",log:"log",warn:"warn"};function p(e){return Array.isArray(e)?e.map(p):(0,o.isBn)(e)?e.toString():(0,c.isU8a)(e)||(0,a.isBuffer)(e)?(0,f.u8aToHex)((0,l.u8aToU8a)(e)):function(e){if(e&&(0,u.isObject)(e)&&e.constructor===Object){const t={};for(const r of Object.keys(e))t[r]=p(e[r]);return t}return e}(e)}function b(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1;if(1===r.length&&(0,s.isFunction)(r[0])){const i=r[0]();return b(e,t,Array.isArray(i)?i:[i],n)}var o;console[h[e]]((0,i.formatDate)(new Date),t,...r.map(p).map((o=n,e=>{if(o<=0)return e;const t=`${e}`;return t.length<o?e:`${t.substring(0,o)} ...`})))}function y(){}function g(e,t){return!!e&&("*"===e||t===e||e.endsWith("*")&&t.startsWith(e.slice(0,-1)))}function m(e,t){return!!e&&e.startsWith("-")&&(t===e.slice(1)||e.endsWith("*")&&t.startsWith(e.slice(1,-1)))}function v(e,t){let r=!1;for(const n of e)g(n,t)?r=!0:m(n,t)&&(r=!1);return r}},67987:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.memoize=function(e){let{getInstanceId:t=i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r={},o=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];const s=(0,n.stringify)(o),u=t();return r[u]||(r[u]={}),void 0===r[u][s]&&(r[u][s]=e(...o)),r[u][s]};return o.unmemoize=function(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];const a=(0,n.stringify)(i),s=t();r[s]&&void 0!==r[s][a]&&delete r[s][a]},o};var n=r(77385);function i(){return"none"}},26306:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nextTick=function(e,t){Promise.resolve().then((()=>{e()})).catch((e=>{t?t(e):console.error(e)}))}},92371:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"numberToHex",{enumerable:!0,get:function(){return n.numberToHex}}),Object.defineProperty(t,"numberToU8a",{enumerable:!0,get:function(){return i.numberToU8a}});var n=r(45843),i=r(84251)},45843:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numberToHex=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(null==e||isNaN(e))return"0x";const r=e.toString(16);return(0,n.hexFixLength)(r.length%2?`0${r}`:r,t,!0)};var n=r(64428)},84251:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numberToU8a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return null==e||isNaN(e)?new Uint8Array:(0,n.hexToU8a)((0,i.numberToHex)(e,t))};var n=r(80827),i=r(45843)},40559:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectClear=function(e){const t=Object.keys(e);for(let r=0;r<t.length;r++)delete e[t[r]];return e}},70741:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectCopy=function(e){return(0,n.objectSpread)({},e)};var n=r(88879)},56526:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectEntries=function(e){return Object.entries(e)}},68931:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"objectClear",{enumerable:!0,get:function(){return n.objectClear}}),Object.defineProperty(t,"objectCopy",{enumerable:!0,get:function(){return i.objectCopy}}),Object.defineProperty(t,"objectEntries",{enumerable:!0,get:function(){return o.objectEntries}}),Object.defineProperty(t,"objectKeys",{enumerable:!0,get:function(){return a.objectKeys}}),Object.defineProperty(t,"objectProperties",{enumerable:!0,get:function(){return s.objectProperties}}),Object.defineProperty(t,"objectProperty",{enumerable:!0,get:function(){return s.objectProperty}}),Object.defineProperty(t,"objectSpread",{enumerable:!0,get:function(){return u.objectSpread}}),Object.defineProperty(t,"objectValues",{enumerable:!0,get:function(){return c.objectValues}});var n=r(40559),i=r(70741),o=r(56526),a=r(26995),s=r(71013),u=r(88879),c=r(83510)},26995:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectKeys=function(e){return Object.keys(e)}},71013:(e,t)=>{"use strict";function r(e,t,r){t in e||Object.defineProperty(e,t,{enumerable:!0,get:()=>r(t)})}Object.defineProperty(t,"__esModule",{value:!0}),t.objectProperties=function(e,t,n){for(let i=0;i<t.length;i++)r(e,t[i],(e=>n(e,i)))},t.objectProperty=r},88879:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectSpread=function(e){for(let t=0;t<(arguments.length<=1?0:arguments.length-1);t++){const r=t+1<1||arguments.length<=t+1?void 0:arguments[t+1];r&&Object.assign(e,r)}return e}},83510:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectValues=function(e){return Object.values(e)}},81041:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/util",path:"/",type:"cjs",version:"9.7.2"}},9212:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.promisify=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return new Promise(((r,i)=>{t.apply(e,n.concat(((e,t)=>{e?i(e):r(t)})))}))}},25479:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringPascalCase=t.stringCamelCase=t.CC_TO_UP=t.CC_TO_LO=void 0;const r=new Array(256);t.CC_TO_UP=r;const n=new Array(256);t.CC_TO_LO=n;for(let e=0;e<r.length;e++)n[e]=String.fromCharCode(e).toLowerCase(),r[e]=String.fromCharCode(e).toUpperCase();function i(e){return e.slice(0,e.length-1).toLowerCase()+r[e.charCodeAt(e.length-1)]}function o(e){return t=>{const r=t.replace(/[-_., ]+/g," ").trim().split(" "),n=r.length;let o="";for(let t=0;t<n;t++){const n=r[t];o+=e(/^[\dA-Z]+$/.test(n)?n.toLowerCase():n.replace(/^[\dA-Z]{2,}[^a-z]/,i),t)}return o}}const a=o(((e,t)=>(t?r[e.charCodeAt(0)]:n[e.charCodeAt(0)])+e.slice(1)));t.stringCamelCase=a;const s=o((e=>r[e.charCodeAt(0)]+e.slice(1)));t.stringPascalCase=s},19346:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"stringCamelCase",{enumerable:!0,get:function(){return n.stringCamelCase}}),Object.defineProperty(t,"stringLowerFirst",{enumerable:!0,get:function(){return i.stringLowerFirst}}),Object.defineProperty(t,"stringPascalCase",{enumerable:!0,get:function(){return n.stringPascalCase}}),Object.defineProperty(t,"stringShorten",{enumerable:!0,get:function(){return o.stringShorten}}),Object.defineProperty(t,"stringToHex",{enumerable:!0,get:function(){return a.stringToHex}}),Object.defineProperty(t,"stringToU8a",{enumerable:!0,get:function(){return s.stringToU8a}}),Object.defineProperty(t,"stringUpperFirst",{enumerable:!0,get:function(){return i.stringUpperFirst}});var n=r(25479),i=r(98303),o=r(41574),a=r(28524),s=r(1303)},98303:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringUpperFirst=t.stringLowerFirst=void 0;var n=r(25479);function i(e){return t=>t?e[t.charCodeAt(0)]+t.slice(1):""}const o=i(n.CC_TO_LO);t.stringLowerFirst=o;const a=i(n.CC_TO_UP);t.stringUpperFirst=a},41574:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringShorten=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return e.length<=2+2*t?e.toString():`${e.substring(0,t)}…${e.slice(-t)}`}},28524:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringToHex=function(e){return(0,n.u8aToHex)((0,i.stringToU8a)(e))};var n=r(84024),i=r(1303)},1303:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringToU8a=function(e){return e?n.encode(e.toString()):new Uint8Array};const n=new(r(55109).TextEncoder)},77385:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=function(e,t){return JSON.stringify(e,i,t)};var n=r(18858);function i(e,t){return(0,n.isBigInt)(t)?t.toString():t}},66680:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aCmp=function(e,t){const r=(0,n.u8aToU8a)(e),i=(0,n.u8aToU8a)(t);let o=0;for(;;){const e=o>=r.length,t=o>=i.length;if(e&&t)return 0;if(e)return-1;if(t)return 1;if(r[o]!==i[o])return r[o]>i[o]?1:-1;o++}};var n=r(87505)},9918:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aConcat=function(){const e=new Array(arguments.length);let t=0;for(let r=0;r<arguments.length;r++)e[r]=(0,n.u8aToU8a)(r<0||arguments.length<=r?void 0:arguments[r]),t+=e[r].length;return i(e,t)},t.u8aConcatStrict=i;var n=r(87505);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=0;if(!t)for(let r=0;r<e.length;r++)t+=e[r].length;const n=new Uint8Array(t);for(let t=0;t<e.length;t++)n.set(e[t],r),r+=e[t].length;return n}},5752:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aEmpty=function(e){const t=e.length;for(let r=0;r<t;r++)if(e[r])return!1;return!0}},60718:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aEq=function(e,t){const r=(0,n.u8aToU8a)(e),i=(0,n.u8aToU8a)(t);if(r.length===i.length){const e=new DataView(r.buffer,r.byteOffset),t=new DataView(i.buffer,i.byteOffset),n=r.length%4,o=r.length-n;for(let r=0;r<o;r+=4)if(e.getUint32(r)!==t.getUint32(r))return!1;for(let e=o;e<r.length;e++)if(r[e]!==i[e])return!1;return!0}return!1};var n=r(87505)},55351:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aFixLength=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n=Math.ceil(t/8);if(-1===t||e.length===n)return e;if(e.length>n)return e.subarray(0,n);const i=new Uint8Array(n);return i.set(e,r?0:n-e.length),i}},25816:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"U8A_WRAP_ETHEREUM",{enumerable:!0,get:function(){return g.U8A_WRAP_ETHEREUM}}),Object.defineProperty(t,"U8A_WRAP_POSTFIX",{enumerable:!0,get:function(){return g.U8A_WRAP_POSTFIX}}),Object.defineProperty(t,"U8A_WRAP_PREFIX",{enumerable:!0,get:function(){return g.U8A_WRAP_PREFIX}}),Object.defineProperty(t,"u8aCmp",{enumerable:!0,get:function(){return n.u8aCmp}}),Object.defineProperty(t,"u8aConcat",{enumerable:!0,get:function(){return i.u8aConcat}}),Object.defineProperty(t,"u8aConcatStrict",{enumerable:!0,get:function(){return i.u8aConcatStrict}}),Object.defineProperty(t,"u8aEmpty",{enumerable:!0,get:function(){return o.u8aEmpty}}),Object.defineProperty(t,"u8aEq",{enumerable:!0,get:function(){return a.u8aEq}}),Object.defineProperty(t,"u8aFixLength",{enumerable:!0,get:function(){return s.u8aFixLength}}),Object.defineProperty(t,"u8aIsWrapped",{enumerable:!0,get:function(){return g.u8aIsWrapped}}),Object.defineProperty(t,"u8aSorted",{enumerable:!0,get:function(){return c.u8aSorted}}),Object.defineProperty(t,"u8aToBigInt",{enumerable:!0,get:function(){return f.u8aToBigInt}}),Object.defineProperty(t,"u8aToBn",{enumerable:!0,get:function(){return l.u8aToBn}}),Object.defineProperty(t,"u8aToBuffer",{enumerable:!0,get:function(){return d.u8aToBuffer}}),Object.defineProperty(t,"u8aToFloat",{enumerable:!0,get:function(){return u.u8aToFloat}}),Object.defineProperty(t,"u8aToHex",{enumerable:!0,get:function(){return h.u8aToHex}}),Object.defineProperty(t,"u8aToNumber",{enumerable:!0,get:function(){return p.u8aToNumber}}),Object.defineProperty(t,"u8aToString",{enumerable:!0,get:function(){return b.u8aToString}}),Object.defineProperty(t,"u8aToU8a",{enumerable:!0,get:function(){return y.u8aToU8a}}),Object.defineProperty(t,"u8aUnwrapBytes",{enumerable:!0,get:function(){return g.u8aUnwrapBytes}}),Object.defineProperty(t,"u8aWrapBytes",{enumerable:!0,get:function(){return g.u8aWrapBytes}});var n=r(66680),i=r(9918),o=r(5752),a=r(60718),s=r(55351),u=r(1525),c=r(95337),f=r(12850),l=r(38630),d=r(31126),h=r(84024),p=r(16446),b=r(48036),y=r(87505),g=r(97153)},95337:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aSorted=function(e){return e.sort(n.u8aCmp)};var n=r(66680)},12850:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToBigInt=function(e){let{isLe:t=!0,isNegative:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||!e.length)return(0,n.BigInt)(0);const s=t?e:e.reverse(),u=new DataView(s.buffer,s.byteOffset),c=s.length%2;let f=(0,n.BigInt)(0);if(r){for(let e=s.length-2;e>=c;e-=2)f=f*a+(0,n.BigInt)(65535^u.getUint16(e,!0));c&&(f=f*o+(0,n.BigInt)(255^u.getUint8(0)))}else{for(let e=s.length-2;e>=c;e-=2)f=f*a+(0,n.BigInt)(u.getUint16(e,!0));c&&(f=f*o+(0,n.BigInt)(u.getUint8(0)))}return r?f*-i._1n-i._1n:f};var n=r(17016),i=r(94991);const o=(0,n.BigInt)(256),a=(0,n.BigInt)(65536)},38630:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToBn=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{isLe:r=!0,isNegative:o=!1}=(0,i.isBoolean)(t)?{isLe:t}:t,a=e.length;if(a<=6){if(o){let t=0;if(r)switch(a){case 0:return new n.BN(0);case 1:t=255^e[0];break;case 2:t=e[0]+(e[1]<<8)^65535;break;case 3:t=e[0]+(e[1]<<8)+(e[2]<<16)^16777215;break;case 4:t=e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295;break;case 5:t=(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295)+4294967296*(255^e[4]);break;default:t=(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295)+4294967296*(e[4]+(e[5]<<8)^65535)}else for(let r=0;r<a;r++)t=256*t+(255^e[r]);return a?new n.BN(-1*t-1):new n.BN(0)}if(!r){let t=0;for(let r=0;r<a;r++)t=256*t+e[r];return new n.BN(t)}switch(a){case 0:return new n.BN(0);case 1:return new n.BN(e[0]);case 2:return new n.BN(e[0]+(e[1]<<8));case 3:return new n.BN(e[0]+(e[1]<<8)+(e[2]<<16));case 4:return new n.BN(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]);case 5:return new n.BN(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*(e[3]+(e[4]<<8)));default:return new n.BN(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*(e[3]+(e[4]<<8)+(e[5]<<16)))}}return o?new n.BN(e,r?"le":"be").fromTwos(8*e.length):new n.BN(e,r?"le":"be")};var n=r(90382),i=r(38811)},31126:(e,t,r)=>{"use strict";var n=r(48764).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToBuffer=function(e){return n.from(e||[])}},1525:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToFloat=function(e){let{bitLength:t=32,isLe:r=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(32!==t&&64!==t)throw new Error("Invalid bitLength provided, expected 32 or 64");if(e.length<t/8)throw new Error(`Invalid input buffer provided, expected at least ${t/8} bytes, found ${e.length}`);const n=new DataView(e.buffer,e.byteOffset);return 32===t?n.getFloat32(0,r):n.getFloat64(0,r)}},84024:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToHex=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const n=Math.ceil(t/8);return`${r?"0x":""}${e&&e.length?t>0&&e.length>n?`${i(e.subarray(0,n/2))}…${i(e.subarray(e.length-n/2))}`:i(e):""}`};const r=new Array(256),n=new Array(65536);for(let e=0;e<256;e++)r[e]=e.toString(16).padStart(2,"0");for(let e=0;e<256;e++){const t=e<<8;for(let i=0;i<256;i++)n[t|i]=r[e]+r[i]}function i(e){const t=e.length%2,i=e.length-t,o=new DataView(e.buffer,e.byteOffset);let a="";for(let e=0;e<i;e+=2)a+=n[o.getUint16(e)];return t&&(a+=r[o.getUint8(i)]),a}},16446:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToNumber=function(e){let{isNegative:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=e.length;if(t){let t=0;switch(r){case 0:return 0;case 1:t=255^e[0];break;case 2:t=e[0]+(e[1]<<8)^65535;break;case 3:t=e[0]+(e[1]<<8)+(e[2]<<16)^16777215;break;case 4:t=e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295;break;case 5:t=(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295)+4294967296*(255^e[4]);break;case 6:t=(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295)+4294967296*(e[4]+(e[5]<<8)^65535);break;default:throw new Error("Value more than 48-bits cannot be reliably converted")}return-1*t-1}switch(r){case 0:return 0;case 1:return e[0];case 2:return e[0]+(e[1]<<8);case 3:return e[0]+(e[1]<<8)+(e[2]<<16);case 4:return e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3];case 5:return e[0]+(e[1]<<8)+(e[2]<<16)+16777216*(e[3]+(e[4]<<8));case 6:return e[0]+(e[1]<<8)+(e[2]<<16)+16777216*(e[3]+(e[4]<<8)+(e[5]<<16));default:throw new Error("Value more than 48-bits cannot be reliably converted")}}},48036:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToString=function(e){return e?n.decode(e):""};const n=new(r(52144).TextDecoder)("utf-8")},87505:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToU8a=function(e){return(0,a.isU8a)(e)?e:(0,o.isHex)(e)?(0,n.hexToU8a)(e):(0,i.isBuffer)(e)||Array.isArray(e)?new Uint8Array(e):(0,s.stringToU8a)(e)};var n=r(80827),i=r(44305),o=r(4723),a=r(68726),s=r(1303)},97153:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.U8A_WRAP_PREFIX=t.U8A_WRAP_POSTFIX=t.U8A_WRAP_ETHEREUM=void 0,t.u8aIsWrapped=f,t.u8aUnwrapBytes=function(e){const t=(0,o.u8aToU8a)(e);return f(t,!1)?t.subarray(s.length,t.length-u.length):t},t.u8aWrapBytes=function(e){const t=(0,o.u8aToU8a)(e);return f(t,!0)?t:(0,n.u8aConcatStrict)([s,t,u])};var n=r(9918),i=r(60718),o=r(87505);const a=(0,o.u8aToU8a)("Ethereum Signed Message:\n");t.U8A_WRAP_ETHEREUM=a;const s=(0,o.u8aToU8a)("<Bytes>");t.U8A_WRAP_PREFIX=s;const u=(0,o.u8aToU8a)("</Bytes>");t.U8A_WRAP_POSTFIX=u;const c=s.length+u.length;function f(e,t){return e.length>=c&&(0,i.u8aEq)(e.subarray(0,s.length),s)&&(0,i.u8aEq)(e.slice(-u.length),u)||t&&e.length>=a.length&&(0,i.u8aEq)(e.subarray(0,a.length),a)}},61634:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.detectPackage=function(e,t){let{name:r,path:i,type:o,version:f}=e,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!r.startsWith("@polkadot"))throw new Error(`Invalid package descriptor ${r}`);const d=function(e){const t=n.xglobal;return t.__polkadotjs||(t.__polkadotjs={}),t.__polkadotjs[e]||(t.__polkadotjs[e]=[]),t.__polkadotjs[e]}(r);if(d.push({path:u(i,t),type:o,version:f}),1!==d.length)c(`${r} has multiple versions, ensure that there is only one installed.`,d,s);else{const e=l.filter((e=>e&&e.version!==f));e.length&&c(`${r} requires direct dependencies exactly matching version ${f}.`,e,a)}};var n=r(57653),i=r(15594);const o="Either remove and explicitly install matching versions or dedupe using your package manager.\nThe following conflicting packages were found:";function a(e,t){let{name:r}=t;return[e,r]}function s(e,t){let r,{path:n,type:i}=t;if(n&&n.length>=5){const e=n.indexOf("node_modules");r=-1===e?n:n.substring(e)}else r="<unknown>";return[`${`${i||""}`.padStart(3)} ${e}`,r]}function u(e,t){if(e)return e;if((0,i.isFunction)(t))try{return t()||""}catch(e){return""}return t||""}function c(e,t,r){console.warn(`${e}\n${o}\n${function(e,t){let r=0;for(let t=0;t<e.length;t++)r=Math.max(r,e[t].version.length);return e.map((e=>`\t${t(e.version.padEnd(r),e).join("\t")}`)).join("\n")}(t,r)}`)}},17016:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BigInt=void 0,Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return i.packageInfo}});var n=r(57653),i=r(38783);const o="function"==typeof n.xglobal.BigInt&&"function"==typeof n.xglobal.BigInt.asIntN?n.xglobal.BigInt:()=>Number.NaN;t.BigInt=o},38783:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-bigint",path:"/",type:"cjs",version:"9.7.2"}},57653:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exposeGlobal=function(e,t){void 0===i[e]&&(i[e]=t)},t.extractGlobal=function(e,t){return void 0===i[e]?t:i[e]},Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return n.packageInfo}}),t.xglobal=void 0;var n=r(6108);const i="undefined"!=typeof globalThis?globalThis:void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this");t.xglobal=i},6108:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-global",path:"/",type:"cjs",version:"9.7.2"}},52144:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextDecoder=void 0,Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return o.packageInfo}});var n=r(57653),i=r(77044),o=r(26320);const a=(0,n.extractGlobal)("TextDecoder",i.TextDecoder);t.TextDecoder=a},77044:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728));Object.defineProperty(t,"__esModule",{value:!0}),t.TextDecoder=void 0;let a=function(){function e(t){(0,i.default)(this,e)}return(0,o.default)(e,[{key:"decode",value:function(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t}}]),e}();t.TextDecoder=a},26320:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-textdecoder",path:"/",type:"cjs",version:"9.7.2"}},55109:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextEncoder=void 0,Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return o.packageInfo}});var n=r(57653),i=r(14742),o=r(8473);const a=(0,n.extractGlobal)("TextEncoder",i.TextEncoder);t.TextEncoder=a},14742:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728));Object.defineProperty(t,"__esModule",{value:!0}),t.TextEncoder=void 0;let a=function(){function e(){(0,i.default)(this,e)}return(0,o.default)(e,[{key:"encode",value:function(e){const t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}}]),e}();t.TextEncoder=a},8473:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-textencoder",path:"/",type:"cjs",version:"9.7.2"}},14203:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={Keyring:!0,decodeAddress:!0,encodeAddress:!0,setSS58Format:!0,createPair:!0,packageInfo:!0,createTestKeyring:!0,createTestPairs:!0};Object.defineProperty(t,"Keyring",{enumerable:!0,get:function(){return i.Keyring}}),Object.defineProperty(t,"createPair",{enumerable:!0,get:function(){return s.createPair}}),Object.defineProperty(t,"createTestKeyring",{enumerable:!0,get:function(){return c.createTestKeyring}}),Object.defineProperty(t,"createTestPairs",{enumerable:!0,get:function(){return f.createTestPairs}}),Object.defineProperty(t,"decodeAddress",{enumerable:!0,get:function(){return o.decodeAddress}}),Object.defineProperty(t,"encodeAddress",{enumerable:!0,get:function(){return o.encodeAddress}}),Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return u.packageInfo}}),Object.defineProperty(t,"setSS58Format",{enumerable:!0,get:function(){return o.setSS58Format}});var i=r(79195),o=r(73056),a=r(68365);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var s=r(99322),u=r(54865),c=r(97236),f=r(82295)},68365:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEV_SEED=t.DEV_PHRASE=void 0,t.DEV_PHRASE="bottom drive obey lake curtain smoke basket hold race lonely fit walk",t.DEV_SEED="0xfac7959dbfe72f052e5a0c3c8d6530f202b02fd8f9f5ca3580ec8deb7797479e"},63029:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(20496),i=r(61429),o=[n.packageInfo,i.packageInfo];t.default=o},92513:(e,t,r)=>{"use strict";var n=r(64836),i=r(53956),o=n(r(63029)),a=r(54865);(0,i.detectPackage)(a.packageInfo,null,o.default)},42946:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={};t.default=void 0,r(92513);var i=r(14203);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=i.Keyring;t.default=o},79195:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(29399)),s=n(r(40426));Object.defineProperty(t,"__esModule",{value:!0}),t.Keyring=void 0;var u=r(53956),c=r(73056),f=r(68365),l=r(99322),d=r(45935);const h={ecdsa:e=>(0,c.secp256k1PairFromSeed)(e),ed25519:e=>(0,c.ed25519PairFromSeed)(e),ethereum:e=>(0,c.secp256k1PairFromSeed)(e),sr25519:e=>(0,c.sr25519PairFromSeed)(e)};function p(e){let{publicKey:t}=e;return t}var b=(0,s.default)("pairs"),y=(0,s.default)("type"),g=(0,s.default)("ss58");let m=function(){function e(){(0,i.default)(this,e),Object.defineProperty(this,b,{writable:!0,value:void 0}),Object.defineProperty(this,y,{writable:!0,value:void 0}),Object.defineProperty(this,g,{writable:!0,value:void 0}),this.decodeAddress=c.decodeAddress,this.encodeAddress=(e,t)=>"ethereum"===this.type?(0,c.ethereumEncode)(e):(0,c.encodeAddress)(e,void 0===t?(0,a.default)(this,g)[g]:t);let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.type=t.type||"ed25519",!["ecdsa","ethereum","ed25519","sr25519"].includes(t.type||"undefined"))throw new Error(`Expected a keyring type of either 'ed25519', 'sr25519', 'ethereum' or 'ecdsa', found '${t.type||"unknown"}`);(0,a.default)(this,b)[b]=new d.Pairs,(0,a.default)(this,g)[g]=t.ss58Format,(0,a.default)(this,y)[y]=t.type}return(0,o.default)(e,[{key:"pairs",get:function(){return this.getPairs()}},{key:"publicKeys",get:function(){return this.getPublicKeys()}},{key:"type",get:function(){return(0,a.default)(this,y)[y]}},{key:"addPair",value:function(e){return(0,a.default)(this,b)[b].add(e)}},{key:"addFromAddress",value:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.type,i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0;const a=this.decodeAddress(e,i);return this.addPair((0,l.createPair)({toSS58:this.encodeAddress,type:n},{publicKey:a,secretKey:new Uint8Array},t,r,o))}},{key:"addFromJson",value:function(e,t){return this.addPair(this.createFromJson(e,t))}},{key:"addFromMnemonic",value:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.type;return this.addFromUri(e,t,r)}},{key:"addFromPair",value:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.type;return this.addPair(this.createFromPair(e,t,r))}},{key:"addFromSeed",value:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.type;return this.addPair((0,l.createPair)({toSS58:this.encodeAddress,type:r},h[r](e),t,null))}},{key:"addFromUri",value:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.type;return this.addPair(this.createFromUri(e,t,r))}},{key:"createFromJson",value:function(e,t){let{address:r,encoded:n,encoding:{content:i,type:o,version:a},meta:s}=e;if("3"===a&&"pkcs8"!==i[0])throw new Error(`Unable to decode non-pkcs8 type, [${i.join(",")}] found}`);const f="0"!==a&&Array.isArray(i)?i[1]:this.type,d=Array.isArray(o)?o:[o];if(!["ed25519","sr25519","ecdsa","ethereum"].includes(f))throw new Error(`Unknown crypto type ${f}`);const h=(0,u.isHex)(r)?(0,u.hexToU8a)(r):this.decodeAddress(r,t),p=(0,u.isHex)(n)?(0,u.hexToU8a)(n):(0,c.base64Decode)(n);return(0,l.createPair)({toSS58:this.encodeAddress,type:f},{publicKey:h,secretKey:new Uint8Array},s,p,d)}},{key:"createFromPair",value:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.type;return(0,l.createPair)({toSS58:this.encodeAddress,type:r},e,t,null)}},{key:"createFromUri",value:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.type;const n=e.startsWith("//")?`${f.DEV_PHRASE}${e}`:e,{derivePath:i,password:o,path:a,phrase:s}=(0,c.keyExtractSuri)(n);let d;const p=(0,u.isHex)(s,256);if(p)d=(0,u.hexToU8a)(s);else{const e=s.split(" ");if([12,15,18,21,24].includes(e.length))d="ethereum"===r?(0,c.mnemonicToLegacySeed)(s,"",!1,64):(0,c.mnemonicToMiniSecret)(s,o);else{if(s.length>32)throw new Error("specified phrase is not a valid mnemonic and is invalid as a raw seed at > 32 bytes");d=(0,u.stringToU8a)(s.padEnd(32))}}const b="ethereum"===r?p?h[r](d):(0,c.hdEthereum)(d,i.substring(1)):(0,c.keyFromPath)(h[r](d),a,r);return(0,l.createPair)({toSS58:this.encodeAddress,type:r},b,t,null)}},{key:"getPair",value:function(e){return(0,a.default)(this,b)[b].get(e)}},{key:"getPairs",value:function(){return(0,a.default)(this,b)[b].all()}},{key:"getPublicKeys",value:function(){return(0,a.default)(this,b)[b].all().map(p)}},{key:"removePair",value:function(e){(0,a.default)(this,b)[b].remove(e)}},{key:"setSS58Format",value:function(e){(0,a.default)(this,g)[g]=e}},{key:"toJson",value:function(e,t){return(0,a.default)(this,b)[b].get(e).toJson(t)}}]),e}();t.Keyring=m},54865:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/keyring",path:"/",type:"cjs",version:"10.4.1"}},24860:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodePair=function(e,t,r){const s=Array.isArray(r)||void 0===r?r:[r],u=(0,i.jsonDecryptData)(t,e,s),c=u.subarray(0,o.PKCS8_HEADER.length);if(!(0,n.u8aEq)(c,o.PKCS8_HEADER))throw new Error("Invalid Pkcs8 header found in body");let f=u.subarray(a,a+o.SEC_LENGTH),l=a+o.SEC_LENGTH,d=u.subarray(l,l+o.PKCS8_DIVIDER.length);if(!(0,n.u8aEq)(d,o.PKCS8_DIVIDER)&&(l=a+o.SEED_LENGTH,f=u.subarray(a,l),d=u.subarray(l,l+o.PKCS8_DIVIDER.length),!(0,n.u8aEq)(d,o.PKCS8_DIVIDER)))throw new Error("Invalid Pkcs8 divider found in body");const h=l+o.PKCS8_DIVIDER.length;return{publicKey:u.subarray(h,h+o.PUB_LENGTH),secretKey:f}};var n=r(53956),i=r(73056),o=r(59728);const a=o.PKCS8_HEADER.length},59728:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SEED_LENGTH=t.SEC_LENGTH=t.SALT_LENGTH=t.PUB_LENGTH=t.PKCS8_HEADER=t.PKCS8_DIVIDER=void 0;const r=new Uint8Array([161,35,3,33,0]);t.PKCS8_DIVIDER=r;const n=new Uint8Array([48,83,2,1,1,48,5,6,3,43,101,112,4,34,4,32]);t.PKCS8_HEADER=n,t.PUB_LENGTH=32,t.SALT_LENGTH=32,t.SEC_LENGTH=64,t.SEED_LENGTH=32},99905:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodePair=function(e,t){let{publicKey:r,secretKey:a}=e;if(!a)throw new Error("Expected a valid secretKey to be passed to encode");const s=(0,n.u8aConcat)(o.PKCS8_HEADER,a,o.PKCS8_DIVIDER,r);if(!t)return s;const{params:u,password:c,salt:f}=(0,i.scryptEncode)(t),{encrypted:l,nonce:d}=(0,i.naclEncrypt)(s,c.subarray(0,32));return(0,n.u8aConcat)((0,i.scryptToU8a)(f,u),d,l)};var n=r(53956),i=r(73056),o=r(59728)},99322:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createPair=function e(t,r){let{toSS58:b,type:y}=t,{publicKey:g,secretKey:m}=r,v=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},w=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,_=arguments.length>4?arguments[4]:void 0;const x=(e,t)=>{const r=(0,o.decodePair)(e,t||w,_);if(64===r.secretKey.length)g=r.publicKey,m=r.secretKey;else{const e=c[y](r.secretKey);g=e.publicKey,m=e.secretKey}},O=e=>(h(m)&&w&&x(e,w),w=(0,a.encodePair)({publicKey:g,secretKey:m},e),_=void 0,w),k=()=>{const e=d[y](g);return"ethereum"===y?(0,i.ethereumEncode)(e):b(e)};return{get address(){return k()},get addressRaw(){const e=d[y](g);return"ethereum"===y?e.slice(-20):e},get isLocked(){return h(m)},get meta(){return v},get publicKey(){return g},get type(){return y},decodePkcs8:x,decryptMessage:(e,t)=>{if(h(m))throw new Error("Cannot encrypt with a locked key pair");if(["ecdsa","ethereum"].includes(y))throw new Error("Secp256k1 not supported yet");const r=(0,n.u8aToU8a)(e);return(0,i.naclOpen)(r.slice(24,r.length),r.slice(0,24),(0,i.convertPublicKeyToCurve25519)((0,n.u8aToU8a)(t)),(0,i.convertSecretKeyToCurve25519)(m))},derive:(t,r)=>{if("ethereum"===y)throw new Error("Unable to derive on this keypair");if(h(m))throw new Error("Cannot derive on a locked keypair");const{path:n}=(0,i.keyExtractPath)(t),o=(0,i.keyFromPath)({publicKey:g,secretKey:m},n,y);return e({toSS58:b,type:y},o,r,null)},encodePkcs8:e=>O(e),encryptMessage:(e,t,r)=>{if(h(m))throw new Error("Cannot encrypt with a locked key pair");if(["ecdsa","ethereum"].includes(y))throw new Error("Secp256k1 not supported yet");const{nonce:o,sealed:a}=(0,i.naclSeal)((0,n.u8aToU8a)(e),(0,i.convertSecretKeyToCurve25519)(m),(0,i.convertPublicKeyToCurve25519)((0,n.u8aToU8a)(t)),r);return(0,n.u8aConcat)(o,a)},lock:()=>{m=new Uint8Array},setMeta:e=>{v=(0,n.objectSpread)({},v,e)},sign:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(h(m))throw new Error("Cannot sign with a locked key pair");return(0,n.u8aConcat)(t.withType?f[y]:u,l[y]((0,n.u8aToU8a)(e),{publicKey:g,secretKey:m}))},toJson:e=>{const t=["ecdsa","ethereum"].includes(y)?20===g.length?(0,n.u8aToHex)(g):(0,n.u8aToHex)((0,i.secp256k1Compress)(g)):k();return(0,s.pairToJson)(y,{address:t,meta:v},O(e),!!e)},unlock:e=>x(e),verify:(e,t,r)=>(0,i.signatureVerify)(e,t,d[y]((0,n.u8aToU8a)(r))).isValid,vrfSign:(e,t,r)=>{if(h(m))throw new Error("Cannot sign with a locked key pair");if("sr25519"===y)return(0,i.sr25519VrfSign)(e,{secretKey:m},t,r);const o=l[y]((0,n.u8aToU8a)(e),{publicKey:g,secretKey:m});return(0,n.u8aConcat)(p(o,t,r),o)},vrfVerify:(e,t,r,o,a)=>"sr25519"===y?(0,i.sr25519VrfVerify)(e,t,g,o,a):(0,i.signatureVerify)(e,(0,n.u8aConcat)(f[y],t.subarray(32)),d[y]((0,n.u8aToU8a)(r))).isValid&&(0,n.u8aEq)(t.subarray(0,32),p(t.subarray(32),o,a))}};var n=r(53956),i=r(73056),o=r(24860),a=r(99905),s=r(11062);const u=new Uint8Array,c={ecdsa:i.secp256k1PairFromSeed,ed25519:i.ed25519PairFromSeed,ethereum:i.secp256k1PairFromSeed,sr25519:i.sr25519PairFromSeed},f={ecdsa:new Uint8Array([2]),ed25519:new Uint8Array([0]),ethereum:new Uint8Array([2]),sr25519:new Uint8Array([1])},l={ecdsa:(e,t)=>(0,i.secp256k1Sign)(e,t,"blake2"),ed25519:i.ed25519Sign,ethereum:(e,t)=>(0,i.secp256k1Sign)(e,t,"keccak"),sr25519:i.sr25519Sign},d={ecdsa:e=>e.length>32?(0,i.blake2AsU8a)(e):e,ed25519:e=>e,ethereum:e=>20===e.length?e:(0,i.keccakAsU8a)((0,i.secp256k1Expand)(e)),sr25519:e=>e};function h(e){return!e||(0,n.u8aEmpty)(e)}function p(e,t,r){return(0,i.blake2AsU8a)((0,n.u8aConcat)(t||"",r||"",e))}},34301:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nobody=function(){return a};const r=new Uint8Array(32),n="5C4hrfjw9DjXZTzV3MwzrrAr9P1MJhSrvWGWqi1eSuyUpnhM",i={isTesting:!0,name:"nobody"},o={address:n,encoded:"",encoding:{content:["pkcs8","ed25519"],type:"none",version:"0"},meta:i},a={address:n,addressRaw:r,decodePkcs8:(e,t)=>{},decryptMessage:(e,t)=>null,derive:(e,t)=>a,encodePkcs8:e=>new Uint8Array(0),encryptMessage:(e,t,r)=>new Uint8Array,isLocked:!0,lock:()=>{},meta:i,publicKey:r,setMeta:e=>{},sign:e=>new Uint8Array(64),toJson:e=>o,type:"ed25519",unlock:e=>{},verify:(e,t)=>!1,vrfSign:(e,t,r)=>new Uint8Array(96),vrfVerify:(e,t,r,n)=>!1}},11062:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pairToJson=function(e,t,r,o){let{address:a,meta:s}=t;return(0,n.objectSpread)((0,i.jsonEncryptFormat)(r,["pkcs8",e],o),{address:a,meta:s})};var n=r(53956),i=r(73056)},45935:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(29399)),s=n(r(40426));Object.defineProperty(t,"__esModule",{value:!0}),t.Pairs=void 0;var u=r(53956),c=r(73056),f=(0,s.default)("map");let l=function(){function e(){(0,i.default)(this,e),Object.defineProperty(this,f,{writable:!0,value:{}})}return(0,o.default)(e,[{key:"add",value:function(e){return(0,a.default)(this,f)[f][(0,c.decodeAddress)(e.address).toString()]=e,e}},{key:"all",value:function(){return Object.values((0,a.default)(this,f)[f])}},{key:"get",value:function(e){const t=(0,a.default)(this,f)[f][(0,c.decodeAddress)(e).toString()];if(!t)throw new Error(`Unable to retrieve keypair '${(0,u.isU8a)(e)||(0,u.isHex)(e)?(0,u.u8aToHex)((0,u.u8aToU8a)(e)):e}'`);return t}},{key:"remove",value:function(e){delete(0,a.default)(this,f)[f][(0,c.decodeAddress)(e).toString()]}}]),e}();t.Pairs=l},97236:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PAIRSSR25519=t.PAIRSETHEREUM=void 0,t.createTestKeyring=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const r=new i.Keyring(e),c="ethereum"===e.type?s:a;for(const{name:i,p:a,s,seed:f,type:l}of c){const c=u(i,f);(t||i||!f?r.addPair((0,o.createPair)({toSS58:r.encodeAddress,type:l},{publicKey:(0,n.hexToU8a)(a),secretKey:(0,n.hexToU8a)(s)},c)):r.addFromUri(f,c,e.type)).lock=()=>{}}return r};var n=r(53956),i=r(79195),o=r(99322);const a=[{p:"0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d",s:"0x98319d4ff8a9508c4bb0cf0b5a78d760a0b2082c02775e6e82370816fedfff48925a225d97aa00682d6a59b95b18780c10d7032336e88f3442b42361f4a66011",seed:"Alice",type:"sr25519"},{p:"0xbe5ddb1579b72e84524fc29e78609e3caf42e85aa118ebfe0b0ad404b5bdd25f",s:"0xe8da6c9d810e020f5e3c7f5af2dea314cbeaa0d72bc6421e92c0808a0c584a6046ab28e97c3ffc77fe12b5a4d37e8cd4afbfebbf2391ffc7cb07c0f38c023efd",seed:"Alice//stash",type:"sr25519"},{p:"0x8eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48",s:"0x081ff694633e255136bdb456c20a5fc8fed21f8b964c11bb17ff534ce80ebd5941ae88f85d0c1bfc37be41c904e1dfc01de8c8067b0d6d5df25dd1ac0894a325",seed:"Bob",type:"sr25519"},{p:"0xfe65717dad0447d715f660a0a58411de509b42e6efb8375f562f58a554d5860e",s:"0xc006507cdfc267a21532394c49ca9b754ca71de21e15a1cdf807c7ceab6d0b6c3ed408d9d35311540dcd54931933e67cf1ea10d46f75408f82b789d9bd212fde",seed:"Bob//stash",type:"sr25519"},{p:"0x90b5ab205c6974c9ea841be688864633dc9ca8a357843eeacf2314649965fe22",s:"0xa8f2d83016052e5d6d77b2f6fd5d59418922a09024cda701b3c34369ec43a7668faf12ff39cd4e5d92bb773972f41a7a5279ebc2ed92264bed8f47d344f8f18c",seed:"Charlie",type:"sr25519"},{p:"0x306721211d5404bd9da88e0204360a1a9ab8b87c66c1bc2fcdd37f3c2222cc20",s:"0x20e05482ca4677e0edbc58ae9a3a59f6ed3b1a9484ba17e64d6fe8688b2b7b5d108c4487b9323b98b11fe36cb301b084e920f7b7895536809a6d62a451b25568",seed:"Dave",type:"sr25519"},{p:"0xe659a7a1628cdd93febc04a4e0646ea20e9f5f0ce097d9a05290d4a9e054df4e",s:"0x683576abfd5dc35273e4264c23095a1bf21c14517bece57c7f0cc5c0ed4ce06a3dbf386b7828f348abe15d76973a72009e6ef86a5c91db2990cb36bb657c6587",seed:"Eve",type:"sr25519"},{p:"0x1cbd2d43530a44705ad088af313e18f80b53ef16b36177cd4b77b846f2a5f07c",s:"0xb835c20f450079cf4f513900ae9faf8df06ad86c681884122c752a4b2bf74d4303e4f21bc6cc62bb4eeed5a9cce642c25e2d2ac1464093b50f6196d78e3a7426",seed:"Ferdie",type:"sr25519"}];t.PAIRSSR25519=a;const s=[{name:"Alith",p:"0x02509540919faacf9ab52146c9aa40db68172d83777250b28e4679176e49ccdd9f",s:"0x5fb92d6e98884f76de468fa3f6278f8807c48bebc13595d45af5bdc4da702133",type:"ethereum"},{name:"Baltathar",p:"0x033bc19e36ff1673910575b6727a974a9abd80c9a875d41ab3e2648dbfb9e4b518",s:"0x8075991ce870b93a8870eca0c0f91913d12f47948ca0fd25b49c6fa7cdbeee8b",type:"ethereum"},{name:"Charleth",p:"0x0234637bdc0e89b5d46543bcbf8edff329d2702bc995e27e9af4b1ba009a3c2a5e",s:"0x0b6e18cafb6ed99687ec547bd28139cafdd2bffe70e6b688025de6b445aa5c5b",type:"ethereum"},{name:"Dorothy",p:"0x02a00d60b2b408c2a14c5d70cdd2c205db8985ef737a7e55ad20ea32cc9e7c417c",s:"0x39539ab1876910bbf3a223d84a29e28f1cb4e2e456503e7e91ed39b2e7223d68",type:"ethereum"},{name:"Ethan",p:"0x025cdc005b752651cd3f728fb9192182acb3a9c89e19072cbd5b03f3ee1f1b3ffa",s:"0x7dce9bc8babb68fec1409be38c8e1a52650206a7ed90ff956ae8a6d15eeaaef4",type:"ethereum"},{name:"Faith",p:"0x037964b6c9d546da4646ada28a99e34acaa1d14e7aba861a9055f9bd200c8abf74",s:"0xb9d2ea9a615f3165812e8d44de0d24da9bbd164b65c4f0573e1ce2c8dbd9c8df",type:"ethereum"}];function u(e,t){if(!e&&!t)throw new Error("Testing pair should have either a name or a seed");return{isTesting:!0,name:e||t&&t.replace("//","_").toLowerCase()}}t.PAIRSETHEREUM=s},82295:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTestPairs=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const r=(0,i.createTestKeyring)(e,t).getPairs(),o={nobody:(0,n.nobody)()};for(const e of r)o[e.meta.name]=e;return o};var n=r(34301),i=r(97236)},9694:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.knownGenesis=void 0,t.knownGenesis={acala:["0xfc41b9bd8ef8fe53d58c7ea67c794c7ec9a73daf05e6d54b14ff6342c99ba64c"],ajuna:["0xe358eb1d11b31255a286c12e44fe6780b7edb171d657905a97e39f71d9c6c3ee"],"aleph-node":["0x70255b4d28de0fc4e1a193d7e175ad1ccef431598211c55538f1018651a0344e"],astar:["0x9eb76c5184c4ab8679d2d5d819fdf90b9c001403e9e17da2e14b6d8aec4029c6"],basilisk:["0xa85cfb9b9fd4d622a5b28289a02347af987d8f73fa3108450e2b4a11c1ce5755"],bifrost:["0x262e1b2ad728475fd6fe88e62d34c200abe6fd693931ddad144059b1eb884e5b"],"bifrost-kusama":["0x9f28c6a68e0fc9646eff64935684f6eeeece527e37bbe1f213d22caa1d9d6bed"],centrifuge:["0xb3db41421702df9a7fcac62b53ffeac85f7853cc4e689e0b93aeb3db18c09d82","0x67dddf2673b69e5f875f6f25277495834398eafd67f492e09f3f3345e003d1b5"],composable:["0xdaab8df776eb52ec604a5df5d388bb62a050a0aaec4556a64265b9d42755552d"],darwinia:["0xe71578b37a7c799b0ab4ee87ffa6f059a6b98f71f06fb8c84a8d88013a548ad6"],"dock-mainnet":["0x6bfe24dca2a3be10f22212678ac13a6446ec764103c0f3471c71609eac384aae","0xf73467c6544aa68df2ee546b135f955c46b90fa627e9b5d7935f41061bb8a5a9"],edgeware:["0x742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b"],equilibrium:["0x6f1a800de3daff7f5e037ddf66ab22ce03ab91874debeddb1086f5f7dbd48925"],genshiro:["0x9b8cefc0eb5c568b527998bdd76c184e2b76ae561be76e4667072230217ea243"],hydradx:["0xafdc188f45c71dacbaa0b62e16a91f726c7b8699a9748cdf715459de6b7f366d","0xd2a620c27ec5cbc5621ff9a522689895074f7cca0d08e7134a7804e1a3ba86fc","0x10af6e84234477d84dc572bac0789813b254aa490767ed06fb9591191d1073f9","0x3d75507dd46301767e601265791da1d9cb47b6ebc94e87347b635e5bf58bd047","0x0ed32bfcab4a83517fac88f2aa7cbc2f88d3ab93be9a12b6188a036bf8a943c2"],"interlay-parachain":["0xbf88efe70e9e0e916416e8bed61f2b45717f517d7f3523e33c7b001e5ffcbc72"],karura:["0xbaf5aabe40646d11f0ee8abbdc64f4a4b7674925cba08e4a05ff9ebed6e2126b"],khala:["0xd43540ba6d3eb4897c28a77d48cb5b729fea37603cbbfc7a86a73b72adb3be8d"],kulupu:["0xf7a99d3cb92853d00d5275c971c132c074636256583fee53b3bbe60d7b8769ba"],kusama:["0xb0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe","0xe3777fa922cafbff200cadeaea1a76bd7898ad5b89f7848999058b50e715f636","0x3fd7b9eb6a00376e5be61f01abb429ffb0b104be05eaff4d458da48fcd425baf"],nodle:["0x97da7ede98d7bad4e36b4d734b6055425a3be036da2a332ea5a7037656427a21"],origintrail:["0xe7e0962324a3b86c83404dbea483f25fb5dab4c224791c81b756cfc948006174"],parallel:["0xe61a41c53f5dcd0beb09df93b34402aada44cb05117b71059cce40a2723a4e97"],phala:["0x1bb969d85965e4bb5a651abbedf21a54b6b31a21f66b5401cc3f1e286268d736"],picasso:["0x6811a339673c9daa897944dcdac99c6e2939cc88245ed21951a0a3c9a2be75bc","0xe8e7f0f4c4f5a00720b4821dbfddefea7490bcf0b19009961cc46957984e2c1c"],polkadex:["0x3920bcb4960a1eef5580cd5367ff3f430eef052774f78468852f7b9cb39f8a3c"],polkadot:["0x91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3"],polymesh:["0x6fbd74e5e1d0a61d52ccfe9d4adaed16dd3a7caa37c6bc4d0c2fa12e8b2f4063"],rococo:["0x6408de7737c59c238890533af25896a2c20608d8b380bb01029acb392781063e","0xaaf2cd1b74b5f726895921259421b534124726263982522174147046b8827897","0x037f5f3c8e67b314062025fc886fcd6238ea25a4a9b45dce8d246815c9ebe770","0xc196f81260cf1686172b47a79cf002120735d7cb0eb1474e8adce56618456fff","0xf6e9983c37baf68846fedafe21e56718790e39fb1c582abc408b81bc7b208f9a","0x5fce687da39305dfe682b117f0820b319348e8bb37eb16cf34acbf6a202de9d9","0xe7c3d5edde7db964317cd9b51a3a059d7cd99f81bdbce14990047354334c9779","0x1611e1dbf0405379b861e2e27daa90f480b2e6d3682414a80835a52e8cb8a215","0x343442f12fa715489a8714e79a7b264ea88c0d5b8c66b684a7788a516032f6b9","0x78bcd530c6b3a068bc17473cf5d2aff9c287102bed9af3ae3c41c33b9d6c6147","0x47381ee0697153d64404fc578392c8fd5cba9073391908f46c888498415647bd","0x19c0e4fa8ab75f5ac7865e0b8f74ff91eb9a100d336f423cd013a8befba40299"],sora:["0x7e4e32d0feafd4f9c9414b0be86373f9a1efa904809b683453a9af6856d38ad5"],stafi:["0x290a4149f09ea0e402c74c1c7e96ae4239588577fe78932f94f5404c68243d80"],statemine:["0x48239ef607d7928874027a43a67689209727dfb3d3dc5e5b03a39bdc2eda771a"],statemint:["0x68d56f15f85d3136970ec16946040bc1752654e906147f7e43e9d539d7c3de2f"],subsocial:["0x0bd72c1c305172e1275278aaeb3f161e02eccb7a819e63f62d47bd53a28189f8"],ternoa:["0x6859c81ca95ef624c9dfe4dc6e3381c33e5d6509e35e147092bfbc780f777c4e"],unique:["0x84322d9cddbf35088f1e54e9a85c967a41a56a4f43445768125e61af166c7d31"],vtb:["0x286bc8414c7000ce1d6ee6a834e29a54c1784814b76243eb77ed0b2c5573c60f","0x7483b89572fb2bd687c7b9a93b242d0b237f9aba463aba07ec24503931038aaa"],westend:["0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e"],xxnetwork:["0x50dd5d206917bf10502c68fb4d18a59fc8aa31586f4e8856b493e43544aa82aa"]}},64739:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.knownIcon=void 0,t.knownIcon={centrifuge:"polkadot",kusama:"polkadot",polkadot:"polkadot",sora:"polkadot",statemine:"polkadot",statemint:"polkadot",westmint:"polkadot"}},3604:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"knownGenesis",{enumerable:!0,get:function(){return n.knownGenesis}}),Object.defineProperty(t,"knownIcon",{enumerable:!0,get:function(){return i.knownIcon}}),Object.defineProperty(t,"knownLedger",{enumerable:!0,get:function(){return o.knownLedger}}),Object.defineProperty(t,"knownTestnet",{enumerable:!0,get:function(){return a.knownTestnet}});var n=r(9694),i=r(64739),o=r(68575),a=r(31906)},68575:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.knownLedger=void 0,t.knownLedger={acala:787,ajuna:354,"aleph-node":643,astar:810,bifrost:788,"bifrost-kusama":788,centrifuge:747,composable:354,darwinia:354,"dock-mainnet":594,edgeware:523,equilibrium:99999997,genshiro:99999996,hydradx:354,"interlay-parachain":354,karura:686,khala:434,kusama:434,nodle:1003,origintrail:354,parallel:354,phala:354,picasso:434,polkadex:799,polkadot:354,polymesh:595,sora:617,stafi:907,statemine:434,statemint:354,ternoa:995,unique:354,vtb:694,xxnetwork:1955}},31906:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.knownTestnet=void 0,t.knownTestnet={"":!0,"cess-testnet":!0,"dock-testnet":!0,jupiter:!0,"mathchain-testnet":!0,p3dt:!0,subspace_testnet:!0,"zero-alphaville":!0}},55662:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={packageInfo:!0};Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return o.packageInfo}});var i=r(31628);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=r(56093)},31628:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.selectableNetworks=t.availableNetworks=t.allNetworks=void 0;var i=n(r(72314)),o=r(3604);const a=[0,2,42],s=["testnet"],u=i.default.map((function(e){const t=e.network||"",r=t.replace(/_/g,"-").split("-"),n=e;return n.slip44=o.knownLedger[t],n.hasLedgerSupport=!!n.slip44,n.genesisHash=o.knownGenesis[t]||[],n.icon=o.knownIcon[t]||"substrate",n.isTestnet=!!o.knownTestnet[t]||s.includes(r[r.length-1]),n.isIgnored=n.isTestnet||!(e.standardAccount&&e.decimals&&e.decimals.length&&e.symbols&&e.symbols.length)&&42!==e.prefix,n}));t.allNetworks=u;const c=u.filter((function(e){return!e.isIgnored&&!!e.network})).sort((function(e,t){const r=a.includes(e.prefix);return r===a.includes(t.prefix)?r?0:e.displayName.localeCompare(t.displayName):r?-1:1}));t.availableNetworks=c;const f=c.filter((function(e){let{genesisHash:t,prefix:r}=e;return!!t.length||42===r}));t.selectableNetworks=f},56093:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/networks",path:"/",type:"cjs",version:"10.4.1"}},11469:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addressToEvm=function(e,t){return(0,n.decodeAddress)(e,t).subarray(0,20)};var n=r(36752)},74275:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkAddress=function(e,t){let r;try{r=(0,n.base58Decode)(e)}catch(e){return[!1,e.message]}const[a,,,s]=(0,i.checkAddressChecksum)(r);return s!==t?[!1,`Prefix mismatch, expected ${t}, found ${s}`]:o.defaults.allowedEncodedLengths.includes(r.length)?[a,a?null:"Invalid decoded address checksum"]:[!1,"Invalid decoded address length"]};var n=r(99832),i=r(45085),o=r(89386)},45085:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkAddressChecksum=function(e){const t=64&e[0]?2:1,r=1===t?e[0]:(63&e[0])<<2|e[1]>>6|(63&e[1])<<8,i=[34+t,35+t].includes(e.length),o=e.length-(i?2:1),a=(0,n.sshash)(e.subarray(0,o));return[0==(128&e[0])&&![46,47].includes(e[0])&&(i?e[e.length-2]===a[0]&&e[e.length-1]===a[1]:e[e.length-1]===a[0]),o,t,r]};var n=r(66533)},36752:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeAddress=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;if(!e)throw new Error("Invalid empty address passed");if((0,n.isU8a)(e)||(0,n.isHex)(e))return(0,n.u8aToU8a)(e);try{const n=(0,i.base58Decode)(e);if(!a.defaults.allowedEncodedLengths.includes(n.length))throw new Error("Invalid decoded address length");const[s,u,c,f]=(0,o.checkAddressChecksum)(n);if(!s&&!t)throw new Error("Invalid decoded address checksum");if(-1!==r&&r!==f)throw new Error(`Expected ss58Format ${r}, received ${f}`);return n.slice(c,u)}catch(t){throw new Error(`Decoding ${e}: ${t.message}`)}};var n=r(53956),i=r(99832),o=r(45085),a=r(89386)},89386:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaults=void 0;const n={allowedDecodedLengths:[1,2,4,8,32,33],allowedEncodedLengths:[3,4,6,10,35,36,37,38],allowedPrefix:r(55266).availableNetworks.map((e=>{let{prefix:t}=e;return t})),prefix:42};t.defaults=n},60337:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deriveAddress=function(e,t,r){const{path:u}=(0,n.keyExtractPath)(t);if(!u.length||u.every(s))throw new Error("Expected suri to contain a combination of non-hard paths");let c=(0,o.decodeAddress)(e);for(const{chainCode:e}of u)c=(0,i.sr25519DerivePublic)(c,e);return(0,a.encodeAddress)(c,r)};var n=r(44486),i=r(76097),o=r(36752),a=r(26336);function s(e){let{isHard:t}=e;return t}},26336:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeAddress=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.defaults.prefix;const r=(0,o.decodeAddress)(e);if(t<0||t>16383||[46,47].includes(t))throw new Error("Out of range ss58Format specified");if(!a.defaults.allowedDecodedLengths.includes(r.length))throw new Error(`Expected a valid key to convert, with length ${a.defaults.allowedDecodedLengths.join(", ")}`);const u=(0,n.u8aConcat)(t<64?[t]:[(252&t)>>2|64,t>>8|(3&t)<<6],r);return(0,i.base58Encode)((0,n.u8aConcat)(u,(0,s.sshash)(u).subarray(0,[32,33].includes(r.length)?2:1)))};var n=r(53956),i=r(99832),o=r(36752),a=r(89386),s=r(66533)},94647:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeDerivedAddress=function(e,t,r){return(0,i.encodeAddress)((0,o.createKeyDerived)((0,n.decodeAddress)(e),t),r)};var n=r(36752),i=r(26336),o=r(8051)},80411:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeMultiAddress=function(e,t,r){return(0,n.encodeAddress)((0,i.createKeyMulti)(e,t),r)};var n=r(26336),i=r(1761)},53891:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addressEq=function(e,t){return(0,n.u8aEq)((0,i.decodeAddress)(e),(0,i.decodeAddress)(t))};var n=r(53956),i=r(36752)},91353:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.evmToAddress=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"blake2";const a=(0,n.u8aConcat)("evm:",e);if(24!==a.length)throw new Error(`Converting ${e}: Invalid evm address length`);return(0,o.encodeAddress)((0,i.hasher)(r,a),t)};var n=r(53956),i=r(55361),o=r(26336)},12762:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addressEq",{enumerable:!0,get:function(){return p.addressEq}}),Object.defineProperty(t,"addressToEvm",{enumerable:!0,get:function(){return n.addressToEvm}}),Object.defineProperty(t,"checkAddress",{enumerable:!0,get:function(){return i.checkAddress}}),Object.defineProperty(t,"checkAddressChecksum",{enumerable:!0,get:function(){return o.checkAddressChecksum}}),Object.defineProperty(t,"createKeyDerived",{enumerable:!0,get:function(){return s.createKeyDerived}}),Object.defineProperty(t,"createKeyMulti",{enumerable:!0,get:function(){return a.createKeyMulti}}),Object.defineProperty(t,"decodeAddress",{enumerable:!0,get:function(){return u.decodeAddress}}),Object.defineProperty(t,"deriveAddress",{enumerable:!0,get:function(){return c.deriveAddress}}),Object.defineProperty(t,"encodeAddress",{enumerable:!0,get:function(){return f.encodeAddress}}),Object.defineProperty(t,"encodeDerivedAddress",{enumerable:!0,get:function(){return l.encodeDerivedAddress}}),Object.defineProperty(t,"encodeMultiAddress",{enumerable:!0,get:function(){return d.encodeMultiAddress}}),Object.defineProperty(t,"evmToAddress",{enumerable:!0,get:function(){return h.evmToAddress}}),Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return b.isAddress}}),Object.defineProperty(t,"setSS58Format",{enumerable:!0,get:function(){return m.setSS58Format}}),Object.defineProperty(t,"sortAddresses",{enumerable:!0,get:function(){return y.sortAddresses}}),Object.defineProperty(t,"validateAddress",{enumerable:!0,get:function(){return g.validateAddress}});var n=r(11469),i=r(74275),o=r(45085),a=r(1761),s=r(8051),u=r(36752),c=r(60337),f=r(26336),l=r(94647),d=r(80411),h=r(91353),p=r(53891),b=r(57942),y=r(47726),g=r(62366),m=r(83772)},57942:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAddress=function(e,t,r){try{return(0,n.validateAddress)(e,t,r)}catch(e){return!1}};var n=r(62366)},8051:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createKeyDerived=function(e,t){return(0,i.blake2AsU8a)((0,n.u8aConcat)(s,(0,a.decodeAddress)(e),(0,n.bnToU8a)(t,o.BN_LE_16_OPTS)))};var n=r(53956),i=r(99551),o=r(54567),a=r(36752);const s=(0,n.stringToU8a)("modlpy/utilisuba")},1761:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createKeyMulti=function(e,t){return(0,i.blake2AsU8a)((0,n.u8aConcat)(s,(0,n.compactToU8a)(e.length),...(0,n.u8aSorted)(e.map(a.addressToU8a)),(0,n.bnToU8a)(t,o.BN_LE_16_OPTS)))};var n=r(53956),i=r(99551),o=r(54567),a=r(7347);const s=(0,n.stringToU8a)("modlpy/utilisuba")},83772:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setSS58Format=function(e){o.warn("Global setting of the ss58Format is deprecated and not recommended. Set format on the keyring (if used) or as part of the address encode function"),i.defaults.prefix=e};var n=r(53956),i=r(89386);const o=(0,n.logger)("setSS58Format")},47726:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sortAddresses=function(e,t){return(0,n.u8aSorted)(e.map(o.addressToU8a)).map((e=>(0,i.encodeAddress)(e,t)))};var n=r(53956),i=r(26336),o=r(7347)},66533:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sshash=function(e){return(0,i.blake2AsU8a)((0,n.u8aConcat)(o,e),512)};var n=r(53956),i=r(99551);const o=(0,n.stringToU8a)("SS58PRE")},7347:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addressToU8a=function(e){return(0,n.decodeAddress)(e)};var n=r(36752)},62366:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAddress=function(e,t,r){return!!(0,n.decodeAddress)(e,t,r)};var n=r(36752)},62980:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBase32=t.base32Validate=t.base32Encode=t.base32Decode=void 0;var n=r(39187),i=r(40131);const o="abcdefghijklmnopqrstuvwxyz234567",a={chars:o,coder:n.utils.chain(n.utils.radix2(5),n.utils.alphabet(o),{decode:e=>e.split(""),encode:e=>e.join("")}),ipfs:"b",type:"base32"},s=(0,i.createValidate)(a);t.base32Validate=s;const u=(0,i.createIs)(s);t.isBase32=u;const c=(0,i.createDecode)(a,s);t.base32Decode=c;const f=(0,i.createEncode)(a);t.base32Encode=f},40131:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDecode=function(e,t){let{coder:r,ipfs:n}=e;return(e,i)=>(t(e,i),r.decode(n&&i?e.substring(1):e))},t.createEncode=function(e){let{coder:t,ipfs:r}=e;return(e,i)=>{const o=t.encode((0,n.u8aToU8a)(e));return r&&i?`${r}${o}`:o}},t.createIs=function(e){return(t,r)=>{try{return e(t,r)}catch(e){return!1}}},t.createValidate=function(e){let{chars:t,ipfs:r,type:n}=e;return(e,i)=>{if(!e||"string"!=typeof e)throw new Error(`Expected non-null, non-empty ${n} string input`);if(r&&i&&e[0]!==r)throw new Error(`Expected ipfs-compatible ${n} to start with '${r}'`);for(let r=i?1:0;r<e.length;r++)if(!t.includes(e[r])&&("="!==e[r]||r!==e.length-1&&t.includes(e[r+1])))throw new Error(`Invalid ${n} character "${e[r]}" (0x${e.charCodeAt(r).toString(16)}) at index ${r}`);return!0}};var n=r(53956)},48754:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"base32Decode",{enumerable:!0,get:function(){return n.base32Decode}}),Object.defineProperty(t,"base32Encode",{enumerable:!0,get:function(){return n.base32Encode}}),Object.defineProperty(t,"base32Validate",{enumerable:!0,get:function(){return n.base32Validate}}),Object.defineProperty(t,"isBase32",{enumerable:!0,get:function(){return n.isBase32}});var n=r(62980)},11688:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBase58=t.base58Validate=t.base58Encode=t.base58Decode=void 0;var n=r(39187),i=r(40131);const o={chars:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",coder:n.base58,ipfs:"z",type:"base58"},a=(0,i.createValidate)(o);t.base58Validate=a;const s=(0,i.createDecode)(o,a);t.base58Decode=s;const u=(0,i.createEncode)(o);t.base58Encode=u;const c=(0,i.createIs)(a);t.isBase58=c},99832:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"base58Decode",{enumerable:!0,get:function(){return n.base58Decode}}),Object.defineProperty(t,"base58Encode",{enumerable:!0,get:function(){return n.base58Encode}}),Object.defineProperty(t,"base58Validate",{enumerable:!0,get:function(){return n.base58Validate}}),Object.defineProperty(t,"isBase58",{enumerable:!0,get:function(){return n.isBase58}});var n=r(11688)},15597:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBase64=t.base64Validate=t.base64Encode=t.base64Decode=void 0;var n=r(39187),i=r(40131);const o={chars:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",coder:n.base64,type:"base64"},a=(0,i.createValidate)(o);t.base64Validate=a;const s=(0,i.createIs)(a);t.isBase64=s;const u=(0,i.createDecode)(o,a);t.base64Decode=u;const c=(0,i.createEncode)(o);t.base64Encode=c},64444:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"base64Decode",{enumerable:!0,get:function(){return n.base64Decode}}),Object.defineProperty(t,"base64Encode",{enumerable:!0,get:function(){return n.base64Encode}}),Object.defineProperty(t,"base64Pad",{enumerable:!0,get:function(){return i.base64Pad}}),Object.defineProperty(t,"base64Trim",{enumerable:!0,get:function(){return o.base64Trim}}),Object.defineProperty(t,"base64Validate",{enumerable:!0,get:function(){return n.base64Validate}}),Object.defineProperty(t,"isBase64",{enumerable:!0,get:function(){return n.isBase64}});var n=r(15597),i=r(64402),o=r(74384)},64402:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.base64Pad=function(e){return e.padEnd(e.length+e.length%4,"=")}},74384:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.base64Trim=function(e){for(;e.length&&"="===e[e.length-1];)e=e.slice(0,-1);return e}},99551:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.blake2AsHex=void 0,t.blake2AsU8a=a;var n=r(31298),i=r(53956),o=r(56431);function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:256,r=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0;const s=Math.ceil(t/8),u=(0,i.u8aToU8a)(e);return!i.hasBigInt||!a&&(0,o.isReady)()?(0,o.blake2b)(u,(0,i.u8aToU8a)(r),s):(0,n.blake2b)(u,{dkLen:s,key:r||void 0})}const s=(0,r(8220).createAsHex)(a);t.blake2AsHex=s},78556:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"blake2AsHex",{enumerable:!0,get:function(){return n.blake2AsHex}}),Object.defineProperty(t,"blake2AsU8a",{enumerable:!0,get:function(){return n.blake2AsU8a}});var n=r(99551)},54567:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BN_LE_OPTS=t.BN_LE_512_OPTS=t.BN_LE_32_OPTS=t.BN_LE_256_OPTS=t.BN_LE_16_OPTS=t.BN_BE_OPTS=t.BN_BE_32_OPTS=t.BN_BE_256_OPTS=void 0,t.BN_BE_OPTS={isLe:!1},t.BN_LE_OPTS={isLe:!0},t.BN_LE_16_OPTS={bitLength:16,isLe:!0},t.BN_BE_32_OPTS={bitLength:32,isLe:!1},t.BN_LE_32_OPTS={bitLength:32,isLe:!0},t.BN_BE_256_OPTS={bitLength:256,isLe:!1},t.BN_LE_256_OPTS={bitLength:256,isLe:!0},t.BN_LE_512_OPTS={bitLength:512,isLe:!0}},74387:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={packageInfo:!0};Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return i.packageInfo}}),r(99667);var i=r(61429),o=r(12762);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=r(48754);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var s=r(99832);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var u=r(64444);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var c=r(78556);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var f=r(24587);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))}));var l=r(5445);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var d=r(27984);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var h=r(65307);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))}));var p=r(78246);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===p[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}}))}));var b=r(23522);Object.keys(b).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===b[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return b[e]}}))}));var y=r(2175);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===y[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return y[e]}}))}));var g=r(44486);Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===g[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return g[e]}}))}));var m=r(73161);Object.keys(m).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===m[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return m[e]}}))}));var v=r(55266);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===v[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return v[e]}}))}));var w=r(92797);Object.keys(w).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===w[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return w[e]}}))}));var _=r(49676);Object.keys(_).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===_[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return _[e]}}))}));var x=r(80475);Object.keys(x).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===x[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return x[e]}}))}));var O=r(92553);Object.keys(O).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===O[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return O[e]}}))}));var k=r(49547);Object.keys(k).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===k[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return k[e]}}))}));var P=r(93656);Object.keys(P).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===P[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return P[e]}}))}));var S=r(77643);Object.keys(S).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===S[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return S[e]}}))}));var A=r(76097);Object.keys(A).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===A[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return A[e]}}))}));var E=r(81179);Object.keys(E).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===E[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return E[e]}}))}))},99667:(e,t,r)=>{"use strict";r(81705);var n=r(9574),i=r(53956),o=r(24587),a=r(78246);n.utils.hmacSha256Sync=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return(0,a.hmacSha256AsU8a)(e,(0,i.u8aConcat)(...r))},(0,o.cryptoWaitReady)().catch((()=>{}))},24587:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cryptoIsReady=void 0,t.cryptoWaitReady=function(){return(0,n.waitReady)().then((()=>{if(!(0,n.isReady)())throw new Error("Unable to initialize @polkadot/util-crypto");return!0})).catch((()=>!1))};var n=r(56431);const i=n.isReady;t.cryptoIsReady=i},7469:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(56093),i=r(20496),o=r(13121),a=[n.packageInfo,i.packageInfo,o.packageInfo];t.default=a},44518:(e,t,r)=>{"use strict";var n=r(64836),i=r(53956),o=n(r(7469)),a=r(61429);(0,i.detectPackage)(a.packageInfo,null,o.default)},89949:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.convertPublicKeyToCurve25519=function(e){return(0,o.assertReturn)(i.default.convertPublicKey(e),"Unable to convert publicKey to ed25519")},t.convertSecretKeyToCurve25519=function(e){return i.default.convertSecretKey(e)};var i=n(r(75678)),o=r(53956)},21320:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ed25519DeriveHard=function(e,t){if(!(0,n.isU8a)(t)||32!==t.length)throw new Error("Invalid chainCode passed to derive");return(0,i.blake2AsU8a)((0,n.u8aConcat)(o,e,t))};var n=r(53956),i=r(99551);const o=(0,n.compactAddLength)((0,n.stringToU8a)("Ed25519HDKD"))},5445:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"convertPublicKeyToCurve25519",{enumerable:!0,get:function(){return n.convertPublicKeyToCurve25519}}),Object.defineProperty(t,"convertSecretKeyToCurve25519",{enumerable:!0,get:function(){return n.convertSecretKeyToCurve25519}}),Object.defineProperty(t,"ed25519DeriveHard",{enumerable:!0,get:function(){return i.ed25519DeriveHard}}),Object.defineProperty(t,"ed25519PairFromRandom",{enumerable:!0,get:function(){return o.ed25519PairFromRandom}}),Object.defineProperty(t,"ed25519PairFromSecret",{enumerable:!0,get:function(){return a.ed25519PairFromSecret}}),Object.defineProperty(t,"ed25519PairFromSeed",{enumerable:!0,get:function(){return s.ed25519PairFromSeed}}),Object.defineProperty(t,"ed25519PairFromString",{enumerable:!0,get:function(){return u.ed25519PairFromString}}),Object.defineProperty(t,"ed25519Sign",{enumerable:!0,get:function(){return c.ed25519Sign}}),Object.defineProperty(t,"ed25519Verify",{enumerable:!0,get:function(){return f.ed25519Verify}});var n=r(89949),i=r(21320),o=r(60172),a=r(37955),s=r(85945),u=r(57081),c=r(82556),f=r(89508)},60172:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ed25519PairFromRandom=function(){return(0,i.ed25519PairFromSeed)((0,n.randomAsU8a)())};var n=r(80475),i=r(85945)},37955:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.ed25519PairFromSecret=function(e){return i.default.sign.keyPair.fromSecretKey(e)};var i=n(r(50780))},85945:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.ed25519PairFromSeed=function(e,t){if(!t&&(0,o.isReady)()){const t=(0,o.ed25519KeypairFromSeed)(e);return{publicKey:t.slice(32),secretKey:t.slice(0,64)}}return i.default.sign.keyPair.fromSeed(e)};var i=n(r(50780)),o=r(56431)},57081:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ed25519PairFromString=function(e){return(0,o.ed25519PairFromSeed)((0,i.blake2AsU8a)((0,n.stringToU8a)(e)))};var n=r(53956),i=r(99551),o=r(85945)},82556:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.ed25519Sign=function(e,t,r){let{publicKey:n,secretKey:s}=t;if(!s)throw new Error("Expected a valid secretKey");const u=(0,o.u8aToU8a)(e);return!r&&(0,a.isReady)()?(0,a.ed25519Sign)(n,s.subarray(0,32),u):i.default.sign.detached(u,s)};var i=n(r(50780)),o=r(53956),a=r(56431)},89508:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.ed25519Verify=function(e,t,r,n){const s=(0,o.u8aToU8a)(e),u=(0,o.u8aToU8a)(r),c=(0,o.u8aToU8a)(t);if(32!==u.length)throw new Error(`Invalid publicKey, received ${u.length}, expected 32`);if(64!==c.length)throw new Error(`Invalid signature, received ${c.length} bytes, expected 64`);return!n&&(0,a.isReady)()?(0,a.ed25519Verify)(c,s,u):i.default.sign.detached.verify(s,c,u)};var i=n(r(50780)),o=r(53956),a=r(56431)},51006:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ethereumEncode=function(e){if(!e)return"0x";const t=(0,n.u8aToU8a)(e);if(![20,32,33,65].includes(t.length))throw new Error("Invalid address or publicKey passed");const r=(0,n.u8aToHex)(([33,65].includes((s=t).length)&&(s=(0,i.keccakAsU8a)((0,o.secp256k1Expand)(s))),s.slice(-20)),-1,!1),a=(0,n.u8aToHex)((0,i.keccakAsU8a)(r),-1,!1);var s;let u="";for(let e=0;e<40;e++)u=`${u}${parseInt(a[e],16)>7?r[e].toUpperCase():r[e]}`;return`0x${u}`};var n=r(53956),i=r(2175),o=r(49547)},27984:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ethereumEncode",{enumerable:!0,get:function(){return n.ethereumEncode}}),Object.defineProperty(t,"isEthereumAddress",{enumerable:!0,get:function(){return i.isEthereumAddress}}),Object.defineProperty(t,"isEthereumChecksum",{enumerable:!0,get:function(){return o.isEthereumChecksum}});var n=r(51006),i=r(67806),o=r(5505)},67806:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEthereumAddress=function(e){return!(!e||42!==e.length||!(0,n.isHex)(e))&&(!(!/^(0x)?[0-9a-f]{40}$/.test(e)&&!/^(0x)?[0-9A-F]{40}$/.test(e))||(0,i.isEthereumChecksum)(e))};var n=r(53956),i=r(5505)},5505:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEthereumChecksum=function(e){const t=e.replace("0x",""),r=(0,n.u8aToHex)((0,i.keccakAsU8a)(t.toLowerCase()),-1,!1);for(let e=0;e<40;e++)if((o=t[e])!==(parseInt(r[e],16)>7?o.toUpperCase():o.toLowerCase()))return!1;var o;return!0};var n=r(53956),i=r(2175)},24348:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hdEthereum=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const r=(0,o.hmacShaAsU8a)(u,e,512);let n=c(r.slice(0,32),r.slice(32));if(!t||"m"===t||"M"===t||"m'"===t||"M'"===t)return n;if(!(0,s.hdValidatePath)(t))throw new Error("Invalid derivation path");const i=t.split("/").slice(1);for(const e of i)n=f(n,parseInt(e,10)+(e.length>1&&e.endsWith("'")?s.HARDENED:0));return n};var n=r(53956),i=r(54567),o=r(78246),a=r(49547),s=r(11974);const u=(0,n.stringToU8a)("Bitcoin seed");function c(e,t){return{chainCode:t,publicKey:(0,a.secp256k1PairFromSeed)(e).publicKey,secretKey:e}}function f(e,t){const r=(0,n.bnToU8a)(t,i.BN_BE_32_OPTS),u=t>=s.HARDENED?(0,n.u8aConcat)(new Uint8Array(1),e.secretKey,r):(0,n.u8aConcat)(e.publicKey,r);try{const t=(0,o.hmacShaAsU8a)(e.chainCode,u,512);return c((0,a.secp256k1PrivateKeyTweakAdd)(e.secretKey,t.slice(0,32)),t.slice(32))}catch(r){return f(e,t+1)}}},65307:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hdEthereum",{enumerable:!0,get:function(){return n.hdEthereum}}),Object.defineProperty(t,"hdLedger",{enumerable:!0,get:function(){return i.hdLedger}}),Object.defineProperty(t,"hdValidatePath",{enumerable:!0,get:function(){return o.hdValidatePath}});var n=r(24348),i=r(6728),o=r(11974)},68719:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ledgerDerivePrivate=function(e,t){const r=e.subarray(0,32),a=e.subarray(32,64),s=e.subarray(64,96),u=(0,n.u8aConcat)([0],r,a,(0,n.bnToU8a)(t,i.BN_LE_32_OPTS)),c=(0,o.hmacShaAsU8a)(s,u,512);return u[0]=1,(0,n.u8aConcat)((0,n.bnToU8a)((0,n.u8aToBn)(r,i.BN_LE_OPTS).iadd((0,n.u8aToBn)(c.subarray(0,28),i.BN_LE_OPTS).imul(n.BN_EIGHT)),i.BN_LE_512_OPTS).subarray(0,32),(0,n.bnToU8a)((0,n.u8aToBn)(a,i.BN_LE_OPTS).iadd((0,n.u8aToBn)(c.subarray(32,64),i.BN_LE_OPTS)),i.BN_LE_512_OPTS).subarray(0,32),(0,o.hmacShaAsU8a)(s,u,512).subarray(32,64))};var n=r(53956),i=r(54567),o=r(78246)},6728:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hdLedger=function(e,t){const r=e.split(" ").map((e=>e.trim())).filter((e=>e));if(![12,24,25].includes(r.length))throw new Error("Expected a mnemonic with 24 words (or 25 including a password)");const[u,c]=25===r.length?[r.slice(0,24).join(" "),r[24]]:[r.join(" "),""];if(!(0,i.mnemonicValidate)(u))throw new Error("Invalid mnemonic passed to ledger derivation");if(!(0,o.hdValidatePath)(t))throw new Error("Invalid derivation path");const f=t.split("/").slice(1);let l=(0,s.ledgerMaster)(u,c);for(const e of f){const t=parseInt(e.replace(/'$/,""),10);l=(0,a.ledgerDerivePrivate)(l,t<o.HARDENED?t+o.HARDENED:t)}return(0,n.ed25519PairFromSeed)(l.slice(0,32))};var n=r(5445),i=r(73161),o=r(11974),a=r(68719),s=r(44548)},44548:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ledgerMaster=function(e,t){const r=(0,o.mnemonicToSeedSync)(e,t),s=(0,i.hmacShaAsU8a)(a,new Uint8Array([1,...r]),256);let u;for(;!u||32&u[31];)u=(0,i.hmacShaAsU8a)(a,u||r,512);return u[0]&=248,u[31]&=127,u[31]|=64,(0,n.u8aConcat)(u,s)};var n=r(53956),i=r(78246),o=r(39467);const a="ed25519 seed"},11974:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HARDENED=void 0,t.hdValidatePath=function(e){if(!e.startsWith("m/"))return!1;const t=e.split("/").slice(1);for(const e of t){const t=/^\d+'?$/.test(e)?parseInt(e.replace(/'$/,""),10):Number.NaN;if(isNaN(t)||t>=r||t<0)return!1}return!0};const r=2147483648;t.HARDENED=r},8220:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createAsHex=function(e){return function(){return(0,n.u8aToHex)(e(...arguments))}},t.createBitHasher=function(e,t){return(r,n)=>t(r,e,n)},t.createDualHasher=function(e,t){return function(r){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:256,a=arguments.length>2?arguments[2]:void 0;const s=(0,n.u8aToU8a)(r);return!n.hasBigInt||!a&&(0,i.isReady)()?e[o](s):t[o](s)}};var n=r(53956),i=r(56431)},78246:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hmacSha256AsU8a",{enumerable:!0,get:function(){return n.hmacSha256AsU8a}}),Object.defineProperty(t,"hmacSha512AsU8a",{enumerable:!0,get:function(){return n.hmacSha512AsU8a}}),Object.defineProperty(t,"hmacShaAsU8a",{enumerable:!0,get:function(){return n.hmacShaAsU8a}});var n=r(58224)},58224:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hmacSha512AsU8a=t.hmacSha256AsU8a=void 0,t.hmacShaAsU8a=l;var n=r(93358),i=r(82037),o=r(26616),a=r(53956),s=r(56431);const u={256:i.sha256,512:o.sha512},c={256:s.hmacSha256,512:s.hmacSha512};function f(e){return(t,r,n)=>l(t,r,e,n)}function l(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:256,i=arguments.length>3?arguments[3]:void 0;const o=(0,a.u8aToU8a)(e);return!a.hasBigInt||!i&&(0,s.isReady)()?c[r](o,t):(0,n.hmac)(u[r],o,t)}const d=f(256);t.hmacSha256AsU8a=d;const h=f(512);t.hmacSha512AsU8a=h},73056:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(44518);var n=r(74387);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}))},54264:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SCRYPT_LENGTH=t.NONCE_LENGTH=t.ENCODING_VERSION=t.ENCODING_NONE=t.ENCODING=void 0,t.ENCODING=["scrypt","xsalsa20-poly1305"],t.ENCODING_NONE=["none"],t.ENCODING_VERSION="3",t.NONCE_LENGTH=24,t.SCRYPT_LENGTH=44},1611:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.jsonDecrypt=function(e,t){let{encoded:r,encoding:a}=e;if(!r)throw new Error("No encrypted data available to decode");return(0,o.jsonDecryptData)((0,n.isHex)(r)?(0,n.hexToU8a)(r):(0,i.base64Decode)(r),t,Array.isArray(a.type)?a.type:[a.type])};var n=r(53956),i=r(64444),o=r(14589)},14589:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.jsonDecryptData=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.ENCODING;if(!e)throw new Error("No encrypted data available to decode");if(r.includes("xsalsa20-poly1305")&&!t)throw new Error("Password required to decode encrypted data");let s=e;if(t){let u;if(r.includes("scrypt")){const{params:r,salt:n}=(0,o.scryptFromU8a)(e);u=(0,o.scryptEncode)(t,n,r).password,e=e.subarray(a.SCRYPT_LENGTH)}else u=(0,n.stringToU8a)(t);s=(0,i.naclDecrypt)(e.subarray(a.NONCE_LENGTH),e.subarray(0,a.NONCE_LENGTH),(0,n.u8aFixLength)(u,256,!0))}if(!s)throw new Error("Unable to decode using the supplied passphrase");return s};var n=r(53956),i=r(92797),o=r(92553),a=r(54264)},17156:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.jsonEncrypt=function(e,t,r){let s=!1,u=e;if(r){const{params:e,password:t,salt:a}=(0,o.scryptEncode)(r),{encrypted:c,nonce:f}=(0,i.naclEncrypt)(u,t.subarray(0,32));s=!0,u=(0,n.u8aConcat)((0,o.scryptToU8a)(a,e),f,c)}return(0,a.jsonEncryptFormat)(u,t,s)};var n=r(53956),i=r(92797),o=r(92553),a=r(96084)},96084:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.jsonEncryptFormat=function(e,t,r){return{encoded:(0,n.base64Encode)(e),encoding:{content:t,type:r?i.ENCODING:i.ENCODING_NONE,version:i.ENCODING_VERSION}}};var n=r(64444),i=r(54264)},23522:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"jsonDecrypt",{enumerable:!0,get:function(){return n.jsonDecrypt}}),Object.defineProperty(t,"jsonDecryptData",{enumerable:!0,get:function(){return i.jsonDecryptData}}),Object.defineProperty(t,"jsonEncrypt",{enumerable:!0,get:function(){return o.jsonEncrypt}}),Object.defineProperty(t,"jsonEncryptFormat",{enumerable:!0,get:function(){return a.jsonEncryptFormat}});var n=r(1611),i=r(14589),o=r(17156),a=r(96084)},28056:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keccakAsU8a=t.keccakAsHex=t.keccak512AsU8a=t.keccak256AsU8a=void 0;var n=r(37258),i=r(56431),o=r(8220);const a=(0,o.createDualHasher)({256:i.keccak256,512:i.keccak512},{256:n.keccak_256,512:n.keccak_512});t.keccakAsU8a=a;const s=(0,o.createBitHasher)(256,a);t.keccak256AsU8a=s;const u=(0,o.createBitHasher)(512,a);t.keccak512AsU8a=u;const c=(0,o.createAsHex)(a);t.keccakAsHex=c},2175:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"keccak256AsU8a",{enumerable:!0,get:function(){return n.keccak256AsU8a}}),Object.defineProperty(t,"keccak512AsU8a",{enumerable:!0,get:function(){return n.keccak512AsU8a}}),Object.defineProperty(t,"keccakAsHex",{enumerable:!0,get:function(){return n.keccakAsHex}}),Object.defineProperty(t,"keccakAsU8a",{enumerable:!0,get:function(){return n.keccakAsU8a}});var n=r(28056)},73662:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(29399)),s=n(r(40426));Object.defineProperty(t,"__esModule",{value:!0}),t.DeriveJunction=void 0;var u=r(53956),c=r(99551),f=r(54567);const l=/^\d+$/;var d=(0,s.default)("chainCode"),h=(0,s.default)("isHard");let p=function(){function e(){(0,i.default)(this,e),Object.defineProperty(this,d,{writable:!0,value:new Uint8Array(32)}),Object.defineProperty(this,h,{writable:!0,value:!1})}return(0,o.default)(e,[{key:"chainCode",get:function(){return(0,a.default)(this,d)[d]}},{key:"isHard",get:function(){return(0,a.default)(this,h)[h]}},{key:"isSoft",get:function(){return!(0,a.default)(this,h)[h]}},{key:"hard",value:function(e){return this.soft(e).harden()}},{key:"harden",value:function(){return(0,a.default)(this,h)[h]=!0,this}},{key:"soft",value:function(e){return(0,u.isNumber)(e)||(0,u.isBn)(e)||(0,u.isBigInt)(e)?this.soft((0,u.bnToU8a)(e,f.BN_LE_256_OPTS)):(0,u.isHex)(e)?this.soft((0,u.hexToU8a)(e)):(0,u.isString)(e)?this.soft((0,u.compactAddLength)((0,u.stringToU8a)(e))):e.length>32?this.soft((0,c.blake2AsU8a)(e)):((0,a.default)(this,d)[d].fill(0),(0,a.default)(this,d)[d].set(e,0),this)}},{key:"soften",value:function(){return(0,a.default)(this,h)[h]=!1,this}}],[{key:"from",value:function(t){const r=new e,[n,i]=t.startsWith("/")?[t.substring(1),!0]:[t,!1];return r.soft(l.test(n)?new u.BN(n,10):n),i?r.harden():r}}]),e}();t.DeriveJunction=p},7774:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keyExtractPath=function(e){const t=e.match(i),r=[];let o="";if(t){o=t.join("");for(const e of t)r.push(n.DeriveJunction.from(e.substring(1)))}if(o!==e)throw new Error(`Re-constructed path "${o}" does not match input`);return{parts:t,path:r}};var n=r(73662);const i=/\/(\/?)([^/]+)/g},68179:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keyExtractSuri=function(e){const t=e.match(i);if(null===t)throw new Error("Unable to match provided value to a secret URI");const[,r,,o,,,a]=t,{path:s}=(0,n.keyExtractPath)(o);return{derivePath:o,password:a,path:s,phrase:r}};var n=r(7774);const i=/^(\w+( \w+)*)((\/\/?[^/]+)*)(\/\/\/(.*))?$/},10990:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keyFromPath=function(e,t,r){const n=a[r];let i=e;for(const e of t)i=n(i,e);return i};var n=r(30501),i=r(10745),o=r(46531);const a={ecdsa:n.keyHdkdEcdsa,ed25519:i.keyHdkdEd25519,ethereum:n.keyHdkdEcdsa,sr25519:o.keyHdkdSr25519}},85841:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSeedDeriveFn=function(e,t){return(r,n)=>{let{chainCode:i,isHard:o}=n;if(!o)throw new Error("A soft key was found in the path and is not supported");return e(t(r.secretKey.subarray(0,32),i))}}},30501:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keyHdkdEcdsa=void 0;var n=r(52755),i=r(30427);const o=(0,r(85841).createSeedDeriveFn)(i.secp256k1PairFromSeed,n.secp256k1DeriveHard);t.keyHdkdEcdsa=o},10745:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keyHdkdEd25519=void 0;var n=r(5445);const i=(0,r(85841).createSeedDeriveFn)(n.ed25519PairFromSeed,n.ed25519DeriveHard);t.keyHdkdEd25519=i},46531:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keyHdkdSr25519=function(e,t){let{chainCode:r,isSoft:o}=t;return o?(0,i.sr25519DeriveSoft)(e,r):(0,n.sr25519DeriveHard)(e,r)};var n=r(12553),i=r(61778)},44486:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"keyExtractPath",{enumerable:!0,get:function(){return n.keyExtractPath}}),Object.defineProperty(t,"keyExtractSuri",{enumerable:!0,get:function(){return i.keyExtractSuri}}),Object.defineProperty(t,"keyFromPath",{enumerable:!0,get:function(){return o.keyFromPath}}),Object.defineProperty(t,"keyHdkdEcdsa",{enumerable:!0,get:function(){return u.keyHdkdEcdsa}}),Object.defineProperty(t,"keyHdkdEd25519",{enumerable:!0,get:function(){return a.keyHdkdEd25519}}),Object.defineProperty(t,"keyHdkdSr25519",{enumerable:!0,get:function(){return s.keyHdkdSr25519}});var n=r(7774),i=r(68179),o=r(10990),a=r(10745),s=r(46531),u=r(30501)},96379:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r="abandon|ability|able|about|above|absent|absorb|abstract|absurd|abuse|access|accident|account|accuse|achieve|acid|acoustic|acquire|across|act|action|actor|actress|actual|adapt|add|addict|address|adjust|admit|adult|advance|advice|aerobic|affair|afford|afraid|again|age|agent|agree|ahead|aim|air|airport|aisle|alarm|album|alcohol|alert|alien|all|alley|allow|almost|alone|alpha|already|also|alter|always|amateur|amazing|among|amount|amused|analyst|anchor|ancient|anger|angle|angry|animal|ankle|announce|annual|another|answer|antenna|antique|anxiety|any|apart|apology|appear|apple|approve|april|arch|arctic|area|arena|argue|arm|armed|armor|army|around|arrange|arrest|arrive|arrow|art|artefact|artist|artwork|ask|aspect|assault|asset|assist|assume|asthma|athlete|atom|attack|attend|attitude|attract|auction|audit|august|aunt|author|auto|autumn|average|avocado|avoid|awake|aware|away|awesome|awful|awkward|axis|baby|bachelor|bacon|badge|bag|balance|balcony|ball|bamboo|banana|banner|bar|barely|bargain|barrel|base|basic|basket|battle|beach|bean|beauty|because|become|beef|before|begin|behave|behind|believe|below|belt|bench|benefit|best|betray|better|between|beyond|bicycle|bid|bike|bind|biology|bird|birth|bitter|black|blade|blame|blanket|blast|bleak|bless|blind|blood|blossom|blouse|blue|blur|blush|board|boat|body|boil|bomb|bone|bonus|book|boost|border|boring|borrow|boss|bottom|bounce|box|boy|bracket|brain|brand|brass|brave|bread|breeze|brick|bridge|brief|bright|bring|brisk|broccoli|broken|bronze|broom|brother|brown|brush|bubble|buddy|budget|buffalo|build|bulb|bulk|bullet|bundle|bunker|burden|burger|burst|bus|business|busy|butter|buyer|buzz|cabbage|cabin|cable|cactus|cage|cake|call|calm|camera|camp|can|canal|cancel|candy|cannon|canoe|canvas|canyon|capable|capital|captain|car|carbon|card|cargo|carpet|carry|cart|case|cash|casino|castle|casual|cat|catalog|catch|category|cattle|caught|cause|caution|cave|ceiling|celery|cement|census|century|cereal|certain|chair|chalk|champion|change|chaos|chapter|charge|chase|chat|cheap|check|cheese|chef|cherry|chest|chicken|chief|child|chimney|choice|choose|chronic|chuckle|chunk|churn|cigar|cinnamon|circle|citizen|city|civil|claim|clap|clarify|claw|clay|clean|clerk|clever|click|client|cliff|climb|clinic|clip|clock|clog|close|cloth|cloud|clown|club|clump|cluster|clutch|coach|coast|coconut|code|coffee|coil|coin|collect|color|column|combine|come|comfort|comic|common|company|concert|conduct|confirm|congress|connect|consider|control|convince|cook|cool|copper|copy|coral|core|corn|correct|cost|cotton|couch|country|couple|course|cousin|cover|coyote|crack|cradle|craft|cram|crane|crash|crater|crawl|crazy|cream|credit|creek|crew|cricket|crime|crisp|critic|crop|cross|crouch|crowd|crucial|cruel|cruise|crumble|crunch|crush|cry|crystal|cube|culture|cup|cupboard|curious|current|curtain|curve|cushion|custom|cute|cycle|dad|damage|damp|dance|danger|daring|dash|daughter|dawn|day|deal|debate|debris|decade|december|decide|decline|decorate|decrease|deer|defense|define|defy|degree|delay|deliver|demand|demise|denial|dentist|deny|depart|depend|deposit|depth|deputy|derive|describe|desert|design|desk|despair|destroy|detail|detect|develop|device|devote|diagram|dial|diamond|diary|dice|diesel|diet|differ|digital|dignity|dilemma|dinner|dinosaur|direct|dirt|disagree|discover|disease|dish|dismiss|disorder|display|distance|divert|divide|divorce|dizzy|doctor|document|dog|doll|dolphin|domain|donate|donkey|donor|door|dose|double|dove|draft|dragon|drama|drastic|draw|dream|dress|drift|drill|drink|drip|drive|drop|drum|dry|duck|dumb|dune|during|dust|dutch|duty|dwarf|dynamic|eager|eagle|early|earn|earth|easily|east|easy|echo|ecology|economy|edge|edit|educate|effort|egg|eight|either|elbow|elder|electric|elegant|element|elephant|elevator|elite|else|embark|embody|embrace|emerge|emotion|employ|empower|empty|enable|enact|end|endless|endorse|enemy|energy|enforce|engage|engine|enhance|enjoy|enlist|enough|enrich|enroll|ensure|enter|entire|entry|envelope|episode|equal|equip|era|erase|erode|erosion|error|erupt|escape|essay|essence|estate|eternal|ethics|evidence|evil|evoke|evolve|exact|example|excess|exchange|excite|exclude|excuse|execute|exercise|exhaust|exhibit|exile|exist|exit|exotic|expand|expect|expire|explain|expose|express|extend|extra|eye|eyebrow|fabric|face|faculty|fade|faint|faith|fall|false|fame|family|famous|fan|fancy|fantasy|farm|fashion|fat|fatal|father|fatigue|fault|favorite|feature|february|federal|fee|feed|feel|female|fence|festival|fetch|fever|few|fiber|fiction|field|figure|file|film|filter|final|find|fine|finger|finish|fire|firm|first|fiscal|fish|fit|fitness|fix|flag|flame|flash|flat|flavor|flee|flight|flip|float|flock|floor|flower|fluid|flush|fly|foam|focus|fog|foil|fold|follow|food|foot|force|forest|forget|fork|fortune|forum|forward|fossil|foster|found|fox|fragile|frame|frequent|fresh|friend|fringe|frog|front|frost|frown|frozen|fruit|fuel|fun|funny|furnace|fury|future|gadget|gain|galaxy|gallery|game|gap|garage|garbage|garden|garlic|garment|gas|gasp|gate|gather|gauge|gaze|general|genius|genre|gentle|genuine|gesture|ghost|giant|gift|giggle|ginger|giraffe|girl|give|glad|glance|glare|glass|glide|glimpse|globe|gloom|glory|glove|glow|glue|goat|goddess|gold|good|goose|gorilla|gospel|gossip|govern|gown|grab|grace|grain|grant|grape|grass|gravity|great|green|grid|grief|grit|grocery|group|grow|grunt|guard|guess|guide|guilt|guitar|gun|gym|habit|hair|half|hammer|hamster|hand|happy|harbor|hard|harsh|harvest|hat|have|hawk|hazard|head|health|heart|heavy|hedgehog|height|hello|helmet|help|hen|hero|hidden|high|hill|hint|hip|hire|history|hobby|hockey|hold|hole|holiday|hollow|home|honey|hood|hope|horn|horror|horse|hospital|host|hotel|hour|hover|hub|huge|human|humble|humor|hundred|hungry|hunt|hurdle|hurry|hurt|husband|hybrid|ice|icon|idea|identify|idle|ignore|ill|illegal|illness|image|imitate|immense|immune|impact|impose|improve|impulse|inch|include|income|increase|index|indicate|indoor|industry|infant|inflict|inform|inhale|inherit|initial|inject|injury|inmate|inner|innocent|input|inquiry|insane|insect|inside|inspire|install|intact|interest|into|invest|invite|involve|iron|island|isolate|issue|item|ivory|jacket|jaguar|jar|jazz|jealous|jeans|jelly|jewel|job|join|joke|journey|joy|judge|juice|jump|jungle|junior|junk|just|kangaroo|keen|keep|ketchup|key|kick|kid|kidney|kind|kingdom|kiss|kit|kitchen|kite|kitten|kiwi|knee|knife|knock|know|lab|label|labor|ladder|lady|lake|lamp|language|laptop|large|later|latin|laugh|laundry|lava|law|lawn|lawsuit|layer|lazy|leader|leaf|learn|leave|lecture|left|leg|legal|legend|leisure|lemon|lend|length|lens|leopard|lesson|letter|level|liar|liberty|library|license|life|lift|light|like|limb|limit|link|lion|liquid|list|little|live|lizard|load|loan|lobster|local|lock|logic|lonely|long|loop|lottery|loud|lounge|love|loyal|lucky|luggage|lumber|lunar|lunch|luxury|lyrics|machine|mad|magic|magnet|maid|mail|main|major|make|mammal|man|manage|mandate|mango|mansion|manual|maple|marble|march|margin|marine|market|marriage|mask|mass|master|match|material|math|matrix|matter|maximum|maze|meadow|mean|measure|meat|mechanic|medal|media|melody|melt|member|memory|mention|menu|mercy|merge|merit|merry|mesh|message|metal|method|middle|midnight|milk|million|mimic|mind|minimum|minor|minute|miracle|mirror|misery|miss|mistake|mix|mixed|mixture|mobile|model|modify|mom|moment|monitor|monkey|monster|month|moon|moral|more|morning|mosquito|mother|motion|motor|mountain|mouse|move|movie|much|muffin|mule|multiply|muscle|museum|mushroom|music|must|mutual|myself|mystery|myth|naive|name|napkin|narrow|nasty|nation|nature|near|neck|need|negative|neglect|neither|nephew|nerve|nest|net|network|neutral|never|news|next|nice|night|noble|noise|nominee|noodle|normal|north|nose|notable|note|nothing|notice|novel|now|nuclear|number|nurse|nut|oak|obey|object|oblige|obscure|observe|obtain|obvious|occur|ocean|october|odor|off|offer|office|often|oil|okay|old|olive|olympic|omit|once|one|onion|online|only|open|opera|opinion|oppose|option|orange|orbit|orchard|order|ordinary|organ|orient|original|orphan|ostrich|other|outdoor|outer|output|outside|oval|oven|over|own|owner|oxygen|oyster|ozone|pact|paddle|page|pair|palace|palm|panda|panel|panic|panther|paper|parade|parent|park|parrot|party|pass|patch|path|patient|patrol|pattern|pause|pave|payment|peace|peanut|pear|peasant|pelican|pen|penalty|pencil|people|pepper|perfect|permit|person|pet|phone|photo|phrase|physical|piano|picnic|picture|piece|pig|pigeon|pill|pilot|pink|pioneer|pipe|pistol|pitch|pizza|place|planet|plastic|plate|play|please|pledge|pluck|plug|plunge|poem|poet|point|polar|pole|police|pond|pony|pool|popular|portion|position|possible|post|potato|pottery|poverty|powder|power|practice|praise|predict|prefer|prepare|present|pretty|prevent|price|pride|primary|print|priority|prison|private|prize|problem|process|produce|profit|program|project|promote|proof|property|prosper|protect|proud|provide|public|pudding|pull|pulp|pulse|pumpkin|punch|pupil|puppy|purchase|purity|purpose|purse|push|put|puzzle|pyramid|quality|quantum|quarter|question|quick|quit|quiz|quote|rabbit|raccoon|race|rack|radar|radio|rail|rain|raise|rally|ramp|ranch|random|range|rapid|rare|rate|rather|raven|raw|razor|ready|real|reason|rebel|rebuild|recall|receive|recipe|record|recycle|reduce|reflect|reform|refuse|region|regret|regular|reject|relax|release|relief|rely|remain|remember|remind|remove|render|renew|rent|reopen|repair|repeat|replace|report|require|rescue|resemble|resist|resource|response|result|retire|retreat|return|reunion|reveal|review|reward|rhythm|rib|ribbon|rice|rich|ride|ridge|rifle|right|rigid|ring|riot|ripple|risk|ritual|rival|river|road|roast|robot|robust|rocket|romance|roof|rookie|room|rose|rotate|rough|round|route|royal|rubber|rude|rug|rule|run|runway|rural|sad|saddle|sadness|safe|sail|salad|salmon|salon|salt|salute|same|sample|sand|satisfy|satoshi|sauce|sausage|save|say|scale|scan|scare|scatter|scene|scheme|school|science|scissors|scorpion|scout|scrap|screen|script|scrub|sea|search|season|seat|second|secret|section|security|seed|seek|segment|select|sell|seminar|senior|sense|sentence|series|service|session|settle|setup|seven|shadow|shaft|shallow|share|shed|shell|sheriff|shield|shift|shine|ship|shiver|shock|shoe|shoot|shop|short|shoulder|shove|shrimp|shrug|shuffle|shy|sibling|sick|side|siege|sight|sign|silent|silk|silly|silver|similar|simple|since|sing|siren|sister|situate|six|size|skate|sketch|ski|skill|skin|skirt|skull|slab|slam|sleep|slender|slice|slide|slight|slim|slogan|slot|slow|slush|small|smart|smile|smoke|smooth|snack|snake|snap|sniff|snow|soap|soccer|social|sock|soda|soft|solar|soldier|solid|solution|solve|someone|song|soon|sorry|sort|soul|sound|soup|source|south|space|spare|spatial|spawn|speak|special|speed|spell|spend|sphere|spice|spider|spike|spin|spirit|split|spoil|sponsor|spoon|sport|spot|spray|spread|spring|spy|square|squeeze|squirrel|stable|stadium|staff|stage|stairs|stamp|stand|start|state|stay|steak|steel|stem|step|stereo|stick|still|sting|stock|stomach|stone|stool|story|stove|strategy|street|strike|strong|struggle|student|stuff|stumble|style|subject|submit|subway|success|such|sudden|suffer|sugar|suggest|suit|summer|sun|sunny|sunset|super|supply|supreme|sure|surface|surge|surprise|surround|survey|suspect|sustain|swallow|swamp|swap|swarm|swear|sweet|swift|swim|swing|switch|sword|symbol|symptom|syrup|system|table|tackle|tag|tail|talent|talk|tank|tape|target|task|taste|tattoo|taxi|teach|team|tell|ten|tenant|tennis|tent|term|test|text|thank|that|theme|then|theory|there|they|thing|this|thought|three|thrive|throw|thumb|thunder|ticket|tide|tiger|tilt|timber|time|tiny|tip|tired|tissue|title|toast|tobacco|today|toddler|toe|together|toilet|token|tomato|tomorrow|tone|tongue|tonight|tool|tooth|top|topic|topple|torch|tornado|tortoise|toss|total|tourist|toward|tower|town|toy|track|trade|traffic|tragic|train|transfer|trap|trash|travel|tray|treat|tree|trend|trial|tribe|trick|trigger|trim|trip|trophy|trouble|truck|true|truly|trumpet|trust|truth|try|tube|tuition|tumble|tuna|tunnel|turkey|turn|turtle|twelve|twenty|twice|twin|twist|two|type|typical|ugly|umbrella|unable|unaware|uncle|uncover|under|undo|unfair|unfold|unhappy|uniform|unique|unit|universe|unknown|unlock|until|unusual|unveil|update|upgrade|uphold|upon|upper|upset|urban|urge|usage|use|used|useful|useless|usual|utility|vacant|vacuum|vague|valid|valley|valve|van|vanish|vapor|various|vast|vault|vehicle|velvet|vendor|venture|venue|verb|verify|version|very|vessel|veteran|viable|vibrant|vicious|victory|video|view|village|vintage|violin|virtual|virus|visa|visit|visual|vital|vivid|vocal|voice|void|volcano|volume|vote|voyage|wage|wagon|wait|walk|wall|walnut|want|warfare|warm|warrior|wash|wasp|waste|water|wave|way|wealth|weapon|wear|weasel|weather|web|wedding|weekend|weird|welcome|west|wet|whale|what|wheat|wheel|when|where|whip|whisper|wide|width|wife|wild|will|win|window|wine|wing|wink|winner|winter|wire|wisdom|wise|wish|witness|wolf|woman|wonder|wood|wool|word|work|world|worry|worth|wrap|wreck|wrestle|wrist|write|wrong|yard|year|yellow|you|young|youth|zebra|zero|zone|zoo".split("|");t.default=r},39467:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.entropyToMnemonic=g,t.generateMnemonic=function(e){return g((0,a.randomAsU8a)(e/3*4))},t.mnemonicToEntropy=y,t.mnemonicToSeedSync=function(e,t){return(0,o.pbkdf2Encode)((0,i.stringToU8a)(d(e)),(0,i.stringToU8a)(`mnemonic${d(t)}`)).password},t.validateMnemonic=function(e){try{y(e)}catch(e){return!1}return!0};var i=r(53956),o=r(49676),a=r(80475),s=r(93656),u=n(r(96379));const c="Invalid mnemonic",f="Invalid entropy",l="Invalid mnemonic checksum";function d(e){return(e||"").normalize("NFKD")}function h(e){return parseInt(e,2)}function p(e){return e.map((e=>e.toString(2).padStart(8,"0"))).join("")}function b(e){return p(Array.from((0,s.sha256AsU8a)(e))).slice(0,8*e.length/32)}function y(e){const t=d(e).split(" ");if(t.length%3!=0)throw new Error(c);const r=t.map((e=>{const t=u.default.indexOf(e);if(-1===t)throw new Error(c);return t.toString(2).padStart(11,"0")})).join(""),n=32*Math.floor(r.length/33),o=r.slice(0,n),a=r.slice(n),s=o.match(/(.{1,8})/g),p=s&&s.map(h);if(!p||p.length%4!=0||p.length<16||p.length>32)throw new Error(f);const y=(0,i.u8aToU8a)(p);if(b(y)!==a)throw new Error(l);return y}function g(e){if(e.length%4!=0||e.length<16||e.length>32)throw new Error(f);const t=`${p(Array.from(e))}${b(e)}`.match(/(.{1,11})/g),r=t&&t.map((e=>u.default[h(e)]));if(!r||r.length<12)throw new Error("Unable to map entropy to mnemonic");return r.join(" ")}},86955:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mnemonicGenerate=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:12,t=arguments.length>1?arguments[1]:void 0;return!n.hasBigInt||!t&&(0,i.isReady)()?(0,i.bip39Generate)(e):(0,o.generateMnemonic)(e)};var n=r(53956),i=r(56431),o=r(39467)},73161:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"mnemonicGenerate",{enumerable:!0,get:function(){return n.mnemonicGenerate}}),Object.defineProperty(t,"mnemonicToEntropy",{enumerable:!0,get:function(){return i.mnemonicToEntropy}}),Object.defineProperty(t,"mnemonicToLegacySeed",{enumerable:!0,get:function(){return o.mnemonicToLegacySeed}}),Object.defineProperty(t,"mnemonicToMiniSecret",{enumerable:!0,get:function(){return a.mnemonicToMiniSecret}}),Object.defineProperty(t,"mnemonicValidate",{enumerable:!0,get:function(){return s.mnemonicValidate}});var n=r(86955),i=r(69217),o=r(7334),a=r(24448),s=r(89400)},69217:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mnemonicToEntropy=function(e,t){return!n.hasBigInt||!t&&(0,i.isReady)()?(0,i.bip39ToEntropy)(e):(0,o.mnemonicToEntropy)(e)};var n=r(53956),i=r(56431),o=r(39467)},7334:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mnemonicToLegacySeed=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:32;if(!(0,a.mnemonicValidate)(e))throw new Error("Invalid bip39 mnemonic specified");if(![32,64].includes(s))throw new Error(`Invalid seed length ${s}, expected 32 or 64`);return 32===s?!n.hasBigInt||!r&&(0,i.isReady)()?(0,i.bip39ToSeed)(e,t):(0,o.mnemonicToSeedSync)(e,t).subarray(0,32):(0,o.mnemonicToSeedSync)(e,t)};var n=r(53956),i=r(56431),o=r(39467),a=r(89400)},24448:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mnemonicToMiniSecret=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0;if(!(0,s.mnemonicValidate)(e))throw new Error("Invalid bip39 mnemonic specified");if(!r&&(0,i.isReady)())return(0,i.bip39ToMiniSecret)(e,t);const u=(0,a.mnemonicToEntropy)(e),c=(0,n.stringToU8a)(`mnemonic${t}`);return(0,o.pbkdf2Encode)(u,c).password.slice(0,32)};var n=r(53956),i=r(56431),o=r(49676),a=r(69217),s=r(89400)},89400:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mnemonicValidate=function(e,t){return!n.hasBigInt||!t&&(0,i.isReady)()?(0,i.bip39Validate)(e):(0,o.validateMnemonic)(e)};var n=r(53956),i=r(56431),o=r(39467)},78499:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.naclBoxPairFromSecret=function(e){return i.default.box.keyPair.fromSecretKey(e.slice(0,32))};var i=n(r(50780))},36445:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.naclDecrypt=function(e,t,r){return i.default.secretbox.open(e,t,r)||null};var i=n(r(50780))},46633:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.naclEncrypt=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,o.randomAsU8a)(24);return{encrypted:i.default.secretbox(e,r,t),nonce:r}};var i=n(r(50780)),o=r(61312)},92797:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"naclBoxPairFromSecret",{enumerable:!0,get:function(){return o.naclBoxPairFromSecret}}),Object.defineProperty(t,"naclDecrypt",{enumerable:!0,get:function(){return n.naclDecrypt}}),Object.defineProperty(t,"naclEncrypt",{enumerable:!0,get:function(){return i.naclEncrypt}}),Object.defineProperty(t,"naclOpen",{enumerable:!0,get:function(){return a.naclOpen}}),Object.defineProperty(t,"naclSeal",{enumerable:!0,get:function(){return s.naclSeal}});var n=r(36445),i=r(46633),o=r(78499),a=r(93052),s=r(88916)},93052:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.naclOpen=function(e,t,r,n){return i.default.box.open(e,t,r,n)||null};var i=n(r(50780))},88916:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.naclSeal=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:(0,o.randomAsU8a)(24);return{nonce:n,sealed:i.default.box(e,n,r,t)}};var i=n(r(50780)),o=r(61312)},55266:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"allNetworks",{enumerable:!0,get:function(){return n.allNetworks}}),Object.defineProperty(t,"availableNetworks",{enumerable:!0,get:function(){return n.availableNetworks}}),Object.defineProperty(t,"selectableNetworks",{enumerable:!0,get:function(){return n.selectableNetworks}});var n=r(55662)},61429:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/util-crypto",path:"/",type:"cjs",version:"10.4.1"}},43727:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pbkdf2Encode=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,s.randomAsU8a)(),r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2048,u=arguments.length>3?arguments[3]:void 0;const c=(0,o.u8aToU8a)(e),f=(0,o.u8aToU8a)(t);return{password:!o.hasBigInt||!u&&(0,a.isReady)()?(0,a.pbkdf2)(c,f,r):(0,n.pbkdf2)(i.sha512,c,f,{c:r,dkLen:64}),rounds:r,salt:t}};var n=r(16743),i=r(26616),o=r(53956),a=r(56431),s=r(61312)},49676:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pbkdf2Encode",{enumerable:!0,get:function(){return n.pbkdf2Encode}});var n=r(43727)},37693:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomAsNumber=function(){return(0,n.hexToBn)((0,i.randomAsHex)(8)).and(o).toNumber()};var n=r(53956),i=r(61312);const o=new n.BN(9007199254740991)},61312:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomAsHex=void 0,t.randomAsU8a=i;var n=r(13121);function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32;return(0,n.getRandomValues)(new Uint8Array(e))}const o=(0,r(8220).createAsHex)(i);t.randomAsHex=o},80475:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"randomAsHex",{enumerable:!0,get:function(){return i.randomAsHex}}),Object.defineProperty(t,"randomAsNumber",{enumerable:!0,get:function(){return n.randomAsNumber}}),Object.defineProperty(t,"randomAsU8a",{enumerable:!0,get:function(){return i.randomAsU8a}});var n=r(37693),i=r(61312)},16164:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_PARAMS=void 0,t.DEFAULT_PARAMS={N:32768,p:1,r:8}},11545:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scryptEncode=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,a.randomAsU8a)(),r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.DEFAULT_PARAMS,u=arguments.length>3?arguments[3]:void 0;const c=(0,i.u8aToU8a)(e);return{params:r,password:!i.hasBigInt||!u&&(0,o.isReady)()?(0,o.scrypt)(c,t,Math.log2(r.N),r.r,r.p):(0,n.scrypt)(c,t,(0,i.objectSpread)({dkLen:64},r)),salt:t}};var n=r(58878),i=r(53956),o=r(56431),a=r(61312),s=r(16164)},80132:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scryptFromU8a=function(e){const t=e.subarray(0,32),r=(0,n.u8aToBn)(e.subarray(32,36),i.BN_LE_OPTS).toNumber(),a=(0,n.u8aToBn)(e.subarray(36,40),i.BN_LE_OPTS).toNumber(),s=(0,n.u8aToBn)(e.subarray(40,44),i.BN_LE_OPTS).toNumber();if(r!==o.DEFAULT_PARAMS.N||a!==o.DEFAULT_PARAMS.p||s!==o.DEFAULT_PARAMS.r)throw new Error("Invalid injected scrypt params found");return{params:{N:r,p:a,r:s},salt:t}};var n=r(53956),i=r(54567),o=r(16164)},92553:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"scryptEncode",{enumerable:!0,get:function(){return n.scryptEncode}}),Object.defineProperty(t,"scryptFromU8a",{enumerable:!0,get:function(){return i.scryptFromU8a}}),Object.defineProperty(t,"scryptToU8a",{enumerable:!0,get:function(){return o.scryptToU8a}});var n=r(11545),i=r(80132),o=r(55417)},55417:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scryptToU8a=function(e,t){let{N:r,p:o,r:a}=t;return(0,n.u8aConcat)(e,(0,n.bnToU8a)(r,i.BN_LE_32_OPTS),(0,n.bnToU8a)(o,i.BN_LE_32_OPTS),(0,n.bnToU8a)(a,i.BN_LE_32_OPTS))};var n=r(53956),i=r(54567)},77309:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.secp256k1Compress=function(e,t){if(33===e.length)return e;if(65!==e.length)throw new Error("Invalid publicKey provided");return!i.hasBigInt||!t&&(0,o.isReady)()?(0,o.secp256k1Compress)(e):n.Point.fromHex(e).toRawBytes(!0)};var n=r(9574),i=r(53956),o=r(56431)},52755:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.secp256k1DeriveHard=function(e,t){if(!(0,n.isU8a)(t)||32!==t.length)throw new Error("Invalid chainCode passed to derive");return(0,i.blake2AsU8a)((0,n.u8aConcat)(o,e,t),256)};var n=r(53956),i=r(99551);const o=(0,n.compactAddLength)((0,n.stringToU8a)("Secp256k1HDKD"))},26288:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.secp256k1Expand=function(e,t){if(65===e.length)return e.subarray(1);if(33!==e.length)throw new Error("Invalid publicKey provided");if(!i.hasBigInt||!t&&(0,o.isReady)())return(0,o.secp256k1Expand)(e).subarray(1);const{x:r,y:s}=n.Point.fromHex(e);return(0,i.u8aConcat)((0,i.bnToU8a)(r,a.BN_BE_256_OPTS),(0,i.bnToU8a)(s,a.BN_BE_256_OPTS))};var n=r(9574),i=r(53956),o=r(56431),a=r(54567)},55361:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasher=function(e,t,r){return"keccak"===e?(0,i.keccakAsU8a)(t,void 0,r):(0,n.blake2AsU8a)(t,void 0,void 0,r)};var n=r(78556),i=r(2175)},49547:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"secp256k1Compress",{enumerable:!0,get:function(){return n.secp256k1Compress}}),Object.defineProperty(t,"secp256k1Expand",{enumerable:!0,get:function(){return i.secp256k1Expand}}),Object.defineProperty(t,"secp256k1PairFromSeed",{enumerable:!0,get:function(){return o.secp256k1PairFromSeed}}),Object.defineProperty(t,"secp256k1PrivateKeyTweakAdd",{enumerable:!0,get:function(){return u.secp256k1PrivateKeyTweakAdd}}),Object.defineProperty(t,"secp256k1Recover",{enumerable:!0,get:function(){return a.secp256k1Recover}}),Object.defineProperty(t,"secp256k1Sign",{enumerable:!0,get:function(){return s.secp256k1Sign}}),Object.defineProperty(t,"secp256k1Verify",{enumerable:!0,get:function(){return c.secp256k1Verify}});var n=r(77309),i=r(26288),o=r(30427),a=r(28091),s=r(85836),u=r(52425),c=r(11923)},30427:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.secp256k1PairFromSeed=function(e,t){if(32!==e.length)throw new Error("Expected valid 32-byte private key as a seed");if(!i.hasBigInt||!t&&(0,o.isReady)()){const t=(0,o.secp256k1FromSeed)(e),r=t.slice(32);if((0,i.u8aEmpty)(r))throw new Error("Invalid publicKey generated from WASM interface");return{publicKey:r,secretKey:t.slice(0,32)}}return{publicKey:(0,n.getPublicKey)(e,!0),secretKey:e}};var n=r(9574),i=r(53956),o=r(56431)},28091:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.secp256k1Recover=function(e,t,r){let u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"blake2",c=arguments.length>4?arguments[4]:void 0;const f=(0,i.u8aToU8a)(t).subarray(0,64),l=(0,i.u8aToU8a)(e),d=!i.hasBigInt||!c&&(0,o.isReady)()?(0,o.secp256k1Recover)(l,f,r):(0,n.recoverPublicKey)(l,n.Signature.fromCompact(f).toRawBytes(),r);if(!d)throw new Error("Unable to recover publicKey from signature");return"keccak"===u?(0,s.secp256k1Expand)(d,c):(0,a.secp256k1Compress)(d,c)};var n=r(9574),i=r(53956),o=r(56431),a=r(77309),s=r(26288)},85836:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.secp256k1Sign=function(e,t){let{secretKey:r}=t,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"blake2",c=arguments.length>3?arguments[3]:void 0;if(32!==(null==r?void 0:r.length))throw new Error("Expected valid secp256k1 secretKey, 32-bytes");const f=(0,s.hasher)(u,e,c);if(!i.hasBigInt||!c&&(0,o.isReady)())return(0,o.secp256k1Sign)(f,r);const[l,d]=(0,n.signSync)(f,r,{canonical:!0,recovered:!0}),{r:h,s:p}=n.Signature.fromHex(l);return(0,i.u8aConcat)((0,i.bnToU8a)(h,a.BN_BE_256_OPTS),(0,i.bnToU8a)(p,a.BN_BE_256_OPTS),new Uint8Array([d||0]))};var n=r(9574),i=r(53956),o=r(56431),a=r(54567),s=r(55361)},52425:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.secp256k1PrivateKeyTweakAdd=function(e,t,r){if(!(0,n.isU8a)(e)||32!==e.length)throw new Error("Expected seckey to be an Uint8Array with length 32");if(!(0,n.isU8a)(t)||32!==t.length)throw new Error("Expected tweak to be an Uint8Array with length 32");return!n.hasBigInt||r?function(e,t){const r=new n.BN(t);if(r.cmp(u)>=0)throw new Error("Tweak parameter is out of range");if(r.iadd(new n.BN(e)),r.cmp(u)>=0&&r.isub(u),r.isZero())throw new Error("Invalid resulting private key");return(0,n.bnToU8a)(r,o.BN_BE_256_OPTS)}(e,t):function(e,t){let r=(0,n.u8aToBigInt)(t,o.BN_BE_OPTS);if(r>=s)throw new Error("Tweak parameter is out of range");if(r+=(0,n.u8aToBigInt)(e,o.BN_BE_OPTS),r>=s&&(r-=s),r===n._0n)throw new Error("Invalid resulting private key");return(0,n.nToU8a)(r,o.BN_BE_256_OPTS)}(e,t)};var n=r(53956),i=r(12214),o=r(54567);const a="ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141".replace(/ /g,""),s=(0,i.BigInt)(`0x${a}`),u=new n.BN(a,"hex")},11923:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.secp256k1Verify=function(e,t,r){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"blake2",s=arguments.length>4?arguments[4]:void 0;const u=(0,n.u8aToU8a)(t);if(65!==u.length)throw new Error(`Expected signature with 65 bytes, ${u.length} found instead`);const c=(0,o.secp256k1Recover)((0,i.hasher)(a,e),u,u[64],a,s),f=(0,i.hasher)(a,c,s),l=(0,n.u8aToU8a)(r);return(0,n.u8aEq)(c,l)||("keccak"===a?(0,n.u8aEq)(f.slice(-20),l.slice(-20)):(0,n.u8aEq)(f,l))};var n=r(53956),i=r(55361),o=r(28091)},70988:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shaAsU8a=t.sha512AsU8a=t.sha256AsU8a=void 0;var n=r(82037),i=r(26616),o=r(56431),a=r(8220);const s=(0,a.createDualHasher)({256:o.sha256,512:o.sha512},{256:n.sha256,512:i.sha512});t.shaAsU8a=s;const u=(0,a.createBitHasher)(256,s);t.sha256AsU8a=u;const c=(0,a.createBitHasher)(512,s);t.sha512AsU8a=c},93656:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"sha256AsU8a",{enumerable:!0,get:function(){return n.sha256AsU8a}}),Object.defineProperty(t,"sha512AsU8a",{enumerable:!0,get:function(){return n.sha512AsU8a}}),Object.defineProperty(t,"shaAsU8a",{enumerable:!0,get:function(){return n.shaAsU8a}});var n=r(70988)},77643:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"signatureVerify",{enumerable:!0,get:function(){return n.signatureVerify}});var n=r(57039)},57039:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.signatureVerify=function(e,t,r){const o=(0,n.u8aToU8a)(t);if(![64,65,66].includes(o.length))throw new Error(`Invalid signature length, expected [64..66] bytes, found ${o.length}`);const a=(0,i.decodeAddress)(r),s={message:(0,n.u8aToU8a)(e),publicKey:a,signature:o},u={crypto:"none",isValid:!1,isWrapped:(0,n.u8aIsWrapped)(s.message,!0),publicKey:a},c=(0,n.u8aIsWrapped)(s.message,!1),f=function(e){return[0,1,2].includes(e[0])&&[65,66].includes(e.length)?h:d}(o);return f(u,s),"none"!==u.crypto||u.isWrapped&&!c?u:(s.message=c?(0,n.u8aUnwrapBytes)(s.message):(0,n.u8aWrapBytes)(s.message),f(u,s))};var n=r(53956),i=r(36752),o=r(89508),a=r(11923),s=r(46994);const u=e=>(t,r,n)=>(0,a.secp256k1Verify)(t,r,n,e),c=[["ecdsa",u("blake2")],["ethereum",u("keccak")]],f=[["ed25519",o.ed25519Verify],["sr25519",s.sr25519Verify],...c],l=["ed25519","sr25519","ecdsa"];function d(e,t){let{message:r,publicKey:n,signature:i}=t,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f;return e.isValid=o.some((t=>{let[o,a]=t;try{if(a(r,i,n))return e.crypto=o,!0}catch(e){}return!1})),e}function h(e,t){let{message:r,publicKey:n,signature:i}=t;if(![0,1,2].includes(i[0]))throw new Error(`Unknown crypto type, expected signature prefix [0..2], found ${i[0]}`);const a=l[i[0]]||"none";e.crypto=a;try{e.isValid={ecdsa:()=>d(e,{message:r,publicKey:n,signature:i.subarray(1)},c).isValid,ed25519:()=>(0,o.ed25519Verify)(r,i.subarray(1),n),none:()=>{throw Error("no verify for `none` crypto type")},sr25519:()=>(0,s.sr25519Verify)(r,i.subarray(1),n)}[a]()}catch(e){}return e}},27852:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sr25519Agreement=function(e,t){const r=(0,n.u8aToU8a)(e),o=(0,n.u8aToU8a)(t);if(32!==o.length)throw new Error(`Invalid publicKey, received ${o.length} bytes, expected 32`);if(64!==r.length)throw new Error(`Invalid secretKey, received ${r.length} bytes, expected 64`);return(0,i.sr25519Agree)(o,r)};var n=r(53956),i=r(56431)},77327:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDeriveFn=function(e){return(t,r)=>{if(!(0,n.isU8a)(r)||32!==r.length)throw new Error("Invalid chainCode passed to derive");return(0,i.sr25519PairFromU8a)(e((0,o.sr25519KeypairToU8a)(t),r))}};var n=r(53956),i=r(53597),o=r(3421)},12553:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sr25519DeriveHard=void 0;var n=r(56431);const i=(0,r(77327).createDeriveFn)(n.sr25519DeriveKeypairHard);t.sr25519DeriveHard=i},64953:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sr25519DerivePublic=function(e,t){const r=(0,n.u8aToU8a)(e);if(!(0,n.isU8a)(t)||32!==t.length)throw new Error("Invalid chainCode passed to derive");if(32!==r.length)throw new Error(`Invalid publicKey, received ${r.length} bytes, expected 32`);return(0,i.sr25519DerivePublicSoft)(r,t)};var n=r(53956),i=r(56431)},61778:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sr25519DeriveSoft=void 0;var n=r(56431);const i=(0,r(77327).createDeriveFn)(n.sr25519DeriveKeypairSoft);t.sr25519DeriveSoft=i},76097:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"sr25519Agreement",{enumerable:!0,get:function(){return n.sr25519Agreement}}),Object.defineProperty(t,"sr25519DeriveHard",{enumerable:!0,get:function(){return i.sr25519DeriveHard}}),Object.defineProperty(t,"sr25519DerivePublic",{enumerable:!0,get:function(){return o.sr25519DerivePublic}}),Object.defineProperty(t,"sr25519DeriveSoft",{enumerable:!0,get:function(){return a.sr25519DeriveSoft}}),Object.defineProperty(t,"sr25519PairFromSeed",{enumerable:!0,get:function(){return s.sr25519PairFromSeed}}),Object.defineProperty(t,"sr25519Sign",{enumerable:!0,get:function(){return u.sr25519Sign}}),Object.defineProperty(t,"sr25519Verify",{enumerable:!0,get:function(){return c.sr25519Verify}}),Object.defineProperty(t,"sr25519VrfSign",{enumerable:!0,get:function(){return f.sr25519VrfSign}}),Object.defineProperty(t,"sr25519VrfVerify",{enumerable:!0,get:function(){return l.sr25519VrfVerify}});var n=r(27852),i=r(12553),o=r(64953),a=r(61778),s=r(49141),u=r(28349),c=r(46994),f=r(41426),l=r(97646)},49141:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sr25519PairFromSeed=function(e){const t=(0,n.u8aToU8a)(e);if(32!==t.length)throw new Error(`Expected a seed matching 32 bytes, found ${t.length}`);return(0,o.sr25519PairFromU8a)((0,i.sr25519KeypairFromSeed)(t))};var n=r(53956),i=r(56431),o=r(53597)},53597:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sr25519PairFromU8a=function(e){const t=(0,n.u8aToU8a)(e);if(t.length!==o)throw new Error(`Expected keypair with ${o} bytes, found ${t.length}`);return{publicKey:t.slice(i,o),secretKey:t.slice(0,i)}};var n=r(53956);const i=64,o=i+32},3421:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sr25519KeypairToU8a=function(e){let{publicKey:t,secretKey:r}=e;return(0,n.u8aConcat)(r,t).slice()};var n=r(53956)},28349:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sr25519Sign=function(e,t){let{publicKey:r,secretKey:o}=t;if(32!==(null==r?void 0:r.length))throw new Error("Expected a valid publicKey, 32-bytes");if(64!==(null==o?void 0:o.length))throw new Error("Expected a valid secretKey, 64-bytes");return(0,i.sr25519Sign)(r,o,(0,n.u8aToU8a)(e))};var n=r(53956),i=r(56431)},46994:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sr25519Verify=function(e,t,r){const o=(0,n.u8aToU8a)(r),a=(0,n.u8aToU8a)(t);if(32!==o.length)throw new Error(`Invalid publicKey, received ${o.length} bytes, expected 32`);if(64!==a.length)throw new Error(`Invalid signature, received ${a.length} bytes, expected 64`);return(0,i.sr25519Verify)(a,(0,n.u8aToU8a)(e),o)};var n=r(53956),i=r(56431)},41426:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sr25519VrfSign=function(e,t){let{secretKey:r}=t,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o;if(64!==(null==r?void 0:r.length))throw new Error("Invalid secretKey, expected 64-bytes");return(0,i.vrfSign)(r,(0,n.u8aToU8a)(a),(0,n.u8aToU8a)(e),(0,n.u8aToU8a)(s))};var n=r(53956),i=r(56431);const o=new Uint8Array},97646:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sr25519VrfVerify=function(e,t,r){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:o;const u=(0,n.u8aToU8a)(r),c=(0,n.u8aToU8a)(t);if(32!==u.length)throw new Error("Invalid publicKey, expected 32-bytes");if(96!==c.length)throw new Error("Invalid vrfSign output, expected 96 bytes");return(0,i.vrfVerify)(u,(0,n.u8aToU8a)(a),(0,n.u8aToU8a)(e),(0,n.u8aToU8a)(s),c)};var n=r(53956),i=r(56431);const o=new Uint8Array},83993:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.xxhashAsHex=void 0,t.xxhashAsU8a=s;var n=r(53956),i=r(56431),o=r(8220),a=r(8741);function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:64,r=arguments.length>2?arguments[2]:void 0;const o=Math.ceil(t/64),s=(0,n.u8aToU8a)(e);if(!n.hasBigInt||!r&&(0,i.isReady)())return(0,i.twox)(s,o);const u=new Uint8Array(8*o);for(let e=0;e<o;e++)u.set((0,a.xxhash64)(s,e).reverse(),8*e);return u}const u=(0,o.createAsHex)(s);t.xxhashAsHex=u},81179:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"xxhashAsHex",{enumerable:!0,get:function(){return n.xxhashAsHex}}),Object.defineProperty(t,"xxhashAsU8a",{enumerable:!0,get:function(){return n.xxhashAsU8a}});var n=r(83993)},8741:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.xxhash64=function(e,t){const{seed:r,u8a:p,u8asize:x,v1:S,v2:A,v3:E,v4:M}=function(e,t){if(t.length<32)return e.u8a.set(t),e.u8asize=t.length,e;const r=t.length-32;let n=0;if(r>=0){const i=e=>o*k(e+a*P(t,n,4),v);do{e.v1=i(e.v1),n+=8,e.v2=i(e.v2),n+=8,e.v3=i(e.v3),n+=8,e.v4=i(e.v4),n+=8}while(n<=r)}return n<t.length&&(e.u8a.set(t.subarray(n,t.length)),e.u8asize=t.length-n),e}(function(e){const t=(0,i.BigInt)(e);return{seed:t,u8a:new Uint8Array(32),u8asize:0,v1:t+o+a,v2:t+a,v3:t,v4:t-o}}(t),e);let j=0,T=f&(0,i.BigInt)(e.length)+(e.length>=32?((((k(S,n._1n)+k(A,l)+k(E,h)+k(M,b)^o*k(S*a,v))*o+u^o*k(A*a,v))*o+u^o*k(E*a,v))*o+u^o*k(M*a,v))*o+u:r+c);for(;j<=x-8;)T=f&u+o*k(T^o*k(a*P(p,j,4),v),g),j+=8;for(j+4<=x&&(T=f&s+a*k(T^o*P(p,j,2),y),j+=4);j<x;)T=f&o*k(T^c*(0,i.BigInt)(p[j++]),d);return T=f&a*(T^T>>_),T=f&s*(T^T>>m),function(e){const t=new Uint8Array(8);for(let r=7;r>=0;r--)t[r]=Number(e%O),e/=O;return t}(f&(T^T>>w))};var n=r(53956),i=r(12214);const o=(0,i.BigInt)("11400714785074694791"),a=(0,i.BigInt)("14029467366897019727"),s=(0,i.BigInt)("1609587929392839161"),u=(0,i.BigInt)("9650029242287828579"),c=(0,i.BigInt)("2870177450012600261"),f=(0,i.BigInt)("0xffffffffffffffff"),l=(0,i.BigInt)(7),d=(0,i.BigInt)(11),h=(0,i.BigInt)(12),p=(0,i.BigInt)(16),b=(0,i.BigInt)(18),y=(0,i.BigInt)(23),g=(0,i.BigInt)(27),m=(0,i.BigInt)(29),v=(0,i.BigInt)(31),w=(0,i.BigInt)(32),_=(0,i.BigInt)(33),x=(0,i.BigInt)(64),O=(0,i.BigInt)(256);function k(e,t){const r=e&f;return(r<<t|r>>x-t)&f}function P(e,t,r){const o=new Array(r);let a=0;for(let n=0;n<r;n++,a+=2)o[n]=(0,i.BigInt)(e[t+a]|e[t+1+a]<<8);let s=n._0n;for(let e=r-1;e>=0;e--)s=(s<<p)+o[e];return s}},16643:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayChunk=function(e,t){const r=Math.ceil(e.length/t);if(1===r)return[e];const n=Array(r);for(let i=0;i<r;i++){const r=i*t;n[i]=e.slice(r,r+t)}return n}},63429:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayFilter=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.filter((e=>void 0!==e&&(t||null!==e)))}},72056:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayFlatten=function(e){if(0===e.length)return[];if(1===e.length)return e[0];let t=0;for(let r=0;r<e.length;r++)t+=e[r].length;const r=new Array(t);let n=-1;for(let t=0;t<e.length;t++){const i=e[t];for(let e=0;e<i.length;e++)r[++n]=i[e]}return r}},54335:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"arrayChunk",{enumerable:!0,get:function(){return n.arrayChunk}}),Object.defineProperty(t,"arrayFilter",{enumerable:!0,get:function(){return i.arrayFilter}}),Object.defineProperty(t,"arrayFlatten",{enumerable:!0,get:function(){return o.arrayFlatten}}),Object.defineProperty(t,"arrayRange",{enumerable:!0,get:function(){return a.arrayRange}}),Object.defineProperty(t,"arrayShuffle",{enumerable:!0,get:function(){return s.arrayShuffle}}),Object.defineProperty(t,"arrayUnzip",{enumerable:!0,get:function(){return u.arrayUnzip}}),Object.defineProperty(t,"arrayZip",{enumerable:!0,get:function(){return c.arrayZip}});var n=r(16643),i=r(63429),o=r(72056),a=r(84945),s=r(78170),u=r(27389),c=r(31550)},84945:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayRange=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e<=0)throw new Error("Expected non-zero, positive number as a range size");const r=new Array(e);for(let n=0;n<e;n++)r[n]=n+t;return r}},78170:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayShuffle=function(e){const t=e.slice();let r=t.length;if(1===r)return t;for(;0!==r;){const e=~~(Math.random()*r);r--,[t[r],t[e]]=[t[e],t[r]]}return t}},27389:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayUnzip=function(e){const t=new Array(e.length),r=new Array(e.length);for(let n=0;n<e.length;n++)[t[n],r[n]]=e[n];return[t,r]}},31550:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayZip=function(e,t){const r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=[e[n],t[n]];return r}},67066:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assert=i,t.assertReturn=function(e,t){return i(null!=e,t),e},t.assertUnreachable=function(e){throw new Error(`This codepath should be unreachable. Unhandled input: ${e}`)};var n=r(60508);function i(e,t){if(!e)throw new Error((0,n.isFunction)(t)?t():t)}},4785:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._sqrt2pow53n=t._9n=t._8n=t._7n=t._6n=t._5n=t._4n=t._3n=t._2pow53n=t._2n=t._1n=t._1Qn=t._1Mn=t._1Bn=t._10n=t._100n=t._1000n=t._0n=void 0;var n=r(12214);const i=(0,n.BigInt)(0);t._0n=i;const o=(0,n.BigInt)(1);t._1n=o;const a=(0,n.BigInt)(2);t._2n=a;const s=(0,n.BigInt)(3);t._3n=s;const u=(0,n.BigInt)(4);t._4n=u;const c=(0,n.BigInt)(5);t._5n=c;const f=(0,n.BigInt)(6);t._6n=f;const l=(0,n.BigInt)(7);t._7n=l;const d=(0,n.BigInt)(8);t._8n=d;const h=(0,n.BigInt)(9);t._9n=h;const p=(0,n.BigInt)(10);t._10n=p;const b=(0,n.BigInt)(100);t._100n=b;const y=(0,n.BigInt)(1e3);t._1000n=y;const g=(0,n.BigInt)(1e6);t._1Mn=g;const m=(0,n.BigInt)(1e9);t._1Bn=m;const v=m*m;t._1Qn=v;const w=(0,n.BigInt)(Number.MAX_SAFE_INTEGER);t._2pow53n=w;const _=(0,n.BigInt)(94906265);t._sqrt2pow53n=_},28204:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCmp=function(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(0===r.length)throw new Error("Must provide one or more arguments");let i=r[0];for(let t=1;t<r.length;t++)e(r[t],i)&&(i=r[t]);return i}}},2232:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={nSqrt:!0,nToBigInt:!0,nMax:!0,nMin:!0,nToHex:!0,nToU8a:!0};Object.defineProperty(t,"nMax",{enumerable:!0,get:function(){return s.nMax}}),Object.defineProperty(t,"nMin",{enumerable:!0,get:function(){return s.nMin}}),Object.defineProperty(t,"nSqrt",{enumerable:!0,get:function(){return o.nSqrt}}),Object.defineProperty(t,"nToBigInt",{enumerable:!0,get:function(){return a.nToBigInt}}),Object.defineProperty(t,"nToHex",{enumerable:!0,get:function(){return u.nToHex}}),Object.defineProperty(t,"nToU8a",{enumerable:!0,get:function(){return c.nToU8a}});var i=r(4785);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=r(84650),a=r(89613),s=r(84689),u=r(38483),c=r(77430)},84689:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nMin=t.nMax=void 0;var n=r(28204);const i=(0,n.createCmp)(((e,t)=>e>t));t.nMax=i;const o=(0,n.createCmp)(((e,t)=>e<t));t.nMin=o},84650:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nSqrt=function(e){const t=(0,o.nToBigInt)(e);if(t<i._0n)throw new Error("square root of negative numbers is not supported");if(t<=i._2pow53n)return(0,n.BigInt)(~~Math.sqrt(Number(t)));let r=i._sqrt2pow53n;for(;;){const e=t/r+r>>i._1n;if(r===e||r===e-i._1n)return r;r=e}};var n=r(12214),i=r(4785),o=r(89613)},89613:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nToBigInt=function(e){return"bigint"==typeof e?e:e?(0,a.isHex)(e)?(0,i.hexToBigInt)(e.toString()):(0,o.isBn)(e)?(0,n.BigInt)(e.toString()):(0,s.isToBigInt)(e)?e.toBigInt():(0,u.isToBn)(e)?(0,n.BigInt)(e.toBn().toString()):(0,n.BigInt)(e):(0,n.BigInt)(0)};var n=r(12214),i=r(99789),o=r(43254),a=r(87166),s=r(79660),u=r(54943)},38483:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nToHex=function(e){let{bitLength:t,isLe:r=!1,isNegative:o=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.u8aToHex)((0,i.nToU8a)(e||0,{bitLength:t,isLe:r,isNegative:o}))};var n=r(68084),i=r(77430)},77430:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nToU8a=function(e){let{bitLength:t=-1,isLe:r=!0,isNegative:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const u=(0,o.nToBigInt)(e);if(u===i._0n)return-1===t?new Uint8Array(1):new Uint8Array(Math.ceil((t||0)/8));const c=function(e,t,r){const n=[];for(r&&(e=(e+i._1n)*-i._1n);e!==i._0n;){const i=e%a,o=Number(r?i^s:i);t?n.push(o):n.unshift(o),e=(e-i)/a}return Uint8Array.from(n)}(u,r,n);if(-1===t)return c;const f=Math.ceil((t||0)/8),l=new Uint8Array(f);return n&&l.fill(255),l.set(c,r?0:f-c.length),l};var n=r(12214),i=r(4785),o=r(89613);const a=(0,n.BigInt)(256),s=(0,n.BigInt)(255)},89264:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BN",{enumerable:!0,get:function(){return i.default}});var i=n(r(13550))},59174:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BN_ZERO=t.BN_TWO=t.BN_THREE=t.BN_THOUSAND=t.BN_TEN=t.BN_SQRT_MAX_INTEGER=t.BN_SIX=t.BN_SEVEN=t.BN_QUINTILL=t.BN_ONE=t.BN_NINE=t.BN_MILLION=t.BN_MAX_INTEGER=t.BN_HUNDRED=t.BN_FOUR=t.BN_FIVE=t.BN_EIGHT=t.BN_BILLION=void 0;var n=r(89264);const i=new n.BN(0);t.BN_ZERO=i;const o=new n.BN(1);t.BN_ONE=o;const a=new n.BN(2);t.BN_TWO=a;const s=new n.BN(3);t.BN_THREE=s;const u=new n.BN(4);t.BN_FOUR=u;const c=new n.BN(5);t.BN_FIVE=c;const f=new n.BN(6);t.BN_SIX=f;const l=new n.BN(7);t.BN_SEVEN=l;const d=new n.BN(8);t.BN_EIGHT=d;const h=new n.BN(9);t.BN_NINE=h;const p=new n.BN(10);t.BN_TEN=p;const b=new n.BN(100);t.BN_HUNDRED=b;const y=new n.BN(1e3);t.BN_THOUSAND=y;const g=new n.BN(1e6);t.BN_MILLION=g;const m=new n.BN(1e9);t.BN_BILLION=m;const v=m.mul(m);t.BN_QUINTILL=v;const w=new n.BN(Number.MAX_SAFE_INTEGER);t.BN_MAX_INTEGER=w;const _=new n.BN(94906265);t.BN_SQRT_MAX_INTEGER=_},34463:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bnFromHex",{enumerable:!0,get:function(){return n.hexToBn}});var n=r(63737)},2059:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={BN:!0,bnFromHex:!0,bnMax:!0,bnMin:!0,bnSqrt:!0,bnToBn:!0,bnToHex:!0,bnToU8a:!0};Object.defineProperty(t,"BN",{enumerable:!0,get:function(){return o.BN}}),Object.defineProperty(t,"bnFromHex",{enumerable:!0,get:function(){return a.bnFromHex}}),Object.defineProperty(t,"bnMax",{enumerable:!0,get:function(){return s.bnMax}}),Object.defineProperty(t,"bnMin",{enumerable:!0,get:function(){return s.bnMin}}),Object.defineProperty(t,"bnSqrt",{enumerable:!0,get:function(){return u.bnSqrt}}),Object.defineProperty(t,"bnToBn",{enumerable:!0,get:function(){return c.bnToBn}}),Object.defineProperty(t,"bnToHex",{enumerable:!0,get:function(){return f.bnToHex}}),Object.defineProperty(t,"bnToU8a",{enumerable:!0,get:function(){return l.bnToU8a}});var i=r(59174);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=r(89264),a=r(34463),s=r(24567),u=r(95479),c=r(71274),f=r(16815),l=r(99098)},24567:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnMin=t.bnMax=void 0;var n=r(28204);const i=(0,n.createCmp)(((e,t)=>e.gt(t)));t.bnMax=i;const o=(0,n.createCmp)(((e,t)=>e.lt(t)));t.bnMin=o},95479:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnSqrt=function(e){const t=(0,o.bnToBn)(e);if(t.isNeg())throw new Error("square root of negative numbers is not supported");if(t.lte(i.BN_MAX_INTEGER))return new n.BN(~~Math.sqrt(t.toNumber()));let r=i.BN_SQRT_MAX_INTEGER.clone();for(;;){const e=t.div(r).iadd(r).ishrn(1);if(r.eq(e)||r.eq(e.sub(i.BN_ONE)))return r;r=e}};var n=r(89264),i=r(59174),o=r(71274)},71274:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnToBn=function(e){return e?u.BN.isBN(e)?e:(0,o.isHex)(e)?(0,n.hexToBn)(e.toString()):(0,i.isBigInt)(e)?new u.BN(e.toString()):(0,s.isToBn)(e)?e.toBn():(0,a.isToBigInt)(e)?new u.BN(e.toBigInt().toString()):new u.BN(e):new u.BN(0)};var n=r(63737),i=r(4695),o=r(87166),a=r(79660),s=r(54943),u=r(89264)},16815:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnToHex=function(e){let{bitLength:t=-1,isLe:r=!1,isNegative:o=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.u8aToHex)((0,i.bnToU8a)(e,{bitLength:t,isLe:r,isNegative:o}))};var n=r(68084),i=r(99098)},99098:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnToU8a=function(e){let{bitLength:t=-1,isLe:r=!0,isNegative:o=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;const a=(0,n.bnToBn)(e),s=-1===t?Math.ceil(a.bitLength()/8):Math.ceil((t||0)/8);if(!e)return-1===t?new Uint8Array(1):new Uint8Array(s);const u=new Uint8Array(s),c=o?a.toTwos(8*s):a;return u.set(c.toArray(r?"le":"be",s),0),u};var n=r(71274);const i={bitLength:-1,isLe:!0,isNegative:!1}},6276:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bufferToU8a",{enumerable:!0,get:function(){return n.bufferToU8a}});var n=r(2397)},2397:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bufferToU8a=function(e){return new Uint8Array(e||[])}},39209:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={packageInfo:!0};Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return i.packageInfo}});var i=r(20496),o=r(54335);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=r(67066);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var s=r(2232);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var u=r(2059);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var c=r(6276);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var f=r(76245);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))}));var l=r(39842);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var d=r(44);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var h=r(97804);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))}));var p=r(56322);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===p[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}}))}));var b=r(53694);Object.keys(b).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===b[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return b[e]}}))}));var y=r(4734);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===y[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return y[e]}}))}));var g=r(7980);Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===g[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return g[e]}}))}));var m=r(828);Object.keys(m).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===m[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return m[e]}}))}));var v=r(88585);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===v[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return v[e]}}))}));var w=r(6866);Object.keys(w).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===w[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return w[e]}}))}));var _=r(97479);Object.keys(_).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===_[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return _[e]}}))}));var x=r(66408);Object.keys(x).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===x[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return x[e]}}))}));var O=r(20120);Object.keys(O).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===O[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return O[e]}}))}));var k=r(44462);Object.keys(k).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===k[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return k[e]}}))}));var P=r(29397);Object.keys(P).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===P[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return P[e]}}))}));var S=r(68084);Object.keys(S).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===S[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return S[e]}}))}));var A=r(2879);Object.keys(A).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===A[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return A[e]}}))}))},12142:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactAddLength=function(e){return(0,n.u8aConcatStrict)([(0,i.compactToU8a)(e.length),e])};var n=r(68084),i=r(39919)},2486:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactFromU8a=function(e){const t=(0,i.u8aToU8a)(e);switch(3&t[0]){case 0:return[1,new n.BN(t[0]>>>2)];case 1:return[2,new n.BN(t[0]+(t[1]<<8)>>>2)];case 2:return[4,new n.BN(t[0]+(t[1]<<8)+(t[2]<<16)+16777216*t[3]>>>2)];default:{const e=5+(t[0]>>>2);switch(e){case 5:return[5,new n.BN(t[1]+(t[2]<<8)+(t[3]<<16)+16777216*t[4])];case 6:return[6,new n.BN(t[1]+(t[2]<<8)+(t[3]<<16)+16777216*(t[4]+(t[5]<<8)))];case 7:return[7,new n.BN(t[1]+(t[2]<<8)+(t[3]<<16)+16777216*(t[4]+(t[5]<<8)+(t[6]<<16)))];default:return[e,(0,i.u8aToBn)(t.subarray(1,e))]}}}},t.compactFromU8aLim=function(e){switch(3&e[0]){case 0:return[1,e[0]>>>2];case 1:return[2,e[0]+(e[1]<<8)>>>2];case 2:return[4,e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]>>>2];default:switch(5+(e[0]>>>2)){case 5:return[5,e[1]+(e[2]<<8)+(e[3]<<16)+16777216*e[4]];case 6:return[6,e[1]+(e[2]<<8)+(e[3]<<16)+16777216*(e[4]+(e[5]<<8))];case 7:return[7,e[1]+(e[2]<<8)+(e[3]<<16)+16777216*(e[4]+(e[5]<<8)+(e[6]<<16))];default:throw new Error("Compact input is > Number.MAX_SAFE_INTEGER")}}};var n=r(2059),i=r(68084)},76245:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"compactAddLength",{enumerable:!0,get:function(){return n.compactAddLength}}),Object.defineProperty(t,"compactFromU8a",{enumerable:!0,get:function(){return o.compactFromU8a}}),Object.defineProperty(t,"compactFromU8aLim",{enumerable:!0,get:function(){return o.compactFromU8aLim}}),Object.defineProperty(t,"compactStripLength",{enumerable:!0,get:function(){return i.compactStripLength}}),Object.defineProperty(t,"compactToU8a",{enumerable:!0,get:function(){return a.compactToU8a}});var n=r(12142),i=r(53614),o=r(2486),a=r(39919)},53614:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactStripLength=function(e){const[t,r]=(0,n.compactFromU8a)(e),i=t+r.toNumber();return[i,e.subarray(t,i)]};var n=r(2486)},39919:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactToU8a=function(e){const t=(0,n.bnToBn)(e);if(t.lte(o))return new Uint8Array([t.toNumber()<<2]);if(t.lte(a))return(0,n.bnToU8a)(t.shln(2).iadd(n.BN_ONE),u);if(t.lte(s))return(0,n.bnToU8a)(t.shln(2).iadd(n.BN_TWO),c);const r=(0,n.bnToU8a)(t);let f=r.length;for(;0===r[f-1];)f--;if(f<4)throw new Error("Invalid length, previous checks match anything less than 2^30");return(0,i.u8aConcatStrict)([new Uint8Array([3+(f-4<<2)]),r.subarray(0,f)])};var n=r(2059),i=r(68084);const o=n.BN_TWO.pow(new n.BN(6)).isub(n.BN_ONE),a=n.BN_TWO.pow(new n.BN(14)).isub(n.BN_ONE),s=n.BN_TWO.pow(new n.BN(30)).isub(n.BN_ONE),u={bitLength:16},c={bitLength:32}},70138:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(61253),i=r(35608),o=[n.packageInfo,i.packageInfo];t.default=o},75825:(e,t,r)=>{"use strict";var n=r(64836)(r(70138)),i=r(20496);(0,r(2879).detectPackage)(i.packageInfo,null,n.default)},39842:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extractTime=function e(t){return t?t<1e3?a({milliseconds:t},o):function(t){const o=t/1e3;if(o<60){const r=~~o;return a({seconds:r},e(t-1e3*r))}const s=o/60;if(s<60){const n=~~s;return a({minutes:n},e(t-n*r))}const u=s/60;if(u<24){const r=~~u;return a({hours:r},e(t-r*n))}const c=~~(u/24);return a({days:c},e(t-c*i))}(t):o};const r=6e4,n=60*r,i=24*n,o={days:0,hours:0,milliseconds:0,minutes:0,seconds:0};function a(e,t){return{days:(e.days||0)+t.days,hours:(e.hours||0)+t.hours,milliseconds:(e.milliseconds||0)+t.milliseconds,minutes:(e.minutes||0)+t.minutes,seconds:(e.seconds||0)+t.seconds}}},44:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"floatToU8a",{enumerable:!0,get:function(){return n.floatToU8a}});var n=r(13282)},13282:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.floatToU8a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,{bitLength:t=32,isLe:r=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(32!==t&&64!==t)throw new Error("Invalid bitLength provided, expected 32 or 64");const n=new Uint8Array(t/8),i=new DataView(n.buffer,n.byteOffset);return 32===t?i.setFloat32(0,Number(e),r):i.setFloat64(0,Number(e),r),n}},99191:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatBalance=void 0;var n=r(71274),i=r(25362),o=r(26659),a=r(82919),s=r(33695);const u=s.SI[s.SI_MID].text;let c=0,f=u;const l=function(e){let{decimals:t=c,forceUnit:r,withAll:u=!1,withSi:f=!0,withSiFull:l=!1,withUnit:d=!0,withZero:h=!0,locale:p="en"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},b=(0,n.bnToBn)(e).toString();if(0===b.length||"0"===b)return"0";let y="";b[0].startsWith("-")&&(y="-",b=b.substring(1));const g=(0,s.calcSi)(b,t,r),m=b.length-(t+g.power),v=m<=0?"0":b.substring(0,m);let w=b.padStart(m<0?t:1,"0").substring(m<0?0:m).padEnd(u?Math.max(t,4):4,"0").substring(0,u?Math.max(4,t+g.power):4);if(!h){let e=w.length-1;do{"0"===w[e]&&e--}while("0"===w[e]);w=w.substring(0,e+1)}const _=(0,i.isBoolean)(d)?s.SI[s.SI_MID].text:d,x=f||l?"-"===g.value?d?` ${_}`:"":` ${l?`${g.text}${d?" ":""}`:g.value}${d?_:""}`:"",{decimal:O,thousand:k}=(0,a.getSeparator)(p);return`${y}${(0,o.formatDecimal)(v,k)}${w&&`${O}${w}`}${x}`};t.formatBalance=l,l.calcSi=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;return(0,s.calcSi)(e,t)},l.findSi=s.findSi,l.getDefaults=()=>({decimals:c,unit:f}),l.getOptions=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return s.SI.filter((t=>{let{power:r}=t;return!(r<0)||e+r>=0}))},l.setDefaults=e=>{let{decimals:t,unit:r}=e;c=void 0===t?c:Array.isArray(t)?t[0]:t,f=void 0===r?f:Array.isArray(r)?r[0]:r,s.SI[s.SI_MID].text=f}},4375:(e,t)=>{"use strict";function r(e){return e.toString().padStart(2,"0")}Object.defineProperty(t,"__esModule",{value:!0}),t.formatDate=function(e){return`${e.getFullYear().toString()}-${r(e.getMonth()+1)}-${r(e.getDate())} ${r(e.getHours())}:${r(e.getMinutes())}:${r(e.getSeconds())}`}},26659:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatDecimal=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";const n=e[0].startsWith("-"),i=n?e.substring(1).match(r):e.match(r);return i?`${n?"-":""}${i.join(t)}`:e};const r=new RegExp("(\\d+?)(?=(\\d{3})+(?!\\d)|$)","g")},21816:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatElapsed=function(e,t){const r=e&&e.getTime()||0,i=t instanceof Date?t.getTime():(0,n.bnToBn)(t).toNumber();return r&&i?(o=Math.max(Math.abs(r-i),0)/1e3)<15?`${o.toFixed(1)}s`:o<60?(0|o)+"s":o<3600?(o/60|0)+"m":(o/3600|0)+"h":"0.0s";var o};var n=r(71274)},98111:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatNumber=function(e){let{locale:t="en"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{thousand:r}=(0,o.getSeparator)(t);return(0,i.formatDecimal)((0,n.bnToBn)(e).toString(),r)};var n=r(71274),i=r(26659),o=r(82919)},82919:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSeparator=function(e){return{decimal:.1.toLocaleString(e).substring(1,2),thousand:1e3.toLocaleString(e).substring(1,2)}}},97804:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"calcSi",{enumerable:!0,get:function(){return u.calcSi}}),Object.defineProperty(t,"findSi",{enumerable:!0,get:function(){return u.findSi}}),Object.defineProperty(t,"formatBalance",{enumerable:!0,get:function(){return n.formatBalance}}),Object.defineProperty(t,"formatDate",{enumerable:!0,get:function(){return i.formatDate}}),Object.defineProperty(t,"formatDecimal",{enumerable:!0,get:function(){return o.formatDecimal}}),Object.defineProperty(t,"formatElapsed",{enumerable:!0,get:function(){return a.formatElapsed}}),Object.defineProperty(t,"formatNumber",{enumerable:!0,get:function(){return s.formatNumber}});var n=r(99191),i=r(4375),o=r(26659),a=r(21816),s=r(98111),u=r(33695)},33695:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SI_MID=t.SI=void 0,t.calcSi=function(e,t,o){if(o)return i(o);const a=r-1+Math.ceil((e.length-t)/3);return n[a]||n[a<0?0:n.length-1]},t.findSi=i;const r=8;t.SI_MID=r;const n=[{power:-24,text:"yocto",value:"y"},{power:-21,text:"zepto",value:"z"},{power:-18,text:"atto",value:"a"},{power:-15,text:"femto",value:"f"},{power:-12,text:"pico",value:"p"},{power:-9,text:"nano",value:"n"},{power:-6,text:"micro",value:"µ"},{power:-3,text:"milli",value:"m"},{power:0,text:"Unit",value:"-"},{power:3,text:"Kilo",value:"k"},{power:6,text:"Mill",value:"M"},{power:9,text:"Bill",value:"B"},{power:12,text:"Tril",value:"T"},{power:15,text:"Peta",value:"P"},{power:18,text:"Exa",value:"E"},{power:21,text:"Zeta",value:"Z"},{power:24,text:"Yotta",value:"Y"}];function i(e){for(let t=0;t<n.length;t++)if(n[t].value===e)return n[t];return n[r]}t.SI=n},56322:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasWasm=t.hasProcess=t.hasEsm=t.hasDirname=t.hasCjs=t.hasBuffer=t.hasBigInt=void 0;var n=r(12214),i=r(97099);const o="function"==typeof n.BigInt&&"function"==typeof n.BigInt.asIntN;t.hasBigInt=o,t.hasCjs=!0,t.hasDirname=!0,t.hasEsm=!1;const a="undefined"!=typeof WebAssembly;t.hasWasm=a;const s="function"==typeof i.xglobal.Buffer&&"function"==typeof i.xglobal.Buffer.isBuffer;t.hasBuffer=s;const u="object"==typeof i.xglobal.process;t.hasProcess=u},28836:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexAddPrefix=function(e){return e&&(0,n.hexHasPrefix)(e)?e:`0x${e&&e.length%2==1?"0":""}${e||""}`};var n=r(56593)},86434:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexFixLength=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=Math.ceil(t/4),a=o+2;return(0,n.hexAddPrefix)(-1===t||e.length===a||!r&&e.length<a?(0,i.hexStripPrefix)(e):e.length>a?(0,i.hexStripPrefix)(e).slice(-1*o):`${"0".repeat(o)}${(0,i.hexStripPrefix)(e)}`.slice(-1*o))};var n=r(28836),i=r(28609)},56593:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexHasPrefix=function(e){return!!e&&(0,n.isHex)(e,-1)};var n=r(87166)},53694:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hexAddPrefix",{enumerable:!0,get:function(){return n.hexAddPrefix}}),Object.defineProperty(t,"hexFixLength",{enumerable:!0,get:function(){return i.hexFixLength}}),Object.defineProperty(t,"hexHasPrefix",{enumerable:!0,get:function(){return o.hexHasPrefix}}),Object.defineProperty(t,"hexStripPrefix",{enumerable:!0,get:function(){return a.hexStripPrefix}}),Object.defineProperty(t,"hexToBigInt",{enumerable:!0,get:function(){return s.hexToBigInt}}),Object.defineProperty(t,"hexToBn",{enumerable:!0,get:function(){return u.hexToBn}}),Object.defineProperty(t,"hexToNumber",{enumerable:!0,get:function(){return c.hexToNumber}}),Object.defineProperty(t,"hexToString",{enumerable:!0,get:function(){return f.hexToString}}),Object.defineProperty(t,"hexToU8a",{enumerable:!0,get:function(){return l.hexToU8a}});var n=r(28836),i=r(86434),o=r(56593),a=r(28609),s=r(99789),u=r(63737),c=r(5671),f=r(40405),l=r(79543)},28609:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexStripPrefix=function(e){if(!e||"0x"===e)return"";if(n.REGEX_HEX_PREFIXED.test(e))return e.substring(2);if(n.REGEX_HEX_NOPREFIX.test(e))return e;throw new Error(`Expected hex value to convert, found '${e}'`)};var n=r(87166)},99789:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToBigInt=function(e){let{isLe:t=!1,isNegative:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e&&"0x"!==e?(0,i.u8aToBigInt)((0,o.hexToU8a)(e),{isLe:t,isNegative:r}):(0,n.BigInt)(0)};var n=r(12214),i=r(82789),o=r(79543)},63737:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToBn=function(e){let{isLe:t=!1,isNegative:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||"0x"===e)return new n.BN(0);const o=(0,i.hexStripPrefix)(e),a=new n.BN(o,16,t?"le":"be");return r?a.fromTwos(4*o.length):a};var n=r(89264),i=r(28609)},5671:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToNumber=function(e){return e?(0,n.hexToBn)(e).toNumber():NaN};var n=r(63737)},40405:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToString=function(e){return(0,n.u8aToString)((0,i.hexToU8a)(e))};var n=r(60367),i=r(79543)},79543:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToU8a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(!e)return new Uint8Array;let r=e.startsWith("0x")?2:0;const n=Math.ceil((e.length-r)/2),o=Math.ceil(-1===t?n:t/8),a=new Uint8Array(o);for(let t=o>n?o-n:0;t<o;t++,r+=2)a[t]=i[e.charCodeAt(r)<<8|e.charCodeAt(r+1)];return a};const r="0123456789abcdef",n=new Uint8Array(256),i=new Uint8Array(65536);for(let e=0;e<16;e++)n[0|r[e].charCodeAt(0)]=0|e,e>9&&(n[0|r[e].toUpperCase().charCodeAt(0)]=0|e);for(let e=0;e<256;e++){const t=e<<8;for(let r=0;r<256;r++)i[t|r]=n[e]<<4|n[r]}},53956:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(75825);var n=r(39209);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}))},35801:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isArray=function(e){return Array.isArray(e)}},59302:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAscii=function(e){return(0,o.isString)(e)?(0,i.isHex)(e)?a((0,n.u8aToU8a)(e)):function(e){const t=0|e.length;for(let r=0;r<t;r++){const t=e.charCodeAt(r);if(t<32||t>126)return!1}return!0}(e):!!e&&a(e)};var n=r(23118),i=r(87166),o=r(70281);function a(e){const t=0|e.length;for(let r=0;r<t;r++){const t=0|e[r];if(t<32||t>126)return!1}return!0}},4695:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBigInt=function(e){return"bigint"==typeof e}},43254:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBn=function(e){return n.BN.isBN(e)};var n=r(89264)},25362:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBoolean=function(e){return"boolean"==typeof e}},99166:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBuffer=function(e){return i.hasBuffer&&(0,o.isFunction)(e&&e.readDoubleLE)&&n.xglobal.Buffer.isBuffer(e)};var n=r(97099),i=r(56322),o=r(60508)},95641:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isChildClass=function(e,t){return!(!(0,n.isClass)(t)||!(0,n.isClass)(e))&&(e===t||e.isPrototypeOf(t))};var n=r(33110)},33110:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isClass=void 0;const n=(0,r(35381).isOnFunction)("isPrototypeOf","hasOwnProperty");t.isClass=n},15192:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isCodec=function(e){return i(e)&&o(e.registry)};var n=r(35381);const i=(0,n.isOnObject)("toHex","toU8a"),o=(0,n.isOnObject)("get")},61414:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isCompact=void 0;const n=(0,r(35381).isOnObject)("toBigInt","toBn","toNumber","unwrap");t.isCompact=n},64542:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isError=function(e){return(e&&e.constructor)===Error||e instanceof Error}},60508:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFunction=function(e){return"function"==typeof e}},35381:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isOn=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return e=>((0,i.isObject)(e)||(0,n.isFunction)(e))&&t.every((t=>(0,n.isFunction)(e[t])))},t.isOnFunction=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return e=>(0,n.isFunction)(e)&&t.every((t=>(0,n.isFunction)(e[t])))},t.isOnObject=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return e=>(0,i.isObject)(e)&&t.every((t=>(0,n.isFunction)(e[t])))};var n=r(60508),i=r(69616)},87166:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.REGEX_HEX_PREFIXED=t.REGEX_HEX_NOPREFIX=void 0,t.isHex=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=arguments.length>2?arguments[2]:void 0;return"string"==typeof e&&("0x"===e||r.test(e))&&(-1===t?n||e.length%2==0:e.length===2+Math.ceil(t/4))};const r=/^0x[\da-fA-F]+$/;t.REGEX_HEX_PREFIXED=r,t.REGEX_HEX_NOPREFIX=/^[\da-fA-F]+$/},4734:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isArray",{enumerable:!0,get:function(){return n.isArray}}),Object.defineProperty(t,"isAscii",{enumerable:!0,get:function(){return i.isAscii}}),Object.defineProperty(t,"isBigInt",{enumerable:!0,get:function(){return o.isBigInt}}),Object.defineProperty(t,"isBn",{enumerable:!0,get:function(){return a.isBn}}),Object.defineProperty(t,"isBoolean",{enumerable:!0,get:function(){return u.isBoolean}}),Object.defineProperty(t,"isBuffer",{enumerable:!0,get:function(){return s.isBuffer}}),Object.defineProperty(t,"isChildClass",{enumerable:!0,get:function(){return c.isChildClass}}),Object.defineProperty(t,"isClass",{enumerable:!0,get:function(){return f.isClass}}),Object.defineProperty(t,"isCodec",{enumerable:!0,get:function(){return l.isCodec}}),Object.defineProperty(t,"isCompact",{enumerable:!0,get:function(){return d.isCompact}}),Object.defineProperty(t,"isError",{enumerable:!0,get:function(){return h.isError}}),Object.defineProperty(t,"isFunction",{enumerable:!0,get:function(){return p.isFunction}}),Object.defineProperty(t,"isHex",{enumerable:!0,get:function(){return b.isHex}}),Object.defineProperty(t,"isInstanceOf",{enumerable:!0,get:function(){return y.isInstanceOf}}),Object.defineProperty(t,"isIp",{enumerable:!0,get:function(){return g.isIp}}),Object.defineProperty(t,"isJsonObject",{enumerable:!0,get:function(){return m.isJsonObject}}),Object.defineProperty(t,"isNull",{enumerable:!0,get:function(){return v.isNull}}),Object.defineProperty(t,"isNumber",{enumerable:!0,get:function(){return w.isNumber}}),Object.defineProperty(t,"isObject",{enumerable:!0,get:function(){return _.isObject}}),Object.defineProperty(t,"isObservable",{enumerable:!0,get:function(){return x.isObservable}}),Object.defineProperty(t,"isPromise",{enumerable:!0,get:function(){return O.isPromise}}),Object.defineProperty(t,"isString",{enumerable:!0,get:function(){return k.isString}}),Object.defineProperty(t,"isTestChain",{enumerable:!0,get:function(){return P.isTestChain}}),Object.defineProperty(t,"isToBigInt",{enumerable:!0,get:function(){return S.isToBigInt}}),Object.defineProperty(t,"isToBn",{enumerable:!0,get:function(){return A.isToBn}}),Object.defineProperty(t,"isU8a",{enumerable:!0,get:function(){return E.isU8a}}),Object.defineProperty(t,"isUndefined",{enumerable:!0,get:function(){return M.isUndefined}}),Object.defineProperty(t,"isUtf8",{enumerable:!0,get:function(){return j.isUtf8}}),Object.defineProperty(t,"isWasm",{enumerable:!0,get:function(){return T.isWasm}});var n=r(35801),i=r(59302),o=r(4695),a=r(43254),s=r(99166),u=r(25362),c=r(95641),f=r(33110),l=r(15192),d=r(61414),h=r(64542),p=r(60508),b=r(87166),y=r(34981),g=r(22916),m=r(17004),v=r(7178),w=r(45753),_=r(69616),x=r(19070),O=r(70087),k=r(70281),P=r(96101),S=r(79660),A=r(54943),E=r(61955),M=r(55894),j=r(75842),T=r(18639)},34981:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInstanceOf=function(e,t){return(e&&e.constructor)===t||e instanceof t}},22916:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIp=function(e,t){switch(t){case"v4":return a.test(e);case"v6":return s.test(e);default:return o.test(e)}};const r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",i=`\n(?:\n(?:${n}:){7}(?:${n}|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:${n}:){6}(?:${r}|:${n}|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:${n}:){5}(?::${r}|(?::${n}){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:${n}:){4}(?:(?::${n}){0,1}:${r}|(?::${n}){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:${n}:){3}(?:(?::${n}){0,2}:${r}|(?::${n}){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:${n}:){2}(?:(?::${n}){0,3}:${r}|(?::${n}){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:${n}:){1}(?:(?::${n}){0,4}:${r}|(?::${n}){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::${n}){0,5}:${r}|(?::${n}){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n`.replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),o=new RegExp(`(?:^${r}$)|(?:^${i}$)`),a=new RegExp(`^${r}$`),s=new RegExp(`^${i}$`)},17004:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isJsonObject=function(e){const t="string"!=typeof e?(0,n.stringify)(e):e;try{const e=JSON.parse(t);return"object"==typeof e&&null!==e}catch(e){return!1}};var n=r(29397)},7178:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNull=function(e){return null===e}},45753:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNumber=function(e){return"number"==typeof e}},69616:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObject=function(e){return!!e&&"object"==typeof e}},19070:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObservable=void 0;const n=(0,r(35381).isOn)("next");t.isObservable=n},70087:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPromise=void 0;const n=(0,r(35381).isOnObject)("catch","then");t.isPromise=n},70281:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isString=function(e){return"string"==typeof e||e instanceof String}},96101:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isTestChain=function(e){return!!e&&!!r.test(e.toString())};const r=/(Development|Local Testnet)$/},79660:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isToBigInt=void 0;const n=(0,r(35381).isOn)("toBigInt");t.isToBigInt=n},54943:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isToBn=void 0;const n=(0,r(35381).isOn)("toBn");t.isToBn=n},61955:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isU8a=function(e){return(e&&e.constructor)===Uint8Array||e instanceof Uint8Array}},55894:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isUndefined=function(e){return void 0===e}},75842:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isUtf8=function(e){if(!e)return(0,i.isString)(e);const t=(0,n.u8aToU8a)(e),r=t.length;let o=0;for(;o<r;)if(t[o]<=127)o+=1;else if(t[o]>=194&&t[o]<=223){if(!(o+1<r))return!1;if(t[o+1]<128||t[o+1]>191)return!1;o+=2}else if(224===t[o]){if(!(o+2<r))return!1;if(t[o+1]<160||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;o+=3}else if(t[o]>=225&&t[o]<=236){if(!(o+2<r))return!1;if(t[o+1]<128||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;o+=3}else if(237===t[o]){if(!(o+2<r))return!1;if(t[o+1]<128||t[o+1]>159)return!1;if(t[o+2]<128||t[o+2]>191)return!1;o+=3}else if(t[o]>=238&&t[o]<=239){if(!(o+2<r))return!1;if(t[o+1]<128||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;o+=3}else if(240===t[o]){if(!(o+3<r))return!1;if(t[o+1]<144||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;if(t[o+3]<128||t[o+3]>191)return!1;o+=4}else if(t[o]>=241&&t[o]<=243){if(!(o+3<r))return!1;if(t[o+1]<128||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;if(t[o+3]<128||t[o+3]>191)return!1;o+=4}else{if(244!==t[o])return!1;if(!(o+3<r))return!1;if(t[o+1]<128||t[o+1]>143)return!1;if(t[o+2]<128||t[o+2]>191)return!1;if(t[o+3]<128||t[o+3]>191)return!1;o+=4}return!0};var n=r(23118),i=r(70281)},18639:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isWasm=function(e){return(0,i.isU8a)(e)&&(0,n.u8aEq)(e.subarray(0,4),o)};var n=r(34600),i=r(61955);const o=new Uint8Array([0,97,115,109])},7980:(e,t)=>{"use strict";function r(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;const o=n?n(t,i):t.toString();let a;Object.defineProperty(e,o,{configurable:!0,enumerable:!0,get:function(){if(void 0===a){a=r(t,i,this);try{Object.defineProperty(this,o,{value:a})}catch(e){}}return a}})}Object.defineProperty(t,"__esModule",{value:!0}),t.lazyMethod=r,t.lazyMethods=function(e,t,n,i){for(let o=0;o<t.length;o++)r(e,t[o],n,i,o);return e}},828:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.logger=function(e){const t=`${e.toUpperCase()}:`.padStart(16),[r,i]=function(e){const t=(d.hasProcess?n.xglobal.process:{}).env||{},r=parseInt(t.DEBUG_MAX||"-1",10);return[v((t.DEBUG||"").toLowerCase().split(","),e),isNaN(r)?-1:r]}(e.toLowerCase());return{debug:r?function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return b("debug",t,r,i)}:y,error:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return b("error",t,r)},log:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return b("log",t,r)},noop:y,warn:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return b("warn",t,r)}}},t.loggerFormat=p;var n=r(97099),i=r(4375),o=r(43254),a=r(99166),s=r(60508),u=r(69616),c=r(61955),f=r(23987),l=r(23118),d=r(56322);const h={debug:"log",error:"error",log:"log",warn:"warn"};function p(e){return Array.isArray(e)?e.map(p):(0,o.isBn)(e)?e.toString():(0,c.isU8a)(e)||(0,a.isBuffer)(e)?(0,f.u8aToHex)((0,l.u8aToU8a)(e)):function(e){if(e&&(0,u.isObject)(e)&&e.constructor===Object){const t={};for(const r of Object.keys(e))t[r]=p(e[r]);return t}return e}(e)}function b(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1;if(1===r.length&&(0,s.isFunction)(r[0])){const i=r[0]();return b(e,t,Array.isArray(i)?i:[i],n)}var o;console[h[e]]((0,i.formatDate)(new Date),t,...r.map(p).map((o=n,e=>{if(o<=0)return e;const t=`${e}`;return t.length<o?e:`${t.substring(0,o)} ...`})))}function y(){}function g(e,t){return!!e&&("*"===e||t===e||e.endsWith("*")&&t.startsWith(e.slice(0,-1)))}function m(e,t){return!!e&&e.startsWith("-")&&(t===e.slice(1)||e.endsWith("*")&&t.startsWith(e.slice(1,-1)))}function v(e,t){let r=!1;for(const n of e)g(n,t)?r=!0:m(n,t)&&(r=!1);return r}},88585:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.memoize=function(e){let{getInstanceId:t=i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r={},o=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];const s=(0,n.stringify)(o),u=t();return r[u]||(r[u]={}),void 0===r[u][s]&&(r[u][s]=e(...o)),r[u][s]};return o.unmemoize=function(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];const a=(0,n.stringify)(i),s=t();r[s]&&void 0!==r[s][a]&&delete r[s][a]},o};var n=r(29397);function i(){return"none"}},6866:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nextTick=function(e,t){setTimeout((()=>{Promise.resolve().then((()=>{e()})).catch((e=>{t?t(e):console.error(e)}))}),0)}},97479:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"numberToHex",{enumerable:!0,get:function(){return n.numberToHex}}),Object.defineProperty(t,"numberToU8a",{enumerable:!0,get:function(){return i.numberToU8a}});var n=r(33194),i=r(16967)},33194:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numberToHex=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;const r=(!e||Number.isNaN(e)?0:e).toString(16);return(0,n.hexFixLength)(r.length%2?`0${r}`:r,t,!0)};var n=r(86434)},16967:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numberToU8a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return(0,n.hexToU8a)((0,i.numberToHex)(e,t))};var n=r(79543),i=r(33194)},46528:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectClear=function(e){const t=Object.keys(e);for(let r=0;r<t.length;r++)delete e[t[r]];return e}},99506:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectCopy=function(e){return(0,n.objectSpread)({},e)};var n=r(3073)},97728:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectEntries=function(e){return Object.entries(e)}},66408:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"objectClear",{enumerable:!0,get:function(){return n.objectClear}}),Object.defineProperty(t,"objectCopy",{enumerable:!0,get:function(){return i.objectCopy}}),Object.defineProperty(t,"objectEntries",{enumerable:!0,get:function(){return o.objectEntries}}),Object.defineProperty(t,"objectKeys",{enumerable:!0,get:function(){return a.objectKeys}}),Object.defineProperty(t,"objectProperties",{enumerable:!0,get:function(){return s.objectProperties}}),Object.defineProperty(t,"objectProperty",{enumerable:!0,get:function(){return s.objectProperty}}),Object.defineProperty(t,"objectSpread",{enumerable:!0,get:function(){return u.objectSpread}}),Object.defineProperty(t,"objectValues",{enumerable:!0,get:function(){return c.objectValues}});var n=r(46528),i=r(99506),o=r(97728),a=r(94323),s=r(3699),u=r(3073),c=r(67028)},94323:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectKeys=function(e){return Object.keys(e)}},3699:(e,t)=>{"use strict";function r(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;const o=n?n(t,i):t;o in e||Object.defineProperty(e,o,{enumerable:!0,get:function(){return r(t,i,this)}})}Object.defineProperty(t,"__esModule",{value:!0}),t.objectProperties=function(e,t,n,i){for(let o=0;o<t.length;o++)r(e,t[o],n,i,o)},t.objectProperty=r},3073:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectSpread=function(e){for(let t=0;t<(arguments.length<=1?0:arguments.length-1);t++){const r=t+1<1||arguments.length<=t+1?void 0:arguments[t+1];if(r)if("function"==typeof r.entries)for(const[t,n]of r.entries())e[t]=n;else Object.assign(e,r)}return e}},67028:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectValues=function(e){return Object.values(e)}},20496:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/util",path:"/",type:"cjs",version:"10.4.1"}},20120:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.promisify=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return new Promise(((r,i)=>{t.apply(e,n.concat(((e,t)=>{e?i(e):r(t)})))}))}},44031:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringPascalCase=t.stringCamelCase=t.CC_TO_UP=t.CC_TO_LO=void 0;const r=new Array(256);t.CC_TO_UP=r;const n=new Array(256);t.CC_TO_LO=n;for(let e=0;e<r.length;e++)n[e]=String.fromCharCode(e).toLowerCase(),r[e]=String.fromCharCode(e).toUpperCase();function i(e){return e.slice(0,e.length-1).toLowerCase()+r[e.charCodeAt(e.length-1)]}function o(e){return t=>{const r=t.replace(/[-_., ]+/g," ").trim().split(" "),n=r.length;let o="";for(let t=0;t<n;t++){const n=r[t];o+=e(/^[\dA-Z]+$/.test(n)?n.toLowerCase():n.replace(/^[\dA-Z]{2,}[^a-z]/,i),t)}return o}}const a=o(((e,t)=>(t?r[e.charCodeAt(0)]:n[e.charCodeAt(0)])+e.slice(1)));t.stringCamelCase=a;const s=o((e=>r[e.charCodeAt(0)]+e.slice(1)));t.stringPascalCase=s},44462:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"stringCamelCase",{enumerable:!0,get:function(){return n.stringCamelCase}}),Object.defineProperty(t,"stringLowerFirst",{enumerable:!0,get:function(){return i.stringLowerFirst}}),Object.defineProperty(t,"stringPascalCase",{enumerable:!0,get:function(){return n.stringPascalCase}}),Object.defineProperty(t,"stringShorten",{enumerable:!0,get:function(){return o.stringShorten}}),Object.defineProperty(t,"stringToHex",{enumerable:!0,get:function(){return a.stringToHex}}),Object.defineProperty(t,"stringToU8a",{enumerable:!0,get:function(){return s.stringToU8a}}),Object.defineProperty(t,"stringUpperFirst",{enumerable:!0,get:function(){return i.stringUpperFirst}});var n=r(44031),i=r(2927),o=r(49747),a=r(67995),s=r(33276)},2927:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringUpperFirst=t.stringLowerFirst=void 0;var n=r(44031);function i(e){return t=>t?e[t.charCodeAt(0)]+t.slice(1):""}const o=i(n.CC_TO_LO);t.stringLowerFirst=o;const a=i(n.CC_TO_UP);t.stringUpperFirst=a},49747:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringShorten=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return e.length<=2+2*t?e.toString():`${e.substring(0,t)}…${e.slice(-t)}`}},67995:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringToHex=function(e){return(0,n.u8aToHex)((0,i.stringToU8a)(e))};var n=r(23987),i=r(33276)},33276:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringToU8a=function(e){return e?n.encode(e.toString()):new Uint8Array};const n=new(r(35608).TextEncoder)},29397:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=function(e,t){return JSON.stringify(e,i,t)};var n=r(4695);function i(e,t){return(0,n.isBigInt)(t)?t.toString():t}},35231:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aCmp=function(e,t){const r=(0,n.u8aToU8a)(e),i=(0,n.u8aToU8a)(t);let o=0;for(;;){const e=o>=r.length,t=o>=i.length;if(e&&t)return 0;if(e)return-1;if(t)return 1;if(r[o]!==i[o])return r[o]>i[o]?1:-1;o++}};var n=r(23118)},85016:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aConcat=function(){const e=new Array(arguments.length);let t=0;for(let r=0;r<arguments.length;r++)e[r]=(0,n.u8aToU8a)(r<0||arguments.length<=r?void 0:arguments[r]),t+=e[r].length;return i(e,t)},t.u8aConcatStrict=i;var n=r(23118);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=0;if(!t)for(let r=0;r<e.length;r++)t+=e[r].length;const n=new Uint8Array(t);for(let t=0;t<e.length;t++)n.set(e[t],r),r+=e[t].length;return n}},9944:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aEmpty=function(e){const t=0|e.length;for(let r=0;r<t;r++)if(0|e[r])return!1;return!0}},34600:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aEq=function(e,t){const r=(0,n.u8aToU8a)(e),i=(0,n.u8aToU8a)(t);if(r.length===i.length){const e=new DataView(r.buffer,r.byteOffset),t=new DataView(i.buffer,i.byteOffset),n=r.length%4|0,o=r.length-n|0;for(let r=0;r<o;r+=4)if(e.getUint32(r)!==t.getUint32(r))return!1;for(let e=o;e<r.length;e++)if(r[e]!==i[e])return!1;return!0}return!1};var n=r(23118)},7869:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aFixLength=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n=Math.ceil(t/8);if(-1===t||e.length===n)return e;if(e.length>n)return e.subarray(0,n);const i=new Uint8Array(n);return i.set(e,r?0:n-e.length),i}},68084:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"U8A_WRAP_ETHEREUM",{enumerable:!0,get:function(){return g.U8A_WRAP_ETHEREUM}}),Object.defineProperty(t,"U8A_WRAP_POSTFIX",{enumerable:!0,get:function(){return g.U8A_WRAP_POSTFIX}}),Object.defineProperty(t,"U8A_WRAP_PREFIX",{enumerable:!0,get:function(){return g.U8A_WRAP_PREFIX}}),Object.defineProperty(t,"u8aCmp",{enumerable:!0,get:function(){return n.u8aCmp}}),Object.defineProperty(t,"u8aConcat",{enumerable:!0,get:function(){return i.u8aConcat}}),Object.defineProperty(t,"u8aConcatStrict",{enumerable:!0,get:function(){return i.u8aConcatStrict}}),Object.defineProperty(t,"u8aEmpty",{enumerable:!0,get:function(){return o.u8aEmpty}}),Object.defineProperty(t,"u8aEq",{enumerable:!0,get:function(){return a.u8aEq}}),Object.defineProperty(t,"u8aFixLength",{enumerable:!0,get:function(){return s.u8aFixLength}}),Object.defineProperty(t,"u8aIsWrapped",{enumerable:!0,get:function(){return g.u8aIsWrapped}}),Object.defineProperty(t,"u8aSorted",{enumerable:!0,get:function(){return c.u8aSorted}}),Object.defineProperty(t,"u8aToBigInt",{enumerable:!0,get:function(){return f.u8aToBigInt}}),Object.defineProperty(t,"u8aToBn",{enumerable:!0,get:function(){return l.u8aToBn}}),Object.defineProperty(t,"u8aToBuffer",{enumerable:!0,get:function(){return d.u8aToBuffer}}),Object.defineProperty(t,"u8aToFloat",{enumerable:!0,get:function(){return u.u8aToFloat}}),Object.defineProperty(t,"u8aToHex",{enumerable:!0,get:function(){return h.u8aToHex}}),Object.defineProperty(t,"u8aToNumber",{enumerable:!0,get:function(){return p.u8aToNumber}}),Object.defineProperty(t,"u8aToString",{enumerable:!0,get:function(){return b.u8aToString}}),Object.defineProperty(t,"u8aToU8a",{enumerable:!0,get:function(){return y.u8aToU8a}}),Object.defineProperty(t,"u8aUnwrapBytes",{enumerable:!0,get:function(){return g.u8aUnwrapBytes}}),Object.defineProperty(t,"u8aWrapBytes",{enumerable:!0,get:function(){return g.u8aWrapBytes}});var n=r(35231),i=r(85016),o=r(9944),a=r(34600),s=r(7869),u=r(45089),c=r(55398),f=r(82789),l=r(20178),d=r(68104),h=r(23987),p=r(24046),b=r(60367),y=r(23118),g=r(513)},55398:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aSorted=function(e){return e.sort(n.u8aCmp)};var n=r(35231)},82789:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToBigInt=function(e){let{isLe:t=!0,isNegative:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||!e.length)return(0,n.BigInt)(0);const s=t?e:e.reverse(),u=new DataView(s.buffer,s.byteOffset),c=s.length%2;let f=(0,n.BigInt)(0);if(r){for(let e=s.length-2;e>=c;e-=2)f=f*a+(0,n.BigInt)(65535^u.getUint16(e,!0));c&&(f=f*o+(0,n.BigInt)(255^u.getUint8(0)))}else{for(let e=s.length-2;e>=c;e-=2)f=f*a+(0,n.BigInt)(u.getUint16(e,!0));c&&(f=f*o+(0,n.BigInt)(u.getUint8(0)))}return r?f*-i._1n-i._1n:f};var n=r(12214),i=r(4785);const o=(0,n.BigInt)(256),a=(0,n.BigInt)(65536)},20178:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToBn=function(e){let{isLe:t=!0,isNegative:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=e.length;if(i<=6){if(r){let r=0;if(t)switch(i){case 0:return new n.BN(0);case 1:r=255^e[0];break;case 2:r=e[0]+(e[1]<<8)^65535;break;case 3:r=e[0]+(e[1]<<8)+(e[2]<<16)^16777215;break;case 4:r=e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295;break;case 5:r=(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295)+4294967296*(255^e[4]);break;default:r=(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295)+4294967296*(e[4]+(e[5]<<8)^65535)}else for(let t=0;t<i;t++)r=256*r+(255^e[t]);return i?new n.BN(-1*r-1):new n.BN(0)}if(!t){let t=0;for(let r=0;r<i;r++)t=256*t+e[r];return new n.BN(t)}switch(i){case 0:return new n.BN(0);case 1:return new n.BN(e[0]);case 2:return new n.BN(e[0]+(e[1]<<8));case 3:return new n.BN(e[0]+(e[1]<<8)+(e[2]<<16));case 4:return new n.BN(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]);case 5:return new n.BN(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*(e[3]+(e[4]<<8)));default:return new n.BN(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*(e[3]+(e[4]<<8)+(e[5]<<16)))}}return r?new n.BN(e,t?"le":"be").fromTwos(8*e.length):new n.BN(e,t?"le":"be")};var n=r(89264)},68104:(e,t,r)=>{"use strict";var n=r(48764).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToBuffer=function(e){return n.from(e||[])}},45089:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToFloat=function(e){let{bitLength:t=32,isLe:r=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(32!==t&&64!==t)throw new Error("Invalid bitLength provided, expected 32 or 64");if(e.length<t/8)throw new Error(`Invalid input buffer provided, expected at least ${t/8} bytes, found ${e.length}`);const n=new DataView(e.buffer,e.byteOffset);return 32===t?n.getFloat32(0,r):n.getFloat64(0,r)}},23987:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToHex=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;const r=arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?"":"0x";if(!e||!e.length)return r;if(t>0){const n=Math.ceil(t/8);if(e.length>n)return`${i(e.subarray(0,n/2),r)}…${i(e.subarray(e.length-n/2),"")}`}return i(e,r)};const r=new Array(256),n=new Array(65536);for(let e=0;e<256;e++)r[e]=e.toString(16).padStart(2,"0");for(let e=0;e<256;e++){const t=e<<8;for(let i=0;i<256;i++)n[t|i]=r[e]+r[i]}function i(e,t){const i=e.length%2|0,o=e.length-i|0;for(let r=0;r<o;r+=2)t+=n[e[r]<<8|e[r+1]];return i&&(t+=r[0|e[o]]),t}},24046:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToNumber=function(e){let{isNegative:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=e.length;if(t){let t=0;switch(r){case 0:return 0;case 1:t=255^e[0];break;case 2:t=e[0]+(e[1]<<8)^65535;break;case 3:t=e[0]+(e[1]<<8)+(e[2]<<16)^16777215;break;case 4:t=e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295;break;case 5:t=(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295)+4294967296*(255^e[4]);break;case 6:t=(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295)+4294967296*(e[4]+(e[5]<<8)^65535);break;default:throw new Error("Value more than 48-bits cannot be reliably converted")}return-1*t-1}switch(r){case 0:return 0;case 1:return e[0];case 2:return e[0]+(e[1]<<8);case 3:return e[0]+(e[1]<<8)+(e[2]<<16);case 4:return e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3];case 5:return e[0]+(e[1]<<8)+(e[2]<<16)+16777216*(e[3]+(e[4]<<8));case 6:return e[0]+(e[1]<<8)+(e[2]<<16)+16777216*(e[3]+(e[4]<<8)+(e[5]<<16));default:throw new Error("Value more than 48-bits cannot be reliably converted")}}},60367:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToString=function(e){return e?n.decode(e):""};const n=new(r(61253).TextDecoder)("utf-8")},23118:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToU8a=function(e){return(0,a.isU8a)(e)?e:(0,o.isHex)(e)?(0,n.hexToU8a)(e):(0,i.isBuffer)(e)||Array.isArray(e)?new Uint8Array(e):(0,s.stringToU8a)(e)};var n=r(79543),i=r(99166),o=r(87166),a=r(61955),s=r(33276)},513:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.U8A_WRAP_PREFIX=t.U8A_WRAP_POSTFIX=t.U8A_WRAP_ETHEREUM=void 0,t.u8aIsWrapped=f,t.u8aUnwrapBytes=function(e){const t=(0,o.u8aToU8a)(e);return f(t,!1)?t.subarray(s.length,t.length-u.length):t},t.u8aWrapBytes=function(e){const t=(0,o.u8aToU8a)(e);return f(t,!0)?t:(0,n.u8aConcatStrict)([s,t,u])};var n=r(85016),i=r(34600),o=r(23118);const a=(0,o.u8aToU8a)("Ethereum Signed Message:\n");t.U8A_WRAP_ETHEREUM=a;const s=(0,o.u8aToU8a)("<Bytes>");t.U8A_WRAP_PREFIX=s;const u=(0,o.u8aToU8a)("</Bytes>");t.U8A_WRAP_POSTFIX=u;const c=s.length+u.length;function f(e,t){return e.length>=c&&(0,i.u8aEq)(e.subarray(0,s.length),s)&&(0,i.u8aEq)(e.slice(-u.length),u)||t&&e.length>=a.length&&(0,i.u8aEq)(e.subarray(0,a.length),a)}},2879:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.detectPackage=function(e,t){let{name:r,path:i,type:o,version:f}=e,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!r.startsWith("@polkadot"))throw new Error(`Invalid package descriptor ${r}`);const d=function(e){const t=n.xglobal;return t.__polkadotjs||(t.__polkadotjs={}),t.__polkadotjs[e]||(t.__polkadotjs[e]=[]),t.__polkadotjs[e]}(r);if(d.push({path:u(i,t),type:o,version:f}),1!==d.length)c(`${r} has multiple versions, ensure that there is only one installed.`,d,s);else{const e=l.filter((e=>e&&e.version!==f));e.length&&c(`${r} requires direct dependencies exactly matching version ${f}.`,e,a)}};var n=r(97099),i=r(60508);const o="Either remove and explicitly install matching versions or dedupe using your package manager.\nThe following conflicting packages were found:";function a(e,t){let{name:r}=t;return[e,r]}function s(e,t){let r,{path:n,type:i}=t;if(n&&n.length>=5){const e=n.indexOf("node_modules");r=-1===e?n:n.substring(e)}else r="<unknown>";return[`${`${i||""}`.padStart(3)} ${e}`,r]}function u(e,t){if(e)return e;if((0,i.isFunction)(t))try{return t()||""}catch(e){return""}return t||""}function c(e,t,r){console.warn(`${e}\n${o}\n${function(e,t){let r=0;for(let t=0;t<e.length;t++)r=Math.max(r,e[t].version.length);return e.map((e=>`\t${t(e.version.padEnd(r),e).join("\t")}`)).join("\n")}(t,r)}`)}},12214:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BigInt=void 0,Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return i.packageInfo}});var n=r(97099),i=r(99964);const o="function"==typeof n.xglobal.BigInt&&"function"==typeof n.xglobal.BigInt.asIntN?n.xglobal.BigInt:()=>Number.NaN;t.BigInt=o},99964:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-bigint",path:"/",type:"cjs",version:"10.4.1"}},81705:(e,t,r)=>{"use strict";var n=r(12214);(0,r(97099).exposeGlobal)("BigInt",n.BigInt)},97099:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exposeGlobal=function(e,t){void 0===i[e]&&(i[e]=t)},t.extractGlobal=function(e,t){return void 0===i[e]?t:i[e]},Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return n.packageInfo}}),t.xglobal=void 0;var n=r(28995);const i="undefined"!=typeof globalThis?globalThis:void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this");t.xglobal=i},28995:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-global",path:"/",type:"cjs",version:"10.4.1"}},13121:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRandomValues=function(e){return n.xglobal.crypto.getRandomValues(e)},Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return i.packageInfo}});var n=r(97099),i=r(15542)},15542:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-randomvalues",path:"/",type:"cjs",version:"10.4.1"}},61253:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextDecoder=void 0,Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return o.packageInfo}});var n=r(97099),i=r(54577),o=r(35078);const a=(0,n.extractGlobal)("TextDecoder",i.TextDecoder);t.TextDecoder=a},54577:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728));Object.defineProperty(t,"__esModule",{value:!0}),t.TextDecoder=void 0;let a=function(){function e(t){(0,i.default)(this,e)}return(0,o.default)(e,[{key:"decode",value:function(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t}}]),e}();t.TextDecoder=a},35078:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-textdecoder",path:"/",type:"cjs",version:"10.4.1"}},35608:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextEncoder=void 0,Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return o.packageInfo}});var n=r(97099),i=r(40904),o=r(6243);const a=(0,n.extractGlobal)("TextEncoder",i.TextEncoder);t.TextEncoder=a},40904:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728));Object.defineProperty(t,"__esModule",{value:!0}),t.TextEncoder=void 0;let a=function(){function e(){(0,i.default)(this,e)}return(0,o.default)(e,[{key:"encode",value:function(e){const t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}}]),e}();t.TextEncoder=a},6243:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-textencoder",path:"/",type:"cjs",version:"10.4.1"}},94476:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.knownGenesis=void 0,t.knownGenesis={acala:["0xfc41b9bd8ef8fe53d58c7ea67c794c7ec9a73daf05e6d54b14ff6342c99ba64c"],ajuna:["0xe358eb1d11b31255a286c12e44fe6780b7edb171d657905a97e39f71d9c6c3ee"],"aleph-node":["0x70255b4d28de0fc4e1a193d7e175ad1ccef431598211c55538f1018651a0344e"],astar:["0x9eb76c5184c4ab8679d2d5d819fdf90b9c001403e9e17da2e14b6d8aec4029c6"],basilisk:["0xa85cfb9b9fd4d622a5b28289a02347af987d8f73fa3108450e2b4a11c1ce5755"],bifrost:["0x262e1b2ad728475fd6fe88e62d34c200abe6fd693931ddad144059b1eb884e5b"],"bifrost-kusama":["0x9f28c6a68e0fc9646eff64935684f6eeeece527e37bbe1f213d22caa1d9d6bed"],centrifuge:["0xb3db41421702df9a7fcac62b53ffeac85f7853cc4e689e0b93aeb3db18c09d82","0x67dddf2673b69e5f875f6f25277495834398eafd67f492e09f3f3345e003d1b5"],composable:["0xdaab8df776eb52ec604a5df5d388bb62a050a0aaec4556a64265b9d42755552d"],darwinia:["0xe71578b37a7c799b0ab4ee87ffa6f059a6b98f71f06fb8c84a8d88013a548ad6"],"dock-mainnet":["0x6bfe24dca2a3be10f22212678ac13a6446ec764103c0f3471c71609eac384aae","0xf73467c6544aa68df2ee546b135f955c46b90fa627e9b5d7935f41061bb8a5a9"],edgeware:["0x742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b"],equilibrium:["0x6f1a800de3daff7f5e037ddf66ab22ce03ab91874debeddb1086f5f7dbd48925"],genshiro:["0x9b8cefc0eb5c568b527998bdd76c184e2b76ae561be76e4667072230217ea243"],hydradx:["0xafdc188f45c71dacbaa0b62e16a91f726c7b8699a9748cdf715459de6b7f366d","0xd2a620c27ec5cbc5621ff9a522689895074f7cca0d08e7134a7804e1a3ba86fc","0x10af6e84234477d84dc572bac0789813b254aa490767ed06fb9591191d1073f9","0x3d75507dd46301767e601265791da1d9cb47b6ebc94e87347b635e5bf58bd047","0x0ed32bfcab4a83517fac88f2aa7cbc2f88d3ab93be9a12b6188a036bf8a943c2"],"interlay-parachain":["0xbf88efe70e9e0e916416e8bed61f2b45717f517d7f3523e33c7b001e5ffcbc72"],karura:["0xbaf5aabe40646d11f0ee8abbdc64f4a4b7674925cba08e4a05ff9ebed6e2126b"],khala:["0xd43540ba6d3eb4897c28a77d48cb5b729fea37603cbbfc7a86a73b72adb3be8d"],kulupu:["0xf7a99d3cb92853d00d5275c971c132c074636256583fee53b3bbe60d7b8769ba"],kusama:["0xb0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe","0xe3777fa922cafbff200cadeaea1a76bd7898ad5b89f7848999058b50e715f636","0x3fd7b9eb6a00376e5be61f01abb429ffb0b104be05eaff4d458da48fcd425baf"],"nodle-para":["0x97da7ede98d7bad4e36b4d734b6055425a3be036da2a332ea5a7037656427a21"],origintrail:["0xe7e0962324a3b86c83404dbea483f25fb5dab4c224791c81b756cfc948006174"],parallel:["0xe61a41c53f5dcd0beb09df93b34402aada44cb05117b71059cce40a2723a4e97"],phala:["0x1bb969d85965e4bb5a651abbedf21a54b6b31a21f66b5401cc3f1e286268d736"],picasso:["0xe8e7f0f4c4f5a00720b4821dbfddefea7490bcf0b19009961cc46957984e2c1c"],polkadex:["0x3920bcb4960a1eef5580cd5367ff3f430eef052774f78468852f7b9cb39f8a3c"],polkadot:["0x91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3"],polymesh:["0x6fbd74e5e1d0a61d52ccfe9d4adaed16dd3a7caa37c6bc4d0c2fa12e8b2f4063"],rococo:["0x6408de7737c59c238890533af25896a2c20608d8b380bb01029acb392781063e","0xaaf2cd1b74b5f726895921259421b534124726263982522174147046b8827897","0x037f5f3c8e67b314062025fc886fcd6238ea25a4a9b45dce8d246815c9ebe770","0xc196f81260cf1686172b47a79cf002120735d7cb0eb1474e8adce56618456fff","0xf6e9983c37baf68846fedafe21e56718790e39fb1c582abc408b81bc7b208f9a","0x5fce687da39305dfe682b117f0820b319348e8bb37eb16cf34acbf6a202de9d9","0xe7c3d5edde7db964317cd9b51a3a059d7cd99f81bdbce14990047354334c9779","0x1611e1dbf0405379b861e2e27daa90f480b2e6d3682414a80835a52e8cb8a215","0x343442f12fa715489a8714e79a7b264ea88c0d5b8c66b684a7788a516032f6b9","0x78bcd530c6b3a068bc17473cf5d2aff9c287102bed9af3ae3c41c33b9d6c6147","0x47381ee0697153d64404fc578392c8fd5cba9073391908f46c888498415647bd","0x19c0e4fa8ab75f5ac7865e0b8f74ff91eb9a100d336f423cd013a8befba40299"],sora:["0x7e4e32d0feafd4f9c9414b0be86373f9a1efa904809b683453a9af6856d38ad5"],stafi:["0x290a4149f09ea0e402c74c1c7e96ae4239588577fe78932f94f5404c68243d80"],statemine:["0x48239ef607d7928874027a43a67689209727dfb3d3dc5e5b03a39bdc2eda771a"],statemint:["0x68d56f15f85d3136970ec16946040bc1752654e906147f7e43e9d539d7c3de2f"],subsocial:["0x0bd72c1c305172e1275278aaeb3f161e02eccb7a819e63f62d47bd53a28189f8"],unique:["0x84322d9cddbf35088f1e54e9a85c967a41a56a4f43445768125e61af166c7d31"],vtb:["0x286bc8414c7000ce1d6ee6a834e29a54c1784814b76243eb77ed0b2c5573c60f","0x7483b89572fb2bd687c7b9a93b242d0b237f9aba463aba07ec24503931038aaa"],westend:["0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e"],xxnetwork:["0x50dd5d206917bf10502c68fb4d18a59fc8aa31586f4e8856b493e43544aa82aa"]}},74897:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.knownIcon=void 0,t.knownIcon={centrifuge:"polkadot",kusama:"polkadot",polkadot:"polkadot",sora:"polkadot",statemine:"polkadot",statemint:"polkadot",westmint:"polkadot"}},45547:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"knownGenesis",{enumerable:!0,get:function(){return n.knownGenesis}}),Object.defineProperty(t,"knownIcon",{enumerable:!0,get:function(){return i.knownIcon}}),Object.defineProperty(t,"knownLedger",{enumerable:!0,get:function(){return o.knownLedger}}),Object.defineProperty(t,"knownTestnet",{enumerable:!0,get:function(){return a.knownTestnet}});var n=r(94476),i=r(74897),o=r(73712),a=r(97519)},73712:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.knownLedger=void 0,t.knownLedger={acala:787,ajuna:354,"aleph-node":643,astar:810,bifrost:788,"bifrost-kusama":788,centrifuge:747,composable:354,darwinia:354,"dock-mainnet":594,edgeware:523,equilibrium:99999997,genshiro:99999996,hydradx:354,"interlay-parachain":354,karura:686,khala:434,kusama:434,"nodle-para":1003,origintrail:354,parallel:354,phala:354,polkadex:799,polkadot:354,polymesh:595,sora:617,stafi:907,statemine:434,statemint:354,unique:354,vtb:694,xxnetwork:1955}},97519:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.knownTestnet=void 0,t.knownTestnet={"":!0,"cess-testnet":!0,"dock-testnet":!0,jupiter:!0,"mathchain-testnet":!0,p3dt:!0,subspace_testnet:!0,"zero-alphaville":!0}},90015:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={packageInfo:!0};Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return o.packageInfo}});var i=r(19113);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=r(87152)},19113:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.selectableNetworks=t.availableNetworks=t.allNetworks=void 0;var i=n(r(72314)),o=r(45547);const a=[0,2,42],s=["testnet"],u=i.default.map((function(e){const t=e.network||"",r=t.replace(/_/g,"-").split("-"),n=e;return n.slip44=o.knownLedger[t],n.hasLedgerSupport=!!n.slip44,n.genesisHash=o.knownGenesis[t]||[],n.icon=o.knownIcon[t]||"substrate",n.isTestnet=!!o.knownTestnet[t]||s.includes(r[r.length-1]),n.isIgnored=n.isTestnet||!(e.standardAccount&&e.decimals&&e.decimals.length&&e.symbols&&e.symbols.length)&&42!==e.prefix,n}));t.allNetworks=u;const c=u.filter((function(e){return!e.isIgnored&&!!e.network})).sort((function(e,t){const r=a.includes(e.prefix);return r===a.includes(t.prefix)?r?0:e.displayName.localeCompare(t.displayName):r?-1:1}));t.availableNetworks=c;const f=c.filter((function(e){let{genesisHash:t,prefix:r}=e;return!!t.length||42===r}));t.selectableNetworks=f},87152:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/networks",path:"/",type:"cjs",version:"10.2.1"}},69066:(e,t,r)=>{"use strict";r(37131)},37131:(e,t,r)=>{"use strict";r(82196)},39592:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return n.packageInfo}}),r(69066);var n=r(82897)},6195:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(57388),i=r(10686),o=[n.packageInfo,i.packageInfo];t.default=o},23426:(e,t,r)=>{"use strict";var n=r(64836),i=r(25348),o=n(r(6195)),a=r(82897);(0,i.detectPackage)(a.packageInfo,null,o.default)},34328:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(23426);var n=r(39592);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}))},82897:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/rpc-augment",path:"/",type:"cjs",version:"9.13.2"}},57388:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/rpc-core",path:"/",type:"cjs",version:"9.13.2"}},82196:()=>{},89899:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayChunk=function(e,t){const r=Math.ceil(e.length/t);if(1===r)return[e];const n=Array(r);for(let i=0;i<r;i++){const r=i*t;n[i]=e.slice(r,r+t)}return n}},25512:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayFilter=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.filter((e=>void 0!==e&&(t||null!==e)))}},78030:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayFlatten=function(e){if(0===e.length)return[];if(1===e.length)return e[0];let t=0;for(let r=0;r<e.length;r++)t+=e[r].length;const r=new Array(t);let n=-1;for(let t=0;t<e.length;t++){const i=e[t];for(let e=0;e<i.length;e++)r[++n]=i[e]}return r}},97589:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"arrayChunk",{enumerable:!0,get:function(){return n.arrayChunk}}),Object.defineProperty(t,"arrayFilter",{enumerable:!0,get:function(){return i.arrayFilter}}),Object.defineProperty(t,"arrayFlatten",{enumerable:!0,get:function(){return o.arrayFlatten}}),Object.defineProperty(t,"arrayRange",{enumerable:!0,get:function(){return a.arrayRange}}),Object.defineProperty(t,"arrayShuffle",{enumerable:!0,get:function(){return s.arrayShuffle}}),Object.defineProperty(t,"arrayUnzip",{enumerable:!0,get:function(){return u.arrayUnzip}}),Object.defineProperty(t,"arrayZip",{enumerable:!0,get:function(){return c.arrayZip}});var n=r(89899),i=r(25512),o=r(78030),a=r(80807),s=r(19216),u=r(62151),c=r(60083)},80807:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayRange=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e<=0)throw new Error("Expected non-zero, positive number as a range size");const r=new Array(e);for(let n=0;n<e;n++)r[n]=n+t;return r}},19216:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayShuffle=function(e){const t=e.slice();let r=t.length;if(1===r)return t;for(;0!==r;){const e=~~(Math.random()*r);r--,[t[r],t[e]]=[t[e],t[r]]}return t}},62151:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayUnzip=function(e){const t=new Array(e.length),r=new Array(e.length);for(let n=0;n<e.length;n++)[t[n],r[n]]=e[n];return[t,r]}},60083:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayZip=function(e,t){const r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=[e[n],t[n]];return r}},94338:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assert=i,t.assertReturn=function(e,t){return i(null!=e,t),e},t.assertUnreachable=function(e){throw new Error(`This codepath should be unreachable. Unhandled input: ${e}`)};var n=r(59383);function i(e,t){if(!e)throw new Error((0,n.isFunction)(t)?t():t)}},14219:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._sqrt2pow53n=t._9n=t._8n=t._7n=t._6n=t._5n=t._4n=t._3n=t._2pow53n=t._2n=t._1n=t._1Qn=t._1Mn=t._1Bn=t._10n=t._100n=t._1000n=t._0n=void 0;var n=r(1658);const i=(0,n.BigInt)(0);t._0n=i;const o=(0,n.BigInt)(1);t._1n=o;const a=(0,n.BigInt)(2);t._2n=a;const s=(0,n.BigInt)(3);t._3n=s;const u=(0,n.BigInt)(4);t._4n=u;const c=(0,n.BigInt)(5);t._5n=c;const f=(0,n.BigInt)(6);t._6n=f;const l=(0,n.BigInt)(7);t._7n=l;const d=(0,n.BigInt)(8);t._8n=d;const h=(0,n.BigInt)(9);t._9n=h;const p=(0,n.BigInt)(10);t._10n=p;const b=(0,n.BigInt)(100);t._100n=b;const y=(0,n.BigInt)(1e3);t._1000n=y;const g=(0,n.BigInt)(1e6);t._1Mn=g;const m=(0,n.BigInt)(1e9);t._1Bn=m;const v=m*m;t._1Qn=v;const w=(0,n.BigInt)(Number.MAX_SAFE_INTEGER);t._2pow53n=w;const _=(0,n.BigInt)(94906265);t._sqrt2pow53n=_},9813:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCmp=function(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(0===r.length)throw new Error("Must provide one or more arguments");let i=r[0];for(let t=1;t<r.length;t++)e(r[t],i)&&(i=r[t]);return i}}},25956:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={nSqrt:!0,nToBigInt:!0,nMax:!0,nMin:!0,nToHex:!0,nToU8a:!0};Object.defineProperty(t,"nMax",{enumerable:!0,get:function(){return s.nMax}}),Object.defineProperty(t,"nMin",{enumerable:!0,get:function(){return s.nMin}}),Object.defineProperty(t,"nSqrt",{enumerable:!0,get:function(){return o.nSqrt}}),Object.defineProperty(t,"nToBigInt",{enumerable:!0,get:function(){return a.nToBigInt}}),Object.defineProperty(t,"nToHex",{enumerable:!0,get:function(){return u.nToHex}}),Object.defineProperty(t,"nToU8a",{enumerable:!0,get:function(){return c.nToU8a}});var i=r(14219);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=r(61094),a=r(45939),s=r(87199),u=r(70669),c=r(58113)},87199:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nMin=t.nMax=void 0;var n=r(9813);const i=(0,n.createCmp)(((e,t)=>e>t));t.nMax=i;const o=(0,n.createCmp)(((e,t)=>e<t));t.nMin=o},61094:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nSqrt=function(e){const t=(0,o.nToBigInt)(e);if(t<i._0n)throw new Error("square root of negative numbers is not supported");if(t<=i._2pow53n)return(0,n.BigInt)(~~Math.sqrt(Number(t)));let r=i._sqrt2pow53n;for(;;){const e=t/r+r>>i._1n;if(r===e||r===e-i._1n)return r;r=e}};var n=r(1658),i=r(14219),o=r(45939)},45939:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nToBigInt=function(e){return"bigint"==typeof e?e:e?(0,a.isHex)(e)?(0,i.hexToBigInt)(e.toString()):(0,o.isBn)(e)?(0,n.BigInt)(e.toString()):(0,s.isToBigInt)(e)?e.toBigInt():(0,u.isToBn)(e)?(0,n.BigInt)(e.toBn().toString()):(0,n.BigInt)(e):(0,n.BigInt)(0)};var n=r(1658),i=r(54777),o=r(16042),a=r(2878),s=r(13303),u=r(62361)},70669:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nToHex=function(e){let{bitLength:t,isLe:r=!1,isNegative:o=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.u8aToHex)((0,i.nToU8a)(e||0,{bitLength:t,isLe:r,isNegative:o}))};var n=r(20243),i=r(58113)},58113:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nToU8a=function(e){let{bitLength:t=-1,isLe:r=!0,isNegative:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const u=(0,o.nToBigInt)(e);if(u===i._0n)return-1===t?new Uint8Array(1):new Uint8Array(Math.ceil((t||0)/8));const c=function(e,t,r){const n=[];for(r&&(e=(e+i._1n)*-i._1n);e!==i._0n;){const i=e%a,o=Number(r?i^s:i);t?n.push(o):n.unshift(o),e=(e-i)/a}return Uint8Array.from(n)}(u,r,n);if(-1===t)return c;const f=Math.ceil((t||0)/8),l=new Uint8Array(f);return n&&l.fill(255),l.set(c,r?0:f-c.length),l};var n=r(1658),i=r(14219),o=r(45939);const a=(0,n.BigInt)(256),s=(0,n.BigInt)(255)},63309:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BN",{enumerable:!0,get:function(){return i.default}});var i=n(r(13550))},56527:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BN_ZERO=t.BN_TWO=t.BN_THREE=t.BN_THOUSAND=t.BN_TEN=t.BN_SQRT_MAX_INTEGER=t.BN_SIX=t.BN_SEVEN=t.BN_QUINTILL=t.BN_ONE=t.BN_NINE=t.BN_MILLION=t.BN_MAX_INTEGER=t.BN_HUNDRED=t.BN_FOUR=t.BN_FIVE=t.BN_EIGHT=t.BN_BILLION=void 0;var n=r(63309);const i=new n.BN(0);t.BN_ZERO=i;const o=new n.BN(1);t.BN_ONE=o;const a=new n.BN(2);t.BN_TWO=a;const s=new n.BN(3);t.BN_THREE=s;const u=new n.BN(4);t.BN_FOUR=u;const c=new n.BN(5);t.BN_FIVE=c;const f=new n.BN(6);t.BN_SIX=f;const l=new n.BN(7);t.BN_SEVEN=l;const d=new n.BN(8);t.BN_EIGHT=d;const h=new n.BN(9);t.BN_NINE=h;const p=new n.BN(10);t.BN_TEN=p;const b=new n.BN(100);t.BN_HUNDRED=b;const y=new n.BN(1e3);t.BN_THOUSAND=y;const g=new n.BN(1e6);t.BN_MILLION=g;const m=new n.BN(1e9);t.BN_BILLION=m;const v=m.mul(m);t.BN_QUINTILL=v;const w=new n.BN(Number.MAX_SAFE_INTEGER);t.BN_MAX_INTEGER=w;const _=new n.BN(94906265);t.BN_SQRT_MAX_INTEGER=_},85031:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bnFromHex",{enumerable:!0,get:function(){return n.hexToBn}});var n=r(58274)},39597:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={BN:!0,bnFromHex:!0,bnMax:!0,bnMin:!0,bnSqrt:!0,bnToBn:!0,bnToHex:!0,bnToU8a:!0};Object.defineProperty(t,"BN",{enumerable:!0,get:function(){return o.BN}}),Object.defineProperty(t,"bnFromHex",{enumerable:!0,get:function(){return a.bnFromHex}}),Object.defineProperty(t,"bnMax",{enumerable:!0,get:function(){return s.bnMax}}),Object.defineProperty(t,"bnMin",{enumerable:!0,get:function(){return s.bnMin}}),Object.defineProperty(t,"bnSqrt",{enumerable:!0,get:function(){return u.bnSqrt}}),Object.defineProperty(t,"bnToBn",{enumerable:!0,get:function(){return c.bnToBn}}),Object.defineProperty(t,"bnToHex",{enumerable:!0,get:function(){return f.bnToHex}}),Object.defineProperty(t,"bnToU8a",{enumerable:!0,get:function(){return l.bnToU8a}});var i=r(56527);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=r(63309),a=r(85031),s=r(18039),u=r(47763),c=r(77737),f=r(43515),l=r(63182)},18039:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnMin=t.bnMax=void 0;var n=r(9813);const i=(0,n.createCmp)(((e,t)=>e.gt(t)));t.bnMax=i;const o=(0,n.createCmp)(((e,t)=>e.lt(t)));t.bnMin=o},47763:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnSqrt=function(e){const t=(0,o.bnToBn)(e);if(t.isNeg())throw new Error("square root of negative numbers is not supported");if(t.lte(i.BN_MAX_INTEGER))return new n.BN(~~Math.sqrt(t.toNumber()));let r=i.BN_SQRT_MAX_INTEGER.clone();for(;;){const e=t.div(r).iadd(r).ishrn(1);if(r.eq(e)||r.eq(e.sub(i.BN_ONE)))return r;r=e}};var n=r(63309),i=r(56527),o=r(77737)},77737:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnToBn=function(e){return e?u.BN.isBN(e)?e:(0,o.isHex)(e)?(0,n.hexToBn)(e.toString()):(0,i.isBigInt)(e)?new u.BN(e.toString()):(0,s.isToBn)(e)?e.toBn():(0,a.isToBigInt)(e)?new u.BN(e.toBigInt().toString()):new u.BN(e):new u.BN(0)};var n=r(58274),i=r(12083),o=r(2878),a=r(13303),s=r(62361),u=r(63309)},43515:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnToHex=function(e){let{bitLength:t=-1,isLe:r=!1,isNegative:o=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.u8aToHex)((0,i.bnToU8a)(e,{bitLength:t,isLe:r,isNegative:o}))};var n=r(20243),i=r(63182)},63182:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnToU8a=function(e){let{bitLength:t=-1,isLe:r=!0,isNegative:o=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;const a=(0,n.bnToBn)(e),s=-1===t?Math.ceil(a.bitLength()/8):Math.ceil((t||0)/8);if(!e)return-1===t?new Uint8Array(1):new Uint8Array(s);const u=new Uint8Array(s),c=o?a.toTwos(8*s):a;return u.set(c.toArray(r?"le":"be",s),0),u};var n=r(77737);const i={bitLength:-1,isLe:!0,isNegative:!1}},68717:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bufferToU8a",{enumerable:!0,get:function(){return n.bufferToU8a}});var n=r(83684)},83684:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bufferToU8a=function(e){return new Uint8Array(e||[])}},99466:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={packageInfo:!0};Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return i.packageInfo}});var i=r(68401),o=r(97589);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=r(94338);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var s=r(25956);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var u=r(39597);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var c=r(68717);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var f=r(23143);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))}));var l=r(18194);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var d=r(6835);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var h=r(20870);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))}));var p=r(44414);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===p[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}}))}));var b=r(38747);Object.keys(b).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===b[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return b[e]}}))}));var y=r(67053);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===y[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return y[e]}}))}));var g=r(1188);Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===g[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return g[e]}}))}));var m=r(36200);Object.keys(m).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===m[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return m[e]}}))}));var v=r(68856);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===v[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return v[e]}}))}));var w=r(51974);Object.keys(w).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===w[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return w[e]}}))}));var _=r(40506);Object.keys(_).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===_[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return _[e]}}))}));var x=r(53098);Object.keys(x).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===x[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return x[e]}}))}));var O=r(88785);Object.keys(O).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===O[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return O[e]}}))}));var k=r(14183);Object.keys(k).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===k[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return k[e]}}))}));var P=r(99100);Object.keys(P).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===P[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return P[e]}}))}));var S=r(20243);Object.keys(S).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===S[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return S[e]}}))}));var A=r(52426);Object.keys(A).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===A[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return A[e]}}))}))},91966:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactAddLength=function(e){return(0,n.u8aConcatStrict)([(0,i.compactToU8a)(e.length),e])};var n=r(20243),i=r(68007)},90284:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactFromU8a=function(e){const t=(0,i.u8aToU8a)(e);switch(3&t[0]){case 0:return[1,new n.BN(t[0]>>>2)];case 1:return[2,new n.BN(t[0]+(t[1]<<8)>>>2)];case 2:return[4,new n.BN(t[0]+(t[1]<<8)+(t[2]<<16)+16777216*t[3]>>>2)];default:{const e=5+(t[0]>>>2);switch(e){case 5:return[5,new n.BN(t[1]+(t[2]<<8)+(t[3]<<16)+16777216*t[4])];case 6:return[6,new n.BN(t[1]+(t[2]<<8)+(t[3]<<16)+16777216*(t[4]+(t[5]<<8)))];case 7:return[7,new n.BN(t[1]+(t[2]<<8)+(t[3]<<16)+16777216*(t[4]+(t[5]<<8)+(t[6]<<16)))];default:return[e,(0,i.u8aToBn)(t.subarray(1,e))]}}}},t.compactFromU8aLim=function(e){switch(3&e[0]){case 0:return[1,e[0]>>>2];case 1:return[2,e[0]+(e[1]<<8)>>>2];case 2:return[4,e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]>>>2];default:switch(5+(e[0]>>>2)){case 5:return[5,e[1]+(e[2]<<8)+(e[3]<<16)+16777216*e[4]];case 6:return[6,e[1]+(e[2]<<8)+(e[3]<<16)+16777216*(e[4]+(e[5]<<8))];case 7:return[7,e[1]+(e[2]<<8)+(e[3]<<16)+16777216*(e[4]+(e[5]<<8)+(e[6]<<16))];default:throw new Error("Compact input is > Number.MAX_SAFE_INTEGER")}}};var n=r(39597),i=r(20243)},23143:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"compactAddLength",{enumerable:!0,get:function(){return n.compactAddLength}}),Object.defineProperty(t,"compactFromU8a",{enumerable:!0,get:function(){return o.compactFromU8a}}),Object.defineProperty(t,"compactFromU8aLim",{enumerable:!0,get:function(){return o.compactFromU8aLim}}),Object.defineProperty(t,"compactStripLength",{enumerable:!0,get:function(){return i.compactStripLength}}),Object.defineProperty(t,"compactToU8a",{enumerable:!0,get:function(){return a.compactToU8a}});var n=r(91966),i=r(75953),o=r(90284),a=r(68007)},75953:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactStripLength=function(e){const[t,r]=(0,n.compactFromU8a)(e),i=t+r.toNumber();return[i,e.subarray(t,i)]};var n=r(90284)},68007:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactToU8a=function(e){const t=(0,n.bnToBn)(e);if(t.lte(o))return new Uint8Array([t.toNumber()<<2]);if(t.lte(a))return(0,n.bnToU8a)(t.shln(2).iadd(n.BN_ONE),u);if(t.lte(s))return(0,n.bnToU8a)(t.shln(2).iadd(n.BN_TWO),c);const r=(0,n.bnToU8a)(t);let f=r.length;for(;0===r[f-1];)f--;if(f<4)throw new Error("Invalid length, previous checks match anything less than 2^30");return(0,i.u8aConcatStrict)([new Uint8Array([3+(f-4<<2)]),r.subarray(0,f)])};var n=r(39597),i=r(20243);const o=n.BN_TWO.pow(new n.BN(6)).isub(n.BN_ONE),a=n.BN_TWO.pow(new n.BN(14)).isub(n.BN_ONE),s=n.BN_TWO.pow(new n.BN(30)).isub(n.BN_ONE),u={bitLength:16},c={bitLength:32}},8834:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(936),i=r(86929),o=[n.packageInfo,i.packageInfo];t.default=o},87967:(e,t,r)=>{"use strict";var n=r(64836)(r(8834)),i=r(68401);(0,r(52426).detectPackage)(i.packageInfo,null,n.default)},18194:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extractTime=function e(t){return t?t<1e3?a({milliseconds:t},o):function(t){const o=t/1e3;if(o<60){const r=~~o;return a({seconds:r},e(t-1e3*r))}const s=o/60;if(s<60){const n=~~s;return a({minutes:n},e(t-n*r))}const u=s/60;if(u<24){const r=~~u;return a({hours:r},e(t-r*n))}const c=~~(u/24);return a({days:c},e(t-c*i))}(t):o};const r=6e4,n=60*r,i=24*n,o={days:0,hours:0,milliseconds:0,minutes:0,seconds:0};function a(e,t){return{days:(e.days||0)+t.days,hours:(e.hours||0)+t.hours,milliseconds:(e.milliseconds||0)+t.milliseconds,minutes:(e.minutes||0)+t.minutes,seconds:(e.seconds||0)+t.seconds}}},6835:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"floatToU8a",{enumerable:!0,get:function(){return n.floatToU8a}});var n=r(57124)},57124:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.floatToU8a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,{bitLength:t=32,isLe:r=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(32!==t&&64!==t)throw new Error("Invalid bitLength provided, expected 32 or 64");const n=new Uint8Array(t/8),i=new DataView(n.buffer,n.byteOffset);return 32===t?i.setFloat32(0,Number(e),r):i.setFloat64(0,Number(e),r),n}},47626:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatBalance=void 0;var n=r(77737),i=r(50745),o=r(43498),a=r(48418),s=r(78636);const u=s.SI[s.SI_MID].text;let c=0,f=u;const l=function(e){let{decimals:t=c,forceUnit:r,withAll:u=!1,withSi:f=!0,withSiFull:l=!1,withUnit:d=!0,withZero:h=!0,locale:p="en"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},b=(0,n.bnToBn)(e).toString();if(0===b.length||"0"===b)return"0";let y="";b[0].startsWith("-")&&(y="-",b=b.substring(1));const g=(0,s.calcSi)(b,t,r),m=b.length-(t+g.power),v=m<=0?"0":b.substring(0,m);let w=b.padStart(m<0?t:1,"0").substring(m<0?0:m).padEnd(u?Math.max(t,4):4,"0").substring(0,u?Math.max(4,t+g.power):4);if(!h){let e=w.length-1;do{"0"===w[e]&&e--}while("0"===w[e]);w=w.substring(0,e+1)}const _=(0,i.isBoolean)(d)?s.SI[s.SI_MID].text:d,x=f||l?"-"===g.value?d?` ${_}`:"":` ${l?`${g.text}${d?" ":""}`:g.value}${d?_:""}`:"",{decimal:O,thousand:k}=(0,a.getSeparator)(p);return`${y}${(0,o.formatDecimal)(v,k)}${w&&`${O}${w}`}${x}`};t.formatBalance=l,l.calcSi=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;return(0,s.calcSi)(e,t)},l.findSi=s.findSi,l.getDefaults=()=>({decimals:c,unit:f}),l.getOptions=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return s.SI.filter((t=>{let{power:r}=t;return!(r<0)||e+r>=0}))},l.setDefaults=e=>{let{decimals:t,unit:r}=e;c=void 0===t?c:Array.isArray(t)?t[0]:t,f=void 0===r?f:Array.isArray(r)?r[0]:r,s.SI[s.SI_MID].text=f}},91978:(e,t)=>{"use strict";function r(e){return e.toString().padStart(2,"0")}Object.defineProperty(t,"__esModule",{value:!0}),t.formatDate=function(e){return`${e.getFullYear().toString()}-${r(e.getMonth()+1)}-${r(e.getDate())} ${r(e.getHours())}:${r(e.getMinutes())}:${r(e.getSeconds())}`}},43498:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatDecimal=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";const n=e[0].startsWith("-"),i=n?e.substring(1).match(r):e.match(r);return i?`${n?"-":""}${i.join(t)}`:e};const r=new RegExp("(\\d+?)(?=(\\d{3})+(?!\\d)|$)","g")},434:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatElapsed=function(e,t){const r=e&&e.getTime()||0,i=t instanceof Date?t.getTime():(0,n.bnToBn)(t).toNumber();return r&&i?(o=Math.max(Math.abs(r-i),0)/1e3)<15?`${o.toFixed(1)}s`:o<60?(0|o)+"s":o<3600?(o/60|0)+"m":(o/3600|0)+"h":"0.0s";var o};var n=r(77737)},38398:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatNumber=function(e){let{locale:t="en"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{thousand:r}=(0,o.getSeparator)(t);return(0,i.formatDecimal)((0,n.bnToBn)(e).toString(),r)};var n=r(77737),i=r(43498),o=r(48418)},48418:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSeparator=function(e){return{decimal:.1.toLocaleString(e).substring(1,2),thousand:1e3.toLocaleString(e).substring(1,2)}}},20870:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"calcSi",{enumerable:!0,get:function(){return u.calcSi}}),Object.defineProperty(t,"findSi",{enumerable:!0,get:function(){return u.findSi}}),Object.defineProperty(t,"formatBalance",{enumerable:!0,get:function(){return n.formatBalance}}),Object.defineProperty(t,"formatDate",{enumerable:!0,get:function(){return i.formatDate}}),Object.defineProperty(t,"formatDecimal",{enumerable:!0,get:function(){return o.formatDecimal}}),Object.defineProperty(t,"formatElapsed",{enumerable:!0,get:function(){return a.formatElapsed}}),Object.defineProperty(t,"formatNumber",{enumerable:!0,get:function(){return s.formatNumber}});var n=r(47626),i=r(91978),o=r(43498),a=r(434),s=r(38398),u=r(78636)},78636:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SI_MID=t.SI=void 0,t.calcSi=function(e,t,o){if(o)return i(o);const a=r-1+Math.ceil((e.length-t)/3);return n[a]||n[a<0?0:n.length-1]},t.findSi=i;const r=8;t.SI_MID=r;const n=[{power:-24,text:"yocto",value:"y"},{power:-21,text:"zepto",value:"z"},{power:-18,text:"atto",value:"a"},{power:-15,text:"femto",value:"f"},{power:-12,text:"pico",value:"p"},{power:-9,text:"nano",value:"n"},{power:-6,text:"micro",value:"µ"},{power:-3,text:"milli",value:"m"},{power:0,text:"Unit",value:"-"},{power:3,text:"Kilo",value:"k"},{power:6,text:"Mill",value:"M"},{power:9,text:"Bill",value:"B"},{power:12,text:"Tril",value:"T"},{power:15,text:"Peta",value:"P"},{power:18,text:"Exa",value:"E"},{power:21,text:"Zeta",value:"Z"},{power:24,text:"Yotta",value:"Y"}];function i(e){for(let t=0;t<n.length;t++)if(n[t].value===e)return n[t];return n[r]}t.SI=n},44414:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasWasm=t.hasProcess=t.hasEsm=t.hasDirname=t.hasCjs=t.hasBuffer=t.hasBigInt=void 0;var n=r(1658),i=r(99164);const o="function"==typeof n.BigInt&&"function"==typeof n.BigInt.asIntN;t.hasBigInt=o,t.hasCjs=!0,t.hasDirname=!0,t.hasEsm=!1;const a="undefined"!=typeof WebAssembly;t.hasWasm=a;const s="function"==typeof i.xglobal.Buffer&&"function"==typeof i.xglobal.Buffer.isBuffer;t.hasBuffer=s;const u="object"==typeof i.xglobal.process;t.hasProcess=u},7760:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexAddPrefix=function(e){return e&&(0,n.hexHasPrefix)(e)?e:`0x${e&&e.length%2==1?"0":""}${e||""}`};var n=r(80026)},74579:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexFixLength=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=Math.ceil(t/4),a=o+2;return(0,n.hexAddPrefix)(-1===t||e.length===a||!r&&e.length<a?(0,i.hexStripPrefix)(e):e.length>a?(0,i.hexStripPrefix)(e).slice(-1*o):`${"0".repeat(o)}${(0,i.hexStripPrefix)(e)}`.slice(-1*o))};var n=r(7760),i=r(43166)},80026:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexHasPrefix=function(e){return!!e&&(0,n.isHex)(e,-1)};var n=r(2878)},38747:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hexAddPrefix",{enumerable:!0,get:function(){return n.hexAddPrefix}}),Object.defineProperty(t,"hexFixLength",{enumerable:!0,get:function(){return i.hexFixLength}}),Object.defineProperty(t,"hexHasPrefix",{enumerable:!0,get:function(){return o.hexHasPrefix}}),Object.defineProperty(t,"hexStripPrefix",{enumerable:!0,get:function(){return a.hexStripPrefix}}),Object.defineProperty(t,"hexToBigInt",{enumerable:!0,get:function(){return s.hexToBigInt}}),Object.defineProperty(t,"hexToBn",{enumerable:!0,get:function(){return u.hexToBn}}),Object.defineProperty(t,"hexToNumber",{enumerable:!0,get:function(){return c.hexToNumber}}),Object.defineProperty(t,"hexToString",{enumerable:!0,get:function(){return f.hexToString}}),Object.defineProperty(t,"hexToU8a",{enumerable:!0,get:function(){return l.hexToU8a}});var n=r(7760),i=r(74579),o=r(80026),a=r(43166),s=r(54777),u=r(58274),c=r(6357),f=r(48699),l=r(85005)},43166:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexStripPrefix=function(e){if(!e||"0x"===e)return"";if(n.REGEX_HEX_PREFIXED.test(e))return e.substring(2);if(n.REGEX_HEX_NOPREFIX.test(e))return e;throw new Error(`Expected hex value to convert, found '${e}'`)};var n=r(2878)},54777:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToBigInt=function(e){let{isLe:t=!1,isNegative:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e&&"0x"!==e?(0,i.u8aToBigInt)((0,o.hexToU8a)(e),{isLe:t,isNegative:r}):(0,n.BigInt)(0)};var n=r(1658),i=r(45019),o=r(85005)},58274:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToBn=function(e){let{isLe:t=!1,isNegative:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||"0x"===e)return new n.BN(0);const o=(0,i.hexStripPrefix)(e),a=new n.BN(o,16,t?"le":"be");return r?a.fromTwos(4*o.length):a};var n=r(63309),i=r(43166)},6357:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToNumber=function(e){return e?(0,n.hexToBn)(e).toNumber():NaN};var n=r(58274)},48699:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToString=function(e){return(0,n.u8aToString)((0,i.hexToU8a)(e))};var n=r(58243),i=r(85005)},85005:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToU8a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(!e)return new Uint8Array;let r=e.startsWith("0x")?2:0;const n=Math.ceil((e.length-r)/2),o=Math.ceil(-1===t?n:t/8),a=new Uint8Array(o);for(let t=o>n?o-n:0;t<o;t++,r+=2)a[t]=i[e.charCodeAt(r)<<8|e.charCodeAt(r+1)];return a};const r="0123456789abcdef",n=new Uint8Array(256),i=new Uint8Array(65536);for(let e=0;e<16;e++)n[0|r[e].charCodeAt(0)]=0|e,e>9&&(n[0|r[e].toUpperCase().charCodeAt(0)]=0|e);for(let e=0;e<256;e++){const t=e<<8;for(let r=0;r<256;r++)i[t|r]=n[e]<<4|n[r]}},25348:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(87967);var n=r(99466);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}))},22148:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isArray=function(e){return Array.isArray(e)}},71410:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAscii=function(e){return(0,o.isString)(e)?(0,i.isHex)(e)?a((0,n.u8aToU8a)(e)):function(e){const t=0|e.length;for(let r=0;r<t;r++){const t=e.charCodeAt(r);if(t<32||t>126)return!1}return!0}(e):!!e&&a(e)};var n=r(77906),i=r(2878),o=r(78330);function a(e){const t=0|e.length;for(let r=0;r<t;r++){const t=0|e[r];if(t<32||t>126)return!1}return!0}},12083:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBigInt=function(e){return"bigint"==typeof e}},16042:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBn=function(e){return n.BN.isBN(e)};var n=r(63309)},50745:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBoolean=function(e){return"boolean"==typeof e}},11927:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBuffer=function(e){return i.hasBuffer&&(0,o.isFunction)(e&&e.readDoubleLE)&&n.xglobal.Buffer.isBuffer(e)};var n=r(99164),i=r(44414),o=r(59383)},12605:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isChildClass=function(e,t){return!(!(0,n.isClass)(t)||!(0,n.isClass)(e))&&(e===t||e.isPrototypeOf(t))};var n=r(13327)},13327:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isClass=void 0;const n=(0,r(13533).isOnFunction)("isPrototypeOf","hasOwnProperty");t.isClass=n},43494:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isCodec=function(e){return i(e)&&o(e.registry)};var n=r(13533);const i=(0,n.isOnObject)("toHex","toU8a"),o=(0,n.isOnObject)("get")},80721:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isCompact=void 0;const n=(0,r(13533).isOnObject)("toBigInt","toBn","toNumber","unwrap");t.isCompact=n},24490:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isError=function(e){return(e&&e.constructor)===Error||e instanceof Error}},59383:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFunction=function(e){return"function"==typeof e}},13533:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isOn=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return e=>((0,i.isObject)(e)||(0,n.isFunction)(e))&&t.every((t=>(0,n.isFunction)(e[t])))},t.isOnFunction=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return e=>(0,n.isFunction)(e)&&t.every((t=>(0,n.isFunction)(e[t])))},t.isOnObject=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return e=>(0,i.isObject)(e)&&t.every((t=>(0,n.isFunction)(e[t])))};var n=r(59383),i=r(77733)},2878:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.REGEX_HEX_PREFIXED=t.REGEX_HEX_NOPREFIX=void 0,t.isHex=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=arguments.length>2?arguments[2]:void 0;return"string"==typeof e&&("0x"===e||r.test(e))&&(-1===t?n||e.length%2==0:e.length===2+Math.ceil(t/4))};const r=/^0x[\da-fA-F]+$/;t.REGEX_HEX_PREFIXED=r,t.REGEX_HEX_NOPREFIX=/^[\da-fA-F]+$/},67053:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isArray",{enumerable:!0,get:function(){return n.isArray}}),Object.defineProperty(t,"isAscii",{enumerable:!0,get:function(){return i.isAscii}}),Object.defineProperty(t,"isBigInt",{enumerable:!0,get:function(){return o.isBigInt}}),Object.defineProperty(t,"isBn",{enumerable:!0,get:function(){return a.isBn}}),Object.defineProperty(t,"isBoolean",{enumerable:!0,get:function(){return u.isBoolean}}),Object.defineProperty(t,"isBuffer",{enumerable:!0,get:function(){return s.isBuffer}}),Object.defineProperty(t,"isChildClass",{enumerable:!0,get:function(){return c.isChildClass}}),Object.defineProperty(t,"isClass",{enumerable:!0,get:function(){return f.isClass}}),Object.defineProperty(t,"isCodec",{enumerable:!0,get:function(){return l.isCodec}}),Object.defineProperty(t,"isCompact",{enumerable:!0,get:function(){return d.isCompact}}),Object.defineProperty(t,"isError",{enumerable:!0,get:function(){return h.isError}}),Object.defineProperty(t,"isFunction",{enumerable:!0,get:function(){return p.isFunction}}),Object.defineProperty(t,"isHex",{enumerable:!0,get:function(){return b.isHex}}),Object.defineProperty(t,"isInstanceOf",{enumerable:!0,get:function(){return y.isInstanceOf}}),Object.defineProperty(t,"isIp",{enumerable:!0,get:function(){return g.isIp}}),Object.defineProperty(t,"isJsonObject",{enumerable:!0,get:function(){return m.isJsonObject}}),Object.defineProperty(t,"isNull",{enumerable:!0,get:function(){return v.isNull}}),Object.defineProperty(t,"isNumber",{enumerable:!0,get:function(){return w.isNumber}}),Object.defineProperty(t,"isObject",{enumerable:!0,get:function(){return _.isObject}}),Object.defineProperty(t,"isObservable",{enumerable:!0,get:function(){return x.isObservable}}),Object.defineProperty(t,"isPromise",{enumerable:!0,get:function(){return O.isPromise}}),Object.defineProperty(t,"isString",{enumerable:!0,get:function(){return k.isString}}),Object.defineProperty(t,"isTestChain",{enumerable:!0,get:function(){return P.isTestChain}}),Object.defineProperty(t,"isToBigInt",{enumerable:!0,get:function(){return S.isToBigInt}}),Object.defineProperty(t,"isToBn",{enumerable:!0,get:function(){return A.isToBn}}),Object.defineProperty(t,"isU8a",{enumerable:!0,get:function(){return E.isU8a}}),Object.defineProperty(t,"isUndefined",{enumerable:!0,get:function(){return M.isUndefined}}),Object.defineProperty(t,"isUtf8",{enumerable:!0,get:function(){return j.isUtf8}}),Object.defineProperty(t,"isWasm",{enumerable:!0,get:function(){return T.isWasm}});var n=r(22148),i=r(71410),o=r(12083),a=r(16042),s=r(11927),u=r(50745),c=r(12605),f=r(13327),l=r(43494),d=r(80721),h=r(24490),p=r(59383),b=r(2878),y=r(55829),g=r(51106),m=r(29932),v=r(13411),w=r(22487),_=r(77733),x=r(18689),O=r(96794),k=r(78330),P=r(46307),S=r(13303),A=r(62361),E=r(21376),M=r(94240),j=r(51038),T=r(36441)},55829:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInstanceOf=function(e,t){return(e&&e.constructor)===t||e instanceof t}},51106:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIp=function(e,t){switch(t){case"v4":return a.test(e);case"v6":return s.test(e);default:return o.test(e)}};const r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",i=`\n(?:\n(?:${n}:){7}(?:${n}|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:${n}:){6}(?:${r}|:${n}|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:${n}:){5}(?::${r}|(?::${n}){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:${n}:){4}(?:(?::${n}){0,1}:${r}|(?::${n}){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:${n}:){3}(?:(?::${n}){0,2}:${r}|(?::${n}){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:${n}:){2}(?:(?::${n}){0,3}:${r}|(?::${n}){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:${n}:){1}(?:(?::${n}){0,4}:${r}|(?::${n}){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::${n}){0,5}:${r}|(?::${n}){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n`.replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),o=new RegExp(`(?:^${r}$)|(?:^${i}$)`),a=new RegExp(`^${r}$`),s=new RegExp(`^${i}$`)},29932:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isJsonObject=function(e){const t="string"!=typeof e?(0,n.stringify)(e):e;try{const e=JSON.parse(t);return"object"==typeof e&&null!==e}catch(e){return!1}};var n=r(99100)},13411:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNull=function(e){return null===e}},22487:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNumber=function(e){return"number"==typeof e}},77733:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObject=function(e){return!!e&&"object"==typeof e}},18689:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObservable=void 0;const n=(0,r(13533).isOn)("next");t.isObservable=n},96794:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPromise=void 0;const n=(0,r(13533).isOnObject)("catch","then");t.isPromise=n},78330:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isString=function(e){return"string"==typeof e||e instanceof String}},46307:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isTestChain=function(e){return!!e&&!!r.test(e.toString())};const r=/(Development|Local Testnet)$/},13303:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isToBigInt=void 0;const n=(0,r(13533).isOn)("toBigInt");t.isToBigInt=n},62361:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isToBn=void 0;const n=(0,r(13533).isOn)("toBn");t.isToBn=n},21376:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isU8a=function(e){return(e&&e.constructor)===Uint8Array||e instanceof Uint8Array}},94240:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isUndefined=function(e){return void 0===e}},51038:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isUtf8=function(e){if(!e)return(0,i.isString)(e);const t=(0,n.u8aToU8a)(e),r=t.length;let o=0;for(;o<r;)if(t[o]<=127)o+=1;else if(t[o]>=194&&t[o]<=223){if(!(o+1<r))return!1;if(t[o+1]<128||t[o+1]>191)return!1;o+=2}else if(224===t[o]){if(!(o+2<r))return!1;if(t[o+1]<160||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;o+=3}else if(t[o]>=225&&t[o]<=236){if(!(o+2<r))return!1;if(t[o+1]<128||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;o+=3}else if(237===t[o]){if(!(o+2<r))return!1;if(t[o+1]<128||t[o+1]>159)return!1;if(t[o+2]<128||t[o+2]>191)return!1;o+=3}else if(t[o]>=238&&t[o]<=239){if(!(o+2<r))return!1;if(t[o+1]<128||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;o+=3}else if(240===t[o]){if(!(o+3<r))return!1;if(t[o+1]<144||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;if(t[o+3]<128||t[o+3]>191)return!1;o+=4}else if(t[o]>=241&&t[o]<=243){if(!(o+3<r))return!1;if(t[o+1]<128||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;if(t[o+3]<128||t[o+3]>191)return!1;o+=4}else{if(244!==t[o])return!1;if(!(o+3<r))return!1;if(t[o+1]<128||t[o+1]>143)return!1;if(t[o+2]<128||t[o+2]>191)return!1;if(t[o+3]<128||t[o+3]>191)return!1;o+=4}return!0};var n=r(77906),i=r(78330)},36441:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isWasm=function(e){return(0,i.isU8a)(e)&&(0,n.u8aEq)(e.subarray(0,4),o)};var n=r(86006),i=r(21376);const o=new Uint8Array([0,97,115,109])},1188:(e,t)=>{"use strict";function r(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;const o=n?n(t,i):t.toString();let a;Object.defineProperty(e,o,{configurable:!0,enumerable:!0,get:function(){if(void 0===a){a=r(t,i,this);try{Object.defineProperty(this,o,{value:a})}catch(e){}}return a}})}Object.defineProperty(t,"__esModule",{value:!0}),t.lazyMethod=r,t.lazyMethods=function(e,t,n,i){for(let o=0;o<t.length;o++)r(e,t[o],n,i,o);return e}},36200:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.logger=function(e){const t=`${e.toUpperCase()}:`.padStart(16),[r,i]=function(e){const t=(d.hasProcess?n.xglobal.process:{}).env||{},r=parseInt(t.DEBUG_MAX||"-1",10);return[v((t.DEBUG||"").toLowerCase().split(","),e),isNaN(r)?-1:r]}(e.toLowerCase());return{debug:r?function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return b("debug",t,r,i)}:y,error:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return b("error",t,r)},log:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return b("log",t,r)},noop:y,warn:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return b("warn",t,r)}}},t.loggerFormat=p;var n=r(99164),i=r(91978),o=r(16042),a=r(11927),s=r(59383),u=r(77733),c=r(21376),f=r(17718),l=r(77906),d=r(44414);const h={debug:"log",error:"error",log:"log",warn:"warn"};function p(e){return Array.isArray(e)?e.map(p):(0,o.isBn)(e)?e.toString():(0,c.isU8a)(e)||(0,a.isBuffer)(e)?(0,f.u8aToHex)((0,l.u8aToU8a)(e)):function(e){if(e&&(0,u.isObject)(e)&&e.constructor===Object){const t={};for(const r of Object.keys(e))t[r]=p(e[r]);return t}return e}(e)}function b(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1;if(1===r.length&&(0,s.isFunction)(r[0])){const i=r[0]();return b(e,t,Array.isArray(i)?i:[i],n)}var o;console[h[e]]((0,i.formatDate)(new Date),t,...r.map(p).map((o=n,e=>{if(o<=0)return e;const t=`${e}`;return t.length<o?e:`${t.substring(0,o)} ...`})))}function y(){}function g(e,t){return!!e&&("*"===e||t===e||e.endsWith("*")&&t.startsWith(e.slice(0,-1)))}function m(e,t){return!!e&&e.startsWith("-")&&(t===e.slice(1)||e.endsWith("*")&&t.startsWith(e.slice(1,-1)))}function v(e,t){let r=!1;for(const n of e)g(n,t)?r=!0:m(n,t)&&(r=!1);return r}},68856:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.memoize=function(e){let{getInstanceId:t=i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r={},o=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];const s=(0,n.stringify)(o),u=t();return r[u]||(r[u]={}),void 0===r[u][s]&&(r[u][s]=e(...o)),r[u][s]};return o.unmemoize=function(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];const a=(0,n.stringify)(i),s=t();r[s]&&void 0!==r[s][a]&&delete r[s][a]},o};var n=r(99100);function i(){return"none"}},51974:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nextTick=function(e,t){setTimeout((()=>{Promise.resolve().then((()=>{e()})).catch((e=>{t?t(e):console.error(e)}))}),0)}},40506:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"numberToHex",{enumerable:!0,get:function(){return n.numberToHex}}),Object.defineProperty(t,"numberToU8a",{enumerable:!0,get:function(){return i.numberToU8a}});var n=r(1363),i=r(89870)},1363:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numberToHex=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;const r=(!e||Number.isNaN(e)?0:e).toString(16);return(0,n.hexFixLength)(r.length%2?`0${r}`:r,t,!0)};var n=r(74579)},89870:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numberToU8a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return(0,n.hexToU8a)((0,i.numberToHex)(e,t))};var n=r(85005),i=r(1363)},9345:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectClear=function(e){const t=Object.keys(e);for(let r=0;r<t.length;r++)delete e[t[r]];return e}},42134:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectCopy=function(e){return(0,n.objectSpread)({},e)};var n=r(73409)},3350:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectEntries=function(e){return Object.entries(e)}},53098:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"objectClear",{enumerable:!0,get:function(){return n.objectClear}}),Object.defineProperty(t,"objectCopy",{enumerable:!0,get:function(){return i.objectCopy}}),Object.defineProperty(t,"objectEntries",{enumerable:!0,get:function(){return o.objectEntries}}),Object.defineProperty(t,"objectKeys",{enumerable:!0,get:function(){return a.objectKeys}}),Object.defineProperty(t,"objectProperties",{enumerable:!0,get:function(){return s.objectProperties}}),Object.defineProperty(t,"objectProperty",{enumerable:!0,get:function(){return s.objectProperty}}),Object.defineProperty(t,"objectSpread",{enumerable:!0,get:function(){return u.objectSpread}}),Object.defineProperty(t,"objectValues",{enumerable:!0,get:function(){return c.objectValues}});var n=r(9345),i=r(42134),o=r(3350),a=r(86192),s=r(52026),u=r(73409),c=r(16657)},86192:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectKeys=function(e){return Object.keys(e)}},52026:(e,t)=>{"use strict";function r(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;const o=n?n(t,i):t;o in e||Object.defineProperty(e,o,{enumerable:!0,get:function(){return r(t,i,this)}})}Object.defineProperty(t,"__esModule",{value:!0}),t.objectProperties=function(e,t,n,i){for(let o=0;o<t.length;o++)r(e,t[o],n,i,o)},t.objectProperty=r},73409:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectSpread=function(e){for(let t=0;t<(arguments.length<=1?0:arguments.length-1);t++){const r=t+1<1||arguments.length<=t+1?void 0:arguments[t+1];if(r)if("function"==typeof r.entries)for(const[t,n]of r.entries())e[t]=n;else Object.assign(e,r)}return e}},16657:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectValues=function(e){return Object.values(e)}},68401:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/util",path:"/",type:"cjs",version:"10.4.1"}},88785:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.promisify=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return new Promise(((r,i)=>{t.apply(e,n.concat(((e,t)=>{e?i(e):r(t)})))}))}},45318:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringPascalCase=t.stringCamelCase=t.CC_TO_UP=t.CC_TO_LO=void 0;const r=new Array(256);t.CC_TO_UP=r;const n=new Array(256);t.CC_TO_LO=n;for(let e=0;e<r.length;e++)n[e]=String.fromCharCode(e).toLowerCase(),r[e]=String.fromCharCode(e).toUpperCase();function i(e){return e.slice(0,e.length-1).toLowerCase()+r[e.charCodeAt(e.length-1)]}function o(e){return t=>{const r=t.replace(/[-_., ]+/g," ").trim().split(" "),n=r.length;let o="";for(let t=0;t<n;t++){const n=r[t];o+=e(/^[\dA-Z]+$/.test(n)?n.toLowerCase():n.replace(/^[\dA-Z]{2,}[^a-z]/,i),t)}return o}}const a=o(((e,t)=>(t?r[e.charCodeAt(0)]:n[e.charCodeAt(0)])+e.slice(1)));t.stringCamelCase=a;const s=o((e=>r[e.charCodeAt(0)]+e.slice(1)));t.stringPascalCase=s},14183:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"stringCamelCase",{enumerable:!0,get:function(){return n.stringCamelCase}}),Object.defineProperty(t,"stringLowerFirst",{enumerable:!0,get:function(){return i.stringLowerFirst}}),Object.defineProperty(t,"stringPascalCase",{enumerable:!0,get:function(){return n.stringPascalCase}}),Object.defineProperty(t,"stringShorten",{enumerable:!0,get:function(){return o.stringShorten}}),Object.defineProperty(t,"stringToHex",{enumerable:!0,get:function(){return a.stringToHex}}),Object.defineProperty(t,"stringToU8a",{enumerable:!0,get:function(){return s.stringToU8a}}),Object.defineProperty(t,"stringUpperFirst",{enumerable:!0,get:function(){return i.stringUpperFirst}});var n=r(45318),i=r(9132),o=r(21708),a=r(97641),s=r(23048)},9132:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringUpperFirst=t.stringLowerFirst=void 0;var n=r(45318);function i(e){return t=>t?e[t.charCodeAt(0)]+t.slice(1):""}const o=i(n.CC_TO_LO);t.stringLowerFirst=o;const a=i(n.CC_TO_UP);t.stringUpperFirst=a},21708:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringShorten=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return e.length<=2+2*t?e.toString():`${e.substring(0,t)}…${e.slice(-t)}`}},97641:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringToHex=function(e){return(0,n.u8aToHex)((0,i.stringToU8a)(e))};var n=r(17718),i=r(23048)},23048:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringToU8a=function(e){return e?n.encode(e.toString()):new Uint8Array};const n=new(r(86929).TextEncoder)},99100:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=function(e,t){return JSON.stringify(e,i,t)};var n=r(12083);function i(e,t){return(0,n.isBigInt)(t)?t.toString():t}},23688:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aCmp=function(e,t){const r=(0,n.u8aToU8a)(e),i=(0,n.u8aToU8a)(t);let o=0;for(;;){const e=o>=r.length,t=o>=i.length;if(e&&t)return 0;if(e)return-1;if(t)return 1;if(r[o]!==i[o])return r[o]>i[o]?1:-1;o++}};var n=r(77906)},58704:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aConcat=function(){const e=new Array(arguments.length);let t=0;for(let r=0;r<arguments.length;r++)e[r]=(0,n.u8aToU8a)(r<0||arguments.length<=r?void 0:arguments[r]),t+=e[r].length;return i(e,t)},t.u8aConcatStrict=i;var n=r(77906);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=0;if(!t)for(let r=0;r<e.length;r++)t+=e[r].length;const n=new Uint8Array(t);for(let t=0;t<e.length;t++)n.set(e[t],r),r+=e[t].length;return n}},38818:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aEmpty=function(e){const t=0|e.length;for(let r=0;r<t;r++)if(0|e[r])return!1;return!0}},86006:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aEq=function(e,t){const r=(0,n.u8aToU8a)(e),i=(0,n.u8aToU8a)(t);if(r.length===i.length){const e=new DataView(r.buffer,r.byteOffset),t=new DataView(i.buffer,i.byteOffset),n=r.length%4|0,o=r.length-n|0;for(let r=0;r<o;r+=4)if(e.getUint32(r)!==t.getUint32(r))return!1;for(let e=o;e<r.length;e++)if(r[e]!==i[e])return!1;return!0}return!1};var n=r(77906)},87762:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aFixLength=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n=Math.ceil(t/8);if(-1===t||e.length===n)return e;if(e.length>n)return e.subarray(0,n);const i=new Uint8Array(n);return i.set(e,r?0:n-e.length),i}},20243:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"U8A_WRAP_ETHEREUM",{enumerable:!0,get:function(){return g.U8A_WRAP_ETHEREUM}}),Object.defineProperty(t,"U8A_WRAP_POSTFIX",{enumerable:!0,get:function(){return g.U8A_WRAP_POSTFIX}}),Object.defineProperty(t,"U8A_WRAP_PREFIX",{enumerable:!0,get:function(){return g.U8A_WRAP_PREFIX}}),Object.defineProperty(t,"u8aCmp",{enumerable:!0,get:function(){return n.u8aCmp}}),Object.defineProperty(t,"u8aConcat",{enumerable:!0,get:function(){return i.u8aConcat}}),Object.defineProperty(t,"u8aConcatStrict",{enumerable:!0,get:function(){return i.u8aConcatStrict}}),Object.defineProperty(t,"u8aEmpty",{enumerable:!0,get:function(){return o.u8aEmpty}}),Object.defineProperty(t,"u8aEq",{enumerable:!0,get:function(){return a.u8aEq}}),Object.defineProperty(t,"u8aFixLength",{enumerable:!0,get:function(){return s.u8aFixLength}}),Object.defineProperty(t,"u8aIsWrapped",{enumerable:!0,get:function(){return g.u8aIsWrapped}}),Object.defineProperty(t,"u8aSorted",{enumerable:!0,get:function(){return c.u8aSorted}}),Object.defineProperty(t,"u8aToBigInt",{enumerable:!0,get:function(){return f.u8aToBigInt}}),Object.defineProperty(t,"u8aToBn",{enumerable:!0,get:function(){return l.u8aToBn}}),Object.defineProperty(t,"u8aToBuffer",{enumerable:!0,get:function(){return d.u8aToBuffer}}),Object.defineProperty(t,"u8aToFloat",{enumerable:!0,get:function(){return u.u8aToFloat}}),Object.defineProperty(t,"u8aToHex",{enumerable:!0,get:function(){return h.u8aToHex}}),Object.defineProperty(t,"u8aToNumber",{enumerable:!0,get:function(){return p.u8aToNumber}}),Object.defineProperty(t,"u8aToString",{enumerable:!0,get:function(){return b.u8aToString}}),Object.defineProperty(t,"u8aToU8a",{enumerable:!0,get:function(){return y.u8aToU8a}}),Object.defineProperty(t,"u8aUnwrapBytes",{enumerable:!0,get:function(){return g.u8aUnwrapBytes}}),Object.defineProperty(t,"u8aWrapBytes",{enumerable:!0,get:function(){return g.u8aWrapBytes}});var n=r(23688),i=r(58704),o=r(38818),a=r(86006),s=r(87762),u=r(71921),c=r(27362),f=r(45019),l=r(96345),d=r(19716),h=r(17718),p=r(38477),b=r(58243),y=r(77906),g=r(62635)},27362:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aSorted=function(e){return e.sort(n.u8aCmp)};var n=r(23688)},45019:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToBigInt=function(e){let{isLe:t=!0,isNegative:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||!e.length)return(0,n.BigInt)(0);const s=t?e:e.reverse(),u=new DataView(s.buffer,s.byteOffset),c=s.length%2;let f=(0,n.BigInt)(0);if(r){for(let e=s.length-2;e>=c;e-=2)f=f*a+(0,n.BigInt)(65535^u.getUint16(e,!0));c&&(f=f*o+(0,n.BigInt)(255^u.getUint8(0)))}else{for(let e=s.length-2;e>=c;e-=2)f=f*a+(0,n.BigInt)(u.getUint16(e,!0));c&&(f=f*o+(0,n.BigInt)(u.getUint8(0)))}return r?f*-i._1n-i._1n:f};var n=r(1658),i=r(14219);const o=(0,n.BigInt)(256),a=(0,n.BigInt)(65536)},96345:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToBn=function(e){let{isLe:t=!0,isNegative:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=e.length;if(i<=6){if(r){let r=0;if(t)switch(i){case 0:return new n.BN(0);case 1:r=255^e[0];break;case 2:r=e[0]+(e[1]<<8)^65535;break;case 3:r=e[0]+(e[1]<<8)+(e[2]<<16)^16777215;break;case 4:r=e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295;break;case 5:r=(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295)+4294967296*(255^e[4]);break;default:r=(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295)+4294967296*(e[4]+(e[5]<<8)^65535)}else for(let t=0;t<i;t++)r=256*r+(255^e[t]);return i?new n.BN(-1*r-1):new n.BN(0)}if(!t){let t=0;for(let r=0;r<i;r++)t=256*t+e[r];return new n.BN(t)}switch(i){case 0:return new n.BN(0);case 1:return new n.BN(e[0]);case 2:return new n.BN(e[0]+(e[1]<<8));case 3:return new n.BN(e[0]+(e[1]<<8)+(e[2]<<16));case 4:return new n.BN(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]);case 5:return new n.BN(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*(e[3]+(e[4]<<8)));default:return new n.BN(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*(e[3]+(e[4]<<8)+(e[5]<<16)))}}return r?new n.BN(e,t?"le":"be").fromTwos(8*e.length):new n.BN(e,t?"le":"be")};var n=r(63309)},19716:(e,t,r)=>{"use strict";var n=r(48764).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToBuffer=function(e){return n.from(e||[])}},71921:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToFloat=function(e){let{bitLength:t=32,isLe:r=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(32!==t&&64!==t)throw new Error("Invalid bitLength provided, expected 32 or 64");if(e.length<t/8)throw new Error(`Invalid input buffer provided, expected at least ${t/8} bytes, found ${e.length}`);const n=new DataView(e.buffer,e.byteOffset);return 32===t?n.getFloat32(0,r):n.getFloat64(0,r)}},17718:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToHex=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;const r=arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?"":"0x";if(!e||!e.length)return r;if(t>0){const n=Math.ceil(t/8);if(e.length>n)return`${i(e.subarray(0,n/2),r)}…${i(e.subarray(e.length-n/2),"")}`}return i(e,r)};const r=new Array(256),n=new Array(65536);for(let e=0;e<256;e++)r[e]=e.toString(16).padStart(2,"0");for(let e=0;e<256;e++){const t=e<<8;for(let i=0;i<256;i++)n[t|i]=r[e]+r[i]}function i(e,t){const i=e.length%2|0,o=e.length-i|0;for(let r=0;r<o;r+=2)t+=n[e[r]<<8|e[r+1]];return i&&(t+=r[0|e[o]]),t}},38477:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToNumber=function(e){let{isNegative:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=e.length;if(t){let t=0;switch(r){case 0:return 0;case 1:t=255^e[0];break;case 2:t=e[0]+(e[1]<<8)^65535;break;case 3:t=e[0]+(e[1]<<8)+(e[2]<<16)^16777215;break;case 4:t=e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295;break;case 5:t=(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295)+4294967296*(255^e[4]);break;case 6:t=(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295)+4294967296*(e[4]+(e[5]<<8)^65535);break;default:throw new Error("Value more than 48-bits cannot be reliably converted")}return-1*t-1}switch(r){case 0:return 0;case 1:return e[0];case 2:return e[0]+(e[1]<<8);case 3:return e[0]+(e[1]<<8)+(e[2]<<16);case 4:return e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3];case 5:return e[0]+(e[1]<<8)+(e[2]<<16)+16777216*(e[3]+(e[4]<<8));case 6:return e[0]+(e[1]<<8)+(e[2]<<16)+16777216*(e[3]+(e[4]<<8)+(e[5]<<16));default:throw new Error("Value more than 48-bits cannot be reliably converted")}}},58243:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToString=function(e){return e?n.decode(e):""};const n=new(r(936).TextDecoder)("utf-8")},77906:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToU8a=function(e){return(0,a.isU8a)(e)?e:(0,o.isHex)(e)?(0,n.hexToU8a)(e):(0,i.isBuffer)(e)||Array.isArray(e)?new Uint8Array(e):(0,s.stringToU8a)(e)};var n=r(85005),i=r(11927),o=r(2878),a=r(21376),s=r(23048)},62635:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.U8A_WRAP_PREFIX=t.U8A_WRAP_POSTFIX=t.U8A_WRAP_ETHEREUM=void 0,t.u8aIsWrapped=f,t.u8aUnwrapBytes=function(e){const t=(0,o.u8aToU8a)(e);return f(t,!1)?t.subarray(s.length,t.length-u.length):t},t.u8aWrapBytes=function(e){const t=(0,o.u8aToU8a)(e);return f(t,!0)?t:(0,n.u8aConcatStrict)([s,t,u])};var n=r(58704),i=r(86006),o=r(77906);const a=(0,o.u8aToU8a)("Ethereum Signed Message:\n");t.U8A_WRAP_ETHEREUM=a;const s=(0,o.u8aToU8a)("<Bytes>");t.U8A_WRAP_PREFIX=s;const u=(0,o.u8aToU8a)("</Bytes>");t.U8A_WRAP_POSTFIX=u;const c=s.length+u.length;function f(e,t){return e.length>=c&&(0,i.u8aEq)(e.subarray(0,s.length),s)&&(0,i.u8aEq)(e.slice(-u.length),u)||t&&e.length>=a.length&&(0,i.u8aEq)(e.subarray(0,a.length),a)}},52426:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.detectPackage=function(e,t){let{name:r,path:i,type:o,version:f}=e,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!r.startsWith("@polkadot"))throw new Error(`Invalid package descriptor ${r}`);const d=function(e){const t=n.xglobal;return t.__polkadotjs||(t.__polkadotjs={}),t.__polkadotjs[e]||(t.__polkadotjs[e]=[]),t.__polkadotjs[e]}(r);if(d.push({path:u(i,t),type:o,version:f}),1!==d.length)c(`${r} has multiple versions, ensure that there is only one installed.`,d,s);else{const e=l.filter((e=>e&&e.version!==f));e.length&&c(`${r} requires direct dependencies exactly matching version ${f}.`,e,a)}};var n=r(99164),i=r(59383);const o="Either remove and explicitly install matching versions or dedupe using your package manager.\nThe following conflicting packages were found:";function a(e,t){let{name:r}=t;return[e,r]}function s(e,t){let r,{path:n,type:i}=t;if(n&&n.length>=5){const e=n.indexOf("node_modules");r=-1===e?n:n.substring(e)}else r="<unknown>";return[`${`${i||""}`.padStart(3)} ${e}`,r]}function u(e,t){if(e)return e;if((0,i.isFunction)(t))try{return t()||""}catch(e){return""}return t||""}function c(e,t,r){console.warn(`${e}\n${o}\n${function(e,t){let r=0;for(let t=0;t<e.length;t++)r=Math.max(r,e[t].version.length);return e.map((e=>`\t${t(e.version.padEnd(r),e).join("\t")}`)).join("\n")}(t,r)}`)}},1658:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BigInt=void 0,Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return i.packageInfo}});var n=r(99164),i=r(19854);const o="function"==typeof n.xglobal.BigInt&&"function"==typeof n.xglobal.BigInt.asIntN?n.xglobal.BigInt:()=>Number.NaN;t.BigInt=o},19854:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-bigint",path:"/",type:"cjs",version:"10.4.1"}},99164:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exposeGlobal=function(e,t){void 0===i[e]&&(i[e]=t)},t.extractGlobal=function(e,t){return void 0===i[e]?t:i[e]},Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return n.packageInfo}}),t.xglobal=void 0;var n=r(79287);const i="undefined"!=typeof globalThis?globalThis:void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this");t.xglobal=i},79287:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-global",path:"/",type:"cjs",version:"10.4.1"}},936:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextDecoder=void 0,Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return o.packageInfo}});var n=r(99164),i=r(91830),o=r(23020);const a=(0,n.extractGlobal)("TextDecoder",i.TextDecoder);t.TextDecoder=a},91830:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728));Object.defineProperty(t,"__esModule",{value:!0}),t.TextDecoder=void 0;let a=function(){function e(t){(0,i.default)(this,e)}return(0,o.default)(e,[{key:"decode",value:function(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t}}]),e}();t.TextDecoder=a},23020:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-textdecoder",path:"/",type:"cjs",version:"10.4.1"}},86929:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextEncoder=void 0,Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return o.packageInfo}});var n=r(99164),i=r(49479),o=r(46407);const a=(0,n.extractGlobal)("TextEncoder",i.TextEncoder);t.TextEncoder=a},49479:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728));Object.defineProperty(t,"__esModule",{value:!0}),t.TextEncoder=void 0;let a=function(){function e(){(0,i.default)(this,e)}return(0,o.default)(e,[{key:"encode",value:function(e){const t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}}]),e}();t.TextEncoder=a},46407:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-textencoder",path:"/",type:"cjs",version:"10.4.1"}},116:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HttpProvider",{enumerable:!0,get:function(){return n.HttpProvider}}),Object.defineProperty(t,"ScProvider",{enumerable:!0,get:function(){return o.ScProvider}}),Object.defineProperty(t,"WsProvider",{enumerable:!0,get:function(){return a.WsProvider}}),Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return i.packageInfo}});var n=r(16340),i=r(12130),o=r(97097),a=r(5004)},20026:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(89728)),o=n(r(56690)),a=n(r(66115)),s=n(r(61655)),u=n(r(94993)),c=n(r(73808)),f=n(r(33496));Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=r(35938);const d=-99999;function h(e,t,r){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})}let p=function(e){(0,s.default)(f,e);var t,r,n=(t=f,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,c.default)(t);if(r){var i=(0,c.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,u.default)(this,e)});function f(){var e;(0,o.default)(this,f);let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d,i=arguments.length>2?arguments[2]:void 0;if(e=n.call(this),h((0,a.default)(e),"message",String(t)),h((0,a.default)(e),"name",e.constructor.name),h((0,a.default)(e),"data",i),h((0,a.default)(e),"code",r),(0,l.isFunction)(Error.captureStackTrace))Error.captureStackTrace((0,a.default)(e),e.constructor);else{const{stack:r}=new Error(t);r&&h((0,a.default)(e),"stack",r)}return e}return(0,i.default)(f)}((0,f.default)(Error));p.CODES={ASSERT:-90009,INVALID_JSONRPC:-99998,METHOD_NOT_FOUND:-32601,UNKNOWN:d},t.default=p},97530:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(29399)),s=n(r(40426)),u=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.RpcCoder=void 0;var c=r(33228),f=u(r(20026));function l(e){if(e){const{code:t,data:r,message:n}=e;throw new f.default(`${t}: ${n}${function(e){if((0,c.isUndefined)(e))return"";const t=`: ${(0,c.isString)(e)?e.replace(/Error\("/g,"").replace(/\("/g,"(").replace(/"\)/g,")").replace(/\(/g,", ").replace(/\)/g,""):(0,c.stringify)(e)}`;return t.length<=256?t:`${t.substring(0,255)}…`}(r)}`,t,r)}}var d=(0,s.default)("id");let h=function(){function e(){(0,i.default)(this,e),Object.defineProperty(this,d,{writable:!0,value:0})}return(0,o.default)(e,[{key:"decodeResponse",value:function(e){if(!e||"2.0"!==e.jsonrpc)throw new Error("Invalid jsonrpc field in decoded object");const t=!(0,c.isUndefined)(e.params)&&!(0,c.isUndefined)(e.method);if(!((0,c.isNumber)(e.id)||t&&((0,c.isNumber)(e.params.subscription)||(0,c.isString)(e.params.subscription))))throw new Error("Invalid id field in decoded object");if(l(e.error),void 0===e.result&&!t)throw new Error("No result found in jsonrpc response");return t?(l(e.params.error),e.params.result):e.result}},{key:"encodeJson",value:function(e,t){const[r,n]=this.encodeObject(e,t);return[r,(0,c.stringify)(n)]}},{key:"encodeObject",value:function(e,t){const r=++(0,a.default)(this,d)[d];return[r,{id:r,jsonrpc:"2.0",method:e,params:t}]}}]),e}();t.RpcCoder=h},91890:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={HTTP_URL:"http://127.0.0.1:9933",WS_URL:"ws://127.0.0.1:9944"}},11434:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=[r(10686).packageInfo];t.default=n},75317:(e,t,r)=>{"use strict";var n=r(64836),i=r(33228),o=n(r(11434)),a=r(12130);(0,i.detectPackage)(a.packageInfo,null,o.default)},16340:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(38416)),o=n(r(56690)),a=n(r(89728));function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var c=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.HttpProvider=void 0;var f=c(r(29399)),l=c(r(40426)),d=r(33228),h=r(45344),p=r(97530),b=c(r(91890)),y=r(5686);const g="HTTP Provider does not have subscriptions, use WebSockets instead",m=(0,d.logger)("api-http");var v=(0,l.default)("callCache"),w=(0,l.default)("coder"),_=(0,l.default)("endpoint"),x=(0,l.default)("headers"),O=(0,l.default)("stats"),k=(0,l.default)("send");let P=function(){function e(){(0,o.default)(this,e);let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b.default.HTTP_URL,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Object.defineProperty(this,k,{value:S}),Object.defineProperty(this,v,{writable:!0,value:new y.LRUCache}),Object.defineProperty(this,w,{writable:!0,value:void 0}),Object.defineProperty(this,_,{writable:!0,value:void 0}),Object.defineProperty(this,x,{writable:!0,value:void 0}),Object.defineProperty(this,O,{writable:!0,value:void 0}),!/^(https|http):\/\//.test(t))throw new Error(`Endpoint should start with 'http://' or 'https://', received '${t}'`);(0,f.default)(this,w)[w]=new p.RpcCoder,(0,f.default)(this,_)[_]=t,(0,f.default)(this,x)[x]=r,(0,f.default)(this,O)[O]={active:{requests:0,subscriptions:0},total:{bytesRecv:0,bytesSent:0,cached:0,errors:0,requests:0,subscriptions:0,timeout:0}}}return(0,a.default)(e,[{key:"hasSubscriptions",get:function(){return!1}},{key:"clone",value:function(){return new e((0,f.default)(this,_)[_],(0,f.default)(this,x)[x])}},{key:"connect",value:async function(){}},{key:"disconnect",value:async function(){}},{key:"stats",get:function(){return(0,f.default)(this,O)[O]}},{key:"isClonable",get:function(){return!0}},{key:"isConnected",get:function(){return!0}},{key:"on",value:function(e,t){return m.error("HTTP Provider does not have 'on' emitters, use WebSockets instead"),()=>{}}},{key:"send",value:async function(e,t,r){(0,f.default)(this,O)[O].total.requests++;const[,n]=(0,f.default)(this,w)[w].encodeJson(e,t);let i=r?(0,f.default)(this,v)[v].get(n):null;return i?(0,f.default)(this,O)[O].total.cached++:(i=(0,f.default)(this,k)[k](n),r&&(0,f.default)(this,v)[v].set(n,i)),i}},{key:"subscribe",value:async function(e,t,r,n){throw m.error(g),new Error(g)}},{key:"unsubscribe",value:async function(e,t,r){throw m.error(g),new Error(g)}}]),e}();async function S(e){(0,f.default)(this,O)[O].active.requests++,(0,f.default)(this,O)[O].total.bytesSent+=e.length;try{const t=await(0,h.fetch)((0,f.default)(this,_)[_],{body:e,headers:u({Accept:"application/json","Content-Length":`${e.length}`,"Content-Type":"application/json"},(0,f.default)(this,x)[x]),method:"POST"});if(!t.ok)throw new Error(`[${t.status}]: ${t.statusText}`);const r=await t.text();(0,f.default)(this,O)[O].total.bytesRecv+=r.length;const n=(0,f.default)(this,w)[w].decodeResponse(JSON.parse(r));return(0,f.default)(this,O)[O].active.requests--,n}catch(e){throw(0,f.default)(this,O)[O].active.requests--,(0,f.default)(this,O)[O].total.errors++,e}}t.HttpProvider=P},51290:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(75317);var n=r(116);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}))},5686:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(89728)),o=n(r(56690)),a=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=void 0;var s=a(r(29399)),u=a(r(40426));let c=(0,i.default)((function e(t){(0,o.default)(this,e),this.key=t,this.next=this.prev=this}));var f=(0,u.default)("data"),l=(0,u.default)("refs"),d=(0,u.default)("length"),h=(0,u.default)("head"),p=(0,u.default)("tail"),b=(0,u.default)("toHead");let y=function(){function e(){(0,o.default)(this,e);let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:128;Object.defineProperty(this,b,{value:g}),this.capacity=void 0,Object.defineProperty(this,f,{writable:!0,value:new Map}),Object.defineProperty(this,l,{writable:!0,value:new Map}),Object.defineProperty(this,d,{writable:!0,value:0}),Object.defineProperty(this,h,{writable:!0,value:void 0}),Object.defineProperty(this,p,{writable:!0,value:void 0}),this.capacity=t,(0,s.default)(this,h)[h]=(0,s.default)(this,p)[p]=new c("<empty>")}return(0,i.default)(e,[{key:"length",get:function(){return(0,s.default)(this,d)[d]}},{key:"lengthData",get:function(){return(0,s.default)(this,f)[f].size}},{key:"lengthRefs",get:function(){return(0,s.default)(this,l)[l].size}},{key:"entries",value:function(){const e=this.keys(),t=new Array(e.length);for(let r=0;r<e.length;r++){const n=e[r];t[r]=[n,(0,s.default)(this,f)[f].get(n)]}return t}},{key:"keys",value:function(){const e=[];if((0,s.default)(this,d)[d]){let t=(0,s.default)(this,h)[h];for(;t!==(0,s.default)(this,p)[p];)e.push(t.key),t=t.next;e.push(t.key)}return e}},{key:"get",value:function(e){const t=(0,s.default)(this,f)[f].get(e);return t?((0,s.default)(this,b)[b](e),t):null}},{key:"set",value:function(e,t){if((0,s.default)(this,f)[f].has(e))(0,s.default)(this,b)[b](e);else{const t=new c(e);(0,s.default)(this,l)[l].set(t.key,t),0===this.length?(0,s.default)(this,h)[h]=(0,s.default)(this,p)[p]=t:((0,s.default)(this,h)[h].prev=t,t.next=(0,s.default)(this,h)[h],(0,s.default)(this,h)[h]=t),(0,s.default)(this,d)[d]===this.capacity?((0,s.default)(this,f)[f].delete((0,s.default)(this,p)[p].key),(0,s.default)(this,l)[l].delete((0,s.default)(this,p)[p].key),(0,s.default)(this,p)[p]=(0,s.default)(this,p)[p].prev,(0,s.default)(this,p)[p].next=(0,s.default)(this,h)[h]):(0,s.default)(this,d)[d]+=1}(0,s.default)(this,f)[f].set(e,t)}}]),e}();function g(e){const t=(0,s.default)(this,l)[l].get(e);t&&t!==(0,s.default)(this,h)[h]&&(t.prev.next=t.next,t.next.prev=t.prev,t.next=(0,s.default)(this,h)[h],(0,s.default)(this,h)[h].prev=t,(0,s.default)(this,h)[h]=t)}t.LRUCache=y},12130:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/rpc-provider",path:"/",type:"cjs",version:"9.13.2"}},29183:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(66115)),o=n(r(61655)),a=n(r(94993)),s=n(r(73808)),u=n(r(33496)),c=n(r(89728)),f=n(r(56690)),l=n(r(29399)),d=n(r(40426));Object.defineProperty(t,"__esModule",{value:!0}),t.HealthCheckError=void 0,t.healthChecker=function(){let e=null,t=null;return{responsePassThrough:t=>null===e?t:e.responsePassThrough(t),sendJsonRpc:r=>{if(!t)throw new Error("setSendJsonRpc must be called before sending requests");null===e?t(r):e.sendJsonRpc(r)},setSendJsonRpc:e=>{t=e},start:r=>{if(null!==e)throw new Error("Can't start the health checker multiple times in parallel");if(!t)throw new Error("setSendJsonRpc must be called before starting the health checks");e=new x(r,t),e.update(!0)},stop:()=>{null!==e&&(e.destroy(),e=null)}}};var h=r(33228),p=(0,d.default)("healthCallback"),b=(0,d.default)("currentHealthCheckId"),y=(0,d.default)("currentHealthTimeout"),g=(0,d.default)("currentSubunsubRequestId"),m=(0,d.default)("currentSubscriptionId"),v=(0,d.default)("requestToSmoldot"),w=(0,d.default)("isSyncing"),_=(0,d.default)("nextRequestId");let x=(0,c.default)((function e(t,r){(0,f.default)(this,e),Object.defineProperty(this,p,{writable:!0,value:void 0}),Object.defineProperty(this,b,{writable:!0,value:null}),Object.defineProperty(this,y,{writable:!0,value:null}),Object.defineProperty(this,g,{writable:!0,value:null}),Object.defineProperty(this,m,{writable:!0,value:null}),Object.defineProperty(this,v,{writable:!0,value:void 0}),Object.defineProperty(this,w,{writable:!0,value:!1}),Object.defineProperty(this,_,{writable:!0,value:0}),this.sendJsonRpc=e=>{let t;try{t=JSON.parse(e)}catch(e){return}if(t.id){const e="extern:"+(0,h.stringify)(t.id);t.id=e}(0,l.default)(this,v)[v](t)},this.responsePassThrough=e=>{let t;try{t=JSON.parse(e)}catch(t){return e}if(t.id&&(0,l.default)(this,b)[b]===t.id)return(0,l.default)(this,b)[b]=null,t.result?((0,l.default)(this,p)[p](t.result),(0,l.default)(this,w)[w]=t.result.isSyncing,this.update(!1),null):(this.update(!1),null);if(t.id&&(0,l.default)(this,g)[g]===t.id)return(0,l.default)(this,g)[g]=null,t.result?((0,l.default)(this,m)[m]?(0,l.default)(this,m)[m]=null:(0,l.default)(this,m)[m]=t.result,this.update(!1),null):(this.update(!1),null);if(t.params&&(0,l.default)(this,m)[m]&&t.params.subscription===(0,l.default)(this,m)[m])return this.update(!0),null;if(t.id){const e=t.id;if(!e.startsWith("extern:"))throw new Error("State inconsistency in health checker");const r=JSON.parse(e.slice(7));t.id=r}return(0,h.stringify)(t)},this.update=e=>{if(e&&(0,l.default)(this,y)[y]&&(clearTimeout((0,l.default)(this,y)[y]),(0,l.default)(this,y)[y]=null),!(0,l.default)(this,y)[y]){const t=()=>{(0,l.default)(this,y)[y]=null,(0,l.default)(this,b)[b]||((0,l.default)(this,b)[b]=`health-checker:${(0,l.default)(this,_)[_]}`,(0,l.default)(this,_)[_]+=1,(0,l.default)(this,v)[v]({id:(0,l.default)(this,b)[b],jsonrpc:"2.0",method:"system_health",params:[]}))};e?t():(0,l.default)(this,y)[y]=setTimeout(t,1e3)}!(0,l.default)(this,w)[w]||(0,l.default)(this,m)[m]||(0,l.default)(this,g)[g]||this.startSubscription(),(0,l.default)(this,w)[w]||!(0,l.default)(this,m)[m]||(0,l.default)(this,g)[g]||this.endSubscription()},this.startSubscription=()=>{if((0,l.default)(this,g)[g]||(0,l.default)(this,m)[m])throw new Error("Internal error in health checker");(0,l.default)(this,g)[g]=`health-checker:${(0,l.default)(this,_)[_]}`,(0,l.default)(this,_)[_]+=1,(0,l.default)(this,v)[v]({id:(0,l.default)(this,g)[g],jsonrpc:"2.0",method:"chain_subscribeNewHeads",params:[]})},this.endSubscription=()=>{if((0,l.default)(this,g)[g]||!(0,l.default)(this,m)[m])throw new Error("Internal error in health checker");(0,l.default)(this,g)[g]=`health-checker:${(0,l.default)(this,_)[_]}`,(0,l.default)(this,_)[_]+=1,(0,l.default)(this,v)[v]({id:(0,l.default)(this,g)[g],jsonrpc:"2.0",method:"chain_unsubscribeNewHeads",params:[(0,l.default)(this,m)[m]]})},this.destroy=()=>{(0,l.default)(this,y)[y]&&(clearTimeout((0,l.default)(this,y)[y]),(0,l.default)(this,y)[y]=null)},(0,l.default)(this,p)[p]=t,(0,l.default)(this,v)[v]=e=>r((0,h.stringify)(e))}));var O=(0,d.default)("cause");let k=function(e){(0,o.default)(u,e);var t,r,n=(t=u,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,s.default)(t);if(r){var i=(0,s.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,a.default)(this,e)});function u(e){var t;(0,f.default)(this,u);let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Got error response asking for system health";return t=n.call(this,r),Object.defineProperty((0,i.default)(t),O,{writable:!0,value:void 0}),(0,l.default)((0,i.default)(t),O)[O]=e,t}return(0,c.default)(u,[{key:"getCause",value:function(){return(0,l.default)(this,O)[O]}}]),u}((0,u.default)(Error));t.HealthCheckError=k},97097:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(29399)),s=n(r(40426)),u=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.ScProvider=void 0;var c=u(r(28918)),f=r(33228),l=r(97530),d=r(29183);const h=(0,f.logger)("api-substrate-connect"),p=new Map([["author_submitAndWatchExtrinsic","author_unwatchExtrinsic"],["chain_subscribeAllHeads","chain_unsubscribeAllHeads"],["chain_subscribeFinalizedHeads","chain_unsubscribeFinalizedHeads"],["chain_subscribeFinalisedHeads","chain_subscribeFinalisedHeads"],["chain_subscribeNewHeads","chain_unsubscribeNewHeads"],["chain_subscribeNewHead","chain_unsubscribeNewHead"],["chain_subscribeRuntimeVersion","chain_unsubscribeRuntimeVersion"],["subscribe_newHead","unsubscribe_newHead"],["state_subscribeRuntimeVersion","state_unsubscribeRuntimeVersion"],["state_subscribeStorage","state_unsubscribeStorage"]]),b=new WeakMap;var y=(0,s.default)("Sc"),g=(0,s.default)("coder"),m=(0,s.default)("spec"),v=(0,s.default)("sharedSandbox"),w=(0,s.default)("subscriptions"),_=(0,s.default)("resubscribeMethods"),x=(0,s.default)("requests"),O=(0,s.default)("wellKnownChains"),k=(0,s.default)("eventemitter"),P=(0,s.default)("chain"),S=(0,s.default)("isChainReady"),A=(0,s.default)("resubscribe");let E=function(){function e(t,r,n){if((0,i.default)(this,e),Object.defineProperty(this,y,{writable:!0,value:void 0}),Object.defineProperty(this,g,{writable:!0,value:new l.RpcCoder}),Object.defineProperty(this,m,{writable:!0,value:void 0}),Object.defineProperty(this,v,{writable:!0,value:void 0}),Object.defineProperty(this,w,{writable:!0,value:new Map}),Object.defineProperty(this,_,{writable:!0,value:new Map}),Object.defineProperty(this,x,{writable:!0,value:new Map}),Object.defineProperty(this,O,{writable:!0,value:void 0}),Object.defineProperty(this,k,{writable:!0,value:new c.default}),Object.defineProperty(this,P,{writable:!0,value:null}),Object.defineProperty(this,S,{writable:!0,value:!1}),Object.defineProperty(this,A,{writable:!0,value:()=>{const e=[];(0,a.default)(this,_)[_].forEach((t=>{if(!t.type.startsWith("author_"))try{const r=new Promise((e=>{this.subscribe(t.type,t.method,t.params,t.callback).catch((e=>console.log(e))),e()}));e.push(r)}catch(e){h.error(e)}})),Promise.all(e).catch((e=>h.log(e)))}}),!(0,f.isObject)(t)||!(0,f.isObject)(t.WellKnownChain)||!(0,f.isFunction)(t.createScClient))throw new Error("Expected an @substrate/connect interface as first parameter to ScProvider");(0,a.default)(this,y)[y]=t,(0,a.default)(this,m)[m]=r,(0,a.default)(this,v)[v]=n,(0,a.default)(this,O)[O]=new Set(Object.values(t.WellKnownChain))}return(0,o.default)(e,[{key:"hasSubscriptions",get:function(){return!0}},{key:"isClonable",get:function(){return!1}},{key:"isConnected",get:function(){return!!(0,a.default)(this,P)[P]&&(0,a.default)(this,S)[S]}},{key:"clone",value:function(){throw new Error("clone() is not supported.")}},{key:"connect",value:async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.healthChecker;if(this.isConnected)throw new Error("Already connected!");if((0,a.default)(this,P)[P])return void await(0,a.default)(this,P)[P];(0,a.default)(this,v)[v]&&!(0,a.default)(this,v)[v].isConnected&&await(0,a.default)(this,v)[v].connect();const r=(0,a.default)(this,v)[v]?b.get((0,a.default)(this,v)[v]):(0,a.default)(this,y)[y].createScClient(e);if(!r)throw new Error("Unkown ScProvider!");b.set(this,r);const n=t(),i=(0,a.default)(this,O)[O].has((0,a.default)(this,m)[m])?r.addWellKnownChain:r.addChain;(0,a.default)(this,P)[P]=i((0,a.default)(this,m)[m],(e=>{var t,r;const i=n.responsePassThrough(e);if(!i)return;const o=JSON.parse(i);let s;try{s=(0,a.default)(this,g)[g].decodeResponse(o)}catch(e){s=e}var u;if(void 0===(null==(t=o.params)?void 0:t.subscription)||!o.method)return null==(u=(0,a.default)(this,x)[x].get(o.id))?void 0:u(s);const c=`${o.method}::${o.params.subscription}`,f=null==(r=(0,a.default)(this,w)[w].get(c))?void 0:r[0];null==f||f(s)})).then((e=>{n.setSendJsonRpc(e.sendJsonRpc),(0,a.default)(this,S)[S]=!1;const t=()=>{const e=new Error("Disconnected");(0,a.default)(this,x)[x].forEach((t=>t(e))),(0,a.default)(this,w)[w].forEach((t=>{let[r]=t;return r(e)})),(0,a.default)(this,w)[w].clear()},r=[],i=()=>{if(0===r.length)return;const e=r.pop();if(!e)throw new Error("Unable to get stale subscription");const{id:t,unsubscribeMethod:n}=e;Promise.race([this.send(n,[t]).catch((()=>{})),new Promise((e=>setTimeout(e,500)))]).then(i).catch((()=>{}))};return n.start((e=>{const n=!e.isSyncing&&(e.peers>0||!e.shouldHavePeers);(0,a.default)(this,S)[S]!==n&&((0,a.default)(this,S)[S]=n,n?(i(),(0,a.default)(this,k)[k].emit("connected"),(0,a.default)(this,_)[_].size&&(0,a.default)(this,A)[A]()):([...(0,a.default)(this,w)[w].values()].forEach((e=>{r.push(e[1])})),t(),(0,a.default)(this,k)[k].emit("disconnected")))})),(0,f.objectSpread)({},e,{remove:()=>{n.stop(),e.remove(),t()},sendJsonRpc:n.sendJsonRpc.bind(n)})}));try{await(0,a.default)(this,P)[P]}catch(e){throw(0,a.default)(this,P)[P]=null,(0,a.default)(this,k)[k].emit("error",e),e}}},{key:"disconnect",value:async function(){if(!(0,a.default)(this,P)[P])return;const e=await(0,a.default)(this,P)[P];(0,a.default)(this,P)[P]=null,(0,a.default)(this,S)[S]=!1;try{e.remove()}catch(e){}(0,a.default)(this,k)[k].emit("disconnected")}},{key:"on",value:function(e,t){return"connected"===e&&this.isConnected&&t(),(0,a.default)(this,k)[k].on(e,t),()=>{(0,a.default)(this,k)[k].removeListener(e,t)}}},{key:"send",value:async function(e,t){if(!this.isConnected||!(0,a.default)(this,P)[P])throw new Error("Provider is not connected");const r=await(0,a.default)(this,P)[P],[n,i]=(0,a.default)(this,g)[g].encodeJson(e,t),o=new Promise(((e,t)=>{(0,a.default)(this,x)[x].set(n,(r=>{((0,f.isError)(r)?t:e)(r)}));try{r.sendJsonRpc(i)}catch(e){(0,a.default)(this,P)[P]=null;try{r.remove()}catch(e){}(0,a.default)(this,k)[k].emit("error",e)}}));try{return await o}finally{(0,a.default)(this,x)[x].delete(n)}}},{key:"subscribe",value:async function(e,t,r,n){if(!p.has(t))throw new Error(`Unsupported subscribe method: ${t}`);const i=await this.send(t,r),o=`${e}::${i}`,s=p.get(t);if(!s)throw new Error("Invalid unsubscribe method found");return(0,a.default)(this,_)[_].set(o,{callback:n,method:t,params:r,type:e}),(0,a.default)(this,w)[w].set(o,[e=>{e instanceof Error?n(e,void 0):n(null,e)},{id:i,unsubscribeMethod:s}]),i}},{key:"unsubscribe",value:function(e,t,r){if(!this.isConnected)throw new Error("Provider is not connected");const n=`${e}::${r}`;return(0,a.default)(this,w)[w].has(n)?((0,a.default)(this,_)[_].delete(n),(0,a.default)(this,w)[w].delete(n),this.send(t,[r])):Promise.reject(new Error(`Unable to find active subscription=${n}`))}}]),e}();t.ScProvider=E},37263:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getWSErrorString=function(e){return e>=0&&e<=999?"(Unused)":r[e]||function(e){return e<=1999?"(For WebSocket standard)":e<=2999?"(For WebSocket extensions)":e<=3999?"(For libraries and frameworks)":e<=4999?"(For applications)":void 0}(e)||"(Unknown)"};const r={1e3:"Normal Closure",1001:"Going Away",1002:"Protocol Error",1003:"Unsupported Data",1004:"(For future)",1005:"No Status Received",1006:"Abnormal Closure",1007:"Invalid frame payload data",1008:"Policy Violation",1009:"Message too big",1010:"Missing Extension",1011:"Internal Error",1012:"Service Restart",1013:"Try Again Later",1014:"Bad Gateway",1015:"TLS Handshake"}},5004:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.WsProvider=void 0;var s=a(r(29399)),u=a(r(40426)),c=a(r(28918)),f=r(33228),l=r(57335),d=r(88546),h=r(97530),p=a(r(91890)),b=r(5686),y=r(37263);const g={chain_finalisedHead:"chain_finalizedHead",chain_subscribeFinalisedHeads:"chain_subscribeFinalizedHeads",chain_unsubscribeFinalisedHeads:"chain_unsubscribeFinalizedHeads"},m=(0,f.logger)("api-ws");function v(e,t){Object.keys(e).forEach((r=>{t&&t(e[r]),delete e[r]}))}var w=(0,u.default)("callCache"),_=(0,u.default)("coder"),x=(0,u.default)("endpoints"),O=(0,u.default)("headers"),k=(0,u.default)("eventemitter"),P=(0,u.default)("handlers"),S=(0,u.default)("isReadyPromise"),A=(0,u.default)("stats"),E=(0,u.default)("waitingForId"),M=(0,u.default)("autoConnectMs"),j=(0,u.default)("endpointIndex"),T=(0,u.default)("isConnected"),B=(0,u.default)("subscriptions"),I=(0,u.default)("timeoutId"),N=(0,u.default)("websocket"),R=(0,u.default)("timeout"),C=(0,u.default)("send"),U=(0,u.default)("emit"),L=(0,u.default)("onSocketClose"),D=(0,u.default)("onSocketError"),H=(0,u.default)("onSocketMessage"),F=(0,u.default)("onSocketMessageResult"),V=(0,u.default)("onSocketMessageSubscribe"),z=(0,u.default)("onSocketOpen"),q=(0,u.default)("resubscribe"),K=(0,u.default)("timeoutHandlers");let W=function(){function e(){(0,i.default)(this,e);var t=this;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p.default.WS_URL,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2500,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;Object.defineProperty(this,C,{value:G}),Object.defineProperty(this,w,{writable:!0,value:new b.LRUCache}),Object.defineProperty(this,_,{writable:!0,value:void 0}),Object.defineProperty(this,x,{writable:!0,value:void 0}),Object.defineProperty(this,O,{writable:!0,value:void 0}),Object.defineProperty(this,k,{writable:!0,value:void 0}),Object.defineProperty(this,P,{writable:!0,value:{}}),Object.defineProperty(this,S,{writable:!0,value:void 0}),Object.defineProperty(this,A,{writable:!0,value:void 0}),Object.defineProperty(this,E,{writable:!0,value:{}}),Object.defineProperty(this,M,{writable:!0,value:void 0}),Object.defineProperty(this,j,{writable:!0,value:void 0}),Object.defineProperty(this,T,{writable:!0,value:!1}),Object.defineProperty(this,B,{writable:!0,value:{}}),Object.defineProperty(this,I,{writable:!0,value:null}),Object.defineProperty(this,N,{writable:!0,value:void 0}),Object.defineProperty(this,R,{writable:!0,value:void 0}),Object.defineProperty(this,U,{writable:!0,value:function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];(0,s.default)(t,k)[k].emit(e,...n)}}),Object.defineProperty(this,L,{writable:!0,value:e=>{const t=new Error(`disconnected from ${(0,s.default)(this,x)[x][(0,s.default)(this,j)[j]]}: ${e.code}:: ${e.reason||(0,y.getWSErrorString)(e.code)}`);(0,s.default)(this,M)[M]>0&&m.error(t.message),(0,s.default)(this,T)[T]=!1,(0,s.default)(this,N)[N]&&((0,s.default)(this,N)[N].onclose=null,(0,s.default)(this,N)[N].onerror=null,(0,s.default)(this,N)[N].onmessage=null,(0,s.default)(this,N)[N].onopen=null,(0,s.default)(this,N)[N]=null),(0,s.default)(this,I)[I]&&(clearInterval((0,s.default)(this,I)[I]),(0,s.default)(this,I)[I]=null),(0,s.default)(this,U)[U]("disconnected"),v((0,s.default)(this,P)[P],(e=>{try{e.callback(t,void 0)}catch(e){m.error(e)}})),v((0,s.default)(this,E)[E]),(0,s.default)(this,M)[M]>0&&setTimeout((()=>{this.connectWithRetry().catch((()=>{}))}),(0,s.default)(this,M)[M])}}),Object.defineProperty(this,D,{writable:!0,value:e=>{m.debug((()=>["socket error",e])),(0,s.default)(this,U)[U]("error",e)}}),Object.defineProperty(this,H,{writable:!0,value:e=>{m.debug((()=>["received",e.data])),(0,s.default)(this,A)[A].total.bytesRecv+=e.data.length;const t=JSON.parse(e.data);return(0,f.isUndefined)(t.method)?(0,s.default)(this,F)[F](t):(0,s.default)(this,V)[V](t)}}),Object.defineProperty(this,F,{writable:!0,value:e=>{const t=(0,s.default)(this,P)[P][e.id];if(t){try{const{method:r,params:n,subscription:i}=t,o=(0,s.default)(this,_)[_].decodeResponse(e);if(t.callback(null,o),i){const e=`${i.type}::${o}`;(0,s.default)(this,B)[B][e]=(0,f.objectSpread)({},i,{method:r,params:n}),(0,s.default)(this,E)[E][e]&&(0,s.default)(this,V)[V]((0,s.default)(this,E)[E][e])}}catch(e){(0,s.default)(this,A)[A].total.errors++,t.callback(e,void 0)}delete(0,s.default)(this,P)[P][e.id]}else m.debug((()=>`Unable to find handler for id=${e.id}`))}}),Object.defineProperty(this,V,{writable:!0,value:e=>{const t=`${g[e.method]||e.method||"invalid"}::${e.params.subscription}`,r=(0,s.default)(this,B)[B][t];if(!r)return(0,s.default)(this,E)[E][t]=e,void m.debug((()=>`Unable to find handler for subscription=${t}`));delete(0,s.default)(this,E)[E][t];try{const t=(0,s.default)(this,_)[_].decodeResponse(e);r.callback(null,t)}catch(e){(0,s.default)(this,A)[A].total.errors++,r.callback(e,void 0)}}}),Object.defineProperty(this,z,{writable:!0,value:()=>{if(null===(0,s.default)(this,N)[N])throw new Error("WebSocket cannot be null in onOpen");return m.debug((()=>["connected to",(0,s.default)(this,x)[x][(0,s.default)(this,j)[j]]])),(0,s.default)(this,T)[T]=!0,(0,s.default)(this,U)[U]("connected"),(0,s.default)(this,q)[q](),!0}}),Object.defineProperty(this,q,{writable:!0,value:()=>{const e=(0,s.default)(this,B)[B];(0,s.default)(this,B)[B]={},Promise.all(Object.keys(e).map((async t=>{const{callback:r,method:n,params:i,type:o}=e[t];if(!o.startsWith("author_"))try{await this.subscribe(o,n,i,r)}catch(e){m.error(e)}}))).catch(m.error)}}),Object.defineProperty(this,K,{writable:!0,value:()=>{const e=Date.now(),t=Object.keys((0,s.default)(this,P)[P]);for(let r=0;r<t.length;r++){const n=(0,s.default)(this,P)[P][t[r]];if(e-n.start>(0,s.default)(this,R)[R]){try{n.callback(new Error(`No response received from RPC endpoint in ${(0,s.default)(this,R)[R]/1e3}s`),void 0)}catch(e){}(0,s.default)(this,A)[A].total.timeout++,delete(0,s.default)(this,P)[P][t[r]]}}}});const u=Array.isArray(r)?r:[r];if(0===u.length)throw new Error("WsProvider requires at least one Endpoint");u.forEach((e=>{if(!/^(wss|ws):\/\//.test(e))throw new Error(`Endpoint should start with 'ws://', received '${e}'`)})),(0,s.default)(this,k)[k]=new c.default,(0,s.default)(this,M)[M]=n||0,(0,s.default)(this,_)[_]=new h.RpcCoder,(0,s.default)(this,j)[j]=-1,(0,s.default)(this,x)[x]=u,(0,s.default)(this,O)[O]=o,(0,s.default)(this,N)[N]=null,(0,s.default)(this,A)[A]={active:{requests:0,subscriptions:0},total:{bytesRecv:0,bytesSent:0,cached:0,errors:0,requests:0,subscriptions:0,timeout:0}},(0,s.default)(this,R)[R]=a||6e4,n>0&&this.connectWithRetry().catch((()=>{})),(0,s.default)(this,S)[S]=new Promise((e=>{(0,s.default)(this,k)[k].once("connected",(()=>{e(this)}))}))}return(0,o.default)(e,[{key:"hasSubscriptions",get:function(){return!0}},{key:"isClonable",get:function(){return!0}},{key:"isConnected",get:function(){return(0,s.default)(this,T)[T]}},{key:"isReady",get:function(){return(0,s.default)(this,S)[S]}},{key:"clone",value:function(){return new e((0,s.default)(this,x)[x])}},{key:"connect",value:async function(){try{(0,s.default)(this,j)[j]=((0,s.default)(this,j)[j]+1)%(0,s.default)(this,x)[x].length,(0,s.default)(this,N)[N]=void 0!==l.xglobal.WebSocket&&(0,f.isChildClass)(l.xglobal.WebSocket,d.WebSocket)?new d.WebSocket((0,s.default)(this,x)[x][(0,s.default)(this,j)[j]]):new d.WebSocket((0,s.default)(this,x)[x][(0,s.default)(this,j)[j]],void 0,void 0,(0,s.default)(this,O)[O],void 0,{fragmentOutgoingMessages:!0,fragmentationThreshold:1048576,maxReceivedFrameSize:25165824,maxReceivedMessageSize:25165824}),(0,s.default)(this,N)[N]&&((0,s.default)(this,N)[N].onclose=(0,s.default)(this,L)[L],(0,s.default)(this,N)[N].onerror=(0,s.default)(this,D)[D],(0,s.default)(this,N)[N].onmessage=(0,s.default)(this,H)[H],(0,s.default)(this,N)[N].onopen=(0,s.default)(this,z)[z]),(0,s.default)(this,I)[I]=setInterval((()=>(0,s.default)(this,K)[K]()),5e3)}catch(e){throw m.error(e),(0,s.default)(this,U)[U]("error",e),e}}},{key:"connectWithRetry",value:async function(){if((0,s.default)(this,M)[M]>0)try{await this.connect()}catch(e){setTimeout((()=>{this.connectWithRetry().catch((()=>{}))}),(0,s.default)(this,M)[M])}}},{key:"disconnect",value:async function(){(0,s.default)(this,M)[M]=0;try{(0,s.default)(this,N)[N]&&(0,s.default)(this,N)[N].close(1e3)}catch(e){throw m.error(e),(0,s.default)(this,U)[U]("error",e),e}}},{key:"stats",get:function(){return{active:{requests:Object.keys((0,s.default)(this,P)[P]).length,subscriptions:Object.keys((0,s.default)(this,B)[B]).length},total:(0,s.default)(this,A)[A].total}}},{key:"on",value:function(e,t){return(0,s.default)(this,k)[k].on(e,t),()=>{(0,s.default)(this,k)[k].removeListener(e,t)}}},{key:"send",value:function(e,t,r,n){(0,s.default)(this,A)[A].total.requests++;const[i,o]=(0,s.default)(this,_)[_].encodeJson(e,t);let a=r?(0,s.default)(this,w)[w].get(o):null;return a?(0,s.default)(this,A)[A].total.cached++:(a=(0,s.default)(this,C)[C](i,o,e,t,n),r&&(0,s.default)(this,w)[w].set(o,a)),a}},{key:"subscribe",value:function(e,t,r,n){return(0,s.default)(this,A)[A].total.subscriptions++,this.send(t,r,!1,{callback:n,type:e})}},{key:"unsubscribe",value:async function(e,t,r){const n=`${e}::${r}`;if((0,f.isUndefined)((0,s.default)(this,B)[B][n]))return m.debug((()=>`Unable to find active subscription=${n}`)),!1;delete(0,s.default)(this,B)[B][n];try{return!(this.isConnected&&!(0,f.isNull)((0,s.default)(this,N)[N]))||this.send(t,[r])}catch(e){return!1}}}]),e}();async function G(e,t,r,n,i){return new Promise(((o,a)=>{try{if(!this.isConnected||null===(0,s.default)(this,N)[N])throw new Error("WebSocket is not connected");const u=(e,t)=>{e?a(e):o(t)};m.debug((()=>["calling",r,t])),(0,s.default)(this,P)[P][e]={callback:u,method:r,params:n,start:Date.now(),subscription:i},(0,s.default)(this,A)[A].total.bytesSent+=t.length,(0,s.default)(this,N)[N].send(t)}catch(e){(0,s.default)(this,A)[A].total.errors++,a(e)}}))}t.WsProvider=W},31057:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayChunk=function(e,t){const r=Math.ceil(e.length/t);if(1===r)return[e];const n=Array(r);for(let i=0;i<r;i++){const r=i*t;n[i]=e.slice(r,r+t)}return n}},72992:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayFilter=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.filter((e=>void 0!==e&&(t||null!==e)))}},46213:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayFlatten=function(e){if(0===e.length)return[];if(1===e.length)return e[0];let t=0;for(let r=0;r<e.length;r++)t+=e[r].length;const r=new Array(t);let n=-1;for(let t=0;t<e.length;t++){const i=e[t];for(let e=0;e<i.length;e++)r[++n]=i[e]}return r}},16298:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"arrayChunk",{enumerable:!0,get:function(){return n.arrayChunk}}),Object.defineProperty(t,"arrayFilter",{enumerable:!0,get:function(){return i.arrayFilter}}),Object.defineProperty(t,"arrayFlatten",{enumerable:!0,get:function(){return o.arrayFlatten}}),Object.defineProperty(t,"arrayRange",{enumerable:!0,get:function(){return a.arrayRange}}),Object.defineProperty(t,"arrayShuffle",{enumerable:!0,get:function(){return s.arrayShuffle}}),Object.defineProperty(t,"arrayUnzip",{enumerable:!0,get:function(){return u.arrayUnzip}}),Object.defineProperty(t,"arrayZip",{enumerable:!0,get:function(){return c.arrayZip}});var n=r(31057),i=r(72992),o=r(46213),a=r(58326),s=r(44217),u=r(32030),c=r(93812)},58326:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayRange=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e<=0)throw new Error("Expected non-zero, positive number as a range size");const r=new Array(e);for(let n=0;n<e;n++)r[n]=n+t;return r}},44217:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayShuffle=function(e){const t=e.slice();let r=t.length;if(1===r)return t;for(;0!==r;){const e=~~(Math.random()*r);r--,[t[r],t[e]]=[t[e],t[r]]}return t}},32030:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayUnzip=function(e){const t=new Array(e.length),r=new Array(e.length);for(let n=0;n<e.length;n++)[t[n],r[n]]=e[n];return[t,r]}},93812:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayZip=function(e,t){const r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=[e[n],t[n]];return r}},48759:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assert=i,t.assertReturn=function(e,t){return i(null!=e,t),e},t.assertUnreachable=function(e){throw new Error(`This codepath should be unreachable. Unhandled input: ${e}`)};var n=r(35938);function i(e,t){if(!e)throw new Error((0,n.isFunction)(t)?t():t)}},50040:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._sqrt2pow53n=t._9n=t._8n=t._7n=t._6n=t._5n=t._4n=t._3n=t._2pow53n=t._2n=t._1n=t._1Qn=t._1Mn=t._1Bn=t._10n=t._100n=t._1000n=t._0n=void 0;var n=r(92016);const i=(0,n.BigInt)(0);t._0n=i;const o=(0,n.BigInt)(1);t._1n=o;const a=(0,n.BigInt)(2);t._2n=a;const s=(0,n.BigInt)(3);t._3n=s;const u=(0,n.BigInt)(4);t._4n=u;const c=(0,n.BigInt)(5);t._5n=c;const f=(0,n.BigInt)(6);t._6n=f;const l=(0,n.BigInt)(7);t._7n=l;const d=(0,n.BigInt)(8);t._8n=d;const h=(0,n.BigInt)(9);t._9n=h;const p=(0,n.BigInt)(10);t._10n=p;const b=(0,n.BigInt)(100);t._100n=b;const y=(0,n.BigInt)(1e3);t._1000n=y;const g=(0,n.BigInt)(1e6);t._1Mn=g;const m=(0,n.BigInt)(1e9);t._1Bn=m;const v=m*m;t._1Qn=v;const w=(0,n.BigInt)(Number.MAX_SAFE_INTEGER);t._2pow53n=w;const _=(0,n.BigInt)(94906265);t._sqrt2pow53n=_},30293:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCmp=function(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(0===r.length)throw new Error("Must provide one or more arguments");let i=r[0];for(let t=1;t<r.length;t++)e(r[t],i)&&(i=r[t]);return i}}},94426:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={nSqrt:!0,nToBigInt:!0,nMax:!0,nMin:!0,nToHex:!0,nToU8a:!0};Object.defineProperty(t,"nMax",{enumerable:!0,get:function(){return s.nMax}}),Object.defineProperty(t,"nMin",{enumerable:!0,get:function(){return s.nMin}}),Object.defineProperty(t,"nSqrt",{enumerable:!0,get:function(){return o.nSqrt}}),Object.defineProperty(t,"nToBigInt",{enumerable:!0,get:function(){return a.nToBigInt}}),Object.defineProperty(t,"nToHex",{enumerable:!0,get:function(){return u.nToHex}}),Object.defineProperty(t,"nToU8a",{enumerable:!0,get:function(){return c.nToU8a}});var i=r(50040);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=r(60024),a=r(38255),s=r(47493),u=r(87968),c=r(85748)},47493:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nMin=t.nMax=void 0;var n=r(30293);const i=(0,n.createCmp)(((e,t)=>e>t));t.nMax=i;const o=(0,n.createCmp)(((e,t)=>e<t));t.nMin=o},60024:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nSqrt=function(e){const t=(0,o.nToBigInt)(e);if(t<i._0n)throw new Error("square root of negative numbers is not supported");if(t<=i._2pow53n)return(0,n.BigInt)(~~Math.sqrt(Number(t)));let r=i._sqrt2pow53n;for(;;){const e=t/r+r>>i._1n;if(r===e||r===e-i._1n)return r;r=e}};var n=r(92016),i=r(50040),o=r(38255)},38255:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nToBigInt=function(e){return"bigint"==typeof e?e:e?(0,a.isHex)(e)?(0,i.hexToBigInt)(e.toString()):(0,o.isBn)(e)?(0,n.BigInt)(e.toString()):(0,s.isToBigInt)(e)?e.toBigInt():(0,u.isToBn)(e)?(0,n.BigInt)(e.toBn().toString()):(0,n.BigInt)(e):(0,n.BigInt)(0)};var n=r(92016),i=r(51008),o=r(42843),a=r(79236),s=r(66523),u=r(137)},87968:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nToHex=function(e){let{bitLength:t,isLe:r=!1,isNegative:o=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.u8aToHex)((0,i.nToU8a)(e||0,{bitLength:t,isLe:r,isNegative:o}))};var n=r(17476),i=r(85748)},85748:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nToU8a=function(e){let{bitLength:t=-1,isLe:r=!0,isNegative:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const u=(0,o.nToBigInt)(e);if(u===i._0n)return-1===t?new Uint8Array(1):new Uint8Array(Math.ceil((t||0)/8));const c=function(e,t,r){const n=[];for(r&&(e=(e+i._1n)*-i._1n);e!==i._0n;){const i=e%a,o=Number(r?i^s:i);t?n.push(o):n.unshift(o),e=(e-i)/a}return Uint8Array.from(n)}(u,r,n);if(-1===t)return c;const f=Math.ceil((t||0)/8),l=new Uint8Array(f);return n&&l.fill(255),l.set(c,r?0:f-c.length),l};var n=r(92016),i=r(50040),o=r(38255);const a=(0,n.BigInt)(256),s=(0,n.BigInt)(255)},16898:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BN",{enumerable:!0,get:function(){return i.default}});var i=n(r(13550))},58393:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BN_ZERO=t.BN_TWO=t.BN_THREE=t.BN_THOUSAND=t.BN_TEN=t.BN_SQRT_MAX_INTEGER=t.BN_SIX=t.BN_SEVEN=t.BN_QUINTILL=t.BN_ONE=t.BN_NINE=t.BN_MILLION=t.BN_MAX_INTEGER=t.BN_HUNDRED=t.BN_FOUR=t.BN_FIVE=t.BN_EIGHT=t.BN_BILLION=void 0;var n=r(16898);const i=new n.BN(0);t.BN_ZERO=i;const o=new n.BN(1);t.BN_ONE=o;const a=new n.BN(2);t.BN_TWO=a;const s=new n.BN(3);t.BN_THREE=s;const u=new n.BN(4);t.BN_FOUR=u;const c=new n.BN(5);t.BN_FIVE=c;const f=new n.BN(6);t.BN_SIX=f;const l=new n.BN(7);t.BN_SEVEN=l;const d=new n.BN(8);t.BN_EIGHT=d;const h=new n.BN(9);t.BN_NINE=h;const p=new n.BN(10);t.BN_TEN=p;const b=new n.BN(100);t.BN_HUNDRED=b;const y=new n.BN(1e3);t.BN_THOUSAND=y;const g=new n.BN(1e6);t.BN_MILLION=g;const m=new n.BN(1e9);t.BN_BILLION=m;const v=m.mul(m);t.BN_QUINTILL=v;const w=new n.BN(Number.MAX_SAFE_INTEGER);t.BN_MAX_INTEGER=w;const _=new n.BN(94906265);t.BN_SQRT_MAX_INTEGER=_},98149:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bnFromHex",{enumerable:!0,get:function(){return n.hexToBn}});var n=r(109)},38574:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={BN:!0,bnFromHex:!0,bnMax:!0,bnMin:!0,bnSqrt:!0,bnToBn:!0,bnToHex:!0,bnToU8a:!0};Object.defineProperty(t,"BN",{enumerable:!0,get:function(){return o.BN}}),Object.defineProperty(t,"bnFromHex",{enumerable:!0,get:function(){return a.bnFromHex}}),Object.defineProperty(t,"bnMax",{enumerable:!0,get:function(){return s.bnMax}}),Object.defineProperty(t,"bnMin",{enumerable:!0,get:function(){return s.bnMin}}),Object.defineProperty(t,"bnSqrt",{enumerable:!0,get:function(){return u.bnSqrt}}),Object.defineProperty(t,"bnToBn",{enumerable:!0,get:function(){return c.bnToBn}}),Object.defineProperty(t,"bnToHex",{enumerable:!0,get:function(){return f.bnToHex}}),Object.defineProperty(t,"bnToU8a",{enumerable:!0,get:function(){return l.bnToU8a}});var i=r(58393);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=r(16898),a=r(98149),s=r(24971),u=r(7628),c=r(67208),f=r(31986),l=r(57930)},24971:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnMin=t.bnMax=void 0;var n=r(30293);const i=(0,n.createCmp)(((e,t)=>e.gt(t)));t.bnMax=i;const o=(0,n.createCmp)(((e,t)=>e.lt(t)));t.bnMin=o},7628:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnSqrt=function(e){const t=(0,o.bnToBn)(e);if(t.isNeg())throw new Error("square root of negative numbers is not supported");if(t.lte(i.BN_MAX_INTEGER))return new n.BN(~~Math.sqrt(t.toNumber()));let r=i.BN_SQRT_MAX_INTEGER.clone();for(;;){const e=t.div(r).iadd(r).ishrn(1);if(r.eq(e)||r.eq(e.sub(i.BN_ONE)))return r;r=e}};var n=r(16898),i=r(58393),o=r(67208)},67208:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnToBn=function(e){return e?u.BN.isBN(e)?e:(0,o.isHex)(e)?(0,n.hexToBn)(e.toString()):(0,i.isBigInt)(e)?new u.BN(e.toString()):(0,s.isToBn)(e)?e.toBn():(0,a.isToBigInt)(e)?new u.BN(e.toBigInt().toString()):new u.BN(e):new u.BN(0)};var n=r(109),i=r(62016),o=r(79236),a=r(66523),s=r(137),u=r(16898)},31986:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnToHex=function(e){let{bitLength:t=-1,isLe:r=!1,isNegative:o=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.u8aToHex)((0,i.bnToU8a)(e,{bitLength:t,isLe:r,isNegative:o}))};var n=r(17476),i=r(57930)},57930:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnToU8a=function(e){let{bitLength:t=-1,isLe:r=!0,isNegative:o=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;const a=(0,n.bnToBn)(e),s=-1===t?Math.ceil(a.bitLength()/8):Math.ceil((t||0)/8);if(!e)return-1===t?new Uint8Array(1):new Uint8Array(s);const u=new Uint8Array(s),c=o?a.toTwos(8*s):a;return u.set(c.toArray(r?"le":"be",s),0),u};var n=r(67208);const i={bitLength:-1,isLe:!0,isNegative:!1}},37110:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bufferToU8a",{enumerable:!0,get:function(){return n.bufferToU8a}});var n=r(24948)},24948:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bufferToU8a=function(e){return new Uint8Array(e||[])}},12586:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={packageInfo:!0};Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return i.packageInfo}});var i=r(94159),o=r(16298);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=r(48759);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var s=r(94426);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var u=r(38574);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var c=r(37110);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var f=r(85832);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))}));var l=r(55629);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var d=r(32161);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var h=r(50382);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))}));var p=r(20846);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===p[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}}))}));var b=r(21045);Object.keys(b).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===b[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return b[e]}}))}));var y=r(3344);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===y[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return y[e]}}))}));var g=r(12766);Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===g[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return g[e]}}))}));var m=r(6101);Object.keys(m).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===m[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return m[e]}}))}));var v=r(27743);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===v[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return v[e]}}))}));var w=r(89019);Object.keys(w).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===w[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return w[e]}}))}));var _=r(80086);Object.keys(_).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===_[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return _[e]}}))}));var x=r(83936);Object.keys(x).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===x[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return x[e]}}))}));var O=r(4132);Object.keys(O).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===O[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return O[e]}}))}));var k=r(64550);Object.keys(k).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===k[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return k[e]}}))}));var P=r(90523);Object.keys(P).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===P[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return P[e]}}))}));var S=r(17476);Object.keys(S).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===S[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return S[e]}}))}));var A=r(51829);Object.keys(A).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===A[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return A[e]}}))}))},47459:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactAddLength=function(e){return(0,n.u8aConcatStrict)([(0,i.compactToU8a)(e.length),e])};var n=r(17476),i=r(88733)},26096:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactFromU8a=function(e){const t=(0,i.u8aToU8a)(e);switch(3&t[0]){case 0:return[1,new n.BN(t[0]>>>2)];case 1:return[2,new n.BN(t[0]+(t[1]<<8)>>>2)];case 2:return[4,new n.BN(t[0]+(t[1]<<8)+(t[2]<<16)+16777216*t[3]>>>2)];default:{const e=5+(t[0]>>>2);switch(e){case 5:return[5,new n.BN(t[1]+(t[2]<<8)+(t[3]<<16)+16777216*t[4])];case 6:return[6,new n.BN(t[1]+(t[2]<<8)+(t[3]<<16)+16777216*(t[4]+(t[5]<<8)))];case 7:return[7,new n.BN(t[1]+(t[2]<<8)+(t[3]<<16)+16777216*(t[4]+(t[5]<<8)+(t[6]<<16)))];default:return[e,(0,i.u8aToBn)(t.subarray(1,e))]}}}},t.compactFromU8aLim=function(e){switch(3&e[0]){case 0:return[1,e[0]>>>2];case 1:return[2,e[0]+(e[1]<<8)>>>2];case 2:return[4,e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]>>>2];default:switch(5+(e[0]>>>2)){case 5:return[5,e[1]+(e[2]<<8)+(e[3]<<16)+16777216*e[4]];case 6:return[6,e[1]+(e[2]<<8)+(e[3]<<16)+16777216*(e[4]+(e[5]<<8))];case 7:return[7,e[1]+(e[2]<<8)+(e[3]<<16)+16777216*(e[4]+(e[5]<<8)+(e[6]<<16))];default:throw new Error("Compact input is > Number.MAX_SAFE_INTEGER")}}};var n=r(38574),i=r(17476)},85832:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"compactAddLength",{enumerable:!0,get:function(){return n.compactAddLength}}),Object.defineProperty(t,"compactFromU8a",{enumerable:!0,get:function(){return o.compactFromU8a}}),Object.defineProperty(t,"compactFromU8aLim",{enumerable:!0,get:function(){return o.compactFromU8aLim}}),Object.defineProperty(t,"compactStripLength",{enumerable:!0,get:function(){return i.compactStripLength}}),Object.defineProperty(t,"compactToU8a",{enumerable:!0,get:function(){return a.compactToU8a}});var n=r(47459),i=r(49011),o=r(26096),a=r(88733)},49011:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactStripLength=function(e){const[t,r]=(0,n.compactFromU8a)(e),i=t+r.toNumber();return[i,e.subarray(t,i)]};var n=r(26096)},88733:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactToU8a=function(e){const t=(0,n.bnToBn)(e);if(t.lte(o))return new Uint8Array([t.toNumber()<<2]);if(t.lte(a))return(0,n.bnToU8a)(t.shln(2).iadd(n.BN_ONE),u);if(t.lte(s))return(0,n.bnToU8a)(t.shln(2).iadd(n.BN_TWO),c);const r=(0,n.bnToU8a)(t);let f=r.length;for(;0===r[f-1];)f--;if(f<4)throw new Error("Invalid length, previous checks match anything less than 2^30");return(0,i.u8aConcatStrict)([new Uint8Array([3+(f-4<<2)]),r.subarray(0,f)])};var n=r(38574),i=r(17476);const o=n.BN_TWO.pow(new n.BN(6)).isub(n.BN_ONE),a=n.BN_TWO.pow(new n.BN(14)).isub(n.BN_ONE),s=n.BN_TWO.pow(new n.BN(30)).isub(n.BN_ONE),u={bitLength:16},c={bitLength:32}},88591:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(90480),i=r(91865),o=[n.packageInfo,i.packageInfo];t.default=o},8996:(e,t,r)=>{"use strict";var n=r(64836)(r(88591)),i=r(94159);(0,r(51829).detectPackage)(i.packageInfo,null,n.default)},55629:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extractTime=function e(t){return t?t<1e3?a({milliseconds:t},o):function(t){const o=t/1e3;if(o<60){const r=~~o;return a({seconds:r},e(t-1e3*r))}const s=o/60;if(s<60){const n=~~s;return a({minutes:n},e(t-n*r))}const u=s/60;if(u<24){const r=~~u;return a({hours:r},e(t-r*n))}const c=~~(u/24);return a({days:c},e(t-c*i))}(t):o};const r=6e4,n=60*r,i=24*n,o={days:0,hours:0,milliseconds:0,minutes:0,seconds:0};function a(e,t){return{days:(e.days||0)+t.days,hours:(e.hours||0)+t.hours,milliseconds:(e.milliseconds||0)+t.milliseconds,minutes:(e.minutes||0)+t.minutes,seconds:(e.seconds||0)+t.seconds}}},32161:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"floatToU8a",{enumerable:!0,get:function(){return n.floatToU8a}});var n=r(63840)},63840:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.floatToU8a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,{bitLength:t=32,isLe:r=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(32!==t&&64!==t)throw new Error("Invalid bitLength provided, expected 32 or 64");const n=new Uint8Array(t/8),i=new DataView(n.buffer,n.byteOffset);return 32===t?i.setFloat32(0,Number(e),r):i.setFloat64(0,Number(e),r),n}},44964:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatBalance=void 0;var n=r(67208),i=r(72626),o=r(5154),a=r(22808),s=r(24243);const u=s.SI[s.SI_MID].text;let c=0,f=u;const l=function(e){let{decimals:t=c,forceUnit:r,withAll:u=!1,withSi:f=!0,withSiFull:l=!1,withUnit:d=!0,withZero:h=!0,locale:p="en"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},b=(0,n.bnToBn)(e).toString();if(0===b.length||"0"===b)return"0";let y="";b[0].startsWith("-")&&(y="-",b=b.substring(1));const g=(0,s.calcSi)(b,t,r),m=b.length-(t+g.power),v=m<=0?"0":b.substring(0,m);let w=b.padStart(m<0?t:1,"0").substring(m<0?0:m).padEnd(u?Math.max(t,4):4,"0").substring(0,u?Math.max(4,t+g.power):4);if(!h){let e=w.length-1;do{"0"===w[e]&&e--}while("0"===w[e]);w=w.substring(0,e+1)}const _=(0,i.isBoolean)(d)?s.SI[s.SI_MID].text:d,x=f||l?"-"===g.value?d?` ${_}`:"":` ${l?`${g.text}${d?" ":""}`:g.value}${d?_:""}`:"",{decimal:O,thousand:k}=(0,a.getSeparator)(p);return`${y}${(0,o.formatDecimal)(v,k)}${w&&`${O}${w}`}${x}`};t.formatBalance=l,l.calcSi=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;return(0,s.calcSi)(e,t)},l.findSi=s.findSi,l.getDefaults=()=>({decimals:c,unit:f}),l.getOptions=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return s.SI.filter((t=>{let{power:r}=t;return!(r<0)||e+r>=0}))},l.setDefaults=e=>{let{decimals:t,unit:r}=e;c=void 0===t?c:Array.isArray(t)?t[0]:t,f=void 0===r?f:Array.isArray(r)?r[0]:r,s.SI[s.SI_MID].text=f}},89015:(e,t)=>{"use strict";function r(e){return e.toString().padStart(2,"0")}Object.defineProperty(t,"__esModule",{value:!0}),t.formatDate=function(e){return`${e.getFullYear().toString()}-${r(e.getMonth()+1)}-${r(e.getDate())} ${r(e.getHours())}:${r(e.getMinutes())}:${r(e.getSeconds())}`}},5154:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatDecimal=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";const n=e[0].startsWith("-"),i=n?e.substring(1).match(r):e.match(r);return i?`${n?"-":""}${i.join(t)}`:e};const r=new RegExp("(\\d+?)(?=(\\d{3})+(?!\\d)|$)","g")},87626:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatElapsed=function(e,t){const r=e&&e.getTime()||0,i=t instanceof Date?t.getTime():(0,n.bnToBn)(t).toNumber();return r&&i?(o=Math.max(Math.abs(r-i),0)/1e3)<15?`${o.toFixed(1)}s`:o<60?(0|o)+"s":o<3600?(o/60|0)+"m":(o/3600|0)+"h":"0.0s";var o};var n=r(67208)},79730:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatNumber=function(e){let{locale:t="en"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{thousand:r}=(0,o.getSeparator)(t);return(0,i.formatDecimal)((0,n.bnToBn)(e).toString(),r)};var n=r(67208),i=r(5154),o=r(22808)},22808:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSeparator=function(e){return{decimal:.1.toLocaleString(e).substring(1,2),thousand:1e3.toLocaleString(e).substring(1,2)}}},50382:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"calcSi",{enumerable:!0,get:function(){return u.calcSi}}),Object.defineProperty(t,"findSi",{enumerable:!0,get:function(){return u.findSi}}),Object.defineProperty(t,"formatBalance",{enumerable:!0,get:function(){return n.formatBalance}}),Object.defineProperty(t,"formatDate",{enumerable:!0,get:function(){return i.formatDate}}),Object.defineProperty(t,"formatDecimal",{enumerable:!0,get:function(){return o.formatDecimal}}),Object.defineProperty(t,"formatElapsed",{enumerable:!0,get:function(){return a.formatElapsed}}),Object.defineProperty(t,"formatNumber",{enumerable:!0,get:function(){return s.formatNumber}});var n=r(44964),i=r(89015),o=r(5154),a=r(87626),s=r(79730),u=r(24243)},24243:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SI_MID=t.SI=void 0,t.calcSi=function(e,t,o){if(o)return i(o);const a=r-1+Math.ceil((e.length-t)/3);return n[a]||n[a<0?0:n.length-1]},t.findSi=i;const r=8;t.SI_MID=r;const n=[{power:-24,text:"yocto",value:"y"},{power:-21,text:"zepto",value:"z"},{power:-18,text:"atto",value:"a"},{power:-15,text:"femto",value:"f"},{power:-12,text:"pico",value:"p"},{power:-9,text:"nano",value:"n"},{power:-6,text:"micro",value:"µ"},{power:-3,text:"milli",value:"m"},{power:0,text:"Unit",value:"-"},{power:3,text:"Kilo",value:"k"},{power:6,text:"Mill",value:"M"},{power:9,text:"Bill",value:"B"},{power:12,text:"Tril",value:"T"},{power:15,text:"Peta",value:"P"},{power:18,text:"Exa",value:"E"},{power:21,text:"Zeta",value:"Z"},{power:24,text:"Yotta",value:"Y"}];function i(e){for(let t=0;t<n.length;t++)if(n[t].value===e)return n[t];return n[r]}t.SI=n},20846:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasWasm=t.hasProcess=t.hasEsm=t.hasDirname=t.hasCjs=t.hasBuffer=t.hasBigInt=void 0;var n=r(92016),i=r(57335);const o="function"==typeof n.BigInt&&"function"==typeof n.BigInt.asIntN;t.hasBigInt=o,t.hasCjs=!0,t.hasDirname=!0,t.hasEsm=!1;const a="undefined"!=typeof WebAssembly;t.hasWasm=a;const s="function"==typeof i.xglobal.Buffer&&"function"==typeof i.xglobal.Buffer.isBuffer;t.hasBuffer=s;const u="object"==typeof i.xglobal.process;t.hasProcess=u},74492:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexAddPrefix=function(e){return e&&(0,n.hexHasPrefix)(e)?e:`0x${e&&e.length%2==1?"0":""}${e||""}`};var n=r(35841)},54438:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexFixLength=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=Math.ceil(t/4),a=o+2;return(0,n.hexAddPrefix)(-1===t||e.length===a||!r&&e.length<a?(0,i.hexStripPrefix)(e):e.length>a?(0,i.hexStripPrefix)(e).slice(-1*o):`${"0".repeat(o)}${(0,i.hexStripPrefix)(e)}`.slice(-1*o))};var n=r(74492),i=r(93874)},35841:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexHasPrefix=function(e){return!!e&&(0,n.isHex)(e,-1)};var n=r(79236)},21045:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hexAddPrefix",{enumerable:!0,get:function(){return n.hexAddPrefix}}),Object.defineProperty(t,"hexFixLength",{enumerable:!0,get:function(){return i.hexFixLength}}),Object.defineProperty(t,"hexHasPrefix",{enumerable:!0,get:function(){return o.hexHasPrefix}}),Object.defineProperty(t,"hexStripPrefix",{enumerable:!0,get:function(){return a.hexStripPrefix}}),Object.defineProperty(t,"hexToBigInt",{enumerable:!0,get:function(){return s.hexToBigInt}}),Object.defineProperty(t,"hexToBn",{enumerable:!0,get:function(){return u.hexToBn}}),Object.defineProperty(t,"hexToNumber",{enumerable:!0,get:function(){return c.hexToNumber}}),Object.defineProperty(t,"hexToString",{enumerable:!0,get:function(){return f.hexToString}}),Object.defineProperty(t,"hexToU8a",{enumerable:!0,get:function(){return l.hexToU8a}});var n=r(74492),i=r(54438),o=r(35841),a=r(93874),s=r(51008),u=r(109),c=r(57790),f=r(67719),l=r(51322)},93874:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexStripPrefix=function(e){if(!e||"0x"===e)return"";if(n.REGEX_HEX_PREFIXED.test(e))return e.substring(2);if(n.REGEX_HEX_NOPREFIX.test(e))return e;throw new Error(`Expected hex value to convert, found '${e}'`)};var n=r(79236)},51008:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToBigInt=function(e){let{isLe:t=!1,isNegative:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e&&"0x"!==e?(0,i.u8aToBigInt)((0,o.hexToU8a)(e),{isLe:t,isNegative:r}):(0,n.BigInt)(0)};var n=r(92016),i=r(16831),o=r(51322)},109:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToBn=function(e){let{isLe:t=!1,isNegative:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||"0x"===e)return new n.BN(0);const o=(0,i.hexStripPrefix)(e),a=new n.BN(o,16,t?"le":"be");return r?a.fromTwos(4*o.length):a};var n=r(16898),i=r(93874)},57790:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToNumber=function(e){return e?(0,n.hexToBn)(e).toNumber():NaN};var n=r(109)},67719:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToString=function(e){return(0,n.u8aToString)((0,i.hexToU8a)(e))};var n=r(34970),i=r(51322)},51322:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToU8a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(!e)return new Uint8Array;let r=e.startsWith("0x")?2:0;const n=Math.ceil((e.length-r)/2),o=Math.ceil(-1===t?n:t/8),a=new Uint8Array(o);for(let t=o>n?o-n:0;t<o;t++,r+=2)a[t]=i[e.charCodeAt(r)<<8|e.charCodeAt(r+1)];return a};const r="0123456789abcdef",n=new Uint8Array(256),i=new Uint8Array(65536);for(let e=0;e<16;e++)n[0|r[e].charCodeAt(0)]=0|e,e>9&&(n[0|r[e].toUpperCase().charCodeAt(0)]=0|e);for(let e=0;e<256;e++){const t=e<<8;for(let r=0;r<256;r++)i[t|r]=n[e]<<4|n[r]}},33228:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8996);var n=r(12586);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}))},62629:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isArray=function(e){return Array.isArray(e)}},76890:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAscii=function(e){return(0,o.isString)(e)?(0,i.isHex)(e)?a((0,n.u8aToU8a)(e)):function(e){const t=0|e.length;for(let r=0;r<t;r++){const t=e.charCodeAt(r);if(t<32||t>126)return!1}return!0}(e):!!e&&a(e)};var n=r(70606),i=r(79236),o=r(85252);function a(e){const t=0|e.length;for(let r=0;r<t;r++){const t=0|e[r];if(t<32||t>126)return!1}return!0}},62016:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBigInt=function(e){return"bigint"==typeof e}},42843:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBn=function(e){return n.BN.isBN(e)};var n=r(16898)},72626:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBoolean=function(e){return"boolean"==typeof e}},1147:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBuffer=function(e){return i.hasBuffer&&(0,o.isFunction)(e&&e.readDoubleLE)&&n.xglobal.Buffer.isBuffer(e)};var n=r(57335),i=r(20846),o=r(35938)},18342:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isChildClass=function(e,t){return!(!(0,n.isClass)(t)||!(0,n.isClass)(e))&&(e===t||e.isPrototypeOf(t))};var n=r(99022)},99022:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isClass=void 0;const n=(0,r(88289).isOnFunction)("isPrototypeOf","hasOwnProperty");t.isClass=n},59263:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isCodec=function(e){return i(e)&&o(e.registry)};var n=r(88289);const i=(0,n.isOnObject)("toHex","toU8a"),o=(0,n.isOnObject)("get")},88784:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isCompact=void 0;const n=(0,r(88289).isOnObject)("toBigInt","toBn","toNumber","unwrap");t.isCompact=n},4719:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isError=function(e){return(e&&e.constructor)===Error||e instanceof Error}},35938:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFunction=function(e){return"function"==typeof e}},88289:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isOn=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return e=>((0,i.isObject)(e)||(0,n.isFunction)(e))&&t.every((t=>(0,n.isFunction)(e[t])))},t.isOnFunction=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return e=>(0,n.isFunction)(e)&&t.every((t=>(0,n.isFunction)(e[t])))},t.isOnObject=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return e=>(0,i.isObject)(e)&&t.every((t=>(0,n.isFunction)(e[t])))};var n=r(35938),i=r(37024)},79236:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.REGEX_HEX_PREFIXED=t.REGEX_HEX_NOPREFIX=void 0,t.isHex=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=arguments.length>2?arguments[2]:void 0;return"string"==typeof e&&("0x"===e||r.test(e))&&(-1===t?n||e.length%2==0:e.length===2+Math.ceil(t/4))};const r=/^0x[\da-fA-F]+$/;t.REGEX_HEX_PREFIXED=r,t.REGEX_HEX_NOPREFIX=/^[\da-fA-F]+$/},3344:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isArray",{enumerable:!0,get:function(){return n.isArray}}),Object.defineProperty(t,"isAscii",{enumerable:!0,get:function(){return i.isAscii}}),Object.defineProperty(t,"isBigInt",{enumerable:!0,get:function(){return o.isBigInt}}),Object.defineProperty(t,"isBn",{enumerable:!0,get:function(){return a.isBn}}),Object.defineProperty(t,"isBoolean",{enumerable:!0,get:function(){return u.isBoolean}}),Object.defineProperty(t,"isBuffer",{enumerable:!0,get:function(){return s.isBuffer}}),Object.defineProperty(t,"isChildClass",{enumerable:!0,get:function(){return c.isChildClass}}),Object.defineProperty(t,"isClass",{enumerable:!0,get:function(){return f.isClass}}),Object.defineProperty(t,"isCodec",{enumerable:!0,get:function(){return l.isCodec}}),Object.defineProperty(t,"isCompact",{enumerable:!0,get:function(){return d.isCompact}}),Object.defineProperty(t,"isError",{enumerable:!0,get:function(){return h.isError}}),Object.defineProperty(t,"isFunction",{enumerable:!0,get:function(){return p.isFunction}}),Object.defineProperty(t,"isHex",{enumerable:!0,get:function(){return b.isHex}}),Object.defineProperty(t,"isInstanceOf",{enumerable:!0,get:function(){return y.isInstanceOf}}),Object.defineProperty(t,"isIp",{enumerable:!0,get:function(){return g.isIp}}),Object.defineProperty(t,"isJsonObject",{enumerable:!0,get:function(){return m.isJsonObject}}),Object.defineProperty(t,"isNull",{enumerable:!0,get:function(){return v.isNull}}),Object.defineProperty(t,"isNumber",{enumerable:!0,get:function(){return w.isNumber}}),Object.defineProperty(t,"isObject",{enumerable:!0,get:function(){return _.isObject}}),Object.defineProperty(t,"isObservable",{enumerable:!0,get:function(){return x.isObservable}}),Object.defineProperty(t,"isPromise",{enumerable:!0,get:function(){return O.isPromise}}),Object.defineProperty(t,"isString",{enumerable:!0,get:function(){return k.isString}}),Object.defineProperty(t,"isTestChain",{enumerable:!0,get:function(){return P.isTestChain}}),Object.defineProperty(t,"isToBigInt",{enumerable:!0,get:function(){return S.isToBigInt}}),Object.defineProperty(t,"isToBn",{enumerable:!0,get:function(){return A.isToBn}}),Object.defineProperty(t,"isU8a",{enumerable:!0,get:function(){return E.isU8a}}),Object.defineProperty(t,"isUndefined",{enumerable:!0,get:function(){return M.isUndefined}}),Object.defineProperty(t,"isUtf8",{enumerable:!0,get:function(){return j.isUtf8}}),Object.defineProperty(t,"isWasm",{enumerable:!0,get:function(){return T.isWasm}});var n=r(62629),i=r(76890),o=r(62016),a=r(42843),s=r(1147),u=r(72626),c=r(18342),f=r(99022),l=r(59263),d=r(88784),h=r(4719),p=r(35938),b=r(79236),y=r(79789),g=r(19254),m=r(28572),v=r(40168),w=r(75079),_=r(37024),x=r(22219),O=r(42891),k=r(85252),P=r(87091),S=r(66523),A=r(137),E=r(62918),M=r(21466),j=r(52077),T=r(58174)},79789:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInstanceOf=function(e,t){return(e&&e.constructor)===t||e instanceof t}},19254:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIp=function(e,t){switch(t){case"v4":return a.test(e);case"v6":return s.test(e);default:return o.test(e)}};const r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",i=`\n(?:\n(?:${n}:){7}(?:${n}|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:${n}:){6}(?:${r}|:${n}|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:${n}:){5}(?::${r}|(?::${n}){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:${n}:){4}(?:(?::${n}){0,1}:${r}|(?::${n}){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:${n}:){3}(?:(?::${n}){0,2}:${r}|(?::${n}){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:${n}:){2}(?:(?::${n}){0,3}:${r}|(?::${n}){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:${n}:){1}(?:(?::${n}){0,4}:${r}|(?::${n}){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::${n}){0,5}:${r}|(?::${n}){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n`.replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),o=new RegExp(`(?:^${r}$)|(?:^${i}$)`),a=new RegExp(`^${r}$`),s=new RegExp(`^${i}$`)},28572:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isJsonObject=function(e){const t="string"!=typeof e?(0,n.stringify)(e):e;try{const e=JSON.parse(t);return"object"==typeof e&&null!==e}catch(e){return!1}};var n=r(90523)},40168:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNull=function(e){return null===e}},75079:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNumber=function(e){return"number"==typeof e}},37024:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObject=function(e){return!!e&&"object"==typeof e}},22219:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObservable=void 0;const n=(0,r(88289).isOn)("next");t.isObservable=n},42891:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPromise=void 0;const n=(0,r(88289).isOnObject)("catch","then");t.isPromise=n},85252:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isString=function(e){return"string"==typeof e||e instanceof String}},87091:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isTestChain=function(e){return!!e&&!!r.test(e.toString())};const r=/(Development|Local Testnet)$/},66523:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isToBigInt=void 0;const n=(0,r(88289).isOn)("toBigInt");t.isToBigInt=n},137:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isToBn=void 0;const n=(0,r(88289).isOn)("toBn");t.isToBn=n},62918:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isU8a=function(e){return(e&&e.constructor)===Uint8Array||e instanceof Uint8Array}},21466:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isUndefined=function(e){return void 0===e}},52077:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isUtf8=function(e){if(!e)return(0,i.isString)(e);const t=(0,n.u8aToU8a)(e),r=t.length;let o=0;for(;o<r;)if(t[o]<=127)o+=1;else if(t[o]>=194&&t[o]<=223){if(!(o+1<r))return!1;if(t[o+1]<128||t[o+1]>191)return!1;o+=2}else if(224===t[o]){if(!(o+2<r))return!1;if(t[o+1]<160||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;o+=3}else if(t[o]>=225&&t[o]<=236){if(!(o+2<r))return!1;if(t[o+1]<128||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;o+=3}else if(237===t[o]){if(!(o+2<r))return!1;if(t[o+1]<128||t[o+1]>159)return!1;if(t[o+2]<128||t[o+2]>191)return!1;o+=3}else if(t[o]>=238&&t[o]<=239){if(!(o+2<r))return!1;if(t[o+1]<128||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;o+=3}else if(240===t[o]){if(!(o+3<r))return!1;if(t[o+1]<144||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;if(t[o+3]<128||t[o+3]>191)return!1;o+=4}else if(t[o]>=241&&t[o]<=243){if(!(o+3<r))return!1;if(t[o+1]<128||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;if(t[o+3]<128||t[o+3]>191)return!1;o+=4}else{if(244!==t[o])return!1;if(!(o+3<r))return!1;if(t[o+1]<128||t[o+1]>143)return!1;if(t[o+2]<128||t[o+2]>191)return!1;if(t[o+3]<128||t[o+3]>191)return!1;o+=4}return!0};var n=r(70606),i=r(85252)},58174:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isWasm=function(e){return(0,i.isU8a)(e)&&(0,n.u8aEq)(e.subarray(0,4),o)};var n=r(22263),i=r(62918);const o=new Uint8Array([0,97,115,109])},12766:(e,t)=>{"use strict";function r(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;const o=n?n(t,i):t.toString();let a;Object.defineProperty(e,o,{configurable:!0,enumerable:!0,get:function(){if(void 0===a){a=r(t,i,this);try{Object.defineProperty(this,o,{value:a})}catch(e){}}return a}})}Object.defineProperty(t,"__esModule",{value:!0}),t.lazyMethod=r,t.lazyMethods=function(e,t,n,i){for(let o=0;o<t.length;o++)r(e,t[o],n,i,o);return e}},6101:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.logger=function(e){const t=`${e.toUpperCase()}:`.padStart(16),[r,i]=function(e){const t=(d.hasProcess?n.xglobal.process:{}).env||{},r=parseInt(t.DEBUG_MAX||"-1",10);return[v((t.DEBUG||"").toLowerCase().split(","),e),isNaN(r)?-1:r]}(e.toLowerCase());return{debug:r?function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return b("debug",t,r,i)}:y,error:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return b("error",t,r)},log:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return b("log",t,r)},noop:y,warn:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return b("warn",t,r)}}},t.loggerFormat=p;var n=r(57335),i=r(89015),o=r(42843),a=r(1147),s=r(35938),u=r(37024),c=r(62918),f=r(61836),l=r(70606),d=r(20846);const h={debug:"log",error:"error",log:"log",warn:"warn"};function p(e){return Array.isArray(e)?e.map(p):(0,o.isBn)(e)?e.toString():(0,c.isU8a)(e)||(0,a.isBuffer)(e)?(0,f.u8aToHex)((0,l.u8aToU8a)(e)):function(e){if(e&&(0,u.isObject)(e)&&e.constructor===Object){const t={};for(const r of Object.keys(e))t[r]=p(e[r]);return t}return e}(e)}function b(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1;if(1===r.length&&(0,s.isFunction)(r[0])){const i=r[0]();return b(e,t,Array.isArray(i)?i:[i],n)}var o;console[h[e]]((0,i.formatDate)(new Date),t,...r.map(p).map((o=n,e=>{if(o<=0)return e;const t=`${e}`;return t.length<o?e:`${t.substring(0,o)} ...`})))}function y(){}function g(e,t){return!!e&&("*"===e||t===e||e.endsWith("*")&&t.startsWith(e.slice(0,-1)))}function m(e,t){return!!e&&e.startsWith("-")&&(t===e.slice(1)||e.endsWith("*")&&t.startsWith(e.slice(1,-1)))}function v(e,t){let r=!1;for(const n of e)g(n,t)?r=!0:m(n,t)&&(r=!1);return r}},27743:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.memoize=function(e){let{getInstanceId:t=i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r={},o=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];const s=(0,n.stringify)(o),u=t();return r[u]||(r[u]={}),void 0===r[u][s]&&(r[u][s]=e(...o)),r[u][s]};return o.unmemoize=function(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];const a=(0,n.stringify)(i),s=t();r[s]&&void 0!==r[s][a]&&delete r[s][a]},o};var n=r(90523);function i(){return"none"}},89019:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nextTick=function(e,t){setTimeout((()=>{Promise.resolve().then((()=>{e()})).catch((e=>{t?t(e):console.error(e)}))}),0)}},80086:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"numberToHex",{enumerable:!0,get:function(){return n.numberToHex}}),Object.defineProperty(t,"numberToU8a",{enumerable:!0,get:function(){return i.numberToU8a}});var n=r(92914),i=r(43926)},92914:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numberToHex=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;const r=(!e||Number.isNaN(e)?0:e).toString(16);return(0,n.hexFixLength)(r.length%2?`0${r}`:r,t,!0)};var n=r(54438)},43926:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numberToU8a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return(0,n.hexToU8a)((0,i.numberToHex)(e,t))};var n=r(51322),i=r(92914)},36236:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectClear=function(e){const t=Object.keys(e);for(let r=0;r<t.length;r++)delete e[t[r]];return e}},41271:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectCopy=function(e){return(0,n.objectSpread)({},e)};var n=r(31579)},31040:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectEntries=function(e){return Object.entries(e)}},83936:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"objectClear",{enumerable:!0,get:function(){return n.objectClear}}),Object.defineProperty(t,"objectCopy",{enumerable:!0,get:function(){return i.objectCopy}}),Object.defineProperty(t,"objectEntries",{enumerable:!0,get:function(){return o.objectEntries}}),Object.defineProperty(t,"objectKeys",{enumerable:!0,get:function(){return a.objectKeys}}),Object.defineProperty(t,"objectProperties",{enumerable:!0,get:function(){return s.objectProperties}}),Object.defineProperty(t,"objectProperty",{enumerable:!0,get:function(){return s.objectProperty}}),Object.defineProperty(t,"objectSpread",{enumerable:!0,get:function(){return u.objectSpread}}),Object.defineProperty(t,"objectValues",{enumerable:!0,get:function(){return c.objectValues}});var n=r(36236),i=r(41271),o=r(31040),a=r(13476),s=r(90947),u=r(31579),c=r(96181)},13476:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectKeys=function(e){return Object.keys(e)}},90947:(e,t)=>{"use strict";function r(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;const o=n?n(t,i):t;o in e||Object.defineProperty(e,o,{enumerable:!0,get:function(){return r(t,i,this)}})}Object.defineProperty(t,"__esModule",{value:!0}),t.objectProperties=function(e,t,n,i){for(let o=0;o<t.length;o++)r(e,t[o],n,i,o)},t.objectProperty=r},31579:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectSpread=function(e){for(let t=0;t<(arguments.length<=1?0:arguments.length-1);t++){const r=t+1<1||arguments.length<=t+1?void 0:arguments[t+1];if(r)if("function"==typeof r.entries)for(const[t,n]of r.entries())e[t]=n;else Object.assign(e,r)}return e}},96181:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectValues=function(e){return Object.values(e)}},94159:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/util",path:"/",type:"cjs",version:"10.4.1"}},4132:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.promisify=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return new Promise(((r,i)=>{t.apply(e,n.concat(((e,t)=>{e?i(e):r(t)})))}))}},32486:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringPascalCase=t.stringCamelCase=t.CC_TO_UP=t.CC_TO_LO=void 0;const r=new Array(256);t.CC_TO_UP=r;const n=new Array(256);t.CC_TO_LO=n;for(let e=0;e<r.length;e++)n[e]=String.fromCharCode(e).toLowerCase(),r[e]=String.fromCharCode(e).toUpperCase();function i(e){return e.slice(0,e.length-1).toLowerCase()+r[e.charCodeAt(e.length-1)]}function o(e){return t=>{const r=t.replace(/[-_., ]+/g," ").trim().split(" "),n=r.length;let o="";for(let t=0;t<n;t++){const n=r[t];o+=e(/^[\dA-Z]+$/.test(n)?n.toLowerCase():n.replace(/^[\dA-Z]{2,}[^a-z]/,i),t)}return o}}const a=o(((e,t)=>(t?r[e.charCodeAt(0)]:n[e.charCodeAt(0)])+e.slice(1)));t.stringCamelCase=a;const s=o((e=>r[e.charCodeAt(0)]+e.slice(1)));t.stringPascalCase=s},64550:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"stringCamelCase",{enumerable:!0,get:function(){return n.stringCamelCase}}),Object.defineProperty(t,"stringLowerFirst",{enumerable:!0,get:function(){return i.stringLowerFirst}}),Object.defineProperty(t,"stringPascalCase",{enumerable:!0,get:function(){return n.stringPascalCase}}),Object.defineProperty(t,"stringShorten",{enumerable:!0,get:function(){return o.stringShorten}}),Object.defineProperty(t,"stringToHex",{enumerable:!0,get:function(){return a.stringToHex}}),Object.defineProperty(t,"stringToU8a",{enumerable:!0,get:function(){return s.stringToU8a}}),Object.defineProperty(t,"stringUpperFirst",{enumerable:!0,get:function(){return i.stringUpperFirst}});var n=r(32486),i=r(62022),o=r(39722),a=r(65625),s=r(39732)},62022:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringUpperFirst=t.stringLowerFirst=void 0;var n=r(32486);function i(e){return t=>t?e[t.charCodeAt(0)]+t.slice(1):""}const o=i(n.CC_TO_LO);t.stringLowerFirst=o;const a=i(n.CC_TO_UP);t.stringUpperFirst=a},39722:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringShorten=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return e.length<=2+2*t?e.toString():`${e.substring(0,t)}…${e.slice(-t)}`}},65625:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringToHex=function(e){return(0,n.u8aToHex)((0,i.stringToU8a)(e))};var n=r(61836),i=r(39732)},39732:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringToU8a=function(e){return e?n.encode(e.toString()):new Uint8Array};const n=new(r(91865).TextEncoder)},90523:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=function(e,t){return JSON.stringify(e,i,t)};var n=r(62016);function i(e,t){return(0,n.isBigInt)(t)?t.toString():t}},79291:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aCmp=function(e,t){const r=(0,n.u8aToU8a)(e),i=(0,n.u8aToU8a)(t);let o=0;for(;;){const e=o>=r.length,t=o>=i.length;if(e&&t)return 0;if(e)return-1;if(t)return 1;if(r[o]!==i[o])return r[o]>i[o]?1:-1;o++}};var n=r(70606)},70196:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aConcat=function(){const e=new Array(arguments.length);let t=0;for(let r=0;r<arguments.length;r++)e[r]=(0,n.u8aToU8a)(r<0||arguments.length<=r?void 0:arguments[r]),t+=e[r].length;return i(e,t)},t.u8aConcatStrict=i;var n=r(70606);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=0;if(!t)for(let r=0;r<e.length;r++)t+=e[r].length;const n=new Uint8Array(t);for(let t=0;t<e.length;t++)n.set(e[t],r),r+=e[t].length;return n}},89581:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aEmpty=function(e){const t=0|e.length;for(let r=0;r<t;r++)if(0|e[r])return!1;return!0}},22263:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aEq=function(e,t){const r=(0,n.u8aToU8a)(e),i=(0,n.u8aToU8a)(t);if(r.length===i.length){const e=new DataView(r.buffer,r.byteOffset),t=new DataView(i.buffer,i.byteOffset),n=r.length%4|0,o=r.length-n|0;for(let r=0;r<o;r+=4)if(e.getUint32(r)!==t.getUint32(r))return!1;for(let e=o;e<r.length;e++)if(r[e]!==i[e])return!1;return!0}return!1};var n=r(70606)},23931:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aFixLength=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n=Math.ceil(t/8);if(-1===t||e.length===n)return e;if(e.length>n)return e.subarray(0,n);const i=new Uint8Array(n);return i.set(e,r?0:n-e.length),i}},17476:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"U8A_WRAP_ETHEREUM",{enumerable:!0,get:function(){return g.U8A_WRAP_ETHEREUM}}),Object.defineProperty(t,"U8A_WRAP_POSTFIX",{enumerable:!0,get:function(){return g.U8A_WRAP_POSTFIX}}),Object.defineProperty(t,"U8A_WRAP_PREFIX",{enumerable:!0,get:function(){return g.U8A_WRAP_PREFIX}}),Object.defineProperty(t,"u8aCmp",{enumerable:!0,get:function(){return n.u8aCmp}}),Object.defineProperty(t,"u8aConcat",{enumerable:!0,get:function(){return i.u8aConcat}}),Object.defineProperty(t,"u8aConcatStrict",{enumerable:!0,get:function(){return i.u8aConcatStrict}}),Object.defineProperty(t,"u8aEmpty",{enumerable:!0,get:function(){return o.u8aEmpty}}),Object.defineProperty(t,"u8aEq",{enumerable:!0,get:function(){return a.u8aEq}}),Object.defineProperty(t,"u8aFixLength",{enumerable:!0,get:function(){return s.u8aFixLength}}),Object.defineProperty(t,"u8aIsWrapped",{enumerable:!0,get:function(){return g.u8aIsWrapped}}),Object.defineProperty(t,"u8aSorted",{enumerable:!0,get:function(){return c.u8aSorted}}),Object.defineProperty(t,"u8aToBigInt",{enumerable:!0,get:function(){return f.u8aToBigInt}}),Object.defineProperty(t,"u8aToBn",{enumerable:!0,get:function(){return l.u8aToBn}}),Object.defineProperty(t,"u8aToBuffer",{enumerable:!0,get:function(){return d.u8aToBuffer}}),Object.defineProperty(t,"u8aToFloat",{enumerable:!0,get:function(){return u.u8aToFloat}}),Object.defineProperty(t,"u8aToHex",{enumerable:!0,get:function(){return h.u8aToHex}}),Object.defineProperty(t,"u8aToNumber",{enumerable:!0,get:function(){return p.u8aToNumber}}),Object.defineProperty(t,"u8aToString",{enumerable:!0,get:function(){return b.u8aToString}}),Object.defineProperty(t,"u8aToU8a",{enumerable:!0,get:function(){return y.u8aToU8a}}),Object.defineProperty(t,"u8aUnwrapBytes",{enumerable:!0,get:function(){return g.u8aUnwrapBytes}}),Object.defineProperty(t,"u8aWrapBytes",{enumerable:!0,get:function(){return g.u8aWrapBytes}});var n=r(79291),i=r(70196),o=r(89581),a=r(22263),s=r(23931),u=r(13982),c=r(58109),f=r(16831),l=r(80392),d=r(45302),h=r(61836),p=r(68105),b=r(34970),y=r(70606),g=r(65247)},58109:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aSorted=function(e){return e.sort(n.u8aCmp)};var n=r(79291)},16831:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToBigInt=function(e){let{isLe:t=!0,isNegative:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||!e.length)return(0,n.BigInt)(0);const s=t?e:e.reverse(),u=new DataView(s.buffer,s.byteOffset),c=s.length%2;let f=(0,n.BigInt)(0);if(r){for(let e=s.length-2;e>=c;e-=2)f=f*a+(0,n.BigInt)(65535^u.getUint16(e,!0));c&&(f=f*o+(0,n.BigInt)(255^u.getUint8(0)))}else{for(let e=s.length-2;e>=c;e-=2)f=f*a+(0,n.BigInt)(u.getUint16(e,!0));c&&(f=f*o+(0,n.BigInt)(u.getUint8(0)))}return r?f*-i._1n-i._1n:f};var n=r(92016),i=r(50040);const o=(0,n.BigInt)(256),a=(0,n.BigInt)(65536)},80392:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToBn=function(e){let{isLe:t=!0,isNegative:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=e.length;if(i<=6){if(r){let r=0;if(t)switch(i){case 0:return new n.BN(0);case 1:r=255^e[0];break;case 2:r=e[0]+(e[1]<<8)^65535;break;case 3:r=e[0]+(e[1]<<8)+(e[2]<<16)^16777215;break;case 4:r=e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295;break;case 5:r=(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295)+4294967296*(255^e[4]);break;default:r=(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295)+4294967296*(e[4]+(e[5]<<8)^65535)}else for(let t=0;t<i;t++)r=256*r+(255^e[t]);return i?new n.BN(-1*r-1):new n.BN(0)}if(!t){let t=0;for(let r=0;r<i;r++)t=256*t+e[r];return new n.BN(t)}switch(i){case 0:return new n.BN(0);case 1:return new n.BN(e[0]);case 2:return new n.BN(e[0]+(e[1]<<8));case 3:return new n.BN(e[0]+(e[1]<<8)+(e[2]<<16));case 4:return new n.BN(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]);case 5:return new n.BN(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*(e[3]+(e[4]<<8)));default:return new n.BN(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*(e[3]+(e[4]<<8)+(e[5]<<16)))}}return r?new n.BN(e,t?"le":"be").fromTwos(8*e.length):new n.BN(e,t?"le":"be")};var n=r(16898)},45302:(e,t,r)=>{"use strict";var n=r(48764).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToBuffer=function(e){return n.from(e||[])}},13982:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToFloat=function(e){let{bitLength:t=32,isLe:r=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(32!==t&&64!==t)throw new Error("Invalid bitLength provided, expected 32 or 64");if(e.length<t/8)throw new Error(`Invalid input buffer provided, expected at least ${t/8} bytes, found ${e.length}`);const n=new DataView(e.buffer,e.byteOffset);return 32===t?n.getFloat32(0,r):n.getFloat64(0,r)}},61836:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToHex=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;const r=arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?"":"0x";if(!e||!e.length)return r;if(t>0){const n=Math.ceil(t/8);if(e.length>n)return`${i(e.subarray(0,n/2),r)}…${i(e.subarray(e.length-n/2),"")}`}return i(e,r)};const r=new Array(256),n=new Array(65536);for(let e=0;e<256;e++)r[e]=e.toString(16).padStart(2,"0");for(let e=0;e<256;e++){const t=e<<8;for(let i=0;i<256;i++)n[t|i]=r[e]+r[i]}function i(e,t){const i=e.length%2|0,o=e.length-i|0;for(let r=0;r<o;r+=2)t+=n[e[r]<<8|e[r+1]];return i&&(t+=r[0|e[o]]),t}},68105:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToNumber=function(e){let{isNegative:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=e.length;if(t){let t=0;switch(r){case 0:return 0;case 1:t=255^e[0];break;case 2:t=e[0]+(e[1]<<8)^65535;break;case 3:t=e[0]+(e[1]<<8)+(e[2]<<16)^16777215;break;case 4:t=e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295;break;case 5:t=(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295)+4294967296*(255^e[4]);break;case 6:t=(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295)+4294967296*(e[4]+(e[5]<<8)^65535);break;default:throw new Error("Value more than 48-bits cannot be reliably converted")}return-1*t-1}switch(r){case 0:return 0;case 1:return e[0];case 2:return e[0]+(e[1]<<8);case 3:return e[0]+(e[1]<<8)+(e[2]<<16);case 4:return e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3];case 5:return e[0]+(e[1]<<8)+(e[2]<<16)+16777216*(e[3]+(e[4]<<8));case 6:return e[0]+(e[1]<<8)+(e[2]<<16)+16777216*(e[3]+(e[4]<<8)+(e[5]<<16));default:throw new Error("Value more than 48-bits cannot be reliably converted")}}},34970:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToString=function(e){return e?n.decode(e):""};const n=new(r(90480).TextDecoder)("utf-8")},70606:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToU8a=function(e){return(0,a.isU8a)(e)?e:(0,o.isHex)(e)?(0,n.hexToU8a)(e):(0,i.isBuffer)(e)||Array.isArray(e)?new Uint8Array(e):(0,s.stringToU8a)(e)};var n=r(51322),i=r(1147),o=r(79236),a=r(62918),s=r(39732)},65247:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.U8A_WRAP_PREFIX=t.U8A_WRAP_POSTFIX=t.U8A_WRAP_ETHEREUM=void 0,t.u8aIsWrapped=f,t.u8aUnwrapBytes=function(e){const t=(0,o.u8aToU8a)(e);return f(t,!1)?t.subarray(s.length,t.length-u.length):t},t.u8aWrapBytes=function(e){const t=(0,o.u8aToU8a)(e);return f(t,!0)?t:(0,n.u8aConcatStrict)([s,t,u])};var n=r(70196),i=r(22263),o=r(70606);const a=(0,o.u8aToU8a)("Ethereum Signed Message:\n");t.U8A_WRAP_ETHEREUM=a;const s=(0,o.u8aToU8a)("<Bytes>");t.U8A_WRAP_PREFIX=s;const u=(0,o.u8aToU8a)("</Bytes>");t.U8A_WRAP_POSTFIX=u;const c=s.length+u.length;function f(e,t){return e.length>=c&&(0,i.u8aEq)(e.subarray(0,s.length),s)&&(0,i.u8aEq)(e.slice(-u.length),u)||t&&e.length>=a.length&&(0,i.u8aEq)(e.subarray(0,a.length),a)}},51829:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.detectPackage=function(e,t){let{name:r,path:i,type:o,version:f}=e,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!r.startsWith("@polkadot"))throw new Error(`Invalid package descriptor ${r}`);const d=function(e){const t=n.xglobal;return t.__polkadotjs||(t.__polkadotjs={}),t.__polkadotjs[e]||(t.__polkadotjs[e]=[]),t.__polkadotjs[e]}(r);if(d.push({path:u(i,t),type:o,version:f}),1!==d.length)c(`${r} has multiple versions, ensure that there is only one installed.`,d,s);else{const e=l.filter((e=>e&&e.version!==f));e.length&&c(`${r} requires direct dependencies exactly matching version ${f}.`,e,a)}};var n=r(57335),i=r(35938);const o="Either remove and explicitly install matching versions or dedupe using your package manager.\nThe following conflicting packages were found:";function a(e,t){let{name:r}=t;return[e,r]}function s(e,t){let r,{path:n,type:i}=t;if(n&&n.length>=5){const e=n.indexOf("node_modules");r=-1===e?n:n.substring(e)}else r="<unknown>";return[`${`${i||""}`.padStart(3)} ${e}`,r]}function u(e,t){if(e)return e;if((0,i.isFunction)(t))try{return t()||""}catch(e){return""}return t||""}function c(e,t,r){console.warn(`${e}\n${o}\n${function(e,t){let r=0;for(let t=0;t<e.length;t++)r=Math.max(r,e[t].version.length);return e.map((e=>`\t${t(e.version.padEnd(r),e).join("\t")}`)).join("\n")}(t,r)}`)}},92016:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BigInt=void 0,Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return i.packageInfo}});var n=r(57335),i=r(89857);const o="function"==typeof n.xglobal.BigInt&&"function"==typeof n.xglobal.BigInt.asIntN?n.xglobal.BigInt:()=>Number.NaN;t.BigInt=o},89857:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-bigint",path:"/",type:"cjs",version:"10.4.1"}},57335:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exposeGlobal=function(e,t){void 0===i[e]&&(i[e]=t)},t.extractGlobal=function(e,t){return void 0===i[e]?t:i[e]},Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return n.packageInfo}}),t.xglobal=void 0;var n=r(60373);const i="undefined"!=typeof globalThis?globalThis:void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this");t.xglobal=i},60373:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-global",path:"/",type:"cjs",version:"10.4.1"}},90480:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextDecoder=void 0,Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return o.packageInfo}});var n=r(57335),i=r(15813),o=r(27210);const a=(0,n.extractGlobal)("TextDecoder",i.TextDecoder);t.TextDecoder=a},15813:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728));Object.defineProperty(t,"__esModule",{value:!0}),t.TextDecoder=void 0;let a=function(){function e(t){(0,i.default)(this,e)}return(0,o.default)(e,[{key:"decode",value:function(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t}}]),e}();t.TextDecoder=a},27210:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-textdecoder",path:"/",type:"cjs",version:"10.4.1"}},91865:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextEncoder=void 0,Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return o.packageInfo}});var n=r(57335),i=r(7277),o=r(10667);const a=(0,n.extractGlobal)("TextEncoder",i.TextEncoder);t.TextEncoder=a},7277:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728));Object.defineProperty(t,"__esModule",{value:!0}),t.TextEncoder=void 0;let a=function(){function e(){(0,i.default)(this,e)}return(0,o.default)(e,[{key:"encode",value:function(e){const t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}}]),e}();t.TextEncoder=a},10667:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-textencoder",path:"/",type:"cjs",version:"10.4.1"}},39094:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(41588)),s=n(r(61655)),u=n(r(94993)),c=n(r(73808)),f=n(r(33496));Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractArray=void 0;var l=r(9498),d=r(40557);let h=function(e,t){(0,s.default)(h,e);var r,n,f=(r=h,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=(0,c.default)(r);if(n){var i=(0,c.default)(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return(0,u.default)(this,e)});function h(e,t){var r;return(0,i.default)(this,h),(r=f.call(this,t)).registry=e,r}return(0,o.default)(h,[{key:"encodedLength",get:function(){let e=(0,l.compactToU8a)(this.length).length;for(let t=0;t<this.length;t++)e+=this[t].encodedLength;return e}},{key:"hash",get:function(){return this.registry.hash(this.toU8a())}},{key:"isEmpty",get:function(){return 0===this.length}},{key:"length",get:function(){return(0,a.default)((0,c.default)(h.prototype),"length",this)}},{key:"eq",value:function(e){return(0,d.compareArray)(this,e)}},{key:"inspect",value:function(){return{inner:this.inspectInner(),outer:[(0,l.compactToU8a)(this.length)]}}},{key:"inspectInner",value:function(){const e=new Array(this.length);for(let t=0;t<this.length;t++)e[t]=this[t].inspect();return e}},{key:"toArray",value:function(){return Array.from(this)}},{key:"toHex",value:function(){return(0,l.u8aToHex)(this.toU8a())}},{key:"toHuman",value:function(e){const t=new Array(this.length);for(let r=0;r<this.length;r++)t[r]=this[r]&&this[r].toHuman(e);return t}},{key:"toJSON",value:function(){const e=new Array(this.length);for(let t=0;t<this.length;t++)e[t]=this[t]&&this[t].toJSON();return e}},{key:"toPrimitive",value:function(){const e=new Array(this.length);for(let t=0;t<this.length;t++)e[t]=this[t]&&this[t].toPrimitive();return e}},{key:"toString",value:function(){const e=new Array(this.length);for(let t=0;t<this.length;t++)e[t]=this[t].toString();return`[${e.join(", ")}]`}},{key:"toU8a",value:function(e){const t=this.toU8aInner();return e?(0,l.u8aConcatStrict)(t):(0,l.u8aConcatStrict)([(0,l.compactToU8a)(this.length),...t])}},{key:"toU8aInner",value:function(e){const t=new Array(this.length);for(let r=0;r<this.length;r++)t[r]=this[r].toU8a(e);return t}}],[{key:t,get:function(){return Array}}]),h}((0,f.default)(Array),Symbol.species);t.AbstractArray=h},37880:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(29399)),s=n(r(40426));Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractBase=void 0;var u=(0,s.default)("raw");let c=function(){function e(t,r,n){(0,i.default)(this,e),Object.defineProperty(this,u,{writable:!0,value:void 0}),this.initialU8aLength=n,(0,a.default)(this,u)[u]=r,this.registry=t}return(0,o.default)(e,[{key:"encodedLength",get:function(){return this.toU8a().length}},{key:"hash",get:function(){return this.registry.hash(this.toU8a())}},{key:"inner",get:function(){return(0,a.default)(this,u)[u]}},{key:"isEmpty",get:function(){return(0,a.default)(this,u)[u].isEmpty}},{key:"eq",value:function(e){return(0,a.default)(this,u)[u].eq(e)}},{key:"inspect",value:function(){return(0,a.default)(this,u)[u].inspect()}},{key:"toHex",value:function(e){return(0,a.default)(this,u)[u].toHex(e)}},{key:"toHuman",value:function(e){return(0,a.default)(this,u)[u].toHuman(e)}},{key:"toJSON",value:function(){return(0,a.default)(this,u)[u].toJSON()}},{key:"toPrimitive",value:function(){return(0,a.default)(this,u)[u].toPrimitive()}},{key:"toString",value:function(){return(0,a.default)(this,u)[u].toString()}},{key:"toU8a",value:function(e){return(0,a.default)(this,u)[u].toU8a(e)}},{key:"unwrap",value:function(){return(0,a.default)(this,u)[u]}},{key:"valueOf",value:function(){return(0,a.default)(this,u)[u]}}]),e}();t.AbstractBase=c},24949:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(66115)),s=n(r(61655)),u=n(r(94993)),c=n(r(41588)),f=n(r(73808)),l=n(r(29399)),d=n(r(40426));Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_UINT_BITS=t.AbstractInt=void 0;var h=r(9498);t.DEFAULT_UINT_BITS=64;const p=new h.BN(1e4),b=[["Perquintill",h.BN_QUINTILL],["Perbill",h.BN_BILLION],["Permill",h.BN_MILLION],["Percent",h.BN_HUNDRED]];function y(e,t){if((0,h.isNumber)(e)){if(!Number.isInteger(e)||e>Number.MAX_SAFE_INTEGER||e<Number.MIN_SAFE_INTEGER)throw new Error("Number needs to be an integer <= Number.MAX_SAFE_INTEGER, i.e. 2 ^ 53 - 1");return e}if((0,h.isString)(e)){if((0,h.isHex)(e,-1,!0))return(0,h.hexToBn)(e,{isLe:!1,isNegative:t}).toString();if(e.includes(".")||e.includes(",")||e.includes("e"))throw new Error("String should not contain decimal points or scientific notation");return e}if((0,h.isBn)(e)||(0,h.isBigInt)(e))return e.toString();if((0,h.isObject)(e)){if(function(e){return(0,h.isFunction)(e.toBn)}(e))return e.toBn().toString();const r=Object.keys(e);if(1!==r.length)throw new Error("Unable to construct number from multi-key object");return y(e[r[0]],t)}if(!e)return 0;throw new Error("Unable to create BN from unknown type "+typeof e)}var g=(0,d.default)("bitLength");let m=function(e){(0,s.default)(d,e);var t,r,n=(t=d,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,f.default)(t);if(r){var i=(0,f.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,u.default)(this,e)});function d(e){var t,r,o;(0,i.default)(this,d);let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:64,p=arguments.length>3&&void 0!==arguments[3]&&arguments[3];o=n.call(this,(0,h.isU8a)(s)?u<=48?(0,h.u8aToNumber)(s.subarray(0,u/8),{isNegative:p}):(0,h.u8aToBn)(s.subarray(0,u/8),{isLe:!0,isNegative:p}).toString():y(s,p)),Object.defineProperty((0,a.default)(o),g,{writable:!0,value:void 0}),o.registry=e,(0,l.default)((0,a.default)(o),g)[g]=u,o.encodedLength=(0,l.default)((0,a.default)(o),g)[g]/8,o.initialU8aLength=(0,l.default)((0,a.default)(o),g)[g]/8,o.isUnsigned=!p;const b=o.isNeg(),m=u-(p&&!b?1:0);if(b&&!p)throw new Error(`${o.toRawType()}: Negative number passed to unsigned type`);if((0,c.default)((t=(0,a.default)(o),(0,f.default)(d.prototype)),"bitLength",t).call(t)>m)throw new Error(`${o.toRawType()}: Input too large. Found input with ${(0,c.default)((r=(0,a.default)(o),(0,f.default)(d.prototype)),"bitLength",r).call(r)} bits, expected ${m}`);return o}return(0,o.default)(d,[{key:"hash",get:function(){return this.registry.hash(this.toU8a())}},{key:"isEmpty",get:function(){return this.isZero()}},{key:"bitLength",value:function(){return(0,l.default)(this,g)[g]}},{key:"eq",value:function(e){return(0,c.default)((0,f.default)(d.prototype),"eq",this).call(this,(0,h.isHex)(e)?(0,h.hexToBn)(e.toString(),{isLe:!1,isNegative:!this.isUnsigned}):(0,h.bnToBn)(e))}},{key:"inspect",value:function(){return{outer:[this.toU8a()]}}},{key:"isMax",value:function(){return this.toU8a().filter((e=>255===e)).length===(0,l.default)(this,g)[g]/8}},{key:"toBigInt",value:function(){return BigInt(this.toString())}},{key:"toBn",value:function(){return this}},{key:"toHex",value:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,h.bnToHex)(this,{bitLength:this.bitLength(),isLe:e,isNegative:!this.isUnsigned})}},{key:"toHuman",value:function(e){const t=this.toRawType();if("Balance"===t)return this.isMax()?"everything":(0,h.formatBalance)(this,{decimals:this.registry.chainDecimals[0],withSi:!0,withUnit:this.registry.chainTokens[0]});const[,r]=b.find((e=>{let[r]=e;return r===t}))||[];return r?function(e,t){return`${(e.mul(p).div(t).toNumber()/100).toFixed(2)}%`}(this,r):(0,h.formatNumber)(this)}},{key:"toJSON",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]||(0,c.default)((0,f.default)(d.prototype),"bitLength",this).call(this)>52?this.toHex():this.toNumber()}},{key:"toPrimitive",value:function(){return(0,c.default)((0,f.default)(d.prototype),"bitLength",this).call(this)>52?this.toString():this.toNumber()}},{key:"toRawType",value:function(){return this instanceof this.registry.createClassUnsafe("Balance")?"Balance":`${this.isUnsigned?"u":"i"}${this.bitLength()}`}},{key:"toString",value:function(e){return(0,c.default)((0,f.default)(d.prototype),"toString",this).call(this,e)}},{key:"toU8a",value:function(e){return(0,h.bnToU8a)(this,{bitLength:this.bitLength(),isLe:!0,isNegative:!this.isUnsigned})}}]),d}(h.BN);t.AbstractInt=m},70629:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AbstractArray",{enumerable:!0,get:function(){return n.AbstractArray}}),Object.defineProperty(t,"AbstractBase",{enumerable:!0,get:function(){return i.AbstractBase}}),Object.defineProperty(t,"AbstractInt",{enumerable:!0,get:function(){return o.AbstractInt}});var n=r(39094),i=r(37880),o=r(24949)},756:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(61655)),o=n(r(94993)),a=n(r(73808)),s=n(r(56690)),u=n(r(89728)),c=n(r(29399)),f=n(r(40426));Object.defineProperty(t,"__esModule",{value:!0}),t.Compact=void 0;var l=r(9498),d=r(15450);function h(e){return e}function p(e,t,r){if((0,l.isU8a)(r)){const[n,i]=(3&r[0])<3?(0,l.compactFromU8aLim)(r):(0,l.compactFromU8a)(r);return[new t(e,i),n]}if(r instanceof g){const n=r.unwrap();return n instanceof t?[n,0]:[new t(e,n),0]}return r instanceof t?[r,0]:[new t(e,r),0]}var b=(0,f.default)("Type"),y=(0,f.default)("raw");let g=function(){function e(t,r){(0,s.default)(this,e),Object.defineProperty(this,b,{writable:!0,value:void 0}),Object.defineProperty(this,y,{writable:!0,value:void 0});let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,{definition:i,setDefinition:o=h}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this.registry=t,(0,c.default)(this,b)[b]=i||o((0,d.typeToConstructor)(t,r));const[a,u]=p(t,(0,c.default)(this,b)[b],n);this.initialU8aLength=u,(0,c.default)(this,y)[y]=a}return(0,u.default)(e,[{key:"encodedLength",get:function(){return this.toU8a().length}},{key:"hash",get:function(){return this.registry.hash(this.toU8a())}},{key:"isEmpty",get:function(){return(0,c.default)(this,y)[y].isEmpty}},{key:"bitLength",value:function(){return(0,c.default)(this,y)[y].bitLength()}},{key:"eq",value:function(t){return(0,c.default)(this,y)[y].eq(t instanceof e?(0,c.default)(t,y)[y]:t)}},{key:"inspect",value:function(){return{outer:[this.toU8a()]}}},{key:"toBigInt",value:function(){return(0,c.default)(this,y)[y].toBigInt()}},{key:"toBn",value:function(){return(0,c.default)(this,y)[y].toBn()}},{key:"toHex",value:function(e){return(0,c.default)(this,y)[y].toHex(e)}},{key:"toHuman",value:function(e){return(0,c.default)(this,y)[y].toHuman(e)}},{key:"toJSON",value:function(){return(0,c.default)(this,y)[y].toJSON()}},{key:"toNumber",value:function(){return(0,c.default)(this,y)[y].toNumber()}},{key:"toPrimitive",value:function(){return(0,c.default)(this,y)[y].toPrimitive()}},{key:"toRawType",value:function(){return`Compact<${this.registry.getClassName((0,c.default)(this,b)[b])||(0,c.default)(this,y)[y].toRawType()}>`}},{key:"toString",value:function(){return(0,c.default)(this,y)[y].toString()}},{key:"toU8a",value:function(e){return(0,l.compactToU8a)((0,c.default)(this,y)[y].toBn())}},{key:"unwrap",value:function(){return(0,c.default)(this,y)[y]}}],[{key:"with",value:function(t){let r;const n=e=>r=e;return function(e){(0,i.default)(d,e);var c,f,l=(c=d,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=(0,a.default)(c);if(f){var r=(0,a.default)(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return(0,o.default)(this,e)});function d(e,i){return(0,s.default)(this,d),l.call(this,e,t,i,{definition:r,setDefinition:n})}return(0,u.default)(d)}(e)}}]),e}();t.Compact=g},57202:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(61655)),o=n(r(94993)),a=n(r(73808)),s=n(r(56690)),u=n(r(89728)),c=n(r(29399)),f=n(r(40426));Object.defineProperty(t,"__esModule",{value:!0}),t.DoNotConstruct=void 0;var l=(0,f.default)("neverError");let d=function(){function e(t){(0,s.default)(this,e),Object.defineProperty(this,l,{writable:!0,value:void 0});let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"DoNotConstruct";throw this.registry=t,(0,c.default)(this,l)[l]=new Error(`DoNotConstruct: Cannot construct unknown type ${r}`),(0,c.default)(this,l)[l]}return(0,u.default)(e,[{key:"encodedLength",get:function(){throw(0,c.default)(this,l)[l]}},{key:"hash",get:function(){throw(0,c.default)(this,l)[l]}},{key:"isEmpty",get:function(){throw(0,c.default)(this,l)[l]}},{key:"eq",value:function(){throw(0,c.default)(this,l)[l]}},{key:"inspect",value:function(){throw(0,c.default)(this,l)[l]}},{key:"toHex",value:function(){throw(0,c.default)(this,l)[l]}},{key:"toHuman",value:function(){throw(0,c.default)(this,l)[l]}},{key:"toJSON",value:function(){throw(0,c.default)(this,l)[l]}},{key:"toPrimitive",value:function(){throw(0,c.default)(this,l)[l]}},{key:"toRawType",value:function(){throw(0,c.default)(this,l)[l]}},{key:"toString",value:function(){throw(0,c.default)(this,l)[l]}},{key:"toU8a",value:function(){throw(0,c.default)(this,l)[l]}}],[{key:"with",value:function(t){return function(e){(0,i.default)(f,e);var r,n,c=(r=f,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=(0,a.default)(r);if(n){var i=(0,a.default)(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return(0,o.default)(this,e)});function f(e){return(0,s.default)(this,f),c.call(this,e,t)}return(0,u.default)(f)}(e)}}]),e}();t.DoNotConstruct=d},90831:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(61655)),o=n(r(94993)),a=n(r(73808)),s=n(r(56690)),u=n(r(89728)),c=n(r(29399)),f=n(r(40426));Object.defineProperty(t,"__esModule",{value:!0}),t.Enum=void 0;var l=r(9498),d=r(15450),h=r(20887);function p(e){return e}function b(e,t){const r=Object.values(e);for(let e=0;e<r.length;e++){const{Type:n,index:i}=r[e];if(i===t)return n}throw new Error(`Unable to create Enum via index ${t}, in ${Object.keys(e).join(", ")}`)}function y(e,t,r,n){return{index:r,value:new(b(t,r))(e,n)}}function g(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3?arguments[3]:void 0;const i=b(t,r);return{index:r,value:n instanceof i?n:new i(e,n)}}function m(e,t,r,n){const i=Object.keys(t).map((e=>e.toLowerCase())),o=r.toLowerCase(),a=i.indexOf(o);if(-1===a)throw new Error(`Cannot map Enum JSON, unable to find '${r}' in ${i.join(", ")}`);try{return g(e,t,Object.values(t)[a].index,n)}catch(e){throw new Error(`Enum(${r}):: ${e.message}`)}}function v(e,t,r,n){if((0,l.isNumber)(n))return g(e,t,n,r);if((0,l.isU8a)(r)||(0,l.isHex)(r)){const n=(0,l.u8aToU8a)(r);if(n.length)return y(e,t,n[0],n.subarray(1))}else{if(r instanceof S)return g(e,t,r.index,r.value);if((0,l.isNumber)(r))return g(e,t,r);if((0,l.isString)(r))return m(e,t,r.toString());if((0,l.isObject)(r)){const n=Object.keys(r)[0];return m(e,t,n,r[n])}}return g(e,t,Object.values(t)[0].index)}var w=(0,f.default)("def"),_=(0,f.default)("entryIndex"),x=(0,f.default)("indexes"),O=(0,f.default)("isBasic"),k=(0,f.default)("isIndexed"),P=(0,f.default)("raw");let S=function(){function e(t,r,n,i){(0,s.default)(this,e),Object.defineProperty(this,w,{writable:!0,value:void 0}),Object.defineProperty(this,_,{writable:!0,value:void 0}),Object.defineProperty(this,x,{writable:!0,value:void 0}),Object.defineProperty(this,O,{writable:!0,value:void 0}),Object.defineProperty(this,k,{writable:!0,value:void 0}),Object.defineProperty(this,P,{writable:!0,value:void 0});let{definition:o,setDefinition:a=p}=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};const{def:u,isBasic:f,isIndexed:b}=o||a(function(e,t){const r={};let n,i;if(Array.isArray(t)){for(let e=0;e<t.length;e++)r[t[e]]={Type:h.Null,index:e};n=!0,i=!1}else if(function(e){const t=Object.values(e);if(t.some((e=>(0,l.isNumber)(e)))){if(!t.every((e=>(0,l.isNumber)(e)&&e>=0&&e<=255)))throw new Error("Invalid number-indexed enum definition");return!1}return!0}(t)){const[o,a]=(0,d.mapToTypeMap)(e,t);for(let e=0;e<a.length;e++)r[a[e]]={Type:o[e],index:e};n=!Object.values(r).some((e=>{let{Type:t}=e;return t!==h.Null})),i=!1}else{const e=Object.entries(t);for(let t=0;t<e.length;t++){const[n,i]=e[t];r[n]={Type:h.Null,index:i}}n=!0,i=!0}return{def:r,isBasic:n,isIndexed:i}}(t,r)),g=(0,l.isU8a)(n)&&n.length&&!(0,l.isNumber)(i)?y(t,u,n[0],n.subarray(1)):v(t,u,n,i);this.registry=t,(0,c.default)(this,w)[w]=u,(0,c.default)(this,O)[O]=f,(0,c.default)(this,k)[k]=b,(0,c.default)(this,x)[x]=Object.values(u).map((e=>{let{index:t}=e;return t})),(0,c.default)(this,_)[_]=(0,c.default)(this,x)[x].indexOf(g.index),(0,c.default)(this,P)[P]=g.value,(0,c.default)(this,P)[P].initialU8aLength&&(this.initialU8aLength=1+(0,c.default)(this,P)[P].initialU8aLength)}return(0,u.default)(e,[{key:"encodedLength",get:function(){return 1+(0,c.default)(this,P)[P].encodedLength}},{key:"hash",get:function(){return this.registry.hash(this.toU8a())}},{key:"index",get:function(){return(0,c.default)(this,x)[x][(0,c.default)(this,_)[_]]}},{key:"inner",get:function(){return(0,c.default)(this,P)[P]}},{key:"isBasic",get:function(){return(0,c.default)(this,O)[O]}},{key:"isEmpty",get:function(){return(0,c.default)(this,P)[P].isEmpty}},{key:"isNone",get:function(){return(0,c.default)(this,P)[P]instanceof h.Null}},{key:"defIndexes",get:function(){return(0,c.default)(this,x)[x]}},{key:"defKeys",get:function(){return Object.keys((0,c.default)(this,w)[w])}},{key:"type",get:function(){return this.defKeys[(0,c.default)(this,_)[_]]}},{key:"value",get:function(){return(0,c.default)(this,P)[P]}},{key:"eq",value:function(t){return(0,l.isU8a)(t)?!this.toU8a().some(((e,r)=>e!==t[r])):(0,l.isNumber)(t)?this.toNumber()===t:(0,c.default)(this,O)[O]&&(0,l.isString)(t)?this.type===t:(0,l.isHex)(t)?this.toHex()===t:t instanceof e?this.index===t.index&&this.value.eq(t.value):(0,l.isObject)(t)?this.value.eq(t[this.type]):this.value.eq(t)}},{key:"inspect",value:function(){if((0,c.default)(this,O)[O])return{outer:[new Uint8Array([this.index])]};const{inner:e,outer:t=[]}=(0,c.default)(this,P)[P].inspect();return{inner:e,outer:[new Uint8Array([this.index]),...t]}}},{key:"toHex",value:function(){return(0,l.u8aToHex)(this.toU8a())}},{key:"toHuman",value:function(e){return(0,c.default)(this,O)[O]||this.isNone?this.type:{[this.type]:(0,c.default)(this,P)[P].toHuman(e)}}},{key:"toJSON",value:function(){return(0,c.default)(this,O)[O]?this.type:{[(0,l.stringCamelCase)(this.type)]:(0,c.default)(this,P)[P].toJSON()}}},{key:"toNumber",value:function(){return this.index}},{key:"toPrimitive",value:function(){return(0,c.default)(this,O)[O]?this.type:{[(0,l.stringCamelCase)(this.type)]:(0,c.default)(this,P)[P].toPrimitive()}}},{key:"_toRawStruct",value:function(){if((0,c.default)(this,O)[O])return(0,c.default)(this,k)[k]?this.defKeys.reduce(((e,t,r)=>(e[t]=(0,c.default)(this,x)[x][r],e)),{}):this.defKeys;const e=Object.entries((0,c.default)(this,w)[w]);return(0,d.typesToMap)(this.registry,e.reduce(((e,t,r)=>{let[n,{Type:i}]=t;return e[0][r]=i,e[1][r]=n,e}),[new Array(e.length),new Array(e.length)]))}},{key:"toRawType",value:function(){return(0,l.stringify)({_enum:this._toRawStruct()})}},{key:"toString",value:function(){return this.isNone?this.type:(0,l.stringify)(this.toJSON())}},{key:"toU8a",value:function(e){return e?(0,c.default)(this,P)[P].toU8a(e):(0,l.u8aConcatStrict)([new Uint8Array([this.index]),(0,c.default)(this,P)[P].toU8a(e)])}}],[{key:"with",value:function(t){var r;let n;const c=e=>n=e;return r=function(e){(0,i.default)(d,e);var r,f,l=(r=d,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=(0,a.default)(r);if(f){var n=(0,a.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,o.default)(this,e)});function d(e,r,i){return(0,s.default)(this,d),l.call(this,e,t,r,i,{definition:n,setDefinition:c})}return(0,u.default)(d)}(e),(()=>{const e=Array.isArray(t)?t:Object.keys(t),n=new Array(e.length),i=new Array(e.length);for(let t=0;t<e.length;t++){const r=(0,l.stringPascalCase)(e[t]);n[t]=`as${r}`,i[t]=`is${r}`}(0,l.objectProperties)(r.prototype,i,((t,r,n)=>n.type===e[r])),(0,l.objectProperties)(r.prototype,n,((t,r,n)=>{if(n.type!==e[r])throw new Error(`Cannot convert '${n.type}' via ${t}`);return n.value}))})(),r}}]),e}();t.Enum=S},81852:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(41588)),o=n(r(56690)),a=n(r(89728)),s=n(r(61655)),u=n(r(94993)),c=n(r(73808));function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,c.default)(e);if(t){var i=(0,c.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,u.default)(this,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.Int=void 0;let l=function(e){(0,s.default)(r,e);var t=f(r);function r(e){(0,o.default)(this,r);let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return t.call(this,e,n,i,!0)}return(0,a.default)(r,null,[{key:"with",value:function(e,t){return function(r){(0,s.default)(u,r);var n=f(u);function u(t,r){return(0,o.default)(this,u),n.call(this,t,r,e)}return(0,a.default)(u,[{key:"toRawType",value:function(){return t||(0,i.default)((0,c.default)(u.prototype),"toRawType",this).call(this)}}]),u}(r)}}]),r}(r(24949).AbstractInt);t.Int=l},20887:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728));Object.defineProperty(t,"__esModule",{value:!0}),t.Null=void 0;var a=r(9498);let s=function(){function e(t){(0,i.default)(this,e),this.encodedLength=0,this.isEmpty=!0,this.initialU8aLength=0,this.registry=t}return(0,o.default)(e,[{key:"hash",get:function(){throw new Error(".hash is not implemented on Null")}},{key:"eq",value:function(t){return t instanceof e||(0,a.isNull)(t)}},{key:"inspect",value:function(){return{}}},{key:"toHex",value:function(){return"0x"}},{key:"toHuman",value:function(){return this.toJSON()}},{key:"toJSON",value:function(){return null}},{key:"toPrimitive",value:function(){return null}},{key:"toRawType",value:function(){return"Null"}},{key:"toString",value:function(){return""}},{key:"toU8a",value:function(e){return new Uint8Array}}]),e}();t.Null=s},67:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(29399)),o=n(r(40426)),a=n(r(56690)),s=n(r(89728)),u=n(r(61655)),c=n(r(94993)),f=n(r(73808));function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,f.default)(e);if(t){var i=(0,f.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,c.default)(this,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.Option=void 0;var d=r(9498),h=r(15450);function p(e){return e}let b=function(e){(0,u.default)(r,e);var t=l(r);function r(){return(0,a.default)(this,r),t.apply(this,arguments)}return(0,s.default)(r,[{key:"toRawType",value:function(){return"None"}}]),r}(r(20887).Null);function y(e,t,r){return r instanceof t?r:r instanceof v?r.value instanceof t?r.value:r.isNone?new b(e):new t(e,r.value):(0,d.isNull)(r)||(0,d.isUndefined)(r)||"0x"===r||r instanceof b?new b(e):(0,d.isU8a)(r)?r.length&&0!==r[0]?new t(e,r.subarray(1)):new b(e):new t(e,r)}var g=(0,o.default)("Type"),m=(0,o.default)("raw");let v=function(){function e(t,r,n){(0,a.default)(this,e),Object.defineProperty(this,g,{writable:!0,value:void 0}),Object.defineProperty(this,m,{writable:!0,value:void 0});let{definition:o,setDefinition:s=p}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const u=o||s((0,h.typeToConstructor)(t,r)),c=(0,d.isU8a)(n)&&n.length&&!(0,d.isCodec)(n)?0===n[0]?new b(t):new u(t,n.subarray(1)):y(t,u,n);this.registry=t,(0,i.default)(this,g)[g]=u,(0,i.default)(this,m)[m]=c,null!=c&&c.initialU8aLength&&(this.initialU8aLength=1+c.initialU8aLength)}return(0,s.default)(e,[{key:"encodedLength",get:function(){return 1+(0,i.default)(this,m)[m].encodedLength}},{key:"hash",get:function(){return this.registry.hash(this.toU8a())}},{key:"isEmpty",get:function(){return this.isNone}},{key:"isNone",get:function(){return(0,i.default)(this,m)[m]instanceof b}},{key:"isSome",get:function(){return!this.isNone}},{key:"value",get:function(){return(0,i.default)(this,m)[m]}},{key:"eq",value:function(t){return t instanceof e?this.isSome===t.isSome&&this.value.eq(t.value):this.value.eq(t)}},{key:"inspect",value:function(){if(this.isNone)return{outer:[new Uint8Array([0])]};const{inner:e,outer:t=[]}=(0,i.default)(this,m)[m].inspect();return{inner:e,outer:[new Uint8Array([1]),...t]}}},{key:"toHex",value:function(){return this.isNone?"0x":(0,d.u8aToHex)(this.toU8a().subarray(1))}},{key:"toHuman",value:function(e){return(0,i.default)(this,m)[m].toHuman(e)}},{key:"toJSON",value:function(){return this.isNone?null:(0,i.default)(this,m)[m].toJSON()}},{key:"toPrimitive",value:function(){return this.isNone?null:(0,i.default)(this,m)[m].toPrimitive()}},{key:"toRawType",value:function(e){const t=this.registry.getClassName((0,i.default)(this,g)[g])||new((0,i.default)(this,g)[g])(this.registry).toRawType();return e?t:`Option<${t}>`}},{key:"toString",value:function(){return(0,i.default)(this,m)[m].toString()}},{key:"toU8a",value:function(e){if(e)return(0,i.default)(this,m)[m].toU8a(!0);const t=new Uint8Array(this.encodedLength);return this.isSome&&(t.set([1]),t.set((0,i.default)(this,m)[m].toU8a(),1)),t}},{key:"unwrap",value:function(){if(this.isNone)throw new Error("Option: unwrapping a None value");return(0,i.default)(this,m)[m]}},{key:"unwrapOr",value:function(e){return this.isSome?this.unwrap():e}},{key:"unwrapOrDefault",value:function(){return this.isSome?this.unwrap():new((0,i.default)(this,g)[g])(this.registry)}}],[{key:"with",value:function(t){let r;const n=e=>(r=e,e);return function(e){(0,u.default)(o,e);var i=l(o);function o(e,s){return(0,a.default)(this,o),i.call(this,e,t,s,{definition:r,setDefinition:n})}return(0,s.default)(o)}(e)}}]),e}();t.Option=v},60309:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,u.default)(e);if(t){var i=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.Result=void 0;let f=function(e){(0,a.default)(r,e);var t=c(r);function r(e,n,o,a){return(0,i.default)(this,r),t.call(this,e,{Ok:n,Err:o},a)}return(0,o.default)(r,[{key:"asErr",get:function(){if(!this.isErr)throw new Error("Cannot extract Err value from Ok result, check isErr first");return this.value}},{key:"asOk",get:function(){if(!this.isOk)throw new Error("Cannot extract Ok value from Err result, check isOk first");return this.value}},{key:"isEmpty",get:function(){return this.isOk&&this.value.isEmpty}},{key:"isErr",get:function(){return!this.isOk}},{key:"isOk",get:function(){return 0===this.index}},{key:"toRawType",value:function(){const e=this._toRawStruct();return`Result<${e.Ok},${e.Err}>`}}],[{key:"with",value:function(e){return function(t){(0,a.default)(n,t);var r=c(n);function n(t,o){return(0,i.default)(this,n),r.call(this,t,e.Ok,e.Err,o)}return(0,o.default)(n)}(r)}}]),r}(r(90831).Enum);t.Result=f},24806:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(66115)),s=n(r(61655)),u=n(r(94993)),c=n(r(73808)),f=n(r(29399)),l=n(r(40426));function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,c.default)(e);if(t){var i=(0,c.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,u.default)(this,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.Tuple=void 0;var h=r(9498),p=r(39094),b=r(15450);function y(e){return e}var g=(0,l.default)("Types");let m=function(e){(0,s.default)(r,e);var t=d(r);function r(e,n,o){var s;(0,i.default)(this,r);let{definition:u,setDefinition:c=y}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const l=u||c(Array.isArray(n)?[n.map((t=>(0,b.typeToConstructor)(e,t))),[]]:(0,h.isFunction)(n)||(0,h.isString)(n)?[[(0,b.typeToConstructor)(e,n)],[]]:(0,b.mapToTypeMap)(e,n));return s=t.call(this,e,l[0].length),Object.defineProperty((0,a.default)(s),g,{writable:!0,value:void 0}),s.initialU8aLength=((0,h.isU8a)(o)?(0,b.decodeU8a)(e,(0,a.default)(s),o,l):function(e,t,r,n){if(Array.isArray(r)){const i=n[0];for(let n=0;n<i.length;n++)try{const o=null==r?void 0:r[n];t[n]=o instanceof i[n]?o:new i[n](e,o)}catch(e){throw new Error(`Tuple: failed on ${n}:: ${e.message}`)}return[t,0]}if((0,h.isHex)(r))return(0,b.decodeU8a)(e,t,(0,h.u8aToU8a)(r),n);if(!r||!t.length){const r=n[0];for(let n=0;n<r.length;n++)t[n]=new r[n](e);return[t,0]}throw new Error(`Expected array input to Tuple decoding, found ${typeof r}: ${(0,h.stringify)(r)}`)}(e,(0,a.default)(s),o,l))[1],(0,f.default)((0,a.default)(s),g)[g]=l,s}return(0,o.default)(r,[{key:"encodedLength",get:function(){let e=0;for(let t=0;t<this.length;t++)e+=this[t].encodedLength;return e}},{key:"Types",get:function(){return(0,f.default)(this,g)[g][1].length?(0,f.default)(this,g)[g][1]:(0,f.default)(this,g)[g][0].map((e=>new e(this.registry).toRawType()))}},{key:"inspect",value:function(){return{inner:this.inspectInner()}}},{key:"toRawType",value:function(){return`(${(0,f.default)(this,g)[g][0].map((e=>this.registry.getClassName(e)||new e(this.registry).toRawType())).join(",")})`}},{key:"toString",value:function(){return(0,h.stringify)(this.toJSON())}},{key:"toU8a",value:function(e){return(0,h.u8aConcatStrict)(this.toU8aInner(e))}}],[{key:"with",value:function(e){let t;const n=e=>t=e;return function(r){(0,s.default)(u,r);var a=d(u);function u(r,o){return(0,i.default)(this,u),a.call(this,r,e,o,{definition:t,setDefinition:n})}return(0,o.default)(u)}(r)}}]),r}(p.AbstractArray);t.Tuple=m},28271:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(41588)),o=n(r(56690)),a=n(r(89728)),s=n(r(61655)),u=n(r(94993)),c=n(r(73808));function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,c.default)(e);if(t){var i=(0,c.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,u.default)(this,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.UInt=void 0;let l=function(e){(0,s.default)(r,e);var t=f(r);function r(){return(0,o.default)(this,r),t.apply(this,arguments)}return(0,a.default)(r,null,[{key:"with",value:function(e,t){return function(r){(0,s.default)(u,r);var n=f(u);function u(t,r){return(0,o.default)(this,u),n.call(this,t,r,e)}return(0,a.default)(u,[{key:"toRawType",value:function(){return t||(0,i.default)((0,c.default)(u.prototype),"toRawType",this).call(this)}}]),u}(r)}}]),r}(r(24949).AbstractInt);t.UInt=l},23115:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(66115)),s=n(r(61655)),u=n(r(94993)),c=n(r(73808)),f=n(r(29399)),l=n(r(40426));function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,c.default)(e);if(t){var i=(0,c.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,u.default)(this,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.Vec=void 0,t.decodeVec=m;var h=r(9498),p=r(39094),b=r(15450);const y=(0,h.logger)("Vec");function g(e){return e}function m(e,t,r,n,i){if(Array.isArray(r)){const n=t.length;for(let o=0;o<n;o++){const n=r[o];try{t[o]=n instanceof i?n:new i(e,n)}catch(e){throw y.error(`Unable to decode on index ${o}`,e.message),e}}return[0,0]}return r?(0,b.decodeU8aVec)(e,t,(0,h.u8aToU8a)(r),n,i):[0,0]}var v=(0,l.default)("Type");let w=function(e){(0,s.default)(r,e);var t=d(r);function r(e,n){var o;(0,i.default)(this,r);let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],{definition:u,setDefinition:c=g}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const[l,d,p]=function(e){if(Array.isArray(e))return[e,e.length,0];if((0,h.isU8a)(e)||(0,h.isHex)(e)){const t=(0,h.u8aToU8a)(e),[r,n]=(0,h.compactFromU8aLim)(t);if(n>65536)throw new Error(`Vec length ${n.toString()} exceeds 65536`);return[t,n,r]}if(!e)return[null,0,0];throw new Error(`Expected array/hex input to Vec<*> decoding, found ${typeof e}: ${(0,h.stringify)(e)}`)}(s);o=t.call(this,e,d),Object.defineProperty((0,a.default)(o),v,{writable:!0,value:void 0}),(0,f.default)((0,a.default)(o),v)[v]=u||c((0,b.typeToConstructor)(e,n));try{o.initialU8aLength=((0,h.isU8a)(l)?(0,b.decodeU8aVec)(e,(0,a.default)(o),l,p,(0,f.default)((0,a.default)(o),v)[v]):m(e,(0,a.default)(o),l,p,(0,f.default)((0,a.default)(o),v)[v]))[0]}catch(e){throw console.error(l,d,p),e}return o}return(0,o.default)(r,[{key:"Type",get:function(){return(0,f.default)(this,v)[v].name}},{key:"indexOf",value:function(e){const t=e instanceof(0,f.default)(this,v)[v]?e:new((0,f.default)(this,v)[v])(this.registry,e);for(let e=0;e<this.length;e++)if(t.eq(this[e]))return e;return-1}},{key:"toRawType",value:function(){return`Vec<${this.registry.getClassName((0,f.default)(this,v)[v])||new((0,f.default)(this,v)[v])(this.registry).toRawType()}>`}}],[{key:"with",value:function(e){let t;const n=e=>t=e;return function(r){(0,s.default)(u,r);var a=d(u);function u(r,o){return(0,i.default)(this,u),a.call(this,r,e,o,{definition:t,setDefinition:n})}return(0,o.default)(u)}(r)}}]),r}(p.AbstractArray);t.Vec=w},54414:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.VecAny=void 0;let c=function(e){(0,a.default)(c,e);var t,r,n=(t=c,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function c(){return(0,i.default)(this,c),n.apply(this,arguments)}return(0,o.default)(c,[{key:"toRawType",value:function(){return"Vec<Codec>"}}]),c}(r(39094).AbstractArray);t.VecAny=c},52722:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(66115)),s=n(r(61655)),u=n(r(94993)),c=n(r(73808)),f=n(r(29399)),l=n(r(40426));function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,c.default)(e);if(t){var i=(0,c.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,u.default)(this,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.VecFixed=void 0;var h=r(9498),p=r(39094),b=r(15450),y=r(23115);function g(e){return e}var m=(0,l.default)("Type");let v=function(e){(0,s.default)(r,e);var t=d(r);function r(e,n,o){var s;(0,i.default)(this,r);let u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],{definition:c,setDefinition:l=g}=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return s=t.call(this,e,o),Object.defineProperty((0,a.default)(s),m,{writable:!0,value:void 0}),(0,f.default)((0,a.default)(s),m)[m]=c||l((0,b.typeToConstructor)(e,n)),s.initialU8aLength=((0,h.isU8a)(u)?(0,b.decodeU8aVec)(e,(0,a.default)(s),u,0,(0,f.default)((0,a.default)(s),m)[m]):(0,y.decodeVec)(e,(0,a.default)(s),u,0,(0,f.default)((0,a.default)(s),m)[m]))[1],s}return(0,o.default)(r,[{key:"Type",get:function(){return new((0,f.default)(this,m)[m])(this.registry).toRawType()}},{key:"encodedLength",get:function(){let e=0;for(let t=0;t<this.length;t++)e+=this[t].encodedLength;return e}},{key:"inspect",value:function(){return{inner:this.inspectInner()}}},{key:"toU8a",value:function(){const e=this.toU8aInner();return e.length?(0,h.u8aConcatStrict)(e):new Uint8Array([])}},{key:"toRawType",value:function(){return`[${this.Type};${this.length}]`}}],[{key:"with",value:function(e,t){let n;const a=e=>n=e;return function(r){(0,s.default)(c,r);var u=d(c);function c(r,o){return(0,i.default)(this,c),u.call(this,r,e,t,o,{definition:n,setDefinition:a})}return(0,o.default)(c)}(r)}}]),r}(p.AbstractArray);t.VecFixed=v},74858:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Compact",{enumerable:!0,get:function(){return n.Compact}}),Object.defineProperty(t,"DoNotConstruct",{enumerable:!0,get:function(){return i.DoNotConstruct}}),Object.defineProperty(t,"Enum",{enumerable:!0,get:function(){return o.Enum}}),Object.defineProperty(t,"Int",{enumerable:!0,get:function(){return a.Int}}),Object.defineProperty(t,"Null",{enumerable:!0,get:function(){return s.Null}}),Object.defineProperty(t,"Option",{enumerable:!0,get:function(){return u.Option}}),Object.defineProperty(t,"Result",{enumerable:!0,get:function(){return c.Result}}),Object.defineProperty(t,"Tuple",{enumerable:!0,get:function(){return f.Tuple}}),Object.defineProperty(t,"UInt",{enumerable:!0,get:function(){return l.UInt}}),Object.defineProperty(t,"Vec",{enumerable:!0,get:function(){return d.Vec}}),Object.defineProperty(t,"VecAny",{enumerable:!0,get:function(){return h.VecAny}}),Object.defineProperty(t,"VecFixed",{enumerable:!0,get:function(){return p.VecFixed}});var n=r(756),i=r(57202),o=r(90831),a=r(81852),s=r(20887),u=r(67),c=r(60309),f=r(24806),l=r(28271),d=r(23115),h=r(54414),p=r(52722)},68680:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={packageInfo:!0};Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return i.packageInfo}});var i=r(68434),o=r(70629);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=r(74858);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var s=r(81376);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var u=r(49147);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var c=r(94440);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var f=r(15450);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))}))},49069:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[]},82420:(e,t,r)=>{"use strict";var n=r(64836),i=r(9498),o=n(r(49069)),a=r(68434);(0,i.detectPackage)(a.packageInfo,null,o.default)},396:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,u.default)(e);if(t){var i=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.BTreeMap=void 0;let f=function(e){(0,a.default)(r,e);var t=c(r);function r(){return(0,i.default)(this,r),t.apply(this,arguments)}return(0,o.default)(r,null,[{key:"with",value:function(e,t){return function(r){(0,a.default)(s,r);var n=c(s);function s(r,o){return(0,i.default)(this,s),n.call(this,r,e,t,o,"BTreeMap")}return(0,o.default)(s)}(r)}}]),r}(r(90498).CodecMap);t.BTreeMap=f},35466:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(66115)),s=n(r(41588)),u=n(r(61655)),c=n(r(94993)),f=n(r(73808)),l=n(r(33496)),d=n(r(29399)),h=n(r(40426));function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,f.default)(e);if(t){var i=(0,f.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,c.default)(this,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.BTreeSet=void 0;var b=r(9498),y=r(15450);const g=(0,b.logger)("BTreeSet");var m=(0,h.default)("ValClass");let v=function(e){(0,u.default)(r,e);var t=p(r);function r(e,n,o){var s;(0,i.default)(this,r);const[u,c,f]=function(e,t,r){const n=(0,y.typeToConstructor)(e,t);if(!r)return[n,new Set,0];if((0,b.isU8a)(r)||(0,b.isHex)(r))return function(e,t,r){const n=new Set,[i,o]=(0,b.compactFromU8aLim)(r),a=new Array(o),[s]=(0,y.decodeU8aVec)(e,a,r,i,t);for(let e=0;e<o;e++)n.add(a[e]);return[t,n,s]}(e,n,(0,b.u8aToU8a)(r));if(Array.isArray(r)||r instanceof Set)return function(e,t,r){const n=new Set;return r.forEach((r=>{try{n.add(r instanceof t?r:new t(e,r))}catch(e){throw g.error("Failed to decode key or value:",e.message),e}})),[t,n,0]}(e,n,r);throw new Error("BTreeSet: cannot decode type")}(e,n,o);return s=t.call(this,(0,y.sortSet)(c)),Object.defineProperty((0,a.default)(s),m,{writable:!0,value:void 0}),s.registry=e,s.initialU8aLength=f,(0,d.default)((0,a.default)(s),m)[m]=u,s}return(0,o.default)(r,[{key:"encodedLength",get:function(){let e=(0,b.compactToU8a)(this.size).length;for(const t of this.values())e+=t.encodedLength;return e}},{key:"hash",get:function(){return this.registry.hash(this.toU8a())}},{key:"isEmpty",get:function(){return 0===this.size}},{key:"strings",get:function(){return[...(0,s.default)((0,f.default)(r.prototype),"values",this).call(this)].map((e=>e.toString()))}},{key:"eq",value:function(e){return(0,y.compareSet)(this,e)}},{key:"inspect",value:function(){const e=new Array;for(const t of this.values())e.push(t.inspect());return{inner:e,outer:[(0,b.compactToU8a)(this.size)]}}},{key:"toHex",value:function(){return(0,b.u8aToHex)(this.toU8a())}},{key:"toHuman",value:function(e){const t=[];for(const r of this.values())t.push(r.toHuman(e));return t}},{key:"toJSON",value:function(){const e=[];for(const t of this.values())e.push(t.toJSON());return e}},{key:"toRawType",value:function(){return`BTreeSet<${this.registry.getClassName((0,d.default)(this,m)[m])||new((0,d.default)(this,m)[m])(this.registry).toRawType()}>`}},{key:"toPrimitive",value:function(){const e=[];for(const t of this.values())e.push(t.toPrimitive());return e}},{key:"toString",value:function(){return(0,b.stringify)(this.toJSON())}},{key:"toU8a",value:function(e){const t=new Array;e||t.push((0,b.compactToU8a)(this.size));for(const r of this.values())t.push(r.toU8a(e));return(0,b.u8aConcatStrict)(t)}}],[{key:"with",value:function(e){return function(t){(0,u.default)(n,t);var r=p(n);function n(t,o){return(0,i.default)(this,n),r.call(this,t,e,o)}return(0,o.default)(n)}(r)}}]),r}((0,l.default)(Set));t.BTreeSet=v},52954:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(66115)),s=n(r(41588)),u=n(r(61655)),c=n(r(94993)),f=n(r(73808)),l=n(r(29399)),d=n(r(40426));Object.defineProperty(t,"__esModule",{value:!0}),t.BitVec=void 0;var h=r(9498),p=r(18922);var b=(0,d.default)("decodedLength"),y=(0,d.default)("isMsb");let g=function(e){(0,u.default)(d,e);var t,r,n=(t=d,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,f.default)(t);if(r){var i=(0,f.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,c.default)(this,e)});function d(e,t){var r;(0,i.default)(this,d);let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const[s,u]=function(e){if(Array.isArray(e)||(0,h.isString)(e)){const t=(0,h.u8aToU8a)(e);return[t.length/8,t]}return function(e){if(!e||!e.length)return[0,new Uint8Array];const[t,r]=(0,h.compactFromU8aLim)(e),n=t+Math.ceil(r/8);if(n>e.length)throw new Error(`BitVec: required length less than remainder, expected at least ${n}, found ${e.length}`);return[r,e.subarray(t,n)]}(e)}(t);return r=n.call(this,e,u),Object.defineProperty((0,a.default)(r),b,{writable:!0,value:void 0}),Object.defineProperty((0,a.default)(r),y,{writable:!0,value:void 0}),(0,l.default)((0,a.default)(r),b)[b]=s,(0,l.default)((0,a.default)(r),y)[y]=o,r}return(0,o.default)(d,[{key:"encodedLength",get:function(){return this.length+(0,h.compactToU8a)((0,l.default)(this,b)[b]).length}},{key:"inspect",value:function(){return{outer:[(0,h.compactToU8a)((0,l.default)(this,b)[b]),(0,s.default)((0,f.default)(d.prototype),"toU8a",this).call(this)]}}},{key:"toHuman",value:function(){return`0b${[...this.toU8a(!0)].map((e=>`00000000${e.toString(2)}`.slice(-8))).map((e=>(0,l.default)(this,y)[y]?e:e.split("").reverse().join(""))).join("_")}`}},{key:"toRawType",value:function(){return"BitVec"}},{key:"toU8a",value:function(e){const t=(0,s.default)((0,f.default)(d.prototype),"toU8a",this).call(this);return e?t:(0,h.u8aConcatStrict)([(0,h.compactToU8a)((0,l.default)(this,b)[b]),t])}}]),d}(p.Raw);t.BitVec=g},33974:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(41588)),s=n(r(61655)),u=n(r(94993)),c=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.Bytes=void 0;var f=r(9498),l=r(18922);let d=function(e){(0,s.default)(d,e);var t,r,n=(t=d,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,c.default)(t);if(r){var i=(0,c.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,u.default)(this,e)});function d(e,t){(0,i.default)(this,d);const[r,o]=!(0,f.isU8a)(t)||t instanceof l.Raw?Array.isArray(t)||(0,f.isString)(t)?[(0,f.u8aToU8a)(t),0]:[t,0]:function(e){if(!e.length)return[new Uint8Array,0];const[t,r]=(0,f.compactFromU8aLim)(e),n=t+r;if(r>10485760)throw new Error(`Bytes length ${r.toString()} exceeds 10485760`);if(n>e.length)throw new Error(`Bytes: required length less than remainder, expected at least ${n}, found ${e.length}`);return[e.subarray(t,n),n]}(t);return n.call(this,e,r,o)}return(0,o.default)(d,[{key:"encodedLength",get:function(){return this.length+(0,f.compactToU8a)(this.length).length}},{key:"inspect",value:function(e){const t=(0,f.compactToU8a)(this.length);return{outer:e?[(0,a.default)((0,c.default)(d.prototype),"toU8a",this).call(this)]:this.length?[t,(0,a.default)((0,c.default)(d.prototype),"toU8a",this).call(this)]:[t]}}},{key:"toRawType",value:function(){return"Bytes"}},{key:"toU8a",value:function(e){return e?(0,a.default)((0,c.default)(d.prototype),"toU8a",this).call(this,e):(0,f.compactAddLength)(this)}}]),d}(l.Raw);t.Bytes=d},50623:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,u.default)(e);if(t){var i=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.HashMap=void 0;let f=function(e){(0,a.default)(r,e);var t=c(r);function r(){return(0,i.default)(this,r),t.apply(this,arguments)}return(0,o.default)(r,null,[{key:"with",value:function(e,t){return function(r){(0,a.default)(s,r);var n=c(s);function s(r,o){return(0,i.default)(this,s),n.call(this,r,e,t,o)}return(0,o.default)(s)}(r)}}]),r}(r(90498).CodecMap);t.HashMap=f},81765:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(41588)),s=n(r(61655)),u=n(r(94993)),c=n(r(73808));function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,c.default)(e);if(t){var i=(0,c.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,u.default)(this,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.LinkageResult=t.Linkage=void 0;var l=r(67),d=r(24806),h=r(23115),p=r(993);const b=new Uint8Array;let y=function(e){(0,s.default)(r,e);var t=f(r);function r(e,n,o){return(0,i.default)(this,r),t.call(this,e,{previous:l.Option.with(n),next:l.Option.with(n)},o)}return(0,o.default)(r,[{key:"previous",get:function(){return this.get("previous")}},{key:"next",get:function(){return this.get("next")}},{key:"toRawType",value:function(){return`Linkage<${this.next.toRawType(!0)}>`}},{key:"toU8a",value:function(){return this.isEmpty?b:(0,a.default)((0,c.default)(r.prototype),"toU8a",this).call(this)}}],[{key:"withKey",value:function(e){return function(t){(0,s.default)(n,t);var r=f(n);function n(t,o){return(0,i.default)(this,n),r.call(this,t,e,o)}return(0,o.default)(n)}(r)}}]),r}(p.Struct);t.Linkage=y;let g=function(e){(0,s.default)(r,e);var t=f(r);function r(e,n,o){(0,i.default)(this,r);let[a,s]=n,[u,c]=o;return t.call(this,e,{Keys:h.Vec.with(a),Values:h.Vec.with(u)},[s,c])}return(0,o.default)(r)}(d.Tuple);t.LinkageResult=g},90498:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(66115)),s=n(r(61655)),u=n(r(94993)),c=n(r(73808)),f=n(r(33496)),l=n(r(29399)),d=n(r(40426));Object.defineProperty(t,"__esModule",{value:!0}),t.CodecMap=void 0;var h=r(9498),p=r(39094),b=r(90831),y=r(18922),g=r(993),m=r(15450);const v=(0,h.logger)("Map");function w(e,t,r,n){const i=new Map;for(const[o,a]of n.entries()){const n=t.prototype instanceof p.AbstractArray||t.prototype instanceof g.Struct||t.prototype instanceof b.Enum;try{i.set(o instanceof t?o:new t(e,n&&"string"==typeof o?JSON.parse(o):o),a instanceof r?a:new r(e,a))}catch(e){throw v.error("Failed to decode key or value:",e.message),e}}return[t,r,i,0]}var _=(0,d.default)("KeyClass"),x=(0,d.default)("ValClass"),O=(0,d.default)("type");let k=function(e){(0,s.default)(f,e);var t,r,n=(t=f,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,c.default)(t);if(r){var i=(0,c.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,u.default)(this,e)});function f(e,t,r,o){var s;(0,i.default)(this,f);let u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"HashMap";const[c,d,p,b]=function(e,t,r,n){const i=(0,m.typeToConstructor)(e,t),o=(0,m.typeToConstructor)(e,r);if(!n)return[i,o,new Map,0];if((0,h.isU8a)(n)||(0,h.isHex)(n))return function(e,t,r,n){const i=new Map,[o,a]=(0,h.compactFromU8aLim)(n),s=[];for(let e=0;e<a;e++)s.push(t,r);const[u,c]=(0,m.decodeU8a)(e,new Array(s.length),n.subarray(o),[s,[]]);for(let e=0;e<u.length;e+=2)i.set(u[e],u[e+1]);return[t,r,i,o+c]}(e,i,o,(0,h.u8aToU8a)(n));if(n instanceof Map)return w(e,i,o,n);if((0,h.isObject)(n))return w(e,i,o,new Map(Object.entries(n)));throw new Error("Map: cannot decode type")}(e,t,r,o);return s=n.call(this,"BTreeMap"===u?(0,m.sortMap)(p):p),Object.defineProperty((0,a.default)(s),_,{writable:!0,value:void 0}),Object.defineProperty((0,a.default)(s),x,{writable:!0,value:void 0}),Object.defineProperty((0,a.default)(s),O,{writable:!0,value:void 0}),s.registry=e,s.initialU8aLength=b,(0,l.default)((0,a.default)(s),_)[_]=c,(0,l.default)((0,a.default)(s),x)[x]=d,(0,l.default)((0,a.default)(s),O)[O]=u,s}return(0,o.default)(f,[{key:"encodedLength",get:function(){let e=(0,h.compactToU8a)(this.size).length;for(const[t,r]of this.entries())e+=t.encodedLength+r.encodedLength;return e}},{key:"hash",get:function(){return this.registry.hash(this.toU8a())}},{key:"isEmpty",get:function(){return 0===this.size}},{key:"eq",value:function(e){return(0,m.compareMap)(this,e)}},{key:"inspect",value:function(){const e=new Array;for(const[t,r]of this.entries())e.push(t.inspect()),e.push(r.inspect());return{inner:e,outer:[(0,h.compactToU8a)(this.size)]}}},{key:"toHex",value:function(){return(0,h.u8aToHex)(this.toU8a())}},{key:"toHuman",value:function(e){const t={};for(const[r,n]of this.entries())t[r instanceof y.Raw&&r.isAscii?r.toUtf8():r.toString()]=n.toHuman(e);return t}},{key:"toJSON",value:function(){const e={};for(const[t,r]of this.entries())e[t.toString()]=r.toJSON();return e}},{key:"toPrimitive",value:function(){const e={};for(const[t,r]of this.entries())e[t instanceof y.Raw&&t.isAscii?t.toUtf8():t.toString()]=r.toPrimitive();return e}},{key:"toRawType",value:function(){return`${(0,l.default)(this,O)[O]}<${this.registry.getClassName((0,l.default)(this,_)[_])||new((0,l.default)(this,_)[_])(this.registry).toRawType()},${this.registry.getClassName((0,l.default)(this,x)[x])||new((0,l.default)(this,x)[x])(this.registry).toRawType()}>`}},{key:"toString",value:function(){return(0,h.stringify)(this.toJSON())}},{key:"toU8a",value:function(e){const t=new Array;e||t.push((0,h.compactToU8a)(this.size));for(const[r,n]of this.entries())t.push(r.toU8a(e),n.toU8a(e));return(0,h.u8aConcatStrict)(t)}}]),f}((0,f.default)(Map));t.CodecMap=k},41927:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(41588)),s=n(r(61655)),u=n(r(94993)),c=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.OptionBool=void 0;var f=r(9498),l=r(67),d=r(60509);let h=function(e){(0,s.default)(l,e);var t,r,n=(t=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,c.default)(t);if(r){var i=(0,c.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,u.default)(this,e)});function l(e,t){var r;return(0,i.default)(this,l),r=n.call(this,e,d.bool,(0,f.isU8a)(t)||(0,f.isHex)(t)?function(e,t){return 0===t[0]?null:new d.bool(e,1===t[0])}(e,(0,f.u8aToU8a)(t)):t),r.initialU8aLength=1,r}return(0,o.default)(l,[{key:"encodedLength",get:function(){return 1}},{key:"isFalse",get:function(){return!!this.isSome&&!this.value.valueOf()}},{key:"isTrue",get:function(){return!!this.isSome&&this.value.valueOf()}},{key:"inspect",value:function(){return{outer:[this.toU8a()]}}},{key:"toRawType",value:function(e){return e?"bool":"Option<bool>"}},{key:"toU8a",value:function(e){return e?(0,a.default)((0,c.default)(l.prototype),"toU8a",this).call(this,!0):this.isSome?new Uint8Array([this.isTrue?1:2]):new Uint8Array([0])}}]),l}(l.Option);t.OptionBool=h},29777:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(66115)),s=n(r(61655)),u=n(r(94993)),c=n(r(73808)),f=n(r(29399)),l=n(r(40426));function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,c.default)(e);if(t){var i=(0,c.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,u.default)(this,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.Range=void 0;var h=r(24806),p=(0,l.default)("rangeName");let b=function(e){(0,s.default)(r,e);var t=d(r);function r(e,n,o){var s;(0,i.default)(this,r);let{rangeName:u="Range"}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return s=t.call(this,e,[n,n],o),Object.defineProperty((0,a.default)(s),p,{writable:!0,value:void 0}),(0,f.default)((0,a.default)(s),p)[p]=u,s}return(0,o.default)(r,[{key:"start",get:function(){return this[0]}},{key:"end",get:function(){return this[1]}},{key:"toRawType",value:function(){return`${(0,f.default)(this,p)[p]}<${this.start.toRawType()}>`}}],[{key:"with",value:function(e){return function(t){(0,s.default)(n,t);var r=d(n);function n(t,o){return(0,i.default)(this,n),r.call(this,t,e,o)}return(0,o.default)(n)}(r)}}]),r}(h.Tuple);t.Range=b},37801:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,u.default)(e);if(t){var i=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.RangeInclusive=void 0;let f=function(e){(0,a.default)(r,e);var t=c(r);function r(e,n,o){return(0,i.default)(this,r),t.call(this,e,n,o,{rangeName:"RangeInclusive"})}return(0,o.default)(r,null,[{key:"with",value:function(e){return function(t){(0,a.default)(n,t);var r=c(n);function n(t,o){return(0,i.default)(this,n),r.call(this,t,e,o)}return(0,o.default)(n)}(r)}}]),r}(r(29777).Range);t.RangeInclusive=f},7294:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.Type=void 0;var c=r(76875),f=r(15450);let l=function(e){(0,a.default)(c,e);var t,r,n=(t=c,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function c(e){var t;(0,i.default)(this,c);let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(t=n.call(this,e,r)).setOverride((0,f.sanitize)(t.toString())),t}return(0,o.default)(c,[{key:"toRawType",value:function(){return"Type"}}]),c}(c.Text);t.Type=l},94820:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(41588)),o=n(r(56690)),a=n(r(89728)),s=n(r(61655)),u=n(r(94993)),c=n(r(73808));function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,c.default)(e);if(t){var i=(0,c.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,u.default)(this,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.U8aFixed=void 0;var l=r(9498);let d=function(e){(0,s.default)(r,e);var t=f(r);function r(e){(0,o.default)(this,r);let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint8Array,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:256;const[a,s]=function(e,t){const r=(0,l.u8aToU8a)(e),n=t/8;if(!r.length)return[new Uint8Array(n),0];if((0,l.isU8a)(e)?r.length<n:r.length!==n)throw new Error(`Expected input with ${n} bytes (${t} bits), found ${r.length} bytes`);return[r.subarray(0,n),n]}(n,i);return t.call(this,e,a,s)}return(0,a.default)(r,[{key:"toRawType",value:function(){return`[u8;${this.length}]`}}],[{key:"with",value:function(e,t){return function(r){(0,s.default)(u,r);var n=f(u);function u(t,r){return(0,o.default)(this,u),n.call(this,t,r,e)}return(0,a.default)(u,[{key:"toRawType",value:function(){return t||(0,i.default)((0,c.default)(u.prototype),"toRawType",this).call(this)}}]),u}(r)}}]),r}(r(18922).Raw);t.U8aFixed=d},47058:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(66115)),s=n(r(41588)),u=n(r(61655)),c=n(r(94993)),f=n(r(73808)),l=n(r(29399)),d=n(r(40426));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,f.default)(e);if(t){var i=(0,f.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,c.default)(this,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.WrapperKeepOpaque=void 0;var p=r(9498),b=r(18922),y=r(15450),g=r(33974),m=(0,d.default)("Type"),v=(0,d.default)("decoded"),w=(0,d.default)("opaqueName");let _=function(e){(0,u.default)(r,e);var t=h(r);function r(e,n,o){var s;(0,i.default)(this,r);let{opaqueName:u="WrapperKeepOpaque"}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const[c,f,d]=function(e,t,r){const n=(0,y.typeToConstructor)(e,t);if((0,p.isU8a)(r)||(0,p.isHex)(r))try{const[,t]=(0,p.isHex)(r)?[0,(0,p.u8aToU8a)(r)]:r instanceof b.Raw?[0,r.subarray()]:(0,p.compactStripLength)(r);return[n,new n(e,t),r]}catch(e){return[n,null,r]}const i=new n(e,r);return[n,i,(0,p.compactAddLength)(i.toU8a())]}(e,n,o);return s=t.call(this,e,d),Object.defineProperty((0,a.default)(s),m,{writable:!0,value:void 0}),Object.defineProperty((0,a.default)(s),v,{writable:!0,value:void 0}),Object.defineProperty((0,a.default)(s),w,{writable:!0,value:void 0}),(0,l.default)((0,a.default)(s),m)[m]=c,(0,l.default)((0,a.default)(s),v)[v]=f,(0,l.default)((0,a.default)(s),w)[w]=u,s}return(0,o.default)(r,[{key:"isDecoded",get:function(){return!!(0,l.default)(this,v)[v]}},{key:"inspect",value:function(){return(0,l.default)(this,v)[v]?{inner:[(0,l.default)(this,v)[v].inspect()],outer:[(0,p.compactToU8a)(this.length)]}:{outer:[(0,p.compactToU8a)(this.length),this.toU8a(!0)]}}},{key:"toHuman",value:function(e){return(0,l.default)(this,v)[v]?(0,l.default)(this,v)[v].toHuman(e):(0,s.default)((0,f.default)(r.prototype),"toHuman",this).call(this)}},{key:"toPrimitive",value:function(){return(0,l.default)(this,v)[v]?(0,l.default)(this,v)[v].toPrimitive():(0,s.default)((0,f.default)(r.prototype),"toPrimitive",this).call(this)}},{key:"toRawType",value:function(){return`${(0,l.default)(this,w)[w]}<${this.registry.getClassName((0,l.default)(this,m)[m])||((0,l.default)(this,v)[v]?(0,l.default)(this,v)[v].toRawType():new((0,l.default)(this,m)[m])(this.registry).toRawType())}>`}},{key:"toString",value:function(){return(0,l.default)(this,v)[v]?(0,l.default)(this,v)[v].toString():(0,s.default)((0,f.default)(r.prototype),"toString",this).call(this)}},{key:"unwrap",value:function(){if(!(0,l.default)(this,v)[v])throw new Error(`${(0,l.default)(this,w)[w]}: unwrapping an undecodable value`);return(0,l.default)(this,v)[v]}}],[{key:"with",value:function(e){return function(t){(0,u.default)(n,t);var r=h(n);function n(t,o){return(0,i.default)(this,n),r.call(this,t,e,o)}return(0,o.default)(n)}(r)}}]),r}(g.Bytes);t.WrapperKeepOpaque=_},4664:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,u.default)(e);if(t){var i=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.WrapperOpaque=void 0;let f=function(e){(0,a.default)(r,e);var t=c(r);function r(e,n,o){return(0,i.default)(this,r),t.call(this,e,n,o,{opaqueName:"WrapperOpaque"})}return(0,o.default)(r,[{key:"inner",get:function(){return this.unwrap()}}],[{key:"with",value:function(e){return function(t){(0,a.default)(n,t);var r=c(n);function n(t,o){return(0,i.default)(this,n),r.call(this,t,e,o)}return(0,o.default)(n)}(r)}}]),r}(r(47058).WrapperKeepOpaque);t.WrapperOpaque=f},81376:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BTreeMap",{enumerable:!0,get:function(){return i.BTreeMap}}),Object.defineProperty(t,"BTreeSet",{enumerable:!0,get:function(){return o.BTreeSet}}),Object.defineProperty(t,"BitVec",{enumerable:!0,get:function(){return n.BitVec}}),Object.defineProperty(t,"Bytes",{enumerable:!0,get:function(){return a.Bytes}}),Object.defineProperty(t,"CodecMap",{enumerable:!0,get:function(){return c.CodecMap}}),Object.defineProperty(t,"HashMap",{enumerable:!0,get:function(){return s.HashMap}}),Object.defineProperty(t,"Linkage",{enumerable:!0,get:function(){return u.Linkage}}),Object.defineProperty(t,"Map",{enumerable:!0,get:function(){return c.CodecMap}}),Object.defineProperty(t,"OptionBool",{enumerable:!0,get:function(){return f.OptionBool}}),Object.defineProperty(t,"Range",{enumerable:!0,get:function(){return l.Range}}),Object.defineProperty(t,"RangeInclusive",{enumerable:!0,get:function(){return d.RangeInclusive}}),Object.defineProperty(t,"Type",{enumerable:!0,get:function(){return h.Type}}),Object.defineProperty(t,"U8aFixed",{enumerable:!0,get:function(){return p.U8aFixed}}),Object.defineProperty(t,"WrapperKeepOpaque",{enumerable:!0,get:function(){return b.WrapperKeepOpaque}}),Object.defineProperty(t,"WrapperOpaque",{enumerable:!0,get:function(){return y.WrapperOpaque}});var n=r(52954),i=r(396),o=r(35466),a=r(33974),s=r(50623),u=r(81765),c=r(90498),f=r(41927),l=r(29777),d=r(37801),h=r(7294),p=r(94820),b=r(47058),y=r(4664)},74754:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(82420);var n=r(68680);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}))},60509:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808)),c=n(r(33496));Object.defineProperty(t,"__esModule",{value:!0}),t.bool=void 0;var f=r(9498);let l=function(e){(0,a.default)(c,e);var t,r,n=(t=c,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function c(e){var t;(0,i.default)(this,c);let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(t=n.call(this,(0,f.isU8a)(r)?1===r[0]:r instanceof Boolean?r.valueOf():!!r)).initialU8aLength=1,t.registry=e,t}return(0,o.default)(c,[{key:"encodedLength",get:function(){return 1}},{key:"hash",get:function(){return this.registry.hash(this.toU8a())}},{key:"isEmpty",get:function(){return this.isFalse}},{key:"isFalse",get:function(){return!this.isTrue}},{key:"isTrue",get:function(){return this.valueOf()}},{key:"eq",value:function(e){return this.valueOf()===(e instanceof Boolean?e.valueOf():e)}},{key:"inspect",value:function(){return{outer:[this.toU8a()]}}},{key:"toHex",value:function(){return(0,f.u8aToHex)(this.toU8a())}},{key:"toHuman",value:function(){return this.toJSON()}},{key:"toJSON",value:function(){return this.valueOf()}},{key:"toPrimitive",value:function(){return this.toJSON()}},{key:"toRawType",value:function(){return"bool"}},{key:"toString",value:function(){return this.toJSON().toString()}},{key:"toU8a",value:function(e){return new Uint8Array([this.valueOf()?1:0])}}]),c}((0,c.default)(Boolean));t.bool=l},89717:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(41588)),s=n(r(61655)),u=n(r(94993)),c=n(r(73808)),f=n(r(33496));Object.defineProperty(t,"__esModule",{value:!0}),t.CodecDate=void 0;var l=r(9498);const d={bitLength:64,isLe:!0};function h(e){if((0,l.isU8a)(e))e=(0,l.u8aToBn)(e.subarray(0,8));else{if(e instanceof Date)return e;(0,l.isString)(e)&&(e=new l.BN(e.toString(),10,"le"))}return new Date(1e3*(0,l.bnToBn)(e).toNumber())}let p=function(e){(0,s.default)(f,e);var t,r,n=(t=f,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,c.default)(t);if(r){var i=(0,c.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,u.default)(this,e)});function f(e){var t;(0,i.default)(this,f);let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(t=n.call(this,h(r))).initialU8aLength=8,t.registry=e,t}return(0,o.default)(f,[{key:"encodedLength",get:function(){return 8}},{key:"hash",get:function(){return this.registry.hash(this.toU8a())}},{key:"isEmpty",get:function(){return 0===this.getTime()}},{key:"bitLength",value:function(){return 64}},{key:"eq",value:function(e){return h(e).getTime()===this.getTime()}},{key:"inspect",value:function(){return{outer:[this.toU8a()]}}},{key:"toBigInt",value:function(){return BigInt(this.toNumber())}},{key:"toBn",value:function(){return new l.BN(this.toNumber())}},{key:"toHex",value:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,l.bnToHex)(this.toBn(),{bitLength:64,isLe:e,isNegative:!1})}},{key:"toHuman",value:function(){return this.toISOString()}},{key:"toJSON",value:function(){return this.toNumber()}},{key:"toNumber",value:function(){return Math.ceil(this.getTime()/1e3)}},{key:"toPrimitive",value:function(){return this.toNumber()}},{key:"toRawType",value:function(){return"Moment"}},{key:"toString",value:function(){return(0,a.default)((0,c.default)(f.prototype),"toString",this).call(this)}},{key:"toU8a",value:function(e){return(0,l.bnToU8a)(this.toNumber(),d)}}]),f}((0,f.default)(Date));t.CodecDate=p},7987:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(66115)),s=n(r(61655)),u=n(r(94993)),c=n(r(73808)),f=n(r(33496)),l=n(r(29399)),d=n(r(40426));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,c.default)(e);if(t){var i=(0,c.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,u.default)(this,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.Float=void 0;var p=r(9498),b=(0,d.default)("bitLength");let y=function(e){(0,s.default)(r,e);var t=h(r);function r(e,n){var o;(0,i.default)(this,r);let{bitLength:s=32}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return o=t.call(this,(0,p.isU8a)(n)||(0,p.isHex)(n)?0===n.length?0:(0,p.u8aToFloat)((0,p.u8aToU8a)(n),{bitLength:s}):n||0),Object.defineProperty((0,a.default)(o),b,{writable:!0,value:void 0}),(0,l.default)((0,a.default)(o),b)[b]=s,o.encodedLength=s/8,o.initialU8aLength=o.encodedLength,o.registry=e,o}return(0,o.default)(r,[{key:"hash",get:function(){return this.registry.hash(this.toU8a())}},{key:"isEmpty",get:function(){return 0===this.valueOf()}},{key:"eq",value:function(e){return this.valueOf()===Number(e)}},{key:"inspect",value:function(){return{outer:[this.toU8a()]}}},{key:"toHex",value:function(){return(0,p.u8aToHex)(this.toU8a())}},{key:"toHuman",value:function(){return this.toString()}},{key:"toJSON",value:function(){return this.toHex()}},{key:"toNumber",value:function(){return this.valueOf()}},{key:"toPrimitive",value:function(){return this.toNumber()}},{key:"toRawType",value:function(){return`f${(0,l.default)(this,b)[b]}`}},{key:"toU8a",value:function(){return(0,p.floatToU8a)(this,{bitLength:(0,l.default)(this,b)[b]})}}],[{key:"with",value:function(e){return function(t){(0,s.default)(n,t);var r=h(n);function n(t,o){return(0,i.default)(this,n),r.call(this,t,o,{bitLength:e})}return(0,o.default)(n)}(r)}}]),r}((0,f.default)(Number));t.Float=y},52262:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(66115)),s=n(r(61655)),u=n(r(94993)),c=n(r(73808)),f=n(r(33496));Object.defineProperty(t,"__esModule",{value:!0}),t.Json=void 0;var l=r(9498),d=r(15450);let h=function(e){(0,s.default)(f,e);var t,r,n=(t=f,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,c.default)(t);if(r){var i=(0,c.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,u.default)(this,e)});function f(e,t){var r;(0,i.default)(this,f);const o=function(e){return Object.entries(e||{})}(t);return(r=n.call(this,o)).registry=e,(0,l.objectProperties)((0,a.default)(r),o.map((e=>{let[t]=e;return t})),(e=>r.get(e))),r}return(0,o.default)(f,[{key:"encodedLength",get:function(){return 0}},{key:"hash",get:function(){return this.registry.hash(this.toU8a())}},{key:"isEmpty",get:function(){return 0===[...this.keys()].length}},{key:"eq",value:function(e){return(0,d.compareMap)(this,e)}},{key:"getT",value:function(e){return this.get(e)}},{key:"inspect",value:function(){throw new Error("Unimplemented")}},{key:"toHex",value:function(){throw new Error("Unimplemented")}},{key:"toHuman",value:function(){return[...this.entries()].reduce(((e,t)=>{let[r,n]=t;return e[r]=(0,l.isFunction)(n.toHuman)?n.toHuman():n,e}),{})}},{key:"toJSON",value:function(){return[...this.entries()].reduce(((e,t)=>{let[r,n]=t;return e[r]=n,e}),{})}},{key:"toPrimitive",value:function(){return[...this.entries()].reduce(((e,t)=>{let[r,n]=t;return e[r]=(0,l.isFunction)(n.toPrimitive)?n.toPrimitive():n,e}),{})}},{key:"toRawType",value:function(){return"Json"}},{key:"toString",value:function(){return(0,l.stringify)(this.toJSON())}},{key:"toU8a",value:function(e){throw new Error("Unimplemented")}}]),f}((0,f.default)(Map));t.Json=h},18922:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808)),c=n(r(33496));Object.defineProperty(t,"__esModule",{value:!0}),t.Raw=void 0;var f=r(9498);let l=function(e,t){(0,a.default)(l,e);var r,n,c=(r=l,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=(0,u.default)(r);if(n){var i=(0,u.default)(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return(0,s.default)(this,e)});function l(e,t,r){var n;return(0,i.default)(this,l),(n=c.call(this,(0,f.u8aToU8a)(t))).registry=e,n.initialU8aLength=r,n}return(0,o.default)(l,[{key:"encodedLength",get:function(){return this.length}},{key:"hash",get:function(){return this.registry.hash(this.toU8a())}},{key:"isAscii",get:function(){return(0,f.isAscii)(this)}},{key:"isEmpty",get:function(){return!this.length||(0,f.isUndefined)(this.find((e=>!!e)))}},{key:"isUtf8",get:function(){return(0,f.isUtf8)(this)}},{key:"bitLength",value:function(){return 8*this.length}},{key:"eq",value:function(e){return e instanceof Uint8Array?this.length===e.length&&!this.some(((t,r)=>t!==e[r])):this.eq((0,f.u8aToU8a)(e))}},{key:"inspect",value:function(){return{outer:[this.toU8a()]}}},{key:"toHex",value:function(){return(0,f.u8aToHex)(this)}},{key:"toHuman",value:function(){return this.toPrimitive()}},{key:"toJSON",value:function(){return this.toHex()}},{key:"toPrimitive",value:function(){if(this.isAscii){const e=this.toUtf8();if((0,f.isAscii)(e))return e}return this.toJSON()}},{key:"toRawType",value:function(){return"Raw"}},{key:"toString",value:function(){return this.toHex()}},{key:"toU8a",value:function(e){return Uint8Array.from(this)}},{key:"toUtf8",value:function(){if(!this.isUtf8)throw new Error("The character sequence is not a valid Utf8 string");return(0,f.u8aToString)(this)}}],[{key:t,get:function(){return Uint8Array}}]),l}((0,c.default)(Uint8Array),Symbol.species);t.Raw=l},42201:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(66115)),s=n(r(61655)),u=n(r(94993)),c=n(r(41588)),f=n(r(73808)),l=n(r(33496)),d=n(r(29399)),h=n(r(40426));function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,f.default)(e);if(t){var i=(0,f.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,u.default)(this,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.CodecSet=void 0;var b=r(9498),y=r(15450);function g(e,t){const r=new b.BN(0);for(let n=0;n<t.length;n++)r.ior((0,b.bnToBn)(e[t[n]]||0));return r}function m(e,t){const r=(0,b.bnToBn)(t),n=Object.keys(e),i=[];for(let t=0;t<n.length;t++){const o=n[t];r.and((0,b.bnToBn)(e[o])).eq((0,b.bnToBn)(e[o]))&&i.push(o)}const o=g(e,i);if(!r.eq(o))throw new Error(`Set: Mismatch decoding '${r.toString()}', computed as '${o.toString()}' with ${i.join(", ")}`);return i}function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;if(r%8!=0)throw new Error(`Expected valid bitLength, power of 8, found ${r}`);const n=r/8;return(0,b.isU8a)(t)?0===t.length?[]:m(e,(0,b.u8aToBn)(t.subarray(0,n),{isLe:!0})):(0,b.isString)(t)?v(e,(0,b.u8aToU8a)(t),n):t instanceof Set||Array.isArray(t)?function(e,t){const r=new Array(t.length);for(let n=0;n<t.length;n++){const i=t[n];if((0,b.isUndefined)(e[i]))throw new Error(`Set: Invalid key '${i}' passed to Set, allowed ${Object.keys(e).join(", ")}`);r[n]=i}return r}(e,Array.isArray(t)?t:[...t.values()]):m(e,t)}var w=(0,h.default)("allowed"),_=(0,h.default)("byteLength");let x=function(e){(0,s.default)(r,e);var t=p(r);function r(e,n,o){var s,u;(0,i.default)(this,r);let l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:8;return u=t.call(this,v(n,o,l)),Object.defineProperty((0,a.default)(u),w,{writable:!0,value:void 0}),Object.defineProperty((0,a.default)(u),_,{writable:!0,value:void 0}),u.add=e=>{if((0,d.default)((0,a.default)(u),w)[w]&&(0,b.isUndefined)((0,d.default)((0,a.default)(u),w)[w][e]))throw new Error(`Set: Invalid key '${e}' on add`);return(0,c.default)((s=(0,a.default)(u),(0,f.default)(r.prototype)),"add",s).call(s,e),(0,a.default)(u)},u.registry=e,(0,d.default)((0,a.default)(u),w)[w]=n,(0,d.default)((0,a.default)(u),_)[_]=l/8,u}return(0,o.default)(r,[{key:"encodedLength",get:function(){return(0,d.default)(this,_)[_]}},{key:"hash",get:function(){return this.registry.hash(this.toU8a())}},{key:"isEmpty",get:function(){return 0===this.size}},{key:"strings",get:function(){return[...(0,c.default)((0,f.default)(r.prototype),"values",this).call(this)]}},{key:"valueEncoded",get:function(){return g((0,d.default)(this,w)[w],this.strings)}},{key:"eq",value:function(e){return Array.isArray(e)?(0,y.compareArray)(this.strings.sort(),e.sort()):e instanceof Set?this.eq([...e.values()]):!(!(0,b.isNumber)(e)&&!(0,b.isBn)(e))&&this.valueEncoded.eq((0,b.bnToBn)(e))}},{key:"inspect",value:function(){return{outer:[this.toU8a()]}}},{key:"toHex",value:function(){return(0,b.u8aToHex)(this.toU8a())}},{key:"toHuman",value:function(){return this.toJSON()}},{key:"toJSON",value:function(){return this.strings}},{key:"toNumber",value:function(){return this.valueEncoded.toNumber()}},{key:"toPrimitive",value:function(){return this.toJSON()}},{key:"toRawType",value:function(){return(0,b.stringify)({_set:(0,d.default)(this,w)[w]})}},{key:"toString",value:function(){return`[${this.strings.join(", ")}]`}},{key:"toU8a",value:function(e){return(0,b.bnToU8a)(this.valueEncoded,{bitLength:8*(0,d.default)(this,_)[_],isLe:!0})}}],[{key:"with",value:function(e,t){var n;return n=function(r){(0,s.default)(a,r);var n=p(a);function a(r,o){return(0,i.default)(this,a),n.call(this,r,e,o,t)}return(0,o.default)(a)}(r),(()=>{const t=Object.keys(e),r=new Array(t.length);for(let e=0;e<t.length;e++)r[e]=`is${(0,b.stringPascalCase)(t[e])}`;(0,b.objectProperties)(n.prototype,r,((e,r,n)=>n.strings.includes(t[r])))})(),n}}]),r}((0,l.default)(Set));t.CodecSet=x},993:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(38416)),o=n(r(56690)),a=n(r(89728)),s=n(r(66115)),u=n(r(41588)),c=n(r(61655)),f=n(r(94993)),l=n(r(73808)),d=n(r(33496)),h=n(r(29399)),p=n(r(40426));function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,l.default)(e);if(t){var i=(0,l.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,f.default)(this,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.Struct=void 0;var m=r(9498),v=r(15450);function w(e){return e}var _=(0,p.default)("jsonMap"),x=(0,p.default)("Types");let O=function(e){(0,c.default)(r,e);var t=g(r);function r(e,n,i){var a;(0,o.default)(this,r);let u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Map,{definition:c,setDefinition:f=w}=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};const l=c||f((0,v.mapToTypeMap)(e,n)),[d,p]=(0,m.isU8a)(i)||(0,m.isHex)(i)?(0,v.decodeU8aStruct)(e,new Array(l[0].length),(0,m.u8aToU8a)(i),l):i instanceof r?[i,0]:function(e,t,r,n){let i,[o,a]=t;const s=Array.isArray(r),u=r instanceof Map;if(!(s||u||(0,m.isObject)(r)))throw new Error(`Struct: Cannot decode value ${(0,m.stringify)(r)} (typeof ${typeof r}), expected an input object, map or array`);if(s&&r.length!==a.length)throw new Error(`Struct: Unable to map ${(0,m.stringify)(r)} array to object with known keys ${a.join(", ")}`);const c=new Array(a.length);for(let t=0;t<a.length;t++){const f=a[t],l=n.get(f)||f,d=o[t];let h;try{if(s)h=r[t];else if(u)h=l&&r.get(l);else if(h=l&&r[l],(0,m.isUndefined)(h)){if((0,m.isUndefined)(i)){const e=Object.entries(r);i={};for(let t=0;t<e.length;t++)i[(0,m.stringCamelCase)(e[t][0])]=e[t][1]}h=l&&i[l]}c[t]=[f,h instanceof d?h:new d(e,h)]}catch(t){let r=d.name;try{r=new d(e).toRawType()}catch(e){}throw new Error(`Struct: failed on ${l}: ${r}:: ${t.message}`)}}return[c,0]}(e,l,i||{},u);return a=t.call(this,d),Object.defineProperty((0,s.default)(a),_,{writable:!0,value:void 0}),Object.defineProperty((0,s.default)(a),x,{writable:!0,value:void 0}),a.initialU8aLength=p,a.registry=e,(0,h.default)((0,s.default)(a),_)[_]=u,(0,h.default)((0,s.default)(a),x)[x]=l,a}return(0,a.default)(r,[{key:"defKeys",get:function(){return(0,h.default)(this,x)[x][1]}},{key:"isEmpty",get:function(){for(const e of this.values())if(!e.isEmpty)return!1;return!0}},{key:"encodedLength",get:function(){let e=0;for(const t of this.values())e+=t.encodedLength;return e}},{key:"hash",get:function(){return this.registry.hash(this.toU8a())}},{key:"Type",get:function(){const e={},[t,r]=(0,h.default)(this,x)[x];for(let n=0;n<r.length;n++)e[r[n]]=new t[n](this.registry).toRawType();return e}},{key:"eq",value:function(e){return(0,v.compareMap)(this,e)}},{key:"get",value:function(e){return(0,u.default)((0,l.default)(r.prototype),"get",this).call(this,e)}},{key:"getAtIndex",value:function(e){return this.toArray()[e]}},{key:"getT",value:function(e){return(0,u.default)((0,l.default)(r.prototype),"get",this).call(this,e)}},{key:"inspect",value:function(e){const t=new Array;for(const[r,n]of this.entries())t.push(y(y({},n.inspect(!e||(0,m.isBoolean)(e)?e:e[r])),{},{name:(0,m.stringCamelCase)(r)}));return{inner:t}}},{key:"toArray",value:function(){return[...this.values()]}},{key:"toHex",value:function(){return(0,m.u8aToHex)(this.toU8a())}},{key:"toHuman",value:function(e){const t={};for(const[r,n]of this.entries())t[r]=n.toHuman(e);return t}},{key:"toJSON",value:function(){const e={};for(const[t,r]of this.entries())e[(0,h.default)(this,_)[_].get(t)||t]=r.toJSON();return e}},{key:"toPrimitive",value:function(){const e={};for(const[t,r]of this.entries())e[t]=r.toPrimitive();return e}},{key:"toRawType",value:function(){return(0,m.stringify)((0,v.typesToMap)(this.registry,(0,h.default)(this,x)[x]))}},{key:"toString",value:function(){return(0,m.stringify)(this.toJSON())}},{key:"toU8a",value:function(e){const t=[];for(const[r,n]of this.entries())t.push(n.toU8a(!e||(0,m.isBoolean)(e)?e:e[r]));return(0,m.u8aConcatStrict)(t)}}],[{key:"with",value:function(e,t){var n;let i;const s=e=>i=e;return n=function(r){(0,c.default)(u,r);var n=g(u);function u(r,a){return(0,o.default)(this,u),n.call(this,r,e,a,t,{definition:i,setDefinition:s})}return(0,a.default)(u)}(r),(()=>{const t=Object.keys(e);(0,m.objectProperties)(n.prototype,t,((e,t,r)=>r.get(e)))})(),n}}]),r}((0,d.default)(Map));t.Struct=O},76875:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(66115)),s=n(r(41588)),u=n(r(61655)),c=n(r(94993)),f=n(r(73808)),l=n(r(33496)),d=n(r(29399)),h=n(r(40426));Object.defineProperty(t,"__esModule",{value:!0}),t.Text=void 0;var p=r(9498),b=r(18922);var y=(0,h.default)("override");let g=function(e){(0,u.default)(l,e);var t,r,n=(t=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,f.default)(t);if(r){var i=(0,f.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,c.default)(this,e)});function l(e,t){var r;(0,i.default)(this,l);const[o,s]=function(e){if((0,p.isU8a)(e)){if(!e.length)return["",0];if(e instanceof b.Raw)return[(0,p.u8aToString)(e),0];const[t,r]=(0,p.compactFromU8aLim)(e),n=t+r;if(r>131072)throw new Error(`Text: length ${r.toString()} exceeds 131072`);if(n>e.length)throw new Error(`Text: required length less than remainder, expected at least ${n}, found ${e.length}`);return[(0,p.u8aToString)(e.subarray(t,n)),n]}return(0,p.isHex)(e)?[(0,p.u8aToString)((0,p.hexToU8a)(e)),0]:[e?e.toString():"",0]}(t);return r=n.call(this,o),Object.defineProperty((0,a.default)(r),y,{writable:!0,value:null}),r.registry=e,r.initialU8aLength=s,r}return(0,o.default)(l,[{key:"encodedLength",get:function(){return this.toU8a().length}},{key:"hash",get:function(){return this.registry.hash(this.toU8a())}},{key:"isEmpty",get:function(){return 0===this.length}},{key:"length",get:function(){return(0,s.default)((0,f.default)(l.prototype),"length",this)}},{key:"eq",value:function(e){return!!(0,p.isString)(e)&&this.toString()===e.toString()}},{key:"inspect",value:function(){const e=(0,p.stringToU8a)((0,s.default)((0,f.default)(l.prototype),"toString",this).call(this));return{outer:e.length?[(0,p.compactToU8a)(e.length),e]:[(0,p.compactToU8a)(e.length)]}}},{key:"setOverride",value:function(e){(0,d.default)(this,y)[y]=e}},{key:"toHex",value:function(){return(0,p.u8aToHex)(this.toU8a(!0))}},{key:"toHuman",value:function(){return this.toJSON()}},{key:"toJSON",value:function(){return this.toString()}},{key:"toPrimitive",value:function(){return this.toJSON()}},{key:"toRawType",value:function(){return"Text"}},{key:"toString",value:function(){return(0,d.default)(this,y)[y]||(0,s.default)((0,f.default)(l.prototype),"toString",this).call(this)}},{key:"toU8a",value:function(e){const t=(0,p.stringToU8a)((0,s.default)((0,f.default)(l.prototype),"toString",this).call(this));return e?t:(0,p.compactAddLength)(t)}}]),l}((0,l.default)(String));t.Text=g},49147:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Bool",{enumerable:!0,get:function(){return n.bool}}),Object.defineProperty(t,"CodecDate",{enumerable:!0,get:function(){return i.CodecDate}}),Object.defineProperty(t,"CodecSet",{enumerable:!0,get:function(){return u.CodecSet}}),Object.defineProperty(t,"Date",{enumerable:!0,get:function(){return i.CodecDate}}),Object.defineProperty(t,"Float",{enumerable:!0,get:function(){return o.Float}}),Object.defineProperty(t,"Json",{enumerable:!0,get:function(){return a.Json}}),Object.defineProperty(t,"Raw",{enumerable:!0,get:function(){return s.Raw}}),Object.defineProperty(t,"Set",{enumerable:!0,get:function(){return u.CodecSet}}),Object.defineProperty(t,"Struct",{enumerable:!0,get:function(){return c.Struct}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return f.Text}}),Object.defineProperty(t,"bool",{enumerable:!0,get:function(){return n.bool}});var n=r(60509),i=r(89717),o=r(7987),a=r(52262),s=r(18922),u=r(42201),c=r(993),f=r(76875)},68434:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/types-codec",path:"/",type:"cjs",version:"9.13.2"}},21544:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(89728)),o=n(r(56690)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.f32=void 0;let c=function(e){(0,a.default)(c,e);var t,r,n=(t=c,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function c(){var e;(0,o.default)(this,c);for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return(e=n.call(this,...r)).__FloatType="f32",e}return(0,i.default)(c)}(r(7987).Float.with(32));t.f32=c},155:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(89728)),o=n(r(56690)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.f64=void 0;let c=function(e){(0,a.default)(c,e);var t,r,n=(t=c,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function c(){var e;(0,o.default)(this,c);for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return(e=n.call(this,...r)).__FloatType="f64",e}return(0,i.default)(c)}(r(7987).Float.with(64));t.f64=c},69975:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(89728)),o=n(r(56690)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.i128=void 0;let c=function(e){(0,a.default)(c,e);var t,r,n=(t=c,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function c(){var e;(0,o.default)(this,c);for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return(e=n.call(this,...r)).__IntType="i128",e}return(0,i.default)(c)}(r(81852).Int.with(128));t.i128=c},8872:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(89728)),o=n(r(56690)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.i16=void 0;let c=function(e){(0,a.default)(c,e);var t,r,n=(t=c,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function c(){var e;(0,o.default)(this,c);for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return(e=n.call(this,...r)).__IntType="i16",e}return(0,i.default)(c)}(r(81852).Int.with(16));t.i16=c},55929:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(89728)),o=n(r(56690)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.i256=void 0;let c=function(e){(0,a.default)(c,e);var t,r,n=(t=c,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function c(){var e;(0,o.default)(this,c);for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return(e=n.call(this,...r)).__IntType="i256",e}return(0,i.default)(c)}(r(81852).Int.with(256));t.i256=c},86567:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(89728)),o=n(r(56690)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.i32=void 0;let c=function(e){(0,a.default)(c,e);var t,r,n=(t=c,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function c(){var e;(0,o.default)(this,c);for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return(e=n.call(this,...r)).__IntType="i32",e}return(0,i.default)(c)}(r(81852).Int.with(32));t.i32=c},57842:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(89728)),o=n(r(56690)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.i64=void 0;let c=function(e){(0,a.default)(c,e);var t,r,n=(t=c,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function c(){var e;(0,o.default)(this,c);for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return(e=n.call(this,...r)).__IntType="i64",e}return(0,i.default)(c)}(r(81852).Int.with(64));t.i64=c},45929:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(89728)),o=n(r(56690)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.i8=void 0;let c=function(e){(0,a.default)(c,e);var t,r,n=(t=c,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function c(){var e;(0,o.default)(this,c);for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return(e=n.call(this,...r)).__IntType="i8",e}return(0,i.default)(c)}(r(81852).Int.with(8));t.i8=c},78909:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(89728)),o=n(r(56690)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.u128=void 0;let c=function(e){(0,a.default)(c,e);var t,r,n=(t=c,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function c(){var e;(0,o.default)(this,c);for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return(e=n.call(this,...r)).__UIntType="u128",e}return(0,i.default)(c)}(r(28271).UInt.with(128));t.u128=c},43790:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(89728)),o=n(r(56690)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.u16=void 0;let c=function(e){(0,a.default)(c,e);var t,r,n=(t=c,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function c(){var e;(0,o.default)(this,c);for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return(e=n.call(this,...r)).__UIntType="u16",e}return(0,i.default)(c)}(r(28271).UInt.with(16));t.u16=c},86633:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(89728)),o=n(r(56690)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.u256=void 0;let c=function(e){(0,a.default)(c,e);var t,r,n=(t=c,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function c(){var e;(0,o.default)(this,c);for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return(e=n.call(this,...r)).__UIntType="u256",e}return(0,i.default)(c)}(r(28271).UInt.with(256));t.u256=c},33266:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(89728)),o=n(r(56690)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.u32=void 0;let c=function(e){(0,a.default)(c,e);var t,r,n=(t=c,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function c(){var e;(0,o.default)(this,c);for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return(e=n.call(this,...r)).__UIntType="u32",e}return(0,i.default)(c)}(r(28271).UInt.with(32));t.u32=c},61984:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(89728)),o=n(r(56690)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.u64=void 0;let c=function(e){(0,a.default)(c,e);var t,r,n=(t=c,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function c(){var e;(0,o.default)(this,c);for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return(e=n.call(this,...r)).__UIntType="u64",e}return(0,i.default)(c)}(r(28271).UInt.with(64));t.u64=c},39767:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(89728)),o=n(r(56690)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.u8=void 0;let c=function(e){(0,a.default)(c,e);var t,r,n=(t=c,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function c(){var e;(0,o.default)(this,c);for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return(e=n.call(this,...r)).__UIntType="u8",e}return(0,i.default)(c)}(r(28271).UInt.with(8));t.u8=c},62983:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(89728)),o=n(r(56690)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.usize=void 0;let c=function(e){(0,a.default)(c,e);var t,r,n=(t=c,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function c(e,t){throw(0,o.default)(this,c),n.call(this,e,t),new Error("The `usize` type should not be used. Since it is platform-specific, it creates incompatibilities between native (generally u64) and WASM (always u32) code. Use one of the `u32` or `u64` types explicitly.")}return(0,i.default)(c)}(r(33266).u32);t.usize=c},94440:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"F32",{enumerable:!0,get:function(){return n.f32}}),Object.defineProperty(t,"F64",{enumerable:!0,get:function(){return i.f64}}),Object.defineProperty(t,"I128",{enumerable:!0,get:function(){return c.i128}}),Object.defineProperty(t,"I16",{enumerable:!0,get:function(){return a.i16}}),Object.defineProperty(t,"I256",{enumerable:!0,get:function(){return f.i256}}),Object.defineProperty(t,"I32",{enumerable:!0,get:function(){return s.i32}}),Object.defineProperty(t,"I64",{enumerable:!0,get:function(){return u.i64}}),Object.defineProperty(t,"I8",{enumerable:!0,get:function(){return o.i8}}),Object.defineProperty(t,"U128",{enumerable:!0,get:function(){return b.u128}}),Object.defineProperty(t,"U16",{enumerable:!0,get:function(){return d.u16}}),Object.defineProperty(t,"U256",{enumerable:!0,get:function(){return y.u256}}),Object.defineProperty(t,"U32",{enumerable:!0,get:function(){return h.u32}}),Object.defineProperty(t,"U64",{enumerable:!0,get:function(){return p.u64}}),Object.defineProperty(t,"U8",{enumerable:!0,get:function(){return l.u8}}),Object.defineProperty(t,"USize",{enumerable:!0,get:function(){return g.usize}}),Object.defineProperty(t,"f32",{enumerable:!0,get:function(){return n.f32}}),Object.defineProperty(t,"f64",{enumerable:!0,get:function(){return i.f64}}),Object.defineProperty(t,"i128",{enumerable:!0,get:function(){return c.i128}}),Object.defineProperty(t,"i16",{enumerable:!0,get:function(){return a.i16}}),Object.defineProperty(t,"i256",{enumerable:!0,get:function(){return f.i256}}),Object.defineProperty(t,"i32",{enumerable:!0,get:function(){return s.i32}}),Object.defineProperty(t,"i64",{enumerable:!0,get:function(){return u.i64}}),Object.defineProperty(t,"i8",{enumerable:!0,get:function(){return o.i8}}),Object.defineProperty(t,"u128",{enumerable:!0,get:function(){return b.u128}}),Object.defineProperty(t,"u16",{enumerable:!0,get:function(){return d.u16}}),Object.defineProperty(t,"u256",{enumerable:!0,get:function(){return y.u256}}),Object.defineProperty(t,"u32",{enumerable:!0,get:function(){return h.u32}}),Object.defineProperty(t,"u64",{enumerable:!0,get:function(){return p.u64}}),Object.defineProperty(t,"u8",{enumerable:!0,get:function(){return l.u8}}),Object.defineProperty(t,"usize",{enumerable:!0,get:function(){return g.usize}});var n=r(21544),i=r(155),o=r(45929),a=r(8872),s=r(86567),u=r(57842),c=r(69975),f=r(55929),l=r(39767),d=r(43790),h=r(33266),p=r(61984),b=r(78909),y=r(86633),g=r(62983)},57503:()=>{},40557:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compareArray=function(e,t){return!!Array.isArray(t)&&(e.length===t.length&&(0,n.isUndefined)(e.find(((e,r)=>(0,i.hasEq)(e)?!e.eq(t[r]):e!==t[r]))))};var n=r(9498),i=r(55362)},73477:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compareMap=function(e,t){return Array.isArray(t)?o(e,t):t instanceof Map?o(e,[...t.entries()]):!!(0,n.isObject)(t)&&o(e,Object.entries(t))};var n=r(9498),i=r(55362);function o(e,t){return e.size===t.length&&!t.some((t=>{return r=t,!Array.isArray(r)||2!==r.length||function(e,t){return(0,n.isUndefined)(e)||((0,i.hasEq)(e)?!e.eq(t):e!==t)}(e.get(t[0]),t[1]);var r}))}},94522:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compareSet=function(e,t){return Array.isArray(t)?i(e,t):t instanceof Set?i(e,[...t.values()]):!!(0,n.isObject)(t)&&i(e,Object.values(t))};var n=r(9498);function i(e,t){return e.size===t.length&&!t.some((t=>!e.has(t)))}},30967:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeU8a=function(e,t,r,n){let[o,a]=n;const s=t.length;let u=0,c=0;try{for(;c<s;){const n=new o[c](e,r.subarray(u));u+=n.initialU8aLength||n.encodedLength,t[c]=n,c++}}catch(t){throw new Error(i(e,"decodeU8a",0,t,r.subarray(u),c,s,o[c],a[c]))}return[t,u]},t.decodeU8aStruct=function(e,t,r,n){let[o,a]=n;const s=t.length;let u=0,c=0;try{for(;c<s;){const n=new o[c](e,r.subarray(u));u+=n.initialU8aLength||n.encodedLength,t[c]=[a[c],n],c++}}catch(t){throw new Error(i(e,"decodeU8aStruct",0,t,r.subarray(u),c,s,o[c],a[c]))}return[t,u]},t.decodeU8aVec=function(e,t,r,n,o){const a=t.length;let s=n,u=0;try{for(;u<a;){const n=new o(e,r.subarray(s));s+=n.initialU8aLength||n.encodedLength,t[u]=n,u++}}catch(t){throw new Error(i(e,"decodeU8aVec",0,t,r.subarray(s),u,a,o))}return[s,s-n]};var n=r(9498);function i(e,t,r,i,o,a,s,u,c){let{message:f}=i,l="";try{l=`: ${new u(e).toRawType()}`}catch(e){}return`${t}: failed at ${(0,n.u8aToHex)(o.subarray(0,16))}…${c?` on ${c}`:""} (index ${a+1}/${s})${l}:: ${f}`}},15450:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"compareArray",{enumerable:!0,get:function(){return n.compareArray}}),Object.defineProperty(t,"compareMap",{enumerable:!0,get:function(){return i.compareMap}}),Object.defineProperty(t,"compareSet",{enumerable:!0,get:function(){return o.compareSet}}),Object.defineProperty(t,"decodeU8a",{enumerable:!0,get:function(){return a.decodeU8a}}),Object.defineProperty(t,"decodeU8aStruct",{enumerable:!0,get:function(){return a.decodeU8aStruct}}),Object.defineProperty(t,"decodeU8aVec",{enumerable:!0,get:function(){return a.decodeU8aVec}}),Object.defineProperty(t,"mapToTypeMap",{enumerable:!0,get:function(){return s.mapToTypeMap}}),Object.defineProperty(t,"sanitize",{enumerable:!0,get:function(){return c.sanitize}}),Object.defineProperty(t,"sortAsc",{enumerable:!0,get:function(){return f.sortAsc}}),Object.defineProperty(t,"sortMap",{enumerable:!0,get:function(){return f.sortMap}}),Object.defineProperty(t,"sortSet",{enumerable:!0,get:function(){return f.sortSet}}),Object.defineProperty(t,"typeToConstructor",{enumerable:!0,get:function(){return u.typeToConstructor}}),Object.defineProperty(t,"typesToMap",{enumerable:!0,get:function(){return l.typesToMap}});var n=r(40557),i=r(73477),o=r(94522),a=r(30967),s=r(57586),u=r(67450),c=r(13474),f=r(26538),l=r(32996)},57586:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapToTypeMap=function(e,t){const r=Object.entries(t),i=r.length,o=[new Array(i),new Array(i)];for(let t=0;t<i;t++)o[1][t]=r[t][0],o[0][t]=(0,n.typeToConstructor)(e,r[t][1]);return o};var n=r(67450)},13474:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.alias=s,t.cleanupCompact=u,t.findClosing=a,t.flattenSingleTuple=c,t.removeColons=d,t.removeExtensions=l,t.removeGenerics=h,t.removePairOf=p,t.removeTraits=b,t.removeWrap=y,t.sanitize=function(e){const t=e.toString(),r=g.get(t);if(r)return r;let n=t;for(let e=0;e<o.length;e++)n=o[e](n);return g.set(t,n),n},t.trim=function(){return e=>e.trim()};const r=["BTreeMap","BTreeSet","HashMap","Vec"],n=r.concat(["Compact","DoNotConstruct","Int","Linkage","Range","RangeInclusive","Result","Opaque","Option","UInt","WrapperKeepOpaque","WrapperOpaque"]),i=["<","(","[",'"',","," "],o=[s("<T::InherentOfflineReport as InherentOfflineReport>::Inherent","InherentOfflineReport",!1),s("VecDeque<","Vec<",!1),u(),l("Bounded",!0),l("Weak",!1),b(),p(),y("Box<"),h(),s("String","Text"),s("Vec<u8>","Bytes"),s("&\\[u8\\]","Bytes"),s("&'static\\[u8\\]","Bytes"),s("RawAddress","Address"),s("Lookup::Source","LookupSource"),s("Lookup::Target","LookupTarget"),s("exec::StorageKey","ContractStorageKey"),c(),d(),e=>e.trim()];function a(e,t){let r=0;for(let n=t;n<e.length;n++)if(">"===e[n]){if(!r)return n;r--}else"<"===e[n]&&r++;throw new Error(`Unable to find closing matching <> on '${e}' (start ${t})`)}function s(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const n=new RegExp(`(^${e}|${i.map((t=>`\\${t}${e}`)).join("|")})`,"g"),o=e=>(n.lastIndex=0,r&&i.includes(e[0])?`${e[0]}${t}`:t);return e=>e.replace(n,o)}function u(){return e=>{if(e.includes(" as HasCompact"))for(let t=0;t<e.length;t++)if("<"===e[t]){const r=a(e,t+1)-14;" as HasCompact"===e.substring(r,r+14)&&(e=`Compact<${e.substring(t+1,r)}>`)}return e}}function c(){const e=/,\)/g,t=/\(([^,]+)\)/;return r=>(e.lastIndex=0,r.replace(e,")").replace(t,"$1"))}function f(e,t,r){let n=-1;for(;;){if(n=e.indexOf(t,n+1),-1===n)return e;const i=n+t.length,o=a(e,i);e=`${e.substring(0,n)}${r(e.substring(i,o))}${e.substring(o+1)}`}}function l(e,t){return n=>{for(let i=0;i<r.length;i++){const o=r[i];n=f(n,`${e}${o}<`,(e=>{const r=e.split(",").map((e=>e.trim())).filter((e=>e));return t&&r.pop(),`${o}<${r.join(",")}>`}))}return n}}function d(){return e=>{let t=0;for(;-1!==t;)if(t=e.indexOf("::"),0===t)e=e.substring(2);else if(-1!==t){let r=t;for(;-1!==r&&!i.includes(e[r]);)r--;e=`${e.substring(0,r+1)}${e.substring(t+2)}`}return e}}function h(){return e=>{for(let t=0;t<e.length;t++)if("<"===e[t]&&!n.find((r=>{const n=t-r.length;return n>=0&&e.substring(n,t)===r&&(0===n||i.includes(e[n-1]))}))){const r=a(e,t+1);e=`${e.substring(0,t)}${e.substring(r+1)}`}return e}}function p(){const e=e=>`(${e},${e})`;return t=>f(t,"PairOf<",e)}function b(){const e=/\s/g,t=/(T|Self)::/g,r=/<(T|Self)asTrait>::/g,n=/<Tas[a-z]+::Trait>::/g,i=/<LookupasStaticLookup>/g,o=/::Type/g;return a=>(e.lastIndex=0,t.lastIndex=0,r.lastIndex=0,n.lastIndex=0,i.lastIndex=0,o.lastIndex=0,a.replace(e,"").replace(t,"").replace(r,"").replace(n,"").replace(i,"Lookup").replace(o,""))}function y(e){const t=e=>e;return r=>f(r,e,t)}const g=new Map},26538:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sortAsc=u,t.sortMap=function(e){return new Map(Array.from(e.entries()).sort(((e,t)=>{let[r]=e,[n]=t;return u(r,n)})))},t.sortSet=function(e){return new Set(Array.from(e).sort(u))};var n=r(9498);function i(e){return e instanceof Uint8Array||Array.isArray(e)}function o(e){return(0,n.isFunction)(e&&e.toU8a)}function a(e){return o(e)&&(0,n.isNumber)(e.index)&&o(e.value)}function s(e){return(0,n.isNumber)(e)||(0,n.isBn)(e)||(0,n.isBigInt)(e)}function u(e,t){if(s(e)&&s(t))return(0,n.bnToBn)(e).cmp((0,n.bnToBn)(t));if(e instanceof Map&&t instanceof Map)return u(Array.from(e.values()),Array.from(t.values()));if(a(e)&&a(t))return u(e.index,t.index)||u(e.value,t.value);if(i(e)&&i(t))return function(e,t){let r=0;const n=Math.min(e.length,t.length);for(let i=0;i<n;++i)if(r=u(e[i],t[i]),0!==r)return r;return e.length-t.length}(e,t);if(o(e)&&o(t))return u(e.toU8a(!0),t.toU8a(!0));throw new Error(`Attempting to sort unrecognized values: ${(0,n.stringify)(e)} (typeof ${typeof e}) <-> ${(0,n.stringify)(t)} (typeof ${typeof t})`)}},67450:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.typeToConstructor=function(e,t){return(0,n.isString)(t)?e.createClassUnsafe(t):t};var n=r(9498)},32996:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.typesToMap=function(e,t){let[r,n]=t;const i={};for(let t=0;t<n.length;t++)i[n[t]]=e.getClassName(r[t])||new r[t](e).toRawType();return i}},55362:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasEq=function(e){return(0,n.isFunction)(e.eq)};var n=r(9498)},15033:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayChunk=function(e,t){const r=Math.ceil(e.length/t);if(1===r)return[e];const n=Array(r);for(let i=0;i<r;i++){const r=i*t;n[i]=e.slice(r,r+t)}return n}},73028:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayFilter=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.filter((e=>void 0!==e&&(t||null!==e)))}},12351:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayFlatten=function(e){if(0===e.length)return[];if(1===e.length)return e[0];let t=0;for(let r=0;r<e.length;r++)t+=e[r].length;const r=new Array(t);let n=-1;for(let t=0;t<e.length;t++){const i=e[t];for(let e=0;e<i.length;e++)r[++n]=i[e]}return r}},19377:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"arrayChunk",{enumerable:!0,get:function(){return n.arrayChunk}}),Object.defineProperty(t,"arrayFilter",{enumerable:!0,get:function(){return i.arrayFilter}}),Object.defineProperty(t,"arrayFlatten",{enumerable:!0,get:function(){return o.arrayFlatten}}),Object.defineProperty(t,"arrayRange",{enumerable:!0,get:function(){return a.arrayRange}}),Object.defineProperty(t,"arrayShuffle",{enumerable:!0,get:function(){return s.arrayShuffle}}),Object.defineProperty(t,"arrayUnzip",{enumerable:!0,get:function(){return u.arrayUnzip}}),Object.defineProperty(t,"arrayZip",{enumerable:!0,get:function(){return c.arrayZip}});var n=r(15033),i=r(73028),o=r(12351),a=r(86074),s=r(55113),u=r(35066),c=r(24955)},86074:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayRange=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e<=0)throw new Error("Expected non-zero, positive number as a range size");const r=new Array(e);for(let n=0;n<e;n++)r[n]=n+t;return r}},55113:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayShuffle=function(e){const t=e.slice();let r=t.length;if(1===r)return t;for(;0!==r;){const e=~~(Math.random()*r);r--,[t[r],t[e]]=[t[e],t[r]]}return t}},35066:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayUnzip=function(e){const t=new Array(e.length),r=new Array(e.length);for(let n=0;n<e.length;n++)[t[n],r[n]]=e[n];return[t,r]}},24955:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayZip=function(e,t){const r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=[e[n],t[n]];return r}},1390:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assert=i,t.assertReturn=function(e,t){return i(null!=e,t),e},t.assertUnreachable=function(e){throw new Error(`This codepath should be unreachable. Unhandled input: ${e}`)};var n=r(90278);function i(e,t){if(!e)throw new Error((0,n.isFunction)(t)?t():t)}},28967:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._sqrt2pow53n=t._9n=t._8n=t._7n=t._6n=t._5n=t._4n=t._3n=t._2pow53n=t._2n=t._1n=t._1Qn=t._1Mn=t._1Bn=t._10n=t._100n=t._1000n=t._0n=void 0;var n=r(82935);const i=(0,n.BigInt)(0);t._0n=i;const o=(0,n.BigInt)(1);t._1n=o;const a=(0,n.BigInt)(2);t._2n=a;const s=(0,n.BigInt)(3);t._3n=s;const u=(0,n.BigInt)(4);t._4n=u;const c=(0,n.BigInt)(5);t._5n=c;const f=(0,n.BigInt)(6);t._6n=f;const l=(0,n.BigInt)(7);t._7n=l;const d=(0,n.BigInt)(8);t._8n=d;const h=(0,n.BigInt)(9);t._9n=h;const p=(0,n.BigInt)(10);t._10n=p;const b=(0,n.BigInt)(100);t._100n=b;const y=(0,n.BigInt)(1e3);t._1000n=y;const g=(0,n.BigInt)(1e6);t._1Mn=g;const m=(0,n.BigInt)(1e9);t._1Bn=m;const v=m*m;t._1Qn=v;const w=(0,n.BigInt)(Number.MAX_SAFE_INTEGER);t._2pow53n=w;const _=(0,n.BigInt)(94906265);t._sqrt2pow53n=_},28297:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCmp=function(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(0===r.length)throw new Error("Must provide one or more arguments");let i=r[0];for(let t=1;t<r.length;t++)e(r[t],i)&&(i=r[t]);return i}}},46387:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={nSqrt:!0,nToBigInt:!0,nMax:!0,nMin:!0,nToHex:!0,nToU8a:!0};Object.defineProperty(t,"nMax",{enumerable:!0,get:function(){return s.nMax}}),Object.defineProperty(t,"nMin",{enumerable:!0,get:function(){return s.nMin}}),Object.defineProperty(t,"nSqrt",{enumerable:!0,get:function(){return o.nSqrt}}),Object.defineProperty(t,"nToBigInt",{enumerable:!0,get:function(){return a.nToBigInt}}),Object.defineProperty(t,"nToHex",{enumerable:!0,get:function(){return u.nToHex}}),Object.defineProperty(t,"nToU8a",{enumerable:!0,get:function(){return c.nToU8a}});var i=r(28967);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=r(69779),a=r(13224),s=r(88202),u=r(26795),c=r(66098)},88202:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nMin=t.nMax=void 0;var n=r(28297);const i=(0,n.createCmp)(((e,t)=>e>t));t.nMax=i;const o=(0,n.createCmp)(((e,t)=>e<t));t.nMin=o},69779:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nSqrt=function(e){const t=(0,o.nToBigInt)(e);if(t<i._0n)throw new Error("square root of negative numbers is not supported");if(t<=i._2pow53n)return(0,n.BigInt)(~~Math.sqrt(Number(t)));let r=i._sqrt2pow53n;for(;;){const e=t/r+r>>i._1n;if(r===e||r===e-i._1n)return r;r=e}};var n=r(82935),i=r(28967),o=r(13224)},13224:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nToBigInt=function(e){return"bigint"==typeof e?e:e?(0,a.isHex)(e)?(0,i.hexToBigInt)(e.toString()):(0,o.isBn)(e)?(0,n.BigInt)(e.toString()):(0,s.isToBigInt)(e)?e.toBigInt():(0,u.isToBn)(e)?(0,n.BigInt)(e.toBn().toString()):(0,n.BigInt)(e):(0,n.BigInt)(0)};var n=r(82935),i=r(71983),o=r(57404),a=r(46025),s=r(31091),u=r(9722)},26795:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nToHex=function(e){let{bitLength:t,isLe:r=!1,isNegative:o=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.u8aToHex)((0,i.nToU8a)(e||0,{bitLength:t,isLe:r,isNegative:o}))};var n=r(29733),i=r(66098)},66098:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nToU8a=function(e){let{bitLength:t=-1,isLe:r=!0,isNegative:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const u=(0,o.nToBigInt)(e);if(u===i._0n)return-1===t?new Uint8Array(1):new Uint8Array(Math.ceil((t||0)/8));const c=function(e,t,r){const n=[];for(r&&(e=(e+i._1n)*-i._1n);e!==i._0n;){const i=e%a,o=Number(r?i^s:i);t?n.push(o):n.unshift(o),e=(e-i)/a}return Uint8Array.from(n)}(u,r,n);if(-1===t)return c;const f=Math.ceil((t||0)/8),l=new Uint8Array(f);return n&&l.fill(255),l.set(c,r?0:f-c.length),l};var n=r(82935),i=r(28967),o=r(13224);const a=(0,n.BigInt)(256),s=(0,n.BigInt)(255)},41205:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BN",{enumerable:!0,get:function(){return i.default}});var i=n(r(13550))},2106:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BN_ZERO=t.BN_TWO=t.BN_THREE=t.BN_THOUSAND=t.BN_TEN=t.BN_SQRT_MAX_INTEGER=t.BN_SIX=t.BN_SEVEN=t.BN_QUINTILL=t.BN_ONE=t.BN_NINE=t.BN_MILLION=t.BN_MAX_INTEGER=t.BN_HUNDRED=t.BN_FOUR=t.BN_FIVE=t.BN_EIGHT=t.BN_BILLION=void 0;var n=r(41205);const i=new n.BN(0);t.BN_ZERO=i;const o=new n.BN(1);t.BN_ONE=o;const a=new n.BN(2);t.BN_TWO=a;const s=new n.BN(3);t.BN_THREE=s;const u=new n.BN(4);t.BN_FOUR=u;const c=new n.BN(5);t.BN_FIVE=c;const f=new n.BN(6);t.BN_SIX=f;const l=new n.BN(7);t.BN_SEVEN=l;const d=new n.BN(8);t.BN_EIGHT=d;const h=new n.BN(9);t.BN_NINE=h;const p=new n.BN(10);t.BN_TEN=p;const b=new n.BN(100);t.BN_HUNDRED=b;const y=new n.BN(1e3);t.BN_THOUSAND=y;const g=new n.BN(1e6);t.BN_MILLION=g;const m=new n.BN(1e9);t.BN_BILLION=m;const v=m.mul(m);t.BN_QUINTILL=v;const w=new n.BN(Number.MAX_SAFE_INTEGER);t.BN_MAX_INTEGER=w;const _=new n.BN(94906265);t.BN_SQRT_MAX_INTEGER=_},66540:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bnFromHex",{enumerable:!0,get:function(){return n.hexToBn}});var n=r(57253)},47893:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={BN:!0,bnFromHex:!0,bnMax:!0,bnMin:!0,bnSqrt:!0,bnToBn:!0,bnToHex:!0,bnToU8a:!0};Object.defineProperty(t,"BN",{enumerable:!0,get:function(){return o.BN}}),Object.defineProperty(t,"bnFromHex",{enumerable:!0,get:function(){return a.bnFromHex}}),Object.defineProperty(t,"bnMax",{enumerable:!0,get:function(){return s.bnMax}}),Object.defineProperty(t,"bnMin",{enumerable:!0,get:function(){return s.bnMin}}),Object.defineProperty(t,"bnSqrt",{enumerable:!0,get:function(){return u.bnSqrt}}),Object.defineProperty(t,"bnToBn",{enumerable:!0,get:function(){return c.bnToBn}}),Object.defineProperty(t,"bnToHex",{enumerable:!0,get:function(){return f.bnToHex}}),Object.defineProperty(t,"bnToU8a",{enumerable:!0,get:function(){return l.bnToU8a}});var i=r(2106);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=r(41205),a=r(66540),s=r(55221),u=r(76279),c=r(2736),f=r(38433),l=r(90836)},55221:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnMin=t.bnMax=void 0;var n=r(28297);const i=(0,n.createCmp)(((e,t)=>e.gt(t)));t.bnMax=i;const o=(0,n.createCmp)(((e,t)=>e.lt(t)));t.bnMin=o},76279:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnSqrt=function(e){const t=(0,o.bnToBn)(e);if(t.isNeg())throw new Error("square root of negative numbers is not supported");if(t.lte(i.BN_MAX_INTEGER))return new n.BN(~~Math.sqrt(t.toNumber()));let r=i.BN_SQRT_MAX_INTEGER.clone();for(;;){const e=t.div(r).iadd(r).ishrn(1);if(r.eq(e)||r.eq(e.sub(i.BN_ONE)))return r;r=e}};var n=r(41205),i=r(2106),o=r(2736)},2736:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnToBn=function(e){return e?u.BN.isBN(e)?e:(0,o.isHex)(e)?(0,n.hexToBn)(e.toString()):(0,i.isBigInt)(e)?new u.BN(e.toString()):(0,s.isToBn)(e)?e.toBn():(0,a.isToBigInt)(e)?new u.BN(e.toBigInt().toString()):new u.BN(e):new u.BN(0)};var n=r(57253),i=r(45639),o=r(46025),a=r(31091),s=r(9722),u=r(41205)},38433:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnToHex=function(e){let{bitLength:t=-1,isLe:r=!1,isNegative:o=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.u8aToHex)((0,i.bnToU8a)(e,{bitLength:t,isLe:r,isNegative:o}))};var n=r(29733),i=r(90836)},90836:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnToU8a=function(e){let{bitLength:t=-1,isLe:r=!0,isNegative:o=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;const a=(0,n.bnToBn)(e),s=-1===t?Math.ceil(a.bitLength()/8):Math.ceil((t||0)/8);if(!e)return-1===t?new Uint8Array(1):new Uint8Array(s);const u=new Uint8Array(s),c=o?a.toTwos(8*s):a;return u.set(c.toArray(r?"le":"be",s),0),u};var n=r(2736);const i={bitLength:-1,isLe:!0,isNegative:!1}},57708:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bufferToU8a",{enumerable:!0,get:function(){return n.bufferToU8a}});var n=r(618)},618:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bufferToU8a=function(e){return new Uint8Array(e||[])}},8609:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={packageInfo:!0};Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return i.packageInfo}});var i=r(76432),o=r(19377);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=r(1390);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var s=r(46387);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var u=r(47893);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var c=r(57708);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var f=r(91922);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))}));var l=r(20695);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var d=r(36992);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var h=r(35058);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))}));var p=r(52804);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===p[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}}))}));var b=r(53213);Object.keys(b).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===b[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return b[e]}}))}));var y=r(80558);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===y[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return y[e]}}))}));var g=r(71530);Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===g[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return g[e]}}))}));var m=r(82797);Object.keys(m).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===m[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return m[e]}}))}));var v=r(66826);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===v[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return v[e]}}))}));var w=r(70484);Object.keys(w).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===w[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return w[e]}}))}));var _=r(76136);Object.keys(_).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===_[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return _[e]}}))}));var x=r(9528);Object.keys(x).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===x[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return x[e]}}))}));var O=r(38386);Object.keys(O).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===O[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return O[e]}}))}));var k=r(75246);Object.keys(k).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===k[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return k[e]}}))}));var P=r(4778);Object.keys(P).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===P[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return P[e]}}))}));var S=r(29733);Object.keys(S).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===S[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return S[e]}}))}));var A=r(75857);Object.keys(A).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===A[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return A[e]}}))}))},63689:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactAddLength=function(e){return(0,n.u8aConcatStrict)([(0,i.compactToU8a)(e.length),e])};var n=r(29733),i=r(26061)},53170:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactFromU8a=function(e){const t=(0,i.u8aToU8a)(e);switch(3&t[0]){case 0:return[1,new n.BN(t[0]>>>2)];case 1:return[2,new n.BN(t[0]+(t[1]<<8)>>>2)];case 2:return[4,new n.BN(t[0]+(t[1]<<8)+(t[2]<<16)+16777216*t[3]>>>2)];default:{const e=5+(t[0]>>>2);switch(e){case 5:return[5,new n.BN(t[1]+(t[2]<<8)+(t[3]<<16)+16777216*t[4])];case 6:return[6,new n.BN(t[1]+(t[2]<<8)+(t[3]<<16)+16777216*(t[4]+(t[5]<<8)))];case 7:return[7,new n.BN(t[1]+(t[2]<<8)+(t[3]<<16)+16777216*(t[4]+(t[5]<<8)+(t[6]<<16)))];default:return[e,(0,i.u8aToBn)(t.subarray(1,e))]}}}},t.compactFromU8aLim=function(e){switch(3&e[0]){case 0:return[1,e[0]>>>2];case 1:return[2,e[0]+(e[1]<<8)>>>2];case 2:return[4,e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]>>>2];default:switch(5+(e[0]>>>2)){case 5:return[5,e[1]+(e[2]<<8)+(e[3]<<16)+16777216*e[4]];case 6:return[6,e[1]+(e[2]<<8)+(e[3]<<16)+16777216*(e[4]+(e[5]<<8))];case 7:return[7,e[1]+(e[2]<<8)+(e[3]<<16)+16777216*(e[4]+(e[5]<<8)+(e[6]<<16))];default:throw new Error("Compact input is > Number.MAX_SAFE_INTEGER")}}};var n=r(47893),i=r(29733)},91922:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"compactAddLength",{enumerable:!0,get:function(){return n.compactAddLength}}),Object.defineProperty(t,"compactFromU8a",{enumerable:!0,get:function(){return o.compactFromU8a}}),Object.defineProperty(t,"compactFromU8aLim",{enumerable:!0,get:function(){return o.compactFromU8aLim}}),Object.defineProperty(t,"compactStripLength",{enumerable:!0,get:function(){return i.compactStripLength}}),Object.defineProperty(t,"compactToU8a",{enumerable:!0,get:function(){return a.compactToU8a}});var n=r(63689),i=r(91970),o=r(53170),a=r(26061)},91970:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactStripLength=function(e){const[t,r]=(0,n.compactFromU8a)(e),i=t+r.toNumber();return[i,e.subarray(t,i)]};var n=r(53170)},26061:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactToU8a=function(e){const t=(0,n.bnToBn)(e);if(t.lte(o))return new Uint8Array([t.toNumber()<<2]);if(t.lte(a))return(0,n.bnToU8a)(t.shln(2).iadd(n.BN_ONE),u);if(t.lte(s))return(0,n.bnToU8a)(t.shln(2).iadd(n.BN_TWO),c);const r=(0,n.bnToU8a)(t);let f=r.length;for(;0===r[f-1];)f--;if(f<4)throw new Error("Invalid length, previous checks match anything less than 2^30");return(0,i.u8aConcatStrict)([new Uint8Array([3+(f-4<<2)]),r.subarray(0,f)])};var n=r(47893),i=r(29733);const o=n.BN_TWO.pow(new n.BN(6)).isub(n.BN_ONE),a=n.BN_TWO.pow(new n.BN(14)).isub(n.BN_ONE),s=n.BN_TWO.pow(new n.BN(30)).isub(n.BN_ONE),u={bitLength:16},c={bitLength:32}},26391:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(33486),i=r(130),o=[n.packageInfo,i.packageInfo];t.default=o},75655:(e,t,r)=>{"use strict";var n=r(64836)(r(26391)),i=r(76432);(0,r(75857).detectPackage)(i.packageInfo,null,n.default)},20695:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extractTime=function e(t){return t?t<1e3?a({milliseconds:t},o):function(t){const o=t/1e3;if(o<60){const r=~~o;return a({seconds:r},e(t-1e3*r))}const s=o/60;if(s<60){const n=~~s;return a({minutes:n},e(t-n*r))}const u=s/60;if(u<24){const r=~~u;return a({hours:r},e(t-r*n))}const c=~~(u/24);return a({days:c},e(t-c*i))}(t):o};const r=6e4,n=60*r,i=24*n,o={days:0,hours:0,milliseconds:0,minutes:0,seconds:0};function a(e,t){return{days:(e.days||0)+t.days,hours:(e.hours||0)+t.hours,milliseconds:(e.milliseconds||0)+t.milliseconds,minutes:(e.minutes||0)+t.minutes,seconds:(e.seconds||0)+t.seconds}}},36992:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"floatToU8a",{enumerable:!0,get:function(){return n.floatToU8a}});var n=r(7599)},7599:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.floatToU8a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,{bitLength:t=32,isLe:r=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(32!==t&&64!==t)throw new Error("Invalid bitLength provided, expected 32 or 64");const n=new Uint8Array(t/8),i=new DataView(n.buffer,n.byteOffset);return 32===t?i.setFloat32(0,Number(e),r):i.setFloat64(0,Number(e),r),n}},53360:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatBalance=void 0;var n=r(2736),i=r(1799),o=r(96210),a=r(55365),s=r(70590);const u=s.SI[s.SI_MID].text;let c=0,f=u;const l=function(e){let{decimals:t=c,forceUnit:r,withAll:u=!1,withSi:f=!0,withSiFull:l=!1,withUnit:d=!0,withZero:h=!0,locale:p="en"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},b=(0,n.bnToBn)(e).toString();if(0===b.length||"0"===b)return"0";let y="";b[0].startsWith("-")&&(y="-",b=b.substring(1));const g=(0,s.calcSi)(b,t,r),m=b.length-(t+g.power),v=m<=0?"0":b.substring(0,m);let w=b.padStart(m<0?t:1,"0").substring(m<0?0:m).padEnd(u?Math.max(t,4):4,"0").substring(0,u?Math.max(4,t+g.power):4);if(!h){let e=w.length-1;do{"0"===w[e]&&e--}while("0"===w[e]);w=w.substring(0,e+1)}const _=(0,i.isBoolean)(d)?s.SI[s.SI_MID].text:d,x=f||l?"-"===g.value?d?` ${_}`:"":` ${l?`${g.text}${d?" ":""}`:g.value}${d?_:""}`:"",{decimal:O,thousand:k}=(0,a.getSeparator)(p);return`${y}${(0,o.formatDecimal)(v,k)}${w&&`${O}${w}`}${x}`};t.formatBalance=l,l.calcSi=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;return(0,s.calcSi)(e,t)},l.findSi=s.findSi,l.getDefaults=()=>({decimals:c,unit:f}),l.getOptions=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return s.SI.filter((t=>{let{power:r}=t;return!(r<0)||e+r>=0}))},l.setDefaults=e=>{let{decimals:t,unit:r}=e;c=void 0===t?c:Array.isArray(t)?t[0]:t,f=void 0===r?f:Array.isArray(r)?r[0]:r,s.SI[s.SI_MID].text=f}},18112:(e,t)=>{"use strict";function r(e){return e.toString().padStart(2,"0")}Object.defineProperty(t,"__esModule",{value:!0}),t.formatDate=function(e){return`${e.getFullYear().toString()}-${r(e.getMonth()+1)}-${r(e.getDate())} ${r(e.getHours())}:${r(e.getMinutes())}:${r(e.getSeconds())}`}},96210:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatDecimal=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";const n=e[0].startsWith("-"),i=n?e.substring(1).match(r):e.match(r);return i?`${n?"-":""}${i.join(t)}`:e};const r=new RegExp("(\\d+?)(?=(\\d{3})+(?!\\d)|$)","g")},81717:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatElapsed=function(e,t){const r=e&&e.getTime()||0,i=t instanceof Date?t.getTime():(0,n.bnToBn)(t).toNumber();return r&&i?(o=Math.max(Math.abs(r-i),0)/1e3)<15?`${o.toFixed(1)}s`:o<60?(0|o)+"s":o<3600?(o/60|0)+"m":(o/3600|0)+"h":"0.0s";var o};var n=r(2736)},25206:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatNumber=function(e){let{locale:t="en"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{thousand:r}=(0,o.getSeparator)(t);return(0,i.formatDecimal)((0,n.bnToBn)(e).toString(),r)};var n=r(2736),i=r(96210),o=r(55365)},55365:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSeparator=function(e){return{decimal:.1.toLocaleString(e).substring(1,2),thousand:1e3.toLocaleString(e).substring(1,2)}}},35058:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"calcSi",{enumerable:!0,get:function(){return u.calcSi}}),Object.defineProperty(t,"findSi",{enumerable:!0,get:function(){return u.findSi}}),Object.defineProperty(t,"formatBalance",{enumerable:!0,get:function(){return n.formatBalance}}),Object.defineProperty(t,"formatDate",{enumerable:!0,get:function(){return i.formatDate}}),Object.defineProperty(t,"formatDecimal",{enumerable:!0,get:function(){return o.formatDecimal}}),Object.defineProperty(t,"formatElapsed",{enumerable:!0,get:function(){return a.formatElapsed}}),Object.defineProperty(t,"formatNumber",{enumerable:!0,get:function(){return s.formatNumber}});var n=r(53360),i=r(18112),o=r(96210),a=r(81717),s=r(25206),u=r(70590)},70590:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SI_MID=t.SI=void 0,t.calcSi=function(e,t,o){if(o)return i(o);const a=r-1+Math.ceil((e.length-t)/3);return n[a]||n[a<0?0:n.length-1]},t.findSi=i;const r=8;t.SI_MID=r;const n=[{power:-24,text:"yocto",value:"y"},{power:-21,text:"zepto",value:"z"},{power:-18,text:"atto",value:"a"},{power:-15,text:"femto",value:"f"},{power:-12,text:"pico",value:"p"},{power:-9,text:"nano",value:"n"},{power:-6,text:"micro",value:"µ"},{power:-3,text:"milli",value:"m"},{power:0,text:"Unit",value:"-"},{power:3,text:"Kilo",value:"k"},{power:6,text:"Mill",value:"M"},{power:9,text:"Bill",value:"B"},{power:12,text:"Tril",value:"T"},{power:15,text:"Peta",value:"P"},{power:18,text:"Exa",value:"E"},{power:21,text:"Zeta",value:"Z"},{power:24,text:"Yotta",value:"Y"}];function i(e){for(let t=0;t<n.length;t++)if(n[t].value===e)return n[t];return n[r]}t.SI=n},52804:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasWasm=t.hasProcess=t.hasEsm=t.hasDirname=t.hasCjs=t.hasBuffer=t.hasBigInt=void 0;var n=r(82935),i=r(36304);const o="function"==typeof n.BigInt&&"function"==typeof n.BigInt.asIntN;t.hasBigInt=o,t.hasCjs=!0,t.hasDirname=!0,t.hasEsm=!1;const a="undefined"!=typeof WebAssembly;t.hasWasm=a;const s="function"==typeof i.xglobal.Buffer&&"function"==typeof i.xglobal.Buffer.isBuffer;t.hasBuffer=s;const u="object"==typeof i.xglobal.process;t.hasProcess=u},61803:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexAddPrefix=function(e){return e&&(0,n.hexHasPrefix)(e)?e:`0x${e&&e.length%2==1?"0":""}${e||""}`};var n=r(2677)},39552:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexFixLength=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=Math.ceil(t/4),a=o+2;return(0,n.hexAddPrefix)(-1===t||e.length===a||!r&&e.length<a?(0,i.hexStripPrefix)(e):e.length>a?(0,i.hexStripPrefix)(e).slice(-1*o):`${"0".repeat(o)}${(0,i.hexStripPrefix)(e)}`.slice(-1*o))};var n=r(61803),i=r(70309)},2677:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexHasPrefix=function(e){return!!e&&(0,n.isHex)(e,-1)};var n=r(46025)},53213:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hexAddPrefix",{enumerable:!0,get:function(){return n.hexAddPrefix}}),Object.defineProperty(t,"hexFixLength",{enumerable:!0,get:function(){return i.hexFixLength}}),Object.defineProperty(t,"hexHasPrefix",{enumerable:!0,get:function(){return o.hexHasPrefix}}),Object.defineProperty(t,"hexStripPrefix",{enumerable:!0,get:function(){return a.hexStripPrefix}}),Object.defineProperty(t,"hexToBigInt",{enumerable:!0,get:function(){return s.hexToBigInt}}),Object.defineProperty(t,"hexToBn",{enumerable:!0,get:function(){return u.hexToBn}}),Object.defineProperty(t,"hexToNumber",{enumerable:!0,get:function(){return c.hexToNumber}}),Object.defineProperty(t,"hexToString",{enumerable:!0,get:function(){return f.hexToString}}),Object.defineProperty(t,"hexToU8a",{enumerable:!0,get:function(){return l.hexToU8a}});var n=r(61803),i=r(39552),o=r(2677),a=r(70309),s=r(71983),u=r(57253),c=r(65606),f=r(39375),l=r(99547)},70309:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexStripPrefix=function(e){if(!e||"0x"===e)return"";if(n.REGEX_HEX_PREFIXED.test(e))return e.substring(2);if(n.REGEX_HEX_NOPREFIX.test(e))return e;throw new Error(`Expected hex value to convert, found '${e}'`)};var n=r(46025)},71983:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToBigInt=function(e){let{isLe:t=!1,isNegative:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e&&"0x"!==e?(0,i.u8aToBigInt)((0,o.hexToU8a)(e),{isLe:t,isNegative:r}):(0,n.BigInt)(0)};var n=r(82935),i=r(51599),o=r(99547)},57253:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToBn=function(e){let{isLe:t=!1,isNegative:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||"0x"===e)return new n.BN(0);const o=(0,i.hexStripPrefix)(e),a=new n.BN(o,16,t?"le":"be");return r?a.fromTwos(4*o.length):a};var n=r(41205),i=r(70309)},65606:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToNumber=function(e){return e?(0,n.hexToBn)(e).toNumber():NaN};var n=r(57253)},39375:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToString=function(e){return(0,n.u8aToString)((0,i.hexToU8a)(e))};var n=r(67293),i=r(99547)},99547:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToU8a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(!e)return new Uint8Array;let r=e.startsWith("0x")?2:0;const n=Math.ceil((e.length-r)/2),o=Math.ceil(-1===t?n:t/8),a=new Uint8Array(o);for(let t=o>n?o-n:0;t<o;t++,r+=2)a[t]=i[e.charCodeAt(r)<<8|e.charCodeAt(r+1)];return a};const r="0123456789abcdef",n=new Uint8Array(256),i=new Uint8Array(65536);for(let e=0;e<16;e++)n[0|r[e].charCodeAt(0)]=0|e,e>9&&(n[0|r[e].toUpperCase().charCodeAt(0)]=0|e);for(let e=0;e<256;e++){const t=e<<8;for(let r=0;r<256;r++)i[t|r]=n[e]<<4|n[r]}},9498:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(75655);var n=r(8609);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}))},43197:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isArray=function(e){return Array.isArray(e)}},69777:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAscii=function(e){return(0,o.isString)(e)?(0,i.isHex)(e)?a((0,n.u8aToU8a)(e)):function(e){const t=0|e.length;for(let r=0;r<t;r++){const t=e.charCodeAt(r);if(t<32||t>126)return!1}return!0}(e):!!e&&a(e)};var n=r(47624),i=r(46025),o=r(64238);function a(e){const t=0|e.length;for(let r=0;r<t;r++){const t=0|e[r];if(t<32||t>126)return!1}return!0}},45639:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBigInt=function(e){return"bigint"==typeof e}},57404:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBn=function(e){return n.BN.isBN(e)};var n=r(41205)},1799:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBoolean=function(e){return"boolean"==typeof e}},19802:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBuffer=function(e){return i.hasBuffer&&(0,o.isFunction)(e&&e.readDoubleLE)&&n.xglobal.Buffer.isBuffer(e)};var n=r(36304),i=r(52804),o=r(90278)},58448:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isChildClass=function(e,t){return!(!(0,n.isClass)(t)||!(0,n.isClass)(e))&&(e===t||e.isPrototypeOf(t))};var n=r(75733)},75733:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isClass=void 0;const n=(0,r(26991).isOnFunction)("isPrototypeOf","hasOwnProperty");t.isClass=n},61315:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isCodec=function(e){return i(e)&&o(e.registry)};var n=r(26991);const i=(0,n.isOnObject)("toHex","toU8a"),o=(0,n.isOnObject)("get")},84374:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isCompact=void 0;const n=(0,r(26991).isOnObject)("toBigInt","toBn","toNumber","unwrap");t.isCompact=n},59492:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isError=function(e){return(e&&e.constructor)===Error||e instanceof Error}},90278:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFunction=function(e){return"function"==typeof e}},26991:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isOn=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return e=>((0,i.isObject)(e)||(0,n.isFunction)(e))&&t.every((t=>(0,n.isFunction)(e[t])))},t.isOnFunction=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return e=>(0,n.isFunction)(e)&&t.every((t=>(0,n.isFunction)(e[t])))},t.isOnObject=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return e=>(0,i.isObject)(e)&&t.every((t=>(0,n.isFunction)(e[t])))};var n=r(90278),i=r(11238)},46025:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.REGEX_HEX_PREFIXED=t.REGEX_HEX_NOPREFIX=void 0,t.isHex=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=arguments.length>2?arguments[2]:void 0;return"string"==typeof e&&("0x"===e||r.test(e))&&(-1===t?n||e.length%2==0:e.length===2+Math.ceil(t/4))};const r=/^0x[\da-fA-F]+$/;t.REGEX_HEX_PREFIXED=r,t.REGEX_HEX_NOPREFIX=/^[\da-fA-F]+$/},80558:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isArray",{enumerable:!0,get:function(){return n.isArray}}),Object.defineProperty(t,"isAscii",{enumerable:!0,get:function(){return i.isAscii}}),Object.defineProperty(t,"isBigInt",{enumerable:!0,get:function(){return o.isBigInt}}),Object.defineProperty(t,"isBn",{enumerable:!0,get:function(){return a.isBn}}),Object.defineProperty(t,"isBoolean",{enumerable:!0,get:function(){return u.isBoolean}}),Object.defineProperty(t,"isBuffer",{enumerable:!0,get:function(){return s.isBuffer}}),Object.defineProperty(t,"isChildClass",{enumerable:!0,get:function(){return c.isChildClass}}),Object.defineProperty(t,"isClass",{enumerable:!0,get:function(){return f.isClass}}),Object.defineProperty(t,"isCodec",{enumerable:!0,get:function(){return l.isCodec}}),Object.defineProperty(t,"isCompact",{enumerable:!0,get:function(){return d.isCompact}}),Object.defineProperty(t,"isError",{enumerable:!0,get:function(){return h.isError}}),Object.defineProperty(t,"isFunction",{enumerable:!0,get:function(){return p.isFunction}}),Object.defineProperty(t,"isHex",{enumerable:!0,get:function(){return b.isHex}}),Object.defineProperty(t,"isInstanceOf",{enumerable:!0,get:function(){return y.isInstanceOf}}),Object.defineProperty(t,"isIp",{enumerable:!0,get:function(){return g.isIp}}),Object.defineProperty(t,"isJsonObject",{enumerable:!0,get:function(){return m.isJsonObject}}),Object.defineProperty(t,"isNull",{enumerable:!0,get:function(){return v.isNull}}),Object.defineProperty(t,"isNumber",{enumerable:!0,get:function(){return w.isNumber}}),Object.defineProperty(t,"isObject",{enumerable:!0,get:function(){return _.isObject}}),Object.defineProperty(t,"isObservable",{enumerable:!0,get:function(){return x.isObservable}}),Object.defineProperty(t,"isPromise",{enumerable:!0,get:function(){return O.isPromise}}),Object.defineProperty(t,"isString",{enumerable:!0,get:function(){return k.isString}}),Object.defineProperty(t,"isTestChain",{enumerable:!0,get:function(){return P.isTestChain}}),Object.defineProperty(t,"isToBigInt",{enumerable:!0,get:function(){return S.isToBigInt}}),Object.defineProperty(t,"isToBn",{enumerable:!0,get:function(){return A.isToBn}}),Object.defineProperty(t,"isU8a",{enumerable:!0,get:function(){return E.isU8a}}),Object.defineProperty(t,"isUndefined",{enumerable:!0,get:function(){return M.isUndefined}}),Object.defineProperty(t,"isUtf8",{enumerable:!0,get:function(){return j.isUtf8}}),Object.defineProperty(t,"isWasm",{enumerable:!0,get:function(){return T.isWasm}});var n=r(43197),i=r(69777),o=r(45639),a=r(57404),s=r(19802),u=r(1799),c=r(58448),f=r(75733),l=r(61315),d=r(84374),h=r(59492),p=r(90278),b=r(46025),y=r(33497),g=r(54111),m=r(6931),v=r(37060),w=r(46120),_=r(11238),x=r(29326),O=r(22700),k=r(64238),P=r(23591),S=r(31091),A=r(9722),E=r(87121),M=r(15793),j=r(90949),T=r(27861)},33497:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInstanceOf=function(e,t){return(e&&e.constructor)===t||e instanceof t}},54111:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIp=function(e,t){switch(t){case"v4":return a.test(e);case"v6":return s.test(e);default:return o.test(e)}};const r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",i=`\n(?:\n(?:${n}:){7}(?:${n}|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:${n}:){6}(?:${r}|:${n}|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:${n}:){5}(?::${r}|(?::${n}){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:${n}:){4}(?:(?::${n}){0,1}:${r}|(?::${n}){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:${n}:){3}(?:(?::${n}){0,2}:${r}|(?::${n}){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:${n}:){2}(?:(?::${n}){0,3}:${r}|(?::${n}){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:${n}:){1}(?:(?::${n}){0,4}:${r}|(?::${n}){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::${n}){0,5}:${r}|(?::${n}){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n`.replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),o=new RegExp(`(?:^${r}$)|(?:^${i}$)`),a=new RegExp(`^${r}$`),s=new RegExp(`^${i}$`)},6931:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isJsonObject=function(e){const t="string"!=typeof e?(0,n.stringify)(e):e;try{const e=JSON.parse(t);return"object"==typeof e&&null!==e}catch(e){return!1}};var n=r(4778)},37060:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNull=function(e){return null===e}},46120:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNumber=function(e){return"number"==typeof e}},11238:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObject=function(e){return!!e&&"object"==typeof e}},29326:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObservable=void 0;const n=(0,r(26991).isOn)("next");t.isObservable=n},22700:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPromise=void 0;const n=(0,r(26991).isOnObject)("catch","then");t.isPromise=n},64238:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isString=function(e){return"string"==typeof e||e instanceof String}},23591:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isTestChain=function(e){return!!e&&!!r.test(e.toString())};const r=/(Development|Local Testnet)$/},31091:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isToBigInt=void 0;const n=(0,r(26991).isOn)("toBigInt");t.isToBigInt=n},9722:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isToBn=void 0;const n=(0,r(26991).isOn)("toBn");t.isToBn=n},87121:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isU8a=function(e){return(e&&e.constructor)===Uint8Array||e instanceof Uint8Array}},15793:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isUndefined=function(e){return void 0===e}},90949:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isUtf8=function(e){if(!e)return(0,i.isString)(e);const t=(0,n.u8aToU8a)(e),r=t.length;let o=0;for(;o<r;)if(t[o]<=127)o+=1;else if(t[o]>=194&&t[o]<=223){if(!(o+1<r))return!1;if(t[o+1]<128||t[o+1]>191)return!1;o+=2}else if(224===t[o]){if(!(o+2<r))return!1;if(t[o+1]<160||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;o+=3}else if(t[o]>=225&&t[o]<=236){if(!(o+2<r))return!1;if(t[o+1]<128||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;o+=3}else if(237===t[o]){if(!(o+2<r))return!1;if(t[o+1]<128||t[o+1]>159)return!1;if(t[o+2]<128||t[o+2]>191)return!1;o+=3}else if(t[o]>=238&&t[o]<=239){if(!(o+2<r))return!1;if(t[o+1]<128||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;o+=3}else if(240===t[o]){if(!(o+3<r))return!1;if(t[o+1]<144||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;if(t[o+3]<128||t[o+3]>191)return!1;o+=4}else if(t[o]>=241&&t[o]<=243){if(!(o+3<r))return!1;if(t[o+1]<128||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;if(t[o+3]<128||t[o+3]>191)return!1;o+=4}else{if(244!==t[o])return!1;if(!(o+3<r))return!1;if(t[o+1]<128||t[o+1]>143)return!1;if(t[o+2]<128||t[o+2]>191)return!1;if(t[o+3]<128||t[o+3]>191)return!1;o+=4}return!0};var n=r(47624),i=r(64238)},27861:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isWasm=function(e){return(0,i.isU8a)(e)&&(0,n.u8aEq)(e.subarray(0,4),o)};var n=r(7118),i=r(87121);const o=new Uint8Array([0,97,115,109])},71530:(e,t)=>{"use strict";function r(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;const o=n?n(t,i):t.toString();let a;Object.defineProperty(e,o,{configurable:!0,enumerable:!0,get:function(){if(void 0===a){a=r(t,i,this);try{Object.defineProperty(this,o,{value:a})}catch(e){}}return a}})}Object.defineProperty(t,"__esModule",{value:!0}),t.lazyMethod=r,t.lazyMethods=function(e,t,n,i){for(let o=0;o<t.length;o++)r(e,t[o],n,i,o);return e}},82797:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.logger=function(e){const t=`${e.toUpperCase()}:`.padStart(16),[r,i]=function(e){const t=(d.hasProcess?n.xglobal.process:{}).env||{},r=parseInt(t.DEBUG_MAX||"-1",10);return[v((t.DEBUG||"").toLowerCase().split(","),e),isNaN(r)?-1:r]}(e.toLowerCase());return{debug:r?function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return b("debug",t,r,i)}:y,error:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return b("error",t,r)},log:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return b("log",t,r)},noop:y,warn:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return b("warn",t,r)}}},t.loggerFormat=p;var n=r(36304),i=r(18112),o=r(57404),a=r(19802),s=r(90278),u=r(11238),c=r(87121),f=r(97263),l=r(47624),d=r(52804);const h={debug:"log",error:"error",log:"log",warn:"warn"};function p(e){return Array.isArray(e)?e.map(p):(0,o.isBn)(e)?e.toString():(0,c.isU8a)(e)||(0,a.isBuffer)(e)?(0,f.u8aToHex)((0,l.u8aToU8a)(e)):function(e){if(e&&(0,u.isObject)(e)&&e.constructor===Object){const t={};for(const r of Object.keys(e))t[r]=p(e[r]);return t}return e}(e)}function b(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1;if(1===r.length&&(0,s.isFunction)(r[0])){const i=r[0]();return b(e,t,Array.isArray(i)?i:[i],n)}var o;console[h[e]]((0,i.formatDate)(new Date),t,...r.map(p).map((o=n,e=>{if(o<=0)return e;const t=`${e}`;return t.length<o?e:`${t.substring(0,o)} ...`})))}function y(){}function g(e,t){return!!e&&("*"===e||t===e||e.endsWith("*")&&t.startsWith(e.slice(0,-1)))}function m(e,t){return!!e&&e.startsWith("-")&&(t===e.slice(1)||e.endsWith("*")&&t.startsWith(e.slice(1,-1)))}function v(e,t){let r=!1;for(const n of e)g(n,t)?r=!0:m(n,t)&&(r=!1);return r}},66826:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.memoize=function(e){let{getInstanceId:t=i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r={},o=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];const s=(0,n.stringify)(o),u=t();return r[u]||(r[u]={}),void 0===r[u][s]&&(r[u][s]=e(...o)),r[u][s]};return o.unmemoize=function(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];const a=(0,n.stringify)(i),s=t();r[s]&&void 0!==r[s][a]&&delete r[s][a]},o};var n=r(4778);function i(){return"none"}},70484:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nextTick=function(e,t){setTimeout((()=>{Promise.resolve().then((()=>{e()})).catch((e=>{t?t(e):console.error(e)}))}),0)}},76136:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"numberToHex",{enumerable:!0,get:function(){return n.numberToHex}}),Object.defineProperty(t,"numberToU8a",{enumerable:!0,get:function(){return i.numberToU8a}});var n=r(50701),i=r(60051)},50701:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numberToHex=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;const r=(!e||Number.isNaN(e)?0:e).toString(16);return(0,n.hexFixLength)(r.length%2?`0${r}`:r,t,!0)};var n=r(39552)},60051:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numberToU8a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return(0,n.hexToU8a)((0,i.numberToHex)(e,t))};var n=r(99547),i=r(50701)},96757:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectClear=function(e){const t=Object.keys(e);for(let r=0;r<t.length;r++)delete e[t[r]];return e}},75284:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectCopy=function(e){return(0,n.objectSpread)({},e)};var n=r(22524)},9953:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectEntries=function(e){return Object.entries(e)}},9528:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"objectClear",{enumerable:!0,get:function(){return n.objectClear}}),Object.defineProperty(t,"objectCopy",{enumerable:!0,get:function(){return i.objectCopy}}),Object.defineProperty(t,"objectEntries",{enumerable:!0,get:function(){return o.objectEntries}}),Object.defineProperty(t,"objectKeys",{enumerable:!0,get:function(){return a.objectKeys}}),Object.defineProperty(t,"objectProperties",{enumerable:!0,get:function(){return s.objectProperties}}),Object.defineProperty(t,"objectProperty",{enumerable:!0,get:function(){return s.objectProperty}}),Object.defineProperty(t,"objectSpread",{enumerable:!0,get:function(){return u.objectSpread}}),Object.defineProperty(t,"objectValues",{enumerable:!0,get:function(){return c.objectValues}});var n=r(96757),i=r(75284),o=r(9953),a=r(70811),s=r(88807),u=r(22524),c=r(67593)},70811:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectKeys=function(e){return Object.keys(e)}},88807:(e,t)=>{"use strict";function r(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;const o=n?n(t,i):t;o in e||Object.defineProperty(e,o,{enumerable:!0,get:function(){return r(t,i,this)}})}Object.defineProperty(t,"__esModule",{value:!0}),t.objectProperties=function(e,t,n,i){for(let o=0;o<t.length;o++)r(e,t[o],n,i,o)},t.objectProperty=r},22524:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectSpread=function(e){for(let t=0;t<(arguments.length<=1?0:arguments.length-1);t++){const r=t+1<1||arguments.length<=t+1?void 0:arguments[t+1];if(r)if("function"==typeof r.entries)for(const[t,n]of r.entries())e[t]=n;else Object.assign(e,r)}return e}},67593:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectValues=function(e){return Object.values(e)}},76432:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/util",path:"/",type:"cjs",version:"10.4.1"}},38386:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.promisify=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return new Promise(((r,i)=>{t.apply(e,n.concat(((e,t)=>{e?i(e):r(t)})))}))}},3358:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringPascalCase=t.stringCamelCase=t.CC_TO_UP=t.CC_TO_LO=void 0;const r=new Array(256);t.CC_TO_UP=r;const n=new Array(256);t.CC_TO_LO=n;for(let e=0;e<r.length;e++)n[e]=String.fromCharCode(e).toLowerCase(),r[e]=String.fromCharCode(e).toUpperCase();function i(e){return e.slice(0,e.length-1).toLowerCase()+r[e.charCodeAt(e.length-1)]}function o(e){return t=>{const r=t.replace(/[-_., ]+/g," ").trim().split(" "),n=r.length;let o="";for(let t=0;t<n;t++){const n=r[t];o+=e(/^[\dA-Z]+$/.test(n)?n.toLowerCase():n.replace(/^[\dA-Z]{2,}[^a-z]/,i),t)}return o}}const a=o(((e,t)=>(t?r[e.charCodeAt(0)]:n[e.charCodeAt(0)])+e.slice(1)));t.stringCamelCase=a;const s=o((e=>r[e.charCodeAt(0)]+e.slice(1)));t.stringPascalCase=s},75246:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"stringCamelCase",{enumerable:!0,get:function(){return n.stringCamelCase}}),Object.defineProperty(t,"stringLowerFirst",{enumerable:!0,get:function(){return i.stringLowerFirst}}),Object.defineProperty(t,"stringPascalCase",{enumerable:!0,get:function(){return n.stringPascalCase}}),Object.defineProperty(t,"stringShorten",{enumerable:!0,get:function(){return o.stringShorten}}),Object.defineProperty(t,"stringToHex",{enumerable:!0,get:function(){return a.stringToHex}}),Object.defineProperty(t,"stringToU8a",{enumerable:!0,get:function(){return s.stringToU8a}}),Object.defineProperty(t,"stringUpperFirst",{enumerable:!0,get:function(){return i.stringUpperFirst}});var n=r(3358),i=r(19362),o=r(99071),a=r(45001),s=r(3280)},19362:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringUpperFirst=t.stringLowerFirst=void 0;var n=r(3358);function i(e){return t=>t?e[t.charCodeAt(0)]+t.slice(1):""}const o=i(n.CC_TO_LO);t.stringLowerFirst=o;const a=i(n.CC_TO_UP);t.stringUpperFirst=a},99071:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringShorten=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return e.length<=2+2*t?e.toString():`${e.substring(0,t)}…${e.slice(-t)}`}},45001:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringToHex=function(e){return(0,n.u8aToHex)((0,i.stringToU8a)(e))};var n=r(97263),i=r(3280)},3280:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringToU8a=function(e){return e?n.encode(e.toString()):new Uint8Array};const n=new(r(130).TextEncoder)},4778:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=function(e,t){return JSON.stringify(e,i,t)};var n=r(45639);function i(e,t){return(0,n.isBigInt)(t)?t.toString():t}},10150:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aCmp=function(e,t){const r=(0,n.u8aToU8a)(e),i=(0,n.u8aToU8a)(t);let o=0;for(;;){const e=o>=r.length,t=o>=i.length;if(e&&t)return 0;if(e)return-1;if(t)return 1;if(r[o]!==i[o])return r[o]>i[o]?1:-1;o++}};var n=r(47624)},10928:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aConcat=function(){const e=new Array(arguments.length);let t=0;for(let r=0;r<arguments.length;r++)e[r]=(0,n.u8aToU8a)(r<0||arguments.length<=r?void 0:arguments[r]),t+=e[r].length;return i(e,t)},t.u8aConcatStrict=i;var n=r(47624);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=0;if(!t)for(let r=0;r<e.length;r++)t+=e[r].length;const n=new Uint8Array(t);for(let t=0;t<e.length;t++)n.set(e[t],r),r+=e[t].length;return n}},71704:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aEmpty=function(e){const t=0|e.length;for(let r=0;r<t;r++)if(0|e[r])return!1;return!0}},7118:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aEq=function(e,t){const r=(0,n.u8aToU8a)(e),i=(0,n.u8aToU8a)(t);if(r.length===i.length){const e=new DataView(r.buffer,r.byteOffset),t=new DataView(i.buffer,i.byteOffset),n=r.length%4|0,o=r.length-n|0;for(let r=0;r<o;r+=4)if(e.getUint32(r)!==t.getUint32(r))return!1;for(let e=o;e<r.length;e++)if(r[e]!==i[e])return!1;return!0}return!1};var n=r(47624)},33236:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aFixLength=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n=Math.ceil(t/8);if(-1===t||e.length===n)return e;if(e.length>n)return e.subarray(0,n);const i=new Uint8Array(n);return i.set(e,r?0:n-e.length),i}},29733:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"U8A_WRAP_ETHEREUM",{enumerable:!0,get:function(){return g.U8A_WRAP_ETHEREUM}}),Object.defineProperty(t,"U8A_WRAP_POSTFIX",{enumerable:!0,get:function(){return g.U8A_WRAP_POSTFIX}}),Object.defineProperty(t,"U8A_WRAP_PREFIX",{enumerable:!0,get:function(){return g.U8A_WRAP_PREFIX}}),Object.defineProperty(t,"u8aCmp",{enumerable:!0,get:function(){return n.u8aCmp}}),Object.defineProperty(t,"u8aConcat",{enumerable:!0,get:function(){return i.u8aConcat}}),Object.defineProperty(t,"u8aConcatStrict",{enumerable:!0,get:function(){return i.u8aConcatStrict}}),Object.defineProperty(t,"u8aEmpty",{enumerable:!0,get:function(){return o.u8aEmpty}}),Object.defineProperty(t,"u8aEq",{enumerable:!0,get:function(){return a.u8aEq}}),Object.defineProperty(t,"u8aFixLength",{enumerable:!0,get:function(){return s.u8aFixLength}}),Object.defineProperty(t,"u8aIsWrapped",{enumerable:!0,get:function(){return g.u8aIsWrapped}}),Object.defineProperty(t,"u8aSorted",{enumerable:!0,get:function(){return c.u8aSorted}}),Object.defineProperty(t,"u8aToBigInt",{enumerable:!0,get:function(){return f.u8aToBigInt}}),Object.defineProperty(t,"u8aToBn",{enumerable:!0,get:function(){return l.u8aToBn}}),Object.defineProperty(t,"u8aToBuffer",{enumerable:!0,get:function(){return d.u8aToBuffer}}),Object.defineProperty(t,"u8aToFloat",{enumerable:!0,get:function(){return u.u8aToFloat}}),Object.defineProperty(t,"u8aToHex",{enumerable:!0,get:function(){return h.u8aToHex}}),Object.defineProperty(t,"u8aToNumber",{enumerable:!0,get:function(){return p.u8aToNumber}}),Object.defineProperty(t,"u8aToString",{enumerable:!0,get:function(){return b.u8aToString}}),Object.defineProperty(t,"u8aToU8a",{enumerable:!0,get:function(){return y.u8aToU8a}}),Object.defineProperty(t,"u8aUnwrapBytes",{enumerable:!0,get:function(){return g.u8aUnwrapBytes}}),Object.defineProperty(t,"u8aWrapBytes",{enumerable:!0,get:function(){return g.u8aWrapBytes}});var n=r(10150),i=r(10928),o=r(71704),a=r(7118),s=r(33236),u=r(99784),c=r(47759),f=r(51599),l=r(47050),d=r(25184),h=r(97263),p=r(18415),b=r(67293),y=r(47624),g=r(88191)},47759:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aSorted=function(e){return e.sort(n.u8aCmp)};var n=r(10150)},51599:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToBigInt=function(e){let{isLe:t=!0,isNegative:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||!e.length)return(0,n.BigInt)(0);const s=t?e:e.reverse(),u=new DataView(s.buffer,s.byteOffset),c=s.length%2;let f=(0,n.BigInt)(0);if(r){for(let e=s.length-2;e>=c;e-=2)f=f*a+(0,n.BigInt)(65535^u.getUint16(e,!0));c&&(f=f*o+(0,n.BigInt)(255^u.getUint8(0)))}else{for(let e=s.length-2;e>=c;e-=2)f=f*a+(0,n.BigInt)(u.getUint16(e,!0));c&&(f=f*o+(0,n.BigInt)(u.getUint8(0)))}return r?f*-i._1n-i._1n:f};var n=r(82935),i=r(28967);const o=(0,n.BigInt)(256),a=(0,n.BigInt)(65536)},47050:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToBn=function(e){let{isLe:t=!0,isNegative:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=e.length;if(i<=6){if(r){let r=0;if(t)switch(i){case 0:return new n.BN(0);case 1:r=255^e[0];break;case 2:r=e[0]+(e[1]<<8)^65535;break;case 3:r=e[0]+(e[1]<<8)+(e[2]<<16)^16777215;break;case 4:r=e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295;break;case 5:r=(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295)+4294967296*(255^e[4]);break;default:r=(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295)+4294967296*(e[4]+(e[5]<<8)^65535)}else for(let t=0;t<i;t++)r=256*r+(255^e[t]);return i?new n.BN(-1*r-1):new n.BN(0)}if(!t){let t=0;for(let r=0;r<i;r++)t=256*t+e[r];return new n.BN(t)}switch(i){case 0:return new n.BN(0);case 1:return new n.BN(e[0]);case 2:return new n.BN(e[0]+(e[1]<<8));case 3:return new n.BN(e[0]+(e[1]<<8)+(e[2]<<16));case 4:return new n.BN(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]);case 5:return new n.BN(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*(e[3]+(e[4]<<8)));default:return new n.BN(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*(e[3]+(e[4]<<8)+(e[5]<<16)))}}return r?new n.BN(e,t?"le":"be").fromTwos(8*e.length):new n.BN(e,t?"le":"be")};var n=r(41205)},25184:(e,t,r)=>{"use strict";var n=r(48764).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToBuffer=function(e){return n.from(e||[])}},99784:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToFloat=function(e){let{bitLength:t=32,isLe:r=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(32!==t&&64!==t)throw new Error("Invalid bitLength provided, expected 32 or 64");if(e.length<t/8)throw new Error(`Invalid input buffer provided, expected at least ${t/8} bytes, found ${e.length}`);const n=new DataView(e.buffer,e.byteOffset);return 32===t?n.getFloat32(0,r):n.getFloat64(0,r)}},97263:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToHex=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;const r=arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?"":"0x";if(!e||!e.length)return r;if(t>0){const n=Math.ceil(t/8);if(e.length>n)return`${i(e.subarray(0,n/2),r)}…${i(e.subarray(e.length-n/2),"")}`}return i(e,r)};const r=new Array(256),n=new Array(65536);for(let e=0;e<256;e++)r[e]=e.toString(16).padStart(2,"0");for(let e=0;e<256;e++){const t=e<<8;for(let i=0;i<256;i++)n[t|i]=r[e]+r[i]}function i(e,t){const i=e.length%2|0,o=e.length-i|0;for(let r=0;r<o;r+=2)t+=n[e[r]<<8|e[r+1]];return i&&(t+=r[0|e[o]]),t}},18415:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToNumber=function(e){let{isNegative:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=e.length;if(t){let t=0;switch(r){case 0:return 0;case 1:t=255^e[0];break;case 2:t=e[0]+(e[1]<<8)^65535;break;case 3:t=e[0]+(e[1]<<8)+(e[2]<<16)^16777215;break;case 4:t=e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295;break;case 5:t=(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295)+4294967296*(255^e[4]);break;case 6:t=(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295)+4294967296*(e[4]+(e[5]<<8)^65535);break;default:throw new Error("Value more than 48-bits cannot be reliably converted")}return-1*t-1}switch(r){case 0:return 0;case 1:return e[0];case 2:return e[0]+(e[1]<<8);case 3:return e[0]+(e[1]<<8)+(e[2]<<16);case 4:return e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3];case 5:return e[0]+(e[1]<<8)+(e[2]<<16)+16777216*(e[3]+(e[4]<<8));case 6:return e[0]+(e[1]<<8)+(e[2]<<16)+16777216*(e[3]+(e[4]<<8)+(e[5]<<16));default:throw new Error("Value more than 48-bits cannot be reliably converted")}}},67293:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToString=function(e){return e?n.decode(e):""};const n=new(r(33486).TextDecoder)("utf-8")},47624:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToU8a=function(e){return(0,a.isU8a)(e)?e:(0,o.isHex)(e)?(0,n.hexToU8a)(e):(0,i.isBuffer)(e)||Array.isArray(e)?new Uint8Array(e):(0,s.stringToU8a)(e)};var n=r(99547),i=r(19802),o=r(46025),a=r(87121),s=r(3280)},88191:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.U8A_WRAP_PREFIX=t.U8A_WRAP_POSTFIX=t.U8A_WRAP_ETHEREUM=void 0,t.u8aIsWrapped=f,t.u8aUnwrapBytes=function(e){const t=(0,o.u8aToU8a)(e);return f(t,!1)?t.subarray(s.length,t.length-u.length):t},t.u8aWrapBytes=function(e){const t=(0,o.u8aToU8a)(e);return f(t,!0)?t:(0,n.u8aConcatStrict)([s,t,u])};var n=r(10928),i=r(7118),o=r(47624);const a=(0,o.u8aToU8a)("Ethereum Signed Message:\n");t.U8A_WRAP_ETHEREUM=a;const s=(0,o.u8aToU8a)("<Bytes>");t.U8A_WRAP_PREFIX=s;const u=(0,o.u8aToU8a)("</Bytes>");t.U8A_WRAP_POSTFIX=u;const c=s.length+u.length;function f(e,t){return e.length>=c&&(0,i.u8aEq)(e.subarray(0,s.length),s)&&(0,i.u8aEq)(e.slice(-u.length),u)||t&&e.length>=a.length&&(0,i.u8aEq)(e.subarray(0,a.length),a)}},75857:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.detectPackage=function(e,t){let{name:r,path:i,type:o,version:f}=e,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!r.startsWith("@polkadot"))throw new Error(`Invalid package descriptor ${r}`);const d=function(e){const t=n.xglobal;return t.__polkadotjs||(t.__polkadotjs={}),t.__polkadotjs[e]||(t.__polkadotjs[e]=[]),t.__polkadotjs[e]}(r);if(d.push({path:u(i,t),type:o,version:f}),1!==d.length)c(`${r} has multiple versions, ensure that there is only one installed.`,d,s);else{const e=l.filter((e=>e&&e.version!==f));e.length&&c(`${r} requires direct dependencies exactly matching version ${f}.`,e,a)}};var n=r(36304),i=r(90278);const o="Either remove and explicitly install matching versions or dedupe using your package manager.\nThe following conflicting packages were found:";function a(e,t){let{name:r}=t;return[e,r]}function s(e,t){let r,{path:n,type:i}=t;if(n&&n.length>=5){const e=n.indexOf("node_modules");r=-1===e?n:n.substring(e)}else r="<unknown>";return[`${`${i||""}`.padStart(3)} ${e}`,r]}function u(e,t){if(e)return e;if((0,i.isFunction)(t))try{return t()||""}catch(e){return""}return t||""}function c(e,t,r){console.warn(`${e}\n${o}\n${function(e,t){let r=0;for(let t=0;t<e.length;t++)r=Math.max(r,e[t].version.length);return e.map((e=>`\t${t(e.version.padEnd(r),e).join("\t")}`)).join("\n")}(t,r)}`)}},82935:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BigInt=void 0,Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return i.packageInfo}});var n=r(36304),i=r(71008);const o="function"==typeof n.xglobal.BigInt&&"function"==typeof n.xglobal.BigInt.asIntN?n.xglobal.BigInt:()=>Number.NaN;t.BigInt=o},71008:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-bigint",path:"/",type:"cjs",version:"10.4.1"}},36304:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exposeGlobal=function(e,t){void 0===i[e]&&(i[e]=t)},t.extractGlobal=function(e,t){return void 0===i[e]?t:i[e]},Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return n.packageInfo}}),t.xglobal=void 0;var n=r(41647);const i="undefined"!=typeof globalThis?globalThis:void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this");t.xglobal=i},41647:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-global",path:"/",type:"cjs",version:"10.4.1"}},33486:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextDecoder=void 0,Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return o.packageInfo}});var n=r(36304),i=r(42453),o=r(98491);const a=(0,n.extractGlobal)("TextDecoder",i.TextDecoder);t.TextDecoder=a},42453:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728));Object.defineProperty(t,"__esModule",{value:!0}),t.TextDecoder=void 0;let a=function(){function e(t){(0,i.default)(this,e)}return(0,o.default)(e,[{key:"decode",value:function(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t}}]),e}();t.TextDecoder=a},98491:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-textdecoder",path:"/",type:"cjs",version:"10.4.1"}},130:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextEncoder=void 0,Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return o.packageInfo}});var n=r(36304),i=r(87202),o=r(23983);const a=(0,n.extractGlobal)("TextEncoder",i.TextEncoder);t.TextEncoder=a},87202:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728));Object.defineProperty(t,"__esModule",{value:!0}),t.TextEncoder=void 0;let a=function(){function e(){(0,i.default)(this,e)}return(0,o.default)(e,[{key:"encode",value:function(e){const t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}}]),e}();t.TextEncoder=a},23983:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-textencoder",path:"/",type:"cjs",version:"10.4.1"}},31002:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={packageInfo:!0,TypeDefInfo:!0};Object.defineProperty(t,"TypeDefInfo",{enumerable:!0,get:function(){return o.TypeDefInfo}}),Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return i.packageInfo}});var i=r(42959),o=r(52133),a=r(79126);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var s=r(43400);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}))},534:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.constructTypeClass=function(e,t){try{const r=b[t.info](e,t);if(!r)throw new Error("No class created");return!r.__fallbackType&&t.fallbackType&&(r.__fallbackType=t.fallbackType),r}catch(e){throw new Error(`Unable to construct class from ${(0,i.stringify)(t)}: ${e.message}`)}},t.createClassUnsafe=function(e,t){return e.getUnsafe(t)||y(e,e.isLookupType(t)?e.lookup.getTypeDef(t):(0,a.getTypeDef)(t))},t.getTypeClass=y;var n=r(74754),i=r(41219),o=r(52133),a=r(76682);function s(e){let{lookupName:t,type:r}=e;return t||r}function u(e){if(!Array.isArray(e.sub))throw new Error(`Expected subtype as TypeDef[] in ${(0,i.stringify)(e)}`);return e.sub}function c(e){return s(function(e){if(!e.sub||Array.isArray(e.sub))throw new Error(`Expected subtype as TypeDef in ${(0,i.stringify)(e)}`);return e.sub}(e))}function f(e){const t=u(e),r={};for(let e=0;e<t.length;e++)r[t[e].name]=s(t[e]);return r}function l(e){return u(e).map(s)}function d(e,t){let{displayName:r,length:n}=t;if(!(0,i.isNumber)(n))throw new Error(`Expected bitLength information for ${r||e.constructor.name}<bitLength>`);return e.with(n,r)}function h(e,t){const[r,n]=l(t);return e.with(r,n)}function p(e,t){return e.with(c(t))}const b={[o.TypeDefInfo.BTreeMap]:(e,t)=>h(n.BTreeMap,t),[o.TypeDefInfo.BTreeSet]:(e,t)=>p(n.BTreeSet,t),[o.TypeDefInfo.Compact]:(e,t)=>p(n.Compact,t),[o.TypeDefInfo.DoNotConstruct]:(e,t)=>n.DoNotConstruct.with(t.displayName||t.type),[o.TypeDefInfo.Enum]:(e,t)=>{const r=u(t);return n.Enum.with(r.every((e=>{let{type:t}=e;return"Null"===t}))?r.reduce(((e,t,r)=>{let{index:n,name:i}=t;return e[i]=n||r,e}),{}):f(t))},[o.TypeDefInfo.HashMap]:(e,t)=>h(n.HashMap,t),[o.TypeDefInfo.Int]:(e,t)=>d(n.Int,t),[o.TypeDefInfo.Linkage]:(e,t)=>{const r=`Option<${c(t)}>`,i=n.Struct.with({previous:r,next:r});return i.prototype.toRawType=function(){return`Linkage<${this.next.toRawType(!0)}>`},i},[o.TypeDefInfo.Null]:(e,t)=>n.Null,[o.TypeDefInfo.Option]:(e,t)=>{if(!t.sub||Array.isArray(t.sub))throw new Error("Expected type information for Option");return p(n.Option,t)},[o.TypeDefInfo.Plain]:(e,t)=>e.getOrUnknown(t.type),[o.TypeDefInfo.Range]:(e,t)=>p(n.Range,t),[o.TypeDefInfo.RangeInclusive]:(e,t)=>p(n.RangeInclusive,t),[o.TypeDefInfo.Result]:(e,t)=>{const[r,i]=l(t);return n.Result.with({Err:i,Ok:r})},[o.TypeDefInfo.Set]:(e,t)=>n.CodecSet.with(u(t).reduce(((e,t)=>{let{index:r,name:n}=t;return e[n]=r,e}),{}),t.length),[o.TypeDefInfo.Si]:(e,t)=>y(e,e.lookup.getTypeDef(t.type)),[o.TypeDefInfo.Struct]:(e,t)=>n.Struct.with(f(t),t.alias),[o.TypeDefInfo.Tuple]:(e,t)=>n.Tuple.with(l(t)),[o.TypeDefInfo.UInt]:(e,t)=>d(n.UInt,t),[o.TypeDefInfo.Vec]:(e,t)=>{let{sub:r}=t;if(!r||Array.isArray(r))throw new Error("Expected type information for vector");return"u8"===r.type?n.Bytes:n.Vec.with(s(r))},[o.TypeDefInfo.VecFixed]:(e,t)=>{let{displayName:r,length:o,sub:a}=t;if(!(0,i.isNumber)(o)||!a||Array.isArray(a))throw new Error("Expected length & type information for fixed vector");return"u8"===a.type?n.U8aFixed.with(8*o,r):n.VecFixed.with(s(a),o)},[o.TypeDefInfo.WrapperKeepOpaque]:(e,t)=>p(n.WrapperKeepOpaque,t),[o.TypeDefInfo.WrapperOpaque]:(e,t)=>p(n.WrapperOpaque,t)};function y(e,t){return e.getUnsafe(t.type,!1,t)}},79126:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(534);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}));var i=r(40640);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}))},40640:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTypeUnsafe=u;var n=r(74754),i=r(41219),o=r(534);function a(e,t){const r=e.toU8a(),n=e.toRawType();if(!((0,i.u8aEq)(r,t)||["Bytes","Text","Type"].includes(n)&&t.length===e.length||e.isEmpty&&t.every((e=>!e))))throw new Error(`${n}:: Decoded input doesn't match input, received ${(0,i.u8aToHex)(t,512)} (${t.length} bytes), created ${(0,i.u8aToHex)(r,512)} (${r.length} bytes)`)}function s(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],{blockHash:o,isFallback:s,isOptional:c,isPedantic:f}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const l=new(c?n.Option.with(t):t)(e,...r);return f&&function(e,t){let[r]=t;(0,i.isU8a)(r)?a(e,r):(0,i.isHex)(r)&&a(e,(0,i.u8aToU8a)(r))}(l,r),o&&(l.createdAtHash=u(e,"BlockHash",[o])),s&&(l.isStorageFallback=!0),l}function u(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=null,a=null;try{return i=(0,o.createClassUnsafe)(e,t),s(e,i,r,n)}catch(e){a=new Error(`createType(${t}):: ${e.message}`)}if(i&&i.__fallbackType)try{return i=(0,o.createClassUnsafe)(e,i.__fallbackType),s(e,i,r,n)}catch(e){}throw a}},41952:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=[r(68434).packageInfo];t.default=n},77650:(e,t,r)=>{"use strict";var n=r(64836),i=r(41219),o=n(r(41952)),a=r(42959);(0,i.detectPackage)(a.packageInfo,null,o.default)},91812:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(77650);var n=r(31002);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}))},42959:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/types-create",path:"/",type:"cjs",version:"9.13.2"}},76665:(e,t,r)=>{"use strict";r(57503)},52133:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(76665);var n=r(8130);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}));var i=r(99584);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}))},8130:()=>{},99584:(e,t)=>{"use strict";let r;Object.defineProperty(t,"__esModule",{value:!0}),t.TypeDefInfo=void 0,t.TypeDefInfo=r,function(e){e[e.BTreeMap=0]="BTreeMap",e[e.BTreeSet=1]="BTreeSet",e[e.Compact=2]="Compact",e[e.DoNotConstruct=3]="DoNotConstruct",e[e.Enum=4]="Enum",e[e.HashMap=5]="HashMap",e[e.Int=6]="Int",e[e.Linkage=7]="Linkage",e[e.Null=8]="Null",e[e.Option=9]="Option",e[e.Plain=10]="Plain",e[e.Range=11]="Range",e[e.RangeInclusive=12]="RangeInclusive",e[e.Result=13]="Result",e[e.Set=14]="Set",e[e.Si=15]="Si",e[e.Struct=16]="Struct",e[e.Tuple=17]="Tuple",e[e.UInt=18]="UInt",e[e.Vec=19]="Vec",e[e.VecFixed=20]="VecFixed",e[e.WrapperKeepOpaque=21]="WrapperKeepOpaque",e[e.WrapperOpaque=22]="WrapperOpaque"}(r||(t.TypeDefInfo=r={}))},35168:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeTypeDef=d,t.paramsNotation=s,t.withTypeString=function(e,t){return(0,n.objectSpread)({},t,{type:l(e,t,!1)})};var n=r(41219),i=r(52133);const o=e=>e.toString(),a=["BTreeMap","BTreeSet","Compact","HashMap","Option","Result","Vec"];function s(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o;return`${e}${t?`<${(Array.isArray(t)?t:[t]).map(r).join(", ")}>`:""}`}function u(e,t,r){const{info:o,sub:a}=t;switch(o){case i.TypeDefInfo.BTreeMap:case i.TypeDefInfo.BTreeSet:case i.TypeDefInfo.Compact:case i.TypeDefInfo.HashMap:case i.TypeDefInfo.Linkage:case i.TypeDefInfo.Option:case i.TypeDefInfo.Range:case i.TypeDefInfo.RangeInclusive:case i.TypeDefInfo.Result:case i.TypeDefInfo.Vec:case i.TypeDefInfo.WrapperKeepOpaque:case i.TypeDefInfo.WrapperOpaque:return s(r,a,(t=>d(e,t)))}throw new Error(`Unable to encode ${(0,n.stringify)(t)} with params`)}function c(e,t,r,i){const o=t.map((e=>{let{name:t}=e;return t}));if(!o.every((e=>!!e)))throw new Error(`Subtypes does not have consistent names, ${o.join(", ")}`);const a=(0,n.objectSpread)({},i);for(let r=0;r<t.length;r++){const n=t[r];a[n.name]=d(e,n)}return(0,n.stringify)(r?{_enum:a}:a)}const f={[i.TypeDefInfo.BTreeMap]:(e,t)=>u(e,t,"BTreeMap"),[i.TypeDefInfo.BTreeSet]:(e,t)=>u(e,t,"BTreeSet"),[i.TypeDefInfo.Compact]:(e,t)=>u(e,t,"Compact"),[i.TypeDefInfo.DoNotConstruct]:(e,t)=>{let{displayName:r,lookupIndex:i,lookupName:o}=t;return`DoNotConstruct<${o||r||((0,n.isUndefined)(i)?"Unknown":e.createLookupType(i))}>`},[i.TypeDefInfo.Enum]:(e,t)=>{let{sub:r}=t;if(!Array.isArray(r))throw new Error("Unable to encode Enum type");return r.every((e=>{let{type:t}=e;return"Null"===t}))?(0,n.stringify)({_enum:r.map(((e,t)=>{let{name:r}=e;return`${r||`Empty${t}`}`}))}):c(e,r,!0)},[i.TypeDefInfo.HashMap]:(e,t)=>u(e,t,"HashMap"),[i.TypeDefInfo.Int]:(e,t)=>{let{length:r=32}=t;return`Int<${r}>`},[i.TypeDefInfo.Linkage]:(e,t)=>u(e,t,"Linkage"),[i.TypeDefInfo.Null]:(e,t)=>"Null",[i.TypeDefInfo.Option]:(e,t)=>u(e,t,"Option"),[i.TypeDefInfo.Plain]:(e,t)=>{let{displayName:r,type:n}=t;return r||n},[i.TypeDefInfo.Range]:(e,t)=>u(e,t,"Range"),[i.TypeDefInfo.RangeInclusive]:(e,t)=>u(e,t,"RangeInclusive"),[i.TypeDefInfo.Result]:(e,t)=>u(e,t,"Result"),[i.TypeDefInfo.Set]:(e,t)=>{let{length:r=8,sub:i}=t;if(!Array.isArray(i))throw new Error("Unable to encode Set type");return(0,n.stringify)({_set:i.reduce(((e,t,r)=>{let{index:i,name:o}=t;return(0,n.objectSpread)(e,{[`${o||`Unknown${i||r}`}`]:i||r})}),{_bitLength:r||8})})},[i.TypeDefInfo.Si]:(e,t)=>{let{lookupName:r,type:n}=t;return r||n},[i.TypeDefInfo.Struct]:(e,t)=>{let{alias:r,sub:i}=t;if(!Array.isArray(i))throw new Error("Unable to encode Struct type");return c(e,i,!1,r?{_alias:[...r.entries()].reduce(((e,t)=>{let[r,i]=t;return(0,n.objectSpread)(e,{[r]:i})}),{})}:{})},[i.TypeDefInfo.Tuple]:(e,t)=>{let{sub:r}=t;if(!Array.isArray(r))throw new Error("Unable to encode Tuple type");return`(${r.map((t=>d(e,t))).join(",")})`},[i.TypeDefInfo.UInt]:(e,t)=>{let{length:r=32}=t;return`UInt<${r}>`},[i.TypeDefInfo.Vec]:(e,t)=>u(e,t,"Vec"),[i.TypeDefInfo.VecFixed]:(e,t)=>{let{length:r,sub:i}=t;if(!(0,n.isNumber)(r)||!i||Array.isArray(i))throw new Error("Unable to encode VecFixed type");return`[${i.type};${r}]`},[i.TypeDefInfo.WrapperKeepOpaque]:(e,t)=>u(e,t,"WrapperKeepOpaque"),[i.TypeDefInfo.WrapperOpaque]:(e,t)=>u(e,t,"WrapperOpaque")};function l(e,t){return arguments.length>2&&void 0!==arguments[2]&&!arguments[2]||!t.lookupName?f[t.info](e,t):t.lookupName}function d(e,t){return t.displayName&&!a.some((e=>t.displayName===e))?t.displayName:l(e,t)}},76682:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTypeDef=b;var n=r(74754),i=r(41219),o=r(52133),a=r(35096);const s=["_alias","_fallback"];function u(e){return(0,i.isString)(e)?e.toString():JSON.stringify(e)}function c(e,t,r,n){return e.sub=0===r.length?[]:(0,a.typeSplit)(r).map((e=>b(e,{},n))),e}function f(e,t,r,n){const[i,o]=t.substring(n.length+1,t.length-1).split(","),a=parseInt(i.trim(),10);if(a>8192||a%8)throw new Error(`${t}: Only support for ${n}<bitLength>, where length <= 8192 and a power of 8, found ${a}`);return e.displayName=o,e.length=a,e}function l(e,t){let[r,n]=t;return e.substring(0,r.length)===r&&e.slice(-1*n.length)===n}const d=[["[","]",o.TypeDefInfo.VecFixed,function(e,t,r,n){const i=t.length-1;let o=-1,a=0;for(let e=1;e<i&&-1===o;e++)switch(t[e]){case";":0===a&&(o=e);break;case"[":case"(":case"<":a++;break;case"]":case")":case">":a--}if(-1===o)throw new Error(`${t}: Unable to extract location of ';'`);const s=t.substring(1,o),[u,c]=t.substring(o+1,i).split(";"),f=parseInt(u.trim(),10);if(f>2048)throw new Error(`${t}: Only support for [Type; <length>], where length <= 2048`);return e.displayName=c,e.length=f,e.sub=b(s,{},n),e}],["{","}",o.TypeDefInfo.Struct,function(e,t,r,n){const a=JSON.parse(t),c=Object.keys(a);return c.includes("_enum")?function(e,t,r,n){return e.info=o.TypeDefInfo.Enum,e.fallbackType=n,Array.isArray(t)?e.sub=t.map(((e,t)=>({index:t,info:o.TypeDefInfo.Plain,name:e,type:"Null"}))):function(e){const t=Object.values(e);if(t.some((e=>(0,i.isNumber)(e)))){if(!t.every((e=>(0,i.isNumber)(e)&&e>=0&&e<=255)))throw new Error("Invalid number-indexed enum definition");return!1}return!0}(t)?e.sub=Object.entries(t).map(((e,t)=>{let[n,o]=e;return(0,i.objectSpread)({},b(u(o||"Null"),{name:n},r),{index:t})})):e.sub=Object.entries(t).map((e=>{let[t,r]=e;return{index:r,info:o.TypeDefInfo.Plain,name:t,type:"Null"}})),e}(e,a._enum,n,a._fallback):c.includes("_set")?function(e,t,r){return e.info=o.TypeDefInfo.Set,e.fallbackType=r,e.length=t._bitLength,e.sub=Object.entries(t).filter((e=>{let[t]=e;return!t.startsWith("_")})).map((e=>{let[t,r]=e;return{index:r,info:o.TypeDefInfo.Plain,name:t,type:"Null"}})),e}(e,a._set,a._fallback):(e.alias=a._alias?new Map(Object.entries(a._alias)):void 0,e.fallbackType=a._fallback,e.sub=c.filter((e=>!s.includes(e))).map((e=>b(u(a[e]),{name:e},n))),e)}],["(",")",o.TypeDefInfo.Tuple,c],["BTreeMap<",">",o.TypeDefInfo.BTreeMap,c],["HashMap<",">",o.TypeDefInfo.HashMap,c],["Int<",">",o.TypeDefInfo.Int,function(e,t,r){return f(e,t,0,"Int")}],["Result<",">",o.TypeDefInfo.Result,c],["UInt<",">",o.TypeDefInfo.UInt,function(e,t,r){return f(e,t,0,"UInt")}],["DoNotConstruct<",">",o.TypeDefInfo.DoNotConstruct,function(e,t,r){return e.displayName=t.substring(15,t.length-1),e}]],h=[["BTreeSet<",">",o.TypeDefInfo.BTreeSet],["Compact<",">",o.TypeDefInfo.Compact],["Linkage<",">",o.TypeDefInfo.Linkage],["Opaque<",">",o.TypeDefInfo.WrapperOpaque],["Option<",">",o.TypeDefInfo.Option],["Range<",">",o.TypeDefInfo.Range],["RangeInclusive<",">",o.TypeDefInfo.RangeInclusive],["Vec<",">",o.TypeDefInfo.Vec],["WrapperKeepOpaque<",">",o.TypeDefInfo.WrapperKeepOpaque],["WrapperOpaque<",">",o.TypeDefInfo.WrapperOpaque]];function p(e,t){let[r,n]=t;return e.substring(r.length,e.length-n.length)}function b(e){let{displayName:t,name:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const a=(0,n.sanitize)(e),s={displayName:t,info:o.TypeDefInfo.Plain,name:r,type:a};if(++i>64)throw new Error("getTypeDef: Maximum nested limit reached");const u=d.find((e=>l(a,e)));if(u)return s.info=u[2],u[3](s,a,p(a,u),i);const c=h.find((e=>l(a,e)));return c&&(s.info=c[2],s.sub=b(p(a,c),{},i)),s}},43400:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(35168);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}));var i=r(76682);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=r(35096);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=r(45127);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}))},35096:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.typeSplit=function(e){const t=[];let r=0,n=0,i=0,o=0,a=0;for(let s=0;s<e.length;s++)switch(e[s]){case",":r||n||i||o||(t.push(e.substring(a,s).trim()),a=s+1);break;case"<":r++;break;case">":r--;break;case"[":n++;break;case"]":n--;break;case"{":i++;break;case"}":i--;break;case"(":o++;break;case")":o--}if(r||n||i||o)throw new Error(`Invalid definition (missing terminators) found in ${e}`);return t.push(e.substring(a,e.length).trim()),t}},45127:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XCM_MAPPINGS=void 0,t.mapXcmTypes=function(e){return i.reduce(((t,r)=>(0,n.objectSpread)(t,{[r]:`${r}${e}`})),{})};var n=r(41219);const i=["AssetInstance","Fungibility","Junction","Junctions","MultiAsset","MultiAssetFilter","MultiLocation","Response","WildFungibility","WildMultiAsset","Xcm","XcmError","XcmOrder"];t.XCM_MAPPINGS=i},8667:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayChunk=function(e,t){const r=Math.ceil(e.length/t);if(1===r)return[e];const n=Array(r);for(let i=0;i<r;i++){const r=i*t;n[i]=e.slice(r,r+t)}return n}},52422:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayFilter=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.filter((e=>void 0!==e&&(t||null!==e)))}},57416:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayFlatten=function(e){if(0===e.length)return[];if(1===e.length)return e[0];let t=0;for(let r=0;r<e.length;r++)t+=e[r].length;const r=new Array(t);let n=-1;for(let t=0;t<e.length;t++){const i=e[t];for(let e=0;e<i.length;e++)r[++n]=i[e]}return r}},48041:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"arrayChunk",{enumerable:!0,get:function(){return n.arrayChunk}}),Object.defineProperty(t,"arrayFilter",{enumerable:!0,get:function(){return i.arrayFilter}}),Object.defineProperty(t,"arrayFlatten",{enumerable:!0,get:function(){return o.arrayFlatten}}),Object.defineProperty(t,"arrayRange",{enumerable:!0,get:function(){return a.arrayRange}}),Object.defineProperty(t,"arrayShuffle",{enumerable:!0,get:function(){return s.arrayShuffle}}),Object.defineProperty(t,"arrayUnzip",{enumerable:!0,get:function(){return u.arrayUnzip}}),Object.defineProperty(t,"arrayZip",{enumerable:!0,get:function(){return c.arrayZip}});var n=r(8667),i=r(52422),o=r(57416),a=r(35985),s=r(15426),u=r(29797),c=r(46368)},35985:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayRange=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e<=0)throw new Error("Expected non-zero, positive number as a range size");const r=new Array(e);for(let n=0;n<e;n++)r[n]=n+t;return r}},15426:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayShuffle=function(e){const t=e.slice();let r=t.length;if(1===r)return t;for(;0!==r;){const e=~~(Math.random()*r);r--,[t[r],t[e]]=[t[e],t[r]]}return t}},29797:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayUnzip=function(e){const t=new Array(e.length),r=new Array(e.length);for(let n=0;n<e.length;n++)[t[n],r[n]]=e[n];return[t,r]}},46368:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayZip=function(e,t){const r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=[e[n],t[n]];return r}},93740:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assert=i,t.assertReturn=function(e,t){return i(null!=e,t),e},t.assertUnreachable=function(e){throw new Error(`This codepath should be unreachable. Unhandled input: ${e}`)};var n=r(20078);function i(e,t){if(!e)throw new Error((0,n.isFunction)(t)?t():t)}},68054:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._sqrt2pow53n=t._9n=t._8n=t._7n=t._6n=t._5n=t._4n=t._3n=t._2pow53n=t._2n=t._1n=t._1Qn=t._1Mn=t._1Bn=t._10n=t._100n=t._1000n=t._0n=void 0;var n=r(13010);const i=(0,n.BigInt)(0);t._0n=i;const o=(0,n.BigInt)(1);t._1n=o;const a=(0,n.BigInt)(2);t._2n=a;const s=(0,n.BigInt)(3);t._3n=s;const u=(0,n.BigInt)(4);t._4n=u;const c=(0,n.BigInt)(5);t._5n=c;const f=(0,n.BigInt)(6);t._6n=f;const l=(0,n.BigInt)(7);t._7n=l;const d=(0,n.BigInt)(8);t._8n=d;const h=(0,n.BigInt)(9);t._9n=h;const p=(0,n.BigInt)(10);t._10n=p;const b=(0,n.BigInt)(100);t._100n=b;const y=(0,n.BigInt)(1e3);t._1000n=y;const g=(0,n.BigInt)(1e6);t._1Mn=g;const m=(0,n.BigInt)(1e9);t._1Bn=m;const v=m*m;t._1Qn=v;const w=(0,n.BigInt)(Number.MAX_SAFE_INTEGER);t._2pow53n=w;const _=(0,n.BigInt)(94906265);t._sqrt2pow53n=_},79992:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCmp=function(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(0===r.length)throw new Error("Must provide one or more arguments");let i=r[0];for(let t=1;t<r.length;t++)e(r[t],i)&&(i=r[t]);return i}}},56268:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={nSqrt:!0,nToBigInt:!0,nMax:!0,nMin:!0,nToHex:!0,nToU8a:!0};Object.defineProperty(t,"nMax",{enumerable:!0,get:function(){return s.nMax}}),Object.defineProperty(t,"nMin",{enumerable:!0,get:function(){return s.nMin}}),Object.defineProperty(t,"nSqrt",{enumerable:!0,get:function(){return o.nSqrt}}),Object.defineProperty(t,"nToBigInt",{enumerable:!0,get:function(){return a.nToBigInt}}),Object.defineProperty(t,"nToHex",{enumerable:!0,get:function(){return u.nToHex}}),Object.defineProperty(t,"nToU8a",{enumerable:!0,get:function(){return c.nToU8a}});var i=r(68054);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=r(49552),a=r(32837),s=r(14005),u=r(5422),c=r(6980)},14005:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nMin=t.nMax=void 0;var n=r(79992);const i=(0,n.createCmp)(((e,t)=>e>t));t.nMax=i;const o=(0,n.createCmp)(((e,t)=>e<t));t.nMin=o},49552:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nSqrt=function(e){const t=(0,o.nToBigInt)(e);if(t<i._0n)throw new Error("square root of negative numbers is not supported");if(t<=i._2pow53n)return(0,n.BigInt)(~~Math.sqrt(Number(t)));let r=i._sqrt2pow53n;for(;;){const e=t/r+r>>i._1n;if(r===e||r===e-i._1n)return r;r=e}};var n=r(13010),i=r(68054),o=r(32837)},32837:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nToBigInt=function(e){return"bigint"==typeof e?e:e?(0,a.isHex)(e)?(0,i.hexToBigInt)(e.toString()):(0,o.isBn)(e)?(0,n.BigInt)(e.toString()):(0,s.isToBigInt)(e)?e.toBigInt():(0,u.isToBn)(e)?(0,n.BigInt)(e.toBn().toString()):(0,n.BigInt)(e):(0,n.BigInt)(0)};var n=r(13010),i=r(32808),o=r(15403),a=r(49706),s=r(79356),u=r(27298)},5422:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nToHex=function(e){let{bitLength:t,isLe:r=!1,isNegative:o=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.u8aToHex)((0,i.nToU8a)(e||0,{bitLength:t,isLe:r,isNegative:o}))};var n=r(65285),i=r(6980)},6980:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nToU8a=function(e){let{bitLength:t=-1,isLe:r=!0,isNegative:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const u=(0,o.nToBigInt)(e);if(u===i._0n)return-1===t?new Uint8Array(1):new Uint8Array(Math.ceil((t||0)/8));const c=function(e,t,r){const n=[];for(r&&(e=(e+i._1n)*-i._1n);e!==i._0n;){const i=e%a,o=Number(r?i^s:i);t?n.push(o):n.unshift(o),e=(e-i)/a}return Uint8Array.from(n)}(u,r,n);if(-1===t)return c;const f=Math.ceil((t||0)/8),l=new Uint8Array(f);return n&&l.fill(255),l.set(c,r?0:f-c.length),l};var n=r(13010),i=r(68054),o=r(32837);const a=(0,n.BigInt)(256),s=(0,n.BigInt)(255)},52235:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BN",{enumerable:!0,get:function(){return i.default}});var i=n(r(13550))},97958:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BN_ZERO=t.BN_TWO=t.BN_THREE=t.BN_THOUSAND=t.BN_TEN=t.BN_SQRT_MAX_INTEGER=t.BN_SIX=t.BN_SEVEN=t.BN_QUINTILL=t.BN_ONE=t.BN_NINE=t.BN_MILLION=t.BN_MAX_INTEGER=t.BN_HUNDRED=t.BN_FOUR=t.BN_FIVE=t.BN_EIGHT=t.BN_BILLION=void 0;var n=r(52235);const i=new n.BN(0);t.BN_ZERO=i;const o=new n.BN(1);t.BN_ONE=o;const a=new n.BN(2);t.BN_TWO=a;const s=new n.BN(3);t.BN_THREE=s;const u=new n.BN(4);t.BN_FOUR=u;const c=new n.BN(5);t.BN_FIVE=c;const f=new n.BN(6);t.BN_SIX=f;const l=new n.BN(7);t.BN_SEVEN=l;const d=new n.BN(8);t.BN_EIGHT=d;const h=new n.BN(9);t.BN_NINE=h;const p=new n.BN(10);t.BN_TEN=p;const b=new n.BN(100);t.BN_HUNDRED=b;const y=new n.BN(1e3);t.BN_THOUSAND=y;const g=new n.BN(1e6);t.BN_MILLION=g;const m=new n.BN(1e9);t.BN_BILLION=m;const v=m.mul(m);t.BN_QUINTILL=v;const w=new n.BN(Number.MAX_SAFE_INTEGER);t.BN_MAX_INTEGER=w;const _=new n.BN(94906265);t.BN_SQRT_MAX_INTEGER=_},89914:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bnFromHex",{enumerable:!0,get:function(){return n.hexToBn}});var n=r(26517)},71469:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={BN:!0,bnFromHex:!0,bnMax:!0,bnMin:!0,bnSqrt:!0,bnToBn:!0,bnToHex:!0,bnToU8a:!0};Object.defineProperty(t,"BN",{enumerable:!0,get:function(){return o.BN}}),Object.defineProperty(t,"bnFromHex",{enumerable:!0,get:function(){return a.bnFromHex}}),Object.defineProperty(t,"bnMax",{enumerable:!0,get:function(){return s.bnMax}}),Object.defineProperty(t,"bnMin",{enumerable:!0,get:function(){return s.bnMin}}),Object.defineProperty(t,"bnSqrt",{enumerable:!0,get:function(){return u.bnSqrt}}),Object.defineProperty(t,"bnToBn",{enumerable:!0,get:function(){return c.bnToBn}}),Object.defineProperty(t,"bnToHex",{enumerable:!0,get:function(){return f.bnToHex}}),Object.defineProperty(t,"bnToU8a",{enumerable:!0,get:function(){return l.bnToU8a}});var i=r(97958);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=r(52235),a=r(89914),s=r(3419),u=r(28079),c=r(80242),f=r(66477),l=r(14794)},3419:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnMin=t.bnMax=void 0;var n=r(79992);const i=(0,n.createCmp)(((e,t)=>e.gt(t)));t.bnMax=i;const o=(0,n.createCmp)(((e,t)=>e.lt(t)));t.bnMin=o},28079:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnSqrt=function(e){const t=(0,o.bnToBn)(e);if(t.isNeg())throw new Error("square root of negative numbers is not supported");if(t.lte(i.BN_MAX_INTEGER))return new n.BN(~~Math.sqrt(t.toNumber()));let r=i.BN_SQRT_MAX_INTEGER.clone();for(;;){const e=t.div(r).iadd(r).ishrn(1);if(r.eq(e)||r.eq(e.sub(i.BN_ONE)))return r;r=e}};var n=r(52235),i=r(97958),o=r(80242)},80242:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnToBn=function(e){return e?u.BN.isBN(e)?e:(0,o.isHex)(e)?(0,n.hexToBn)(e.toString()):(0,i.isBigInt)(e)?new u.BN(e.toString()):(0,s.isToBn)(e)?e.toBn():(0,a.isToBigInt)(e)?new u.BN(e.toBigInt().toString()):new u.BN(e):new u.BN(0)};var n=r(26517),i=r(41601),o=r(49706),a=r(79356),s=r(27298),u=r(52235)},66477:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnToHex=function(e){let{bitLength:t=-1,isLe:r=!1,isNegative:o=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.u8aToHex)((0,i.bnToU8a)(e,{bitLength:t,isLe:r,isNegative:o}))};var n=r(65285),i=r(14794)},14794:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnToU8a=function(e){let{bitLength:t=-1,isLe:r=!0,isNegative:o=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;const a=(0,n.bnToBn)(e),s=-1===t?Math.ceil(a.bitLength()/8):Math.ceil((t||0)/8);if(!e)return-1===t?new Uint8Array(1):new Uint8Array(s);const u=new Uint8Array(s),c=o?a.toTwos(8*s):a;return u.set(c.toArray(r?"le":"be",s),0),u};var n=r(80242);const i={bitLength:-1,isLe:!0,isNegative:!1}},63739:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bufferToU8a",{enumerable:!0,get:function(){return n.bufferToU8a}});var n=r(23255)},23255:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bufferToU8a=function(e){return new Uint8Array(e||[])}},75439:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={packageInfo:!0};Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return i.packageInfo}});var i=r(86338),o=r(48041);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=r(93740);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var s=r(56268);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var u=r(71469);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var c=r(63739);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var f=r(33046);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))}));var l=r(63331);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var d=r(70482);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var h=r(85725);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))}));var p=r(52617);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===p[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}}))}));var b=r(83854);Object.keys(b).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===b[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return b[e]}}))}));var y=r(75179);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===y[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return y[e]}}))}));var g=r(31251);Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===g[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return g[e]}}))}));var m=r(61227);Object.keys(m).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===m[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return m[e]}}))}));var v=r(63826);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===v[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return v[e]}}))}));var w=r(39715);Object.keys(w).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===w[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return w[e]}}))}));var _=r(17257);Object.keys(_).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===_[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return _[e]}}))}));var x=r(65545);Object.keys(x).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===x[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return x[e]}}))}));var O=r(9031);Object.keys(O).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===O[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return O[e]}}))}));var k=r(67592);Object.keys(k).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===k[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return k[e]}}))}));var P=r(79263);Object.keys(P).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===P[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return P[e]}}))}));var S=r(65285);Object.keys(S).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===S[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return S[e]}}))}));var A=r(34877);Object.keys(A).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===A[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return A[e]}}))}))},3096:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactAddLength=function(e){return(0,n.u8aConcatStrict)([(0,i.compactToU8a)(e.length),e])};var n=r(65285),i=r(99181)},39497:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactFromU8a=function(e){const t=(0,i.u8aToU8a)(e);switch(3&t[0]){case 0:return[1,new n.BN(t[0]>>>2)];case 1:return[2,new n.BN(t[0]+(t[1]<<8)>>>2)];case 2:return[4,new n.BN(t[0]+(t[1]<<8)+(t[2]<<16)+16777216*t[3]>>>2)];default:{const e=5+(t[0]>>>2);switch(e){case 5:return[5,new n.BN(t[1]+(t[2]<<8)+(t[3]<<16)+16777216*t[4])];case 6:return[6,new n.BN(t[1]+(t[2]<<8)+(t[3]<<16)+16777216*(t[4]+(t[5]<<8)))];case 7:return[7,new n.BN(t[1]+(t[2]<<8)+(t[3]<<16)+16777216*(t[4]+(t[5]<<8)+(t[6]<<16)))];default:return[e,(0,i.u8aToBn)(t.subarray(1,e))]}}}},t.compactFromU8aLim=function(e){switch(3&e[0]){case 0:return[1,e[0]>>>2];case 1:return[2,e[0]+(e[1]<<8)>>>2];case 2:return[4,e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]>>>2];default:switch(5+(e[0]>>>2)){case 5:return[5,e[1]+(e[2]<<8)+(e[3]<<16)+16777216*e[4]];case 6:return[6,e[1]+(e[2]<<8)+(e[3]<<16)+16777216*(e[4]+(e[5]<<8))];case 7:return[7,e[1]+(e[2]<<8)+(e[3]<<16)+16777216*(e[4]+(e[5]<<8)+(e[6]<<16))];default:throw new Error("Compact input is > Number.MAX_SAFE_INTEGER")}}};var n=r(71469),i=r(65285)},33046:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"compactAddLength",{enumerable:!0,get:function(){return n.compactAddLength}}),Object.defineProperty(t,"compactFromU8a",{enumerable:!0,get:function(){return o.compactFromU8a}}),Object.defineProperty(t,"compactFromU8aLim",{enumerable:!0,get:function(){return o.compactFromU8aLim}}),Object.defineProperty(t,"compactStripLength",{enumerable:!0,get:function(){return i.compactStripLength}}),Object.defineProperty(t,"compactToU8a",{enumerable:!0,get:function(){return a.compactToU8a}});var n=r(3096),i=r(27832),o=r(39497),a=r(99181)},27832:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactStripLength=function(e){const[t,r]=(0,n.compactFromU8a)(e),i=t+r.toNumber();return[i,e.subarray(t,i)]};var n=r(39497)},99181:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactToU8a=function(e){const t=(0,n.bnToBn)(e);if(t.lte(o))return new Uint8Array([t.toNumber()<<2]);if(t.lte(a))return(0,n.bnToU8a)(t.shln(2).iadd(n.BN_ONE),u);if(t.lte(s))return(0,n.bnToU8a)(t.shln(2).iadd(n.BN_TWO),c);const r=(0,n.bnToU8a)(t);let f=r.length;for(;0===r[f-1];)f--;if(f<4)throw new Error("Invalid length, previous checks match anything less than 2^30");return(0,i.u8aConcatStrict)([new Uint8Array([3+(f-4<<2)]),r.subarray(0,f)])};var n=r(71469),i=r(65285);const o=n.BN_TWO.pow(new n.BN(6)).isub(n.BN_ONE),a=n.BN_TWO.pow(new n.BN(14)).isub(n.BN_ONE),s=n.BN_TWO.pow(new n.BN(30)).isub(n.BN_ONE),u={bitLength:16},c={bitLength:32}},15283:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(25883),i=r(39824),o=[n.packageInfo,i.packageInfo];t.default=o},83583:(e,t,r)=>{"use strict";var n=r(64836)(r(15283)),i=r(86338);(0,r(34877).detectPackage)(i.packageInfo,null,n.default)},63331:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extractTime=function e(t){return t?t<1e3?a({milliseconds:t},o):function(t){const o=t/1e3;if(o<60){const r=~~o;return a({seconds:r},e(t-1e3*r))}const s=o/60;if(s<60){const n=~~s;return a({minutes:n},e(t-n*r))}const u=s/60;if(u<24){const r=~~u;return a({hours:r},e(t-r*n))}const c=~~(u/24);return a({days:c},e(t-c*i))}(t):o};const r=6e4,n=60*r,i=24*n,o={days:0,hours:0,milliseconds:0,minutes:0,seconds:0};function a(e,t){return{days:(e.days||0)+t.days,hours:(e.hours||0)+t.hours,milliseconds:(e.milliseconds||0)+t.milliseconds,minutes:(e.minutes||0)+t.minutes,seconds:(e.seconds||0)+t.seconds}}},70482:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"floatToU8a",{enumerable:!0,get:function(){return n.floatToU8a}});var n=r(62833)},62833:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.floatToU8a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,{bitLength:t=32,isLe:r=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(32!==t&&64!==t)throw new Error("Invalid bitLength provided, expected 32 or 64");const n=new Uint8Array(t/8),i=new DataView(n.buffer,n.byteOffset);return 32===t?i.setFloat32(0,Number(e),r):i.setFloat64(0,Number(e),r),n}},37956:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatBalance=void 0;var n=r(80242),i=r(50842),o=r(86682),a=r(27377),s=r(97411);const u=s.SI[s.SI_MID].text;let c=0,f=u;const l=function(e){let{decimals:t=c,forceUnit:r,withAll:u=!1,withSi:f=!0,withSiFull:l=!1,withUnit:d=!0,withZero:h=!0,locale:p="en"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},b=(0,n.bnToBn)(e).toString();if(0===b.length||"0"===b)return"0";let y="";b[0].startsWith("-")&&(y="-",b=b.substring(1));const g=(0,s.calcSi)(b,t,r),m=b.length-(t+g.power),v=m<=0?"0":b.substring(0,m);let w=b.padStart(m<0?t:1,"0").substring(m<0?0:m).padEnd(u?Math.max(t,4):4,"0").substring(0,u?Math.max(4,t+g.power):4);if(!h){let e=w.length-1;do{"0"===w[e]&&e--}while("0"===w[e]);w=w.substring(0,e+1)}const _=(0,i.isBoolean)(d)?s.SI[s.SI_MID].text:d,x=f||l?"-"===g.value?d?` ${_}`:"":` ${l?`${g.text}${d?" ":""}`:g.value}${d?_:""}`:"",{decimal:O,thousand:k}=(0,a.getSeparator)(p);return`${y}${(0,o.formatDecimal)(v,k)}${w&&`${O}${w}`}${x}`};t.formatBalance=l,l.calcSi=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;return(0,s.calcSi)(e,t)},l.findSi=s.findSi,l.getDefaults=()=>({decimals:c,unit:f}),l.getOptions=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return s.SI.filter((t=>{let{power:r}=t;return!(r<0)||e+r>=0}))},l.setDefaults=e=>{let{decimals:t,unit:r}=e;c=void 0===t?c:Array.isArray(t)?t[0]:t,f=void 0===r?f:Array.isArray(r)?r[0]:r,s.SI[s.SI_MID].text=f}},22539:(e,t)=>{"use strict";function r(e){return e.toString().padStart(2,"0")}Object.defineProperty(t,"__esModule",{value:!0}),t.formatDate=function(e){return`${e.getFullYear().toString()}-${r(e.getMonth()+1)}-${r(e.getDate())} ${r(e.getHours())}:${r(e.getMinutes())}:${r(e.getSeconds())}`}},86682:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatDecimal=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";const n=e[0].startsWith("-"),i=n?e.substring(1).match(r):e.match(r);return i?`${n?"-":""}${i.join(t)}`:e};const r=new RegExp("(\\d+?)(?=(\\d{3})+(?!\\d)|$)","g")},97960:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatElapsed=function(e,t){const r=e&&e.getTime()||0,i=t instanceof Date?t.getTime():(0,n.bnToBn)(t).toNumber();return r&&i?(o=Math.max(Math.abs(r-i),0)/1e3)<15?`${o.toFixed(1)}s`:o<60?(0|o)+"s":o<3600?(o/60|0)+"m":(o/3600|0)+"h":"0.0s";var o};var n=r(80242)},98218:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatNumber=function(e){let{locale:t="en"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{thousand:r}=(0,o.getSeparator)(t);return(0,i.formatDecimal)((0,n.bnToBn)(e).toString(),r)};var n=r(80242),i=r(86682),o=r(27377)},27377:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSeparator=function(e){return{decimal:.1.toLocaleString(e).substring(1,2),thousand:1e3.toLocaleString(e).substring(1,2)}}},85725:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"calcSi",{enumerable:!0,get:function(){return u.calcSi}}),Object.defineProperty(t,"findSi",{enumerable:!0,get:function(){return u.findSi}}),Object.defineProperty(t,"formatBalance",{enumerable:!0,get:function(){return n.formatBalance}}),Object.defineProperty(t,"formatDate",{enumerable:!0,get:function(){return i.formatDate}}),Object.defineProperty(t,"formatDecimal",{enumerable:!0,get:function(){return o.formatDecimal}}),Object.defineProperty(t,"formatElapsed",{enumerable:!0,get:function(){return a.formatElapsed}}),Object.defineProperty(t,"formatNumber",{enumerable:!0,get:function(){return s.formatNumber}});var n=r(37956),i=r(22539),o=r(86682),a=r(97960),s=r(98218),u=r(97411)},97411:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SI_MID=t.SI=void 0,t.calcSi=function(e,t,o){if(o)return i(o);const a=r-1+Math.ceil((e.length-t)/3);return n[a]||n[a<0?0:n.length-1]},t.findSi=i;const r=8;t.SI_MID=r;const n=[{power:-24,text:"yocto",value:"y"},{power:-21,text:"zepto",value:"z"},{power:-18,text:"atto",value:"a"},{power:-15,text:"femto",value:"f"},{power:-12,text:"pico",value:"p"},{power:-9,text:"nano",value:"n"},{power:-6,text:"micro",value:"µ"},{power:-3,text:"milli",value:"m"},{power:0,text:"Unit",value:"-"},{power:3,text:"Kilo",value:"k"},{power:6,text:"Mill",value:"M"},{power:9,text:"Bill",value:"B"},{power:12,text:"Tril",value:"T"},{power:15,text:"Peta",value:"P"},{power:18,text:"Exa",value:"E"},{power:21,text:"Zeta",value:"Z"},{power:24,text:"Yotta",value:"Y"}];function i(e){for(let t=0;t<n.length;t++)if(n[t].value===e)return n[t];return n[r]}t.SI=n},52617:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasWasm=t.hasProcess=t.hasEsm=t.hasDirname=t.hasCjs=t.hasBuffer=t.hasBigInt=void 0;var n=r(13010),i=r(81190);const o="function"==typeof n.BigInt&&"function"==typeof n.BigInt.asIntN;t.hasBigInt=o,t.hasCjs=!0,t.hasDirname=!0,t.hasEsm=!1;const a="undefined"!=typeof WebAssembly;t.hasWasm=a;const s="function"==typeof i.xglobal.Buffer&&"function"==typeof i.xglobal.Buffer.isBuffer;t.hasBuffer=s;const u="object"==typeof i.xglobal.process;t.hasProcess=u},96720:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexAddPrefix=function(e){return e&&(0,n.hexHasPrefix)(e)?e:`0x${e&&e.length%2==1?"0":""}${e||""}`};var n=r(10341)},77863:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexFixLength=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=Math.ceil(t/4),a=o+2;return(0,n.hexAddPrefix)(-1===t||e.length===a||!r&&e.length<a?(0,i.hexStripPrefix)(e):e.length>a?(0,i.hexStripPrefix)(e).slice(-1*o):`${"0".repeat(o)}${(0,i.hexStripPrefix)(e)}`.slice(-1*o))};var n=r(96720),i=r(66776)},10341:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexHasPrefix=function(e){return!!e&&(0,n.isHex)(e,-1)};var n=r(49706)},83854:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hexAddPrefix",{enumerable:!0,get:function(){return n.hexAddPrefix}}),Object.defineProperty(t,"hexFixLength",{enumerable:!0,get:function(){return i.hexFixLength}}),Object.defineProperty(t,"hexHasPrefix",{enumerable:!0,get:function(){return o.hexHasPrefix}}),Object.defineProperty(t,"hexStripPrefix",{enumerable:!0,get:function(){return a.hexStripPrefix}}),Object.defineProperty(t,"hexToBigInt",{enumerable:!0,get:function(){return s.hexToBigInt}}),Object.defineProperty(t,"hexToBn",{enumerable:!0,get:function(){return u.hexToBn}}),Object.defineProperty(t,"hexToNumber",{enumerable:!0,get:function(){return c.hexToNumber}}),Object.defineProperty(t,"hexToString",{enumerable:!0,get:function(){return f.hexToString}}),Object.defineProperty(t,"hexToU8a",{enumerable:!0,get:function(){return l.hexToU8a}});var n=r(96720),i=r(77863),o=r(10341),a=r(66776),s=r(32808),u=r(26517),c=r(56826),f=r(64246),l=r(63525)},66776:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexStripPrefix=function(e){if(!e||"0x"===e)return"";if(n.REGEX_HEX_PREFIXED.test(e))return e.substring(2);if(n.REGEX_HEX_NOPREFIX.test(e))return e;throw new Error(`Expected hex value to convert, found '${e}'`)};var n=r(49706)},32808:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToBigInt=function(e){let{isLe:t=!1,isNegative:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e&&"0x"!==e?(0,i.u8aToBigInt)((0,o.hexToU8a)(e),{isLe:t,isNegative:r}):(0,n.BigInt)(0)};var n=r(13010),i=r(56219),o=r(63525)},26517:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToBn=function(e){let{isLe:t=!1,isNegative:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||"0x"===e)return new n.BN(0);const o=(0,i.hexStripPrefix)(e),a=new n.BN(o,16,t?"le":"be");return r?a.fromTwos(4*o.length):a};var n=r(52235),i=r(66776)},56826:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToNumber=function(e){return e?(0,n.hexToBn)(e).toNumber():NaN};var n=r(26517)},64246:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToString=function(e){return(0,n.u8aToString)((0,i.hexToU8a)(e))};var n=r(42768),i=r(63525)},63525:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToU8a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(!e)return new Uint8Array;let r=e.startsWith("0x")?2:0;const n=Math.ceil((e.length-r)/2),o=Math.ceil(-1===t?n:t/8),a=new Uint8Array(o);for(let t=o>n?o-n:0;t<o;t++,r+=2)a[t]=i[e.charCodeAt(r)<<8|e.charCodeAt(r+1)];return a};const r="0123456789abcdef",n=new Uint8Array(256),i=new Uint8Array(65536);for(let e=0;e<16;e++)n[0|r[e].charCodeAt(0)]=0|e,e>9&&(n[0|r[e].toUpperCase().charCodeAt(0)]=0|e);for(let e=0;e<256;e++){const t=e<<8;for(let r=0;r<256;r++)i[t|r]=n[e]<<4|n[r]}},41219:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(83583);var n=r(75439);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}))},41330:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isArray=function(e){return Array.isArray(e)}},50584:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAscii=function(e){return(0,o.isString)(e)?(0,i.isHex)(e)?a((0,n.u8aToU8a)(e)):function(e){const t=0|e.length;for(let r=0;r<t;r++){const t=e.charCodeAt(r);if(t<32||t>126)return!1}return!0}(e):!!e&&a(e)};var n=r(94352),i=r(49706),o=r(55650);function a(e){const t=0|e.length;for(let r=0;r<t;r++){const t=0|e[r];if(t<32||t>126)return!1}return!0}},41601:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBigInt=function(e){return"bigint"==typeof e}},15403:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBn=function(e){return n.BN.isBN(e)};var n=r(52235)},50842:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBoolean=function(e){return"boolean"==typeof e}},22112:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBuffer=function(e){return i.hasBuffer&&(0,o.isFunction)(e&&e.readDoubleLE)&&n.xglobal.Buffer.isBuffer(e)};var n=r(81190),i=r(52617),o=r(20078)},73450:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isChildClass=function(e,t){return!(!(0,n.isClass)(t)||!(0,n.isClass)(e))&&(e===t||e.isPrototypeOf(t))};var n=r(9992)},9992:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isClass=void 0;const n=(0,r(87794).isOnFunction)("isPrototypeOf","hasOwnProperty");t.isClass=n},63864:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isCodec=function(e){return i(e)&&o(e.registry)};var n=r(87794);const i=(0,n.isOnObject)("toHex","toU8a"),o=(0,n.isOnObject)("get")},1049:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isCompact=void 0;const n=(0,r(87794).isOnObject)("toBigInt","toBn","toNumber","unwrap");t.isCompact=n},34394:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isError=function(e){return(e&&e.constructor)===Error||e instanceof Error}},20078:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFunction=function(e){return"function"==typeof e}},87794:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isOn=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return e=>((0,i.isObject)(e)||(0,n.isFunction)(e))&&t.every((t=>(0,n.isFunction)(e[t])))},t.isOnFunction=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return e=>(0,n.isFunction)(e)&&t.every((t=>(0,n.isFunction)(e[t])))},t.isOnObject=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return e=>(0,i.isObject)(e)&&t.every((t=>(0,n.isFunction)(e[t])))};var n=r(20078),i=r(52553)},49706:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.REGEX_HEX_PREFIXED=t.REGEX_HEX_NOPREFIX=void 0,t.isHex=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=arguments.length>2?arguments[2]:void 0;return"string"==typeof e&&("0x"===e||r.test(e))&&(-1===t?n||e.length%2==0:e.length===2+Math.ceil(t/4))};const r=/^0x[\da-fA-F]+$/;t.REGEX_HEX_PREFIXED=r,t.REGEX_HEX_NOPREFIX=/^[\da-fA-F]+$/},75179:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isArray",{enumerable:!0,get:function(){return n.isArray}}),Object.defineProperty(t,"isAscii",{enumerable:!0,get:function(){return i.isAscii}}),Object.defineProperty(t,"isBigInt",{enumerable:!0,get:function(){return o.isBigInt}}),Object.defineProperty(t,"isBn",{enumerable:!0,get:function(){return a.isBn}}),Object.defineProperty(t,"isBoolean",{enumerable:!0,get:function(){return u.isBoolean}}),Object.defineProperty(t,"isBuffer",{enumerable:!0,get:function(){return s.isBuffer}}),Object.defineProperty(t,"isChildClass",{enumerable:!0,get:function(){return c.isChildClass}}),Object.defineProperty(t,"isClass",{enumerable:!0,get:function(){return f.isClass}}),Object.defineProperty(t,"isCodec",{enumerable:!0,get:function(){return l.isCodec}}),Object.defineProperty(t,"isCompact",{enumerable:!0,get:function(){return d.isCompact}}),Object.defineProperty(t,"isError",{enumerable:!0,get:function(){return h.isError}}),Object.defineProperty(t,"isFunction",{enumerable:!0,get:function(){return p.isFunction}}),Object.defineProperty(t,"isHex",{enumerable:!0,get:function(){return b.isHex}}),Object.defineProperty(t,"isInstanceOf",{enumerable:!0,get:function(){return y.isInstanceOf}}),Object.defineProperty(t,"isIp",{enumerable:!0,get:function(){return g.isIp}}),Object.defineProperty(t,"isJsonObject",{enumerable:!0,get:function(){return m.isJsonObject}}),Object.defineProperty(t,"isNull",{enumerable:!0,get:function(){return v.isNull}}),Object.defineProperty(t,"isNumber",{enumerable:!0,get:function(){return w.isNumber}}),Object.defineProperty(t,"isObject",{enumerable:!0,get:function(){return _.isObject}}),Object.defineProperty(t,"isObservable",{enumerable:!0,get:function(){return x.isObservable}}),Object.defineProperty(t,"isPromise",{enumerable:!0,get:function(){return O.isPromise}}),Object.defineProperty(t,"isString",{enumerable:!0,get:function(){return k.isString}}),Object.defineProperty(t,"isTestChain",{enumerable:!0,get:function(){return P.isTestChain}}),Object.defineProperty(t,"isToBigInt",{enumerable:!0,get:function(){return S.isToBigInt}}),Object.defineProperty(t,"isToBn",{enumerable:!0,get:function(){return A.isToBn}}),Object.defineProperty(t,"isU8a",{enumerable:!0,get:function(){return E.isU8a}}),Object.defineProperty(t,"isUndefined",{enumerable:!0,get:function(){return M.isUndefined}}),Object.defineProperty(t,"isUtf8",{enumerable:!0,get:function(){return j.isUtf8}}),Object.defineProperty(t,"isWasm",{enumerable:!0,get:function(){return T.isWasm}});var n=r(41330),i=r(50584),o=r(41601),a=r(15403),s=r(22112),u=r(50842),c=r(73450),f=r(9992),l=r(63864),d=r(1049),h=r(34394),p=r(20078),b=r(49706),y=r(41006),g=r(77380),m=r(97929),v=r(63857),w=r(30838),_=r(52553),x=r(72070),O=r(92840),k=r(55650),P=r(98313),S=r(79356),A=r(27298),E=r(56357),M=r(62848),j=r(26076),T=r(23350)},41006:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInstanceOf=function(e,t){return(e&&e.constructor)===t||e instanceof t}},77380:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIp=function(e,t){switch(t){case"v4":return a.test(e);case"v6":return s.test(e);default:return o.test(e)}};const r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",i=`\n(?:\n(?:${n}:){7}(?:${n}|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:${n}:){6}(?:${r}|:${n}|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:${n}:){5}(?::${r}|(?::${n}){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:${n}:){4}(?:(?::${n}){0,1}:${r}|(?::${n}){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:${n}:){3}(?:(?::${n}){0,2}:${r}|(?::${n}){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:${n}:){2}(?:(?::${n}){0,3}:${r}|(?::${n}){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:${n}:){1}(?:(?::${n}){0,4}:${r}|(?::${n}){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::${n}){0,5}:${r}|(?::${n}){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n`.replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),o=new RegExp(`(?:^${r}$)|(?:^${i}$)`),a=new RegExp(`^${r}$`),s=new RegExp(`^${i}$`)},97929:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isJsonObject=function(e){const t="string"!=typeof e?(0,n.stringify)(e):e;try{const e=JSON.parse(t);return"object"==typeof e&&null!==e}catch(e){return!1}};var n=r(79263)},63857:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNull=function(e){return null===e}},30838:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNumber=function(e){return"number"==typeof e}},52553:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObject=function(e){return!!e&&"object"==typeof e}},72070:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObservable=void 0;const n=(0,r(87794).isOn)("next");t.isObservable=n},92840:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPromise=void 0;const n=(0,r(87794).isOnObject)("catch","then");t.isPromise=n},55650:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isString=function(e){return"string"==typeof e||e instanceof String}},98313:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isTestChain=function(e){return!!e&&!!r.test(e.toString())};const r=/(Development|Local Testnet)$/},79356:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isToBigInt=void 0;const n=(0,r(87794).isOn)("toBigInt");t.isToBigInt=n},27298:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isToBn=void 0;const n=(0,r(87794).isOn)("toBn");t.isToBn=n},56357:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isU8a=function(e){return(e&&e.constructor)===Uint8Array||e instanceof Uint8Array}},62848:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isUndefined=function(e){return void 0===e}},26076:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isUtf8=function(e){if(!e)return(0,i.isString)(e);const t=(0,n.u8aToU8a)(e),r=t.length;let o=0;for(;o<r;)if(t[o]<=127)o+=1;else if(t[o]>=194&&t[o]<=223){if(!(o+1<r))return!1;if(t[o+1]<128||t[o+1]>191)return!1;o+=2}else if(224===t[o]){if(!(o+2<r))return!1;if(t[o+1]<160||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;o+=3}else if(t[o]>=225&&t[o]<=236){if(!(o+2<r))return!1;if(t[o+1]<128||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;o+=3}else if(237===t[o]){if(!(o+2<r))return!1;if(t[o+1]<128||t[o+1]>159)return!1;if(t[o+2]<128||t[o+2]>191)return!1;o+=3}else if(t[o]>=238&&t[o]<=239){if(!(o+2<r))return!1;if(t[o+1]<128||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;o+=3}else if(240===t[o]){if(!(o+3<r))return!1;if(t[o+1]<144||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;if(t[o+3]<128||t[o+3]>191)return!1;o+=4}else if(t[o]>=241&&t[o]<=243){if(!(o+3<r))return!1;if(t[o+1]<128||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;if(t[o+3]<128||t[o+3]>191)return!1;o+=4}else{if(244!==t[o])return!1;if(!(o+3<r))return!1;if(t[o+1]<128||t[o+1]>143)return!1;if(t[o+2]<128||t[o+2]>191)return!1;if(t[o+3]<128||t[o+3]>191)return!1;o+=4}return!0};var n=r(94352),i=r(55650)},23350:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isWasm=function(e){return(0,i.isU8a)(e)&&(0,n.u8aEq)(e.subarray(0,4),o)};var n=r(6171),i=r(56357);const o=new Uint8Array([0,97,115,109])},31251:(e,t)=>{"use strict";function r(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;const o=n?n(t,i):t.toString();let a;Object.defineProperty(e,o,{configurable:!0,enumerable:!0,get:function(){if(void 0===a){a=r(t,i,this);try{Object.defineProperty(this,o,{value:a})}catch(e){}}return a}})}Object.defineProperty(t,"__esModule",{value:!0}),t.lazyMethod=r,t.lazyMethods=function(e,t,n,i){for(let o=0;o<t.length;o++)r(e,t[o],n,i,o);return e}},61227:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.logger=function(e){const t=`${e.toUpperCase()}:`.padStart(16),[r,i]=function(e){const t=(d.hasProcess?n.xglobal.process:{}).env||{},r=parseInt(t.DEBUG_MAX||"-1",10);return[v((t.DEBUG||"").toLowerCase().split(","),e),isNaN(r)?-1:r]}(e.toLowerCase());return{debug:r?function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return b("debug",t,r,i)}:y,error:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return b("error",t,r)},log:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return b("log",t,r)},noop:y,warn:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return b("warn",t,r)}}},t.loggerFormat=p;var n=r(81190),i=r(22539),o=r(15403),a=r(22112),s=r(20078),u=r(52553),c=r(56357),f=r(66069),l=r(94352),d=r(52617);const h={debug:"log",error:"error",log:"log",warn:"warn"};function p(e){return Array.isArray(e)?e.map(p):(0,o.isBn)(e)?e.toString():(0,c.isU8a)(e)||(0,a.isBuffer)(e)?(0,f.u8aToHex)((0,l.u8aToU8a)(e)):function(e){if(e&&(0,u.isObject)(e)&&e.constructor===Object){const t={};for(const r of Object.keys(e))t[r]=p(e[r]);return t}return e}(e)}function b(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1;if(1===r.length&&(0,s.isFunction)(r[0])){const i=r[0]();return b(e,t,Array.isArray(i)?i:[i],n)}var o;console[h[e]]((0,i.formatDate)(new Date),t,...r.map(p).map((o=n,e=>{if(o<=0)return e;const t=`${e}`;return t.length<o?e:`${t.substring(0,o)} ...`})))}function y(){}function g(e,t){return!!e&&("*"===e||t===e||e.endsWith("*")&&t.startsWith(e.slice(0,-1)))}function m(e,t){return!!e&&e.startsWith("-")&&(t===e.slice(1)||e.endsWith("*")&&t.startsWith(e.slice(1,-1)))}function v(e,t){let r=!1;for(const n of e)g(n,t)?r=!0:m(n,t)&&(r=!1);return r}},63826:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.memoize=function(e){let{getInstanceId:t=i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r={},o=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];const s=(0,n.stringify)(o),u=t();return r[u]||(r[u]={}),void 0===r[u][s]&&(r[u][s]=e(...o)),r[u][s]};return o.unmemoize=function(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];const a=(0,n.stringify)(i),s=t();r[s]&&void 0!==r[s][a]&&delete r[s][a]},o};var n=r(79263);function i(){return"none"}},39715:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nextTick=function(e,t){setTimeout((()=>{Promise.resolve().then((()=>{e()})).catch((e=>{t?t(e):console.error(e)}))}),0)}},17257:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"numberToHex",{enumerable:!0,get:function(){return n.numberToHex}}),Object.defineProperty(t,"numberToU8a",{enumerable:!0,get:function(){return i.numberToU8a}});var n=r(40734),i=r(81655)},40734:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numberToHex=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;const r=(!e||Number.isNaN(e)?0:e).toString(16);return(0,n.hexFixLength)(r.length%2?`0${r}`:r,t,!0)};var n=r(77863)},81655:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numberToU8a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return(0,n.hexToU8a)((0,i.numberToHex)(e,t))};var n=r(63525),i=r(40734)},95851:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectClear=function(e){const t=Object.keys(e);for(let r=0;r<t.length;r++)delete e[t[r]];return e}},1015:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectCopy=function(e){return(0,n.objectSpread)({},e)};var n=r(70023)},42559:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectEntries=function(e){return Object.entries(e)}},65545:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"objectClear",{enumerable:!0,get:function(){return n.objectClear}}),Object.defineProperty(t,"objectCopy",{enumerable:!0,get:function(){return i.objectCopy}}),Object.defineProperty(t,"objectEntries",{enumerable:!0,get:function(){return o.objectEntries}}),Object.defineProperty(t,"objectKeys",{enumerable:!0,get:function(){return a.objectKeys}}),Object.defineProperty(t,"objectProperties",{enumerable:!0,get:function(){return s.objectProperties}}),Object.defineProperty(t,"objectProperty",{enumerable:!0,get:function(){return s.objectProperty}}),Object.defineProperty(t,"objectSpread",{enumerable:!0,get:function(){return u.objectSpread}}),Object.defineProperty(t,"objectValues",{enumerable:!0,get:function(){return c.objectValues}});var n=r(95851),i=r(1015),o=r(42559),a=r(84009),s=r(35681),u=r(70023),c=r(4979)},84009:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectKeys=function(e){return Object.keys(e)}},35681:(e,t)=>{"use strict";function r(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;const o=n?n(t,i):t;o in e||Object.defineProperty(e,o,{enumerable:!0,get:function(){return r(t,i,this)}})}Object.defineProperty(t,"__esModule",{value:!0}),t.objectProperties=function(e,t,n,i){for(let o=0;o<t.length;o++)r(e,t[o],n,i,o)},t.objectProperty=r},70023:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectSpread=function(e){for(let t=0;t<(arguments.length<=1?0:arguments.length-1);t++){const r=t+1<1||arguments.length<=t+1?void 0:arguments[t+1];if(r)if("function"==typeof r.entries)for(const[t,n]of r.entries())e[t]=n;else Object.assign(e,r)}return e}},4979:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectValues=function(e){return Object.values(e)}},86338:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/util",path:"/",type:"cjs",version:"10.4.1"}},9031:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.promisify=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return new Promise(((r,i)=>{t.apply(e,n.concat(((e,t)=>{e?i(e):r(t)})))}))}},24401:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringPascalCase=t.stringCamelCase=t.CC_TO_UP=t.CC_TO_LO=void 0;const r=new Array(256);t.CC_TO_UP=r;const n=new Array(256);t.CC_TO_LO=n;for(let e=0;e<r.length;e++)n[e]=String.fromCharCode(e).toLowerCase(),r[e]=String.fromCharCode(e).toUpperCase();function i(e){return e.slice(0,e.length-1).toLowerCase()+r[e.charCodeAt(e.length-1)]}function o(e){return t=>{const r=t.replace(/[-_., ]+/g," ").trim().split(" "),n=r.length;let o="";for(let t=0;t<n;t++){const n=r[t];o+=e(/^[\dA-Z]+$/.test(n)?n.toLowerCase():n.replace(/^[\dA-Z]{2,}[^a-z]/,i),t)}return o}}const a=o(((e,t)=>(t?r[e.charCodeAt(0)]:n[e.charCodeAt(0)])+e.slice(1)));t.stringCamelCase=a;const s=o((e=>r[e.charCodeAt(0)]+e.slice(1)));t.stringPascalCase=s},67592:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"stringCamelCase",{enumerable:!0,get:function(){return n.stringCamelCase}}),Object.defineProperty(t,"stringLowerFirst",{enumerable:!0,get:function(){return i.stringLowerFirst}}),Object.defineProperty(t,"stringPascalCase",{enumerable:!0,get:function(){return n.stringPascalCase}}),Object.defineProperty(t,"stringShorten",{enumerable:!0,get:function(){return o.stringShorten}}),Object.defineProperty(t,"stringToHex",{enumerable:!0,get:function(){return a.stringToHex}}),Object.defineProperty(t,"stringToU8a",{enumerable:!0,get:function(){return s.stringToU8a}}),Object.defineProperty(t,"stringUpperFirst",{enumerable:!0,get:function(){return i.stringUpperFirst}});var n=r(24401),i=r(9754),o=r(60022),a=r(98650),s=r(51466)},9754:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringUpperFirst=t.stringLowerFirst=void 0;var n=r(24401);function i(e){return t=>t?e[t.charCodeAt(0)]+t.slice(1):""}const o=i(n.CC_TO_LO);t.stringLowerFirst=o;const a=i(n.CC_TO_UP);t.stringUpperFirst=a},60022:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringShorten=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return e.length<=2+2*t?e.toString():`${e.substring(0,t)}…${e.slice(-t)}`}},98650:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringToHex=function(e){return(0,n.u8aToHex)((0,i.stringToU8a)(e))};var n=r(66069),i=r(51466)},51466:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringToU8a=function(e){return e?n.encode(e.toString()):new Uint8Array};const n=new(r(39824).TextEncoder)},79263:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=function(e,t){return JSON.stringify(e,i,t)};var n=r(41601);function i(e,t){return(0,n.isBigInt)(t)?t.toString():t}},26176:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aCmp=function(e,t){const r=(0,n.u8aToU8a)(e),i=(0,n.u8aToU8a)(t);let o=0;for(;;){const e=o>=r.length,t=o>=i.length;if(e&&t)return 0;if(e)return-1;if(t)return 1;if(r[o]!==i[o])return r[o]>i[o]?1:-1;o++}};var n=r(94352)},58263:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aConcat=function(){const e=new Array(arguments.length);let t=0;for(let r=0;r<arguments.length;r++)e[r]=(0,n.u8aToU8a)(r<0||arguments.length<=r?void 0:arguments[r]),t+=e[r].length;return i(e,t)},t.u8aConcatStrict=i;var n=r(94352);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=0;if(!t)for(let r=0;r<e.length;r++)t+=e[r].length;const n=new Uint8Array(t);for(let t=0;t<e.length;t++)n.set(e[t],r),r+=e[t].length;return n}},36037:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aEmpty=function(e){const t=0|e.length;for(let r=0;r<t;r++)if(0|e[r])return!1;return!0}},6171:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aEq=function(e,t){const r=(0,n.u8aToU8a)(e),i=(0,n.u8aToU8a)(t);if(r.length===i.length){const e=new DataView(r.buffer,r.byteOffset),t=new DataView(i.buffer,i.byteOffset),n=r.length%4|0,o=r.length-n|0;for(let r=0;r<o;r+=4)if(e.getUint32(r)!==t.getUint32(r))return!1;for(let e=o;e<r.length;e++)if(r[e]!==i[e])return!1;return!0}return!1};var n=r(94352)},43781:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aFixLength=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n=Math.ceil(t/8);if(-1===t||e.length===n)return e;if(e.length>n)return e.subarray(0,n);const i=new Uint8Array(n);return i.set(e,r?0:n-e.length),i}},65285:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"U8A_WRAP_ETHEREUM",{enumerable:!0,get:function(){return g.U8A_WRAP_ETHEREUM}}),Object.defineProperty(t,"U8A_WRAP_POSTFIX",{enumerable:!0,get:function(){return g.U8A_WRAP_POSTFIX}}),Object.defineProperty(t,"U8A_WRAP_PREFIX",{enumerable:!0,get:function(){return g.U8A_WRAP_PREFIX}}),Object.defineProperty(t,"u8aCmp",{enumerable:!0,get:function(){return n.u8aCmp}}),Object.defineProperty(t,"u8aConcat",{enumerable:!0,get:function(){return i.u8aConcat}}),Object.defineProperty(t,"u8aConcatStrict",{enumerable:!0,get:function(){return i.u8aConcatStrict}}),Object.defineProperty(t,"u8aEmpty",{enumerable:!0,get:function(){return o.u8aEmpty}}),Object.defineProperty(t,"u8aEq",{enumerable:!0,get:function(){return a.u8aEq}}),Object.defineProperty(t,"u8aFixLength",{enumerable:!0,get:function(){return s.u8aFixLength}}),Object.defineProperty(t,"u8aIsWrapped",{enumerable:!0,get:function(){return g.u8aIsWrapped}}),Object.defineProperty(t,"u8aSorted",{enumerable:!0,get:function(){return c.u8aSorted}}),Object.defineProperty(t,"u8aToBigInt",{enumerable:!0,get:function(){return f.u8aToBigInt}}),Object.defineProperty(t,"u8aToBn",{enumerable:!0,get:function(){return l.u8aToBn}}),Object.defineProperty(t,"u8aToBuffer",{enumerable:!0,get:function(){return d.u8aToBuffer}}),Object.defineProperty(t,"u8aToFloat",{enumerable:!0,get:function(){return u.u8aToFloat}}),Object.defineProperty(t,"u8aToHex",{enumerable:!0,get:function(){return h.u8aToHex}}),Object.defineProperty(t,"u8aToNumber",{enumerable:!0,get:function(){return p.u8aToNumber}}),Object.defineProperty(t,"u8aToString",{enumerable:!0,get:function(){return b.u8aToString}}),Object.defineProperty(t,"u8aToU8a",{enumerable:!0,get:function(){return y.u8aToU8a}}),Object.defineProperty(t,"u8aUnwrapBytes",{enumerable:!0,get:function(){return g.u8aUnwrapBytes}}),Object.defineProperty(t,"u8aWrapBytes",{enumerable:!0,get:function(){return g.u8aWrapBytes}});var n=r(26176),i=r(58263),o=r(36037),a=r(6171),s=r(43781),u=r(26180),c=r(978),f=r(56219),l=r(84545),d=r(12957),h=r(66069),p=r(89148),b=r(42768),y=r(94352),g=r(2866)},978:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aSorted=function(e){return e.sort(n.u8aCmp)};var n=r(26176)},56219:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToBigInt=function(e){let{isLe:t=!0,isNegative:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||!e.length)return(0,n.BigInt)(0);const s=t?e:e.reverse(),u=new DataView(s.buffer,s.byteOffset),c=s.length%2;let f=(0,n.BigInt)(0);if(r){for(let e=s.length-2;e>=c;e-=2)f=f*a+(0,n.BigInt)(65535^u.getUint16(e,!0));c&&(f=f*o+(0,n.BigInt)(255^u.getUint8(0)))}else{for(let e=s.length-2;e>=c;e-=2)f=f*a+(0,n.BigInt)(u.getUint16(e,!0));c&&(f=f*o+(0,n.BigInt)(u.getUint8(0)))}return r?f*-i._1n-i._1n:f};var n=r(13010),i=r(68054);const o=(0,n.BigInt)(256),a=(0,n.BigInt)(65536)},84545:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToBn=function(e){let{isLe:t=!0,isNegative:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=e.length;if(i<=6){if(r){let r=0;if(t)switch(i){case 0:return new n.BN(0);case 1:r=255^e[0];break;case 2:r=e[0]+(e[1]<<8)^65535;break;case 3:r=e[0]+(e[1]<<8)+(e[2]<<16)^16777215;break;case 4:r=e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295;break;case 5:r=(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295)+4294967296*(255^e[4]);break;default:r=(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295)+4294967296*(e[4]+(e[5]<<8)^65535)}else for(let t=0;t<i;t++)r=256*r+(255^e[t]);return i?new n.BN(-1*r-1):new n.BN(0)}if(!t){let t=0;for(let r=0;r<i;r++)t=256*t+e[r];return new n.BN(t)}switch(i){case 0:return new n.BN(0);case 1:return new n.BN(e[0]);case 2:return new n.BN(e[0]+(e[1]<<8));case 3:return new n.BN(e[0]+(e[1]<<8)+(e[2]<<16));case 4:return new n.BN(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]);case 5:return new n.BN(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*(e[3]+(e[4]<<8)));default:return new n.BN(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*(e[3]+(e[4]<<8)+(e[5]<<16)))}}return r?new n.BN(e,t?"le":"be").fromTwos(8*e.length):new n.BN(e,t?"le":"be")};var n=r(52235)},12957:(e,t,r)=>{"use strict";var n=r(48764).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToBuffer=function(e){return n.from(e||[])}},26180:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToFloat=function(e){let{bitLength:t=32,isLe:r=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(32!==t&&64!==t)throw new Error("Invalid bitLength provided, expected 32 or 64");if(e.length<t/8)throw new Error(`Invalid input buffer provided, expected at least ${t/8} bytes, found ${e.length}`);const n=new DataView(e.buffer,e.byteOffset);return 32===t?n.getFloat32(0,r):n.getFloat64(0,r)}},66069:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToHex=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;const r=arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?"":"0x";if(!e||!e.length)return r;if(t>0){const n=Math.ceil(t/8);if(e.length>n)return`${i(e.subarray(0,n/2),r)}…${i(e.subarray(e.length-n/2),"")}`}return i(e,r)};const r=new Array(256),n=new Array(65536);for(let e=0;e<256;e++)r[e]=e.toString(16).padStart(2,"0");for(let e=0;e<256;e++){const t=e<<8;for(let i=0;i<256;i++)n[t|i]=r[e]+r[i]}function i(e,t){const i=e.length%2|0,o=e.length-i|0;for(let r=0;r<o;r+=2)t+=n[e[r]<<8|e[r+1]];return i&&(t+=r[0|e[o]]),t}},89148:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToNumber=function(e){let{isNegative:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=e.length;if(t){let t=0;switch(r){case 0:return 0;case 1:t=255^e[0];break;case 2:t=e[0]+(e[1]<<8)^65535;break;case 3:t=e[0]+(e[1]<<8)+(e[2]<<16)^16777215;break;case 4:t=e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295;break;case 5:t=(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295)+4294967296*(255^e[4]);break;case 6:t=(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295)+4294967296*(e[4]+(e[5]<<8)^65535);break;default:throw new Error("Value more than 48-bits cannot be reliably converted")}return-1*t-1}switch(r){case 0:return 0;case 1:return e[0];case 2:return e[0]+(e[1]<<8);case 3:return e[0]+(e[1]<<8)+(e[2]<<16);case 4:return e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3];case 5:return e[0]+(e[1]<<8)+(e[2]<<16)+16777216*(e[3]+(e[4]<<8));case 6:return e[0]+(e[1]<<8)+(e[2]<<16)+16777216*(e[3]+(e[4]<<8)+(e[5]<<16));default:throw new Error("Value more than 48-bits cannot be reliably converted")}}},42768:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToString=function(e){return e?n.decode(e):""};const n=new(r(25883).TextDecoder)("utf-8")},94352:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToU8a=function(e){return(0,a.isU8a)(e)?e:(0,o.isHex)(e)?(0,n.hexToU8a)(e):(0,i.isBuffer)(e)||Array.isArray(e)?new Uint8Array(e):(0,s.stringToU8a)(e)};var n=r(63525),i=r(22112),o=r(49706),a=r(56357),s=r(51466)},2866:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.U8A_WRAP_PREFIX=t.U8A_WRAP_POSTFIX=t.U8A_WRAP_ETHEREUM=void 0,t.u8aIsWrapped=f,t.u8aUnwrapBytes=function(e){const t=(0,o.u8aToU8a)(e);return f(t,!1)?t.subarray(s.length,t.length-u.length):t},t.u8aWrapBytes=function(e){const t=(0,o.u8aToU8a)(e);return f(t,!0)?t:(0,n.u8aConcatStrict)([s,t,u])};var n=r(58263),i=r(6171),o=r(94352);const a=(0,o.u8aToU8a)("Ethereum Signed Message:\n");t.U8A_WRAP_ETHEREUM=a;const s=(0,o.u8aToU8a)("<Bytes>");t.U8A_WRAP_PREFIX=s;const u=(0,o.u8aToU8a)("</Bytes>");t.U8A_WRAP_POSTFIX=u;const c=s.length+u.length;function f(e,t){return e.length>=c&&(0,i.u8aEq)(e.subarray(0,s.length),s)&&(0,i.u8aEq)(e.slice(-u.length),u)||t&&e.length>=a.length&&(0,i.u8aEq)(e.subarray(0,a.length),a)}},34877:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.detectPackage=function(e,t){let{name:r,path:i,type:o,version:f}=e,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!r.startsWith("@polkadot"))throw new Error(`Invalid package descriptor ${r}`);const d=function(e){const t=n.xglobal;return t.__polkadotjs||(t.__polkadotjs={}),t.__polkadotjs[e]||(t.__polkadotjs[e]=[]),t.__polkadotjs[e]}(r);if(d.push({path:u(i,t),type:o,version:f}),1!==d.length)c(`${r} has multiple versions, ensure that there is only one installed.`,d,s);else{const e=l.filter((e=>e&&e.version!==f));e.length&&c(`${r} requires direct dependencies exactly matching version ${f}.`,e,a)}};var n=r(81190),i=r(20078);const o="Either remove and explicitly install matching versions or dedupe using your package manager.\nThe following conflicting packages were found:";function a(e,t){let{name:r}=t;return[e,r]}function s(e,t){let r,{path:n,type:i}=t;if(n&&n.length>=5){const e=n.indexOf("node_modules");r=-1===e?n:n.substring(e)}else r="<unknown>";return[`${`${i||""}`.padStart(3)} ${e}`,r]}function u(e,t){if(e)return e;if((0,i.isFunction)(t))try{return t()||""}catch(e){return""}return t||""}function c(e,t,r){console.warn(`${e}\n${o}\n${function(e,t){let r=0;for(let t=0;t<e.length;t++)r=Math.max(r,e[t].version.length);return e.map((e=>`\t${t(e.version.padEnd(r),e).join("\t")}`)).join("\n")}(t,r)}`)}},13010:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BigInt=void 0,Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return i.packageInfo}});var n=r(81190),i=r(34955);const o="function"==typeof n.xglobal.BigInt&&"function"==typeof n.xglobal.BigInt.asIntN?n.xglobal.BigInt:()=>Number.NaN;t.BigInt=o},34955:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-bigint",path:"/",type:"cjs",version:"10.4.1"}},81190:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exposeGlobal=function(e,t){void 0===i[e]&&(i[e]=t)},t.extractGlobal=function(e,t){return void 0===i[e]?t:i[e]},Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return n.packageInfo}}),t.xglobal=void 0;var n=r(27374);const i="undefined"!=typeof globalThis?globalThis:void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this");t.xglobal=i},27374:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-global",path:"/",type:"cjs",version:"10.4.1"}},25883:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextDecoder=void 0,Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return o.packageInfo}});var n=r(81190),i=r(99146),o=r(95585);const a=(0,n.extractGlobal)("TextDecoder",i.TextDecoder);t.TextDecoder=a},99146:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728));Object.defineProperty(t,"__esModule",{value:!0}),t.TextDecoder=void 0;let a=function(){function e(t){(0,i.default)(this,e)}return(0,o.default)(e,[{key:"decode",value:function(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t}}]),e}();t.TextDecoder=a},95585:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-textdecoder",path:"/",type:"cjs",version:"10.4.1"}},39824:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextEncoder=void 0,Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return o.packageInfo}});var n=r(81190),i=r(38805),o=r(1118);const a=(0,n.extractGlobal)("TextEncoder",i.TextEncoder);t.TextEncoder=a},38805:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728));Object.defineProperty(t,"__esModule",{value:!0}),t.TextEncoder=void 0;let a=function(){function e(){(0,i.default)(this,e)}return(0,o.default)(e,[{key:"encode",value:function(e){const t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}}]),e}();t.TextEncoder=a},1118:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-textencoder",path:"/",type:"cjs",version:"10.4.1"}},50349:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={mapXcmTypes:!0,packageInfo:!0};Object.defineProperty(t,"mapXcmTypes",{enumerable:!0,get:function(){return i.mapXcmTypes}}),Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return o.packageInfo}});var i=r(91812),o=r(21038),a=r(44466);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}))},61327:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={}},47879:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=[r(10686).packageInfo];t.default=n},15738:(e,t,r)=>{"use strict";var n=r(64836),i=r(36352),o=n(r(47879)),a=r(21038);(0,i.detectPackage)(a.packageInfo,null,o.default)},7086:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(15738);var n=r(50349);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}))},21038:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/types-known",path:"/",type:"cjs",version:"9.13.2"}},19440:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(36352);const i={AnchorData:{anchoredBlock:"u64",docRoot:"H256",id:"H256"},DispatchErrorModule:"DispatchErrorModuleU8",PreCommitData:{expirationBlock:"u64",identity:"H256",signingRoot:"H256"},Fee:{key:"Hash",price:"Balance"},MultiAccountData:{deposit:"Balance",depositor:"AccountId",signatories:"Vec<AccountId>",threshold:"u16"},ChainId:"u8",DepositNonce:"u64",ResourceId:"[u8; 32]","chainbridge::ChainId":"u8",RegistryId:"H160",TokenId:"U256",AssetId:{registryId:"RegistryId",tokenId:"TokenId"},AssetInfo:{metadata:"Bytes"},MintInfo:{anchorId:"Hash",proofs:"Vec<ProofMint>",staticHashes:"[Hash; 3]"},Proof:{leafHash:"H256",sortedHashes:"H256"},ProofMint:{hashes:"Vec<Hash>",property:"Bytes",salt:"[u8; 32]",value:"Bytes"},RegistryInfo:{fields:"Vec<Bytes>",ownerCanBurn:"bool"},ProxyType:{_enum:["Any","NonTransfer","Governance","Staking","NonProxy"]}},o=(0,n.objectSpread)({},i,{AccountInfo:"AccountInfoWithRefCount",Address:"LookupSource",LookupSource:"IndicesLookupSource",Multiplier:"Fixed64",RefCount:"RefCountTo259"});var a=[{minmax:[240,243],types:(0,n.objectSpread)({},o,{ProxyType:{_enum:["Any","NonTransfer","Governance","Staking","Vesting"]}})},{minmax:[244,999],types:(0,n.objectSpread)({},o)},{minmax:[1e3,void 0],types:(0,n.objectSpread)({},i)}];t.default=a},88282:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(19440)),o=n(r(82831)),a=n(r(99688)),s=n(r(33599)),u=n(r(10635)),c=n(r(29590)),f=n(r(61354)),l=n(r(93005)),d=n(r(10576)),h={"centrifuge-chain":i.default,kusama:o.default,node:a.default,"node-template":s.default,polkadot:u.default,rococo:c.default,shell:f.default,statemine:l.default,statemint:l.default,westend:d.default,westmint:l.default};t.default=h},82831:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(91812),i=r(36352);const o={CompactAssignments:"CompactAssignmentsWith24",DispatchErrorModule:"DispatchErrorModuleU8",RawSolution:"RawSolutionWith24",Keys:"SessionKeys6",ProxyType:{_enum:["Any","NonTransfer","Governance","Staking","IdentityJudgement","CancelProxy","Auction"]},Weight:"WeightV1"},a={AccountInfo:"AccountInfoWithRefCount",Address:"LookupSource",CompactAssignments:"CompactAssignmentsWith16",DispatchErrorModule:"DispatchErrorModuleU8",RawSolution:"RawSolutionWith16",Keys:"SessionKeys5",LookupSource:"IndicesLookupSource",ValidatorPrefs:"ValidatorPrefsWithCommission"},s={AccountInfo:"AccountInfoWithRefCount",Address:"AccountId",CompactAssignments:"CompactAssignmentsWith16",DispatchErrorModule:"DispatchErrorModuleU8",RawSolution:"RawSolutionWith16",Keys:"SessionKeys5",LookupSource:"AccountId",ValidatorPrefs:"ValidatorPrefsWithCommission"};var u=[{minmax:[1019,1031],types:(0,i.objectSpread)({},a,{BalanceLock:"BalanceLockTo212",CompactAssignments:"CompactAssignmentsTo257",DispatchError:"DispatchErrorTo198",DispatchInfo:"DispatchInfoTo244",Heartbeat:"HeartbeatTo244",IdentityInfo:"IdentityInfoTo198",Keys:"SessionKeys5",Multiplier:"Fixed64",OpenTip:"OpenTipTo225",RefCount:"RefCountTo259",ReferendumInfo:"ReferendumInfoTo239",SlashingSpans:"SlashingSpansTo204",StakingLedger:"StakingLedgerTo223",Votes:"VotesTo230",Weight:"u32"})},{minmax:[1032,1042],types:(0,i.objectSpread)({},a,{BalanceLock:"BalanceLockTo212",CompactAssignments:"CompactAssignmentsTo257",DispatchInfo:"DispatchInfoTo244",Heartbeat:"HeartbeatTo244",Keys:"SessionKeys5",Multiplier:"Fixed64",OpenTip:"OpenTipTo225",RefCount:"RefCountTo259",ReferendumInfo:"ReferendumInfoTo239",SlashingSpans:"SlashingSpansTo204",StakingLedger:"StakingLedgerTo223",Votes:"VotesTo230",Weight:"u32"})},{minmax:[1043,1045],types:(0,i.objectSpread)({},a,{BalanceLock:"BalanceLockTo212",CompactAssignments:"CompactAssignmentsTo257",DispatchInfo:"DispatchInfoTo244",Heartbeat:"HeartbeatTo244",Keys:"SessionKeys5",Multiplier:"Fixed64",OpenTip:"OpenTipTo225",RefCount:"RefCountTo259",ReferendumInfo:"ReferendumInfoTo239",StakingLedger:"StakingLedgerTo223",Votes:"VotesTo230",Weight:"u32"})},{minmax:[1046,1049],types:(0,i.objectSpread)({},o,s,{CompactAssignments:"CompactAssignmentsTo257",DispatchInfo:"DispatchInfoTo244",Heartbeat:"HeartbeatTo244",Multiplier:"Fixed64",OpenTip:"OpenTipTo225",RefCount:"RefCountTo259",ReferendumInfo:"ReferendumInfoTo239",StakingLedger:"StakingLedgerTo223",Weight:"u32"})},{minmax:[1050,1054],types:(0,i.objectSpread)({},o,s,{CompactAssignments:"CompactAssignmentsTo257",DispatchInfo:"DispatchInfoTo244",Heartbeat:"HeartbeatTo244",Multiplier:"Fixed64",OpenTip:"OpenTipTo225",RefCount:"RefCountTo259",ReferendumInfo:"ReferendumInfoTo239",StakingLedger:"StakingLedgerTo240",Weight:"u32"})},{minmax:[1055,1056],types:(0,i.objectSpread)({},o,s,{CompactAssignments:"CompactAssignmentsTo257",DispatchInfo:"DispatchInfoTo244",Heartbeat:"HeartbeatTo244",Multiplier:"Fixed64",OpenTip:"OpenTipTo225",RefCount:"RefCountTo259",StakingLedger:"StakingLedgerTo240",Weight:"u32"})},{minmax:[1057,1061],types:(0,i.objectSpread)({},o,s,{CompactAssignments:"CompactAssignmentsTo257",DispatchInfo:"DispatchInfoTo244",Heartbeat:"HeartbeatTo244",OpenTip:"OpenTipTo225",RefCount:"RefCountTo259"})},{minmax:[1062,2012],types:(0,i.objectSpread)({},o,s,{CompactAssignments:"CompactAssignmentsTo257",OpenTip:"OpenTipTo225",RefCount:"RefCountTo259"})},{minmax:[2013,2022],types:(0,i.objectSpread)({},o,s,{CompactAssignments:"CompactAssignmentsTo257",RefCount:"RefCountTo259"})},{minmax:[2023,2024],types:(0,i.objectSpread)({},o,s,{RefCount:"RefCountTo259"})},{minmax:[2025,2027],types:(0,i.objectSpread)({},o,s)},{minmax:[2028,2029],types:(0,i.objectSpread)({},o,{AccountInfo:"AccountInfoWithDualRefCount",CompactAssignments:"CompactAssignmentsWith16",RawSolution:"RawSolutionWith16"})},{minmax:[2030,9e3],types:(0,i.objectSpread)({},o,{CompactAssignments:"CompactAssignmentsWith16",RawSolution:"RawSolutionWith16"})},{minmax:[9010,9099],types:(0,i.objectSpread)({},o,(0,n.mapXcmTypes)("V0"))},{minmax:[9100,9105],types:(0,i.objectSpread)({},o,(0,n.mapXcmTypes)("V1"))},{minmax:[9106,void 0],types:{Weight:"WeightV1"}}];t.default=u},33599:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=[{minmax:[0,void 0],types:{Weight:"WeightV2"}}]},99688:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=[{minmax:[0,void 0],types:{Weight:"WeightV2"}}]},10635:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(36352);const i={CompactAssignments:"CompactAssignmentsWith16",DispatchErrorModule:"DispatchErrorModuleU8",RawSolution:"RawSolutionWith16",Keys:"SessionKeys6",ProxyType:{_enum:{Any:0,NonTransfer:1,Governance:2,Staking:3,UnusedSudoBalances:4,IdentityJudgement:5,CancelProxy:6,Auction:7}},Weight:"WeightV1"},o={AccountInfo:"AccountInfoWithRefCount",Address:"AccountId",DispatchErrorModule:"DispatchErrorModuleU8",Keys:"SessionKeys5",LookupSource:"AccountId",ValidatorPrefs:"ValidatorPrefsWithCommission"};var a=[{minmax:[0,12],types:(0,n.objectSpread)({},i,o,{CompactAssignments:"CompactAssignmentsTo257",OpenTip:"OpenTipTo225",RefCount:"RefCountTo259"})},{minmax:[13,22],types:(0,n.objectSpread)({},i,o,{CompactAssignments:"CompactAssignmentsTo257",RefCount:"RefCountTo259"})},{minmax:[23,24],types:(0,n.objectSpread)({},i,o,{RefCount:"RefCountTo259"})},{minmax:[25,27],types:(0,n.objectSpread)({},i,o)},{minmax:[28,29],types:(0,n.objectSpread)({},i,{AccountInfo:"AccountInfoWithDualRefCount"})},{minmax:[30,9109],types:(0,n.objectSpread)({},i)},{minmax:[9110,void 0],types:{Weight:"WeightV1"}}];t.default=a},29590:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(91812),i=r(36352);const o={DispatchErrorModule:"DispatchErrorModuleU8",FullIdentification:"()",Keys:"SessionKeys7B",Weight:"WeightV1"};var a=[{minmax:[0,200],types:(0,i.objectSpread)({},o,{AccountInfo:"AccountInfoWithDualRefCount",Address:"AccountId",LookupSource:"AccountId"})},{minmax:[201,214],types:(0,i.objectSpread)({},o,{AccountInfo:"AccountInfoWithDualRefCount"})},{minmax:[215,228],types:(0,i.objectSpread)({},o,{Keys:"SessionKeys6"})},{minmax:[229,9099],types:(0,i.objectSpread)({},o,(0,n.mapXcmTypes)("V0"))},{minmax:[9100,9105],types:(0,i.objectSpread)({},o,(0,n.mapXcmTypes)("V1"))},{minmax:[9106,void 0],types:{Weight:"WeightV1"}}];t.default=a},61354:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=[{minmax:[0,void 0],types:{}}]},93005:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(91812),i=r(36352);const o={DispatchErrorModule:"DispatchErrorModuleU8",TAssetBalance:"u128",ProxyType:{_enum:["Any","NonTransfer","CancelProxy","Assets","AssetOwner","AssetManager","Staking"]},Weight:"WeightV1"};var a=[{minmax:[0,3],types:(0,i.objectSpread)({DispatchError:"DispatchErrorPre6First"},o,(0,n.mapXcmTypes)("V0"))},{minmax:[4,5],types:(0,i.objectSpread)({DispatchError:"DispatchErrorPre6First"},o,(0,n.mapXcmTypes)("V1"))},{minmax:[500,void 0],types:{Weight:"WeightV1"}}];t.default=a},10576:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(91812),i=r(36352);const o={CompactAssignments:"CompactAssignmentsWith16",DispatchErrorModule:"DispatchErrorModuleU8",RawSolution:"RawSolutionWith16",Keys:"SessionKeys6",ProxyType:{_enum:["Any","NonTransfer","Staking","SudoBalances","IdentityJudgement","CancelProxy"]},Weight:"WeightV1"},a={AccountInfo:"AccountInfoWithRefCount",Address:"AccountId",CompactAssignments:"CompactAssignmentsWith16",DispatchErrorModule:"DispatchErrorModuleU8",LookupSource:"AccountId",Keys:"SessionKeys5",RawSolution:"RawSolutionWith16",ValidatorPrefs:"ValidatorPrefsWithCommission"};var s=[{minmax:[1,2],types:(0,i.objectSpread)({},o,a,{CompactAssignments:"CompactAssignmentsTo257",DispatchInfo:"DispatchInfoTo244",Heartbeat:"HeartbeatTo244",Multiplier:"Fixed64",OpenTip:"OpenTipTo225",RefCount:"RefCountTo259",Weight:"u32"})},{minmax:[3,22],types:(0,i.objectSpread)({},o,a,{CompactAssignments:"CompactAssignmentsTo257",DispatchInfo:"DispatchInfoTo244",Heartbeat:"HeartbeatTo244",OpenTip:"OpenTipTo225",RefCount:"RefCountTo259"})},{minmax:[23,42],types:(0,i.objectSpread)({},o,a,{CompactAssignments:"CompactAssignmentsTo257",DispatchInfo:"DispatchInfoTo244",Heartbeat:"HeartbeatTo244",RefCount:"RefCountTo259"})},{minmax:[43,44],types:(0,i.objectSpread)({},o,a,{DispatchInfo:"DispatchInfoTo244",Heartbeat:"HeartbeatTo244",RefCount:"RefCountTo259"})},{minmax:[45,47],types:(0,i.objectSpread)({},o,a)},{minmax:[48,49],types:(0,i.objectSpread)({},o,{AccountInfo:"AccountInfoWithDualRefCount"})},{minmax:[50,9099],types:(0,i.objectSpread)({},o,(0,n.mapXcmTypes)("V0"))},{minmax:[9100,9105],types:(0,i.objectSpread)({},o,(0,n.mapXcmTypes)("V1"))},{minmax:[9106,void 0],types:{Weight:"WeightV1"}}];t.default=s},97320:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"kusama",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"polkadot",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"westend",{enumerable:!0,get:function(){return a.default}});var i=n(r(27355)),o=n(r(23890)),a=n(r(66074))},27355:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=[[0,1020,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",1],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[26669,1021,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",1],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[38245,1022,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",1],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[54248,1023,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",1],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[59659,1024,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",1],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[67651,1025,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",1],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[82191,1027,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",1],["0xaf2c0297a23e6d3d",2],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[83238,1028,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",1],["0xaf2c0297a23e6d3d",2],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[101503,1029,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",1],["0xaf2c0297a23e6d3d",2],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[203466,1030,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",1],["0xaf2c0297a23e6d3d",2],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[295787,1031,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",1],["0xaf2c0297a23e6d3d",2],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[461692,1032,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",1],["0xaf2c0297a23e6d3d",2],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[504329,1033,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",1],["0xaf2c0297a23e6d3d",2],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[569327,1038,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",1],["0xaf2c0297a23e6d3d",2],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[587687,1039,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[653183,1040,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[693488,1042,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[901442,1045,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[1375086,1050,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[1445458,1051,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[1472960,1052,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[1475648,1053,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[1491596,1054,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[1574408,1055,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[2064961,1058,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[2201991,1062,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[2671528,2005,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[2704202,2007,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[2728002,2008,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[2832534,2011,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[2962294,2012,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[324e4,2013,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[3274408,2015,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[3323565,2019,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[3534175,2022,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[3860281,2023,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[4143129,2024,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[4401242,2025,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[4841367,2026,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[5961600,2027,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[6137912,2028,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[6561855,2029,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[7100891,2030,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[7468792,9010,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[7668600,9030,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[7812476,9040,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[8010981,9050,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[8073833,9070,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[8555825,9080,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[8945245,9090,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[9611377,9100,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[9625129,9111,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[9866422,9122,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[10403784,9130,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[10960765,9150,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[11006614,9151,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[11404482,9160,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[11601803,9170,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[12008022,9180,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[12405451,9190,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[12665416,9200,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[12909508,9220,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[13109752,9230,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[13555777,9250,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[13727747,9260,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[14248044,9271,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1],["0x17a6bc0d0062aeb3",1]]],[14433840,9280,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1],["0xf3ff14d5ab527059",1],["0x17a6bc0d0062aeb3",1]]],[14645900,9291,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1],["0xf3ff14d5ab527059",1],["0x17a6bc0d0062aeb3",1]]],[15048375,9300,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1],["0xf3ff14d5ab527059",1],["0x17a6bc0d0062aeb3",1]]],[15426015,9320,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",2],["0xf3ff14d5ab527059",2],["0x17a6bc0d0062aeb3",1]]],[15680713,9340,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",2],["0xf3ff14d5ab527059",2],["0x17a6bc0d0062aeb3",1]]],[15756296,9350,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",2],["0xf3ff14d5ab527059",2],["0x17a6bc0d0062aeb3",1]]]]},23890:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=[[0,0,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[29231,1,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[188836,5,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[199405,6,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[214264,7,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[244358,8,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[303079,9,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[314201,10,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[342400,11,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[443963,12,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[528470,13,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[687751,14,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[746085,15,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[787923,16,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[799302,17,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[1205128,18,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[1603423,23,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[1733218,24,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[2005673,25,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[2436698,26,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[3613564,27,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[3899547,28,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[4345767,29,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[4876134,30,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[5661442,9050,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[6321619,9080,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[6713249,9090,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[7217907,9100,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[7229126,9110,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[7560558,9122,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[8115869,9140,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[8638103,9151,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[9280179,9170,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[9738717,9180,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[10156856,9190,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[10458576,9200,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[10655116,9220,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[10879371,9230,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[11328884,9250,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[11532856,9260,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[11933818,9270,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[12217535,9280,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1],["0xf3ff14d5ab527059",1]]],[12245277,9281,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1],["0xf3ff14d5ab527059",1]]],[12532644,9291,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0x17a6bc0d0062aeb3",1],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1],["0xf3ff14d5ab527059",1]]],[12876189,9300,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0x17a6bc0d0062aeb3",1],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1],["0xf3ff14d5ab527059",1]]]]},66074:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=[[214356,4,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[392764,7,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[409740,8,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[809976,20,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[877581,24,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[879238,25,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[889472,26,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[902937,27,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[932751,28,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[991142,29,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[1030162,31,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[1119657,32,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[1199282,33,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[1342534,34,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[1392263,35,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[1431703,36,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[1433369,37,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[1490972,41,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[2087397,43,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[2316688,44,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[2549864,45,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[3925782,46,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[3925843,47,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[4207800,48,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[4627944,49,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[5124076,50,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[5478664,900,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[5482450,9e3,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[5584305,9010,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[5784566,9030,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[5879822,9031,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[5896856,9032,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[5897316,9033,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[6117927,9050,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[6210274,9070,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[6379314,9080,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[6979141,9090,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[7568453,9100,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[7766394,9111,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[7911691,9120,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[7968866,9121,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[7982889,9122,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[8514322,9130,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[9091726,9140,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[9091774,9150,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[9406726,9160,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[9921066,9170,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[10007115,9180,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[10480973,9190,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[10578091,9200,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[10678509,9210,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[10811001,9220,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[11096116,9230,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[11409279,9250,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[11584820,9251,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[11716837,9260,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[11876919,9261,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[11987927,9270,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1],["0x17a6bc0d0062aeb3",1]]],[12077324,9271,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1],["0x17a6bc0d0062aeb3",1]]],[12301871,9280,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1],["0xf3ff14d5ab527059",1],["0x17a6bc0d0062aeb3",1]]],[12604343,9290,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1],["0xf3ff14d5ab527059",1],["0x17a6bc0d0062aeb3",1]]],[12841034,9300,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1],["0xf3ff14d5ab527059",1],["0x17a6bc0d0062aeb3",1]]],[13128237,9310,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1],["0xf3ff14d5ab527059",1],["0x17a6bc0d0062aeb3",1]]],[13272363,9320,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",2],["0xf3ff14d5ab527059",2],["0x17a6bc0d0062aeb3",1]]],[13483497,9330,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",2],["0xf3ff14d5ab527059",2],["0x17a6bc0d0062aeb3",1]]],[13649433,9340,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",2],["0xf3ff14d5ab527059",2],["0x17a6bc0d0062aeb3",1]]],[13761100,9350,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",2],["0xf3ff14d5ab527059",2],["0x17a6bc0d0062aeb3",1]]]]},88129:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(2450),i=r(36352),o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}(r(97320));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}const s={westend:{genesisHash:["0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e"]}};var u=Object.entries(o).map((function(e){let[t,r]=e;const o=n.selectableNetworks.find((e=>e.network===t))||s[t];if(!o)throw new Error(`Unable to find info for chain ${t}`);return{genesisHash:(0,i.hexToU8a)(o.genesisHash[0]),network:t,versions:r.map((e=>{let[t,r,n]=e;return{apis:n,blockNumber:new i.BN(t),specVersion:new i.BN(r)}}))}}));t.default=u},44466:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.getSpecAlias=function(e,t,r){let{knownTypes:n}=e;return u(t,r,((e,t)=>{var r,o,a,s,u,c;return(0,i.objectSpread)({},null==(r=n.typesBundle)||null==(o=r.spec)||null==(a=o[t])?void 0:a.alias,null==(s=n.typesBundle)||null==(u=s.chain)||null==(c=u[e])?void 0:c.alias,n.typesAlias)}))},t.getSpecExtensions=function(e,t,r){let{knownTypes:n}=e;return u(t,r,((e,t)=>{var r,o,a,s,u,c;return(0,i.objectSpread)({},null==(r=n.typesBundle)||null==(o=r.spec)||null==(a=o[t])?void 0:a.signedExtensions,null==(s=n.typesBundle)||null==(u=s.chain)||null==(c=u[e])?void 0:c.signedExtensions)}))},t.getSpecHasher=function(e,t,r){let{knownTypes:n}=e;return u(t,r,((e,t)=>{var r,i,o,a,s,u;return n.hasher||(null==(r=n.typesBundle)||null==(i=r.chain)||null==(o=i[e])?void 0:o.hasher)||(null==(a=n.typesBundle)||null==(s=a.spec)||null==(u=s[t])?void 0:u.hasher)||null}))},t.getSpecRpc=function(e,t,r){let{knownTypes:n}=e;return u(t,r,((e,t)=>{var r,o,a,s,u,c;return(0,i.objectSpread)({},null==(r=n.typesBundle)||null==(o=r.spec)||null==(a=o[t])?void 0:a.rpc,null==(s=n.typesBundle)||null==(u=s.chain)||null==(c=u[e])?void 0:c.rpc)}))},t.getSpecRuntime=function(e,t,r){let{knownTypes:n}=e;return u(t,r,((e,t)=>{var r,o,a,s,u,c;return(0,i.objectSpread)({},null==(r=n.typesBundle)||null==(o=r.spec)||null==(a=o[t])?void 0:a.runtime,null==(s=n.typesBundle)||null==(u=s.chain)||null==(c=u[e])?void 0:c.runtime)}))},t.getSpecTypes=function(e,t,r,n){let{knownTypes:s}=e;const f=(0,i.bnToBn)(n).toNumber();return u(t,r,((e,t)=>{var r,n,u,l,d,h,p,b;return(0,i.objectSpread)({},c(a.default[t],f),c(o.default[e],f),c(null==(r=s.typesBundle)||null==(n=r.spec)||null==(u=n[t])?void 0:u.types,f),c(null==(l=s.typesBundle)||null==(d=l.chain)||null==(h=d[e])?void 0:h.types,f),null==(p=s.typesSpec)?void 0:p[t],null==(b=s.typesChain)?void 0:b[e],s.types)}))},t.getUpgradeVersion=function(e,t){const r=s.default.find((t=>e.eq(t.genesisHash)));return r?[r.versions.reduce(((e,r)=>t.gt(r.blockNumber)?r:e),void 0),r.versions.find((e=>t.lte(e.blockNumber)))]:[void 0,void 0]};var i=r(36352),o=n(r(61327)),a=n(r(88282)),s=n(r(88129));function u(e,t,r){return r(e.toString(),t.toString())}function c(){let e=arguments.length>1?arguments[1]:void 0;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter((t=>{let{minmax:[r,n]}=t;return(null==r||e>=r)&&(null==n||e<=n)})).reduce(((e,t)=>{let{types:r}=t;return(0,i.objectSpread)(e,r)}),{})}},34544:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.knownGenesis=void 0,t.knownGenesis={acala:["0xfc41b9bd8ef8fe53d58c7ea67c794c7ec9a73daf05e6d54b14ff6342c99ba64c"],ajuna:["0xe358eb1d11b31255a286c12e44fe6780b7edb171d657905a97e39f71d9c6c3ee"],"aleph-node":["0x70255b4d28de0fc4e1a193d7e175ad1ccef431598211c55538f1018651a0344e"],astar:["0x9eb76c5184c4ab8679d2d5d819fdf90b9c001403e9e17da2e14b6d8aec4029c6"],basilisk:["0xa85cfb9b9fd4d622a5b28289a02347af987d8f73fa3108450e2b4a11c1ce5755"],bifrost:["0x262e1b2ad728475fd6fe88e62d34c200abe6fd693931ddad144059b1eb884e5b"],"bifrost-kusama":["0x9f28c6a68e0fc9646eff64935684f6eeeece527e37bbe1f213d22caa1d9d6bed"],centrifuge:["0xb3db41421702df9a7fcac62b53ffeac85f7853cc4e689e0b93aeb3db18c09d82","0x67dddf2673b69e5f875f6f25277495834398eafd67f492e09f3f3345e003d1b5"],composable:["0xdaab8df776eb52ec604a5df5d388bb62a050a0aaec4556a64265b9d42755552d"],darwinia:["0xe71578b37a7c799b0ab4ee87ffa6f059a6b98f71f06fb8c84a8d88013a548ad6"],"dock-mainnet":["0x6bfe24dca2a3be10f22212678ac13a6446ec764103c0f3471c71609eac384aae","0xf73467c6544aa68df2ee546b135f955c46b90fa627e9b5d7935f41061bb8a5a9"],edgeware:["0x742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b"],equilibrium:["0x6f1a800de3daff7f5e037ddf66ab22ce03ab91874debeddb1086f5f7dbd48925"],genshiro:["0x9b8cefc0eb5c568b527998bdd76c184e2b76ae561be76e4667072230217ea243"],hydradx:["0xafdc188f45c71dacbaa0b62e16a91f726c7b8699a9748cdf715459de6b7f366d","0xd2a620c27ec5cbc5621ff9a522689895074f7cca0d08e7134a7804e1a3ba86fc","0x10af6e84234477d84dc572bac0789813b254aa490767ed06fb9591191d1073f9","0x3d75507dd46301767e601265791da1d9cb47b6ebc94e87347b635e5bf58bd047","0x0ed32bfcab4a83517fac88f2aa7cbc2f88d3ab93be9a12b6188a036bf8a943c2"],"interlay-parachain":["0xbf88efe70e9e0e916416e8bed61f2b45717f517d7f3523e33c7b001e5ffcbc72"],karura:["0xbaf5aabe40646d11f0ee8abbdc64f4a4b7674925cba08e4a05ff9ebed6e2126b"],khala:["0xd43540ba6d3eb4897c28a77d48cb5b729fea37603cbbfc7a86a73b72adb3be8d"],kulupu:["0xf7a99d3cb92853d00d5275c971c132c074636256583fee53b3bbe60d7b8769ba"],kusama:["0xb0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe","0xe3777fa922cafbff200cadeaea1a76bd7898ad5b89f7848999058b50e715f636","0x3fd7b9eb6a00376e5be61f01abb429ffb0b104be05eaff4d458da48fcd425baf"],nodle:["0x97da7ede98d7bad4e36b4d734b6055425a3be036da2a332ea5a7037656427a21"],origintrail:["0xe7e0962324a3b86c83404dbea483f25fb5dab4c224791c81b756cfc948006174"],parallel:["0xe61a41c53f5dcd0beb09df93b34402aada44cb05117b71059cce40a2723a4e97"],phala:["0x1bb969d85965e4bb5a651abbedf21a54b6b31a21f66b5401cc3f1e286268d736"],picasso:["0xe8e7f0f4c4f5a00720b4821dbfddefea7490bcf0b19009961cc46957984e2c1c"],polkadex:["0x3920bcb4960a1eef5580cd5367ff3f430eef052774f78468852f7b9cb39f8a3c"],polkadot:["0x91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3"],polymesh:["0x6fbd74e5e1d0a61d52ccfe9d4adaed16dd3a7caa37c6bc4d0c2fa12e8b2f4063"],rococo:["0x6408de7737c59c238890533af25896a2c20608d8b380bb01029acb392781063e","0xaaf2cd1b74b5f726895921259421b534124726263982522174147046b8827897","0x037f5f3c8e67b314062025fc886fcd6238ea25a4a9b45dce8d246815c9ebe770","0xc196f81260cf1686172b47a79cf002120735d7cb0eb1474e8adce56618456fff","0xf6e9983c37baf68846fedafe21e56718790e39fb1c582abc408b81bc7b208f9a","0x5fce687da39305dfe682b117f0820b319348e8bb37eb16cf34acbf6a202de9d9","0xe7c3d5edde7db964317cd9b51a3a059d7cd99f81bdbce14990047354334c9779","0x1611e1dbf0405379b861e2e27daa90f480b2e6d3682414a80835a52e8cb8a215","0x343442f12fa715489a8714e79a7b264ea88c0d5b8c66b684a7788a516032f6b9","0x78bcd530c6b3a068bc17473cf5d2aff9c287102bed9af3ae3c41c33b9d6c6147","0x47381ee0697153d64404fc578392c8fd5cba9073391908f46c888498415647bd","0x19c0e4fa8ab75f5ac7865e0b8f74ff91eb9a100d336f423cd013a8befba40299"],sora:["0x7e4e32d0feafd4f9c9414b0be86373f9a1efa904809b683453a9af6856d38ad5"],stafi:["0x290a4149f09ea0e402c74c1c7e96ae4239588577fe78932f94f5404c68243d80"],statemine:["0x48239ef607d7928874027a43a67689209727dfb3d3dc5e5b03a39bdc2eda771a"],statemint:["0x68d56f15f85d3136970ec16946040bc1752654e906147f7e43e9d539d7c3de2f"],subsocial:["0x0bd72c1c305172e1275278aaeb3f161e02eccb7a819e63f62d47bd53a28189f8"],ternoa:["0x6859c81ca95ef624c9dfe4dc6e3381c33e5d6509e35e147092bfbc780f777c4e"],unique:["0x84322d9cddbf35088f1e54e9a85c967a41a56a4f43445768125e61af166c7d31"],vtb:["0x286bc8414c7000ce1d6ee6a834e29a54c1784814b76243eb77ed0b2c5573c60f","0x7483b89572fb2bd687c7b9a93b242d0b237f9aba463aba07ec24503931038aaa"],westend:["0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e"],xxnetwork:["0x50dd5d206917bf10502c68fb4d18a59fc8aa31586f4e8856b493e43544aa82aa"]}},79853:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.knownIcon=void 0,t.knownIcon={centrifuge:"polkadot",kusama:"polkadot",polkadot:"polkadot",sora:"polkadot",statemine:"polkadot",statemint:"polkadot",westmint:"polkadot"}},11470:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"knownGenesis",{enumerable:!0,get:function(){return n.knownGenesis}}),Object.defineProperty(t,"knownIcon",{enumerable:!0,get:function(){return i.knownIcon}}),Object.defineProperty(t,"knownLedger",{enumerable:!0,get:function(){return o.knownLedger}}),Object.defineProperty(t,"knownTestnet",{enumerable:!0,get:function(){return a.knownTestnet}});var n=r(34544),i=r(79853),o=r(70992),a=r(71443)},70992:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.knownLedger=void 0,t.knownLedger={acala:787,ajuna:354,"aleph-node":643,astar:810,bifrost:788,"bifrost-kusama":788,centrifuge:747,composable:354,darwinia:354,"dock-mainnet":594,edgeware:523,equilibrium:99999997,genshiro:99999996,hydradx:354,"interlay-parachain":354,karura:686,khala:434,kusama:434,nodle:1003,origintrail:354,parallel:354,phala:354,polkadex:799,polkadot:354,polymesh:595,sora:617,stafi:907,statemine:434,statemint:354,ternoa:995,unique:354,vtb:694,xxnetwork:1955}},71443:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.knownTestnet=void 0,t.knownTestnet={"":!0,"cess-testnet":!0,"dock-testnet":!0,jupiter:!0,"mathchain-testnet":!0,p3dt:!0,subspace_testnet:!0,"zero-alphaville":!0}},2450:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={packageInfo:!0};Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return o.packageInfo}});var i=r(93587);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=r(96771)},93587:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.selectableNetworks=t.availableNetworks=t.allNetworks=void 0;var i=n(r(72314)),o=r(11470);const a=[0,2,42],s=["testnet"],u=i.default.map((function(e){const t=e.network||"",r=t.replace(/_/g,"-").split("-"),n=e;return n.slip44=o.knownLedger[t],n.hasLedgerSupport=!!n.slip44,n.genesisHash=o.knownGenesis[t]||[],n.icon=o.knownIcon[t]||"substrate",n.isTestnet=!!o.knownTestnet[t]||s.includes(r[r.length-1]),n.isIgnored=n.isTestnet||!(e.standardAccount&&e.decimals&&e.decimals.length&&e.symbols&&e.symbols.length)&&42!==e.prefix,n}));t.allNetworks=u;const c=u.filter((function(e){return!e.isIgnored&&!!e.network})).sort((function(e,t){const r=a.includes(e.prefix);return r===a.includes(t.prefix)?r?0:e.displayName.localeCompare(t.displayName):r?-1:1}));t.availableNetworks=c;const f=c.filter((function(e){let{genesisHash:t,prefix:r}=e;return!!t.length||42===r}));t.selectableNetworks=f},96771:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/networks",path:"/",type:"cjs",version:"10.3.1"}},42:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayChunk=function(e,t){const r=Math.ceil(e.length/t);if(1===r)return[e];const n=Array(r);for(let i=0;i<r;i++){const r=i*t;n[i]=e.slice(r,r+t)}return n}},54159:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayFilter=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.filter((e=>void 0!==e&&(t||null!==e)))}},81798:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayFlatten=function(e){if(0===e.length)return[];if(1===e.length)return e[0];let t=0;for(let r=0;r<e.length;r++)t+=e[r].length;const r=new Array(t);let n=-1;for(let t=0;t<e.length;t++){const i=e[t];for(let e=0;e<i.length;e++)r[++n]=i[e]}return r}},29669:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"arrayChunk",{enumerable:!0,get:function(){return n.arrayChunk}}),Object.defineProperty(t,"arrayFilter",{enumerable:!0,get:function(){return i.arrayFilter}}),Object.defineProperty(t,"arrayFlatten",{enumerable:!0,get:function(){return o.arrayFlatten}}),Object.defineProperty(t,"arrayRange",{enumerable:!0,get:function(){return a.arrayRange}}),Object.defineProperty(t,"arrayShuffle",{enumerable:!0,get:function(){return s.arrayShuffle}}),Object.defineProperty(t,"arrayUnzip",{enumerable:!0,get:function(){return u.arrayUnzip}}),Object.defineProperty(t,"arrayZip",{enumerable:!0,get:function(){return c.arrayZip}});var n=r(42),i=r(54159),o=r(81798),a=r(87786),s=r(6639),u=r(96781),c=r(59527)},87786:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayRange=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e<=0)throw new Error("Expected non-zero, positive number as a range size");const r=new Array(e);for(let n=0;n<e;n++)r[n]=n+t;return r}},6639:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayShuffle=function(e){const t=e.slice();let r=t.length;if(1===r)return t;for(;0!==r;){const e=~~(Math.random()*r);r--,[t[r],t[e]]=[t[e],t[r]]}return t}},96781:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayUnzip=function(e){const t=new Array(e.length),r=new Array(e.length);for(let n=0;n<e.length;n++)[t[n],r[n]]=e[n];return[t,r]}},59527:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayZip=function(e,t){const r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=[e[n],t[n]];return r}},25:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assert=i,t.assertReturn=function(e,t){return i(null!=e,t),e},t.assertUnreachable=function(e){throw new Error(`This codepath should be unreachable. Unhandled input: ${e}`)};var n=r(61775);function i(e,t){if(!e)throw new Error((0,n.isFunction)(t)?t():t)}},26494:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._sqrt2pow53n=t._9n=t._8n=t._7n=t._6n=t._5n=t._4n=t._3n=t._2pow53n=t._2n=t._1n=t._1Qn=t._1Mn=t._1Bn=t._10n=t._100n=t._1000n=t._0n=void 0;var n=r(85626);const i=(0,n.BigInt)(0);t._0n=i;const o=(0,n.BigInt)(1);t._1n=o;const a=(0,n.BigInt)(2);t._2n=a;const s=(0,n.BigInt)(3);t._3n=s;const u=(0,n.BigInt)(4);t._4n=u;const c=(0,n.BigInt)(5);t._5n=c;const f=(0,n.BigInt)(6);t._6n=f;const l=(0,n.BigInt)(7);t._7n=l;const d=(0,n.BigInt)(8);t._8n=d;const h=(0,n.BigInt)(9);t._9n=h;const p=(0,n.BigInt)(10);t._10n=p;const b=(0,n.BigInt)(100);t._100n=b;const y=(0,n.BigInt)(1e3);t._1000n=y;const g=(0,n.BigInt)(1e6);t._1Mn=g;const m=(0,n.BigInt)(1e9);t._1Bn=m;const v=m*m;t._1Qn=v;const w=(0,n.BigInt)(Number.MAX_SAFE_INTEGER);t._2pow53n=w;const _=(0,n.BigInt)(94906265);t._sqrt2pow53n=_},68932:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCmp=function(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(0===r.length)throw new Error("Must provide one or more arguments");let i=r[0];for(let t=1;t<r.length;t++)e(r[t],i)&&(i=r[t]);return i}}},86691:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={nSqrt:!0,nToBigInt:!0,nMax:!0,nMin:!0,nToHex:!0,nToU8a:!0};Object.defineProperty(t,"nMax",{enumerable:!0,get:function(){return s.nMax}}),Object.defineProperty(t,"nMin",{enumerable:!0,get:function(){return s.nMin}}),Object.defineProperty(t,"nSqrt",{enumerable:!0,get:function(){return o.nSqrt}}),Object.defineProperty(t,"nToBigInt",{enumerable:!0,get:function(){return a.nToBigInt}}),Object.defineProperty(t,"nToHex",{enumerable:!0,get:function(){return u.nToHex}}),Object.defineProperty(t,"nToU8a",{enumerable:!0,get:function(){return c.nToU8a}});var i=r(26494);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=r(74185),a=r(25555),s=r(51889),u=r(15541),c=r(73756)},51889:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nMin=t.nMax=void 0;var n=r(68932);const i=(0,n.createCmp)(((e,t)=>e>t));t.nMax=i;const o=(0,n.createCmp)(((e,t)=>e<t));t.nMin=o},74185:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nSqrt=function(e){const t=(0,o.nToBigInt)(e);if(t<i._0n)throw new Error("square root of negative numbers is not supported");if(t<=i._2pow53n)return(0,n.BigInt)(~~Math.sqrt(Number(t)));let r=i._sqrt2pow53n;for(;;){const e=t/r+r>>i._1n;if(r===e||r===e-i._1n)return r;r=e}};var n=r(85626),i=r(26494),o=r(25555)},25555:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nToBigInt=function(e){return"bigint"==typeof e?e:e?(0,a.isHex)(e)?(0,i.hexToBigInt)(e.toString()):(0,o.isBn)(e)?(0,n.BigInt)(e.toString()):(0,s.isToBigInt)(e)?e.toBigInt():(0,u.isToBn)(e)?(0,n.BigInt)(e.toBn().toString()):(0,n.BigInt)(e):(0,n.BigInt)(0)};var n=r(85626),i=r(79803),o=r(97357),a=r(18955),s=r(81815),u=r(51985)},15541:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nToHex=function(e){let{bitLength:t,isLe:r=!1,isNegative:o=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.u8aToHex)((0,i.nToU8a)(e||0,{bitLength:t,isLe:r,isNegative:o}))};var n=r(68638),i=r(73756)},73756:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nToU8a=function(e){let{bitLength:t=-1,isLe:r=!0,isNegative:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const u=(0,o.nToBigInt)(e);if(u===i._0n)return-1===t?new Uint8Array(1):new Uint8Array(Math.ceil((t||0)/8));const c=function(e,t,r){const n=[];for(r&&(e=(e+i._1n)*-i._1n);e!==i._0n;){const i=e%a,o=Number(r?i^s:i);t?n.push(o):n.unshift(o),e=(e-i)/a}return Uint8Array.from(n)}(u,r,n);if(-1===t)return c;const f=Math.ceil((t||0)/8),l=new Uint8Array(f);return n&&l.fill(255),l.set(c,r?0:f-c.length),l};var n=r(85626),i=r(26494),o=r(25555);const a=(0,n.BigInt)(256),s=(0,n.BigInt)(255)},89693:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BN",{enumerable:!0,get:function(){return i.default}});var i=n(r(13550))},37872:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BN_ZERO=t.BN_TWO=t.BN_THREE=t.BN_THOUSAND=t.BN_TEN=t.BN_SQRT_MAX_INTEGER=t.BN_SIX=t.BN_SEVEN=t.BN_QUINTILL=t.BN_ONE=t.BN_NINE=t.BN_MILLION=t.BN_MAX_INTEGER=t.BN_HUNDRED=t.BN_FOUR=t.BN_FIVE=t.BN_EIGHT=t.BN_BILLION=void 0;var n=r(89693);const i=new n.BN(0);t.BN_ZERO=i;const o=new n.BN(1);t.BN_ONE=o;const a=new n.BN(2);t.BN_TWO=a;const s=new n.BN(3);t.BN_THREE=s;const u=new n.BN(4);t.BN_FOUR=u;const c=new n.BN(5);t.BN_FIVE=c;const f=new n.BN(6);t.BN_SIX=f;const l=new n.BN(7);t.BN_SEVEN=l;const d=new n.BN(8);t.BN_EIGHT=d;const h=new n.BN(9);t.BN_NINE=h;const p=new n.BN(10);t.BN_TEN=p;const b=new n.BN(100);t.BN_HUNDRED=b;const y=new n.BN(1e3);t.BN_THOUSAND=y;const g=new n.BN(1e6);t.BN_MILLION=g;const m=new n.BN(1e9);t.BN_BILLION=m;const v=m.mul(m);t.BN_QUINTILL=v;const w=new n.BN(Number.MAX_SAFE_INTEGER);t.BN_MAX_INTEGER=w;const _=new n.BN(94906265);t.BN_SQRT_MAX_INTEGER=_},21469:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bnFromHex",{enumerable:!0,get:function(){return n.hexToBn}});var n=r(60)},54065:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={BN:!0,bnFromHex:!0,bnMax:!0,bnMin:!0,bnSqrt:!0,bnToBn:!0,bnToHex:!0,bnToU8a:!0};Object.defineProperty(t,"BN",{enumerable:!0,get:function(){return o.BN}}),Object.defineProperty(t,"bnFromHex",{enumerable:!0,get:function(){return a.bnFromHex}}),Object.defineProperty(t,"bnMax",{enumerable:!0,get:function(){return s.bnMax}}),Object.defineProperty(t,"bnMin",{enumerable:!0,get:function(){return s.bnMin}}),Object.defineProperty(t,"bnSqrt",{enumerable:!0,get:function(){return u.bnSqrt}}),Object.defineProperty(t,"bnToBn",{enumerable:!0,get:function(){return c.bnToBn}}),Object.defineProperty(t,"bnToHex",{enumerable:!0,get:function(){return f.bnToHex}}),Object.defineProperty(t,"bnToU8a",{enumerable:!0,get:function(){return l.bnToU8a}});var i=r(37872);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=r(89693),a=r(21469),s=r(72479),u=r(10167),c=r(35095),f=r(50695),l=r(72278)},72479:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnMin=t.bnMax=void 0;var n=r(68932);const i=(0,n.createCmp)(((e,t)=>e.gt(t)));t.bnMax=i;const o=(0,n.createCmp)(((e,t)=>e.lt(t)));t.bnMin=o},10167:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnSqrt=function(e){const t=(0,o.bnToBn)(e);if(t.isNeg())throw new Error("square root of negative numbers is not supported");if(t.lte(i.BN_MAX_INTEGER))return new n.BN(~~Math.sqrt(t.toNumber()));let r=i.BN_SQRT_MAX_INTEGER.clone();for(;;){const e=t.div(r).iadd(r).ishrn(1);if(r.eq(e)||r.eq(e.sub(i.BN_ONE)))return r;r=e}};var n=r(89693),i=r(37872),o=r(35095)},35095:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnToBn=function(e){return e?u.BN.isBN(e)?e:(0,o.isHex)(e)?(0,n.hexToBn)(e.toString()):(0,i.isBigInt)(e)?new u.BN(e.toString()):(0,s.isToBn)(e)?e.toBn():(0,a.isToBigInt)(e)?new u.BN(e.toBigInt().toString()):new u.BN(e):new u.BN(0)};var n=r(60),i=r(54782),o=r(18955),a=r(81815),s=r(51985),u=r(89693)},50695:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnToHex=function(e){let{bitLength:t=-1,isLe:r=!1,isNegative:o=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.u8aToHex)((0,i.bnToU8a)(e,{bitLength:t,isLe:r,isNegative:o}))};var n=r(68638),i=r(72278)},72278:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnToU8a=function(e){let{bitLength:t=-1,isLe:r=!0,isNegative:o=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;const a=(0,n.bnToBn)(e),s=-1===t?Math.ceil(a.bitLength()/8):Math.ceil((t||0)/8);if(!e)return-1===t?new Uint8Array(1):new Uint8Array(s);const u=new Uint8Array(s),c=o?a.toTwos(8*s):a;return u.set(c.toArray(r?"le":"be",s),0),u};var n=r(35095);const i={bitLength:-1,isLe:!0,isNegative:!1}},66806:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bufferToU8a",{enumerable:!0,get:function(){return n.bufferToU8a}});var n=r(38972)},38972:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bufferToU8a=function(e){return new Uint8Array(e||[])}},79392:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={packageInfo:!0};Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return i.packageInfo}});var i=r(18485),o=r(29669);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=r(25);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var s=r(86691);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var u=r(54065);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var c=r(66806);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var f=r(73913);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))}));var l=r(88195);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var d=r(20191);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var h=r(14404);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))}));var p=r(25765);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===p[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}}))}));var b=r(10033);Object.keys(b).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===b[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return b[e]}}))}));var y=r(21066);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===y[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return y[e]}}))}));var g=r(61394);Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===g[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return g[e]}}))}));var m=r(34151);Object.keys(m).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===m[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return m[e]}}))}));var v=r(41005);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===v[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return v[e]}}))}));var w=r(78026);Object.keys(w).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===w[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return w[e]}}))}));var _=r(62170);Object.keys(_).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===_[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return _[e]}}))}));var x=r(26701);Object.keys(x).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===x[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return x[e]}}))}));var O=r(57820);Object.keys(O).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===O[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return O[e]}}))}));var k=r(21120);Object.keys(k).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===k[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return k[e]}}))}));var P=r(24986);Object.keys(P).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===P[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return P[e]}}))}));var S=r(68638);Object.keys(S).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===S[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return S[e]}}))}));var A=r(68839);Object.keys(A).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===A[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return A[e]}}))}))},95298:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactAddLength=function(e){return(0,n.u8aConcatStrict)([(0,i.compactToU8a)(e.length),e])};var n=r(68638),i=r(176)},11135:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactFromU8a=function(e){const t=(0,i.u8aToU8a)(e);switch(3&t[0]){case 0:return[1,new n.BN(t[0]>>>2)];case 1:return[2,new n.BN(t[0]+(t[1]<<8)>>>2)];case 2:return[4,new n.BN(t[0]+(t[1]<<8)+(t[2]<<16)+16777216*t[3]>>>2)];default:{const e=5+(t[0]>>>2);switch(e){case 5:return[5,new n.BN(t[1]+(t[2]<<8)+(t[3]<<16)+16777216*t[4])];case 6:return[6,new n.BN(t[1]+(t[2]<<8)+(t[3]<<16)+16777216*(t[4]+(t[5]<<8)))];case 7:return[7,new n.BN(t[1]+(t[2]<<8)+(t[3]<<16)+16777216*(t[4]+(t[5]<<8)+(t[6]<<16)))];default:return[e,(0,i.u8aToBn)(t.subarray(1,e))]}}}},t.compactFromU8aLim=function(e){switch(3&e[0]){case 0:return[1,e[0]>>>2];case 1:return[2,e[0]+(e[1]<<8)>>>2];case 2:return[4,e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]>>>2];default:switch(5+(e[0]>>>2)){case 5:return[5,e[1]+(e[2]<<8)+(e[3]<<16)+16777216*e[4]];case 6:return[6,e[1]+(e[2]<<8)+(e[3]<<16)+16777216*(e[4]+(e[5]<<8))];case 7:return[7,e[1]+(e[2]<<8)+(e[3]<<16)+16777216*(e[4]+(e[5]<<8)+(e[6]<<16))];default:throw new Error("Compact input is > Number.MAX_SAFE_INTEGER")}}};var n=r(54065),i=r(68638)},73913:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"compactAddLength",{enumerable:!0,get:function(){return n.compactAddLength}}),Object.defineProperty(t,"compactFromU8a",{enumerable:!0,get:function(){return o.compactFromU8a}}),Object.defineProperty(t,"compactFromU8aLim",{enumerable:!0,get:function(){return o.compactFromU8aLim}}),Object.defineProperty(t,"compactStripLength",{enumerable:!0,get:function(){return i.compactStripLength}}),Object.defineProperty(t,"compactToU8a",{enumerable:!0,get:function(){return a.compactToU8a}});var n=r(95298),i=r(63065),o=r(11135),a=r(176)},63065:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactStripLength=function(e){const[t,r]=(0,n.compactFromU8a)(e),i=t+r.toNumber();return[i,e.subarray(t,i)]};var n=r(11135)},176:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactToU8a=function(e){const t=(0,n.bnToBn)(e);if(t.lte(o))return new Uint8Array([t.toNumber()<<2]);if(t.lte(a))return(0,n.bnToU8a)(t.shln(2).iadd(n.BN_ONE),u);if(t.lte(s))return(0,n.bnToU8a)(t.shln(2).iadd(n.BN_TWO),c);const r=(0,n.bnToU8a)(t);let f=r.length;for(;0===r[f-1];)f--;if(f<4)throw new Error("Invalid length, previous checks match anything less than 2^30");return(0,i.u8aConcatStrict)([new Uint8Array([3+(f-4<<2)]),r.subarray(0,f)])};var n=r(54065),i=r(68638);const o=n.BN_TWO.pow(new n.BN(6)).isub(n.BN_ONE),a=n.BN_TWO.pow(new n.BN(14)).isub(n.BN_ONE),s=n.BN_TWO.pow(new n.BN(30)).isub(n.BN_ONE),u={bitLength:16},c={bitLength:32}},26185:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(12705),i=r(43313),o=[n.packageInfo,i.packageInfo];t.default=o},30784:(e,t,r)=>{"use strict";var n=r(64836)(r(26185)),i=r(18485);(0,r(68839).detectPackage)(i.packageInfo,null,n.default)},88195:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extractTime=function e(t){return t?t<1e3?a({milliseconds:t},o):function(t){const o=t/1e3;if(o<60){const r=~~o;return a({seconds:r},e(t-1e3*r))}const s=o/60;if(s<60){const n=~~s;return a({minutes:n},e(t-n*r))}const u=s/60;if(u<24){const r=~~u;return a({hours:r},e(t-r*n))}const c=~~(u/24);return a({days:c},e(t-c*i))}(t):o};const r=6e4,n=60*r,i=24*n,o={days:0,hours:0,milliseconds:0,minutes:0,seconds:0};function a(e,t){return{days:(e.days||0)+t.days,hours:(e.hours||0)+t.hours,milliseconds:(e.milliseconds||0)+t.milliseconds,minutes:(e.minutes||0)+t.minutes,seconds:(e.seconds||0)+t.seconds}}},20191:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"floatToU8a",{enumerable:!0,get:function(){return n.floatToU8a}});var n=r(15852)},15852:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.floatToU8a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,{bitLength:t=32,isLe:r=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(32!==t&&64!==t)throw new Error("Invalid bitLength provided, expected 32 or 64");const n=new Uint8Array(t/8),i=new DataView(n.buffer,n.byteOffset);return 32===t?i.setFloat32(0,Number(e),r):i.setFloat64(0,Number(e),r),n}},21447:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatBalance=void 0;var n=r(35095),i=r(62543),o=r(33947),a=r(64449),s=r(50041);const u=s.SI[s.SI_MID].text;let c=0,f=u;const l=function(e){let{decimals:t=c,forceUnit:r,withAll:u=!1,withSi:f=!0,withSiFull:l=!1,withUnit:d=!0,withZero:h=!0,locale:p="en"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},b=(0,n.bnToBn)(e).toString();if(0===b.length||"0"===b)return"0";let y="";b[0].startsWith("-")&&(y="-",b=b.substring(1));const g=(0,s.calcSi)(b,t,r),m=b.length-(t+g.power),v=m<=0?"0":b.substring(0,m);let w=b.padStart(m<0?t:1,"0").substring(m<0?0:m).padEnd(u?Math.max(t,4):4,"0").substring(0,u?Math.max(4,t+g.power):4);if(!h){let e=w.length-1;do{"0"===w[e]&&e--}while("0"===w[e]);w=w.substring(0,e+1)}const _=(0,i.isBoolean)(d)?s.SI[s.SI_MID].text:d,x=f||l?"-"===g.value?d?` ${_}`:"":` ${l?`${g.text}${d?" ":""}`:g.value}${d?_:""}`:"",{decimal:O,thousand:k}=(0,a.getSeparator)(p);return`${y}${(0,o.formatDecimal)(v,k)}${w&&`${O}${w}`}${x}`};t.formatBalance=l,l.calcSi=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;return(0,s.calcSi)(e,t)},l.findSi=s.findSi,l.getDefaults=()=>({decimals:c,unit:f}),l.getOptions=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return s.SI.filter((t=>{let{power:r}=t;return!(r<0)||e+r>=0}))},l.setDefaults=e=>{let{decimals:t,unit:r}=e;c=void 0===t?c:Array.isArray(t)?t[0]:t,f=void 0===r?f:Array.isArray(r)?r[0]:r,s.SI[s.SI_MID].text=f}},5342:(e,t)=>{"use strict";function r(e){return e.toString().padStart(2,"0")}Object.defineProperty(t,"__esModule",{value:!0}),t.formatDate=function(e){return`${e.getFullYear().toString()}-${r(e.getMonth()+1)}-${r(e.getDate())} ${r(e.getHours())}:${r(e.getMinutes())}:${r(e.getSeconds())}`}},33947:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatDecimal=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";const n=e[0].startsWith("-"),i=n?e.substring(1).match(r):e.match(r);return i?`${n?"-":""}${i.join(t)}`:e};const r=new RegExp("(\\d+?)(?=(\\d{3})+(?!\\d)|$)","g")},998:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatElapsed=function(e,t){const r=e&&e.getTime()||0,i=t instanceof Date?t.getTime():(0,n.bnToBn)(t).toNumber();return r&&i?(o=Math.max(Math.abs(r-i),0)/1e3)<15?`${o.toFixed(1)}s`:o<60?(0|o)+"s":o<3600?(o/60|0)+"m":(o/3600|0)+"h":"0.0s";var o};var n=r(35095)},65662:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatNumber=function(e){let{locale:t="en"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{thousand:r}=(0,o.getSeparator)(t);return(0,i.formatDecimal)((0,n.bnToBn)(e).toString(),r)};var n=r(35095),i=r(33947),o=r(64449)},64449:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSeparator=function(e){return{decimal:.1.toLocaleString(e).substring(1,2),thousand:1e3.toLocaleString(e).substring(1,2)}}},14404:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"calcSi",{enumerable:!0,get:function(){return u.calcSi}}),Object.defineProperty(t,"findSi",{enumerable:!0,get:function(){return u.findSi}}),Object.defineProperty(t,"formatBalance",{enumerable:!0,get:function(){return n.formatBalance}}),Object.defineProperty(t,"formatDate",{enumerable:!0,get:function(){return i.formatDate}}),Object.defineProperty(t,"formatDecimal",{enumerable:!0,get:function(){return o.formatDecimal}}),Object.defineProperty(t,"formatElapsed",{enumerable:!0,get:function(){return a.formatElapsed}}),Object.defineProperty(t,"formatNumber",{enumerable:!0,get:function(){return s.formatNumber}});var n=r(21447),i=r(5342),o=r(33947),a=r(998),s=r(65662),u=r(50041)},50041:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SI_MID=t.SI=void 0,t.calcSi=function(e,t,o){if(o)return i(o);const a=r-1+Math.ceil((e.length-t)/3);return n[a]||n[a<0?0:n.length-1]},t.findSi=i;const r=8;t.SI_MID=r;const n=[{power:-24,text:"yocto",value:"y"},{power:-21,text:"zepto",value:"z"},{power:-18,text:"atto",value:"a"},{power:-15,text:"femto",value:"f"},{power:-12,text:"pico",value:"p"},{power:-9,text:"nano",value:"n"},{power:-6,text:"micro",value:"µ"},{power:-3,text:"milli",value:"m"},{power:0,text:"Unit",value:"-"},{power:3,text:"Kilo",value:"k"},{power:6,text:"Mill",value:"M"},{power:9,text:"Bill",value:"B"},{power:12,text:"Tril",value:"T"},{power:15,text:"Peta",value:"P"},{power:18,text:"Exa",value:"E"},{power:21,text:"Zeta",value:"Z"},{power:24,text:"Yotta",value:"Y"}];function i(e){for(let t=0;t<n.length;t++)if(n[t].value===e)return n[t];return n[r]}t.SI=n},25765:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasWasm=t.hasProcess=t.hasEsm=t.hasDirname=t.hasCjs=t.hasBuffer=t.hasBigInt=void 0;var n=r(85626),i=r(355);const o="function"==typeof n.BigInt&&"function"==typeof n.BigInt.asIntN;t.hasBigInt=o,t.hasCjs=!0,t.hasDirname=!0,t.hasEsm=!1;const a="undefined"!=typeof WebAssembly;t.hasWasm=a;const s="function"==typeof i.xglobal.Buffer&&"function"==typeof i.xglobal.Buffer.isBuffer;t.hasBuffer=s;const u="object"==typeof i.xglobal.process;t.hasProcess=u},38493:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexAddPrefix=function(e){return e&&(0,n.hexHasPrefix)(e)?e:`0x${e&&e.length%2==1?"0":""}${e||""}`};var n=r(26572)},42625:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexFixLength=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=Math.ceil(t/4),a=o+2;return(0,n.hexAddPrefix)(-1===t||e.length===a||!r&&e.length<a?(0,i.hexStripPrefix)(e):e.length>a?(0,i.hexStripPrefix)(e).slice(-1*o):`${"0".repeat(o)}${(0,i.hexStripPrefix)(e)}`.slice(-1*o))};var n=r(38493),i=r(30227)},26572:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexHasPrefix=function(e){return!!e&&(0,n.isHex)(e,-1)};var n=r(18955)},10033:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hexAddPrefix",{enumerable:!0,get:function(){return n.hexAddPrefix}}),Object.defineProperty(t,"hexFixLength",{enumerable:!0,get:function(){return i.hexFixLength}}),Object.defineProperty(t,"hexHasPrefix",{enumerable:!0,get:function(){return o.hexHasPrefix}}),Object.defineProperty(t,"hexStripPrefix",{enumerable:!0,get:function(){return a.hexStripPrefix}}),Object.defineProperty(t,"hexToBigInt",{enumerable:!0,get:function(){return s.hexToBigInt}}),Object.defineProperty(t,"hexToBn",{enumerable:!0,get:function(){return u.hexToBn}}),Object.defineProperty(t,"hexToNumber",{enumerable:!0,get:function(){return c.hexToNumber}}),Object.defineProperty(t,"hexToString",{enumerable:!0,get:function(){return f.hexToString}}),Object.defineProperty(t,"hexToU8a",{enumerable:!0,get:function(){return l.hexToU8a}});var n=r(38493),i=r(42625),o=r(26572),a=r(30227),s=r(79803),u=r(60),c=r(49759),f=r(79532),l=r(96435)},30227:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexStripPrefix=function(e){if(!e||"0x"===e)return"";if(n.REGEX_HEX_PREFIXED.test(e))return e.substring(2);if(n.REGEX_HEX_NOPREFIX.test(e))return e;throw new Error(`Expected hex value to convert, found '${e}'`)};var n=r(18955)},79803:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToBigInt=function(e){let{isLe:t=!1,isNegative:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e&&"0x"!==e?(0,i.u8aToBigInt)((0,o.hexToU8a)(e),{isLe:t,isNegative:r}):(0,n.BigInt)(0)};var n=r(85626),i=r(92473),o=r(96435)},60:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToBn=function(e){let{isLe:t=!1,isNegative:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||"0x"===e)return new n.BN(0);const o=(0,i.hexStripPrefix)(e),a=new n.BN(o,16,t?"le":"be");return r?a.fromTwos(4*o.length):a};var n=r(89693),i=r(30227)},49759:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToNumber=function(e){return e?(0,n.hexToBn)(e).toNumber():NaN};var n=r(60)},79532:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToString=function(e){return(0,n.u8aToString)((0,i.hexToU8a)(e))};var n=r(96809),i=r(96435)},96435:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToU8a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(!e)return new Uint8Array;let r=e.startsWith("0x")?2:0;const n=Math.ceil((e.length-r)/2),o=Math.ceil(-1===t?n:t/8),a=new Uint8Array(o);for(let t=o>n?o-n:0;t<o;t++,r+=2)a[t]=i[e.charCodeAt(r)<<8|e.charCodeAt(r+1)];return a};const r="0123456789abcdef",n=new Uint8Array(256),i=new Uint8Array(65536);for(let e=0;e<16;e++)n[0|r[e].charCodeAt(0)]=0|e,e>9&&(n[0|r[e].toUpperCase().charCodeAt(0)]=0|e);for(let e=0;e<256;e++){const t=e<<8;for(let r=0;r<256;r++)i[t|r]=n[e]<<4|n[r]}},36352:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(30784);var n=r(79392);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}))},98100:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isArray=function(e){return Array.isArray(e)}},96716:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAscii=function(e){return(0,o.isString)(e)?(0,i.isHex)(e)?a((0,n.u8aToU8a)(e)):function(e){const t=0|e.length;for(let r=0;r<t;r++){const t=e.charCodeAt(r);if(t<32||t>126)return!1}return!0}(e):!!e&&a(e)};var n=r(82381),i=r(18955),o=r(97257);function a(e){const t=0|e.length;for(let r=0;r<t;r++){const t=0|e[r];if(t<32||t>126)return!1}return!0}},54782:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBigInt=function(e){return"bigint"==typeof e}},97357:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBn=function(e){return n.BN.isBN(e)};var n=r(89693)},62543:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBoolean=function(e){return"boolean"==typeof e}},25860:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBuffer=function(e){return i.hasBuffer&&(0,o.isFunction)(e&&e.readDoubleLE)&&n.xglobal.Buffer.isBuffer(e)};var n=r(355),i=r(25765),o=r(61775)},32128:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isChildClass=function(e,t){return!(!(0,n.isClass)(t)||!(0,n.isClass)(e))&&(e===t||e.isPrototypeOf(t))};var n=r(76082)},76082:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isClass=void 0;const n=(0,r(27418).isOnFunction)("isPrototypeOf","hasOwnProperty");t.isClass=n},66932:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isCodec=function(e){return i(e)&&o(e.registry)};var n=r(27418);const i=(0,n.isOnObject)("toHex","toU8a"),o=(0,n.isOnObject)("get")},88106:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isCompact=void 0;const n=(0,r(27418).isOnObject)("toBigInt","toBn","toNumber","unwrap");t.isCompact=n},40167:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isError=function(e){return(e&&e.constructor)===Error||e instanceof Error}},61775:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFunction=function(e){return"function"==typeof e}},27418:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isOn=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return e=>((0,i.isObject)(e)||(0,n.isFunction)(e))&&t.every((t=>(0,n.isFunction)(e[t])))},t.isOnFunction=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return e=>(0,n.isFunction)(e)&&t.every((t=>(0,n.isFunction)(e[t])))},t.isOnObject=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return e=>(0,i.isObject)(e)&&t.every((t=>(0,n.isFunction)(e[t])))};var n=r(61775),i=r(73813)},18955:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.REGEX_HEX_PREFIXED=t.REGEX_HEX_NOPREFIX=void 0,t.isHex=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=arguments.length>2?arguments[2]:void 0;return"string"==typeof e&&("0x"===e||r.test(e))&&(-1===t?n||e.length%2==0:e.length===2+Math.ceil(t/4))};const r=/^0x[\da-fA-F]+$/;t.REGEX_HEX_PREFIXED=r,t.REGEX_HEX_NOPREFIX=/^[\da-fA-F]+$/},21066:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isArray",{enumerable:!0,get:function(){return n.isArray}}),Object.defineProperty(t,"isAscii",{enumerable:!0,get:function(){return i.isAscii}}),Object.defineProperty(t,"isBigInt",{enumerable:!0,get:function(){return o.isBigInt}}),Object.defineProperty(t,"isBn",{enumerable:!0,get:function(){return a.isBn}}),Object.defineProperty(t,"isBoolean",{enumerable:!0,get:function(){return u.isBoolean}}),Object.defineProperty(t,"isBuffer",{enumerable:!0,get:function(){return s.isBuffer}}),Object.defineProperty(t,"isChildClass",{enumerable:!0,get:function(){return c.isChildClass}}),Object.defineProperty(t,"isClass",{enumerable:!0,get:function(){return f.isClass}}),Object.defineProperty(t,"isCodec",{enumerable:!0,get:function(){return l.isCodec}}),Object.defineProperty(t,"isCompact",{enumerable:!0,get:function(){return d.isCompact}}),Object.defineProperty(t,"isError",{enumerable:!0,get:function(){return h.isError}}),Object.defineProperty(t,"isFunction",{enumerable:!0,get:function(){return p.isFunction}}),Object.defineProperty(t,"isHex",{enumerable:!0,get:function(){return b.isHex}}),Object.defineProperty(t,"isInstanceOf",{enumerable:!0,get:function(){return y.isInstanceOf}}),Object.defineProperty(t,"isIp",{enumerable:!0,get:function(){return g.isIp}}),Object.defineProperty(t,"isJsonObject",{enumerable:!0,get:function(){return m.isJsonObject}}),Object.defineProperty(t,"isNull",{enumerable:!0,get:function(){return v.isNull}}),Object.defineProperty(t,"isNumber",{enumerable:!0,get:function(){return w.isNumber}}),Object.defineProperty(t,"isObject",{enumerable:!0,get:function(){return _.isObject}}),Object.defineProperty(t,"isObservable",{enumerable:!0,get:function(){return x.isObservable}}),Object.defineProperty(t,"isPromise",{enumerable:!0,get:function(){return O.isPromise}}),Object.defineProperty(t,"isString",{enumerable:!0,get:function(){return k.isString}}),Object.defineProperty(t,"isTestChain",{enumerable:!0,get:function(){return P.isTestChain}}),Object.defineProperty(t,"isToBigInt",{enumerable:!0,get:function(){return S.isToBigInt}}),Object.defineProperty(t,"isToBn",{enumerable:!0,get:function(){return A.isToBn}}),Object.defineProperty(t,"isU8a",{enumerable:!0,get:function(){return E.isU8a}}),Object.defineProperty(t,"isUndefined",{enumerable:!0,get:function(){return M.isUndefined}}),Object.defineProperty(t,"isUtf8",{enumerable:!0,get:function(){return j.isUtf8}}),Object.defineProperty(t,"isWasm",{enumerable:!0,get:function(){return T.isWasm}});var n=r(98100),i=r(96716),o=r(54782),a=r(97357),s=r(25860),u=r(62543),c=r(32128),f=r(76082),l=r(66932),d=r(88106),h=r(40167),p=r(61775),b=r(18955),y=r(37498),g=r(37883),m=r(6871),v=r(21034),w=r(25986),_=r(73813),x=r(65404),O=r(97582),k=r(97257),P=r(17899),S=r(81815),A=r(51985),E=r(10826),M=r(89446),j=r(41672),T=r(49299)},37498:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInstanceOf=function(e,t){return(e&&e.constructor)===t||e instanceof t}},37883:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIp=function(e,t){switch(t){case"v4":return a.test(e);case"v6":return s.test(e);default:return o.test(e)}};const r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",i=`\n(?:\n(?:${n}:){7}(?:${n}|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:${n}:){6}(?:${r}|:${n}|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:${n}:){5}(?::${r}|(?::${n}){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:${n}:){4}(?:(?::${n}){0,1}:${r}|(?::${n}){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:${n}:){3}(?:(?::${n}){0,2}:${r}|(?::${n}){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:${n}:){2}(?:(?::${n}){0,3}:${r}|(?::${n}){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:${n}:){1}(?:(?::${n}){0,4}:${r}|(?::${n}){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::${n}){0,5}:${r}|(?::${n}){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n`.replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),o=new RegExp(`(?:^${r}$)|(?:^${i}$)`),a=new RegExp(`^${r}$`),s=new RegExp(`^${i}$`)},6871:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isJsonObject=function(e){const t="string"!=typeof e?(0,n.stringify)(e):e;try{const e=JSON.parse(t);return"object"==typeof e&&null!==e}catch(e){return!1}};var n=r(24986)},21034:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNull=function(e){return null===e}},25986:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNumber=function(e){return"number"==typeof e}},73813:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObject=function(e){return!!e&&"object"==typeof e}},65404:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObservable=void 0;const n=(0,r(27418).isOn)("next");t.isObservable=n},97582:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPromise=void 0;const n=(0,r(27418).isOnObject)("catch","then");t.isPromise=n},97257:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isString=function(e){return"string"==typeof e||e instanceof String}},17899:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isTestChain=function(e){return!!e&&!!r.test(e.toString())};const r=/(Development|Local Testnet)$/},81815:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isToBigInt=void 0;const n=(0,r(27418).isOn)("toBigInt");t.isToBigInt=n},51985:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isToBn=void 0;const n=(0,r(27418).isOn)("toBn");t.isToBn=n},10826:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isU8a=function(e){return(e&&e.constructor)===Uint8Array||e instanceof Uint8Array}},89446:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isUndefined=function(e){return void 0===e}},41672:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isUtf8=function(e){if(!e)return(0,i.isString)(e);const t=(0,n.u8aToU8a)(e),r=t.length;let o=0;for(;o<r;)if(t[o]<=127)o+=1;else if(t[o]>=194&&t[o]<=223){if(!(o+1<r))return!1;if(t[o+1]<128||t[o+1]>191)return!1;o+=2}else if(224===t[o]){if(!(o+2<r))return!1;if(t[o+1]<160||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;o+=3}else if(t[o]>=225&&t[o]<=236){if(!(o+2<r))return!1;if(t[o+1]<128||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;o+=3}else if(237===t[o]){if(!(o+2<r))return!1;if(t[o+1]<128||t[o+1]>159)return!1;if(t[o+2]<128||t[o+2]>191)return!1;o+=3}else if(t[o]>=238&&t[o]<=239){if(!(o+2<r))return!1;if(t[o+1]<128||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;o+=3}else if(240===t[o]){if(!(o+3<r))return!1;if(t[o+1]<144||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;if(t[o+3]<128||t[o+3]>191)return!1;o+=4}else if(t[o]>=241&&t[o]<=243){if(!(o+3<r))return!1;if(t[o+1]<128||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;if(t[o+3]<128||t[o+3]>191)return!1;o+=4}else{if(244!==t[o])return!1;if(!(o+3<r))return!1;if(t[o+1]<128||t[o+1]>143)return!1;if(t[o+2]<128||t[o+2]>191)return!1;if(t[o+3]<128||t[o+3]>191)return!1;o+=4}return!0};var n=r(82381),i=r(97257)},49299:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isWasm=function(e){return(0,i.isU8a)(e)&&(0,n.u8aEq)(e.subarray(0,4),o)};var n=r(29433),i=r(10826);const o=new Uint8Array([0,97,115,109])},61394:(e,t)=>{"use strict";function r(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;const o=n?n(t,i):t.toString();let a;Object.defineProperty(e,o,{configurable:!0,enumerable:!0,get:function(){if(void 0===a){a=r(t,i,this);try{Object.defineProperty(this,o,{value:a})}catch(e){}}return a}})}Object.defineProperty(t,"__esModule",{value:!0}),t.lazyMethod=r,t.lazyMethods=function(e,t,n,i){for(let o=0;o<t.length;o++)r(e,t[o],n,i,o);return e}},34151:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.logger=function(e){const t=`${e.toUpperCase()}:`.padStart(16),[r,i]=function(e){const t=(d.hasProcess?n.xglobal.process:{}).env||{},r=parseInt(t.DEBUG_MAX||"-1",10);return[v((t.DEBUG||"").toLowerCase().split(","),e),isNaN(r)?-1:r]}(e.toLowerCase());return{debug:r?function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return b("debug",t,r,i)}:y,error:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return b("error",t,r)},log:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return b("log",t,r)},noop:y,warn:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return b("warn",t,r)}}},t.loggerFormat=p;var n=r(355),i=r(5342),o=r(97357),a=r(25860),s=r(61775),u=r(73813),c=r(10826),f=r(4147),l=r(82381),d=r(25765);const h={debug:"log",error:"error",log:"log",warn:"warn"};function p(e){return Array.isArray(e)?e.map(p):(0,o.isBn)(e)?e.toString():(0,c.isU8a)(e)||(0,a.isBuffer)(e)?(0,f.u8aToHex)((0,l.u8aToU8a)(e)):function(e){if(e&&(0,u.isObject)(e)&&e.constructor===Object){const t={};for(const r of Object.keys(e))t[r]=p(e[r]);return t}return e}(e)}function b(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1;if(1===r.length&&(0,s.isFunction)(r[0])){const i=r[0]();return b(e,t,Array.isArray(i)?i:[i],n)}var o;console[h[e]]((0,i.formatDate)(new Date),t,...r.map(p).map((o=n,e=>{if(o<=0)return e;const t=`${e}`;return t.length<o?e:`${t.substring(0,o)} ...`})))}function y(){}function g(e,t){return!!e&&("*"===e||t===e||e.endsWith("*")&&t.startsWith(e.slice(0,-1)))}function m(e,t){return!!e&&e.startsWith("-")&&(t===e.slice(1)||e.endsWith("*")&&t.startsWith(e.slice(1,-1)))}function v(e,t){let r=!1;for(const n of e)g(n,t)?r=!0:m(n,t)&&(r=!1);return r}},41005:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.memoize=function(e){let{getInstanceId:t=i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r={},o=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];const s=(0,n.stringify)(o),u=t();return r[u]||(r[u]={}),void 0===r[u][s]&&(r[u][s]=e(...o)),r[u][s]};return o.unmemoize=function(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];const a=(0,n.stringify)(i),s=t();r[s]&&void 0!==r[s][a]&&delete r[s][a]},o};var n=r(24986);function i(){return"none"}},78026:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nextTick=function(e,t){setTimeout((()=>{Promise.resolve().then((()=>{e()})).catch((e=>{t?t(e):console.error(e)}))}),0)}},62170:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"numberToHex",{enumerable:!0,get:function(){return n.numberToHex}}),Object.defineProperty(t,"numberToU8a",{enumerable:!0,get:function(){return i.numberToU8a}});var n=r(78157),i=r(86738)},78157:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numberToHex=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;const r=(!e||Number.isNaN(e)?0:e).toString(16);return(0,n.hexFixLength)(r.length%2?`0${r}`:r,t,!0)};var n=r(42625)},86738:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numberToU8a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return(0,n.hexToU8a)((0,i.numberToHex)(e,t))};var n=r(96435),i=r(78157)},63467:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectClear=function(e){const t=Object.keys(e);for(let r=0;r<t.length;r++)delete e[t[r]];return e}},88693:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectCopy=function(e){return(0,n.objectSpread)({},e)};var n=r(5951)},24761:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectEntries=function(e){return Object.entries(e)}},26701:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"objectClear",{enumerable:!0,get:function(){return n.objectClear}}),Object.defineProperty(t,"objectCopy",{enumerable:!0,get:function(){return i.objectCopy}}),Object.defineProperty(t,"objectEntries",{enumerable:!0,get:function(){return o.objectEntries}}),Object.defineProperty(t,"objectKeys",{enumerable:!0,get:function(){return a.objectKeys}}),Object.defineProperty(t,"objectProperties",{enumerable:!0,get:function(){return s.objectProperties}}),Object.defineProperty(t,"objectProperty",{enumerable:!0,get:function(){return s.objectProperty}}),Object.defineProperty(t,"objectSpread",{enumerable:!0,get:function(){return u.objectSpread}}),Object.defineProperty(t,"objectValues",{enumerable:!0,get:function(){return c.objectValues}});var n=r(63467),i=r(88693),o=r(24761),a=r(66871),s=r(45865),u=r(5951),c=r(12577)},66871:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectKeys=function(e){return Object.keys(e)}},45865:(e,t)=>{"use strict";function r(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;const o=n?n(t,i):t;o in e||Object.defineProperty(e,o,{enumerable:!0,get:function(){return r(t,i,this)}})}Object.defineProperty(t,"__esModule",{value:!0}),t.objectProperties=function(e,t,n,i){for(let o=0;o<t.length;o++)r(e,t[o],n,i,o)},t.objectProperty=r},5951:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectSpread=function(e){for(let t=0;t<(arguments.length<=1?0:arguments.length-1);t++){const r=t+1<1||arguments.length<=t+1?void 0:arguments[t+1];if(r)if("function"==typeof r.entries)for(const[t,n]of r.entries())e[t]=n;else Object.assign(e,r)}return e}},12577:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectValues=function(e){return Object.values(e)}},18485:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/util",path:"/",type:"cjs",version:"10.4.1"}},57820:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.promisify=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return new Promise(((r,i)=>{t.apply(e,n.concat(((e,t)=>{e?i(e):r(t)})))}))}},27510:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringPascalCase=t.stringCamelCase=t.CC_TO_UP=t.CC_TO_LO=void 0;const r=new Array(256);t.CC_TO_UP=r;const n=new Array(256);t.CC_TO_LO=n;for(let e=0;e<r.length;e++)n[e]=String.fromCharCode(e).toLowerCase(),r[e]=String.fromCharCode(e).toUpperCase();function i(e){return e.slice(0,e.length-1).toLowerCase()+r[e.charCodeAt(e.length-1)]}function o(e){return t=>{const r=t.replace(/[-_., ]+/g," ").trim().split(" "),n=r.length;let o="";for(let t=0;t<n;t++){const n=r[t];o+=e(/^[\dA-Z]+$/.test(n)?n.toLowerCase():n.replace(/^[\dA-Z]{2,}[^a-z]/,i),t)}return o}}const a=o(((e,t)=>(t?r[e.charCodeAt(0)]:n[e.charCodeAt(0)])+e.slice(1)));t.stringCamelCase=a;const s=o((e=>r[e.charCodeAt(0)]+e.slice(1)));t.stringPascalCase=s},21120:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"stringCamelCase",{enumerable:!0,get:function(){return n.stringCamelCase}}),Object.defineProperty(t,"stringLowerFirst",{enumerable:!0,get:function(){return i.stringLowerFirst}}),Object.defineProperty(t,"stringPascalCase",{enumerable:!0,get:function(){return n.stringPascalCase}}),Object.defineProperty(t,"stringShorten",{enumerable:!0,get:function(){return o.stringShorten}}),Object.defineProperty(t,"stringToHex",{enumerable:!0,get:function(){return a.stringToHex}}),Object.defineProperty(t,"stringToU8a",{enumerable:!0,get:function(){return s.stringToU8a}}),Object.defineProperty(t,"stringUpperFirst",{enumerable:!0,get:function(){return i.stringUpperFirst}});var n=r(27510),i=r(80210),o=r(5772),a=r(16785),s=r(18493)},80210:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringUpperFirst=t.stringLowerFirst=void 0;var n=r(27510);function i(e){return t=>t?e[t.charCodeAt(0)]+t.slice(1):""}const o=i(n.CC_TO_LO);t.stringLowerFirst=o;const a=i(n.CC_TO_UP);t.stringUpperFirst=a},5772:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringShorten=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return e.length<=2+2*t?e.toString():`${e.substring(0,t)}…${e.slice(-t)}`}},16785:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringToHex=function(e){return(0,n.u8aToHex)((0,i.stringToU8a)(e))};var n=r(4147),i=r(18493)},18493:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringToU8a=function(e){return e?n.encode(e.toString()):new Uint8Array};const n=new(r(43313).TextEncoder)},24986:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=function(e,t){return JSON.stringify(e,i,t)};var n=r(54782);function i(e,t){return(0,n.isBigInt)(t)?t.toString():t}},40813:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aCmp=function(e,t){const r=(0,n.u8aToU8a)(e),i=(0,n.u8aToU8a)(t);let o=0;for(;;){const e=o>=r.length,t=o>=i.length;if(e&&t)return 0;if(e)return-1;if(t)return 1;if(r[o]!==i[o])return r[o]>i[o]?1:-1;o++}};var n=r(82381)},20286:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aConcat=function(){const e=new Array(arguments.length);let t=0;for(let r=0;r<arguments.length;r++)e[r]=(0,n.u8aToU8a)(r<0||arguments.length<=r?void 0:arguments[r]),t+=e[r].length;return i(e,t)},t.u8aConcatStrict=i;var n=r(82381);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=0;if(!t)for(let r=0;r<e.length;r++)t+=e[r].length;const n=new Uint8Array(t);for(let t=0;t<e.length;t++)n.set(e[t],r),r+=e[t].length;return n}},53889:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aEmpty=function(e){const t=0|e.length;for(let r=0;r<t;r++)if(0|e[r])return!1;return!0}},29433:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aEq=function(e,t){const r=(0,n.u8aToU8a)(e),i=(0,n.u8aToU8a)(t);if(r.length===i.length){const e=new DataView(r.buffer,r.byteOffset),t=new DataView(i.buffer,i.byteOffset),n=r.length%4|0,o=r.length-n|0;for(let r=0;r<o;r+=4)if(e.getUint32(r)!==t.getUint32(r))return!1;for(let e=o;e<r.length;e++)if(r[e]!==i[e])return!1;return!0}return!1};var n=r(82381)},82260:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aFixLength=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n=Math.ceil(t/8);if(-1===t||e.length===n)return e;if(e.length>n)return e.subarray(0,n);const i=new Uint8Array(n);return i.set(e,r?0:n-e.length),i}},68638:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"U8A_WRAP_ETHEREUM",{enumerable:!0,get:function(){return g.U8A_WRAP_ETHEREUM}}),Object.defineProperty(t,"U8A_WRAP_POSTFIX",{enumerable:!0,get:function(){return g.U8A_WRAP_POSTFIX}}),Object.defineProperty(t,"U8A_WRAP_PREFIX",{enumerable:!0,get:function(){return g.U8A_WRAP_PREFIX}}),Object.defineProperty(t,"u8aCmp",{enumerable:!0,get:function(){return n.u8aCmp}}),Object.defineProperty(t,"u8aConcat",{enumerable:!0,get:function(){return i.u8aConcat}}),Object.defineProperty(t,"u8aConcatStrict",{enumerable:!0,get:function(){return i.u8aConcatStrict}}),Object.defineProperty(t,"u8aEmpty",{enumerable:!0,get:function(){return o.u8aEmpty}}),Object.defineProperty(t,"u8aEq",{enumerable:!0,get:function(){return a.u8aEq}}),Object.defineProperty(t,"u8aFixLength",{enumerable:!0,get:function(){return s.u8aFixLength}}),Object.defineProperty(t,"u8aIsWrapped",{enumerable:!0,get:function(){return g.u8aIsWrapped}}),Object.defineProperty(t,"u8aSorted",{enumerable:!0,get:function(){return c.u8aSorted}}),Object.defineProperty(t,"u8aToBigInt",{enumerable:!0,get:function(){return f.u8aToBigInt}}),Object.defineProperty(t,"u8aToBn",{enumerable:!0,get:function(){return l.u8aToBn}}),Object.defineProperty(t,"u8aToBuffer",{enumerable:!0,get:function(){return d.u8aToBuffer}}),Object.defineProperty(t,"u8aToFloat",{enumerable:!0,get:function(){return u.u8aToFloat}}),Object.defineProperty(t,"u8aToHex",{enumerable:!0,get:function(){return h.u8aToHex}}),Object.defineProperty(t,"u8aToNumber",{enumerable:!0,get:function(){return p.u8aToNumber}}),Object.defineProperty(t,"u8aToString",{enumerable:!0,get:function(){return b.u8aToString}}),Object.defineProperty(t,"u8aToU8a",{enumerable:!0,get:function(){return y.u8aToU8a}}),Object.defineProperty(t,"u8aUnwrapBytes",{enumerable:!0,get:function(){return g.u8aUnwrapBytes}}),Object.defineProperty(t,"u8aWrapBytes",{enumerable:!0,get:function(){return g.u8aWrapBytes}});var n=r(40813),i=r(20286),o=r(53889),a=r(29433),s=r(82260),u=r(54467),c=r(4639),f=r(92473),l=r(21714),d=r(44292),h=r(4147),p=r(660),b=r(96809),y=r(82381),g=r(47682)},4639:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aSorted=function(e){return e.sort(n.u8aCmp)};var n=r(40813)},92473:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToBigInt=function(e){let{isLe:t=!0,isNegative:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||!e.length)return(0,n.BigInt)(0);const s=t?e:e.reverse(),u=new DataView(s.buffer,s.byteOffset),c=s.length%2;let f=(0,n.BigInt)(0);if(r){for(let e=s.length-2;e>=c;e-=2)f=f*a+(0,n.BigInt)(65535^u.getUint16(e,!0));c&&(f=f*o+(0,n.BigInt)(255^u.getUint8(0)))}else{for(let e=s.length-2;e>=c;e-=2)f=f*a+(0,n.BigInt)(u.getUint16(e,!0));c&&(f=f*o+(0,n.BigInt)(u.getUint8(0)))}return r?f*-i._1n-i._1n:f};var n=r(85626),i=r(26494);const o=(0,n.BigInt)(256),a=(0,n.BigInt)(65536)},21714:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToBn=function(e){let{isLe:t=!0,isNegative:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=e.length;if(i<=6){if(r){let r=0;if(t)switch(i){case 0:return new n.BN(0);case 1:r=255^e[0];break;case 2:r=e[0]+(e[1]<<8)^65535;break;case 3:r=e[0]+(e[1]<<8)+(e[2]<<16)^16777215;break;case 4:r=e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295;break;case 5:r=(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295)+4294967296*(255^e[4]);break;default:r=(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295)+4294967296*(e[4]+(e[5]<<8)^65535)}else for(let t=0;t<i;t++)r=256*r+(255^e[t]);return i?new n.BN(-1*r-1):new n.BN(0)}if(!t){let t=0;for(let r=0;r<i;r++)t=256*t+e[r];return new n.BN(t)}switch(i){case 0:return new n.BN(0);case 1:return new n.BN(e[0]);case 2:return new n.BN(e[0]+(e[1]<<8));case 3:return new n.BN(e[0]+(e[1]<<8)+(e[2]<<16));case 4:return new n.BN(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]);case 5:return new n.BN(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*(e[3]+(e[4]<<8)));default:return new n.BN(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*(e[3]+(e[4]<<8)+(e[5]<<16)))}}return r?new n.BN(e,t?"le":"be").fromTwos(8*e.length):new n.BN(e,t?"le":"be")};var n=r(89693)},44292:(e,t,r)=>{"use strict";var n=r(48764).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToBuffer=function(e){return n.from(e||[])}},54467:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToFloat=function(e){let{bitLength:t=32,isLe:r=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(32!==t&&64!==t)throw new Error("Invalid bitLength provided, expected 32 or 64");if(e.length<t/8)throw new Error(`Invalid input buffer provided, expected at least ${t/8} bytes, found ${e.length}`);const n=new DataView(e.buffer,e.byteOffset);return 32===t?n.getFloat32(0,r):n.getFloat64(0,r)}},4147:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToHex=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;const r=arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?"":"0x";if(!e||!e.length)return r;if(t>0){const n=Math.ceil(t/8);if(e.length>n)return`${i(e.subarray(0,n/2),r)}…${i(e.subarray(e.length-n/2),"")}`}return i(e,r)};const r=new Array(256),n=new Array(65536);for(let e=0;e<256;e++)r[e]=e.toString(16).padStart(2,"0");for(let e=0;e<256;e++){const t=e<<8;for(let i=0;i<256;i++)n[t|i]=r[e]+r[i]}function i(e,t){const i=e.length%2|0,o=e.length-i|0;for(let r=0;r<o;r+=2)t+=n[e[r]<<8|e[r+1]];return i&&(t+=r[0|e[o]]),t}},660:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToNumber=function(e){let{isNegative:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=e.length;if(t){let t=0;switch(r){case 0:return 0;case 1:t=255^e[0];break;case 2:t=e[0]+(e[1]<<8)^65535;break;case 3:t=e[0]+(e[1]<<8)+(e[2]<<16)^16777215;break;case 4:t=e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295;break;case 5:t=(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295)+4294967296*(255^e[4]);break;case 6:t=(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295)+4294967296*(e[4]+(e[5]<<8)^65535);break;default:throw new Error("Value more than 48-bits cannot be reliably converted")}return-1*t-1}switch(r){case 0:return 0;case 1:return e[0];case 2:return e[0]+(e[1]<<8);case 3:return e[0]+(e[1]<<8)+(e[2]<<16);case 4:return e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3];case 5:return e[0]+(e[1]<<8)+(e[2]<<16)+16777216*(e[3]+(e[4]<<8));case 6:return e[0]+(e[1]<<8)+(e[2]<<16)+16777216*(e[3]+(e[4]<<8)+(e[5]<<16));default:throw new Error("Value more than 48-bits cannot be reliably converted")}}},96809:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToString=function(e){return e?n.decode(e):""};const n=new(r(12705).TextDecoder)("utf-8")},82381:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToU8a=function(e){return(0,a.isU8a)(e)?e:(0,o.isHex)(e)?(0,n.hexToU8a)(e):(0,i.isBuffer)(e)||Array.isArray(e)?new Uint8Array(e):(0,s.stringToU8a)(e)};var n=r(96435),i=r(25860),o=r(18955),a=r(10826),s=r(18493)},47682:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.U8A_WRAP_PREFIX=t.U8A_WRAP_POSTFIX=t.U8A_WRAP_ETHEREUM=void 0,t.u8aIsWrapped=f,t.u8aUnwrapBytes=function(e){const t=(0,o.u8aToU8a)(e);return f(t,!1)?t.subarray(s.length,t.length-u.length):t},t.u8aWrapBytes=function(e){const t=(0,o.u8aToU8a)(e);return f(t,!0)?t:(0,n.u8aConcatStrict)([s,t,u])};var n=r(20286),i=r(29433),o=r(82381);const a=(0,o.u8aToU8a)("Ethereum Signed Message:\n");t.U8A_WRAP_ETHEREUM=a;const s=(0,o.u8aToU8a)("<Bytes>");t.U8A_WRAP_PREFIX=s;const u=(0,o.u8aToU8a)("</Bytes>");t.U8A_WRAP_POSTFIX=u;const c=s.length+u.length;function f(e,t){return e.length>=c&&(0,i.u8aEq)(e.subarray(0,s.length),s)&&(0,i.u8aEq)(e.slice(-u.length),u)||t&&e.length>=a.length&&(0,i.u8aEq)(e.subarray(0,a.length),a)}},68839:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.detectPackage=function(e,t){let{name:r,path:i,type:o,version:f}=e,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!r.startsWith("@polkadot"))throw new Error(`Invalid package descriptor ${r}`);const d=function(e){const t=n.xglobal;return t.__polkadotjs||(t.__polkadotjs={}),t.__polkadotjs[e]||(t.__polkadotjs[e]=[]),t.__polkadotjs[e]}(r);if(d.push({path:u(i,t),type:o,version:f}),1!==d.length)c(`${r} has multiple versions, ensure that there is only one installed.`,d,s);else{const e=l.filter((e=>e&&e.version!==f));e.length&&c(`${r} requires direct dependencies exactly matching version ${f}.`,e,a)}};var n=r(355),i=r(61775);const o="Either remove and explicitly install matching versions or dedupe using your package manager.\nThe following conflicting packages were found:";function a(e,t){let{name:r}=t;return[e,r]}function s(e,t){let r,{path:n,type:i}=t;if(n&&n.length>=5){const e=n.indexOf("node_modules");r=-1===e?n:n.substring(e)}else r="<unknown>";return[`${`${i||""}`.padStart(3)} ${e}`,r]}function u(e,t){if(e)return e;if((0,i.isFunction)(t))try{return t()||""}catch(e){return""}return t||""}function c(e,t,r){console.warn(`${e}\n${o}\n${function(e,t){let r=0;for(let t=0;t<e.length;t++)r=Math.max(r,e[t].version.length);return e.map((e=>`\t${t(e.version.padEnd(r),e).join("\t")}`)).join("\n")}(t,r)}`)}},85626:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BigInt=void 0,Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return i.packageInfo}});var n=r(355),i=r(40416);const o="function"==typeof n.xglobal.BigInt&&"function"==typeof n.xglobal.BigInt.asIntN?n.xglobal.BigInt:()=>Number.NaN;t.BigInt=o},40416:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-bigint",path:"/",type:"cjs",version:"10.4.1"}},355:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exposeGlobal=function(e,t){void 0===i[e]&&(i[e]=t)},t.extractGlobal=function(e,t){return void 0===i[e]?t:i[e]},Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return n.packageInfo}}),t.xglobal=void 0;var n=r(88398);const i="undefined"!=typeof globalThis?globalThis:void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this");t.xglobal=i},88398:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-global",path:"/",type:"cjs",version:"10.4.1"}},12705:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextDecoder=void 0,Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return o.packageInfo}});var n=r(355),i=r(6787),o=r(20669);const a=(0,n.extractGlobal)("TextDecoder",i.TextDecoder);t.TextDecoder=a},6787:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728));Object.defineProperty(t,"__esModule",{value:!0}),t.TextDecoder=void 0;let a=function(){function e(t){(0,i.default)(this,e)}return(0,o.default)(e,[{key:"decode",value:function(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t}}]),e}();t.TextDecoder=a},20669:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-textdecoder",path:"/",type:"cjs",version:"10.4.1"}},43313:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextEncoder=void 0,Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return o.packageInfo}});var n=r(355),i=r(10520),o=r(72062);const a=(0,n.extractGlobal)("TextEncoder",i.TextEncoder);t.TextEncoder=a},10520:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728));Object.defineProperty(t,"__esModule",{value:!0}),t.TextEncoder=void 0;let a=function(){function e(){(0,i.default)(this,e)}return(0,o.default)(e,[{key:"encode",value:function(e){const t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}}]),e}();t.TextEncoder=a},72062:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-textencoder",path:"/",type:"cjs",version:"10.4.1"}},5592:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0});var i={typeDefinitions:!0,rpcDefinitions:!0,TypeDefInfo:!0,convertSiV0toV1:!0,packageInfo:!0,unwrapStorageType:!0};Object.defineProperty(t,"TypeDefInfo",{enumerable:!0,get:function(){return l.TypeDefInfo}}),Object.defineProperty(t,"convertSiV0toV1",{enumerable:!0,get:function(){return d.convertSiV0toV1}}),Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return h.packageInfo}}),Object.defineProperty(t,"rpcDefinitions",{enumerable:!0,get:function(){return a.default}}),t.typeDefinitions=void 0,Object.defineProperty(t,"unwrapStorageType",{enumerable:!0,get:function(){return p.unwrapStorageType}});var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=b(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}(r(2272));t.typeDefinitions=o;var a=n(r(73745)),s=r(67448);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var u=r(78774);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var c=r(88925);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var f=r(49890);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))}));var l=r(91812),d=r(73598),h=r(10686),p=r(98621);function b(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(b=function(e){return e?r:t})(e)}},67448:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BTreeMap",{enumerable:!0,get:function(){return n.BTreeMap}}),Object.defineProperty(t,"BTreeSet",{enumerable:!0,get:function(){return n.BTreeSet}}),Object.defineProperty(t,"CodecMap",{enumerable:!0,get:function(){return n.CodecMap}}),Object.defineProperty(t,"CodecSet",{enumerable:!0,get:function(){return n.CodecSet}}),Object.defineProperty(t,"Compact",{enumerable:!0,get:function(){return n.Compact}}),Object.defineProperty(t,"DoNotConstruct",{enumerable:!0,get:function(){return n.DoNotConstruct}}),Object.defineProperty(t,"Enum",{enumerable:!0,get:function(){return n.Enum}}),Object.defineProperty(t,"HashMap",{enumerable:!0,get:function(){return n.HashMap}}),Object.defineProperty(t,"Int",{enumerable:!0,get:function(){return n.Int}}),Object.defineProperty(t,"Json",{enumerable:!0,get:function(){return n.Json}}),Object.defineProperty(t,"Linkage",{enumerable:!0,get:function(){return n.Linkage}}),Object.defineProperty(t,"Map",{enumerable:!0,get:function(){return n.Map}}),Object.defineProperty(t,"Option",{enumerable:!0,get:function(){return n.Option}}),Object.defineProperty(t,"Range",{enumerable:!0,get:function(){return n.Range}}),Object.defineProperty(t,"RangeInclusive",{enumerable:!0,get:function(){return n.RangeInclusive}}),Object.defineProperty(t,"Raw",{enumerable:!0,get:function(){return n.Raw}}),Object.defineProperty(t,"Result",{enumerable:!0,get:function(){return n.Result}}),Object.defineProperty(t,"Set",{enumerable:!0,get:function(){return n.Set}}),Object.defineProperty(t,"Struct",{enumerable:!0,get:function(){return n.Struct}}),Object.defineProperty(t,"Tuple",{enumerable:!0,get:function(){return n.Tuple}}),Object.defineProperty(t,"U8aFixed",{enumerable:!0,get:function(){return n.U8aFixed}}),Object.defineProperty(t,"UInt",{enumerable:!0,get:function(){return n.UInt}}),Object.defineProperty(t,"Vec",{enumerable:!0,get:function(){return n.Vec}}),Object.defineProperty(t,"VecFixed",{enumerable:!0,get:function(){return n.VecFixed}}),Object.defineProperty(t,"WrapperKeepOpaque",{enumerable:!0,get:function(){return n.WrapperKeepOpaque}}),Object.defineProperty(t,"WrapperOpaque",{enumerable:!0,get:function(){return n.WrapperOpaque}});var n=r(74754)},88307:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createClass=function(e,t){return(0,n.createClassUnsafe)(e,t)};var n=r(91812)},80093:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createType=function(e,t){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];return(0,n.createTypeUnsafe)(e,t,i)};var n=r(91812)},78774:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(91812);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}));var i=r(88307);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=r(80093);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=r(1038);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var s=r(86974);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}))},1038:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lazyVariants=function(e,t,r,i){let{type:o}=t;const a={},s=e.getSiType(o).def.asVariant.variants;for(let e=0;e<s.length;e++)(0,n.lazyMethod)(a,s[e],i,r,e);return a};var n=r(57026)},86974:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(29399)),o=n(r(40426)),a=n(r(89728)),s=n(r(56690)),u=n(r(61655)),c=n(r(94993)),f=n(r(73808));function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,f.default)(e);if(t){var i=(0,f.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,c.default)(this,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.TypeRegistry=void 0;var d=r(74754),h=r(91812),p=r(57026),b=r(94814),y=r(98277),g=r(56750),m=S(r(88925)),v=S(r(2272)),w=r(24551),_=r(79977),x=r(42319),O=r(73598),k=r(1038);function P(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(P=function(e){return e?r:t})(e)}function S(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=P(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}const A=new Uint8Array(2),E=(0,p.logger)("registry");function M(e,t){return parseInt(e,10)-parseInt(t,10)}function j(e){return e.toString()}function T(e,t){const r=new Array(t.length);for(let n=0;n<t.length;n++)r[n]=e.getTypeDef(t[n].type).type;return r}function B(e){const t=Object.keys(e);for(let r=0;r<t.length;r++)delete e[t[r]]}function I(e){let{index:t}=e;return t.toString()}var N=(0,o.default)("chainProperties"),R=(0,o.default)("classes"),C=(0,o.default)("definitions"),U=(0,o.default)("firstCallIndex"),L=(0,o.default)("hasher"),D=(0,o.default)("knownTypes"),H=(0,o.default)("lookup"),F=(0,o.default)("metadata"),V=(0,o.default)("metadataVersion"),z=(0,o.default)("signedExtensions"),q=(0,o.default)("unknownTypes"),K=(0,o.default)("userExtensions"),W=(0,o.default)("knownDefaults"),G=(0,o.default)("knownDefinitions"),X=(0,o.default)("metadataCalls"),Z=(0,o.default)("metadataErrors"),J=(0,o.default)("metadataEvents"),Y=(0,o.default)("moduleMap"),Q=(0,o.default)("registerObject"),$=(0,o.default)("registerLookup");let ee=function(){function e(t){(0,s.default)(this,e),Object.defineProperty(this,N,{writable:!0,value:void 0}),Object.defineProperty(this,R,{writable:!0,value:new Map}),Object.defineProperty(this,C,{writable:!0,value:new Map}),Object.defineProperty(this,U,{writable:!0,value:null}),Object.defineProperty(this,L,{writable:!0,value:b.blake2AsU8a}),Object.defineProperty(this,D,{writable:!0,value:{}}),Object.defineProperty(this,H,{writable:!0,value:void 0}),Object.defineProperty(this,F,{writable:!0,value:void 0}),Object.defineProperty(this,V,{writable:!0,value:0}),Object.defineProperty(this,z,{writable:!0,value:y.fallbackExtensions}),Object.defineProperty(this,q,{writable:!0,value:new Map}),Object.defineProperty(this,K,{writable:!0,value:void 0}),Object.defineProperty(this,W,{writable:!0,value:void 0}),Object.defineProperty(this,G,{writable:!0,value:void 0}),Object.defineProperty(this,X,{writable:!0,value:{}}),Object.defineProperty(this,Z,{writable:!0,value:{}}),Object.defineProperty(this,J,{writable:!0,value:{}}),Object.defineProperty(this,Y,{writable:!0,value:{}}),Object.defineProperty(this,Q,{writable:!0,value:e=>{const t=Object.entries(e);for(let e=0;e<t.length;e++){const[r,n]=t[e];if((0,p.isFunction)(n))(0,i.default)(this,R)[R].set(r,n);else{const e=(0,p.isString)(n)?n:(0,p.stringify)(n);if(r===e)throw new Error(`Unable to register circular ${r} === ${e}`);(0,i.default)(this,R)[R].has(r)&&(0,i.default)(this,R)[R].delete(r),(0,i.default)(this,C)[C].set(r,e)}}}}),Object.defineProperty(this,$,{writable:!0,value:e=>{this.setLookup(e);let t="WeightV1";const r=this.get("SpWeightsWeightV2Weight");if(r){const e=new r(this);e.refTime&&e.proofSize&&(t="SpWeightsWeightV2Weight")}this.register({Weight:t})}}),(0,i.default)(this,W)[W]=(0,p.objectSpread)({Json:d.Json,Metadata:x.Metadata,PortableRegistry:O.PortableRegistry,Raw:d.Raw},m),(0,i.default)(this,G)[G]=v;const r=Object.values((0,i.default)(this,G)[G]);for(let e=0;e<r.length;e++)this.register(r[e].types);t&&(this.createdAtHash=this.createType("BlockHash",t))}return(0,a.default)(e,[{key:"chainDecimals",get:function(){var e;if(null!=(e=(0,i.default)(this,N)[N])&&e.tokenDecimals.isSome){const e=(0,i.default)(this,N)[N].tokenDecimals.unwrap();if(e.length)return e.map((e=>e.toNumber()))}return[12]}},{key:"chainSS58",get:function(){var e;return null!=(e=(0,i.default)(this,N)[N])&&e.ss58Format.isSome?(0,i.default)(this,N)[N].ss58Format.unwrap().toNumber():void 0}},{key:"chainTokens",get:function(){var e;if(null!=(e=(0,i.default)(this,N)[N])&&e.tokenSymbol.isSome){const e=(0,i.default)(this,N)[N].tokenSymbol.unwrap();if(e.length)return e.map(j)}return[p.formatBalance.getDefaults().unit]}},{key:"firstCallIndex",get:function(){return(0,i.default)(this,U)[U]||A}},{key:"isLookupType",value:function(e){return/Lookup\d+$/.test(e)}},{key:"createLookupType",value:function(e){return`Lookup${"number"==typeof e?e:e.toNumber()}`}},{key:"knownTypes",get:function(){return(0,i.default)(this,D)[D]}},{key:"lookup",get:function(){return(0,p.assertReturn)((0,i.default)(this,H)[H],"PortableRegistry has not been set on this registry")}},{key:"metadata",get:function(){return(0,p.assertReturn)((0,i.default)(this,F)[F],"Metadata has not been set on this registry")}},{key:"unknownTypes",get:function(){return[...(0,i.default)(this,q)[q].keys()]}},{key:"signedExtensions",get:function(){return(0,i.default)(this,z)[z]}},{key:"clearCache",value:function(){(0,i.default)(this,R)[R]=new Map}},{key:"createClass",value:function(e){return(0,h.createClassUnsafe)(this,e)}},{key:"createClassUnsafe",value:function(e){return(0,h.createClassUnsafe)(this,e)}},{key:"createType",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return(0,h.createTypeUnsafe)(this,e,r)}},{key:"createTypeUnsafe",value:function(e,t,r){return(0,h.createTypeUnsafe)(this,e,t,r)}},{key:"findMetaCall",value:function(e){const[t,r]=[e[0],e[1]];return(0,p.assertReturn)((0,i.default)(this,X)[X][`${t}`]&&(0,i.default)(this,X)[X][`${t}`][`${r}`],(()=>`findMetaCall: Unable to find Call with index [${t}, ${r}]/[${e.toString()}]`))}},{key:"findMetaError",value:function(e){const[t,r]=(0,p.isU8a)(e)?[e[0],e[1]]:[e.index.toNumber(),(0,p.isU8a)(e.error)?e.error[0]:e.error.toNumber()];return(0,p.assertReturn)((0,i.default)(this,Z)[Z][`${t}`]&&(0,i.default)(this,Z)[Z][`${t}`][`${r}`],(()=>`findMetaError: Unable to find Error with index [${t}, ${r}]/[${e.toString()}]`))}},{key:"findMetaEvent",value:function(e){const[t,r]=[e[0],e[1]];return(0,p.assertReturn)((0,i.default)(this,J)[J][`${t}`]&&(0,i.default)(this,J)[J][`${t}`][`${r}`],(()=>`findMetaEvent: Unable to find Event with index [${t}, ${r}]/[${e.toString()}]`))}},{key:"get",value:function(e,t,r){return this.getUnsafe(e,t,r)}},{key:"getUnsafe",value:function(e,t,r){let n=(0,i.default)(this,R)[R].get(e)||(0,i.default)(this,W)[W][e];if(!n){const o=(0,i.default)(this,C)[C].get(e);let c;o?c=(0,h.createClassUnsafe)(this,o):r?c=(0,h.constructTypeClass)(this,r):t&&(E.warn(`Unable to resolve type ${e}, it will fail on construction`),(0,i.default)(this,q)[q].set(e,!0),c=d.DoNotConstruct.with(e)),c&&(n=function(e){(0,u.default)(r,e);var t=l(r);function r(){return(0,s.default)(this,r),t.apply(this,arguments)}return(0,a.default)(r)}(c),(0,i.default)(this,R)[R].set(e,n),r&&(0,p.isNumber)(r.lookupIndex)&&(0,i.default)(this,R)[R].set(this.createLookupType(r.lookupIndex),n))}return n}},{key:"getChainProperties",value:function(){return(0,i.default)(this,N)[N]}},{key:"getClassName",value:function(e){const t=[];for(const[r,n]of Object.entries((0,i.default)(this,W)[W]))e===n&&t.push(r);for(const[r,n]of(0,i.default)(this,R)[R].entries())e===n&&t.push(r);return t.sort().reverse(),t.length?t[0]:void 0}},{key:"getDefinition",value:function(e){return(0,i.default)(this,C)[C].get(e)}},{key:"getModuleInstances",value:function(e,t){var r,n,o,a,s;return(null==(r=(0,i.default)(this,D)[D])||null==(n=r.typesBundle)||null==(o=n.spec)||null==(a=o[e.toString()])||null==(s=a.instances)?void 0:s[t])||(0,i.default)(this,Y)[Y][t]}},{key:"getOrThrow",value:function(e){const t=this.get(e);if(!t)throw new Error(`type ${e} not found`);return t}},{key:"getOrUnknown",value:function(e){return this.get(e,!0)}},{key:"getSignedExtensionExtra",value:function(){return(0,y.expandExtensionTypes)((0,i.default)(this,z)[z],"payload",(0,i.default)(this,K)[K])}},{key:"getSignedExtensionTypes",value:function(){return(0,y.expandExtensionTypes)((0,i.default)(this,z)[z],"extrinsic",(0,i.default)(this,K)[K])}},{key:"hasClass",value:function(e){return(0,i.default)(this,R)[R].has(e)||!!(0,i.default)(this,W)[W][e]}},{key:"hasDef",value:function(e){return(0,i.default)(this,C)[C].has(e)}},{key:"hasType",value:function(e){return!(0,i.default)(this,q)[q].get(e)&&(this.hasClass(e)||this.hasDef(e))}},{key:"hash",value:function(e){return this.createType("CodecHash",(0,i.default)(this,L)[L](e))}},{key:"register",value:function(e,t){if((0,p.isFunction)(e))(0,i.default)(this,R)[R].set(e.name,e);else if((0,p.isString)(e)){if(!(0,p.isFunction)(t))throw new Error(`Expected class definition passed to '${e}' registration`);if(e===t.toString())throw new Error(`Unable to register circular ${e} === ${e}`);(0,i.default)(this,R)[R].set(e,t)}else(0,i.default)(this,Q)[Q](e)}},{key:"setChainProperties",value:function(e){e&&((0,i.default)(this,N)[N]=e)}},{key:"setHasher",value:function(e){(0,i.default)(this,L)[L]=e||b.blake2AsU8a}},{key:"setKnownTypes",value:function(e){(0,i.default)(this,D)[D]=e}},{key:"setLookup",value:function(e){(0,i.default)(this,H)[H]=e,e.register()}},{key:"setMetadata",value:function(e,t,r){(0,i.default)(this,F)[F]=e.asLatest,(0,i.default)(this,V)[V]=e.version,(0,i.default)(this,U)[U]=null,(0,i.default)(this,$)[$]((0,i.default)(this,F)[F].lookup),function(e,t,r,n,i){let{lookup:o,pallets:a}=t;const s=a.filter(w.filterCallsSome);B(n),B(i);for(let t=0;t<s.length;t++){const{calls:a,index:u,name:c}=s[t],f=r>=12?u.toNumber():t,l=(0,p.stringCamelCase)(c),d=a.unwrap();(0,p.lazyMethod)(n,f,(()=>(0,k.lazyVariants)(o,d,I,(t=>(0,_.createCallFunction)(e,o,t,l,f)))));const{path:h}=e.lookup.getSiType(d.type),b=h.findIndex((e=>e.eq("pallet")));if(-1!==b){const e=(0,p.stringCamelCase)(h.slice(0,b).map(((e,t)=>0===t?e.replace(/^(frame|pallet)_/,""):e)).join(" "));i[e]?i[e].push(l):i[e]=[l]}}}(this,(0,i.default)(this,F)[F],(0,i.default)(this,V)[V],(0,i.default)(this,X)[X],(0,i.default)(this,Y)[Y]),function(e,t,r,n){let{lookup:i,pallets:o}=t;B(n);for(let e=0;e<o.length;e++){const{errors:t,index:a,name:s}=o[e];if(t.isSome){const o=(0,p.stringCamelCase)(s);(0,p.lazyMethod)(n,r>=12?a.toNumber():e,(()=>(0,k.lazyVariants)(i,t.unwrap(),I,(e=>{let{docs:t,fields:r,index:n,name:a}=e;return{args:T(i,r),docs:t.map(j),fields:r,index:n.toNumber(),method:a.toString(),name:a.toString(),section:o}}))))}}}(0,(0,i.default)(this,F)[F],(0,i.default)(this,V)[V],(0,i.default)(this,Z)[Z]),function(e,t,r,n){let{lookup:i,pallets:o}=t;const c=o.filter(w.filterEventsSome);B(n);for(let t=0;t<c.length;t++){const{events:o,index:f,name:d}=c[t];(0,p.lazyMethod)(n,r>=12?f.toNumber():t,(()=>(0,k.lazyVariants)(i,o.unwrap(),I,(t=>{const r=e.createType("EventMetadataLatest",(0,p.objectSpread)({},t,{args:T(i,t.fields)}));return function(e){(0,u.default)(i,e);var n=l(i);function i(e,o){return(0,s.default)(this,i),n.call(this,e,o,r,(0,p.stringCamelCase)(d),t.name.toString())}return(0,a.default)(i)}(g.GenericEventData)}))))}}(this,(0,i.default)(this,F)[F],(0,i.default)(this,V)[V],(0,i.default)(this,J)[J]);const[n]=Object.keys((0,i.default)(this,X)[X]).sort(M);if(n){const[e]=Object.keys((0,i.default)(this,X)[X][n]).sort(M);e&&((0,i.default)(this,U)[U]=new Uint8Array([parseInt(n,10),parseInt(e,10)]))}this.setSignedExtensions(t||((0,i.default)(this,F)[F].extrinsic.version.gt(p.BN_ZERO)?(0,i.default)(this,F)[F].extrinsic.signedExtensions.map((e=>{let{identifier:t}=e;return t.toString()})):y.fallbackExtensions),r),this.setChainProperties(function(e,t){const r=e.getChainProperties(),n=(0,w.decorateConstants)(e,t.asLatest,t.version),i=n.system&&(n.system.sS58Prefix||n.system.ss58Prefix);if(!i)return r;const{tokenDecimals:o,tokenSymbol:a}=r||{};return e.createTypeUnsafe("ChainProperties",[{ss58Format:i,tokenDecimals:o,tokenSymbol:a}])}(this,e))}},{key:"setSignedExtensions",value:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y.fallbackExtensions,t=arguments.length>1?arguments[1]:void 0;(0,i.default)(this,z)[z]=e,(0,i.default)(this,K)[K]=t;const r=(0,y.findUnknownExtensions)((0,i.default)(this,z)[z],(0,i.default)(this,K)[K]);r.length&&E.warn(`Unknown signed extensions ${r.join(", ")} found, treating them as no-effect`)}}]),e}();t.TypeRegistry=ee},38237:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(68434),i=r(42959),o=[n.packageInfo,i.packageInfo];t.default=o},87192:(e,t,r)=>{"use strict";var n=r(64836),i=r(57026),o=n(r(38237)),a=r(10686);(0,i.detectPackage)(a.packageInfo,null,o.default)},13553:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(41588)),s=n(r(61655)),u=n(r(94993)),c=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.GenericEthereumAccountId=void 0;var f=r(74754),l=r(57026),d=r(94814);function h(e){return(0,l.isU8a)(e)||Array.isArray(e)?(0,l.u8aToU8a)(e):(0,l.isHex)(e)||(0,d.isEthereumAddress)(e.toString())?(0,l.hexToU8a)(e.toString()):(0,l.isString)(e)?(0,l.u8aToU8a)(e):e}let p=function(e){(0,s.default)(f,e);var t,r,n=(t=f,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,c.default)(t);if(r){var i=(0,c.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,u.default)(this,e)});function f(e){(0,i.default)(this,f);let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint8Array;return n.call(this,e,h(t),160)}return(0,o.default)(f,[{key:"eq",value:function(e){return(0,a.default)((0,c.default)(f.prototype),"eq",this).call(this,h(e))}},{key:"toHuman",value:function(){return this.toJSON()}},{key:"toJSON",value:function(){return this.toString()}},{key:"toPrimitive",value:function(){return this.toJSON()}},{key:"toString",value:function(){return(0,d.ethereumEncode)(this)}},{key:"toRawType",value:function(){return"AccountId"}}]),f}(f.U8aFixed);t.GenericEthereumAccountId=p},51907:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.GenericEthereumLookupSource=t.ACCOUNT_ID_PREFIX=void 0;var c=r(74754),f=r(57026),l=r(94814),d=r(39882),h=r(13553);const p=new Uint8Array([255]);function b(e,t){return t instanceof y?t.inner:t instanceof h.GenericEthereumAccountId||t instanceof d.GenericAccountIndex?t:(0,f.isU8a)(t)||Array.isArray(t)||(0,f.isHex)(t)?function(e,t){if(20===t.length)return e.createTypeUnsafe("EthereumAccountId",[t]);if(255===t[0])return e.createTypeUnsafe("EthereumAccountId",[t.subarray(1)]);const[r,n]=d.GenericAccountIndex.readLength(t);return e.createTypeUnsafe("AccountIndex",[(0,f.u8aToBn)(t.subarray(r,r+n))])}(e,(0,f.u8aToU8a)(t)):(0,f.isBn)(t)||(0,f.isNumber)(t)||(0,f.isBigInt)(t)?e.createTypeUnsafe("AccountIndex",[t]):function(e,t){const r=(0,l.decodeAddress)(t);return 20===r.length?e.createTypeUnsafe("EthereumAccountId",[r]):e.createTypeUnsafe("AccountIndex",[(0,f.u8aToBn)(r)])}(e,t)}t.ACCOUNT_ID_PREFIX=p;let y=function(e){(0,a.default)(c,e);var t,r,n=(t=c,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function c(e){(0,i.default)(this,c);let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint8Array;return n.call(this,e,b(e,t))}return(0,o.default)(c,[{key:"encodedLength",get:function(){const e=this._rawLength;return e+(e>1?1:0)}},{key:"_rawLength",get:function(){return this.inner instanceof d.GenericAccountIndex?d.GenericAccountIndex.calcLength(this.inner):this.inner.encodedLength}},{key:"toHex",value:function(){return(0,f.u8aToHex)(this.toU8a())}},{key:"toRawType",value:function(){return"Address"}},{key:"toU8a",value:function(e){const t=this.inner.toU8a().subarray(0,this._rawLength);return e?t:(0,f.u8aConcat)(this.inner instanceof d.GenericAccountIndex?d.GenericAccountIndex.writeLength(t):p,t)}}]),c}(c.AbstractBase);t.GenericEthereumLookupSource=y},24280:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"GenericEthereumAccountId",{enumerable:!0,get:function(){return n.GenericEthereumAccountId}}),Object.defineProperty(t,"GenericEthereumLookupSource",{enumerable:!0,get:function(){return i.GenericEthereumLookupSource}});var n=r(13553),i=r(51907)},89028:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(29399)),o=n(r(40426)),a=n(r(56690)),s=n(r(89728)),u=n(r(66115)),c=n(r(41588)),f=n(r(61655)),l=n(r(94993)),d=n(r(73808));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,d.default)(e);if(t){var i=(0,d.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,l.default)(this,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.GenericExtrinsic=void 0,Object.defineProperty(t,"LATEST_EXTRINSIC_VERSION",{enumerable:!0,get:function(){return y.EXTRINSIC_VERSION}});var p=r(74754),b=r(57026),y=r(60213),g=r(96420);const m=["ExtrinsicUnknown","ExtrinsicUnknown","ExtrinsicUnknown","ExtrinsicUnknown","ExtrinsicV4"];function v(e,t,r){if(t instanceof x)return t.unwrap();const n=(r&g.BIT_SIGNED)===g.BIT_SIGNED,i=m[r&g.UNMASK_VERSION]||m[0];return e.createTypeUnsafe(i,[t,{isSigned:n,version:r}])}let w=function(e){(0,f.default)(r,e);var t=h(r);function r(e,n,i){var o;(0,a.default)(this,r),o=t.call(this,e,n,i);const s=Object.keys(e.getSignedExtensionTypes()),c=e=>o.inner.signature[e];for(let e=0;e<s.length;e++)(0,b.objectProperty)((0,u.default)(o),s[e],c);return o}return(0,s.default)(r,[{key:"args",get:function(){return this.method.args}},{key:"argsDef",get:function(){return this.method.argsDef}},{key:"callIndex",get:function(){return this.method.callIndex}},{key:"data",get:function(){return this.method.data}},{key:"era",get:function(){return this.inner.signature.era}},{key:"encodedLength",get:function(){return this.toU8a().length}},{key:"isSigned",get:function(){return this.inner.signature.isSigned}},{key:"length",get:function(){return this.toU8a(!0).length}},{key:"meta",get:function(){return this.method.meta}},{key:"method",get:function(){return this.inner.method}},{key:"nonce",get:function(){return this.inner.signature.nonce}},{key:"signature",get:function(){return this.inner.signature.signature}},{key:"signer",get:function(){return this.inner.signature.signer}},{key:"tip",get:function(){return this.inner.signature.tip}},{key:"type",get:function(){return this.inner.version}},{key:"inner",get:function(){return this.unwrap()}},{key:"version",get:function(){return this.type|(this.isSigned?g.BIT_SIGNED:g.BIT_UNSIGNED)}},{key:"is",value:function(e){return this.method.is(e)}},{key:"unwrap",value:function(){return(0,c.default)((0,d.default)(r.prototype),"unwrap",this).call(this)}}]),r}(p.AbstractBase);var _=(0,o.default)("hashCache");let x=function(e){(0,f.default)(r,e);var t=h(r);function r(e,n){var i;(0,a.default)(this,r);let{version:o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i=t.call(this,e,function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g.DEFAULT_VERSION;return(0,b.isU8a)(t)||Array.isArray(t)||(0,b.isHex)(t)?function(e,t,r){if(!t.length)return v(e,new Uint8Array,r);const[n,i]=(0,b.compactFromU8a)(t),o=n+i.toNumber();if(o>t.length)throw new Error(`Extrinsic: length less than remainder, expected at least ${o}, found ${t.length}`);const a=t.subarray(n,o);return v(e,a.subarray(1),a[0])}(e,(0,b.u8aToU8a)(t),r):t instanceof e.createClassUnsafe("Call")?v(e,{method:t},r):v(e,t,r)}(e,n,o)),Object.defineProperty((0,u.default)(i),_,{writable:!0,value:void 0}),i}return(0,s.default)(r,[{key:"hash",get:function(){return(0,i.default)(this,_)[_]||((0,i.default)(this,_)[_]=(0,c.default)((0,d.default)(r.prototype),"hash",this)),(0,i.default)(this,_)[_]}},{key:"addSignature",value:function(e,t,r){return this.inner.addSignature(e,t,r),(0,i.default)(this,_)[_]=void 0,this}},{key:"inspect",value:function(){const e=(0,b.u8aConcat)(...this.toU8aInner());return{inner:this.isSigned?this.inner.inspect().inner:this.inner.method.inspect().inner,outer:[(0,b.compactToU8a)(e.length),new Uint8Array([this.version])]}}},{key:"sign",value:function(e,t){return this.inner.sign(e,t),(0,i.default)(this,_)[_]=void 0,this}},{key:"signFake",value:function(e,t){return this.inner.signFake(e,t),(0,i.default)(this,_)[_]=void 0,this}},{key:"toHex",value:function(e){return(0,b.u8aToHex)(this.toU8a(e))}},{key:"toHuman",value:function(e){return(0,b.objectSpread)({},{isSigned:this.isSigned,method:this.method.toHuman(e)},this.isSigned?{era:this.era.toHuman(e),nonce:this.nonce.toHuman(e),signature:this.signature.toHex(),signer:this.signer.toHuman(e),tip:this.tip.toHuman(e)}:null)}},{key:"toJSON",value:function(){return this.toHex()}},{key:"toRawType",value:function(){return"Extrinsic"}},{key:"toU8a",value:function(e){const t=(0,b.u8aConcat)(...this.toU8aInner());return e?t:(0,b.compactAddLength)(t)}},{key:"toU8aInner",value:function(){return[new Uint8Array([this.version]),this.inner.toU8a()]}}]),r}(w);x.LATEST_EXTRINSIC_VERSION=y.EXTRINSIC_VERSION,t.GenericExtrinsic=x},63663:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(89728)),o=n(r(56690)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,u.default)(e);if(t){var i=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.MortalEra=t.ImmortalEra=t.GenericExtrinsicEra=void 0;var f=r(74754),l=r(57026),d=r(96420);function h(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Uint8Array;if((0,l.isU8a)(e))return e.length&&0!==e[0]?new Uint8Array([1,e[0],e[1]]):new Uint8Array([0]);if(!e)return new Uint8Array([0]);if(e instanceof y)return h(e.toU8a());if((0,l.isHex)(e))return h((0,l.hexToU8a)(e));if((0,l.isObject)(e)){const t=Object.entries(e).map((e=>{let[t,r]=e;return[t.toLowerCase(),r]})),r=t.find((e=>{let[t]=e;return"mortalera"===t.toLowerCase()})),n=t.find((e=>{let[t]=e;return"immortalera"===t.toLowerCase()}));return r?{MortalEra:r[1]}:n?{ImmortalEra:n[1]}:{MortalEra:e}}throw new Error("Invalid data passed to Era")}let p=function(e){(0,a.default)(r,e);var t=c(r);function r(e,n){return(0,o.default)(this,r),t.call(this,e,d.IMMORTAL_ERA)}return(0,i.default)(r)}(f.Raw);t.ImmortalEra=p;let b=function(e){(0,a.default)(r,e);var t=c(r);function r(e,n){return(0,o.default)(this,r),t.call(this,e,{period:f.U64,phase:f.U64},function(e,t){if((0,l.isU8a)(t)||(0,l.isHex)(t)||Array.isArray(t))return function(e,t){if(0===t.length)return[new f.U64(e),new f.U64(e)];const r=(0,l.u8aToBn)(t.subarray(0,1)).toNumber()+((0,l.u8aToBn)(t.subarray(1,2)).toNumber()<<8),n=2<<r%16,i=(r>>4)*Math.max(n>>12,1);if(n<4||i>=n)throw new Error("Invalid data passed to Mortal era");return[new f.U64(e,n),new f.U64(e,i)]}(e,(0,l.u8aToU8a)(t));if(!t)return[new f.U64(e),new f.U64(e)];if((0,l.isObject)(t))return function(e,t){const{current:r,period:n}=t;let i=Math.pow(2,Math.ceil(Math.log2(n)));i=Math.min(Math.max(i,4),65536);const o=r%i,a=Math.max(i>>12,1),s=o/a*a;return[new f.U64(e,i),new f.U64(e,s)]}(e,t);throw new Error("Invalid data passed to Mortal era")}(e,n))}return(0,i.default)(r,[{key:"encodedLength",get:function(){return 2}},{key:"period",get:function(){return this[0]}},{key:"phase",get:function(){return this[1]}},{key:"toHuman",value:function(){return{period:(0,l.formatNumber)(this.period),phase:(0,l.formatNumber)(this.phase)}}},{key:"toJSON",value:function(){return this.toHex()}},{key:"toU8a",value:function(e){const t=this.period.toNumber(),r=Math.min(15,Math.max(1,function(e){const t=e.toString(2);let r=0;for(;"0"===t[t.length-1-r];)r++;return r}(t)-1))+(this.phase.toNumber()/Math.max(t>>12,1)<<4);return new Uint8Array([255&r,r>>8])}},{key:"birth",value:function(e){const t=this.phase.toNumber(),r=this.period.toNumber();return~~((Math.max((0,l.bnToBn)(e).toNumber(),t)-t)/r)*r+t}},{key:"death",value:function(e){return this.birth(e)+this.period.toNumber()}}]),r}(f.Tuple);t.MortalEra=b;let y=function(e){(0,a.default)(r,e);var t=c(r);function r(e,n){return(0,o.default)(this,r),t.call(this,e,{ImmortalEra:p,MortalEra:b},h(n))}return(0,i.default)(r,[{key:"encodedLength",get:function(){return this.isImmortalEra?this.asImmortalEra.encodedLength:this.asMortalEra.encodedLength}},{key:"asImmortalEra",get:function(){if(!this.isImmortalEra)throw new Error(`Cannot convert '${this.type}' via asImmortalEra`);return this.inner}},{key:"asMortalEra",get:function(){if(!this.isMortalEra)throw new Error(`Cannot convert '${this.type}' via asMortalEra`);return this.inner}},{key:"isImmortalEra",get:function(){return 0===this.index}},{key:"isMortalEra",get:function(){return this.index>0}},{key:"toU8a",value:function(e){return this.isMortalEra?this.asMortalEra.toU8a(e):this.asImmortalEra.toU8a(e)}}]),r}(f.Enum);t.GenericExtrinsicEra=y},85989:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(41588)),s=n(r(61655)),u=n(r(94993)),c=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.GenericExtrinsicPayload=void 0;var f=r(74754),l=r(57026),d=r(96420);const h=["ExtrinsicPayloadUnknown","ExtrinsicPayloadUnknown","ExtrinsicPayloadUnknown","ExtrinsicPayloadUnknown","ExtrinsicPayloadV4"];function p(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d.DEFAULT_VERSION;return t instanceof b?t.unwrap():e.createTypeUnsafe(h[r]||h[0],[t,{version:r}])}let b=function(e){(0,s.default)(f,e);var t,r,n=(t=f,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,c.default)(t);if(r){var i=(0,c.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,u.default)(this,e)});function f(e,t){(0,i.default)(this,f);let{version:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.call(this,e,p(e,t,r))}return(0,o.default)(f,[{key:"blockHash",get:function(){return this.inner.blockHash}},{key:"era",get:function(){return this.inner.era}},{key:"genesisHash",get:function(){return this.inner.genesisHash||this.registry.createTypeUnsafe("Hash",[])}},{key:"method",get:function(){return this.inner.method}},{key:"nonce",get:function(){return this.inner.nonce}},{key:"specVersion",get:function(){return this.inner.specVersion||this.registry.createTypeUnsafe("u32",[])}},{key:"tip",get:function(){return this.inner.tip||this.registry.createTypeUnsafe("Compact<Balance>",[])}},{key:"transactionVersion",get:function(){return this.inner.transactionVersion||this.registry.createTypeUnsafe("u32",[])}},{key:"eq",value:function(e){return this.inner.eq(e)}},{key:"sign",value:function(e){const t=this.inner.sign(e);return{signature:(0,l.u8aToHex)(t)}}},{key:"toHuman",value:function(e){return this.inner.toHuman(e)}},{key:"toJSON",value:function(){return this.toHex()}},{key:"toRawType",value:function(){return"ExtrinsicPayload"}},{key:"toString",value:function(){return this.toHex()}},{key:"toU8a",value:function(e){return(0,a.default)((0,c.default)(f.prototype),"toU8a",this).call(this,!!e&&{method:!0})}}]),f}(f.AbstractBase);t.GenericExtrinsicPayload=b},34221:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(89728)),o=n(r(56690)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.GenericExtrinsicPayloadUnknown=void 0;let c=function(e){(0,a.default)(c,e);var t,r,n=(t=c,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function c(e,t){(0,o.default)(this,c);let{version:r=0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};throw n.call(this,e,{}),new Error(`Unsupported extrinsic payload version ${r}`)}return(0,i.default)(c)}(r(74754).Struct);t.GenericExtrinsicPayloadUnknown=c},4577:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(89728)),o=n(r(56690)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.GenericExtrinsicUnknown=void 0;var c=r(74754),f=r(96420);let l=function(e){(0,a.default)(c,e);var t,r,n=(t=c,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function c(e,t){(0,o.default)(this,c);let{isSigned:r=!1,version:i=0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};throw n.call(this,e,{}),new Error(`Unsupported ${r?"":"un"}signed extrinsic version ${i&f.UNMASK_VERSION}`)}return(0,i.default)(c)}(c.Struct);t.GenericExtrinsicUnknown=l},44896:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(66115)),s=n(r(61655)),u=n(r(94993)),c=n(r(73808)),f=n(r(29399)),l=n(r(40426));Object.defineProperty(t,"__esModule",{value:!0}),t.GenericSignerPayload=void 0;var d=r(74754),h=r(57026);const p={address:"Address",blockHash:"Hash",blockNumber:"BlockNumber",era:"ExtrinsicEra",genesisHash:"Hash",method:"Call",nonce:"Compact<Index>",runtimeVersion:"RuntimeVersion",signedExtensions:"Vec<Text>",tip:"Compact<Balance>",version:"u8"};var b=(0,l.default)("extraTypes");let y=function(e){(0,s.default)(l,e);var t,r,n=(t=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,c.default)(t);if(r){var i=(0,c.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,u.default)(this,e)});function l(e,t){var r;(0,i.default)(this,l);const o=(0,h.objectSpread)({},e.getSignedExtensionTypes(),e.getSignedExtensionExtra());r=n.call(this,e,(0,h.objectSpread)({},o,p),t),Object.defineProperty((0,a.default)(r),b,{writable:!0,value:void 0}),(0,f.default)((0,a.default)(r),b)[b]={};const s=e=>r.get(e);for(const[e,t]of Object.entries(o))p[e]||((0,f.default)((0,a.default)(r),b)[b][e]=t),(0,h.objectProperty)((0,a.default)(r),e,s);return r}return(0,o.default)(l,[{key:"address",get:function(){return this.getT("address")}},{key:"blockHash",get:function(){return this.getT("blockHash")}},{key:"blockNumber",get:function(){return this.getT("blockNumber")}},{key:"era",get:function(){return this.getT("era")}},{key:"genesisHash",get:function(){return this.getT("genesisHash")}},{key:"method",get:function(){return this.getT("method")}},{key:"nonce",get:function(){return this.getT("nonce")}},{key:"runtimeVersion",get:function(){return this.getT("runtimeVersion")}},{key:"signedExtensions",get:function(){return this.getT("signedExtensions")}},{key:"tip",get:function(){return this.getT("tip")}},{key:"version",get:function(){return this.getT("version")}},{key:"toPayload",value:function(){const e={},t=Object.keys((0,f.default)(this,b)[b]);for(let r=0;r<t.length;r++){const n=t[r],i=this.get(n);i instanceof d.Option&&!i.isSome||(e[n]=i.toHex())}return(0,h.objectSpread)(e,{address:this.address.toString(),blockHash:this.blockHash.toHex(),blockNumber:this.blockNumber.toHex(),era:this.era.toHex(),genesisHash:this.genesisHash.toHex(),method:this.method.toHex(),nonce:this.nonce.toHex(),signedExtensions:this.signedExtensions.map((e=>e.toString())),specVersion:this.runtimeVersion.specVersion.toHex(),tip:this.tip.toHex(),transactionVersion:this.runtimeVersion.transactionVersion.toHex(),version:this.version.toNumber()})}},{key:"toRaw",value:function(){const e=this.toPayload(),t=(0,h.u8aToHex)(this.registry.createTypeUnsafe("ExtrinsicPayload",[e,{version:e.version}]).toU8a({method:!0}));return{address:e.address,data:t,type:"payload"}}}]),l}(d.Struct);t.GenericSignerPayload=y},96420:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UNMASK_VERSION=t.IMMORTAL_ERA=t.EMPTY_U8A=t.DEFAULT_VERSION=t.BIT_UNSIGNED=t.BIT_SIGNED=void 0,t.BIT_SIGNED=128,t.BIT_UNSIGNED=0;const r=new Uint8Array;t.EMPTY_U8A=r,t.DEFAULT_VERSION=4;const n=new Uint8Array([0]);t.IMMORTAL_ERA=n,t.UNMASK_VERSION=127},10963:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={GenericExtrinsic:!0,GenericExtrinsicEra:!0,GenericMortalEra:!0,GenericImmortalEra:!0,GenericExtrinsicPayload:!0,GenericExtrinsicPayloadUnknown:!0,GenericExtrinsicUnknown:!0,GenericSignerPayload:!0};Object.defineProperty(t,"GenericExtrinsic",{enumerable:!0,get:function(){return i.GenericExtrinsic}}),Object.defineProperty(t,"GenericExtrinsicEra",{enumerable:!0,get:function(){return o.GenericExtrinsicEra}}),Object.defineProperty(t,"GenericExtrinsicPayload",{enumerable:!0,get:function(){return a.GenericExtrinsicPayload}}),Object.defineProperty(t,"GenericExtrinsicPayloadUnknown",{enumerable:!0,get:function(){return s.GenericExtrinsicPayloadUnknown}}),Object.defineProperty(t,"GenericExtrinsicUnknown",{enumerable:!0,get:function(){return u.GenericExtrinsicUnknown}}),Object.defineProperty(t,"GenericImmortalEra",{enumerable:!0,get:function(){return o.ImmortalEra}}),Object.defineProperty(t,"GenericMortalEra",{enumerable:!0,get:function(){return o.MortalEra}}),Object.defineProperty(t,"GenericSignerPayload",{enumerable:!0,get:function(){return c.GenericSignerPayload}});var i=r(89028),o=r(63663),a=r(85989),s=r(34221),u=r(4577),c=r(44896),f=r(39143);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))}))},17083:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.emptyCheck=void 0,t.emptyCheck={extrinsic:{},payload:{}}},98277:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.allExtensions=void 0,t.expandExtensionTypes=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.map((e=>r[e]||u[e])).filter((e=>!!e)).reduce(((e,r)=>(0,n.objectSpread)(e,r[t])),{})},t.fallbackExtensions=void 0,t.findUnknownExtensions=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=[...Object.keys(u),...Object.keys(t)];return e.filter((e=>!r.includes(e)))};var n=r(57026),i=r(18262),o=r(31248),a=r(33561),s=r(28954);const u=(0,n.objectSpread)({},s.substrate,i.polkadot,o.shell,a.statemint);t.allExtensions=u,t.fallbackExtensions=["CheckVersion","CheckGenesis","CheckEra","CheckNonce","CheckWeight","ChargeTransactionPayment","CheckBlockGasLimit"]},18262:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.polkadot=void 0;var n=r(17083);const i={LimitParathreadCommits:n.emptyCheck,OnlyStakingAndClaims:n.emptyCheck,PrevalidateAttests:n.emptyCheck,RestrictFunctionality:n.emptyCheck,TransactionCallFilter:n.emptyCheck,ValidateDoubleVoteReports:n.emptyCheck};t.polkadot=i},31248:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shell=void 0;const n={DisallowSigned:r(17083).emptyCheck};t.shell=n},33561:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.statemint=void 0,t.statemint={ChargeAssetTxPayment:{extrinsic:{tip:"Compact<Balance>",assetId:"Option<AssetId>"},payload:{}}}},28954:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.substrate=void 0;var n=r(17083);const i={extrinsic:{era:"ExtrinsicEra"},payload:{blockHash:"Hash"}},o={ChargeTransactionPayment:{extrinsic:{tip:"Compact<Balance>"},payload:{}},CheckBlockGasLimit:n.emptyCheck,CheckEra:i,CheckGenesis:{extrinsic:{},payload:{genesisHash:"Hash"}},CheckMortality:i,CheckNonZeroSender:n.emptyCheck,CheckNonce:{extrinsic:{nonce:"Compact<Index>"},payload:{}},CheckSpecVersion:{extrinsic:{},payload:{specVersion:"u32"}},CheckTxVersion:{extrinsic:{},payload:{transactionVersion:"u32"}},CheckVersion:{extrinsic:{},payload:{specVersion:"u32"}},CheckWeight:n.emptyCheck,LockStakingStatus:n.emptyCheck,ValidateEquivocationReport:n.emptyCheck};t.substrate=o},41922:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sign=function(e,t,r,n){const i=r.length>256?e.hash(r):r;return t.sign(i,n)}},60213:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.GenericExtrinsicV4=t.EXTRINSIC_VERSION=void 0;var c=r(74754),f=r(57026);t.EXTRINSIC_VERSION=4;let l=function(e){(0,a.default)(c,e);var t,r,n=(t=c,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function c(e,t){(0,i.default)(this,c);let{isSigned:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.call(this,e,{signature:"ExtrinsicSignatureV4",method:"Call"},c.decodeExtrinsic(e,t,r))}return(0,o.default)(c,[{key:"encodedLength",get:function(){return this.toU8a().length}},{key:"method",get:function(){return this.getT("method")}},{key:"signature",get:function(){return this.getT("signature")}},{key:"version",get:function(){return 4}},{key:"addSignature",value:function(e,t,r){return this.signature.addSignature(e,t,r),this}},{key:"sign",value:function(e,t){return this.signature.sign(this.method,e,t),this}},{key:"signFake",value:function(e,t){return this.signature.signFake(this.method,e,t),this}}],[{key:"decodeExtrinsic",value:function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t instanceof c)return t;if(t instanceof e.createClassUnsafe("Call"))return{method:t};if((0,f.isU8a)(t)){const n=e.createTypeUnsafe("ExtrinsicSignatureV4",[t,{isSigned:r}]);return{method:e.createTypeUnsafe("Call",[t.subarray(n.encodedLength)]),signature:n}}return t||{}}}]),c}(c.Struct);t.GenericExtrinsicV4=l},52982:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(66115)),s=n(r(41588)),u=n(r(61655)),c=n(r(94993)),f=n(r(73808)),l=n(r(29399)),d=n(r(40426));Object.defineProperty(t,"__esModule",{value:!0}),t.GenericExtrinsicPayloadV4=void 0;var h=r(74754),p=r(57026),b=r(41922),y=(0,d.default)("signOptions");let g=function(e){(0,u.default)(d,e);var t,r,n=(t=d,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,f.default)(t);if(r){var i=(0,f.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,c.default)(this,e)});function d(e,t){var r;return(0,i.default)(this,d),r=n.call(this,e,(0,p.objectSpread)({method:"Bytes"},e.getSignedExtensionTypes(),e.getSignedExtensionExtra()),t),Object.defineProperty((0,a.default)(r),y,{writable:!0,value:void 0}),(0,l.default)((0,a.default)(r),y)[y]={withType:e.createTypeUnsafe("ExtrinsicSignature",[])instanceof h.Enum},r}return(0,o.default)(d,[{key:"inspect",value:function(){return(0,s.default)((0,f.default)(d.prototype),"inspect",this).call(this,{method:!0})}},{key:"blockHash",get:function(){return this.getT("blockHash")}},{key:"era",get:function(){return this.getT("era")}},{key:"genesisHash",get:function(){return this.getT("genesisHash")}},{key:"method",get:function(){return this.getT("method")}},{key:"nonce",get:function(){return this.getT("nonce")}},{key:"specVersion",get:function(){return this.getT("specVersion")}},{key:"tip",get:function(){return this.getT("tip")}},{key:"transactionVersion",get:function(){return this.getT("transactionVersion")}},{key:"assetId",get:function(){return this.getT("assetId")}},{key:"sign",value:function(e){return(0,b.sign)(this.registry,e,this.toU8a({method:!0}),(0,l.default)(this,y)[y])}}]),d}(h.Struct);t.GenericExtrinsicPayloadV4=g},64194:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(66115)),s=n(r(41588)),u=n(r(61655)),c=n(r(94993)),f=n(r(73808)),l=n(r(29399)),d=n(r(40426));Object.defineProperty(t,"__esModule",{value:!0}),t.GenericExtrinsicSignatureV4=void 0;var h=r(74754),p=r(57026),b=r(96420),y=r(52982);const g=new Uint8Array(256).fill(1);function m(e,t){return e.createTypeUnsafe("Address",[(0,p.isU8a)(t)?(0,p.u8aToHex)(t):t])}var v=(0,d.default)("signKeys");let w=function(e){(0,u.default)(d,e);var t,r,n=(t=d,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,f.default)(t);if(r){var i=(0,f.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,c.default)(this,e)});function d(e,t){var r;(0,i.default)(this,d);let{isSigned:o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const s=e.getSignedExtensionTypes();return r=n.call(this,e,(0,p.objectSpread)({signer:"Address",signature:"ExtrinsicSignature"},s),d.decodeExtrinsicSignature(t,o)),Object.defineProperty((0,a.default)(r),v,{writable:!0,value:void 0}),(0,l.default)((0,a.default)(r),v)[v]=Object.keys(s),(0,p.objectProperties)((0,a.default)(r),(0,l.default)((0,a.default)(r),v)[v],(e=>r.get(e))),r}return(0,o.default)(d,[{key:"encodedLength",get:function(){return this.isSigned?(0,s.default)((0,f.default)(d.prototype),"encodedLength",this):0}},{key:"isSigned",get:function(){return!this.signature.isEmpty}},{key:"era",get:function(){return this.getT("era")}},{key:"nonce",get:function(){return this.getT("nonce")}},{key:"signature",get:function(){return this.multiSignature.value||this.multiSignature}},{key:"multiSignature",get:function(){return this.getT("signature")}},{key:"signer",get:function(){return this.getT("signer")}},{key:"tip",get:function(){return this.getT("tip")}},{key:"_injectSignature",value:function(e,t,r){for(let e=0;e<(0,l.default)(this,v)[v].length;e++){const t=(0,l.default)(this,v)[v][e],n=r.get(t);(0,p.isUndefined)(n)||this.set(t,n)}return this.set("signer",e),this.set("signature",t),this}},{key:"addSignature",value:function(e,t,r){return this._injectSignature(m(this.registry,e),this.registry.createTypeUnsafe("ExtrinsicSignature",[t]),new y.GenericExtrinsicPayloadV4(this.registry,r))}},{key:"createPayload",value:function(e,t){const{era:r,runtimeVersion:{specVersion:n,transactionVersion:i}}=t;return new y.GenericExtrinsicPayloadV4(this.registry,(0,p.objectSpread)({},t,{era:r||b.IMMORTAL_ERA,method:e.toHex(),specVersion:n,transactionVersion:i}))}},{key:"sign",value:function(e,t,r){if(!t||!t.addressRaw)throw new Error(`Expected a valid keypair for signing, found ${(0,p.stringify)(t)}`);const n=this.createPayload(e,r);return this._injectSignature(m(this.registry,t.addressRaw),this.registry.createTypeUnsafe("ExtrinsicSignature",[n.sign(t)]),n)}},{key:"signFake",value:function(e,t,r){if(!t)throw new Error(`Expected a valid address for signing, found ${(0,p.stringify)(t)}`);const n=this.createPayload(e,r);return this._injectSignature(m(this.registry,t),this.registry.createTypeUnsafe("ExtrinsicSignature",[g]),n)}},{key:"toU8a",value:function(e){return this.isSigned?(0,s.default)((0,f.default)(d.prototype),"toU8a",this).call(this,e):b.EMPTY_U8A}}],[{key:"decodeExtrinsicSignature",value:function(e){return e&&(e instanceof d||arguments.length>1&&void 0!==arguments[1]&&arguments[1])?e:b.EMPTY_U8A}}]),d}(h.Struct);t.GenericExtrinsicSignatureV4=w},39143:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"GenericExtrinsicPayloadV4",{enumerable:!0,get:function(){return i.GenericExtrinsicPayloadV4}}),Object.defineProperty(t,"GenericExtrinsicSignatureV4",{enumerable:!0,get:function(){return o.GenericExtrinsicSignatureV4}}),Object.defineProperty(t,"GenericExtrinsicV4",{enumerable:!0,get:function(){return n.GenericExtrinsicV4}});var n=r(60213),i=r(52982),o=r(64194)},32534:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(41588)),s=n(r(61655)),u=n(r(94993)),c=n(r(73808));function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,c.default)(e);if(t){var i=(0,c.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,u.default)(this,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.GenericAccountId33=t.GenericAccountId=void 0;var l=r(74754),d=r(57026),h=r(94814);function p(e){if((0,d.isU8a)(e)||Array.isArray(e))return(0,d.u8aToU8a)(e);if(!e)return new Uint8Array;if((0,d.isHex)(e))return(0,d.hexToU8a)(e);if((0,d.isString)(e))return(0,h.decodeAddress)(e.toString());throw new Error("Unknown type passed to AccountId constructor, found typeof "+typeof e)}let b=function(e){(0,s.default)(r,e);var t=f(r);function r(e){(0,i.default)(this,r);let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:264;const o=p(arguments.length>2?arguments[2]:void 0);if(8*o.length<n&&o.some((e=>e)))throw new Error(`Invalid AccountId provided, expected ${n>>3} bytes, found ${o.length}`);return t.call(this,e,o,n)}return(0,o.default)(r,[{key:"eq",value:function(e){return(0,a.default)((0,c.default)(r.prototype),"eq",this).call(this,p(e))}},{key:"toHuman",value:function(){return this.toJSON()}},{key:"toJSON",value:function(){return this.toString()}},{key:"toPrimitive",value:function(){return this.toJSON()}},{key:"toString",value:function(){return(0,h.encodeAddress)(this,this.registry.chainSS58)}},{key:"toRawType",value:function(){return"AccountId"}}]),r}(l.U8aFixed),y=function(e){(0,s.default)(r,e);var t=f(r);function r(e,n){return(0,i.default)(this,r),t.call(this,e,256,n)}return(0,o.default)(r)}(b);t.GenericAccountId=y;let g=function(e){(0,s.default)(r,e);var t=f(r);function r(e,n){return(0,i.default)(this,r),t.call(this,e,264,n)}return(0,o.default)(r)}(b);t.GenericAccountId33=g},39882:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(41588)),s=n(r(61655)),u=n(r(94993)),c=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.GenericAccountIndex=void 0;var f=r(74754),l=r(57026),d=r(94814);const h=new l.BN(239),p=new l.BN(1).shln(16),b=new l.BN(1).shln(32);function y(e){return e instanceof g?e.toBn():(0,l.isBn)(e)||(0,l.isNumber)(e)||(0,l.isHex)(e)||(0,l.isU8a)(e)||(0,l.isBigInt)(e)?e:y((0,d.decodeAddress)(e))}let g=function(e){(0,s.default)(f,e);var t,r,n=(t=f,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,c.default)(t);if(r){var i=(0,c.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,u.default)(this,e)});function f(e){(0,i.default)(this,f);let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new l.BN(0);return n.call(this,e,y(t))}return(0,o.default)(f,[{key:"eq",value:function(e){return(0,l.isBn)(e)||(0,l.isNumber)(e)?(0,a.default)((0,c.default)(f.prototype),"eq",this).call(this,e):(0,a.default)((0,c.default)(f.prototype),"eq",this).call(this,this.registry.createTypeUnsafe("AccountIndex",[e]))}},{key:"toHuman",value:function(){return this.toJSON()}},{key:"toJSON",value:function(){return this.toString()}},{key:"toPrimitive",value:function(){return this.toJSON()}},{key:"toString",value:function(){const e=f.calcLength(this);return(0,d.encodeAddress)(this.toU8a().subarray(0,e),this.registry.chainSS58)}},{key:"toRawType",value:function(){return"AccountIndex"}}],[{key:"calcLength",value:function(e){const t=(0,l.bnToBn)(e);return t.lte(h)?1:t.lt(p)?2:t.lt(b)?4:8}},{key:"readLength",value:function(e){const t=e[0];return 252===t?[1,2]:253===t?[1,4]:254===t?[1,8]:[0,1]}},{key:"writeLength",value:function(e){switch(e.length){case 2:return new Uint8Array([252]);case 4:return new Uint8Array([253]);case 8:return new Uint8Array([254]);default:return new Uint8Array([])}}}]),f}(f.u32);t.GenericAccountIndex=g},42858:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.GenericBlock=void 0;let c=function(e){(0,a.default)(c,e);var t,r,n=(t=c,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function c(e,t){return(0,i.default)(this,c),n.call(this,e,{header:"Header",extrinsics:"Vec<Extrinsic>"},t)}return(0,o.default)(c,[{key:"contentHash",get:function(){return this.registry.hash(this.toU8a())}},{key:"extrinsics",get:function(){return this.getT("extrinsics")}},{key:"hash",get:function(){return this.header.hash}},{key:"header",get:function(){return this.getT("header")}}]),c}(r(74754).Struct);t.GenericBlock=c},48300:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,u.default)(e);if(t){var i=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.GenericCallIndex=t.GenericCall=void 0;var f=r(74754),l=r(57026);function d(e,t){return t.fields.reduce(((t,r,n)=>{let{name:i,type:o}=r;return t[i.unwrapOr(`param${n}`).toString()]=e.createLookupType(o),t}),{})}let h=function(e){(0,a.default)(r,e);var t=c(r);function r(e,n){return(0,i.default)(this,r),t.call(this,e,n,16)}return(0,o.default)(r,[{key:"toPrimitive",value:function(){return this.toHex()}}]),r}(f.U8aFixed);t.GenericCallIndex=h;let p=function(e){(0,a.default)(r,e);var t=c(r);function r(e,n,o){var a;(0,i.default)(this,r);const s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint8Array,r=arguments.length>2?arguments[2]:void 0;if((0,l.isU8a)(t)||(0,l.isHex)(t))return function(e,t,r){const n=e.firstCallIndex.slice();n.set(t.subarray(0,2),0);const i=r||e.findMetaCall(n).meta;return{args:t.subarray(2),argsDef:d(e,i),callIndex:n,meta:i}}(e,(0,l.u8aToU8a)(t),r);if((0,l.isObject)(t)&&t.callIndex&&t.args)return function(e,t,r){const{args:n,callIndex:i}=t,o=i instanceof h?i.toU8a():i,a=r||e.findMetaCall(o).meta;return{args:n,argsDef:d(e,a),callIndex:i,meta:a}}(e,t,r);throw new Error(`Call: Cannot decode value '${t}' of type ${typeof t}`)}(e,n,o);try{a=t.call(this,e,{callIndex:h,args:f.Struct.with(s.argsDef)},s)}catch(t){let r="unknown.unknown";try{const t=e.findMetaCall(s.callIndex);r=`${t.section}.${t.method}`}catch(e){}throw new Error(`Call: failed decoding ${r}:: ${t.message}`)}return a._meta=s.meta,a}return(0,o.default)(r,[{key:"args",get:function(){return[...this.getT("args").values()]}},{key:"argsDef",get:function(){return d(this.registry,this.meta)}},{key:"argsEntries",get:function(){return[...this.getT("args").entries()]}},{key:"callIndex",get:function(){return this.getT("callIndex").toU8a()}},{key:"data",get:function(){return this.getT("args").toU8a()}},{key:"meta",get:function(){return this._meta}},{key:"method",get:function(){return this.registry.findMetaCall(this.callIndex).method}},{key:"section",get:function(){return this.registry.findMetaCall(this.callIndex).section}},{key:"is",value:function(e){return e.callIndex[0]===this.callIndex[0]&&e.callIndex[1]===this.callIndex[1]}},{key:"toHuman",value:function(e){var t,r;let n;try{n=this.registry.findMetaCall(this.callIndex)}catch(e){}return(0,l.objectSpread)({args:this.argsEntries.reduce(((t,r)=>{let[n,i]=r;return(0,l.objectSpread)(t,{[n]:i.toHuman(e)})}),{}),method:null==(t=n)?void 0:t.method,section:null==(r=n)?void 0:r.section},e&&n?{docs:n.meta.docs.map((e=>e.toString()))}:null)}},{key:"toRawType",value:function(){return"Call"}}]),r}(f.Struct);t.GenericCall=p},37028:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.GenericChainProperties=void 0;var c=r(74754),f=r(57026);function l(e,t,r){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return r&&(0,f.isFunction)(r.unwrapOrDefault)?r:e.createTypeUnsafe(t,[n?(0,f.isNull)(r)||(0,f.isUndefined)(r)?null:Array.isArray(r)?r:[r]:r])}let d=function(e){(0,a.default)(c,e);var t,r,n=(t=c,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function c(e,t){return(0,i.default)(this,c),n.call(this,e,function(e,t){return(t&&(0,f.isFunction)(t.entries)?[...t.entries()]:Object.entries(t||{})).reduce(((t,r)=>{let[n,i]=r;return t[n]=function(e,t,r){return"ss58Format"===t?l(e,"Option<u32>",r,!1):"tokenDecimals"===t?l(e,"Option<Vec<u32>>",r):"tokenSymbol"===t?l(e,"Option<Vec<Text>>",r):r}(e,n,i),t}),{ss58Format:e.createTypeUnsafe("Option<u32>",[]),tokenDecimals:e.createTypeUnsafe("Option<Vec<u32>>",[]),tokenSymbol:e.createTypeUnsafe("Option<Vec<Text>>",[])})}(e,t))}return(0,o.default)(c,[{key:"ss58Format",get:function(){return this.getT("ss58Format")}},{key:"tokenDecimals",get:function(){return this.getT("tokenDecimals")}},{key:"tokenSymbol",get:function(){return this.getT("tokenSymbol")}}]),c}(c.Json);t.GenericChainProperties=d},61027:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.GenericConsensusEngineId=t.CID_POW=t.CID_GRPA=t.CID_BABE=t.CID_AURA=void 0;var c=r(74754),f=r(57026);const l=(0,f.stringToU8a)("aura");t.CID_AURA=l;const d=(0,f.stringToU8a)("BABE");t.CID_BABE=d;const h=(0,f.stringToU8a)("FRNK");t.CID_GRPA=h;const p=(0,f.stringToU8a)("pow_");t.CID_POW=p;let b=function(e){(0,a.default)(c,e);var t,r,n=(t=c,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function c(e,t){return(0,i.default)(this,c),n.call(this,e,(0,f.isNumber)(t)?(0,f.bnToU8a)(t,{isLe:!1}):t,32)}return(0,o.default)(c,[{key:"isAura",get:function(){return this.eq(l)}},{key:"isBabe",get:function(){return this.eq(d)}},{key:"isGrandpa",get:function(){return this.eq(h)}},{key:"isPow",get:function(){return this.eq(p)}},{key:"extractAuthor",value:function(e,t){if(null!=t&&t.length){if(this.isAura)return function(e,t,r){return r[e.createTypeUnsafe("RawAuraPreDigest",[t.toU8a(!0)]).slotNumber.mod(new f.BN(r.length)).toNumber()]}(this.registry,e,t);if(this.isBabe)return function(e,t,r){return r[e.createTypeUnsafe("RawBabePreDigestCompat",[t.toU8a(!0)]).value.toNumber()]}(this.registry,e,t)}if(this.isPow||20===e.length)return function(e,t){return e.createTypeUnsafe("AccountId",[t])}(this.registry,e)}},{key:"toHuman",value:function(){return this.toString()}},{key:"toRawType",value:function(){return"ConsensusEngineId"}},{key:"toString",value:function(){return this.isAscii?(0,f.u8aToString)(this):(0,f.u8aToHex)(this)}}]),c}(c.U8aFixed);t.GenericConsensusEngineId=b},56750:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(66115)),s=n(r(41588)),u=n(r(61655)),c=n(r(94993)),f=n(r(73808)),l=n(r(29399)),d=n(r(40426));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,f.default)(e);if(t){var i=(0,f.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,c.default)(this,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.GenericEventData=t.GenericEvent=void 0;var p=r(74754),b=r(57026),y=(0,d.default)("meta"),g=(0,d.default)("method"),m=(0,d.default)("names"),v=(0,d.default)("section"),w=(0,d.default)("typeDef");let _=function(e){(0,u.default)(r,e);var t=h(r);function r(e,n,o){var s;(0,i.default)(this,r);let u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"<unknown>",c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"<unknown>";const f=(null==o?void 0:o.fields)||[];s=t.call(this,e,f.map((t=>{let{type:r}=t;return e.createLookupType(r)})),n),Object.defineProperty((0,a.default)(s),y,{writable:!0,value:void 0}),Object.defineProperty((0,a.default)(s),g,{writable:!0,value:void 0}),Object.defineProperty((0,a.default)(s),m,{writable:!0,value:null}),Object.defineProperty((0,a.default)(s),v,{writable:!0,value:void 0}),Object.defineProperty((0,a.default)(s),w,{writable:!0,value:void 0}),(0,l.default)((0,a.default)(s),y)[y]=o,(0,l.default)((0,a.default)(s),g)[g]=c,(0,l.default)((0,a.default)(s),v)[v]=u,(0,l.default)((0,a.default)(s),w)[w]=f.map((t=>{let{type:r}=t;return e.lookup.getTypeDef(r)}));const d=f.map((t=>{let{name:r}=t;return e.lookup.sanitizeField(r)[0]})).filter((e=>!!e));return d.length===f.length&&((0,l.default)((0,a.default)(s),m)[m]=d,(0,b.objectProperties)((0,a.default)(s),d,((e,t)=>s[t]))),s}return(0,o.default)(r,[{key:"meta",get:function(){return(0,l.default)(this,y)[y]}},{key:"method",get:function(){return(0,l.default)(this,g)[g]}},{key:"names",get:function(){return(0,l.default)(this,m)[m]}},{key:"section",get:function(){return(0,l.default)(this,v)[v]}},{key:"typeDef",get:function(){return(0,l.default)(this,w)[w]}},{key:"toHuman",value:function(e){if(null!==(0,l.default)(this,m)[m]){const t={};for(let r=0;r<(0,l.default)(this,m)[m].length;r++)t[(0,l.default)(this,m)[m][r]]=this[r].toHuman(e);return t}return(0,s.default)((0,f.default)(r.prototype),"toHuman",this).call(this,e)}}]),r}(p.Tuple);t.GenericEventData=_;let x=function(e){(0,u.default)(r,e);var t=h(r);function r(e,n){(0,i.default)(this,r);const{DataType:o,value:a}=function(e,t){if(!t||!t.length)return{DataType:p.Null};const r=t.subarray(0,2);return{DataType:e.findMetaEvent(r),value:{data:t.subarray(2),index:r}}}(e,n);return t.call(this,e,{index:"EventId",data:o},a)}return(0,o.default)(r,[{key:"data",get:function(){return this.getT("data")}},{key:"index",get:function(){return this.getT("index")}},{key:"meta",get:function(){return this.data.meta}},{key:"method",get:function(){return this.data.method}},{key:"section",get:function(){return this.data.section}},{key:"typeDef",get:function(){return this.data.typeDef}},{key:"toHuman",value:function(e){return(0,b.objectSpread)({method:this.method,section:this.section},e?{docs:this.meta.docs.map((e=>e.toString()))}:null,(0,s.default)((0,f.default)(r.prototype),"toHuman",this).call(this,e))}}]),r}(p.Struct);t.GenericEvent=x},90989:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.GenericLookupSource=t.ACCOUNT_ID_PREFIX=void 0;var c=r(74754),f=r(57026),l=r(94814),d=r(32534),h=r(39882);const p=new Uint8Array([255]);function b(e,t){return t instanceof y?t.inner:t instanceof d.GenericAccountId||t instanceof h.GenericAccountIndex?t:(0,f.isBn)(t)||(0,f.isNumber)(t)||(0,f.isBigInt)(t)?e.createTypeUnsafe("AccountIndex",[t]):Array.isArray(t)||(0,f.isHex)(t)||(0,f.isU8a)(t)?function(e,t){if(32===t.length)return e.createTypeUnsafe("AccountId",[t]);if(255===t[0])return e.createTypeUnsafe("AccountId",[t.subarray(1)]);const[r,n]=h.GenericAccountIndex.readLength(t);return e.createTypeUnsafe("AccountIndex",[(0,f.u8aToBn)(t.subarray(r,r+n))])}(e,(0,f.u8aToU8a)(t)):function(e,t){const r=(0,l.decodeAddress)(t);return 32===r.length?e.createTypeUnsafe("AccountId",[r]):e.createTypeUnsafe("AccountIndex",[(0,f.u8aToBn)(r)])}(e,t)}t.ACCOUNT_ID_PREFIX=p;let y=function(e){(0,a.default)(c,e);var t,r,n=(t=c,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function c(e){(0,i.default)(this,c);let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint8Array;return n.call(this,e,b(e,t))}return(0,o.default)(c,[{key:"encodedLength",get:function(){const e=this._rawLength;return e+(e>1?1:0)}},{key:"_rawLength",get:function(){return this.inner instanceof h.GenericAccountIndex?h.GenericAccountIndex.calcLength(this.inner):this.inner.encodedLength}},{key:"inspect",value:function(){const e=this.inner.toU8a().subarray(0,this._rawLength);return{outer:[new Uint8Array(this.inner instanceof h.GenericAccountIndex?h.GenericAccountIndex.writeLength(e):p),e]}}},{key:"toHex",value:function(){return(0,f.u8aToHex)(this.toU8a())}},{key:"toRawType",value:function(){return"Address"}},{key:"toU8a",value:function(e){const t=this.inner.toU8a().subarray(0,this._rawLength);return e?t:(0,f.u8aConcat)(this.inner instanceof h.GenericAccountIndex?h.GenericAccountIndex.writeLength(t):p,t)}}]),c}(c.AbstractBase);t.GenericLookupSource=y},56583:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.GenericMultiAddress=void 0;var c=r(74754),f=r(57026),l=r(94814),d=r(32534),h=r(39882);function p(e,t){return[0,32].includes(t.length)?{Id:t}:20===t.length?{Address20:t}:t.length<=8?{Index:e.createTypeUnsafe("AccountIndex",[t]).toNumber()}:t}function b(e,t){return t instanceof d.GenericAccountId?{Id:t}:(0,f.isU8a)(t)?p(e,t):t instanceof y?t:t instanceof h.GenericAccountIndex||(0,f.isBn)(t)||(0,f.isNumber)(t)?{Index:(0,f.isNumber)(t)?t:t.toNumber()}:(0,f.isString)(t)?p(e,(0,l.decodeAddress)(t.toString())):t}let y=function(e){(0,a.default)(c,e);var t,r,n=(t=c,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function c(e,t){return(0,i.default)(this,c),n.call(this,e,{Id:"AccountId",Index:"Compact<AccountIndex>",Raw:"Bytes",Address32:"H256",Address20:"H160"},b(e,t))}return(0,o.default)(c,[{key:"inspect",value:function(){const{inner:e,outer:t=[]}=this.inner.inspect();return{inner:e,outer:[new Uint8Array([this.index]),...t]}}},{key:"toString",value:function(){return this.value.toString()}}]),c}(c.Enum);t.GenericMultiAddress=y},55510:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(66115)),s=n(r(61655)),u=n(r(94993)),c=n(r(73808)),f=n(r(29399)),l=n(r(40426));Object.defineProperty(t,"__esModule",{value:!0}),t.GenericVote=void 0;var d=r(74754),h=r(57026);const p=128,b=0,y=0;function g(e){return e?new Uint8Array([p|y]):new Uint8Array([b])}var m=(0,l.default)("aye"),v=(0,l.default)("conviction");let w=function(e){(0,s.default)(l,e);var t,r,n=(t=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,c.default)(t);if(r){var i=(0,c.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,u.default)(this,e)});function l(e,t){var r;(0,i.default)(this,l);const o=function(e,t){return(0,h.isU8a)(t)?function(e){return e.length?e.subarray(0,1):new Uint8Array([b])}(t):(0,h.isUndefined)(t)||t instanceof Boolean||(0,h.isBoolean)(t)?g(new d.Bool(e,t).isTrue):(0,h.isNumber)(t)?g(t<0):function(e,t){return new Uint8Array([(new d.Bool(e,t.aye).isTrue?p:b)|e.createTypeUnsafe("Conviction",[t.conviction||y]).index])}(e,t)}(e,t);return r=n.call(this,e,o,8),Object.defineProperty((0,a.default)(r),m,{writable:!0,value:void 0}),Object.defineProperty((0,a.default)(r),v,{writable:!0,value:void 0}),(0,f.default)((0,a.default)(r),m)[m]=(o[0]&p)===p,(0,f.default)((0,a.default)(r),v)[v]=r.registry.createTypeUnsafe("Conviction",[127&o[0]]),r}return(0,o.default)(l,[{key:"conviction",get:function(){return(0,f.default)(this,v)[v]}},{key:"isAye",get:function(){return(0,f.default)(this,m)[m]}},{key:"isNay",get:function(){return!this.isAye}},{key:"toHuman",value:function(e){return{conviction:this.conviction.toHuman(e),vote:this.isAye?"Aye":"Nay"}}},{key:"toPrimitive",value:function(){return{aye:this.isAye,conviction:this.conviction.toPrimitive()}}},{key:"toRawType",value:function(){return"Vote"}}]),l}(d.U8aFixed);t.GenericVote=w},51432:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={GenericAccountId:!0,GenericAccountId32:!0,GenericAccountId33:!0,GenericAccountIndex:!0,GenericBlock:!0,GenericCall:!0,GenericChainProperties:!0,GenericConsensusEngineId:!0,GenericEvent:!0,GenericEventData:!0,GenericLookupSource:!0,GenericMultiAddress:!0,GenericAddress:!0,GenericVote:!0};Object.defineProperty(t,"GenericAccountId",{enumerable:!0,get:function(){return o.GenericAccountId}}),Object.defineProperty(t,"GenericAccountId32",{enumerable:!0,get:function(){return o.GenericAccountId}}),Object.defineProperty(t,"GenericAccountId33",{enumerable:!0,get:function(){return o.GenericAccountId33}}),Object.defineProperty(t,"GenericAccountIndex",{enumerable:!0,get:function(){return a.GenericAccountIndex}}),Object.defineProperty(t,"GenericAddress",{enumerable:!0,get:function(){return h.GenericMultiAddress}}),Object.defineProperty(t,"GenericBlock",{enumerable:!0,get:function(){return s.GenericBlock}}),Object.defineProperty(t,"GenericCall",{enumerable:!0,get:function(){return u.GenericCall}}),Object.defineProperty(t,"GenericChainProperties",{enumerable:!0,get:function(){return c.GenericChainProperties}}),Object.defineProperty(t,"GenericConsensusEngineId",{enumerable:!0,get:function(){return f.GenericConsensusEngineId}}),Object.defineProperty(t,"GenericEvent",{enumerable:!0,get:function(){return l.GenericEvent}}),Object.defineProperty(t,"GenericEventData",{enumerable:!0,get:function(){return l.GenericEventData}}),Object.defineProperty(t,"GenericLookupSource",{enumerable:!0,get:function(){return d.GenericLookupSource}}),Object.defineProperty(t,"GenericMultiAddress",{enumerable:!0,get:function(){return h.GenericMultiAddress}}),Object.defineProperty(t,"GenericVote",{enumerable:!0,get:function(){return p.GenericVote}});var i=r(24280);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=r(32534),a=r(39882),s=r(42858),u=r(48300),c=r(37028),f=r(61027),l=r(56750),d=r(90989),h=r(56583),p=r(55510)},26700:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(87192);var n=r(5592);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}))},88925:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(10963);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}));var i=r(51432);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=r(62347);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}))},41122:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAliasTypes=function(e,t){var r;let{knownTypes:o}=e;return(0,n.objectSpread)({},i[t],null==(r=o.typesAlias)?void 0:r[t])};var n=r(57026);const i={assets:{Approval:"AssetApproval",ApprovalKey:"AssetApprovalKey",Balance:"TAssetBalance",DestroyWitness:"AssetDestroyWitness"},babe:{EquivocationProof:"BabeEquivocationProof"},balances:{Status:"BalanceStatus"},beefy:{AuthorityId:"BeefyId"},contracts:{StorageKey:"ContractStorageKey"},electionProviderMultiPhase:{Phase:"ElectionPhase"},ethereum:{Block:"EthBlock",Header:"EthHeader",Receipt:"EthReceipt",Transaction:"EthTransaction",TransactionStatus:"EthTransactionStatus"},evm:{Account:"EvmAccount",Log:"EvmLog",Vicinity:"EvmVicinity"},grandpa:{Equivocation:"GrandpaEquivocation",EquivocationProof:"GrandpaEquivocationProof"},identity:{Judgement:"IdentityJudgement"},inclusion:{ValidatorIndex:"ParaValidatorIndex"},paraDisputes:{ValidatorIndex:"ParaValidatorIndex"},paraInclusion:{ValidatorIndex:"ParaValidatorIndex"},paraScheduler:{ValidatorIndex:"ParaValidatorIndex"},paraShared:{ValidatorIndex:"ParaValidatorIndex"},parachains:{Id:"ParaId"},parasDisputes:{ValidatorIndex:"ParaValidatorIndex"},parasInclusion:{ValidatorIndex:"ParaValidatorIndex"},parasScheduler:{ValidatorIndex:"ParaValidatorIndex"},parasShared:{ValidatorIndex:"ParaValidatorIndex"},proposeParachain:{Proposal:"ParachainProposal"},proxy:{Announcement:"ProxyAnnouncement"},scheduler:{ValidatorIndex:"ParaValidatorIndex"},shared:{ValidatorIndex:"ParaValidatorIndex"},society:{Judgement:"SocietyJudgement",Vote:"SocietyVote"},staking:{Compact:"CompactAssignments"},treasury:{Proposal:"TreasuryProposal"},xcm:{AssetId:"XcmAssetId"},xcmPallet:{AssetId:"XcmAssetId"}}},56008:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{AssetApprovalKey:{owner:"AccountId",delegate:"AccountId"},AssetApproval:{amount:"TAssetBalance",deposit:"TAssetDepositBalance"},AssetBalance:{balance:"TAssetBalance",isFrozen:"bool",isSufficient:"bool"},AssetDestroyWitness:{accounts:"Compact<u32>",sufficients:"Compact<u32>",approvals:"Compact<u32>"},AssetDetails:{owner:"AccountId",issuer:"AccountId",admin:"AccountId",freezer:"AccountId",supply:"TAssetBalance",deposit:"TAssetDepositBalance",minBalance:"TAssetBalance",isSufficient:"bool",accounts:"u32",sufficients:"u32",approvals:"u32",isFrozen:"bool"},AssetMetadata:{deposit:"TAssetDepositBalance",name:"Vec<u8>",symbol:"Vec<u8>",decimals:"u8",isFrozen:"bool"},TAssetBalance:"u64",TAssetDepositBalance:"BalanceOf"}}},14044:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{BlockAttestations:{receipt:"CandidateReceipt",valid:"Vec<AccountId>",invalid:"Vec<AccountId>"},IncludedBlocks:{actualNumber:"BlockNumber",session:"SessionIndex",randomSeed:"H256",activeParachains:"Vec<ParaId>",paraBlocks:"Vec<Hash>"},MoreAttestations:{}}}},42821:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={rpc:{},runtime:r(34044).runtime,types:{RawAuraPreDigest:{slotNumber:"u64"}}};t.default=n},34044:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.runtime=void 0,t.runtime={AuraApi:[{methods:{authorities:{description:"Return the current set of authorities.",params:[],type:"Vec<AuthorityId>"},slot_duration:{description:"Returns the slot duration for Aura.",params:[],type:"SlotDuration"}},version:1}]}},5735:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={rpc:r(77707).rpc,types:{ExtrinsicOrHash:{_enum:{Hash:"Hash",Extrinsic:"Bytes"}},ExtrinsicStatus:{_enum:{Future:"Null",Ready:"Null",Broadcast:"Vec<Text>",InBlock:"Hash",Retracted:"Hash",FinalityTimeout:"Hash",Finalized:"Hash",Usurped:"Hash",Dropped:"Null",Invalid:"Null"}}}};t.default=n},77707:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rpc=void 0,t.rpc={hasKey:{description:"Returns true if the keystore has private keys for the given public key and key type.",params:[{name:"publicKey",type:"Bytes"},{name:"keyType",type:"Text"}],type:"bool"},hasSessionKeys:{description:"Returns true if the keystore has private keys for the given session public keys.",params:[{name:"sessionKeys",type:"Bytes"}],type:"bool"},insertKey:{description:"Insert a key into the keystore.",params:[{name:"keyType",type:"Text"},{name:"suri",type:"Text"},{name:"publicKey",type:"Bytes"}],type:"Bytes"},pendingExtrinsics:{description:"Returns all pending extrinsics, potentially grouped by sender",params:[],type:"Vec<Extrinsic>"},removeExtrinsic:{description:"Remove given extrinsic from the pool and temporarily ban it to prevent reimporting",params:[{name:"bytesOrHash",type:"Vec<ExtrinsicOrHash>"}],type:"Vec<Hash>"},rotateKeys:{description:"Generate new session keys and returns the corresponding public keys",params:[],type:"Bytes"},submitAndWatchExtrinsic:{description:"Submit and subscribe to watch an extrinsic until unsubscribed",isSigned:!0,params:[{name:"extrinsic",type:"Extrinsic"}],pubsub:["extrinsicUpdate","submitAndWatchExtrinsic","unwatchExtrinsic"],type:"ExtrinsicStatus"},submitExtrinsic:{description:"Submit a fully formatted extrinsic for block inclusion",isSigned:!0,params:[{name:"extrinsic",type:"Extrinsic"}],type:"Hash"}}},10234:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{UncleEntryItem:{_enum:{InclusionHeight:"BlockNumber",Uncle:"(Hash, Option<AccountId>)"}}}}},28658:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(47865),i=r(52022),o={rpc:n.rpc,runtime:i.runtime,types:{AllowedSlots:{_enum:["PrimarySlots","PrimaryAndSecondaryPlainSlots","PrimaryAndSecondaryVRFSlots"]},BabeAuthorityWeight:"u64",BabeEpochConfiguration:{c:"(u64, u64)",allowedSlots:"AllowedSlots"},BabeBlockWeight:"u32",BabeEquivocationProof:{offender:"AuthorityId",slotNumber:"SlotNumber",firstHeader:"Header",secondHeader:"Header"},BabeGenesisConfiguration:{slotDuration:"u64",epochLength:"u64",c:"(u64, u64)",genesisAuthorities:"Vec<(AuthorityId, BabeAuthorityWeight)>",randomness:"Randomness",allowedSlots:"AllowedSlots"},BabeGenesisConfigurationV1:{slotDuration:"u64",epochLength:"u64",c:"(u64, u64)",genesisAuthorities:"Vec<(AuthorityId, BabeAuthorityWeight)>",randomness:"Randomness",secondarySlots:"bool"},BabeWeight:"u64",MaybeRandomness:"Option<Randomness>",MaybeVrf:"Option<VrfData>",Epoch:{epochIndex:"u64",startSlot:"Slot",duration:"u64",authorities:"Vec<(AuthorityId, BabeAuthorityWeight)>",randomness:"Hash",config:"BabeEpochConfiguration"},EpochAuthorship:{primary:"Vec<u64>",secondary:"Vec<u64>",secondary_vrf:"Vec<u64>"},NextConfigDescriptor:{_enum:{V0:"Null",V1:"NextConfigDescriptorV1"}},NextConfigDescriptorV1:{c:"(u64, u64)",allowedSlots:"AllowedSlots"},OpaqueKeyOwnershipProof:"Bytes",Randomness:"Hash",RawBabePreDigest:{_enum:{Phantom:"Null",Primary:"RawBabePreDigestPrimary",SecondaryPlain:"RawBabePreDigestSecondaryPlain",SecondaryVRF:"RawBabePreDigestSecondaryVRF"}},RawBabePreDigestPrimary:{authorityIndex:"u32",slotNumber:"SlotNumber",vrfOutput:"VrfOutput",vrfProof:"VrfProof"},RawBabePreDigestSecondaryPlain:{authorityIndex:"u32",slotNumber:"SlotNumber"},RawBabePreDigestSecondaryVRF:{authorityIndex:"u32",slotNumber:"SlotNumber",vrfOutput:"VrfOutput",vrfProof:"VrfProof"},RawBabePreDigestTo159:{_enum:{Primary:"RawBabePreDigestPrimaryTo159",Secondary:"RawBabePreDigestSecondaryTo159"}},RawBabePreDigestPrimaryTo159:{authorityIndex:"u32",slotNumber:"SlotNumber",weight:"BabeBlockWeight",vrfOutput:"VrfOutput",vrfProof:"VrfProof"},RawBabePreDigestSecondaryTo159:{authorityIndex:"u32",slotNumber:"SlotNumber",weight:"BabeBlockWeight"},RawBabePreDigestCompat:{_enum:{Zero:"u32",One:"u32",Two:"u32",Three:"u32"}},SlotNumber:"u64",VrfData:"[u8; 32]",VrfOutput:"[u8; 32]",VrfProof:"[u8; 64]"}};t.default=o},47865:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rpc=void 0,t.rpc={epochAuthorship:{description:"Returns data about which slots (primary or secondary) can be claimed in the current epoch with the keys in the keystore",params:[],type:"HashMap<AuthorityId, EpochAuthorship>"}}},52022:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.runtime=void 0;var n=r(57026);const i={current_epoch:{description:"Returns information regarding the current epoch.",params:[],type:"Epoch"},current_epoch_start:{description:"Returns the slot that started the current epoch.",params:[],type:"Slot"},generate_key_ownership_proof:{description:"Generates a proof of key ownership for the given authority in the current epoch.",params:[{name:"slot",type:"Slot"},{name:"authorityId",type:"AuthorityId"}],type:"Option<OpaqueKeyOwnershipProof>"},next_epoch:{description:"Returns information regarding the next epoch (which was already previously announced).",params:[],type:"Epoch"},submit_report_equivocation_unsigned_extrinsic:{description:"Submits an unsigned extrinsic to report an equivocation.",params:[{name:"equivocationProof",type:"BabeEquivocationProof"},{name:"keyOwnerProof",type:"OpaqueKeyOwnershipProof"}],type:"Option<Null>"}},o={BabeApi:[{methods:(0,n.objectSpread)({configuration:{description:"Return the genesis configuration for BABE. The configuration is only read on genesis.",params:[],type:"BabeGenesisConfiguration"}},i),version:2},{methods:(0,n.objectSpread)({configuration:{description:"Return the configuration for BABE. Version 1.",params:[],type:"BabeGenesisConfigurationV1"}},i),version:1}]};t.runtime=o},90796:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{AccountData:{free:"Balance",reserved:"Balance",miscFrozen:"Balance",feeFrozen:"Balance"},BalanceLockTo212:{id:"LockIdentifier",amount:"Balance",until:"BlockNumber",reasons:"WithdrawReasons"},BalanceLock:{id:"LockIdentifier",amount:"Balance",reasons:"Reasons"},BalanceStatus:{_enum:["Free","Reserved"]},Reasons:{_enum:["Fee","Misc","All"]},ReserveData:{id:"ReserveIdentifier",amount:"Balance"},ReserveIdentifier:"[u8; 8]",VestingSchedule:{offset:"Balance",perBlock:"Balance",startingBlock:"BlockNumber"},WithdrawReasons:{_set:{TransactionPayment:1,Transfer:2,Reserve:4,Fee:8,Tip:16}}}}},4612:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(40977),i=r(20472),o={rpc:n.rpc,runtime:i.runtime,types:{BeefyAuthoritySet:{id:"u64",len:"u32",root:"H256"},BeefyCommitment:{payload:"BeefyPayload",blockNumber:"BlockNumber",validatorSetId:"ValidatorSetId"},BeefyId:"[u8; 33]",BeefySignedCommitment:{commitment:"BeefyCommitment",signatures:"Vec<Option<EcdsaSignature>>"},BeefyNextAuthoritySet:{id:"u64",len:"u32",root:"H256"},BeefyPayload:"Vec<(BeefyPayloadId, Bytes)>",BeefyPayloadId:"[u8;2]",MmrRootHash:"H256",ValidatorSetId:"u64",ValidatorSet:{validators:"Vec<AuthorityId>",id:"ValidatorSetId"}}};t.default=o},40977:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rpc=void 0,t.rpc={getFinalizedHead:{description:"Returns hash of the latest BEEFY finalized block as seen by this client.",params:[],type:"H256"},subscribeJustifications:{description:"Returns the block most recently finalized by BEEFY, alongside side its justification.",params:[],pubsub:["justifications","subscribeJustifications","unsubscribeJustifications"],type:"BeefySignedCommitment"}}},20472:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.runtime=void 0,t.runtime={BeefyApi:[{methods:{validator_set:{description:"Return the current active BEEFY validator set",params:[],type:"Option<ValidatorSet>"}},version:1}],BeefyMmrApi:[{methods:{authority_set_proof:{description:"Return the currently active BEEFY authority set proof.",params:[],type:"BeefyAuthoritySet"},next_authority_set_proof:{description:"Return the next/queued BEEFY authority set proof.",params:[],type:"BeefyNextAuthoritySet"}},version:1}]}},86084:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={rpc:{},runtime:r(62108).runtime,types:{BenchmarkBatch:{pallet:"Text",instance:"Text",benchmark:"Text",results:"Vec<BenchmarkResult>"},BenchmarkConfig:{pallet:"Bytes",benchmark:"Bytes",selectedComponents:"Vec<(BenchmarkParameter, u32)>",verify:"bool",internalRepeats:"u32"},BenchmarkList:{pallet:"Bytes",instance:"Bytes",benchmarks:"Vec<BenchmarkMetadata>"},BenchmarkMetadata:{name:"Bytes",components:"Vec<(BenchmarkParameter, u32, u32)>"},BenchmarkParameter:{_enum:["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"]},BenchmarkResult:{components:"Vec<(BenchmarkParameter, u32)>",extrinsicTime:"u128",storageRootTime:"u128",reads:"u32",repeatReads:"u32",writes:"u32",repeatWrites:"u32",proofSize:"u32",benchKeys:"Vec<(Vec<u8>, u32, u32, bool)>"}}};t.default=n},62108:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.runtime=void 0,t.runtime={Benchmark:[{methods:{benchmark_metadata:{description:"Get the benchmark metadata available for this runtime.",params:[{name:"extra",type:"bool"}],type:"(Vec<BenchmarkList>, Vec<StorageInfo>)"},dispatch_benchmark:{description:"Dispatch the given benchmark.",params:[{name:"config",type:"BenchmarkConfig"}],type:"Result<Vec<BenchmarkBatch>, Text>"}},version:1}]}},44567:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={rpc:{},runtime:r(35910).runtime,types:{CheckInherentsResult:{okay:"bool",fatalError:"bool",errors:"InherentData"},InherentData:{data:"BTreeMap<InherentIdentifier, Bytes>"},InherentIdentifier:"[u8; 8]"}};t.default=n},35910:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.runtime=void 0;var n=r(57026);const i={random_seed:{description:"Generate a random seed.",params:[],type:"Hash"}},o={apply_extrinsic:{description:"Apply the given extrinsic.",params:[{name:"extrinsic",type:"Extrinsic"}],type:"ApplyExtrinsicResultPre6"}},a={check_inherents:{description:"Check that the inherents are valid.",params:[{name:"block",type:"Block"},{name:"data",type:"InherentData"}],type:"CheckInherentsResult"},inherent_extrinsics:{description:"Generate inherent extrinsics.",params:[{name:"inherent",type:"InherentData"}],type:"Vec<Extrinsic>"}},s={finalize_block:{description:"Finish the current block.",params:[],type:"Header"}},u={BlockBuilder:[{methods:(0,n.objectSpread)({apply_extrinsic:{description:"Apply the given extrinsic.",params:[{name:"extrinsic",type:"Extrinsic"}],type:"ApplyExtrinsicResult"}},a,s),version:6},{methods:(0,n.objectSpread)({},o,a,s),version:5},{methods:(0,n.objectSpread)({},i,o,a,s),version:4},{methods:(0,n.objectSpread)({},i,a,s),version:3},{methods:(0,n.objectSpread)({finalise_block:{description:"Finish the current block.",params:[],type:"Header"}},i,a),version:2}]};t.runtime=u},67250:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{BridgedBlockHash:"H256",BridgedBlockNumber:"BlockNumber",BridgedHeader:"Header",BridgeMessageId:"(LaneId, MessageNonce)",CallOrigin:{_enum:{SourceRoot:"Null",TargetAccount:"(AccountId, MultiSigner, MultiSignature)",SourceAccount:"AccountId"}},ChainId:"[u8; 4]",DeliveredMessages:{begin:"MessageNonce",end:"MessageNonce",dispatchResults:"BitVec"},DispatchFeePayment:{_enum:["AtSourceChain","AtTargetChain"]},InboundLaneData:{relayers:"Vec<UnrewardedRelayer>",lastConfirmedNonce:"MessageNonce"},InboundRelayer:"AccountId",InitializationData:{header:"Header",authorityList:"AuthorityList",setId:"SetId",isHalted:"bool"},LaneId:"[u8; 4]",MessageData:{payload:"Bytes",fee:"Balance"},MessagesDeliveryProofOf:{bridgedHeaderHash:"BlockHash",storageProof:"Vec<Bytes>",lane:"LaneId"},MessageKey:{laneId:"LaneId",nonce:"MessageNonce"},MessageNonce:"u64",MessagesProofOf:{bridgedHeaderHash:"BridgedBlockHash",storageProof:"Vec<Bytes>",lane:"LaneId",noncesStart:"MessageNonce",noncesEnd:"MessageNonce"},OperatingMode:{_enum:["Normal","RejectingOutboundMessages","Halted"]},OutboundLaneData:{oldestUnprunedNonce:"MessageNonce",latestReceivedNonce:"MessageNonce",latestGeneratedNonce:"MessageNonce"},OutboundMessageFee:"Balance",OutboundPayload:{specVersion:"u32",weight:"Weight",origin:"CallOrigin",dispatchFeePayment:"DispatchFeePayment",call:"Bytes"},Parameter:"Null",RelayerId:"AccountId",UnrewardedRelayer:{relayer:"RelayerId",messages:"DeliveredMessages"},UnrewardedRelayersState:{unrewardedRelayer_Entries:"MessageNonce",messagesInOldestEntry:"MessageNonce",totalMessages:"MessageNonce"}}}},64979:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={rpc:r(80686).rpc,types:{BlockHash:"Hash"}};t.default=n},80686:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rpc=void 0,t.rpc={getBlock:{description:"Get header and body of a relay chain block",params:[{isHistoric:!0,isOptional:!0,name:"hash",type:"BlockHash"}],type:"SignedBlock"},getBlockHash:{description:"Get the block hash for a specific block",params:[{isOptional:!0,name:"blockNumber",type:"BlockNumber"}],type:"BlockHash"},getFinalizedHead:{alias:["chain_getFinalisedHead"],description:"Get hash of the last finalized block in the canon chain",params:[],type:"BlockHash"},getHeader:{alias:["chain_getHead"],description:"Retrieves the header for a specific block",params:[{isHistoric:!0,isOptional:!0,name:"hash",type:"BlockHash"}],type:"Header"},subscribeAllHeads:{description:"Retrieves the newest header via subscription",params:[],pubsub:["allHead","subscribeAllHeads","unsubscribeAllHeads"],type:"Header"},subscribeFinalizedHeads:{alias:["chain_subscribeFinalisedHeads","chain_unsubscribeFinalisedHeads"],description:"Retrieves the best finalized header via subscription",params:[],pubsub:["finalizedHead","subscribeFinalizedHeads","unsubscribeFinalizedHeads"],type:"Header"},subscribeNewHeads:{alias:["chain_unsubscribeNewHeads","subscribe_newHead","unsubscribe_newHead"],description:"Retrieves the best header via subscription",params:[],pubsub:["newHead","subscribeNewHead","unsubscribeNewHead"],type:"Header"}}},63551:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={rpc:r(37141).rpc,types:{PrefixedStorageKey:"StorageKey"}};t.default=n},37141:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rpc=void 0,t.rpc={getKeys:{description:"Returns the keys with prefix from a child storage, leave empty to get all the keys",params:[{name:"childKey",type:"PrefixedStorageKey"},{name:"prefix",type:"StorageKey"},{isHistoric:!0,isOptional:!0,name:"at",type:"Hash"}],type:"Vec<StorageKey>"},getKeysPaged:{alias:["childstate_getKeysPagedAt"],description:"Returns the keys with prefix from a child storage with pagination support",params:[{name:"childKey",type:"PrefixedStorageKey"},{name:"prefix",type:"StorageKey"},{name:"count",type:"u32"},{isOptional:!0,name:"startKey",type:"StorageKey"},{isHistoric:!0,isOptional:!0,name:"at",type:"Hash"}],type:"Vec<StorageKey>"},getStorage:{description:"Returns a child storage entry at a specific block state",params:[{name:"childKey",type:"PrefixedStorageKey"},{name:"key",type:"StorageKey"},{isHistoric:!0,isOptional:!0,name:"at",type:"Hash"}],type:"Option<StorageData>"},getStorageEntries:{description:"Returns child storage entries for multiple keys at a specific block state",params:[{name:"childKey",type:"PrefixedStorageKey"},{name:"keys",type:"Vec<StorageKey>"},{isHistoric:!0,isOptional:!0,name:"at",type:"Hash"}],type:"Vec<Option<StorageData>>"},getStorageHash:{description:"Returns the hash of a child storage entry at a block state",params:[{name:"childKey",type:"PrefixedStorageKey"},{name:"key",type:"StorageKey"},{isHistoric:!0,isOptional:!0,name:"at",type:"Hash"}],type:"Option<Hash>"},getStorageSize:{description:"Returns the size of a child storage entry at a block state",params:[{name:"childKey",type:"PrefixedStorageKey"},{name:"key",type:"StorageKey"},{isHistoric:!0,isOptional:!0,name:"at",type:"Hash"}],type:"Option<u64>"}}},36920:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{StatementKind:{_enum:["Regular","Saft"]}}}},41836:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{CollectiveOrigin:{_enum:{Members:"(MemberCount, MemberCount)",Member:"AccountId"}},MemberCount:"u32",ProposalIndex:"u32",VotesTo230:{index:"ProposalIndex",threshold:"MemberCount",ayes:"Vec<AccountId>",nays:"Vec<AccountId>"},Votes:{index:"ProposalIndex",threshold:"MemberCount",ayes:"Vec<AccountId>",nays:"Vec<AccountId>",end:"BlockNumber"}}}},22327:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{AuthorityId:"AccountId",RawVRFOutput:"[u8; 32]"}}},23625:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(68307),i=r(18583),o={rpc:n.rpc,runtime:i.runtime,types:{AliveContractInfo:{trieId:"TrieId",storageSize:"u32",pairCount:"u32",codeHash:"CodeHash",rentAllowance:"Balance",rentPaid:"Balance",deductBlock:"BlockNumber",lastWrite:"Option<BlockNumber>",_reserved:"Option<Null>"},CodeHash:"Hash",CodeSource:{_enum:{Upload:"Bytes",Existing:"Hash"}},CodeUploadRequest:{origin:"AccountId",code:"Bytes",storageDepositLimit:"Option<Balance>"},CodeUploadResult:"Result<CodeUploadResultValue, DispatchError>",CodeUploadResultValue:{codeHash:"CodeHash",deposit:"Balance"},ContractCallRequest:{origin:"AccountId",dest:"AccountId",value:"Balance",gasLimit:"u64",storageDepositLimit:"Option<Balance>",inputData:"Bytes"},ContractExecResultSuccessTo255:{status:"u8",data:"Raw"},ContractExecResultTo255:{_enum:{Success:"ContractExecResultSuccessTo255",Error:"Null"}},ContractExecResultSuccessTo260:{flags:"ContractReturnFlags",data:"Bytes",gasConsumed:"u64"},ContractExecResultTo260:{_enum:{Success:"ContractExecResultSuccessTo260",Error:"Null"}},ContractExecResultOk:{flags:"ContractReturnFlags",data:"Bytes"},ContractExecResultResult:"Result<ContractExecResultOk, DispatchError>",ContractExecResultTo267:{gasConsumed:"u64",debugMessage:"Text",result:"ContractExecResultResult"},ContractExecResult:{gasConsumed:"Weight",gasRequired:"Weight",storageDeposit:"StorageDeposit",debugMessage:"Text",result:"ContractExecResultResult"},ContractExecResultU64:{gasConsumed:"u64",gasRequired:"u64",storageDeposit:"StorageDeposit",debugMessage:"Text",result:"ContractExecResultResult"},ContractInfo:{_enum:{Alive:"AliveContractInfo",Tombstone:"TombstoneContractInfo"}},ContractCallFlags:{_set:{_bitLength:32,ForwardInput:1,CloneInput:2,TailCall:4,AllowReentry:8}},ContractReturnFlags:{_set:{_bitLength:32,Revert:1}},ContractStorageKey:"[u8; 32]",DeletedContract:{pairCount:"u32",trieId:"TrieId"},ExecReturnValue:{flags:"ContractReturnFlags",data:"Bytes"},Gas:"u64",HostFnWeightsTo264:{caller:"Weight",address:"Weight",gasLeft:"Weight",balance:"Weight",valueTransferred:"Weight",minimumBalance:"Weight",tombstoneDeposit:"Weight",rentAllowance:"Weight",blockNumber:"Weight",now:"Weight",weightToFee:"Weight",gas:"Weight",input:"Weight",inputPerByte:"Weight",return:"Weight",returnPerByte:"Weight",terminate:"Weight",restoreTo:"Weight",restoreToPerDelta:"Weight",random:"Weight",depositEvent:"Weight",depositEventPerTopic:"Weight",depositEventPerByte:"Weight",setRentAllowance:"Weight",setStorage:"Weight",setStoragePerByte:"Weight",clearStorage:"Weight",getStorage:"Weight",getStoragePerByte:"Weight",transfer:"Weight",call:"Weight",callTransferSurcharge:"Weight",callPerInputByte:"Weight",callPerOutputByte:"Weight",instantiate:"Weight",instantiatePerInputByte:"Weight",instantiatePerOutputByte:"Weight",hashSha2256:"Weight",hashSha2256PerByte:"Weight",hashKeccak256:"Weight",hashKeccak256PerByte:"Weight",hashBlake2256:"Weight",hashBlake2256PerByte:"Weight",hashBlake2128:"Weight",hashBlake2128PerByte:"Weight"},HostFnWeights:{caller:"Weight",address:"Weight",gasLeft:"Weight",balance:"Weight",valueTransferred:"Weight",minimumBalance:"Weight",tombstoneDeposit:"Weight",rentAllowance:"Weight",blockNumber:"Weight",now:"Weight",weightToFee:"Weight",gas:"Weight",input:"Weight",inputPerByte:"Weight",return:"Weight",returnPerByte:"Weight",terminate:"Weight",terminatePerCodeByte:"Weight",restoreTo:"Weight",restoreToPerCallerCodeByte:"Weight",restoreToPerTombstoneCodeByte:"Weight",restoreToPerDelta:"Weight",random:"Weight",depositEvent:"Weight",depositEventPerTopic:"Weight",depositEventPerByte:"Weight",setRentAllowance:"Weight",setStorage:"Weight",setStoragePerByte:"Weight",clearStorage:"Weight",getStorage:"Weight",getStoragePerByte:"Weight",transfer:"Weight",call:"Weight",callPerCodeByte:"Weight",callTransferSurcharge:"Weight",callPerInputByte:"Weight",callPerOutputByte:"Weight",instantiate:"Weight",instantiatePerCodeByte:"Weight",instantiatePerInputByte:"Weight",instantiatePerOutputByte:"Weight",instantiatePerSaltByte:"Weight",hashSha2256:"Weight",hashSha2256PerByte:"Weight",hashKeccak256:"Weight",hashKeccak256PerByte:"Weight",hashBlake2256:"Weight",hashBlake2256PerByte:"Weight",hashBlake2128:"Weight",hashBlake2128PerByte:"Weight",rentParams:"Weight"},InstantiateRequestV1:{origin:"AccountId",value:"Balance",gasLimit:"Gas",code:"Bytes",data:"Bytes",salt:"Bytes"},InstantiateRequestV2:{_fallback:"InstantiateRequestV1",origin:"AccountId",value:"Balance",gasLimit:"Gas",storageDepositLimit:"Option<Balance>",code:"Bytes",data:"Bytes",salt:"Bytes"},InstantiateRequest:{_fallback:"InstantiateRequestV2",origin:"AccountId",value:"Balance",gasLimit:"Gas",storageDepositLimit:"Option<Balance>",code:"CodeSource",data:"Bytes",salt:"Bytes"},ContractInstantiateResultTo267:"Result<InstantiateReturnValueTo267, Null>",ContractInstantiateResultTo299:"Result<InstantiateReturnValueOk, Null>",ContractInstantiateResult:{gasConsumed:"WeightV2",gasRequired:"WeightV2",storageDeposit:"StorageDeposit",debugMessage:"Text",result:"InstantiateReturnValue"},ContractInstantiateResultU64:{_fallback:"ContractInstantiateResultTo299",gasConsumed:"u64",gasRequired:"u64",storageDeposit:"StorageDeposit",debugMessage:"Text",result:"InstantiateReturnValue"},InstantiateReturnValueTo267:{result:"ExecReturnValue",accountId:"AccountId",rentProjection:"Option<RentProjection>"},InstantiateReturnValueOk:{result:"ExecReturnValue",accountId:"AccountId"},InstantiateReturnValue:"Result<InstantiateReturnValueOk, DispatchError>",InstructionWeights:{i64const:"u32",i64load:"u32",i64store:"u32",select:"u32",rIf:"u32",br:"u32",brIf:"u32",brIable:"u32",brIablePerEntry:"u32",call:"u32",callIndirect:"u32",callIndirectPerParam:"u32",localGet:"u32",localSet:"u32",local_tee:"u32",globalGet:"u32",globalSet:"u32",memoryCurrent:"u32",memoryGrow:"u32",i64clz:"u32",i64ctz:"u32",i64popcnt:"u32",i64eqz:"u32",i64extendsi32:"u32",i64extendui32:"u32",i32wrapi64:"u32",i64eq:"u32",i64ne:"u32",i64lts:"u32",i64ltu:"u32",i64gts:"u32",i64gtu:"u32",i64les:"u32",i64leu:"u32",i64ges:"u32",i64geu:"u32",i64add:"u32",i64sub:"u32",i64mul:"u32",i64divs:"u32",i64divu:"u32",i64rems:"u32",i64remu:"u32",i64and:"u32",i64or:"u32",i64xor:"u32",i64shl:"u32",i64shrs:"u32",i64shru:"u32",i64rotl:"u32",i64rotr:"u32"},LimitsTo264:{eventTopics:"u32",stackHeight:"u32",globals:"u32",parameters:"u32",memoryPages:"u32",tableSize:"u32",brTableSize:"u32",subjectLen:"u32",codeSize:"u32"},Limits:{eventTopics:"u32",stackHeight:"u32",globals:"u32",parameters:"u32",memoryPages:"u32",tableSize:"u32",brTableSize:"u32",subjectLen:"u32"},PrefabWasmModule:{scheduleVersion:"Compact<u32>",initial:"Compact<u32>",maximum:"Compact<u32>",refcount:"Compact<u64>",_reserved:"Option<Null>",code:"Bytes",originalCodeLen:"u32"},RentProjection:{_enum:{EvictionAt:"BlockNumber",NoEviction:"Null"}},ScheduleTo212:{version:"u32",putCodePerByteCost:"Gas",growMemCost:"Gas",regularOpCost:"Gas",returnDataPerByteCost:"Gas",eventDataPerByteCost:"Gas",eventPerTopicCost:"Gas",eventBaseCost:"Gas",sandboxDataReadCost:"Gas",sandboxDataWriteCost:"Gas",maxEventTopics:"u32",maxStackHeight:"u32",maxMemoryPages:"u32",enablePrintln:"bool",maxSubjectLen:"u32"},ScheduleTo258:{version:"u32",putCodePerByteCost:"Gas",growMemCost:"Gas",regularOpCost:"Gas",returnDataPerByteCost:"Gas",eventDataPerByteCost:"Gas",eventPerTopicCost:"Gas",eventBaseCost:"Gas",sandboxDataReadCost:"Gas",sandboxDataWriteCost:"Gas",transferCost:"Gas",maxEventTopics:"u32",maxStackHeight:"u32",maxMemoryPages:"u32",enablePrintln:"bool",maxSubjectLen:"u32"},ScheduleTo264:{version:"u32",enablePrintln:"bool",limits:"LimitsTo264",instructionWeights:"InstructionWeights",hostFnWeights:"HostFnWeightsTo264"},Schedule:{version:"u32",enablePrintln:"bool",limits:"Limits",instructionWeights:"InstructionWeights",hostFnWeights:"HostFnWeights"},SeedOf:"Hash",StorageDeposit:{_enum:{Refund:"Balance",Charge:"Balance"}},TombstoneContractInfo:"Hash",TrieId:"Bytes"}};t.default=o},68307:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rpc=void 0,t.rpc={call:{deprecated:"Use the runtime interface `api.call.contractsApi.call` instead",description:"Executes a call to a contract",params:[{name:"callRequest",type:"ContractCallRequest"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"ContractExecResult"},getStorage:{deprecated:"Use the runtime interface `api.call.contractsApi.getStorage` instead",description:"Returns the value under a specified storage key in a contract",params:[{name:"address",type:"AccountId"},{name:"key",type:"H256"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"Option<Bytes>"},instantiate:{deprecated:"Use the runtime interface `api.call.contractsApi.instantiate` instead",description:"Instantiate a new contract",params:[{name:"request",type:"InstantiateRequestV1"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"ContractInstantiateResult"},rentProjection:{deprecated:"Not available in newer versions of the contracts interfaces",description:"Returns the projected time a given contract will be able to sustain paying its rent",params:[{name:"address",type:"AccountId"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"Option<BlockNumber>"},uploadCode:{deprecated:"Use the runtime interface `api.call.contractsApi.uploadCode` instead",description:"Upload new code without instantiating a contract from it",endpoint:"contracts_upload_code",params:[{name:"uploadRequest",type:"CodeUploadRequest"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"CodeUploadResult"}}},18583:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.runtime=void 0;var n=r(57026);const i={get_storage:{description:"Query a given storage key in a given contract.",params:[{name:"address",type:"AccountId"},{name:"key",type:"Bytes"}],type:"Option<Bytes>"},upload_code:{description:"Upload new code without instantiating a contract from it.",params:[{name:"origin",type:"AccountId"},{name:"code",type:"Bytes"},{name:"storageDepositLimit",type:"Option<Balance>"}],type:"CodeUploadResult"}},o={ContractsApi:[{methods:(0,n.objectSpread)({call:{description:"Perform a call from a specified account to a given contract.",params:[{name:"origin",type:"AccountId"},{name:"dest",type:"AccountId"},{name:"value",type:"Balance"},{name:"gasLimit",type:"Option<WeightV2>"},{name:"storageDepositLimit",type:"Option<Balance>"},{name:"inputData",type:"Vec<u8>"}],type:"ContractExecResult"},instantiate:{description:"Instantiate a new contract.",params:[{name:"origin",type:"AccountId"},{name:"value",type:"Balance"},{name:"gasLimit",type:"Option<WeightV2>"},{name:"storageDepositLimit",type:"Option<Balance>"},{name:"code",type:"CodeSource"},{name:"data",type:"Bytes"},{name:"salt",type:"Bytes"}],type:"ContractInstantiateResult"}},i),version:2},{methods:(0,n.objectSpread)({call:{description:"Perform a call from a specified account to a given contract.",params:[{name:"origin",type:"AccountId"},{name:"dest",type:"AccountId"},{name:"value",type:"Balance"},{name:"gasLimit",type:"u64"},{name:"storageDepositLimit",type:"Option<Balance>"},{name:"inputData",type:"Vec<u8>"}],type:"ContractExecResultU64"},instantiate:{description:"Instantiate a new contract.",params:[{name:"origin",type:"AccountId"},{name:"value",type:"Balance"},{name:"gasLimit",type:"u64"},{name:"storageDepositLimit",type:"Option<Balance>"},{name:"code",type:"CodeSource"},{name:"data",type:"Bytes"},{name:"salt",type:"Bytes"}],type:"ContractInstantiateResultU64"}},i),version:1}]};t.runtime=o},45620:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(57026);const i={metadataVersion:"Text",types:"Vec<Si0Type>",spec:"ContractContractSpecV0"},o={types:"Vec<PortableType>",spec:"ContractContractSpecV3"},a=o,s={source:"ContractProjectSource",contract:"ContractProjectContract"};var u={rpc:{},types:(0,n.objectSpread)({},{ContractCryptoHasher:{_enum:["Blake2x256","Sha2x256","Keccak256"]},ContractDiscriminant:"u32",ContractLayoutArray:{offset:"ContractLayoutKey",len:"u32",cellsPerElem:"u64",layout:"ContractStorageLayout"},ContractLayoutCell:{key:"ContractLayoutKey",ty:"SiLookupTypeId"},ContractLayoutEnum:{dispatchKey:"ContractLayoutKey",variants:"BTreeMap<ContractDiscriminant, ContractLayoutStruct>"},ContractLayoutHash:{offset:"ContractLayoutKey",strategy:"ContractLayoutHashingStrategy",layout:"ContractStorageLayout"},ContractLayoutHashingStrategy:{hasher:"ContractCryptoHasher",postfix:"Vec<u8>",prefix:"Vec<u8>"},ContractLayoutKey:"[u8; 32]",ContractLayoutStruct:{fields:"Vec<ContractLayoutStructField>"},ContractLayoutStructField:{layout:"ContractStorageLayout",name:"Text"},ContractStorageLayout:{_enum:{Cell:"ContractLayoutCell",Hash:"ContractLayoutHash",Array:"ContractLayoutArray",Struct:"ContractLayoutStruct",Enum:"ContractLayoutEnum"}}},{ContractConstructorSpecV0:{name:"Text",selector:"ContractSelector",args:"Vec<ContractMessageParamSpecV0>",docs:"Vec<Text>"},ContractConstructorSpecV1:{name:"Vec<Text>",selector:"ContractSelector",args:"Vec<ContractMessageParamSpecV0>",docs:"Vec<Text>"},ContractConstructorSpecV2:{label:"Text",selector:"ContractSelector",args:"Vec<ContractMessageParamSpecV2>",docs:"Vec<Text>"},ContractConstructorSpecV3:{label:"Text",selector:"ContractSelector",payable:"bool",args:"Vec<ContractMessageParamSpecV2>",docs:"Vec<Text>"},ContractContractSpecV0:{constructors:"Vec<ContractConstructorSpecV0>",messages:"Vec<ContractMessageSpecV0>",events:"Vec<ContractEventSpecV0>",docs:"Vec<Text>"},ContractContractSpecV1:{constructors:"Vec<ContractConstructorSpecV1>",messages:"Vec<ContractMessageSpecV1>",events:"Vec<ContractEventSpecV1>",docs:"Vec<Text>"},ContractContractSpecV2:{constructors:"Vec<ContractConstructorSpecV2>",messages:"Vec<ContractMessageSpecV2>",events:"Vec<ContractEventSpecV2>",docs:"Vec<Text>"},ContractContractSpecV3:{constructors:"Vec<ContractConstructorSpecV3>",messages:"Vec<ContractMessageSpecV2>",events:"Vec<ContractEventSpecV2>",docs:"Vec<Text>"},ContractContractSpecV4:"ContractContractSpecV3",ContractDisplayName:"SiPath",ContractEventParamSpecV0:{name:"Text",indexed:"bool",type:"ContractTypeSpec",docs:"Vec<Text>"},ContractEventParamSpecV2:{label:"Text",indexed:"bool",type:"ContractTypeSpec",docs:"Vec<Text>"},ContractEventSpecV0:{name:"Text",args:"Vec<ContractEventParamSpecV0>",docs:"Vec<Text>"},ContractEventSpecV1:{name:"Text",args:"Vec<ContractEventParamSpecV0>",docs:"Vec<Text>"},ContractEventSpecV2:{label:"Text",args:"Vec<ContractEventParamSpecV2>",docs:"Vec<Text>"},ContractMessageParamSpecV0:{name:"Text",type:"ContractTypeSpec"},ContractMessageParamSpecV2:{label:"Text",type:"ContractTypeSpec"},ContractMessageSpecV0:{name:"Text",selector:"ContractSelector",mutates:"bool",payable:"bool",args:"Vec<ContractMessageParamSpecV0>",returnType:"Option<ContractTypeSpec>",docs:"Vec<Text>"},ContractMessageSpecV1:{name:"Vec<Text>",selector:"ContractSelector",mutates:"bool",payable:"bool",args:"Vec<ContractMessageParamSpecV0>",returnType:"Option<ContractTypeSpec>",docs:"Vec<Text>"},ContractMessageSpecV2:{label:"Text",selector:"ContractSelector",mutates:"bool",payable:"bool",args:"Vec<ContractMessageParamSpecV2>",returnType:"Option<ContractTypeSpec>",docs:"Vec<Text>"},ContractSelector:"[u8; 4]",ContractTypeSpec:{type:"SiLookupTypeId",displayName:"ContractDisplayName"}},{ContractConstructorSpecLatest:"ContractConstructorSpecV3",ContractEventSpecLatest:"ContractEventSpecV2",ContractEventParamSpecLatest:"ContractEventParamSpecV2",ContractMessageParamSpecLatest:"ContractMessageParamSpecV2",ContractMessageSpecLatest:"ContractMessageSpecV2",ContractMetadataLatest:"ContractMetadataV4"},{ContractProjectInfo:s,ContractMetadataV0:i,ContractMetadataV1:{types:"Vec<PortableType>",spec:"ContractContractSpecV1"},ContractMetadataV2:{types:"Vec<PortableType>",spec:"ContractContractSpecV2"},ContractMetadataV3:o,ContractMetadataV4:a,ContractMetadata:{_enum:{V0:"ContractMetadataV0",V1:"ContractMetadataV1",V2:"ContractMetadataV2",V3:"ContractMetadataV3",V4:"ContractMetadataV4"}},ContractProjectV0:(0,n.objectSpread)({metadataVersion:"Text"},s,i),ContractProject:"(ContractProjectInfo, ContractMetadata)",ContractProjectContract:{_alias:{docs:"documentation"},name:"Text",version:"Text",authors:"Vec<Text>",description:"Option<Text>",docs:"Option<Text>",repository:"Option<Text>",homepage:"Option<Text>",license:"Option<Text>"},ContractProjectSource:{_alias:{wasmHash:"hash"},wasmHash:"[u8; 32]",language:"Text",compiler:"Text",wasm:"Raw"}})};t.default=u},15778:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{FundIndex:"u32",LastContribution:{_enum:{Never:"Null",PreEnding:"u32",Ending:"BlockNumber"}},FundInfo:{depositor:"AccountId",verifier:"Option<MultiSigner>",deposit:"Balance",raised:"Balance",end:"BlockNumber",cap:"Balance",lastContribution:"LastContribution",firstPeriod:"LeasePeriod",lastPeriod:"LeasePeriod",trieIndex:"TrieIndex"},TrieIndex:"u32"}}},4927:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={rpc:{},runtime:r(56288).runtime,types:{CollationInfo:{upwardMessages:"Vec<UpwardMessage>",horizontalMessages:"Vec<OutboundHrmpMessage>",newValidationCode:"Option<ValidationCode>",processedDownwardMessages:"u32",hrmpWatermark:"RelayBlockNumber",headData:"HeadData"},CollationInfoV1:{upwardMessages:"Vec<UpwardMessage>",horizontalMessages:"Vec<OutboundHrmpMessage>",newValidationCode:"Option<ValidationCode>",processedDownwardMessages:"u32",hrmpWatermark:"RelayBlockNumber"},ConfigData:{maxIndividual:"Weight"},MessageId:"[u8; 32]",OverweightIndex:"u64",PageCounter:"u32",PageIndexData:{beginUsed:"PageCounter",endUsed:"PageCounter",overweightCount:"OverweightIndex"}}};t.default=n},56288:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.runtime=void 0,t.runtime={CollectCollationInfo:[{methods:{collect_collation_info:{description:"Collect information about a collation.",params:[{name:"header",type:"Header"}],type:"CollationInfo"}},version:2},{methods:{collect_collation_info:{description:"Collect information about a collation.",params:[],type:"CollationInfoV1"}},version:1}]}},2272:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0});var i={assets:!0,authorship:!0,aura:!0,babe:!0,balances:!0,beefy:!0,benchmark:!0,blockbuilder:!0,collective:!0,consensus:!0,contracts:!0,democracy:!0,dev:!0,discovery:!0,elections:!0,engine:!0,evm:!0,extrinsics:!0,genericAsset:!0,gilt:!0,grandpa:!0,identity:!0,imOnline:!0,lottery:!0,mmr:!0,nompools:!0,offences:!0,pow:!0,proxy:!0,recovery:!0,scheduler:!0,session:!0,society:!0,staking:!0,support:!0,syncstate:!0,system:!0,treasury:!0,txpayment:!0,txqueue:!0,uniques:!0,utility:!0,vesting:!0,attestations:!0,bridges:!0,claims:!0,crowdloan:!0,cumulus:!0,finality:!0,parachains:!0,poll:!0,purchase:!0,xcm:!0,contractsAbi:!0,eth:!0,nimbus:!0,ormlOracle:!0,ormlTokens:!0,rpc:!0,author:!0,chain:!0,childstate:!0,offchain:!0,payment:!0,state:!0};Object.defineProperty(t,"assets",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"attestations",{enumerable:!0,get:function(){return Z.default}}),Object.defineProperty(t,"aura",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"author",{enumerable:!0,get:function(){return le.default}}),Object.defineProperty(t,"authorship",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"babe",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"balances",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"beefy",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"benchmark",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"blockbuilder",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"bridges",{enumerable:!0,get:function(){return J.default}}),Object.defineProperty(t,"chain",{enumerable:!0,get:function(){return de.default}}),Object.defineProperty(t,"childstate",{enumerable:!0,get:function(){return he.default}}),Object.defineProperty(t,"claims",{enumerable:!0,get:function(){return Y.default}}),Object.defineProperty(t,"collective",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"consensus",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"contracts",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"contractsAbi",{enumerable:!0,get:function(){return oe.default}}),Object.defineProperty(t,"crowdloan",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(t,"cumulus",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(t,"democracy",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"dev",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"discovery",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"elections",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"engine",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"eth",{enumerable:!0,get:function(){return ae.default}}),Object.defineProperty(t,"evm",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"extrinsics",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(t,"finality",{enumerable:!0,get:function(){return ee.default}}),Object.defineProperty(t,"genericAsset",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(t,"gilt",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(t,"grandpa",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"identity",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(t,"imOnline",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(t,"lottery",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(t,"mmr",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(t,"nimbus",{enumerable:!0,get:function(){return se.default}}),Object.defineProperty(t,"nompools",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(t,"offchain",{enumerable:!0,get:function(){return pe.default}}),Object.defineProperty(t,"offences",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(t,"ormlOracle",{enumerable:!0,get:function(){return ue.default}}),Object.defineProperty(t,"ormlTokens",{enumerable:!0,get:function(){return ce.default}}),Object.defineProperty(t,"parachains",{enumerable:!0,get:function(){return te.default}}),Object.defineProperty(t,"payment",{enumerable:!0,get:function(){return be.default}}),Object.defineProperty(t,"poll",{enumerable:!0,get:function(){return re.default}}),Object.defineProperty(t,"pow",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(t,"proxy",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(t,"purchase",{enumerable:!0,get:function(){return ne.default}}),Object.defineProperty(t,"recovery",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(t,"rpc",{enumerable:!0,get:function(){return fe.default}}),Object.defineProperty(t,"scheduler",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(t,"session",{enumerable:!0,get:function(){return U.default}}),Object.defineProperty(t,"society",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(t,"staking",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(t,"state",{enumerable:!0,get:function(){return ye.default}}),Object.defineProperty(t,"support",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(t,"syncstate",{enumerable:!0,get:function(){return F.default}}),Object.defineProperty(t,"system",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(t,"treasury",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(t,"txpayment",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(t,"txqueue",{enumerable:!0,get:function(){return K.default}}),Object.defineProperty(t,"uniques",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(t,"utility",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(t,"vesting",{enumerable:!0,get:function(){return X.default}}),Object.defineProperty(t,"xcm",{enumerable:!0,get:function(){return ie.default}});var o=r(74690);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=n(r(56008)),s=n(r(10234)),u=n(r(42821)),c=n(r(28658)),f=n(r(90796)),l=n(r(4612)),d=n(r(86084)),h=n(r(44567)),p=n(r(41836)),b=n(r(22327)),y=n(r(23625)),g=n(r(47054)),m=n(r(76346)),v=n(r(42036)),w=n(r(85395)),_=n(r(98107)),x=n(r(22761)),O=n(r(35178)),k=n(r(19360)),P=n(r(79785)),S=n(r(74386)),A=n(r(74505)),E=n(r(1508)),M=n(r(67360)),j=n(r(73698)),T=n(r(42566)),B=n(r(85645)),I=n(r(77566)),N=n(r(60434)),R=n(r(52621)),C=n(r(50271)),U=n(r(75430)),L=n(r(90337)),D=n(r(99849)),H=n(r(83432)),F=n(r(14846)),V=n(r(7724)),z=n(r(82532)),q=n(r(76868)),K=n(r(68329)),W=n(r(29464)),G=n(r(81784)),X=n(r(1456)),Z=n(r(14044)),J=n(r(67250)),Y=n(r(36920)),Q=n(r(15778)),$=n(r(4927)),ee=n(r(21802)),te=n(r(20814)),re=n(r(66366)),ne=n(r(67912)),ie=n(r(23769)),oe=n(r(45620)),ae=n(r(75009)),se=n(r(86304)),ue=n(r(43569)),ce=n(r(35709)),fe=n(r(57386)),le=n(r(5735)),de=n(r(64979)),he=n(r(63551)),pe=n(r(15370)),be=n(r(50059)),ye=n(r(50942))},47054:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.AllConvictions=void 0;const r=["None","Locked1x","Locked2x","Locked3x","Locked4x","Locked5x","Locked6x"];t.AllConvictions=r;var n={rpc:{},types:{AccountVote:{_enum:{Standard:"AccountVoteStandard",Split:"AccountVoteSplit"}},AccountVoteSplit:{aye:"Balance",nay:"Balance"},AccountVoteStandard:{vote:"Vote",balance:"Balance"},Conviction:{_enum:r},Delegations:{votes:"Balance",capital:"Balance"},PreimageStatus:{_enum:{Missing:"BlockNumber",Available:"PreimageStatusAvailable"}},PreimageStatusAvailable:{data:"Bytes",provider:"AccountId",deposit:"Balance",since:"BlockNumber",expiry:"Option<BlockNumber>"},PriorLock:"(BlockNumber, Balance)",PropIndex:"u32",Proposal:"Call",ProxyState:{_enum:{Open:"AccountId",Active:"AccountId"}},ReferendumIndex:"u32",ReferendumInfoTo239:{end:"BlockNumber",proposalHash:"Hash",threshold:"VoteThreshold",delay:"BlockNumber"},ReferendumInfo:{_enum:{Ongoing:"ReferendumStatus",Finished:"ReferendumInfoFinished"}},ReferendumInfoFinished:{approved:"bool",end:"BlockNumber"},ReferendumStatus:{end:"BlockNumber",proposalHash:"Hash",threshold:"VoteThreshold",delay:"BlockNumber",tally:"Tally"},Tally:{ayes:"Balance",nays:"Balance",turnout:"Balance"},Voting:{_enum:{Direct:"VotingDirect",Delegating:"VotingDelegating"}},VotingDirect:{votes:"Vec<VotingDirectVote>",delegations:"Delegations",prior:"PriorLock"},VotingDirectVote:"(ReferendumIndex, AccountVote)",VotingDelegating:{balance:"Balance",target:"AccountId",conviction:"Conviction",delegations:"Delegations",prior:"PriorLock"}}};t.default=n},76346:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={rpc:r(29803).rpc,types:{BlockStats:{witnessLen:"u64",witnessCompactLen:"u64",blockLen:"u64",blockNumExtrinsics:"u64"}}};t.default=n},29803:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rpc=void 0,t.rpc={getBlockStats:{description:"Reexecute the specified `block_hash` and gather statistics while doing so",params:[{isHistoric:!0,name:"at",type:"Hash"}],type:"Option<BlockStats>"}}},42036:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={rpc:{},runtime:r(32643).runtime,types:{}};t.default=n},32643:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.runtime=void 0,t.runtime={AuthorityDiscoveryApi:[{methods:{authorities:{description:"Retrieve authority identifiers of the current and next authority set.",params:[],type:"Vec<AuthorityId>"}},version:1}]}},85395:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{ApprovalFlag:"u32",DefunctVoter:{who:"AccountId",voteCount:"Compact<u32>",candidateCount:"Compact<u32>"},Renouncing:{_enum:{Member:"Null",RunnerUp:"Null",Candidate:"Compact<u32>"}},SetIndex:"u32",Vote:"GenericVote",VoteIndex:"u32",VoterInfo:{lastActive:"VoteIndex",lastWin:"VoteIndex",pot:"Balance",stake:"Balance"},VoteThreshold:{_enum:["Super Majority Approve","Super Majority Against","Simple Majority"]}}}},98107:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={rpc:r(61498).rpc,types:{CreatedBlock:{_alias:{blockHash:"hash"},blockHash:"BlockHash",aux:"ImportedAux"},ImportedAux:{headerOnly:"bool",clearJustificationRequests:"bool",needsJustification:"bool",badJustification:"bool",needsFinalityProof:"bool",isNewBest:"bool"}}};t.default=n},61498:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rpc=void 0,t.rpc={createBlock:{description:"Instructs the manual-seal authorship task to create a new block",params:[{name:"createEmpty",type:"bool"},{name:"finalize",type:"bool"},{isOptional:!0,name:"parentHash",type:"BlockHash"}],type:"CreatedBlock"},finalizeBlock:{description:"Instructs the manual-seal authorship task to finalize a block",params:[{name:"hash",type:"BlockHash"},{isOptional:!0,name:"justification",type:"Justification"}],type:"bool"}}},74690:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"metadata",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"runtime",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"scaleInfo",{enumerable:!0,get:function(){return a.default}});var i=n(r(76102)),o=n(r(11952)),a=n(r(65524))},75009:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(57026),i=r(96136),o=r(44830);const a=(0,n.objectSpread)({},{BlockV0:{header:"EthHeader",transactions:"Vec<TransactionV0>",ommers:"Vec<EthHeader>"},LegacyTransaction:{nonce:"U256",gasPrice:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",signature:"EthTransactionSignature"},TransactionV0:"LegacyTransaction"},{BlockV1:{header:"EthHeader",transactions:"Vec<TransactionV1>",ommers:"Vec<EthHeader>"},EIP2930Transaction:{chainId:"u64",nonce:"U256",gasPrice:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",accessList:"EthAccessList",oddYParity:"bool",r:"H256",s:"H256"},TransactionV1:{_enum:{Legacy:"LegacyTransaction",EIP2930:"EIP2930Transaction"}}},{BlockV2:{header:"EthHeader",transactions:"Vec<TransactionV2>",ommers:"Vec<EthHeader>"},EIP1559Transaction:{chainId:"u64",nonce:"U256",maxPriorityFeePerGas:"U256",maxFeePerGas:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",accessList:"EthAccessList",oddYParity:"bool",r:"H256",s:"H256"},TransactionV2:{_enum:{Legacy:"LegacyTransaction",EIP2930:"EIP2930Transaction",EIP1559:"EIP1559Transaction"}}},{EthereumAccountId:"GenericEthereumAccountId",EthereumAddress:"GenericEthereumAccountId",EthereumLookupSource:"GenericEthereumLookupSource",EthereumSignature:"[u8; 65]",EthAccessListItem:{address:"EthAddress",slots:"Vec<H256>"},EthAccessList:"Vec<EthAccessListItem>",EthAccount:{address:"EthAddress",balance:"U256",nonce:"U256",codeHash:"H256",storageHash:"H256",accountProof:"Vec<Bytes>",storageProof:"Vec<EthStorageProof>"},EthAddress:"H160",EthBlock:{header:"EthHeader",transactions:"Vec<EthTransaction>",ommers:"Vec<EthHeader>"},EthHeader:{parentHash:"H256",ommersHash:"H256",beneficiary:"EthAddress",stateRoot:"H256",transactionsRoot:"H256",receiptsRoot:"H256",logsBloom:"EthBloom",difficulty:"U256",number:"U256",gasLimit:"U256",gasUsed:"U256",timestamp:"u64",extraData:"Bytes",mixMash:"H256",nonce:"H64"},EthRichBlock:{_alias:{blockHash:"hash",blockSize:"size"},blockHash:"Option<H256>",parentHash:"H256",sha3Uncles:"H256",author:"EthAddress",miner:"EthAddress",stateRoot:"H256",transactionsRoot:"H256",receiptsRoot:"H256",number:"Option<U256>",gasUsed:"U256",gasLimit:"U256",extraData:"Bytes",logsBloom:"EthBloom",timestamp:"U256",difficulty:"U256",totalDifficulty:"Option<U256>",sealFields:"Vec<Bytes>",uncles:"Vec<H256>",transactions:"Vec<EthTransaction>",blockSize:"Option<U256>"},EthBloom:"H2048",EthCallRequest:{from:"Option<EthAddress>",to:"Option<EthAddress>",gasPrice:"Option<U256>",gas:"Option<U256>",value:"Option<U256>",data:"Option<Bytes>",nonce:"Option<U256>"},EthFeeHistory:{oldestBlock:"U256",baseFeePerGas:"Vec<U256>",gasUsedRatio:"Vec<f64>",reward:"Option<Vec<Vec<U256>>>"},EthFilter:{fromBlock:"Option<BlockNumber>",toBlock:"Option<BlockNumber>",blockHash:"Option<H256>",address:"Option<EthFilterAddress>",topics:"Option<EthFilterTopic>"},EthFilterAddress:{_enum:{Single:"EthAddress",Multiple:"Vec<EthAddress>",Null:"Null"}},EthFilterChanges:{_enum:{Logs:"Vec<EthLog>",Hashes:"Vec<H256>",Empty:"Null"}},EthFilterTopic:{_enum:{Single:"EthFilterTopicInner",Multiple:"Vec<EthFilterTopicInner>",Null:"Null"}},EthFilterTopicEntry:"Option<H256>",EthFilterTopicInner:{_enum:{Single:"EthFilterTopicEntry",Multiple:"Vec<EthFilterTopicEntry>",Null:"Null"}},EthRichHeader:{_alias:{blockHash:"hash",blockSize:"size"},blockHash:"Option<H256>",parentHash:"H256",sha3Uncles:"H256",author:"EthAddress",miner:"EthAddress",stateRoot:"H256",transactionsRoot:"H256",receiptsRoot:"H256",number:"Option<U256>",gasUsed:"U256",gasLimit:"U256",extraData:"Bytes",logsBloom:"EthBloom",timestamp:"U256",difficulty:"U256",sealFields:"Vec<Bytes>",blockSize:"Option<U256>"},EthLog:{address:"EthAddress",topics:"Vec<H256>",data:"Bytes",blockHash:"Option<H256>",blockNumber:"Option<U256>",transactionHash:"Option<H256>",transactionIndex:"Option<U256>",logIndex:"Option<U256>",transactionLogIndex:"Option<U256>",removed:"bool"},EthReceipt:{transactionHash:"Option<H256>",transactionIndex:"Option<U256>",blockHash:"Option<H256>",from:"Option<EthAddress>",to:"Option<EthAddress>",blockNumber:"Option<U256>",cumulativeGasUsed:"U256",gasUsed:"Option<U256>",contractAddress:"Option<EthAddress>",logs:"Vec<EthLog>",root:"Option<H256>",logsBloom:"EthBloom",statusCode:"Option<U64>"},EthReceiptV0:"EthReceipt",EthReceiptV3:"EthReceipt",EthStorageProof:{key:"U256",value:"U256",proof:"Vec<Bytes>"},EthSubKind:{_enum:["newHeads","logs","newPendingTransactions","syncing"]},EthSubParams:{_enum:{None:"Null",Logs:"EthFilter"}},EthSubResult:{_enum:{Header:"EthRichHeader",Log:"EthLog",TransactionHash:"H256",SyncState:"EthSyncStatus"}},EthSyncInfo:{startingBlock:"U256",currentBlock:"U256",highestBlock:"U256",warpChunksAmount:"Option<U256>",warpChunksProcessed:"Option<U256>"},EthSyncStatus:{_enum:{Info:"EthSyncInfo",None:"Null"}},EthTransaction:{hash:"H256",nonce:"U256",blockHash:"Option<H256>",blockNumber:"Option<U256>",transactionIndex:"Option<U256>",from:"H160",to:"Option<H160>",value:"U256",gasPrice:"Option<U256>",maxFeePerGas:"Option<U256>",maxPriorityFeePerGas:"Option<U256>",gas:"U256",input:"Bytes",creates:"Option<H160>",raw:"Bytes",publicKey:"Option<H512>",chainId:"Option<U64>",standardV:"U256",v:"U256",r:"U256",s:"U256",accessList:"Option<Vec<EthAccessListItem>>",transactionType:"Option<U256>"},EthTransactionSignature:{v:"u64",r:"H256",s:"H256"},EthTransactionAction:{_enum:{Call:"H160",Create:"Null"}},EthTransactionCondition:{_enum:{block:"u64",time:"u64"}},EthTransactionRequest:{from:"Option<EthAddress>",to:"Option<EthAddress>",gasPrice:"Option<U256>",gas:"Option<U256>",value:"Option<U256>",data:"Option<Bytes>",nonce:"Option<U256>"},EthTransactionStatus:{transactionHash:"H256",transactionIndex:"u32",from:"EthAddress",to:"Option<EthAddress>",contractAddress:"Option<EthAddress>",logs:"Vec<EthLog>",logsBloom:"EthBloom"},EthWork:{powHash:"H256",seedHash:"H256",target:"H256",number:"Option<u64>"}});var s={rpc:i.rpc,runtime:o.runtime,types:a};t.default=s},96136:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rpc=void 0;const n=(0,r(57026).objectSpread)({},{listening:{aliasSection:"net",description:"Returns true if client is actively listening for network connections. Otherwise false.",params:[],type:"bool"},peerCount:{aliasSection:"net",description:"Returns number of peers connected to node.",params:[],type:"Text"},version:{aliasSection:"net",description:"Returns protocol version.",params:[],type:"Text"}},{clientVersion:{aliasSection:"web3",description:"Returns current client version.",params:[],type:"Text"},sha3:{aliasSection:"web3",description:"Returns sha3 of the given data",params:[{name:"data",type:"Bytes"}],type:"H256"}},{accounts:{description:"Returns accounts list.",params:[],type:"Vec<H160>"},blockNumber:{description:"Returns the blockNumber",params:[],type:"U256"},call:{description:"Call contract, returning the output data.",params:[{name:"request",type:"EthCallRequest"},{isHistoric:!0,isOptional:!0,name:"number",type:"BlockNumber"}],type:"Bytes"},chainId:{description:"Returns the chain ID used for transaction signing at the current best block. None is returned if not available.",params:[],type:"U64"},coinbase:{description:"Returns block author.",params:[],type:"H160"},estimateGas:{description:"Estimate gas needed for execution of given contract.",params:[{name:"request",type:"EthCallRequest"},{isHistoric:!0,isOptional:!0,name:"number",type:"BlockNumber"}],type:"U256"},feeHistory:{description:"Returns fee history for given block count & reward percentiles",params:[{name:"blockCount",type:"U256"},{name:"newestBlock",type:"BlockNumber"},{name:"rewardPercentiles",type:"Option<Vec<f64>>"}],type:"EthFeeHistory"},gasPrice:{description:"Returns current gas price.",params:[],type:"U256"},getBalance:{description:"Returns balance of the given account.",params:[{name:"address",type:"H160"},{isHistoric:!0,isOptional:!0,name:"number",type:"BlockNumber"}],type:"U256"},getBlockByHash:{description:"Returns block with given hash.",params:[{name:"hash",type:"H256"},{name:"full",type:"bool"}],type:"Option<EthRichBlock>"},getBlockByNumber:{description:"Returns block with given number.",params:[{name:"block",type:"BlockNumber"},{name:"full",type:"bool"}],type:"Option<EthRichBlock>"},getBlockTransactionCountByHash:{description:"Returns the number of transactions in a block with given hash.",params:[{name:"hash",type:"H256"}],type:"U256"},getBlockTransactionCountByNumber:{description:"Returns the number of transactions in a block with given block number.",params:[{name:"block",type:"BlockNumber"}],type:"U256"},getCode:{description:"Returns the code at given address at given time (block number).",params:[{name:"address",type:"H160"},{isHistoric:!0,isOptional:!0,name:"number",type:"BlockNumber"}],type:"Bytes"},getFilterChanges:{description:"Returns filter changes since last poll.",params:[{name:"index",type:"U256"}],type:"EthFilterChanges"},getFilterLogs:{description:"Returns all logs matching given filter (in a range 'from' - 'to').",params:[{name:"index",type:"U256"}],type:"Vec<EthLog>"},getLogs:{description:"Returns logs matching given filter object.",params:[{name:"filter",type:"EthFilter"}],type:"Vec<EthLog>"},getProof:{description:"Returns proof for account and storage.",params:[{name:"address",type:"H160"},{name:"storageKeys",type:"Vec<H256>"},{name:"number",type:"BlockNumber"}],type:"EthAccount"},getStorageAt:{description:"Returns content of the storage at given address.",params:[{name:"address",type:"H160"},{name:"index",type:"U256"},{isHistoric:!0,isOptional:!0,name:"number",type:"BlockNumber"}],type:"H256"},getTransactionByBlockHashAndIndex:{description:"Returns transaction at given block hash and index.",params:[{name:"hash",type:"H256"},{name:"index",type:"U256"}],type:"EthTransaction"},getTransactionByBlockNumberAndIndex:{description:"Returns transaction by given block number and index.",params:[{name:"number",type:"BlockNumber"},{name:"index",type:"U256"}],type:"EthTransaction"},getTransactionByHash:{description:"Get transaction by its hash.",params:[{name:"hash",type:"H256"}],type:"EthTransaction"},getTransactionCount:{description:"Returns the number of transactions sent from given address at given time (block number).",params:[{name:"hash",type:"H256"},{isHistoric:!0,isOptional:!0,name:"number",type:"BlockNumber"}],type:"U256"},getTransactionReceipt:{description:"Returns transaction receipt by transaction hash.",params:[{name:"hash",type:"H256"}],type:"EthReceipt"},getUncleByBlockHashAndIndex:{description:"Returns an uncles at given block and index.",params:[{name:"hash",type:"H256"},{name:"index",type:"U256"}],type:"EthRichBlock"},getUncleByBlockNumberAndIndex:{description:"Returns an uncles at given block and index.",params:[{name:"number",type:"BlockNumber"},{name:"index",type:"U256"}],type:"EthRichBlock"},getUncleCountByBlockHash:{description:"Returns the number of uncles in a block with given hash.",params:[{name:"hash",type:"H256"}],type:"U256"},getUncleCountByBlockNumber:{description:"Returns the number of uncles in a block with given block number.",params:[{name:"number",type:"BlockNumber"}],type:"U256"},getWork:{description:"Returns the hash of the current block, the seedHash, and the boundary condition to be met.",params:[],type:"EthWork"},hashrate:{description:"Returns the number of hashes per second that the node is mining with.",params:[],type:"U256"},maxPriorityFeePerGas:{description:"Returns max priority fee per gas",params:[],type:"U256"},mining:{description:"Returns true if client is actively mining new blocks.",params:[],type:"bool"},newBlockFilter:{description:"Returns id of new block filter.",params:[],type:"U256"},newFilter:{description:"Returns id of new filter.",params:[{name:"filter",type:"EthFilter"}],type:"U256"},newPendingTransactionFilter:{description:"Returns id of new block filter.",params:[],type:"U256"},protocolVersion:{description:"Returns protocol version encoded as a string (quotes are necessary).",params:[],type:"u64"},sendRawTransaction:{description:"Sends signed transaction, returning its hash.",params:[{name:"bytes",type:"Bytes"}],type:"H256"},sendTransaction:{description:"Sends transaction; will block waiting for signer to return the transaction hash",params:[{name:"tx",type:"EthTransactionRequest"}],type:"H256"},submitHashrate:{description:"Used for submitting mining hashrate.",params:[{name:"index",type:"U256"},{name:"hash",type:"H256"}],type:"bool"},submitWork:{description:"Used for submitting a proof-of-work solution.",params:[{name:"nonce",type:"H64"},{name:"headerHash",type:"H256"},{name:"mixDigest",type:"H256"}],type:"bool"},subscribe:{description:"Subscribe to Eth subscription.",params:[{name:"kind",type:"EthSubKind"},{isOptional:!0,name:"params",type:"EthSubParams"}],pubsub:["subscription","subscribe","unsubscribe"],type:"Null"},syncing:{description:"Returns an object with data about the sync status or false.",params:[],type:"EthSyncStatus"},uninstallFilter:{description:"Uninstalls filter.",params:[{name:"index",type:"U256"}],type:"bool"}});t.rpc=n},44830:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.runtime=void 0,t.runtime={ConvertTransactionRuntimeApi:[{methods:{convert_transaction:{description:"Converts an Ethereum-style transaction to Extrinsic",params:[{name:"transaction",type:"TransactionV2"}],type:"Extrinsic"}},version:2}],DebugRuntimeApi:[{methods:{trace_block:{description:"Trace all block extrinsics",params:[{name:"extrinsics",type:"Vec<Extrinsic>"},{name:"knownTransactions",type:"Vec<H256>"}],type:"Result<(), DispatchError>"},trace_transaction:{description:"Trace transaction extrinsics",params:[{name:"extrinsics",type:"Vec<Extrinsic>"},{name:"transaction",type:"EthTransaction"}],type:"Result<(), DispatchError>"}},version:4}],EthereumRuntimeRPCApi:[{methods:{account_basic:{description:"Returns pallet_evm::Accounts by address.",params:[{name:"address",type:"H160"}],type:"EvmAccount"},account_code_at:{description:"For a given account address, returns pallet_evm::AccountCodes.",params:[{name:"address",type:"H160"}],type:"Bytes"},author:{description:"Returns the converted FindAuthor::find_author authority id.",params:[],type:"H160"},call:{description:"Returns a frame_ethereum::call response. If `estimate` is true,",params:[{name:"from",type:"H160"},{name:"to",type:"H160"},{name:"data",type:"Vec<u8>"},{name:"value",type:"U256"},{name:"gasLimit",type:"U256"},{name:"maxFeePerGas",type:"Option<U256>"},{name:"maxPriorityFeePerGas",type:"Option<U256>"},{name:"nonce",type:"Option<U256>"},{name:"estimate",type:"bool"},{name:"accessList",type:"Option<Vec<(H160, Vec<H256>)>>"}],type:"Result<EvmCallInfo, DispatchError>"},chain_id:{description:"Returns runtime defined pallet_evm::ChainId.",params:[],type:"u64"},create:{description:"Returns a frame_ethereum::call response. If `estimate` is true,",params:[{name:"from",type:"H160"},{name:"data",type:"Vec<u8>"},{name:"value",type:"U256"},{name:"gasLimit",type:"U256"},{name:"maxFeePerGas",type:"Option<U256>"},{name:"maxPriorityFeePerGas",type:"Option<U256>"},{name:"nonce",type:"Option<U256>"},{name:"estimate",type:"bool"},{name:"accessList",type:"Option<Vec<(H160, Vec<H256>)>>"}],type:"Result<EvmCreateInfo, DispatchError>"},current_all:{description:"Return all the current data for a block in a single runtime call.",params:[],type:"(Option<BlockV2>, Option<Vec<EthReceiptV3>>, Option<Vec<EthTransactionStatus>>)"},current_block:{description:"Return the current block.",params:[],type:"BlockV2"},current_receipts:{description:"Return the current receipt.",params:[],type:"Option<Vec<EthReceiptV3>>"},current_transaction_statuses:{description:"Return the current transaction status.",params:[],type:"Option<Vec<EthTransactionStatus>>"},elasticity:{description:"Return the elasticity multiplier.",params:[],type:"Option<Permill>"},extrinsic_filter:{description:"Receives a `Vec<OpaqueExtrinsic>` and filters all the ethereum transactions.",params:[{name:"xts",type:"Vec<Extrinsic>"}],type:"Vec<TransactionV2>"},gas_price:{description:"Returns FixedGasPrice::min_gas_price",params:[],type:"u256"},storage_at:{description:"For a given account address and index, returns pallet_evm::AccountStorages.",params:[{name:"address",type:"H160"},{name:"index",type:"u256"}],type:"H256"}},version:4}]}},22761:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{EvmAccount:{nonce:"u256",balance:"u256"},EvmCallInfo:{exitReason:"ExitReason",value:"Bytes",usedGas:"U256",logs:"Vec<EvmLog>"},EvmCreateInfo:{exitReason:"ExitReason",value:"H160",usedGas:"U256",logs:"Vec<EvmLog>"},EvmLog:{address:"H160",topics:"Vec<H256>",data:"Bytes"},EvmVicinity:{gasPrice:"u256",origin:"H160"},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text"}},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},ExitReason:{_enum:{Succeed:"ExitSucceed",Error:"ExitError",Revert:"ExitRevert",Fatal:"ExitFatal"}},ExitRevert:{_enum:["Reverted"]},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]}}}},35178:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{Extrinsic:"GenericExtrinsic",ExtrinsicEra:"GenericExtrinsicEra",ExtrinsicPayload:"GenericExtrinsicPayload",ExtrinsicSignature:"MultiSignature",ExtrinsicV4:"GenericExtrinsicV4",ExtrinsicPayloadV4:"GenericExtrinsicPayloadV4",ExtrinsicSignatureV4:"GenericExtrinsicSignatureV4",ExtrinsicUnknown:"GenericExtrinsicUnknown",ExtrinsicPayloadUnknown:"GenericExtrinsicPayloadUnknown",Era:"ExtrinsicEra",ImmortalEra:"GenericImmortalEra",MortalEra:"GenericMortalEra",AnySignature:"H512",MultiSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature",Ecdsa:"EcdsaSignature"}},Signature:"H512",SignerPayload:"GenericSignerPayload",EcdsaSignature:"[u8; 65]",Ed25519Signature:"H512",Sr25519Signature:"H512"}}},21802:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={rpc:{},runtime:r(4922).runtime,types:{}};t.default=n},4922:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.runtime=void 0;const r={methods:{best_finalized:{description:"Returns number and hash of the best finalized header known to the bridge module.",params:[],type:"(BlockNumber, Hash)"}},version:1},n={KusamaFinalityApi:[r],PolkadotFinalityApi:[r],RococoFinalityApi:[r],WestendFinalityApi:[r]};t.runtime=n},19360:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{AssetOptions:{initalIssuance:"Compact<Balance>",permissions:"PermissionLatest"},Owner:{_enum:{None:"Null",Address:"AccountId"}},PermissionsV1:{update:"Owner",mint:"Owner",burn:"Owner"},PermissionVersions:{_enum:{V1:"PermissionsV1"}},PermissionLatest:"PermissionsV1"}}},79785:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{ActiveGilt:{proportion:"Perquintill",amount:"Balance",who:"AccountId",expiry:"BlockNumber"},ActiveGiltsTotal:{frozen:"Balance",proportion:"Perquintill",index:"ActiveIndex",target:"Perquintill"},ActiveIndex:"u32",GiltBid:{amount:"Balance",who:"AccountId"}}}},74386:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(53263),i=r(44210),o={rpc:n.rpc,runtime:i.runtime,types:{AuthorityIndex:"u64",AuthorityList:"Vec<NextAuthority>",AuthoritySet:{currentAuthorities:"AuthorityList",setId:"u64",pendingStandardChanges:"ForkTreePendingChange",pendingForcedChanges:"Vec<PendingChange>",authoritySetChanges:"AuthoritySetChanges"},ForkTreePendingChange:{roots:"Vec<ForkTreePendingChangeNode>",bestFinalizedNumber:"Option<BlockNumber>"},ForkTreePendingChangeNode:{hash:"BlockHash",number:"BlockNumber",data:"PendingChange",children:"Vec<ForkTreePendingChangeNode>"},AuthoritySetChange:"(U64, BlockNumber)",AuthoritySetChanges:"Vec<AuthoritySetChange>",AuthorityWeight:"u64",DelayKind:{_enum:{Finalized:"Null",Best:"DelayKindBest"}},DelayKindBest:{medianLastFinalized:"BlockNumber"},EncodedFinalityProofs:"Bytes",GrandpaEquivocation:{_enum:{Prevote:"GrandpaEquivocationValue",Precommit:"GrandpaEquivocationValue"}},GrandpaEquivocationProof:{setId:"SetId",equivocation:"GrandpaEquivocation"},GrandpaEquivocationValue:{roundNumber:"u64",identity:"AuthorityId",first:"(GrandpaPrevote, AuthoritySignature)",second:"(GrandpaPrevote, AuthoritySignature)"},GrandpaPrevote:{targetHash:"Hash",targetNumber:"BlockNumber"},GrandpaCommit:{targetHash:"BlockHash",targetNumber:"BlockNumber",precommits:"Vec<GrandpaSignedPrecommit>"},GrandpaPrecommit:{targetHash:"BlockHash",targetNumber:"BlockNumber"},GrandpaSignedPrecommit:{precommit:"GrandpaPrecommit",signature:"AuthoritySignature",id:"AuthorityId"},GrandpaJustification:{round:"u64",commit:"GrandpaCommit",votesAncestries:"Vec<Header>"},JustificationNotification:"Bytes",KeyOwnerProof:"MembershipProof",NextAuthority:"(AuthorityId, AuthorityWeight)",PendingChange:{nextAuthorities:"AuthorityList",delay:"BlockNumber",canonHeight:"BlockNumber",canonHash:"BlockHash",delayKind:"DelayKind"},PendingPause:{scheduledAt:"BlockNumber",delay:"BlockNumber"},PendingResume:{scheduledAt:"BlockNumber",delay:"BlockNumber"},Precommits:{currentWeight:"u32",missing:"BTreeSet<AuthorityId>"},Prevotes:{currentWeight:"u32",missing:"BTreeSet<AuthorityId>"},ReportedRoundStates:{setId:"u32",best:"RoundState",background:"Vec<RoundState>"},RoundState:{round:"u32",totalWeight:"u32",thresholdWeight:"u32",prevotes:"Prevotes",precommits:"Precommits"},SetId:"u64",StoredPendingChange:{scheduledAt:"BlockNumber",delay:"BlockNumber",nextAuthorities:"AuthorityList"},StoredState:{_enum:{Live:"Null",PendingPause:"PendingPause",Paused:"Null",PendingResume:"PendingResume"}}}};t.default=o},53263:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rpc=void 0,t.rpc={proveFinality:{description:"Prove finality for the given block number, returning the Justification for the last block in the set.",params:[{name:"blockNumber",type:"BlockNumber"}],type:"Option<EncodedFinalityProofs>"},roundState:{description:"Returns the state of the current best round state as well as the ongoing background rounds",params:[],type:"ReportedRoundStates"},subscribeJustifications:{description:"Subscribes to grandpa justifications",params:[],pubsub:["justifications","subscribeJustifications","unsubscribeJustifications"],type:"JustificationNotification"}}},44210:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.runtime=void 0;const n={generate_key_ownership_proof:{description:"Generates a proof of key ownership for the given authority in the given set.",params:[{name:"setId",type:"SetId"},{name:"authorityId",type:"AuthorityId"}],type:"Option<OpaqueKeyOwnershipProof>"},grandpa_authorities:{description:"Get the current GRANDPA authorities and weights. This should not change except for when changes are scheduled and the corresponding delay has passed.",params:[],type:"AuthorityList"},submit_report_equivocation_unsigned_extrinsic:{description:"Submits an unsigned extrinsic to report an equivocation.",params:[{name:"equivocationProof",type:"GrandpaEquivocationProof"},{name:"keyOwnerProof",type:"OpaqueKeyOwnershipProof"}],type:"Option<Null>"}},i={GrandpaApi:[{methods:(0,r(57026).objectSpread)({current_set_id:{description:"Get current GRANDPA authority set id.",params:[],type:"SetId"}},n),version:3},{methods:n,version:2}]};t.runtime=i},74505:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{IdentityFields:{_set:{_bitLength:64,Display:1,Legal:2,Web:4,Riot:8,Email:16,PgpFingerprint:32,Image:64,Twitter:128}},IdentityInfoAdditional:"(Data, Data)",IdentityInfoTo198:{additional:"Vec<IdentityInfoAdditional>",display:"Data",legal:"Data",web:"Data",riot:"Data",email:"Data",pgpFingerprint:"Option<H160>",image:"Data"},IdentityInfo:{_fallback:"IdentityInfoTo198",additional:"Vec<IdentityInfoAdditional>",display:"Data",legal:"Data",web:"Data",riot:"Data",email:"Data",pgpFingerprint:"Option<H160>",image:"Data",twitter:"Data"},IdentityJudgement:{_enum:{Unknown:"Null",FeePaid:"Balance",Reasonable:"Null",KnownGood:"Null",OutOfDate:"Null",LowQuality:"Null",Erroneous:"Null"}},RegistrationJudgement:"(RegistrarIndex, IdentityJudgement)",RegistrationTo198:{judgements:"Vec<RegistrationJudgement>",deposit:"Balance",info:"IdentityInfoTo198"},Registration:{_fallback:"RegistrationTo198",judgements:"Vec<RegistrationJudgement>",deposit:"Balance",info:"IdentityInfo"},RegistrarIndex:"u32",RegistrarInfo:{account:"AccountId",fee:"Balance",fields:"IdentityFields"}}}},1508:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{AuthIndex:"u32",AuthoritySignature:"Signature",Heartbeat:{blockNumber:"BlockNumber",networkState:"OpaqueNetworkState",sessionIndex:"SessionIndex",authorityIndex:"AuthIndex",validatorsLen:"u32"},HeartbeatTo244:{blockNumber:"BlockNumber",networkState:"OpaqueNetworkState",sessionIndex:"SessionIndex",authorityIndex:"AuthIndex"},OpaqueMultiaddr:"Opaque<Bytes>",OpaquePeerId:"Opaque<Bytes>",OpaqueNetworkState:{peerId:"OpaquePeerId",externalAddresses:"Vec<OpaqueMultiaddr>"}}}},73745:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(57026),i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=o(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(n,a,s):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(2272));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}const a={};Object.keys(i).forEach((e=>Object.entries(i[e].rpc||{}).forEach((t=>{let[r,i]=t;const o=i.aliasSection||e;a[o]||(a[o]={}),a[o][r]=(0,n.objectSpread)({},i,{isSubscription:!!i.pubsub,jsonrpc:`${o}_${r}`,method:r,section:o})}))));var s=a;t.default=s},67360:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{CallIndex:"(u8, u8)",LotteryConfig:{price:"Balance",start:"BlockNumber",length:"BlockNumber",delay:"BlockNumber",repeat:"bool"}}}},76102:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AllHashers",{enumerable:!0,get:function(){return i.AllHashers}}),t.default=void 0;var n=r(57026),i=r(56697),o=r(81158),a=r(64649),s=r(16476),u=r(77850),c=r(15939),f=r(15461),l=r(7946),d={rpc:{},runtime:o.runtime,types:(0,n.objectSpread)({},a.v9,s.v10,u.v11,c.v12,f.v13,l.v14,{ErrorMetadataLatest:"ErrorMetadataV14",EventMetadataLatest:"EventMetadataV14",ExtrinsicMetadataLatest:"ExtrinsicMetadataV14",FunctionArgumentMetadataLatest:"FunctionArgumentMetadataV14",FunctionMetadataLatest:"FunctionMetadataV14",MetadataLatest:"MetadataV14",PalletCallMetadataLatest:"PalletCallMetadataV14",PalletConstantMetadataLatest:"PalletConstantMetadataV14",PalletErrorMetadataLatest:"PalletErrorMetadataV14",PalletEventMetadataLatest:"PalletEventMetadataV14",PalletMetadataLatest:"PalletMetadataV14",PalletStorageMetadataLatest:"PalletStorageMetadataV14",PortableType:"PortableTypeV14",SignedExtensionMetadataLatest:"SignedExtensionMetadataV14",StorageEntryMetadataLatest:"StorageEntryMetadataV14",StorageEntryModifierLatest:"StorageEntryModifierV14",StorageEntryTypeLatest:"StorageEntryTypeV14",StorageHasher:"StorageHasherV14",OpaqueMetadata:"Opaque<Bytes>",MetadataAll:{_enum:{V0:"DoNotConstruct<MetadataV0>",V1:"DoNotConstruct<MetadataV1>",V2:"DoNotConstruct<MetadataV2>",V3:"DoNotConstruct<MetadataV3>",V4:"DoNotConstruct<MetadataV4>",V5:"DoNotConstruct<MetadataV5>",V6:"DoNotConstruct<MetadataV6>",V7:"DoNotConstruct<MetadataV7>",V8:"DoNotConstruct<MetadataV8>",V9:"MetadataV9",V10:"MetadataV10",V11:"MetadataV11",V12:"MetadataV12",V13:"MetadataV13",V14:"MetadataV14"}}})};t.default=d},56697:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AllHashers=void 0,t.AllHashers={Blake2_128:null,Blake2_256:null,Blake2_128Concat:null,Twox128:null,Twox256:null,Twox64Concat:null,Identity:null}},81158:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.runtime=void 0,t.runtime={Metadata:[{methods:{metadata:{description:"Returns the metadata of a runtime",params:[],type:"OpaqueMetadata"}},version:1}]}},16476:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.v10=void 0,t.v10={ErrorMetadataV10:"ErrorMetadataV9",EventMetadataV10:"EventMetadataV9",FunctionArgumentMetadataV10:"FunctionArgumentMetadataV9",FunctionMetadataV10:"FunctionMetadataV9",MetadataV10:{modules:"Vec<ModuleMetadataV10>"},ModuleConstantMetadataV10:"ModuleConstantMetadataV9",ModuleMetadataV10:{name:"Text",storage:"Option<StorageMetadataV10>",calls:"Option<Vec<FunctionMetadataV10>>",events:"Option<Vec<EventMetadataV10>>",constants:"Vec<ModuleConstantMetadataV10>",errors:"Vec<ErrorMetadataV10>"},StorageEntryModifierV10:"StorageEntryModifierV9",StorageEntryMetadataV10:{name:"Text",modifier:"StorageEntryModifierV10",type:"StorageEntryTypeV10",fallback:"Bytes",docs:"Vec<Text>"},StorageEntryTypeV10:{_enum:{Plain:"Type",Map:{hasher:"StorageHasherV10",key:"Type",value:"Type",linked:"bool"},DoubleMap:{hasher:"StorageHasherV10",key1:"Type",key2:"Type",value:"Type",key2Hasher:"StorageHasherV10"}}},StorageMetadataV10:{prefix:"Text",items:"Vec<StorageEntryMetadataV10>"},StorageHasherV10:{_enum:{Blake2_128:null,Blake2_256:null,Blake2_128Concat:null,Twox128:null,Twox256:null,Twox64Concat:null}}}},77850:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.v11=void 0;const n={ErrorMetadataV11:"ErrorMetadataV10",EventMetadataV11:"EventMetadataV10",ExtrinsicMetadataV11:{version:"u8",signedExtensions:"Vec<Text>"},FunctionArgumentMetadataV11:"FunctionArgumentMetadataV10",FunctionMetadataV11:"FunctionMetadataV10",MetadataV11:{modules:"Vec<ModuleMetadataV11>",extrinsic:"ExtrinsicMetadataV11"},ModuleConstantMetadataV11:"ModuleConstantMetadataV10",ModuleMetadataV11:{name:"Text",storage:"Option<StorageMetadataV11>",calls:"Option<Vec<FunctionMetadataV11>>",events:"Option<Vec<EventMetadataV11>>",constants:"Vec<ModuleConstantMetadataV11>",errors:"Vec<ErrorMetadataV11>"},StorageEntryModifierV11:"StorageEntryModifierV10",StorageEntryMetadataV11:{name:"Text",modifier:"StorageEntryModifierV11",type:"StorageEntryTypeV11",fallback:"Bytes",docs:"Vec<Text>"},StorageEntryTypeV11:{_enum:{Plain:"Type",Map:{hasher:"StorageHasherV11",key:"Type",value:"Type",linked:"bool"},DoubleMap:{hasher:"StorageHasherV11",key1:"Type",key2:"Type",value:"Type",key2Hasher:"StorageHasherV11"}}},StorageMetadataV11:{prefix:"Text",items:"Vec<StorageEntryMetadataV11>"},StorageHasherV11:{_enum:r(56697).AllHashers}};t.v11=n},15939:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.v12=void 0,t.v12={ErrorMetadataV12:"ErrorMetadataV11",EventMetadataV12:"EventMetadataV11",ExtrinsicMetadataV12:"ExtrinsicMetadataV11",FunctionArgumentMetadataV12:"FunctionArgumentMetadataV11",FunctionMetadataV12:"FunctionMetadataV11",MetadataV12:{modules:"Vec<ModuleMetadataV12>",extrinsic:"ExtrinsicMetadataV12"},ModuleConstantMetadataV12:"ModuleConstantMetadataV11",ModuleMetadataV12:{name:"Text",storage:"Option<StorageMetadataV12>",calls:"Option<Vec<FunctionMetadataV12>>",events:"Option<Vec<EventMetadataV12>>",constants:"Vec<ModuleConstantMetadataV12>",errors:"Vec<ErrorMetadataV12>",index:"u8"},StorageEntryModifierV12:"StorageEntryModifierV11",StorageEntryMetadataV12:"StorageEntryMetadataV11",StorageEntryTypeV12:"StorageEntryTypeV11",StorageMetadataV12:"StorageMetadataV11",StorageHasherV12:"StorageHasherV11"}},15461:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.v13=void 0,t.v13={ErrorMetadataV13:"ErrorMetadataV12",EventMetadataV13:"EventMetadataV12",ExtrinsicMetadataV13:"ExtrinsicMetadataV12",FunctionArgumentMetadataV13:"FunctionArgumentMetadataV12",FunctionMetadataV13:"FunctionMetadataV12",MetadataV13:{modules:"Vec<ModuleMetadataV13>",extrinsic:"ExtrinsicMetadataV13"},ModuleConstantMetadataV13:"ModuleConstantMetadataV12",ModuleMetadataV13:{name:"Text",storage:"Option<StorageMetadataV13>",calls:"Option<Vec<FunctionMetadataV13>>",events:"Option<Vec<EventMetadataV13>>",constants:"Vec<ModuleConstantMetadataV13>",errors:"Vec<ErrorMetadataV13>",index:"u8"},StorageEntryModifierV13:"StorageEntryModifierV12",StorageEntryMetadataV13:{name:"Text",modifier:"StorageEntryModifierV13",type:"StorageEntryTypeV13",fallback:"Bytes",docs:"Vec<Text>"},StorageEntryTypeV13:{_enum:{Plain:"Type",Map:{hasher:"StorageHasherV13",key:"Type",value:"Type",linked:"bool"},DoubleMap:{hasher:"StorageHasherV13",key1:"Type",key2:"Type",value:"Type",key2Hasher:"StorageHasherV13"},NMap:{keyVec:"Vec<Type>",hashers:"Vec<StorageHasherV13>",value:"Type"}}},StorageMetadataV13:{prefix:"Text",items:"Vec<StorageEntryMetadataV13>"},StorageHasherV13:"StorageHasherV12"}},7946:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.v14=void 0;var n=r(57026),i=r(75917);const o={PortableTypeV14:{id:"Si1LookupTypeId",type:"Si1Type"},ErrorMetadataV14:(0,n.objectSpread)({},i.Si1Variant,{args:"Vec<Type>"}),EventMetadataV14:(0,n.objectSpread)({},i.Si1Variant,{args:"Vec<Type>"}),FunctionArgumentMetadataV14:{name:"Text",type:"Type",typeName:"Option<Type>"},FunctionMetadataV14:(0,n.objectSpread)({},i.Si1Variant,{args:"Vec<FunctionArgumentMetadataV14>"}),ExtrinsicMetadataV14:{type:"SiLookupTypeId",version:"u8",signedExtensions:"Vec<SignedExtensionMetadataV14>"},MetadataV14:{lookup:"PortableRegistry",pallets:"Vec<PalletMetadataV14>",extrinsic:"ExtrinsicMetadataV14",type:"SiLookupTypeId"},PalletCallMetadataV14:{type:"SiLookupTypeId"},PalletConstantMetadataV14:{name:"Text",type:"SiLookupTypeId",value:"Bytes",docs:"Vec<Text>"},PalletErrorMetadataV14:{type:"SiLookupTypeId"},PalletEventMetadataV14:{type:"SiLookupTypeId"},PalletMetadataV14:{name:"Text",storage:"Option<PalletStorageMetadataV14>",calls:"Option<PalletCallMetadataV14>",events:"Option<PalletEventMetadataV14>",constants:"Vec<PalletConstantMetadataV14>",errors:"Option<PalletErrorMetadataV14>",index:"u8"},PalletStorageMetadataV14:{prefix:"Text",items:"Vec<StorageEntryMetadataV14>"},SignedExtensionMetadataV14:{identifier:"Text",type:"SiLookupTypeId",additionalSigned:"SiLookupTypeId"},StorageEntryMetadataV14:{name:"Text",modifier:"StorageEntryModifierV14",type:"StorageEntryTypeV14",fallback:"Bytes",docs:"Vec<Text>"},StorageEntryModifierV14:"StorageEntryModifierV13",StorageEntryTypeV14:{_enum:{Plain:"SiLookupTypeId",Map:{hashers:"Vec<StorageHasherV14>",key:"SiLookupTypeId",value:"SiLookupTypeId"}}},StorageHasherV14:"StorageHasherV13"};t.v14=o},64649:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.v9=void 0,t.v9={ErrorMetadataV9:{name:"Text",docs:"Vec<Text>"},EventMetadataV9:{name:"Text",args:"Vec<Type>",docs:"Vec<Text>"},FunctionArgumentMetadataV9:{name:"Text",type:"Type"},FunctionMetadataV9:{name:"Text",args:"Vec<FunctionArgumentMetadataV9>",docs:"Vec<Text>"},MetadataV9:{modules:"Vec<ModuleMetadataV9>"},ModuleConstantMetadataV9:{name:"Text",type:"Type",value:"Bytes",docs:"Vec<Text>"},ModuleMetadataV9:{name:"Text",storage:"Option<StorageMetadataV9>",calls:"Option<Vec<FunctionMetadataV9>>",events:"Option<Vec<EventMetadataV9>>",constants:"Vec<ModuleConstantMetadataV9>",errors:"Vec<ErrorMetadataV9>"},StorageEntryMetadataV9:{name:"Text",modifier:"StorageEntryModifierV9",type:"StorageEntryTypeV9",fallback:"Bytes",docs:"Vec<Text>"},StorageEntryModifierV9:{_enum:["Optional","Default","Required"]},StorageEntryTypeV9:{_enum:{Plain:"Type",Map:{hasher:"StorageHasherV9",key:"Type",value:"Type",linked:"bool"},DoubleMap:{hasher:"StorageHasherV9",key1:"Type",key2:"Type",value:"Type",key2Hasher:"StorageHasherV9"}}},StorageHasherV9:{_enum:{Blake2_128:null,Blake2_256:null,Twox128:null,Twox256:null,Twox64Concat:null}},StorageMetadataV9:{prefix:"Text",items:"Vec<StorageEntryMetadataV9>"}}},73698:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(83399),i=r(86937),o={rpc:n.rpc,runtime:i.runtime,types:{MmrBatchProof:{leafIndices:"Vec<MmrLeafIndex>",leafCount:"MmrNodeIndex",items:"Vec<Hash>"},MmrEncodableOpaqueLeaf:"Bytes",MmrError:{_enum:["Push","GetRoot","Commit","GenerateProof","Verify","LeafNotFound"," PalletNotIncluded","InvalidLeafIndex"]},MmrLeafBatchProof:{blockHash:"BlockHash",leaves:"Bytes",proof:"Bytes"},MmrLeafIndex:"u64",MmrLeafProof:{blockHash:"BlockHash",leaf:"Bytes",proof:"Bytes"},MmrNodeIndex:"u64",MmrProof:{leafIndex:"MmrLeafIndex",leafCount:"MmrNodeIndex",items:"Vec<Hash>"}}};t.default=o},83399:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rpc=void 0,t.rpc={generateBatchProof:{description:"Generate MMR proof for the given leaf indices.",params:[{name:"leafIndices",type:"Vec<u64>"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"MmrLeafProof"},generateProof:{description:"Generate MMR proof for given leaf index.",params:[{name:"leafIndex",type:"u64"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"MmrLeafBatchProof"}}},86937:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.runtime=void 0,t.runtime={MmrApi:[{methods:{generate_batch_proof:{description:"Generate MMR proof for a series of leaves under given indices.",params:[{name:"leafIndices",type:"Vec<MmrLeafIndex>"}],type:"Result<(Vec<MmrEncodableOpaqueLeaf>, MmrBatchProof), MmrError>"},generate_proof:{description:"Generate MMR proof for a leaf under given index.",params:[{name:"leafIndex",type:"MmrLeafIndex"}],type:"Result<(MmrEncodableOpaqueLeaf, MmrProof), MmrError>"},mmr_root:{description:"Return the on-chain MMR root hash.",params:[],type:"Result<Hash, MmrError>"},verify_batch_proof:{description:"Verify MMR proof against on-chain MMR for a batch of leaves.",params:[{name:"leaves",type:"Vec<MmrEncodableOpaqueLeaf>"},{name:"proof",type:"MmrBatchProof"}],type:"Result<(), MmrError>"},verify_batch_proof_stateless:{description:"Verify MMR proof against given root hash or a batch of leaves.",params:[{name:"root",type:"Hash"},{name:"leaves",type:"Vec<MmrEncodableOpaqueLeaf>"},{name:"proof",type:"MmrBatchProof"}],type:"Result<(), MmrError>"},verify_proof:{description:"Verify MMR proof against on-chain MMR.",params:[{name:"leaf",type:"MmrEncodableOpaqueLeaf"},{name:"proof",type:"MmrProof"}],type:"Result<(), MmrError>"},verify_proof_stateless:{description:"Verify MMR proof against given root hash.",params:[{name:"root",type:"Hash"},{name:"leaf",type:"MmrEncodableOpaqueLeaf"},{name:"proof",type:"MmrProof"}],type:"Result<(), MmrError>"}},version:1}]}},86304:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={rpc:{},runtime:r(54340).runtime,types:{}};t.default=n},54340:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.runtime=void 0,t.runtime={AuthorFilterAPI:[{methods:{can_author:{description:"The runtime api used to predict whether an author will be eligible in the given slot",params:[{name:"author",type:"AccountId"},{name:"relayParent",type:"u32"},{name:"parentHeader",type:"Header"}],type:"bool"}},version:2},{methods:{can_author:{description:"The runtime api used to predict whether an author will be eligible in the given slot",params:[{name:"author",type:"AccountId"},{name:"relayParent",type:"u32"}],type:"bool"}},version:1}],NimbusApi:[{methods:{can_author:{description:"The runtime api used to predict whether a Nimbus author will be eligible in the given slot",params:[{name:"author",type:"AccountId"},{name:"relayParent",type:"u32"},{name:"parentHeader",type:"Header"}],type:"bool"}},version:1}]}},42566:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={rpc:{},runtime:r(78530).runtime,types:{NpApiError:{_enum:["MemberNotFound","OverflowInPendingRewards"]}}};t.default=n},78530:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.runtime=void 0,t.runtime={NominationPoolsApi:[{methods:{pending_rewards:{description:"Returns the pending rewards for the given member.",params:[{name:"member",type:"AccountId"}],type:"Balance"}},version:1}]}},15370:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(95086),i=r(54185),o={rpc:n.rpc,runtime:i.runtime,types:{StorageKind:{_enum:{PERSISTENT:1,LOCAL:2}}}};t.default=o},95086:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rpc=void 0,t.rpc={localStorageGet:{description:"Get offchain local storage under given key and prefix",params:[{name:"kind",type:"StorageKind"},{name:"key",type:"Bytes"}],type:"Option<Bytes>"},localStorageSet:{description:"Set offchain local storage under given key and prefix",params:[{name:"kind",type:"StorageKind"},{name:"key",type:"Bytes"},{name:"value",type:"Bytes"}],type:"Null"}}},54185:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.runtime=void 0,t.runtime={OffchainWorkerApi:[{methods:{offchain_worker:{description:"Starts the off-chain task for given block header.",params:[{name:"header",type:"Header"}],type:"Null"}},version:2},{methods:{offchain_worker:{description:"Starts the off-chain task for given block header.",params:[{name:"number",type:"BlockNumber"}],type:"Null"}},version:1}]}},85645:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{DeferredOffenceOf:"(Vec<OffenceDetails>, Vec<Perbill>, SessionIndex)",Kind:"[u8; 16]",OffenceDetails:{offender:"Offender",reporters:"Vec<Reporter>"},Offender:"IdentificationTuple",OpaqueTimeSlot:"Bytes",ReportIdOf:"Hash",Reporter:"AccountId"}}},43569:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={rpc:{},runtime:r(58769).runtime,types:{}};t.default=n},58769:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.runtime=void 0,t.runtime={OracleApi:[{methods:{get_all_values:{description:"Retrieves all values",params:[{name:"providerId",type:"Raw"}],type:"Raw"},get_value:{description:"Retrieves a single value",params:[{name:"providerId",type:"Raw"},{name:"key",type:"Raw"}],type:"Option<Raw>"}},version:1}]}},35709:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={rpc:{},runtime:r(29716).runtime,types:{}};t.default=n},29716:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.runtime=void 0,t.runtime={TokensApi:[{methods:{query_existential_deposit:{description:"Query the existential amount for a specific currency",params:[{name:"currencyId",type:"Raw"}],type:"u128"}},version:1}]}},20814:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(57026),o=n(r(7758)),a=r(34546),s=n(r(44358)),u={rpc:{},runtime:a.runtime,types:(0,i.objectSpread)({},{ServiceQuality:{_enum:["Ordered","Fast"]}},{DisputeLocation:{_enum:["Local","Remote"]},DisputeResult:{_enum:["Valid","Invalid"]},DisputeState:{validatorsFor:"BitVec",validatorsAgainst:"BitVec",start:"BlockNumber",concludedAt:"Option<BlockNumber>"},DisputeStatement:{_enum:{Valid:"ValidDisputeStatementKind",Invalid:"InvalidDisputeStatementKind"}},DisputeStatementSet:{candidateHash:"CandidateHash",session:"SessionIndex",statements:"Vec<(DisputeStatement, ParaValidatorIndex, ValidatorSignature)>"},ExplicitDisputeStatement:{valid:"bool",candidateHash:"CandidateHash",session:"SessionIndex"},InvalidDisputeStatementKind:{_enum:["Explicit"]},MultiDisputeStatementSet:"Vec<DisputeStatementSet>",ValidDisputeStatementKind:{_enum:{Explicit:"Null",BackingSeconded:"Hash",BackingValid:"Hash",ApprovalChecking:"Null"}}},o.default,{ParachainProposal:{proposer:"AccountId",genesisHead:"HeadData",validators:"Vec<ValidatorId>",name:"Bytes",balance:"Balance"},RegisteredParachainInfo:{validators:"Vec<ValidatorId>",proposer:"AccountId"}},s.default,{AbridgedCandidateReceipt:{parachainIndex:"ParaId",relayParent:"Hash",headData:"HeadData",collator:"CollatorId",signature:"CollatorSignature",povBlockHash:"Hash",commitments:"CandidateCommitments"},AbridgedHostConfiguration:{maxCodeSize:"u32",maxHeadDataSize:"u32",maxUpwardQueueCount:"u32",maxUpwardQueueSize:"u32",maxUpwardMessageSize:"u32",maxUpwardMessageNumPerCandidate:"u32",hrmpMaxMessageNumPerCandidate:"u32",validationUpgradeFrequency:"BlockNumber",validationUpgradeDelay:"BlockNumber"},AbridgedHrmpChannel:{maxCapacity:"u32",maxTotalSize:"u32",maxMessageSize:"u32",msgCount:"u32",totalSize:"u32",mqcHead:"Option<Hash>"},AssignmentId:"AccountId",AssignmentKind:{_enum:{Parachain:"Null",Parathread:"(CollatorId, u32)"}},AttestedCandidate:{candidate:"AbridgedCandidateReceipt",validityVotes:"Vec<ValidityAttestation>",validatorIndices:"BitVec"},AuthorityDiscoveryId:"AccountId",AvailabilityBitfield:"BitVec",AvailabilityBitfieldRecord:{bitfield:"AvailabilityBitfield",submittedTt:"BlockNumber"},BackedCandidate:{candidate:"CommittedCandidateReceipt",validityVotes:"Vec<ValidityAttestation>",validatorIndices:"BitVec"},BufferedSessionChange:{applyAt:"BlockNumber",validators:"Vec<ValidatorId>",queued:"Vec<ValidatorId>",sessionIndex:"SessionIndex"},CandidateCommitments:{upwardMessages:"Vec<UpwardMessage>",horizontalMessages:"Vec<OutboundHrmpMessage>",newValidationCode:"Option<ValidationCode>",headData:"HeadData",processedDownwardMessages:"u32",hrmpWatermark:"BlockNumber"},CandidateDescriptor:{paraId:"ParaId",relayParent:"RelayChainHash",collatorId:"CollatorId",persistedValidationDataHash:"Hash",povHash:"Hash",erasureRoot:"Hash",signature:"CollatorSignature",paraHead:"Hash",validationCodeHash:"ValidationCodeHash"},CandidateEvent:{_enum:{CandidateBacked:"(CandidateReceipt, HeadData, CoreIndex, GroupIndex)",CandidateIncluded:"(CandidateReceipt, HeadData, CoreIndex, GroupIndex)",CandidateTimedOut:"(CandidateReceipt, HeadData, CoreIndex)"}},CandidateHash:"Hash",CandidateInfo:{who:"AccountId",deposit:"Balance"},CandidatePendingAvailability:{core:"CoreIndex",hash:"CandidateHash",descriptor:"CandidateDescriptor",availabilityVotes:"BitVec",backers:"BitVec",relayParentNumber:"BlockNumber",backedInNumber:"BlockNumber",backingGroup:"GroupIndex"},CandidateReceipt:{descriptor:"CandidateDescriptor",commitmentsHash:"Hash"},GlobalValidationData:{maxCodeSize:"u32",maxHeadDataSize:"u32",blockNumber:"BlockNumber"},CollatorId:"H256",CollatorSignature:"Signature",CommittedCandidateReceipt:{descriptor:"CandidateDescriptor",commitments:"CandidateCommitments"},CoreAssignment:{core:"CoreIndex",paraId:"ParaId",kind:"AssignmentKind",groupIdx:"GroupIndex"},CoreIndex:"u32",CoreOccupied:{_enum:{Parathread:"ParathreadEntry",Parachain:"Null"}},CoreState:{_enum:{Occupied:"OccupiedCore",Scheduled:"ScheduledCore",Free:"Null"}},DoubleVoteReport:{identity:"ValidatorId",first:"(Statement, ValidatorSignature)",second:"(Statement, ValidatorSignature)",proof:"MembershipProof",signingContext:"SigningContext"},DownwardMessage:"Bytes",GroupIndex:"u32",GroupRotationInfo:{sessionStartBlock:"BlockNumber",groupRotationFrequency:"BlockNumber",now:"BlockNumber"},GlobalValidationSchedule:{maxCodeSize:"u32",maxHeadDataSize:"u32",blockNumber:"BlockNumber"},HeadData:"Bytes",HostConfiguration:{maxCodeSize:"u32",maxHeadDataSize:"u32",maxUpwardQueueCount:"u32",maxUpwardQueueSize:"u32",maxUpwardMessageSize:"u32",maxUpwardMessageNumPerCandidate:"u32",hrmpMaxMessageNumPerCandidate:"u32",validationUpgradeFrequency:"BlockNumber",validationUpgradeDelay:"BlockNumber",maxPovSize:"u32",maxDownwardMessageSize:"u32",preferredDispatchableUpwardMessagesStepWeight:"Weight",hrmpMaxParachainOutboundChannels:"u32",hrmpMaxParathreadOutboundChannels:"u32",hrmpOpenRequestTtl:"u32",hrmpSenderDeposit:"Balance",hrmpRecipientDeposit:"Balance",hrmpChannelMaxCapacity:"u32",hrmpChannelMaxTotalSize:"u32",hrmpMaxParachainInboundChannels:"u32",hrmpMaxParathreadInboundChannels:"u32",hrmpChannelMaxMessageSize:"u32",codeRetentionPeriod:"BlockNumber",parathreadCores:"u32",parathreadRetries:"u32",groupRotationFrequency:"BlockNumber",chainAvailabilityPeriod:"BlockNumber",threadAvailabilityPeriod:"BlockNumber",schedulingLookahead:"u32",maxValidatorsPerCore:"Option<u32>",maxValidators:"Option<u32>",disputePeriod:"SessionIndex",disputePostConclusionAcceptancePeriod:"BlockNumber",disputeMaxSpamSlots:"u32",disputeConclusionByTimeOutPeriod:"BlockNumber",noShowSlots:"u32",nDelayTranches:"u32",zerothDelayTrancheWidth:"u32",neededApprovals:"u32",relayVrfModuloSamples:"u32"},InboundDownwardMessage:{pubSentAt:"BlockNumber",pubMsg:"DownwardMessage"},InboundHrmpMessage:{sentAt:"BlockNumber",data:"Bytes"},InboundHrmpMessages:"Vec<InboundHrmpMessage>",LocalValidationData:{parentHead:"HeadData",balance:"Balance",codeUpgradeAllowed:"Option<BlockNumber>"},MessageIngestionType:{downwardMessages:"Vec<InboundDownwardMessage>",horizontalMessages:"BTreeMap<ParaId, InboundHrmpMessages>"},MessageQueueChain:"RelayChainHash",OccupiedCore:{nextUpOnAvailable:"Option<ScheduledCore>",occupiedSince:"BlockNumber",timeOutAt:"BlockNumber",nextUpOnTimeOut:"Option<ScheduledCore>",availability:"BitVec",groupResponsible:"GroupIndex",candidateHash:"CandidateHash",candidateDescriptor:"CandidateDescriptor"},OccupiedCoreAssumption:{_enum:["Included,","TimedOut","Free"]},OutboundHrmpMessage:{recipient:"u32",data:"Bytes"},ParachainDispatchOrigin:{_enum:["Signed","Parachain","Root"]},ParachainInherentData:{validationData:"PersistedValidationData",relayChainState:"StorageProof",downwardMessages:"Vec<InboundDownwardMessage>",horizontalMessages:"BTreeMap<ParaId, VecInboundHrmpMessage>"},ParachainsInherentData:{bitfields:"SignedAvailabilityBitfields",backedCandidates:"Vec<BackedCandidate>",disputes:"MultiDisputeStatementSet",parentHeader:"Header"},ParaGenesisArgs:{genesisHead:"Bytes",validationCode:"Bytes",parachain:"bool"},ParaId:"u32",ParaInfo:{manager:"AccountId",deposit:"Balance",locked:"bool"},ParaLifecycle:{_enum:["Onboarding","Parathread","Parachain","UpgradingToParachain","DowngradingToParathread","OutgoingParathread","OutgoingParachain"]},ParaPastCodeMeta:{upgradeTimes:"Vec<ReplacementTimes>",lastPruned:"Option<BlockNumber>"},ParaScheduling:{_enum:["Always","Dynamic"]},ParathreadClaim:"(ParaId, CollatorId)",ParathreadClaimQueue:{queue:"Vec<QueuedParathread>",nextCoreOffset:"u32"},ParathreadEntry:{claim:"ParathreadClaim",retries:"u32"},ParaValidatorIndex:"u32",PersistedValidationData:{parentHead:"HeadData",relayParentNumber:"RelayChainBlockNumber",relayParentStorageRoot:"Hash",maxPovSize:"u32"},PvfCheckStatement:{accept:"bool",subject:"ValidationCodeHash",sessionIndex:"SessionIndex",validatorIndex:"ParaValidatorIndex"},QueuedParathread:{claim:"ParathreadEntry",coreOffset:"u32"},RelayBlockNumber:"u32",RelayChainBlockNumber:"RelayBlockNumber",RelayHash:"Hash",RelayChainHash:"RelayHash",Remark:"[u8; 32]",ReplacementTimes:{expectedAt:"BlockNumber",activatedAt:"BlockNumber"},Retriable:{_enum:{Never:"Null",WithRetries:"u32"}},ScheduledCore:{paraId:"ParaId",collator:"Option<CollatorId>"},Scheduling:{_enum:["Always","Dynamic"]},ScrapedOnChainVotes:{session:"SessionIndex",backingValidatorsPerCandidate:"Vec<(CandidateReceipt, Vec<(ParaValidatorIndex, ValidityAttestation)>)>",disputes:"MultiDisputeStatementSet"},SessionInfo:{activeValidatorIndices:"Vec<ParaValidatorIndex>",randomSeed:"[u8; 32]",disputePeriod:"SessionIndex",validators:"Vec<ValidatorId>",discoveryKeys:"Vec<AuthorityDiscoveryId>",assignmentKeys:"Vec<AssignmentId>",validatorGroups:"Vec<Vec<ValidatorIndex>>",nCores:"u32",zerothDelayTrancheWidth:"u32",relayVrfModuloSamples:"u32",nDelayTranches:"u32",noShowSlots:"u32",neededApprovals:"u32"},OldV1SessionInfo:{validators:"Vec<ValidatorId>",discoveryKeys:"Vec<AuthorityDiscoveryId>",assignmentKeys:"Vec<AssignmentId>",validatorGroups:"Vec<Vec<ParaValidatorIndex>>",nCores:"u32",zerothDelayTrancheWidth:"u32",relayVrfModuloSamples:"u32",nDelayTranches:"u32",noShowSlots:"u32",neededApprovals:"u32"},SessionInfoValidatorGroup:"Vec<ParaValidatorIndex>",SignedAvailabilityBitfield:{payload:"BitVec",validatorIndex:"ParaValidatorIndex",signature:"ValidatorSignature"},SignedAvailabilityBitfields:"Vec<SignedAvailabilityBitfield>",SigningContext:{sessionIndex:"SessionIndex",parentHash:"Hash"},Statement:{_enum:{Never:"Null",Candidate:"Hash",Valid:"Hash",Invalid:"Hash"}},TransientValidationData:{maxCodeSize:"u32",maxHeadDataSize:"u32",balance:"Balance",codeUpgradeAllowed:"Option<BlockNumber>",dmqLength:"u32"},UpgradeGoAhead:{_enum:["Abort","GoAhead"]},UpgradeRestriction:{_enum:["Present"]},UpwardMessage:"Bytes",ValidationFunctionParams:{maxCodeSize:"u32",relayChainHeight:"RelayChainBlockNumber",codeUpgradeAllowed:"Option<RelayChainBlockNumber>"},ValidationCode:"Bytes",ValidationCodeHash:"Hash",ValidationData:{persisted:"PersistedValidationData",transient:"TransientValidationData"},ValidationDataType:{validationData:"ValidationData",relayChainState:"Vec<Bytes>"},ValidatorSignature:"Signature",ValidityAttestation:{_enum:{Never:"Null",Implicit:"ValidatorSignature",Explicit:"ValidatorSignature"}},MessagingStateSnapshot:{relayDispatchQueueSize:"(u32, u32)",egressChannels:"Vec<MessagingStateSnapshotEgressEntry>"},MessagingStateSnapshotEgressEntry:"(ParaId, AbridgedHrmpChannel)",SystemInherentData:"ParachainInherentData",VecInboundHrmpMessage:"Vec<InboundHrmpMessage>"})};t.default=u},7758:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={HrmpChannel:{maxCapacity:"u32",maxTotalSize:"u32",maxMessageSize:"u32",msgCount:"u32",totalSize:"u32",mqcHead:"Option<Hash>",senderDeposit:"Balance",recipientDeposit:"Balance"},HrmpChannelId:{sender:"u32",receiver:"u32"},HrmpOpenChannelRequest:{confirmed:"bool",age:"SessionIndex",senderDeposit:"Balance",maxMessageSize:"u32",maxCapacity:"u32",maxTotalSize:"u32"}}},34546:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.runtime=void 0;var n=r(57026);const i={assumed_validation_data:{description:"Returns the persisted validation data for the given `ParaId` along with the corresponding validation code hash.",params:[{name:"paraId",type:"ParaId"},{name:"hash",type:"Hash"}],type:"Option<(PersistedValidationData, ValidationCodeHash)>"},availability_cores:{description:"Yields information on all availability cores as relevant to the child block.",params:[],type:"Vec<CoreState>"},candidate_events:{description:"Get a vector of events concerning candidates that occurred within a block.",params:[],type:"Vec<CandidateEvent>"},candidate_pending_availability:{description:"Get the receipt of a candidate pending availability.",params:[{name:"paraId",type:"ParaId"}],type:"Option<CommittedCandidateReceipt>"},check_validation_outputs:{description:"Checks if the given validation outputs pass the acceptance criteria.",params:[{name:"paraId",type:"ParaId"},{name:"outputs",type:"CandidateCommitments"}],type:"bool"},dmq_contents:{description:"Get all the pending inbound messages in the downward message queue for a para.",params:[{name:"paraId",type:"ParaId"}],type:"Vec<InboundDownwardMessage>"},inbound_hrmp_channels_contents:{description:"Get the contents of all channels addressed to the given recipient.",params:[{name:"paraId",type:"ParaId"}],type:"Vec<InboundHrmpMessage>"},on_chain_votes:{description:"Scrape dispute relevant from on-chain, backing votes and resolved disputes.",params:[],type:"Option<ScrapedOnChainVotes>"},persisted_validation_data:{description:"Yields the persisted validation data for the given `ParaId` along with an assumption that should be used if the para currently occupies a core.",params:[{name:"paraId",type:"ParaId"},{name:"assumption",type:"OccupiedCoreAssumption"}],type:"Option<PersistedValidationData>"},session_index_for_child:{description:"Returns the session index expected at a child of the block.",params:[],type:"SessionIndex"},validation_code:{description:"Fetch the validation code used by a para, making the given `OccupiedCoreAssumption`.",params:[{name:"paraId",type:"ParaId"},{name:"assumption",type:"OccupiedCoreAssumption"}],type:"ValidationCode"},validation_code_by_hash:{description:"Get the validation code from its hash.",params:[{name:"hash",type:"ValidationCodeHash"}],type:"Option<ValidationCode>"},validator_groups:{description:"Returns the validator groups and rotation info localized based on the hypothetical child of a block whose state this is invoked on",params:[],type:"(Vec<Vec<ParaValidatorIndex>>, GroupRotationInfo)"},validators:{description:"Get the current validators.",params:[],type:"Vec<ValidatorId>"}},o={pvfs_require_precheck:{description:"Returns code hashes of PVFs that require pre-checking by validators in the active set.",params:[],type:"Vec<ValidationCodeHash>"},session_info:{description:"Get the session info for the given session, if stored.",params:[{name:"index",type:"SessionIndex"}],type:"Option<SessionInfo>"},submit_pvf_check_statement:{description:"Submits a PVF pre-checking statement into the transaction pool.",params:[{name:"stmt",type:"PvfCheckStatement"},{name:"signature",type:"ValidatorSignature"}],type:"Null"},validation_code_hash:{description:"Fetch the hash of the validation code used by a para, making the given `OccupiedCoreAssumption`.",params:[{name:"paraId",type:"ParaId"},{name:"assumption",type:"OccupiedCoreAssumption"}],type:"Option<ValidationCodeHash>"}},a={ParachainHost:[{methods:(0,n.objectSpread)({disputes:{description:"Returns all onchain disputes.",params:[],type:"Vec<(SessionIndex, CandidateHash, DisputeState)>"}},i,o),version:3},{methods:(0,n.objectSpread)({},i,o),version:2},{methods:(0,n.objectSpread)({session_info:{description:"Get the session info for the given session, if stored.",params:[{name:"index",type:"SessionIndex"}],type:"Option<OldV1SessionInfo>"}},i),version:1}]};t.runtime=a},44358:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n={_enum:["ZeroZero","ZeroOne","ZeroTwo","ZeroThree","OneOne","OneTwo","OneThree","TwoTwo","TwoThree","ThreeThree"]},i={_enum:["ZeroZero","ZeroOne","ZeroTwo","ZeroThree","ZeroFour","ZeroFive","ZeroSix","ZeroSeven","OneOne","OneTwo","OneThree","OneFour","OneFive","OneSix","OneSeven","TwoTwo","TwoThree","TwoFour","TwoFive","TwoSix","TwoSeven","ThreeThree","ThreeFour","ThreeFive","ThreeSix","ThreeSeven","FourFour","FourFive","FourSix","FourSeven","FiveFive","FiveSix","FiveSeven","SixSix","SixSeven","SevenSeven"]};var o=(0,r(57026).objectSpread)({},{Bidder:{_enum:{New:"NewBidder",Existing:"ParaId"}},IncomingParachain:{_enum:{Unset:"NewBidder",Fixed:"IncomingParachainFixed",Deploy:"IncomingParachainDeploy"}},IncomingParachainDeploy:{code:"ValidationCode",initialHeadData:"HeadData"},IncomingParachainFixed:{codeHash:"Hash",codeSize:"u32",initialHeadData:"HeadData"},NewBidder:{who:"AccountId",sub:"SubId"},SubId:"u32"},{AuctionIndex:"u32",LeasePeriod:"BlockNumber",LeasePeriodOf:"BlockNumber",SlotRange10:n,SlotRange:i,WinningData10:`[WinningDataEntry; ${n._enum.length}]`,WinningData:`[WinningDataEntry; ${i._enum.length}]`,WinningDataEntry:"Option<(AccountId, ParaId, BalanceOf)>",WinnersData10:"Vec<WinnersDataTuple10>",WinnersData:"Vec<WinnersDataTuple>",WinnersDataTuple10:"(AccountId, ParaId, BalanceOf, SlotRange10)",WinnersDataTuple:"(AccountId, ParaId, BalanceOf, SlotRange)"});t.default=o},50059:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(24785),i=r(1591),o={rpc:n.rpc,runtime:i.runtime,types:{FeeDetails:{inclusionFee:"Option<InclusionFee>"},InclusionFee:{baseFee:"Balance",lenFee:"Balance",adjustedWeightFee:"Balance"},RuntimeDispatchInfo:{weight:"Weight",class:"DispatchClass",partialFee:"Balance"},RuntimeDispatchInfoV1:{weight:"WeightV1",class:"DispatchClass",partialFee:"Balance"},RuntimeDispatchInfoV2:{weight:"WeightV2",class:"DispatchClass",partialFee:"Balance"}}};t.default=o},24785:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rpc=void 0,t.rpc={queryFeeDetails:{deprecated:"Use `api.call.transactionPaymentApi.queryFeeDetails` instead",description:"Query the detailed fee of a given encoded extrinsic",params:[{name:"extrinsic",type:"Bytes"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"FeeDetails"},queryInfo:{deprecated:"Use `api.call.transactionPaymentApi.queryInfo` instead",description:"Retrieves the fee information for an encoded extrinsic",params:[{name:"extrinsic",type:"Bytes"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"RuntimeDispatchInfoV1"}}},1591:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.runtime=void 0;var n=r(57026);const i={query_fee_details:{description:"The transaction fee details",params:[{name:"uxt",type:"Extrinsic"},{name:"len",type:"u32"}],type:"FeeDetails"}},o={query_call_fee_details:{description:"The call fee details",params:[{name:"call",type:"Call"},{name:"len",type:"u32"}],type:"FeeDetails"}},a={query_info:{description:"The transaction info",params:[{name:"uxt",type:"Extrinsic"},{name:"len",type:"u32"}],type:"RuntimeDispatchInfo"}},s={query_call_info:{description:"The call info",params:[{name:"call",type:"Call"},{name:"len",type:"u32"}],type:"RuntimeDispatchInfo"}},u={query_length_to_fee:{description:"Query the output of the current LengthToFee given some input",params:[{name:"length",type:"u32"}],type:"Balance"},query_weight_to_fee:{description:"Query the output of the current WeightToFee given some input",params:[{name:"weight",type:"Weight"}],type:"Balance"}},c={TransactionPaymentApi:[{methods:(0,n.objectSpread)({},u,a,i),version:3},{methods:(0,n.objectSpread)({},a,i),version:2},{methods:(0,n.objectSpread)({query_info:{description:"The transaction info",params:[{name:"uxt",type:"Extrinsic"},{name:"len",type:"u32"}],type:"RuntimeDispatchInfo"}},i),version:1}],TransactionPaymentCallApi:[{methods:(0,n.objectSpread)({},u,s,o),version:3},{methods:(0,n.objectSpread)({},s,o),version:2},{methods:(0,n.objectSpread)({CALL:{description:"The call info",params:[{name:"call",type:"Call"},{name:"len",type:"u32"}],type:"RuntimeDispatchInfo"}},o),version:1}]};t.runtime=c},66366:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{Approvals:"[bool; 4]"}}},77566:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={rpc:{},runtime:r(85373).runtime,types:{}};t.default=n},85373:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.runtime=void 0,t.runtime={DifficultyApi:[{methods:{difficulty:{description:"Return the target difficulty of the next block.",params:[],type:"Raw"}},version:1}],TimestampApi:[{methods:{timestamp:{description:"API necessary for timestamp-based difficulty adjustment algorithms.",params:[],type:"Moment"}},version:1}]}},60434:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{ProxyDefinition:{delegate:"AccountId",proxyType:"ProxyType",delay:"BlockNumber"},ProxyType:{_enum:["Any","NonTransfer","Governance","Staking"]},ProxyAnnouncement:{real:"AccountId",callHash:"Hash",height:"BlockNumber"}}}},67912:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{AccountStatus:{validity:"AccountValidity",freeBalance:"Balance",lockedBalance:"Balance",signature:"Vec<u8>",vat:"Permill"},AccountValidity:{_enum:["Invalid","Initiated","Pending","ValidLow","ValidHigh","Completed"]}}}},52621:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{ActiveRecovery:{created:"BlockNumber",deposit:"Balance",friends:"Vec<AccountId>"},RecoveryConfig:{delayPeriod:"BlockNumber",deposit:"Balance",friends:"Vec<AccountId>",threshold:"u16"}}}},57386:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={rpc:r(15016).rpc,types:{RpcMethods:{version:"u32",methods:"Vec<Text>"}}};t.default=n},15016:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rpc=void 0,t.rpc={methods:{description:"Retrieves the list of RPC methods that are exposed by the node",params:[],type:"RpcMethods"}}},11952:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.knownOrigins=t.default=void 0;var n=r(57026),i=r(62450);t.knownOrigins={Council:"CollectiveOrigin",System:"SystemOrigin",TechnicalCommittee:"CollectiveOrigin",Xcm:"XcmOrigin",XcmPallet:"XcmOrigin",Authority:"AuthorityOrigin",GeneralCouncil:"CollectiveOrigin"};var o={rpc:{},runtime:i.runtime,types:(0,n.objectSpread)({},{Fixed64:"Int<64, Fixed64>",FixedI64:"Int<64, FixedI64>",FixedU64:"UInt<64, FixedU64>",Fixed128:"Int<128, Fixed128>",FixedI128:"Int<128, FixedI128>",FixedU128:"UInt<128, FixedU128>",I32F32:"Int<64, I32F32>",U32F32:"UInt<64, U32F32>",PerU16:"UInt<16, PerU16>",Perbill:"UInt<32, Perbill>",Percent:"UInt<8, Percent>",Permill:"UInt<32, Permill>",Perquintill:"UInt<64, Perquintill>"},{AccountId:"AccountId32",AccountId20:"GenericEthereumAccountId",AccountId32:"GenericAccountId32",AccountId33:"GenericAccountId33",AccountIdOf:"AccountId",AccountIndex:"GenericAccountIndex",Address:"MultiAddress",AssetId:"u32",Balance:"UInt<128, Balance>",BalanceOf:"Balance",Block:"GenericBlock",BlockNumber:"u32",BlockNumberFor:"BlockNumber",BlockNumberOf:"BlockNumber",Call:"GenericCall",CallHash:"Hash",CallHashOf:"CallHash",ChangesTrieConfiguration:{digestInterval:"u32",digestLevels:"u32"},ChangesTrieSignal:{_enum:{NewConfiguration:"Option<ChangesTrieConfiguration>"}},ConsensusEngineId:"GenericConsensusEngineId",CodecHash:"Hash",CrateVersion:{major:"u16",minor:"u8",patch:"u8"},Digest:{logs:"Vec<DigestItem>"},DigestItem:{_enum:{Other:"Bytes",AuthoritiesChange:"Vec<AuthorityId>",ChangesTrieRoot:"Hash",SealV0:"SealV0",Consensus:"Consensus",Seal:"Seal",PreRuntime:"PreRuntime",ChangesTrieSignal:"ChangesTrieSignal",RuntimeEnvironmentUpdated:"Null"}},ExtrinsicsWeight:{normal:"Weight",operational:"Weight"},H32:"[u8; 4; H32]",H64:"[u8; 8; H64]",H128:"[u8; 16; H128]",H160:"[u8; 20; H160]",H256:"[u8; 32; H256]",H512:"[u8; 64; H512]",H1024:"[u8; 128; H1024]",H2048:"[u8; 256; H2048]",Hash:"H256",Header:{parentHash:"Hash",number:"Compact<BlockNumber>",stateRoot:"Hash",extrinsicsRoot:"Hash",digest:"Digest"},HeaderPartial:{parentHash:"Hash",number:"BlockNumber"},IndicesLookupSource:"GenericLookupSource",Index:"u32",Justification:"(ConsensusEngineId, EncodedJustification)",EncodedJustification:"Bytes",Justifications:"Vec<Justification>",KeyValue:"(StorageKey, StorageData)",KeyTypeId:"u32",LockIdentifier:"[u8; 8]",LookupSource:"MultiAddress",LookupTarget:"AccountId",ModuleId:"LockIdentifier",MultiAddress:"GenericMultiAddress",MultiSigner:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Ecdsa:"[u8; 33]"}},Moment:"UInt<64, Moment>",OpaqueCall:"Bytes",Origin:"DoNotConstruct<Origin>",OriginCaller:{_enum:{System:"SystemOrigin"}},PalletId:"LockIdentifier",PalletsOrigin:"OriginCaller",PalletVersion:{major:"u16",minor:"u8",patch:"u8"},Pays:{_enum:["Yes","No"]},Phantom:"Null",PhantomData:"Null",Releases:{_enum:["V1","V2","V3","V4","V5","V6","V7","V8","V9","V10"]},RuntimeDbWeight:{read:"Weight",write:"Weight"},SignedBlock:"SignedBlockWithJustifications",SignedBlockWithJustification:{block:"Block",justification:"Option<EncodedJustification>"},SignedBlockWithJustifications:{block:"Block",justifications:"Option<Justifications>"},Slot:"u64",SlotDuration:"u64",StorageData:"Bytes",StorageInfo:{palletName:"Bytes",storage_name:"Bytes",prefix:"Bytes",maxValues:"Option<u32>",maxSize:"Option<u32>"},StorageProof:{trieNodes:"Vec<Bytes>"},TransactionPriority:"u64",TransactionLongevity:"u64",TransactionTag:"Bytes",TransactionInfo:{_alias:{dataSize:"size"},chunkRoot:"H256",contentHash:"H256",dataSize:"u32",blockChunks:"u32"},TransactionStorageProof:{chunk:"Vec<u8>",proof:"Vec<Vec<u8>>"},ValidatorId:"AccountId",ValidatorIdOf:"ValidatorId",WeightV1:"u64",WeightV2:{refTime:"Compact<u64>",proofSize:"Compact<u64>"},Weight:"WeightV2",WeightMultiplier:"Fixed64",PreRuntime:"(ConsensusEngineId, Bytes)",SealV0:"(u64, Signature)",Seal:"(ConsensusEngineId, Bytes)",Consensus:"(ConsensusEngineId, Bytes)"})};t.default=o},62450:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.runtime=void 0;var n=r(57026);const i={execute_block:{description:"Execute the given block.",params:[{name:"block",type:"Block"}],type:"Null"}},o={version:{description:"Returns the version of the runtime.",params:[],type:"RuntimeVersionPre3"}},a={initialize_block:{description:"Initialize a block with the given header.",params:[{name:"header",type:"Header"}],type:"Null"}},s={Core:[{methods:(0,n.objectSpread)({version:{description:"Returns the version of the runtime.",params:[],type:"RuntimeVersion"}},i,a),version:4},{methods:(0,n.objectSpread)({version:{description:"Returns the version of the runtime.",params:[],type:"RuntimeVersionPre4"}},i,a),version:3},{methods:(0,n.objectSpread)({},o,i,a),version:2},{methods:(0,n.objectSpread)({initialise_block:{description:"Initialize a block with the given header.",params:[{name:"header",type:"Header"}],type:"Null"}},o,i),version:1}]};t.runtime=s},65524:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(57026),i=r(12990),o=r(75917),a={rpc:{},types:(0,n.objectSpread)({},i.v0,o.v1,{SiField:"Si1Field",SiLookupTypeId:"Si1LookupTypeId",SiPath:"Si1Path",SiType:"Si1Type",SiTypeDef:"Si1TypeDef",SiTypeDefArray:"Si1TypeDefArray",SiTypeDefBitSequence:"Si1TypeDefBitSequence",SiTypeDefCompact:"Si1TypeDefCompact",SiTypeDefComposite:"Si1TypeDefComposite",SiTypeDefPrimitive:"Si1TypeDefPrimitive",SiTypeDefSequence:"Si1TypeDefSequence",SiTypeDefTuple:"Si1TypeDefTuple",SiTypeParameter:"Si1TypeParameter",SiTypeDefVariant:"Si1TypeDefVariant",SiVariant:"Si1Variant"})};t.default=a},12990:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.v0=void 0,t.v0={Si0Field:{name:"Option<Text>",type:"Si0LookupTypeId",typeName:"Option<Text>",docs:"Vec<Text>"},Si0LookupTypeId:"u32",Si0Path:"Vec<Text>",Si0Type:{path:"Si0Path",params:"Vec<Si0LookupTypeId>",def:"Si0TypeDef"},Si0TypeDef:{_enum:{Composite:"Si0TypeDefComposite",Variant:"Si0TypeDefVariant",Sequence:"Si0TypeDefSequence",Array:"Si0TypeDefArray",Tuple:"Si0TypeDefTuple",Primitive:"Si0TypeDefPrimitive",Compact:"Si0TypeDefCompact",Phantom:"Si0TypeDefPhantom",BitSequence:"Si0TypeDefBitSequence"}},Si0TypeDefArray:{len:"u32",type:"Si0LookupTypeId"},Si0TypeDefBitSequence:{bitStoreType:"Si0LookupTypeId",bitOrderType:"Si0LookupTypeId"},Si0TypeDefCompact:{type:"Si0LookupTypeId"},Si0TypeDefComposite:{fields:"Vec<Si0Field>"},Si0TypeDefPhantom:"Null",Si0TypeDefVariant:{variants:"Vec<Si0Variant>"},Si0TypeDefPrimitive:{_enum:["Bool","Char","Str","U8","U16","U32","U64","U128","U256","I8","I16","I32","I64","I128","I256"]},Si0TypeDefSequence:{type:"Si0LookupTypeId"},Si0TypeDefTuple:"Vec<Si0LookupTypeId>",Si0TypeParameter:{name:"Text",type:"Option<Si0LookupTypeId>"},Si0Variant:{name:"Text",fields:"Vec<Si0Field>",index:"Option<u8>",discriminant:"Option<u64>",docs:"Vec<Text>"}}},75917:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.v1=t.Si1Variant=void 0;const r={name:"Text",fields:"Vec<Si1Field>",index:"u8",docs:"Vec<Text>"};t.Si1Variant=r;const n={Si1Field:{name:"Option<Text>",type:"Si1LookupTypeId",typeName:"Option<Text>",docs:"Vec<Text>"},Si1LookupTypeId:"Compact<u32>",Si1Path:"Si0Path",Si1Type:{path:"Si1Path",params:"Vec<Si1TypeParameter>",def:"Si1TypeDef",docs:"Vec<Text>"},Si1TypeDef:{_enum:{Composite:"Si1TypeDefComposite",Variant:"Si1TypeDefVariant",Sequence:"Si1TypeDefSequence",Array:"Si1TypeDefArray",Tuple:"Si1TypeDefTuple",Primitive:"Si1TypeDefPrimitive",Compact:"Si1TypeDefCompact",BitSequence:"Si1TypeDefBitSequence",HistoricMetaCompat:"Type"}},Si1TypeDefArray:{len:"u32",type:"Si1LookupTypeId"},Si1TypeDefBitSequence:{bitStoreType:"Si1LookupTypeId",bitOrderType:"Si1LookupTypeId"},Si1TypeDefCompact:{type:"Si1LookupTypeId"},Si1TypeDefComposite:{fields:"Vec<Si1Field>"},Si1TypeDefPrimitive:"Si0TypeDefPrimitive",Si1TypeDefSequence:{type:"Si1LookupTypeId"},Si1TypeDefTuple:"Vec<Si1LookupTypeId>",Si1TypeParameter:{name:"Text",type:"Option<Si1LookupTypeId>"},Si1TypeDefVariant:{variants:"Vec<Si1Variant>"},Si1Variant:r};t.v1=n},50271:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{Period:"(BlockNumber, u32)",Priority:"u8",SchedulePeriod:"Period",SchedulePriority:"Priority",Scheduled:{maybeId:"Option<Bytes>",priority:"SchedulePriority",call:"Call",maybePeriodic:"Option<SchedulePeriod>",origin:"PalletsOrigin"},ScheduledTo254:{maybeId:"Option<Bytes>",priority:"SchedulePriority",call:"Call",maybePeriodic:"Option<SchedulePeriod>"},TaskAddress:"(BlockNumber, u32)"}}},75430:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(57026),i={rpc:{},runtime:r(37020).runtime,types:(0,n.objectSpread)({},{BeefyKey:"[u8; 33]",Keys:"SessionKeys4",SessionKeys1:"(AccountId)",SessionKeys2:"(AccountId, AccountId)",SessionKeys3:"(AccountId, AccountId, AccountId)",SessionKeys4:"(AccountId, AccountId, AccountId, AccountId)",SessionKeys5:"(AccountId, AccountId, AccountId, AccountId, AccountId)",SessionKeys6:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)",SessionKeys6B:"(AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)",SessionKeys7:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)",SessionKeys7B:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)",SessionKeys8:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)",SessionKeys8B:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)",SessionKeys9:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)",SessionKeys9B:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)",SessionKeys10:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)",SessionKeys10B:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)"},{FullIdentification:"Exposure",IdentificationTuple:"(ValidatorId, FullIdentification)",MembershipProof:{session:"SessionIndex",trieNodes:"Vec<Bytes>",validatorCount:"ValidatorCount"},SessionIndex:"u32",ValidatorCount:"u32"})};t.default=i},37020:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.runtime=void 0,t.runtime={SessionKeys:[{methods:{decode_session_keys:{description:"Decode the given public session keys.",params:[{name:"encoded",type:"Bytes"}],type:"Option<Vec<(Bytes, KeyTypeId)>>"},generate_session_keys:{description:"Generate a set of session keys with optionally using the given seed.",params:[{name:"seed",type:"Option<Bytes>"}],type:"Bytes"}},version:1}]}},90337:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{Bid:{who:"AccountId",kind:"BidKind",value:"Balance"},BidKind:{_enum:{Deposit:"Balance",Vouch:"(AccountId, Balance)"}},SocietyJudgement:{_enum:["Rebid","Reject","Approve"]},SocietyVote:{_enum:["Skeptic","Reject","Approve"]},StrikeCount:"u32",VouchingStatus:{_enum:["Vouching","Banned"]}}}},99849:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={rpc:{},types:(0,r(57026).objectSpread)({},{Points:"u32",EraPoints:{total:"Points",individual:"Vec<Points>"}},{CompactAssignments:"CompactAssignmentsWith16",CompactAssignmentsWith16:{votes1:"Vec<(NominatorIndexCompact, ValidatorIndexCompact)>",votes2:"Vec<(NominatorIndexCompact, CompactScoreCompact, ValidatorIndexCompact)>",votes3:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 2], ValidatorIndexCompact)>",votes4:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 3], ValidatorIndexCompact)>",votes5:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 4], ValidatorIndexCompact)>",votes6:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 5], ValidatorIndexCompact)>",votes7:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 6], ValidatorIndexCompact)>",votes8:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 7], ValidatorIndexCompact)>",votes9:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 8], ValidatorIndexCompact)>",votes10:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 9], ValidatorIndexCompact)>",votes11:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 10], ValidatorIndexCompact)>",votes12:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 11], ValidatorIndexCompact)>",votes13:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 12], ValidatorIndexCompact)>",votes14:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 13], ValidatorIndexCompact)>",votes15:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 14], ValidatorIndexCompact)>",votes16:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 15], ValidatorIndexCompact)>"},CompactAssignmentsWith24:{votes1:"Vec<(NominatorIndexCompact, ValidatorIndexCompact)>",votes2:"Vec<(NominatorIndexCompact, CompactScoreCompact, ValidatorIndexCompact)>",votes3:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 2], ValidatorIndexCompact)>",votes4:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 3], ValidatorIndexCompact)>",votes5:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 4], ValidatorIndexCompact)>",votes6:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 5], ValidatorIndexCompact)>",votes7:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 6], ValidatorIndexCompact)>",votes8:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 7], ValidatorIndexCompact)>",votes9:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 8], ValidatorIndexCompact)>",votes10:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 9], ValidatorIndexCompact)>",votes11:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 10], ValidatorIndexCompact)>",votes12:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 11], ValidatorIndexCompact)>",votes13:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 12], ValidatorIndexCompact)>",votes14:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 13], ValidatorIndexCompact)>",votes15:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 14], ValidatorIndexCompact)>",votes16:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 15], ValidatorIndexCompact)>",votes17:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 16], ValidatorIndexCompact)>",votes18:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 17], ValidatorIndexCompact)>",votes19:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 18], ValidatorIndexCompact)>",votes20:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 19], ValidatorIndexCompact)>",votes21:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 20], ValidatorIndexCompact)>",votes22:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 21], ValidatorIndexCompact)>",votes23:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 22], ValidatorIndexCompact)>",votes24:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 23], ValidatorIndexCompact)>"},CompactAssignmentsTo265:"CompactAssignmentsWith16",CompactAssignmentsTo257:{votes1:"Vec<(NominatorIndex, [CompactScore; 0], ValidatorIndex)>",votes2:"Vec<(NominatorIndex, [CompactScore; 1], ValidatorIndex)>",votes3:"Vec<(NominatorIndex, [CompactScore; 2], ValidatorIndex)>",votes4:"Vec<(NominatorIndex, [CompactScore; 3], ValidatorIndex)>",votes5:"Vec<(NominatorIndex, [CompactScore; 4], ValidatorIndex)>",votes6:"Vec<(NominatorIndex, [CompactScore; 5], ValidatorIndex)>",votes7:"Vec<(NominatorIndex, [CompactScore; 6], ValidatorIndex)>",votes8:"Vec<(NominatorIndex, [CompactScore; 7], ValidatorIndex)>",votes9:"Vec<(NominatorIndex, [CompactScore; 8], ValidatorIndex)>",votes10:"Vec<(NominatorIndex, [CompactScore; 9], ValidatorIndex)>",votes11:"Vec<(NominatorIndex, [CompactScore; 10], ValidatorIndex)>",votes12:"Vec<(NominatorIndex, [CompactScore; 11], ValidatorIndex)>",votes13:"Vec<(NominatorIndex, [CompactScore; 12], ValidatorIndex)>",votes14:"Vec<(NominatorIndex, [CompactScore; 13], ValidatorIndex)>",votes15:"Vec<(NominatorIndex, [CompactScore; 14], ValidatorIndex)>",votes16:"Vec<(NominatorIndex, [CompactScore; 15], ValidatorIndex)>"},CompactScore:"(ValidatorIndex, OffchainAccuracy)",CompactScoreCompact:"(ValidatorIndexCompact, OffchainAccuracyCompact)",ElectionCompute:{_enum:["OnChain","Signed","Unsigned"]},ElectionPhase:{_enum:{Off:null,Signed:null,Unsigned:"(bool, BlockNumber)",Emergency:null}},ElectionResult:{compute:"ElectionCompute",slotStake:"Balance",electedStashes:"Vec<AccountId>",exposures:"Vec<(AccountId, Exposure)>"},ElectionScore:"[u128; 3]",ElectionSize:{validators:"Compact<ValidatorIndex>",nominators:"Compact<NominatorIndex>"},ElectionStatus:{_enum:{Close:"Null",Open:"BlockNumber"}},ExtendedBalance:"u128",RawSolution:"RawSolutionWith16",RawSolutionWith16:{compact:"CompactAssignmentsWith16",score:"ElectionScore",round:"u32"},RawSolutionWith24:{compact:"CompactAssignmentsWith24",score:"ElectionScore",round:"u32"},RawSolutionTo265:"RawSolutionWith16",ReadySolution:{supports:"SolutionSupports",score:"ElectionScore",compute:"ElectionCompute"},RoundSnapshot:{voters:"Vec<(AccountId, VoteWeight, Vec<AccountId>)>",targets:"Vec<AccountId>"},SeatHolder:{who:"AccountId",stake:"Balance",deposit:"Balance"},SignedSubmission:{_fallback:"SignedSubmissionTo276",who:"AccountId",deposit:"Balance",solution:"RawSolution",reward:"Balance"},SignedSubmissionTo276:{who:"AccountId",deposit:"Balance",solution:"RawSolution"},SignedSubmissionOf:"SignedSubmission",SolutionOrSnapshotSize:{voters:"Compact<u32>",targets:"Compact<u32>"},SolutionSupport:{total:"ExtendedBalance",voters:"Vec<(AccountId, ExtendedBalance)>"},SolutionSupports:"Vec<(AccountId, SolutionSupport)>",Supports:"SolutionSupports",SubmissionIndicesOf:"BTreeMap<ElectionScore, u32>",Voter:{votes:"Vec<AccountId>",stake:"Balance",deposit:"Balance"},VoteWeight:"u64"},{ActiveEraInfo:{index:"EraIndex",start:"Option<Moment>"},EraIndex:"u32",EraRewardPoints:{total:"RewardPoint",individual:"BTreeMap<AccountId, RewardPoint>"},EraRewards:{total:"u32",rewards:"Vec<u32>"},Exposure:{total:"Compact<Balance>",own:"Compact<Balance>",others:"Vec<IndividualExposure>"},Forcing:{_enum:["NotForcing","ForceNew","ForceNone","ForceAlways"]},IndividualExposure:{who:"AccountId",value:"Compact<Balance>"},KeyType:"AccountId",MomentOf:"Moment",Nominations:{targets:"Vec<AccountId>",submittedIn:"EraIndex",suppressed:"bool"},NominatorIndex:"u32",NominatorIndexCompact:"Compact<NominatorIndex>",OffchainAccuracy:"PerU16",OffchainAccuracyCompact:"Compact<OffchainAccuracy>",PhragmenScore:"[u128; 3]",Points:"u32",RewardDestination:{_enum:{Staked:"Null",Stash:"Null",Controller:"Null",Account:"AccountId",None:"Null"}},RewardPoint:"u32",SlashJournalEntry:{who:"AccountId",amount:"Balance",ownSlash:"Balance"},SlashingSpansTo204:{spanIndex:"SpanIndex",lastStart:"EraIndex",prior:"Vec<EraIndex>"},SlashingSpans:{spanIndex:"SpanIndex",lastStart:"EraIndex",lastNonzeroSlash:"EraIndex",prior:"Vec<EraIndex>"},SpanIndex:"u32",SpanRecord:{slashed:"Balance",paidOut:"Balance"},StakingLedgerTo223:{stash:"AccountId",total:"Compact<Balance>",active:"Compact<Balance>",unlocking:"Vec<UnlockChunk>"},StakingLedgerTo240:{_fallback:"StakingLedgerTo223",stash:"AccountId",total:"Compact<Balance>",active:"Compact<Balance>",unlocking:"Vec<UnlockChunk>",lastReward:"Option<EraIndex>"},StakingLedger:{stash:"AccountId",total:"Compact<Balance>",active:"Compact<Balance>",unlocking:"Vec<UnlockChunk>",claimedRewards:"Vec<EraIndex>"},UnappliedSlashOther:"(AccountId, Balance)",UnappliedSlash:{validator:"AccountId",own:"Balance",others:"Vec<UnappliedSlashOther>",reporters:"Vec<AccountId>",payout:"Balance"},UnlockChunk:{value:"Compact<Balance>",era:"Compact<BlockNumber>"},ValidatorIndex:"u16",ValidatorIndexCompact:"Compact<ValidatorIndex>",ValidatorPrefs:"ValidatorPrefsWithBlocked",ValidatorPrefsWithCommission:{commission:"Compact<Perbill>"},ValidatorPrefsWithBlocked:{commission:"Compact<Perbill>",blocked:"bool"},ValidatorPrefsTo196:{validatorPayment:"Compact<Balance>"},ValidatorPrefsTo145:{unstakeThreshold:"Compact<u32>",validatorPayment:"Compact<Balance>"}})};t.default=n},50942:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={rpc:r(60359).rpc,types:{ApiId:"[u8; 8]",BlockTrace:{blockHash:"Text",parentHash:"Text",tracingTargets:"Text",storageKeys:"Text",spans:"Vec<BlockTraceSpan>",events:"Vec<BlockTraceEvent>"},BlockTraceEvent:{target:"Text",data:"BlockTraceEventData",parentId:"Option<u64>"},BlockTraceEventData:{stringValues:"HashMap<Text, Text>"},BlockTraceSpan:{id:"u64",parentId:"Option<u64>",name:"Text",target:"Text",wasm:"bool"},KeyValueOption:"(StorageKey, Option<StorageData>)",MigrationStatusResult:{topRemainingToMigrate:"u64",childRemainingToMigrate:"u64"},ReadProof:{at:"Hash",proof:"Vec<Bytes>"},RuntimeVersionApi:"(ApiId, u32)",RuntimeVersion:{specName:"Text",implName:"Text",authoringVersion:"u32",specVersion:"u32",implVersion:"u32",apis:"Vec<RuntimeVersionApi>",transactionVersion:"u32",stateVersion:"u8"},RuntimeVersionPre4:{specName:"Text",implName:"Text",authoringVersion:"u32",specVersion:"u32",implVersion:"u32",apis:"Vec<RuntimeVersionApi>",transactionVersion:"u32"},RuntimeVersionPre3:{specName:"Text",implName:"Text",authoringVersion:"u32",specVersion:"u32",implVersion:"u32",apis:"Vec<RuntimeVersionApi>"},RuntimeVersionPartial:{specName:"Text",specVersion:"u32",apis:"Vec<RuntimeVersionApi>"},SpecVersion:"u32",StorageChangeSet:{block:"Hash",changes:"Vec<KeyValueOption>"},TraceBlockResponse:{_enum:{TraceError:"TraceError",BlockTrace:"BlockTrace"}},TraceError:{error:"Text"}}};t.default=n},60359:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rpc=void 0,t.rpc={call:{alias:["state_callAt"],description:"Perform a call to a builtin on the chain",params:[{name:"method",type:"Text"},{name:"data",type:"Bytes"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"Bytes"},getChildKeys:{description:"Retrieves the keys with prefix of a specific child storage",params:[{name:"childStorageKey",type:"StorageKey"},{name:"childDefinition",type:"StorageKey"},{name:"childType",type:"u32"},{name:"key",type:"StorageKey"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"Vec<StorageKey>"},getChildReadProof:{description:"Returns proof of storage for child key entries at a specific block state.",params:[{name:"childStorageKey",type:"PrefixedStorageKey"},{name:"keys",type:"Vec<StorageKey>"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"ReadProof"},getChildStorage:{description:"Retrieves the child storage for a key",params:[{name:"childStorageKey",type:"StorageKey"},{name:"childDefinition",type:"StorageKey"},{name:"childType",type:"u32"},{name:"key",type:"StorageKey"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"StorageData"},getChildStorageHash:{description:"Retrieves the child storage hash",params:[{name:"childStorageKey",type:"StorageKey"},{name:"childDefinition",type:"StorageKey"},{name:"childType",type:"u32"},{name:"key",type:"StorageKey"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"Hash"},getChildStorageSize:{description:"Retrieves the child storage size",params:[{name:"childStorageKey",type:"StorageKey"},{name:"childDefinition",type:"StorageKey"},{name:"childType",type:"u32"},{name:"key",type:"StorageKey"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"u64"},getKeys:{deprecated:"Use `api.rpc.state.getKeysPaged` to retrieve keys",description:"Retrieves the keys with a certain prefix",params:[{name:"key",type:"StorageKey"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"Vec<StorageKey>"},getKeysPaged:{alias:["state_getKeysPagedAt"],description:"Returns the keys with prefix with pagination support.",params:[{name:"key",type:"StorageKey"},{name:"count",type:"u32"},{isOptional:!0,name:"startKey",type:"StorageKey"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"Vec<StorageKey>"},getMetadata:{description:"Returns the runtime metadata",params:[{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"Metadata"},getPairs:{deprecated:"Use `api.rpc.state.getKeysPaged` to retrieve keys",description:"Returns the keys with prefix, leave empty to get all the keys (deprecated: Use getKeysPaged)",params:[{name:"prefix",type:"StorageKey"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"Vec<KeyValue>"},getReadProof:{description:"Returns proof of storage entries at a specific block state",params:[{name:"keys",type:"Vec<StorageKey>"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"ReadProof"},getRuntimeVersion:{alias:["chain_getRuntimeVersion"],description:"Get the runtime version",params:[{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"RuntimeVersion"},getStorage:{alias:["state_getStorageAt"],description:"Retrieves the storage for a key",params:[{name:"key",type:"StorageKey"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"StorageData"},getStorageHash:{alias:["state_getStorageHashAt"],description:"Retrieves the storage hash",params:[{name:"key",type:"StorageKey"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"Hash"},getStorageSize:{alias:["state_getStorageSizeAt"],description:"Retrieves the storage size",params:[{name:"key",type:"StorageKey"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"u64"},queryStorage:{description:"Query historical storage entries (by key) starting from a start block",params:[{name:"keys",type:"Vec<StorageKey>"},{name:"fromBlock",type:"Hash"},{isOptional:!0,name:"toBlock",type:"BlockHash"}],type:"Vec<StorageChangeSet>"},queryStorageAt:{description:"Query storage entries (by key) starting at block hash given as the second parameter",params:[{name:"keys",type:"Vec<StorageKey>"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"Vec<StorageChangeSet>"},subscribeRuntimeVersion:{alias:["chain_subscribeRuntimeVersion","chain_unsubscribeRuntimeVersion"],description:"Retrieves the runtime version via subscription",params:[],pubsub:["runtimeVersion","subscribeRuntimeVersion","unsubscribeRuntimeVersion"],type:"RuntimeVersion"},subscribeStorage:{description:"Subscribes to storage changes for the provided keys",params:[{isOptional:!0,name:"keys",type:"Vec<StorageKey>"}],pubsub:["storage","subscribeStorage","unsubscribeStorage"],type:"StorageChangeSet"},traceBlock:{description:"Provides a way to trace the re-execution of a single block",params:[{name:"block",type:"Hash"},{name:"targets",type:"Option<Text>"},{name:"storageKeys",type:"Option<Text>"},{name:"methods",type:"Option<Text>"}],type:"TraceBlockResponse"},trieMigrationStatus:{description:"Check current migration state",params:[{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"MigrationStatusResult"}}},83432:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{WeightToFeeCoefficient:{coeffInteger:"Balance",coeffFrac:"Perbill",negative:"bool",degree:"u8"}}}},14846:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={rpc:r(67922).rpc,types:{}};t.default=n},67922:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rpc=void 0,t.rpc={genSyncSpec:{description:"Returns the json-serialized chainspec running the node, with a sync state.",endpoint:"sync_state_genSyncSpec",params:[{name:"raw",type:"bool"}],type:"Json"}}},7724:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(44078),i=r(61646),o={rpc:n.rpc,runtime:i.runtime,types:{AccountInfo:"AccountInfoWithTripleRefCount",AccountInfoWithRefCountU8:{nonce:"Index",refcount:"u8",data:"AccountData"},AccountInfoWithRefCount:{_fallback:"AccountInfoWithRefCountU8",nonce:"Index",refcount:"RefCount",data:"AccountData"},AccountInfoWithDualRefCount:{_fallback:"AccountInfoWithRefCount",nonce:"Index",consumers:"RefCount",providers:"RefCount",data:"AccountData"},AccountInfoWithProviders:"AccountInfoWithDualRefCount",AccountInfoWithTripleRefCount:{_fallback:"AccountInfoWithDualRefCount",nonce:"Index",consumers:"RefCount",providers:"RefCount",sufficients:"RefCount",data:"AccountData"},ApplyExtrinsicResult:"Result<DispatchOutcome, TransactionValidityError>",ApplyExtrinsicResultPre6:"Result<DispatchOutcomePre6, TransactionValidityError>",ArithmeticError:{_enum:["Underflow","Overflow","DivisionByZero"]},BlockLength:{max:"PerDispatchClassU32"},BlockWeights:{baseBlock:"Weight",maxBlock:"Weight",perClass:"PerDispatchClassWeightsPerClass"},ChainProperties:"GenericChainProperties",ChainType:{_enum:{Development:"Null",Local:"Null",Live:"Null",Custom:"Text"}},ConsumedWeight:"PerDispatchClassWeight",DigestOf:"Digest",DispatchClass:{_enum:["Normal","Operational","Mandatory"]},DispatchError:{_enum:{Other:"Null",CannotLookup:"Null",BadOrigin:"Null",Module:"DispatchErrorModule",ConsumerRemaining:"Null",NoProviders:"Null",TooManyConsumers:"Null",Token:"TokenError",Arithmetic:"ArithmeticError",Transactional:"TransactionalError",Exhausted:"Null",Corruption:"Null",Unavailable:"Null"}},DispatchErrorPre6:{_enum:{Other:"Null",CannotLookup:"Null",BadOrigin:"Null",Module:"DispatchErrorModulePre6",ConsumerRemaining:"Null",NoProviders:"Null",TooManyConsumers:"Null",Token:"TokenError",Arithmetic:"ArithmeticError",Transactional:"TransactionalError"}},DispatchErrorPre6First:{_enum:{Other:"Null",CannotLookup:"Null",BadOrigin:"Null",Module:"DispatchErrorModulePre6",ConsumerRemaining:"Null",NoProviders:"Null",Token:"TokenError",Arithmetic:"ArithmeticError",Transactional:"TransactionalError"}},DispatchErrorModuleU8:{index:"u8",error:"u8"},DispatchErrorModuleU8a:{index:"u8",error:"[u8; 4]"},DispatchErrorModule:"DispatchErrorModuleU8a",DispatchErrorModulePre6:"DispatchErrorModuleU8",DispatchErrorTo198:{module:"Option<u8>",error:"u8"},DispatchInfo:{weight:"Weight",class:"DispatchClass",paysFee:"Pays"},DispatchInfoTo190:{weight:"Weight",class:"DispatchClass"},DispatchInfoTo244:{weight:"Weight",class:"DispatchClass",paysFee:"bool"},DispatchOutcome:"Result<(), DispatchError>",DispatchOutcomePre6:"Result<(), DispatchErrorPre6>",DispatchResult:"Result<(), DispatchError>",DispatchResultOf:"DispatchResult",DispatchResultTo198:"Result<(), Text>",Event:"GenericEvent",EventId:"[u8; 2]",EventIndex:"u32",EventRecord:{phase:"Phase",event:"Event",topics:"Vec<Hash>"},Health:{peers:"u64",isSyncing:"bool",shouldHavePeers:"bool"},InvalidTransaction:{_enum:{Call:"Null",Payment:"Null",Future:"Null",Stale:"Null",BadProof:"Null",AncientBirthBlock:"Null",ExhaustsResources:"Null",Custom:"u8",BadMandatory:"Null",MandatoryDispatch:"Null",BadSigner:"Null"}},Key:"Bytes",LastRuntimeUpgradeInfo:{specVersion:"Compact<u32>",specName:"Text"},NetworkState:{peerId:"Text",listenedAddresses:"Vec<Text>",externalAddresses:"Vec<Text>",connectedPeers:"HashMap<Text, Peer>",notConnectedPeers:"HashMap<Text, NotConnectedPeer>",averageDownloadPerSec:"u64",averageUploadPerSec:"u64",peerset:"NetworkStatePeerset"},NetworkStatePeerset:{messageQueue:"u64",nodes:"HashMap<Text, NetworkStatePeersetInfo>"},NetworkStatePeersetInfo:{connected:"bool",reputation:"i32"},NodeRole:{_enum:{Full:"Null",LightClient:"Null",Authority:"Null",UnknownRole:"u8"}},NotConnectedPeer:{knownAddresses:"Vec<Text>",latestPingTime:"Option<PeerPing>",versionString:"Option<Text>"},Peer:{enabled:"bool",endpoint:"PeerEndpoint",knownAddresses:"Vec<Text>",latestPingTime:"PeerPing",open:"bool",versionString:"Text"},PeerEndpoint:{listening:"PeerEndpointAddr"},PeerEndpointAddr:{_alias:{localAddr:"local_addr",sendBackAddr:"send_back_addr"},localAddr:"Text",sendBackAddr:"Text"},PeerPing:{nanos:"u64",secs:"u64"},PeerInfo:{peerId:"Text",roles:"Text",protocolVersion:"u32",bestHash:"Hash",bestNumber:"BlockNumber"},PerDispatchClassU32:{normal:"u32",operational:"u32",mandatory:"u32"},PerDispatchClassWeight:{normal:"Weight",operational:"Weight",mandatory:"Weight"},PerDispatchClassWeightsPerClass:{normal:"WeightPerClass",operational:"WeightPerClass",mandatory:"WeightPerClass"},Phase:{_enum:{ApplyExtrinsic:"u32",Finalization:"Null",Initialization:"Null"}},RawOrigin:{_enum:{Root:"Null",Signed:"AccountId",None:"Null"}},RefCount:"u32",RefCountTo259:"u8",SyncState:{startingBlock:"BlockNumber",currentBlock:"BlockNumber",highestBlock:"Option<BlockNumber>"},SystemOrigin:"RawOrigin",TokenError:{_enum:["NoFunds","WouldDie","BelowMinimum","CannotCreate","UnknownAsset","Frozen","Unsupported","Underflow","Overflow"]},TransactionValidityError:{_enum:{Invalid:"InvalidTransaction",Unknown:"UnknownTransaction"}},TransactionalError:{_enum:["LimitReached","NoLayer"]},UnknownTransaction:{_enum:{CannotLookup:"Null",NoUnsignedValidator:"Null",Custom:"u8"}},WeightPerClass:{baseExtrinsic:"Weight",maxExtrinsic:"Option<Weight>",maxTotal:"Option<Weight>",reserved:"Option<Weight>"}}};t.default=o},44078:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rpc=void 0,t.rpc={accountNextIndex:{alias:["account_nextIndex"],description:"Retrieves the next accountIndex as available on the node",params:[{name:"accountId",type:"AccountId"}],type:"Index"},addLogFilter:{description:"Adds the supplied directives to the current log filter",params:[{name:"directives",type:"Text"}],type:"Null"},addReservedPeer:{description:"Adds a reserved peer",params:[{name:"peer",type:"Text"}],type:"Text"},chain:{description:"Retrieves the chain",params:[],type:"Text"},chainType:{description:"Retrieves the chain type",params:[],type:"ChainType"},dryRun:{alias:["system_dryRunAt"],description:"Dry run an extrinsic at a given block",params:[{name:"extrinsic",type:"Bytes"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"ApplyExtrinsicResult"},health:{description:"Return health status of the node",noErrorLog:!0,params:[],type:"Health"},localListenAddresses:{description:"The addresses include a trailing /p2p/ with the local PeerId, and are thus suitable to be passed to addReservedPeer or as a bootnode address for example",params:[],type:"Vec<Text>"},localPeerId:{description:"Returns the base58-encoded PeerId of the node",params:[],type:"Text"},name:{description:"Retrieves the node name",params:[],type:"Text"},networkState:{alias:["system_unstable_networkState"],description:"Returns current state of the network",params:[],type:"NetworkState"},nodeRoles:{description:"Returns the roles the node is running as",params:[],type:"Vec<NodeRole>"},peers:{description:"Returns the currently connected peers",params:[],type:"Vec<PeerInfo>"},properties:{description:"Get a custom set of properties as a JSON object, defined in the chain spec",params:[],type:"ChainProperties"},removeReservedPeer:{description:"Remove a reserved peer",params:[{name:"peerId",type:"Text"}],type:"Text"},reservedPeers:{description:"Returns the list of reserved peers",params:[],type:"Vec<Text>"},resetLogFilter:{description:"Resets the log filter to Substrate defaults",params:[],type:"Null"},syncState:{description:"Returns the state of the syncing of the node",params:[],type:"SyncState"},version:{description:"Retrieves the version of the node",params:[],type:"Text"}}},61646:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.runtime=void 0,t.runtime={AccountNonceApi:[{methods:{account_nonce:{description:"The API to query account nonce (aka transaction index)",params:[{name:"accountId",type:"AccountId"}],type:"Index"}},version:1}]}},82532:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{Bounty:{proposer:"AccountId",value:"Balance",fee:"Balance",curatorDeposit:"Balance",bond:"Balance",status:"BountyStatus"},BountyIndex:"u32",BountyStatus:{_enum:{Proposed:"Null",Approved:"Null",Funded:"Null",CuratorProposed:"BountyStatusCuratorProposed",Active:"BountyStatusActive",PendingPayout:"BountyStatusPendingPayout"}},BountyStatusActive:{curator:"AccountId",updateDue:"BlockNumber"},BountyStatusCuratorProposed:{curator:"AccountId"},BountyStatusPendingPayout:{curator:"AccountId",beneficiary:"AccountId",unlockAt:"BlockNumber"},OpenTip:{reason:"Hash",who:"AccountId",finder:"AccountId",deposit:"Balance",closes:"Option<BlockNumber>",tips:"Vec<OpenTipTip>",findersFee:"bool"},OpenTipTo225:{reason:"Hash",who:"AccountId",finder:"Option<OpenTipFinderTo225>",closes:"Option<BlockNumber>",tips:"Vec<OpenTipTip>"},OpenTipFinderTo225:"(AccountId, Balance)",OpenTipTip:"(AccountId, Balance)",TreasuryProposal:{proposer:"AccountId",value:"Balance",beneficiary:"AccountId",bond:"Balance"}}}},76868:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{Multiplier:"Fixed128"}}},68329:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={rpc:{},runtime:r(89863).runtime,types:{TransactionSource:{_enum:["InBlock","Local","External"]},TransactionValidity:"Result<ValidTransaction, TransactionValidityError>",ValidTransaction:{priority:"TransactionPriority",requires:"Vec<TransactionTag>",provides:"Vec<TransactionTag>",longevity:"TransactionLongevity",propagate:"bool"}}};t.default=n},89863:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.runtime=void 0,t.runtime={TaggedTransactionQueue:[{methods:{validate_transaction:{description:"Validate the transaction.",params:[{name:"source",type:"TransactionSource"},{name:"tx",type:"Extrinsic"},{name:"blockHash",type:"BlockHash"}],type:"TransactionValidity"}},version:3},{methods:{validate_transaction:{description:"Validate the transaction.",params:[{name:"source",type:"TransactionSource"},{name:"tx",type:"Extrinsic"}],type:"TransactionValidity"}},version:2},{methods:{validate_transaction:{description:"Validate the transaction.",params:[{name:"tx",type:"Extrinsic"}],type:"TransactionValidity"}},version:1}]}},29464:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{ClassId:"u32",InstanceId:"u32",DepositBalance:"Balance",DepositBalanceOf:"Balance",ClassDetails:{owner:"AccountId",issuer:"AccountId",admin:"AccountId",freezer:"AccountId",totalDeposit:"DepositBalance",freeHolding:"bool",instances:"u32",instanceMetadatas:"u32",attributes:"u32",isFrozen:"bool"},DestroyWitness:{instances:"Compact<u32>",instanceMetadatas:"Compact<u32>",attributes:"Compact<u32>"},InstanceDetails:{owner:"AccountId",approved:"Option<AccountId>",isFrozen:"bool",deposit:"DepositBalance"},ClassMetadata:{deposit:"DepositBalance",data:"Vec<u8>",isFrozen:"bool"},InstanceMetadata:{deposit:"DepositBalance",data:"Vec<u8>",isFrozen:"bool"}}}},81784:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{Multisig:{when:"Timepoint",deposit:"Balance",depositor:"AccountId",approvals:"Vec<AccountId>"},Timepoint:{height:"BlockNumber",index:"u32"}}}},1456:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{VestingInfo:{locked:"Balance",perBlock:"Balance",startingBlock:"BlockNumber"}}}},23769:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(91812),i=r(57026),o=r(8406),a=r(30820),s=r(2108),u={rpc:{},types:(0,i.objectSpread)({},{BodyId:{_enum:{Unit:"Null",Named:"Vec<u8>",Index:"Compact<u32>",Executive:"Null",Technical:"Null",Legislative:"Null",Judicial:"Null"}},BodyPart:{_enum:{Voice:"Null",Members:"Compact<u32>",Fraction:{nom:"Compact<u32>",denom:"Compact<u32>"},AtLeastProportion:{nom:"Compact<u32>",denom:"Compact<u32>"},MoreThanProportion:{nom:"Compact<u32>",denom:"Compact<u32>"}}},InteriorMultiLocation:"Junctions",NetworkId:{_enum:{Any:"Null",Named:"Vec<u8>",Polkadot:"Null",Kusama:"Null"}}},{XcmOrigin:{_enum:{Xcm:"MultiLocation"}},XcmpMessageFormat:{_enum:["ConcatenatedVersionedXcm","ConcatenatedEncodedBlob","Signals"]},XcmAssetId:{_enum:{Concrete:"MultiLocation",Abstract:"Bytes"}},InboundStatus:{_enum:["Ok","Suspended"]},OutboundStatus:{_enum:["Ok","Suspended"]},MultiAssets:"Vec<MultiAsset>"},o.v0,a.v1,s.v2,(0,n.mapXcmTypes)("V2"),{DoubleEncodedCall:{encoded:"Vec<u8>"},XcmOriginKind:{_enum:["Native","SovereignAccount","Superuser","Xcm"]},Outcome:{_enum:{Complete:"Weight",Incomplete:"(Weight, XcmErrorV0)",Error:"XcmErrorV0"}},QueryId:"u64",QueryStatus:{_enum:{Pending:{responder:"VersionedMultiLocation",maybeNotify:"Option<(u8, u8)>",timeout:"BlockNumber"},Ready:{response:"VersionedResponse",at:"BlockNumber"}}},QueueConfigData:{suspendThreshold:"u32",dropThreshold:"u32",resumeThreshold:"u32",thresholdWeight:"Weight",weightRestrictDecay:"Weight"},VersionMigrationStage:{_enum:{MigrateSupportedVersion:"Null",MigrateVersionNotifiers:"Null",NotifyCurrentTargets:"Option<Bytes>",MigrateAndNotifyOldTargets:"Null"}},VersionedMultiAsset:{_enum:{V0:"MultiAssetV0",V1:"MultiAssetV1",V2:"MultiAssetV2"}},VersionedMultiAssets:{_enum:{V0:"Vec<MultiAssetV0>",V1:"MultiAssetsV1",V2:"MultiAssetsV2"}},VersionedMultiLocation:{_enum:{V0:"MultiLocationV0",V1:"MultiLocationV1",V2:"MultiLocationV2"}},VersionedResponse:{V0:"ResponseV0",V1:"ResponseV1",V2:"ResponseV2"},VersionedXcm:{_enum:{V0:"XcmV0",V1:"XcmV1",V2:"XcmV2"}},XcmVersion:"u32"})};t.default=u},8406:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.v0=void 0,t.v0={FungibilityV0:"FungibilityV1",WildFungibilityV0:"WildFungibilityV1",AssetInstanceV0:{_enum:{Undefined:"Null",Index8:"u8",Index16:"Compact<u16>",Index32:"Compact<u32>",Index64:"Compact<u64>",Index128:"Compact<u128>",Array4:"[u8; 4]",Array8:"[u8; 8]",Array16:"[u8; 16]",Array32:"[u8; 32]",Blob:"Vec<u8>"}},JunctionV0:{_enum:{Parent:"Null",Parachain:"Compact<u32>",AccountId32:{network:"NetworkId",id:"AccountId"},AccountIndex64:{network:"NetworkId",index:"Compact<u64>"},AccountKey20:{network:"NetworkId",key:"[u8; 20]"},PalletInstance:"u8",GeneralIndex:"Compact<u128>",GeneralKey:"Vec<u8>",OnlyChild:"Null",Plurality:{id:"BodyId",part:"BodyPart"}}},MultiAssetV0:{_enum:{None:"Null",All:"Null",AllFungible:"Null",AllNonFungible:"Null",AllAbstractFungible:"Vec<u8>",AllAbstractNonFungible:"Vec<u8>",AllConcreteFungible:"MultiLocationV0",AllConcreteNonFungible:"MultiLocationV0",AbstractFungible:{id:"Vec<u8>",instance:"Compact<u128>"},AbstractNonFungible:{class:"Vec<u8>",instance:"AssetInstanceV0"},ConcreteFungible:{id:"MultiLocationV0",amount:"Compact<u128>"},ConcreteNonFungible:{class:"MultiLocationV0",instance:"AssetInstanceV0"}}},MultiLocationV0:{_enum:{Here:"Null",X1:"JunctionV0",X2:"(JunctionV0, JunctionV0)",X3:"(JunctionV0, JunctionV0, JunctionV0)",X4:"(JunctionV0, JunctionV0, JunctionV0, JunctionV0)",X5:"(JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0)",X6:"(JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0)",X7:"(JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0)",X8:"(JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0)"}},OriginKindV0:{_enum:["Native","SovereignAccount","Superuser","Xcm"]},ResponseV0:{_enum:{Assets:"Vec<MultiAssetV0>"}},XcmV0:{_enum:{WithdrawAsset:{assets:"Vec<MultiAssetV0>",effects:"Vec<XcmOrderV0>"},ReserveAssetDeposit:{assets:"Vec<MultiAssetV0>",effects:"Vec<XcmOrderV0>"},ReceiveTeleportedAsset:{assets:"Vec<MultiAssetV0>",effects:"Vec<XcmOrderV0>"},QueryResponse:{queryId:"Compact<u64>",response:"ResponseV0"},TransferAsset:{assets:"Vec<MultiAssetV0>",dest:"MultiLocationV0"},TransferReserveAsset:{assets:"Vec<MultiAssetV0>",dest:"MultiLocationV0",effects:"Vec<XcmOrderV0>"},Transact:{originType:"XcmOriginKind",requireWeightAtMost:"u64",call:"DoubleEncodedCall"},HrmpNewChannelOpenRequest:{sender:"Compact<u32>",maxMessageSize:"Compact<u32>",maxCapacity:"Compact<u32>"},HrmpChannelAccepted:{recipient:"Compact<u32>"},HrmpChannelClosing:{initiator:"Compact<u32>",sender:"Compact<u32>",recipient:"Compact<u32>"},RelayedFrom:{who:"MultiLocationV0",message:"XcmV0"}}},XcmErrorV0:{_enum:{Undefined:"Null",Overflow:"Null",Unimplemented:"Null",UnhandledXcmVersion:"Null",UnhandledXcmMessage:"Null",UnhandledEffect:"Null",EscalationOfPrivilege:"Null",UntrustedReserveLocation:"Null",UntrustedTeleportLocation:"Null",DestinationBufferOverflow:"Null",SendFailed:"Null",CannotReachDestination:"(MultiLocation, Xcm)",MultiLocationFull:"Null",FailedToDecode:"Null",BadOrigin:"Null",ExceedsMaxMessageSize:"Null",FailedToTransactAsset:"Null",WeightLimitReached:"Weight",Wildcard:"Null",TooMuchWeightRequired:"Null",NotHoldingFees:"Null",WeightNotComputable:"Null",Barrier:"Null",NotWithdrawable:"Null",LocationCannotHold:"Null",TooExpensive:"Null",AssetNotFound:"Null",RecursionLimitReached:"Null"}},XcmOrderV0:{_enum:{Null:"Null",DepositAsset:{assets:"Vec<MultiAssetV0>",dest:"MultiLocationV0"},DepositReserveAsset:{assets:"Vec<MultiAssetV0>",dest:"MultiLocationV0",effects:"Vec<XcmOrderV0>"},ExchangeAsset:{give:"Vec<MultiAssetV0>",receive:"Vec<MultiAssetV0>"},InitiateReserveWithdraw:{assets:"Vec<MultiAssetV0>",reserve:"MultiLocationV0",effects:"Vec<XcmOrderV0>"},InitiateTeleport:{assets:"Vec<MultiAssetV0>",dest:"MultiLocationV0",effects:"Vec<XcmOrderV0>"},QueryHolding:{queryId:"Compact<u64>",dest:"MultiLocationV0",assets:"Vec<MultiAssetV0>"},BuyExecution:{fees:"MultiAssetV0",weight:"u64",debt:"u64",haltOnError:"bool",xcm:"Vec<XcmV0>"}}}}},30820:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.v1=void 0,t.v1={AssetInstanceV1:{_enum:{Undefined:"Null",Index:"Compact<u128>",Array4:"[u8; 4]",Array8:"[u8; 8]",Array16:"[u8; 16]",Array32:"[u8; 32]",Blob:"Bytes"}},FungibilityV1:{_enum:{Fungible:"Compact<u128>",NonFungible:"AssetInstanceV1"}},JunctionV1:{_enum:{Parachain:"Compact<u32>",AccountId32:{network:"NetworkId",id:"AccountId"},AccountIndex64:{network:"NetworkId",index:"Compact<u64>"},AccountKey20:{network:"NetworkId",key:"[u8; 20]"},PalletInstance:"u8",GeneralIndex:"Compact<u128>",GeneralKey:"Vec<u8>",OnlyChild:"Null",Plurality:{id:"BodyId",part:"BodyPart"}}},JunctionsV1:{_enum:{Here:"Null",X1:"JunctionV1",X2:"(JunctionV1, JunctionV1)",X3:"(JunctionV1, JunctionV1, JunctionV1)",X4:"(JunctionV1, JunctionV1, JunctionV1, JunctionV1)",X5:"(JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1)",X6:"(JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1)",X7:"(JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1)",X8:"(JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1)"}},MultiAssetsV1:"Vec<MultiAssetV1>",MultiAssetV1:{id:"XcmAssetId",fungibility:"FungibilityV1"},MultiAssetFilterV1:{_enum:{Definite:"MultiAssetsV1",Wild:"WildMultiAssetV1"}},MultiLocationV1:{parents:"u8",interior:"JunctionsV1"},OriginKindV1:"OriginKindV0",ResponseV1:{_enum:{Assets:"MultiAssetsV1"}},WildFungibilityV1:{_enum:["Fungible","NonFungible"]},WildMultiAssetV1:{_enum:{All:"Null",AllOf:{id:"XcmAssetId",fungibility:"WildFungibilityV1"}}},XcmV1:{_enum:{WithdrawAsset:{assets:"MultiAssetsV1",effects:"Vec<XcmOrderV1>"},ReserveAssetDeposit:{assets:"MultiAssetsV1",effects:"Vec<XcmOrderV1>"},ReceiveTeleportedAsset:{assets:"MultiAssetsV1",effects:"Vec<XcmOrderV1>"},QueryResponse:{queryId:"Compact<u64>",response:"ResponseV1"},TransferAsset:{assets:"MultiAssetsV1",dest:"MultiLocationV1"},TransferReserveAsset:{assets:"MultiAssetsV1",dest:"MultiLocationV1",effects:"Vec<XcmOrderV1>"},Transact:{originType:"XcmOriginKind",requireWeightAtMost:"u64",call:"DoubleEncodedCall"},HrmpNewChannelOpenRequest:{sender:"Compact<u32>",maxMessageSize:"Compact<u32>",maxCapacity:"Compact<u32>"},HrmpChannelAccepted:{recipient:"Compact<u32>"},HrmpChannelClosing:{initiator:"Compact<u32>",sender:"Compact<u32>",recipient:"Compact<u32>"},RelayedFrom:{who:"MultiLocationV1",message:"XcmV1"}}},XcmErrorV1:{_enum:{Undefined:"Null",Overflow:"Null",Unimplemented:"Null",UnhandledXcmVersion:"Null",UnhandledXcmMessage:"Null",UnhandledEffect:"Null",EscalationOfPrivilege:"Null",UntrustedReserveLocation:"Null",UntrustedTeleportLocation:"Null",DestinationBufferOverflow:"Null",SendFailed:"Null",CannotReachDestination:"(MultiLocationV1, XcmV1)",MultiLocationFull:"Null",FailedToDecode:"Null",BadOrigin:"Null",ExceedsMaxMessageSize:"Null",FailedToTransactAsset:"Null",WeightLimitReached:"Weight",Wildcard:"Null",TooMuchWeightRequired:"Null",NotHoldingFees:"Null",WeightNotComputable:"Null",Barrier:"Null",NotWithdrawable:"Null",LocationCannotHold:"Null",TooExpensive:"Null",AssetNotFound:"Null",DestinationUnsupported:"Null",RecursionLimitReached:"Null"}},XcmOrderV1:{_enum:{Noop:"Null",DepositAsset:{assets:"MultiAssetFilterV1",maxAssets:"u32",beneficiary:"MultiLocationV1"},DepositReserveAsset:{assets:"MultiAssetFilterV1",maxAssets:"u32",dest:"MultiLocationV1",effects:"Vec<XcmOrderV1>"},ExchangeAsset:{give:"MultiAssetFilterV1",receive:"MultiAssetsV1"},InitiateReserveWithdraw:{assets:"MultiAssetFilterV1",reserve:"MultiLocationV1",effects:"Vec<XcmOrderV1>"},InitiateTeleport:{assets:"MultiAssetFilterV1",dest:"MultiLocationV1",effects:"Vec<XcmOrderV1>"},QueryHolding:{queryId:"Compact<u64>",dest:"MultiLocationV1",assets:"MultiAssetFilterV1"},BuyExecution:{fees:"MultiAssetV1",weight:"u64",debt:"u64",haltOnError:"bool",instructions:"Vec<XcmV1>"}}}}},2108:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.v2=void 0,t.v2={AssetInstanceV2:"AssetInstanceV1",FungibilityV2:"FungibilityV1",JunctionV2:"JunctionV1",JunctionsV2:"JunctionsV1",MultiAssetsV2:"MultiAssetsV1",MultiAssetV2:"MultiAssetV1",MultiAssetFilterV2:"MultiAssetFilterV1",MultiLocationV2:"MultiLocationV1",OriginKindV2:"OriginKindV1",WildFungibilityV2:"WildFungibilityV1",ResponseV2:{_enum:{Null:"Null",Assets:"MultiAssetsV2",ExecutionResult:"ResponseV2Result"}},ResponseV2Error:"(u32, XcmErrorV2)",ResponseV2Result:"Result<Null, ResponseV2Error>",WeightLimitV2:{_enum:{Unlimited:"Null",Limited:"Compact<u64>"}},InstructionV2:{_enum:{WithdrawAsset:"MultiAssetsV2",ReserveAssetDeposited:"MultiAssetsV2",ReceiveTeleportedAsset:"MultiAssetsV2",QueryResponse:{queryId:"Compact<u64>",response:"ResponseV2",maxWeight:"Compact<u64>"},TransferAsset:{assets:"MultiAssetsV2",beneficiary:"MultiLocationV2"},TransferReserveAsset:{assets:"MultiAssetsV2",dest:"MultiLocationV2",xcm:"XcmV2"},Transact:{originType:"OriginKindV2",requireWeightAtMost:"u64",call:"DoubleEncodedCall"},HrmpNewChannelOpenRequest:{sender:"Compact<u32>",maxMessageSize:"Compact<u32>",maxCapacity:"Compact<u32>"},HrmpChannelAccepted:{recipient:"Compact<u32>"},HrmpChannelClosing:{initiator:"Compact<u32>",sender:"Compact<u32>",recipient:"Compact<u32>"},ClearOrigin:"Null",DescendOrigin:"InteriorMultiLocation",ReportError:{queryId:"Compact<u64>",dest:"MultiLocationV2",maxResponseWeight:"Compact<u64>"},DepositAsset:{assets:"MultiAssetFilterV2",maxAssets:"u32",beneficiary:"MultiLocationV2"},DepositReserveAsset:{assets:"MultiAssetFilterV2",maxAssets:"u32",dest:"MultiLocationV2",xcm:"XcmV2"},ExchangeAsset:{give:"MultiAssetFilterV2",receive:"MultiAssetsV2"},InitiateReserveWithdraw:{assets:"MultiAssetFilterV2",reserve:"MultiLocationV2",xcm:"XcmV2"},InitiateTeleport:{assets:"MultiAssetFilterV2",dest:"MultiLocationV2",xcm:"XcmV2"},QueryHolding:{query_id:"Compact<u64>",dest:"MultiLocationV2",assets:"MultiAssetFilterV2",maxResponse_Weight:"Compact<u64>"},BuyExecution:{fees:"MultiAssetV2",weightLimit:"WeightLimitV2"},RefundSurplus:"Null",SetErrorHandler:"XcmV2",SetAppendix:"XcmV2",ClearError:"Null",ClaimAsset:{assets:"MultiAssetsV2",ticket:"MultiLocationV2"},Trap:"u64"}},WildMultiAssetV2:"WildMultiAssetV1",XcmV2:"Vec<InstructionV2>",XcmErrorV2:{_enum:{Undefined:"Null",Overflow:"Null",Unimplemented:"Null",UnhandledXcmVersion:"Null",UnhandledXcmMessage:"Null",UnhandledEffect:"Null",EscalationOfPrivilege:"Null",UntrustedReserveLocation:"Null",UntrustedTeleportLocation:"Null",DestinationBufferOverflow:"Null",MultiLocationFull:"Null",MultiLocationNotInvertible:"Null",FailedToDecode:"Null",BadOrigin:"Null",ExceedsMaxMessageSize:"Null",FailedToTransactAsset:"Null",WeightLimitReached:"Weight",Wildcard:"Null",TooMuchWeightRequired:"Null",NotHoldingFees:"Null",WeightNotComputable:"Null",Barrier:"Null",NotWithdrawable:"Null",LocationCannotHold:"Null",TooExpensive:"Null",AssetNotFound:"Null",DestinationUnsupported:"Null",RecursionLimitReached:"Null",Transport:"Null",Unroutable:"Null",UnknownWeightRequired:"Null",Trap:"u64",UnknownClaim:"Null",InvalidLocation:"Null"}},XcmOrderV2:"XcmOrderV1"}},49545:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(89728)),o=n(r(56690)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.MagicNumber=t.MAGIC_NUMBER=void 0;var c=r(74754);const f=1635018093;t.MAGIC_NUMBER=f;let l=function(e){(0,a.default)(c,e);var t,r,n=(t=c,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function c(e,t){var r;if((0,o.default)(this,c),!(r=n.call(this,e,t)).isEmpty&&!r.eq(f))throw new Error(`MagicNumber mismatch: expected ${e.createTypeUnsafe("u32",[f]).toHex()}, found ${r.toHex()}`);return r}return(0,i.default)(c)}(c.U32);t.MagicNumber=l},42319:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(89728)),o=n(r(56690)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var c=r(57026),f=r(49048);const l=new Uint8Array([109,101,116,97,9]),d=l.length-1;let h=function(e){(0,a.default)(h,e);var t,r,n=(t=h,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function h(e,t){return(0,o.default)(this,h),n.call(this,e,(0,c.isU8a)(t)||(0,c.isString)(t)?function(e,t){if(0===t.length)return l;if(9===t[d])try{return new f.MetadataVersioned(e,t)}catch(e){return t[d]=10,t}return t}(e,(0,c.u8aToU8a)(t)):t)}return(0,i.default)(h)}(f.MetadataVersioned);t.Metadata=h},49048:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(66115)),s=n(r(41588)),u=n(r(61655)),c=n(r(94993)),f=n(r(73808)),l=n(r(29399)),d=n(r(40426));Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataVersioned=void 0;var h=r(74754),p=r(5411),b=r(8349),y=r(88094),g=r(35194),m=r(35874),v=r(50118),w=r(49545),_=r(83373),x=(0,d.default)("converted"),O=(0,d.default)("assertVersion"),k=(0,d.default)("getVersion"),P=(0,d.default)("metadata");let S=function(e){(0,u.default)(d,e);var t,r,n=(t=d,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,f.default)(t);if(r){var i=(0,f.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,c.default)(this,e)});function d(e,t){var r;return(0,i.default)(this,d),r=n.call(this,e,{magicNumber:w.MagicNumber,metadata:"MetadataAll"},t),Object.defineProperty((0,a.default)(r),x,{writable:!0,value:new Map}),Object.defineProperty((0,a.default)(r),O,{writable:!0,value:e=>{if(r.version>e)throw new Error(`Cannot convert metadata from version ${r.version} to ${e}`);return r.version===e}}),Object.defineProperty((0,a.default)(r),k,{writable:!0,value:(e,t)=>{const n=`asV${e}`,i="latest"===e?"asV14":"asV"+(e-1);return"latest"!==e&&(0,l.default)((0,a.default)(r),O)[O](e)?(0,l.default)((0,a.default)(r),P)[P]()[n]:((0,l.default)((0,a.default)(r),x)[x].has(e)||(0,l.default)((0,a.default)(r),x)[x].set(e,t(r.registry,r[i],r.version)),(0,l.default)((0,a.default)(r),x)[x].get(e))}}),Object.defineProperty((0,a.default)(r),P,{writable:!0,value:()=>r.getT("metadata")}),r}return(0,o.default)(d,[{key:"asCallsOnly",get:function(){return new d(this.registry,{magicNumber:this.magicNumber,metadata:this.registry.createTypeUnsafe("MetadataAll",[(0,_.toCallsOnly)(this.registry,this.asLatest),14])})}},{key:"asV9",get:function(){return(0,l.default)(this,O)[O](9),(0,l.default)(this,P)[P]().asV9}},{key:"asV10",get:function(){return(0,l.default)(this,k)[k](10,p.toV10)}},{key:"asV11",get:function(){return(0,l.default)(this,k)[k](11,b.toV11)}},{key:"asV12",get:function(){return(0,l.default)(this,k)[k](12,y.toV12)}},{key:"asV13",get:function(){return(0,l.default)(this,k)[k](13,g.toV13)}},{key:"asV14",get:function(){return(0,l.default)(this,k)[k](14,m.toV14)}},{key:"asLatest",get:function(){return(0,l.default)(this,k)[k]("latest",v.toLatest)}},{key:"magicNumber",get:function(){return this.getT("magicNumber")}},{key:"version",get:function(){return(0,l.default)(this,P)[P]().index}},{key:"getUniqTypes",value:function(e){return(0,_.getUniqTypes)(this.registry,this.asLatest,e)}},{key:"toJSON",value:function(){return this.asLatest,(0,s.default)((0,f.default)(d.prototype),"toJSON",this).call(this)}}]),d}(h.Struct);t.MetadataVersioned=S},20187:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(66115)),s=n(r(61655)),u=n(r(94993)),c=n(r(73808));var f=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.PortableRegistry=void 0;var l=f(r(29399)),d=f(r(40426)),h=r(74754),p=r(91812),b=r(57026);const y=(0,b.logger)("PortableRegistry"),g={toNumber:()=>-1},m={Char:"u32",Str:"Text"},v=S(["sp_core::crypto::AccountId32","sp_runtime::generic::era::Era","sp_runtime::multiaddress::MultiAddress","frame_support::weights::weight_v2::Weight","sp_weights::weight_v2::Weight","account::AccountId20","polkadot_runtime_common::claims::EthereumAddress","*_democracy::vote::Vote","*_conviction_voting::vote::Vote","*_identity::types::Data","sp_core::OpaqueMetadata","sp_core::OpaquePeerId","sp_core::offchain::OpaqueMultiaddr","primitive_types::*","sp_arithmetic::per_things::*","ink_env::types::*","ink_primitives::types::*"]),w=S(["pallet_identity::types::BitFlags"]),_=["bitvec::order::Lsb0","BitOrderLsb0","bitvec::order::Msb0","BitOrderMsb0"],x=["BoundedBTreeMap","BoundedBTreeSet","BoundedVec","Box","BTreeMap","BTreeSet","Cow","Option","Range","RangeInclusive","Result","WeakBoundedVec","WrapperKeepOpaque","WrapperOpaque"],O=["entries","keys","new","size","hash","registry"],k=["generic","misc","pallet","traits","types"];function P(e){const t=new Array(e.length);for(let r=0;r<e.length;r++)t[r]=e[r].toString();return t}function S(e){const t=new Array(e.length);for(let r=0;r<e.length;r++)t[r]=e[r].split("::");return t}function A(e,t){return e.length===t.length&&e.every(((e,r)=>{const n=t[r].toString();if("*"===e||e===n)return!0;if(e.includes("*")&&e.includes("_")&&n.includes("_")){let t=e.split("_"),r=n.split("_");if("*"===t[0]){const e=r.indexOf(t[1]);-1!==e&&(t=t.slice(1),r=r.slice(e))}return 2===t.length&&"*"===t[1]&&t[0]===r[0]||A(t,r)}return!1}))}function E(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const o=n.length;if(0===o||x.includes(n[o-1].toString()))return null;const a=new Array(o),s=new Array(o);for(let e=0;e<o;e++){const t=(0,b.stringPascalCase)(i?n[e].replace("pallet_",""):n[e]),r=t.toLowerCase();a[e]=t,s[e]=r}let u="";for(let e=0;e<o;e++){const t=s[e];1===e&&k.includes(t)||t!==s[e+1]&&(u+=a[e])}if("RawOrigin"===a[1]&&2===o&&2===r.length&&r[1].type.isSome){const t=e[r[1].type.unwrap().toNumber()];2===t.type.path.length&&(u=`${u}${t.type.path[1].toString()}`)}return{lookupIndex:t,name:u,params:r}}function M(e,t,r){let{type:{params:n,path:i}}=r;return E(e,t,n,i)}function j(e,t){const r=e.length;for(let t=0;t<r;t++){const n=e[t];for(let i=t+1;i<r;i++){const t=e[i];if(n.lookupIndex!==t.lookupIndex&&n.name===t.name)return!1}}for(let n=0;n<r;n++){const r=e[n];t[r.lookupIndex]=r.name}return!0}var T=(0,d.default)("alias"),B=(0,d.default)("lookups"),I=(0,d.default)("names"),N=(0,d.default)("params"),R=(0,d.default)("typeDefs"),C=(0,d.default)("types"),U=(0,d.default)("createSiDef"),L=(0,d.default)("getLookupId"),D=(0,d.default)("extract"),H=(0,d.default)("extractArray"),F=(0,d.default)("extractBitSequence"),V=(0,d.default)("extractCompact"),z=(0,d.default)("extractComposite"),q=(0,d.default)("extractCompositeSet"),K=(0,d.default)("extractFields"),W=(0,d.default)("extractFieldsAlias"),G=(0,d.default)("extractHistoric"),X=(0,d.default)("extractPrimitive"),Z=(0,d.default)("extractAliasPath"),J=(0,d.default)("extractSequence"),Y=(0,d.default)("extractTuple"),Q=(0,d.default)("extractVariant"),$=(0,d.default)("extractVariantEnum");let ee=function(e){(0,s.default)(f,e);var t,r,n=(t=f,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,c.default)(t);if(r){var i=(0,c.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,u.default)(this,e)});function f(e,t,r){var o;(0,i.default)(this,f),o=n.call(this,e,{types:"Vec<PortableType>"},t),Object.defineProperty((0,a.default)(o),$,{value:ge}),Object.defineProperty((0,a.default)(o),Q,{value:ye}),Object.defineProperty((0,a.default)(o),Y,{value:be}),Object.defineProperty((0,a.default)(o),J,{value:pe}),Object.defineProperty((0,a.default)(o),Z,{value:he}),Object.defineProperty((0,a.default)(o),X,{value:de}),Object.defineProperty((0,a.default)(o),G,{value:le}),Object.defineProperty((0,a.default)(o),W,{value:fe}),Object.defineProperty((0,a.default)(o),K,{value:ce}),Object.defineProperty((0,a.default)(o),q,{value:ue}),Object.defineProperty((0,a.default)(o),z,{value:se}),Object.defineProperty((0,a.default)(o),V,{value:ae}),Object.defineProperty((0,a.default)(o),F,{value:oe}),Object.defineProperty((0,a.default)(o),H,{value:ie}),Object.defineProperty((0,a.default)(o),D,{value:ne}),Object.defineProperty((0,a.default)(o),L,{value:re}),Object.defineProperty((0,a.default)(o),U,{value:te}),Object.defineProperty((0,a.default)(o),T,{writable:!0,value:void 0}),Object.defineProperty((0,a.default)(o),B,{writable:!0,value:void 0}),Object.defineProperty((0,a.default)(o),I,{writable:!0,value:void 0}),Object.defineProperty((0,a.default)(o),N,{writable:!0,value:void 0}),Object.defineProperty((0,a.default)(o),R,{writable:!0,value:{}}),Object.defineProperty((0,a.default)(o),C,{writable:!0,value:void 0});const{lookups:s,names:u,params:c,types:d}=function(e,t){const r=[],n={},i=t.length;for(let e=0;e<i;e++){const i=t[e],o=i.id.toNumber(),a=M(t,o,t[e]);a&&r.push(a),n[o]=i}const o={},a={},s={},u=function(e,t,r){const n={};return r.map(((i,o)=>{const{lookupIndex:a,name:s,params:u}=i;if(!s)return null;if(n[a])return i;const c=function(e,t,r){const n=[r[t]];for(let i=t+1;i<r.length;i++){const t=r[i];t.name===e&&n.push(t)}return n}(s,o,r);if(1===c.length)return i;if(!c.some((e=>u.length!==e.params.length||u.some(((t,r)=>!t.name.eq(e.params[r].name)||t.type.unwrapOr(g).toNumber()!==e.params[r].type.unwrapOr(g).toNumber())))))return i;const f=u.findIndex(((e,t)=>{let{type:r}=e;return c.every(((e,n)=>{let{params:i}=e;return i[t].type.isSome&&(0===n||!i[t].type.eq(r))}))}));if(-1===f)return i;const l=new Array(c.length);for(let t=0;t<c.length;t++){const{lookupIndex:r,name:n,params:i}=c[t],{def:o,path:a}=e.getSiType(i[f].type.unwrap());if(!o.isPrimitive&&!a.length)return null;l[t]={lookupIndex:r,name:o.isPrimitive?`${n}${o.asPrimitive.toString()}`:`${n}${a[a.length-1].toString()}`}}if(j(l,n))return i;for(let r=0;r<c.length;r++){const{lookupIndex:n,name:i,params:o}=c[r],{def:a,path:s}=e.getSiType(o[f].type.unwrap()),u=E(t,n,o,s,!0);if(a.isPrimitive||!u)return null;l[r]={lookupIndex:n,name:`${i}${u.name}`}}return j(l,n)?i:null})).filter((e=>!!e)).map((e=>{let{lookupIndex:t,name:r,params:i}=e;return{lookupIndex:t,name:n[t]||r,params:i}}))}(e,t,r),c=u.length;for(let t=0;t<c;t++){const{lookupIndex:r,name:n,params:i}=u[t];a[r]=n,o[n]=e.registry.createLookupType(r),s[n]=i}return{lookups:o,names:a,params:s,types:n}}((0,a.default)(o),o.types);return(0,l.default)((0,a.default)(o),T)[T]=function(e,t){const r=Object.keys(e).some((e=>!e.startsWith("Pallet"))),n={};if(e.SpRuntimeUncheckedExtrinsic){const[,{type:t}]=e.SpRuntimeUncheckedExtrinsic;n[t.unwrap().toNumber()]="Call"}else r&&!t&&y.warn("Unable to determine runtime Call type, cannot inspect sp_runtime::generic::unchecked_extrinsic::UncheckedExtrinsic");if(e.FrameSystemEventRecord){const[{type:t}]=e.FrameSystemEventRecord;n[t.unwrap().toNumber()]="Event"}else r&&!t&&y.warn("Unable to determine runtime Event type, cannot inspect frame_system::EventRecord");return n}(c,r),(0,l.default)((0,a.default)(o),B)[B]=s,(0,l.default)((0,a.default)(o),I)[I]=u,(0,l.default)((0,a.default)(o),N)[N]=c,(0,l.default)((0,a.default)(o),C)[C]=d,o}return(0,o.default)(f,[{key:"names",get:function(){return Object.values((0,l.default)(this,I)[I]).sort()}},{key:"types",get:function(){return this.getT("types")}},{key:"register",value:function(){!function(e,t,r,n){if(e.registry.register(t),n.SpRuntimeUncheckedExtrinsic){const[t,,i]=n.SpRuntimeUncheckedExtrinsic,o=e.getSiType(t.type.unwrap()),a=e.getSiType(i.type.unwrap()).path.join("::");let s=o.path.join("::");const u="sp_runtime::multiaddress::MultiAddress"===s;if(u){const[t]=o.params;s=e.getSiType(t.type.unwrap()).path.join("::")}e.registry.register({AccountId:["sp_core::crypto::AccountId32"].includes(s)?"AccountId32":["account::AccountId20","primitive_types::H160"].includes(s)?"AccountId20":"AccountId32",Address:u?"MultiAddress":"AccountId",ExtrinsicSignature:["sp_runtime::MultiSignature"].includes(a)?"MultiSignature":r[i.type.unwrap().toNumber()]||"MultiSignature"})}}(this,(0,l.default)(this,B)[B],(0,l.default)(this,I)[I],(0,l.default)(this,N)[N])}},{key:"getName",value:function(e){return(0,l.default)(this,I)[I][(0,l.default)(this,L)[L](e)]}},{key:"getSiType",value:function(e){const t=((0,l.default)(this,C)[C]||this.types)[(0,l.default)(this,L)[L](e)];if(!t)throw new Error(`PortableRegistry: Unable to find type with lookupId ${e.toString()}`);return t.type}},{key:"getTypeDef",value:function(e){const t=(0,l.default)(this,L)[L](e);if(!(0,l.default)(this,R)[R][t]){const r=(0,l.default)(this,I)[I][t],n={info:p.TypeDefInfo.DoNotConstruct,lookupIndex:t,lookupName:r,type:this.registry.createLookupType(t)};r&&((0,l.default)(this,R)[R][t]=n);const i=(0,l.default)(this,D)[D](this.getSiType(e),t);r||((0,l.default)(this,R)[R][t]=n),Object.keys(i).forEach((e=>{("lookupName"!==e||i[e])&&((0,l.default)(this,R)[R][t][e]=i[e])})),i.info===p.TypeDefInfo.Plain&&((0,l.default)(this,R)[R][t].lookupNameRoot=(0,l.default)(this,R)[R][t].lookupName,delete(0,l.default)(this,R)[R][t].lookupName)}return(0,l.default)(this,R)[R][t]}},{key:"sanitizeField",value:function(e){let t=null,r=null;return e.isSome&&(t=(0,b.stringCamelCase)(e.unwrap()),t.includes("#")?(r=t,t=r.replace(/#/g,"_")):O.includes(t)&&(r=t,t=`${t}_`)),[t,r]}}]),f}(h.Struct);function te(e){const t=this.getTypeDef(e),r=e.toNumber();return[p.TypeDefInfo.DoNotConstruct,p.TypeDefInfo.Enum,p.TypeDefInfo.Struct].includes(t.info)&&t.lookupName?{docs:t.docs,info:p.TypeDefInfo.Si,lookupIndex:r,lookupName:(0,l.default)(this,I)[I][r],type:this.registry.createLookupType(e)}:t}function re(e){if((0,b.isString)(e)){if(!this.registry.isLookupType(e))throw new Error(`PortableRegistry: Expected a lookup string type, found ${e}`);return parseInt(e.replace("Lookup",""),10)}return(0,b.isNumber)(e)?e:e.toNumber()}function ne(e,t){const r=e.path.join("::");let n;const i=(0,l.default)(this,T)[T][t]||function(e){let{def:t,path:r}=e;return"sp_weights::weight_v2::Weight"===r.join("::")&&t.isComposite&&1!==t.asComposite.fields.length?null:r.length&&v.some((e=>A(e,r)))?r[r.length-1].toString():null}(e);try{if(i)n=(0,l.default)(this,Z)[Z](t,i);else switch(e.def.type){case"Array":n=(0,l.default)(this,H)[H](t,e.def.asArray);break;case"BitSequence":n=(0,l.default)(this,F)[F](t,e.def.asBitSequence);break;case"Compact":n=(0,l.default)(this,V)[V](t,e.def.asCompact);break;case"Composite":n=(0,l.default)(this,z)[z](t,e,e.def.asComposite);break;case"HistoricMetaCompat":n=(0,l.default)(this,G)[G](t,e.def.asHistoricMetaCompat);break;case"Primitive":n=(0,l.default)(this,X)[X](t,e);break;case"Sequence":n=(0,l.default)(this,J)[J](t,e.def.asSequence);break;case"Tuple":n=(0,l.default)(this,Y)[Y](t,e.def.asTuple);break;case"Variant":n=(0,l.default)(this,Q)[Q](t,e,e.def.asVariant);break;default:(0,b.assertUnreachable)(e.def.type)}}catch(n){throw new Error(`PortableRegistry: ${t}${r?` (${r})`:""}: Error extracting ${(0,b.stringify)(e)}: ${n.message}`)}return(0,b.objectSpread)({docs:P(e.docs),namespace:r},n)}function ie(e,t){let{len:r,type:n}=t;const i=r.toNumber();if(i>2048)throw new Error("Only support for [Type; <length>], where length <= 2048");return(0,p.withTypeString)(this.registry,{info:p.TypeDefInfo.VecFixed,length:i,sub:(0,l.default)(this,U)[U](n)})}function oe(e,t){let{bitOrderType:r,bitStoreType:n}=t;const i=(0,l.default)(this,U)[U](r),o=(0,l.default)(this,U)[U](n),[a,s]=_.includes(i.namespace||"")?[i,o]:[o,i];if(!_.includes(a.namespace||""))throw new Error(`Unexpected bitOrder found as ${a.namespace||"<unknown>"}`);if(s.info!==p.TypeDefInfo.Plain||"u8"!==s.type)throw new Error(`Only u8 bitStore is currently supported, found ${s.type}`);return{info:p.TypeDefInfo.Plain,type:"BitVec"}}function ae(e,t){let{type:r}=t;return(0,p.withTypeString)(this.registry,{info:p.TypeDefInfo.Compact,sub:(0,l.default)(this,U)[U](r)})}function se(e,t,r){let{params:n,path:i}=t,{fields:o}=r;if(i.length){const e=i[0].toString(),t=i[i.length-1].toString();if(1===i.length&&"BTreeMap"===e){if(2!==n.length)throw new Error(`BTreeMap requires 2 parameters, found ${n.length}`);return(0,p.withTypeString)(this.registry,{info:p.TypeDefInfo.BTreeMap,sub:n.map((e=>{let{type:t}=e;return(0,l.default)(this,U)[U](t.unwrap())}))})}if(1===i.length&&"BTreeSet"===e){if(1!==n.length)throw new Error(`BTreeSet requires 1 parameter, found ${n.length}`);return(0,p.withTypeString)(this.registry,{info:p.TypeDefInfo.BTreeSet,sub:(0,l.default)(this,U)[U](n[0].type.unwrap())})}if(["Range","RangeInclusive"].includes(e)){if(1!==n.length)throw new Error(`Range requires 1 parameter, found ${n.length}`);return(0,p.withTypeString)(this.registry,{info:"Range"===e?p.TypeDefInfo.Range:p.TypeDefInfo.RangeInclusive,sub:(0,l.default)(this,U)[U](n[0].type.unwrap()),type:e})}if(["WrapperKeepOpaque","WrapperOpaque"].includes(t)){if(1!==n.length)throw new Error(`WrapperOpaque requires 1 parameter, found ${n.length}`);return(0,p.withTypeString)(this.registry,{info:"WrapperKeepOpaque"===t?p.TypeDefInfo.WrapperKeepOpaque:p.TypeDefInfo.WrapperOpaque,sub:(0,l.default)(this,U)[U](n[0].type.unwrap()),type:t})}}return w.some((e=>A(e,i)))?(0,l.default)(this,q)[q](e,n,o):(0,l.default)(this,K)[K](e,o)}function ue(e,t,r){if(1!==t.length||1!==r.length)throw new Error("Set handling expects param/field as single entries");return(0,p.withTypeString)(this.registry,{info:p.TypeDefInfo.Set,length:this.registry.createTypeUnsafe(this.registry.createLookupType(r[0].type),[]).bitLength(),sub:this.getSiType(t[0].type.unwrap()).def.asVariant.variants.map((e=>{let{index:t,name:r}=e;return{index:t.toNumber(),info:p.TypeDefInfo.Plain,name:r.toString(),type:"Null"}}))})}function ce(e,t){let r=!0,n=!0;for(let e=0;e<t.length;e++){const{name:i}=t[e];r=r&&i.isSome,n=n&&i.isNone}if(!n&&!r)throw new Error("Invalid fields type detected, expected either Tuple (all unnamed) or Struct (all named)");if(0===t.length)return{info:p.TypeDefInfo.Null,type:"Null"};if(n&&1===t.length){const r=(0,l.default)(this,U)[U](t[0].type);return(0,b.objectSpread)({},r,-1===e?null:{lookupIndex:e,lookupName:(0,l.default)(this,I)[I][e],lookupNameRoot:r.lookupName},t[0].typeName.isSome?{typeName:(0,h.sanitize)(t[0].typeName.unwrap())}:null)}const[i,o]=(0,l.default)(this,W)[W](t);return(0,p.withTypeString)(this.registry,(0,b.objectSpread)({info:n?p.TypeDefInfo.Tuple:p.TypeDefInfo.Struct,sub:i},o.size?{alias:o}:null,-1===e?null:{lookupIndex:e,lookupName:(0,l.default)(this,I)[I][e]}))}function fe(e){const t=new Map,r=new Array(e.length);for(let n=0;n<e.length;n++){const{docs:i,name:o,type:a,typeName:s}=e[n],u=(0,l.default)(this,U)[U](a);if(o.isNone)r[n]=u;else{const[e,a]=this.sanitizeField(o);e&&a&&t.set(e,a),r[n]=(0,b.objectSpread)({docs:P(i),name:e},u,s.isSome?{typeName:(0,h.sanitize)(s.unwrap())}:null)}}return[r,t]}function le(e,t){return(0,b.objectSpread)({displayName:t.toString(),isFromSi:!0},(0,p.getTypeDef)(t))}function de(e,t){const r=t.def.asPrimitive.type.toString();return{info:p.TypeDefInfo.Plain,type:m[r]||r.toLowerCase()}}function he(e,t){return{info:p.TypeDefInfo.Plain,type:t}}function pe(e,t){let{type:r}=t;const n=(0,l.default)(this,U)[U](r);return"u8"===n.type?{info:p.TypeDefInfo.Plain,type:"Bytes"}:(0,p.withTypeString)(this.registry,{info:p.TypeDefInfo.Vec,lookupIndex:e,lookupName:(0,l.default)(this,I)[I][e],sub:n})}function be(e,t){if(0===t.length)return{info:p.TypeDefInfo.Null,type:"Null"};if(1===t.length)return this.getTypeDef(t[0]);const r=t.map((e=>(0,l.default)(this,U)[U](e)));return(0,p.withTypeString)(this.registry,{info:p.TypeDefInfo.Tuple,lookupIndex:e,lookupName:(0,l.default)(this,I)[I][e],sub:r})}function ye(e,t,r){let{params:n,path:i}=t,{variants:o}=r;if(i.length){const e=i[0].toString();if("Option"===e){if(1!==n.length)throw new Error(`Option requires 1 parameter, found ${n.length}`);return(0,p.withTypeString)(this.registry,{info:p.TypeDefInfo.Option,sub:(0,l.default)(this,U)[U](n[0].type.unwrap())})}if("Result"===e){if(2!==n.length)throw new Error(`Result requires 2 parameters, found ${n.length}`);return(0,p.withTypeString)(this.registry,{info:p.TypeDefInfo.Result,sub:n.map(((e,t)=>{let{type:r}=e;return(0,b.objectSpread)({name:["Ok","Error"][t]},(0,l.default)(this,U)[U](r.unwrap()))}))})}}return 0===o.length?{info:p.TypeDefInfo.Null,type:"Null"}:(0,l.default)(this,$)[$](e,o)}function ge(e,t){const r=[];return t.slice().sort(((e,t)=>e.index.cmp(t.index))).forEach((e=>{let{fields:t,index:n,name:i}=e;const o=n.toNumber();for(;r.length!==o;)r.push({index:r.length,info:p.TypeDefInfo.Null,name:`__Unused${r.length}`,type:"Null"});r.push((0,b.objectSpread)((0,l.default)(this,K)[K](-1,t),{index:o,name:i.toString()}))})),(0,p.withTypeString)(this.registry,{info:p.TypeDefInfo.Enum,lookupIndex:e,lookupName:(0,l.default)(this,I)[I][e],sub:r})}t.PortableRegistry=ee},73598:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PortableRegistry",{enumerable:!0,get:function(){return n.PortableRegistry}}),Object.defineProperty(t,"convertSiV0toV1",{enumerable:!0,get:function(){return i.toV1}});var n=r(20187),i=r(69606)},69606:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toV1=function(e,t){return t.map(((t,r)=>e.createType("PortableType",{id:r+1,type:{def:u(e,t),docs:[],params:t.params.map((t=>e.createType("Si1TypeParameter",{type:t.toNumber()}))),path:t.path.map((e=>e.toString()))}})))};var n=r(57026);function i(e){return(t,r)=>{let{type:n}=r;return t.createType("Si1TypeDef",{[e]:{type:n.toNumber()}})}}const o=i("Compact");function a(e,t){return t.map((t=>{let{docs:r,name:n,type:i,typeName:o}=t;return e.createType("Si1Field",{docs:r,name:n,type:i.toNumber(),typeName:o})}))}const s=i("Sequence");function u(e,t){let r,{def:i,path:u}=t;switch(i.type){case"Array":r=function(e,t){let{len:r,type:n}=t;return e.createType("Si1TypeDef",{Array:{len:r,type:n.toNumber()}})}(e,i.asArray);break;case"BitSequence":r=function(e,t){let{bitOrderType:r,bitStoreType:n}=t;return e.createType("Si1TypeDef",{BitSequence:{bitOrderType:r.toNumber(),bitStoreType:n.toNumber()}})}(e,i.asBitSequence);break;case"Compact":r=o(e,i.asCompact);break;case"Composite":r=function(e,t){let{fields:r}=t;return e.createType("Si1TypeDef",{Composite:{fields:a(e,r)}})}(e,i.asComposite);break;case"Phantom":r=function(e,t){return console.warn(`Converting phantom type ${t.map((e=>e.toString())).join("::")} to empty tuple`),e.createType("Si1TypeDef",{Tuple:[]})}(e,u);break;case"Primitive":r=function(e,t){return e.createType("Si1TypeDef",{Primitive:t.toString()})}(e,i.asPrimitive);break;case"Sequence":r=s(e,i.asSequence);break;case"Tuple":r=function(e,t){return e.createType("Si1TypeDef",{Tuple:t.map((e=>e.toNumber()))})}(e,i.asTuple);break;case"Variant":r=function(e,t){let{variants:r}=t;return e.createType("Si1TypeDef",{Variant:{variants:r.map(((t,r)=>{let{discriminant:n,docs:i,fields:o,name:s}=t;return e.createType("Si1Variant",{docs:i,fields:a(e,o),index:n.isSome?n.unwrap().toNumber():r,name:s})}))}})}(e,i.asVariant);break;default:(0,n.assertUnreachable)(i.type)}return r}},86696:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decorateConstants=function(e,t,r){let{pallets:o}=t;const a={};for(let t=0;t<o.length;t++){const{constants:r,name:s}=o[t];r.isEmpty||(0,n.lazyMethod)(a,(0,n.stringCamelCase)(s),(()=>(0,n.lazyMethods)({},r,(t=>{const r=e.createTypeUnsafe(e.createLookupType(t.type),[(0,n.hexToU8a)(t.value.toHex())]);return r.meta=t,r}),i.objectNameToCamel)))}return a};var n=r(57026),i=r(85549)},61537:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decorateErrors=function(e,t,r){let{lookup:s,pallets:u}=t;const c={};for(let t=0;t<u.length;t++){const{errors:f,index:l,name:d}=u[t];if(f.isSome){const u=r>=12?l.toNumber():t;(0,n.lazyMethod)(c,(0,n.stringCamelCase)(d),(()=>(0,i.lazyVariants)(s,f.unwrap(),o.objectNameToString,(t=>({is:e=>(0,n.isCodec)(e)&&(0,n.isCodec)(e.index)&&e.index.eq(u)&&((0,n.isU8a)(e.error)?e.error[0]===t.index.toNumber():(0,n.isCodec)(e.error)&&e.error.eq(t.index)),meta:e.createTypeUnsafe("ErrorMetadataLatest",[a(s,t)])})))))}}return c},t.variantToMeta=a;var n=r(57026),i=r(1038),o=r(85549);function a(e,t){return(0,n.objectSpread)({args:t.fields.map((t=>{let{type:r}=t;return e.getTypeDef(r).type}))},t)}},50716:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decorateEvents=function(e,t,r){let{lookup:u,pallets:c}=t;const f={},l=c.filter(s);for(let t=0;t<l.length;t++){const{events:s,index:c,name:d}=l[t],h=r>=12?c.toNumber():t;(0,n.lazyMethod)(f,(0,n.stringCamelCase)(d),(()=>(0,i.lazyVariants)(u,s.unwrap(),a.objectNameToString,(t=>({is:e=>(0,n.isCodec)(e)&&(0,n.isU8a)(e.index)&&h===e.index[0]&&t.index.eq(e.index[1]),meta:e.createTypeUnsafe("EventMetadataLatest",[(0,o.variantToMeta)(u,t)])})))))}return f},t.filterEventsSome=s;var n=r(57026),i=r(1038),o=r(61537),a=r(85549);function s(e){let{events:t}=e;return t.isSome}},50569:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createUnchecked=function(e,t,r,i){const o=i.fields,a=(0,n.stringCamelCase)(i.name),s=function(){for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];if(o.length!==s.length)throw new Error(`Extrinsic ${t}.${a} expects ${o.length} arguments, got ${s.length}.`);return e.createTypeUnsafe("Call",[{args:s,callIndex:r},i])};return s.is=e=>function(e,t){return e.callIndex[0]===t[0]&&e.callIndex[1]===t[1]}(e,r),s.callIndex=r,s.meta=i,s.method=a,s.section=t,s.toJSON=()=>i.toJSON(),s};var n=r(57026)},79977:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCallFunction=c,t.decorateExtrinsics=function(e,t,r){let{lookup:o,pallets:s}=t;const f={},l=s.filter(u);for(let t=0;t<l.length;t++){const{calls:s,index:u,name:d}=l[t],h=(0,n.stringCamelCase)(d),p=r>=12?u.toNumber():t;(0,n.lazyMethod)(f,h,(()=>(0,i.lazyVariants)(o,s.unwrap(),a.objectNameToCamel,(t=>c(e,o,t,h,p)))))}return f},t.filterCallsSome=u;var n=r(57026),i=r(1038),o=r(83373),a=r(85549),s=r(50569);function u(e){let{calls:t}=e;return t.isSome}function c(e,t,r,i,a){const{fields:u,index:c}=r,f=new Array(u.length);for(let e=0;e<u.length;e++){const{name:r,type:i,typeName:a}=u[e];f[e]=(0,n.objectSpread)({name:(0,n.stringCamelCase)(r.unwrapOr(`param${e}`)),type:(0,o.getSiName)(t,i)},a.isSome?{typeName:a.unwrap()}:null)}return(0,s.createUnchecked)(e,i,new Uint8Array([a,c.toNumber()]),e.createTypeUnsafe("FunctionMetadataLatest",[(0,n.objectSpread)({args:f},r)]))}},24551:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"decorateConstants",{enumerable:!0,get:function(){return i.decorateConstants}}),Object.defineProperty(t,"decorateErrors",{enumerable:!0,get:function(){return o.decorateErrors}}),Object.defineProperty(t,"decorateEvents",{enumerable:!0,get:function(){return a.decorateEvents}}),Object.defineProperty(t,"decorateExtrinsics",{enumerable:!0,get:function(){return s.decorateExtrinsics}}),Object.defineProperty(t,"decorateStorage",{enumerable:!0,get:function(){return u.decorateStorage}}),t.expandMetadata=function(e,t){if(!(t instanceof n.Metadata))throw new Error("You need to pass a valid Metadata instance to Decorated");const r=t.asLatest,c=t.version;return{consts:(0,i.decorateConstants)(e,r,c),errors:(0,o.decorateErrors)(e,r,c),events:(0,a.decorateEvents)(e,r,c),query:(0,u.decorateStorage)(e,r,c),registry:e,tx:(0,s.decorateExtrinsics)(e,r,c)}},Object.defineProperty(t,"filterCallsSome",{enumerable:!0,get:function(){return s.filterCallsSome}}),Object.defineProperty(t,"filterEventsSome",{enumerable:!0,get:function(){return a.filterEventsSome}});var n=r(42319),i=r(86696),o=r(61537),a=r(50716),s=r(79977),u=r(95675)},92876:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NO_RAW_ARGS=void 0,t.createFunction=function(e,t,r){const{meta:{type:o}}=t,a=function(e,t,r){const{meta:n,method:o,prefix:a,section:s}=t,c=function(e,t,r){const{meta:{type:n}}=t;let o=null;return function(){if(n.isPlain)return o||(o=r.skipHashing?(0,i.compactAddLength)((0,i.u8aToU8a)(r.key)):p(e,t,u)),o;const{hashers:a,key:s}=n.asMap;for(var c=arguments.length,f=new Array(c),l=0;l<c;l++)f[l]=arguments[l];return 1===a.length?p(e,t,{args:f,hashers:a,keys:[s]}):p(e,t,{args:f,hashers:a,keys:e.lookup.getSiType(s).def.asTuple})}}(e,t,r);return c.inspect=function(e,t,r){const{meta:{type:n}}=t;return function(){if(n.isPlain)return r.skipHashing?{inner:[],name:"wellKnown",outer:[(0,i.u8aToU8a)(r.key)]}:d(e,t,u);const{hashers:o,key:a}=n.asMap;for(var s=arguments.length,c=new Array(s),f=0;f<s;f++)c[f]=arguments[f];return 1===o.length?d(e,t,{args:c,hashers:o,keys:[a]}):d(e,t,{args:c,hashers:o,keys:e.lookup.getSiType(a).def.asTuple})}}(e,t,r),c.meta=n,c.method=(0,i.stringCamelCase)(o),c.prefix=a,c.section=s,c.toJSON=()=>(0,i.objectSpread)({storage:{method:o,prefix:a,section:s}},n.toJSON()),c}(e,t,r);return o.isMap&&function(e,t,r){const{meta:{type:o},method:a,section:s}=t;r.iterKey=function(e,t,r,n){let{meta:{docs:i,name:o,type:a},section:s}=t,{method:u}=r;const c=e.createTypeUnsafe("StorageEntryMetadataLatest",[{docs:i,fallback:e.createTypeUnsafe("Bytes",[]),modifier:e.createTypeUnsafe("StorageEntryModifierLatest",[1]),name:o,type:e.createTypeUnsafe("StorageEntryTypeLatest",[a.asMap.key,0])}]);n.meta=c;const f=function(){return e.createTypeUnsafe("StorageKey",[n(...arguments),{method:u,section:s}])};return f.meta=c,f}(e,t,r,(function(){for(var r=arguments.length,c=new Array(r),f=0;f<r;f++)c[f]=arguments[f];if(c.length&&(o.isPlain||c.length>=o.asMap.hashers.length))throw new Error(`Iteration of ${(0,i.stringCamelCase)(s||"unknown")}.${(0,i.stringCamelCase)(a||"unknown")} needs arguments to be at least one less than the full arguments, found [${c.join(", ")}]`);if(c.length&&o.isMap){const{hashers:r,key:i}=o.asMap,a=1===r.length?[i]:e.lookup.getSiType(i).def.asTuple;return new n.Raw(e,h(e,t,{args:c,hashers:r.slice(0,c.length),keys:a.slice(0,c.length)}))}return new n.Raw(e,h(e,t,u))}))}(e,t,a),a.keyPrefix=function(){return a.iterKey&&a.iterKey(...arguments)||(0,i.compactStripLength)(a())[1]},a},t.createKeyInspect=d,t.createKeyRaw=h,t.createKeyRawParts=l;var n=r(74754),i=r(57026),o=r(94814),a=r(83373),s=r(56261);const u={args:[],hashers:[],keys:[]};function c(e){return!(0,i.isUndefined)(e)}function f(e,t){let{method:r,section:n}=e,{args:o,keys:a}=t;if(!Array.isArray(o))throw new Error(`Call to ${(0,i.stringCamelCase)(n||"unknown")}.${(0,i.stringCamelCase)(r||"unknown")} needs ${a.length} arguments`);if(o.filter(c).length!==a.length)throw new Error(`Call to ${(0,i.stringCamelCase)(n||"unknown")}.${(0,i.stringCamelCase)(r||"unknown")} needs ${a.length} arguments, found [${o.join(", ")}]`)}function l(e,t,r){let{args:n,hashers:i,keys:a}=r;const u=new Array(a.length);for(let t=0;t<a.length;t++)u[t]=(0,s.getHasher)(i[t])(e.createTypeUnsafe(e.createLookupType(a[t]),[n[t]]).toU8a());return[[(0,o.xxhashAsU8a)(t.prefix,128),(0,o.xxhashAsU8a)(t.method,128)],u]}function d(e,t,r){f(t,r);const{meta:n}=t,[i,o]=l(e,t,r);let s=[];if(n.type.isMap){const{hashers:t,key:r}=n.type.asMap;s=1===t.length?[`${t[0].type}(${(0,a.getSiName)(e.lookup,r)})`]:e.lookup.getSiType(r).def.asTuple.map(((r,n)=>`${t[n].type}(${(0,a.getSiName)(e.lookup,r)})`))}const u=["module","method"].concat(...r.args.map(((e,t)=>s[t])));return{inner:i.concat(...o).map(((e,t)=>({name:u[t],outer:[e]})))}}function h(e,t,r){const[n,o]=l(e,t,r);return(0,i.u8aConcat)(...n,...o)}function p(e,t,r){return f(t,r),(0,i.compactAddLength)(h(e,t,r))}t.NO_RAW_ARGS=u},56261:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getHasher=function(e){return a[e.type]||o};var n=r(57026),i=r(94814);const o=e=>(0,i.xxhashAsU8a)(e,128),a={Blake2_128:e=>(0,i.blake2AsU8a)(e,128),Blake2_128Concat:e=>(0,n.u8aConcat)((0,i.blake2AsU8a)(e,128),(0,n.u8aToU8a)(e)),Blake2_256:e=>(0,i.blake2AsU8a)(e,256),Identity:e=>(0,n.u8aToU8a)(e),Twox128:e=>(0,i.xxhashAsU8a)(e,128),Twox256:e=>(0,i.xxhashAsU8a)(e,256),Twox64Concat:e=>(0,n.u8aConcat)((0,i.xxhashAsU8a)(e,64),(0,n.u8aToU8a)(e))}},44255:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getStorage=function(e){const t={},r=Object.entries(n.substrate);for(let n=0;n<r.length;n++)t[r[n][0]]=r[n][1](e);return{substrate:t}};var n=r(845)},95675:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decorateStorage=function(e,t,r){let{pallets:l}=t;const d=(0,a.getStorage)(e);for(let t=0;t<l.length;t++){const{name:r,storage:a}=l[t];if(a.isSome){const t=(0,n.stringCamelCase)(r),{items:l,prefix:h}=a.unwrap(),p=h.toString();(0,n.lazyMethod)(d,t,(()=>(0,n.lazyMethods)({palletVersion:(0,s.createRuntimeFunction)({method:u,prefix:p,section:t},(0,o.createKeyRaw)(e,{method:c,prefix:r.toString()},o.NO_RAW_ARGS),f)(e)},l,(r=>(0,o.createFunction)(e,{meta:r,method:r.name.toString(),prefix:p,section:t},{})),i.objectNameToCamel)))}}return d};var n=r(57026),i=r(85549),o=r(92876),a=r(44255),s=r(37066);const u="palletVersion",c=":__STORAGE_VERSION__:",f={docs:"Returns the current pallet version from storage",type:"u16"}},845:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.substrate=void 0;var n=r(37066);function i(e,t,r){return(0,n.createRuntimeFunction)({method:e,prefix:"Substrate",section:"substrate"},t,r)}const o={changesTrieConfig:i("changesTrieConfig",":changes_trie",{docs:"Changes trie configuration is stored under this key.",type:"u32"}),childStorageKeyPrefix:i("childStorageKeyPrefix",":child_storage:",{docs:"Prefix of child storage keys.",type:"u32"}),code:i("code",":code",{docs:"Wasm code of the runtime.",type:"Bytes"}),extrinsicIndex:i("extrinsicIndex",":extrinsic_index",{docs:"Current extrinsic index (u32) is stored under this key.",type:"u32"}),heapPages:i("heapPages",":heappages",{docs:"Number of wasm linear memory pages required for execution of the runtime.",type:"u64"})};t.substrate=o},37066:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createRuntimeFunction=function(e,t,r){let{method:i,prefix:a,section:s}=e,{docs:u,type:c}=r;return e=>{var r;return(0,n.createFunction)(e,{meta:e.createTypeUnsafe("StorageEntryMetadataLatest",[{docs:e.createTypeUnsafe("Vec<Text>",[[u]]),modifier:e.createTypeUnsafe("StorageEntryModifierLatest",["Required"]),name:e.createTypeUnsafe("Text",[i]),toJSON:()=>t,type:e.createTypeUnsafe("StorageEntryTypeLatest",[{Plain:(null==(r=o(e,c))?void 0:r.id)||0}])}]),method:i,prefix:a,section:s},{key:t,skipHashing:!0})}};var n=r(92876);function i(e,t){const r=t.toLowerCase();return e.lookup.types.find((e=>e.type.def.isPrimitive&&e.type.def.asPrimitive.toString().toLowerCase()===r||e.type.def.isHistoricMetaCompat&&e.type.def.asHistoricMetaCompat.toString().toLowerCase()===r))}function o(e,t){let r=i(e,t);if(!r&&"Bytes"===t){const n=i(e,"u8");n&&(r=e.lookup.types.find((e=>e.type.def.isSequence&&e.type.def.asSequence.type.eq(n.id)||e.type.def.isHistoricMetaCompat&&e.type.def.asHistoricMetaCompat.eq(t))))}return r||console.warn(`Unable to map ${t} to a lookup index`),r}},85549:(e,t,r)=>{"use strict";function n(e){return t=>{let{name:r}=t;return e(r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.objectNameToString=t.objectNameToCamel=void 0;const i=n(r(57026).stringCamelCase);t.objectNameToCamel=i;const o=n((e=>e.toString()));t.objectNameToString=o},49890:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Metadata",{enumerable:!0,get:function(){return n.Metadata}}),Object.defineProperty(t,"PortableRegistry",{enumerable:!0,get:function(){return i.PortableRegistry}}),Object.defineProperty(t,"decorateConstants",{enumerable:!0,get:function(){return o.decorateConstants}}),Object.defineProperty(t,"decorateExtrinsics",{enumerable:!0,get:function(){return o.decorateExtrinsics}}),Object.defineProperty(t,"decorateStorage",{enumerable:!0,get:function(){return o.decorateStorage}}),Object.defineProperty(t,"expandMetadata",{enumerable:!0,get:function(){return o.expandMetadata}});var n=r(42319),i=r(73598),o=r(24551)},24174:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extractTypes=u;var n=r(91812);function i(e,t){let{sub:r}=t;const{lookupName:n,type:i}=r;return u([n||i])}function o(e,t){let{sub:r}=t;return u(r.map((e=>{let{lookupName:t,type:r}=e;return t||r})))}function a(e,t){let{info:r}=t;throw new Error(`Unhandled: Unable to create and validate type from ${e} (info=${n.TypeDefInfo[r]})`)}const s={[n.TypeDefInfo.BTreeMap]:o,[n.TypeDefInfo.BTreeSet]:i,[n.TypeDefInfo.Compact]:i,[n.TypeDefInfo.DoNotConstruct]:a,[n.TypeDefInfo.Enum]:o,[n.TypeDefInfo.HashMap]:o,[n.TypeDefInfo.Int]:a,[n.TypeDefInfo.Linkage]:i,[n.TypeDefInfo.Null]:a,[n.TypeDefInfo.Option]:i,[n.TypeDefInfo.Plain]:(e,t)=>t.lookupName||t.type,[n.TypeDefInfo.Range]:i,[n.TypeDefInfo.RangeInclusive]:i,[n.TypeDefInfo.Result]:o,[n.TypeDefInfo.Set]:o,[n.TypeDefInfo.Si]:a,[n.TypeDefInfo.Struct]:o,[n.TypeDefInfo.Tuple]:o,[n.TypeDefInfo.UInt]:a,[n.TypeDefInfo.Vec]:i,[n.TypeDefInfo.VecFixed]:i,[n.TypeDefInfo.WrapperKeepOpaque]:i,[n.TypeDefInfo.WrapperOpaque]:i};function u(e){const t=e.length,r=new Array(t);for(let i=0;i<t;i++){const t=e[i],o=(0,n.getTypeDef)(t);r[i]=s[o.info](t,o)}return r}},43914:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flattenUniq=function e(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];for(let n=0;n<t.length;n++){const i=t[n];Array.isArray(i)?e(i,r):r.push(i)}return[...new Set(r)]}},12701:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSiName=function(e,t){const r=e.getTypeDef(t);return r.lookupName||r.type}},44711:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getUniqTypes=function(e,t,r){return(0,i.validateTypes)(e,r,(0,n.flattenUniq)(function(e){let{lookup:t,pallets:r}=e;return r.reduce(((e,r)=>{let{calls:n,constants:i,events:s,storage:u}=r;return e.push([o(t,i)]),n.isSome&&e.push(a(t,n.unwrap().type)),s.isSome&&e.push(a(t,s.unwrap().type)),u.isSome&&e.push(u.unwrap().items.map((e=>{let{type:r}=e;if(r.isPlain)return[t.getTypeDef(r.asPlain).type];const{hashers:n,key:i,value:o}=r.asMap;return 1===n.length?[t.getTypeDef(o).type,t.getTypeDef(i).type]:[t.getTypeDef(o).type,...t.getSiType(i).def.asTuple.map((e=>t.getTypeDef(e).type))]}))),e}),[])}(t)))};var n=r(43914),i=r(98129);function o(e,t){return t.map((t=>{let{type:r}=t;return e.getTypeDef(r).type}))}function a(e,t){return e.getSiType(t).def.asVariant.variants.map((t=>{let{fields:r}=t;return o(e,r)}))}},83373:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"flattenUniq",{enumerable:!0,get:function(){return n.flattenUniq}}),Object.defineProperty(t,"getSiName",{enumerable:!0,get:function(){return i.getSiName}}),Object.defineProperty(t,"getUniqTypes",{enumerable:!0,get:function(){return o.getUniqTypes}}),Object.defineProperty(t,"toCallsOnly",{enumerable:!0,get:function(){return a.toCallsOnly}}),Object.defineProperty(t,"validateTypes",{enumerable:!0,get:function(){return s.validateTypes}});var n=r(43914),i=r(12701),o=r(44711),a=r(4749),s=r(98129)},4749:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toCallsOnly=function(e,t){let{extrinsic:r,lookup:o,pallets:a}=t;return e.createTypeUnsafe("MetadataLatest",[{extrinsic:r,lookup:{types:o.types.map((t=>{let{id:r,type:o}=t;return e.createTypeUnsafe("PortableType",[{id:r,type:(0,n.objectSpread)({},o,{docs:i(o.docs)})}])}))},pallets:a.map((t=>{let{calls:r,index:n,name:i}=t;return{calls:e.createTypeUnsafe("Option<PalletCallMetadataLatest>",[r.unwrapOr(null)]),index:n,name:i}}))}]).toJSON()};var n=r(57026);function i(e){const t=e.map((e=>e.toString().trim())),r=t.findIndex((e=>!e.length));return-1===r?t:t.slice(0,r)}},98129:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTypes=function(e,t,r){const n=(0,o.flattenUniq)((0,i.extractTypes)(r)).filter((t=>!e.hasType(t)&&!e.isLookupType(t))).sort();if(0!==n.length){const e=`Unknown types found, no types for ${n.join(", ")}`;if(t)throw new Error(e);a.warn(e)}return r};var n=r(57026),i=r(24174),o=r(43914);const a=(0,n.logger)("metadata")},8349:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toV11=function(e,t){let{modules:r}=t;return e.createTypeUnsafe("MetadataV11",[{extrinsic:{signedExtensions:[],version:0},modules:r}])}},88094:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toV12=function(e,t){let{extrinsic:r,modules:i}=t;return e.createTypeUnsafe("MetadataV12",[{extrinsic:r,modules:i.map((t=>e.createTypeUnsafe("ModuleMetadataV12",[(0,n.objectSpread)({},t,{index:255})])))}])};var n=r(57026)},35194:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toV13=function(e,t){return e.createTypeUnsafe("MetadataV13",[t])}},35874:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toV14=function(e,t,r){const a=[];(function(e){for(let t=0;t<(arguments.length<=1?0:arguments.length-1);t++)s(e,t+1<1||arguments.length<=t+1?void 0:arguments[t+1])})(a,"Null","u8","u16","u32","u64"),function(e,t,r){e.register({OriginCaller:{_enum:t.map(((e,t)=>[e.name.toString(),r>=12?e.index.toNumber():t])).sort(((e,t)=>e[1]-t[1])).reduce(((e,t)=>{let[r,n]=t;for(let t=Object.keys(e).length;t<n;t++)e[`Empty${t}`]="Null";return e[r]=o.knownOrigins[r]||"Null",e}),{})}})}(e,t.modules,r);const u=function(e,t){let{signedExtensions:r,version:n}=t;return e.createTypeUnsafe("ExtrinsicMetadataV14",[{signedExtensions:r.map((e=>({identifier:e,type:0}))),type:0,version:n}])}(e,t.extrinsic),c=t.modules.map((t=>function(e,t,r,o){let{calls:a,constants:s,errors:u,events:c,storage:f}=o;const b=(0,i.getAliasTypes)(t,(0,n.stringCamelCase)(r.name));return t.createTypeUnsafe("PalletMetadataV14",[{calls:a&&l(e,t,r.name,a,b),constants:d(e,t,s,b),errors:u&&h(e,t,r.name,u),events:c&&p(e,t,r.name,c,b),index:r.index,name:r.name,storage:f&&y(e,t,f,b)}])}(a,e,t,{calls:t.calls.unwrapOr(null),constants:t.constants,errors:t.errors.length?t.errors:null,events:t.events.unwrapOr(null),storage:t.storage.unwrapOr(null)})));return e.createTypeUnsafe("MetadataV14",[{extrinsic:u,lookup:{types:a.map(((t,r)=>e.createTypeUnsafe("PortableType",[{id:r,type:t}])))},pallets:c}])};var n=r(57026),i=r(41122),o=r(11952);const a=[["<",">"],["<",","],[",",">"],["(",")"],["(",","],[",",","],[",",")"]];function s(e,t){const r=t.toString(),n=e.findIndex((e=>{let{def:t}=e;return t.HistoricMetaCompat===r}));return-1!==n?n:e.push({def:{HistoricMetaCompat:r}})-1}function u(e,t){return e.push({def:{Tuple:t}})-1}function c(e,t,r,n){return r.push({def:{Variant:{variants:n}},path:[`pallet_${e.toString()}`,"pallet",t]})-1}function f(e,t){t.forEach((t=>{const r=Object.keys(e).find((e=>t.eq(e)));if(r)t.setOverride(e[r]);else{const r=t.toString(),n=Object.entries(e).reduce(((e,t)=>{let[r,n]=t;return a.reduce(((e,t)=>{let[i,o]=t;return e.replace(`${i}${r}${o}`,`${i}${n}${o}`)}),e)}),r);r!==n&&t.setOverride(n)}}))}function l(e,t,r,n,i){const o=n.map(((r,n)=>{let{args:o,docs:a,name:u}=r;return f(i,o.map((e=>{let{type:t}=e;return t}))),t.createTypeUnsafe("SiVariant",[{docs:a,fields:o.map((r=>{let{name:n,type:i}=r;return t.createTypeUnsafe("SiField",[{name:n,type:s(e,i)}])})),index:n,name:u}])}));return t.createTypeUnsafe("PalletCallMetadataV14",[{type:c(r,"Call",e,o)}])}function d(e,t,r,n){return r.map((r=>{let{docs:i,name:o,type:a,value:u}=r;return f(n,[a]),t.createTypeUnsafe("PalletConstantMetadataV14",[{docs:i,name:o,type:s(e,a),value:u}])}))}function h(e,t,r,n,i){const o=n.map(((e,r)=>{let{docs:n,name:i}=e;return t.createTypeUnsafe("SiVariant",[{docs:n,fields:[],index:r,name:i}])}));return t.createTypeUnsafe("PalletErrorMetadataV14",[{type:c(r,"Error",e,o)}])}function p(e,t,r,n,i){const o=n.map(((r,n)=>{let{args:o,docs:a,name:u}=r;return f(i,o),t.createTypeUnsafe("SiVariant",[{docs:a,fields:o.map((r=>t.createTypeUnsafe("SiField",[{type:s(e,r)}]))),index:n,name:u}])}));return t.createTypeUnsafe("PalletEventMetadataV14",[{type:c(r,"Event",e,o)}])}function b(e,t,r,n){let{hashers:i,isLinked:o,isOptional:a,keys:c,value:l}=n;return f(r,[l,...Array.isArray(c)?c:[c]]),t.createTypeUnsafe("StorageEntryTypeV14",[{Map:{hashers:i,key:1===i.length?s(e,c[0]):u(e,c.map((t=>s(e,t)))),value:s(e,o?`(${a?`Option<${l.toString()}>`:l.toString()}, Linkage<${c[0].toString()}>)`:l)}}])}function y(e,t,r,n){let{items:i,prefix:o}=r;return t.createTypeUnsafe("PalletStorageMetadataV14",[{items:i.map((r=>{let i,{docs:o,fallback:a,modifier:u,name:c,type:l}=r;if(l.isPlain){const r=l.asPlain;f(n,[r]),i=t.createTypeUnsafe("StorageEntryTypeV14",[{Plain:s(e,r)}])}else if(l.isMap){const r=l.asMap;i=b(e,t,n,{hashers:[r.hasher],isLinked:r.linked.isTrue,isOptional:u.isOptional,keys:[r.key],value:r.value})}else if(l.isDoubleMap){const r=l.asDoubleMap;i=b(e,t,n,{hashers:[r.hasher,r.key2Hasher],isLinked:!1,isOptional:u.isOptional,keys:[r.key1,r.key2],value:r.value})}else{const r=l.asNMap;i=b(e,t,n,{hashers:r.hashers,isLinked:!1,isOptional:u.isOptional,keys:r.keyVec,value:r.value})}return t.createTypeUnsafe("StorageEntryMetadataV14",[{docs:o,fallback:a,modifier:u,name:c,type:i}])})),prefix:o}])}},50118:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toLatest=function(e,t,r){return t}},5411:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toV10=function(e,t){let{modules:r}=t;return e.createTypeUnsafe("MetadataV10",[{modules:r.map((t=>function(e,t){const r=t.storage.unwrapOr(null);return e.createTypeUnsafe("ModuleMetadataV10",[(0,n.objectSpread)({},t,{storage:r?(0,n.objectSpread)({},r,{items:r.items.map((t=>(0,n.objectSpread)({},t,{type:e.createTypeUnsafe("StorageEntryTypeV10",o(e,t.type))})))}):null})])}(e,t)))}])};var n=r(57026);function i(e,t){return t.toNumber()>=2?e.createTypeUnsafe("StorageHasherV10",[t.toNumber()+1]):e.createTypeUnsafe("StorageHasherV10",[t])}function o(e,t){return t.isMap?[(0,n.objectSpread)({},t.asMap,{hasher:i(e,t.asMap.hasher)}),1]:t.isDoubleMap?[(0,n.objectSpread)({},t.asDoubleMap,{hasher:i(e,t.asDoubleMap.hasher),key2Hasher:i(e,t.asDoubleMap.key2Hasher)}),2]:[t.asPlain,0]}},10686:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/types",path:"/",type:"cjs",version:"9.13.2"}},13853:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(61655)),s=n(r(94993)),u=n(r(73808));Object.defineProperty(t,"__esModule",{value:!0}),t.Data=void 0;var c=r(74754),f=r(57026);let l=function(e){(0,a.default)(c,e);var t,r,n=(t=c,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.default)(t);if(r){var i=(0,u.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,s.default)(this,e)});function c(e,t){var r;if((0,i.default)(this,c),(r=n.call(this,e,{None:"Null",Raw:"Bytes",BlakeTwo256:"H256",Sha256:"H256",Keccak256:"H256",ShaThree256:"H256"},...function(e,t){return(0,f.isU8a)(t)||(0,f.isString)(t)?function(e,t){const r=t[0];if(!r)return[void 0,void 0];if(r>=1&&r<=33){const n=r-1,i=t.subarray(1,n+1);return[e.createTypeUnsafe("Raw",[i]),1]}if(r>=34&&r<=37)return[t.subarray(1,33),r-32];throw new Error(`Unable to decode Data, invalid indicator byte ${r}`)}(e,(0,f.u8aToU8a)(t)):t?[t,void 0]:[void 0,void 0]}(e,t))).isRaw&&r.asRaw.length>32)throw new Error("Data.Raw values are limited to a maximum length of 32 bytes");return r}return(0,o.default)(c,[{key:"asBlakeTwo256",get:function(){return this.value}},{key:"asKeccak256",get:function(){return this.value}},{key:"asRaw",get:function(){return this.value}},{key:"asSha256",get:function(){return this.value}},{key:"asShaThree256",get:function(){return this.value}},{key:"isBlakeTwo256",get:function(){return 2===this.index}},{key:"isKeccak256",get:function(){return 4===this.index}},{key:"isNone",get:function(){return 0===this.index}},{key:"isRaw",get:function(){return 1===this.index}},{key:"isSha256",get:function(){return 3===this.index}},{key:"isShaThree256",get:function(){return 5===this.index}},{key:"encodedLength",get:function(){return this.toU8a().length}},{key:"toU8a",value:function(){if(0===this.index)return new Uint8Array(1);if(1===this.index){const e=this.value.toU8a(!0),t=Math.min(e.length,32),r=new Uint8Array(t+1);return r.set([t+1],0),r.set(e.subarray(0,t),1),r}const e=new Uint8Array(33);return e.set([this.index+32],0),e.set(this.value.toU8a(),1),e}}]),c}(c.Enum);t.Data=l},98621:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(66115)),s=n(r(41588)),u=n(r(61655)),c=n(r(94993)),f=n(r(73808)),l=n(r(29399)),d=n(r(40426));Object.defineProperty(t,"__esModule",{value:!0}),t.StorageKey=void 0,t.unwrapStorageSi=g,t.unwrapStorageType=m;var h=r(74754),p=r(57026),b=r(83373);const y={Blake2_128:[16,!1],Blake2_128Concat:[16,!0],Blake2_256:[32,!1],Identity:[0,!0],Twox128:[16,!1],Twox256:[32,!1],Twox64Concat:[8,!0]};function g(e){return e.isPlain?e.asPlain:e.asMap.value}function m(e,t,r){const n=(0,b.getSiName)(e.lookup,g(t));return r?`Option<${n}>`:n}function v(e){if((0,p.isU8a)(e)||!e||(0,p.isString)(e))return{key:e};if(e instanceof A)return{key:e,method:e.method,section:e.section};if((0,p.isFunction)(e))return{key:e(),method:e.method,section:e.section};if(Array.isArray(e)){const[t,r=[]]=e;if(!(0,p.isFunction)(t))throw new Error("Expected function input for key construction");if(t.meta&&t.meta.type.isMap){const e=t.meta.type.asMap;if(!Array.isArray(r)||r.length!==e.hashers.length)throw new Error(`Expected an array of ${e.hashers.length} values as params to a Map query`)}return{key:t(...r),method:t.method,section:t.section}}throw new Error(`Unable to convert input ${e} to StorageKey`)}function w(e){if(e instanceof A)return e.meta;if((0,p.isFunction)(e))return e.meta;if(Array.isArray(e)){const[t]=e;return t.meta}}function _(e,t){if(t instanceof A)return t.outputType;if((0,p.isFunction)(t))return m(e,t.meta.type);if(Array.isArray(t)){const[r]=t;if(r.meta)return m(e,r.meta.type)}return"Raw"}var x=(0,d.default)("args"),O=(0,d.default)("meta"),k=(0,d.default)("outputType"),P=(0,d.default)("method"),S=(0,d.default)("section");let A=function(e){(0,u.default)(d,e);var t,r,n=(t=d,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,f.default)(t);if(r){var i=(0,f.default)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,c.default)(this,e)});function d(e,t){var r;(0,i.default)(this,d);let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{key:s,method:u,section:c}=v(t);return r=n.call(this,e,s),Object.defineProperty((0,a.default)(r),x,{writable:!0,value:void 0}),Object.defineProperty((0,a.default)(r),O,{writable:!0,value:void 0}),Object.defineProperty((0,a.default)(r),k,{writable:!0,value:void 0}),Object.defineProperty((0,a.default)(r),P,{writable:!0,value:void 0}),Object.defineProperty((0,a.default)(r),S,{writable:!0,value:void 0}),(0,l.default)((0,a.default)(r),k)[k]=_(e,t),r.setMeta(w(t),o.section||c,o.method||u),r}return(0,o.default)(d,[{key:"args",get:function(){return(0,l.default)(this,x)[x]}},{key:"meta",get:function(){return(0,l.default)(this,O)[O]}},{key:"method",get:function(){return(0,l.default)(this,P)[P]}},{key:"outputType",get:function(){return(0,l.default)(this,k)[k]}},{key:"section",get:function(){return(0,l.default)(this,S)[S]}},{key:"is",value:function(e){return e.section===this.section&&e.method===this.method}},{key:"setMeta",value:function(e,t,r){(0,l.default)(this,O)[O]=e,(0,l.default)(this,P)[P]=r||(0,l.default)(this,P)[P],(0,l.default)(this,S)[S]=t||(0,l.default)(this,S)[S],e&&((0,l.default)(this,k)[k]=m(this.registry,e.type));try{(0,l.default)(this,x)[x]=function(e,t,r){if(!r||!r.type.isMap)return[];const{hashers:n,key:i}=r.type.asMap,o=1===n.length?[i]:e.lookup.getSiType(i).def.asTuple;return function(e,t,r){let n=32;const i=new Array(r.length);for(let o=0;o<r.length;o++){const[a,s]=r[o],[u,c]=y[a.type],f=c?e.createTypeUnsafe((0,b.getSiName)(e.lookup,s),[t.subarray(n+u)]):e.createTypeUnsafe("Raw",[t.subarray(n,n+u)]);n+=u+(c?f.encodedLength:0),i[o]=f}return i}(e,t,n.map(((e,t)=>[e,o[t]])))}(this.registry,this.toU8a(!0),e)}catch(e){}return this}},{key:"toHuman",value:function(){return(0,l.default)(this,x)[x].length?(0,l.default)(this,x)[x].map((e=>e.toHuman())):(0,s.default)((0,f.default)(d.prototype),"toHuman",this).call(this)}},{key:"toRawType",value:function(){return"StorageKey"}}]),d}(h.Bytes);t.StorageKey=A},62347:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BitVec",{enumerable:!0,get:function(){return n.BitVec}}),Object.defineProperty(t,"Bool",{enumerable:!0,get:function(){return n.Bool}}),Object.defineProperty(t,"Bytes",{enumerable:!0,get:function(){return n.Bytes}}),Object.defineProperty(t,"Data",{enumerable:!0,get:function(){return i.Data}}),Object.defineProperty(t,"F32",{enumerable:!0,get:function(){return n.F32}}),Object.defineProperty(t,"F64",{enumerable:!0,get:function(){return n.F64}}),Object.defineProperty(t,"I128",{enumerable:!0,get:function(){return n.I128}}),Object.defineProperty(t,"I16",{enumerable:!0,get:function(){return n.I16}}),Object.defineProperty(t,"I256",{enumerable:!0,get:function(){return n.I256}}),Object.defineProperty(t,"I32",{enumerable:!0,get:function(){return n.I32}}),Object.defineProperty(t,"I64",{enumerable:!0,get:function(){return n.I64}}),Object.defineProperty(t,"I8",{enumerable:!0,get:function(){return n.I8}}),Object.defineProperty(t,"Null",{enumerable:!0,get:function(){return n.Null}}),Object.defineProperty(t,"OptionBool",{enumerable:!0,get:function(){return n.OptionBool}}),Object.defineProperty(t,"StorageKey",{enumerable:!0,get:function(){return o.StorageKey}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return n.Text}}),Object.defineProperty(t,"Type",{enumerable:!0,get:function(){return n.Type}}),Object.defineProperty(t,"U128",{enumerable:!0,get:function(){return n.U128}}),Object.defineProperty(t,"U16",{enumerable:!0,get:function(){return n.U16}}),Object.defineProperty(t,"U256",{enumerable:!0,get:function(){return n.U256}}),Object.defineProperty(t,"U32",{enumerable:!0,get:function(){return n.U32}}),Object.defineProperty(t,"U64",{enumerable:!0,get:function(){return n.U64}}),Object.defineProperty(t,"U8",{enumerable:!0,get:function(){return n.U8}}),Object.defineProperty(t,"USize",{enumerable:!0,get:function(){return n.USize}}),Object.defineProperty(t,"bool",{enumerable:!0,get:function(){return n.bool}}),Object.defineProperty(t,"f32",{enumerable:!0,get:function(){return n.f32}}),Object.defineProperty(t,"f64",{enumerable:!0,get:function(){return n.f64}}),Object.defineProperty(t,"i128",{enumerable:!0,get:function(){return n.i128}}),Object.defineProperty(t,"i16",{enumerable:!0,get:function(){return n.i16}}),Object.defineProperty(t,"i256",{enumerable:!0,get:function(){return n.i256}}),Object.defineProperty(t,"i32",{enumerable:!0,get:function(){return n.i32}}),Object.defineProperty(t,"i64",{enumerable:!0,get:function(){return n.i64}}),Object.defineProperty(t,"i8",{enumerable:!0,get:function(){return n.i8}}),Object.defineProperty(t,"u128",{enumerable:!0,get:function(){return n.u128}}),Object.defineProperty(t,"u16",{enumerable:!0,get:function(){return n.u16}}),Object.defineProperty(t,"u256",{enumerable:!0,get:function(){return n.u256}}),Object.defineProperty(t,"u32",{enumerable:!0,get:function(){return n.u32}}),Object.defineProperty(t,"u64",{enumerable:!0,get:function(){return n.u64}}),Object.defineProperty(t,"u8",{enumerable:!0,get:function(){return n.u8}}),Object.defineProperty(t,"usize",{enumerable:!0,get:function(){return n.usize}});var n=r(74754),i=r(13853),o=r(98621)},62878:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.knownGenesis=void 0,t.knownGenesis={acala:["0xfc41b9bd8ef8fe53d58c7ea67c794c7ec9a73daf05e6d54b14ff6342c99ba64c"],ajuna:["0xe358eb1d11b31255a286c12e44fe6780b7edb171d657905a97e39f71d9c6c3ee"],"aleph-node":["0x70255b4d28de0fc4e1a193d7e175ad1ccef431598211c55538f1018651a0344e"],astar:["0x9eb76c5184c4ab8679d2d5d819fdf90b9c001403e9e17da2e14b6d8aec4029c6"],basilisk:["0xa85cfb9b9fd4d622a5b28289a02347af987d8f73fa3108450e2b4a11c1ce5755"],bifrost:["0x262e1b2ad728475fd6fe88e62d34c200abe6fd693931ddad144059b1eb884e5b"],"bifrost-kusama":["0x9f28c6a68e0fc9646eff64935684f6eeeece527e37bbe1f213d22caa1d9d6bed"],centrifuge:["0xb3db41421702df9a7fcac62b53ffeac85f7853cc4e689e0b93aeb3db18c09d82","0x67dddf2673b69e5f875f6f25277495834398eafd67f492e09f3f3345e003d1b5"],composable:["0xdaab8df776eb52ec604a5df5d388bb62a050a0aaec4556a64265b9d42755552d"],darwinia:["0xe71578b37a7c799b0ab4ee87ffa6f059a6b98f71f06fb8c84a8d88013a548ad6"],"dock-mainnet":["0x6bfe24dca2a3be10f22212678ac13a6446ec764103c0f3471c71609eac384aae","0xf73467c6544aa68df2ee546b135f955c46b90fa627e9b5d7935f41061bb8a5a9"],edgeware:["0x742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b"],equilibrium:["0x6f1a800de3daff7f5e037ddf66ab22ce03ab91874debeddb1086f5f7dbd48925"],genshiro:["0x9b8cefc0eb5c568b527998bdd76c184e2b76ae561be76e4667072230217ea243"],hydradx:["0xafdc188f45c71dacbaa0b62e16a91f726c7b8699a9748cdf715459de6b7f366d","0xd2a620c27ec5cbc5621ff9a522689895074f7cca0d08e7134a7804e1a3ba86fc","0x10af6e84234477d84dc572bac0789813b254aa490767ed06fb9591191d1073f9","0x3d75507dd46301767e601265791da1d9cb47b6ebc94e87347b635e5bf58bd047","0x0ed32bfcab4a83517fac88f2aa7cbc2f88d3ab93be9a12b6188a036bf8a943c2"],"interlay-parachain":["0xbf88efe70e9e0e916416e8bed61f2b45717f517d7f3523e33c7b001e5ffcbc72"],karura:["0xbaf5aabe40646d11f0ee8abbdc64f4a4b7674925cba08e4a05ff9ebed6e2126b"],khala:["0xd43540ba6d3eb4897c28a77d48cb5b729fea37603cbbfc7a86a73b72adb3be8d"],kulupu:["0xf7a99d3cb92853d00d5275c971c132c074636256583fee53b3bbe60d7b8769ba"],kusama:["0xb0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe","0xe3777fa922cafbff200cadeaea1a76bd7898ad5b89f7848999058b50e715f636","0x3fd7b9eb6a00376e5be61f01abb429ffb0b104be05eaff4d458da48fcd425baf"],nodle:["0x97da7ede98d7bad4e36b4d734b6055425a3be036da2a332ea5a7037656427a21"],origintrail:["0xe7e0962324a3b86c83404dbea483f25fb5dab4c224791c81b756cfc948006174"],parallel:["0xe61a41c53f5dcd0beb09df93b34402aada44cb05117b71059cce40a2723a4e97"],phala:["0x1bb969d85965e4bb5a651abbedf21a54b6b31a21f66b5401cc3f1e286268d736"],picasso:["0x6811a339673c9daa897944dcdac99c6e2939cc88245ed21951a0a3c9a2be75bc","0xe8e7f0f4c4f5a00720b4821dbfddefea7490bcf0b19009961cc46957984e2c1c"],polkadex:["0x3920bcb4960a1eef5580cd5367ff3f430eef052774f78468852f7b9cb39f8a3c"],polkadot:["0x91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3"],polymesh:["0x6fbd74e5e1d0a61d52ccfe9d4adaed16dd3a7caa37c6bc4d0c2fa12e8b2f4063"],rococo:["0x6408de7737c59c238890533af25896a2c20608d8b380bb01029acb392781063e","0xaaf2cd1b74b5f726895921259421b534124726263982522174147046b8827897","0x037f5f3c8e67b314062025fc886fcd6238ea25a4a9b45dce8d246815c9ebe770","0xc196f81260cf1686172b47a79cf002120735d7cb0eb1474e8adce56618456fff","0xf6e9983c37baf68846fedafe21e56718790e39fb1c582abc408b81bc7b208f9a","0x5fce687da39305dfe682b117f0820b319348e8bb37eb16cf34acbf6a202de9d9","0xe7c3d5edde7db964317cd9b51a3a059d7cd99f81bdbce14990047354334c9779","0x1611e1dbf0405379b861e2e27daa90f480b2e6d3682414a80835a52e8cb8a215","0x343442f12fa715489a8714e79a7b264ea88c0d5b8c66b684a7788a516032f6b9","0x78bcd530c6b3a068bc17473cf5d2aff9c287102bed9af3ae3c41c33b9d6c6147","0x47381ee0697153d64404fc578392c8fd5cba9073391908f46c888498415647bd","0x19c0e4fa8ab75f5ac7865e0b8f74ff91eb9a100d336f423cd013a8befba40299"],sora:["0x7e4e32d0feafd4f9c9414b0be86373f9a1efa904809b683453a9af6856d38ad5"],stafi:["0x290a4149f09ea0e402c74c1c7e96ae4239588577fe78932f94f5404c68243d80"],statemine:["0x48239ef607d7928874027a43a67689209727dfb3d3dc5e5b03a39bdc2eda771a"],statemint:["0x68d56f15f85d3136970ec16946040bc1752654e906147f7e43e9d539d7c3de2f"],subsocial:["0x0bd72c1c305172e1275278aaeb3f161e02eccb7a819e63f62d47bd53a28189f8"],ternoa:["0x6859c81ca95ef624c9dfe4dc6e3381c33e5d6509e35e147092bfbc780f777c4e"],unique:["0x84322d9cddbf35088f1e54e9a85c967a41a56a4f43445768125e61af166c7d31"],vtb:["0x286bc8414c7000ce1d6ee6a834e29a54c1784814b76243eb77ed0b2c5573c60f","0x7483b89572fb2bd687c7b9a93b242d0b237f9aba463aba07ec24503931038aaa"],westend:["0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e"],xxnetwork:["0x50dd5d206917bf10502c68fb4d18a59fc8aa31586f4e8856b493e43544aa82aa"]}},29828:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.knownIcon=void 0,t.knownIcon={centrifuge:"polkadot",kusama:"polkadot",polkadot:"polkadot",sora:"polkadot",statemine:"polkadot",statemint:"polkadot",westmint:"polkadot"}},34183:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"knownGenesis",{enumerable:!0,get:function(){return n.knownGenesis}}),Object.defineProperty(t,"knownIcon",{enumerable:!0,get:function(){return i.knownIcon}}),Object.defineProperty(t,"knownLedger",{enumerable:!0,get:function(){return o.knownLedger}}),Object.defineProperty(t,"knownTestnet",{enumerable:!0,get:function(){return a.knownTestnet}});var n=r(62878),i=r(29828),o=r(15617),a=r(62481)},15617:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.knownLedger=void 0,t.knownLedger={acala:787,ajuna:354,"aleph-node":643,astar:810,bifrost:788,"bifrost-kusama":788,centrifuge:747,composable:354,darwinia:354,"dock-mainnet":594,edgeware:523,equilibrium:99999997,genshiro:99999996,hydradx:354,"interlay-parachain":354,karura:686,khala:434,kusama:434,nodle:1003,origintrail:354,parallel:354,phala:354,picasso:434,polkadex:799,polkadot:354,polymesh:595,sora:617,stafi:907,statemine:434,statemint:354,ternoa:995,unique:354,vtb:694,xxnetwork:1955}},62481:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.knownTestnet=void 0,t.knownTestnet={"":!0,"cess-testnet":!0,"dock-testnet":!0,jupiter:!0,"mathchain-testnet":!0,p3dt:!0,subspace_testnet:!0,"zero-alphaville":!0}},38724:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={packageInfo:!0};Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return o.packageInfo}});var i=r(13124);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=r(53035)},13124:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.selectableNetworks=t.availableNetworks=t.allNetworks=void 0;var i=n(r(72314)),o=r(34183);const a=[0,2,42],s=["testnet"],u=i.default.map((function(e){const t=e.network||"",r=t.replace(/_/g,"-").split("-"),n=e;return n.slip44=o.knownLedger[t],n.hasLedgerSupport=!!n.slip44,n.genesisHash=o.knownGenesis[t]||[],n.icon=o.knownIcon[t]||"substrate",n.isTestnet=!!o.knownTestnet[t]||s.includes(r[r.length-1]),n.isIgnored=n.isTestnet||!(e.standardAccount&&e.decimals&&e.decimals.length&&e.symbols&&e.symbols.length)&&42!==e.prefix,n}));t.allNetworks=u;const c=u.filter((function(e){return!e.isIgnored&&!!e.network})).sort((function(e,t){const r=a.includes(e.prefix);return r===a.includes(t.prefix)?r?0:e.displayName.localeCompare(t.displayName):r?-1:1}));t.availableNetworks=c;const f=c.filter((function(e){let{genesisHash:t,prefix:r}=e;return!!t.length||42===r}));t.selectableNetworks=f},53035:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/networks",path:"/",type:"cjs",version:"10.4.1"}},28680:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addressToEvm=function(e,t){return(0,n.decodeAddress)(e,t).subarray(0,20)};var n=r(711)},67968:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkAddress=function(e,t){let r;try{r=(0,n.base58Decode)(e)}catch(e){return[!1,e.message]}const[a,,,s]=(0,i.checkAddressChecksum)(r);return s!==t?[!1,`Prefix mismatch, expected ${t}, found ${s}`]:o.defaults.allowedEncodedLengths.includes(r.length)?[a,a?null:"Invalid decoded address checksum"]:[!1,"Invalid decoded address length"]};var n=r(17762),i=r(45760),o=r(61063)},45760:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkAddressChecksum=function(e){const t=64&e[0]?2:1,r=1===t?e[0]:(63&e[0])<<2|e[1]>>6|(63&e[1])<<8,i=[34+t,35+t].includes(e.length),o=e.length-(i?2:1),a=(0,n.sshash)(e.subarray(0,o));return[0==(128&e[0])&&![46,47].includes(e[0])&&(i?e[e.length-2]===a[0]&&e[e.length-1]===a[1]:e[e.length-1]===a[0]),o,t,r]};var n=r(64127)},711:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeAddress=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;if(!e)throw new Error("Invalid empty address passed");if((0,n.isU8a)(e)||(0,n.isHex)(e))return(0,n.u8aToU8a)(e);try{const n=(0,i.base58Decode)(e);if(!a.defaults.allowedEncodedLengths.includes(n.length))throw new Error("Invalid decoded address length");const[s,u,c,f]=(0,o.checkAddressChecksum)(n);if(!s&&!t)throw new Error("Invalid decoded address checksum");if(-1!==r&&r!==f)throw new Error(`Expected ss58Format ${r}, received ${f}`);return n.slice(c,u)}catch(t){throw new Error(`Decoding ${e}: ${t.message}`)}};var n=r(57026),i=r(17762),o=r(45760),a=r(61063)},61063:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaults=void 0;const n={allowedDecodedLengths:[1,2,4,8,32,33],allowedEncodedLengths:[3,4,6,10,35,36,37,38],allowedPrefix:r(43128).availableNetworks.map((e=>{let{prefix:t}=e;return t})),prefix:42};t.defaults=n},25316:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deriveAddress=function(e,t,r){const{path:u}=(0,n.keyExtractPath)(t);if(!u.length||u.every(s))throw new Error("Expected suri to contain a combination of non-hard paths");let c=(0,o.decodeAddress)(e);for(const{chainCode:e}of u)c=(0,i.sr25519DerivePublic)(c,e);return(0,a.encodeAddress)(c,r)};var n=r(89673),i=r(75340),o=r(711),a=r(98708);function s(e){let{isHard:t}=e;return t}},98708:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeAddress=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.defaults.prefix;const r=(0,o.decodeAddress)(e);if(t<0||t>16383||[46,47].includes(t))throw new Error("Out of range ss58Format specified");if(!a.defaults.allowedDecodedLengths.includes(r.length))throw new Error(`Expected a valid key to convert, with length ${a.defaults.allowedDecodedLengths.join(", ")}`);const u=(0,n.u8aConcat)(t<64?[t]:[(252&t)>>2|64,t>>8|(3&t)<<6],r);return(0,i.base58Encode)((0,n.u8aConcat)(u,(0,s.sshash)(u).subarray(0,[32,33].includes(r.length)?2:1)))};var n=r(57026),i=r(17762),o=r(711),a=r(61063),s=r(64127)},56298:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeDerivedAddress=function(e,t,r){return(0,i.encodeAddress)((0,o.createKeyDerived)((0,n.decodeAddress)(e),t),r)};var n=r(711),i=r(98708),o=r(56566)},27921:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeMultiAddress=function(e,t,r){return(0,n.encodeAddress)((0,i.createKeyMulti)(e,t),r)};var n=r(98708),i=r(26080)},66650:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addressEq=function(e,t){return(0,n.u8aEq)((0,i.decodeAddress)(e),(0,i.decodeAddress)(t))};var n=r(57026),i=r(711)},69258:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.evmToAddress=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"blake2";const a=(0,n.u8aConcat)("evm:",e);if(24!==a.length)throw new Error(`Converting ${e}: Invalid evm address length`);return(0,o.encodeAddress)((0,i.hasher)(r,a),t)};var n=r(57026),i=r(65224),o=r(98708)},19063:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addressEq",{enumerable:!0,get:function(){return p.addressEq}}),Object.defineProperty(t,"addressToEvm",{enumerable:!0,get:function(){return n.addressToEvm}}),Object.defineProperty(t,"checkAddress",{enumerable:!0,get:function(){return i.checkAddress}}),Object.defineProperty(t,"checkAddressChecksum",{enumerable:!0,get:function(){return o.checkAddressChecksum}}),Object.defineProperty(t,"createKeyDerived",{enumerable:!0,get:function(){return s.createKeyDerived}}),Object.defineProperty(t,"createKeyMulti",{enumerable:!0,get:function(){return a.createKeyMulti}}),Object.defineProperty(t,"decodeAddress",{enumerable:!0,get:function(){return u.decodeAddress}}),Object.defineProperty(t,"deriveAddress",{enumerable:!0,get:function(){return c.deriveAddress}}),Object.defineProperty(t,"encodeAddress",{enumerable:!0,get:function(){return f.encodeAddress}}),Object.defineProperty(t,"encodeDerivedAddress",{enumerable:!0,get:function(){return l.encodeDerivedAddress}}),Object.defineProperty(t,"encodeMultiAddress",{enumerable:!0,get:function(){return d.encodeMultiAddress}}),Object.defineProperty(t,"evmToAddress",{enumerable:!0,get:function(){return h.evmToAddress}}),Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return b.isAddress}}),Object.defineProperty(t,"setSS58Format",{enumerable:!0,get:function(){return m.setSS58Format}}),Object.defineProperty(t,"sortAddresses",{enumerable:!0,get:function(){return y.sortAddresses}}),Object.defineProperty(t,"validateAddress",{enumerable:!0,get:function(){return g.validateAddress}});var n=r(28680),i=r(67968),o=r(45760),a=r(26080),s=r(56566),u=r(711),c=r(25316),f=r(98708),l=r(56298),d=r(27921),h=r(69258),p=r(66650),b=r(82871),y=r(66227),g=r(45463),m=r(35205)},82871:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAddress=function(e,t,r){try{return(0,n.validateAddress)(e,t,r)}catch(e){return!1}};var n=r(45463)},56566:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createKeyDerived=function(e,t){return(0,i.blake2AsU8a)((0,n.u8aConcat)(s,(0,a.decodeAddress)(e),(0,n.bnToU8a)(t,o.BN_LE_16_OPTS)))};var n=r(57026),i=r(459),o=r(74416),a=r(711);const s=(0,n.stringToU8a)("modlpy/utilisuba")},26080:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createKeyMulti=function(e,t){return(0,i.blake2AsU8a)((0,n.u8aConcat)(s,(0,n.compactToU8a)(e.length),...(0,n.u8aSorted)(e.map(a.addressToU8a)),(0,n.bnToU8a)(t,o.BN_LE_16_OPTS)))};var n=r(57026),i=r(459),o=r(74416),a=r(42059);const s=(0,n.stringToU8a)("modlpy/utilisuba")},35205:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setSS58Format=function(e){o.warn("Global setting of the ss58Format is deprecated and not recommended. Set format on the keyring (if used) or as part of the address encode function"),i.defaults.prefix=e};var n=r(57026),i=r(61063);const o=(0,n.logger)("setSS58Format")},66227:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sortAddresses=function(e,t){return(0,n.u8aSorted)(e.map(o.addressToU8a)).map((e=>(0,i.encodeAddress)(e,t)))};var n=r(57026),i=r(98708),o=r(42059)},64127:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sshash=function(e){return(0,i.blake2AsU8a)((0,n.u8aConcat)(o,e),512)};var n=r(57026),i=r(459);const o=(0,n.stringToU8a)("SS58PRE")},42059:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addressToU8a=function(e){return(0,n.decodeAddress)(e)};var n=r(711)},45463:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAddress=function(e,t,r){return!!(0,n.decodeAddress)(e,t,r)};var n=r(711)},24391:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBase32=t.base32Validate=t.base32Encode=t.base32Decode=void 0;var n=r(39187),i=r(30469);const o="abcdefghijklmnopqrstuvwxyz234567",a={chars:o,coder:n.utils.chain(n.utils.radix2(5),n.utils.alphabet(o),{decode:e=>e.split(""),encode:e=>e.join("")}),ipfs:"b",type:"base32"},s=(0,i.createValidate)(a);t.base32Validate=s;const u=(0,i.createIs)(s);t.isBase32=u;const c=(0,i.createDecode)(a,s);t.base32Decode=c;const f=(0,i.createEncode)(a);t.base32Encode=f},30469:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDecode=function(e,t){let{coder:r,ipfs:n}=e;return(e,i)=>(t(e,i),r.decode(n&&i?e.substring(1):e))},t.createEncode=function(e){let{coder:t,ipfs:r}=e;return(e,i)=>{const o=t.encode((0,n.u8aToU8a)(e));return r&&i?`${r}${o}`:o}},t.createIs=function(e){return(t,r)=>{try{return e(t,r)}catch(e){return!1}}},t.createValidate=function(e){let{chars:t,ipfs:r,type:n}=e;return(e,i)=>{if(!e||"string"!=typeof e)throw new Error(`Expected non-null, non-empty ${n} string input`);if(r&&i&&e[0]!==r)throw new Error(`Expected ipfs-compatible ${n} to start with '${r}'`);for(let r=i?1:0;r<e.length;r++)if(!t.includes(e[r])&&("="!==e[r]||r!==e.length-1&&t.includes(e[r+1])))throw new Error(`Invalid ${n} character "${e[r]}" (0x${e.charCodeAt(r).toString(16)}) at index ${r}`);return!0}};var n=r(57026)},84244:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"base32Decode",{enumerable:!0,get:function(){return n.base32Decode}}),Object.defineProperty(t,"base32Encode",{enumerable:!0,get:function(){return n.base32Encode}}),Object.defineProperty(t,"base32Validate",{enumerable:!0,get:function(){return n.base32Validate}}),Object.defineProperty(t,"isBase32",{enumerable:!0,get:function(){return n.isBase32}});var n=r(24391)},4162:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBase58=t.base58Validate=t.base58Encode=t.base58Decode=void 0;var n=r(39187),i=r(30469);const o={chars:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",coder:n.base58,ipfs:"z",type:"base58"},a=(0,i.createValidate)(o);t.base58Validate=a;const s=(0,i.createDecode)(o,a);t.base58Decode=s;const u=(0,i.createEncode)(o);t.base58Encode=u;const c=(0,i.createIs)(a);t.isBase58=c},17762:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"base58Decode",{enumerable:!0,get:function(){return n.base58Decode}}),Object.defineProperty(t,"base58Encode",{enumerable:!0,get:function(){return n.base58Encode}}),Object.defineProperty(t,"base58Validate",{enumerable:!0,get:function(){return n.base58Validate}}),Object.defineProperty(t,"isBase58",{enumerable:!0,get:function(){return n.isBase58}});var n=r(4162)},19906:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBase64=t.base64Validate=t.base64Encode=t.base64Decode=void 0;var n=r(39187),i=r(30469);const o={chars:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",coder:n.base64,type:"base64"},a=(0,i.createValidate)(o);t.base64Validate=a;const s=(0,i.createIs)(a);t.isBase64=s;const u=(0,i.createDecode)(o,a);t.base64Decode=u;const c=(0,i.createEncode)(o);t.base64Encode=c},79971:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"base64Decode",{enumerable:!0,get:function(){return n.base64Decode}}),Object.defineProperty(t,"base64Encode",{enumerable:!0,get:function(){return n.base64Encode}}),Object.defineProperty(t,"base64Pad",{enumerable:!0,get:function(){return i.base64Pad}}),Object.defineProperty(t,"base64Trim",{enumerable:!0,get:function(){return o.base64Trim}}),Object.defineProperty(t,"base64Validate",{enumerable:!0,get:function(){return n.base64Validate}}),Object.defineProperty(t,"isBase64",{enumerable:!0,get:function(){return n.isBase64}});var n=r(19906),i=r(22004),o=r(12845)},22004:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.base64Pad=function(e){return e.padEnd(e.length+e.length%4,"=")}},12845:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.base64Trim=function(e){for(;e.length&&"="===e[e.length-1];)e=e.slice(0,-1);return e}},459:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.blake2AsHex=void 0,t.blake2AsU8a=a;var n=r(39973),i=r(57026),o=r(56431);function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:256,r=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0;const s=Math.ceil(t/8),u=(0,i.u8aToU8a)(e);return!i.hasBigInt||!a&&(0,o.isReady)()?(0,o.blake2b)(u,(0,i.u8aToU8a)(r),s):(0,n.blake2b)(u,{dkLen:s,key:r||void 0})}const s=(0,r(15555).createAsHex)(a);t.blake2AsHex=s},53792:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"blake2AsHex",{enumerable:!0,get:function(){return n.blake2AsHex}}),Object.defineProperty(t,"blake2AsU8a",{enumerable:!0,get:function(){return n.blake2AsU8a}});var n=r(459)},74416:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BN_LE_OPTS=t.BN_LE_512_OPTS=t.BN_LE_32_OPTS=t.BN_LE_256_OPTS=t.BN_LE_16_OPTS=t.BN_BE_OPTS=t.BN_BE_32_OPTS=t.BN_BE_256_OPTS=void 0,t.BN_BE_OPTS={isLe:!1},t.BN_LE_OPTS={isLe:!0},t.BN_LE_16_OPTS={bitLength:16,isLe:!0},t.BN_BE_32_OPTS={bitLength:32,isLe:!1},t.BN_LE_32_OPTS={bitLength:32,isLe:!0},t.BN_BE_256_OPTS={bitLength:256,isLe:!1},t.BN_LE_256_OPTS={bitLength:256,isLe:!0},t.BN_LE_512_OPTS={bitLength:512,isLe:!0}},36550:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={packageInfo:!0};Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return i.packageInfo}}),r(75177);var i=r(43647),o=r(19063);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=r(84244);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var s=r(17762);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var u=r(79971);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var c=r(53792);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var f=r(83713);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))}));var l=r(15859);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var d=r(91217);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var h=r(50771);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))}));var p=r(60394);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===p[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}}))}));var b=r(76104);Object.keys(b).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===b[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return b[e]}}))}));var y=r(25843);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===y[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return y[e]}}))}));var g=r(89673);Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===g[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return g[e]}}))}));var m=r(43917);Object.keys(m).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===m[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return m[e]}}))}));var v=r(43128);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===v[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return v[e]}}))}));var w=r(97798);Object.keys(w).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===w[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return w[e]}}))}));var _=r(39355);Object.keys(_).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===_[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return _[e]}}))}));var x=r(56674);Object.keys(x).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===x[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return x[e]}}))}));var O=r(63881);Object.keys(O).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===O[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return O[e]}}))}));var k=r(35702);Object.keys(k).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===k[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return k[e]}}))}));var P=r(20653);Object.keys(P).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===P[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return P[e]}}))}));var S=r(38515);Object.keys(S).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===S[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return S[e]}}))}));var A=r(75340);Object.keys(A).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===A[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return A[e]}}))}));var E=r(86881);Object.keys(E).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===E[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return E[e]}}))}))},75177:(e,t,r)=>{"use strict";r(13786);var n=r(63494),i=r(57026),o=r(83713),a=r(60394);n.utils.hmacSha256Sync=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return(0,a.hmacSha256AsU8a)(e,(0,i.u8aConcat)(...r))},(0,o.cryptoWaitReady)().catch((()=>{}))},83713:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cryptoIsReady=void 0,t.cryptoWaitReady=function(){return(0,n.waitReady)().then((()=>{if(!(0,n.isReady)())throw new Error("Unable to initialize @polkadot/util-crypto");return!0})).catch((()=>!1))};var n=r(56431);const i=n.isReady;t.cryptoIsReady=i},96948:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(53035),i=r(3426),o=r(28530),a=[n.packageInfo,i.packageInfo,o.packageInfo];t.default=a},61187:(e,t,r)=>{"use strict";var n=r(64836),i=r(57026),o=n(r(96948)),a=r(43647);(0,i.detectPackage)(a.packageInfo,null,o.default)},83722:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.convertPublicKeyToCurve25519=function(e){return(0,o.assertReturn)(i.default.convertPublicKey(e),"Unable to convert publicKey to ed25519")},t.convertSecretKeyToCurve25519=function(e){return i.default.convertSecretKey(e)};var i=n(r(75678)),o=r(57026)},32632:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ed25519DeriveHard=function(e,t){if(!(0,n.isU8a)(t)||32!==t.length)throw new Error("Invalid chainCode passed to derive");return(0,i.blake2AsU8a)((0,n.u8aConcat)(o,e,t))};var n=r(57026),i=r(459);const o=(0,n.compactAddLength)((0,n.stringToU8a)("Ed25519HDKD"))},15859:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"convertPublicKeyToCurve25519",{enumerable:!0,get:function(){return n.convertPublicKeyToCurve25519}}),Object.defineProperty(t,"convertSecretKeyToCurve25519",{enumerable:!0,get:function(){return n.convertSecretKeyToCurve25519}}),Object.defineProperty(t,"ed25519DeriveHard",{enumerable:!0,get:function(){return i.ed25519DeriveHard}}),Object.defineProperty(t,"ed25519PairFromRandom",{enumerable:!0,get:function(){return o.ed25519PairFromRandom}}),Object.defineProperty(t,"ed25519PairFromSecret",{enumerable:!0,get:function(){return a.ed25519PairFromSecret}}),Object.defineProperty(t,"ed25519PairFromSeed",{enumerable:!0,get:function(){return s.ed25519PairFromSeed}}),Object.defineProperty(t,"ed25519PairFromString",{enumerable:!0,get:function(){return u.ed25519PairFromString}}),Object.defineProperty(t,"ed25519Sign",{enumerable:!0,get:function(){return c.ed25519Sign}}),Object.defineProperty(t,"ed25519Verify",{enumerable:!0,get:function(){return f.ed25519Verify}});var n=r(83722),i=r(32632),o=r(54086),a=r(47130),s=r(89288),u=r(77402),c=r(61513),f=r(61850)},54086:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ed25519PairFromRandom=function(){return(0,i.ed25519PairFromSeed)((0,n.randomAsU8a)())};var n=r(56674),i=r(89288)},47130:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.ed25519PairFromSecret=function(e){return i.default.sign.keyPair.fromSecretKey(e)};var i=n(r(50780))},89288:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.ed25519PairFromSeed=function(e,t){if(!t&&(0,o.isReady)()){const t=(0,o.ed25519KeypairFromSeed)(e);return{publicKey:t.slice(32),secretKey:t.slice(0,64)}}return i.default.sign.keyPair.fromSeed(e)};var i=n(r(50780)),o=r(56431)},77402:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ed25519PairFromString=function(e){return(0,o.ed25519PairFromSeed)((0,i.blake2AsU8a)((0,n.stringToU8a)(e)))};var n=r(57026),i=r(459),o=r(89288)},61513:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.ed25519Sign=function(e,t,r){let{publicKey:n,secretKey:s}=t;if(!s)throw new Error("Expected a valid secretKey");const u=(0,o.u8aToU8a)(e);return!r&&(0,a.isReady)()?(0,a.ed25519Sign)(n,s.subarray(0,32),u):i.default.sign.detached(u,s)};var i=n(r(50780)),o=r(57026),a=r(56431)},61850:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.ed25519Verify=function(e,t,r,n){const s=(0,o.u8aToU8a)(e),u=(0,o.u8aToU8a)(r),c=(0,o.u8aToU8a)(t);if(32!==u.length)throw new Error(`Invalid publicKey, received ${u.length}, expected 32`);if(64!==c.length)throw new Error(`Invalid signature, received ${c.length} bytes, expected 64`);return!n&&(0,a.isReady)()?(0,a.ed25519Verify)(c,s,u):i.default.sign.detached.verify(s,c,u)};var i=n(r(50780)),o=r(57026),a=r(56431)},53609:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ethereumEncode=function(e){if(!e)return"0x";const t=(0,n.u8aToU8a)(e);if(![20,32,33,65].includes(t.length))throw new Error("Invalid address or publicKey passed");const r=(0,n.u8aToHex)(([33,65].includes((s=t).length)&&(s=(0,i.keccakAsU8a)((0,o.secp256k1Expand)(s))),s.slice(-20)),-1,!1),a=(0,n.u8aToHex)((0,i.keccakAsU8a)(r),-1,!1);var s;let u="";for(let e=0;e<40;e++)u=`${u}${parseInt(a[e],16)>7?r[e].toUpperCase():r[e]}`;return`0x${u}`};var n=r(57026),i=r(25843),o=r(35702)},91217:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ethereumEncode",{enumerable:!0,get:function(){return n.ethereumEncode}}),Object.defineProperty(t,"isEthereumAddress",{enumerable:!0,get:function(){return i.isEthereumAddress}}),Object.defineProperty(t,"isEthereumChecksum",{enumerable:!0,get:function(){return o.isEthereumChecksum}});var n=r(53609),i=r(8205),o=r(83709)},8205:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEthereumAddress=function(e){return!(!e||42!==e.length||!(0,n.isHex)(e))&&(!(!/^(0x)?[0-9a-f]{40}$/.test(e)&&!/^(0x)?[0-9A-F]{40}$/.test(e))||(0,i.isEthereumChecksum)(e))};var n=r(57026),i=r(83709)},83709:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEthereumChecksum=function(e){const t=e.replace("0x",""),r=(0,n.u8aToHex)((0,i.keccakAsU8a)(t.toLowerCase()),-1,!1);for(let e=0;e<40;e++)if((o=t[e])!==(parseInt(r[e],16)>7?o.toUpperCase():o.toLowerCase()))return!1;var o;return!0};var n=r(57026),i=r(25843)},40298:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hdEthereum=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const r=(0,o.hmacShaAsU8a)(u,e,512);let n=c(r.slice(0,32),r.slice(32));if(!t||"m"===t||"M"===t||"m'"===t||"M'"===t)return n;if(!(0,s.hdValidatePath)(t))throw new Error("Invalid derivation path");const i=t.split("/").slice(1);for(const e of i)n=f(n,parseInt(e,10)+(e.length>1&&e.endsWith("'")?s.HARDENED:0));return n};var n=r(57026),i=r(74416),o=r(60394),a=r(35702),s=r(69161);const u=(0,n.stringToU8a)("Bitcoin seed");function c(e,t){return{chainCode:t,publicKey:(0,a.secp256k1PairFromSeed)(e).publicKey,secretKey:e}}function f(e,t){const r=(0,n.bnToU8a)(t,i.BN_BE_32_OPTS),u=t>=s.HARDENED?(0,n.u8aConcat)(new Uint8Array(1),e.secretKey,r):(0,n.u8aConcat)(e.publicKey,r);try{const t=(0,o.hmacShaAsU8a)(e.chainCode,u,512);return c((0,a.secp256k1PrivateKeyTweakAdd)(e.secretKey,t.slice(0,32)),t.slice(32))}catch(r){return f(e,t+1)}}},50771:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hdEthereum",{enumerable:!0,get:function(){return n.hdEthereum}}),Object.defineProperty(t,"hdLedger",{enumerable:!0,get:function(){return i.hdLedger}}),Object.defineProperty(t,"hdValidatePath",{enumerable:!0,get:function(){return o.hdValidatePath}});var n=r(40298),i=r(79717),o=r(69161)},7367:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ledgerDerivePrivate=function(e,t){const r=e.subarray(0,32),a=e.subarray(32,64),s=e.subarray(64,96),u=(0,n.u8aConcat)([0],r,a,(0,n.bnToU8a)(t,i.BN_LE_32_OPTS)),c=(0,o.hmacShaAsU8a)(s,u,512);return u[0]=1,(0,n.u8aConcat)((0,n.bnToU8a)((0,n.u8aToBn)(r,i.BN_LE_OPTS).iadd((0,n.u8aToBn)(c.subarray(0,28),i.BN_LE_OPTS).imul(n.BN_EIGHT)),i.BN_LE_512_OPTS).subarray(0,32),(0,n.bnToU8a)((0,n.u8aToBn)(a,i.BN_LE_OPTS).iadd((0,n.u8aToBn)(c.subarray(32,64),i.BN_LE_OPTS)),i.BN_LE_512_OPTS).subarray(0,32),(0,o.hmacShaAsU8a)(s,u,512).subarray(32,64))};var n=r(57026),i=r(74416),o=r(60394)},79717:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hdLedger=function(e,t){const r=e.split(" ").map((e=>e.trim())).filter((e=>e));if(![12,24,25].includes(r.length))throw new Error("Expected a mnemonic with 24 words (or 25 including a password)");const[u,c]=25===r.length?[r.slice(0,24).join(" "),r[24]]:[r.join(" "),""];if(!(0,i.mnemonicValidate)(u))throw new Error("Invalid mnemonic passed to ledger derivation");if(!(0,o.hdValidatePath)(t))throw new Error("Invalid derivation path");const f=t.split("/").slice(1);let l=(0,s.ledgerMaster)(u,c);for(const e of f){const t=parseInt(e.replace(/'$/,""),10);l=(0,a.ledgerDerivePrivate)(l,t<o.HARDENED?t+o.HARDENED:t)}return(0,n.ed25519PairFromSeed)(l.slice(0,32))};var n=r(15859),i=r(43917),o=r(69161),a=r(7367),s=r(29510)},29510:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ledgerMaster=function(e,t){const r=(0,o.mnemonicToSeedSync)(e,t),s=(0,i.hmacShaAsU8a)(a,new Uint8Array([1,...r]),256);let u;for(;!u||32&u[31];)u=(0,i.hmacShaAsU8a)(a,u||r,512);return u[0]&=248,u[31]&=127,u[31]|=64,(0,n.u8aConcat)(u,s)};var n=r(57026),i=r(60394),o=r(56442);const a="ed25519 seed"},69161:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HARDENED=void 0,t.hdValidatePath=function(e){if(!e.startsWith("m/"))return!1;const t=e.split("/").slice(1);for(const e of t){const t=/^\d+'?$/.test(e)?parseInt(e.replace(/'$/,""),10):Number.NaN;if(isNaN(t)||t>=r||t<0)return!1}return!0};const r=2147483648;t.HARDENED=r},15555:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createAsHex=function(e){return function(){return(0,n.u8aToHex)(e(...arguments))}},t.createBitHasher=function(e,t){return(r,n)=>t(r,e,n)},t.createDualHasher=function(e,t){return function(r){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:256,a=arguments.length>2?arguments[2]:void 0;const s=(0,n.u8aToU8a)(r);return!n.hasBigInt||!a&&(0,i.isReady)()?e[o](s):t[o](s)}};var n=r(57026),i=r(56431)},60394:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hmacSha256AsU8a",{enumerable:!0,get:function(){return n.hmacSha256AsU8a}}),Object.defineProperty(t,"hmacSha512AsU8a",{enumerable:!0,get:function(){return n.hmacSha512AsU8a}}),Object.defineProperty(t,"hmacShaAsU8a",{enumerable:!0,get:function(){return n.hmacShaAsU8a}});var n=r(84160)},84160:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hmacSha512AsU8a=t.hmacSha256AsU8a=void 0,t.hmacShaAsU8a=l;var n=r(5842),i=r(15468),o=r(49116),a=r(57026),s=r(56431);const u={256:i.sha256,512:o.sha512},c={256:s.hmacSha256,512:s.hmacSha512};function f(e){return(t,r,n)=>l(t,r,e,n)}function l(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:256,i=arguments.length>3?arguments[3]:void 0;const o=(0,a.u8aToU8a)(e);return!a.hasBigInt||!i&&(0,s.isReady)()?c[r](o,t):(0,n.hmac)(u[r],o,t)}const d=f(256);t.hmacSha256AsU8a=d;const h=f(512);t.hmacSha512AsU8a=h},94814:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(61187);var n=r(36550);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}))},80787:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SCRYPT_LENGTH=t.NONCE_LENGTH=t.ENCODING_VERSION=t.ENCODING_NONE=t.ENCODING=void 0,t.ENCODING=["scrypt","xsalsa20-poly1305"],t.ENCODING_NONE=["none"],t.ENCODING_VERSION="3",t.NONCE_LENGTH=24,t.SCRYPT_LENGTH=44},61822:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.jsonDecrypt=function(e,t){let{encoded:r,encoding:a}=e;if(!r)throw new Error("No encrypted data available to decode");return(0,o.jsonDecryptData)((0,n.isHex)(r)?(0,n.hexToU8a)(r):(0,i.base64Decode)(r),t,Array.isArray(a.type)?a.type:[a.type])};var n=r(57026),i=r(79971),o=r(88519)},88519:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.jsonDecryptData=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.ENCODING;if(!e)throw new Error("No encrypted data available to decode");if(r.includes("xsalsa20-poly1305")&&!t)throw new Error("Password required to decode encrypted data");let s=e;if(t){let u;if(r.includes("scrypt")){const{params:r,salt:n}=(0,o.scryptFromU8a)(e);u=(0,o.scryptEncode)(t,n,r).password,e=e.subarray(a.SCRYPT_LENGTH)}else u=(0,n.stringToU8a)(t);s=(0,i.naclDecrypt)(e.subarray(a.NONCE_LENGTH),e.subarray(0,a.NONCE_LENGTH),(0,n.u8aFixLength)(u,256,!0))}if(!s)throw new Error("Unable to decode using the supplied passphrase");return s};var n=r(57026),i=r(97798),o=r(63881),a=r(80787)},49680:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.jsonEncrypt=function(e,t,r){let s=!1,u=e;if(r){const{params:e,password:t,salt:a}=(0,o.scryptEncode)(r),{encrypted:c,nonce:f}=(0,i.naclEncrypt)(u,t.subarray(0,32));s=!0,u=(0,n.u8aConcat)((0,o.scryptToU8a)(a,e),f,c)}return(0,a.jsonEncryptFormat)(u,t,s)};var n=r(57026),i=r(97798),o=r(63881),a=r(82485)},82485:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.jsonEncryptFormat=function(e,t,r){return{encoded:(0,n.base64Encode)(e),encoding:{content:t,type:r?i.ENCODING:i.ENCODING_NONE,version:i.ENCODING_VERSION}}};var n=r(79971),i=r(80787)},76104:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"jsonDecrypt",{enumerable:!0,get:function(){return n.jsonDecrypt}}),Object.defineProperty(t,"jsonDecryptData",{enumerable:!0,get:function(){return i.jsonDecryptData}}),Object.defineProperty(t,"jsonEncrypt",{enumerable:!0,get:function(){return o.jsonEncrypt}}),Object.defineProperty(t,"jsonEncryptFormat",{enumerable:!0,get:function(){return a.jsonEncryptFormat}});var n=r(61822),i=r(88519),o=r(49680),a=r(82485)},19790:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keccakAsU8a=t.keccakAsHex=t.keccak512AsU8a=t.keccak256AsU8a=void 0;var n=r(3442),i=r(56431),o=r(15555);const a=(0,o.createDualHasher)({256:i.keccak256,512:i.keccak512},{256:n.keccak_256,512:n.keccak_512});t.keccakAsU8a=a;const s=(0,o.createBitHasher)(256,a);t.keccak256AsU8a=s;const u=(0,o.createBitHasher)(512,a);t.keccak512AsU8a=u;const c=(0,o.createAsHex)(a);t.keccakAsHex=c},25843:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"keccak256AsU8a",{enumerable:!0,get:function(){return n.keccak256AsU8a}}),Object.defineProperty(t,"keccak512AsU8a",{enumerable:!0,get:function(){return n.keccak512AsU8a}}),Object.defineProperty(t,"keccakAsHex",{enumerable:!0,get:function(){return n.keccakAsHex}}),Object.defineProperty(t,"keccakAsU8a",{enumerable:!0,get:function(){return n.keccakAsU8a}});var n=r(19790)},96017:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(29399)),s=n(r(40426));Object.defineProperty(t,"__esModule",{value:!0}),t.DeriveJunction=void 0;var u=r(57026),c=r(459),f=r(74416);const l=/^\d+$/;var d=(0,s.default)("chainCode"),h=(0,s.default)("isHard");let p=function(){function e(){(0,i.default)(this,e),Object.defineProperty(this,d,{writable:!0,value:new Uint8Array(32)}),Object.defineProperty(this,h,{writable:!0,value:!1})}return(0,o.default)(e,[{key:"chainCode",get:function(){return(0,a.default)(this,d)[d]}},{key:"isHard",get:function(){return(0,a.default)(this,h)[h]}},{key:"isSoft",get:function(){return!(0,a.default)(this,h)[h]}},{key:"hard",value:function(e){return this.soft(e).harden()}},{key:"harden",value:function(){return(0,a.default)(this,h)[h]=!0,this}},{key:"soft",value:function(e){return(0,u.isNumber)(e)||(0,u.isBn)(e)||(0,u.isBigInt)(e)?this.soft((0,u.bnToU8a)(e,f.BN_LE_256_OPTS)):(0,u.isHex)(e)?this.soft((0,u.hexToU8a)(e)):(0,u.isString)(e)?this.soft((0,u.compactAddLength)((0,u.stringToU8a)(e))):e.length>32?this.soft((0,c.blake2AsU8a)(e)):((0,a.default)(this,d)[d].fill(0),(0,a.default)(this,d)[d].set(e,0),this)}},{key:"soften",value:function(){return(0,a.default)(this,h)[h]=!1,this}}],[{key:"from",value:function(t){const r=new e,[n,i]=t.startsWith("/")?[t.substring(1),!0]:[t,!1];return r.soft(l.test(n)?new u.BN(n,10):n),i?r.harden():r}}]),e}();t.DeriveJunction=p},58824:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keyExtractPath=function(e){const t=e.match(i),r=[];let o="";if(t){o=t.join("");for(const e of t)r.push(n.DeriveJunction.from(e.substring(1)))}if(o!==e)throw new Error(`Re-constructed path "${o}" does not match input`);return{parts:t,path:r}};var n=r(96017);const i=/\/(\/?)([^/]+)/g},39360:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keyExtractSuri=function(e){const t=e.match(i);if(null===t)throw new Error("Unable to match provided value to a secret URI");const[,r,,o,,,a]=t,{path:s}=(0,n.keyExtractPath)(o);return{derivePath:o,password:a,path:s,phrase:r}};var n=r(58824);const i=/^(\w+( \w+)*)((\/\/?[^/]+)*)(\/\/\/(.*))?$/},2471:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keyFromPath=function(e,t,r){const n=a[r];let i=e;for(const e of t)i=n(i,e);return i};var n=r(24628),i=r(66833),o=r(70645);const a={ecdsa:n.keyHdkdEcdsa,ed25519:i.keyHdkdEd25519,ethereum:n.keyHdkdEcdsa,sr25519:o.keyHdkdSr25519}},71642:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSeedDeriveFn=function(e,t){return(r,n)=>{let{chainCode:i,isHard:o}=n;if(!o)throw new Error("A soft key was found in the path and is not supported");return e(t(r.secretKey.subarray(0,32),i))}}},24628:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keyHdkdEcdsa=void 0;var n=r(50749),i=r(44464);const o=(0,r(71642).createSeedDeriveFn)(i.secp256k1PairFromSeed,n.secp256k1DeriveHard);t.keyHdkdEcdsa=o},66833:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keyHdkdEd25519=void 0;var n=r(15859);const i=(0,r(71642).createSeedDeriveFn)(n.ed25519PairFromSeed,n.ed25519DeriveHard);t.keyHdkdEd25519=i},70645:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keyHdkdSr25519=function(e,t){let{chainCode:r,isSoft:o}=t;return o?(0,i.sr25519DeriveSoft)(e,r):(0,n.sr25519DeriveHard)(e,r)};var n=r(73740),i=r(92150)},89673:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"keyExtractPath",{enumerable:!0,get:function(){return n.keyExtractPath}}),Object.defineProperty(t,"keyExtractSuri",{enumerable:!0,get:function(){return i.keyExtractSuri}}),Object.defineProperty(t,"keyFromPath",{enumerable:!0,get:function(){return o.keyFromPath}}),Object.defineProperty(t,"keyHdkdEcdsa",{enumerable:!0,get:function(){return u.keyHdkdEcdsa}}),Object.defineProperty(t,"keyHdkdEd25519",{enumerable:!0,get:function(){return a.keyHdkdEd25519}}),Object.defineProperty(t,"keyHdkdSr25519",{enumerable:!0,get:function(){return s.keyHdkdSr25519}});var n=r(58824),i=r(39360),o=r(2471),a=r(66833),s=r(70645),u=r(24628)},60788:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r="abandon|ability|able|about|above|absent|absorb|abstract|absurd|abuse|access|accident|account|accuse|achieve|acid|acoustic|acquire|across|act|action|actor|actress|actual|adapt|add|addict|address|adjust|admit|adult|advance|advice|aerobic|affair|afford|afraid|again|age|agent|agree|ahead|aim|air|airport|aisle|alarm|album|alcohol|alert|alien|all|alley|allow|almost|alone|alpha|already|also|alter|always|amateur|amazing|among|amount|amused|analyst|anchor|ancient|anger|angle|angry|animal|ankle|announce|annual|another|answer|antenna|antique|anxiety|any|apart|apology|appear|apple|approve|april|arch|arctic|area|arena|argue|arm|armed|armor|army|around|arrange|arrest|arrive|arrow|art|artefact|artist|artwork|ask|aspect|assault|asset|assist|assume|asthma|athlete|atom|attack|attend|attitude|attract|auction|audit|august|aunt|author|auto|autumn|average|avocado|avoid|awake|aware|away|awesome|awful|awkward|axis|baby|bachelor|bacon|badge|bag|balance|balcony|ball|bamboo|banana|banner|bar|barely|bargain|barrel|base|basic|basket|battle|beach|bean|beauty|because|become|beef|before|begin|behave|behind|believe|below|belt|bench|benefit|best|betray|better|between|beyond|bicycle|bid|bike|bind|biology|bird|birth|bitter|black|blade|blame|blanket|blast|bleak|bless|blind|blood|blossom|blouse|blue|blur|blush|board|boat|body|boil|bomb|bone|bonus|book|boost|border|boring|borrow|boss|bottom|bounce|box|boy|bracket|brain|brand|brass|brave|bread|breeze|brick|bridge|brief|bright|bring|brisk|broccoli|broken|bronze|broom|brother|brown|brush|bubble|buddy|budget|buffalo|build|bulb|bulk|bullet|bundle|bunker|burden|burger|burst|bus|business|busy|butter|buyer|buzz|cabbage|cabin|cable|cactus|cage|cake|call|calm|camera|camp|can|canal|cancel|candy|cannon|canoe|canvas|canyon|capable|capital|captain|car|carbon|card|cargo|carpet|carry|cart|case|cash|casino|castle|casual|cat|catalog|catch|category|cattle|caught|cause|caution|cave|ceiling|celery|cement|census|century|cereal|certain|chair|chalk|champion|change|chaos|chapter|charge|chase|chat|cheap|check|cheese|chef|cherry|chest|chicken|chief|child|chimney|choice|choose|chronic|chuckle|chunk|churn|cigar|cinnamon|circle|citizen|city|civil|claim|clap|clarify|claw|clay|clean|clerk|clever|click|client|cliff|climb|clinic|clip|clock|clog|close|cloth|cloud|clown|club|clump|cluster|clutch|coach|coast|coconut|code|coffee|coil|coin|collect|color|column|combine|come|comfort|comic|common|company|concert|conduct|confirm|congress|connect|consider|control|convince|cook|cool|copper|copy|coral|core|corn|correct|cost|cotton|couch|country|couple|course|cousin|cover|coyote|crack|cradle|craft|cram|crane|crash|crater|crawl|crazy|cream|credit|creek|crew|cricket|crime|crisp|critic|crop|cross|crouch|crowd|crucial|cruel|cruise|crumble|crunch|crush|cry|crystal|cube|culture|cup|cupboard|curious|current|curtain|curve|cushion|custom|cute|cycle|dad|damage|damp|dance|danger|daring|dash|daughter|dawn|day|deal|debate|debris|decade|december|decide|decline|decorate|decrease|deer|defense|define|defy|degree|delay|deliver|demand|demise|denial|dentist|deny|depart|depend|deposit|depth|deputy|derive|describe|desert|design|desk|despair|destroy|detail|detect|develop|device|devote|diagram|dial|diamond|diary|dice|diesel|diet|differ|digital|dignity|dilemma|dinner|dinosaur|direct|dirt|disagree|discover|disease|dish|dismiss|disorder|display|distance|divert|divide|divorce|dizzy|doctor|document|dog|doll|dolphin|domain|donate|donkey|donor|door|dose|double|dove|draft|dragon|drama|drastic|draw|dream|dress|drift|drill|drink|drip|drive|drop|drum|dry|duck|dumb|dune|during|dust|dutch|duty|dwarf|dynamic|eager|eagle|early|earn|earth|easily|east|easy|echo|ecology|economy|edge|edit|educate|effort|egg|eight|either|elbow|elder|electric|elegant|element|elephant|elevator|elite|else|embark|embody|embrace|emerge|emotion|employ|empower|empty|enable|enact|end|endless|endorse|enemy|energy|enforce|engage|engine|enhance|enjoy|enlist|enough|enrich|enroll|ensure|enter|entire|entry|envelope|episode|equal|equip|era|erase|erode|erosion|error|erupt|escape|essay|essence|estate|eternal|ethics|evidence|evil|evoke|evolve|exact|example|excess|exchange|excite|exclude|excuse|execute|exercise|exhaust|exhibit|exile|exist|exit|exotic|expand|expect|expire|explain|expose|express|extend|extra|eye|eyebrow|fabric|face|faculty|fade|faint|faith|fall|false|fame|family|famous|fan|fancy|fantasy|farm|fashion|fat|fatal|father|fatigue|fault|favorite|feature|february|federal|fee|feed|feel|female|fence|festival|fetch|fever|few|fiber|fiction|field|figure|file|film|filter|final|find|fine|finger|finish|fire|firm|first|fiscal|fish|fit|fitness|fix|flag|flame|flash|flat|flavor|flee|flight|flip|float|flock|floor|flower|fluid|flush|fly|foam|focus|fog|foil|fold|follow|food|foot|force|forest|forget|fork|fortune|forum|forward|fossil|foster|found|fox|fragile|frame|frequent|fresh|friend|fringe|frog|front|frost|frown|frozen|fruit|fuel|fun|funny|furnace|fury|future|gadget|gain|galaxy|gallery|game|gap|garage|garbage|garden|garlic|garment|gas|gasp|gate|gather|gauge|gaze|general|genius|genre|gentle|genuine|gesture|ghost|giant|gift|giggle|ginger|giraffe|girl|give|glad|glance|glare|glass|glide|glimpse|globe|gloom|glory|glove|glow|glue|goat|goddess|gold|good|goose|gorilla|gospel|gossip|govern|gown|grab|grace|grain|grant|grape|grass|gravity|great|green|grid|grief|grit|grocery|group|grow|grunt|guard|guess|guide|guilt|guitar|gun|gym|habit|hair|half|hammer|hamster|hand|happy|harbor|hard|harsh|harvest|hat|have|hawk|hazard|head|health|heart|heavy|hedgehog|height|hello|helmet|help|hen|hero|hidden|high|hill|hint|hip|hire|history|hobby|hockey|hold|hole|holiday|hollow|home|honey|hood|hope|horn|horror|horse|hospital|host|hotel|hour|hover|hub|huge|human|humble|humor|hundred|hungry|hunt|hurdle|hurry|hurt|husband|hybrid|ice|icon|idea|identify|idle|ignore|ill|illegal|illness|image|imitate|immense|immune|impact|impose|improve|impulse|inch|include|income|increase|index|indicate|indoor|industry|infant|inflict|inform|inhale|inherit|initial|inject|injury|inmate|inner|innocent|input|inquiry|insane|insect|inside|inspire|install|intact|interest|into|invest|invite|involve|iron|island|isolate|issue|item|ivory|jacket|jaguar|jar|jazz|jealous|jeans|jelly|jewel|job|join|joke|journey|joy|judge|juice|jump|jungle|junior|junk|just|kangaroo|keen|keep|ketchup|key|kick|kid|kidney|kind|kingdom|kiss|kit|kitchen|kite|kitten|kiwi|knee|knife|knock|know|lab|label|labor|ladder|lady|lake|lamp|language|laptop|large|later|latin|laugh|laundry|lava|law|lawn|lawsuit|layer|lazy|leader|leaf|learn|leave|lecture|left|leg|legal|legend|leisure|lemon|lend|length|lens|leopard|lesson|letter|level|liar|liberty|library|license|life|lift|light|like|limb|limit|link|lion|liquid|list|little|live|lizard|load|loan|lobster|local|lock|logic|lonely|long|loop|lottery|loud|lounge|love|loyal|lucky|luggage|lumber|lunar|lunch|luxury|lyrics|machine|mad|magic|magnet|maid|mail|main|major|make|mammal|man|manage|mandate|mango|mansion|manual|maple|marble|march|margin|marine|market|marriage|mask|mass|master|match|material|math|matrix|matter|maximum|maze|meadow|mean|measure|meat|mechanic|medal|media|melody|melt|member|memory|mention|menu|mercy|merge|merit|merry|mesh|message|metal|method|middle|midnight|milk|million|mimic|mind|minimum|minor|minute|miracle|mirror|misery|miss|mistake|mix|mixed|mixture|mobile|model|modify|mom|moment|monitor|monkey|monster|month|moon|moral|more|morning|mosquito|mother|motion|motor|mountain|mouse|move|movie|much|muffin|mule|multiply|muscle|museum|mushroom|music|must|mutual|myself|mystery|myth|naive|name|napkin|narrow|nasty|nation|nature|near|neck|need|negative|neglect|neither|nephew|nerve|nest|net|network|neutral|never|news|next|nice|night|noble|noise|nominee|noodle|normal|north|nose|notable|note|nothing|notice|novel|now|nuclear|number|nurse|nut|oak|obey|object|oblige|obscure|observe|obtain|obvious|occur|ocean|october|odor|off|offer|office|often|oil|okay|old|olive|olympic|omit|once|one|onion|online|only|open|opera|opinion|oppose|option|orange|orbit|orchard|order|ordinary|organ|orient|original|orphan|ostrich|other|outdoor|outer|output|outside|oval|oven|over|own|owner|oxygen|oyster|ozone|pact|paddle|page|pair|palace|palm|panda|panel|panic|panther|paper|parade|parent|park|parrot|party|pass|patch|path|patient|patrol|pattern|pause|pave|payment|peace|peanut|pear|peasant|pelican|pen|penalty|pencil|people|pepper|perfect|permit|person|pet|phone|photo|phrase|physical|piano|picnic|picture|piece|pig|pigeon|pill|pilot|pink|pioneer|pipe|pistol|pitch|pizza|place|planet|plastic|plate|play|please|pledge|pluck|plug|plunge|poem|poet|point|polar|pole|police|pond|pony|pool|popular|portion|position|possible|post|potato|pottery|poverty|powder|power|practice|praise|predict|prefer|prepare|present|pretty|prevent|price|pride|primary|print|priority|prison|private|prize|problem|process|produce|profit|program|project|promote|proof|property|prosper|protect|proud|provide|public|pudding|pull|pulp|pulse|pumpkin|punch|pupil|puppy|purchase|purity|purpose|purse|push|put|puzzle|pyramid|quality|quantum|quarter|question|quick|quit|quiz|quote|rabbit|raccoon|race|rack|radar|radio|rail|rain|raise|rally|ramp|ranch|random|range|rapid|rare|rate|rather|raven|raw|razor|ready|real|reason|rebel|rebuild|recall|receive|recipe|record|recycle|reduce|reflect|reform|refuse|region|regret|regular|reject|relax|release|relief|rely|remain|remember|remind|remove|render|renew|rent|reopen|repair|repeat|replace|report|require|rescue|resemble|resist|resource|response|result|retire|retreat|return|reunion|reveal|review|reward|rhythm|rib|ribbon|rice|rich|ride|ridge|rifle|right|rigid|ring|riot|ripple|risk|ritual|rival|river|road|roast|robot|robust|rocket|romance|roof|rookie|room|rose|rotate|rough|round|route|royal|rubber|rude|rug|rule|run|runway|rural|sad|saddle|sadness|safe|sail|salad|salmon|salon|salt|salute|same|sample|sand|satisfy|satoshi|sauce|sausage|save|say|scale|scan|scare|scatter|scene|scheme|school|science|scissors|scorpion|scout|scrap|screen|script|scrub|sea|search|season|seat|second|secret|section|security|seed|seek|segment|select|sell|seminar|senior|sense|sentence|series|service|session|settle|setup|seven|shadow|shaft|shallow|share|shed|shell|sheriff|shield|shift|shine|ship|shiver|shock|shoe|shoot|shop|short|shoulder|shove|shrimp|shrug|shuffle|shy|sibling|sick|side|siege|sight|sign|silent|silk|silly|silver|similar|simple|since|sing|siren|sister|situate|six|size|skate|sketch|ski|skill|skin|skirt|skull|slab|slam|sleep|slender|slice|slide|slight|slim|slogan|slot|slow|slush|small|smart|smile|smoke|smooth|snack|snake|snap|sniff|snow|soap|soccer|social|sock|soda|soft|solar|soldier|solid|solution|solve|someone|song|soon|sorry|sort|soul|sound|soup|source|south|space|spare|spatial|spawn|speak|special|speed|spell|spend|sphere|spice|spider|spike|spin|spirit|split|spoil|sponsor|spoon|sport|spot|spray|spread|spring|spy|square|squeeze|squirrel|stable|stadium|staff|stage|stairs|stamp|stand|start|state|stay|steak|steel|stem|step|stereo|stick|still|sting|stock|stomach|stone|stool|story|stove|strategy|street|strike|strong|struggle|student|stuff|stumble|style|subject|submit|subway|success|such|sudden|suffer|sugar|suggest|suit|summer|sun|sunny|sunset|super|supply|supreme|sure|surface|surge|surprise|surround|survey|suspect|sustain|swallow|swamp|swap|swarm|swear|sweet|swift|swim|swing|switch|sword|symbol|symptom|syrup|system|table|tackle|tag|tail|talent|talk|tank|tape|target|task|taste|tattoo|taxi|teach|team|tell|ten|tenant|tennis|tent|term|test|text|thank|that|theme|then|theory|there|they|thing|this|thought|three|thrive|throw|thumb|thunder|ticket|tide|tiger|tilt|timber|time|tiny|tip|tired|tissue|title|toast|tobacco|today|toddler|toe|together|toilet|token|tomato|tomorrow|tone|tongue|tonight|tool|tooth|top|topic|topple|torch|tornado|tortoise|toss|total|tourist|toward|tower|town|toy|track|trade|traffic|tragic|train|transfer|trap|trash|travel|tray|treat|tree|trend|trial|tribe|trick|trigger|trim|trip|trophy|trouble|truck|true|truly|trumpet|trust|truth|try|tube|tuition|tumble|tuna|tunnel|turkey|turn|turtle|twelve|twenty|twice|twin|twist|two|type|typical|ugly|umbrella|unable|unaware|uncle|uncover|under|undo|unfair|unfold|unhappy|uniform|unique|unit|universe|unknown|unlock|until|unusual|unveil|update|upgrade|uphold|upon|upper|upset|urban|urge|usage|use|used|useful|useless|usual|utility|vacant|vacuum|vague|valid|valley|valve|van|vanish|vapor|various|vast|vault|vehicle|velvet|vendor|venture|venue|verb|verify|version|very|vessel|veteran|viable|vibrant|vicious|victory|video|view|village|vintage|violin|virtual|virus|visa|visit|visual|vital|vivid|vocal|voice|void|volcano|volume|vote|voyage|wage|wagon|wait|walk|wall|walnut|want|warfare|warm|warrior|wash|wasp|waste|water|wave|way|wealth|weapon|wear|weasel|weather|web|wedding|weekend|weird|welcome|west|wet|whale|what|wheat|wheel|when|where|whip|whisper|wide|width|wife|wild|will|win|window|wine|wing|wink|winner|winter|wire|wisdom|wise|wish|witness|wolf|woman|wonder|wood|wool|word|work|world|worry|worth|wrap|wreck|wrestle|wrist|write|wrong|yard|year|yellow|you|young|youth|zebra|zero|zone|zoo".split("|");t.default=r},56442:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.entropyToMnemonic=g,t.generateMnemonic=function(e){return g((0,a.randomAsU8a)(e/3*4))},t.mnemonicToEntropy=y,t.mnemonicToSeedSync=function(e,t){return(0,o.pbkdf2Encode)((0,i.stringToU8a)(d(e)),(0,i.stringToU8a)(`mnemonic${d(t)}`)).password},t.validateMnemonic=function(e){try{y(e)}catch(e){return!1}return!0};var i=r(57026),o=r(39355),a=r(56674),s=r(20653),u=n(r(60788));const c="Invalid mnemonic",f="Invalid entropy",l="Invalid mnemonic checksum";function d(e){return(e||"").normalize("NFKD")}function h(e){return parseInt(e,2)}function p(e){return e.map((e=>e.toString(2).padStart(8,"0"))).join("")}function b(e){return p(Array.from((0,s.sha256AsU8a)(e))).slice(0,8*e.length/32)}function y(e){const t=d(e).split(" ");if(t.length%3!=0)throw new Error(c);const r=t.map((e=>{const t=u.default.indexOf(e);if(-1===t)throw new Error(c);return t.toString(2).padStart(11,"0")})).join(""),n=32*Math.floor(r.length/33),o=r.slice(0,n),a=r.slice(n),s=o.match(/(.{1,8})/g),p=s&&s.map(h);if(!p||p.length%4!=0||p.length<16||p.length>32)throw new Error(f);const y=(0,i.u8aToU8a)(p);if(b(y)!==a)throw new Error(l);return y}function g(e){if(e.length%4!=0||e.length<16||e.length>32)throw new Error(f);const t=`${p(Array.from(e))}${b(e)}`.match(/(.{1,11})/g),r=t&&t.map((e=>u.default[h(e)]));if(!r||r.length<12)throw new Error("Unable to map entropy to mnemonic");return r.join(" ")}},31967:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mnemonicGenerate=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:12,t=arguments.length>1?arguments[1]:void 0;return!n.hasBigInt||!t&&(0,i.isReady)()?(0,i.bip39Generate)(e):(0,o.generateMnemonic)(e)};var n=r(57026),i=r(56431),o=r(56442)},43917:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"mnemonicGenerate",{enumerable:!0,get:function(){return n.mnemonicGenerate}}),Object.defineProperty(t,"mnemonicToEntropy",{enumerable:!0,get:function(){return i.mnemonicToEntropy}}),Object.defineProperty(t,"mnemonicToLegacySeed",{enumerable:!0,get:function(){return o.mnemonicToLegacySeed}}),Object.defineProperty(t,"mnemonicToMiniSecret",{enumerable:!0,get:function(){return a.mnemonicToMiniSecret}}),Object.defineProperty(t,"mnemonicValidate",{enumerable:!0,get:function(){return s.mnemonicValidate}});var n=r(31967),i=r(94134),o=r(42735),a=r(47923),s=r(24630)},94134:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mnemonicToEntropy=function(e,t){return!n.hasBigInt||!t&&(0,i.isReady)()?(0,i.bip39ToEntropy)(e):(0,o.mnemonicToEntropy)(e)};var n=r(57026),i=r(56431),o=r(56442)},42735:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mnemonicToLegacySeed=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:32;if(!(0,a.mnemonicValidate)(e))throw new Error("Invalid bip39 mnemonic specified");if(![32,64].includes(s))throw new Error(`Invalid seed length ${s}, expected 32 or 64`);return 32===s?!n.hasBigInt||!r&&(0,i.isReady)()?(0,i.bip39ToSeed)(e,t):(0,o.mnemonicToSeedSync)(e,t).subarray(0,32):(0,o.mnemonicToSeedSync)(e,t)};var n=r(57026),i=r(56431),o=r(56442),a=r(24630)},47923:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mnemonicToMiniSecret=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0;if(!(0,s.mnemonicValidate)(e))throw new Error("Invalid bip39 mnemonic specified");if(!r&&(0,i.isReady)())return(0,i.bip39ToMiniSecret)(e,t);const u=(0,a.mnemonicToEntropy)(e),c=(0,n.stringToU8a)(`mnemonic${t}`);return(0,o.pbkdf2Encode)(u,c).password.slice(0,32)};var n=r(57026),i=r(56431),o=r(39355),a=r(94134),s=r(24630)},24630:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mnemonicValidate=function(e,t){return!n.hasBigInt||!t&&(0,i.isReady)()?(0,i.bip39Validate)(e):(0,o.validateMnemonic)(e)};var n=r(57026),i=r(56431),o=r(56442)},76322:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.naclBoxPairFromSecret=function(e){return i.default.box.keyPair.fromSecretKey(e.slice(0,32))};var i=n(r(50780))},62827:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.naclDecrypt=function(e,t,r){return i.default.secretbox.open(e,t,r)||null};var i=n(r(50780))},67429:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.naclEncrypt=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,o.randomAsU8a)(24);return{encrypted:i.default.secretbox(e,r,t),nonce:r}};var i=n(r(50780)),o=r(43505)},97798:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"naclBoxPairFromSecret",{enumerable:!0,get:function(){return o.naclBoxPairFromSecret}}),Object.defineProperty(t,"naclDecrypt",{enumerable:!0,get:function(){return n.naclDecrypt}}),Object.defineProperty(t,"naclEncrypt",{enumerable:!0,get:function(){return i.naclEncrypt}}),Object.defineProperty(t,"naclOpen",{enumerable:!0,get:function(){return a.naclOpen}}),Object.defineProperty(t,"naclSeal",{enumerable:!0,get:function(){return s.naclSeal}});var n=r(62827),i=r(67429),o=r(76322),a=r(55423),s=r(93265)},55423:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.naclOpen=function(e,t,r,n){return i.default.box.open(e,t,r,n)||null};var i=n(r(50780))},93265:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.naclSeal=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:(0,o.randomAsU8a)(24);return{nonce:n,sealed:i.default.box(e,n,r,t)}};var i=n(r(50780)),o=r(43505)},43128:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"allNetworks",{enumerable:!0,get:function(){return n.allNetworks}}),Object.defineProperty(t,"availableNetworks",{enumerable:!0,get:function(){return n.availableNetworks}}),Object.defineProperty(t,"selectableNetworks",{enumerable:!0,get:function(){return n.selectableNetworks}});var n=r(38724)},43647:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/util-crypto",path:"/",type:"cjs",version:"10.4.1"}},95147:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pbkdf2Encode=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,s.randomAsU8a)(),r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2048,u=arguments.length>3?arguments[3]:void 0;const c=(0,o.u8aToU8a)(e),f=(0,o.u8aToU8a)(t);return{password:!o.hasBigInt||!u&&(0,a.isReady)()?(0,a.pbkdf2)(c,f,r):(0,n.pbkdf2)(i.sha512,c,f,{c:r,dkLen:64}),rounds:r,salt:t}};var n=r(98497),i=r(49116),o=r(57026),a=r(56431),s=r(43505)},39355:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pbkdf2Encode",{enumerable:!0,get:function(){return n.pbkdf2Encode}});var n=r(95147)},3143:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomAsNumber=function(){return(0,n.hexToBn)((0,i.randomAsHex)(8)).and(o).toNumber()};var n=r(57026),i=r(43505);const o=new n.BN(9007199254740991)},43505:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomAsHex=void 0,t.randomAsU8a=i;var n=r(28530);function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32;return(0,n.getRandomValues)(new Uint8Array(e))}const o=(0,r(15555).createAsHex)(i);t.randomAsHex=o},56674:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"randomAsHex",{enumerable:!0,get:function(){return i.randomAsHex}}),Object.defineProperty(t,"randomAsNumber",{enumerable:!0,get:function(){return n.randomAsNumber}}),Object.defineProperty(t,"randomAsU8a",{enumerable:!0,get:function(){return i.randomAsU8a}});var n=r(3143),i=r(43505)},64915:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_PARAMS=void 0,t.DEFAULT_PARAMS={N:32768,p:1,r:8}},9714:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scryptEncode=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,a.randomAsU8a)(),r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.DEFAULT_PARAMS,u=arguments.length>3?arguments[3]:void 0;const c=(0,i.u8aToU8a)(e);return{params:r,password:!i.hasBigInt||!u&&(0,o.isReady)()?(0,o.scrypt)(c,t,Math.log2(r.N),r.r,r.p):(0,n.scrypt)(c,t,(0,i.objectSpread)({dkLen:64},r)),salt:t}};var n=r(56147),i=r(57026),o=r(56431),a=r(43505),s=r(64915)},32797:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scryptFromU8a=function(e){const t=e.subarray(0,32),r=(0,n.u8aToBn)(e.subarray(32,36),i.BN_LE_OPTS).toNumber(),a=(0,n.u8aToBn)(e.subarray(36,40),i.BN_LE_OPTS).toNumber(),s=(0,n.u8aToBn)(e.subarray(40,44),i.BN_LE_OPTS).toNumber();if(r!==o.DEFAULT_PARAMS.N||a!==o.DEFAULT_PARAMS.p||s!==o.DEFAULT_PARAMS.r)throw new Error("Invalid injected scrypt params found");return{params:{N:r,p:a,r:s},salt:t}};var n=r(57026),i=r(74416),o=r(64915)},63881:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"scryptEncode",{enumerable:!0,get:function(){return n.scryptEncode}}),Object.defineProperty(t,"scryptFromU8a",{enumerable:!0,get:function(){return i.scryptFromU8a}}),Object.defineProperty(t,"scryptToU8a",{enumerable:!0,get:function(){return o.scryptToU8a}});var n=r(9714),i=r(32797),o=r(74633)},74633:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scryptToU8a=function(e,t){let{N:r,p:o,r:a}=t;return(0,n.u8aConcat)(e,(0,n.bnToU8a)(r,i.BN_LE_32_OPTS),(0,n.bnToU8a)(o,i.BN_LE_32_OPTS),(0,n.bnToU8a)(a,i.BN_LE_32_OPTS))};var n=r(57026),i=r(74416)},30296:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.secp256k1Compress=function(e,t){if(33===e.length)return e;if(65!==e.length)throw new Error("Invalid publicKey provided");return!i.hasBigInt||!t&&(0,o.isReady)()?(0,o.secp256k1Compress)(e):n.Point.fromHex(e).toRawBytes(!0)};var n=r(63494),i=r(57026),o=r(56431)},50749:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.secp256k1DeriveHard=function(e,t){if(!(0,n.isU8a)(t)||32!==t.length)throw new Error("Invalid chainCode passed to derive");return(0,i.blake2AsU8a)((0,n.u8aConcat)(o,e,t),256)};var n=r(57026),i=r(459);const o=(0,n.compactAddLength)((0,n.stringToU8a)("Secp256k1HDKD"))},50759:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.secp256k1Expand=function(e,t){if(65===e.length)return e.subarray(1);if(33!==e.length)throw new Error("Invalid publicKey provided");if(!i.hasBigInt||!t&&(0,o.isReady)())return(0,o.secp256k1Expand)(e).subarray(1);const{x:r,y:s}=n.Point.fromHex(e);return(0,i.u8aConcat)((0,i.bnToU8a)(r,a.BN_BE_256_OPTS),(0,i.bnToU8a)(s,a.BN_BE_256_OPTS))};var n=r(63494),i=r(57026),o=r(56431),a=r(74416)},65224:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasher=function(e,t,r){return"keccak"===e?(0,i.keccakAsU8a)(t,void 0,r):(0,n.blake2AsU8a)(t,void 0,void 0,r)};var n=r(53792),i=r(25843)},35702:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"secp256k1Compress",{enumerable:!0,get:function(){return n.secp256k1Compress}}),Object.defineProperty(t,"secp256k1Expand",{enumerable:!0,get:function(){return i.secp256k1Expand}}),Object.defineProperty(t,"secp256k1PairFromSeed",{enumerable:!0,get:function(){return o.secp256k1PairFromSeed}}),Object.defineProperty(t,"secp256k1PrivateKeyTweakAdd",{enumerable:!0,get:function(){return u.secp256k1PrivateKeyTweakAdd}}),Object.defineProperty(t,"secp256k1Recover",{enumerable:!0,get:function(){return a.secp256k1Recover}}),Object.defineProperty(t,"secp256k1Sign",{enumerable:!0,get:function(){return s.secp256k1Sign}}),Object.defineProperty(t,"secp256k1Verify",{enumerable:!0,get:function(){return c.secp256k1Verify}});var n=r(30296),i=r(50759),o=r(44464),a=r(28905),s=r(56074),u=r(35277),c=r(55321)},44464:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.secp256k1PairFromSeed=function(e,t){if(32!==e.length)throw new Error("Expected valid 32-byte private key as a seed");if(!i.hasBigInt||!t&&(0,o.isReady)()){const t=(0,o.secp256k1FromSeed)(e),r=t.slice(32);if((0,i.u8aEmpty)(r))throw new Error("Invalid publicKey generated from WASM interface");return{publicKey:r,secretKey:t.slice(0,32)}}return{publicKey:(0,n.getPublicKey)(e,!0),secretKey:e}};var n=r(63494),i=r(57026),o=r(56431)},28905:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.secp256k1Recover=function(e,t,r){let u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"blake2",c=arguments.length>4?arguments[4]:void 0;const f=(0,i.u8aToU8a)(t).subarray(0,64),l=(0,i.u8aToU8a)(e),d=!i.hasBigInt||!c&&(0,o.isReady)()?(0,o.secp256k1Recover)(l,f,r):(0,n.recoverPublicKey)(l,n.Signature.fromCompact(f).toRawBytes(),r);if(!d)throw new Error("Unable to recover publicKey from signature");return"keccak"===u?(0,s.secp256k1Expand)(d,c):(0,a.secp256k1Compress)(d,c)};var n=r(63494),i=r(57026),o=r(56431),a=r(30296),s=r(50759)},56074:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.secp256k1Sign=function(e,t){let{secretKey:r}=t,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"blake2",c=arguments.length>3?arguments[3]:void 0;if(32!==(null==r?void 0:r.length))throw new Error("Expected valid secp256k1 secretKey, 32-bytes");const f=(0,s.hasher)(u,e,c);if(!i.hasBigInt||!c&&(0,o.isReady)())return(0,o.secp256k1Sign)(f,r);const[l,d]=(0,n.signSync)(f,r,{canonical:!0,recovered:!0}),{r:h,s:p}=n.Signature.fromHex(l);return(0,i.u8aConcat)((0,i.bnToU8a)(h,a.BN_BE_256_OPTS),(0,i.bnToU8a)(p,a.BN_BE_256_OPTS),new Uint8Array([d||0]))};var n=r(63494),i=r(57026),o=r(56431),a=r(74416),s=r(65224)},35277:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.secp256k1PrivateKeyTweakAdd=function(e,t,r){if(!(0,n.isU8a)(e)||32!==e.length)throw new Error("Expected seckey to be an Uint8Array with length 32");if(!(0,n.isU8a)(t)||32!==t.length)throw new Error("Expected tweak to be an Uint8Array with length 32");return!n.hasBigInt||r?function(e,t){const r=new n.BN(t);if(r.cmp(u)>=0)throw new Error("Tweak parameter is out of range");if(r.iadd(new n.BN(e)),r.cmp(u)>=0&&r.isub(u),r.isZero())throw new Error("Invalid resulting private key");return(0,n.bnToU8a)(r,o.BN_BE_256_OPTS)}(e,t):function(e,t){let r=(0,n.u8aToBigInt)(t,o.BN_BE_OPTS);if(r>=s)throw new Error("Tweak parameter is out of range");if(r+=(0,n.u8aToBigInt)(e,o.BN_BE_OPTS),r>=s&&(r-=s),r===n._0n)throw new Error("Invalid resulting private key");return(0,n.nToU8a)(r,o.BN_BE_256_OPTS)}(e,t)};var n=r(57026),i=r(9942),o=r(74416);const a="ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141".replace(/ /g,""),s=(0,i.BigInt)(`0x${a}`),u=new n.BN(a,"hex")},55321:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.secp256k1Verify=function(e,t,r){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"blake2",s=arguments.length>4?arguments[4]:void 0;const u=(0,n.u8aToU8a)(t);if(65!==u.length)throw new Error(`Expected signature with 65 bytes, ${u.length} found instead`);const c=(0,o.secp256k1Recover)((0,i.hasher)(a,e),u,u[64],a,s),f=(0,i.hasher)(a,c,s),l=(0,n.u8aToU8a)(r);return(0,n.u8aEq)(c,l)||("keccak"===a?(0,n.u8aEq)(f.slice(-20),l.slice(-20)):(0,n.u8aEq)(f,l))};var n=r(57026),i=r(65224),o=r(28905)},26159:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shaAsU8a=t.sha512AsU8a=t.sha256AsU8a=void 0;var n=r(15468),i=r(49116),o=r(56431),a=r(15555);const s=(0,a.createDualHasher)({256:o.sha256,512:o.sha512},{256:n.sha256,512:i.sha512});t.shaAsU8a=s;const u=(0,a.createBitHasher)(256,s);t.sha256AsU8a=u;const c=(0,a.createBitHasher)(512,s);t.sha512AsU8a=c},20653:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"sha256AsU8a",{enumerable:!0,get:function(){return n.sha256AsU8a}}),Object.defineProperty(t,"sha512AsU8a",{enumerable:!0,get:function(){return n.sha512AsU8a}}),Object.defineProperty(t,"shaAsU8a",{enumerable:!0,get:function(){return n.shaAsU8a}});var n=r(26159)},38515:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"signatureVerify",{enumerable:!0,get:function(){return n.signatureVerify}});var n=r(65503)},65503:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.signatureVerify=function(e,t,r){const o=(0,n.u8aToU8a)(t);if(![64,65,66].includes(o.length))throw new Error(`Invalid signature length, expected [64..66] bytes, found ${o.length}`);const a=(0,i.decodeAddress)(r),s={message:(0,n.u8aToU8a)(e),publicKey:a,signature:o},u={crypto:"none",isValid:!1,isWrapped:(0,n.u8aIsWrapped)(s.message,!0),publicKey:a},c=(0,n.u8aIsWrapped)(s.message,!1),f=function(e){return[0,1,2].includes(e[0])&&[65,66].includes(e.length)?h:d}(o);return f(u,s),"none"!==u.crypto||u.isWrapped&&!c?u:(s.message=c?(0,n.u8aUnwrapBytes)(s.message):(0,n.u8aWrapBytes)(s.message),f(u,s))};var n=r(57026),i=r(711),o=r(61850),a=r(55321),s=r(55484);const u=e=>(t,r,n)=>(0,a.secp256k1Verify)(t,r,n,e),c=[["ecdsa",u("blake2")],["ethereum",u("keccak")]],f=[["ed25519",o.ed25519Verify],["sr25519",s.sr25519Verify],...c],l=["ed25519","sr25519","ecdsa"];function d(e,t){let{message:r,publicKey:n,signature:i}=t,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f;return e.isValid=o.some((t=>{let[o,a]=t;try{if(a(r,i,n))return e.crypto=o,!0}catch(e){}return!1})),e}function h(e,t){let{message:r,publicKey:n,signature:i}=t;if(![0,1,2].includes(i[0]))throw new Error(`Unknown crypto type, expected signature prefix [0..2], found ${i[0]}`);const a=l[i[0]]||"none";e.crypto=a;try{e.isValid={ecdsa:()=>d(e,{message:r,publicKey:n,signature:i.subarray(1)},c).isValid,ed25519:()=>(0,o.ed25519Verify)(r,i.subarray(1),n),none:()=>{throw Error("no verify for `none` crypto type")},sr25519:()=>(0,s.sr25519Verify)(r,i.subarray(1),n)}[a]()}catch(e){}return e}},7415:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sr25519Agreement=function(e,t){const r=(0,n.u8aToU8a)(e),o=(0,n.u8aToU8a)(t);if(32!==o.length)throw new Error(`Invalid publicKey, received ${o.length} bytes, expected 32`);if(64!==r.length)throw new Error(`Invalid secretKey, received ${r.length} bytes, expected 64`);return(0,i.sr25519Agree)(o,r)};var n=r(57026),i=r(56431)},29468:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDeriveFn=function(e){return(t,r)=>{if(!(0,n.isU8a)(r)||32!==r.length)throw new Error("Invalid chainCode passed to derive");return(0,i.sr25519PairFromU8a)(e((0,o.sr25519KeypairToU8a)(t),r))}};var n=r(57026),i=r(83493),o=r(28947)},73740:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sr25519DeriveHard=void 0;var n=r(56431);const i=(0,r(29468).createDeriveFn)(n.sr25519DeriveKeypairHard);t.sr25519DeriveHard=i},19292:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sr25519DerivePublic=function(e,t){const r=(0,n.u8aToU8a)(e);if(!(0,n.isU8a)(t)||32!==t.length)throw new Error("Invalid chainCode passed to derive");if(32!==r.length)throw new Error(`Invalid publicKey, received ${r.length} bytes, expected 32`);return(0,i.sr25519DerivePublicSoft)(r,t)};var n=r(57026),i=r(56431)},92150:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sr25519DeriveSoft=void 0;var n=r(56431);const i=(0,r(29468).createDeriveFn)(n.sr25519DeriveKeypairSoft);t.sr25519DeriveSoft=i},75340:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"sr25519Agreement",{enumerable:!0,get:function(){return n.sr25519Agreement}}),Object.defineProperty(t,"sr25519DeriveHard",{enumerable:!0,get:function(){return i.sr25519DeriveHard}}),Object.defineProperty(t,"sr25519DerivePublic",{enumerable:!0,get:function(){return o.sr25519DerivePublic}}),Object.defineProperty(t,"sr25519DeriveSoft",{enumerable:!0,get:function(){return a.sr25519DeriveSoft}}),Object.defineProperty(t,"sr25519PairFromSeed",{enumerable:!0,get:function(){return s.sr25519PairFromSeed}}),Object.defineProperty(t,"sr25519Sign",{enumerable:!0,get:function(){return u.sr25519Sign}}),Object.defineProperty(t,"sr25519Verify",{enumerable:!0,get:function(){return c.sr25519Verify}}),Object.defineProperty(t,"sr25519VrfSign",{enumerable:!0,get:function(){return f.sr25519VrfSign}}),Object.defineProperty(t,"sr25519VrfVerify",{enumerable:!0,get:function(){return l.sr25519VrfVerify}});var n=r(7415),i=r(73740),o=r(19292),a=r(92150),s=r(9337),u=r(62216),c=r(55484),f=r(67519),l=r(41784)},9337:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sr25519PairFromSeed=function(e){const t=(0,n.u8aToU8a)(e);if(32!==t.length)throw new Error(`Expected a seed matching 32 bytes, found ${t.length}`);return(0,o.sr25519PairFromU8a)((0,i.sr25519KeypairFromSeed)(t))};var n=r(57026),i=r(56431),o=r(83493)},83493:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sr25519PairFromU8a=function(e){const t=(0,n.u8aToU8a)(e);if(t.length!==o)throw new Error(`Expected keypair with ${o} bytes, found ${t.length}`);return{publicKey:t.slice(i,o),secretKey:t.slice(0,i)}};var n=r(57026);const i=64,o=i+32},28947:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sr25519KeypairToU8a=function(e){let{publicKey:t,secretKey:r}=e;return(0,n.u8aConcat)(r,t).slice()};var n=r(57026)},62216:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sr25519Sign=function(e,t){let{publicKey:r,secretKey:o}=t;if(32!==(null==r?void 0:r.length))throw new Error("Expected a valid publicKey, 32-bytes");if(64!==(null==o?void 0:o.length))throw new Error("Expected a valid secretKey, 64-bytes");return(0,i.sr25519Sign)(r,o,(0,n.u8aToU8a)(e))};var n=r(57026),i=r(56431)},55484:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sr25519Verify=function(e,t,r){const o=(0,n.u8aToU8a)(r),a=(0,n.u8aToU8a)(t);if(32!==o.length)throw new Error(`Invalid publicKey, received ${o.length} bytes, expected 32`);if(64!==a.length)throw new Error(`Invalid signature, received ${a.length} bytes, expected 64`);return(0,i.sr25519Verify)(a,(0,n.u8aToU8a)(e),o)};var n=r(57026),i=r(56431)},67519:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sr25519VrfSign=function(e,t){let{secretKey:r}=t,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o;if(64!==(null==r?void 0:r.length))throw new Error("Invalid secretKey, expected 64-bytes");return(0,i.vrfSign)(r,(0,n.u8aToU8a)(a),(0,n.u8aToU8a)(e),(0,n.u8aToU8a)(s))};var n=r(57026),i=r(56431);const o=new Uint8Array},41784:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sr25519VrfVerify=function(e,t,r){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:o;const u=(0,n.u8aToU8a)(r),c=(0,n.u8aToU8a)(t);if(32!==u.length)throw new Error("Invalid publicKey, expected 32-bytes");if(96!==c.length)throw new Error("Invalid vrfSign output, expected 96 bytes");return(0,i.vrfVerify)(u,(0,n.u8aToU8a)(a),(0,n.u8aToU8a)(e),(0,n.u8aToU8a)(s),c)};var n=r(57026),i=r(56431);const o=new Uint8Array},9280:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.xxhashAsHex=void 0,t.xxhashAsU8a=s;var n=r(57026),i=r(56431),o=r(15555),a=r(70522);function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:64,r=arguments.length>2?arguments[2]:void 0;const o=Math.ceil(t/64),s=(0,n.u8aToU8a)(e);if(!n.hasBigInt||!r&&(0,i.isReady)())return(0,i.twox)(s,o);const u=new Uint8Array(8*o);for(let e=0;e<o;e++)u.set((0,a.xxhash64)(s,e).reverse(),8*e);return u}const u=(0,o.createAsHex)(s);t.xxhashAsHex=u},86881:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"xxhashAsHex",{enumerable:!0,get:function(){return n.xxhashAsHex}}),Object.defineProperty(t,"xxhashAsU8a",{enumerable:!0,get:function(){return n.xxhashAsU8a}});var n=r(9280)},70522:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.xxhash64=function(e,t){const{seed:r,u8a:p,u8asize:x,v1:S,v2:A,v3:E,v4:M}=function(e,t){if(t.length<32)return e.u8a.set(t),e.u8asize=t.length,e;const r=t.length-32;let n=0;if(r>=0){const i=e=>o*k(e+a*P(t,n,4),v);do{e.v1=i(e.v1),n+=8,e.v2=i(e.v2),n+=8,e.v3=i(e.v3),n+=8,e.v4=i(e.v4),n+=8}while(n<=r)}return n<t.length&&(e.u8a.set(t.subarray(n,t.length)),e.u8asize=t.length-n),e}(function(e){const t=(0,i.BigInt)(e);return{seed:t,u8a:new Uint8Array(32),u8asize:0,v1:t+o+a,v2:t+a,v3:t,v4:t-o}}(t),e);let j=0,T=f&(0,i.BigInt)(e.length)+(e.length>=32?((((k(S,n._1n)+k(A,l)+k(E,h)+k(M,b)^o*k(S*a,v))*o+u^o*k(A*a,v))*o+u^o*k(E*a,v))*o+u^o*k(M*a,v))*o+u:r+c);for(;j<=x-8;)T=f&u+o*k(T^o*k(a*P(p,j,4),v),g),j+=8;for(j+4<=x&&(T=f&s+a*k(T^o*P(p,j,2),y),j+=4);j<x;)T=f&o*k(T^c*(0,i.BigInt)(p[j++]),d);return T=f&a*(T^T>>_),T=f&s*(T^T>>m),function(e){const t=new Uint8Array(8);for(let r=7;r>=0;r--)t[r]=Number(e%O),e/=O;return t}(f&(T^T>>w))};var n=r(57026),i=r(9942);const o=(0,i.BigInt)("11400714785074694791"),a=(0,i.BigInt)("14029467366897019727"),s=(0,i.BigInt)("1609587929392839161"),u=(0,i.BigInt)("9650029242287828579"),c=(0,i.BigInt)("2870177450012600261"),f=(0,i.BigInt)("0xffffffffffffffff"),l=(0,i.BigInt)(7),d=(0,i.BigInt)(11),h=(0,i.BigInt)(12),p=(0,i.BigInt)(16),b=(0,i.BigInt)(18),y=(0,i.BigInt)(23),g=(0,i.BigInt)(27),m=(0,i.BigInt)(29),v=(0,i.BigInt)(31),w=(0,i.BigInt)(32),_=(0,i.BigInt)(33),x=(0,i.BigInt)(64),O=(0,i.BigInt)(256);function k(e,t){const r=e&f;return(r<<t|r>>x-t)&f}function P(e,t,r){const o=new Array(r);let a=0;for(let n=0;n<r;n++,a+=2)o[n]=(0,i.BigInt)(e[t+a]|e[t+1+a]<<8);let s=n._0n;for(let e=r-1;e>=0;e--)s=(s<<p)+o[e];return s}},67809:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayChunk=function(e,t){const r=Math.ceil(e.length/t);if(1===r)return[e];const n=Array(r);for(let i=0;i<r;i++){const r=i*t;n[i]=e.slice(r,r+t)}return n}},89851:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayFilter=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.filter((e=>void 0!==e&&(t||null!==e)))}},68873:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayFlatten=function(e){if(0===e.length)return[];if(1===e.length)return e[0];let t=0;for(let r=0;r<e.length;r++)t+=e[r].length;const r=new Array(t);let n=-1;for(let t=0;t<e.length;t++){const i=e[t];for(let e=0;e<i.length;e++)r[++n]=i[e]}return r}},46678:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"arrayChunk",{enumerable:!0,get:function(){return n.arrayChunk}}),Object.defineProperty(t,"arrayFilter",{enumerable:!0,get:function(){return i.arrayFilter}}),Object.defineProperty(t,"arrayFlatten",{enumerable:!0,get:function(){return o.arrayFlatten}}),Object.defineProperty(t,"arrayRange",{enumerable:!0,get:function(){return a.arrayRange}}),Object.defineProperty(t,"arrayShuffle",{enumerable:!0,get:function(){return s.arrayShuffle}}),Object.defineProperty(t,"arrayUnzip",{enumerable:!0,get:function(){return u.arrayUnzip}}),Object.defineProperty(t,"arrayZip",{enumerable:!0,get:function(){return c.arrayZip}});var n=r(67809),i=r(89851),o=r(68873),a=r(90213),s=r(56906),u=r(78730),c=r(2974)},90213:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayRange=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e<=0)throw new Error("Expected non-zero, positive number as a range size");const r=new Array(e);for(let n=0;n<e;n++)r[n]=n+t;return r}},56906:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayShuffle=function(e){const t=e.slice();let r=t.length;if(1===r)return t;for(;0!==r;){const e=~~(Math.random()*r);r--,[t[r],t[e]]=[t[e],t[r]]}return t}},78730:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayUnzip=function(e){const t=new Array(e.length),r=new Array(e.length);for(let n=0;n<e.length;n++)[t[n],r[n]]=e[n];return[t,r]}},2974:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayZip=function(e,t){const r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=[e[n],t[n]];return r}},7965:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assert=i,t.assertReturn=function(e,t){return i(null!=e,t),e},t.assertUnreachable=function(e){throw new Error(`This codepath should be unreachable. Unhandled input: ${e}`)};var n=r(56458);function i(e,t){if(!e)throw new Error((0,n.isFunction)(t)?t():t)}},60409:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._sqrt2pow53n=t._9n=t._8n=t._7n=t._6n=t._5n=t._4n=t._3n=t._2pow53n=t._2n=t._1n=t._1Qn=t._1Mn=t._1Bn=t._10n=t._100n=t._1000n=t._0n=void 0;var n=r(9942);const i=(0,n.BigInt)(0);t._0n=i;const o=(0,n.BigInt)(1);t._1n=o;const a=(0,n.BigInt)(2);t._2n=a;const s=(0,n.BigInt)(3);t._3n=s;const u=(0,n.BigInt)(4);t._4n=u;const c=(0,n.BigInt)(5);t._5n=c;const f=(0,n.BigInt)(6);t._6n=f;const l=(0,n.BigInt)(7);t._7n=l;const d=(0,n.BigInt)(8);t._8n=d;const h=(0,n.BigInt)(9);t._9n=h;const p=(0,n.BigInt)(10);t._10n=p;const b=(0,n.BigInt)(100);t._100n=b;const y=(0,n.BigInt)(1e3);t._1000n=y;const g=(0,n.BigInt)(1e6);t._1Mn=g;const m=(0,n.BigInt)(1e9);t._1Bn=m;const v=m*m;t._1Qn=v;const w=(0,n.BigInt)(Number.MAX_SAFE_INTEGER);t._2pow53n=w;const _=(0,n.BigInt)(94906265);t._sqrt2pow53n=_},55922:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCmp=function(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(0===r.length)throw new Error("Must provide one or more arguments");let i=r[0];for(let t=1;t<r.length;t++)e(r[t],i)&&(i=r[t]);return i}}},65826:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={nSqrt:!0,nToBigInt:!0,nMax:!0,nMin:!0,nToHex:!0,nToU8a:!0};Object.defineProperty(t,"nMax",{enumerable:!0,get:function(){return s.nMax}}),Object.defineProperty(t,"nMin",{enumerable:!0,get:function(){return s.nMin}}),Object.defineProperty(t,"nSqrt",{enumerable:!0,get:function(){return o.nSqrt}}),Object.defineProperty(t,"nToBigInt",{enumerable:!0,get:function(){return a.nToBigInt}}),Object.defineProperty(t,"nToHex",{enumerable:!0,get:function(){return u.nToHex}}),Object.defineProperty(t,"nToU8a",{enumerable:!0,get:function(){return c.nToU8a}});var i=r(60409);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=r(67567),a=r(84044),s=r(97353),u=r(26947),c=r(27991)},97353:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nMin=t.nMax=void 0;var n=r(55922);const i=(0,n.createCmp)(((e,t)=>e>t));t.nMax=i;const o=(0,n.createCmp)(((e,t)=>e<t));t.nMin=o},67567:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nSqrt=function(e){const t=(0,o.nToBigInt)(e);if(t<i._0n)throw new Error("square root of negative numbers is not supported");if(t<=i._2pow53n)return(0,n.BigInt)(~~Math.sqrt(Number(t)));let r=i._sqrt2pow53n;for(;;){const e=t/r+r>>i._1n;if(r===e||r===e-i._1n)return r;r=e}};var n=r(9942),i=r(60409),o=r(84044)},84044:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nToBigInt=function(e){return"bigint"==typeof e?e:e?(0,a.isHex)(e)?(0,i.hexToBigInt)(e.toString()):(0,o.isBn)(e)?(0,n.BigInt)(e.toString()):(0,s.isToBigInt)(e)?e.toBigInt():(0,u.isToBn)(e)?(0,n.BigInt)(e.toBn().toString()):(0,n.BigInt)(e):(0,n.BigInt)(0)};var n=r(9942),i=r(41690),o=r(94765),a=r(22076),s=r(38203),u=r(57670)},26947:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nToHex=function(e){let{bitLength:t,isLe:r=!1,isNegative:o=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.u8aToHex)((0,i.nToU8a)(e||0,{bitLength:t,isLe:r,isNegative:o}))};var n=r(35676),i=r(27991)},27991:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nToU8a=function(e){let{bitLength:t=-1,isLe:r=!0,isNegative:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const u=(0,o.nToBigInt)(e);if(u===i._0n)return-1===t?new Uint8Array(1):new Uint8Array(Math.ceil((t||0)/8));const c=function(e,t,r){const n=[];for(r&&(e=(e+i._1n)*-i._1n);e!==i._0n;){const i=e%a,o=Number(r?i^s:i);t?n.push(o):n.unshift(o),e=(e-i)/a}return Uint8Array.from(n)}(u,r,n);if(-1===t)return c;const f=Math.ceil((t||0)/8),l=new Uint8Array(f);return n&&l.fill(255),l.set(c,r?0:f-c.length),l};var n=r(9942),i=r(60409),o=r(84044);const a=(0,n.BigInt)(256),s=(0,n.BigInt)(255)},79774:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BN",{enumerable:!0,get:function(){return i.default}});var i=n(r(13550))},7023:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BN_ZERO=t.BN_TWO=t.BN_THREE=t.BN_THOUSAND=t.BN_TEN=t.BN_SQRT_MAX_INTEGER=t.BN_SIX=t.BN_SEVEN=t.BN_QUINTILL=t.BN_ONE=t.BN_NINE=t.BN_MILLION=t.BN_MAX_INTEGER=t.BN_HUNDRED=t.BN_FOUR=t.BN_FIVE=t.BN_EIGHT=t.BN_BILLION=void 0;var n=r(79774);const i=new n.BN(0);t.BN_ZERO=i;const o=new n.BN(1);t.BN_ONE=o;const a=new n.BN(2);t.BN_TWO=a;const s=new n.BN(3);t.BN_THREE=s;const u=new n.BN(4);t.BN_FOUR=u;const c=new n.BN(5);t.BN_FIVE=c;const f=new n.BN(6);t.BN_SIX=f;const l=new n.BN(7);t.BN_SEVEN=l;const d=new n.BN(8);t.BN_EIGHT=d;const h=new n.BN(9);t.BN_NINE=h;const p=new n.BN(10);t.BN_TEN=p;const b=new n.BN(100);t.BN_HUNDRED=b;const y=new n.BN(1e3);t.BN_THOUSAND=y;const g=new n.BN(1e6);t.BN_MILLION=g;const m=new n.BN(1e9);t.BN_BILLION=m;const v=m.mul(m);t.BN_QUINTILL=v;const w=new n.BN(Number.MAX_SAFE_INTEGER);t.BN_MAX_INTEGER=w;const _=new n.BN(94906265);t.BN_SQRT_MAX_INTEGER=_},51539:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bnFromHex",{enumerable:!0,get:function(){return n.hexToBn}});var n=r(80397)},75254:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={BN:!0,bnFromHex:!0,bnMax:!0,bnMin:!0,bnSqrt:!0,bnToBn:!0,bnToHex:!0,bnToU8a:!0};Object.defineProperty(t,"BN",{enumerable:!0,get:function(){return o.BN}}),Object.defineProperty(t,"bnFromHex",{enumerable:!0,get:function(){return a.bnFromHex}}),Object.defineProperty(t,"bnMax",{enumerable:!0,get:function(){return s.bnMax}}),Object.defineProperty(t,"bnMin",{enumerable:!0,get:function(){return s.bnMin}}),Object.defineProperty(t,"bnSqrt",{enumerable:!0,get:function(){return u.bnSqrt}}),Object.defineProperty(t,"bnToBn",{enumerable:!0,get:function(){return c.bnToBn}}),Object.defineProperty(t,"bnToHex",{enumerable:!0,get:function(){return f.bnToHex}}),Object.defineProperty(t,"bnToU8a",{enumerable:!0,get:function(){return l.bnToU8a}});var i=r(7023);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=r(79774),a=r(51539),s=r(49709),u=r(40066),c=r(4646),f=r(19155),l=r(67411)},49709:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnMin=t.bnMax=void 0;var n=r(55922);const i=(0,n.createCmp)(((e,t)=>e.gt(t)));t.bnMax=i;const o=(0,n.createCmp)(((e,t)=>e.lt(t)));t.bnMin=o},40066:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnSqrt=function(e){const t=(0,o.bnToBn)(e);if(t.isNeg())throw new Error("square root of negative numbers is not supported");if(t.lte(i.BN_MAX_INTEGER))return new n.BN(~~Math.sqrt(t.toNumber()));let r=i.BN_SQRT_MAX_INTEGER.clone();for(;;){const e=t.div(r).iadd(r).ishrn(1);if(r.eq(e)||r.eq(e.sub(i.BN_ONE)))return r;r=e}};var n=r(79774),i=r(7023),o=r(4646)},4646:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnToBn=function(e){return e?u.BN.isBN(e)?e:(0,o.isHex)(e)?(0,n.hexToBn)(e.toString()):(0,i.isBigInt)(e)?new u.BN(e.toString()):(0,s.isToBn)(e)?e.toBn():(0,a.isToBigInt)(e)?new u.BN(e.toBigInt().toString()):new u.BN(e):new u.BN(0)};var n=r(80397),i=r(11619),o=r(22076),a=r(38203),s=r(57670),u=r(79774)},19155:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnToHex=function(e){let{bitLength:t=-1,isLe:r=!1,isNegative:o=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.u8aToHex)((0,i.bnToU8a)(e,{bitLength:t,isLe:r,isNegative:o}))};var n=r(35676),i=r(67411)},67411:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnToU8a=function(e){let{bitLength:t=-1,isLe:r=!0,isNegative:o=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;const a=(0,n.bnToBn)(e),s=-1===t?Math.ceil(a.bitLength()/8):Math.ceil((t||0)/8);if(!e)return-1===t?new Uint8Array(1):new Uint8Array(s);const u=new Uint8Array(s),c=o?a.toTwos(8*s):a;return u.set(c.toArray(r?"le":"be",s),0),u};var n=r(4646);const i={bitLength:-1,isLe:!0,isNegative:!1}},50049:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bufferToU8a",{enumerable:!0,get:function(){return n.bufferToU8a}});var n=r(82587)},82587:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bufferToU8a=function(e){return new Uint8Array(e||[])}},21297:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={packageInfo:!0};Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return i.packageInfo}});var i=r(3426),o=r(46678);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=r(7965);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var s=r(65826);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var u=r(75254);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var c=r(50049);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var f=r(72965);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))}));var l=r(18294);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var d=r(34519);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var h=r(63614);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))}));var p=r(90216);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===p[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}}))}));var b=r(65938);Object.keys(b).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===b[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return b[e]}}))}));var y=r(32273);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===y[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return y[e]}}))}));var g=r(42310);Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===g[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return g[e]}}))}));var m=r(52185);Object.keys(m).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===m[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return m[e]}}))}));var v=r(45936);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===v[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return v[e]}}))}));var w=r(48063);Object.keys(w).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===w[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return w[e]}}))}));var _=r(51190);Object.keys(_).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===_[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return _[e]}}))}));var x=r(33900);Object.keys(x).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===x[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return x[e]}}))}));var O=r(58776);Object.keys(O).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===O[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return O[e]}}))}));var k=r(23620);Object.keys(k).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===k[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return k[e]}}))}));var P=r(27613);Object.keys(P).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===P[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return P[e]}}))}));var S=r(35676);Object.keys(S).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===S[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return S[e]}}))}));var A=r(96405);Object.keys(A).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===A[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return A[e]}}))}))},23593:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactAddLength=function(e){return(0,n.u8aConcatStrict)([(0,i.compactToU8a)(e.length),e])};var n=r(35676),i=r(60011)},25551:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactFromU8a=function(e){const t=(0,i.u8aToU8a)(e);switch(3&t[0]){case 0:return[1,new n.BN(t[0]>>>2)];case 1:return[2,new n.BN(t[0]+(t[1]<<8)>>>2)];case 2:return[4,new n.BN(t[0]+(t[1]<<8)+(t[2]<<16)+16777216*t[3]>>>2)];default:{const e=5+(t[0]>>>2);switch(e){case 5:return[5,new n.BN(t[1]+(t[2]<<8)+(t[3]<<16)+16777216*t[4])];case 6:return[6,new n.BN(t[1]+(t[2]<<8)+(t[3]<<16)+16777216*(t[4]+(t[5]<<8)))];case 7:return[7,new n.BN(t[1]+(t[2]<<8)+(t[3]<<16)+16777216*(t[4]+(t[5]<<8)+(t[6]<<16)))];default:return[e,(0,i.u8aToBn)(t.subarray(1,e))]}}}},t.compactFromU8aLim=function(e){switch(3&e[0]){case 0:return[1,e[0]>>>2];case 1:return[2,e[0]+(e[1]<<8)>>>2];case 2:return[4,e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]>>>2];default:switch(5+(e[0]>>>2)){case 5:return[5,e[1]+(e[2]<<8)+(e[3]<<16)+16777216*e[4]];case 6:return[6,e[1]+(e[2]<<8)+(e[3]<<16)+16777216*(e[4]+(e[5]<<8))];case 7:return[7,e[1]+(e[2]<<8)+(e[3]<<16)+16777216*(e[4]+(e[5]<<8)+(e[6]<<16))];default:throw new Error("Compact input is > Number.MAX_SAFE_INTEGER")}}};var n=r(75254),i=r(35676)},72965:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"compactAddLength",{enumerable:!0,get:function(){return n.compactAddLength}}),Object.defineProperty(t,"compactFromU8a",{enumerable:!0,get:function(){return o.compactFromU8a}}),Object.defineProperty(t,"compactFromU8aLim",{enumerable:!0,get:function(){return o.compactFromU8aLim}}),Object.defineProperty(t,"compactStripLength",{enumerable:!0,get:function(){return i.compactStripLength}}),Object.defineProperty(t,"compactToU8a",{enumerable:!0,get:function(){return a.compactToU8a}});var n=r(23593),i=r(27400),o=r(25551),a=r(60011)},27400:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactStripLength=function(e){const[t,r]=(0,n.compactFromU8a)(e),i=t+r.toNumber();return[i,e.subarray(t,i)]};var n=r(25551)},60011:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactToU8a=function(e){const t=(0,n.bnToBn)(e);if(t.lte(o))return new Uint8Array([t.toNumber()<<2]);if(t.lte(a))return(0,n.bnToU8a)(t.shln(2).iadd(n.BN_ONE),u);if(t.lte(s))return(0,n.bnToU8a)(t.shln(2).iadd(n.BN_TWO),c);const r=(0,n.bnToU8a)(t);let f=r.length;for(;0===r[f-1];)f--;if(f<4)throw new Error("Invalid length, previous checks match anything less than 2^30");return(0,i.u8aConcatStrict)([new Uint8Array([3+(f-4<<2)]),r.subarray(0,f)])};var n=r(75254),i=r(35676);const o=n.BN_TWO.pow(new n.BN(6)).isub(n.BN_ONE),a=n.BN_TWO.pow(new n.BN(14)).isub(n.BN_ONE),s=n.BN_TWO.pow(new n.BN(30)).isub(n.BN_ONE),u={bitLength:16},c={bitLength:32}},20418:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(85821),i=r(13336),o=[n.packageInfo,i.packageInfo];t.default=o},13115:(e,t,r)=>{"use strict";var n=r(64836)(r(20418)),i=r(3426);(0,r(96405).detectPackage)(i.packageInfo,null,n.default)},18294:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extractTime=function e(t){return t?t<1e3?a({milliseconds:t},o):function(t){const o=t/1e3;if(o<60){const r=~~o;return a({seconds:r},e(t-1e3*r))}const s=o/60;if(s<60){const n=~~s;return a({minutes:n},e(t-n*r))}const u=s/60;if(u<24){const r=~~u;return a({hours:r},e(t-r*n))}const c=~~(u/24);return a({days:c},e(t-c*i))}(t):o};const r=6e4,n=60*r,i=24*n,o={days:0,hours:0,milliseconds:0,minutes:0,seconds:0};function a(e,t){return{days:(e.days||0)+t.days,hours:(e.hours||0)+t.hours,milliseconds:(e.milliseconds||0)+t.milliseconds,minutes:(e.minutes||0)+t.minutes,seconds:(e.seconds||0)+t.seconds}}},34519:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"floatToU8a",{enumerable:!0,get:function(){return n.floatToU8a}});var n=r(65180)},65180:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.floatToU8a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,{bitLength:t=32,isLe:r=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(32!==t&&64!==t)throw new Error("Invalid bitLength provided, expected 32 or 64");const n=new Uint8Array(t/8),i=new DataView(n.buffer,n.byteOffset);return 32===t?i.setFloat32(0,Number(e),r):i.setFloat64(0,Number(e),r),n}},99720:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatBalance=void 0;var n=r(4646),i=r(96779),o=r(36315),a=r(95455),s=r(62839);const u=s.SI[s.SI_MID].text;let c=0,f=u;const l=function(e){let{decimals:t=c,forceUnit:r,withAll:u=!1,withSi:f=!0,withSiFull:l=!1,withUnit:d=!0,withZero:h=!0,locale:p="en"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},b=(0,n.bnToBn)(e).toString();if(0===b.length||"0"===b)return"0";let y="";b[0].startsWith("-")&&(y="-",b=b.substring(1));const g=(0,s.calcSi)(b,t,r),m=b.length-(t+g.power),v=m<=0?"0":b.substring(0,m);let w=b.padStart(m<0?t:1,"0").substring(m<0?0:m).padEnd(u?Math.max(t,4):4,"0").substring(0,u?Math.max(4,t+g.power):4);if(!h){let e=w.length-1;do{"0"===w[e]&&e--}while("0"===w[e]);w=w.substring(0,e+1)}const _=(0,i.isBoolean)(d)?s.SI[s.SI_MID].text:d,x=f||l?"-"===g.value?d?` ${_}`:"":` ${l?`${g.text}${d?" ":""}`:g.value}${d?_:""}`:"",{decimal:O,thousand:k}=(0,a.getSeparator)(p);return`${y}${(0,o.formatDecimal)(v,k)}${w&&`${O}${w}`}${x}`};t.formatBalance=l,l.calcSi=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;return(0,s.calcSi)(e,t)},l.findSi=s.findSi,l.getDefaults=()=>({decimals:c,unit:f}),l.getOptions=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return s.SI.filter((t=>{let{power:r}=t;return!(r<0)||e+r>=0}))},l.setDefaults=e=>{let{decimals:t,unit:r}=e;c=void 0===t?c:Array.isArray(t)?t[0]:t,f=void 0===r?f:Array.isArray(r)?r[0]:r,s.SI[s.SI_MID].text=f}},24689:(e,t)=>{"use strict";function r(e){return e.toString().padStart(2,"0")}Object.defineProperty(t,"__esModule",{value:!0}),t.formatDate=function(e){return`${e.getFullYear().toString()}-${r(e.getMonth()+1)}-${r(e.getDate())} ${r(e.getHours())}:${r(e.getMinutes())}:${r(e.getSeconds())}`}},36315:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatDecimal=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";const n=e[0].startsWith("-"),i=n?e.substring(1).match(r):e.match(r);return i?`${n?"-":""}${i.join(t)}`:e};const r=new RegExp("(\\d+?)(?=(\\d{3})+(?!\\d)|$)","g")},57897:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatElapsed=function(e,t){const r=e&&e.getTime()||0,i=t instanceof Date?t.getTime():(0,n.bnToBn)(t).toNumber();return r&&i?(o=Math.max(Math.abs(r-i),0)/1e3)<15?`${o.toFixed(1)}s`:o<60?(0|o)+"s":o<3600?(o/60|0)+"m":(o/3600|0)+"h":"0.0s";var o};var n=r(4646)},11881:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatNumber=function(e){let{locale:t="en"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{thousand:r}=(0,o.getSeparator)(t);return(0,i.formatDecimal)((0,n.bnToBn)(e).toString(),r)};var n=r(4646),i=r(36315),o=r(95455)},95455:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSeparator=function(e){return{decimal:.1.toLocaleString(e).substring(1,2),thousand:1e3.toLocaleString(e).substring(1,2)}}},63614:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"calcSi",{enumerable:!0,get:function(){return u.calcSi}}),Object.defineProperty(t,"findSi",{enumerable:!0,get:function(){return u.findSi}}),Object.defineProperty(t,"formatBalance",{enumerable:!0,get:function(){return n.formatBalance}}),Object.defineProperty(t,"formatDate",{enumerable:!0,get:function(){return i.formatDate}}),Object.defineProperty(t,"formatDecimal",{enumerable:!0,get:function(){return o.formatDecimal}}),Object.defineProperty(t,"formatElapsed",{enumerable:!0,get:function(){return a.formatElapsed}}),Object.defineProperty(t,"formatNumber",{enumerable:!0,get:function(){return s.formatNumber}});var n=r(99720),i=r(24689),o=r(36315),a=r(57897),s=r(11881),u=r(62839)},62839:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SI_MID=t.SI=void 0,t.calcSi=function(e,t,o){if(o)return i(o);const a=r-1+Math.ceil((e.length-t)/3);return n[a]||n[a<0?0:n.length-1]},t.findSi=i;const r=8;t.SI_MID=r;const n=[{power:-24,text:"yocto",value:"y"},{power:-21,text:"zepto",value:"z"},{power:-18,text:"atto",value:"a"},{power:-15,text:"femto",value:"f"},{power:-12,text:"pico",value:"p"},{power:-9,text:"nano",value:"n"},{power:-6,text:"micro",value:"µ"},{power:-3,text:"milli",value:"m"},{power:0,text:"Unit",value:"-"},{power:3,text:"Kilo",value:"k"},{power:6,text:"Mill",value:"M"},{power:9,text:"Bill",value:"B"},{power:12,text:"Tril",value:"T"},{power:15,text:"Peta",value:"P"},{power:18,text:"Exa",value:"E"},{power:21,text:"Zeta",value:"Z"},{power:24,text:"Yotta",value:"Y"}];function i(e){for(let t=0;t<n.length;t++)if(n[t].value===e)return n[t];return n[r]}t.SI=n},90216:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasWasm=t.hasProcess=t.hasEsm=t.hasDirname=t.hasCjs=t.hasBuffer=t.hasBigInt=void 0;var n=r(9942),i=r(24166);const o="function"==typeof n.BigInt&&"function"==typeof n.BigInt.asIntN;t.hasBigInt=o,t.hasCjs=!0,t.hasDirname=!0,t.hasEsm=!1;const a="undefined"!=typeof WebAssembly;t.hasWasm=a;const s="function"==typeof i.xglobal.Buffer&&"function"==typeof i.xglobal.Buffer.isBuffer;t.hasBuffer=s;const u="object"==typeof i.xglobal.process;t.hasProcess=u},28274:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexAddPrefix=function(e){return e&&(0,n.hexHasPrefix)(e)?e:`0x${e&&e.length%2==1?"0":""}${e||""}`};var n=r(42118)},98605:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexFixLength=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=Math.ceil(t/4),a=o+2;return(0,n.hexAddPrefix)(-1===t||e.length===a||!r&&e.length<a?(0,i.hexStripPrefix)(e):e.length>a?(0,i.hexStripPrefix)(e).slice(-1*o):`${"0".repeat(o)}${(0,i.hexStripPrefix)(e)}`.slice(-1*o))};var n=r(28274),i=r(38111)},42118:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexHasPrefix=function(e){return!!e&&(0,n.isHex)(e,-1)};var n=r(22076)},65938:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hexAddPrefix",{enumerable:!0,get:function(){return n.hexAddPrefix}}),Object.defineProperty(t,"hexFixLength",{enumerable:!0,get:function(){return i.hexFixLength}}),Object.defineProperty(t,"hexHasPrefix",{enumerable:!0,get:function(){return o.hexHasPrefix}}),Object.defineProperty(t,"hexStripPrefix",{enumerable:!0,get:function(){return a.hexStripPrefix}}),Object.defineProperty(t,"hexToBigInt",{enumerable:!0,get:function(){return s.hexToBigInt}}),Object.defineProperty(t,"hexToBn",{enumerable:!0,get:function(){return u.hexToBn}}),Object.defineProperty(t,"hexToNumber",{enumerable:!0,get:function(){return c.hexToNumber}}),Object.defineProperty(t,"hexToString",{enumerable:!0,get:function(){return f.hexToString}}),Object.defineProperty(t,"hexToU8a",{enumerable:!0,get:function(){return l.hexToU8a}});var n=r(28274),i=r(98605),o=r(42118),a=r(38111),s=r(41690),u=r(80397),c=r(19348),f=r(90036),l=r(5590)},38111:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexStripPrefix=function(e){if(!e||"0x"===e)return"";if(n.REGEX_HEX_PREFIXED.test(e))return e.substring(2);if(n.REGEX_HEX_NOPREFIX.test(e))return e;throw new Error(`Expected hex value to convert, found '${e}'`)};var n=r(22076)},41690:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToBigInt=function(e){let{isLe:t=!1,isNegative:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e&&"0x"!==e?(0,i.u8aToBigInt)((0,o.hexToU8a)(e),{isLe:t,isNegative:r}):(0,n.BigInt)(0)};var n=r(9942),i=r(90133),o=r(5590)},80397:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToBn=function(e){let{isLe:t=!1,isNegative:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||"0x"===e)return new n.BN(0);const o=(0,i.hexStripPrefix)(e),a=new n.BN(o,16,t?"le":"be");return r?a.fromTwos(4*o.length):a};var n=r(79774),i=r(38111)},19348:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToNumber=function(e){return e?(0,n.hexToBn)(e).toNumber():NaN};var n=r(80397)},90036:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToString=function(e){return(0,n.u8aToString)((0,i.hexToU8a)(e))};var n=r(49951),i=r(5590)},5590:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToU8a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(!e)return new Uint8Array;let r=e.startsWith("0x")?2:0;const n=Math.ceil((e.length-r)/2),o=Math.ceil(-1===t?n:t/8),a=new Uint8Array(o);for(let t=o>n?o-n:0;t<o;t++,r+=2)a[t]=i[e.charCodeAt(r)<<8|e.charCodeAt(r+1)];return a};const r="0123456789abcdef",n=new Uint8Array(256),i=new Uint8Array(65536);for(let e=0;e<16;e++)n[0|r[e].charCodeAt(0)]=0|e,e>9&&(n[0|r[e].toUpperCase().charCodeAt(0)]=0|e);for(let e=0;e<256;e++){const t=e<<8;for(let r=0;r<256;r++)i[t|r]=n[e]<<4|n[r]}},57026:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(13115);var n=r(21297);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}))},73544:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isArray=function(e){return Array.isArray(e)}},17084:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAscii=function(e){return(0,o.isString)(e)?(0,i.isHex)(e)?a((0,n.u8aToU8a)(e)):function(e){const t=0|e.length;for(let r=0;r<t;r++){const t=e.charCodeAt(r);if(t<32||t>126)return!1}return!0}(e):!!e&&a(e)};var n=r(84574),i=r(22076),o=r(70807);function a(e){const t=0|e.length;for(let r=0;r<t;r++){const t=0|e[r];if(t<32||t>126)return!1}return!0}},11619:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBigInt=function(e){return"bigint"==typeof e}},94765:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBn=function(e){return n.BN.isBN(e)};var n=r(79774)},96779:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBoolean=function(e){return"boolean"==typeof e}},58669:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBuffer=function(e){return i.hasBuffer&&(0,o.isFunction)(e&&e.readDoubleLE)&&n.xglobal.Buffer.isBuffer(e)};var n=r(24166),i=r(90216),o=r(56458)},95174:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isChildClass=function(e,t){return!(!(0,n.isClass)(t)||!(0,n.isClass)(e))&&(e===t||e.isPrototypeOf(t))};var n=r(31416)},31416:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isClass=void 0;const n=(0,r(7906).isOnFunction)("isPrototypeOf","hasOwnProperty");t.isClass=n},19815:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isCodec=function(e){return i(e)&&o(e.registry)};var n=r(7906);const i=(0,n.isOnObject)("toHex","toU8a"),o=(0,n.isOnObject)("get")},3259:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isCompact=void 0;const n=(0,r(7906).isOnObject)("toBigInt","toBn","toNumber","unwrap");t.isCompact=n},37282:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isError=function(e){return(e&&e.constructor)===Error||e instanceof Error}},56458:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFunction=function(e){return"function"==typeof e}},7906:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isOn=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return e=>((0,i.isObject)(e)||(0,n.isFunction)(e))&&t.every((t=>(0,n.isFunction)(e[t])))},t.isOnFunction=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return e=>(0,n.isFunction)(e)&&t.every((t=>(0,n.isFunction)(e[t])))},t.isOnObject=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return e=>(0,i.isObject)(e)&&t.every((t=>(0,n.isFunction)(e[t])))};var n=r(56458),i=r(8274)},22076:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.REGEX_HEX_PREFIXED=t.REGEX_HEX_NOPREFIX=void 0,t.isHex=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=arguments.length>2?arguments[2]:void 0;return"string"==typeof e&&("0x"===e||r.test(e))&&(-1===t?n||e.length%2==0:e.length===2+Math.ceil(t/4))};const r=/^0x[\da-fA-F]+$/;t.REGEX_HEX_PREFIXED=r,t.REGEX_HEX_NOPREFIX=/^[\da-fA-F]+$/},32273:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isArray",{enumerable:!0,get:function(){return n.isArray}}),Object.defineProperty(t,"isAscii",{enumerable:!0,get:function(){return i.isAscii}}),Object.defineProperty(t,"isBigInt",{enumerable:!0,get:function(){return o.isBigInt}}),Object.defineProperty(t,"isBn",{enumerable:!0,get:function(){return a.isBn}}),Object.defineProperty(t,"isBoolean",{enumerable:!0,get:function(){return u.isBoolean}}),Object.defineProperty(t,"isBuffer",{enumerable:!0,get:function(){return s.isBuffer}}),Object.defineProperty(t,"isChildClass",{enumerable:!0,get:function(){return c.isChildClass}}),Object.defineProperty(t,"isClass",{enumerable:!0,get:function(){return f.isClass}}),Object.defineProperty(t,"isCodec",{enumerable:!0,get:function(){return l.isCodec}}),Object.defineProperty(t,"isCompact",{enumerable:!0,get:function(){return d.isCompact}}),Object.defineProperty(t,"isError",{enumerable:!0,get:function(){return h.isError}}),Object.defineProperty(t,"isFunction",{enumerable:!0,get:function(){return p.isFunction}}),Object.defineProperty(t,"isHex",{enumerable:!0,get:function(){return b.isHex}}),Object.defineProperty(t,"isInstanceOf",{enumerable:!0,get:function(){return y.isInstanceOf}}),Object.defineProperty(t,"isIp",{enumerable:!0,get:function(){return g.isIp}}),Object.defineProperty(t,"isJsonObject",{enumerable:!0,get:function(){return m.isJsonObject}}),Object.defineProperty(t,"isNull",{enumerable:!0,get:function(){return v.isNull}}),Object.defineProperty(t,"isNumber",{enumerable:!0,get:function(){return w.isNumber}}),Object.defineProperty(t,"isObject",{enumerable:!0,get:function(){return _.isObject}}),Object.defineProperty(t,"isObservable",{enumerable:!0,get:function(){return x.isObservable}}),Object.defineProperty(t,"isPromise",{enumerable:!0,get:function(){return O.isPromise}}),Object.defineProperty(t,"isString",{enumerable:!0,get:function(){return k.isString}}),Object.defineProperty(t,"isTestChain",{enumerable:!0,get:function(){return P.isTestChain}}),Object.defineProperty(t,"isToBigInt",{enumerable:!0,get:function(){return S.isToBigInt}}),Object.defineProperty(t,"isToBn",{enumerable:!0,get:function(){return A.isToBn}}),Object.defineProperty(t,"isU8a",{enumerable:!0,get:function(){return E.isU8a}}),Object.defineProperty(t,"isUndefined",{enumerable:!0,get:function(){return M.isUndefined}}),Object.defineProperty(t,"isUtf8",{enumerable:!0,get:function(){return j.isUtf8}}),Object.defineProperty(t,"isWasm",{enumerable:!0,get:function(){return T.isWasm}});var n=r(73544),i=r(17084),o=r(11619),a=r(94765),s=r(58669),u=r(96779),c=r(95174),f=r(31416),l=r(19815),d=r(3259),h=r(37282),p=r(56458),b=r(22076),y=r(907),g=r(98658),m=r(93184),v=r(69185),w=r(67229),_=r(8274),x=r(49825),O=r(75386),k=r(70807),P=r(11236),S=r(38203),A=r(57670),E=r(59114),M=r(46298),j=r(59962),T=r(24899)},907:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInstanceOf=function(e,t){return(e&&e.constructor)===t||e instanceof t}},98658:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIp=function(e,t){switch(t){case"v4":return a.test(e);case"v6":return s.test(e);default:return o.test(e)}};const r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",i=`\n(?:\n(?:${n}:){7}(?:${n}|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:${n}:){6}(?:${r}|:${n}|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:${n}:){5}(?::${r}|(?::${n}){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:${n}:){4}(?:(?::${n}){0,1}:${r}|(?::${n}){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:${n}:){3}(?:(?::${n}){0,2}:${r}|(?::${n}){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:${n}:){2}(?:(?::${n}){0,3}:${r}|(?::${n}){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:${n}:){1}(?:(?::${n}){0,4}:${r}|(?::${n}){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::${n}){0,5}:${r}|(?::${n}){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n`.replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),o=new RegExp(`(?:^${r}$)|(?:^${i}$)`),a=new RegExp(`^${r}$`),s=new RegExp(`^${i}$`)},93184:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isJsonObject=function(e){const t="string"!=typeof e?(0,n.stringify)(e):e;try{const e=JSON.parse(t);return"object"==typeof e&&null!==e}catch(e){return!1}};var n=r(27613)},69185:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNull=function(e){return null===e}},67229:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNumber=function(e){return"number"==typeof e}},8274:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObject=function(e){return!!e&&"object"==typeof e}},49825:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObservable=void 0;const n=(0,r(7906).isOn)("next");t.isObservable=n},75386:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPromise=void 0;const n=(0,r(7906).isOnObject)("catch","then");t.isPromise=n},70807:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isString=function(e){return"string"==typeof e||e instanceof String}},11236:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isTestChain=function(e){return!!e&&!!r.test(e.toString())};const r=/(Development|Local Testnet)$/},38203:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isToBigInt=void 0;const n=(0,r(7906).isOn)("toBigInt");t.isToBigInt=n},57670:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isToBn=void 0;const n=(0,r(7906).isOn)("toBn");t.isToBn=n},59114:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isU8a=function(e){return(e&&e.constructor)===Uint8Array||e instanceof Uint8Array}},46298:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isUndefined=function(e){return void 0===e}},59962:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isUtf8=function(e){if(!e)return(0,i.isString)(e);const t=(0,n.u8aToU8a)(e),r=t.length;let o=0;for(;o<r;)if(t[o]<=127)o+=1;else if(t[o]>=194&&t[o]<=223){if(!(o+1<r))return!1;if(t[o+1]<128||t[o+1]>191)return!1;o+=2}else if(224===t[o]){if(!(o+2<r))return!1;if(t[o+1]<160||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;o+=3}else if(t[o]>=225&&t[o]<=236){if(!(o+2<r))return!1;if(t[o+1]<128||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;o+=3}else if(237===t[o]){if(!(o+2<r))return!1;if(t[o+1]<128||t[o+1]>159)return!1;if(t[o+2]<128||t[o+2]>191)return!1;o+=3}else if(t[o]>=238&&t[o]<=239){if(!(o+2<r))return!1;if(t[o+1]<128||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;o+=3}else if(240===t[o]){if(!(o+3<r))return!1;if(t[o+1]<144||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;if(t[o+3]<128||t[o+3]>191)return!1;o+=4}else if(t[o]>=241&&t[o]<=243){if(!(o+3<r))return!1;if(t[o+1]<128||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;if(t[o+3]<128||t[o+3]>191)return!1;o+=4}else{if(244!==t[o])return!1;if(!(o+3<r))return!1;if(t[o+1]<128||t[o+1]>143)return!1;if(t[o+2]<128||t[o+2]>191)return!1;if(t[o+3]<128||t[o+3]>191)return!1;o+=4}return!0};var n=r(84574),i=r(70807)},24899:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isWasm=function(e){return(0,i.isU8a)(e)&&(0,n.u8aEq)(e.subarray(0,4),o)};var n=r(42680),i=r(59114);const o=new Uint8Array([0,97,115,109])},42310:(e,t)=>{"use strict";function r(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;const o=n?n(t,i):t.toString();let a;Object.defineProperty(e,o,{configurable:!0,enumerable:!0,get:function(){if(void 0===a){a=r(t,i,this);try{Object.defineProperty(this,o,{value:a})}catch(e){}}return a}})}Object.defineProperty(t,"__esModule",{value:!0}),t.lazyMethod=r,t.lazyMethods=function(e,t,n,i){for(let o=0;o<t.length;o++)r(e,t[o],n,i,o);return e}},52185:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.logger=function(e){const t=`${e.toUpperCase()}:`.padStart(16),[r,i]=function(e){const t=(d.hasProcess?n.xglobal.process:{}).env||{},r=parseInt(t.DEBUG_MAX||"-1",10);return[v((t.DEBUG||"").toLowerCase().split(","),e),isNaN(r)?-1:r]}(e.toLowerCase());return{debug:r?function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return b("debug",t,r,i)}:y,error:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return b("error",t,r)},log:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return b("log",t,r)},noop:y,warn:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return b("warn",t,r)}}},t.loggerFormat=p;var n=r(24166),i=r(24689),o=r(94765),a=r(58669),s=r(56458),u=r(8274),c=r(59114),f=r(37556),l=r(84574),d=r(90216);const h={debug:"log",error:"error",log:"log",warn:"warn"};function p(e){return Array.isArray(e)?e.map(p):(0,o.isBn)(e)?e.toString():(0,c.isU8a)(e)||(0,a.isBuffer)(e)?(0,f.u8aToHex)((0,l.u8aToU8a)(e)):function(e){if(e&&(0,u.isObject)(e)&&e.constructor===Object){const t={};for(const r of Object.keys(e))t[r]=p(e[r]);return t}return e}(e)}function b(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1;if(1===r.length&&(0,s.isFunction)(r[0])){const i=r[0]();return b(e,t,Array.isArray(i)?i:[i],n)}var o;console[h[e]]((0,i.formatDate)(new Date),t,...r.map(p).map((o=n,e=>{if(o<=0)return e;const t=`${e}`;return t.length<o?e:`${t.substring(0,o)} ...`})))}function y(){}function g(e,t){return!!e&&("*"===e||t===e||e.endsWith("*")&&t.startsWith(e.slice(0,-1)))}function m(e,t){return!!e&&e.startsWith("-")&&(t===e.slice(1)||e.endsWith("*")&&t.startsWith(e.slice(1,-1)))}function v(e,t){let r=!1;for(const n of e)g(n,t)?r=!0:m(n,t)&&(r=!1);return r}},45936:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.memoize=function(e){let{getInstanceId:t=i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r={},o=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];const s=(0,n.stringify)(o),u=t();return r[u]||(r[u]={}),void 0===r[u][s]&&(r[u][s]=e(...o)),r[u][s]};return o.unmemoize=function(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];const a=(0,n.stringify)(i),s=t();r[s]&&void 0!==r[s][a]&&delete r[s][a]},o};var n=r(27613);function i(){return"none"}},48063:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nextTick=function(e,t){setTimeout((()=>{Promise.resolve().then((()=>{e()})).catch((e=>{t?t(e):console.error(e)}))}),0)}},51190:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"numberToHex",{enumerable:!0,get:function(){return n.numberToHex}}),Object.defineProperty(t,"numberToU8a",{enumerable:!0,get:function(){return i.numberToU8a}});var n=r(59868),i=r(34144)},59868:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numberToHex=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;const r=(!e||Number.isNaN(e)?0:e).toString(16);return(0,n.hexFixLength)(r.length%2?`0${r}`:r,t,!0)};var n=r(98605)},34144:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numberToU8a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return(0,n.hexToU8a)((0,i.numberToHex)(e,t))};var n=r(5590),i=r(59868)},82945:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectClear=function(e){const t=Object.keys(e);for(let r=0;r<t.length;r++)delete e[t[r]];return e}},46741:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectCopy=function(e){return(0,n.objectSpread)({},e)};var n=r(66974)},70106:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectEntries=function(e){return Object.entries(e)}},33900:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"objectClear",{enumerable:!0,get:function(){return n.objectClear}}),Object.defineProperty(t,"objectCopy",{enumerable:!0,get:function(){return i.objectCopy}}),Object.defineProperty(t,"objectEntries",{enumerable:!0,get:function(){return o.objectEntries}}),Object.defineProperty(t,"objectKeys",{enumerable:!0,get:function(){return a.objectKeys}}),Object.defineProperty(t,"objectProperties",{enumerable:!0,get:function(){return s.objectProperties}}),Object.defineProperty(t,"objectProperty",{enumerable:!0,get:function(){return s.objectProperty}}),Object.defineProperty(t,"objectSpread",{enumerable:!0,get:function(){return u.objectSpread}}),Object.defineProperty(t,"objectValues",{enumerable:!0,get:function(){return c.objectValues}});var n=r(82945),i=r(46741),o=r(70106),a=r(59019),s=r(83782),u=r(66974),c=r(66158)},59019:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectKeys=function(e){return Object.keys(e)}},83782:(e,t)=>{"use strict";function r(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;const o=n?n(t,i):t;o in e||Object.defineProperty(e,o,{enumerable:!0,get:function(){return r(t,i,this)}})}Object.defineProperty(t,"__esModule",{value:!0}),t.objectProperties=function(e,t,n,i){for(let o=0;o<t.length;o++)r(e,t[o],n,i,o)},t.objectProperty=r},66974:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectSpread=function(e){for(let t=0;t<(arguments.length<=1?0:arguments.length-1);t++){const r=t+1<1||arguments.length<=t+1?void 0:arguments[t+1];if(r)if("function"==typeof r.entries)for(const[t,n]of r.entries())e[t]=n;else Object.assign(e,r)}return e}},66158:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectValues=function(e){return Object.values(e)}},3426:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/util",path:"/",type:"cjs",version:"10.4.1"}},58776:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.promisify=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return new Promise(((r,i)=>{t.apply(e,n.concat(((e,t)=>{e?i(e):r(t)})))}))}},2160:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringPascalCase=t.stringCamelCase=t.CC_TO_UP=t.CC_TO_LO=void 0;const r=new Array(256);t.CC_TO_UP=r;const n=new Array(256);t.CC_TO_LO=n;for(let e=0;e<r.length;e++)n[e]=String.fromCharCode(e).toLowerCase(),r[e]=String.fromCharCode(e).toUpperCase();function i(e){return e.slice(0,e.length-1).toLowerCase()+r[e.charCodeAt(e.length-1)]}function o(e){return t=>{const r=t.replace(/[-_., ]+/g," ").trim().split(" "),n=r.length;let o="";for(let t=0;t<n;t++){const n=r[t];o+=e(/^[\dA-Z]+$/.test(n)?n.toLowerCase():n.replace(/^[\dA-Z]{2,}[^a-z]/,i),t)}return o}}const a=o(((e,t)=>(t?r[e.charCodeAt(0)]:n[e.charCodeAt(0)])+e.slice(1)));t.stringCamelCase=a;const s=o((e=>r[e.charCodeAt(0)]+e.slice(1)));t.stringPascalCase=s},23620:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"stringCamelCase",{enumerable:!0,get:function(){return n.stringCamelCase}}),Object.defineProperty(t,"stringLowerFirst",{enumerable:!0,get:function(){return i.stringLowerFirst}}),Object.defineProperty(t,"stringPascalCase",{enumerable:!0,get:function(){return n.stringPascalCase}}),Object.defineProperty(t,"stringShorten",{enumerable:!0,get:function(){return o.stringShorten}}),Object.defineProperty(t,"stringToHex",{enumerable:!0,get:function(){return a.stringToHex}}),Object.defineProperty(t,"stringToU8a",{enumerable:!0,get:function(){return s.stringToU8a}}),Object.defineProperty(t,"stringUpperFirst",{enumerable:!0,get:function(){return i.stringUpperFirst}});var n=r(2160),i=r(97020),o=r(1798),a=r(98686),s=r(85917)},97020:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringUpperFirst=t.stringLowerFirst=void 0;var n=r(2160);function i(e){return t=>t?e[t.charCodeAt(0)]+t.slice(1):""}const o=i(n.CC_TO_LO);t.stringLowerFirst=o;const a=i(n.CC_TO_UP);t.stringUpperFirst=a},1798:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringShorten=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return e.length<=2+2*t?e.toString():`${e.substring(0,t)}…${e.slice(-t)}`}},98686:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringToHex=function(e){return(0,n.u8aToHex)((0,i.stringToU8a)(e))};var n=r(37556),i=r(85917)},85917:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringToU8a=function(e){return e?n.encode(e.toString()):new Uint8Array};const n=new(r(13336).TextEncoder)},27613:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=function(e,t){return JSON.stringify(e,i,t)};var n=r(11619);function i(e,t){return(0,n.isBigInt)(t)?t.toString():t}},33249:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aCmp=function(e,t){const r=(0,n.u8aToU8a)(e),i=(0,n.u8aToU8a)(t);let o=0;for(;;){const e=o>=r.length,t=o>=i.length;if(e&&t)return 0;if(e)return-1;if(t)return 1;if(r[o]!==i[o])return r[o]>i[o]?1:-1;o++}};var n=r(84574)},51502:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aConcat=function(){const e=new Array(arguments.length);let t=0;for(let r=0;r<arguments.length;r++)e[r]=(0,n.u8aToU8a)(r<0||arguments.length<=r?void 0:arguments[r]),t+=e[r].length;return i(e,t)},t.u8aConcatStrict=i;var n=r(84574);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=0;if(!t)for(let r=0;r<e.length;r++)t+=e[r].length;const n=new Uint8Array(t);for(let t=0;t<e.length;t++)n.set(e[t],r),r+=e[t].length;return n}},49642:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aEmpty=function(e){const t=0|e.length;for(let r=0;r<t;r++)if(0|e[r])return!1;return!0}},42680:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aEq=function(e,t){const r=(0,n.u8aToU8a)(e),i=(0,n.u8aToU8a)(t);if(r.length===i.length){const e=new DataView(r.buffer,r.byteOffset),t=new DataView(i.buffer,i.byteOffset),n=r.length%4|0,o=r.length-n|0;for(let r=0;r<o;r+=4)if(e.getUint32(r)!==t.getUint32(r))return!1;for(let e=o;e<r.length;e++)if(r[e]!==i[e])return!1;return!0}return!1};var n=r(84574)},84810:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aFixLength=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n=Math.ceil(t/8);if(-1===t||e.length===n)return e;if(e.length>n)return e.subarray(0,n);const i=new Uint8Array(n);return i.set(e,r?0:n-e.length),i}},35676:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"U8A_WRAP_ETHEREUM",{enumerable:!0,get:function(){return g.U8A_WRAP_ETHEREUM}}),Object.defineProperty(t,"U8A_WRAP_POSTFIX",{enumerable:!0,get:function(){return g.U8A_WRAP_POSTFIX}}),Object.defineProperty(t,"U8A_WRAP_PREFIX",{enumerable:!0,get:function(){return g.U8A_WRAP_PREFIX}}),Object.defineProperty(t,"u8aCmp",{enumerable:!0,get:function(){return n.u8aCmp}}),Object.defineProperty(t,"u8aConcat",{enumerable:!0,get:function(){return i.u8aConcat}}),Object.defineProperty(t,"u8aConcatStrict",{enumerable:!0,get:function(){return i.u8aConcatStrict}}),Object.defineProperty(t,"u8aEmpty",{enumerable:!0,get:function(){return o.u8aEmpty}}),Object.defineProperty(t,"u8aEq",{enumerable:!0,get:function(){return a.u8aEq}}),Object.defineProperty(t,"u8aFixLength",{enumerable:!0,get:function(){return s.u8aFixLength}}),Object.defineProperty(t,"u8aIsWrapped",{enumerable:!0,get:function(){return g.u8aIsWrapped}}),Object.defineProperty(t,"u8aSorted",{enumerable:!0,get:function(){return c.u8aSorted}}),Object.defineProperty(t,"u8aToBigInt",{enumerable:!0,get:function(){return f.u8aToBigInt}}),Object.defineProperty(t,"u8aToBn",{enumerable:!0,get:function(){return l.u8aToBn}}),Object.defineProperty(t,"u8aToBuffer",{enumerable:!0,get:function(){return d.u8aToBuffer}}),Object.defineProperty(t,"u8aToFloat",{enumerable:!0,get:function(){return u.u8aToFloat}}),Object.defineProperty(t,"u8aToHex",{enumerable:!0,get:function(){return h.u8aToHex}}),Object.defineProperty(t,"u8aToNumber",{enumerable:!0,get:function(){return p.u8aToNumber}}),Object.defineProperty(t,"u8aToString",{enumerable:!0,get:function(){return b.u8aToString}}),Object.defineProperty(t,"u8aToU8a",{enumerable:!0,get:function(){return y.u8aToU8a}}),Object.defineProperty(t,"u8aUnwrapBytes",{enumerable:!0,get:function(){return g.u8aUnwrapBytes}}),Object.defineProperty(t,"u8aWrapBytes",{enumerable:!0,get:function(){return g.u8aWrapBytes}});var n=r(33249),i=r(51502),o=r(49642),a=r(42680),s=r(84810),u=r(39354),c=r(24752),f=r(90133),l=r(95854),d=r(10529),h=r(37556),p=r(46936),b=r(49951),y=r(84574),g=r(19713)},24752:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aSorted=function(e){return e.sort(n.u8aCmp)};var n=r(33249)},90133:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToBigInt=function(e){let{isLe:t=!0,isNegative:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||!e.length)return(0,n.BigInt)(0);const s=t?e:e.reverse(),u=new DataView(s.buffer,s.byteOffset),c=s.length%2;let f=(0,n.BigInt)(0);if(r){for(let e=s.length-2;e>=c;e-=2)f=f*a+(0,n.BigInt)(65535^u.getUint16(e,!0));c&&(f=f*o+(0,n.BigInt)(255^u.getUint8(0)))}else{for(let e=s.length-2;e>=c;e-=2)f=f*a+(0,n.BigInt)(u.getUint16(e,!0));c&&(f=f*o+(0,n.BigInt)(u.getUint8(0)))}return r?f*-i._1n-i._1n:f};var n=r(9942),i=r(60409);const o=(0,n.BigInt)(256),a=(0,n.BigInt)(65536)},95854:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToBn=function(e){let{isLe:t=!0,isNegative:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=e.length;if(i<=6){if(r){let r=0;if(t)switch(i){case 0:return new n.BN(0);case 1:r=255^e[0];break;case 2:r=e[0]+(e[1]<<8)^65535;break;case 3:r=e[0]+(e[1]<<8)+(e[2]<<16)^16777215;break;case 4:r=e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295;break;case 5:r=(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295)+4294967296*(255^e[4]);break;default:r=(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295)+4294967296*(e[4]+(e[5]<<8)^65535)}else for(let t=0;t<i;t++)r=256*r+(255^e[t]);return i?new n.BN(-1*r-1):new n.BN(0)}if(!t){let t=0;for(let r=0;r<i;r++)t=256*t+e[r];return new n.BN(t)}switch(i){case 0:return new n.BN(0);case 1:return new n.BN(e[0]);case 2:return new n.BN(e[0]+(e[1]<<8));case 3:return new n.BN(e[0]+(e[1]<<8)+(e[2]<<16));case 4:return new n.BN(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]);case 5:return new n.BN(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*(e[3]+(e[4]<<8)));default:return new n.BN(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*(e[3]+(e[4]<<8)+(e[5]<<16)))}}return r?new n.BN(e,t?"le":"be").fromTwos(8*e.length):new n.BN(e,t?"le":"be")};var n=r(79774)},10529:(e,t,r)=>{"use strict";var n=r(48764).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToBuffer=function(e){return n.from(e||[])}},39354:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToFloat=function(e){let{bitLength:t=32,isLe:r=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(32!==t&&64!==t)throw new Error("Invalid bitLength provided, expected 32 or 64");if(e.length<t/8)throw new Error(`Invalid input buffer provided, expected at least ${t/8} bytes, found ${e.length}`);const n=new DataView(e.buffer,e.byteOffset);return 32===t?n.getFloat32(0,r):n.getFloat64(0,r)}},37556:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToHex=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;const r=arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?"":"0x";if(!e||!e.length)return r;if(t>0){const n=Math.ceil(t/8);if(e.length>n)return`${i(e.subarray(0,n/2),r)}…${i(e.subarray(e.length-n/2),"")}`}return i(e,r)};const r=new Array(256),n=new Array(65536);for(let e=0;e<256;e++)r[e]=e.toString(16).padStart(2,"0");for(let e=0;e<256;e++){const t=e<<8;for(let i=0;i<256;i++)n[t|i]=r[e]+r[i]}function i(e,t){const i=e.length%2|0,o=e.length-i|0;for(let r=0;r<o;r+=2)t+=n[e[r]<<8|e[r+1]];return i&&(t+=r[0|e[o]]),t}},46936:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToNumber=function(e){let{isNegative:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=e.length;if(t){let t=0;switch(r){case 0:return 0;case 1:t=255^e[0];break;case 2:t=e[0]+(e[1]<<8)^65535;break;case 3:t=e[0]+(e[1]<<8)+(e[2]<<16)^16777215;break;case 4:t=e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295;break;case 5:t=(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295)+4294967296*(255^e[4]);break;case 6:t=(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295)+4294967296*(e[4]+(e[5]<<8)^65535);break;default:throw new Error("Value more than 48-bits cannot be reliably converted")}return-1*t-1}switch(r){case 0:return 0;case 1:return e[0];case 2:return e[0]+(e[1]<<8);case 3:return e[0]+(e[1]<<8)+(e[2]<<16);case 4:return e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3];case 5:return e[0]+(e[1]<<8)+(e[2]<<16)+16777216*(e[3]+(e[4]<<8));case 6:return e[0]+(e[1]<<8)+(e[2]<<16)+16777216*(e[3]+(e[4]<<8)+(e[5]<<16));default:throw new Error("Value more than 48-bits cannot be reliably converted")}}},49951:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToString=function(e){return e?n.decode(e):""};const n=new(r(85821).TextDecoder)("utf-8")},84574:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToU8a=function(e){return(0,a.isU8a)(e)?e:(0,o.isHex)(e)?(0,n.hexToU8a)(e):(0,i.isBuffer)(e)||Array.isArray(e)?new Uint8Array(e):(0,s.stringToU8a)(e)};var n=r(5590),i=r(58669),o=r(22076),a=r(59114),s=r(85917)},19713:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.U8A_WRAP_PREFIX=t.U8A_WRAP_POSTFIX=t.U8A_WRAP_ETHEREUM=void 0,t.u8aIsWrapped=f,t.u8aUnwrapBytes=function(e){const t=(0,o.u8aToU8a)(e);return f(t,!1)?t.subarray(s.length,t.length-u.length):t},t.u8aWrapBytes=function(e){const t=(0,o.u8aToU8a)(e);return f(t,!0)?t:(0,n.u8aConcatStrict)([s,t,u])};var n=r(51502),i=r(42680),o=r(84574);const a=(0,o.u8aToU8a)("Ethereum Signed Message:\n");t.U8A_WRAP_ETHEREUM=a;const s=(0,o.u8aToU8a)("<Bytes>");t.U8A_WRAP_PREFIX=s;const u=(0,o.u8aToU8a)("</Bytes>");t.U8A_WRAP_POSTFIX=u;const c=s.length+u.length;function f(e,t){return e.length>=c&&(0,i.u8aEq)(e.subarray(0,s.length),s)&&(0,i.u8aEq)(e.slice(-u.length),u)||t&&e.length>=a.length&&(0,i.u8aEq)(e.subarray(0,a.length),a)}},96405:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.detectPackage=function(e,t){let{name:r,path:i,type:o,version:f}=e,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!r.startsWith("@polkadot"))throw new Error(`Invalid package descriptor ${r}`);const d=function(e){const t=n.xglobal;return t.__polkadotjs||(t.__polkadotjs={}),t.__polkadotjs[e]||(t.__polkadotjs[e]=[]),t.__polkadotjs[e]}(r);if(d.push({path:u(i,t),type:o,version:f}),1!==d.length)c(`${r} has multiple versions, ensure that there is only one installed.`,d,s);else{const e=l.filter((e=>e&&e.version!==f));e.length&&c(`${r} requires direct dependencies exactly matching version ${f}.`,e,a)}};var n=r(24166),i=r(56458);const o="Either remove and explicitly install matching versions or dedupe using your package manager.\nThe following conflicting packages were found:";function a(e,t){let{name:r}=t;return[e,r]}function s(e,t){let r,{path:n,type:i}=t;if(n&&n.length>=5){const e=n.indexOf("node_modules");r=-1===e?n:n.substring(e)}else r="<unknown>";return[`${`${i||""}`.padStart(3)} ${e}`,r]}function u(e,t){if(e)return e;if((0,i.isFunction)(t))try{return t()||""}catch(e){return""}return t||""}function c(e,t,r){console.warn(`${e}\n${o}\n${function(e,t){let r=0;for(let t=0;t<e.length;t++)r=Math.max(r,e[t].version.length);return e.map((e=>`\t${t(e.version.padEnd(r),e).join("\t")}`)).join("\n")}(t,r)}`)}},9942:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BigInt=void 0,Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return i.packageInfo}});var n=r(24166),i=r(61162);const o="function"==typeof n.xglobal.BigInt&&"function"==typeof n.xglobal.BigInt.asIntN?n.xglobal.BigInt:()=>Number.NaN;t.BigInt=o},61162:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-bigint",path:"/",type:"cjs",version:"10.4.1"}},13786:(e,t,r)=>{"use strict";var n=r(9942);(0,r(24166).exposeGlobal)("BigInt",n.BigInt)},24166:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exposeGlobal=function(e,t){void 0===i[e]&&(i[e]=t)},t.extractGlobal=function(e,t){return void 0===i[e]?t:i[e]},Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return n.packageInfo}}),t.xglobal=void 0;var n=r(43122);const i="undefined"!=typeof globalThis?globalThis:void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this");t.xglobal=i},43122:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-global",path:"/",type:"cjs",version:"10.4.1"}},28530:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRandomValues=function(e){return n.xglobal.crypto.getRandomValues(e)},Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return i.packageInfo}});var n=r(24166),i=r(60909)},60909:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-randomvalues",path:"/",type:"cjs",version:"10.4.1"}},85821:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextDecoder=void 0,Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return o.packageInfo}});var n=r(24166),i=r(13885),o=r(77390);const a=(0,n.extractGlobal)("TextDecoder",i.TextDecoder);t.TextDecoder=a},13885:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728));Object.defineProperty(t,"__esModule",{value:!0}),t.TextDecoder=void 0;let a=function(){function e(t){(0,i.default)(this,e)}return(0,o.default)(e,[{key:"decode",value:function(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t}}]),e}();t.TextDecoder=a},77390:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-textdecoder",path:"/",type:"cjs",version:"10.4.1"}},13336:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextEncoder=void 0,Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return o.packageInfo}});var n=r(24166),i=r(68348),o=r(8233);const a=(0,n.extractGlobal)("TextEncoder",i.TextEncoder);t.TextEncoder=a},68348:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728));Object.defineProperty(t,"__esModule",{value:!0}),t.TextEncoder=void 0;let a=function(){function e(){(0,i.default)(this,e)}return(0,o.default)(e,[{key:"encode",value:function(e){const t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}}]),e}();t.TextEncoder=a},8233:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-textencoder",path:"/",type:"cjs",version:"10.4.1"}},3320:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={packageInfo:!0};Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return o.packageInfo}});var i=r(30379);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=r(74785)},84064:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[]},41645:(e,t,r)=>{"use strict";var n=r(64836),i=r(69338),o=n(r(84064)),a=r(74785);(0,i.detectPackage)(a.packageInfo,null,o.default)},99355:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.colors=function(e){const t=e()*a-a/2,r=o.COLORS.map((e=>(0,i.default)(e).rotate(t)));return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;const n=Math.floor(r.length*e());return r.splice(n,1)[0].alpha(t).string()}};var i=n(r(7043)),o=r(82535);const a=30},16746:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.container=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"white",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=document.createElement("div"),o=Object.assign({background:t,borderRadius:e/2+"px",display:"inline-block",height:`${e}px`,margin:"0px",overflow:"hidden",padding:"0px",width:`${e}px`},n);return i.className=r,i.style.background=t,Object.keys(o).forEach((e=>{i.style[e]=o[e]})),i}},82535:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHAPE_COUNT=t.COLORS=void 0,t.COLORS=["#ffe119","#4363d8","#f58231","#fabebe","#e6beff","#800000","#000075","#a9a9a9","#ffffff","#000000"],t.SHAPE_COUNT=5},84:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.beachballIcon=function(e,t){let{size:r=256}=t,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",f=arguments.length>3?arguments[3]:void 0;const l=(0,u.seeder)(e),d=(0,o.colors)(l),h=(0,a.container)(r,"white",c,f),p=(0,a.container)(r,d()),b=(0,i.element)(r);h.appendChild(p),p.appendChild(b);for(let e=0;e<s.SHAPE_COUNT;e++){const t=d(),i=(0,n.circle)(l,t,r,e);b.appendChild(i)}return h};var n=r(108),i=r(31857),o=r(99355),a=r(16746),s=r(82535),u=r(98517)},98517:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.seeder=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Uint8Array(32);const t=(0,n.isU8a)(e)?e:(0,n.stringToU8a)(e);let r=t[Math.floor(t.length/2)]%t.length-1;const o=()=>(r+=1,r===t.length&&(r=0),t[r]);return()=>(256*o()+o())/i};var n=r(69338);const i=65536},108:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.circle=function(e,t,r,o){const a=r/2,s=360*e(),u=(n.SHAPE_COUNT-o)/n.SHAPE_COUNT*(r/2)+r/8*e(),c=r/4*(e()+(o+1)/n.SHAPE_COUNT),f=c*Math.sin(s)+a,l=c*Math.cos(s)+a,d=(0,i.circle)(u,f,l);return d.setAttributeNS("","fill",t),d};var n=r(82535),i=r(43326)},43326:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.circle=function(e,t,r){const i=(0,n.svg)("circle");return i.setAttributeNS("","cx",`${t}`),i.setAttributeNS("","cy",`${r}`),i.setAttributeNS("","r",`${e}`),i};var n=r(46668)},31857:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.element=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"svg",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const o=(0,n.svg)(t);return o.setAttributeNS("","x",`${r}`),o.setAttributeNS("","y",`${i}`),o.setAttributeNS("","width",`${e}`),o.setAttributeNS("","height",`${e}`),o};var n=r(46668)},46668:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.svg=function(e){return document.createElementNS(r,e)};const r="http://www.w3.org/2000/svg"},30379:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"beachballIcon",{enumerable:!0,get:function(){return n.beachballIcon}}),Object.defineProperty(t,"polkadotIcon",{enumerable:!0,get:function(){return i.polkadotIcon}});var n=r(84),i=r(15845)},15845:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.polkadotIcon=function(e,t){let{isAlternative:r}=t;const f=function(e){const{r:t,r3o4:r,ro2:n,ro4:i,rroot3o2:a,rroot3o4:s}=function(e){const t=e?o/8*5:o/4*3;return{r:t,r3o4:3*t/4,ro2:t/2,ro4:t/4,rroot3o2:t*Math.sqrt(3)/2,rroot3o4:t*Math.sqrt(3)/4}}(e);return[[o,o-t],[o,o-n],[o-s,o-r],[o-a,o-n],[o-s,o-i],[o-a,o],[o-a,o+n],[o-s,o+i],[o-s,o+r],[o,o+t],[o,o+n],[o+s,o+r],[o+a,o+n],[o+s,o+i],[o+a,o],[o+a,o-n],[o+s,o-i],[o+s,o-r],[o,o]]}(r);let l;try{l=function(e){const t=Object.values(s).map((e=>e.freq)).reduce(((e,t)=>e+t)),r=function(e){return c.length||(c=i(new Uint8Array(32))),i((0,n.decodeAddress)(e)).map(((e,t)=>(e+256-c[t])%256))}(e),o=Math.floor((r[30]+256*r[31])%t),a=r[28]%6*3,u=Math.floor(70*r[29]/256+26)%80+30,f=function(e){let t=0;const r=Object.values(s).find((r=>(t+=r.freq,e<t)));if(!r)throw new Error("Unable to find schema");return r}(o),l=Array.from(r).map(((e,t)=>{const r=(e+t%28*58)%256;if(0===r)return"#444";if(255===r)return"transparent";const n=Math.floor(r%64*360/64),i=[53,15,35,75][Math.floor(r/64)];return`hsl(${n}, ${u}%, ${i}%)`}));return f.colors.map(((e,t)=>l[f.colors[t<18?(t+a)%18:18]]))}(e)}catch(e){l=new Array(f.length).fill("#ddd")}return[u].concat(f.map(((e,t)=>{let[r,n]=e;return{cx:r,cy:n,fill:l[t],r:a}})))};var n=r(94459);const i=e=>(0,n.blake2AsU8a)(e,512),o=32,a=5,s={target:{colors:[0,28,0,0,28,0,0,28,0,0,28,0,0,28,0,0,28,0,1],freq:1},cube:{colors:[0,1,3,2,4,3,0,1,3,2,4,3,0,1,3,2,4,3,5],freq:20},quazar:{colors:[1,2,3,1,2,4,5,5,4,1,2,3,1,2,4,5,5,4,0],freq:16},flower:{colors:[0,1,2,0,1,2,0,1,2,0,1,2,0,1,2,0,1,2,3],freq:32},cyclic:{colors:[0,1,2,3,4,5,0,1,2,3,4,5,0,1,2,3,4,5,6],freq:32},vmirror:{colors:[0,1,2,3,4,5,3,4,2,0,1,6,7,8,9,7,8,6,10],freq:128},hmirror:{colors:[0,1,2,3,4,5,6,7,8,9,10,8,6,7,5,3,4,2,11],freq:128}},u={cx:o,cy:o,fill:"#eee",r:o};let c=new Uint8Array},2610:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(41645);var n=r(3320);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}))},74785:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/ui-shared",path:"/",type:"cjs",version:"2.9.14"}},92349:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addressToEvm=function(e,t){return(0,n.decodeAddress)(e,t).subarray(0,20)};var n=r(85709)},12086:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkAddress=function(e,t){let r;try{r=(0,n.base58Decode)(e)}catch(e){return[!1,e.message]}const[a,,,s]=(0,i.checkAddressChecksum)(r);return s!==t?[!1,`Prefix mismatch, expected ${t}, found ${s}`]:o.defaults.allowedEncodedLengths.includes(r.length)?[a,a?null:"Invalid decoded address checksum"]:[!1,"Invalid decoded address length"]};var n=r(24804),i=r(78184),o=r(42327)},78184:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkAddressChecksum=function(e){const t=64&e[0]?2:1,r=1===t?e[0]:(63&e[0])<<2|e[1]>>6|(63&e[1])<<8,i=[34+t,35+t].includes(e.length),o=e.length-(i?2:1),a=(0,n.sshash)(e.subarray(0,o));return[0==(128&e[0])&&![46,47].includes(e[0])&&(i?e[e.length-2]===a[0]&&e[e.length-1]===a[1]:e[e.length-1]===a[0]),o,t,r]};var n=r(48882)},85709:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeAddress=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;if(!e)throw new Error("Invalid empty address passed");if((0,n.isU8a)(e)||(0,n.isHex)(e))return(0,n.u8aToU8a)(e);try{const n=(0,i.base58Decode)(e);if(!a.defaults.allowedEncodedLengths.includes(n.length))throw new Error("Invalid decoded address length");const[s,u,c,f]=(0,o.checkAddressChecksum)(n);if(!s&&!t)throw new Error("Invalid decoded address checksum");if(-1!==r&&r!==f)throw new Error(`Expected ss58Format ${r}, received ${f}`);return n.slice(c,u)}catch(t){throw new Error(`Decoding ${e}: ${t.message}`)}};var n=r(69338),i=r(24804),o=r(78184),a=r(42327)},42327:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaults=void 0;const n={allowedDecodedLengths:[1,2,4,8,32,33],allowedEncodedLengths:[3,4,6,10,35,36,37,38],allowedPrefix:r(43545).availableNetworks.map((e=>{let{prefix:t}=e;return t})),prefix:42};t.defaults=n},14003:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deriveAddress=function(e,t,r){const{path:u}=(0,n.keyExtractPath)(t);if(!u.length||u.every(s))throw new Error("Expected suri to contain a combination of non-hard paths");let c=(0,o.decodeAddress)(e);for(const{chainCode:e}of u)c=(0,i.sr25519DerivePublic)(c,e);return(0,a.encodeAddress)(c,r)};var n=r(53992),i=r(31730),o=r(85709),a=r(61031);function s(e){let{isHard:t}=e;return t}},61031:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeAddress=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.defaults.prefix;const r=(0,o.decodeAddress)(e);if(t<0||t>16383||[46,47].includes(t))throw new Error("Out of range ss58Format specified");if(!a.defaults.allowedDecodedLengths.includes(r.length))throw new Error(`Expected a valid key to convert, with length ${a.defaults.allowedDecodedLengths.join(", ")}`);const u=(0,n.u8aConcat)(t<64?[t]:[(252&t)>>2|64,t>>8|(3&t)<<6],r);return(0,i.base58Encode)((0,n.u8aConcat)(u,(0,s.sshash)(u).subarray(0,[32,33].includes(r.length)?2:1)))};var n=r(69338),i=r(24804),o=r(85709),a=r(42327),s=r(48882)},45709:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeDerivedAddress=function(e,t,r){return(0,i.encodeAddress)((0,o.createKeyDerived)((0,n.decodeAddress)(e),t),r)};var n=r(85709),i=r(61031),o=r(26012)},54018:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeMultiAddress=function(e,t,r){return(0,n.encodeAddress)((0,i.createKeyMulti)(e,t),r)};var n=r(61031),i=r(5848)},47650:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addressEq=function(e,t){return(0,n.u8aEq)((0,i.decodeAddress)(e),(0,i.decodeAddress)(t))};var n=r(69338),i=r(85709)},20475:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.evmToAddress=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"blake2";const a=(0,n.u8aConcat)("evm:",e);if(24!==a.length)throw new Error(`Converting ${e}: Invalid evm address length`);return(0,o.encodeAddress)((0,i.hasher)(r,a),t)};var n=r(69338),i=r(92156),o=r(61031)},20018:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addressEq",{enumerable:!0,get:function(){return p.addressEq}}),Object.defineProperty(t,"addressToEvm",{enumerable:!0,get:function(){return n.addressToEvm}}),Object.defineProperty(t,"checkAddress",{enumerable:!0,get:function(){return i.checkAddress}}),Object.defineProperty(t,"checkAddressChecksum",{enumerable:!0,get:function(){return o.checkAddressChecksum}}),Object.defineProperty(t,"createKeyDerived",{enumerable:!0,get:function(){return s.createKeyDerived}}),Object.defineProperty(t,"createKeyMulti",{enumerable:!0,get:function(){return a.createKeyMulti}}),Object.defineProperty(t,"decodeAddress",{enumerable:!0,get:function(){return u.decodeAddress}}),Object.defineProperty(t,"deriveAddress",{enumerable:!0,get:function(){return c.deriveAddress}}),Object.defineProperty(t,"encodeAddress",{enumerable:!0,get:function(){return f.encodeAddress}}),Object.defineProperty(t,"encodeDerivedAddress",{enumerable:!0,get:function(){return l.encodeDerivedAddress}}),Object.defineProperty(t,"encodeMultiAddress",{enumerable:!0,get:function(){return d.encodeMultiAddress}}),Object.defineProperty(t,"evmToAddress",{enumerable:!0,get:function(){return h.evmToAddress}}),Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return b.isAddress}}),Object.defineProperty(t,"setSS58Format",{enumerable:!0,get:function(){return y.setSS58Format}}),Object.defineProperty(t,"sortAddresses",{enumerable:!0,get:function(){return g.sortAddresses}}),Object.defineProperty(t,"validateAddress",{enumerable:!0,get:function(){return m.validateAddress}});var n=r(92349),i=r(12086),o=r(78184),a=r(5848),s=r(26012),u=r(85709),c=r(14003),f=r(61031),l=r(45709),d=r(54018),h=r(20475),p=r(47650),b=r(16622),y=r(71347),g=r(47831),m=r(28311)},16622:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAddress=function(e,t,r){try{return(0,n.validateAddress)(e,t,r)}catch(e){return!1}};var n=r(28311)},26012:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createKeyDerived=function(e,t){return(0,i.blake2AsU8a)((0,n.u8aConcat)(s,(0,a.decodeAddress)(e),(0,n.bnToU8a)(t,o.BN_LE_16_OPTS)))};var n=r(69338),i=r(4410),o=r(32421),a=r(85709);const s=(0,n.stringToU8a)("modlpy/utilisuba")},5848:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createKeyMulti=function(e,t){return(0,i.blake2AsU8a)((0,n.u8aConcat)(s,(0,n.compactToU8a)(e.length),...(0,n.u8aSorted)(e.map(a.addressToU8a)),(0,n.bnToU8a)(t,o.BN_LE_16_OPTS)))};var n=r(69338),i=r(4410),o=r(32421),a=r(47377);const s=(0,n.stringToU8a)("modlpy/utilisuba")},71347:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setSS58Format=function(e){o.warn("Global setting of the ss58Format is deprecated and not recommended. Set format on the keyring (if used) or as part of the address encode function"),i.defaults.prefix=e};var n=r(69338),i=r(42327);const o=(0,n.logger)("setSS58Format")},47831:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sortAddresses=function(e,t){return(0,n.u8aSorted)(e.map(o.addressToU8a)).map((e=>(0,i.encodeAddress)(e,t)))};var n=r(69338),i=r(61031),o=r(47377)},48882:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sshash=function(e){return(0,i.blake2AsU8a)((0,n.u8aConcat)(o,e),512)};var n=r(69338),i=r(4410);const o=(0,n.stringToU8a)("SS58PRE")},47377:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addressToU8a=function(e){return(0,n.decodeAddress)(e)};var n=r(85709)},28311:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAddress=function(e,t,r){return!!(0,n.decodeAddress)(e,t,r)};var n=r(85709)},23141:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBase32=t.base32Validate=t.base32Encode=t.base32Decode=void 0;var n=r(39187),i=r(49817);const o="abcdefghijklmnopqrstuvwxyz234567",a={chars:o,coder:n.utils.chain(n.utils.radix2(5),n.utils.alphabet(o),{decode:e=>e.split(""),encode:e=>e.join("")}),ipfs:"b",type:"base32"},s=(0,i.createValidate)(a);t.base32Validate=s;const u=(0,i.createIs)(s);t.isBase32=u;const c=(0,i.createDecode)(a,s);t.base32Decode=c;const f=(0,i.createEncode)(a);t.base32Encode=f},49817:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDecode=function(e,t){let{coder:r,ipfs:n}=e;return(e,i)=>(t(e,i),r.decode(n&&i?e.substring(1):e))},t.createEncode=function(e){let{coder:t,ipfs:r}=e;return(e,i)=>{const o=t.encode((0,n.u8aToU8a)(e));return r&&i?`${r}${o}`:o}},t.createIs=function(e){return(t,r)=>{try{return e(t,r)}catch(e){return!1}}},t.createValidate=function(e){let{chars:t,ipfs:r,type:n}=e;return(e,i)=>{if(!e||"string"!=typeof e)throw new Error(`Expected non-null, non-empty ${n} string input`);if(r&&i&&e[0]!==r)throw new Error(`Expected ipfs-compatible ${n} to start with '${r}'`);for(let r=i?1:0;r<e.length;r++)if(!t.includes(e[r])&&("="!==e[r]||r!==e.length-1&&t.includes(e[r+1])))throw new Error(`Invalid ${n} character "${e[r]}" (0x${e.charCodeAt(r).toString(16)}) at index ${r}`);return!0}};var n=r(69338)},612:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"base32Decode",{enumerable:!0,get:function(){return n.base32Decode}}),Object.defineProperty(t,"base32Encode",{enumerable:!0,get:function(){return n.base32Encode}}),Object.defineProperty(t,"base32Validate",{enumerable:!0,get:function(){return n.base32Validate}}),Object.defineProperty(t,"isBase32",{enumerable:!0,get:function(){return n.isBase32}});var n=r(23141)},51995:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBase58=t.base58Validate=t.base58Encode=t.base58Decode=void 0;var n=r(39187),i=r(49817);const o={chars:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",coder:n.base58,ipfs:"z",type:"base58"},a=(0,i.createValidate)(o);t.base58Validate=a;const s=(0,i.createDecode)(o,a);t.base58Decode=s;const u=(0,i.createEncode)(o);t.base58Encode=u;const c=(0,i.createIs)(a);t.isBase58=c},24804:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"base58Decode",{enumerable:!0,get:function(){return n.base58Decode}}),Object.defineProperty(t,"base58Encode",{enumerable:!0,get:function(){return n.base58Encode}}),Object.defineProperty(t,"base58Validate",{enumerable:!0,get:function(){return n.base58Validate}}),Object.defineProperty(t,"isBase58",{enumerable:!0,get:function(){return n.isBase58}});var n=r(51995)},67037:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBase64=t.base64Validate=t.base64Encode=t.base64Decode=void 0;var n=r(39187),i=r(49817);const o={chars:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",coder:n.base64,type:"base64"},a=(0,i.createValidate)(o);t.base64Validate=a;const s=(0,i.createIs)(a);t.isBase64=s;const u=(0,i.createDecode)(o,a);t.base64Decode=u;const c=(0,i.createEncode)(o);t.base64Encode=c},1584:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"base64Decode",{enumerable:!0,get:function(){return n.base64Decode}}),Object.defineProperty(t,"base64Encode",{enumerable:!0,get:function(){return n.base64Encode}}),Object.defineProperty(t,"base64Pad",{enumerable:!0,get:function(){return i.base64Pad}}),Object.defineProperty(t,"base64Trim",{enumerable:!0,get:function(){return o.base64Trim}}),Object.defineProperty(t,"base64Validate",{enumerable:!0,get:function(){return n.base64Validate}}),Object.defineProperty(t,"isBase64",{enumerable:!0,get:function(){return n.isBase64}});var n=r(67037),i=r(55925),o=r(31567)},55925:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.base64Pad=function(e){return e.padEnd(e.length+e.length%4,"=")}},31567:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.base64Trim=function(e){for(;e.length&&"="===e[e.length-1];)e=e.slice(0,-1);return e}},4410:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.blake2AsHex=void 0,t.blake2AsU8a=a;var n=r(13803),i=r(69338),o=r(56431);function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:256,r=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0;const s=Math.ceil(t/8),u=(0,i.u8aToU8a)(e);return!i.hasBigInt||!a&&(0,o.isReady)()?(0,o.blake2b)(u,(0,i.u8aToU8a)(r),s):(0,n.blake2b)(u,{dkLen:s,key:r||void 0})}const s=(0,r(50162).createAsHex)(a);t.blake2AsHex=s},23172:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"blake2AsHex",{enumerable:!0,get:function(){return n.blake2AsHex}}),Object.defineProperty(t,"blake2AsU8a",{enumerable:!0,get:function(){return n.blake2AsU8a}});var n=r(4410)},32421:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BN_LE_OPTS=t.BN_LE_512_OPTS=t.BN_LE_32_OPTS=t.BN_LE_256_OPTS=t.BN_LE_16_OPTS=t.BN_BE_OPTS=t.BN_BE_32_OPTS=t.BN_BE_256_OPTS=void 0,t.BN_BE_OPTS={isLe:!1},t.BN_LE_OPTS={isLe:!0},t.BN_LE_16_OPTS={bitLength:16,isLe:!0},t.BN_BE_32_OPTS={bitLength:32,isLe:!1},t.BN_LE_32_OPTS={bitLength:32,isLe:!0},t.BN_BE_256_OPTS={bitLength:256,isLe:!1},t.BN_LE_256_OPTS={bitLength:256,isLe:!0},t.BN_LE_512_OPTS={bitLength:512,isLe:!0}},47097:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={packageInfo:!0};Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return i.packageInfo}}),r(45980);var i=r(99377),o=r(20018);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=r(612);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var s=r(24804);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var u=r(1584);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var c=r(23172);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var f=r(35840);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))}));var l=r(19309);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var d=r(31856);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var h=r(69769);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))}));var p=r(83665);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===p[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}}))}));var b=r(19399);Object.keys(b).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===b[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return b[e]}}))}));var y=r(9774);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===y[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return y[e]}}))}));var g=r(53992);Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===g[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return g[e]}}))}));var m=r(3050);Object.keys(m).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===m[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return m[e]}}))}));var v=r(43545);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===v[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return v[e]}}))}));var w=r(69459);Object.keys(w).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===w[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return w[e]}}))}));var _=r(12257);Object.keys(_).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===_[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return _[e]}}))}));var x=r(41177);Object.keys(x).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===x[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return x[e]}}))}));var O=r(32793);Object.keys(O).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===O[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return O[e]}}))}));var k=r(29640);Object.keys(k).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===k[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return k[e]}}))}));var P=r(23082);Object.keys(P).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===P[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return P[e]}}))}));var S=r(28571);Object.keys(S).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===S[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return S[e]}}))}));var A=r(31730);Object.keys(A).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===A[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return A[e]}}))}));var E=r(29151);Object.keys(E).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===E[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return E[e]}}))}))},45980:(e,t,r)=>{"use strict";r(39574);var n=r(79656),i=r(69338),o=r(35840),a=r(83665);n.utils.hmacSha256Sync=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return(0,a.hmacSha256AsU8a)(e,(0,i.u8aConcat)(...r))},(0,o.cryptoWaitReady)().catch((()=>{}))},35840:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cryptoIsReady=void 0,t.cryptoWaitReady=function(){return(0,n.waitReady)().then((()=>{if(!(0,n.isReady)())throw new Error("Unable to initialize @polkadot/util-crypto");return!0})).catch((()=>!1))};var n=r(56431);const i=n.isReady;t.cryptoIsReady=i},29310:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(87152),i=r(54216),o=r(41649),a=[n.packageInfo,i.packageInfo,o.packageInfo];t.default=a},22868:(e,t,r)=>{"use strict";var n=r(64836),i=r(69338),o=n(r(29310)),a=r(99377);(0,i.detectPackage)(a.packageInfo,null,o.default)},28179:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.convertPublicKeyToCurve25519=function(e){return(0,o.assertReturn)(i.default.convertPublicKey(e),"Unable to convert publicKey to ed25519")},t.convertSecretKeyToCurve25519=function(e){return i.default.convertSecretKey(e)};var i=n(r(75678)),o=r(69338)},55390:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ed25519DeriveHard=function(e,t){if(!(0,n.isU8a)(t)||32!==t.length)throw new Error("Invalid chainCode passed to derive");return(0,i.blake2AsU8a)((0,n.u8aConcat)(o,e,t))};var n=r(69338),i=r(4410);const o=(0,n.compactAddLength)((0,n.stringToU8a)("Ed25519HDKD"))},19309:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"convertPublicKeyToCurve25519",{enumerable:!0,get:function(){return n.convertPublicKeyToCurve25519}}),Object.defineProperty(t,"convertSecretKeyToCurve25519",{enumerable:!0,get:function(){return n.convertSecretKeyToCurve25519}}),Object.defineProperty(t,"ed25519DeriveHard",{enumerable:!0,get:function(){return i.ed25519DeriveHard}}),Object.defineProperty(t,"ed25519PairFromRandom",{enumerable:!0,get:function(){return o.ed25519PairFromRandom}}),Object.defineProperty(t,"ed25519PairFromSecret",{enumerable:!0,get:function(){return a.ed25519PairFromSecret}}),Object.defineProperty(t,"ed25519PairFromSeed",{enumerable:!0,get:function(){return s.ed25519PairFromSeed}}),Object.defineProperty(t,"ed25519PairFromString",{enumerable:!0,get:function(){return u.ed25519PairFromString}}),Object.defineProperty(t,"ed25519Sign",{enumerable:!0,get:function(){return c.ed25519Sign}}),Object.defineProperty(t,"ed25519Verify",{enumerable:!0,get:function(){return f.ed25519Verify}});var n=r(28179),i=r(55390),o=r(59128),a=r(12034),s=r(5091),u=r(54127),c=r(7010),f=r(55535)},59128:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ed25519PairFromRandom=function(){return(0,i.ed25519PairFromSeed)((0,n.randomAsU8a)())};var n=r(41177),i=r(5091)},12034:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.ed25519PairFromSecret=function(e){return i.default.sign.keyPair.fromSecretKey(e)};var i=n(r(50780))},5091:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.ed25519PairFromSeed=function(e,t){if(!t&&(0,o.isReady)()){const t=(0,o.ed25519KeypairFromSeed)(e);return{publicKey:t.slice(32),secretKey:t.slice(0,64)}}return i.default.sign.keyPair.fromSeed(e)};var i=n(r(50780)),o=r(56431)},54127:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ed25519PairFromString=function(e){return(0,o.ed25519PairFromSeed)((0,i.blake2AsU8a)((0,n.stringToU8a)(e)))};var n=r(69338),i=r(4410),o=r(5091)},7010:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.ed25519Sign=function(e,t,r){let{publicKey:n,secretKey:s}=t;if(!s)throw new Error("Expected a valid secretKey");const u=(0,o.u8aToU8a)(e);return!r&&(0,a.isReady)()?(0,a.ed25519Sign)(n,s.subarray(0,32),u):i.default.sign.detached(u,s)};var i=n(r(50780)),o=r(69338),a=r(56431)},55535:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.ed25519Verify=function(e,t,r,n){const s=(0,o.u8aToU8a)(e),u=(0,o.u8aToU8a)(r),c=(0,o.u8aToU8a)(t);if(32!==u.length)throw new Error(`Invalid publicKey, received ${u.length}, expected 32`);if(64!==c.length)throw new Error(`Invalid signature, received ${c.length} bytes, expected 64`);return!n&&(0,a.isReady)()?(0,a.ed25519Verify)(c,s,u):i.default.sign.detached.verify(s,c,u)};var i=n(r(50780)),o=r(69338),a=r(56431)},32281:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ethereumEncode=function(e){if(!e)return"0x";const t=(0,n.u8aToU8a)(e);if(![20,32,33,65].includes(t.length))throw new Error("Invalid address or publicKey passed");const r=(0,n.u8aToHex)(([33,65].includes((s=t).length)&&(s=(0,i.keccakAsU8a)((0,o.secp256k1Expand)(s))),s.slice(-20)),-1,!1),a=(0,n.u8aToHex)((0,i.keccakAsU8a)(r),-1,!1);var s;let u="";for(let e=0;e<40;e++)u=`${u}${parseInt(a[e],16)>7?r[e].toUpperCase():r[e]}`;return`0x${u}`};var n=r(69338),i=r(9774),o=r(29640)},31856:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ethereumEncode",{enumerable:!0,get:function(){return n.ethereumEncode}}),Object.defineProperty(t,"isEthereumAddress",{enumerable:!0,get:function(){return i.isEthereumAddress}}),Object.defineProperty(t,"isEthereumChecksum",{enumerable:!0,get:function(){return o.isEthereumChecksum}});var n=r(32281),i=r(59525),o=r(41938)},59525:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEthereumAddress=function(e){return!(!e||42!==e.length||!(0,n.isHex)(e))&&(!(!/^(0x)?[0-9a-f]{40}$/.test(e)&&!/^(0x)?[0-9A-F]{40}$/.test(e))||(0,i.isEthereumChecksum)(e))};var n=r(69338),i=r(41938)},41938:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEthereumChecksum=function(e){const t=e.replace("0x",""),r=(0,n.u8aToHex)((0,i.keccakAsU8a)(t.toLowerCase()),-1,!1);for(let e=0;e<40;e++)if((o=t[e])!==(parseInt(r[e],16)>7?o.toUpperCase():o.toLowerCase()))return!1;var o;return!0};var n=r(69338),i=r(9774)},92878:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hdEthereum=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const r=(0,o.hmacShaAsU8a)(u,e,512);let n=c(r.slice(0,32),r.slice(32));if(!t||"m"===t||"M"===t||"m'"===t||"M'"===t)return n;if(!(0,s.hdValidatePath)(t))throw new Error("Invalid derivation path");const i=t.split("/").slice(1);for(const e of i)n=f(n,parseInt(e,10)+(e.length>1&&e.endsWith("'")?s.HARDENED:0));return n};var n=r(69338),i=r(32421),o=r(83665),a=r(29640),s=r(19121);const u=(0,n.stringToU8a)("Bitcoin seed");function c(e,t){return{chainCode:t,publicKey:(0,a.secp256k1PairFromSeed)(e).publicKey,secretKey:e}}function f(e,t){const r=(0,n.bnToU8a)(t,i.BN_BE_32_OPTS),u=t>=s.HARDENED?(0,n.u8aConcat)(new Uint8Array(1),e.secretKey,r):(0,n.u8aConcat)(e.publicKey,r);try{const t=(0,o.hmacShaAsU8a)(e.chainCode,u,512);return c((0,a.secp256k1PrivateKeyTweakAdd)(e.secretKey,t.slice(0,32)),t.slice(32))}catch(r){return f(e,t+1)}}},69769:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hdEthereum",{enumerable:!0,get:function(){return n.hdEthereum}}),Object.defineProperty(t,"hdLedger",{enumerable:!0,get:function(){return i.hdLedger}}),Object.defineProperty(t,"hdValidatePath",{enumerable:!0,get:function(){return o.hdValidatePath}});var n=r(92878),i=r(72424),o=r(19121)},30194:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ledgerDerivePrivate=function(e,t){const r=e.subarray(0,32),a=e.subarray(32,64),s=e.subarray(64,96),u=(0,n.u8aConcat)([0],r,a,(0,n.bnToU8a)(t,i.BN_LE_32_OPTS)),c=(0,o.hmacShaAsU8a)(s,u,512);return u[0]=1,(0,n.u8aConcat)((0,n.bnToU8a)((0,n.u8aToBn)(r,i.BN_LE_OPTS).iadd((0,n.u8aToBn)(c.subarray(0,28),i.BN_LE_OPTS).imul(n.BN_EIGHT)),i.BN_LE_512_OPTS).subarray(0,32),(0,n.bnToU8a)((0,n.u8aToBn)(a,i.BN_LE_OPTS).iadd((0,n.u8aToBn)(c.subarray(32,64),i.BN_LE_OPTS)),i.BN_LE_512_OPTS).subarray(0,32),(0,o.hmacShaAsU8a)(s,u,512).subarray(32,64))};var n=r(69338),i=r(32421),o=r(83665)},72424:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hdLedger=function(e,t){const r=e.split(" ").map((e=>e.trim())).filter((e=>e));if(![12,24,25].includes(r.length))throw new Error("Expected a mnemonic with 24 words (or 25 including a password)");const[u,c]=25===r.length?[r.slice(0,24).join(" "),r[24]]:[r.join(" "),""];if(!(0,i.mnemonicValidate)(u))throw new Error("Invalid mnemonic passed to ledger derivation");if(!(0,o.hdValidatePath)(t))throw new Error("Invalid derivation path");const f=t.split("/").slice(1);let l=(0,s.ledgerMaster)(u,c);for(const e of f){const t=parseInt(e.replace(/'$/,""),10);l=(0,a.ledgerDerivePrivate)(l,t<o.HARDENED?t+o.HARDENED:t)}return(0,n.ed25519PairFromSeed)(l.slice(0,32))};var n=r(19309),i=r(3050),o=r(19121),a=r(30194),s=r(27837)},27837:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ledgerMaster=function(e,t){const r=(0,o.mnemonicToSeedSync)(e,t),s=(0,i.hmacShaAsU8a)(a,new Uint8Array([1,...r]),256);let u;for(;!u||32&u[31];)u=(0,i.hmacShaAsU8a)(a,u||r,512);return u[0]&=248,u[31]&=127,u[31]|=64,(0,n.u8aConcat)(u,s)};var n=r(69338),i=r(83665),o=r(94953);const a="ed25519 seed"},19121:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HARDENED=void 0,t.hdValidatePath=function(e){if(!e.startsWith("m/"))return!1;const t=e.split("/").slice(1);for(const e of t){const t=/^\d+'?$/.test(e)?parseInt(e.replace(/'$/,""),10):Number.NaN;if(isNaN(t)||t>=r||t<0)return!1}return!0};const r=2147483648;t.HARDENED=r},50162:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createAsHex=function(e){return function(){return(0,n.u8aToHex)(e(...arguments))}},t.createBitHasher=function(e,t){return(r,n)=>t(r,e,n)},t.createDualHasher=function(e,t){return function(r){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:256,a=arguments.length>2?arguments[2]:void 0;const s=(0,n.u8aToU8a)(r);return!n.hasBigInt||!a&&(0,i.isReady)()?e[o](s):t[o](s)}};var n=r(69338),i=r(56431)},83665:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hmacSha256AsU8a",{enumerable:!0,get:function(){return n.hmacSha256AsU8a}}),Object.defineProperty(t,"hmacSha512AsU8a",{enumerable:!0,get:function(){return n.hmacSha512AsU8a}}),Object.defineProperty(t,"hmacShaAsU8a",{enumerable:!0,get:function(){return n.hmacShaAsU8a}});var n=r(39577)},39577:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hmacSha512AsU8a=t.hmacSha256AsU8a=void 0,t.hmacShaAsU8a=l;var n=r(79569),i=r(23061),o=r(86262),a=r(69338),s=r(56431);const u={256:i.sha256,512:o.sha512},c={256:s.hmacSha256,512:s.hmacSha512};function f(e){return(t,r,n)=>l(t,r,e,n)}function l(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:256,i=arguments.length>3?arguments[3]:void 0;const o=(0,a.u8aToU8a)(e);return!a.hasBigInt||!i&&(0,s.isReady)()?c[r](o,t):(0,n.hmac)(u[r],o,t)}const d=f(256);t.hmacSha256AsU8a=d;const h=f(512);t.hmacSha512AsU8a=h},94459:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(22868);var n=r(47097);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}))},75295:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SCRYPT_LENGTH=t.NONCE_LENGTH=t.ENCODING_VERSION=t.ENCODING_NONE=t.ENCODING=void 0,t.ENCODING=["scrypt","xsalsa20-poly1305"],t.ENCODING_NONE=["none"],t.ENCODING_VERSION="3",t.NONCE_LENGTH=24,t.SCRYPT_LENGTH=44},93884:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.jsonDecrypt=function(e,t){let{encoded:r,encoding:a}=e;if(!r)throw new Error("No encrypted data available to decode");return(0,o.jsonDecryptData)((0,n.isHex)(r)?(0,n.hexToU8a)(r):(0,i.base64Decode)(r),t,Array.isArray(a.type)?a.type:[a.type])};var n=r(69338),i=r(1584),o=r(96064)},96064:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.jsonDecryptData=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.ENCODING;if(!e)throw new Error("No encrypted data available to decode");if(r.includes("xsalsa20-poly1305")&&!t)throw new Error("Password required to decode encrypted data");let s=e;if(t){let u;if(r.includes("scrypt")){const{params:r,salt:n}=(0,o.scryptFromU8a)(e);u=(0,o.scryptEncode)(t,n,r).password,e=e.subarray(a.SCRYPT_LENGTH)}else u=(0,n.stringToU8a)(t);s=(0,i.naclDecrypt)(e.subarray(a.NONCE_LENGTH),e.subarray(0,a.NONCE_LENGTH),(0,n.u8aFixLength)(u,256,!0))}if(!s)throw new Error("Unable to decode using the supplied passphrase");return s};var n=r(69338),i=r(69459),o=r(32793),a=r(75295)},32620:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.jsonEncrypt=function(e,t,r){let s=!1,u=e;if(r){const{params:e,password:t,salt:a}=(0,o.scryptEncode)(r),{encrypted:c,nonce:f}=(0,i.naclEncrypt)(u,t.subarray(0,32));s=!0,u=(0,n.u8aConcat)((0,o.scryptToU8a)(a,e),f,c)}return(0,a.jsonEncryptFormat)(u,t,s)};var n=r(69338),i=r(69459),o=r(32793),a=r(56725)},56725:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.jsonEncryptFormat=function(e,t,r){return{encoded:(0,n.base64Encode)(e),encoding:{content:t,type:r?i.ENCODING:i.ENCODING_NONE,version:i.ENCODING_VERSION}}};var n=r(1584),i=r(75295)},19399:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"jsonDecrypt",{enumerable:!0,get:function(){return n.jsonDecrypt}}),Object.defineProperty(t,"jsonDecryptData",{enumerable:!0,get:function(){return i.jsonDecryptData}}),Object.defineProperty(t,"jsonEncrypt",{enumerable:!0,get:function(){return o.jsonEncrypt}}),Object.defineProperty(t,"jsonEncryptFormat",{enumerable:!0,get:function(){return a.jsonEncryptFormat}});var n=r(93884),i=r(96064),o=r(32620),a=r(56725)},58937:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keccakAsU8a=t.keccakAsHex=t.keccak512AsU8a=t.keccak256AsU8a=void 0;var n=r(85426),i=r(56431),o=r(50162);const a=(0,o.createDualHasher)({256:i.keccak256,512:i.keccak512},{256:n.keccak_256,512:n.keccak_512});t.keccakAsU8a=a;const s=(0,o.createBitHasher)(256,a);t.keccak256AsU8a=s;const u=(0,o.createBitHasher)(512,a);t.keccak512AsU8a=u;const c=(0,o.createAsHex)(a);t.keccakAsHex=c},9774:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"keccak256AsU8a",{enumerable:!0,get:function(){return n.keccak256AsU8a}}),Object.defineProperty(t,"keccak512AsU8a",{enumerable:!0,get:function(){return n.keccak512AsU8a}}),Object.defineProperty(t,"keccakAsHex",{enumerable:!0,get:function(){return n.keccakAsHex}}),Object.defineProperty(t,"keccakAsU8a",{enumerable:!0,get:function(){return n.keccakAsU8a}});var n=r(58937)},5325:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728)),a=n(r(29399)),s=n(r(40426));Object.defineProperty(t,"__esModule",{value:!0}),t.DeriveJunction=void 0;var u=r(69338),c=r(4410),f=r(32421);const l=/^\d+$/;var d=(0,s.default)("chainCode"),h=(0,s.default)("isHard");let p=function(){function e(){(0,i.default)(this,e),Object.defineProperty(this,d,{writable:!0,value:new Uint8Array(32)}),Object.defineProperty(this,h,{writable:!0,value:!1})}return(0,o.default)(e,[{key:"chainCode",get:function(){return(0,a.default)(this,d)[d]}},{key:"isHard",get:function(){return(0,a.default)(this,h)[h]}},{key:"isSoft",get:function(){return!(0,a.default)(this,h)[h]}},{key:"hard",value:function(e){return this.soft(e).harden()}},{key:"harden",value:function(){return(0,a.default)(this,h)[h]=!0,this}},{key:"soft",value:function(e){return(0,u.isNumber)(e)||(0,u.isBn)(e)||(0,u.isBigInt)(e)?this.soft((0,u.bnToU8a)(e,f.BN_LE_256_OPTS)):(0,u.isHex)(e)?this.soft((0,u.hexToU8a)(e)):(0,u.isString)(e)?this.soft((0,u.compactAddLength)((0,u.stringToU8a)(e))):e.length>32?this.soft((0,c.blake2AsU8a)(e)):((0,a.default)(this,d)[d].fill(0),(0,a.default)(this,d)[d].set(e,0),this)}},{key:"soften",value:function(){return(0,a.default)(this,h)[h]=!1,this}}],[{key:"from",value:function(t){const r=new e,[n,i]=t.startsWith("/")?[t.substring(1),!0]:[t,!1];return r.soft(l.test(n)?new u.BN(n,10):n),i?r.harden():r}}]),e}();t.DeriveJunction=p},29785:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keyExtractPath=function(e){const t=e.match(i),r=[];let o="";if(t){o=t.join("");for(const e of t)r.push(n.DeriveJunction.from(e.substring(1)))}if(o!==e)throw new Error(`Re-constructed path "${o}" does not match input`);return{parts:t,path:r}};var n=r(5325);const i=/\/(\/?)([^/]+)/g},61196:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keyExtractSuri=function(e){const t=e.match(i);if(null===t)throw new Error("Unable to match provided value to a secret URI");const[,r,,o,,,a]=t,{path:s}=(0,n.keyExtractPath)(o);return{derivePath:o,password:a,path:s,phrase:r}};var n=r(29785);const i=/^(\w+( \w+)*)((\/\/?[^/]+)*)(\/\/\/(.*))?$/},20104:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keyFromPath=function(e,t,r){const n=a[r];let i=e;for(const e of t)i=n(i,e);return i};var n=r(36038),i=r(45388),o=r(50297);const a={ecdsa:n.keyHdkdEcdsa,ed25519:i.keyHdkdEd25519,ethereum:n.keyHdkdEcdsa,sr25519:o.keyHdkdSr25519}},75596:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSeedDeriveFn=function(e,t){return(r,n)=>{let{chainCode:i,isHard:o}=n;if(!o)throw new Error("A soft key was found in the path and is not supported");return e(t(r.secretKey.subarray(0,32),i))}}},36038:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keyHdkdEcdsa=void 0;var n=r(64209),i=r(2793);const o=(0,r(75596).createSeedDeriveFn)(i.secp256k1PairFromSeed,n.secp256k1DeriveHard);t.keyHdkdEcdsa=o},45388:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keyHdkdEd25519=void 0;var n=r(19309);const i=(0,r(75596).createSeedDeriveFn)(n.ed25519PairFromSeed,n.ed25519DeriveHard);t.keyHdkdEd25519=i},50297:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keyHdkdSr25519=function(e,t){let{chainCode:r,isSoft:o}=t;return o?(0,i.sr25519DeriveSoft)(e,r):(0,n.sr25519DeriveHard)(e,r)};var n=r(582),i=r(43576)},53992:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"keyExtractPath",{enumerable:!0,get:function(){return n.keyExtractPath}}),Object.defineProperty(t,"keyExtractSuri",{enumerable:!0,get:function(){return i.keyExtractSuri}}),Object.defineProperty(t,"keyFromPath",{enumerable:!0,get:function(){return o.keyFromPath}}),Object.defineProperty(t,"keyHdkdEcdsa",{enumerable:!0,get:function(){return u.keyHdkdEcdsa}}),Object.defineProperty(t,"keyHdkdEd25519",{enumerable:!0,get:function(){return a.keyHdkdEd25519}}),Object.defineProperty(t,"keyHdkdSr25519",{enumerable:!0,get:function(){return s.keyHdkdSr25519}});var n=r(29785),i=r(61196),o=r(20104),a=r(45388),s=r(50297),u=r(36038)},7506:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r="abandon|ability|able|about|above|absent|absorb|abstract|absurd|abuse|access|accident|account|accuse|achieve|acid|acoustic|acquire|across|act|action|actor|actress|actual|adapt|add|addict|address|adjust|admit|adult|advance|advice|aerobic|affair|afford|afraid|again|age|agent|agree|ahead|aim|air|airport|aisle|alarm|album|alcohol|alert|alien|all|alley|allow|almost|alone|alpha|already|also|alter|always|amateur|amazing|among|amount|amused|analyst|anchor|ancient|anger|angle|angry|animal|ankle|announce|annual|another|answer|antenna|antique|anxiety|any|apart|apology|appear|apple|approve|april|arch|arctic|area|arena|argue|arm|armed|armor|army|around|arrange|arrest|arrive|arrow|art|artefact|artist|artwork|ask|aspect|assault|asset|assist|assume|asthma|athlete|atom|attack|attend|attitude|attract|auction|audit|august|aunt|author|auto|autumn|average|avocado|avoid|awake|aware|away|awesome|awful|awkward|axis|baby|bachelor|bacon|badge|bag|balance|balcony|ball|bamboo|banana|banner|bar|barely|bargain|barrel|base|basic|basket|battle|beach|bean|beauty|because|become|beef|before|begin|behave|behind|believe|below|belt|bench|benefit|best|betray|better|between|beyond|bicycle|bid|bike|bind|biology|bird|birth|bitter|black|blade|blame|blanket|blast|bleak|bless|blind|blood|blossom|blouse|blue|blur|blush|board|boat|body|boil|bomb|bone|bonus|book|boost|border|boring|borrow|boss|bottom|bounce|box|boy|bracket|brain|brand|brass|brave|bread|breeze|brick|bridge|brief|bright|bring|brisk|broccoli|broken|bronze|broom|brother|brown|brush|bubble|buddy|budget|buffalo|build|bulb|bulk|bullet|bundle|bunker|burden|burger|burst|bus|business|busy|butter|buyer|buzz|cabbage|cabin|cable|cactus|cage|cake|call|calm|camera|camp|can|canal|cancel|candy|cannon|canoe|canvas|canyon|capable|capital|captain|car|carbon|card|cargo|carpet|carry|cart|case|cash|casino|castle|casual|cat|catalog|catch|category|cattle|caught|cause|caution|cave|ceiling|celery|cement|census|century|cereal|certain|chair|chalk|champion|change|chaos|chapter|charge|chase|chat|cheap|check|cheese|chef|cherry|chest|chicken|chief|child|chimney|choice|choose|chronic|chuckle|chunk|churn|cigar|cinnamon|circle|citizen|city|civil|claim|clap|clarify|claw|clay|clean|clerk|clever|click|client|cliff|climb|clinic|clip|clock|clog|close|cloth|cloud|clown|club|clump|cluster|clutch|coach|coast|coconut|code|coffee|coil|coin|collect|color|column|combine|come|comfort|comic|common|company|concert|conduct|confirm|congress|connect|consider|control|convince|cook|cool|copper|copy|coral|core|corn|correct|cost|cotton|couch|country|couple|course|cousin|cover|coyote|crack|cradle|craft|cram|crane|crash|crater|crawl|crazy|cream|credit|creek|crew|cricket|crime|crisp|critic|crop|cross|crouch|crowd|crucial|cruel|cruise|crumble|crunch|crush|cry|crystal|cube|culture|cup|cupboard|curious|current|curtain|curve|cushion|custom|cute|cycle|dad|damage|damp|dance|danger|daring|dash|daughter|dawn|day|deal|debate|debris|decade|december|decide|decline|decorate|decrease|deer|defense|define|defy|degree|delay|deliver|demand|demise|denial|dentist|deny|depart|depend|deposit|depth|deputy|derive|describe|desert|design|desk|despair|destroy|detail|detect|develop|device|devote|diagram|dial|diamond|diary|dice|diesel|diet|differ|digital|dignity|dilemma|dinner|dinosaur|direct|dirt|disagree|discover|disease|dish|dismiss|disorder|display|distance|divert|divide|divorce|dizzy|doctor|document|dog|doll|dolphin|domain|donate|donkey|donor|door|dose|double|dove|draft|dragon|drama|drastic|draw|dream|dress|drift|drill|drink|drip|drive|drop|drum|dry|duck|dumb|dune|during|dust|dutch|duty|dwarf|dynamic|eager|eagle|early|earn|earth|easily|east|easy|echo|ecology|economy|edge|edit|educate|effort|egg|eight|either|elbow|elder|electric|elegant|element|elephant|elevator|elite|else|embark|embody|embrace|emerge|emotion|employ|empower|empty|enable|enact|end|endless|endorse|enemy|energy|enforce|engage|engine|enhance|enjoy|enlist|enough|enrich|enroll|ensure|enter|entire|entry|envelope|episode|equal|equip|era|erase|erode|erosion|error|erupt|escape|essay|essence|estate|eternal|ethics|evidence|evil|evoke|evolve|exact|example|excess|exchange|excite|exclude|excuse|execute|exercise|exhaust|exhibit|exile|exist|exit|exotic|expand|expect|expire|explain|expose|express|extend|extra|eye|eyebrow|fabric|face|faculty|fade|faint|faith|fall|false|fame|family|famous|fan|fancy|fantasy|farm|fashion|fat|fatal|father|fatigue|fault|favorite|feature|february|federal|fee|feed|feel|female|fence|festival|fetch|fever|few|fiber|fiction|field|figure|file|film|filter|final|find|fine|finger|finish|fire|firm|first|fiscal|fish|fit|fitness|fix|flag|flame|flash|flat|flavor|flee|flight|flip|float|flock|floor|flower|fluid|flush|fly|foam|focus|fog|foil|fold|follow|food|foot|force|forest|forget|fork|fortune|forum|forward|fossil|foster|found|fox|fragile|frame|frequent|fresh|friend|fringe|frog|front|frost|frown|frozen|fruit|fuel|fun|funny|furnace|fury|future|gadget|gain|galaxy|gallery|game|gap|garage|garbage|garden|garlic|garment|gas|gasp|gate|gather|gauge|gaze|general|genius|genre|gentle|genuine|gesture|ghost|giant|gift|giggle|ginger|giraffe|girl|give|glad|glance|glare|glass|glide|glimpse|globe|gloom|glory|glove|glow|glue|goat|goddess|gold|good|goose|gorilla|gospel|gossip|govern|gown|grab|grace|grain|grant|grape|grass|gravity|great|green|grid|grief|grit|grocery|group|grow|grunt|guard|guess|guide|guilt|guitar|gun|gym|habit|hair|half|hammer|hamster|hand|happy|harbor|hard|harsh|harvest|hat|have|hawk|hazard|head|health|heart|heavy|hedgehog|height|hello|helmet|help|hen|hero|hidden|high|hill|hint|hip|hire|history|hobby|hockey|hold|hole|holiday|hollow|home|honey|hood|hope|horn|horror|horse|hospital|host|hotel|hour|hover|hub|huge|human|humble|humor|hundred|hungry|hunt|hurdle|hurry|hurt|husband|hybrid|ice|icon|idea|identify|idle|ignore|ill|illegal|illness|image|imitate|immense|immune|impact|impose|improve|impulse|inch|include|income|increase|index|indicate|indoor|industry|infant|inflict|inform|inhale|inherit|initial|inject|injury|inmate|inner|innocent|input|inquiry|insane|insect|inside|inspire|install|intact|interest|into|invest|invite|involve|iron|island|isolate|issue|item|ivory|jacket|jaguar|jar|jazz|jealous|jeans|jelly|jewel|job|join|joke|journey|joy|judge|juice|jump|jungle|junior|junk|just|kangaroo|keen|keep|ketchup|key|kick|kid|kidney|kind|kingdom|kiss|kit|kitchen|kite|kitten|kiwi|knee|knife|knock|know|lab|label|labor|ladder|lady|lake|lamp|language|laptop|large|later|latin|laugh|laundry|lava|law|lawn|lawsuit|layer|lazy|leader|leaf|learn|leave|lecture|left|leg|legal|legend|leisure|lemon|lend|length|lens|leopard|lesson|letter|level|liar|liberty|library|license|life|lift|light|like|limb|limit|link|lion|liquid|list|little|live|lizard|load|loan|lobster|local|lock|logic|lonely|long|loop|lottery|loud|lounge|love|loyal|lucky|luggage|lumber|lunar|lunch|luxury|lyrics|machine|mad|magic|magnet|maid|mail|main|major|make|mammal|man|manage|mandate|mango|mansion|manual|maple|marble|march|margin|marine|market|marriage|mask|mass|master|match|material|math|matrix|matter|maximum|maze|meadow|mean|measure|meat|mechanic|medal|media|melody|melt|member|memory|mention|menu|mercy|merge|merit|merry|mesh|message|metal|method|middle|midnight|milk|million|mimic|mind|minimum|minor|minute|miracle|mirror|misery|miss|mistake|mix|mixed|mixture|mobile|model|modify|mom|moment|monitor|monkey|monster|month|moon|moral|more|morning|mosquito|mother|motion|motor|mountain|mouse|move|movie|much|muffin|mule|multiply|muscle|museum|mushroom|music|must|mutual|myself|mystery|myth|naive|name|napkin|narrow|nasty|nation|nature|near|neck|need|negative|neglect|neither|nephew|nerve|nest|net|network|neutral|never|news|next|nice|night|noble|noise|nominee|noodle|normal|north|nose|notable|note|nothing|notice|novel|now|nuclear|number|nurse|nut|oak|obey|object|oblige|obscure|observe|obtain|obvious|occur|ocean|october|odor|off|offer|office|often|oil|okay|old|olive|olympic|omit|once|one|onion|online|only|open|opera|opinion|oppose|option|orange|orbit|orchard|order|ordinary|organ|orient|original|orphan|ostrich|other|outdoor|outer|output|outside|oval|oven|over|own|owner|oxygen|oyster|ozone|pact|paddle|page|pair|palace|palm|panda|panel|panic|panther|paper|parade|parent|park|parrot|party|pass|patch|path|patient|patrol|pattern|pause|pave|payment|peace|peanut|pear|peasant|pelican|pen|penalty|pencil|people|pepper|perfect|permit|person|pet|phone|photo|phrase|physical|piano|picnic|picture|piece|pig|pigeon|pill|pilot|pink|pioneer|pipe|pistol|pitch|pizza|place|planet|plastic|plate|play|please|pledge|pluck|plug|plunge|poem|poet|point|polar|pole|police|pond|pony|pool|popular|portion|position|possible|post|potato|pottery|poverty|powder|power|practice|praise|predict|prefer|prepare|present|pretty|prevent|price|pride|primary|print|priority|prison|private|prize|problem|process|produce|profit|program|project|promote|proof|property|prosper|protect|proud|provide|public|pudding|pull|pulp|pulse|pumpkin|punch|pupil|puppy|purchase|purity|purpose|purse|push|put|puzzle|pyramid|quality|quantum|quarter|question|quick|quit|quiz|quote|rabbit|raccoon|race|rack|radar|radio|rail|rain|raise|rally|ramp|ranch|random|range|rapid|rare|rate|rather|raven|raw|razor|ready|real|reason|rebel|rebuild|recall|receive|recipe|record|recycle|reduce|reflect|reform|refuse|region|regret|regular|reject|relax|release|relief|rely|remain|remember|remind|remove|render|renew|rent|reopen|repair|repeat|replace|report|require|rescue|resemble|resist|resource|response|result|retire|retreat|return|reunion|reveal|review|reward|rhythm|rib|ribbon|rice|rich|ride|ridge|rifle|right|rigid|ring|riot|ripple|risk|ritual|rival|river|road|roast|robot|robust|rocket|romance|roof|rookie|room|rose|rotate|rough|round|route|royal|rubber|rude|rug|rule|run|runway|rural|sad|saddle|sadness|safe|sail|salad|salmon|salon|salt|salute|same|sample|sand|satisfy|satoshi|sauce|sausage|save|say|scale|scan|scare|scatter|scene|scheme|school|science|scissors|scorpion|scout|scrap|screen|script|scrub|sea|search|season|seat|second|secret|section|security|seed|seek|segment|select|sell|seminar|senior|sense|sentence|series|service|session|settle|setup|seven|shadow|shaft|shallow|share|shed|shell|sheriff|shield|shift|shine|ship|shiver|shock|shoe|shoot|shop|short|shoulder|shove|shrimp|shrug|shuffle|shy|sibling|sick|side|siege|sight|sign|silent|silk|silly|silver|similar|simple|since|sing|siren|sister|situate|six|size|skate|sketch|ski|skill|skin|skirt|skull|slab|slam|sleep|slender|slice|slide|slight|slim|slogan|slot|slow|slush|small|smart|smile|smoke|smooth|snack|snake|snap|sniff|snow|soap|soccer|social|sock|soda|soft|solar|soldier|solid|solution|solve|someone|song|soon|sorry|sort|soul|sound|soup|source|south|space|spare|spatial|spawn|speak|special|speed|spell|spend|sphere|spice|spider|spike|spin|spirit|split|spoil|sponsor|spoon|sport|spot|spray|spread|spring|spy|square|squeeze|squirrel|stable|stadium|staff|stage|stairs|stamp|stand|start|state|stay|steak|steel|stem|step|stereo|stick|still|sting|stock|stomach|stone|stool|story|stove|strategy|street|strike|strong|struggle|student|stuff|stumble|style|subject|submit|subway|success|such|sudden|suffer|sugar|suggest|suit|summer|sun|sunny|sunset|super|supply|supreme|sure|surface|surge|surprise|surround|survey|suspect|sustain|swallow|swamp|swap|swarm|swear|sweet|swift|swim|swing|switch|sword|symbol|symptom|syrup|system|table|tackle|tag|tail|talent|talk|tank|tape|target|task|taste|tattoo|taxi|teach|team|tell|ten|tenant|tennis|tent|term|test|text|thank|that|theme|then|theory|there|they|thing|this|thought|three|thrive|throw|thumb|thunder|ticket|tide|tiger|tilt|timber|time|tiny|tip|tired|tissue|title|toast|tobacco|today|toddler|toe|together|toilet|token|tomato|tomorrow|tone|tongue|tonight|tool|tooth|top|topic|topple|torch|tornado|tortoise|toss|total|tourist|toward|tower|town|toy|track|trade|traffic|tragic|train|transfer|trap|trash|travel|tray|treat|tree|trend|trial|tribe|trick|trigger|trim|trip|trophy|trouble|truck|true|truly|trumpet|trust|truth|try|tube|tuition|tumble|tuna|tunnel|turkey|turn|turtle|twelve|twenty|twice|twin|twist|two|type|typical|ugly|umbrella|unable|unaware|uncle|uncover|under|undo|unfair|unfold|unhappy|uniform|unique|unit|universe|unknown|unlock|until|unusual|unveil|update|upgrade|uphold|upon|upper|upset|urban|urge|usage|use|used|useful|useless|usual|utility|vacant|vacuum|vague|valid|valley|valve|van|vanish|vapor|various|vast|vault|vehicle|velvet|vendor|venture|venue|verb|verify|version|very|vessel|veteran|viable|vibrant|vicious|victory|video|view|village|vintage|violin|virtual|virus|visa|visit|visual|vital|vivid|vocal|voice|void|volcano|volume|vote|voyage|wage|wagon|wait|walk|wall|walnut|want|warfare|warm|warrior|wash|wasp|waste|water|wave|way|wealth|weapon|wear|weasel|weather|web|wedding|weekend|weird|welcome|west|wet|whale|what|wheat|wheel|when|where|whip|whisper|wide|width|wife|wild|will|win|window|wine|wing|wink|winner|winter|wire|wisdom|wise|wish|witness|wolf|woman|wonder|wood|wool|word|work|world|worry|worth|wrap|wreck|wrestle|wrist|write|wrong|yard|year|yellow|you|young|youth|zebra|zero|zone|zoo".split("|");t.default=r},94953:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.entropyToMnemonic=g,t.generateMnemonic=function(e){return g((0,a.randomAsU8a)(e/3*4))},t.mnemonicToEntropy=y,t.mnemonicToSeedSync=function(e,t){return(0,o.pbkdf2Encode)((0,i.stringToU8a)(d(e)),(0,i.stringToU8a)(`mnemonic${d(t)}`)).password},t.validateMnemonic=function(e){try{y(e)}catch(e){return!1}return!0};var i=r(69338),o=r(12257),a=r(41177),s=r(23082),u=n(r(7506));const c="Invalid mnemonic",f="Invalid entropy",l="Invalid mnemonic checksum";function d(e){return(e||"").normalize("NFKD")}function h(e){return parseInt(e,2)}function p(e){return e.map((e=>e.toString(2).padStart(8,"0"))).join("")}function b(e){return p(Array.from((0,s.sha256AsU8a)(e))).slice(0,8*e.length/32)}function y(e){const t=d(e).split(" ");if(t.length%3!=0)throw new Error(c);const r=t.map((e=>{const t=u.default.indexOf(e);if(-1===t)throw new Error(c);return t.toString(2).padStart(11,"0")})).join(""),n=32*Math.floor(r.length/33),o=r.slice(0,n),a=r.slice(n),s=o.match(/(.{1,8})/g),p=s&&s.map(h);if(!p||p.length%4!=0||p.length<16||p.length>32)throw new Error(f);const y=(0,i.u8aToU8a)(p);if(b(y)!==a)throw new Error(l);return y}function g(e){if(e.length%4!=0||e.length<16||e.length>32)throw new Error(f);const t=`${p(Array.from(e))}${b(e)}`.match(/(.{1,11})/g),r=t&&t.map((e=>u.default[h(e)]));if(!r||r.length<12)throw new Error("Unable to map entropy to mnemonic");return r.join(" ")}},86697:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mnemonicGenerate=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:12,t=arguments.length>1?arguments[1]:void 0;return!n.hasBigInt||!t&&(0,i.isReady)()?(0,i.bip39Generate)(e):(0,o.generateMnemonic)(e)};var n=r(69338),i=r(56431),o=r(94953)},3050:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"mnemonicGenerate",{enumerable:!0,get:function(){return n.mnemonicGenerate}}),Object.defineProperty(t,"mnemonicToEntropy",{enumerable:!0,get:function(){return i.mnemonicToEntropy}}),Object.defineProperty(t,"mnemonicToLegacySeed",{enumerable:!0,get:function(){return o.mnemonicToLegacySeed}}),Object.defineProperty(t,"mnemonicToMiniSecret",{enumerable:!0,get:function(){return a.mnemonicToMiniSecret}}),Object.defineProperty(t,"mnemonicValidate",{enumerable:!0,get:function(){return s.mnemonicValidate}});var n=r(86697),i=r(29620),o=r(74324),a=r(78089),s=r(56539)},29620:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mnemonicToEntropy=function(e,t){return!n.hasBigInt||!t&&(0,i.isReady)()?(0,i.bip39ToEntropy)(e):(0,o.mnemonicToEntropy)(e)};var n=r(69338),i=r(56431),o=r(94953)},74324:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mnemonicToLegacySeed=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:32;if(!(0,a.mnemonicValidate)(e))throw new Error("Invalid bip39 mnemonic specified");if(![32,64].includes(s))throw new Error(`Invalid seed length ${s}, expected 32 or 64`);return 32===s?!n.hasBigInt||!r&&(0,i.isReady)()?(0,i.bip39ToSeed)(e,t):(0,o.mnemonicToSeedSync)(e,t).subarray(0,32):(0,o.mnemonicToSeedSync)(e,t)};var n=r(69338),i=r(56431),o=r(94953),a=r(56539)},78089:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mnemonicToMiniSecret=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0;if(!(0,s.mnemonicValidate)(e))throw new Error("Invalid bip39 mnemonic specified");if(!r&&(0,i.isReady)())return(0,i.bip39ToMiniSecret)(e,t);const u=(0,a.mnemonicToEntropy)(e),c=(0,n.stringToU8a)(`mnemonic${t}`);return(0,o.pbkdf2Encode)(u,c).password.slice(0,32)};var n=r(69338),i=r(56431),o=r(12257),a=r(29620),s=r(56539)},56539:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mnemonicValidate=function(e,t){return!n.hasBigInt||!t&&(0,i.isReady)()?(0,i.bip39Validate)(e):(0,o.validateMnemonic)(e)};var n=r(69338),i=r(56431),o=r(94953)},621:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.naclBoxPairFromSecret=function(e){return i.default.box.keyPair.fromSecretKey(e.slice(0,32))};var i=n(r(50780))},84627:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.naclDecrypt=function(e,t,r){return i.default.secretbox.open(e,t,r)||null};var i=n(r(50780))},37945:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.naclEncrypt=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,o.randomAsU8a)(24);return{encrypted:i.default.secretbox(e,r,t),nonce:r}};var i=n(r(50780)),o=r(33571)},69459:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"naclBoxPairFromSecret",{enumerable:!0,get:function(){return o.naclBoxPairFromSecret}}),Object.defineProperty(t,"naclDecrypt",{enumerable:!0,get:function(){return n.naclDecrypt}}),Object.defineProperty(t,"naclEncrypt",{enumerable:!0,get:function(){return i.naclEncrypt}}),Object.defineProperty(t,"naclOpen",{enumerable:!0,get:function(){return a.naclOpen}}),Object.defineProperty(t,"naclSeal",{enumerable:!0,get:function(){return s.naclSeal}});var n=r(84627),i=r(37945),o=r(621),a=r(10940),s=r(78362)},10940:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.naclOpen=function(e,t,r,n){return i.default.box.open(e,t,r,n)||null};var i=n(r(50780))},78362:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.naclSeal=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:(0,o.randomAsU8a)(24);return{nonce:n,sealed:i.default.box(e,n,r,t)}};var i=n(r(50780)),o=r(33571)},43545:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"allNetworks",{enumerable:!0,get:function(){return n.allNetworks}}),Object.defineProperty(t,"availableNetworks",{enumerable:!0,get:function(){return n.availableNetworks}}),Object.defineProperty(t,"selectableNetworks",{enumerable:!0,get:function(){return n.selectableNetworks}});var n=r(90015)},99377:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/util-crypto",path:"/",type:"cjs",version:"10.2.1"}},89923:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pbkdf2Encode=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,s.randomAsU8a)(),r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2048,u=arguments.length>3?arguments[3]:void 0;const c=(0,o.u8aToU8a)(e),f=(0,o.u8aToU8a)(t);return{password:!o.hasBigInt||!u&&(0,a.isReady)()?(0,a.pbkdf2)(c,f,r):(0,n.pbkdf2)(i.sha512,c,f,{c:r,dkLen:64}),rounds:r,salt:t}};var n=r(29023),i=r(86262),o=r(69338),a=r(56431),s=r(33571)},12257:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pbkdf2Encode",{enumerable:!0,get:function(){return n.pbkdf2Encode}});var n=r(89923)},3296:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomAsNumber=function(){return(0,n.hexToBn)((0,i.randomAsHex)(8)).and(o).toNumber()};var n=r(69338),i=r(33571);const o=new n.BN(9007199254740991)},33571:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomAsHex=void 0,t.randomAsU8a=i;var n=r(41649);function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32;return(0,n.getRandomValues)(new Uint8Array(e))}const o=(0,r(50162).createAsHex)(i);t.randomAsHex=o},41177:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"randomAsHex",{enumerable:!0,get:function(){return i.randomAsHex}}),Object.defineProperty(t,"randomAsNumber",{enumerable:!0,get:function(){return n.randomAsNumber}}),Object.defineProperty(t,"randomAsU8a",{enumerable:!0,get:function(){return i.randomAsU8a}});var n=r(3296),i=r(33571)},16199:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_PARAMS=void 0,t.DEFAULT_PARAMS={N:32768,p:1,r:8}},52951:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scryptEncode=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,a.randomAsU8a)(),r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.DEFAULT_PARAMS,u=arguments.length>3?arguments[3]:void 0;const c=(0,i.u8aToU8a)(e);return{params:r,password:!i.hasBigInt||!u&&(0,o.isReady)()?(0,o.scrypt)(c,t,Math.log2(r.N),r.r,r.p):(0,n.scrypt)(c,t,(0,i.objectSpread)({dkLen:64},r)),salt:t}};var n=r(69514),i=r(69338),o=r(56431),a=r(33571),s=r(16199)},77440:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scryptFromU8a=function(e){const t=e.subarray(0,32),r=(0,n.u8aToBn)(e.subarray(32,36),i.BN_LE_OPTS).toNumber(),a=(0,n.u8aToBn)(e.subarray(36,40),i.BN_LE_OPTS).toNumber(),s=(0,n.u8aToBn)(e.subarray(40,44),i.BN_LE_OPTS).toNumber();if(r!==o.DEFAULT_PARAMS.N||a!==o.DEFAULT_PARAMS.p||s!==o.DEFAULT_PARAMS.r)throw new Error("Invalid injected scrypt params found");return{params:{N:r,p:a,r:s},salt:t}};var n=r(69338),i=r(32421),o=r(16199)},32793:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"scryptEncode",{enumerable:!0,get:function(){return n.scryptEncode}}),Object.defineProperty(t,"scryptFromU8a",{enumerable:!0,get:function(){return i.scryptFromU8a}}),Object.defineProperty(t,"scryptToU8a",{enumerable:!0,get:function(){return o.scryptToU8a}});var n=r(52951),i=r(77440),o=r(32757)},32757:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scryptToU8a=function(e,t){let{N:r,p:o,r:a}=t;return(0,n.u8aConcat)(e,(0,n.bnToU8a)(r,i.BN_LE_32_OPTS),(0,n.bnToU8a)(o,i.BN_LE_32_OPTS),(0,n.bnToU8a)(a,i.BN_LE_32_OPTS))};var n=r(69338),i=r(32421)},10189:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.secp256k1Compress=function(e,t){if(33===e.length)return e;if(65!==e.length)throw new Error("Invalid publicKey provided");return!i.hasBigInt||!t&&(0,o.isReady)()?(0,o.secp256k1Compress)(e):n.Point.fromHex(e).toRawBytes(!0)};var n=r(79656),i=r(69338),o=r(56431)},64209:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.secp256k1DeriveHard=function(e,t){if(!(0,n.isU8a)(t)||32!==t.length)throw new Error("Invalid chainCode passed to derive");return(0,i.blake2AsU8a)((0,n.u8aConcat)(o,e,t),256)};var n=r(69338),i=r(4410);const o=(0,n.compactAddLength)((0,n.stringToU8a)("Secp256k1HDKD"))},41447:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.secp256k1Expand=function(e,t){if(65===e.length)return e.subarray(1);if(33!==e.length)throw new Error("Invalid publicKey provided");if(!i.hasBigInt||!t&&(0,o.isReady)())return(0,o.secp256k1Expand)(e).subarray(1);const{x:r,y:s}=n.Point.fromHex(e);return(0,i.u8aConcat)((0,i.bnToU8a)(r,a.BN_BE_256_OPTS),(0,i.bnToU8a)(s,a.BN_BE_256_OPTS))};var n=r(79656),i=r(69338),o=r(56431),a=r(32421)},92156:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasher=function(e,t,r){return"keccak"===e?(0,i.keccakAsU8a)(t,void 0,r):(0,n.blake2AsU8a)(t,void 0,void 0,r)};var n=r(23172),i=r(9774)},29640:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"secp256k1Compress",{enumerable:!0,get:function(){return n.secp256k1Compress}}),Object.defineProperty(t,"secp256k1Expand",{enumerable:!0,get:function(){return i.secp256k1Expand}}),Object.defineProperty(t,"secp256k1PairFromSeed",{enumerable:!0,get:function(){return o.secp256k1PairFromSeed}}),Object.defineProperty(t,"secp256k1PrivateKeyTweakAdd",{enumerable:!0,get:function(){return u.secp256k1PrivateKeyTweakAdd}}),Object.defineProperty(t,"secp256k1Recover",{enumerable:!0,get:function(){return a.secp256k1Recover}}),Object.defineProperty(t,"secp256k1Sign",{enumerable:!0,get:function(){return s.secp256k1Sign}}),Object.defineProperty(t,"secp256k1Verify",{enumerable:!0,get:function(){return c.secp256k1Verify}});var n=r(10189),i=r(41447),o=r(2793),a=r(75236),s=r(59398),u=r(43847),c=r(35270)},2793:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.secp256k1PairFromSeed=function(e,t){if(32!==e.length)throw new Error("Expected valid 32-byte private key as a seed");if(!i.hasBigInt||!t&&(0,o.isReady)()){const t=(0,o.secp256k1FromSeed)(e),r=t.slice(32);if((0,i.u8aEmpty)(r))throw new Error("Invalid publicKey generated from WASM interface");return{publicKey:r,secretKey:t.slice(0,32)}}return{publicKey:(0,n.getPublicKey)(e,!0),secretKey:e}};var n=r(79656),i=r(69338),o=r(56431)},75236:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.secp256k1Recover=function(e,t,r){let u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"blake2",c=arguments.length>4?arguments[4]:void 0;const f=(0,i.u8aToU8a)(t).subarray(0,64),l=(0,i.u8aToU8a)(e),d=!i.hasBigInt||!c&&(0,o.isReady)()?(0,o.secp256k1Recover)(l,f,r):(0,n.recoverPublicKey)(l,n.Signature.fromCompact(f).toRawBytes(),r);if(!d)throw new Error("Unable to recover publicKey from signature");return"keccak"===u?(0,s.secp256k1Expand)(d,c):(0,a.secp256k1Compress)(d,c)};var n=r(79656),i=r(69338),o=r(56431),a=r(10189),s=r(41447)},59398:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.secp256k1Sign=function(e,t){let{secretKey:r}=t,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"blake2",c=arguments.length>3?arguments[3]:void 0;if(32!==(null==r?void 0:r.length))throw new Error("Expected valid secp256k1 secretKey, 32-bytes");const f=(0,s.hasher)(u,e,c);if(!i.hasBigInt||!c&&(0,o.isReady)())return(0,o.secp256k1Sign)(f,r);const[l,d]=(0,n.signSync)(f,r,{canonical:!0,recovered:!0}),{r:h,s:p}=n.Signature.fromHex(l);return(0,i.u8aConcat)((0,i.bnToU8a)(h,a.BN_BE_256_OPTS),(0,i.bnToU8a)(p,a.BN_BE_256_OPTS),new Uint8Array([d||0]))};var n=r(79656),i=r(69338),o=r(56431),a=r(32421),s=r(92156)},43847:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.secp256k1PrivateKeyTweakAdd=function(e,t,r){if(!(0,n.isU8a)(e)||32!==e.length)throw new Error("Expected seckey to be an Uint8Array with length 32");if(!(0,n.isU8a)(t)||32!==t.length)throw new Error("Expected tweak to be an Uint8Array with length 32");return!n.hasBigInt||r?function(e,t){const r=new n.BN(t);if(r.cmp(u)>=0)throw new Error("Tweak parameter is out of range");if(r.iadd(new n.BN(e)),r.cmp(u)>=0&&r.isub(u),r.isZero())throw new Error("Invalid resulting private key");return(0,n.bnToU8a)(r,o.BN_BE_256_OPTS)}(e,t):function(e,t){let r=(0,n.u8aToBigInt)(t,o.BN_BE_OPTS);if(r>=s)throw new Error("Tweak parameter is out of range");if(r+=(0,n.u8aToBigInt)(e,o.BN_BE_OPTS),r>=s&&(r-=s),r===n._0n)throw new Error("Invalid resulting private key");return(0,n.nToU8a)(r,o.BN_BE_256_OPTS)}(e,t)};var n=r(69338),i=r(68107),o=r(32421);const a="ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141".replace(/ /g,""),s=(0,i.BigInt)(`0x${a}`),u=new n.BN(a,"hex")},35270:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.secp256k1Verify=function(e,t,r){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"blake2",s=arguments.length>4?arguments[4]:void 0;const u=(0,n.u8aToU8a)(t);if(65!==u.length)throw new Error(`Expected signature with 65 bytes, ${u.length} found instead`);const c=(0,o.secp256k1Recover)((0,i.hasher)(a,e),u,u[64],a,s),f=(0,i.hasher)(a,c,s),l=(0,n.u8aToU8a)(r);return(0,n.u8aEq)(c,l)||("keccak"===a?(0,n.u8aEq)(f.slice(-20),l.slice(-20)):(0,n.u8aEq)(f,l))};var n=r(69338),i=r(92156),o=r(75236)},32871:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shaAsU8a=t.sha512AsU8a=t.sha256AsU8a=void 0;var n=r(23061),i=r(86262),o=r(56431),a=r(50162);const s=(0,a.createDualHasher)({256:o.sha256,512:o.sha512},{256:n.sha256,512:i.sha512});t.shaAsU8a=s;const u=(0,a.createBitHasher)(256,s);t.sha256AsU8a=u;const c=(0,a.createBitHasher)(512,s);t.sha512AsU8a=c},23082:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"sha256AsU8a",{enumerable:!0,get:function(){return n.sha256AsU8a}}),Object.defineProperty(t,"sha512AsU8a",{enumerable:!0,get:function(){return n.sha512AsU8a}}),Object.defineProperty(t,"shaAsU8a",{enumerable:!0,get:function(){return n.shaAsU8a}});var n=r(32871)},28571:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"signatureVerify",{enumerable:!0,get:function(){return n.signatureVerify}});var n=r(91712)},91712:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.signatureVerify=function(e,t,r){const o=(0,n.u8aToU8a)(t);if(![64,65,66].includes(o.length))throw new Error(`Invalid signature length, expected [64..66] bytes, found ${o.length}`);const a=(0,i.decodeAddress)(r),s={message:(0,n.u8aToU8a)(e),publicKey:a,signature:o},u={crypto:"none",isValid:!1,isWrapped:(0,n.u8aIsWrapped)(s.message,!0),publicKey:a},c=(0,n.u8aIsWrapped)(s.message,!1),f=function(e){return[0,1,2].includes(e[0])&&[65,66].includes(e.length)?h:d}(o);return f(u,s),"none"!==u.crypto||u.isWrapped&&!c?u:(s.message=c?(0,n.u8aUnwrapBytes)(s.message):(0,n.u8aWrapBytes)(s.message),f(u,s))};var n=r(69338),i=r(85709),o=r(55535),a=r(35270),s=r(16926);const u=e=>(t,r,n)=>(0,a.secp256k1Verify)(t,r,n,e),c=[["ecdsa",u("blake2")],["ethereum",u("keccak")]],f=[["ed25519",o.ed25519Verify],["sr25519",s.sr25519Verify],...c],l=["ed25519","sr25519","ecdsa"];function d(e,t){let{message:r,publicKey:n,signature:i}=t,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f;return e.isValid=o.some((t=>{let[o,a]=t;try{if(a(r,i,n))return e.crypto=o,!0}catch(e){}return!1})),e}function h(e,t){let{message:r,publicKey:n,signature:i}=t;if(![0,1,2].includes(i[0]))throw new Error(`Unknown crypto type, expected signature prefix [0..2], found ${i[0]}`);const a=l[i[0]]||"none";e.crypto=a;try{e.isValid={ecdsa:()=>d(e,{message:r,publicKey:n,signature:i.subarray(1)},c).isValid,ed25519:()=>(0,o.ed25519Verify)(r,i.subarray(1),n),none:()=>{throw Error("no verify for `none` crypto type")},sr25519:()=>(0,s.sr25519Verify)(r,i.subarray(1),n)}[a]()}catch(e){}return e}},93186:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sr25519Agreement=function(e,t){const r=(0,n.u8aToU8a)(e),o=(0,n.u8aToU8a)(t);if(32!==o.length)throw new Error(`Invalid publicKey, received ${o.length} bytes, expected 32`);if(64!==r.length)throw new Error(`Invalid secretKey, received ${r.length} bytes, expected 64`);return(0,i.sr25519Agree)(o,r)};var n=r(69338),i=r(56431)},14258:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDeriveFn=function(e){return(t,r)=>{if(!(0,n.isU8a)(r)||32!==r.length)throw new Error("Invalid chainCode passed to derive");return(0,i.sr25519PairFromU8a)(e((0,o.sr25519KeypairToU8a)(t),r))}};var n=r(69338),i=r(72797),o=r(76203)},582:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sr25519DeriveHard=void 0;var n=r(56431);const i=(0,r(14258).createDeriveFn)(n.sr25519DeriveKeypairHard);t.sr25519DeriveHard=i},34160:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sr25519DerivePublic=function(e,t){const r=(0,n.u8aToU8a)(e);if(!(0,n.isU8a)(t)||32!==t.length)throw new Error("Invalid chainCode passed to derive");if(32!==r.length)throw new Error(`Invalid publicKey, received ${r.length} bytes, expected 32`);return(0,i.sr25519DerivePublicSoft)(r,t)};var n=r(69338),i=r(56431)},43576:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sr25519DeriveSoft=void 0;var n=r(56431);const i=(0,r(14258).createDeriveFn)(n.sr25519DeriveKeypairSoft);t.sr25519DeriveSoft=i},31730:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"sr25519Agreement",{enumerable:!0,get:function(){return n.sr25519Agreement}}),Object.defineProperty(t,"sr25519DeriveHard",{enumerable:!0,get:function(){return i.sr25519DeriveHard}}),Object.defineProperty(t,"sr25519DerivePublic",{enumerable:!0,get:function(){return o.sr25519DerivePublic}}),Object.defineProperty(t,"sr25519DeriveSoft",{enumerable:!0,get:function(){return a.sr25519DeriveSoft}}),Object.defineProperty(t,"sr25519PairFromSeed",{enumerable:!0,get:function(){return s.sr25519PairFromSeed}}),Object.defineProperty(t,"sr25519Sign",{enumerable:!0,get:function(){return u.sr25519Sign}}),Object.defineProperty(t,"sr25519Verify",{enumerable:!0,get:function(){return c.sr25519Verify}}),Object.defineProperty(t,"sr25519VrfSign",{enumerable:!0,get:function(){return f.sr25519VrfSign}}),Object.defineProperty(t,"sr25519VrfVerify",{enumerable:!0,get:function(){return l.sr25519VrfVerify}});var n=r(93186),i=r(582),o=r(34160),a=r(43576),s=r(31741),u=r(18139),c=r(16926),f=r(5213),l=r(64536)},31741:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sr25519PairFromSeed=function(e){const t=(0,n.u8aToU8a)(e);if(32!==t.length)throw new Error(`Expected a seed matching 32 bytes, found ${t.length}`);return(0,o.sr25519PairFromU8a)((0,i.sr25519KeypairFromSeed)(t))};var n=r(69338),i=r(56431),o=r(72797)},72797:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sr25519PairFromU8a=function(e){const t=(0,n.u8aToU8a)(e);if(t.length!==o)throw new Error(`Expected keypair with ${o} bytes, found ${t.length}`);return{publicKey:t.slice(i,o),secretKey:t.slice(0,i)}};var n=r(69338);const i=64,o=i+32},76203:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sr25519KeypairToU8a=function(e){let{publicKey:t,secretKey:r}=e;return(0,n.u8aConcat)(r,t).slice()};var n=r(69338)},18139:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sr25519Sign=function(e,t){let{publicKey:r,secretKey:o}=t;if(32!==(null==r?void 0:r.length))throw new Error("Expected a valid publicKey, 32-bytes");if(64!==(null==o?void 0:o.length))throw new Error("Expected a valid secretKey, 64-bytes");return(0,i.sr25519Sign)(r,o,(0,n.u8aToU8a)(e))};var n=r(69338),i=r(56431)},16926:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sr25519Verify=function(e,t,r){const o=(0,n.u8aToU8a)(r),a=(0,n.u8aToU8a)(t);if(32!==o.length)throw new Error(`Invalid publicKey, received ${o.length} bytes, expected 32`);if(64!==a.length)throw new Error(`Invalid signature, received ${a.length} bytes, expected 64`);return(0,i.sr25519Verify)(a,(0,n.u8aToU8a)(e),o)};var n=r(69338),i=r(56431)},5213:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sr25519VrfSign=function(e,t){let{secretKey:r}=t,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o;if(64!==(null==r?void 0:r.length))throw new Error("Invalid secretKey, expected 64-bytes");return(0,i.vrfSign)(r,(0,n.u8aToU8a)(a),(0,n.u8aToU8a)(e),(0,n.u8aToU8a)(s))};var n=r(69338),i=r(56431);const o=new Uint8Array},64536:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sr25519VrfVerify=function(e,t,r){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:o;const u=(0,n.u8aToU8a)(r),c=(0,n.u8aToU8a)(t);if(32!==u.length)throw new Error("Invalid publicKey, expected 32-bytes");if(96!==c.length)throw new Error("Invalid vrfSign output, expected 96 bytes");return(0,i.vrfVerify)(u,(0,n.u8aToU8a)(a),(0,n.u8aToU8a)(e),(0,n.u8aToU8a)(s),c)};var n=r(69338),i=r(56431);const o=new Uint8Array},806:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.xxhashAsHex=void 0,t.xxhashAsU8a=s;var n=r(69338),i=r(56431),o=r(50162),a=r(75748);function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:64,r=arguments.length>2?arguments[2]:void 0;const o=Math.ceil(t/64),s=(0,n.u8aToU8a)(e);if(!n.hasBigInt||!r&&(0,i.isReady)())return(0,i.twox)(s,o);const u=new Uint8Array(8*o);for(let e=0;e<o;e++)u.set((0,a.xxhash64)(s,e).reverse(),8*e);return u}const u=(0,o.createAsHex)(s);t.xxhashAsHex=u},29151:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"xxhashAsHex",{enumerable:!0,get:function(){return n.xxhashAsHex}}),Object.defineProperty(t,"xxhashAsU8a",{enumerable:!0,get:function(){return n.xxhashAsU8a}});var n=r(806)},75748:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.xxhash64=function(e,t){const{seed:r,u8a:p,u8asize:x,v1:S,v2:A,v3:E,v4:M}=function(e,t){if(t.length<32)return e.u8a.set(t),e.u8asize=t.length,e;const r=t.length-32;let n=0;if(r>=0){const i=e=>o*k(e+a*P(t,n,4),v);do{e.v1=i(e.v1),n+=8,e.v2=i(e.v2),n+=8,e.v3=i(e.v3),n+=8,e.v4=i(e.v4),n+=8}while(n<=r)}return n<t.length&&(e.u8a.set(t.subarray(n,t.length)),e.u8asize=t.length-n),e}(function(e){const t=(0,i.BigInt)(e);return{seed:t,u8a:new Uint8Array(32),u8asize:0,v1:t+o+a,v2:t+a,v3:t,v4:t-o}}(t),e);let j=0,T=f&(0,i.BigInt)(e.length)+(e.length>=32?((((k(S,n._1n)+k(A,l)+k(E,h)+k(M,b)^o*k(S*a,v))*o+u^o*k(A*a,v))*o+u^o*k(E*a,v))*o+u^o*k(M*a,v))*o+u:r+c);for(;j<=x-8;)T=f&u+o*k(T^o*k(a*P(p,j,4),v),g),j+=8;for(j+4<=x&&(T=f&s+a*k(T^o*P(p,j,2),y),j+=4);j<x;)T=f&o*k(T^c*(0,i.BigInt)(p[j++]),d);return T=f&a*(T^T>>_),T=f&s*(T^T>>m),function(e){const t=new Uint8Array(8);for(let r=7;r>=0;r--)t[r]=Number(e%O),e/=O;return t}(f&(T^T>>w))};var n=r(69338),i=r(68107);const o=(0,i.BigInt)("11400714785074694791"),a=(0,i.BigInt)("14029467366897019727"),s=(0,i.BigInt)("1609587929392839161"),u=(0,i.BigInt)("9650029242287828579"),c=(0,i.BigInt)("2870177450012600261"),f=(0,i.BigInt)("0xffffffffffffffff"),l=(0,i.BigInt)(7),d=(0,i.BigInt)(11),h=(0,i.BigInt)(12),p=(0,i.BigInt)(16),b=(0,i.BigInt)(18),y=(0,i.BigInt)(23),g=(0,i.BigInt)(27),m=(0,i.BigInt)(29),v=(0,i.BigInt)(31),w=(0,i.BigInt)(32),_=(0,i.BigInt)(33),x=(0,i.BigInt)(64),O=(0,i.BigInt)(256);function k(e,t){const r=e&f;return(r<<t|r>>x-t)&f}function P(e,t,r){const o=new Array(r);let a=0;for(let n=0;n<r;n++,a+=2)o[n]=(0,i.BigInt)(e[t+a]|e[t+1+a]<<8);let s=n._0n;for(let e=r-1;e>=0;e--)s=(s<<p)+o[e];return s}},93549:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayChunk=function(e,t){const r=Math.ceil(e.length/t);if(1===r)return[e];const n=Array(r);for(let i=0;i<r;i++){const r=i*t;n[i]=e.slice(r,r+t)}return n}},12761:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayFilter=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.filter((e=>void 0!==e&&(t||null!==e)))}},16599:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayFlatten=function(e){if(0===e.length)return[];if(1===e.length)return e[0];let t=0;for(let r=0;r<e.length;r++)t+=e[r].length;const r=new Array(t);let n=-1;for(let t=0;t<e.length;t++){const i=e[t];for(let e=0;e<i.length;e++)r[++n]=i[e]}return r}},48916:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"arrayChunk",{enumerable:!0,get:function(){return n.arrayChunk}}),Object.defineProperty(t,"arrayFilter",{enumerable:!0,get:function(){return i.arrayFilter}}),Object.defineProperty(t,"arrayFlatten",{enumerable:!0,get:function(){return o.arrayFlatten}}),Object.defineProperty(t,"arrayRange",{enumerable:!0,get:function(){return a.arrayRange}}),Object.defineProperty(t,"arrayShuffle",{enumerable:!0,get:function(){return s.arrayShuffle}}),Object.defineProperty(t,"arrayUnzip",{enumerable:!0,get:function(){return u.arrayUnzip}}),Object.defineProperty(t,"arrayZip",{enumerable:!0,get:function(){return c.arrayZip}});var n=r(93549),i=r(12761),o=r(16599),a=r(92793),s=r(24698),u=r(53345),c=r(37543)},92793:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayRange=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e<=0)throw new Error("Expected non-zero, positive number as a range size");const r=new Array(e);for(let n=0;n<e;n++)r[n]=n+t;return r}},24698:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayShuffle=function(e){const t=e.slice();let r=t.length;if(1===r)return t;for(;0!==r;){const e=~~(Math.random()*r);r--,[t[r],t[e]]=[t[e],t[r]]}return t}},53345:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayUnzip=function(e){const t=new Array(e.length),r=new Array(e.length);for(let n=0;n<e.length;n++)[t[n],r[n]]=e[n];return[t,r]}},37543:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayZip=function(e,t){const r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=[e[n],t[n]];return r}},57234:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assert=i,t.assertReturn=function(e,t){return i(null!=e,t),e},t.assertUnreachable=function(e){throw new Error(`This codepath should be unreachable. Unhandled input: ${e}`)};var n=r(23146);function i(e,t){if(!e)throw new Error((0,n.isFunction)(t)?t():t)}},44377:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._2pow53n=t._1n=t._1Qn=t._1Mn=t._1Bn=t._0n=void 0;var n=r(68107);const i=(0,n.BigInt)(0);t._0n=i;const o=(0,n.BigInt)(1);t._1n=o;const a=(0,n.BigInt)(1e6);t._1Mn=a;const s=(0,n.BigInt)(1e9);t._1Bn=s;const u=s*s;t._1Qn=u;const c=(0,n.BigInt)(Number.MAX_SAFE_INTEGER);t._2pow53n=c},16413:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCmp=function(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(0===r.length)throw new Error("Must provide one or more arguments");let i=r[0];for(let t=1;t<r.length;t++)e(r[t],i)&&(i=r[t]);return i}}},82952:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={nSqrt:!0,nToBigInt:!0,nMax:!0,nMin:!0,nToHex:!0,nToU8a:!0};Object.defineProperty(t,"nMax",{enumerable:!0,get:function(){return s.nMax}}),Object.defineProperty(t,"nMin",{enumerable:!0,get:function(){return s.nMin}}),Object.defineProperty(t,"nSqrt",{enumerable:!0,get:function(){return o.nSqrt}}),Object.defineProperty(t,"nToBigInt",{enumerable:!0,get:function(){return a.nToBigInt}}),Object.defineProperty(t,"nToHex",{enumerable:!0,get:function(){return u.nToHex}}),Object.defineProperty(t,"nToU8a",{enumerable:!0,get:function(){return c.nToU8a}});var i=r(44377);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=r(66900),a=r(25335),s=r(68289),u=r(14433),c=r(18129)},68289:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nMin=t.nMax=void 0;var n=r(16413);const i=(0,n.createCmp)(((e,t)=>e>t));t.nMax=i;const o=(0,n.createCmp)(((e,t)=>e<t));t.nMin=o},66900:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SQRT_MAX_SAFE_INTEGER=void 0,t.nSqrt=function(e){const t=(0,o.nToBigInt)(e);if(t<i._0n)throw new Error("square root of negative numbers is not supported");if(t<=i._2pow53n)return(0,n.BigInt)(~~Math.sqrt(Number(t)));let r=a;for(;;){const e=t/r+r>>i._1n;if(r===e||r===e-i._1n)return r;r=e}};var n=r(68107),i=r(44377),o=r(25335);const a=(0,n.BigInt)(94906265);t.SQRT_MAX_SAFE_INTEGER=a},25335:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nToBigInt=function(e){return"bigint"==typeof e?e:e?(0,a.isHex)(e)?(0,i.hexToBigInt)(e.toString()):(0,o.isBn)(e)?(0,n.BigInt)(e.toString()):(0,s.isToBigInt)(e)?e.toBigInt():(0,u.isToBn)(e)?(0,n.BigInt)(e.toBn().toString()):(0,n.BigInt)(e):(0,n.BigInt)(0)};var n=r(68107),i=r(55972),o=r(80928),a=r(853),s=r(61720),u=r(40404)},14433:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nToHex=function(e){let{bitLength:t,isLe:r=!1,isNegative:o=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.u8aToHex)((0,i.nToU8a)(e||0,{bitLength:t,isLe:r,isNegative:o}))};var n=r(58720),i=r(18129)},18129:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nToU8a=function(e){let{bitLength:t=-1,isLe:r=!0,isNegative:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const u=(0,o.nToBigInt)(e);if(u===i._0n)return-1===t?new Uint8Array(1):new Uint8Array(Math.ceil((t||0)/8));const c=function(e,t,r){const n=[];for(r&&(e=(e+i._1n)*-i._1n);e!==i._0n;){const i=e%a,o=Number(r?i^s:i);t?n.push(o):n.unshift(o),e=(e-i)/a}return Uint8Array.from(n)}(u,r,n);if(-1===t)return c;const f=Math.ceil((t||0)/8),l=new Uint8Array(f);return n&&l.fill(255),l.set(c,r?0:f-c.length),l};var n=r(68107),i=r(44377),o=r(25335);const a=(0,n.BigInt)(256),s=(0,n.BigInt)(255)},58418:(e,t,r)=>{"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BN",{enumerable:!0,get:function(){return i.default}});var i=n(r(13550))},30850:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BN_ZERO=t.BN_TWO=t.BN_THREE=t.BN_THOUSAND=t.BN_TEN=t.BN_SIX=t.BN_SEVEN=t.BN_QUINTILL=t.BN_ONE=t.BN_NINE=t.BN_MILLION=t.BN_MAX_INTEGER=t.BN_HUNDRED=t.BN_FOUR=t.BN_FIVE=t.BN_EIGHT=t.BN_BILLION=void 0;var n=r(58418);const i=new n.BN(0);t.BN_ZERO=i;const o=new n.BN(1);t.BN_ONE=o;const a=new n.BN(2);t.BN_TWO=a;const s=new n.BN(3);t.BN_THREE=s;const u=new n.BN(4);t.BN_FOUR=u;const c=new n.BN(5);t.BN_FIVE=c;const f=new n.BN(6);t.BN_SIX=f;const l=new n.BN(7);t.BN_SEVEN=l;const d=new n.BN(8);t.BN_EIGHT=d;const h=new n.BN(9);t.BN_NINE=h;const p=new n.BN(10);t.BN_TEN=p;const b=new n.BN(100);t.BN_HUNDRED=b;const y=new n.BN(1e3);t.BN_THOUSAND=y;const g=new n.BN(1e6);t.BN_MILLION=g;const m=new n.BN(1e9);t.BN_BILLION=m;const v=m.mul(m);t.BN_QUINTILL=v;const w=new n.BN(Number.MAX_SAFE_INTEGER);t.BN_MAX_INTEGER=w},57107:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bnFromHex",{enumerable:!0,get:function(){return n.hexToBn}});var n=r(44610)},54787:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={BN:!0,bnFromHex:!0,bnMax:!0,bnMin:!0,bnSqrt:!0,bnToBn:!0,bnToHex:!0,bnToU8a:!0};Object.defineProperty(t,"BN",{enumerable:!0,get:function(){return o.BN}}),Object.defineProperty(t,"bnFromHex",{enumerable:!0,get:function(){return a.bnFromHex}}),Object.defineProperty(t,"bnMax",{enumerable:!0,get:function(){return s.bnMax}}),Object.defineProperty(t,"bnMin",{enumerable:!0,get:function(){return s.bnMin}}),Object.defineProperty(t,"bnSqrt",{enumerable:!0,get:function(){return u.bnSqrt}}),Object.defineProperty(t,"bnToBn",{enumerable:!0,get:function(){return c.bnToBn}}),Object.defineProperty(t,"bnToHex",{enumerable:!0,get:function(){return f.bnToHex}}),Object.defineProperty(t,"bnToU8a",{enumerable:!0,get:function(){return l.bnToU8a}});var i=r(30850);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=r(58418),a=r(57107),s=r(45615),u=r(61480),c=r(78218),f=r(98522),l=r(63845)},45615:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnMin=t.bnMax=void 0;var n=r(16413);const i=(0,n.createCmp)(((e,t)=>e.gt(t)));t.bnMax=i;const o=(0,n.createCmp)(((e,t)=>e.lt(t)));t.bnMin=o},61480:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SQRT_MAX_SAFE_INTEGER=void 0,t.bnSqrt=function(e){const t=(0,o.bnToBn)(e);if(t.isNeg())throw new Error("square root of negative numbers is not supported");if(t.lte(i.BN_MAX_INTEGER))return new n.BN(~~Math.sqrt(t.toNumber()));let r=a.clone();for(;;){const e=t.div(r).iadd(r).ishrn(1);if(r.eq(e)||r.eq(e.sub(i.BN_ONE)))return r;r=e}};var n=r(58418),i=r(30850),o=r(78218);const a=new n.BN(94906265);t.SQRT_MAX_SAFE_INTEGER=a},78218:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnToBn=function(e){return e?u.BN.isBN(e)?e:(0,o.isHex)(e)?(0,n.hexToBn)(e.toString()):(0,i.isBigInt)(e)?new u.BN(e.toString()):(0,s.isToBn)(e)?e.toBn():(0,a.isToBigInt)(e)?new u.BN(e.toBigInt().toString()):new u.BN(e):new u.BN(0)};var n=r(44610),i=r(36867),o=r(853),a=r(61720),s=r(40404),u=r(58418)},98522:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnToHex=function(e){let{bitLength:t=-1,isLe:r=!1,isNegative:o=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.u8aToHex)((0,i.bnToU8a)(e,{bitLength:t,isLe:r,isNegative:o}))};var n=r(58720),i=r(63845)},63845:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bnToU8a=function(e){let{bitLength:t=-1,isLe:r=!0,isNegative:o=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;const a=(0,n.bnToBn)(e),s=-1===t?Math.ceil(a.bitLength()/8):Math.ceil((t||0)/8);if(!e)return-1===t?new Uint8Array(1):new Uint8Array(s);const u=new Uint8Array(s),c=o?a.toTwos(8*s):a;return u.set(c.toArray(r?"le":"be",s),0),u};var n=r(78218);const i={bitLength:-1,isLe:!0,isNegative:!1}},10005:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bufferToU8a",{enumerable:!0,get:function(){return n.bufferToU8a}});var n=r(79049)},79049:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bufferToU8a=function(e){return new Uint8Array(e||[])}},68641:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={packageInfo:!0};Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return i.packageInfo}});var i=r(54216),o=r(48916);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=r(57234);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var s=r(82952);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var u=r(54787);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var c=r(10005);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var f=r(74123);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))}));var l=r(91467);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var d=r(94061);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var h=r(42129);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))}));var p=r(16119);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===p[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}}))}));var b=r(49121);Object.keys(b).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===b[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return b[e]}}))}));var y=r(42132);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===y[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return y[e]}}))}));var g=r(4426);Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===g[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return g[e]}}))}));var m=r(4743);Object.keys(m).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===m[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return m[e]}}))}));var v=r(13171);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===v[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return v[e]}}))}));var w=r(13548);Object.keys(w).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===w[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return w[e]}}))}));var _=r(89242);Object.keys(_).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===_[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return _[e]}}))}));var x=r(10263);Object.keys(x).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===x[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return x[e]}}))}));var O=r(49140);Object.keys(O).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===O[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return O[e]}}))}));var k=r(69811);Object.keys(k).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===k[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return k[e]}}))}));var P=r(90007);Object.keys(P).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===P[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return P[e]}}))}));var S=r(58720);Object.keys(S).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===S[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return S[e]}}))}));var A=r(65959);Object.keys(A).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===A[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return A[e]}}))}))},95617:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactAddLength=function(e){return(0,n.u8aConcatStrict)([(0,i.compactToU8a)(e.length),e])};var n=r(58720),i=r(91654)},75016:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactFromU8a=function(e){const t=(0,i.u8aToU8a)(e);switch(3&t[0]){case 0:return[1,new n.BN(t[0]>>>2)];case 1:return[2,new n.BN(t[0]+(t[1]<<8)>>>2)];case 2:return[4,new n.BN(t[0]+(t[1]<<8)+(t[2]<<16)+16777216*t[3]>>>2)];default:{const e=5+(t[0]>>>2);switch(e){case 5:return[5,new n.BN(t[1]+(t[2]<<8)+(t[3]<<16)+16777216*t[4])];case 6:return[6,new n.BN(t[1]+(t[2]<<8)+(t[3]<<16)+16777216*(t[4]+(t[5]<<8)))];case 7:return[7,new n.BN(t[1]+(t[2]<<8)+(t[3]<<16)+16777216*(t[4]+(t[5]<<8)+(t[6]<<16)))];default:return[e,(0,i.u8aToBn)(t.subarray(1,e))]}}}},t.compactFromU8aLim=function(e){switch(3&e[0]){case 0:return[1,e[0]>>>2];case 1:return[2,e[0]+(e[1]<<8)>>>2];case 2:return[4,e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]>>>2];default:switch(5+(e[0]>>>2)){case 5:return[5,e[1]+(e[2]<<8)+(e[3]<<16)+16777216*e[4]];case 6:return[6,e[1]+(e[2]<<8)+(e[3]<<16)+16777216*(e[4]+(e[5]<<8))];case 7:return[7,e[1]+(e[2]<<8)+(e[3]<<16)+16777216*(e[4]+(e[5]<<8)+(e[6]<<16))];default:throw new Error("Compact input is > Number.MAX_SAFE_INTEGER")}}};var n=r(54787),i=r(58720)},74123:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"compactAddLength",{enumerable:!0,get:function(){return n.compactAddLength}}),Object.defineProperty(t,"compactFromU8a",{enumerable:!0,get:function(){return o.compactFromU8a}}),Object.defineProperty(t,"compactFromU8aLim",{enumerable:!0,get:function(){return o.compactFromU8aLim}}),Object.defineProperty(t,"compactStripLength",{enumerable:!0,get:function(){return i.compactStripLength}}),Object.defineProperty(t,"compactToU8a",{enumerable:!0,get:function(){return a.compactToU8a}});var n=r(95617),i=r(83405),o=r(75016),a=r(91654)},83405:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactStripLength=function(e){const[t,r]=(0,n.compactFromU8a)(e),i=t+r.toNumber();return[i,e.subarray(t,i)]};var n=r(75016)},91654:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactToU8a=function(e){const t=(0,n.bnToBn)(e);if(t.lte(o))return new Uint8Array([t.toNumber()<<2]);if(t.lte(a))return(0,n.bnToU8a)(t.shln(2).iadd(n.BN_ONE),u);if(t.lte(s))return(0,n.bnToU8a)(t.shln(2).iadd(n.BN_TWO),c);const r=(0,n.bnToU8a)(t);let f=r.length;for(;0===r[f-1];)f--;if(f<4)throw new Error("Invalid length, previous checks match anything less than 2^30");return(0,i.u8aConcatStrict)([new Uint8Array([3+(f-4<<2)]),r.subarray(0,f)])};var n=r(54787),i=r(58720);const o=n.BN_TWO.pow(new n.BN(6)).isub(n.BN_ONE),a=n.BN_TWO.pow(new n.BN(14)).isub(n.BN_ONE),s=n.BN_TWO.pow(new n.BN(30)).isub(n.BN_ONE),u={bitLength:16},c={bitLength:32}},48429:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(91984),i=r(5499),o=[n.packageInfo,i.packageInfo];t.default=o},80934:(e,t,r)=>{"use strict";var n=r(64836)(r(48429)),i=r(54216);(0,r(65959).detectPackage)(i.packageInfo,null,n.default)},91467:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extractTime=function e(t){return t?t<1e3?a({milliseconds:t},o):function(t){const o=t/1e3;if(o<60){const r=~~o;return a({seconds:r},e(t-1e3*r))}const s=o/60;if(s<60){const n=~~s;return a({minutes:n},e(t-n*r))}const u=s/60;if(u<24){const r=~~u;return a({hours:r},e(t-r*n))}const c=~~(u/24);return a({days:c},e(t-c*i))}(t):o};const r=6e4,n=60*r,i=24*n,o={days:0,hours:0,milliseconds:0,minutes:0,seconds:0};function a(e,t){return{days:(e.days||0)+t.days,hours:(e.hours||0)+t.hours,milliseconds:(e.milliseconds||0)+t.milliseconds,minutes:(e.minutes||0)+t.minutes,seconds:(e.seconds||0)+t.seconds}}},94061:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"floatToU8a",{enumerable:!0,get:function(){return n.floatToU8a}});var n=r(30291)},30291:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.floatToU8a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,{bitLength:t=32,isLe:r=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(32!==t&&64!==t)throw new Error("Invalid bitLength provided, expected 32 or 64");const n=new Uint8Array(t/8),i=new DataView(n.buffer,n.byteOffset);return 32===t?i.setFloat32(0,Number(e),r):i.setFloat64(0,Number(e),r),n}},14662:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatBalance=void 0;var n=r(78218),i=r(37797),o=r(71296),a=r(81385);const s=a.SI[a.SI_MID].text;let u=0,c=s;const f=function(e){let{decimals:t=u,forceUnit:r,withSi:s=!0,withSiFull:c=!1,withUnit:f=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=(0,n.bnToBn)(e).toString();if(0===l.length||"0"===l)return"0";let d="";l[0].startsWith("-")&&(d="-",l=l.substring(1));const[h,p,b]=function(e,t,r){const n=(0,a.calcSi)(e,t,r),i=e.length-(t+n.power);return[n,e.substring(0,i)||"0",`${`${new Array(1+(i<0?0-i:0)).join("0")}${e}`.substring(i<0?0:i)}0000`.substring(0,4)]}(l,t,r),y=function(e,t,r,n){const o=(0,i.isBoolean)(n)?a.SI[a.SI_MID].text:n;return t||r?"-"===e.value?n?` ${o}`:"":` ${r?`${e.text}${n?" ":""}`:e.value}${n?o:""}`:""}(h,s,c,f);return`${d}${(0,o.formatDecimal)(p)}.${b}${y}`};t.formatBalance=f,f.calcSi=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u;return(0,a.calcSi)(e,t)},f.findSi=a.findSi,f.getDefaults=()=>({decimals:u,unit:c}),f.getOptions=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u;return a.SI.filter((t=>{let{power:r}=t;return!(r<0)||e+r>=0}))},f.setDefaults=e=>{let{decimals:t,unit:r}=e;u=void 0===t?u:Array.isArray(t)?t[0]:t,c=void 0===r?c:Array.isArray(r)?r[0]:r,a.SI[a.SI_MID].text=c}},26757:(e,t)=>{"use strict";function r(e){return e.toString().padStart(2,"0")}Object.defineProperty(t,"__esModule",{value:!0}),t.formatDate=function(e){return`${e.getFullYear().toString()}-${r(e.getMonth()+1)}-${r(e.getDate())} ${r(e.getHours())}:${r(e.getMinutes())}:${r(e.getSeconds())}`}},71296:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatDecimal=function(e){const t=e[0].startsWith("-"),n=t?e.substring(1).match(r):e.match(r);return n?`${t?"-":""}${n.join(",")}`:e};const r=new RegExp("(\\d+?)(?=(\\d{3})+(?!\\d)|$)","g")},71435:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatElapsed=function(e,t){const r=e&&e.getTime()||0,i=t instanceof Date?t.getTime():(0,n.bnToBn)(t).toNumber();return r&&i?(o=Math.max(Math.abs(r-i),0)/1e3)<15?`${o.toFixed(1)}s`:o<60?(0|o)+"s":o<3600?(o/60|0)+"m":(o/3600|0)+"h":"0.0s";var o};var n=r(78218)},44335:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatNumber=function(e){return(0,i.formatDecimal)((0,n.bnToBn)(e).toString())};var n=r(78218),i=r(71296)},42129:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"calcSi",{enumerable:!0,get:function(){return u.calcSi}}),Object.defineProperty(t,"findSi",{enumerable:!0,get:function(){return u.findSi}}),Object.defineProperty(t,"formatBalance",{enumerable:!0,get:function(){return n.formatBalance}}),Object.defineProperty(t,"formatDate",{enumerable:!0,get:function(){return i.formatDate}}),Object.defineProperty(t,"formatDecimal",{enumerable:!0,get:function(){return o.formatDecimal}}),Object.defineProperty(t,"formatElapsed",{enumerable:!0,get:function(){return a.formatElapsed}}),Object.defineProperty(t,"formatNumber",{enumerable:!0,get:function(){return s.formatNumber}});var n=r(14662),i=r(26757),o=r(71296),a=r(71435),s=r(44335),u=r(81385)},81385:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SI_MID=t.SI=void 0,t.calcSi=function(e,t,o){if(o)return i(o);const a=r-1+Math.ceil((e.length-t)/3);return n[a]||n[a<0?0:n.length-1]},t.findSi=i;const r=8;t.SI_MID=r;const n=[{power:-24,text:"yocto",value:"y"},{power:-21,text:"zepto",value:"z"},{power:-18,text:"atto",value:"a"},{power:-15,text:"femto",value:"f"},{power:-12,text:"pico",value:"p"},{power:-9,text:"nano",value:"n"},{power:-6,text:"micro",value:"µ"},{power:-3,text:"milli",value:"m"},{power:0,text:"Unit",value:"-"},{power:3,text:"Kilo",value:"k"},{power:6,text:"Mill",value:"M"},{power:9,text:"Bill",value:"B"},{power:12,text:"Tril",value:"T"},{power:15,text:"Peta",value:"P"},{power:18,text:"Exa",value:"E"},{power:21,text:"Zeta",value:"Z"},{power:24,text:"Yotta",value:"Y"}];function i(e){for(let t=0;t<n.length;t++)if(n[t].value===e)return n[t];return n[r]}t.SI=n},16119:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasWasm=t.hasProcess=t.hasEsm=t.hasDirname=t.hasCjs=t.hasBuffer=t.hasBigInt=void 0;var n=r(68107),i=r(83137);const o="function"==typeof n.BigInt&&"function"==typeof n.BigInt.asIntN;t.hasBigInt=o,t.hasCjs=!0,t.hasDirname=!0,t.hasEsm=!1;const a="undefined"!=typeof WebAssembly;t.hasWasm=a;const s=void 0!==i.xglobal.Buffer;t.hasBuffer=s;const u="object"==typeof i.xglobal.process;t.hasProcess=u},80875:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexAddPrefix=function(e){return e&&(0,n.hexHasPrefix)(e)?e:`0x${e&&e.length%2==1?"0":""}${e||""}`};var n=r(22274)},41811:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexFixLength=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=Math.ceil(t/4),a=o+2;return(0,n.hexAddPrefix)(-1===t||e.length===a||!r&&e.length<a?(0,i.hexStripPrefix)(e):e.length>a?(0,i.hexStripPrefix)(e).slice(-1*o):`${"0".repeat(o)}${(0,i.hexStripPrefix)(e)}`.slice(-1*o))};var n=r(80875),i=r(68661)},22274:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexHasPrefix=function(e){return!!e&&(0,n.isHex)(e,-1)};var n=r(853)},49121:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hexAddPrefix",{enumerable:!0,get:function(){return n.hexAddPrefix}}),Object.defineProperty(t,"hexFixLength",{enumerable:!0,get:function(){return i.hexFixLength}}),Object.defineProperty(t,"hexHasPrefix",{enumerable:!0,get:function(){return o.hexHasPrefix}}),Object.defineProperty(t,"hexStripPrefix",{enumerable:!0,get:function(){return a.hexStripPrefix}}),Object.defineProperty(t,"hexToBigInt",{enumerable:!0,get:function(){return s.hexToBigInt}}),Object.defineProperty(t,"hexToBn",{enumerable:!0,get:function(){return u.hexToBn}}),Object.defineProperty(t,"hexToNumber",{enumerable:!0,get:function(){return c.hexToNumber}}),Object.defineProperty(t,"hexToString",{enumerable:!0,get:function(){return f.hexToString}}),Object.defineProperty(t,"hexToU8a",{enumerable:!0,get:function(){return l.hexToU8a}});var n=r(80875),i=r(41811),o=r(22274),a=r(68661),s=r(55972),u=r(44610),c=r(52520),f=r(56562),l=r(81399)},68661:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexStripPrefix=function(e){if(!e||"0x"===e)return"";if(n.REGEX_HEX_PREFIXED.test(e))return e.substring(2);if(n.REGEX_HEX_NOPREFIX.test(e))return e;throw new Error(`Expected hex value to convert, found '${e}'`)};var n=r(853)},55972:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToBigInt=function(e){let{isLe:t=!1,isNegative:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e&&"0x"!==e?(0,i.u8aToBigInt)((0,o.hexToU8a)(e),{isLe:t,isNegative:r}):(0,n.BigInt)(0)};var n=r(68107),i=r(41166),o=r(81399)},44610:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToBn=function(e){let{isLe:t=!1,isNegative:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||"0x"===e)return new n.BN(0);const o=(0,i.hexStripPrefix)(e),a=new n.BN(o,16,t?"le":"be");return r?a.fromTwos(4*o.length):a};var n=r(58418),i=r(68661)},52520:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToNumber=function(e){return e?(0,n.hexToBn)(e).toNumber():NaN};var n=r(44610)},56562:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToString=function(e){return(0,n.u8aToString)((0,i.hexToU8a)(e))};var n=r(15609),i=r(81399)},81399:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToU8a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(!e)return new Uint8Array;let r=e.startsWith("0x")?2:0;const n=Math.ceil((e.length-r)/2),o=Math.ceil(-1===t?n:t/8),a=new Uint8Array(o);for(let t=o>n?o-n:0;t<o;t++,r+=2)a[t]=i[e.charCodeAt(r)<<8|e.charCodeAt(r+1)];return a};const r="0123456789abcdef",n=new Array(256),i=new Array(65536);for(let e=0;e<16;e++)n[0|r[e].charCodeAt(0)]=0|e,e>9&&(n[0|r[e].toUpperCase().charCodeAt(0)]=0|e);for(let e=0;e<256;e++){const t=e<<8;for(let r=0;r<256;r++)i[t|r]=n[e]<<4|n[r]}},69338:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(80934);var n=r(68641);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}))},8869:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isArray=function(e){return Array.isArray(e)}},4890:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAscii=function(e){return(0,o.isString)(e)?(0,i.isHex)(e)?a((0,n.u8aToU8a)(e)):function(e){const t=0|e.length;for(let r=0;r<t;r++){const t=e.charCodeAt(r);if(t<32||t>126)return!1}return!0}(e):!!e&&a(e)};var n=r(61960),i=r(853),o=r(18694);function a(e){const t=0|e.length;for(let r=0;r<t;r++){const t=0|e[r];if(t<32||t>126)return!1}return!0}},36867:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBigInt=function(e){return"bigint"==typeof e}},80928:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBn=function(e){return n.BN.isBN(e)};var n=r(58418)},37797:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBoolean=function(e){return"boolean"==typeof e}},64060:(e,t,r)=>{"use strict";var n=r(48764).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.isBuffer=function(e){return i.hasBuffer&&(0,o.isFunction)(e&&e.readDoubleLE)&&n.isBuffer(e)};var i=r(16119),o=r(23146)},22984:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isChildClass=function(e,t){return!!t&&(e===t||e.isPrototypeOf(t))}},86152:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isCodec=function(e){return i(e)&&o(e.registry)};var n=r(73444);const i=(0,n.isOnObject)("toHex","toU8a"),o=(0,n.isOnObject)("get")},27865:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isCompact=void 0;const n=(0,r(73444).isOnObject)("toBigInt","toBn","toNumber","unwrap");t.isCompact=n},70291:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isError=function(e){return(e&&e.constructor)===Error||e instanceof Error}},23146:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFunction=function(e){return"function"==typeof e}},73444:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isOn=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return e=>((0,i.isObject)(e)||(0,n.isFunction)(e))&&t.every((t=>(0,n.isFunction)(e[t])))},t.isOnObject=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return e=>(0,i.isObject)(e)&&t.every((t=>(0,n.isFunction)(e[t])))};var n=r(23146),i=r(45598)},853:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.REGEX_HEX_PREFIXED=t.REGEX_HEX_NOPREFIX=void 0,t.isHex=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=arguments.length>2?arguments[2]:void 0;return"string"==typeof e&&("0x"===e||r.test(e))&&(-1===t?n||e.length%2==0:e.length===2+Math.ceil(t/4))};const r=/^0x[\da-fA-F]+$/;t.REGEX_HEX_PREFIXED=r,t.REGEX_HEX_NOPREFIX=/^[\da-fA-F]+$/},42132:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isArray",{enumerable:!0,get:function(){return n.isArray}}),Object.defineProperty(t,"isAscii",{enumerable:!0,get:function(){return i.isAscii}}),Object.defineProperty(t,"isBigInt",{enumerable:!0,get:function(){return o.isBigInt}}),Object.defineProperty(t,"isBn",{enumerable:!0,get:function(){return a.isBn}}),Object.defineProperty(t,"isBoolean",{enumerable:!0,get:function(){return u.isBoolean}}),Object.defineProperty(t,"isBuffer",{enumerable:!0,get:function(){return s.isBuffer}}),Object.defineProperty(t,"isChildClass",{enumerable:!0,get:function(){return c.isChildClass}}),Object.defineProperty(t,"isCodec",{enumerable:!0,get:function(){return f.isCodec}}),Object.defineProperty(t,"isCompact",{enumerable:!0,get:function(){return l.isCompact}}),Object.defineProperty(t,"isError",{enumerable:!0,get:function(){return d.isError}}),Object.defineProperty(t,"isFunction",{enumerable:!0,get:function(){return h.isFunction}}),Object.defineProperty(t,"isHex",{enumerable:!0,get:function(){return p.isHex}}),Object.defineProperty(t,"isInstanceOf",{enumerable:!0,get:function(){return b.isInstanceOf}}),Object.defineProperty(t,"isIp",{enumerable:!0,get:function(){return y.isIp}}),Object.defineProperty(t,"isJsonObject",{enumerable:!0,get:function(){return g.isJsonObject}}),Object.defineProperty(t,"isNull",{enumerable:!0,get:function(){return m.isNull}}),Object.defineProperty(t,"isNumber",{enumerable:!0,get:function(){return v.isNumber}}),Object.defineProperty(t,"isObject",{enumerable:!0,get:function(){return w.isObject}}),Object.defineProperty(t,"isObservable",{enumerable:!0,get:function(){return _.isObservable}}),Object.defineProperty(t,"isPromise",{enumerable:!0,get:function(){return x.isPromise}}),Object.defineProperty(t,"isString",{enumerable:!0,get:function(){return O.isString}}),Object.defineProperty(t,"isTestChain",{enumerable:!0,get:function(){return k.isTestChain}}),Object.defineProperty(t,"isToBigInt",{enumerable:!0,get:function(){return P.isToBigInt}}),Object.defineProperty(t,"isToBn",{enumerable:!0,get:function(){return S.isToBn}}),Object.defineProperty(t,"isU8a",{enumerable:!0,get:function(){return A.isU8a}}),Object.defineProperty(t,"isUndefined",{enumerable:!0,get:function(){return E.isUndefined}}),Object.defineProperty(t,"isUtf8",{enumerable:!0,get:function(){return M.isUtf8}}),Object.defineProperty(t,"isWasm",{enumerable:!0,get:function(){return j.isWasm}});var n=r(8869),i=r(4890),o=r(36867),a=r(80928),s=r(64060),u=r(37797),c=r(22984),f=r(86152),l=r(27865),d=r(70291),h=r(23146),p=r(853),b=r(64630),y=r(44759),g=r(84790),m=r(35943),v=r(55325),w=r(45598),_=r(38175),x=r(87178),O=r(18694),k=r(3472),P=r(61720),S=r(40404),A=r(23510),E=r(78098),M=r(51186),j=r(18070)},64630:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInstanceOf=function(e,t){return(e&&e.constructor)===t||e instanceof t}},44759:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIp=function(e,t){switch(t){case"v4":return a.test(e);case"v6":return s.test(e);default:return o.test(e)}};const r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",i=`\n(?:\n(?:${n}:){7}(?:${n}|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:${n}:){6}(?:${r}|:${n}|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:${n}:){5}(?::${r}|(?::${n}){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:${n}:){4}(?:(?::${n}){0,1}:${r}|(?::${n}){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:${n}:){3}(?:(?::${n}){0,2}:${r}|(?::${n}){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:${n}:){2}(?:(?::${n}){0,3}:${r}|(?::${n}){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:${n}:){1}(?:(?::${n}){0,4}:${r}|(?::${n}){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::${n}){0,5}:${r}|(?::${n}){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n`.replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),o=new RegExp(`(?:^${r}$)|(?:^${i}$)`),a=new RegExp(`^${r}$`),s=new RegExp(`^${i}$`)},84790:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isJsonObject=function(e){const t="string"!=typeof e?(0,n.stringify)(e):e;try{const e=JSON.parse(t);return"object"==typeof e&&null!==e}catch(e){return!1}};var n=r(90007)},35943:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNull=function(e){return null===e}},55325:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNumber=function(e){return"number"==typeof e}},45598:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObject=function(e){return!!e&&"object"==typeof e}},38175:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObservable=void 0;const n=(0,r(73444).isOn)("next");t.isObservable=n},87178:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPromise=void 0;const n=(0,r(73444).isOnObject)("catch","then");t.isPromise=n},18694:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isString=function(e){return"string"==typeof e||e instanceof String}},3472:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isTestChain=function(e){return!!e&&!!r.test(e.toString())};const r=/(Development|Local Testnet)$/},61720:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isToBigInt=void 0;const n=(0,r(73444).isOn)("toBigInt");t.isToBigInt=n},40404:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isToBn=void 0;const n=(0,r(73444).isOn)("toBn");t.isToBn=n},23510:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isU8a=function(e){return(e&&e.constructor)===Uint8Array||e instanceof Uint8Array}},78098:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isUndefined=function(e){return void 0===e}},51186:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isUtf8=function(e){if(!e)return(0,i.isString)(e);const t=(0,n.u8aToU8a)(e),r=t.length;let o=0;for(;o<r;)if(t[o]<=127)o+=1;else if(t[o]>=194&&t[o]<=223){if(!(o+1<r))return!1;if(t[o+1]<128||t[o+1]>191)return!1;o+=2}else if(224===t[o]){if(!(o+2<r))return!1;if(t[o+1]<160||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;o+=3}else if(t[o]>=225&&t[o]<=236){if(!(o+2<r))return!1;if(t[o+1]<128||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;o+=3}else if(237===t[o]){if(!(o+2<r))return!1;if(t[o+1]<128||t[o+1]>159)return!1;if(t[o+2]<128||t[o+2]>191)return!1;o+=3}else if(t[o]>=238&&t[o]<=239){if(!(o+2<r))return!1;if(t[o+1]<128||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;o+=3}else if(240===t[o]){if(!(o+3<r))return!1;if(t[o+1]<144||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;if(t[o+3]<128||t[o+3]>191)return!1;o+=4}else if(t[o]>=241&&t[o]<=243){if(!(o+3<r))return!1;if(t[o+1]<128||t[o+1]>191)return!1;if(t[o+2]<128||t[o+2]>191)return!1;if(t[o+3]<128||t[o+3]>191)return!1;o+=4}else{if(244!==t[o])return!1;if(!(o+3<r))return!1;if(t[o+1]<128||t[o+1]>143)return!1;if(t[o+2]<128||t[o+2]>191)return!1;if(t[o+3]<128||t[o+3]>191)return!1;o+=4}return!0};var n=r(61960),i=r(18694)},18070:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isWasm=function(e){return(0,i.isU8a)(e)&&(0,n.u8aEq)(e.subarray(0,4),o)};var n=r(24987),i=r(23510);const o=new Uint8Array([0,97,115,109])},4426:(e,t)=>{"use strict";function r(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;const o=n?n(t,i):t.toString();let a;Object.defineProperty(e,o,{configurable:!0,enumerable:!0,get:function(){if(void 0===a){a=r(t,i,this);try{Object.defineProperty(this,o,{value:a})}catch(e){}}return a}})}Object.defineProperty(t,"__esModule",{value:!0}),t.lazyMethod=r,t.lazyMethods=function(e,t,n,i){for(let o=0;o<t.length;o++)r(e,t[o],n,i,o);return e}},4743:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.logger=function(e){const t=`${e.toUpperCase()}:`.padStart(16),[r,i]=function(e){const t=(d.hasProcess?n.xglobal.process:{}).env||{},r=parseInt(t.DEBUG_MAX||"-1",10);return[v((t.DEBUG||"").toLowerCase().split(","),e),isNaN(r)?-1:r]}(e.toLowerCase());return{debug:r?function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return b("debug",t,r,i)}:y,error:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return b("error",t,r)},log:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return b("log",t,r)},noop:y,warn:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return b("warn",t,r)}}},t.loggerFormat=p;var n=r(83137),i=r(26757),o=r(80928),a=r(64060),s=r(23146),u=r(45598),c=r(23510),f=r(88721),l=r(61960),d=r(16119);const h={debug:"log",error:"error",log:"log",warn:"warn"};function p(e){return Array.isArray(e)?e.map(p):(0,o.isBn)(e)?e.toString():(0,c.isU8a)(e)||(0,a.isBuffer)(e)?(0,f.u8aToHex)((0,l.u8aToU8a)(e)):function(e){if(e&&(0,u.isObject)(e)&&e.constructor===Object){const t={};for(const r of Object.keys(e))t[r]=p(e[r]);return t}return e}(e)}function b(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1;if(1===r.length&&(0,s.isFunction)(r[0])){const i=r[0]();return b(e,t,Array.isArray(i)?i:[i],n)}var o;console[h[e]]((0,i.formatDate)(new Date),t,...r.map(p).map((o=n,e=>{if(o<=0)return e;const t=`${e}`;return t.length<o?e:`${t.substring(0,o)} ...`})))}function y(){}function g(e,t){return!!e&&("*"===e||t===e||e.endsWith("*")&&t.startsWith(e.slice(0,-1)))}function m(e,t){return!!e&&e.startsWith("-")&&(t===e.slice(1)||e.endsWith("*")&&t.startsWith(e.slice(1,-1)))}function v(e,t){let r=!1;for(const n of e)g(n,t)?r=!0:m(n,t)&&(r=!1);return r}},13171:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.memoize=function(e){let{getInstanceId:t=i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r={},o=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];const s=(0,n.stringify)(o),u=t();return r[u]||(r[u]={}),void 0===r[u][s]&&(r[u][s]=e(...o)),r[u][s]};return o.unmemoize=function(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];const a=(0,n.stringify)(i),s=t();r[s]&&void 0!==r[s][a]&&delete r[s][a]},o};var n=r(90007);function i(){return"none"}},13548:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nextTick=function(e,t){setTimeout((()=>{Promise.resolve().then((()=>{e()})).catch((e=>{t?t(e):console.error(e)}))}),0)}},89242:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"numberToHex",{enumerable:!0,get:function(){return n.numberToHex}}),Object.defineProperty(t,"numberToU8a",{enumerable:!0,get:function(){return i.numberToU8a}});var n=r(28952),i=r(74549)},28952:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numberToHex=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;const r=(!e||Number.isNaN(e)?0:e).toString(16);return(0,n.hexFixLength)(r.length%2?`0${r}`:r,t,!0)};var n=r(41811)},74549:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numberToU8a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return(0,n.hexToU8a)((0,i.numberToHex)(e,t))};var n=r(81399),i=r(28952)},44585:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectClear=function(e){const t=Object.keys(e);for(let r=0;r<t.length;r++)delete e[t[r]];return e}},48014:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectCopy=function(e){return(0,n.objectSpread)({},e)};var n=r(50660)},92119:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectEntries=function(e){return Object.entries(e)}},10263:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"objectClear",{enumerable:!0,get:function(){return n.objectClear}}),Object.defineProperty(t,"objectCopy",{enumerable:!0,get:function(){return i.objectCopy}}),Object.defineProperty(t,"objectEntries",{enumerable:!0,get:function(){return o.objectEntries}}),Object.defineProperty(t,"objectKeys",{enumerable:!0,get:function(){return a.objectKeys}}),Object.defineProperty(t,"objectProperties",{enumerable:!0,get:function(){return s.objectProperties}}),Object.defineProperty(t,"objectProperty",{enumerable:!0,get:function(){return s.objectProperty}}),Object.defineProperty(t,"objectSpread",{enumerable:!0,get:function(){return u.objectSpread}}),Object.defineProperty(t,"objectValues",{enumerable:!0,get:function(){return c.objectValues}});var n=r(44585),i=r(48014),o=r(92119),a=r(82256),s=r(34517),u=r(50660),c=r(79121)},82256:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectKeys=function(e){return Object.keys(e)}},34517:(e,t)=>{"use strict";function r(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;const o=n?n(t,i):t;o in e||Object.defineProperty(e,o,{enumerable:!0,get:function(){return r(t,i,this)}})}Object.defineProperty(t,"__esModule",{value:!0}),t.objectProperties=function(e,t,n,i){for(let o=0;o<t.length;o++)r(e,t[o],n,i,o)},t.objectProperty=r},50660:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectSpread=function(e){for(let t=0;t<(arguments.length<=1?0:arguments.length-1);t++){const r=t+1<1||arguments.length<=t+1?void 0:arguments[t+1];if(r)if("function"==typeof r.entries)for(const[t,n]of r.entries())e[t]=n;else Object.assign(e,r)}return e}},79121:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectValues=function(e){return Object.values(e)}},54216:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/util",path:"/",type:"cjs",version:"10.2.1"}},49140:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.promisify=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return new Promise(((r,i)=>{t.apply(e,n.concat(((e,t)=>{e?i(e):r(t)})))}))}},46234:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringPascalCase=t.stringCamelCase=t.CC_TO_UP=t.CC_TO_LO=void 0;const r=new Array(256);t.CC_TO_UP=r;const n=new Array(256);t.CC_TO_LO=n;for(let e=0;e<r.length;e++)n[e]=String.fromCharCode(e).toLowerCase(),r[e]=String.fromCharCode(e).toUpperCase();function i(e){return e.slice(0,e.length-1).toLowerCase()+r[e.charCodeAt(e.length-1)]}function o(e){return t=>{const r=t.replace(/[-_., ]+/g," ").trim().split(" "),n=r.length;let o="";for(let t=0;t<n;t++){const n=r[t];o+=e(/^[\dA-Z]+$/.test(n)?n.toLowerCase():n.replace(/^[\dA-Z]{2,}[^a-z]/,i),t)}return o}}const a=o(((e,t)=>(t?r[e.charCodeAt(0)]:n[e.charCodeAt(0)])+e.slice(1)));t.stringCamelCase=a;const s=o((e=>r[e.charCodeAt(0)]+e.slice(1)));t.stringPascalCase=s},69811:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"stringCamelCase",{enumerable:!0,get:function(){return n.stringCamelCase}}),Object.defineProperty(t,"stringLowerFirst",{enumerable:!0,get:function(){return i.stringLowerFirst}}),Object.defineProperty(t,"stringPascalCase",{enumerable:!0,get:function(){return n.stringPascalCase}}),Object.defineProperty(t,"stringShorten",{enumerable:!0,get:function(){return o.stringShorten}}),Object.defineProperty(t,"stringToHex",{enumerable:!0,get:function(){return a.stringToHex}}),Object.defineProperty(t,"stringToU8a",{enumerable:!0,get:function(){return s.stringToU8a}}),Object.defineProperty(t,"stringUpperFirst",{enumerable:!0,get:function(){return i.stringUpperFirst}});var n=r(46234),i=r(1273),o=r(72859),a=r(93104),s=r(93613)},1273:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringUpperFirst=t.stringLowerFirst=void 0;var n=r(46234);function i(e){return t=>t?e[t.charCodeAt(0)]+t.slice(1):""}const o=i(n.CC_TO_LO);t.stringLowerFirst=o;const a=i(n.CC_TO_UP);t.stringUpperFirst=a},72859:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringShorten=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return e.length<=2+2*t?e.toString():`${e.substring(0,t)}…${e.slice(-t)}`}},93104:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringToHex=function(e){return(0,n.u8aToHex)((0,i.stringToU8a)(e))};var n=r(88721),i=r(93613)},93613:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringToU8a=function(e){return e?n.encode(e.toString()):new Uint8Array};const n=new(r(5499).TextEncoder)},90007:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=function(e,t){return JSON.stringify(e,i,t)};var n=r(36867);function i(e,t){return(0,n.isBigInt)(t)?t.toString():t}},94432:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aCmp=function(e,t){const r=(0,n.u8aToU8a)(e),i=(0,n.u8aToU8a)(t);let o=0;for(;;){const e=o>=r.length,t=o>=i.length;if(e&&t)return 0;if(e)return-1;if(t)return 1;if(r[o]!==i[o])return r[o]>i[o]?1:-1;o++}};var n=r(61960)},79670:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aConcat=function(){const e=new Array(arguments.length);let t=0;for(let r=0;r<arguments.length;r++)e[r]=(0,n.u8aToU8a)(r<0||arguments.length<=r?void 0:arguments[r]),t+=e[r].length;return i(e,t)},t.u8aConcatStrict=i;var n=r(61960);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=0;if(!t)for(let r=0;r<e.length;r++)t+=e[r].length;const n=new Uint8Array(t);for(let t=0;t<e.length;t++)n.set(e[t],r),r+=e[t].length;return n}},66858:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aEmpty=function(e){const t=0|e.length;for(let r=0;r<t;r++)if(0|e[r])return!1;return!0}},24987:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aEq=function(e,t){const r=(0,n.u8aToU8a)(e),i=(0,n.u8aToU8a)(t);if(r.length===i.length){const e=new DataView(r.buffer,r.byteOffset),t=new DataView(i.buffer,i.byteOffset),n=r.length%4|0,o=r.length-n|0;for(let r=0;r<o;r+=4)if(e.getUint32(r)!==t.getUint32(r))return!1;for(let e=o;e<r.length;e++)if(r[e]!==i[e])return!1;return!0}return!1};var n=r(61960)},26251:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aFixLength=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n=Math.ceil(t/8);if(-1===t||e.length===n)return e;if(e.length>n)return e.subarray(0,n);const i=new Uint8Array(n);return i.set(e,r?0:n-e.length),i}},58720:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"U8A_WRAP_ETHEREUM",{enumerable:!0,get:function(){return g.U8A_WRAP_ETHEREUM}}),Object.defineProperty(t,"U8A_WRAP_POSTFIX",{enumerable:!0,get:function(){return g.U8A_WRAP_POSTFIX}}),Object.defineProperty(t,"U8A_WRAP_PREFIX",{enumerable:!0,get:function(){return g.U8A_WRAP_PREFIX}}),Object.defineProperty(t,"u8aCmp",{enumerable:!0,get:function(){return n.u8aCmp}}),Object.defineProperty(t,"u8aConcat",{enumerable:!0,get:function(){return i.u8aConcat}}),Object.defineProperty(t,"u8aConcatStrict",{enumerable:!0,get:function(){return i.u8aConcatStrict}}),Object.defineProperty(t,"u8aEmpty",{enumerable:!0,get:function(){return o.u8aEmpty}}),Object.defineProperty(t,"u8aEq",{enumerable:!0,get:function(){return a.u8aEq}}),Object.defineProperty(t,"u8aFixLength",{enumerable:!0,get:function(){return s.u8aFixLength}}),Object.defineProperty(t,"u8aIsWrapped",{enumerable:!0,get:function(){return g.u8aIsWrapped}}),Object.defineProperty(t,"u8aSorted",{enumerable:!0,get:function(){return c.u8aSorted}}),Object.defineProperty(t,"u8aToBigInt",{enumerable:!0,get:function(){return f.u8aToBigInt}}),Object.defineProperty(t,"u8aToBn",{enumerable:!0,get:function(){return l.u8aToBn}}),Object.defineProperty(t,"u8aToBuffer",{enumerable:!0,get:function(){return d.u8aToBuffer}}),Object.defineProperty(t,"u8aToFloat",{enumerable:!0,get:function(){return u.u8aToFloat}}),Object.defineProperty(t,"u8aToHex",{enumerable:!0,get:function(){return h.u8aToHex}}),Object.defineProperty(t,"u8aToNumber",{enumerable:!0,get:function(){return p.u8aToNumber}}),Object.defineProperty(t,"u8aToString",{enumerable:!0,get:function(){return b.u8aToString}}),Object.defineProperty(t,"u8aToU8a",{enumerable:!0,get:function(){return y.u8aToU8a}}),Object.defineProperty(t,"u8aUnwrapBytes",{enumerable:!0,get:function(){return g.u8aUnwrapBytes}}),Object.defineProperty(t,"u8aWrapBytes",{enumerable:!0,get:function(){return g.u8aWrapBytes}});var n=r(94432),i=r(79670),o=r(66858),a=r(24987),s=r(26251),u=r(15902),c=r(89603),f=r(41166),l=r(30733),d=r(37359),h=r(88721),p=r(92847),b=r(15609),y=r(61960),g=r(50434)},89603:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aSorted=function(e){return e.sort(n.u8aCmp)};var n=r(94432)},41166:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToBigInt=function(e){let{isLe:t=!0,isNegative:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||!e.length)return(0,n.BigInt)(0);const s=t?e:e.reverse(),u=new DataView(s.buffer,s.byteOffset),c=s.length%2;let f=(0,n.BigInt)(0);if(r){for(let e=s.length-2;e>=c;e-=2)f=f*a+(0,n.BigInt)(65535^u.getUint16(e,!0));c&&(f=f*o+(0,n.BigInt)(255^u.getUint8(0)))}else{for(let e=s.length-2;e>=c;e-=2)f=f*a+(0,n.BigInt)(u.getUint16(e,!0));c&&(f=f*o+(0,n.BigInt)(u.getUint8(0)))}return r?f*-i._1n-i._1n:f};var n=r(68107),i=r(44377);const o=(0,n.BigInt)(256),a=(0,n.BigInt)(65536)},30733:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToBn=function(e){let{isLe:t=!0,isNegative:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=e.length;if(i<=6){if(r){let r=0;if(t)switch(i){case 0:return new n.BN(0);case 1:r=255^e[0];break;case 2:r=e[0]+(e[1]<<8)^65535;break;case 3:r=e[0]+(e[1]<<8)+(e[2]<<16)^16777215;break;case 4:r=e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295;break;case 5:r=(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295)+4294967296*(255^e[4]);break;default:r=(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295)+4294967296*(e[4]+(e[5]<<8)^65535)}else for(let t=0;t<i;t++)r=256*r+(255^e[t]);return i?new n.BN(-1*r-1):new n.BN(0)}if(!t){let t=0;for(let r=0;r<i;r++)t=256*t+e[r];return new n.BN(t)}switch(i){case 0:return new n.BN(0);case 1:return new n.BN(e[0]);case 2:return new n.BN(e[0]+(e[1]<<8));case 3:return new n.BN(e[0]+(e[1]<<8)+(e[2]<<16));case 4:return new n.BN(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]);case 5:return new n.BN(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*(e[3]+(e[4]<<8)));default:return new n.BN(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*(e[3]+(e[4]<<8)+(e[5]<<16)))}}return r?new n.BN(e,t?"le":"be").fromTwos(8*e.length):new n.BN(e,t?"le":"be")};var n=r(58418)},37359:(e,t,r)=>{"use strict";var n=r(48764).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToBuffer=function(e){return n.from(e||[])}},15902:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToFloat=function(e){let{bitLength:t=32,isLe:r=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(32!==t&&64!==t)throw new Error("Invalid bitLength provided, expected 32 or 64");if(e.length<t/8)throw new Error(`Invalid input buffer provided, expected at least ${t/8} bytes, found ${e.length}`);const n=new DataView(e.buffer,e.byteOffset);return 32===t?n.getFloat32(0,r):n.getFloat64(0,r)}},88721:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToHex=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;const r=arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?"":"0x";if(!e||!e.length)return r;if(t>0){const n=Math.ceil(t/8);if(e.length>n)return`${i(e.subarray(0,n/2),r)}…${i(e.subarray(e.length-n/2),"")}`}return i(e,r)};const r=new Array(256),n=new Array(65536);for(let e=0;e<256;e++)r[e]=e.toString(16).padStart(2,"0");for(let e=0;e<256;e++){const t=e<<8;for(let i=0;i<256;i++)n[t|i]=r[e]+r[i]}function i(e,t){const i=e.length%2|0,o=e.length-i|0;for(let r=0;r<o;r+=2)t+=n[e[r]<<8|e[r+1]];return i&&(t+=r[0|e[o]]),t}},92847:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToNumber=function(e){let{isNegative:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=e.length;if(t){let t=0;switch(r){case 0:return 0;case 1:t=255^e[0];break;case 2:t=e[0]+(e[1]<<8)^65535;break;case 3:t=e[0]+(e[1]<<8)+(e[2]<<16)^16777215;break;case 4:t=e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295;break;case 5:t=(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295)+4294967296*(255^e[4]);break;case 6:t=(e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]^4294967295)+4294967296*(e[4]+(e[5]<<8)^65535);break;default:throw new Error("Value more than 48-bits cannot be reliably converted")}return-1*t-1}switch(r){case 0:return 0;case 1:return e[0];case 2:return e[0]+(e[1]<<8);case 3:return e[0]+(e[1]<<8)+(e[2]<<16);case 4:return e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3];case 5:return e[0]+(e[1]<<8)+(e[2]<<16)+16777216*(e[3]+(e[4]<<8));case 6:return e[0]+(e[1]<<8)+(e[2]<<16)+16777216*(e[3]+(e[4]<<8)+(e[5]<<16));default:throw new Error("Value more than 48-bits cannot be reliably converted")}}},15609:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToString=function(e){return e?n.decode(e):""};const n=new(r(91984).TextDecoder)("utf-8")},61960:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u8aToU8a=function(e){return(0,a.isU8a)(e)?e:(0,o.isHex)(e)?(0,n.hexToU8a)(e):(0,i.isBuffer)(e)||Array.isArray(e)?new Uint8Array(e):(0,s.stringToU8a)(e)};var n=r(81399),i=r(64060),o=r(853),a=r(23510),s=r(93613)},50434:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.U8A_WRAP_PREFIX=t.U8A_WRAP_POSTFIX=t.U8A_WRAP_ETHEREUM=void 0,t.u8aIsWrapped=f,t.u8aUnwrapBytes=function(e){const t=(0,o.u8aToU8a)(e);return f(t,!1)?t.subarray(s.length,t.length-u.length):t},t.u8aWrapBytes=function(e){const t=(0,o.u8aToU8a)(e);return f(t,!0)?t:(0,n.u8aConcatStrict)([s,t,u])};var n=r(79670),i=r(24987),o=r(61960);const a=(0,o.u8aToU8a)("Ethereum Signed Message:\n");t.U8A_WRAP_ETHEREUM=a;const s=(0,o.u8aToU8a)("<Bytes>");t.U8A_WRAP_PREFIX=s;const u=(0,o.u8aToU8a)("</Bytes>");t.U8A_WRAP_POSTFIX=u;const c=s.length+u.length;function f(e,t){return e.length>=c&&(0,i.u8aEq)(e.subarray(0,s.length),s)&&(0,i.u8aEq)(e.slice(-u.length),u)||t&&e.length>=a.length&&(0,i.u8aEq)(e.subarray(0,a.length),a)}},65959:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.detectPackage=function(e,t){let{name:r,path:i,type:o,version:f}=e,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!r.startsWith("@polkadot"))throw new Error(`Invalid package descriptor ${r}`);const d=function(e){const t=n.xglobal;return t.__polkadotjs||(t.__polkadotjs={}),t.__polkadotjs[e]||(t.__polkadotjs[e]=[]),t.__polkadotjs[e]}(r);if(d.push({path:u(i,t),type:o,version:f}),1!==d.length)c(`${r} has multiple versions, ensure that there is only one installed.`,d,s);else{const e=l.filter((e=>e&&e.version!==f));e.length&&c(`${r} requires direct dependencies exactly matching version ${f}.`,e,a)}};var n=r(83137),i=r(23146);const o="Either remove and explicitly install matching versions or dedupe using your package manager.\nThe following conflicting packages were found:";function a(e,t){let{name:r}=t;return[e,r]}function s(e,t){let r,{path:n,type:i}=t;if(n&&n.length>=5){const e=n.indexOf("node_modules");r=-1===e?n:n.substring(e)}else r="<unknown>";return[`${`${i||""}`.padStart(3)} ${e}`,r]}function u(e,t){if(e)return e;if((0,i.isFunction)(t))try{return t()||""}catch(e){return""}return t||""}function c(e,t,r){console.warn(`${e}\n${o}\n${function(e,t){let r=0;for(let t=0;t<e.length;t++)r=Math.max(r,e[t].version.length);return e.map((e=>`\t${t(e.version.padEnd(r),e).join("\t")}`)).join("\n")}(t,r)}`)}},44002:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(38416)),o=n(r(56690)),a=n(r(89728)),s=n(r(29399)),u=n(r(40426));function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}Object.defineProperty(t,"__esModule",{value:!0}),t.Bridge=void 0;var f=r(69338),l=r(93790),d=(0,u.default)("cachegetInt32"),h=(0,u.default)("cachegetUint8"),p=(0,u.default)("createWasm"),b=(0,u.default)("heap"),y=(0,u.default)("heapNext"),g=(0,u.default)("wasm"),m=(0,u.default)("wasmError"),v=(0,u.default)("wasmPromise"),w=(0,u.default)("wbg"),_=(0,u.default)("type");let x=function(){function e(t){(0,o.default)(this,e),Object.defineProperty(this,d,{writable:!0,value:void 0}),Object.defineProperty(this,h,{writable:!0,value:void 0}),Object.defineProperty(this,p,{writable:!0,value:void 0}),Object.defineProperty(this,b,{writable:!0,value:void 0}),Object.defineProperty(this,y,{writable:!0,value:void 0}),Object.defineProperty(this,g,{writable:!0,value:void 0}),Object.defineProperty(this,m,{writable:!0,value:void 0}),Object.defineProperty(this,v,{writable:!0,value:void 0}),Object.defineProperty(this,w,{writable:!0,value:void 0}),Object.defineProperty(this,_,{writable:!0,value:void 0}),(0,s.default)(this,p)[p]=t,(0,s.default)(this,d)[d]=null,(0,s.default)(this,h)[h]=null,(0,s.default)(this,b)[b]=new Array(32).fill(void 0).concat(void 0,null,!0,!1),(0,s.default)(this,y)[y]=(0,s.default)(this,b)[b].length,(0,s.default)(this,_)[_]="none",(0,s.default)(this,g)[g]=null,(0,s.default)(this,m)[m]=null,(0,s.default)(this,v)[v]=null,(0,s.default)(this,w)[w]=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},new l.Wbg(this))}return(0,a.default)(e,[{key:"error",get:function(){return(0,s.default)(this,m)[m]}},{key:"type",get:function(){return(0,s.default)(this,_)[_]}},{key:"wasm",get:function(){return(0,s.default)(this,g)[g]}},{key:"init",value:async function(e){(0,s.default)(this,v)[v]&&!e||((0,s.default)(this,v)[v]=(e||(0,s.default)(this,p)[p])((0,s.default)(this,w)[w]));const{error:t,type:r,wasm:n}=await(0,s.default)(this,v)[v];return(0,s.default)(this,_)[_]=r,(0,s.default)(this,g)[g]=n,(0,s.default)(this,m)[m]=t,(0,s.default)(this,g)[g]}},{key:"getObject",value:function(e){return(0,s.default)(this,b)[b][e]}},{key:"dropObject",value:function(e){e<36||((0,s.default)(this,b)[b][e]=(0,s.default)(this,y)[y],(0,s.default)(this,y)[y]=e)}},{key:"takeObject",value:function(e){const t=this.getObject(e);return this.dropObject(e),t}},{key:"addObject",value:function(e){(0,s.default)(this,y)[y]===(0,s.default)(this,b)[b].length&&(0,s.default)(this,b)[b].push((0,s.default)(this,b)[b].length+1);const t=(0,s.default)(this,y)[y];return(0,s.default)(this,y)[y]=(0,s.default)(this,b)[b][t],(0,s.default)(this,b)[b][t]=e,t}},{key:"getInt32",value:function(){return null!==(0,s.default)(this,d)[d]&&(0,s.default)(this,d)[d].buffer===(0,s.default)(this,g)[g].memory.buffer||((0,s.default)(this,d)[d]=new Int32Array((0,s.default)(this,g)[g].memory.buffer)),(0,s.default)(this,d)[d]}},{key:"getUint8",value:function(){return null!==(0,s.default)(this,h)[h]&&(0,s.default)(this,h)[h].buffer===(0,s.default)(this,g)[g].memory.buffer||((0,s.default)(this,h)[h]=new Uint8Array((0,s.default)(this,g)[g].memory.buffer)),(0,s.default)(this,h)[h]}},{key:"getU8a",value:function(e,t){return this.getUint8().subarray(e/1,e/1+t)}},{key:"getString",value:function(e,t){return(0,f.u8aToString)(this.getU8a(e,t))}},{key:"allocU8a",value:function(e){const t=(0,s.default)(this,g)[g].__wbindgen_malloc(1*e.length);return this.getUint8().set(e,t/1),[t,e.length]}},{key:"allocString",value:function(e){return this.allocU8a((0,f.stringToU8a)(e))}},{key:"resultU8a",value:function(){const e=this.getInt32()[2],t=this.getInt32()[3],r=this.getU8a(e,t).slice();return(0,s.default)(this,g)[g].__wbindgen_free(e,1*t),r}},{key:"resultString",value:function(){return(0,f.u8aToString)(this.resultU8a())}}]),e}();t.Bridge=x},24869:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(44002);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}));var i=r(37987);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}))},32279:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[]},80850:(e,t,r)=>{"use strict";var n=r(64836),i=r(69338),o=n(r(32279)),a=r(88084);(0,i.detectPackage)(a.packageInfo,null,o.default)},24868:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(80850);var n=r(24869);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}))},37987:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createWasmFn=function(e,t,r){return async n=>{const i={error:null,type:"none",wasm:null};try{if(!t||!t.length)throw new Error("No WebAssembly provided for initialization");if("object"!=typeof WebAssembly||"function"!=typeof WebAssembly.instantiate)throw new Error("WebAssembly is not available in your environment");const e=await WebAssembly.instantiate(t,{wbg:n});i.wasm=e.instance.exports,i.type="wasm"}catch(t){"function"==typeof r?(i.wasm=r(n),i.type="asm"):(i.error=`FATAL: Unable to initialize @polkadot/wasm-${e}:: ${t.message}`,console.error(i.error))}return i}}},88084:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/wasm-bridge",path:"/",type:"cjs",version:"6.4.1"}},93790:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(89728)),o=n(r(56690)),a=n(r(29399)),s=n(r(40426));Object.defineProperty(t,"__esModule",{value:!0}),t.Wbg=void 0;const u={getRandomValues:r(41649).getRandomValues},c={crypto:u};var f=(0,s.default)("bridge");let l=(0,i.default)((function e(t){(0,o.default)(this,e),Object.defineProperty(this,f,{writable:!0,value:void 0}),this.abort=()=>{throw new Error("abort")},this.__wbindgen_is_undefined=e=>void 0===(0,a.default)(this,f)[f].getObject(e),this.__wbindgen_throw=(e,t)=>{throw new Error((0,a.default)(this,f)[f].getString(e,t))},this.__wbg_self_1b7a39e3a92c949c=()=>(0,a.default)(this,f)[f].addObject(c),this.__wbg_require_604837428532a733=(e,t)=>{throw new Error(`Unable to require ${(0,a.default)(this,f)[f].getString(e,t)}`)},this.__wbg_crypto_968f1772287e2df0=e=>(0,a.default)(this,f)[f].addObject(u),this.__wbg_getRandomValues_a3d34b4fee3c2869=e=>(0,a.default)(this,f)[f].addObject(u.getRandomValues),this.__wbg_getRandomValues_f5e14ab7ac8e995d=(e,t,r)=>{u.getRandomValues((0,a.default)(this,f)[f].getU8a(t,r))},this.__wbg_randomFillSync_d5bd2d655fdf256a=(e,t,r)=>{throw new Error("randomFillsync is not available")},this.__wbindgen_object_drop_ref=e=>{(0,a.default)(this,f)[f].takeObject(e)},(0,a.default)(this,f)[f]=t}));t.Wbg=l},21572:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/wasm-crypto-asmjs",path:"/",type:"cjs",version:"6.4.1"}},82352:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/wasm-crypto-init",path:"/",type:"cjs",version:"6.4.1"}},90693:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createWasm=void 0,Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return o.packageInfo}});var n=r(24868),i=r(3493),o=r(82352);const a=(0,n.createWasmFn)("crypto",i.wasmBytes,null);t.createWasm=a},43863:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return o.packageInfo}}),t.wasmBytes=void 0;var n=r(67238),i=r(71311),o=r(94415);const a=(0,n.unzlibSync)((0,n.base64Decode)(i.bytes,new Uint8Array(i.lenIn)),new Uint8Array(i.lenOut));t.wasmBytes=a},28103:e=>{"use strict";e.exports={bytes:"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",lenIn:171005,lenOut:339466}},71311:(e,t,r)=>{"use strict";const n=r(28103);e.exports=n},79448:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[]},95218:(e,t,r)=>{"use strict";var n=r(64836),i=r(69338),o=n(r(79448)),a=r(94415);(0,i.detectPackage)(a.packageInfo,null,o.default)},3493:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(95218);var n=r(43863);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}))},94415:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/wasm-crypto-wasm",path:"/",type:"cjs",version:"6.4.1"}},33804:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.blake2b=t.bip39Validate=t.bip39ToSeed=t.bip39ToMiniSecret=t.bip39ToEntropy=t.bip39Generate=void 0,Object.defineProperty(t,"bridge",{enumerable:!0,get:function(){return n.bridge}}),t.hmacSha512=t.hmacSha256=t.ed25519Verify=t.ed25519Sign=t.ed25519KeypairFromSeed=void 0,t.isReady=function(){return!!n.bridge.wasm},t.keccak512=t.keccak256=void 0,Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return i.packageInfo}}),t.vrfVerify=t.vrfSign=t.twox=t.sr25519Verify=t.sr25519Sign=t.sr25519KeypairFromSeed=t.sr25519DerivePublicSoft=t.sr25519DeriveKeypairSoft=t.sr25519DeriveKeypairHard=t.sr25519Agree=t.sha512=t.sha256=t.secp256k1Sign=t.secp256k1Recover=t.secp256k1FromSeed=t.secp256k1Expand=t.secp256k1Compress=t.scrypt=t.pbkdf2=void 0,t.waitReady=async function(){try{return!!await(0,n.initBridge)()}catch(e){return!1}};var n=r(45872),i=r(85344);function o(e){return function(){if(!n.bridge.wasm)throw new Error("The WASM interface has not been initialized. Ensure that you wait for the initialization Promise with waitReady() from @polkadot/wasm-crypto (or cryptoWaitReady() from @polkadot/util-crypto) before attempting to use WASM-only interfaces.");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return e(n.bridge.wasm,...r)}}const a=o(((e,t)=>(e.ext_bip39_generate(8,t),n.bridge.resultString())));t.bip39Generate=a;const s=o(((e,t)=>(e.ext_bip39_to_entropy(8,...n.bridge.allocString(t)),n.bridge.resultU8a())));t.bip39ToEntropy=s;const u=o(((e,t,r)=>(e.ext_bip39_to_mini_secret(8,...n.bridge.allocString(t),...n.bridge.allocString(r)),n.bridge.resultU8a())));t.bip39ToMiniSecret=u;const c=o(((e,t,r)=>(e.ext_bip39_to_seed(8,...n.bridge.allocString(t),...n.bridge.allocString(r)),n.bridge.resultU8a())));t.bip39ToSeed=c;const f=o(((e,t)=>0!==e.ext_bip39_validate(...n.bridge.allocString(t))));t.bip39Validate=f;const l=o(((e,t)=>(e.ext_ed_from_seed(8,...n.bridge.allocU8a(t)),n.bridge.resultU8a())));t.ed25519KeypairFromSeed=l;const d=o(((e,t,r,i)=>(e.ext_ed_sign(8,...n.bridge.allocU8a(t),...n.bridge.allocU8a(r),...n.bridge.allocU8a(i)),n.bridge.resultU8a())));t.ed25519Sign=d;const h=o(((e,t,r,i)=>0!==e.ext_ed_verify(...n.bridge.allocU8a(t),...n.bridge.allocU8a(r),...n.bridge.allocU8a(i))));t.ed25519Verify=h;const p=o(((e,t)=>(e.ext_secp_from_seed(8,...n.bridge.allocU8a(t)),n.bridge.resultU8a())));t.secp256k1FromSeed=p;const b=o(((e,t)=>(e.ext_secp_pub_compress(8,...n.bridge.allocU8a(t)),n.bridge.resultU8a())));t.secp256k1Compress=b;const y=o(((e,t)=>(e.ext_secp_pub_expand(8,...n.bridge.allocU8a(t)),n.bridge.resultU8a())));t.secp256k1Expand=y;const g=o(((e,t,r,i)=>(e.ext_secp_recover(8,...n.bridge.allocU8a(t),...n.bridge.allocU8a(r),i),n.bridge.resultU8a())));t.secp256k1Recover=g;const m=o(((e,t,r)=>(e.ext_secp_sign(8,...n.bridge.allocU8a(t),...n.bridge.allocU8a(r)),n.bridge.resultU8a())));t.secp256k1Sign=m;const v=o(((e,t,r)=>(e.ext_sr_derive_keypair_hard(8,...n.bridge.allocU8a(t),...n.bridge.allocU8a(r)),n.bridge.resultU8a())));t.sr25519DeriveKeypairHard=v;const w=o(((e,t,r)=>(e.ext_sr_derive_keypair_soft(8,...n.bridge.allocU8a(t),...n.bridge.allocU8a(r)),n.bridge.resultU8a())));t.sr25519DeriveKeypairSoft=w;const _=o(((e,t,r)=>(e.ext_sr_derive_public_soft(8,...n.bridge.allocU8a(t),...n.bridge.allocU8a(r)),n.bridge.resultU8a())));t.sr25519DerivePublicSoft=_;const x=o(((e,t)=>(e.ext_sr_from_seed(8,...n.bridge.allocU8a(t)),n.bridge.resultU8a())));t.sr25519KeypairFromSeed=x;const O=o(((e,t,r,i)=>(e.ext_sr_sign(8,...n.bridge.allocU8a(t),...n.bridge.allocU8a(r),...n.bridge.allocU8a(i)),n.bridge.resultU8a())));t.sr25519Sign=O;const k=o(((e,t,r,i)=>0!==e.ext_sr_verify(...n.bridge.allocU8a(t),...n.bridge.allocU8a(r),...n.bridge.allocU8a(i))));t.sr25519Verify=k;const P=o(((e,t,r)=>(e.ext_sr_agree(8,...n.bridge.allocU8a(t),...n.bridge.allocU8a(r)),n.bridge.resultU8a())));t.sr25519Agree=P;const S=o(((e,t,r,i,o)=>(e.ext_vrf_sign(8,...n.bridge.allocU8a(t),...n.bridge.allocU8a(r),...n.bridge.allocU8a(i),...n.bridge.allocU8a(o)),n.bridge.resultU8a())));t.vrfSign=S;const A=o(((e,t,r,i,o,a)=>0!==e.ext_vrf_verify(...n.bridge.allocU8a(t),...n.bridge.allocU8a(r),...n.bridge.allocU8a(i),...n.bridge.allocU8a(o),...n.bridge.allocU8a(a))));t.vrfVerify=A;const E=o(((e,t,r,i)=>(e.ext_blake2b(8,...n.bridge.allocU8a(t),...n.bridge.allocU8a(r),i),n.bridge.resultU8a())));t.blake2b=E;const M=o(((e,t,r)=>(e.ext_hmac_sha256(8,...n.bridge.allocU8a(t),...n.bridge.allocU8a(r)),n.bridge.resultU8a())));t.hmacSha256=M;const j=o(((e,t,r)=>(e.ext_hmac_sha512(8,...n.bridge.allocU8a(t),...n.bridge.allocU8a(r)),n.bridge.resultU8a())));t.hmacSha512=j;const T=o(((e,t)=>(e.ext_keccak256(8,...n.bridge.allocU8a(t)),n.bridge.resultU8a())));t.keccak256=T;const B=o(((e,t)=>(e.ext_keccak512(8,...n.bridge.allocU8a(t)),n.bridge.resultU8a())));t.keccak512=B;const I=o(((e,t,r,i)=>(e.ext_pbkdf2(8,...n.bridge.allocU8a(t),...n.bridge.allocU8a(r),i),n.bridge.resultU8a())));t.pbkdf2=I;const N=o(((e,t,r,i,o,a)=>(e.ext_scrypt(8,...n.bridge.allocU8a(t),...n.bridge.allocU8a(r),i,o,a),n.bridge.resultU8a())));t.scrypt=N;const R=o(((e,t)=>(e.ext_sha256(8,...n.bridge.allocU8a(t)),n.bridge.resultU8a())));t.sha256=R;const C=o(((e,t)=>(e.ext_sha512(8,...n.bridge.allocU8a(t)),n.bridge.resultU8a())));t.sha512=C;const U=o(((e,t,r)=>(e.ext_twox(8,...n.bridge.allocU8a(t),r),n.bridge.resultU8a())));t.twox=U},29456:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(88084),i=r(21572),o=r(82352),a=r(94415),s=r(58231),u=[n.packageInfo,i.packageInfo,o.packageInfo,a.packageInfo,s.packageInfo];t.default=u},16190:(e,t,r)=>{"use strict";var n=r(64836),i=r(69338),o=n(r(29456)),a=r(85344);(0,i.detectPackage)(a.packageInfo,null,o.default)},56431:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(16190);var n=r(33804);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}))},45872:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bridge=void 0,t.initBridge=async function(e){return o.init(e)};var n=r(24868),i=r(90693);const o=new n.Bridge(i.createWasm);t.bridge=o},85344:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/wasm-crypto",path:"/",type:"cjs",version:"6.4.1"}},10195:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.base64Decode=function(e,t){const n=t.length;let i=0,o=0,a=-1;for(let s=0;a<n;s++)i=i<<6|r[e.charCodeAt(s)],(o+=6)>=8&&(t[++a]=i>>>(o-=8)&255);return t};const r=new Array(256);for(let e=0;e<64;e++)r["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(e)]=e},46885:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"base64Decode",{enumerable:!0,get:function(){return n.base64Decode}}),Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return o.packageInfo}}),Object.defineProperty(t,"unzlibSync",{enumerable:!0,get:function(){return i.unzlibSync}});var n=r(10195),i=r(56679),o=r(58231)},52998:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=[r(58231).packageInfo];t.default=n},50224:(e,t,r)=>{"use strict";var n=r(64836),i=r(69338),o=n(r(52998)),a=r(58231);(0,i.detectPackage)(a.packageInfo,null,o.default)},56679:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unzlibSync=function(e,t){return _((x(e),e.subarray(2,-4)),t)};const r=Uint8Array,n=Uint16Array,i=Uint32Array,o=new r([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=new r([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),s=new r([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),u=(e,t)=>{const r=new n(31);for(let n=0;n<31;++n)r[n]=t+=1<<e[n-1];const o=new i(r[30]);for(let e=1;e<30;++e)for(let t=r[e];t<r[e+1];++t)o[t]=t-r[e]<<5|e;return[r,o]},[c,f]=u(a,2);c[28]=258,f[258]=28;const[l]=u(s,0),d=new n(32768);for(let e=0;e<32768;++e){let t=(43690&e)>>>1|(21845&e)<<1;t=(52428&t)>>>2|(13107&t)<<2,t=(61680&t)>>>4|(3855&t)<<4,d[e]=((65280&t)>>>8|(255&t)<<8)>>>1}const h=(e,t,r)=>{const i=e.length;let o=0;const a=new n(t);for(;o<i;++o)++a[e[o]-1];const s=new n(t);for(o=0;o<t;++o)s[o]=s[o-1]+a[o-1]<<1;let u;if(r){u=new n(1<<t);const r=15-t;for(o=0;o<i;++o)if(e[o]){const n=o<<4|e[o],i=t-e[o];let a=s[e[o]-1]++<<i;for(const e=a|(1<<i)-1;a<=e;++a)u[d[a]>>>r]=n}}else for(u=new n(i),o=0;o<i;++o)u[o]=d[s[e[o]-1]++]>>>15-e[o];return u},p=new r(288);for(let e=0;e<144;++e)p[e]=8;for(let e=144;e<256;++e)p[e]=9;for(let e=256;e<280;++e)p[e]=7;for(let e=280;e<288;++e)p[e]=8;const b=new r(32);for(let e=0;e<32;++e)b[e]=5;const y=h(p,9,1),g=h(b,5,1),m=(e,t,r)=>{const n=t>>>3;return(e[n]|e[n+1]<<8)>>>(7&t)&r},v=(e,t)=>{const r=t>>>3;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>>(7&t)},w=e=>{let t=e[0];for(let r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},_=(e,t,u)=>{const f=!u||u.i;u||(u={});const d=e.length,p=!t||!f;t||(t=new r(3*d));const b=e=>{let n=t.length;if(e>n){const i=new r(Math.max(n<<1,e));i.set(t),t=i}};let _=u.f||0,x=u.p||0,O=u.b||0,k=u.l,P=u.d,S=u.m,A=u.n;if(_&&!k)return t;const E=d<<3;do{if(!k){u.f=_=m(e,x,1);const n=m(e,x+1,3);if(x+=3,!n){const r=((M=x)>>>3)+(7&M&&1)+4,n=e[r-4]|e[r-3]<<8,i=r+n;if(i>d){if(f)throw"unexpected EOF";break}p&&b(O+n),t.set(e.subarray(r,i),O),u.b=O+=n,u.p=x=i<<3;continue}if(1==n)k=y,P=g,S=9,A=5;else{if(2!=n)throw"invalid block type";{const t=m(e,x,31)+257,n=m(e,x+10,15)+4,i=t+m(e,x+5,31)+1;x+=14;const a=new r(i),s=new r(19);for(let t=0;t<n;++t)s[o[t]]=m(e,x+3*t,7);x+=3*n;const u=w(s),c=(1<<u)-1;if(!f&&x+i*(u+7)>E)break;const l=h(s,u,1);for(let t=0;t<i;){const r=l[m(e,x,c)];x+=15&r;const n=r>>>4;if(n<16)a[t++]=n;else{let r=0,i=0;for(16==n?(i=3+m(e,x,3),x+=2,r=a[t-1]):17==n?(i=3+m(e,x,7),x+=3):18==n&&(i=11+m(e,x,127),x+=7);i--;)a[t++]=r}}const d=a.subarray(0,t),p=a.subarray(t);S=w(d),A=w(p),k=h(d,S,1),P=h(p,A,1)}}if(x>E)throw"unexpected EOF"}p&&b(O+131072);const n=(1<<S)-1,i=(1<<A)-1,j=S+A+18;for(;f||x+j<E;){const r=k[v(e,x)&n],o=r>>>4;if(x+=15&r,x>E)throw"unexpected EOF";if(!r)throw"invalid length/literal";if(o<256)t[O++]=o;else{if(256==o){k=void 0;break}{let r=o-254;if(o>264){const t=o-257,n=a[t];r=m(e,x,(1<<n)-1)+c[t],x+=n}const n=P[v(e,x)&i],u=n>>>4;if(!n)throw"invalid distance";x+=15&n;let f=l[u];if(u>3){const t=s[u];f+=v(e,x)&(1<<t)-1,x+=t}if(x>E)throw"unexpected EOF";p&&b(O+131072);const d=O+r;for(;O<d;O+=4)t[O]=t[O-f],t[O+1]=t[O+1-f],t[O+2]=t[O+2-f],t[O+3]=t[O+3-f];O=d}}}u.l=k,u.p=x,u.b=O,k&&(_=1,u.m=S,u.d=P,u.n=A)}while(!_);var M;return O==t.length?t:((e,t,o)=>{(null==t||t<0)&&(t=0),(null==o||o>e.length)&&(o=e.length);const a=new(e instanceof n?n:e instanceof i?i:r)(o-t);return a.set(e.subarray(t,o)),a})(t,0,O)},x=e=>{if(8!=(15&e[0])||e[0]>>>4>7||(e[0]<<8|e[1])%31)throw"invalid zlib data";if(32&e[1])throw"invalid zlib data: preset dictionaries not supported"}},67238:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(50224);var n=r(46885);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}))},58231:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/wasm-util",path:"/",type:"cjs",version:"6.4.1"}},68107:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BigInt=void 0,Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return i.packageInfo}});var n=r(83137),i=r(76785);const o="function"==typeof n.xglobal.BigInt&&"function"==typeof n.xglobal.BigInt.asIntN?n.xglobal.BigInt:()=>Number.NaN;t.BigInt=o},76785:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-bigint",path:"/",type:"cjs",version:"10.2.1"}},39574:(e,t,r)=>{"use strict";var n=r(68107);(0,r(83137).exposeGlobal)("BigInt",n.BigInt)},45344:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fetch=void 0,Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return i.packageInfo}});var n=r(55531),i=r(69664);const o=n.xglobal.fetch;t.fetch=o},69664:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-fetch",path:"/",type:"cjs",version:"10.4.1"}},55531:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exposeGlobal=function(e,t){void 0===i[e]&&(i[e]=t)},t.extractGlobal=function(e,t){return void 0===i[e]?t:i[e]},Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return n.packageInfo}}),t.xglobal=void 0;var n=r(78344);const i="undefined"!=typeof globalThis?globalThis:void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this");t.xglobal=i},78344:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-global",path:"/",type:"cjs",version:"10.4.1"}},83137:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exposeGlobal=function(e,t){void 0===i[e]&&(i[e]=t)},t.extractGlobal=function(e,t){return void 0===i[e]?t:i[e]},Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return n.packageInfo}}),t.xglobal=void 0;var n=r(88069);const i="undefined"!=typeof globalThis?globalThis:void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this");t.xglobal=i},88069:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-global",path:"/",type:"cjs",version:"10.2.1"}},41649:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRandomValues=function(e){return n.xglobal.crypto.getRandomValues(e)},Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return i.packageInfo}});var n=r(83137),i=r(72762)},72762:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-randomvalues",path:"/",type:"cjs",version:"10.2.1"}},91984:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextDecoder=void 0,Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return o.packageInfo}});var n=r(83137),i=r(26796),o=r(67421);const a=(0,n.extractGlobal)("TextDecoder",i.TextDecoder);t.TextDecoder=a},26796:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728));Object.defineProperty(t,"__esModule",{value:!0}),t.TextDecoder=void 0;let a=function(){function e(t){(0,i.default)(this,e)}return(0,o.default)(e,[{key:"decode",value:function(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t}}]),e}();t.TextDecoder=a},67421:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-textdecoder",path:"/",type:"cjs",version:"10.2.1"}},5499:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextEncoder=void 0,Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return o.packageInfo}});var n=r(83137),i=r(57680),o=r(6645);const a=(0,n.extractGlobal)("TextEncoder",i.TextEncoder);t.TextEncoder=a},57680:(e,t,r)=>{"use strict";var n=r(64836),i=n(r(56690)),o=n(r(89728));Object.defineProperty(t,"__esModule",{value:!0}),t.TextEncoder=void 0;let a=function(){function e(){(0,i.default)(this,e)}return(0,o.default)(e,[{key:"encode",value:function(e){const t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}}]),e}();t.TextEncoder=a},6645:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-textencoder",path:"/",type:"cjs",version:"10.2.1"}},88546:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebSocket=void 0,Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return i.packageInfo}});var n=r(48303),i=r(79415);const o=n.xglobal.WebSocket;t.WebSocket=o},79415:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-ws",path:"/",type:"cjs",version:"10.4.1"}},48303:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exposeGlobal=function(e,t){void 0===i[e]&&(i[e]=t)},t.extractGlobal=function(e,t){return void 0===i[e]?t:i[e]},Object.defineProperty(t,"packageInfo",{enumerable:!0,get:function(){return n.packageInfo}}),t.xglobal=void 0;var n=r(72421);const i="undefined"!=typeof globalThis?globalThis:void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this");t.xglobal=i},72421:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=void 0;t.packageInfo={name:"@polkadot/x-global",path:"/",type:"cjs",version:"10.4.1"}},18597:e=>{"use strict";e.exports={i8:"6.5.4"}}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}r.amdO={},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";var e=r(64836),t=e(r(38416)),n=r(13855),i=r(50484),o=e(r(35450)),a=e(r(15350)),s=e(r(56717)),u=e(r(30663)),c=r(61971),f=e(r(52072)),l=e(r(12450)),d=e(r(40660)),h=e(r(6402)),p=r(32390),b=e(r(78159)),y=e(r(30215)),g=r(81292);function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?m(Object(n),!0).forEach((function(r){(0,t.default)(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t){console.log(JSON.stringify({path:e,data:t}))}async function _(e){return window.api=void 0,new Promise((async(t,r)=>{const i=new n.WsProvider(e);try{const r=await n.ApiPromise.create({provider:i,types:{AccountInfo:"AccountInfoWithTripleRefCount",Address:"AccountId",LookupSource:"AccountId",Keys:"SessionKeys2",Weight:"u32",Difficulty:"u256",DifficultyAndTimestamp:{difficulty:"Difficulty",timestamp:"u64"},LockParameters:{period:"u16",divide:"u16"},StorageVersion:{_enum:["V0","V1"],V0:"u8",V1:"u8"}}});if(window.api){r.disconnect();const n=e[r._options.provider.__private_44_endpointIndex];w("log",`${n} wss success and disconnected`),t(n)}else{window.api=r;const n=e[r._options.provider.__private_44_endpointIndex];w("log",`${n} wss connected success`),t(n)}}catch(e){w("log","connect failed"),i.disconnect(),t(null)}}))}w("log","main js loaded"),window.send=w;const x={test:async()=>{},connect:_,connectAll:async function(e){return Promise.race(e.map((e=>_([e]))))},subscribeMessage:i.subscribeMessage,getNetworkConst:i.getNetworkConst,getNetworkProperties:i.getNetworkProperties,genLinks:p.genLinks};window.settings=x,window.keyring=o.default,window.account=a.default,window.staking=s.default,window.gov=f.default,window.gov2=l.default,window.parachain=d.default,window.assets=h.default,window.eth={settings:{connect:g.connect},keyring:v(v({},b.default),{},{signEthRequest:c.signEthPayload,renderEthRequest:c.renderEthereumRequests}),account:y.default},window.walletConnect=u.default})()})();