diff --git a/dist/index.js b/dist/index.js index 96e32d0..7d0aa0c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -24,7 +24,7 @@ Arguments: `+Array.prototype.slice.call(v).join("")+` `),Eu=K(""),Pu=K(""),bA=Eu.length+Pu.length;function Mu(t,e){return t.length>=bA&&Lr(t.subarray(0,Eu.length),Eu)&&Lr(t.slice(-Pu.length),Pu)||e&&t.length>=Xp.length&&Lr(t.subarray(0,Xp.length),Xp)}function Xb(t){let e=K(t);return Mu(e,!1)?e.subarray(Eu.length,e.length-Pu.length):e}function Gb(t){let e=K(t);return Mu(e,!0)?e:Qt([Eu,e,Pu])}var w9=Ie(256),yA=Ie(255);function gA(t,e,r){let n=[],o=r&&tt.gt(e)),Yb=Hb((t,e)=>t.lt(e));var Lt=new be.default(0),oa=new be.default(1),sl=new be.default(2);var _9=new be.default(100);var S9=new be.default(1e6),Ou=new be.default(1e9),T9=Ou.mul(Ou),k9=new be.default(Number.MAX_SAFE_INTEGER),E9=new be.default(94906265);function un(t){return typeof t=="bigint"}function Dt(t){return t?be.default.isBN(t)?t:Ae(t)?Au(t.toString()):un(t)?new be.default(t.toString()):qp(t)?t.toBn():Fp(t)?new be.default(t.toBigInt().toString()):new be.default(t):new be.default(0)}function cl(t){let e=Dt(t);if(e.isNeg())throw new Error("square root of negative numbers is not supported");if(e.lte(k9))return new be.default(~~Math.sqrt(e.toNumber()));let r=E9.clone();for(;;){let n=e.div(r).iadd(r).ishrn(1);if(r.eq(n)||r.eq(n.sub(oa)))return r;r=n}}var wA={bitLength:-1,isLe:!0,isNegative:!1};function $t(t,{bitLength:e=-1,isLe:r=!0,isNegative:n=!1}=wA){let o=Dt(t),a=Math.ceil(e===-1?o.bitLength()/8:(e||0)/8);if(!t)return e===-1?new Uint8Array(1):new Uint8Array(a);let s=new Uint8Array(a),u=n?o.toTwos(a*8):o;return s.set(u.toArray(r?"le":"be",a),0),s}function Kb(t,{bitLength:e=-1,isLe:r=!1,isNegative:n=!1}={}){return Te($t(t,{bitLength:e,isLe:r,isNegative:n}))}var vA=sl.pow(new be.default(6)).isub(oa),_A=sl.pow(new be.default(14)).isub(oa),SA=sl.pow(new be.default(30)).isub(oa),TA={bitLength:16},kA={bitLength:32};function Ot(t){let e=Dt(t);if(e.lte(vA))return new Uint8Array([e.toNumber()<<2]);if(e.lte(_A))return $t(e.shln(2).iadd(oa),TA);if(e.lte(SA))return $t(e.shln(2).iadd(sl),kA);let r=$t(e),n=r.length;for(;r[n-1]===0;)n--;if(n<4)throw new Error("Invalid length, previous checks match anything less than 2^30");return Qt([new Uint8Array([(n-4<<2)+3]),r.subarray(0,n)])}function $r(t){return Qt([Ot(t.length),t])}function $s(t){let e=K(t);switch(e[0]&3){case 0:return[1,new be.default(e[0]>>>2)];case 1:return[2,new be.default(e[0]+(e[1]<<8)>>>2)];case 2:return[4,new be.default(e[0]+(e[1]<<8)+(e[2]<<16)+e[3]*16777216>>>2)];default:{let r=(e[0]>>>2)+5;switch(r){case 5:return[5,new be.default(e[1]+(e[2]<<8)+(e[3]<<16)+e[4]*16777216)];case 6:return[6,new be.default(e[1]+(e[2]<<8)+(e[3]<<16)+(e[4]+(e[5]<<8))*16777216)];case 7:return[7,new be.default(e[1]+(e[2]<<8)+(e[3]<<16)+(e[4]+(e[5]<<8)+(e[6]<<16))*16777216)];default:return[r,Fr(e.subarray(1,r))]}}}}function kn(t){switch(t[0]&3){case 0:return[1,t[0]>>>2];case 1:return[2,t[0]+(t[1]<<8)>>>2];case 2:return[4,t[0]+(t[1]<<8)+(t[2]<<16)+t[3]*16777216>>>2];default:switch((t[0]>>>2)+5){case 5:return[5,t[1]+(t[2]<<8)+(t[3]<<16)+t[4]*16777216];case 6:return[6,t[1]+(t[2]<<8)+(t[3]<<16)+(t[4]+(t[5]<<8))*16777216];case 7:return[7,t[1]+(t[2]<<8)+(t[3]<<16)+(t[4]+(t[5]<<8)+(t[6]<<16))*16777216];default:throw new Error("Compact input is > Number.MAX_SAFE_INTEGER")}}}function Ya(t){let[e,r]=$s(t),n=e+r.toNumber();return[n,t.subarray(e,n)]}function Jb(t=0,{bitLength:e=32,isLe:r=!0}={}){if(e!==32&&e!==64)throw new Error("Invalid bitLength provided, expected 32 or 64");let n=new Uint8Array(e/8),o=new DataView(n.buffer,n.byteOffset);return e===32?o.setFloat32(0,Number(t),r):o.setFloat64(0,Number(t),r),n}function Si(t){return typeof t=="boolean"}var P9=new RegExp("(\\d+?)(?=(\\d{3})+(?!\\d)|$)","g");function Zp(t,e=","){let r=t[0].startsWith("-"),n=r?t.substring(1).match(P9):t.match(P9);return n?`${r?"-":""}${n.join(e)}`:t}function Yp(t){return{decimal:.1.toLocaleString(t).substring(1,2),thousand:1e3.toLocaleString(t).substring(1,2)}}var Io=[{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:"\xB5"},{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 Qb(t){for(let e=0,r=Io.length;e$b(t,e);Ti.findSi=Qb;Ti.getDefaults=()=>({decimals:Iu,unit:Kp});Ti.getOptions=(t=Iu)=>Io.filter(({power:e})=>e<0?t+e>=0:!0);Ti.setDefaults=({decimals:t,unit:e})=>{Iu=(Array.isArray(t)?t[0]:t)??Iu,Kp=(Array.isArray(e)?e[0]:e)??Kp,Io[8].text=Kp};function ul(t){return t.toString().padStart(2,"0")}function M9(t){let e=t.getFullYear().toString(),r=ul(t.getMonth()+1),n=ul(t.getDate()),o=ul(t.getHours()),a=ul(t.getMinutes()),s=ul(t.getSeconds());return`${e}-${r}-${n} ${o}:${a}:${s}`}function Vu(t,{locale:e="en"}={}){let{thousand:r}=Yp(e);return Zp(Dt(t).toString(),r)}function ty(t){return Qr(jt(t))}function qe(t){return typeof t=="string"||t instanceof String}function AA(t){for(let e=0,r=t.length;e126)return!1}return!0}function A9(t){for(let e=0,r=t.length;e126)return!1}return!0}function Jp(t){return qe(t)?Ae(t)?A9(K(t)):AA(t):t?A9(t):!1}var ry=x9("isPrototypeOf","hasOwnProperty");function ny(t,e){return ry(e)&&ry(t)?t===e||t.isPrototypeOf(e):!1}var OA=il("toHex","toHuman","toU8a"),IA=il("get");function fn(t){return OA(t)&&IA(t.registry)}var fl=il("toBigInt","toBn","toNumber","unwrap");function VA(t,e){return un(e)?e.toString():e}function Le(t,e){return JSON.stringify(t,VA,e)}function io(t){return t===null}function De(t){return typeof t=="number"}function Qe(t){return t===void 0}function oy(t){if(!t)return qe(t);let e=K(t),r=e.length,n=0;for(;n=194&&e[n]<=223){if(n+1191)return!1}else return!1;n+=2}else if(e[n]===224){if(n+2191||e[n+2]<128||e[n+2]>191)return!1}else return!1;n+=3}else if(e[n]>=225&&e[n]<=236){if(n+2191||e[n+2]<128||e[n+2]>191)return!1}else return!1;n+=3}else if(e[n]===237){if(n+2159||e[n+2]<128||e[n+2]>191)return!1}else return!1;n+=3}else if(e[n]>=238&&e[n]<=239){if(n+2191||e[n+2]<128||e[n+2]>191)return!1}else return!1;n+=3}else if(e[n]===240){if(n+3191||e[n+2]<128||e[n+2]>191||e[n+3]<128||e[n+3]>191)return!1}else return!1;n+=4}else if(e[n]>=241&&e[n]<=243){if(n+3191||e[n+2]<128||e[n+2]>191||e[n+3]<128||e[n+3]>191)return!1}else return!1;n+=4}else if(e[n]===244){if(n+3143||e[n+2]<128||e[n+2]>191||e[n+3]<128||e[n+3]>191)return!1}else return!1;n+=4}else return!1;return!0}function mr(t,e,r,n,o=0){let a=n?n(e,o):e.toString(),s;Object.defineProperty(t,a,{configurable:!0,enumerable:!0,get:function(){if(s===void 0){s=r(e,o,this);try{Object.defineProperty(this,a,{value:s})}catch{}}return s}})}function Vo(t,e,r,n){for(let o=0,a=e.length;o{if(t<=0)return e;let r=`${e}`;return r.lengthll("debug",e,o,n):Fn,error:(...o)=>ll("error",e,o),log:(...o)=>ll("log",e,o),noop:Fn,warn:(...o)=>ll("warn",e,o)}}function DA(){return"none"}function ec(t,{getInstanceId:e=DA}={}){let r={},n=(...o)=>{let a=Le(o),s=e();return r[s]||(r[s]={}),r[s][a]===void 0&&(r[s][a]=t(...o)),r[s][a]};return n.unmemoize=(...o)=>{let a=Le(o),s=e();r[s]?.[a]!==void 0&&delete r[s][a]},n}function No(t,e){setTimeout(()=>{Promise.resolve().then(()=>{t()}).catch(r=>{e?e(r):console.error(r)})},0)}function ay(t){let e=Object.keys(t);for(let r=0,n=e.length;r{let r=e.replace(/[-_., ]+/g," ").trim().split(" "),n="";for(let o=0,a=r.length;o(e?tc[t.charCodeAt(0)]:sy[t.charCodeAt(0)])+t.slice(1)),rc=O9(t=>tc[t.charCodeAt(0)]+t.slice(1));function FA(t){return e=>e?t[e.charCodeAt(0)]+e.slice(1):""}var cy=FA(tc);function nc(t){return Te(yt(t))}var uy={name:"@polkadot/api",path:import.meta&&import.meta.url?new URL(import.meta.url).pathname.substring(0,new URL(import.meta.url).pathname.lastIndexOf("/")+1):"auto",type:"esm",version:"10.12.1"};var qA=Jr.crypto;function Qp(t){return qA.getRandomValues(t)}var $p={getRandomValues:Qp},WA={crypto:$p},eh=class{__internal__bridge;constructor(e){this.__internal__bridge=e}abort=()=>{throw new Error("abort")};__wbindgen_is_undefined=e=>this.__internal__bridge.getObject(e)===void 0;__wbindgen_throw=(e,r)=>{throw new Error(this.__internal__bridge.getString(e,r))};__wbg_self_1b7a39e3a92c949c=()=>this.__internal__bridge.addObject(WA);__wbg_require_604837428532a733=(e,r)=>{throw new Error(`Unable to require ${this.__internal__bridge.getString(e,r)}`)};__wbg_crypto_968f1772287e2df0=e=>this.__internal__bridge.addObject($p);__wbg_getRandomValues_a3d34b4fee3c2869=e=>this.__internal__bridge.addObject($p.getRandomValues);__wbg_getRandomValues_f5e14ab7ac8e995d=(e,r,n)=>{$p.getRandomValues(this.__internal__bridge.getU8a(r,n))};__wbg_randomFillSync_d5bd2d655fdf256a=(e,r,n)=>{throw new Error("randomFillsync is not available")};__wbindgen_object_drop_ref=e=>{this.__internal__bridge.takeObject(e)}};var th=class{__internal__createWasm;__internal__heap;__internal__wbg;__internal__cachegetInt32;__internal__cachegetUint8;__internal__heapNext;__internal__wasm;__internal__wasmError;__internal__wasmPromise;__internal__type;constructor(e){this.__internal__createWasm=e,this.__internal__cachegetInt32=null,this.__internal__cachegetUint8=null,this.__internal__heap=new Array(32).fill(void 0).concat(void 0,null,!0,!1),this.__internal__heapNext=this.__internal__heap.length,this.__internal__type="none",this.__internal__wasm=null,this.__internal__wasmError=null,this.__internal__wasmPromise=null,this.__internal__wbg={...new eh(this)}}get error(){return this.__internal__wasmError}get type(){return this.__internal__type}get wasm(){return this.__internal__wasm}async init(e){(!this.__internal__wasmPromise||e)&&(this.__internal__wasmPromise=(e||this.__internal__createWasm)(this.__internal__wbg));let{error:r,type:n,wasm:o}=await this.__internal__wasmPromise;return this.__internal__type=n,this.__internal__wasm=o,this.__internal__wasmError=r,this.__internal__wasm}getObject(e){return this.__internal__heap[e]}dropObject(e){e<36||(this.__internal__heap[e]=this.__internal__heapNext,this.__internal__heapNext=e)}takeObject(e){let r=this.getObject(e);return this.dropObject(e),r}addObject(e){this.__internal__heapNext===this.__internal__heap.length&&this.__internal__heap.push(this.__internal__heap.length+1);let r=this.__internal__heapNext;return this.__internal__heapNext=this.__internal__heap[r],this.__internal__heap[r]=e,r}getInt32(){return(this.__internal__cachegetInt32===null||this.__internal__cachegetInt32.buffer!==this.__internal__wasm.memory.buffer)&&(this.__internal__cachegetInt32=new Int32Array(this.__internal__wasm.memory.buffer)),this.__internal__cachegetInt32}getUint8(){return(this.__internal__cachegetUint8===null||this.__internal__cachegetUint8.buffer!==this.__internal__wasm.memory.buffer)&&(this.__internal__cachegetUint8=new Uint8Array(this.__internal__wasm.memory.buffer)),this.__internal__cachegetUint8}getU8a(e,r){return this.getUint8().subarray(e/1,e/1+r)}getString(e,r){return Qr(this.getU8a(e,r))}allocU8a(e){let r=this.__internal__wasm.__wbindgen_malloc(e.length*1);return this.getUint8().set(e,r/1),[r,e.length]}allocString(e){return this.allocU8a(yt(e))}resultU8a(){let e=this.getInt32()[2],r=this.getInt32()[8/4+1],n=this.getU8a(e,r).slice();return this.__internal__wasm.__wbindgen_free(e,r*1),n}resultString(){return Qr(this.resultU8a())}};function I9(t,e,r){return async n=>{let o={error:null,type:"none",wasm:null};try{if(e?.length){if(typeof WebAssembly!="object"||typeof WebAssembly.instantiate!="function")throw new Error("WebAssembly is not available in your environment")}else throw new Error("No WebAssembly provided for initialization");let a=await WebAssembly.instantiate(e,{wbg:n});o.wasm=a.instance.exports,o.type="wasm"}catch(a){typeof r=="function"?(o.wasm=r(n),o.type="asm"):(o.error=`FATAL: Unable to initialize @polkadot/wasm-${t}:: ${a.message}`,console.error(o.error))}return o}}var V9="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",N9=new Array(256);for(let t=0,e=V9.length;t=8&&(e[++o]=r>>>(n-=8)&255);return e}var ki=Uint8Array,Ka=Uint16Array,py=Uint32Array,jA=new ki([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),C9=new ki([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]),B9=new ki([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]),R9=(t,e)=>{let r=new Ka(31);for(let o=0;o<31;++o)r[o]=e+=1<>>1|(t&21845)<<1;e=(e&52428)>>>2|(e&13107)<<2,e=(e&61680)>>>4|(e&3855)<<4,hy[t]=((e&65280)>>>8|(e&255)<<8)>>>1}var dl=(t,e,r)=>{let n=t.length,o=0,a=new Ka(e);for(;o>l]=h}}else for(u=new Ka(n),o=0;o>15-t[o]);return u},pl=new ki(288);for(let t=0;t<144;++t)pl[t]=8;for(let t=144;t<256;++t)pl[t]=9;for(let t=256;t<280;++t)pl[t]=7;for(let t=280;t<288;++t)pl[t]=8;var H9=new ki(32);for(let t=0;t<32;++t)H9[t]=5;var ZA=dl(pl,9,1),YA=dl(H9,5,1),Jo=(t,e,r)=>{let n=e>>>3;return(t[n]|t[n+1]<<8)>>>(e&7)&r},ly=(t,e)=>{let r=e>>>3;return(t[r]|t[r+1]<<8|t[r+2]<<16)>>>(e&7)},KA=t=>(t>>>3)+(t&7&&1),JA=(t,e,r)=>{(e==null||e<0)&&(e=0),(r==null||r>t.length)&&(r=t.length);let n=new(t instanceof Ka?Ka:t instanceof py?py:ki)(r-e);return n.set(t.subarray(e,r)),n},dy=t=>{let e=t[0];for(let r=1,n=t.length;re&&(e=t[r]);return e},QA=(t,e,r)=>{let n=!r||r.i;r||(r={});let o=t.length,a=!e||!n;e||(e=new ki(o*3));let s=L=>{let Z=e.length;if(L>Z){let G=new ki(Math.max(Z<<1,L));G.set(e),e=G}},u=r.f||0,l=r.p||0,h=r.b||0,y=r.l,_=r.d,V=r.m,R=r.n;if(u&&!y)return e;let B=o<<3;do{if(!y){r.f=u=Jo(t,l,1);let J=Jo(t,l+1,3);if(l+=3,J)if(J==1)y=ZA,_=YA,V=9,R=5;else if(J==2){let Y=Jo(t,l,31)+257,fe=Jo(t,l+10,15)+4,ie=Y+Jo(t,l+5,31)+1;l+=14;let re=new ki(ie),he=new ki(19);for(let C=0;CB)break;let Oe=dl(he,me,1);for(let C=0;C>>4;if(w<16)re[C++]=w;else{let S=0,E=0;for(w==16?(E=3+Jo(t,l,3),l+=2,S=re[C-1]):w==17?(E=3+Jo(t,l,7),l+=3):w==18&&(E=11+Jo(t,l,127),l+=7);E--;)re[C++]=S}}let ge=re.subarray(0,Y),Ze=re.subarray(Y);V=dy(ge),R=dy(Ze),y=dl(ge,V,1),_=dl(Ze,R,1)}else throw"invalid block type";else{let Y=KA(l)+4,fe=t[Y-4]|t[Y-3]<<8,ie=Y+fe;if(ie>o){if(n)throw"unexpected EOF";break}a&&s(h+fe),e.set(t.subarray(Y,ie),h),r.b=h+=fe,r.p=l=ie<<3;continue}if(l>B)throw"unexpected EOF"}a&&s(h+131072);let L=(1<>>4;if(l+=J&15,l>B)throw"unexpected EOF";if(!J)throw"invalid length/literal";if(Y<256)e[h++]=Y;else if(Y==256){y=void 0;break}else{let fe=Y-254;if(Y>264){let Re=Y-257,Oe=C9[Re];fe=Jo(t,l,(1<>>4;if(!ie)throw"invalid distance";l+=ie&15;let he=GA[re];if(re>3){let Re=B9[re];he+=ly(t,l)&(1<B)throw"unexpected EOF";a&&s(h+131072);let me=h+fe;for(;h{if((t[0]&15)!=8||t[0]>>>4>7||(t[0]<<8|t[1])%31)throw"invalid zlib data";if(t[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function my(t,e){return QA(($A(t),t.subarray(2,-4)),e)}var Cu=Qs(L9(),1);var D9=my(fy(Cu.bytes,new Uint8Array(Cu.lenIn)),new Uint8Array(Cu.lenOut));var z9=I9("crypto",D9,null);var ve=new th(z9);async function F9(t){return ve.init(t)}function er(t){return(...e)=>{if(!ve.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.");return t(ve.wasm,...e)}}var q9=er((t,e)=>(t.ext_bip39_to_entropy(8,...ve.allocString(e)),ve.resultU8a())),W9=er((t,e,r)=>(t.ext_bip39_to_mini_secret(8,...ve.allocString(e),...ve.allocString(r)),ve.resultU8a())),j9=er((t,e,r)=>(t.ext_bip39_to_seed(8,...ve.allocString(e),...ve.allocString(r)),ve.resultU8a())),X9=er((t,e)=>t.ext_bip39_validate(...ve.allocString(e))!==0),G9=er((t,e)=>(t.ext_ed_from_seed(8,...ve.allocU8a(e)),ve.resultU8a())),Z9=er((t,e,r,n)=>(t.ext_ed_sign(8,...ve.allocU8a(e),...ve.allocU8a(r),...ve.allocU8a(n)),ve.resultU8a())),Y9=er((t,e,r,n)=>t.ext_ed_verify(...ve.allocU8a(e),...ve.allocU8a(r),...ve.allocU8a(n))!==0),K9=er((t,e)=>(t.ext_secp_from_seed(8,...ve.allocU8a(e)),ve.resultU8a())),J9=er((t,e)=>(t.ext_secp_pub_compress(8,...ve.allocU8a(e)),ve.resultU8a())),Q9=er((t,e)=>(t.ext_secp_pub_expand(8,...ve.allocU8a(e)),ve.resultU8a())),$9=er((t,e,r,n)=>(t.ext_secp_recover(8,...ve.allocU8a(e),...ve.allocU8a(r),n),ve.resultU8a())),e8=er((t,e,r)=>(t.ext_secp_sign(8,...ve.allocU8a(e),...ve.allocU8a(r)),ve.resultU8a())),t8=er((t,e,r)=>(t.ext_sr_derive_keypair_hard(8,...ve.allocU8a(e),...ve.allocU8a(r)),ve.resultU8a())),r8=er((t,e,r)=>(t.ext_sr_derive_keypair_soft(8,...ve.allocU8a(e),...ve.allocU8a(r)),ve.resultU8a()));var n8=er((t,e)=>(t.ext_sr_from_seed(8,...ve.allocU8a(e)),ve.resultU8a())),o8=er((t,e,r,n)=>(t.ext_sr_sign(8,...ve.allocU8a(e),...ve.allocU8a(r),...ve.allocU8a(n)),ve.resultU8a())),i8=er((t,e,r,n)=>t.ext_sr_verify(...ve.allocU8a(e),...ve.allocU8a(r),...ve.allocU8a(n))!==0);var a8=er((t,e,r,n,o)=>(t.ext_vrf_sign(8,...ve.allocU8a(e),...ve.allocU8a(r),...ve.allocU8a(n),...ve.allocU8a(o)),ve.resultU8a())),s8=er((t,e,r,n,o,a)=>t.ext_vrf_verify(...ve.allocU8a(e),...ve.allocU8a(r),...ve.allocU8a(n),...ve.allocU8a(o),...ve.allocU8a(a))!==0),c8=er((t,e,r,n)=>(t.ext_blake2b(8,...ve.allocU8a(e),...ve.allocU8a(r),n),ve.resultU8a())),u8=er((t,e,r)=>(t.ext_hmac_sha256(8,...ve.allocU8a(e),...ve.allocU8a(r)),ve.resultU8a())),f8=er((t,e,r)=>(t.ext_hmac_sha512(8,...ve.allocU8a(e),...ve.allocU8a(r)),ve.resultU8a())),l8=er((t,e)=>(t.ext_keccak256(8,...ve.allocU8a(e)),ve.resultU8a())),d8=er((t,e)=>(t.ext_keccak512(8,...ve.allocU8a(e)),ve.resultU8a())),p8=er((t,e,r,n)=>(t.ext_pbkdf2(8,...ve.allocU8a(e),...ve.allocU8a(r),n),ve.resultU8a())),h8=er((t,e,r,n,o,a)=>(t.ext_scrypt(8,...ve.allocU8a(e),...ve.allocU8a(r),n,o,a),ve.resultU8a())),m8=er((t,e)=>(t.ext_sha256(8,...ve.allocU8a(e)),ve.resultU8a())),x8=er((t,e)=>(t.ext_sha512(8,...ve.allocU8a(e)),ve.resultU8a())),b8=er((t,e,r)=>(t.ext_twox(8,...ve.allocU8a(e),r),ve.resultU8a()));function lt(){return!!ve.wasm}async function y8(){try{return!!await F9()}catch{return!1}}function g8(){return y8().then(()=>{if(!lt())throw new Error("Unable to initialize @polkadot/util-crypto");return!0}).catch(()=>!1)}function Bu(t){if(!Number.isSafeInteger(t))throw new Error(`Wrong integer: ${t}`)}function _8(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}function S8(...t){let e=a=>a,r=(a,s)=>u=>a(s(u)),n=t.map(a=>a.encode).reduceRight(r,e),o=t.map(a=>a.decode).reduce(r,e);return{encode:n,decode:o}}function T8(t){return{encode:e=>{if(!Array.isArray(e)||e.length&&typeof e[0]!="number")throw new Error("alphabet.encode input should be an array of numbers");return e.map(r=>{if(r<0||r>=t.length)throw new Error(`Digit index outside alphabet: ${r} (alphabet: ${t.length})`);return t[r]})},decode:e=>{if(!Array.isArray(e)||e.length&&typeof e[0]!="string")throw new Error("alphabet.decode input should be array of strings");return e.map(r=>{if(typeof r!="string")throw new Error(`alphabet.decode: not string element=${r}`);let n=t.indexOf(r);if(n===-1)throw new Error(`Unknown letter: "${r}". Allowed: ${t}`);return n})}}}function k8(t=""){if(typeof t!="string")throw new Error("join separator should be string");return{encode:e=>{if(!Array.isArray(e)||e.length&&typeof e[0]!="string")throw new Error("join.encode input should be array of strings");for(let r of e)if(typeof r!="string")throw new Error(`join.encode: non-string input=${r}`);return e.join(t)},decode:e=>{if(typeof e!="string")throw new Error("join.decode input should be string");return e.split(t)}}}function eO(t,e="="){if(typeof e!="string")throw new Error("padding chr should be string");return{encode(r){if(!Array.isArray(r)||r.length&&typeof r[0]!="string")throw new Error("padding.encode input should be array of strings");for(let n of r)if(typeof n!="string")throw new Error(`padding.encode: non-string input=${n}`);for(;r.length*t%8;)r.push(e);return r},decode(r){if(!Array.isArray(r)||r.length&&typeof r[0]!="string")throw new Error("padding.encode input should be array of strings");for(let o of r)if(typeof o!="string")throw new Error(`padding.decode: non-string input=${o}`);let n=r.length;if(n*t%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;n>0&&r[n-1]===e;n--)if(!((n-1)*t%8))throw new Error("Invalid padding: string has too much padding");return r.slice(0,n)}}}function w8(t,e,r){if(e<2)throw new Error(`convertRadix: wrong from=${e}, base cannot be less than 2`);if(r<2)throw new Error(`convertRadix: wrong to=${r}, base cannot be less than 2`);if(!Array.isArray(t))throw new Error("convertRadix: data should be array");if(!t.length)return[];let n=0,o=[],a=Array.from(t);for(a.forEach(s=>{if(s<0||s>=e)throw new Error(`Wrong integer: ${s}`)});;){let s=0,u=!0;for(let l=n;le?E8(e,t%e):t,nh=(t,e)=>t+(e-E8(t,e));function v8(t,e,r,n){if(!Array.isArray(t))throw new Error("convertRadix2: data should be array");if(e<=0||e>32)throw new Error(`convertRadix2: wrong from=${e}`);if(r<=0||r>32)throw new Error(`convertRadix2: wrong to=${r}`);if(nh(e,r)>32)throw new Error(`convertRadix2: carry overflow from=${e} to=${r} carryBits=${nh(e,r)}`);let o=0,a=0,s=2**r-1,u=[];for(let l of t){if(l>=2**e)throw new Error(`convertRadix2: invalid data word=${l} from=${e}`);if(o=o<32)throw new Error(`convertRadix2: carry overflow pos=${a} from=${e}`);for(a+=e;a>=r;a-=r)u.push((o>>a-r&s)>>>0);o&=2**a-1}if(o=o<=e)throw new Error("Excess padding");if(!n&&o)throw new Error(`Non-zero padding: ${o}`);return n&&a>0&&u.push(o>>>0),u}function tO(t){return{encode:e=>{if(!_8(e))throw new Error("radix.encode input should be Uint8Array");return w8(Array.from(e),2**8,t)},decode:e=>{if(!Array.isArray(e)||e.length&&typeof e[0]!="number")throw new Error("radix.decode input should be array of numbers");return Uint8Array.from(w8(e,t,2**8))}}}function rO(t,e=!1){if(t<=0||t>32)throw new Error("radix2: bits should be in (0..32]");if(nh(8,t)>32||nh(t,8)>32)throw new Error("radix2: carry overflow");return{encode:r=>{if(!_8(r))throw new Error("radix2.encode input should be Uint8Array");return v8(Array.from(r),8,t,!e)},decode:r=>{if(!Array.isArray(r)||r.length&&typeof r[0]!="number")throw new Error("radix2.decode input should be array of numbers");return Uint8Array.from(v8(r,t,8,e))}}}var P8=S8(rO(6),T8("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),eO(6),k8(""));var nO=t=>S8(tO(58),T8(t),k8("")),M8=nO("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");function oh({coder:t,ipfs:e},r){return(n,o)=>(r(n,o),t.decode(e&&o?n.substring(1):n))}function ih({coder:t,ipfs:e}){return(r,n)=>{let o=t.encode(K(r));return e&&n?`${e}${o}`:o}}function ah({chars:t,ipfs:e,type:r,withPadding:n}){return(o,a)=>{if(typeof o!="string")throw new Error(`Expected ${r} string input`);if(e&&a&&!o.startsWith(e))throw new Error(`Expected ipfs-compatible ${r} to start with '${e}'`);for(let s=a?1:0,u=o.length;s0&&!e.includes(t.length))throw new Error(`Expected Uint8Array of length ${e}, not of length=${t.length}`)}function sh(t){if(typeof t!="function"||typeof t.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");qr(t.outputLen),qr(t.blockLen)}function Co(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function Ru(t,e){hl(t);let r=e.outputLen;if(t.lengthnew Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4));function O8(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}var Uu=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),Qo=(t,e)=>t<<32-e|t>>>e,aO=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!aO)throw new Error("Non little-endian hardware is not supported");function gy(t){if(typeof t!="string")throw new Error(`utf8ToBytes expected string, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}function en(t){if(typeof t=="string"&&(t=gy(t)),!O8(t))throw new Error(`expected Uint8Array, got ${typeof t}`);return t}function uh(...t){let e=0;for(let n=0;nt().update(en(n)).digest(),r=t();return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=()=>t(),e}function I8(t){let e=(n,o)=>t(o).update(en(n)).digest(),r=t({});return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=n=>t(n),e}function V8(t){let e=(n,o)=>t(o).update(en(n)).digest(),r=t({});return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=n=>t(n),e}function lh(t=32){if(ch&&typeof ch.getRandomValues=="function")return ch.getRandomValues(new Uint8Array(t));throw new Error("crypto.getRandomValues must be defined")}var N8=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]),dh=class extends Ei{constructor(e,r,n={},o,a,s){if(super(),this.blockLen=e,this.outputLen=r,this.length=0,this.pos=0,this.finished=!1,this.destroyed=!1,qr(e),qr(r),qr(o),r<0||r>o)throw new Error("outputLen bigger than keyLen");if(n.key!==void 0&&(n.key.length<1||n.key.length>o))throw new Error(`key must be up 1..${o} byte long or undefined`);if(n.salt!==void 0&&n.salt.length!==a)throw new Error(`salt must be ${a} byte long or undefined`);if(n.personalization!==void 0&&n.personalization.length!==s)throw new Error(`personalization must be ${s} byte long or undefined`);this.buffer32=Bo(this.buffer=new Uint8Array(e))}update(e){Co(this);let{blockLen:r,buffer:n,buffer32:o}=this;e=en(e);let a=e.length,s=e.byteOffset,u=e.buffer;for(let l=0;lo[s]=a)}digest(){let{buffer:e,outputLen:r}=this;this.digestInto(e);let n=e.slice(0,r);return this.destroy(),n}_cloneInto(e){let{buffer:r,length:n,finished:o,destroyed:a,outputLen:s,pos:u}=this;return e||(e=new this.constructor({dkLen:s})),e.set(...this.get()),e.length=n,e.finished=o,e.destroyed=a,e.outputLen=s,e.buffer.set(r),e.pos=u,e}};var ph=BigInt(4294967295),wy=BigInt(32);function C8(t,e=!1){return e?{h:Number(t&ph),l:Number(t>>wy&ph)}:{h:Number(t>>wy&ph)|0,l:Number(t&ph)|0}}function vy(t,e=!1){let r=new Uint32Array(t.length),n=new Uint32Array(t.length);for(let o=0;oBigInt(t>>>0)<>>0),uO=(t,e,r)=>t>>>r,fO=(t,e,r)=>t<<32-r|e>>>r,lO=(t,e,r)=>t>>>r|e<<32-r,dO=(t,e,r)=>t<<32-r|e>>>r,pO=(t,e,r)=>t<<64-r|e>>>r-32,hO=(t,e,r)=>t>>>r-32|e<<64-r,mO=(t,e)=>e,xO=(t,e)=>t,_y=(t,e,r)=>t<>>32-r,Sy=(t,e,r)=>e<>>32-r,Ty=(t,e,r)=>e<>>64-r,ky=(t,e,r)=>t<>>64-r;function bO(t,e,r,n){let o=(e>>>0)+(n>>>0);return{h:t+r+(o/2**32|0)|0,l:o|0}}var yO=(t,e,r)=>(t>>>0)+(e>>>0)+(r>>>0),gO=(t,e,r,n)=>e+r+n+(t/2**32|0)|0,wO=(t,e,r,n)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0),vO=(t,e,r,n,o)=>e+r+n+o+(t/2**32|0)|0,_O=(t,e,r,n,o)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0)+(o>>>0),SO=(t,e,r,n,o,a)=>e+r+n+o+a+(t/2**32|0)|0;var TO={fromBig:C8,split:vy,toBig:cO,shrSH:uO,shrSL:fO,rotrSH:lO,rotrSL:dO,rotrBH:pO,rotrBL:hO,rotr32H:mO,rotr32L:xO,rotlSH:_y,rotlSL:Sy,rotlBH:Ty,rotlBL:ky,add:bO,add3L:yO,add3H:gO,add4L:wO,add4H:vO,add5H:SO,add5L:_O},Be=TO;var Gr=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),ke=new Uint32Array(32);function Ja(t,e,r,n,o,a){let s=o[a],u=o[a+1],l=ke[2*t],h=ke[2*t+1],y=ke[2*e],_=ke[2*e+1],V=ke[2*r],R=ke[2*r+1],B=ke[2*n],L=ke[2*n+1],Z=Be.add3L(l,y,s);h=Be.add3H(Z,h,_,u),l=Z|0,{Dh:L,Dl:B}={Dh:L^h,Dl:B^l},{Dh:L,Dl:B}={Dh:Be.rotr32H(L,B),Dl:Be.rotr32L(L,B)},{h:R,l:V}=Be.add(R,V,L,B),{Bh:_,Bl:y}={Bh:_^R,Bl:y^V},{Bh:_,Bl:y}={Bh:Be.rotrSH(_,y,24),Bl:Be.rotrSL(_,y,24)},ke[2*t]=l,ke[2*t+1]=h,ke[2*e]=y,ke[2*e+1]=_,ke[2*r]=V,ke[2*r+1]=R,ke[2*n]=B,ke[2*n+1]=L}function Qa(t,e,r,n,o,a){let s=o[a],u=o[a+1],l=ke[2*t],h=ke[2*t+1],y=ke[2*e],_=ke[2*e+1],V=ke[2*r],R=ke[2*r+1],B=ke[2*n],L=ke[2*n+1],Z=Be.add3L(l,y,s);h=Be.add3H(Z,h,_,u),l=Z|0,{Dh:L,Dl:B}={Dh:L^h,Dl:B^l},{Dh:L,Dl:B}={Dh:Be.rotrSH(L,B,16),Dl:Be.rotrSL(L,B,16)},{h:R,l:V}=Be.add(R,V,L,B),{Bh:_,Bl:y}={Bh:_^R,Bl:y^V},{Bh:_,Bl:y}={Bh:Be.rotrBH(_,y,63),Bl:Be.rotrBL(_,y,63)},ke[2*t]=l,ke[2*t+1]=h,ke[2*e]=y,ke[2*e+1]=_,ke[2*r]=V,ke[2*r+1]=R,ke[2*n]=B,ke[2*n+1]=L}var Ey=class extends dh{constructor(e={}){super(128,e.dkLen===void 0?64:e.dkLen,e,64,16,16),this.v0l=Gr[0]|0,this.v0h=Gr[1]|0,this.v1l=Gr[2]|0,this.v1h=Gr[3]|0,this.v2l=Gr[4]|0,this.v2h=Gr[5]|0,this.v3l=Gr[6]|0,this.v3h=Gr[7]|0,this.v4l=Gr[8]|0,this.v4h=Gr[9]|0,this.v5l=Gr[10]|0,this.v5h=Gr[11]|0,this.v6l=Gr[12]|0,this.v6h=Gr[13]|0,this.v7l=Gr[14]|0,this.v7h=Gr[15]|0;let r=e.key?e.key.length:0;if(this.v0l^=this.outputLen|r<<8|65536|1<<24,e.salt){let n=Bo(en(e.salt));this.v4l^=n[0],this.v4h^=n[1],this.v5l^=n[2],this.v5h^=n[3]}if(e.personalization){let n=Bo(en(e.personalization));this.v6l^=n[0],this.v6h^=n[1],this.v7l^=n[2],this.v7h^=n[3]}if(e.key){let n=new Uint8Array(this.blockLen);n.set(en(e.key)),this.update(n)}}get(){let{v0l:e,v0h:r,v1l:n,v1h:o,v2l:a,v2h:s,v3l:u,v3h:l,v4l:h,v4h:y,v5l:_,v5h:V,v6l:R,v6h:B,v7l:L,v7h:Z}=this;return[e,r,n,o,a,s,u,l,h,y,_,V,R,B,L,Z]}set(e,r,n,o,a,s,u,l,h,y,_,V,R,B,L,Z){this.v0l=e|0,this.v0h=r|0,this.v1l=n|0,this.v1h=o|0,this.v2l=a|0,this.v2h=s|0,this.v3l=u|0,this.v3h=l|0,this.v4l=h|0,this.v4h=y|0,this.v5l=_|0,this.v5h=V|0,this.v6l=R|0,this.v6h=B|0,this.v7l=L|0,this.v7h=Z|0}compress(e,r,n){this.get().forEach((l,h)=>ke[h]=l),ke.set(Gr,16);let{h:o,l:a}=Be.fromBig(BigInt(this.length));ke[24]=Gr[8]^a,ke[25]=Gr[9]^o,n&&(ke[28]=~ke[28],ke[29]=~ke[29]);let s=0,u=N8;for(let l=0;l<12;l++)Ja(0,4,8,12,e,r+2*u[s++]),Qa(0,4,8,12,e,r+2*u[s++]),Ja(1,5,9,13,e,r+2*u[s++]),Qa(1,5,9,13,e,r+2*u[s++]),Ja(2,6,10,14,e,r+2*u[s++]),Qa(2,6,10,14,e,r+2*u[s++]),Ja(3,7,11,15,e,r+2*u[s++]),Qa(3,7,11,15,e,r+2*u[s++]),Ja(0,5,10,15,e,r+2*u[s++]),Qa(0,5,10,15,e,r+2*u[s++]),Ja(1,6,11,12,e,r+2*u[s++]),Qa(1,6,11,12,e,r+2*u[s++]),Ja(2,7,8,13,e,r+2*u[s++]),Qa(2,7,8,13,e,r+2*u[s++]),Ja(3,4,9,14,e,r+2*u[s++]),Qa(3,4,9,14,e,r+2*u[s++]);this.v0l^=ke[0]^ke[16],this.v0h^=ke[1]^ke[17],this.v1l^=ke[2]^ke[18],this.v1h^=ke[3]^ke[19],this.v2l^=ke[4]^ke[20],this.v2h^=ke[5]^ke[21],this.v3l^=ke[6]^ke[22],this.v3h^=ke[7]^ke[23],this.v4l^=ke[8]^ke[24],this.v4h^=ke[9]^ke[25],this.v5l^=ke[10]^ke[26],this.v5h^=ke[11]^ke[27],this.v6l^=ke[12]^ke[28],this.v6h^=ke[13]^ke[29],this.v7l^=ke[14]^ke[30],this.v7h^=ke[15]^ke[31],ke.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)}},Py=I8(t=>new Ey(t));function My(t){return(...e)=>Te(t(...e))}function Ay(t,e){return(r,n)=>e(r,t,n)}function hh(t,e){return(r,n=256,o)=>{let a=K(r);return!ht||!o&<()?t[n](a):e[n](a)}}function kr(t,e=256,r,n){let o=Math.ceil(e/8),a=K(t);return!ht||!n&<()?c8(a,K(r),o):r?Py(a,{dkLen:o,key:r}):Py(a,{dkLen:o})}var ml=My(kr);var kO=yt("SS58PRE");function mh(t){return kr(Ke(kO,t),512)}function B8(t){let e=t[0]&64?2:1,r=e===1?t[0]:(t[0]&63)<<2|t[1]>>6|(t[1]&63)<<8,n=[34+e,35+e].includes(t.length),o=t.length-(n?2:1),a=mh(t.subarray(0,o));return[(t[0]&128)===0&&![46,47].includes(t[0])&&(n?t[t.length-2]===a[0]&&t[t.length-1]===a[1]:t[t.length-1]===a[0]),o,e,r]}var R8=[{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"],decimals:[18],standardAccount:"secp256k1",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:21,network:"karmachain",displayName:"Karmacoin",symbols:["KCOIN"],decimals:[6],standardAccount:"*25519",website:"https://karmaco.in"},{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:"polimec",displayName:"Polimec Protocol",symbols:["PLMC"],decimals:[10],standardAccount:"*25519",website:"https://www.polimec.org/"},{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 Finance",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:58,network:"eternal-civilization",displayName:"Eternal Civilization",symbols:["ECC"],decimals:[12],standardAccount:"*25519",website:"http://www.ysknfr.cn/"},{prefix:63,network:"hydradx",displayName:"HydraDX",symbols:["HDX"],decimals:[12],standardAccount:"*25519",website:"https://hydradx.io"},{prefix:65,network:"aventus",displayName:"Aventus 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/"},{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:440,network:"allfeat_network",displayName:"Allfeat Network",symbols:["AFT"],decimals:[12],standardAccount:"*25519",website:"https://allfeat.network"},{prefix:666,network:"metaquity_network",displayName:"Metaquity Network",symbols:["MQTY"],decimals:[18],standardAccount:"*25519",website:"https://metaquity.xyz/"},{prefix:777,network:"curio",displayName:"Curio",symbols:["CGT"],decimals:[18],standardAccount:"*25519",website:"https://parachain.capitaldex.exchange/"},{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:1516,network:"societal",displayName:"Societal",symbols:["SCTL"],decimals:[12],standardAccount:"*25519",website:"https://www.sctl.xyz"},{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:2021,network:"logion",displayName:"logion network",symbols:["LGNT"],decimals:[18],standardAccount:"*25519",website:"https://logion.network"},{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:2199,network:"moonsama",displayName:"Moonsama",symbols:["SAMA"],decimals:[18],standardAccount:"secp256k1",website:"https://moonsama.com"},{prefix:2206,network:"ICE",displayName:"ICE Network",symbols:["ICY"],decimals:[18],standardAccount:"*25519",website:"https://icenetwork.io"},{prefix:2207,network:"SNOW",displayName:"SNOW: ICE Canary Network",symbols:["ICZ"],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:3333,network:"peerplays",displayName:"Peerplays",symbols:["PPY"],decimals:[18],standardAccount:"secp256k1",website:"https://www.peerplays.com/"},{prefix:4450,network:"g1",displayName:"\u011E1",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:5845,network:"tangle",displayName:"Tangle Network",symbols:["TNT"],decimals:[18],standardAccount:"*25519",website:"https://www.tangle.tools/"},{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:7306,network:"krigan",displayName:"Krigan Network",symbols:["KRGN"],decimals:[9],standardAccount:"*25519",website:"https://krigan.network"},{prefix:7391,network:"unique_mainnet",displayName:"Unique Network",symbols:["UNQ"],decimals:[18],standardAccount:"*25519",website:"https://unique.network"},{prefix:8866,network:"golden_gate",displayName:"Golden Gate",symbols:["GGX"],decimals:[18],standardAccount:"*25519",website:"https://ggxchain.io/"},{prefix:8883,network:"sapphire_mainnet",displayName:"Sapphire by Unique",symbols:["QTZ"],decimals:[18],standardAccount:"*25519",website:"https://unique.network"},{prefix:8886,network:"golden_gate_sydney",displayName:"Golden Gate Sydney",symbols:["GGXT"],decimals:[18],standardAccount:"*25519",website:"https://ggxchain.io/"},{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:12155,network:"impact",displayName:"Impact Protocol Network",symbols:["BSTY"],decimals:[18],standardAccount:"*25519",website:"https://impactprotocol.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"},{prefix:14697,network:"goro",displayName:"GORO Network",symbols:["GORO"],decimals:[9],standardAccount:"*25519",website:"https://goro.network"}];var Oy={acala:["0xfc41b9bd8ef8fe53d58c7ea67c794c7ec9a73daf05e6d54b14ff6342c99ba64c"],ajuna:["0xe358eb1d11b31255a286c12e44fe6780b7edb171d657905a97e39f71d9c6c3ee"],"aleph-node":["0x70255b4d28de0fc4e1a193d7e175ad1ccef431598211c55538f1018651a0344e"],astar:["0x9eb76c5184c4ab8679d2d5d819fdf90b9c001403e9e17da2e14b6d8aec4029c6"],basilisk:["0xa85cfb9b9fd4d622a5b28289a02347af987d8f73fa3108450e2b4a11c1ce5755"],bifrost:["0x262e1b2ad728475fd6fe88e62d34c200abe6fd693931ddad144059b1eb884e5b"],"bifrost-kusama":["0x9f28c6a68e0fc9646eff64935684f6eeeece527e37bbe1f213d22caa1d9d6bed"],bittensor:["0x2f0555cc76fc2840a25a6ea3b9637146806f1f44b090c175ffde2a7e5ab36c03"],centrifuge:["0xb3db41421702df9a7fcac62b53ffeac85f7853cc4e689e0b93aeb3db18c09d82","0x67dddf2673b69e5f875f6f25277495834398eafd67f492e09f3f3345e003d1b5"],cere:["0x81443836a9a24caaa23f1241897d1235717535711d1d3fe24eae4fdc942c092c"],composable:["0xdaab8df776eb52ec604a5df5d388bb62a050a0aaec4556a64265b9d42755552d"],darwinia:["0xe71578b37a7c799b0ab4ee87ffa6f059a6b98f71f06fb8c84a8d88013a548ad6"],"dock-mainnet":["0x6bfe24dca2a3be10f22212678ac13a6446ec764103c0f3471c71609eac384aae","0xf73467c6544aa68df2ee546b135f955c46b90fa627e9b5d7935f41061bb8a5a9"],edgeware:["0x742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b"],enjin:["0xd8761d3c88f26dc12875c00d3165f7d67243d56fc85b4cf19937601a7916e5a9"],equilibrium:["0x6f1a800de3daff7f5e037ddf66ab22ce03ab91874debeddb1086f5f7dbd48925"],genshiro:["0x9b8cefc0eb5c568b527998bdd76c184e2b76ae561be76e4667072230217ea243"],hydradx:["0xafdc188f45c71dacbaa0b62e16a91f726c7b8699a9748cdf715459de6b7f366d","0xd2a620c27ec5cbc5621ff9a522689895074f7cca0d08e7134a7804e1a3ba86fc","0x10af6e84234477d84dc572bac0789813b254aa490767ed06fb9591191d1073f9","0x3d75507dd46301767e601265791da1d9cb47b6ebc94e87347b635e5bf58bd047","0x0ed32bfcab4a83517fac88f2aa7cbc2f88d3ab93be9a12b6188a036bf8a943c2"],"interlay-parachain":["0xbf88efe70e9e0e916416e8bed61f2b45717f517d7f3523e33c7b001e5ffcbc72"],karura:["0xbaf5aabe40646d11f0ee8abbdc64f4a4b7674925cba08e4a05ff9ebed6e2126b"],khala:["0xd43540ba6d3eb4897c28a77d48cb5b729fea37603cbbfc7a86a73b72adb3be8d"],kulupu:["0xf7a99d3cb92853d00d5275c971c132c074636256583fee53b3bbe60d7b8769ba"],kusama:["0xb0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe","0xe3777fa922cafbff200cadeaea1a76bd7898ad5b89f7848999058b50e715f636","0x3fd7b9eb6a00376e5be61f01abb429ffb0b104be05eaff4d458da48fcd425baf"],matrixchain:["0x3af4ff48ec76d2efc8476730f423ac07e25ad48f5f4c9dc39c778b164d808615"],nodle:["0x97da7ede98d7bad4e36b4d734b6055425a3be036da2a332ea5a7037656427a21"],origintrail:["0xe7e0962324a3b86c83404dbea483f25fb5dab4c224791c81b756cfc948006174"],p3d:["0x6c5894837ad89b6d92b114a2fb3eafa8fe3d26a54848e3447015442cd6ef4e66"],parallel:["0xe61a41c53f5dcd0beb09df93b34402aada44cb05117b71059cce40a2723a4e97"],pendulum:["0x5d3c298622d5634ed019bf61ea4b71655030015bde9beb0d6a24743714462c86"],phala:["0x1bb969d85965e4bb5a651abbedf21a54b6b31a21f66b5401cc3f1e286268d736"],picasso:["0x6811a339673c9daa897944dcdac99c6e2939cc88245ed21951a0a3c9a2be75bc","0xe8e7f0f4c4f5a00720b4821dbfddefea7490bcf0b19009961cc46957984e2c1c"],polkadex:["0x3920bcb4960a1eef5580cd5367ff3f430eef052774f78468852f7b9cb39f8a3c"],polkadot:["0x91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3"],polymesh:["0x6fbd74e5e1d0a61d52ccfe9d4adaed16dd3a7caa37c6bc4d0c2fa12e8b2f4063"],quartz:["0xcd4d732201ebe5d6b014edda071c4203e16867305332301dc8d092044b28e554"],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"],zeitgeist:["0x1bf2a2ecb4a868de66ea8610f2ce7c8c43706561b6476031315f6640fe38e060"]};var Iy={centrifuge:"polkadot",kusama:"polkadot",polkadot:"polkadot",sora:"polkadot",statemine:"polkadot",statemint:"polkadot",westmint:"polkadot"};var Vy={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,enjin:1155,equilibrium:99999997,genshiro:99999996,hydradx:354,"interlay-parachain":354,karura:686,khala:434,kusama:434,matrixchain:1155,nodle:1003,origintrail:354,parallel:354,pendulum:354,phala:354,picasso:434,polkadex:799,polkadot:354,polymesh:595,quartz:631,sora:617,stafi:907,statemine:434,statemint:354,ternoa:995,unique:661,vtb:694,xxnetwork:1955,zeitgeist:354};var Ny={"":!0,"cess-testnet":!0,"dock-testnet":!0,jupiter:!0,"mathchain-testnet":!0,p3dt:!0,subspace_testnet:!0,"zero-alphaville":!0};var U8=[0,2,42],EO=["testnet"];function PO(t){let e=t.network||"",r=e.replace(/_/g,"-").split("-"),n=t;return n.slip44=Vy[e],n.hasLedgerSupport=!!n.slip44,n.genesisHash=Oy[e]||[],n.icon=Iy[e]||"substrate",n.isTestnet=!!Ny[e]||EO.includes(r[r.length-1]),n.isIgnored=n.isTestnet||!(t.standardAccount&&t.decimals?.length&&t.symbols?.length)&&t.prefix!==42,n}function MO({genesisHash:t,prefix:e}){return!!t.length||e===42}function AO(t){return!t.isIgnored&&!!t.network}function OO(t,e){let r=U8.includes(t.prefix),n=U8.includes(e.prefix);return r===n?r?0:t.displayName.localeCompare(e.displayName):r?-1:1}var H8=R8.map(PO),xh=H8.filter(AO).sort(OO),Cy=xh.filter(MO);var Lu={allowedDecodedLengths:[1,2,4,8,32,33],allowedEncodedLengths:[3,4,6,10,35,36,37,38],allowedPrefix:xh.map(({prefix:t})=>t),prefix:42};function tr(t,e,r=-1){if(!t)throw new Error("Invalid empty address passed");if(ue(t)||Ae(t))return K(t);try{let n=by(t);if(!Lu.allowedEncodedLengths.includes(n.length))throw new Error("Invalid decoded address length");let[o,a,s,u]=B8(n);if(!o&&!e)throw new Error("Invalid decoded address checksum");if(r!==-1&&r!==u)throw new Error(`Expected ss58Format ${r}, received ${u}`);return n.slice(s,a)}catch(n){throw new Error(`Decoding ${t}: ${n.message}`)}}var By={isLe:!1},bh={isLe:!0};var L8={bitLength:32,isLe:!1},yh={bitLength:32,isLe:!0},ia={bitLength:256,isLe:!1},D8={bitLength:256,isLe:!0};var IO=/^\d+$/,VO=32,gh=class t{__internal__chainCode=new Uint8Array(32);__internal__isHard=!1;static from(e){let r=new t,[n,o]=e.startsWith("/")?[e.substring(1),!0]:[e,!1];return r.soft(IO.test(n)?new be.default(n,10):n),o?r.harden():r}get chainCode(){return this.__internal__chainCode}get isHard(){return this.__internal__isHard}get isSoft(){return!this.__internal__isHard}hard(e){return this.soft(e).harden()}harden(){return this.__internal__isHard=!0,this}soft(e){return De(e)||hr(e)||un(e)?this.soft($t(e,D8)):Ae(e)?this.soft(jt(e)):qe(e)?this.soft($r(yt(e))):e.length>VO?this.soft(kr(e)):(this.__internal__chainCode.fill(0),this.__internal__chainCode.set(e,0),this)}soften(){return this.__internal__isHard=!1,this}};var NO=/\/(\/?)([^/]+)/g;function xl(t){let e=t.match(NO),r=[],n="";if(e){n=e.join("");for(let o of e)r.push(gh.from(o.substring(1)))}if(n!==t)throw new Error(`Re-constructed path "${n}" does not match input`);return{parts:e,path:r}}var CO=/^(\w+( \w+)*)((\/\/?[^/]+)*)(\/\/\/(.*))?$/;function Ry(t){let e=t.match(CO);if(e===null)throw new Error("Unable to match provided value to a secret URI");let[,r,,n,,,o]=e,{path:a}=xl(n);return{derivePath:n,password:o,path:a,phrase:r}}var BO=$r(yt("Secp256k1HDKD"));function z8(t,e){if(!ue(e)||e.length!==32)throw new Error("Invalid chainCode passed to derive");return kr(Ke(BO,t,e),256)}function RO(t,e,r,n){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,r,n);let o=BigInt(32),a=BigInt(4294967295),s=Number(r>>o&a),u=Number(r&a),l=n?4:0,h=n?0:4;t.setUint32(e+l,s,n),t.setUint32(e+h,u,n)}var Du=class extends Ei{constructor(e,r,n,o){super(),this.blockLen=e,this.outputLen=r,this.padOffset=n,this.isLE=o,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=Uu(this.buffer)}update(e){Co(this);let{view:r,buffer:n,blockLen:o}=this;e=en(e);let a=e.length;for(let s=0;so-s&&(this.process(n,0),s=0);for(let _=s;_y.length)throw new Error("_sha2: outputLen bigger than state");for(let _=0;_t&e^~t&r,HO=(t,e,r)=>t&e^t&r^e&r,LO=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]),$a=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),es=new Uint32Array(64),Uy=class extends Du{constructor(){super(64,32,8,!1),this.A=$a[0]|0,this.B=$a[1]|0,this.C=$a[2]|0,this.D=$a[3]|0,this.E=$a[4]|0,this.F=$a[5]|0,this.G=$a[6]|0,this.H=$a[7]|0}get(){let{A:e,B:r,C:n,D:o,E:a,F:s,G:u,H:l}=this;return[e,r,n,o,a,s,u,l]}set(e,r,n,o,a,s,u,l){this.A=e|0,this.B=r|0,this.C=n|0,this.D=o|0,this.E=a|0,this.F=s|0,this.G=u|0,this.H=l|0}process(e,r){for(let _=0;_<16;_++,r+=4)es[_]=e.getUint32(r,!1);for(let _=16;_<64;_++){let V=es[_-15],R=es[_-2],B=Qo(V,7)^Qo(V,18)^V>>>3,L=Qo(R,17)^Qo(R,19)^R>>>10;es[_]=L+es[_-7]+B+es[_-16]|0}let{A:n,B:o,C:a,D:s,E:u,F:l,G:h,H:y}=this;for(let _=0;_<64;_++){let V=Qo(u,6)^Qo(u,11)^Qo(u,25),R=y+V+UO(u,l,h)+LO[_]+es[_]|0,L=(Qo(n,2)^Qo(n,13)^Qo(n,22))+HO(n,o,a)|0;y=h,h=l,l=u,u=s+R|0,s=a,a=o,o=n,n=R+L|0}n=n+this.A|0,o=o+this.B|0,a=a+this.C|0,s=s+this.D|0,u=u+this.E|0,l=l+this.F|0,h=h+this.G|0,y=y+this.H|0,this.set(n,o,a,s,u,l,h,y)}roundClean(){es.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}};var aa=Hu(()=>new Uy);var vh={};br(vh,{bitGet:()=>XO,bitLen:()=>jO,bitMask:()=>bl,bitSet:()=>GO,bytesToHex:()=>ca,bytesToNumberBE:()=>ua,bytesToNumberLE:()=>ts,concatBytes:()=>fa,createHmacDrbg:()=>Dy,ensureBytes:()=>Br,equalBytes:()=>qO,hexToBytes:()=>oc,hexToNumber:()=>Ly,isBytes:()=>$o,numberToBytesBE:()=>rs,numberToBytesLE:()=>ic,numberToHexUnpadded:()=>j8,numberToVarBytesBE:()=>FO,utf8ToBytes:()=>WO,validateObject:()=>Pi});var W8=BigInt(0),wh=BigInt(1),DO=BigInt(2);function $o(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}var zO=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function ca(t){if(!$o(t))throw new Error("Uint8Array expected");let e="";for(let r=0;r=sa._0&&t<=sa._9)return t-sa._0;if(t>=sa._A&&t<=sa._F)return t-(sa._A-10);if(t>=sa._a&&t<=sa._f)return t-(sa._a-10)}function oc(t){if(typeof t!="string")throw new Error("hex string expected, got "+typeof t);let e=t.length,r=e/2;if(e%2)throw new Error("padded hex string expected, got unpadded hex of length "+e);let n=new Uint8Array(r);for(let o=0,a=0;oW8;t>>=wh,e+=1);return e}function XO(t,e){return t>>BigInt(e)&wh}var GO=(t,e,r)=>t|(r?wh:W8)<(DO<new Uint8Array(t),q8=t=>Uint8Array.from(t);function Dy(t,e,r){if(typeof t!="number"||t<2)throw new Error("hashLen must be a number");if(typeof e!="number"||e<2)throw new Error("qByteLen must be a number");if(typeof r!="function")throw new Error("hmacFn must be a function");let n=Hy(t),o=Hy(t),a=0,s=()=>{n.fill(1),o.fill(0),a=0},u=(..._)=>r(o,n,..._),l=(_=Hy())=>{o=u(q8([0]),_),n=u(),_.length!==0&&(o=u(q8([1]),_),n=u())},h=()=>{if(a++>=1e3)throw new Error("drbg: tried 1000 values");let _=0,V=[];for(;_{s(),l(_);let R;for(;!(R=V(h()));)l();return s(),R}}var ZO={bigint:t=>typeof t=="bigint",function:t=>typeof t=="function",boolean:t=>typeof t=="boolean",string:t=>typeof t=="string",stringOrUint8Array:t=>typeof t=="string"||$o(t),isSafeInteger:t=>Number.isSafeInteger(t),array:t=>Array.isArray(t),field:(t,e)=>e.Fp.isValid(t),hash:t=>typeof t=="function"&&Number.isSafeInteger(t.outputLen)};function Pi(t,e,r={}){let n=(o,a,s)=>{let u=ZO[a];if(typeof u!="function")throw new Error(`Invalid validator "${a}", expected function`);let l=t[o];if(!(s&&l===void 0)&&!u(l,t))throw new Error(`Invalid param ${String(o)}=${l} (${typeof l}), expected ${a}`)};for(let[o,a]of Object.entries(e))n(o,a,!1);for(let[o,a]of Object.entries(r))n(o,a,!0);return t}var Zr=BigInt(0),Er=BigInt(1),ac=BigInt(2),YO=BigInt(3),zy=BigInt(4),X8=BigInt(5),G8=BigInt(8),KO=BigInt(9),JO=BigInt(16);function ir(t,e){let r=t%e;return r>=Zr?r:e+r}function QO(t,e,r){if(r<=Zr||e 0");if(r===Er)return Zr;let n=Er;for(;e>Zr;)e&Er&&(n=n*t%r),t=t*t%r,e>>=Er;return n}function Pr(t,e,r){let n=t;for(;e-- >Zr;)n*=n,n%=r;return n}function _h(t,e){if(t===Zr||e<=Zr)throw new Error(`invert: expected positive integers, got n=${t} mod=${e}`);let r=ir(t,e),n=e,o=Zr,a=Er,s=Er,u=Zr;for(;r!==Zr;){let h=n/r,y=n%r,_=o-s*h,V=a-u*h;n=r,r=y,o=s,a=u,s=_,u=V}if(n!==Er)throw new Error("invert: does not exist");return ir(o,e)}function $O(t){let e=(t-Er)/ac,r,n,o;for(r=t-Er,n=0;r%ac===Zr;r/=ac,n++);for(o=ac;o(ir(t,e)&Er)===Er,tI=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function Fy(t){let e={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},r=tI.reduce((n,o)=>(n[o]="function",n),e);return Pi(t,r)}function rI(t,e,r){if(r 0");if(r===Zr)return t.ONE;if(r===Er)return e;let n=t.ONE,o=e;for(;r>Zr;)r&Er&&(n=t.mul(n,o)),o=t.sqr(o),r>>=Er;return n}function nI(t,e){let r=new Array(e.length),n=e.reduce((a,s,u)=>t.is0(s)?a:(r[u]=a,t.mul(a,s)),t.ONE),o=t.inv(n);return e.reduceRight((a,s,u)=>t.is0(s)?a:(r[u]=t.mul(a,r[u]),t.mul(a,s)),o),r}function qy(t,e){let r=e!==void 0?e:t.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function Sh(t,e,r=!1,n={}){if(t<=Zr)throw new Error(`Expected Field ORDER > 0, got ${t}`);let{nBitLength:o,nByteLength:a}=qy(t,e);if(a>2048)throw new Error("Field lengths over 2048 bytes are not supported");let s=eI(t),u=Object.freeze({ORDER:t,BITS:o,BYTES:a,MASK:bl(o),ZERO:Zr,ONE:Er,create:l=>ir(l,t),isValid:l=>{if(typeof l!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof l}`);return Zr<=l&&ll===Zr,isOdd:l=>(l&Er)===Er,neg:l=>ir(-l,t),eql:(l,h)=>l===h,sqr:l=>ir(l*l,t),add:(l,h)=>ir(l+h,t),sub:(l,h)=>ir(l-h,t),mul:(l,h)=>ir(l*h,t),pow:(l,h)=>rI(u,l,h),div:(l,h)=>ir(l*_h(h,t),t),sqrN:l=>l*l,addN:(l,h)=>l+h,subN:(l,h)=>l-h,mulN:(l,h)=>l*h,inv:l=>_h(l,t),sqrt:n.sqrt||(l=>s(u,l)),invertBatch:l=>nI(u,l),cmov:(l,h,y)=>y?h:l,toBytes:l=>r?ic(l,a):rs(l,a),fromBytes:l=>{if(l.length!==a)throw new Error(`Fp.fromBytes: expected ${a}, got ${l.length}`);return r?ts(l):ua(l)}});return Object.freeze(u)}function Y8(t,e){if(!t.isOdd)throw new Error("Field doesn't have isOdd");let r=t.sqrt(e);return t.isOdd(r)?t.neg(r):r}function K8(t){if(typeof t!="bigint")throw new Error("field order must be bigint");let e=t.toString(2).length;return Math.ceil(e/8)}function Wy(t){let e=K8(t);return e+Math.ceil(e/2)}function J8(t,e,r=!1){let n=t.length,o=K8(e),a=Wy(e);if(n<16||n1024)throw new Error(`expected ${a}-1024 bytes of input, got ${n}`);let s=r?ua(t):ts(t),u=ir(s,e-Er)+Er;return r?ic(u,o):rs(u,o)}var iI=BigInt(0),jy=BigInt(1);function Th(t,e){let r=(o,a)=>{let s=a.negate();return o?s:a},n=o=>{let a=Math.ceil(e/o)+1,s=2**(o-1);return{windows:a,windowSize:s}};return{constTimeNegate:r,unsafeLadder(o,a){let s=t.ZERO,u=o;for(;a>iI;)a&jy&&(s=s.add(u)),u=u.double(),a>>=jy;return s},precomputeWindow(o,a){let{windows:s,windowSize:u}=n(a),l=[],h=o,y=h;for(let _=0;_>=R,Z>l&&(Z-=V,s+=jy);let G=L,J=L+Math.abs(Z)-1,Y=B%2!==0,fe=Z<0;Z===0?y=y.add(r(Y,a[G])):h=h.add(r(fe,a[J]))}return{p:h,f:y}},wNAFCached(o,a,s,u){let l=o._WINDOW_SIZE||1,h=a.get(o);return h||(h=this.precomputeWindow(o,l),l!==1&&a.set(o,u(h))),this.wNAF(l,h,s)}}}function yl(t){return Fy(t.Fp),Pi(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...qy(t.n,t.nBitLength),...t,p:t.Fp.ORDER})}function aI(t){let e=yl(t);Pi(e,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});let{endo:r,Fp:n,a:o}=e;if(r){if(!n.eql(o,n.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof r!="object"||typeof r.beta!="bigint"||typeof r.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...e})}var{bytesToNumberBE:sI,hexToBytes:cI}=vh,sc={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(t){let{Err:e}=sc;if(t.length<2||t[0]!==2)throw new e("Invalid signature integer tag");let r=t[1],n=t.subarray(2,r+2);if(!r||n.length!==r)throw new e("Invalid signature integer: wrong length");if(n[0]&128)throw new e("Invalid signature integer: negative");if(n[0]===0&&!(n[1]&128))throw new e("Invalid signature integer: unnecessary leading zero");return{d:sI(n),l:t.subarray(r+2)}},toSig(t){let{Err:e}=sc,r=typeof t=="string"?cI(t):t;if(!$o(r))throw new Error("ui8a expected");let n=r.length;if(n<2||r[0]!=48)throw new e("Invalid signature tag");if(r[1]!==n-2)throw new e("Invalid signature: incorrect length");let{d:o,l:a}=sc._parseInt(r.subarray(2)),{d:s,l:u}=sc._parseInt(a);if(u.length)throw new e("Invalid signature: left bytes after parsing");return{r:o,s}},hexFromSig(t){let e=h=>Number.parseInt(h[0],16)&8?"00"+h:h,r=h=>{let y=h.toString(16);return y.length&1?`0${y}`:y},n=e(r(t.s)),o=e(r(t.r)),a=n.length/2,s=o.length/2,u=r(a),l=r(s);return`30${r(s+a+4)}02${l}${o}02${u}${n}`}},la=BigInt(0),Ro=BigInt(1),NY=BigInt(2),Q8=BigInt(3),CY=BigInt(4);function uI(t){let e=aI(t),{Fp:r}=e,n=e.toBytes||((B,L,Z)=>{let G=L.toAffine();return fa(Uint8Array.from([4]),r.toBytes(G.x),r.toBytes(G.y))}),o=e.fromBytes||(B=>{let L=B.subarray(1),Z=r.fromBytes(L.subarray(0,r.BYTES)),G=r.fromBytes(L.subarray(r.BYTES,2*r.BYTES));return{x:Z,y:G}});function a(B){let{a:L,b:Z}=e,G=r.sqr(B),J=r.mul(G,B);return r.add(r.add(J,r.mul(B,L)),Z)}if(!r.eql(r.sqr(e.Gy),a(e.Gx)))throw new Error("bad generator point: equation left != right");function s(B){return typeof B=="bigint"&&lar.eql(Y,r.ZERO);return J(Z)&&J(G)?_.ZERO:new _(Z,G,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(L){let Z=r.invertBatch(L.map(G=>G.pz));return L.map((G,J)=>G.toAffine(Z[J])).map(_.fromAffine)}static fromHex(L){let Z=_.fromAffine(o(Br("pointHex",L)));return Z.assertValidity(),Z}static fromPrivateKey(L){return _.BASE.multiply(l(L))}_setWindowSize(L){this._WINDOW_SIZE=L,h.delete(this)}assertValidity(){if(this.is0()){if(e.allowInfinityPoint&&!r.is0(this.py))return;throw new Error("bad point: ZERO")}let{x:L,y:Z}=this.toAffine();if(!r.isValid(L)||!r.isValid(Z))throw new Error("bad point: x or y not FE");let G=r.sqr(Z),J=a(L);if(!r.eql(G,J))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){let{y:L}=this.toAffine();if(r.isOdd)return!r.isOdd(L);throw new Error("Field doesn't support isOdd")}equals(L){y(L);let{px:Z,py:G,pz:J}=this,{px:Y,py:fe,pz:ie}=L,re=r.eql(r.mul(Z,ie),r.mul(Y,J)),he=r.eql(r.mul(G,ie),r.mul(fe,J));return re&&he}negate(){return new _(this.px,r.neg(this.py),this.pz)}double(){let{a:L,b:Z}=e,G=r.mul(Z,Q8),{px:J,py:Y,pz:fe}=this,ie=r.ZERO,re=r.ZERO,he=r.ZERO,me=r.mul(J,J),Re=r.mul(Y,Y),Oe=r.mul(fe,fe),ge=r.mul(J,Y);return ge=r.add(ge,ge),he=r.mul(J,fe),he=r.add(he,he),ie=r.mul(L,he),re=r.mul(G,Oe),re=r.add(ie,re),ie=r.sub(Re,re),re=r.add(Re,re),re=r.mul(ie,re),ie=r.mul(ge,ie),he=r.mul(G,he),Oe=r.mul(L,Oe),ge=r.sub(me,Oe),ge=r.mul(L,ge),ge=r.add(ge,he),he=r.add(me,me),me=r.add(he,me),me=r.add(me,Oe),me=r.mul(me,ge),re=r.add(re,me),Oe=r.mul(Y,fe),Oe=r.add(Oe,Oe),me=r.mul(Oe,ge),ie=r.sub(ie,me),he=r.mul(Oe,Re),he=r.add(he,he),he=r.add(he,he),new _(ie,re,he)}add(L){y(L);let{px:Z,py:G,pz:J}=this,{px:Y,py:fe,pz:ie}=L,re=r.ZERO,he=r.ZERO,me=r.ZERO,Re=e.a,Oe=r.mul(e.b,Q8),ge=r.mul(Z,Y),Ze=r.mul(G,fe),C=r.mul(J,ie),m=r.add(Z,G),w=r.add(Y,fe);m=r.mul(m,w),w=r.add(ge,Ze),m=r.sub(m,w),w=r.add(Z,J);let S=r.add(Y,ie);return w=r.mul(w,S),S=r.add(ge,C),w=r.sub(w,S),S=r.add(G,J),re=r.add(fe,ie),S=r.mul(S,re),re=r.add(Ze,C),S=r.sub(S,re),me=r.mul(Re,w),re=r.mul(Oe,C),me=r.add(re,me),re=r.sub(Ze,me),me=r.add(Ze,me),he=r.mul(re,me),Ze=r.add(ge,ge),Ze=r.add(Ze,ge),C=r.mul(Re,C),w=r.mul(Oe,w),Ze=r.add(Ze,C),C=r.sub(ge,C),C=r.mul(Re,C),w=r.add(w,C),ge=r.mul(Ze,w),he=r.add(he,ge),ge=r.mul(S,w),re=r.mul(m,re),re=r.sub(re,ge),ge=r.mul(m,Ze),me=r.mul(S,me),me=r.add(me,ge),new _(re,he,me)}subtract(L){return this.add(L.negate())}is0(){return this.equals(_.ZERO)}wNAF(L){return R.wNAFCached(this,h,L,Z=>{let G=r.invertBatch(Z.map(J=>J.pz));return Z.map((J,Y)=>J.toAffine(G[Y])).map(_.fromAffine)})}multiplyUnsafe(L){let Z=_.ZERO;if(L===la)return Z;if(u(L),L===Ro)return this;let{endo:G}=e;if(!G)return R.unsafeLadder(this,L);let{k1neg:J,k1:Y,k2neg:fe,k2:ie}=G.splitScalar(L),re=Z,he=Z,me=this;for(;Y>la||ie>la;)Y&Ro&&(re=re.add(me)),ie&Ro&&(he=he.add(me)),me=me.double(),Y>>=Ro,ie>>=Ro;return J&&(re=re.negate()),fe&&(he=he.negate()),he=new _(r.mul(he.px,G.beta),he.py,he.pz),re.add(he)}multiply(L){u(L);let Z=L,G,J,{endo:Y}=e;if(Y){let{k1neg:fe,k1:ie,k2neg:re,k2:he}=Y.splitScalar(Z),{p:me,f:Re}=this.wNAF(ie),{p:Oe,f:ge}=this.wNAF(he);me=R.constTimeNegate(fe,me),Oe=R.constTimeNegate(re,Oe),Oe=new _(r.mul(Oe.px,Y.beta),Oe.py,Oe.pz),G=me.add(Oe),J=Re.add(ge)}else{let{p:fe,f:ie}=this.wNAF(Z);G=fe,J=ie}return _.normalizeZ([G,J])[0]}multiplyAndAddUnsafe(L,Z,G){let J=_.BASE,Y=(ie,re)=>re===la||re===Ro||!ie.equals(J)?ie.multiplyUnsafe(re):ie.multiply(re),fe=Y(this,Z).add(Y(L,G));return fe.is0()?void 0:fe}toAffine(L){let{px:Z,py:G,pz:J}=this,Y=this.is0();L==null&&(L=Y?r.ONE:r.inv(J));let fe=r.mul(Z,L),ie=r.mul(G,L),re=r.mul(J,L);if(Y)return{x:r.ZERO,y:r.ZERO};if(!r.eql(re,r.ONE))throw new Error("invZ was invalid");return{x:fe,y:ie}}isTorsionFree(){let{h:L,isTorsionFree:Z}=e;if(L===Ro)return!0;if(Z)return Z(_,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){let{h:L,clearCofactor:Z}=e;return L===Ro?this:Z?Z(_,this):this.multiplyUnsafe(e.h)}toRawBytes(L=!0){return this.assertValidity(),n(_,this,L)}toHex(L=!0){return ca(this.toRawBytes(L))}}_.BASE=new _(e.Gx,e.Gy,r.ONE),_.ZERO=new _(r.ZERO,r.ONE,r.ZERO);let V=e.nBitLength,R=Th(_,e.endo?Math.ceil(V/2):V);return{CURVE:e,ProjectivePoint:_,normPrivateKeyToScalar:l,weierstrassEquation:a,isWithinCurveOrder:s}}function fI(t){let e=yl(t);return Pi(e,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...e})}function $8(t){let e=fI(t),{Fp:r,n}=e,o=r.BYTES+1,a=2*r.BYTES+1;function s(w){return laca(rs(w,e.nByteLength));function B(w){let S=n>>Ro;return w>S}function L(w){return B(w)?u(-w):w}let Z=(w,S,E)=>ua(w.slice(S,E));class G{constructor(S,E,k){this.r=S,this.s=E,this.recovery=k,this.assertValidity()}static fromCompact(S){let E=e.nByteLength;return S=Br("compactSignature",S,E*2),new G(Z(S,0,E),Z(S,E,2*E))}static fromDER(S){let{r:E,s:k}=sc.toSig(Br("DER",S));return new G(E,k)}assertValidity(){if(!V(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!V(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(S){return new G(this.r,this.s,S)}recoverPublicKey(S){let{r:E,s:k,recovery:I}=this,U=he(Br("msgHash",S));if(I==null||![0,1,2,3].includes(I))throw new Error("recovery id invalid");let O=I===2||I===3?E+e.n:E;if(O>=r.ORDER)throw new Error("recovery id 2 or 3 invalid");let g=I&1?"03":"02",M=h.fromHex(g+R(O)),le=l(O),ye=u(-U*le),pe=u(k*le),_e=h.BASE.multiplyAndAddUnsafe(M,ye,pe);if(!_e)throw new Error("point at infinify");return _e.assertValidity(),_e}hasHighS(){return B(this.s)}normalizeS(){return this.hasHighS()?new G(this.r,u(-this.s),this.recovery):this}toDERRawBytes(){return oc(this.toDERHex())}toDERHex(){return sc.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return oc(this.toCompactHex())}toCompactHex(){return R(this.r)+R(this.s)}}let J={isValidPrivateKey(w){try{return y(w),!0}catch{return!1}},normPrivateKeyToScalar:y,randomPrivateKey:()=>{let w=Wy(e.n);return J8(e.randomBytes(w),e.n)},precompute(w=8,S=h.BASE){return S._setWindowSize(w),S.multiply(BigInt(3)),S}};function Y(w,S=!0){return h.fromPrivateKey(w).toRawBytes(S)}function fe(w){let S=$o(w),E=typeof w=="string",k=(S||E)&&w.length;return S?k===o||k===a:E?k===2*o||k===2*a:w instanceof h}function ie(w,S,E=!0){if(fe(w))throw new Error("first arg must be private key");if(!fe(S))throw new Error("second arg must be public key");return h.fromHex(S).multiply(y(w)).toRawBytes(E)}let re=e.bits2int||function(w){let S=ua(w),E=w.length*8-e.nBitLength;return E>0?S>>BigInt(E):S},he=e.bits2int_modN||function(w){return u(re(w))},me=bl(e.nBitLength);function Re(w){if(typeof w!="bigint")throw new Error("bigint expected");if(!(la<=w&&wUe in E))throw new Error("sign() legacy options not supported");let{hash:k,randomBytes:I}=e,{lowS:U,prehash:O,extraEntropy:g}=E;U==null&&(U=!0),w=Br("msgHash",w),O&&(w=Br("prehashed msgHash",k(w)));let M=he(w),le=y(S),ye=[Re(le),Re(M)];if(g!=null){let Ue=g===!0?I(r.BYTES):g;ye.push(Br("extraEntropy",Ue))}let pe=fa(...ye),_e=M;function He(Ue){let St=re(Ue);if(!V(St))return;let Xe=l(St),Ce=h.BASE.multiply(St).toAffine(),ar=u(Ce.x);if(ar===la)return;let gt=u(Xe*u(_e+ar*le));if(gt===la)return;let nt=(Ce.x===ar?0:2)|Number(Ce.y&Ro),Yn=gt;return U&&B(gt)&&(Yn=L(gt),nt^=1),new G(ar,Yn,nt)}return{seed:pe,k2sig:He}}let ge={lowS:e.lowS,prehash:!1},Ze={lowS:e.lowS,prehash:!1};function C(w,S,E=ge){let{seed:k,k2sig:I}=Oe(w,S,E),U=e;return Dy(U.hash.outputLen,U.nByteLength,U.hmac)(k,I)}h.BASE._setWindowSize(8);function m(w,S,E,k=Ze){let I=w;if(S=Br("msgHash",S),E=Br("publicKey",E),"strict"in k)throw new Error("options.strict was renamed to lowS");let{lowS:U,prehash:O}=k,g,M;try{if(typeof I=="string"||$o(I))try{g=G.fromDER(I)}catch(Ce){if(!(Ce instanceof sc.Err))throw Ce;g=G.fromCompact(I)}else if(typeof I=="object"&&typeof I.r=="bigint"&&typeof I.s=="bigint"){let{r:Ce,s:ar}=I;g=new G(Ce,ar)}else throw new Error("PARSE");M=h.fromHex(E)}catch(Ce){if(Ce.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(U&&g.hasHighS())return!1;O&&(S=e.hash(S));let{r:le,s:ye}=g,pe=he(S),_e=l(ye),He=u(pe*_e),Ue=u(le*_e),St=h.BASE.multiplyAndAddUnsafe(M,He,Ue)?.toAffine();return St?u(St.x)===le:!1}return{CURVE:e,getPublicKey:Y,getSharedSecret:ie,sign:C,verify:m,ProjectivePoint:h,Signature:G,utils:J}}var kh=class extends Ei{constructor(e,r){super(),this.finished=!1,this.destroyed=!1,sh(e);let n=en(r);if(this.iHash=e.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let o=this.blockLen,a=new Uint8Array(o);a.set(n.length>o?e.create().update(n).digest():n);for(let s=0;snew kh(t,e).update(r).digest();cc.create=(t,e)=>new kh(t,e);function lI(t){return{hash:t,hmac:(e,...r)=>cc(t,e,uh(...r)),randomBytes:lh}}function e5(t,e){let r=n=>$8({...t,...lI(n)});return Object.freeze({...r(e),create:r})}var n5=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),t5=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),dI=BigInt(1),Xy=BigInt(2),r5=(t,e)=>(t+e/Xy)/e;function pI(t){let e=n5,r=BigInt(3),n=BigInt(6),o=BigInt(11),a=BigInt(22),s=BigInt(23),u=BigInt(44),l=BigInt(88),h=t*t*t%e,y=h*h*t%e,_=Pr(y,r,e)*y%e,V=Pr(_,r,e)*y%e,R=Pr(V,Xy,e)*h%e,B=Pr(R,o,e)*R%e,L=Pr(B,a,e)*B%e,Z=Pr(L,u,e)*L%e,G=Pr(Z,l,e)*Z%e,J=Pr(G,u,e)*L%e,Y=Pr(J,r,e)*y%e,fe=Pr(Y,s,e)*B%e,ie=Pr(fe,n,e)*h%e,re=Pr(ie,Xy,e);if(!Gy.eql(Gy.sqr(re),t))throw new Error("Cannot find square root");return re}var Gy=Sh(n5,void 0,void 0,{sqrt:pI}),ei=e5({a:BigInt(0),b:BigInt(7),Fp:Gy,n:t5,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:t=>{let e=t5,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-dI*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),o=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),a=r,s=BigInt("0x100000000000000000000000000000000"),u=r5(a*t,e),l=r5(-n*t,e),h=ir(t-u*r-l*o,e),y=ir(-u*n-l*a,e),_=h>s,V=y>s;if(_&&(h=e-h),V&&(y=e-y),h>s||y>s)throw new Error("splitScalar: Endomorphism failed, k="+t);return{k1neg:_,k1:h,k2neg:V,k2:y}}}},aa),XY=BigInt(0);var GY=ei.ProjectivePoint;function ti(t,e){if(t.length!==32)throw new Error("Expected valid 32-byte private key as a seed");if(!ht||!e&<()){let r=K9(t),n=r.slice(32);if(al(n))throw new Error("Invalid publicKey generated from WASM interface");return{publicKey:n,secretKey:r.slice(0,32)}}return{publicKey:ei.getPublicKey(t,!0),secretKey:t}}function Eh(t,e){return(r,{chainCode:n,isHard:o})=>{if(!o)throw new Error("A soft key was found in the path and is not supported");return t(e(r.secretKey.subarray(0,32),n))}}var Zy=Eh(ti,z8);var hI=$r(yt("Ed25519HDKD"));function Yy(t,e){if(!ue(e)||e.length!==32)throw new Error("Invalid chainCode passed to derive");return kr(Ke(hI,t,e))}function zu(t=32){return Qp(new Uint8Array(t))}var[mI,xI]=Be.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(t=>BigInt(t))),ns=new Uint32Array(80),os=new Uint32Array(80),Ky=class extends Du{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(){let{Ah:e,Al:r,Bh:n,Bl:o,Ch:a,Cl:s,Dh:u,Dl:l,Eh:h,El:y,Fh:_,Fl:V,Gh:R,Gl:B,Hh:L,Hl:Z}=this;return[e,r,n,o,a,s,u,l,h,y,_,V,R,B,L,Z]}set(e,r,n,o,a,s,u,l,h,y,_,V,R,B,L,Z){this.Ah=e|0,this.Al=r|0,this.Bh=n|0,this.Bl=o|0,this.Ch=a|0,this.Cl=s|0,this.Dh=u|0,this.Dl=l|0,this.Eh=h|0,this.El=y|0,this.Fh=_|0,this.Fl=V|0,this.Gh=R|0,this.Gl=B|0,this.Hh=L|0,this.Hl=Z|0}process(e,r){for(let Y=0;Y<16;Y++,r+=4)ns[Y]=e.getUint32(r),os[Y]=e.getUint32(r+=4);for(let Y=16;Y<80;Y++){let fe=ns[Y-15]|0,ie=os[Y-15]|0,re=Be.rotrSH(fe,ie,1)^Be.rotrSH(fe,ie,8)^Be.shrSH(fe,ie,7),he=Be.rotrSL(fe,ie,1)^Be.rotrSL(fe,ie,8)^Be.shrSL(fe,ie,7),me=ns[Y-2]|0,Re=os[Y-2]|0,Oe=Be.rotrSH(me,Re,19)^Be.rotrBH(me,Re,61)^Be.shrSH(me,Re,6),ge=Be.rotrSL(me,Re,19)^Be.rotrBL(me,Re,61)^Be.shrSL(me,Re,6),Ze=Be.add4L(he,ge,os[Y-7],os[Y-16]),C=Be.add4H(Ze,re,Oe,ns[Y-7],ns[Y-16]);ns[Y]=C|0,os[Y]=Ze|0}let{Ah:n,Al:o,Bh:a,Bl:s,Ch:u,Cl:l,Dh:h,Dl:y,Eh:_,El:V,Fh:R,Fl:B,Gh:L,Gl:Z,Hh:G,Hl:J}=this;for(let Y=0;Y<80;Y++){let fe=Be.rotrSH(_,V,14)^Be.rotrSH(_,V,18)^Be.rotrBH(_,V,41),ie=Be.rotrSL(_,V,14)^Be.rotrSL(_,V,18)^Be.rotrBL(_,V,41),re=_&R^~_&L,he=V&B^~V&Z,me=Be.add5L(J,ie,he,xI[Y],os[Y]),Re=Be.add5H(me,G,fe,re,mI[Y],ns[Y]),Oe=me|0,ge=Be.rotrSH(n,o,28)^Be.rotrBH(n,o,34)^Be.rotrBH(n,o,39),Ze=Be.rotrSL(n,o,28)^Be.rotrBL(n,o,34)^Be.rotrBL(n,o,39),C=n&a^n&u^a&u,m=o&s^o&l^s&l;G=L|0,J=Z|0,L=R|0,Z=B|0,R=_|0,B=V|0,{h:_,l:V}=Be.add(h|0,y|0,Re|0,Oe|0),h=u|0,y=l|0,u=a|0,l=s|0,a=n|0,s=o|0;let w=Be.add3L(Oe,Ze,m);n=Be.add3H(w,Re,ge,C),o=w|0}({h:n,l:o}=Be.add(this.Ah|0,this.Al|0,n|0,o|0)),{h:a,l:s}=Be.add(this.Bh|0,this.Bl|0,a|0,s|0),{h:u,l}=Be.add(this.Ch|0,this.Cl|0,u|0,l|0),{h,l:y}=Be.add(this.Dh|0,this.Dl|0,h|0,y|0),{h:_,l:V}=Be.add(this.Eh|0,this.El|0,_|0,V|0),{h:R,l:B}=Be.add(this.Fh|0,this.Fl|0,R|0,B|0),{h:L,l:Z}=Be.add(this.Gh|0,this.Gl|0,L|0,Z|0),{h:G,l:J}=Be.add(this.Hh|0,this.Hl|0,G|0,J|0),this.set(n,o,a,s,u,l,h,y,_,V,R,B,L,Z,G,J)}roundClean(){ns.fill(0),os.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)}};var da=Hu(()=>new Ky);var ri=BigInt(0),ao=BigInt(1),Ph=BigInt(2),bI=BigInt(8),yI={zip215:!0};function gI(t){let e=yl(t);return Pi(t,{hash:"function",a:"bigint",d:"bigint",randomBytes:"function"},{adjustScalarBytes:"function",domain:"function",uvRatio:"function",mapToCurve:"function"}),Object.freeze({...e})}function Mh(t){let e=gI(t),{Fp:r,n,prehash:o,hash:a,randomBytes:s,nByteLength:u,h:l}=e,h=Ph<{try{return{isValid:!0,value:r.sqrt(k*r.inv(I))}}catch{return{isValid:!1,value:ri}}}),V=e.adjustScalarBytes||(k=>k),R=e.domain||((k,I,U)=>{if(I.length||U)throw new Error("Contexts/pre-hash are not supported");return k}),B=k=>typeof k=="bigint"&&riB(k)&&B(I)&&kk===ri||L(k,h);function G(k,I){if(L(k,I))return k;throw new Error(`Expected valid scalar < ${I}, got ${typeof k} ${k}`)}function J(k){return k===ri?k:G(k,n)}let Y=new Map;function fe(k){if(!(k instanceof ie))throw new Error("ExtendedPoint expected")}class ie{constructor(I,U,O,g){if(this.ex=I,this.ey=U,this.ez=O,this.et=g,!Z(I))throw new Error("x required");if(!Z(U))throw new Error("y required");if(!Z(O))throw new Error("z required");if(!Z(g))throw new Error("t required")}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static fromAffine(I){if(I instanceof ie)throw new Error("extended point not allowed");let{x:U,y:O}=I||{};if(!Z(U)||!Z(O))throw new Error("invalid affine point");return new ie(U,O,ao,y(U*O))}static normalizeZ(I){let U=r.invertBatch(I.map(O=>O.ez));return I.map((O,g)=>O.toAffine(U[g])).map(ie.fromAffine)}_setWindowSize(I){this._WINDOW_SIZE=I,Y.delete(this)}assertValidity(){let{a:I,d:U}=e;if(this.is0())throw new Error("bad point: ZERO");let{ex:O,ey:g,ez:M,et:le}=this,ye=y(O*O),pe=y(g*g),_e=y(M*M),He=y(_e*_e),Ue=y(ye*I),St=y(_e*y(Ue+pe)),Xe=y(He+y(U*y(ye*pe)));if(St!==Xe)throw new Error("bad point: equation left != right (1)");let Ce=y(O*g),ar=y(M*le);if(Ce!==ar)throw new Error("bad point: equation left != right (2)")}equals(I){fe(I);let{ex:U,ey:O,ez:g}=this,{ex:M,ey:le,ez:ye}=I,pe=y(U*ye),_e=y(M*g),He=y(O*ye),Ue=y(le*g);return pe===_e&&He===Ue}is0(){return this.equals(ie.ZERO)}negate(){return new ie(y(-this.ex),this.ey,this.ez,y(-this.et))}double(){let{a:I}=e,{ex:U,ey:O,ez:g}=this,M=y(U*U),le=y(O*O),ye=y(Ph*y(g*g)),pe=y(I*M),_e=U+O,He=y(y(_e*_e)-M-le),Ue=pe+le,St=Ue-ye,Xe=pe-le,Ce=y(He*St),ar=y(Ue*Xe),gt=y(He*Xe),nt=y(St*Ue);return new ie(Ce,ar,nt,gt)}add(I){fe(I);let{a:U,d:O}=e,{ex:g,ey:M,ez:le,et:ye}=this,{ex:pe,ey:_e,ez:He,et:Ue}=I;if(U===BigInt(-1)){let Fi=y((M-g)*(_e+pe)),Pt=y((M+g)*(_e-pe)),ot=y(Pt-Fi);if(ot===ri)return this.double();let On=y(le*Ph*Ue),wt=y(ye*Ph*He),Mt=wt+On,mt=Pt+Fi,zt=wt-On,Zt=y(Mt*ot),Kn=y(mt*zt),Ft=y(Mt*zt),Rt=y(ot*mt);return new ie(Zt,Kn,Rt,Ft)}let St=y(g*pe),Xe=y(M*_e),Ce=y(ye*O*Ue),ar=y(le*He),gt=y((g+M)*(pe+_e)-St-Xe),nt=ar-Ce,Yn=ar+Ce,sr=y(Xe-U*St),Bt=y(gt*nt),Xt=y(Yn*sr),Et=y(gt*sr),Gt=y(nt*Yn);return new ie(Bt,Xt,Gt,Et)}subtract(I){return this.add(I.negate())}wNAF(I){return me.wNAFCached(this,Y,I,ie.normalizeZ)}multiply(I){let{p:U,f:O}=this.wNAF(G(I,n));return ie.normalizeZ([U,O])[0]}multiplyUnsafe(I){let U=J(I);return U===ri?he:this.equals(he)||U===ao?this:this.equals(re)?this.wNAF(U).p:me.unsafeLadder(this,U)}isSmallOrder(){return this.multiplyUnsafe(l).is0()}isTorsionFree(){return me.unsafeLadder(this,n).is0()}toAffine(I){let{ex:U,ey:O,ez:g}=this,M=this.is0();I==null&&(I=M?bI:r.inv(g));let le=y(U*I),ye=y(O*I),pe=y(g*I);if(M)return{x:ri,y:ao};if(pe!==ao)throw new Error("invZ was invalid");return{x:le,y:ye}}clearCofactor(){let{h:I}=e;return I===ao?this:this.multiplyUnsafe(I)}static fromHex(I,U=!1){let{d:O,a:g}=e,M=r.BYTES;I=Br("pointHex",I,M);let le=I.slice(),ye=I[M-1];le[M-1]=ye&-129;let pe=ts(le);pe===ri||(U?G(pe,h):G(pe,r.ORDER));let _e=y(pe*pe),He=y(_e-ao),Ue=y(O*_e-g),{isValid:St,value:Xe}=_(He,Ue);if(!St)throw new Error("Point.fromHex: invalid y coordinate");let Ce=(Xe&ao)===ao,ar=(ye&128)!==0;if(!U&&Xe===ri&&ar)throw new Error("Point.fromHex: x=0 and x_0=1");return ar!==Ce&&(Xe=y(-Xe)),ie.fromAffine({x:Xe,y:pe})}static fromPrivateKey(I){return ge(I).point}toRawBytes(){let{x:I,y:U}=this.toAffine(),O=ic(U,r.BYTES);return O[O.length-1]|=I&ao?128:0,O}toHex(){return ca(this.toRawBytes())}}ie.BASE=new ie(e.Gx,e.Gy,ao,y(e.Gx*e.Gy)),ie.ZERO=new ie(ri,ao,ao,ri);let{BASE:re,ZERO:he}=ie,me=Th(ie,u*8);function Re(k){return ir(k,n)}function Oe(k){return Re(ts(k))}function ge(k){let I=u;k=Br("private key",k,I);let U=Br("hashed private key",a(k),2*I),O=V(U.slice(0,I)),g=U.slice(I,2*I),M=Oe(O),le=re.multiply(M),ye=le.toRawBytes();return{head:O,prefix:g,scalar:M,point:le,pointBytes:ye}}function Ze(k){return ge(k).pointBytes}function C(k=new Uint8Array,...I){let U=fa(...I);return Oe(a(R(U,Br("context",k),!!o)))}function m(k,I,U={}){k=Br("message",k),o&&(k=o(k));let{prefix:O,scalar:g,pointBytes:M}=ge(I),le=C(U.context,O,k),ye=re.multiply(le).toRawBytes(),pe=C(U.context,ye,M,k),_e=Re(le+pe*g);J(_e);let He=fa(ye,ic(_e,r.BYTES));return Br("result",He,u*2)}let w=yI;function S(k,I,U,O=w){let{context:g,zip215:M}=O,le=r.BYTES;k=Br("signature",k,2*le),I=Br("message",I),o&&(I=o(I));let ye=ts(k.slice(le,2*le)),pe,_e,He;try{pe=ie.fromHex(U,M),_e=ie.fromHex(k.slice(0,le),M),He=re.multiplyUnsafe(ye)}catch{return!1}if(!M&&pe.isSmallOrder())return!1;let Ue=C(g,_e.toRawBytes(),pe.toRawBytes(),I);return _e.add(pe.multiplyUnsafe(Ue)).subtract(He).clearCofactor().equals(ie.ZERO)}return re._setWindowSize(8),{CURVE:e,getPublicKey:Ze,sign:m,verify:S,ExtendedPoint:ie,utils:{getExtendedPublicKey:ge,randomPrivateKey:()=>s(r.BYTES),precompute(k=8,I=ie.BASE){return I._setWindowSize(k),I.multiply(BigInt(3)),I}}}}var Qy=BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),o5=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752"),vK=BigInt(0),wI=BigInt(1),Jy=BigInt(2),vI=BigInt(5),i5=BigInt(10),_I=BigInt(20),SI=BigInt(40),a5=BigInt(80);function TI(t){let e=Qy,n=t*t%e*t%e,o=Pr(n,Jy,e)*n%e,a=Pr(o,wI,e)*t%e,s=Pr(a,vI,e)*a%e,u=Pr(s,i5,e)*s%e,l=Pr(u,_I,e)*u%e,h=Pr(l,SI,e)*l%e,y=Pr(h,a5,e)*h%e,_=Pr(y,a5,e)*h%e,V=Pr(_,i5,e)*s%e;return{pow_p_5_8:Pr(V,Jy,e)*t%e,b2:n}}function kI(t){return t[0]&=248,t[31]&=127,t[31]|=64,t}function EI(t,e){let r=Qy,n=ir(e*e*e,r),o=ir(n*n*e,r),a=TI(t*o).pow_p_5_8,s=ir(t*n*a,r),u=ir(e*s*s,r),l=s,h=ir(s*o5,r),y=u===t,_=u===ir(-t,r),V=u===ir(-t*o5,r);return y&&(s=l),(_||V)&&(s=h),Z8(s,r)&&(s=ir(-s,r)),{isValid:y||_,value:s}}var pa=Sh(Qy,void 0,!0),$y={a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),Fp:pa,n:BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),h:BigInt(8),Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"),hash:da,randomBytes:lh,adjustScalarBytes:kI,uvRatio:EI},Fu=Mh($y);function s5(t,e,r){if(e.length>255)throw new Error("Context is too big");return uh(gy("SigEd25519 no Ed25519 collisions"),new Uint8Array([r?1:0,e.length]),e,t)}var _K=Mh({...$y,domain:s5}),SK=Mh({...$y,domain:s5,prehash:da});var PI=(pa.ORDER+BigInt(3))/BigInt(8),TK=pa.pow(Jy,PI),kK=pa.sqrt(pa.neg(pa.ONE)),EK=(pa.ORDER-BigInt(5))/BigInt(8),PK=BigInt(486662);var MK=Y8(pa,pa.neg(BigInt(486664)));var AK=BigInt("25063068953384623474111414158702152701244531502492656460079210482610430750235"),OK=BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),IK=BigInt("1159843021668779879193775521855586647937357759715417654439879720876111806838"),VK=BigInt("40440834346308536858101042469323190826248399146238708352240133220865137265952");var NK=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function uc(t,e){if(!ht||!e&<()){let n=G9(t);return{publicKey:n.slice(32),secretKey:n.slice(0,64)}}let r=Fu.getPublicKey(t);return{publicKey:r,secretKey:Qt([t,r])}}function e1(t,{publicKey:e,secretKey:r},n){if(r){if(!e)throw new Error("Expected a valid publicKey")}else throw new Error("Expected a valid secretKey");let o=K(t),a=r.subarray(0,32);return!ht||!n&<()?Z9(e,a,o):Fu.sign(o,a)}function t1(t,e,r,n){let o=K(t),a=K(r),s=K(e);if(a.length!==32)throw new Error(`Invalid publicKey, received ${a.length}, expected 32`);if(s.length!==64)throw new Error(`Invalid signature, received ${s.length} bytes, expected 64`);try{return!ht||!n&<()?Y9(s,o,a):Fu.verify(s,o,a)}catch{return!1}}var c5=Eh(uc,Yy);var n1=64,MI=32,r1=n1+MI;function Ah(t){let e=K(t);if(e.length!==r1)throw new Error(`Expected keypair with ${r1} bytes, found ${e.length}`);return{publicKey:e.slice(n1,r1),secretKey:e.slice(0,n1)}}function u5({publicKey:t,secretKey:e}){return Ke(e,t).slice()}function Oh(t){return(e,r)=>{if(!ue(r)||r.length!==32)throw new Error("Invalid chainCode passed to derive");return Ah(t(u5(e),r))}}var f5=Oh(t8);var l5=Oh(r8);function d5(t,{chainCode:e,isSoft:r}){return r?l5(t,e):f5(t,e)}var AI={ecdsa:Zy,ed25519:c5,ethereum:Zy,sr25519:d5};function gl(t,e,r){let n=AI[r],o=t;for(let a of e)o=n(o,a);return o}function wl(t){let e=K(t);if(e.length!==32)throw new Error(`Expected a seed matching 32 bytes, found ${e.length}`);return Ah(n8(e))}function o1(t,{publicKey:e,secretKey:r}){if(e?.length!==32)throw new Error("Expected a valid publicKey, 32-bytes");if(r?.length!==64)throw new Error("Expected a valid secretKey, 64-bytes");return o8(e,r,K(t))}function i1(t,e,r){let n=K(r),o=K(e);if(n.length!==32)throw new Error(`Invalid publicKey, received ${n.length} bytes, expected 32`);if(o.length!==64)throw new Error(`Invalid signature, received ${o.length} bytes, expected 64`);return i8(o,K(t),n)}var p5=new Uint8Array;function a1(t,{secretKey:e},r=p5,n=p5){if(e?.length!==64)throw new Error("Invalid secretKey, expected 64-bytes");return a8(e,K(r),K(t),K(n))}var h5=new Uint8Array;function s1(t,e,r,n=h5,o=h5){let a=K(r),s=K(e);if(a.length!==32)throw new Error("Invalid publicKey, expected 32-bytes");if(s.length!==96)throw new Error("Invalid vrfSign output, expected 96 bytes");return s8(a,K(n),K(t),K(o),s)}function ni(t,e=Lu.prefix){let r=tr(t);if(e<0||e>16383||[46,47].includes(e))throw new Error("Out of range ss58Format specified");if(!Lu.allowedDecodedLengths.includes(r.length))throw new Error(`Expected a valid key to convert, with length ${Lu.allowedDecodedLengths.join(", ")}`);let n=Ke(e<64?[e]:[(e&252)>>2|64,e>>8|(e&3)<<6],r);return yy(Ke(n,mh(n).subarray(0,[32,33].includes(r.length)?2:1)))}var[b5,y5,g5]=[[],[],[]],OI=BigInt(0),vl=BigInt(1),II=BigInt(2),VI=BigInt(7),NI=BigInt(256),CI=BigInt(113);for(let t=0,e=vl,r=1,n=0;t<24;t++){[r,n]=[n,(2*r+3*n)%5],b5.push(2*(5*n+r)),y5.push((t+1)*(t+2)/2%64);let o=OI;for(let a=0;a<7;a++)e=(e<>VI)*CI)%NI,e&II&&(o^=vl<<(vl<r>32?Ty(t,e,r):_y(t,e,r),x5=(t,e,r)=>r>32?ky(t,e,r):Sy(t,e,r);function UI(t,e=24){let r=new Uint32Array(10);for(let n=24-e;n<24;n++){for(let s=0;s<10;s++)r[s]=t[s]^t[s+10]^t[s+20]^t[s+30]^t[s+40];for(let s=0;s<10;s+=2){let u=(s+8)%10,l=(s+2)%10,h=r[l],y=r[l+1],_=m5(h,y,1)^r[u],V=x5(h,y,1)^r[u+1];for(let R=0;R<50;R+=10)t[s+R]^=_,t[s+R+1]^=V}let o=t[2],a=t[3];for(let s=0;s<24;s++){let u=y5[s],l=m5(o,a,u),h=x5(o,a,u),y=b5[s];o=t[y],a=t[y+1],t[y]=l,t[y+1]=h}for(let s=0;s<50;s+=10){for(let u=0;u<10;u++)r[u]=t[s+u];for(let u=0;u<10;u++)t[s+u]^=~r[(u+2)%10]&r[(u+4)%10]}t[0]^=BI[n],t[1]^=RI[n]}r.fill(0)}var Ih=class t extends Ei{constructor(e,r,n,o=!1,a=24){if(super(),this.blockLen=e,this.suffix=r,this.outputLen=n,this.enableXOF=o,this.rounds=a,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,qr(n),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=Bo(this.state)}keccak(){UI(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){Co(this);let{blockLen:r,state:n}=this;e=en(e);let o=e.length;for(let a=0;a=n&&this.keccak();let s=Math.min(n-this.posOut,a-o);e.set(r.subarray(this.posOut,this.posOut+s),o),this.posOut+=s,o+=s}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return qr(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(Ru(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){let{blockLen:r,suffix:n,outputLen:o,rounds:a,enableXOF:s}=this;return e||(e=new t(r,n,o,s,a)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=a,e.suffix=n,e.outputLen=o,e.enableXOF=s,e.destroyed=this.destroyed,e}},is=(t,e,r)=>Hu(()=>new Ih(e,t,r)),nQ=is(6,144,224/8),oQ=is(6,136,256/8),iQ=is(6,104,384/8),aQ=is(6,72,512/8),sQ=is(1,144,224/8),w5=is(1,136,256/8),cQ=is(1,104,384/8),v5=is(1,72,512/8),_5=(t,e,r)=>V8((n={})=>new Ih(e,t,n.dkLen===void 0?r:n.dkLen,!0)),uQ=_5(31,168,128/8),fQ=_5(31,136,256/8);var Mi=hh({256:l8,512:d8},{256:w5,512:v5});function _l(t,e,r){return t==="keccak"?Mi(e,void 0,r):kr(e,void 0,void 0,r)}var c1={chars:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",coder:P8,type:"base64",withPadding:!0},S5=ah(c1);var u1=oh(c1,S5),f1=ih(c1);function Sl(t,e){if(![33,65].includes(t.length))throw new Error(`Invalid publicKey provided, received ${t.length} bytes input`);return t.length===33?t:!ht||!e&<()?J9(t):ei.ProjectivePoint.fromHex(t).toRawBytes(!0)}function fc(t,e){if(![33,65].includes(t.length))throw new Error(`Invalid publicKey provided, received ${t.length} bytes input`);if(t.length===65)return t.subarray(1);if(!ht||!e&<())return Q9(t).subarray(1);let{px:r,py:n}=ei.ProjectivePoint.fromHex(t);return Ke($t(r,ia),$t(n,ia))}function T5(t,e,r,n="blake2",o){let a=K(e).subarray(0,64),s=K(t),u=!ht||!o&<()?$9(s,a,r):ei.Signature.fromCompact(a).addRecoveryBit(r).recoverPublicKey(s).toRawBytes();if(!u)throw new Error("Unable to recover publicKey from signature");return n==="keccak"?fc(u,o):Sl(u,o)}function Vh(t,{secretKey:e},r="blake2",n){if(e?.length!==32)throw new Error("Expected valid secp256k1 secretKey, 32-bytes");let o=_l(r,t,n);if(!ht||!n&<())return e8(o,e);let a=ei.sign(o,e,{lowS:!0});return Ke($t(a.r,ia),$t(a.s,ia),new Uint8Array([a.recovery||0]))}var k5="ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141".replace(/ /g,""),l1=Ie(`0x${k5}`),d1=new be.default(k5,"hex");function HI(t,e){let r=ku(e,By);if(r>=l1)throw new Error("Tweak parameter is out of range");if(r+=ku(t,By),r>=l1&&(r-=l1),r===Ga)throw new Error("Invalid resulting private key");return Zb(r,ia)}function LI(t,e){let r=new be.default(e);if(r.cmp(d1)>=0)throw new Error("Tweak parameter is out of range");if(r.iadd(new be.default(t)),r.cmp(d1)>=0&&r.isub(d1),r.isZero())throw new Error("Invalid resulting private key");return $t(r,ia)}function p1(t,e,r){if(!ue(t)||t.length!==32)throw new Error("Expected seckey to be an Uint8Array with length 32");if(!ue(e)||e.length!==32)throw new Error("Expected tweak to be an Uint8Array with length 32");return!ht||r?LI(t,e):HI(t,e)}function E5(t,e,r,n="blake2",o){let a=K(e);if(a.length!==65)throw new Error(`Expected signature with 65 bytes, ${a.length} found instead`);let s=T5(_l(n,t),a,a[64],n,o),u=_l(n,s,o),l=K(r);return Lr(s,l)||(n==="keccak"?Lr(u.slice(-20),l.slice(-20)):Lr(u,l))}function DI(t){return[33,65].includes(t.length)&&(t=Mi(fc(t))),t.slice(-20)}function lc(t){if(!t)return"0x";let e=K(t);if(![20,32,33,65].includes(e.length))throw new Error(`Invalid address or publicKey provided, received ${e.length} bytes input`);let r=Te(DI(e),-1,!1),n=Te(Mi(r),-1,!1),o="";for(let a=0;a<40;a++)o=`${o}${parseInt(n[a],16)>7?r[a].toUpperCase():r[a]}`;return`0x${o}`}function zI(t,e){return t!==(e>7?t.toUpperCase():t.toLowerCase())}function P5(t){let e=t.replace("0x",""),r=Te(Mi(e.toLowerCase()),-1,!1);for(let n=0;n<40;n++)if(zI(e[n],parseInt(r[n],16)))return!1;return!0}function h1(t){return!t||t.length!==42||!Ae(t)?!1:/^(0x)?[0-9a-f]{40}$/.test(t)||/^(0x)?[0-9A-F]{40}$/.test(t)?!0:P5(t)}var FI={256:aa,512:da},qI={256:u8,512:f8};function Nh(t,e,r=256,n){let o=K(t);return!ht||!n&<()?qI[r](o,e):cc(FI[r],o,e)}function M5(t){if(!t.startsWith("m/"))return!1;let e=t.split("/").slice(1);for(let r of e){let n=/^\d+'?$/.test(r)?parseInt(r.replace(/'$/,""),10):Number.NaN;if(isNaN(n)||n>=2147483648||n<0)return!1}return!0}var WI=yt("Bitcoin seed");function O5(t,e){return{chainCode:e,publicKey:ti(t).publicKey,secretKey:t}}function I5(t,e){let r=$t(e,L8),n=e>=2147483648?Ke(new Uint8Array(1),t.secretKey,r):Ke(t.publicKey,r);try{let o=Nh(t.chainCode,n,512);return O5(p1(t.secretKey,o.slice(0,32)),o.slice(32))}catch{return I5(t,e+1)}}function m1(t,e=""){let r=Nh(WI,t,512),n=O5(r.slice(0,32),r.slice(32));if(!e||e==="m"||e==="M"||e==="m'"||e==="M'")return n;if(!M5(e))throw new Error("Invalid derivation path");let o=e.split("/").slice(1);for(let a of o)n=I5(n,parseInt(a,10)+(a.length>1&&a.endsWith("'")?2147483648:0));return n}function XI(t,e,r,n){sh(t);let o=fh({dkLen:32,asyncTick:10},n),{c:a,dkLen:s,asyncTick:u}=o;if(qr(a),qr(s),qr(u),a<1)throw new Error("PBKDF2: iterations (c) should be >= 1");let l=en(e),h=en(r),y=new Uint8Array(s),_=cc.create(t,l),V=_._cloneInto().update(h);return{c:a,dkLen:s,asyncTick:u,DK:y,PRF:_,PRFSalt:V}}function GI(t,e,r,n,o){return t.destroy(),e.destroy(),n&&n.destroy(),o.fill(0),r}function Tl(t,e,r,n){let{c:o,dkLen:a,DK:s,PRF:u,PRFSalt:l}=XI(t,e,r,n),h,y=new Uint8Array(4),_=Uu(y),V=new Uint8Array(u.outputLen);for(let R=1,B=0;Be.toString(2).padStart(8,"0")).join("")}function QI(t){return JI(Array.from(x1(t))).slice(0,t.length*8/32)}function y1(t,e){return kl(yt(b1(t)),yt(`mnemonic${b1(e)}`)).password}function g1(t,e=N5){let r=b1(t).split(" ");if(r.length%3!==0)throw new Error(C5);let n=r.map(y=>{let _=e.indexOf(y);if(_===-1)throw new Error(C5);return _.toString(2).padStart(11,"0")}).join(""),o=Math.floor(n.length/33)*32,a=n.slice(0,o),s=n.slice(o),l=a.match(/(.{1,8})/g)?.map(KI);if(!l||l.length%4!==0||l.length<16||l.length>32)throw new Error(ZI);let h=K(l);if(QI(h)!==s)throw new Error(YI);return h}function B5(t,e){try{g1(t,e)}catch{return!1}return!0}function R5(t,e,r){return!ht||!e&&!r&<()?q9(t):g1(t,e)}function Ch(t,e,r){return!ht||!e&&!r&<()?X9(t):B5(t,e)}function w1(t,e="",r,n=32){if(Ch(t)){if(![32,64].includes(n))throw new Error(`Invalid seed length ${n}, expected 32 or 64`)}else throw new Error("Invalid bip39 mnemonic specified");return n===32?!ht||!r&<()?j9(t,e):y1(t,e).subarray(0,32):y1(t,e)}function v1(t,e="",r,n){if(Ch(t,r,n)){if(!r&&!n&<())return W9(t,e)}else throw new Error("Invalid bip39 mnemonic specified");let o=R5(t,r),a=yt(`mnemonic${e}`);return kl(o,a).password.slice(0,32)}function Bh(t,e){return t<>>32-e}function qu(t,e){let r=t[e+3]&255;return r=r<<8|t[e+2]&255,r=r<<8|t[e+1]&255,r<<8|t[e+0]&255}function _1(t,e,r){for(let n=0;n<4;n++)t[e+n]=r&255,r>>>=8}function $I(t,e,r,n,o){let a=0;for(let s=0;s>>8)-1}function T1(t,e,r,n,o){let a=new Uint32Array(16),s=new Uint32Array(16),u=new Uint32Array(16),l=new Uint32Array(4),h,y,_;for(h=0;h<4;h++)s[5*h]=qu(n,4*h),s[1+h]=qu(r,4*h),s[6+h]=qu(e,4*h),s[11+h]=qu(r,16+4*h);for(h=0;h<16;h++)u[h]=s[h];for(h=0;h<20;h++){for(y=0;y<4;y++){for(_=0;_<4;_++)l[_]=s[(5*y+4*_)%16];for(l[1]^=Bh(l[0]+l[3]|0,7),l[2]^=Bh(l[1]+l[0]|0,9),l[3]^=Bh(l[2]+l[1]|0,13),l[0]^=Bh(l[3]+l[2]|0,18),_=0;_<4;_++)a[4*y+(y+_)%4]=l[_]}for(_=0;_<16;_++)s[_]=a[_]}if(o){for(h=0;h<16;h++)s[h]=s[h]+u[h]|0;for(h=0;h<4;h++)s[5*h]=s[5*h]-qu(n,4*h)|0,s[6+h]=s[6+h]-qu(e,4*h)|0;for(h=0;h<4;h++)_1(t,4*h,s[5*h]),_1(t,16+4*h,s[6+h])}else for(h=0;h<16;h++)_1(t,4*h,s[h]+u[h]|0)}var k1=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function eV(t,e,r,n,o,a,s){let u=new Uint8Array(16),l=new Uint8Array(64),h,y;if(!o)return 0;for(y=0;y<16;y++)u[y]=0;for(y=0;y<8;y++)u[y]=a[y];for(;o>=64;){for(T1(l,u,s,k1,!1),y=0;y<64;y++)t[e+y]=(r?r[n+y]:0)^l[y];for(h=1,y=8;y<16;y++)h=h+(u[y]&255)|0,u[y]=h&255,h>>>=8;o-=64,e+=64,r&&(n+=64)}if(o>0)for(T1(l,u,s,k1,!1),y=0;y>>=8}var tV=new Uint32Array([5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,252]);function U5(t,e,r,n,o,a){let s,u,l,h=new Uint32Array(17),y=new Uint32Array(17),_=new Uint32Array(17),V=new Uint32Array(17),R=new Uint32Array(17);for(u=0;u<17;u++)y[u]=_[u]=0;for(u=0;u<16;u++)y[u]=a[u];for(y[3]&=15,y[4]&=252,y[7]&=15,y[8]&=252,y[11]&=15,y[12]&=252,y[15]&=15;o>0;){for(u=0;u<17;u++)V[u]=0;for(u=0;u<16&&u>>=8;for(l=l+_[16]|0,_[16]=l&3,l=5*(l>>>2)|0,u=0;u<16;u++)l=l+_[u]|0,_[u]=l&255,l>>>=8;l=l+_[16]|0,_[16]=l}for(u=0;u<17;u++)R[u]=_[u];S1(_,tV);let B=-(_[16]>>>7)|0;for(u=0;u<17;u++)_[u]^=B&(R[u]^_[u]);for(u=0;u<16;u++)V[u]=a[u+16];for(V[16]=0,S1(_,V),u=0;u<16;u++)t[e+u]=_[u];return 0}function rV(t,e,r,n,o,a){let s=new Uint8Array(16);return U5(s,0,r,n,o,a),$I(t,e,s,0,16)}function nV(t,e,r,n,o){if(r<32)return-1;E1(t,0,e,0,r,n,o),U5(t,16,t,32,r-32,t);for(let a=0;a<16;a++)t[a]=0;return 0}function oV(t,e,r,n,o){let a=new Uint8Array(32);if(r<32||(E1(a,0,null,0,32,n,o),rV(e,16,e,32,r-32,a)!==0))return-1;E1(t,0,e,0,r,n,o);for(let s=0;s<32;s++)t[s]=0;return 0}var iV=32,aV=24,P1=32,M1=16;function H5(t,e){if(t.length!==iV)throw new Error("bad key size");if(e.length!==aV)throw new Error("bad nonce size")}function L5(...t){for(let e=0,r=t.length;et<>>32-e;function F5(t,e,r,n,o,a){let s=t[e++]^r[n++],u=t[e++]^r[n++],l=t[e++]^r[n++],h=t[e++]^r[n++],y=t[e++]^r[n++],_=t[e++]^r[n++],V=t[e++]^r[n++],R=t[e++]^r[n++],B=t[e++]^r[n++],L=t[e++]^r[n++],Z=t[e++]^r[n++],G=t[e++]^r[n++],J=t[e++]^r[n++],Y=t[e++]^r[n++],fe=t[e++]^r[n++],ie=t[e++]^r[n++],re=s,he=u,me=l,Re=h,Oe=y,ge=_,Ze=V,C=R,m=B,w=L,S=Z,E=G,k=J,I=Y,U=fe,O=ie;for(let g=0;g<8;g+=2)Oe^=It(re+k|0,7),m^=It(Oe+re|0,9),k^=It(m+Oe|0,13),re^=It(k+m|0,18),w^=It(ge+he|0,7),I^=It(w+ge|0,9),he^=It(I+w|0,13),ge^=It(he+I|0,18),U^=It(S+Ze|0,7),me^=It(U+S|0,9),Ze^=It(me+U|0,13),S^=It(Ze+me|0,18),Re^=It(O+E|0,7),C^=It(Re+O|0,9),E^=It(C+Re|0,13),O^=It(E+C|0,18),he^=It(re+Re|0,7),me^=It(he+re|0,9),Re^=It(me+he|0,13),re^=It(Re+me|0,18),Ze^=It(ge+Oe|0,7),C^=It(Ze+ge|0,9),Oe^=It(C+Ze|0,13),ge^=It(Oe+C|0,18),E^=It(S+w|0,7),m^=It(E+S|0,9),w^=It(m+E|0,13),S^=It(w+m|0,18),k^=It(O+U|0,7),I^=It(k+O|0,9),U^=It(I+k|0,13),O^=It(U+I|0,18);o[a++]=s+re|0,o[a++]=u+he|0,o[a++]=l+me|0,o[a++]=h+Re|0,o[a++]=y+Oe|0,o[a++]=_+ge|0,o[a++]=V+Ze|0,o[a++]=R+C|0,o[a++]=B+m|0,o[a++]=L+w|0,o[a++]=Z+S|0,o[a++]=G+E|0,o[a++]=J+k|0,o[a++]=Y+I|0,o[a++]=fe+U|0,o[a++]=ie+O|0}function I1(t,e,r,n,o){let a=n+0,s=n+16*o;for(let u=0;u<16;u++)r[s+u]=t[e+(2*o-1)*16+u];for(let u=0;u0&&(s+=16),F5(r,a,t,e+=16,r,s)}function sV(t,e,r){let n=fh({dkLen:32,asyncTick:10,maxmem:1073742848},r),{N:o,r:a,p:s,dkLen:u,asyncTick:l,maxmem:h,onProgress:y}=n;if(qr(o),qr(a),qr(s),qr(u),qr(l),qr(h),y!==void 0&&typeof y!="function")throw new Error("progressCb should be function");let _=128*a,V=_/4;if(o<=1||o&o-1||o>=2**(_/8)||o>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(s<0||s>(2**32-1)*32/_)throw new Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(u<0||u>(2**32-1)*32)throw new Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");let R=_*(o+s);if(R>h)throw new Error(`Scrypt: parameters too large, ${R} (128 * r * (N + p)) > ${h} (maxmem)`);let B=Tl(aa,t,e,{c:1,dkLen:_*s}),L=Bo(B),Z=Bo(new Uint8Array(_*o)),G=Bo(new Uint8Array(_)),J=()=>{};if(y){let Y=2*o*s,fe=Math.max(Math.floor(Y/1e4),1),ie=0;J=()=>{ie++,y&&(!(ie%fe)||ie===Y)&&y(ie/Y)}}return{N:o,r:a,p:s,dkLen:u,blockSize32:V,V:Z,B32:L,B,tmp:G,blockMixCb:J,asyncTick:l}}function cV(t,e,r,n,o){let a=Tl(aa,t,r,{c:1,dkLen:e});return r.fill(0),n.fill(0),o.fill(0),a}function q5(t,e,r){let{N:n,r:o,p:a,dkLen:s,blockSize32:u,V:l,B32:h,B:y,tmp:_,blockMixCb:V}=sV(t,e,r);for(let R=0;R(e,r,n)=>E5(e,r,n,t),Z5=[["ecdsa",G5("blake2")],["ethereum",G5("keccak")]],fV=[["ed25519",t1],["sr25519",i1],...Z5],lV=["ed25519","sr25519","ecdsa"];function Y5(t,{message:e,publicKey:r,signature:n},o=fV){return t.isValid=o.some(([a,s])=>{try{if(s(e,n,r))return t.crypto=a,!0}catch{}return!1}),t}function dV(t,{message:e,publicKey:r,signature:n}){if(![0,1,2].includes(n[0]))throw new Error(`Unknown crypto type, expected signature prefix [0..2], found ${n[0]}`);let o=lV[n[0]]||"none";t.crypto=o;try{t.isValid={ecdsa:()=>Y5(t,{message:e,publicKey:r,signature:n.subarray(1)},Z5).isValid,ed25519:()=>t1(e,n.subarray(1),r),none:()=>{throw Error("no verify for `none` crypto type")},sr25519:()=>i1(e,n.subarray(1),r)}[o]()}catch{}return t}function pV(t){return[0,1,2].includes(t[0])&&[65,66].includes(t.length)?dV:Y5}function Uh(t,e,r){let n=K(e);if(![64,65,66].includes(n.length))throw new Error(`Invalid signature length, expected [64..66] bytes, found ${n.length}`);let o=tr(r),a={message:K(t),publicKey:o,signature:n},s={crypto:"none",isValid:!1,isWrapped:Mu(a.message,!0),publicKey:o},u=Mu(a.message,!1),l=pV(n);return l(s,a),s.crypto!=="none"||s.isWrapped&&!u?s:(a.message=u?Xb(a.message):Gb(a.message),l(s,a))}var En=Ie("11400714785074694791"),Ai=Ie("14029467366897019727"),K5=Ie("1609587929392839161"),Pl=Ie("9650029242287828579"),J5=Ie("2870177450012600261"),ha=Ie("0xffffffffffffffff"),hV=Ie(7),mV=Ie(11),xV=Ie(12),bV=Ie(16),yV=Ie(18),gV=Ie(23),wV=Ie(27),vV=Ie(29),ju=Ie(31),_V=Ie(32),SV=Ie(33),TV=Ie(64),Q5=Ie(256);function so(t,e){let r=t&ha;return(r<>TV-e)&ha}function R1(t,e,r){let n=new Array(r),o=0;for(let s=0;s=0;s--)a=(a<=0){let a=s=>En*so(s+Ai*R1(e,o,4),ju);do r.v1=a(r.v1),o+=8,r.v2=a(r.v2),o+=8,r.v3=a(r.v3),o+=8,r.v4=a(r.v4),o+=8;while(o<=n)}return o=32?((((so(a,Za)+so(s,hV)+so(u,xV)+so(l,yV)^En*so(a*Ai,ju))*En+Pl^En*so(s*Ai,ju))*En+Pl^En*so(u*Ai,ju))*En+Pl^En*so(l*Ai,ju))*En+Pl:r+J5);for(;h<=o-8;)y=ha&Pl+En*so(y^En*so(Ai*R1(n,h,4),ju),wV),h+=8;for(h+4<=o&&(y=ha&K5+Ai*so(y^En*R1(n,h,2),gV),h+=4);h>SV),y=ha&K5*(y^y>>vV),y=ha&(y^y>>_V);let _=new Uint8Array(8);for(let V=7;V>=0;V--)_[V]=Number(y%Q5),y=y/Q5;return _}function ma(t,e=64,r){let n=Math.ceil(e/64),o=K(t);if(!ht||!r&<())return b8(o,n);let a=new Uint8Array(n*8);for(let s=0;sVh(t,e,"blake2"),ed25519:e1,ethereum:(t,e)=>Vh(t,e,"keccak"),sr25519:o1},Hh={ecdsa:t=>t.length>32?kr(t):t,ed25519:t=>t,ethereum:t=>t.length===20?t:Mi(fc(t)),sr25519:t=>t};function Al(t){return!t||al(t)}function sw(t,e,r){return kr(Ke(e||"",r||"",t))}function dc({toSS58:t,type:e},{publicKey:r,secretKey:n},o={},a=null,s){let u=(y,_)=>{let V=rw(y,_||a,s);if(V.secretKey.length===64)r=V.publicKey,n=V.secretKey;else{let R=PV[e](V.secretKey);r=R.publicKey,n=R.secretKey}},l=y=>(Al(n)&&a&&u(y,a),a=nw({publicKey:r,secretKey:n},y),s=void 0,a),h=()=>{let y=Hh[e](r);return e==="ethereum"?lc(y):t(y)};return{get address(){return h()},get addressRaw(){let y=Hh[e](r);return e==="ethereum"?y.slice(-20):y},get isLocked(){return Al(n)},get meta(){return o},get publicKey(){return r},get type(){return e},decodePkcs8:u,derive:(y,_)=>{if(e==="ethereum")throw new Error("Unable to derive on this keypair");if(Al(n))throw new Error("Cannot derive on a locked keypair");let{path:V}=xl(y),R=gl({publicKey:r,secretKey:n},V,e);return dc({toSS58:t,type:e},R,_,null)},encodePkcs8:y=>l(y),lock:()=>{n=new Uint8Array},setMeta:y=>{o=ne({},o,y)},sign:(y,_={})=>{if(Al(n))throw new Error("Cannot sign with a locked key pair");return Ke(_.withType?iw[e]:EV,aw[e](K(y),{publicKey:r,secretKey:n}))},toJson:y=>{let _=["ecdsa","ethereum"].includes(e)?r.length===20?Te(r):Te(Sl(r)):h();return ow(e,{address:_,meta:o},l(y),!!y)},unlock:y=>u(y),verify:(y,_,V)=>Uh(y,_,Hh[e](K(V))).isValid,vrfSign:(y,_,V)=>{if(Al(n))throw new Error("Cannot sign with a locked key pair");if(e==="sr25519")return a1(y,{secretKey:n},_,V);let R=aw[e](K(y),{publicKey:r,secretKey:n});return Ke(sw(R,_,V),R)},vrfVerify:(y,_,V,R,B)=>e==="sr25519"?s1(y,_,r,R,B):Uh(y,Ke(iw[e],_.subarray(32)),Hh[e](K(V))).isValid&&Lr(_.subarray(0,32),sw(_.subarray(32),R,B))}}var cw="bottom drive obey lake curtain smoke basket hold race lonely fit walk";var Lh=class{__internal__map={};add(e){return this.__internal__map[tr(e.address).toString()]=e,e}all(){return Object.values(this.__internal__map)}get(e){let r=this.__internal__map[tr(e).toString()];if(!r)throw new Error(`Unable to retrieve keypair '${ue(e)||Ae(e)?Te(K(e)):e}'`);return r}remove(e){delete this.__internal__map[tr(e).toString()]}};var H1={ecdsa:t=>ti(t),ed25519:t=>uc(t),ethereum:t=>ti(t),sr25519:t=>wl(t)};function MV({publicKey:t}){return t}var Gu=class{__internal__pairs;__internal__type;__internal__ss58;decodeAddress=tr;constructor(e={}){if(e.type=e.type||"ed25519",!["ecdsa","ethereum","ed25519","sr25519"].includes(e.type||"undefined"))throw new Error(`Expected a keyring type of either 'ed25519', 'sr25519', 'ethereum' or 'ecdsa', found '${e.type||"unknown"}`);this.__internal__pairs=new Lh,this.__internal__ss58=e.ss58Format,this.__internal__type=e.type}get pairs(){return this.getPairs()}get publicKeys(){return this.getPublicKeys()}get type(){return this.__internal__type}addPair(e){return this.__internal__pairs.add(e)}addFromAddress(e,r={},n=null,o=this.type,a,s){let u=this.decodeAddress(e,a);return this.addPair(dc({toSS58:this.encodeAddress,type:o},{publicKey:u,secretKey:new Uint8Array},r,n,s))}addFromJson(e,r){return this.addPair(this.createFromJson(e,r))}addFromMnemonic(e,r={},n=this.type){return this.addFromUri(e,r,n)}addFromPair(e,r={},n=this.type){return this.addPair(this.createFromPair(e,r,n))}addFromSeed(e,r={},n=this.type){return this.addPair(dc({toSS58:this.encodeAddress,type:n},H1[n](e),r,null))}addFromUri(e,r={},n=this.type){return this.addPair(this.createFromUri(e,r,n))}createFromJson({address:e,encoded:r,encoding:{content:n,type:o,version:a},meta:s},u){if(a==="3"&&n[0]!=="pkcs8")throw new Error(`Unable to decode non-pkcs8 type, [${n.join(",")}] found}`);let l=a==="0"||!Array.isArray(n)?this.type:n[1],h=Array.isArray(o)?o:[o];if(!["ed25519","sr25519","ecdsa","ethereum"].includes(l))throw new Error(`Unknown crypto type ${l}`);let y=Ae(e)?jt(e):this.decodeAddress(e,u),_=Ae(r)?jt(r):u1(r);return dc({toSS58:this.encodeAddress,type:l},{publicKey:y,secretKey:new Uint8Array},s,_,h)}createFromPair(e,r={},n=this.type){return dc({toSS58:this.encodeAddress,type:n},e,r,null)}createFromUri(e,r={},n=this.type){let o=e.startsWith("//")?`${cw}${e}`:e,{derivePath:a,password:s,path:u,phrase:l}=Ry(o),h,y=Ae(l,256);if(y)h=jt(l);else{let V=l.split(" ");if([12,15,18,21,24].includes(V.length))h=n==="ethereum"?w1(l,"",!1,64):v1(l,s);else{if(l.length>32)throw new Error("specified phrase is not a valid mnemonic and is invalid as a raw seed at > 32 bytes");h=yt(l.padEnd(32))}}let _=n==="ethereum"?y?H1[n](h):m1(h,a.substring(1)):gl(H1[n](h),u,n);return dc({toSS58:this.encodeAddress,type:n},_,r,null)}encodeAddress=(e,r)=>this.type==="ethereum"?lc(e):ni(e,r??this.__internal__ss58);getPair(e){return this.__internal__pairs.get(e)}getPairs(){return this.__internal__pairs.all()}getPublicKeys(){return this.__internal__pairs.all().map(MV)}removePair(e){this.__internal__pairs.remove(e)}setSS58Format(e){this.__internal__ss58=e}toJson(e,r){return this.__internal__pairs.get(e).toJson(r)}};var uw=-99999;function Ol(t,e,r){Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:r})}var Il=class extends Error{code;data;message;name;stack;constructor(e="",r=uw,n){if(super(),Ol(this,"message",String(e)),Ol(this,"name",this.constructor.name),Ol(this,"data",n),Ol(this,"code",r),we(Error.captureStackTrace))Error.captureStackTrace(this,this.constructor);else{let{stack:o}=new Error(e);o&&Ol(this,"stack",o)}}static CODES={ASSERT:-90009,INVALID_JSONRPC:-99998,METHOD_NOT_FOUND:-32601,UNKNOWN:uw}};function AV(t){if(Qe(t))return"";let e=`: ${qe(t)?t.replace(/Error\("/g,"").replace(/\("/g,"(").replace(/"\)/g,")").replace(/\(/g,", ").replace(/\)/g,""):Le(t)}`;return e.length<=256?e:`${e.substring(0,255)}\u2026`}function fw(t){if(t){let{code:e,data:r,message:n}=t;throw new Il(`${e}: ${n}${AV(r)}`,e,r)}}var Dh=class{__internal__id=0;decodeResponse(e){if(!e||e.jsonrpc!=="2.0")throw new Error("Invalid jsonrpc field in decoded object");let r=!Qe(e.params)&&!Qe(e.method);if(!De(e.id)&&(!r||!De(e.params.subscription)&&!qe(e.params.subscription)))throw new Error("Invalid id field in decoded object");if(fw(e.error),e.result===void 0&&!r)throw new Error("No result found in jsonrpc response");return r?(fw(e.params.error),e.params.result):e.result}encodeJson(e,r){let[n,o]=this.encodeObject(e,r);return[n,Le(o)]}encodeObject(e,r){let n=++this.__internal__id;return[n,{id:n,jsonrpc:"2.0",method:e,params:r}]}};var OV="http://127.0.0.1:9933",IV="ws://127.0.0.1:9944",lw={HTTP_URL:OV,WS_URL:IV};var zh=class{key;next;prev;constructor(e){this.key=e,this.next=this.prev=this}},Fh=class{capacity;__internal__data=new Map;__internal__refs=new Map;__internal__length=0;__internal__head;__internal__tail;constructor(e=128){this.capacity=e,this.__internal__head=this.__internal__tail=new zh("")}get length(){return this.__internal__length}get lengthData(){return this.__internal__data.size}get lengthRefs(){return this.__internal__refs.size}entries(){let e=this.keys(),r=e.length,n=new Array(r);for(let o=0;o=0&&t<=999)return"(Unused)";if(t>=1016){if(t<=1999)return"(For WebSocket standard)";if(t<=2999)return"(For WebSocket extensions)";if(t<=3999)return"(For libraries and frameworks)";if(t<=4999)return"(For applications)"}return CV[t]||"(Unknown)"}var RV={chain_finalisedHead:"chain_finalizedHead",chain_subscribeFinalisedHeads:"chain_subscribeFinalizedHeads",chain_unsubscribeFinalisedHeads:"chain_unsubscribeFinalizedHeads"},UV=2500,HV=60*1e3,LV=5e3,co=Tr("api-ws");function mw(t,e){Object.keys(t).forEach(r=>{e&&e(t[r]),delete t[r]})}function D1(){return{bytesRecv:0,bytesSent:0,cached:0,errors:0,requests:0,subscriptions:0,timeout:0}}var ss=class t{__internal__callCache;__internal__coder;__internal__endpoints;__internal__headers;__internal__eventemitter;__internal__handlers={};__internal__isReadyPromise;__internal__stats;__internal__waitingForId={};__internal__autoConnectMs;__internal__endpointIndex;__internal__endpointStats;__internal__isConnected=!1;__internal__subscriptions={};__internal__timeoutId=null;__internal__websocket;__internal__timeout;constructor(e=lw.WS_URL,r=UV,n={},o,a){let s=Array.isArray(e)?e:[e];if(s.length===0)throw new Error("WsProvider requires at least one Endpoint");s.forEach(u=>{if(!/^(wss|ws):\/\//.test(u))throw new Error(`Endpoint should start with 'ws://', received '${u}'`)}),this.__internal__callCache=new Fh(a||128),this.__internal__eventemitter=new Nl.default,this.__internal__autoConnectMs=r||0,this.__internal__coder=new Dh,this.__internal__endpointIndex=-1,this.__internal__endpoints=s,this.__internal__headers=n,this.__internal__websocket=null,this.__internal__stats={active:{requests:0,subscriptions:0},total:D1()},this.__internal__endpointStats=D1(),this.__internal__timeout=o||HV,r&&r>0&&this.connectWithRetry().catch(Fn),this.__internal__isReadyPromise=new Promise(u=>{this.__internal__eventemitter.once("connected",()=>{u(this)})})}get hasSubscriptions(){return!0}get isClonable(){return!0}get isConnected(){return this.__internal__isConnected}get isReady(){return this.__internal__isReadyPromise}get endpoint(){return this.__internal__endpoints[this.__internal__endpointIndex]}clone(){return new t(this.__internal__endpoints)}selectEndpointIndex(e){return(this.__internal__endpointIndex+1)%e.length}async connect(){if(this.__internal__websocket)throw new Error("WebSocket is already connected");try{this.__internal__endpointIndex=this.selectEndpointIndex(this.__internal__endpoints),this.__internal__websocket=typeof Jr.WebSocket<"u"&&ny(Jr.WebSocket,Wh)?new Wh(this.endpoint):new Wh(this.endpoint,void 0,{headers:this.__internal__headers}),this.__internal__websocket&&(this.__internal__websocket.onclose=this.__internal__onSocketClose,this.__internal__websocket.onerror=this.__internal__onSocketError,this.__internal__websocket.onmessage=this.__internal__onSocketMessage,this.__internal__websocket.onopen=this.__internal__onSocketOpen),this.__internal__timeoutId=setInterval(()=>this.__internal__timeoutHandlers(),LV)}catch(e){throw co.error(e),this.__internal__emit("error",e),e}}async connectWithRetry(){if(this.__internal__autoConnectMs>0)try{await this.connect()}catch{setTimeout(()=>{this.connectWithRetry().catch(Fn)},this.__internal__autoConnectMs)}}async disconnect(){this.__internal__autoConnectMs=0;try{this.__internal__websocket&&this.__internal__websocket.close(1e3)}catch(e){throw co.error(e),this.__internal__emit("error",e),e}}get stats(){return{active:{requests:Object.keys(this.__internal__handlers).length,subscriptions:Object.keys(this.__internal__subscriptions).length},total:this.__internal__stats.total}}get endpointStats(){return this.__internal__endpointStats}on(e,r){return this.__internal__eventemitter.on(e,r),()=>{this.__internal__eventemitter.removeListener(e,r)}}send(e,r,n,o){this.__internal__endpointStats.requests++,this.__internal__stats.total.requests++;let[a,s]=this.__internal__coder.encodeJson(e,r),u=n?this.__internal__callCache.get(s):null;return u?(this.__internal__endpointStats.cached++,this.__internal__stats.total.cached++):(u=this.__internal__send(a,s,e,r,o),n&&this.__internal__callCache.set(s,u)),u}async __internal__send(e,r,n,o,a){return new Promise((s,u)=>{try{if(!this.isConnected||this.__internal__websocket===null)throw new Error("WebSocket is not connected");let l=(y,_)=>{y?u(y):s(_)};co.debug(()=>["calling",n,r]),this.__internal__handlers[e]={callback:l,method:n,params:o,start:Date.now(),subscription:a};let h=r.length;this.__internal__endpointStats.bytesSent+=h,this.__internal__stats.total.bytesSent+=h,this.__internal__websocket.send(r)}catch(l){this.__internal__endpointStats.errors++,this.__internal__stats.total.errors++,u(l)}})}subscribe(e,r,n,o){return this.__internal__endpointStats.subscriptions++,this.__internal__stats.total.subscriptions++,this.send(r,n,!1,{callback:o,type:e})}async unsubscribe(e,r,n){let o=`${e}::${n}`;if(Qe(this.__internal__subscriptions[o]))return co.debug(()=>`Unable to find active subscription=${o}`),!1;delete this.__internal__subscriptions[o];try{return this.isConnected&&!io(this.__internal__websocket)?this.send(r,[n]):!0}catch{return!1}}__internal__emit=(e,...r)=>{this.__internal__eventemitter.emit(e,...r)};__internal__onSocketClose=e=>{let r=new Error(`disconnected from ${this.endpoint}: ${e.code}:: ${e.reason||hw(e.code)}`);this.__internal__autoConnectMs>0&&co.error(r.message),this.__internal__isConnected=!1,this.__internal__websocket&&(this.__internal__websocket.onclose=null,this.__internal__websocket.onerror=null,this.__internal__websocket.onmessage=null,this.__internal__websocket.onopen=null,this.__internal__websocket=null),this.__internal__timeoutId&&(clearInterval(this.__internal__timeoutId),this.__internal__timeoutId=null),mw(this.__internal__handlers,n=>{try{n.callback(r,void 0)}catch(o){co.error(o)}}),mw(this.__internal__waitingForId),this.__internal__endpointStats=D1(),this.__internal__emit("disconnected"),this.__internal__autoConnectMs>0&&setTimeout(()=>{this.connectWithRetry().catch(Fn)},this.__internal__autoConnectMs)};__internal__onSocketError=e=>{co.debug(()=>["socket error",e]),this.__internal__emit("error",e)};__internal__onSocketMessage=e=>{co.debug(()=>["received",e.data]);let r=e.data.length;this.__internal__endpointStats.bytesRecv+=r,this.__internal__stats.total.bytesRecv+=r;let n=JSON.parse(e.data);return Qe(n.method)?this.__internal__onSocketMessageResult(n):this.__internal__onSocketMessageSubscribe(n)};__internal__onSocketMessageResult=e=>{let r=this.__internal__handlers[e.id];if(!r){co.debug(()=>`Unable to find handler for id=${e.id}`);return}try{let{method:n,params:o,subscription:a}=r,s=this.__internal__coder.decodeResponse(e);if(r.callback(null,s),a){let u=`${a.type}::${s}`;this.__internal__subscriptions[u]=ne({},a,{method:n,params:o}),this.__internal__waitingForId[u]&&this.__internal__onSocketMessageSubscribe(this.__internal__waitingForId[u])}}catch(n){this.__internal__endpointStats.errors++,this.__internal__stats.total.errors++,r.callback(n,void 0)}delete this.__internal__handlers[e.id]};__internal__onSocketMessageSubscribe=e=>{if(!e.method)throw new Error("No method found in JSONRPC response");let n=`${RV[e.method]||e.method}::${e.params.subscription}`,o=this.__internal__subscriptions[n];if(!o){this.__internal__waitingForId[n]=e,co.debug(()=>`Unable to find handler for subscription=${n}`);return}delete this.__internal__waitingForId[n];try{let a=this.__internal__coder.decodeResponse(e);o.callback(null,a)}catch(a){this.__internal__endpointStats.errors++,this.__internal__stats.total.errors++,o.callback(a,void 0)}};__internal__onSocketOpen=()=>{if(this.__internal__websocket===null)throw new Error("WebSocket cannot be null in onOpen");return co.debug(()=>["connected to",this.endpoint]),this.__internal__isConnected=!0,this.__internal__resubscribe(),this.__internal__emit("connected"),!0};__internal__resubscribe=()=>{let e=this.__internal__subscriptions;this.__internal__subscriptions={},Promise.all(Object.keys(e).map(async r=>{let{callback:n,method:o,params:a,type:s}=e[r];if(!s.startsWith("author_"))try{await this.subscribe(s,o,a,n)}catch(u){co.error(u)}})).catch(co.error)};__internal__timeoutHandlers=()=>{let e=Date.now(),r=Object.keys(this.__internal__handlers);for(let n=0,o=r.length;nthis.__internal__timeout){try{a.callback(new Error(`No response received from RPC endpoint in ${this.__internal__timeout/1e3}s`),void 0)}catch{}this.__internal__endpointStats.timeout++,this.__internal__stats.total.timeout++,delete this.__internal__handlers[r[n]]}}}};var z1=function(t,e){return z1=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},z1(t,e)};function Mr(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");z1(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function xw(t,e,r,n){function o(a){return a instanceof r?a:new r(function(s){s(a)})}return new(r||(r=Promise))(function(a,s){function u(y){try{h(n.next(y))}catch(_){s(_)}}function l(y){try{h(n.throw(y))}catch(_){s(_)}}function h(y){y.done?a(y.value):o(y.value).then(u,l)}h((n=n.apply(t,e||[])).next())})}function jh(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,o,a,s;return s={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(h){return function(y){return l([h,y])}}function l(h){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,h[0]&&(r=0)),r;)try{if(n=1,o&&(a=h[0]&2?o.return:h[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,h[1])).done)return a;switch(o=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return r.label++,{value:h[1],done:!1};case 5:r.label++,o=h[1],h=[0];continue;case 7:h=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){r=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function uo(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),o,a=[],s;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)a.push(o.value)}catch(u){s={error:u}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return a}function fo(t,e,r){if(r||arguments.length===2)for(var n=0,o=e.length,a;n1||u(V,R)})})}function u(V,R){try{l(n[V](R))}catch(B){_(a[0][3],B)}}function l(V){V.value instanceof pc?Promise.resolve(V.value.v).then(h,y):_(a[0][2],V)}function h(V){u("next",V)}function y(V){u("throw",V)}function _(V,R){V(R),a.shift(),a.length&&u(a[0][0],a[0][1])}}function yw(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof xa=="function"?xa(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(a){r[a]=t[a]&&function(s){return new Promise(function(u,l){s=t[a](s),o(u,l,s.done,s.value)})}}function o(a,s,u,l){Promise.resolve(l).then(function(h){a({value:h,done:u})},s)}}function tt(t){return typeof t=="function"}function Zu(t){var e=function(n){Error.call(n),n.stack=new Error().stack},r=t(e);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Xh=Zu(function(t){return function(r){t(this),this.message=r?r.length+` errors occurred during unsubscription: `+r.map(function(n,o){return o+1+") "+n.toString()}).join(` `):"",this.name="UnsubscriptionError",this.errors=r}});function hc(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var Mn=function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,r,n,o,a;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var u=xa(s),l=u.next();!l.done;l=u.next()){var h=l.value;h.remove(this)}}catch(L){e={error:L}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(e)throw e.error}}else s.remove(this);var y=this.initialTeardown;if(tt(y))try{y()}catch(L){a=L instanceof Xh?L.errors:[L]}var _=this._finalizers;if(_){this._finalizers=null;try{for(var V=xa(_),R=V.next();!R.done;R=V.next()){var B=R.value;try{gw(B)}catch(L){a=a??[],L instanceof Xh?a=fo(fo([],uo(a)),uo(L.errors)):a.push(L)}}}catch(L){n={error:L}}finally{try{R&&!R.done&&(o=V.return)&&o.call(V)}finally{if(n)throw n.error}}}if(a)throw new Xh(a)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)gw(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}},t.prototype._hasParent=function(e){var r=this._parentage;return r===e||Array.isArray(r)&&r.includes(e)},t.prototype._addParent=function(e){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e},t.prototype._removeParent=function(e){var r=this._parentage;r===e?this._parentage=null:Array.isArray(r)&&hc(r,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&hc(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}();var F1=Mn.EMPTY;function Gh(t){return t instanceof Mn||t&&"closed"in t&&tt(t.remove)&&tt(t.add)&&tt(t.unsubscribe)}function gw(t){tt(t)?t():t.unsubscribe()}var oi={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Yu={setTimeout:function(t,e){for(var r=[],n=2;n0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(r){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,r)},e.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},e.prototype._innerSubscribe=function(r){var n=this,o=this,a=o.hasError,s=o.isStopped,u=o.observers;return a||s?F1:(this.currentObservers=null,u.push(r),new Mn(function(){n.currentObservers=null,hc(u,r)}))},e.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,a=n.thrownError,s=n.isStopped;o?r.error(a):s&&r.complete()},e.prototype.asObservable=function(){var r=new Vt;return r.source=this,r},e.create=function(r,n){return new Mw(r,n)},e}(Vt);var Mw=function(t){Mr(e,t);function e(r,n){var o=t.call(this)||this;return o.destination=r,o.source=n,o}return e.prototype.next=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,r)},e.prototype.error=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,r)},e.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},e.prototype._subscribe=function(r){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&o!==void 0?o:F1},e}(bc);var Oi=function(t){Mr(e,t);function e(r){var n=t.call(this)||this;return n._value=r,n}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(r){var n=t.prototype._subscribe.call(this,r);return!n.closed&&r.next(this._value),n},e.prototype.getValue=function(){var r=this,n=r.hasError,o=r.thrownError,a=r._value;if(n)throw o;return this._throwIfClosed(),a},e.prototype.next=function(r){t.prototype.next.call(this,this._value=r)},e}(bc);var Bl={now:function(){return(Bl.delegate||Date).now()},delegate:void 0};var Aw=function(t){Mr(e,t);function e(r,n,o){r===void 0&&(r=1/0),n===void 0&&(n=1/0),o===void 0&&(o=Bl);var a=t.call(this)||this;return a._bufferSize=r,a._windowTime=n,a._timestampProvider=o,a._buffer=[],a._infiniteTimeWindow=!0,a._infiniteTimeWindow=n===1/0,a._bufferSize=Math.max(1,r),a._windowTime=Math.max(1,n),a}return e.prototype.next=function(r){var n=this,o=n.isStopped,a=n._buffer,s=n._infiniteTimeWindow,u=n._timestampProvider,l=n._windowTime;o||(a.push(r),!s&&a.push(u.now()+l)),this._trimBuffer(),t.prototype.next.call(this,r)},e.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),o=this,a=o._infiniteTimeWindow,s=o._buffer,u=s.slice(),l=0;l0?t.prototype.requestAsyncId.call(this,r,n,o):(r.actions.push(this),r._scheduled||(r._scheduled=Ul.setImmediate(r.flush.bind(r,void 0))))},e.prototype.recycleAsyncId=function(r,n,o){var a;if(o===void 0&&(o=0),o!=null?o>0:this.delay>0)return t.prototype.recycleAsyncId.call(this,r,n,o);var s=r.actions;n!=null&&((a=s[s.length-1])===null||a===void 0?void 0:a.id)!==n&&(Ul.clearImmediate(n),r._scheduled===n&&(r._scheduled=void 0))},e}(Iw);var J1=function(){function t(e,r){r===void 0&&(r=t.now),this.schedulerActionCtor=e,this.now=r}return t.prototype.schedule=function(e,r,n){return r===void 0&&(r=0),new this.schedulerActionCtor(this,e).schedule(n,r)},t.now=Bl.now,t}();var Cw=function(t){Mr(e,t);function e(r,n){n===void 0&&(n=J1.now);var o=t.call(this,r,n)||this;return o.actions=[],o._active=!1,o}return e.prototype.flush=function(r){var n=this.actions;if(this._active){n.push(r);return}var o;this._active=!0;do if(o=r.execute(r.state,r.delay))break;while(r=n.shift());if(this._active=!1,o){for(;r=n.shift();)r.unsubscribe();throw o}},e}(J1);var Bw=function(t){Mr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.flush=function(r){this._active=!0;var n=this._scheduled;this._scheduled=void 0;var o=this.actions,a;r=r||o.shift();do if(a=r.execute(r.state,r.delay))break;while((r=o[0])&&r.id===n&&o.shift());if(this._active=!1,a){for(;(r=o[0])&&r.id===n&&o.shift();)r.unsubscribe();throw a}},e}(Cw);var Q1=new Bw(Nw);var Ii=new Vt(function(t){return t.complete()});function Rw(t){return t&&tt(t.schedule)}function Uw(t){return t[t.length-1]}function Hw(t){return tt(Uw(t))?t.pop():void 0}function cs(t){return Rw(Uw(t))?t.pop():void 0}var Kh=function(t){return t&&typeof t.length=="number"&&typeof t!="function"};function Jh(t){return tt(t?.then)}function Qh(t){return tt(t[Qu])}function $h(t){return Symbol.asyncIterator&&tt(t?.[Symbol.asyncIterator])}function em(t){return new TypeError("You provided "+(t!==null&&typeof t=="object"?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function KV(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var tm=KV();function rm(t){return tt(t?.[tm])}function nm(t){return bw(this,arguments,function(){var r,n,o,a;return jh(this,function(s){switch(s.label){case 0:r=t.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,pc(r.read())];case 3:return n=s.sent(),o=n.value,a=n.done,a?[4,pc(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,pc(o)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function om(t){return tt(t?.getReader)}function mn(t){if(t instanceof Vt)return t;if(t!=null){if(Qh(t))return JV(t);if(Kh(t))return QV(t);if(Jh(t))return $V(t);if($h(t))return Lw(t);if(rm(t))return eN(t);if(om(t))return tN(t)}throw em(t)}function JV(t){return new Vt(function(e){var r=t[Qu]();if(tt(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function QV(t){return new Vt(function(e){for(var r=0;r=2,!1,!0))}var lN=function(t,e){return t.push(e),t};function ba(){return _t(function(t,e){tv(lN,[])(t).subscribe(e)})}function rv(t){return new Vt(function(e){return t.subscribe(e)})}var dN={connector:function(){return new bc}};function nv(t,e){e===void 0&&(e=dN);var r=e.connector;return _t(function(n,o){var a=r();mn(t(rv(a))).subscribe(o),o.add(n.subscribe(a))})}function ov(t){return _t(function(e,r){var n=!1;e.subscribe(Nt(r,function(o){n=!0,r.next(o)},function(){n||r.next(t),r.complete()}))})}function iv(t){return t<=0?function(){return Ii}:_t(function(e,r){var n=0;e.subscribe(Nt(r,function(o){++n<=t&&(r.next(o),t<=n&&r.complete())}))})}function e2(t,e){return e===void 0&&(e=lo),t=t??pN,_t(function(r,n){var o,a=!0;r.subscribe(Nt(n,function(s){var u=e(s);(a||!t(o,u))&&(a=!1,o=u,n.next(s))}))})}function pN(t,e){return t===e}function av(t){return t===void 0&&(t=hN),_t(function(e,r){var n=!1;e.subscribe(Nt(r,function(o){n=!0,r.next(o)},function(){return n?r.complete():r.error(t())}))})}function hN(){return new $u}function cm(t,e){var r=arguments.length>=2;return function(n){return n.pipe(t?$w(function(o,a){return t(o,a,n)}):lo,iv(1),r?ov(e):av(function(){return new $u}))}}function sv(t,e){var r=tt(t)?t:function(){return t};return tt(e)?nv(e,{connector:r}):function(n){return new Ew(n,r)}}function Hl(t,e,r,n){r&&!tt(r)&&(n=r);var o=tt(r)?r:void 0;return function(a){return sv(new Aw(t,e,n),o)(a)}}function Vi(){for(var t=[],e=0;eu.isApplyExtrinsic&&u.asApplyExtrinsic.eqn(a)),txIndex:a};if(o.isInBlock){let a=e.map(s=>s.hash.toHex());cv.warn(`block ${r.hash.toHex()}: Unable to find extrinsic ${t.toHex()} inside ${a.join(", ")}`)}return{}}function Ll(t){return we(t.sign)}var ga={};br(ga,{assetConversion:()=>Mv,assets:()=>Ov,attestations:()=>J4,aura:()=>Vv,author:()=>p6,authorship:()=>Nv,babe:()=>Uv,balances:()=>Hv,beefy:()=>zv,benchmark:()=>qv,blockbuilder:()=>Xv,bridges:()=>Q4,chain:()=>m6,childstate:()=>b6,claims:()=>$4,collective:()=>Gv,consensus:()=>Zv,contracts:()=>Qv,contractsAbi:()=>$7,crowdloan:()=>e7,cumulus:()=>r7,democracy:()=>$v,dev:()=>t4,discovery:()=>n4,elections:()=>o4,engine:()=>a4,eth:()=>n6,evm:()=>s4,extrinsics:()=>c4,finality:()=>o7,fungibles:()=>f4,genericAsset:()=>l4,gilt:()=>d4,grandpa:()=>x4,identity:()=>b4,imOnline:()=>y4,lottery:()=>g4,metadata:()=>wv,mmr:()=>_4,nfts:()=>T4,nimbus:()=>i6,nompools:()=>E4,offchain:()=>w6,offences:()=>P4,ormlOracle:()=>s6,ormlTokens:()=>u6,parachains:()=>l7,payment:()=>T6,poll:()=>d7,pow:()=>A4,proxy:()=>O4,purchase:()=>p7,recovery:()=>I4,rpc:()=>l6,runtime:()=>Tv,scaleInfo:()=>Ev,scheduler:()=>V4,session:()=>C4,society:()=>B4,staking:()=>U4,state:()=>E6,support:()=>H4,syncstate:()=>D4,system:()=>q4,treasury:()=>W4,txpayment:()=>j4,txqueue:()=>G4,uniques:()=>Z4,utility:()=>Y4,vesting:()=>K4,xcm:()=>Q7});var uv={Blake2_128:null,Blake2_256:null,Blake2_128Concat:null,Twox128:null,Twox256:null,Twox64Concat:null,Identity:null};var fv={metadata:{description:"Returns the metadata of a runtime",params:[],type:"OpaqueMetadata"}},lv={Metadata:[{methods:{metadata_at_version:{description:"Returns the metadata at a given version.",params:[{name:"version",type:"u32"}],type:"Option"},metadata_versions:{description:"Returns the supported metadata versions.",params:[],type:"Vec"},...fv},version:2},{methods:{...fv},version:1}]};var dv={ErrorMetadataV9:{name:"Text",docs:"Vec"},EventMetadataV9:{name:"Text",args:"Vec",docs:"Vec"},FunctionArgumentMetadataV9:{name:"Text",type:"Type"},FunctionMetadataV9:{name:"Text",args:"Vec",docs:"Vec"},MetadataV9:{modules:"Vec"},ModuleConstantMetadataV9:{name:"Text",type:"Type",value:"Bytes",docs:"Vec"},ModuleMetadataV9:{name:"Text",storage:"Option",calls:"Option>",events:"Option>",constants:"Vec",errors:"Vec"},StorageEntryMetadataV9:{name:"Text",modifier:"StorageEntryModifierV9",type:"StorageEntryTypeV9",fallback:"Bytes",docs:"Vec"},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"}};var pv={ErrorMetadataV10:"ErrorMetadataV9",EventMetadataV10:"EventMetadataV9",FunctionArgumentMetadataV10:"FunctionArgumentMetadataV9",FunctionMetadataV10:"FunctionMetadataV9",MetadataV10:{modules:"Vec"},ModuleConstantMetadataV10:"ModuleConstantMetadataV9",ModuleMetadataV10:{name:"Text",storage:"Option",calls:"Option>",events:"Option>",constants:"Vec",errors:"Vec"},StorageEntryModifierV10:"StorageEntryModifierV9",StorageEntryMetadataV10:{name:"Text",modifier:"StorageEntryModifierV10",type:"StorageEntryTypeV10",fallback:"Bytes",docs:"Vec"},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"},StorageHasherV10:{_enum:{Blake2_128:null,Blake2_256:null,Blake2_128Concat:null,Twox128:null,Twox256:null,Twox64Concat:null}}};var hv={ErrorMetadataV11:"ErrorMetadataV10",EventMetadataV11:"EventMetadataV10",ExtrinsicMetadataV11:{version:"u8",signedExtensions:"Vec"},FunctionArgumentMetadataV11:"FunctionArgumentMetadataV10",FunctionMetadataV11:"FunctionMetadataV10",MetadataV11:{modules:"Vec",extrinsic:"ExtrinsicMetadataV11"},ModuleConstantMetadataV11:"ModuleConstantMetadataV10",ModuleMetadataV11:{name:"Text",storage:"Option",calls:"Option>",events:"Option>",constants:"Vec",errors:"Vec"},StorageEntryModifierV11:"StorageEntryModifierV10",StorageEntryMetadataV11:{name:"Text",modifier:"StorageEntryModifierV11",type:"StorageEntryTypeV11",fallback:"Bytes",docs:"Vec"},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"},StorageHasherV11:{_enum:uv}};var mv={ErrorMetadataV12:"ErrorMetadataV11",EventMetadataV12:"EventMetadataV11",ExtrinsicMetadataV12:"ExtrinsicMetadataV11",FunctionArgumentMetadataV12:"FunctionArgumentMetadataV11",FunctionMetadataV12:"FunctionMetadataV11",MetadataV12:{modules:"Vec",extrinsic:"ExtrinsicMetadataV12"},ModuleConstantMetadataV12:"ModuleConstantMetadataV11",ModuleMetadataV12:{name:"Text",storage:"Option",calls:"Option>",events:"Option>",constants:"Vec",errors:"Vec",index:"u8"},StorageEntryModifierV12:"StorageEntryModifierV11",StorageEntryMetadataV12:"StorageEntryMetadataV11",StorageEntryTypeV12:"StorageEntryTypeV11",StorageMetadataV12:"StorageMetadataV11",StorageHasherV12:"StorageHasherV11"};var xv={ErrorMetadataV13:"ErrorMetadataV12",EventMetadataV13:"EventMetadataV12",ExtrinsicMetadataV13:"ExtrinsicMetadataV12",FunctionArgumentMetadataV13:"FunctionArgumentMetadataV12",FunctionMetadataV13:"FunctionMetadataV12",MetadataV13:{modules:"Vec",extrinsic:"ExtrinsicMetadataV13"},ModuleConstantMetadataV13:"ModuleConstantMetadataV12",ModuleMetadataV13:{name:"Text",storage:"Option",calls:"Option>",events:"Option>",constants:"Vec",errors:"Vec",index:"u8"},StorageEntryModifierV13:"StorageEntryModifierV12",StorageEntryMetadataV13:{name:"Text",modifier:"StorageEntryModifierV13",type:"StorageEntryTypeV13",fallback:"Bytes",docs:"Vec"},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",hashers:"Vec",value:"Type"}}},StorageMetadataV13:{prefix:"Text",items:"Vec"},StorageHasherV13:"StorageHasherV12"};var Dl={name:"Text",fields:"Vec",index:"u8",docs:"Vec"},bv={Si1Field:{name:"Option",type:"Si1LookupTypeId",typeName:"Option",docs:"Vec"},Si1LookupTypeId:"Compact",Si1Path:"Si0Path",Si1Type:{path:"Si1Path",params:"Vec",def:"Si1TypeDef",docs:"Vec"},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"},Si1TypeDefPrimitive:"Si0TypeDefPrimitive",Si1TypeDefSequence:{type:"Si1LookupTypeId"},Si1TypeDefTuple:"Vec",Si1TypeParameter:{name:"Text",type:"Option"},Si1TypeDefVariant:{variants:"Vec"},Si1Variant:Dl};var yv={PortableTypeV14:{id:"Si1LookupTypeId",type:"Si1Type"},ErrorMetadataV14:{...Dl,args:"Vec"},EventMetadataV14:{...Dl,args:"Vec"},FunctionArgumentMetadataV14:{name:"Text",type:"Type",typeName:"Option"},FunctionMetadataV14:{...Dl,args:"Vec"},ExtrinsicMetadataV14:{type:"SiLookupTypeId",version:"u8",signedExtensions:"Vec"},MetadataV14:{lookup:"PortableRegistry",pallets:"Vec",extrinsic:"ExtrinsicMetadataV14",type:"SiLookupTypeId"},PalletCallMetadataV14:{type:"SiLookupTypeId"},PalletConstantMetadataV14:{name:"Text",type:"SiLookupTypeId",value:"Bytes",docs:"Vec"},PalletErrorMetadataV14:{type:"SiLookupTypeId"},PalletEventMetadataV14:{type:"SiLookupTypeId"},PalletMetadataV14:{name:"Text",storage:"Option",calls:"Option",events:"Option",constants:"Vec",errors:"Option",index:"u8"},PalletStorageMetadataV14:{prefix:"Text",items:"Vec"},SignedExtensionMetadataV14:{identifier:"Text",type:"SiLookupTypeId",additionalSigned:"SiLookupTypeId"},StorageEntryMetadataV14:{name:"Text",modifier:"StorageEntryModifierV14",type:"StorageEntryTypeV14",fallback:"Bytes",docs:"Vec"},StorageEntryModifierV14:"StorageEntryModifierV13",StorageEntryTypeV14:{_enum:{Plain:"SiLookupTypeId",Map:{hashers:"Vec",key:"SiLookupTypeId",value:"SiLookupTypeId"}}},StorageHasherV14:"StorageHasherV13"};var gv={CustomMetadata15:{map:"BTreeMap"},CustomValueMetadata15:{type:"SiLookupTypeId",value:"Bytes"},ExtrinsicMetadataV15:{version:"u8",addressType:"SiLookupTypeId",callType:"SiLookupTypeId",signatureType:"SiLookupTypeId",extraType:"SiLookupTypeId",signedExtensions:"Vec"},OuterEnums15:{callType:"SiLookupTypeId",eventType:"SiLookupTypeId",errorType:"SiLookupTypeId"},PalletMetadataV15:{name:"Text",storage:"Option",calls:"Option",events:"Option",constants:"Vec",errors:"Option",index:"u8",docs:"Vec"},RuntimeApiMetadataV15:{name:"Text",methods:"Vec",docs:"Vec"},RuntimeApiMethodMetadataV15:{name:"Text",inputs:"Vec",output:"SiLookupTypeId",docs:"Vec"},RuntimeApiMethodParamMetadataV15:{name:"Text",type:"SiLookupTypeId"},MetadataV15:{lookup:"PortableRegistry",pallets:"Vec",extrinsic:"ExtrinsicMetadataV15",type:"SiLookupTypeId",apis:"Vec",outerEnums:"OuterEnums15",custom:"CustomMetadata15"}};var wv={rpc:{},runtime:lv,types:{...dv,...pv,...hv,...mv,...xv,...yv,...gv,ErrorMetadataLatest:"ErrorMetadataV14",EventMetadataLatest:"EventMetadataV14",ExtrinsicMetadataLatest:"ExtrinsicMetadataV15",FunctionArgumentMetadataLatest:"FunctionArgumentMetadataV14",FunctionMetadataLatest:"FunctionMetadataV14",MetadataLatest:"MetadataV15",PalletCallMetadataLatest:"PalletCallMetadataV14",PalletConstantMetadataLatest:"PalletConstantMetadataV14",PalletErrorMetadataLatest:"PalletErrorMetadataV14",PalletEventMetadataLatest:"PalletEventMetadataV14",PalletMetadataLatest:"PalletMetadataV15",PalletStorageMetadataLatest:"PalletStorageMetadataV14",PortableType:"PortableTypeV14",RuntimeApiMetadataLatest:"RuntimeApiMetadataV15",SignedExtensionMetadataLatest:"SignedExtensionMetadataV14",StorageEntryMetadataLatest:"StorageEntryMetadataV14",StorageEntryModifierLatest:"StorageEntryModifierV14",StorageEntryTypeLatest:"StorageEntryTypeV14",StorageHasher:"StorageHasherV14",OpaqueMetadata:"Opaque",MetadataAll:{_enum:{V0:"DoNotConstruct",V1:"DoNotConstruct",V2:"DoNotConstruct",V3:"DoNotConstruct",V4:"DoNotConstruct",V5:"DoNotConstruct",V6:"DoNotConstruct",V7:"DoNotConstruct",V8:"DoNotConstruct",V9:"MetadataV9",V10:"MetadataV10",V11:"MetadataV11",V12:"MetadataV12",V13:"MetadataV13",V14:"MetadataV14",V15:"MetadataV15"}}}};var um={execute_block:{description:"Execute the given block.",params:[{name:"block",type:"Block"}],type:"Null"}},vv={version:{description:"Returns the version of the runtime.",params:[],type:"RuntimeVersionPre3"}},r2={initialize_block:{description:"Initialize a block with the given header.",params:[{name:"header",type:"Header"}],type:"Null"}},_v={Core:[{methods:{version:{description:"Returns the version of the runtime.",params:[],type:"RuntimeVersion"},...um,...r2},version:4},{methods:{version:{description:"Returns the version of the runtime.",params:[],type:"RuntimeVersionPre4"},...um,...r2},version:3},{methods:{...vv,...um,...r2},version:2},{methods:{initialise_block:{description:"Initialize a block with the given header.",params:[{name:"header",type:"Header"}],type:"Null"},...vv,...um},version:1}]};var mN={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>"},Sv={Council:"CollectiveOrigin",System:"SystemOrigin",TechnicalCommittee:"CollectiveOrigin",Xcm:"XcmOrigin",XcmPallet:"XcmOrigin",Authority:"AuthorityOrigin",GeneralCouncil:"CollectiveOrigin"},Tv={rpc:{},runtime:_v,types:{...mN,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"}},ConsensusEngineId:"GenericConsensusEngineId",CodecHash:"Hash",CrateVersion:{major:"u16",minor:"u8",patch:"u8"},Digest:{logs:"Vec"},DigestItem:{_enum:{Other:"Bytes",AuthoritiesChange:"Vec",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",stateRoot:"Hash",extrinsicsRoot:"Hash",digest:"Digest"},HeaderPartial:{parentHash:"Hash",number:"BlockNumber"},IndicesLookupSource:"GenericLookupSource",Index:"u32",Justification:"(ConsensusEngineId, EncodedJustification)",EncodedJustification:"Bytes",Justifications:"Vec",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",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"]},RuntimeCall:"Call",RuntimeEvent:"Event",RuntimeDbWeight:{read:"Weight",write:"Weight"},SignedBlock:"SignedBlockWithJustifications",SignedBlockWithJustification:{block:"Block",justification:"Option"},SignedBlockWithJustifications:{block:"Block",justifications:"Option"},Slot:"u64",SlotDuration:"u64",StorageData:"Bytes",StorageInfo:{palletName:"Bytes",storage_name:"Bytes",prefix:"Bytes",maxValues:"Option",maxSize:"Option"},StorageProof:{trieNodes:"Vec"},TransactionPriority:"u64",TransactionLongevity:"u64",TransactionTag:"Bytes",TransactionInfo:{_alias:{dataSize:"size"},chunkRoot:"H256",contentHash:"H256",dataSize:"u32",blockChunks:"u32"},TransactionStorageProof:{chunk:"Vec",proof:"Vec>"},ValidatorId:"AccountId",ValidatorIdOf:"ValidatorId",WeightV0:"u32",WeightV1:"u64",WeightV2:{refTime:"Compact",proofSize:"Compact"},Weight:"WeightV2",WeightMultiplier:"Fixed64",PreRuntime:"(ConsensusEngineId, Bytes)",SealV0:"(u64, Signature)",Seal:"(ConsensusEngineId, Bytes)",Consensus:"(ConsensusEngineId, Bytes)"}};var kv={Si0Field:{name:"Option",type:"Si0LookupTypeId",typeName:"Option",docs:"Vec"},Si0LookupTypeId:"u32",Si0Path:"Vec",Si0Type:{path:"Si0Path",params:"Vec",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"},Si0TypeDefPhantom:"Null",Si0TypeDefVariant:{variants:"Vec"},Si0TypeDefPrimitive:{_enum:["Bool","Char","Str","U8","U16","U32","U64","U128","U256","I8","I16","I32","I64","I128","I256"]},Si0TypeDefSequence:{type:"Si0LookupTypeId"},Si0TypeDefTuple:"Vec",Si0TypeParameter:{name:"Text",type:"Option"},Si0Variant:{name:"Text",fields:"Vec",index:"Option",discriminant:"Option",docs:"Vec"}};var Ev={rpc:{},types:{...kv,...bv,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"}};var Pv={AssetConversionApi:[{methods:{get_reserves:{description:"Get pool reserves",params:[{name:"asset1",type:"XcmV3MultiLocation"},{name:"asset2",type:"XcmV3MultiLocation"}],type:"Option<(Balance,Balance)>"},quote_price_exact_tokens_for_tokens:{description:"Quote price: exact tokens for tokens",params:[{name:"asset1",type:"XcmV3MultiLocation"},{name:"asset2",type:"XcmV3MultiLocation"},{name:"amount",type:"u128"},{name:"include_fee",type:"bool"}],type:"Option<(Balance)>"},quote_price_tokens_for_exact_tokens:{description:"Quote price: tokens for exact tokens",params:[{name:"asset1",type:"XcmV3MultiLocation"},{name:"asset2",type:"XcmV3MultiLocation"},{name:"amount",type:"u128"},{name:"include_fee",type:"bool"}],type:"Option<(Balance)>"}},version:1}]};var Mv={rpc:{},runtime:Pv,types:{TAssetConversion:"Option"}};var Av={AssetsApi:[{methods:{account_balances:{description:"Return the current set of authorities.",params:[{name:"account",type:"AccountId"}],type:"Vec<(u32, TAssetBalance)>"}},version:1}]};var Ov={rpc:{},runtime:Av,types:{AssetApprovalKey:{owner:"AccountId",delegate:"AccountId"},AssetApproval:{amount:"TAssetBalance",deposit:"TAssetDepositBalance"},AssetBalance:{balance:"TAssetBalance",isFrozen:"bool",isSufficient:"bool"},AssetDestroyWitness:{accounts:"Compact",sufficients:"Compact",approvals:"Compact"},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",symbol:"Vec",decimals:"u8",isFrozen:"bool"},TAssetBalance:"u64",TAssetDepositBalance:"BalanceOf"}};var Iv={AuraApi:[{methods:{authorities:{description:"Return the current set of authorities.",params:[],type:"Vec"},slot_duration:{description:"Returns the slot duration for Aura.",params:[],type:"SlotDuration"}},version:1}]};var Vv={rpc:{},runtime:Iv,types:{RawAuraPreDigest:{slotNumber:"u64"}}};var Nv={rpc:{},types:{UncleEntryItem:{_enum:{InclusionHeight:"BlockNumber",Uncle:"(Hash, Option)"}}}};var Cv={epochAuthorship:{description:"Returns data about which slots (primary or secondary) can be claimed in the current epoch with the keys in the keystore",isUnsafe:!0,params:[],type:"HashMap"}};var Bv={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"},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"}},Rv={BabeApi:[{methods:{configuration:{description:"Return the genesis configuration for BABE. The configuration is only read on genesis.",params:[],type:"BabeGenesisConfiguration"},...Bv},version:2},{methods:{configuration:{description:"Return the configuration for BABE. Version 1.",params:[],type:"BabeGenesisConfigurationV1"},...Bv},version:1}]};var Uv={rpc:Cv,runtime:Rv,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",MaybeVrf:"Option",Epoch:{epochIndex:"u64",startSlot:"Slot",duration:"u64",authorities:"Vec<(AuthorityId, BabeAuthorityWeight)>",randomness:"Hash",config:"BabeEpochConfiguration"},EpochAuthorship:{primary:"Vec",secondary:"Vec",secondary_vrf:"Vec"},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]"}};var Hv={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}}}};var Lv={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 its justification.",params:[],pubsub:["justifications","subscribeJustifications","unsubscribeJustifications"],type:"BeefyVersionedFinalityProof"}};var n2={beefy_genesis:{description:"Return the block number where BEEFY consensus is enabled/started",params:[],type:"Option"},generate_key_ownership_proof:{description:"Generates a proof of key ownership for the given authority in the given set.",params:[{name:"setId",type:"ValidatorSetId"},{name:"authorityId",type:"AuthorityId"}],type:"Option"},submit_report_equivocation_unsigned_extrinsic:{description:"Submits an unsigned extrinsic to report an equivocation.",params:[{name:"equivocationProof",type:"BeefyEquivocationProof"},{name:"keyOwnerProof",type:"OpaqueKeyOwnershipProof"}],type:"Option"},validator_set:{description:"Return the current active BEEFY validator set",params:[],type:"Option"}},xN={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"}},Dv={BeefyApi:[{methods:n2,version:3},{methods:n2,version:2},{methods:n2,version:1}],BeefyMmrApi:[{methods:xN,version:1}]};var zv={rpc:Lv,runtime:Dv,types:{BeefyAuthoritySet:{id:"u64",len:"u32",root:"H256"},BeefyCommitment:{payload:"BeefyPayload",blockNumber:"BlockNumber",validatorSetId:"ValidatorSetId"},BeefyId:"[u8; 33]",BeefyEquivocationProof:{first:"BeefyVoteMessage",second:"BeefyVoteMessage"},BeefyCompactSignedCommitment:{commitment:"BeefyCommitment",signaturesFrom:"Vec",validatorSetLen:"u32",signaturesCompact:"Vec"},BeefySignedCommitment:{commitment:"BeefyCommitment",signatures:"Vec>"},BeefyVersionedFinalityProof:{_enum:{V0:"Null",V1:"BeefyCompactSignedCommitment"}},BeefyNextAuthoritySet:{id:"u64",len:"u32",root:"H256"},BeefyPayload:"Vec<(BeefyPayloadId, Bytes)>",BeefyPayloadId:"[u8;2]",BeefyVoteMessage:{commitment:"BeefyCommitment",id:"AuthorityId",signature:"Signature"},MmrRootHash:"H256",ValidatorSetId:"u64",ValidatorSet:{validators:"Vec",id:"ValidatorSetId"}}};var Fv={Benchmark:[{methods:{benchmark_metadata:{description:"Get the benchmark metadata available for this runtime.",params:[{name:"extra",type:"bool"}],type:"(Vec, Vec)"},dispatch_benchmark:{description:"Dispatch the given benchmark.",params:[{name:"config",type:"BenchmarkConfig"}],type:"Result, Text>"}},version:1}]};var qv={rpc:{},runtime:Fv,types:{BenchmarkBatch:{pallet:"Text",instance:"Text",benchmark:"Text",results:"Vec"},BenchmarkConfig:{pallet:"Bytes",benchmark:"Bytes",selectedComponents:"Vec<(BenchmarkParameter, u32)>",verify:"bool",internalRepeats:"u32"},BenchmarkList:{pallet:"Bytes",instance:"Bytes",benchmarks:"Vec"},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, u32, u32, bool)>"}}};var o2={random_seed:{description:"Generate a random seed.",params:[],type:"Hash"}},Wv={apply_extrinsic:{description:"Apply the given extrinsic.",params:[{name:"extrinsic",type:"Extrinsic"}],type:"ApplyExtrinsicResultPre6"}},zl={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"}},fm={finalize_block:{description:"Finish the current block.",params:[],type:"Header"}},jv={BlockBuilder:[{methods:{apply_extrinsic:{description:"Apply the given extrinsic.",params:[{name:"extrinsic",type:"Extrinsic"}],type:"ApplyExtrinsicResult"},...zl,...fm},version:6},{methods:{...Wv,...zl,...fm},version:5},{methods:{...o2,...Wv,...zl,...fm},version:4},{methods:{...o2,...zl,...fm},version:3},{methods:{finalise_block:{description:"Finish the current block.",params:[],type:"Header"},...o2,...zl},version:2}]};var Xv={rpc:{},runtime:jv,types:{CheckInherentsResult:{okay:"bool",fatalError:"bool",errors:"InherentData"},InherentData:{data:"BTreeMap"},InherentIdentifier:"[u8; 8]"}};var Gv={rpc:{},types:{CollectiveOrigin:{_enum:{Members:"(MemberCount, MemberCount)",Member:"AccountId"}},MemberCount:"u32",ProposalIndex:"u32",VotesTo230:{index:"ProposalIndex",threshold:"MemberCount",ayes:"Vec",nays:"Vec"},Votes:{index:"ProposalIndex",threshold:"MemberCount",ayes:"Vec",nays:"Vec",end:"BlockNumber"}}};var Zv={rpc:{},types:{AuthorityId:"AccountId",RawVRFOutput:"[u8; 32]"}};var Yv={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"},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"},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"}};var Kv={get_storage:{description:"Query a given storage key in a given contract.",params:[{name:"address",type:"AccountId"},{name:"key",type:"Bytes"}],type:"Option"},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"}],type:"CodeUploadResult"}},Jv={ContractsApi:[{methods:{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"},{name:"storageDepositLimit",type:"Option"},{name:"inputData",type:"Vec"}],type:"ContractExecResult"},instantiate:{description:"Instantiate a new contract.",params:[{name:"origin",type:"AccountId"},{name:"value",type:"Balance"},{name:"gasLimit",type:"Option"},{name:"storageDepositLimit",type:"Option"},{name:"code",type:"CodeSource"},{name:"data",type:"Bytes"},{name:"salt",type:"Bytes"}],type:"ContractInstantiateResult"},...Kv},version:2},{methods:{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"},{name:"inputData",type:"Vec"}],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"},{name:"code",type:"CodeSource"},{name:"data",type:"Bytes"},{name:"salt",type:"Bytes"}],type:"ContractInstantiateResultU64"},...Kv},version:1}]};var Qv={rpc:Yv,runtime:Jv,types:{AliveContractInfo:{trieId:"TrieId",storageSize:"u32",pairCount:"u32",codeHash:"CodeHash",rentAllowance:"Balance",rentPaid:"Balance",deductBlock:"BlockNumber",lastWrite:"Option",_reserved:"Option"},CodeHash:"Hash",CodeSource:{_enum:{Upload:"Bytes",Existing:"Hash"}},CodeUploadRequest:{origin:"AccountId",code:"Bytes",storageDepositLimit:"Option"},CodeUploadResult:"Result",CodeUploadResultValue:{codeHash:"CodeHash",deposit:"Balance"},ContractCallRequest:{origin:"AccountId",dest:"AccountId",value:"Balance",gasLimit:"u64",storageDepositLimit:"Option",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",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",code:"Bytes",data:"Bytes",salt:"Bytes"},InstantiateRequest:{_fallback:"InstantiateRequestV2",origin:"AccountId",value:"Balance",gasLimit:"Gas",storageDepositLimit:"Option",code:"CodeSource",data:"Bytes",salt:"Bytes"},ContractInstantiateResultTo267:"Result",ContractInstantiateResultTo299:"Result",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"},InstantiateReturnValueOk:{result:"ExecReturnValue",accountId:"AccountId"},InstantiateReturnValue:"Result",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",initial:"Compact",maximum:"Compact",refcount:"Compact",_reserved:"Option",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"}};var bN=["None","Locked1x","Locked2x","Locked3x","Locked4x","Locked5x","Locked6x"],$v={rpc:{},types:{AccountVote:{_enum:{Standard:"AccountVoteStandard",Split:"AccountVoteSplit"}},AccountVoteSplit:{aye:"Balance",nay:"Balance"},AccountVoteStandard:{vote:"Vote",balance:"Balance"},Conviction:{_enum:bN},Delegations:{votes:"Balance",capital:"Balance"},PreimageStatus:{_enum:{Missing:"BlockNumber",Available:"PreimageStatusAvailable"}},PreimageStatusAvailable:{data:"Bytes",provider:"AccountId",deposit:"Balance",since:"BlockNumber",expiry:"Option"},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",delegations:"Delegations",prior:"PriorLock"},VotingDirectVote:"(ReferendumIndex, AccountVote)",VotingDelegating:{balance:"Balance",target:"AccountId",conviction:"Conviction",delegations:"Delegations",prior:"PriorLock"}}};var e4={getBlockStats:{description:"Reexecute the specified `block_hash` and gather statistics while doing so",isUnsafe:!0,params:[{isHistoric:!0,name:"at",type:"Hash"}],type:"Option"}};var t4={rpc:e4,types:{BlockStats:{witnessLen:"u64",witnessCompactLen:"u64",blockLen:"u64",blockNumExtrinsics:"u64"}}};var r4={AuthorityDiscoveryApi:[{methods:{authorities:{description:"Retrieve authority identifiers of the current and next authority set.",params:[],type:"Vec"}},version:1}]};var n4={rpc:{},runtime:r4,types:{}};var o4={rpc:{},types:{ApprovalFlag:"u32",DefunctVoter:{who:"AccountId",voteCount:"Compact",candidateCount:"Compact"},Renouncing:{_enum:{Member:"Null",RunnerUp:"Null",Candidate:"Compact"}},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"]}}};var i4={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"}};var a4={rpc:i4,types:{CreatedBlock:{_alias:{blockHash:"hash"},blockHash:"BlockHash",aux:"ImportedAux"},ImportedAux:{headerOnly:"bool",clearJustificationRequests:"bool",needsJustification:"bool",badJustification:"bool",needsFinalityProof:"bool",isNewBest:"bool"}}};var s4={rpc:{},types:{EvmAccount:{nonce:"u256",balance:"u256"},EvmCallInfo:{exitReason:"ExitReason",value:"Bytes",usedGas:"U256",logs:"Vec"},EvmCreateInfo:{exitReason:"ExitReason",value:"H160",usedGas:"U256",logs:"Vec"},EvmCallInfoV2:{exitReason:"ExitReason",value:"Bytes",usedGas:"U256",weightInfo:"Option",logs:"Vec"},EvmCreateInfoV2:{exitReason:"ExitReason",value:"H160",usedGas:"U256",weightInfo:"Option",logs:"Vec"},EvmLog:{address:"H160",topics:"Vec",data:"Bytes"},EvmVicinity:{gasPrice:"u256",origin:"H160"},EvmWeightInfo:{refTimeLimit:"Option",proofSizeLimit:"Option",refTimeUsage:"Option",proofSizeUsage:"Option"},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"]}}};var c4={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"}};var u4={FungiblesApi:[{methods:{query_account_balances:{description:"Returns the list of all `MultiAsset` that an `AccountId` has",params:[{name:"account",type:"AccountId"}],type:"Result, FungiblesAccessError>"}},version:1},{methods:{query_account_balances:{description:"Returns the list of all `MultiAsset` that an `AccountId` has",params:[{name:"account",type:"AccountId"}],type:"Result"}},version:2}]};var f4={rpc:{},runtime:u4,types:{FungiblesAccessError:{_enum:["AssetIdConversionFailed","AmountToBalanceConversionFailed"]}}};var l4={rpc:{},types:{AssetOptions:{initalIssuance:"Compact",permissions:"PermissionLatest"},Owner:{_enum:{None:"Null",Address:"AccountId"}},PermissionsV1:{update:"Owner",mint:"Owner",burn:"Owner"},PermissionVersions:{_enum:{V1:"PermissionsV1"}},PermissionLatest:"PermissionsV1"}};var d4={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"}}};var p4={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"},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"}};var h4={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"},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"}},m4={GrandpaApi:[{methods:{current_set_id:{description:"Get current GRANDPA authority set id.",params:[],type:"SetId"},...h4},version:3},{methods:h4,version:2}]};var x4={rpc:p4,runtime:m4,types:{AuthorityIndex:"u64",AuthorityList:"Vec",AuthoritySet:{currentAuthorities:"AuthorityList",setId:"u64",pendingStandardChanges:"ForkTreePendingChange",pendingForcedChanges:"Vec",authoritySetChanges:"AuthoritySetChanges"},ForkTreePendingChange:{roots:"Vec",bestFinalizedNumber:"Option"},ForkTreePendingChangeNode:{hash:"BlockHash",number:"BlockNumber",data:"PendingChange",children:"Vec"},AuthoritySetChange:"(U64, BlockNumber)",AuthoritySetChanges:"Vec",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"},GrandpaPrecommit:{targetHash:"BlockHash",targetNumber:"BlockNumber"},GrandpaSignedPrecommit:{precommit:"GrandpaPrecommit",signature:"AuthoritySignature",id:"AuthorityId"},GrandpaJustification:{round:"u64",commit:"GrandpaCommit",votesAncestries:"Vec
"},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"},Prevotes:{currentWeight:"u32",missing:"BTreeSet"},ReportedRoundStates:{setId:"u32",best:"RoundState",background:"Vec"},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"}}}};var b4={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",display:"Data",legal:"Data",web:"Data",riot:"Data",email:"Data",pgpFingerprint:"Option",image:"Data"},IdentityInfo:{_fallback:"IdentityInfoTo198",additional:"Vec",display:"Data",legal:"Data",web:"Data",riot:"Data",email:"Data",pgpFingerprint:"Option",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",deposit:"Balance",info:"IdentityInfoTo198"},Registration:{_fallback:"RegistrationTo198",judgements:"Vec",deposit:"Balance",info:"IdentityInfo"},RegistrarIndex:"u32",RegistrarInfo:{account:"AccountId",fee:"Balance",fields:"IdentityFields"}}};var y4={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",OpaquePeerId:"Opaque",OpaqueNetworkState:{peerId:"OpaquePeerId",externalAddresses:"Vec"}}};var g4={rpc:{},types:{CallIndex:"(u8, u8)",LotteryConfig:{price:"Balance",start:"BlockNumber",length:"BlockNumber",delay:"BlockNumber",repeat:"bool"}}};var w4={generateProof:{description:"Generate MMR proof for the given block numbers.",params:[{name:"blockNumbers",type:"Vec"},{isOptional:!0,name:"bestKnownBlockNumber",type:"u64"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"MmrLeafBatchProof"},root:{description:"Get the MMR root hash for the current best block.",params:[{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"MmrHash"},verifyProof:{description:"Verify an MMR proof",params:[{name:"proof",type:"MmrLeafBatchProof"}],type:"bool"},verifyProofStateless:{description:"Verify an MMR proof statelessly given an mmr_root",params:[{name:"root",type:"MmrHash"},{name:"proof",type:"MmrLeafBatchProof"}],type:"bool"}};var yN={generate_proof:{description:"Generate MMR proof for the given block numbers.",params:[{name:"blockNumbers",type:"Vec"},{name:"bestKnownBlockNumber",type:"Option"}],type:"Result<(Vec, MmrBatchProof), MmrError>"},root:{description:"Return the on-chain MMR root hash.",params:[],type:"Result"},verify_proof:{description:"Verify MMR proof against on-chain MMR.",params:[{name:"leaves",type:"Vec"},{name:"proof",type:"MmrBatchProof"}],type:"Result<(), MmrError>"},verify_proof_stateless:{description:"Verify MMR proof against given root hash.",params:[{name:"root",type:"Hash"},{name:"leaves",type:"Vec"},{name:"proof",type:"MmrBatchProof"}],type:"Result<(), MmrError>"}},gN={generate_batch_proof:{description:"Generate MMR proof for a series of leaves under given indices.",params:[{name:"leafIndices",type:"Vec"}],type:"Result<(Vec, 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"},verify_batch_proof:{description:"Verify MMR proof against on-chain MMR for a batch of leaves.",params:[{name:"leaves",type:"Vec"},{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"},{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>"}},v4={MmrApi:[{methods:yN,version:2},{methods:gN,version:1}]};var _4={rpc:w4,runtime:v4,types:{MmrBatchProof:{leafIndices:"Vec",leafCount:"MmrNodeIndex",items:"Vec"},MmrEncodableOpaqueLeaf:"Bytes",MmrError:{_enum:["Push","GetRoot","Commit","GenerateProof","Verify","LeafNotFound"," PalletNotIncluded","InvalidLeafIndex"]},MmrHash:"Hash",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"}}};var S4={NftsApi:[{methods:{attribute:{description:"An attribute",params:[{name:"collection",type:"NftCollectionId"},{name:"item",type:"NftItemId"},{name:"key",type:"Bytes"}],type:"Option"},collection_attribute:{description:"A collection attribute",params:[{name:"collection",type:"NftCollectionId"},{name:"key",type:"Bytes"}],type:"Option"},collection_owner:{description:"A collection owner",params:[{name:"collection",type:"NftCollectionId"}],type:"Option"},custom_attribute:{description:"A custom attribute",params:[{name:"account",type:"AccountId"},{name:"collection",type:"NftCollectionId"},{name:"item",type:"NftItemId"},{name:"key",type:"Bytes"}],type:"Option"},owner:{description:"Collection owner",params:[{name:"collection",type:"NftCollectionId"},{name:"item",type:"NftItemId"}],type:"Option"},system_attribute:{description:"System attribute",params:[{name:"collection",type:"NftCollectionId"},{name:"item",type:"NftItemId"},{name:"key",type:"Bytes"}],type:"Option"}},version:1}]};var T4={rpc:{},runtime:S4,types:{NftCollectionId:"u32",NftItemId:"u32"}};var k4={NominationPoolsApi:[{methods:{balance_to_points:{description:"Returns the equivalent points of `new_funds` for a given pool.",params:[{name:"poolId",type:"NpPoolId"},{name:"newFunds",type:"Balance"}],type:"Balance"},pending_rewards:{description:"Returns the pending rewards for the given member.",params:[{name:"member",type:"AccountId"}],type:"Balance"},points_to_balance:{description:"Returns the equivalent balance of `points` for a given pool.",params:[{name:"poolId",type:"NpPoolId"},{name:"points",type:"Balance"}],type:"Balance"}},version:1}]};var E4={rpc:{},runtime:k4,types:{NpApiError:{_enum:["MemberNotFound","OverflowInPendingRewards"]},NpPoolId:"u32"}};var P4={rpc:{},types:{DeferredOffenceOf:"(Vec, Vec, SessionIndex)",Kind:"[u8; 16]",OffenceDetails:{offender:"Offender",reporters:"Vec"},Offender:"IdentificationTuple",OpaqueTimeSlot:"Bytes",ReportIdOf:"Hash",Reporter:"AccountId"}};var M4={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}]};var A4={rpc:{},runtime:M4,types:{}};var O4={rpc:{},types:{ProxyDefinition:{delegate:"AccountId",proxyType:"ProxyType",delay:"BlockNumber"},ProxyType:{_enum:["Any","NonTransfer","Governance","Staking"]},ProxyAnnouncement:{real:"AccountId",callHash:"Hash",height:"BlockNumber"}}};var I4={rpc:{},types:{ActiveRecovery:{created:"BlockNumber",deposit:"Balance",friends:"Vec"},RecoveryConfig:{delayPeriod:"BlockNumber",deposit:"Balance",friends:"Vec",threshold:"u16"}}};var V4={rpc:{},types:{Period:"(BlockNumber, u32)",Priority:"u8",SchedulePeriod:"Period",SchedulePriority:"Priority",Scheduled:{maybeId:"Option",priority:"SchedulePriority",call:"Call",maybePeriodic:"Option",origin:"PalletsOrigin"},ScheduledTo254:{maybeId:"Option",priority:"SchedulePriority",call:"Call",maybePeriodic:"Option"},TaskAddress:"(BlockNumber, u32)"}};var N4={SessionKeys:[{methods:{decode_session_keys:{description:"Decode the given public session keys.",params:[{name:"encoded",type:"Bytes"}],type:"Option>"},generate_session_keys:{description:"Generate a set of session keys with optionally using the given seed.",params:[{name:"seed",type:"Option"}],type:"Bytes"}},version:1}]};var wN={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)"},C4={rpc:{},runtime:N4,types:{...wN,FullIdentification:"Exposure",IdentificationTuple:"(ValidatorId, FullIdentification)",MembershipProof:{session:"SessionIndex",trieNodes:"Vec",validatorCount:"ValidatorCount"},SessionIndex:"u32",ValidatorCount:"u32"}};var B4={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"]}}};var R4={StakingApi:[{methods:{nominations_quota:{description:"Returns the nominations quota for a nominator with a given balance.",params:[{name:"balance",type:"Balance"}],type:"u32"}},version:1}]};var vN={Points:"u32",EraPoints:{total:"Points",individual:"Vec"}},_N={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",exposures:"Vec<(AccountId, Exposure)>"},ElectionScore:"[u128; 3]",ElectionSize:{validators:"Compact",nominators:"Compact"},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)>",targets:"Vec"},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",targets:"Compact"},SolutionSupport:{total:"ExtendedBalance",voters:"Vec<(AccountId, ExtendedBalance)>"},SolutionSupports:"Vec<(AccountId, SolutionSupport)>",Supports:"SolutionSupports",SubmissionIndicesOf:"BTreeMap",Voter:{votes:"Vec",stake:"Balance",deposit:"Balance"},VoteWeight:"u64"},U4={rpc:{},runtime:R4,types:{...vN,..._N,ActiveEraInfo:{index:"EraIndex",start:"Option"},EraIndex:"u32",EraRewardPoints:{total:"RewardPoint",individual:"BTreeMap"},EraRewards:{total:"u32",rewards:"Vec"},Exposure:{total:"Compact",own:"Compact",others:"Vec"},Forcing:{_enum:["NotForcing","ForceNew","ForceNone","ForceAlways"]},IndividualExposure:{who:"AccountId",value:"Compact"},KeyType:"AccountId",MomentOf:"Moment",Nominations:{targets:"Vec",submittedIn:"EraIndex",suppressed:"bool"},NominatorIndex:"u32",NominatorIndexCompact:"Compact",OffchainAccuracy:"PerU16",OffchainAccuracyCompact:"Compact",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"},SlashingSpans:{spanIndex:"SpanIndex",lastStart:"EraIndex",lastNonzeroSlash:"EraIndex",prior:"Vec"},SpanIndex:"u32",SpanRecord:{slashed:"Balance",paidOut:"Balance"},StakingLedgerTo223:{stash:"AccountId",total:"Compact",active:"Compact",unlocking:"Vec"},StakingLedgerTo240:{_fallback:"StakingLedgerTo223",stash:"AccountId",total:"Compact",active:"Compact",unlocking:"Vec",lastReward:"Option"},StakingLedger:{stash:"AccountId",total:"Compact",active:"Compact",unlocking:"Vec",claimedRewards:"Vec"},UnappliedSlashOther:"(AccountId, Balance)",UnappliedSlash:{validator:"AccountId",own:"Balance",others:"Vec",reporters:"Vec",payout:"Balance"},UnlockChunk:{value:"Compact",era:"Compact"},ValidatorIndex:"u16",ValidatorIndexCompact:"Compact",ValidatorPrefs:"ValidatorPrefsWithBlocked",ValidatorPrefsWithCommission:{commission:"Compact"},ValidatorPrefsWithBlocked:{commission:"Compact",blocked:"bool"},ValidatorPrefsTo196:{validatorPayment:"Compact"},ValidatorPrefsTo145:{unstakeThreshold:"Compact",validatorPayment:"Compact"}}};var H4={rpc:{},types:{WeightToFeeCoefficient:{coeffInteger:"Balance",coeffFrac:"Perbill",negative:"bool",degree:"u8"}}};var L4={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"}};var D4={rpc:L4,types:{}};var z4={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",isUnsafe:!0,params:[{name:"directives",type:"Text"}],type:"Null"},addReservedPeer:{description:"Adds a reserved peer",isUnsafe:!0,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",isUnsafe:!0,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"},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",isUnsafe:!0,params:[],type:"NetworkState"},nodeRoles:{description:"Returns the roles the node is running as",params:[],type:"Vec"},peers:{description:"Returns the currently connected peers",isUnsafe:!0,params:[],type:"Vec"},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",isUnsafe:!0,params:[{name:"peerId",type:"Text"}],type:"Text"},reservedPeers:{description:"Returns the list of reserved peers",params:[],type:"Vec"},resetLogFilter:{description:"Resets the log filter to Substrate defaults",isUnsafe:!0,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"}};var F4={AccountNonceApi:[{methods:{account_nonce:{description:"The API to query account nonce (aka transaction index)",params:[{name:"accountId",type:"AccountId"}],type:"Index"}},version:1}]};var q4={rpc:z4,runtime:F4,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",ApplyExtrinsicResultPre6:"Result",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",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"},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",specName:"Text"},NetworkState:{peerId:"Text",listenedAddresses:"Vec",externalAddresses:"Vec",connectedPeers:"HashMap",notConnectedPeers:"HashMap",averageDownloadPerSec:"u64",averageUploadPerSec:"u64",peerset:"NetworkStatePeerset"},NetworkStatePeerset:{messageQueue:"u64",nodes:"HashMap"},NetworkStatePeersetInfo:{connected:"bool",reputation:"i32"},NodeRole:{_enum:{Full:"Null",LightClient:"Null",Authority:"Null",UnknownRole:"u8"}},NotConnectedPeer:{knownAddresses:"Vec",latestPingTime:"Option",versionString:"Option"},Peer:{enabled:"bool",endpoint:"PeerEndpoint",knownAddresses:"Vec",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"},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",maxTotal:"Option",reserved:"Option"}}};var W4={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",tips:"Vec",findersFee:"bool"},OpenTipTo225:{reason:"Hash",who:"AccountId",finder:"Option",closes:"Option",tips:"Vec"},OpenTipFinderTo225:"(AccountId, Balance)",OpenTipTip:"(AccountId, Balance)",TreasuryProposal:{proposer:"AccountId",value:"Balance",beneficiary:"AccountId",bond:"Balance"}}};var j4={rpc:{},types:{Multiplier:"Fixed128"}};var X4={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}]};var G4={rpc:{},runtime:X4,types:{TransactionSource:{_enum:["InBlock","Local","External"]},TransactionValidity:"Result",ValidTransaction:{priority:"TransactionPriority",requires:"Vec",provides:"Vec",longevity:"TransactionLongevity",propagate:"bool"}}};var Z4={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",instanceMetadatas:"Compact",attributes:"Compact"},InstanceDetails:{owner:"AccountId",approved:"Option",isFrozen:"bool",deposit:"DepositBalance"},ClassMetadata:{deposit:"DepositBalance",data:"Vec",isFrozen:"bool"},InstanceMetadata:{deposit:"DepositBalance",data:"Vec",isFrozen:"bool"}}};var Y4={rpc:{},types:{Multisig:{when:"Timepoint",deposit:"Balance",depositor:"AccountId",approvals:"Vec"},Timepoint:{height:"BlockNumber",index:"u32"}}};var K4={rpc:{},types:{VestingInfo:{locked:"Balance",perBlock:"Balance",startingBlock:"BlockNumber"}}};var J4={rpc:{},types:{BlockAttestations:{receipt:"CandidateReceipt",valid:"Vec",invalid:"Vec"},IncludedBlocks:{actualNumber:"BlockNumber",session:"SessionIndex",randomSeed:"H256",activeParachains:"Vec",paraBlocks:"Vec"},MoreAttestations:{}}};var Q4={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",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",lane:"LaneId"},MessageKey:{laneId:"LaneId",nonce:"MessageNonce"},MessageNonce:"u64",MessagesProofOf:{bridgedHeaderHash:"BridgedBlockHash",storageProof:"Vec",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"}}};var $4={rpc:{},types:{StatementKind:{_enum:["Regular","Saft"]}}};var e7={rpc:{},types:{FundIndex:"u32",LastContribution:{_enum:{Never:"Null",PreEnding:"u32",Ending:"BlockNumber"}},FundInfo:{depositor:"AccountId",verifier:"Option",deposit:"Balance",raised:"Balance",end:"BlockNumber",cap:"Balance",lastContribution:"LastContribution",firstPeriod:"LeasePeriod",lastPeriod:"LeasePeriod",trieIndex:"TrieIndex"},TrieIndex:"u32"}};var t7={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}]};var SN={CollationInfo:{upwardMessages:"Vec",horizontalMessages:"Vec",newValidationCode:"Option",processedDownwardMessages:"u32",hrmpWatermark:"RelayBlockNumber",headData:"HeadData"},CollationInfoV1:{upwardMessages:"Vec",horizontalMessages:"Vec",newValidationCode:"Option",processedDownwardMessages:"u32",hrmpWatermark:"RelayBlockNumber"},ConfigData:{maxIndividual:"Weight"},MessageId:"[u8; 32]",OverweightIndex:"u64",PageCounter:"u32",PageIndexData:{beginUsed:"PageCounter",endUsed:"PageCounter",overweightCount:"OverweightIndex"}},r7={rpc:{},runtime:t7,types:SN};var lm={methods:{best_finalized:{description:"Returns number and hash of the best finalized header known to the bridge module.",params:[],type:"(BlockNumber, Hash)"}},version:1},n7={KusamaFinalityApi:[lm],PolkadotFinalityApi:[lm],RococoFinalityApi:[lm],WestendFinalityApi:[lm]};var o7={rpc:{},runtime:n7,types:{}};var i7={HrmpChannel:{maxCapacity:"u32",maxTotalSize:"u32",maxMessageSize:"u32",msgCount:"u32",totalSize:"u32",mqcHead:"Option",senderDeposit:"Balance",recipientDeposit:"Balance"},HrmpChannelId:{sender:"u32",receiver:"u32"},HrmpOpenChannelRequest:{confirmed:"bool",age:"SessionIndex",senderDeposit:"Balance",maxMessageSize:"u32",maxCapacity:"u32",maxTotalSize:"u32"}};var Fl={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"},candidate_events:{description:"Get a vector of events concerning candidates that occurred within a block.",params:[],type:"Vec"},candidate_pending_availability:{description:"Get the receipt of a candidate pending availability.",params:[{name:"paraId",type:"ParaId"}],type:"Option"},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"},inbound_hrmp_channels_contents:{description:"Get the contents of all channels addressed to the given recipient.",params:[{name:"paraId",type:"ParaId"}],type:"Vec"},on_chain_votes:{description:"Scrape dispute relevant from on-chain, backing votes and resolved disputes.",params:[],type:"Option"},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"},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"},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>, GroupRotationInfo)"},validators:{description:"Get the current validators.",params:[],type:"Vec"}},dm={pvfs_require_precheck:{description:"Returns code hashes of PVFs that require pre-checking by validators in the active set.",params:[],type:"Vec"},session_info:{description:"Get the session info for the given session, if stored.",params:[{name:"index",type:"SessionIndex"}],type:"Option"},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"}},i2={disputes:{description:"Returns all onchain disputes.",params:[],type:"Vec<(SessionIndex, CandidateHash, DisputeState)>"}},a7={session_executor_params:{description:"Returns execution parameters for the session.",params:[{name:"sessionIndex",type:"SessionIndex"}],type:"Option"}},TN={key_ownership_proof:{description:"Returns a merkle proof of a validator session key",params:[{name:"validatorId",type:"ValidatorId"}],type:"Option"},submit_report_dispute_lost:{description:"Submit an unsigned extrinsic to slash validators who lost a dispute about a candidate of a past session",params:[{name:"disputeProof",type:"DisputeProof"},{name:"keyOwnershipProof",type:"OpaqueKeyOwnershipProof"}],type:"Option"},unapplied_slashes:{description:"Returns a list of validators that lost a past session dispute and need to be slashed",params:[],type:"Vec<(SessionIndex, CandidateHash, PendingSlashes)>"}},s7={ParachainHost:[{methods:{...Fl,...dm,...i2,...a7,...TN},version:5},{methods:{...Fl,...dm,...i2,...a7},version:4},{methods:{...Fl,...dm,...i2},version:3},{methods:{...Fl,...dm},version:2},{methods:{session_info:{description:"Get the session info for the given session, if stored.",params:[{name:"index",type:"SessionIndex"}],type:"Option"},...Fl},version:1}]};var c7={_enum:["ZeroZero","ZeroOne","ZeroTwo","ZeroThree","OneOne","OneTwo","OneThree","TwoTwo","TwoThree","ThreeThree"]},u7={_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"]},kN={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"},f7={...kN,AuctionIndex:"u32",LeasePeriod:"BlockNumber",LeasePeriodOf:"BlockNumber",SlotRange10:c7,SlotRange:u7,WinningData10:`[WinningDataEntry; ${c7._enum.length}]`,WinningData:`[WinningDataEntry; ${u7._enum.length}]`,WinningDataEntry:"Option<(AccountId, ParaId, BalanceOf)>",WinnersData10:"Vec",WinnersData:"Vec",WinnersDataTuple10:"(AccountId, ParaId, BalanceOf, SlotRange10)",WinnersDataTuple:"(AccountId, ParaId, BalanceOf, SlotRange)"};var EN={ParachainProposal:{proposer:"AccountId",genesisHead:"HeadData",validators:"Vec",name:"Bytes",balance:"Balance"},RegisteredParachainInfo:{validators:"Vec",proposer:"AccountId"}},PN={ServiceQuality:{_enum:["Ordered","Fast"]}},MN={DisputeLocation:{_enum:["Local","Remote"]},DisputeResult:{_enum:["Valid","Invalid"]},DisputeState:{validatorsFor:"BitVec",validatorsAgainst:"BitVec",start:"BlockNumber",concludedAt:"Option"},DisputeStatement:{_enum:{Valid:"ValidDisputeStatementKind",Invalid:"InvalidDisputeStatementKind"}},DisputeStatementSet:{candidateHash:"CandidateHash",session:"SessionIndex",statements:"Vec<(DisputeStatement, ParaValidatorIndex, ValidatorSignature)>"},ExecutorParam:{_enum:{Phantom:"Null",MaxMemoryPages:"u32",StackLogicalMax:"u32",StackNativeMax:"u32",PrecheckingMaxMemory:"u64",PvfPrepTimeout:"(PvfPrepTimeoutKind, u64)",PvfExecTimeout:"(PvfExecTimeoutKind, u64)"}},ExecutorParamsHash:"Hash",ExecutorParams:"Vec",ExplicitDisputeStatement:{valid:"bool",candidateHash:"CandidateHash",session:"SessionIndex"},InvalidDisputeStatementKind:{_enum:["Explicit"]},MultiDisputeStatementSet:"Vec",PvfExecTimeoutKind:{_enum:["Backing","Approval"]},PvfPrepTimeoutKind:{_enum:["Precheck","Lenient"]},ValidDisputeStatementKind:{_enum:{Explicit:"Null",BackingSeconded:"Hash",BackingValid:"Hash",ApprovalChecking:"Null"}}},l7={rpc:{},runtime:s7,types:{...PN,...MN,...i7,...EN,...f7,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"},AssignmentId:"AccountId",AssignmentKind:{_enum:{Parachain:"Null",Parathread:"(CollatorId, u32)"}},AttestedCandidate:{candidate:"AbridgedCandidateReceipt",validityVotes:"Vec",validatorIndices:"BitVec"},AuthorityDiscoveryId:"AccountId",AvailabilityBitfield:"BitVec",AvailabilityBitfieldRecord:{bitfield:"AvailabilityBitfield",submittedTt:"BlockNumber"},BackedCandidate:{candidate:"CommittedCandidateReceipt",validityVotes:"Vec",validatorIndices:"BitVec"},BufferedSessionChange:{applyAt:"BlockNumber",validators:"Vec",queued:"Vec",sessionIndex:"SessionIndex"},CandidateCommitments:{upwardMessages:"Vec",horizontalMessages:"Vec",newValidationCode:"Option",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"}},DisputeProof:{timeSlot:"DisputesTimeSlot",kind:"SlashingOffenceKind",validatorIndex:"ValidatorIndex",validatorId:"ValidatorId"},DisputesTimeSlot:{sessionIndex:"SessionIndex",candidateHash:"CandidateHash"},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",maxValidators:"Option",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",LocalValidationData:{parentHead:"HeadData",balance:"Balance",codeUpgradeAllowed:"Option"},MessageIngestionType:{downwardMessages:"Vec",horizontalMessages:"BTreeMap"},MessageQueueChain:"RelayChainHash",OccupiedCore:{nextUpOnAvailable:"Option",occupiedSince:"BlockNumber",timeOutAt:"BlockNumber",nextUpOnTimeOut:"Option",availability:"BitVec",groupResponsible:"GroupIndex",candidateHash:"CandidateHash",candidateDescriptor:"CandidateDescriptor"},OccupiedCoreAssumption:{_enum:["Included,","TimedOut","Free"]},OutboundHrmpMessage:{recipient:"u32",data:"Bytes"},PendingSlashes:{_alias:{slashKeys:"keys"},slashKeys:"BTreeMap",kind:"SlashingOffenceKind"},ParachainDispatchOrigin:{_enum:["Signed","Parachain","Root"]},ParachainInherentData:{validationData:"PersistedValidationData",relayChainState:"StorageProof",downwardMessages:"Vec",horizontalMessages:"BTreeMap"},ParachainsInherentData:{bitfields:"SignedAvailabilityBitfields",backedCandidates:"Vec",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",lastPruned:"Option"},ParaScheduling:{_enum:["Always","Dynamic"]},ParathreadClaim:"(ParaId, CollatorId)",ParathreadClaimQueue:{queue:"Vec",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"},Scheduling:{_enum:["Always","Dynamic"]},ScrapedOnChainVotes:{session:"SessionIndex",backingValidatorsPerCandidate:"Vec<(CandidateReceipt, Vec<(ParaValidatorIndex, ValidityAttestation)>)>",disputes:"MultiDisputeStatementSet"},SessionInfo:{activeValidatorIndices:"Vec",randomSeed:"[u8; 32]",disputePeriod:"SessionIndex",validators:"Vec",discoveryKeys:"Vec",assignmentKeys:"Vec",validatorGroups:"Vec>",nCores:"u32",zerothDelayTrancheWidth:"u32",relayVrfModuloSamples:"u32",nDelayTranches:"u32",noShowSlots:"u32",neededApprovals:"u32"},OldV1SessionInfo:{validators:"Vec",discoveryKeys:"Vec",assignmentKeys:"Vec",validatorGroups:"Vec>",nCores:"u32",zerothDelayTrancheWidth:"u32",relayVrfModuloSamples:"u32",nDelayTranches:"u32",noShowSlots:"u32",neededApprovals:"u32"},SessionInfoValidatorGroup:"Vec",SignedAvailabilityBitfield:{payload:"BitVec",validatorIndex:"ParaValidatorIndex",signature:"ValidatorSignature"},SignedAvailabilityBitfields:"Vec",SigningContext:{sessionIndex:"SessionIndex",parentHash:"Hash"},SlashingOffenceKind:{_enum:["ForInvalid","AgainstValid"]},Statement:{_enum:{Never:"Null",Candidate:"Hash",Valid:"Hash",Invalid:"Hash"}},TransientValidationData:{maxCodeSize:"u32",maxHeadDataSize:"u32",balance:"Balance",codeUpgradeAllowed:"Option",dmqLength:"u32"},UpgradeGoAhead:{_enum:["Abort","GoAhead"]},UpgradeRestriction:{_enum:["Present"]},UpwardMessage:"Bytes",ValidationFunctionParams:{maxCodeSize:"u32",relayChainHeight:"RelayChainBlockNumber",codeUpgradeAllowed:"Option"},ValidationCode:"Bytes",ValidationCodeHash:"Hash",ValidationData:{persisted:"PersistedValidationData",transient:"TransientValidationData"},ValidationDataType:{validationData:"ValidationData",relayChainState:"Vec"},ValidatorSignature:"Signature",ValidityAttestation:{_enum:{Never:"Null",Implicit:"ValidatorSignature",Explicit:"ValidatorSignature"}},MessagingStateSnapshot:{relayDispatchQueueSize:"(u32, u32)",egressChannels:"Vec"},MessagingStateSnapshotEgressEntry:"(ParaId, AbridgedHrmpChannel)",SystemInherentData:"ParachainInherentData",VecInboundHrmpMessage:"Vec"}};var d7={rpc:{},types:{Approvals:"[bool; 4]"}};var p7={rpc:{},types:{AccountStatus:{validity:"AccountValidity",freeBalance:"Balance",lockedBalance:"Balance",signature:"Vec",vat:"Permill"},AccountValidity:{_enum:["Invalid","Initiated","Pending","ValidLow","ValidHigh","Completed"]}}};var Q;(function(t){t[t.BTreeMap=0]="BTreeMap",t[t.BTreeSet=1]="BTreeSet",t[t.Compact=2]="Compact",t[t.DoNotConstruct=3]="DoNotConstruct",t[t.Enum=4]="Enum",t[t.HashMap=5]="HashMap",t[t.Int=6]="Int",t[t.Linkage=7]="Linkage",t[t.Null=8]="Null",t[t.Option=9]="Option",t[t.Plain=10]="Plain",t[t.Range=11]="Range",t[t.RangeInclusive=12]="RangeInclusive",t[t.Result=13]="Result",t[t.Set=14]="Set",t[t.Si=15]="Si",t[t.Struct=16]="Struct",t[t.Tuple=17]="Tuple",t[t.UInt=18]="UInt",t[t.Vec=19]="Vec",t[t.VecFixed=20]="VecFixed",t[t.WrapperKeepOpaque=21]="WrapperKeepOpaque",t[t.WrapperOpaque=22]="WrapperOpaque"})(Q||(Q={}));function pm(t){return we(t.eq)}function ql(t,e){return Array.isArray(e)?t.length===e.length&&Qe(t.find((r,n)=>pm(r)?!r.eq(e[n]):r!==e[n])):!1}var Ni=class extends Array{registry;createdAtHash;initialU8aLength;isStorageFallback;static get[Symbol.species](){return Array}constructor(e,r){super(r),this.registry=e}get encodedLength(){let e=this.length,r=Ot(e).length;for(let n=0;nNumber.MAX_SAFE_INTEGER||ts)throw new Error(`${this.toRawType()}: Input too large. Found input with ${super.bitLength()} bits, expected ${s}`)}get hash(){return this.registry.hash(this.toU8a())}get isEmpty(){return this.isZero()}bitLength(){return this.__internal__bitLength}eq(e){return super.eq(Ae(e)?Au(e.toString(),{isLe:!1,isNegative:!this.isUnsigned}):Dt(e))}inspect(){return{outer:[this.toU8a()]}}isMax(){return this.toU8a().filter(r=>r===255).length===this.__internal__bitLength/8}toBigInt(){return BigInt(this.toString())}toBn(){return this}toHex(e=!1){return Kb(this,{bitLength:this.bitLength(),isLe:e,isNegative:!this.isUnsigned})}toHuman(e){let r=this.toRawType();if(r==="Balance")return this.isMax()?"everything":Ti(this,{decimals:this.registry.chainDecimals[0],withSi:!0,withUnit:this.registry.chainTokens[0]});let[,n]=IN.find(([o])=>o===r)||[];return n?NN(this,n):Vu(this)}toJSON(e=!1){return e||this.__internal__bitLength>128||super.bitLength()>h7?this.toHex():this.toNumber()}toPrimitive(){return super.bitLength()>h7?this.toString():this.toNumber()}toRawType(){return this instanceof this.registry.createClassUnsafe("Balance")?"Balance":`${this.isUnsigned?"u":"i"}${this.bitLength()}`}toString(e){return super.toString(e)}toU8a(e){return $t(this,{bitLength:this.bitLength(),isLe:!0,isNegative:!this.isUnsigned})}};function CN(t,e){return Qe(t)||(pm(t)?!t.eq(e):t!==e)}function BN(t){return!Array.isArray(t)||t.length!==2}function a2(t,e){return t.size===e.length&&!e.some(r=>BN(r)||CN(t.get(r[0]),r[1]))}function yc(t,e){return Array.isArray(e)?a2(t,e):e instanceof Map?a2(t,[...e.entries()]):Sr(e)?a2(t,Object.entries(e)):!1}function s2(t,e){return t.size===e.length&&!e.some(r=>!t.has(r))}function c2(t,e){return Array.isArray(e)?s2(t,e):e instanceof Set?s2(t,[...e.values()]):Sr(e)?s2(t,Object.values(e)):!1}function u2(t,e,r,{message:n},o,a,s,u,l){let h="";try{h=`: ${new u(t).toRawType()}`}catch{}return`${e}: failed at ${Te(o.subarray(0,16))}\u2026${l?` on ${l}`:""} (index ${a+1}/${s})${h}:: ${n}`}function tf(t,e,r,[n,o]){let a=e.length,s=0,u=0;try{for(;u::Inherent","InherentOfflineReport",!1),Ci("VecDeque<","Vec<",!1),HN(),b7("Bounded",!0),b7("Weak",!1),qN(),FN(),WN("Box<"),zN(),Ci("String","Text"),Ci("Vec","Bytes"),Ci("&\\[u8\\]","Bytes"),Ci("&'static\\[u8\\]","Bytes"),Ci("RawAddress","Address"),Ci("Lookup::Source","LookupSource"),Ci("Lookup::Target","LookupTarget"),Ci("exec::StorageKey","ContractStorageKey"),LN(),DN(),UN()];function UN(){return t=>t.trim()}function d2(t,e){let r=0;for(let n=e,o=t.length;n"){if(!r)return n;r--}else t[n]==="<"&&r++;throw new Error(`Unable to find closing matching <> on '${t}' (start ${e})`)}function Ci(t,e,r=!0){let n=new RegExp(`(^${t}|${hm.map(a=>`\\${a}${t}`).join("|")})`,"g"),o=a=>(n.lastIndex=0,r&&hm.includes(a[0])?`${a[0]}${e}`:e);return a=>a.replace(n,o)}function HN(){return t=>{if(t.includes(" as HasCompact")){for(let e=0,r=t.length;e`)}}return t}}function LN(){let t=/,\)/g,e=/\(([^,]+)\)/;return r=>(t.lastIndex=0,r.replace(t,")").replace(e,"$1"))}function p2(t,e,r){let n=-1;for(;;){if(n=t.indexOf(e,n+1),n===-1)return t;let o=n+e.length,a=d2(t,o);t=`${t.substring(0,n)}${r(t.substring(o,a))}${t.substring(a+1)}`}}function b7(t,e){return r=>{for(let n=0,o=l2.length;n{let u=s.split(",").map(l=>l.trim()).filter(l=>l);return e&&u.pop(),`${a}<${u.join(",")}>`})}return r}}function DN(){return t=>{let e=0;for(;e!==-1;)if(e=t.indexOf("::"),e===0)t=t.substring(2);else if(e!==-1){let r=e;for(;r!==-1&&!hm.includes(t[r]);)r--;t=`${t.substring(0,r+1)}${t.substring(e+2)}`}return t}}function zN(){return t=>{for(let e=0,r=t.length;e{let a=e-o.length;return a>=0&&t.substring(a,e)===o&&(a===0||hm.includes(t[a-1]))})){let o=d2(t,e+1);t=`${t.substring(0,e)}${t.substring(o+1)}`}return t}}function FN(){let t=e=>`(${e},${e})`;return e=>p2(e,"PairOf<",t)}function qN(){let t=/\s/g,e=/(T|Self)::/g,r=/<(T|Self)asTrait>::/g,n=/::/g,o=//g,a=/::Type/g;return s=>(t.lastIndex=0,e.lastIndex=0,r.lastIndex=0,n.lastIndex=0,o.lastIndex=0,a.lastIndex=0,s.replace(t,"").replace(e,"").replace(r,"").replace(n,"").replace(o,"Lookup").replace(a,""))}function WN(t){let e=r=>r;return r=>p2(r,t,e)}var y7=new Map;function ls(t){let e=t.toString(),r=y7.get(e);if(r)return r;let n=e;for(let o=0,a=x7.length;o ${Le(e)} (typeof ${typeof e})`)}function h2(t){let e=new Set;return new Set(Array.from(t).filter(r=>S7("BTreeSet",e,r)).sort(Bi))}function m2(t){let e=new Set;return new Map(Array.from(t.entries()).filter(([r])=>S7("BTreeMap",e,r)).sort(([r],[n])=>Bi(r,n)))}function Wr(t,e){return typeof e=="function"?e:t.createClassUnsafe(e)}function x2(t,e){let r=e.length,n=new Array(r);for(let o=0;or=o;return class extends t{constructor(o,a){super(o,e,a,{definition:r,setDefinition:n})}}}get encodedLength(){return this.toU8a().length}get hash(){return this.registry.hash(this.toU8a())}get isEmpty(){return this.__internal__raw.isEmpty}bitLength(){return this.__internal__raw.bitLength()}eq(e){return this.__internal__raw.eq(e instanceof t?e.__internal__raw:e)}inspect(){return{outer:[this.toU8a()]}}toBigInt(){return this.__internal__raw.toBigInt()}toBn(){return this.__internal__raw.toBn()}toHex(e){return this.__internal__raw.toHex(e)}toHuman(e){return this.__internal__raw.toHuman(e)}toJSON(){return this.__internal__raw.toJSON()}toNumber(){return this.__internal__raw.toNumber()}toPrimitive(){return this.__internal__raw.toPrimitive()}toRawType(){return`Compact<${this.registry.getClassName(this.__internal__Type)||this.__internal__raw.toRawType()}>`}toString(){return this.__internal__raw.toString()}toU8a(e){return Ot(this.__internal__raw.toBn())}unwrap(){return this.__internal__raw}};var ds=class t{registry;createdAtHash;isStorageFallback;__internal__neverError;constructor(e,r="DoNotConstruct"){throw this.registry=e,this.__internal__neverError=new Error(`DoNotConstruct: Cannot construct unknown type ${r}`),this.__internal__neverError}static with(e){return class extends t{constructor(r){super(r,e)}}}get encodedLength(){throw this.__internal__neverError}get hash(){throw this.__internal__neverError}get isEmpty(){throw this.__internal__neverError}eq(){throw this.__internal__neverError}inspect(){throw this.__internal__neverError}toHex(){throw this.__internal__neverError}toHuman(){throw this.__internal__neverError}toJSON(){throw this.__internal__neverError}toPrimitive(){throw this.__internal__neverError}toRawType(){throw this.__internal__neverError}toString(){throw this.__internal__neverError}toU8a(){throw this.__internal__neverError}};var gn=class t{encodedLength=0;isEmpty=!0;registry;createdAtHash;initialU8aLength=0;isStorageFallback;constructor(e){this.registry=e}get hash(){throw new Error(".hash is not implemented on Null")}eq(e){return e instanceof t||io(e)}inspect(){return{}}toHex(){return"0x"}toHuman(){return this.toJSON()}toJSON(){return null}toPrimitive(){return null}toRawType(){return"Null"}toString(){return""}toU8a(e){return new Uint8Array}};function GN(t){let e=Object.values(t);if(e.some(r=>De(r))){if(!e.every(r=>De(r)&&r>=0&&r<=255))throw new Error("Invalid number-indexed enum definition");return!1}return!0}function ZN(t,e){let r={},n,o;if(Array.isArray(e)){for(let a=0,s=e.length;au!==gn),o=!1}else{let a=Object.entries(e);for(let s=0,u=a.length;su.toLowerCase()),a=r.toLowerCase(),s=o.indexOf(a);if(s===-1)throw new Error(`Cannot map Enum JSON, unable to find '${r}' in ${o.join(", ")}`);try{return jl(t,e,Object.values(e)[s].index,n)}catch(u){throw new Error(`Enum(${r}):: ${u.message}`)}}function YN(t,e,r,n){if(De(n))return jl(t,e,n,r);if(ue(r)||Ae(r)){let o=K(r);if(o.length)return E7(t,e,o[0],o.subarray(1))}else{if(r instanceof Dr)return jl(t,e,r.index,r.value);if(De(r))return jl(t,e,r);if(qe(r))return T7(t,e,r.toString());if(Sr(r)){let o=Object.keys(r)[0];return T7(t,e,o,r[o])}}return jl(t,e,Object.values(e)[0].index)}var Dr=class t{registry;createdAtHash;initialU8aLength;isStorageFallback;__internal__def;__internal__entryIndex;__internal__indexes;__internal__isBasic;__internal__isIndexed;__internal__raw;constructor(e,r,n,o,{definition:a,setDefinition:s=zn}={}){let{def:u,isBasic:l,isIndexed:h}=a||s(ZN(e,r)),y=ue(n)&&n.length&&!De(o)?E7(e,u,n[0],n.subarray(1)):YN(e,u,n,o);this.registry=e,this.__internal__def=u,this.__internal__isBasic=l,this.__internal__isIndexed=h,this.__internal__indexes=Object.values(u).map(({index:_})=>_),this.__internal__entryIndex=this.__internal__indexes.indexOf(y.index),this.__internal__raw=y.value,this.__internal__raw.initialU8aLength&&(this.initialU8aLength=1+this.__internal__raw.initialU8aLength)}static with(e){let r,n=o=>r=o;return class extends t{static{let o=Array.isArray(e)?e:Object.keys(e),a=o.length,s=new Array(a),u=new Array(a);for(let l=0;ly.type===o[h]),qn(this.prototype,s,(l,h,y)=>{if(y.type!==o[h])throw new Error(`Cannot convert '${y.type}' via ${l}`);return y.value})}constructor(o,a,s){super(o,e,a,s,{definition:r,setDefinition:n})}}}get encodedLength(){return 1+this.__internal__raw.encodedLength}get hash(){return this.registry.hash(this.toU8a())}get index(){return this.__internal__indexes[this.__internal__entryIndex]}get inner(){return this.__internal__raw}get isBasic(){return this.__internal__isBasic}get isEmpty(){return this.__internal__raw.isEmpty}get isNone(){return this.__internal__raw instanceof gn}get defIndexes(){return this.__internal__indexes}get defKeys(){return Object.keys(this.__internal__def)}get type(){return this.defKeys[this.__internal__entryIndex]}get value(){return this.__internal__raw}eq(e){return ue(e)?!this.toU8a().some((r,n)=>r!==e[n]):De(e)?this.toNumber()===e:this.__internal__isBasic&&qe(e)?this.type===e:Ae(e)?this.toHex()===e:e instanceof t?this.index===e.index&&this.value.eq(e.value):Sr(e)?this.value.eq(e[this.type]):this.value.eq(e)}inspect(){if(this.__internal__isBasic)return{outer:[new Uint8Array([this.index])]};let{inner:e,outer:r=[]}=this.__internal__raw.inspect();return{inner:e,outer:[new Uint8Array([this.index]),...r]}}toHex(){return Te(this.toU8a())}toHuman(e){return this.__internal__isBasic||this.isNone?this.type:{[this.type]:this.__internal__raw.toHuman(e)}}toJSON(){return this.__internal__isBasic?this.type:{[et(this.type)]:this.__internal__raw.toJSON()}}toNumber(){return this.index}toPrimitive(){return this.__internal__isBasic?this.type:{[et(this.type)]:this.__internal__raw.toPrimitive()}}_toRawStruct(){if(this.__internal__isBasic)return this.__internal__isIndexed?this.defKeys.reduce((r,n,o)=>(r[n]=this.__internal__indexes[o],r),{}):this.defKeys;let e=Object.entries(this.__internal__def);return Wl(this.registry,e.reduce((r,[n,{Type:o}],a)=>(r[0][a]=o,r[1][a]=n,r),[new Array(e.length),new Array(e.length)]))}toRawType(){return Le({_enum:this._toRawStruct()})}toString(){return this.isNone?this.type:Le(this.toJSON())}toU8a(e){return e?this.__internal__raw.toU8a(e):Qt([new Uint8Array([this.index]),this.__internal__raw.toU8a(e)])}};var tn=class t extends ef{constructor(e,r=0,n){super(e,r,n,!0)}static with(e,r){return class extends t{constructor(n,o){super(n,o,e)}toRawType(){return r||super.toRawType()}}}};var ps=class extends gn{toRawType(){return"None"}};function KN(t,e,r){return r instanceof e?r:r instanceof po?r.value instanceof e?r.value:r.isNone?new ps(t):new e(t,r.value):io(r)||Qe(r)||r==="0x"||r instanceof ps?new ps(t):ue(r)?!r.length||r[0]===0?new ps(t):new e(t,r.subarray(1)):new e(t,r)}var po=class t{registry;createdAtHash;initialU8aLength;isStorageFallback;__internal__Type;__internal__raw;constructor(e,r,n,{definition:o,setDefinition:a=zn}={}){let s=o||a(Wr(e,r)),u=ue(n)&&n.length&&!fn(n)?n[0]===0?new ps(e):new s(e,n.subarray(1)):KN(e,s,n);this.registry=e,this.__internal__Type=s,this.__internal__raw=u,u?.initialU8aLength&&(this.initialU8aLength=1+u.initialU8aLength)}static with(e){let r,n=o=>(r=o,o);return class extends t{constructor(o,a){super(o,e,a,{definition:r,setDefinition:n})}}}get encodedLength(){return 1+this.__internal__raw.encodedLength}get hash(){return this.registry.hash(this.toU8a())}get isEmpty(){return this.isNone}get isNone(){return this.__internal__raw instanceof ps}get isSome(){return!this.isNone}get value(){return this.__internal__raw}eq(e){return e instanceof t?this.isSome===e.isSome&&this.value.eq(e.value):this.value.eq(e)}inspect(){if(this.isNone)return{outer:[new Uint8Array([0])]};let{inner:e,outer:r=[]}=this.__internal__raw.inspect();return{inner:e,outer:[new Uint8Array([1]),...r]}}toHex(){return this.isNone?"0x":Te(this.toU8a().subarray(1))}toHuman(e){return this.__internal__raw.toHuman(e)}toJSON(){return this.isNone?null:this.__internal__raw.toJSON()}toPrimitive(){return this.isNone?null:this.__internal__raw.toPrimitive()}toRawType(e){let r=this.registry.getClassName(this.__internal__Type)||new this.__internal__Type(this.registry).toRawType();return e?r:`Option<${r}>`}toString(){return this.__internal__raw.toString()}toU8a(e){if(e)return this.__internal__raw.toU8a(!0);let r=new Uint8Array(this.encodedLength);return this.isSome&&(r.set([1]),r.set(this.__internal__raw.toU8a(),1)),r}unwrap(){if(this.isNone)throw new Error("Option: unwrapping a None value");return this.__internal__raw}unwrapOr(e){return this.isSome?this.unwrap():e}unwrapOrDefault(){return this.isSome?this.unwrap():new this.__internal__Type(this.registry)}};var rf=class t extends Dr{constructor(e,r,n,o){super(e,{Ok:r,Err:n},o)}static with(e){return class extends t{constructor(r,n){super(r,e.Ok,e.Err,n)}}}get asErr(){if(!this.isErr)throw new Error("Cannot extract Err value from Ok result, check isErr first");return this.value}get asOk(){if(!this.isOk)throw new Error("Cannot extract Ok value from Err result, check isOk first");return this.value}get isEmpty(){return this.isOk&&this.value.isEmpty}get isErr(){return!this.isOk}get isOk(){return this.index===0}toRawType(){let e=this._toRawStruct();return`Result<${e.Ok},${e.Err}>`}};function JN(t,e,r,n){if(Array.isArray(r)){let o=n[0];for(let a=0,s=o.length;ar=o;return class extends t{constructor(o,a){super(o,e,a,{definition:r,setDefinition:n})}}}get encodedLength(){let e=0;for(let r=0,n=this.length;rnew e(this.registry).toRawType())}inspect(){return{inner:this.inspectInner()}}toRawType(){return`(${this.__internal__Types[0].map(r=>this.registry.getClassName(r)||new r(this.registry).toRawType()).join(",")})`}toString(){return Le(this.toJSON())}toU8a(e){return Qt(this.toU8aInner(e))}};var rn=class t extends ef{static with(e,r){return class extends t{constructor(n,o){super(n,o,e)}toRawType(){return r||super.toRawType()}}}};var P7=64*1024,QN=Tr("Vec");function $N(t){if(Array.isArray(t))return[t,t.length,0];if(ue(t)||Ae(t)){let e=K(t),[r,n]=kn(e);if(n>P7)throw new Error(`Vec length ${n.toString()} exceeds ${P7}`);return[e,n,r]}else if(!t)return[null,0,0];throw new Error(`Expected array/hex input to Vec<*> decoding, found ${typeof t}: ${Le(t)}`)}function b2(t,e,r,n,o){if(Array.isArray(r)){let a=e.length;for(let s=0;sr=o;return class extends t{constructor(o,a){super(o,e,a,{definition:r,setDefinition:n})}}}get Type(){return this.__internal__Type.name}indexOf(e){let r=e instanceof this.__internal__Type?e:new this.__internal__Type(this.registry,e);for(let n=0,o=this.length;n`}};var of=class t extends Ni{__internal__Type;constructor(e,r,n,o=[],{definition:a,setDefinition:s=zn}={}){super(e,n),this.__internal__Type=a||s(Wr(e,r)),this.initialU8aLength=(ue(o)?fs(e,this,o,0,this.__internal__Type):b2(e,this,o,0,this.__internal__Type))[1]}static with(e,r){let n,o=a=>n=a;return class extends t{constructor(a,s){super(a,e,r,s,{definition:n,setDefinition:o})}}}get Type(){return new this.__internal__Type(this.registry).toRawType()}get encodedLength(){let e=0;for(let r=0,n=this.length;r!!e))}get isUtf8(){return oy(this)}bitLength(){return this.length*8}eq(e){return e instanceof Uint8Array?this.length===e.length&&!this.some((r,n)=>r!==e[n]):this.eq(K(e))}inspect(){return{outer:[this.toU8a()]}}toHex(){return Te(this)}toHuman(){return this.toPrimitive()}toJSON(){return this.toHex()}toPrimitive(){if(this.isAscii){let e=this.toUtf8();if(Jp(e))return e}return this.toJSON()}toRawType(){return"Raw"}toString(){return this.toHex()}toU8a(e){return Uint8Array.from(this)}toUtf8(){if(!this.isUtf8)throw new Error("The character sequence is not a valid Utf8 string");return Qr(this)}};function eC(t){if(!t?.length)return[0,new Uint8Array];let[e,r]=kn(t),n=e+Math.ceil(r/8);if(n>t.length)throw new Error(`BitVec: required length less than remainder, expected at least ${n}, found ${t.length}`);return[r,t.subarray(e,n)]}function tC(t){if(Array.isArray(t)||qe(t)){let e=K(t);return[e.length/8,e]}return eC(t)}var Xl=class extends yr{__internal__decodedLength;__internal__isMsb;constructor(e,r,n=!1){let[o,a]=tC(r);super(e,a),this.__internal__decodedLength=o,this.__internal__isMsb=n}get encodedLength(){return this.length+Ot(this.__internal__decodedLength).length}inspect(){return{outer:[Ot(this.__internal__decodedLength),super.toU8a()]}}toBoolArray(){let e=[...this.toU8a(!0)].map(o=>[!!(o&128),!!(o&64),!!(o&32),!!(o&16),!!(o&8),!!(o&4),!!(o&2),!!(o&1)]),r=e.length,n=new Array(8*r);for(let o=0;o`00000000${e.toString(2)}`.slice(-8)).map(e=>this.__internal__isMsb?e:e.split("").reverse().join("")).join("_")}`}toRawType(){return"BitVec"}toU8a(e){let r=super.toU8a(e);return e?r:Qt([Ot(this.__internal__decodedLength),r])}};function rC(t){return t}function nC(t,[e,r],n,o){let a,s=Array.isArray(n),u=n instanceof Map,l=r.length;if(!s&&!u&&!Sr(n))throw new Error(`Struct: Cannot decode value ${Le(n)} (typeof ${typeof n}), expected an input object, map or array`);if(s&&n.length!==l)throw new Error(`Struct: Unable to map ${Le(n)} array to object with known keys ${r.join(", ")}`);let h=new Array(l);for(let y=0;yn=a;return class extends t{static{let a=Object.keys(e);qn(this.prototype,a,(s,u,l)=>l.get(s))}constructor(a,s){super(a,e,s,r,{definition:n,setDefinition:o})}}}get defKeys(){return this.__internal__Types[1]}get isEmpty(){for(let e of this.values())if(!e.isEmpty)return!1;return!0}get encodedLength(){let e=0;for(let r of this.values())e+=r.encodedLength;return e}get hash(){return this.registry.hash(this.toU8a())}get Type(){let e={},[r,n]=this.__internal__Types;for(let o=0,a=n.length;o`}toString(){return Le(this.toJSON())}toU8a(e){let r=[];e||r.push(Ot(this.size));for(let[n,o]of this.entries())r.push(n.toU8a(e),o.toU8a(e));return Qt(r)}};var af=class t extends hs{static with(e,r){return class extends t{constructor(n,o){super(n,e,r,o,"BTreeMap")}}}};var sC=Tr("BTreeSet");function cC(t,e,r){let n=new Set,[o,a]=kn(r),s=new Array(a),[u]=fs(t,s,r,o,e);for(let l=0;l{try{n.add(o instanceof e?o:new e(t,o))}catch(a){throw sC.error("Failed to decode key or value:",a.message),a}}),[e,n,0]}function fC(t,e,r){let n=Wr(t,e);if(r){if(ue(r)||Ae(r))return cC(t,n,K(r));if(Array.isArray(r)||r instanceof Set)return uC(t,n,r)}else return[n,new Set,0];throw new Error("BTreeSet: cannot decode type")}var sf=class t extends Set{registry;createdAtHash;initialU8aLength;isStorageFallback;__internal__ValClass;constructor(e,r,n){let[o,a,s]=fC(e,r,n);super(h2(a)),this.registry=e,this.initialU8aLength=s,this.__internal__ValClass=o}static with(e){return class extends t{constructor(r,n){super(r,e,n)}}}get encodedLength(){let e=Ot(this.size).length;for(let r of this.values())e+=r.encodedLength;return e}get hash(){return this.registry.hash(this.toU8a())}get isEmpty(){return this.size===0}get strings(){return[...super.values()].map(e=>e.toString())}eq(e){return c2(this,e)}inspect(){let e=[];for(let r of this.values())e.push(r.inspect());return{inner:e,outer:[Ot(this.size)]}}toHex(){return Te(this.toU8a())}toHuman(e){let r=[];for(let n of this.values())r.push(n.toHuman(e));return r}toJSON(){let e=[];for(let r of this.values())e.push(r.toJSON());return e}toRawType(){return`BTreeSet<${this.registry.getClassName(this.__internal__ValClass)||new this.__internal__ValClass(this.registry).toRawType()}>`}toPrimitive(){let e=[];for(let r of this.values())e.push(r.toPrimitive());return e}toString(){return Le(this.toJSON())}toU8a(e){let r=[];e||r.push(Ot(this.size));for(let n of this.values())r.push(n.toU8a(e));return Qt(r)}};var A7=10*1024*1024;function lC(t){if(!t.length)return[new Uint8Array,0];let[e,r]=kn(t),n=e+r;if(r>A7)throw new Error(`Bytes length ${r.toString()} exceeds ${A7}`);if(n>t.length)throw new Error(`Bytes: required length less than remainder, expected at least ${n}, found ${t.length}`);return[t.subarray(e,n),n]}var ai=class extends yr{constructor(e,r){let[n,o]=ue(r)&&!(r instanceof yr)?lC(r):Array.isArray(r)||qe(r)?[K(r),0]:[r,0];super(e,n,o)}get encodedLength(){return this.length+Ot(this.length).length}inspect(e){let r=Ot(this.length);return{outer:e?[super.toU8a()]:this.length?[r,super.toU8a()]:[r]}}toRawType(){return"Bytes"}toU8a(e){return e?super.toU8a(e):$r(this)}};var cf=class t extends hs{static with(e,r){return class extends t{constructor(n,o){super(n,e,r,o)}}}};var ho=class extends Boolean{registry;createdAtHash;initialU8aLength=1;isStorageFallback;constructor(e,r=!1){super(ue(r)?r[0]===1:r instanceof Boolean?r.valueOf():!!r),this.registry=e}get encodedLength(){return 1}get hash(){return this.registry.hash(this.toU8a())}get isEmpty(){return this.isFalse}get isFalse(){return!this.isTrue}get isTrue(){return this.valueOf()}eq(e){return this.valueOf()===(e instanceof Boolean?e.valueOf():e)}inspect(){return{outer:[this.toU8a()]}}toHex(){return Te(this.toU8a())}toHuman(){return this.toJSON()}toJSON(){return this.valueOf()}toPrimitive(){return this.toJSON()}toRawType(){return"bool"}toString(){return this.toJSON().toString()}toU8a(e){return new Uint8Array([this.valueOf()?1:0])}};function dC(t,e){return e[0]===0?null:new ho(t,e[0]===1)}var Gl=class extends po{constructor(e,r){super(e,ho,ue(r)||Ae(r)?dC(e,K(r)):r),this.initialU8aLength=1}get encodedLength(){return 1}get isFalse(){return this.isSome?!this.value.valueOf():!1}get isTrue(){return this.isSome?this.value.valueOf():!1}inspect(){return{outer:[this.toU8a()]}}toRawType(e){return e?"bool":"Option"}toU8a(e){return e?super.toU8a(!0):this.isSome?new Uint8Array([this.isTrue?1:2]):new Uint8Array([0])}};var ms=class t extends Uo{__internal__rangeName;constructor(e,r,n,{rangeName:o="Range"}={}){super(e,[r,r],n),this.__internal__rangeName=o}static with(e){return class extends t{constructor(r,n){super(r,e,n)}}}get start(){return this[0]}get end(){return this[1]}toRawType(){return`${this.__internal__rangeName}<${this.start.toRawType()}>`}};var uf=class t extends ms{constructor(e,r,n){super(e,r,n,{rangeName:"RangeInclusive"})}static with(e){return class extends t{constructor(r,n){super(r,e,n)}}}};var O7=128*1024;function pC(t){if(ue(t)){if(!t.length)return["",0];if(t instanceof yr)return[Qr(t),0];let[e,r]=kn(t),n=e+r;if(r>O7)throw new Error(`Text: length ${r.toString()} exceeds ${O7}`);if(n>t.length)throw new Error(`Text: required length less than remainder, expected at least ${n}, found ${t.length}`);return[Qr(t.subarray(e,n)),n]}else if(Ae(t))return[Qr(jt(t)),0];return[t?t.toString():"",0]}var vc=class extends String{registry;createdAtHash;initialU8aLength;isStorageFallback;__internal__override=null;constructor(e,r){let[n,o]=pC(r);super(n),this.registry=e,this.initialU8aLength=o}get encodedLength(){return this.toU8a().length}get hash(){return this.registry.hash(this.toU8a())}get isEmpty(){return this.length===0}get length(){return super.length}eq(e){return qe(e)?this.toString()===e.toString():!1}inspect(){let e=yt(super.toString());return{outer:e.length?[Ot(e.length),e]:[Ot(e.length)]}}setOverride(e){this.__internal__override=e}toHex(){return Te(this.toU8a(!0))}toHuman(){return this.toJSON()}toJSON(){return this.toString()}toPrimitive(){return this.toJSON()}toRawType(){return"Text"}toString(){return this.__internal__override||super.toString()}toU8a(e){let r=yt(super.toString());return e?r:$r(r)}};var Zl=class extends vc{constructor(e,r=""){super(e,r),this.setOverride(ls(this.toString()))}toRawType(){return"Type"}};function hC(t,e){let r=K(t),n=e/8;if(!r.length)return[new Uint8Array(n),0];if(ue(t)?r.length`}toString(){return this.__internal__decoded?this.__internal__decoded.toString():super.toString()}unwrap(){if(!this.__internal__decoded)throw new Error(`${this.__internal__opaqueName}: unwrapping an undecodable value`);return this.__internal__decoded}};var ff=class t extends xs{constructor(e,r,n){super(e,r,n,{opaqueName:"WrapperOpaque"})}static with(e){return class extends t{constructor(r,n){super(r,e,n)}}}get inner(){return this.unwrap()}};var lf=class t extends Number{encodedLength;registry;createdAtHash;initialU8aLength;isStorageFallback;__internal__bitLength;constructor(e,r,{bitLength:n=32}={}){super(ue(r)||Ae(r)?r.length===0?0:qb(K(r),{bitLength:n}):r||0),this.__internal__bitLength=n,this.encodedLength=n/8,this.initialU8aLength=this.encodedLength,this.registry=e}static with(e){return class extends t{constructor(r,n){super(r,n,{bitLength:e})}}}get hash(){return this.registry.hash(this.toU8a())}get isEmpty(){return this.valueOf()===0}eq(e){return this.valueOf()===Number(e)}inspect(){return{outer:[this.toU8a()]}}toHex(){return Te(this.toU8a())}toHuman(){return this.toString()}toJSON(){return this.toHex()}toNumber(){return this.valueOf()}toPrimitive(){return this.toNumber()}toRawType(){return`f${this.__internal__bitLength}`}toU8a(e){return Jb(this,{bitLength:this.__internal__bitLength})}};function xC(t){return Object.entries(t||{})}var bs=class extends Map{registry;createdAtHash;initialU8aLength;isStorageFallback;constructor(e,r){let n=xC(r);super(n),this.registry=e,qn(this,n.map(([o])=>o),o=>this.get(o))}get encodedLength(){return 0}get hash(){return this.registry.hash(this.toU8a())}get isEmpty(){return[...this.keys()].length===0}eq(e){return yc(this,e)}getT(e){return this.get(e)}inspect(){throw new Error("Unimplemented")}toHex(){throw new Error("Unimplemented")}toHuman(){return[...this.entries()].reduce((e,[r,n])=>(e[r]=we(n.toHuman)?n.toHuman():n,e),{})}toJSON(){return[...this.entries()].reduce((e,[r,n])=>(e[r]=n,e),{})}toPrimitive(){return[...this.entries()].reduce((e,[r,n])=>(e[r]=we(n.toPrimitive)?n.toPrimitive():n,e),{})}toRawType(){return"Json"}toString(){return Le(this.toJSON())}toU8a(e){throw new Error("Unimplemented")}};function V7(t,e){let r=new be.default(0);for(let n=0,o=e.length;nl.strings.includes(n[u]))}constructor(n,o){super(n,e,o,r)}}}get encodedLength(){return this.__internal__byteLength}get hash(){return this.registry.hash(this.toU8a())}get isEmpty(){return this.size===0}get strings(){return[...super.values()]}get valueEncoded(){return V7(this.__internal__allowed,this.strings)}add=e=>{if(this.__internal__allowed&&Qe(this.__internal__allowed[e]))throw new Error(`Set: Invalid key '${e}' on add`);return super.add(e),this};eq(e){return Array.isArray(e)?ql(this.strings.sort(),e.sort()):e instanceof Set?this.eq([...e.values()]):De(e)||hr(e)?this.valueEncoded.eq(Dt(e)):!1}inspect(){return{outer:[this.toU8a()]}}toHex(){return Te(this.toU8a())}toHuman(){return this.toJSON()}toJSON(){return this.strings}toNumber(){return this.valueEncoded.toNumber()}toPrimitive(){return this.toJSON()}toRawType(){return Le({_set:this.__internal__allowed})}toString(){return`[${this.strings.join(", ")}]`}toU8a(e){return $t(this.valueEncoded,{bitLength:this.__internal__byteLength*8,isLe:!0})}};var _c=class extends lf.with(32){__FloatType="f32"};var Sc=class extends lf.with(64){__FloatType="f64"};var Tc=class extends tn.with(8){__IntType="i8"};var kc=class extends tn.with(16){__IntType="i16"};var ya=class extends tn.with(32){__IntType="i32"};var Ec=class extends tn.with(64){__IntType="i64"};var Pc=class extends tn.with(128){__IntType="i128"};var Mc=class extends tn.with(256){__IntType="i256"};var Ac=class extends ya{constructor(e,r){throw super(e,r),new Error("The `isize` type should not be used. Since it is platform-specific, it creates incompatibilities between native (generally i64) and WASM (always i32) code. Use one of the `i32` or `i64` types explicitly.")}};var Oc=class extends rn.with(8){__UIntType="u8"};var Ic=class extends rn.with(16){__UIntType="u16"};var mo=class extends rn.with(32){__UIntType="u32"};var nn=class extends rn.with(64){__UIntType="u64"};var Vc=class extends rn.with(128){__UIntType="u128"};var Nc=class extends rn.with(256){__UIntType="u256"};var Cc=class extends mo{constructor(e,r){throw super(e,r),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.")}};function C7(t){let e=[],r=0,n=0,o=0,a=0,s=0;for(let u=0,l=t.length;u":r--;break;case"[":n++;break;case"]":n--;break;case"{":o++;break;case"}":o--;break;case"(":a++;break;case")":a--;break}if(r||n||o||a)throw new Error(`Invalid definition (missing terminators) found in ${t}`);return e.push(t.substring(s,t.length).trim()),e}var yC=["_alias","_fallback"];function U7(t){return qe(t)?t.toString():Le(t)}function gC(t){let e=Object.values(t);if(e.some(r=>De(r))){if(!e.every(r=>De(r)&&r>=0&&r<=255))throw new Error("Invalid number-indexed enum definition");return!1}return!0}function wC(t,e,r,n){return t.info=Q.Enum,t.fallbackType=n,Array.isArray(e)?t.sub=e.map((o,a)=>({index:a,info:Q.Plain,name:o,type:"Null"})):gC(e)?t.sub=Object.entries(e).map(([o,a],s)=>ne({},xo(U7(a||"Null"),{name:o},r),{index:s})):t.sub=Object.entries(e).map(([o,a])=>({index:a,info:Q.Plain,name:o,type:"Null"})),t}function vC(t,e,r){return t.info=Q.Set,t.fallbackType=r,t.length=e._bitLength,t.sub=Object.entries(e).filter(([n])=>!n.startsWith("_")).map(([n,o])=>({index:o,info:Q.Plain,name:n,type:"Null"})),t}function _C(t,e,r,n){let o=JSON.parse(e),a=Object.keys(o);return o._enum?wC(t,o._enum,n,o._fallback):o._set?vC(t,o._set,o._fallback):(t.alias=o._alias?new Map(Object.entries(o._alias)):void 0,t.fallbackType=o._fallback,t.sub=a.filter(s=>!yC.includes(s)).map(s=>xo(U7(o[s]),{name:s},n)),t)}function SC(t,e,r,n){let o=e.length-1,a=-1,s=0;for(let _=1;_":s--;break}if(a===-1)throw new Error(`${e}: Unable to extract location of ';'`);let u=e.substring(1,a),[l,h]=e.substring(a+1,o).split(";"),y=parseInt(l.trim(),10);if(y>2048)throw new Error(`${e}: Only support for [Type; ], where length <= 2048`);return t.displayName=h,t.length=y,t.sub=xo(u,{},n),t}function mm(t,e,r,n){return t.sub=r.length===0?[]:C7(r).map(o=>xo(o,{},n)),t}function H7(t,e,r,n){let[o,a]=e.substring(n.length+1,e.length-1).split(","),s=parseInt(o.trim(),10);if(s>8192||s%8)throw new Error(`${e}: Only support for ${n}, where length <= 8192 and a power of 8, found ${s}`);return t.displayName=a,t.length=s,t}function TC(t,e,r){return H7(t,e,r,"Int")}function kC(t,e,r){return H7(t,e,r,"UInt")}function EC(t,e,r){return t.displayName=e.substring(15,e.length-1),t}function B7(t,[e,r]){return t.startsWith(e)&&t.slice(-1*r.length)===r}var PC=[["[","]",Q.VecFixed,SC],["{","}",Q.Struct,_C],["(",")",Q.Tuple,mm],["BTreeMap<",">",Q.BTreeMap,mm],["HashMap<",">",Q.HashMap,mm],["Int<",">",Q.Int,TC],["Result<",">",Q.Result,mm],["UInt<",">",Q.UInt,kC],["DoNotConstruct<",">",Q.DoNotConstruct,EC]],MC=[["BTreeSet<",">",Q.BTreeSet],["Compact<",">",Q.Compact],["Linkage<",">",Q.Linkage],["Opaque<",">",Q.WrapperOpaque],["Option<",">",Q.Option],["Range<",">",Q.Range],["RangeInclusive<",">",Q.RangeInclusive],["Vec<",">",Q.Vec],["WrapperKeepOpaque<",">",Q.WrapperKeepOpaque],["WrapperOpaque<",">",Q.WrapperOpaque]];function R7(t,[e,r]){return t.substring(e.length,t.length-r.length)}function xo(t,{displayName:e,name:r}={},n=0){let o=ls(t),a={displayName:e,info:Q.Plain,name:r,type:o};if(++n>64)throw new Error("getTypeDef: Maximum nested limit reached");let s=PC.find(l=>B7(o,l));if(s)return a.info=s[2],s[3](a,o,R7(o,s),n);let u=MC.find(l=>B7(o,l));return u&&(a.info=u[2],a.sub=xo(R7(o,u),{},n)),a}function Yl({lookupName:t,type:e}){return t||e}function xm(t){if(!Array.isArray(t.sub))throw new Error(`Expected subtype as TypeDef[] in ${Le(t)}`);return t.sub}function AC(t){if(!t.sub||Array.isArray(t.sub))throw new Error(`Expected subtype as TypeDef in ${Le(t)}`);return t.sub}function F7(t){return Yl(AC(t))}function L7(t){let e=xm(t),r={};for(let n=0,o=e.length;n`);return t.with(r,e)}function z7(t,e){let[r,n]=y2(e);return t.with(r,n)}function Bc(t,e){return t.with(F7(e))}var OC={[Q.BTreeMap]:(t,e)=>z7(af,e),[Q.BTreeSet]:(t,e)=>Bc(sf,e),[Q.Compact]:(t,e)=>Bc(wc,e),[Q.DoNotConstruct]:(t,e)=>ds.with(e.displayName||e.type),[Q.Enum]:(t,e)=>{let r=xm(e);return Dr.with(r.every(({type:n})=>n==="Null")?r.reduce((n,{index:o,name:a},s)=>{if(!a)throw new Error("No name found in sub definition");return n[a]=o||s,n},{}):L7(e))},[Q.HashMap]:(t,e)=>z7(cf,e),[Q.Int]:(t,e)=>D7(tn,e),[Q.Linkage]:(t,e)=>{let r=`Option<${F7(e)}>`,n=Ct.with({previous:r,next:r});return n.prototype.toRawType=function(){return`Linkage<${this.next.toRawType(!0)}>`},n},[Q.Null]:(t,e)=>gn,[Q.Option]:(t,e)=>{if(!e.sub||Array.isArray(e.sub))throw new Error("Expected type information for Option");return Bc(po,e)},[Q.Plain]:(t,e)=>t.getOrUnknown(e.type),[Q.Range]:(t,e)=>Bc(ms,e),[Q.RangeInclusive]:(t,e)=>Bc(uf,e),[Q.Result]:(t,e)=>{let[r,n]=y2(e);return rf.with({Err:n,Ok:r})},[Q.Set]:(t,e)=>ys.with(xm(e).reduce((r,{index:n,name:o})=>{if(!o||!De(n))throw new Error("No name found in sub definition");return r[o]=n,r},{}),e.length),[Q.Si]:(t,e)=>W7(t,t.lookup.getTypeDef(e.type)),[Q.Struct]:(t,e)=>Ct.with(L7(e),e.alias),[Q.Tuple]:(t,e)=>Uo.with(y2(e)),[Q.UInt]:(t,e)=>D7(rn,e),[Q.Vec]:(t,{sub:e})=>{if(!e||Array.isArray(e))throw new Error("Expected type information for vector");return e.type==="u8"?ai:nf.with(Yl(e))},[Q.VecFixed]:(t,{displayName:e,length:r,sub:n})=>{if(!De(r)||!n||Array.isArray(n))throw new Error("Expected length & type information for fixed vector");return n.type==="u8"?wn.with(r*8,e):of.with(Yl(n),r)},[Q.WrapperKeepOpaque]:(t,e)=>Bc(xs,e),[Q.WrapperOpaque]:(t,e)=>Bc(ff,e)};function q7(t,e){try{let r=OC[e.info](t,e);if(!r)throw new Error("No class created");return!r.__fallbackType&&e.fallbackType&&(r.__fallbackType=e.fallbackType),r}catch(r){throw new Error(`Unable to construct class from ${Le(e)}: ${r.message}`)}}function W7(t,e){return t.getUnsafe(e.type,!1,e)}function Rc(t,e){return t.getUnsafe(e)||W7(t,t.isLookupType(e)?t.lookup.getTypeDef(e):xo(e))}function j7(t,e){let r=t.toU8a(),n=t.toRawType();if(!(Lr(r,e)||["Bytes","Text","Type"].includes(n)&&e.length===t.length||t.isEmpty&&e.every(a=>!a)))throw new Error(`${n}:: Decoded input doesn't match input, received ${Te(e,512)} (${e.length} bytes), created ${Te(r,512)} (${r.length} bytes)`)}function IC(t,[e]){ue(e)?j7(t,e):Ae(e)&&j7(t,K(e))}function X7(t,e,r=[],{blockHash:n,isFallback:o,isOptional:a,isPedantic:s}={}){let u=new(a?po.with(e):e)(t,...r);return s&&IC(u,r),n&&(u.createdAtHash=bm(t,"BlockHash",[n])),o&&(u.isStorageFallback=!0),u}function bm(t,e,r=[],n={}){let o=null,a=null;try{return o=Rc(t,e),X7(t,o,r,n)}catch(s){a=new Error(`createType(${e}):: ${s.message}`)}if(o?.__fallbackType)try{return o=Rc(t,o.__fallbackType),X7(t,o,r,n)}catch{}throw a}var VC=t=>t.toString(),NC=["BTreeMap","BTreeSet","Compact","HashMap","Option","Result","Vec"];function CC(t,e,r=VC){return`${t}${e?`<${(Array.isArray(e)?e:[e]).map(r).join(", ")}>`:""}`}function Ho(t,e,r){let{info:n,sub:o}=e;switch(n){case Q.BTreeMap:case Q.BTreeSet:case Q.Compact:case Q.HashMap:case Q.Linkage:case Q.Option:case Q.Range:case Q.RangeInclusive:case Q.Result:case Q.Vec:case Q.WrapperKeepOpaque:case Q.WrapperOpaque:return CC(r,o,a=>g2(t,a))}throw new Error(`Unable to encode ${Le(e)} with params`)}function G7(t,e,r,n){let o=e.map(({name:s})=>s);if(!o.every(s=>!!s))throw new Error(`Subtypes does not have consistent names, ${o.join(", ")}`);let a=ne({},n);for(let s=0,u=e.length;sHo(t,e,"BTreeMap"),[Q.BTreeSet]:(t,e)=>Ho(t,e,"BTreeSet"),[Q.Compact]:(t,e)=>Ho(t,e,"Compact"),[Q.DoNotConstruct]:(t,{displayName:e,lookupIndex:r,lookupName:n})=>`DoNotConstruct<${n||e||(Qe(r)?"Unknown":t.createLookupType(r))}>`,[Q.Enum]:(t,{sub:e})=>{if(!Array.isArray(e))throw new Error("Unable to encode Enum type");return e.every(({type:r})=>r==="Null")?Le({_enum:e.map(({name:r},n)=>`${r||`Empty${n}`}`)}):G7(t,e,!0)},[Q.HashMap]:(t,e)=>Ho(t,e,"HashMap"),[Q.Int]:(t,{length:e=32})=>`Int<${e}>`,[Q.Linkage]:(t,e)=>Ho(t,e,"Linkage"),[Q.Null]:(t,e)=>"Null",[Q.Option]:(t,e)=>Ho(t,e,"Option"),[Q.Plain]:(t,{displayName:e,type:r})=>e||r,[Q.Range]:(t,e)=>Ho(t,e,"Range"),[Q.RangeInclusive]:(t,e)=>Ho(t,e,"RangeInclusive"),[Q.Result]:(t,e)=>Ho(t,e,"Result"),[Q.Set]:(t,{length:e=8,sub:r})=>{if(!Array.isArray(r))throw new Error("Unable to encode Set type");return Le({_set:r.reduce((n,{index:o,name:a},s)=>ne(n,{[`${a||`Unknown${o||s}`}`]:o||s}),{_bitLength:e||8})})},[Q.Si]:(t,{lookupName:e,type:r})=>e||r,[Q.Struct]:(t,{alias:e,sub:r})=>{if(!Array.isArray(r))throw new Error("Unable to encode Struct type");return G7(t,r,!1,e?{_alias:[...e.entries()].reduce((n,[o,a])=>ne(n,{[o]:a}),{})}:{})},[Q.Tuple]:(t,{sub:e})=>{if(!Array.isArray(e))throw new Error("Unable to encode Tuple type");return`(${e.map(r=>g2(t,r)).join(",")})`},[Q.UInt]:(t,{length:e=32})=>`UInt<${e}>`,[Q.Vec]:(t,e)=>Ho(t,e,"Vec"),[Q.VecFixed]:(t,{length:e,sub:r})=>{if(!De(e)||!r||Array.isArray(r))throw new Error("Unable to encode VecFixed type");return`[${r.type};${e}]`},[Q.WrapperKeepOpaque]:(t,e)=>Ho(t,e,"WrapperKeepOpaque"),[Q.WrapperOpaque]:(t,e)=>Ho(t,e,"WrapperOpaque")};function Z7(t,e,r=!0){return r&&e.lookupName?e.lookupName:BC[e.info](t,e)}function g2(t,e){return e.displayName&&!NC.some(r=>e.displayName===r)?e.displayName:Z7(t,e)}function Xn(t,e){return ne({},e,{type:Z7(t,e,!1)})}var RC=["AssetInstance","Fungibility","Junction","Junctions","MultiAsset","MultiAssetFilter","MultiLocation","Response","WildFungibility","WildMultiAsset","Xcm","XcmError","XcmOrder"];function jr(t){return RC.reduce((e,r)=>ne(e,{[r]:`${r}${t}`}),{})}var Y7={FungibilityV0:"FungibilityV1",WildFungibilityV0:"WildFungibilityV1",AssetInstanceV0:{_enum:{Undefined:"Null",Index8:"u8",Index16:"Compact",Index32:"Compact",Index64:"Compact",Index128:"Compact",Array4:"[u8; 4]",Array8:"[u8; 8]",Array16:"[u8; 16]",Array32:"[u8; 32]",Blob:"Vec"}},JunctionV0:{_enum:{Parent:"Null",Parachain:"Compact",AccountId32:{network:"NetworkId",id:"AccountId"},AccountIndex64:{network:"NetworkId",index:"Compact"},AccountKey20:{network:"NetworkId",key:"[u8; 20]"},PalletInstance:"u8",GeneralIndex:"Compact",GeneralKey:"Vec",OnlyChild:"Null",Plurality:{id:"BodyId",part:"BodyPart"}}},MultiAssetV0:{_enum:{None:"Null",All:"Null",AllFungible:"Null",AllNonFungible:"Null",AllAbstractFungible:"Vec",AllAbstractNonFungible:"Vec",AllConcreteFungible:"MultiLocationV0",AllConcreteNonFungible:"MultiLocationV0",AbstractFungible:{id:"Vec",instance:"Compact"},AbstractNonFungible:{class:"Vec",instance:"AssetInstanceV0"},ConcreteFungible:{id:"MultiLocationV0",amount:"Compact"},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"}},XcmV0:{_enum:{WithdrawAsset:{assets:"Vec",effects:"Vec"},ReserveAssetDeposit:{assets:"Vec",effects:"Vec"},ReceiveTeleportedAsset:{assets:"Vec",effects:"Vec"},QueryResponse:{queryId:"Compact",response:"ResponseV0"},TransferAsset:{assets:"Vec",dest:"MultiLocationV0"},TransferReserveAsset:{assets:"Vec",dest:"MultiLocationV0",effects:"Vec"},Transact:{originType:"XcmOriginKind",requireWeightAtMost:"u64",call:"DoubleEncodedCall"},HrmpNewChannelOpenRequest:{sender:"Compact",maxMessageSize:"Compact",maxCapacity:"Compact"},HrmpChannelAccepted:{recipient:"Compact"},HrmpChannelClosing:{initiator:"Compact",sender:"Compact",recipient:"Compact"},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",dest:"MultiLocationV0"},DepositReserveAsset:{assets:"Vec",dest:"MultiLocationV0",effects:"Vec"},ExchangeAsset:{give:"Vec",receive:"Vec"},InitiateReserveWithdraw:{assets:"Vec",reserve:"MultiLocationV0",effects:"Vec"},InitiateTeleport:{assets:"Vec",dest:"MultiLocationV0",effects:"Vec"},QueryHolding:{queryId:"Compact",dest:"MultiLocationV0",assets:"Vec"},BuyExecution:{fees:"MultiAssetV0",weight:"u64",debt:"u64",haltOnError:"bool",xcm:"Vec"}}}};var K7={AssetInstanceV1:{_enum:{Undefined:"Null",Index:"Compact",Array4:"[u8; 4]",Array8:"[u8; 8]",Array16:"[u8; 16]",Array32:"[u8; 32]",Blob:"Bytes"}},FungibilityV1:{_enum:{Fungible:"Compact",NonFungible:"AssetInstanceV1"}},JunctionV1:{_enum:{Parachain:"Compact",AccountId32:{network:"NetworkId",id:"AccountId"},AccountIndex64:{network:"NetworkId",index:"Compact"},AccountKey20:{network:"NetworkId",key:"[u8; 20]"},PalletInstance:"u8",GeneralIndex:"Compact",GeneralKey:"Vec",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:{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"},ReserveAssetDeposit:{assets:"MultiAssetsV1",effects:"Vec"},ReceiveTeleportedAsset:{assets:"MultiAssetsV1",effects:"Vec"},QueryResponse:{queryId:"Compact",response:"ResponseV1"},TransferAsset:{assets:"MultiAssetsV1",dest:"MultiLocationV1"},TransferReserveAsset:{assets:"MultiAssetsV1",dest:"MultiLocationV1",effects:"Vec"},Transact:{originType:"XcmOriginKind",requireWeightAtMost:"u64",call:"DoubleEncodedCall"},HrmpNewChannelOpenRequest:{sender:"Compact",maxMessageSize:"Compact",maxCapacity:"Compact"},HrmpChannelAccepted:{recipient:"Compact"},HrmpChannelClosing:{initiator:"Compact",sender:"Compact",recipient:"Compact"},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"},ExchangeAsset:{give:"MultiAssetFilterV1",receive:"MultiAssetsV1"},InitiateReserveWithdraw:{assets:"MultiAssetFilterV1",reserve:"MultiLocationV1",effects:"Vec"},InitiateTeleport:{assets:"MultiAssetFilterV1",dest:"MultiLocationV1",effects:"Vec"},QueryHolding:{queryId:"Compact",dest:"MultiLocationV1",assets:"MultiAssetFilterV1"},BuyExecution:{fees:"MultiAssetV1",weight:"u64",debt:"u64",haltOnError:"bool",instructions:"Vec"}}}};var J7={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",WeightLimitV2:{_enum:{Unlimited:"Null",Limited:"Compact"}},InstructionV2:{_enum:{WithdrawAsset:"MultiAssetsV2",ReserveAssetDeposited:"MultiAssetsV2",ReceiveTeleportedAsset:"MultiAssetsV2",QueryResponse:{queryId:"Compact",response:"ResponseV2",maxWeight:"Compact"},TransferAsset:{assets:"MultiAssetsV2",beneficiary:"MultiLocationV2"},TransferReserveAsset:{assets:"MultiAssetsV2",dest:"MultiLocationV2",xcm:"XcmV2"},Transact:{originType:"OriginKindV2",requireWeightAtMost:"u64",call:"DoubleEncodedCall"},HrmpNewChannelOpenRequest:{sender:"Compact",maxMessageSize:"Compact",maxCapacity:"Compact"},HrmpChannelAccepted:{recipient:"Compact"},HrmpChannelClosing:{initiator:"Compact",sender:"Compact",recipient:"Compact"},ClearOrigin:"Null",DescendOrigin:"InteriorMultiLocation",ReportError:{queryId:"Compact",dest:"MultiLocationV2",maxResponseWeight:"Compact"},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",dest:"MultiLocationV2",assets:"MultiAssetFilterV2",maxResponse_Weight:"Compact"},BuyExecution:{fees:"MultiAssetV2",weightLimit:"WeightLimitV2"},RefundSurplus:"Null",SetErrorHandler:"XcmV2",SetAppendix:"XcmV2",ClearError:"Null",ClaimAsset:{assets:"MultiAssetsV2",ticket:"MultiLocationV2"},Trap:"u64"}},WildMultiAssetV2:"WildMultiAssetV1",XcmV2:"Vec",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"};var UC="V2",HC={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"},LC={BodyId:{_enum:{Unit:"Null",Named:"Vec",Index:"Compact",Executive:"Null",Technical:"Null",Legislative:"Null",Judicial:"Null"}},BodyPart:{_enum:{Voice:"Null",Members:"Compact",Fraction:{nom:"Compact",denom:"Compact"},AtLeastProportion:{nom:"Compact",denom:"Compact"},MoreThanProportion:{nom:"Compact",denom:"Compact"}}},InteriorMultiLocation:"Junctions",NetworkId:{_enum:{Any:"Null",Named:"Vec",Polkadot:"Null",Kusama:"Null"}}},Q7={rpc:{},types:{...LC,...HC,...Y7,...K7,...J7,...jr(UC),DoubleEncodedCall:{encoded:"Vec"},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",MigrateAndNotifyOldTargets:"Null"}},VersionedMultiAsset:{_enum:{V0:"MultiAssetV0",V1:"MultiAssetV1",V2:"MultiAssetV2"}},VersionedMultiAssets:{_enum:{V0:"Vec",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"}};var DC={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"},ContractLayoutHash:{offset:"ContractLayoutKey",strategy:"ContractLayoutHashingStrategy",layout:"ContractStorageLayout"},ContractLayoutHashingStrategy:{hasher:"ContractCryptoHasher",postfix:"Vec",prefix:"Vec"},ContractLayoutKey:"[u8; 32]",ContractLayoutStruct:{fields:"Vec"},ContractLayoutStructField:{layout:"ContractStorageLayout",name:"Text"},ContractStorageLayout:{_enum:{Cell:"ContractLayoutCell",Hash:"ContractLayoutHash",Array:"ContractLayoutArray",Struct:"ContractLayoutStruct",Enum:"ContractLayoutEnum"}}},zC={ContractConstructorSpecV0:{name:"Text",selector:"ContractSelector",args:"Vec",docs:"Vec"},ContractConstructorSpecV1:{name:"Vec",selector:"ContractSelector",args:"Vec",docs:"Vec"},ContractConstructorSpecV2:{label:"Text",selector:"ContractSelector",args:"Vec",docs:"Vec"},ContractConstructorSpecV3:{label:"Text",selector:"ContractSelector",payable:"bool",args:"Vec",docs:"Vec"},ContractConstructorSpecV4:{label:"Text",selector:"ContractSelector",payable:"bool",args:"Vec",docs:"Vec",default:"bool",returnType:"Option"},ContractContractSpecV0:{constructors:"Vec",messages:"Vec",events:"Vec",docs:"Vec"},ContractContractSpecV1:{constructors:"Vec",messages:"Vec",events:"Vec",docs:"Vec"},ContractContractSpecV2:{constructors:"Vec",messages:"Vec",events:"Vec",docs:"Vec"},ContractContractSpecV3:{constructors:"Vec",messages:"Vec",events:"Vec",docs:"Vec"},ContractContractSpecV4:{constructors:"Vec",messages:"Vec",events:"Vec",docs:"Vec",environment:"ContractEnvironmentV4"},ContractContractSpecV5:{constructors:"Vec",messages:"Vec",events:"Vec",docs:"Vec",environment:"ContractEnvironmentV4"},ContractDisplayName:"SiPath",ContractEventParamSpecV0:{name:"Text",indexed:"bool",type:"ContractTypeSpec",docs:"Vec"},ContractEventParamSpecV2:{label:"Text",indexed:"bool",type:"ContractTypeSpec",docs:"Vec"},ContractEventSpecV0:{name:"Text",args:"Vec",docs:"Vec"},ContractEventSpecV1:{name:"Text",args:"Vec",docs:"Vec"},ContractEventSpecV2:{label:"Text",args:"Vec",docs:"Vec"},ContractEventSpecV3:{label:"Text",args:"Vec",docs:"Vec",module_path:"Text",signature_topic:"Option<[u8; 32]>"},ContractMessageParamSpecV0:{name:"Text",type:"ContractTypeSpec"},ContractMessageParamSpecV2:{label:"Text",type:"ContractTypeSpec"},ContractMessageSpecV0:{name:"Text",selector:"ContractSelector",mutates:"bool",payable:"bool",args:"Vec",returnType:"Option",docs:"Vec"},ContractMessageSpecV1:{name:"Vec",selector:"ContractSelector",mutates:"bool",payable:"bool",args:"Vec",returnType:"Option",docs:"Vec"},ContractMessageSpecV2:{label:"Text",selector:"ContractSelector",mutates:"bool",payable:"bool",args:"Vec",returnType:"Option",docs:"Vec"},ContractMessageSpecV3:{label:"Text",selector:"ContractSelector",mutates:"bool",payable:"bool",args:"Vec",returnType:"Option",docs:"Vec",default:"bool"},ContractSelector:"[u8; 4]",ContractTypeSpec:{type:"SiLookupTypeId",displayName:"ContractDisplayName"}},FC={ContractConstructorSpecLatest:"ContractConstructorSpecV4",ContractEventSpecLatest:"ContractEventSpecV3",ContractEventParamSpecLatest:"ContractEventParamSpecV2",ContractMessageParamSpecLatest:"ContractMessageParamSpecV2",ContractMessageSpecLatest:"ContractMessageSpecV3",ContractMetadataLatest:"ContractMetadataV5"},$7={rpc:{},types:{...DC,...zC,...FC,ContractProjectInfo:{source:"ContractProjectSource",contract:"ContractProjectContract"},ContractMetadataV0:{metadataVersion:"Text",types:"Vec",spec:"ContractContractSpecV0"},ContractMetadataV1:{types:"Vec",spec:"ContractContractSpecV1"},ContractMetadataV2:{types:"Vec",spec:"ContractContractSpecV2"},ContractMetadataV3:{types:"Vec",spec:"ContractContractSpecV3"},ContractMetadataV4:{types:"Vec",spec:"ContractContractSpecV4",version:"Text"},ContractMetadataV5:{types:"Vec",spec:"ContractContractSpecV5",version:"u64"},ContractMetadata:{_enum:{V0:"ContractMetadataV0",V1:"ContractMetadataV1",V2:"ContractMetadataV2",V3:"ContractMetadataV3",V4:"ContractMetadataV4",V5:"ContractMetadataV5"}},ContractProjectV0:{metadataVersion:"Text",source:"ContractProjectSource",contract:"ContractProjectContract",types:"Vec",spec:"ContractContractSpecV0"},ContractProject:"(ContractProjectInfo, ContractMetadata)",ContractProjectContract:{_alias:{docs:"documentation"},name:"Text",version:"Text",authors:"Vec",description:"Option",docs:"Option",repository:"Option",homepage:"Option",license:"Option"},ContractProjectSource:{_alias:{wasmHash:"hash"},wasmHash:"[u8; 32]",language:"Text",compiler:"Text",wasm:"Raw"},ContractEnvironmentV4:{_alias:{hashType:"hash"},accountId:"Option",balance:"Option",blockNumber:"Option",hashType:"Option",timestamp:"Option",maxEventTopics:"Option"}}};var qC={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"}},WC={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"}},e6={...qC,...WC,accounts:{description:"Returns accounts list.",params:[],type:"Vec"},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>"}],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"},getBlockByNumber:{description:"Returns block with given number.",params:[{name:"block",type:"BlockNumber"},{name:"full",type:"bool"}],type:"Option"},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"},getLogs:{description:"Returns logs matching given filter object.",params:[{name:"filter",type:"EthFilter"}],type:"Vec"},getProof:{description:"Returns proof for account and storage.",params:[{name:"address",type:"H160"},{name:"storageKeys",type:"Vec"},{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:"address",type:"H160"},{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"}};var t6={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"},{name:"value",type:"U256"},{name:"gasLimit",type:"U256"},{name:"maxFeePerGas",type:"Option"},{name:"maxPriorityFeePerGas",type:"Option"},{name:"nonce",type:"Option"},{name:"estimate",type:"bool"},{name:"accessList",type:"Option)>>"}],type:"Result"},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"},{name:"value",type:"U256"},{name:"gasLimit",type:"U256"},{name:"maxFeePerGas",type:"Option"},{name:"maxPriorityFeePerGas",type:"Option"},{name:"nonce",type:"Option"},{name:"estimate",type:"bool"},{name:"accessList",type:"Option)>>"}],type:"Result"},current_all:{description:"Return all the current data for a block in a single runtime call.",params:[],type:"(Option, Option>, Option>)"},current_block:{description:"Return the current block.",params:[],type:"BlockV2"},current_receipts:{description:"Return the current receipt.",params:[],type:"Option>"},current_transaction_statuses:{description:"Return the current transaction status.",params:[],type:"Option>"},elasticity:{description:"Return the elasticity multiplier.",params:[],type:"Option"},extrinsic_filter:{description:"Receives a `Vec` and filters all the ethereum transactions.",params:[{name:"xts",type:"Vec"}],type:"Vec"},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"}},jC={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"},{name:"value",type:"U256"},{name:"gasLimit",type:"U256"},{name:"maxFeePerGas",type:"Option"},{name:"maxPriorityFeePerGas",type:"Option"},{name:"nonce",type:"Option"},{name:"estimate",type:"bool"},{name:"accessList",type:"Option)>>"}],type:"Result"},create:{description:"Returns a frame_ethereum::call response. If `estimate` is true,",params:[{name:"from",type:"H160"},{name:"data",type:"Vec"},{name:"value",type:"U256"},{name:"gasLimit",type:"U256"},{name:"maxFeePerGas",type:"Option"},{name:"maxPriorityFeePerGas",type:"Option"},{name:"nonce",type:"Option"},{name:"estimate",type:"bool"},{name:"accessList",type:"Option)>>"}],type:"Result"}},r6={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"},{name:"knownTransactions",type:"Vec"}],type:"Result<(), DispatchError>"},trace_transaction:{description:"Trace transaction extrinsics",params:[{name:"extrinsics",type:"Vec"},{name:"transaction",type:"EthTransaction"}],type:"Result<(), DispatchError>"}},version:4}],EthereumRuntimeRPCApi:[{methods:{...t6},version:4},{methods:{...t6,...jC},version:5}]};var XC={BlockV0:{header:"EthHeader",transactions:"Vec",ommers:"Vec"},LegacyTransaction:{nonce:"U256",gasPrice:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",signature:"EthTransactionSignature"},TransactionV0:"LegacyTransaction"},GC={BlockV1:{header:"EthHeader",transactions:"Vec",ommers:"Vec"},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"}}},ZC={BlockV2:{header:"EthHeader",transactions:"Vec",ommers:"Vec"},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"}}},YC={...XC,...GC,...ZC,EthereumAccountId:"GenericEthereumAccountId",EthereumAddress:"GenericEthereumAccountId",EthereumLookupSource:"GenericEthereumLookupSource",EthereumSignature:"[u8; 65]",EthAccessListItem:{address:"EthAddress",slots:"Vec"},EthAccessList:"Vec",EthAccount:{address:"EthAddress",balance:"U256",nonce:"U256",codeHash:"H256",storageHash:"H256",accountProof:"Vec",storageProof:"Vec"},EthAddress:"H160",EthBlock:{header:"EthHeader",transactions:"Vec",ommers:"Vec"},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",parentHash:"H256",sha3Uncles:"H256",author:"EthAddress",miner:"EthAddress",stateRoot:"H256",transactionsRoot:"H256",receiptsRoot:"H256",number:"Option",gasUsed:"U256",gasLimit:"U256",extraData:"Bytes",logsBloom:"EthBloom",timestamp:"U256",difficulty:"U256",totalDifficulty:"Option",sealFields:"Vec",uncles:"Vec",transactions:"Vec",blockSize:"Option"},EthBloom:"H2048",EthCallRequest:{from:"Option",to:"Option",gasPrice:"Option",gas:"Option",value:"Option",data:"Option",nonce:"Option"},EthFeeHistory:{oldestBlock:"U256",baseFeePerGas:"Vec",gasUsedRatio:"Vec",reward:"Option>>"},EthFilter:{fromBlock:"Option",toBlock:"Option",blockHash:"Option",address:"Option",topics:"Option"},EthFilterAddress:{_enum:{Single:"EthAddress",Multiple:"Vec",Null:"Null"}},EthFilterChanges:{_enum:{Logs:"Vec",Hashes:"Vec",Empty:"Null"}},EthFilterTopic:{_enum:{Single:"EthFilterTopicInner",Multiple:"Vec",Null:"Null"}},EthFilterTopicEntry:"Option",EthFilterTopicInner:{_enum:{Single:"EthFilterTopicEntry",Multiple:"Vec",Null:"Null"}},EthRichHeader:{_alias:{blockHash:"hash",blockSize:"size"},blockHash:"Option",parentHash:"H256",sha3Uncles:"H256",author:"EthAddress",miner:"EthAddress",stateRoot:"H256",transactionsRoot:"H256",receiptsRoot:"H256",number:"Option",gasUsed:"U256",gasLimit:"U256",extraData:"Bytes",logsBloom:"EthBloom",timestamp:"U256",difficulty:"U256",sealFields:"Vec",blockSize:"Option"},EthLog:{address:"EthAddress",topics:"Vec",data:"Bytes",blockHash:"Option",blockNumber:"Option",transactionHash:"Option",transactionIndex:"Option",logIndex:"Option",transactionLogIndex:"Option",removed:"bool"},EthReceipt:{transactionHash:"Option",transactionIndex:"Option",blockHash:"Option",from:"Option",to:"Option",blockNumber:"Option",cumulativeGasUsed:"U256",gasUsed:"Option",contractAddress:"Option",logs:"Vec",root:"Option",logsBloom:"EthBloom",statusCode:"Option"},EthReceiptV0:"EthReceipt",EthReceiptV3:"EthReceipt",EthStorageProof:{key:"U256",value:"U256",proof:"Vec"},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",warpChunksProcessed:"Option"},EthSyncStatus:{_enum:{Info:"EthSyncInfo",None:"Null"}},EthTransaction:{hash:"H256",nonce:"U256",blockHash:"Option",blockNumber:"Option",transactionIndex:"Option",from:"H160",to:"Option",value:"U256",gasPrice:"Option",maxFeePerGas:"Option",maxPriorityFeePerGas:"Option",gas:"U256",input:"Bytes",creates:"Option",raw:"Bytes",publicKey:"Option",chainId:"Option",standardV:"U256",v:"U256",r:"U256",s:"U256",accessList:"Option>",transactionType:"Option"},EthTransactionSignature:{v:"u64",r:"H256",s:"H256"},EthTransactionAction:{_enum:{Call:"H160",Create:"Null"}},EthTransactionCondition:{_enum:{block:"u64",time:"u64"}},EthTransactionRequest:{from:"Option",to:"Option",gasPrice:"Option",gas:"Option",value:"Option",data:"Option",nonce:"Option"},EthTransactionStatus:{transactionHash:"H256",transactionIndex:"u32",from:"EthAddress",to:"Option",contractAddress:"Option",logs:"Vec",logsBloom:"EthBloom"},EthWork:{powHash:"H256",seedHash:"H256",target:"H256",number:"Option"}},n6={rpc:e6,runtime:r6,types:YC};var o6={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}]};var i6={rpc:{},runtime:o6,types:{}};var a6={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"}},version:1}]};var s6={rpc:{},runtime:a6,types:{}};var c6={TokensApi:[{methods:{query_existential_deposit:{description:"Query the existential amount for a specific currency",params:[{name:"currencyId",type:"Raw"}],type:"u128"}},version:1}]};var u6={rpc:{},runtime:c6,types:{}};var f6={methods:{description:"Retrieves the list of RPC methods that are exposed by the node",params:[],type:"RpcMethods"}};var l6={rpc:f6,types:{RpcMethods:{version:"u32",methods:"Vec"}}};var d6={hasKey:{description:"Returns true if the keystore has private keys for the given public key and key type.",isUnsafe:!0,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.",isUnsafe:!0,params:[{name:"sessionKeys",type:"Bytes"}],type:"bool"},insertKey:{description:"Insert a key into the keystore.",isUnsafe:!0,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"},removeExtrinsic:{description:"Remove given extrinsic from the pool and temporarily ban it to prevent reimporting",isUnsafe:!0,params:[{name:"bytesOrHash",type:"Vec"}],type:"Vec"},rotateKeys:{description:"Generate new session keys and returns the corresponding public keys",isUnsafe:!0,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"}};var p6={rpc:d6,types:{ExtrinsicOrHash:{_enum:{Hash:"Hash",Extrinsic:"Bytes"}},ExtrinsicStatus:{_enum:{Future:"Null",Ready:"Null",Broadcast:"Vec",InBlock:"Hash",Retracted:"Hash",FinalityTimeout:"Hash",Finalized:"Hash",Usurped:"Hash",Dropped:"Null",Invalid:"Null"}}}};var h6={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"}};var m6={rpc:h6,types:{BlockHash:"Hash"}};var x6={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"},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"},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"},getStorageEntries:{description:"Returns child storage entries for multiple keys at a specific block state",params:[{name:"childKey",type:"PrefixedStorageKey"},{name:"keys",type:"Vec"},{isHistoric:!0,isOptional:!0,name:"at",type:"Hash"}],type:"Vec>"},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"},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"}};var b6={rpc:x6,types:{PrefixedStorageKey:"StorageKey"}};var y6={localStorageGet:{description:"Get offchain local storage under given key and prefix",isUnsafe:!0,params:[{name:"kind",type:"StorageKind"},{name:"key",type:"Bytes"}],type:"Option"},localStorageSet:{description:"Set offchain local storage under given key and prefix",isUnsafe:!0,params:[{name:"kind",type:"StorageKind"},{name:"key",type:"Bytes"},{name:"value",type:"Bytes"}],type:"Null"}};var g6={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}]};var w6={rpc:y6,runtime:g6,types:{StorageKind:{_enum:{PERSISTENT:1,LOCAL:2}}}};var v6={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"}};var ym={query_fee_details:{description:"The transaction fee details",params:[{name:"uxt",type:"Extrinsic"},{name:"len",type:"u32"}],type:"FeeDetails"}},w2={query_call_fee_details:{description:"The call fee details",params:[{name:"call",type:"Call"},{name:"len",type:"u32"}],type:"FeeDetails"}},v2={query_info:{description:"The transaction info",params:[{name:"uxt",type:"Extrinsic"},{name:"len",type:"u32"}],type:"RuntimeDispatchInfo"}},_6={query_call_info:{description:"The call info",params:[{name:"call",type:"Call"},{name:"len",type:"u32"}],type:"RuntimeDispatchInfo"}},_2={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"}},S6={TransactionPaymentApi:[{methods:{..._2,...v2,...ym},version:4},{methods:{..._2,...v2,...ym},version:3},{methods:{...v2,...ym},version:2},{methods:{query_info:{description:"The transaction info",params:[{name:"uxt",type:"Extrinsic"},{name:"len",type:"u32"}],type:"RuntimeDispatchInfo"},...ym},version:1}],TransactionPaymentCallApi:[{methods:{..._2,..._6,...w2},version:3},{methods:{..._6,...w2},version:2},{methods:{CALL:{description:"The call info",params:[{name:"call",type:"Call"},{name:"len",type:"u32"}],type:"RuntimeDispatchInfo"},...w2},version:1}]};var T6={rpc:v6,runtime:S6,types:{FeeDetails:{inclusionFee:"Option"},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"}}};var k6={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"},getChildReadProof:{description:"Returns proof of storage for child key entries at a specific block state.",params:[{name:"childStorageKey",type:"PrefixedStorageKey"},{name:"keys",type:"Vec"},{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"},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"},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)",isUnsafe:!0,params:[{name:"prefix",type:"StorageKey"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"Vec"},getReadProof:{description:"Returns proof of storage entries at a specific block state",params:[{name:"keys",type:"Vec"},{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",isUnsafe:!0,params:[{name:"keys",type:"Vec"},{name:"fromBlock",type:"Hash"},{isOptional:!0,name:"toBlock",type:"BlockHash"}],type:"Vec"},queryStorageAt:{description:"Query storage entries (by key) starting at block hash given as the second parameter",params:[{name:"keys",type:"Vec"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"Vec"},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"}],pubsub:["storage","subscribeStorage","unsubscribeStorage"],type:"StorageChangeSet"},traceBlock:{description:"Provides a way to trace the re-execution of a single block",isUnsafe:!0,params:[{name:"block",type:"Hash"},{name:"targets",type:"Option"},{name:"storageKeys",type:"Option"},{name:"methods",type:"Option"}],type:"TraceBlockResponse"},trieMigrationStatus:{description:"Check current migration state",isUnsafe:!0,params:[{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"MigrationStatusResult"}};var E6={rpc:k6,types:{ApiId:"[u8; 8]",BlockTrace:{blockHash:"Text",parentHash:"Text",tracingTargets:"Text",storageKeys:"Text",spans:"Vec",events:"Vec"},BlockTraceEvent:{target:"Text",data:"BlockTraceEventData",parentId:"Option"},BlockTraceEventData:{stringValues:"HashMap"},BlockTraceSpan:{id:"u64",parentId:"Option",name:"Text",target:"Text",wasm:"bool"},KeyValueOption:"(StorageKey, Option)",MigrationStatusResult:{topRemainingToMigrate:"u64",childRemainingToMigrate:"u64"},ReadProof:{at:"Hash",proof:"Vec"},RuntimeVersionApi:"(ApiId, u32)",RuntimeVersion:{specName:"Text",implName:"Text",authoringVersion:"u32",specVersion:"u32",implVersion:"u32",apis:"Vec",transactionVersion:"u32",stateVersion:"u8"},RuntimeVersionPre4:{specName:"Text",implName:"Text",authoringVersion:"u32",specVersion:"u32",implVersion:"u32",apis:"Vec",transactionVersion:"u32"},RuntimeVersionPre3:{specName:"Text",implName:"Text",authoringVersion:"u32",specVersion:"u32",implVersion:"u32",apis:"Vec"},RuntimeVersionPartial:{specName:"Text",specVersion:"u32",apis:"Vec"},SpecVersion:"u32",StorageChangeSet:{block:"Hash",changes:"Vec"},TraceBlockResponse:{_enum:{TraceError:"TraceError",BlockTrace:"BlockTrace"}},TraceError:{error:"Text"}}};var gm={};Object.keys(ga).forEach(t=>Object.entries(ga[t].rpc||{}).forEach(([e,r])=>{let n=r.aliasSection||t;gm[n]||(gm[n]={}),gm[n][e]=ne({},r,{isSubscription:!!r.pubsub,jsonrpc:`${n}_${e}`,method:e,section:n})}));var wm=gm;var P6=Tr("PortableRegistry"),M6={toNumber:()=>-1},KC={Char:"u32",Str:"Text"},JC=N6(["sp_core::crypto::AccountId32","sp_runtime::generic::era::Era","sp_runtime::multiaddress::MultiAddress","fp_account::AccountId20","account::AccountId20","polkadot_runtime_common::claims::EthereumAddress","frame_support::weights::weight_v2::Weight","sp_weights::weight_v2::Weight","*_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::*","*_runtime::RuntimeCall","*_runtime::RuntimeEvent","ink::env::types::*","ink::primitives::types::*","ink_env::types::*","ink_primitives::types::*","np_runtime::accountname::AccountName","np_runtime::universaladdress::UniversalAddress"]),QC=N6(["pallet_identity::types::BitFlags"]),V6=["bitvec::order::Lsb0","BitOrderLsb0"],$C=["bitvec::order::Msb0","BitOrderMsb0"],A6=[...V6,...$C],eB=["BoundedBTreeMap","BoundedBTreeSet","BoundedVec","Box","BTreeMap","BTreeSet","Cow","Option","Range","RangeInclusive","Result","WeakBoundedVec","WrapperKeepOpaque","WrapperOpaque"],tB=["entries","keys","new","size","hash","registry"],rB=["generic","misc","pallet","traits","types"];function O6(t){let e=t.length,r=new Array(e);for(let n=0;n{let o=e[n].toString();if(r==="*"||r===o)return!0;if(r.includes("*")&&r.includes("_")&&o.includes("_")){let a=r.split("_"),s=o.split("_");if(a[0]==="*"){let u=s.indexOf(a[1]);u!==-1&&(a=a.slice(1),s=s.slice(u))}return a.length===2&&a[1]==="*"&&a[0]===s[0]?!0:S2(a,s)}return!1})}function nB({def:t,path:e}){return["frame_support::weights::weight_v2::Weight","sp_weights::weight_v2::Weight"].includes(e.join("::"))?!t.isComposite||t.asComposite.fields.length===1?"WeightV1":null:e.length&&JC.some(r=>S2(r,e))?e[e.length-1].toString():null}function C6(t,e,r,n,o=!1){let a=n.length;if(a===0||eB.includes(n[a-1].toString()))return null;let s=new Array(a),u=new Array(a);for(let h=0;h{let{lookupIndex:s,name:u,params:l}=o;if(u){if(n[s])return o}else return null;let h=iB(u,a,r);if(h.length===1||!h.some(B=>l.length!==B.params.length||l.some((L,Z)=>!L.name.eq(B.params[Z].name)||L.type.unwrapOr(M6).toNumber()!==B.params[Z].type.unwrapOr(M6).toNumber())))return o;let _=l.findIndex(({type:B},L)=>h.every(({params:Z},G)=>Z[L].type.isSome&&(G===0||!Z[L].type.eq(B))));if(_===-1)return o;let V=h.length,R=new Array(V);for(let B=0;B!!o).map(({lookupIndex:o,name:a,params:s})=>({lookupIndex:o,name:n[o]||a,params:s}))}function sB(t,e,r,n){if(t.registry.register(e),n.SpRuntimeUncheckedExtrinsic){let[o,,a]=n.SpRuntimeUncheckedExtrinsic,s=t.getSiType(o.type.unwrap()),l=t.getSiType(a.type.unwrap()).path.join("::"),h=s.path.join("::"),y=h==="sp_runtime::multiaddress::MultiAddress";if(y){let[_]=s.params;h=t.getSiType(_.type.unwrap()).path.join("::")}t.registry.register({AccountId:h.endsWith("::AccountId20")||h.endsWith("::H160")?"AccountId20":"AccountId32",Address:y?"MultiAddress":"AccountId",ExtrinsicSignature:["sp_runtime::MultiSignature"].includes(l)?"MultiSignature":r[a.type.unwrap().toNumber()]||"MultiSignature"})}}function cB(t,e){let r=Object.keys(t).some(o=>!o.startsWith("Pallet")),n={};if(t.SpRuntimeUncheckedExtrinsic){let[,{type:o}]=t.SpRuntimeUncheckedExtrinsic;n[o.unwrap().toNumber()]="Call"}else r&&!e&&P6.warn("Unable to determine runtime Call type, cannot inspect sp_runtime::generic::unchecked_extrinsic::UncheckedExtrinsic");if(t.FrameSystemEventRecord){let[{type:o}]=t.FrameSystemEventRecord;n[o.unwrap().toNumber()]="Event"}else r&&!e&&P6.warn("Unable to determine runtime Event type, cannot inspect frame_system::EventRecord");return n}function uB(t,e){let r=[],n={};for(let l=0,h=e.length;l"},r);let{lookups:o,names:a,params:s,types:u}=uB(this,this.types);this.__internal__alias=cB(s,n),this.__internal__lookups=o,this.__internal__names=a,this.__internal__params=s,this.__internal__types=u}get names(){return Object.values(this.__internal__names).sort()}get paramTypes(){return this.__internal__params}get types(){return this.getT("types")}register(){sB(this,this.__internal__lookups,this.__internal__names,this.__internal__params)}getName(e){return this.__internal__names[this.__internal__getLookupId(e)]}getSiType(e){let r=(this.__internal__types||this.types)[this.__internal__getLookupId(e)];if(!r)throw new Error(`PortableRegistry: Unable to find type with lookupId ${e.toString()}`);return r.type}getTypeDef(e){let r=this.__internal__getLookupId(e);if(!this.__internal__typeDefs[r]){let n=this.__internal__names[r],o={info:Q.DoNotConstruct,lookupIndex:r,lookupName:n,type:this.registry.createLookupType(r)};n&&(this.__internal__typeDefs[r]=o);let a=this.__internal__extract(this.getSiType(e),r);n||(this.__internal__typeDefs[r]=o),Object.keys(a).forEach(s=>{(s!=="lookupName"||a[s])&&(this.__internal__typeDefs[r][s]=a[s])}),a.info===Q.Plain&&(this.__internal__typeDefs[r].lookupNameRoot=this.__internal__typeDefs[r].lookupName,delete this.__internal__typeDefs[r].lookupName)}return this.__internal__typeDefs[r]}sanitizeField(e){let r=null,n=null;return e.isSome&&(r=et(e.unwrap()),r.includes("#")?(n=r,r=n.replace(/#/g,"_")):tB.includes(r)&&(n=r,r=`${r}_`)),[r,n]}__internal__createSiDef(e){let r=this.getTypeDef(e),n=e.toNumber();return[Q.DoNotConstruct,Q.Enum,Q.Struct].includes(r.info)&&r.lookupName?{docs:r.docs,info:Q.Si,lookupIndex:n,lookupName:this.__internal__names[n],type:this.registry.createLookupType(e)}:r}__internal__getLookupId(e){if(qe(e)){if(!this.registry.isLookupType(e))throw new Error(`PortableRegistry: Expected a lookup string type, found ${e}`);return parseInt(e.replace("Lookup",""),10)}else if(De(e))return e;return e.toNumber()}__internal__extract(e,r){let n=e.path.join("::"),o,a=this.__internal__alias[r]||nB(e);try{if(a)o=this.__internal__extractAliasPath(r,a);else switch(e.def.type){case"Array":o=this.__internal__extractArray(r,e.def.asArray);break;case"BitSequence":o=this.__internal__extractBitSequence(r,e.def.asBitSequence);break;case"Compact":o=this.__internal__extractCompact(r,e.def.asCompact);break;case"Composite":o=this.__internal__extractComposite(r,e,e.def.asComposite);break;case"HistoricMetaCompat":o=this.__internal__extractHistoric(r,e.def.asHistoricMetaCompat);break;case"Primitive":o=this.__internal__extractPrimitive(r,e);break;case"Sequence":o=this.__internal__extractSequence(r,e.def.asSequence);break;case"Tuple":o=this.__internal__extractTuple(r,e.def.asTuple);break;case"Variant":o=this.__internal__extractVariant(r,e,e.def.asVariant);break;default:a9(e.def.type)}}catch(s){throw new Error(`PortableRegistry: ${r}${n?` (${n})`:""}: Error extracting ${Le(e)}: ${s.message}`)}return ne({docs:O6(e.docs),namespace:n},o)}__internal__extractArray(e,{len:r,type:n}){let o=r.toNumber();if(o>2048)throw new Error("Only support for [Type; ], where length <= 2048");return Xn(this.registry,{info:Q.VecFixed,length:o,sub:this.__internal__createSiDef(n)})}__internal__extractBitSequence(e,{bitOrderType:r,bitStoreType:n}){let o=this.__internal__createSiDef(r),a=this.__internal__createSiDef(n),[s,u]=A6.includes(o.namespace||"")?[o,a]:[a,o];if(!s.namespace||!A6.includes(s.namespace))throw new Error(`Unexpected bitOrder found as ${s.namespace||""}`);if(u.info!==Q.Plain||u.type!=="u8")throw new Error(`Only u8 bitStore is currently supported, found ${u.type}`);let l=V6.includes(s.namespace);return{info:Q.Plain,type:"BitVec"}}__internal__extractCompact(e,{type:r}){return Xn(this.registry,{info:Q.Compact,sub:this.__internal__createSiDef(r)})}__internal__extractComposite(e,{params:r,path:n},{fields:o}){if(n.length){let a=n[0].toString(),s=n[n.length-1].toString();if(n.length===1&&a==="BTreeMap"){if(r.length!==2)throw new Error(`BTreeMap requires 2 parameters, found ${r.length}`);return Xn(this.registry,{info:Q.BTreeMap,sub:r.map(({type:u})=>this.__internal__createSiDef(u.unwrap()))})}else if(n.length===1&&a==="BTreeSet"){if(r.length!==1)throw new Error(`BTreeSet requires 1 parameter, found ${r.length}`);return Xn(this.registry,{info:Q.BTreeSet,sub:this.__internal__createSiDef(r[0].type.unwrap())})}else if(["Range","RangeInclusive"].includes(a)){if(r.length!==1)throw new Error(`Range requires 1 parameter, found ${r.length}`);return Xn(this.registry,{info:a==="Range"?Q.Range:Q.RangeInclusive,sub:this.__internal__createSiDef(r[0].type.unwrap()),type:a})}else if(["WrapperKeepOpaque","WrapperOpaque"].includes(s)){if(r.length!==1)throw new Error(`WrapperOpaque requires 1 parameter, found ${r.length}`);return Xn(this.registry,{info:s==="WrapperKeepOpaque"?Q.WrapperKeepOpaque:Q.WrapperOpaque,sub:this.__internal__createSiDef(r[0].type.unwrap()),type:s})}}return QC.some(a=>S2(a,n))?this.__internal__extractCompositeSet(e,r,o):this.__internal__extractFields(e,o)}__internal__extractCompositeSet(e,r,n){if(r.length!==1||n.length!==1)throw new Error("Set handling expects param/field as single entries");return Xn(this.registry,{info:Q.Set,length:this.registry.createTypeUnsafe(this.registry.createLookupType(n[0].type),[]).bitLength(),sub:this.getSiType(r[0].type.unwrap()).def.asVariant.variants.map(({index:o,name:a})=>({index:o.toNumber(),info:Q.Plain,name:a.toString(),type:"Null"}))})}__internal__extractFields(e,r){let n=!0,o=!0,a=r.length;for(let l=0;lthis.__internal__createSiDef(o));return Xn(this.registry,{info:Q.Tuple,lookupIndex:e,lookupName:this.__internal__names[e],sub:n})}__internal__extractVariant(e,{params:r,path:n},{variants:o}){if(n.length){let a=n[0].toString();if(a==="Option"){if(r.length!==1)throw new Error(`Option requires 1 parameter, found ${r.length}`);return Xn(this.registry,{info:Q.Option,sub:this.__internal__createSiDef(r[0].type.unwrap())})}else if(a==="Result"){if(r.length!==2)throw new Error(`Result requires 2 parameters, found ${r.length}`);return Xn(this.registry,{info:Q.Result,sub:r.map(({type:s},u)=>ne({name:["Ok","Error"][u]},this.__internal__createSiDef(s.unwrap())))})}}return o.length===0?{info:Q.Null,type:"Null"}:this.__internal__extractVariantEnum(e,o)}__internal__extractVariantEnum(e,r){let n=[];return r.slice().sort((o,a)=>o.index.cmp(a.index)).forEach(({fields:o,index:a,name:s})=>{let u=a.toNumber();for(;n.length!==u;)n.push({index:n.length,info:Q.Null,name:`__Unused${n.length}`,type:"Null"});n.push(ne(this.__internal__extractFields(-1,o),{index:u,name:s.toString()}))}),Xn(this.registry,{info:Q.Enum,lookupIndex:e,lookupName:this.__internal__names[e],sub:n})}};function Jl(t,e=[]){for(let r=0,n=t.length;rr||n))}function Ql(t,{info:e}){throw new Error(`Unhandled: Unable to create and validate type from ${t} (info=${Q[e]})`)}var fB={[Q.BTreeMap]:Uc,[Q.BTreeSet]:Ui,[Q.Compact]:Ui,[Q.DoNotConstruct]:Ql,[Q.Enum]:Uc,[Q.HashMap]:Uc,[Q.Int]:Ql,[Q.Linkage]:Ui,[Q.Null]:Ql,[Q.Option]:Ui,[Q.Plain]:(t,e)=>e.lookupName||e.type,[Q.Range]:Ui,[Q.RangeInclusive]:Ui,[Q.Result]:Uc,[Q.Set]:Uc,[Q.Si]:Ql,[Q.Struct]:Uc,[Q.Tuple]:Uc,[Q.UInt]:Ql,[Q.Vec]:Ui,[Q.VecFixed]:Ui,[Q.WrapperKeepOpaque]:Ui,[Q.WrapperOpaque]:Ui};function vm(t){let e=t.length,r=new Array(e);for(let n=0;n!t.hasType(o)&&!t.isLookupType(o)).sort();if(n.length!==0){let o=`Unknown types found, no types for ${n.join(", ")}`;if(e)throw new Error(o);lB.warn(o)}return r}function U6(t,e){return e.map(({type:r})=>t.getTypeDef(r).type)}function R6(t,e){return t.getSiType(e).def.asVariant.variants.map(({fields:r})=>U6(t,r))}function dB({lookup:t,pallets:e}){return e.reduce((r,{calls:n,constants:o,events:a,storage:s})=>(r.push([U6(t,o)]),n.isSome&&r.push(R6(t,n.unwrap().type)),a.isSome&&r.push(R6(t,a.unwrap().type)),s.isSome&&r.push(s.unwrap().items.map(({type:u})=>{if(u.isPlain)return[t.getTypeDef(u.asPlain).type];let{hashers:l,key:h,value:y}=u.asMap;return l.length===1?[t.getTypeDef(y).type,t.getTypeDef(h).type]:[t.getTypeDef(y).type,...t.getSiType(h).def.asTuple.map(_=>t.getTypeDef(_).type)]})),r),[])}function T2(t,e,r){return B6(t,r,Jl(dB(e)))}function pB(t){let e=t.map(n=>n.toString().trim()),r=e.findIndex(n=>!n.length);return r===-1?e:e.slice(0,r)}function k2(t,{extrinsic:e,lookup:r,pallets:n}){return t.createTypeUnsafe("MetadataLatest",[{extrinsic:e,lookup:{types:r.types.map(({id:o,type:a})=>t.createTypeUnsafe("PortableType",[{id:o,type:ne({},a,{docs:pB(a.docs)})}]))},pallets:n.map(({calls:o,index:a,name:s})=>({calls:t.createTypeUnsafe("Option",[o.unwrapOr(null)]),index:a,name:s}))}]).toJSON()}function hB(t){return t.isPlain?t.asPlain:t.asMap.value}function _m(t,e,r){let n=Ri(t.lookup,hB(e));return r?`Option<${n}>`:n}function Hi(t,{type:e},r,n){let o={},a=t.getSiType(e).def.asVariant.variants;for(let s=0,u=a.length;s",assetId:"TAssetConversion"},payload:{}}};var z6={extrinsic:{era:"ExtrinsicEra"},payload:{blockHash:"Hash"}},F6={extrinsic:{tip:"Compact"},payload:{}},q6={ChargeTransactionPayment:F6,CheckBlockGasLimit:An,CheckEra:z6,CheckGenesis:{extrinsic:{},payload:{genesisHash:"Hash"}},CheckMortality:z6,CheckNonZeroSender:An,CheckNonce:{extrinsic:{nonce:"Compact"},payload:{}},CheckSpecVersion:{extrinsic:{},payload:{specVersion:"u32"}},CheckTxVersion:{extrinsic:{},payload:{transactionVersion:"u32"}},CheckVersion:{extrinsic:{},payload:{specVersion:"u32"}},CheckWeight:An,LockStakingStatus:An,SkipCheckIfFeeless:F6,ValidateEquivocationReport:An};var W6=ne({},q6,H6,L6,D6),Sm=["CheckVersion","CheckGenesis","CheckEra","CheckNonce","CheckWeight","ChargeTransactionPayment","CheckBlockGasLimit"];function j6(t,e={}){let r=[...Object.keys(W6),...Object.keys(e)];return t.filter(n=>!r.includes(n))}function E2(t,e,r={}){return t.map(n=>r[n]||W6[n]).filter(n=>!!n).reduce((n,o)=>ne(n,o[e]),{})}function mB(t,e){if(!e?.length)return{DataType:gn};let r=e.subarray(0,2);return{DataType:t.findMetaEvent(r),value:{data:e.subarray(2),index:r}}}var df=class extends Uo{__internal__meta;__internal__method;__internal__names=null;__internal__section;__internal__typeDef;constructor(e,r,n,o="",a=""){let s=n?.fields||[];super(e,s.map(({type:l})=>e.createLookupType(l)),r),this.__internal__meta=n,this.__internal__method=a,this.__internal__section=o,this.__internal__typeDef=s.map(({type:l})=>e.lookup.getTypeDef(l));let u=s.map(({name:l})=>e.lookup.sanitizeField(l)[0]).filter(l=>!!l);u.length===s.length&&(this.__internal__names=u,qn(this,u,(l,h)=>this[h]))}get meta(){return this.__internal__meta}get method(){return this.__internal__method}get names(){return this.__internal__names}get section(){return this.__internal__section}get typeDef(){return this.__internal__typeDef}toHuman(e){if(this.__internal__names!==null){let r={};for(let n=0,o=this.__internal__names.length;nr.toString())}:null,super.toHuman(e))}};var C2={};br(C2,{BitVec:()=>Xl,Bool:()=>ho,Bytes:()=>ai,Data:()=>jm,F32:()=>_c,F64:()=>Sc,GenericAccountId:()=>wa,GenericAccountId32:()=>wa,GenericAccountId33:()=>Rm,GenericAccountIndex:()=>Ir,GenericAddress:()=>pf,GenericBlock:()=>Um,GenericCall:()=>Lm,GenericChainProperties:()=>zm,GenericConsensusEngineId:()=>Fm,GenericEthereumAccountId:()=>hf,GenericEthereumLookupSource:()=>od,GenericEvent:()=>Tm,GenericEventData:()=>df,GenericExtrinsic:()=>Hc,GenericExtrinsicEra:()=>td,GenericExtrinsicPayload:()=>rd,GenericExtrinsicPayloadUnknown:()=>Im,GenericExtrinsicPayloadV4:()=>Lc,GenericExtrinsicSignatureV4:()=>Cm,GenericExtrinsicUnknown:()=>Vm,GenericExtrinsicV4:()=>km,GenericImmortalEra:()=>$l,GenericLookupSource:()=>nd,GenericMortalEra:()=>ed,GenericMultiAddress:()=>pf,GenericSignerPayload:()=>Nm,GenericVote:()=>Wm,I128:()=>Pc,I16:()=>kc,I256:()=>Mc,I32:()=>ya,I64:()=>Ec,I8:()=>Tc,ISize:()=>Ac,Null:()=>gn,OptionBool:()=>Gl,StorageKey:()=>Dc,Text:()=>vc,Type:()=>Zl,U128:()=>Vc,U16:()=>Ic,U256:()=>Nc,U32:()=>mo,U64:()=>nn,U8:()=>Oc,USize:()=>Cc,bool:()=>ho,f32:()=>_c,f64:()=>Sc,i128:()=>Pc,i16:()=>kc,i256:()=>Mc,i32:()=>ya,i64:()=>Ec,i8:()=>Tc,isize:()=>Ac,u128:()=>Vc,u16:()=>Ic,u256:()=>Nc,u32:()=>mo,u64:()=>nn,u8:()=>Oc,usize:()=>Cc});var P2=4,km=class t extends Ct{constructor(e,r,{isSigned:n}={}){super(e,{signature:"ExtrinsicSignatureV4",method:"Call"},t.decodeExtrinsic(e,r,n))}static decodeExtrinsic(e,r,n=!1){if(r instanceof t)return r;if(r instanceof e.createClassUnsafe("Call"))return{method:r};if(ue(r)){let o=e.createTypeUnsafe("ExtrinsicSignatureV4",[r,{isSigned:n}]);return{method:e.createTypeUnsafe("Call",[r.subarray(o.encodedLength)]),signature:o}}return r||{}}get encodedLength(){return this.toU8a().length}get method(){return this.getT("method")}get signature(){return this.getT("signature")}get version(){return P2}addSignature(e,r,n){return this.signature.addSignature(e,r,n),this}sign(e,r){return this.signature.sign(this.method,e,r),this}signFake(e,r){return this.signature.signFake(this.method,e,r),this}};var Em=new Uint8Array,Pm=4,Mm=new Uint8Array([0]),Am=127;var X6=["ExtrinsicUnknown","ExtrinsicUnknown","ExtrinsicUnknown","ExtrinsicUnknown","ExtrinsicV4"];function Om(t,e,r){if(e instanceof Hc)return e.unwrap();let n=(r&128)===128,o=X6[r&Am]||X6[0];return t.createTypeUnsafe(o,[e,{isSigned:n,version:r}])}function bB(t,e,r=Pm){return ue(e)||Array.isArray(e)||Ae(e)?yB(t,K(e),r):e instanceof t.createClassUnsafe("Call")?Om(t,{method:e},r):Om(t,e,r)}function yB(t,e,r){if(!e.length)return Om(t,new Uint8Array,r);let[n,o]=$s(e),a=n+o.toNumber();if(a>e.length)throw new Error(`Extrinsic: length less than remainder, expected at least ${a}, found ${e.length}`);let s=e.subarray(n,a);return Om(t,s.subarray(1),s[0])}var A2=class extends ii{constructor(e,r,n){super(e,r,n);let o=Object.keys(e.getSignedExtensionTypes()),a=s=>this.inner.signature[s];for(let s=0,u=o.length;s>12,1),u=a/s*s;return[new nn(t,o),new nn(t,u)]}function _B(t,e){if(e.length===0)return[new nn(t),new nn(t)];let r=Fr(e.subarray(0,1)).toNumber(),n=Fr(e.subarray(1,2)).toNumber(),o=r+(n<<8),a=2<>12,1),u=(o>>4)*s;if(a<4||u>=a)throw new Error("Invalid data passed to Mortal era");return[new nn(t,a),new nn(t,u)]}function O2(t=new Uint8Array){if(ue(t))return!t.length||t[0]===0?new Uint8Array([0]):new Uint8Array([1,t[0],t[1]]);if(t){if(t instanceof td)return O2(t.toU8a());if(Ae(t))return O2(jt(t));if(Sr(t)){let e=Object.entries(t).map(([o,a])=>[o.toLowerCase(),a]),r=e.find(([o])=>o.toLowerCase()==="mortalera"),n=e.find(([o])=>o.toLowerCase()==="immortalera");return r?{MortalEra:r[1]}:n?{ImmortalEra:n[1]}:{MortalEra:t}}}else return new Uint8Array([0]);throw new Error("Invalid data passed to Era")}var $l=class extends yr{constructor(e,r){super(e,Mm)}},ed=class extends Uo{constructor(e,r){super(e,{period:nn,phase:nn},wB(e,r))}get encodedLength(){return 2}get period(){return this[0]}get phase(){return this[1]}toHuman(){return{period:Vu(this.period),phase:Vu(this.phase)}}toJSON(){return this.toHex()}toU8a(e){let r=this.period.toNumber(),n=Math.min(15,Math.max(1,gB(r)-1))+(this.phase.toNumber()/Math.max(r>>12,1)<<4);return new Uint8Array([n&255,n>>8])}birth(e){let r=this.phase.toNumber(),n=this.period.toNumber();return~~((Math.max(Dt(e).toNumber(),r)-r)/n)*n+r}death(e){return this.birth(e)+this.period.toNumber()}},td=class extends Dr{constructor(e,r){super(e,{ImmortalEra:$l,MortalEra:ed},O2(r))}get encodedLength(){return this.isImmortalEra?this.asImmortalEra.encodedLength:this.asMortalEra.encodedLength}get asImmortalEra(){if(!this.isImmortalEra)throw new Error(`Cannot convert '${this.type}' via asImmortalEra`);return this.inner}get asMortalEra(){if(!this.isMortalEra)throw new Error(`Cannot convert '${this.type}' via asMortalEra`);return this.inner}get isImmortalEra(){return this.index===0}get isMortalEra(){return this.index>0}toU8a(e){return this.isMortalEra?this.asMortalEra.toU8a(e):this.asImmortalEra.toU8a(e)}};var G6=["ExtrinsicPayloadUnknown","ExtrinsicPayloadUnknown","ExtrinsicPayloadUnknown","ExtrinsicPayloadUnknown","ExtrinsicPayloadV4"];function SB(t,e,r=Pm){return e instanceof rd?e.unwrap():t.createTypeUnsafe(G6[r]||G6[0],[e,{version:r}])}var rd=class extends ii{constructor(e,r,{version:n}={}){super(e,SB(e,r,n))}get blockHash(){return this.inner.blockHash}get era(){return this.inner.era}get genesisHash(){return this.inner.genesisHash||this.registry.createTypeUnsafe("Hash",[])}get method(){return this.inner.method}get nonce(){return this.inner.nonce}get specVersion(){return this.inner.specVersion||this.registry.createTypeUnsafe("u32",[])}get tip(){return this.inner.tip||this.registry.createTypeUnsafe("Compact",[])}get transactionVersion(){return this.inner.transactionVersion||this.registry.createTypeUnsafe("u32",[])}eq(e){return this.inner.eq(e)}sign(e){let r=this.inner.sign(e);return{signature:Te(r)}}toHuman(e){return this.inner.toHuman(e)}toJSON(){return this.toHex()}toRawType(){return"ExtrinsicPayload"}toString(){return this.toHex()}toU8a(e){return super.toU8a(e?{method:!0}:!1)}};var Im=class extends Ct{constructor(e,r,{version:n=0}={}){throw super(e,{}),new Error(`Unsupported extrinsic payload version ${n}`)}};var Vm=class extends Ct{constructor(e,r,{isSigned:n=!1,version:o=0}={}){throw super(e,{}),new Error(`Unsupported ${n?"":"un"}signed extrinsic version ${o&Am}`)}};var Z6={address:"Address",blockHash:"Hash",blockNumber:"BlockNumber",era:"ExtrinsicEra",genesisHash:"Hash",method:"Call",nonce:"Compact",runtimeVersion:"RuntimeVersion",signedExtensions:"Vec",tip:"Compact",version:"u8"},Nm=class extends Ct{__internal__extraTypes;constructor(e,r){let n=ne({},e.getSignedExtensionTypes(),e.getSignedExtensionExtra());super(e,ne({},n,Z6),r),this.__internal__extraTypes={};let o=a=>this.get(a);for(let[a,s]of Object.entries(n))Z6[a]||(this.__internal__extraTypes[a]=s),Nu(this,a,o)}get address(){return this.getT("address")}get blockHash(){return this.getT("blockHash")}get blockNumber(){return this.getT("blockNumber")}get era(){return this.getT("era")}get genesisHash(){return this.getT("genesisHash")}get method(){return this.getT("method")}get nonce(){return this.getT("nonce")}get runtimeVersion(){return this.getT("runtimeVersion")}get signedExtensions(){return this.getT("signedExtensions")}get tip(){return this.getT("tip")}get version(){return this.getT("version")}toPayload(){let e={},r=Object.keys(this.__internal__extraTypes);for(let n=0,o=r.length;nn.toString()),specVersion:this.runtimeVersion.specVersion.toHex(),tip:this.tip.toHex(),transactionVersion:this.runtimeVersion.transactionVersion.toHex(),version:this.version.toNumber()})}toRaw(){let e=this.toPayload(),r=Te(this.registry.createTypeUnsafe("ExtrinsicPayload",[e,{version:e.version}]).toU8a({method:!0}));return{address:e.address,data:r,type:"payload"}}};function Y6(t,e,r,n){let o=r.length>256?t.hash(r):r;return e.sign(o,n)}var Lc=class extends Ct{__internal__signOptions;constructor(e,r){super(e,ne({method:"Bytes"},e.getSignedExtensionTypes(),e.getSignedExtensionExtra()),r),this.__internal__signOptions={withType:e.createTypeUnsafe("ExtrinsicSignature",[])instanceof Dr}}inspect(){return super.inspect({method:!0})}get blockHash(){return this.getT("blockHash")}get era(){return this.getT("era")}get genesisHash(){return this.getT("genesisHash")}get method(){return this.getT("method")}get nonce(){return this.getT("nonce")}get specVersion(){return this.getT("specVersion")}get tip(){return this.getT("tip")}get transactionVersion(){return this.getT("transactionVersion")}get assetId(){return this.getT("assetId")}sign(e){return Y6(this.registry,e,this.toU8a({method:!0}),this.__internal__signOptions)}};var TB=new Uint8Array(256).fill(1);function I2(t,e){return t.createTypeUnsafe("Address",[ue(e)?Te(e):e])}var Cm=class t extends Ct{__internal__signKeys;constructor(e,r,{isSigned:n}={}){let o=e.getSignedExtensionTypes();super(e,ne({signer:"Address",signature:"ExtrinsicSignature"},o),t.decodeExtrinsicSignature(r,n)),this.__internal__signKeys=Object.keys(o),qn(this,this.__internal__signKeys,a=>this.get(a))}static decodeExtrinsicSignature(e,r=!1){if(e){if(e instanceof t)return e}else return Em;return r?e:Em}get encodedLength(){return this.isSigned?super.encodedLength:0}get isSigned(){return!this.signature.isEmpty}get era(){return this.getT("era")}get nonce(){return this.getT("nonce")}get signature(){return this.multiSignature.value||this.multiSignature}get multiSignature(){return this.getT("signature")}get signer(){return this.getT("signer")}get tip(){return this.getT("tip")}_injectSignature(e,r,n){for(let o=0,a=this.__internal__signKeys.length;os))throw new Error(`Invalid AccountId provided, expected ${r>>3} bytes, found ${o.length}`);super(e,o,r)}eq(e){return super.eq(K6(e))}toHuman(){return this.toJSON()}toJSON(){return this.toString()}toPrimitive(){return this.toJSON()}toString(){return ni(this,this.registry.chainSS58)}toRawType(){return"AccountId"}},wa=class extends Bm{constructor(e,r){super(e,256,r)}},Rm=class extends Bm{constructor(e,r){super(e,264,r)}};var kB=239,J6=252,Q6=253,$6=254,EB=new be.default(kB),PB=new be.default(1).shln(16),MB=new be.default(1).shln(32);function e_(t){return t instanceof Ir?t.toBn():hr(t)||De(t)||Ae(t)||ue(t)||un(t)?t:e_(tr(t))}var Ir=class t extends mo{constructor(e,r=new be.default(0)){super(e,e_(r))}static calcLength(e){let r=Dt(e);return r.lte(EB)?1:r.lt(PB)?2:r.lt(MB)?4:8}static readLength(e){let r=e[0];return r===J6?[1,2]:r===Q6?[1,4]:r===$6?[1,8]:[0,1]}static writeLength(e){switch(e.length){case 2:return new Uint8Array([J6]);case 4:return new Uint8Array([Q6]);case 8:return new Uint8Array([$6]);default:return new Uint8Array([])}}eq(e){return hr(e)||De(e)?super.eq(e):super.eq(this.registry.createTypeUnsafe("AccountIndex",[e]))}toHuman(){return this.toJSON()}toJSON(){return this.toString()}toPrimitive(){return this.toJSON()}toString(){let e=t.calcLength(this);return ni(this.toU8a().subarray(0,e),this.registry.chainSS58)}toRawType(){return"AccountIndex"}};var Um=class extends Ct{constructor(e,r){super(e,{header:"Header",extrinsics:"Vec"},r)}get contentHash(){return this.registry.hash(this.toU8a())}get extrinsics(){return this.getT("extrinsics")}get hash(){return this.header.hash}get header(){return this.getT("header")}};function V2(t,e){return e.fields.reduce((r,{name:n,type:o},a)=>(r[n.unwrapOr(`param${a}`).toString()]=t.createLookupType(o),r),{})}function AB(t,e,r){let{args:n,callIndex:o}=e,a=o instanceof Hm?o.toU8a():o,s=r||t.findMetaCall(a).meta;return{args:n,argsDef:V2(t,s),callIndex:o,meta:s}}function OB(t,e,r){let n=t.firstCallIndex.slice();n.set(e.subarray(0,2),0);let o=r||t.findMetaCall(n).meta;return{args:e.subarray(2),argsDef:V2(t,o),callIndex:n,meta:o}}function IB(t,e=new Uint8Array,r){if(ue(e)||Ae(e))return OB(t,K(e),r);if(Sr(e)&&e.callIndex&&e.args)return AB(t,e,r);throw new Error(`Call: Cannot decode value '${e}' of type ${typeof e}`)}var Hm=class extends wn{constructor(e,r){super(e,r,16)}toPrimitive(){return this.toHex()}},Lm=class extends Ct{_meta;constructor(e,r,n){let o=IB(e,r,n);try{super(e,{callIndex:Hm,args:Ct.with(o.argsDef)},o)}catch(a){let s="unknown.unknown";try{let u=e.findMetaCall(o.callIndex);s=`${u.section}.${u.method}`}catch{}throw new Error(`Call: failed decoding ${s}:: ${a.message}`)}this._meta=o.meta}get args(){return[...this.getT("args").values()]}get argsDef(){return V2(this.registry,this.meta)}get argsEntries(){return[...this.getT("args").entries()]}get callIndex(){return this.getT("callIndex").toU8a()}get data(){return this.getT("args").toU8a()}get meta(){return this._meta}get method(){return this.registry.findMetaCall(this.callIndex).method}get section(){return this.registry.findMetaCall(this.callIndex).section}is(e){return e.callIndex[0]===this.callIndex[0]&&e.callIndex[1]===this.callIndex[1]}toHuman(e){let r;try{r=this.registry.findMetaCall(this.callIndex)}catch{}return ne({args:this.argsEntries.reduce((n,[o,a])=>ne(n,{[o]:a.toHuman(e)}),{}),method:r?.method,section:r?.section},e&&r?{docs:r.meta.docs.map(n=>n.toString())}:null)}toRawType(){return"Call"}};function Dm(t,e,r,n=!0){return r&&we(r.unwrapOrDefault)?r:t.createTypeUnsafe(e,[n?io(r)||Qe(r)?null:Array.isArray(r)?r:[r]:r])}function VB(t,e,r){return e==="ss58Format"?Dm(t,"Option",r,!1):e==="tokenDecimals"?Dm(t,"Option>",r):e==="tokenSymbol"?Dm(t,"Option>",r):e==="isEthereum"?Dm(t,"Bool",r,!1):r}function NB(t,e){return(e&&we(e.entries)?[...e.entries()]:Object.entries(e||{})).reduce((r,[n,o])=>(r[n]=VB(t,n,o),r),{isEthereum:t.createTypeUnsafe("Bool",[]),ss58Format:t.createTypeUnsafe("Option",[]),tokenDecimals:t.createTypeUnsafe("Option>",[]),tokenSymbol:t.createTypeUnsafe("Option>",[])})}var zm=class extends bs{constructor(e,r){super(e,NB(e,r))}get isEthereum(){return this.getT("isEthereum")}get ss58Format(){return this.getT("ss58Format")}get tokenDecimals(){return this.getT("tokenDecimals")}get tokenSymbol(){return this.getT("tokenSymbol")}};var CB=yt("aura"),BB=yt("BABE"),RB=yt("FRNK"),UB=yt("pow_"),HB=yt("nmbs");function LB(t,e,r){return r[t.createTypeUnsafe("RawAuraPreDigest",[e.toU8a(!0)]).slotNumber.mod(new be.default(r.length)).toNumber()]}function DB(t,e,r){let n=t.createTypeUnsafe("RawBabePreDigestCompat",[e.toU8a(!0)]);return r[n.value.toNumber()]}function zB(t,e){return t.createTypeUnsafe("AccountId",[e])}var Fm=class extends wn{constructor(e,r){super(e,De(r)?$t(r,{isLe:!1}):r,32)}get isAura(){return this.eq(CB)}get isBabe(){return this.eq(BB)}get isGrandpa(){return this.eq(RB)}get isPow(){return this.eq(UB)}get isNimbus(){return this.eq(HB)}extractAuthor(e,r){if(r?.length){if(this.isAura)return LB(this.registry,e,r);if(this.isBabe)return DB(this.registry,e,r)}if(this.isPow||this.isNimbus)return zB(this.registry,e)}toHuman(){return this.toString()}toRawType(){return"ConsensusEngineId"}toString(){return this.isAscii?Qr(this):Te(this)}};var t_=new Uint8Array([255]);function FB(t,e){let r=tr(e);return r.length===32?t.createTypeUnsafe("AccountId",[r]):t.createTypeUnsafe("AccountIndex",[Fr(r)])}function qB(t,e){if(e.length===32)return t.createTypeUnsafe("AccountId",[e]);if(e[0]===255)return t.createTypeUnsafe("AccountId",[e.subarray(1)]);let[r,n]=Ir.readLength(e);return t.createTypeUnsafe("AccountIndex",[Fr(e.subarray(r,r+n))])}function WB(t,e){return e instanceof nd?e.inner:e instanceof wa||e instanceof Ir?e:hr(e)||De(e)||un(e)?t.createTypeUnsafe("AccountIndex",[e]):Array.isArray(e)||Ae(e)||ue(e)?qB(t,K(e)):FB(t,e)}var nd=class extends ii{constructor(e,r=new Uint8Array){super(e,WB(e,r))}get encodedLength(){let e=this._rawLength;return e+(e>1?1:0)}get _rawLength(){return this.inner instanceof Ir?Ir.calcLength(this.inner):this.inner.encodedLength}inspect(){let e=this.inner.toU8a().subarray(0,this._rawLength);return{outer:[new Uint8Array(this.inner instanceof Ir?Ir.writeLength(e):t_),e]}}toHex(){return Te(this.toU8a())}toRawType(){return"Address"}toU8a(e){let r=this.inner.toU8a().subarray(0,this._rawLength);return e?r:Ke(this.inner instanceof Ir?Ir.writeLength(r):t_,r)}};function r_(t,e){return[0,32].includes(e.length)?{Id:e}:e.length===20?{Address20:e}:e.length<=8?{Index:t.createTypeUnsafe("AccountIndex",[e]).toNumber()}:e}function jB(t,e){return e instanceof wa?{Id:e}:ue(e)?r_(t,e):e instanceof pf?e:e instanceof Ir||hr(e)||De(e)?{Index:De(e)?e:e.toNumber()}:qe(e)?r_(t,tr(e.toString())):e}var pf=class extends Dr{constructor(e,r){super(e,{Id:"AccountId",Index:"Compact",Raw:"Bytes",Address32:"H256",Address20:"H160"},jB(e,r))}inspect(){let{inner:e,outer:r=[]}=this.inner.inspect();return{inner:e,outer:[new Uint8Array([this.index]),...r]}}toString(){return this.value.toString()}};var qm=128,N2=0,XB=127,o_=0;function n_(t){return t?new Uint8Array([qm|o_]):new Uint8Array([N2])}function GB(t){return t.length?t.subarray(0,1):new Uint8Array([N2])}function ZB(t,e){return new Uint8Array([(new ho(t,e.aye).isTrue?qm:N2)|t.createTypeUnsafe("Conviction",[e.conviction||o_]).index])}function YB(t,e){return ue(e)?GB(e):Qe(e)||e instanceof Boolean||Si(e)?n_(new ho(t,e).isTrue):De(e)?n_(e<0):ZB(t,e)}var Wm=class extends wn{__internal__aye;__internal__conviction;constructor(e,r){let n=YB(e,r);super(e,n,8),this.__internal__aye=(n[0]&qm)===qm,this.__internal__conviction=this.registry.createTypeUnsafe("Conviction",[n[0]&XB])}get conviction(){return this.__internal__conviction}get isAye(){return this.__internal__aye}get isNay(){return!this.isAye}toHuman(e){return{conviction:this.conviction.toHuman(e),vote:this.isAye?"Aye":"Nay"}}toPrimitive(){return{aye:this.isAye,conviction:this.conviction.toPrimitive()}}toRawType(){return"Vote"}};function i_(t){return ue(t)||Array.isArray(t)?K(t):Ae(t)||h1(t.toString())?jt(t.toString()):qe(t)?K(t):t}var hf=class extends wn{constructor(e,r=new Uint8Array){super(e,i_(r),160)}eq(e){return!!e&&super.eq(i_(e))}toHuman(){return this.toJSON()}toJSON(){return this.toString()}toPrimitive(){return this.toJSON()}toString(){return lc(this)}toRawType(){return"AccountId"}};var KB=new Uint8Array([255]);function JB(t,e){let r=tr(e);return r.length===20?t.createTypeUnsafe("EthereumAccountId",[r]):t.createTypeUnsafe("AccountIndex",[Fr(r)])}function QB(t,e){if(e.length===20)return t.createTypeUnsafe("EthereumAccountId",[e]);if(e[0]===255)return t.createTypeUnsafe("EthereumAccountId",[e.subarray(1)]);let[r,n]=Ir.readLength(e);return t.createTypeUnsafe("AccountIndex",[Fr(e.subarray(r,r+n))])}function $B(t,e){return e instanceof od?e.inner:e instanceof hf||e instanceof Ir?e:ue(e)||Array.isArray(e)||Ae(e)?QB(t,K(e)):hr(e)||De(e)||un(e)?t.createTypeUnsafe("AccountIndex",[e]):JB(t,e)}var od=class extends ii{constructor(e,r=new Uint8Array){super(e,$B(e,r))}get encodedLength(){let e=this._rawLength;return e+(e>1?1:0)}get _rawLength(){return this.inner instanceof Ir?Ir.calcLength(this.inner):this.inner.encodedLength}toHex(){return Te(this.toU8a())}toRawType(){return"Address"}toU8a(e){let r=this.inner.toU8a().subarray(0,this._rawLength);return e?r:Ke(this.inner instanceof Ir?Ir.writeLength(r):KB,r)}};function eR(t,e){let r=e[0];if(r){if(r>=1&&r<=33){let n=r-1,o=e.subarray(1,n+1);return[t.createTypeUnsafe("Raw",[o]),1]}else if(r>=34&&r<=37)return[e.subarray(1,33),r-32]}else return[void 0,void 0];throw new Error(`Unable to decode Data, invalid indicator byte ${r}`)}function tR(t,e){return ue(e)||qe(e)?eR(t,K(e)):e?[e,void 0]:[void 0,void 0]}var jm=class extends Dr{constructor(e,r){if(super(e,{None:"Null",Raw:"Bytes",BlakeTwo256:"H256",Sha256:"H256",Keccak256:"H256",ShaThree256:"H256"},...tR(e,r)),this.isRaw&&this.asRaw.length>32)throw new Error("Data.Raw values are limited to a maximum length of 32 bytes")}get asBlakeTwo256(){return this.value}get asKeccak256(){return this.value}get asRaw(){return this.value}get asSha256(){return this.value}get asShaThree256(){return this.value}get isBlakeTwo256(){return this.index===2}get isKeccak256(){return this.index===4}get isNone(){return this.index===0}get isRaw(){return this.index===1}get isSha256(){return this.index===3}get isShaThree256(){return this.index===5}get encodedLength(){return this.toU8a().length}toU8a(){if(this.index===0)return new Uint8Array(1);if(this.index===1){let r=this.value.toU8a(!0),n=Math.min(r.length,32),o=new Uint8Array(n+1);return o.set([n+1],0),o.set(r.subarray(0,n),1),o}let e=new Uint8Array(33);return e.set([this.index+32],0),e.set(this.value.toU8a(),1),e}};var rR={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 nR(t){if(ue(t)||!t||qe(t))return{key:t};if(t instanceof Dc)return{key:t,method:t.method,section:t.section};if(we(t))return{key:t(),method:t.method,section:t.section};if(Array.isArray(t)){let[e,r=[]]=t;if(!we(e))throw new Error("Expected function input for key construction");if(e.meta&&e.meta.type.isMap){let n=e.meta.type.asMap;if(!Array.isArray(r)||r.length!==n.hashers.length)throw new Error(`Expected an array of ${n.hashers.length} values as params to a Map query`)}return{key:e(...r),method:e.method,section:e.section}}throw new Error(`Unable to convert input ${t} to StorageKey`)}function oR(t,e,r){let n=32,o=r.length,a=new Array(o);for(let s=0;s[s,a[u]]))}function aR(t){if(t instanceof Dc)return t.meta;if(we(t))return t.meta;if(Array.isArray(t)){let[e]=t;return e.meta}}function sR(t,e){if(e instanceof Dc)return e.outputType;if(we(e))return _m(t,e.meta.type);if(Array.isArray(e)){let[r]=e;if(r.meta)return _m(t,r.meta.type)}return"Raw"}var Dc=class extends ai{__internal__args;__internal__meta;__internal__outputType;__internal__method;__internal__section;constructor(e,r,n={}){let{key:o,method:a,section:s}=nR(r);super(e,o),this.__internal__outputType=sR(e,r),this.setMeta(aR(r),n.section||s,n.method||a)}get args(){return this.__internal__args}get meta(){return this.__internal__meta}get method(){return this.__internal__method}get outputType(){return this.__internal__outputType}get section(){return this.__internal__section}is(e){return e.section===this.section&&e.method===this.method}setMeta(e,r,n){this.__internal__meta=e,this.__internal__method=n||this.__internal__method,this.__internal__section=r||this.__internal__section,e&&(this.__internal__outputType=_m(this.registry,e.type));try{this.__internal__args=iR(this.registry,this.toU8a(!0),e)}catch{}return this}toHuman(){return this.__internal__args.length?this.__internal__args.map(e=>e.toHuman()):super.toHuman()}toRawType(){return"StorageKey"}};function a_(t){return({name:e})=>t(e)}var mf=a_(et),Xm=a_(t=>t.toString());function cR(t,e){return t.callIndex[0]===e[0]&&t.callIndex[1]===e[1]}function s_(t,e,r,n){let o=n.fields,a=et(n.name),s=(...u)=>{if(o.length!==u.length)throw new Error(`Extrinsic ${e}.${a} expects ${o.length} arguments, got ${u.length}.`);return t.createTypeUnsafe("Call",[{args:u,callIndex:r},n])};return s.is=u=>cR(u,r),s.callIndex=r,s.meta=n,s.method=a,s.section=e,s.toJSON=()=>n.toJSON(),s}function Gm({calls:t}){return t.isSome}function B2(t,e,r,n,o){let{fields:a,index:s}=r,u=a.length,l=new Array(u);for(let h=0;h=12?h.toNumber():s;mr(o,_,()=>Hi(e,l.unwrap(),mf,R=>B2(t,e,R,_,V)))}return o}function U2(t,e){return e.toNumber()>=2?t.createTypeUnsafe("StorageHasherV10",[e.toNumber()+1]):t.createTypeUnsafe("StorageHasherV10",[e])}function uR(t,e){return e.isMap?[ne({},e.asMap,{hasher:U2(t,e.asMap.hasher)}),1]:e.isDoubleMap?[ne({},e.asDoubleMap,{hasher:U2(t,e.asDoubleMap.hasher),key2Hasher:U2(t,e.asDoubleMap.key2Hasher)}),2]:[e.asPlain,0]}function fR(t,e){let r=e.storage.unwrapOr(null);return t.createTypeUnsafe("ModuleMetadataV10",[ne({},e,{storage:r?ne({},r,{items:r.items.map(n=>ne({},n,{type:t.createTypeUnsafe("StorageEntryTypeV10",uR(t,n.type))}))}):null})])}function c_(t,{modules:e}){return t.createTypeUnsafe("MetadataV10",[{modules:e.map(r=>fR(t,r))}])}function u_(t,{modules:e}){return t.createTypeUnsafe("MetadataV11",[{extrinsic:{signedExtensions:[],version:0},modules:e}])}function f_(t,{extrinsic:e,modules:r}){return t.createTypeUnsafe("MetadataV12",[{extrinsic:e,modules:r.map(n=>t.createTypeUnsafe("ModuleMetadataV12",[ne({},n,{index:255})]))}])}function l_(t,e){return t.createTypeUnsafe("MetadataV13",[e])}var lR={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"}};function d_({knownTypes:t},e){return{...lR[e]??{},...t.typesAlias?.[e]??{}}}var dR=[["<",">"],["<",","],[",",">"],["(",")"],["(",","],[",",","],[",",")"]];function va(t,e){let r=e.toString(),n=t.findIndex(({def:o})=>o.HistoricMetaCompat===r);return n!==-1?n:t.push({def:{HistoricMetaCompat:r}})-1}function pR(t,...e){for(let r=0,n=e.length;r[n.name.toString(),r>=12?n.index.toNumber():o]).sort((n,o)=>n[1]-o[1]).reduce((n,[o,a])=>{for(let s=Object.keys(n).length;s{let n=Object.keys(t).find(o=>r.eq(o));if(n)r.setOverride(t[n]);else{let o=r.toString(),a=Object.entries(t).reduce((s,[u,l])=>dR.reduce((h,[y,_])=>h.replace(`${y}${u}${_}`,`${y}${l}${_}`),s),o);o!==a&&r.setOverride(a)}})}function xR(t,e,r,n,o){let a=n.map(({args:s,docs:u,name:l},h)=>(id(o,s.map(({type:y})=>y)),e.createTypeUnsafe("SiVariant",[{docs:u,fields:s.map(({name:y,type:_})=>e.createTypeUnsafe("SiField",[{name:y,type:va(t,_)}])),index:h,name:l}])));return e.createTypeUnsafe("PalletCallMetadataV14",[{type:L2(r,"Call",t,a)}])}function bR(t,e,r,n){return r.map(({docs:o,name:a,type:s,value:u})=>(id(n,[s]),e.createTypeUnsafe("PalletConstantMetadataV14",[{docs:o,name:a,type:va(t,s),value:u}])))}function yR(t,e,r,n,o){let a=n.map(({docs:s,name:u},l)=>e.createTypeUnsafe("SiVariant",[{docs:s,fields:[],index:l,name:u}]));return e.createTypeUnsafe("PalletErrorMetadataV14",[{type:L2(r,"Error",t,a)}])}function gR(t,e,r,n,o){let a=n.map(({args:s,docs:u,name:l},h)=>(id(o,s),e.createTypeUnsafe("SiVariant",[{docs:u,fields:s.map(y=>e.createTypeUnsafe("SiField",[{type:va(t,y)}])),index:h,name:l}])));return e.createTypeUnsafe("PalletEventMetadataV14",[{type:L2(r,"Event",t,a)}])}function H2(t,e,r,{hashers:n,isLinked:o,isOptional:a,keys:s,value:u}){return id(r,[u,...Array.isArray(s)?s:[s]]),e.createTypeUnsafe("StorageEntryTypeV14",[{Map:{hashers:n,key:n.length===1?va(t,s[0]):hR(t,s.map(l=>va(t,l))),value:o?va(t,`(${a?`Option<${u.toString()}>`:u.toString()}, Linkage<${s[0].toString()}>)`):va(t,u)}}])}function wR(t,e,{items:r,prefix:n},o){return e.createTypeUnsafe("PalletStorageMetadataV14",[{items:r.map(({docs:a,fallback:s,modifier:u,name:l,type:h})=>{let y;if(h.isPlain){let _=h.asPlain;id(o,[_]),y=e.createTypeUnsafe("StorageEntryTypeV14",[{Plain:va(t,_)}])}else if(h.isMap){let _=h.asMap;y=H2(t,e,o,{hashers:[_.hasher],isLinked:_.linked.isTrue,isOptional:u.isOptional,keys:[_.key],value:_.value})}else if(h.isDoubleMap){let _=h.asDoubleMap;y=H2(t,e,o,{hashers:[_.hasher,_.key2Hasher],isLinked:!1,isOptional:u.isOptional,keys:[_.key1,_.key2],value:_.value})}else{let _=h.asNMap;y=H2(t,e,o,{hashers:_.hashers,isLinked:!1,isOptional:u.isOptional,keys:_.keyVec,value:_.value})}return e.createTypeUnsafe("StorageEntryMetadataV14",[{docs:a,fallback:s,modifier:u,name:l,type:y}])}),prefix:n}])}function vR(t,{signedExtensions:e,version:r}){return t.createTypeUnsafe("ExtrinsicMetadataV14",[{signedExtensions:e.map(n=>({identifier:n,type:0})),type:0,version:r}])}function _R(t,e,r,{calls:n,constants:o,errors:a,events:s,storage:u}){let l=d_(e,et(r.name));return e.createTypeUnsafe("PalletMetadataV14",[{calls:n&&xR(t,e,r.name,n,l),constants:bR(t,e,o,l),errors:a&&yR(t,e,r.name,a,l),events:s&&gR(t,e,r.name,s,l),index:r.index,name:r.name,storage:u&&wR(t,e,u,l)}])}function p_(t,e,r){let n=[];pR(n,"Null","u8","u16","u32","u64"),mR(t,e.modules,r);let o=vR(t,e.extrinsic),a=e.modules.map(s=>_R(n,t,s,{calls:s.calls.unwrapOr(null),constants:s.constants,errors:s.errors.length?s.errors:null,events:s.events.unwrapOr(null),storage:s.storage.unwrapOr(null)}));return t.createTypeUnsafe("MetadataV14",[{extrinsic:o,lookup:{types:n.map((s,u)=>t.createTypeUnsafe("PortableType",[{id:u,type:s}]))},pallets:a}])}function h_(t,e,r){let n=e.lookup.paramTypes.SpRuntimeUncheckedExtrinsic;return t.createTypeUnsafe("MetadataV15",[ne({},e,{extrinsic:t.createTypeUnsafe("ExtrinsicMetadataV15",[ne({},e.extrinsic,{addressType:n?.[0].type.unwrapOr(0),callType:n?.[1].type.unwrapOr(0),extraType:n?.[3].type.unwrapOr(0),signatureType:n?.[2].type.unwrapOr(0)})]),outerEnums:t.createTypeUnsafe("OuterEnums15",[{callType:n?.[1].type.unwrapOr(0),eventType:e.lookup.paramTypes.FrameSystemEventRecord?.[0].type.unwrapOr(0)}])})])}function m_(t,e,r){return e}var x_=1635018093,Zm=class extends mo{constructor(e,r){if(super(e,r),!this.isEmpty&&!this.eq(x_))throw new Error(`MagicNumber mismatch: expected ${e.createTypeUnsafe("u32",[x_]).toHex()}, found ${this.toHex()}`)}};var SR=[15,14,13,12,11,10,9],b_=SR[0],y_=14;var ad=class t extends Ct{__internal__converted=new Map;constructor(e,r){super(e,{magicNumber:Zm,metadata:"MetadataAll"},r)}__internal__assertVersion=e=>{if(this.version>e)throw new Error(`Cannot convert metadata from version ${this.version} to ${e}`);return this.version===e};__internal__getVersion=(e,r)=>{if(e!=="latest"&&this.__internal__assertVersion(e)){let n=`asV${e}`;return this.__internal__metadata()[n]}if(!this.__internal__converted.has(e)){let n=e==="latest"?`asV${b_}`:`asV${e-1}`;this.__internal__converted.set(e,r(this.registry,this[n],this.version))}return this.__internal__converted.get(e)};__internal__metadata=()=>this.getT("metadata");get asCallsOnly(){return new t(this.registry,{magicNumber:this.magicNumber,metadata:this.registry.createTypeUnsafe("MetadataAll",[k2(this.registry,this.asLatest),y_])})}get asV9(){return this.__internal__assertVersion(9),this.__internal__metadata().asV9}get asV10(){return this.__internal__getVersion(10,c_)}get asV11(){return this.__internal__getVersion(11,u_)}get asV12(){return this.__internal__getVersion(12,f_)}get asV13(){return this.__internal__getVersion(13,l_)}get asV14(){return this.__internal__getVersion(14,p_)}get asV15(){return this.__internal__getVersion(15,h_)}get asLatest(){return this.__internal__getVersion("latest",m_)}get magicNumber(){return this.getT("magicNumber")}get version(){return this.__internal__metadata().index}getUniqTypes(e){return T2(this.registry,this.asLatest,e)}toJSON(){return this.asLatest,super.toJSON()}};var w_=new Uint8Array([109,101,116,97,9]),g_=w_.length-1;function TR(t,e){if(e.length===0)return w_;if(e[g_]===9)try{return new ad(t,e)}catch{e[g_]=10}return e}var Li=class extends ad{constructor(e,r){super(e,ue(r)||qe(r)?TR(e,K(r)):r)}};function sd(t,{pallets:e},r){let n={};for(let o=0,a=e.length;oVo({},s,l=>{let h=t.createTypeUnsafe(t.createLookupType(l.type),[jt(l.value.toHex())]);return h.meta=l,h},mf))}return n}function D2(t,e){return ne({args:e.fields.map(({type:r})=>t.getTypeDef(r).type)},e)}function v_(t,{lookup:e,pallets:r},n){let o={};for(let a=0,s=r.length;a=12?l.toNumber():a;mr(o,et(h),()=>Hi(e,u.unwrap(),Xm,_=>({is:V=>fn(V)&&fn(V.index)&&V.index.eq(y)&&(ue(V.error)?V.error[0]===_.index.toNumber():fn(V.error)&&V.error.eq(_.index)),meta:t.createTypeUnsafe("ErrorMetadataLatest",[D2(e,_)])})))}}return o}function Ym({events:t}){return t.isSome}function __(t,{lookup:e,pallets:r},n){let o={},a=r.filter(Ym);for(let s=0,u=a.length;s=12?h.toNumber():s;mr(o,et(y),()=>Hi(e,l.unwrap(),Xm,V=>({is:R=>fn(R)&&ue(R.index)&&_===R.index[0]&&V.index.eq(R.index[1]),meta:t.createTypeUnsafe("EventMetadataLatest",[D2(e,V)])})))}return o}var kR=t=>ma(t,128),ER={Blake2_128:t=>kr(t,128),Blake2_128Concat:t=>Ke(kr(t,128),K(t)),Blake2_256:t=>kr(t,256),Identity:t=>K(t),Twox128:t=>ma(t,128),Twox256:t=>ma(t,256),Twox64Concat:t=>Ke(ma(t,64),K(t))};function S_(t){return ER[t.type]||kR}var ud={args:[],hashers:[],keys:[]};function PR(t){return!Qe(t)}function T_({method:t,section:e},{args:r,keys:n}){if(Array.isArray(r)){if(r.filter(PR).length!==n.length)throw new Error(`Call to ${et(e||"unknown")}.${et(t||"unknown")} needs ${n.length} arguments, found [${r.join(", ")}]`)}else throw new Error(`Call to ${et(e||"unknown")}.${et(t||"unknown")} needs ${n.length} arguments`)}function k_(t,e,{args:r,hashers:n,keys:o}){let a=o.length,s=new Array(a);for(let u=0;u`${l[_].type}(${Ri(t.lookup,y)})`)}let u=["module","method"].concat(...r.args.map((l,h)=>s[h]));return{inner:o.concat(...a).map((l,h)=>({name:u[h],outer:[l]}))}}function cd(t,e,r){let[n,o]=k_(t,e,r);return Ke(...n,...o)}function F2(t,e,r){return T_(e,r),$r(cd(t,e,r))}function MR(t,e,r){let{meta:{type:n}}=e;return(...o)=>{if(n.isPlain)return r.skipHashing?{inner:[],name:"wellKnown",outer:[K(r.key)]}:z2(t,e,ud);let{hashers:a,key:s}=n.asMap;return a.length===1?z2(t,e,{args:o,hashers:a,keys:[s]}):z2(t,e,{args:o,hashers:a,keys:t.lookup.getSiType(s).def.asTuple})}}function AR(t,e,r){let{meta:{type:n}}=e,o=null;return(...a)=>{if(n.isPlain)return o||(o=r.skipHashing?$r(K(r.key)):F2(t,e,ud)),o;let{hashers:s,key:u}=n.asMap;return s.length===1?F2(t,e,{args:a,hashers:s,keys:[u]}):F2(t,e,{args:a,hashers:s,keys:t.lookup.getSiType(u).def.asTuple})}}function OR(t,e,r){let{meta:n,method:o,prefix:a,section:s}=e,u=AR(t,e,r);return u.inspect=MR(t,e,r),u.meta=n,u.method=et(o),u.prefix=a,u.section=s,u.toJSON=()=>ne({storage:{method:o,prefix:a,section:s}},n.toJSON()),u}function IR(t,{meta:{docs:e,name:r,type:n},section:o},{method:a},s){let u=t.createTypeUnsafe("StorageEntryMetadataLatest",[{docs:e,fallback:t.createTypeUnsafe("Bytes",[]),modifier:t.createTypeUnsafe("StorageEntryModifierLatest",[1]),name:r,type:t.createTypeUnsafe("StorageEntryTypeLatest",[n.asMap.key,0])}]);s.meta=u;let l=(...h)=>t.createTypeUnsafe("StorageKey",[s(...h),{method:a,section:o}]);return l.meta=u,l}function VR(t,e,r){let{meta:{type:n},method:o,section:a}=e;return r.iterKey=IR(t,e,r,(...s)=>{if(s.length&&(n.isPlain||s.length>=n.asMap.hashers.length))throw new Error(`Iteration of ${et(a||"unknown")}.${et(o||"unknown")} needs arguments to be at least one less than the full arguments, found [${s.join(", ")}]`);if(s.length&&n.isMap){let{hashers:u,key:l}=n.asMap,h=u.length===1?[l]:t.lookup.getSiType(l).def.asTuple;return new yr(t,cd(t,e,{args:s,hashers:u.slice(0,s.length),keys:h.slice(0,s.length)}))}return new yr(t,cd(t,e,ud))}),r}function Km(t,e,r){let{meta:{type:n}}=e,o=OR(t,e,r);return n.isMap&&VR(t,e,o),o.keyPrefix=(...a)=>o.iterKey&&o.iterKey(...a)||Ya(o())[1],o}function E_(t,e){let r=e.toLowerCase();return t.lookup.types.find(n=>n.type.def.isPrimitive&&n.type.def.asPrimitive.toString().toLowerCase()===r||n.type.def.isHistoricMetaCompat&&n.type.def.asHistoricMetaCompat.toString().toLowerCase()===r)}function NR(t,e){let r=E_(t,e);if(!r&&(e==="Bytes"||e.startsWith("[u8;"))){let n=E_(t,"u8");if(n)if(e==="Bytes")r=t.lookup.types.find(o=>o.type.def.isSequence&&o.type.def.asSequence.type.eq(n.id)||o.type.def.isHistoricMetaCompat&&o.type.def.asHistoricMetaCompat.eq(e));else{let o=xo(e);r=t.lookup.types.find(a=>a.type.def.isArray&&a.type.def.asArray.eq({len:o.length,type:n.id})||a.type.def.isHistoricMetaCompat&&a.type.def.asHistoricMetaCompat.eq(e))}}return r||console.warn(`Unable to map ${e} to a lookup index`),r}function Jm({method:t,prefix:e,section:r},n,{docs:o,type:a}){return s=>Km(s,{meta:s.createTypeUnsafe("StorageEntryMetadataLatest",[{docs:s.createTypeUnsafe("Vec",[[o]]),modifier:s.createTypeUnsafe("StorageEntryModifierLatest",["Required"]),name:s.createTypeUnsafe("Text",[t]),toJSON:()=>n,type:s.createTypeUnsafe("StorageEntryTypeLatest",[{Plain:NR(s,a)?.id||0}])}]),method:t,prefix:e,section:r},{key:n,skipHashing:!0})}var CR="Substrate",BR="substrate";function xf(t,e,r){return Jm({method:t,prefix:CR,section:BR},e,r)}var P_={changesTrieConfig:xf("changesTrieConfig",":changes_trie",{docs:"Changes trie configuration is stored under this key.",type:"u32"}),childStorageKeyPrefix:xf("childStorageKeyPrefix",":child_storage:",{docs:"Prefix of child storage keys.",type:"u32"}),code:xf("code",":code",{docs:"Wasm code of the runtime.",type:"Bytes"}),extrinsicIndex:xf("extrinsicIndex",":extrinsic_index",{docs:"Current extrinsic index (u32) is stored under this key.",type:"u32"}),heapPages:xf("heapPages",":heappages",{docs:"Number of wasm linear memory pages required for execution of the runtime.",type:"u64"}),intrablockEntropy:xf("intrablockEntropy",":intrablock_entropy",{docs:"Current intra-block entropy (a universally unique `[u8; 32]` value) is stored here.",type:"[u8; 32]"})};function M_(t){let e={},r=Object.entries(P_);for(let n=0,o=r.length;nVo({palletVersion:Jm({method:RR,prefix:_,section:l},cd(t,{method:UR,prefix:s.toString()},ud),HR)(t)},h,V=>Km(t,{meta:V,method:V.name.toString(),prefix:_,section:l},{}),mf))}}return n}function W2(t,e){if(!(e instanceof Li))throw new Error("You need to pass a valid Metadata instance to Decorated");let r=e.asLatest,n=e.version;return{consts:sd(t,r,n),errors:v_(t,r,n),events:__(t,r,n),query:q2(t,r,n),registry:t,tx:R2(t,r,n)}}var LR=new Uint8Array(2),A_=Tr("registry");function O_(t,e){return parseInt(t,10)-parseInt(e,10)}function I_(t){return t.toString()}function V_(t,e){let r=e.length,n=new Array(r);for(let o=0;o=12?l.toNumber():a,()=>Hi(e,u.unwrap(),j2,({docs:_,fields:V,index:R,name:B})=>({args:V_(e,V),docs:_.map(I_),fields:V,index:R.toNumber(),method:B.toString(),name:B.toString(),section:y})))}}}function zR(t,{lookup:e,pallets:r},n,o){let a=r.filter(Ym);Qm(o);for(let s=0,u=a.length;s=12?h.toNumber():s,()=>Hi(e,l.unwrap(),j2,_=>{let V=t.createType("EventMetadataLatest",ne({},_,{args:V_(e,_.fields)}));return class extends df{constructor(R,B){super(R,B,V,et(y),_.name.toString())}}}))}}function FR(t,{lookup:e,pallets:r},n,o,a){let s=r.filter(Gm);Qm(o),Qm(a);for(let u=0,l=s.length;u=12?y.toNumber():u,R=et(_),B=h.unwrap();mr(o,V,()=>Hi(e,B,j2,G=>B2(t,e,G,R,V)));let{path:L}=t.lookup.getSiType(B.type),Z=L.findIndex(G=>G.eq("pallet"));if(Z!==-1){let G=et(L.slice(0,Z).map((J,Y)=>Y===0?J.replace(/^(frame|pallet)_/,""):J).join(" "));a[G]?a[G].push(R):a[G]=[R]}}}function qR(t,e){let r=t.getChainProperties(),n=sd(t,e.asLatest,e.version),o=n.system&&(n.system.sS58Prefix||n.system.ss58Prefix);if(!o)return r;let{isEthereum:a,tokenDecimals:s,tokenSymbol:u}=r||{};return t.createTypeUnsafe("ChainProperties",[{isEthereum:a,ss58Format:o,tokenDecimals:s,tokenSymbol:u}])}var bf=class{__internal__chainProperties;__internal__classes=new Map;__internal__definitions=new Map;__internal__firstCallIndex=null;__internal__hasher=kr;__internal__knownTypes={};__internal__lookup;__internal__metadata;__internal__metadataVersion=0;__internal__signedExtensions=Sm;__internal__unknownTypes=new Map;__internal__userExtensions;__internal__knownDefaults;__internal__knownDefaultsEntries;__internal__knownDefinitions;__internal__metadataCalls={};__internal__metadataErrors={};__internal__metadataEvents={};__internal__moduleMap={};createdAtHash;constructor(e){this.__internal__knownDefaults=ne({Json:bs,Metadata:Li,PortableRegistry:Kl,Raw:yr},C2),this.__internal__knownDefaultsEntries=Object.entries(this.__internal__knownDefaults),this.__internal__knownDefinitions=ga;let r=Object.values(this.__internal__knownDefinitions);for(let n=0,o=r.length;nr.toNumber())}return[12]}get chainIsEthereum(){return this.__internal__chainProperties?.isEthereum.isTrue||!1}get chainSS58(){return this.__internal__chainProperties?.ss58Format.isSome?this.__internal__chainProperties.ss58Format.unwrap().toNumber():void 0}get chainTokens(){if(this.__internal__chainProperties?.tokenSymbol.isSome){let e=this.__internal__chainProperties.tokenSymbol.unwrap();if(e.length)return e.map(I_)}return[Ti.getDefaults().unit]}get firstCallIndex(){return this.__internal__firstCallIndex||LR}isLookupType(e){return/Lookup\d+$/.test(e)}createLookupType(e){return`Lookup${typeof e=="number"?e:e.toNumber()}`}get knownTypes(){return this.__internal__knownTypes}get lookup(){return Oo(this.__internal__lookup,"PortableRegistry has not been set on this registry")}get metadata(){return Oo(this.__internal__metadata,"Metadata has not been set on this registry")}get unknownTypes(){return[...this.__internal__unknownTypes.keys()]}get signedExtensions(){return this.__internal__signedExtensions}clearCache(){this.__internal__classes=new Map}createClass(e){return Rc(this,e)}createClassUnsafe(e){return Rc(this,e)}createType(e,...r){return bm(this,e,r)}createTypeUnsafe(e,r,n){return bm(this,e,r,n)}findMetaCall(e){let[r,n]=[e[0],e[1]];return Oo(this.__internal__metadataCalls[`${r}`]&&this.__internal__metadataCalls[`${r}`][`${n}`],()=>`findMetaCall: Unable to find Call with index [${r}, ${n}]/[${e.toString()}]`)}findMetaError(e){let[r,n]=ue(e)?[e[0],e[1]]:[e.index.toNumber(),ue(e.error)?e.error[0]:e.error.toNumber()];return Oo(this.__internal__metadataErrors[`${r}`]&&this.__internal__metadataErrors[`${r}`][`${n}`],()=>`findMetaError: Unable to find Error with index [${r}, ${n}]/[${e.toString()}]`)}findMetaEvent(e){let[r,n]=[e[0],e[1]];return Oo(this.__internal__metadataEvents[`${r}`]&&this.__internal__metadataEvents[`${r}`][`${n}`],()=>`findMetaEvent: Unable to find Event with index [${r}, ${n}]/[${e.toString()}]`)}get(e,r,n){return this.getUnsafe(e,r,n)}getUnsafe(e,r,n){let o=this.__internal__classes.get(e)||this.__internal__knownDefaults[e];if(!o){let a=this.__internal__definitions.get(e),s;a?s=Rc(this,a):n?s=q7(this,n):r&&(A_.warn(`Unable to resolve type ${e}, it will fail on construction`),this.__internal__unknownTypes.set(e,!0),s=ds.with(e)),s&&(o=class extends s{},this.__internal__classes.set(e,o),n&&De(n.lookupIndex)&&this.__internal__classes.set(this.createLookupType(n.lookupIndex),o))}return o}getChainProperties(){return this.__internal__chainProperties}getClassName(e){let r=[];for(let[n,o]of this.__internal__knownDefaultsEntries)e===o&&r.push(n);for(let[n,o]of this.__internal__classes.entries())e===o&&r.push(n);return r.length?r.sort().reverse()[0]:void 0}getDefinition(e){return this.__internal__definitions.get(e)}getModuleInstances(e,r){return this.__internal__knownTypes?.typesBundle?.spec?.[e.toString()]?.instances?.[r]||this.__internal__moduleMap[r]}getOrThrow(e){let r=this.get(e);if(!r)throw new Error(`type ${e} not found`);return r}getOrUnknown(e){return this.get(e,!0)}getSignedExtensionExtra(){return E2(this.__internal__signedExtensions,"payload",this.__internal__userExtensions)}getSignedExtensionTypes(){return E2(this.__internal__signedExtensions,"extrinsic",this.__internal__userExtensions)}hasClass(e){return this.__internal__classes.has(e)||!!this.__internal__knownDefaults[e]}hasDef(e){return this.__internal__definitions.has(e)}hasType(e){return!this.__internal__unknownTypes.get(e)&&(this.hasClass(e)||this.hasDef(e))}hash(e){return this.createType("CodecHash",this.__internal__hasher(e))}register(e,r){if(we(e))this.__internal__classes.set(e.name,e);else if(qe(e)){if(we(r)){if(e===r.toString())throw new Error(`Unable to register circular ${e} === ${e}`)}else throw new Error(`Expected class definition passed to '${e}' registration`);this.__internal__classes.set(e,r)}else this.__internal__registerObject(e)}__internal__registerObject=e=>{let r=Object.entries(e);for(let n=0,o=r.length;n{this.setLookup(e);let r=null;if(this.hasType("SpWeightsWeightV2Weight")){let n=this.createType("SpWeightsWeightV2Weight");r=n.refTime&&n.proofSize?"SpWeightsWeightV2Weight":"WeightV1"}else hr(this.createType("Weight"))||(r="WeightV1");r&&this.register({Weight:r})};setMetadata(e,r,n,o){this.__internal__metadata=e.asLatest,this.__internal__metadataVersion=e.version,this.__internal__firstCallIndex=null,this.__internal__registerLookup(this.__internal__metadata.lookup),FR(this,this.__internal__metadata,this.__internal__metadataVersion,this.__internal__metadataCalls,this.__internal__moduleMap),DR(this,this.__internal__metadata,this.__internal__metadataVersion,this.__internal__metadataErrors),zR(this,this.__internal__metadata,this.__internal__metadataVersion,this.__internal__metadataEvents);let[a]=Object.keys(this.__internal__metadataCalls).sort(O_);if(a){let[s]=Object.keys(this.__internal__metadataCalls[a]).sort(O_);s&&(this.__internal__firstCallIndex=new Uint8Array([parseInt(a,10),parseInt(s,10)]))}this.setSignedExtensions(r||(this.__internal__metadata.extrinsic.version.gt(Lt)?this.__internal__metadata.extrinsic.signedExtensions.map(({identifier:s})=>s.toString()):Sm),n,o),this.setChainProperties(qR(this,e))}setSignedExtensions(e=Sm,r,n){if(this.__internal__signedExtensions=e,this.__internal__userExtensions=r,!n){let o=j6(this.__internal__signedExtensions,this.__internal__userExtensions);o.length&&A_.warn(`Unknown signed extensions ${o.join(", ")} found, treating them as no-effect`)}}};function $m(t=1750){return e=>{let[r,n,o,a]=[0,0,Mn.EMPTY,Mn.EMPTY];return new Vt(s=>(e.subscribe(s),n++===0&&(r===1?a.unsubscribe():o=e.connect(),r=3),()=>{--n===0&&(r===2?(r=0,a.unsubscribe()):(r=1,a=Q1.schedule(()=>{r=0,o.unsubscribe()},t)))}))}}function WR(t,e){return Le({t})===Le({t:e})}function jR(t){throw t}function XR(){}function zc({delay:t,skipChange:e=!1,skipTimeout:r=!1}={}){return n=>n.pipe(bn(jR),e?yn(XR):e2(WR),Hl(1),r?xc():$m(t))}function W(t,e){let n=ec((...o)=>new Vt(a=>{let s=e(...o).subscribe(a);return()=>{n.unmemoize(...o),s.unsubscribe()}}).pipe(zc()),{getInstanceId:()=>t});return n}var GR=Tr("rpc-core"),ZR={fallback:void 0,modifier:{isOptional:!0},type:{asMap:{linked:{isTrue:!1}},isMap:!1}};function e0(t,{noErrorLog:e,params:r,type:n},o){e||GR.error(`${t}(${r.map(({isOptional:a,name:s,type:u})=>`${s}${a?"?":""}: ${u}`).join(", ")}): ${n}:: ${o.message}`)}function N_(t){return["0x3a636f6465"].includes(t.toHex())}var t0=class{__internal__instanceId;__internal__isPedantic;__internal__registryDefault;__internal__storageCache=new Map;__internal__storageCacheHits=0;__internal__storageCacheSize=0;__internal__getBlockRegistry;__internal__getBlockHash;mapping=new Map;provider;sections=[];constructor(e,r,{isPedantic:n=!0,provider:o,userRpc:a={}}){if(!o||!we(o.send))throw new Error("Expected Provider to API create");this.__internal__instanceId=e,this.__internal__isPedantic=n,this.__internal__registryDefault=r,this.provider=o;let s=Object.keys(wm);this.sections.push(...s),this.addUserInterfaces(a)}get isConnected(){return this.provider.isConnected}connect(){return this.provider.connect()}disconnect(){return this.provider.disconnect()}get stats(){let e=this.provider.stats;return e?{...e,core:{cacheHits:this.__internal__storageCacheHits,cacheSize:this.__internal__storageCacheSize}}:void 0}setRegistrySwap(e){this.__internal__getBlockRegistry=ec(e,{getInstanceId:()=>this.__internal__instanceId})}setResolveBlockHash(e){this.__internal__getBlockHash=ec(e,{getInstanceId:()=>this.__internal__instanceId})}addUserInterfaces(e){this.sections.push(...Object.keys(e).filter(r=>!this.sections.includes(r)));for(let r=0,n=this.sections.length;rV?this._createMethodSubscribe(o,h,y):this._createMethodSend(o,h,y))}}}}_memomize(e,r){let n={getInstanceId:()=>this.__internal__instanceId},o=ec(e(!0),n);return o.raw=ec(e(!1),n),o.meta=r,o}_formatResult(e,r,n,o,a,s,u){return e?this._formatOutput(r,n,o,a,s,u):u}_createMethodSend(e,r,n){let o=n.endpoint||`${e}_${r}`,a=n.params.findIndex(({isHistoric:h})=>h),s=null,u=async(h,y)=>{let _=a===-1?null:y[a],V=_&&n.params[a].type==="BlockNumber"?await this.__internal__getBlockHash?.(_):_,{registry:R}=h&&V&&this.__internal__getBlockRegistry?await this.__internal__getBlockRegistry(K(V)):{registry:this.__internal__registryDefault},B=this._formatParams(R,null,n,y),L=await this.provider.send(o,B.map(Z=>Z.toJSON()),!!V);return this._formatResult(h,R,V,r,n,B,L)},l=h=>(...y)=>{let _=h&&a!==-1&&!!y[a];return new Vt(V=>(u(h,y).then(R=>{V.next(R),V.complete()}).catch(R=>{e0(r,n,R),V.error(R),V.complete()}),()=>{h?s?.unmemoize(...y):s?.raw.unmemoize(...y)})).pipe(Hl(1),_?$m():xc())};return s=this._memomize(l,n),s}_createSubscriber({paramsJson:e,subName:r,subType:n,update:o},a){return new Promise((s,u)=>{this.provider.subscribe(n,r,e,o).then(s).catch(l=>{a(l),u(l)})})}_createMethodSubscribe(e,r,n){let[o,a,s]=n.pubsub,u=`${e}_${a}`,l=`${e}_${s}`,h=`${e}_${o}`,y=null,_=V=>(...R)=>new Vt(B=>{let L=Promise.resolve(null),Z=this.__internal__registryDefault,G=J=>{e0(r,n,J),B.error(J)};try{let J=this._formatParams(Z,null,n,R),Y=(fe,ie)=>{if(fe){e0(r,n,fe);return}try{B.next(this._formatResult(V,Z,null,r,n,J,ie))}catch(re){B.error(re)}};L=this._createSubscriber({paramsJson:J.map(fe=>fe.toJSON()),subName:u,subType:h,update:Y},G)}catch(J){G(J)}return()=>{V?y?.unmemoize(...R):y?.raw.unmemoize(...R),L.then(J=>io(J)?Promise.resolve(!1):this.provider.unsubscribe(h,l,J)).catch(J=>e0(r,n,J))}}).pipe(zc());return y=this._memomize(_,n),y}_formatParams(e,r,n,o){let a=o.length,s=n.params.filter(({isOptional:l})=>!l).length;if(an.params.length)throw new Error(`Expected ${n.params.length} parameters${s===n.params.length?"":` (${n.params.length-s} optional)`}, ${a} found instead`);let u=new Array(a);for(let l=0;l"){let u=s,l=u.length,h=new Array(l);for(let y=0;yB===u),h=Qe(l);if(h&&a){let B=this.__internal__storageCache.get(u);if(B)return this.__internal__storageCacheHits++,B}let y=h?null:l[1],_=io(y),V=_||N_(n)?y:K(y),R=this._newType(e,r,n,V,_,s);return this.__internal__storageCache.set(u,R),this.__internal__storageCacheSize++,R}_newType(e,r,n,o,a,s=-1){let u=n.outputType||"Raw",l=n.meta||ZR,h=s===-1?"":` entry ${s}:`;try{return e.createTypeUnsafe(u,[a?l.fallback?u.includes("Linkage<")?Ke(jt(l.fallback.toHex()),new Uint8Array(2)):jt(l.fallback.toHex()):void 0:l.modifier.isOptional?e.createTypeUnsafe(u,[o],{blockHash:r,isPedantic:this.__internal__isPedantic}):o],{blockHash:r,isFallback:a&&!!l.fallback,isOptional:l.modifier.isOptional,isPedantic:this.__internal__isPedantic&&!l.modifier.isOptional})}catch(y){throw new Error(`Unable to decode storage ${n.section||"unknown"}.${n.method||"unknown"}:${h}: ${y.message}`)}}};function fd(t){return fl(t.number)?t.number.unwrap():t.number}var C_={del:()=>{},forEach:()=>{},get:()=>{},set:(t,e)=>e};var YR=7*(24*60)*(60*1e3),yf;function KR(t,e){return{del:r=>e.del(`${t}${r}`),forEach:e.forEach,get:r=>{let n=`${t}${r}`,o=e.get(n);if(o)return o.x=Date.now(),e.set(n,o),o.v},set:(r,n)=>{e.set(`${t}${r}`,{v:n,x:Date.now()})}}}function JR(t){let e=Date.now(),r=[];t.forEach((n,{x:o})=>{e-o>YR&&r.push(n)}),r.forEach(n=>t.del(n))}function QR(t="",e){yf=e?KR(`derive:${t}:`,e):C_,e&&JR(e)}QR();function X2(t){return t.pipe(z(([e])=>e))}function on(t){return(e,r)=>W(e,(...n)=>X2(t(r,...n)))}function r0(t,e,r,n){mr(t,e,()=>Vo({},r(e),o=>n(e,o)))}var Z2={};br(Z2,{_flags:()=>tU,_identity:()=>cU,accountId:()=>$R,flags:()=>rU,hasIdentity:()=>fU,hasIdentityMulti:()=>lU,idAndIndex:()=>nU,idToIndex:()=>dU,identity:()=>uU,indexToId:()=>mU,indexes:()=>hU,info:()=>bU});function $R(t,e){return W(t,r=>{let n=ue(r)?r:tr((r||"").toString());if(n.length>8)return q(e.registry.createType("AccountId",n));let o=e.registry.createType("AccountIndex",n);return e.derive.accounts.indexToId(o.toString()).pipe(z(a=>Oo(a,"Unable to retrieve accountId")))})}function eU(t,[e,r,n,o,a]){let s=t?.toString(),u=l=>l.toString()===s;return{isCouncil:(e?.map(l=>Array.isArray(l)?l[0]:l.who)||r||[]).some(u),isSociety:(o||[]).some(u),isSudo:a?.toString()===s,isTechCommittee:(n||[]).some(u)}}function tU(t,e){return W(t,()=>{let r=[void 0,[],[],[],void 0],n=[(e.query.elections||e.query.phragmenElection||e.query.electionsPhragmen)?.members,e.query.council?.members,e.query.technicalCommittee?.members,e.query.society?.members,e.query.sudo?.key],o=n.filter(a=>a);return o.length?e.queryMulti(o).pipe(z(a=>{let s=-1;for(let u=0,l=n.length;ue.derive.accounts._flags().pipe(z(n=>eU(r,n))))}function nU(t,e){return W(t,r=>{try{let n=ue(r)?r:tr((r||"").toString());if(n.length>8){let a=e.registry.createType("AccountId",n);return e.derive.accounts.idToIndex(a).pipe(z(s=>[a,s]))}let o=e.registry.createType("AccountIndex",n);return e.derive.accounts.indexToId(o.toString()).pipe(z(a=>[a,o]))}catch{return q([void 0,void 0])}})}var oU={toHex:()=>{}};function si(t){return t.isRaw?Qr(t.asRaw.toU8a(!0)):t.isNone?void 0:t.toHex()}function iU(t){return t.reduce((e,[r,n])=>{let o=si(r),a=si(n);return o&&a&&(e[o]=a),e},{})}function aU(t,e){if(!t?.isSome)return{judgements:[]};let{info:r,judgements:n}=t.unwrap(),o=si(r.display);return{display:e&&si(e[1])||o,displayParent:e&&o,email:si(r.email),image:si(r.image),judgements:n,legal:si(r.legal),other:iU(r.additional),parent:e?.[0],pgp:r.pgpFingerprint.unwrapOr(oU).toHex(),riot:si(r.riot),twitter:si(r.twitter),web:si(r.web)}}function sU(t,e,r){if(e?.isSome)return q([e,void 0]);if(r?.isSome){let n=r.unwrap();return ae([t.derive.accounts._identity(n[0]).pipe(z(([o])=>o)),q(n)])}return q([void 0,void 0])}function cU(t,e){return W(t,r=>r&&e.query.identity?.identityOf?ae([e.query.identity.identityOf(r),e.query.identity.superOf(r)]):q([void 0,void 0]))}function uU(t,e){return W(t,r=>e.derive.accounts._identity(r).pipe(te(([n,o])=>sU(e,n,o)),z(([n,o])=>aU(n,o))))}var fU=on((t,e)=>t.derive.accounts.hasIdentityMulti([e]));function lU(t,e){return W(t,r=>e.query.identity?.identityOf?ae([e.query.identity.identityOf.multi(r),e.query.identity.superOf.multi(r)]).pipe(z(([n,o])=>n.map((a,s)=>{let u=o[s],l=u&&u.isSome?u.unwrap()[0].toString():void 0,h;if(a&&a.isSome){let y=si(a.unwrap().info.display);y&&!Ae(y)&&(h=y)}return{display:h,hasIdentity:!!(h||l),parentId:l}}))):q(r.map(()=>({hasIdentity:!1}))))}function dU(t,e){return W(t,r=>e.derive.accounts.indexes().pipe(z(n=>n[r.toString()])))}var G2=null;function pU(t){return t.query.indices.accounts.entries().pipe(z(e=>e.reduce((r,[n,o])=>(o.isSome&&(r[o.unwrap()[0].toString()]=t.registry.createType("AccountIndex",n.args[0])),r),{})))}function hU(t,e){return W(t,()=>G2?q(G2):(e.query.indices?pU(e).pipe(Vi({})):q({})).pipe(z(r=>(G2=r,r))))}function mU(t,e){return W(t,r=>e.query.indices?e.query.indices.accounts(r).pipe(z(n=>n.unwrapOr([])[0])):q(void 0))}function xU(t,e){return(e&&t.query.nicks?.nameOf?t.query.nicks.nameOf(e):q(void 0)).pipe(z(r=>r?.isSome?Qr(r.unwrap()[0]).substring(0,t.consts.nicks.maxLength.toNumber()):void 0))}function bU(t,e){return W(t,r=>e.derive.accounts.idAndIndex(r).pipe(te(([n,o])=>ae([q({accountId:n,accountIndex:o}),e.derive.accounts.identity(n),xU(e,n)])),z(([{accountId:n,accountIndex:o},a,s])=>({accountId:n,accountIndex:o,identity:a,nickname:s}))))}var Y2={};br(Y2,{hasProposals:()=>vU,members:()=>wU,prime:()=>EU,proposal:()=>_U,proposalCount:()=>SU,proposalHashes:()=>TU,proposals:()=>kU});function yU(t,e){let r=t.registry.getModuleInstances(t.runtimeVersion.specName,e),n=r?.length?r[0]:e;return t.query[n]}function Fc(t,e){return(r,n)=>W(r,e(yU(n,t),n,r))}function ld(t,e){return r=>Fc(r,n=>()=>we(n?.[t])?n[t]():q(e))}var gs=ld("members",[]);function ws(t){return Fc(t,e=>()=>we(e?.prime)?e.prime().pipe(z(r=>r.unwrapOr(null))):q(null))}function gU(t,[e,r,n]){return r.map((o,a)=>({hash:t.registry.createType("Hash",e[a]),proposal:o&&o.isSome?o.unwrap():null,votes:n[a].unwrapOr(null)}))}function B_(t,e,r){return(we(e?.proposals)&&r.length?ae([q(r),e.proposalOf.multi(r).pipe(bn(()=>q(r.map(()=>null)))),e.voting.multi(r)]):q([[],[],[]])).pipe(z(n=>gU(t,n)))}function vs(t){return Fc(t,e=>()=>q(we(e?.proposals)))}function _s(t){return Fc(t,(e,r)=>()=>r.derive[t].proposalHashes().pipe(te(n=>B_(r,e,n))))}function Ss(t){return Fc(t,(e,r)=>n=>we(e?.proposals)?X2(B_(r,e,[n])):q(null))}var Ts=ld("proposalCount",null),ks=ld("proposals",[]);var wU=gs("allianceMotion"),vU=vs("allianceMotion"),_U=Ss("allianceMotion"),SU=Ts("allianceMotion"),TU=ks("allianceMotion"),kU=_s("allianceMotion"),EU=ws("allianceMotion");var K2={};br(K2,{_getIds:()=>MU,all:()=>AU,expand:()=>IU,get:()=>OU,getExpanded:()=>VU,listNodes:()=>CU});function dd(t){return t.query.voterList||t.query.voterBagsList||t.query.bagsList}function PU(t,e){let r=t.map((o,a)=>({bag:e[a].unwrapOr(null),id:o,key:o.toString()})).sort((o,a)=>a.id.cmp(o.id)),n=r.length-1;return r.map((o,a)=>ne(o,{bagLower:a===n?Lt:r[a+1].id,bagUpper:o.id,index:a}))}function MU(t,e){let r=dd(e);return W(t,n=>{let o=n.map(a=>Dt(a));return o.length?r.listBags.multi(o).pipe(z(a=>PU(o,a))):q([])})}function AU(t,e){let r=dd(e);return W(t,()=>r.listBags.keys().pipe(te(n=>e.derive.bagsList._getIds(n.map(({args:[o]})=>o))),z(n=>n.filter(({bag:o})=>o))))}function OU(t,e){return W(t,r=>e.derive.bagsList._getIds([Dt(r)]).pipe(z(n=>n[0])))}function IU(t,e){return W(t,r=>e.derive.bagsList.listNodes(r.bag).pipe(z(n=>ne({nodes:n},r))))}function VU(t,e){return W(t,r=>e.derive.bagsList.get(r).pipe(te(n=>e.derive.bagsList.expand(n))))}function NU(t,e){let r=new Oi(e),n=dd(t);return r.pipe(te(o=>n.listNodes(o)),yn(o=>{No(()=>{o.isSome&&o.value.next.isSome?r.next(o.unwrap().next.unwrap()):r.complete()})}),ba(),z(o=>o.map(a=>a.unwrap())))}function CU(t,e){return W(t,r=>r&&r.head.isSome?NU(e,r.head.unwrap()):q([]))}var Q2={};br(Q2,{account:()=>jU,all:()=>J2,votingBalance:()=>GU,votingBalances:()=>XU});var BU="0x76657374696e6720";function RU(t,e,r){let n=t.registry.createType("Balance"),o=[],a=t.registry.createType("Balance"),s=!1;if(Array.isArray(r)){o=r.filter(({until:l})=>!l||e&&l.gt(e)),s=o.some(({amount:l})=>l&&l.isMax()),a=t.registry.createType("Balance",o.filter(({id:l})=>l.eq(BU)).reduce((l,{amount:h})=>l.iadd(h),new be.default(0)));let u=o.filter(({amount:l})=>l&&!l.isMax());u.length&&(n=t.registry.createType("Balance",Gp(...u.map(({amount:l})=>l))))}return{allLocked:s,lockedBalance:n,lockedBreakdown:o,vestingLocked:a}}function R_(t,e,r,n){let{allLocked:o,lockedBalance:a,lockedBreakdown:s,vestingLocked:u}=RU(t,e,n);return ne({},r,{availableBalance:t.registry.createType("Balance",o?0:Gp(new be.default(0),r?.freeBalance?r.freeBalance.sub(a):new be.default(0))),lockedBalance:a,lockedBreakdown:s,vestingLocked:u})}function UU(t,e,r){let n=r||[],o=!e.vestingLocked.isZero(),a=n.map(({locked:l,perBlock:h,startingBlock:y})=>t.gt(y)?Yb(l,h.mul(t.sub(y))):Lt),s=a.reduce((l,h)=>l.iadd(h),new be.default(0)),u=n.reduce((l,{locked:h})=>l.iadd(h),new be.default(0));return{isVesting:o,vestedBalance:s,vestedClaimable:o?e.vestingLocked.sub(u.sub(s)):Lt,vesting:n.map(({locked:l,perBlock:h,startingBlock:y},_)=>({endBlock:l.div(h).iadd(y),locked:l,perBlock:h,startingBlock:y,vested:a[_]})).filter(({locked:l})=>!l.isZero()),vestingTotal:u}}function HU(t,e){let[r,[n,o,a],s]=e,u=R_(t,s,r,o[0]);return ne(u,UU(s,u,n),{accountId:r.accountId,accountNonce:r.accountNonce,additional:o.slice(1).map((l,h)=>R_(t,s,r.additional[h],l)),namedReserves:a})}function LU(t,e){return ae([t.query.balances.locks(e),t.query.balances.vesting(e)]).pipe(z(([r,n])=>{let o=null;if(n.isSome){let{offset:a,perBlock:s,startingBlock:u}=n.unwrap();o=t.registry.createType("VestingInfo",{locked:a,perBlock:s,startingBlock:u})}return[o?[o]:null,[r],[]]}))}var DU=t=>!!t;function U_(t){return[t.map(e=>!e),t.filter(DU)]}function zU(t,e,r=["balances"]){let[n,o]=U_(r.map(u=>t.derive[u]?.customLocks||t.query[u]?.locks)),[a,s]=U_(r.map(u=>t.query[u]?.reserves));return ae([t.query.vesting?.vesting?t.query.vesting.vesting(e):q(t.registry.createType("Option")),o.length?ae(o.map(u=>u(e))):q([]),s.length?ae(s.map(u=>u(e))):q([])]).pipe(z(([u,l,h])=>{let y=-1,_=-1,V=u.unwrapOr(null);return[V?Array.isArray(V)?V:[V]:null,n.map(R=>R?t.registry.createType("Vec"):l[++y]),a.map(R=>R?t.registry.createType("Vec"):h[++_])]}))}function J2(t,e){let r=e.registry.getModuleInstances(e.runtimeVersion.specName,"balances");return W(t,n=>ae([e.derive.balances.account(n),we(e.query.system?.account)||we(e.query.balances?.account)?zU(e,n,r):LU(e,n)]).pipe(te(([o,a])=>ae([q(o),q(a),e.derive.chain.bestNumber()])),z(o=>HU(e,o))))}function Gn(t){return t.registry.createType("Balance")}function H_(t,[e,r,n,o]){let a=t.registry.createType("Balance",e.toBn());return{freeBalance:e,frozenFee:n,frozenMisc:o,reservedBalance:r,votingBalance:a}}function FU(t,[e,[r,[n,...o]]]){return ne({accountId:e,accountNonce:r,additional:o.map(a=>H_(t,a))},H_(t,n))}function qU(t,e){return ae([t.query.balances.freeBalance(e),t.query.balances.reservedBalance(e),t.query.system.accountNonce(e)]).pipe(z(([r,n,o])=>[o,[[r,n,Gn(t),Gn(t)]]]))}function D_(t,e){let r=n=>[n,[[Gn(t),Gn(t),Gn(t),Gn(t)]]];return we(t.query.system.account)?t.query.system.account(e).pipe(z(({nonce:n})=>r(n))):we(t.query.system.accountNonce)?t.query.system.accountNonce(e).pipe(z(n=>r(n))):q(r(t.registry.createType("Index")))}function L_(t,e,r=["balances"]){let n=r.map(a=>t.derive[a]?.customAccount||t.query[a]?.account).filter(a=>we(a)),o=(a,s)=>[a,s.map(({feeFrozen:u,free:l,miscFrozen:h,reserved:y})=>[l,y,u,h])];return n.length?we(t.query.system.account)?ae([t.query.system.account(e),...n.map(a=>a(e))]).pipe(z(([{nonce:a},...s])=>o(a,s))):ae([t.query.system.accountNonce(e),...n.map(a=>a(e))]).pipe(z(([a,...s])=>o(a,s))):D_(t,e)}function WU(t,e){return t.query.system.account(e).pipe(z(r=>{let n=r.nonce?r.data:r[1],o=r.nonce||r[0];if(!n||n.isEmpty)return[o,[[Gn(t),Gn(t),Gn(t),Gn(t)]]];let{feeFrozen:a,free:s,miscFrozen:u,reserved:l}=n;return[o,[[s,l,a,u]]]}))}function jU(t,e){let r=e.registry.getModuleInstances(e.runtimeVersion.specName,"balances"),n=r&&r[0]!=="balances";return W(t,o=>e.derive.accounts.accountId(o).pipe(te(a=>a?ae([q(a),n?L_(e,a,r):we(e.query.system?.account)?WU(e,a):we(e.query.balances?.account)?L_(e,a):we(e.query.balances?.freeBalance)?qU(e,a):D_(e,a)]):q([e.registry.createType("AccountId"),[e.registry.createType("Index"),[[Gn(e),Gn(e),Gn(e),Gn(e)]]]])),z(a=>FU(e,a))))}function XU(t,e){return W(t,r=>r?.length?ae(r.map(n=>e.derive.balances.account(n))):q([]))}var GU=J2;var $2={};br($2,{bounties:()=>ZU});function z_(t,e){let r=t.tx.bounties?t.tx.bounties:t.tx.treasury,n=[r.approveBounty,r.closeBounty,r.proposeCurator,r.unassignCurator];return e.filter(o=>n.find(a=>o.proposal&&a.is(o.proposal)))}function F_([t,e,r,n]){let o=[];return t.forEach((a,s)=>{a.isSome&&o.push({bounty:a.unwrap(),description:e[s].unwrapOrDefault().toUtf8(),index:r[s],proposals:n.filter(u=>u.proposal&&r[s].eq(u.proposal.args[0]))})}),o}function ZU(t,e){let r=e.query.bounties||e.query.treasury;return W(t,()=>r.bounties?ae([r.bountyCount(),e.query.council?e.query.council.proposalCount():q(0)]).pipe(te(()=>ae([r.bounties.keys(),e.derive.council?e.derive.council.proposals():q([])])),te(([n,o])=>{let a=n.map(({args:[s]})=>s);return ae([r.bounties.multi(a),r.bountyDescriptions.multi(a),q(a),q(z_(e,o))])}),z(F_)):q(F_([[],[],[],[]])))}var tg={};br(tg,{_getHeaderRange:()=>oH,bestNumber:()=>KU,bestNumberFinalized:()=>JU,bestNumberLag:()=>QU,getBlock:()=>eH,getBlockByNumber:()=>tH,getHeader:()=>rH,subscribeFinalizedBlocks:()=>nH,subscribeFinalizedHeads:()=>iH,subscribeNewBlocks:()=>aH,subscribeNewHeads:()=>sH});function n0(t){return(e,r)=>W(e,()=>t(r).pipe(z(fd)))}function YU(t,e){let r=e.session?.validators?e.session.validators():q(null),{logs:[n]}=t.digest,o=n&&(n.isConsensus&&n.asConsensus[0].isNimbus&&n.asConsensus[1]||n.isPreRuntime&&n.asPreRuntime[0].isNimbus&&n.asPreRuntime[1]);if(o){if(e.authorMapping?.mappingWithDeposit)return ae([q(t),r,e.authorMapping.mappingWithDeposit(o).pipe(z(a=>a.unwrapOr({account:null}).account))]);if(e.parachainStaking?.selectedCandidates&&e.session?.nextKeys){let a=o.toHex();return ae([q(t),r,e.parachainStaking.selectedCandidates().pipe(us(s=>ae([q(s),e.session.nextKeys.multi(s).pipe(z(u=>u.findIndex(l=>l.unwrapOrDefault().nimbus.toHex()===a)))])),z(([s,u])=>u===-1?null:s[u]))])}}return ae([q(t),r,q(null)])}function gf(t,e,r){return t.queryAt(e.parentHash.isEmpty?r||e.hash:e.parentHash).pipe(te(n=>YU(e,n)))}var KU=n0(t=>t.rpc.chain.subscribeNewHeads());var JU=n0(t=>t.rpc.chain.subscribeFinalizedHeads());function QU(t,e){return W(t,()=>ae([e.derive.chain.bestNumber(),e.derive.chain.bestNumberFinalized()]).pipe(z(([r,n])=>e.registry.createType("BlockNumber",r.sub(n)))))}function o0(t,e){let[r]=t.logs.filter(s=>s.isConsensus),[n]=t.logs.filter(s=>s.isPreRuntime),[o]=t.logs.filter(s=>s.isSeal),a;try{if(n){let[s,u]=n.asPreRuntime;a=s.extractAuthor(u,e)}if(!a&&r){let[s,u]=r.asConsensus;a=s.extractAuthor(u,e)}if(!a&&o){let[s,u]=o.asSeal;a=s.extractAuthor(u,e)}}catch{}return a}function pd(t,e,r,n){let o=t.createClass("Header");class a extends o{__internal__author;constructor(u,l,h,y){super(u,l),this.__internal__author=y||o0(this.digest,h||[]),this.createdAtHash=l?.createdAtHash}get author(){return this.__internal__author}}return new a(t,e,r,n)}function $U(t,e){return t.map((r,n)=>{let o,a,s=e.filter(({phase:u})=>u.isApplyExtrinsic&&u.asApplyExtrinsic.eq(n)).map(({event:u})=>(u.section==="system"&&(u.method==="ExtrinsicSuccess"?a=u.data[0]:u.method==="ExtrinsicFailed"&&(o=u.data[0],a=u.data[1])),u));return{dispatchError:o,dispatchInfo:a,events:s,extrinsic:r}})}function eg(t,e,r,n,o){let a=t.createClass("SignedBlock");class s extends a{__internal__author;__internal__events;__internal__extrinsics;constructor(l,h,y,_,V){super(l,h),this.__internal__author=V||o0(this.block.header.digest,_||[]),this.__internal__events=y||[],this.__internal__extrinsics=$U(this.block.extrinsics,this.__internal__events),this.createdAtHash=h?.createdAtHash}get author(){return this.__internal__author}get events(){return this.__internal__events}get extrinsics(){return this.__internal__extrinsics}}return new s(t,e,r,n,o)}function eH(t,e){return W(t,r=>ae([e.rpc.chain.getBlock(r),e.queryAt(r)]).pipe(te(([n,o])=>ae([q(n),o.system.events(),gf(e,n.block.header,r)])),z(([n,o,[,a,s]])=>eg(o.registry,n,o,a,s))))}function tH(t,e){return W(t,r=>e.rpc.chain.getBlockHash(r).pipe(te(n=>e.derive.chain.getBlock(n))))}function rH(t,e){return W(t,r=>e.rpc.chain.getHeader(r).pipe(te(n=>gf(e,n,r)),z(([n,o,a])=>pd((o||n).registry,n,o,a))))}function nH(t,e){return W(t,()=>e.derive.chain.subscribeFinalizedHeads().pipe(te(r=>e.derive.chain.getBlock(r.createdAtHash||r.hash))))}function oH(t,e){return W(t,(r,n,o=[])=>e.rpc.chain.getHeader(r).pipe(te(a=>a.parentHash.eq(n)?q([a,...o]):e.derive.chain._getHeaderRange(a.parentHash,n,[a,...o]))))}function iH(t,e){return W(t,()=>{let r=null;return e.rpc.chain.subscribeFinalizedHeads().pipe(te(n=>{let o=r,a=n.parentHash;return r=n.createdAtHash=n.hash,o===null||a.eq(o)?q(n):e.derive.chain._getHeaderRange(a,o,[n]).pipe(te(s=>xn(s)))}))})}function aH(t,e){return W(t,()=>e.derive.chain.subscribeNewHeads().pipe(te(r=>e.derive.chain.getBlock(r.createdAtHash||r.hash))))}function sH(t,e){return W(t,()=>e.rpc.chain.subscribeNewHeads().pipe(te(r=>gf(e,r)),z(([r,n,o])=>(r.createdAtHash=r.hash,pd(r.registry,r,n,o)))))}var rg={};br(rg,{fees:()=>uH});function cH(t){return q([t.consts.contracts.callBaseFee||t.registry.createType("Balance"),t.consts.contracts.contractFee||t.registry.createType("Balance"),t.consts.contracts.creationFee||t.registry.createType("Balance"),t.consts.contracts.transactionBaseFee||t.registry.createType("Balance"),t.consts.contracts.transactionByteFee||t.registry.createType("Balance"),t.consts.contracts.transferFee||t.registry.createType("Balance"),t.consts.contracts.rentByteFee||t.registry.createType("Balance"),t.consts.contracts.rentDepositOffset||t.registry.createType("Balance"),t.consts.contracts.surchargeReward||t.registry.createType("Balance"),t.consts.contracts.tombstoneDeposit||t.registry.createType("Balance")])}function uH(t,e){return W(t,()=>cH(e).pipe(z(([r,n,o,a,s,u,l,h,y,_])=>({callBaseFee:r,contractFee:n,creationFee:o,rentByteFee:l,rentDepositOffset:h,surchargeReward:y,tombstoneDeposit:_,transactionBaseFee:a,transactionByteFee:s,transferFee:u}))))}var ng={};br(ng,{hasProposals:()=>yH,members:()=>bH,prime:()=>SH,proposal:()=>gH,proposalCount:()=>wH,proposalHashes:()=>vH,proposals:()=>_H,votes:()=>mH,votesOf:()=>xH});function fH(t){return!Array.isArray(t)}function lH(t){return t.stakeOf.entries().pipe(z(e=>e.map(([{args:[r]},n])=>[r,n])))}function dH(t){return t.votesOf.entries().pipe(z(e=>e.map(([{args:[r]},n])=>[r,n])))}function pH(t,e){return ae([lH(e),dH(e)]).pipe(z(([r,n])=>{let o=[];return n.forEach(([a,s])=>{o.push([a,{stake:t.registry.createType("Balance"),votes:s}])}),r.forEach(([a,s])=>{let u=o.find(([l])=>l.eq(a));u?u[1].stake=s:o.push([a,{stake:s,votes:[]}])}),o}))}function hH(t){return t.voting.entries().pipe(z(e=>e.map(([{args:[r]},n])=>[r,fH(n)?{stake:n.stake,votes:n.votes}:{stake:n[0],votes:n[1]}])))}function mH(t,e){let r=e.query.elections||e.query.phragmenElection||e.query.electionsPhragmen;return W(t,()=>r?r.stakeOf?pH(e,r):hH(r):q([]))}function xH(t,e){return W(t,r=>e.derive.council.votes().pipe(z(n=>(n.find(([o])=>o.eq(r))||[null,{stake:e.registry.createType("Balance"),votes:[]}])[1])))}var bH=gs("council"),yH=vs("council"),gH=Ss("council"),wH=Ts("council"),vH=ks("council"),_H=_s("council"),SH=ws("council");var ig={};br(ig,{childKey:()=>kH,contributions:()=>IH,ownContributions:()=>CH});function TH(t){return Te(Ke(":child_storage:default:",kr(Ke("crowdloan",(t.fundIndex||t.trieIndex).toU8a()))))}function kH(t,e){return W(t,r=>e.query.crowdloan.funds(r).pipe(z(n=>n.isSome?TH(n.unwrap()):null)))}function i0(t,e){let r=[],n=[];return e.filter(({event:{data:[,o],method:a,section:s}})=>s==="crowdloan"&&["Contributed","Withdrew"].includes(a)&&o.eq(t)).reduce((o,{event:{data:[a],method:s}})=>(s==="Contributed"?o.added.push(a.toHex()):o.removed.push(a.toHex()),o),{added:r,blockHash:e.createdAtHash?.toHex()||"-",removed:n})}var og=1e3;function EH(t,e){let r=[],n=[];return t.query.system.events().pipe(te(o=>{let a=i0(e,o);return a.added.length||a.removed.length?(r=r.concat(...a.added),n=n.concat(...a.removed),q({added:r,addedDelta:a.added,blockHash:o.createdAtHash?.toHex()||"-",removed:n,removedDelta:a.removed})):Ii}),Vi({added:r,addedDelta:[],blockHash:"-",removed:n,removedDelta:[]}))}function PH(t,e){return t.query.system.events().pipe(te(r=>r.filter(({event:{data:[o],method:a,section:s}})=>s==="crowdloan"&&["AllRefunded","Dissolved","PartiallyRefunded"].includes(a)&&o.eq(e)).length?q(r.createdAtHash?.toHex()||"-"):Ii),Vi("-"))}function MH(t,e){let r=new Oi(void 0);return r.pipe(te(n=>t.rpc.childstate.getKeysPaged(e,"0x",og,n)),yn(n=>{No(()=>{n.length===og?r.next(n[og-1].toHex()):r.complete()})}),ba(),z(n=>Ko(n)))}function AH(t,e,r){return PH(t,e).pipe(te(()=>we(t.rpc.childstate.getKeysPaged)?MH(t,r):t.rpc.childstate.getKeys(r,"0x")),z(n=>n.map(o=>o.toHex())))}function OH(t,e,r){return ae([AH(t,e,r),EH(t,e)]).pipe(z(([n,{added:o,blockHash:a,removed:s}])=>{let u={};return n.forEach(l=>{u[l]=!0}),o.forEach(l=>{u[l]=!0}),s.forEach(l=>{delete u[l]}),{blockHash:a,contributorsHex:Object.keys(u)}}))}function IH(t,e){return W(t,r=>e.derive.crowdloan.childKey(r).pipe(te(n=>n?OH(e,r,n):q({blockHash:"-",contributorsHex:[]}))))}function q_(t,e,r){return ae(r.map(n=>t.rpc.childstate.getStorage(e,n))).pipe(z(n=>n.map(o=>t.registry.createType("Option",o)).map(o=>o.isSome?t.registry.createType("Balance",o.unwrap()):t.registry.createType("Balance")).reduce((o,a,s)=>ne(o,{[r[s]]:a}),{})))}function VH(t,e,r,n){return t.query.system.events().pipe(te(o=>{let a=i0(e,o),s=n.filter(u=>a.added.includes(u)||a.removed.includes(u));return s.length?q_(t,r,s):Ii}),Vi({}))}function NH(t,e,r,n){return ae([q_(t,r,n),VH(t,e,r,n)]).pipe(z(([o,a])=>ne({},o,a)))}function CH(t,e){return W(t,(r,n)=>e.derive.crowdloan.childKey(r).pipe(te(o=>o&&n.length?NH(e,r,o,n):q({}))))}var ag={};br(ag,{_referendumInfo:()=>_L,_referendumVotes:()=>wL,_referendumsVotes:()=>vL,dispatchQueue:()=>GH,locks:()=>QH,nextExternal:()=>eL,preimage:()=>uL,preimages:()=>cL,proposals:()=>dL,referendumIds:()=>pL,referendums:()=>hL,referendumsActive:()=>mL,referendumsFinished:()=>xL,referendumsInfo:()=>SL,sqrtElectorate:()=>TL});function BH(t){return!!t.proposalHash}function RH(t){return!!t.tally}function W_(t,e,r,n){for(;;){let o=t.div(e),a=r.div(n);if(o.lt(a))return!0;if(a.lt(o))return!1;let s=t.mod(e),u=r.mod(n);if(u.isZero())return!1;if(s.isZero())return!0;t=n,r=e,e=u,n=s}}function UH(t,e,{votedAye:r,votedNay:n,votedTotal:o}){let a=cl(o);return a.isZero()?!1:t.isSuperMajorityApprove?W_(n,a,r,e):W_(n,e,r,a)}function HH(t,e,r){return t.isSimpleMajority?r.votedAye.gt(r.votedNay):UH(t,e,r)}function LH(t){return t.reduce((e,r)=>{let{balance:n,vote:o}=r,a=o.conviction.index===0,s=n.muln(a?1:o.conviction.index).divn(a?10:1);return o.isAye?(e.allAye.push(r),e.voteCountAye++,e.votedAye.iadd(s)):(e.allNay.push(r),e.voteCountNay++,e.votedNay.iadd(s)),e.voteCount++,e.votedTotal.iadd(s),e},{allAye:[],allNay:[],voteCount:0,voteCountAye:0,voteCountNay:0,votedAye:new be.default(0),votedNay:new be.default(0),votedTotal:new be.default(0)})}function DH(t,e){let r=[],n=[];return e.forEach(o=>{o.vote.isAye?r.push(o):n.push(o)}),{allAye:r,allNay:n,voteCount:r.length+n.length,voteCountAye:r.length,voteCountNay:n.length,votedAye:t.ayes,votedNay:t.nays,votedTotal:t.turnout}}function j_(t,e,r){let n=RH(e.status)?DH(e.status.tally,r):LH(r);return ne({},n,{isPassing:HH(e.status.threshold,t,n),votes:r})}function X_(t){if(t.isNone)return null;let e=t.unwrap();return BH(e)?e:e.isOngoing?e.asOngoing:null}function ci(t){return t.isLegacy?t.asLegacy.hash_.toHex():t.isLookup?t.asLookup.hash_.toHex():t.isInline?t.asInline.hash.toHex():qe(t)?Ae(t)?t:nc(t):ue(t)?Te(t):t.toHex()}function G_(t){return ci(t.proposal||t.proposalHash)}var zH=nc("democrac");function FH(t){return t instanceof Dr}function qH(t){return t.isInline||t.isLegacy||t.isLookup}function WH(t){return t.query.democracy.dispatchQueue().pipe(te(e=>ae([q(e),t.derive.democracy.preimages(e.map(([,r])=>r))])),z(([e,r])=>e.map(([n,o,a],s)=>({at:n,image:r[s],imageHash:ci(o),index:a}))))}function jH(t){return t.derive.democracy.referendumsFinished().pipe(te(()=>t.query.scheduler.agenda.keys()),te(e=>{let r=e.map(({args:[n]})=>n);return r.length?ae([q(r),t.query.scheduler.agenda.multi(r).pipe(bn(()=>q(r.map(()=>[]))))]):q([[],[]])}))}function XH(t){return jH(t).pipe(te(([e,r])=>{let n=[];return e.forEach((o,a)=>{(r[a]||[]).filter(s=>s.isSome).forEach(s=>{let u=s.unwrap();if(u.maybeId.isSome){let l=u.maybeId.unwrap().toHex();if(l.startsWith(zH)){let h=FH(u.call)?qH(u.call)?ci(u.call):u.call.isHash?u.call.asHash.toHex():u.call.asValue.args[0].toHex():u.call.args[0].toHex();n.push({at:o,imageHash:h,index:t.registry.createType("(u64, ReferendumIndex)",l)[1]})}}})}),ae([q(n),n.length?t.derive.democracy.preimages(n.map(({imageHash:o})=>o)):q([])])}),z(([e,r])=>e.map((n,o)=>ne({image:r[o]},n))))}function GH(t,e){return W(t,()=>we(e.query.scheduler?.agenda)?XH(e):e.query.democracy.dispatchQueue?WH(e):q([]))}var Z_=[0,1,2,4,8,16,32];function ZH(t,e,{approved:r,end:n}){return[n,r.isTrue&&e.isAye||r.isFalse&&e.isNay?n.add((t.consts.democracy.voteLockingPeriod||t.consts.democracy.enactmentPeriod).muln(Z_[e.conviction.index])):Lt]}function YH(t,[e,r],n){let{balance:o,vote:a}=r.asStandard,[s,u]=n.isFinished?ZH(t,a,n.asFinished):[Lt,Lt];return{balance:o,isDelegated:!1,isFinished:n.isFinished,referendumEnd:s,referendumId:e,unlockAt:u,vote:a}}function KH(t,{balance:e,conviction:r,target:n}){return t.derive.democracy.locks(n).pipe(z(o=>o.map(({isFinished:a,referendumEnd:s,referendumId:u,unlockAt:l,vote:h})=>({balance:e,isDelegated:!0,isFinished:a,referendumEnd:s,referendumId:u,unlockAt:l.isZero()?l:s.add((t.consts.democracy.voteLockingPeriod||t.consts.democracy.enactmentPeriod).muln(Z_[r.index])),vote:t.registry.createType("Vote",{aye:h.isAye,conviction:r})}))))}function JH(t,{votes:e}){return e.length?t.query.democracy.referendumInfoOf.multi(e.map(([r])=>r)).pipe(z(r=>e.map((n,o)=>[n,r[o].unwrapOr(null)]).filter(n=>!!n[1]&&Qe(n[1].end)&&n[0][1].isStandard).map(([n,o])=>YH(t,n,o)))):q([])}function QH(t,e){return W(t,r=>e.query.democracy.votingOf?e.query.democracy.votingOf(r).pipe(te(n=>n.isDirect?JH(e,n.asDirect):n.isDelegating?KH(e,n.asDelegating):q([]))):q([]))}function $H(t,e){if(e.isNone)return q(null);let[r,n]=e.unwrap();return t.derive.democracy.preimage(r).pipe(z(o=>({image:o,imageHash:ci(r),threshold:n})))}function eL(t,e){return W(t,()=>e.query.democracy?.nextExternal?e.query.democracy.nextExternal().pipe(te(r=>$H(e,r))):q(null))}function tL(t){return t.ticket||t.deposit}function rL(t){return(t.maybeTicket||t.deposit).unwrapOrDefault()}function nL(t,e){return!!e&&!t.query.democracy.dispatchQueue}function Y_(t,[e,r,n,o]){let a;try{a=t.registry.createType("Call",e.toU8a(!0))}catch(s){console.error(s)}return{at:o,balance:n,proposal:a,proposer:r}}function oL(t,e){if(!e.isNone){if(nL(t,e)){let r=e.unwrap();if(r.isMissing)return;let{data:n,deposit:o,provider:a,since:s}=r.asAvailable;return Y_(t,[n,a,o,s])}return Y_(t,e.unwrap())}}function iL(t,[e,r,n]){if(!r)return;let[o,a]=r.isUnrequested?tL(r.asUnrequested):rL(r.asRequested),s;if(n)try{s=t.registry.createType("Call",n.toU8a(!0))}catch(u){console.error(u)}return{at:Lt,balance:a,proposal:s,proposalHash:e,proposer:o}}function aL(t,e){let r=e.map(n=>ci(n));return t.query.democracy.preimages.multi(r).pipe(z(n=>n.map(o=>oL(t,o))))}function sL(t,e){let r=e.map(o=>ci(o)),n=t.registry.lookup.getTypeDef(t.query.preimage.preimageFor.creator.meta.type.asMap.key).type;return t.query.preimage.statusFor.multi(r).pipe(te(o=>{let a=o.map(u=>u.unwrapOr(null)),s=a.map((u,l)=>u?n==="H256"?r[l]:u.isRequested?[r[l],u.asRequested.len.unwrapOr(0)]:[r[l],u.asUnrequested.len]:null).filter(u=>!!u);return t.query.preimage.preimageFor.multi(s).pipe(z(u=>{let l=-1;return a.map((h,y)=>h?[r[y],h,u[++l].unwrapOr(null)]:[r[y],null,null]).map(h=>iL(t,h))}))}))}function cL(t,e){return W(t,r=>r.length?we(e.query.democracy.preimages)?aL(e,r):we(e.query.preimage.preimageFor)?sL(e,r):q([]):q([]))}var uL=on((t,e)=>t.derive.democracy.preimages([e]));function fL(t){return we(t[1].mul)}function lL([t,e,r]){return t.filter(([,,n],o)=>!!r[o]?.isSome&&!n.isEmpty).map(([n,o,a],s)=>{let u=r[s].unwrap();return ne({image:e[s],imageHash:ci(o),index:n,proposer:a},fL(u)?{balance:u[1],seconds:u[0]}:{balance:u[0],seconds:u[1]})})}function dL(t,e){return W(t,()=>we(e.query.democracy?.publicProps)?e.query.democracy.publicProps().pipe(te(r=>r.length?ae([q(r),e.derive.democracy.preimages(r.map(([,n])=>n)),e.query.democracy.depositOf.multi(r.map(([n])=>n))]):q([[],[],[]])),z(lL)):q([]))}function pL(t,e){return W(t,()=>e.query.democracy?.lowestUnbaked?e.queryMulti([e.query.democracy.lowestUnbaked,e.query.democracy.referendumCount]).pipe(z(([r,n])=>n.gt(r)?[...Array(n.sub(r).toNumber())].map((o,a)=>r.addn(a)):[])):q([]))}function hL(t,e){return W(t,()=>e.derive.democracy.referendumsActive().pipe(te(r=>r.length?ae([q(r),e.derive.democracy._referendumsVotes(r)]):q([[],[]])),z(([r,n])=>r.map((o,a)=>ne({},o,n[a])))))}function mL(t,e){return W(t,()=>e.derive.democracy.referendumIds().pipe(te(r=>r.length?e.derive.democracy.referendumsInfo(r):q([]))))}function xL(t,e){return W(t,()=>e.derive.democracy.referendumIds().pipe(te(r=>e.query.democracy.referendumInfoOf.multi(r)),z(r=>r.map(n=>n.unwrapOr(null)).filter(n=>!!n&&n.isFinished).map(n=>n.asFinished))))}function bL(t,e){return t.query.democracy.votersFor(e).pipe(te(r=>ae([q(r),r.length?t.query.democracy.voteOf.multi(r.map(n=>[e,n])):q([]),t.derive.balances.votingBalances(r)])),z(([r,n,o])=>r.map((a,s)=>({accountId:a,balance:o[s].votingBalance||t.registry.createType("Balance"),isDelegating:!1,vote:n[s]||t.registry.createType("Vote")}))))}function yL(t,e){return t.filter(([,r])=>r.isDirect).map(([r,n])=>[r,n.asDirect.votes.filter(([o])=>o.eq(e))]).filter(([,r])=>!!r.length).reduce((r,[n,o])=>o.reduce((a,[,s])=>(s.isStandard&&a.push(ne({accountId:n,isDelegating:!1},s.asStandard)),a),r),[])}function gL(t,e){return t.query.democracy.votingOf.entries().pipe(z(r=>{let n=r.map(([{args:[s]},u])=>[s,u]),o=yL(n,e),a=n.filter(([,s])=>s.isDelegating).map(([s,u])=>[s,u.asDelegating]);return a.forEach(([s,{balance:u,conviction:l,target:h}])=>{let y=a.find(([V])=>V.eq(h)),_=o.find(({accountId:V})=>V.eq(y?y[0]:h));_&&o.push({accountId:s,balance:u,isDelegating:!0,vote:t.registry.createType("Vote",{aye:_.vote.isAye,conviction:l})})}),o}))}function wL(t,e){return W(t,r=>ae([e.derive.democracy.sqrtElectorate(),we(e.query.democracy.votingOf)?gL(e,r.index):bL(e,r.index)]).pipe(z(([n,o])=>j_(n,r,o))))}function vL(t,e){return W(t,r=>r.length?ae(r.map(n=>e.derive.democracy._referendumVotes(n))):q([]))}function _L(t,e){return W(t,(r,n)=>{let o=X_(n);return o?e.derive.democracy.preimage(o.proposal||o.proposalHash).pipe(z(a=>({image:a,imageHash:G_(o),index:e.registry.createType("ReferendumIndex",r),status:o}))):q(null)})}function SL(t,e){return W(t,r=>r.length?e.query.democracy.referendumInfoOf.multi(r).pipe(te(n=>ae(r.map((o,a)=>e.derive.democracy._referendumInfo(o,n[a])))),z(n=>n.filter(o=>!!o))):q([]))}function TL(t,e){return W(t,()=>e.query.balances.totalIssuance().pipe(z(cl)))}var sg={};br(sg,{info:()=>VL});function kL(t){return!Array.isArray(t)}function EL(t){return Array.isArray(t)}function K_(t){return kL(t)?[t.who,t.stake]:t}function PL(t){return EL(t)?t[0]:t}function J_([,t],[,e]){return e.cmp(t)}function ML(t,e){return e?{candidacyBond:t.consts[e].candidacyBond,desiredRunnersUp:t.consts[e].desiredRunnersUp,desiredSeats:t.consts[e].desiredMembers,termDuration:t.consts[e].termDuration,votingBond:t.consts[e].votingBond,votingBondBase:t.consts[e].votingBondBase,votingBondFactor:t.consts[e].votingBondFactor}:{}}function AL(t){let[e]=t.registry.getModuleInstances(t.runtimeVersion.specName,"council")||["council"],r=t.query.phragmenElection?"phragmenElection":t.query.electionsPhragmen?"electionsPhragmen":t.query.elections?"elections":null;return[e,r]}function OL(t,e,r){return t.queryMulti([t.query[e].members,t.query[r].candidates,t.query[r].members,t.query[r].runnersUp])}function IL(t,e){return ae([t.query[e].members(),q([]),q([]),q([])])}function VL(t,e){return W(t,()=>{let[r,n]=AL(e);return(n?OL(e,r,n):IL(e,r)).pipe(z(([o,a,s,u])=>ne({},ML(e,n),{candidateCount:e.registry.createType("u32",a.length),candidates:a.map(PL),members:s.length?s.map(K_).sort(J_):o.map(l=>[l,e.registry.createType("Balance")]),runnersUp:u.map(K_).sort(J_)})))})}var cg={};br(cg,{receivedHeartbeats:()=>CL});function NL([t,e,r,n]){return e.forEach((o,a)=>{let s=o.toString(),u=n[a],l=!r[a].isEmpty,h=t[s];(!h||h.hasMessage!==l||!h.blockCount.eq(u))&&(t[s]={blockCount:u,hasMessage:l,isOnline:l||u.gt(Lt)})}),t}function CL(t,e){return W(t,()=>e.query.imOnline?.receivedHeartbeats?e.derive.staking.overview().pipe(te(({currentIndex:r,validators:n})=>ae([q({}),q(n),e.query.imOnline.receivedHeartbeats.multi(n.map((o,a)=>[r,a])),e.query.imOnline.authoredBlocks.multi(n.map(o=>[r,o]))])),z(NL)):q({}))}var ug={};br(ug,{hasProposals:()=>RL,members:()=>BL,prime:()=>zL,proposal:()=>UL,proposalCount:()=>HL,proposalHashes:()=>LL,proposals:()=>DL});var BL=gs("membership"),RL=vs("membership"),UL=Ss("membership"),HL=Ts("membership"),LL=ks("membership"),DL=_s("membership"),zL=ws("membership");var fg={};br(fg,{info:()=>WL,overview:()=>XL});function a0(t,e){return t.isSome?t.unwrap().some(r=>r.eq(e)):!1}function FL(t,e){let r=e.find(([n])=>n===t);if(r&&r[1].isSome){let[n,o]=r[1].unwrap();return ne({collatorId:n},o.isWithRetries?{isRetriable:!0,retries:o.asWithRetries.toNumber()}:{isRetriable:!1,retries:0})}return null}function Q_(t,e){return e.map(r=>{let n=r.find(([o])=>o===t);return n?n[1]:null})}function qL(t,[e,r,n,o,a,s,u,l]){return a.isNone?null:{active:FL(t,e),didUpdate:a0(o,t),heads:u,id:t,info:ne({id:t},a.unwrap()),pendingSwapId:s.unwrapOr(null),relayDispatchQueue:l,retryCollators:Q_(t,r),selectedCollators:Q_(t,n)}}function WL(t,e){return W(t,r=>e.query.registrar&&e.query.parachains?e.queryMulti([e.query.registrar.active,e.query.registrar.retryQueue,e.query.registrar.selectedThreads,e.query.parachains.didUpdate,[e.query.registrar.paras,r],[e.query.registrar.pendingSwap,r],[e.query.parachains.heads,r],[e.query.parachains.relayDispatchQueue,r]]).pipe(z(n=>qL(e.registry.createType("ParaId",r),n))):q(null))}function jL([t,e,r,n,o]){return t.map((a,s)=>({didUpdate:a0(e,a),id:a,info:ne({id:a},n[s].unwrapOr(null)),pendingSwapId:o[s].unwrapOr(null),relayDispatchQueueSize:r[s][0].toNumber()}))}function XL(t,e){return W(t,()=>e.query.registrar?.parachains&&e.query.parachains?e.query.registrar.parachains().pipe(te(r=>ae([q(r),e.query.parachains.didUpdate(),e.query.parachains.relayDispatchQueueSize.multi(r),e.query.registrar.paras.multi(r),e.query.registrar.pendingSwap.multi(r)])),z(jL)):q([]))}var pg={};br(pg,{eraLength:()=>rD,eraProgress:()=>nD,indexes:()=>KL,info:()=>JL,progress:()=>tD,sessionProgress:()=>oD});function lg([t,e,r,n,o]){return{activeEra:e,activeEraStart:r,currentEra:n,currentIndex:t,validatorCount:o}}function GL(t){return t.queryMulti([t.query.session.currentIndex,t.query.staking.activeEra,t.query.staking.currentEra,t.query.staking.validatorCount]).pipe(z(([e,r,n,o])=>{let{index:a,start:s}=r.unwrapOrDefault();return lg([e,a,s,n.unwrapOrDefault(),o])}))}function ZL(t){return t.query.session.currentIndex().pipe(z(e=>lg([e,t.registry.createType("EraIndex"),t.registry.createType("Option"),t.registry.createType("EraIndex"),t.registry.createType("u32")])))}function YL(t){return q(lg([t.registry.createType("SessionIndex",1),t.registry.createType("EraIndex"),t.registry.createType("Option"),t.registry.createType("EraIndex"),t.registry.createType("u32")]))}function KL(t,e){return W(t,()=>e.query.session?e.query.staking?GL(e):ZL(e):YL(e))}function JL(t,e){return W(t,()=>e.derive.session.indexes().pipe(z(r=>{let n=e.consts?.babe?.epochDuration||e.registry.createType("u64",1),o=e.consts?.staking?.sessionsPerEra||e.registry.createType("SessionIndex",1);return ne({eraLength:e.registry.createType("BlockNumber",o.mul(n)),isEpoch:!!e.query.babe,sessionLength:n,sessionsPerEra:o},r)})))}function dg(t){return(e,r)=>W(e,()=>r.derive.session.progress().pipe(z(n=>n[t])))}function QL(t,e,[r,n,o,a]){let s=n.mul(e.sessionLength).iadd(o),u=r.sub(s),l=e.currentIndex.sub(a).imul(e.sessionLength).iadd(u);return ne({eraProgress:t.registry.createType("BlockNumber",l),sessionProgress:t.registry.createType("BlockNumber",u)},e)}function $L(t){return t.derive.session.info().pipe(z(e=>ne({eraProgress:t.registry.createType("BlockNumber"),sessionProgress:t.registry.createType("BlockNumber")},e)))}function eD(t){return t.derive.session.info().pipe(te(e=>ae([q(e),t.query.staking?.erasStartSessionIndex?t.queryMulti([t.query.babe.currentSlot,t.query.babe.epochIndex,t.query.babe.genesisSlot,[t.query.staking.erasStartSessionIndex,e.activeEra]]):t.queryMulti([t.query.babe.currentSlot,t.query.babe.epochIndex,t.query.babe.genesisSlot])])),z(([e,[r,n,o,a]])=>[e,[r,n,o,a&&a.isSome?a.unwrap():t.registry.createType("SessionIndex",1)]]))}function tD(t,e){return W(t,()=>e.query.babe?eD(e).pipe(z(([r,n])=>QL(e,r,n))):$L(e))}var rD=dg("eraLength"),nD=dg("eraProgress"),oD=dg("sessionProgress");var hg={};br(hg,{_members:()=>dD,candidates:()=>sD,info:()=>cD,member:()=>uD,members:()=>pD});function iD(t){return t.query.society.candidates().pipe(te(e=>ae([q(e),t.query.society.suspendedCandidates.multi(e.map(({who:r})=>r))])),z(([e,r])=>e.map(({kind:n,value:o,who:a},s)=>({accountId:a,isSuspended:r[s].isSome,kind:n,value:o}))))}function aD(t){return t.query.society.candidates.entries().pipe(z(e=>e.filter(([,r])=>r.isSome).map(([{args:[r]},n])=>[r,n.unwrap()]).map(([r,{bid:n,kind:o}])=>({accountId:r,isSuspended:!1,kind:o,value:n}))))}function sD(t,e){return W(t,()=>e.query.society.suspendedCandidates&&e.query.society.candidates.creator.meta.type.isPlain?iD(e):aD(e))}function cD(t,e){return W(t,()=>ae([e.query.society.bids(),e.query.society.defender?e.query.society.defender():q(void 0),e.query.society.founder(),e.query.society.head(),e.query.society.maxMembers?e.query.society.maxMembers():q(void 0),e.query.society.pot()]).pipe(z(([r,n,o,a,s,u])=>({bids:r,defender:n?.unwrapOr(void 0),founder:o.unwrapOr(void 0),hasDefender:n?.isSome&&a.isSome&&!a.eq(n)||!1,head:a.unwrapOr(void 0),maxMembers:s,pot:u}))))}function uD(t,e){return W(t,r=>e.derive.society._members([r]).pipe(z(([n])=>n)))}function fD(t,e){return ae([q(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(z(([r,n,o,a,s,u])=>r.map((l,h)=>({accountId:l,isDefenderVoter:a[h].isSome,isSuspended:s[h].isTrue,payouts:n[h],strikes:o[h],vote:a[h].unwrapOr(void 0),vouching:u[h].unwrapOr(void 0)}))))}function lD(t,e){return ae([q(e),t.query.society.members.multi(e),t.query.society.payouts.multi(e),t.query.society.defenderVotes.multi(e),t.query.society.suspendedMembers.multi(e)]).pipe(z(([r,n,o,a,s])=>r.map((u,l)=>n[l].isSome?{accountId:u,isDefenderVoter:a[l].isSome?a[l].unwrap().approve.isTrue:!1,isSuspended:s[l].isSome,member:n[l].unwrap(),payouts:o[l].payouts}:null).filter(u=>!!u).map(({accountId:u,isDefenderVoter:l,isSuspended:h,member:y,payouts:_})=>({accountId:u,isDefenderVoter:l,isSuspended:h,payouts:_,strikes:y.strikes,vouching:y.vouching.unwrapOr(void 0)}))))}function dD(t,e){return W(t,r=>e.query.society.members.creator.meta.type.isMap?lD(e,r):fD(e,r))}function pD(t,e){return W(t,()=>e.query.society.members.creator.meta.type.isMap?e.query.society.members.keys().pipe(te(r=>e.derive.society._members(r.map(({args:[n]})=>n)))):e.query.society.members().pipe(te(r=>e.derive.society._members(r))))}var mg={};br(mg,{_eraExposure:()=>AD,_eraPrefs:()=>DD,_eraSlashes:()=>YD,_erasExposure:()=>ID,_erasPoints:()=>RD,_erasPrefs:()=>FD,_erasRewards:()=>jD,_erasSlashes:()=>JD,_ownExposures:()=>nz,_ownSlashes:()=>az,_stakerExposures:()=>mz,_stakerPoints:()=>yz,_stakerPrefs:()=>wz,_stakerRewards:()=>Pz,_stakerRewardsEras:()=>Ez,_stakerSlashes:()=>Iz,account:()=>wD,accounts:()=>gD,currentPoints:()=>vD,electedInfo:()=>TD,eraExposure:()=>OD,eraPrefs:()=>zD,eraSlashes:()=>KD,erasExposure:()=>VD,erasHistoric:()=>ND,erasPoints:()=>UD,erasPrefs:()=>qD,erasRewards:()=>XD,erasSlashes:()=>QD,keys:()=>ez,keysMulti:()=>tz,nextElected:()=>Bz,overview:()=>rz,ownExposure:()=>oz,ownExposures:()=>iz,ownSlash:()=>sz,ownSlashes:()=>cz,query:()=>pz,queryMulti:()=>hz,stakerExposure:()=>bz,stakerExposures:()=>xz,stakerPoints:()=>gz,stakerPrefs:()=>vz,stakerRewards:()=>Mz,stakerRewardsMulti:()=>Oz,stakerRewardsMultiEras:()=>Az,stakerSlashes:()=>Vz,stashes:()=>Cz,validators:()=>Rz,waitingInfo:()=>Hz});var hD={withDestination:!0,withLedger:!0,withNominations:!0,withPrefs:!0};function mD(t){return t.reduce((e,{era:r,value:n})=>{let o=r.toString();return e[o]=(e[o]||Lt).add(n.unwrap()),e},{})}function xD(t,e,r){let n=Object.entries(mD((e?.unlocking||[]).filter(({era:o})=>o.unwrap().gt(r.activeEra)))).map(([o,a])=>({remainingEras:new be.default(o).isub(r.activeEra),value:t.registry.createType("Balance",a)}));return n.length?n:void 0}function bD(t,e,r){return t.registry.createType("Balance",(e?.unlocking||[]).reduce((n,{era:o,value:a})=>o.unwrap().gt(r.currentEra)?n:n.iadd(a.unwrap()),new be.default(0)))}function yD(t,e,r,n){return ne({},r,n,{redeemable:bD(t,n.stakingLedger,e),unlocking:xD(t,n.stakingLedger,e)})}function gD(t,e){return W(t,(r,n=hD)=>e.derive.session.info().pipe(te(o=>ae([e.derive.staking.keysMulti(r),e.derive.staking.queryMulti(r,n)]).pipe(z(([a,s])=>s.map((u,l)=>yD(e,o,a[l],u)))))))}var wD=on((t,e,r)=>t.derive.staking.accounts([e],r));function vD(t,e){return W(t,()=>e.derive.session.indexes().pipe(te(({activeEra:r})=>e.query.staking.erasRewardPoints(r))))}var _D={withController:!0,withExposure:!0,withPrefs:!0};function SD(t,e){return Ko([t,e.filter(r=>!t.find(n=>n.eq(r)))])}function TD(t,e){return W(t,(r=_D)=>e.derive.staking.validators().pipe(te(({nextElected:n,validators:o})=>e.derive.staking.queryMulti(SD(n,o),r).pipe(z(a=>({info:a,nextElected:n,validators:o}))))))}function wf(t,e,r){let n=`${t}-${e.toString()}`;return[n,r?void 0:yf.get(n)]}function s0(t,e,r){return r?[]:e.map(o=>yf.get(`${t}-${o.toString()}`)).filter(o=>!!o)}function vf(t,e,r){return!e&&yf.set(t,r),r}function c0(t,e,r){return!e&&r.forEach(n=>yf.set(`${t}-${n.era.toString()}`,n)),r}function u0(t,e,r){return t.map(n=>e.find(({era:o})=>n.eq(o))||r.find(({era:o})=>n.eq(o))).filter(n=>!!n)}var kD=14;function ED(t,e){let r=Tu(t,kD),n=0,o=new Oi(r[n]);return o.pipe(te(e),yn(()=>{No(()=>{n++,n===r.length?o.complete():o.next(r[n])})}),ba(),z(Ko))}function f0(t,e){return t.filter(r=>!e.some(({era:n})=>r.eq(n)))}function Di(t){return(e,r)=>W(e,(n=!1)=>r.derive.staking.erasHistoric(n).pipe(te(o=>r.derive.staking[t](o,n))))}function zi(t){return(e,r)=>W(e,(n,o=!1)=>r.derive.staking.erasHistoric(o).pipe(te(a=>r.derive.staking[t](n,a,o))))}function _f(t){return(e,r)=>W(e,n=>r.derive.staking[t](n,!0))}function Sf(t){return(e,r)=>W(e,(n,o)=>n.length?ED(n,a=>ae(a.map(s=>r.derive.staking[t](s,o)))):q([]))}var PD="eraExposure";function MD(t,e){let r={},n={};return e.forEach(([o,a])=>{let s=o.args[1].toString();n[s]=a,a.others.forEach(({who:u},l)=>{let h=u.toString();r[h]=r[h]||[],r[h].push({validatorId:s,validatorIndex:l})})}),{era:t,nominators:r,validators:n}}function AD(t,e){return W(t,(r,n=!1)=>{let[o,a]=wf(PD,r,n);return a?q(a):e.query.staking.erasStakersClipped.entries(r).pipe(z(s=>vf(o,n,MD(r,s))))})}var OD=_f("_eraExposure"),ID=Sf("_eraExposure"),VD=Di("_erasExposure");function ND(t,e){return W(t,r=>ae([e.query.staking.activeEra(),e.consts.staking.historyDepth?q(e.consts.staking.historyDepth):e.query.staking.historyDepth()]).pipe(z(([n,o])=>{let a=[],s=o.toNumber(),u=n.unwrapOrDefault().index,l=u;for(;l.gte(Lt)&&a.lengthe.gt(Lt)).reduce((e,[r,n])=>(e[r.toString()]=n,e),{})}function BD(t,e){return t.map((r,n)=>({era:r,eraPoints:e[n].total,validators:CD(e[n])}))}function RD(t,e){return W(t,(r,n)=>{if(!r.length)return q([]);let o=s0($_,r,n),a=f0(r,o);return a.length?e.query.staking.erasRewardPoints.multi(a).pipe(z(s=>u0(r,o,c0($_,n,BD(a,s))))):q(o)})}var UD=Di("_erasPoints");var HD="eraPrefs";function LD(t,e){let r={};return e.forEach(([n,o])=>{r[n.args[1].toString()]=o}),{era:t,validators:r}}function DD(t,e){return W(t,(r,n)=>{let[o,a]=wf(HD,r,n);return a?q(a):e.query.staking.erasValidatorPrefs.entries(r).pipe(z(s=>vf(o,n,LD(r,s))))})}var zD=_f("_eraPrefs"),FD=Sf("_eraPrefs"),qD=Di("_erasPrefs");var eS="eraRewards";function WD(t,e){return t.map((r,n)=>({era:r,eraReward:e[n].unwrapOrDefault()}))}function jD(t,e){return W(t,(r,n)=>{if(!r.length)return q([]);let o=s0(eS,r,n),a=f0(r,o);return a.length?e.query.staking.erasValidatorReward.multi(a).pipe(z(s=>u0(r,o,c0(eS,n,WD(a,s))))):q(o)})}var XD=Di("_erasRewards");var GD="eraSlashes";function ZD(t,e,r){let n={},o={};return e.forEach(([a,s])=>{n[a.args[1].toString()]=s.unwrap()}),r.forEach(([a,s])=>{o[a.args[1].toString()]=s.unwrapOrDefault()[1]}),{era:t,nominators:n,validators:o}}function YD(t,e){return W(t,(r,n)=>{let[o,a]=wf(GD,r,n);return a?q(a):ae([e.query.staking.nominatorSlashInEra.entries(r),e.query.staking.validatorSlashInEra.entries(r)]).pipe(z(([s,u])=>vf(o,n,ZD(r,s,u))))})}var KD=_f("_eraSlashes"),JD=Sf("_eraSlashes"),QD=Di("_erasSlashes");function $D(t,e,r){let n=(e.find(([a])=>a.eq(t))||[void 0,[]])[1],o=r.unwrapOr([]);return{nextSessionIds:Array.isArray(o)?o:[...o.values()],sessionIds:Array.isArray(n)?n:[...n.values()]}}var ez=on((t,e)=>t.derive.staking.keysMulti([e]));function tz(t,e){return W(t,r=>r.length?e.query.session.queuedKeys().pipe(te(n=>ae([q(n),e.consts.session?.dedupKeyPrefix?e.query.session.nextKeys.multi(r.map(o=>[e.consts.session.dedupKeyPrefix,o])):ae(r.map(o=>e.query.session.nextKeys(o)))])),z(([n,o])=>r.map((a,s)=>$D(a,n,o[s])))):q([]))}function rz(t,e){return W(t,()=>ae([e.derive.session.indexes(),e.derive.staking.validators()]).pipe(z(([r,{nextElected:n,validators:o}])=>ne({},r,{nextElected:n,validators:o}))))}function nz(t,e){return W(t,(r,n,o)=>n.length?ae([ae(n.map(a=>e.query.staking.erasStakersClipped(a,r))),ae(n.map(a=>e.query.staking.erasStakers(a,r)))]).pipe(z(([a,s])=>n.map((u,l)=>({clipped:a[l],era:u,exposure:s[l]})))):q([]))}var oz=on((t,e,r)=>t.derive.staking._ownExposures(e,[r],!0)),iz=zi("_ownExposures");function az(t,e){return W(t,(r,n,o)=>n.length?ae([ae(n.map(a=>e.query.staking.validatorSlashInEra(a,r))),ae(n.map(a=>e.query.staking.nominatorSlashInEra(a,r)))]).pipe(z(([a,s])=>n.map((u,l)=>({era:u,total:a[l].isSome?a[l].unwrap()[1]:s[l].unwrapOrDefault()})))):q([]))}var sz=on((t,e,r)=>t.derive.staking._ownSlashes(e,[r],!0)),cz=zi("_ownSlashes");function uz(t,e,r,n,o,a,s){return{accountId:t,controllerId:e?.unwrapOr(null)||null,exposure:a,nominators:r.isSome?r.unwrap().targets:[],rewardDestination:n,stakingLedger:s.unwrapOrDefault(),stashId:t,validatorPrefs:o}}function fz(t,e,{withLedger:r=!1}){let n=e.filter(a=>r&&!!a&&a.isSome).map(a=>a.unwrap()),o=t.registry.createType("Option");return(n.length?ae(n.map(a=>t.query.staking.ledger(a))):q([])).pipe(z(a=>{let s=-1;return e.map(u=>u&&u.isSome&&a[++s]||o)}))}function lz(t,e,r,{withController:n,withDestination:o,withExposure:a,withLedger:s,withNominations:u,withPrefs:l}){let h=t.registry.createType("Option"),y=t.registry.createType("RewardDestination"),_=t.registry.createType("Exposure"),V=t.registry.createType("ValidatorPrefs");return ae([n||s?ae(e.map(R=>t.query.staking.bonded(R))):q(e.map(()=>null)),u?ae(e.map(R=>t.query.staking.nominators(R))):q(e.map(()=>h)),o?ae(e.map(R=>t.query.staking.payee(R))):q(e.map(()=>y)),l?ae(e.map(R=>t.query.staking.validators(R))):q(e.map(()=>V)),a?ae(e.map(R=>t.query.staking.erasStakers(r,R))):q(e.map(()=>_))])}function dz(t,e,r,n){return lz(t,r,e,n).pipe(te(([o,a,s,u,l])=>fz(t,o,n).pipe(z(h=>r.map((y,_)=>uz(y,o[_],a[_],s[_],u[_],l[_],h[_]))))))}var pz=on((t,e,r)=>t.derive.staking.queryMulti([e],r));function hz(t,e){return W(t,(r,n)=>e.derive.session.indexes().pipe(te(({activeEra:o})=>{let a=r.map(s=>e.registry.createType("AccountId",s));return a.length?dz(e,o,a,n):q([])})))}function mz(t,e){return W(t,(r,n,o=!1)=>{let a=r.map(s=>e.registry.createType("AccountId",s).toString());return e.derive.staking._erasExposure(n,o).pipe(z(s=>a.map(u=>s.map(({era:l,nominators:h,validators:y})=>{let _=!!y[u],V={},R=h[u]||[];return _?V[u]=y[u]:R&&R.forEach(({validatorId:B})=>{V[B]=y[B]}),{era:l,isEmpty:!Object.keys(V).length,isValidator:_,nominating:R,validators:V}}))))})}function xz(t,e){return W(t,(r,n=!1)=>e.derive.staking.erasHistoric(n).pipe(te(o=>e.derive.staking._stakerExposures(r,o,n))))}var bz=on((t,e,r)=>t.derive.staking.stakerExposures([e],r));function yz(t,e){return W(t,(r,n,o)=>{let a=e.registry.createType("AccountId",r).toString();return e.derive.staking._erasPoints(n,o).pipe(z(s=>s.map(({era:u,eraPoints:l,validators:h})=>({era:u,eraPoints:l,points:h[a]||e.registry.createType("RewardPoint")}))))})}var gz=zi("_stakerPoints");function wz(t,e){return W(t,(r,n,o)=>e.query.staking.erasValidatorPrefs.multi(n.map(a=>[a,r])).pipe(z(a=>a.map((s,u)=>({era:n[u],validatorPrefs:s})))))}var vz=zi("_stakerPrefs");function tS(t){return t?t.legacyClaimedRewards||t.claimedRewards:[]}function _z(t,e,[r,n,o],a){return a.map(({era:s,isEmpty:u,isValidator:l,nominating:h,validators:y})=>{let{eraPoints:_,validators:V}=r.find(G=>G.era.eq(s))||{eraPoints:Lt,validators:{}},{eraReward:R}=o.find(G=>G.era.eq(s))||{eraReward:t.registry.createType("Balance")},{validators:B}=n.find(G=>G.era.eq(s))||{validators:{}},L={},Z=e.toString();return Object.entries(y).forEach(([G,J])=>{let Y=V[G]||Lt,fe=B[G]?.commission.unwrap()||Lt,ie=J.total?.unwrap()||Lt,re=Lt,he;if(!(ie.isZero()||Y.isZero()||_.isZero())){re=R.mul(Y).div(_);let me=fe.mul(re).div(Ou),Re;if(G===Z)Re=J.own.unwrap();else{let Oe=J.others.find(({who:ge})=>ge.eq(Z));Re=Oe?Oe.value.unwrap():Lt}he=re.sub(me).imul(Re).div(ie).iadd(G===Z?me:Lt)}L[G]={total:t.registry.createType("Balance",re),value:t.registry.createType("Balance",he)}}),{era:s,eraReward:R,isEmpty:u,isValidator:l,nominating:h,validators:L}})}function Sz(t){return t.reduce(([e,r],n)=>{let o=[];return r.push(o),n.forEach(({validators:a})=>Object.keys(a).forEach(s=>{o.includes(s)||(o.push(s),e.includes(s)||e.push(s))})),[e,r]},[[],[]])}function Tz(t,e,r){let n=[];Object.keys(r.validators).forEach(o=>{let a=t.indexOf(o);if(a!==-1){let s=e[a].stakingLedger;tS(s).some(u=>r.era.eq(u))&&n.push(o)}}),n.forEach(o=>{delete r.validators[o]})}function kz(t,e,{rewards:r,stakingLedger:n}){let o=t.filter(u=>!tS(n).some(l=>l.eq(u))),a=e.map(([u])=>u),s=e.map(([,u])=>u);return r.filter(({isEmpty:u})=>!u).filter(u=>o.some(l=>u.era.eq(l))?(Tz(a,s,u),!0):!1).filter(({validators:u})=>Object.keys(u).length!==0).map(u=>ne({},u,{nominators:u.nominating.filter(l=>u.validators[l.validatorId])}))}function Ez(t,e){return W(t,(r,n=!1)=>ae([e.derive.staking._erasPoints(r,n),e.derive.staking._erasPrefs(r,n),e.derive.staking._erasRewards(r,n)]))}function Pz(t,e){return W(t,(r,n,o=!1)=>ae([e.derive.staking.queryMulti(r,{withLedger:!0}),e.derive.staking._stakerExposures(r,n,o),e.derive.staking._stakerRewardsEras(n,o)]).pipe(te(([a,s,u])=>{let l=a.map(({stakingLedger:_,stashId:V},R)=>!V||!_?[]:_z(e,V,u,s[R]));if(o)return q(l);let[h,y]=Sz(l);return e.derive.staking.queryMulti(h,{withLedger:!0}).pipe(z(_=>a.map(({stakingLedger:V},R)=>kz(n,y[R].map(B=>[B,_.find(L=>L.accountId.eq(B))]).filter(B=>!!B[1]),{rewards:l[R],stakingLedger:V}))))})))}var Mz=on((t,e,r)=>t.derive.staking.erasHistoric(r).pipe(te(n=>t.derive.staking._stakerRewards([e],n,r))));function Az(t,e){return W(t,(r,n)=>r.length&&n.length?e.derive.staking._stakerRewards(r,n,!1):q([]))}function Oz(t,e){return W(t,(r,n=!1)=>e.derive.staking.erasHistoric(n).pipe(te(o=>e.derive.staking.stakerRewardsMultiEras(r,o))))}function Iz(t,e){return W(t,(r,n,o)=>{let a=e.registry.createType("AccountId",r).toString();return e.derive.staking._erasSlashes(n,o).pipe(z(s=>s.map(({era:u,nominators:l,validators:h})=>({era:u,total:l[a]||h[a]||e.registry.createType("Balance")}))))})}var Vz=zi("_stakerSlashes");function Nz(t){let e=Date.now();return t.query.system.events().pipe(z(r=>(e=r.filter(({event:n,phase:o})=>{try{return o.isApplyExtrinsic&&n.section==="staking"&&n.method==="Bonded"}catch{return!1}})?Date.now():e,e)),Vi(e),zc({skipTimeout:!0}))}function Cz(t,e){return W(t,()=>Nz(e).pipe(te(()=>e.query.staking.validators.keys()),z(r=>r.map(({args:[n]})=>n).filter(n=>n))))}function Bz(t,e){return W(t,()=>e.query.staking.erasStakers?e.derive.session.indexes().pipe(te(({currentEra:r})=>e.query.staking.erasStakers.keys(r)),z(r=>r.map(({args:[,n]})=>n))):e.query.staking.currentElected())}function Rz(t,e){return W(t,()=>ae([e.query.session?e.query.session.validators():q([]),e.query.staking?e.derive.staking.nextElected():q([])]).pipe(z(([r,n])=>({nextElected:n.length?n:r,validators:r}))))}var Uz={withController:!0,withPrefs:!0};function Hz(t,e){return W(t,(r=Uz)=>ae([e.derive.staking.validators(),e.derive.staking.stashes()]).pipe(te(([{nextElected:n},o])=>{let a=n.map(u=>u.toString()),s=o.filter(u=>!a.includes(u.toString()));return e.derive.staking.queryMulti(s,r).pipe(z(u=>({info:u,waiting:s})))})))}var xg={};br(xg,{hasProposals:()=>Dz,members:()=>Lz,prime:()=>jz,proposal:()=>zz,proposalCount:()=>Fz,proposalHashes:()=>qz,proposals:()=>Wz});var Lz=gs("technicalCommittee"),Dz=vs("technicalCommittee"),zz=Ss("technicalCommittee"),Fz=Ts("technicalCommittee"),qz=ks("technicalCommittee"),Wz=_s("technicalCommittee"),jz=ws("technicalCommittee");var bg={};br(bg,{proposals:()=>Zz});function Xz(t,{allIds:e,allProposals:r,approvalIds:n,councilProposals:o,proposalCount:a}){let s=[],u=[],l=o.filter(({proposal:h})=>h&&(t.tx.treasury.approveProposal.is(h)||t.tx.treasury.rejectProposal.is(h)));return e.forEach((h,y)=>{if(r[y].isSome){let _=l.filter(({proposal:B})=>B&&h.eq(B.args[0])).sort((B,L)=>B.proposal&&L.proposal?B.proposal.method.localeCompare(L.proposal.method):B.proposal?-1:1),V=n.some(B=>B.eq(h)),R={council:_,id:h,proposal:r[y].unwrap()};V?s.push(R):u.push(R)}}),{approvals:s,proposalCount:a,proposals:u}}function Gz(t,e,r){let n=[],o=e.toNumber();for(let s=0;su.eqn(s))||n.push(t.registry.createType("ProposalIndex",s));let a=[...n,...r];return ae([t.query.treasury.proposals.multi(a),t.derive.council?t.derive.council.proposals():q([])]).pipe(z(([s,u])=>Xz(t,{allIds:a,allProposals:s,approvalIds:r,councilProposals:u,proposalCount:e})))}function Zz(t,e){return W(t,()=>e.query.treasury?ae([e.query.treasury.proposalCount(),e.query.treasury.approvals()]).pipe(te(([r,n])=>Gz(e,r,n))):q({approvals:[],proposalCount:e.registry.createType("ProposalIndex"),proposals:[]}))}var gg={};br(gg,{events:()=>Yz,signingInfo:()=>Qz});function Yz(t,e){return W(t,r=>ae([e.rpc.chain.getBlock(r),e.queryAt(r).pipe(te(n=>n.system.events()))]).pipe(z(([n,o])=>({block:n,events:o}))))}var rS=250,nS=new be.default(6*1e3),yg=new be.default(5),oS=new be.default(5*60*1e3);function iS(t,e){return t.derive.balances.account(e).pipe(z(({accountNonce:r})=>r))}function Kz(t,e){return t.rpc.system?.accountNextIndex?t.rpc.system.accountNextIndex(e):iS(t,e)}function Jz(t){return ae([t.rpc.chain.getHeader().pipe(te(e=>e.parentHash.isEmpty?q(e):t.rpc.chain.getHeader(e.parentHash).pipe(bn(()=>q(e))))),t.rpc.chain.getFinalizedHead().pipe(te(e=>t.rpc.chain.getHeader(e).pipe(bn(()=>q(null)))))]).pipe(z(([e,r])=>!r||fd(e).sub(fd(r)).gt(yg)?e:r))}function Qz(t,e){return(r,n,o)=>ae([Qe(n)?iS(e,r):n===-1?Kz(e,r):q(e.registry.createType("Index",n)),Qe(o)||De(o)&&o>0?Jz(e):q(null)]).pipe(z(([a,s])=>({header:s,mortalLength:Math.min(e.consts.system?.blockHashCount?.toNumber()||rS,oS.div(e.consts.babe?.expectedBlockTime||e.consts.timestamp?.minimumPeriod.muln(2)||nS).iadd(yg).toNumber()),nonce:a})))}var aS={accounts:Z2,alliance:Y2,bagsList:K2,balances:Q2,bounties:$2,chain:tg,contracts:rg,council:ng,crowdloan:ig,democracy:ag,elections:sg,imOnline:cg,membership:ug,parachains:fg,session:pg,society:hg,staking:mg,technicalCommittee:xg,treasury:bg,tx:gg};var qc={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 $z(t,e,r){return t.registry.getModuleInstances(e,r)||[]}function sS(t,e,r){let n={},o=Object.keys(r),a=Object.keys(e.query),s=e.runtimeVersion.specName,u=R=>a.includes(R),l=R=>$z(e,s,R).some(u),h=R=>B=>R.some(L=>a.includes(L)&&e.query[L][B]),y=R=>Object.keys(r[R]),_=(R,B)=>r[R][B](t,e),V=R=>!qc[R]||qc[R].instances.some(u)&&(!qc[R].methods.length||qc[R].methods.every(h(qc[R].instances)))||qc[R].withDetect&&qc[R].instances.some(l);for(let R=0,B=o.length;RObject.keys(e[s]),n=(s,u)=>t(e[s][u]),o={},a=Object.keys(e);for(let s=0,u=a.length;st;function vg(t,e,r,n){return t.filter(({event:o})=>e===o.section&&r.includes(o.method)).map(o=>n(o))}function tF({event:{data:[t]}}){return t}function rF({event:{data:t,method:e}}){return e==="ExtrinsicSuccess"?t[0]:t[1]}function nF(t=[]){return vg(t,"system",["ExtrinsicFailed"],tF)[0]}function oF(t=[]){return vg(t,"system",["ExtrinsicFailed","ExtrinsicSuccess"],rF)[0]}var Tf=class{dispatchError;dispatchInfo;internalError;events;status;txHash;txIndex;blockNumber;constructor({blockNumber:e,dispatchError:r,dispatchInfo:n,events:o,internalError:a,status:s,txHash:u,txIndex:l}){this.dispatchError=r||nF(o),this.dispatchInfo=n||oF(o),this.events=o||[],this.internalError=a,this.status=s,this.txHash=u,this.txIndex=l,this.blockNumber=e}get isCompleted(){return this.isError||this.status.isInBlock||this.status.isFinalized}get isError(){return this.status.isDropped||this.status.isFinalityTimeout||this.status.isInvalid||this.status.isUsurped}get isFinalized(){return this.status.isFinalized}get isInBlock(){return this.status.isInBlock}get isWarning(){return this.status.isRetracted}filterRecords(e,r){return vg(this.events,e,Array.isArray(r)?r:[r],eF)}findRecord(e,r){return this.filterRecords(e,r)[0]}toHuman(e){return{dispatchError:this.dispatchError?.toHuman(),dispatchInfo:this.dispatchInfo?.toHuman(),events:this.events.map(r=>r.toHuman(e)),internalError:this.internalError?.message.toString(),status:this.status.toHuman(e)}}};function uS(t,e,r,{header:n,mortalLength:o,nonce:a}){if(!n){if(r.era&&!r.blockHash)throw new Error("Expected blockHash to be passed alongside non-immortal era options");return De(r.era)&&(delete r.era,delete r.blockHash),_g(t,r,{nonce:a})}return _g(t,r,{blockHash:n.hash,era:e.createTypeUnsafe("ExtrinsicEra",[{current:n.number,period:r.era||o}]),nonce:a})}function fS(t,e){let r={};return we(t)?e=t:r=ne({},t),[r,e]}function _g(t,e,r){return ne({blockHash:t.genesisHash,genesisHash:t.genesisHash},e,r,{runtimeVersion:t.runtimeVersion,signedExtensions:t.registry.signedExtensions,version:t.extrinsicType})}function iF(t={}){return hr(t)||De(t)?{nonce:t}:t}function lS({api:t,apiType:e,blockHash:r,decorateMethod:n}){let o=t.registry.createClass("Extrinsic");class a extends o{__internal__ignoreStatusCb;__internal__transformResult=zn;constructor(u,l){super(u,l,{version:t.extrinsicType}),this.__internal__ignoreStatusCb=e==="rxjs"}get hasDryRun(){return we(t.rpc.system?.dryRun)}get hasPaymentInfo(){return we(t.call.transactionPaymentApi?.queryInfo)}dryRun(u,l){if(!this.hasDryRun)throw new Error("The system.dryRun RPC call is not available in your environment");return r||qe(l)||ue(l)?n(()=>t.rpc.system.dryRun(this.toHex(),r||l)):n(()=>this.__internal__observeSign(u,l).pipe(te(()=>t.rpc.system.dryRun(this.toHex()))))()}paymentInfo(u,l){if(!this.hasPaymentInfo)throw new Error("The transactionPaymentApi.queryInfo runtime call is not available in your environment");if(r||qe(l)||ue(l))return n(()=>t.callAt(r||l).pipe(te(_=>{let V=this.toU8a();return _.transactionPaymentApi.queryInfo(V,V.length)})));let[h]=fS(l),y=Ll(u)?u.address:u.toString();return n(()=>t.derive.tx.signingInfo(y,h.nonce,h.era).pipe(cm(),te(_=>{let V=uS(t,this.registry,h,_),R=_g(t,V,{}),B=t.tx(this.toU8a()).signFake(y,R).toU8a();return t.call.transactionPaymentApi.queryInfo(B,B.length)})))()}send(u){let l=t.hasSubscriptions&&(this.__internal__ignoreStatusCb||!!u);return n(l?this.__internal__observeSubscribe:this.__internal__observeSend)(u)}signAsync(u,l){return n(()=>this.__internal__observeSign(u,l).pipe(z(()=>this)))()}signAndSend(u,l,h){let[y,_]=fS(l,h),V=t.hasSubscriptions&&(this.__internal__ignoreStatusCb||!!_);return n(()=>this.__internal__observeSign(u,y).pipe(te(R=>V?this.__internal__observeSubscribe(R):this.__internal__observeSend(R))))(_)}withResultTransform(u){return this.__internal__transformResult=u,this}__internal__observeSign=(u,l)=>{let h=Ll(u)?u.address:u.toString(),y=iF(l);return t.derive.tx.signingInfo(h,y.nonce,y.era).pipe(cm(),us(async _=>{let V=uS(t,this.registry,y,_),R=-1;return Ll(u)?this.sign(u,V):R=await this.__internal__signViaSigner(h,V,_.header),{options:V,updateId:R}}))};__internal__observeStatus=(u,l)=>{if(!l.isFinalized&&!l.isInBlock)return q(this.__internal__transformResult(new Tf({status:l,txHash:u})));let h=l.isInBlock?l.asInBlock:l.asFinalized;return t.derive.tx.events(h).pipe(z(({block:y,events:_})=>this.__internal__transformResult(new Tf({...t2(u,y,_,l),status:l,txHash:u}))),bn(y=>q(this.__internal__transformResult(new Tf({internalError:y,status:l,txHash:u})))))};__internal__observeSend=u=>t.rpc.author.submitExtrinsic(this).pipe(yn(l=>{this.__internal__updateSigner(l,u)}));__internal__observeSubscribe=u=>{let l=this.hash;return t.rpc.author.submitAndWatchExtrinsic(this).pipe(te(h=>this.__internal__observeStatus(l,h)),yn(h=>{this.__internal__updateSigner(h,u)}))};__internal__signViaSigner=async(u,l,h)=>{let y=l.signer||t.signer;if(!y)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.");let _=this.registry.createTypeUnsafe("SignerPayload",[ne({},l,{address:u,blockNumber:h?h.number:0,method:this.method})]),V;if(we(y.signPayload))V=await y.signPayload(_.toPayload());else if(we(y.signRaw))V=await y.signRaw(_.toRaw());else throw new Error("Invalid signer interface, it should implement either signPayload or signRaw (or both)");return super.addSignature(u,V.signature,_.toPayload()),V.id};__internal__updateSigner=(u,l)=>{if(l&&l.updateId!==-1){let{options:h,updateId:y}=l,_=h.signer||t.signer;_&&we(_.update)&&_.update(y,u)}}}return a}function l0(t,e,r,n,o){let a=lS({api:e,apiType:t,blockHash:o,decorateMethod:r});return s=>new a(n||e.registry,s)}function d0(t,e){return t.findMetaCall(K(e))}function p0(t,e){return t.findMetaError(K(e))}var dS={};var hS={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",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",staticHashes:"[Hash; 3]"},Proof:{leafHash:"H256",sortedHashes:"H256"},ProofMint:{hashes:"Vec",property:"Bytes",salt:"[u8; 32]",value:"Bytes"},RegistryInfo:{fields:"Vec",ownerCanBurn:"bool"},ProxyType:{_enum:["Any","NonTransfer","Governance","Staking","NonProxy"]}},pS={...hS,AccountInfo:"AccountInfoWithRefCount",Address:"LookupSource",LookupSource:"IndicesLookupSource",Multiplier:"Fixed64",RefCount:"RefCountTo259"},mS=[{minmax:[240,243],types:{...pS,ProxyType:{_enum:["Any","NonTransfer","Governance","Staking","Vesting"]}}},{minmax:[244,999],types:{...pS}},{minmax:[1e3,void 0],types:{...hS}}];var Lo={CompactAssignments:"CompactAssignmentsWith24",DispatchErrorModule:"DispatchErrorModuleU8",RawSolution:"RawSolutionWith24",Keys:"SessionKeys6",ProxyType:{_enum:["Any","NonTransfer","Governance","Staking","IdentityJudgement","CancelProxy","Auction"]},Weight:"WeightV1"},Sg={AccountInfo:"AccountInfoWithRefCount",Address:"LookupSource",CompactAssignments:"CompactAssignmentsWith16",DispatchErrorModule:"DispatchErrorModuleU8",RawSolution:"RawSolutionWith16",Keys:"SessionKeys5",LookupSource:"IndicesLookupSource",ValidatorPrefs:"ValidatorPrefsWithCommission"},Es={AccountInfo:"AccountInfoWithRefCount",Address:"AccountId",CompactAssignments:"CompactAssignmentsWith16",DispatchErrorModule:"DispatchErrorModuleU8",RawSolution:"RawSolutionWith16",Keys:"SessionKeys5",LookupSource:"AccountId",ValidatorPrefs:"ValidatorPrefsWithCommission"},xS=[{minmax:[1019,1031],types:{...Sg,BalanceLock:"BalanceLockTo212",CompactAssignments:"CompactAssignmentsTo257",DispatchError:"DispatchErrorTo198",DispatchInfo:"DispatchInfoTo244",Heartbeat:"HeartbeatTo244",IdentityInfo:"IdentityInfoTo198",Keys:"SessionKeys5",Multiplier:"Fixed64",OpenTip:"OpenTipTo225",RefCount:"RefCountTo259",ReferendumInfo:"ReferendumInfoTo239",Scheduled:"ScheduledTo254",SlashingSpans:"SlashingSpansTo204",StakingLedger:"StakingLedgerTo223",Votes:"VotesTo230",Weight:"u32"}},{minmax:[1032,1042],types:{...Sg,BalanceLock:"BalanceLockTo212",CompactAssignments:"CompactAssignmentsTo257",DispatchInfo:"DispatchInfoTo244",Heartbeat:"HeartbeatTo244",Keys:"SessionKeys5",Multiplier:"Fixed64",OpenTip:"OpenTipTo225",RefCount:"RefCountTo259",ReferendumInfo:"ReferendumInfoTo239",Scheduled:"ScheduledTo254",SlashingSpans:"SlashingSpansTo204",StakingLedger:"StakingLedgerTo223",Votes:"VotesTo230",Weight:"u32"}},{minmax:[1043,1045],types:{...Sg,BalanceLock:"BalanceLockTo212",CompactAssignments:"CompactAssignmentsTo257",DispatchInfo:"DispatchInfoTo244",Heartbeat:"HeartbeatTo244",Keys:"SessionKeys5",Multiplier:"Fixed64",OpenTip:"OpenTipTo225",RefCount:"RefCountTo259",ReferendumInfo:"ReferendumInfoTo239",Scheduled:"ScheduledTo254",StakingLedger:"StakingLedgerTo223",Votes:"VotesTo230",Weight:"u32"}},{minmax:[1046,1049],types:{...Lo,...Es,CompactAssignments:"CompactAssignmentsTo257",DispatchInfo:"DispatchInfoTo244",Heartbeat:"HeartbeatTo244",Multiplier:"Fixed64",OpenTip:"OpenTipTo225",RefCount:"RefCountTo259",ReferendumInfo:"ReferendumInfoTo239",Scheduled:"ScheduledTo254",StakingLedger:"StakingLedgerTo223",Weight:"u32"}},{minmax:[1050,1054],types:{...Lo,...Es,CompactAssignments:"CompactAssignmentsTo257",DispatchInfo:"DispatchInfoTo244",Heartbeat:"HeartbeatTo244",Multiplier:"Fixed64",OpenTip:"OpenTipTo225",RefCount:"RefCountTo259",ReferendumInfo:"ReferendumInfoTo239",Scheduled:"ScheduledTo254",StakingLedger:"StakingLedgerTo240",Weight:"u32"}},{minmax:[1055,1056],types:{...Lo,...Es,CompactAssignments:"CompactAssignmentsTo257",DispatchInfo:"DispatchInfoTo244",Heartbeat:"HeartbeatTo244",Multiplier:"Fixed64",OpenTip:"OpenTipTo225",RefCount:"RefCountTo259",Scheduled:"ScheduledTo254",StakingLedger:"StakingLedgerTo240",Weight:"u32"}},{minmax:[1057,1061],types:{...Lo,...Es,CompactAssignments:"CompactAssignmentsTo257",DispatchInfo:"DispatchInfoTo244",Heartbeat:"HeartbeatTo244",OpenTip:"OpenTipTo225",RefCount:"RefCountTo259",Scheduled:"ScheduledTo254"}},{minmax:[1062,2012],types:{...Lo,...Es,CompactAssignments:"CompactAssignmentsTo257",OpenTip:"OpenTipTo225",RefCount:"RefCountTo259"}},{minmax:[2013,2022],types:{...Lo,...Es,CompactAssignments:"CompactAssignmentsTo257",RefCount:"RefCountTo259"}},{minmax:[2023,2024],types:{...Lo,...Es,RefCount:"RefCountTo259"}},{minmax:[2025,2027],types:{...Lo,...Es}},{minmax:[2028,2029],types:{...Lo,AccountInfo:"AccountInfoWithDualRefCount",CompactAssignments:"CompactAssignmentsWith16",RawSolution:"RawSolutionWith16"}},{minmax:[2030,9e3],types:{...Lo,CompactAssignments:"CompactAssignmentsWith16",RawSolution:"RawSolutionWith16"}},{minmax:[9010,9099],types:{...Lo,...jr("V0")}},{minmax:[9100,9105],types:{...Lo,...jr("V1")}},{minmax:[9106,void 0],types:{Weight:"WeightV1"}}];var bS=[{minmax:[0,void 0],types:{Weight:"WeightV2"}}];var yS=[{minmax:[0,void 0],types:{Weight:"WeightV2"}}];var kf={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"},h0={AccountInfo:"AccountInfoWithRefCount",Address:"AccountId",DispatchErrorModule:"DispatchErrorModuleU8",Keys:"SessionKeys5",LookupSource:"AccountId",ValidatorPrefs:"ValidatorPrefsWithCommission"},gS=[{minmax:[0,12],types:{...kf,...h0,CompactAssignments:"CompactAssignmentsTo257",OpenTip:"OpenTipTo225",RefCount:"RefCountTo259"}},{minmax:[13,22],types:{...kf,...h0,CompactAssignments:"CompactAssignmentsTo257",RefCount:"RefCountTo259"}},{minmax:[23,24],types:{...kf,...h0,RefCount:"RefCountTo259"}},{minmax:[25,27],types:{...kf,...h0}},{minmax:[28,29],types:{...kf,AccountInfo:"AccountInfoWithDualRefCount"}},{minmax:[30,9109],types:{...kf}},{minmax:[9110,void 0],types:{Weight:"WeightV1"}}];var hd={DispatchErrorModule:"DispatchErrorModuleU8",FullIdentification:"()",Keys:"SessionKeys7B",Weight:"WeightV1"},wS=[{minmax:[0,200],types:{...hd,AccountInfo:"AccountInfoWithDualRefCount",Address:"AccountId",LookupSource:"AccountId"}},{minmax:[201,214],types:{...hd,AccountInfo:"AccountInfoWithDualRefCount"}},{minmax:[215,228],types:{...hd,Keys:"SessionKeys6"}},{minmax:[229,9099],types:{...hd,...jr("V0")}},{minmax:[9100,9105],types:{...hd,...jr("V1")}},{minmax:[9106,void 0],types:{Weight:"WeightV1"}}];var vS=[{minmax:[0,void 0],types:{}}];var _S={DispatchErrorModule:"DispatchErrorModuleU8",TAssetBalance:"u128",ProxyType:{_enum:["Any","NonTransfer","CancelProxy","Assets","AssetOwner","AssetManager","Staking"]},Weight:"WeightV1"},SS=[{minmax:[0,3],types:{DispatchError:"DispatchErrorPre6First",..._S,...jr("V0")}},{minmax:[4,5],types:{DispatchError:"DispatchErrorPre6First",..._S,...jr("V1")}},{minmax:[500,9999],types:{Weight:"WeightV1",TAssetConversion:"Option"}},{minmax:[1e4,void 0],types:{Weight:"WeightV1"}}];var TS={DispatchErrorModule:"DispatchErrorModuleU8",TAssetBalance:"u128",ProxyType:{_enum:["Any","NonTransfer","CancelProxy","Assets","AssetOwner","AssetManager","Staking"]},Weight:"WeightV1"},kS=[{minmax:[0,3],types:{DispatchError:"DispatchErrorPre6First",...TS,...jr("V0")}},{minmax:[4,5],types:{DispatchError:"DispatchErrorPre6First",...TS,...jr("V1")}},{minmax:[500,void 0],types:{Weight:"WeightV1",TAssetConversion:"Option"}}];var Ps={CompactAssignments:"CompactAssignmentsWith16",DispatchErrorModule:"DispatchErrorModuleU8",RawSolution:"RawSolutionWith16",Keys:"SessionKeys6",ProxyType:{_enum:["Any","NonTransfer","Staking","SudoBalances","IdentityJudgement","CancelProxy"]},Weight:"WeightV1"},md={AccountInfo:"AccountInfoWithRefCount",Address:"AccountId",CompactAssignments:"CompactAssignmentsWith16",DispatchErrorModule:"DispatchErrorModuleU8",LookupSource:"AccountId",Keys:"SessionKeys5",RawSolution:"RawSolutionWith16",ValidatorPrefs:"ValidatorPrefsWithCommission"},ES=[{minmax:[1,2],types:{...Ps,...md,CompactAssignments:"CompactAssignmentsTo257",DispatchInfo:"DispatchInfoTo244",Heartbeat:"HeartbeatTo244",Multiplier:"Fixed64",OpenTip:"OpenTipTo225",RefCount:"RefCountTo259",Weight:"u32"}},{minmax:[3,22],types:{...Ps,...md,CompactAssignments:"CompactAssignmentsTo257",DispatchInfo:"DispatchInfoTo244",Heartbeat:"HeartbeatTo244",OpenTip:"OpenTipTo225",RefCount:"RefCountTo259"}},{minmax:[23,42],types:{...Ps,...md,CompactAssignments:"CompactAssignmentsTo257",DispatchInfo:"DispatchInfoTo244",Heartbeat:"HeartbeatTo244",RefCount:"RefCountTo259"}},{minmax:[43,44],types:{...Ps,...md,DispatchInfo:"DispatchInfoTo244",Heartbeat:"HeartbeatTo244",RefCount:"RefCountTo259"}},{minmax:[45,47],types:{...Ps,...md}},{minmax:[48,49],types:{...Ps,AccountInfo:"AccountInfoWithDualRefCount"}},{minmax:[50,9099],types:{...Ps,...jr("V0")}},{minmax:[9100,9105],types:{...Ps,...jr("V1")}},{minmax:[9106,void 0],types:{Weight:"WeightV1"}}];var PS={DispatchErrorModule:"DispatchErrorModuleU8",TAssetBalance:"u128",ProxyType:{_enum:["Any","NonTransfer","CancelProxy","Assets","AssetOwner","AssetManager","Staking"]},Weight:"WeightV1"},MS=[{minmax:[0,3],types:{DispatchError:"DispatchErrorPre6First",...PS,...jr("V0")}},{minmax:[4,5],types:{DispatchError:"DispatchErrorPre6First",...PS,...jr("V1")}},{minmax:[500,9434],types:{Weight:"WeightV1",TAssetConversion:"Option"}},{minmax:[9435,void 0],types:{Weight:"WeightV1"}}];var AS={"centrifuge-chain":mS,kusama:xS,node:bS,"node-template":yS,polkadot:gS,rococo:wS,shell:vS,statemine:SS,statemint:kS,westend:ES,westmint:MS};var Tg={};br(Tg,{kusama:()=>OS,polkadot:()=>IS,westend:()=>VS});var OS=[[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]]]];var IS=[[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]]]];var VS=[[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]]]];var aF={westend:{genesisHash:["0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e"]}};function sF([t,e]){let r=Cy.find(n=>n.network===t)||aF[t];if(!r)throw new Error(`Unable to find info for chain ${t}`);return{genesisHash:jt(r.genesisHash[0]),network:t,versions:e.map(([n,o,a])=>({apis:a,blockNumber:new be.default(n),specVersion:new be.default(o)}))}}var NS=Object.entries(Tg).map(sF);function Ef(t,e,r){return r(t.toString(),e.toString())}function m0(t=[],e){return t.filter(({minmax:[r,n]})=>(r==null||e>=r)&&(n==null||e<=n)).reduce((r,{types:n})=>({...r,...n}),{})}function CS({knownTypes:t},e,r){return Ef(e,r,(n,o)=>({...t.typesBundle?.spec?.[o]?.signedExtensions??{},...t.typesBundle?.chain?.[n]?.signedExtensions??{}}))}function BS({knownTypes:t},e,r,n){let o=Dt(n).toNumber();return Ef(e,r,(a,s)=>({...m0(AS[s],o),...m0(dS[a],o),...m0(t.typesBundle?.spec?.[s]?.types,o),...m0(t.typesBundle?.chain?.[a]?.types,o),...t.typesSpec?.[s]??{},...t.typesChain?.[a]??{},...t.types??{}}))}function RS({knownTypes:t},e,r){return Ef(e,r,(n,o)=>t.hasher||t.typesBundle?.chain?.[n]?.hasher||t.typesBundle?.spec?.[o]?.hasher||null)}function kg({knownTypes:t},e,r){return Ef(e,r,(n,o)=>({...t.typesBundle?.spec?.[o]?.rpc??{},...t.typesBundle?.chain?.[n]?.rpc??{}}))}function US({knownTypes:t},e,r){return Ef(e,r,(n,o)=>({...t.typesBundle?.spec?.[o]?.runtime??{},...t.typesBundle?.chain?.[n]?.runtime??{}}))}function HS({knownTypes:t},e,r){return Ef(e,r,(n,o)=>({...t.typesBundle?.spec?.[o]?.alias??{},...t.typesBundle?.chain?.[n]?.alias??{},...t.typesAlias??{}}))}function LS(t,e){let r=NS.find(n=>t.eq(n.genesisHash));return r?[r.versions.reduce((n,o)=>e.gt(o.blockNumber)?o:n,void 0),r.versions.find(n=>e.lte(n.blockNumber))]:[void 0,void 0]}var cF=Tr("api/augment");function DS(t,e,r=[]){return e.length?` ${e.length} ${t}${r.length?" and":""}`:""}function zS(t,e){return e.length?` - ${t.padStart(7)}: ${e.sort().join(", ")}`:""}function FS(t,e,[r,n]){(r.length||n.length)&&cF.warn(`api.${t}: Found${DS("added",r,n)}${DS("removed",n)} ${e}:${zS("added",r)}${zS("removed",n)}`)}function qS(t,e){return t.filter(r=>!e.includes(r))}function uF(t,e){return t.filter(r=>e.includes(r))}function fF(t,e){let r=Object.keys(t),n=Object.keys(e);return[qS(r,n),qS(n,r)]}function WS(t,e){let r=Object.keys(t),n=uF(Object.keys(e),r),o=[];for(let a=0,s=n.length;al[h])}return r}function jS({lookup:t},{method:e,section:r},n){return`${r}.${e}(${n.map(o=>t.getTypeDef(o).type).join(", ")})`}function xd(t,e,r){let n=r.filter(o=>!Qe(o));if(e.meta.type.isPlain){if(n.length!==0)throw new Error(`${jS(t,e,[])} does not take any arguments, ${n.length} found`)}else{let{hashers:o,key:a}=e.meta.type.asMap,s=o.length===1?[a]:t.lookup.getSiType(a).def.asTuple.map(u=>u);if(n.length!==s.length)throw new Error(`${jS(t,e,s)} is a map, requiring ${s.length} arguments, ${n.length} found`)}return[e,n]}var x0=class{__internal__eventemitter=new Nl.default;emit(e,...r){return this.__internal__eventemitter.emit(e,...r)}on(e,r){return this.__internal__eventemitter.on(e,r),this}off(e,r){return this.__internal__eventemitter.removeListener(e,r),this}once(e,r){return this.__internal__eventemitter.once(e,r),this}};var b0=1e3,Eg=250,dF=50,Pg=Tr("api/init"),pF=0;function Mg(t,{method:e,section:r}){return Oo(t.rx.query[r]&&t.rx.query[r][e],()=>`query.${r}.${e} is not available in this version of the metadata`)}var y0=class extends x0{__internal__instanceId;__internal__runtimeLog={};__internal__registry;__internal__storageGetQ=[];__internal__storageSubQ=[];__phantom=new be.default(0);_type;_call={};_consts={};_derive;_errors={};_events={};_extrinsics;_extrinsicType=Hc.LATEST_EXTRINSIC_VERSION;_genesisHash;_isConnected;_isReady=!1;_query={};_queryMulti;_rpc;_rpcCore;_runtimeMap={};_runtimeChain;_runtimeMetadata;_runtimeVersion;_rx={call:{},consts:{},query:{},tx:{}};_options;_decorateMethod;constructor(e,r,n){super(),this.__internal__instanceId=`${++pF}`,this.__internal__registry=e.source?.registry||e.registry||new bf,this._rx.callAt=(a,s)=>xn(this.at(a,s)).pipe(z(u=>u.rx.call)),this._rx.queryAt=(a,s)=>xn(this.at(a,s)).pipe(z(u=>u.rx.query)),this._rx.registry=this.__internal__registry,this._decorateMethod=n,this._options=e,this._type=r;let o=e.source?e.source._rpcCore.provider.isClonable?e.source._rpcCore.provider.clone():e.source._rpcCore.provider:e.provider||new ss;this._rpcCore=new t0(this.__internal__instanceId,this.__internal__registry,{isPedantic:this._options.isPedantic,provider:o,userRpc:this._options.rpc}),this._isConnected=new Oi(this._rpcCore.provider.isConnected),this._rx.hasSubscriptions=this._rpcCore.provider.hasSubscriptions}get registry(){return this.__internal__registry}createType(e,...r){return this.__internal__registry.createType(e,...r)}registerTypes(e){e&&this.__internal__registry.register(e)}get hasSubscriptions(){return this._rpcCore.provider.hasSubscriptions}get supportMulti(){return this._rpcCore.provider.hasSubscriptions||!!this._rpcCore.state.queryStorageAt}_emptyDecorated(e,r){return{call:{},consts:{},errors:{},events:{},query:{},registry:e,rx:{call:{},query:{}},tx:l0(this._type,this._rx,this._decorateMethod,e,r)}}_createDecorated(e,r,n,o){n||(n=this._emptyDecorated(e.registry,o)),(r||!e.decoratedMeta)&&(e.decoratedMeta=W2(e.registry,e.metadata));let a=this._decorateCalls(e,this._decorateMethod,o),s=this._decorateCalls(e,this._rxDecorateMethod,o),u=this._decorateStorage(e.decoratedMeta,this._decorateMethod,o),l=this._decorateStorage(e.decoratedMeta,this._rxDecorateMethod,o);return ui("consts",e.decoratedMeta.consts,n.consts,r),ui("errors",e.decoratedMeta.errors,n.errors,r),ui("events",e.decoratedMeta.events,n.events,r),ui("query",u,n.query,r),ui("query",l,n.rx.query,r),ui("call",a,n.call,r),ui("call",s,n.rx.call,r),n.findCall=h=>d0(e.registry,h),n.findError=h=>p0(e.registry,h),n.queryMulti=o?this._decorateMultiAt(n,this._decorateMethod,o):this._decorateMulti(this._decorateMethod),n.runtimeVersion=e.runtimeVersion,{createdAt:o,decoratedApi:n,decoratedMeta:e.decoratedMeta}}_injectMetadata(e,r=!1){(r||!e.decoratedApi)&&(e.decoratedApi=this._emptyDecorated(e.registry));let{decoratedApi:n,decoratedMeta:o}=this._createDecorated(e,r,e.decoratedApi);this._call=n.call,this._consts=n.consts,this._errors=n.errors,this._events=n.events,this._query=n.query,this._rx.call=n.rx.call,this._rx.query=n.rx.query;let a=this._decorateExtrinsics(o,this._decorateMethod),s=this._decorateExtrinsics(o,this._rxDecorateMethod);r||!this._extrinsics?(this._extrinsics=a,this._rx.tx=s):(ui("tx",a,this._extrinsics,!1),ui(null,s,this._rx.tx,!1)),ui(null,o.consts,this._rx.consts,r),this.emit("decorated")}injectMetadata(e,r,n){this._injectMetadata({counter:0,metadata:e,registry:n||this.__internal__registry,runtimeVersion:this.__internal__registry.createType("RuntimeVersionPartial")},r)}_decorateFunctionMeta(e,r){return r.meta=e.meta,r.method=e.method,r.section=e.section,r.toJSON=e.toJSON,e.callIndex&&(r.callIndex=e.callIndex),r}_filterRpc(e,r){Object.keys(r).length!==0&&(this._rpcCore.addUserInterfaces(r),this._decorateRpc(this._rpcCore,this._decorateMethod,this._rpc),this._decorateRpc(this._rpcCore,this._rxDecorateMethod,this._rx.rpc));let n={};for(let a=0,s=e.length;a!o.includes(u)&&!u.includes("_unstable_"));s.length&&!this._options.noInitWarn&&Pg.warn(`RPC methods not decorated: ${s.join(", ")}`);for(let u=0;uxn(this._rpcCore.provider.send(n,o)))}_decorateRpc(e,r,n=this._rpcSubmitter(r)){let o=n,a=(s,u)=>{let l=e[s][u],h=r(l,{methodName:u});return h.meta=l.meta,h.raw=r(l.raw,{methodName:u}),h};for(let s=0,u=e.sections.length;sa(l,_);for(let _=0,V=h.length;_y.version===V);_?ne(_.methods,y.methods):e[s].push(y)}else e[s]=u}}_getRuntimeDefs(e,r,n=""){let o={},a=Object.values(ga);for(let s=0,u=a.length;sme.eq(re));if(h[re]=!0,he){let me=ie.map(({version:Oe})=>Oe).sort(),Re=ie.find(({version:Oe})=>he[1].eq(Oe));if(Re){let Oe=et(fe),ge=Object.entries(Re.methods);if(ge.length){l[Oe]||(l[Oe]={});for(let Ze=0,C=ge.length;Ze[J.toHex(),Y.toString()]).filter(([J])=>!h[J]).map(([J,Y])=>`${this._runtimeMap[J]||J}/${Y}`);!this._options.noInitWarn&&!R&&(_.length&&Pg.warn(`${V}: Not decorating runtime apis without matching versions: ${_.join(", ")}`),B.length&&Pg.warn(`${V}: Not decorating unknown runtime apis: ${B.join(", ")}`));let L=s?(J,Y)=>this._rpcCore.state.call(J,Y,s):(J,Y)=>this._rpcCore.state.call(J,Y),Z=J=>Vo({},Object.keys(l[J]),Y=>this._decorateCall(e,l[J][Y],L,a)),G=Object.keys(l);for(let J=0,Y=G.length;J{if(s.length!==r.params.length)throw new Error(`${r.name}:: Expected ${r.params.length} arguments, found ${s.length}`);let u=e.createType("Raw",Qt(s.map((l,h)=>e.createTypeUnsafe(r.params[h].type,[l]).toU8a())));return n(r.name,u).pipe(z(l=>e.createTypeUnsafe(r.type,[l])))});return a.meta=r,a}_decorateMulti(e){return e(r=>r.length?(this.hasSubscriptions?this._rpcCore.state.subscribeStorage:this._rpcCore.state.queryStorageAt)(r.map(n=>Array.isArray(n)?n[0].creator.meta.type.isPlain?[n[0].creator]:n[0].creator.meta.type.asMap.hashers.length===1?[n[0].creator,n.slice(1)]:[n[0].creator,...n.slice(1)]:[n.creator])):q([]))}_decorateMultiAt(e,r,n){return r(o=>o.length?this._rpcCore.state.queryStorageAt(o.map(a=>{if(Array.isArray(a)){let{creator:s}=Mg(e,a[0].creator);return s.meta.type.isPlain?[s]:s.meta.type.asMap.hashers.length===1?[s,a.slice(1)]:[s,...a.slice(1)]}return[Mg(e,a.creator).creator]}),n):q([]))}_decorateExtrinsics({tx:e},r){let n=l0(this._type,this._rx,r),o=s=>Vo({},Object.keys(e[s]),u=>u.startsWith("$")?e[s][u]:this._decorateExtrinsicEntry(e[s][u],n)),a=Object.keys(e);for(let s=0,u=a.length;sr(e(...o));return n.is=o=>e.is(o),this._decorateFunctionMeta(e,n)}_decorateStorage({query:e,registry:r},n,o){let a={},s=l=>Vo({},Object.keys(e[l]),h=>o?this._decorateStorageEntryAt(r,e[l][h],n,o):this._decorateStorageEntry(e[l][h],n)),u=Object.keys(e);for(let l=0,h=u.length;lxd(u||this.__internal__registry,e,s),o=s=>xn(this.at(s)).pipe(z(u=>Mg(u,e))),a=this._decorateStorageCall(e,r);return a.creator=e,a.at=r((s,...u)=>o(s).pipe(te(l=>l(...u)))),a.hash=r((...s)=>this._rpcCore.state.getStorageHash(n(s))),a.is=s=>s.section===e.section&&s.method===e.method,a.key=(...s)=>Te(Ya(e(...s))[1]),a.keyPrefix=(...s)=>Te(e.keyPrefix(...s)),a.size=r((...s)=>this._rpcCore.state.getStorageSize(n(s))),a.sizeAt=r((s,...u)=>o(s).pipe(te(l=>this._rpcCore.state.getStorageSize(n(u,l.creator.meta.registry),s)))),e.iterKey&&e.meta.type.isMap&&(a.entries=r(W(this.__internal__instanceId,(...s)=>this._retrieveMapEntries(e,null,s))),a.entriesAt=r(W(this.__internal__instanceId,(s,...u)=>o(s).pipe(te(l=>this._retrieveMapEntries(l.creator,s,u))))),a.entriesPaged=r(W(this.__internal__instanceId,s=>this._retrieveMapEntriesPaged(e,void 0,s))),a.keys=r(W(this.__internal__instanceId,(...s)=>this._retrieveMapKeys(e,null,s))),a.keysAt=r(W(this.__internal__instanceId,(s,...u)=>o(s).pipe(te(l=>this._retrieveMapKeys(l.creator,s,u))))),a.keysPaged=r(W(this.__internal__instanceId,s=>this._retrieveMapKeysPaged(e,void 0,s)))),this.supportMulti&&e.meta.type.isMap&&(a.multi=r(s=>e.meta.type.asMap.hashers.length===1?this._retrieveMulti(s.map(u=>[e,[u]])):this._retrieveMulti(s.map(u=>[e,u])))),this._decorateFunctionMeta(e,a)}_decorateStorageEntryAt(e,r,n,o){let a=u=>xd(e,r,u),s=n((...u)=>this._rpcCore.state.getStorage(a(u),o));return s.creator=r,s.hash=n((...u)=>this._rpcCore.state.getStorageHash(a(u),o)),s.is=u=>u.section===r.section&&u.method===r.method,s.key=(...u)=>Te(Ya(r(...u))[1]),s.keyPrefix=(...u)=>Te(r.keyPrefix(...u)),s.size=n((...u)=>this._rpcCore.state.getStorageSize(a(u),o)),r.iterKey&&r.meta.type.isMap&&(s.entries=n(W(this.__internal__instanceId,(...u)=>this._retrieveMapEntries(r,o,u))),s.entriesPaged=n(W(this.__internal__instanceId,u=>this._retrieveMapEntriesPaged(r,o,u))),s.keys=n(W(this.__internal__instanceId,(...u)=>this._retrieveMapKeys(r,o,u))),s.keysPaged=n(W(this.__internal__instanceId,u=>this._retrieveMapKeysPaged(r,o,u)))),this.supportMulti&&r.meta.type.isMap&&(s.multi=n(u=>r.meta.type.asMap.hashers.length===1?this._retrieveMulti(u.map(l=>[r,[l]]),o):this._retrieveMulti(u.map(l=>[r,l]),o))),this._decorateFunctionMeta(r,s)}_queueStorage(e,r){let n=r===this.__internal__storageSubQ?this._rpcCore.state.subscribeStorage:this._rpcCore.state.queryStorageAt,o=r.length-1,a=0,s;return o===-1||!r[o]||r[o][1].length===dF?(o++,s=xn(new Promise(u=>{No(()=>{let l=r[o][1];delete r[o],u(l)})})).pipe(te(u=>n(u))),r.push([s,[e]])):(s=r[o][0],a=r[o][1].length,r[o][1].push(e)),s.pipe(z(u=>u[a]))}_decorateStorageCall(e,r){let n=W(this.__internal__instanceId,(...o)=>{let a=xd(this.__internal__registry,e,o);return this.hasSubscriptions?this._queueStorage(a,this.__internal__storageSubQ):this._rpcCore.state.getStorage(a)});return r(n,{methodName:e.method,overrideNoSub:(...o)=>this._queueStorage(xd(this.__internal__registry,e,o),this.__internal__storageGetQ)})}_retrieveMulti(e,r){if(!e.length)return q([]);let n=this.hasSubscriptions&&!r?this._rpcCore.state.subscribeStorage:this._rpcCore.state.queryStorageAt;return e.length<=Eg?r?n(e,r):n(e):ae(Tu(e,Eg).map(o=>r?n(o,r):n(o))).pipe(z(Ko))}_retrieveMapKeys({iterKey:e,meta:r,method:n,section:o},a,s){if(!e||!r.type.isMap)throw new Error("keys can only be retrieved on maps");let u=e(...s).toHex(),l=new Oi(u),h=a?_=>this._rpcCore.state.getKeysPaged(u,b0,_,a):_=>this._rpcCore.state.getKeysPaged(u,b0,_),y=_=>_.setMeta(r,o,n);return l.pipe(te(h),z(_=>_.map(y)),yn(_=>No(()=>{_.length===b0?l.next(_[b0-1].toHex()):l.complete()})),ba(),z(Ko))}_retrieveMapKeysPaged({iterKey:e,meta:r,method:n,section:o},a,s){if(!e||!r.type.isMap)throw new Error("keys can only be retrieved on maps");let u=h=>h.setMeta(r,o,n);return(a?h=>this._rpcCore.state.getKeysPaged(h,s.pageSize,s.startKey||h,a):h=>this._rpcCore.state.getKeysPaged(h,s.pageSize,s.startKey||h))(e(...s.args).toHex()).pipe(z(h=>h.map(u)))}_retrieveMapEntries(e,r,n){let o=r?a=>this._rpcCore.state.queryStorageAt(a,r):a=>this._rpcCore.state.queryStorageAt(a);return this._retrieveMapKeys(e,r,n).pipe(te(a=>a.length?ae(Tu(a,Eg).map(o)).pipe(z(s=>Ko(s).map((u,l)=>[a[l],u]))):q([])))}_retrieveMapEntriesPaged(e,r,n){let o=r?a=>this._rpcCore.state.queryStorageAt(a,r):a=>this._rpcCore.state.queryStorageAt(a);return this._retrieveMapKeysPaged(e,r,n).pipe(te(a=>a.length?o(a).pipe(z(s=>s.map((u,l)=>[a[l],u]))):q([])))}_decorateDeriveRx(e){let r=this._runtimeVersion?.specName.toString(),n=cS(this.__internal__instanceId,this._rx,ne({},this._options.derives,this._options.typesBundle?.spec?.[r||""]?.derives));return wg(e,n)}_decorateDerive(e){return wg(e,this._rx.derive)}_rxDecorateMethod=e=>e};var hF=1e4,mF=!1,Ag=Tr("api/init");function xF(t){return t.toString()}var g0=class extends y0{__internal__atLast=null;__internal__healthTimer=null;__internal__registries=[];__internal__updateSub=null;__internal__waitingRegistries={};constructor(e,r,n){super(e,r,n),this.registry.setKnownTypes(e),e.source?this.__internal__registries=e.source.__internal__registries:this.registerTypes(e.types),this._rpc=this._decorateRpc(this._rpcCore,this._decorateMethod),this._rx.rpc=this._decorateRpc(this._rpcCore,this._rxDecorateMethod),this.supportMulti&&(this._queryMulti=this._decorateMulti(this._decorateMethod),this._rx.queryMulti=this._decorateMulti(this._rxDecorateMethod)),this._rx.signer=e.signer,this._rpcCore.setRegistrySwap(o=>this.getBlockRegistry(o)),this._rpcCore.setResolveBlockHash(o=>jn(this._rpcCore.chain.getBlockHash(o))),this.hasSubscriptions?(this._rpcCore.provider.on("disconnected",()=>this.__internal__onProviderDisconnect()),this._rpcCore.provider.on("error",o=>this.__internal__onProviderError(o)),this._rpcCore.provider.on("connected",()=>this.__internal__onProviderConnect())):this._options.noInitWarn||Ag.warn("Api will be available in a limited mode since the provider does not support subscriptions"),this._rpcCore.provider.isConnected&&this.__internal__onProviderConnect().catch(Fn)}_initRegistry(e,r,n,o,a){e.clearCache(),e.setChainProperties(a||this.registry.getChainProperties()),e.setKnownTypes(this._options),e.register(BS(e,r,n.specName,n.specVersion)),e.setHasher(RS(e,r,n.specName)),e.knownTypes.typesBundle&&(e.knownTypes.typesAlias=HS(e,r,n.specName)),e.setMetadata(o,void 0,ne({},CS(e,r,n.specName),this._options.signedExtensions),this._options.noInitWarn)}_getDefaultRegistry(){return Oo(this.__internal__registries.find(({isDefault:e})=>e),"Initialization error, cannot find the default registry")}async at(e,r){let n=K(e),o=Te(n),a=await this.getBlockRegistry(n,r);return(!this.__internal__atLast||this.__internal__atLast[0]!==o)&&(this.__internal__atLast=[o,this._createDecorated(a,!0,null,n).decoratedApi]),this.__internal__atLast[1]}async _createBlockRegistry(e,r,n){let o=new bf(e),a=new Li(o,await jn(this._rpcCore.state.getMetadata.raw(r.parentHash))),s=this._runtimeChain;if(!s)throw new Error("Invalid initializion order, runtimeChain is not available");this._initRegistry(o,s,n,a);let u={counter:0,lastBlockHash:e,metadata:a,registry:o,runtimeVersion:n};return this.__internal__registries.push(u),u}_cacheBlockRegistryProgress(e,r){let n=this.__internal__waitingRegistries[e];return Qe(n)&&(n=this.__internal__waitingRegistries[e]=new Promise((o,a)=>{r().then(s=>{delete this.__internal__waitingRegistries[e],o(s)}).catch(s=>{delete this.__internal__waitingRegistries[e],a(s)})})),n}_getBlockRegistryViaVersion(e,r){if(r){let n=this.__internal__registries.find(({runtimeVersion:{specName:o,specVersion:a}})=>o.eq(r.specName)&&a.eq(r.specVersion));if(n)return n.counter++,n.lastBlockHash=e,n}return null}async _getBlockRegistryViaHash(e){if(!this._genesisHash||!this._runtimeVersion)throw new Error("Cannot retrieve data on an uninitialized chain");let r=this.registry.createType("HeaderPartial",this._genesisHash.eq(e)?{number:Lt,parentHash:this._genesisHash}:await jn(this._rpcCore.chain.getHeader.raw(e)));if(r.parentHash.isEmpty)throw new Error("Unable to retrieve header and parent from supplied hash");let[n,o]=LS(this._genesisHash,r.number),a=this.registry.createType("RuntimeVersionPartial",mF&&n&&(o||n.specVersion.eq(this._runtimeVersion.specVersion))?{apis:n.apis,specName:this._runtimeVersion.specName,specVersion:n.specVersion}:await jn(this._rpcCore.state.getRuntimeVersion.raw(r.parentHash)));return this._getBlockRegistryViaVersion(e,a)||await this._cacheBlockRegistryProgress(a.toHex(),()=>this._createBlockRegistry(e,r,a))}async getBlockRegistry(e,r){return this.__internal__registries.find(({lastBlockHash:n})=>n&&Lr(n,e))||this._getBlockRegistryViaVersion(e,r)||await this._cacheBlockRegistryProgress(Te(e),()=>this._getBlockRegistryViaHash(e))}async _loadMeta(){return this._isReady?!0:(this._unsubscribeUpdates(),[this._genesisHash,this._runtimeMetadata]=this._options.source?._isReady?await this._metaFromSource(this._options.source):await this._metaFromChain(this._options.metadata),this._initFromMeta(this._runtimeMetadata))}async _metaFromSource(e){this._extrinsicType=e.extrinsicVersion,this._runtimeChain=e.runtimeChain,this._runtimeVersion=e.runtimeVersion;let r=Object.keys(e.rpc),n=[];for(let o=0,a=r.length;othis._runtimeVersion?.specVersion.eq(e.specVersion)?q(!1):this._rpcCore.state.getMetadata().pipe(z(r=>{Ag.log(`Runtime version updated to spec=${e.specVersion.toString()}, tx=${e.transactionVersion.toString()}`),this._runtimeMetadata=r,this._runtimeVersion=e,this._rx.runtimeVersion=e;let n=this._getDefaultRegistry(),o=this._runtimeChain;if(!o)throw new Error("Invalid initializion order, runtimeChain is not available");return n.metadata=r,n.runtimeVersion=e,this._initRegistry(this.registry,o,e,r),this._injectMetadata(n,!0),!0})))).subscribe())}async _metaFromChain(e){let[r,n,o,a,s,u]=await Promise.all([jn(this._rpcCore.chain.getBlockHash(0)),jn(this._rpcCore.state.getRuntimeVersion()),jn(this._rpcCore.system.chain()),jn(this._rpcCore.system.properties()),jn(this._rpcCore.rpc.methods()),e?Promise.resolve(null):jn(this._rpcCore.state.getMetadata())]);this._runtimeChain=o,this._runtimeVersion=n,this._rx.runtimeVersion=n;let l=`${r.toHex()||"0x"}-${n.specVersion.toString()}`,h=u||(e?.[l]?new Li(this.registry,e[l]):await jn(this._rpcCore.state.getMetadata()));return this._initRegistry(this.registry,o,n,h,a),this._filterRpc(s.methods.map(xF),kg(this.registry,o,n.specName)),this._subscribeUpdates(),this.__internal__registries.length||this.__internal__registries.push({counter:0,isDefault:!0,metadata:h,registry:this.registry,runtimeVersion:n}),h.getUniqTypes(this._options.throwOnUnknown||!1),[r,h]}_initFromMeta(e){let r=this._runtimeVersion;if(!r)throw new Error("Invalid initializion order, runtimeVersion is not available");return this._extrinsicType=e.asLatest.extrinsic.version.toNumber(),this._rx.extrinsicType=this._extrinsicType,this._rx.genesisHash=this._genesisHash,this._rx.runtimeVersion=r,this._injectMetadata(this._getDefaultRegistry(),!0),this._rx.derive=this._decorateDeriveRx(this._rxDecorateMethod),this._derive=this._decorateDerive(this._decorateMethod),!0}_subscribeHealth(){this._unsubscribeHealth(),this.__internal__healthTimer=this.hasSubscriptions?setInterval(()=>{jn(this._rpcCore.system.health.raw()).catch(Fn)},hF):null}_unsubscribeHealth(){this.__internal__healthTimer&&(clearInterval(this.__internal__healthTimer),this.__internal__healthTimer=null)}_unsubscribeUpdates(){this.__internal__updateSub&&(this.__internal__updateSub.unsubscribe(),this.__internal__updateSub=null)}_unsubscribe(){this._unsubscribeHealth(),this._unsubscribeUpdates()}async __internal__onProviderConnect(){this._isConnected.next(!0),this.emit("connected");try{let e=this._options.initWasm===!1?!0:await g8(),r=await this._loadMeta();this._subscribeHealth(),r&&!this._isReady&&e&&(this._isReady=!0,this.emit("ready",this))}catch(e){let r=new Error(`FATAL: Unable to initialize the API: ${e.message}`);Ag.error(r),this.emit("error",r)}}__internal__onProviderDisconnect(){this._isConnected.next(!1),this._unsubscribe(),this.emit("disconnected")}__internal__onProviderError(e){this.emit("error",e)}};function Zn(t){if(t===void 0)throw new Error("Api interfaces needs to be initialized before using, wait for 'isReady'");return t}var w0=class extends g0{get call(){return Zn(this._call)}get consts(){return Zn(this._consts)}get derive(){return Zn(this._derive)}get errors(){return Zn(this._errors)}get events(){return Zn(this._events)}get extrinsicVersion(){return this._extrinsicType}get genesisHash(){return Zn(this._genesisHash)}get isConnected(){return this._isConnected.getValue()}get libraryInfo(){return`${uy.name} v${uy.version}`}get query(){return Zn(this._query)}get queryMulti(){return Zn(this._queryMulti)}get rpc(){return Zn(this._rpc)}get runtimeChain(){return Zn(this._runtimeChain)}get runtimeMetadata(){return Zn(this._runtimeMetadata)}get runtimeVersion(){return Zn(this._runtimeVersion)}get rx(){return Zn(this._rx)}get stats(){return this._rpcCore.stats}get type(){return this._type}get tx(){return Zn(this._extrinsics)}findCall(e){return d0(this.registry,e)}findError(e){return p0(this.registry,e)}};var v0=class extends w0{constructor(e={},r,n){super(e,r,n)}connect(){return this._rpcCore.connect()}disconnect(){return this._unsubscribe(),this._rpcCore.disconnect()}setSigner(e){this._rx.signer=e}async sign(e,r,{signer:n}={}){if(qe(e)){let o=n||this._rx.signer;if(!o?.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 o.signRaw(ne({type:"bytes"},r,{address:e}))).signature}return Te(e.sign(K(r.data)))}};var _0=class{__internal__allHasFired=!1;__internal__callback;__internal__fired=[];__internal__fns=[];__internal__isActive=!0;__internal__results=[];__internal__subscriptions=[];constructor(e,r){this.__internal__callback=r,this.__internal__subscriptions=e.map(async(n,o)=>{let[a,...s]=Array.isArray(n)?n:[n];return this.__internal__fired.push(!1),this.__internal__fns.push(a),a(...s,this._createCallback(o))})}_allHasFired(){return this.__internal__allHasFired||=this.__internal__fired.filter(e=>!e).length===0,this.__internal__allHasFired}_createCallback(e){return r=>{this.__internal__fired[e]=!0,this.__internal__results[e]=r,this._triggerUpdate()}}_triggerUpdate(){if(!(!this.__internal__isActive||!we(this.__internal__callback)||!this._allHasFired()))try{Promise.resolve(this.__internal__callback(this.__internal__results)).catch(Fn)}catch{}}unsubscribe(){this.__internal__isActive&&(this.__internal__isActive=!1,Promise.all(this.__internal__subscriptions.map(async e=>{try{let r=await e;we(r)&&r()}catch{}})).catch(()=>{}))}};function S0(t,e){let r=!1;return{reject:n=>(r||(r=!0,e(n)),Ii),resolve:n=>{r||(r=!0,t(n))}}}function bF(t,e){let r=t.slice(),n=t.length&&we(t[t.length-1])?r.pop():void 0;if(e&&!we(n))throw new Error("Expected a callback to be passed with subscriptions");return[r,n]}function yF(t,e){return new Promise((r,n)=>{let o=S0(r,n),a=t(...e).pipe(bn(s=>o.reject(s))).subscribe(s=>{o.resolve(s),No(()=>a.unsubscribe())})})}function gF(t,e,r){return new Promise((n,o)=>{let a=S0(n,o),s=t(...e).pipe(bn(u=>a.reject(u)),yn(()=>a.resolve(()=>s.unsubscribe()))).subscribe(u=>{No(()=>r(u))})})}function XS(t,e){let r=!!(e?.methodName&&e.methodName.includes("subscribe"));return function(...n){let[o,a]=bF(n,r);return a?gF(t,o,a):yF(e?.overrideNoSub||t,o)}}var bd=class t extends v0{__internal__isReadyPromise;__internal__isReadyOrErrorPromise;constructor(e){super(e,"promise",XS),this.__internal__isReadyPromise=new Promise(r=>{super.once("ready",()=>r(this))}),this.__internal__isReadyOrErrorPromise=new Promise((r,n)=>{let o=S0(r,n);super.once("ready",()=>o.resolve(this)),super.once("error",a=>o.reject(a))})}static create(e){let r=new t(e);return e&&e.throwOnConnect?r.isReadyOrError:(r.isReadyOrError.catch(Fn),r.isReady)}get isReady(){return this.__internal__isReadyPromise}get isReadyOrError(){return this.__internal__isReadyOrErrorPromise}clone(){return new t(ne({},this._options,{source:this}))}async combineLatest(e,r){let n=new _0(e,r);return()=>{n.unsubscribe()}}};var Og={nodeURL:["wss://testnet-rpc.cess.cloud/ws/","wss://testnet-rpc.cess.network/ws/"],keyringOption:{type:"sr25519",ss58Format:11330},gatewayURL:"http://deoss-pub-gateway.cess.cloud/",gatewayAddr:"cXhwBytXqrZLr1qM5NHJhCzEMckSTzNKw17ci2aHft6ETSQm9"};async function Ig(t){return new Promise(async(e,r)=>{for(let n of t)wF(n).then(o=>{o&&e(n)})})}async function wF(t){return new Promise(async(e,r)=>{console.log("connecting ",t);let n=new WebSocket(t);n.onopen=function(){console.log("connect success ",t),n.close(),e(!0)},n.onclose=function(){e(!1)},n.error=function(){e(!1)}})}async function GS(t=Og){let e=new Gu(t.keyringOption),r=t.nodeURL;Array.isArray(t.nodeURL)||(r=[t.nodeURL]);let n=await Ig(r);if(!n)return{api:null,keyring:e};let o=new ss(n);return{api:await bd.create({provider:o}),keyring:e}}function ZS(t){return new Promise(e=>{document.readyState==="complete"?e(t()):window.addEventListener("load",()=>e(t()))})}var T0=window;T0.injectedWeb3=T0.injectedWeb3||{};var vF=YS(),Wc=null;function YS(){return Object.values(T0.injectedWeb3).filter(({connect:t,enable:e})=>!!(t||e)).length!==0}function Vg(t){throw new Error(`${t}: web3Enable(originName) needs to be called before ${t}`)}function _F(t,e,r){return e.map(({address:n,genesisHash:o,name:a,type:s})=>({address:n.length===42?n:ni(tr(n),r),meta:{genesisHash:o,name:a,source:t},type:s}))}function SF(t,e,r){return t.filter(n=>(!n.type||!r||r.includes(n.type))&&(!n.genesisHash||!e||n.genesisHash===e))}function TF(t){return Promise.all(Object.entries(T0.injectedWeb3).map(([e,{connect:r,enable:n,version:o}])=>Promise.resolve().then(()=>r?r(t):n?n(t).then(a=>ne({name:e,version:o||"unknown"},a)):Promise.reject(new Error("No connect(..) or enable(...) hook found"))).catch(({message:a})=>{console.error(`Error initializing ${e}: ${a}`)}))).then(e=>e.filter(r=>!!r))}async function kF(t,e){return Wc?(await Wc).filter(({name:n})=>!e||e.includes(n)):Vg(t)}function k0(t,e=[]){if(!t)throw new Error("You must pass a name for your app to the web3Enable function");let r=e.length?Promise.all(e.map(n=>n().catch(()=>!1))):Promise.resolve([!0]);return Wc=ZS(()=>r.then(()=>TF(t).then(n=>n.map(o=>(o.accounts.subscribe||(o.accounts.subscribe=a=>(o.accounts.get().then(a).catch(console.error),()=>{})),o))).catch(()=>[]).then(n=>{let o=n.map(({name:a,version:s})=>`${a}/${s}`);return vF=YS(),console.info(`web3Enable: Enabled ${n.length} extension${n.length!==1?"s":""}: ${o.join(", ")}`),n}))),Wc}async function E0({accountType:t,extensions:e,genesisHash:r,ss58Format:n}={}){let o=[],a=await kF("web3Accounts",e);return(await Promise.all(a.map(async({accounts:u,name:l})=>{try{let h=await u.get();return _F(l,SF(h,r,t),n)}catch{return[]}}))).forEach(u=>{o.push(...u)}),console.info(`web3Accounts: Found ${o.length} address${o.length!==1?"es":""}`),o}async function Ng(t){if(!Wc)return Vg("web3FromSource");let e=await Wc,r=t&&e.find(({name:n})=>n===t);if(!r)throw new Error(`web3FromSource: Unable to find an injected ${t}`);return r}async function KS(t){if(!Wc)return Vg("web3FromAddress");let e=await E0(),r;if(t){let n=tr(t);r=e.find(o=>Lr(tr(o.address),n))}if(!r)throw new Error(`web3FromAddress: Unable to find injected ${t}`);return Ng(r.meta.source)}var bo=class{constructor(e,r,n=!1){this.api=e,this.keyring=r,this.debug=n}log=(...e)=>{this.debug&&console.log(...e)};error=(...e)=>{this.debug&&console.error(...e)};async submitTransaction(e){return new Promise(async(r,n)=>{let o=this.api,a;try{a=o.tx(e)}catch(s){n(s)}try{let s=await o.rpc.author.submitExtrinsic(a);r(s.toHex())}catch(s){n(s)}})}async signAndSend(e,r,n=null){return new Promise(async(o,a)=>{try{if((await k0("CESS dApp")).length===0)return a("no extension installed, or the user did not accept the authorization");let u=await KS(e);r.signAndSend(e,{signer:u.signer},l=>{try{if(n&&typeof n=="function"&&n(l),console.log("status.status.toJSON()",l.status.toJSON()),console.log("isFinalized",l.isFinalized),l.isFinalized){let h=r.hash.toHex();o({msg:"ok",data:h})}else console.log(l)}catch(h){console.log(h),a(h.message)}}).catch(l=>{a(l.message)})}catch(s){console.log(s),a(s.message)}})}async getAccountsFromWallet(){let e=await k0("cess"),r=await E0();return r.forEach(n=>{n.sourAddress=n.address,n.address=this.formatAccountId(n.address)}),r}async authSign(e,r){await k0("cess");let n=await E0();n.forEach(h=>{h.address=this.formatAccountId(h.address)});let o=n.find(h=>h.address==e);if(!o)return o=n[0],console.log("account not found:",n),{signU8A:null,signStr:null};let s=(await Ng(o.meta.source))?.signer?.signRaw;if(!s)return{signU8A:null,signStr:null};let{signature:u}=await s({address:o.address,data:nc(r),type:"bytes"});return{signU8A:jt(u),signStr:u}}formatAccountId(e){return!e||e.length==64?e:ni(e,11330)}};var gd=Qs(JS(),1),$S=Qs(QS(),1);function M0(t,e,r){return t.map(([n,o])=>{let a=n.args.map(l=>l.toHuman()),s=a[0],u=r?o.toJSON():o.toHuman();return a.length>0&&(u.ids=a),e?gd.default.assign(u,{key:s,sourceKey:n}):gd.default.assign(u,{key:s})})}function jc(t){let e=EF(t);return e.size+" "+e.ext}function EF(t){let e=gd.default.isString(t)?gd.default.toNumber(t):t,r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],n=0;for(;e>=1024&&n{r({nonce:o.toNumber(),free:a.free/1e18,reserved:a.reserved/1e18,frozen:a.frozen/1e18,flags:a.flags/1e18})})}};var O0=class extends bo{constructor(e,r,n=!1){super(e,r,n)}async authorityList(e){try{return{msg:"ok",data:(await this.api.query.oss.authorityList(e)).toJSON()}}catch(r){return console.error(r),{msg:"ok",errMsg:r.message,error:JSON.stringify(r)}}}authorize(e,r,n=null){let o=this.api.tx.oss.authorize(r);return this.signAndSend(e,o,n)}cancelAuthorize(e,r,n=null){let o=this.api.tx.oss.cancelAuthorize(r);return this.signAndSend(e,o,n)}};var{queryBlockHeight:oT}=(Hg(),fA(nT)),V0=class extends bo{constructor(e,r,n=!1){super(e,r,n)}async queryMyTerritorys(e){try{let r=await this.api.query.storageHandler.territory.entries(e),n=M0(r,!1,!0),o=await oT(this.api),a=[];return n.forEach(s=>{s.owner=s.ids[0],s.name=s.ids[1],s.key=s.token,delete s.token,delete s.ids,a.push(wd(s,o))}),{msg:"ok",data:a}}catch(r){return console.error(r),{msg:"ok",errMsg:r.message,error:JSON.stringify(r)}}}async queryTerritoryInfo(e,r){try{let o=(await this.api.query.storageHandler.territory(e,r)).toJSON();o.owner=e,o.name=r,o.key=o.token;let a=await oT(this.api);return o=wd(o,a),{msg:"ok",data:o}}catch(n){return console.error(n),{msg:"ok",errMsg:n.message,error:JSON.stringify(n)}}}async createTerritory(e,r,n,o=30,a=null){if(o<30)throw"Not less than 30 days";let s=this.api.tx.storageHandler.mintTerritory(n,r,o);return await this.signAndSend(e,s,a)}async expandingTerritory(e,r,n,o=null){let a=this.api.tx.storageHandler.expandingTerritory(r,n);return await this.signAndSend(e,a,o)}async renewalTerritory(e,r,n=30,o=null){let a=this.api.tx.storageHandler.renewalTerritory(r,n);return await this.signAndSend(e,a,o)}async renameTerritory(e,r,n,o=null){let a=this.api.tx.storageHandler.territoryRename(r,n);return await this.signAndSend(e,a,o)}async reactivateTerritory(e,r,n=30,o=null){let a=this.api.tx.storageHandler.reactivateTerritory(r,n);return await this.signAndSend(e,a,o)}};var N0=class extends bo{constructor(e,r,n=!1){super(e,r,n)}async queryBucketNames(e){try{return await this.api.isReady,{msg:"ok",data:(await this.api.query.fileBank.userBucketList(e)).toHuman()}}catch(r){return console.error(r),{msg:"ok",errMsg:r.message,error:JSON.stringify(r)}}}async queryBucketList(e){try{await this.api.isReady;let r=await this.api.query.fileBank.bucket.entries(e),n=M0(r,!1,!1);return n.forEach(o=>{o.key=o.ids[1],delete o.ids,delete o.authority}),{msg:"ok",data:n}}catch(r){return console.error(r),{msg:"ok",errMsg:r.message,error:JSON.stringify(r)}}}async queryBucketInfo(e,r){try{return await this.api.isReady,{msg:"ok",data:(await this.api.query.fileBank.bucket(e,r)).toJSON()}}catch(n){return console.error(n),{msg:"ok",errMsg:n.message,error:JSON.stringify(n)}}}async createBucket(e,r,n=null){await this.api.isReady;let o=this.api.tx.fileBank.createBucket(e,r);return await this.signAndSend(e,o,n)}async deleteBucket(e,r,n=null){await this.api.isReady;let o=this.api.tx.fileBank.deleteBucket(e,r);return await this.signAndSend(e,o,n)}};Hg();var C0=1024*1024;function iT(t,e,r){return new Promise(async(n,o)=>{try{r("Connecting \u2026",t);let s=await(await fetch(t,{method:"GET",headers:{Operation:"download",Account:"cXh5StobuVP4B7mGH9xn8dSsDtXks4qLAou8ZdkZ6DbB6zzxe"},responseType:"blob"})).blob();e=e.split("\\").join("/");let u=e.split("/").slice(-1);u=u[0],zF(s,u),n({msg:"ok",data:e})}catch(a){r(a),o(a.message)}})}async function aT(t,e,r,n,o,a=0){let s=e.size,u="uploading",l=Math.ceil(s/C0);r.BlockNumber=l;let h={msg:""};for(let y=a;y1024&&(G=G/1024,J="MB/s"),G=G.toFixed(1),o({percentComplete:B,speed:G,speedUnit:J,xhr:{abort:()=>{u="abort"},pause:()=>{u="pause",console.log("pausing..")},resume:()=>{u="uploading"}}})}return h}function DF(t,e,r,n,o){return new Promise(async(a,s)=>{let u=e.slice(n,o),l=new FormData;l.append("file",u);let h=new XMLHttpRequest;h.open("PUT",t,!0),Object.keys(r).forEach(y=>{h.setRequestHeader(y,r[y])}),h.onload=function(){let y="response"in h?h.response:h.responseText;h.status===200?a({msg:"ok",data:y}):a({msg:y||h.statusText})},h.onerror=function(y){a({msg:y.response?.data||y.message})},h.send(l)})}function zF(t,e){if(t instanceof Blob||(t=arrayBufferToBlob(t)),typeof window<"u"){let r=document.createElement("a");r.href=window?.URL?.createObjectURL(t),r.download=e,document.body.appendChild(r),r.click(),r.remove(),window?.URL?.revokeObjectURL(t)}}var sT=Qs(Bg(),1);var B0=class extends bo{constructor(e,r,n="http://deoss-pub-gateway.cess.cloud/",o=!1){super(e,r,o),this.gatewayURL=n}async queryFileListFull(e){try{let r=await this.queryFileList(e);if(r.msg!=="ok")return r;for(let n of r.data){let o=await this.queryFileMetadata(n.fileHash);if(o.msg==="ok"){let a=o.data.owner.find(s=>s.user==e);a&&(n.fileName=a.fileName,n.bucketName=a.bucketName),n.fileSize=o.data.fileSize,n.fileSizeStr=jc(o.data.fileSize),n.stat=o.data.stat}}return r}catch(r){return console.error(r),{msg:"ok",errMsg:r.message,error:JSON.stringify(r)}}}async queryFileList(e){try{let r=await this.api.query.fileBank.userHoldFileList(e),n=r.toHuman(),o=r.toJSON();return o.forEach((a,s)=>{a.fileHash=n[s].fileHash,a.fileConsumeSpace=a.fileSize,a.fileConsumeSpaceStr=jc(a.fileSize)}),{msg:"ok",data:o}}catch(r){return console.error(r),{msg:"ok",errMsg:r.message,error:JSON.stringify(r)}}}async queryFileMetadata(e){try{let r=await this.api.query.fileBank.file(e),n=r.toHuman(),o=r.toJSON();if(console.log("======in there======",{ret:r,hu:n,data:o}),o&&o.owner&&o.owner.length>0)for(let a=0;acess-js-sdk-frontend-"+new Date().valueOf()+"";let{signU8A:V}=await this.authSign(e,s);if(!V)return{msg:"sign error"};u=sT.default.encode(V)}if(!u)return console.log("sign error"),{msg:"sign error"};let y={Territory:n,Bucket:o,Account:e,Message:s,Signature:u,FileName:encodeURIComponent(r.name),TotalSize:r.size};return l&&(y.ACC=l),h&&(y.ETHACC=h),console.log("upload by chunk to ",this.gatewayURL),await aT(this.gatewayURL,r,y,this.log,a)}catch(y){return console.log(y),{msg:"error",error:y}}}async downloadFile(e,r){let n=this.gatewayURL+e;return await iT(n,r,this.log)}async deleteFile(e,r,n=null){let o=this.api.tx.fileBank.deleteFile(e,r);return await this.signAndSend(e,o,n)}};export{O0 as Authorize,N0 as Bucket,A0 as Common,B0 as File,GS as InitAPI,V0 as Territory,Og as defaultConfig}; + ${t.padStart(7)}: ${e.sort().join(", ")}`:""}function FS(t,e,[r,n]){(r.length||n.length)&&cF.warn(`api.${t}: Found${DS("added",r,n)}${DS("removed",n)} ${e}:${zS("added",r)}${zS("removed",n)}`)}function qS(t,e){return t.filter(r=>!e.includes(r))}function uF(t,e){return t.filter(r=>e.includes(r))}function fF(t,e){let r=Object.keys(t),n=Object.keys(e);return[qS(r,n),qS(n,r)]}function WS(t,e){let r=Object.keys(t),n=uF(Object.keys(e),r),o=[];for(let a=0,s=n.length;al[h])}return r}function jS({lookup:t},{method:e,section:r},n){return`${r}.${e}(${n.map(o=>t.getTypeDef(o).type).join(", ")})`}function xd(t,e,r){let n=r.filter(o=>!Qe(o));if(e.meta.type.isPlain){if(n.length!==0)throw new Error(`${jS(t,e,[])} does not take any arguments, ${n.length} found`)}else{let{hashers:o,key:a}=e.meta.type.asMap,s=o.length===1?[a]:t.lookup.getSiType(a).def.asTuple.map(u=>u);if(n.length!==s.length)throw new Error(`${jS(t,e,s)} is a map, requiring ${s.length} arguments, ${n.length} found`)}return[e,n]}var x0=class{__internal__eventemitter=new Nl.default;emit(e,...r){return this.__internal__eventemitter.emit(e,...r)}on(e,r){return this.__internal__eventemitter.on(e,r),this}off(e,r){return this.__internal__eventemitter.removeListener(e,r),this}once(e,r){return this.__internal__eventemitter.once(e,r),this}};var b0=1e3,Eg=250,dF=50,Pg=Tr("api/init"),pF=0;function Mg(t,{method:e,section:r}){return Oo(t.rx.query[r]&&t.rx.query[r][e],()=>`query.${r}.${e} is not available in this version of the metadata`)}var y0=class extends x0{__internal__instanceId;__internal__runtimeLog={};__internal__registry;__internal__storageGetQ=[];__internal__storageSubQ=[];__phantom=new be.default(0);_type;_call={};_consts={};_derive;_errors={};_events={};_extrinsics;_extrinsicType=Hc.LATEST_EXTRINSIC_VERSION;_genesisHash;_isConnected;_isReady=!1;_query={};_queryMulti;_rpc;_rpcCore;_runtimeMap={};_runtimeChain;_runtimeMetadata;_runtimeVersion;_rx={call:{},consts:{},query:{},tx:{}};_options;_decorateMethod;constructor(e,r,n){super(),this.__internal__instanceId=`${++pF}`,this.__internal__registry=e.source?.registry||e.registry||new bf,this._rx.callAt=(a,s)=>xn(this.at(a,s)).pipe(z(u=>u.rx.call)),this._rx.queryAt=(a,s)=>xn(this.at(a,s)).pipe(z(u=>u.rx.query)),this._rx.registry=this.__internal__registry,this._decorateMethod=n,this._options=e,this._type=r;let o=e.source?e.source._rpcCore.provider.isClonable?e.source._rpcCore.provider.clone():e.source._rpcCore.provider:e.provider||new ss;this._rpcCore=new t0(this.__internal__instanceId,this.__internal__registry,{isPedantic:this._options.isPedantic,provider:o,userRpc:this._options.rpc}),this._isConnected=new Oi(this._rpcCore.provider.isConnected),this._rx.hasSubscriptions=this._rpcCore.provider.hasSubscriptions}get registry(){return this.__internal__registry}createType(e,...r){return this.__internal__registry.createType(e,...r)}registerTypes(e){e&&this.__internal__registry.register(e)}get hasSubscriptions(){return this._rpcCore.provider.hasSubscriptions}get supportMulti(){return this._rpcCore.provider.hasSubscriptions||!!this._rpcCore.state.queryStorageAt}_emptyDecorated(e,r){return{call:{},consts:{},errors:{},events:{},query:{},registry:e,rx:{call:{},query:{}},tx:l0(this._type,this._rx,this._decorateMethod,e,r)}}_createDecorated(e,r,n,o){n||(n=this._emptyDecorated(e.registry,o)),(r||!e.decoratedMeta)&&(e.decoratedMeta=W2(e.registry,e.metadata));let a=this._decorateCalls(e,this._decorateMethod,o),s=this._decorateCalls(e,this._rxDecorateMethod,o),u=this._decorateStorage(e.decoratedMeta,this._decorateMethod,o),l=this._decorateStorage(e.decoratedMeta,this._rxDecorateMethod,o);return ui("consts",e.decoratedMeta.consts,n.consts,r),ui("errors",e.decoratedMeta.errors,n.errors,r),ui("events",e.decoratedMeta.events,n.events,r),ui("query",u,n.query,r),ui("query",l,n.rx.query,r),ui("call",a,n.call,r),ui("call",s,n.rx.call,r),n.findCall=h=>d0(e.registry,h),n.findError=h=>p0(e.registry,h),n.queryMulti=o?this._decorateMultiAt(n,this._decorateMethod,o):this._decorateMulti(this._decorateMethod),n.runtimeVersion=e.runtimeVersion,{createdAt:o,decoratedApi:n,decoratedMeta:e.decoratedMeta}}_injectMetadata(e,r=!1){(r||!e.decoratedApi)&&(e.decoratedApi=this._emptyDecorated(e.registry));let{decoratedApi:n,decoratedMeta:o}=this._createDecorated(e,r,e.decoratedApi);this._call=n.call,this._consts=n.consts,this._errors=n.errors,this._events=n.events,this._query=n.query,this._rx.call=n.rx.call,this._rx.query=n.rx.query;let a=this._decorateExtrinsics(o,this._decorateMethod),s=this._decorateExtrinsics(o,this._rxDecorateMethod);r||!this._extrinsics?(this._extrinsics=a,this._rx.tx=s):(ui("tx",a,this._extrinsics,!1),ui(null,s,this._rx.tx,!1)),ui(null,o.consts,this._rx.consts,r),this.emit("decorated")}injectMetadata(e,r,n){this._injectMetadata({counter:0,metadata:e,registry:n||this.__internal__registry,runtimeVersion:this.__internal__registry.createType("RuntimeVersionPartial")},r)}_decorateFunctionMeta(e,r){return r.meta=e.meta,r.method=e.method,r.section=e.section,r.toJSON=e.toJSON,e.callIndex&&(r.callIndex=e.callIndex),r}_filterRpc(e,r){Object.keys(r).length!==0&&(this._rpcCore.addUserInterfaces(r),this._decorateRpc(this._rpcCore,this._decorateMethod,this._rpc),this._decorateRpc(this._rpcCore,this._rxDecorateMethod,this._rx.rpc));let n={};for(let a=0,s=e.length;a!o.includes(u)&&!u.includes("_unstable_"));s.length&&!this._options.noInitWarn&&Pg.warn(`RPC methods not decorated: ${s.join(", ")}`);for(let u=0;uxn(this._rpcCore.provider.send(n,o)))}_decorateRpc(e,r,n=this._rpcSubmitter(r)){let o=n,a=(s,u)=>{let l=e[s][u],h=r(l,{methodName:u});return h.meta=l.meta,h.raw=r(l.raw,{methodName:u}),h};for(let s=0,u=e.sections.length;sa(l,_);for(let _=0,V=h.length;_y.version===V);_?ne(_.methods,y.methods):e[s].push(y)}else e[s]=u}}_getRuntimeDefs(e,r,n=""){let o={},a=Object.values(ga);for(let s=0,u=a.length;sme.eq(re));if(h[re]=!0,he){let me=ie.map(({version:Oe})=>Oe).sort(),Re=ie.find(({version:Oe})=>he[1].eq(Oe));if(Re){let Oe=et(fe),ge=Object.entries(Re.methods);if(ge.length){l[Oe]||(l[Oe]={});for(let Ze=0,C=ge.length;Ze[J.toHex(),Y.toString()]).filter(([J])=>!h[J]).map(([J,Y])=>`${this._runtimeMap[J]||J}/${Y}`);!this._options.noInitWarn&&!R&&(_.length&&Pg.warn(`${V}: Not decorating runtime apis without matching versions: ${_.join(", ")}`),B.length&&Pg.warn(`${V}: Not decorating unknown runtime apis: ${B.join(", ")}`));let L=s?(J,Y)=>this._rpcCore.state.call(J,Y,s):(J,Y)=>this._rpcCore.state.call(J,Y),Z=J=>Vo({},Object.keys(l[J]),Y=>this._decorateCall(e,l[J][Y],L,a)),G=Object.keys(l);for(let J=0,Y=G.length;J{if(s.length!==r.params.length)throw new Error(`${r.name}:: Expected ${r.params.length} arguments, found ${s.length}`);let u=e.createType("Raw",Qt(s.map((l,h)=>e.createTypeUnsafe(r.params[h].type,[l]).toU8a())));return n(r.name,u).pipe(z(l=>e.createTypeUnsafe(r.type,[l])))});return a.meta=r,a}_decorateMulti(e){return e(r=>r.length?(this.hasSubscriptions?this._rpcCore.state.subscribeStorage:this._rpcCore.state.queryStorageAt)(r.map(n=>Array.isArray(n)?n[0].creator.meta.type.isPlain?[n[0].creator]:n[0].creator.meta.type.asMap.hashers.length===1?[n[0].creator,n.slice(1)]:[n[0].creator,...n.slice(1)]:[n.creator])):q([]))}_decorateMultiAt(e,r,n){return r(o=>o.length?this._rpcCore.state.queryStorageAt(o.map(a=>{if(Array.isArray(a)){let{creator:s}=Mg(e,a[0].creator);return s.meta.type.isPlain?[s]:s.meta.type.asMap.hashers.length===1?[s,a.slice(1)]:[s,...a.slice(1)]}return[Mg(e,a.creator).creator]}),n):q([]))}_decorateExtrinsics({tx:e},r){let n=l0(this._type,this._rx,r),o=s=>Vo({},Object.keys(e[s]),u=>u.startsWith("$")?e[s][u]:this._decorateExtrinsicEntry(e[s][u],n)),a=Object.keys(e);for(let s=0,u=a.length;sr(e(...o));return n.is=o=>e.is(o),this._decorateFunctionMeta(e,n)}_decorateStorage({query:e,registry:r},n,o){let a={},s=l=>Vo({},Object.keys(e[l]),h=>o?this._decorateStorageEntryAt(r,e[l][h],n,o):this._decorateStorageEntry(e[l][h],n)),u=Object.keys(e);for(let l=0,h=u.length;lxd(u||this.__internal__registry,e,s),o=s=>xn(this.at(s)).pipe(z(u=>Mg(u,e))),a=this._decorateStorageCall(e,r);return a.creator=e,a.at=r((s,...u)=>o(s).pipe(te(l=>l(...u)))),a.hash=r((...s)=>this._rpcCore.state.getStorageHash(n(s))),a.is=s=>s.section===e.section&&s.method===e.method,a.key=(...s)=>Te(Ya(e(...s))[1]),a.keyPrefix=(...s)=>Te(e.keyPrefix(...s)),a.size=r((...s)=>this._rpcCore.state.getStorageSize(n(s))),a.sizeAt=r((s,...u)=>o(s).pipe(te(l=>this._rpcCore.state.getStorageSize(n(u,l.creator.meta.registry),s)))),e.iterKey&&e.meta.type.isMap&&(a.entries=r(W(this.__internal__instanceId,(...s)=>this._retrieveMapEntries(e,null,s))),a.entriesAt=r(W(this.__internal__instanceId,(s,...u)=>o(s).pipe(te(l=>this._retrieveMapEntries(l.creator,s,u))))),a.entriesPaged=r(W(this.__internal__instanceId,s=>this._retrieveMapEntriesPaged(e,void 0,s))),a.keys=r(W(this.__internal__instanceId,(...s)=>this._retrieveMapKeys(e,null,s))),a.keysAt=r(W(this.__internal__instanceId,(s,...u)=>o(s).pipe(te(l=>this._retrieveMapKeys(l.creator,s,u))))),a.keysPaged=r(W(this.__internal__instanceId,s=>this._retrieveMapKeysPaged(e,void 0,s)))),this.supportMulti&&e.meta.type.isMap&&(a.multi=r(s=>e.meta.type.asMap.hashers.length===1?this._retrieveMulti(s.map(u=>[e,[u]])):this._retrieveMulti(s.map(u=>[e,u])))),this._decorateFunctionMeta(e,a)}_decorateStorageEntryAt(e,r,n,o){let a=u=>xd(e,r,u),s=n((...u)=>this._rpcCore.state.getStorage(a(u),o));return s.creator=r,s.hash=n((...u)=>this._rpcCore.state.getStorageHash(a(u),o)),s.is=u=>u.section===r.section&&u.method===r.method,s.key=(...u)=>Te(Ya(r(...u))[1]),s.keyPrefix=(...u)=>Te(r.keyPrefix(...u)),s.size=n((...u)=>this._rpcCore.state.getStorageSize(a(u),o)),r.iterKey&&r.meta.type.isMap&&(s.entries=n(W(this.__internal__instanceId,(...u)=>this._retrieveMapEntries(r,o,u))),s.entriesPaged=n(W(this.__internal__instanceId,u=>this._retrieveMapEntriesPaged(r,o,u))),s.keys=n(W(this.__internal__instanceId,(...u)=>this._retrieveMapKeys(r,o,u))),s.keysPaged=n(W(this.__internal__instanceId,u=>this._retrieveMapKeysPaged(r,o,u)))),this.supportMulti&&r.meta.type.isMap&&(s.multi=n(u=>r.meta.type.asMap.hashers.length===1?this._retrieveMulti(u.map(l=>[r,[l]]),o):this._retrieveMulti(u.map(l=>[r,l]),o))),this._decorateFunctionMeta(r,s)}_queueStorage(e,r){let n=r===this.__internal__storageSubQ?this._rpcCore.state.subscribeStorage:this._rpcCore.state.queryStorageAt,o=r.length-1,a=0,s;return o===-1||!r[o]||r[o][1].length===dF?(o++,s=xn(new Promise(u=>{No(()=>{let l=r[o][1];delete r[o],u(l)})})).pipe(te(u=>n(u))),r.push([s,[e]])):(s=r[o][0],a=r[o][1].length,r[o][1].push(e)),s.pipe(z(u=>u[a]))}_decorateStorageCall(e,r){let n=W(this.__internal__instanceId,(...o)=>{let a=xd(this.__internal__registry,e,o);return this.hasSubscriptions?this._queueStorage(a,this.__internal__storageSubQ):this._rpcCore.state.getStorage(a)});return r(n,{methodName:e.method,overrideNoSub:(...o)=>this._queueStorage(xd(this.__internal__registry,e,o),this.__internal__storageGetQ)})}_retrieveMulti(e,r){if(!e.length)return q([]);let n=this.hasSubscriptions&&!r?this._rpcCore.state.subscribeStorage:this._rpcCore.state.queryStorageAt;return e.length<=Eg?r?n(e,r):n(e):ae(Tu(e,Eg).map(o=>r?n(o,r):n(o))).pipe(z(Ko))}_retrieveMapKeys({iterKey:e,meta:r,method:n,section:o},a,s){if(!e||!r.type.isMap)throw new Error("keys can only be retrieved on maps");let u=e(...s).toHex(),l=new Oi(u),h=a?_=>this._rpcCore.state.getKeysPaged(u,b0,_,a):_=>this._rpcCore.state.getKeysPaged(u,b0,_),y=_=>_.setMeta(r,o,n);return l.pipe(te(h),z(_=>_.map(y)),yn(_=>No(()=>{_.length===b0?l.next(_[b0-1].toHex()):l.complete()})),ba(),z(Ko))}_retrieveMapKeysPaged({iterKey:e,meta:r,method:n,section:o},a,s){if(!e||!r.type.isMap)throw new Error("keys can only be retrieved on maps");let u=h=>h.setMeta(r,o,n);return(a?h=>this._rpcCore.state.getKeysPaged(h,s.pageSize,s.startKey||h,a):h=>this._rpcCore.state.getKeysPaged(h,s.pageSize,s.startKey||h))(e(...s.args).toHex()).pipe(z(h=>h.map(u)))}_retrieveMapEntries(e,r,n){let o=r?a=>this._rpcCore.state.queryStorageAt(a,r):a=>this._rpcCore.state.queryStorageAt(a);return this._retrieveMapKeys(e,r,n).pipe(te(a=>a.length?ae(Tu(a,Eg).map(o)).pipe(z(s=>Ko(s).map((u,l)=>[a[l],u]))):q([])))}_retrieveMapEntriesPaged(e,r,n){let o=r?a=>this._rpcCore.state.queryStorageAt(a,r):a=>this._rpcCore.state.queryStorageAt(a);return this._retrieveMapKeysPaged(e,r,n).pipe(te(a=>a.length?o(a).pipe(z(s=>s.map((u,l)=>[a[l],u]))):q([])))}_decorateDeriveRx(e){let r=this._runtimeVersion?.specName.toString(),n=cS(this.__internal__instanceId,this._rx,ne({},this._options.derives,this._options.typesBundle?.spec?.[r||""]?.derives));return wg(e,n)}_decorateDerive(e){return wg(e,this._rx.derive)}_rxDecorateMethod=e=>e};var hF=1e4,mF=!1,Ag=Tr("api/init");function xF(t){return t.toString()}var g0=class extends y0{__internal__atLast=null;__internal__healthTimer=null;__internal__registries=[];__internal__updateSub=null;__internal__waitingRegistries={};constructor(e,r,n){super(e,r,n),this.registry.setKnownTypes(e),e.source?this.__internal__registries=e.source.__internal__registries:this.registerTypes(e.types),this._rpc=this._decorateRpc(this._rpcCore,this._decorateMethod),this._rx.rpc=this._decorateRpc(this._rpcCore,this._rxDecorateMethod),this.supportMulti&&(this._queryMulti=this._decorateMulti(this._decorateMethod),this._rx.queryMulti=this._decorateMulti(this._rxDecorateMethod)),this._rx.signer=e.signer,this._rpcCore.setRegistrySwap(o=>this.getBlockRegistry(o)),this._rpcCore.setResolveBlockHash(o=>jn(this._rpcCore.chain.getBlockHash(o))),this.hasSubscriptions?(this._rpcCore.provider.on("disconnected",()=>this.__internal__onProviderDisconnect()),this._rpcCore.provider.on("error",o=>this.__internal__onProviderError(o)),this._rpcCore.provider.on("connected",()=>this.__internal__onProviderConnect())):this._options.noInitWarn||Ag.warn("Api will be available in a limited mode since the provider does not support subscriptions"),this._rpcCore.provider.isConnected&&this.__internal__onProviderConnect().catch(Fn)}_initRegistry(e,r,n,o,a){e.clearCache(),e.setChainProperties(a||this.registry.getChainProperties()),e.setKnownTypes(this._options),e.register(BS(e,r,n.specName,n.specVersion)),e.setHasher(RS(e,r,n.specName)),e.knownTypes.typesBundle&&(e.knownTypes.typesAlias=HS(e,r,n.specName)),e.setMetadata(o,void 0,ne({},CS(e,r,n.specName),this._options.signedExtensions),this._options.noInitWarn)}_getDefaultRegistry(){return Oo(this.__internal__registries.find(({isDefault:e})=>e),"Initialization error, cannot find the default registry")}async at(e,r){let n=K(e),o=Te(n),a=await this.getBlockRegistry(n,r);return(!this.__internal__atLast||this.__internal__atLast[0]!==o)&&(this.__internal__atLast=[o,this._createDecorated(a,!0,null,n).decoratedApi]),this.__internal__atLast[1]}async _createBlockRegistry(e,r,n){let o=new bf(e),a=new Li(o,await jn(this._rpcCore.state.getMetadata.raw(r.parentHash))),s=this._runtimeChain;if(!s)throw new Error("Invalid initializion order, runtimeChain is not available");this._initRegistry(o,s,n,a);let u={counter:0,lastBlockHash:e,metadata:a,registry:o,runtimeVersion:n};return this.__internal__registries.push(u),u}_cacheBlockRegistryProgress(e,r){let n=this.__internal__waitingRegistries[e];return Qe(n)&&(n=this.__internal__waitingRegistries[e]=new Promise((o,a)=>{r().then(s=>{delete this.__internal__waitingRegistries[e],o(s)}).catch(s=>{delete this.__internal__waitingRegistries[e],a(s)})})),n}_getBlockRegistryViaVersion(e,r){if(r){let n=this.__internal__registries.find(({runtimeVersion:{specName:o,specVersion:a}})=>o.eq(r.specName)&&a.eq(r.specVersion));if(n)return n.counter++,n.lastBlockHash=e,n}return null}async _getBlockRegistryViaHash(e){if(!this._genesisHash||!this._runtimeVersion)throw new Error("Cannot retrieve data on an uninitialized chain");let r=this.registry.createType("HeaderPartial",this._genesisHash.eq(e)?{number:Lt,parentHash:this._genesisHash}:await jn(this._rpcCore.chain.getHeader.raw(e)));if(r.parentHash.isEmpty)throw new Error("Unable to retrieve header and parent from supplied hash");let[n,o]=LS(this._genesisHash,r.number),a=this.registry.createType("RuntimeVersionPartial",mF&&n&&(o||n.specVersion.eq(this._runtimeVersion.specVersion))?{apis:n.apis,specName:this._runtimeVersion.specName,specVersion:n.specVersion}:await jn(this._rpcCore.state.getRuntimeVersion.raw(r.parentHash)));return this._getBlockRegistryViaVersion(e,a)||await this._cacheBlockRegistryProgress(a.toHex(),()=>this._createBlockRegistry(e,r,a))}async getBlockRegistry(e,r){return this.__internal__registries.find(({lastBlockHash:n})=>n&&Lr(n,e))||this._getBlockRegistryViaVersion(e,r)||await this._cacheBlockRegistryProgress(Te(e),()=>this._getBlockRegistryViaHash(e))}async _loadMeta(){return this._isReady?!0:(this._unsubscribeUpdates(),[this._genesisHash,this._runtimeMetadata]=this._options.source?._isReady?await this._metaFromSource(this._options.source):await this._metaFromChain(this._options.metadata),this._initFromMeta(this._runtimeMetadata))}async _metaFromSource(e){this._extrinsicType=e.extrinsicVersion,this._runtimeChain=e.runtimeChain,this._runtimeVersion=e.runtimeVersion;let r=Object.keys(e.rpc),n=[];for(let o=0,a=r.length;othis._runtimeVersion?.specVersion.eq(e.specVersion)?q(!1):this._rpcCore.state.getMetadata().pipe(z(r=>{Ag.log(`Runtime version updated to spec=${e.specVersion.toString()}, tx=${e.transactionVersion.toString()}`),this._runtimeMetadata=r,this._runtimeVersion=e,this._rx.runtimeVersion=e;let n=this._getDefaultRegistry(),o=this._runtimeChain;if(!o)throw new Error("Invalid initializion order, runtimeChain is not available");return n.metadata=r,n.runtimeVersion=e,this._initRegistry(this.registry,o,e,r),this._injectMetadata(n,!0),!0})))).subscribe())}async _metaFromChain(e){let[r,n,o,a,s,u]=await Promise.all([jn(this._rpcCore.chain.getBlockHash(0)),jn(this._rpcCore.state.getRuntimeVersion()),jn(this._rpcCore.system.chain()),jn(this._rpcCore.system.properties()),jn(this._rpcCore.rpc.methods()),e?Promise.resolve(null):jn(this._rpcCore.state.getMetadata())]);this._runtimeChain=o,this._runtimeVersion=n,this._rx.runtimeVersion=n;let l=`${r.toHex()||"0x"}-${n.specVersion.toString()}`,h=u||(e?.[l]?new Li(this.registry,e[l]):await jn(this._rpcCore.state.getMetadata()));return this._initRegistry(this.registry,o,n,h,a),this._filterRpc(s.methods.map(xF),kg(this.registry,o,n.specName)),this._subscribeUpdates(),this.__internal__registries.length||this.__internal__registries.push({counter:0,isDefault:!0,metadata:h,registry:this.registry,runtimeVersion:n}),h.getUniqTypes(this._options.throwOnUnknown||!1),[r,h]}_initFromMeta(e){let r=this._runtimeVersion;if(!r)throw new Error("Invalid initializion order, runtimeVersion is not available");return this._extrinsicType=e.asLatest.extrinsic.version.toNumber(),this._rx.extrinsicType=this._extrinsicType,this._rx.genesisHash=this._genesisHash,this._rx.runtimeVersion=r,this._injectMetadata(this._getDefaultRegistry(),!0),this._rx.derive=this._decorateDeriveRx(this._rxDecorateMethod),this._derive=this._decorateDerive(this._decorateMethod),!0}_subscribeHealth(){this._unsubscribeHealth(),this.__internal__healthTimer=this.hasSubscriptions?setInterval(()=>{jn(this._rpcCore.system.health.raw()).catch(Fn)},hF):null}_unsubscribeHealth(){this.__internal__healthTimer&&(clearInterval(this.__internal__healthTimer),this.__internal__healthTimer=null)}_unsubscribeUpdates(){this.__internal__updateSub&&(this.__internal__updateSub.unsubscribe(),this.__internal__updateSub=null)}_unsubscribe(){this._unsubscribeHealth(),this._unsubscribeUpdates()}async __internal__onProviderConnect(){this._isConnected.next(!0),this.emit("connected");try{let e=this._options.initWasm===!1?!0:await g8(),r=await this._loadMeta();this._subscribeHealth(),r&&!this._isReady&&e&&(this._isReady=!0,this.emit("ready",this))}catch(e){let r=new Error(`FATAL: Unable to initialize the API: ${e.message}`);Ag.error(r),this.emit("error",r)}}__internal__onProviderDisconnect(){this._isConnected.next(!1),this._unsubscribe(),this.emit("disconnected")}__internal__onProviderError(e){this.emit("error",e)}};function Zn(t){if(t===void 0)throw new Error("Api interfaces needs to be initialized before using, wait for 'isReady'");return t}var w0=class extends g0{get call(){return Zn(this._call)}get consts(){return Zn(this._consts)}get derive(){return Zn(this._derive)}get errors(){return Zn(this._errors)}get events(){return Zn(this._events)}get extrinsicVersion(){return this._extrinsicType}get genesisHash(){return Zn(this._genesisHash)}get isConnected(){return this._isConnected.getValue()}get libraryInfo(){return`${uy.name} v${uy.version}`}get query(){return Zn(this._query)}get queryMulti(){return Zn(this._queryMulti)}get rpc(){return Zn(this._rpc)}get runtimeChain(){return Zn(this._runtimeChain)}get runtimeMetadata(){return Zn(this._runtimeMetadata)}get runtimeVersion(){return Zn(this._runtimeVersion)}get rx(){return Zn(this._rx)}get stats(){return this._rpcCore.stats}get type(){return this._type}get tx(){return Zn(this._extrinsics)}findCall(e){return d0(this.registry,e)}findError(e){return p0(this.registry,e)}};var v0=class extends w0{constructor(e={},r,n){super(e,r,n)}connect(){return this._rpcCore.connect()}disconnect(){return this._unsubscribe(),this._rpcCore.disconnect()}setSigner(e){this._rx.signer=e}async sign(e,r,{signer:n}={}){if(qe(e)){let o=n||this._rx.signer;if(!o?.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 o.signRaw(ne({type:"bytes"},r,{address:e}))).signature}return Te(e.sign(K(r.data)))}};var _0=class{__internal__allHasFired=!1;__internal__callback;__internal__fired=[];__internal__fns=[];__internal__isActive=!0;__internal__results=[];__internal__subscriptions=[];constructor(e,r){this.__internal__callback=r,this.__internal__subscriptions=e.map(async(n,o)=>{let[a,...s]=Array.isArray(n)?n:[n];return this.__internal__fired.push(!1),this.__internal__fns.push(a),a(...s,this._createCallback(o))})}_allHasFired(){return this.__internal__allHasFired||=this.__internal__fired.filter(e=>!e).length===0,this.__internal__allHasFired}_createCallback(e){return r=>{this.__internal__fired[e]=!0,this.__internal__results[e]=r,this._triggerUpdate()}}_triggerUpdate(){if(!(!this.__internal__isActive||!we(this.__internal__callback)||!this._allHasFired()))try{Promise.resolve(this.__internal__callback(this.__internal__results)).catch(Fn)}catch{}}unsubscribe(){this.__internal__isActive&&(this.__internal__isActive=!1,Promise.all(this.__internal__subscriptions.map(async e=>{try{let r=await e;we(r)&&r()}catch{}})).catch(()=>{}))}};function S0(t,e){let r=!1;return{reject:n=>(r||(r=!0,e(n)),Ii),resolve:n=>{r||(r=!0,t(n))}}}function bF(t,e){let r=t.slice(),n=t.length&&we(t[t.length-1])?r.pop():void 0;if(e&&!we(n))throw new Error("Expected a callback to be passed with subscriptions");return[r,n]}function yF(t,e){return new Promise((r,n)=>{let o=S0(r,n),a=t(...e).pipe(bn(s=>o.reject(s))).subscribe(s=>{o.resolve(s),No(()=>a.unsubscribe())})})}function gF(t,e,r){return new Promise((n,o)=>{let a=S0(n,o),s=t(...e).pipe(bn(u=>a.reject(u)),yn(()=>a.resolve(()=>s.unsubscribe()))).subscribe(u=>{No(()=>r(u))})})}function XS(t,e){let r=!!(e?.methodName&&e.methodName.includes("subscribe"));return function(...n){let[o,a]=bF(n,r);return a?gF(t,o,a):yF(e?.overrideNoSub||t,o)}}var bd=class t extends v0{__internal__isReadyPromise;__internal__isReadyOrErrorPromise;constructor(e){super(e,"promise",XS),this.__internal__isReadyPromise=new Promise(r=>{super.once("ready",()=>r(this))}),this.__internal__isReadyOrErrorPromise=new Promise((r,n)=>{let o=S0(r,n);super.once("ready",()=>o.resolve(this)),super.once("error",a=>o.reject(a))})}static create(e){let r=new t(e);return e&&e.throwOnConnect?r.isReadyOrError:(r.isReadyOrError.catch(Fn),r.isReady)}get isReady(){return this.__internal__isReadyPromise}get isReadyOrError(){return this.__internal__isReadyOrErrorPromise}clone(){return new t(ne({},this._options,{source:this}))}async combineLatest(e,r){let n=new _0(e,r);return()=>{n.unsubscribe()}}};var Og={nodeURL:["wss://testnet-rpc.cess.cloud/ws/","wss://testnet-rpc.cess.network/ws/"],keyringOption:{type:"sr25519",ss58Format:11330},gatewayURL:"http://deoss-pub-gateway.cess.cloud/",gatewayAddr:"cXhwBytXqrZLr1qM5NHJhCzEMckSTzNKw17ci2aHft6ETSQm9"};async function Ig(t){return new Promise(async(e,r)=>{for(let n of t)wF(n).then(o=>{o&&e(n)})})}async function wF(t){return new Promise(async(e,r)=>{console.log("connecting ",t);let n=new WebSocket(t);n.onopen=function(){console.log("connect success ",t),n.close(),e(!0)},n.onclose=function(){e(!1)},n.error=function(){e(!1)}})}async function GS(t=Og){let e=new Gu(t.keyringOption),r=t.nodeURL;Array.isArray(t.nodeURL)||(r=[t.nodeURL]);let n=await Ig(r);if(!n)return{api:null,keyring:e};let o=new ss(n);return{api:await bd.create({provider:o}),keyring:e}}function ZS(t){return new Promise(e=>{document.readyState==="complete"?e(t()):window.addEventListener("load",()=>e(t()))})}var T0=window;T0.injectedWeb3=T0.injectedWeb3||{};var vF=YS(),Wc=null;function YS(){return Object.values(T0.injectedWeb3).filter(({connect:t,enable:e})=>!!(t||e)).length!==0}function Vg(t){throw new Error(`${t}: web3Enable(originName) needs to be called before ${t}`)}function _F(t,e,r){return e.map(({address:n,genesisHash:o,name:a,type:s})=>({address:n.length===42?n:ni(tr(n),r),meta:{genesisHash:o,name:a,source:t},type:s}))}function SF(t,e,r){return t.filter(n=>(!n.type||!r||r.includes(n.type))&&(!n.genesisHash||!e||n.genesisHash===e))}function TF(t){return Promise.all(Object.entries(T0.injectedWeb3).map(([e,{connect:r,enable:n,version:o}])=>Promise.resolve().then(()=>r?r(t):n?n(t).then(a=>ne({name:e,version:o||"unknown"},a)):Promise.reject(new Error("No connect(..) or enable(...) hook found"))).catch(({message:a})=>{console.error(`Error initializing ${e}: ${a}`)}))).then(e=>e.filter(r=>!!r))}async function kF(t,e){return Wc?(await Wc).filter(({name:n})=>!e||e.includes(n)):Vg(t)}function k0(t,e=[]){if(!t)throw new Error("You must pass a name for your app to the web3Enable function");let r=e.length?Promise.all(e.map(n=>n().catch(()=>!1))):Promise.resolve([!0]);return Wc=ZS(()=>r.then(()=>TF(t).then(n=>n.map(o=>(o.accounts.subscribe||(o.accounts.subscribe=a=>(o.accounts.get().then(a).catch(console.error),()=>{})),o))).catch(()=>[]).then(n=>{let o=n.map(({name:a,version:s})=>`${a}/${s}`);return vF=YS(),console.info(`web3Enable: Enabled ${n.length} extension${n.length!==1?"s":""}: ${o.join(", ")}`),n}))),Wc}async function E0({accountType:t,extensions:e,genesisHash:r,ss58Format:n}={}){let o=[],a=await kF("web3Accounts",e);return(await Promise.all(a.map(async({accounts:u,name:l})=>{try{let h=await u.get();return _F(l,SF(h,r,t),n)}catch{return[]}}))).forEach(u=>{o.push(...u)}),console.info(`web3Accounts: Found ${o.length} address${o.length!==1?"es":""}`),o}async function Ng(t){if(!Wc)return Vg("web3FromSource");let e=await Wc,r=t&&e.find(({name:n})=>n===t);if(!r)throw new Error(`web3FromSource: Unable to find an injected ${t}`);return r}async function KS(t){if(!Wc)return Vg("web3FromAddress");let e=await E0(),r;if(t){let n=tr(t);r=e.find(o=>Lr(tr(o.address),n))}if(!r)throw new Error(`web3FromAddress: Unable to find injected ${t}`);return Ng(r.meta.source)}var bo=class{constructor(e,r,n=!1){this.api=e,this.keyring=r,this.debug=n}log=(...e)=>{this.debug&&console.log(...e)};error=(...e)=>{this.debug&&console.error(...e)};async submitTransaction(e){return new Promise(async(r,n)=>{let o=this.api,a;try{a=o.tx(e)}catch(s){n(s)}try{let s=await o.rpc.author.submitExtrinsic(a);r(s.toHex())}catch(s){n(s)}})}async signAndSend(e,r,n=null){return new Promise(async(o,a)=>{try{if((await k0("CESS dApp")).length===0)return a("no extension installed, or the user did not accept the authorization");let u=await KS(e);r.signAndSend(e,{signer:u.signer},l=>{try{if(n&&typeof n=="function"&&n(l),console.log("status.status.toJSON()",l.status.toJSON()),console.log("isFinalized",l.isFinalized),l.isFinalized){let h=r.hash.toHex();o({msg:"ok",data:h})}else console.log(l)}catch(h){console.log(h),a(h.message)}}).catch(l=>{a(l.message)})}catch(s){console.log(s),a(s.message)}})}async getAccountsFromWallet(){let e=await k0("cess"),r=await E0();return r.forEach(n=>{n.sourAddress=n.address,n.address=this.formatAccountId(n.address)}),r}async authSign(e,r){await k0("cess");let n=await E0();n.forEach(h=>{h.address=this.formatAccountId(h.address)});let o=n.find(h=>h.address==e);if(!o)return o=n[0],console.log("account not found:",n),{signU8A:null,signStr:null};let s=(await Ng(o.meta.source))?.signer?.signRaw;if(!s)return{signU8A:null,signStr:null};let{signature:u}=await s({address:o.address,data:nc(r),type:"bytes"});return{signU8A:jt(u),signStr:u}}formatAccountId(e){return!e||e.length==64?e:ni(e,11330)}};var gd=Qs(JS(),1),$S=Qs(QS(),1);function M0(t,e,r){return t.map(([n,o])=>{let a=n.args.map(l=>l.toHuman()),s=a[0],u=r?o.toJSON():o.toHuman();return a.length>0&&(u.ids=a),e?gd.default.assign(u,{key:s,sourceKey:n}):gd.default.assign(u,{key:s})})}function jc(t){let e=EF(t);return e.size+" "+e.ext}function EF(t){let e=gd.default.isString(t)?gd.default.toNumber(t):t,r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],n=0;for(;e>=1024&&n{r({nonce:o.toNumber(),free:a.free/1e18,reserved:a.reserved/1e18,frozen:a.frozen/1e18,flags:a.flags/1e18})})}};var O0=class extends bo{constructor(e,r,n=!1){super(e,r,n)}async authorityList(e){try{return{msg:"ok",data:(await this.api.query.oss.authorityList(e)).toJSON()}}catch(r){return console.error(r),{msg:"ok",errMsg:r.message,error:JSON.stringify(r)}}}authorize(e,r,n=null){let o=this.api.tx.oss.authorize(r);return this.signAndSend(e,o,n)}cancelAuthorize(e,r,n=null){let o=this.api.tx.oss.cancelAuthorize(r);return this.signAndSend(e,o,n)}};var{queryBlockHeight:oT}=(Hg(),fA(nT)),V0=class extends bo{constructor(e,r,n=!1){super(e,r,n)}async queryMyTerritorys(e){try{let r=await this.api.query.storageHandler.territory.entries(e),n=M0(r,!1,!0),o=await oT(this.api),a=[];return n.forEach(s=>{s.owner=s.ids[0],s.name=s.ids[1],s.key=s.token,delete s.token,delete s.ids,a.push(wd(s,o))}),{msg:"ok",data:a}}catch(r){return console.error(r),{msg:"ok",errMsg:r.message,error:JSON.stringify(r)}}}async queryTerritoryInfo(e,r){try{let o=(await this.api.query.storageHandler.territory(e,r)).toJSON();o.owner=e,o.name=r,o.key=o.token;let a=await oT(this.api);return o=wd(o,a),{msg:"ok",data:o}}catch(n){return console.error(n),{msg:"ok",errMsg:n.message,error:JSON.stringify(n)}}}async createTerritory(e,r,n,o=30,a=null){if(o<30)throw"Not less than 30 days";let s=this.api.tx.storageHandler.mintTerritory(n,r,o);return await this.signAndSend(e,s,a)}async expandingTerritory(e,r,n,o=null){let a=this.api.tx.storageHandler.expandingTerritory(r,n);return await this.signAndSend(e,a,o)}async renewalTerritory(e,r,n=30,o=null){let a=this.api.tx.storageHandler.renewalTerritory(r,n);return await this.signAndSend(e,a,o)}async renameTerritory(e,r,n,o=null){let a=this.api.tx.storageHandler.territoryRename(r,n);return await this.signAndSend(e,a,o)}async reactivateTerritory(e,r,n=30,o=null){let a=this.api.tx.storageHandler.reactivateTerritory(r,n);return await this.signAndSend(e,a,o)}};var N0=class extends bo{constructor(e,r,n=!1){super(e,r,n)}async queryBucketNames(e){try{return await this.api.isReady,{msg:"ok",data:(await this.api.query.fileBank.userBucketList(e)).toHuman()}}catch(r){return console.error(r),{msg:"ok",errMsg:r.message,error:JSON.stringify(r)}}}async queryBucketList(e){try{await this.api.isReady;let r=await this.api.query.fileBank.bucket.entries(e),n=M0(r,!1,!1);return n.forEach(o=>{o.key=o.ids[1],delete o.ids,delete o.authority}),{msg:"ok",data:n}}catch(r){return console.error(r),{msg:"ok",errMsg:r.message,error:JSON.stringify(r)}}}async queryBucketInfo(e,r){try{return await this.api.isReady,{msg:"ok",data:(await this.api.query.fileBank.bucket(e,r)).toJSON()}}catch(n){return console.error(n),{msg:"ok",errMsg:n.message,error:JSON.stringify(n)}}}async createBucket(e,r,n=null){await this.api.isReady;let o=this.api.tx.fileBank.createBucket(e,r);return await this.signAndSend(e,o,n)}async deleteBucket(e,r,n=null){await this.api.isReady;let o=this.api.tx.fileBank.deleteBucket(e,r);return await this.signAndSend(e,o,n)}};Hg();var C0=1024*1024;function iT(t,e,r){return new Promise(async(n,o)=>{try{r("Connecting \u2026",t);let s=await(await fetch(t,{method:"GET",headers:{Operation:"download",Account:"cXh5StobuVP4B7mGH9xn8dSsDtXks4qLAou8ZdkZ6DbB6zzxe"},responseType:"blob"})).blob();e=e.split("\\").join("/");let u=e.split("/").slice(-1);u=u[0],zF(s,u),n({msg:"ok",data:e})}catch(a){r(a),o(a.message)}})}async function aT(t,e,r,n,o,a=0){let s=e.size,u="uploading",l=Math.ceil(s/C0);r.BlockNumber=l;let h={msg:""};for(let y=a;y1024&&(G=G/1024,J="MB/s"),G=G.toFixed(1),o({percentComplete:B,speed:G,speedUnit:J,xhr:{abort:()=>{u="abort"},pause:()=>{u="pause",console.log("pausing..")},resume:()=>{u="uploading"}}})}return h}function DF(t,e,r,n,o){return new Promise(async(a,s)=>{let u=e.slice(n,o),l=new FormData;l.append("file",u);let h=new XMLHttpRequest;h.open("PUT",t,!0),Object.keys(r).forEach(y=>{h.setRequestHeader(y,r[y])}),h.onload=function(){let y="response"in h?h.response:h.responseText;h.status===200?a({msg:"ok",data:y}):a({msg:y||h.statusText})},h.onerror=function(y){a({msg:y.response?.data||y.message})},h.send(l)})}function zF(t,e){if(t instanceof Blob||(t=arrayBufferToBlob(t)),typeof window<"u"){let r=document.createElement("a");r.href=window?.URL?.createObjectURL(t),r.download=e,document.body.appendChild(r),r.click(),r.remove(),window?.URL?.revokeObjectURL(t)}}var sT=Qs(Bg(),1);var B0=class extends bo{constructor(e,r,n="http://deoss-pub-gateway.cess.cloud/",o=!1){super(e,r,o),this.gatewayURL=n}async queryFileListFull(e){try{let r=await this.queryFileList(e);if(r.msg!=="ok")return r;for(let n of r.data){let o=await this.queryFileMetadata(n.fileHash);if(o.msg==="ok"){let a=o.data.owner.find(s=>s.user==e);a&&(n.fileName=a.fileName,n.bucketName=a.bucketName),n.fileSize=o.data.fileSize,n.fileSizeStr=jc(o.data.fileSize),n.stat=o.data.stat}}return r}catch(r){return console.error(r),{msg:"ok",errMsg:r.message,error:JSON.stringify(r)}}}async queryFileList(e){try{let r=await this.api.query.fileBank.userHoldFileList(e),n=r.toHuman(),o=r.toJSON();return o.forEach((a,s)=>{a.fileHash=n[s].fileHash,a.fileConsumeSpace=a.fileSize,a.fileConsumeSpaceStr=jc(a.fileSize)}),{msg:"ok",data:o}}catch(r){return console.error(r),{msg:"ok",errMsg:r.message,error:JSON.stringify(r)}}}async queryFileMetadata(e){try{let r=await this.api.query.fileBank.file(e),n=r.toHuman(),o=r.toJSON();if(console.log("======in there======",{ret:r,hu:n,data:o}),o&&o.owner&&o.owner.length>0)for(let a=0;acess-js-sdk-frontend-"+new Date().valueOf()+"";let{signU8A:V}=await this.authSign(e,s);if(!V)return{msg:"sign error"};u=sT.default.encode(V)}if(!u)return console.log("sign error"),{msg:"sign error"};let y={Territory:n,Bucket:o,Account:e,Message:s,Signature:u,FileName:encodeURIComponent(r.name),TotalSize:r.size};return l&&(y.ACC=l),h&&(y.ETHACC=h),console.log("upload by chunk to ",this.gatewayURL),await aT(this.gatewayURL,r,y,this.log,a)}catch(y){return console.log(y),{msg:"error",error:y}}}async downloadFile(e,r){let n=this.gatewayURL+e;return await iT(n,r,this.log)}async deleteFile(e,r,n=null){let o=this.api.tx.fileBank.deleteFile(e,r);return await this.signAndSend(e,o,n)}};export{O0 as Authorize,N0 as Bucket,A0 as Common,B0 as File,GS as InitAPI,V0 as Territory,Og as defaultConfig}; /*! Bundled license information: lodash/lodash.js: diff --git a/src/util/formatter.js b/src/util/formatter.js index 257fc43..be0fac5 100644 --- a/src/util/formatter.js +++ b/src/util/formatter.js @@ -99,6 +99,7 @@ const SECS_IN_DAY = 60 * 60 * 24; const BLOCK_TIME = 6; // in seconds function formatSpaceInfo(obj, blockHeight) { const result = { ...obj }; + result.currBlockHeight = blockHeight; result.totalSpaceGib = 0; result.totalSpaceStr = "0 GB";