@metamask/browser-playground 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3 @@
1
+ /*! For license information please see main.e41514ec.js.LICENSE.txt */
2
+ (()=>{var e={61:(e,t,n)=>{"use strict";const r=n(8116);e.exports=(e,t,n)=>0===r(e,t,n)},191:(e,t,n)=>{"use strict";function r(e){let{dir:t="left"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="string"===typeof e?e.replace("0x",""):e,r=0;for(let i=0;i<n.length-1&&"0"===n["left"===t?i:n.length-i-1].toString();i++)r++;return n="left"===t?n.slice(r):n.slice(0,n.length-r),"string"===typeof e?(1===n.length&&"right"===t&&(n="".concat(n,"0")),"0x".concat(n.length%2===1?"0".concat(n):n)):n}n.d(t,{B:()=>r})},223:(e,t,n)=>{"use strict";const r=n(6007);e.exports=(e,t,n)=>r(e,t,">",n)},226:(e,t,n)=>{"use strict";function r(e){let{strict:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!!e&&("string"===typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")))}n.d(t,{q:()=>r})},488:e=>{e.exports=function(e){if("string"!==typeof e)throw new Error("[is-hex-prefixed] value must be type 'string', is currently type "+typeof e+", while checking isHexPrefixed.");return"0x"===e.slice(0,2)}},509:(e,t,n)=>{"use strict";var r=n(2176),i=n(1693);var o="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},s=i.useSyncExternalStore,a=r.useRef,c=r.useEffect,l=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=a(null);if(null===d.current){var h={hasValue:!1,value:null};d.current=h}else h=d.current;d=l(function(){function e(e){if(!c){if(c=!0,s=e,e=r(e),void 0!==i&&h.hasValue){var t=h.value;if(i(t,e))return a=t}return a=e}if(t=a,o(s,e))return t;var n=r(e);return void 0!==i&&i(t,n)?(s=e,t):(s=e,a=n)}var s,a,c=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,n,r,i]);var f=s(e,d[0],d[1]);return c(function(){h.hasValue=!0,h.value=f},[f]),u(f),f}},593:(e,t,n)=>{"use strict";const r=n(5544);e.exports=(e,t,n)=>{const i=new r(e,n),o=new r(t,n);return i.compare(o)||i.compareBuild(o)}},621:(e,t,n)=>{"use strict";n.d(t,{Ej:()=>a,T1:()=>s,YP:()=>c});var r=n(9740),i=n(2867),o=n(1099);function s(e,t){return c(e,"pattern",n=>t.test(n)||"Expected a ".concat(e.type," matching `/").concat(t.source,'/` but received "').concat(n,'"'))}function a(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;const r="Expected a ".concat(e.type),i=t===n?"of `".concat(t,"`"):"between `".concat(t,"` and `").concat(n,"`");return c(e,"size",e=>{if("number"===typeof e||e instanceof Date)return t<=e&&e<=n||"".concat(r," ").concat(i," but received `").concat(e,"`");if(e instanceof Map||e instanceof Set){const{size:o}=e;return t<=o&&o<=n||"".concat(r," with a size ").concat(i," but received one with a size of `").concat(o,"`")}const{length:o}=e;return t<=o&&o<=n||"".concat(r," with a length ").concat(i," but received one with a length of `").concat(o,"`")})}function c(e,t,n){return new i._k((0,r.A)((0,r.A)({},e),{},{*refiner(i,s){yield*e.refiner(i,s);const a=n(i,s),c=(0,o.RF)(a,s,e,i);for(const e of c)yield(0,r.A)((0,r.A)({},e),{},{refinement:t})}}))}},625:(e,t,n)=>{"use strict";function r(e){return"string"===typeof e?{address:e,type:"json-rpc"}:e}n.d(t,{J:()=>r})},764:(e,t,n)=>{"use strict";n.d(t,{$:()=>i});var r=n(7663);const i=e=>(0,r.nW)(e)?{namespace:e}:(0,r.K4)(e)?(0,r.rW)(e):{}},784:(e,t,n)=>{"use strict";const r=n(5544),i=n(1227);e.exports=(e,t,n)=>{let o=null,s=null,a=null;try{a=new i(t,n)}catch(c){return null}return e.forEach(e=>{a.test(e)&&(o&&-1!==s.compare(e)||(o=e,s=new r(o,n)))}),o}},804:(e,t,n)=>{"use strict";const r=n(8116);e.exports=(e,t,n)=>r(e,t,n)<=0},812:(e,t,n)=>{"use strict";e.exports=n(7950)},817:(e,t,n)=>{"use strict";const r=n(5544);e.exports=(e,t)=>new r(e,t).patch},882:(e,t,n)=>{"use strict";var r;n.d(t,{v4:()=>d});var i=new Uint8Array(16);function o(){if(!r&&!(r="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)}const s=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const a=function(e){return"string"===typeof e&&s.test(e)};for(var c=[],l=0;l<256;++l)c.push((l+256).toString(16).substr(1));const u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase();if(!a(n))throw TypeError("Stringified UUID is invalid");return n};const d=function(e,t,n){var r=(e=e||{}).random||(e.rng||o)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return u(r)}},929:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SHA224:()=>m,SHA256:()=>p,SHA384:()=>x,SHA512:()=>_,SHA512_224:()=>E,SHA512_256:()=>S,sha224:()=>C,sha256:()=>P,sha384:()=>M,sha512:()=>I,sha512_224:()=>O,sha512_256:()=>T});var r=n(2766);function i(e,t,n){return e&t^~e&n}function o(e,t,n){return e&t^e&n^t&n}class s extends r.Vw{constructor(e,t,n,i){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=i,this.buffer=new Uint8Array(e),this.view=(0,r.O8)(this.buffer)}update(e){(0,r.CC)(this),e=(0,r.ZJ)(e),(0,r.DO)(e);const{view:t,buffer:n,blockLen:i}=this,o=e.length;for(let s=0;s<o;){const a=Math.min(i-this.pos,o-s);if(a===i){const t=(0,r.O8)(e);for(;i<=o-s;s+=i)this.process(t,s);continue}n.set(e.subarray(s,s+a),this.pos),this.pos+=a,s+=a,this.pos===i&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,r.CC)(this),(0,r.Ht)(e,this),this.finished=!0;const{buffer:t,view:n,blockLen:i,isLE:o}=this;let{pos:s}=this;t[s++]=128,(0,r.uH)(this.buffer.subarray(s)),this.padOffset>i-s&&(this.process(n,0),s=0);for(let r=s;r<i;r++)t[r]=0;!function(e,t,n,r){if("function"===typeof e.setBigUint64)return e.setBigUint64(t,n,r);const i=BigInt(32),o=BigInt(4294967295),s=Number(n>>i&o),a=Number(n&o),c=r?4:0,l=r?0:4;e.setUint32(t+c,s,r),e.setUint32(t+l,a,r)}(n,i-8,BigInt(8*this.length),o),this.process(n,0);const a=(0,r.O8)(e),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const l=c/4,u=this.get();if(l>u.length)throw new Error("_sha2: outputLen bigger than state");for(let r=0;r<l;r++)a.setUint32(4*r,u[r],o)}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const n=e.slice(0,t);return this.destroy(),n}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:t,buffer:n,length:r,finished:i,destroyed:o,pos:s}=this;return e.destroyed=o,e.finished=i,e.length=r,e.pos=s,r%t&&e.buffer.set(n),e}clone(){return this._cloneInto()}}const a=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),c=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),l=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),u=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]);var d=n(4543);const h=Uint32Array.from([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]),f=new Uint32Array(64);class p extends s{constructor(){super(64,arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,8,!1),this.A=0|a[0],this.B=0|a[1],this.C=0|a[2],this.D=0|a[3],this.E=0|a[4],this.F=0|a[5],this.G=0|a[6],this.H=0|a[7]}get(){const{A:e,B:t,C:n,D:r,E:i,F:o,G:s,H:a}=this;return[e,t,n,r,i,o,s,a]}set(e,t,n,r,i,o,s,a){this.A=0|e,this.B=0|t,this.C=0|n,this.D=0|r,this.E=0|i,this.F=0|o,this.G=0|s,this.H=0|a}process(e,t){for(let r=0;r<16;r++,t+=4)f[r]=e.getUint32(t,!1);for(let i=16;i<64;i++){const e=f[i-15],t=f[i-2],n=(0,r.Ow)(e,7)^(0,r.Ow)(e,18)^e>>>3,o=(0,r.Ow)(t,17)^(0,r.Ow)(t,19)^t>>>10;f[i]=o+f[i-7]+n+f[i-16]|0}let{A:n,B:s,C:a,D:c,E:l,F:u,G:d,H:p}=this;for(let m=0;m<64;m++){const e=p+((0,r.Ow)(l,6)^(0,r.Ow)(l,11)^(0,r.Ow)(l,25))+i(l,u,d)+h[m]+f[m]|0,t=((0,r.Ow)(n,2)^(0,r.Ow)(n,13)^(0,r.Ow)(n,22))+o(n,s,a)|0;p=d,d=u,u=l,l=c+e|0,c=a,a=s,s=n,n=e+t|0}n=n+this.A|0,s=s+this.B|0,a=a+this.C|0,c=c+this.D|0,l=l+this.E|0,u=u+this.F|0,d=d+this.G|0,p=p+this.H|0,this.set(n,s,a,c,l,u,d,p)}roundClean(){(0,r.uH)(f)}destroy(){this.set(0,0,0,0,0,0,0,0),(0,r.uH)(this.buffer)}}class m extends p{constructor(){super(28),this.A=0|c[0],this.B=0|c[1],this.C=0|c[2],this.D=0|c[3],this.E=0|c[4],this.F=0|c[5],this.G=0|c[6],this.H=0|c[7]}}const g=(()=>d.lD(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))))(),y=(()=>g[0])(),b=(()=>g[1])(),v=new Uint32Array(80),w=new Uint32Array(80);class _ extends s{constructor(){super(128,arguments.length>0&&void 0!==arguments[0]?arguments[0]:64,16,!1),this.Ah=0|u[0],this.Al=0|u[1],this.Bh=0|u[2],this.Bl=0|u[3],this.Ch=0|u[4],this.Cl=0|u[5],this.Dh=0|u[6],this.Dl=0|u[7],this.Eh=0|u[8],this.El=0|u[9],this.Fh=0|u[10],this.Fl=0|u[11],this.Gh=0|u[12],this.Gl=0|u[13],this.Hh=0|u[14],this.Hl=0|u[15]}get(){const{Ah:e,Al:t,Bh:n,Bl:r,Ch:i,Cl:o,Dh:s,Dl:a,Eh:c,El:l,Fh:u,Fl:d,Gh:h,Gl:f,Hh:p,Hl:m}=this;return[e,t,n,r,i,o,s,a,c,l,u,d,h,f,p,m]}set(e,t,n,r,i,o,s,a,c,l,u,d,h,f,p,m){this.Ah=0|e,this.Al=0|t,this.Bh=0|n,this.Bl=0|r,this.Ch=0|i,this.Cl=0|o,this.Dh=0|s,this.Dl=0|a,this.Eh=0|c,this.El=0|l,this.Fh=0|u,this.Fl=0|d,this.Gh=0|h,this.Gl=0|f,this.Hh=0|p,this.Hl=0|m}process(e,t){for(let d=0;d<16;d++,t+=4)v[d]=e.getUint32(t),w[d]=e.getUint32(t+=4);for(let y=16;y<80;y++){const e=0|v[y-15],t=0|w[y-15],n=d.rE(e,t,1)^d.rE(e,t,8)^d.xn(e,t,7),r=d.ry(e,t,1)^d.ry(e,t,8)^d.jm(e,t,7),i=0|v[y-2],o=0|w[y-2],s=d.rE(i,o,19)^d.qh(i,o,61)^d.xn(i,o,6),a=d.ry(i,o,19)^d.Ei(i,o,61)^d.jm(i,o,6),c=d.CW(r,a,w[y-7],w[y-16]),l=d.CQ(c,n,s,v[y-7],v[y-16]);v[y]=0|l,w[y]=0|c}let{Ah:n,Al:r,Bh:i,Bl:o,Ch:s,Cl:a,Dh:c,Dl:l,Eh:u,El:h,Fh:f,Fl:p,Gh:m,Gl:g,Hh:_,Hl:x}=this;for(let A=0;A<80;A++){const e=d.rE(u,h,14)^d.rE(u,h,18)^d.qh(u,h,41),t=d.ry(u,h,14)^d.ry(u,h,18)^d.Ei(u,h,41),k=u&f^~u&m,E=h&p^~h&g,S=d.F8(x,t,E,b[A],w[A]),P=d.TH(S,_,e,k,y[A],v[A]),C=0|S,I=d.rE(n,r,28)^d.qh(n,r,34)^d.qh(n,r,39),M=d.ry(n,r,28)^d.Ei(n,r,34)^d.Ei(n,r,39),T=n&i^n&s^i&s,O=r&o^r&a^o&a;_=0|m,x=0|g,m=0|f,g=0|p,f=0|u,p=0|h,({h:u,l:h}=d.WQ(0|c,0|l,0|P,0|C)),c=0|s,l=0|a,s=0|i,a=0|o,i=0|n,o=0|r;const R=d.Vl(C,M,O);n=d.Vr(R,P,I,T),r=0|R}({h:n,l:r}=d.WQ(0|this.Ah,0|this.Al,0|n,0|r)),({h:i,l:o}=d.WQ(0|this.Bh,0|this.Bl,0|i,0|o)),({h:s,l:a}=d.WQ(0|this.Ch,0|this.Cl,0|s,0|a)),({h:c,l:l}=d.WQ(0|this.Dh,0|this.Dl,0|c,0|l)),({h:u,l:h}=d.WQ(0|this.Eh,0|this.El,0|u,0|h)),({h:f,l:p}=d.WQ(0|this.Fh,0|this.Fl,0|f,0|p)),({h:m,l:g}=d.WQ(0|this.Gh,0|this.Gl,0|m,0|g)),({h:_,l:x}=d.WQ(0|this.Hh,0|this.Hl,0|_,0|x)),this.set(n,r,i,o,s,a,c,l,u,h,f,p,m,g,_,x)}roundClean(){(0,r.uH)(v,w)}destroy(){(0,r.uH)(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class x extends _{constructor(){super(48),this.Ah=0|l[0],this.Al=0|l[1],this.Bh=0|l[2],this.Bl=0|l[3],this.Ch=0|l[4],this.Cl=0|l[5],this.Dh=0|l[6],this.Dl=0|l[7],this.Eh=0|l[8],this.El=0|l[9],this.Fh=0|l[10],this.Fl=0|l[11],this.Gh=0|l[12],this.Gl=0|l[13],this.Hh=0|l[14],this.Hl=0|l[15]}}const A=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),k=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]);class E extends _{constructor(){super(28),this.Ah=0|A[0],this.Al=0|A[1],this.Bh=0|A[2],this.Bl=0|A[3],this.Ch=0|A[4],this.Cl=0|A[5],this.Dh=0|A[6],this.Dl=0|A[7],this.Eh=0|A[8],this.El=0|A[9],this.Fh=0|A[10],this.Fl=0|A[11],this.Gh=0|A[12],this.Gl=0|A[13],this.Hh=0|A[14],this.Hl=0|A[15]}}class S extends _{constructor(){super(32),this.Ah=0|k[0],this.Al=0|k[1],this.Bh=0|k[2],this.Bl=0|k[3],this.Ch=0|k[4],this.Cl=0|k[5],this.Dh=0|k[6],this.Dl=0|k[7],this.Eh=0|k[8],this.El=0|k[9],this.Fh=0|k[10],this.Fl=0|k[11],this.Gh=0|k[12],this.Gl=0|k[13],this.Hh=0|k[14],this.Hl=0|k[15]}}const P=(0,r.qj)(()=>new p),C=(0,r.qj)(()=>new m),I=(0,r.qj)(()=>new _),M=(0,r.qj)(()=>new x),T=(0,r.qj)(()=>new S),O=(0,r.qj)(()=>new E)},948:(e,t,n)=>{e.exports=function(e){function t(e){let n,i,o,s=null;function a(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];if(!a.enabled)return;const o=a,s=Number(new Date),c=s-(n||s);o.diff=c,o.prev=n,o.curr=s,n=s,r[0]=t.coerce(r[0]),"string"!==typeof r[0]&&r.unshift("%O");let l=0;r[0]=r[0].replace(/%([a-zA-Z%])/g,(e,n)=>{if("%%"===e)return"%";l++;const i=t.formatters[n];if("function"===typeof i){const t=r[l];e=i.call(o,t),r.splice(l,1),l--}return e}),t.formatArgs.call(o,r);(o.log||t.log).apply(o,r)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=r,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{s=e}}),"function"===typeof t.init&&t.init(a),a}function r(e,n){const r=t(this.namespace+("undefined"===typeof n?":":n)+e);return r.log=this.log,r}function i(e,t){let n=0,r=0,i=-1,o=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||"*"===t[r]))"*"===t[r]?(i=r,o=n,r++):(n++,r++);else{if(-1===i)return!1;r=i+1,o++,n=o}for(;r<t.length&&"*"===t[r];)r++;return r===t.length}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"===typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const r of n)"-"===r[0]?t.skips.push(r.slice(1)):t.names.push(r)},t.enabled=function(e){for(const n of t.skips)if(i(e,n))return!1;for(const n of t.names)if(i(e,n))return!0;return!1},t.humanize=n(9405),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},982:(e,t,n)=>{var r=n(1240);e.exports=r("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},1099:(e,t,n)=>{"use strict";n.d(t,{Gv:()=>i,RF:()=>c,eF:()=>l,jT:()=>s,yy:()=>o});var r=n(9740);function i(e){return"object"===typeof e&&null!==e}function o(e){return"symbol"===typeof e?e.toString():"string"===typeof e?JSON.stringify(e):"".concat(e)}function s(e){const{done:t,value:n}=e.next();return t?void 0:n}function a(e,t,n,i){if(!0===e)return;!1===e?e={}:"string"===typeof e&&(e={message:e});const{path:s,branch:a}=t,{type:c}=n,{refinement:l,message:u="Expected a value of type `".concat(c,"`").concat(l?" with refinement `".concat(l,"`"):"",", but received: `").concat(o(i),"`")}=e;return(0,r.A)((0,r.A)({value:i,type:c,refinement:l,key:s[s.length-1],path:s,branch:a},e),{},{message:u})}function*c(e,t,n,r){(function(e){return i(e)&&"function"===typeof e[Symbol.iterator]})(e)||(e=[e]);for(const i of e){const e=a(i,t,n,r);e&&(yield e)}}function l(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function*(){const{path:r=[],branch:o=[e],coerce:s=!1,mask:a=!1}=n,c={path:r,branch:o};if(s&&(e=t.coercer(e,c),a&&"type"!==t.type&&i(t.schema)&&i(e)&&!Array.isArray(e)))for(const n in e)void 0===t.schema[n]&&delete e[n];let u="valid";for(const i of t.validator(e,c))i.explanation=n.message,u="not_valid",yield[i,void 0];for(let[d,h,f]of t.entries(e,c)){const t=l(h,f,{path:void 0===d?r:[...r,d],branch:void 0===d?o:[...o,h],coerce:s,mask:a,message:n.message});for(const n of t)n[0]?(u=null===n[0].refinement||void 0===n[0].refinement?"not_valid":"not_refined",yield[n[0],void 0]):s&&(h=n[1],void 0===d?e=h:e instanceof Map?e.set(d,h):e instanceof Set?e.add(h):i(e)&&(void 0!==h||d in e)&&(e[d]=h))}if("not_valid"!==u)for(const i of t.refiner(e,c))i.explanation=n.message,u="not_refined",yield[i,void 0];"valid"===u&&(yield[void 0,e])}()}},1129:e=>{"use strict";const t=2147483647,n=36,r=/^xn--/,i=/[^\0-\x7E]/,o=/[\x2E\u3002\uFF0E\uFF61]/g,s={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},a=Math.floor,c=String.fromCharCode;function l(e){throw new RangeError(s[e])}function u(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]);const i=function(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}((e=e.replace(o,".")).split("."),t).join(".");return r+i}function d(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&i)<<10)+(1023&r)+65536):(t.push(i),n--)}else t.push(i)}return t}const h=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:n},f=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},p=function(e,t,r){let i=0;for(e=r?a(e/700):e>>1,e+=a(e/t);e>455;i+=n)e=a(e/35);return a(i+36*e/(e+38))},m=function(e){const r=[],i=e.length;let o=0,s=128,c=72,u=e.lastIndexOf("-");u<0&&(u=0);for(let t=0;t<u;++t)e.charCodeAt(t)>=128&&l("not-basic"),r.push(e.charCodeAt(t));for(let d=u>0?u+1:0;d<i;){let u=o;for(let r=1,s=n;;s+=n){d>=i&&l("invalid-input");const u=h(e.charCodeAt(d++));(u>=n||u>a((t-o)/r))&&l("overflow"),o+=u*r;const f=s<=c?1:s>=c+26?26:s-c;if(u<f)break;const p=n-f;r>a(t/p)&&l("overflow"),r*=p}const f=r.length+1;c=p(o-u,f,0==u),a(o/f)>t-s&&l("overflow"),s+=a(o/f),o%=f,r.splice(o++,0,s)}return String.fromCodePoint(...r)},g=function(e){const r=[];let i=(e=d(e)).length,o=128,s=0,u=72;for(const t of e)t<128&&r.push(c(t));let h=r.length,m=h;for(h&&r.push("-");m<i;){let i=t;for(const t of e)t>=o&&t<i&&(i=t);const d=m+1;i-o>a((t-s)/d)&&l("overflow"),s+=(i-o)*d,o=i;for(const g of e)if(g<o&&++s>t&&l("overflow"),g==o){let e=s;for(let t=n;;t+=n){const i=t<=u?1:t>=u+26?26:t-u;if(e<i)break;const o=e-i,s=n-i;r.push(c(f(i+o%s,0))),e=a(o/s)}r.push(c(f(e,0))),u=p(s,d,m==h),s=0,++m}++s,++o}return r.join("")},y={version:"2.1.0",ucs2:{decode:d,encode:e=>String.fromCodePoint(...e)},decode:m,encode:g,toASCII:function(e){return u(e,function(e){return i.test(e)?"xn--"+g(e):e})},toUnicode:function(e){return u(e,function(e){return r.test(e)?m(e.slice(4).toLowerCase()):e})}};e.exports=y},1187:(e,t,n)=>{"use strict";n.d(t,{n:()=>v});var r=n(9740),i=n(1588),o=n(6961),s=n(2470),a=n(1478),c=n(2129),l=n(191),u=n(6469),d=n(6091),h=n(4456);function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"undefined"!==typeof t.size&&(0,d.Sl)(e,{size:t.size});const n=(0,h.My)(e,t);return(0,d.uU)(n,t)}function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e;if("undefined"!==typeof t.size&&((0,d.Sl)(n,{size:t.size}),n=(0,l.B)(n)),n.length>1||n[0]>1)throw new u.xO(n);return Boolean(n[0])}function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"undefined"!==typeof t.size&&(0,d.Sl)(e,{size:t.size});const n=(0,h.My)(e,t);return(0,d.ME)(n,t)}function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e;return"undefined"!==typeof t.size&&((0,d.Sl)(n,{size:t.size}),n=(0,l.B)(n,{dir:"right"})),(new TextDecoder).decode(n)}var y=n(3530),b=n(5210);function v(e,t){const n="string"===typeof t?(0,y.aT)(t):t,r=(0,s.l)(n);if(0===(0,a.E)(n)&&e.length>0)throw new i.O;if((0,a.E)(t)&&(0,a.E)(t)<32)throw new i.Iy({data:"string"===typeof t?t:(0,h.My)(t),params:e,size:(0,a.E)(t)});let o=0;const c=[];for(let i=0;i<e.length;++i){const t=e[i];r.setPosition(o);const[n,s]=w(r,t,{staticPosition:0});o+=s,c.push(n)}return c}function w(e,t,n){let{staticPosition:s}=n;const a=(0,b.k)(t.type);if(a){const[n,i]=a;return function(e,t,n){let{length:r,staticPosition:i}=n;if(!r){const n=i+m(e.readBytes(x)),r=n+_;e.setPosition(n);const o=m(e.readBytes(_)),s=A(t);let a=0;const c=[];for(let i=0;i<o;++i){e.setPosition(r+(s?32*i:a));const[n,o]=w(e,t,{staticPosition:r});a+=o,c.push(n)}return e.setPosition(i+32),[c,32]}if(A(t)){const n=i+m(e.readBytes(x)),o=[];for(let i=0;i<r;++i){e.setPosition(n+32*i);const[r]=w(e,t,{staticPosition:n});o.push(r)}return e.setPosition(i+32),[o,32]}let o=0;const s=[];for(let a=0;a<r;++a){const[n,r]=w(e,t,{staticPosition:i+o});o+=r,s.push(n)}return[s,o]}(e,(0,r.A)((0,r.A)({},t),{},{type:i}),{length:n,staticPosition:s})}if("tuple"===t.type)return function(e,t,n){let{staticPosition:r}=n;const i=0===t.components.length||t.components.some(e=>{let{name:t}=e;return!t}),o=i?[]:{};let s=0;if(A(t)){const n=r+m(e.readBytes(x));for(let r=0;r<t.components.length;++r){const a=t.components[r];e.setPosition(n+s);const[c,l]=w(e,a,{staticPosition:n});s+=l,o[i?r:null===a||void 0===a?void 0:a.name]=c}return e.setPosition(r+32),[o,32]}for(let a=0;a<t.components.length;++a){const n=t.components[a],[c,l]=w(e,n,{staticPosition:r});o[i?a:null===n||void 0===n?void 0:n.name]=c,s+=l}return[o,s]}(e,t,{staticPosition:s});if("address"===t.type)return function(e){const t=e.readBytes(32);return[(0,o.o)((0,h.My)((0,c.A1)(t,-20))),32]}(e);if("bool"===t.type)return function(e){return[p(e.readBytes(32),{size:32}),32]}(e);if(t.type.startsWith("bytes"))return function(e,t,n){let{staticPosition:r}=n;const[i,o]=t.type.split("bytes");if(!o){const t=m(e.readBytes(32));e.setPosition(r+t);const n=m(e.readBytes(32));if(0===n)return e.setPosition(r+32),["0x",32];const i=e.readBytes(n);return e.setPosition(r+32),[(0,h.My)(i),32]}const s=(0,h.My)(e.readBytes(Number.parseInt(o,10),32));return[s,32]}(e,t,{staticPosition:s});if(t.type.startsWith("uint")||t.type.startsWith("int"))return function(e,t){const n=t.type.startsWith("int"),r=Number.parseInt(t.type.split("int")[1]||"256",10),i=e.readBytes(32);return[r>48?f(i,{signed:n}):m(i,{signed:n}),32]}(e,t);if("string"===t.type)return function(e,t){let{staticPosition:n}=t;const r=m(e.readBytes(32)),i=n+r;e.setPosition(i);const o=m(e.readBytes(32));if(0===o)return e.setPosition(n+32),["",32];const s=e.readBytes(o,32),a=g((0,l.B)(s));return e.setPosition(n+32),[a,32]}(e,{staticPosition:s});throw new i.j(t.type,{docsPath:"/docs/contract/decodeAbiParameters"})}const _=32,x=32;function A(e){var t;const{type:n}=e;if("string"===n)return!0;if("bytes"===n)return!0;if(n.endsWith("[]"))return!0;if("tuple"===n)return null===(t=e.components)||void 0===t?void 0:t.some(A);const i=(0,b.k)(e.type);return!(!i||!A((0,r.A)((0,r.A)({},e),{},{type:i[1]})))}},1227:(e,t,n)=>{"use strict";const r=/\s+/g;class i{constructor(e,t){if(t=s(t),e instanceof i)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new i(e.raw,t);if(e instanceof a)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(r," "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw new TypeError("Invalid SemVer Range: ".concat(this.raw));if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter(e=>!y(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const t of this.set)if(1===t.length&&b(t[0])){this.set=[t];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&m)|(this.options.loose&&g))+":"+e,n=o.get(t);if(n)return n;const r=this.options.loose,i=r?u[d.HYPHENRANGELOOSE]:u[d.HYPHENRANGE];e=e.replace(i,M(this.options.includePrerelease)),c("hyphen replace",e),e=e.replace(u[d.COMPARATORTRIM],h),c("comparator trim",e),e=e.replace(u[d.TILDETRIM],f),c("tilde trim",e),e=e.replace(u[d.CARETTRIM],p),c("caret trim",e);let s=e.split(" ").map(e=>w(e,this.options)).join(" ").split(/\s+/).map(e=>I(e,this.options));r&&(s=s.filter(e=>(c("loose invalid filter",e,this.options),!!e.match(u[d.COMPARATORLOOSE])))),c("range list",s);const l=new Map,b=s.map(e=>new a(e,this.options));for(const o of b){if(y(o))return[o];l.set(o.value,o)}l.size>1&&l.has("")&&l.delete("");const v=[...l.values()];return o.set(t,v),v}intersects(e,t){if(!(e instanceof i))throw new TypeError("a Range is required");return this.set.some(n=>v(n,t)&&e.set.some(e=>v(e,t)&&n.every(n=>e.every(e=>n.intersects(e,t)))))}test(e){if(!e)return!1;if("string"===typeof e)try{e=new l(e,this.options)}catch(t){return!1}for(let n=0;n<this.set.length;n++)if(T(this.set[n],e,this.options))return!0;return!1}}e.exports=i;const o=new(n(1974)),s=n(4999),a=n(2548),c=n(4580),l=n(5544),{safeRe:u,t:d,comparatorTrimReplace:h,tildeTrimReplace:f,caretTrimReplace:p}=n(3794),{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:g}=n(9070),y=e=>"<0.0.0-0"===e.value,b=e=>""===e.value,v=(e,t)=>{let n=!0;const r=e.slice();let i=r.pop();for(;n&&r.length;)n=r.every(e=>i.intersects(e,t)),i=r.pop();return n},w=(e,t)=>(e=e.replace(u[d.BUILD],""),c("comp",e,t),e=k(e,t),c("caret",e),e=x(e,t),c("tildes",e),e=S(e,t),c("xrange",e),e=C(e,t),c("stars",e),e),_=e=>!e||"x"===e.toLowerCase()||"*"===e,x=(e,t)=>e.trim().split(/\s+/).map(e=>A(e,t)).join(" "),A=(e,t)=>{const n=t.loose?u[d.TILDELOOSE]:u[d.TILDE];return e.replace(n,(t,n,r,i,o)=>{let s;return c("tilde",e,t,n,r,i,o),_(n)?s="":_(r)?s=">=".concat(n,".0.0 <").concat(+n+1,".0.0-0"):_(i)?s=">=".concat(n,".").concat(r,".0 <").concat(n,".").concat(+r+1,".0-0"):o?(c("replaceTilde pr",o),s=">=".concat(n,".").concat(r,".").concat(i,"-").concat(o," <").concat(n,".").concat(+r+1,".0-0")):s=">=".concat(n,".").concat(r,".").concat(i," <").concat(n,".").concat(+r+1,".0-0"),c("tilde return",s),s})},k=(e,t)=>e.trim().split(/\s+/).map(e=>E(e,t)).join(" "),E=(e,t)=>{c("caret",e,t);const n=t.loose?u[d.CARETLOOSE]:u[d.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,(t,n,i,o,s)=>{let a;return c("caret",e,t,n,i,o,s),_(n)?a="":_(i)?a=">=".concat(n,".0.0").concat(r," <").concat(+n+1,".0.0-0"):_(o)?a="0"===n?">=".concat(n,".").concat(i,".0").concat(r," <").concat(n,".").concat(+i+1,".0-0"):">=".concat(n,".").concat(i,".0").concat(r," <").concat(+n+1,".0.0-0"):s?(c("replaceCaret pr",s),a="0"===n?"0"===i?">=".concat(n,".").concat(i,".").concat(o,"-").concat(s," <").concat(n,".").concat(i,".").concat(+o+1,"-0"):">=".concat(n,".").concat(i,".").concat(o,"-").concat(s," <").concat(n,".").concat(+i+1,".0-0"):">=".concat(n,".").concat(i,".").concat(o,"-").concat(s," <").concat(+n+1,".0.0-0")):(c("no pr"),a="0"===n?"0"===i?">=".concat(n,".").concat(i,".").concat(o).concat(r," <").concat(n,".").concat(i,".").concat(+o+1,"-0"):">=".concat(n,".").concat(i,".").concat(o).concat(r," <").concat(n,".").concat(+i+1,".0-0"):">=".concat(n,".").concat(i,".").concat(o," <").concat(+n+1,".0.0-0")),c("caret return",a),a})},S=(e,t)=>(c("replaceXRanges",e,t),e.split(/\s+/).map(e=>P(e,t)).join(" ")),P=(e,t)=>{e=e.trim();const n=t.loose?u[d.XRANGELOOSE]:u[d.XRANGE];return e.replace(n,(n,r,i,o,s,a)=>{c("xRange",e,n,r,i,o,s,a);const l=_(i),u=l||_(o),d=u||_(s),h=d;return"="===r&&h&&(r=""),a=t.includePrerelease?"-0":"",l?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&h?(u&&(o=0),s=0,">"===r?(r=">=",u?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",u?i=+i+1:o=+o+1),"<"===r&&(a="-0"),n="".concat(r+i,".").concat(o,".").concat(s).concat(a)):u?n=">=".concat(i,".0.0").concat(a," <").concat(+i+1,".0.0-0"):d&&(n=">=".concat(i,".").concat(o,".0").concat(a," <").concat(i,".").concat(+o+1,".0-0")),c("xRange return",n),n})},C=(e,t)=>(c("replaceStars",e,t),e.trim().replace(u[d.STAR],"")),I=(e,t)=>(c("replaceGTE0",e,t),e.trim().replace(u[t.includePrerelease?d.GTE0PRE:d.GTE0],"")),M=e=>(t,n,r,i,o,s,a,c,l,u,d,h)=>(n=_(r)?"":_(i)?">=".concat(r,".0.0").concat(e?"-0":""):_(o)?">=".concat(r,".").concat(i,".0").concat(e?"-0":""):s?">=".concat(n):">=".concat(n).concat(e?"-0":""),c=_(l)?"":_(u)?"<".concat(+l+1,".0.0-0"):_(d)?"<".concat(l,".").concat(+u+1,".0-0"):h?"<=".concat(l,".").concat(u,".").concat(d,"-").concat(h):e?"<".concat(l,".").concat(u,".").concat(+d+1,"-0"):"<=".concat(c),"".concat(n," ").concat(c).trim()),T=(e,t,n)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(c(e[n].semver),e[n].semver!==a.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}},1240:(e,t,n)=>{"use strict";var r=n(6473).Buffer;e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n<t.length;n++)t[n]=255;for(var i=0;i<e.length;i++){var o=e.charAt(i),s=o.charCodeAt(0);if(255!==t[s])throw new TypeError(o+" is ambiguous");t[s]=i}var a=e.length,c=e.charAt(0),l=Math.log(a)/Math.log(256),u=Math.log(256)/Math.log(a);function d(e){if("string"!==typeof e)throw new TypeError("Expected String");if(0===e.length)return r.alloc(0);for(var n=0,i=0,o=0;e[n]===c;)i++,n++;for(var s=(e.length-n)*l+1>>>0,u=new Uint8Array(s);n<e.length;){var d=e.charCodeAt(n);if(d>255)return;var h=t[d];if(255===h)return;for(var f=0,p=s-1;(0!==h||f<o)&&-1!==p;p--,f++)h+=a*u[p]>>>0,u[p]=h%256>>>0,h=h/256>>>0;if(0!==h)throw new Error("Non-zero carry");o=f,n++}for(var m=s-o;m!==s&&0===u[m];)m++;var g=r.allocUnsafe(i+(s-m));g.fill(0,0,i);for(var y=i;m!==s;)g[y++]=u[m++];return g}return{encode:function(t){if((Array.isArray(t)||t instanceof Uint8Array)&&(t=r.from(t)),!r.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var n=0,i=0,o=0,s=t.length;o!==s&&0===t[o];)o++,n++;for(var l=(s-o)*u+1>>>0,d=new Uint8Array(l);o!==s;){for(var h=t[o],f=0,p=l-1;(0!==h||f<i)&&-1!==p;p--,f++)h+=256*d[p]>>>0,d[p]=h%a>>>0,h=h/a>>>0;if(0!==h)throw new Error("Non-zero carry");i=f,o++}for(var m=l-i;m!==l&&0===d[m];)m++;for(var g=c.repeat(n);m<l;++m)g+=e.charAt(d[m]);return g},decodeUnsafe:d,decode:function(e){var t=d(e);if(t)return t;throw new Error("Non-base"+a+" character")}}}},1296:(e,t,n)=>{"use strict";n.d(t,{Fl:()=>o,NV:()=>s,ii:()=>i});var r=n(8090);class i extends r.C{constructor(e){let{offset:t,position:n,size:r}=e;super("Slice ".concat("start"===n?"starting":"ending",' at offset "').concat(t,'" is out-of-bounds (size: ').concat(r,")."),{name:"SliceOffsetOutOfBoundsError"})}}class o extends r.C{constructor(e){let{size:t,targetSize:n,type:r}=e;super("".concat(r.charAt(0).toUpperCase()).concat(r.slice(1).toLowerCase()," size (").concat(t,") exceeds padding size (").concat(n,")."),{name:"SizeExceedsPaddingSizeError"})}}class s extends r.C{constructor(e){let{size:t,targetSize:n,type:r}=e;super("".concat(r.charAt(0).toUpperCase()).concat(r.slice(1).toLowerCase()," is expected to be ").concat(n," ").concat(r," long, but is ").concat(t," ").concat(r," long."),{name:"InvalidBytesLengthError"})}}},1304:(e,t,n)=>{"use strict";const r=n(1227);e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t,n))},1321:(e,t,n)=>{var r=n(1240);e.exports=r("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},1457:(e,t,n)=>{"use strict";const r=n(5544),i=n(1227),o=n(6592);e.exports=(e,t)=>{e=new i(e,t);let n=new r("0.0.0");if(e.test(n))return n;if(n=new r("0.0.0-0"),e.test(n))return n;n=null;for(let i=0;i<e.set.length;++i){const t=e.set[i];let s=null;t.forEach(e=>{const t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":s&&!o(t,s)||(s=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: ".concat(e.operator))}}),!s||n&&!o(n,s)||(n=s)}return n&&e.test(n)?n:null}},1478:(e,t,n)=>{"use strict";n.d(t,{E:()=>i});var r=n(226);function i(e){return(0,r.q)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}},1503:(e,t,n)=>{"use strict";n.d(t,{V:()=>o});var r=n(2129),i=n(8859);const o=e=>(0,r.di)((0,i.k)(e),0,4)},1506:(e,t,n)=>{var r=n(8212);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){r(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e},e.exports.__esModule=!0,e.exports.default=e.exports},1567:(e,t,n)=>{"use strict";const r=n(8116);e.exports=(e,t)=>r(e,t,!0)},1586:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(4710),t),i(n(5288),t),i(n(2115),t),i(n(7337),t)},1588:(e,t,n)=>{"use strict";n.d(t,{EB:()=>b,Iy:()=>c,Iz:()=>g,MR:()=>y,Nc:()=>u,O:()=>l,Wq:()=>m,YE:()=>h,YF:()=>a,YW:()=>s,ZP:()=>f,d_:()=>A,dm:()=>x,gH:()=>d,j:()=>_,nK:()=>w,nM:()=>v,yy:()=>p});var r=n(2311),i=n(1478),o=n(8090);class s extends o.C{constructor(e){let{docsPath:t}=e;super(["A constructor was not found on the ABI.","Make sure you are using the correct ABI and that the constructor exists on it."].join("\n"),{docsPath:t,name:"AbiConstructorNotFoundError"})}}class a extends o.C{constructor(e){let{docsPath:t}=e;super(["Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.","Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."].join("\n"),{docsPath:t,name:"AbiConstructorParamsNotFoundError"})}}o.C;class c extends o.C{constructor(e){let{data:t,params:n,size:i}=e;super(["Data size of ".concat(i," bytes is too small for given parameters.")].join("\n"),{metaMessages:["Params: (".concat((0,r.A)(n,{includeName:!0}),")"),"Data: ".concat(t," (").concat(i," bytes)")],name:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t,this.params=n,this.size=i}}class l extends o.C{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError"})}}class u extends o.C{constructor(e){let{expectedLength:t,givenLength:n,type:r}=e;super(["ABI encoding array length mismatch for type ".concat(r,"."),"Expected length: ".concat(t),"Given length: ".concat(n)].join("\n"),{name:"AbiEncodingArrayLengthMismatchError"})}}class d extends o.C{constructor(e){let{expectedSize:t,value:n}=e;super('Size of bytes "'.concat(n,'" (bytes').concat((0,i.E)(n),") does not match expected size (bytes").concat(t,")."),{name:"AbiEncodingBytesSizeMismatchError"})}}class h extends o.C{constructor(e){let{expectedLength:t,givenLength:n}=e;super(["ABI encoding params/values length mismatch.","Expected length (params): ".concat(t),"Given length (values): ".concat(n)].join("\n"),{name:"AbiEncodingLengthMismatchError"})}}class f extends o.C{constructor(e,t){let{docsPath:n}=t;super(['Arguments (`args`) were provided to "'.concat(e,'", but "').concat(e,'" on the ABI does not contain any parameters (`inputs`).'),"Cannot encode error result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the inputs exist on it."].join("\n"),{docsPath:n,name:"AbiErrorInputsNotFoundError"})}}class p extends o.C{constructor(e){let{docsPath:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(["Error ".concat(e?'"'.concat(e,'" '):"","not found on ABI."),"Make sure you are using the correct ABI and that the error exists on it."].join("\n"),{docsPath:t,name:"AbiErrorNotFoundError"})}}class m extends o.C{constructor(e,t){let{docsPath:n}=t;super(['Encoded error signature "'.concat(e,'" not found on ABI.'),"Make sure you are using the correct ABI and that the error exists on it.","You can look up the decoded signature here: https://openchain.xyz/signatures?query=".concat(e,".")].join("\n"),{docsPath:n,name:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}o.C;o.C;o.C;class g extends o.C{constructor(e){let{docsPath:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(["Function ".concat(e?'"'.concat(e,'" '):"","not found on ABI."),"Make sure you are using the correct ABI and that the function exists on it."].join("\n"),{docsPath:t,name:"AbiFunctionNotFoundError"})}}class y extends o.C{constructor(e,t){let{docsPath:n}=t;super(['Function "'.concat(e,'" does not contain any `outputs` on ABI.'),"Cannot decode function result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the function exists on it."].join("\n"),{docsPath:n,name:"AbiFunctionOutputsNotFoundError"})}}class b extends o.C{constructor(e,t){let{docsPath:n}=t;super(['Encoded function signature "'.concat(e,'" not found on ABI.'),"Make sure you are using the correct ABI and that the function exists on it.","You can look up the signature here: https://openchain.xyz/signatures?query=".concat(e,".")].join("\n"),{docsPath:n,name:"AbiFunctionSignatureNotFoundError"})}}class v extends o.C{constructor(e,t){super("Found ambiguous types in overloaded ABI items.",{metaMessages:["`".concat(e.type,"` in `").concat((0,r.B)(e.abiItem),"`, and"),"`".concat(t.type,"` in `").concat((0,r.B)(t.abiItem),"`"),"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}o.C;o.C;o.C;class w extends o.C{constructor(e,t){let{docsPath:n}=t;super(['Type "'.concat(e,'" is not a valid encoding type.'),"Please provide a valid ABI type."].join("\n"),{docsPath:n,name:"InvalidAbiEncodingType"})}}class _ extends o.C{constructor(e,t){let{docsPath:n}=t;super(['Type "'.concat(e,'" is not a valid decoding type.'),"Please provide a valid ABI type."].join("\n"),{docsPath:n,name:"InvalidAbiDecodingType"})}}class x extends o.C{constructor(e){super(['Value "'.concat(e,'" is not a valid array.')].join("\n"),{name:"InvalidArrayError"})}}class A extends o.C{constructor(e){super(['"'.concat(e,'" is not a valid definition type.'),'Valid types: "function", "event", "error"'].join("\n"),{name:"InvalidDefinitionTypeError"})}}o.C},1610:(e,t,n)=>{var r=n(8286),i=n(5117);e.exports=function(e){if("string"===typeof e||"number"===typeof e){var t=new r(1),n=String(e).toLowerCase().trim(),o="0x"===n.substr(0,2)||"-0x"===n.substr(0,3),s=i(n);if("-"===s.substr(0,1)&&(s=i(s.slice(1)),t=new r(-1,10)),!(s=""===s?"0":s).match(/^-?[0-9]+$/)&&s.match(/^[0-9A-Fa-f]+$/)||s.match(/^[a-fA-F]+$/)||!0===o&&s.match(/^[0-9A-Fa-f]+$/))return new r(s,16).mul(t);if((s.match(/^-?[0-9]+$/)||""===s)&&!1===o)return new r(s,10).mul(t)}else if("object"===typeof e&&e.toString&&!e.pop&&!e.push&&e.toString(10).match(/^-?[0-9]+$/)&&(e.mul||e.dividedToIntegerBy))return new r(e.toString(10),10);throw new Error("[number-to-bn] while converting number "+JSON.stringify(e)+" to BN.js instance, error: invalid number value. Value must be an integer, hex string, BN or BigNumber instance. Note, decimals are not supported.")}},1693:(e,t,n)=>{"use strict";e.exports=n(2466)},1713:(e,t,n)=>{"use strict";var r=n(7802),i=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.iterator;var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,b={};function v(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||g}function w(){}function _(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||g}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},w.prototype=v.prototype;var x=_.prototype=new w;x.constructor=_,y(x,v.prototype),x.isPureReactComponent=!0;var A=Array.isArray,k={H:null,A:null,T:null,S:null,V:null},E=Object.prototype.hasOwnProperty;function S(e,t,n,r,o,s){return n=s.ref,{$$typeof:i,type:e,key:t,ref:void 0!==n?n:null,props:s}}function P(e){return"object"===typeof e&&null!==e&&e.$$typeof===i}var C=/\/+/g;function I(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function M(){}function T(e,t,n,r,s){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var c,l,u=!1;if(null===e)u=!0;else switch(a){case"bigint":case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case i:case o:u=!0;break;case p:return T((u=e._init)(e._payload),t,n,r,s)}}if(u)return s=s(e),u=""===r?"."+I(e,0):r,A(s)?(n="",null!=u&&(n=u.replace(C,"$&/")+"/"),T(s,t,n,"",function(e){return e})):null!=s&&(P(s)&&(c=s,l=n+(null==s.key||e&&e.key===s.key?"":(""+s.key).replace(C,"$&/")+"/")+u,s=S(c.type,l,void 0,0,0,c.props)),t.push(s)),1;u=0;var d,h=""===r?".":r+":";if(A(e))for(var f=0;f<e.length;f++)u+=T(r=e[f],t,n,a=h+I(r,f),s);else if("function"===typeof(f=null===(d=e)||"object"!==typeof d?null:"function"===typeof(d=m&&d[m]||d["@@iterator"])?d:null))for(e=f.call(e),f=0;!(r=e.next()).done;)u+=T(r=r.value,t,n,a=h+I(r,f++),s);else if("object"===a){if("function"===typeof e.then)return T(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"===typeof e.status?e.then(M,M):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(e),t,n,r,s);throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return u}function O(e,t,n){if(null==e)return e;var r=[],i=0;return T(e,r,"","",function(e){return t.call(n,e,i++)}),r}function R(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var B="function"===typeof reportError?reportError:function(e){if("object"===typeof window&&"function"===typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"===typeof e&&null!==e&&"string"===typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"===typeof r&&"function"===typeof r.emit)return void r.emit("uncaughtException",e);console.error(e)};function N(){}t.Children={map:O,forEach:function(e,t,n){O(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return O(e,function(){t++}),t},toArray:function(e){return O(e,function(e){return e})||[]},only:function(e){if(!P(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=s,t.Profiler=c,t.PureComponent=_,t.StrictMode=a,t.Suspense=h,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,t.__COMPILER_RUNTIME={__proto__:null,c:function(e){return k.H.useMemoCache(e)}},t.cache=function(e){return function(){return e.apply(null,arguments)}},t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error("The argument must be a React element, but you passed "+e+".");var r=y({},e.props),i=e.key;if(null!=t)for(o in void 0!==t.ref&&void 0,void 0!==t.key&&(i=""+t.key),t)!E.call(t,o)||"key"===o||"__self"===o||"__source"===o||"ref"===o&&void 0===t.ref||(r[o]=t[o]);var o=arguments.length-2;if(1===o)r.children=n;else if(1<o){for(var s=Array(o),a=0;a<o;a++)s[a]=arguments[a+2];r.children=s}return S(e.type,i,void 0,0,0,r)},t.createContext=function(e){return(e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:l,_context:e},e},t.createElement=function(e,t,n){var r,i={},o=null;if(null!=t)for(r in void 0!==t.key&&(o=""+t.key),t)E.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(i[r]=t[r]);var s=arguments.length-2;if(1===s)i.children=n;else if(1<s){for(var a=Array(s),c=0;c<s;c++)a[c]=arguments[c+2];i.children=a}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===i[r]&&(i[r]=s[r]);return S(e,o,void 0,0,0,i)},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:d,render:e}},t.isValidElement=P,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:R}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=k.T,n={};k.T=n;try{var r=e(),i=k.S;null!==i&&i(n,r),"object"===typeof r&&null!==r&&"function"===typeof r.then&&r.then(N,B)}catch(o){B(o)}finally{k.T=t}},t.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},t.use=function(e){return k.H.use(e)},t.useActionState=function(e,t,n){return k.H.useActionState(e,t,n)},t.useCallback=function(e,t){return k.H.useCallback(e,t)},t.useContext=function(e){return k.H.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e,t){return k.H.useDeferredValue(e,t)},t.useEffect=function(e,t,n){var r=k.H;if("function"===typeof n)throw Error("useEffect CRUD overload is not enabled in this build of React.");return r.useEffect(e,t)},t.useId=function(){return k.H.useId()},t.useImperativeHandle=function(e,t,n){return k.H.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return k.H.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return k.H.useLayoutEffect(e,t)},t.useMemo=function(e,t){return k.H.useMemo(e,t)},t.useOptimistic=function(e,t){return k.H.useOptimistic(e,t)},t.useReducer=function(e,t,n){return k.H.useReducer(e,t,n)},t.useRef=function(e){return k.H.useRef(e)},t.useState=function(e){return k.H.useState(e)},t.useSyncExternalStore=function(e,t,n){return k.H.useSyncExternalStore(e,t,n)},t.useTransition=function(){return k.H.useTransition()},t.version="19.1.0"},1974:e=>{"use strict";e.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}},1979:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(7545);function i(e){var t=function(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=(0,r.A)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.A)(t)?t:t+""}function o(e,t,n){return(t=i(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},2027:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MAX:()=>r,NIL:()=>i,parse:()=>s,stringify:()=>a.A,v1:()=>d,v1ToV6:()=>h,v3:()=>E,v4:()=>S.A,v5:()=>T,v6:()=>R,v6ToV1:()=>B,v7:()=>j,validate:()=>o.A,version:()=>L});const r="ffffffff-ffff-ffff-ffff-ffffffffffff",i="00000000-0000-0000-0000-000000000000";var o=n(4282);const s=function(e){if(!(0,o.A)(e))throw TypeError("Invalid UUID");let t;return Uint8Array.of((t=parseInt(e.slice(0,8),16))>>>24,t>>>16&255,t>>>8&255,255&t,(t=parseInt(e.slice(9,13),16))>>>8,255&t,(t=parseInt(e.slice(14,18),16))>>>8,255&t,(t=parseInt(e.slice(19,23),16))>>>8,255&t,(t=parseInt(e.slice(24,36),16))/1099511627776&255,t/4294967296&255,t>>>24&255,t>>>16&255,t>>>8&255,255&t)};var a=n(2188),c=n(3648);const l={};function u(e,t,n,r,i,o){let s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0;if(e.length<16)throw new Error("Random bytes length must be >= 16");if(o){if(s<0||s+16>o.length)throw new RangeError("UUID byte range ".concat(s,":").concat(s+15," is out of buffer bounds"))}else o=new Uint8Array(16),s=0;null!==t&&void 0!==t||(t=Date.now()),null!==n&&void 0!==n||(n=0),null!==r&&void 0!==r||(r=16383&(e[8]<<8|e[9])),null!==i&&void 0!==i||(i=e.slice(10,16));const a=(1e4*(268435455&(t+=122192928e5))+n)%4294967296;o[s++]=a>>>24&255,o[s++]=a>>>16&255,o[s++]=a>>>8&255,o[s++]=255&a;const c=t/4294967296*1e4&268435455;o[s++]=c>>>8&255,o[s++]=255&c,o[s++]=c>>>24&15|16,o[s++]=c>>>16&255,o[s++]=r>>>8|128,o[s++]=255&r;for(let l=0;l<6;++l)o[s++]=i[l];return o}const d=function(e,t,n){var r,i;let o;const s=null!==(r=null===(i=e)||void 0===i?void 0:i._v6)&&void 0!==r&&r;if(e){const t=Object.keys(e);1===t.length&&"_v6"===t[0]&&(e=void 0)}if(e){var d,h,f,p;o=u(null!==(d=null!==(h=e.random)&&void 0!==h?h:null===(f=(p=e).rng)||void 0===f?void 0:f.call(p))&&void 0!==d?d:(0,c.A)(),e.msecs,e.nsecs,e.clockseq,e.node,t,n)}else{const e=Date.now(),r=(0,c.A)();!function(e,t,n){var r,i;null!==(r=e.msecs)&&void 0!==r||(e.msecs=-1/0),null!==(i=e.nsecs)&&void 0!==i||(e.nsecs=0),t===e.msecs?(e.nsecs++,e.nsecs>=1e4&&(e.node=void 0,e.nsecs=0)):t>e.msecs?e.nsecs=0:t<e.msecs&&(e.node=void 0);e.node||(e.node=n.slice(10,16),e.node[0]|=1,e.clockseq=16383&(n[8]<<8|n[9]));e.msecs=t}(l,e,r),o=u(r,l.msecs,l.nsecs,s?void 0:l.clockseq,s?void 0:l.node,t,n)}return null!==t&&void 0!==t?t:(0,a.k)(o)};function h(e){const t=function(e){return Uint8Array.of((15&e[6])<<4|e[7]>>4&15,(15&e[7])<<4|(240&e[4])>>4,(15&e[4])<<4|(240&e[5])>>4,(15&e[5])<<4|(240&e[0])>>4,(15&e[0])<<4|(240&e[1])>>4,(15&e[1])<<4|(240&e[2])>>4,96|15&e[2],e[3],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}("string"===typeof e?s(e):e);return"string"===typeof e?(0,a.k)(t):t}function f(e){return 14+(e+64>>>9<<4)+1}function p(e,t){const n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function m(e,t,n,r,i,o){return p((s=p(p(t,e),p(r,o)))<<(a=i)|s>>>32-a,n);var s,a}function g(e,t,n,r,i,o,s){return m(t&n|~t&r,e,t,i,o,s)}function y(e,t,n,r,i,o,s){return m(t&r|n&~r,e,t,i,o,s)}function b(e,t,n,r,i,o,s){return m(t^n^r,e,t,i,o,s)}function v(e,t,n,r,i,o,s){return m(n^(t|~r),e,t,i,o,s)}const w=function(e){return function(e){const t=new Uint8Array(4*e.length);for(let n=0;n<4*e.length;n++)t[n]=e[n>>2]>>>n%4*8&255;return t}(function(e,t){const n=new Uint32Array(f(t)).fill(0);n.set(e),n[t>>5]|=128<<t%32,n[n.length-1]=t,e=n;let r=1732584193,i=-271733879,o=-1732584194,s=271733878;for(let a=0;a<e.length;a+=16){const t=r,n=i,c=o,l=s;r=g(r,i,o,s,e[a],7,-680876936),s=g(s,r,i,o,e[a+1],12,-389564586),o=g(o,s,r,i,e[a+2],17,606105819),i=g(i,o,s,r,e[a+3],22,-1044525330),r=g(r,i,o,s,e[a+4],7,-176418897),s=g(s,r,i,o,e[a+5],12,1200080426),o=g(o,s,r,i,e[a+6],17,-1473231341),i=g(i,o,s,r,e[a+7],22,-45705983),r=g(r,i,o,s,e[a+8],7,1770035416),s=g(s,r,i,o,e[a+9],12,-1958414417),o=g(o,s,r,i,e[a+10],17,-42063),i=g(i,o,s,r,e[a+11],22,-1990404162),r=g(r,i,o,s,e[a+12],7,1804603682),s=g(s,r,i,o,e[a+13],12,-40341101),o=g(o,s,r,i,e[a+14],17,-1502002290),i=g(i,o,s,r,e[a+15],22,1236535329),r=y(r,i,o,s,e[a+1],5,-165796510),s=y(s,r,i,o,e[a+6],9,-1069501632),o=y(o,s,r,i,e[a+11],14,643717713),i=y(i,o,s,r,e[a],20,-373897302),r=y(r,i,o,s,e[a+5],5,-701558691),s=y(s,r,i,o,e[a+10],9,38016083),o=y(o,s,r,i,e[a+15],14,-660478335),i=y(i,o,s,r,e[a+4],20,-405537848),r=y(r,i,o,s,e[a+9],5,568446438),s=y(s,r,i,o,e[a+14],9,-1019803690),o=y(o,s,r,i,e[a+3],14,-187363961),i=y(i,o,s,r,e[a+8],20,1163531501),r=y(r,i,o,s,e[a+13],5,-1444681467),s=y(s,r,i,o,e[a+2],9,-51403784),o=y(o,s,r,i,e[a+7],14,1735328473),i=y(i,o,s,r,e[a+12],20,-1926607734),r=b(r,i,o,s,e[a+5],4,-378558),s=b(s,r,i,o,e[a+8],11,-2022574463),o=b(o,s,r,i,e[a+11],16,1839030562),i=b(i,o,s,r,e[a+14],23,-35309556),r=b(r,i,o,s,e[a+1],4,-1530992060),s=b(s,r,i,o,e[a+4],11,1272893353),o=b(o,s,r,i,e[a+7],16,-155497632),i=b(i,o,s,r,e[a+10],23,-1094730640),r=b(r,i,o,s,e[a+13],4,681279174),s=b(s,r,i,o,e[a],11,-358537222),o=b(o,s,r,i,e[a+3],16,-722521979),i=b(i,o,s,r,e[a+6],23,76029189),r=b(r,i,o,s,e[a+9],4,-640364487),s=b(s,r,i,o,e[a+12],11,-421815835),o=b(o,s,r,i,e[a+15],16,530742520),i=b(i,o,s,r,e[a+2],23,-995338651),r=v(r,i,o,s,e[a],6,-198630844),s=v(s,r,i,o,e[a+7],10,1126891415),o=v(o,s,r,i,e[a+14],15,-1416354905),i=v(i,o,s,r,e[a+5],21,-57434055),r=v(r,i,o,s,e[a+12],6,1700485571),s=v(s,r,i,o,e[a+3],10,-1894986606),o=v(o,s,r,i,e[a+10],15,-1051523),i=v(i,o,s,r,e[a+1],21,-2054922799),r=v(r,i,o,s,e[a+8],6,1873313359),s=v(s,r,i,o,e[a+15],10,-30611744),o=v(o,s,r,i,e[a+6],15,-1560198380),i=v(i,o,s,r,e[a+13],21,1309151649),r=v(r,i,o,s,e[a+4],6,-145523070),s=v(s,r,i,o,e[a+11],10,-1120210379),o=v(o,s,r,i,e[a+2],15,718787259),i=v(i,o,s,r,e[a+9],21,-343485551),r=p(r,t),i=p(i,n),o=p(o,c),s=p(s,l)}return Uint32Array.of(r,i,o,s)}(function(e){if(0===e.length)return new Uint32Array;const t=new Uint32Array(f(8*e.length)).fill(0);for(let n=0;n<e.length;n++)t[n>>2]|=(255&e[n])<<n%4*8;return t}(e),8*e.length))};const _="6ba7b810-9dad-11d1-80b4-00c04fd430c8",x="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function A(e,t,n,r,i,o){var c;const l="string"===typeof n?function(e){e=unescape(encodeURIComponent(e));const t=new Uint8Array(e.length);for(let n=0;n<e.length;++n)t[n]=e.charCodeAt(n);return t}(n):n,u="string"===typeof r?s(r):r;if("string"===typeof r&&(r=s(r)),16!==(null===(c=r)||void 0===c?void 0:c.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let d=new Uint8Array(16+l.length);if(d.set(u),d.set(l,u.length),d=t(d),d[6]=15&d[6]|e,d[8]=63&d[8]|128,i){o=o||0;for(let e=0;e<16;++e)i[o+e]=d[e];return i}return(0,a.k)(d)}function k(e,t,n,r){return A(48,w,e,t,n,r)}k.DNS=_,k.URL=x;const E=k;var S=n(3563);function P(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function C(e,t){return e<<t|e>>>32-t}const I=function(e){const t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520],r=new Uint8Array(e.length+1);r.set(e),r[e.length]=128;const i=(e=r).length/4+2,o=Math.ceil(i/16),s=new Array(o);for(let a=0;a<o;++a){const t=new Uint32Array(16);for(let n=0;n<16;++n)t[n]=e[64*a+4*n]<<24|e[64*a+4*n+1]<<16|e[64*a+4*n+2]<<8|e[64*a+4*n+3];s[a]=t}s[o-1][14]=8*(e.length-1)/Math.pow(2,32),s[o-1][14]=Math.floor(s[o-1][14]),s[o-1][15]=8*(e.length-1)&4294967295;for(let a=0;a<o;++a){const e=new Uint32Array(80);for(let t=0;t<16;++t)e[t]=s[a][t];for(let t=16;t<80;++t)e[t]=C(e[t-3]^e[t-8]^e[t-14]^e[t-16],1);let r=n[0],i=n[1],o=n[2],c=n[3],l=n[4];for(let n=0;n<80;++n){const s=Math.floor(n/20),a=C(r,5)+P(s,i,o,c)+l+t[s]+e[n]>>>0;l=c,c=o,o=C(i,30)>>>0,i=r,r=a}n[0]=n[0]+r>>>0,n[1]=n[1]+i>>>0,n[2]=n[2]+o>>>0,n[3]=n[3]+c>>>0,n[4]=n[4]+l>>>0}return Uint8Array.of(n[0]>>24,n[0]>>16,n[0]>>8,n[0],n[1]>>24,n[1]>>16,n[1]>>8,n[1],n[2]>>24,n[2]>>16,n[2]>>8,n[2],n[3]>>24,n[3]>>16,n[3]>>8,n[3],n[4]>>24,n[4]>>16,n[4]>>8,n[4])};function M(e,t,n,r){return A(80,I,e,t,n,r)}M.DNS=_,M.URL=x;const T=M;var O=n(9740);const R=function(e,t,n){null!==e&&void 0!==e||(e={}),null!==n&&void 0!==n||(n=0);let r=d((0,O.A)((0,O.A)({},e),{},{_v6:!0}),new Uint8Array(16));if(r=h(r),t){for(let e=0;e<16;e++)t[n+e]=r[e];return t}return(0,a.k)(r)};function B(e){const t=function(e){return Uint8Array.of((15&e[3])<<4|e[4]>>4&15,(15&e[4])<<4|(240&e[5])>>4,(15&e[5])<<4|15&e[6],e[7],(15&e[1])<<4|(240&e[2])>>4,(15&e[2])<<4|(240&e[3])>>4,16|(240&e[0])>>4,(15&e[0])<<4|(240&e[1])>>4,e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}("string"===typeof e?s(e):e);return"string"===typeof e?(0,a.k)(t):t}const N={};function U(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(e.length<16)throw new Error("Random bytes length must be >= 16");if(r){if(i<0||i+16>r.length)throw new RangeError("UUID byte range ".concat(i,":").concat(i+15," is out of buffer bounds"))}else r=new Uint8Array(16),i=0;return null!==t&&void 0!==t||(t=Date.now()),null!==n&&void 0!==n||(n=127*e[6]<<24|e[7]<<16|e[8]<<8|e[9]),r[i++]=t/1099511627776&255,r[i++]=t/4294967296&255,r[i++]=t/16777216&255,r[i++]=t/65536&255,r[i++]=t/256&255,r[i++]=255&t,r[i++]=112|n>>>28&15,r[i++]=n>>>20&255,r[i++]=128|n>>>14&63,r[i++]=n>>>6&255,r[i++]=n<<2&255|3&e[10],r[i++]=e[11],r[i++]=e[12],r[i++]=e[13],r[i++]=e[14],r[i++]=e[15],r}const j=function(e,t,n){let r;if(e){var i,o,s;r=U(null!==(i=null!==(o=e.random)&&void 0!==o?o:null===(s=e.rng)||void 0===s?void 0:s.call(e))&&void 0!==i?i:(0,c.A)(),e.msecs,e.seq,t,n)}else{const e=Date.now(),i=(0,c.A)();!function(e,t,n){var r,i;null!==(r=e.msecs)&&void 0!==r||(e.msecs=-1/0),null!==(i=e.seq)&&void 0!==i||(e.seq=0),t>e.msecs?(e.seq=n[6]<<23|n[7]<<16|n[8]<<8|n[9],e.msecs=t):(e.seq=e.seq+1|0,0===e.seq&&e.msecs++)}(N,e,i),r=U(i,N.msecs,N.seq,t,n)}return null!==t&&void 0!==t?t:(0,a.k)(r)};const L=function(e){if(!(0,o.A)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}},2065:(e,t,n)=>{"use strict";const r=n(593);e.exports=(e,t)=>e.sort((e,n)=>r(n,e,t))},2115:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeHex=t.remove0x=void 0;var r=n(4314);t.remove0x=function(e){return e.startsWith("0x")||e.startsWith("0X")?e.slice(2):e};t.decodeHex=function(e){return(0,r.hexToBytes)((0,t.remove0x)(e))}},2129:(e,t,n)=>{"use strict";n.d(t,{A1:()=>l,di:()=>s});var r=n(1296),i=n(226),o=n(1478);function s(e,t,n){let{strict:r}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,i.q)(e,{strict:!1})?function(e,t,n){let{strict:r}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};a(e,t);const i="0x".concat(e.replace("0x","").slice(2*(null!==t&&void 0!==t?t:0),2*(null!==n&&void 0!==n?n:e.length)));r&&c(i,t,n);return i}(e,t,n,{strict:r}):l(e,t,n,{strict:r})}function a(e,t){if("number"===typeof t&&t>0&&t>(0,o.E)(e)-1)throw new r.ii({offset:t,position:"start",size:(0,o.E)(e)})}function c(e,t,n){if("number"===typeof t&&"number"===typeof n&&(0,o.E)(e)!==n-t)throw new r.ii({offset:n,position:"end",size:(0,o.E)(e)})}function l(e,t,n){let{strict:r}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};a(e,t);const i=e.slice(t,n);return r&&c(i,t,n),i}},2176:(e,t,n)=>{"use strict";e.exports=n(1713)},2188:(e,t,n)=>{"use strict";n.d(t,{A:()=>s,k:()=>o});var r=n(4282);const i=[];for(let a=0;a<256;++a)i.push((a+256).toString(16).slice(1));function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase()}const s=function(e){const t=o(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0);if(!(0,r.A)(t))throw TypeError("Stringified UUID is invalid");return t}},2283:(e,t,n)=>{"use strict";function r(){let e=()=>{},t=()=>{};return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}n.d(t,{Y:()=>r})},2311:(e,t,n)=>{"use strict";n.d(t,{A:()=>o,B:()=>i});var r=n(1588);function i(e){let{includeName:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new r.d_(e.type);return"".concat(e.name,"(").concat(o(e.inputs,{includeName:t}),")")}function o(e){let{includeName:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e?e.map(e=>function(e,t){let{includeName:n}=t;if(e.type.startsWith("tuple"))return"(".concat(o(e.components,{includeName:n}),")").concat(e.type.slice(5));return e.type+(n&&e.name?" ".concat(e.name):"")}(e,{includeName:t})).join(t?", ":","):""}},2338:(e,t,n)=>{"use strict";n.r(t),n.d(t,{aeskw:()=>X,aeskwp:()=>te,cbc:()=>z,cfb:()=>q,ctr:()=>N,ecb:()=>D,gcm:()=>W,gcmsiv:()=>$,siv:()=>V,unsafe:()=>ne});var r=n(4314);const i=16,o=new Uint8Array(16),s=(0,r.u32)(o),a=(e,t,n,r)=>({s3:n<<31|r>>>1,s2:t<<31|n>>>1,s1:e<<31|t>>>1,s0:e>>>1^225<<24&-(1&(1&r))}),c=e=>(e>>>0&255)<<24|(e>>>8&255)<<16|(e>>>16&255)<<8|e>>>24&255;class l{constructor(e,t){this.blockLen=i,this.outputLen=i,this.s0=0,this.s1=0,this.s2=0,this.s3=0,this.finished=!1,e=(0,r.toBytes)(e),(0,r.abytes)(e,16);const n=(0,r.createView)(e);let o=n.getUint32(0,!1),s=n.getUint32(4,!1),l=n.getUint32(8,!1),u=n.getUint32(12,!1);const d=[];for(let r=0;r<128;r++)d.push({s0:c(o),s1:c(s),s2:c(l),s3:c(u)}),({s0:o,s1:s,s2:l,s3:u}=a(o,s,l,u));const h=(f=t||1024)>65536?8:f>1024?4:2;var f;if(![1,2,4,8].includes(h))throw new Error("ghash: invalid window size, expected 2, 4 or 8");this.W=h;const p=128/h,m=this.windowSize=2**h,g=[];for(let r=0;r<p;r++)for(let e=0;e<m;e++){let t=0,n=0,i=0,o=0;for(let s=0;s<h;s++){if(!(e>>>h-s-1&1))continue;const{s0:a,s1:c,s2:l,s3:u}=d[h*r+s];t^=a,n^=c,i^=l,o^=u}g.push({s0:t,s1:n,s2:i,s3:o})}this.t=g}_updateBlock(e,t,n,r){e^=this.s0,t^=this.s1,n^=this.s2,r^=this.s3;const{W:i,t:o,windowSize:s}=this;let a=0,c=0,l=0,u=0;const d=(1<<i)-1;let h=0;for(const f of[e,t,n,r])for(let e=0;e<4;e++){const t=f>>>8*e&255;for(let e=8/i-1;e>=0;e--){const n=t>>>i*e&d,{s0:r,s1:f,s2:p,s3:m}=o[h*s+n];a^=r,c^=f,l^=p,u^=m,h+=1}}this.s0=a,this.s1=c,this.s2=l,this.s3=u}update(e){(0,r.aexists)(this),e=(0,r.toBytes)(e),(0,r.abytes)(e);const t=(0,r.u32)(e),n=Math.floor(e.length/i),a=e.length%i;for(let r=0;r<n;r++)this._updateBlock(t[4*r+0],t[4*r+1],t[4*r+2],t[4*r+3]);return a&&(o.set(e.subarray(n*i)),this._updateBlock(s[0],s[1],s[2],s[3]),(0,r.clean)(s)),this}destroy(){const{t:e}=this;for(const t of e)t.s0=0,t.s1=0,t.s2=0,t.s3=0}digestInto(e){(0,r.aexists)(this),(0,r.aoutput)(e,this),this.finished=!0;const{s0:t,s1:n,s2:i,s3:o}=this,s=(0,r.u32)(e);return s[0]=t,s[1]=n,s[2]=i,s[3]=o,e}digest(){const e=new Uint8Array(i);return this.digestInto(e),this.destroy(),e}}class u extends l{constructor(e,t){e=(0,r.toBytes)(e),(0,r.abytes)(e);const n=function(e){e.reverse();const t=1&e[15];let n=0;for(let r=0;r<e.length;r++){const t=e[r];e[r]=t>>>1|n,n=(1&t)<<7}return e[0]^=225&-t,e}((0,r.copyBytes)(e));super(n,t),(0,r.clean)(n)}update(e){e=(0,r.toBytes)(e),(0,r.aexists)(this);const t=(0,r.u32)(e),n=e.length%i,a=Math.floor(e.length/i);for(let r=0;r<a;r++)this._updateBlock(c(t[4*r+3]),c(t[4*r+2]),c(t[4*r+1]),c(t[4*r+0]));return n&&(o.set(e.subarray(a*i)),this._updateBlock(c(s[3]),c(s[2]),c(s[1]),c(s[0])),(0,r.clean)(s)),this}digestInto(e){(0,r.aexists)(this),(0,r.aoutput)(e,this),this.finished=!0;const{s0:t,s1:n,s2:i,s3:o}=this,s=(0,r.u32)(e);return s[0]=t,s[1]=n,s[2]=i,s[3]=o,e.reverse()}}function d(e){const t=(t,n)=>e(n,t.length).update((0,r.toBytes)(t)).digest(),n=e(new Uint8Array(16),0);return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=(t,n)=>e(t,n),t}const h=d((e,t)=>new l(e,t)),f=d((e,t)=>new u(e,t)),p=16,m=new Uint8Array(p);function g(e){return e<<1^283&-(e>>7)}function y(e,t){let n=0;for(;t>0;t>>=1)n^=e&-(1&t),e=g(e);return n}const b=(()=>{const e=new Uint8Array(256);for(let n=0,r=1;n<256;n++,r^=g(r))e[n]=r;const t=new Uint8Array(256);t[0]=99;for(let n=0;n<255;n++){let r=e[255-n];r|=r<<8,t[e[n]]=255&(r^r>>4^r>>5^r>>6^r>>7^99)}return(0,r.clean)(e),t})(),v=b.map((e,t)=>b.indexOf(t)),w=e=>e<<24|e>>>8,_=e=>e<<8|e>>>24,x=e=>e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255;function A(e,t){if(256!==e.length)throw new Error("Wrong sbox length");const n=new Uint32Array(256).map((n,r)=>t(e[r])),r=n.map(_),i=r.map(_),o=i.map(_),s=new Uint32Array(65536),a=new Uint32Array(65536),c=new Uint16Array(65536);for(let l=0;l<256;l++)for(let t=0;t<256;t++){const u=256*l+t;s[u]=n[l]^r[t],a[u]=i[l]^o[t],c[u]=e[l]<<8|e[t]}return{sbox:e,sbox2:c,T0:n,T1:r,T2:i,T3:o,T01:s,T23:a}}const k=A(b,e=>y(e,3)<<24|e<<16|e<<8|y(e,2)),E=A(v,e=>y(e,11)<<24|y(e,13)<<16|y(e,9)<<8|y(e,14)),S=(()=>{const e=new Uint8Array(16);for(let t=0,n=1;t<16;t++,n=g(n))e[t]=n;return e})();function P(e){(0,r.abytes)(e);const t=e.length;if(![16,24,32].includes(t))throw new Error("aes: invalid key size, should be 16, 24 or 32, got "+t);const{sbox2:n}=k,i=[];(0,r.isAligned32)(e)||i.push(e=(0,r.copyBytes)(e));const o=(0,r.u32)(e),s=o.length,a=e=>M(n,e,e,e,e),c=new Uint32Array(t+28);c.set(o);for(let r=s;r<c.length;r++){let e=c[r-1];r%s===0?e=a(w(e))^S[r/s-1]:s>6&&r%s===4&&(e=a(e)),c[r]=c[r-s]^e}return(0,r.clean)(...i),c}function C(e){const t=P(e),n=t.slice(),i=t.length,{sbox2:o}=k,{T0:s,T1:a,T2:c,T3:l}=E;for(let r=0;r<i;r+=4)for(let e=0;e<4;e++)n[r+e]=t[i-r-4+e];(0,r.clean)(t);for(let r=4;r<i-4;r++){const e=n[r],t=M(o,e,e,e,e);n[r]=s[255&t]^a[t>>>8&255]^c[t>>>16&255]^l[t>>>24]}return n}function I(e,t,n,r,i,o){return e[n<<8&65280|r>>>8&255]^t[i>>>8&65280|o>>>24&255]}function M(e,t,n,r,i){return e[255&t|65280&n]|e[r>>>16&255|i>>>16&65280]<<16}function T(e,t,n,r,i){const{sbox2:o,T01:s,T23:a}=k;let c=0;t^=e[c++],n^=e[c++],r^=e[c++],i^=e[c++];const l=e.length/4-2;for(let u=0;u<l;u++){const o=e[c++]^I(s,a,t,n,r,i),l=e[c++]^I(s,a,n,r,i,t),u=e[c++]^I(s,a,r,i,t,n),d=e[c++]^I(s,a,i,t,n,r);t=o,n=l,r=u,i=d}return{s0:e[c++]^M(o,t,n,r,i),s1:e[c++]^M(o,n,r,i,t),s2:e[c++]^M(o,r,i,t,n),s3:e[c++]^M(o,i,t,n,r)}}function O(e,t,n,r,i){const{sbox2:o,T01:s,T23:a}=E;let c=0;t^=e[c++],n^=e[c++],r^=e[c++],i^=e[c++];const l=e.length/4-2;for(let u=0;u<l;u++){const o=e[c++]^I(s,a,t,i,r,n),l=e[c++]^I(s,a,n,t,i,r),u=e[c++]^I(s,a,r,n,t,i),d=e[c++]^I(s,a,i,r,n,t);t=o,n=l,r=u,i=d}return{s0:e[c++]^M(o,t,i,r,n),s1:e[c++]^M(o,n,t,i,r),s2:e[c++]^M(o,r,n,t,i),s3:e[c++]^M(o,i,r,n,t)}}function R(e,t,n,i){(0,r.abytes)(t,p),(0,r.abytes)(n);const o=n.length;i=(0,r.getOutput)(o,i),(0,r.complexOverlapBytes)(n,i);const s=t,a=(0,r.u32)(s);let{s0:c,s1:l,s2:u,s3:d}=T(e,a[0],a[1],a[2],a[3]);const h=(0,r.u32)(n),f=(0,r.u32)(i);for(let r=0;r+4<=h.length;r+=4){f[r+0]=h[r+0]^c,f[r+1]=h[r+1]^l,f[r+2]=h[r+2]^u,f[r+3]=h[r+3]^d;let t=1;for(let e=s.length-1;e>=0;e--)t=t+(255&s[e])|0,s[e]=255&t,t>>>=8;({s0:c,s1:l,s2:u,s3:d}=T(e,a[0],a[1],a[2],a[3]))}const m=p*Math.floor(h.length/4);if(m<o){const e=new Uint32Array([c,l,u,d]),t=(0,r.u8)(e);for(let r=m,s=0;r<o;r++,s++)i[r]=n[r]^t[s];(0,r.clean)(e)}return i}function B(e,t,n,i,o){(0,r.abytes)(n,p),(0,r.abytes)(i),o=(0,r.getOutput)(i.length,o);const s=n,a=(0,r.u32)(s),c=(0,r.createView)(s),l=(0,r.u32)(i),u=(0,r.u32)(o),d=t?0:12,h=i.length;let f=c.getUint32(d,t),{s0:m,s1:g,s2:y,s3:b}=T(e,a[0],a[1],a[2],a[3]);for(let r=0;r+4<=l.length;r+=4)u[r+0]=l[r+0]^m,u[r+1]=l[r+1]^g,u[r+2]=l[r+2]^y,u[r+3]=l[r+3]^b,f=f+1>>>0,c.setUint32(d,f,t),({s0:m,s1:g,s2:y,s3:b}=T(e,a[0],a[1],a[2],a[3]));const v=p*Math.floor(l.length/4);if(v<h){const e=new Uint32Array([m,g,y,b]),t=(0,r.u8)(e);for(let n=v,r=0;n<h;n++,r++)o[n]=i[n]^t[r];(0,r.clean)(e)}return o}const N=(0,r.wrapCipher)({blockSize:16,nonceLength:16},function(e,t){function n(n,i){if((0,r.abytes)(n),void 0!==i&&((0,r.abytes)(i),!(0,r.isAligned32)(i)))throw new Error("unaligned destination");const o=P(e),s=(0,r.copyBytes)(t),a=[o,s];(0,r.isAligned32)(n)||a.push(n=(0,r.copyBytes)(n));const c=R(o,s,n,i);return(0,r.clean)(...a),c}return{encrypt:(e,t)=>n(e,t),decrypt:(e,t)=>n(e,t)}});function U(e){if((0,r.abytes)(e),e.length%p!==0)throw new Error("aes-(cbc/ecb).decrypt ciphertext should consist of blocks with size 16")}function j(e,t,n){(0,r.abytes)(e);let i=e.length;const o=i%p;if(!t&&0!==o)throw new Error("aec/(cbc-ecb): unpadded plaintext with disabled padding");(0,r.isAligned32)(e)||(e=(0,r.copyBytes)(e));const s=(0,r.u32)(e);if(t){let e=p-o;e||(e=p),i+=e}n=(0,r.getOutput)(i,n),(0,r.complexOverlapBytes)(e,n);return{b:s,o:(0,r.u32)(n),out:n}}function L(e,t){if(!t)return e;const n=e.length;if(!n)throw new Error("aes/pcks5: empty ciphertext not allowed");const r=e[n-1];if(r<=0||r>16)throw new Error("aes/pcks5: wrong padding");const i=e.subarray(0,-r);for(let o=0;o<r;o++)if(e[n-o-1]!==r)throw new Error("aes/pcks5: wrong padding");return i}function F(e){const t=new Uint8Array(16),n=(0,r.u32)(t);t.set(e);const i=p-e.length;for(let r=p-i;r<p;r++)t[r]=i;return n}const D=(0,r.wrapCipher)({blockSize:16},function(e){const t=!(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).disablePadding;return{encrypt(n,i){const{b:o,o:s,out:a}=j(n,t,i),c=P(e);let l=0;for(;l+4<=o.length;){const{s0:e,s1:t,s2:n,s3:r}=T(c,o[l+0],o[l+1],o[l+2],o[l+3]);s[l++]=e,s[l++]=t,s[l++]=n,s[l++]=r}if(t){const e=F(n.subarray(4*l)),{s0:t,s1:r,s2:i,s3:o}=T(c,e[0],e[1],e[2],e[3]);s[l++]=t,s[l++]=r,s[l++]=i,s[l++]=o}return(0,r.clean)(c),a},decrypt(n,i){U(n);const o=C(e);i=(0,r.getOutput)(n.length,i);const s=[o];(0,r.isAligned32)(n)||s.push(n=(0,r.copyBytes)(n)),(0,r.complexOverlapBytes)(n,i);const a=(0,r.u32)(n),c=(0,r.u32)(i);for(let e=0;e+4<=a.length;){const{s0:t,s1:n,s2:r,s3:i}=O(o,a[e+0],a[e+1],a[e+2],a[e+3]);c[e++]=t,c[e++]=n,c[e++]=r,c[e++]=i}return(0,r.clean)(...s),L(i,t)}}}),z=(0,r.wrapCipher)({blockSize:16,nonceLength:16},function(e,t){const n=!(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).disablePadding;return{encrypt(i,o){const s=P(e),{b:a,o:c,out:l}=j(i,n,o);let u=t;const d=[s];(0,r.isAligned32)(u)||d.push(u=(0,r.copyBytes)(u));const h=(0,r.u32)(u);let f=h[0],p=h[1],m=h[2],g=h[3],y=0;for(;y+4<=a.length;)f^=a[y+0],p^=a[y+1],m^=a[y+2],g^=a[y+3],({s0:f,s1:p,s2:m,s3:g}=T(s,f,p,m,g)),c[y++]=f,c[y++]=p,c[y++]=m,c[y++]=g;if(n){const e=F(i.subarray(4*y));f^=e[0],p^=e[1],m^=e[2],g^=e[3],({s0:f,s1:p,s2:m,s3:g}=T(s,f,p,m,g)),c[y++]=f,c[y++]=p,c[y++]=m,c[y++]=g}return(0,r.clean)(...d),l},decrypt(i,o){U(i);const s=C(e);let a=t;const c=[s];(0,r.isAligned32)(a)||c.push(a=(0,r.copyBytes)(a));const l=(0,r.u32)(a);o=(0,r.getOutput)(i.length,o),(0,r.isAligned32)(i)||c.push(i=(0,r.copyBytes)(i)),(0,r.complexOverlapBytes)(i,o);const u=(0,r.u32)(i),d=(0,r.u32)(o);let h=l[0],f=l[1],p=l[2],m=l[3];for(let e=0;e+4<=u.length;){const t=h,n=f,r=p,i=m;h=u[e+0],f=u[e+1],p=u[e+2],m=u[e+3];const{s0:o,s1:a,s2:c,s3:l}=O(s,h,f,p,m);d[e++]=o^t,d[e++]=a^n,d[e++]=c^r,d[e++]=l^i}return(0,r.clean)(...c),L(o,n)}}}),q=(0,r.wrapCipher)({blockSize:16,nonceLength:16},function(e,t){function n(n,i,o){(0,r.abytes)(n);const s=n.length;if(o=(0,r.getOutput)(s,o),(0,r.overlapBytes)(n,o))throw new Error("overlapping src and dst not supported.");const a=P(e);let c=t;const l=[a];(0,r.isAligned32)(c)||l.push(c=(0,r.copyBytes)(c)),(0,r.isAligned32)(n)||l.push(n=(0,r.copyBytes)(n));const u=(0,r.u32)(n),d=(0,r.u32)(o),h=i?d:u,f=(0,r.u32)(c);let m=f[0],g=f[1],y=f[2],b=f[3];for(let e=0;e+4<=u.length;){const{s0:t,s1:n,s2:r,s3:i}=T(a,m,g,y,b);d[e+0]=u[e+0]^t,d[e+1]=u[e+1]^n,d[e+2]=u[e+2]^r,d[e+3]=u[e+3]^i,m=h[e++],g=h[e++],y=h[e++],b=h[e++]}const v=p*Math.floor(u.length/4);if(v<s){({s0:m,s1:g,s2:y,s3:b}=T(a,m,g,y,b));const e=(0,r.u8)(new Uint32Array([m,g,y,b]));for(let t=v,r=0;t<s;t++,r++)o[t]=n[t]^e[r];(0,r.clean)(e)}return(0,r.clean)(...l),o}return{encrypt:(e,t)=>n(e,!0,t),decrypt:(e,t)=>n(e,!1,t)}});function H(e,t,n,i,o){const s=o?o.length:0,a=e.create(n,i.length+s);o&&a.update(o);const c=(0,r.u64Lengths)(8*i.length,8*s,t);a.update(i),a.update(c);const l=a.digest();return(0,r.clean)(c),l}const W=(0,r.wrapCipher)({blockSize:16,nonceLength:12,tagLength:16,varSizeNonce:!0},function(e,t,n){if(t.length<8)throw new Error("aes/gcm: invalid nonce length");function i(e,t,r){const i=H(h,!1,e,r,n);for(let n=0;n<t.length;n++)i[n]^=t[n];return i}function o(){const n=P(e),i=m.slice(),o=m.slice();if(B(n,!1,o,o,i),12===t.length)o.set(t);else{const e=m.slice(),n=(0,r.createView)(e);(0,r.setBigUint64)(n,8,BigInt(8*t.length),!1);const s=h.create(i).update(t).update(e);s.digestInto(o),s.destroy()}return{xk:n,authKey:i,counter:o,tagMask:B(n,!1,o,m)}}return{encrypt(e){const{xk:t,authKey:n,counter:s,tagMask:a}=o(),c=new Uint8Array(e.length+16),l=[t,n,s,a];(0,r.isAligned32)(e)||l.push(e=(0,r.copyBytes)(e)),B(t,!1,s,e,c.subarray(0,e.length));const u=i(n,a,c.subarray(0,c.length-16));return l.push(u),c.set(u,e.length),(0,r.clean)(...l),c},decrypt(e){const{xk:t,authKey:n,counter:s,tagMask:a}=o(),c=[t,n,a,s];(0,r.isAligned32)(e)||c.push(e=(0,r.copyBytes)(e));const l=e.subarray(0,-16),u=e.subarray(-16),d=i(n,a,l);if(c.push(d),!(0,r.equalBytes)(d,u))throw new Error("aes/gcm: invalid ghash tag");const h=B(t,!1,s,l);return(0,r.clean)(...c),h}}}),K=(e,t,n)=>r=>{if(!Number.isSafeInteger(r)||t>r||r>n){throw new Error(e+": expected value in range "+("["+t+".."+n+"]")+", got "+r)}},$=(0,r.wrapCipher)({blockSize:16,nonceLength:12,tagLength:16,varSizeNonce:!0},function(e,t,n){const i=K("AAD",0,2**36),o=K("plaintext",0,2**36),s=K("nonce",12,12),a=K("ciphertext",16,2**36+16);function c(){const n=P(e),i=new Uint8Array(e.length),o=new Uint8Array(16),s=[n,i];let a=t;(0,r.isAligned32)(a)||s.push(a=(0,r.copyBytes)(a));const c=(0,r.u32)(a);let l=0,u=c[0],d=c[1],h=c[2],f=0;for(const e of[o,i].map(r.u32)){const t=(0,r.u32)(e);for(let e=0;e<t.length;e+=2){const{s0:r,s1:i}=T(n,l,u,d,h);t[e+0]=r,t[e+1]=i,l=++f}}const p={authKey:o,encKey:P(i)};return(0,r.clean)(...s),p}function l(e,i,o){const s=H(f,!0,i,o,n);for(let n=0;n<12;n++)s[n]^=t[n];s[15]&=127;const a=(0,r.u32)(s);let c=a[0],l=a[1],u=a[2],d=a[3];return({s0:c,s1:l,s2:u,s3:d}=T(e,c,l,u,d)),a[0]=c,a[1]=l,a[2]=u,a[3]=d,s}function u(e,t,n){let i=(0,r.copyBytes)(t);i[15]|=128;const o=B(e,!0,i,n);return(0,r.clean)(i),o}return(0,r.abytes)(e,16,24,32),s(t.length),void 0!==n&&i(n.length),{encrypt(e){o(e.length);const{encKey:t,authKey:n}=c(),i=l(t,n,e),s=[t,n,i];(0,r.isAligned32)(e)||s.push(e=(0,r.copyBytes)(e));const a=new Uint8Array(e.length+16);return a.set(i,e.length),a.set(u(t,i,e)),(0,r.clean)(...s),a},decrypt(e){a(e.length);const t=e.subarray(-16),{encKey:n,authKey:i}=c(),o=[n,i];(0,r.isAligned32)(e)||o.push(e=(0,r.copyBytes)(e));const s=u(n,t,e.subarray(0,-16)),d=l(n,i,s);if(o.push(d),!(0,r.equalBytes)(t,d))throw(0,r.clean)(...o),new Error("invalid polyval tag");return(0,r.clean)(...o),s}}}),V=$;function G(e){return e instanceof Uint32Array||ArrayBuffer.isView(e)&&"Uint32Array"===e.constructor.name}function J(e,t){if((0,r.abytes)(t,16),!G(e))throw new Error("_encryptBlock accepts result of expandKeyLE");const n=(0,r.u32)(t);let{s0:i,s1:o,s2:s,s3:a}=T(e,n[0],n[1],n[2],n[3]);return n[0]=i,n[1]=o,n[2]=s,n[3]=a,t}function Z(e,t){if((0,r.abytes)(t,16),!G(e))throw new Error("_decryptBlock accepts result of expandKeyLE");const n=(0,r.u32)(t);let{s0:i,s1:o,s2:s,s3:a}=O(e,n[0],n[1],n[2],n[3]);return n[0]=i,n[1]=o,n[2]=s,n[3]=a,t}const Y={encrypt(e,t){if(t.length>=2**32)throw new Error("plaintext should be less than 4gb");const n=P(e);if(16===t.length)J(n,t);else{const e=(0,r.u32)(t);let i=e[0],o=e[1];for(let t=0,r=1;t<6;t++)for(let s=2;s<e.length;s+=2,r++){const{s0:t,s1:a,s2:c,s3:l}=T(n,i,o,e[s],e[s+1]);i=t,o=a^x(r),e[s]=c,e[s+1]=l}e[0]=i,e[1]=o}n.fill(0)},decrypt(e,t){if(t.length-8>=2**32)throw new Error("ciphertext should be less than 4gb");const n=C(e),i=t.length/8-1;if(1===i)Z(n,t);else{const e=(0,r.u32)(t);let o=e[0],s=e[1];for(let t=0,r=6*i;t<6;t++)for(let a=2*i;a>=1;a-=2,r--){s^=x(r);const{s0:t,s1:i,s2:c,s3:l}=O(n,o,s,e[a],e[a+1]);o=t,s=i,e[a]=c,e[a+1]=l}e[0]=o,e[1]=s}n.fill(0)}},Q=new Uint8Array(8).fill(166),X=(0,r.wrapCipher)({blockSize:8},e=>({encrypt(t){if(!t.length||t.length%8!==0)throw new Error("invalid plaintext length");if(8===t.length)throw new Error("8-byte keys not allowed in AESKW, use AESKWP instead");const n=(0,r.concatBytes)(Q,t);return Y.encrypt(e,n),n},decrypt(t){if(t.length%8!==0||t.length<24)throw new Error("invalid ciphertext length");const n=(0,r.copyBytes)(t);if(Y.decrypt(e,n),!(0,r.equalBytes)(n.subarray(0,8),Q))throw new Error("integrity check failed");return n.subarray(0,8).fill(0),n.subarray(8)}})),ee=2790873510,te=(0,r.wrapCipher)({blockSize:8},e=>({encrypt(t){if(!t.length)throw new Error("invalid plaintext length");const n=8*Math.ceil(t.length/8),i=new Uint8Array(8+n);i.set(t,8);const o=(0,r.u32)(i);return o[0]=ee,o[1]=x(t.length),Y.encrypt(e,i),i},decrypt(t){if(t.length<16)throw new Error("invalid ciphertext length");const n=(0,r.copyBytes)(t),i=(0,r.u32)(n);Y.decrypt(e,n);const o=x(i[1])>>>0,s=8*Math.ceil(o/8);if(i[0]!==ee||n.length-8!==s)throw new Error("integrity check failed");for(let e=o;e<s;e++)if(0!==n[8+e])throw new Error("integrity check failed");return n.subarray(0,8).fill(0),n.subarray(8,8+o)}})),ne={expandKeyLE:P,expandKeyDecLE:C,encrypt:T,decrypt:O,encryptBlock:J,decryptBlock:Z,ctrCounter:R,ctr32:B}},2349:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MultiChainOpenRPCDocument=t.MetaMaskOpenRPCDocument=void 0;const i=r(n(9921));t.MetaMaskOpenRPCDocument=i.default;const o=r(n(3990));t.MultiChainOpenRPCDocument=o.default,t.default=i.default},2370:(e,t,n)=>{"use strict";n.d(t,{db:()=>o,eV:()=>i});var r=n(1296);function i(e){let{dir:t,size:n=32}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"===typeof e?o(e,{dir:t,size:n}):function(e){let{dir:t,size:n=32}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null===n)return e;if(e.length>n)throw new r.Fl({size:e.length,targetSize:n,type:"bytes"});const i=new Uint8Array(n);for(let r=0;r<n;r++){const o="right"===t;i[o?r:n-r-1]=e[o?r:e.length-r-1]}return i}(e,{dir:t,size:n})}function o(e){let{dir:t,size:n=32}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null===n)return e;const i=e.replace("0x","");if(i.length>2*n)throw new r.Fl({size:Math.ceil(i.length/2),targetSize:n,type:"hex"});return"0x".concat(i["right"===t?"padEnd":"padStart"](2*n,"0"))}},2387:(e,t,n)=>{"use strict";var r=n(7802),i=n(4442),o=n(2176),s=n(3989);function a(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function l(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function u(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function d(e){if(l(e)!==e)throw Error(a(188))}function h(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=h(e)))return t;e=e.sibling}return null}var f=Object.assign,p=Symbol.for("react.element"),m=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),w=Symbol.for("react.provider"),_=Symbol.for("react.consumer"),x=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),P=Symbol.for("react.lazy");Symbol.for("react.scope");var C=Symbol.for("react.activity");Symbol.for("react.legacy_hidden"),Symbol.for("react.tracing_marker");var I=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.view_transition");var M=Symbol.iterator;function T(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=M&&e[M]||e["@@iterator"])?e:null}var O=Symbol.for("react.client.reference");function R(e){if(null==e)return null;if("function"===typeof e)return e.$$typeof===O?null:e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case y:return"Fragment";case v:return"Profiler";case b:return"StrictMode";case k:return"Suspense";case E:return"SuspenseList";case C:return"Activity"}if("object"===typeof e)switch(e.$$typeof){case g:return"Portal";case x:return(e.displayName||"Context")+".Provider";case _:return(e._context.displayName||"Context")+".Consumer";case A:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case S:return null!==(t=e.displayName||null)?t:R(e.type)||"Memo";case P:t=e._payload,e=e._init;try{return R(e(t))}catch(n){}}return null}var B=Array.isArray,N=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j={pending:!1,data:null,method:null,action:null},L=[],F=-1;function D(e){return{current:e}}function z(e){0>F||(e.current=L[F],L[F]=null,F--)}function q(e,t){F++,L[F]=e.current,e.current=t}var H=D(null),W=D(null),K=D(null),$=D(null);function V(e,t){switch(q(K,t),q(W,e),q(H,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?od(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=sd(t=od(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}z(H),q(H,e)}function G(){z(H),z(W),z(K)}function J(e){null!==e.memoizedState&&q($,e);var t=H.current,n=sd(t,e.type);t!==n&&(q(W,e),q(H,n))}function Z(e){W.current===e&&(z(H),z(W)),$.current===e&&(z($),Jd._currentValue=j)}var Y=Object.prototype.hasOwnProperty,Q=i.unstable_scheduleCallback,X=i.unstable_cancelCallback,ee=i.unstable_shouldYield,te=i.unstable_requestPaint,ne=i.unstable_now,re=i.unstable_getCurrentPriorityLevel,ie=i.unstable_ImmediatePriority,oe=i.unstable_UserBlockingPriority,se=i.unstable_NormalPriority,ae=i.unstable_LowPriority,ce=i.unstable_IdlePriority,le=i.log,ue=i.unstable_setDisableYieldValue,de=null,he=null;function fe(e){if("function"===typeof le&&ue(e),he&&"function"===typeof he.setStrictMode)try{he.setStrictMode(de,e)}catch(t){}}var pe=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(me(e)/ge|0)|0},me=Math.log,ge=Math.LN2;var ye=256,be=4194304;function ve(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194048&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function we(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var i=0,o=e.suspendedLanes,s=e.pingedLanes;e=e.warmLanes;var a=134217727&r;return 0!==a?0!==(r=a&~o)?i=ve(r):0!==(s&=a)?i=ve(s):n||0!==(n=a&~e)&&(i=ve(n)):0!==(a=r&~o)?i=ve(a):0!==s?i=ve(s):n||0!==(n=r&~e)&&(i=ve(n)),0===i?0:0!==t&&t!==i&&0===(t&o)&&((o=i&-i)>=(n=t&-t)||32===o&&0!==(4194048&n))?t:i}function _e(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function xe(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function Ae(){var e=ye;return 0===(4194048&(ye<<=1))&&(ye=256),e}function ke(){var e=be;return 0===(62914560&(be<<=1))&&(be=4194304),e}function Ee(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Se(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Pe(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-pe(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|4194090&n}function Ce(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-pe(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function Ie(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Me(e){return 2<(e&=-e)?8<e?0!==(134217727&e)?32:268435456:8:2}function Te(){var e=U.p;return 0!==e?e:void 0===(e=window.event)?32:uh(e.type)}var Oe=Math.random().toString(36).slice(2),Re="__reactFiber$"+Oe,Be="__reactProps$"+Oe,Ne="__reactContainer$"+Oe,Ue="__reactEvents$"+Oe,je="__reactListeners$"+Oe,Le="__reactHandles$"+Oe,Fe="__reactResources$"+Oe,De="__reactMarker$"+Oe;function ze(e){delete e[Re],delete e[Be],delete e[Ue],delete e[je],delete e[Le]}function qe(e){var t=e[Re];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ne]||n[Re]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=wd(e);null!==e;){if(n=e[Re])return n;e=wd(e)}return t}n=(e=n).parentNode}return null}function He(e){if(e=e[Re]||e[Ne]){var t=e.tag;if(5===t||6===t||13===t||26===t||27===t||3===t)return e}return null}function We(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(a(33))}function Ke(e){var t=e[Fe];return t||(t=e[Fe]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function $e(e){e[De]=!0}var Ve=new Set,Ge={};function Je(e,t){Ze(e,t),Ze(e+"Capture",t)}function Ze(e,t){for(Ge[e]=t,e=0;e<t.length;e++)Ve.add(t[e])}var Ye,Qe,Xe=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),et={},tt={};function nt(e,t,n){if(i=t,Y.call(tt,i)||!Y.call(et,i)&&(Xe.test(i)?tt[i]=!0:(et[i]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var i}function rt(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function it(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+r)}}function ot(e){if(void 0===Ye)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ye=t&&t[1]||"",Qe=-1<n.stack.indexOf("\n at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+Ye+e+Qe}var st=!1;function at(e,t){if(!e||st)return"";st=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(i){var r=i}Reflect.construct(e,[],n)}else{try{n.call()}catch(o){r=o}e.call(n.prototype)}}else{try{throw Error()}catch(s){r=s}(n=e())&&"function"===typeof n.catch&&n.catch(function(){})}}catch(a){if(a&&r&&"string"===typeof a.stack)return[a.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=r.DetermineComponentFrameRoot(),s=o[0],a=o[1];if(s&&a){var c=s.split("\n"),l=a.split("\n");for(i=r=0;r<c.length&&!c[r].includes("DetermineComponentFrameRoot");)r++;for(;i<l.length&&!l[i].includes("DetermineComponentFrameRoot");)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(1!==r||1!==i)do{if(r--,0>--i||c[r]!==l[i]){var u="\n"+c[r].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=r&&0<=i);break}}}finally{st=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ot(n):""}function ct(e){switch(e.tag){case 26:case 27:case 5:return ot(e.type);case 16:return ot("Lazy");case 13:return ot("Suspense");case 19:return ot("SuspenseList");case 0:case 15:return at(e.type,!1);case 11:return at(e.type.render,!1);case 1:return at(e.type,!0);case 31:return ot("Activity");default:return""}}function lt(e){try{var t="";do{t+=ct(e),e=e.return}while(e);return t}catch(n){return"\nError generating stack: "+n.message+"\n"+n.stack}}function ut(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function dt(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function ht(e){e._valueTracker||(e._valueTracker=function(e){var t=dt(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function ft(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=dt(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function pt(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var mt=/[\n"\\]/g;function gt(e){return e.replace(mt,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function yt(e,t,n,r,i,o,s,a){e.name="",null!=s&&"function"!==typeof s&&"symbol"!==typeof s&&"boolean"!==typeof s?e.type=s:e.removeAttribute("type"),null!=t?"number"===s?(0===t&&""===e.value||e.value!=t)&&(e.value=""+ut(t)):e.value!==""+ut(t)&&(e.value=""+ut(t)):"submit"!==s&&"reset"!==s||e.removeAttribute("value"),null!=t?vt(e,s,ut(t)):null!=n?vt(e,s,ut(n)):null!=r&&e.removeAttribute("value"),null==i&&null!=o&&(e.defaultChecked=!!o),null!=i&&(e.checked=i&&"function"!==typeof i&&"symbol"!==typeof i),null!=a&&"function"!==typeof a&&"symbol"!==typeof a&&"boolean"!==typeof a?e.name=""+ut(a):e.removeAttribute("name")}function bt(e,t,n,r,i,o,s,a){if(null!=o&&"function"!==typeof o&&"symbol"!==typeof o&&"boolean"!==typeof o&&(e.type=o),null!=t||null!=n){if(!("submit"!==o&&"reset"!==o||void 0!==t&&null!==t))return;n=null!=n?""+ut(n):"",t=null!=t?""+ut(t):n,a||t===e.value||(e.value=t),e.defaultValue=t}r="function"!==typeof(r=null!=r?r:i)&&"symbol"!==typeof r&&!!r,e.checked=a?e.checked:!!r,e.defaultChecked=!!r,null!=s&&"function"!==typeof s&&"symbol"!==typeof s&&"boolean"!==typeof s&&(e.name=s)}function vt(e,t,n){"number"===t&&pt(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function wt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ut(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function _t(e,t,n){null==t||((t=""+ut(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+ut(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function xt(e,t,n,r){if(null==t){if(null!=r){if(null!=n)throw Error(a(92));if(B(r)){if(1<r.length)throw Error(a(93));r=r[0]}n=r}null==n&&(n=""),t=n}n=ut(t),e.defaultValue=n,(r=e.textContent)===n&&""!==r&&null!==r&&(e.value=r)}function At(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var kt=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Et(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"===typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!==typeof n||0===n||kt.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function St(e,t,n){if(null!=t&&"object"!==typeof t)throw Error(a(62));if(e=e.style,null!=n){for(var r in n)!n.hasOwnProperty(r)||null!=t&&t.hasOwnProperty(r)||(0===r.indexOf("--")?e.setProperty(r,""):"float"===r?e.cssFloat="":e[r]="");for(var i in t)r=t[i],t.hasOwnProperty(i)&&n[i]!==r&&Et(e,i,r)}else for(var o in t)t.hasOwnProperty(o)&&Et(e,o,t[o])}function Pt(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ct=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),It=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Mt(e){return It.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Tt=null;function Ot(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Rt=null,Bt=null;function Nt(e){var t=He(e);if(t&&(e=t.stateNode)){var n=e[Be]||null;e:switch(e=t.stateNode,t.type){case"input":if(yt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+gt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[Be]||null;if(!i)throw Error(a(90));yt(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)(r=n[t]).form===e.form&&ft(r)}break e;case"textarea":_t(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&wt(e,!!n.multiple,t,!1)}}}var Ut=!1;function jt(e,t,n){if(Ut)return e(t,n);Ut=!0;try{return e(t)}finally{if(Ut=!1,(null!==Rt||null!==Bt)&&(ql(),Rt&&(t=Rt,e=Bt,Bt=Rt=null,Nt(t),e)))for(t=0;t<e.length;t++)Nt(e[t])}}function Lt(e,t){var n=e.stateNode;if(null===n)return null;var r=n[Be]||null;if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(a(231,t,typeof n));return n}var Ft=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),Dt=!1;if(Ft)try{var zt={};Object.defineProperty(zt,"passive",{get:function(){Dt=!0}}),window.addEventListener("test",zt,zt),window.removeEventListener("test",zt,zt)}catch(Bh){Dt=!1}var qt=null,Ht=null,Wt=null;function Kt(){if(Wt)return Wt;var e,t,n=Ht,r=n.length,i="value"in qt?qt.value:qt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var s=r-e;for(t=1;t<=s&&n[r-t]===i[o-t];t++);return Wt=i.slice(e,1<t?1-t:void 0)}function $t(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Vt(){return!0}function Gt(){return!1}function Jt(e){function t(t,n,r,i,o){for(var s in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(i):i[s]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?Vt:Gt,this.isPropagationStopped=Gt,this}return f(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Vt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Vt)},persist:function(){},isPersistent:Vt}),t}var Zt,Yt,Qt,Xt={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},en=Jt(Xt),tn=f({},Xt,{view:0,detail:0}),nn=Jt(tn),rn=f({},tn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:mn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Qt&&(Qt&&"mousemove"===e.type?(Zt=e.screenX-Qt.screenX,Yt=e.screenY-Qt.screenY):Yt=Zt=0,Qt=e),Zt)},movementY:function(e){return"movementY"in e?e.movementY:Yt}}),on=Jt(rn),sn=Jt(f({},rn,{dataTransfer:0})),an=Jt(f({},tn,{relatedTarget:0})),cn=Jt(f({},Xt,{animationName:0,elapsedTime:0,pseudoElement:0})),ln=Jt(f({},Xt,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),un=Jt(f({},Xt,{data:0})),dn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},fn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function pn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=fn[e])&&!!t[e]}function mn(){return pn}var gn=Jt(f({},tn,{key:function(e){if(e.key){var t=dn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=$t(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?hn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:mn,charCode:function(e){return"keypress"===e.type?$t(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?$t(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),yn=Jt(f({},rn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),bn=Jt(f({},tn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:mn})),vn=Jt(f({},Xt,{propertyName:0,elapsedTime:0,pseudoElement:0})),wn=Jt(f({},rn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),_n=Jt(f({},Xt,{newState:0,oldState:0})),xn=[9,13,27,32],An=Ft&&"CompositionEvent"in window,kn=null;Ft&&"documentMode"in document&&(kn=document.documentMode);var En=Ft&&"TextEvent"in window&&!kn,Sn=Ft&&(!An||kn&&8<kn&&11>=kn),Pn=String.fromCharCode(32),Cn=!1;function In(e,t){switch(e){case"keyup":return-1!==xn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Tn=!1;var On={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Rn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!On[e.type]:"textarea"===t}function Bn(e,t,n,r){Rt?Bt?Bt.push(r):Bt=[r]:Rt=r,0<(t=Ku(t,"onChange")).length&&(n=new en("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Nn=null,Un=null;function jn(e){ju(e,0)}function Ln(e){if(ft(We(e)))return e}function Fn(e,t){if("change"===e)return t}var Dn=!1;if(Ft){var zn;if(Ft){var qn="oninput"in document;if(!qn){var Hn=document.createElement("div");Hn.setAttribute("oninput","return;"),qn="function"===typeof Hn.oninput}zn=qn}else zn=!1;Dn=zn&&(!document.documentMode||9<document.documentMode)}function Wn(){Nn&&(Nn.detachEvent("onpropertychange",Kn),Un=Nn=null)}function Kn(e){if("value"===e.propertyName&&Ln(Un)){var t=[];Bn(t,Un,e,Ot(e)),jt(jn,t)}}function $n(e,t,n){"focusin"===e?(Wn(),Un=n,(Nn=t).attachEvent("onpropertychange",Kn)):"focusout"===e&&Wn()}function Vn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Ln(Un)}function Gn(e,t){if("click"===e)return Ln(t)}function Jn(e,t){if("input"===e||"change"===e)return Ln(t)}var Zn="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function Yn(e,t){if(Zn(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Y.call(t,i)||!Zn(e[i],t[i]))return!1}return!0}function Qn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Xn(e,t){var n,r=Qn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Qn(r)}}function er(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?er(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function tr(e){for(var t=pt((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=pt((e=t.contentWindow).document)}return t}function nr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var rr=Ft&&"documentMode"in document&&11>=document.documentMode,ir=null,or=null,sr=null,ar=!1;function cr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;ar||null==ir||ir!==pt(r)||("selectionStart"in(r=ir)&&nr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},sr&&Yn(sr,r)||(sr=r,0<(r=Ku(or,"onSelect")).length&&(t=new en("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ir)))}function lr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ur={animationend:lr("Animation","AnimationEnd"),animationiteration:lr("Animation","AnimationIteration"),animationstart:lr("Animation","AnimationStart"),transitionrun:lr("Transition","TransitionRun"),transitionstart:lr("Transition","TransitionStart"),transitioncancel:lr("Transition","TransitionCancel"),transitionend:lr("Transition","TransitionEnd")},dr={},hr={};function fr(e){if(dr[e])return dr[e];if(!ur[e])return e;var t,n=ur[e];for(t in n)if(n.hasOwnProperty(t)&&t in hr)return dr[e]=n[t];return e}Ft&&(hr=document.createElement("div").style,"AnimationEvent"in window||(delete ur.animationend.animation,delete ur.animationiteration.animation,delete ur.animationstart.animation),"TransitionEvent"in window||delete ur.transitionend.transition);var pr=fr("animationend"),mr=fr("animationiteration"),gr=fr("animationstart"),yr=fr("transitionrun"),br=fr("transitionstart"),vr=fr("transitioncancel"),wr=fr("transitionend"),_r=new Map,xr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ar(e,t){_r.set(e,t),Je(t,[e])}xr.push("scrollEnd");var kr=new WeakMap;function Er(e,t){if("object"===typeof e&&null!==e){var n=kr.get(e);return void 0!==n?n:(t={value:e,source:t,stack:lt(t)},kr.set(e,t),t)}return{value:e,source:t,stack:lt(t)}}var Sr=[],Pr=0,Cr=0;function Ir(){for(var e=Pr,t=Cr=Pr=0;t<e;){var n=Sr[t];Sr[t++]=null;var r=Sr[t];Sr[t++]=null;var i=Sr[t];Sr[t++]=null;var o=Sr[t];if(Sr[t++]=null,null!==r&&null!==i){var s=r.pending;null===s?i.next=i:(i.next=s.next,s.next=i),r.pending=i}0!==o&&Rr(n,i,o)}}function Mr(e,t,n,r){Sr[Pr++]=e,Sr[Pr++]=t,Sr[Pr++]=n,Sr[Pr++]=r,Cr|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function Tr(e,t,n,r){return Mr(e,t,n,r),Br(e)}function Or(e,t){return Mr(e,null,null,t),Br(e)}function Rr(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var i=!1,o=e.return;null!==o;)o.childLanes|=n,null!==(r=o.alternate)&&(r.childLanes|=n),22===o.tag&&(null===(e=o.stateNode)||1&e._visibility||(i=!0)),e=o,o=o.return;return 3===e.tag?(o=e.stateNode,i&&null!==t&&(i=31-pe(n),null===(r=(e=o.hiddenUpdates)[i])?e[i]=[t]:r.push(t),t.lane=536870912|n),o):null}function Br(e){if(50<Rl)throw Rl=0,Bl=null,Error(a(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Nr={};function Ur(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function jr(e,t,n,r){return new Ur(e,t,n,r)}function Lr(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Fr(e,t){var n=e.alternate;return null===n?((n=jr(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=65011712&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Dr(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function zr(e,t,n,r,i,o){var s=0;if(r=e,"function"===typeof e)Lr(e)&&(s=1);else if("string"===typeof e)s=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!==typeof t.precedence||"string"!==typeof t.href||""===t.href)break;return!0;case"link":if("string"!==typeof t.rel||"string"!==typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"===typeof t.precedence&&null==e);case"script":if(t.async&&"function"!==typeof t.async&&"symbol"!==typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"===typeof t.src)return!0}return!1}(e,n,H.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case C:return(e=jr(31,n,t,i)).elementType=C,e.lanes=o,e;case y:return qr(n.children,i,o,t);case b:s=8,i|=24;break;case v:return(e=jr(12,n,t,2|i)).elementType=v,e.lanes=o,e;case k:return(e=jr(13,n,t,i)).elementType=k,e.lanes=o,e;case E:return(e=jr(19,n,t,i)).elementType=E,e.lanes=o,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case w:case x:s=10;break e;case _:s=9;break e;case A:s=11;break e;case S:s=14;break e;case P:s=16,r=null;break e}s=29,n=Error(a(130,null===e?"null":typeof e,"")),r=null}return(t=jr(s,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function qr(e,t,n,r){return(e=jr(7,e,r,t)).lanes=n,e}function Hr(e,t,n){return(e=jr(6,e,null,t)).lanes=n,e}function Wr(e,t,n){return(t=jr(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Kr=[],$r=0,Vr=null,Gr=0,Jr=[],Zr=0,Yr=null,Qr=1,Xr="";function ei(e,t){Kr[$r++]=Gr,Kr[$r++]=Vr,Vr=e,Gr=t}function ti(e,t,n){Jr[Zr++]=Qr,Jr[Zr++]=Xr,Jr[Zr++]=Yr,Yr=e;var r=Qr;e=Xr;var i=32-pe(r)-1;r&=~(1<<i),n+=1;var o=32-pe(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,Qr=1<<32-pe(t)+i|n<<i|r,Xr=o+e}else Qr=1<<o|n<<i|r,Xr=e}function ni(e){null!==e.return&&(ei(e,1),ti(e,1,0))}function ri(e){for(;e===Vr;)Vr=Kr[--$r],Kr[$r]=null,Gr=Kr[--$r],Kr[$r]=null;for(;e===Yr;)Yr=Jr[--Zr],Jr[Zr]=null,Xr=Jr[--Zr],Jr[Zr]=null,Qr=Jr[--Zr],Jr[Zr]=null}var ii=null,oi=null,si=!1,ai=null,ci=!1,li=Error(a(519));function ui(e){throw gi(Er(Error(a(418,"")),e)),li}function di(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Re]=e,t[Be]=r,n){case"dialog":Lu("cancel",t),Lu("close",t);break;case"iframe":case"object":case"embed":Lu("load",t);break;case"video":case"audio":for(n=0;n<Nu.length;n++)Lu(Nu[n],t);break;case"source":Lu("error",t);break;case"img":case"image":case"link":Lu("error",t),Lu("load",t);break;case"details":Lu("toggle",t);break;case"input":Lu("invalid",t),bt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0),ht(t);break;case"select":Lu("invalid",t);break;case"textarea":Lu("invalid",t),xt(t,r.value,r.defaultValue,r.children),ht(t)}"string"!==typeof(n=r.children)&&"number"!==typeof n&&"bigint"!==typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||Yu(t.textContent,n)?(null!=r.popover&&(Lu("beforetoggle",t),Lu("toggle",t)),null!=r.onScroll&&Lu("scroll",t),null!=r.onScrollEnd&&Lu("scrollend",t),null!=r.onClick&&(t.onclick=Qu),t=!0):t=!1,t||ui(e)}function hi(e){for(ii=e.return;ii;)switch(ii.tag){case 5:case 13:return void(ci=!1);case 27:case 3:return void(ci=!0);default:ii=ii.return}}function fi(e){if(e!==ii)return!1;if(!si)return hi(e),si=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||ad(e.type,e.memoizedProps)),t=!t),t&&oi&&ui(e),hi(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,n=0;e;){if(8===e.nodeType)if("/$"===(t=e.data)){if(0===n){oi=bd(e.nextSibling);break e}n--}else"$"!==t&&"$!"!==t&&"$?"!==t||n++;e=e.nextSibling}oi=null}}else 27===n?(n=oi,pd(e.type)?(e=vd,vd=null,oi=e):oi=n):oi=ii?bd(e.stateNode.nextSibling):null;return!0}function pi(){oi=ii=null,si=!1}function mi(){var e=ai;return null!==e&&(null===wl?wl=e:wl.push.apply(wl,e),ai=null),e}function gi(e){null===ai?ai=[e]:ai.push(e)}var yi=D(null),bi=null,vi=null;function wi(e,t,n){q(yi,t._currentValue),t._currentValue=n}function _i(e){e._currentValue=yi.current,z(yi)}function xi(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ai(e,t,n,r){var i=e.child;for(null!==i&&(i.return=e);null!==i;){var o=i.dependencies;if(null!==o){var s=i.child;o=o.firstContext;e:for(;null!==o;){var c=o;o=i;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,null!==(c=o.alternate)&&(c.lanes|=n),xi(o.return,n,e),r||(s=null);break e}o=c.next}}else if(18===i.tag){if(null===(s=i.return))throw Error(a(341));s.lanes|=n,null!==(o=s.alternate)&&(o.lanes|=n),xi(s,n,e),s=null}else s=i.child;if(null!==s)s.return=i;else for(s=i;null!==s;){if(s===e){s=null;break}if(null!==(i=s.sibling)){i.return=s.return,s=i;break}s=s.return}i=s}}function ki(e,t,n,r){e=null;for(var i=t,o=!1;null!==i;){if(!o)if(0!==(524288&i.flags))o=!0;else if(0!==(262144&i.flags))break;if(10===i.tag){var s=i.alternate;if(null===s)throw Error(a(387));if(null!==(s=s.memoizedProps)){var c=i.type;Zn(i.pendingProps.value,s.value)||(null!==e?e.push(c):e=[c])}}else if(i===$.current){if(null===(s=i.alternate))throw Error(a(387));s.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(null!==e?e.push(Jd):e=[Jd])}i=i.return}null!==e&&Ai(t,e,n,r),t.flags|=262144}function Ei(e){for(e=e.firstContext;null!==e;){if(!Zn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Si(e){bi=e,vi=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Pi(e){return Ii(bi,e)}function Ci(e,t){return null===bi&&Si(e),Ii(e,t)}function Ii(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===vi){if(null===e)throw Error(a(308));vi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else vi=vi.next=t;return n}var Mi="undefined"!==typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Ti=i.unstable_scheduleCallback,Oi=i.unstable_NormalPriority,Ri={$$typeof:x,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Bi(){return{controller:new Mi,data:new Map,refCount:0}}function Ni(e){e.refCount--,0===e.refCount&&Ti(Oi,function(){e.controller.abort()})}var Ui=null,ji=0,Li=0,Fi=null;function Di(){if(0===--ji&&null!==Ui){null!==Fi&&(Fi.status="fulfilled");var e=Ui;Ui=null,Li=0,Fi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var zi=N.S;N.S=function(e,t){"object"===typeof t&&null!==t&&"function"===typeof t.then&&function(e,t){if(null===Ui){var n=Ui=[];ji=0,Li=Mu(),Fi={status:"pending",value:void 0,then:function(e){n.push(e)}}}ji++,t.then(Di,Di)}(0,t),null!==zi&&zi(e,t)};var qi=D(null);function Hi(){var e=qi.current;return null!==e?e:il.pooledCache}function Wi(e,t){q(qi,null===t?qi.current:t.pool)}function Ki(){var e=Hi();return null===e?null:{parent:Ri._currentValue,pool:e}}var $i=Error(a(460)),Vi=Error(a(474)),Gi=Error(a(542)),Ji={then:function(){}};function Zi(e){return"fulfilled"===(e=e.status)||"rejected"===e}function Yi(){}function Qi(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(Yi,Yi),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw to(e=t.reason),e;default:if("string"===typeof t.status)t.then(Yi,Yi);else{if(null!==(e=il)&&100<e.shellSuspendCounter)throw Error(a(482));(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw to(e=t.reason),e}throw Xi=t,$i}}var Xi=null;function eo(){if(null===Xi)throw Error(a(459));var e=Xi;return Xi=null,e}function to(e){if(e===$i||e===Gi)throw Error(a(483))}var no=!1;function ro(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function io(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function oo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function so(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&rl)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Br(e),Rr(e,null,n),t}return Mr(e,r,t,n),Br(e)}function ao(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194048&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Ce(e,n)}}function co(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var s={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===o?i=o=s:o=o.next=s,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var lo=!1;function uo(){if(lo){if(null!==Fi)throw Fi}}function ho(e,t,n,r){lo=!1;var i=e.updateQueue;no=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(null!==a){i.shared.pending=null;var c=a,l=c.next;c.next=null,null===s?o=l:s.next=l,s=c;var u=e.alternate;null!==u&&((a=(u=u.updateQueue).lastBaseUpdate)!==s&&(null===a?u.firstBaseUpdate=l:a.next=l,u.lastBaseUpdate=c))}if(null!==o){var d=i.baseState;for(s=0,u=l=c=null,a=o;;){var h=-536870913&a.lane,p=h!==a.lane;if(p?(sl&h)===h:(r&h)===h){0!==h&&h===Li&&(lo=!0),null!==u&&(u=u.next={lane:0,tag:a.tag,payload:a.payload,callback:null,next:null});e:{var m=e,g=a;h=t;var y=n;switch(g.tag){case 1:if("function"===typeof(m=g.payload)){d=m.call(y,d,h);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null===(h="function"===typeof(m=g.payload)?m.call(y,d,h):m)||void 0===h)break e;d=f({},d,h);break e;case 2:no=!0}}null!==(h=a.callback)&&(e.flags|=64,p&&(e.flags|=8192),null===(p=i.callbacks)?i.callbacks=[h]:p.push(h))}else p={lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===u?(l=u=p,c=d):u=u.next=p,s|=h;if(null===(a=a.next)){if(null===(a=i.shared.pending))break;a=(p=a).next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}null===u&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,null===o&&(i.shared.lanes=0),pl|=s,e.lanes=s,e.memoizedState=d}}function fo(e,t){if("function"!==typeof e)throw Error(a(191,e));e.call(t)}function po(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)fo(n[e],t)}var mo=D(null),go=D(0);function yo(e,t){q(go,e=hl),q(mo,t),hl=e|t.baseLanes}function bo(){q(go,hl),q(mo,mo.current)}function vo(){hl=go.current,z(mo),z(go)}var wo=0,_o=null,xo=null,Ao=null,ko=!1,Eo=!1,So=!1,Po=0,Co=0,Io=null,Mo=0;function To(){throw Error(a(321))}function Oo(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Zn(e[n],t[n]))return!1;return!0}function Ro(e,t,n,r,i,o){return wo=o,_o=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,N.H=null===e||null===e.memoizedState?Vs:Gs,So=!1,o=n(r,i),So=!1,Eo&&(o=No(t,n,r,i)),Bo(e),o}function Bo(e){N.H=$s;var t=null!==xo&&null!==xo.next;if(wo=0,Ao=xo=_o=null,ko=!1,Co=0,Io=null,t)throw Error(a(300));null===e||Ca||null!==(e=e.dependencies)&&Ei(e)&&(Ca=!0)}function No(e,t,n,r){_o=e;var i=0;do{if(Eo&&(Io=null),Co=0,Eo=!1,25<=i)throw Error(a(301));if(i+=1,Ao=xo=null,null!=e.updateQueue){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,null!=o.memoCache&&(o.memoCache.index=0)}N.H=Js,o=t(n,r)}while(Eo);return o}function Uo(){var e=N.H,t=e.useState()[0];return t="function"===typeof t.then?qo(t):t,e=e.useState()[0],(null!==xo?xo.memoizedState:null)!==e&&(_o.flags|=1024),t}function jo(){var e=0!==Po;return Po=0,e}function Lo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Fo(e){if(ko){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}ko=!1}wo=0,Ao=xo=_o=null,Eo=!1,Co=Po=0,Io=null}function Do(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ao?_o.memoizedState=Ao=e:Ao=Ao.next=e,Ao}function zo(){if(null===xo){var e=_o.alternate;e=null!==e?e.memoizedState:null}else e=xo.next;var t=null===Ao?_o.memoizedState:Ao.next;if(null!==t)Ao=t,xo=e;else{if(null===e){if(null===_o.alternate)throw Error(a(467));throw Error(a(310))}e={memoizedState:(xo=e).memoizedState,baseState:xo.baseState,baseQueue:xo.baseQueue,queue:xo.queue,next:null},null===Ao?_o.memoizedState=Ao=e:Ao=Ao.next=e}return Ao}function qo(e){var t=Co;return Co+=1,null===Io&&(Io=[]),e=Qi(Io,e,t),t=_o,null===(null===Ao?t.memoizedState:Ao.next)&&(t=t.alternate,N.H=null===t||null===t.memoizedState?Vs:Gs),e}function Ho(e){if(null!==e&&"object"===typeof e){if("function"===typeof e.then)return qo(e);if(e.$$typeof===x)return Pi(e)}throw Error(a(438,String(e)))}function Wo(e){var t=null,n=_o.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=_o.alternate;null!==r&&(null!==(r=r.updateQueue)&&(null!=(r=r.memoCache)&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},_o.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=I;return t.index++,n}function Ko(e,t){return"function"===typeof t?t(e):t}function $o(e){return Vo(zo(),xo,e)}function Vo(e,t,n){var r=e.queue;if(null===r)throw Error(a(311));r.lastRenderedReducer=n;var i=e.baseQueue,o=r.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}t.baseQueue=i=o,r.pending=null}if(o=e.baseState,null===i)e.memoizedState=o;else{var c=s=null,l=null,u=t=i.next,d=!1;do{var h=-536870913&u.lane;if(h!==u.lane?(sl&h)===h:(wo&h)===h){var f=u.revertLane;if(0===f)null!==l&&(l=l.next={lane:0,revertLane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),h===Li&&(d=!0);else{if((wo&f)===f){u=u.next,f===Li&&(d=!0);continue}h={lane:0,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===l?(c=l=h,s=o):l=l.next=h,_o.lanes|=f,pl|=f}h=u.action,So&&n(o,h),o=u.hasEagerState?u.eagerState:n(o,h)}else f={lane:h,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===l?(c=l=f,s=o):l=l.next=f,_o.lanes|=h,pl|=h;u=u.next}while(null!==u&&u!==t);if(null===l?s=o:l.next=c,!Zn(o,e.memoizedState)&&(Ca=!0,d&&null!==(n=Fi)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return null===i&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Go(e){var t=zo(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);Zn(o,t.memoizedState)||(Ca=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Jo(e,t,n){var r=_o,i=zo(),o=si;if(o){if(void 0===n)throw Error(a(407));n=n()}else n=t();var s=!Zn((xo||i).memoizedState,n);if(s&&(i.memoizedState=n,Ca=!0),i=i.queue,bs(2048,8,Qo.bind(null,r,i,e),[e]),i.getSnapshot!==t||s||null!==Ao&&1&Ao.memoizedState.tag){if(r.flags|=2048,ms(9,{destroy:void 0,resource:void 0},Yo.bind(null,r,i,n,t),null),null===il)throw Error(a(349));o||0!==(124&wo)||Zo(r,t,n)}return n}function Zo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=_o.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},_o.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Yo(e,t,n,r){t.value=n,t.getSnapshot=r,Xo(t)&&es(e)}function Qo(e,t,n){return n(function(){Xo(t)&&es(e)})}function Xo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Zn(e,n)}catch(r){return!0}}function es(e){var t=Or(e,2);null!==t&&jl(t,e,2)}function ts(e){var t=Do();if("function"===typeof e){var n=e;if(e=n(),So){fe(!0);try{n()}finally{fe(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ko,lastRenderedState:e},t}function ns(e,t,n,r){return e.baseState=n,Vo(e,xo,"function"===typeof r?r:Ko)}function rs(e,t,n,r,i){if(Hs(e))throw Error(a(485));if(null!==(e=t.action)){var o={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};null!==N.T?n(!0):o.isTransition=!1,r(o),null===(n=t.pending)?(o.next=t.pending=o,is(t,o)):(o.next=n.next,t.pending=n.next=o)}}function is(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var o=N.T,s={};N.T=s;try{var a=n(i,r),c=N.S;null!==c&&c(s,a),os(e,t,a)}catch(l){as(e,t,l)}finally{N.T=o}}else try{os(e,t,o=n(i,r))}catch(u){as(e,t,u)}}function os(e,t,n){null!==n&&"object"===typeof n&&"function"===typeof n.then?n.then(function(n){ss(e,t,n)},function(n){return as(e,t,n)}):ss(e,t,n)}function ss(e,t,n){t.status="fulfilled",t.value=n,cs(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,is(e,n)))}function as(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,cs(t),t=t.next}while(t!==r)}e.action=null}function cs(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ls(e,t){return t}function us(e,t){if(si){var n=il.formState;if(null!==n){e:{var r=_o;if(si){if(oi){t:{for(var i=oi,o=ci;8!==i.nodeType;){if(!o){i=null;break t}if(null===(i=bd(i.nextSibling))){i=null;break t}}i="F!"===(o=i.data)||"F"===o?i:null}if(i){oi=bd(i.nextSibling),r="F!"===i.data;break e}}ui(r)}r=!1}r&&(t=n[0])}}return(n=Do()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ls,lastRenderedState:t},n.queue=r,n=Ds.bind(null,_o,r),r.dispatch=n,r=ts(!1),o=qs.bind(null,_o,!1,r.queue),i={state:t,dispatch:null,action:e,pending:null},(r=Do()).queue=i,n=rs.bind(null,_o,i,o,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function ds(e){return hs(zo(),xo,e)}function hs(e,t,n){if(t=Vo(e,t,ls)[0],e=$o(Ko)[0],"object"===typeof t&&null!==t&&"function"===typeof t.then)try{var r=qo(t)}catch(s){if(s===$i)throw Gi;throw s}else r=t;var i=(t=zo()).queue,o=i.dispatch;return n!==t.memoizedState&&(_o.flags|=2048,ms(9,{destroy:void 0,resource:void 0},fs.bind(null,i,n),null)),[r,o,e]}function fs(e,t){e.action=t}function ps(e){var t=zo(),n=xo;if(null!==n)return hs(t,n,e);zo(),t=t.memoizedState;var r=(n=zo()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function ms(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=_o.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},_o.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function gs(){return zo().memoizedState}function ys(e,t,n,r){var i=Do();r=void 0===r?null:r,_o.flags|=e,i.memoizedState=ms(1|t,{destroy:void 0,resource:void 0},n,r)}function bs(e,t,n,r){var i=zo();r=void 0===r?null:r;var o=i.memoizedState.inst;null!==xo&&null!==r&&Oo(r,xo.memoizedState.deps)?i.memoizedState=ms(t,o,n,r):(_o.flags|=e,i.memoizedState=ms(1|t,o,n,r))}function vs(e,t){ys(8390656,8,e,t)}function ws(e,t){bs(2048,8,e,t)}function _s(e,t){return bs(4,2,e,t)}function xs(e,t){return bs(4,4,e,t)}function As(e,t){if("function"===typeof t){e=e();var n=t(e);return function(){"function"===typeof n?n():t(null)}}if(null!==t&&void 0!==t)return e=e(),t.current=e,function(){t.current=null}}function ks(e,t,n){n=null!==n&&void 0!==n?n.concat([e]):null,bs(4,4,As.bind(null,t,e),n)}function Es(){}function Ss(e,t){var n=zo();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&Oo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ps(e,t){var n=zo();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&Oo(t,r[1]))return r[0];if(r=e(),So){fe(!0);try{e()}finally{fe(!1)}}return n.memoizedState=[r,t],r}function Cs(e,t,n){return void 0===n||0!==(1073741824&wo)?e.memoizedState=t:(e.memoizedState=n,e=Ul(),_o.lanes|=e,pl|=e,n)}function Is(e,t,n,r){return Zn(n,t)?n:null!==mo.current?(e=Cs(e,n,r),Zn(e,t)||(Ca=!0),e):0===(42&wo)?(Ca=!0,e.memoizedState=n):(e=Ul(),_o.lanes|=e,pl|=e,t)}function Ms(e,t,n,r,i){var o=U.p;U.p=0!==o&&8>o?o:8;var s=N.T,a={};N.T=a,qs(e,!1,t,n);try{var c=i(),l=N.S;if(null!==l&&l(a,c),null!==c&&"object"===typeof c&&"function"===typeof c.then)zs(e,t,function(e,t){var n=[],r={status:"pending",value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status="rejected",r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}(c,r),Nl());else zs(e,t,r,Nl())}catch(u){zs(e,t,{then:function(){},status:"rejected",reason:u},Nl())}finally{U.p=o,N.T=s}}function Ts(){}function Os(e,t,n,r){if(5!==e.tag)throw Error(a(476));var i=Rs(e).queue;Ms(e,i,t,j,null===n?Ts:function(){return Bs(e),n(r)})}function Rs(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:j,baseState:j,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ko,lastRenderedState:j},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ko,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function Bs(e){zs(e,Rs(e).next.queue,{},Nl())}function Ns(){return Pi(Jd)}function Us(){return zo().memoizedState}function js(){return zo().memoizedState}function Ls(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Nl(),r=so(t,e=oo(n),n);return null!==r&&(jl(r,t,n),ao(r,t,n)),t={cache:Bi()},void(e.payload=t)}t=t.return}}function Fs(e,t,n){var r=Nl();n={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},Hs(e)?Ws(t,n):null!==(n=Tr(e,t,n,r))&&(jl(n,e,r),Ks(n,t,r))}function Ds(e,t,n){zs(e,t,n,Nl())}function zs(e,t,n,r){var i={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(Hs(e))Ws(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,Zn(a,s))return Mr(e,t,i,0),null===il&&Ir(),!1}catch(c){}if(null!==(n=Tr(e,t,i,r)))return jl(n,e,r),Ks(n,t,r),!0}return!1}function qs(e,t,n,r){if(r={lane:2,revertLane:Mu(),action:r,hasEagerState:!1,eagerState:null,next:null},Hs(e)){if(t)throw Error(a(479))}else null!==(t=Tr(e,n,r,2))&&jl(t,e,2)}function Hs(e){var t=e.alternate;return e===_o||null!==t&&t===_o}function Ws(e,t){Eo=ko=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ks(e,t,n){if(0!==(4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Ce(e,n)}}var $s={readContext:Pi,use:Ho,useCallback:To,useContext:To,useEffect:To,useImperativeHandle:To,useLayoutEffect:To,useInsertionEffect:To,useMemo:To,useReducer:To,useRef:To,useState:To,useDebugValue:To,useDeferredValue:To,useTransition:To,useSyncExternalStore:To,useId:To,useHostTransitionStatus:To,useFormState:To,useActionState:To,useOptimistic:To,useMemoCache:To,useCacheRefresh:To},Vs={readContext:Pi,use:Ho,useCallback:function(e,t){return Do().memoizedState=[e,void 0===t?null:t],e},useContext:Pi,useEffect:vs,useImperativeHandle:function(e,t,n){n=null!==n&&void 0!==n?n.concat([e]):null,ys(4194308,4,As.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ys(4194308,4,e,t)},useInsertionEffect:function(e,t){ys(4,2,e,t)},useMemo:function(e,t){var n=Do();t=void 0===t?null:t;var r=e();if(So){fe(!0);try{e()}finally{fe(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Do();if(void 0!==n){var i=n(t);if(So){fe(!0);try{n(t)}finally{fe(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Fs.bind(null,_o,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Do().memoizedState=e},useState:function(e){var t=(e=ts(e)).queue,n=Ds.bind(null,_o,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Es,useDeferredValue:function(e,t){return Cs(Do(),e,t)},useTransition:function(){var e=ts(!1);return e=Ms.bind(null,_o,e.queue,!0,!1),Do().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=_o,i=Do();if(si){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===il)throw Error(a(349));0!==(124&sl)||Zo(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,vs(Qo.bind(null,r,o,e),[e]),r.flags|=2048,ms(9,{destroy:void 0,resource:void 0},Yo.bind(null,r,o,n,t),null),n},useId:function(){var e=Do(),t=il.identifierPrefix;if(si){var n=Xr;t="\xab"+t+"R"+(n=(Qr&~(1<<32-pe(Qr)-1)).toString(32)+n),0<(n=Po++)&&(t+="H"+n.toString(32)),t+="\xbb"}else t="\xab"+t+"r"+(n=Mo++).toString(32)+"\xbb";return e.memoizedState=t},useHostTransitionStatus:Ns,useFormState:us,useActionState:us,useOptimistic:function(e){var t=Do();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=qs.bind(null,_o,!0,n),n.dispatch=t,[e,t]},useMemoCache:Wo,useCacheRefresh:function(){return Do().memoizedState=Ls.bind(null,_o)}},Gs={readContext:Pi,use:Ho,useCallback:Ss,useContext:Pi,useEffect:ws,useImperativeHandle:ks,useInsertionEffect:_s,useLayoutEffect:xs,useMemo:Ps,useReducer:$o,useRef:gs,useState:function(){return $o(Ko)},useDebugValue:Es,useDeferredValue:function(e,t){return Is(zo(),xo.memoizedState,e,t)},useTransition:function(){var e=$o(Ko)[0],t=zo().memoizedState;return["boolean"===typeof e?e:qo(e),t]},useSyncExternalStore:Jo,useId:Us,useHostTransitionStatus:Ns,useFormState:ds,useActionState:ds,useOptimistic:function(e,t){return ns(zo(),0,e,t)},useMemoCache:Wo,useCacheRefresh:js},Js={readContext:Pi,use:Ho,useCallback:Ss,useContext:Pi,useEffect:ws,useImperativeHandle:ks,useInsertionEffect:_s,useLayoutEffect:xs,useMemo:Ps,useReducer:Go,useRef:gs,useState:function(){return Go(Ko)},useDebugValue:Es,useDeferredValue:function(e,t){var n=zo();return null===xo?Cs(n,e,t):Is(n,xo.memoizedState,e,t)},useTransition:function(){var e=Go(Ko)[0],t=zo().memoizedState;return["boolean"===typeof e?e:qo(e),t]},useSyncExternalStore:Jo,useId:Us,useHostTransitionStatus:Ns,useFormState:ps,useActionState:ps,useOptimistic:function(e,t){var n=zo();return null!==xo?ns(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Wo,useCacheRefresh:js},Zs=null,Ys=0;function Qs(e){var t=Ys;return Ys+=1,null===Zs&&(Zs=[]),Qi(Zs,e,t)}function Xs(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function ea(e,t){if(t.$$typeof===p)throw Error(a(525));throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ta(e){return(0,e._init)(e._payload)}function na(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function i(e,t){return(e=Fr(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=67108866,n):r:(t.flags|=67108866,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function c(e,t,n,r){return null===t||6!==t.tag?((t=Hr(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){var o=n.type;return o===y?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"===typeof o&&null!==o&&o.$$typeof===P&&ta(o)===t.type)?(Xs(t=i(t,n.props),n),t.return=e,t):(Xs(t=zr(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Wr(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=qr(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function h(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t||"bigint"===typeof t)return(t=Hr(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case m:return Xs(n=zr(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case g:return(t=Wr(t,e.mode,n)).return=e,t;case P:return h(e,t=(0,t._init)(t._payload),n)}if(B(t)||T(t))return(t=qr(t,e.mode,n,null)).return=e,t;if("function"===typeof t.then)return h(e,Qs(t),n);if(t.$$typeof===x)return h(e,Ci(e,t),n);ea(e,t)}return null}function f(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n||"bigint"===typeof n)return null!==i?null:c(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case m:return n.key===i?l(e,t,n,r):null;case g:return n.key===i?u(e,t,n,r):null;case P:return f(e,t,n=(i=n._init)(n._payload),r)}if(B(n)||T(n))return null!==i?null:d(e,t,n,r,null);if("function"===typeof n.then)return f(e,t,Qs(n),r);if(n.$$typeof===x)return f(e,t,Ci(e,n),r);ea(e,n)}return null}function p(e,t,n,r,i){if("string"===typeof r&&""!==r||"number"===typeof r||"bigint"===typeof r)return c(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case m:return l(t,e=e.get(null===r.key?n:r.key)||null,r,i);case g:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case P:return p(e,t,n,r=(0,r._init)(r._payload),i)}if(B(r)||T(r))return d(t,e=e.get(n)||null,r,i,null);if("function"===typeof r.then)return p(e,t,n,Qs(r),i);if(r.$$typeof===x)return p(e,t,n,Ci(t,r),i);ea(t,r)}return null}function b(c,l,u,d){if("object"===typeof u&&null!==u&&u.type===y&&null===u.key&&(u=u.props.children),"object"===typeof u&&null!==u){switch(u.$$typeof){case m:e:{for(var v=u.key;null!==l;){if(l.key===v){if((v=u.type)===y){if(7===l.tag){n(c,l.sibling),(d=i(l,u.props.children)).return=c,c=d;break e}}else if(l.elementType===v||"object"===typeof v&&null!==v&&v.$$typeof===P&&ta(v)===l.type){n(c,l.sibling),Xs(d=i(l,u.props),u),d.return=c,c=d;break e}n(c,l);break}t(c,l),l=l.sibling}u.type===y?((d=qr(u.props.children,c.mode,d,u.key)).return=c,c=d):(Xs(d=zr(u.type,u.key,u.props,null,c.mode,d),u),d.return=c,c=d)}return s(c);case g:e:{for(v=u.key;null!==l;){if(l.key===v){if(4===l.tag&&l.stateNode.containerInfo===u.containerInfo&&l.stateNode.implementation===u.implementation){n(c,l.sibling),(d=i(l,u.children||[])).return=c,c=d;break e}n(c,l);break}t(c,l),l=l.sibling}(d=Wr(u,c.mode,d)).return=c,c=d}return s(c);case P:return b(c,l,u=(v=u._init)(u._payload),d)}if(B(u))return function(i,s,a,c){for(var l=null,u=null,d=s,m=s=0,g=null;null!==d&&m<a.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var y=f(i,d,a[m],c);if(null===y){null===d&&(d=g);break}e&&d&&null===y.alternate&&t(i,d),s=o(y,s,m),null===u?l=y:u.sibling=y,u=y,d=g}if(m===a.length)return n(i,d),si&&ei(i,m),l;if(null===d){for(;m<a.length;m++)null!==(d=h(i,a[m],c))&&(s=o(d,s,m),null===u?l=d:u.sibling=d,u=d);return si&&ei(i,m),l}for(d=r(d);m<a.length;m++)null!==(g=p(d,i,m,a[m],c))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),s=o(g,s,m),null===u?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),si&&ei(i,m),l}(c,l,u,d);if(T(u)){if("function"!==typeof(v=T(u)))throw Error(a(150));return function(i,s,c,l){if(null==c)throw Error(a(151));for(var u=null,d=null,m=s,g=s=0,y=null,b=c.next();null!==m&&!b.done;g++,b=c.next()){m.index>g?(y=m,m=null):y=m.sibling;var v=f(i,m,b.value,l);if(null===v){null===m&&(m=y);break}e&&m&&null===v.alternate&&t(i,m),s=o(v,s,g),null===d?u=v:d.sibling=v,d=v,m=y}if(b.done)return n(i,m),si&&ei(i,g),u;if(null===m){for(;!b.done;g++,b=c.next())null!==(b=h(i,b.value,l))&&(s=o(b,s,g),null===d?u=b:d.sibling=b,d=b);return si&&ei(i,g),u}for(m=r(m);!b.done;g++,b=c.next())null!==(b=p(m,i,g,b.value,l))&&(e&&null!==b.alternate&&m.delete(null===b.key?g:b.key),s=o(b,s,g),null===d?u=b:d.sibling=b,d=b);return e&&m.forEach(function(e){return t(i,e)}),si&&ei(i,g),u}(c,l,u=v.call(u),d)}if("function"===typeof u.then)return b(c,l,Qs(u),d);if(u.$$typeof===x)return b(c,l,Ci(c,u),d);ea(c,u)}return"string"===typeof u&&""!==u||"number"===typeof u||"bigint"===typeof u?(u=""+u,null!==l&&6===l.tag?(n(c,l.sibling),(d=i(l,u)).return=c,c=d):(n(c,l),(d=Hr(u,c.mode,d)).return=c,c=d),s(c)):n(c,l)}return function(e,t,n,r){try{Ys=0;var i=b(e,t,n,r);return Zs=null,i}catch(s){if(s===$i||s===Gi)throw s;var o=jr(29,s,null,e.mode);return o.lanes=r,o.return=e,o}}}var ra=na(!0),ia=na(!1),oa=D(null),sa=null;function aa(e){var t=e.alternate;q(da,1&da.current),q(oa,e),null===sa&&(null===t||null!==mo.current||null!==t.memoizedState)&&(sa=e)}function ca(e){if(22===e.tag){if(q(da,da.current),q(oa,e),null===sa){var t=e.alternate;null!==t&&null!==t.memoizedState&&(sa=e)}}else la()}function la(){q(da,da.current),q(oa,oa.current)}function ua(e){z(oa),sa===e&&(sa=null),z(da)}var da=D(0);function ha(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||yd(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function fa(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:f({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var pa={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Nl(),i=oo(r);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=so(e,i,r))&&(jl(t,e,r),ao(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Nl(),i=oo(r);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=so(e,i,r))&&(jl(t,e,r),ao(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Nl(),r=oo(n);r.tag=2,void 0!==t&&null!==t&&(r.callback=t),null!==(t=so(e,r,n))&&(jl(t,e,n),ao(t,e,n))}};function ma(e,t,n,r,i,o,s){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,s):!t.prototype||!t.prototype.isPureReactComponent||(!Yn(n,r)||!Yn(i,o))}function ga(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&pa.enqueueReplaceState(t,t.state,null)}function ya(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=f({},n)),e)void 0===n[i]&&(n[i]=e[i]);return n}var ba="function"===typeof reportError?reportError:function(e){if("object"===typeof window&&"function"===typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"===typeof e&&null!==e&&"string"===typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"===typeof r&&"function"===typeof r.emit)return void r.emit("uncaughtException",e);console.error(e)};function va(e){ba(e)}function wa(e){console.error(e)}function _a(e){ba(e)}function xa(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Aa(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function ka(e,t,n){return(n=oo(n)).tag=3,n.payload={element:null},n.callback=function(){xa(e,t)},n}function Ea(e){return(e=oo(e)).tag=3,e}function Sa(e,t,n,r){var i=n.type.getDerivedStateFromError;if("function"===typeof i){var o=r.value;e.payload=function(){return i(o)},e.callback=function(){Aa(t,n,r)}}var s=n.stateNode;null!==s&&"function"===typeof s.componentDidCatch&&(e.callback=function(){Aa(t,n,r),"function"!==typeof i&&(null===El?El=new Set([this]):El.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var Pa=Error(a(461)),Ca=!1;function Ia(e,t,n,r){t.child=null===e?ia(t,null,n,r):ra(t,e.child,n,r)}function Ma(e,t,n,r,i){n=n.render;var o=t.ref;if("ref"in r){var s={};for(var a in r)"ref"!==a&&(s[a]=r[a])}else s=r;return Si(t),r=Ro(e,t,n,s,o,i),a=jo(),null===e||Ca?(si&&a&&ni(t),t.flags|=1,Ia(e,t,r,i),t.child):(Lo(e,t,i),Za(e,t,i))}function Ta(e,t,n,r,i){if(null===e){var o=n.type;return"function"!==typeof o||Lr(o)||void 0!==o.defaultProps||null!==n.compare?((e=zr(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Oa(e,t,o,r,i))}if(o=e.child,!Ya(e,i)){var s=o.memoizedProps;if((n=null!==(n=n.compare)?n:Yn)(s,r)&&e.ref===t.ref)return Za(e,t,i)}return t.flags|=1,(e=Fr(o,r)).ref=t.ref,e.return=t,t.child=e}function Oa(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(Yn(o,r)&&e.ref===t.ref){if(Ca=!1,t.pendingProps=r=o,!Ya(e,i))return t.lanes=e.lanes,Za(e,t,i);0!==(131072&e.flags)&&(Ca=!0)}}return Ua(e,t,n,r,i)}function Ra(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode){if(0!==(128&t.flags)){if(r=null!==o?o.baseLanes|n:n,null!==e){for(i=t.child=e.child,o=0;null!==i;)o=o|i.lanes|i.childLanes,i=i.sibling;t.childLanes=o&~r}else t.childLanes=0,t.child=null;return Ba(e,t,r,n)}if(0===(536870912&n))return t.lanes=t.childLanes=536870912,Ba(e,t,null!==o?o.baseLanes|n:n,n);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Wi(0,null!==o?o.cachePool:null),null!==o?yo(t,o):bo(),ca(t)}else null!==o?(Wi(0,o.cachePool),yo(t,o),la(),t.memoizedState=null):(null!==e&&Wi(0,null),bo(),la());return Ia(e,t,i,n),t.child}function Ba(e,t,n,r){var i=Hi();return i=null===i?null:{parent:Ri._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},null!==e&&Wi(0,null),bo(),ca(t),null!==e&&ki(e,t,r,!0),null}function Na(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!==typeof n&&"object"!==typeof n)throw Error(a(284));null!==e&&e.ref===n||(t.flags|=4194816)}}function Ua(e,t,n,r,i){return Si(t),n=Ro(e,t,n,r,void 0,i),r=jo(),null===e||Ca?(si&&r&&ni(t),t.flags|=1,Ia(e,t,n,i),t.child):(Lo(e,t,i),Za(e,t,i))}function ja(e,t,n,r,i,o){return Si(t),t.updateQueue=null,n=No(t,r,n,i),Bo(e),r=jo(),null===e||Ca?(si&&r&&ni(t),t.flags|=1,Ia(e,t,n,o),t.child):(Lo(e,t,o),Za(e,t,o))}function La(e,t,n,r,i){if(Si(t),null===t.stateNode){var o=Nr,s=n.contextType;"object"===typeof s&&null!==s&&(o=Pi(s)),o=new n(r,o),t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,o.updater=pa,t.stateNode=o,o._reactInternals=t,(o=t.stateNode).props=r,o.state=t.memoizedState,o.refs={},ro(t),s=n.contextType,o.context="object"===typeof s&&null!==s?Pi(s):Nr,o.state=t.memoizedState,"function"===typeof(s=n.getDerivedStateFromProps)&&(fa(t,n,s,r),o.state=t.memoizedState),"function"===typeof n.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(s=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),s!==o.state&&pa.enqueueReplaceState(o,o.state,null),ho(t,r,o,i),uo(),o.state=t.memoizedState),"function"===typeof o.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){o=t.stateNode;var a=t.memoizedProps,c=ya(n,a);o.props=c;var l=o.context,u=n.contextType;s=Nr,"object"===typeof u&&null!==u&&(s=Pi(u));var d=n.getDerivedStateFromProps;u="function"===typeof d||"function"===typeof o.getSnapshotBeforeUpdate,a=t.pendingProps!==a,u||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(a||l!==s)&&ga(t,o,r,s),no=!1;var h=t.memoizedState;o.state=h,ho(t,r,o,i),uo(),l=t.memoizedState,a||h!==l||no?("function"===typeof d&&(fa(t,n,d,r),l=t.memoizedState),(c=no||ma(t,n,c,r,h,l,s))?(u||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||("function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"===typeof o.componentDidMount&&(t.flags|=4194308)):("function"===typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=s,r=c):("function"===typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,io(e,t),u=ya(n,s=t.memoizedProps),o.props=u,d=t.pendingProps,h=o.context,l=n.contextType,c=Nr,"object"===typeof l&&null!==l&&(c=Pi(l)),(l="function"===typeof(a=n.getDerivedStateFromProps)||"function"===typeof o.getSnapshotBeforeUpdate)||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(s!==d||h!==c)&&ga(t,o,r,c),no=!1,h=t.memoizedState,o.state=h,ho(t,r,o,i),uo();var f=t.memoizedState;s!==d||h!==f||no||null!==e&&null!==e.dependencies&&Ei(e.dependencies)?("function"===typeof a&&(fa(t,n,a,r),f=t.memoizedState),(u=no||ma(t,n,u,r,h,f,c)||null!==e&&null!==e.dependencies&&Ei(e.dependencies))?(l||"function"!==typeof o.UNSAFE_componentWillUpdate&&"function"!==typeof o.componentWillUpdate||("function"===typeof o.componentWillUpdate&&o.componentWillUpdate(r,f,c),"function"===typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,f,c)),"function"===typeof o.componentDidUpdate&&(t.flags|=4),"function"===typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof o.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=f),o.props=r,o.state=f,o.context=c,r=u):("function"!==typeof o.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return o=r,Na(e,t),r=0!==(128&t.flags),o||r?(o=t.stateNode,n=r&&"function"!==typeof n.getDerivedStateFromError?null:o.render(),t.flags|=1,null!==e&&r?(t.child=ra(t,e.child,null,i),t.child=ra(t,null,n,i)):Ia(e,t,n,i),t.memoizedState=o.state,e=t.child):e=Za(e,t,i),e}function Fa(e,t,n,r){return pi(),t.flags|=256,Ia(e,t,n,r),t.child}var Da={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function za(e){return{baseLanes:e,cachePool:Ki()}}function qa(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=yl),e}function Ha(e,t,n){var r,i=t.pendingProps,o=!1,s=0!==(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&0!==(2&da.current)),r&&(o=!0,t.flags&=-129),r=0!==(32&t.flags),t.flags&=-33,null===e){if(si){if(o?aa(t):la(),si){var c,l=oi;if(c=l){e:{for(c=l,l=ci;8!==c.nodeType;){if(!l){l=null;break e}if(null===(c=bd(c.nextSibling))){l=null;break e}}l=c}null!==l?(t.memoizedState={dehydrated:l,treeContext:null!==Yr?{id:Qr,overflow:Xr}:null,retryLane:536870912,hydrationErrors:null},(c=jr(18,null,null,0)).stateNode=l,c.return=t,t.child=c,ii=t,oi=null,c=!0):c=!1}c||ui(t)}if(null!==(l=t.memoizedState)&&null!==(l=l.dehydrated))return yd(l)?t.lanes=32:t.lanes=536870912,null;ua(t)}return l=i.children,i=i.fallback,o?(la(),l=Ka({mode:"hidden",children:l},o=t.mode),i=qr(i,o,n,null),l.return=t,i.return=t,l.sibling=i,t.child=l,(o=t.child).memoizedState=za(n),o.childLanes=qa(e,r,n),t.memoizedState=Da,i):(aa(t),Wa(t,l))}if(null!==(c=e.memoizedState)&&null!==(l=c.dehydrated)){if(s)256&t.flags?(aa(t),t.flags&=-257,t=$a(e,t,n)):null!==t.memoizedState?(la(),t.child=e.child,t.flags|=128,t=null):(la(),o=i.fallback,l=t.mode,i=Ka({mode:"visible",children:i.children},l),(o=qr(o,l,n,null)).flags|=2,i.return=t,o.return=t,i.sibling=o,t.child=i,ra(t,e.child,null,n),(i=t.child).memoizedState=za(n),i.childLanes=qa(e,r,n),t.memoizedState=Da,t=o);else if(aa(t),yd(l)){if(r=l.nextSibling&&l.nextSibling.dataset)var u=r.dgst;r=u,(i=Error(a(419))).stack="",i.digest=r,gi({value:i,source:null,stack:null}),t=$a(e,t,n)}else if(Ca||ki(e,t,n,!1),r=0!==(n&e.childLanes),Ca||r){if(null!==(r=il)&&(0!==(i=0!==((i=0!==(42&(i=n&-n))?1:Ie(i))&(r.suspendedLanes|n))?0:i)&&i!==c.retryLane))throw c.retryLane=i,Or(e,i),jl(r,e,i),Pa;"$?"===l.data||Gl(),t=$a(e,t,n)}else"$?"===l.data?(t.flags|=192,t.child=e.child,t=null):(e=c.treeContext,oi=bd(l.nextSibling),ii=t,si=!0,ai=null,ci=!1,null!==e&&(Jr[Zr++]=Qr,Jr[Zr++]=Xr,Jr[Zr++]=Yr,Qr=e.id,Xr=e.overflow,Yr=t),(t=Wa(t,i.children)).flags|=4096);return t}return o?(la(),o=i.fallback,l=t.mode,u=(c=e.child).sibling,(i=Fr(c,{mode:"hidden",children:i.children})).subtreeFlags=65011712&c.subtreeFlags,null!==u?o=Fr(u,o):(o=qr(o,l,n,null)).flags|=2,o.return=t,i.return=t,i.sibling=o,t.child=i,i=o,o=t.child,null===(l=e.child.memoizedState)?l=za(n):(null!==(c=l.cachePool)?(u=Ri._currentValue,c=c.parent!==u?{parent:u,pool:u}:c):c=Ki(),l={baseLanes:l.baseLanes|n,cachePool:c}),o.memoizedState=l,o.childLanes=qa(e,r,n),t.memoizedState=Da,i):(aa(t),e=(n=e.child).sibling,(n=Fr(n,{mode:"visible",children:i.children})).return=t,n.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function Wa(e,t){return(t=Ka({mode:"visible",children:t},e.mode)).return=e,e.child=t}function Ka(e,t){return(e=jr(22,e,null,t)).lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function $a(e,t,n){return ra(t,e.child,null,n),(e=Wa(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Va(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),xi(e.return,t,n)}function Ga(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Ja(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Ia(e,t,r.children,n),0!==(2&(r=da.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Va(e,n,t);else if(19===e.tag)Va(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}switch(q(da,r),i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===ha(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ga(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ha(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ga(t,!0,n,null,o);break;case"together":Ga(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Za(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),pl|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(ki(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Fr(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Fr(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ya(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!Ei(e))}function Qa(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Ca=!0;else{if(!Ya(e,n)&&0===(128&t.flags))return Ca=!1,function(e,t,n){switch(t.tag){case 3:V(t,t.stateNode.containerInfo),wi(0,Ri,e.memoizedState.cache),pi();break;case 27:case 5:J(t);break;case 4:V(t,t.stateNode.containerInfo);break;case 10:wi(0,t.type,t.memoizedProps.value);break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(aa(t),t.flags|=128,null):0!==(n&t.child.childLanes)?Ha(e,t,n):(aa(t),null!==(e=Za(e,t,n))?e.sibling:null);aa(t);break;case 19:var i=0!==(128&e.flags);if((r=0!==(n&t.childLanes))||(ki(e,t,n,!1),r=0!==(n&t.childLanes)),i){if(r)return Ja(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),q(da,da.current),r)break;return null;case 22:case 23:return t.lanes=0,Ra(e,t,n);case 24:wi(0,Ri,e.memoizedState.cache)}return Za(e,t,n)}(e,t,n);Ca=0!==(131072&e.flags)}else Ca=!1,si&&0!==(1048576&t.flags)&&ti(t,Gr,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var r=t.elementType,i=r._init;if(r=i(r._payload),t.type=r,"function"!==typeof r){if(void 0!==r&&null!==r){if((i=r.$$typeof)===A){t.tag=11,t=Ma(null,t,r,e,n);break e}if(i===S){t.tag=14,t=Ta(null,t,r,e,n);break e}}throw t=R(r)||r,Error(a(306,t,""))}Lr(r)?(e=ya(r,e),t.tag=1,t=La(null,t,r,e,n)):(t.tag=0,t=Ua(null,t,r,e,n))}return t;case 0:return Ua(e,t,t.type,t.pendingProps,n);case 1:return La(e,t,r=t.type,i=ya(r,t.pendingProps),n);case 3:e:{if(V(t,t.stateNode.containerInfo),null===e)throw Error(a(387));r=t.pendingProps;var o=t.memoizedState;i=o.element,io(e,t),ho(t,r,null,n);var s=t.memoizedState;if(r=s.cache,wi(0,Ri,r),r!==o.cache&&Ai(t,[Ri],n,!0),uo(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=Fa(e,t,r,n);break e}if(r!==i){gi(i=Er(Error(a(424)),t)),t=Fa(e,t,r,n);break e}if(9===(e=t.stateNode.containerInfo).nodeType)e=e.body;else e="HTML"===e.nodeName?e.ownerDocument.body:e;for(oi=bd(e.firstChild),ii=t,si=!0,ai=null,ci=!0,n=ia(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(pi(),r===i){t=Za(e,t,n);break e}Ia(e,t,r,n)}t=t.child}return t;case 26:return Na(e,t),null===e?(n=Id(t.type,null,t.pendingProps,null))?t.memoizedState=n:si||(n=t.type,e=t.pendingProps,(r=id(K.current).createElement(n))[Re]=t,r[Be]=e,td(r,n,e),$e(r),t.stateNode=r):t.memoizedState=Id(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return J(t),null===e&&si&&(r=t.stateNode=_d(t.type,t.pendingProps,K.current),ii=t,ci=!0,i=oi,pd(t.type)?(vd=i,oi=bd(r.firstChild)):oi=i),Ia(e,t,t.pendingProps.children,n),Na(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&si&&((i=r=oi)&&(null!==(r=function(e,t,n,r){for(;1===e.nodeType;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[De])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(o=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(o!==i.rel||e.getAttribute("href")!==(null==i.href||""===i.href?null:i.href)||e.getAttribute("crossorigin")!==(null==i.crossOrigin?null:i.crossOrigin)||e.getAttribute("title")!==(null==i.title?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((o=e.getAttribute("src"))!==(null==i.src?null:i.src)||e.getAttribute("type")!==(null==i.type?null:i.type)||e.getAttribute("crossorigin")!==(null==i.crossOrigin?null:i.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var o=null==i.name?null:""+i.name;if("hidden"===i.type&&e.getAttribute("name")===o)return e}if(null===(e=bd(e.nextSibling)))break}return null}(r,t.type,t.pendingProps,ci))?(t.stateNode=r,ii=t,oi=bd(r.firstChild),ci=!1,i=!0):i=!1),i||ui(t)),J(t),i=t.type,o=t.pendingProps,s=null!==e?e.memoizedProps:null,r=o.children,ad(i,o)?r=null:null!==s&&ad(i,s)&&(t.flags|=32),null!==t.memoizedState&&(i=Ro(e,t,Uo,null,null,n),Jd._currentValue=i),Na(e,t),Ia(e,t,r,n),t.child;case 6:return null===e&&si&&((e=n=oi)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=bd(e.nextSibling)))return null}return e}(n,t.pendingProps,ci))?(t.stateNode=n,ii=t,oi=null,e=!0):e=!1),e||ui(t)),null;case 13:return Ha(e,t,n);case 4:return V(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ra(t,null,r,n):Ia(e,t,r,n),t.child;case 11:return Ma(e,t,t.type,t.pendingProps,n);case 7:return Ia(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ia(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,wi(0,t.type,r.value),Ia(e,t,r.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,Si(t),r=r(i=Pi(i)),t.flags|=1,Ia(e,t,r,n),t.child;case 14:return Ta(e,t,t.type,t.pendingProps,n);case 15:return Oa(e,t,t.type,t.pendingProps,n);case 19:return Ja(e,t,n);case 31:return r=t.pendingProps,n=t.mode,r={mode:r.mode,children:r.children},null===e?((n=Ka(r,n)).ref=t.ref,t.child=n,n.return=t,t=n):((n=Fr(e.child,r)).ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return Ra(e,t,n);case 24:return Si(t),r=Pi(Ri),null===e?(null===(i=Hi())&&(i=il,o=Bi(),i.pooledCache=o,o.refCount++,null!==o&&(i.pooledCacheLanes|=n),i=o),t.memoizedState={parent:r,cache:i},ro(t),wi(0,Ri,i)):(0!==(e.lanes&n)&&(io(e,t),ho(t,null,null,n),uo()),i=e.memoizedState,o=t.memoizedState,i.parent!==r?(i={parent:r,cache:r},t.memoizedState=i,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=i),wi(0,Ri,r)):(r=o.cache,wi(0,Ri,r),r!==i.cache&&Ai(t,[Ri],n,!0))),Ia(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(a(156,t.tag))}function Xa(e){e.flags|=4}function ec(e,t){if("stylesheet"!==t.type||0!==(4&t.state.loading))e.flags&=-16777217;else if(e.flags|=16777216,!qd(t)){if(null!==(t=oa.current)&&((4194048&sl)===sl?null!==sa:(62914560&sl)!==sl&&0===(536870912&sl)||t!==sa))throw Xi=Ji,Vi;e.flags|=8192}}function tc(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?ke():536870912,e.lanes|=t,bl|=t)}function nc(e,t){if(!si)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function rc(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=65011712&i.subtreeFlags,r|=65011712&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function ic(e,t,n){var r=t.pendingProps;switch(ri(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return rc(t),null;case 3:return n=t.stateNode,r=null,null!==e&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),_i(Ri),G(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(fi(t)?Xa(t):null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,mi())),rc(t),null;case 26:return n=t.memoizedState,null===e?(Xa(t),null!==n?(rc(t),ec(t,n)):(rc(t),t.flags&=-16777217)):n?n!==e.memoizedState?(Xa(t),rc(t),ec(t,n)):(rc(t),t.flags&=-16777217):(e.memoizedProps!==r&&Xa(t),rc(t),t.flags&=-16777217),null;case 27:Z(t),n=K.current;var i=t.type;if(null!==e&&null!=t.stateNode)e.memoizedProps!==r&&Xa(t);else{if(!r){if(null===t.stateNode)throw Error(a(166));return rc(t),null}e=H.current,fi(t)?di(t):(e=_d(i,r,n),t.stateNode=e,Xa(t))}return rc(t),null;case 5:if(Z(t),n=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&Xa(t);else{if(!r){if(null===t.stateNode)throw Error(a(166));return rc(t),null}if(e=H.current,fi(t))di(t);else{switch(i=id(K.current),e){case 1:e=i.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=i.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":(e=i.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"===typeof r.is?i.createElement("select",{is:r.is}):i.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e="string"===typeof r.is?i.createElement(n,{is:r.is}):i.createElement(n)}}e[Re]=t,e[Be]=r;e:for(i=t.child;null!==i;){if(5===i.tag||6===i.tag)e.appendChild(i.stateNode);else if(4!==i.tag&&27!==i.tag&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;null===i.sibling;){if(null===i.return||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=e;e:switch(td(e,n,r),n){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Xa(t)}}return rc(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&Xa(t);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));if(e=K.current,fi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,null!==(i=ii))switch(i.tag){case 27:case 5:r=i.memoizedProps}e[Re]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||Yu(e.nodeValue,n)))||ui(t)}else(e=id(e).createTextNode(r))[Re]=t,t.stateNode=e}return rc(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(i=fi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(a(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(a(317));i[Re]=t}else pi(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;rc(t),i=!1}else i=mi(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return 256&t.flags?(ua(t),t):(ua(t),null)}if(ua(t),0!==(128&t.flags))return t.lanes=n,t;if(n=null!==r,e=null!==e&&null!==e.memoizedState,n){i=null,null!==(r=t.child).alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(i=r.alternate.memoizedState.cachePool.pool);var o=null;null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),tc(t,t.updateQueue),rc(t),null;case 4:return G(),null===e&&zu(t.stateNode.containerInfo),rc(t),null;case 10:return _i(t.type),rc(t),null;case 19:if(z(da),null===(i=t.memoizedState))return rc(t),null;if(r=0!==(128&t.flags),null===(o=i.rendering))if(r)nc(i,!1);else{if(0!==fl||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(o=ha(e))){for(t.flags|=128,nc(i,!1),e=o.updateQueue,t.updateQueue=e,tc(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Dr(n,e),n=n.sibling;return q(da,1&da.current|2),t.child}e=e.sibling}null!==i.tail&&ne()>Al&&(t.flags|=128,r=!0,nc(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ha(o))){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,tc(t,e),nc(i,!0),null===i.tail&&"hidden"===i.tailMode&&!o.alternate&&!si)return rc(t),null}else 2*ne()-i.renderingStartTime>Al&&536870912!==n&&(t.flags|=128,r=!0,nc(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(null!==(e=i.last)?e.sibling=o:t.child=o,i.last=o)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ne(),t.sibling=null,e=da.current,q(da,r?1&e|2:1&e),t):(rc(t),null);case 22:case 23:return ua(t),vo(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?0!==(536870912&n)&&0===(128&t.flags)&&(rc(t),6&t.subtreeFlags&&(t.flags|=8192)):rc(t),null!==(n=t.updateQueue)&&tc(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&z(qi),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),_i(Ri),rc(t),null;case 25:case 30:return null}throw Error(a(156,t.tag))}function oc(e,t){switch(ri(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return _i(Ri),G(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return Z(t),null;case 13:if(ua(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));pi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return z(da),null;case 4:return G(),null;case 10:return _i(t.type),null;case 22:case 23:return ua(t),vo(),null!==e&&z(qi),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return _i(Ri),null;default:return null}}function sc(e,t){switch(ri(t),t.tag){case 3:_i(Ri),G();break;case 26:case 27:case 5:Z(t);break;case 4:G();break;case 13:ua(t);break;case 19:z(da);break;case 10:_i(t.type);break;case 22:case 23:ua(t),vo(),null!==e&&z(qi);break;case 24:_i(Ri)}}function ac(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var o=n.create,s=n.inst;r=o(),s.destroy=r}n=n.next}while(n!==i)}}catch(a){du(t,t.return,a)}}function cc(e,t,n){try{var r=t.updateQueue,i=null!==r?r.lastEffect:null;if(null!==i){var o=i.next;r=o;do{if((r.tag&e)===e){var s=r.inst,a=s.destroy;if(void 0!==a){s.destroy=void 0,i=t;var c=n,l=a;try{l()}catch(u){du(i,c,u)}}}r=r.next}while(r!==o)}}catch(u){du(t,t.return,u)}}function lc(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{po(t,n)}catch(r){du(e,e.return,r)}}}function uc(e,t,n){n.props=ya(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){du(e,t,r)}}function dc(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"===typeof n?e.refCleanup=n(r):n.current=r}}catch(i){du(e,t,i)}}function hc(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"===typeof r)try{r()}catch(i){du(e,t,i)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"===typeof n)try{n(null)}catch(o){du(e,t,o)}else n.current=null}function fc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(i){du(e,e.return,i)}}function pc(e,t,n){try{var r=e.stateNode;!function(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,o=null,s=null,c=null,l=null,u=null,d=null;for(p in n){var h=n[p];if(n.hasOwnProperty(p)&&null!=h)switch(p){case"checked":case"value":break;case"defaultValue":l=h;default:r.hasOwnProperty(p)||Xu(e,t,p,null,r,h)}}for(var f in r){var p=r[f];if(h=n[f],r.hasOwnProperty(f)&&(null!=p||null!=h))switch(f){case"type":o=p;break;case"name":i=p;break;case"checked":u=p;break;case"defaultChecked":d=p;break;case"value":s=p;break;case"defaultValue":c=p;break;case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(a(137,t));break;default:p!==h&&Xu(e,t,f,p,r,h)}}return void yt(e,s,c,l,u,d,o,i);case"select":for(o in p=s=c=f=null,n)if(l=n[o],n.hasOwnProperty(o)&&null!=l)switch(o){case"value":break;case"multiple":p=l;default:r.hasOwnProperty(o)||Xu(e,t,o,null,r,l)}for(i in r)if(o=r[i],l=n[i],r.hasOwnProperty(i)&&(null!=o||null!=l))switch(i){case"value":f=o;break;case"defaultValue":c=o;break;case"multiple":s=o;default:o!==l&&Xu(e,t,i,o,r,l)}return t=c,n=s,r=p,void(null!=f?wt(e,!!n,f,!1):!!r!==!!n&&(null!=t?wt(e,!!n,t,!0):wt(e,!!n,n?[]:"",!1)));case"textarea":for(c in p=f=null,n)if(i=n[c],n.hasOwnProperty(c)&&null!=i&&!r.hasOwnProperty(c))switch(c){case"value":case"children":break;default:Xu(e,t,c,null,r,i)}for(s in r)if(i=r[s],o=n[s],r.hasOwnProperty(s)&&(null!=i||null!=o))switch(s){case"value":f=i;break;case"defaultValue":p=i;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=i)throw Error(a(91));break;default:i!==o&&Xu(e,t,s,i,r,o)}return void _t(e,f,p);case"option":for(var m in n)if(f=n[m],n.hasOwnProperty(m)&&null!=f&&!r.hasOwnProperty(m))if("selected"===m)e.selected=!1;else Xu(e,t,m,null,r,f);for(l in r)if(f=r[l],p=n[l],r.hasOwnProperty(l)&&f!==p&&(null!=f||null!=p))if("selected"===l)e.selected=f&&"function"!==typeof f&&"symbol"!==typeof f;else Xu(e,t,l,f,r,p);return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var g in n)f=n[g],n.hasOwnProperty(g)&&null!=f&&!r.hasOwnProperty(g)&&Xu(e,t,g,null,r,f);for(u in r)if(f=r[u],p=n[u],r.hasOwnProperty(u)&&f!==p&&(null!=f||null!=p))switch(u){case"children":case"dangerouslySetInnerHTML":if(null!=f)throw Error(a(137,t));break;default:Xu(e,t,u,f,r,p)}return;default:if(Pt(t)){for(var y in n)f=n[y],n.hasOwnProperty(y)&&void 0!==f&&!r.hasOwnProperty(y)&&ed(e,t,y,void 0,r,f);for(d in r)f=r[d],p=n[d],!r.hasOwnProperty(d)||f===p||void 0===f&&void 0===p||ed(e,t,d,f,r,p);return}}for(var b in n)f=n[b],n.hasOwnProperty(b)&&null!=f&&!r.hasOwnProperty(b)&&Xu(e,t,b,null,r,f);for(h in r)f=r[h],p=n[h],!r.hasOwnProperty(h)||f===p||null==f&&null==p||Xu(e,t,h,f,r,p)}(r,e.type,n,t),r[Be]=t}catch(i){du(e,e.return,i)}}function mc(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&pd(e.type)||4===e.tag}function gc(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||mc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&pd(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function yc(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Qu));else if(4!==r&&(27===r&&pd(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(yc(e,t,n),e=e.sibling;null!==e;)yc(e,t,n),e=e.sibling}function bc(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&pd(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(bc(e,t,n),e=e.sibling;null!==e;)bc(e,t,n),e=e.sibling}function vc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);td(t,r,n),t[Re]=e,t[Be]=n}catch(o){du(e,e.return,o)}}var wc=!1,_c=!1,xc=!1,Ac="function"===typeof WeakSet?WeakSet:Set,kc=null;function Ec(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Lc(e,n),4&r&&ac(5,n);break;case 1:if(Lc(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(s){du(n,n.return,s)}else{var i=ya(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(a){du(n,n.return,a)}}64&r&&lc(n),512&r&&dc(n,n.return);break;case 3:if(Lc(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{po(e,t)}catch(s){du(n,n.return,s)}}break;case 27:null===t&&4&r&&vc(n);case 26:case 5:Lc(e,n),null===t&&4&r&&fc(n),512&r&&dc(n,n.return);break;case 12:Lc(e,n);break;case 13:Lc(e,n),4&r&&Tc(e,n),64&r&&(null!==(e=n.memoizedState)&&(null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$?"!==e.data||"complete"===n.readyState)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=mu.bind(null,n))));break;case 22:if(!(r=null!==n.memoizedState||wc)){t=null!==t&&null!==t.memoizedState||_c,i=wc;var o=_c;wc=r,(_c=t)&&!o?Dc(e,n,0!==(8772&n.subtreeFlags)):Lc(e,n),wc=i,_c=o}break;case 30:break;default:Lc(e,n)}}function Sc(e){var t=e.alternate;null!==t&&(e.alternate=null,Sc(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&ze(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Pc=null,Cc=!1;function Ic(e,t,n){for(n=n.child;null!==n;)Mc(e,t,n),n=n.sibling}function Mc(e,t,n){if(he&&"function"===typeof he.onCommitFiberUnmount)try{he.onCommitFiberUnmount(de,n)}catch(o){}switch(n.tag){case 26:_c||hc(n,t),Ic(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:_c||hc(n,t);var r=Pc,i=Cc;pd(n.type)&&(Pc=n.stateNode,Cc=!1),Ic(e,t,n),xd(n.stateNode),Pc=r,Cc=i;break;case 5:_c||hc(n,t);case 6:if(r=Pc,i=Cc,Pc=null,Ic(e,t,n),Cc=i,null!==(Pc=r))if(Cc)try{(9===Pc.nodeType?Pc.body:"HTML"===Pc.nodeName?Pc.ownerDocument.body:Pc).removeChild(n.stateNode)}catch(s){du(n,t,s)}else try{Pc.removeChild(n.stateNode)}catch(s){du(n,t,s)}break;case 18:null!==Pc&&(Cc?(md(9===(e=Pc).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),Ch(e)):md(Pc,n.stateNode));break;case 4:r=Pc,i=Cc,Pc=n.stateNode.containerInfo,Cc=!0,Ic(e,t,n),Pc=r,Cc=i;break;case 0:case 11:case 14:case 15:_c||cc(2,n,t),_c||cc(4,n,t),Ic(e,t,n);break;case 1:_c||(hc(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount&&uc(n,t,r)),Ic(e,t,n);break;case 21:Ic(e,t,n);break;case 22:_c=(r=_c)||null!==n.memoizedState,Ic(e,t,n),_c=r;break;default:Ic(e,t,n)}}function Tc(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&(null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))))try{Ch(e)}catch(n){du(t,t.return,n)}}function Oc(e,t){var n=function(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new Ac),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new Ac),t;default:throw Error(a(435,e.tag))}}(e);t.forEach(function(t){var r=gu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}function Rc(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r],o=e,s=t,c=s;e:for(;null!==c;){switch(c.tag){case 27:if(pd(c.type)){Pc=c.stateNode,Cc=!1;break e}break;case 5:Pc=c.stateNode,Cc=!1;break e;case 3:case 4:Pc=c.stateNode.containerInfo,Cc=!0;break e}c=c.return}if(null===Pc)throw Error(a(160));Mc(o,s,i),Pc=null,Cc=!1,null!==(o=i.alternate)&&(o.return=null),i.return=null}if(13878&t.subtreeFlags)for(t=t.child;null!==t;)Nc(t,e),t=t.sibling}var Bc=null;function Nc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Rc(t,e),Uc(e),4&r&&(cc(3,e,e.return),ac(3,e),cc(5,e,e.return));break;case 1:Rc(t,e),Uc(e),512&r&&(_c||null===n||hc(n,n.return)),64&r&&wc&&(null!==(e=e.updateQueue)&&(null!==(r=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?r:n.concat(r))));break;case 26:var i=Bc;if(Rc(t,e),Uc(e),512&r&&(_c||null===n||hc(n,n.return)),4&r){var o=null!==n?n.memoizedState:null;if(r=e.memoizedState,null===n)if(null===r)if(null===e.stateNode){e:{r=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(r){case"title":(!(o=i.getElementsByTagName("title")[0])||o[De]||o[Re]||"http://www.w3.org/2000/svg"===o.namespaceURI||o.hasAttribute("itemprop"))&&(o=i.createElement(r),i.head.insertBefore(o,i.querySelector("head > title"))),td(o,r,n),o[Re]=e,$e(o),r=o;break e;case"link":var s=Dd("link","href",i).get(r+(n.href||""));if(s)for(var c=0;c<s.length;c++)if((o=s[c]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&o.getAttribute("rel")===(null==n.rel?null:n.rel)&&o.getAttribute("title")===(null==n.title?null:n.title)&&o.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){s.splice(c,1);break t}td(o=i.createElement(r),r,n),i.head.appendChild(o);break;case"meta":if(s=Dd("meta","content",i).get(r+(n.content||"")))for(c=0;c<s.length;c++)if((o=s[c]).getAttribute("content")===(null==n.content?null:""+n.content)&&o.getAttribute("name")===(null==n.name?null:n.name)&&o.getAttribute("property")===(null==n.property?null:n.property)&&o.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&o.getAttribute("charset")===(null==n.charSet?null:n.charSet)){s.splice(c,1);break t}td(o=i.createElement(r),r,n),i.head.appendChild(o);break;default:throw Error(a(468,r))}o[Re]=e,$e(o),r=o}e.stateNode=r}else zd(i,e.type,e.stateNode);else e.stateNode=Nd(i,r,e.memoizedProps);else o!==r?(null===o?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):o.count--,null===r?zd(i,e.type,e.stateNode):Nd(i,r,e.memoizedProps)):null===r&&null!==e.stateNode&&pc(e,e.memoizedProps,n.memoizedProps)}break;case 27:Rc(t,e),Uc(e),512&r&&(_c||null===n||hc(n,n.return)),null!==n&&4&r&&pc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Rc(t,e),Uc(e),512&r&&(_c||null===n||hc(n,n.return)),32&e.flags){i=e.stateNode;try{At(i,"")}catch(p){du(e,e.return,p)}}4&r&&null!=e.stateNode&&pc(e,i=e.memoizedProps,null!==n?n.memoizedProps:i),1024&r&&(xc=!0);break;case 6:if(Rc(t,e),Uc(e),4&r){if(null===e.stateNode)throw Error(a(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(p){du(e,e.return,p)}}break;case 3:if(Fd=null,i=Bc,Bc=Ed(t.containerInfo),Rc(t,e),Bc=i,Uc(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ch(t.containerInfo)}catch(p){du(e,e.return,p)}xc&&(xc=!1,jc(e));break;case 4:r=Bc,Bc=Ed(e.stateNode.containerInfo),Rc(t,e),Uc(e),Bc=r;break;case 12:default:Rc(t,e),Uc(e);break;case 13:Rc(t,e),Uc(e),8192&e.child.flags&&null!==e.memoizedState!==(null!==n&&null!==n.memoizedState)&&(xl=ne()),4&r&&(null!==(r=e.updateQueue)&&(e.updateQueue=null,Oc(e,r)));break;case 22:i=null!==e.memoizedState;var l=null!==n&&null!==n.memoizedState,u=wc,d=_c;if(wc=u||i,_c=d||l,Rc(t,e),_c=d,wc=u,Uc(e),8192&r)e:for(t=e.stateNode,t._visibility=i?-2&t._visibility:1|t._visibility,i&&(null===n||l||wc||_c||Fc(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){l=n=t;try{if(o=l.stateNode,i)"function"===typeof(s=o.style).setProperty?s.setProperty("display","none","important"):s.display="none";else{c=l.stateNode;var h=l.memoizedProps.style,f=void 0!==h&&null!==h&&h.hasOwnProperty("display")?h.display:null;c.style.display=null==f||"boolean"===typeof f?"":(""+f).trim()}}catch(p){du(l,l.return,p)}}}else if(6===t.tag){if(null===n){l=t;try{l.stateNode.nodeValue=i?"":l.memoizedProps}catch(p){du(l,l.return,p)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&r&&(null!==(r=e.updateQueue)&&(null!==(n=r.retryQueue)&&(r.retryQueue=null,Oc(e,n))));break;case 19:Rc(t,e),Uc(e),4&r&&(null!==(r=e.updateQueue)&&(e.updateQueue=null,Oc(e,r)));case 30:case 21:}}function Uc(e){var t=e.flags;if(2&t){try{for(var n,r=e.return;null!==r;){if(mc(r)){n=r;break}r=r.return}if(null==n)throw Error(a(160));switch(n.tag){case 27:var i=n.stateNode;bc(e,gc(e),i);break;case 5:var o=n.stateNode;32&n.flags&&(At(o,""),n.flags&=-33),bc(e,gc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;yc(e,gc(e),s);break;default:throw Error(a(161))}}catch(c){du(e,e.return,c)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function jc(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;jc(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function Lc(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)Ec(e,t.alternate,t),t=t.sibling}function Fc(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:cc(4,t,t.return),Fc(t);break;case 1:hc(t,t.return);var n=t.stateNode;"function"===typeof n.componentWillUnmount&&uc(t,t.return,n),Fc(t);break;case 27:xd(t.stateNode);case 26:case 5:hc(t,t.return),Fc(t);break;case 22:null===t.memoizedState&&Fc(t);break;default:Fc(t)}e=e.sibling}}function Dc(e,t,n){for(n=n&&0!==(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,i=e,o=t,s=o.flags;switch(o.tag){case 0:case 11:case 15:Dc(i,o,n),ac(4,o);break;case 1:if(Dc(i,o,n),"function"===typeof(i=(r=o).stateNode).componentDidMount)try{i.componentDidMount()}catch(l){du(r,r.return,l)}if(null!==(i=(r=o).updateQueue)){var a=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(null!==c)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)fo(c[i],a)}catch(l){du(r,r.return,l)}}n&&64&s&&lc(o),dc(o,o.return);break;case 27:vc(o);case 26:case 5:Dc(i,o,n),n&&null===r&&4&s&&fc(o),dc(o,o.return);break;case 12:Dc(i,o,n);break;case 13:Dc(i,o,n),n&&4&s&&Tc(i,o);break;case 22:null===o.memoizedState&&Dc(i,o,n),dc(o,o.return);break;case 30:break;default:Dc(i,o,n)}t=t.sibling}}function zc(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&Ni(n))}function qc(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Ni(e))}function Hc(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)Wc(e,t,n,r),t=t.sibling}function Wc(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Hc(e,t,n,r),2048&i&&ac(9,t);break;case 1:case 13:default:Hc(e,t,n,r);break;case 3:Hc(e,t,n,r),2048&i&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Ni(e)));break;case 12:if(2048&i){Hc(e,t,n,r),e=t.stateNode;try{var o=t.memoizedProps,s=o.id,a=o.onPostCommit;"function"===typeof a&&a(s,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(c){du(t,t.return,c)}}else Hc(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,s=t.alternate,null!==t.memoizedState?2&o._visibility?Hc(e,t,n,r):$c(e,t):2&o._visibility?Hc(e,t,n,r):(o._visibility|=2,Kc(e,t,n,r,0!==(10256&t.subtreeFlags))),2048&i&&zc(s,t);break;case 24:Hc(e,t,n,r),2048&i&&qc(t.alternate,t)}}function Kc(e,t,n,r,i){for(i=i&&0!==(10256&t.subtreeFlags),t=t.child;null!==t;){var o=e,s=t,a=n,c=r,l=s.flags;switch(s.tag){case 0:case 11:case 15:Kc(o,s,a,c,i),ac(8,s);break;case 23:break;case 22:var u=s.stateNode;null!==s.memoizedState?2&u._visibility?Kc(o,s,a,c,i):$c(o,s):(u._visibility|=2,Kc(o,s,a,c,i)),i&&2048&l&&zc(s.alternate,s);break;case 24:Kc(o,s,a,c,i),i&&2048&l&&qc(s.alternate,s);break;default:Kc(o,s,a,c,i)}t=t.sibling}}function $c(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:$c(n,r),2048&i&&zc(r.alternate,r);break;case 24:$c(n,r),2048&i&&qc(r.alternate,r);break;default:$c(n,r)}t=t.sibling}}var Vc=8192;function Gc(e){if(e.subtreeFlags&Vc)for(e=e.child;null!==e;)Jc(e),e=e.sibling}function Jc(e){switch(e.tag){case 26:Gc(e),e.flags&Vc&&null!==e.memoizedState&&function(e,t,n){if(null===Hd)throw Error(a(475));var r=Hd;if("stylesheet"===t.type&&("string"!==typeof n.media||!1!==matchMedia(n.media).matches)&&0===(4&t.state.loading)){if(null===t.instance){var i=Md(n.href),o=e.querySelector(Td(i));if(o)return null!==(e=o._p)&&"object"===typeof e&&"function"===typeof e.then&&(r.count++,r=Kd.bind(r),e.then(r,r)),t.state.loading|=4,t.instance=o,void $e(o);o=e.ownerDocument||e,n=Od(n),(i=Ad.get(i))&&jd(n,i),$e(o=o.createElement("link"));var s=o;s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),td(o,"link",n),t.instance=o}null===r.stylesheets&&(r.stylesheets=new Map),r.stylesheets.set(t,e),(e=t.state.preload)&&0===(3&t.state.loading)&&(r.count++,t=Kd.bind(r),e.addEventListener("load",t),e.addEventListener("error",t))}}(Bc,e.memoizedState,e.memoizedProps);break;case 5:default:Gc(e);break;case 3:case 4:var t=Bc;Bc=Ed(e.stateNode.containerInfo),Gc(e),Bc=t;break;case 22:null===e.memoizedState&&(null!==(t=e.alternate)&&null!==t.memoizedState?(t=Vc,Vc=16777216,Gc(e),Vc=t):Gc(e))}}function Zc(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function Yc(e){var t=e.deletions;if(0!==(16&e.flags)){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];kc=r,el(r,e)}Zc(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)Qc(e),e=e.sibling}function Qc(e){switch(e.tag){case 0:case 11:case 15:Yc(e),2048&e.flags&&cc(9,e,e.return);break;case 3:case 12:default:Yc(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,Xc(e)):Yc(e)}}function Xc(e){var t=e.deletions;if(0!==(16&e.flags)){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];kc=r,el(r,e)}Zc(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:cc(8,t,t.return),Xc(t);break;case 22:2&(n=t.stateNode)._visibility&&(n._visibility&=-3,Xc(t));break;default:Xc(t)}e=e.sibling}}function el(e,t){for(;null!==kc;){var n=kc;switch(n.tag){case 0:case 11:case 15:cc(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:Ni(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,kc=r;else e:for(n=e;null!==kc;){var i=(r=kc).sibling,o=r.return;if(Sc(r),r===n){kc=null;break e}if(null!==i){i.return=o,kc=i;break e}kc=o}}}var tl={getCacheForType:function(e){var t=Pi(Ri),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n}},nl="function"===typeof WeakMap?WeakMap:Map,rl=0,il=null,ol=null,sl=0,al=0,cl=null,ll=!1,ul=!1,dl=!1,hl=0,fl=0,pl=0,ml=0,gl=0,yl=0,bl=0,vl=null,wl=null,_l=!1,xl=0,Al=1/0,kl=null,El=null,Sl=0,Pl=null,Cl=null,Il=0,Ml=0,Tl=null,Ol=null,Rl=0,Bl=null;function Nl(){if(0!==(2&rl)&&0!==sl)return sl&-sl;if(null!==N.T){return 0!==Li?Li:Mu()}return Te()}function Ul(){0===yl&&(yl=0===(536870912&sl)||si?Ae():536870912);var e=oa.current;return null!==e&&(e.flags|=32),yl}function jl(e,t,n){(e!==il||2!==al&&9!==al)&&null===e.cancelPendingCommit||(Wl(e,0),zl(e,sl,yl,!1)),Se(e,n),0!==(2&rl)&&e===il||(e===il&&(0===(2&rl)&&(ml|=n),4===fl&&zl(e,sl,yl,!1)),Au(e))}function Ll(e,t,n){if(0!==(6&rl))throw Error(a(327));for(var r=!n&&0===(124&t)&&0===(t&e.expiredLanes)||_e(e,t),i=r?function(e,t){var n=rl;rl|=2;var r=$l(),i=Vl();il!==e||sl!==t?(kl=null,Al=ne()+500,Wl(e,t)):ul=_e(e,t);e:for(;;)try{if(0!==al&&null!==ol){t=ol;var o=cl;t:switch(al){case 1:al=0,cl=null,eu(e,t,o,1);break;case 2:case 9:if(Zi(o)){al=0,cl=null,Xl(t);break}t=function(){2!==al&&9!==al||il!==e||(al=7),Au(e)},o.then(t,t);break e;case 3:al=7;break e;case 4:al=5;break e;case 7:Zi(o)?(al=0,cl=null,Xl(t)):(al=0,cl=null,eu(e,t,o,7));break;case 5:var s=null;switch(ol.tag){case 26:s=ol.memoizedState;case 5:case 27:var c=ol;if(!s||qd(s)){al=0,cl=null;var l=c.sibling;if(null!==l)ol=l;else{var u=c.return;null!==u?(ol=u,tu(u)):ol=null}break t}}al=0,cl=null,eu(e,t,o,5);break;case 6:al=0,cl=null,eu(e,t,o,6);break;case 8:Hl(),fl=6;break e;default:throw Error(a(462))}}Yl();break}catch(d){Kl(e,d)}return vi=bi=null,N.H=r,N.A=i,rl=n,null!==ol?0:(il=null,sl=0,Ir(),fl)}(e,t):Jl(e,t,!0),o=r;;){if(0===i){ul&&!r&&zl(e,t,0,!1);break}if(n=e.current.alternate,!o||Dl(n)){if(2===i){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=0!==(s=-536870913&e.pendingLanes)?s:536870912&s?536870912:0;if(0!==s){t=s;e:{var c=e;i=vl;var l=c.current.memoizedState.isDehydrated;if(l&&(Wl(c,s).flags|=256),2!==(s=Jl(c,s,!1))){if(dl&&!l){c.errorRecoveryDisabledLanes|=o,ml|=o,i=4;break e}o=wl,wl=i,null!==o&&(null===wl?wl=o:wl.push.apply(wl,o))}i=s}if(o=!1,2!==i)continue}}if(1===i){Wl(e,0),zl(e,t,0,!0);break}e:{switch(r=e,o=i){case 0:case 1:throw Error(a(345));case 4:if((4194048&t)!==t)break;case 6:zl(r,t,yl,!ll);break e;case 2:wl=null;break;case 3:case 5:break;default:throw Error(a(329))}if((62914560&t)===t&&10<(i=xl+300-ne())){if(zl(r,t,yl,!ll),0!==we(r,0,!0))break e;r.timeoutHandle=ld(Fl.bind(null,r,n,wl,kl,_l,t,yl,ml,bl,ll,o,2,-0,0),i)}else Fl(r,n,wl,kl,_l,t,yl,ml,bl,ll,o,0,-0,0)}break}i=Jl(e,t,!1),o=!1}Au(e)}function Fl(e,t,n,r,i,o,s,c,l,u,d,h,f,p){if(e.timeoutHandle=-1,(8192&(h=t.subtreeFlags)||16785408===(16785408&h))&&(Hd={stylesheets:null,count:0,unsuspend:Wd},Jc(t),null!==(h=function(){if(null===Hd)throw Error(a(475));var e=Hd;return e.stylesheets&&0===e.count&&Vd(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&Vd(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}())))return e.cancelPendingCommit=h(ru.bind(null,e,t,o,n,r,i,s,c,l,d,1,f,p)),void zl(e,o,s,!u);ru(e,t,o,n,r,i,s,c,l)}function Dl(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&(null!==(n=t.updateQueue)&&null!==(n=n.stores)))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Zn(o(),i))return!1}catch(s){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function zl(e,t,n,r){t&=~gl,t&=~ml,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var o=31-pe(i),s=1<<o;r[o]=-1,i&=~s}0!==n&&Pe(e,n,t)}function ql(){return 0!==(6&rl)||(ku(0,!1),!1)}function Hl(){if(null!==ol){if(0===al)var e=ol.return;else vi=bi=null,Fo(e=ol),Zs=null,Ys=0,e=ol;for(;null!==e;)sc(e.alternate,e),e=e.return;ol=null}}function Wl(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,ud(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),Hl(),il=e,ol=n=Fr(e.current,null),sl=t,al=0,cl=null,ll=!1,ul=_e(e,t),dl=!1,bl=yl=gl=ml=pl=fl=0,wl=vl=null,_l=!1,0!==(8&t)&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var i=31-pe(r),o=1<<i;t|=e[i],r&=~o}return hl=t,Ir(),n}function Kl(e,t){_o=null,N.H=$s,t===$i||t===Gi?(t=eo(),al=3):t===Vi?(t=eo(),al=4):al=t===Pa?8:null!==t&&"object"===typeof t&&"function"===typeof t.then?6:1,cl=t,null===ol&&(fl=1,xa(e,Er(t,e.current)))}function $l(){var e=N.H;return N.H=$s,null===e?$s:e}function Vl(){var e=N.A;return N.A=tl,e}function Gl(){fl=4,ll||(4194048&sl)!==sl&&null!==oa.current||(ul=!0),0===(134217727&pl)&&0===(134217727&ml)||null===il||zl(il,sl,yl,!1)}function Jl(e,t,n){var r=rl;rl|=2;var i=$l(),o=Vl();il===e&&sl===t||(kl=null,Wl(e,t)),t=!1;var s=fl;e:for(;;)try{if(0!==al&&null!==ol){var a=ol,c=cl;switch(al){case 8:Hl(),s=6;break e;case 3:case 2:case 9:case 6:null===oa.current&&(t=!0);var l=al;if(al=0,cl=null,eu(e,a,c,l),n&&ul){s=0;break e}break;default:l=al,al=0,cl=null,eu(e,a,c,l)}}Zl(),s=fl;break}catch(u){Kl(e,u)}return t&&e.shellSuspendCounter++,vi=bi=null,rl=r,N.H=i,N.A=o,null===ol&&(il=null,sl=0,Ir()),s}function Zl(){for(;null!==ol;)Ql(ol)}function Yl(){for(;null!==ol&&!ee();)Ql(ol)}function Ql(e){var t=Qa(e.alternate,e,hl);e.memoizedProps=e.pendingProps,null===t?tu(e):ol=t}function Xl(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=ja(n,t,t.pendingProps,t.type,void 0,sl);break;case 11:t=ja(n,t,t.pendingProps,t.type.render,t.ref,sl);break;case 5:Fo(t);default:sc(n,t),t=Qa(n,t=ol=Dr(t,hl),hl)}e.memoizedProps=e.pendingProps,null===t?tu(e):ol=t}function eu(e,t,n,r){vi=bi=null,Fo(t),Zs=null,Ys=0;var i=t.return;try{if(function(e,t,n,r,i){if(n.flags|=32768,null!==r&&"object"===typeof r&&"function"===typeof r.then){if(null!==(t=n.alternate)&&ki(t,n,i,!0),null!==(n=oa.current)){switch(n.tag){case 13:return null===sa?Gl():null===n.alternate&&0===fl&&(fl=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===Ji?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([r]):t.add(r),hu(e,r,i)),!1;case 22:return n.flags|=65536,r===Ji?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([r]):n.add(r),hu(e,r,i)),!1}throw Error(a(435,n.tag))}return hu(e,r,i),Gl(),!1}if(si)return null!==(t=oa.current)?(0===(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==li&&gi(Er(e=Error(a(422),{cause:r}),n))):(r!==li&&gi(Er(t=Error(a(423),{cause:r}),n)),(e=e.current.alternate).flags|=65536,i&=-i,e.lanes|=i,r=Er(r,n),co(e,i=ka(e.stateNode,r,i)),4!==fl&&(fl=2)),!1;var o=Error(a(520),{cause:r});if(o=Er(o,n),null===vl?vl=[o]:vl.push(o),4!==fl&&(fl=2),null===t)return!0;r=Er(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,co(n,e=ka(n.stateNode,r,e)),!1;case 1:if(t=n.type,o=n.stateNode,0===(128&n.flags)&&("function"===typeof t.getDerivedStateFromError||null!==o&&"function"===typeof o.componentDidCatch&&(null===El||!El.has(o))))return n.flags|=65536,i&=-i,n.lanes|=i,Sa(i=Ea(i),e,n,r),co(n,i),!1}n=n.return}while(null!==n);return!1}(e,i,t,n,sl))return fl=1,xa(e,Er(n,e.current)),void(ol=null)}catch(o){if(null!==i)throw ol=i,o;return fl=1,xa(e,Er(n,e.current)),void(ol=null)}32768&t.flags?(si||1===r?e=!0:ul||0!==(536870912&sl)?e=!1:(ll=e=!0,(2===r||9===r||3===r||6===r)&&(null!==(r=oa.current)&&13===r.tag&&(r.flags|=16384))),nu(t,e)):tu(t)}function tu(e){var t=e;do{if(0!==(32768&t.flags))return void nu(t,ll);e=t.return;var n=ic(t.alternate,t,hl);if(null!==n)return void(ol=n);if(null!==(t=t.sibling))return void(ol=t);ol=t=e}while(null!==t);0===fl&&(fl=5)}function nu(e,t){do{var n=oc(e.alternate,e);if(null!==n)return n.flags&=32767,void(ol=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(ol=e);ol=e=n}while(null!==e);fl=6,ol=null}function ru(e,t,n,r,i,o,s,c,l){e.cancelPendingCommit=null;do{cu()}while(0!==Sl);if(0!==(6&rl))throw Error(a(327));if(null!==t){if(t===e.current)throw Error(a(177));if(o=t.lanes|t.childLanes,function(e,t,n,r,i,o){var s=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var a=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=s&~n;0<n;){var u=31-pe(n),d=1<<u;a[u]=0,c[u]=-1;var h=l[u];if(null!==h)for(l[u]=null,u=0;u<h.length;u++){var f=h[u];null!==f&&(f.lane&=-536870913)}n&=~d}0!==r&&Pe(e,r,0),0!==o&&0===i&&0!==e.tag&&(e.suspendedLanes|=o&~(s&~t))}(e,n,o|=Cr,s,c,l),e===il&&(ol=il=null,sl=0),Cl=t,Pl=e,Il=n,Ml=o,Tl=i,Ol=r,0!==(10256&t.subtreeFlags)||0!==(10256&t.flags)?(e.callbackNode=null,e.callbackPriority=0,Q(se,function(){return lu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=0!==(13878&t.flags),0!==(13878&t.subtreeFlags)||r){r=N.T,N.T=null,i=U.p,U.p=2,s=rl,rl|=4;try{!function(e,t){if(e=e.containerInfo,nd=rh,nr(e=tr(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(g){n=null;break e}var s=0,c=-1,l=-1,u=0,d=0,h=e,f=null;t:for(;;){for(var p;h!==n||0!==i&&3!==h.nodeType||(c=s+i),h!==o||0!==r&&3!==h.nodeType||(l=s+r),3===h.nodeType&&(s+=h.nodeValue.length),null!==(p=h.firstChild);)f=h,h=p;for(;;){if(h===e)break t;if(f===n&&++u===i&&(c=s),f===o&&++d===r&&(l=s),null!==(p=h.nextSibling))break;f=(h=f).parentNode}h=p}n=-1===c||-1===l?null:{start:c,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(rd={focusedElem:e,selectionRange:n},rh=!1,kc=t;null!==kc;)if(e=(t=kc).child,0!==(1024&t.subtreeFlags)&&null!==e)e.return=t,kc=e;else for(;null!==kc;){switch(o=(t=kc).alternate,e=t.flags,t.tag){case 0:case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(0!==(1024&e)&&null!==o){e=void 0,n=t,i=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var m=ya(n.type,i,(n.elementType,n.type));e=r.getSnapshotBeforeUpdate(m,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(y){du(n,n.return,y)}}break;case 3:if(0!==(1024&e))if(9===(n=(e=t.stateNode.containerInfo).nodeType))gd(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":gd(e);break;default:e.textContent=""}break;default:if(0!==(1024&e))throw Error(a(163))}if(null!==(e=t.sibling)){e.return=t.return,kc=e;break}kc=t.return}}(e,t)}finally{rl=s,U.p=i,N.T=r}}Sl=1,iu(),ou(),su()}}function iu(){if(1===Sl){Sl=0;var e=Pl,t=Cl,n=0!==(13878&t.flags);if(0!==(13878&t.subtreeFlags)||n){n=N.T,N.T=null;var r=U.p;U.p=2;var i=rl;rl|=4;try{Nc(t,e);var o=rd,s=tr(e.containerInfo),a=o.focusedElem,c=o.selectionRange;if(s!==a&&a&&a.ownerDocument&&er(a.ownerDocument.documentElement,a)){if(null!==c&&nr(a)){var l=c.start,u=c.end;if(void 0===u&&(u=l),"selectionStart"in a)a.selectionStart=l,a.selectionEnd=Math.min(u,a.value.length);else{var d=a.ownerDocument||document,h=d&&d.defaultView||window;if(h.getSelection){var f=h.getSelection(),p=a.textContent.length,m=Math.min(c.start,p),g=void 0===c.end?m:Math.min(c.end,p);!f.extend&&m>g&&(s=g,g=m,m=s);var y=Xn(a,m),b=Xn(a,g);if(y&&b&&(1!==f.rangeCount||f.anchorNode!==y.node||f.anchorOffset!==y.offset||f.focusNode!==b.node||f.focusOffset!==b.offset)){var v=d.createRange();v.setStart(y.node,y.offset),f.removeAllRanges(),m>g?(f.addRange(v),f.extend(b.node,b.offset)):(v.setEnd(b.node,b.offset),f.addRange(v))}}}}for(d=[],f=a;f=f.parentNode;)1===f.nodeType&&d.push({element:f,left:f.scrollLeft,top:f.scrollTop});for("function"===typeof a.focus&&a.focus(),a=0;a<d.length;a++){var w=d[a];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}rh=!!nd,rd=nd=null}finally{rl=i,U.p=r,N.T=n}}e.current=t,Sl=2}}function ou(){if(2===Sl){Sl=0;var e=Pl,t=Cl,n=0!==(8772&t.flags);if(0!==(8772&t.subtreeFlags)||n){n=N.T,N.T=null;var r=U.p;U.p=2;var i=rl;rl|=4;try{Ec(e,t.alternate,t)}finally{rl=i,U.p=r,N.T=n}}Sl=3}}function su(){if(4===Sl||3===Sl){Sl=0,te();var e=Pl,t=Cl,n=Il,r=Ol;0!==(10256&t.subtreeFlags)||0!==(10256&t.flags)?Sl=5:(Sl=0,Cl=Pl=null,au(e,e.pendingLanes));var i=e.pendingLanes;if(0===i&&(El=null),Me(n),t=t.stateNode,he&&"function"===typeof he.onCommitFiberRoot)try{he.onCommitFiberRoot(de,t,void 0,128===(128&t.current.flags))}catch(c){}if(null!==r){t=N.T,i=U.p,U.p=2,N.T=null;try{for(var o=e.onRecoverableError,s=0;s<r.length;s++){var a=r[s];o(a.value,{componentStack:a.stack})}}finally{N.T=t,U.p=i}}0!==(3&Il)&&cu(),Au(e),i=e.pendingLanes,0!==(4194090&n)&&0!==(42&i)?e===Bl?Rl++:(Rl=0,Bl=e):Rl=0,ku(0,!1)}}function au(e,t){0===(e.pooledCacheLanes&=t)&&(null!=(t=e.pooledCache)&&(e.pooledCache=null,Ni(t)))}function cu(e){return iu(),ou(),su(),lu()}function lu(){if(5!==Sl)return!1;var e=Pl,t=Ml;Ml=0;var n=Me(Il),r=N.T,i=U.p;try{U.p=32>n?32:n,N.T=null,n=Tl,Tl=null;var o=Pl,s=Il;if(Sl=0,Cl=Pl=null,Il=0,0!==(6&rl))throw Error(a(331));var c=rl;if(rl|=4,Qc(o.current),Wc(o,o.current,s,n),rl=c,ku(0,!1),he&&"function"===typeof he.onPostCommitFiberRoot)try{he.onPostCommitFiberRoot(de,o)}catch(l){}return!0}finally{U.p=i,N.T=r,au(e,t)}}function uu(e,t,n){t=Er(n,t),null!==(e=so(e,t=ka(e.stateNode,t,2),2))&&(Se(e,2),Au(e))}function du(e,t,n){if(3===e.tag)uu(e,e,n);else for(;null!==t;){if(3===t.tag){uu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===El||!El.has(r))){e=Er(n,e),null!==(r=so(t,n=Ea(2),2))&&(Sa(n,r,t,e),Se(r,2),Au(r));break}}t=t.return}}function hu(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new nl;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(dl=!0,i.add(n),e=fu.bind(null,e,t,n),t.then(e,e))}function fu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,il===e&&(sl&n)===n&&(4===fl||3===fl&&(62914560&sl)===sl&&300>ne()-xl?0===(2&rl)&&Wl(e,0):gl|=n,bl===sl&&(bl=0)),Au(e)}function pu(e,t){0===t&&(t=ke()),null!==(e=Or(e,t))&&(Se(e,t),Au(e))}function mu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),pu(e,n)}function gu(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(a(314))}null!==r&&r.delete(t),pu(e,n)}var yu=null,bu=null,vu=!1,wu=!1,_u=!1,xu=0;function Au(e){e!==bu&&null===e.next&&(null===bu?yu=bu=e:bu=bu.next=e),wu=!0,vu||(vu=!0,hd(function(){0!==(6&rl)?Q(ie,Eu):Su()}))}function ku(e,t){if(!_u&&wu){_u=!0;do{for(var n=!1,r=yu;null!==r;){if(!t)if(0!==e){var i=r.pendingLanes;if(0===i)var o=0;else{var s=r.suspendedLanes,a=r.pingedLanes;o=(1<<31-pe(42|e)+1)-1,o=201326741&(o&=i&~(s&~a))?201326741&o|1:o?2|o:0}0!==o&&(n=!0,Iu(r,o))}else o=sl,0===(3&(o=we(r,r===il?o:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||_e(r,o)||(n=!0,Iu(r,o));r=r.next}}while(n);_u=!1}}function Eu(){Su()}function Su(){wu=vu=!1;var e=0;0!==xu&&(function(){var e=window.event;if(e&&"popstate"===e.type)return e!==cd&&(cd=e,!0);return cd=null,!1}()&&(e=xu),xu=0);for(var t=ne(),n=null,r=yu;null!==r;){var i=r.next,o=Pu(r,t);0===o?(r.next=null,null===n?yu=i:n.next=i,null===i&&(bu=n)):(n=r,(0!==e||0!==(3&o))&&(wu=!0)),r=i}ku(e,!1)}function Pu(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=-62914561&e.pendingLanes;0<o;){var s=31-pe(o),a=1<<s,c=i[s];-1===c?0!==(a&n)&&0===(a&r)||(i[s]=xe(a,t)):c<=t&&(e.expiredLanes|=a),o&=~a}if(n=sl,n=we(e,e===(t=il)?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===n||e===t&&(2===al||9===al)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&X(r),e.callbackNode=null,e.callbackPriority=0;if(0===(3&n)||_e(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&X(r),Me(n)){case 2:case 8:n=oe;break;case 32:default:n=se;break;case 268435456:n=ce}return r=Cu.bind(null,e),n=Q(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&X(r),e.callbackPriority=2,e.callbackNode=null,2}function Cu(e,t){if(0!==Sl&&5!==Sl)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(cu()&&e.callbackNode!==n)return null;var r=sl;return 0===(r=we(e,e===il?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(Ll(e,r,t),Pu(e,ne()),null!=e.callbackNode&&e.callbackNode===n?Cu.bind(null,e):null)}function Iu(e,t){if(cu())return null;Ll(e,t,!0)}function Mu(){return 0===xu&&(xu=Ae()),xu}function Tu(e){return null==e||"symbol"===typeof e||"boolean"===typeof e?null:"function"===typeof e?e:Mt(""+e)}function Ou(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}for(var Ru=0;Ru<xr.length;Ru++){var Bu=xr[Ru];Ar(Bu.toLowerCase(),"on"+(Bu[0].toUpperCase()+Bu.slice(1)))}Ar(pr,"onAnimationEnd"),Ar(mr,"onAnimationIteration"),Ar(gr,"onAnimationStart"),Ar("dblclick","onDoubleClick"),Ar("focusin","onFocus"),Ar("focusout","onBlur"),Ar(yr,"onTransitionRun"),Ar(br,"onTransitionStart"),Ar(vr,"onTransitionCancel"),Ar(wr,"onTransitionEnd"),Ze("onMouseEnter",["mouseout","mouseover"]),Ze("onMouseLeave",["mouseout","mouseover"]),Ze("onPointerEnter",["pointerout","pointerover"]),Ze("onPointerLeave",["pointerout","pointerover"]),Je("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Je("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Je("onBeforeInput",["compositionend","keypress","textInput","paste"]),Je("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Je("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Je("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Uu=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Nu));function ju(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],c=a.instance,l=a.currentTarget;if(a=a.listener,c!==o&&i.isPropagationStopped())break e;o=a,i.currentTarget=l;try{o(i)}catch(u){ba(u)}i.currentTarget=null,o=c}else for(s=0;s<r.length;s++){if(c=(a=r[s]).instance,l=a.currentTarget,a=a.listener,c!==o&&i.isPropagationStopped())break e;o=a,i.currentTarget=l;try{o(i)}catch(u){ba(u)}i.currentTarget=null,o=c}}}}function Lu(e,t){var n=t[Ue];void 0===n&&(n=t[Ue]=new Set);var r=e+"__bubble";n.has(r)||(qu(t,e,2,!1),n.add(r))}function Fu(e,t,n){var r=0;t&&(r|=4),qu(n,e,r,t)}var Du="_reactListening"+Math.random().toString(36).slice(2);function zu(e){if(!e[Du]){e[Du]=!0,Ve.forEach(function(t){"selectionchange"!==t&&(Uu.has(t)||Fu(t,!1,e),Fu(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Du]||(t[Du]=!0,Fu("selectionchange",!1,t))}}function qu(e,t,n,r){switch(uh(t)){case 2:var i=ih;break;case 8:i=oh;break;default:i=sh}n=i.bind(null,t,n,e),i=void 0,!Dt||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Hu(e,t,n,r,i){var o=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var s=r.tag;if(3===s||4===s){var a=r.stateNode.containerInfo;if(a===i)break;if(4===s)for(s=r.return;null!==s;){var c=s.tag;if((3===c||4===c)&&s.stateNode.containerInfo===i)return;s=s.return}for(;null!==a;){if(null===(s=qe(a)))return;if(5===(c=s.tag)||6===c||26===c||27===c){r=o=s;continue e}a=a.parentNode}}r=r.return}jt(function(){var r=o,i=Ot(n),s=[];e:{var a=_r.get(e);if(void 0!==a){var c=en,u=e;switch(e){case"keypress":if(0===$t(n))break e;case"keydown":case"keyup":c=gn;break;case"focusin":u="focus",c=an;break;case"focusout":u="blur",c=an;break;case"beforeblur":case"afterblur":c=an;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=on;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=sn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=bn;break;case pr:case mr:case gr:c=cn;break;case wr:c=vn;break;case"scroll":case"scrollend":c=nn;break;case"wheel":c=wn;break;case"copy":case"cut":case"paste":c=ln;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=yn;break;case"toggle":case"beforetoggle":c=_n}var d=0!==(4&t),h=!d&&("scroll"===e||"scrollend"===e),f=d?null!==a?a+"Capture":null:a;d=[];for(var p,m=r;null!==m;){var g=m;if(p=g.stateNode,5!==(g=g.tag)&&26!==g&&27!==g||null===p||null===f||null!=(g=Lt(m,f))&&d.push(Wu(m,g,p)),h)break;m=m.return}0<d.length&&(a=new c(a,u,null,n,i),s.push({event:a,listeners:d}))}}if(0===(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(a="mouseover"===e||"pointerover"===e)||n===Tt||!(u=n.relatedTarget||n.fromElement)||!qe(u)&&!u[Ne])&&(c||a)&&(a=i.window===i?i:(a=i.ownerDocument)?a.defaultView||a.parentWindow:window,c?(c=r,null!==(u=(u=n.relatedTarget||n.toElement)?qe(u):null)&&(h=l(u),d=u.tag,u!==h||5!==d&&27!==d&&6!==d)&&(u=null)):(c=null,u=r),c!==u)){if(d=on,g="onMouseLeave",f="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(d=yn,g="onPointerLeave",f="onPointerEnter",m="pointer"),h=null==c?a:We(c),p=null==u?a:We(u),(a=new d(g,m+"leave",c,n,i)).target=h,a.relatedTarget=p,g=null,qe(i)===r&&((d=new d(f,m+"enter",u,n,i)).target=p,d.relatedTarget=h,g=d),h=g,c&&u)e:{for(f=u,m=0,p=d=c;p;p=$u(p))m++;for(p=0,g=f;g;g=$u(g))p++;for(;0<m-p;)d=$u(d),m--;for(;0<p-m;)f=$u(f),p--;for(;m--;){if(d===f||null!==f&&d===f.alternate)break e;d=$u(d),f=$u(f)}d=null}else d=null;null!==c&&Vu(s,a,c,d,!1),null!==u&&null!==h&&Vu(s,h,u,d,!0)}if("select"===(c=(a=r?We(r):window).nodeName&&a.nodeName.toLowerCase())||"input"===c&&"file"===a.type)var y=Fn;else if(Rn(a))if(Dn)y=Jn;else{y=Vn;var b=$n}else!(c=a.nodeName)||"input"!==c.toLowerCase()||"checkbox"!==a.type&&"radio"!==a.type?r&&Pt(r.elementType)&&(y=Fn):y=Gn;switch(y&&(y=y(e,r))?Bn(s,y,n,i):(b&&b(e,a,r),"focusout"===e&&r&&"number"===a.type&&null!=r.memoizedProps.value&&vt(a,"number",a.value)),b=r?We(r):window,e){case"focusin":(Rn(b)||"true"===b.contentEditable)&&(ir=b,or=r,sr=null);break;case"focusout":sr=or=ir=null;break;case"mousedown":ar=!0;break;case"contextmenu":case"mouseup":case"dragend":ar=!1,cr(s,n,i);break;case"selectionchange":if(rr)break;case"keydown":case"keyup":cr(s,n,i)}var v;if(An)e:{switch(e){case"compositionstart":var w="onCompositionStart";break e;case"compositionend":w="onCompositionEnd";break e;case"compositionupdate":w="onCompositionUpdate";break e}w=void 0}else Tn?In(e,n)&&(w="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(w="onCompositionStart");w&&(Sn&&"ko"!==n.locale&&(Tn||"onCompositionStart"!==w?"onCompositionEnd"===w&&Tn&&(v=Kt()):(Ht="value"in(qt=i)?qt.value:qt.textContent,Tn=!0)),0<(b=Ku(r,w)).length&&(w=new un(w,e,null,n,i),s.push({event:w,listeners:b}),v?w.data=v:null!==(v=Mn(n))&&(w.data=v))),(v=En?function(e,t){switch(e){case"compositionend":return Mn(t);case"keypress":return 32!==t.which?null:(Cn=!0,Pn);case"textInput":return(e=t.data)===Pn&&Cn?null:e;default:return null}}(e,n):function(e,t){if(Tn)return"compositionend"===e||!An&&In(e,t)?(e=Kt(),Wt=Ht=qt=null,Tn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Sn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(w=Ku(r,"onBeforeInput")).length&&(b=new un("onBeforeInput","beforeinput",null,n,i),s.push({event:b,listeners:w}),b.data=v)),function(e,t,n,r,i){if("submit"===t&&n&&n.stateNode===i){var o=Tu((i[Be]||null).action),s=r.submitter;s&&null!==(t=(t=s[Be]||null)?Tu(t.formAction):s.getAttribute("formAction"))&&(o=t,s=null);var a=new en("action","action",null,r,i);e.push({event:a,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==xu){var e=s?Ou(i,s):new FormData(i);Os(n,{pending:!0,data:e,method:i.method,action:o},null,e)}}else"function"===typeof o&&(a.preventDefault(),e=s?Ou(i,s):new FormData(i),Os(n,{pending:!0,data:e,method:i.method,action:o},o,e))},currentTarget:i}]})}}(s,e,r,n,i)}ju(s,t)})}function Wu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ku(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;if(5!==(i=i.tag)&&26!==i&&27!==i||null===o||(null!=(i=Lt(e,n))&&r.unshift(Wu(e,i,o)),null!=(i=Lt(e,t))&&r.push(Wu(e,i,o))),3===e.tag)return r;e=e.return}return[]}function $u(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function Vu(e,t,n,r,i){for(var o=t._reactName,s=[];null!==n&&n!==r;){var a=n,c=a.alternate,l=a.stateNode;if(a=a.tag,null!==c&&c===r)break;5!==a&&26!==a&&27!==a||null===l||(c=l,i?null!=(l=Lt(n,o))&&s.unshift(Wu(n,l,c)):i||null!=(l=Lt(n,o))&&s.push(Wu(n,l,c))),n=n.return}0!==s.length&&e.push({event:t,listeners:s})}var Gu=/\r\n?/g,Ju=/\u0000|\uFFFD/g;function Zu(e){return("string"===typeof e?e:""+e).replace(Gu,"\n").replace(Ju,"")}function Yu(e,t){return t=Zu(t),Zu(e)===t}function Qu(){}function Xu(e,t,n,r,i,o){switch(n){case"children":"string"===typeof r?"body"===t||"textarea"===t&&""===r||At(e,r):("number"===typeof r||"bigint"===typeof r)&&"body"!==t&&At(e,""+r);break;case"className":rt(e,"class",r);break;case"tabIndex":rt(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":rt(e,n,r);break;case"style":St(e,r,o);break;case"data":if("object"!==t){rt(e,"data",r);break}case"src":case"href":if(""===r&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==r||"function"===typeof r||"symbol"===typeof r||"boolean"===typeof r){e.removeAttribute(n);break}r=Mt(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if("function"===typeof r){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"===typeof o&&("formAction"===n?("input"!==t&&Xu(e,t,"name",i.name,i,null),Xu(e,t,"formEncType",i.formEncType,i,null),Xu(e,t,"formMethod",i.formMethod,i,null),Xu(e,t,"formTarget",i.formTarget,i,null)):(Xu(e,t,"encType",i.encType,i,null),Xu(e,t,"method",i.method,i,null),Xu(e,t,"target",i.target,i,null))),null==r||"symbol"===typeof r||"boolean"===typeof r){e.removeAttribute(n);break}r=Mt(""+r),e.setAttribute(n,r);break;case"onClick":null!=r&&(e.onclick=Qu);break;case"onScroll":null!=r&&Lu("scroll",e);break;case"onScrollEnd":null!=r&&Lu("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!==typeof r||!("__html"in r))throw Error(a(61));if(null!=(n=r.__html)){if(null!=i.children)throw Error(a(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&"function"!==typeof r&&"symbol"!==typeof r;break;case"muted":e.muted=r&&"function"!==typeof r&&"symbol"!==typeof r;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==r||"function"===typeof r||"boolean"===typeof r||"symbol"===typeof r){e.removeAttribute("xlink:href");break}n=Mt(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=r&&"function"!==typeof r&&"symbol"!==typeof r?e.setAttribute(n,""+r):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&"function"!==typeof r&&"symbol"!==typeof r?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===r?e.setAttribute(n,""):!1!==r&&null!=r&&"function"!==typeof r&&"symbol"!==typeof r?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=r&&"function"!==typeof r&&"symbol"!==typeof r&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":null==r||"function"===typeof r||"symbol"===typeof r||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":Lu("beforetoggle",e),Lu("toggle",e),nt(e,"popover",r);break;case"xlinkActuate":it(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":it(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":it(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":it(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":it(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":it(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":it(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":it(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":it(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":nt(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&nt(e,n=Ct.get(n)||n,r)}}function ed(e,t,n,r,i,o){switch(n){case"style":St(e,r,o);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!==typeof r||!("__html"in r))throw Error(a(61));if(null!=(n=r.__html)){if(null!=i.children)throw Error(a(60));e.innerHTML=n}}break;case"children":"string"===typeof r?At(e,r):("number"===typeof r||"bigint"===typeof r)&&At(e,""+r);break;case"onScroll":null!=r&&Lu("scroll",e);break;case"onScrollEnd":null!=r&&Lu("scrollend",e);break;case"onClick":null!=r&&(e.onclick=Qu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:Ge.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),"function"===typeof(o=null!=(o=e[Be]||null)?o[n]:null)&&e.removeEventListener(t,o,i),"function"!==typeof r)?n in e?e[n]=r:!0===r?e.setAttribute(n,""):nt(e,n,r):("function"!==typeof o&&null!==o&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i)))}}function td(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Lu("error",e),Lu("load",e);var r,i=!1,o=!1;for(r in n)if(n.hasOwnProperty(r)){var s=n[r];if(null!=s)switch(r){case"src":i=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,t));default:Xu(e,t,r,s,n,null)}}return o&&Xu(e,t,"srcSet",n.srcSet,n,null),void(i&&Xu(e,t,"src",n.src,n,null));case"input":Lu("invalid",e);var c=r=s=o=null,l=null,u=null;for(i in n)if(n.hasOwnProperty(i)){var d=n[i];if(null!=d)switch(i){case"name":o=d;break;case"type":s=d;break;case"checked":l=d;break;case"defaultChecked":u=d;break;case"value":r=d;break;case"defaultValue":c=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(a(137,t));break;default:Xu(e,t,i,d,n,null)}}return bt(e,r,c,l,u,s,o,!1),void ht(e);case"select":for(o in Lu("invalid",e),i=s=r=null,n)if(n.hasOwnProperty(o)&&null!=(c=n[o]))switch(o){case"value":r=c;break;case"defaultValue":s=c;break;case"multiple":i=c;default:Xu(e,t,o,c,n,null)}return t=r,n=s,e.multiple=!!i,void(null!=t?wt(e,!!i,t,!1):null!=n&&wt(e,!!i,n,!0));case"textarea":for(s in Lu("invalid",e),r=o=i=null,n)if(n.hasOwnProperty(s)&&null!=(c=n[s]))switch(s){case"value":i=c;break;case"defaultValue":o=c;break;case"children":r=c;break;case"dangerouslySetInnerHTML":if(null!=c)throw Error(a(91));break;default:Xu(e,t,s,c,n,null)}return xt(e,i,o,r),void ht(e);case"option":for(l in n)if(n.hasOwnProperty(l)&&null!=(i=n[l]))if("selected"===l)e.selected=i&&"function"!==typeof i&&"symbol"!==typeof i;else Xu(e,t,l,i,n,null);return;case"dialog":Lu("beforetoggle",e),Lu("toggle",e),Lu("cancel",e),Lu("close",e);break;case"iframe":case"object":Lu("load",e);break;case"video":case"audio":for(i=0;i<Nu.length;i++)Lu(Nu[i],e);break;case"image":Lu("error",e),Lu("load",e);break;case"details":Lu("toggle",e);break;case"embed":case"source":case"link":Lu("error",e),Lu("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&null!=(i=n[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,t));default:Xu(e,t,u,i,n,null)}return;default:if(Pt(t)){for(d in n)n.hasOwnProperty(d)&&(void 0!==(i=n[d])&&ed(e,t,d,i,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(null!=(i=n[c])&&Xu(e,t,c,i,n,null))}var nd=null,rd=null;function id(e){return 9===e.nodeType?e:e.ownerDocument}function od(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function sd(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function ad(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"bigint"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var cd=null;var ld="function"===typeof setTimeout?setTimeout:void 0,ud="function"===typeof clearTimeout?clearTimeout:void 0,dd="function"===typeof Promise?Promise:void 0,hd="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof dd?function(e){return dd.resolve(null).then(e).catch(fd)}:ld;function fd(e){setTimeout(function(){throw e})}function pd(e){return"head"===e}function md(e,t){var n=t,r=0,i=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0<r&&8>r){n=r;var s=e.ownerDocument;if(1&n&&xd(s.documentElement),2&n&&xd(s.body),4&n)for(xd(n=s.head),s=n.firstChild;s;){var a=s.nextSibling,c=s.nodeName;s[De]||"SCRIPT"===c||"STYLE"===c||"LINK"===c&&"stylesheet"===s.rel.toLowerCase()||n.removeChild(s),s=a}}if(0===i)return e.removeChild(o),void Ch(t);i--}else"$"===n||"$?"===n||"$!"===n?i++:r=n.charCodeAt(0)-48;else r=0;n=o}while(n);Ch(t)}function gd(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":gd(n),ze(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function yd(e){return"$!"===e.data||"$?"===e.data&&"complete"===e.ownerDocument.readyState}function bd(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"F!"===t||"F"===t)break;if("/$"===t)return null}}return e}var vd=null;function wd(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}function _d(e,t,n){switch(t=id(n),e){case"html":if(!(e=t.documentElement))throw Error(a(452));return e;case"head":if(!(e=t.head))throw Error(a(453));return e;case"body":if(!(e=t.body))throw Error(a(454));return e;default:throw Error(a(451))}}function xd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ze(e)}var Ad=new Map,kd=new Set;function Ed(e){return"function"===typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var Sd=U.d;U.d={f:function(){var e=Sd.f(),t=ql();return e||t},r:function(e){var t=He(e);null!==t&&5===t.tag&&"form"===t.type?Bs(t):Sd.r(e)},D:function(e){Sd.D(e),Cd("dns-prefetch",e,null)},C:function(e,t){Sd.C(e,t),Cd("preconnect",e,t)},L:function(e,t,n){Sd.L(e,t,n);var r=Pd;if(r&&e&&t){var i='link[rel="preload"][as="'+gt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(i+='[imagesrcset="'+gt(n.imageSrcSet)+'"]',"string"===typeof n.imageSizes&&(i+='[imagesizes="'+gt(n.imageSizes)+'"]')):i+='[href="'+gt(e)+'"]';var o=i;switch(t){case"style":o=Md(e);break;case"script":o=Rd(e)}Ad.has(o)||(e=f({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),Ad.set(o,e),null!==r.querySelector(i)||"style"===t&&r.querySelector(Td(o))||"script"===t&&r.querySelector(Bd(o))||(td(t=r.createElement("link"),"link",e),$e(t),r.head.appendChild(t)))}},m:function(e,t){Sd.m(e,t);var n=Pd;if(n&&e){var r=t&&"string"===typeof t.as?t.as:"script",i='link[rel="modulepreload"][as="'+gt(r)+'"][href="'+gt(e)+'"]',o=i;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Rd(e)}if(!Ad.has(o)&&(e=f({rel:"modulepreload",href:e},t),Ad.set(o,e),null===n.querySelector(i))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Bd(o)))return}td(r=n.createElement("link"),"link",e),$e(r),n.head.appendChild(r)}}},X:function(e,t){Sd.X(e,t);var n=Pd;if(n&&e){var r=Ke(n).hoistableScripts,i=Rd(e),o=r.get(i);o||((o=n.querySelector(Bd(i)))||(e=f({src:e,async:!0},t),(t=Ad.get(i))&&Ld(e,t),$e(o=n.createElement("script")),td(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(i,o))}},S:function(e,t,n){Sd.S(e,t,n);var r=Pd;if(r&&e){var i=Ke(r).hoistableStyles,o=Md(e);t=t||"default";var s=i.get(o);if(!s){var a={loading:0,preload:null};if(s=r.querySelector(Td(o)))a.loading=5;else{e=f({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Ad.get(o))&&jd(e,n);var c=s=r.createElement("link");$e(c),td(c,"link",e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener("load",function(){a.loading|=1}),c.addEventListener("error",function(){a.loading|=2}),a.loading|=4,Ud(s,t,r)}s={type:"stylesheet",instance:s,count:1,state:a},i.set(o,s)}}},M:function(e,t){Sd.M(e,t);var n=Pd;if(n&&e){var r=Ke(n).hoistableScripts,i=Rd(e),o=r.get(i);o||((o=n.querySelector(Bd(i)))||(e=f({src:e,async:!0,type:"module"},t),(t=Ad.get(i))&&Ld(e,t),$e(o=n.createElement("script")),td(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(i,o))}}};var Pd="undefined"===typeof document?null:document;function Cd(e,t,n){var r=Pd;if(r&&"string"===typeof t&&t){var i=gt(t);i='link[rel="'+e+'"][href="'+i+'"]',"string"===typeof n&&(i+='[crossorigin="'+n+'"]'),kd.has(i)||(kd.add(i),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(i)&&(td(t=r.createElement("link"),"link",e),$e(t),r.head.appendChild(t)))}}function Id(e,t,n,r){var i,o,s,c,l=(l=K.current)?Ed(l):null;if(!l)throw Error(a(446));switch(e){case"meta":case"title":return null;case"style":return"string"===typeof n.precedence&&"string"===typeof n.href?(t=Md(n.href),(r=(n=Ke(l).hoistableStyles).get(t))||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"===typeof n.href&&"string"===typeof n.precedence){e=Md(n.href);var u=Ke(l).hoistableStyles,d=u.get(e);if(d||(l=l.ownerDocument||l,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,d),(u=l.querySelector(Td(e)))&&!u._p&&(d.instance=u,d.state.loading=5),Ad.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Ad.set(e,n),u||(i=l,o=e,s=n,c=d.state,i.querySelector('link[rel="preload"][as="style"]['+o+"]")?c.loading=1:(o=i.createElement("link"),c.preload=o,o.addEventListener("load",function(){return c.loading|=1}),o.addEventListener("error",function(){return c.loading|=2}),td(o,"link",s),$e(o),i.head.appendChild(o))))),t&&null===r)throw Error(a(528,""));return d}if(t&&null!==r)throw Error(a(529,""));return null;case"script":return t=n.async,"string"===typeof(n=n.src)&&t&&"function"!==typeof t&&"symbol"!==typeof t?(t=Rd(n),(r=(n=Ke(l).hoistableScripts).get(t))||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,e))}}function Md(e){return'href="'+gt(e)+'"'}function Td(e){return'link[rel="stylesheet"]['+e+"]"}function Od(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Rd(e){return'[src="'+gt(e)+'"]'}function Bd(e){return"script[async]"+e}function Nd(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+gt(n.href)+'"]');if(r)return t.instance=r,$e(r),r;var i=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return $e(r=(e.ownerDocument||e).createElement("style")),td(r,"style",i),Ud(r,n.precedence,e),t.instance=r;case"stylesheet":i=Md(n.href);var o=e.querySelector(Td(i));if(o)return t.state.loading|=4,t.instance=o,$e(o),o;r=Od(n),(i=Ad.get(i))&&jd(r,i),$e(o=(e.ownerDocument||e).createElement("link"));var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),td(o,"link",r),t.state.loading|=4,Ud(o,n.precedence,e),t.instance=o;case"script":return o=Rd(n.src),(i=e.querySelector(Bd(o)))?(t.instance=i,$e(i),i):(r=n,(i=Ad.get(o))&&Ld(r=f({},n),i),$e(i=(e=e.ownerDocument||e).createElement("script")),td(i,"link",r),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(a(443,t.type))}else"stylesheet"===t.type&&0===(4&t.state.loading)&&(r=t.instance,t.state.loading|=4,Ud(r,n.precedence,e));return t.instance}function Ud(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=r.length?r[r.length-1]:null,o=i,s=0;s<r.length;s++){var a=r[s];if(a.dataset.precedence===t)o=a;else if(o!==i)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function jd(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function Ld(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var Fd=null;function Dd(e,t,n){if(null===Fd){var r=new Map,i=Fd=new Map;i.set(n,r)}else(r=(i=Fd).get(n))||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var o=n[i];if(!(o[De]||o[Re]||"link"===e&&"stylesheet"===o.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==o.namespaceURI){var s=o.getAttribute(t)||"";s=e+s;var a=r.get(s);a?a.push(o):r.set(s,[o])}}return r}function zd(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function qd(e){return"stylesheet"!==e.type||0!==(3&e.state.loading)}var Hd=null;function Wd(){}function Kd(){if(this.count--,0===this.count)if(this.stylesheets)Vd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var $d=null;function Vd(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,$d=new Map,t.forEach(Gd,e),$d=null,Kd.call(e))}function Gd(e,t){if(!(4&t.state.loading)){var n=$d.get(e);if(n)var r=n.get(null);else{n=new Map,$d.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<i.length;o++){var s=i[o];"LINK"!==s.nodeName&&"not all"===s.getAttribute("media")||(n.set(s.dataset.precedence,s),r=s)}r&&n.set(null,r)}s=(i=t.instance).getAttribute("data-precedence"),(o=n.get(s)||r)===r&&n.set(null,i),n.set(s,i),this.count++,r=Kd.bind(this),i.addEventListener("load",r),i.addEventListener("error",r),o?o.parentNode.insertBefore(i,o.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(i,e.firstChild),t.state.loading|=4}}var Jd={$$typeof:x,Provider:null,Consumer:null,_currentValue:j,_currentValue2:j,_threadCount:0};function Zd(e,t,n,r,i,o,s,a){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ee(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ee(0),this.hiddenUpdates=Ee(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=o,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=a,this.incompleteTransitions=new Map}function Yd(e,t,n,r,i,o,s,a,c,l,u,d){return e=new Zd(e,t,n,s,a,c,l,d),t=1,!0===o&&(t|=24),o=jr(3,null,null,t),e.current=o,o.stateNode=e,(t=Bi()).refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:r,isDehydrated:n,cache:t},ro(o),e}function Qd(e){return e?e=Nr:Nr}function Xd(e,t,n,r,i,o){i=Qd(i),null===r.context?r.context=i:r.pendingContext=i,(r=oo(t)).payload={element:n},null!==(o=void 0===o?null:o)&&(r.callback=o),null!==(n=so(e,r,t))&&(jl(n,0,t),ao(n,e,t))}function eh(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function th(e,t){eh(e,t),(e=e.alternate)&&eh(e,t)}function nh(e){if(13===e.tag){var t=Or(e,67108864);null!==t&&jl(t,0,67108864),th(e,67108864)}}var rh=!0;function ih(e,t,n,r){var i=N.T;N.T=null;var o=U.p;try{U.p=2,sh(e,t,n,r)}finally{U.p=o,N.T=i}}function oh(e,t,n,r){var i=N.T;N.T=null;var o=U.p;try{U.p=8,sh(e,t,n,r)}finally{U.p=o,N.T=i}}function sh(e,t,n,r){if(rh){var i=ah(r);if(null===i)Hu(e,t,r,ch,n),vh(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return hh=wh(hh,e,t,n,r,i),!0;case"dragenter":return fh=wh(fh,e,t,n,r,i),!0;case"mouseover":return ph=wh(ph,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return mh.set(o,wh(mh.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,gh.set(o,wh(gh.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(vh(e,r),4&t&&-1<bh.indexOf(e)){for(;null!==i;){var o=He(i);if(null!==o)switch(o.tag){case 3:if((o=o.stateNode).current.memoizedState.isDehydrated){var s=ve(o.pendingLanes);if(0!==s){var a=o;for(a.pendingLanes|=2,a.entangledLanes|=2;s;){var c=1<<31-pe(s);a.entanglements[1]|=c,s&=~c}Au(o),0===(6&rl)&&(Al=ne()+500,ku(0,!1))}}break;case 13:null!==(a=Or(o,2))&&jl(a,0,2),ql(),th(o,2)}if(null===(o=ah(r))&&Hu(e,t,r,ch,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Hu(e,t,r,null,n)}}function ah(e){return lh(e=Ot(e))}var ch=null;function lh(e){if(ch=null,null!==(e=qe(e))){var t=l(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=u(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ch=e,null}function uh(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(re()){case ie:return 2;case oe:return 8;case se:case ae:return 32;case ce:return 268435456;default:return 32}default:return 32}}var dh=!1,hh=null,fh=null,ph=null,mh=new Map,gh=new Map,yh=[],bh="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function vh(e,t){switch(e){case"focusin":case"focusout":hh=null;break;case"dragenter":case"dragleave":fh=null;break;case"mouseover":case"mouseout":ph=null;break;case"pointerover":case"pointerout":mh.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":gh.delete(t.pointerId)}}function wh(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=He(t))&&nh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function _h(e){var t=qe(e.target);if(null!==t){var n=l(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=u(n)))return e.blockedOn=t,void function(e,t){var n=U.p;try{return U.p=e,t()}finally{U.p=n}}(e.priority,function(){if(13===n.tag){var e=Nl();e=Ie(e);var t=Or(n,e);null!==t&&jl(t,0,e),th(n,e)}})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function xh(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=ah(e.nativeEvent);if(null!==n)return null!==(t=He(n))&&nh(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Tt=r,n.target.dispatchEvent(r),Tt=null,t.shift()}return!0}function Ah(e,t,n){xh(e)&&n.delete(t)}function kh(){dh=!1,null!==hh&&xh(hh)&&(hh=null),null!==fh&&xh(fh)&&(fh=null),null!==ph&&xh(ph)&&(ph=null),mh.forEach(Ah),gh.forEach(Ah)}function Eh(e,t){e.blockedOn===t&&(e.blockedOn=null,dh||(dh=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,kh)))}var Sh=null;function Ph(e){Sh!==e&&(Sh=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Sh===e&&(Sh=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if("function"!==typeof r){if(null===lh(r||n))continue;break}var o=He(n);null!==o&&(e.splice(t,3),t-=3,Os(o,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Ch(e){function t(t){return Eh(t,e)}null!==hh&&Eh(hh,e),null!==fh&&Eh(fh,e),null!==ph&&Eh(ph,e),mh.forEach(t),gh.forEach(t);for(var n=0;n<yh.length;n++){var r=yh[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<yh.length&&null===(n=yh[0]).blockedOn;)_h(n),null===n.blockedOn&&yh.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var i=n[r],o=n[r+1],s=i[Be]||null;if("function"===typeof o)s||Ph(n);else if(s){var a=null;if(o&&o.hasAttribute("formAction")){if(i=o,s=o[Be]||null)a=s.formAction;else if(null!==lh(i))continue}else a=s.action;"function"===typeof a?n[r+1]=a:(n.splice(r,3),r-=3),Ph(n)}}}function Ih(e){this._internalRoot=e}function Mh(e){this._internalRoot=e}Mh.prototype.render=Ih.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));Xd(t.current,Nl(),e,t,null,null)},Mh.prototype.unmount=Ih.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;Xd(e.current,2,null,e,null,null),ql(),t[Ne]=null}},Mh.prototype.unstable_scheduleHydration=function(e){if(e){var t=Te();e={blockedOn:null,target:e,priority:t};for(var n=0;n<yh.length&&0!==t&&t<yh[n].priority;n++);yh.splice(n,0,e),0===n&&_h(e)}};var Th=o.version;if("19.1.0"!==Th)throw Error(a(527,Th,"19.1.0"));U.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=l(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return d(i),e;if(o===r)return d(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,c=i.child;c;){if(c===n){s=!0,n=i,r=o;break}if(c===r){s=!0,r=i,n=o;break}c=c.sibling}if(!s){for(c=o.child;c;){if(c===n){s=!0,n=o,r=i;break}if(c===r){s=!0,r=o,n=i;break}c=c.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(t),e=null===(e=null!==e?h(e):null)?null:e.stateNode};var Oh={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:N,reconcilerVersion:"19.1.0"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Rh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Rh.isDisabled&&Rh.supportsFiber)try{de=Rh.inject(Oh),he=Rh}catch(Nh){}}t.createRoot=function(e,t){if(!c(e))throw Error(a(299));var n=!1,r="",i=va,o=wa,s=_a;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onUncaughtError&&(i=t.onUncaughtError),void 0!==t.onCaughtError&&(o=t.onCaughtError),void 0!==t.onRecoverableError&&(s=t.onRecoverableError),void 0!==t.unstable_transitionCallbacks&&t.unstable_transitionCallbacks),t=Yd(e,1,!1,null,0,n,r,i,o,s,0,null),e[Ne]=t.current,zu(e),new Ih(t)},t.hydrateRoot=function(e,t,n){if(!c(e))throw Error(a(299));var r=!1,i="",o=va,s=wa,l=_a,u=null;return null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(r=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onUncaughtError&&(o=n.onUncaughtError),void 0!==n.onCaughtError&&(s=n.onCaughtError),void 0!==n.onRecoverableError&&(l=n.onRecoverableError),void 0!==n.unstable_transitionCallbacks&&n.unstable_transitionCallbacks,void 0!==n.formState&&(u=n.formState)),(t=Yd(e,1,!0,t,0,r,i,o,s,l,0,u)).context=Qd(null),n=t.current,(i=oo(r=Ie(r=Nl()))).callback=null,so(n,i,r),n=r,t.current.lanes=n,Se(t,n),Au(t),e[Ne]=t.current,zu(e),new Mh(t)},t.version="19.1.0"},2445:(e,t,n)=>{"use strict";const r=n(9812);e.exports=(e,t)=>{const n=r(e,t);return n?n.version:null}},2450:(e,t,n)=>{"use strict";n.d(t,{ME:()=>s,cK:()=>o});var r=n(4995),i=n(5244);const o=e=>((0,r.vA)("number"===typeof e,"Value must be a number."),(0,r.vA)(e>=0,"Value must be a non-negative number."),(0,r.vA)(Number.isSafeInteger(e),"Value is not a safe integer. Use `bigIntToHex` instead."),(0,i.mu)(e.toString(16))),s=e=>{(0,i.Ph)(e);const t=parseInt(e,16);return(0,r.vA)(Number.isSafeInteger(t),"Value is not a safe integer. Use `hexToBigInt` instead."),t}},2466:(e,t,n)=>{"use strict";var r=n(2176);var i="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},o=r.useState,s=r.useEffect,a=r.useLayoutEffect,c=r.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(r){return!0}}var u="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,u=r[1];return a(function(){i.value=n,i.getSnapshot=t,l(i)&&u({inst:i})},[e,n,t]),s(function(){return l(i)&&u({inst:i}),e(function(){l(i)&&u({inst:i})})},[e]),c(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},2470:(e,t,n)=>{"use strict";n.d(t,{l:()=>c});var r=n(8090);class i extends r.C{constructor(e){let{offset:t}=e;super("Offset `".concat(t,"` cannot be negative."),{name:"NegativeOffsetError"})}}class o extends r.C{constructor(e){let{length:t,position:n}=e;super("Position `".concat(n,"` is out of bounds (`0 < position < ").concat(t,"`)."),{name:"PositionOutOfBoundsError"})}}class s extends r.C{constructor(e){let{count:t,limit:n}=e;super("Recursive read limit of `".concat(n,"` exceeded (recursive read count: `").concat(t,"`)."),{name:"RecursiveReadLimitExceededError"})}}const a={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new s({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new o({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new i({offset:e});const t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new i({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=null!==e&&void 0!==e?e:this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const n=null!==t&&void 0!==t?t:this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){const t=null!==e&&void 0!==e?e:this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=null!==e&&void 0!==e?e:this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=null!==e&&void 0!==e?e:this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const t=null!==e&&void 0!==e?e:this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,255&e),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();const n=this.inspectBytes(e);return this.position+=null!==t&&void 0!==t?t:e,n},readUint8(){this.assertReadLimit(),this._touch();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function c(e){let{recursiveReadLimit:t=8192}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Object.create(a);return n.bytes=e,n.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}},2494:(e,t,n)=>{"use strict";n.d(t,{lY:()=>_});var r=n(4543),i=n(2766);const o=BigInt(0),s=BigInt(1),a=BigInt(2),c=BigInt(7),l=BigInt(256),u=BigInt(113),d=[],h=[],f=[];for(let x=0,A=s,k=1,E=0;x<24;x++){[k,E]=[E,(2*k+3*E)%5],d.push(2*(5*E+k)),h.push((x+1)*(x+2)/2%64);let e=o;for(let t=0;t<7;t++)A=(A<<s^(A>>c)*u)%l,A&a&&(e^=s<<(s<<BigInt(t))-s);f.push(e)}const p=(0,r.lD)(f,!0),m=p[0],g=p[1],y=(e,t,n)=>n>32?(0,r.WM)(e,t,n):(0,r.P5)(e,t,n),b=(e,t,n)=>n>32?(0,r.im)(e,t,n):(0,r.B4)(e,t,n);class v extends i.Vw{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:24;if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=e,this.suffix=t,this.outputLen=n,this.enableXOF=r,this.rounds=o,(0,i.Fe)(n),!(0<e&&e<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=(0,i.DH)(this.state)}clone(){return this._cloneInto()}keccak(){(0,i.fd)(this.state32),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24;const n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let r=0;r<10;r++)n[r]=e[r]^e[r+10]^e[r+20]^e[r+30]^e[r+40];for(let r=0;r<10;r+=2){const t=(r+8)%10,i=(r+2)%10,o=n[i],s=n[i+1],a=y(o,s,1)^n[t],c=b(o,s,1)^n[t+1];for(let n=0;n<50;n+=10)e[r+n]^=a,e[r+n+1]^=c}let t=e[2],i=e[3];for(let n=0;n<24;n++){const r=h[n],o=y(t,i,r),s=b(t,i,r),a=d[n];t=e[a],i=e[a+1],e[a]=o,e[a+1]=s}for(let r=0;r<50;r+=10){for(let t=0;t<10;t++)n[t]=e[r+t];for(let t=0;t<10;t++)e[r+t]^=~n[(t+2)%10]&n[(t+4)%10]}e[0]^=m[r],e[1]^=g[r]}(0,i.uH)(n)}(this.state32,this.rounds),(0,i.fd)(this.state32),this.posOut=0,this.pos=0}update(e){(0,i.CC)(this),e=(0,i.ZJ)(e),(0,i.DO)(e);const{blockLen:t,state:n}=this,r=e.length;for(let i=0;i<r;){const o=Math.min(t-this.pos,r-i);for(let t=0;t<o;t++)n[this.pos++]^=e[i++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:e,suffix:t,pos:n,blockLen:r}=this;e[n]^=t,0!==(128&t)&&n===r-1&&this.keccak(),e[r-1]^=128,this.keccak()}writeInto(e){(0,i.CC)(this,!1),(0,i.DO)(e),this.finish();const t=this.state,{blockLen:n}=this;for(let r=0,i=e.length;r<i;){this.posOut>=n&&this.keccak();const o=Math.min(n-this.posOut,i-r);e.set(t.subarray(this.posOut,this.posOut+o),r),this.posOut+=o,r+=o}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,i.Fe)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,i.Ht)(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,(0,i.uH)(this.state)}_cloneInto(e){const{blockLen:t,suffix:n,outputLen:r,rounds:i,enableXOF:o}=this;return e||(e=new v(t,n,r,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=n,e.outputLen=r,e.enableXOF=o,e.destroyed=this.destroyed,e}}const w=(e,t,n)=>(0,i.qj)(()=>new v(t,e,n)),_=(()=>w(1,136,32))()},2500:(e,t,n)=>{"use strict";const r=n(9812);e.exports=(e,t)=>{const n=r(e,null,!0),i=r(t,null,!0),o=n.compare(i);if(0===o)return null;const s=o>0,a=s?n:i,c=s?i:n,l=!!a.prerelease.length;if(!!c.prerelease.length&&!l){if(!c.patch&&!c.minor)return"major";if(0===c.compareMain(a))return c.minor&&!c.patch?"minor":"patch"}const u=l?"pre":"";return n.major!==i.major?u+"major":n.minor!==i.minor?u+"minor":n.patch!==i.patch?u+"patch":"prerelease"}},2505:(e,t,n)=>{"use strict";n.d(t,{Ao:()=>r});const r=2n**256n-1n},2548:(e,t,n)=>{"use strict";const r=Symbol("SemVer ANY");class i{static get ANY(){return r}constructor(e,t){if(t=o(t),e instanceof i){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),l("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,l("comp",this)}parse(e){const t=this.options.loose?s[a.COMPARATORLOOSE]:s[a.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: ".concat(e));this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new u(n[2],this.options.loose):this.semver=r}toString(){return this.value}test(e){if(l("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"===typeof e)try{e=new u(e,this.options)}catch(t){return!1}return c(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof i))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new d(e.value,t).test(this.value):""===e.operator?""===e.value||new d(this.value,t).test(e.semver):(!(t=o(t)).includePrerelease||"<0.0.0-0"!==this.value&&"<0.0.0-0"!==e.value)&&(!(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!e.operator.startsWith(">"))||(!(!this.operator.startsWith("<")||!e.operator.startsWith("<"))||(!(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))||(!!(c(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))||!!(c(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))))))}}e.exports=i;const o=n(4999),{safeRe:s,t:a}=n(3794),c=n(5555),l=n(4580),u=n(5544),d=n(1227)},2569:(e,t,n)=>{"use strict";n.d(t,{P:()=>a});var r=n(7543),i=n(6961);const o=/^0x[a-fA-F0-9]{40}$/,s=new r.A(8192);function a(e,t){const{strict:n=!0}=null!==t&&void 0!==t?t:{},r="".concat(e,".").concat(n);if(s.has(r))return s.get(r);const a=!!o.test(e)&&(e.toLowerCase()===e||!n||(0,i.o)(e)===e);return s.set(r,a),a}},2580:(e,t,n)=>{"use strict";n.d(t,{l:()=>o});var r=n(8090),i=n(6600);function o(e,t){const n=(e.details||"").toLowerCase(),o=e instanceof r.C?e.walk(e=>(null===e||void 0===e?void 0:e.code)===i.A7.code):e;return o instanceof r.C?new i.A7({cause:e,message:o.details}):i.A7.nodeMessage.test(n)?new i.A7({cause:e,message:e.details}):i.BG.nodeMessage.test(n)?new i.BG({cause:e,maxFeePerGas:null===t||void 0===t?void 0:t.maxFeePerGas}):i.jj.nodeMessage.test(n)?new i.jj({cause:e,maxFeePerGas:null===t||void 0===t?void 0:t.maxFeePerGas}):i.K0.nodeMessage.test(n)?new i.K0({cause:e,nonce:null===t||void 0===t?void 0:t.nonce}):i.Oh.nodeMessage.test(n)?new i.Oh({cause:e,nonce:null===t||void 0===t?void 0:t.nonce}):i.vW.nodeMessage.test(n)?new i.vW({cause:e,nonce:null===t||void 0===t?void 0:t.nonce}):i.k5.nodeMessage.test(n)?new i.k5({cause:e}):i.lY.nodeMessage.test(n)?new i.lY({cause:e,gas:null===t||void 0===t?void 0:t.gas}):i.Fo.nodeMessage.test(n)?new i.Fo({cause:e,gas:null===t||void 0===t?void 0:t.gas}):i.uC.nodeMessage.test(n)?new i.uC({cause:e}):i.lN.nodeMessage.test(n)?new i.lN({cause:e,maxFeePerGas:null===t||void 0===t?void 0:t.maxFeePerGas,maxPriorityFeePerGas:null===t||void 0===t?void 0:t.maxPriorityFeePerGas}):new i.RM({cause:e})}},2709:(e,t,n)=>{var r="undefined"!==typeof globalThis&&globalThis||"undefined"!==typeof self&&self||"undefined"!==typeof n.g&&n.g,i=function(){function e(){this.fetch=!1,this.DOMException=r.DOMException}return e.prototype=r,new e}();!function(e){!function(t){var r="undefined"!==typeof e&&e||"undefined"!==typeof self&&self||"undefined"!==typeof n.g&&n.g||{},i="URLSearchParams"in r,o="Symbol"in r&&"iterator"in Symbol,s="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),a="FormData"in r,c="ArrayBuffer"in r;if(c)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&l.indexOf(Object.prototype.toString.call(e))>-1};function d(e){if("string"!==typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function h(e){return"string"!==typeof e&&(e=String(e)),e}function f(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return o&&(t[Symbol.iterator]=function(){return t}),t}function p(e){this.map={},e instanceof p?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function m(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function g(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function y(e){var t=new FileReader,n=g(t);return t.readAsArrayBuffer(e),n}function b(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"===typeof e?this._bodyText=e:s&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:i&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():c&&s&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=b(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=b(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"===typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},s&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=m(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(s)return this.blob().then(y);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=g(t),r=/charset=([A-Za-z0-9_-]+)/.exec(e.type),i=r?r[1]:"utf-8";return t.readAsText(e,i),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}p.prototype.append=function(e,t){e=d(e),t=h(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},p.prototype.delete=function(e){delete this.map[d(e)]},p.prototype.get=function(e){return e=d(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(d(e))},p.prototype.set=function(e,t){this.map[d(e)]=h(t)},p.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},p.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),f(e)},p.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),f(e)},p.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),f(e)},o&&(p.prototype[Symbol.iterator]=p.prototype.entries);var w=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function _(e,t){if(!(this instanceof _))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=function(e){var t=e.toUpperCase();return w.indexOf(t)>-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in r)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),("GET"===this.method||"HEAD"===this.method)&&("no-store"===t.cache||"no-cache"===t.cache)){var i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function x(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}}),t}function A(e){var t=new p;return e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();try{t.append(r,i)}catch(o){console.warn("Response "+o.message)}}}),t}function k(e,t){if(!(this instanceof k))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new p(t.headers),this.url=t.url||"",this._initBody(e)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},v.call(_.prototype),v.call(k.prototype),k.prototype.clone=function(){return new k(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},k.error=function(){var e=new k(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var E=[301,302,303,307,308];k.redirect=function(e,t){if(-1===E.indexOf(t))throw new RangeError("Invalid status code");return new k(null,{status:t,headers:{location:e}})},t.DOMException=r.DOMException;try{new t.DOMException}catch(P){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function S(e,n){return new Promise(function(i,o){var a=new _(e,n);if(a.signal&&a.signal.aborted)return o(new t.DOMException("Aborted","AbortError"));var l=new XMLHttpRequest;function u(){l.abort()}if(l.onload=function(){var e={statusText:l.statusText,headers:A(l.getAllResponseHeaders()||"")};0===a.url.indexOf("file://")&&(l.status<200||l.status>599)?e.status=200:e.status=l.status,e.url="responseURL"in l?l.responseURL:e.headers.get("X-Request-URL");var t="response"in l?l.response:l.responseText;setTimeout(function(){i(new k(t,e))},0)},l.onerror=function(){setTimeout(function(){o(new TypeError("Network request failed"))},0)},l.ontimeout=function(){setTimeout(function(){o(new TypeError("Network request timed out"))},0)},l.onabort=function(){setTimeout(function(){o(new t.DOMException("Aborted","AbortError"))},0)},l.open(a.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(a.url),!0),"include"===a.credentials?l.withCredentials=!0:"omit"===a.credentials&&(l.withCredentials=!1),"responseType"in l&&(s?l.responseType="blob":c&&(l.responseType="arraybuffer")),n&&"object"===typeof n.headers&&!(n.headers instanceof p||r.Headers&&n.headers instanceof r.Headers)){var f=[];Object.getOwnPropertyNames(n.headers).forEach(function(e){f.push(d(e)),l.setRequestHeader(e,h(n.headers[e]))}),a.headers.forEach(function(e,t){-1===f.indexOf(t)&&l.setRequestHeader(t,e)})}else a.headers.forEach(function(e,t){l.setRequestHeader(t,e)});a.signal&&(a.signal.addEventListener("abort",u),l.onreadystatechange=function(){4===l.readyState&&a.signal.removeEventListener("abort",u)}),l.send("undefined"===typeof a._bodyInit?null:a._bodyInit)})}S.polyfill=!0,r.fetch||(r.fetch=S,r.Headers=p,r.Request=_,r.Response=k),t.Headers=p,t.Request=_,t.Response=k,t.fetch=S}({})}(i),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var o=r.fetch?r:i;(t=o.fetch).default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,e.exports=t},2715:(e,t,n)=>{"use strict";const r=n(593);e.exports=(e,t)=>e.sort((e,n)=>r(e,n,t))},2747:function(e,t,n){var r;e=n.nmd(e),function(){var i,o="Expected a function",s="__lodash_hash_undefined__",a="__lodash_placeholder__",c=16,l=32,u=64,d=128,h=256,f=1/0,p=9007199254740991,m=NaN,g=4294967295,y=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",c],["flip",512],["partial",l],["partialRight",u],["rearg",h]],b="[object Arguments]",v="[object Array]",w="[object Boolean]",_="[object Date]",x="[object Error]",A="[object Function]",k="[object GeneratorFunction]",E="[object Map]",S="[object Number]",P="[object Object]",C="[object Promise]",I="[object RegExp]",M="[object Set]",T="[object String]",O="[object Symbol]",R="[object WeakMap]",B="[object ArrayBuffer]",N="[object DataView]",U="[object Float32Array]",j="[object Float64Array]",L="[object Int8Array]",F="[object Int16Array]",D="[object Int32Array]",z="[object Uint8Array]",q="[object Uint8ClampedArray]",H="[object Uint16Array]",W="[object Uint32Array]",K=/\b__p \+= '';/g,$=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,J=/[&<>"']/g,Z=RegExp(G.source),Y=RegExp(J.source),Q=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ie=/[\\^$.*+?()[\]{}|]/g,oe=RegExp(ie.source),se=/^\s+/,ae=/\s/,ce=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,le=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,he=/[()=,{}\[\]\/\s]/,fe=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,me=/\w*$/,ge=/^[-+]0x[0-9a-f]+$/i,ye=/^0b[01]+$/i,be=/^\[object .+?Constructor\]$/,ve=/^0o[0-7]+$/i,we=/^(?:0|[1-9]\d*)$/,_e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xe=/($^)/,Ae=/['\n\r\u2028\u2029\\]/g,ke="\\ud800-\\udfff",Ee="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Se="\\u2700-\\u27bf",Pe="a-z\\xdf-\\xf6\\xf8-\\xff",Ce="A-Z\\xc0-\\xd6\\xd8-\\xde",Ie="\\ufe0e\\ufe0f",Me="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Te="['\u2019]",Oe="["+ke+"]",Re="["+Me+"]",Be="["+Ee+"]",Ne="\\d+",Ue="["+Se+"]",je="["+Pe+"]",Le="[^"+ke+Me+Ne+Se+Pe+Ce+"]",Fe="\\ud83c[\\udffb-\\udfff]",De="[^"+ke+"]",ze="(?:\\ud83c[\\udde6-\\uddff]){2}",qe="[\\ud800-\\udbff][\\udc00-\\udfff]",He="["+Ce+"]",We="\\u200d",Ke="(?:"+je+"|"+Le+")",$e="(?:"+He+"|"+Le+")",Ve="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Ge="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Je="(?:"+Be+"|"+Fe+")"+"?",Ze="["+Ie+"]?",Ye=Ze+Je+("(?:"+We+"(?:"+[De,ze,qe].join("|")+")"+Ze+Je+")*"),Qe="(?:"+[Ue,ze,qe].join("|")+")"+Ye,Xe="(?:"+[De+Be+"?",Be,ze,qe,Oe].join("|")+")",et=RegExp(Te,"g"),tt=RegExp(Be,"g"),nt=RegExp(Fe+"(?="+Fe+")|"+Xe+Ye,"g"),rt=RegExp([He+"?"+je+"+"+Ve+"(?="+[Re,He,"$"].join("|")+")",$e+"+"+Ge+"(?="+[Re,He+Ke,"$"].join("|")+")",He+"?"+Ke+"+"+Ve,He+"+"+Ge,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ne,Qe].join("|"),"g"),it=RegExp("["+We+ke+Ee+Ie+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,st=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],at=-1,ct={};ct[U]=ct[j]=ct[L]=ct[F]=ct[D]=ct[z]=ct[q]=ct[H]=ct[W]=!0,ct[b]=ct[v]=ct[B]=ct[w]=ct[N]=ct[_]=ct[x]=ct[A]=ct[E]=ct[S]=ct[P]=ct[I]=ct[M]=ct[T]=ct[R]=!1;var lt={};lt[b]=lt[v]=lt[B]=lt[N]=lt[w]=lt[_]=lt[U]=lt[j]=lt[L]=lt[F]=lt[D]=lt[E]=lt[S]=lt[P]=lt[I]=lt[M]=lt[T]=lt[O]=lt[z]=lt[q]=lt[H]=lt[W]=!0,lt[x]=lt[A]=lt[R]=!1;var ut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,ht=parseInt,ft="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,pt="object"==typeof self&&self&&self.Object===Object&&self,mt=ft||pt||Function("return this")(),gt=t&&!t.nodeType&&t,yt=gt&&e&&!e.nodeType&&e,bt=yt&&yt.exports===gt,vt=bt&&ft.process,wt=function(){try{var e=yt&&yt.require&&yt.require("util").types;return e||vt&&vt.binding&&vt.binding("util")}catch(t){}}(),_t=wt&&wt.isArrayBuffer,xt=wt&&wt.isDate,At=wt&&wt.isMap,kt=wt&&wt.isRegExp,Et=wt&&wt.isSet,St=wt&&wt.isTypedArray;function Pt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Ct(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var s=e[i];t(r,s,n(s),e)}return r}function It(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Mt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Tt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Ot(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}function Rt(e,t){return!!(null==e?0:e.length)&&Ht(e,t,0)>-1}function Bt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Nt(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Ut(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function jt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function Lt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Ft(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Dt=Vt("length");function zt(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function qt(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Ht(e,t,n){return t===t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):qt(e,Kt,n)}function Wt(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function Kt(e){return e!==e}function $t(e,t){var n=null==e?0:e.length;return n?Zt(e,t)/n:m}function Vt(e){return function(t){return null==t?i:t[e]}}function Gt(e){return function(t){return null==e?i:e[t]}}function Jt(e,t,n,r,i){return i(e,function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)}),n}function Zt(e,t){for(var n,r=-1,o=e.length;++r<o;){var s=t(e[r]);s!==i&&(n=n===i?s:n+s)}return n}function Yt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Qt(e){return e?e.slice(0,gn(e)+1).replace(se,""):e}function Xt(e){return function(t){return e(t)}}function en(e,t){return Nt(t,function(t){return e[t]})}function tn(e,t){return e.has(t)}function nn(e,t){for(var n=-1,r=e.length;++n<r&&Ht(t,e[n],0)>-1;);return n}function rn(e,t){for(var n=e.length;n--&&Ht(t,e[n],0)>-1;);return n}var on=Gt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),sn=Gt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function an(e){return"\\"+ut[e]}function cn(e){return it.test(e)}function ln(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function un(e,t){return function(n){return e(t(n))}}function dn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];s!==t&&s!==a||(e[n]=a,o[i++]=n)}return o}function hn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function fn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function pn(e){return cn(e)?function(e){var t=nt.lastIndex=0;for(;nt.test(e);)++t;return t}(e):Dt(e)}function mn(e){return cn(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.split("")}(e)}function gn(e){for(var t=e.length;t--&&ae.test(e.charAt(t)););return t}var yn=Gt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var bn=function e(t){var n=(t=null==t?mt:bn.defaults(mt.Object(),t,bn.pick(mt,st))).Array,r=t.Date,ae=t.Error,ke=t.Function,Ee=t.Math,Se=t.Object,Pe=t.RegExp,Ce=t.String,Ie=t.TypeError,Me=n.prototype,Te=ke.prototype,Oe=Se.prototype,Re=t["__core-js_shared__"],Be=Te.toString,Ne=Oe.hasOwnProperty,Ue=0,je=function(){var e=/[^.]+$/.exec(Re&&Re.keys&&Re.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Le=Oe.toString,Fe=Be.call(Se),De=mt._,ze=Pe("^"+Be.call(Ne).replace(ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qe=bt?t.Buffer:i,He=t.Symbol,We=t.Uint8Array,Ke=qe?qe.allocUnsafe:i,$e=un(Se.getPrototypeOf,Se),Ve=Se.create,Ge=Oe.propertyIsEnumerable,Je=Me.splice,Ze=He?He.isConcatSpreadable:i,Ye=He?He.iterator:i,Qe=He?He.toStringTag:i,Xe=function(){try{var e=ho(Se,"defineProperty");return e({},"",{}),e}catch(t){}}(),nt=t.clearTimeout!==mt.clearTimeout&&t.clearTimeout,it=r&&r.now!==mt.Date.now&&r.now,ut=t.setTimeout!==mt.setTimeout&&t.setTimeout,ft=Ee.ceil,pt=Ee.floor,gt=Se.getOwnPropertySymbols,yt=qe?qe.isBuffer:i,vt=t.isFinite,wt=Me.join,Dt=un(Se.keys,Se),Gt=Ee.max,vn=Ee.min,wn=r.now,_n=t.parseInt,xn=Ee.random,An=Me.reverse,kn=ho(t,"DataView"),En=ho(t,"Map"),Sn=ho(t,"Promise"),Pn=ho(t,"Set"),Cn=ho(t,"WeakMap"),In=ho(Se,"create"),Mn=Cn&&new Cn,Tn={},On=Lo(kn),Rn=Lo(En),Bn=Lo(Sn),Nn=Lo(Pn),Un=Lo(Cn),jn=He?He.prototype:i,Ln=jn?jn.valueOf:i,Fn=jn?jn.toString:i;function Dn(e){if(ta(e)&&!Ws(e)&&!(e instanceof Wn)){if(e instanceof Hn)return e;if(Ne.call(e,"__wrapped__"))return Fo(e)}return new Hn(e)}var zn=function(){function e(){}return function(t){if(!ea(t))return{};if(Ve)return Ve(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function qn(){}function Hn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Wn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function $n(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Vn;++t<n;)this.add(e[t])}function Jn(e){var t=this.__data__=new $n(e);this.size=t.size}function Zn(e,t){var n=Ws(e),r=!n&&Hs(e),i=!n&&!r&&Gs(e),o=!n&&!r&&!i&&la(e),s=n||r||i||o,a=s?Yt(e.length,Ce):[],c=a.length;for(var l in e)!t&&!Ne.call(e,l)||s&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||vo(l,c))||a.push(l);return a}function Yn(e){var t=e.length;return t?e[Gr(0,t-1)]:i}function Qn(e,t){return No(Ii(e),ar(t,0,e.length))}function Xn(e){return No(Ii(e))}function er(e,t,n){(n!==i&&!Ds(e[t],n)||n===i&&!(t in e))&&or(e,t,n)}function tr(e,t,n){var r=e[t];Ne.call(e,t)&&Ds(r,n)&&(n!==i||t in e)||or(e,t,n)}function nr(e,t){for(var n=e.length;n--;)if(Ds(e[n][0],t))return n;return-1}function rr(e,t,n,r){return hr(e,function(e,i,o){t(r,e,n(e),o)}),r}function ir(e,t){return e&&Mi(t,Ta(t),e)}function or(e,t,n){"__proto__"==t&&Xe?Xe(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function sr(e,t){for(var r=-1,o=t.length,s=n(o),a=null==e;++r<o;)s[r]=a?i:Sa(e,t[r]);return s}function ar(e,t,n){return e===e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function cr(e,t,n,r,o,s){var a,c=1&t,l=2&t,u=4&t;if(n&&(a=o?n(e,r,o,s):n(e)),a!==i)return a;if(!ea(e))return e;var d=Ws(e);if(d){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ne.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!c)return Ii(e,a)}else{var h=mo(e),f=h==A||h==k;if(Gs(e))return Ai(e,c);if(h==P||h==b||f&&!o){if(a=l||f?{}:yo(e),!c)return l?function(e,t){return Mi(e,po(e),t)}(e,function(e,t){return e&&Mi(t,Oa(t),e)}(a,e)):function(e,t){return Mi(e,fo(e),t)}(e,ir(a,e))}else{if(!lt[h])return o?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case B:return ki(e);case w:case _:return new r(+e);case N:return function(e,t){var n=t?ki(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case U:case j:case L:case F:case D:case z:case q:case H:case W:return Ei(e,n);case E:return new r;case S:case T:return new r(e);case I:return function(e){var t=new e.constructor(e.source,me.exec(e));return t.lastIndex=e.lastIndex,t}(e);case M:return new r;case O:return i=e,Ln?Se(Ln.call(i)):{}}var i}(e,h,c)}}s||(s=new Jn);var p=s.get(e);if(p)return p;s.set(e,a),sa(e)?e.forEach(function(r){a.add(cr(r,t,n,r,e,s))}):na(e)&&e.forEach(function(r,i){a.set(i,cr(r,t,n,i,e,s))});var m=d?i:(u?l?io:ro:l?Oa:Ta)(e);return It(m||e,function(r,i){m&&(r=e[i=r]),tr(a,i,cr(r,t,n,i,e,s))}),a}function lr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Se(e);r--;){var o=n[r],s=t[o],a=e[o];if(a===i&&!(o in e)||!s(a))return!1}return!0}function ur(e,t,n){if("function"!=typeof e)throw new Ie(o);return To(function(){e.apply(i,n)},t)}function dr(e,t,n,r){var i=-1,o=Rt,s=!0,a=e.length,c=[],l=t.length;if(!a)return c;n&&(t=Nt(t,Xt(n))),r?(o=Bt,s=!1):t.length>=200&&(o=tn,s=!1,t=new Gn(t));e:for(;++i<a;){var u=e[i],d=null==n?u:n(u);if(u=r||0!==u?u:0,s&&d===d){for(var h=l;h--;)if(t[h]===d)continue e;c.push(u)}else o(t,d,r)||c.push(u)}return c}Dn.templateSettings={escape:Q,evaluate:X,interpolate:ee,variable:"",imports:{_:Dn}},Dn.prototype=qn.prototype,Dn.prototype.constructor=Dn,Hn.prototype=zn(qn.prototype),Hn.prototype.constructor=Hn,Wn.prototype=zn(qn.prototype),Wn.prototype.constructor=Wn,Kn.prototype.clear=function(){this.__data__=In?In(null):{},this.size=0},Kn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Kn.prototype.get=function(e){var t=this.__data__;if(In){var n=t[e];return n===s?i:n}return Ne.call(t,e)?t[e]:i},Kn.prototype.has=function(e){var t=this.__data__;return In?t[e]!==i:Ne.call(t,e)},Kn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=In&&t===i?s:t,this},$n.prototype.clear=function(){this.__data__=[],this.size=0},$n.prototype.delete=function(e){var t=this.__data__,n=nr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Je.call(t,n,1),--this.size,!0)},$n.prototype.get=function(e){var t=this.__data__,n=nr(t,e);return n<0?i:t[n][1]},$n.prototype.has=function(e){return nr(this.__data__,e)>-1},$n.prototype.set=function(e,t){var n=this.__data__,r=nr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Vn.prototype.clear=function(){this.size=0,this.__data__={hash:new Kn,map:new(En||$n),string:new Kn}},Vn.prototype.delete=function(e){var t=lo(this,e).delete(e);return this.size-=t?1:0,t},Vn.prototype.get=function(e){return lo(this,e).get(e)},Vn.prototype.has=function(e){return lo(this,e).has(e)},Vn.prototype.set=function(e,t){var n=lo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Gn.prototype.add=Gn.prototype.push=function(e){return this.__data__.set(e,s),this},Gn.prototype.has=function(e){return this.__data__.has(e)},Jn.prototype.clear=function(){this.__data__=new $n,this.size=0},Jn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Jn.prototype.get=function(e){return this.__data__.get(e)},Jn.prototype.has=function(e){return this.__data__.has(e)},Jn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof $n){var r=n.__data__;if(!En||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Vn(r)}return n.set(e,t),this.size=n.size,this};var hr=Ri(wr),fr=Ri(_r,!0);function pr(e,t){var n=!0;return hr(e,function(e,r,i){return n=!!t(e,r,i)}),n}function mr(e,t,n){for(var r=-1,o=e.length;++r<o;){var s=e[r],a=t(s);if(null!=a&&(c===i?a===a&&!ca(a):n(a,c)))var c=a,l=s}return l}function gr(e,t){var n=[];return hr(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function yr(e,t,n,r,i){var o=-1,s=e.length;for(n||(n=bo),i||(i=[]);++o<s;){var a=e[o];t>0&&n(a)?t>1?yr(a,t-1,n,r,i):Ut(i,a):r||(i[i.length]=a)}return i}var br=Bi(),vr=Bi(!0);function wr(e,t){return e&&br(e,t,Ta)}function _r(e,t){return e&&vr(e,t,Ta)}function xr(e,t){return Ot(t,function(t){return Ys(e[t])})}function Ar(e,t){for(var n=0,r=(t=vi(t,e)).length;null!=e&&n<r;)e=e[jo(t[n++])];return n&&n==r?e:i}function kr(e,t,n){var r=t(e);return Ws(e)?r:Ut(r,n(e))}function Er(e){return null==e?e===i?"[object Undefined]":"[object Null]":Qe&&Qe in Se(e)?function(e){var t=Ne.call(e,Qe),n=e[Qe];try{e[Qe]=i;var r=!0}catch(s){}var o=Le.call(e);r&&(t?e[Qe]=n:delete e[Qe]);return o}(e):function(e){return Le.call(e)}(e)}function Sr(e,t){return e>t}function Pr(e,t){return null!=e&&Ne.call(e,t)}function Cr(e,t){return null!=e&&t in Se(e)}function Ir(e,t,r){for(var o=r?Bt:Rt,s=e[0].length,a=e.length,c=a,l=n(a),u=1/0,d=[];c--;){var h=e[c];c&&t&&(h=Nt(h,Xt(t))),u=vn(h.length,u),l[c]=!r&&(t||s>=120&&h.length>=120)?new Gn(c&&h):i}h=e[0];var f=-1,p=l[0];e:for(;++f<s&&d.length<u;){var m=h[f],g=t?t(m):m;if(m=r||0!==m?m:0,!(p?tn(p,g):o(d,g,r))){for(c=a;--c;){var y=l[c];if(!(y?tn(y,g):o(e[c],g,r)))continue e}p&&p.push(g),d.push(m)}}return d}function Mr(e,t,n){var r=null==(e=Co(e,t=vi(t,e)))?e:e[jo(Zo(t))];return null==r?i:Pt(r,e,n)}function Tr(e){return ta(e)&&Er(e)==b}function Or(e,t,n,r,o){return e===t||(null==e||null==t||!ta(e)&&!ta(t)?e!==e&&t!==t:function(e,t,n,r,o,s){var a=Ws(e),c=Ws(t),l=a?v:mo(e),u=c?v:mo(t),d=(l=l==b?P:l)==P,h=(u=u==b?P:u)==P,f=l==u;if(f&&Gs(e)){if(!Gs(t))return!1;a=!0,d=!1}if(f&&!d)return s||(s=new Jn),a||la(e)?to(e,t,n,r,o,s):function(e,t,n,r,i,o,s){switch(n){case N:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case B:return!(e.byteLength!=t.byteLength||!o(new We(e),new We(t)));case w:case _:case S:return Ds(+e,+t);case x:return e.name==t.name&&e.message==t.message;case I:case T:return e==t+"";case E:var a=ln;case M:var c=1&r;if(a||(a=hn),e.size!=t.size&&!c)return!1;var l=s.get(e);if(l)return l==t;r|=2,s.set(e,t);var u=to(a(e),a(t),r,i,o,s);return s.delete(e),u;case O:if(Ln)return Ln.call(e)==Ln.call(t)}return!1}(e,t,l,n,r,o,s);if(!(1&n)){var p=d&&Ne.call(e,"__wrapped__"),m=h&&Ne.call(t,"__wrapped__");if(p||m){var g=p?e.value():e,y=m?t.value():t;return s||(s=new Jn),o(g,y,n,r,s)}}if(!f)return!1;return s||(s=new Jn),function(e,t,n,r,o,s){var a=1&n,c=ro(e),l=c.length,u=ro(t),d=u.length;if(l!=d&&!a)return!1;var h=l;for(;h--;){var f=c[h];if(!(a?f in t:Ne.call(t,f)))return!1}var p=s.get(e),m=s.get(t);if(p&&m)return p==t&&m==e;var g=!0;s.set(e,t),s.set(t,e);var y=a;for(;++h<l;){var b=e[f=c[h]],v=t[f];if(r)var w=a?r(v,b,f,t,e,s):r(b,v,f,e,t,s);if(!(w===i?b===v||o(b,v,n,r,s):w)){g=!1;break}y||(y="constructor"==f)}if(g&&!y){var _=e.constructor,x=t.constructor;_==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof x&&x instanceof x||(g=!1)}return s.delete(e),s.delete(t),g}(e,t,n,r,o,s)}(e,t,n,r,Or,o))}function Rr(e,t,n,r){var o=n.length,s=o,a=!r;if(null==e)return!s;for(e=Se(e);o--;){var c=n[o];if(a&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++o<s;){var l=(c=n[o])[0],u=e[l],d=c[1];if(a&&c[2]){if(u===i&&!(l in e))return!1}else{var h=new Jn;if(r)var f=r(u,d,l,e,t,h);if(!(f===i?Or(d,u,3,r,h):f))return!1}}return!0}function Br(e){return!(!ea(e)||(t=e,je&&je in t))&&(Ys(e)?ze:be).test(Lo(e));var t}function Nr(e){return"function"==typeof e?e:null==e?rc:"object"==typeof e?Ws(e)?zr(e[0],e[1]):Dr(e):hc(e)}function Ur(e){if(!ko(e))return Dt(e);var t=[];for(var n in Se(e))Ne.call(e,n)&&"constructor"!=n&&t.push(n);return t}function jr(e){if(!ea(e))return function(e){var t=[];if(null!=e)for(var n in Se(e))t.push(n);return t}(e);var t=ko(e),n=[];for(var r in e)("constructor"!=r||!t&&Ne.call(e,r))&&n.push(r);return n}function Lr(e,t){return e<t}function Fr(e,t){var r=-1,i=$s(e)?n(e.length):[];return hr(e,function(e,n,o){i[++r]=t(e,n,o)}),i}function Dr(e){var t=uo(e);return 1==t.length&&t[0][2]?So(t[0][0],t[0][1]):function(n){return n===e||Rr(n,e,t)}}function zr(e,t){return _o(e)&&Eo(t)?So(jo(e),t):function(n){var r=Sa(n,e);return r===i&&r===t?Pa(n,e):Or(t,r,3)}}function qr(e,t,n,r,o){e!==t&&br(t,function(s,a){if(o||(o=new Jn),ea(s))!function(e,t,n,r,o,s,a){var c=Io(e,n),l=Io(t,n),u=a.get(l);if(u)return void er(e,n,u);var d=s?s(c,l,n+"",e,t,a):i,h=d===i;if(h){var f=Ws(l),p=!f&&Gs(l),m=!f&&!p&&la(l);d=l,f||p||m?Ws(c)?d=c:Vs(c)?d=Ii(c):p?(h=!1,d=Ai(l,!0)):m?(h=!1,d=Ei(l,!0)):d=[]:ia(l)||Hs(l)?(d=c,Hs(c)?d=ya(c):ea(c)&&!Ys(c)||(d=yo(l))):h=!1}h&&(a.set(l,d),o(d,l,r,s,a),a.delete(l));er(e,n,d)}(e,t,a,n,qr,r,o);else{var c=r?r(Io(e,a),s,a+"",e,t,o):i;c===i&&(c=s),er(e,a,c)}},Oa)}function Hr(e,t){var n=e.length;if(n)return vo(t+=t<0?n:0,n)?e[t]:i}function Wr(e,t,n){t=t.length?Nt(t,function(e){return Ws(e)?function(t){return Ar(t,1===e.length?e[0]:e)}:e}):[rc];var r=-1;t=Nt(t,Xt(co()));var i=Fr(e,function(e,n,i){var o=Nt(t,function(t){return t(e)});return{criteria:o,index:++r,value:e}});return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(i,function(e,t){return function(e,t,n){var r=-1,i=e.criteria,o=t.criteria,s=i.length,a=n.length;for(;++r<s;){var c=Si(i[r],o[r]);if(c)return r>=a?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)})}function Kr(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var s=t[r],a=Ar(e,s);n(a,s)&&Xr(o,vi(s,e),a)}return o}function $r(e,t,n,r){var i=r?Wt:Ht,o=-1,s=t.length,a=e;for(e===t&&(t=Ii(t)),n&&(a=Nt(e,Xt(n)));++o<s;)for(var c=0,l=t[o],u=n?n(l):l;(c=i(a,u,c,r))>-1;)a!==e&&Je.call(a,c,1),Je.call(e,c,1);return e}function Vr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;vo(i)?Je.call(e,i,1):di(e,i)}}return e}function Gr(e,t){return e+pt(xn()*(t-e+1))}function Jr(e,t){var n="";if(!e||t<1||t>p)return n;do{t%2&&(n+=e),(t=pt(t/2))&&(e+=e)}while(t);return n}function Zr(e,t){return Oo(Po(e,t,rc),e+"")}function Yr(e){return Yn(Da(e))}function Qr(e,t){var n=Da(e);return No(n,ar(t,0,n.length))}function Xr(e,t,n,r){if(!ea(e))return e;for(var o=-1,s=(t=vi(t,e)).length,a=s-1,c=e;null!=c&&++o<s;){var l=jo(t[o]),u=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(o!=a){var d=c[l];(u=r?r(d,l,c):i)===i&&(u=ea(d)?d:vo(t[o+1])?[]:{})}tr(c,l,u),c=c[l]}return e}var ei=Mn?function(e,t){return Mn.set(e,t),e}:rc,ti=Xe?function(e,t){return Xe(e,"toString",{configurable:!0,enumerable:!1,value:ec(t),writable:!0})}:rc;function ni(e){return No(Da(e))}function ri(e,t,r){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var s=n(o);++i<o;)s[i]=e[i+t];return s}function ii(e,t){var n;return hr(e,function(e,r,i){return!(n=t(e,r,i))}),!!n}function oi(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t===t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,s=e[o];null!==s&&!ca(s)&&(n?s<=t:s<t)?r=o+1:i=o}return i}return si(e,t,rc,n)}function si(e,t,n,r){var o=0,s=null==e?0:e.length;if(0===s)return 0;for(var a=(t=n(t))!==t,c=null===t,l=ca(t),u=t===i;o<s;){var d=pt((o+s)/2),h=n(e[d]),f=h!==i,p=null===h,m=h===h,g=ca(h);if(a)var y=r||m;else y=u?m&&(r||f):c?m&&f&&(r||!p):l?m&&f&&!p&&(r||!g):!p&&!g&&(r?h<=t:h<t);y?o=d+1:s=d}return vn(s,4294967294)}function ai(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n],a=t?t(s):s;if(!n||!Ds(a,c)){var c=a;o[i++]=0===s?0:s}}return o}function ci(e){return"number"==typeof e?e:ca(e)?m:+e}function li(e){if("string"==typeof e)return e;if(Ws(e))return Nt(e,li)+"";if(ca(e))return Fn?Fn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ui(e,t,n){var r=-1,i=Rt,o=e.length,s=!0,a=[],c=a;if(n)s=!1,i=Bt;else if(o>=200){var l=t?null:Ji(e);if(l)return hn(l);s=!1,i=tn,c=new Gn}else c=t?[]:a;e:for(;++r<o;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,s&&d===d){for(var h=c.length;h--;)if(c[h]===d)continue e;t&&c.push(d),a.push(u)}else i(c,d,n)||(c!==a&&c.push(d),a.push(u))}return a}function di(e,t){return null==(e=Co(e,t=vi(t,e)))||delete e[jo(Zo(t))]}function hi(e,t,n,r){return Xr(e,t,n(Ar(e,t)),r)}function fi(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?ri(e,r?0:o,r?o+1:i):ri(e,r?o+1:0,r?i:o)}function pi(e,t){var n=e;return n instanceof Wn&&(n=n.value()),jt(t,function(e,t){return t.func.apply(t.thisArg,Ut([e],t.args))},n)}function mi(e,t,r){var i=e.length;if(i<2)return i?ui(e[0]):[];for(var o=-1,s=n(i);++o<i;)for(var a=e[o],c=-1;++c<i;)c!=o&&(s[o]=dr(s[o]||a,e[c],t,r));return ui(yr(s,1),t,r)}function gi(e,t,n){for(var r=-1,o=e.length,s=t.length,a={};++r<o;){var c=r<s?t[r]:i;n(a,e[r],c)}return a}function yi(e){return Vs(e)?e:[]}function bi(e){return"function"==typeof e?e:rc}function vi(e,t){return Ws(e)?e:_o(e,t)?[e]:Uo(ba(e))}var wi=Zr;function _i(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:ri(e,t,n)}var xi=nt||function(e){return mt.clearTimeout(e)};function Ai(e,t){if(t)return e.slice();var n=e.length,r=Ke?Ke(n):new e.constructor(n);return e.copy(r),r}function ki(e){var t=new e.constructor(e.byteLength);return new We(t).set(new We(e)),t}function Ei(e,t){var n=t?ki(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Si(e,t){if(e!==t){var n=e!==i,r=null===e,o=e===e,s=ca(e),a=t!==i,c=null===t,l=t===t,u=ca(t);if(!c&&!u&&!s&&e>t||s&&a&&l&&!c&&!u||r&&a&&l||!n&&l||!o)return 1;if(!r&&!s&&!u&&e<t||u&&n&&o&&!r&&!s||c&&n&&o||!a&&o||!l)return-1}return 0}function Pi(e,t,r,i){for(var o=-1,s=e.length,a=r.length,c=-1,l=t.length,u=Gt(s-a,0),d=n(l+u),h=!i;++c<l;)d[c]=t[c];for(;++o<a;)(h||o<s)&&(d[r[o]]=e[o]);for(;u--;)d[c++]=e[o++];return d}function Ci(e,t,r,i){for(var o=-1,s=e.length,a=-1,c=r.length,l=-1,u=t.length,d=Gt(s-c,0),h=n(d+u),f=!i;++o<d;)h[o]=e[o];for(var p=o;++l<u;)h[p+l]=t[l];for(;++a<c;)(f||o<s)&&(h[p+r[a]]=e[o++]);return h}function Ii(e,t){var r=-1,i=e.length;for(t||(t=n(i));++r<i;)t[r]=e[r];return t}function Mi(e,t,n,r){var o=!n;n||(n={});for(var s=-1,a=t.length;++s<a;){var c=t[s],l=r?r(n[c],e[c],c,n,e):i;l===i&&(l=e[c]),o?or(n,c,l):tr(n,c,l)}return n}function Ti(e,t){return function(n,r){var i=Ws(n)?Ct:rr,o=t?t():{};return i(n,e,co(r,2),o)}}function Oi(e){return Zr(function(t,n){var r=-1,o=n.length,s=o>1?n[o-1]:i,a=o>2?n[2]:i;for(s=e.length>3&&"function"==typeof s?(o--,s):i,a&&wo(n[0],n[1],a)&&(s=o<3?i:s,o=1),t=Se(t);++r<o;){var c=n[r];c&&e(t,c,r,s)}return t})}function Ri(e,t){return function(n,r){if(null==n)return n;if(!$s(n))return e(n,r);for(var i=n.length,o=t?i:-1,s=Se(n);(t?o--:++o<i)&&!1!==r(s[o],o,s););return n}}function Bi(e){return function(t,n,r){for(var i=-1,o=Se(t),s=r(t),a=s.length;a--;){var c=s[e?a:++i];if(!1===n(o[c],c,o))break}return t}}function Ni(e){return function(t){var n=cn(t=ba(t))?mn(t):i,r=n?n[0]:t.charAt(0),o=n?_i(n,1).join(""):t.slice(1);return r[e]()+o}}function Ui(e){return function(t){return jt(Ya(Ha(t).replace(et,"")),e,"")}}function ji(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=zn(e.prototype),r=e.apply(n,t);return ea(r)?r:n}}function Li(e){return function(t,n,r){var o=Se(t);if(!$s(t)){var s=co(n,3);t=Ta(t),n=function(e){return s(o[e],e,o)}}var a=e(t,n,r);return a>-1?o[s?t[a]:a]:i}}function Fi(e){return no(function(t){var n=t.length,r=n,s=Hn.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new Ie(o);if(s&&!c&&"wrapper"==so(a))var c=new Hn([],!0)}for(r=c?r:n;++r<n;){var l=so(a=t[r]),u="wrapper"==l?oo(a):i;c=u&&xo(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?c[so(u[0])].apply(c,u[3]):1==a.length&&xo(a)?c[l]():c.thru(a)}return function(){var e=arguments,r=e[0];if(c&&1==e.length&&Ws(r))return c.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}})}function Di(e,t,r,o,s,a,c,l,u,h){var f=t&d,p=1&t,m=2&t,g=24&t,y=512&t,b=m?i:ji(e);return function d(){for(var v=arguments.length,w=n(v),_=v;_--;)w[_]=arguments[_];if(g)var x=ao(d),A=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(w,x);if(o&&(w=Pi(w,o,s,g)),a&&(w=Ci(w,a,c,g)),v-=A,g&&v<h){var k=dn(w,x);return Vi(e,t,Di,d.placeholder,r,w,k,l,u,h-v)}var E=p?r:this,S=m?E[e]:e;return v=w.length,l?w=function(e,t){var n=e.length,r=vn(t.length,n),o=Ii(e);for(;r--;){var s=t[r];e[r]=vo(s,n)?o[s]:i}return e}(w,l):y&&v>1&&w.reverse(),f&&u<v&&(w.length=u),this&&this!==mt&&this instanceof d&&(S=b||ji(S)),S.apply(E,w)}}function zi(e,t){return function(n,r){return function(e,t,n,r){return wr(e,function(e,i,o){t(r,n(e),i,o)}),r}(n,e,t(r),{})}}function qi(e,t){return function(n,r){var o;if(n===i&&r===i)return t;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=li(n),r=li(r)):(n=ci(n),r=ci(r)),o=e(n,r)}return o}}function Hi(e){return no(function(t){return t=Nt(t,Xt(co())),Zr(function(n){var r=this;return e(t,function(e){return Pt(e,r,n)})})})}function Wi(e,t){var n=(t=t===i?" ":li(t)).length;if(n<2)return n?Jr(t,e):t;var r=Jr(t,ft(e/pn(t)));return cn(t)?_i(mn(r),0,e).join(""):r.slice(0,e)}function Ki(e){return function(t,r,o){return o&&"number"!=typeof o&&wo(t,r,o)&&(r=o=i),t=fa(t),r===i?(r=t,t=0):r=fa(r),function(e,t,r,i){for(var o=-1,s=Gt(ft((t-e)/(r||1)),0),a=n(s);s--;)a[i?s:++o]=e,e+=r;return a}(t,r,o=o===i?t<r?1:-1:fa(o),e)}}function $i(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ga(t),n=ga(n)),e(t,n)}}function Vi(e,t,n,r,o,s,a,c,d,h){var f=8&t;t|=f?l:u,4&(t&=~(f?u:l))||(t&=-4);var p=[e,t,o,f?s:i,f?a:i,f?i:s,f?i:a,c,d,h],m=n.apply(i,p);return xo(e)&&Mo(m,p),m.placeholder=r,Ro(m,e,t)}function Gi(e){var t=Ee[e];return function(e,n){if(e=ga(e),(n=null==n?0:vn(pa(n),292))&&vt(e)){var r=(ba(e)+"e").split("e");return+((r=(ba(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Ji=Pn&&1/hn(new Pn([,-0]))[1]==f?function(e){return new Pn(e)}:cc;function Zi(e){return function(t){var n=mo(t);return n==E?ln(t):n==M?fn(t):function(e,t){return Nt(t,function(t){return[t,e[t]]})}(t,e(t))}}function Yi(e,t,r,s,f,p,m,g){var y=2&t;if(!y&&"function"!=typeof e)throw new Ie(o);var b=s?s.length:0;if(b||(t&=-97,s=f=i),m=m===i?m:Gt(pa(m),0),g=g===i?g:pa(g),b-=f?f.length:0,t&u){var v=s,w=f;s=f=i}var _=y?i:oo(e),x=[e,t,r,s,f,v,w,p,m,g];if(_&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,s=r==d&&8==n||r==d&&n==h&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!s)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var c=t[3];if(c){var l=e[3];e[3]=l?Pi(l,c,t[4]):c,e[4]=l?dn(e[3],a):t[4]}(c=t[5])&&(l=e[5],e[5]=l?Ci(l,c,t[6]):c,e[6]=l?dn(e[5],a):t[6]);(c=t[7])&&(e[7]=c);r&d&&(e[8]=null==e[8]?t[8]:vn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(x,_),e=x[0],t=x[1],r=x[2],s=x[3],f=x[4],!(g=x[9]=x[9]===i?y?0:e.length:Gt(x[9]-b,0))&&24&t&&(t&=-25),t&&1!=t)A=8==t||t==c?function(e,t,r){var o=ji(e);return function s(){for(var a=arguments.length,c=n(a),l=a,u=ao(s);l--;)c[l]=arguments[l];var d=a<3&&c[0]!==u&&c[a-1]!==u?[]:dn(c,u);return(a-=d.length)<r?Vi(e,t,Di,s.placeholder,i,c,d,i,i,r-a):Pt(this&&this!==mt&&this instanceof s?o:e,this,c)}}(e,t,g):t!=l&&33!=t||f.length?Di.apply(i,x):function(e,t,r,i){var o=1&t,s=ji(e);return function t(){for(var a=-1,c=arguments.length,l=-1,u=i.length,d=n(u+c),h=this&&this!==mt&&this instanceof t?s:e;++l<u;)d[l]=i[l];for(;c--;)d[l++]=arguments[++a];return Pt(h,o?r:this,d)}}(e,t,r,s);else var A=function(e,t,n){var r=1&t,i=ji(e);return function t(){return(this&&this!==mt&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,r);return Ro((_?ei:Mo)(A,x),e,t)}function Qi(e,t,n,r){return e===i||Ds(e,Oe[n])&&!Ne.call(r,n)?t:e}function Xi(e,t,n,r,o,s){return ea(e)&&ea(t)&&(s.set(t,e),qr(e,t,i,Xi,s),s.delete(t)),e}function eo(e){return ia(e)?i:e}function to(e,t,n,r,o,s){var a=1&n,c=e.length,l=t.length;if(c!=l&&!(a&&l>c))return!1;var u=s.get(e),d=s.get(t);if(u&&d)return u==t&&d==e;var h=-1,f=!0,p=2&n?new Gn:i;for(s.set(e,t),s.set(t,e);++h<c;){var m=e[h],g=t[h];if(r)var y=a?r(g,m,h,t,e,s):r(m,g,h,e,t,s);if(y!==i){if(y)continue;f=!1;break}if(p){if(!Ft(t,function(e,t){if(!tn(p,t)&&(m===e||o(m,e,n,r,s)))return p.push(t)})){f=!1;break}}else if(m!==g&&!o(m,g,n,r,s)){f=!1;break}}return s.delete(e),s.delete(t),f}function no(e){return Oo(Po(e,i,Ko),e+"")}function ro(e){return kr(e,Ta,fo)}function io(e){return kr(e,Oa,po)}var oo=Mn?function(e){return Mn.get(e)}:cc;function so(e){for(var t=e.name+"",n=Tn[t],r=Ne.call(Tn,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function ao(e){return(Ne.call(Dn,"placeholder")?Dn:e).placeholder}function co(){var e=Dn.iteratee||ic;return e=e===ic?Nr:e,arguments.length?e(arguments[0],arguments[1]):e}function lo(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function uo(e){for(var t=Ta(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Eo(i)]}return t}function ho(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Br(n)?n:i}var fo=gt?function(e){return null==e?[]:(e=Se(e),Ot(gt(e),function(t){return Ge.call(e,t)}))}:mc,po=gt?function(e){for(var t=[];e;)Ut(t,fo(e)),e=$e(e);return t}:mc,mo=Er;function go(e,t,n){for(var r=-1,i=(t=vi(t,e)).length,o=!1;++r<i;){var s=jo(t[r]);if(!(o=null!=e&&n(e,s)))break;e=e[s]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Xs(i)&&vo(s,i)&&(Ws(e)||Hs(e))}function yo(e){return"function"!=typeof e.constructor||ko(e)?{}:zn($e(e))}function bo(e){return Ws(e)||Hs(e)||!!(Ze&&e&&e[Ze])}function vo(e,t){var n=typeof e;return!!(t=null==t?p:t)&&("number"==n||"symbol"!=n&&we.test(e))&&e>-1&&e%1==0&&e<t}function wo(e,t,n){if(!ea(n))return!1;var r=typeof t;return!!("number"==r?$s(n)&&vo(t,n.length):"string"==r&&t in n)&&Ds(n[t],e)}function _o(e,t){if(Ws(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ca(e))||(ne.test(e)||!te.test(e)||null!=t&&e in Se(t))}function xo(e){var t=so(e),n=Dn[t];if("function"!=typeof n||!(t in Wn.prototype))return!1;if(e===n)return!0;var r=oo(n);return!!r&&e===r[0]}(kn&&mo(new kn(new ArrayBuffer(1)))!=N||En&&mo(new En)!=E||Sn&&mo(Sn.resolve())!=C||Pn&&mo(new Pn)!=M||Cn&&mo(new Cn)!=R)&&(mo=function(e){var t=Er(e),n=t==P?e.constructor:i,r=n?Lo(n):"";if(r)switch(r){case On:return N;case Rn:return E;case Bn:return C;case Nn:return M;case Un:return R}return t});var Ao=Re?Ys:gc;function ko(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Oe)}function Eo(e){return e===e&&!ea(e)}function So(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==i||e in Se(n)))}}function Po(e,t,r){return t=Gt(t===i?e.length-1:t,0),function(){for(var i=arguments,o=-1,s=Gt(i.length-t,0),a=n(s);++o<s;)a[o]=i[t+o];o=-1;for(var c=n(t+1);++o<t;)c[o]=i[o];return c[t]=r(a),Pt(e,this,c)}}function Co(e,t){return t.length<2?e:Ar(e,ri(t,0,-1))}function Io(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var Mo=Bo(ei),To=ut||function(e,t){return mt.setTimeout(e,t)},Oo=Bo(ti);function Ro(e,t,n){var r=t+"";return Oo(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ce,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return It(y,function(n){var r="_."+n[0];t&n[1]&&!Rt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(le);return t?t[1].split(ue):[]}(r),n)))}function Bo(e){var t=0,n=0;return function(){var r=wn(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function No(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n<t;){var s=Gr(n,o),a=e[s];e[s]=e[n],e[n]=a}return e.length=t,e}var Uo=function(e){var t=Bs(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,function(e,n,r,i){t.push(r?i.replace(fe,"$1"):n||e)}),t});function jo(e){if("string"==typeof e||ca(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Lo(e){if(null!=e){try{return Be.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Fo(e){if(e instanceof Wn)return e.clone();var t=new Hn(e.__wrapped__,e.__chain__);return t.__actions__=Ii(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Do=Zr(function(e,t){return Vs(e)?dr(e,yr(t,1,Vs,!0)):[]}),zo=Zr(function(e,t){var n=Zo(t);return Vs(n)&&(n=i),Vs(e)?dr(e,yr(t,1,Vs,!0),co(n,2)):[]}),qo=Zr(function(e,t){var n=Zo(t);return Vs(n)&&(n=i),Vs(e)?dr(e,yr(t,1,Vs,!0),i,n):[]});function Ho(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:pa(n);return i<0&&(i=Gt(r+i,0)),qt(e,co(t,3),i)}function Wo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==i&&(o=pa(n),o=n<0?Gt(r+o,0):vn(o,r-1)),qt(e,co(t,3),o,!0)}function Ko(e){return(null==e?0:e.length)?yr(e,1):[]}function $o(e){return e&&e.length?e[0]:i}var Vo=Zr(function(e){var t=Nt(e,yi);return t.length&&t[0]===e[0]?Ir(t):[]}),Go=Zr(function(e){var t=Zo(e),n=Nt(e,yi);return t===Zo(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Ir(n,co(t,2)):[]}),Jo=Zr(function(e){var t=Zo(e),n=Nt(e,yi);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Ir(n,i,t):[]});function Zo(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Yo=Zr(Qo);function Qo(e,t){return e&&e.length&&t&&t.length?$r(e,t):e}var Xo=no(function(e,t){var n=null==e?0:e.length,r=sr(e,t);return Vr(e,Nt(t,function(e){return vo(e,n)?+e:e}).sort(Si)),r});function es(e){return null==e?e:An.call(e)}var ts=Zr(function(e){return ui(yr(e,1,Vs,!0))}),ns=Zr(function(e){var t=Zo(e);return Vs(t)&&(t=i),ui(yr(e,1,Vs,!0),co(t,2))}),rs=Zr(function(e){var t=Zo(e);return t="function"==typeof t?t:i,ui(yr(e,1,Vs,!0),i,t)});function is(e){if(!e||!e.length)return[];var t=0;return e=Ot(e,function(e){if(Vs(e))return t=Gt(e.length,t),!0}),Yt(t,function(t){return Nt(e,Vt(t))})}function os(e,t){if(!e||!e.length)return[];var n=is(e);return null==t?n:Nt(n,function(e){return Pt(t,i,e)})}var ss=Zr(function(e,t){return Vs(e)?dr(e,t):[]}),as=Zr(function(e){return mi(Ot(e,Vs))}),cs=Zr(function(e){var t=Zo(e);return Vs(t)&&(t=i),mi(Ot(e,Vs),co(t,2))}),ls=Zr(function(e){var t=Zo(e);return t="function"==typeof t?t:i,mi(Ot(e,Vs),i,t)}),us=Zr(is);var ds=Zr(function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,os(e,n)});function hs(e){var t=Dn(e);return t.__chain__=!0,t}function fs(e,t){return t(e)}var ps=no(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return sr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Wn&&vo(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:fs,args:[o],thisArg:i}),new Hn(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(o)});var ms=Ti(function(e,t,n){Ne.call(e,n)?++e[n]:or(e,n,1)});var gs=Li(Ho),ys=Li(Wo);function bs(e,t){return(Ws(e)?It:hr)(e,co(t,3))}function vs(e,t){return(Ws(e)?Mt:fr)(e,co(t,3))}var ws=Ti(function(e,t,n){Ne.call(e,n)?e[n].push(t):or(e,n,[t])});var _s=Zr(function(e,t,r){var i=-1,o="function"==typeof t,s=$s(e)?n(e.length):[];return hr(e,function(e){s[++i]=o?Pt(t,e,r):Mr(e,t,r)}),s}),xs=Ti(function(e,t,n){or(e,n,t)});function As(e,t){return(Ws(e)?Nt:Fr)(e,co(t,3))}var ks=Ti(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var Es=Zr(function(e,t){if(null==e)return[];var n=t.length;return n>1&&wo(e,t[0],t[1])?t=[]:n>2&&wo(t[0],t[1],t[2])&&(t=[t[0]]),Wr(e,yr(t,1),[])}),Ss=it||function(){return mt.Date.now()};function Ps(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Yi(e,d,i,i,i,i,t)}function Cs(e,t){var n;if("function"!=typeof t)throw new Ie(o);return e=pa(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Is=Zr(function(e,t,n){var r=1;if(n.length){var i=dn(n,ao(Is));r|=l}return Yi(e,r,t,n,i)}),Ms=Zr(function(e,t,n){var r=3;if(n.length){var i=dn(n,ao(Ms));r|=l}return Yi(t,r,e,n,i)});function Ts(e,t,n){var r,s,a,c,l,u,d=0,h=!1,f=!1,p=!0;if("function"!=typeof e)throw new Ie(o);function m(t){var n=r,o=s;return r=s=i,d=t,c=e.apply(o,n)}function g(e){var n=e-u;return u===i||n>=t||n<0||f&&e-d>=a}function y(){var e=Ss();if(g(e))return b(e);l=To(y,function(e){var n=t-(e-u);return f?vn(n,a-(e-d)):n}(e))}function b(e){return l=i,p&&r?m(e):(r=s=i,c)}function v(){var e=Ss(),n=g(e);if(r=arguments,s=this,u=e,n){if(l===i)return function(e){return d=e,l=To(y,t),h?m(e):c}(u);if(f)return xi(l),l=To(y,t),m(u)}return l===i&&(l=To(y,t)),c}return t=ga(t)||0,ea(n)&&(h=!!n.leading,a=(f="maxWait"in n)?Gt(ga(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),v.cancel=function(){l!==i&&xi(l),d=0,r=u=s=l=i},v.flush=function(){return l===i?c:b(Ss())},v}var Os=Zr(function(e,t){return ur(e,1,t)}),Rs=Zr(function(e,t,n){return ur(e,ga(t)||0,n)});function Bs(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ie(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(Bs.Cache||Vn),n}function Ns(e){if("function"!=typeof e)throw new Ie(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Bs.Cache=Vn;var Us=wi(function(e,t){var n=(t=1==t.length&&Ws(t[0])?Nt(t[0],Xt(co())):Nt(yr(t,1),Xt(co()))).length;return Zr(function(r){for(var i=-1,o=vn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return Pt(e,this,r)})}),js=Zr(function(e,t){var n=dn(t,ao(js));return Yi(e,l,i,t,n)}),Ls=Zr(function(e,t){var n=dn(t,ao(Ls));return Yi(e,u,i,t,n)}),Fs=no(function(e,t){return Yi(e,h,i,i,i,t)});function Ds(e,t){return e===t||e!==e&&t!==t}var zs=$i(Sr),qs=$i(function(e,t){return e>=t}),Hs=Tr(function(){return arguments}())?Tr:function(e){return ta(e)&&Ne.call(e,"callee")&&!Ge.call(e,"callee")},Ws=n.isArray,Ks=_t?Xt(_t):function(e){return ta(e)&&Er(e)==B};function $s(e){return null!=e&&Xs(e.length)&&!Ys(e)}function Vs(e){return ta(e)&&$s(e)}var Gs=yt||gc,Js=xt?Xt(xt):function(e){return ta(e)&&Er(e)==_};function Zs(e){if(!ta(e))return!1;var t=Er(e);return t==x||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ia(e)}function Ys(e){if(!ea(e))return!1;var t=Er(e);return t==A||t==k||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qs(e){return"number"==typeof e&&e==pa(e)}function Xs(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function ea(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ta(e){return null!=e&&"object"==typeof e}var na=At?Xt(At):function(e){return ta(e)&&mo(e)==E};function ra(e){return"number"==typeof e||ta(e)&&Er(e)==S}function ia(e){if(!ta(e)||Er(e)!=P)return!1;var t=$e(e);if(null===t)return!0;var n=Ne.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Be.call(n)==Fe}var oa=kt?Xt(kt):function(e){return ta(e)&&Er(e)==I};var sa=Et?Xt(Et):function(e){return ta(e)&&mo(e)==M};function aa(e){return"string"==typeof e||!Ws(e)&&ta(e)&&Er(e)==T}function ca(e){return"symbol"==typeof e||ta(e)&&Er(e)==O}var la=St?Xt(St):function(e){return ta(e)&&Xs(e.length)&&!!ct[Er(e)]};var ua=$i(Lr),da=$i(function(e,t){return e<=t});function ha(e){if(!e)return[];if($s(e))return aa(e)?mn(e):Ii(e);if(Ye&&e[Ye])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ye]());var t=mo(e);return(t==E?ln:t==M?hn:Da)(e)}function fa(e){return e?(e=ga(e))===f||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function pa(e){var t=fa(e),n=t%1;return t===t?n?t-n:t:0}function ma(e){return e?ar(pa(e),0,g):0}function ga(e){if("number"==typeof e)return e;if(ca(e))return m;if(ea(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ea(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Qt(e);var n=ye.test(e);return n||ve.test(e)?ht(e.slice(2),n?2:8):ge.test(e)?m:+e}function ya(e){return Mi(e,Oa(e))}function ba(e){return null==e?"":li(e)}var va=Oi(function(e,t){if(ko(t)||$s(t))Mi(t,Ta(t),e);else for(var n in t)Ne.call(t,n)&&tr(e,n,t[n])}),wa=Oi(function(e,t){Mi(t,Oa(t),e)}),_a=Oi(function(e,t,n,r){Mi(t,Oa(t),e,r)}),xa=Oi(function(e,t,n,r){Mi(t,Ta(t),e,r)}),Aa=no(sr);var ka=Zr(function(e,t){e=Se(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&wo(t[0],t[1],o)&&(r=1);++n<r;)for(var s=t[n],a=Oa(s),c=-1,l=a.length;++c<l;){var u=a[c],d=e[u];(d===i||Ds(d,Oe[u])&&!Ne.call(e,u))&&(e[u]=s[u])}return e}),Ea=Zr(function(e){return e.push(i,Xi),Pt(Ba,i,e)});function Sa(e,t,n){var r=null==e?i:Ar(e,t);return r===i?n:r}function Pa(e,t){return null!=e&&go(e,t,Cr)}var Ca=zi(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Le.call(t)),e[t]=n},ec(rc)),Ia=zi(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Le.call(t)),Ne.call(e,t)?e[t].push(n):e[t]=[n]},co),Ma=Zr(Mr);function Ta(e){return $s(e)?Zn(e):Ur(e)}function Oa(e){return $s(e)?Zn(e,!0):jr(e)}var Ra=Oi(function(e,t,n){qr(e,t,n)}),Ba=Oi(function(e,t,n,r){qr(e,t,n,r)}),Na=no(function(e,t){var n={};if(null==e)return n;var r=!1;t=Nt(t,function(t){return t=vi(t,e),r||(r=t.length>1),t}),Mi(e,io(e),n),r&&(n=cr(n,7,eo));for(var i=t.length;i--;)di(n,t[i]);return n});var Ua=no(function(e,t){return null==e?{}:function(e,t){return Kr(e,t,function(t,n){return Pa(e,n)})}(e,t)});function ja(e,t){if(null==e)return{};var n=Nt(io(e),function(e){return[e]});return t=co(t),Kr(e,n,function(e,n){return t(e,n[0])})}var La=Zi(Ta),Fa=Zi(Oa);function Da(e){return null==e?[]:en(e,Ta(e))}var za=Ui(function(e,t,n){return t=t.toLowerCase(),e+(n?qa(t):t)});function qa(e){return Za(ba(e).toLowerCase())}function Ha(e){return(e=ba(e))&&e.replace(_e,on).replace(tt,"")}var Wa=Ui(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Ka=Ui(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),$a=Ni("toLowerCase");var Va=Ui(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var Ga=Ui(function(e,t,n){return e+(n?" ":"")+Za(t)});var Ja=Ui(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Za=Ni("toUpperCase");function Ya(e,t,n){return e=ba(e),(t=n?i:t)===i?function(e){return ot.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var Qa=Zr(function(e,t){try{return Pt(e,i,t)}catch(n){return Zs(n)?n:new ae(n)}}),Xa=no(function(e,t){return It(t,function(t){t=jo(t),or(e,t,Is(e[t],e))}),e});function ec(e){return function(){return e}}var tc=Fi(),nc=Fi(!0);function rc(e){return e}function ic(e){return Nr("function"==typeof e?e:cr(e,1))}var oc=Zr(function(e,t){return function(n){return Mr(n,e,t)}}),sc=Zr(function(e,t){return function(n){return Mr(e,n,t)}});function ac(e,t,n){var r=Ta(t),i=xr(t,r);null!=n||ea(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=xr(t,Ta(t)));var o=!(ea(n)&&"chain"in n)||!!n.chain,s=Ys(e);return It(i,function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=Ii(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Ut([this.value()],arguments))})}),e}function cc(){}var lc=Hi(Nt),uc=Hi(Tt),dc=Hi(Ft);function hc(e){return _o(e)?Vt(jo(e)):function(e){return function(t){return Ar(t,e)}}(e)}var fc=Ki(),pc=Ki(!0);function mc(){return[]}function gc(){return!1}var yc=qi(function(e,t){return e+t},0),bc=Gi("ceil"),vc=qi(function(e,t){return e/t},1),wc=Gi("floor");var _c=qi(function(e,t){return e*t},1),xc=Gi("round"),Ac=qi(function(e,t){return e-t},0);return Dn.after=function(e,t){if("function"!=typeof t)throw new Ie(o);return e=pa(e),function(){if(--e<1)return t.apply(this,arguments)}},Dn.ary=Ps,Dn.assign=va,Dn.assignIn=wa,Dn.assignInWith=_a,Dn.assignWith=xa,Dn.at=Aa,Dn.before=Cs,Dn.bind=Is,Dn.bindAll=Xa,Dn.bindKey=Ms,Dn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ws(e)?e:[e]},Dn.chain=hs,Dn.chunk=function(e,t,r){t=(r?wo(e,t,r):t===i)?1:Gt(pa(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var s=0,a=0,c=n(ft(o/t));s<o;)c[a++]=ri(e,s,s+=t);return c},Dn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},Dn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),r=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Ut(Ws(r)?Ii(r):[r],yr(t,1))},Dn.cond=function(e){var t=null==e?0:e.length,n=co();return e=t?Nt(e,function(e){if("function"!=typeof e[1])throw new Ie(o);return[n(e[0]),e[1]]}):[],Zr(function(n){for(var r=-1;++r<t;){var i=e[r];if(Pt(i[0],this,n))return Pt(i[1],this,n)}})},Dn.conforms=function(e){return function(e){var t=Ta(e);return function(n){return lr(n,e,t)}}(cr(e,1))},Dn.constant=ec,Dn.countBy=ms,Dn.create=function(e,t){var n=zn(e);return null==t?n:ir(n,t)},Dn.curry=function e(t,n,r){var o=Yi(t,8,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Dn.curryRight=function e(t,n,r){var o=Yi(t,c,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Dn.debounce=Ts,Dn.defaults=ka,Dn.defaultsDeep=Ea,Dn.defer=Os,Dn.delay=Rs,Dn.difference=Do,Dn.differenceBy=zo,Dn.differenceWith=qo,Dn.drop=function(e,t,n){var r=null==e?0:e.length;return r?ri(e,(t=n||t===i?1:pa(t))<0?0:t,r):[]},Dn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ri(e,0,(t=r-(t=n||t===i?1:pa(t)))<0?0:t):[]},Dn.dropRightWhile=function(e,t){return e&&e.length?fi(e,co(t,3),!0,!0):[]},Dn.dropWhile=function(e,t){return e&&e.length?fi(e,co(t,3),!0):[]},Dn.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&wo(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=pa(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:pa(r))<0&&(r+=o),r=n>r?0:ma(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Dn.filter=function(e,t){return(Ws(e)?Ot:gr)(e,co(t,3))},Dn.flatMap=function(e,t){return yr(As(e,t),1)},Dn.flatMapDeep=function(e,t){return yr(As(e,t),f)},Dn.flatMapDepth=function(e,t,n){return n=n===i?1:pa(n),yr(As(e,t),n)},Dn.flatten=Ko,Dn.flattenDeep=function(e){return(null==e?0:e.length)?yr(e,f):[]},Dn.flattenDepth=function(e,t){return(null==e?0:e.length)?yr(e,t=t===i?1:pa(t)):[]},Dn.flip=function(e){return Yi(e,512)},Dn.flow=tc,Dn.flowRight=nc,Dn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},Dn.functions=function(e){return null==e?[]:xr(e,Ta(e))},Dn.functionsIn=function(e){return null==e?[]:xr(e,Oa(e))},Dn.groupBy=ws,Dn.initial=function(e){return(null==e?0:e.length)?ri(e,0,-1):[]},Dn.intersection=Vo,Dn.intersectionBy=Go,Dn.intersectionWith=Jo,Dn.invert=Ca,Dn.invertBy=Ia,Dn.invokeMap=_s,Dn.iteratee=ic,Dn.keyBy=xs,Dn.keys=Ta,Dn.keysIn=Oa,Dn.map=As,Dn.mapKeys=function(e,t){var n={};return t=co(t,3),wr(e,function(e,r,i){or(n,t(e,r,i),e)}),n},Dn.mapValues=function(e,t){var n={};return t=co(t,3),wr(e,function(e,r,i){or(n,r,t(e,r,i))}),n},Dn.matches=function(e){return Dr(cr(e,1))},Dn.matchesProperty=function(e,t){return zr(e,cr(t,1))},Dn.memoize=Bs,Dn.merge=Ra,Dn.mergeWith=Ba,Dn.method=oc,Dn.methodOf=sc,Dn.mixin=ac,Dn.negate=Ns,Dn.nthArg=function(e){return e=pa(e),Zr(function(t){return Hr(t,e)})},Dn.omit=Na,Dn.omitBy=function(e,t){return ja(e,Ns(co(t)))},Dn.once=function(e){return Cs(2,e)},Dn.orderBy=function(e,t,n,r){return null==e?[]:(Ws(t)||(t=null==t?[]:[t]),Ws(n=r?i:n)||(n=null==n?[]:[n]),Wr(e,t,n))},Dn.over=lc,Dn.overArgs=Us,Dn.overEvery=uc,Dn.overSome=dc,Dn.partial=js,Dn.partialRight=Ls,Dn.partition=ks,Dn.pick=Ua,Dn.pickBy=ja,Dn.property=hc,Dn.propertyOf=function(e){return function(t){return null==e?i:Ar(e,t)}},Dn.pull=Yo,Dn.pullAll=Qo,Dn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?$r(e,t,co(n,2)):e},Dn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?$r(e,t,i,n):e},Dn.pullAt=Xo,Dn.range=fc,Dn.rangeRight=pc,Dn.rearg=Fs,Dn.reject=function(e,t){return(Ws(e)?Ot:gr)(e,Ns(co(t,3)))},Dn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=co(t,3);++r<o;){var s=e[r];t(s,r,e)&&(n.push(s),i.push(r))}return Vr(e,i),n},Dn.rest=function(e,t){if("function"!=typeof e)throw new Ie(o);return Zr(e,t=t===i?t:pa(t))},Dn.reverse=es,Dn.sampleSize=function(e,t,n){return t=(n?wo(e,t,n):t===i)?1:pa(t),(Ws(e)?Qn:Qr)(e,t)},Dn.set=function(e,t,n){return null==e?e:Xr(e,t,n)},Dn.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Xr(e,t,n,r)},Dn.shuffle=function(e){return(Ws(e)?Xn:ni)(e)},Dn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&wo(e,t,n)?(t=0,n=r):(t=null==t?0:pa(t),n=n===i?r:pa(n)),ri(e,t,n)):[]},Dn.sortBy=Es,Dn.sortedUniq=function(e){return e&&e.length?ai(e):[]},Dn.sortedUniqBy=function(e,t){return e&&e.length?ai(e,co(t,2)):[]},Dn.split=function(e,t,n){return n&&"number"!=typeof n&&wo(e,t,n)&&(t=n=i),(n=n===i?g:n>>>0)?(e=ba(e))&&("string"==typeof t||null!=t&&!oa(t))&&!(t=li(t))&&cn(e)?_i(mn(e),0,n):e.split(t,n):[]},Dn.spread=function(e,t){if("function"!=typeof e)throw new Ie(o);return t=null==t?0:Gt(pa(t),0),Zr(function(n){var r=n[t],i=_i(n,0,t);return r&&Ut(i,r),Pt(e,this,i)})},Dn.tail=function(e){var t=null==e?0:e.length;return t?ri(e,1,t):[]},Dn.take=function(e,t,n){return e&&e.length?ri(e,0,(t=n||t===i?1:pa(t))<0?0:t):[]},Dn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ri(e,(t=r-(t=n||t===i?1:pa(t)))<0?0:t,r):[]},Dn.takeRightWhile=function(e,t){return e&&e.length?fi(e,co(t,3),!1,!0):[]},Dn.takeWhile=function(e,t){return e&&e.length?fi(e,co(t,3)):[]},Dn.tap=function(e,t){return t(e),e},Dn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Ie(o);return ea(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ts(e,t,{leading:r,maxWait:t,trailing:i})},Dn.thru=fs,Dn.toArray=ha,Dn.toPairs=La,Dn.toPairsIn=Fa,Dn.toPath=function(e){return Ws(e)?Nt(e,jo):ca(e)?[e]:Ii(Uo(ba(e)))},Dn.toPlainObject=ya,Dn.transform=function(e,t,n){var r=Ws(e),i=r||Gs(e)||la(e);if(t=co(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:ea(e)&&Ys(o)?zn($e(e)):{}}return(i?It:wr)(e,function(e,r,i){return t(n,e,r,i)}),n},Dn.unary=function(e){return Ps(e,1)},Dn.union=ts,Dn.unionBy=ns,Dn.unionWith=rs,Dn.uniq=function(e){return e&&e.length?ui(e):[]},Dn.uniqBy=function(e,t){return e&&e.length?ui(e,co(t,2)):[]},Dn.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?ui(e,i,t):[]},Dn.unset=function(e,t){return null==e||di(e,t)},Dn.unzip=is,Dn.unzipWith=os,Dn.update=function(e,t,n){return null==e?e:hi(e,t,bi(n))},Dn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:hi(e,t,bi(n),r)},Dn.values=Da,Dn.valuesIn=function(e){return null==e?[]:en(e,Oa(e))},Dn.without=ss,Dn.words=Ya,Dn.wrap=function(e,t){return js(bi(t),e)},Dn.xor=as,Dn.xorBy=cs,Dn.xorWith=ls,Dn.zip=us,Dn.zipObject=function(e,t){return gi(e||[],t||[],tr)},Dn.zipObjectDeep=function(e,t){return gi(e||[],t||[],Xr)},Dn.zipWith=ds,Dn.entries=La,Dn.entriesIn=Fa,Dn.extend=wa,Dn.extendWith=_a,ac(Dn,Dn),Dn.add=yc,Dn.attempt=Qa,Dn.camelCase=za,Dn.capitalize=qa,Dn.ceil=bc,Dn.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=ga(n))===n?n:0),t!==i&&(t=(t=ga(t))===t?t:0),ar(ga(e),t,n)},Dn.clone=function(e){return cr(e,4)},Dn.cloneDeep=function(e){return cr(e,5)},Dn.cloneDeepWith=function(e,t){return cr(e,5,t="function"==typeof t?t:i)},Dn.cloneWith=function(e,t){return cr(e,4,t="function"==typeof t?t:i)},Dn.conformsTo=function(e,t){return null==t||lr(e,t,Ta(t))},Dn.deburr=Ha,Dn.defaultTo=function(e,t){return null==e||e!==e?t:e},Dn.divide=vc,Dn.endsWith=function(e,t,n){e=ba(e),t=li(t);var r=e.length,o=n=n===i?r:ar(pa(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Dn.eq=Ds,Dn.escape=function(e){return(e=ba(e))&&Y.test(e)?e.replace(J,sn):e},Dn.escapeRegExp=function(e){return(e=ba(e))&&oe.test(e)?e.replace(ie,"\\$&"):e},Dn.every=function(e,t,n){var r=Ws(e)?Tt:pr;return n&&wo(e,t,n)&&(t=i),r(e,co(t,3))},Dn.find=gs,Dn.findIndex=Ho,Dn.findKey=function(e,t){return zt(e,co(t,3),wr)},Dn.findLast=ys,Dn.findLastIndex=Wo,Dn.findLastKey=function(e,t){return zt(e,co(t,3),_r)},Dn.floor=wc,Dn.forEach=bs,Dn.forEachRight=vs,Dn.forIn=function(e,t){return null==e?e:br(e,co(t,3),Oa)},Dn.forInRight=function(e,t){return null==e?e:vr(e,co(t,3),Oa)},Dn.forOwn=function(e,t){return e&&wr(e,co(t,3))},Dn.forOwnRight=function(e,t){return e&&_r(e,co(t,3))},Dn.get=Sa,Dn.gt=zs,Dn.gte=qs,Dn.has=function(e,t){return null!=e&&go(e,t,Pr)},Dn.hasIn=Pa,Dn.head=$o,Dn.identity=rc,Dn.includes=function(e,t,n,r){e=$s(e)?e:Da(e),n=n&&!r?pa(n):0;var i=e.length;return n<0&&(n=Gt(i+n,0)),aa(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Ht(e,t,n)>-1},Dn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:pa(n);return i<0&&(i=Gt(r+i,0)),Ht(e,t,i)},Dn.inRange=function(e,t,n){return t=fa(t),n===i?(n=t,t=0):n=fa(n),function(e,t,n){return e>=vn(t,n)&&e<Gt(t,n)}(e=ga(e),t,n)},Dn.invoke=Ma,Dn.isArguments=Hs,Dn.isArray=Ws,Dn.isArrayBuffer=Ks,Dn.isArrayLike=$s,Dn.isArrayLikeObject=Vs,Dn.isBoolean=function(e){return!0===e||!1===e||ta(e)&&Er(e)==w},Dn.isBuffer=Gs,Dn.isDate=Js,Dn.isElement=function(e){return ta(e)&&1===e.nodeType&&!ia(e)},Dn.isEmpty=function(e){if(null==e)return!0;if($s(e)&&(Ws(e)||"string"==typeof e||"function"==typeof e.splice||Gs(e)||la(e)||Hs(e)))return!e.length;var t=mo(e);if(t==E||t==M)return!e.size;if(ko(e))return!Ur(e).length;for(var n in e)if(Ne.call(e,n))return!1;return!0},Dn.isEqual=function(e,t){return Or(e,t)},Dn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?Or(e,t,i,n):!!r},Dn.isError=Zs,Dn.isFinite=function(e){return"number"==typeof e&&vt(e)},Dn.isFunction=Ys,Dn.isInteger=Qs,Dn.isLength=Xs,Dn.isMap=na,Dn.isMatch=function(e,t){return e===t||Rr(e,t,uo(t))},Dn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,Rr(e,t,uo(t),n)},Dn.isNaN=function(e){return ra(e)&&e!=+e},Dn.isNative=function(e){if(Ao(e))throw new ae("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Br(e)},Dn.isNil=function(e){return null==e},Dn.isNull=function(e){return null===e},Dn.isNumber=ra,Dn.isObject=ea,Dn.isObjectLike=ta,Dn.isPlainObject=ia,Dn.isRegExp=oa,Dn.isSafeInteger=function(e){return Qs(e)&&e>=-9007199254740991&&e<=p},Dn.isSet=sa,Dn.isString=aa,Dn.isSymbol=ca,Dn.isTypedArray=la,Dn.isUndefined=function(e){return e===i},Dn.isWeakMap=function(e){return ta(e)&&mo(e)==R},Dn.isWeakSet=function(e){return ta(e)&&"[object WeakSet]"==Er(e)},Dn.join=function(e,t){return null==e?"":wt.call(e,t)},Dn.kebabCase=Wa,Dn.last=Zo,Dn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=pa(n))<0?Gt(r+o,0):vn(o,r-1)),t===t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):qt(e,Kt,o,!0)},Dn.lowerCase=Ka,Dn.lowerFirst=$a,Dn.lt=ua,Dn.lte=da,Dn.max=function(e){return e&&e.length?mr(e,rc,Sr):i},Dn.maxBy=function(e,t){return e&&e.length?mr(e,co(t,2),Sr):i},Dn.mean=function(e){return $t(e,rc)},Dn.meanBy=function(e,t){return $t(e,co(t,2))},Dn.min=function(e){return e&&e.length?mr(e,rc,Lr):i},Dn.minBy=function(e,t){return e&&e.length?mr(e,co(t,2),Lr):i},Dn.stubArray=mc,Dn.stubFalse=gc,Dn.stubObject=function(){return{}},Dn.stubString=function(){return""},Dn.stubTrue=function(){return!0},Dn.multiply=_c,Dn.nth=function(e,t){return e&&e.length?Hr(e,pa(t)):i},Dn.noConflict=function(){return mt._===this&&(mt._=De),this},Dn.noop=cc,Dn.now=Ss,Dn.pad=function(e,t,n){e=ba(e);var r=(t=pa(t))?pn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Wi(pt(i),n)+e+Wi(ft(i),n)},Dn.padEnd=function(e,t,n){e=ba(e);var r=(t=pa(t))?pn(e):0;return t&&r<t?e+Wi(t-r,n):e},Dn.padStart=function(e,t,n){e=ba(e);var r=(t=pa(t))?pn(e):0;return t&&r<t?Wi(t-r,n)+e:e},Dn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),_n(ba(e).replace(se,""),t||0)},Dn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&wo(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=fa(e),t===i?(t=e,e=0):t=fa(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=xn();return vn(e+o*(t-e+dt("1e-"+((o+"").length-1))),t)}return Gr(e,t)},Dn.reduce=function(e,t,n){var r=Ws(e)?jt:Jt,i=arguments.length<3;return r(e,co(t,4),n,i,hr)},Dn.reduceRight=function(e,t,n){var r=Ws(e)?Lt:Jt,i=arguments.length<3;return r(e,co(t,4),n,i,fr)},Dn.repeat=function(e,t,n){return t=(n?wo(e,t,n):t===i)?1:pa(t),Jr(ba(e),t)},Dn.replace=function(){var e=arguments,t=ba(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Dn.result=function(e,t,n){var r=-1,o=(t=vi(t,e)).length;for(o||(o=1,e=i);++r<o;){var s=null==e?i:e[jo(t[r])];s===i&&(r=o,s=n),e=Ys(s)?s.call(e):s}return e},Dn.round=xc,Dn.runInContext=e,Dn.sample=function(e){return(Ws(e)?Yn:Yr)(e)},Dn.size=function(e){if(null==e)return 0;if($s(e))return aa(e)?pn(e):e.length;var t=mo(e);return t==E||t==M?e.size:Ur(e).length},Dn.snakeCase=Va,Dn.some=function(e,t,n){var r=Ws(e)?Ft:ii;return n&&wo(e,t,n)&&(t=i),r(e,co(t,3))},Dn.sortedIndex=function(e,t){return oi(e,t)},Dn.sortedIndexBy=function(e,t,n){return si(e,t,co(n,2))},Dn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=oi(e,t);if(r<n&&Ds(e[r],t))return r}return-1},Dn.sortedLastIndex=function(e,t){return oi(e,t,!0)},Dn.sortedLastIndexBy=function(e,t,n){return si(e,t,co(n,2),!0)},Dn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=oi(e,t,!0)-1;if(Ds(e[n],t))return n}return-1},Dn.startCase=Ga,Dn.startsWith=function(e,t,n){return e=ba(e),n=null==n?0:ar(pa(n),0,e.length),t=li(t),e.slice(n,n+t.length)==t},Dn.subtract=Ac,Dn.sum=function(e){return e&&e.length?Zt(e,rc):0},Dn.sumBy=function(e,t){return e&&e.length?Zt(e,co(t,2)):0},Dn.template=function(e,t,n){var r=Dn.templateSettings;n&&wo(e,t,n)&&(t=i),e=ba(e),t=_a({},t,r,Qi);var o,s,a=_a({},t.imports,r.imports,Qi),c=Ta(a),l=en(a,c),u=0,d=t.interpolate||xe,h="__p += '",f=Pe((t.escape||xe).source+"|"+d.source+"|"+(d===ee?pe:xe).source+"|"+(t.evaluate||xe).source+"|$","g"),p="//# sourceURL="+(Ne.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++at+"]")+"\n";e.replace(f,function(t,n,r,i,a,c){return r||(r=i),h+=e.slice(u,c).replace(Ae,an),n&&(o=!0,h+="' +\n__e("+n+") +\n'"),a&&(s=!0,h+="';\n"+a+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=c+t.length,t}),h+="';\n";var m=Ne.call(t,"variable")&&t.variable;if(m){if(he.test(m))throw new ae("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(s?h.replace(K,""):h).replace($,"$1").replace(V,"$1;"),h="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var g=Qa(function(){return ke(c,p+"return "+h).apply(i,l)});if(g.source=h,Zs(g))throw g;return g},Dn.times=function(e,t){if((e=pa(e))<1||e>p)return[];var n=g,r=vn(e,g);t=co(t),e-=g;for(var i=Yt(r,t);++n<e;)t(n);return i},Dn.toFinite=fa,Dn.toInteger=pa,Dn.toLength=ma,Dn.toLower=function(e){return ba(e).toLowerCase()},Dn.toNumber=ga,Dn.toSafeInteger=function(e){return e?ar(pa(e),-9007199254740991,p):0===e?e:0},Dn.toString=ba,Dn.toUpper=function(e){return ba(e).toUpperCase()},Dn.trim=function(e,t,n){if((e=ba(e))&&(n||t===i))return Qt(e);if(!e||!(t=li(t)))return e;var r=mn(e),o=mn(t);return _i(r,nn(r,o),rn(r,o)+1).join("")},Dn.trimEnd=function(e,t,n){if((e=ba(e))&&(n||t===i))return e.slice(0,gn(e)+1);if(!e||!(t=li(t)))return e;var r=mn(e);return _i(r,0,rn(r,mn(t))+1).join("")},Dn.trimStart=function(e,t,n){if((e=ba(e))&&(n||t===i))return e.replace(se,"");if(!e||!(t=li(t)))return e;var r=mn(e);return _i(r,nn(r,mn(t))).join("")},Dn.truncate=function(e,t){var n=30,r="...";if(ea(t)){var o="separator"in t?t.separator:o;n="length"in t?pa(t.length):n,r="omission"in t?li(t.omission):r}var s=(e=ba(e)).length;if(cn(e)){var a=mn(e);s=a.length}if(n>=s)return e;var c=n-pn(r);if(c<1)return r;var l=a?_i(a,0,c).join(""):e.slice(0,c);if(o===i)return l+r;if(a&&(c+=l.length-c),oa(o)){if(e.slice(c).search(o)){var u,d=l;for(o.global||(o=Pe(o.source,ba(me.exec(o))+"g")),o.lastIndex=0;u=o.exec(d);)var h=u.index;l=l.slice(0,h===i?c:h)}}else if(e.indexOf(li(o),c)!=c){var f=l.lastIndexOf(o);f>-1&&(l=l.slice(0,f))}return l+r},Dn.unescape=function(e){return(e=ba(e))&&Z.test(e)?e.replace(G,yn):e},Dn.uniqueId=function(e){var t=++Ue;return ba(e)+t},Dn.upperCase=Ja,Dn.upperFirst=Za,Dn.each=bs,Dn.eachRight=vs,Dn.first=$o,ac(Dn,function(){var e={};return wr(Dn,function(t,n){Ne.call(Dn.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),Dn.VERSION="4.17.21",It(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Dn[e].placeholder=Dn}),It(["drop","take"],function(e,t){Wn.prototype[e]=function(n){n=n===i?1:Gt(pa(n),0);var r=this.__filtered__&&!t?new Wn(this):this.clone();return r.__filtered__?r.__takeCount__=vn(n,r.__takeCount__):r.__views__.push({size:vn(n,g),type:e+(r.__dir__<0?"Right":"")}),r},Wn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),It(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;Wn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:co(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),It(["head","last"],function(e,t){var n="take"+(t?"Right":"");Wn.prototype[e]=function(){return this[n](1).value()[0]}}),It(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Wn.prototype[e]=function(){return this.__filtered__?new Wn(this):this[n](1)}}),Wn.prototype.compact=function(){return this.filter(rc)},Wn.prototype.find=function(e){return this.filter(e).head()},Wn.prototype.findLast=function(e){return this.reverse().find(e)},Wn.prototype.invokeMap=Zr(function(e,t){return"function"==typeof e?new Wn(this):this.map(function(n){return Mr(n,e,t)})}),Wn.prototype.reject=function(e){return this.filter(Ns(co(e)))},Wn.prototype.slice=function(e,t){e=pa(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Wn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=pa(t))<0?n.dropRight(-t):n.take(t-e)),n)},Wn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Wn.prototype.toArray=function(){return this.take(g)},wr(Wn.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Dn[r?"take"+("last"==t?"Right":""):t],s=r||/^find/.test(t);o&&(Dn.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,c=t instanceof Wn,l=a[0],u=c||Ws(t),d=function(e){var t=o.apply(Dn,Ut([e],a));return r&&h?t[0]:t};u&&n&&"function"==typeof l&&1!=l.length&&(c=u=!1);var h=this.__chain__,f=!!this.__actions__.length,p=s&&!h,m=c&&!f;if(!s&&u){t=m?t:new Wn(this);var g=e.apply(t,a);return g.__actions__.push({func:fs,args:[d],thisArg:i}),new Hn(g,h)}return p&&m?e.apply(this,a):(g=this.thru(d),p?r?g.value()[0]:g.value():g)})}),It(["pop","push","shift","sort","splice","unshift"],function(e){var t=Me[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Dn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ws(i)?i:[],e)}return this[n](function(n){return t.apply(Ws(n)?n:[],e)})}}),wr(Wn.prototype,function(e,t){var n=Dn[t];if(n){var r=n.name+"";Ne.call(Tn,r)||(Tn[r]=[]),Tn[r].push({name:t,func:n})}}),Tn[Di(i,2).name]=[{name:"wrapper",func:i}],Wn.prototype.clone=function(){var e=new Wn(this.__wrapped__);return e.__actions__=Ii(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ii(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ii(this.__views__),e},Wn.prototype.reverse=function(){if(this.__filtered__){var e=new Wn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Wn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ws(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],s=o.size;switch(o.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=vn(t,e+s);break;case"takeRight":e=Gt(e,t-s)}}return{start:e,end:t}}(0,i,this.__views__),s=o.start,a=o.end,c=a-s,l=r?a:s-1,u=this.__iteratees__,d=u.length,h=0,f=vn(c,this.__takeCount__);if(!n||!r&&i==c&&f==c)return pi(e,this.__actions__);var p=[];e:for(;c--&&h<f;){for(var m=-1,g=e[l+=t];++m<d;){var y=u[m],b=y.iteratee,v=y.type,w=b(g);if(2==v)g=w;else if(!w){if(1==v)continue e;break e}}p[h++]=g}return p},Dn.prototype.at=ps,Dn.prototype.chain=function(){return hs(this)},Dn.prototype.commit=function(){return new Hn(this.value(),this.__chain__)},Dn.prototype.next=function(){this.__values__===i&&(this.__values__=ha(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Dn.prototype.plant=function(e){for(var t,n=this;n instanceof qn;){var r=Fo(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},Dn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Wn){var t=e;return this.__actions__.length&&(t=new Wn(this)),(t=t.reverse()).__actions__.push({func:fs,args:[es],thisArg:i}),new Hn(t,this.__chain__)}return this.thru(es)},Dn.prototype.toJSON=Dn.prototype.valueOf=Dn.prototype.value=function(){return pi(this.__wrapped__,this.__actions__)},Dn.prototype.first=Dn.prototype.head,Ye&&(Dn.prototype[Ye]=function(){return this}),Dn}();mt._=bn,(r=function(){return bn}.call(t,n,t,e))===i||(e.exports=r)}.call(this)},2766:(e,t,n)=>{"use strict";n.d(t,{Vw:()=>S,DO:()=>s,CC:()=>c,sd:()=>a,Fe:()=>o,Ht:()=>l,My:()=>v,uH:()=>d,Id:()=>E,qj:()=>P,O8:()=>h,aT:()=>x,aY:()=>i,po:()=>C,Ow:()=>f,fd:()=>g,ZJ:()=>k,DH:()=>u,AI:()=>A});const r="object"===typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0;function i(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function o(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function s(e){if(!i(e))throw new Error("Uint8Array expected");for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(n.length>0&&!n.includes(e.length))throw new Error("Uint8Array expected of length "+n+", got length="+e.length)}function a(e){if("function"!==typeof e||"function"!==typeof e.create)throw new Error("Hash should be wrapped by utils.createHasher");o(e.outputLen),o(e.blockLen)}function c(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function l(e,t){s(e);const n=t.outputLen;if(e.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}function u(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function d(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(let r=0;r<t.length;r++)t[r].fill(0)}function h(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function f(e,t){return e<<32-t|e>>>t}const p=(()=>68===new Uint8Array(new Uint32Array([287454020]).buffer)[0])();function m(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}const g=p?e=>e:function(e){for(let t=0;t<e.length;t++)e[t]=m(e[t]);return e},y=(()=>"function"===typeof Uint8Array.from([]).toHex&&"function"===typeof Uint8Array.fromHex)(),b=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function v(e){if(s(e),y)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=b[e[n]];return t}const w={_0:48,_9:57,A:65,F:70,a:97,f:102};function _(e){return e>=w._0&&e<=w._9?e-w._0:e>=w.A&&e<=w.F?e-(w.A-10):e>=w.a&&e<=w.f?e-(w.a-10):void 0}function x(e){if("string"!==typeof e)throw new Error("hex string expected, got "+typeof e);if(y)return Uint8Array.fromHex(e);const t=e.length,n=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const r=new Uint8Array(n);for(let i=0,o=0;i<n;i++,o+=2){const t=_(e.charCodeAt(o)),n=_(e.charCodeAt(o+1));if(void 0===t||void 0===n){const t=e[o]+e[o+1];throw new Error('hex string expected, got non-hex character "'+t+'" at index '+o)}r[i]=16*t+n}return r}function A(e){if("string"!==typeof e)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(e))}function k(e){return"string"===typeof e&&(e=A(e)),s(e),e}function E(){let e=0;for(let n=0;n<arguments.length;n++){const t=n<0||arguments.length<=n?void 0:arguments[n];s(t),e+=t.length}const t=new Uint8Array(e);for(let n=0,r=0;n<arguments.length;n++){const e=n<0||arguments.length<=n?void 0:arguments[n];t.set(e,r),r+=e.length}return t}class S{}function P(e){const t=t=>e().update(k(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function C(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32;if(r&&"function"===typeof r.getRandomValues)return r.getRandomValues(new Uint8Array(e));if(r&&"function"===typeof r.randomBytes)return Uint8Array.from(r.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}},2805:()=>{},2837:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PublicKey=t.PrivateKey=void 0;var r=n(7963);Object.defineProperty(t,"PrivateKey",{enumerable:!0,get:function(){return r.PrivateKey}});var i=n(8745);Object.defineProperty(t,"PublicKey",{enumerable:!0,get:function(){return i.PublicKey}})},2867:(e,t,n)=>{"use strict";n.d(t,{P$:()=>c,_k:()=>s,is:()=>d,vA:()=>l,vt:()=>u});var r=n(9740),i=n(7994),o=n(1099);class s{constructor(e){const{type:t,schema:n,validator:r,refiner:i,coercer:s=e=>e,entries:a=function*(){}}=e;this.type=t,this.schema=n,this.entries=a,this.coercer=s,this.validator=r?(e,t)=>{const n=r(e,t);return(0,o.RF)(n,t,this,e)}:()=>[],this.refiner=i?(e,t)=>{const n=i(e,t);return(0,o.RF)(n,t,this,e)}:()=>[]}assert(e,t){return l(e,this,t)}create(e,t){return u(e,this,t)}is(e){return d(e,this)}mask(e,t){return function(e,t,n){const r=h(e,t,{coerce:!0,mask:!0,message:n});if(r[0])throw r[0];return r[1]}(e,this,t)}validate(e){return h(e,this,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}}const a="EXACT_OPTIONAL";class c extends s{constructor(e){super((0,r.A)((0,r.A)({},e),{},{type:"exact optional ".concat(e.type)})),this.brand=a}static isExactOptional(e){return(0,o.Gv)(e)&&"brand"in e&&e.brand===a}}function l(e,t,n){const r=h(e,t,{message:n});if(r[0])throw r[0]}function u(e,t,n){const r=h(e,t,{coerce:!0,message:n});if(r[0])throw r[0];return r[1]}function d(e,t){return!h(e,t)[0]}function h(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=(0,o.eF)(e,t,n),s=(0,o.jT)(r);if(s[0]){return[new i.C(s[0],function*(){for(const e of r)e[0]&&(yield e[0])}),void 0]}return[void 0,s[1]]}},2873:(e,t,n)=>{"use strict";const r=n(3882),i=n(8116);e.exports=(e,t,n)=>{const o=[];let s=null,a=null;const c=e.sort((e,t)=>i(e,t,n));for(const i of c){r(i,t,n)?(a=i,s||(s=i)):(a&&o.push([s,a]),a=null,s=null)}s&&o.push([s,null]);const l=[];for(const[r,i]of o)r===i?l.push(r):i||r!==c[0]?i?r===c[0]?l.push("<=".concat(i)):l.push("".concat(r," - ").concat(i)):l.push(">=".concat(r)):l.push("*");const u=l.join(" || "),d="string"===typeof t.raw?t.raw:String(t);return u.length<d.length?u:t}},2940:(e,t,n)=>{var r=n(7802);!function(){"use strict";var t="object"===typeof window?window:{};!t.JS_SHA3_NO_NODE_JS&&"object"===typeof r&&r.versions&&r.versions.node&&(t=n.g);for(var i=!t.JS_SHA3_NO_COMMON_JS&&e.exports,o="0123456789abcdef".split(""),s=[0,8,16,24],a=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],c=[224,256,384,512],l=["hex","buffer","arrayBuffer","array"],u=function(e,t,n){return function(r){return new _(e,t,e).update(r)[n]()}},d=function(e,t,n){return function(r,i){return new _(e,t,i).update(r)[n]()}},h=function(e,t){var n=u(e,t,"hex");n.create=function(){return new _(e,t,e)},n.update=function(e){return n.create().update(e)};for(var r=0;r<l.length;++r){var i=l[r];n[i]=u(e,t,i)}return n},f=[{name:"keccak",padding:[1,256,65536,16777216],bits:c,createMethod:h},{name:"sha3",padding:[6,1536,393216,100663296],bits:c,createMethod:h},{name:"shake",padding:[31,7936,2031616,520093696],bits:[128,256],createMethod:function(e,t){var n=d(e,t,"hex");n.create=function(n){return new _(e,t,n)},n.update=function(e,t){return n.create(t).update(e)};for(var r=0;r<l.length;++r){var i=l[r];n[i]=d(e,t,i)}return n}}],p={},m=[],g=0;g<f.length;++g)for(var y=f[g],b=y.bits,v=0;v<b.length;++v){var w=y.name+"_"+b[v];m.push(w),p[w]=y.createMethod(b[v],y.padding)}function _(e,t,n){this.blocks=[],this.s=[],this.padding=t,this.outputBits=n,this.reset=!0,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(31&n)>>3;for(var r=0;r<50;++r)this.s[r]=0}_.prototype.update=function(e){var t="string"!==typeof e;t&&e.constructor===ArrayBuffer&&(e=new Uint8Array(e));for(var n,r,i=e.length,o=this.blocks,a=this.byteCount,c=this.blockCount,l=0,u=this.s;l<i;){if(this.reset)for(this.reset=!1,o[0]=this.block,n=1;n<c+1;++n)o[n]=0;if(t)for(n=this.start;l<i&&n<a;++l)o[n>>2]|=e[l]<<s[3&n++];else for(n=this.start;l<i&&n<a;++l)(r=e.charCodeAt(l))<128?o[n>>2]|=r<<s[3&n++]:r<2048?(o[n>>2]|=(192|r>>6)<<s[3&n++],o[n>>2]|=(128|63&r)<<s[3&n++]):r<55296||r>=57344?(o[n>>2]|=(224|r>>12)<<s[3&n++],o[n>>2]|=(128|r>>6&63)<<s[3&n++],o[n>>2]|=(128|63&r)<<s[3&n++]):(r=65536+((1023&r)<<10|1023&e.charCodeAt(++l)),o[n>>2]|=(240|r>>18)<<s[3&n++],o[n>>2]|=(128|r>>12&63)<<s[3&n++],o[n>>2]|=(128|r>>6&63)<<s[3&n++],o[n>>2]|=(128|63&r)<<s[3&n++]);if(this.lastByteIndex=n,n>=a){for(this.start=n-a,this.block=o[c],n=0;n<c;++n)u[n]^=o[n];x(u),this.reset=!0}else this.start=n}return this},_.prototype.finalize=function(){var e=this.blocks,t=this.lastByteIndex,n=this.blockCount,r=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[n],t=1;t<n+1;++t)e[t]=0;for(e[n-1]|=2147483648,t=0;t<n;++t)r[t]^=e[t];x(r)},_.prototype.toString=_.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,s=0,a=0,c="";a<r;){for(s=0;s<t&&a<r;++s,++a)e=n[s],c+=o[e>>4&15]+o[15&e]+o[e>>12&15]+o[e>>8&15]+o[e>>20&15]+o[e>>16&15]+o[e>>28&15]+o[e>>24&15];a%t===0&&(x(n),s=0)}return i&&(e=n[s],i>0&&(c+=o[e>>4&15]+o[15&e]),i>1&&(c+=o[e>>12&15]+o[e>>8&15]),i>2&&(c+=o[e>>20&15]+o[e>>16&15])),c},_.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,o=0,s=0,a=this.outputBits>>3;e=i?new ArrayBuffer(r+1<<2):new ArrayBuffer(a);for(var c=new Uint32Array(e);s<r;){for(o=0;o<t&&s<r;++o,++s)c[s]=n[o];s%t===0&&x(n)}return i&&(c[o]=n[o],e=e.slice(0,a)),e},_.prototype.buffer=_.prototype.arrayBuffer,_.prototype.digest=_.prototype.array=function(){this.finalize();for(var e,t,n=this.blockCount,r=this.s,i=this.outputBlocks,o=this.extraBytes,s=0,a=0,c=[];a<i;){for(s=0;s<n&&a<i;++s,++a)e=a<<2,t=r[s],c[e]=255&t,c[e+1]=t>>8&255,c[e+2]=t>>16&255,c[e+3]=t>>24&255;a%n===0&&x(r)}return o&&(e=a<<2,t=r[s],o>0&&(c[e]=255&t),o>1&&(c[e+1]=t>>8&255),o>2&&(c[e+2]=t>>16&255)),c};var x=function(e){var t,n,r,i,o,s,c,l,u,d,h,f,p,m,g,y,b,v,w,_,x,A,k,E,S,P,C,I,M,T,O,R,B,N,U,j,L,F,D,z,q,H,W,K,$,V,G,J,Z,Y,Q,X,ee,te,ne,re,ie,oe,se,ae,ce,le,ue;for(r=0;r<48;r+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],s=e[2]^e[12]^e[22]^e[32]^e[42],c=e[3]^e[13]^e[23]^e[33]^e[43],l=e[4]^e[14]^e[24]^e[34]^e[44],u=e[5]^e[15]^e[25]^e[35]^e[45],d=e[6]^e[16]^e[26]^e[36]^e[46],h=e[7]^e[17]^e[27]^e[37]^e[47],t=(f=e[8]^e[18]^e[28]^e[38]^e[48])^(s<<1|c>>>31),n=(p=e[9]^e[19]^e[29]^e[39]^e[49])^(c<<1|s>>>31),e[0]^=t,e[1]^=n,e[10]^=t,e[11]^=n,e[20]^=t,e[21]^=n,e[30]^=t,e[31]^=n,e[40]^=t,e[41]^=n,t=i^(l<<1|u>>>31),n=o^(u<<1|l>>>31),e[2]^=t,e[3]^=n,e[12]^=t,e[13]^=n,e[22]^=t,e[23]^=n,e[32]^=t,e[33]^=n,e[42]^=t,e[43]^=n,t=s^(d<<1|h>>>31),n=c^(h<<1|d>>>31),e[4]^=t,e[5]^=n,e[14]^=t,e[15]^=n,e[24]^=t,e[25]^=n,e[34]^=t,e[35]^=n,e[44]^=t,e[45]^=n,t=l^(f<<1|p>>>31),n=u^(p<<1|f>>>31),e[6]^=t,e[7]^=n,e[16]^=t,e[17]^=n,e[26]^=t,e[27]^=n,e[36]^=t,e[37]^=n,e[46]^=t,e[47]^=n,t=d^(i<<1|o>>>31),n=h^(o<<1|i>>>31),e[8]^=t,e[9]^=n,e[18]^=t,e[19]^=n,e[28]^=t,e[29]^=n,e[38]^=t,e[39]^=n,e[48]^=t,e[49]^=n,m=e[0],g=e[1],V=e[11]<<4|e[10]>>>28,G=e[10]<<4|e[11]>>>28,I=e[20]<<3|e[21]>>>29,M=e[21]<<3|e[20]>>>29,ae=e[31]<<9|e[30]>>>23,ce=e[30]<<9|e[31]>>>23,H=e[40]<<18|e[41]>>>14,W=e[41]<<18|e[40]>>>14,N=e[2]<<1|e[3]>>>31,U=e[3]<<1|e[2]>>>31,y=e[13]<<12|e[12]>>>20,b=e[12]<<12|e[13]>>>20,J=e[22]<<10|e[23]>>>22,Z=e[23]<<10|e[22]>>>22,T=e[33]<<13|e[32]>>>19,O=e[32]<<13|e[33]>>>19,le=e[42]<<2|e[43]>>>30,ue=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,ne=e[4]<<30|e[5]>>>2,j=e[14]<<6|e[15]>>>26,L=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,Y=e[34]<<15|e[35]>>>17,Q=e[35]<<15|e[34]>>>17,R=e[45]<<29|e[44]>>>3,B=e[44]<<29|e[45]>>>3,E=e[6]<<28|e[7]>>>4,S=e[7]<<28|e[6]>>>4,re=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,F=e[26]<<25|e[27]>>>7,D=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,x=e[37]<<21|e[36]>>>11,X=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,K=e[8]<<27|e[9]>>>5,$=e[9]<<27|e[8]>>>5,P=e[18]<<20|e[19]>>>12,C=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,se=e[28]<<7|e[29]>>>25,z=e[38]<<8|e[39]>>>24,q=e[39]<<8|e[38]>>>24,A=e[48]<<14|e[49]>>>18,k=e[49]<<14|e[48]>>>18,e[0]=m^~y&v,e[1]=g^~b&w,e[10]=E^~P&I,e[11]=S^~C&M,e[20]=N^~j&F,e[21]=U^~L&D,e[30]=K^~V&J,e[31]=$^~G&Z,e[40]=te^~re&oe,e[41]=ne^~ie&se,e[2]=y^~v&_,e[3]=b^~w&x,e[12]=P^~I&T,e[13]=C^~M&O,e[22]=j^~F&z,e[23]=L^~D&q,e[32]=V^~J&Y,e[33]=G^~Z&Q,e[42]=re^~oe&ae,e[43]=ie^~se&ce,e[4]=v^~_&A,e[5]=w^~x&k,e[14]=I^~T&R,e[15]=M^~O&B,e[24]=F^~z&H,e[25]=D^~q&W,e[34]=J^~Y&X,e[35]=Z^~Q&ee,e[44]=oe^~ae&le,e[45]=se^~ce&ue,e[6]=_^~A&m,e[7]=x^~k&g,e[16]=T^~R&E,e[17]=O^~B&S,e[26]=z^~H&N,e[27]=q^~W&U,e[36]=Y^~X&K,e[37]=Q^~ee&$,e[46]=ae^~le&te,e[47]=ce^~ue&ne,e[8]=A^~m&y,e[9]=k^~g&b,e[18]=R^~E&P,e[19]=B^~S&C,e[28]=H^~N&j,e[29]=W^~U&L,e[38]=X^~K&V,e[39]=ee^~$&G,e[48]=le^~te&re,e[49]=ue^~ne&ie,e[0]^=a[r],e[1]^=a[r+1]};if(i)e.exports=p;else for(g=0;g<m.length;++g)t[m[g]]=p[m[g]]}()},2954:(e,t,n)=>{"use strict";const r=n(5544),i=n(1227);e.exports=(e,t,n)=>{let o=null,s=null,a=null;try{a=new i(t,n)}catch(c){return null}return e.forEach(e=>{a.test(e)&&(o&&1!==s.compare(e)||(o=e,s=new r(o,n)))}),o}},2958:(e,t,n)=>{"use strict";n.d(t,{Q:()=>o});var r=n(6006),i=n(8599);function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"wei";return(0,i.J)(e,r.sz[t])}},3007:e=>{"use strict";const t=/^[0-9]+$/,n=(e,n)=>{if("number"===typeof e&&"number"===typeof n)return e===n?0:e<n?-1:1;const r=t.test(e),i=t.test(n);return r&&i&&(e=+e,n=+n),e===n?0:r&&!i?-1:i&&!r?1:e<n?-1:1};e.exports={compareIdentifiers:n,rcompareIdentifiers:(e,t)=>n(t,e)}},3092:function(e,t){var n;void 0===(n=function(){return function(){var e=[new Uint32Array([2157250,2157314,2157378,2157442,2157506,2157570,2157634,0,2157698,2157762,2157826,2157890,2157954,0,2158018,0]),new Uint32Array([2179041,6291456,2179073,6291456,2179105,6291456,2179137,6291456,2179169,6291456,2179201,6291456,2179233,6291456,2179265,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,14680064,14680064,14680064,14680064,14680064]),new Uint32Array([0,2113729,2197345,2197377,2113825,2197409,2197441,2113921,2197473,2114017,2197505,2197537,2197569,2197601,2197633,2197665]),new Uint32Array([6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,23068672,23068672,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,0,23068672,23068672,23068672,0,0,0,0,23068672]),new Uint32Array([14680064,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,14680064,14680064]),new Uint32Array([2196001,2196033,2196065,2196097,2196129,2196161,2196193,2196225,2196257,2196289,2196321,2196353,2196385,2196417,2196449,2196481]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,6291456,0,0,0,0,0]),new Uint32Array([2097281,2105921,2097729,2106081,0,2097601,2162337,2106017,2133281,2097505,2105889,2097185,2097697,2135777,2097633,2097441]),new Uint32Array([2177025,6291456,2177057,6291456,2177089,6291456,2177121,6291456,2177153,6291456,2177185,6291456,2177217,6291456,2177249,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,0,6291456,6291456,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456]),new Uint32Array([0,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,6291456]),new Uint32Array([2134435,2134531,2134627,2134723,2134723,2134819,2134819,2134915,2134915,2135011,2105987,2135107,2135203,2135299,2131587,2135395]),new Uint32Array([0,0,0,0,0,0,0,6291456,2168673,2169249,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2147906,2147970,2148034,2148098,2148162,2148226,2148290,2148354,2147906,2147970,2148034,2148098,2148162,2148226,2148290,2148354]),new Uint32Array([2125219,2125315,2152834,2152898,2125411,2152962,2153026,2125506,2125507,2125603,2153090,2153154,2153218,2153282,2153346,2105348]),new Uint32Array([2203393,6291456,2203425,6291456,2203457,6291456,2203489,6291456,6291456,6291456,6291456,2203521,6291456,2181281,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,23068672,6291456,2145538,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,6291456]),new Uint32Array([2139426,2160834,2160898,2160962,2134242,2161026,2161090,2161154,2161218,2161282,2161346,2161410,2138658,2161474,2161538,2134722]),new Uint32Array([2119939,2124930,2125026,2106658,2125218,2128962,2129058,2129154,2129250,2129346,2129442,2108866,2108770,2150466,2150530,2150594]),new Uint32Array([2201601,6291456,2201633,6291456,2201665,6291456,2201697,6291456,2201729,6291456,2201761,6291456,2201793,6291456,2201825,6291456]),new Uint32Array([2193537,2193569,2193601,2193633,2193665,2193697,2193729,2193761,2193793,2193825,2193857,2193889,2193921,2193953,2193985,2194017]),new Uint32Array([6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2190561,6291456,2190593,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2190625,6291456,2190657,6291456,23068672]),new Uint32Array([2215905,2215937,2215969,2216001,2216033,2216065,2216097,2216129,2216161,2216193,2216225,2216257,2105441,2216289,2216321,2216353]),new Uint32Array([23068672,18884130,23068672,23068672,23068672,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2191233,2191265,2191297,2191329,2191361,2191393,2191425,2117377,2191457,2191489,2191521,2191553,2191585,2191617,2191649,2117953]),new Uint32Array([2132227,2132323,2132419,2132419,2132515,2132515,2132611,2132707,2132707,2132803,2132899,2132899,2132995,2132995,2133091,2133187]),new Uint32Array([0,0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,6291456,0,0]),new Uint32Array([2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,10609889,10610785,10609921,10610817,2222241]),new Uint32Array([6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,0,0]),new Uint32Array([2219969,2157121,2157441,2157505,2157889,2157953,2220001,2158465,2158529,10575617,2156994,2157058,2129923,2130019,2157122,2157186]),new Uint32Array([6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0]),new Uint32Array([2185249,6291456,2185281,6291456,2185313,6291456,2185345,6291456,2185377,6291456,2185409,6291456,2185441,6291456,2185473,6291456]),new Uint32Array([0,0,0,0,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,0,23068672,23068672,0,0,23068672,23068672,23068672,6291456,0]),new Uint32Array([2183361,6291456,2183393,6291456,2183425,6291456,2183457,6291456,2183489,6291456,2183521,6291456,2183553,6291456,2183585,6291456]),new Uint32Array([2192161,2192193,2192225,2192257,2192289,2192321,2192353,2192385,2192417,2192449,2192481,2192513,2192545,2192577,2192609,2192641]),new Uint32Array([2212001,2212033,2212065,2212097,2212129,2212161,2212193,2212225,2212257,2212289,2212321,2212353,2212385,2212417,2212449,2207265]),new Uint32Array([2249825,2249857,2249889,2249921,2249954,2250018,2250082,2250145,2250177,2250209,2250241,2250274,2250337,2250370,2250433,2250465]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2147905,2147969,2148033,2148097,2148161,2148225,2148289,2148353]),new Uint32Array([10485857,6291456,2197217,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,23068672,23068672]),new Uint32Array([0,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([2180353,2180385,2144033,2180417,2180449,2180481,2180513,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,10610209,10610465,10610241,10610753,10609857]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,0,0]),new Uint32Array([2223842,2223906,2223970,2224034,2224098,2224162,2224226,2224290,2224354,2224418,2224482,2224546,2224610,2224674,2224738,2224802]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,6291456,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456]),new Uint32Array([23068672,23068672,23068672,18923650,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,18923714,23068672,23068672]),new Uint32Array([2126179,2125538,2126275,2126371,2126467,2125634,2126563,2105603,2105604,2125346,2126659,2126755,2126851,2098179,2098181,2098182]),new Uint32Array([2227426,2227490,2227554,2227618,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2192353,2240642,2240642,2240705,2240737,2240737,2240769,2240802,2240866,2240929,2240961,2240993,2241025,2241057,2241089,2241121]),new Uint32Array([6291456,2170881,2170913,2170945,6291456,2170977,6291456,2171009,2171041,6291456,6291456,6291456,2171073,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2132226,2132514,2163586,2132610,2160386,2133090,2133186,2160450,2160514,2160578,2133570,2106178,2160642,2133858,2160706,2160770]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,10532162,10532226,10532290,10532354,10532418,10532482,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,23068672]),new Uint32Array([2098209,2108353,2108193,2108481,2170241,2111713,2105473,2105569,2105601,2112289,2112481,2098305,2108321,0,0,0]),new Uint32Array([2209121,2209153,2209185,2209217,2209249,2209281,2209313,2209345,2209377,2209409,2209441,2209473,2207265,2209505,2209537,2209569]),new Uint32Array([2189025,6291456,2189057,6291456,2189089,6291456,2189121,6291456,2189153,6291456,2189185,6291456,2189217,6291456,2189249,6291456]),new Uint32Array([2173825,2153473,2173857,2173889,2173921,2173953,2173985,2173761,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233057]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2165764,2140004]),new Uint32Array([2215105,6291456,2215137,6291456,6291456,2215169,2215201,6291456,6291456,6291456,2215233,2215265,2215297,2215329,2215361,2215393]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,6291456,6291456,6291456,23068672,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([10505091,10505187,10505283,10505379,10505475,10505571,10505667,10505763,10505859,10505955,10506051,10506147,10506243,10506339,10506435,10506531]),new Uint32Array([2229730,2229794,2229858,2229922,2229986,2230050,2230114,2230178,2230242,2230306,2230370,2230434,2230498,2230562,2230626,2230690]),new Uint32Array([2105505,2098241,2108353,2108417,2105825,0,2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177]),new Uint32Array([6291456,6291456,6291456,6291456,10502115,10502178,10502211,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456]),new Uint32Array([2190305,6291456,2190337,6291456,2190369,6291456,2190401,6291456,2190433,6291456,2190465,6291456,2190497,6291456,2190529,6291456]),new Uint32Array([2173793,2173985,2174017,6291456,2173761,2173697,6291456,2174689,6291456,2174017,2174721,6291456,6291456,2174753,2174785,2174817]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2099521,2099105,2120705,2098369,2120801,2103361,2097985,2098433,2121377,2121473,2099169,2099873,2098401,2099393,2152609,2100033]),new Uint32Array([2132898,2163842,2163906,2133282,2132034,2131938,2137410,2132802,2132706,2164866,2133282,2160578,2165186,2165186,6291456,6291456]),new Uint32Array([10500003,10500099,10500195,10500291,10500387,10500483,10500579,10500675,10500771,10500867,10500963,10501059,10501155,10501251,10501347,10501443]),new Uint32Array([2163458,2130978,2131074,2131266,2131362,2163522,2160130,2132066,2131010,2131106,2106018,2131618,2131298,2132034,2131938,2137410]),new Uint32Array([2212961,2116993,2212993,2213025,2213057,2213089,2213121,2213153,2213185,2213217,2213249,2209633,2213281,2213313,2213345,2213377]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([2113729,2113825,2113921,2114017,2114113,2114209,2114305,2114401,2114497,2114593,2114689,2114785,2114881,2114977,2115073,2115169]),new Uint32Array([2238177,2238209,2238241,2238273,2238305,2238337,2238337,2217537,2238369,2238401,2238433,2238465,2215649,2238497,2238529,2238561]),new Uint32Array([2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905]),new Uint32Array([6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,0]),new Uint32Array([6291456,0,6291456,2145026,0,6291456,2145090,0,6291456,6291456,0,0,23068672,0,23068672,23068672]),new Uint32Array([2099233,2122017,2200673,2098113,2121537,2103201,2200705,2104033,2121857,2121953,2122401,2099649,2099969,2123009,2100129,2100289]),new Uint32Array([6291456,23068672,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,23068672,23068672,0,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0]),new Uint32Array([2187681,2187713,2187745,2187777,2187809,2187841,2187873,2187905,2187937,2187969,2188001,2188033,2188065,2188097,2188129,2188161]),new Uint32Array([0,10554498,10554562,10554626,10554690,10554754,10554818,10554882,10554946,10555010,10555074,6291456,6291456,0,0,0]),new Uint32Array([2235170,2235234,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0]),new Uint32Array([2181153,6291456,2188897,6291456,6291456,2188929,6291456,6291456,6291456,6291456,6291456,6291456,2111905,2100865,2188961,2188993]),new Uint32Array([2100833,2100897,0,0,2101569,2101697,2101825,2101953,2102081,2102209,10575617,2187041,10502177,10489601,10489697,2112289]),new Uint32Array([6291456,2172833,6291456,2172865,2172897,2172929,2172961,6291456,2172993,6291456,2173025,6291456,2173057,6291456,2173089,6291456]),new Uint32Array([6291456,0,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,0,0,23068672,6291456,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,2190721]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,23068672,6291456,6291456]),new Uint32Array([2184993,6291456,2185025,6291456,2185057,6291456,2185089,6291456,2185121,6291456,2185153,6291456,2185185,6291456,2185217,6291456]),new Uint32Array([2115265,2115361,2115457,2115553,2115649,2115745,2115841,2115937,2116033,2116129,2116225,2116321,2150658,2150722,2200225,6291456]),new Uint32Array([2168321,6291456,2168353,6291456,2168385,6291456,2168417,6291456,2168449,6291456,2168481,6291456,2168513,6291456,2168545,6291456]),new Uint32Array([23068672,23068672,23068672,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,0,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,0,6291456,0,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,2186625,0,0,6291456,6291456,2186657,2186689,2186721,2173505,0,10496067,10496163,10496259]),new Uint32Array([2178785,6291456,2178817,6291456,2178849,6291456,2178881,6291456,2178913,6291456,2178945,6291456,2178977,6291456,2179009,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0]),new Uint32Array([2097152,0,0,0,2097152,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,2197857,2197889,2197921,2197953,2197985,2198017,0,0,2198049,2198081,2198113,2198145,2198177,2198209]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2098209,2167297,2111137,6291456]),new Uint32Array([2171393,6291456,2171425,6291456,2171457,6291456,2171489,6291456,2171521,6291456,2171553,6291456,2171585,6291456,2171617,6291456]),new Uint32Array([2206753,2206785,2195457,2206817,2206849,2206881,2206913,2197153,2197153,2206945,2117857,2206977,2207009,2207041,2207073,2207105]),new Uint32Array([0,0,0,0,0,0,0,23068672,0,0,0,0,2144834,2144898,0,2144962]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,23068672]),new Uint32Array([2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,0,2105505,2098241]),new Uint32Array([6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,2202049,6291456,2202081,6291456,2202113,6291456,2202145,6291456,2202177,6291456,2202209,6291456,2202241,6291456]),new Uint32Array([10501155,10501251,10501347,10501443,10501539,10501635,10501731,10501827,10501923,10502019,2141731,2105505,2098177,2155586,2166530,0]),new Uint32Array([2102081,2102209,2100833,2100737,2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209,2100833,2100737,2098337,2101441]),new Uint32Array([2146882,2146946,2147010,2147074,2147138,2147202,2147266,2147330,2146882,2146946,2147010,2147074,2147138,2147202,2147266,2147330]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([10502307,10502403,10502499,10502595,10502691,10502787,10502883,10502979,10503075,10503171,10503267,10503363,10503459,10503555,10503651,10503747]),new Uint32Array([2179937,2179969,2180001,2180033,2156545,2180065,2156577,2180097,2180129,2180161,2180193,2180225,2180257,2180289,2156737,2180321]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,0,0,0,6291456,0,0,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0]),new Uint32Array([2227682,2227746,2227810,2227874,2227938,2228002,2228066,2228130,2228194,2228258,2228322,2228386,2228450,2228514,2228578,2228642]),new Uint32Array([2105601,2169121,2108193,2170049,2181025,2181057,2112481,2108321,2108289,2181089,2170497,2100865,2181121,2173601,2173633,2173665]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2180641,6291456,6291456,6291456]),new Uint32Array([0,6291456,6291456,6291456,0,6291456,0,6291456,0,0,6291456,6291456,0,6291456,6291456,6291456]),new Uint32Array([2178273,6291456,2178305,6291456,2178337,6291456,2178369,6291456,2178401,6291456,2178433,6291456,2178465,6291456,2178497,6291456]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,6291456,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,14680064,14680064,14680064,14680064,14680064,14680064]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456]),new Uint32Array([2237377,2237409,2236225,2237441,2237473,2217441,2215521,2215553,2217473,2237505,2237537,2209697,2237569,2215585,2237601,2237633]),new Uint32Array([2221985,2165601,2165601,2165665,2165665,2222017,2222017,2165729,2165729,2158913,2158913,2158913,2158913,2097281,2097281,2105921]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2149634,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2176897,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,2176929,6291456,2176961,6291456,2176993,6291456]),new Uint32Array([2172641,6291456,2172673,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2172705,2172737,6291456,2172769,2172801,6291456]),new Uint32Array([2099173,2104196,2121667,2099395,2121763,2152258,2152322,2098946,2152386,2121859,2121955,2099333,2122051,2104324,2099493,2122147]),new Uint32Array([6291456,6291456,6291456,2145794,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,2145858,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,0,0,6291456,0]),new Uint32Array([0,2105921,2097729,0,2097377,0,0,2106017,0,2097505,2105889,2097185,2097697,2135777,2097633,2097441]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2239074,2239138,2239201,2239233,2239265,2239297,2239329,2239361,0,2239393,2239425,2239425,2239458,2239521,2239553,2209569]),new Uint32Array([14680064,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,6291456,23068672]),new Uint32Array([2108321,2108289,2113153,2098209,2180897,2180929,2180961,2111137,2098241,2108353,2170241,2170273,2180993,2105825,6291456,2105473]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2146114,6291456,6291456,6291456,0,0,0]),new Uint32Array([2105921,2105921,2105921,2222049,2222049,2130977,2130977,2130977,2130977,2160065,2160065,2160065,2160065,2097729,2097729,2097729]),new Uint32Array([2218145,2214785,2207937,2218177,2218209,2192993,2210113,2212769,2218241,2218273,2216129,2218305,2216161,2218337,2218369,2218401]),new Uint32Array([0,0,0,2156546,2156610,2156674,2156738,2156802,0,0,0,0,0,2156866,23068672,2156930]),new Uint32Array([23068672,23068672,23068672,0,0,0,0,23068672,23068672,0,0,23068672,23068672,23068672,0,0]),new Uint32Array([2213409,2213441,2213473,2213505,2213537,2213569,2213601,2213633,2213665,2195681,2213697,2213729,2213761,2213793,2213825,2213857]),new Uint32Array([2100033,2099233,2122017,2200673,2098113,2121537,2103201,2200705,2104033,2121857,2121953,2122401,2099649,2099969,2123009,2100129]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([2201857,6291456,2201889,6291456,2201921,6291456,2201953,6291456,2201985,6291456,2202017,6291456,2176193,2176257,23068672,23068672]),new Uint32Array([6291456,6291456,23068672,23068672,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2188193,2188225,2188257,2188289,2188321,2188353,2188385,2188417,2188449,2188481,2188513,2188545,2188577,2188609,2188641,0]),new Uint32Array([10554529,2221089,0,10502113,10562017,10537921,10538049,2221121,2221153,0,0,0,0,0,0,0]),new Uint32Array([2213889,2213921,2213953,2213985,2214017,2214049,2214081,2194177,2214113,2214145,2214177,2214209,2214241,2214273,2214305,2214337]),new Uint32Array([2166978,2167042,2099169,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2180545,6291456,6291456,6291456]),new Uint32Array([10518915,10519011,10519107,10519203,2162242,2162306,2159554,2162370,2159362,2159618,2105922,2162434,2159746,2162498,2159810,2159874]),new Uint32Array([2161730,2161794,2135586,2161858,2161922,2137186,2131810,2160290,2135170,2161986,2137954,2162050,2162114,2162178,10518723,10518819]),new Uint32Array([10506627,10506723,10506819,10506915,10507011,10507107,10507203,10507299,10507395,10507491,10507587,10507683,10507779,10507875,10507971,10508067]),new Uint32Array([6291456,23068672,23068672,23068672,0,23068672,23068672,0,0,0,0,0,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0]),new Uint32Array([2175873,2175905,2175937,2175969,2176001,2176033,2176065,2176097,2176129,2176161,2176193,2176225,2176257,2176289,2176321,2176353]),new Uint32Array([2140006,2140198,2140390,2140582,2140774,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,23068672,23068672,23068672]),new Uint32Array([2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241]),new Uint32Array([0,23068672,0,0,0,0,0,0,0,2145154,2145218,2145282,6291456,0,2145346,0]),new Uint32Array([0,0,0,0,10531458,10495395,2148545,2143201,2173473,2148865,2173505,0,2173537,0,2173569,2149121]),new Uint32Array([10537282,10495683,2148738,2148802,2148866,0,6291456,2148930,2186593,2173473,2148737,2148865,2148802,10495779,10495875,10495971]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2215425,2215457,2215489,2215521,2215553,2215585,2215617,2215649,2215681,2215713,2215745,2215777,2192033,2215809,2215841,2215873]),new Uint32Array([2242049,2242081,2242113,2242145,2242177,2242209,2242241,2242273,2215937,2242305,2242338,2242401,2242433,2242465,2242497,2216001]),new Uint32Array([10554529,2221089,0,0,10562017,10502113,10538049,10537921,2221185,10489601,10489697,10609889,10609921,2141729,2141793,10610273]),new Uint32Array([2141923,2142019,2142115,2142211,2142307,2142403,2142499,2142595,2142691,0,0,0,0,0,0,0]),new Uint32Array([0,2221185,2221217,10609857,10609857,10489601,10489697,10609889,10609921,2141729,2141793,2221345,2221377,2221409,2221441,2187105]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,18923970,23068672,23068672,23068672,0,6291456,6291456]),new Uint32Array([2183105,6291456,2183137,6291456,2183169,6291456,2183201,6291456,2183233,6291456,2183265,6291456,2183297,6291456,2183329,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456]),new Uint32Array([2134434,2134818,2097666,2097186,2097474,2097698,2105986,2131586,2132450,2131874,2131778,2135970,2135778,2161602,2136162,2161666]),new Uint32Array([2236865,2236897,2236930,2236993,2237025,2235681,2237058,2237121,2237153,2237185,2237217,2217281,2237250,2191233,2237313,2237345]),new Uint32Array([2190049,6291456,2190081,6291456,2190113,6291456,2190145,6291456,2190177,6291456,2190209,6291456,2190241,6291456,2190273,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2101922,2102050,2102178,2102306,10498755,10498851,10498947,10499043,10499139,10499235,10499331,10499427,10499523,10489604,10489732,10489860]),new Uint32Array([2166914,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0]),new Uint32Array([2181601,2170561,2181633,2181665,2170753,2181697,2172897,2170881,2181729,2170913,2172929,2113441,2181761,2181793,2171009,2173761]),new Uint32Array([0,2105921,2097729,2106081,0,2097601,2162337,2106017,2133281,2097505,0,2097185,2097697,2135777,2097633,2097441]),new Uint32Array([6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,0,0,0,0]),new Uint32Array([2248001,2248033,2248066,2248130,2248193,2248226,2248289,2248322,2248385,2248417,2216673,2248450,2248514,2248577,2248610,2248673]),new Uint32Array([6291456,6291456,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,0,0,0]),new Uint32Array([2169729,6291456,2169761,6291456,2169793,6291456,2169825,6291456,2169857,2169889,6291456,2169921,6291456,2143329,6291456,2098305]),new Uint32Array([2162178,2163202,2163266,2135170,2136226,2161986,2137954,2159426,2159490,2163330,2159554,2163394,2159682,2139522,2136450,2159746]),new Uint32Array([2173953,2173985,0,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2174209,2174241,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,4271169,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2174273]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,0,0,0,0,0,0,0,6291456,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,2190785,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2189793,6291456,2189825,6291456,2189857,6291456,2189889,6291456,2189921,6291456,2189953,6291456,2189985,6291456,2190017,6291456]),new Uint32Array([2105601,2112289,2108193,2112481,2112577,0,2098305,2108321,2108289,2100865,2113153,2108481,2113345,0,2098209,2111137]),new Uint32Array([2172129,6291456,2172161,6291456,2172193,6291456,2172225,6291456,2172257,6291456,2172289,6291456,2172321,6291456,2172353,6291456]),new Uint32Array([2214753,6291456,2214785,6291456,6291456,2214817,2214849,2214881,2214913,2214945,2214977,2215009,2215041,2215073,2194401,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,6291456,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([0,0,0,0,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([10610305,10610337,10575617,2221761,10610401,10610433,10502177,0,10610465,10610497,10610529,10610561,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,23068672,0,0,0,0,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2187105,2187137,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2199393,2199425,2199457,2199489,2199521,2199553,2199585,2199617,2199649,2199681,2199713,2199745,2199777,2199809,2199841,0]),new Uint32Array([2217249,2217281,2217313,2217345,2217377,2217409,2217441,2217473,2215617,2217505,2217537,2217569,2214753,2217601,2217633,2217665]),new Uint32Array([2170273,2170305,6291456,2170337,2170369,6291456,2170401,2170433,2170465,6291456,6291456,6291456,2170497,2170529,6291456,2170561]),new Uint32Array([2188673,6291456,2188705,2188737,2188769,6291456,6291456,2188801,6291456,2188833,6291456,2188865,6291456,2180929,2181505,2180897]),new Uint32Array([10489988,10490116,10490244,10490372,10490500,10490628,10490756,10490884,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2147393,2147457,2147521,2147585,2147649,2147713,2147777,2147841]),new Uint32Array([23068672,23068672,0,23068672,23068672,0,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0]),new Uint32Array([2241153,2241185,2241217,2215809,2241250,2241313,2241345,2241377,2217921,2241377,2241409,2215873,2241441,2241473,2241505,2241537]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2220417,2220417,2220449,2220449,2220481,2220481,2220513,2220513,2220545,2220545,2220577,2220577,2220609,2220609,2220641,2220641]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,2144002,0,6291456,6291456,0,0,6291456,6291456,6291456]),new Uint32Array([2167105,2167137,2167169,2167201,2167233,2167265,2167297,2167329,2167361,2167393,2167425,2167457,2167489,2167521,2167553,2167585]),new Uint32Array([10575521,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193]),new Uint32Array([2234146,2234210,2234274,2234338,2234402,2234466,2234530,2234594,2234658,2234722,2234786,2234850,2234914,2234978,2235042,2235106]),new Uint32Array([0,0,0,0,0,0,0,2180577,0,0,0,0,0,2180609,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,0,0,6291456,6291456]),new Uint32Array([2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2242529,2242561,2242593,2242625,2242657,2242689,2242721,2242753,2207937,2218177,2242785,2242817,2242849,2242882,2242945,2242977]),new Uint32Array([2118049,2105345,2118241,2105441,2118433,2118529,2118625,2118721,2118817,2200257,2200289,2191809,2200321,2200353,2200385,2200417]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0]),new Uint32Array([2185505,6291456,2185537,6291456,2185569,6291456,2185601,6291456,2185633,6291456,2185665,6291456,2185697,6291456,2185729,6291456]),new Uint32Array([2231970,2232034,2232098,2232162,2232226,2232290,2232354,2232418,2232482,2232546,2232610,2232674,2232738,2232802,2232866,2232930]),new Uint32Array([2218625,2246402,2246466,2246530,2246594,2246657,2246689,2246689,2218657,2219681,2246721,2246753,2246785,2246818,2246881,2208481]),new Uint32Array([2197025,2197057,2197089,2197121,2197153,2197185,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2219137,2216961,2219169,2219201,2219233,2219265,2219297,2217025,2215041,2219329,2217057,2219361,2217089,2219393,2197153,2219426]),new Uint32Array([23068672,23068672,23068672,0,0,0,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,0,0]),new Uint32Array([2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713]),new Uint32Array([2243522,2243585,2243617,2243649,2243681,2210113,2243713,2243746,2243810,2243874,2243937,2243970,2244033,2244065,2244097,2244129]),new Uint32Array([2178017,6291456,2178049,6291456,2178081,6291456,2178113,6291456,2178145,6291456,2178177,6291456,2178209,6291456,2178241,6291456]),new Uint32Array([10553858,2165314,10518722,6291456,10518818,0,10518914,2130690,10519010,2130786,10519106,2130882,10519202,2165378,10554050,2165506]),new Uint32Array([0,0,2135491,2135587,2135683,2135779,2135875,2135971,2135971,2136067,2136163,2136259,2136355,2136355,2136451,2136547]),new Uint32Array([23068672,23068672,23068672,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2220033,2220033,2220065,2220065,2220065,2220065,2220097,2220097,2220097,2220097,2220129,2220129,2220129,2220129,2220161,2220161]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,23068672,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2100897,2100898,2100899,2150018,2100865,2100866,2100867,2100868,2150082,2108481,2109858,2109859,2105569,2105505,2098241,2105601]),new Uint32Array([2097217,2097505,2097505,2097505,2097505,2165570,2165570,2165634,2165634,2165698,2165698,2097858,2097858,0,0,2097152]),new Uint32Array([23068672,6291456,23068672,23068672,23068672,6291456,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,23068672,23068672]),new Uint32Array([23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([10503843,10503939,10504035,10504131,10504227,10504323,10504419,10504515,10504611,10504707,10504803,10504899,10504995,10491140,10491268,0]),new Uint32Array([2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889,2173921,2173953,2173985,2173761,2174017,2174049]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2134145,2097153,2134241,2105953,2132705,2130977,2160065,2131297,2162049,2133089,2160577,2133857,2235297,2220769,2235329,2235361]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2222401,2222433,2222465,10531394,2222497,2222529,2222561,0,2222593,2222625,2222657,2222689,2222721,2222753,2222785,0]),new Uint32Array([2184481,6291456,2184513,6291456,2184545,6291456,2184577,6291456,2184609,6291456,2184641,6291456,2184673,6291456,2184705,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,0,0,0,0,0,0,0,0,0]),new Uint32Array([2105570,2156034,2126947,2156098,2153666,2127043,2127139,2156162,0,2127235,2156226,2156290,2156354,2156418,2127331,2127427]),new Uint32Array([2215905,2207041,2153185,2241569,2241601,2241633,2241665,2241697,2241730,2241793,2241825,2241857,2241889,2241921,2241954,2242017]),new Uint32Array([2203777,6291456,2203809,6291456,2203841,6291456,2203873,6291456,2203905,6291456,2173121,2180993,2181249,2203937,2181313,0]),new Uint32Array([2168577,6291456,2168609,6291456,2168641,6291456,2168673,6291456,2168705,6291456,2168737,6291456,2168769,6291456,2168801,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,23068672,23068672,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,0,23068672,23068672,23068672,0,0]),new Uint32Array([2210113,2195521,2210145,2210177,2210209,2210241,2210273,2210305,2210337,2210369,2210401,2210433,2210465,2210497,2210529,2210561]),new Uint32Array([6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([2228706,2228770,2228834,2228898,2228962,2229026,2229090,2229154,2229218,2229282,2229346,2229410,2229474,2229538,2229602,2229666]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,18874368,18874368,18874368,0,0]),new Uint32Array([2133089,2133281,2133281,2133281,2133281,2160577,2160577,2160577,2160577,2097441,2097441,2097441,2097441,2133857,2133857,2133857]),new Uint32Array([6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2173825,2153473,2173857,2173889,2173921,2173953,2173985,2174017,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233089]),new Uint32Array([2178529,6291456,2178561,6291456,2178593,6291456,2178625,6291456,2178657,6291456,2178689,6291456,2178721,6291456,2178753,6291456]),new Uint32Array([2221025,2221025,2221057,2221057,2159329,2159329,2159329,2159329,2097217,2097217,2158914,2158914,2158978,2158978,2159042,2159042]),new Uint32Array([2208161,2208193,2208225,2208257,2194433,2208289,2208321,2208353,2208385,2208417,2208449,2208481,2208513,2208545,2208577,2208609]),new Uint32Array([2169217,6291456,2169249,6291456,2169281,6291456,2169313,6291456,2169345,6291456,2169377,6291456,2169409,6291456,2169441,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456]),new Uint32Array([2133187,2133283,2133283,2133379,2133475,2133571,2133667,2133667,2133763,2133859,2133955,2134051,2134147,2134147,2134243,2134339]),new Uint32Array([2197697,2114113,2114209,2197729,2197761,2114305,2197793,2114401,2114497,2197825,2114593,2114689,2114785,2114881,2114977,0]),new Uint32Array([2193089,2193121,2193153,2193185,2117665,2117569,2193217,2193249,2193281,2193313,2193345,2193377,2193409,2193441,2193473,2193505]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2184225,6291456,2184257,6291456,2184289,6291456,2184321,6291456,2184353,6291456,2184385,6291456,2184417,6291456,2184449,6291456]),new Uint32Array([2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2100833,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2098657,2098049,2200737,2123489,2123681,2200769,2098625,2100321,2098145,2100449,2098017,2098753,2200801,2200833,2200865,0]),new Uint32Array([23068672,23068672,23068672,0,0,0,0,0,0,0,0,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0]),new Uint32Array([2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,0,2098241,2108353,2108417,2105825,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2181153,2105505,2181185,2167617,2180993]),new Uint32Array([2160002,2160066,2160130,2160194,2160258,2132066,2131010,2131106,2106018,2131618,2160322,2131298,2132034,2131938,2137410,2132226]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,6291456]),new Uint32Array([2183617,6291456,2183649,6291456,2183681,6291456,2183713,6291456,2183745,6291456,2183777,6291456,2183809,6291456,2183841,6291456]),new Uint32Array([0,6291456,6291456,0,6291456,0,0,6291456,6291456,0,6291456,0,0,6291456,0,0]),new Uint32Array([2250977,2251009,2251041,2251073,2195009,2251106,2251169,2251201,2251233,2251265,2251297,2251330,2251394,2251457,2251489,2251521]),new Uint32Array([2205729,2205761,2205793,2205825,2205857,2205889,2205921,2205953,2205985,2206017,2206049,2206081,2206113,2206145,2206177,2206209]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2143170,2168993,6291456,2169025,6291456,2169057,6291456,2169089,6291456,2143234,2169121,6291456,2169153,6291456,2169185,6291456]),new Uint32Array([23068672,23068672,2190689,6291456,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2248706,2248769,2248801,2248833,2248865,2248897,2248929,2248962,2249026,2249090,2249154,2240705,2249217,2249249,2249281,2249313]),new Uint32Array([10485857,6291456,6291456,6291456,6291456,6291456,6291456,6291456,10495394,6291456,2098209,6291456,6291456,2097152,6291456,10531394]),new Uint32Array([0,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([14680064,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2173985,2173953,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889]),new Uint32Array([6291456,2186977,6291456,6291456,6291456,6291456,6291456,10537858,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2209601,2209633,2209665,2209697,2209729,2209761,2209793,2209825,2209857,2209889,2209921,2209953,2209985,2210017,2210049,2210081]),new Uint32Array([10501539,10501635,10501731,10501827,10501923,10502019,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905]),new Uint32Array([2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889,2173921,2173953,2173985,2174017,2174017,2174049]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2194561,2194593,2194625,2119777,2119873,2194657,2194689,2194721,2194753,2194785,2194817,2194849,2194881,2194913,2194945,2194977]),new Uint32Array([2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569]),new Uint32Array([2222818,2222882,2222946,2223010,2223074,2223138,2223202,2223266,2223330,2223394,2223458,2223522,2223586,2223650,2223714,2223778]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672]),new Uint32Array([0,2179553,2179585,2179617,2179649,2144001,2179681,2179713,2179745,2179777,2179809,2156705,2179841,2156833,2179873,2179905]),new Uint32Array([6291456,23068672,6291456,2145602,23068672,23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,6291456,0,0]),new Uint32Array([2196513,2196545,2196577,2196609,2196641,2196673,2196705,2196737,2196769,2196801,2196833,2196865,2196897,2196929,2196961,2196993]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2177281,6291456,2177313,6291456,2177345,6291456,2177377,6291456,2177409,6291456,2177441,6291456,2177473,6291456,2177505,6291456]),new Uint32Array([2187137,2221473,2221505,2221537,2221569,6291456,6291456,10610209,10610241,10537986,10537986,10537986,10537986,10609857,10609857,10609857]),new Uint32Array([2243009,2243041,2216033,2243074,2243137,2243169,2243201,2219617,2243233,2243265,2243297,2243329,2243362,2243425,2243457,2243489]),new Uint32Array([10485857,10485857,10485857,10485857,10485857,10485857,10485857,10485857,10485857,10485857,10485857,2097152,4194304,4194304,0,0]),new Uint32Array([2143042,6291456,2143106,2143106,2168833,6291456,2168865,6291456,6291456,2168897,6291456,2168929,6291456,2168961,6291456,2143170]),new Uint32Array([6291456,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2204193,2204225,2204257,2204289,2204321,2204353,2204385,2204417,2204449,2204481,2204513,2204545,2204577,2204609,2204641,2204673]),new Uint32Array([2202753,6291456,2202785,6291456,2202817,6291456,2202849,6291456,2202881,6291456,2202913,6291456,2202945,6291456,2202977,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177,2098305,2108321]),new Uint32Array([2147394,2147458,2147522,2147586,2147650,2147714,2147778,2147842,2147394,2147458,2147522,2147586,2147650,2147714,2147778,2147842]),new Uint32Array([2253313,2253346,2253409,2253441,2253473,2253505,2253537,2253569,2253601,2253634,2219393,2253697,2253729,2253761,2253793,2253825]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([2162562,2162626,2131362,2162690,2159938,2160002,2162754,2162818,2160130,2162882,2160194,2160258,2160834,2160898,2161026,2161090]),new Uint32Array([2175361,2175393,2175425,2175457,2175489,2175521,2175553,2175585,2175617,2175649,2175681,2175713,2175745,2175777,2175809,2175841]),new Uint32Array([2253858,2253921,2253954,2254018,2254082,2196737,2254145,2196865,2254177,2254209,2254241,2254273,2197025,2254306,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2202113,2204129,2188705,2204161]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([2173985,2174017,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233089,2173697,2173761,2173793,2174113,2173985,2173953]),new Uint32Array([2101569,2101697,2101825,2101953,2102081,2102209,2100833,2100737,2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209]),new Uint32Array([2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241,0,2108417,0,2111713,2100897,2111905]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0]),new Uint32Array([2175425,2175489,2175809,2175905,2175937,2175937,2176193,2176417,2180865,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,2143298,2143298,2143298,2143362,2143362,2143362,2143426,2143426,2143426,2171105,6291456,2171137]),new Uint32Array([2120162,2120258,2151618,2151682,2151746,2151810,2151874,2151938,2152002,2120035,2120131,2120227,2152066,2120323,2152130,2120419]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2195361,2142433,2236065,2236097,2236129,2236161,2118241,2117473,2236193,2236225,2236257,2236289,0,0,0,0]),new Uint32Array([2189281,6291456,2189313,6291456,2189345,6291456,2189377,6291456,2189409,6291456,2189441,6291456,2189473,6291456,2189505,6291456]),new Uint32Array([6291456,6291456,2145922,6291456,6291456,6291456,6291456,2145986,6291456,6291456,6291456,6291456,2146050,6291456,6291456,6291456]),new Uint32Array([2100833,2100737,2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209,10502113,10562017,10610401,10502177,10610433,10538049]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,2186401,0,2186433,0,2186465,0,2186497]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,23068672,23068672,23068672]),new Uint32Array([0,0,2198241,2198273,2198305,2198337,2198369,2198401,0,0,2198433,2198465,2198497,0,0,0]),new Uint32Array([6291456,0,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,0,6291456,0,23068672,23068672,23068672,23068672,23068672,23068672,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,0,0,23068672,6291456,23068672,23068672]),new Uint32Array([0,2105921,2097729,0,2097377,0,0,2106017,2133281,2097505,2105889,0,2097697,2135777,2097633,2097441]),new Uint32Array([2197889,2197921,2197953,2197985,2198017,2198049,2198081,2198113,2198145,2198177,2198209,2198241,2198273,2198305,2198337,2198369]),new Uint32Array([2132514,2132610,2160386,2133090,2133186,2160450,2160514,2133282,2160578,2133570,2106178,2160642,2133858,2160706,2160770,2134146]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,0,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,23068672,23068672,6291456,23068672,23068672,6291456,23068672,0,0,0,0,0,0,0,0]),new Uint32Array([2184737,6291456,2184769,6291456,2184801,6291456,2184833,6291456,2184865,6291456,2184897,6291456,2184929,6291456,2184961,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,6291456,6291456,6291456,6291456,0,6291456]),new Uint32Array([6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,23068672,23068672,23068672,6291456,23068672,23068672,23068672,23068672,23068672,0,0]),new Uint32Array([6291456,6291456,6291456,2186753,6291456,6291456,6291456,6291456,2186785,2186817,2186849,2173569,2186881,10496355,10495395,10575521]),new Uint32Array([0,0,2097729,0,0,0,0,2106017,0,2097505,0,2097185,0,2135777,2097633,2097441]),new Uint32Array([2189537,6291456,2189569,6291456,2189601,6291456,2189633,6291456,2189665,6291456,2189697,6291456,2189729,6291456,2189761,6291456]),new Uint32Array([2202497,6291456,2202529,6291456,2202561,6291456,2202593,6291456,2202625,6291456,2202657,6291456,2202689,6291456,2202721,6291456]),new Uint32Array([2245217,2218369,2245249,2245282,2245345,2245377,2245410,2245474,2245537,2245569,2245601,2245633,2245665,2245665,2245697,2245729]),new Uint32Array([6291456,0,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,0,0,0,0,0,0,23068672,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,6291456,23068672,6291456,23068672,6291456,6291456,6291456,6291456,23068672,23068672]),new Uint32Array([0,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([2097281,2105921,2097729,2106081,2097377,2097601,2162337,2106017,2133281,2097505,0,2097185,2097697,2135777,2097633,2097441]),new Uint32Array([2176641,6291456,2176673,6291456,2176705,6291456,2176737,6291456,2176769,6291456,2176801,6291456,2176833,6291456,2176865,6291456]),new Uint32Array([2174145,2174177,2149057,2233089,2173697,2173761,2173793,2174113,2173985,2173953,2174369,2174369,0,0,2100833,2100737]),new Uint32Array([2116513,2190817,2190849,2190881,2190913,2190945,2116609,2190977,2191009,2191041,2191073,2117185,2191105,2191137,2191169,2191201]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,6291456,6291456,6291456]),new Uint32Array([0,0,0,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456]),new Uint32Array([2167617,2167649,2167681,2167713,2167745,2167777,2167809,6291456,2167841,2167873,2167905,2167937,2167969,2168001,2168033,4240130]),new Uint32Array([2165122,2163970,2164034,2164098,2164162,2164226,2164290,2164354,2164418,2164482,2164546,2133122,2134562,2132162,2132834,2136866]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,2186209,2186241,2186273,2186305,2186337,2186369,0,0]),new Uint32Array([2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,14680064,14680064,14680064,14680064,14680064]),new Uint32Array([0,0,23068672,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456]),new Uint32Array([0,10537921,10610689,10610273,10610497,10610529,10610305,10610721,10489601,10489697,10610337,10575617,10554529,2221761,2197217,10496577]),new Uint32Array([2105473,2105569,2105601,2112289,0,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441]),new Uint32Array([2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481]),new Uint32Array([2125346,2153410,2153474,2127394,2153538,2153602,2153666,2153730,2105507,2105476,2153794,2153858,2153922,2153986,2154050,2105794]),new Uint32Array([2200449,2119681,2200481,2153313,2199873,2199905,2199937,2200513,2200545,2200577,2200609,2119105,2119201,2119297,2119393,2119489]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2175777,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2222273,2197217,2221473,2221505,2221089,2222305,2200865,2099681,2104481,2222337,2099905,2120737,2222369,2103713,2100225,2098785]),new Uint32Array([2201377,6291456,2201409,6291456,2201441,6291456,2201473,6291456,2201505,6291456,2201537,6291456,2201569,6291456,6291456,23068672]),new Uint32Array([2174081,2174113,2174145,2174177,2149057,2233057,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793]),new Uint32Array([2200897,6291456,2200929,6291456,2200961,6291456,2200993,6291456,2201025,6291456,2180865,6291456,2201057,6291456,2201089,6291456]),new Uint32Array([0,0,0,0,0,23068672,23068672,0,6291456,6291456,6291456,0,0,0,0,0]),new Uint32Array([2161154,2161410,2138658,2161474,2161538,2097666,2097186,2097474,2162946,2132450,2163010,2163074,2136162,2163138,2161666,2161730]),new Uint32Array([2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889,2173921,2173953]),new Uint32Array([0,0,0,0,0,0,23068672,23068672,0,0,0,0,2145410,2145474,0,6291456]),new Uint32Array([2244161,2216065,2212769,2244193,2244225,2244257,2244290,2244353,2244385,2244417,2244449,2218273,2244481,2244514,2244577,2244609]),new Uint32Array([2125730,2125699,2125795,2125891,2125987,2154114,2154178,2154242,2154306,2154370,2154434,2154498,2126082,2126178,2126274,2126083]),new Uint32Array([2237665,2237697,2237697,2237697,2237730,2237793,2237825,2237857,2237890,2237953,2237985,2238017,2238049,2238081,2238113,2238145]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2150146,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,0,23068672,23068672,0,0,23068672,23068672,23068672,0,0]),new Uint32Array([2214369,2238593,2238625,2238657,2238689,2238721,2238753,2238785,2238817,2238850,2238913,2238945,2238977,2235457,2239009,2239041]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([2252066,2252130,2252193,2252225,2252257,2252290,2252353,2252385,2252417,2252449,2252481,2252513,2252545,2252578,2252641,2252673]),new Uint32Array([2197697,2114113,2114209,2197729,2197761,2114305,2197793,2114401,2114497,2197825,2114593,2114689,2114785,2114881,2114977,2197857]),new Uint32Array([2224866,2224930,2224994,2225058,2225122,2225186,2225250,2225314,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2219490,2219554,2219617,2219649,2219681,2219714,2219778,2219842,2219905,2219937,0,0,0,0,0,0]),new Uint32Array([6291456,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456]),new Uint32Array([2113345,2113441,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289]),new Uint32Array([2174081,2174113,2174145,2174177,2149057,2233089,2173697,2173761,2173793,2174113,2173985,2173953,2148481,2173601,2173633,2173665]),new Uint32Array([2220161,2220161,2220193,2220193,2220193,2220193,2220225,2220225,2220225,2220225,2220257,2220257,2220257,2220257,2220289,2220289]),new Uint32Array([2192673,2192705,2192737,2192769,2192801,2192833,2192865,2118049,2192897,2117473,2117761,2192929,2192961,2192993,2193025,2193057]),new Uint32Array([2179297,6291456,2179329,6291456,2179361,6291456,2179393,6291456,2179425,6291456,2179457,6291456,2179489,6291456,2179521,6291456]),new Uint32Array([6291456,6291456,6291456,23068672,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([2235745,2235777,2193633,2235809,2235841,2235873,2235905,2235937,2235969,2116513,2116705,2236001,2200513,2199905,2200545,2236033]),new Uint32Array([2113153,2108481,2113345,2113441,2232993,2233025,0,0,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761]),new Uint32Array([2170593,6291456,2170625,6291456,2170657,6291456,2170689,2170721,6291456,2170753,6291456,6291456,2170785,6291456,2170817,2170849]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2166786,2166850,0,0,0,0]),new Uint32Array([23068672,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([2100833,2100737,2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209,10575617,2187041,10502177,10489601,10489697,0]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2134562,2132162,2132834,2136866,2136482,2164610,2164674,2164738,2164802,2132802,2132706,2164866,2132898,2164930,2164994,2165058]),new Uint32Array([6291456,6291456,2098337,2101441,10531458,2153473,6291456,6291456,10531522,2100737,2108193,6291456,2106499,2106595,2106691,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,0]),new Uint32Array([2233122,2233186,2233250,2233314,2233378,2233442,2233506,2233570,2233634,2233698,2233762,2233826,2233890,2233954,2234018,2234082]),new Uint32Array([23068672,6291456,23068672,23068672,23068672,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2205217,2205249,2205281,2205313,2205345,2205377,2205409,2205441,2205473,2205505,2205537,2205569,2205601,2205633,2205665,2205697]),new Uint32Array([6291456,0,6291456,0,0,0,6291456,6291456,6291456,6291456,0,0,23068672,6291456,23068672,23068672]),new Uint32Array([2173601,2173761,2174081,2173569,2174241,2174113,2173953,6291456,2174305,6291456,2174337,6291456,2174369,6291456,2174401,6291456]),new Uint32Array([6291456,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([2152450,2152514,2099653,2104452,2099813,2122243,2099973,2152578,2122339,2122435,2122531,2122627,2122723,2104580,2122819,2152642]),new Uint32Array([2236385,2236417,2236449,2236482,2236545,2215425,2236577,2236609,2236641,2236673,2215457,2236705,2236737,2236770,2215489,2236833]),new Uint32Array([2163394,2159746,2163458,2131362,2163522,2160130,2163778,2132226,2163842,2132898,2163906,2161410,2138658,2097666,2136162,2163650]),new Uint32Array([2218721,2246913,2246946,2216385,2247010,2247074,2215009,2247137,2247169,2216481,2247201,2247233,2247266,2247330,2247330,0]),new Uint32Array([2129730,2129762,2129858,2129731,2129827,2156482,2156482,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,0,0,0,0,6291456,0,0]),new Uint32Array([2203969,2204001,2181377,2204033,2204065,6291456,2204097,6291456,0,0,0,0,0,0,0,0]),new Uint32Array([2169473,6291456,2169505,6291456,2169537,6291456,2169569,6291456,2169601,6291456,2169633,6291456,2169665,6291456,2169697,6291456]),new Uint32Array([2141542,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2220801,2220801,2220801,2220801,2220833,2220833,2220865,2220865,2220865,2220865,2220897,2220897,2220897,2220897,2139873,2139873]),new Uint32Array([0,0,0,0,0,23068672,23068672,0,0,0,0,0,0,0,6291456,0]),new Uint32Array([2214849,2218433,2218465,2218497,2218529,2218561,2214881,2218593,2218625,2218657,2218689,2218721,2218753,2216545,2218785,2218817]),new Uint32Array([23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0,6291456]),new Uint32Array([2136482,2164610,2164674,2164738,2164802,2132802,2132706,2164866,2132898,2164930,2164994,2165058,2165122,2132802,2132706,2164866]),new Uint32Array([2207649,2207681,2207713,2207745,2207777,2207809,2207841,2207873,2207905,2207937,2207969,2208001,2208033,2208065,2208097,2208129]),new Uint32Array([2123683,2105092,2152706,2123779,2105220,2152770,2100453,2098755,2123906,2124002,2124098,2124194,2124290,2124386,2124482,2124578]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,6291456,0,0,0,0,0,0,0,10485857]),new Uint32Array([6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([10508163,10508259,10508355,10508451,2200129,2200161,2192737,2200193,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2203553,6291456,2203585,6291456,6291456,6291456,2203617,6291456,2203649,6291456,2203681,6291456,2203713,6291456,2203745,6291456]),new Uint32Array([18884449,18884065,23068672,18884417,18884034,18921185,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,18874368]),new Uint32Array([2247393,2247426,2247489,2247521,2247553,2247586,2247649,2247681,2247713,2247745,2247777,2247810,2247873,2247905,2247937,2247969]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,23068672]),new Uint32Array([2134145,2097153,2134241,0,2132705,2130977,2160065,2131297,0,2133089,2160577,2133857,2235297,0,2235329,0]),new Uint32Array([2182593,6291456,2182625,6291456,2182657,6291456,2182689,6291456,2182721,6291456,2182753,6291456,2182785,6291456,2182817,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2102402,2102403,6291456,2110050]),new Uint32Array([2149890,2108323,2149954,6291456,2113441,6291456,2149057,6291456,2113441,6291456,2105473,2167265,2111137,2105505,6291456,2108353]),new Uint32Array([2219105,2219137,2195233,2251554,2251617,2251649,2251681,2251713,2251746,2251810,2251873,2251905,2251937,2251970,2252033,2219169]),new Uint32Array([2203009,6291456,2203041,6291456,2203073,6291456,2203105,6291456,2203137,6291456,2203169,6291456,2203201,6291456,2203233,6291456]),new Uint32Array([2128195,2128291,2128387,2128483,2128579,2128675,2128771,2128867,2128963,2129059,2129155,2129251,2129347,2129443,2129539,2129635]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2140964,2141156,2140966,2141158,2141350]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2225378,2225442,2225506,2225570,2225634,2225698,2225762,2225826,2225890,2225954,2226018,2226082,2226146,2226210,2226274,2226338]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241,2108353,2108417]),new Uint32Array([2108353,2108417,0,2105601,2108193,2157121,2157313,2157377,2157441,2100897,6291456,2108419,2173953,2173633,2173633,2173953]),new Uint32Array([2111713,2173121,2111905,2098177,2173153,2173185,2173217,2113153,2113345,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,2190753]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,2197249,6291456,2117377,2197281,2197313,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,0,0,0,0,0,0,23068672,0,0,0,0,0,6291456,6291456,6291456]),new Uint32Array([2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209,2100833,2100737,2098337,2101441,2101569,2101697,2101825,2101953]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0]),new Uint32Array([0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,23068672,23068672,23068672]),new Uint32Array([2173281,6291456,2173313,6291456,2173345,6291456,2173377,6291456,0,0,10532546,6291456,6291456,6291456,10562017,2173441]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,0,0]),new Uint32Array([23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2159426,2159490,2159554,2159362,2159618,2159682,2139522,2136450,2159746,2159810,2159874,2130978,2131074,2131266,2131362,2159938]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2203233,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2203265,6291456,2203297,6291456,2203329,2203361,6291456]),new Uint32Array([6291456,6291456,2148418,2148482,2148546,0,6291456,2148610,2186529,2186561,2148417,2148545,2148482,10495778,2143969,10495778]),new Uint32Array([2134146,2139426,2160962,2134242,2161218,2161282,2161346,2161410,2138658,2134722,2134434,2134818,2097666,2097346,2097698,2105986]),new Uint32Array([2198881,2198913,2198945,2198977,2199009,2199041,2199073,2199105,2199137,2199169,2199201,2199233,2199265,2199297,2199329,2199361]),new Uint32Array([0,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456]),new Uint32Array([10610561,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193]),new Uint32Array([2183873,6291456,2183905,6291456,2183937,6291456,2183969,6291456,2184001,6291456,2184033,6291456,2184065,6291456,2184097,6291456]),new Uint32Array([2244642,2244706,2244769,2244801,2218305,2244833,2244865,2244897,2244929,2244961,2244993,2245026,2245089,2245122,2245185,0]),new Uint32Array([6291456,6291456,2116513,2116609,2116705,2116801,2199873,2199905,2199937,2199969,2190913,2200001,2200033,2200065,2200097,2191009]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,2180673,2180705,2180737,2180769,2180801,2180833,0,0]),new Uint32Array([2098081,2099521,2099105,2120705,2098369,2120801,2103361,2097985,2098433,2121377,2121473,2099169,2099873,2098401,2099393,2152609]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2150402]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,2145666,2145730,6291456,6291456]),new Uint32Array([2173921,2173953,2173985,2173761,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233057,2148481,2173601,2173633,2173665]),new Uint32Array([2187073,6291456,6291456,6291456,6291456,2098241,2098241,2108353,2100897,2111905,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2102404,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,2100612,6291456,6291456,6291456,6291456,6291456,6291456,6291456,10485857]),new Uint32Array([2149057,2233057,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889]),new Uint32Array([2217697,2217729,2217761,2217793,2217825,2217857,2217889,2217921,2217953,2215873,2217985,2215905,2218017,2218049,2218081,2218113]),new Uint32Array([2211233,2218849,2216673,2218881,2218913,2218945,2218977,2219009,2216833,2219041,2215137,2219073,2216865,2209505,2219105,2216897]),new Uint32Array([2240097,2240129,2240161,2240193,2240225,2240257,2240289,2240321,2240353,2240386,2240449,2240481,2240513,2240545,2207905,2240578]),new Uint32Array([6291456,6291456,2202273,6291456,2202305,6291456,2202337,6291456,2202369,6291456,2202401,6291456,2202433,6291456,2202465,6291456]),new Uint32Array([0,23068672,23068672,18923394,23068672,18923458,18923522,18884099,18923586,18884195,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2201121,6291456,2201153,6291456,2201185,6291456,2201217,6291456,2201249,6291456,2201281,6291456,2201313,6291456,2201345,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456]),new Uint32Array([2211041,2211073,2211105,2211137,2211169,2211201,2211233,2211265,2211297,2211329,2211361,2211393,2211425,2211457,2211489,2211521]),new Uint32Array([2181825,6291456,2181857,6291456,2181889,6291456,2181921,6291456,2181953,6291456,2181985,6291456,2182017,6291456,2182049,6291456]),new Uint32Array([2162337,2097633,2097633,2097633,2097633,2132705,2132705,2132705,2132705,2097153,2097153,2097153,2097153,2133089,2133089,2133089]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,2148545,6291456,2173473,6291456,2148865,6291456,2173505,6291456,2173537,6291456,2173569,6291456,2149121,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,0,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0]),new Uint32Array([2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889,2173921,2173953,2173985,2174017,2174017,2174049,2174081,2174113]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2207137,2207169,2207201,2207233,2207265,2207297,2207329,2207361,2207393,2207425,2207457,2207489,2207521,2207553,2207585,2207617]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,6291456,6291456,0,23068672,23068672,0,0,0,0,0,0]),new Uint32Array([2198401,2198433,2198465,2198497,0,2198529,2198561,2198593,2198625,2198657,2198689,2198721,2198753,2198785,2198817,2198849]),new Uint32Array([2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,0,0]),new Uint32Array([2216385,2118721,2216417,2216449,2216481,2216513,2216545,2211233,2216577,2216609,2216641,2216673,2216705,2216737,2216737,2216769]),new Uint32Array([2216801,2216833,2216865,2216897,2216929,2216961,2216993,2215169,2217025,2217057,2217089,2217121,2217154,2217217,0,0]),new Uint32Array([2210593,2191809,2210625,2210657,2210689,2210721,2210753,2210785,2210817,2210849,2191297,2210881,2210913,2210945,2210977,2211009]),new Uint32Array([0,0,2105825,0,0,2111905,2105473,0,0,2112289,2108193,2112481,2112577,0,2098305,2108321]),new Uint32Array([0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,2097153,2134241,0,2132705,0,0,2131297,0,2133089,0,2133857,0,2220769,0,2235361]),new Uint32Array([14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,6291456,6291456,14680064]),new Uint32Array([23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0]),new Uint32Array([2171873,6291456,2171905,6291456,2171937,6291456,2171969,6291456,2172001,6291456,2172033,6291456,2172065,6291456,2172097,6291456]),new Uint32Array([2220929,2220929,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2133857,2134145,2134145,2134145,2134145,2134241,2134241,2134241,2134241,2105889,2105889,2105889,2105889,2097185,2097185,2097185]),new Uint32Array([2173697,2173761,2173793,2174113,2173985,2173953,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,10499619,10499715,10499811,10499907]),new Uint32Array([0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,0,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,0,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,2144322,2144386,2144450,2144514,2144578,2144642,2144706,2144770]),new Uint32Array([23068672,23068672,23068672,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456]),new Uint32Array([2113153,2108481,2113345,2113441,2098209,2111137,0,2098241,2108353,2108417,2105825,0,0,2111905,2105473,2105569]),new Uint32Array([2236321,2236353,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2152194,2121283,2103684,2103812,2097986,2098533,2097990,2098693,2098595,2098853,2099013,2103940,2121379,2121475,2121571,2104068]),new Uint32Array([2206241,2206273,2206305,2206337,2206369,2206401,2206433,2206465,2206497,2206529,2206561,2206593,2206625,2206657,2206689,2206721]),new Uint32Array([6291456,6291456,6291456,6291456,16777216,16777216,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,23068672,23068672,10538818,10538882,6291456,6291456,2150338]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2214369,2214401,2214433,2214465,2214497,2214529,2214561,2214593,2194977,2214625,2195073,2214657,2214689,2214721,6291456,6291456]),new Uint32Array([2097152,2097152,2097152,2097152,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2182081,6291456,2182113,6291456,2182145,6291456,2182177,6291456,2182209,6291456,2182241,6291456,2182273,6291456,2182305,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2146881,2146945,2147009,2147073,2147137,2147201,2147265,2147329]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,23068672,23068672]),new Uint32Array([0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2122915,2123011,2123107,2104708,2123203,2123299,2123395,2100133,2104836,2100290,2100293,2104962,2104964,2098052,2123491,2123587]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456]),new Uint32Array([6291456,2171169,6291456,2171201,6291456,2171233,6291456,2171265,6291456,2171297,6291456,2171329,6291456,6291456,2171361,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,2148994,2149058,2149122,0,6291456,2149186,2186945,2173537,2148993,2149121,2149058,10531458,10496066,0]),new Uint32Array([2195009,2195041,2195073,2195105,2195137,2195169,2195201,2195233,2195265,2195297,2195329,2195361,2195393,2195425,2195457,2195489]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,0,0,6291456,6291456]),new Uint32Array([2182849,6291456,2182881,6291456,2182913,6291456,2182945,6291456,2182977,6291456,2183009,6291456,2183041,6291456,2183073,6291456]),new Uint32Array([2211553,2210081,2211585,2211617,2211649,2211681,2211713,2211745,2211777,2211809,2209569,2211841,2211873,2211905,2211937,2211969]),new Uint32Array([2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2166594,2127298,2166658,2142978,2141827,2166722]),new Uint32Array([2173985,2173761,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233057,2148481,2173601,2173633,2173665,2173697,2173729]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,2185761,2185793,2185825,2185857,2185889,2185921,0,0]),new Uint32Array([6291456,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889,2173921]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,6291456]),new Uint32Array([0,0,0,2220961,2220961,2220961,2220961,2144193,2144193,2159201,2159201,2159265,2159265,2144194,2220993,2220993]),new Uint32Array([2192641,2235393,2235425,2152257,2116609,2235457,2235489,2200065,2235521,2235553,2235585,2212449,2235617,2235649,2235681,2235713]),new Uint32Array([2194049,2194081,2194113,2194145,2194177,2194209,2194241,2194273,2194305,2194337,2194369,2194401,2194433,2194465,2194497,2194529]),new Uint32Array([2196673,2208641,2208673,2208705,2208737,2208769,2208801,2208833,2208865,2208897,2208929,2208961,2208993,2209025,2209057,2209089]),new Uint32Array([2191681,2191713,2191745,2191777,2153281,2191809,2191841,2191873,2191905,2191937,2191969,2192001,2192033,2192065,2192097,2192129]),new Uint32Array([2230946,2231010,2231074,2231138,2231202,2231266,2231330,2231394,2231458,2231522,2231586,2231650,2231714,2231778,2231842,2231906]),new Uint32Array([14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2185953,2185985,2186017,2186049,2186081,2186113,2186145,2186177]),new Uint32Array([2139811,2139907,2097284,2105860,2105988,2106116,2106244,2097444,2097604,2097155,10485778,10486344,2106372,6291456,0,0]),new Uint32Array([2110051,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2172385,6291456,2172417,6291456,2172449,6291456,2172481,6291456,2172513,6291456,2172545,6291456,2172577,6291456,2172609,6291456]),new Uint32Array([0,0,23068672,23068672,6291456,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2249345,2249377,2249409,2249441,2249473,2249505,2249537,2249570,2210209,2249633,2249665,2249697,2249729,2249761,2249793,2216769]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,6291456,6291456,6291456,6291456]),new Uint32Array([2187169,2187201,2187233,2187265,2187297,2187329,2187361,2187393,2187425,2187457,2187489,2187521,2187553,2187585,2187617,2187649]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,0,6291456,6291456,0,0,0,6291456,6291456,6291456,0,0,0,6291456,6291456]),new Uint32Array([2182337,6291456,2182369,6291456,2182401,6291456,2182433,6291456,2182465,6291456,2182497,6291456,2182529,6291456,2182561,6291456]),new Uint32Array([2138179,2138275,2138371,2138467,2134243,2134435,2138563,2138659,2138755,2138851,2138947,2139043,2138947,2138755,2139139,2139235]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0]),new Uint32Array([0,0,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2250498,2250562,2250625,2250657,2208321,2250689,2250721,2250753,2250785,2250817,2250849,2218945,2250881,2250913,2250945,0]),new Uint32Array([2170369,2105569,2098305,2108481,2173249,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456]),new Uint32Array([2100897,2111905,2105473,2105569,2105601,0,2108193,0,0,0,2098305,2108321,2108289,2100865,2113153,2108481]),new Uint32Array([2100897,2100897,2105569,2105569,6291456,2112289,2149826,6291456,6291456,2112481,2112577,2098177,2098177,2098177,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,6291456,6291456,6291456]),new Uint32Array([6291456,2169953,2169985,6291456,2170017,6291456,2170049,2170081,6291456,2170113,2170145,2170177,6291456,6291456,2170209,2170241]),new Uint32Array([6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2220641,2220641,2220673,2220673,2220673,2220673,2220705,2220705,2220705,2220705,2220737,2220737,2220737,2220737,2220769,2220769]),new Uint32Array([2127650,2127746,2127842,2127938,2128034,2128130,2128226,2128322,2128418,2127523,2127619,2127715,2127811,2127907,2128003,2128099]),new Uint32Array([2143969,2173793,2173825,2153473,2173857,2173889,2173921,2173953,2173985,2173761,2174017,2174049,2174081,2174113,2174145,2174177]),new Uint32Array([0,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2204705,2204737,2204769,2204801,2204833,2204865,2204897,2204929,2204961,2204993,2205025,2205057,2205089,2205121,2205153,2205185]),new Uint32Array([2176385,6291456,2176417,6291456,2176449,6291456,2176481,6291456,2176513,6291456,2176545,6291456,2176577,6291456,2176609,6291456]),new Uint32Array([2195521,2195553,2195585,2195617,2195649,2195681,2117857,2195713,2195745,2195777,2195809,2195841,2195873,2195905,2195937,2195969]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456]),new Uint32Array([2173921,2173953,2173985,2174017,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233089,2173697,2173761,2173793,2174113]),new Uint32Array([2131586,2132450,2135970,2135778,2161602,2136162,2163650,2161794,2135586,2163714,2137186,2131810,2160290,2135170,2097506,2159554]),new Uint32Array([2134145,2097153,2134241,2105953,2132705,2130977,2160065,2131297,2162049,2133089,2160577,2133857,0,0,0,0]),new Uint32Array([2116513,2116609,2116705,2116801,2116897,2116993,2117089,2117185,2117281,2117377,2117473,2117569,2117665,2117761,2117857,2117953]),new Uint32Array([2100737,2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209,2100802,2101154,2101282,2101410,2101538,2101666,2101794]),new Uint32Array([2100289,2098657,2098049,2200737,2123489,2123681,2200769,2098625,2100321,2098145,2100449,2098017,2098753,2098977,2150241,2150305]),new Uint32Array([6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,2109955,6291456,6291456,0,0,0,0]),new Uint32Array([18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,6291456,0,0]),new Uint32Array([2130979,2131075,2131075,2131171,2131267,2131363,2131459,2131555,2131651,2131651,2131747,2131843,2131939,2132035,2132131,2132227]),new Uint32Array([0,2177793,6291456,2177825,6291456,2177857,6291456,2177889,6291456,2177921,6291456,2177953,6291456,2177985,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2113345,0,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289]),new Uint32Array([2136643,2136739,2136835,2136931,2137027,2137123,2137219,2137315,2137411,2137507,2137603,2137699,2137795,2137891,2137987,2138083]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([2174433,6291456,2174465,6291456,2174497,6291456,2174529,6291456,2174561,6291456,2174593,6291456,2174625,6291456,2174657,6291456]),new Uint32Array([0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441]),new Uint32Array([10496547,10496643,2105505,2149698,6291456,10496739,10496835,2170273,6291456,2149762,2105825,2111713,2111713,2111713,2111713,2168673]),new Uint32Array([6291456,2143490,2143490,2143490,2171649,6291456,2171681,2171713,2171745,6291456,2171777,6291456,2171809,6291456,2171841,6291456]),new Uint32Array([2159106,2159106,2159170,2159170,2159234,2159234,2159298,2159298,2159298,2159362,2159362,2159362,2106401,2106401,2106401,2106401]),new Uint32Array([2105601,2112289,2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137]),new Uint32Array([2108417,2181217,2181249,2181281,2170433,2170401,2181313,2181345,2181377,2181409,2181441,2181473,2181505,2181537,2170529,2181569]),new Uint32Array([2218433,2245761,2245793,2245825,2245857,2245890,2245953,2245986,2209665,2246050,2246113,2246146,2246210,2246274,2246337,2246369]),new Uint32Array([2230754,2230818,2230882,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,0,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2184129,6291456,2184161,6291456,2184193,6291456,6291456,6291456,6291456,6291456,2146818,2183361,6291456,6291456,2142978,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2135170,2097506,2130691,2130787,2130883,2163970,2164034,2164098,2164162,2164226,2164290,2164354,2164418,2164482,2164546,2133122]),new Uint32Array([2108515,2108611,2100740,2108707,2108803,2108899,2108995,2109091,2109187,2109283,2109379,2109475,2109571,2109667,2109763,2100738]),new Uint32Array([2102788,2102916,2103044,2120515,2103172,2120611,2120707,2098373,2103300,2120803,2120899,2120995,2103428,2103556,2121091,2121187]),new Uint32Array([2158082,2158146,0,2158210,2158274,0,2158338,2158402,2158466,2129922,2158530,2158594,2158658,2158722,2158786,2158850]),new Uint32Array([10499619,10499715,10499811,10499907,10500003,10500099,10500195,10500291,10500387,10500483,10500579,10500675,10500771,10500867,10500963,10501059]),new Uint32Array([2239585,2239618,2239681,2239713,0,2191969,2239745,2239777,2192033,2239809,2239841,2239874,2239937,2239970,2240033,2240065]),new Uint32Array([2252705,2252738,2252801,2252833,2252865,2252897,2252930,2252994,2253057,2253089,2253121,2253154,2253217,2253250,2219361,2219361]),new Uint32Array([2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,10538050,10538114,10538178,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2226402,2226466,2226530,2226594,2226658,2226722,2226786,2226850,2226914,2226978,2227042,2227106,2227170,2227234,2227298,2227362]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,2144066,2144130,2144194,2144258,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,6291456,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0]),new Uint32Array([2124674,2124770,2123875,2123971,2124067,2124163,2124259,2124355,2124451,2124547,2124643,2124739,2124835,2124931,2125027,2125123]),new Uint32Array([2168065,6291456,2168097,6291456,2168129,6291456,2168161,6291456,2168193,6291456,2168225,6291456,2168257,6291456,2168289,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0]),new Uint32Array([23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,2100610,2100611,6291456,2107842,2107843,6291456,6291456,6291456,6291456,10537922,6291456,10537986,6291456]),new Uint32Array([2174849,2174881,2174913,2174945,2174977,2175009,2175041,2175073,2175105,2175137,2175169,2175201,2175233,2175265,2175297,2175329]),new Uint32Array([2154562,2154626,2154690,2154754,2141858,2154818,2154882,2127298,2154946,2127298,2155010,2155074,2155138,2155202,2155266,2155202]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,23068672,0]),new Uint32Array([2200641,2150786,2150850,2150914,2150978,2151042,2106562,2151106,2150562,2151170,2151234,2151298,2151362,2151426,2151490,2151554]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,6291456,6291456]),new Uint32Array([2220289,2220289,2220321,2220321,2220321,2220321,2220353,2220353,2220353,2220353,2220385,2220385,2220385,2220385,2220417,2220417]),new Uint32Array([2155330,2155394,0,2155458,2155522,2155586,2105732,0,2155650,2155714,2155778,2125314,2155842,2155906,2126274,2155970]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,6291456,6291456,23068672,23068672,6291456,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0]),new Uint32Array([2097729,2106017,2106017,2106017,2106017,2131297,2131297,2131297,2131297,2106081,2106081,2162049,2162049,2105953,2105953,2162337]),new Uint32Array([2097185,2097697,2097697,2097697,2097697,2135777,2135777,2135777,2135777,2097377,2097377,2097377,2097377,2097601,2097601,2097217]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23068672]),new Uint32Array([2139331,2139427,2139523,2139043,2133571,2132611,2139619,2139715,0,0,0,0,0,0,0,0]),new Uint32Array([2174113,2174145,2100897,2098177,2108289,2100865,2173601,2173633,2173985,2174113,2174145,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,23068672,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,18923778,23068672,23068672,23068672,23068672,18923842,23068672,23068672,23068672,23068672,18923906,23068672,23068672,23068672]),new Uint32Array([2134145,2097153,2134241,0,2132705,2130977,2160065,2131297,0,2133089,0,2133857,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2177537,6291456,2177569,6291456,2177601,6291456,2177633,6291456,2177665,6291456,2177697,6291456,2177729,6291456,2177761,6291456]),new Uint32Array([2212481,2212513,2212545,2212577,2197121,2212609,2212641,2212673,2212705,2212737,2212769,2212801,2212833,2212865,2212897,2212929]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,6291456,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([2098241,2108353,2170209,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,6291456,2108193,2172417,2112481,2098177]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456])],t=new Uint16Array([616,616,565,147,161,411,330,2,131,131,328,454,241,408,86,86,696,113,285,350,325,301,473,214,639,232,447,64,369,598,124,672,567,223,621,154,107,86,86,86,86,86,86,505,86,68,634,86,218,218,218,218,486,218,218,513,188,608,216,86,217,463,668,85,700,360,184,86,86,86,647,402,153,10,346,718,662,260,145,298,117,1,443,342,138,54,563,86,240,572,218,70,387,86,118,460,641,602,86,86,306,218,86,692,86,86,86,86,86,162,707,86,458,26,86,218,638,86,86,86,86,86,65,449,86,86,306,183,86,58,391,667,86,157,131,131,131,131,86,433,131,406,31,218,247,86,86,693,218,581,351,86,438,295,69,462,45,126,173,650,14,295,69,97,168,187,641,78,523,390,69,108,287,664,173,219,83,295,69,108,431,426,173,694,412,115,628,52,257,398,641,118,501,121,69,579,151,423,173,620,464,121,69,382,151,476,173,27,53,121,86,594,578,226,173,86,632,130,86,96,228,268,641,622,563,86,86,21,148,650,131,131,321,43,144,343,381,531,131,131,178,20,86,399,156,375,164,541,30,60,715,198,92,118,131,131,86,86,306,407,86,280,457,196,488,358,131,131,244,86,86,143,86,86,86,86,86,667,563,86,86,86,86,86,86,86,86,86,86,86,86,86,336,363,86,86,336,86,86,380,678,67,86,86,86,678,86,86,86,512,86,307,86,708,86,86,86,86,86,528,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,563,307,86,86,86,86,86,104,450,337,86,720,86,32,450,397,86,86,86,587,218,558,708,708,293,708,86,86,86,86,86,694,205,86,8,86,86,86,86,549,86,667,697,697,679,86,458,460,86,86,650,86,708,543,86,86,86,245,86,86,86,140,218,127,708,708,458,197,131,131,131,131,500,86,86,483,251,86,306,510,515,86,722,86,86,86,65,201,86,86,483,580,470,86,86,86,368,131,131,131,694,114,110,555,86,86,123,721,163,142,713,418,86,317,675,209,218,218,218,371,545,592,629,490,603,199,46,320,525,680,310,279,388,111,42,252,593,607,235,617,410,377,50,548,135,356,17,520,189,116,392,600,349,332,482,699,690,535,119,106,451,71,152,667,131,218,218,265,671,637,492,504,533,683,269,269,658,86,86,86,86,86,86,86,86,86,491,619,86,86,6,86,86,86,86,86,86,86,86,86,86,86,229,86,86,86,86,86,86,86,86,86,86,86,86,667,86,86,171,131,118,131,656,206,234,571,89,334,670,246,311,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,534,86,86,86,86,86,86,82,86,86,86,86,86,430,86,86,86,86,86,86,86,86,86,599,86,324,86,470,69,640,264,131,626,101,174,86,86,667,233,105,73,374,394,221,204,84,28,326,86,86,471,86,86,86,109,573,86,171,200,200,200,200,218,218,86,86,86,86,460,131,131,131,86,506,86,86,86,86,86,220,404,34,614,47,442,305,25,612,338,601,648,7,344,255,131,131,51,86,312,507,563,86,86,86,86,588,86,86,86,86,86,530,511,86,458,3,435,384,556,522,230,527,86,118,86,86,717,86,137,273,79,181,484,23,93,112,655,249,417,703,370,87,98,313,684,585,155,465,596,481,695,18,416,428,61,701,706,282,643,495,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,549,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,549,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,307,86,86,86,171,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,650,131,422,542,420,263,24,172,86,86,86,86,86,566,86,86,132,540,395,353,494,519,19,485,284,472,131,131,131,16,714,86,211,708,86,86,86,694,698,86,86,483,704,708,218,272,86,86,120,86,159,478,86,307,247,86,86,663,597,459,627,667,86,86,277,455,39,302,86,250,86,86,86,271,99,452,306,281,329,400,200,86,86,362,549,352,646,461,323,586,86,86,4,708,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,717,86,518,86,86,650,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,125,554,480,300,613,72,333,288,561,544,604,48,719,91,169,176,590,224,76,191,29,559,560,231,537,166,477,538,256,437,131,131,469,167,40,0,685,266,441,705,239,642,475,568,640,610,299,673,517,318,385,22,202,180,179,359,424,215,90,66,521,653,467,682,453,409,479,88,131,661,35,303,15,262,666,630,712,131,131,618,659,175,218,195,347,193,227,261,150,165,709,546,294,569,710,270,413,376,524,55,242,38,419,529,170,657,3,304,122,379,278,131,651,86,67,576,458,458,131,131,86,86,86,86,86,86,86,118,309,86,86,547,86,86,86,86,667,650,664,131,131,86,86,56,131,131,131,131,131,131,131,131,86,307,86,86,86,664,238,650,86,86,717,86,118,86,86,315,86,59,86,86,574,549,131,131,340,57,436,86,86,86,86,86,86,458,708,499,691,62,86,650,86,86,694,86,86,86,319,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,171,86,549,694,131,131,131,131,131,131,131,131,131,77,86,86,139,86,502,86,86,86,667,595,131,131,131,86,12,86,13,86,609,131,131,131,131,86,86,86,625,86,669,86,86,182,129,86,5,694,104,86,86,86,86,131,131,86,86,386,171,86,86,86,345,86,324,86,589,86,213,36,131,131,131,131,131,86,86,86,86,104,131,131,131,141,290,80,677,86,86,86,267,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,667,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,515,86,86,33,136,669,86,711,515,86,86,550,640,86,104,708,515,86,159,372,717,86,86,444,515,86,86,663,37,86,563,460,86,390,624,702,131,131,131,131,389,59,708,86,86,341,208,708,635,295,69,108,431,508,100,190,131,131,131,131,131,131,131,131,86,86,86,649,516,660,131,131,86,86,86,218,631,708,131,131,131,131,131,131,131,131,131,131,86,86,341,575,238,514,131,131,86,86,86,218,291,708,307,131,86,86,306,367,708,131,131,131,86,378,697,86,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,615,253,86,86,86,292,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,104,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,69,86,341,553,549,86,307,86,86,645,275,455,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,708,131,131,131,131,131,131,86,86,86,86,86,86,667,460,86,86,86,86,86,86,86,86,86,86,86,86,717,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,667,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,171,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,104,86,667,459,131,131,131,131,131,131,86,458,225,86,86,86,516,549,11,390,405,86,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,460,44,218,197,711,515,131,131,131,131,664,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,307,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,308,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,640,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,118,307,104,286,591,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,549,86,86,681,86,86,75,185,314,582,86,358,496,474,86,104,131,86,86,86,86,146,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,171,86,640,131,131,131,131,131,131,131,131,246,503,689,339,674,81,258,415,439,128,562,366,414,246,503,689,583,222,557,316,636,665,186,355,95,670,246,503,689,339,674,557,258,415,439,186,355,95,670,246,503,689,446,644,536,652,331,532,335,440,274,421,297,570,74,425,364,425,606,552,403,509,134,365,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,218,218,218,498,218,218,577,627,551,497,572,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,553,354,236,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,296,455,131,131,456,243,103,86,41,459,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,9,276,158,716,393,564,383,489,401,654,210,654,131,131,131,640,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,650,86,86,86,86,86,86,717,667,563,563,563,86,549,102,686,133,246,605,86,448,86,86,207,307,131,131,131,641,86,177,611,445,373,194,584,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,308,307,171,86,86,86,86,86,86,86,717,86,86,86,86,86,460,131,131,650,86,86,86,694,708,86,86,694,86,458,131,131,131,131,131,131,667,694,289,650,667,131,131,86,640,131,131,664,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,171,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,460,86,86,86,86,86,86,86,86,86,86,86,86,86,458,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,640,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,466,203,149,429,94,432,160,687,539,63,237,283,192,248,348,259,427,526,396,676,254,468,487,212,327,623,49,633,322,493,434,688,357,361,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131]);function n(n){return n>=196608?n>=917760&&n<=917999?18874368:0:e[t[n>>4]][15&n]}return{mapStr:"\u0635\u0644\u0649 \u0627\u0644\u0644\u0647 \u0639\u0644\u064a\u0647 \u0648\u0633\u0644\u0645\u062c\u0644 \u062c\u0644\u0627\u0644\u0647\u30ad\u30ed\u30e1\u30fc\u30c8\u30ebrad\u2215s2\u30a8\u30b9\u30af\u30fc\u30c9\u30ad\u30ed\u30b0\u30e9\u30e0\u30ad\u30ed\u30ef\u30c3\u30c8\u30b0\u30e9\u30e0\u30c8\u30f3\u30af\u30eb\u30bc\u30a4\u30ed\u30b5\u30f3\u30c1\u30fc\u30e0\u30d1\u30fc\u30bb\u30f3\u30c8\u30d4\u30a2\u30b9\u30c8\u30eb\u30d5\u30a1\u30e9\u30c3\u30c9\u30d6\u30c3\u30b7\u30a7\u30eb\u30d8\u30af\u30bf\u30fc\u30eb\u30de\u30f3\u30b7\u30e7\u30f3\u30df\u30ea\u30d0\u30fc\u30eb\u30ec\u30f3\u30c8\u30b2\u30f3\u2032\u2032\u2032\u20321\u204410viii(10)(11)(12)(13)(14)(15)(16)(17)(18)(19)(20)\u222b\u222b\u222b\u222b(\uc624\uc804)(\uc624\ud6c4)\u30a2\u30d1\u30fc\u30c8\u30a2\u30eb\u30d5\u30a1\u30a2\u30f3\u30da\u30a2\u30a4\u30cb\u30f3\u30b0\u30a8\u30fc\u30ab\u30fc\u30ab\u30e9\u30c3\u30c8\u30ab\u30ed\u30ea\u30fc\u30ad\u30e5\u30ea\u30fc\u30ae\u30eb\u30c0\u30fc\u30af\u30ed\u30fc\u30cd\u30b5\u30a4\u30af\u30eb\u30b7\u30ea\u30f3\u30b0\u30d0\u30fc\u30ec\u30eb\u30d5\u30a3\u30fc\u30c8\u30dd\u30a4\u30f3\u30c8\u30de\u30a4\u30af\u30ed\u30df\u30af\u30ed\u30f3\u30e1\u30ac\u30c8\u30f3\u30ea\u30c3\u30c8\u30eb\u30eb\u30fc\u30d6\u30eb\u682a\u5f0f\u4f1a\u793ekcalm\u2215s2c\u2215kg\u0627\u0643\u0628\u0631\u0645\u062d\u0645\u062f\u0635\u0644\u0639\u0645\u0631\u0633\u0648\u0644\u0631\u06cc\u0627\u06441\u204441\u204423\u20444 \u0308\u0301\u0fb2\u0f71\u0f80\u0fb3\u0f71\u0f80 \u0308\u0342 \u0313\u0300 \u0313\u0301 \u0313\u0342 \u0314\u0300 \u0314\u0301 \u0314\u0342 \u0308\u0300\u2035\u2035\u2035a/ca/sc/oc/utelfax1\u204471\u204491\u204432\u204431\u204452\u204453\u204454\u204451\u204465\u204461\u204483\u204485\u204487\u20448xii0\u20443\u222e\u222e\u222e(1)(2)(3)(4)(5)(6)(7)(8)(9)(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)(m)(n)(o)(p)(q)(r)(s)(t)(u)(v)(w)(x)(y)(z)::====(\u1100)(\u1102)(\u1103)(\u1105)(\u1106)(\u1107)(\u1109)(\u110b)(\u110c)(\u110e)(\u110f)(\u1110)(\u1111)(\u1112)(\uac00)(\ub098)(\ub2e4)(\ub77c)(\ub9c8)(\ubc14)(\uc0ac)(\uc544)(\uc790)(\ucc28)(\uce74)(\ud0c0)(\ud30c)(\ud558)(\uc8fc)(\u4e00)(\u4e8c)(\u4e09)(\u56db)(\u4e94)(\u516d)(\u4e03)(\u516b)(\u4e5d)(\u5341)(\u6708)(\u706b)(\u6c34)(\u6728)(\u91d1)(\u571f)(\u65e5)(\u682a)(\u6709)(\u793e)(\u540d)(\u7279)(\u8ca1)(\u795d)(\u52b4)(\u4ee3)(\u547c)(\u5b66)(\u76e3)(\u4f01)(\u8cc7)(\u5354)(\u796d)(\u4f11)(\u81ea)(\u81f3)pte10\u670811\u670812\u6708ergltd\u30a2\u30fc\u30eb\u30a4\u30f3\u30c1\u30a6\u30a9\u30f3\u30aa\u30f3\u30b9\u30aa\u30fc\u30e0\u30ab\u30a4\u30ea\u30ac\u30ed\u30f3\u30ac\u30f3\u30de\u30ae\u30cb\u30fc\u30b1\u30fc\u30b9\u30b3\u30eb\u30ca\u30b3\u30fc\u30dd\u30bb\u30f3\u30c1\u30c0\u30fc\u30b9\u30ce\u30c3\u30c8\u30cf\u30a4\u30c4\u30d1\u30fc\u30c4\u30d4\u30af\u30eb\u30d5\u30e9\u30f3\u30da\u30cb\u30d2\u30d8\u30eb\u30c4\u30da\u30f3\u30b9\u30da\u30fc\u30b8\u30d9\u30fc\u30bf\u30dc\u30eb\u30c8\u30dd\u30f3\u30c9\u30db\u30fc\u30eb\u30db\u30fc\u30f3\u30de\u30a4\u30eb\u30de\u30c3\u30cf\u30de\u30eb\u30af\u30e4\u30fc\u30c9\u30e4\u30fc\u30eb\u30e6\u30a2\u30f3\u30eb\u30d4\u30fc10\u70b911\u70b912\u70b913\u70b914\u70b915\u70b916\u70b917\u70b918\u70b919\u70b920\u70b921\u70b922\u70b923\u70b924\u70b9hpabardm2dm3khzmhzghzthzmm2cm2km2mm3cm3km3kpampagpalogmilmolppmv\u2215ma\u2215m10\u65e511\u65e512\u65e513\u65e514\u65e515\u65e516\u65e517\u65e518\u65e519\u65e520\u65e521\u65e522\u65e523\u65e524\u65e525\u65e526\u65e527\u65e528\u65e529\u65e530\u65e531\u65e5galffiffl\u05e9\u05bc\u05c1\u05e9\u05bc\u05c2 \u064c\u0651 \u064d\u0651 \u064e\u0651 \u064f\u0651 \u0650\u0651 \u0651\u0670\u0640\u064e\u0651\u0640\u064f\u0651\u0640\u0650\u0651\u062a\u062c\u0645\u062a\u062d\u062c\u062a\u062d\u0645\u062a\u062e\u0645\u062a\u0645\u062c\u062a\u0645\u062d\u062a\u0645\u062e\u062c\u0645\u062d\u062d\u0645\u064a\u062d\u0645\u0649\u0633\u062d\u062c\u0633\u062c\u062d\u0633\u062c\u0649\u0633\u0645\u062d\u0633\u0645\u062c\u0633\u0645\u0645\u0635\u062d\u062d\u0635\u0645\u0645\u0634\u062d\u0645\u0634\u062c\u064a\u0634\u0645\u062e\u0634\u0645\u0645\u0636\u062d\u0649\u0636\u062e\u0645\u0637\u0645\u062d\u0637\u0645\u0645\u0637\u0645\u064a\u0639\u062c\u0645\u0639\u0645\u0645\u0639\u0645\u0649\u063a\u0645\u0645\u063a\u0645\u064a\u063a\u0645\u0649\u0641\u062e\u0645\u0642\u0645\u062d\u0642\u0645\u0645\u0644\u062d\u0645\u0644\u062d\u064a\u0644\u062d\u0649\u0644\u062c\u062c\u0644\u062e\u0645\u0644\u0645\u062d\u0645\u062d\u062c\u0645\u062d\u064a\u0645\u062c\u062d\u0645\u062c\u0645\u0645\u062e\u0645\u0645\u062c\u062e\u0647\u0645\u062c\u0647\u0645\u0645\u0646\u062d\u0645\u0646\u062d\u0649\u0646\u062c\u0645\u0646\u062c\u0649\u0646\u0645\u064a\u0646\u0645\u0649\u064a\u0645\u0645\u0628\u062e\u064a\u062a\u062c\u064a\u062a\u062c\u0649\u062a\u062e\u064a\u062a\u062e\u0649\u062a\u0645\u064a\u062a\u0645\u0649\u062c\u0645\u064a\u062c\u062d\u0649\u062c\u0645\u0649\u0633\u062e\u0649\u0635\u062d\u064a\u0634\u062d\u064a\u0636\u062d\u064a\u0644\u062c\u064a\u0644\u0645\u064a\u064a\u062d\u064a\u064a\u062c\u064a\u064a\u0645\u064a\u0645\u0645\u064a\u0642\u0645\u064a\u0646\u062d\u064a\u0639\u0645\u064a\u0643\u0645\u064a\u0646\u062c\u062d\u0645\u062e\u064a\u0644\u062c\u0645\u0643\u0645\u0645\u062c\u062d\u064a\u062d\u062c\u064a\u0645\u062c\u064a\u0641\u0645\u064a\u0628\u062d\u064a\u0633\u062e\u064a\u0646\u062c\u064a\u0635\u0644\u06d2\u0642\u0644\u06d2\ud834\udd58\ud834\udd65\ud834\udd6e\ud834\udd58\ud834\udd65\ud834\udd6f\ud834\udd58\ud834\udd65\ud834\udd70\ud834\udd58\ud834\udd65\ud834\udd71\ud834\udd58\ud834\udd65\ud834\udd72\ud834\uddb9\ud834\udd65\ud834\udd6e\ud834\uddba\ud834\udd65\ud834\udd6e\ud834\uddb9\ud834\udd65\ud834\udd6f\ud834\uddba\ud834\udd65\ud834\udd6f\u3014s\u3015ppv\u3014\u672c\u3015\u3014\u4e09\u3015\u3014\u4e8c\u3015\u3014\u5b89\u3015\u3014\u70b9\u3015\u3014\u6253\u3015\u3014\u76d7\u3015\u3014\u52dd\u3015\u3014\u6557\u3015 \u0304 \u0301 \u0327ssi\u0307ijl\xb7\u02bcnd\u017eljnjdz \u0306 \u0307 \u030a \u0328 \u0303 \u030b \u03b9\u0565\u0582\u0627\u0674\u0648\u0674\u06c7\u0674\u064a\u0674\u0915\u093c\u0916\u093c\u0917\u093c\u091c\u093c\u0921\u093c\u0922\u093c\u092b\u093c\u092f\u093c\u09a1\u09bc\u09a2\u09bc\u09af\u09bc\u0a32\u0a3c\u0a38\u0a3c\u0a16\u0a3c\u0a17\u0a3c\u0a1c\u0a3c\u0a2b\u0a3c\u0b21\u0b3c\u0b22\u0b3c\u0e4d\u0e32\u0ecd\u0eb2\u0eab\u0e99\u0eab\u0ea1\u0f42\u0fb7\u0f4c\u0fb7\u0f51\u0fb7\u0f56\u0fb7\u0f5b\u0fb7\u0f40\u0fb5\u0f71\u0f72\u0f71\u0f74\u0fb2\u0f80\u0fb3\u0f80\u0f92\u0fb7\u0f9c\u0fb7\u0fa1\u0fb7\u0fa6\u0fb7\u0fab\u0fb7\u0f90\u0fb5a\u02be\u1f00\u03b9\u1f01\u03b9\u1f02\u03b9\u1f03\u03b9\u1f04\u03b9\u1f05\u03b9\u1f06\u03b9\u1f07\u03b9\u1f20\u03b9\u1f21\u03b9\u1f22\u03b9\u1f23\u03b9\u1f24\u03b9\u1f25\u03b9\u1f26\u03b9\u1f27\u03b9\u1f60\u03b9\u1f61\u03b9\u1f62\u03b9\u1f63\u03b9\u1f64\u03b9\u1f65\u03b9\u1f66\u03b9\u1f67\u03b9\u1f70\u03b9\u03b1\u03b9\u03ac\u03b9\u1fb6\u03b9 \u0342\u1f74\u03b9\u03b7\u03b9\u03ae\u03b9\u1fc6\u03b9\u1f7c\u03b9\u03c9\u03b9\u03ce\u03b9\u1ff6\u03b9 \u0333!! \u0305???!!?rs\xb0c\xb0fnosmtmivix\u2add\u0338 \u3099 \u309a\u3088\u308a\u30b3\u30c8333435\ucc38\uace0\uc8fc\uc758363738394042444546474849503\u67084\u67085\u67086\u67087\u67088\u67089\u6708hgev\u30ae\u30ac\u30c7\u30b7\u30c9\u30eb\u30ca\u30ce\u30d4\u30b3\u30d3\u30eb\u30da\u30bd\u30db\u30f3\u30ea\u30e9\u30ec\u30e0daauovpciu\u5e73\u6210\u662d\u548c\u5927\u6b63\u660e\u6cbbna\u03bcakakbmbgbpfnf\u03bcf\u03bcgmg\u03bclmldlklfmnm\u03bcmpsns\u03bcsmsnv\u03bcvkvpwnw\u03bcwmwkwk\u03c9m\u03c9bqcccddbgyhainkkktlnlxphprsrsvwbst\u0574\u0576\u0574\u0565\u0574\u056b\u057e\u0576\u0574\u056d\u05d9\u05b4\u05f2\u05b7\u05e9\u05c1\u05e9\u05c2\u05d0\u05b7\u05d0\u05b8\u05d0\u05bc\u05d1\u05bc\u05d2\u05bc\u05d3\u05bc\u05d4\u05bc\u05d5\u05bc\u05d6\u05bc\u05d8\u05bc\u05d9\u05bc\u05da\u05bc\u05db\u05bc\u05dc\u05bc\u05de\u05bc\u05e0\u05bc\u05e1\u05bc\u05e3\u05bc\u05e4\u05bc\u05e6\u05bc\u05e7\u05bc\u05e8\u05bc\u05ea\u05bc\u05d5\u05b9\u05d1\u05bf\u05db\u05bf\u05e4\u05bf\u05d0\u05dc\u0626\u0627\u0626\u06d5\u0626\u0648\u0626\u06c7\u0626\u06c6\u0626\u06c8\u0626\u06d0\u0626\u0649\u0626\u062c\u0626\u062d\u0626\u0645\u0626\u064a\u0628\u062c\u0628\u0645\u0628\u0649\u0628\u064a\u062a\u0649\u062a\u064a\u062b\u062c\u062b\u0645\u062b\u0649\u062b\u064a\u062e\u062d\u0636\u062c\u0636\u0645\u0637\u062d\u0638\u0645\u063a\u062c\u0641\u062c\u0641\u062d\u0641\u0649\u0641\u064a\u0642\u062d\u0642\u0649\u0642\u064a\u0643\u0627\u0643\u062c\u0643\u062d\u0643\u062e\u0643\u0644\u0643\u0649\u0643\u064a\u0646\u062e\u0646\u0649\u0646\u064a\u0647\u062c\u0647\u0649\u0647\u064a\u064a\u0649\u0630\u0670\u0631\u0670\u0649\u0670\u0626\u0631\u0626\u0632\u0626\u0646\u0628\u0632\u0628\u0646\u062a\u0631\u062a\u0632\u062a\u0646\u062b\u0631\u062b\u0632\u062b\u0646\u0645\u0627\u0646\u0631\u0646\u0632\u0646\u0646\u064a\u0631\u064a\u0632\u0626\u062e\u0626\u0647\u0628\u0647\u062a\u0647\u0635\u062e\u0646\u0647\u0647\u0670\u062b\u0647\u0633\u0647\u0634\u0647\u0637\u0649\u0637\u064a\u0639\u0649\u0639\u064a\u063a\u0649\u063a\u064a\u0633\u0649\u0633\u064a\u0634\u0649\u0634\u064a\u0635\u0649\u0635\u064a\u0636\u0649\u0636\u064a\u0634\u062e\u0634\u0631\u0633\u0631\u0635\u0631\u0636\u0631\u0627\u064b \u064b\u0640\u064b\u0640\u0651 \u0652\u0640\u0652\u0644\u0622\u0644\u0623\u0644\u0625\ud834\udd57\ud834\udd650,1,2,3,4,5,6,7,8,9,wzhvsdwcmcmddj\u307b\u304b\u30b3\u30b3\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf8\xf9\xfa\xfb\xfc\xfd\xfe\u0101\u0103\u0105\u0107\u0109\u010b\u010d\u010f\u0111\u0113\u0115\u0117\u0119\u011b\u011d\u011f\u0121\u0123\u0125\u0127\u0129\u012b\u012d\u012f\u0135\u0137\u013a\u013c\u013e\u0142\u0144\u0146\u0148\u014b\u014d\u014f\u0151\u0153\u0155\u0157\u0159\u015b\u015d\u015f\u0161\u0163\u0165\u0167\u0169\u016b\u016d\u016f\u0171\u0173\u0175\u0177\xff\u017a\u017c\u0253\u0183\u0185\u0254\u0188\u0256\u0257\u018c\u01dd\u0259\u025b\u0192\u0260\u0263\u0269\u0268\u0199\u026f\u0272\u0275\u01a1\u01a3\u01a5\u0280\u01a8\u0283\u01ad\u0288\u01b0\u028a\u028b\u01b4\u01b6\u0292\u01b9\u01bd\u01ce\u01d0\u01d2\u01d4\u01d6\u01d8\u01da\u01dc\u01df\u01e1\u01e3\u01e5\u01e7\u01e9\u01eb\u01ed\u01ef\u01f5\u0195\u01bf\u01f9\u01fb\u01fd\u01ff\u0201\u0203\u0205\u0207\u0209\u020b\u020d\u020f\u0211\u0213\u0215\u0217\u0219\u021b\u021d\u021f\u019e\u0223\u0225\u0227\u0229\u022b\u022d\u022f\u0231\u0233\u2c65\u023c\u019a\u2c66\u0242\u0180\u0289\u028c\u0247\u0249\u024b\u024d\u024f\u0266\u0279\u027b\u0281\u0295\u0371\u0373\u02b9\u0377;\u03f3\u03ad\u03af\u03cc\u03cd\u03b2\u03b3\u03b4\u03b5\u03b6\u03b8\u03ba\u03bb\u03bd\u03be\u03bf\u03c0\u03c1\u03c3\u03c4\u03c5\u03c6\u03c7\u03c8\u03ca\u03cb\u03d7\u03d9\u03db\u03dd\u03df\u03e1\u03e3\u03e5\u03e7\u03e9\u03eb\u03ed\u03ef\u03f8\u03fb\u037b\u037c\u037d\u0450\u0451\u0452\u0453\u0454\u0455\u0456\u0457\u0458\u0459\u045a\u045b\u045c\u045d\u045e\u045f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\u044f\u0461\u0463\u0465\u0467\u0469\u046b\u046d\u046f\u0471\u0473\u0475\u0477\u0479\u047b\u047d\u047f\u0481\u048b\u048d\u048f\u0491\u0493\u0495\u0497\u0499\u049b\u049d\u049f\u04a1\u04a3\u04a5\u04a7\u04a9\u04ab\u04ad\u04af\u04b1\u04b3\u04b5\u04b7\u04b9\u04bb\u04bd\u04bf\u04c2\u04c4\u04c6\u04c8\u04ca\u04cc\u04ce\u04d1\u04d3\u04d5\u04d7\u04d9\u04db\u04dd\u04df\u04e1\u04e3\u04e5\u04e7\u04e9\u04eb\u04ed\u04ef\u04f1\u04f3\u04f5\u04f7\u04f9\u04fb\u04fd\u04ff\u0501\u0503\u0505\u0507\u0509\u050b\u050d\u050f\u0511\u0513\u0515\u0517\u0519\u051b\u051d\u051f\u0521\u0523\u0525\u0527\u0529\u052b\u052d\u052f\u0561\u0562\u0563\u0564\u0566\u0567\u0568\u0569\u056a\u056c\u056e\u056f\u0570\u0571\u0572\u0573\u0575\u0577\u0578\u0579\u057a\u057b\u057c\u057d\u057f\u0580\u0581\u0583\u0584\u0585\u0586\u0f0b\u2d27\u2d2d\u10dc\u13f0\u13f1\u13f2\u13f3\u13f4\u13f5\ua64b\u0250\u0251\u1d02\u025c\u1d16\u1d17\u1d1d\u1d25\u0252\u0255\u025f\u0261\u0265\u026a\u1d7b\u029d\u026d\u1d85\u029f\u0271\u0270\u0273\u0274\u0278\u0282\u01ab\u1d1c\u0290\u0291\u1e01\u1e03\u1e05\u1e07\u1e09\u1e0b\u1e0d\u1e0f\u1e11\u1e13\u1e15\u1e17\u1e19\u1e1b\u1e1d\u1e1f\u1e21\u1e23\u1e25\u1e27\u1e29\u1e2b\u1e2d\u1e2f\u1e31\u1e33\u1e35\u1e37\u1e39\u1e3b\u1e3d\u1e3f\u1e41\u1e43\u1e45\u1e47\u1e49\u1e4b\u1e4d\u1e4f\u1e51\u1e53\u1e55\u1e57\u1e59\u1e5b\u1e5d\u1e5f\u1e61\u1e63\u1e65\u1e67\u1e69\u1e6b\u1e6d\u1e6f\u1e71\u1e73\u1e75\u1e77\u1e79\u1e7b\u1e7d\u1e7f\u1e81\u1e83\u1e85\u1e87\u1e89\u1e8b\u1e8d\u1e8f\u1e91\u1e93\u1e95\u1ea1\u1ea3\u1ea5\u1ea7\u1ea9\u1eab\u1ead\u1eaf\u1eb1\u1eb3\u1eb5\u1eb7\u1eb9\u1ebb\u1ebd\u1ebf\u1ec1\u1ec3\u1ec5\u1ec7\u1ec9\u1ecb\u1ecd\u1ecf\u1ed1\u1ed3\u1ed5\u1ed7\u1ed9\u1edb\u1edd\u1edf\u1ee1\u1ee3\u1ee5\u1ee7\u1ee9\u1eeb\u1eed\u1eef\u1ef1\u1ef3\u1ef5\u1ef7\u1ef9\u1efb\u1efd\u1eff\u1f10\u1f11\u1f12\u1f13\u1f14\u1f15\u1f30\u1f31\u1f32\u1f33\u1f34\u1f35\u1f36\u1f37\u1f40\u1f41\u1f42\u1f43\u1f44\u1f45\u1f51\u1f53\u1f55\u1f57\u1fb0\u1fb1\u1f72\u0390\u1fd0\u1fd1\u1f76\u03b0\u1fe0\u1fe1\u1f7a\u1fe5`\u1f78\u2010+\u2212\u2211\u3008\u3009\u2c30\u2c31\u2c32\u2c33\u2c34\u2c35\u2c36\u2c37\u2c38\u2c39\u2c3a\u2c3b\u2c3c\u2c3d\u2c3e\u2c3f\u2c40\u2c41\u2c42\u2c43\u2c44\u2c45\u2c46\u2c47\u2c48\u2c49\u2c4a\u2c4b\u2c4c\u2c4d\u2c4e\u2c4f\u2c50\u2c51\u2c52\u2c53\u2c54\u2c55\u2c56\u2c57\u2c58\u2c59\u2c5a\u2c5b\u2c5c\u2c5d\u2c5e\u2c61\u026b\u1d7d\u027d\u2c68\u2c6a\u2c6c\u2c73\u2c76\u023f\u0240\u2c81\u2c83\u2c85\u2c87\u2c89\u2c8b\u2c8d\u2c8f\u2c91\u2c93\u2c95\u2c97\u2c99\u2c9b\u2c9d\u2c9f\u2ca1\u2ca3\u2ca5\u2ca7\u2ca9\u2cab\u2cad\u2caf\u2cb1\u2cb3\u2cb5\u2cb7\u2cb9\u2cbb\u2cbd\u2cbf\u2cc1\u2cc3\u2cc5\u2cc7\u2cc9\u2ccb\u2ccd\u2ccf\u2cd1\u2cd3\u2cd5\u2cd7\u2cd9\u2cdb\u2cdd\u2cdf\u2ce1\u2ce3\u2cec\u2cee\u2cf3\u2d61\u6bcd\u9f9f\u4e28\u4e36\u4e3f\u4e59\u4e85\u4ea0\u4eba\u513f\u5165\u5182\u5196\u51ab\u51e0\u51f5\u5200\u529b\u52f9\u5315\u531a\u5338\u535c\u5369\u5382\u53b6\u53c8\u53e3\u56d7\u58eb\u5902\u590a\u5915\u5973\u5b50\u5b80\u5bf8\u5c0f\u5c22\u5c38\u5c6e\u5c71\u5ddb\u5de5\u5df1\u5dfe\u5e72\u5e7a\u5e7f\u5ef4\u5efe\u5f0b\u5f13\u5f50\u5f61\u5f73\u5fc3\u6208\u6236\u624b\u652f\u6534\u6587\u6597\u65a4\u65b9\u65e0\u66f0\u6b20\u6b62\u6b79\u6bb3\u6bcb\u6bd4\u6bdb\u6c0f\u6c14\u722a\u7236\u723b\u723f\u7247\u7259\u725b\u72ac\u7384\u7389\u74dc\u74e6\u7518\u751f\u7528\u7530\u758b\u7592\u7676\u767d\u76ae\u76bf\u76ee\u77db\u77e2\u77f3\u793a\u79b8\u79be\u7a74\u7acb\u7af9\u7c73\u7cf8\u7f36\u7f51\u7f8a\u7fbd\u8001\u800c\u8012\u8033\u807f\u8089\u81e3\u81fc\u820c\u821b\u821f\u826e\u8272\u8278\u864d\u866b\u8840\u884c\u8863\u897e\u898b\u89d2\u8a00\u8c37\u8c46\u8c55\u8c78\u8c9d\u8d64\u8d70\u8db3\u8eab\u8eca\u8f9b\u8fb0\u8fb5\u9091\u9149\u91c6\u91cc\u9577\u9580\u961c\u96b6\u96b9\u96e8\u9751\u975e\u9762\u9769\u97cb\u97ed\u97f3\u9801\u98a8\u98db\u98df\u9996\u9999\u99ac\u9aa8\u9ad8\u9adf\u9b25\u9b2f\u9b32\u9b3c\u9b5a\u9ce5\u9e75\u9e7f\u9ea5\u9ebb\u9ec3\u9ecd\u9ed1\u9ef9\u9efd\u9f0e\u9f13\u9f20\u9f3b\u9f4a\u9f52\u9f8d\u9f9c\u9fa0.\u3012\u5344\u5345\u1101\u11aa\u11ac\u11ad\u1104\u11b0\u11b1\u11b2\u11b3\u11b4\u11b5\u111a\u1108\u1121\u110a\u110d\u1161\u1162\u1163\u1164\u1165\u1166\u1167\u1168\u1169\u116a\u116b\u116c\u116d\u116e\u116f\u1170\u1171\u1172\u1173\u1174\u1175\u1114\u1115\u11c7\u11c8\u11cc\u11ce\u11d3\u11d7\u11d9\u111c\u11dd\u11df\u111d\u111e\u1120\u1122\u1123\u1127\u1129\u112b\u112c\u112d\u112e\u112f\u1132\u1136\u1140\u1147\u114c\u11f1\u11f2\u1157\u1158\u1159\u1184\u1185\u1188\u1191\u1192\u1194\u119e\u11a1\u4e0a\u4e2d\u4e0b\u7532\u4e19\u4e01\u5929\u5730\u554f\u5e7c\u7b8f\uc6b0\u79d8\u7537\u9069\u512a\u5370\u6ce8\u9805\u5199\u5de6\u53f3\u533b\u5b97\u591c\u30c6\u30cc\u30e2\u30e8\u30f0\u30f1\u30f2\ua641\ua643\ua645\ua647\ua649\ua64d\ua64f\ua651\ua653\ua655\ua657\ua659\ua65b\ua65d\ua65f\ua661\ua663\ua665\ua667\ua669\ua66b\ua66d\ua681\ua683\ua685\ua687\ua689\ua68b\ua68d\ua68f\ua691\ua693\ua695\ua697\ua699\ua69b\ua723\ua725\ua727\ua729\ua72b\ua72d\ua72f\ua733\ua735\ua737\ua739\ua73b\ua73d\ua73f\ua741\ua743\ua745\ua747\ua749\ua74b\ua74d\ua74f\ua751\ua753\ua755\ua757\ua759\ua75b\ua75d\ua75f\ua761\ua763\ua765\ua767\ua769\ua76b\ua76d\ua76f\ua77a\ua77c\u1d79\ua77f\ua781\ua783\ua785\ua787\ua78c\ua791\ua793\ua797\ua799\ua79b\ua79d\ua79f\ua7a1\ua7a3\ua7a5\ua7a7\ua7a9\u026c\u029e\u0287\uab53\ua7b5\ua7b7\uab37\uab52\u13a0\u13a1\u13a2\u13a3\u13a4\u13a5\u13a6\u13a7\u13a8\u13a9\u13aa\u13ab\u13ac\u13ad\u13ae\u13af\u13b0\u13b1\u13b2\u13b3\u13b4\u13b5\u13b6\u13b7\u13b8\u13b9\u13ba\u13bb\u13bc\u13bd\u13be\u13bf\u13c0\u13c1\u13c2\u13c3\u13c4\u13c5\u13c6\u13c7\u13c8\u13c9\u13ca\u13cb\u13cc\u13cd\u13ce\u13cf\u13d0\u13d1\u13d2\u13d3\u13d4\u13d5\u13d6\u13d7\u13d8\u13d9\u13da\u13db\u13dc\u13dd\u13de\u13df\u13e0\u13e1\u13e2\u13e3\u13e4\u13e5\u13e6\u13e7\u13e8\u13e9\u13ea\u13eb\u13ec\u13ed\u13ee\u13ef\u8c48\u66f4\u8cc8\u6ed1\u4e32\u53e5\u5951\u5587\u5948\u61f6\u7669\u7f85\u863f\u87ba\u88f8\u908f\u6a02\u6d1b\u70d9\u73de\u843d\u916a\u99f1\u4e82\u5375\u6b04\u721b\u862d\u9e1e\u5d50\u6feb\u85cd\u8964\u62c9\u81d8\u881f\u5eca\u6717\u6d6a\u72fc\u90ce\u4f86\u51b7\u52de\u64c4\u6ad3\u7210\u76e7\u8606\u865c\u8def\u9732\u9b6f\u9dfa\u788c\u797f\u7da0\u83c9\u9304\u8ad6\u58df\u5f04\u7c60\u807e\u7262\u78ca\u8cc2\u96f7\u58d8\u5c62\u6a13\u6dda\u6f0f\u7d2f\u7e37\u964b\u52d2\u808b\u51dc\u51cc\u7a1c\u7dbe\u83f1\u9675\u8b80\u62cf\u8afe\u4e39\u5be7\u6012\u7387\u7570\u5317\u78fb\u4fbf\u5fa9\u4e0d\u6ccc\u6578\u7d22\u53c3\u585e\u7701\u8449\u8aaa\u6bba\u6c88\u62fe\u82e5\u63a0\u7565\u4eae\u5169\u51c9\u6881\u7ce7\u826f\u8ad2\u91cf\u52f5\u5442\u5eec\u65c5\u6ffe\u792a\u95ad\u9a6a\u9e97\u9ece\u66c6\u6b77\u8f62\u5e74\u6190\u6200\u649a\u6f23\u7149\u7489\u79ca\u7df4\u806f\u8f26\u84ee\u9023\u934a\u5217\u52a3\u54bd\u70c8\u88c2\u5ec9\u5ff5\u637b\u6bae\u7c3e\u7375\u4ee4\u56f9\u5dba\u601c\u73b2\u7469\u7f9a\u8046\u9234\u96f6\u9748\u9818\u4f8b\u79ae\u91b4\u96b8\u60e1\u4e86\u50da\u5bee\u5c3f\u6599\u71ce\u7642\u84fc\u907c\u6688\u962e\u5289\u677b\u67f3\u6d41\u6e9c\u7409\u7559\u786b\u7d10\u985e\u622e\u9678\u502b\u5d19\u6dea\u8f2a\u5f8b\u6144\u6817\u9686\u5229\u540f\u5c65\u6613\u674e\u68a8\u6ce5\u7406\u75e2\u7f79\u88cf\u88e1\u96e2\u533f\u6eba\u541d\u71d0\u7498\u85fa\u96a3\u9c57\u9e9f\u6797\u6dcb\u81e8\u7b20\u7c92\u72c0\u7099\u8b58\u4ec0\u8336\u523a\u5207\u5ea6\u62d3\u7cd6\u5b85\u6d1e\u66b4\u8f3b\u964d\u5ed3\u5140\u55c0\u585a\u6674\u51de\u732a\u76ca\u793c\u795e\u7965\u798f\u9756\u7cbe\u8612\u8af8\u9038\u90fd\u98ef\u98fc\u9928\u9db4\u90de\u96b7\u4fae\u50e7\u514d\u52c9\u52e4\u5351\u559d\u5606\u5668\u5840\u58a8\u5c64\u6094\u6168\u618e\u61f2\u654f\u65e2\u6691\u6885\u6d77\u6e1a\u6f22\u716e\u722b\u7422\u7891\u7949\u7948\u7950\u7956\u798d\u798e\u7a40\u7a81\u7bc0\u7e09\u7e41\u7f72\u8005\u81ed\u8279\u8457\u8910\u8996\u8b01\u8b39\u8cd3\u8d08\u8fb6\u96e3\u97ff\u983b\u6075\ud850\udeee\u8218\u4e26\u51b5\u5168\u4f80\u5145\u5180\u52c7\u52fa\u5555\u5599\u55e2\u58b3\u5944\u5954\u5a62\u5b28\u5ed2\u5ed9\u5f69\u5fad\u60d8\u614e\u6108\u6160\u6234\u63c4\u641c\u6452\u6556\u671b\u6756\u6edb\u6ecb\u701e\u77a7\u7235\u72af\u7471\u7506\u753b\u761d\u761f\u76db\u76f4\u774a\u7740\u78cc\u7ab1\u7c7b\u7d5b\u7f3e\u8352\u83ef\u8779\u8941\u8986\u8abf\u8acb\u8aed\u8b8a\u8f38\u9072\u9199\u9276\u967c\u97db\u980b\u9b12\ud84a\udc4a\ud84a\udc44\ud84c\udfd5\u3b9d\u4018\u4039\ud854\ude49\ud857\udcd0\ud85f\uded3\u9f43\u9f8e\u05e2\u05dd\u0671\u067b\u067e\u0680\u067a\u067f\u0679\u06a4\u06a6\u0684\u0683\u0686\u0687\u068d\u068c\u068e\u0688\u0698\u0691\u06a9\u06af\u06b3\u06b1\u06ba\u06bb\u06c0\u06c1\u06be\u06d3\u06ad\u06cb\u06c5\u06c9\u3001\u3016\u3017\u2014\u2013_{}\u3010\u3011\u300a\u300b\u300c\u300d\u300e\u300f[]#&*-<>\\$%@\u0621\u0624\u0629\"'^|~\u2985\u2986\u30fb\u30a5\u30e3\xa2\xa3\xac\xa6\xa5\u20a9\u2502\u2190\u2191\u2192\u2193\u25a0\u25cb\ud801\udc28\ud801\udc29\ud801\udc2a\ud801\udc2b\ud801\udc2c\ud801\udc2d\ud801\udc2e\ud801\udc2f\ud801\udc30\ud801\udc31\ud801\udc32\ud801\udc33\ud801\udc34\ud801\udc35\ud801\udc36\ud801\udc37\ud801\udc38\ud801\udc39\ud801\udc3a\ud801\udc3b\ud801\udc3c\ud801\udc3d\ud801\udc3e\ud801\udc3f\ud801\udc40\ud801\udc41\ud801\udc42\ud801\udc43\ud801\udc44\ud801\udc45\ud801\udc46\ud801\udc47\ud801\udc48\ud801\udc49\ud801\udc4a\ud801\udc4b\ud801\udc4c\ud801\udc4d\ud801\udc4e\ud801\udc4f\ud801\udcd8\ud801\udcd9\ud801\udcda\ud801\udcdb\ud801\udcdc\ud801\udcdd\ud801\udcde\ud801\udcdf\ud801\udce0\ud801\udce1\ud801\udce2\ud801\udce3\ud801\udce4\ud801\udce5\ud801\udce6\ud801\udce7\ud801\udce8\ud801\udce9\ud801\udcea\ud801\udceb\ud801\udcec\ud801\udced\ud801\udcee\ud801\udcef\ud801\udcf0\ud801\udcf1\ud801\udcf2\ud801\udcf3\ud801\udcf4\ud801\udcf5\ud801\udcf6\ud801\udcf7\ud801\udcf8\ud801\udcf9\ud801\udcfa\ud801\udcfb\ud803\udcc0\ud803\udcc1\ud803\udcc2\ud803\udcc3\ud803\udcc4\ud803\udcc5\ud803\udcc6\ud803\udcc7\ud803\udcc8\ud803\udcc9\ud803\udcca\ud803\udccb\ud803\udccc\ud803\udccd\ud803\udcce\ud803\udccf\ud803\udcd0\ud803\udcd1\ud803\udcd2\ud803\udcd3\ud803\udcd4\ud803\udcd5\ud803\udcd6\ud803\udcd7\ud803\udcd8\ud803\udcd9\ud803\udcda\ud803\udcdb\ud803\udcdc\ud803\udcdd\ud803\udcde\ud803\udcdf\ud803\udce0\ud803\udce1\ud803\udce2\ud803\udce3\ud803\udce4\ud803\udce5\ud803\udce6\ud803\udce7\ud803\udce8\ud803\udce9\ud803\udcea\ud803\udceb\ud803\udcec\ud803\udced\ud803\udcee\ud803\udcef\ud803\udcf0\ud803\udcf1\ud803\udcf2\ud806\udcc0\ud806\udcc1\ud806\udcc2\ud806\udcc3\ud806\udcc4\ud806\udcc5\ud806\udcc6\ud806\udcc7\ud806\udcc8\ud806\udcc9\ud806\udcca\ud806\udccb\ud806\udccc\ud806\udccd\ud806\udcce\ud806\udccf\ud806\udcd0\ud806\udcd1\ud806\udcd2\ud806\udcd3\ud806\udcd4\ud806\udcd5\ud806\udcd6\ud806\udcd7\ud806\udcd8\ud806\udcd9\ud806\udcda\ud806\udcdb\ud806\udcdc\ud806\udcdd\ud806\udcde\ud806\udcdf\u0131\u0237\u2207\u2202\ud83a\udd22\ud83a\udd23\ud83a\udd24\ud83a\udd25\ud83a\udd26\ud83a\udd27\ud83a\udd28\ud83a\udd29\ud83a\udd2a\ud83a\udd2b\ud83a\udd2c\ud83a\udd2d\ud83a\udd2e\ud83a\udd2f\ud83a\udd30\ud83a\udd31\ud83a\udd32\ud83a\udd33\ud83a\udd34\ud83a\udd35\ud83a\udd36\ud83a\udd37\ud83a\udd38\ud83a\udd39\ud83a\udd3a\ud83a\udd3b\ud83a\udd3c\ud83a\udd3d\ud83a\udd3e\ud83a\udd3f\ud83a\udd40\ud83a\udd41\ud83a\udd42\ud83a\udd43\u066e\u06a1\u066f\u5b57\u53cc\u591a\u89e3\u4ea4\u6620\u7121\u524d\u5f8c\u518d\u65b0\u521d\u7d42\u8ca9\u58f0\u5439\u6f14\u6295\u6355\u904a\u6307\u7981\u7a7a\u5408\u6e80\u7533\u5272\u55b6\u914d\u5f97\u53ef\u4e3d\u4e38\u4e41\ud840\udd22\u4f60\u4fbb\u5002\u507a\u5099\u50cf\u349e\ud841\ude3a\u5154\u5164\u5177\ud841\udd1c\u34b9\u5167\ud841\udd4b\u5197\u51a4\u4ecc\u51ac\ud864\udddf\u5203\u34df\u523b\u5246\u5277\u3515\u5305\u5306\u5349\u535a\u5373\u537d\u537f\ud842\ude2c\u7070\u53ca\u53df\ud842\udf63\u53eb\u53f1\u5406\u549e\u5438\u5448\u5468\u54a2\u54f6\u5510\u5553\u5563\u5584\u55ab\u55b3\u55c2\u5716\u5717\u5651\u5674\u58ee\u57ce\u57f4\u580d\u578b\u5832\u5831\u58ac\ud845\udce4\u58f2\u58f7\u5906\u5922\u5962\ud845\udea8\ud845\udeea\u59ec\u5a1b\u5a27\u59d8\u5a66\u36ee\u5b08\u5b3e\ud846\uddc8\u5bc3\u5bd8\u5bf3\ud846\udf18\u5bff\u5c06\u3781\u5c60\u5cc0\u5c8d\ud847\udde4\u5d43\ud847\udde6\u5d6e\u5d6b\u5d7c\u5de1\u5de2\u382f\u5dfd\u5e28\u5e3d\u5e69\u3862\ud848\udd83\u387c\u5eb0\u5eb3\u5eb6\ud868\udf92\ud848\udf31\u8201\u5f22\u38c7\ud84c\udeb8\ud858\uddda\u5f62\u5f6b\u38e3\u5f9a\u5fcd\u5fd7\u5ff9\u6081\u393a\u391c\ud849\uded4\u60c7\u6148\u614c\u617a\u61b2\u61a4\u61af\u61de\u621b\u625d\u62b1\u62d4\u6350\ud84a\udf0c\u633d\u62fc\u6368\u6383\u63e4\ud84a\udff1\u6422\u63c5\u63a9\u3a2e\u6469\u647e\u649d\u6477\u3a6c\u656c\ud84c\udc0a\u65e3\u66f8\u6649\u3b19\u3b08\u3ae4\u5192\u5195\u6700\u669c\u80ad\u43d9\u6721\u675e\u6753\ud84c\udfc3\u3b49\u67fa\u6785\u6852\ud84d\udc6d\u688e\u681f\u6914\u6942\u69a3\u69ea\u6aa8\ud84d\udea3\u6adb\u3c18\u6b21\ud84e\udca7\u6b54\u3c4e\u6b72\u6b9f\u6bbb\ud84e\ude8d\ud847\udd0b\ud84e\udefa\u6c4e\ud84f\udcbc\u6cbf\u6ccd\u6c67\u6d16\u6d3e\u6d69\u6d78\u6d85\ud84f\udd1e\u6d34\u6e2f\u6e6e\u3d33\u6ec7\ud84f\uded1\u6df9\u6f6e\ud84f\udf5e\ud84f\udf8e\u6fc6\u7039\u701b\u3d96\u704a\u707d\u7077\u70ad\ud841\udd25\u7145\ud850\ude63\u719c\u7228\u7250\ud851\ude08\u7280\u7295\ud851\udf35\ud852\udc14\u737a\u738b\u3eac\u73a5\u3eb8\u7447\u745c\u7485\u74ca\u3f1b\u7524\ud853\udc36\u753e\ud853\udc92\ud848\udd9f\u7610\ud853\udfa1\ud853\udfb8\ud854\udc44\u3ffc\u4008\ud854\udcf3\ud854\udcf2\ud854\udd19\ud854\udd33\u771e\u771f\u778b\u4046\u4096\ud855\udc1d\u784e\u40e3\ud855\ude26\ud855\ude9a\ud855\udec5\u79eb\u412f\u7a4a\u7a4f\ud856\udd7c\ud856\udea7\u4202\ud856\udfab\u7bc6\u7bc9\u4227\ud857\udc80\u7cd2\u42a0\u7ce8\u7ce3\u7d00\ud857\udf86\u7d63\u4301\u7dc7\u7e02\u7e45\u4334\ud858\ude28\ud858\ude47\u4359\ud858\uded9\u7f7a\ud858\udf3e\u7f95\u7ffa\ud859\udcda\ud859\udd23\u8060\ud859\udda8\u8070\ud84c\udf5f\u43d5\u80b2\u8103\u440b\u813e\u5ab5\ud859\udfa7\ud859\udfb5\ud84c\udf93\ud84c\udf9c\u8204\u8f9e\u446b\u8291\u828b\u829d\u52b3\u82b1\u82b3\u82bd\u82e6\ud85a\udf3c\u831d\u8363\u83ad\u8323\u83bd\u83e7\u8353\u83ca\u83cc\u83dc\ud85b\udc36\ud85b\udd6b\ud85b\udcd5\u452b\u84f1\u84f3\u8516\ud85c\udfca\u8564\ud85b\udf2c\u455d\u4561\ud85b\udfb1\ud85c\udcd2\u456b\u8650\u8667\u8669\u86a9\u8688\u870e\u86e2\u8728\u876b\u8786\u87e1\u8801\u45f9\u8860\ud85d\ude67\u88d7\u88de\u4635\u88fa\u34bb\ud85e\udcae\ud85e\udd66\u46be\u46c7\u8aa0\ud85f\udca8\u8cab\u8cc1\u8d1b\u8d77\ud85f\udf2f\ud842\udc04\u8dcb\u8dbc\u8df0\ud842\udcde\u8ed4\ud861\uddd2\ud861\udded\u9094\u90f1\u9111\ud861\udf2e\u911b\u9238\u92d7\u92d8\u927c\u93f9\u9415\ud862\udffa\u958b\u4995\u95b7\ud863\udd77\u49e6\u96c3\u5db2\u9723\ud864\udd45\ud864\ude1a\u4a6e\u4a76\u97e0\ud865\udc0a\u4ab2\ud865\udc96\u9829\ud865\uddb6\u98e2\u4b33\u9929\u99a7\u99c2\u99fe\u4bce\ud866\udf30\u9c40\u9cfd\u4cce\u4ced\u9d67\ud868\udcce\u4cf8\ud868\udd05\ud868\ude0e\ud868\ude91\u4d56\u9efe\u9f05\u9f0f\u9f16\ud869\ude00",mapChar:n}}()}.apply(t,[]))||(e.exports=n)},3093:(e,t,n)=>{"use strict";function r(e,t){let{format:n}=t;if(!n)return{};const r={};return function t(n){const i=Object.keys(n);for(const o of i)o in e&&(r[o]=e[o]),n[o]&&"object"===typeof n[o]&&!Array.isArray(n[o])&&t(n[o])}(n(e||{})),r}n.d(t,{o:()=>r})},3109:(e,t,n)=>{"use strict";t.I0=t.DH=t.NX=t.u8=t.cY=void 0,t.av=t.O6=t.w3=t.Wg=void 0;const r=n(4507);function i(e){if(!(e instanceof Uint8Array))throw new TypeError("b must be a Uint8Array")}function o(e){return i(e),r.Buffer.from(e.buffer,e.byteOffset,e.length)}class s{constructor(e,t){if(!Number.isInteger(e))throw new TypeError("span must be an integer");this.span=e,this.property=t}makeDestinationObject(){return{}}getSpan(e,t){if(0>this.span)throw new RangeError("indeterminate span");return this.span}replicate(e){const t=Object.create(this.constructor.prototype);return Object.assign(t,this),t.property=e,t}fromArray(e){}}function a(e,t){return t.property?e+"["+t.property+"]":e}class c extends s{isCount(){throw new Error("ExternalLayout is abstract")}}class l extends c{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1?arguments[1]:void 0;if(!Number.isInteger(e)||0>=e)throw new TypeError("elementSpan must be a (positive) integer");super(-1,t),this.elementSpan=e}isCount(){return!0}decode(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;i(e);const n=e.length-t;return Math.floor(n/this.elementSpan)}encode(e,t,n){return 0}}class u extends c{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;if(!(e instanceof s))throw new TypeError("layout must be a Layout");if(!Number.isInteger(t))throw new TypeError("offset must be integer or undefined");super(e.span,n||e.property),this.layout=e,this.offset=t}isCount(){return this.layout instanceof d||this.layout instanceof h}decode(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.layout.decode(e,t+this.offset)}encode(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.layout.encode(e,t,n+this.offset)}}class d extends s{constructor(e,t){if(super(e,t),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return o(e).readUIntLE(t,this.span)}encode(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return o(t).writeUIntLE(e,n,this.span),this.span}}class h extends s{constructor(e,t){if(super(e,t),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return o(e).readUIntBE(t,this.span)}encode(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return o(t).writeUIntBE(e,n,this.span),this.span}}class f extends s{constructor(e,t){if(super(e,t),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return o(e).readIntLE(t,this.span)}encode(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return o(t).writeIntLE(e,n,this.span),this.span}}class p extends s{constructor(e,t){if(super(e,t),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return o(e).readIntBE(t,this.span)}encode(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return o(t).writeIntBE(e,n,this.span),this.span}}const m=Math.pow(2,32);function g(e){const t=Math.floor(e/m);return{hi32:t,lo32:e-t*m}}function y(e,t){return e*m+t}class b extends s{constructor(e){super(8,e)}decode(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=o(e),r=n.readUInt32LE(t);return y(n.readUInt32LE(t+4),r)}encode(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=g(e),i=o(t);return i.writeUInt32LE(r.lo32,n),i.writeUInt32LE(r.hi32,n+4),8}}class v extends s{constructor(e){super(8,e)}decode(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=o(e);return y(n.readUInt32BE(t),n.readUInt32BE(t+4))}encode(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=g(e),i=o(t);return i.writeUInt32BE(r.hi32,n),i.writeUInt32BE(r.lo32,n+4),8}}class w extends s{constructor(e){super(8,e)}decode(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=o(e),r=n.readUInt32LE(t);return y(n.readInt32LE(t+4),r)}encode(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=g(e),i=o(t);return i.writeUInt32LE(r.lo32,n),i.writeInt32LE(r.hi32,n+4),8}}class _ extends s{constructor(e){super(8,e)}decode(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=o(e);return y(n.readInt32BE(t),n.readUInt32BE(t+4))}encode(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=g(e),i=o(t);return i.writeInt32BE(r.hi32,n),i.writeUInt32BE(r.lo32,n+4),8}}class x extends s{constructor(e){super(4,e)}decode(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return o(e).readFloatLE(t)}encode(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return o(t).writeFloatLE(e,n),4}}class A extends s{constructor(e){super(4,e)}decode(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return o(e).readFloatBE(t)}encode(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return o(t).writeFloatBE(e,n),4}}class k extends s{constructor(e){super(8,e)}decode(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return o(e).readDoubleLE(t)}encode(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return o(t).writeDoubleLE(e,n),8}}class E extends s{constructor(e){super(8,e)}decode(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return o(e).readDoubleBE(t)}encode(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return o(t).writeDoubleBE(e,n),8}}class S extends s{constructor(e,t,n){if(!(e instanceof s))throw new TypeError("elementLayout must be a Layout");if(!(t instanceof c&&t.isCount()||Number.isInteger(t)&&0<=t))throw new TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");let r=-1;!(t instanceof c)&&0<e.span&&(r=t*e.span),super(r,n),this.elementLayout=e,this.count=t}getSpan(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0<=this.span)return this.span;let n=0,r=this.count;if(r instanceof c&&(r=r.decode(e,t)),0<this.elementLayout.span)n=r*this.elementLayout.span;else{let i=0;for(;i<r;)n+=this.elementLayout.getSpan(e,t+n),++i}return n}decode(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=[];let r=0,i=this.count;for(i instanceof c&&(i=i.decode(e,t));r<i;)n.push(this.elementLayout.decode(e,t)),t+=this.elementLayout.getSpan(e,t),r+=1;return n}encode(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=this.elementLayout,i=e.reduce((e,i)=>e+r.encode(i,t,n+e),0);return this.count instanceof c&&this.count.encode(e.length,t,n),i}}class P extends s{constructor(e,t,n){if(!Array.isArray(e)||!e.reduce((e,t)=>e&&t instanceof s,!0))throw new TypeError("fields must be array of Layout instances");"boolean"===typeof t&&void 0===n&&(n=t,t=void 0);for(const o of e)if(0>o.span&&void 0===o.property)throw new Error("fields cannot contain unnamed variable-length layout");let r=-1;try{r=e.reduce((e,t)=>e+t.getSpan(),0)}catch(i){}super(r,t),this.fields=e,this.decodePrefixes=!!n}getSpan(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0<=this.span)return this.span;let n=0;try{n=this.fields.reduce((n,r)=>{const i=r.getSpan(e,t);return t+=i,n+i},0)}catch(r){throw new RangeError("indeterminate span")}return n}decode(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;i(e);const n=this.makeDestinationObject();for(const r of this.fields)if(void 0!==r.property&&(n[r.property]=r.decode(e,t)),t+=r.getSpan(e,t),this.decodePrefixes&&e.length===t)break;return n}encode(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=n;let i=0,o=0;for(const s of this.fields){let r=s.span;if(o=0<r?r:0,void 0!==s.property){const i=e[s.property];void 0!==i&&(o=s.encode(i,t,n),0>r&&(r=s.getSpan(t,n)))}i=n,n+=r}return i+o-r}fromArray(e){const t=this.makeDestinationObject();for(const n of this.fields)void 0!==n.property&&0<e.length&&(t[n.property]=e.shift());return t}layoutFor(e){if("string"!==typeof e)throw new TypeError("property must be string");for(const t of this.fields)if(t.property===e)return t}offsetOf(e){if("string"!==typeof e)throw new TypeError("property must be string");let t=0;for(const n of this.fields){if(n.property===e)return t;0>n.span?t=-1:0<=t&&(t+=n.span)}}}class C{constructor(e){this.property=e}decode(e,t){throw new Error("UnionDiscriminator is abstract")}encode(e,t,n){throw new Error("UnionDiscriminator is abstract")}}class I extends C{constructor(e,t){if(!(e instanceof c&&e.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");super(t||e.property||"variant"),this.layout=e}decode(e,t){return this.layout.decode(e,t)}encode(e,t,n){return this.layout.encode(e,t,n)}}class M extends s{constructor(e,t,n){let r;if(e instanceof d||e instanceof h)r=new I(new u(e));else if(e instanceof c&&e.isCount())r=new I(e);else{if(!(e instanceof C))throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");r=e}if(void 0===t&&(t=null),!(null===t||t instanceof s))throw new TypeError("defaultLayout must be null or a Layout");if(null!==t){if(0>t.span)throw new Error("defaultLayout must have constant span");void 0===t.property&&(t=t.replicate("content"))}let i=-1;t&&(i=t.span,0<=i&&(e instanceof d||e instanceof h)&&(i+=r.layout.span)),super(i,n),this.discriminator=r,this.usesPrefixDiscriminator=e instanceof d||e instanceof h,this.defaultLayout=t,this.registry={};let o=this.defaultGetSourceVariant.bind(this);this.getSourceVariant=function(e){return o(e)},this.configGetSourceVariant=function(e){o=e.bind(this)}}getSpan(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0<=this.span)return this.span;const n=this.getVariant(e,t);if(!n)throw new Error("unable to determine span for unrecognized variant");return n.getSpan(e,t)}defaultGetSourceVariant(e){if(Object.prototype.hasOwnProperty.call(e,this.discriminator.property)){if(this.defaultLayout&&this.defaultLayout.property&&Object.prototype.hasOwnProperty.call(e,this.defaultLayout.property))return;const t=this.registry[e[this.discriminator.property]];if(t&&(!t.layout||t.property&&Object.prototype.hasOwnProperty.call(e,t.property)))return t}else for(const t in this.registry){const n=this.registry[t];if(n.property&&Object.prototype.hasOwnProperty.call(e,n.property))return n}throw new Error("unable to infer src variant")}decode(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const r=this.discriminator,i=r.decode(e,n),o=this.registry[i];if(void 0===o){const o=this.defaultLayout;let s=0;this.usesPrefixDiscriminator&&(s=r.layout.span),t=this.makeDestinationObject(),t[r.property]=i,t[o.property]=o.decode(e,n+s)}else t=o.decode(e,n);return t}encode(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=this.getSourceVariant(e);if(void 0===r){const r=this.discriminator,i=this.defaultLayout;let o=0;return this.usesPrefixDiscriminator&&(o=r.layout.span),r.encode(e[r.property],t,n),o+i.encode(e[i.property],t,n+o)}return r.encode(e,t,n)}addVariant(e,t,n){const r=new T(this,e,t,n);return this.registry[e]=r,r}getVariant(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t=e instanceof Uint8Array?this.discriminator.decode(e,n):e,this.registry[t]}}class T extends s{constructor(e,t,n,r){if(!(e instanceof M))throw new TypeError("union must be a Union");if(!Number.isInteger(t)||0>t)throw new TypeError("variant must be a (non-negative) integer");if("string"===typeof n&&void 0===r&&(r=n,n=null),n){if(!(n instanceof s))throw new TypeError("layout must be a Layout");if(null!==e.defaultLayout&&0<=n.span&&n.span>e.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if("string"!==typeof r)throw new TypeError("variant must have a String property")}let i=e.span;0>e.span&&(i=n?n.span:0,0<=i&&e.usesPrefixDiscriminator&&(i+=e.discriminator.layout.span)),super(i,r),this.union=e,this.variant=t,this.layout=n||null}getSpan(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0<=this.span)return this.span;let n=0;this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span);let r=0;return this.layout&&(r=this.layout.getSpan(e,t+n)),n+r}decode(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=this.makeDestinationObject();if(this!==this.union.getVariant(e,t))throw new Error("variant mismatch");let r=0;return this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout?n[this.property]=this.layout.decode(e,t+r):this.property?n[this.property]=!0:this.union.usesPrefixDiscriminator&&(n[this.union.discriminator.property]=this.variant),n}encode(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=0;if(this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout&&!Object.prototype.hasOwnProperty.call(e,this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,t,n);let i=r;if(this.layout&&(this.layout.encode(e[this.property],t,n+r),i+=this.layout.getSpan(t,n+r),0<=this.union.span&&i>this.union.span))throw new Error("encoded variant overruns containing union");return i}fromArray(e){if(this.layout)return this.layout.fromArray(e)}}function O(e){return 0>e&&(e+=4294967296),e}class R extends s{constructor(e,t,n){if(!(e instanceof d||e instanceof h))throw new TypeError("word must be a UInt or UIntBE layout");if("string"===typeof t&&void 0===n&&(n=t,t=!1),4<e.span)throw new RangeError("word cannot exceed 32 bits");super(e.span,n),this.word=e,this.msb=!!t,this.fields=[];let r=0;this._packedSetValue=function(e){return r=O(e),this},this._packedGetValue=function(){return r}}decode(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=this.makeDestinationObject(),r=this.word.decode(e,t);this._packedSetValue(r);for(const i of this.fields)void 0!==i.property&&(n[i.property]=i.decode(e));return n}encode(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=this.word.decode(t,n);this._packedSetValue(r);for(const i of this.fields)if(void 0!==i.property){const t=e[i.property];void 0!==t&&i.encode(t)}return this.word.encode(this._packedGetValue(),t,n)}addField(e,t){const n=new B(this,e,t);return this.fields.push(n),n}addBoolean(e){const t=new N(this,e);return this.fields.push(t),t}fieldFor(e){if("string"!==typeof e)throw new TypeError("property must be string");for(const t of this.fields)if(t.property===e)return t}}class B{constructor(e,t,n){if(!(e instanceof R))throw new TypeError("container must be a BitStructure");if(!Number.isInteger(t)||0>=t)throw new TypeError("bits must be positive integer");const r=8*e.span,i=e.fields.reduce((e,t)=>e+t.bits,0);if(t+i>r)throw new Error("bits too long for span remainder ("+(r-i)+" of "+r+" remain)");this.container=e,this.bits=t,this.valueMask=(1<<t)-1,32===t&&(this.valueMask=4294967295),this.start=i,this.container.msb&&(this.start=r-i-t),this.wordMask=O(this.valueMask<<this.start),this.property=n}decode(e,t){return O(this.container._packedGetValue()&this.wordMask)>>>this.start}encode(e){if("number"!==typeof e||!Number.isInteger(e)||e!==O(e&this.valueMask))throw new TypeError(a("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);const t=this.container._packedGetValue(),n=O(e<<this.start);this.container._packedSetValue(O(t&~this.wordMask)|n)}}class N extends B{constructor(e,t){super(e,1,t)}decode(e,t){return!!super.decode(e,t)}encode(e){"boolean"===typeof e&&(e=+e),super.encode(e)}}class U extends s{constructor(e,t){if(!(e instanceof c&&e.isCount()||Number.isInteger(e)&&0<=e))throw new TypeError("length must be positive integer or an unsigned integer ExternalLayout");let n=-1;e instanceof c||(n=e),super(n,t),this.length=e}getSpan(e,t){let n=this.span;return 0>n&&(n=this.length.decode(e,t)),n}decode(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.span;return 0>n&&(n=this.length.decode(e,t)),o(e).slice(t,t+n)}encode(e,t,n){let r=this.length;if(this.length instanceof c&&(r=e.length),!(e instanceof Uint8Array&&r===e.length))throw new TypeError(a("Blob.encode",this)+" requires (length "+r+") Uint8Array as src");if(n+r>t.length)throw new RangeError("encoding overruns Uint8Array");const i=o(e);return o(t).write(i.toString("hex"),n,r,"hex"),this.length instanceof c&&this.length.encode(r,t,n),r}}class j extends s{constructor(e){super(-1,e)}getSpan(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;i(e);let n=t;for(;n<e.length&&0!==e[n];)n+=1;return 1+n-t}decode(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=this.getSpan(e,t);return o(e).slice(t,t+n-1).toString("utf-8")}encode(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;"string"!==typeof e&&(e=String(e));const i=r.Buffer.from(e,"utf8"),s=i.length;if(n+s>t.length)throw new RangeError("encoding overruns Buffer");const a=o(t);return i.copy(a,n),a[n+s]=0,s+1}}class L extends s{constructor(e,t){if("string"===typeof e&&void 0===t&&(t=e,e=void 0),void 0===e)e=-1;else if(!Number.isInteger(e))throw new TypeError("maxSpan must be an integer");super(-1,t),this.maxSpan=e}getSpan(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return i(e),e.length-t}decode(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=this.getSpan(e,t);if(0<=this.maxSpan&&this.maxSpan<n)throw new RangeError("text length exceeds maxSpan");return o(e).slice(t,t+n).toString("utf-8")}encode(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;"string"!==typeof e&&(e=String(e));const i=r.Buffer.from(e,"utf8"),s=i.length;if(0<=this.maxSpan&&this.maxSpan<s)throw new RangeError("text length exceeds maxSpan");if(n+s>t.length)throw new RangeError("encoding overruns Buffer");return i.copy(o(t),n),s}}class F extends s{constructor(e,t){super(0,t),this.value=e}decode(e,t){return this.value}encode(e,t,n){return 0}}t.cY=(e,t,n)=>new u(e,t,n),t.u8=e=>new d(1,e),t.NX=e=>new d(2,e),t.DH=e=>new d(4,e),t.I0=e=>new b(e),t.Wg=e=>new w(e),t.w3=(e,t,n)=>new P(e,t,n),t.O6=(e,t,n)=>new S(e,t,n),t.av=(e,t)=>new U(e,t)},3126:(e,t,n)=>{"use strict";n.d(t,{T:()=>xe});var r=n(9740),i=n(4223),o=n(8512),s=n(4015);const a=(0,o.A)(/^error ([a-zA-Z$_][a-zA-Z0-9$_]*)\((.*?)\)$/,{name:1,parameters:2});const c=(0,o.A)(/^event ([a-zA-Z$_][a-zA-Z0-9$_]*)\((.*?)\)$/,{name:1,parameters:2});const l=(0,o.A)(/^function ([a-zA-Z$_][a-zA-Z0-9$_]*)\((.*?)\)(?: (external|public{1}))?(?: (pure|view|nonpayable|payable{1}))?(?: returns\s?\((.*?)\))?$/,{name:1,parameters:2,scope:3,stateMutability:4,returns:5});const u=(0,o.A)(/^struct ([a-zA-Z$_][a-zA-Z0-9$_]*) \{(.*?)\}$/,{name:1,properties:2});function d(e){return u.test(e)}function h(e){return(0,s.Yv)(u,e)}const f=(0,o.A)(/^constructor\((.*?)\)(?:\s(payable{1}))?$/,{parameters:1,stateMutability:2});const p=(0,o.A)(/^fallback\(\) external(?:\s(payable{1}))?$/,{stateMutability:1});const m=/^receive\(\) external payable$/;new Set(["memory","indexed","storage","calldata"]);const g=new Set(["indexed"]),y=new Set(["calldata","memory","storage"]);class b extends Error{constructor(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=n.cause instanceof b?n.cause.details:null!==(t=n.cause)&&void 0!==t&&t.message?n.cause.message:n.details,i=n.cause instanceof b&&n.cause.docsPath||n.docsPath;super([e||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...i?["Docs: https://abitype.dev".concat(i)]:[],...r?["Details: ".concat(r)]:[],"Version: abitype@".concat("1.1.0")].join("\n")),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),n.cause&&(this.cause=n.cause),this.details=r,this.docsPath=i,this.metaMessages=n.metaMessages,this.shortMessage=e}}class v extends b{constructor(e){let{type:t}=e;super("Unknown type.",{metaMessages:['Type "'.concat(t,'" is not a valid ABI type. Perhaps you forgot to include a struct signature?')]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}class w extends b{constructor(e){let{type:t}=e;super("Unknown type.",{metaMessages:['Type "'.concat(t,'" is not a valid ABI type.')]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}class _ extends b{constructor(e){let{param:t}=e;super("Invalid ABI parameter.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class x extends b{constructor(e){let{param:t,name:n}=e;super("Invalid ABI parameter.",{details:t,metaMessages:['"'.concat(n,'" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html')]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}class A extends b{constructor(e){let{param:t,type:n,modifier:r}=e;super("Invalid ABI parameter.",{details:t,metaMessages:['Modifier "'.concat(r,'" not allowed').concat(n?' in "'.concat(n,'" type'):"",".")]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class k extends b{constructor(e){let{param:t,type:n,modifier:r}=e;super("Invalid ABI parameter.",{details:t,metaMessages:['Modifier "'.concat(r,'" not allowed').concat(n?' in "'.concat(n,'" type'):"","."),'Data location can only be specified for array, struct, or mapping types, but "'.concat(r,'" was given.')]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class E extends b{constructor(e){let{abiParameter:t}=e;super("Invalid ABI parameter.",{details:JSON.stringify(t,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}class S extends b{constructor(e){let{signature:t,type:n}=e;super("Invalid ".concat(n," signature."),{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class P extends b{constructor(e){let{signature:t}=e;super("Unknown signature.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class C extends b{constructor(e){let{signature:t}=e;super("Invalid struct signature.",{details:t,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}class I extends b{constructor(e){let{type:t}=e;super("Circular reference detected.",{metaMessages:['Struct "'.concat(t,'" is a circular reference.')]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}class M extends b{constructor(e){let{current:t,depth:n}=e;super("Unbalanced parentheses.",{metaMessages:['"'.concat(t.trim(),'" has too many ').concat(n>0?"opening":"closing"," parentheses.")],details:'Depth "'.concat(n,'"')}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}const T=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]);function O(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(e){return l.test(e)}(e))return function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=function(e){return(0,s.Yv)(l,e)}(e);if(!r)throw new S({signature:e,type:"function"});const i=j(r.parameters),o=[],a=i.length;for(let s=0;s<a;s++)o.push(U(i[s],{modifiers:y,structs:n,type:"function"}));const c=[];if(r.returns){const e=j(r.returns),t=e.length;for(let r=0;r<t;r++)c.push(U(e[r],{modifiers:y,structs:n,type:"function"}))}return{name:r.name,type:"function",stateMutability:null!==(t=r.stateMutability)&&void 0!==t?t:"nonpayable",inputs:o,outputs:c}}(e,t);if(function(e){return c.test(e)}(e))return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=function(e){return(0,s.Yv)(c,e)}(e);if(!n)throw new S({signature:e,type:"event"});const r=j(n.parameters),i=[],o=r.length;for(let s=0;s<o;s++)i.push(U(r[s],{modifiers:g,structs:t,type:"event"}));return{name:n.name,type:"event",inputs:i}}(e,t);if(function(e){return a.test(e)}(e))return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=function(e){return(0,s.Yv)(a,e)}(e);if(!n)throw new S({signature:e,type:"error"});const r=j(n.parameters),i=[],o=r.length;for(let s=0;s<o;s++)i.push(U(r[s],{structs:t,type:"error"}));return{name:n.name,type:"error",inputs:i}}(e,t);if(function(e){return f.test(e)}(e))return function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=function(e){return(0,s.Yv)(f,e)}(e);if(!r)throw new S({signature:e,type:"constructor"});const i=j(r.parameters),o=[],a=i.length;for(let s=0;s<a;s++)o.push(U(i[s],{structs:n,type:"constructor"}));return{type:"constructor",stateMutability:null!==(t=r.stateMutability)&&void 0!==t?t:"nonpayable",inputs:o}}(e,t);if(function(e){return p.test(e)}(e))return function(e){var t;const n=function(e){return(0,s.Yv)(p,e)}(e);if(!n)throw new S({signature:e,type:"fallback"});return{type:"fallback",stateMutability:null!==(t=n.stateMutability)&&void 0!==t?t:"nonpayable"}}(e);if(function(e){return m.test(e)}(e))return{type:"receive",stateMutability:"payable"};throw new P({signature:e})}const R=(0,o.A)(/^([a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)((?:\[\d*?\])+?)?(?:\s(calldata|indexed|memory|storage{1}))?(?:\s([a-zA-Z$_][a-zA-Z0-9$_]*))?$/,{type:1,array:2,modifier:3,name:4}),B=(0,o.A)(/^\((.+?)\)((?:\[\d*?\])+?)?(?:\s(calldata|indexed|memory|storage{1}))?(?:\s([a-zA-Z$_][a-zA-Z0-9$_]*))?$/,{type:1,array:2,modifier:3,name:4}),N=/^u?int$/;function U(e,t){var n,i;const o=function(e,t,n){let r="";if(n)for(const i of Object.entries(n)){if(!i)continue;let e="";for(const t of i[1])e+="[".concat(t.type).concat(t.name?":".concat(t.name):"","]");r+="(".concat(i[0],"{").concat(e,"})")}return t?"".concat(t,":").concat(e).concat(r):e}(e,null===t||void 0===t?void 0:t.type,null===t||void 0===t?void 0:t.structs);if(T.has(o))return T.get(o);const a=s.wj.test(e),c=(0,s.Yv)(a?B:R,e);if(!c)throw new _({param:e});if(c.name&&function(e){return"address"===e||"bool"===e||"function"===e||"string"===e||"tuple"===e||s.BD.test(e)||s.Ge.test(e)||F.test(e)}(c.name))throw new x({param:e,name:c.name});const l=c.name?{name:c.name}:{},u="indexed"===c.modifier?{indexed:!0}:{},d=null!==(n=null===t||void 0===t?void 0:t.structs)&&void 0!==n?n:{};let h,f={};if(a){h="tuple";const e=j(c.type),t=[],n=e.length;for(let r=0;r<n;r++)t.push(U(e[r],{structs:d}));f={components:t}}else if(c.type in d)h="tuple",f={components:d[c.type]};else if(N.test(c.type))h="".concat(c.type,"256");else if("address payable"===c.type)h="address";else if(h=c.type,"struct"!==(null===t||void 0===t?void 0:t.type)&&!L(h))throw new w({type:h});if(c.modifier){var p,m;if(null===t||void 0===t||null===(p=t.modifiers)||void 0===p||null===(m=p.has)||void 0===m||!m.call(p,c.modifier))throw new A({param:e,type:null===t||void 0===t?void 0:t.type,modifier:c.modifier});if(y.has(c.modifier)&&!function(e,t){return t||"bytes"===e||"string"===e||"tuple"===e}(h,!!c.array))throw new k({param:e,type:null===t||void 0===t?void 0:t.type,modifier:c.modifier})}const g=(0,r.A)((0,r.A)((0,r.A)({type:"".concat(h).concat(null!==(i=c.array)&&void 0!==i?i:"")},l),u),f);return T.set(o,g),g}function j(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const i=e.trim().length;for(let o=0;o<i;o++){const i=e[o],s=e.slice(o+1);switch(i){case",":return 0===r?j(s,[...t,n.trim()]):j(s,t,"".concat(n).concat(i),r);case"(":return j(s,t,"".concat(n).concat(i),r+1);case")":return j(s,t,"".concat(n).concat(i),r-1);default:return j(s,t,"".concat(n).concat(i),r)}}if(""===n)return t;if(0!==r)throw new M({current:n,depth:r});return t.push(n.trim()),t}function L(e){return"address"===e||"bool"===e||"function"===e||"string"===e||s.BD.test(e)||s.Ge.test(e)}const F=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;const D=(0,o.A)(/^([a-zA-Z$_][a-zA-Z0-9$_]*)((?:\[\d*?\])+?)?$/,{type:1,array:2});function z(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set;const i=[],o=e.length;for(let c=0;c<o;c++){const o=e[c];if(s.wj.test(o.type))i.push(o);else{const e=(0,s.Yv)(D,o.type);if(null===e||void 0===e||!e.type)throw new E({abiParameter:o});const{array:c,type:l}=e;if(l in t){var a;if(n.has(l))throw new I({type:l});i.push((0,r.A)((0,r.A)({},o),{},{type:"tuple".concat(null!==c&&void 0!==c?c:""),components:z(null!==(a=t[l])&&void 0!==a?a:[],t,new Set([...n,l]))}))}else{if(!L(l))throw new v({type:l});i.push(o)}}}return i}function q(e){const t=function(e){const t={},n=e.length;for(let s=0;s<n;s++){const n=e[s];if(!d(n))continue;const r=h(n);if(!r)throw new S({signature:n,type:"struct"});const i=r.properties.split(";"),o=[],a=i.length;for(let e=0;e<a;e++){const t=i[e].trim();if(!t)continue;const n=U(t,{type:"struct"});o.push(n)}if(!o.length)throw new C({signature:n});t[r.name]=o}const r={},i=Object.entries(t),o=i.length;for(let s=0;s<o;s++){const[e,n]=i[s];r[e]=z(n,t)}return r}(e),n=[],r=e.length;for(let i=0;i<r;i++){const r=e[i];d(r)||n.push(O(r,t))}return n}class H extends Error{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=(e=>{if(t.cause instanceof H){if(t.cause.details)return t.cause.details;if(t.cause.shortMessage)return t.cause.shortMessage}return t.cause&&"details"in t.cause&&"string"===typeof t.cause.details?t.cause.details:null!==(e=t.cause)&&void 0!==e&&e.message?t.cause.message:t.details})(),r=t.cause instanceof H&&t.cause.docsPath||t.docsPath,i="".concat("https://oxlib.sh").concat(null!==r&&void 0!==r?r:"");super([e||"An error occurred.",...t.metaMessages?["",...t.metaMessages]:[],...n||r?["",n?"Details: ".concat(n):void 0,r?"See: ".concat(i):void 0]:[]].filter(e=>"string"===typeof e).join("\n"),t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:"ox@".concat("0.1.1")}),this.cause=t.cause,this.details=n,this.docs=i,this.docsPath=r,this.shortMessage=e}walk(e){return W(this,e)}}function W(e,t){return null!==t&&void 0!==t&&t(e)?e:e&&"object"===typeof e&&"cause"in e&&e.cause?W(e.cause,t):t?null:e}function K(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{signed:n,size:r}=t,i=BigInt(e);let o;r?o=n?(1n<<8n*BigInt(r)-1n)-1n:2n**(8n*BigInt(r))-1n:"number"===typeof e&&(o=BigInt(Number.MAX_SAFE_INTEGER));const s="bigint"===typeof o&&n?-o-1n:0;if(o&&i>o||i<s){const t="bigint"===typeof e?"n":"";throw new V({max:o?"".concat(o).concat(t):void 0,min:"".concat(s).concat(t),signed:n,size:r,value:"".concat(e).concat(t)})}const a=(n&&i<0?(1n<<BigInt(8*r))+BigInt(i):i).toString(16),c="0x".concat(a);return r?$(c,r):c}function $(e,t){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{dir:n,size:r=32}=t;if(0===r)return e;const i=e.replace("0x","");if(i.length>2*r)throw new G({size:Math.ceil(i.length/2),targetSize:r,type:"Hex"});return"0x".concat(i["right"===n?"padEnd":"padStart"](2*r,"0"))}(e,{dir:"left",size:t})}class V extends H{constructor(e){let{max:t,min:n,signed:r,size:i,value:o}=e;super("Number `".concat(o,"` is not in safe").concat(i?" ".concat(8*i,"-bit"):"").concat(r?" signed":" unsigned"," integer range ").concat(t?"(`".concat(n,"` to `").concat(t,"`)"):"(above `".concat(n,"`)"))),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}}class G extends H{constructor(e){let{size:t,targetSize:n,type:r}=e;super("".concat(r.charAt(0).toUpperCase()).concat(r.slice(1).toLowerCase()," size (`").concat(t,"`) exceeds padding size (`").concat(n,"`).")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}}function J(e){return{address:e.address,amount:K(e.amount),index:K(e.index),validatorIndex:K(e.validatorIndex)}}var Z=n(625),Y=n(6351);const Q="0x82ad56cb";var X=n(9521),ee=n(8090),te=n(6583),ne=n(7131),re=n(7412),ie=n(1588),oe=n(7683),se=n(5210);const ae="/docs/contract/encodeDeployData";function ce(e){const{abi:t,args:n,bytecode:r}=e;if(!n||0===n.length)return r;const i=t.find(e=>"type"in e&&"constructor"===e.type);if(!i)throw new ie.YW({docsPath:ae});if(!("inputs"in i))throw new ie.YF({docsPath:ae});if(!i.inputs||0===i.inputs.length)throw new ie.YF({docsPath:ae});const o=(0,se.h)(i.inputs,n);return(0,oe.aP)([r,o])}var le=n(7871),ue=n(4617),de=n(4456),he=n(6600),fe=n(2580);const pe=["docsPath"];var me=n(3093),ge=n(4367),ye=n(6703),be=n(9187),ve=n(7278);const we=["account","authorizationList","batch","blockNumber","blockTag","accessList","blobs","blockOverrides","code","data","factory","factoryData","gas","gasPrice","maxFeePerBlobGas","maxFeePerGas","maxPriorityFeePerGas","nonce","to","value","stateOverride"],_e=["data","to"];async function xe(e,t){var o,s;const{account:a=e.account,authorizationList:c,batch:l=Boolean(null===(o=e.batch)||void 0===o?void 0:o.multicall),blockNumber:u,blockTag:d=(null!==(s=e.experimental_blockTag)&&void 0!==s?s:"latest"),accessList:h,blobs:f,blockOverrides:p,code:m,data:g,factory:y,factoryData:b,gas:v,gasPrice:w,maxFeePerBlobGas:_,maxFeePerGas:x,maxPriorityFeePerGas:A,nonce:k,to:E,value:S,stateOverride:P}=t,C=(0,i.A)(t,we),I=a?(0,Z.J)(a):void 0;if(m&&(y||b))throw new ee.C("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(m&&E)throw new ee.C("Cannot provide both `code` & `to` as parameters.");const M=m&&g,T=y&&b&&E&&g,O=M||T,R=M?Ae({code:m,data:g}):T?function(e){const{data:t,factory:n,factoryData:r,to:i}=e;return ce({abi:q(["constructor(address, bytes, address, bytes)"]),bytecode:X.WN,args:[i,t,n,r]})}({data:g,factory:y,factoryData:b,to:E}):g;try{var B;(0,ve.c)(t);const n=("bigint"===typeof u?(0,de.cK)(u):void 0)||d,o=p?function(e){return(0,r.A)((0,r.A)((0,r.A)((0,r.A)((0,r.A)((0,r.A)((0,r.A)((0,r.A)({},"bigint"===typeof e.baseFeePerGas&&{baseFeePerGas:K(e.baseFeePerGas)}),"bigint"===typeof e.blobBaseFee&&{blobBaseFee:K(e.blobBaseFee)}),"string"===typeof e.feeRecipient&&{feeRecipient:e.feeRecipient}),"bigint"===typeof e.gasLimit&&{gasLimit:K(e.gasLimit)}),"bigint"===typeof e.number&&{number:K(e.number)}),"bigint"===typeof e.prevRandao&&{prevRandao:K(e.prevRandao)}),"bigint"===typeof e.time&&{time:K(e.time)}),e.withdrawals&&{withdrawals:e.withdrawals.map(J)})}(p):void 0,s=(0,be.yH)(P),a=null===(B=e.chain)||void 0===B||null===(B=B.formatters)||void 0===B||null===(B=B.transactionRequest)||void 0===B?void 0:B.format,m=(a||ge.Bv)((0,r.A)((0,r.A)({},(0,me.o)(C,{format:a})),{},{accessList:h,account:I,authorizationList:c,blobs:f,data:R,gas:v,gasPrice:w,maxFeePerBlobGas:_,maxFeePerGas:x,maxPriorityFeePerGas:A,nonce:k,to:O?void 0:E,value:S}),"call");if(l&&function(e){let{request:t}=e;const{data:n,to:r}=t,o=(0,i.A)(t,_e);return!!n&&(!n.startsWith(Q)&&(!!r&&!(Object.values(o).filter(e=>"undefined"!==typeof e).length>0)))}({request:m})&&!s&&!o)try{return await async function(e,t){var n,i;const{batchSize:o=1024,deployless:s=!1,wait:a=0}="object"===typeof(null===(n=e.batch)||void 0===n?void 0:n.multicall)?e.batch.multicall:{},{blockNumber:c,blockTag:l=(null!==(i=e.experimental_blockTag)&&void 0!==i?i:"latest"),data:u,to:d}=t,h=(()=>{if(s)return null;if(t.multicallAddress)return t.multicallAddress;if(e.chain)return(0,ue.M)({blockNumber:c,chain:e.chain,contract:"multicall3"});throw new te.YE})(),f="bigint"===typeof c?(0,de.cK)(c):void 0,p=f||l,{schedule:m}=(0,ye.u)({id:"".concat(e.uid,".").concat(p),wait:a,shouldSplitBatch(e){const t=e.reduce((e,t)=>{let{data:n}=t;return e+(n.length-2)},0);return t>2*o},fn:async t=>{const n=t.map(e=>({allowFailure:!0,callData:e.data,target:e.to})),i=(0,le.p)({abi:Y.v2,args:[n],functionName:"aggregate3"}),o=await e.request({method:"eth_call",params:[(0,r.A)({},null===h?{data:Ae({code:X.Ez,data:i})}:{to:h,data:i}),p]});return(0,re.e)({abi:Y.v2,args:[n],functionName:"aggregate3",data:o||"0x"})}}),[{returnData:g,success:y}]=await m({data:u,to:d});if(!y)throw new ne.$S({data:g});return"0x"===g?{data:void 0}:{data:g}}(e,(0,r.A)((0,r.A)({},m),{},{blockNumber:u,blockTag:d}))}catch(N){if(!(N instanceof te.YE)&&!(N instanceof te.rj))throw N}const g=(()=>{const e=[m,n];return s&&o?[...e,s,o]:s?[...e,s]:o?[...e,{},o]:e})(),y=await e.request({method:"eth_call",params:g});return"0x"===y?{data:void 0}:{data:y}}catch(N){const o=function(e){var t;if(!(e instanceof ee.C))return;const n=e.walk();return"object"===typeof(null===n||void 0===n?void 0:n.data)?null===(t=n.data)||void 0===t?void 0:t.data:n.data}(N),{offchainLookup:s,offchainLookupSignature:a}=await n.e(700).then(n.bind(n,6700));if(!1!==e.ccipRead&&(null===o||void 0===o?void 0:o.slice(0,10))===a&&E)return{data:await s(e,{data:o,to:E})};if(O&&"0x101bb98d"===(null===o||void 0===o?void 0:o.slice(0,10)))throw new ne.Po({factory:y});throw function(e,t){let{docsPath:n}=t,o=(0,i.A)(t,pe);const s=(()=>{const t=(0,fe.l)(e,o);return t instanceof he.RM?e:t})();return new ne.zX(s,(0,r.A)({docsPath:n},o))}(N,(0,r.A)((0,r.A)({},t),{},{account:I,chain:e.chain}))}}function Ae(e){const{code:t,data:n}=e;return ce({abi:q(["constructor(bytes, bytes)"]),bytecode:X.LX,args:[t,n]})}},3172:(e,t,n)=>{"use strict";n.d(t,{au:()=>o});var r=n(9740),i=n(2867);function o(e,t,n){return new i._k((0,r.A)((0,r.A)({},e),{},{coercer:(r,o)=>(0,i.is)(r,t)?e.coercer(n(r,o),o):e.coercer(r,o)}))}},3235:e=>{e.exports=s,s.default=s,s.stable=u,s.stableStringify=u;var t="[...]",n="[Circular]",r=[],i=[];function o(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function s(e,t,n,s){var a;"undefined"===typeof s&&(s=o()),c(e,"",0,[],void 0,0,s);try{a=0===i.length?JSON.stringify(e,t,n):JSON.stringify(e,h(t),n)}catch(u){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==r.length;){var l=r.pop();4===l.length?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}}return a}function a(e,t,n,o){var s=Object.getOwnPropertyDescriptor(o,n);void 0!==s.get?s.configurable?(Object.defineProperty(o,n,{value:e}),r.push([o,n,t,s])):i.push([t,n,e]):(o[n]=e,r.push([o,n,t]))}function c(e,r,i,o,s,l,u){var d;if(l+=1,"object"===typeof e&&null!==e){for(d=0;d<o.length;d++)if(o[d]===e)return void a(n,e,r,s);if("undefined"!==typeof u.depthLimit&&l>u.depthLimit)return void a(t,e,r,s);if("undefined"!==typeof u.edgesLimit&&i+1>u.edgesLimit)return void a(t,e,r,s);if(o.push(e),Array.isArray(e))for(d=0;d<e.length;d++)c(e[d],d,d,o,e,l,u);else{var h=Object.keys(e);for(d=0;d<h.length;d++){var f=h[d];c(e[f],f,d,o,e,l,u)}}o.pop()}}function l(e,t){return e<t?-1:e>t?1:0}function u(e,t,n,s){"undefined"===typeof s&&(s=o());var a,c=d(e,"",0,[],void 0,0,s)||e;try{a=0===i.length?JSON.stringify(c,t,n):JSON.stringify(c,h(t),n)}catch(u){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==r.length;){var l=r.pop();4===l.length?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}}return a}function d(e,i,o,s,c,u,h){var f;if(u+=1,"object"===typeof e&&null!==e){for(f=0;f<s.length;f++)if(s[f]===e)return void a(n,e,i,c);try{if("function"===typeof e.toJSON)return}catch(y){return}if("undefined"!==typeof h.depthLimit&&u>h.depthLimit)return void a(t,e,i,c);if("undefined"!==typeof h.edgesLimit&&o+1>h.edgesLimit)return void a(t,e,i,c);if(s.push(e),Array.isArray(e))for(f=0;f<e.length;f++)d(e[f],f,f,s,e,u,h);else{var p={},m=Object.keys(e).sort(l);for(f=0;f<m.length;f++){var g=m[f];d(e[g],g,f,s,e,u,h),p[g]=e[g]}if("undefined"===typeof c)return p;r.push([c,i,e]),c[i]=p}s.pop()}}function h(e){return e="undefined"!==typeof e?e:function(e,t){return t},function(t,n){if(i.length>0)for(var r=0;r<i.length;r++){var o=i[r];if(o[1]===t&&o[0]===n){n=o[2],i.splice(r,1);break}}return e.call(this,t,n)}}},3300:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(6006),i=n(8599);function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"wei";return(0,i.J)(e,r.eL[t])}},3373:(e,t,n)=>{"use strict";var r,i=n(1506).default;var o=n(4836),s=n(6966),a=n(2027),c=class{constructor(e){this.context=e}async execute(e,t){await this.context.transport.connect(),await this.context.transport.subscribe(t.channel);const n=await this._waitForHandshakeOffer(t.expiresAt),r=this._createFinalSession(e,n);this.context.session=r,await this._finalizeConnection(r,t)}_waitForHandshakeOffer(e){return new Promise((t,n)=>{if(e<Date.now())return n(new(0,o.SessionError)(o.ErrorCode.REQUEST_EXPIRED,"Session request expired before wallet could connect"));const r=e+u-Date.now(),i=setTimeout(()=>{this.context.off("handshake_offer_received",s),n(new(0,o.SessionError)(o.ErrorCode.REQUEST_EXPIRED,"Did not receive handshake offer from wallet in time."))},r),s=e=>{clearTimeout(i),t(e)};this.context.once("handshake_offer_received",s)})}_createFinalSession(e,t){return i(i({},e),{},{channel:"session:".concat(t.channelId),theirPublicKey:s.base64ToBytes.call(void 0,t.publicKeyB64)})}async _finalizeConnection(e,t){if(!this.context.session)throw new(0,o.SessionError)(o.ErrorCode.SESSION_INVALID_STATE);await this.context.sessionstore.set(this.context.session),await this.context.transport.subscribe(e.channel),await this.context.transport.clear(t.channel),this.context.state=o.ClientState.CONNECTED,this.context.emit("connected")}},l=r=class{__init(){this.otpAttempts=3}__init2(){this.timeoutId=null}constructor(e){r.prototype.__init.call(this),r.prototype.__init2.call(this),this.context=e}async execute(e,t){await this.context.transport.connect(),await this.context.transport.subscribe(t.channel);const n=await this._waitForHandshakeOffer(t.expiresAt);await this._handleOtpInput(n);const r=this._createFinalSession(e,n);this.context.session=r,await this._acknowledgeHandshake(r),await this._finalizeConnection(t.channel)}_waitForHandshakeOffer(e){return new Promise((t,n)=>{const r=e-Date.now();if(r<=0)return n(new(0,o.SessionError)(o.ErrorCode.REQUEST_EXPIRED,"Session request expired before wallet could connect."));this.timeoutId=setTimeout(()=>{this.context.off("handshake_offer_received",i),n(new(0,o.SessionError)(o.ErrorCode.REQUEST_EXPIRED,"Did not receive handshake offer from wallet in time."))},r);const i=e=>{this.timeoutId&&clearTimeout(this.timeoutId),this.timeoutId=null,t(e)};this.context.once("handshake_offer_received",i)})}_handleOtpInput(e){return new Promise((t,n)=>{if(!e.deadline||!e.otp)return n(new(0,o.SessionError)(o.ErrorCode.UNKNOWN,"Handshake offer is missing OTP details for untrusted connection."));if(Date.now()>e.deadline)return n(new(0,o.SessionError)(o.ErrorCode.OTP_ENTRY_TIMEOUT,"The OTP has already expired."));let r=0;this.context.emit("otp_required",{submit:async i=>{if(i===e.otp)t();else{if(r++,!(r>=this.otpAttempts))throw new(0,o.SessionError)(o.ErrorCode.OTP_INCORRECT,"Incorrect OTP. ".concat(this.otpAttempts-r," attempts remaining."));n(new(0,o.SessionError)(o.ErrorCode.OTP_MAX_ATTEMPTS_REACHED,"Maximum OTP attempts reached."))}},cancel:()=>n(new Error("User cancelled OTP entry.")),deadline:e.deadline})})}_createFinalSession(e,t){return i(i({},e),{},{channel:"session:".concat(t.channelId),theirPublicKey:s.base64ToBytes.call(void 0,t.publicKeyB64)})}async _acknowledgeHandshake(e){await this.context.transport.subscribe(e.channel),await this.context.sendMessage(e.channel,{type:"handshake-ack"})}async _finalizeConnection(e){if(!this.context.session)throw new(0,o.SessionError)(o.ErrorCode.SESSION_INVALID_STATE);await this.context.sessionstore.set(this.context.session),await this.context.transport.clear(e),this.context.state=o.ClientState.CONNECTED,this.context.emit("connected")}},u=6e4,d=class extends o.BaseClient{on(e,t){return super.on(e,t)}constructor(e){super(e.transport,e.keymanager,e.sessionstore)}async connect(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.state!==o.ClientState.DISCONNECTED)throw new(0,o.SessionError)(o.ErrorCode.SESSION_INVALID_STATE,"Cannot connect when state is ".concat(this.state));this.state=o.ClientState.CONNECTING;const{mode:t="untrusted",initialPayload:n}=e,{pendingSession:r,request:i}=this._createPendingSessionAndRequest(t,n);this.session=r,this.emit("session_request",i);const s=this,a={transport:this.transport,sessionstore:this.sessionstore,get session(){return s.session},set session(e){s.session=e},get state(){return s.state},set state(e){s.state=e},emit:this.emit.bind(this),once:this.once.bind(this),off:this.off.bind(this),sendMessage:this.sendMessage.bind(this)},u="trusted"===t?new c(a):new l(a);try{await u.execute(r,i)}catch(d){throw this.emit("error",d),await this.disconnect(),d}}async sendRequest(e){if(this.state!==o.ClientState.CONNECTED||!this.session)throw new(0,o.SessionError)(o.ErrorCode.SESSION_INVALID_STATE,"Cannot send request: not connected.");await this.sendMessage(this.session.channel,{type:"message",payload:e})}handleMessage(e){this.state===o.ClientState.CONNECTING&&"handshake-offer"===e.type?this.emit("handshake_offer_received",e.payload):this.state===o.ClientState.CONNECTED&&"message"===e.type&&this.emit("message",e.payload)}_createPendingSessionAndRequest(e,t){const n=a.v4.call(void 0),r=this.keymanager.generateKeyPair(),i=t?{type:"message",payload:t}:void 0;return{pendingSession:{id:n,channel:"",keyPair:r,theirPublicKey:new Uint8Array(0),expiresAt:Date.now()+o.DEFAULT_SESSION_TTL},request:{id:n,mode:e,channel:"handshake:".concat(n),publicKeyB64:s.bytesToBase64.call(void 0,r.publicKey),expiresAt:Date.now()+6e4,initialMessage:i}}}};t.$=d},3467:(e,t,n)=>{"use strict";n.d(t,{Ci:()=>s,J8:()=>a,MU:()=>c});var r=n(8551),i=n(8090),o=n(9603);class s extends i.C{constructor(e){let{body:t,cause:n,details:i,headers:s,status:a,url:c}=e;super("HTTP request failed.",{cause:n,details:i,metaMessages:[a&&"Status: ".concat(a),"URL: ".concat((0,o.I)(c)),t&&"Request body: ".concat((0,r.A)(t))].filter(Boolean),name:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=t,this.headers=s,this.status=a,this.url=c}}i.C;class a extends i.C{constructor(e){let{body:t,error:n,url:i}=e;super("RPC Request failed.",{cause:n,details:n.message,metaMessages:["URL: ".concat((0,o.I)(i)),"Request body: ".concat((0,r.A)(t))],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=n.code,this.data=n.data}}i.C;class c extends i.C{constructor(e){let{body:t,url:n}=e;super("The request took too long to respond.",{details:"The request timed out.",metaMessages:["URL: ".concat((0,o.I)(n)),"Request body: ".concat((0,r.A)(t))],name:"TimeoutError"})}}},3505:(e,t,n)=>{"use strict";n.d(t,{bk:()=>ci,Yg:()=>Hi,h:()=>li,CI:()=>da,Nw:()=>ui,pm:()=>qi,TN:()=>wo,m9:()=>bo});var r=n(5806),i=n(4853),o=n(9804),s=n.n(o);function a(e){let t=e.length;for(;--t>=0;)e[t]=0}const c=256,l=286,u=30,d=15,h=new Uint8Array([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]),f=new Uint8Array([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]),p=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),m=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),g=new Array(576);a(g);const y=new Array(60);a(y);const b=new Array(512);a(b);const v=new Array(256);a(v);const w=new Array(29);a(w);const _=new Array(u);function x(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}let A,k,E;function S(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}a(_);const P=e=>e<256?b[e]:b[256+(e>>>7)],C=(e,t)=>{e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255},I=(e,t,n)=>{e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,C(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)},M=(e,t,n)=>{I(e,n[2*t],n[2*t+1])},T=(e,t)=>{let n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1},O=(e,t,n)=>{const r=new Array(16);let i,o,s=0;for(i=1;i<=d;i++)s=s+n[i-1]<<1,r[i]=s;for(o=0;o<=t;o++){let t=e[2*o+1];0!==t&&(e[2*o]=T(r[t]++,t))}},R=e=>{let t;for(t=0;t<l;t++)e.dyn_ltree[2*t]=0;for(t=0;t<u;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},B=e=>{e.bi_valid>8?C(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},N=(e,t,n,r)=>{const i=2*t,o=2*n;return e[i]<e[o]||e[i]===e[o]&&r[t]<=r[n]},U=(e,t,n)=>{const r=e.heap[n];let i=n<<1;for(;i<=e.heap_len&&(i<e.heap_len&&N(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!N(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r},j=(e,t,n)=>{let r,i,o,s,a=0;if(0!==e.sym_next)do{r=255&e.pending_buf[e.sym_buf+a++],r+=(255&e.pending_buf[e.sym_buf+a++])<<8,i=e.pending_buf[e.sym_buf+a++],0===r?M(e,i,t):(o=v[i],M(e,o+c+1,t),s=h[o],0!==s&&(i-=w[o],I(e,i,s)),r--,o=P(r),M(e,o,n),s=f[o],0!==s&&(r-=_[o],I(e,r,s)))}while(a<e.sym_next);M(e,256,t)},L=(e,t)=>{const n=t.dyn_tree,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,o=t.stat_desc.elems;let s,a,c,l=-1;for(e.heap_len=0,e.heap_max=573,s=0;s<o;s++)0!==n[2*s]?(e.heap[++e.heap_len]=l=s,e.depth[s]=0):n[2*s+1]=0;for(;e.heap_len<2;)c=e.heap[++e.heap_len]=l<2?++l:0,n[2*c]=1,e.depth[c]=0,e.opt_len--,i&&(e.static_len-=r[2*c+1]);for(t.max_code=l,s=e.heap_len>>1;s>=1;s--)U(e,n,s);c=o;do{s=e.heap[1],e.heap[1]=e.heap[e.heap_len--],U(e,n,1),a=e.heap[1],e.heap[--e.heap_max]=s,e.heap[--e.heap_max]=a,n[2*c]=n[2*s]+n[2*a],e.depth[c]=(e.depth[s]>=e.depth[a]?e.depth[s]:e.depth[a])+1,n[2*s+1]=n[2*a+1]=c,e.heap[1]=c++,U(e,n,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],((e,t)=>{const n=t.dyn_tree,r=t.max_code,i=t.stat_desc.static_tree,o=t.stat_desc.has_stree,s=t.stat_desc.extra_bits,a=t.stat_desc.extra_base,c=t.stat_desc.max_length;let l,u,h,f,p,m,g=0;for(f=0;f<=d;f++)e.bl_count[f]=0;for(n[2*e.heap[e.heap_max]+1]=0,l=e.heap_max+1;l<573;l++)u=e.heap[l],f=n[2*n[2*u+1]+1]+1,f>c&&(f=c,g++),n[2*u+1]=f,u>r||(e.bl_count[f]++,p=0,u>=a&&(p=s[u-a]),m=n[2*u],e.opt_len+=m*(f+p),o&&(e.static_len+=m*(i[2*u+1]+p)));if(0!==g){do{for(f=c-1;0===e.bl_count[f];)f--;e.bl_count[f]--,e.bl_count[f+1]+=2,e.bl_count[c]--,g-=2}while(g>0);for(f=c;0!==f;f--)for(u=e.bl_count[f];0!==u;)h=e.heap[--l],h>r||(n[2*h+1]!==f&&(e.opt_len+=(f-n[2*h+1])*n[2*h],n[2*h+1]=f),u--)}})(e,t),O(n,l,e.bl_count)},F=(e,t,n)=>{let r,i,o=-1,s=t[1],a=0,c=7,l=4;for(0===s&&(c=138,l=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=s,s=t[2*(r+1)+1],++a<c&&i===s||(a<l?e.bl_tree[2*i]+=a:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[32]++):a<=10?e.bl_tree[34]++:e.bl_tree[36]++,a=0,o=i,0===s?(c=138,l=3):i===s?(c=6,l=3):(c=7,l=4))},D=(e,t,n)=>{let r,i,o=-1,s=t[1],a=0,c=7,l=4;for(0===s&&(c=138,l=3),r=0;r<=n;r++)if(i=s,s=t[2*(r+1)+1],!(++a<c&&i===s)){if(a<l)do{M(e,i,e.bl_tree)}while(0!==--a);else 0!==i?(i!==o&&(M(e,i,e.bl_tree),a--),M(e,16,e.bl_tree),I(e,a-3,2)):a<=10?(M(e,17,e.bl_tree),I(e,a-3,3)):(M(e,18,e.bl_tree),I(e,a-11,7));a=0,o=i,0===s?(c=138,l=3):i===s?(c=6,l=3):(c=7,l=4)}};let z=!1;const q=(e,t,n,r)=>{I(e,0+(r?1:0),3),B(e),C(e,n),C(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n};var H=e=>{z||((()=>{let e,t,n,r,i;const o=new Array(16);for(n=0,r=0;r<28;r++)for(w[r]=n,e=0;e<1<<h[r];e++)v[n++]=r;for(v[n-1]=r,i=0,r=0;r<16;r++)for(_[r]=i,e=0;e<1<<f[r];e++)b[i++]=r;for(i>>=7;r<u;r++)for(_[r]=i<<7,e=0;e<1<<f[r]-7;e++)b[256+i++]=r;for(t=0;t<=d;t++)o[t]=0;for(e=0;e<=143;)g[2*e+1]=8,e++,o[8]++;for(;e<=255;)g[2*e+1]=9,e++,o[9]++;for(;e<=279;)g[2*e+1]=7,e++,o[7]++;for(;e<=287;)g[2*e+1]=8,e++,o[8]++;for(O(g,287,o),e=0;e<u;e++)y[2*e+1]=5,y[2*e]=T(e,5);A=new x(g,h,257,l,d),k=new x(y,f,0,u,d),E=new x(new Array(0),p,0,19,7)})(),z=!0),e.l_desc=new S(e.dyn_ltree,A),e.d_desc=new S(e.dyn_dtree,k),e.bl_desc=new S(e.bl_tree,E),e.bi_buf=0,e.bi_valid=0,R(e)},W=(e,t,n,r)=>{let i,o,s=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=(e=>{let t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<c;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0})(e)),L(e,e.l_desc),L(e,e.d_desc),s=(e=>{let t;for(F(e,e.dyn_ltree,e.l_desc.max_code),F(e,e.dyn_dtree,e.d_desc.max_code),L(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*m[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t})(e),i=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,o<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==t?q(e,t,n,r):4===e.strategy||o===i?(I(e,2+(r?1:0),3),j(e,g,y)):(I(e,4+(r?1:0),3),((e,t,n,r)=>{let i;for(I(e,t-257,5),I(e,n-1,5),I(e,r-4,4),i=0;i<r;i++)I(e,e.bl_tree[2*m[i]+1],3);D(e,e.dyn_ltree,t-1),D(e,e.dyn_dtree,n-1)})(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),j(e,e.dyn_ltree,e.dyn_dtree)),R(e),r&&B(e)},K=(e,t,n)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=n,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(v[n]+c+1)]++,e.dyn_dtree[2*P(t)]++),e.sym_next===e.sym_end),$={_tr_init:H,_tr_stored_block:q,_tr_flush_block:W,_tr_tally:K,_tr_align:e=>{I(e,2,3),M(e,256,g),(e=>{16===e.bi_valid?(C(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)})(e)}};var V=(e,t,n,r)=>{let i=65535&e,o=e>>>16&65535,s=0;for(;0!==n;){s=n>2e3?2e3:n,n-=s;do{i=i+t[r++]|0,o=o+i|0}while(--s);i%=65521,o%=65521}return i|o<<16};const G=new Uint32Array((()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t})());var J=(e,t,n,r)=>{const i=G,o=r+n;e^=-1;for(let s=r;s<o;s++)e=e>>>8^i[255&(e^t[s])];return-1^e},Z={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Y={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:Q,_tr_stored_block:X,_tr_flush_block:ee,_tr_tally:te,_tr_align:ne}=$,{Z_NO_FLUSH:re,Z_PARTIAL_FLUSH:ie,Z_FULL_FLUSH:oe,Z_FINISH:se,Z_BLOCK:ae,Z_OK:ce,Z_STREAM_END:le,Z_STREAM_ERROR:ue,Z_DATA_ERROR:de,Z_BUF_ERROR:he,Z_DEFAULT_COMPRESSION:fe,Z_FILTERED:pe,Z_HUFFMAN_ONLY:me,Z_RLE:ge,Z_FIXED:ye,Z_DEFAULT_STRATEGY:be,Z_UNKNOWN:ve,Z_DEFLATED:we}=Y,_e=258,xe=262,Ae=42,ke=113,Ee=666,Se=(e,t)=>(e.msg=Z[t],t),Pe=e=>2*e-(e>4?9:0),Ce=e=>{let t=e.length;for(;--t>=0;)e[t]=0},Ie=e=>{let t,n,r,i=e.w_size;t=e.hash_size,r=t;do{n=e.head[--r],e.head[r]=n>=i?n-i:0}while(--t);t=i,r=t;do{n=e.prev[--r],e.prev[r]=n>=i?n-i:0}while(--t)};let Me=(e,t,n)=>(t<<e.hash_shift^n)&e.hash_mask;const Te=e=>{const t=e.state;let n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))},Oe=(e,t)=>{ee(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Te(e.strm)},Re=(e,t)=>{e.pending_buf[e.pending++]=t},Be=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t},Ne=(e,t,n,r)=>{let i=e.avail_in;return i>r&&(i=r),0===i?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),n),1===e.state.wrap?e.adler=V(e.adler,t,i,n):2===e.state.wrap&&(e.adler=J(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)},Ue=(e,t)=>{let n,r,i=e.max_chain_length,o=e.strstart,s=e.prev_length,a=e.nice_match;const c=e.strstart>e.w_size-xe?e.strstart-(e.w_size-xe):0,l=e.window,u=e.w_mask,d=e.prev,h=e.strstart+_e;let f=l[o+s-1],p=l[o+s];e.prev_length>=e.good_match&&(i>>=2),a>e.lookahead&&(a=e.lookahead);do{if(n=t,l[n+s]===p&&l[n+s-1]===f&&l[n]===l[o]&&l[++n]===l[o+1]){o+=2,n++;do{}while(l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&o<h);if(r=_e-(h-o),o=h-_e,r>s){if(e.match_start=t,s=r,r>=a)break;f=l[o+s-1],p=l[o+s]}}}while((t=d[t&u])>c&&0!==--i);return s<=e.lookahead?s:e.lookahead},je=e=>{const t=e.w_size;let n,r,i;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-xe)&&(e.window.set(e.window.subarray(t,t+t-r),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),Ie(e),r+=t),0===e.strm.avail_in)break;if(n=Ne(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=n,e.lookahead+e.insert>=3)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=Me(e,e.ins_h,e.window[i+1]);e.insert&&(e.ins_h=Me(e,e.ins_h,e.window[i+3-1]),e.prev[i&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=i,i++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<xe&&0!==e.strm.avail_in)},Le=(e,t)=>{let n,r,i,o=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,s=0,a=e.strm.avail_in;do{if(n=65535,i=e.bi_valid+42>>3,e.strm.avail_out<i)break;if(i=e.strm.avail_out-i,r=e.strstart-e.block_start,n>r+e.strm.avail_in&&(n=r+e.strm.avail_in),n>i&&(n=i),n<o&&(0===n&&t!==se||t===re||n!==r+e.strm.avail_in))break;s=t===se&&n===r+e.strm.avail_in?1:0,X(e,0,0,s),e.pending_buf[e.pending-4]=n,e.pending_buf[e.pending-3]=n>>8,e.pending_buf[e.pending-2]=~n,e.pending_buf[e.pending-1]=~n>>8,Te(e.strm),r&&(r>n&&(r=n),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+r),e.strm.next_out),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r,e.block_start+=r,n-=r),n&&(Ne(e.strm,e.strm.output,e.strm.next_out,n),e.strm.next_out+=n,e.strm.avail_out-=n,e.strm.total_out+=n)}while(0===s);return a-=e.strm.avail_in,a&&(a>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=a&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-a,e.strm.next_in),e.strstart),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),s?4:t!==re&&t!==se&&0===e.strm.avail_in&&e.strstart===e.block_start?2:(i=e.window_size-e.strstart,e.strm.avail_in>i&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,i+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),i>e.strm.avail_in&&(i=e.strm.avail_in),i&&(Ne(e.strm,e.window,e.strstart,i),e.strstart+=i,e.insert+=i>e.w_size-e.insert?e.w_size-e.insert:i),e.high_water<e.strstart&&(e.high_water=e.strstart),i=e.bi_valid+42>>3,i=e.pending_buf_size-i>65535?65535:e.pending_buf_size-i,o=i>e.w_size?e.w_size:i,r=e.strstart-e.block_start,(r>=o||(r||t===se)&&t!==re&&0===e.strm.avail_in&&r<=i)&&(n=r>i?i:r,s=t===se&&0===e.strm.avail_in&&n===r?1:0,X(e,e.block_start,n,s),e.block_start+=n,Te(e.strm)),s?3:1)},Fe=(e,t)=>{let n,r;for(;;){if(e.lookahead<xe){if(je(e),e.lookahead<xe&&t===re)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=Me(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-xe&&(e.match_length=Ue(e,n)),e.match_length>=3)if(r=te(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=Me(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!==--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=Me(e,e.ins_h,e.window[e.strstart+1]);else r=te(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Oe(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,t===se?(Oe(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(Oe(e,!1),0===e.strm.avail_out)?1:2},De=(e,t)=>{let n,r,i;for(;;){if(e.lookahead<xe){if(je(e),e.lookahead<xe&&t===re)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=Me(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-xe&&(e.match_length=Ue(e,n),e.match_length<=5&&(e.strategy===pe||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,r=te(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=Me(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!==--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(Oe(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if(r=te(e,0,e.window[e.strstart-1]),r&&Oe(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=te(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,t===se?(Oe(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(Oe(e,!1),0===e.strm.avail_out)?1:2};function ze(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}const qe=[new ze(0,0,0,0,Le),new ze(4,4,8,4,Fe),new ze(4,5,16,8,Fe),new ze(4,6,32,32,Fe),new ze(4,4,16,16,De),new ze(8,16,32,32,De),new ze(8,16,128,128,De),new ze(8,32,128,256,De),new ze(32,128,258,1024,De),new ze(32,258,258,4096,De)];function He(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=we,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),Ce(this.dyn_ltree),Ce(this.dyn_dtree),Ce(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),Ce(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),Ce(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const We=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==Ae&&57!==t.status&&69!==t.status&&73!==t.status&&91!==t.status&&103!==t.status&&t.status!==ke&&t.status!==Ee?1:0},Ke=e=>{if(We(e))return Se(e,ue);e.total_in=e.total_out=0,e.data_type=ve;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=2===t.wrap?57:t.wrap?Ae:ke,e.adler=2===t.wrap?0:1,t.last_flush=-2,Q(t),ce},$e=e=>{const t=Ke(e);var n;return t===ce&&((n=e.state).window_size=2*n.w_size,Ce(n.head),n.max_lazy_match=qe[n.level].max_lazy,n.good_match=qe[n.level].good_length,n.nice_match=qe[n.level].nice_length,n.max_chain_length=qe[n.level].max_chain,n.strstart=0,n.block_start=0,n.lookahead=0,n.insert=0,n.match_length=n.prev_length=2,n.match_available=0,n.ins_h=0),t},Ve=(e,t,n,r,i,o)=>{if(!e)return ue;let s=1;if(t===fe&&(t=6),r<0?(s=0,r=-r):r>15&&(s=2,r-=16),i<1||i>9||n!==we||r<8||r>15||t<0||t>9||o<0||o>ye||8===r&&1!==s)return Se(e,ue);8===r&&(r=9);const a=new He;return e.state=a,a.strm=e,a.status=Ae,a.wrap=s,a.gzhead=null,a.w_bits=r,a.w_size=1<<a.w_bits,a.w_mask=a.w_size-1,a.hash_bits=i+7,a.hash_size=1<<a.hash_bits,a.hash_mask=a.hash_size-1,a.hash_shift=~~((a.hash_bits+3-1)/3),a.window=new Uint8Array(2*a.w_size),a.head=new Uint16Array(a.hash_size),a.prev=new Uint16Array(a.w_size),a.lit_bufsize=1<<i+6,a.pending_buf_size=4*a.lit_bufsize,a.pending_buf=new Uint8Array(a.pending_buf_size),a.sym_buf=a.lit_bufsize,a.sym_end=3*(a.lit_bufsize-1),a.level=t,a.strategy=o,a.method=n,$e(e)};var Ge={deflateInit:(e,t)=>Ve(e,t,we,15,8,be),deflateInit2:Ve,deflateReset:$e,deflateResetKeep:Ke,deflateSetHeader:(e,t)=>We(e)||2!==e.state.wrap?ue:(e.state.gzhead=t,ce),deflate:(e,t)=>{if(We(e)||t>ae||t<0)return e?Se(e,ue):ue;const n=e.state;if(!e.output||0!==e.avail_in&&!e.input||n.status===Ee&&t!==se)return Se(e,0===e.avail_out?he:ue);const r=n.last_flush;if(n.last_flush=t,0!==n.pending){if(Te(e),0===e.avail_out)return n.last_flush=-1,ce}else if(0===e.avail_in&&Pe(t)<=Pe(r)&&t!==se)return Se(e,he);if(n.status===Ee&&0!==e.avail_in)return Se(e,he);if(n.status===Ae&&0===n.wrap&&(n.status=ke),n.status===Ae){let t=we+(n.w_bits-8<<4)<<8,r=-1;if(r=n.strategy>=me||n.level<2?0:n.level<6?1:6===n.level?2:3,t|=r<<6,0!==n.strstart&&(t|=32),t+=31-t%31,Be(n,t),0!==n.strstart&&(Be(n,e.adler>>>16),Be(n,65535&e.adler)),e.adler=1,n.status=ke,Te(e),0!==n.pending)return n.last_flush=-1,ce}if(57===n.status)if(e.adler=0,Re(n,31),Re(n,139),Re(n,8),n.gzhead)Re(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),Re(n,255&n.gzhead.time),Re(n,n.gzhead.time>>8&255),Re(n,n.gzhead.time>>16&255),Re(n,n.gzhead.time>>24&255),Re(n,9===n.level?2:n.strategy>=me||n.level<2?4:0),Re(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(Re(n,255&n.gzhead.extra.length),Re(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=J(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69;else if(Re(n,0),Re(n,0),Re(n,0),Re(n,0),Re(n,0),Re(n,9===n.level?2:n.strategy>=me||n.level<2?4:0),Re(n,3),n.status=ke,Te(e),0!==n.pending)return n.last_flush=-1,ce;if(69===n.status){if(n.gzhead.extra){let t=n.pending,r=(65535&n.gzhead.extra.length)-n.gzindex;for(;n.pending+r>n.pending_buf_size;){let i=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+i),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>t&&(e.adler=J(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex+=i,Te(e),0!==n.pending)return n.last_flush=-1,ce;t=0,r-=i}let i=new Uint8Array(n.gzhead.extra);n.pending_buf.set(i.subarray(n.gzindex,n.gzindex+r),n.pending),n.pending+=r,n.gzhead.hcrc&&n.pending>t&&(e.adler=J(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex=0}n.status=73}if(73===n.status){if(n.gzhead.name){let t,r=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>r&&(e.adler=J(e.adler,n.pending_buf,n.pending-r,r)),Te(e),0!==n.pending)return n.last_flush=-1,ce;r=0}t=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,Re(n,t)}while(0!==t);n.gzhead.hcrc&&n.pending>r&&(e.adler=J(e.adler,n.pending_buf,n.pending-r,r)),n.gzindex=0}n.status=91}if(91===n.status){if(n.gzhead.comment){let t,r=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>r&&(e.adler=J(e.adler,n.pending_buf,n.pending-r,r)),Te(e),0!==n.pending)return n.last_flush=-1,ce;r=0}t=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,Re(n,t)}while(0!==t);n.gzhead.hcrc&&n.pending>r&&(e.adler=J(e.adler,n.pending_buf,n.pending-r,r))}n.status=103}if(103===n.status){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(Te(e),0!==n.pending))return n.last_flush=-1,ce;Re(n,255&e.adler),Re(n,e.adler>>8&255),e.adler=0}if(n.status=ke,Te(e),0!==n.pending)return n.last_flush=-1,ce}if(0!==e.avail_in||0!==n.lookahead||t!==re&&n.status!==Ee){let r=0===n.level?Le(n,t):n.strategy===me?((e,t)=>{let n;for(;;){if(0===e.lookahead&&(je(e),0===e.lookahead)){if(t===re)return 1;break}if(e.match_length=0,n=te(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Oe(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===se?(Oe(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(Oe(e,!1),0===e.strm.avail_out)?1:2})(n,t):n.strategy===ge?((e,t)=>{let n,r,i,o;const s=e.window;for(;;){if(e.lookahead<=_e){if(je(e),e.lookahead<=_e&&t===re)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(i=e.strstart-1,r=s[i],r===s[++i]&&r===s[++i]&&r===s[++i])){o=e.strstart+_e;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<o);e.match_length=_e-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=te(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=te(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Oe(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===se?(Oe(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(Oe(e,!1),0===e.strm.avail_out)?1:2})(n,t):qe[n.level].func(n,t);if(3!==r&&4!==r||(n.status=Ee),1===r||3===r)return 0===e.avail_out&&(n.last_flush=-1),ce;if(2===r&&(t===ie?ne(n):t!==ae&&(X(n,0,0,!1),t===oe&&(Ce(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),Te(e),0===e.avail_out))return n.last_flush=-1,ce}return t!==se?ce:n.wrap<=0?le:(2===n.wrap?(Re(n,255&e.adler),Re(n,e.adler>>8&255),Re(n,e.adler>>16&255),Re(n,e.adler>>24&255),Re(n,255&e.total_in),Re(n,e.total_in>>8&255),Re(n,e.total_in>>16&255),Re(n,e.total_in>>24&255)):(Be(n,e.adler>>>16),Be(n,65535&e.adler)),Te(e),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?ce:le)},deflateEnd:e=>{if(We(e))return ue;const t=e.state.status;return e.state=null,t===ke?Se(e,de):ce},deflateSetDictionary:(e,t)=>{let n=t.length;if(We(e))return ue;const r=e.state,i=r.wrap;if(2===i||1===i&&r.status!==Ae||r.lookahead)return ue;if(1===i&&(e.adler=V(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){0===i&&(Ce(r.head),r.strstart=0,r.block_start=0,r.insert=0);let e=new Uint8Array(r.w_size);e.set(t.subarray(n-r.w_size,n),0),t=e,n=r.w_size}const o=e.avail_in,s=e.next_in,a=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,je(r);r.lookahead>=3;){let e=r.strstart,t=r.lookahead-2;do{r.ins_h=Me(r,r.ins_h,r.window[e+3-1]),r.prev[e&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=e,e++}while(--t);r.strstart=e,r.lookahead=2,je(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=s,e.input=a,e.avail_in=o,r.wrap=i,ce},deflateInfo:"pako deflate (from Nodeca project)"};const Je=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var Ze=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const n=t.shift();if(n){if("object"!==typeof n)throw new TypeError(n+"must be non-object");for(const t in n)Je(n,t)&&(e[t]=n[t])}}return e},Ye=e=>{let t=0;for(let r=0,i=e.length;r<i;r++)t+=e[r].length;const n=new Uint8Array(t);for(let r=0,i=0,o=e.length;r<o;r++){let t=e[r];n.set(t,i),i+=t.length}return n};let Qe=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(ha){Qe=!1}const Xe=new Uint8Array(256);for(let fa=0;fa<256;fa++)Xe[fa]=fa>=252?6:fa>=248?5:fa>=240?4:fa>=224?3:fa>=192?2:1;Xe[254]=Xe[254]=1;var et=e=>{if("function"===typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(e);let t,n,r,i,o,s=e.length,a=0;for(i=0;i<s;i++)n=e.charCodeAt(i),55296===(64512&n)&&i+1<s&&(r=e.charCodeAt(i+1),56320===(64512&r)&&(n=65536+(n-55296<<10)+(r-56320),i++)),a+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(a),o=0,i=0;o<a;i++)n=e.charCodeAt(i),55296===(64512&n)&&i+1<s&&(r=e.charCodeAt(i+1),56320===(64512&r)&&(n=65536+(n-55296<<10)+(r-56320),i++)),n<128?t[o++]=n:n<2048?(t[o++]=192|n>>>6,t[o++]=128|63&n):n<65536?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|63&n):(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|63&n);return t},tt=(e,t)=>{const n=t||e.length;if("function"===typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(e.subarray(0,t));let r,i;const o=new Array(2*n);for(i=0,r=0;r<n;){let t=e[r++];if(t<128){o[i++]=t;continue}let s=Xe[t];if(s>4)o[i++]=65533,r+=s-1;else{for(t&=2===s?31:3===s?15:7;s>1&&r<n;)t=t<<6|63&e[r++],s--;s>1?o[i++]=65533:t<65536?o[i++]=t:(t-=65536,o[i++]=55296|t>>10&1023,o[i++]=56320|1023&t)}}return((e,t)=>{if(t<65534&&e.subarray&&Qe)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n})(o,i)},nt=(e,t)=>{(t=t||e.length)>e.length&&(t=e.length);let n=t-1;for(;n>=0&&128===(192&e[n]);)n--;return n<0||0===n?t:n+Xe[e[n]]>t?n:t};var rt=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const it=Object.prototype.toString,{Z_NO_FLUSH:ot,Z_SYNC_FLUSH:st,Z_FULL_FLUSH:at,Z_FINISH:ct,Z_OK:lt,Z_STREAM_END:ut,Z_DEFAULT_COMPRESSION:dt,Z_DEFAULT_STRATEGY:ht,Z_DEFLATED:ft}=Y;function pt(e){this.options=Ze({level:dt,method:ft,chunkSize:16384,windowBits:15,memLevel:8,strategy:ht},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new rt,this.strm.avail_out=0;let n=Ge.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==lt)throw new Error(Z[n]);if(t.header&&Ge.deflateSetHeader(this.strm,t.header),t.dictionary){let e;if(e="string"===typeof t.dictionary?et(t.dictionary):"[object ArrayBuffer]"===it.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,n=Ge.deflateSetDictionary(this.strm,e),n!==lt)throw new Error(Z[n]);this._dict_set=!0}}function mt(e,t){const n=new pt(t);if(n.push(e,!0),n.err)throw n.msg||Z[n.err];return n.result}pt.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize;let i,o;if(this.ended)return!1;for(o=t===~~t?t:!0===t?ct:ot,"string"===typeof e?n.input=et(e):"[object ArrayBuffer]"===it.call(e)?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;)if(0===n.avail_out&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),(o===st||o===at)&&n.avail_out<=6)this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;else{if(i=Ge.deflate(n,o),i===ut)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),i=Ge.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===lt;if(0!==n.avail_out){if(o>0&&n.next_out>0)this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;else if(0===n.avail_in)break}else this.onData(n.output)}return!0},pt.prototype.onData=function(e){this.chunks.push(e)},pt.prototype.onEnd=function(e){e===lt&&(this.result=Ye(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var gt={Deflate:pt,deflate:mt,deflateRaw:function(e,t){return(t=t||{}).raw=!0,mt(e,t)},gzip:function(e,t){return(t=t||{}).gzip=!0,mt(e,t)},constants:Y};const yt=16209;var bt=function(e,t){let n,r,i,o,s,a,c,l,u,d,h,f,p,m,g,y,b,v,w,_,x,A,k,E;const S=e.state;n=e.next_in,k=e.input,r=n+(e.avail_in-5),i=e.next_out,E=e.output,o=i-(t-e.avail_out),s=i+(e.avail_out-257),a=S.dmax,c=S.wsize,l=S.whave,u=S.wnext,d=S.window,h=S.hold,f=S.bits,p=S.lencode,m=S.distcode,g=(1<<S.lenbits)-1,y=(1<<S.distbits)-1;e:do{f<15&&(h+=k[n++]<<f,f+=8,h+=k[n++]<<f,f+=8),b=p[h&g];t:for(;;){if(v=b>>>24,h>>>=v,f-=v,v=b>>>16&255,0===v)E[i++]=65535&b;else{if(!(16&v)){if(0===(64&v)){b=p[(65535&b)+(h&(1<<v)-1)];continue t}if(32&v){S.mode=16191;break e}e.msg="invalid literal/length code",S.mode=yt;break e}w=65535&b,v&=15,v&&(f<v&&(h+=k[n++]<<f,f+=8),w+=h&(1<<v)-1,h>>>=v,f-=v),f<15&&(h+=k[n++]<<f,f+=8,h+=k[n++]<<f,f+=8),b=m[h&y];n:for(;;){if(v=b>>>24,h>>>=v,f-=v,v=b>>>16&255,!(16&v)){if(0===(64&v)){b=m[(65535&b)+(h&(1<<v)-1)];continue n}e.msg="invalid distance code",S.mode=yt;break e}if(_=65535&b,v&=15,f<v&&(h+=k[n++]<<f,f+=8,f<v&&(h+=k[n++]<<f,f+=8)),_+=h&(1<<v)-1,_>a){e.msg="invalid distance too far back",S.mode=yt;break e}if(h>>>=v,f-=v,v=i-o,_>v){if(v=_-v,v>l&&S.sane){e.msg="invalid distance too far back",S.mode=yt;break e}if(x=0,A=d,0===u){if(x+=c-v,v<w){w-=v;do{E[i++]=d[x++]}while(--v);x=i-_,A=E}}else if(u<v){if(x+=c+u-v,v-=u,v<w){w-=v;do{E[i++]=d[x++]}while(--v);if(x=0,u<w){v=u,w-=v;do{E[i++]=d[x++]}while(--v);x=i-_,A=E}}}else if(x+=u-v,v<w){w-=v;do{E[i++]=d[x++]}while(--v);x=i-_,A=E}for(;w>2;)E[i++]=A[x++],E[i++]=A[x++],E[i++]=A[x++],w-=3;w&&(E[i++]=A[x++],w>1&&(E[i++]=A[x++]))}else{x=i-_;do{E[i++]=E[x++],E[i++]=E[x++],E[i++]=E[x++],w-=3}while(w>2);w&&(E[i++]=E[x++],w>1&&(E[i++]=E[x++]))}break}}break}}while(n<r&&i<s);w=f>>3,n-=w,f-=w<<3,h&=(1<<f)-1,e.next_in=n,e.next_out=i,e.avail_in=n<r?r-n+5:5-(n-r),e.avail_out=i<s?s-i+257:257-(i-s),S.hold=h,S.bits=f};const vt=15,wt=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),_t=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),xt=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),At=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var kt=(e,t,n,r,i,o,s,a)=>{const c=a.bits;let l,u,d,h,f,p,m=0,g=0,y=0,b=0,v=0,w=0,_=0,x=0,A=0,k=0,E=null;const S=new Uint16Array(16),P=new Uint16Array(16);let C,I,M,T=null;for(m=0;m<=vt;m++)S[m]=0;for(g=0;g<r;g++)S[t[n+g]]++;for(v=c,b=vt;b>=1&&0===S[b];b--);if(v>b&&(v=b),0===b)return i[o++]=20971520,i[o++]=20971520,a.bits=1,0;for(y=1;y<b&&0===S[y];y++);for(v<y&&(v=y),x=1,m=1;m<=vt;m++)if(x<<=1,x-=S[m],x<0)return-1;if(x>0&&(0===e||1!==b))return-1;for(P[1]=0,m=1;m<vt;m++)P[m+1]=P[m]+S[m];for(g=0;g<r;g++)0!==t[n+g]&&(s[P[t[n+g]]++]=g);if(0===e?(E=T=s,p=20):1===e?(E=wt,T=_t,p=257):(E=xt,T=At,p=0),k=0,g=0,m=y,f=o,w=v,_=0,d=-1,A=1<<v,h=A-1,1===e&&A>852||2===e&&A>592)return 1;for(;;){C=m-_,s[g]+1<p?(I=0,M=s[g]):s[g]>=p?(I=T[s[g]-p],M=E[s[g]-p]):(I=96,M=0),l=1<<m-_,u=1<<w,y=u;do{u-=l,i[f+(k>>_)+u]=C<<24|I<<16|M}while(0!==u);for(l=1<<m-1;k&l;)l>>=1;if(0!==l?(k&=l-1,k+=l):k=0,g++,0===--S[m]){if(m===b)break;m=t[n+s[g]]}if(m>v&&(k&h)!==d){for(0===_&&(_=v),f+=y,w=m-_,x=1<<w;w+_<b&&(x-=S[w+_],!(x<=0));)w++,x<<=1;if(A+=1<<w,1===e&&A>852||2===e&&A>592)return 1;d=k&h,i[d]=v<<24|w<<16|f-o}}return 0!==k&&(i[f+k]=m-_<<24|64<<16),a.bits=v,0};const{Z_FINISH:Et,Z_BLOCK:St,Z_TREES:Pt,Z_OK:Ct,Z_STREAM_END:It,Z_NEED_DICT:Mt,Z_STREAM_ERROR:Tt,Z_DATA_ERROR:Ot,Z_MEM_ERROR:Rt,Z_BUF_ERROR:Bt,Z_DEFLATED:Nt}=Y,Ut=16180,jt=16190,Lt=16191,Ft=16192,Dt=16194,zt=16199,qt=16200,Ht=16206,Wt=16209,Kt=e=>(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24);function $t(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Vt=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<Ut||t.mode>16211?1:0},Gt=e=>{if(Vt(e))return Tt;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=Ut,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(852),t.distcode=t.distdyn=new Int32Array(592),t.sane=1,t.back=-1,Ct},Jt=e=>{if(Vt(e))return Tt;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,Gt(e)},Zt=(e,t)=>{let n;if(Vt(e))return Tt;const r=e.state;return t<0?(n=0,t=-t):(n=5+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?Tt:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,Jt(e))},Yt=(e,t)=>{if(!e)return Tt;const n=new $t;e.state=n,n.strm=e,n.window=null,n.mode=Ut;const r=Zt(e,t);return r!==Ct&&(e.state=null),r};let Qt,Xt,en=!0;const tn=e=>{if(en){Qt=new Int32Array(512),Xt=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(kt(1,e.lens,0,288,Qt,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;kt(2,e.lens,0,32,Xt,0,e.work,{bits:5}),en=!1}e.lencode=Qt,e.lenbits=9,e.distcode=Xt,e.distbits=5},nn=(e,t,n,r)=>{let i;const o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new Uint8Array(o.wsize)),r>=o.wsize?(o.window.set(t.subarray(n-o.wsize,n),0),o.wnext=0,o.whave=o.wsize):(i=o.wsize-o.wnext,i>r&&(i=r),o.window.set(t.subarray(n-r,n-r+i),o.wnext),(r-=i)?(o.window.set(t.subarray(n-r,n),0),o.wnext=r,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0};var rn={inflateReset:Jt,inflateReset2:Zt,inflateResetKeep:Gt,inflateInit:e=>Yt(e,15),inflateInit2:Yt,inflate:(e,t)=>{let n,r,i,o,s,a,c,l,u,d,h,f,p,m,g,y,b,v,w,_,x,A,k=0;const E=new Uint8Array(4);let S,P;const C=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Vt(e)||!e.output||!e.input&&0!==e.avail_in)return Tt;n=e.state,n.mode===Lt&&(n.mode=Ft),s=e.next_out,i=e.output,c=e.avail_out,o=e.next_in,r=e.input,a=e.avail_in,l=n.hold,u=n.bits,d=a,h=c,A=Ct;e:for(;;)switch(n.mode){case Ut:if(0===n.wrap){n.mode=Ft;break}for(;u<16;){if(0===a)break e;a--,l+=r[o++]<<u,u+=8}if(2&n.wrap&&35615===l){0===n.wbits&&(n.wbits=15),n.check=0,E[0]=255&l,E[1]=l>>>8&255,n.check=J(n.check,E,2,0),l=0,u=0,n.mode=16181;break}if(n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&l)<<8)+(l>>8))%31){e.msg="incorrect header check",n.mode=Wt;break}if((15&l)!==Nt){e.msg="unknown compression method",n.mode=Wt;break}if(l>>>=4,u-=4,x=8+(15&l),0===n.wbits&&(n.wbits=x),x>15||x>n.wbits){e.msg="invalid window size",n.mode=Wt;break}n.dmax=1<<n.wbits,n.flags=0,e.adler=n.check=1,n.mode=512&l?16189:Lt,l=0,u=0;break;case 16181:for(;u<16;){if(0===a)break e;a--,l+=r[o++]<<u,u+=8}if(n.flags=l,(255&n.flags)!==Nt){e.msg="unknown compression method",n.mode=Wt;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=Wt;break}n.head&&(n.head.text=l>>8&1),512&n.flags&&4&n.wrap&&(E[0]=255&l,E[1]=l>>>8&255,n.check=J(n.check,E,2,0)),l=0,u=0,n.mode=16182;case 16182:for(;u<32;){if(0===a)break e;a--,l+=r[o++]<<u,u+=8}n.head&&(n.head.time=l),512&n.flags&&4&n.wrap&&(E[0]=255&l,E[1]=l>>>8&255,E[2]=l>>>16&255,E[3]=l>>>24&255,n.check=J(n.check,E,4,0)),l=0,u=0,n.mode=16183;case 16183:for(;u<16;){if(0===a)break e;a--,l+=r[o++]<<u,u+=8}n.head&&(n.head.xflags=255&l,n.head.os=l>>8),512&n.flags&&4&n.wrap&&(E[0]=255&l,E[1]=l>>>8&255,n.check=J(n.check,E,2,0)),l=0,u=0,n.mode=16184;case 16184:if(1024&n.flags){for(;u<16;){if(0===a)break e;a--,l+=r[o++]<<u,u+=8}n.length=l,n.head&&(n.head.extra_len=l),512&n.flags&&4&n.wrap&&(E[0]=255&l,E[1]=l>>>8&255,n.check=J(n.check,E,2,0)),l=0,u=0}else n.head&&(n.head.extra=null);n.mode=16185;case 16185:if(1024&n.flags&&(f=n.length,f>a&&(f=a),f&&(n.head&&(x=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(o,o+f),x)),512&n.flags&&4&n.wrap&&(n.check=J(n.check,r,f,o)),a-=f,o+=f,n.length-=f),n.length))break e;n.length=0,n.mode=16186;case 16186:if(2048&n.flags){if(0===a)break e;f=0;do{x=r[o+f++],n.head&&x&&n.length<65536&&(n.head.name+=String.fromCharCode(x))}while(x&&f<a);if(512&n.flags&&4&n.wrap&&(n.check=J(n.check,r,f,o)),a-=f,o+=f,x)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=16187;case 16187:if(4096&n.flags){if(0===a)break e;f=0;do{x=r[o+f++],n.head&&x&&n.length<65536&&(n.head.comment+=String.fromCharCode(x))}while(x&&f<a);if(512&n.flags&&4&n.wrap&&(n.check=J(n.check,r,f,o)),a-=f,o+=f,x)break e}else n.head&&(n.head.comment=null);n.mode=16188;case 16188:if(512&n.flags){for(;u<16;){if(0===a)break e;a--,l+=r[o++]<<u,u+=8}if(4&n.wrap&&l!==(65535&n.check)){e.msg="header crc mismatch",n.mode=Wt;break}l=0,u=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=Lt;break;case 16189:for(;u<32;){if(0===a)break e;a--,l+=r[o++]<<u,u+=8}e.adler=n.check=Kt(l),l=0,u=0,n.mode=jt;case jt:if(0===n.havedict)return e.next_out=s,e.avail_out=c,e.next_in=o,e.avail_in=a,n.hold=l,n.bits=u,Mt;e.adler=n.check=1,n.mode=Lt;case Lt:if(t===St||t===Pt)break e;case Ft:if(n.last){l>>>=7&u,u-=7&u,n.mode=Ht;break}for(;u<3;){if(0===a)break e;a--,l+=r[o++]<<u,u+=8}switch(n.last=1&l,l>>>=1,u-=1,3&l){case 0:n.mode=16193;break;case 1:if(tn(n),n.mode=zt,t===Pt){l>>>=2,u-=2;break e}break;case 2:n.mode=16196;break;case 3:e.msg="invalid block type",n.mode=Wt}l>>>=2,u-=2;break;case 16193:for(l>>>=7&u,u-=7&u;u<32;){if(0===a)break e;a--,l+=r[o++]<<u,u+=8}if((65535&l)!==(l>>>16^65535)){e.msg="invalid stored block lengths",n.mode=Wt;break}if(n.length=65535&l,l=0,u=0,n.mode=Dt,t===Pt)break e;case Dt:n.mode=16195;case 16195:if(f=n.length,f){if(f>a&&(f=a),f>c&&(f=c),0===f)break e;i.set(r.subarray(o,o+f),s),a-=f,o+=f,c-=f,s+=f,n.length-=f;break}n.mode=Lt;break;case 16196:for(;u<14;){if(0===a)break e;a--,l+=r[o++]<<u,u+=8}if(n.nlen=257+(31&l),l>>>=5,u-=5,n.ndist=1+(31&l),l>>>=5,u-=5,n.ncode=4+(15&l),l>>>=4,u-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=Wt;break}n.have=0,n.mode=16197;case 16197:for(;n.have<n.ncode;){for(;u<3;){if(0===a)break e;a--,l+=r[o++]<<u,u+=8}n.lens[C[n.have++]]=7&l,l>>>=3,u-=3}for(;n.have<19;)n.lens[C[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,S={bits:n.lenbits},A=kt(0,n.lens,0,19,n.lencode,0,n.work,S),n.lenbits=S.bits,A){e.msg="invalid code lengths set",n.mode=Wt;break}n.have=0,n.mode=16198;case 16198:for(;n.have<n.nlen+n.ndist;){for(;k=n.lencode[l&(1<<n.lenbits)-1],g=k>>>24,y=k>>>16&255,b=65535&k,!(g<=u);){if(0===a)break e;a--,l+=r[o++]<<u,u+=8}if(b<16)l>>>=g,u-=g,n.lens[n.have++]=b;else{if(16===b){for(P=g+2;u<P;){if(0===a)break e;a--,l+=r[o++]<<u,u+=8}if(l>>>=g,u-=g,0===n.have){e.msg="invalid bit length repeat",n.mode=Wt;break}x=n.lens[n.have-1],f=3+(3&l),l>>>=2,u-=2}else if(17===b){for(P=g+3;u<P;){if(0===a)break e;a--,l+=r[o++]<<u,u+=8}l>>>=g,u-=g,x=0,f=3+(7&l),l>>>=3,u-=3}else{for(P=g+7;u<P;){if(0===a)break e;a--,l+=r[o++]<<u,u+=8}l>>>=g,u-=g,x=0,f=11+(127&l),l>>>=7,u-=7}if(n.have+f>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=Wt;break}for(;f--;)n.lens[n.have++]=x}}if(n.mode===Wt)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=Wt;break}if(n.lenbits=9,S={bits:n.lenbits},A=kt(1,n.lens,0,n.nlen,n.lencode,0,n.work,S),n.lenbits=S.bits,A){e.msg="invalid literal/lengths set",n.mode=Wt;break}if(n.distbits=6,n.distcode=n.distdyn,S={bits:n.distbits},A=kt(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,S),n.distbits=S.bits,A){e.msg="invalid distances set",n.mode=Wt;break}if(n.mode=zt,t===Pt)break e;case zt:n.mode=qt;case qt:if(a>=6&&c>=258){e.next_out=s,e.avail_out=c,e.next_in=o,e.avail_in=a,n.hold=l,n.bits=u,bt(e,h),s=e.next_out,i=e.output,c=e.avail_out,o=e.next_in,r=e.input,a=e.avail_in,l=n.hold,u=n.bits,n.mode===Lt&&(n.back=-1);break}for(n.back=0;k=n.lencode[l&(1<<n.lenbits)-1],g=k>>>24,y=k>>>16&255,b=65535&k,!(g<=u);){if(0===a)break e;a--,l+=r[o++]<<u,u+=8}if(y&&0===(240&y)){for(v=g,w=y,_=b;k=n.lencode[_+((l&(1<<v+w)-1)>>v)],g=k>>>24,y=k>>>16&255,b=65535&k,!(v+g<=u);){if(0===a)break e;a--,l+=r[o++]<<u,u+=8}l>>>=v,u-=v,n.back+=v}if(l>>>=g,u-=g,n.back+=g,n.length=b,0===y){n.mode=16205;break}if(32&y){n.back=-1,n.mode=Lt;break}if(64&y){e.msg="invalid literal/length code",n.mode=Wt;break}n.extra=15&y,n.mode=16201;case 16201:if(n.extra){for(P=n.extra;u<P;){if(0===a)break e;a--,l+=r[o++]<<u,u+=8}n.length+=l&(1<<n.extra)-1,l>>>=n.extra,u-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=16202;case 16202:for(;k=n.distcode[l&(1<<n.distbits)-1],g=k>>>24,y=k>>>16&255,b=65535&k,!(g<=u);){if(0===a)break e;a--,l+=r[o++]<<u,u+=8}if(0===(240&y)){for(v=g,w=y,_=b;k=n.distcode[_+((l&(1<<v+w)-1)>>v)],g=k>>>24,y=k>>>16&255,b=65535&k,!(v+g<=u);){if(0===a)break e;a--,l+=r[o++]<<u,u+=8}l>>>=v,u-=v,n.back+=v}if(l>>>=g,u-=g,n.back+=g,64&y){e.msg="invalid distance code",n.mode=Wt;break}n.offset=b,n.extra=15&y,n.mode=16203;case 16203:if(n.extra){for(P=n.extra;u<P;){if(0===a)break e;a--,l+=r[o++]<<u,u+=8}n.offset+=l&(1<<n.extra)-1,l>>>=n.extra,u-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=Wt;break}n.mode=16204;case 16204:if(0===c)break e;if(f=h-c,n.offset>f){if(f=n.offset-f,f>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=Wt;break}f>n.wnext?(f-=n.wnext,p=n.wsize-f):p=n.wnext-f,f>n.length&&(f=n.length),m=n.window}else m=i,p=s-n.offset,f=n.length;f>c&&(f=c),c-=f,n.length-=f;do{i[s++]=m[p++]}while(--f);0===n.length&&(n.mode=qt);break;case 16205:if(0===c)break e;i[s++]=n.length,c--,n.mode=qt;break;case Ht:if(n.wrap){for(;u<32;){if(0===a)break e;a--,l|=r[o++]<<u,u+=8}if(h-=c,e.total_out+=h,n.total+=h,4&n.wrap&&h&&(e.adler=n.check=n.flags?J(n.check,i,h,s-h):V(n.check,i,h,s-h)),h=c,4&n.wrap&&(n.flags?l:Kt(l))!==n.check){e.msg="incorrect data check",n.mode=Wt;break}l=0,u=0}n.mode=16207;case 16207:if(n.wrap&&n.flags){for(;u<32;){if(0===a)break e;a--,l+=r[o++]<<u,u+=8}if(4&n.wrap&&l!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=Wt;break}l=0,u=0}n.mode=16208;case 16208:A=It;break e;case Wt:A=Ot;break e;case 16210:return Rt;default:return Tt}return e.next_out=s,e.avail_out=c,e.next_in=o,e.avail_in=a,n.hold=l,n.bits=u,(n.wsize||h!==e.avail_out&&n.mode<Wt&&(n.mode<Ht||t!==Et))&&nn(e,e.output,e.next_out,h-e.avail_out),d-=e.avail_in,h-=e.avail_out,e.total_in+=d,e.total_out+=h,n.total+=h,4&n.wrap&&h&&(e.adler=n.check=n.flags?J(n.check,i,h,e.next_out-h):V(n.check,i,h,e.next_out-h)),e.data_type=n.bits+(n.last?64:0)+(n.mode===Lt?128:0)+(n.mode===zt||n.mode===Dt?256:0),(0===d&&0===h||t===Et)&&A===Ct&&(A=Bt),A},inflateEnd:e=>{if(Vt(e))return Tt;let t=e.state;return t.window&&(t.window=null),e.state=null,Ct},inflateGetHeader:(e,t)=>{if(Vt(e))return Tt;const n=e.state;return 0===(2&n.wrap)?Tt:(n.head=t,t.done=!1,Ct)},inflateSetDictionary:(e,t)=>{const n=t.length;let r,i,o;return Vt(e)?Tt:(r=e.state,0!==r.wrap&&r.mode!==jt?Tt:r.mode===jt&&(i=1,i=V(i,t,n,0),i!==r.check)?Ot:(o=nn(e,t,n,n),o?(r.mode=16210,Rt):(r.havedict=1,Ct)))},inflateInfo:"pako inflate (from Nodeca project)"};var on=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const sn=Object.prototype.toString,{Z_NO_FLUSH:an,Z_FINISH:cn,Z_OK:ln,Z_STREAM_END:un,Z_NEED_DICT:dn,Z_STREAM_ERROR:hn,Z_DATA_ERROR:fn,Z_MEM_ERROR:pn}=Y;function mn(e){this.options=Ze({chunkSize:65536,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0===(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new rt,this.strm.avail_out=0;let n=rn.inflateInit2(this.strm,t.windowBits);if(n!==ln)throw new Error(Z[n]);if(this.header=new on,rn.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"===typeof t.dictionary?t.dictionary=et(t.dictionary):"[object ArrayBuffer]"===sn.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=rn.inflateSetDictionary(this.strm,t.dictionary),n!==ln)))throw new Error(Z[n])}function gn(e,t){const n=new mn(t);if(n.push(e),n.err)throw n.msg||Z[n.err];return n.result}mn.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize,i=this.options.dictionary;let o,s,a;if(this.ended)return!1;for(s=t===~~t?t:!0===t?cn:an,"[object ArrayBuffer]"===sn.call(e)?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(0===n.avail_out&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),o=rn.inflate(n,s),o===dn&&i&&(o=rn.inflateSetDictionary(n,i),o===ln?o=rn.inflate(n,s):o===fn&&(o=dn));n.avail_in>0&&o===un&&n.state.wrap>0&&0!==e[n.next_in];)rn.inflateReset(n),o=rn.inflate(n,s);switch(o){case hn:case fn:case dn:case pn:return this.onEnd(o),this.ended=!0,!1}if(a=n.avail_out,n.next_out&&(0===n.avail_out||o===un))if("string"===this.options.to){let e=nt(n.output,n.next_out),t=n.next_out-e,i=tt(n.output,e);n.next_out=t,n.avail_out=r-t,t&&n.output.set(n.output.subarray(e,e+t),0),this.onData(i)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(o!==ln||0!==a){if(o===un)return o=rn.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(0===n.avail_in)break}}return!0},mn.prototype.onData=function(e){this.chunks.push(e)},mn.prototype.onEnd=function(e){e===ln&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Ye(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var yn={Inflate:mn,inflate:gn,inflateRaw:function(e,t){return(t=t||{}).raw=!0,gn(e,t)},ungzip:gn,constants:Y};const{Deflate:bn,deflate:vn,deflateRaw:wn,gzip:_n}=gt,{Inflate:xn,inflate:An,inflateRaw:kn,ungzip:En}=yn;var Sn=vn,Pn=n(7663),Cn=n(4507),In=n(5744),Mn=n(5921),Tn=n(3373);const On=4294967295;let Rn=Math.floor(Math.random()*On);const Bn=()=>(Rn=(Rn+1)%On,Rn);function Nn(e,t,n){return-1===t?e:new Promise((r,i)=>{const o=setTimeout(()=>{i(n?n():new Error("Timeout after ".concat(t,"ms")))},t);e.then(e=>{clearTimeout(o),r(e)}).catch(e=>{clearTimeout(o),i(e)})})}class Un extends Error{constructor(e){super(e.message),this.name=this.constructor.name,this.cause=e,Object.setPrototypeOf(this,this.constructor.prototype)}}class jn extends Error{constructor(e,t){super(e),this.name=this.constructor.name,this.cause=t,Object.setPrototypeOf(this,this.constructor.prototype)}}class Ln extends jn{constructor(){super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Transport request timed out",arguments.length>1?arguments[1]:void 0)}}function Fn(e){let t,n,{transport:r}=e;async function i(){r.isConnected()||(n||(n=r.connect()),await n)}async function o(){return t||(t=(async()=>{await i(),await async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{maxRetries:n=10,retryDelay:r=200,timeoutErrorClass:i}=t;for(let s=0;s<=n;s++)try{return await e()}catch(o){if(s>=n)throw o;if(i&&"function"===typeof i&&o instanceof i)continue;await new Promise(e=>setTimeout(e,r))}throw new Error("Max retries exceeded")}(()=>{var e;return r.request({method:"wallet_getSession"},{timeout:null!==(e=r.warmupTimeout)&&void 0!==e?e:1e3})})})()),await t}return i(),{createSession:async e=>(await o(),await Dn({transport:r,method:"wallet_createSession",params:e})),getSession:async()=>(await o(),await Dn({transport:r,method:"wallet_getSession"})),revokeSession:async e=>{await o(),t=void 0,n=void 0,await Dn({transport:r,method:"wallet_revokeSession",params:e}),await r.disconnect()},invokeMethod:async e=>(await o(),await Dn({transport:r,method:"wallet_invokeMethod",params:e})),extendsRpcApi:()=>Fn({transport:r}),onNotification:e=>r.onNotification(e)}}async function Dn(e){let{transport:t,method:n,params:r,timeout:i}=e;const o=await t.request({method:n,params:r},{timeout:i});if(null!==o&&void 0!==o&&o.error)throw new Un(o.error);return o.result}var zn=n(2709),qn=n(9740);const Hn="metamask-contentscript",Wn="metamask-inpage",Kn="metamask-multichain-provider",$n="metamask-provider",Vn=-1,Gn=200;async function Jn(){return new Promise((e,t)=>{const n=t=>{if(function(e){const{target:t,data:n}=e.data;return t===Wn&&(null===n||void 0===n?void 0:n.name)===$n&&e.origin===location.origin}(t)){var i,o;const a=null===t||void 0===t||null===(i=t.data)||void 0===i||null===(i=i.data)||void 0===i?void 0:i.data;if("METAMASK_EXTENSION_CONNECT_CAN_RETRY"===(null===a||void 0===a?void 0:a.method))Zn();else if(null!==a&&void 0!==a&&null!==(o=a.result)&&void 0!==o&&o.extensionId){var s;const t=null===a||void 0===a||null===(s=a.result)||void 0===s?void 0:s.extensionId;e(t),window.removeEventListener("message",n),clearTimeout(r)}}},r=setTimeout(()=>{window.removeEventListener("message",n),t(new Error("MetaMask extension not found"))},1e4);window.addEventListener("message",n),Zn()})}function Zn(){window.postMessage({target:Hn,data:{name:$n,data:{method:"metamask_getProviderState"}}},location.origin)}function Yn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{extensionId:t}=e;const{defaultTimeout:n=Vn,warmupTimeout:r=Gn}=e;let i,o=Bn();const s=new Map,a=new Set;function c(e){const{data:t}=e;if(null===(null===t||void 0===t?void 0:t.id)||void 0===(null===t||void 0===t?void 0:t.id))!function(e){for(const t of a)try{t(e)}catch(Se){console.log("[ChromeTransport] notifyCallbacks error:",Se)}}(t);else if(s.has(t.id)){const e=s.get(t.id);s.delete(t.id),null===e||void 0===e||e(t)}}return{warmupTimeout:r,connect:async()=>{try{t||(t=await Jn());const e=chrome.runtime.connect(t);let n=!0;if(e.onDisconnect.addListener(()=>{console.log("[ChromeTransport] chromePort disconnected"),i=void 0,n=!1}),await new Promise(e=>setTimeout(e,10)),!n)throw new Error("No extension found with id: ".concat(t));e.onMessage.addListener(c),i=e}catch(Se){throw new jn("Failed to connect to MetaMask",Se)}},disconnect:async()=>{if(i)try{i.disconnect(),i=void 0,a.clear(),s.clear()}catch(Se){console.log("[ChromeTransport] disconnect error:",Se)}},isConnected:()=>void 0!==i,request:async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{timeout:r=n}=t,a=i;if(!a)throw new jn("Chrome port not connected");const c=o++,l=(0,qn.A)({id:c,jsonrpc:"2.0"},e);try{return await Nn(new Promise(e=>{s.set(c,e),a.postMessage({type:"caip-348",data:l})}),r,()=>new Ln)}catch(Se){throw s.has(c)&&s.delete(c),Se}},onNotification:e=>(a.add(e),()=>{a.delete(e)})}}function Qn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{defaultTimeout:t=Vn,warmupTimeout:n=Gn}=e;let r=null;const i=new Map,o=new Set;function s(e){if(null===(null===e||void 0===e?void 0:e.id)||void 0===(null===e||void 0===e?void 0:e.id))!function(e){for(const t of o)try{t(e)}catch(Se){console.log("[WindowPostMessageTransport] notifyCallbacks error:",Se)}}(e);else if(i.has(e.id)){const t=i.get(e.id);i.delete(e.id),null===t||void 0===t||t(e)}}async function a(){r&&(window.removeEventListener("message",r),r=null),i.clear(),o.clear()}const c=()=>Boolean(r);return{warmupTimeout:n,connect:async()=>{c()&&await a(),r=e=>{const{target:t,data:n}=e.data;t===Wn&&(null===n||void 0===n?void 0:n.name)===Kn&&e.origin===location.origin&&s(n.data)},window.addEventListener("message",r)},disconnect:a,isConnected:c,request:function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{timeout:r=t}=n;if(!c())throw new jn("Transport not connected");const o=Bn(),s=(0,qn.A)({jsonrpc:"2.0",id:o},e);return Nn(new Promise(e=>{i.set(o,t=>e(t)),function(e){window.postMessage({target:Hn,data:{name:Kn,data:e}},location.origin)}(s)}),r,()=>new Ln).catch(e=>{throw i.has(o)&&i.delete(o),e})},onNotification:e=>(o.add(e),()=>{o.delete(e)})}}function Xn(){let{extensionId:e,defaultTimeout:t,warmupTimeout:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"undefined"!==typeof chrome&&chrome.runtime&&"function"===typeof chrome.runtime.connect?Yn({extensionId:e,defaultTimeout:t,warmupTimeout:n}):Qn({defaultTimeout:t,warmupTimeout:n})}var er=n(4288);function tr(e){return Boolean(e)&&"object"===typeof e&&!Array.isArray(e)}const nr=(e,t)=>Object.hasOwnProperty.call(e,t);var rr;!function(e){e[e.Null=4]="Null",e[e.Comma=1]="Comma",e[e.Wrapper=1]="Wrapper",e[e.True=4]="True",e[e.False=5]="False",e[e.Quote=1]="Quote",e[e.Colon=1]="Colon",e[e.Date=24]="Date"}(rr=rr||(rr={}));var ir=n(3235),or=n(6140),sr=n(2867),ar=n(4591),cr=n(3172),lr=n(621);const ur=e=>(0,or.Ik)(e);function dr(e){let{path:t,branch:n}=e;const r=t[t.length-1];return nr(n[n.length-2],r)}function hr(e){return new sr._k((0,qn.A)((0,qn.A)({},e),{},{type:"optional ".concat(e.type),validator:(t,n)=>!dr(n)||e.validator(t,n),refiner:(t,n)=>!dr(n)||e.refiner(t,n)}))}function fr(e){if(null===e||"boolean"===typeof e||"string"===typeof e)return!0;if("number"===typeof e&&Number.isFinite(e))return!0;if("object"===typeof e){let t=!0;if(Array.isArray(e)){for(let n=0;n<e.length;n++)if(!fr(e[n])){t=!1;break}return t}const n=Object.entries(e);for(let e=0;e<n.length;e++)if("string"!==typeof n[e][0]||!fr(n[e][1])){t=!1;break}return t}return!1}const pr=(0,ar.E8)("JSON",e=>fr(e)),mr=(0,cr.au)(pr,(0,lr.YP)((0,or.bz)(),"JSON",e=>(0,sr.is)(e,pr)),e=>JSON.parse(JSON.stringify(e,(e,t)=>{if("__proto__"!==e&&"constructor"!==e)return t})));function gr(e){try{return function(e){(0,sr.vt)(e,mr)}(e),!0}catch(t){return!1}}const yr=(0,or.eu)("2.0"),br=(0,or.me)((0,or.KC)([(0,or.ai)(),(0,or.Yj)()])),vr=ur({code:(0,or.nd)(),message:(0,or.Yj)(),data:hr(mr),stack:hr((0,or.Yj)())}),wr=(0,or.KC)([(0,or.g1)((0,or.Yj)(),mr),(0,or.YO)(mr)]);ur({id:br,jsonrpc:yr,method:(0,or.Yj)(),params:hr(wr)}),ur({jsonrpc:yr,method:(0,or.Yj)(),params:hr(wr)});(0,or.Ik)({id:br,jsonrpc:yr,result:(0,or.lq)((0,or.L5)()),error:(0,or.lq)(vr)});const _r=ur({id:br,jsonrpc:yr,result:mr}),xr=ur({id:br,jsonrpc:yr,error:vr});(0,or.KC)([_r,xr]);const Ar={invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},kr={userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901},Er={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}},Sr=Ar.internal,Pr=(Cr(Sr),"Unspecified server error.");function Cr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Unspecified error message. This is a bug, please report it.";if(function(e){return Number.isInteger(e)}(e)){const t=e.toString();if(nr(Er,t))return Er[t].message;if(function(e){return e>=-32099&&e<=-32e3}(e))return Pr}return t}function Ir(e){return Array.isArray(e)?e.map(e=>gr(e)?e:tr(e)?Mr(e):null):tr(e)?Mr(e):gr(e)?e:null}function Mr(e){return Object.getOwnPropertyNames(e).reduce((t,n)=>{const r=e[n];return gr(r)&&(t[n]=r),t},{})}const Tr=null!==(Or=ir)&&void 0!==Or&&Or.__esModule?Or.default:Or;var Or;class Rr extends Error{constructor(e,t,n){if(!Number.isInteger(e))throw new Error('"code" must be an integer.');if(!t||"string"!==typeof t)throw new Error('"message" must be a non-empty string.');!function(e){return tr(e)&&nr(e,"cause")&&tr(e.cause)}(n)?super(t):(super(t,{cause:n.cause}),nr(this,"cause")||Object.assign(this,{cause:n.cause})),void 0!==n&&(this.data=n),this.code=e}serialize(){const e={code:this.code,message:this.message};return void 0!==this.data&&(e.data=this.data,function(e){if("object"!==typeof e||null===e)return!1;try{let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}catch(t){return!1}}(this.data)&&(e.data.cause=Ir(this.data.cause))),this.stack&&(e.stack=this.stack),e}toString(){return Tr(this.serialize(),Nr,2)}}class Br extends Rr{constructor(e,t,n){if(!function(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}(e))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,n)}}function Nr(e,t){if("[Circular]"!==t)return t}const Ur=e=>jr(kr.unauthorized,e);function jr(e,t){const[n,r]=Lr(t);return new Br(e,null!==n&&void 0!==n?n:Cr(e),r)}function Lr(e){if(e){if("string"===typeof e)return[e];if("object"===typeof e&&!Array.isArray(e)){const{message:t,data:n}=e;if(t&&"string"!==typeof t)throw new Error("Must specify string message.");return[null!==t&&void 0!==t?t:void 0,n]}}return[]}var Fr=n(3563);function Dr(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})}function zr(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}var qr="INSTALLED",Hr="NOT_INSTALLED",Wr="REGISTERED",Kr="REGISTERING",$r="RELOADING",Vr={CHROME:"https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn",FIREFOX:"https://addons.mozilla.org/firefox/addon/ether-metamask/",DEFAULT:"https://metamask.io"},Gr="REGISTRATION_IN_PROGRESS",Jr="FORWARDER_ID",Zr=function(){function e(t){var n=void 0===t?{}:t,r=n.forwarderOrigin,i=void 0===r?"https://fwd.metamask.io":r,o=n.forwarderMode,s=void 0===o?e.FORWARDER_MODE.INJECT:o;this.forwarderOrigin=i,this.forwarderMode=s,this.state=e.isMetaMaskInstalled()?qr:Hr;var a=e._detectBrowser();this.downloadUrl=a?Vr[a]:Vr.DEFAULT,this._onMessage=this._onMessage.bind(this),this._onMessageFromForwarder=this._onMessageFromForwarder.bind(this),this._openForwarder=this._openForwarder.bind(this),this._openDownloadPage=this._openDownloadPage.bind(this),this.startOnboarding=this.startOnboarding.bind(this),this.stopOnboarding=this.stopOnboarding.bind(this),window.addEventListener("message",this._onMessage),s===e.FORWARDER_MODE.INJECT&&"true"===sessionStorage.getItem(Gr)&&e._injectForwarder(this.forwarderOrigin)}return e.prototype._onMessage=function(e){if(e.origin===this.forwarderOrigin)return"metamask:reload"===e.data.type?this._onMessageFromForwarder(e):void console.debug("Unknown message from '"+e.origin+"' with data "+JSON.stringify(e.data))},e.prototype._onMessageUnknownStateError=function(e){throw new Error("Unknown state: '"+e+"'")},e.prototype._onMessageFromForwarder=function(t){return Dr(this,void 0,void 0,function(){return zr(this,function(n){switch(n.label){case 0:switch(this.state){case $r:return[3,1];case Hr:return[3,2];case qr:return[3,3];case Kr:return[3,5];case Wr:return[3,6]}return[3,7];case 1:return console.debug("Ignoring message while reloading"),[3,8];case 2:return console.debug("Reloading now to register with MetaMask"),this.state=$r,location.reload(),[3,8];case 3:return console.debug("Registering with MetaMask"),this.state=Kr,[4,e._register()];case 4:return n.sent(),this.state=Wr,t.source.postMessage({type:"metamask:registrationCompleted"},t.origin),this.stopOnboarding(),[3,8];case 5:return console.debug("Already registering - ignoring reload message"),[3,8];case 6:return console.debug("Already registered - ignoring reload message"),[3,8];case 7:this._onMessageUnknownStateError(this.state),n.label=8;case 8:return[2]}})})},e.prototype.startOnboarding=function(){sessionStorage.setItem(Gr,"true"),this._openDownloadPage(),this._openForwarder()},e.prototype.stopOnboarding=function(){"true"===sessionStorage.getItem(Gr)&&(this.forwarderMode===e.FORWARDER_MODE.INJECT&&(console.debug("Removing forwarder"),e._removeForwarder()),sessionStorage.setItem(Gr,"false"))},e.prototype._openForwarder=function(){this.forwarderMode===e.FORWARDER_MODE.OPEN_TAB?window.open(this.forwarderOrigin,"_blank"):e._injectForwarder(this.forwarderOrigin)},e.prototype._openDownloadPage=function(){window.open(this.downloadUrl,"_blank")},e.isMetaMaskInstalled=function(){return Boolean(window.ethereum&&window.ethereum.isMetaMask)},e._register=function(){return window.ethereum.request({method:"wallet_registerOnboarding"})},e._injectForwarder=function(e){var t=document.body,n=document.createElement("iframe");n.setAttribute("height","0"),n.setAttribute("width","0"),n.setAttribute("style","display: none;"),n.setAttribute("src",e),n.setAttribute("id",Jr),t.insertBefore(n,t.children[0])},e._removeForwarder=function(){var e;null===(e=document.getElementById(Jr))||void 0===e||e.remove()},e._detectBrowser=function(){var e=s().parse(window.navigator.userAgent);return"Firefox"===e.browser.name?"FIREFOX":["Chrome","Chromium"].includes(e.browser.name||"")?"CHROME":null},e.FORWARDER_MODE={INJECT:"INJECT",OPEN_TAB:"OPEN_TAB"},e}();const Yr=Zr;var Qr,Xr,ei,ti,ni,ri,ii,oi,si,ai,ci,li,ui,di,hi=n(7802),fi=Object.defineProperty,pi=Object.defineProperties,mi=Object.getOwnPropertyDescriptors,gi=Object.getOwnPropertyNames,yi=Object.getOwnPropertySymbols,bi=Object.prototype.hasOwnProperty,vi=Object.prototype.propertyIsEnumerable,wi=e=>{throw TypeError(e)},_i=(e,t,n)=>t in e?fi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xi=(e,t)=>{for(var n in t||(t={}))bi.call(t,n)&&_i(e,n,t[n]);if(yi)for(var n of yi(t))vi.call(t,n)&&_i(e,n,t[n]);return e},Ai=(e,t)=>pi(e,mi(t)),ki=(e,t)=>function(){return e&&(t=(0,e[gi(e)[0]])(e=0)),t},Ei=(e,t)=>{for(var n in t)fi(e,n,{get:t[n],enumerable:!0})},Si=(e,t,n)=>t.has(e)||wi("Cannot "+n),Pi=(e,t,n)=>(Si(e,t,"read from private field"),n?n.call(e):t.get(e)),Ci=(e,t,n)=>t.has(e)?wi("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Ii=(e,t,n,r)=>(Si(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Mi=(e,t,n)=>(Si(e,t,"access private method"),n),Ti=(e,t,n)=>new Promise((r,i)=>{var o=e=>{try{a(n.next(e))}catch(t){i(t)}},s=e=>{try{a(n.throw(e))}catch(t){i(t)}},a=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,s);a((n=n.apply(e,t)).next())}),Oi=ki({"src/domain/errors/base.ts"(){Qr=class extends Error{constructor(e,t){super(e),this.message=e,this.code=t}}}}),Ri=ki({"src/domain/errors/rpc.ts"(){Oi(),(Xr=class e extends Qr{constructor(t,n,r){super("RPCErr".concat(e.code,": ").concat(r," on ").concat(t," for method ").concat(n),e.code),this.rpcEndpoint=t,this.method=n,this.httpStatus=r}}).code=50,ei=Xr,(ti=class e extends Qr{constructor(t){super("RPCErr".concat(e.code,": RPC Client response reason ").concat(t),e.code),this.reason=t}}).code=51,ni=ti,(ri=class e extends Qr{constructor(t){super("RPCErr".concat(e.code,": RPC Client fetch reason ").concat(t),e.code),this.reason=t}}).code=52,ii=ri,(oi=class e extends Qr{constructor(t){super("RPCErr".concat(e.code,": RPC Client invoke method reason (").concat(t,")"),e.code),this.reason=t}}).code=53,si=oi}}),Bi=ki({"src/domain/errors/index.ts"(){Ri()}}),Ni=ki({"src/domain/events/index.ts"(){ci=class{constructor(){Ci(this,ai,new r.EventEmitter)}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];Pi(this,ai).emit(e,...n)}on(e,t){return Pi(this,ai).on(e,t),()=>{this.off(e,t)}}off(e,t){Pi(this,ai).off(e,t)}removeListener(e,t){Pi(this,ai).off(e,t)}once(e,t){return Pi(this,ai).once(e,t),()=>{this.off(e,t)}}listenerCount(e){return Pi(this,ai).listenerCount(e)}},ai=new WeakMap}});function Ui(e,t){return e.includes(t)||e.includes("metamask-sdk:*")||e.includes("*")}var ji,Li,Fi,Di=ki({"src/domain/logger/index.ts"(){li=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"214";const t=i(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"metamask-sdk");return t.color=e,t},ui=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"metamask-sdk";i.enable(e)},di=(e,t)=>Ti(null,null,function*(){var n;if("process"in globalThis&&(null==(n=null==hi?void 0:{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0})?void 0:n.DEBUG)){const{DEBUG:t}={};return Ui(t,e)}const r=yield t.getDebug();return!!r&&Ui(r,e)})}}),zi=ki({"src/domain/multichain/api/constants.ts"(){ji={"eip155:1":"https://mainnet.infura.io/v3/","eip155:5":"https://goerli.infura.io/v3/","eip155:11155111":"https://sepolia.infura.io/v3/","eip155:59144":"https://linea-mainnet.infura.io/v3/","eip155:59140":"https://linea-goerli.infura.io/v3/","eip155:137":"https://polygon-mainnet.infura.io/v3/","eip155:80001":"https://polygon-mumbai.infura.io/v3/","eip155:10":"https://optimism-mainnet.infura.io/v3/","eip155:420":"https://optimism-goerli.infura.io/v3/","eip155:42161":"https://arbitrum-mainnet.infura.io/v3/","eip155:421613":"https://arbitrum-goerli.infura.io/v3/","eip155:11297108109":"https://palm-mainnet.infura.io/v3/","eip155:11297108099":"https://palm-testnet.infura.io/v3/","eip155:43114":"https://avalanche-mainnet.infura.io/v3/","eip155:43113":"https://avalanche-fuji.infura.io/v3/","eip155:1313161554":"https://aurora-mainnet.infura.io/v3/","eip155:1313161555":"https://aurora-testnet.infura.io/v3/","eip155:42220":"https://celo-mainnet.infura.io/v3/","eip155:44787":"https://celo-alfajores.infura.io/v3/"},Li=new Set(["eth_blockNumber","eth_gasPrice","eth_maxPriorityFeePerGas","eth_blobBaseFee","eth_feeHistory","eth_getBalance","eth_getCode","eth_getStorageAt","eth_call","eth_estimateGas","eth_getLogs","eth_getProof","eth_getTransactionCount","eth_getBlockByNumber","eth_getBlockByHash","eth_getBlockTransactionCountByNumber","eth_getBlockTransactionCountByHash","eth_getUncleCountByBlockNumber","eth_getUncleCountByBlockHash","eth_getTransactionByHash","eth_getTransactionByBlockNumberAndIndex","eth_getTransactionByBlockHashAndIndex","eth_getTransactionReceipt","eth_getUncleByBlockNumberAndIndex","eth_getUncleByBlockHashAndIndex","eth_getFilterChanges","eth_getFilterLogs","eth_newBlockFilter","eth_newFilter","eth_newPendingTransactionFilter","eth_sendRawTransaction","eth_syncing","eth_uninstallFilter"]),Fi=new Set(["eth_accounts","eth_chainId"])}});function qi(e){return Object.keys(ji).reduce((t,n)=>{const r=n;return t[r]="".concat(ji[r]).concat(e),t},{})}var Hi,Wi,Ki=ki({"src/domain/multichain/api/infura.ts"(){zi()}});var $i,Vi,Gi=ki({"src/domain/multichain/index.ts"(){Ni(),zi(),Ki(),Hi=(e=>(e.Browser="browser",e.MWP="mwp",e.UNKNOWN="unknown",e))(Hi||{}),Wi=class extends ci{constructor(e){super(),this.options=e}}}});function Ji(){var e;const t="undefined"!==typeof window&&void 0!==window.navigator;return!!(t?window.navigator:void 0)&&(t&&"ReactNative"===(null==(e=window.navigator)?void 0:e.product))}function Zi(){return Ji()?"react-native":function(){var e;return"undefined"===typeof window||!(null==window?void 0:window.navigator)||"undefined"!==typeof global&&"ReactNative"===(null==(e=null==global?void 0:global.navigator)?void 0:e.product)||"ReactNative"===(null==navigator?void 0:navigator.product)}()?"nodejs":"undefined"!==typeof window&&Boolean(window.ReactNativeWebView)&&Boolean(window.navigator.userAgent.endsWith("MetaMaskMobile"))?"in-app-browser":function(){var e,t;const n=o.parse(window.navigator.userAgent);return"mobile"===(null==(e=null==n?void 0:n.platform)?void 0:e.type)||"tablet"===(null==(t=null==n?void 0:n.platform)?void 0:t.type)}()?"web-mobile":"web-desktop"}function Yi(){const e=Zi();return Ji()||"web-mobile"===e}function Qi(){return Ti(this,null,function*(){return Vi})}var Xi,eo,to,no,ro=ki({"src/domain/platform/index.ts"(){$i=(e=>(e.NonBrowser="nodejs",e.MetaMaskMobileWebview="in-app-browser",e.DesktopWeb="web-desktop",e.MobileWeb="web-mobile",e.ReactNative="react-native",e))($i||{}),Vi=Ti(null,null,function*(){const e=Zi();return"nodejs"===e||"react-native"===e?Promise.resolve(!1):new Promise(e=>{const t=[],n=e=>{var n,r;(null==(r=null==(n=null==e?void 0:e.detail)?void 0:n.info)?void 0:r.rdns)&&t.push(e.detail)};window.addEventListener("eip6963:announceProvider",n),window.dispatchEvent(new Event("eip6963:requestProvider")),setTimeout(()=>{window.removeEventListener("eip6963:announceProvider",n);const r=t.some(e=>{var t,n;return null==(n=null==(t=null==e?void 0:e.info)?void 0:t.rdns)?void 0:n.startsWith("io.metamask")});e(r)},300)})})}}),io=ki({"src/domain/store/adapter.ts"(){Xi=class{constructor(e){this.options=e}}}}),oo=ki({"src/domain/store/client.ts"(){eo=class{}}}),so=ki({"src/domain/store/index.ts"(){io(),oo()}}),ao=ki({"src/domain/ui/types.ts"(){to=class{constructor(e){this.options=e}get isMounted(){return void 0!==this.instance}get data(){if("object"===typeof this.options&&this.options&&"link"in this.options)return this.options.link;if("object"===typeof this.options&&this.options&&"otpCode"in this.options)return this.options.otpCode;throw new Error("Invalid options")}set data(e){"object"===typeof this.options&&this.options&&"link"in this.options&&(this.options.link=e),"object"===typeof this.options&&this.options&&"otpCode"in this.options&&(this.options.otpCode=e)}}}}),co=ki({"src/domain/ui/index.ts"(){ao()}});function lo(e){const t=Sn(e);return function(e){if("undefined"!==typeof btoa)return btoa(e);if("undefined"!==typeof Buffer)return Buffer.from(e).toString("base64");throw new Error("No base64 encoding method available")}(String.fromCharCode.apply(null,Array.from(t)))}function uo(e){var t;return null!=(t=e.url)?t:e.name}function ho(e,t,n){const{mobile:r}=e;if(!r||void 0===r.useDeeplink||r.useDeeplink)"undefined"!==typeof window&&(window.location.href=t);else if("undefined"!==typeof document){const e=document.createElement("a");e.href=n,e.target="_self",e.rel="noreferrer noopener",e.click()}}function fo(e){return e.reduce((e,t)=>Ai(xi({},e),{[t]:{methods:[],notifications:[],accounts:[]}}),{})}function po(e,t,n,r){if(!(e.every(e=>t.includes(e))&&t.every(t=>e.includes(t))))return!1;const i=Object.values(n.sessionScopes).filter(e=>{let{accounts:t}=e;return Boolean(t)}).flatMap(e=>{let{accounts:t}=e;return null!=t?t:[]});return r.every(e=>i.includes(e))}function mo(e){return e.reduce((e,t)=>{try{return[...e,(0,Pn.Dz)(t)]}catch(Se){const r=JSON.stringify(t);return console.error("Invalid CAIP account ID: ".concat(r),Se),e}},[])}function go(e,t){var n;if(!e||!(null==t?void 0:t.length))return e;const r=Object.fromEntries(Object.entries(e).map(e=>{let[t,n]=e;var r,i,o;return[t,{methods:[...null!=(r=null==n?void 0:n.methods)?r:[]],notifications:[...null!=(i=null==n?void 0:n.notifications)?i:[]],accounts:[...null!=(o=null==n?void 0:n.accounts)?o:[]]}]})),i=new Map;for(const s of t){const e="".concat(s.chain.namespace,":").concat(s.chain.reference),t="".concat(s.chainId,":").concat(s.address);i.has(e)||i.set(e,[]),null==(n=i.get(e))||n.push(t)}for(const[s,a]of Object.entries(r))if(null==a?void 0:a.accounts)try{const e=s,t=(0,Pn.rW)(e),n="".concat(t.namespace,":").concat(t.reference),r=i.get(n);if(r){const e=new Set(a.accounts),t=r.filter(t=>!e.has(t));a.accounts.push(...t)}}catch(o){console.error("Invalid scope format: ".concat(s),o)}return r}var yo=ki({"src/multichain/utils/index.ts"(){Ao(),no=()=>{var e;if("undefined"===typeof document)return;let t;const n=document.getElementsByTagName("link");for(let r=0;r<n.length;r++)"icon"!==n[r].getAttribute("rel")&&"shortcut icon"!==n[r].getAttribute("rel")||(t=null!=(e=n[r].getAttribute("href"))?e:void 0);return t}}});function bo(e){var t,n;if("object"!==typeof e||null===e)return!1;const r=e,i=r.code,o=null!=(n=null==(t=r.message)?void 0:t.toLowerCase())?n:"";return 4001===i||4100===i||o.includes("reject")||o.includes("denied")||o.includes("cancel")||o.includes("user")}function vo(e,t){return Ti(this,null,function*(){var n,r;const i=uo(e.dapp),o=Zi(),s=yield t.getAnonId();return{mmconnect_version:"0.0.0",dapp_id:i,platform:o,integration_type:null!=(r=null==(n=e.analytics)?void 0:n.integrationType)?r:"unknown",anon_id:s}})}function wo(e,t,n){return Ti(this,null,function*(){var r,i;const o=uo(e.dapp),s=yield t.getAnonId(),a=null!=(i=null==(r=e.analytics)?void 0:r.integrationType)?i:"unknown";return{mmconnect_version:"0.0.0",dapp_id:o,method:n.request.method,integration_type:a,caip_chain_id:n.scope,anon_id:s}})}var _o=ki({"src/multichain/utils/analytics.ts"(){yo(),Ao()}});var xo=ki({"src/domain/utils/index.ts"(){_o()}}),Ao=ki({"src/domain/index.ts"(){Bi(),Ni(),Di(),Gi(),ro(),so(),co(),xo()}});var ko,Eo,So,Po,Co,Io=ki({"src/ui/modals/base/utils.ts"(){}}),Mo=ki({"src/ui/modals/base/AbstractInstallModal.ts"(){Ao(),Io(),ko=li("metamask-sdk:ui"),Eo=class extends to{constructor(){super(...arguments),this.expirationInterval=null,this.lastLoggedCountdown=-1}get link(){return this.data}set link(e){this.data=e}get connectionRequest(){return this.options.connectionRequest}set connectionRequest(e){this.options.connectionRequest=e}updateLink(e){this.link=e,this.instance&&(this.instance.link=e)}updateExpiresIn(e){e>=0&&this.instance&&(this.instance.expiresIn=e)}startExpirationCheck(e){this.stopExpirationCheck();let t=e;this.expirationInterval=setInterval(()=>Ti(this,null,function*(){const{sessionRequest:e}=t,n=Date.now(),r=e.expiresAt-n,i=Math.floor(r/1e3);if(r>0&&function(e){return e<=10||(e<=30?e%5===0:e<=60?e%10===0:e<=300?e%30===0:e%60===0)}(i)&&this.lastLoggedCountdown!==i){const e=function(e){if(e<=0)return"EXPIRED";const t=Math.floor(e/1e3);return"".concat(t,"s")}(r);ko("[UI: InstallModal-nodejs()] QR code expires in: ".concat(e," (").concat(i,"s)")),this.lastLoggedCountdown=i}if(n>=e.expiresAt){this.stopExpirationCheck(),ko("[UI: InstallModal-nodejs()] \u23f0 QR code EXPIRED! Generating new one...");try{t=yield this.options.createConnectionRequest();const e=yield this.options.generateQRCode(t);this.lastLoggedCountdown=-1,this.updateLink(e),this.updateExpiresIn(i),this.renderQRCode(e,t)}catch(o){ko("[UI: InstallModal-nodejs()] \u274c Error generating new QR code: ".concat(o))}}}),1e3)}stopExpirationCheck(){this.expirationInterval&&(clearInterval(this.expirationInterval),this.expirationInterval=null,ko("[UI: InstallModal-nodejs()] \ud83d\uded1 Stopped QR code expiration checking"))}}}}),To=ki({"src/ui/modals/web/install.ts"(){Mo(),So=class extends Eo{renderQRCode(){}mount(){var e;const{options:t}=this,n=document.createElement("mm-install-modal");n.showInstallModal=t.showInstallModal,n.sdkVersion=t.sdkVersion,n.addEventListener("close",e=>{const{detail:n}=e;t.onClose(null==n?void 0:n.shouldTerminate)}),n.addEventListener("startDesktopOnboarding",t.startDesktopOnboarding),n.link=t.link,this.instance=n,null==(e=t.parentElement)||e.appendChild(n),this.startExpirationCheck(t.connectionRequest)}unmount(){var e;const{options:t,instance:n}=this;this.stopExpirationCheck(),n&&(null==(e=t.parentElement)?void 0:e.contains(n))&&(t.parentElement.removeChild(n),this.instance=void 0)}}}}),Oo=ki({"src/ui/modals/base/AbstractOTPModal.ts"(){Ao(),Po=class extends to{get otpCode(){return this.data}set otpCode(e){this.data=e}updateOTPCode(e){this.otpCode=e,this.instance&&(this.instance.otpCode=e)}}}}),Ro=ki({"src/ui/modals/web/otp.ts"(){Oo(),Co=class extends Po{mount(){}unmount(){}}}}),Bo={};Ei(Bo,{InstallModal:()=>So,OTPCodeModal:()=>Co});var No,Uo,jo=ki({"src/ui/modals/web/index.ts"(){To(),Ro()}}),Lo={};Ei(Lo,{StoreAdapterWeb:()=>Uo});var Fo=ki({"src/store/adapters/web.ts"(){Ao(),No=class e extends Xi{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"-kv-store",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.stores[0];super(),this.storeName=n,this.platform="web";const r="".concat(e.DB_NAME).concat(t);this.dbPromise=new Promise((t,n)=>{try{const i=this.internal.open(r,1);i.onerror=()=>n(new Error("Failed to open IndexedDB.")),i.onsuccess=()=>t(i.result),i.onupgradeneeded=()=>{const t=i.result;for(const n of e.stores)t.objectStoreNames.contains(n)||t.createObjectStore(n)}}catch(i){n(i)}})}get internal(){if("undefined"===typeof window||!window.indexedDB)throw new Error("indexedDB is not available in this environment");return window.indexedDB}get(e){return Ti(this,null,function*(){const{storeName:t}=this,n=yield this.dbPromise;return new Promise((r,i)=>{try{const o=n.transaction(t,"readonly"),s=o.objectStore(t).get(e);s.onerror=()=>i(new Error("Failed to get value from IndexedDB.")),s.onsuccess=()=>{var e;return r(null!=(e=s.result)?e:null)}}catch(o){i(o)}})})}set(e,t){return Ti(this,null,function*(){const{storeName:n}=this,r=yield this.dbPromise;return new Promise((i,o)=>{try{const s=r.transaction(n,"readwrite"),a=s.objectStore(n).put(t,e);a.onerror=()=>o(new Error("Failed to set value in IndexedDB.")),a.onsuccess=()=>i()}catch(s){o(s)}})})}delete(e){return Ti(this,null,function*(){const{storeName:t}=this,n=yield this.dbPromise;return new Promise((r,i)=>{try{const o=n.transaction(t,"readwrite"),s=o.objectStore(t).delete(e);s.onerror=()=>i(new Error("Failed to delete value from IndexedDB.")),s.onsuccess=()=>r()}catch(o){i(o)}})})}},No.stores=["sdk-kv-store","key-value-pairs"],No.DB_NAME="mmsdk",Uo=No}}),Do="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof global?global:"undefined"!==typeof window?window:{};Do.Buffer||(Do.Buffer=Cn.Buffer);var zo="https://metamask.app.link/connect",qo="metamask://connect";Ao(),_o(),Di(),Gi(),ro(),Ao();var Ho=1;var Wo,Ko,$o,Vo,Go,Jo,Zo=class extends Error{},Yo=class{constructor(e,t){this.config=e,this.sdkInfo=t}request(e){return Ti(this,null,function*(){const{request:t}=e,n=JSON.stringify({jsonrpc:"2.0",method:t.method,params:t.params,id:Ho+=1}),r=this.getRpcEndpoint(e.scope),i=yield this.fetchWithTimeout(r,n,"POST",this.getHeaders(r),3e4);return yield this.parseResponse(i)})}getRpcEndpoint(e){var t,n,r;const i=(null!=(r=null==(n=null==(t=this.config)?void 0:t.api)?void 0:n.supportedNetworks)?r:{})[e];if(!i)throw new Zo("No RPC endpoint found for scope ".concat(e));return i}fetchWithTimeout(e,t,n,r,i){return Ti(this,null,function*(){const o=new AbortController,s=setTimeout(()=>o.abort(),i);try{const i=yield zn(e,{method:n,headers:r,body:t,signal:o.signal});if(clearTimeout(s),!i.ok)throw new ei(e,n,i.status);return i}catch(a){if(clearTimeout(s),a instanceof ei)throw a;if(a instanceof Error&&"AbortError"===a.name)throw new ii("Request timeout after ".concat(i,"ms"));throw new ii(a instanceof Error?a.message:"Unknown error")}})}parseResponse(e){return Ti(this,null,function*(){try{return(yield e.json()).result}catch(t){throw new ni(t.message)}})}getHeaders(e){const t={Accept:"application/json","Content-Type":"application/json"};return e.includes("infura")?Ai(xi({},t),{"Metamask-Sdk-Info":this.sdkInfo}):t}};Ao(),yo(),_o();var Qo=class{constructor(e,t,n){this.transport=e,this.rpcClient=t,this.config=n,Ci(this,Wo)}invokeMethod(e){return Ti(this,null,function*(){const t=e.request.method;return Li.has(t)?this.handleWithRpcNode(e):Fi.has(t)?this.handleWithSdkState(e):this.handleWithWallet(e)})}handleWithWallet(e){return Ti(this,null,function*(){return Mi(this,Wo,Ko).call(this,e,()=>Ti(this,null,function*(){const t=this.transport.request({method:"wallet_invokeMethod",params:e}),{ui:n,mobile:r}=this.config,{showInstallModal:i=!1}=null!=n?n:{};Yi()&&!i&&setTimeout(()=>Ti(this,null,function*(){const e=yield this.transport.getActiveSession();if(!e)throw new Error("No active session found");const t="".concat(qo,"/mwp?id=").concat(encodeURIComponent(e.id));(null==r?void 0:r.preferredOpenLink)?r.preferredOpenLink(t,"_self"):ho(this.config,t,zo)}),10);const o=yield t;if(o.error)throw new si("RPC Request failed with code ".concat(o.error.code,": ").concat(o.error.message));return o.result}))})}handleWithRpcNode(e){return Ti(this,null,function*(){return Mi(this,Wo,Ko).call(this,e,()=>Ti(this,null,function*(){try{return yield this.rpcClient.request(e)}catch(t){if(t instanceof Zo)return this.handleWithWallet(e);throw t}}))})}handleWithSdkState(e){return Ti(this,null,function*(){return console.warn('Method "'.concat(e.request.method,'" is configured for SDK state handling, but this is not yet implemented. Falling back to wallet passthrough.')),this.handleWithWallet(e)})}};Wo=new WeakSet,Ko=function(e,t){return Ti(this,null,function*(){yield Mi(this,Wo,$o).call(this,e);try{const n=yield t();return yield Mi(this,Wo,Vo).call(this,e),n}catch(n){throw bo(n)?yield Mi(this,Wo,Jo).call(this,e):yield Mi(this,Wo,Go).call(this,e),new si(n.message)}})},$o=function(e){return Ti(this,null,function*(){const t=yield wo(this.config,this.config.storage,e);In.z.track("mmconnect_wallet_action_requested",t)})},Vo=function(e){return Ti(this,null,function*(){const t=yield wo(this.config,this.config.storage,e);In.z.track("mmconnect_wallet_action_succeeded",t)})},Go=function(e){return Ti(this,null,function*(){const t=yield wo(this.config,this.config.storage,e);In.z.track("mmconnect_wallet_action_failed",t)})},Jo=function(e){return Ti(this,null,function*(){const t=yield wo(this.config,this.config.storage,e);In.z.track("mmconnect_wallet_action_rejected",t)})},yo();var Xo,es,ts,ns,rs,is,os,ss,as,cs,ls,us,ds,hs=class{constructor(){Ci(this,ss),Ci(this,Xo,new Set),Ci(this,es,Xn()),Ci(this,ts,{timeout:6e4}),Ci(this,ns,Date.now()),Ci(this,rs,new Map),Ci(this,is),Ci(this,os)}sendEip1193Message(e,t){return Ti(this,null,function*(){Mi(this,ss,ds).call(this),Ii(this,ns,Pi(this,ns)+1);const n="".concat(Pi(this,ns)),r=xi({jsonrpc:"2.0",id:n},e);return new Promise((e,i)=>{var o;const s=setTimeout(()=>{Pi(this,rs).delete(n),i(new Error("Request timeout"))},null!=(o=null==t?void 0:t.timeout)?o:Pi(this,ts).timeout);Pi(this,rs).set(n,{resolve:t=>{e(t)},reject:i,timeout:s}),window.postMessage({target:"metamask-contentscript",data:{name:"metamask-provider",data:r}},location.origin)})})}connect(e){return Ti(this,null,function*(){var t,n,r,i,o,s,a;Mi(this,ss,ds).call(this),yield Pi(this,es).connect();const c=yield this.request({method:"wallet_getSession"},Pi(this,ts));if(c.error)throw new Error(c.error.message);let l=c.result;if(l&&e&&!e.forceRequest){if(!po(Object.keys(null!=(t=null==l?void 0:l.sessionScopes)?t:{}),null!=(n=null==e?void 0:e.scopes)?n:[],l,null!=(r=null==e?void 0:e.caipAccountIds)?r:[])){yield this.request({method:"wallet_revokeSession",params:l},Pi(this,ts));const t={optionalScopes:go(fo(null!=(i=null==e?void 0:e.scopes)?i:[]),mo(null!=(o=null==e?void 0:e.caipAccountIds)?o:[]))},n=yield this.request({method:"wallet_createSession",params:t},Pi(this,ts));if(n.error)throw new Error(n.error.message);l=n.result}}else if(!l||(null==e?void 0:e.forceRequest)){const t={optionalScopes:go(fo(null!=(s=null==e?void 0:e.scopes)?s:[]),mo(null!=(a=null==e?void 0:e.caipAccountIds)?a:[])),sessionProperties:null==e?void 0:e.sessionProperties},n=yield this.request({method:"wallet_createSession",params:t},Pi(this,ts));if(n.error)throw new Error(n.error.message);l=n.result}Mi(this,ss,as).call(this,{method:"wallet_sessionChanged",params:l})})}disconnect(){return Ti(this,null,function*(){Pi(this,Xo).clear(),yield this.request({method:"wallet_revokeSession",params:{}}),Pi(this,is)&&(window.removeEventListener("message",Pi(this,is)),Ii(this,is,void 0)),Pi(this,os)&&(window.removeEventListener("message",Pi(this,os)),Ii(this,os,void 0));for(const[,e]of Pi(this,rs))clearTimeout(e.timeout),e.reject(new Error("Transport disconnected"));return Pi(this,rs).clear(),Pi(this,es).disconnect()})}isConnected(){return Pi(this,es).isConnected()}request(e){return Ti(this,arguments,function(e){var t=this;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pi(this,ts);return function*(){return Pi(t,es).request(e,n)}()})}onNotification(e){return Pi(this,es).onNotification(e),Pi(this,Xo).add(e),()=>{Pi(this,Xo).delete(e)}}getActiveSession(){throw new Error("getActiveSession is purposely not implemented for the DefaultTransport")}};Xo=new WeakMap,es=new WeakMap,ts=new WeakMap,ns=new WeakMap,rs=new WeakMap,is=new WeakMap,os=new WeakMap,ss=new WeakSet,as=function(e){for(const n of Pi(this,Xo))try{n(e)}catch(t){console.log("[WindowPostMessageTransport] notifyCallbacks error:",t)}},cs=function(e){var t,n;return"metamask-provider"===(null==(n=null==(t=null==e?void 0:e.data)?void 0:t.data)?void 0:n.name)&&e.origin===location.origin},ls=function(e){var t,n;if(!Mi(this,ss,cs).call(this,e))return;const r=null==(n=null==(t=null==e?void 0:e.data)?void 0:t.data)?void 0:n.data;if(("object"!==typeof r||null===r||!("method"in r))&&"object"===typeof r&&null!==r&&"id"in r&&("result"in r||"error"in r)){const e=String(r.id),t=Pi(this,rs).get(e);if(t){clearTimeout(t.timeout),Pi(this,rs).delete(e);const n=r;"error"in n&&n.error?t.reject(new Error(n.error.message||"Request failed")):t.resolve(n)}}},us=function(e){var t,n;if(!Mi(this,ss,cs).call(this,e))return;const r=null==(n=null==(t=null==e?void 0:e.data)?void 0:t.data)?void 0:n.data;("object"===typeof r&&"metamask_chainChanged"===r.method||"metamask_accountsChanged"===r.method)&&Mi(this,ss,as).call(this,r)},ds=function(){Pi(this,is)||(Ii(this,is,Mi(this,ss,ls).bind(this)),Ii(this,os,Mi(this,ss,us).bind(this)),window.addEventListener("message",Pi(this,is)),window.addEventListener("message",Pi(this,os)))},Ao(),yo();var fs="metamask-multichain-provider",ps="cache_wallet_getSession",ms="cache_eth_accounts",gs="cache_eth_chainId",ys=["wallet_getSession","wallet_createSession","wallet_sessionChanged"],bs=["wallet_revokeSession","wallet_revokePermissions"],vs=li("metamask-sdk:transport"),ws=class{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{requestTimeout:6e4,connectionTimeout:12e4,resumeTimeout:1e4};this.dappClient=e,this.kvstore=t,this.options=n,this.__reqId=0,this.__pendingRequests=new Map,this.notificationCallbacks=new Set,this.dappClient.on("message",this.handleMessage.bind(this)),"undefined"!==typeof window&&"undefined"!==typeof window.addEventListener&&(this.windowFocusHandler=this.onWindowFocus.bind(this),window.addEventListener("focus",this.windowFocusHandler))}get pendingRequests(){return this.__pendingRequests}set pendingRequests(e){this.__pendingRequests=e}get sessionRequest(){return this.currentSessionRequest}onWindowFocus(){this.isConnected()||this.dappClient.reconnect()}notifyCallbacks(e){this.notificationCallbacks.forEach(t=>t(e))}rejectRequest(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Error("Request rejected");const n=this.pendingRequests.get(e);n&&(this.pendingRequests.delete(e),clearTimeout(n.timeout),n.reject(t))}handleMessage(e){if("object"===typeof e&&null!==e&&"data"in e){const t=e.data;if("id"in t&&"string"===typeof t.id){const e=this.pendingRequests.get(t.id);if(e){const n=Ai(xi({},t),{method:"wallet_getSession"===e.method||"wallet_createSession"===e.method?"wallet_sessionChanged":e.method}),r=Ai(xi({},t),{method:"wallet_getSession"===e.method||"wallet_createSession"===e.method?"wallet_sessionChanged":e.method,params:n.result});clearTimeout(e.timeout),this.notifyCallbacks(r),e.resolve(n),this.pendingRequests.delete(t.id)}}else{if("metamask_chainChanged"===e.data.method&&this.kvstore.set(gs,JSON.stringify(e.data.params.chainId)),"metamask_accountsChanged"===e.data.method&&this.kvstore.set(ms,JSON.stringify(e.data.params)),"wallet_sessionChanged"===e.data.method){const t={result:e.data.params};this.kvstore.set(ps,JSON.stringify(t))}this.notifyCallbacks(e.data)}}}onResumeSuccess(e,t,n){return Ti(this,null,function*(){var r,i,o,s,a,c,l;try{yield this.waitForWalletSessionIfNotCached();const u=yield this.request({method:"wallet_getSession"});if(u.error)return t(new Error(u.error.message));let d=u.result;if(d&&n){const e=Object.keys(null!=(r=null==d?void 0:d.sessionScopes)?r:{}),c=null!=(i=null==n?void 0:n.scopes)?i:[],l=null!=(o=null==n?void 0:n.caipAccountIds)?o:[];if(!po(e,c,d,l)){const e={optionalScopes:go(fo(null!=(s=null==n?void 0:n.scopes)?s:[]),mo(null!=(a=null==n?void 0:n.caipAccountIds)?a:[]))},r=yield this.request({method:"wallet_createSession",params:e});if(r.error)return t(new Error(r.error.message));d=r.result}}else if(!d){const e={optionalScopes:go(fo(null!=(c=null==n?void 0:n.scopes)?c:[]),mo(null!=(l=null==n?void 0:n.caipAccountIds)?l:[]))},r=yield this.request({method:"wallet_createSession",params:e});if(r.error)return t(new Error(r.error.message));d=r.result}return this.notifyCallbacks({method:"wallet_sessionChanged",params:d}),e()}catch(Se){return t(Se)}})}sendEip1193Message(e,t){return Ti(this,null,function*(){const n=xi({jsonrpc:"2.0",id:"".concat(this.__reqId++)},e),r=yield this.getCachedResponse(n);return r?(this.notifyCallbacks(r),r):new Promise((e,r)=>{var i;const o=setTimeout(()=>{this.rejectRequest(n.id,new Ln)},null!=(i=null==t?void 0:t.timeout)?i:this.options.requestTimeout);this.pendingRequests.set(n.id,{request:n,method:n.method,resolve:t=>Ti(this,null,function*(){return yield this.storeWalletSession(n,t),e(t)}),reject:r,timeout:o}),this.dappClient.sendRequest({name:"metamask-provider",data:n}).catch(r)})})}connect(e){return Ti(this,null,function*(){const{dappClient:t}=this,n=yield this.getActiveSession();let r,i;n&&vs("active session found",n);const o=new Promise((o,s)=>Ti(this,null,function*(){let a;a=new Promise(n?(r,i)=>{var o;"CONNECTED"===this.dappClient.state?this.onResumeSuccess(r,i,e):(this.dappClient.once("connected",()=>Ti(this,null,function*(){this.onResumeSuccess(r,i,e)})),t.resume(null!=(o=null==n?void 0:n.id)?o:""))}:(n,r)=>{var o,s;const a={optionalScopes:go(fo(null!=(o=null==e?void 0:e.scopes)?o:[]),mo(null!=(s=null==e?void 0:e.caipAccountIds)?s:[])),sessionProperties:null==e?void 0:e.sessionProperties},c={jsonrpc:"2.0",id:"".concat(this.__reqId++),method:"wallet_createSession",params:a};i=e=>Ti(this,null,function*(){if("object"===typeof e&&null!==e&&"data"in e){const t=e.data;if("wallet_createSession"===t.method||"wallet_sessionChanged"===t.method)return t.error?(i&&this.dappClient.off("message",i),r(t.error)):(yield this.storeWalletSession(c,t),this.notifyCallbacks(t),n())}}),this.dappClient.on("message",i),t.connect({mode:"trusted",initialPayload:{name:fs,data:c}}).catch(e=>{i&&this.dappClient.off("message",i),r(e)})}),r=setTimeout(()=>{s(new Ln)},this.options.connectionTimeout),a.then(o).catch(s)}));return o.catch(e=>{throw e}).finally(()=>{r&&clearTimeout(r),i&&(this.dappClient.off("message",i),i=void 0)})})}disconnect(){return Ti(this,null,function*(){return"undefined"!==typeof window&&"undefined"!==typeof window.removeEventListener&&this.windowFocusHandler&&(window.removeEventListener("focus",this.windowFocusHandler),this.windowFocusHandler=void 0),this.kvstore.delete(ps),this.kvstore.delete(ms),this.kvstore.delete(gs),this.dappClient.disconnect()})}isConnected(){return"CONNECTED"===this.dappClient.state}attemptResumeSession(){return Ti(this,null,function*(){try{yield this.dappClient.reconnect(),yield new Promise((e,t)=>{const n=setTimeout(()=>{t(new Error("Resume timeout"))},2e3);this.isConnected()?(clearTimeout(n),e()):this.dappClient.once("connected",()=>{clearTimeout(n),e()})})}catch(e){return Promise.reject(new Error("Failed to resume session: ".concat(e.message)))}})}getCachedResponse(e){return Ti(this,null,function*(){var t;if("wallet_getSession"===e.method){const n=yield this.kvstore.get(ps);if(n){const r=JSON.parse(n);return{id:e.id,jsonrpc:"2.0",result:null!=(t=r.params)?t:r.result,method:e.method}}}else if("eth_accounts"===e.method){const t=yield this.kvstore.get(ms);if(t)return{id:e.id,jsonrpc:"2.0",result:JSON.parse(t),method:e.method}}else if("eth_chainId"===e.method){const t=yield this.kvstore.get(gs);if(t)return{id:e.id,jsonrpc:"2.0",result:JSON.parse(t),method:e.method}}})}storeWalletSession(e,t){return Ti(this,null,function*(){t.error||(ys.includes(e.method)?yield this.kvstore.set(ps,JSON.stringify(t)):"eth_accounts"===e.method?yield this.kvstore.set(ms,JSON.stringify(t.result)):"eth_chainId"===e.method?yield this.kvstore.set(gs,JSON.stringify(t.result)):bs.includes(e.method)&&(yield this.kvstore.delete(ps),yield this.kvstore.delete(ms),yield this.kvstore.delete(gs)))})}request(e,t){return Ti(this,null,function*(){const n=xi({jsonrpc:"2.0",id:"".concat(this.__reqId++)},e),r=yield this.getCachedResponse(n);return r?(this.notifyCallbacks(r),r):(this.isConnected()||(yield this.attemptResumeSession()),new Promise((e,r)=>{var i;const o=setTimeout(()=>{this.rejectRequest(n.id,new Ln)},null!=(i=null==t?void 0:t.timeout)?i:this.options.requestTimeout);this.pendingRequests.set(n.id,{request:n,method:n.method,resolve:t=>Ti(this,null,function*(){return yield this.storeWalletSession(n,t),e(t)}),reject:r,timeout:o}),this.dappClient.sendRequest({name:fs,data:n}).catch(r)}))})}onNotification(e){return this.notificationCallbacks.add(e),()=>{this.notificationCallbacks.delete(e)}}getActiveSession(){return Ti(this,null,function*(){const{kvstore:e}=this,t=new Mn.c9(e);try{const[e]=yield t.list();return e}catch(n){return void vs("error getting active session",n)}})}waitForWalletSessionIfNotCached(){return Ti(this,null,function*(){if(yield this.kvstore.get(ps))return;let e;const t=new Promise(t=>{e=this.onNotification(n=>{if("object"===typeof n&&null!==n&&"data"in n){const r=n.data;"wallet_getSession"!==r.method&&"wallet_sessionChanged"!==r.method||(e(),t())}})}),n=new Promise((t,n)=>{setTimeout(()=>{e(),n(new Ln)},this.options.resumeTimeout)});return Promise.race([t,n])})}},_s=new class{generateKeyPair(){const e=new er.ZD;return{privateKey:new Uint8Array(e.secret),publicKey:e.publicKey.toBytes(!0)}}encrypt(e,t){return Ti(this,null,function*(){const n=Buffer.from(e,"utf8");return(0,er.w)(t,n).toString("base64")})}decrypt(e,t){return Ti(this,null,function*(){const n=Buffer.from(e,"base64"),r=yield(0,er.Yc)(t,n);return Buffer.from(r).toString("utf8")})}};yo();var xs,As,ks,Es,Ss,Ps=4294967295,Cs=Math.floor(Math.random()*Ps),Is=class{constructor(e){this.metamaskConnectMultichain=e,Ci(this,xs),this.requestId=Cs=(Cs+1)%Ps,this.notificationCallbacks=new Set}isTransportDefined(){try{return Boolean(this.metamaskConnectMultichain.transport)}catch(e){return!1}}clearNotificationCallbacks(){this.notificationCallbacks.clear()}notifyCallbacks(e){this.notificationCallbacks.forEach(t=>{t(e)})}setupNotifcationListener(){this.metamaskConnectMultichain.transport.onNotification(this.notifyCallbacks.bind(this))}connect(){return Ti(this,null,function*(){return console.log("\ud83d\udcda connect"),Promise.resolve()})}disconnect(){return Ti(this,null,function*(){return Promise.resolve()})}isConnected(){return!0}request(e){return Ti(this,arguments,function(e){var t=this;return function*(){const n=t.requestId++,r=xi({id:n,jsonrpc:"2.0"},e);switch(r.method){case"wallet_createSession":return Mi(t,xs,As).call(t,r);case"wallet_getSession":return Mi(t,xs,ks).call(t,r);case"wallet_revokeSession":return Mi(t,xs,Es).call(t,r);case"wallet_invokeMethod":return Mi(t,xs,Ss).call(t,r);default:throw new Error("Unsupported method: ".concat(r.method))}throw new Error("Unknown method: ".concat(r.method))}()})}onNotification(e){return this.isTransportDefined()?this.metamaskConnectMultichain.transport.onNotification(e):(this.notificationCallbacks.add(e),()=>{this.notificationCallbacks.delete(e)})}};xs=new WeakSet,As=function(e){return Ti(this,null,function*(){console.log("\ud83d\udcda #walletCreateSession",e);const t=e.params,n=Object.keys(xi(xi({},t.optionalScopes),t.requiredScopes)),r=[];n.forEach(e=>{var n,i,o,s;const a=null==(n=t.requiredScopes)?void 0:n[e],c=null==(i=t.optionalScopes)?void 0:i[e];a&&r.push(...null!=(o=a.accounts)?o:[]),c&&r.push(...null!=(s=c.accounts)?s:[])});const i=[...new Set(r)];return console.log("\ud83d\udcda SDK connect"),yield this.metamaskConnectMultichain.connect(n,i,t.sessionProperties),console.log("\ud83d\udcda SDK connected"),this.metamaskConnectMultichain.transport.request({method:"wallet_getSession"})})},ks=function(e){return Ti(this,null,function*(){return this.isTransportDefined()?this.metamaskConnectMultichain.transport.request({method:"wallet_getSession"}):{jsonrpc:"2.0",id:e.id,result:{sessionScopes:{}}}})},Es=function(e){return Ti(this,null,function*(){if(!this.isTransportDefined())return{jsonrpc:"2.0",id:e.id,result:!0};try{return this.metamaskConnectMultichain.disconnect(),{jsonrpc:"2.0",id:e.id,result:!0}}catch(t){return{jsonrpc:"2.0",id:e.id,result:!1}}})},Ss=function(e){return Ti(this,null,function*(){if(!this.isTransportDefined())return{error:Ur()};return{result:this.metamaskConnectMultichain.invokeMethod(e.params)}})};var Ms,Ts,Os,Rs,Bs,Ns,Us,js,Ls,Fs,Ds,zs,qs,Hs,Ws,Ks,$s,Vs,Gs,Js,Zs,Ys,Qs,Xs,ea=li("metamask-sdk:core");Ts=new WeakMap,Os=new WeakMap,Rs=new WeakMap,Bs=new WeakMap,Ns=new WeakMap,Us=new WeakMap,js=new WeakMap,Ls=new WeakSet,Fs=function(){return Ti(this,null,function*(){var e;const t=Zi();if(!("in-app-browser"===t||"web-desktop"===t||"web-mobile"===t)&&!("react-native"===t))return;const n=uo(this.options.dapp),r=yield this.storage.getAnonId(),{integrationType:i}=null!=(e=this.options.analytics)?e:{integrationType:""};In.z.setGlobalProperty("mmconnect_version","0.0.0"),In.z.setGlobalProperty("dapp_id",n),In.z.setGlobalProperty("anon_id",r),In.z.setGlobalProperty("platform",t),In.z.setGlobalProperty("integration_type",i),In.z.enable()})},Ds=function(e){return Ti(this,null,function*(){var t;"object"===typeof e&&null!==e&&"method"in e&&this.emit(e.method,null!=(t=e.params)?t:e.result)})},zs=function(){return Ti(this,null,function*(){const e=yield this.storage.getTransport(),t=yield Qi();if(e){if("browser"===e){if(t){const e=new hs;return Ii(this,Rs,e),Pi(this,Os).setupNotifcationListener(),Ii(this,Us,e.onNotification(Mi(this,Ls,Ds).bind(this))),e}}else if("mwp"===e){const{adapter:e}=this.options.storage,t=yield Mi(this,Ls,Ws).call(this),n=new ws(t,e);return Ii(this,Bs,t),Ii(this,Rs,n),Pi(this,Os).setupNotifcationListener(),Ii(this,Us,n.onNotification(Mi(this,Ls,Ds).bind(this))),n}yield this.storage.removeTransport()}})},qs=function(){return Ti(this,null,function*(){(yield Mi(this,Ls,zs).call(this))?(this.transport.isConnected()||(this.status="connecting",yield this.transport.connect()),this.status="connected",this.transport instanceof ws?yield this.storage.setTransport("mwp"):yield this.storage.setTransport("browser")):this.status="loaded"})},Hs=function(){return Ti(this,null,function*(){var e;try{if("undefined"!==typeof window&&(null==(e=window.mmsdk)?void 0:e.isInitialized))ea("MetaMaskSDK: init already initialized");else{yield Mi(this,Ls,Fs).call(this),yield Mi(this,Ls,qs).call(this);try{const e=yield vo(this.options,this.storage);In.z.track("mmconnect_initialized",e)}catch(t){ea("Error tracking initialized event",t)}"undefined"!==typeof window&&(window.mmsdk=this)}}catch(t){yield this.storage.removeTransport(),this.status="pending",ea("MetaMaskSDK error during initialization",t)}})},Ws=function(){return Ti(this,null,function*(){const{adapter:e}=this.options.storage,t=new Mn.c9(e),r="undefined"!==typeof window?WebSocket:(yield n.e(435).then(n.t.bind(n,9435,19))).WebSocket,i=yield Mn.TJ.create({url:"wss://mm-sdk-relay.api.cx.metamask.io/connection/websocket",kvstore:e,websocket:r});return new Tn.$({transport:i,sessionstore:t,keymanager:_s})})},Ks=function(){return Ti(this,null,function*(){if(Pi(this,Rs)instanceof ws)return;const{adapter:e}=this.options.storage,t=yield Mi(this,Ls,Ws).call(this);Ii(this,Bs,t);const n=new ws(t,e);Ii(this,Rs,n),Pi(this,Os).setupNotifcationListener(),Ii(this,Us,this.transport.onNotification(Mi(this,Ls,Ds).bind(this))),yield this.storage.setTransport("mwp")})},$s=function(){return Ti(this,null,function*(){var e;(null==(e=this.options.ui.factory.modal)?void 0:e.isMounted)&&(yield this.storage.removeTransport())})},Vs=function(){return"undefined"!==typeof window&&"undefined"!==typeof window.addEventListener&&window.addEventListener("beforeunload",Mi(this,Ls,$s).bind(this)),()=>{"undefined"!==typeof window&&"undefined"!==typeof window.removeEventListener&&window.removeEventListener("beforeunload",Mi(this,Ls,$s).bind(this))}},Gs=function(e,t,n,r){return Ti(this,null,function*(){return new Promise((i,o)=>{this.options.ui.factory.renderInstallModal(e,()=>Ti(this,null,function*(){return"CONNECTED"!==this.dappClient.state&&"CONNECTING"!==this.dappClient.state||(yield this.dappClient.disconnect()),new Promise(e=>{this.dappClient.on("session_request",t=>{e({sessionRequest:t,metadata:{dapp:this.options.dapp,sdk:{version:"0.0.0",platform:Zi()}}})}),(()=>Ti(this,null,function*(){var e;try{yield this.transport.connect({scopes:t,caipAccountIds:n,sessionProperties:r}),yield this.options.ui.factory.unload(),null==(e=this.options.ui.factory.modal)||e.unmount(),this.status="connected",yield this.storage.setTransport("mwp")}catch(i){i instanceof Mn.bd?i.code!==Mn.O4.REQUEST_EXPIRED&&(this.status="disconnected",o(i)):(this.status="disconnected",o(i instanceof Error?i:new Error(String(i))))}}))().catch(()=>{})})}),e=>Ti(this,null,function*(){e?(yield this.storage.removeTransport(),o(e)):(yield this.storage.setTransport("mwp"),i())}),e=>{this.emit("display_uri",e)}).catch(e=>{o(e instanceof Error?e:new Error(String(e)))})})})},Js=function(e,t,n,r){return Ti(this,null,function*(){null!=Pi(this,Ns)||Ii(this,Ns,Mi(this,Ls,Vs).call(this)),this.options.ui.headless?yield Mi(this,Ls,Zs).call(this,t,n,r):yield Mi(this,Ls,Gs).call(this,e,t,n,r)})},Zs=function(e,t,n){return Ti(this,null,function*(){return new Promise((r,i)=>{"CONNECTED"!==this.dappClient.state&&"CONNECTING"!==this.dappClient.state||this.dappClient.disconnect().catch(()=>{}),this.dappClient.on("session_request",e=>{const t={sessionRequest:e,metadata:{dapp:this.options.dapp,sdk:{version:"0.0.0",platform:Zi()}}},n=this.options.ui.factory.createConnectionDeeplink(t);this.emit("display_uri",n)}),this.transport.connect({scopes:e,caipAccountIds:t,sessionProperties:n}).then(()=>Ti(this,null,function*(){this.status="connected",yield this.storage.setTransport("mwp"),r()})).catch(e=>Ti(this,null,function*(){e instanceof Mn.bd?(this.status="disconnected",yield this.storage.removeTransport(),i(e)):(this.status="disconnected",yield this.storage.removeTransport(),i(e instanceof Error?e:new Error(String(e))))}))})})},Ys=function(){return Ti(this,null,function*(){this.status="connecting",yield this.storage.setTransport("browser");const e=new hs;return Ii(this,Us,e.onNotification(Mi(this,Ls,Ds).bind(this))),Ii(this,Rs,e),Pi(this,Os).setupNotifcationListener(),e})},Qs=function(e,t,n){return Ti(this,null,function*(){return new Promise((r,i)=>{const o=e=>{var t;if("object"!==typeof e||null===e||!("data"in e))return;const n=e.data;"object"===typeof n&&null!==n&&(n.error&&(this.dappClient.off("message",o),i(n.error)),(null==(t=null==n?void 0:n.result)?void 0:t.sessionScopes)&&this.dappClient.off("message",o))};let s;return this.dappClient.on("message",o),this.transport.isConnected()?s=setTimeout(()=>{this.openDeeplinkIfNeeded()},250):this.dappClient.once("session_request",e=>{var t;const n={sessionRequest:e,metadata:{dapp:this.options.dapp,sdk:{version:"0.0.0",platform:Zi()}}},r=this.options.ui.factory.createConnectionDeeplink(n),i=this.options.ui.factory.createConnectionUniversalLink(n);this.emit("display_uri",r),(null==(t=this.options.mobile)?void 0:t.preferredOpenLink)?this.options.mobile.preferredOpenLink(r,"_self"):ho(this.options,r,i)}),this.transport.connect({scopes:e,caipAccountIds:t,sessionProperties:n}).then(r).catch(e=>Ti(this,null,function*(){yield this.storage.removeTransport(),this.dappClient.off("message",o),i(e instanceof Error?e:new Error(String(e)))})).finally(()=>{s&&clearTimeout(s)})})})},Xs=function(e,t,n){return Ti(this,null,function*(){return this.status="connecting",e.then(()=>Ti(this,null,function*(){this.status="connected";try{const e=yield vo(this.options,this.storage);In.z.track("mmconnect_connection_established",Ai(xi({},e),{transport_type:n,user_permissioned_chains:t}))}catch(e){ea("Error tracking connection_established event",e)}})).catch(e=>Ti(this,null,function*(){this.status="disconnected";try{const t=yield vo(this.options,this.storage);bo(e)?In.z.track("mmconnect_connection_rejected",Ai(xi({},t),{transport_type:n})):In.z.track("mmconnect_connection_failed",Ai(xi({},t),{transport_type:n}))}catch(t){ea("Error tracking connection failed/rejected event",e)}throw e}))})};var ta=class e extends Wi{constructor(e){var t,n,r,i,o,s;const a=function(e){var t,n;const r=Zi(),i="web-desktop"===r||"web-mobile"===r||"in-app-browser"===r;if(!(null==(t=e.dapp)?void 0:t.name))throw new Error("You must provide dapp name");if(i&&(e.dapp=Ai(xi({},e.dapp),{url:"".concat(window.location.protocol,"//").concat(window.location.host)})),!(null==(n=e.dapp)?void 0:n.url))throw new Error("You must provide dapp url");const o=/^(http|https):\/\/[^\s]*$/;if(e.dapp){"iconUrl"in e.dapp&&e.dapp.iconUrl&&!o.test(e.dapp.iconUrl)&&(console.warn("Invalid dappMetadata.iconUrl: URL must start with http:// or https://"),e.dapp.iconUrl=void 0),"base64Icon"in e.dapp&&e.dapp.base64Icon&&e.dapp.base64Icon.length>163400&&(console.warn("Invalid dappMetadata.base64Icon: Base64-encoded icon string length must be less than 163400 characters"),e.dapp.base64Icon=void 0),e.dapp.url&&!o.test(e.dapp.url)&&console.warn("Invalid dappMetadata.url: URL must start with http:// or https://");const t=no();if(t&&!("iconUrl"in e.dapp)&&!("base64Icon"in e.dapp)){const n="".concat(window.location.protocol,"//").concat(window.location.host).concat(t);e.dapp.iconUrl=n}}return e}(e),c=null!=(n=null==(t=e.analytics)?void 0:t.integrationType)?n:"direct";super(Ai(xi({},a),{ui:Ai(xi({},a.ui),{preferExtension:null==(r=a.ui.preferExtension)||r,showInstallModal:null!=(i=a.ui.showInstallModal)&&i,headless:null!=(o=a.ui.headless)&&o}),analytics:Ai(xi({},null!=(s=e.analytics)?s:{}),{integrationType:c})})),Ci(this,Ls),Ci(this,Ts),Ci(this,Os),Ci(this,Rs),Ci(this,Bs),Ci(this,Ns),this._status="pending",Ci(this,Us),Ci(this,js,"Sdk/Javascript SdkVersion/".concat("0.0.0"," Platform/").concat(Zi()," dApp/").concat(null!=(Ms=this.options.dapp.url)?Ms:this.options.dapp.name," dAppTitle/").concat(this.options.dapp.name)),Ii(this,Os,new Is(this)),Ii(this,Ts,Fn({transport:Pi(this,Os)}))}get status(){return this._status}set status(e){var t,n;this._status=e,null==(n=null==(t=this.options.transport)?void 0:t.onNotification)||n.call(t,{method:"stateChanged",params:e})}get provider(){return Pi(this,Ts)}get transport(){if(!Pi(this,Rs))throw new Error("Transport not initialized, establish connection first");return Pi(this,Rs)}get dappClient(){if(!Pi(this,Bs))throw new Error("DappClient not initialized, establish connection first");return Pi(this,Bs)}get storage(){return this.options.storage}get transportType(){return Pi(this,Rs)instanceof ws?"mwp":"browser"}static create(t){return Ti(this,null,function*(){var n;const r=new e(t);return(yield di("metamask-sdk:core",r.options.storage))&&ui("metamask-sdk:core"),yield Mi(n=r,Ls,Hs).call(n),r})}connect(e,t,n,r){return Ti(this,null,function*(){var i;"connected"!==this.status&&(yield this.disconnect());const{ui:o}=this.options,s=Zi(),a="in-app-browser"===s||"web-desktop"===s,{preferExtension:c=!0,showInstallModal:l=!1}=o,u=Yi(),d=yield Qi();let h;h="in-app-browser"===s||a&&d&&c?"browser":"mwp";try{const t=yield vo(this.options,this.storage),n=Object.keys(this.options.api.supportedNetworks);In.z.track("mmconnect_connection_initiated",Ai(xi({},t),{transport_type:h,dapp_configured_chains:n,dapp_requested_chains:e}))}catch(m){ea("Error tracking connection_initiated event",m)}const f=Object.keys(null!=n?n:{}).length>0?n:void 0;if((null==(i=Pi(this,Rs))?void 0:i.isConnected())&&!u)return Mi(this,Ls,Xs).call(this,Pi(this,Rs).connect({scopes:e,caipAccountIds:t,sessionProperties:f,forceRequest:r}).then(()=>Ti(this,null,function*(){return Pi(this,Rs)instanceof ws?this.storage.setTransport("mwp"):this.storage.setTransport("browser")})),e,h);if("in-app-browser"===s){const n=yield Mi(this,Ls,Ys).call(this);return Mi(this,Ls,Xs).call(this,n.connect({scopes:e,caipAccountIds:t,sessionProperties:f,forceRequest:r}),e,h)}if(a&&d&&c){const n=yield Mi(this,Ls,Ys).call(this);return Mi(this,Ls,Xs).call(this,n.connect({scopes:e,caipAccountIds:t,sessionProperties:f,forceRequest:r}),e,h)}yield Mi(this,Ls,Ks).call(this);const p=d?l:!c||l;return u&&!p?Mi(this,Ls,Xs).call(this,Mi(this,Ls,Qs).call(this,e,t,f),e,h):Mi(this,Ls,Xs).call(this,Mi(this,Ls,Js).call(this,p,e,t,f),e,h)})}emit(e,t){var n,r;null==(r=null==(n=this.options.transport)?void 0:n.onNotification)||r.call(n,{method:e,params:t}),super.emit(e,t)}disconnect(){return Ti(this,null,function*(){var e,t,n;yield null==(e=Pi(this,Us))?void 0:e.call(this),null==(t=Pi(this,Ns))||t.call(this),yield null==(n=Pi(this,Rs))?void 0:n.disconnect(),yield this.storage.removeTransport(),this.emit("stateChanged","disconnected"),Ii(this,Us,void 0),Ii(this,Ns,void 0),Ii(this,Rs,void 0),Pi(this,Os).clearNotificationCallbacks(),Ii(this,Bs,void 0)})}invokeMethod(e){return Ti(this,null,function*(){const{transport:t,options:n}=this,r=new Yo(n,Pi(this,js));return new Qo(t,r,n).invokeMethod(e)})}openDeeplinkIfNeeded(){const{ui:e,mobile:t}=this.options,{showInstallModal:n=!1}=null!=e?e:{};Yi()&&!n&&setTimeout(()=>Ti(this,null,function*(){const e=yield this.transport.getActiveSession();if(!e)throw new Error("No active session found");const n="".concat(qo,"/mwp?id=").concat(encodeURIComponent(e.id));(null==t?void 0:t.preferredOpenLink)?t.preferredOpenLink(n,"_self"):ho(this.options,n,zo)}),10)}};Oi();var na=class e extends Qr{constructor(t,n,r){super("StorageErr".concat(e.code,": ").concat(t," storage get error in key: ").concat(n," - ").concat(r),e.code),this.platform=t,this.key=n,this.reason=r}};na.code=60;var ra=na,ia=class e extends Qr{constructor(t,n,r){super("StorageErr".concat(e.code,": ").concat(t," storage set error in key: ").concat(n," - ").concat(r),e.code),this.platform=t,this.key=n,this.reason=r}};ia.code=61;var oa=ia,sa=class e extends Qr{constructor(t,n,r){super("StorageErr".concat(e.code,": ").concat(t," storage delete error in key: ").concat(n," - ").concat(r),e.code),this.platform=t,this.key=n,this.reason=r}};sa.code=62;var aa=sa;Gi(),oo();var ca=class extends eo{constructor(e){super(),this.adapter=e}getTransport(){return Ti(this,null,function*(){try{const e=yield this.adapter.get("multichain-transport");return e?function(e){switch(e){case"browser":return"browser";case"mwp":return"mwp";default:return"unknown"}}(e):null}catch(Se){throw new ra(this.adapter.platform,"multichain-transport",Se.message)}})}setTransport(e){return Ti(this,null,function*(){try{yield this.adapter.set("multichain-transport",e)}catch(Se){throw new oa(this.adapter.platform,"multichain-transport",Se.message)}})}removeTransport(){return Ti(this,null,function*(){try{yield this.adapter.delete("multichain-transport")}catch(Se){throw new aa(this.adapter.platform,"multichain-transport",Se.message)}})}getAnonId(){return Ti(this,null,function*(){try{const e=yield this.adapter.get("anonId");if(e)return e;const t=Fr.A();return yield this.adapter.set("anonId",t),t}catch(Se){throw new ra(this.adapter.platform,"anonId",Se.message)}})}getExtensionId(){return Ti(this,null,function*(){try{return yield this.adapter.get("extensionId")}catch(Se){throw new ra(this.adapter.platform,"extensionId",Se.message)}})}setAnonId(e){return Ti(this,null,function*(){try{return yield this.adapter.set("anonId",e)}catch(Se){throw new oa(this.adapter.platform,"anonId",Se.message)}})}setExtensionId(e){return Ti(this,null,function*(){try{return yield this.adapter.set("extensionId",e)}catch(Se){throw new oa(this.adapter.platform,"extensionId",Se.message)}})}removeExtensionId(){return Ti(this,null,function*(){try{return yield this.adapter.delete("extensionId")}catch(Se){throw new aa(this.adapter.platform,"extensionId",Se.message)}})}removeAnonId(){return Ti(this,null,function*(){try{return yield this.adapter.delete("anonId")}catch(Se){throw new aa(this.adapter.platform,"anonId",Se.message)}})}getDebug(){return Ti(this,null,function*(){try{return yield this.adapter.get("DEBUG")}catch(Se){throw new ra(this.adapter.platform,"DEBUG",Se.message)}})}};Ao(),yo();var la=class{constructor(e){this.options=e,this.platform=Zi(),this.validateModals()}validateModals(){const e=["InstallModal","OTPCodeModal"].filter(e=>!this.options[e]);if(e.length>0)throw new Error("Missing required modals: ".concat(e.join(", ")))}unload(e){return Ti(this,null,function*(){var t,n;null==(t=this.modal)||t.unmount(),yield null==(n=this.successCallback)?void 0:n.call(this,e)})}get isMobile(){return"react-native"===this.platform}get isNode(){return"nodejs"===this.platform}get isWeb(){return"web-desktop"===this.platform||"in-app-browser"===this.platform||"web-mobile"===this.platform}getContainer(){return"undefined"===typeof document?void 0:document.createElement("div")}getMountedContainer(){if("undefined"===typeof document)return;const e=this.getContainer();return e&&document.body.appendChild(e),e}createConnectionDeeplink(e){if(!e)throw new Error("createConnectionDeeplink can only be called with a connection request");const t=lo(JSON.stringify(e)),n=encodeURIComponent(t);return"".concat(qo,"/mwp?p=").concat(n,"&c=1")}createConnectionUniversalLink(e){if(!e)return"".concat(zo);const t=lo(JSON.stringify(e)),n=encodeURIComponent(t);return"".concat(zo,"/mwp?p=").concat(n,"&c=1")}onCloseModal(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return Ti(this,null,function*(){return this.unload(e?new Error("User closed modal"):void 0)})}onStartDesktopOnboarding(){(new Yr).startOnboarding()}renderInstallModal(e,t,n,r){return Ti(this,null,function*(){var i,o;null==(i=this.modal)||i.unmount(),yield this.preload(),this.successCallback=n,this.displayUriCallback=r;const s=this.getMountedContainer(),a=yield t(),c=this.createConnectionDeeplink(a);null==(o=this.displayUriCallback)||o.call(this,c);const l=new this.options.InstallModal({expiresIn:(a.sessionRequest.expiresAt-Date.now())/1e3,connectionRequest:a,parentElement:s,showInstallModal:e,link:c,sdkVersion:"0.0.0",generateQRCode:e=>Ti(this,null,function*(){var t;const n=this.createConnectionDeeplink(e);return null==(t=this.displayUriCallback)||t.call(this,n),n}),onClose:this.onCloseModal.bind(this),startDesktopOnboarding:this.onStartDesktopOnboarding.bind(this),createConnectionRequest:t,onDisplayUri:this.displayUriCallback});this.modal=l,l.mount()})}renderOTPCodeModal(e,t,n){return Ti(this,null,function*(){var r;null==(r=this.modal)||r.unmount(),yield this.preload(),this.successCallback=t;const i=this.getMountedContainer(),o=yield e(),s=new this.options.OTPCodeModal({parentElement:i,sdkVersion:"0.0.0",otpCode:o,onClose:this.onCloseModal.bind(this),createOTPCode:e,updateOTPCode:e=>n(e,s)});this.modal=s,s.mount()})}};var ua=class extends la{preload(){return Ti(this,null,function*(){return function(){return Ti(this,null,function*(){if("undefined"!==typeof document)try{const{defineCustomElements:e}=yield n.e(817).then(n.bind(n,3817));yield e()}catch(e){console.error("Failed to load customElements:",e)}})}()})}};Ao();var da=e=>Ti(null,null,function*(){const t=yield Promise.resolve().then(()=>(jo(),Bo));let n;if(e.storage)n=e.storage;else{const{StoreAdapterWeb:e}=yield Promise.resolve().then(()=>(Fo(),Lo)),t=new e;n=new ca(t)}const r=new ua(t);return ta.create(Ai(xi({},e),{storage:n,ui:Ai(xi({},e.ui),{factory:r})}))})},3506:(e,t,n)=>{"use strict";n.d(t,{q:()=>i});var r=n(9740);function i(e,t){return n=>{let{exclude:i,format:o}=n;return{exclude:i,format:(e,n)=>{const s=t(e,n);if(i)for(const t of i)delete s[t];return(0,r.A)((0,r.A)({},s),o(e,n))},type:e}}}},3514:(e,t,n)=>{"use strict";const r=n(9812);e.exports=(e,t)=>{const n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}},3530:(e,t,n)=>{"use strict";n.d(t,{Af:()=>f,ZJ:()=>l,aT:()=>h});var r=n(8090),i=n(226),o=n(2370),s=n(6091),a=n(4456);const c=new TextEncoder;function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"number"===typeof e||"bigint"===typeof e?function(e,t){const n=(0,a.cK)(e,t);return h(n)}(e,t):"boolean"===typeof e?function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new Uint8Array(1);if(n[0]=Number(e),"number"===typeof t.size)return(0,s.Sl)(n,{size:t.size}),(0,o.eV)(n,{size:t.size});return n}(e,t):(0,i.q)(e)?h(e,t):f(e,t)}const u={zero:48,nine:57,A:65,F:70,a:97,f:102};function d(e){return e>=u.zero&&e<=u.nine?e-u.zero:e>=u.A&&e<=u.F?e-(u.A-10):e>=u.a&&e<=u.f?e-(u.a-10):void 0}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e;t.size&&((0,s.Sl)(n,{size:t.size}),n=(0,o.eV)(n,{dir:"right",size:t.size}));let i=n.slice(2);i.length%2&&(i="0".concat(i));const a=i.length/2,c=new Uint8Array(a);for(let o=0,s=0;o<a;o++){const e=d(i.charCodeAt(s++)),t=d(i.charCodeAt(s++));if(void 0===e||void 0===t)throw new r.C('Invalid byte sequence ("'.concat(i[s-2]).concat(i[s-1],'" in "').concat(i,'").'));c[o]=16*e+t}return c}function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=c.encode(e);return"number"===typeof t.size?((0,s.Sl)(n,{size:t.size}),(0,o.eV)(n,{dir:"right",size:t.size})):n}},3563:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});const r={randomUUID:"undefined"!==typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var i=n(3648),o=n(2188);const s=function(e,t,n){var s,a,c,l;if(r.randomUUID&&!t&&!e)return r.randomUUID();const u=null!==(s=null!==(a=(e=e||{}).random)&&void 0!==a?a:null===(c=(l=e).rng)||void 0===c?void 0:c.call(l))&&void 0!==s?s:(0,i.A)();if(u.length<16)throw new Error("Random bytes length must be >= 16");if(u[6]=15&u[6]|64,u[8]=63&u[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError("UUID byte range ".concat(n,":").concat(n+15," is out of buffer bounds"));for(let e=0;e<16;++e)t[n+e]=u[e];return t}return(0,o.k)(u)}},3589:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!==i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!==i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!==i--;){var s=o[i];if(!e(t[s],n[s]))return!1}return!0}return t!==t&&n!==n}},3643:(e,t,n)=>{"use strict";const r=n(1227);e.exports=(e,t)=>new r(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "))},3648:(e,t,n)=>{"use strict";let r;n.d(t,{A:()=>o});const i=new Uint8Array(16);function o(){if(!r){if("undefined"===typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");r=crypto.getRandomValues.bind(crypto)}return r(i)}},3751:(e,t,n)=>{"use strict";const r=n(8116);e.exports=(e,t,n)=>r(e,t,n)<0},3794:(e,t,n)=>{"use strict";const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:o}=n(9070),s=n(4580),a=(t=e.exports={}).re=[],c=t.safeRe=[],l=t.src=[],u=t.safeSrc=[],d=t.t={};let h=0;const f="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",o],[f,i]],m=(e,t,n)=>{const r=(e=>{for(const[t,n]of p)e=e.split("".concat(t,"*")).join("".concat(t,"{0,").concat(n,"}")).split("".concat(t,"+")).join("".concat(t,"{1,").concat(n,"}"));return e})(t),i=h++;s(e,i,t),d[e]=i,l[i]=t,u[i]=r,a[i]=new RegExp(t,n?"g":void 0),c[i]=new RegExp(r,n?"g":void 0)};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-]".concat(f,"*")),m("MAINVERSION","(".concat(l[d.NUMERICIDENTIFIER],")\\.")+"(".concat(l[d.NUMERICIDENTIFIER],")\\.")+"(".concat(l[d.NUMERICIDENTIFIER],")")),m("MAINVERSIONLOOSE","(".concat(l[d.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(l[d.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(l[d.NUMERICIDENTIFIERLOOSE],")")),m("PRERELEASEIDENTIFIER","(?:".concat(l[d.NONNUMERICIDENTIFIER],"|").concat(l[d.NUMERICIDENTIFIER],")")),m("PRERELEASEIDENTIFIERLOOSE","(?:".concat(l[d.NONNUMERICIDENTIFIER],"|").concat(l[d.NUMERICIDENTIFIERLOOSE],")")),m("PRERELEASE","(?:-(".concat(l[d.PRERELEASEIDENTIFIER],"(?:\\.").concat(l[d.PRERELEASEIDENTIFIER],")*))")),m("PRERELEASELOOSE","(?:-?(".concat(l[d.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(l[d.PRERELEASEIDENTIFIERLOOSE],")*))")),m("BUILDIDENTIFIER","".concat(f,"+")),m("BUILD","(?:\\+(".concat(l[d.BUILDIDENTIFIER],"(?:\\.").concat(l[d.BUILDIDENTIFIER],")*))")),m("FULLPLAIN","v?".concat(l[d.MAINVERSION]).concat(l[d.PRERELEASE],"?").concat(l[d.BUILD],"?")),m("FULL","^".concat(l[d.FULLPLAIN],"$")),m("LOOSEPLAIN","[v=\\s]*".concat(l[d.MAINVERSIONLOOSE]).concat(l[d.PRERELEASELOOSE],"?").concat(l[d.BUILD],"?")),m("LOOSE","^".concat(l[d.LOOSEPLAIN],"$")),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE","".concat(l[d.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),m("XRANGEIDENTIFIER","".concat(l[d.NUMERICIDENTIFIER],"|x|X|\\*")),m("XRANGEPLAIN","[v=\\s]*(".concat(l[d.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(l[d.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(l[d.XRANGEIDENTIFIER],")")+"(?:".concat(l[d.PRERELEASE],")?").concat(l[d.BUILD],"?")+")?)?"),m("XRANGEPLAINLOOSE","[v=\\s]*(".concat(l[d.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(l[d.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(l[d.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(l[d.PRERELEASELOOSE],")?").concat(l[d.BUILD],"?")+")?)?"),m("XRANGE","^".concat(l[d.GTLT],"\\s*").concat(l[d.XRANGEPLAIN],"$")),m("XRANGELOOSE","^".concat(l[d.GTLT],"\\s*").concat(l[d.XRANGEPLAINLOOSE],"$")),m("COERCEPLAIN","".concat("(^|[^\\d])(\\d{1,").concat(r,"})")+"(?:\\.(\\d{1,".concat(r,"}))?")+"(?:\\.(\\d{1,".concat(r,"}))?")),m("COERCE","".concat(l[d.COERCEPLAIN],"(?:$|[^\\d])")),m("COERCEFULL",l[d.COERCEPLAIN]+"(?:".concat(l[d.PRERELEASE],")?")+"(?:".concat(l[d.BUILD],")?")+"(?:$|[^\\d])"),m("COERCERTL",l[d.COERCE],!0),m("COERCERTLFULL",l[d.COERCEFULL],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM","(\\s*)".concat(l[d.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",m("TILDE","^".concat(l[d.LONETILDE]).concat(l[d.XRANGEPLAIN],"$")),m("TILDELOOSE","^".concat(l[d.LONETILDE]).concat(l[d.XRANGEPLAINLOOSE],"$")),m("LONECARET","(?:\\^)"),m("CARETTRIM","(\\s*)".concat(l[d.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",m("CARET","^".concat(l[d.LONECARET]).concat(l[d.XRANGEPLAIN],"$")),m("CARETLOOSE","^".concat(l[d.LONECARET]).concat(l[d.XRANGEPLAINLOOSE],"$")),m("COMPARATORLOOSE","^".concat(l[d.GTLT],"\\s*(").concat(l[d.LOOSEPLAIN],")$|^$")),m("COMPARATOR","^".concat(l[d.GTLT],"\\s*(").concat(l[d.FULLPLAIN],")$|^$")),m("COMPARATORTRIM","(\\s*)".concat(l[d.GTLT],"\\s*(").concat(l[d.LOOSEPLAIN],"|").concat(l[d.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE","^\\s*(".concat(l[d.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(l[d.XRANGEPLAIN],")")+"\\s*$"),m("HYPHENRANGELOOSE","^\\s*(".concat(l[d.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(l[d.XRANGEPLAINLOOSE],")")+"\\s*$"),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},3808:(e,t,n)=>{"use strict";n.d(t,{DS:()=>k,OG:()=>_,Ph:()=>u,SJ:()=>E,aK:()=>v,d6:()=>s,dJ:()=>w,eV:()=>a,ex:()=>m,fg:()=>x,jN:()=>A,lX:()=>d,lq:()=>h,nC:()=>g,qj:()=>p,r4:()=>b,x:()=>S,z:()=>f,zW:()=>c});var r=n(2766);const i=BigInt(0),o=BigInt(1);function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if("boolean"!==typeof e){const n=t&&'"'.concat(t,'"');throw new Error(n+"expected boolean, got type="+typeof e)}return e}function a(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const i=(0,r.aY)(e),o=null===e||void 0===e?void 0:e.length,s=void 0!==t;if(!i||s&&o!==t){const r=n&&'"'.concat(n,'" '),a=s?" of length ".concat(t):"",c=i?"length=".concat(o):"type=".concat(typeof e);throw new Error(r+"expected Uint8Array"+a+", got "+c)}return e}function c(e){const t=e.toString(16);return 1&t.length?"0"+t:t}function l(e){if("string"!==typeof e)throw new Error("hex string expected, got "+typeof e);return""===e?i:BigInt("0x"+e)}function u(e){return l((0,r.My)(e))}function d(e){return(0,r.DO)(e),l((0,r.My)(Uint8Array.from(e).reverse()))}function h(e,t){return(0,r.aT)(e.toString(16).padStart(2*t,"0"))}function f(e,t){return h(e,t).reverse()}function p(e,t,n){let i;if("string"===typeof t)try{i=(0,r.aT)(t)}catch(s){throw new Error(e+" must be hex string or Uint8Array, cause: "+s)}else{if(!(0,r.aY)(t))throw new Error(e+" must be hex string or Uint8Array");i=Uint8Array.from(t)}const o=i.length;if("number"===typeof n&&o!==n)throw new Error(e+" of length "+n+" expected, got "+o);return i}function m(e,t){if(e.length!==t.length)return!1;let n=0;for(let r=0;r<e.length;r++)n|=e[r]^t[r];return 0===n}function g(e){return Uint8Array.from(e)}const y=e=>"bigint"===typeof e&&i<=e;function b(e,t,n){return y(e)&&y(t)&&y(n)&&t<=e&&e<n}function v(e,t,n,r){if(!b(t,n,r))throw new Error("expected valid "+e+": "+n+" <= n < "+r+", got "+t)}function w(e){let t;for(t=0;e>i;e>>=o,t+=1);return t}const _=e=>(o<<BigInt(e))-o;function x(e,t,n){if("number"!==typeof e||e<2)throw new Error("hashLen must be a number");if("number"!==typeof t||t<2)throw new Error("qByteLen must be a number");if("function"!==typeof n)throw new Error("hmacFn must be a function");const i=e=>new Uint8Array(e),o=e=>Uint8Array.of(e);let s=i(e),a=i(e),c=0;const l=()=>{s.fill(1),a.fill(0),c=0},u=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n(a,s,...t)},d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i(0);a=u(o(0),e),s=u(),0!==e.length&&(a=u(o(1),e),s=u())},h=()=>{if(c++>=1e3)throw new Error("drbg: tried 1000 values");let e=0;const n=[];for(;e<t;){s=u();const t=s.slice();n.push(t),e+=s.length}return(0,r.Id)(...n)};return(e,t)=>{let n;for(l(),d(e);!(n=t(h()));)d();return l(),n}}function A(e){return"function"===typeof e&&Number.isSafeInteger(e.outputLen)}function k(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e||"object"!==typeof e)throw new Error("expected valid options object");function r(t,n,r){const i=e[t];if(r&&void 0===i)return;const o=typeof i;if(o!==n||null===i)throw new Error('param "'.concat(t,'" is invalid: expected ').concat(n,", got ").concat(o))}Object.entries(t).forEach(e=>{let[t,n]=e;return r(t,n,!1)}),Object.entries(n).forEach(e=>{let[t,n]=e;return r(t,n,!0)})}const E=()=>{throw new Error("not implemented")};function S(e){const t=new WeakMap;return function(n){const r=t.get(n);if(void 0!==r)return r;for(var i=arguments.length,o=new Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];const a=e(n,...o);return t.set(n,a),a}}},3873:(e,t,n)=>{"use strict";n.r(t),n.d(t,{createEVMClient:()=>ve,getInfuraRpcUrls:()=>r.pm});var r=n(3505),i=n(5744),o=n(2450),s=n(5244),a=(n(6910),n(5720)),c=n(6155),l=n(3589),u=n(2747);function d(e){return null!==e&&void 0!==e&&e.__esModule?e.default:e}const h=d(a),{memoize:f}=(d(c),d(l),u);new Error("timeout");f(function(e){if("string"!==typeof e)return e;const t=(0,s.mu)(e);if(!(0,s.Lo)(t))return t;try{return(0,s.IV)(t)}catch(n){if(n instanceof Error&&"Invalid hex address."===n.message)return t;throw n}});f(function(e){let{allowNonPrefixed:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=t?(0,s.mu)(e):e;return!!(0,s.Ky)(n)&&(0,s.vw)(n)},function(e){let{allowNonPrefixed:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"".concat(e,"-").concat(t)});Error;var p=n(7663);const{cloneDeep:m}=u,g=e=>Array.from(new Set(e));var y=n(764);const b=e=>{const t=[];return Object.keys(e).forEach(e=>{const{namespace:n,reference:r}=(0,y.$)(e);n===p.wV.Eip155&&r&&t.push(function(e){if("string"===typeof e&&(0,s.Ky)(e))return e;const t=h.isBN(e)||"bigint"===typeof e?e.toString(16):new h(e.toString(),10).toString(16);return"0x".concat(t)}(r))}),t};var v,w,_,x,A=Object.defineProperty,k=Object.defineProperties,E=Object.getOwnPropertyDescriptors,S=Object.getOwnPropertySymbols,P=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable,I=e=>{throw TypeError(e)},M=(e,t,n)=>t in e?A(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,T=(e,t)=>{for(var n in t||(t={}))P.call(t,n)&&M(e,n,t[n]);if(S)for(var n of S(t))C.call(t,n)&&M(e,n,t[n]);return e},O=(e,t)=>k(e,E(t)),R=(e,t,n)=>t.has(e)||I("Cannot "+n),B=(e,t,n)=>(R(e,t,"read from private field"),n?n.call(e):t.get(e)),N=(e,t,n)=>t.has(e)?I("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),U=(e,t,n,r)=>(R(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),j=(e,t,n)=>(R(e,t,"access private method"),n),L=(e,t,n)=>new Promise((r,i)=>{var o=e=>{try{a(n.next(e))}catch(t){i(t)}},s=e=>{try{a(n.throw(e))}catch(t){i(t)}},a=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,s);a((n=n.apply(e,t)).next())}),F=["metamask_getProviderState","metamask_sendDomainMetadata","metamask_logWeb3ShimUsage","wallet_registerOnboarding","net_version","wallet_getPermissions"],D=["eth_accounts","eth_coinbase",...F,"wallet_requestPermissions","eth_requestAccounts","eth_chainId","wallet_revokePermissions","wallet_switchEthereumChain","wallet_addEthereumChain"],z="metamask-connect:evm",q=(0,r.h)(z,"63"),H=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&(0,r.Nw)(z)},W=class extends r.bk{constructor(e,t){super(),N(this,v),N(this,w),N(this,_,[]),N(this,x),U(this,v,e),U(this,w,t),this.request=this.request.bind(this),this.sendAsync=this.sendAsync.bind(this),this.send=this.send.bind(this),this.on=this.on.bind(this),this.off=this.off.bind(this),this.emit=this.emit.bind(this),this.once=this.once.bind(this),this.removeListener=this.removeListener.bind(this),this.listenerCount=this.listenerCount.bind(this)}request(e){return L(this,null,function*(){var t,n,r;if(q("request: ".concat(e.method," - chainId: ").concat(this.selectedChainId),e.params),D.includes(e.method))return null==(t=B(this,w))?void 0:t.call(this,e);if(!B(this,x))throw new Error("No chain ID selected");const i=(0,o.ME)(B(this,x)),s="eip155:".concat(i),a=B(this,v).options;if(!(null!=(r=null==(n=null==a?void 0:a.api)?void 0:n.supportedNetworks)?r:{})[s])throw new Error("Chain ".concat(s," is not configured in supportedNetworks. Requests cannot be made to chains not explicitly configured in supportedNetworks."));return B(this,v).invokeMethod({scope:s,request:{method:e.method,params:e.params}})})}get selectedAccount(){return this.accounts[0]}set accounts(e){U(this,_,e)}get accounts(){return B(this,_)}get selectedChainId(){return B(this,x)}set selectedChainId(e){const t=e&&"number"===typeof e?(0,o.cK)(e):e;t&&U(this,x,t)}get chainId(){return this.selectedChainId}sendAsync(e,t){return L(this,null,function*(){var n;const r=null!=(n=e.id)?n:1,i=this.request({method:e.method,params:e.params}).then(e=>({id:r,jsonrpc:"2.0",result:e})).catch(e=>{var t,n;return{id:r,jsonrpc:"2.0",error:{code:null!=(t=e.code)?t:-32603,message:null!=(n=e.message)?n:"Internal error",data:e.data}}});if(!t)return i;i.then(e=>{e.error?t(new Error(e.error.message),e):t(null,e)}).catch(e=>{t(e,null)})})}send(e,t){this.sendAsync(e,t)}};v=new WeakMap,w=new WeakMap,_=new WeakMap,x=new WeakMap;var K=e=>e?(e=>{const{requiredScopes:t,optionalScopes:n}=e,r=[...b(t),...b(n)];return g(r)})({requiredScopes:e,optionalScopes:e}):[];var $,V,G,J,Z,Y,Q,X,ee,te,ne,re,ie,oe,se,ae,ce,le,ue,de,he,fe,pe,me,ge,ye="cache_eth_chainId";$=new WeakMap,V=new WeakMap,G=new WeakMap,J=new WeakMap,Z=new WeakMap,Y=new WeakMap,Q=new WeakMap,X=new WeakSet,ee=function(){return B(this,$).options},te=function(e,t,n){return{scope:t,request:{method:e,params:n}}},ne=function(e,t,n){return L(this,null,function*(){const o=j(this,X,ee).call(this);try{const s=j(this,X,te).call(this,e,t,n),a=yield(0,r.TN)(o,B(this,$).storage,s);i.z.track("mmconnect_wallet_action_requested",a)}catch(s){q("Error tracking mmconnect_wallet_action_requested event",s)}})},re=function(e,t,n){return L(this,null,function*(){const o=j(this,X,ee).call(this);try{const s=j(this,X,te).call(this,e,t,n),a=yield(0,r.TN)(o,B(this,$).storage,s);i.z.track("mmconnect_wallet_action_succeeded",a)}catch(s){q("Error tracking mmconnect_wallet_action_succeeded event",s)}})},ie=function(e,t,n,o){return L(this,null,function*(){const s=j(this,X,ee).call(this);try{const a=j(this,X,te).call(this,e,t,n),c=yield(0,r.TN)(s,B(this,$).storage,a);(0,r.m9)(o)?i.z.track("mmconnect_wallet_action_rejected",c):i.z.track("mmconnect_wallet_action_failed",c)}catch(a){q("Error tracking wallet action rejected or failed event",o)}})},oe=function(e){return L(this,null,function*(){try{const t=yield B(this,$).storage.adapter.get(ye);if(t){const n=JSON.parse(t);if(e.includes(n))return n}}catch(t){q("Error retrieving cached chainId",t)}return e[0]})},se=function(e){return L(this,null,function*(){if(q("Intercepting request for method: ".concat(e.method)),F.includes(e.method))return Promise.reject(new Error("Method: ".concat(e.method," is not supported by Metamask Connect/EVM")));if("wallet_revokePermissions"===e.method)return this.disconnect();if("wallet_requestPermissions"===(t=e).method||"eth_requestAccounts"===t.method){const t="wallet_requestPermissions"===e.method,{method:r,params:i}=e,o=1,s="eip155:".concat(o);yield j(this,X,ne).call(this,r,s,i);try{const e=yield this.connect({chainIds:[o],forceRequest:t});return yield j(this,X,re).call(this,r,s,i),e}catch(n){throw yield j(this,X,ie).call(this,r,s,i,n),n}}var t;if(function(e){return"wallet_switchEthereumChain"===e.method}(e))return this.switchChain({chainId:parseInt(e.params[0].chainId,16)});if(function(e){return"wallet_addEthereumChain"===e.method}(e))return j(this,X,ce).call(this,e.params[0]);if(function(e){return"eth_accounts"===e.method||"eth_coinbase"===e.method}(e)){const{method:t}=e,n=B(this,V).selectedChainId?(0,o.ME)(B(this,V).selectedChainId):1,r="eip155:".concat(n),i=[];return yield j(this,X,ne).call(this,t,r,i),yield j(this,X,re).call(this,t,r,i),B(this,V).accounts}return function(e){return"eth_chainId"===e.method}(e)?B(this,V).selectedChainId:(q("Request not intercepted, forwarding to default handler",e),Promise.resolve())})},ae=function(){B(this,V).accounts=[],B(this,V).selectedChainId=void 0},ce=function(e){return L(this,null,function*(){var t;q("addEthereumChain called",{chainConfiguration:e});const n="wallet_addEthereumChain";if(!e)throw new Error("No chain configuration found.");const r=e.chainId?parseInt(e.chainId,16):(0,o.ME)(null!=(t=B(this,V).selectedChainId)?t:"0x1"),i="eip155:".concat(r),s=[e];yield j(this,X,ne).call(this,n,i,s);try{null===(yield j(this,X,le).call(this,{method:"wallet_addEthereumChain",params:s})).result&&(yield j(this,X,ue).call(this,r),j(this,X,de).call(this,r)),yield j(this,X,re).call(this,n,i,s)}catch(a){throw yield j(this,X,ie).call(this,n,i,s,a),a}})},le=function(e){return L(this,null,function*(){q("direct request to metamask-provider called",e);const t=B(this,$).transport.sendEip1193Message(e);return"wallet_addEthereumChain"!==e.method&&"wallet_switchEthereumChain"!==e.method||B(this,$).openDeeplinkIfNeeded(),t})},ue=function(e){return L(this,null,function*(){try{const t=(0,s.Lo)(e)?e:(0,o.cK)(e);yield B(this,$).storage.adapter.set(ye,JSON.stringify(t))}catch(t){q("Error caching chainId",t)}})},de=function(e){var t,n;const r=(0,s.Lo)(e)?e:(0,o.cK)(e);r!==B(this,V).selectedChainId&&(q("handler: chainChanged",{chainId:e}),B(this,V).selectedChainId=e,null==(n=null==(t=B(this,J))?void 0:t.chainChanged)||n.call(t,r),B(this,V).emit("chainChanged",r))},he=function(e){var t,n;q("handler: accountsChanged",e),B(this,V).accounts=e,B(this,V).emit("accountsChanged",e),null==(n=null==(t=B(this,J))?void 0:t.accountsChanged)||n.call(t,e)},fe=function(e){let{chainId:t,accounts:n}=e;var r,i;q("handler: connect",{chainId:t,accounts:n});const a={chainId:(0,s.Lo)(t)?t:(0,o.cK)(t),accounts:n};B(this,V).emit("connect",a),null==(i=null==(r=B(this,J))?void 0:r.connect)||i.call(r,a),j(this,X,de).call(this,t),j(this,X,he).call(this,n)},pe=function(){var e,t;q("handler: disconnect"),B(this,V).emit("disconnect"),null==(t=null==(e=B(this,J))?void 0:e.disconnect)||t.call(e),j(this,X,he).call(this,[])},me=function(e){var t,n;q("handler: display_uri",e),B(this,V).emit("display_uri",e),null==(n=null==(t=B(this,J))?void 0:t.displayUri)||n.call(t,e)},ge=function(){return L(this,null,function*(){if("connected"===B(this,$).status||"connecting"===B(this,$).status)try{const e=yield B(this,$).transport.request({method:"wallet_getSession"}),{sessionScopes:t}=e.result;U(this,G,t);const n=K(t),r=yield B(this,$).transport.sendEip1193Message({method:"eth_accounts",params:[]}),i=yield j(this,X,oe).call(this,n);n.length&&r.result&&j(this,X,fe).call(this,{chainId:i,accounts:r.result})}catch(e){console.error("Error attempting session recovery",e)}})};var be=class e{constructor(e){let{core:t,eventHandlers:n}=e;N(this,X),N(this,$),N(this,V),N(this,G,{}),N(this,J),N(this,Z),N(this,Y),N(this,Q),U(this,$,t),U(this,V,new W(t,j(this,X,se).bind(this))),U(this,J,n),U(this,Z,e=>{var t;q("event: wallet_sessionChanged",e),U(this,G,null!=(t=null==e?void 0:e.sessionScopes)?t:{})}),B(this,$).on("wallet_sessionChanged",B(this,Z).bind(this)),U(this,Y,j(this,X,me).bind(this)),B(this,$).on("display_uri",B(this,Y)),q("Connect/EVM constructor completed")}static create(t){return L(this,null,function*(){var n;const r=new e(t);return yield j(n=r,X,ge).call(n),r})}connect(){return L(this,arguments,function(){var e=this;let{account:t,forceRequest:n,chainIds:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{chainIds:[1]};return function*(){var i,s;if(q("request: connect",{account:t}),!r||0===r.length)throw new Error("chainIds must be an array of at least one chain ID");const a=Array.from(new Set(null!=(i=r.concat(1))?i:[1])).map(e=>"eip155:".concat(e)),c=t?a.map(e=>"".concat(e,":").concat(t)):[];yield B(e,$).connect(a,c,void 0,n);const l=K(B(e,G)),u=yield B(e,$).transport.sendEip1193Message({method:"eth_accounts",params:[]}),d=yield j(e,X,oe).call(e,l);return j(e,X,fe).call(e,{chainId:d,accounts:u.result}),null==(s=B(e,Q))||s.call(e),U(e,Q,B(e,$).transport.onNotification(t=>{var n;if("metamask_accountsChanged"===(null==t?void 0:t.method)){const n=null==t?void 0:t.params;q("transport-event: accountsChanged",n),j(e,X,he).call(e,n)}if("metamask_chainChanged"===(null==t?void 0:t.method)){const r=Number(null==(n=null==t?void 0:t.params)?void 0:n.chainId);q("transport-event: chainChanged",r),j(e,X,ue).call(e,r).catch(e=>{q("Error caching chainId in notification handler",e)}),j(e,X,de).call(e,r)}})),q("fulfilled-request: connect",{chainId:r[0],accounts:B(e,V).accounts}),{accounts:B(e,V).accounts,chainId:(0,o.ME)(d)}}()})}connectAndSign(e){return L(this,arguments,function(e){var t=this;let{message:n,chainIds:r}=e;return function*(){var e,i;const{accounts:o,chainId:s}=yield t.connect({chainIds:null!=r?r:[1]}),a=yield B(t,V).request({method:"personal_sign",params:[o[0],n]});return null==(i=null==(e=B(t,J))?void 0:e.connectAndSign)||i.call(e,{accounts:o,chainId:s,signResponse:a}),a}()})}connectWith(e){return L(this,arguments,function(e){var t=this;let{method:n,params:r,chainIds:i,account:o,forceRequest:s}=e;return function*(){var e,a;const{accounts:c,chainId:l}=yield t.connect({chainIds:null!=i?i:[1],account:o,forceRequest:s}),u="function"===typeof r?r(c[0]):r,d=yield B(t,V).request({method:n,params:u});return null==(a=null==(e=B(t,J))?void 0:e.connectWith)||a.call(e,{accounts:c,chainId:l,connectWithResponse:d}),d}()})}disconnect(){return L(this,null,function*(){q("request: disconnect"),yield B(this,$).disconnect(),j(this,X,pe).call(this),j(this,X,ae).call(this),B(this,$).off("wallet_sessionChanged",B(this,Z)),B(this,$).off("display_uri",B(this,Y)),B(this,Q)&&(B(this,Q).call(this),U(this,Q,void 0)),q("fulfilled-request: disconnect")})}switchChain(e){return L(this,arguments,function(e){var t=this;let{chainId:n,chainConfiguration:i}=e;return function*(){const e="wallet_switchEthereumChain",a=(0,s.Lo)(n)?n:(0,o.cK)(n),c="eip155:".concat((0,s.Lo)(n)?(0,o.ME)(n):n),l=[{chainId:a}];if(yield j(t,X,ne).call(t,e,c,l),t.selectedChainId===a)return Promise.resolve();if(K(B(t,G)).includes(a)&&B(t,$).transportType===r.Yg.MWP)return yield j(t,X,ue).call(t,a),j(t,X,de).call(t,a),yield j(t,X,re).call(t,e,c,l),Promise.resolve();try{const n=yield j(t,X,le).call(t,{method:"wallet_switchEthereumChain",params:l}),r=n;if(null==r?void 0:r.error)throw new Error(r.error.message);return yield j(t,X,re).call(t,e,c,l),null===n.result&&(yield j(t,X,ue).call(t,a),j(t,X,de).call(t,a)),n}catch(u){if(yield j(t,X,ie).call(t,e,c,l,u),u.message.includes("Unrecognized chain ID"))return j(t,X,ce).call(t,i);throw u}}()})}getProvider(){return B(this,V)}getChainId(){return this.selectedChainId}getAccount(){return B(this,V).selectedAccount}get accounts(){return B(this,V).accounts}get selectedAccount(){return B(this,V).selectedAccount}get selectedChainId(){return B(this,V).selectedChainId}get status(){return B(this,$).status}};function ve(e){return L(this,null,function*(){var t;if(H(e.debug),q("Creating Metamask Connect/EVM with options:",e),!(null==(t=e.api)?void 0:t.supportedNetworks)||0===Object.keys(e.api.supportedNetworks).length)throw new Error("supportedNetworks is required and must contain at least one chain configuration");!function(e,t){const n=[];for(const[i,o]of Object.entries(e))try{new URL(o)}catch(r){n.push("".concat(i,": ").concat(o))}if(n.length>0)throw new Error("".concat(t," contains invalid URLs:\n").concat(n.join("\n")))}(e.api.supportedNetworks,"supportedNetworks");try{const t=yield(0,r.CI)(O(T({},e),{api:{supportedNetworks:e.api.supportedNetworks}}));return be.create({core:t,eventHandlers:e.eventHandlers,supportedNetworks:e.api.supportedNetworks})}catch(n){throw console.error("Error creating Metamask Connect/EVM",n),n}})}},3878:(e,t,n)=>{var r=n(4319).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},3882:(e,t,n)=>{"use strict";const r=n(1227);e.exports=(e,t,n)=>{try{t=new r(t,n)}catch(i){return!1}return t.test(e)}},3905:(e,t,n)=>{"use strict";var r=n(2176);function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var s={d:{f:o,r:function(){throw Error(i(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},a=Symbol.for("react.portal");var c=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(e,t){return"font"===e?"":"string"===typeof t?"use-credentials"===t?t:"":void 0}t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(i(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:a,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.flushSync=function(e){var t=c.T,n=s.p;try{if(c.T=null,s.p=2,e)return e()}finally{c.T=t,s.p=n,s.d.f()}},t.preconnect=function(e,t){"string"===typeof e&&(t?t="string"===typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:t=null,s.d.C(e,t))},t.prefetchDNS=function(e){"string"===typeof e&&s.d.D(e)},t.preinit=function(e,t){if("string"===typeof e&&t&&"string"===typeof t.as){var n=t.as,r=l(n,t.crossOrigin),i="string"===typeof t.integrity?t.integrity:void 0,o="string"===typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?s.d.S(e,"string"===typeof t.precedence?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):"script"===n&&s.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:"string"===typeof t.nonce?t.nonce:void 0})}},t.preinitModule=function(e,t){if("string"===typeof e)if("object"===typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=l(t.as,t.crossOrigin);s.d.M(e,{crossOrigin:n,integrity:"string"===typeof t.integrity?t.integrity:void 0,nonce:"string"===typeof t.nonce?t.nonce:void 0})}}else null==t&&s.d.M(e)},t.preload=function(e,t){if("string"===typeof e&&"object"===typeof t&&null!==t&&"string"===typeof t.as){var n=t.as,r=l(n,t.crossOrigin);s.d.L(e,n,{crossOrigin:r,integrity:"string"===typeof t.integrity?t.integrity:void 0,nonce:"string"===typeof t.nonce?t.nonce:void 0,type:"string"===typeof t.type?t.type:void 0,fetchPriority:"string"===typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"===typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"===typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"===typeof t.imageSizes?t.imageSizes:void 0,media:"string"===typeof t.media?t.media:void 0})}},t.preloadModule=function(e,t){if("string"===typeof e)if(t){var n=l(t.as,t.crossOrigin);s.d.m(e,{as:"string"===typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"===typeof t.integrity?t.integrity:void 0})}else s.d.m(e)},t.requestFormReset=function(e){s.d.r(e)},t.unstable_batchedUpdates=function(e,t){return e(t)},t.useFormState=function(e,t,n){return c.H.useFormState(e,t,n)},t.useFormStatus=function(){return c.H.useHostTransitionStatus()},t.version="19.1.0"},3927:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.chacha20=t.xchacha20=void 0;var r=n(4115);t.xchacha20=function(e,t,n){return(0,r.xchacha20poly1305)(e,t,n)};t.chacha20=function(e,t,n){return(0,r.chacha20poly1305)(e,t,n)}},3960:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,r,o,s){if("function"!==typeof r)throw new TypeError("The listener must be a function");var a=new i(r,o||e,s),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],a]:e._events[c].push(a):(e._events[c]=a,e._eventsCount++),e}function s(e,t){0===--e._eventsCount?e._events=new r:delete e._events[t]}function a(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),a.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},a.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,s=new Array(o);i<o;i++)s[i]=r[i].fn;return s},a.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},a.prototype.emit=function(e,t,r,i,o,s){var a=n?n+e:e;if(!this._events[a])return!1;var c,l,u=this._events[a],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,i),!0;case 5:return u.fn.call(u.context,t,r,i,o),!0;case 6:return u.fn.call(u.context,t,r,i,o,s),!0}for(l=1,c=new Array(d-1);l<d;l++)c[l-1]=arguments[l];u.fn.apply(u.context,c)}else{var h,f=u.length;for(l=0;l<f;l++)switch(u[l].once&&this.removeListener(e,u[l].fn,void 0,!0),d){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,t);break;case 3:u[l].fn.call(u[l].context,t,r);break;case 4:u[l].fn.call(u[l].context,t,r,i);break;default:if(!c)for(h=1,c=new Array(d-1);h<d;h++)c[h-1]=arguments[h];u[l].fn.apply(u[l].context,c)}}return!0},a.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},a.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},a.prototype.removeListener=function(e,t,r,i){var o=n?n+e:e;if(!this._events[o])return this;if(!t)return s(this,o),this;var a=this._events[o];if(a.fn)a.fn!==t||i&&!a.once||r&&a.context!==r||s(this,o);else{for(var c=0,l=[],u=a.length;c<u;c++)(a[c].fn!==t||i&&!a[c].once||r&&a[c].context!==r)&&l.push(a[c]);l.length?this._events[o]=1===l.length?l[0]:l:s(this,o)}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&s(this,t)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,e.exports=a},3989:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(3905)},3990:e=>{"use strict";e.exports=JSON.parse('{"openrpc":"1.2.4","info":{"title":"MetaMask MultiChain API","version":"1.0.0","description":"This provides the specs for the MultiChain API Layer for the MetaMask API"},"methods":[{"name":"wallet_notify","paramStructure":"by-name","params":[{"name":"scope","description":"a valid `scope` string that has been previously authorized via `provider_authorize`","required":true,"schema":{"$ref":"#/components/schemas/ScopeString"}},{"name":"notification","description":"an object containing a JSON-RPC notification with `method` and `params`","deprecated":false,"required":true,"schema":{"type":"object","properties":{"method":{"type":"string"},"params":true}}}]},{"name":"wallet_invokeMethod","paramStructure":"by-name","params":[{"name":"scope","description":"a valid `scope` string that has been previously authorized via `provider_authorize`","required":true,"schema":{"$ref":"#/components/schemas/ScopeString"}},{"name":"request","description":"an object containing a JSON-RPC request with `method` and `params`","deprecated":false,"required":true,"schema":{"type":"object","properties":{"method":{"type":"string"},"params":true}}}],"result":{"name":"wallet_invokeMethodResult","schema":true},"examples":[{"name":"wallet_invokeMethodExample","params":[{"name":"scope","value":"eip155:1"},{"name":"request","value":{"method":"eth_getBalance","params":[]}}],"result":{"name":"wallet_invokeMethodResult","value":"0x1"}}]},{"name":"wallet_revokeSession","description":"The `wallet_revokeSession` method revokes the entire active session.","params":[],"result":{"name":"wallet_revokeSessionResult","schema":{"type":"boolean"}},"examples":[{"name":"wallet_revokeSessionExample","params":[],"result":{"name":"wallet_revokeSessionExampleResult","value":true}}],"errors":[{"$ref":"#/components/errors/UnknownError"}]},{"name":"wallet_sessionChanged","paramStructure":"by-name","description":"This notification is published by the wallet to notify the callers of updates to a shared session\'s authorization scopes. The event payload contains the new `sessionScopes`.","params":[{"name":"sessionScopes","schema":{"$ref":"#/components/schemas/SessionScopes"}}],"examples":[{"name":"wallet_sessionChangedExample","description":"Example of a wallet_sessionChanged notification.","params":[{"name":"sessionScopes","value":{"eip155:1337":{"accounts":["eip155:1337:0x5cfe73b6021e818b776b421b1c4db2474086a7e1"],"methods":["personal_sign","eth_signTypedData_v4","wallet_watchAsset","eth_sendTransaction","eth_decrypt","eth_getEncryptionPublicKey","web3_clientVersion","eth_subscribe","eth_unsubscribe","wallet_swapAsset","eth_blockNumber","eth_call","eth_chainId","eth_estimateGas","eth_feeHistory","eth_gasPrice","eth_getBalance","eth_getBlockByHash","eth_getBlockByNumber","eth_getBlockTransactionCountByHash","eth_getBlockTransactionCountByNumber","eth_getCode","eth_getFilterChanges","eth_getFilterLogs","eth_getLogs","eth_getProof","eth_getStorageAt","eth_getTransactionByBlockHashAndIndex","eth_getTransactionByBlockNumberAndIndex","eth_getTransactionByHash","eth_getTransactionCount","eth_getTransactionReceipt","eth_getUncleCountByBlockHash","eth_getUncleCountByBlockNumber","eth_newBlockFilter","eth_newFilter","eth_newPendingTransactionFilter","eth_sendRawTransaction","eth_syncing","eth_uninstallFilter"],"notifications":["eth_subscription"]},"wallet":{"accounts":[],"methods":["wallet_registerOnboarding","wallet_scanQRCode"],"notifications":[]},"wallet:eip155":{"accounts":["wallet:eip155:0x5cfe73b6021e818b776b421b1c4db2474086a7e1"],"methods":["wallet_addEthereumChain"],"notifications":[]}}}]}]},{"name":"wallet_getSession","description":"The `wallet_getSession` method returns an active session.","params":[],"result":{"name":"wallet_getSessionResult","schema":{"type":"object","properties":{"sessionScopes":{"$ref":"#/components/schemas/SessionScopes"}}}},"examples":[{"name":"wallet_getSessionExample","description":"Example of a getSession request.","params":[],"result":{"name":"wallet_getSessionResultExample","value":{"sessionScopes":{"eip155:1337":{"accounts":["eip155:1337:0x5cfe73b6021e818b776b421b1c4db2474086a7e1"],"methods":["personal_sign","eth_signTypedData_v4","wallet_watchAsset","eth_sendTransaction","eth_decrypt","eth_getEncryptionPublicKey","web3_clientVersion","eth_subscribe","eth_unsubscribe","wallet_swapAsset","eth_blockNumber","eth_call","eth_chainId","eth_estimateGas","eth_feeHistory","eth_gasPrice","eth_getBalance","eth_getBlockByHash","eth_getBlockByNumber","eth_getBlockTransactionCountByHash","eth_getBlockTransactionCountByNumber","eth_getCode","eth_getFilterChanges","eth_getFilterLogs","eth_getLogs","eth_getProof","eth_getStorageAt","eth_getTransactionByBlockHashAndIndex","eth_getTransactionByBlockNumberAndIndex","eth_getTransactionByHash","eth_getTransactionCount","eth_getTransactionReceipt","eth_getUncleCountByBlockHash","eth_getUncleCountByBlockNumber","eth_newBlockFilter","eth_newFilter","eth_newPendingTransactionFilter","eth_sendRawTransaction","eth_syncing","eth_uninstallFilter"],"notifications":["eth_subscription"]},"wallet":{"accounts":[],"methods":["wallet_registerOnboarding","wallet_scanQRCode"],"notifications":[]},"wallet:eip155":{"accounts":["wallet:eip155:0x5cfe73b6021e818b776b421b1c4db2474086a7e1"],"methods":["wallet_addEthereumChain"],"notifications":[]}}}}}]},{"name":"wallet_createSession","paramStructure":"by-name","params":[{"name":"requiredScopes","description":"Scopes that the wallet must support in order to be used with this provider.","schema":{"type":"object","patternProperties":{"[-a-z0-9]{3,8}(:[-_a-zA-Z0-9]{1,32})?":{"$ref":"#/components/schemas/Scope"}}}},{"name":"optionalScopes","description":"Scopes that the wallet may support in order to be used with this provider.","schema":{"type":"object","patternProperties":{"[-a-z0-9]{3,8}(:[-_a-zA-Z0-9]{1,32})?":{"$ref":"#/components/schemas/Scope"}}}},{"name":"sessionProperties","description":"Properties that the wallet may use to determine if the session is valid.","schema":{"type":"object"}}],"result":{"name":"wallet_createSessionResult","schema":{"type":"object","properties":{"sessionScopes":{"$ref":"#/components/schemas/SessionScopes"},"sessionProperties":{"type":"object"}}}},"examples":[{"name":"wallet_createSessionEthExample","description":"Example of a createSession request.","params":[{"name":"optionalScopes","value":{"eip155:1337":{"methods":["wallet_watchAsset","eth_sendTransaction","eth_decrypt","eth_getEncryptionPublicKey","web3_clientVersion","eth_subscribe","eth_unsubscribe","eth_blockNumber","eth_call","eth_chainId","eth_estimateGas","eth_feeHistory","eth_gasPrice","eth_getBalance","eth_getBlockByHash","eth_getBlockByNumber","eth_getBlockTransactionCountByHash","eth_getBlockTransactionCountByNumber","eth_getCode","eth_getFilterChanges","eth_getFilterLogs","eth_getLogs","eth_getProof","eth_getStorageAt","eth_getTransactionByBlockHashAndIndex","eth_getTransactionByBlockNumberAndIndex","eth_getTransactionByHash","eth_getTransactionCount","eth_getTransactionReceipt","eth_getUncleCountByBlockHash","eth_getUncleCountByBlockNumber","eth_newBlockFilter","eth_newFilter","eth_newPendingTransactionFilter","eth_sendRawTransaction","eth_syncing","eth_uninstallFilter"],"notifications":["eth_subscription"]},"wallet":{"methods":["wallet_registerOnboarding","wallet_scanQRCode"],"notifications":[]},"wallet:eip155":{"methods":["wallet_addEthereumChain"],"notifications":[]}}}],"result":{"name":"wallet_createSessionResultExample","value":{"sessionProperties":{},"sessionScopes":{"eip155:1337":{"accounts":["eip155:1337:0x5cfe73b6021e818b776b421b1c4db2474086a7e1"],"methods":["personal_sign","eth_signTypedData_v4","wallet_watchAsset","eth_sendTransaction","eth_decrypt","eth_getEncryptionPublicKey","web3_clientVersion","eth_subscribe","eth_unsubscribe","wallet_swapAsset","eth_blockNumber","eth_call","eth_chainId","eth_estimateGas","eth_feeHistory","eth_gasPrice","eth_getBalance","eth_getBlockByHash","eth_getBlockByNumber","eth_getBlockTransactionCountByHash","eth_getBlockTransactionCountByNumber","eth_getCode","eth_getFilterChanges","eth_getFilterLogs","eth_getLogs","eth_getProof","eth_getStorageAt","eth_getTransactionByBlockHashAndIndex","eth_getTransactionByBlockNumberAndIndex","eth_getTransactionByHash","eth_getTransactionCount","eth_getTransactionReceipt","eth_getUncleCountByBlockHash","eth_getUncleCountByBlockNumber","eth_newBlockFilter","eth_newFilter","eth_newPendingTransactionFilter","eth_sendRawTransaction","eth_syncing","eth_uninstallFilter"],"notifications":["eth_subscription"]},"wallet":{"accounts":[],"methods":["wallet_registerOnboarding","wallet_scanQRCode"],"notifications":[]},"wallet:eip155":{"accounts":["wallet:eip155:0x5cfe73b6021e818b776b421b1c4db2474086a7e1"],"methods":["wallet_addEthereumChain"],"notifications":[]}}}}},{"name":"wallet_createSessionEthUnsupportedMethodsExample","description":"Example of a createSession request with unsupported eip155 methods.","params":[{"name":"optionalScopes","value":{"eip155:1337":{"methods":["not_supported"],"notifications":[]},"wallet":{"methods":[],"notifications":[]},"wallet:eip155":{"methods":[],"notifications":[]}}}],"result":{"name":"wallet_createSessionEthUnsupportedMethodsResultExample","value":{"sessionProperties":{},"sessionScopes":{"eip155:1337":{"accounts":["eip155:1337:0x5cfe73b6021e818b776b421b1c4db2474086a7e1"],"methods":["personal_sign","eth_signTypedData_v4","wallet_watchAsset","eth_sendTransaction","eth_decrypt","eth_getEncryptionPublicKey","web3_clientVersion","eth_subscribe","eth_unsubscribe","wallet_swapAsset","eth_blockNumber","eth_call","eth_chainId","eth_estimateGas","eth_feeHistory","eth_gasPrice","eth_getBalance","eth_getBlockByHash","eth_getBlockByNumber","eth_getBlockTransactionCountByHash","eth_getBlockTransactionCountByNumber","eth_getCode","eth_getFilterChanges","eth_getFilterLogs","eth_getLogs","eth_getProof","eth_getStorageAt","eth_getTransactionByBlockHashAndIndex","eth_getTransactionByBlockNumberAndIndex","eth_getTransactionByHash","eth_getTransactionCount","eth_getTransactionReceipt","eth_getUncleCountByBlockHash","eth_getUncleCountByBlockNumber","eth_newBlockFilter","eth_newFilter","eth_newPendingTransactionFilter","eth_sendRawTransaction","eth_syncing","eth_uninstallFilter"],"notifications":["eth_subscription"]},"wallet":{"accounts":[],"methods":["wallet_registerOnboarding","wallet_scanQRCode"],"notifications":[]},"wallet:eip155":{"accounts":["wallet:eip155:0x5cfe73b6021e818b776b421b1c4db2474086a7e1"],"methods":["wallet_addEthereumChain"],"notifications":[]}}}}},{"name":"wallet_createSessionUnsupportedScopesExample","description":"Example of a createSession request with unsupported scopes.","params":[{"name":"optionalScopes","value":{"foobar":{"methods":["eth_getBalance"],"notifications":["eth_subscription"]},"eip155:1":{"accounts":["eip155:1:0x5cfe73b6021e818b776b421b1c4db2474086a7e1"],"methods":["personal_sign","eth_signTypedData_v4","wallet_watchAsset","eth_sendTransaction","eth_decrypt","eth_getEncryptionPublicKey","web3_clientVersion","eth_subscribe","eth_unsubscribe","wallet_swapAsset","eth_blockNumber","eth_call","eth_chainId","eth_estimateGas","eth_feeHistory","eth_gasPrice","eth_getBalance","eth_getBlockByHash","eth_getBlockByNumber","eth_getBlockTransactionCountByHash","eth_getBlockTransactionCountByNumber","eth_getCode","eth_getFilterChanges","eth_getFilterLogs","eth_getLogs","eth_getProof","eth_getStorageAt","eth_getTransactionByBlockHashAndIndex","eth_getTransactionByBlockNumberAndIndex","eth_getTransactionByHash","eth_getTransactionCount","eth_getTransactionReceipt","eth_getUncleCountByBlockHash","eth_getUncleCountByBlockNumber","eth_newBlockFilter","eth_newFilter","eth_newPendingTransactionFilter","eth_sendRawTransaction","eth_syncing","eth_uninstallFilter"],"notifications":["eth_subscription"]}}}],"result":{"name":"wallet_createSessionUnsupportedScopesResultExample","value":{"sessionProperties":{},"sessionScopes":{"eip155:1":{"accounts":["eip155:1:0x5cfe73b6021e818b776b421b1c4db2474086a7e1"],"methods":["personal_sign","eth_signTypedData_v4","wallet_watchAsset","eth_sendTransaction","eth_decrypt","eth_getEncryptionPublicKey","web3_clientVersion","eth_subscribe","eth_unsubscribe","wallet_swapAsset","eth_blockNumber","eth_call","eth_chainId","eth_estimateGas","eth_feeHistory","eth_gasPrice","eth_getBalance","eth_getBlockByHash","eth_getBlockByNumber","eth_getBlockTransactionCountByHash","eth_getBlockTransactionCountByNumber","eth_getCode","eth_getFilterChanges","eth_getFilterLogs","eth_getLogs","eth_getProof","eth_getStorageAt","eth_getTransactionByBlockHashAndIndex","eth_getTransactionByBlockNumberAndIndex","eth_getTransactionByHash","eth_getTransactionCount","eth_getTransactionReceipt","eth_getUncleCountByBlockHash","eth_getUncleCountByBlockNumber","eth_newBlockFilter","eth_newFilter","eth_newPendingTransactionFilter","eth_sendRawTransaction","eth_syncing","eth_uninstallFilter"],"notifications":["eth_subscription"]}}}}}],"errors":[{"$ref":"#/components/errors/UnknownError"},{"code":5100,"message":"Requested networks are not supported"},{"code":5101,"message":"Requested methods are not supported"},{"code":5102,"message":"Requested notifications are not supported"},{"code":5300,"message":"Invalid scopedProperties requested"},{"code":5301,"message":"scopedProperties can only be outside of sessionScopes"},{"code":5302,"message":"Invalid sessionProperties requested"}]}],"components":{"errors":{"UnknownError":{"code":5000,"message":"Unknown error with request"}},"schemas":{"SessionScopes":{"type":"object","patternProperties":{"[-a-z0-9]{3,8}(:[-_a-zA-Z0-9]{1,32})?":{"$ref":"#/components/schemas/Scope"}}},"ScopeString":{"type":"string","pattern":"[-a-z0-9]{3,8}(:[-_a-zA-Z0-9]{1,32})?"},"Scope":{"type":"object","title":"Scope","description":"Scope for a multi-chain connection","additionalProperties":true,"required":["notifications","methods"],"properties":{"scopes":{"type":"array","items":{"$ref":"#/components/schemas/ScopeString"}},"methods":{"description":"Methods that the wallet must support in order to be used with this provider.","type":"array","items":{"type":"string"}},"notifications":{"description":"Notifications that the wallet must support in order to be used with this provider.","type":"array","items":{"type":"string"}},"rpcEndpoints":{"description":"JSON-RPC endpoints for this namespace.","type":"array","items":{"type":"string","format":"uri"}},"rpcDocuments":{"type":"array","description":"OpenRPC documents that define RPC methods in which to anchor the methods authorized in a CAIP-25 interaction.","items":{"type":"string","format":"uri"}}}}}}}')},4015:(e,t,n)=>{"use strict";function r(e,t){const n=e.exec(t);return null===n||void 0===n?void 0:n.groups}n.d(t,{BD:()=>i,Ge:()=>o,Yv:()=>r,wj:()=>s});const i=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,o=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,s=/^\(.+?\).*?$/},4084:(e,t,n)=>{"use strict";const r=n(1227),i=n(2548),{ANY:o}=i,s=n(3882),a=n(8116),c=[new i(">=0.0.0-0")],l=[new i(">=0.0.0")],u=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===o){if(1===t.length&&t[0].semver===o)return!0;e=n.includePrerelease?c:l}if(1===t.length&&t[0].semver===o){if(n.includePrerelease)return!0;t=l}const r=new Set;let i,u,f,p,m,g,y;for(const o of e)">"===o.operator||">="===o.operator?i=d(i,o,n):"<"===o.operator||"<="===o.operator?u=h(u,o,n):r.add(o.semver);if(r.size>1)return null;if(i&&u){if(f=a(i.semver,u.semver,n),f>0)return null;if(0===f&&(">="!==i.operator||"<="!==u.operator))return null}for(const o of r){if(i&&!s(o,String(i),n))return null;if(u&&!s(o,String(u),n))return null;for(const e of t)if(!s(o,String(e),n))return!1;return!0}let b=!(!u||n.includePrerelease||!u.semver.prerelease.length)&&u.semver,v=!(!i||n.includePrerelease||!i.semver.prerelease.length)&&i.semver;b&&1===b.prerelease.length&&"<"===u.operator&&0===b.prerelease[0]&&(b=!1);for(const o of t){if(y=y||">"===o.operator||">="===o.operator,g=g||"<"===o.operator||"<="===o.operator,i)if(v&&o.semver.prerelease&&o.semver.prerelease.length&&o.semver.major===v.major&&o.semver.minor===v.minor&&o.semver.patch===v.patch&&(v=!1),">"===o.operator||">="===o.operator){if(p=d(i,o,n),p===o&&p!==i)return!1}else if(">="===i.operator&&!s(i.semver,String(o),n))return!1;if(u)if(b&&o.semver.prerelease&&o.semver.prerelease.length&&o.semver.major===b.major&&o.semver.minor===b.minor&&o.semver.patch===b.patch&&(b=!1),"<"===o.operator||"<="===o.operator){if(m=h(u,o,n),m===o&&m!==u)return!1}else if("<="===u.operator&&!s(u.semver,String(o),n))return!1;if(!o.operator&&(u||i)&&0!==f)return!1}return!(i&&g&&!u&&0!==f)&&(!(u&&y&&!i&&0!==f)&&(!v&&!b))},d=(e,t,n)=>{if(!e)return t;const r=a(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},h=(e,t,n)=>{if(!e)return t;const r=a(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e===t)return!0;e=new r(e,n),t=new r(t,n);let i=!1;e:for(const r of e.set){for(const e of t.set){const t=u(r,e,n);if(i=i||null!==t,t)continue e}if(i)return!1}return!0}},4101:(e,t,n)=>{"use strict";n.r(t),n.d(t,{cbc:()=>f,ctr:()=>p,gcm:()=>m,getWebcryptoSubtle:()=>s,managedNonce:()=>a,randomBytes:()=>o,utils:()=>c});const r="object"===typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0;var i=n(4314);function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32;if(r&&"function"===typeof r.getRandomValues)return r.getRandomValues(new Uint8Array(e));if(r&&"function"===typeof r.randomBytes)return Uint8Array.from(r.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}function s(){if(r&&"object"===typeof r.subtle&&null!=r.subtle)return r.subtle;throw new Error("crypto.subtle must be defined")}function a(e){const{nonceLength:t}=e;return(0,i.anumber)(t),function(n){for(var r=arguments.length,s=new Array(r>1?r-1:0),a=1;a<r;a++)s[a-1]=arguments[a];return{encrypt(r){const a=o(t);for(var c=arguments.length,l=new Array(c>1?c-1:0),u=1;u<c;u++)l[u-1]=arguments[u];const d=e(n,a,...s).encrypt(r,...l),h=(0,i.concatBytes)(a,d);return d.fill(0),h},decrypt(r){const i=r.subarray(0,t),o=r.subarray(t);for(var a=arguments.length,c=new Array(a>1?a-1:0),l=1;l<a;l++)c[l-1]=arguments[l];return e(n,i,...s).decrypt(o,...c)}}}}const c={async encrypt(e,t,n,r){const i=s(),o=await i.importKey("raw",e,t,!0,["encrypt"]),a=await i.encrypt(n,o,r);return new Uint8Array(a)},async decrypt(e,t,n,r){const i=s(),o=await i.importKey("raw",e,t,!0,["decrypt"]),a=await i.decrypt(n,o,r);return new Uint8Array(a)}},l="AES-CBC",u="AES-CTR",d="AES-GCM";function h(e){return(t,n,r)=>{(0,i.abytes)(t),(0,i.abytes)(n);const o={name:e,length:8*t.length},s=function(e,t,n){if(e===l)return{name:l,iv:t};if(e===u)return{name:u,counter:t,length:64};if(e===d)return n?{name:d,iv:t,additionalData:n}:{name:d,iv:t};throw new Error("unknown aes block mode")}(e,n,r);let a=!1;return{encrypt(e){if((0,i.abytes)(e),a)throw new Error("Cannot encrypt() twice with same key / nonce");return a=!0,c.encrypt(t,o,s,e)},decrypt:e=>((0,i.abytes)(e),c.decrypt(t,o,s,e))}}}const f=(()=>h(l))(),p=(()=>h(u))(),m=(()=>h(d))()},4115:(e,t,n)=>{"use strict";n.r(t),n.d(t,{_poly1305_aead:()=>C,chacha12:()=>A,chacha20:()=>w,chacha20orig:()=>v,chacha20poly1305:()=>I,chacha8:()=>x,hchacha:()=>b,xchacha20:()=>_,xchacha20poly1305:()=>M});var r=n(4314);const i=e=>Uint8Array.from(e.split("").map(e=>e.charCodeAt(0))),o=i("expand 16-byte k"),s=i("expand 32-byte k"),a=(0,r.u32)(o),c=(0,r.u32)(s);function l(e,t){return e<<t|e>>>32-t}function u(e){return e.byteOffset%4===0}const d=2**32-1,h=new Uint32Array;function f(e,t){const{allowShortKeys:n,extendNonceFn:i,counterLength:o,counterRight:s,rounds:l}=(0,r.checkOpts)({allowShortKeys:!1,counterLength:8,counterRight:!1,rounds:20},t);if("function"!==typeof e)throw new Error("core must be a function");return(0,r.anumber)(o),(0,r.anumber)(l),(0,r.abool)(s),(0,r.abool)(n),function(t,f,p,m){let g=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;(0,r.abytes)(t),(0,r.abytes)(f),(0,r.abytes)(p);const y=p.length;if(void 0===m&&(m=new Uint8Array(y)),(0,r.abytes)(m),(0,r.anumber)(g),g<0||g>=d)throw new Error("arx: counter overflow");if(m.length<y)throw new Error("arx: output (".concat(m.length,") is shorter than data (").concat(y,")"));const b=[];let v,w,_=t.length;if(32===_)b.push(v=(0,r.copyBytes)(t)),w=c;else{if(16!==_||!n)throw new Error("arx: invalid 32-byte key, got length=".concat(_));v=new Uint8Array(32),v.set(t),v.set(t,16),w=a,b.push(v)}u(f)||b.push(f=(0,r.copyBytes)(f));const x=(0,r.u32)(v);if(i){if(24!==f.length)throw new Error("arx: extended nonce must be 24 bytes");i(w,x,(0,r.u32)(f.subarray(0,16)),x),f=f.subarray(16)}const A=16-o;if(A!==f.length)throw new Error("arx: nonce must be ".concat(A," or 16 bytes"));if(12!==A){const e=new Uint8Array(12);e.set(f,s?0:12-f.length),f=e,b.push(f)}const k=(0,r.u32)(f);return function(e,t,n,i,o,s,a,c){const l=o.length,f=new Uint8Array(64),p=(0,r.u32)(f),m=u(o)&&u(s),g=m?(0,r.u32)(o):h,y=m?(0,r.u32)(s):h;for(let r=0;r<l;a++){if(e(t,n,i,p,a,c),a>=d)throw new Error("arx: counter overflow");const u=Math.min(64,l-r);if(m&&64===u){const e=r/4;if(r%4!==0)throw new Error("arx: invalid block position");for(let t,n=0;n<16;n++)t=e+n,y[t]=g[t]^p[n];r+=64;continue}for(let e,t=0;t<u;t++)e=r+t,s[e]=o[e]^f[t];r+=u}}(e,w,x,k,p,m,g,l),(0,r.clean)(...b),m}}const p=(e,t)=>255&e[t++]|(255&e[t++])<<8;class m{constructor(e){this.blockLen=16,this.outputLen=16,this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.pos=0,this.finished=!1,e=(0,r.toBytes)(e),(0,r.abytes)(e,32);const t=p(e,0),n=p(e,2),i=p(e,4),o=p(e,6),s=p(e,8),a=p(e,10),c=p(e,12),l=p(e,14);this.r[0]=8191&t,this.r[1]=8191&(t>>>13|n<<3),this.r[2]=7939&(n>>>10|i<<6),this.r[3]=8191&(i>>>7|o<<9),this.r[4]=255&(o>>>4|s<<12),this.r[5]=s>>>1&8190,this.r[6]=8191&(s>>>14|a<<2),this.r[7]=8065&(a>>>11|c<<5),this.r[8]=8191&(c>>>8|l<<8),this.r[9]=l>>>5&127;for(let r=0;r<8;r++)this.pad[r]=p(e,16+2*r)}process(e,t){const n=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?0:2048,{h:r,r:i}=this,o=i[0],s=i[1],a=i[2],c=i[3],l=i[4],u=i[5],d=i[6],h=i[7],f=i[8],m=i[9],g=p(e,t+0),y=p(e,t+2),b=p(e,t+4),v=p(e,t+6),w=p(e,t+8),_=p(e,t+10),x=p(e,t+12),A=p(e,t+14);let k=r[0]+(8191&g),E=r[1]+(8191&(g>>>13|y<<3)),S=r[2]+(8191&(y>>>10|b<<6)),P=r[3]+(8191&(b>>>7|v<<9)),C=r[4]+(8191&(v>>>4|w<<12)),I=r[5]+(w>>>1&8191),M=r[6]+(8191&(w>>>14|_<<2)),T=r[7]+(8191&(_>>>11|x<<5)),O=r[8]+(8191&(x>>>8|A<<8)),R=r[9]+(A>>>5|n),B=0,N=B+k*o+E*(5*m)+S*(5*f)+P*(5*h)+C*(5*d);B=N>>>13,N&=8191,N+=I*(5*u)+M*(5*l)+T*(5*c)+O*(5*a)+R*(5*s),B+=N>>>13,N&=8191;let U=B+k*s+E*o+S*(5*m)+P*(5*f)+C*(5*h);B=U>>>13,U&=8191,U+=I*(5*d)+M*(5*u)+T*(5*l)+O*(5*c)+R*(5*a),B+=U>>>13,U&=8191;let j=B+k*a+E*s+S*o+P*(5*m)+C*(5*f);B=j>>>13,j&=8191,j+=I*(5*h)+M*(5*d)+T*(5*u)+O*(5*l)+R*(5*c),B+=j>>>13,j&=8191;let L=B+k*c+E*a+S*s+P*o+C*(5*m);B=L>>>13,L&=8191,L+=I*(5*f)+M*(5*h)+T*(5*d)+O*(5*u)+R*(5*l),B+=L>>>13,L&=8191;let F=B+k*l+E*c+S*a+P*s+C*o;B=F>>>13,F&=8191,F+=I*(5*m)+M*(5*f)+T*(5*h)+O*(5*d)+R*(5*u),B+=F>>>13,F&=8191;let D=B+k*u+E*l+S*c+P*a+C*s;B=D>>>13,D&=8191,D+=I*o+M*(5*m)+T*(5*f)+O*(5*h)+R*(5*d),B+=D>>>13,D&=8191;let z=B+k*d+E*u+S*l+P*c+C*a;B=z>>>13,z&=8191,z+=I*s+M*o+T*(5*m)+O*(5*f)+R*(5*h),B+=z>>>13,z&=8191;let q=B+k*h+E*d+S*u+P*l+C*c;B=q>>>13,q&=8191,q+=I*a+M*s+T*o+O*(5*m)+R*(5*f),B+=q>>>13,q&=8191;let H=B+k*f+E*h+S*d+P*u+C*l;B=H>>>13,H&=8191,H+=I*c+M*a+T*s+O*o+R*(5*m),B+=H>>>13,H&=8191;let W=B+k*m+E*f+S*h+P*d+C*u;B=W>>>13,W&=8191,W+=I*l+M*c+T*a+O*s+R*o,B+=W>>>13,W&=8191,B=(B<<2)+B|0,B=B+N|0,N=8191&B,B>>>=13,U+=B,r[0]=N,r[1]=U,r[2]=j,r[3]=L,r[4]=F,r[5]=D,r[6]=z,r[7]=q,r[8]=H,r[9]=W}finalize(){const{h:e,pad:t}=this,n=new Uint16Array(10);let i=e[1]>>>13;e[1]&=8191;for(let r=2;r<10;r++)e[r]+=i,i=e[r]>>>13,e[r]&=8191;e[0]+=5*i,i=e[0]>>>13,e[0]&=8191,e[1]+=i,i=e[1]>>>13,e[1]&=8191,e[2]+=i,n[0]=e[0]+5,i=n[0]>>>13,n[0]&=8191;for(let r=1;r<10;r++)n[r]=e[r]+i,i=n[r]>>>13,n[r]&=8191;n[9]-=8192;let o=(1^i)-1;for(let r=0;r<10;r++)n[r]&=o;o=~o;for(let r=0;r<10;r++)e[r]=e[r]&o|n[r];e[0]=65535&(e[0]|e[1]<<13),e[1]=65535&(e[1]>>>3|e[2]<<10),e[2]=65535&(e[2]>>>6|e[3]<<7),e[3]=65535&(e[3]>>>9|e[4]<<4),e[4]=65535&(e[4]>>>12|e[5]<<1|e[6]<<14),e[5]=65535&(e[6]>>>2|e[7]<<11),e[6]=65535&(e[7]>>>5|e[8]<<8),e[7]=65535&(e[8]>>>8|e[9]<<5);let s=e[0]+t[0];e[0]=65535&s;for(let r=1;r<8;r++)s=(e[r]+t[r]|0)+(s>>>16)|0,e[r]=65535&s;(0,r.clean)(n)}update(e){(0,r.aexists)(this),e=(0,r.toBytes)(e),(0,r.abytes)(e);const{buffer:t,blockLen:n}=this,i=e.length;for(let r=0;r<i;){const o=Math.min(n-this.pos,i-r);if(o!==n)t.set(e.subarray(r,r+o),this.pos),this.pos+=o,r+=o,this.pos===n&&(this.process(t,0,!1),this.pos=0);else for(;n<=i-r;r+=n)this.process(e,r)}return this}destroy(){(0,r.clean)(this.h,this.r,this.buffer,this.pad)}digestInto(e){(0,r.aexists)(this),(0,r.aoutput)(e,this),this.finished=!0;const{buffer:t,h:n}=this;let{pos:i}=this;if(i){for(t[i++]=1;i<16;i++)t[i]=0;this.process(t,0,!0)}this.finalize();let o=0;for(let r=0;r<8;r++)e[o++]=n[r]>>>0,e[o++]=n[r]>>>8;return e}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const n=e.slice(0,t);return this.destroy(),n}}const g=function(e){const t=(t,n)=>e(n).update((0,r.toBytes)(t)).digest(),n=e(new Uint8Array(32));return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=t=>e(t),t}(e=>new m(e));function y(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:20,s=e[0],a=e[1],c=e[2],u=e[3],d=t[0],h=t[1],f=t[2],p=t[3],m=t[4],g=t[5],y=t[6],b=t[7],v=i,w=n[0],_=n[1],x=n[2],A=s,k=a,E=c,S=u,P=d,C=h,I=f,M=p,T=m,O=g,R=y,B=b,N=v,U=w,j=_,L=x;for(let D=0;D<o;D+=2)A=A+P|0,N=l(N^A,16),T=T+N|0,P=l(P^T,12),A=A+P|0,N=l(N^A,8),T=T+N|0,P=l(P^T,7),k=k+C|0,U=l(U^k,16),O=O+U|0,C=l(C^O,12),k=k+C|0,U=l(U^k,8),O=O+U|0,C=l(C^O,7),E=E+I|0,j=l(j^E,16),R=R+j|0,I=l(I^R,12),E=E+I|0,j=l(j^E,8),R=R+j|0,I=l(I^R,7),S=S+M|0,L=l(L^S,16),B=B+L|0,M=l(M^B,12),S=S+M|0,L=l(L^S,8),B=B+L|0,M=l(M^B,7),A=A+C|0,L=l(L^A,16),R=R+L|0,C=l(C^R,12),A=A+C|0,L=l(L^A,8),R=R+L|0,C=l(C^R,7),k=k+I|0,N=l(N^k,16),B=B+N|0,I=l(I^B,12),k=k+I|0,N=l(N^k,8),B=B+N|0,I=l(I^B,7),E=E+M|0,U=l(U^E,16),T=T+U|0,M=l(M^T,12),E=E+M|0,U=l(U^E,8),T=T+U|0,M=l(M^T,7),S=S+P|0,j=l(j^S,16),O=O+j|0,P=l(P^O,12),S=S+P|0,j=l(j^S,8),O=O+j|0,P=l(P^O,7);let F=0;r[F++]=s+A|0,r[F++]=a+k|0,r[F++]=c+E|0,r[F++]=u+S|0,r[F++]=d+P|0,r[F++]=h+C|0,r[F++]=f+I|0,r[F++]=p+M|0,r[F++]=m+T|0,r[F++]=g+O|0,r[F++]=y+R|0,r[F++]=b+B|0,r[F++]=v+N|0,r[F++]=w+U|0,r[F++]=_+j|0,r[F++]=x+L|0}function b(e,t,n,r){let i=e[0],o=e[1],s=e[2],a=e[3],c=t[0],u=t[1],d=t[2],h=t[3],f=t[4],p=t[5],m=t[6],g=t[7],y=n[0],b=n[1],v=n[2],w=n[3];for(let x=0;x<20;x+=2)i=i+c|0,y=l(y^i,16),f=f+y|0,c=l(c^f,12),i=i+c|0,y=l(y^i,8),f=f+y|0,c=l(c^f,7),o=o+u|0,b=l(b^o,16),p=p+b|0,u=l(u^p,12),o=o+u|0,b=l(b^o,8),p=p+b|0,u=l(u^p,7),s=s+d|0,v=l(v^s,16),m=m+v|0,d=l(d^m,12),s=s+d|0,v=l(v^s,8),m=m+v|0,d=l(d^m,7),a=a+h|0,w=l(w^a,16),g=g+w|0,h=l(h^g,12),a=a+h|0,w=l(w^a,8),g=g+w|0,h=l(h^g,7),i=i+u|0,w=l(w^i,16),m=m+w|0,u=l(u^m,12),i=i+u|0,w=l(w^i,8),m=m+w|0,u=l(u^m,7),o=o+d|0,y=l(y^o,16),g=g+y|0,d=l(d^g,12),o=o+d|0,y=l(y^o,8),g=g+y|0,d=l(d^g,7),s=s+h|0,b=l(b^s,16),f=f+b|0,h=l(h^f,12),s=s+h|0,b=l(b^s,8),f=f+b|0,h=l(h^f,7),a=a+c|0,v=l(v^a,16),p=p+v|0,c=l(c^p,12),a=a+c|0,v=l(v^a,8),p=p+v|0,c=l(c^p,7);let _=0;r[_++]=i,r[_++]=o,r[_++]=s,r[_++]=a,r[_++]=y,r[_++]=b,r[_++]=v,r[_++]=w}const v=f(y,{counterRight:!1,counterLength:8,allowShortKeys:!0}),w=f(y,{counterRight:!1,counterLength:4,allowShortKeys:!1}),_=f(y,{counterRight:!1,counterLength:8,extendNonceFn:b,allowShortKeys:!1}),x=f(y,{counterRight:!1,counterLength:4,rounds:8}),A=f(y,{counterRight:!1,counterLength:4,rounds:12}),k=new Uint8Array(16),E=(e,t)=>{e.update(t);const n=t.length%16;n&&e.update(k.subarray(n))},S=new Uint8Array(32);function P(e,t,n,i,o){const s=e(t,n,S),a=g.create(s);o&&E(a,o),E(a,i);const c=(0,r.u64Lengths)(i.length,o?o.length:0,!0);a.update(c);const l=a.digest();return(0,r.clean)(s,c),l}const C=e=>(t,n,i)=>{const o=16;return{encrypt(s,a){const c=s.length;(a=(0,r.getOutput)(c+o,a,!1)).set(s);const l=a.subarray(0,-16);e(t,n,l,l,1);const u=P(e,t,n,l,i);return a.set(u,c),(0,r.clean)(u),a},decrypt(s,a){a=(0,r.getOutput)(s.length-o,a,!1);const c=s.subarray(0,-16),l=s.subarray(-16),u=P(e,t,n,c,i);if(!(0,r.equalBytes)(l,u))throw new Error("invalid tag");return a.set(s.subarray(0,-16)),e(t,n,a,a,1),(0,r.clean)(u),a}}},I=(0,r.wrapCipher)({blockSize:64,nonceLength:12,tagLength:16},C(w)),M=(0,r.wrapCipher)({blockSize:64,nonceLength:24,tagLength:16},C(_))},4223:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,{A:()=>r})},4226:(e,t,n)=>{"use strict";const r=n(882).v4,i=n(9517),o=function(e,t){if(!(this instanceof o))return new o(e,t);t||(t={}),this.options={reviver:"undefined"!==typeof t.reviver?t.reviver:null,replacer:"undefined"!==typeof t.replacer?t.replacer:null,generator:"undefined"!==typeof t.generator?t.generator:function(){return r()},version:"undefined"!==typeof t.version?t.version:2,notificationIdNull:"boolean"===typeof t.notificationIdNull&&t.notificationIdNull},this.callServer=e};e.exports=o,o.prototype.request=function(e,t,n,r){const o=this;let s=null;const a=Array.isArray(e)&&"function"===typeof t;if(1===this.options.version&&a)throw new TypeError("JSON-RPC 1.0 does not support batching");if(a||!a&&e&&"object"===typeof e&&"function"===typeof t)r=t,s=e;else{"function"===typeof n&&(r=n,n=void 0);const o="function"===typeof r;try{s=i(e,t,n,{generator:this.options.generator,version:this.options.version,notificationIdNull:this.options.notificationIdNull})}catch(l){if(o)return r(l);throw l}if(!o)return s}let c;try{c=JSON.stringify(s,this.options.replacer)}catch(l){return r(l)}return this.callServer(c,function(e,t){o._parseResponse(e,t,r)}),s},o.prototype._parseResponse=function(e,t,n){if(e)return void n(e);if(!t)return n();let r;try{r=JSON.parse(t,this.options.reviver)}catch(e){return n(e)}if(3===n.length){if(Array.isArray(r)){const e=function(e){return"undefined"!==typeof e.error},t=function(t){return!e(t)};return n(null,r.filter(e),r.filter(t))}return n(null,r.error,r.result)}n(null,r)}},4235:(e,t,n)=>{"use strict";n.d(t,{Hi:()=>s,ft:()=>a,uj:()=>l});var r=n(4223),i=n(8090);const o=["address"];class s extends i.C{constructor(e){let{address:t}=e;super('State for account "'.concat(t,'" is set multiple times.'),{name:"AccountStateConflictError"})}}class a extends i.C{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function c(e){return e.reduce((e,t)=>{let{slot:n,value:r}=t;return"".concat(e," ").concat(n,": ").concat(r,"\n")},"")}function l(e){return e.reduce((e,t)=>{let{address:n}=t,i=(0,r.A)(t,o),s="".concat(e," ").concat(n,":\n");return i.nonce&&(s+=" nonce: ".concat(i.nonce,"\n")),i.balance&&(s+=" balance: ".concat(i.balance,"\n")),i.code&&(s+=" code: ".concat(i.code,"\n")),i.state&&(s+=" state:\n",s+=c(i.state)),i.stateDiff&&(s+=" stateDiff:\n",s+=c(i.stateDiff)),s}," State Override:\n").slice(0,-1)}},4282:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;const i=function(e){return"string"===typeof e&&r.test(e)}},4288:(e,t,n)=>{"use strict";t.ZD=void 0,t.w=function(e,t){return Buffer.from(function(e,t){var n=(0,i.ellipticCurve)(),a=new o.PrivateKey(void 0,n),c=e instanceof Uint8Array?new o.PublicKey(e,n):o.PublicKey.fromHex(e,n),l=a.encapsulate(c,(0,i.isHkdfKeyCompressed)()),u=a.publicKey.toBytes((0,i.isEphemeralKeyCompressed)()),d=(0,s.symEncrypt)(l,t);return(0,r.concatBytes)(u,d)}(e,t))},t.Yc=function(e,t){return Buffer.from(function(e,t){var n=(0,i.ellipticCurve)(),r=e instanceof Uint8Array?new o.PrivateKey(e,n):o.PrivateKey.fromHex(e,n),a=(0,i.ephemeralKeySize)(),c=new o.PublicKey(t.subarray(0,a),n),l=t.subarray(a),u=c.decapsulate(r,(0,i.isHkdfKeyCompressed)());return(0,s.symDecrypt)(u,l)}(e,t))};var r=n(4314),i=n(9956),o=n(2837),s=n(1586);var a=n(9956);var c=n(2837);Object.defineProperty(t,"ZD",{enumerable:!0,get:function(){return c.PrivateKey}}),s.aesEncrypt,s.aesDecrypt,s.symEncrypt,s.symDecrypt,s.decodeHex,s.getValidSecret,s.remove0x},4301:(e,t,n)=>{"use strict";const r=n(8116);e.exports=(e,t,n)=>r(e,t,n)>=0},4314:(e,t,n)=>{"use strict";function r(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function i(e){if("boolean"!==typeof e)throw new Error("boolean expected, not ".concat(e))}function o(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function s(e){if(!r(e))throw new Error("Uint8Array expected");for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];if(n.length>0&&!n.includes(e.length))throw new Error("Uint8Array expected of length "+n+", got length="+e.length)}function a(e){if("function"!==typeof e||"function"!==typeof e.create)throw new Error("Hash should be wrapped by utils.createHasher");o(e.outputLen),o(e.blockLen)}function c(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function l(e,t){s(e);const n=t.outputLen;if(e.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}function u(e){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}function d(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(let r=0;r<t.length;r++)t[r].fill(0)}function f(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}n.r(t),n.d(t,{Hash:()=>R,abool:()=>i,abytes:()=>s,aexists:()=>c,ahash:()=>a,anumber:()=>o,aoutput:()=>l,bytesToHex:()=>y,bytesToNumberBE:()=>x,bytesToUtf8:()=>S,checkOpts:()=>T,clean:()=>h,complexOverlapBytes:()=>I,concatBytes:()=>M,copyBytes:()=>F,createView:()=>f,equalBytes:()=>O,getOutput:()=>N,hexToBytes:()=>w,hexToNumber:()=>_,isAligned32:()=>L,isBytes:()=>r,isLE:()=>p,nextTick:()=>k,numberToBytesBE:()=>A,overlapBytes:()=>C,setBigUint64:()=>U,toBytes:()=>P,u32:()=>d,u64Lengths:()=>j,u8:()=>u,utf8ToBytes:()=>E,wrapCipher:()=>B});const p=(()=>68===new Uint8Array(new Uint32Array([287454020]).buffer)[0])(),m=(()=>"function"===typeof Uint8Array.from([]).toHex&&"function"===typeof Uint8Array.fromHex)(),g=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function y(e){if(s(e),m)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=g[e[n]];return t}const b={_0:48,_9:57,A:65,F:70,a:97,f:102};function v(e){return e>=b._0&&e<=b._9?e-b._0:e>=b.A&&e<=b.F?e-(b.A-10):e>=b.a&&e<=b.f?e-(b.a-10):void 0}function w(e){if("string"!==typeof e)throw new Error("hex string expected, got "+typeof e);if(m)return Uint8Array.fromHex(e);const t=e.length,n=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const r=new Uint8Array(n);for(let i=0,o=0;i<n;i++,o+=2){const t=v(e.charCodeAt(o)),n=v(e.charCodeAt(o+1));if(void 0===t||void 0===n){const t=e[o]+e[o+1];throw new Error('hex string expected, got non-hex character "'+t+'" at index '+o)}r[i]=16*t+n}return r}function _(e){if("string"!==typeof e)throw new Error("hex string expected, got "+typeof e);return BigInt(""===e?"0":"0x"+e)}function x(e){return _(y(e))}function A(e,t){return w(e.toString(16).padStart(2*t,"0"))}const k=async()=>{};function E(e){if("string"!==typeof e)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(e))}function S(e){return(new TextDecoder).decode(e)}function P(e){if("string"===typeof e)e=E(e);else{if(!r(e))throw new Error("Uint8Array expected, got "+typeof e);e=F(e)}return e}function C(e,t){return e.buffer===t.buffer&&e.byteOffset<t.byteOffset+t.byteLength&&t.byteOffset<e.byteOffset+e.byteLength}function I(e,t){if(C(e,t)&&e.byteOffset<t.byteOffset)throw new Error("complex overlap of input and output is not supported")}function M(){let e=0;for(let n=0;n<arguments.length;n++){const t=n<0||arguments.length<=n?void 0:arguments[n];s(t),e+=t.length}const t=new Uint8Array(e);for(let n=0,r=0;n<arguments.length;n++){const e=n<0||arguments.length<=n?void 0:arguments[n];t.set(e,r),r+=e.length}return t}function T(e,t){if(null==t||"object"!==typeof t)throw new Error("options must be defined");return Object.assign(e,t)}function O(e,t){if(e.length!==t.length)return!1;let n=0;for(let r=0;r<e.length;r++)n|=e[r]^t[r];return 0===n}class R{}const B=(e,t)=>{function n(n){if(s(n),!p)throw new Error("Non little-endian hardware is not yet supported");for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];if(void 0!==e.nonceLength){const t=i[0];if(!t)throw new Error("nonce / iv required");e.varSizeNonce?s(t):s(t,e.nonceLength)}const a=e.tagLength;a&&void 0!==i[1]&&s(i[1]);const c=t(n,...i),l=(e,t)=>{if(void 0!==t){if(2!==e)throw new Error("cipher output not supported");s(t)}};let u=!1;return{encrypt(e,t){if(u)throw new Error("cannot encrypt() twice with same key + nonce");return u=!0,s(e),l(c.encrypt.length,t),c.encrypt(e,t)},decrypt(e,t){if(s(e),a&&e.length<a)throw new Error("invalid ciphertext length: smaller than tagLength="+a);return l(c.decrypt.length,t),c.decrypt(e,t)}}}return Object.assign(n,e),n};function N(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(void 0===t)return new Uint8Array(e);if(t.length!==e)throw new Error("invalid output length, expected "+e+", got: "+t.length);if(n&&!L(t))throw new Error("invalid output, must be aligned");return t}function U(e,t,n,r){if("function"===typeof e.setBigUint64)return e.setBigUint64(t,n,r);const i=BigInt(32),o=BigInt(4294967295),s=Number(n>>i&o),a=Number(n&o),c=r?4:0,l=r?0:4;e.setUint32(t+c,s,r),e.setUint32(t+l,a,r)}function j(e,t,n){i(n);const r=new Uint8Array(16),o=f(r);return U(o,0,BigInt(t),n),U(o,8,BigInt(e),n),r}function L(e){return e.byteOffset%4===0}function F(e){return Uint8Array.from(e)}},4319:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4367:(e,t,n)=>{"use strict";n.d(t,{Bv:()=>a,bm:()=>c});var r=n(9740),i=n(4456),o=n(3506);const s={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function a(e,t){const n={};return"undefined"!==typeof e.authorizationList&&(n.authorizationList=e.authorizationList.map(e=>(0,r.A)((0,r.A)({address:e.address,r:e.r?(0,i.cK)(BigInt(e.r)):e.r,s:e.s?(0,i.cK)(BigInt(e.s)):e.s,chainId:(0,i.cK)(e.chainId),nonce:(0,i.cK)(e.nonce)},"undefined"!==typeof e.yParity?{yParity:(0,i.cK)(e.yParity)}:{}),"undefined"!==typeof e.v&&"undefined"===typeof e.yParity?{v:(0,i.cK)(e.v)}:{}))),"undefined"!==typeof e.accessList&&(n.accessList=e.accessList),"undefined"!==typeof e.blobVersionedHashes&&(n.blobVersionedHashes=e.blobVersionedHashes),"undefined"!==typeof e.blobs&&("string"!==typeof e.blobs[0]?n.blobs=e.blobs.map(e=>(0,i.My)(e)):n.blobs=e.blobs),"undefined"!==typeof e.data&&(n.data=e.data),e.account&&(n.from=e.account.address),"undefined"!==typeof e.from&&(n.from=e.from),"undefined"!==typeof e.gas&&(n.gas=(0,i.cK)(e.gas)),"undefined"!==typeof e.gasPrice&&(n.gasPrice=(0,i.cK)(e.gasPrice)),"undefined"!==typeof e.maxFeePerBlobGas&&(n.maxFeePerBlobGas=(0,i.cK)(e.maxFeePerBlobGas)),"undefined"!==typeof e.maxFeePerGas&&(n.maxFeePerGas=(0,i.cK)(e.maxFeePerGas)),"undefined"!==typeof e.maxPriorityFeePerGas&&(n.maxPriorityFeePerGas=(0,i.cK)(e.maxPriorityFeePerGas)),"undefined"!==typeof e.nonce&&(n.nonce=(0,i.cK)(e.nonce)),"undefined"!==typeof e.to&&(n.to=e.to),"undefined"!==typeof e.type&&(n.type=s[e.type]),"undefined"!==typeof e.value&&(n.value=(0,i.cK)(e.value)),n}const c=(0,o.q)("transactionRequest",a)},4442:(e,t,n)=>{"use strict";e.exports=n(5105)},4456:(e,t,n)=>{"use strict";n.d(t,{$P:()=>c,My:()=>l,cK:()=>u,i3:()=>h,nj:()=>a});var r=n(6469),i=n(2370),o=n(6091);const s=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"number"===typeof e||"bigint"===typeof e?u(e,t):"string"===typeof e?h(e,t):"boolean"===typeof e?c(e,t):l(e,t)}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n="0x".concat(Number(e));return"number"===typeof t.size?((0,o.Sl)(n,{size:t.size}),(0,i.eV)(n,{size:t.size})):n}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="";for(let i=0;i<e.length;i++)n+=s[e[i]];const r="0x".concat(n);return"number"===typeof t.size?((0,o.Sl)(r,{size:t.size}),(0,i.eV)(r,{dir:"right",size:t.size})):r}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{signed:n,size:o}=t,s=BigInt(e);let a;o?a=n?(1n<<8n*BigInt(o)-1n)-1n:2n**(8n*BigInt(o))-1n:"number"===typeof e&&(a=BigInt(Number.MAX_SAFE_INTEGER));const c="bigint"===typeof a&&n?-a-1n:0;if(a&&s>a||s<c){const t="bigint"===typeof e?"n":"";throw new r.Ty({max:a?"".concat(a).concat(t):void 0,min:"".concat(c).concat(t),signed:n,size:o,value:"".concat(e).concat(t)})}const l="0x".concat((n&&s<0?(1n<<BigInt(8*o))+BigInt(s):s).toString(16));return o?(0,i.eV)(l,{size:o}):l}const d=new TextEncoder;function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return l(d.encode(e),t)}},4507:(e,t,n)=>{"use strict";const r=n(7690),i=n(5151),o="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=c,t.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50;const s=2147483647;function a(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,n){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return l(e,t,n)}function l(e,t,n){if("string"===typeof e)return function(e,t){"string"===typeof t&&""!==t||(t="utf8");if(!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|m(e,t);let r=a(n);const i=r.write(e,t);i!==n&&(r=r.slice(0,i));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(J(e,Uint8Array)){const t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return h(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(J(e,ArrayBuffer)||e&&J(e.buffer,ArrayBuffer))return f(e,t,n);if("undefined"!==typeof SharedArrayBuffer&&(J(e,SharedArrayBuffer)||e&&J(e.buffer,SharedArrayBuffer)))return f(e,t,n);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return c.from(r,t,n);const i=function(e){if(c.isBuffer(e)){const t=0|p(e.length),n=a(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!==typeof e.length||Z(e.length)?a(0):h(e);if("Buffer"===e.type&&Array.isArray(e.data))return h(e.data)}(e);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return u(e),a(e<0?0:0|p(e))}function h(e){const t=e.length<0?0:0|p(e.length),n=a(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function f(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,c.prototype),r}function p(e){if(e>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function m(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||J(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return $(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(e).length;default:if(i)return r?-1:$(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return C(this,t,n);case"latin1":case"binary":return I(this,t,n);case"base64":return E(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function b(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Z(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,i);if("number"===typeof t)return t&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,i){let o,s=1,a=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,c/=2,n/=2}function l(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){let r=-1;for(o=n;o<a;o++)if(l(e,o)===l(t,-1===r?0:o-r)){if(-1===r&&(r=o),o-r+1===c)return r*s}else-1!==r&&(o-=o-r),r=-1}else for(n+c>a&&(n=a-c),o=n;o>=0;o--){let n=!0;for(let r=0;r<c;r++)if(l(e,o+r)!==l(t,r)){n=!1;break}if(n)return o}return-1}function w(e,t,n,r){n=Number(n)||0;const i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;const o=t.length;let s;for(r>o/2&&(r=o/2),s=0;s<r;++s){const r=parseInt(t.substr(2*s,2),16);if(Z(r))return s;e[n+s]=r}return s}function _(e,t,n,r){return G($(t,e.length-n),e,n,r)}function x(e,t,n,r){return G(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function A(e,t,n,r){return G(V(t),e,n,r)}function k(e,t,n,r){return G(function(e,t){let n,r,i;const o=[];for(let s=0;s<e.length&&!((t-=2)<0);++s)n=e.charCodeAt(s),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function E(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function S(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i<n;){const t=e[i];let o=null,s=t>239?4:t>223?3:t>191?2:1;if(i+s<=n){let n,r,a,c;switch(s){case 1:t<128&&(o=t);break;case 2:n=e[i+1],128===(192&n)&&(c=(31&t)<<6|63&n,c>127&&(o=c));break;case 3:n=e[i+1],r=e[i+2],128===(192&n)&&128===(192&r)&&(c=(15&t)<<12|(63&n)<<6|63&r,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:n=e[i+1],r=e[i+2],a=e[i+3],128===(192&n)&&128===(192&r)&&128===(192&a)&&(c=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&a,c>65535&&c<1114112&&(o=c))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=s}return function(e){const t=e.length;if(t<=P)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=P));return n}(r)}t.kMaxLength=s,c.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),c.TYPED_ARRAY_SUPPORT||"undefined"===typeof console||"function"!==typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,n){return function(e,t,n){return u(e),e<=0?a(e):void 0!==t?"string"===typeof n?a(e).fill(t,n):a(e).fill(t):a(e)}(e,t,n)},c.allocUnsafe=function(e){return d(e)},c.allocUnsafeSlow=function(e){return d(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(J(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),J(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=c.allocUnsafe(t);let i=0;for(n=0;n<e.length;++n){let t=e[n];if(J(t,Uint8Array))i+t.length>r.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},c.byteLength=m,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)y(this,t,t+1);return this},c.prototype.swap32=function(){const e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},c.prototype.swap64=function(){const e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},c.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?S(this,0,e):g.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){let e="";const n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},o&&(c.prototype[o]=c.prototype.inspect),c.prototype.compare=function(e,t,n,r,i){if(J(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0);const a=Math.min(o,s),l=this.slice(r,i),u=e.slice(t,n);for(let c=0;c<a;++c)if(l[c]!==u[c]){o=l[c],s=u[c];break}return o<s?-1:s<o?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return b(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return b(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return w(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":case"latin1":case"binary":return x(this,e,t,n);case"base64":return A(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const P=4096;function C(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function I(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function M(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i="";for(let o=t;o<n;++o)i+=Y[e[o]];return i}function T(e,t,n){const r=e.slice(t,n);let i="";for(let o=0;o<r.length-1;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function O(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,n,r,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function B(e,t,n,r,i){q(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,n}function N(e,t,n,r,i){q(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=s,s>>=8,e[n+2]=s,s>>=8,e[n+1]=s,s>>=8,e[n]=s,n+8}function U(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function j(e,t,n,r,o){return t=+t,n>>>=0,o||U(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function L(e,t,n,r,o){return t=+t,n>>>=0,o||U(e,0,n,8),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,c.prototype),r},c.prototype.readUintLE=c.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||O(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return r},c.prototype.readUintBE=c.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||O(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||O(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||O(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||O(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||O(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||O(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=Q(function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))}),c.prototype.readBigUInt64BE=Q(function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)}),c.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||O(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||O(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||O(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||O(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){e>>>=0,t||O(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||O(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||O(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=Q(function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)}),c.prototype.readBigInt64BE=Q(function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)}),c.prototype.readFloatLE=function(e,t){return e>>>=0,t||O(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||O(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||O(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||O(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){R(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){R(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigUInt64LE=Q(function(e){return B(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=Q(function(e){return N(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);R(this,e,t,n,r-1,-r)}let i=0,o=1,s=0;for(this[t]=255&e;++i<n&&(o*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);R(this,e,t,n,r-1,-r)}let i=n-1,o=1,s=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigInt64LE=Q(function(e){return B(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=Q(function(e){return N(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeFloatLE=function(e,t,n){return j(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return j(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const i=r-n;return this===e&&"function"===typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},c.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"===typeof e?e&=255:"boolean"===typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(i=t;i<n;++i)this[i]=e;else{const o=c.isBuffer(e)?e:c.from(e,r),s=o.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=o[i%s]}return this};const F={};function D(e,t,n){F[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name="".concat(this.name," [").concat(e,"]"),this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return"".concat(this.name," [").concat(e,"]: ").concat(this.message)}}}function z(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t="_".concat(e.slice(n-3,n)).concat(t);return"".concat(e.slice(0,n)).concat(t)}function q(e,t,n,r,i,o){if(e>n||e<t){const r="bigint"===typeof t?"n":"";let i;throw i=o>3?0===t||t===BigInt(0)?">= 0".concat(r," and < 2").concat(r," ** ").concat(8*(o+1)).concat(r):">= -(2".concat(r," ** ").concat(8*(o+1)-1).concat(r,") and < 2 ** ")+"".concat(8*(o+1)-1).concat(r):">= ".concat(t).concat(r," and <= ").concat(n).concat(r),new F.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){H(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||W(t,e.length-(n+1))}(r,i,o)}function H(e,t){if("number"!==typeof e)throw new F.ERR_INVALID_ARG_TYPE(t,"number",e)}function W(e,t,n){if(Math.floor(e)!==e)throw H(e,n),new F.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new F.ERR_BUFFER_OUT_OF_BOUNDS;throw new F.ERR_OUT_OF_RANGE(n||"offset",">= ".concat(n?1:0," and <= ").concat(t),e)}D("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?"".concat(e," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"},RangeError),D("ERR_INVALID_ARG_TYPE",function(e,t){return'The "'.concat(e,'" argument must be of type number. Received type ').concat(typeof t)},TypeError),D("ERR_OUT_OF_RANGE",function(e,t,n){let r='The value of "'.concat(e,'" is out of range.'),i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=z(String(n)):"bigint"===typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=z(i)),i+="n"),r+=" It must be ".concat(t,". Received ").concat(i),r},RangeError);const K=/[^+/0-9A-Za-z-_]/g;function $(e,t){let n;t=t||1/0;const r=e.length;let i=null;const o=[];for(let s=0;s<r;++s){if(n=e.charCodeAt(s),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function V(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(K,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function G(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function J(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Z(e){return e!==e}const Y=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function Q(e){return"undefined"===typeof BigInt?X:e}function X(){throw new Error("BigInt not supported")}},4543:(e,t,n)=>{"use strict";n.d(t,{B4:()=>p,CQ:()=>_,CW:()=>w,Ei:()=>h,F8:()=>x,P5:()=>f,TH:()=>A,Vl:()=>b,Vr:()=>v,WM:()=>m,WQ:()=>y,im:()=>g,jm:()=>c,lD:()=>s,qh:()=>d,rE:()=>l,ry:()=>u,xn:()=>a});const r=BigInt(2**32-1),i=BigInt(32);function o(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?{h:Number(e&r),l:Number(e>>i&r)}:{h:0|Number(e>>i&r),l:0|Number(e&r)}}function s(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=e.length;let r=new Uint32Array(n),i=new Uint32Array(n);for(let s=0;s<n;s++){const{h:n,l:a}=o(e[s],t);[r[s],i[s]]=[n,a]}return[r,i]}const a=(e,t,n)=>e>>>n,c=(e,t,n)=>e<<32-n|t>>>n,l=(e,t,n)=>e>>>n|t<<32-n,u=(e,t,n)=>e<<32-n|t>>>n,d=(e,t,n)=>e<<64-n|t>>>n-32,h=(e,t,n)=>e>>>n-32|t<<64-n,f=(e,t,n)=>e<<n|t>>>32-n,p=(e,t,n)=>t<<n|e>>>32-n,m=(e,t,n)=>t<<n-32|e>>>64-n,g=(e,t,n)=>e<<n-32|t>>>64-n;function y(e,t,n,r){const i=(t>>>0)+(r>>>0);return{h:e+n+(i/2**32|0)|0,l:0|i}}const b=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0),v=(e,t,n,r)=>t+n+r+(e/2**32|0)|0,w=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0),_=(e,t,n,r,i)=>t+n+r+i+(e/2**32|0)|0,x=(e,t,n,r,i)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(i>>>0),A=(e,t,n,r,i,o)=>t+n+r+i+o+(e/2**32|0)|0},4580:(e,t,n)=>{"use strict";const r="object"===typeof n(7802)&&{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.NODE_DEBUG&&/\bsemver\b/i.test({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.NODE_DEBUG)?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error("SEMVER",...t)}:()=>{};e.exports=r},4591:(e,t,n)=>{"use strict";n.d(t,{E8:()=>i,RZ:()=>o});var r=n(2867);function i(e,t){return new r._k({type:e,schema:null,validator:t})}function o(e){let t;return new r._k({type:"lazy",schema:null,*entries(n,r){null!==t&&void 0!==t||(t=e()),yield*t.entries(n,r)},validator:(n,r)=>(null!==t&&void 0!==t||(t=e()),t.validator(n,r)),coercer:(n,r)=>(null!==t&&void 0!==t||(t=e()),t.coercer(n,r)),refiner:(n,r)=>(null!==t&&void 0!==t||(t=e()),t.refiner(n,r))})}},4617:(e,t,n)=>{"use strict";n.d(t,{M:()=>i});var r=n(6583);function i(e){var t;let{blockNumber:n,chain:i,contract:o}=e;const s=null===i||void 0===i||null===(t=i.contracts)||void 0===t?void 0:t[o];if(!s)throw new r.rj({chain:i,contract:{name:o}});if(n&&s.blockCreated&&s.blockCreated>n)throw new r.rj({blockNumber:n,chain:i,contract:{name:o,blockCreated:s.blockCreated}});return s.address}},4710:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToPublicKey=t.convertPublicKeyFormat=t.getSharedPoint=t.getPublicKey=t.isValidPrivateKey=t.getValidSecret=void 0;var r=n(4101),i=n(5471),o=n(8717),s=n(9956),a=n(8798),c=n(2115);t.getValidSecret=function(e){var n;do{n=(0,r.randomBytes)(a.SECRET_KEY_LENGTH)}while(!(0,t.isValidPrivateKey)(n,e));return n};t.isValidPrivateKey=function(e,t){return l(t,function(t){return t.utils.isValidSecretKey(e)},function(){return!0},function(){return!0})};t.getPublicKey=function(e,t){return l(t,function(t){return t.getPublicKey(e)},function(t){return t.getPublicKey(e)},function(t){return t.getPublicKey(e)})};t.getSharedPoint=function(e,t,n,r){return l(r,function(r){return r.getSharedSecret(e,t,n)},function(n){return n.getSharedSecret(e,t)},function(n){return d(n,e,t)})};t.convertPublicKeyFormat=function(e,t,n){return l(n,function(n){return n.getSharedSecret(Uint8Array.from(Array(31).fill(0).concat([1])),e,t)},function(){return e},function(){return e})};function l(e,t,n,r){var a=e||(0,s.ellipticCurve)();if("secp256k1"===a)return t(o.secp256k1);if("x25519"===a)return n(i.x25519);if("ed25519"===a)return r(i.ed25519);throw new Error("Not implemented")}t.hexToPublicKey=function(e,t){var n=(0,c.decodeHex)(e);return l(t,function(){return u(n)},function(){return n},function(){return n})};var u=function(e){if(e.length===a.ETH_PUBLIC_KEY_SIZE){var t=new Uint8Array(1+e.length);return t.set([4]),t.set(e,1),t}return e},d=function(e,t,n){var r=e.utils.getExtendedPublicKey(t).scalar;return e.Point.fromBytes(n).multiply(r).toBytes()}},4836:(e,t,n)=>{"use strict";function r(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],o=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=o(n)):"call"!==i&&"optionalCall"!==i||(n=o(function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return n.call(t,...r)}),t=void 0)}return n}var i,o,s;Object.defineProperty(t,"__esModule",{value:!0});var a,c=n(5806),l=(a=c)&&a.__esModule?a:{default:a},u=(e=>(e.DISCONNECTED="DISCONNECTED",e.CONNECTING="CONNECTING",e.CONNECTED="CONNECTED",e))(u||{}),d=(e=>(e.SESSION_EXPIRED="SESSION_EXPIRED",e.SESSION_NOT_FOUND="SESSION_NOT_FOUND",e.SESSION_INVALID_STATE="SESSION_INVALID_STATE",e.SESSION_SAVE_FAILED="SESSION_SAVE_FAILED",e.TRANSPORT_DISCONNECTED="TRANSPORT_DISCONNECTED",e.TRANSPORT_PUBLISH_FAILED="TRANSPORT_PUBLISH_FAILED",e.TRANSPORT_SUBSCRIBE_FAILED="TRANSPORT_SUBSCRIBE_FAILED",e.TRANSPORT_HISTORY_FAILED="TRANSPORT_HISTORY_FAILED",e.TRANSPORT_PARSE_FAILED="TRANSPORT_PARSE_FAILED",e.TRANSPORT_RECONNECT_FAILED="TRANSPORT_RECONNECT_FAILED",e.DECRYPTION_FAILED="DECRYPTION_FAILED",e.REQUEST_EXPIRED="REQUEST_EXPIRED",e.OTP_INCORRECT="OTP_INCORRECT",e.OTP_MAX_ATTEMPTS_REACHED="OTP_MAX_ATTEMPTS_REACHED",e.OTP_ENTRY_TIMEOUT="OTP_ENTRY_TIMEOUT",e.UNKNOWN="UNKNOWN",e))(d||{}),h=class extends Error{constructor(e,t){super(t||e),this.code=e,this.name=e}},f=class extends h{},p=class extends h{},m=class extends h{},g=i=class extends l.default{__init(){this.session=null}__init2(){this._state="DISCONNECTED"}on(e,t){return super.on(e,t)}constructor(e,t,n){super(),i.prototype.__init.call(this),i.prototype.__init2.call(this),this.transport=e,this.keymanager=t,this.sessionstore=n,this.transport.on("error",e=>this.emit("error",e)),this.transport.on("message",async e=>{if(!r([this,"access",e=>e.session,"optionalAccess",e=>e.keyPair,"access",e=>e.privateKey]))return;const t=await this.decryptMessage(e.data);t&&this.handleMessage(t)})}get state(){return this._state}set state(e){this._state=e}async reconnect(){if("CONNECTING"!==this.state&&this.session&&this.transport.reconnect)try{this.state="CONNECTING",await this.transport.reconnect(),this.state="CONNECTED",this.emit("connected")}catch(e){throw this.state="DISCONNECTED",new p("TRANSPORT_RECONNECT_FAILED","Failed to reconnect")}}async resume(e){if("DISCONNECTED"!==this.state)throw new f("SESSION_INVALID_STATE","Cannot resume when state is ".concat(this.state));this.state="CONNECTING";try{const t=await this.sessionstore.get(e);if(!t)throw new f("SESSION_NOT_FOUND","Session not found or expired");this.session=t,await this.transport.connect(),await this.transport.subscribe(t.channel),this.state="CONNECTED",this.emit("connected")}catch(t){throw this.state="DISCONNECTED",this.session=null,t}}async disconnect(){if(!this.session)return;const e=this.session;this.session=null,this.state="DISCONNECTED",await this.transport.disconnect(),await this.transport.clear(e.channel),await this.sessionstore.delete(e.id),this.emit("disconnected")}async sendMessage(e,t){if(!this.session)throw new f("SESSION_INVALID_STATE","Cannot send message: session is not initialized.");await this.checkSessionExpiry();const n=JSON.stringify(t),r=await this.keymanager.encrypt(n,this.session.theirPublicKey);if(!await this.transport.publish(e,r))throw new p("TRANSPORT_DISCONNECTED","Message could not be sent because the transport is disconnected.")}async checkSessionExpiry(){if(this.session&&this.session.expiresAt<Date.now())throw await this.disconnect(),new f("SESSION_EXPIRED","Session expired")}async decryptMessage(e){if(!r([this,"access",e=>e.session,"optionalAccess",e=>e.keyPair,"access",e=>e.privateKey]))return null;try{const t=await this.keymanager.decrypt(e,this.session.keyPair.privateKey);return JSON.parse(t)}catch(t){const e=t instanceof Error?t.message:String(t);return this.emit("error",new m("DECRYPTION_FAILED","Decryption failed: ".concat(e))),null}}},y=((o=class e{static __initStatic(){this.SESSION_PREFIX="session:"}static __initStatic2(){this.MASTER_LIST_KEY="sessions:master-list"}constructor(e){this.kvstore=e,this.garbageCollect()}async set(e){if(e.expiresAt<Date.now())throw new f("SESSION_SAVE_FAILED","Cannot save expired session");const t={id:e.id,channel:e.channel,keyPair:{publicKeyB64:Buffer.from(e.keyPair.publicKey).toString("base64"),privateKeyB64:Buffer.from(e.keyPair.privateKey).toString("base64")},theirPublicKeyB64:Buffer.from(e.theirPublicKey).toString("base64"),expiresAt:e.expiresAt},n=this.getSessionKey(e.id);await this.kvstore.set(n,JSON.stringify(t)),await this.addToMasterList(e.id)}async get(e){const t=this.getSessionKey(e),n=await this.kvstore.get(t);if(!n)return null;try{const t=JSON.parse(n);if(t.expiresAt<Date.now())return await this.delete(e),null;return{id:t.id,channel:t.channel,keyPair:{publicKey:new Uint8Array(Buffer.from(t.keyPair.publicKeyB64,"base64")),privateKey:new Uint8Array(Buffer.from(t.keyPair.privateKeyB64,"base64"))},theirPublicKey:new Uint8Array(Buffer.from(t.theirPublicKeyB64,"base64")),expiresAt:t.expiresAt}}catch(r){return await this.delete(e),null}}async list(){const e=await this.getMasterList(),t=[];for(const n of e){const e=await this.get(n);e&&t.push(e)}return t}async delete(e){const t=this.getSessionKey(e);await this.kvstore.delete(t),await this.removeFromMasterList(e)}async garbageCollect(){const e=await this.getMasterList();await Promise.all(e.map(async e=>this.get(e)))}getSessionKey(t){return"".concat(e.SESSION_PREFIX).concat(t)}async getMasterList(){const t=await this.kvstore.get(e.MASTER_LIST_KEY);if(!t)return[];try{return JSON.parse(t)}catch(n){return[]}}async addToMasterList(t){const n=await this.getMasterList();n.includes(t)||(n.push(t),await this.kvstore.set(e.MASTER_LIST_KEY,JSON.stringify(n)))}async removeFromMasterList(t){const n=(await this.getMasterList()).filter(e=>e!==t);await this.kvstore.set(e.MASTER_LIST_KEY,JSON.stringify(n))}}).__initStatic(),o.__initStatic2(),o),b=n(8632),v=e=>new Promise(t=>setTimeout(t,e));var w=n(2027),_=class e{static async create(t){const n=e.getClientIdKey();let r=await t.get(n);return r||(r=w.v4.call(void 0),await t.set(n,r)),new e(t,r)}constructor(e,t){this.kvstore=e,this.clientId=t}getClientId(){return this.clientId}async getNextNonce(e){const t=this.getNonceKey(e),n=await this.kvstore.get(t),r=(n?parseInt(n,10):0)+1;return await this.kvstore.set(t,r.toString()),r}async getLatestNonces(e){const t=this.getLatestNoncesKey(e),n=await this.kvstore.get(t);if(n){const e=JSON.parse(n);return new Map(Object.entries(e))}return new Map}async setLatestNonces(e,t){const n=this.getLatestNoncesKey(e),r=Object.fromEntries(t);await this.kvstore.set(n,JSON.stringify(r))}async clear(e){const t=this.getNonceKey(e),n=this.getLatestNoncesKey(e);await Promise.all([this.kvstore.delete(t),this.kvstore.delete(n)])}static getClientIdKey(){return"websocket-transport-client-id"}getNonceKey(e){return"nonce:".concat(this.clientId,":").concat(e)}getLatestNoncesKey(e){return"latest-nonces:".concat(this.clientId,":").concat(e)}},x=s=class e extends l.default{__init3(){this.queue=[]}__init4(){this.isProcessingQueue=!1}__init5(){this.state="disconnected"}static async create(t){const n=await _.create(t.kvstore);return new e(n,t)}constructor(e,t){super(),s.prototype.__init3.call(this),s.prototype.__init4.call(this),s.prototype.__init5.call(this),this.storage=e;const n={minReconnectDelay:100,maxReconnectDelay:3e4};void 0!==t.websocket&&(n.websocket=t.websocket),this.centrifuge=new(0,b.Centrifuge)(t.url,n),this.centrifuge.on("connecting",()=>this.setState("connecting")),this.centrifuge.on("connected",()=>{this.setState("connected"),this._processQueue()}),this.centrifuge.on("disconnected",()=>this.setState("disconnected")),this.centrifuge.on("error",e=>this.emit("error",new p("UNKNOWN",e.error.message)))}connect(){return"connected"===this.state||"connecting"===this.state?Promise.resolve():(this.setState("connecting"),new Promise(e=>{this.centrifuge.once("connected",()=>e()),this.centrifuge.connect()}))}disconnect(){return this.queue.forEach(e=>e.resolve(!1)),this.queue.length=0,"disconnected"===this.state?Promise.resolve():new Promise(e=>{const t=this.centrifuge.subscriptions();for(const n of Object.values(t))this.centrifuge.removeSubscription(n);this.centrifuge.once("disconnected",()=>e()),this.centrifuge.disconnect()})}reconnect(){return"connecting"===this.state?new Promise(e=>this.centrifuge.once("connected",()=>e())):(this.centrifuge.disconnect(),new Promise((e,t)=>{this.centrifuge.once("connected",()=>e()),this.centrifuge.once("error",e=>t(new p("TRANSPORT_RECONNECT_FAILED",e.error.message))),this.centrifuge.connect()}))}subscribe(e){if(this.centrifuge.getSubscription(e))return Promise.resolve();const t=this.centrifuge.newSubscription(e,{recoverable:!0,positioned:!0});return t.on("subscribed",n=>{n.recovered||this._fetchHistory(t,e),this._processQueue()}),t.on("publication",t=>{this._handleIncomingMessage(e,t.data)}),t.on("error",e=>this.emit("error",new p("TRANSPORT_SUBSCRIBE_FAILED","Subscription error: ".concat(e.error.message)))),new Promise(e=>{t.once("subscribed",()=>e()),t.subscribe()})}publish(e,t){const n=new Promise((n,r)=>{this.queue.push({channel:e,payload:t,resolve:n,reject:r})});return this._processQueue(),n}async clear(e){await this.storage.clear(e);const t=this.centrifuge.getSubscription(e);t&&this.centrifuge.removeSubscription(t)}setState(e){this.state!==e&&(this.state=e,this.emit(e))}async _handleIncomingMessage(e,t){try{const n=JSON.parse(t);if("string"!==typeof n.clientId||"number"!==typeof n.nonce||"string"!==typeof n.payload)throw new p("TRANSPORT_PARSE_FAILED","Invalid message format");if(n.clientId===this.storage.getClientId())return;const r=await this.storage.getLatestNonces(e),i=r.get(n.clientId)||0;n.nonce>i&&(r.set(n.clientId,n.nonce),await this.storage.setLatestNonces(e,r),this.emit("message",{channel:e,data:n.payload}))}catch(n){this.emit("error",new p("TRANSPORT_PARSE_FAILED","Failed to parse incoming message: ".concat(n instanceof Error?n.message:"Unknown error")))}}async _fetchHistory(e,t){try{const n=await e.history({limit:50});for(const e of n.publications)await this._handleIncomingMessage(t,e.data)}catch(n){if(11===r([n,"optionalAccess",e=>e.code]))return;this.emit("error",new p("TRANSPORT_HISTORY_FAILED","Failed to fetch history for channel ".concat(t,": ").concat(JSON.stringify(n))))}}async _process(e){const t={clientId:this.storage.getClientId(),nonce:await this.storage.getNextNonce(e.channel),payload:e.payload},n=JSON.stringify(t);return async function(e,t){for(let r=0;r<t.attempts;r++)try{return await e()}catch(n){if(r===t.attempts-1)throw n;const e=t.delay*2**r;await v(e)}throw new h("UNKNOWN","Retry logic failed unexpectedly.")}(async()=>{await this.centrifuge.publish(e.channel,n)},{attempts:5,delay:100})}async _processQueue(){if(!this.isProcessingQueue&&"connected"===this.state){this.isProcessingQueue=!0;try{for(;this.queue.length>0;){const t=this.queue[0];try{await this._process(t),this.queue.shift(),t.resolve(!0)}catch(e){this.queue.shift(),t.reject(e instanceof Error?e:new p("TRANSPORT_PUBLISH_FAILED","Failed to publish message after all retries"))}}}finally{this.isProcessingQueue=!1}}}};t.BaseClient=g,t.ClientState=u,t.CryptoError=m,t.DEFAULT_SESSION_TTL=2592e6,t.ErrorCode=d,t.ProtocolError=h,t.SessionError=f,t.SessionStore=y,t.TransportError=p,t.WebSocketTransport=x},4853:(e,t,n)=>{var r=n(7802);t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))}),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(n){}!e&&"undefined"!==typeof r&&"env"in r&&(e={NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.DEBUG);return e},t.useColors=function(){if("undefined"!==typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!==typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!==typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!==typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(948)(t);const{formatters:i}=e.exports;i.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},4902:(e,t,n)=>{"use strict";n.d(t,{D0:()=>M,LH:()=>I,Tp:()=>R,Tv:()=>T,dQ:()=>A,jr:()=>E,pS:()=>P,qy:()=>B,zH:()=>g,zi:()=>m});var r=n(3808),i=n(2766);const o=BigInt(0),s=BigInt(1),a=BigInt(2),c=BigInt(3),l=BigInt(4),u=BigInt(5),d=BigInt(7),h=BigInt(8),f=BigInt(9),p=BigInt(16);function m(e,t){const n=e%t;return n>=o?n:t+n}function g(e,t,n){let r=e;for(;t-- >o;)r*=r,r%=n;return r}function y(e,t){if(e===o)throw new Error("invert: expected non-zero number");if(t<=o)throw new Error("invert: expected positive modulus, got "+t);let n=m(e,t),r=t,i=o,a=s,c=s,l=o;for(;n!==o;){const e=r/n,t=r%n,o=i-c*e,s=a-l*e;r=n,n=t,i=c,a=l,c=o,l=s}if(r!==s)throw new Error("invert: does not exist");return m(i,t)}function b(e,t,n){if(!e.eql(e.sqr(t),n))throw new Error("Cannot find square root")}function v(e,t){const n=(e.ORDER+s)/l,r=e.pow(t,n);return b(e,r,t),r}function w(e,t){const n=(e.ORDER-u)/h,r=e.mul(t,a),i=e.pow(r,n),o=e.mul(t,i),s=e.mul(e.mul(o,a),i),c=e.mul(o,e.sub(s,e.ONE));return b(e,c,t),c}function _(e){if(e<c)throw new Error("sqrt is not defined for small field");let t=e-s,n=0;for(;t%a===o;)t/=a,n++;let r=a;const i=M(e);for(;1===C(i,r);)if(r++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(1===n)return v;let l=i.pow(r,t);const u=(t+s)/a;return function(e,r){if(e.is0(r))return r;if(1!==C(e,r))throw new Error("Cannot find square root");let i=n,o=e.mul(e.ONE,l),a=e.pow(r,t),c=e.pow(r,u);for(;!e.eql(a,e.ONE);){if(e.is0(a))return e.ZERO;let t=1,n=e.sqr(a);for(;!e.eql(n,e.ONE);)if(t++,n=e.sqr(n),t===i)throw new Error("Cannot find square root");const r=s<<BigInt(i-t-1),l=e.pow(o,r);i=t,o=e.sqr(l),a=e.mul(a,o),c=e.mul(c,l)}return c}}function x(e){return e%l===c?v:e%h===u?w:e%p===f?function(e){const t=M(e),n=_(e),r=n(t,t.neg(t.ONE)),i=n(t,r),o=n(t,t.neg(r)),s=(e+d)/p;return(e,t)=>{let n=e.pow(t,s),a=e.mul(n,r);const c=e.mul(n,i),l=e.mul(n,o),u=e.eql(e.sqr(a),t),d=e.eql(e.sqr(c),t);n=e.cmov(n,a,u),a=e.cmov(l,c,d);const h=e.eql(e.sqr(a),t),f=e.cmov(n,a,h);return b(e,f,t),f}}(e):_(e)}const A=(e,t)=>(m(e,t)&s)===s,k=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function E(e){const t=k.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"number",BITS:"number"});return(0,r.DS)(e,t),e}function S(e,t,n){if(n<o)throw new Error("invalid exponent, negatives unsupported");if(n===o)return e.ONE;if(n===s)return t;let r=e.ONE,i=t;for(;n>o;)n&s&&(r=e.mul(r,i)),i=e.sqr(i),n>>=s;return r}function P(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=new Array(t.length).fill(n?e.ZERO:void 0),i=t.reduce((t,n,i)=>e.is0(n)?t:(r[i]=t,e.mul(t,n)),e.ONE),o=e.inv(i);return t.reduceRight((t,n,i)=>e.is0(n)?t:(r[i]=e.mul(t,r[i]),e.mul(t,n)),o),r}function C(e,t){const n=(e.ORDER-s)/a,r=e.pow(t,n),i=e.eql(r,e.ONE),o=e.eql(r,e.ZERO),c=e.eql(r,e.neg(e.ONE));if(!i&&!o&&!c)throw new Error("invalid Legendre symbol result");return i?1:o?0:-1}function I(e,t){void 0!==t&&(0,i.Fe)(t);const n=void 0!==t?t:e.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}function M(e,t){let n,i,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(e<=o)throw new Error("invalid field: expected ORDER > 0, got "+e);let l,u=!1;if("object"===typeof t&&null!=t){if(c.sqrt||a)throw new Error("cannot specify opts in two arguments");const e=t;e.BITS&&(n=e.BITS),e.sqrt&&(i=e.sqrt),"boolean"===typeof e.isLE&&(a=e.isLE),"boolean"===typeof e.modFromBytes&&(u=e.modFromBytes),l=e.allowedLengths}else"number"===typeof t&&(n=t),c.sqrt&&(i=c.sqrt);const{nBitLength:d,nByteLength:h}=I(e,n);if(h>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let f;const p=Object.freeze({ORDER:e,isLE:a,BITS:d,BYTES:h,MASK:(0,r.OG)(d),ZERO:o,ONE:s,allowedLengths:l,create:t=>m(t,e),isValid:t=>{if("bigint"!==typeof t)throw new Error("invalid field element: expected bigint, got "+typeof t);return o<=t&&t<e},is0:e=>e===o,isValidNot0:e=>!p.is0(e)&&p.isValid(e),isOdd:e=>(e&s)===s,neg:t=>m(-t,e),eql:(e,t)=>e===t,sqr:t=>m(t*t,e),add:(t,n)=>m(t+n,e),sub:(t,n)=>m(t-n,e),mul:(t,n)=>m(t*n,e),pow:(e,t)=>S(p,e,t),div:(t,n)=>m(t*y(n,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>y(t,e),sqrt:i||(t=>(f||(f=x(e)),f(p,t))),toBytes:e=>a?(0,r.z)(e,h):(0,r.lq)(e,h),fromBytes:function(t){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(l){if(!l.includes(t.length)||t.length>h)throw new Error("Field.fromBytes: expected "+l+" bytes, got "+t.length);const e=new Uint8Array(h);e.set(t,a?0:e.length-t.length),t=e}if(t.length!==h)throw new Error("Field.fromBytes: expected "+h+" bytes, got "+t.length);let i=a?(0,r.lX)(t):(0,r.Ph)(t);if(u&&(i=m(i,e)),!n&&!p.isValid(i))throw new Error("invalid field element: outside of range 0..ORDER");return i},invertBatch:e=>P(p,e),cmov:(e,t,n)=>n?t:e});return Object.freeze(p)}function T(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const n=e.sqrt(t);return e.isOdd(n)?e.neg(n):n}function O(e){if("bigint"!==typeof e)throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function R(e){const t=O(e);return t+Math.ceil(t/2)}function B(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const i=e.length,o=O(t),a=R(t);if(i<16||i<a||i>1024)throw new Error("expected "+a+"-1024 bytes of input, got "+i);const c=m(n?(0,r.lX)(e):(0,r.Ph)(e),t-s)+s;return n?(0,r.z)(c,o):(0,r.lq)(c,o)}},4934:(e,t,n)=>{"use strict";n.d(t,{w:()=>o});var r=n(2766);class i extends r.Vw{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,r.sd)(e);const n=(0,r.ZJ)(t);if(this.iHash=e.create(),"function"!==typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const i=this.blockLen,o=new Uint8Array(i);o.set(n.length>i?e.create().update(n).digest():n);for(let r=0;r<o.length;r++)o[r]^=54;this.iHash.update(o),this.oHash=e.create();for(let r=0;r<o.length;r++)o[r]^=106;this.oHash.update(o),(0,r.uH)(o)}update(e){return(0,r.CC)(this),this.iHash.update(e),this}digestInto(e){(0,r.CC)(this),(0,r.DO)(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:t,iHash:n,finished:r,destroyed:i,blockLen:o,outputLen:s}=this;return e.finished=r,e.destroyed=i,e.blockLen=o,e.outputLen=s,e.oHash=t._cloneInto(e.oHash),e.iHash=n._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const o=(e,t,n)=>new i(e,t).update(n).digest();o.create=(e,t)=>new i(e,t)},4995:(e,t,n)=>{"use strict";function r(e,t){return function(e){var t;return Boolean("string"===typeof(null===e||void 0===e||null===(t=e.prototype)||void 0===t||null===(t=t.constructor)||void 0===t?void 0:t.name))}(e)?new e({message:t}):e({message:t})}n.d(t,{vA:()=>o});class i extends Error{constructor(e){super(e.message),this.code="ERR_ASSERTION"}}function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Assertion failed.";if(!e){if(t instanceof Error)throw t;throw r(arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,t)}}},4999:e=>{"use strict";const t=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!==typeof e?t:e:n},5105:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,s=i>>>1;r<s;){var a=2*(r+1)-1,c=e[a],l=a+1,u=e[l];if(0>o(c,n))l<i&&0>o(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[a]=n,r=a);else{if(!(l<i&&0>o(u,n)))break e;e[r]=u,e[l]=n,r=l}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"===typeof performance&&"function"===typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var a=Date,c=a.now();t.unstable_now=function(){return a.now()-c}}var l=[],u=[],d=1,h=null,f=3,p=!1,m=!1,g=!1,y=!1,b="function"===typeof setTimeout?setTimeout:null,v="function"===typeof clearTimeout?clearTimeout:null,w="undefined"!==typeof setImmediate?setImmediate:null;function _(e){for(var t=r(u);null!==t;){if(null===t.callback)i(u);else{if(!(t.startTime<=e))break;i(u),t.sortIndex=t.expirationTime,n(l,t)}t=r(u)}}function x(e){if(g=!1,_(e),!m)if(null!==r(l))m=!0,k||(k=!0,A());else{var t=r(u);null!==t&&O(x,t.startTime-e)}}var A,k=!1,E=-1,S=5,P=-1;function C(){return!!y||!(t.unstable_now()-P<S)}function I(){if(y=!1,k){var e=t.unstable_now();P=e;var n=!0;try{e:{m=!1,g&&(g=!1,v(E),E=-1),p=!0;var o=f;try{t:{for(_(e),h=r(l);null!==h&&!(h.expirationTime>e&&C());){var s=h.callback;if("function"===typeof s){h.callback=null,f=h.priorityLevel;var a=s(h.expirationTime<=e);if(e=t.unstable_now(),"function"===typeof a){h.callback=a,_(e),n=!0;break t}h===r(l)&&i(l),_(e)}else i(l);h=r(l)}if(null!==h)n=!0;else{var c=r(u);null!==c&&O(x,c.startTime-e),n=!1}}break e}finally{h=null,f=o,p=!1}n=void 0}}finally{n?A():k=!1}}}if("function"===typeof w)A=function(){w(I)};else if("undefined"!==typeof MessageChannel){var M=new MessageChannel,T=M.port2;M.port1.onmessage=I,A=function(){T.postMessage(null)}}else A=function(){b(I,0)};function O(e,n){E=b(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):S=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_requestPaint=function(){y=!0},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,i,o){var s=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?s+o:s:o=s,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:o,expirationTime:a=o+a,sortIndex:-1},o>s?(e.sortIndex=o,n(u,e),null===r(l)&&e===r(u)&&(g?(v(E),E=-1):g=!0,O(x,o-s))):(e.sortIndex=a,n(l,e),m||p||(m=!0,k||(k=!0,A()))),e},t.unstable_shouldYield=C,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},5117:(e,t,n)=>{var r=n(488);e.exports=function(e){return"string"!==typeof e?e:r(e)?e.slice(2):e}},5151:(e,t)=>{t.read=function(e,t,n,r,i){var o,s,a=8*i-r-1,c=(1<<a)-1,l=c>>1,u=-7,d=n?i-1:0,h=n?-1:1,f=e[t+d];for(d+=h,o=f&(1<<-u)-1,f>>=-u,u+=a;u>0;o=256*o+e[t+d],d+=h,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=r;u>0;s=256*s+e[t+d],d+=h,u-=8);if(0===o)o=1-l;else{if(o===c)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,r),o-=l}return(f?-1:1)*s*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var s,a,c,l=8*o-i-1,u=(1<<l)-1,d=u>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),(t+=s+d>=1?h/c:h*Math.pow(2,1-d))*c>=2&&(s++,c/=2),s+d>=u?(a=0,s=u):s+d>=1?(a=(t*c-1)*Math.pow(2,i),s+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,i),s=0));i>=8;e[n+f]=255&a,f+=p,a/=256,i-=8);for(s=s<<i|a,l+=i;l>0;e[n+f]=255&s,f+=p,s/=256,l-=8);e[n+f-p]|=128*m}},5206:(e,t,n)=>{"use strict";const r=n(5544);e.exports=(e,t)=>new r(e,t).major},5210:(e,t,n)=>{"use strict";n.d(t,{h:()=>m,k:()=>b});var r=n(9740),i=n(1588),o=n(7578),s=n(8090),a=n(6469),c=n(2569),l=n(7683),u=n(2370),d=n(1478),h=n(2129),f=n(4456);const p=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;function m(e,t){if(e.length!==t.length)throw new i.YE({expectedLength:e.length,givenLength:t.length});const n=function(e){let{params:t,values:n}=e;const r=[];for(let i=0;i<t.length;i++)r.push(g({param:t[i],value:n[i]}));return r}({params:e,values:t}),r=y(n);return 0===r.length?"0x":r}function g(e){let{param:t,value:n}=e;const m=b(t.type);if(m){const[e,o]=m;return function(e,t){let{length:n,param:r}=t;const o=null===n;if(!Array.isArray(e))throw new i.dm(e);if(!o&&e.length!==n)throw new i.Nc({expectedLength:n,givenLength:e.length,type:"".concat(r.type,"[").concat(n,"]")});let s=!1;const a=[];for(let i=0;i<e.length;i++){const t=g({param:r,value:e[i]});t.dynamic&&(s=!0),a.push(t)}if(o||s){const e=y(a);if(o){const t=(0,f.cK)(a.length,{size:32});return{dynamic:!0,encoded:a.length>0?(0,l.xW)([t,e]):t}}if(s)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,l.xW)(a.map(e=>{let{encoded:t}=e;return t}))}}(n,{length:e,param:(0,r.A)((0,r.A)({},t),{},{type:o})})}if("tuple"===t.type)return function(e,t){let{param:n}=t,r=!1;const i=[];for(let o=0;o<n.components.length;o++){const t=n.components[o],s=g({param:t,value:e[Array.isArray(e)?o:t.name]});i.push(s),s.dynamic&&(r=!0)}return{dynamic:r,encoded:r?y(i):(0,l.xW)(i.map(e=>{let{encoded:t}=e;return t}))}}(n,{param:t});if("address"===t.type)return function(e){if(!(0,c.P)(e))throw new o.M({address:e});return{dynamic:!1,encoded:(0,u.db)(e.toLowerCase())}}(n);if("bool"===t.type)return function(e){if("boolean"!==typeof e)throw new s.C('Invalid boolean value: "'.concat(e,'" (type: ').concat(typeof e,"). Expected: `true` or `false`."));return{dynamic:!1,encoded:(0,u.db)((0,f.$P)(e))}}(n);if(t.type.startsWith("uint")||t.type.startsWith("int")){var v;const e=t.type.startsWith("int"),[,,r="256"]=null!==(v=p.exec(t.type))&&void 0!==v?v:[];return function(e,t){let{signed:n,size:r=256}=t;if("number"===typeof r){const t=2n**(BigInt(r)-(n?1n:0n))-1n,i=n?-t-1n:0n;if(e>t||e<i)throw new a.Ty({max:t.toString(),min:i.toString(),signed:n,size:r/8,value:e.toString()})}return{dynamic:!1,encoded:(0,f.cK)(e,{size:32,signed:n})}}(n,{signed:e,size:Number(r)})}if(t.type.startsWith("bytes"))return function(e,t){let{param:n}=t;const[,r]=n.type.split("bytes"),o=(0,d.E)(e);if(!r){let t=e;return o%32!==0&&(t=(0,u.db)(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,l.xW)([(0,u.db)((0,f.cK)(o,{size:32})),t])}}if(o!==Number.parseInt(r,10))throw new i.gH({expectedSize:Number.parseInt(r,10),value:e});return{dynamic:!1,encoded:(0,u.db)(e,{dir:"right"})}}(n,{param:t});if("string"===t.type)return function(e){const t=(0,f.i3)(e),n=Math.ceil((0,d.E)(t)/32),r=[];for(let i=0;i<n;i++)r.push((0,u.db)((0,h.di)(t,32*i,32*(i+1)),{dir:"right"}));return{dynamic:!0,encoded:(0,l.xW)([(0,u.db)((0,f.cK)((0,d.E)(t),{size:32})),...r])}}(n);throw new i.nK(t.type,{docsPath:"/docs/contract/encodeAbiParameters"})}function y(e){let t=0;for(let o=0;o<e.length;o++){const{dynamic:n,encoded:r}=e[o];t+=n?32:(0,d.E)(r)}const n=[],r=[];let i=0;for(let o=0;o<e.length;o++){const{dynamic:s,encoded:a}=e[o];s?(n.push((0,f.cK)(t+i,{size:32})),r.push(a),i+=(0,d.E)(a)):n.push(a)}return(0,l.xW)([...n,...r])}function b(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}},5244:(e,t,n)=>{"use strict";n.d(t,{IV:()=>b,Ky:()=>m,Lo:()=>p,Ph:()=>y,mu:()=>w,vw:()=>g});var r=n(621),i=n(6140),o=n(2494),s=n(2747),a=n(4995);const{memoize:c}=s,l=/^(?:0x)?[0-9a-f]+$/i,u=/^0x[0-9a-f]+$/i,d=/^0x[0-9a-f]{40}$/,h=/^0x[0-9A-Fa-f]{40}$/,f=((0,r.T1)((0,i.Yj)(),l),(0,r.T1)((0,i.Yj)(),u),(0,r.T1)((0,i.Yj)(),d),(0,r.T1)((0,i.Yj)(),h),e=>"string"===typeof e);function p(e){return f(e)&&l.test(e)}function m(e){return f(e)&&u.test(e)}function g(e){return f(e)&&h.test(e)}function y(e){(0,a.vA)(p(e),"Value must be a hexadecimal string.")}const b=c(function(e){(0,a.vA)(g(e),"Invalid hex address.");const t=function(e){if(e.startsWith("0x")||e.startsWith("0X"))return e.substring(2);return e}(e).toLowerCase(),n=(0,o.lY)(t),{length:r}=t,i=new Array(r);for(let o=0;o<r;o++){const e=1&o,r=n[o>>1],s=0===e?r>>4:15&r;i[o]=s>=8?t[o].toUpperCase():t[o]}return"0x".concat(i.join(""))});const v=c(function(e){return!!g(e)&&b(e)===e});c(function(e){return f(t=e)&&d.test(t)||v(e);var t});function w(e){return e.startsWith("0x")?e:e.startsWith("0X")?"0x".concat(e.substring(2)):"0x".concat(e)}},5288:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSharedKey=t.deriveKey=void 0;var r=n(4314),i=n(9618),o=n(929);t.deriveKey=function(e,t,n){return(0,i.hkdf)(o.sha256,e,t,n,32)};t.getSharedKey=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0,t.deriveKey)(r.concatBytes.apply(void 0,e))}},5471:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ED25519_TORSION_SUBGROUP:()=>se,RistrettoPoint:()=>ue,ed25519:()=>U,ed25519_hasher:()=>$,ed25519ctx:()=>L,ed25519ph:()=>F,edwardsToMontgomery:()=>ce,edwardsToMontgomeryPriv:()=>le,edwardsToMontgomeryPub:()=>ae,encodeToCurve:()=>he,hashToCurve:()=>de,hashToRistretto255:()=>fe,hash_to_ristretto255:()=>pe,ristretto255:()=>ie,ristretto255_hasher:()=>oe,x25519:()=>D});var r=n(9740),i=n(929),o=n(2766),s=n(9231),a=n(3808),c=n(4902);const l=BigInt(0),u=BigInt(1),d=BigInt(2),h=BigInt(8);class f{constructor(e){this.ep=e}static fromBytes(e){(0,a.SJ)()}static fromHex(e){(0,a.SJ)()}get x(){return this.toAffine().x}get y(){return this.toAffine().y}clearCofactor(){return this}assertValidity(){this.ep.assertValidity()}toAffine(e){return this.ep.toAffine(e)}toHex(){return(0,o.My)(this.toBytes())}toString(){return this.toHex()}isTorsionFree(){return!0}isSmallOrder(){return!1}add(e){return this.assertSame(e),this.init(this.ep.add(e.ep))}subtract(e){return this.assertSame(e),this.init(this.ep.subtract(e.ep))}multiply(e){return this.init(this.ep.multiply(e))}multiplyUnsafe(e){return this.init(this.ep.multiplyUnsafe(e))}double(){return this.init(this.ep.double())}negate(){return this.init(this.ep.negate())}precompute(e,t){return this.init(this.ep.precompute(e,t))}toRawBytes(){return this.toBytes()}}function p(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("function"!==typeof t)throw new Error('"hash" function param is required');(0,a.DS)(n,{},{adjustScalarBytes:"function",randomBytes:"function",domain:"function",prehash:"function",mapToCurve:"function"});const{prehash:r}=n,{BASE:i,Fp:s,Fn:c}=e,l=n.randomBytes||o.po,d=n.adjustScalarBytes||(e=>e),h=n.domain||((e,t,n)=>{if((0,a.d6)(n,"phflag"),t.length||n)throw new Error("Contexts/pre-hash are not supported");return e});function f(e){return c.create((0,a.lX)(e))}function p(e){const{head:n,prefix:r,scalar:o}=function(e){const n=v.secretKey;e=(0,a.qj)("private key",e,n);const r=(0,a.qj)("hashed private key",t(e),2*n),i=d(r.slice(0,n));return{head:i,prefix:r.slice(n,2*n),scalar:f(i)}}(e),s=i.multiply(o),c=s.toBytes();return{head:n,prefix:r,scalar:o,point:s,pointBytes:c}}function m(e){return p(e).pointBytes}function g(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Uint8Array.of();for(var n=arguments.length,i=new Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];const c=(0,o.Id)(...i);return f(t(h(c,(0,a.qj)("context",e),!!r)))}const y={zip215:!0};const b=s.BYTES,v={secretKey:b,publicKey:b,signature:2*b,seed:b};function w(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l(v.seed);return(0,a.eV)(e,v.seed,"seed")}const _={getExtendedPublicKey:p,randomSecretKey:w,isValidSecretKey:function(e){return(0,o.aY)(e)&&e.length===c.BYTES},isValidPublicKey:function(t,n){try{return!!e.fromBytes(t,n)}catch(r){return!1}},toMontgomery(t){const{y:n}=e.fromBytes(t),r=v.publicKey,i=32===r;if(!i&&57!==r)throw new Error("only defined for 25519 and 448");const o=i?s.div(u+n,u-n):s.div(n-u,n+u);return s.toBytes(o)},toMontgomerySecret(e){const n=v.secretKey;(0,a.eV)(e,n);const r=t(e.subarray(0,n));return d(r).subarray(0,n)},randomPrivateKey:w,precompute(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.BASE).precompute(t,!1)}};return Object.freeze({keygen:function(e){const t=_.randomSecretKey(e);return{secretKey:t,publicKey:m(t)}},getPublicKey:m,sign:function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e=(0,a.qj)("message",e),r&&(e=r(e));const{prefix:s,scalar:l,pointBytes:u}=p(t),d=g(n.context,s,e),h=i.multiply(d).toBytes(),f=g(n.context,h,u,e),m=c.create(d+f*l);if(!c.isValid(m))throw new Error("sign failed: invalid s");const y=(0,o.Id)(h,c.toBytes(m));return(0,a.eV)(y,v.signature,"result")},verify:function(t,n,o){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:y;const{context:c,zip215:l}=s,u=v.signature;t=(0,a.qj)("signature",t,u),n=(0,a.qj)("message",n),o=(0,a.qj)("publicKey",o,v.publicKey),void 0!==l&&(0,a.d6)(l,"zip215"),r&&(n=r(n));const d=u/2,h=t.subarray(0,d),f=(0,a.lX)(t.subarray(d,u));let p,m,b;try{p=e.fromBytes(o,l),m=e.fromBytes(h,l),b=i.multiplyUnsafe(f)}catch(_){return!1}if(!l&&p.isSmallOrder())return!1;const w=g(c,m.toBytes(),p.toBytes(),n);return m.add(p.multiplyUnsafe(w)).subtract(b).clearCofactor().is0()},utils:_,Point:e,lengths:v})}function m(e){const{CURVE:t,curveOpts:n,hash:r,eddsaOpts:i}=function(e){const t={a:e.a,d:e.d,p:e.Fp.ORDER,n:e.n,h:e.h,Gx:e.Gx,Gy:e.Gy},n={Fp:e.Fp,Fn:(0,c.D0)(t.n,e.nBitLength,!0),uvRatio:e.uvRatio},r={randomBytes:e.randomBytes,adjustScalarBytes:e.adjustScalarBytes,domain:e.domain,prehash:e.prehash,mapToCurve:e.mapToCurve};return{CURVE:t,curveOpts:n,hash:e.hash,eddsaOpts:r}}(e),f=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=(0,s.UT)("edwards",e,t,t.FpFnLE),{Fp:r,Fn:i}=n;let c=n.CURVE;const{h:f}=c;(0,a.DS)(t,{},{uvRatio:"function"});const p=d<<BigInt(8*i.BYTES)-u,m=e=>r.create(e),g=t.uvRatio||((e,t)=>{try{return{isValid:!0,value:r.sqrt(r.div(e,t))}}catch(n){return{isValid:!1,value:l}}});if(!function(e,t,n,r){const i=e.sqr(n),o=e.sqr(r),s=e.add(e.mul(t.a,i),o),a=e.add(e.ONE,e.mul(t.d,e.mul(i,o)));return e.eql(s,a)}(r,c,c.Gx,c.Gy))throw new Error("bad curve params: generator point");function y(e,t){const n=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?u:l;return(0,a.aK)("coordinate "+e,t,n,p),t}function b(e){if(!(e instanceof _))throw new Error("ExtendedPoint expected")}const v=(0,a.x)((e,t)=>{const{X:n,Y:i,Z:o}=e,s=e.is0();null==t&&(t=s?h:r.inv(o));const a=m(n*t),c=m(i*t),d=r.mul(o,t);if(s)return{x:l,y:u};if(d!==u)throw new Error("invZ was invalid");return{x:a,y:c}}),w=(0,a.x)(e=>{const{a:t,d:n}=c;if(e.is0())throw new Error("bad point: ZERO");const{X:r,Y:i,Z:o,T:s}=e,a=m(r*r),l=m(i*i),u=m(o*o),d=m(u*u),h=m(a*t);if(m(u*m(h+l))!==m(d+m(n*m(a*l))))throw new Error("bad point: equation left != right (1)");if(m(r*i)!==m(o*s))throw new Error("bad point: equation left != right (2)");return!0});class _{constructor(e,t,n,r){this.X=y("x",e),this.Y=y("y",t),this.Z=y("z",n,!0),this.T=y("t",r),Object.freeze(this)}static CURVE(){return c}static fromAffine(e){if(e instanceof _)throw new Error("extended point not allowed");const{x:t,y:n}=e||{};return y("x",t),y("y",n),new _(t,n,u,m(t*n))}static fromBytes(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=r.BYTES,{a:i,d:o}=c;e=(0,a.nC)((0,a.eV)(e,n,"point")),(0,a.d6)(t,"zip215");const s=(0,a.nC)(e),d=e[n-1];s[n-1]=-129&d;const h=(0,a.lX)(s),f=t?p:r.ORDER;(0,a.aK)("point.y",h,l,f);const y=m(h*h),b=m(y-u),v=m(o*y-i);let{isValid:w,value:x}=g(b,v);if(!w)throw new Error("bad point: invalid y coordinate");const A=(x&u)===u,k=0!==(128&d);if(!t&&x===l&&k)throw new Error("bad point: x=0 and x_0=1");return k!==A&&(x=m(-x)),_.fromAffine({x:x,y:h})}static fromHex(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return _.fromBytes((0,a.qj)("point",e),t)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return x.createCache(this,e),t||this.multiply(d),this}assertValidity(){w(this)}equals(e){b(e);const{X:t,Y:n,Z:r}=this,{X:i,Y:o,Z:s}=e,a=m(t*s),c=m(i*r),l=m(n*s),u=m(o*r);return a===c&&l===u}is0(){return this.equals(_.ZERO)}negate(){return new _(m(-this.X),this.Y,this.Z,m(-this.T))}double(){const{a:e}=c,{X:t,Y:n,Z:r}=this,i=m(t*t),o=m(n*n),s=m(d*m(r*r)),a=m(e*i),l=t+n,u=m(m(l*l)-i-o),h=a+o,f=h-s,p=a-o,g=m(u*f),y=m(h*p),b=m(u*p),v=m(f*h);return new _(g,y,v,b)}add(e){b(e);const{a:t,d:n}=c,{X:r,Y:i,Z:o,T:s}=this,{X:a,Y:l,Z:u,T:d}=e,h=m(r*a),f=m(i*l),p=m(s*n*d),g=m(o*u),y=m((r+i)*(a+l)-h-f),v=g-p,w=g+p,x=m(f-t*h),A=m(y*v),k=m(w*x),E=m(y*x),S=m(v*w);return new _(A,k,S,E)}subtract(e){return this.add(e.negate())}multiply(e){if(!i.isValidNot0(e))throw new Error("invalid scalar: expected 1 <= sc < curve.n");const{p:t,f:n}=x.cached(this,e,e=>(0,s.Ak)(_,e));return(0,s.Ak)(_,[t,n])[0]}multiplyUnsafe(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_.ZERO;if(!i.isValid(e))throw new Error("invalid scalar: expected 0 <= sc < curve.n");return e===l?_.ZERO:this.is0()||e===u?this:x.unsafe(this,e,e=>(0,s.Ak)(_,e),t)}isSmallOrder(){return this.multiplyUnsafe(f).is0()}isTorsionFree(){return x.unsafe(this,c.n).is0()}toAffine(e){return v(this,e)}clearCofactor(){return f===u?this:this.multiplyUnsafe(f)}toBytes(){const{x:e,y:t}=this.toAffine(),n=r.toBytes(t);return n[n.length-1]|=e&u?128:0,n}toHex(){return(0,o.My)(this.toBytes())}toString(){return"<Point ".concat(this.is0()?"ZERO":this.toHex(),">")}get ex(){return this.X}get ey(){return this.Y}get ez(){return this.Z}get et(){return this.T}static normalizeZ(e){return(0,s.Ak)(_,e)}static msm(e,t){return(0,s.Xf)(_,i,e,t)}_setWindowSize(e){this.precompute(e)}toRawBytes(){return this.toBytes()}}_.BASE=new _(c.Gx,c.Gy,u,m(c.Gx*c.Gy)),_.ZERO=new _(l,u,u,l),_.Fp=r,_.Fn=i;const x=new s.hT(_,i.BITS);return _.BASE.precompute(8),_}(t,n);return function(e,t){const n=t.Point;return Object.assign({},t,{ExtendedPoint:n,CURVE:e,nBitLength:n.Fn.BITS,nByteLength:n.Fn.BYTES})}(e,p(f,r,i))}var g=n(8788);const y=BigInt(0),b=BigInt(1),v=BigInt(2);function w(e){const t=function(e){return(0,a.DS)(e,{adjustScalarBytes:"function",powPminus2:"function"}),Object.freeze((0,r.A)({},e))}(e),{P:n,type:i,adjustScalarBytes:s,powPminus2:l,randomBytes:u}=t,d="x25519"===i;if(!d&&"x448"!==i)throw new Error("invalid type");const h=u||o.po,f=d?255:448,p=d?32:56,m=d?BigInt(9):BigInt(5),g=d?BigInt(121665):BigInt(39081),w=d?v**BigInt(254):v**BigInt(447),_=d?BigInt(8)*v**BigInt(251)-b:BigInt(4)*v**BigInt(445)-b,x=w+_+b,A=e=>(0,c.zi)(e,n),k=E(m);function E(e){return(0,a.z)(A(e),p)}function S(e,t){const r=function(e,t){(0,a.aK)("u",e,y,n),(0,a.aK)("scalar",t,w,x);const r=t,i=e;let o=b,s=y,c=e,u=b,d=y;for(let n=BigInt(f-1);n>=y;n--){const e=r>>n&b;d^=e,({x_2:o,x_3:c}=C(d,o,c)),({x_2:s,x_3:u}=C(d,s,u)),d=e;const t=o+s,a=A(t*t),l=o-s,h=A(l*l),f=a-h,p=c+u,m=A((c-u)*t),y=A(p*l),v=m+y,w=m-y;c=A(v*v),u=A(i*A(w*w)),o=A(a*h),s=A(f*(a+A(g*f)))}({x_2:o,x_3:c}=C(d,o,c)),({x_2:s,x_3:u}=C(d,s,u));const h=l(s);return A(o*h)}(function(e){const t=(0,a.qj)("u coordinate",e,p);return d&&(t[31]&=127),A((0,a.lX)(t))}(t),function(e){return(0,a.lX)(s((0,a.qj)("scalar",e,p)))}(e));if(r===y)throw new Error("invalid private or public key received");return E(r)}function P(e){return S(e,k)}function C(e,t,n){const r=A(e*(t-n));return{x_2:t=A(t-r),x_3:n=A(n+r)}}const I={secretKey:p,publicKey:p,seed:p},M=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h(p);return(0,o.DO)(e,I.seed),e};return{keygen:function(e){const t=M(e);return{secretKey:t,publicKey:P(t)}},getSharedSecret:(e,t)=>S(e,t),getPublicKey:e=>P(e),scalarMult:S,scalarMultBase:P,utils:{randomSecretKey:M,randomPrivateKey:M},GuBytes:k.slice(),lengths:I}}const _=BigInt(0),x=BigInt(1),A=BigInt(2),k=BigInt(3),E=BigInt(5),S=BigInt(8),P=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffed"),C=(()=>({p:P,n:BigInt("0x1000000000000000000000000000000014def9dea2f79cd65812631a5cf5d3ed"),h:S,a:BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec"),d:BigInt("0x52036cee2b6ffe738cc740797779e89800700a4d4141d8ab75eb4dca135978a3"),Gx:BigInt("0x216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a"),Gy:BigInt("0x6666666666666666666666666666666666666666666666666666666666666658")}))();function I(e){const t=BigInt(10),n=BigInt(20),r=BigInt(40),i=BigInt(80),o=P,s=e*e%o*e%o,a=(0,c.zH)(s,A,o)*s%o,l=(0,c.zH)(a,x,o)*e%o,u=(0,c.zH)(l,E,o)*l%o,d=(0,c.zH)(u,t,o)*u%o,h=(0,c.zH)(d,n,o)*d%o,f=(0,c.zH)(h,r,o)*h%o,p=(0,c.zH)(f,i,o)*f%o,m=(0,c.zH)(p,i,o)*f%o,g=(0,c.zH)(m,t,o)*u%o;return{pow_p_5_8:(0,c.zH)(g,A,o)*e%o,b2:s}}function M(e){return e[0]&=248,e[31]&=127,e[31]|=64,e}const T=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");function O(e,t){const n=P,r=(0,c.zi)(t*t*t,n),i=I(e*(0,c.zi)(r*r*t,n)).pow_p_5_8;let o=(0,c.zi)(e*r*i,n);const s=(0,c.zi)(t*o*o,n),a=o,l=(0,c.zi)(o*T,n),u=s===e,d=s===(0,c.zi)(-e,n),h=s===(0,c.zi)(-e*T,n);return u&&(o=a),(d||h)&&(o=l),(0,c.dQ)(o,n)&&(o=(0,c.zi)(-o,n)),{isValid:u||d,value:o}}const R=(()=>(0,c.D0)(C.p,{isLE:!0}))(),B=(()=>(0,c.D0)(C.n,{isLE:!0}))(),N=(()=>(0,r.A)((0,r.A)({},C),{},{Fp:R,hash:i.sha512,adjustScalarBytes:M,uvRatio:O}))(),U=(()=>m(N))();function j(e,t,n){if(t.length>255)throw new Error("Context is too big");return(0,o.Id)((0,o.AI)("SigEd25519 no Ed25519 collisions"),new Uint8Array([n?1:0,t.length]),t,e)}const L=(()=>m((0,r.A)((0,r.A)({},N),{},{domain:j})))(),F=(()=>m(Object.assign({},N,{domain:j,prehash:i.sha512})))(),D=(()=>{const e=R.ORDER;return w({P:e,type:"x25519",powPminus2:t=>{const{pow_p_5_8:n,b2:r}=I(t);return(0,c.zi)((0,c.zH)(n,k,e)*r,e)},adjustScalarBytes:M})})(),z=(()=>(P+k)/S)(),q=(()=>R.pow(A,z))(),H=(()=>R.sqrt(R.neg(R.ONE)))();const W=(()=>(0,c.Tv)(R,R.neg(BigInt(486664))))();function K(e){const{xMn:t,xMd:n,yMn:r,yMd:i}=function(e){const t=(P-E)/S,n=BigInt(486662);let r=R.sqr(e);r=R.mul(r,A);let i=R.add(r,R.ONE),o=R.neg(n),s=R.sqr(i),a=R.mul(s,i),c=R.mul(r,n);c=R.mul(c,o),c=R.add(c,s),c=R.mul(c,o);let l=R.sqr(a);s=R.sqr(l),l=R.mul(l,a),l=R.mul(l,c),s=R.mul(s,l);let u=R.pow(s,t);u=R.mul(u,l);let d=R.mul(u,H);s=R.sqr(u),s=R.mul(s,a);let h=R.eql(s,c),f=R.cmov(d,u,h),p=R.mul(o,r),m=R.mul(u,e);m=R.mul(m,q);let g=R.mul(m,H),y=R.mul(c,r);s=R.sqr(m),s=R.mul(s,a);let b=R.eql(s,y),v=R.cmov(g,m,b);s=R.sqr(f),s=R.mul(s,a);let w=R.eql(s,c),_=R.cmov(p,o,w),k=R.cmov(v,f,w),C=R.isOdd(k);return k=R.cmov(k,R.neg(k),w!==C),{xMn:_,xMd:i,yMn:k,yMd:x}}(e);let o=R.mul(t,i);o=R.mul(o,W);let s=R.mul(n,r),a=R.sub(t,n),l=R.add(t,n),u=R.mul(s,l),d=R.eql(u,R.ZERO);o=R.cmov(o,R.ZERO,d),s=R.cmov(s,R.ONE,d),a=R.cmov(a,R.ONE,d),l=R.cmov(l,R.ONE,d);const[h,f]=(0,c.pS)(R,[s,l],!0);return{x:R.mul(o,h),y:R.mul(a,f)}}const $=(()=>(0,g.qj)(U.Point,e=>K(e[0]),{DST:"edwards25519_XMD:SHA-512_ELL2_RO_",encodeDST:"edwards25519_XMD:SHA-512_ELL2_NU_",p:P,m:1,k:128,expand:"xmd",hash:i.sha512}))(),V=T,G=BigInt("25063068953384623474111414158702152701244531502492656460079210482610430750235"),J=BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),Z=BigInt("1159843021668779879193775521855586647937357759715417654439879720876111806838"),Y=BigInt("40440834346308536858101042469323190826248399146238708352240133220865137265952"),Q=e=>O(x,e),X=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),ee=e=>U.Point.Fp.create((0,a.lX)(e)&X);function te(e){const{d:t}=C,n=P,r=e=>R.create(e),i=r(V*e*e),o=r((i+x)*Z);let s=BigInt(-1);const a=r((s-t*i)*r(i+t));let{isValid:l,value:u}=O(o,a),d=r(u*e);(0,c.dQ)(d,n)||(d=r(-d)),l||(u=d),l||(s=i);const h=r(s*(i-x)*Y-a),f=u*u,p=r((u+u)*a),m=r(h*G),g=r(x-f),y=r(x+f);return new U.Point(r(p*y),r(g*m),r(m*y),r(p*g))}function ne(e){(0,o.DO)(e,64);const t=te(ee(e.subarray(0,32))),n=te(ee(e.subarray(32,64)));return new re(t.add(n))}class re extends f{constructor(e){super(e)}static fromAffine(e){return new re(U.Point.fromAffine(e))}assertSame(e){if(!(e instanceof re))throw new Error("RistrettoPoint expected")}init(e){return new re(e)}static hashToCurve(e){return ne((0,a.qj)("ristrettoHash",e,64))}static fromBytes(e){(0,o.DO)(e,32);const{a:t,d:n}=C,r=P,i=e=>R.create(e),s=ee(e);if(!(0,a.ex)(R.toBytes(s),e)||(0,c.dQ)(s,r))throw new Error("invalid ristretto255 encoding 1");const l=i(s*s),u=i(x+t*l),d=i(x-t*l),h=i(u*u),f=i(d*d),p=i(t*n*h-f),{isValid:m,value:g}=Q(i(p*f)),y=i(g*d),b=i(g*y*p);let v=i((s+s)*y);(0,c.dQ)(v,r)&&(v=i(-v));const w=i(u*b),A=i(v*w);if(!m||(0,c.dQ)(A,r)||w===_)throw new Error("invalid ristretto255 encoding 2");return new re(new U.Point(v,w,x,A))}static fromHex(e){return re.fromBytes((0,a.qj)("ristrettoHex",e,32))}static msm(e,t){return(0,s.Xf)(re,U.Point.Fn,e,t)}toBytes(){let{X:e,Y:t,Z:n,T:r}=this.ep;const i=P,o=e=>R.create(e),s=o(o(n+t)*o(n-t)),a=o(e*t),l=o(a*a),{value:u}=Q(o(s*l)),d=o(u*s),h=o(u*a),f=o(d*h*r);let p;if((0,c.dQ)(r*f,i)){let n=o(t*V),r=o(e*V);e=n,t=r,p=o(d*J)}else p=h;(0,c.dQ)(e*f,i)&&(t=o(-t));let m=o((n-t)*p);return(0,c.dQ)(m,i)&&(m=o(-m)),R.toBytes(m)}equals(e){this.assertSame(e);const{X:t,Y:n}=this.ep,{X:r,Y:i}=e.ep,o=e=>R.create(e),s=o(t*i)===o(n*r),a=o(n*i)===o(t*r);return s||a}is0(){return this.equals(re.ZERO)}}re.BASE=(()=>new re(U.Point.BASE))(),re.ZERO=(()=>new re(U.Point.ZERO))(),re.Fp=(()=>R)(),re.Fn=(()=>B)();const ie={Point:re},oe={hashToCurve(e,t){const n=(null===t||void 0===t?void 0:t.DST)||"ristretto255_XMD:SHA-512_R255MAP_RO_";return ne((0,g.Tq)(e,n,64,i.sha512))},hashToScalar(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{DST:g.qX};const n=(0,g.Tq)(e,t.DST,64,i.sha512);return B.create((0,a.lX)(n))}},se=["0100000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac037a","0000000000000000000000000000000000000000000000000000000000000080","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc05","ecffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc85","0000000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac03fa"];function ae(e){return U.utils.toMontgomery((0,a.qj)("pub",e))}const ce=ae;function le(e){return U.utils.toMontgomerySecret((0,a.qj)("pub",e))}const ue=re,de=(()=>$.hashToCurve)(),he=(()=>$.encodeToCurve)(),fe=(()=>oe.hashToCurve)(),pe=(()=>oe.hashToCurve)()},5474:(e,t,n)=>{"use strict";const r=n(5544);e.exports=(e,t)=>new r(e,t).minor},5544:(e,t,n)=>{"use strict";const r=n(4580),{MAX_LENGTH:i,MAX_SAFE_INTEGER:o}=n(9070),{safeRe:s,t:a}=n(3794),c=n(4999),{compareIdentifiers:l}=n(3007);class u{constructor(e,t){if(t=c(t),e instanceof u){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!==typeof e)throw new TypeError('Invalid version. Must be a string. Got type "'.concat(typeof e,'".'));if(e.length>i)throw new TypeError("version is longer than ".concat(i," characters"));r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?s[a.LOOSE]:s[a.FULL]);if(!n)throw new TypeError("Invalid Version: ".concat(e));if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<o)return t}return e}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}toString(){return this.version}compare(e){if(r("SemVer.compare",this.version,this.options,e),!(e instanceof u)){if("string"===typeof e&&e===this.version)return 0;e=new u(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof u||(e=new u(e,this.options)),this.major<e.major?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:this.patch>e.patch?1:0}comparePre(e){if(e instanceof u||(e=new u(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],i=e.prerelease[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return l(n,i)}while(++t)}compareBuild(e){e instanceof u||(e=new u(e,this.options));let t=0;do{const n=this.build[t],i=e.build[t];if(r("build compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return l(n,i)}while(++t)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(t){const e="-".concat(t).match(this.options.loose?s[a.PRERELEASELOOSE]:s[a.PRERELEASE]);if(!e||e[1]!==t)throw new Error("invalid identifier: ".concat(t))}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"release":if(0===this.prerelease.length)throw new Error("version ".concat(this.raw," is not a prerelease"));this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"===typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===l(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error("invalid increment argument: ".concat(e))}return this.raw=this.format(),this.build.length&&(this.raw+="+".concat(this.build.join("."))),this}}e.exports=u},5555:(e,t,n)=>{"use strict";const r=n(61),i=n(8299),o=n(6592),s=n(4301),a=n(3751),c=n(804);e.exports=(e,t,n,l)=>{switch(t){case"===":return"object"===typeof e&&(e=e.version),"object"===typeof n&&(n=n.version),e===n;case"!==":return"object"===typeof e&&(e=e.version),"object"===typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return r(e,n,l);case"!=":return i(e,n,l);case">":return o(e,n,l);case">=":return s(e,n,l);case"<":return a(e,n,l);case"<=":return c(e,n,l);default:throw new TypeError("Invalid operator: ".concat(t))}}},5646:(e,t,n)=>{"use strict";const r=n(8116);e.exports=(e,t,n)=>r(t,e,n)},5720:function(e,t,n){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function o(e,t,n){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var s;"object"===typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{s="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:n(8379).Buffer}catch(C){}function a(e,t){var n=e.charCodeAt(t);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+e)}function c(e,t,n){var r=a(e,n);return n-1>=t&&(r|=a(e,n-1)<<4),r}function l(e,t,n,i){for(var o=0,s=0,a=Math.min(e.length,n),c=t;c<a;c++){var l=e.charCodeAt(c)-48;o*=i,s=l>=49?l-49+10:l>=17?l-17+10:l,r(l>=0&&s<i,"Invalid character"),o+=s}return o}function u(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(o.isBN=function(e){return e instanceof o||null!==e&&"object"===typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,n){if("number"===typeof e)return this._initNumber(e,t,n);if("object"===typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,n):(this._parseBase(e,t,i),"le"===n&&this._initArray(this.toArray(),t,n)))},o.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initArray=function(e,t,n){if(r("number"===typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,s,a=0;if("be"===n)for(i=e.length-1,o=0;i>=0;i-=3)s=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);else if("le"===n)for(i=0,o=0;i<e.length;i+=3)s=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);return this._strip()},o.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var i,o=0,s=0;if("be"===n)for(r=e.length-1;r>=t;r-=2)i=c(e,t,r)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else for(r=(e.length-t)%2===0?t+1:t;r<e.length;r+=2)i=c(e,t,r)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;this._strip()},o.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,s=o%r,a=Math.min(o,o-s)+n,c=0,u=n;u<a;u+=r)c=l(e,u,u+r,t),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==s){var d=1;for(c=l(e,u,e.length,t),u=0;u<s;u++)d*=t;this.imuln(d),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this._strip()},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype._move=function(e){u(e,this)},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!==typeof Symbol&&"function"===typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=d}catch(C){o.prototype.inspect=d}else o.prototype.inspect=d;function d(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],c=(16777215&(a<<i|o)).toString(16);o=a>>>24-i&16777215,(i+=2)>=26&&(i-=26,s--),n=0!==o||s!==this.length-1?h[6-c.length]+c+n:c+n}for(0!==o&&(n=o.toString(16)+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var l=f[e],u=p[e];n="";var d=this.clone();for(d.negative=0;!d.isZero();){var m=d.modrn(u).toString(e);n=(d=d.idivn(u)).isZero()?m+n:h[l-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},s&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(s,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function m(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],s=i*o,a=67108863&s,c=s/67108864|0;n.words[0]=a;for(var l=1;l<r;l++){for(var u=c>>>26,d=67108863&c,h=Math.min(l,t.length-1),f=Math.max(0,l-e.length+1);f<=h;f++){var p=l-f|0;u+=(s=(i=0|e.words[p])*(o=0|t.words[f])+d)/67108864|0,d=67108863&s}n.words[l]=0|d,c=0|u}return 0!==c?n.words[l]=0|c:n.length--,n._strip()}o.prototype.toArrayLike=function(e,t,n){this._strip();var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0");var s=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](s,i),s},o.prototype._toArrayLikeLE=function(e,t){for(var n=0,r=0,i=0,o=0;i<this.length;i++){var s=this.words[i]<<o|r;e[n++]=255&s,n<e.length&&(e[n++]=s>>8&255),n<e.length&&(e[n++]=s>>16&255),6===o?(n<e.length&&(e[n++]=s>>24&255),r=0,o=0):(r=s>>>24,o+=2)}if(n<e.length)for(e[n++]=r;n<e.length;)e[n++]=0},o.prototype._toArrayLikeBE=function(e,t){for(var n=e.length-1,r=0,i=0,o=0;i<this.length;i++){var s=this.words[i]<<o|r;e[n--]=255&s,n>=0&&(e[n--]=s>>8&255),n>=0&&(e[n--]=s>>16&255),6===o?(n>=0&&(e[n--]=s>>24&255),r=0,o=0):(r=s>>>24,o+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0===(8191&t)&&(n+=13,t>>>=13),0===(127&t)&&(n+=7,t>>>=7),0===(15&t)&&(n+=4,t>>>=4),0===(3&t)&&(n+=2,t>>>=2),0===(1&t)&&n++,n},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},o.prototype.ior=function(e){return r(0===(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this._strip()},o.prototype.iand=function(e){return r(0===(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this._strip()},o.prototype.ixor=function(e){return r(0===(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){r("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){r("number"===typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<i:this.words[n]&~(1<<i),this._strip()},o.prototype.iadd=function(e){var t,n,r;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o<r.length;o++)t=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<n.length;o++)t=(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,s=0;s<r.length;s++)o=(t=(0|n.words[s])-(0|r.words[s])+o)>>26,this.words[s]=67108863&t;for(;0!==o&&s<n.length;s++)o=(t=(0|n.words[s])+o)>>26,this.words[s]=67108863&t;if(0===o&&s<n.length&&n!==this)for(;s<n.length;s++)this.words[s]=n.words[s];return this.length=Math.max(this.length,s),n!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var g=function(e,t,n){var r,i,o,s=e.words,a=t.words,c=n.words,l=0,u=0|s[0],d=8191&u,h=u>>>13,f=0|s[1],p=8191&f,m=f>>>13,g=0|s[2],y=8191&g,b=g>>>13,v=0|s[3],w=8191&v,_=v>>>13,x=0|s[4],A=8191&x,k=x>>>13,E=0|s[5],S=8191&E,P=E>>>13,C=0|s[6],I=8191&C,M=C>>>13,T=0|s[7],O=8191&T,R=T>>>13,B=0|s[8],N=8191&B,U=B>>>13,j=0|s[9],L=8191&j,F=j>>>13,D=0|a[0],z=8191&D,q=D>>>13,H=0|a[1],W=8191&H,K=H>>>13,$=0|a[2],V=8191&$,G=$>>>13,J=0|a[3],Z=8191&J,Y=J>>>13,Q=0|a[4],X=8191&Q,ee=Q>>>13,te=0|a[5],ne=8191&te,re=te>>>13,ie=0|a[6],oe=8191&ie,se=ie>>>13,ae=0|a[7],ce=8191&ae,le=ae>>>13,ue=0|a[8],de=8191&ue,he=ue>>>13,fe=0|a[9],pe=8191&fe,me=fe>>>13;n.negative=e.negative^t.negative,n.length=19;var ge=(l+(r=Math.imul(d,z))|0)+((8191&(i=(i=Math.imul(d,q))+Math.imul(h,z)|0))<<13)|0;l=((o=Math.imul(h,q))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(p,z),i=(i=Math.imul(p,q))+Math.imul(m,z)|0,o=Math.imul(m,q);var ye=(l+(r=r+Math.imul(d,W)|0)|0)+((8191&(i=(i=i+Math.imul(d,K)|0)+Math.imul(h,W)|0))<<13)|0;l=((o=o+Math.imul(h,K)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(y,z),i=(i=Math.imul(y,q))+Math.imul(b,z)|0,o=Math.imul(b,q),r=r+Math.imul(p,W)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,K)|0;var be=(l+(r=r+Math.imul(d,V)|0)|0)+((8191&(i=(i=i+Math.imul(d,G)|0)+Math.imul(h,V)|0))<<13)|0;l=((o=o+Math.imul(h,G)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(w,z),i=(i=Math.imul(w,q))+Math.imul(_,z)|0,o=Math.imul(_,q),r=r+Math.imul(y,W)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(b,W)|0,o=o+Math.imul(b,K)|0,r=r+Math.imul(p,V)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,G)|0;var ve=(l+(r=r+Math.imul(d,Z)|0)|0)+((8191&(i=(i=i+Math.imul(d,Y)|0)+Math.imul(h,Z)|0))<<13)|0;l=((o=o+Math.imul(h,Y)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(A,z),i=(i=Math.imul(A,q))+Math.imul(k,z)|0,o=Math.imul(k,q),r=r+Math.imul(w,W)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(_,W)|0,o=o+Math.imul(_,K)|0,r=r+Math.imul(y,V)|0,i=(i=i+Math.imul(y,G)|0)+Math.imul(b,V)|0,o=o+Math.imul(b,G)|0,r=r+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,Y)|0;var we=(l+(r=r+Math.imul(d,X)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(h,X)|0))<<13)|0;l=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(S,z),i=(i=Math.imul(S,q))+Math.imul(P,z)|0,o=Math.imul(P,q),r=r+Math.imul(A,W)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(k,W)|0,o=o+Math.imul(k,K)|0,r=r+Math.imul(w,V)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(_,V)|0,o=o+Math.imul(_,G)|0,r=r+Math.imul(y,Z)|0,i=(i=i+Math.imul(y,Y)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,Y)|0,r=r+Math.imul(p,X)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,ee)|0;var _e=(l+(r=r+Math.imul(d,ne)|0)|0)+((8191&(i=(i=i+Math.imul(d,re)|0)+Math.imul(h,ne)|0))<<13)|0;l=((o=o+Math.imul(h,re)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(I,z),i=(i=Math.imul(I,q))+Math.imul(M,z)|0,o=Math.imul(M,q),r=r+Math.imul(S,W)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul(P,W)|0,o=o+Math.imul(P,K)|0,r=r+Math.imul(A,V)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(k,V)|0,o=o+Math.imul(k,G)|0,r=r+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,Y)|0,r=r+Math.imul(y,X)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,ee)|0,r=r+Math.imul(p,ne)|0,i=(i=i+Math.imul(p,re)|0)+Math.imul(m,ne)|0,o=o+Math.imul(m,re)|0;var xe=(l+(r=r+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,se)|0)+Math.imul(h,oe)|0))<<13)|0;l=((o=o+Math.imul(h,se)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(O,z),i=(i=Math.imul(O,q))+Math.imul(R,z)|0,o=Math.imul(R,q),r=r+Math.imul(I,W)|0,i=(i=i+Math.imul(I,K)|0)+Math.imul(M,W)|0,o=o+Math.imul(M,K)|0,r=r+Math.imul(S,V)|0,i=(i=i+Math.imul(S,G)|0)+Math.imul(P,V)|0,o=o+Math.imul(P,G)|0,r=r+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(k,Z)|0,o=o+Math.imul(k,Y)|0,r=r+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,ee)|0,r=r+Math.imul(y,ne)|0,i=(i=i+Math.imul(y,re)|0)+Math.imul(b,ne)|0,o=o+Math.imul(b,re)|0,r=r+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,se)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,se)|0;var Ae=(l+(r=r+Math.imul(d,ce)|0)|0)+((8191&(i=(i=i+Math.imul(d,le)|0)+Math.imul(h,ce)|0))<<13)|0;l=((o=o+Math.imul(h,le)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(N,z),i=(i=Math.imul(N,q))+Math.imul(U,z)|0,o=Math.imul(U,q),r=r+Math.imul(O,W)|0,i=(i=i+Math.imul(O,K)|0)+Math.imul(R,W)|0,o=o+Math.imul(R,K)|0,r=r+Math.imul(I,V)|0,i=(i=i+Math.imul(I,G)|0)+Math.imul(M,V)|0,o=o+Math.imul(M,G)|0,r=r+Math.imul(S,Z)|0,i=(i=i+Math.imul(S,Y)|0)+Math.imul(P,Z)|0,o=o+Math.imul(P,Y)|0,r=r+Math.imul(A,X)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(k,X)|0,o=o+Math.imul(k,ee)|0,r=r+Math.imul(w,ne)|0,i=(i=i+Math.imul(w,re)|0)+Math.imul(_,ne)|0,o=o+Math.imul(_,re)|0,r=r+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,se)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,se)|0,r=r+Math.imul(p,ce)|0,i=(i=i+Math.imul(p,le)|0)+Math.imul(m,ce)|0,o=o+Math.imul(m,le)|0;var ke=(l+(r=r+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,he)|0)+Math.imul(h,de)|0))<<13)|0;l=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(L,z),i=(i=Math.imul(L,q))+Math.imul(F,z)|0,o=Math.imul(F,q),r=r+Math.imul(N,W)|0,i=(i=i+Math.imul(N,K)|0)+Math.imul(U,W)|0,o=o+Math.imul(U,K)|0,r=r+Math.imul(O,V)|0,i=(i=i+Math.imul(O,G)|0)+Math.imul(R,V)|0,o=o+Math.imul(R,G)|0,r=r+Math.imul(I,Z)|0,i=(i=i+Math.imul(I,Y)|0)+Math.imul(M,Z)|0,o=o+Math.imul(M,Y)|0,r=r+Math.imul(S,X)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(P,X)|0,o=o+Math.imul(P,ee)|0,r=r+Math.imul(A,ne)|0,i=(i=i+Math.imul(A,re)|0)+Math.imul(k,ne)|0,o=o+Math.imul(k,re)|0,r=r+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,se)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,se)|0,r=r+Math.imul(y,ce)|0,i=(i=i+Math.imul(y,le)|0)+Math.imul(b,ce)|0,o=o+Math.imul(b,le)|0,r=r+Math.imul(p,de)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(m,de)|0,o=o+Math.imul(m,he)|0;var Ee=(l+(r=r+Math.imul(d,pe)|0)|0)+((8191&(i=(i=i+Math.imul(d,me)|0)+Math.imul(h,pe)|0))<<13)|0;l=((o=o+Math.imul(h,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(L,W),i=(i=Math.imul(L,K))+Math.imul(F,W)|0,o=Math.imul(F,K),r=r+Math.imul(N,V)|0,i=(i=i+Math.imul(N,G)|0)+Math.imul(U,V)|0,o=o+Math.imul(U,G)|0,r=r+Math.imul(O,Z)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(R,Z)|0,o=o+Math.imul(R,Y)|0,r=r+Math.imul(I,X)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(M,X)|0,o=o+Math.imul(M,ee)|0,r=r+Math.imul(S,ne)|0,i=(i=i+Math.imul(S,re)|0)+Math.imul(P,ne)|0,o=o+Math.imul(P,re)|0,r=r+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,se)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,se)|0,r=r+Math.imul(w,ce)|0,i=(i=i+Math.imul(w,le)|0)+Math.imul(_,ce)|0,o=o+Math.imul(_,le)|0,r=r+Math.imul(y,de)|0,i=(i=i+Math.imul(y,he)|0)+Math.imul(b,de)|0,o=o+Math.imul(b,he)|0;var Se=(l+(r=r+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;l=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(L,V),i=(i=Math.imul(L,G))+Math.imul(F,V)|0,o=Math.imul(F,G),r=r+Math.imul(N,Z)|0,i=(i=i+Math.imul(N,Y)|0)+Math.imul(U,Z)|0,o=o+Math.imul(U,Y)|0,r=r+Math.imul(O,X)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(R,X)|0,o=o+Math.imul(R,ee)|0,r=r+Math.imul(I,ne)|0,i=(i=i+Math.imul(I,re)|0)+Math.imul(M,ne)|0,o=o+Math.imul(M,re)|0,r=r+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,se)|0)+Math.imul(P,oe)|0,o=o+Math.imul(P,se)|0,r=r+Math.imul(A,ce)|0,i=(i=i+Math.imul(A,le)|0)+Math.imul(k,ce)|0,o=o+Math.imul(k,le)|0,r=r+Math.imul(w,de)|0,i=(i=i+Math.imul(w,he)|0)+Math.imul(_,de)|0,o=o+Math.imul(_,he)|0;var Pe=(l+(r=r+Math.imul(y,pe)|0)|0)+((8191&(i=(i=i+Math.imul(y,me)|0)+Math.imul(b,pe)|0))<<13)|0;l=((o=o+Math.imul(b,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(L,Z),i=(i=Math.imul(L,Y))+Math.imul(F,Z)|0,o=Math.imul(F,Y),r=r+Math.imul(N,X)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(U,X)|0,o=o+Math.imul(U,ee)|0,r=r+Math.imul(O,ne)|0,i=(i=i+Math.imul(O,re)|0)+Math.imul(R,ne)|0,o=o+Math.imul(R,re)|0,r=r+Math.imul(I,oe)|0,i=(i=i+Math.imul(I,se)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,se)|0,r=r+Math.imul(S,ce)|0,i=(i=i+Math.imul(S,le)|0)+Math.imul(P,ce)|0,o=o+Math.imul(P,le)|0,r=r+Math.imul(A,de)|0,i=(i=i+Math.imul(A,he)|0)+Math.imul(k,de)|0,o=o+Math.imul(k,he)|0;var Ce=(l+(r=r+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(_,pe)|0))<<13)|0;l=((o=o+Math.imul(_,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(L,X),i=(i=Math.imul(L,ee))+Math.imul(F,X)|0,o=Math.imul(F,ee),r=r+Math.imul(N,ne)|0,i=(i=i+Math.imul(N,re)|0)+Math.imul(U,ne)|0,o=o+Math.imul(U,re)|0,r=r+Math.imul(O,oe)|0,i=(i=i+Math.imul(O,se)|0)+Math.imul(R,oe)|0,o=o+Math.imul(R,se)|0,r=r+Math.imul(I,ce)|0,i=(i=i+Math.imul(I,le)|0)+Math.imul(M,ce)|0,o=o+Math.imul(M,le)|0,r=r+Math.imul(S,de)|0,i=(i=i+Math.imul(S,he)|0)+Math.imul(P,de)|0,o=o+Math.imul(P,he)|0;var Ie=(l+(r=r+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(k,pe)|0))<<13)|0;l=((o=o+Math.imul(k,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(L,ne),i=(i=Math.imul(L,re))+Math.imul(F,ne)|0,o=Math.imul(F,re),r=r+Math.imul(N,oe)|0,i=(i=i+Math.imul(N,se)|0)+Math.imul(U,oe)|0,o=o+Math.imul(U,se)|0,r=r+Math.imul(O,ce)|0,i=(i=i+Math.imul(O,le)|0)+Math.imul(R,ce)|0,o=o+Math.imul(R,le)|0,r=r+Math.imul(I,de)|0,i=(i=i+Math.imul(I,he)|0)+Math.imul(M,de)|0,o=o+Math.imul(M,he)|0;var Me=(l+(r=r+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,me)|0)+Math.imul(P,pe)|0))<<13)|0;l=((o=o+Math.imul(P,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(L,oe),i=(i=Math.imul(L,se))+Math.imul(F,oe)|0,o=Math.imul(F,se),r=r+Math.imul(N,ce)|0,i=(i=i+Math.imul(N,le)|0)+Math.imul(U,ce)|0,o=o+Math.imul(U,le)|0,r=r+Math.imul(O,de)|0,i=(i=i+Math.imul(O,he)|0)+Math.imul(R,de)|0,o=o+Math.imul(R,he)|0;var Te=(l+(r=r+Math.imul(I,pe)|0)|0)+((8191&(i=(i=i+Math.imul(I,me)|0)+Math.imul(M,pe)|0))<<13)|0;l=((o=o+Math.imul(M,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(L,ce),i=(i=Math.imul(L,le))+Math.imul(F,ce)|0,o=Math.imul(F,le),r=r+Math.imul(N,de)|0,i=(i=i+Math.imul(N,he)|0)+Math.imul(U,de)|0,o=o+Math.imul(U,he)|0;var Oe=(l+(r=r+Math.imul(O,pe)|0)|0)+((8191&(i=(i=i+Math.imul(O,me)|0)+Math.imul(R,pe)|0))<<13)|0;l=((o=o+Math.imul(R,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(L,de),i=(i=Math.imul(L,he))+Math.imul(F,de)|0,o=Math.imul(F,he);var Re=(l+(r=r+Math.imul(N,pe)|0)|0)+((8191&(i=(i=i+Math.imul(N,me)|0)+Math.imul(U,pe)|0))<<13)|0;l=((o=o+Math.imul(U,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863;var Be=(l+(r=Math.imul(L,pe))|0)+((8191&(i=(i=Math.imul(L,me))+Math.imul(F,pe)|0))<<13)|0;return l=((o=Math.imul(F,me))+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,c[0]=ge,c[1]=ye,c[2]=be,c[3]=ve,c[4]=we,c[5]=_e,c[6]=xe,c[7]=Ae,c[8]=ke,c[9]=Ee,c[10]=Se,c[11]=Pe,c[12]=Ce,c[13]=Ie,c[14]=Me,c[15]=Te,c[16]=Oe,c[17]=Re,c[18]=Be,0!==l&&(c[19]=l,n.length++),n};function y(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var s=i;i=0;for(var a=67108863&r,c=Math.min(o,t.length-1),l=Math.max(0,o-e.length+1);l<=c;l++){var u=o-l,d=(0|e.words[u])*(0|t.words[l]),h=67108863&d;a=67108863&(h=h+a|0),i+=(s=(s=s+(d/67108864|0)|0)+(h>>>26)|0)>>>26,s&=67108863}n.words[o]=a,r=s,s=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function b(e,t,n){return y(e,t,n)}function v(e,t){this.x=e,this.y=t}Math.imul||(g=m),o.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?g(this,e,t):n<63?m(this,e,t):n<1024?y(this,e,t):b(this,e,t)},v.prototype.makeRBT=function(e){for(var t=new Array(e),n=o.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},v.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var r=0,i=0;i<t;i++)r|=(1&e)<<t-i-1,e>>=1;return r},v.prototype.permute=function(e,t,n,r,i,o){for(var s=0;s<o;s++)r[s]=t[e[s]],i[s]=n[e[s]]},v.prototype.transform=function(e,t,n,r,i,o){this.permute(o,e,t,n,r,i);for(var s=1;s<i;s<<=1)for(var a=s<<1,c=Math.cos(2*Math.PI/a),l=Math.sin(2*Math.PI/a),u=0;u<i;u+=a)for(var d=c,h=l,f=0;f<s;f++){var p=n[u+f],m=r[u+f],g=n[u+f+s],y=r[u+f+s],b=d*g-h*y;y=d*y+h*g,g=b,n[u+f]=p+g,r[u+f]=m+y,n[u+f+s]=p-g,r[u+f+s]=m-y,f!==a&&(b=c*d-l*h,h=c*h+l*d,d=b)}},v.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},v.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=e[r];e[r]=e[n-r-1],e[n-r-1]=i,i=t[r],t[r]=-t[n-r-1],t[n-r-1]=-i}},v.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var i=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+n;e[r]=67108863&i,n=i<67108864?0:i/67108864|0}return e},v.prototype.convert13b=function(e,t,n,i){for(var o=0,s=0;s<t;s++)o+=0|e[s],n[2*s]=8191&o,o>>>=13,n[2*s+1]=8191&o,o>>>=13;for(s=2*t;s<i;++s)n[s]=0;r(0===o),r(0===(-8192&o))},v.prototype.stub=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=0;return t},v.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(r),o=this.stub(r),s=new Array(r),a=new Array(r),c=new Array(r),l=new Array(r),u=new Array(r),d=new Array(r),h=n.words;h.length=r,this.convert13b(e.words,e.length,s,r),this.convert13b(t.words,t.length,l,r),this.transform(s,o,a,c,r,i),this.transform(l,o,u,d,r,i);for(var f=0;f<r;f++){var p=a[f]*u[f]-c[f]*d[f];c[f]=a[f]*d[f]+c[f]*u[f],a[f]=p}return this.conjugate(a,c,r),this.transform(a,c,h,o,r,i),this.conjugate(h,o,r),this.normalize13b(h,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n._strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),b(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){var t=e<0;t&&(e=-e),r("number"===typeof e),r(e<67108864);for(var n=0,i=0;i<this.length;i++){var o=(0|this.words[i])*e,s=(67108863&o)+(67108863&n);n>>=26,n+=o/67108864|0,n+=s>>>26,this.words[i]=67108863&s}return 0!==n&&(this.words[i]=n,this.length++),this.length=0===e?1:this.length,t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=e.words[r]>>>i&1}return t}(e);if(0===t.length)return new o(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var i=n.sqr();r<t.length;r++,i=i.sqr())0!==t[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(e){r("number"===typeof e&&e>=0);var t,n=e%26,i=(e-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var s=0;for(t=0;t<this.length;t++){var a=this.words[t]&o,c=(0|this.words[t])-a<<n;this.words[t]=c|s,s=a>>>26-n}s&&(this.words[t]=s,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this._strip()},o.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,n){var i;r("number"===typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,s=Math.min((e-o)/26,this.length),a=67108863^67108863>>>o<<o,c=n;if(i-=s,i=Math.max(0,i),c){for(var l=0;l<s;l++)c.words[l]=this.words[l];c.length=s}if(0===s);else if(this.length>s)for(this.length-=s,l=0;l<this.length;l++)this.words[l]=this.words[l+s];else this.words[0]=0,this.length=1;var u=0;for(l=this.length-1;l>=0&&(0!==u||l>=i);l--){var d=0|this.words[l];this.words[l]=u<<26-o|d>>>o,u=d&a}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){r("number"===typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<<t;return!(this.length<=n)&&!!(this.words[n]&i)},o.prototype.imaskn=function(e){r("number"===typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this._strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return r("number"===typeof e),r(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(r("number"===typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,n){var i,o,s=e.length+n;this._expand(s);var a=0;for(i=0;i<e.length;i++){o=(0|this.words[i+n])+a;var c=(0|e.words[i])*t;a=((o-=67108863&c)>>26)-(c/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)a=(o=(0|this.words[i+n])+a)>>26,this.words[i+n]=67108863&o;if(0===a)return this._strip();for(r(-1===a),a=0,i=0;i<this.length;i++)a=(o=-(0|this.words[i])+a)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,s=0|i.words[i.length-1];0!==(n=26-this._countBits(s))&&(i=i.ushln(n),r.iushln(n),s=0|i.words[i.length-1]);var a,c=r.length-i.length;if("mod"!==t){(a=new o(null)).length=c+1,a.words=new Array(a.length);for(var l=0;l<a.length;l++)a.words[l]=0}var u=r.clone()._ishlnsubmul(i,1,c);0===u.negative&&(r=u,a&&(a.words[c]=1));for(var d=c-1;d>=0;d--){var h=67108864*(0|r.words[i.length+d])+(0|r.words[i.length+d-1]);for(h=Math.min(h/s|0,67108863),r._ishlnsubmul(i,h,d);0!==r.negative;)h--,r.negative=0,r._ishlnsubmul(i,1,d),r.isZero()||(r.negative^=1);a&&(a.words[d]=h)}return a&&a._strip(),r._strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:a||null,mod:r}},o.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(i=a.div.neg()),"div"!==t&&(s=a.mod.neg(),n&&0!==s.negative&&s.iadd(e)),{div:i,mod:s}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(i=a.div.neg()),{div:i,mod:a.mod}):0!==(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(s=a.mod.neg(),n&&0!==s.negative&&s.isub(e)),{div:a.div,mod:s}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t);var i,s,a},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(n*i+(0|this.words[o]))%e;return t?-i:i},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*n;this.words[i]=o/e|0,n=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),s=new o(0),a=new o(0),c=new o(1),l=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++l;for(var u=n.clone(),d=t.clone();!t.isZero();){for(var h=0,f=1;0===(t.words[0]&f)&&h<26;++h,f<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(u),s.isub(d)),i.iushrn(1),s.iushrn(1);for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(a.isOdd()||c.isOdd())&&(a.iadd(u),c.isub(d)),a.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(a),s.isub(c)):(n.isub(t),a.isub(i),c.isub(s))}return{a:a,b:c,gcd:n.iushln(l)}},o.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,s=new o(1),a=new o(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,u=1;0===(t.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(t.iushrn(l);l-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);for(var d=0,h=1;0===(n.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(n.iushrn(d);d-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);t.cmp(n)>=0?(t.isub(n),s.isub(a)):(n.isub(t),a.isub(s))}return(i=0===t.cmpn(1)?s:a).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){r("number"===typeof e);var t=e%26,n=(e-t)/26,i=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,s=n;0!==o&&s<this.length;s++){var a=0|this.words[s];o=(a+=o)>>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){r<i?t=-1:r>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new S(e)},o.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function _(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"===typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function P(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}_.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},_.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},_.prototype.split=function(e,t){e.iushrn(this.n,0,t)},_.prototype.imulK=function(e){return e.imul(this.k)},i(x,_),x.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i<r;i++)t.words[i]=e.words[i];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(t.words[t.length++]=o&n,i=10;i<e.length;i++){var s=0|e.words[i];e.words[i-10]=(s&n)<<4|o>>>22,o=s}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},x.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(A,_),i(k,_),i(E,_),E.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,i=67108863&r;r>>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(w[e])return w[e];var t;if("k256"===e)t=new x;else if("p224"===e)t=new A;else if("p192"===e)t=new k;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new E}return w[e]=t,t},S.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){r(0===(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},S.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(u(e,e.umod(this.m)._forceRed(this)),e)},S.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},S.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},S.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},S.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},S.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},S.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},S.prototype.isqr=function(e){return this.imul(e,e.clone())},S.prototype.sqr=function(e){return this.mul(e,e)},S.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2===1),3===t){var n=this.m.add(new o(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);r(!i.isZero());var a=new o(1).toRed(this),c=a.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var d=this.pow(u,i),h=this.pow(e,i.addn(1).iushrn(1)),f=this.pow(e,i),p=s;0!==f.cmp(a);){for(var m=f,g=0;0!==m.cmp(a);g++)m=m.redSqr();r(g<p);var y=this.pow(d,new o(1).iushln(p-g-1));h=h.redMul(y),d=y.redSqr(),f=f.redMul(d),p=g}return h},S.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},S.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new o(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var i=n[0],s=0,a=0,c=t.bitLength()%26;for(0===c&&(c=26),r=t.length-1;r>=0;r--){for(var l=t.words[r],u=c-1;u>=0;u--){var d=l>>u&1;i!==n[0]&&(i=this.sqr(i)),0!==d||0!==s?(s<<=1,s|=d,(4===++a||0===r&&0===u)&&(i=this.mul(i,n[s]),a=0,s=0)):a=0}c=26}return i},S.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},S.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new P(e)},i(P,S),P.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},P.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},P.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},P.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},P.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=n.nmd(e),this)},5744:(e,t,n)=>{"use strict";n.d(t,{z:()=>x});var r=n(9740),i=n(1979),o=n(4223),s=n(7802);const a=["baseUrl","Request","fetch","querySerializer","bodySerializer","headers","requestInitExt"],c=["baseUrl","fetch","Request","headers","params","parseAs","querySerializer","bodySerializer","body"],l=/\{[^{}]+\}/g;function u(e){let t=(0,r.A)({},e),{baseUrl:n="",Request:i=globalThis.Request,fetch:u=globalThis.fetch,querySerializer:b,bodySerializer:v,headers:w,requestInitExt:_}=t,x=(0,o.A)(t,a);_="object"===typeof s&&Number.parseInt(null===s||void 0===s||null===(s=s.versions)||void 0===s||null===(s=s.node)||void 0===s?void 0:s.substring(0,2))>=18&&s.versions.undici?_:void 0,n=y(n);const A=[];async function k(e,t){const s=t||{},{baseUrl:a,fetch:k=u,Request:E=i,headers:S,params:P={},parseAs:C="json",querySerializer:I,bodySerializer:M=(null!==v&&void 0!==v?v:m),body:T}=s,O=(0,o.A)(s,c);let R=n;var B;a&&(R=null!==(B=y(a))&&void 0!==B?B:n);let N="function"===typeof b?b:p(b);I&&(N="function"===typeof I?I:p((0,r.A)((0,r.A)({},"object"===typeof b?b:{}),I)));const U=void 0===T?void 0:M(T,g(w,S,P.header)),j=g(void 0===U||U instanceof FormData?{}:{"Content-Type":"application/json"},w,S,P.header),L=(0,r.A)((0,r.A)((0,r.A)({redirect:"follow"},x),O),{},{body:U,headers:j});let F,D,z,q=new i(function(e,t){var n,r;let i="".concat(t.baseUrl).concat(e);null!==(n=t.params)&&void 0!==n&&n.path&&(i=function(e,t){let n=e;for(const i of null!==(r=e.match(l))&&void 0!==r?r:[]){var r;let e=i.substring(1,i.length-1),o=!1,s="simple";if(e.endsWith("*")&&(o=!0,e=e.substring(0,e.length-1)),e.startsWith(".")?(s="label",e=e.substring(1)):e.startsWith(";")&&(s="matrix",e=e.substring(1)),!t||void 0===t[e]||null===t[e])continue;const a=t[e];Array.isArray(a)?n=n.replace(i,f(e,a,{style:s,explode:o})):n="object"!==typeof a?"matrix"!==s?n.replace(i,"label"===s?".".concat(encodeURIComponent(a)):encodeURIComponent(a)):n.replace(i,";".concat(d(e,a))):n.replace(i,h(e,a,{style:s,explode:o}))}return n}(i,t.params.path));let o=t.querySerializer(null!==(r=t.params.query)&&void 0!==r?r:{});o.startsWith("?")&&(o=o.substring(1));o&&(i+="?".concat(o));return i}(e,{baseUrl:R,params:P,querySerializer:N}),L);for(const n in O)n in q||(q[n]=O[n]);if(A.length){F=Math.random().toString(36).slice(2,11),D=Object.freeze({baseUrl:R,fetch:k,parseAs:C,querySerializer:N,bodySerializer:M});for(const t of A)if(t&&"object"===typeof t&&"function"===typeof t.onRequest){const n=await t.onRequest({request:q,schemaPath:e,params:P,options:D,id:F});if(n){if(!(n instanceof i)){if(n instanceof Response){z=n;break}throw new Error("onRequest: must return new Request() or Response() when modifying the request")}q=n}}}if(!z){try{z=await k(q,_)}catch(H){let t=H;if(A.length)for(let n=A.length-1;n>=0;n--){const r=A[n];if(r&&"object"===typeof r&&"function"===typeof r.onError){const n=await r.onError({request:q,error:t,schemaPath:e,params:P,options:D,id:F});if(n){if(n instanceof Response){t=void 0,z=n;break}if(n instanceof Error){t=n;continue}throw new Error("onError: must return new Response() or instance of Error")}}}if(t)throw t}if(A.length)for(let t=A.length-1;t>=0;t--){const n=A[t];if(n&&"object"===typeof n&&"function"===typeof n.onResponse){const t=await n.onResponse({request:q,response:z,schemaPath:e,params:P,options:D,id:F});if(t){if(!(t instanceof Response))throw new Error("onResponse: must return new Response() when modifying the response");z=t}}}}if(204===z.status||"HEAD"===q.method||"0"===z.headers.get("Content-Length"))return z.ok?{data:void 0,response:z}:{error:void 0,response:z};if(z.ok)return"stream"===C?{data:z.body,response:z}:{data:await z[C](),response:z};let H=await z.text();try{H=JSON.parse(H)}catch(W){}return{error:H,response:z}}return{request:(e,t,n)=>k(t,(0,r.A)((0,r.A)({},n),{},{method:e.toUpperCase()})),GET:(e,t)=>k(e,(0,r.A)((0,r.A)({},t),{},{method:"GET"})),PUT:(e,t)=>k(e,(0,r.A)((0,r.A)({},t),{},{method:"PUT"})),POST:(e,t)=>k(e,(0,r.A)((0,r.A)({},t),{},{method:"POST"})),DELETE:(e,t)=>k(e,(0,r.A)((0,r.A)({},t),{},{method:"DELETE"})),OPTIONS:(e,t)=>k(e,(0,r.A)((0,r.A)({},t),{},{method:"OPTIONS"})),HEAD:(e,t)=>k(e,(0,r.A)((0,r.A)({},t),{},{method:"HEAD"})),PATCH:(e,t)=>k(e,(0,r.A)((0,r.A)({},t),{},{method:"PATCH"})),TRACE:(e,t)=>k(e,(0,r.A)((0,r.A)({},t),{},{method:"TRACE"})),use(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(const r of t)if(r){if("object"!==typeof r||!("onRequest"in r||"onResponse"in r||"onError"in r))throw new Error("Middleware must be an object with one of `onRequest()`, `onResponse() or `onError()`");A.push(r)}},eject(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(const r of t){const e=A.indexOf(r);-1!==e&&A.splice(e,1)}}}}function d(e,t,n){if(void 0===t||null===t)return"";if("object"===typeof t)throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return"".concat(e,"=").concat(!0===(null===n||void 0===n?void 0:n.allowReserved)?t:encodeURIComponent(t))}function h(e,t,n){if(!t||"object"!==typeof t)return"";const r=[],i={simple:",",label:".",matrix:";"}[n.style]||"&";if("deepObject"!==n.style&&!1===n.explode){for(const e in t)r.push(e,!0===n.allowReserved?t[e]:encodeURIComponent(t[e]));const i=r.join(",");switch(n.style){case"form":return"".concat(e,"=").concat(i);case"label":return".".concat(i);case"matrix":return";".concat(e,"=").concat(i);default:return i}}for(const s in t){const i="deepObject"===n.style?"".concat(e,"[").concat(s,"]"):s;r.push(d(i,t[s],n))}const o=r.join(i);return"label"===n.style||"matrix"===n.style?"".concat(i).concat(o):o}function f(e,t,n){if(!Array.isArray(t))return"";if(!1===n.explode){const r={form:",",spaceDelimited:"%20",pipeDelimited:"|"}[n.style]||",",i=(!0===n.allowReserved?t:t.map(e=>encodeURIComponent(e))).join(r);switch(n.style){case"simple":return i;case"label":return".".concat(i);case"matrix":return";".concat(e,"=").concat(i);default:return"".concat(e,"=").concat(i)}}const r={simple:",",label:".",matrix:";"}[n.style]||"&",i=[];for(const o of t)"simple"===n.style||"label"===n.style?i.push(!0===n.allowReserved?o:encodeURIComponent(o)):i.push(d(e,o,n));return"label"===n.style||"matrix"===n.style?"".concat(r).concat(i.join(r)):i.join(r)}function p(e){return function(t){const n=[];if(t&&"object"===typeof t)for(const i in t){const o=t[i];if(void 0!==o&&null!==o)if(Array.isArray(o)){if(0===o.length)continue;n.push(f(i,o,(0,r.A)((0,r.A)({style:"form",explode:!0},null===e||void 0===e?void 0:e.array),{},{allowReserved:(null===e||void 0===e?void 0:e.allowReserved)||!1})))}else"object"!==typeof o?n.push(d(i,o,e)):n.push(h(i,o,(0,r.A)((0,r.A)({style:"deepObject",explode:!0},null===e||void 0===e?void 0:e.object),{},{allowReserved:(null===e||void 0===e?void 0:e.allowReserved)||!1})))}return n.join("&")}}function m(e,t){if(e instanceof FormData)return e;if(t){var n,r;if("application/x-www-form-urlencoded"===(t.get instanceof Function?null!==(n=t.get("Content-Type"))&&void 0!==n?n:t.get("content-type"):null!==(r=t["Content-Type"])&&void 0!==r?r:t["content-type"]))return new URLSearchParams(e).toString()}return JSON.stringify(e)}function g(){const e=new Headers;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(const i of n){if(!i||"object"!==typeof i)continue;const t=i instanceof Headers?i.entries():Object.entries(i);for(const[n,r]of t)if(null===r)e.delete(n);else if(Array.isArray(r))for(const t of r)e.append(n,t);else void 0!==r&&e.set(n,r)}return e}function y(e){return e.endsWith("/")?e.substring(0,e.length-1):e}var b,v,w=n(7802),_=class{constructor(e){(0,i.A)(this,"sendFn",void 0),(0,i.A)(this,"batch",[]),(0,i.A)(this,"batchSize",void 0),(0,i.A)(this,"baseTimeoutMs",void 0),(0,i.A)(this,"currentTimeoutMs",void 0),(0,i.A)(this,"maxTimeoutMs",3e4),(0,i.A)(this,"timeoutId",null),(0,i.A)(this,"isSending",!1),this.batchSize=e.batchSize,this.baseTimeoutMs=e.baseTimeoutMs,this.currentTimeoutMs=e.baseTimeoutMs,this.sendFn=e.sendFn}enqueue(e){this.batch.push(e),this.schedule()}schedule(){this.batch.length>0&&!this.timeoutId&&(this.timeoutId=setTimeout(()=>{this.timeoutId=null,this.flush()},this.currentTimeoutMs))}async flush(){if(this.isSending||0===this.batch.length)return;this.isSending=!0;const e=[...this.batch.slice(0,this.batchSize)];this.batch=this.batch.slice(this.batchSize);try{await this.sendFn(e),this.currentTimeoutMs=this.baseTimeoutMs}catch(t){console.error("Sender: Failed to send batch",t),this.batch=[...e,...this.batch],this.currentTimeoutMs=Math.min(2*this.currentTimeoutMs,this.maxTimeoutMs)}finally{this.isSending=!1,this.schedule()}}};"undefined"!==typeof w&&(b=null!==(v={NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.METAMASK_ANALYTICS_ENDPOINT)&&void 0!==v?v:{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.NEXT_PUBLIC_METAMASK_ANALYTICS_ENDPOINT);var x=new class{constructor(e){(0,i.A)(this,"enabled",!1),(0,i.A)(this,"sender",void 0),(0,i.A)(this,"properties",{});const t=u({baseUrl:e});this.sender=new _({batchSize:100,baseTimeoutMs:200,sendFn:async e=>{const n=await t.POST("/v2/events",{body:e});if(200!==n.response.status)throw new Error(n.error)}})}enable(){this.enabled=!0}setGlobalProperty(e,t){this.properties[e]=t}track(e,t){if(!this.enabled)return;const n={namespace:"metamask/connect",event_name:e,properties:(0,r.A)((0,r.A)({},t),this.properties)};this.sender.enqueue(n)}}(null!==b&&void 0!==b?b:"https://mm-sdk-analytics.api.cx.metamask.io/")},5806:(e,t,n)=>{"use strict";n.r(t),n.d(t,{EventEmitter:()=>r,default:()=>i});var r=n(3960);const i=r},5823:function(e,t,n){var r,i;r=[n(1129),n(3092)],void 0===(i=function(e,t){return function(e,t){function n(n,r,i){for(var o=[],s=e.ucs2.decode(n),a=0;a<s.length;a++){var c=s[a],l=e.ucs2.encode([s[a]]),u=t.mapChar(c),d=u>>23,h=u>>21&3,f=u>>5&65535,p=31&u,m=t.mapStr.substr(f,p);if(0===h||r&&1&d)throw new Error("Illegal char "+l);1===h?o.push(m):2===h?o.push(i?m:l):3===h&&o.push(l)}return o.join("").normalize("NFC")}function r(t,r,o){void 0===o&&(o=!1);var s=n(t,o,r).split(".");return(s=s.map(function(t){return t.startsWith("xn--")?i(t=e.decode(t.substring(4)),o,!1):i(t,o,r),t})).join(".")}function i(e,r,i){if("-"===e[2]&&"-"===e[3])throw new Error("Failed to validate "+e);if(e.startsWith("-")||e.endsWith("-"))throw new Error("Failed to validate "+e);if(e.includes("."))throw new Error("Failed to validate "+e);if(n(e,r,i)!==e)throw new Error("Failed to validate "+e);var o=e.codePointAt(0);if(t.mapChar(o)&2<<23)throw new Error("Label contains illegal character: "+o)}function o(t,n){void 0===n&&(n={});var i,o=!("transitional"in n)||n.transitional,s="useStd3ASCII"in n&&n.useStd3ASCII,a="verifyDnsLength"in n&&n.verifyDnsLength,c=r(t,o,s).split(".").map(e.toASCII),l=c.join(".");if(a){if(l.length<1||l.length>253)throw new Error("DNS name has wrong length: "+l);for(i=0;i<c.length;i++){var u=c[i];if(u.length<1||u.length>63)throw new Error("DNS label has wrong length: "+u)}}return l}function s(e,t){return void 0===t&&(t={}),r(e,!1,"useStd3ASCII"in t&&t.useStd3ASCII)}return{toUnicode:s,toAscii:o}}(e,t)}.apply(t,r))||(e.exports=i)},5921:(e,t,n)=>{"use strict";var r,i,o,s,a;function c(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],o=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=o(n)):"call"!==i&&"optionalCall"!==i||(n=o(function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return n.call(t,...r)}),t=void 0)}return n}var l,u=n(5806),d=(l=u)&&l.__esModule?l:{default:l},h=(e=>(e.DISCONNECTED="DISCONNECTED",e.CONNECTING="CONNECTING",e.CONNECTED="CONNECTED",e))(h||{}),f=(e=>(e.SESSION_EXPIRED="SESSION_EXPIRED",e.SESSION_NOT_FOUND="SESSION_NOT_FOUND",e.SESSION_INVALID_STATE="SESSION_INVALID_STATE",e.SESSION_SAVE_FAILED="SESSION_SAVE_FAILED",e.TRANSPORT_DISCONNECTED="TRANSPORT_DISCONNECTED",e.TRANSPORT_PUBLISH_FAILED="TRANSPORT_PUBLISH_FAILED",e.TRANSPORT_SUBSCRIBE_FAILED="TRANSPORT_SUBSCRIBE_FAILED",e.TRANSPORT_HISTORY_FAILED="TRANSPORT_HISTORY_FAILED",e.TRANSPORT_PARSE_FAILED="TRANSPORT_PARSE_FAILED",e.TRANSPORT_RECONNECT_FAILED="TRANSPORT_RECONNECT_FAILED",e.DECRYPTION_FAILED="DECRYPTION_FAILED",e.REQUEST_EXPIRED="REQUEST_EXPIRED",e.OTP_INCORRECT="OTP_INCORRECT",e.OTP_MAX_ATTEMPTS_REACHED="OTP_MAX_ATTEMPTS_REACHED",e.OTP_ENTRY_TIMEOUT="OTP_ENTRY_TIMEOUT",e.UNKNOWN="UNKNOWN",e))(f||{}),p=class extends Error{constructor(e,t){super(t||e),this.code=e,this.name=e}},m=class extends p{},g=class extends p{},y=class extends p{},b=r=class extends d.default{__init(){this.session=null}__init2(){this._state="DISCONNECTED"}on(e,t){return super.on(e,t)}constructor(e,t,n){super(),r.prototype.__init.call(this),r.prototype.__init2.call(this),this.transport=e,this.keymanager=t,this.sessionstore=n,this.transport.on("error",e=>this.emit("error",e)),this.transport.on("message",async e=>{if(!c([this,"access",e=>e.session,"optionalAccess",e=>e.keyPair,"access",e=>e.privateKey]))return;const t=await this.decryptMessage(e.data);t&&this.handleMessage(t)})}get state(){return this._state}set state(e){this._state=e}async reconnect(){if("CONNECTING"!==this.state&&this.session&&this.transport.reconnect)try{this.state="CONNECTING",await this.transport.reconnect(),this.state="CONNECTED",this.emit("connected")}catch(e){throw this.state="DISCONNECTED",new g("TRANSPORT_RECONNECT_FAILED","Failed to reconnect")}}async resume(e){if("DISCONNECTED"!==this.state)throw new m("SESSION_INVALID_STATE","Cannot resume when state is ".concat(this.state));this.state="CONNECTING";try{const t=await this.sessionstore.get(e);if(!t)throw new m("SESSION_NOT_FOUND","Session not found or expired");this.session=t,await this.transport.connect(),await this.transport.subscribe(t.channel),this.state="CONNECTED",this.emit("connected")}catch(t){throw this.state="DISCONNECTED",this.session=null,t}}async disconnect(){if(!this.session)return;const e=this.session;this.session=null,this.state="DISCONNECTED",await this.transport.disconnect(),await this.transport.clear(e.channel),await this.sessionstore.delete(e.id),this.emit("disconnected")}async sendMessage(e,t){if(!this.session)throw new m("SESSION_INVALID_STATE","Cannot send message: session is not initialized.");await this.checkSessionExpiry();const n=JSON.stringify(t),r=await this.keymanager.encrypt(n,this.session.theirPublicKey);if(!await this.transport.publish(e,r))throw new g("TRANSPORT_DISCONNECTED","Message could not be sent because the transport is disconnected.")}async checkSessionExpiry(){if(this.session&&this.session.expiresAt<Date.now())throw await this.disconnect(),new m("SESSION_EXPIRED","Session expired")}async decryptMessage(e){if(!c([this,"access",e=>e.session,"optionalAccess",e=>e.keyPair,"access",e=>e.privateKey]))return null;try{const t=await this.keymanager.decrypt(e,this.session.keyPair.privateKey);return JSON.parse(t)}catch(t){const e=t instanceof Error?t.message:String(t);return this.emit("error",new y("DECRYPTION_FAILED","Decryption failed: ".concat(e))),null}}},v=((i=class e{static __initStatic(){this.SESSION_PREFIX="session:"}static __initStatic2(){this.MASTER_LIST_KEY="sessions:master-list"}constructor(e){this.kvstore=e,this.garbageCollect()}async set(e){if(e.expiresAt<Date.now())throw new m("SESSION_SAVE_FAILED","Cannot save expired session");const t={id:e.id,channel:e.channel,keyPair:{publicKeyB64:Buffer.from(e.keyPair.publicKey).toString("base64"),privateKeyB64:Buffer.from(e.keyPair.privateKey).toString("base64")},theirPublicKeyB64:Buffer.from(e.theirPublicKey).toString("base64"),expiresAt:e.expiresAt},n=this.getSessionKey(e.id);await this.kvstore.set(n,JSON.stringify(t)),await this.addToMasterList(e.id)}async get(e){const t=this.getSessionKey(e),n=await this.kvstore.get(t);if(!n)return null;try{const t=JSON.parse(n);if(t.expiresAt<Date.now())return await this.delete(e),null;return{id:t.id,channel:t.channel,keyPair:{publicKey:new Uint8Array(Buffer.from(t.keyPair.publicKeyB64,"base64")),privateKey:new Uint8Array(Buffer.from(t.keyPair.privateKeyB64,"base64"))},theirPublicKey:new Uint8Array(Buffer.from(t.theirPublicKeyB64,"base64")),expiresAt:t.expiresAt}}catch(r){return await this.delete(e),null}}async list(){const e=await this.getMasterList(),t=[];for(const n of e){const e=await this.get(n);e&&t.push(e)}return t}async delete(e){const t=this.getSessionKey(e);await this.kvstore.delete(t),await this.removeFromMasterList(e)}async garbageCollect(){const e=await this.getMasterList();await Promise.all(e.map(async e=>this.get(e)))}getSessionKey(t){return"".concat(e.SESSION_PREFIX).concat(t)}async getMasterList(){const t=await this.kvstore.get(e.MASTER_LIST_KEY);if(!t)return[];try{return JSON.parse(t)}catch(n){return[]}}async addToMasterList(t){const n=await this.getMasterList();n.includes(t)||(n.push(t),await this.kvstore.set(e.MASTER_LIST_KEY,JSON.stringify(n)))}async removeFromMasterList(t){const n=(await this.getMasterList()).filter(e=>e!==t);await this.kvstore.set(e.MASTER_LIST_KEY,JSON.stringify(n))}}).__initStatic(),i.__initStatic2(),i),w=n(8632),_=e=>new Promise(t=>setTimeout(t,e));var x=o=class{constructor(e,t){o.prototype.__init3.call(this),this.realSub=e,this.parent=t}__init3(){this.hasUnsubscribed=!1}get channel(){return this.realSub.channel}get state(){return this.realSub.state}subscribe(){this.realSub.subscribe()}unsubscribe(){this.hasUnsubscribed||(this.hasUnsubscribed=!0,this.parent.removeSubscription({channel:this.channel}))}async publish(e){return await this.realSub.publish(e)}history(e){return this.realSub.history(e)}on(e,t){return this.realSub.on(e,t),this}once(e,t){return this.realSub.once(e,t),this}off(e,t){return this.realSub.off(e,t),this}},A=((s=class e extends d.default{static __initStatic3(){this.contexts=new Map}__init4(){this.channels=new Set}__init5(){this.disconnected=!1}__init6(){this.eventListeners=new Map}constructor(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(super(),s.prototype.__init4.call(this),s.prototype.__init5.call(this),s.prototype.__init6.call(this),this.url=t,e.contexts.has(t)){const r=e.contexts.get(t);if(!r)throw new Error("No context found");this.validateOptions(r.options,n)}else{const r=new(0,w.Centrifuge)(t,n);e.contexts.set(t,{refcount:0,options:n,centrifuge:r,subscriptions:new Map,reconnectPromise:null})}const r=e.contexts.get(t);if(!r)throw new Error("No context found");r.refcount++,this.attachEventListeners()}connect(){const t=e.contexts.get(this.url);t&&("connected"===t.centrifuge.state?setImmediate(()=>this.emit("connected",{})):"connecting"===t.centrifuge.state||t.centrifuge.connect())}disconnect(){if(this.disconnected)return Promise.resolve();const t=e.contexts.get(this.url);if(!t)return Promise.resolve();this.disconnected=!0,this.emit("disconnected",{}),this.detachEventListeners();for(const e of this.channels)this.decrementChannelRef(e);return this.channels.clear(),t.refcount--,0===t.refcount?new Promise(n=>{t.centrifuge.once("disconnected",()=>{e.contexts.delete(this.url),n()}),t.centrifuge.disconnect()}):Promise.resolve()}reconnect(){const t=e.contexts.get(this.url);return t?(t.reconnectPromise||(t.reconnectPromise=(async()=>{try{"disconnected"!==t.centrifuge.state&&await new Promise(e=>{t.centrifuge.once("disconnected",()=>e()),t.centrifuge.disconnect()}),await new Promise((e,n)=>{t.centrifuge.once("connected",()=>e()),t.centrifuge.once("error",e=>n(e.error)),t.centrifuge.connect()})}finally{t.reconnectPromise=null}})()),t.reconnectPromise):Promise.resolve()}newSubscription(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=e.contexts.get(this.url);if(!r)throw new Error("No context found");const i=r.subscriptions;if(!this.channels.has(t))if(i.has(t)){const e=i.get(t);if(!e)throw new Error("Failed to get subscription info for channel ".concat(t));e.count++}else{const e=r.centrifuge.newSubscription(t,n);i.set(t,{count:1,sub:e})}this.channels.add(t);const o=i.get(t);if(!o)throw new Error("Failed to create or get subscription for channel ".concat(t));return new x(o.sub,this)}getSubscription(t){if(!this.channels.has(t))return;const n=e.contexts.get(this.url);if(!n)return;const r=n.subscriptions.get(t);return r?new x(r.sub,this):void 0}async publish(t,n){const r=e.contexts.get(this.url);r&&await r.centrifuge.publish(t,n)}subscriptions(){const t=e.contexts.get(this.url);if(!t)return{};const n={};for(const e of this.channels){const r=t.subscriptions.get(e);r&&(n[e]=new x(r.sub,this))}return n}get real(){return c([e.contexts.get(this.url),"optionalAccess",e=>e.centrifuge])}get state(){if(this.disconnected)return"disconnected";const t=e.contexts.get(this.url);return n=c([t,"optionalAccess",e=>e.centrifuge,"access",e=>e.state]),r=()=>"disconnected",null!=n?n:r();var n,r}attachEventListeners(){if(this.eventListeners.size>0)return;const t=e.contexts.get(this.url);if(!t)return;["connecting","connected","disconnected","error"].forEach(e=>{const n=t=>{this.disconnected||this.emit(e,t)};this.eventListeners.set(e,n),t.centrifuge.on(e,n)})}decrementChannelRef(t){const n=e.contexts.get(this.url);if(!n)return;const r=n.subscriptions,i=r.get(t);i&&(i.count--,0===i.count&&(i.sub.unsubscribe(),n.centrifuge.removeSubscription(i.sub),r.delete(t)))}detachEventListeners(){const t=e.contexts.get(this.url);if(t){for(const[e,n]of this.eventListeners)t.centrifuge.off(e,n);this.eventListeners.clear()}}validateOptions(e,t){const n=["token","websocket","minReconnectDelay","maxReconnectDelay"];for(const r of n){const n=e[r],i=t[r];void 0!==n&&void 0!==i&&n!==i&&console.warn("SharedCentrifuge: Option '".concat(r,"' mismatch for URL ").concat(this.url,". Using existing value: ").concat(n,", ignoring new value: ").concat(i))}}removeSubscription(e){e&&"channel"in e&&(this.decrementChannelRef(e.channel),this.channels.delete(e.channel))}}).__initStatic3(),s),k=n(2027),E=class e{static async create(t){const n=e.getClientIdKey();let r=await t.get(n);return r||(r=k.v4.call(void 0),await t.set(n,r)),new e(t,r)}constructor(e,t){this.kvstore=e,this.clientId=t}getClientId(){return this.clientId}async getNextNonce(e){const t=this.getNonceKey(e),n=await this.kvstore.get(t),r=(n?parseInt(n,10):0)+1;return await this.kvstore.set(t,r.toString()),r}async getLatestNonces(e){const t=this.getLatestNoncesKey(e),n=await this.kvstore.get(t);if(n){const e=JSON.parse(n);return new Map(Object.entries(e))}return new Map}async setLatestNonces(e,t){const n=this.getLatestNoncesKey(e),r=Object.fromEntries(t);await this.kvstore.set(n,JSON.stringify(r))}async clear(e){const t=this.getNonceKey(e),n=this.getLatestNoncesKey(e);await Promise.all([this.kvstore.delete(t),this.kvstore.delete(n)])}static getClientIdKey(){return"websocket-transport-client-id"}getNonceKey(e){return"nonce:".concat(this.clientId,":").concat(e)}getLatestNoncesKey(e){return"latest-nonces:".concat(this.clientId,":").concat(e)}},S=a=class e extends d.default{__init7(){this.queue=[]}__init8(){this.isProcessingQueue=!1}__init9(){this.state="disconnected"}static async create(t){const n=await E.create(t.kvstore);return new e(n,t)}constructor(e,t){super(),a.prototype.__init7.call(this),a.prototype.__init8.call(this),a.prototype.__init9.call(this),this.storage=e;const n={minReconnectDelay:100,maxReconnectDelay:3e4};void 0!==t.websocket&&(n.websocket=t.websocket),this.centrifuge=t.useSharedConnection?new A(t.url,n):new(0,w.Centrifuge)(t.url,n),this.centrifuge.on("connecting",()=>this.setState("connecting")),this.centrifuge.on("connected",()=>{this.setState("connected"),this._processQueue()}),this.centrifuge.on("disconnected",()=>this.setState("disconnected")),this.centrifuge.on("error",e=>this.emit("error",new g("UNKNOWN",e.error.message)))}connect(){return"connected"===this.state||"connecting"===this.state?Promise.resolve():(this.setState("connecting"),new Promise(e=>{this.centrifuge.once("connected",()=>e()),this.centrifuge.connect()}))}disconnect(){return this.queue.forEach(e=>e.resolve(!1)),this.queue.length=0,"disconnected"===this.state?Promise.resolve():new Promise(e=>{const t=this.centrifuge.subscriptions();for(const n of Object.values(t))this.centrifuge.removeSubscription(n);this.centrifuge.once("disconnected",()=>e()),this.centrifuge.disconnect()})}reconnect(){return this.centrifuge instanceof A&&"reconnect"in this.centrifuge?this.centrifuge.reconnect():"connecting"===this.state?new Promise(e=>this.centrifuge.once("connected",()=>e())):(this.centrifuge.disconnect(),new Promise((e,t)=>{this.centrifuge.once("connected",()=>e()),this.centrifuge.once("error",e=>t(new g("TRANSPORT_RECONNECT_FAILED",e.error.message))),this.centrifuge.connect()}))}subscribe(e){let t=this.centrifuge.getSubscription(e);if(!t){t=this.centrifuge.newSubscription(e,{recoverable:!0,positioned:!0});const n=t;t.on("subscribed",()=>{this._fetchHistory(n,e),this._processQueue()}),t.on("publication",t=>{this._handleIncomingMessage(e,t.data)}),t.on("error",e=>this.emit("error",new g("TRANSPORT_SUBSCRIBE_FAILED","Subscription error: ".concat(e.error.message))))}if("subscribed"===t.state)return Promise.resolve();const n=t;return new Promise(e=>{n.once("subscribed",()=>e()),n.subscribe()})}publish(e,t){const n=new Promise((n,r)=>{this.queue.push({channel:e,payload:t,resolve:n,reject:r})});return this._processQueue(),n}async clear(e){await this.storage.clear(e);const t=this.centrifuge.getSubscription(e);t&&this.centrifuge.removeSubscription(t)}setState(e){this.state!==e&&(this.state=e,this.emit(e))}async _handleIncomingMessage(e,t){try{const n=JSON.parse(t);if("string"!==typeof n.clientId||"number"!==typeof n.nonce||"string"!==typeof n.payload)throw new g("TRANSPORT_PARSE_FAILED","Invalid message format");if(n.clientId===this.storage.getClientId())return;const r=await this.storage.getLatestNonces(e),i=r.get(n.clientId)||0;n.nonce>i&&(r.set(n.clientId,n.nonce),await this.storage.setLatestNonces(e,r),this.emit("message",{channel:e,data:n.payload}))}catch(n){this.emit("error",new g("TRANSPORT_PARSE_FAILED","Failed to parse incoming message: ".concat(n instanceof Error?n.message:"Unknown error")))}}async _fetchHistory(e,t){try{const n=await e.history({limit:50});for(const e of n.publications)await this._handleIncomingMessage(t,e.data)}catch(n){if(11===c([n,"optionalAccess",e=>e.code]))return;this.emit("error",new g("TRANSPORT_HISTORY_FAILED","Failed to fetch history for channel ".concat(t,": ").concat(JSON.stringify(n))))}}async _process(e){const t={clientId:this.storage.getClientId(),nonce:await this.storage.getNextNonce(e.channel),payload:e.payload},n=JSON.stringify(t);return async function(e,t){for(let r=0;r<t.attempts;r++)try{return await e()}catch(n){if(r===t.attempts-1)throw n;const e=t.delay*2**r;await _(e)}throw new p("UNKNOWN","Retry logic failed unexpectedly.")}(async()=>{await this.centrifuge.publish(e.channel,n)},{attempts:5,delay:100})}async _processQueue(){if(!this.isProcessingQueue&&"connected"===this.state){this.isProcessingQueue=!0;try{for(;this.queue.length>0;){const t=this.queue[0];try{await this._process(t),this.queue.shift(),t.resolve(!0)}catch(e){this.queue.shift(),t.reject(e instanceof Error?e:new g("TRANSPORT_PUBLISH_FAILED","Failed to publish message after all retries"))}}}finally{this.isProcessingQueue=!1}}}};t.O4=f,t.bd=p,t.c9=v,t.TJ=S},5987:(e,t,n)=>{"use strict";e.exports=n(509)},6006:(e,t,n)=>{"use strict";n.d(t,{eL:()=>r,pj:()=>o,sz:()=>i});const r={gwei:9,wei:18},i={ether:-9,wei:9},o={ether:-18,gwei:-9}},6007:(e,t,n)=>{"use strict";const r=n(5544),i=n(2548),{ANY:o}=i,s=n(1227),a=n(3882),c=n(6592),l=n(3751),u=n(804),d=n(4301);e.exports=(e,t,n,h)=>{let f,p,m,g,y;switch(e=new r(e,h),t=new s(t,h),n){case">":f=c,p=u,m=l,g=">",y=">=";break;case"<":f=l,p=d,m=c,g="<",y="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,h))return!1;for(let r=0;r<t.set.length;++r){const n=t.set[r];let s=null,a=null;if(n.forEach(e=>{e.semver===o&&(e=new i(">=0.0.0")),s=s||e,a=a||e,f(e.semver,s.semver,h)?s=e:m(e.semver,a.semver,h)&&(a=e)}),s.operator===g||s.operator===y)return!1;if((!a.operator||a.operator===g)&&p(e,a.semver))return!1;if(a.operator===y&&m(e,a.semver))return!1}return!0}},6019:(e,t,n)=>{"use strict";const r=n(5544);e.exports=(e,t,n,i,o)=>{"string"===typeof n&&(o=i,i=n,n=void 0);try{return new r(e instanceof r?e.version:e,n).inc(t,i,o).version}catch(s){return null}}},6091:(e,t,n)=>{"use strict";n.d(t,{IQ:()=>u,ME:()=>l,Sl:()=>a,uU:()=>c});var r=n(6469),i=n(1478),o=n(191),s=n(3530);function a(e,t){let{size:n}=t;if((0,i.E)(e)>n)throw new r.u({givenSize:(0,i.E)(e),maxSize:n})}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{signed:n}=t;t.size&&a(e,{size:t.size});const r=BigInt(e);if(!n)return r;const i=(e.length-2)/2;return r<=(1n<<8n*BigInt(i)-1n)-1n?r:r-BigInt("0x".concat("f".padStart(2*i,"f")))-1n}function l(e){return Number(c(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,s.aT)(e);return t.size&&(a(n,{size:t.size}),n=(0,o.B)(n,{dir:"right"})),(new TextDecoder).decode(n)}},6140:(e,t,n)=>{"use strict";n.d(t,{Ik:()=>y,KC:()=>_,KJ:()=>d,L5:()=>x,YO:()=>c,Yj:()=>w,ai:()=>g,bz:()=>a,eu:()=>f,g1:()=>v,lq:()=>b,me:()=>m,nd:()=>h,o:()=>l,zM:()=>u});var r=n(9740),i=n(2867),o=n(1099),s=n(4591);function a(){return(0,s.E8)("any",()=>!0)}function c(e){return new i._k({type:"array",schema:e,*entries(t){if(e&&Array.isArray(t))for(const[n,r]of t.entries())yield[n,r,e]},coercer:e=>Array.isArray(e)?e.slice():e,validator:e=>Array.isArray(e)||"Expected an array value, but received: ".concat((0,o.yy)(e))})}function l(){return(0,s.E8)("bigint",e=>"bigint"===typeof e)}function u(){return(0,s.E8)("boolean",e=>"boolean"===typeof e)}function d(e){return(0,s.E8)("instance",t=>t instanceof e||"Expected a `".concat(e.name,"` instance, but received: ").concat((0,o.yy)(t)))}function h(){return(0,s.E8)("integer",e=>"number"===typeof e&&!isNaN(e)&&Number.isInteger(e)||"Expected an integer, but received: ".concat((0,o.yy)(e)))}function f(e){const t=(0,o.yy)(e),n=typeof e;return new i._k({type:"literal",schema:"string"===n||"number"===n||"boolean"===n?e:null,validator:n=>n===e||"Expected the literal `".concat(t,"`, but received: ").concat((0,o.yy)(n))})}function p(){return(0,s.E8)("never",()=>!1)}function m(e){return new i._k((0,r.A)((0,r.A)({},e),{},{validator:(t,n)=>null===t||e.validator(t,n),refiner:(t,n)=>null===t||e.refiner(t,n)}))}function g(){return(0,s.E8)("number",e=>"number"===typeof e&&!isNaN(e)||"Expected a number, but received: ".concat((0,o.yy)(e)))}function y(e){const t=e?Object.keys(e):[],n=p();return new i._k({type:"object",schema:null!==e&&void 0!==e?e:null,*entries(r){if(e&&(0,o.Gv)(r)){const o=new Set(Object.keys(r));for(const n of t){o.delete(n);const t=e[n];i.P$.isExactOptional(t)&&!Object.prototype.hasOwnProperty.call(r,n)||(yield[n,r[n],e[n]])}for(const e of o)yield[e,r[e],n]}},validator:e=>(0,o.Gv)(e)||"Expected an object, but received: ".concat((0,o.yy)(e)),coercer:e=>(0,o.Gv)(e)?(0,r.A)({},e):e})}function b(e){return new i._k((0,r.A)((0,r.A)({},e),{},{validator:(t,n)=>void 0===t||e.validator(t,n),refiner:(t,n)=>void 0===t||e.refiner(t,n)}))}function v(e,t){return new i._k({type:"record",schema:null,*entries(n){if((0,o.Gv)(n))for(const r in n){const i=n[r];yield[r,r,e],yield[r,i,t]}},validator:e=>(0,o.Gv)(e)||"Expected an object, but received: ".concat((0,o.yy)(e))})}function w(){return(0,s.E8)("string",e=>"string"===typeof e||"Expected a string, but received: ".concat((0,o.yy)(e)))}function _(e){const t=e.map(e=>e.type).join(" | ");return new i._k({type:"union",schema:null,coercer(t){for(const n of e){const[e,r]=n.validate(t,{coerce:!0});if(!e)return r}return t},validator(n,r){const i=[];for(const t of e){const[...e]=(0,o.eF)(n,t,r),[s]=e;if(null===s||void 0===s||!s[0])return[];for(const[t]of e)t&&i.push(t)}return["Expected the value to satisfy a union of `".concat(t,"`, but received: ").concat((0,o.yy)(n)),...i]}})}function x(){return(0,s.E8)("unknown",()=>!0)}},6141:(e,t,n)=>{"use strict";const r=n(9812);e.exports=(e,t)=>{const n=r(e,t);return n&&n.prerelease.length?n.prerelease:null}},6155:(e,t,n)=>{var r=n(2940).keccak_256,i=n(5823);function o(e){return e?i.toUnicode(e,{useStd3ASCII:!0,transitional:!1}):e}t.hash=function(e){for(var t="",n=0;n<32;n++)t+="00";if(name=o(e),name){var i=name.split(".");for(n=i.length-1;n>=0;n--){var s=r(i[n]);t=r(new Buffer(t+s,"hex"))}}return"0x"+t},t.normalize=o},6347:(e,t,n)=>{var r=n(4319).default,i=n(3878);e.exports=function(e){var t=i(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},6351:(e,t,n)=>{"use strict";n.d(t,{b2:()=>i,v2:()=>r});const r=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getCurrentBlockTimestamp",outputs:[{internalType:"uint256",name:"timestamp",type:"uint256"}],stateMutability:"view",type:"function"}],i=[{name:"query",type:"function",stateMutability:"view",inputs:[{type:"tuple[]",name:"queries",components:[{type:"address",name:"sender"},{type:"string[]",name:"urls"},{type:"bytes",name:"data"}]}],outputs:[{type:"bool[]",name:"failures"},{type:"bytes[]",name:"responses"}]},{name:"HttpError",type:"error",inputs:[{type:"uint16",name:"status"},{type:"string",name:"message"}]}],o=[{inputs:[{name:"dns",type:"bytes"}],name:"DNSDecodingFailed",type:"error"},{inputs:[{name:"ens",type:"string"}],name:"DNSEncodingFailed",type:"error"},{inputs:[],name:"EmptyAddress",type:"error"},{inputs:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"HttpError",type:"error"},{inputs:[],name:"InvalidBatchGatewayResponse",type:"error"},{inputs:[{name:"errorData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{name:"name",type:"bytes"},{name:"resolver",type:"address"}],name:"ResolverNotContract",type:"error"},{inputs:[{name:"name",type:"bytes"}],name:"ResolverNotFound",type:"error"},{inputs:[{name:"primary",type:"string"},{name:"primaryAddress",type:"bytes"}],name:"ReverseAddressMismatch",type:"error"},{inputs:[{internalType:"bytes4",name:"selector",type:"bytes4"}],name:"UnsupportedResolverProfile",type:"error"}]},6469:(e,t,n)=>{"use strict";n.d(t,{Ty:()=>i,u:()=>s,xO:()=>o});var r=n(8090);class i extends r.C{constructor(e){let{max:t,min:n,signed:r,size:i,value:o}=e;super('Number "'.concat(o,'" is not in safe ').concat(i?"".concat(8*i,"-bit ").concat(r?"signed":"unsigned"," "):"","integer range ").concat(t?"(".concat(n," to ").concat(t,")"):"(above ".concat(n,")")),{name:"IntegerOutOfRangeError"})}}class o extends r.C{constructor(e){super('Bytes value "'.concat(e,'" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.'),{name:"InvalidBytesBooleanError"})}}r.C;r.C;class s extends r.C{constructor(e){let{givenSize:t,maxSize:n}=e;super("Size cannot exceed ".concat(n," bytes. Given size: ").concat(t," bytes."),{name:"SizeOverflowError"})}}},6473:(e,t,n)=>{var r=n(4507),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function s(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=s),s.prototype=Object.create(i.prototype),o(i,s),s.from=function(e,t,n){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},s.alloc=function(e,t,n){if("number"!==typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"===typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},s.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},6583:(e,t,n)=>{"use strict";n.d(t,{EH:()=>o,YE:()=>a,jF:()=>s,qD:()=>c,rj:()=>i});var r=n(8090);class i extends r.C{constructor(e){let{blockNumber:t,chain:n,contract:r}=e;super('Chain "'.concat(n.name,'" does not support contract "').concat(r.name,'".'),{metaMessages:["This could be due to any of the following:",...t&&r.blockCreated&&r.blockCreated>t?['- The contract "'.concat(r.name,'" was not deployed until block ').concat(r.blockCreated," (current block ").concat(t,").")]:['- The chain does not have the contract "'.concat(r.name,'" configured.')]],name:"ChainDoesNotSupportContract"})}}class o extends r.C{constructor(e){let{chain:t,currentChainId:n}=e;super("The current chain of the wallet (id: ".concat(n,") does not match the target chain for the transaction (id: ").concat(t.id," \u2013 ").concat(t.name,")."),{metaMessages:["Current Chain ID: ".concat(n),"Expected Chain ID: ".concat(t.id," \u2013 ").concat(t.name)],name:"ChainMismatchError"})}}class s extends r.C{constructor(){super(["No chain was provided to the request.","Please provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."].join("\n"),{name:"ChainNotFoundError"})}}class a extends r.C{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}class c extends r.C{constructor(e){let{chainId:t}=e;super("number"===typeof t?'Chain ID "'.concat(t,'" is invalid.'):"Chain ID is invalid.",{name:"InvalidChainIdError"})}}},6592:(e,t,n)=>{"use strict";const r=n(8116);e.exports=(e,t,n)=>r(e,t,n)>0},6600:(e,t,n)=>{"use strict";n.d(t,{A7:()=>o,BG:()=>s,Fo:()=>f,K0:()=>c,Oh:()=>l,RM:()=>g,jj:()=>a,k5:()=>d,lN:()=>m,lY:()=>h,uC:()=>p,vW:()=>u});var r=n(2958),i=n(8090);class o extends i.C{constructor(){var e;let{cause:t,message:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=null===n||void 0===n||null===(e=n.replace("execution reverted: ",""))||void 0===e?void 0:e.replace("execution reverted","");super("Execution reverted ".concat(r?"with reason: ".concat(r):"for an unknown reason","."),{cause:t,name:"ExecutionRevertedError"})}}Object.defineProperty(o,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(o,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class s extends i.C{constructor(){let{cause:e,maxFeePerGas:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super("The fee cap (`maxFeePerGas`".concat(t?" = ".concat((0,r.Q)(t)," gwei"):"",") cannot be higher than the maximum allowed value (2^256-1)."),{cause:e,name:"FeeCapTooHighError"})}}Object.defineProperty(s,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class a extends i.C{constructor(){let{cause:e,maxFeePerGas:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super("The fee cap (`maxFeePerGas`".concat(t?" = ".concat((0,r.Q)(t)):""," gwei) cannot be lower than the block base fee."),{cause:e,name:"FeeCapTooLowError"})}}Object.defineProperty(a,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class c extends i.C{constructor(){let{cause:e,nonce:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super("Nonce provided for the transaction ".concat(t?"(".concat(t,") "):"","is higher than the next one expected."),{cause:e,name:"NonceTooHighError"})}}Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class l extends i.C{constructor(){let{cause:e,nonce:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(["Nonce provided for the transaction ".concat(t?"(".concat(t,") "):"","is lower than the current nonce of the account."),"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join("\n"),{cause:e,name:"NonceTooLowError"})}}Object.defineProperty(l,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class u extends i.C{constructor(){let{cause:e,nonce:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super("Nonce provided for the transaction ".concat(t?"(".concat(t,") "):"","exceeds the maximum allowed nonce."),{cause:e,name:"NonceMaxValueError"})}}Object.defineProperty(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class d extends i.C{constructor(){let{cause:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join("\n"),{cause:e,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}}Object.defineProperty(d,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class h extends i.C{constructor(){let{cause:e,gas:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super("The amount of gas ".concat(t?"(".concat(t,") "):"","provided for the transaction exceeds the limit allowed for the block."),{cause:e,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(h,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class f extends i.C{constructor(){let{cause:e,gas:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super("The amount of gas ".concat(t?"(".concat(t,") "):"","provided for the transaction is too low."),{cause:e,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(f,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class p extends i.C{constructor(e){let{cause:t}=e;super("The transaction type is not supported for this chain.",{cause:t,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(p,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class m extends i.C{constructor(){let{cause:e,maxPriorityFeePerGas:t,maxFeePerGas:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(["The provided tip (`maxPriorityFeePerGas`".concat(t?" = ".concat((0,r.Q)(t)," gwei"):"",") cannot be higher than the fee cap (`maxFeePerGas`").concat(n?" = ".concat((0,r.Q)(n)," gwei"):"",").")].join("\n"),{cause:e,name:"TipAboveFeeCapError"})}}Object.defineProperty(m,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class g extends i.C{constructor(e){let{cause:t}=e;super("An error occurred while executing: ".concat(null===t||void 0===t?void 0:t.shortMessage),{cause:t,name:"UnknownNodeError"})}}},6618:(e,t,n)=>{"use strict";const r=n(6007);e.exports=(e,t,n)=>r(e,t,"<",n)},6703:(e,t,n)=>{"use strict";n.d(t,{u:()=>o});var r=n(2283);const i=new Map;function o(e){let{fn:t,id:n,shouldSplitBatch:o,wait:s=0,sort:a}=e;const c=async()=>{const e=u();l();const n=e.map(e=>{let{args:t}=e;return t});0!==n.length&&t(n).then(t=>{a&&Array.isArray(t)&&t.sort(a);for(let n=0;n<e.length;n++){const{resolve:r}=e[n];null===r||void 0===r||r([t[n],t])}}).catch(t=>{for(let n=0;n<e.length;n++){const{reject:r}=e[n];null===r||void 0===r||r(t)}})},l=()=>i.delete(n),u=()=>i.get(n)||[],d=e=>i.set(n,[...u(),e]);return{flush:l,async schedule(e){const{promise:t,resolve:n,reject:i}=(0,r.Y)();(null===o||void 0===o?void 0:o([...u().map(e=>{let{args:t}=e;return t}),e]))&&c();return u().length>0?(d({args:e,resolve:n,reject:i}),t):(d({args:e,resolve:n,reject:i}),setTimeout(c,s),t)}}}},6815:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.deserializeUnchecked=t.deserialize=t.serialize=t.BinaryReader=t.BinaryWriter=t.BorshError=t.baseDecode=t.baseEncode=void 0;const c=a(n(5720)),l=a(n(1321)),u=s(n(9063)),d=new("function"!==typeof TextDecoder?u.TextDecoder:TextDecoder)("utf-8",{fatal:!0});t.baseEncode=function(e){return"string"===typeof e&&(e=Buffer.from(e,"utf8")),l.default.encode(Buffer.from(e))},t.baseDecode=function(e){return Buffer.from(l.default.decode(e))};const h=1024;class f extends Error{constructor(e){super(e),this.fieldPath=[],this.originalMessage=e}addToFieldPath(e){this.fieldPath.splice(0,0,e),this.message=this.originalMessage+": "+this.fieldPath.join(".")}}t.BorshError=f;class p{constructor(){this.buf=Buffer.alloc(h),this.length=0}maybeResize(){this.buf.length<16+this.length&&(this.buf=Buffer.concat([this.buf,Buffer.alloc(h)]))}writeU8(e){this.maybeResize(),this.buf.writeUInt8(e,this.length),this.length+=1}writeU16(e){this.maybeResize(),this.buf.writeUInt16LE(e,this.length),this.length+=2}writeU32(e){this.maybeResize(),this.buf.writeUInt32LE(e,this.length),this.length+=4}writeU64(e){this.maybeResize(),this.writeBuffer(Buffer.from(new c.default(e).toArray("le",8)))}writeU128(e){this.maybeResize(),this.writeBuffer(Buffer.from(new c.default(e).toArray("le",16)))}writeU256(e){this.maybeResize(),this.writeBuffer(Buffer.from(new c.default(e).toArray("le",32)))}writeU512(e){this.maybeResize(),this.writeBuffer(Buffer.from(new c.default(e).toArray("le",64)))}writeBuffer(e){this.buf=Buffer.concat([Buffer.from(this.buf.subarray(0,this.length)),e,Buffer.alloc(h)]),this.length+=e.length}writeString(e){this.maybeResize();const t=Buffer.from(e,"utf8");this.writeU32(t.length),this.writeBuffer(t)}writeFixedArray(e){this.writeBuffer(Buffer.from(e))}writeArray(e,t){this.maybeResize(),this.writeU32(e.length);for(const n of e)this.maybeResize(),t(n)}toArray(){return this.buf.subarray(0,this.length)}}function m(e,t,n){const r=n.value;n.value=function(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.apply(this,t)}catch(i){if(i instanceof RangeError){const e=i.code;if(["ERR_BUFFER_OUT_OF_BOUNDS","ERR_OUT_OF_RANGE"].indexOf(e)>=0)throw new f("Reached the end of buffer when deserializing")}throw i}}}t.BinaryWriter=p;class g{constructor(e){this.buf=e,this.offset=0}readU8(){const e=this.buf.readUInt8(this.offset);return this.offset+=1,e}readU16(){const e=this.buf.readUInt16LE(this.offset);return this.offset+=2,e}readU32(){const e=this.buf.readUInt32LE(this.offset);return this.offset+=4,e}readU64(){const e=this.readBuffer(8);return new c.default(e,"le")}readU128(){const e=this.readBuffer(16);return new c.default(e,"le")}readU256(){const e=this.readBuffer(32);return new c.default(e,"le")}readU512(){const e=this.readBuffer(64);return new c.default(e,"le")}readBuffer(e){if(this.offset+e>this.buf.length)throw new f("Expected buffer length ".concat(e," isn't within bounds"));const t=this.buf.slice(this.offset,this.offset+e);return this.offset+=e,t}readString(){const e=this.readU32(),t=this.readBuffer(e);try{return d.decode(t)}catch(n){throw new f("Error decoding UTF-8 string: ".concat(n))}}readFixedArray(e){return new Uint8Array(this.readBuffer(e))}readArray(e){const t=this.readU32(),n=Array();for(let r=0;r<t;++r)n.push(e());return n}}function y(e){return e.charAt(0).toUpperCase()+e.slice(1)}function b(e,t,n,r,i){try{if("string"===typeof r)i["write".concat(y(r))](n);else if(r instanceof Array)if("number"===typeof r[0]){if(n.length!==r[0])throw new f("Expecting byte array of length ".concat(r[0],", but got ").concat(n.length," bytes"));i.writeFixedArray(n)}else if(2===r.length&&"number"===typeof r[1]){if(n.length!==r[1])throw new f("Expecting byte array of length ".concat(r[1],", but got ").concat(n.length," bytes"));for(let t=0;t<r[1];t++)b(e,null,n[t],r[0],i)}else i.writeArray(n,n=>{b(e,t,n,r[0],i)});else if(void 0!==r.kind)switch(r.kind){case"option":null===n||void 0===n?i.writeU8(0):(i.writeU8(1),b(e,t,n,r.type,i));break;case"map":i.writeU32(n.size),n.forEach((n,o)=>{b(e,t,o,r.key,i),b(e,t,n,r.value,i)});break;default:throw new f("FieldType ".concat(r," unrecognized"))}else v(e,n,i)}catch(o){throw o instanceof f&&o.addToFieldPath(t),o}}function v(e,t,n){if("function"===typeof t.borshSerialize)return void t.borshSerialize(n);const r=e.get(t.constructor);if(!r)throw new f("Class ".concat(t.constructor.name," is missing in schema"));if("struct"===r.kind)r.fields.map(r=>{let[i,o]=r;b(e,i,t[i],o,n)});else{if("enum"!==r.kind)throw new f("Unexpected schema kind: ".concat(r.kind," for ").concat(t.constructor.name));{const i=t[r.field];for(let o=0;o<r.values.length;++o){const[s,a]=r.values[o];if(s===i){n.writeU8(o),b(e,s,t[s],a,n);break}}}}}function w(e,t,n,r){try{if("string"===typeof n)return r["read".concat(y(n))]();if(n instanceof Array){if("number"===typeof n[0])return r.readFixedArray(n[0]);if("number"===typeof n[1]){const t=[];for(let i=0;i<n[1];i++)t.push(w(e,null,n[0],r));return t}return r.readArray(()=>w(e,t,n[0],r))}if("option"===n.kind){return r.readU8()?w(e,t,n.type,r):void 0}if("map"===n.kind){let i=new Map;const o=r.readU32();for(let s=0;s<o;s++){const o=w(e,t,n.key,r),s=w(e,t,n.value,r);i.set(o,s)}return i}return _(e,n,r)}catch(i){throw i instanceof f&&i.addToFieldPath(t),i}}function _(e,t,n){if("function"===typeof t.borshDeserialize)return t.borshDeserialize(n);const r=e.get(t);if(!r)throw new f("Class ".concat(t.name," is missing in schema"));if("struct"===r.kind){const r={};for(const[i,o]of e.get(t).fields)r[i]=w(e,i,o,n);return new t(r)}if("enum"===r.kind){const i=n.readU8();if(i>=r.values.length)throw new f("Enum index: ".concat(i," is out of range"));const[o,s]=r.values[i],a=w(e,o,s,n);return new t({[o]:a})}throw new f("Unexpected schema kind: ".concat(r.kind," for ").concat(t.constructor.name))}o([m],g.prototype,"readU8",null),o([m],g.prototype,"readU16",null),o([m],g.prototype,"readU32",null),o([m],g.prototype,"readU64",null),o([m],g.prototype,"readU128",null),o([m],g.prototype,"readU256",null),o([m],g.prototype,"readU512",null),o([m],g.prototype,"readString",null),o([m],g.prototype,"readFixedArray",null),o([m],g.prototype,"readArray",null),t.BinaryReader=g,t.serialize=function(e,t){const n=new(arguments.length>2&&void 0!==arguments[2]?arguments[2]:p);return v(e,t,n),n.toArray()},t.deserialize=function(e,t,n){const r=new(arguments.length>3&&void 0!==arguments[3]?arguments[3]:g)(n),i=_(e,t,r);if(r.offset<n.length)throw new f("Unexpected ".concat(n.length-r.offset," bytes after deserialized data"));return i},t.deserializeUnchecked=function(e,t,n){return _(e,t,new(arguments.length>3&&void 0!==arguments[3]?arguments[3]:g)(n))}},6910:(e,t,n)=>{"use strict";var r=n(5720),i=n(1610),o=new r(0),s=new r(-1),a={noether:"0",wei:"1",kwei:"1000",Kwei:"1000",babbage:"1000",femtoether:"1000",mwei:"1000000",Mwei:"1000000",lovelace:"1000000",picoether:"1000000",gwei:"1000000000",Gwei:"1000000000",shannon:"1000000000",nanoether:"1000000000",nano:"1000000000",szabo:"1000000000000",microether:"1000000000000",micro:"1000000000000",finney:"1000000000000000",milliether:"1000000000000000",milli:"1000000000000000",ether:"1000000000000000000",kether:"1000000000000000000000",grand:"1000000000000000000000",mether:"1000000000000000000000000",gether:"1000000000000000000000000000",tether:"1000000000000000000000000000000"};function c(e){var t=e?e.toLowerCase():"ether",n=a[t];if("string"!==typeof n)throw new Error("[ethjs-unit] the unit provided "+e+" doesn't exists, please use the one of the following units "+JSON.stringify(a,null,2));return new r(n,10)}function l(e){if("string"===typeof e){if(!e.match(/^-?[0-9.]+$/))throw new Error("while converting number to string, invalid number value '"+e+"', should be a number matching (^-?[0-9.]+).");return e}if("number"===typeof e)return String(e);if("object"===typeof e&&e.toString&&(e.toTwos||e.dividedToIntegerBy))return e.toPrecision?String(e.toPrecision()):e.toString(10);throw new Error("while converting number to string, invalid number value '"+e+"' type "+typeof e+".")}e.exports={unitMap:a,numberToString:l,getValueOfUnit:c,fromWei:function(e,t,n){var r=i(e),l=r.lt(o),u=c(t),d=a[t].length-1||1,h=n||{};l&&(r=r.mul(s));for(var f=r.mod(u).toString(10);f.length<d;)f="0"+f;h.pad||(f=f.match(/^([0-9]*[1-9]|0)(0*)/)[1]);var p=r.div(u).toString(10);h.commify&&(p=p.replace(/\B(?=(\d{3})+(?!\d))/g,","));var m=p+("0"==f?"":"."+f);return l&&(m="-"+m),m},toWei:function(e,t){var n=l(e),i=c(t),o=a[t].length-1||1,u="-"===n.substring(0,1);if(u&&(n=n.substring(1)),"."===n)throw new Error("[ethjs-unit] while converting number "+e+" to wei, invalid value");var d=n.split(".");if(d.length>2)throw new Error("[ethjs-unit] while converting number "+e+" to wei, too many decimal points");var h=d[0],f=d[1];if(h||(h="0"),f||(f="0"),f.length>o)throw new Error("[ethjs-unit] while converting number "+e+" to wei, too many decimal places");for(;f.length<o;)f+="0";h=new r(h),f=new r(f);var p=h.mul(i).add(f);return u&&(p=p.mul(s)),new r(p.toString(10),10)}}},6961:(e,t,n)=>{"use strict";n.d(t,{b:()=>u,o:()=>l});var r=n(7578),i=n(3530),o=n(7568),s=n(7543),a=n(2569);const c=new s.A(8192);function l(e,t){if(c.has("".concat(e,".").concat(t)))return c.get("".concat(e,".").concat(t));const n=t?"".concat(t).concat(e.toLowerCase()):e.substring(2).toLowerCase(),r=(0,o.S)((0,i.Af)(n),"bytes"),s=(t?n.substring("".concat(t,"0x").length):n).split("");for(let i=0;i<40;i+=2)r[i>>1]>>4>=8&&s[i]&&(s[i]=s[i].toUpperCase()),(15&r[i>>1])>=8&&s[i+1]&&(s[i+1]=s[i+1].toUpperCase());const a="0x".concat(s.join(""));return c.set("".concat(e,".").concat(t),a),a}function u(e,t){if(!(0,a.P)(e,{strict:!1}))throw new r.M({address:e});return l(e,t)}},6966:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AssertionError:()=>x,CAIP_ACCOUNT_ADDRESS_REGEX:()=>nt,CAIP_ACCOUNT_ID_REGEX:()=>tt,CAIP_ASSET_ID_REGEX:()=>it,CAIP_ASSET_TYPE_REGEX:()=>rt,CAIP_CHAIN_ID_REGEX:()=>Qe,CAIP_NAMESPACE_REGEX:()=>Xe,CAIP_REFERENCE_REGEX:()=>et,CaipAccountAddressStruct:()=>lt,CaipAccountIdStruct:()=>ct,CaipAssetIdStruct:()=>dt,CaipAssetTypeStruct:()=>ut,CaipChainIdStruct:()=>ot,CaipNamespaceStruct:()=>st,CaipReferenceStruct:()=>at,ChecksumStruct:()=>At,Duration:()=>On,ESCAPE_CHARACTERS_REGEXP:()=>d,FrozenMap:()=>Ft,FrozenSet:()=>Dt,HexAddressStruct:()=>ve,HexChecksumAddressStruct:()=>we,HexStruct:()=>ye,JsonRpcErrorStruct:()=>en,JsonRpcFailureStruct:()=>dn,JsonRpcIdStruct:()=>Xt,JsonRpcNotificationStruct:()=>rn,JsonRpcParamsStruct:()=>tn,JsonRpcRequestStruct:()=>nn,JsonRpcResponseStruct:()=>hn,JsonRpcSuccessStruct:()=>un,JsonRpcVersionStruct:()=>Qt,JsonSize:()=>u,JsonStruct:()=>Vt,KnownCaipNamespace:()=>ht,PendingJsonRpcResponseStruct:()=>ln,StrictHexStruct:()=>be,UnsafeJsonStruct:()=>$t,VersionRangeStruct:()=>Hn,VersionStruct:()=>qn,add0x:()=>Ce,assert:()=>A,assertExhaustive:()=>E,assertIsBytes:()=>Ne,assertIsHexString:()=>Ae,assertIsJsonRpcError:()=>xn,assertIsJsonRpcFailure:()=>wn,assertIsJsonRpcNotification:()=>sn,assertIsJsonRpcRequest:()=>cn,assertIsJsonRpcResponse:()=>gn,assertIsJsonRpcSuccess:()=>bn,assertIsPendingJsonRpcResponse:()=>pn,assertIsSemVerRange:()=>Vn,assertIsSemVerVersion:()=>$n,assertIsStrictHexString:()=>ke,assertStruct:()=>k,base64:()=>M,base64ToBytes:()=>Ve,bigIntToBytes:()=>He,bigIntToHex:()=>Cn,bytesToBase64:()=>ze,bytesToBigInt:()=>je,bytesToHex:()=>Ue,bytesToNumber:()=>Fe,bytesToSignedBigInt:()=>Le,bytesToString:()=>De,calculateNumberSize:()=>m,calculateStringSize:()=>p,concatBytes:()=>Je,createBigInt:()=>Ot,createBytes:()=>Rt,createDataView:()=>Ze,createDeferredPromise:()=>Tn,createHex:()=>Bt,createModuleLogger:()=>Sn,createNumber:()=>Tt,createProjectLogger:()=>En,exactOptional:()=>Kt,getChecksumAddress:()=>Se,getErrorMessage:()=>v,getJsonRpcIdValidator:()=>An,getJsonSize:()=>Zt,getKnownPropertyNames:()=>l,getSafeJson:()=>Jt,gtRange:()=>Jn,gtVersion:()=>Gn,hasProperty:()=>c,hexToBigInt:()=>Mn,hexToBytes:()=>qe,hexToNumber:()=>In,inMilliseconds:()=>Bn,isASCII:()=>f,isBytes:()=>Be,isCaipAccountAddress:()=>yt,isCaipAccountId:()=>gt,isCaipAssetId:()=>vt,isCaipAssetType:()=>bt,isCaipChainId:()=>ft,isCaipNamespace:()=>pt,isCaipReference:()=>mt,isErrorWithCode:()=>g,isErrorWithMessage:()=>y,isErrorWithStack:()=>b,isHexString:()=>_e,isJsonRpcError:()=>_n,isJsonRpcFailure:()=>vn,isJsonRpcNotification:()=>on,isJsonRpcRequest:()=>an,isJsonRpcResponse:()=>mn,isJsonRpcSuccess:()=>yn,isNonEmptyArray:()=>o,isNullOrUndefined:()=>s,isObject:()=>a,isPendingJsonRpcResponse:()=>fn,isPlainObject:()=>h,isStrictHexString:()=>xe,isValidChecksumAddress:()=>Pe,isValidHexAddress:()=>Ee,isValidJson:()=>Gt,isValidSemVerRange:()=>Kn,isValidSemVerVersion:()=>Wn,jsonrpc2:()=>Yt,numberToBytes:()=>Ke,numberToHex:()=>Pn,object:()=>Ht,parseCaipAccountId:()=>_t,parseCaipChainId:()=>wt,remove0x:()=>Ie,satisfiesVersionRange:()=>Zn,signedBigIntToBytes:()=>We,stringToBytes:()=>$e,timeSince:()=>Nn,toCaipChainId:()=>xt,valueToBytes:()=>Ge,wrapError:()=>w});var r=n(2867);class i extends Error{constructor(e){let{cause:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(e),this.name=i.name,t&&(this.cause=t),this.message=e}}function o(e){return Array.isArray(e)&&e.length>0}function s(e){return null===e||void 0===e}function a(e){return Boolean(e)&&"object"===typeof e&&!Array.isArray(e)}const c=(e,t)=>Object.hasOwnProperty.call(e,t);function l(e){return Object.getOwnPropertyNames(e)}var u;!function(e){e[e.Null=4]="Null",e[e.Comma=1]="Comma",e[e.Wrapper=1]="Wrapper",e[e.True=4]="True",e[e.False=5]="False",e[e.Quote=1]="Quote",e[e.Colon=1]="Colon",e[e.Date=24]="Date"}(u=u||(u={}));const d=/"|\\|\n|\r|\t/g;function h(e){if("object"!==typeof e||null===e)return!1;try{let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}catch(t){return!1}}function f(e){return e.charCodeAt(0)<=127}function p(e){var t;return e.split("").reduce((e,t)=>f(t)?e+1:e+2,0)+(null!==(t=e.match(d))&&void 0!==t?t:[]).length}function m(e){return e.toString().length}function g(e){return"object"===typeof e&&null!==e&&"code"in e}function y(e){return"object"===typeof e&&null!==e&&"message"in e}function b(e){return"object"===typeof e&&null!==e&&"stack"in e}function v(e){return y(e)&&"string"===typeof e.message?e.message:s(e)?"":String(e)}function w(e,t){if((n=e)instanceof Error||a(n)&&"Error"===n.constructor.name){let n;return n=2===Error.length?new Error(t,{cause:e}):new i(t,{cause:e}),g(e)&&(n.code=e.code),n}var n;return t.length>0?new Error("".concat(String(e),": ").concat(t)):new Error(String(e))}function _(e,t){return function(e){var t;return Boolean("string"===typeof(null===e||void 0===e||null===(t=e.prototype)||void 0===t||null===(t=t.constructor)||void 0===t?void 0:t.name))}(e)?new e({message:t}):e({message:t})}class x extends Error{constructor(e){super(e.message),this.code="ERR_ASSERTION"}}function A(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Assertion failed.";if(!e){if(t instanceof Error)throw t;throw _(arguments.length>2&&void 0!==arguments[2]?arguments[2]:x,t)}}function k(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Assertion failed",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:x;try{(0,r.vA)(e,t)}catch(o){throw _(i,"".concat(n,": ").concat(function(e){return v(e).replace(/\.$/,"")}(o),"."))}}function E(e){throw new Error("Invalid branch reached. Should be detected during compilation.")}function S(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var P,C,I=n(621);const M=function(e){var t,n;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=null!==(t=r.paddingRequired)&&void 0!==t&&t,o=null!==(n=r.characterSet)&&void 0!==n?n:"base64";let s,a;return"base64"===o?s=String.raw(P||(P=S(["[A-Za-z0-9+/]"],["[A-Za-z0-9+\\/]"]))):(A("base64url"===o),s=String.raw(C||(C=S(["[-_A-Za-z0-9]"])))),a=i?new RegExp("^(?:".concat(s,"{4})*(?:").concat(s,"{3}=|").concat(s,"{2}==)?$"),"u"):new RegExp("^(?:".concat(s,"{4})*(?:").concat(s,"{2,3}|").concat(s,"{3}=|").concat(s,"{2}==)?$"),"u"),(0,I.T1)(e,a)};function T(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function O(e){if(!T(e))throw new Error("Uint8Array expected");for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(n.length>0&&!n.includes(e.length))throw new Error("Uint8Array expected of length "+n+", got length="+e.length)}function R(e,t){return!!Array.isArray(t)&&(0===t.length||(e?t.every(e=>"string"===typeof e):t.every(e=>Number.isSafeInteger(e))))}function B(e){if("function"!==typeof e)throw new Error("function expected");return!0}function N(e,t){if("string"!==typeof t)throw new Error("".concat(e,": string expected"));return!0}function U(e){if(!Number.isSafeInteger(e))throw new Error("invalid integer: ".concat(e))}function j(e){if(!Array.isArray(e))throw new Error("array expected")}function L(e,t){if(!R(!0,t))throw new Error("".concat(e,": array of strings expected"))}function F(e,t){if(!R(!1,t))throw new Error("".concat(e,": array of numbers expected"))}function D(){const e=e=>e,t=(e,t)=>n=>e(t(n));for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return{encode:r.map(e=>e.encode).reduceRight(t,e),decode:r.map(e=>e.decode).reduce(t,e)}}function z(e){const t="string"===typeof e?e.split(""):e,n=t.length;L("alphabet",t);const r=new Map(t.map((e,t)=>[e,t]));return{encode:r=>(j(r),r.map(r=>{if(!Number.isSafeInteger(r)||r<0||r>=n)throw new Error('alphabet.encode: digit index outside alphabet "'.concat(r,'". Allowed: ').concat(e));return t[r]})),decode:t=>(j(t),t.map(t=>{N("alphabet.decode",t);const n=r.get(t);if(void 0===n)throw new Error('Unknown letter: "'.concat(t,'". Allowed: ').concat(e));return n}))}}function q(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return N("join",e),{encode:t=>(L("join.decode",t),t.join(e)),decode:t=>(N("join.decode",t),t.split(e))}}function H(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"=";return U(e),N("padding",t),{encode(n){for(L("padding.encode",n);n.length*e%8;)n.push(t);return n},decode(n){L("padding.decode",n);let r=n.length;if(r*e%8)throw new Error("padding: invalid, string should have whole number of bytes");for(;r>0&&n[r-1]===t;r--){if((r-1)*e%8===0)throw new Error("padding: invalid, string has too much padding")}return n.slice(0,r)}}}function W(e){return B(e),{encode:e=>e,decode:t=>e(t)}}function K(e,t,n){if(t<2)throw new Error("convertRadix: invalid from=".concat(t,", base cannot be less than 2"));if(n<2)throw new Error("convertRadix: invalid to=".concat(n,", base cannot be less than 2"));if(j(e),!e.length)return[];let r=0;const i=[],o=Array.from(e,e=>{if(U(e),e<0||e>=t)throw new Error("invalid integer: ".concat(e));return e}),s=o.length;for(;;){let e=0,a=!0;for(let i=r;i<s;i++){const s=o[i],c=t*e,l=c+s;if(!Number.isSafeInteger(l)||c/t!==e||l-s!==c)throw new Error("convertRadix: carry overflow");const u=l/n;e=l%n;const d=Math.floor(u);if(o[i]=d,!Number.isSafeInteger(d)||d*n+e!==l)throw new Error("convertRadix: carry overflow");a&&(d?a=!1:r=i)}if(i.push(e),a)break}for(let a=0;a<e.length-1&&0===e[a];a++)i.push(0);return i.reverse()}const $=(e,t)=>0===t?e:$(t,e%t),V=(e,t)=>e+(t-$(e,t)),G=(()=>{let e=[];for(let t=0;t<40;t++)e.push(2**t);return e})();function J(e,t,n,r){if(j(e),t<=0||t>32)throw new Error("convertRadix2: wrong from=".concat(t));if(n<=0||n>32)throw new Error("convertRadix2: wrong to=".concat(n));if(V(t,n)>32)throw new Error("convertRadix2: carry overflow from=".concat(t," to=").concat(n," carryBits=").concat(V(t,n)));let i=0,o=0;const s=G[t],a=G[n]-1,c=[];for(const l of e){if(U(l),l>=s)throw new Error("convertRadix2: invalid data word=".concat(l," from=").concat(t));if(i=i<<t|l,o+t>32)throw new Error("convertRadix2: carry overflow pos=".concat(o," from=").concat(t));for(o+=t;o>=n;o-=n)c.push((i>>o-n&a)>>>0);const e=G[o];if(void 0===e)throw new Error("invalid carry");i&=e-1}if(i=i<<n-o&a,!r&&o>=t)throw new Error("Excess padding");if(!r&&i>0)throw new Error("Non-zero padding: ".concat(i));return r&&o>0&&c.push(i>>>0),c}function Z(e){U(e);return{encode:t=>{if(!T(t))throw new Error("radix.encode input should be Uint8Array");return K(Array.from(t),256,e)},decode:t=>(F("radix.decode",t),Uint8Array.from(K(t,e,256)))}}function Y(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(U(e),e<=0||e>32)throw new Error("radix2: bits should be in (0..32]");if(V(8,e)>32||V(e,8)>32)throw new Error("radix2: carry overflow");return{encode:n=>{if(!T(n))throw new Error("radix2.encode input should be Uint8Array");return J(Array.from(n),8,e,!t)},decode:n=>(F("radix2.decode",n),Uint8Array.from(J(n,e,8,t)))}}function Q(e){return B(e),function(){try{for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.apply(null,n)}catch(i){}}}const X=D(Y(4),z("0123456789ABCDEF"),q("")),ee=D(Y(5),z("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),H(5),q("")),te=(D(Y(5),z("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),q("")),D(Y(5),z("0123456789ABCDEFGHIJKLMNOPQRSTUV"),H(5),q("")),D(Y(5),z("0123456789ABCDEFGHIJKLMNOPQRSTUV"),q("")),D(Y(5),z("0123456789ABCDEFGHJKMNPQRSTVWXYZ"),q(""),W(e=>e.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1"))),(()=>"function"===typeof Uint8Array.from([]).toBase64&&"function"===typeof Uint8Array.fromBase64)()),ne=(e,t)=>{N("base64",e);const n=t?/^[A-Za-z0-9=_-]+$/:/^[A-Za-z0-9=+/]+$/,r=t?"base64url":"base64";if(e.length>0&&!n.test(e))throw new Error("invalid base64");return Uint8Array.fromBase64(e,{alphabet:r,lastChunkHandling:"strict"})},re=te?{encode:e=>(O(e),e.toBase64()),decode:e=>ne(e,!1)}:D(Y(6),z("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),H(6),q("")),ie=(D(Y(6),z("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),q("")),te?{encode:e=>(O(e),e.toBase64({alphabet:"base64url"})),decode:e=>ne(e,!0)}:D(Y(6),z("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),H(6),q(""))),oe=(D(Y(6),z("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),q("")),e=>D(Z(58),z(e),q(""))),se=oe("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),ae=(oe("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),oe("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz"),[0,2,3,5,6,7,9,10,11]),ce={encode(e){let t="";for(let n=0;n<e.length;n+=8){const r=e.subarray(n,n+8);t+=se.encode(r).padStart(ae[r.length],"1")}return t},decode(e){let t=[];for(let n=0;n<e.length;n+=11){const r=e.slice(n,n+11),i=ae.indexOf(r.length),o=se.decode(r);for(let e=0;e<o.length-i;e++)if(0!==o[e])throw new Error("base58xmr: wrong padding");t=t.concat(Array.from(o.slice(o.length-i)))}return Uint8Array.from(t)}},le=D(z("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),q("")),ue=[996825010,642813549,513874426,1027748829,705979059];function de(e){const t=e>>25;let n=(33554431&e)<<5;for(let r=0;r<ue.length;r++)1===(t>>r&1)&&(n^=ue[r]);return n}function he(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const r=e.length;let i=1;for(let o=0;o<r;o++){const t=e.charCodeAt(o);if(t<33||t>126)throw new Error("Invalid prefix (".concat(e,")"));i=de(i)^t>>5}i=de(i);for(let o=0;o<r;o++)i=de(i)^31&e.charCodeAt(o);for(let o of t)i=de(i)^o;for(let o=0;o<6;o++)i=de(i);return i^=n,le.encode(J([i%G[30]],30,5,!1))}function fe(e){const t="bech32"===e?1:734539939,n=Y(5),r=n.decode,i=n.encode,o=Q(r);function s(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:90;N("bech32.encode prefix",e),T(n)&&(n=Array.from(n)),F("bech32.encode",n);const i=e.length;if(0===i)throw new TypeError("Invalid prefix length ".concat(i));const o=i+7+n.length;if(!1!==r&&o>r)throw new TypeError("Length ".concat(o," exceeds limit ").concat(r));const s=e.toLowerCase(),a=he(s,n,t);return"".concat(s,"1").concat(le.encode(n)).concat(a)}function a(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:90;N("bech32.decode input",e);const r=e.length;if(r<8||!1!==n&&r>n)throw new TypeError("invalid string length: ".concat(r," (").concat(e,"). Expected (8..").concat(n,")"));const i=e.toLowerCase();if(e!==i&&e!==e.toUpperCase())throw new Error("String must be lowercase or uppercase");const o=i.lastIndexOf("1");if(0===o||-1===o)throw new Error('Letter "1" must be present between prefix and data only');const s=i.slice(0,o),a=i.slice(o+1);if(a.length<6)throw new Error("Data must be at least 6 characters long");const c=le.decode(a).slice(0,-6),l=he(s,c,t);if(!a.endsWith(l))throw new Error("Invalid checksum in ".concat(e,': expected "').concat(l,'"'));return{prefix:s,words:c}}return{encode:s,decode:a,encodeFromBytes:function(e,t){return s(e,i(t))},decodeToBytes:function(e){const{prefix:t,words:n}=a(e,!1);return{prefix:t,words:n,bytes:r(n)}},decodeUnsafe:Q(a),fromWords:r,fromWordsUnsafe:o,toWords:i}}fe("bech32"),fe("bech32m");const pe={encode:e=>(new TextDecoder).decode(e),decode:e=>(new TextEncoder).encode(e)};(()=>"function"===typeof Uint8Array.from([]).toHex&&"function"===typeof Uint8Array.fromHex)()||D(Y(4),z("0123456789abcdef"),q(""),W(e=>{if("string"!==typeof e||e.length%2!==0)throw new TypeError("hex.decode: expected string, got ".concat(typeof e," with length ").concat(e.length));return e.toLowerCase()}));var me=n(6140),ge=n(2494);const ye=(0,I.T1)((0,me.Yj)(),/^(?:0x)?[0-9a-f]+$/i),be=(0,I.T1)((0,me.Yj)(),/^0x[0-9a-f]+$/i),ve=(0,I.T1)((0,me.Yj)(),/^0x[0-9a-f]{40}$/),we=(0,I.T1)((0,me.Yj)(),/^0x[0-9A-Fa-f]{40}$/);function _e(e){return(0,r.is)(e,ye)}function xe(e){return(0,r.is)(e,be)}function Ae(e){A(_e(e),"Value must be a hexadecimal string.")}function ke(e){A(xe(e),'Value must be a hexadecimal string, starting with "0x".')}function Ee(e){return(0,r.is)(e,ve)||Pe(e)}function Se(e){A((0,r.is)(e,we),"Invalid hex address.");const t=Ie(e.toLowerCase()),n=Ie(Ue((0,ge.lY)(t)));return"0x".concat(t.split("").map((e,t)=>{const i=n[t];return A((0,r.is)(i,(0,me.Yj)()),"Hash shorter than address."),parseInt(i,16)>7?e.toUpperCase():e}).join(""))}function Pe(e){return!!(0,r.is)(e,we)&&Se(e)===e}function Ce(e){return e.startsWith("0x")?e:e.startsWith("0X")?"0x".concat(e.substring(2)):"0x".concat(e)}function Ie(e){return e.startsWith("0x")||e.startsWith("0X")?e.substring(2):e}const Me=48,Te=58,Oe=87;const Re=function(){const e=[];return()=>{if(0===e.length)for(let t=0;t<256;t++)e.push(t.toString(16).padStart(2,"0"));return e}}();function Be(e){return e instanceof Uint8Array}function Ne(e){A(Be(e),"Value must be a Uint8Array.")}function Ue(e){if(Ne(e),0===e.length)return"0x";const t=Re(),n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=t[e[r]];return Ce(n.join(""))}function je(e){Ne(e);const t=Ue(e);return BigInt(t)}function Le(e){Ne(e);let t=BigInt(0);for(const n of e)t=(t<<BigInt(8))+BigInt(n);return BigInt.asIntN(8*e.length,t)}function Fe(e){Ne(e);const t=je(e);return A(t<=BigInt(Number.MAX_SAFE_INTEGER),"Number is not a safe integer. Use `bytesToBigInt` instead."),Number(t)}function De(e){return Ne(e),(new TextDecoder).decode(e)}function ze(e){return Ne(e),re.encode(e)}function qe(e){var t;if("0x"===(null===e||void 0===e||null===(t=e.toLowerCase)||void 0===t?void 0:t.call(e)))return new Uint8Array;Ae(e);const n=Ie(e).toLowerCase(),r=n.length%2===0?n:"0".concat(n),i=new Uint8Array(r.length/2);for(let o=0;o<i.length;o++){const e=r.charCodeAt(2*o),t=r.charCodeAt(2*o+1),n=e-(e<Te?Me:Oe),s=t-(t<Te?Me:Oe);i[o]=16*n+s}return i}function He(e){A("bigint"===typeof e,"Value must be a bigint."),A(e>=BigInt(0),"Value must be a non-negative bigint.");return qe(e.toString(16))}function We(e,t){A("bigint"===typeof e,"Value must be a bigint."),A("number"===typeof t,"Byte length must be a number."),A(t>0,"Byte length must be greater than 0."),A(function(e,t){A(t>0);const n=e>>BigInt(31);return!((~e&n)+(e&~n)>>BigInt(8*t-1))}(e,t),"Byte length is too small to represent the given value.");let n=e;const r=new Uint8Array(t);for(let i=0;i<r.length;i++)r[i]=Number(BigInt.asUintN(8,n)),n>>=BigInt(8);return r.reverse()}function Ke(e){A("number"===typeof e,"Value must be a number."),A(e>=0,"Value must be a non-negative number."),A(Number.isSafeInteger(e),"Value is not a safe integer. Use `bigIntToBytes` instead.");return qe(e.toString(16))}function $e(e){return A("string"===typeof e,"Value must be a string."),(new TextEncoder).encode(e)}function Ve(e){return A("string"===typeof e,"Value must be a string."),re.decode(e)}function Ge(e){if("bigint"===typeof e)return He(e);if("number"===typeof e)return Ke(e);if("string"===typeof e)return e.startsWith("0x")?qe(e):$e(e);if(Be(e))return e;throw new TypeError('Unsupported value type: "'.concat(typeof e,'".'))}function Je(e){const t=new Array(e.length);let n=0;for(let i=0;i<e.length;i++){const r=Ge(e[i]);t[i]=r,n+=r.length}const r=new Uint8Array(n);for(let i=0,o=0;i<t.length;i++)r.set(t[i],o),o+=t[i].length;return r}function Ze(e){if("undefined"!==typeof Buffer&&e instanceof Buffer){const t=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return new DataView(t)}return new DataView(e.buffer,e.byteOffset,e.byteLength)}var Ye=n(8512);const Qe=(0,Ye.A)(/^([\x2D0-9a-z]{3,8}):([\x2D0-9A-Z_a-z]{1,32})$/,{namespace:1,reference:2}),Xe=/^[\x2D0-9a-z]{3,8}$/,et=/^[\x2D0-9A-Z_a-z]{1,32}$/,tt=(0,Ye.A)(/^(([\x2D0-9a-z]{3,8}):([\x2D0-9A-Z_a-z]{1,32})):([%\x2D\.0-9A-Za-z]{1,128})$/,{chainId:1,namespace:2,reference:3,accountAddress:4}),nt=/^[%\x2D\.0-9A-Za-z]{1,128}$/,rt=(0,Ye.A)(/^(([\x2D0-9a-z]{3,8}):([\x2D0-9A-Z_a-z]{1,32}))\/([\x2D0-9a-z]{3,8}):([%\x2D\.0-9A-Za-z]{1,128})$/,{chainId:1,namespace:2,reference:3,assetNamespace:4,assetReference:5}),it=(0,Ye.A)(/^(([\x2D0-9a-z]{3,8}):([\x2D0-9A-Z_a-z]{1,32}))\/([\x2D0-9a-z]{3,8}):([%\x2D\.0-9A-Za-z]{1,128})\/([%\x2D\.0-9A-Za-z]{1,78})$/,{chainId:1,namespace:2,reference:3,assetNamespace:4,assetReference:5,tokenId:6}),ot=(0,I.T1)((0,me.Yj)(),Qe),st=(0,I.T1)((0,me.Yj)(),Xe),at=(0,I.T1)((0,me.Yj)(),et),ct=(0,I.T1)((0,me.Yj)(),tt),lt=(0,I.T1)((0,me.Yj)(),nt),ut=(0,I.T1)((0,me.Yj)(),rt),dt=(0,I.T1)((0,me.Yj)(),it);var ht;function ft(e){return(0,r.is)(e,ot)}function pt(e){return(0,r.is)(e,st)}function mt(e){return(0,r.is)(e,at)}function gt(e){return(0,r.is)(e,ct)}function yt(e){return(0,r.is)(e,lt)}function bt(e){return(0,r.is)(e,ut)}function vt(e){return(0,r.is)(e,dt)}function wt(e){const t=Qe.exec(e);if(null===t||void 0===t||!t.groups)throw new Error("Invalid CAIP chain ID.");return{namespace:t.groups.namespace,reference:t.groups.reference}}function _t(e){const t=tt.exec(e);if(null===t||void 0===t||!t.groups)throw new Error("Invalid CAIP account ID.");return{address:t.groups.accountAddress,chainId:t.groups.chainId,chain:{namespace:t.groups.namespace,reference:t.groups.reference}}}function xt(e,t){if(!pt(e))throw new Error('Invalid "namespace", must match: '.concat(Xe.toString()));if(!mt(t))throw new Error('Invalid "reference", must match: '.concat(et.toString()));return"".concat(e,":").concat(t)}!function(e){e.Bip122="bip122",e.Eip155="eip155",e.Wallet="wallet"}(ht=ht||(ht={}));const At=(0,I.Ej)(M((0,me.Yj)(),{paddingRequired:!0}),44,44);var kt=n(3172),Et=n(7994);const St=(0,me.KC)([(0,me.ai)(),(0,me.o)(),(0,me.Yj)(),be]),Pt=(0,kt.au)((0,me.ai)(),St,Number),Ct=(0,kt.au)((0,me.o)(),St,BigInt),It=((0,me.KC)([be,(0,me.KJ)(Uint8Array)]),(0,kt.au)((0,me.KJ)(Uint8Array),(0,me.KC)([be]),qe)),Mt=(0,kt.au)(be,(0,me.KJ)(Uint8Array),Ue);function Tt(e){try{const t=(0,r.vt)(e,Pt);return A(Number.isFinite(t),'Expected a number-like value, got "'.concat(e,'".')),t}catch(t){if(t instanceof Et.C)throw new Error('Expected a number-like value, got "'.concat(e,'".'));throw t}}function Ot(e){try{return(0,r.vt)(e,Ct)}catch(t){if(t instanceof Et.C)throw new Error('Expected a number-like value, got "'.concat(String(t.value),'".'));throw t}}function Rt(e){if("string"===typeof e&&"0x"===e.toLowerCase())return new Uint8Array;try{return(0,r.vt)(e,It)}catch(t){if(t instanceof Et.C)throw new Error('Expected a bytes-like value, got "'.concat(String(t.value),'".'));throw t}}function Bt(e){if(e instanceof Uint8Array&&0===e.length||"string"===typeof e&&"0x"===e.toLowerCase())return"0x";try{return(0,r.vt)(e,Mt)}catch(t){if(t instanceof Et.C)throw new Error('Expected a bytes-like value, got "'.concat(String(t.value),'".'));throw t}}var Nt,Ut,jt=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},Lt=function(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n};class Ft{get size(){return jt(this,Nt,"f").size}[(Nt=new WeakMap,Symbol.iterator)](){return jt(this,Nt,"f")[Symbol.iterator]()}constructor(e){Nt.set(this,void 0),Lt(this,Nt,new Map(e),"f"),Object.freeze(this)}entries(){return jt(this,Nt,"f").entries()}forEach(e,t){return jt(this,Nt,"f").forEach((n,r,i)=>e.call(t,n,r,this))}get(e){return jt(this,Nt,"f").get(e)}has(e){return jt(this,Nt,"f").has(e)}keys(){return jt(this,Nt,"f").keys()}values(){return jt(this,Nt,"f").values()}toString(){return"FrozenMap(".concat(this.size,") {").concat(this.size>0?" ".concat([...this.entries()].map(e=>{let[t,n]=e;return"".concat(String(t)," => ").concat(String(n))}).join(", ")," "):"","}")}}class Dt{get size(){return jt(this,Ut,"f").size}[(Ut=new WeakMap,Symbol.iterator)](){return jt(this,Ut,"f")[Symbol.iterator]()}constructor(e){Ut.set(this,void 0),Lt(this,Ut,new Set(e),"f"),Object.freeze(this)}entries(){return jt(this,Ut,"f").entries()}forEach(e,t){return jt(this,Ut,"f").forEach((n,r,i)=>e.call(t,n,r,this))}has(e){return jt(this,Ut,"f").has(e)}keys(){return jt(this,Ut,"f").keys()}values(){return jt(this,Ut,"f").values()}toString(){return"FrozenSet(".concat(this.size,") {").concat(this.size>0?" ".concat([...this.values()].map(e=>String(e)).join(", ")," "):"","}")}}Object.freeze(Ft),Object.freeze(Ft.prototype),Object.freeze(Dt),Object.freeze(Dt.prototype);var zt=n(9740),qt=n(4591);const Ht=e=>(0,me.Ik)(e);function Wt(e){let{path:t,branch:n}=e;const r=t[t.length-1];return c(n[n.length-2],r)}function Kt(e){return new r._k((0,zt.A)((0,zt.A)({},e),{},{type:"optional ".concat(e.type),validator:(t,n)=>!Wt(n)||e.validator(t,n),refiner:(t,n)=>!Wt(n)||e.refiner(t,n)}))}const $t=(0,me.KC)([(0,me.eu)(null),(0,me.zM)(),(0,qt.E8)("finite number",e=>(0,r.is)(e,(0,me.ai)())&&Number.isFinite(e)),(0,me.Yj)(),(0,me.YO)((0,qt.RZ)(()=>$t)),(0,me.g1)((0,me.Yj)(),(0,qt.RZ)(()=>$t))]),Vt=(0,kt.au)($t,(0,me.bz)(),e=>(k(e,$t),JSON.parse(JSON.stringify(e,(e,t)=>{if("__proto__"!==e&&"constructor"!==e)return t}))));function Gt(e){try{return Jt(e),!0}catch(t){return!1}}function Jt(e){return(0,r.vt)(e,Vt)}function Zt(e){k(e,Vt,"Invalid JSON value");const t=JSON.stringify(e);return(new TextEncoder).encode(t).byteLength}const Yt="2.0",Qt=(0,me.eu)(Yt),Xt=(0,me.me)((0,me.KC)([(0,me.ai)(),(0,me.Yj)()])),en=Ht({code:(0,me.nd)(),message:(0,me.Yj)(),data:Kt(Vt),stack:Kt((0,me.Yj)())}),tn=(0,me.KC)([(0,me.g1)((0,me.Yj)(),Vt),(0,me.YO)(Vt)]),nn=Ht({id:Xt,jsonrpc:Qt,method:(0,me.Yj)(),params:Kt(tn)}),rn=Ht({jsonrpc:Qt,method:(0,me.Yj)(),params:Kt(tn)});function on(e){return(0,r.is)(e,rn)}function sn(e,t){k(e,rn,"Invalid JSON-RPC notification",t)}function an(e){return(0,r.is)(e,nn)}function cn(e,t){k(e,nn,"Invalid JSON-RPC request",t)}const ln=(0,me.Ik)({id:Xt,jsonrpc:Qt,result:(0,me.lq)((0,me.L5)()),error:(0,me.lq)(en)}),un=Ht({id:Xt,jsonrpc:Qt,result:Vt}),dn=Ht({id:Xt,jsonrpc:Qt,error:en}),hn=(0,me.KC)([un,dn]);function fn(e){return(0,r.is)(e,ln)}function pn(e,t){k(e,ln,"Invalid pending JSON-RPC response",t)}function mn(e){return(0,r.is)(e,hn)}function gn(e,t){k(e,hn,"Invalid JSON-RPC response",t)}function yn(e){return(0,r.is)(e,un)}function bn(e,t){k(e,un,"Invalid JSON-RPC success response",t)}function vn(e){return(0,r.is)(e,dn)}function wn(e,t){k(e,dn,"Invalid JSON-RPC failure response",t)}function _n(e){return(0,r.is)(e,en)}function xn(e,t){k(e,en,"Invalid JSON-RPC error",t)}function An(e){const{permitEmptyString:t,permitFractions:n,permitNull:r}=(0,zt.A)({permitEmptyString:!0,permitFractions:!1,permitNull:!0},e);return e=>Boolean("number"===typeof e&&(n||Number.isInteger(e))||"string"===typeof e&&(t||e.length>0)||r&&null===e)}const kn=n(4853)("metamask");function En(e){return kn.extend(e)}function Sn(e,t){return e.extend(t)}const Pn=e=>(A("number"===typeof e,"Value must be a number."),A(e>=0,"Value must be a non-negative number."),A(Number.isSafeInteger(e),"Value is not a safe integer. Use `bigIntToHex` instead."),Ce(e.toString(16))),Cn=e=>(A("bigint"===typeof e,"Value must be a bigint."),A(e>=0,"Value must be a non-negative bigint."),Ce(e.toString(16))),In=e=>{Ae(e);const t=parseInt(e,16);return A(Number.isSafeInteger(t),"Value is not a safe integer. Use `hexToBigInt` instead."),t},Mn=e=>(Ae(e),BigInt(Ce(e)));function Tn(){let e,t,{suppressUnhandledRejection:n=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=new Promise((n,r)=>{e=n,t=r});return n&&r.catch(e=>{}),{promise:r,resolve:e,reject:t}}var On;!function(e){e[e.Millisecond=1]="Millisecond",e[e.Second=1e3]="Second",e[e.Minute=6e4]="Minute",e[e.Hour=36e5]="Hour",e[e.Day=864e5]="Day",e[e.Week=6048e5]="Week",e[e.Year=31536e6]="Year"}(On=On||(On={}));const Rn=(e,t)=>{if(!(e=>Number.isInteger(e)&&e>=0)(e))throw new Error('"'.concat(t,'" must be a non-negative integer. Received: "').concat(e,'".'))};function Bn(e,t){return Rn(e,"count"),e*t}function Nn(e){return Rn(e,"timestamp"),Date.now()-e}var Un=n(8785);const{gt:jn,gtr:Ln,satisfies:Fn,valid:Dn,validRange:zn}=Un,qn=(0,I.YP)((0,me.Yj)(),"Version",e=>null!==Dn(e)||'Expected SemVer version, got "'.concat(e,'"')),Hn=(0,I.YP)((0,me.Yj)(),"Version range",e=>null!==zn(e)||'Expected SemVer range, got "'.concat(e,'"'));function Wn(e){return(0,r.is)(e,qn)}function Kn(e){return(0,r.is)(e,Hn)}function $n(e){k(e,qn)}function Vn(e){k(e,Hn)}function Gn(e,t){return jn(e,t)}function Jn(e,t){return Ln(e,t)}function Zn(e,t){return Fn(e,t,{includePrerelease:!0})}},7131:(e,t,n)=>{"use strict";n.d(t,{zX:()=>y,bG:()=>b,M:()=>v,rR:()=>w,Po:()=>_,$S:()=>x});var r=n(625),i=n(8445),o=n(9774),s=n(2311),a=n(8551);function c(e){let{abiItem:t,args:n,includeFunctionName:r=!0,includeName:i=!1}=e;if("name"in t&&"inputs"in t&&t.inputs)return"".concat(r?t.name:"","(").concat(t.inputs.map((e,t)=>"".concat(i&&e.name?"".concat(e.name,": "):"").concat("object"===typeof n[t]?(0,a.A)(n[t]):n[t])).join(", "),")")}var l=n(7188),u=n(3300),d=n(2958),h=n(1588),f=n(8090),p=n(4235),m=n(7814),g=n(9603);class y extends f.C{constructor(e,t){var n;let{account:i,docsPath:o,chain:s,data:a,gas:c,gasPrice:l,maxFeePerGas:h,maxPriorityFeePerGas:f,nonce:g,to:y,value:b,stateOverride:v}=t;const w=i?(0,r.J)(i):void 0;let _=(0,m.aO)({from:null===w||void 0===w?void 0:w.address,to:y,value:"undefined"!==typeof b&&"".concat((0,u.c)(b)," ").concat((null===s||void 0===s||null===(n=s.nativeCurrency)||void 0===n?void 0:n.symbol)||"ETH"),data:a,gas:c,gasPrice:"undefined"!==typeof l&&"".concat((0,d.Q)(l)," gwei"),maxFeePerGas:"undefined"!==typeof h&&"".concat((0,d.Q)(h)," gwei"),maxPriorityFeePerGas:"undefined"!==typeof f&&"".concat((0,d.Q)(f)," gwei"),nonce:g});v&&(_+="\n".concat((0,p.uj)(v))),super(e.shortMessage,{cause:e,docsPath:o,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",_].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class b extends f.C{constructor(e,t){var n;let{abi:r,args:i,contractAddress:o,docsPath:a,functionName:u,sender:d}=t;const h=(0,l.iY)({abi:r,args:i,name:u}),f=h?c({abiItem:h,args:i,includeFunctionName:!1,includeName:!1}):void 0,p=h?(0,s.B)(h,{includeName:!0}):void 0,y=(0,m.aO)({address:o&&(0,g.R)(o),function:p,args:f&&"()"!==f&&"".concat([...Array(null!==(n=null===u||void 0===u?void 0:u.length)&&void 0!==n?n:0).keys()].map(()=>" ").join("")).concat(f),sender:d});super(e.shortMessage||'An unknown error occurred while executing the contract function "'.concat(u,'".'),{cause:e,docsPath:a,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],y&&"Contract Call:",y].filter(Boolean),name:"ContractFunctionExecutionError"}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abi=r,this.args=i,this.cause=e,this.contractAddress=o,this.functionName=u,this.sender=d}}class v extends f.C{constructor(e){let t,n,r,a,l,{abi:u,data:d,functionName:f,message:p}=e;if(d&&"0x"!==d)try{n=(0,o.W)({abi:u,data:d});const{abiItem:e,errorName:t,args:l}=n;if("Error"===t)a=l[0];else if("Panic"===t){const[e]=l;a=i.fD[e]}else{var m;const n=e?(0,s.B)(e,{includeName:!0}):void 0,i=e&&l?c({abiItem:e,args:l,includeFunctionName:!1,includeName:!1}):void 0;r=[n?"Error: ".concat(n):"",i&&"()"!==i?" ".concat([...Array(null!==(m=null===t||void 0===t?void 0:t.length)&&void 0!==m?m:0).keys()].map(()=>" ").join("")).concat(i):""]}}catch(g){t=g}else p&&(a=p);t instanceof h.Wq&&(l=t.signature,r=['Unable to decode signature "'.concat(l,'" as it was not found on the provided ABI.'),"Make sure you are using the correct ABI and that the error exists on it.","You can look up the decoded signature here: https://openchain.xyz/signatures?query=".concat(l,".")]),super(a&&"execution reverted"!==a||l?['The contract function "'.concat(f,'" reverted with the following ').concat(l?"signature":"reason",":"),a||l].join("\n"):'The contract function "'.concat(f,'" reverted.'),{cause:t,metaMessages:r,name:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"raw",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=n,this.raw=d,this.reason=a,this.signature=l}}class w extends f.C{constructor(e){let{functionName:t}=e;super('The contract function "'.concat(t,'" returned no data ("0x").'),{metaMessages:["This could be due to any of the following:",' - The contract does not have the function "'.concat(t,'",')," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."],name:"ContractFunctionZeroDataError"})}}class _ extends f.C{constructor(e){let{factory:t}=e;super("Deployment for counterfactual contract call failed".concat(t?' for factory "'.concat(t,'".'):""),{metaMessages:["Please ensure:","- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).","- The `factoryData` is a valid encoded function call for contract deployment function on the factory."],name:"CounterfactualDeploymentFailedError"})}}class x extends f.C{constructor(e){let{data:t,message:n}=e;super(n||"",{name:"RawContractError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t}}},7188:(e,t,n)=>{"use strict";n.d(t,{iY:()=>l});var r=n(9740),i=n(1588),o=n(226),s=n(2569);const a=n(8859).k;var c=n(1503);function l(e){const{abi:t,args:n=[],name:r}=e,s=(0,o.q)(r,{strict:!1}),l=t.filter(e=>s?"function"===e.type?(0,c.V)(e)===r:"event"===e.type&&a(e)===r:"name"in e&&e.name===r);if(0===l.length)return;if(1===l.length)return l[0];let h;for(const o of l){if(!("inputs"in o))continue;if(!n||0===n.length){if(!o.inputs||0===o.inputs.length)return o;continue}if(!o.inputs)continue;if(0===o.inputs.length)continue;if(o.inputs.length!==n.length)continue;if(n.every((e,t)=>{const n="inputs"in o&&o.inputs[t];return!!n&&u(e,n)})){if(h&&"inputs"in h&&h.inputs){const e=d(o.inputs,h.inputs,n);if(e)throw new i.nM({abiItem:o,type:e[0]},{abiItem:h,type:e[1]})}h=o}}return h||l[0]}function u(e,t){const n=typeof e,i=t.type;switch(i){case"address":return(0,s.P)(e,{strict:!1});case"bool":return"boolean"===n;case"function":case"string":return"string"===n;default:return"tuple"===i&&"components"in t?Object.values(t.components).every((t,n)=>u(Object.values(e)[n],t)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(i)?"number"===n||"bigint"===n:/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(i)?"string"===n||e instanceof Uint8Array:!!/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(i)&&(Array.isArray(e)&&e.every(e=>u(e,(0,r.A)((0,r.A)({},t),{},{type:i.replace(/(\[[0-9]{0,}\])$/,"")}))))}}function d(e,t,n){for(const r in e){const i=e[r],o=t[r];if("tuple"===i.type&&"tuple"===o.type&&"components"in i&&"components"in o)return d(i.components,o.components,n[r]);const a=[i.type,o.type];if((()=>!(!a.includes("address")||!a.includes("bytes20"))||(a.includes("address")&&a.includes("string")||!(!a.includes("address")||!a.includes("bytes")))&&(0,s.P)(n[r],{strict:!1}))())return a}}},7278:(e,t,n)=>{"use strict";n.d(t,{c:()=>l});var r=n(625),i=n(2505),o=n(7578),s=n(6600),a=n(7814),c=n(2569);function l(e){const{account:t,gasPrice:n,maxFeePerGas:l,maxPriorityFeePerGas:u,to:d}=e,h=t?(0,r.J)(t):void 0;if(h&&!(0,c.P)(h.address))throw new o.M({address:h.address});if(d&&!(0,c.P)(d))throw new o.M({address:d});if("undefined"!==typeof n&&("undefined"!==typeof l||"undefined"!==typeof u))throw new a.n3;if(l&&l>i.Ao)throw new s.BG({maxFeePerGas:l});if(u&&l&&u>l)throw new s.lN({maxFeePerGas:l,maxPriorityFeePerGas:u})}},7337:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.aesDecrypt=t.aesEncrypt=t.symDecrypt=t.symEncrypt=void 0;var r=n(8322),i=n(3927),o=n(4314),s=n(4101),a=n(9956),c=n(8798);t.symEncrypt=function(e,t,n){return l(u,e,t,n)};function l(e,t,n,o){var s=(0,a.symmetricAlgorithm)();if("aes-256-gcm"===s)return e(r.aes256gcm,t,n,(0,a.symmetricNonceLength)(),c.AEAD_TAG_LENGTH,o);if("xchacha20"===s)return e(i.xchacha20,t,n,c.XCHACHA20_NONCE_LENGTH,c.AEAD_TAG_LENGTH,o);if("aes-256-cbc"===s)return e(r.aes256cbc,t,n,16,0);throw new Error("Not implemented")}function u(e,t,n,r,i,a){var c=(0,s.randomBytes)(r),l=e(t,c,a).encrypt(n);if(0===i)return(0,o.concatBytes)(c,l);var u=l.length-i,d=l.subarray(0,u),h=l.subarray(u);return(0,o.concatBytes)(c,h,d)}function d(e,t,n,r,i,s){var a=n.subarray(0,r),c=e(t,Uint8Array.from(a),s),l=n.subarray(r);if(0===i)return c.decrypt(l);var u=l.subarray(0,i),d=l.subarray(i);return c.decrypt((0,o.concatBytes)(d,u))}t.symDecrypt=function(e,t,n){return l(d,e,t,n)},t.aesEncrypt=t.symEncrypt,t.aesDecrypt=t.symDecrypt},7412:(e,t,n)=>{"use strict";n.d(t,{e:()=>a});var r=n(1588),i=n(1187),o=n(7188);const s="/docs/contract/decodeFunctionResult";function a(e){const{abi:t,args:n,functionName:a,data:c}=e;let l=t[0];if(a){const e=(0,o.iY)({abi:t,args:n,name:a});if(!e)throw new r.Iz(a,{docsPath:s});l=e}if("function"!==l.type)throw new r.Iz(void 0,{docsPath:s});if(!l.outputs)throw new r.MR(l.name,{docsPath:s});const u=(0,i.n)(l.outputs,c);return u&&u.length>1?u:u&&1===u.length?u[0]:void 0}},7543:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});class r extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){const t=super.get(e);return super.has(e)&&void 0!==t&&(this.delete(e),super.set(e,t)),t}set(e,t){if(super.set(e,t),this.maxSize&&this.size>this.maxSize){const e=this.keys().next().value;e&&this.delete(e)}return this}}},7545:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},7568:(e,t,n)=>{"use strict";n.d(t,{S:()=>a});var r=n(2494),i=n(226),o=n(3530),s=n(4456);function a(e,t){const n=t||"hex",a=(0,r.lY)((0,i.q)(e,{strict:!1})?(0,o.ZJ)(e):e);return"bytes"===n?a:(0,s.nj)(a)}},7578:(e,t,n)=>{"use strict";n.d(t,{M:()=>i});var r=n(8090);class i extends r.C{constructor(e){let{address:t}=e;super('Address "'.concat(t,'" is invalid.'),{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}},7663:(e,t,n)=>{"use strict";n.d(t,{wV:()=>y,K4:()=>b,nW:()=>v,Dz:()=>_,rW:()=>w});var r=n(8512),i=n(4591);function o(e,t){return(0,i.E8)(e,e=>"string"===typeof e&&t.test(e))}const s=(0,r.A)(/^([\x2D0-9a-z]{3,8}):([\x2D0-9A-Z_a-z]{1,32})$/,{namespace:1,reference:2}),a=/^[\x2D0-9a-z]{3,8}$/,c=/^[\x2D0-9A-Z_a-z]{1,32}$/,l=(0,r.A)(/^(([\x2D0-9a-z]{3,8}):([\x2D0-9A-Z_a-z]{1,32})):([%\x2D\.0-9A-Za-z]{1,128})$/,{chainId:1,namespace:2,reference:3,accountAddress:4}),u=/^[%\x2D\.0-9A-Za-z]{1,128}$/,d=/^[\x2D0-9a-z]{3,8}$/,h=/^[%\x2D\.0-9A-Za-z]{1,128}$/,f=/^[%\x2D\.0-9A-Za-z]{1,78}$/,p=(0,r.A)(/^(([\x2D0-9a-z]{3,8}):([\x2D0-9A-Z_a-z]{1,32}))\/([\x2D0-9a-z]{3,8}):([%\x2D\.0-9A-Za-z]{1,128})$/,{chainId:1,namespace:2,reference:3,assetNamespace:4,assetReference:5}),m=(0,r.A)(/^(([\x2D0-9a-z]{3,8}):([\x2D0-9A-Z_a-z]{1,32}))\/([\x2D0-9a-z]{3,8}):([%\x2D\.0-9A-Za-z]{1,128})\/([%\x2D\.0-9A-Za-z]{1,78})$/,{chainId:1,namespace:2,reference:3,assetNamespace:4,assetReference:5,tokenId:6}),g=(0,r.A)(/^(([\x2D0-9a-z]{3,8}):([\x2D0-9A-Z_a-z]{1,32}))\/([\x2D0-9a-z]{3,8}):([%\x2D\.0-9A-Za-z]{1,128})(\/([%\x2D\.0-9A-Za-z]{1,78}))?$/,{chainId:1,namespace:2,reference:3,assetNamespace:4,assetReference:5,tokenId:7});o("CaipChainId",s),o("CaipNamespace",a),o("CaipReference",c),o("CaipAccountId",l),o("CaipAccountAddress",u),o("CaipAssetNamespace",d),o("CaipAssetReference",h),o("CaipTokenId",f),o("CaipAssetType",p),o("CaipAssetId",m),o("CaipAssetTypeOrId",g);var y;function b(e){return"string"===typeof e&&s.test(e)}function v(e){return"string"===typeof e&&a.test(e)}function w(e){const t=s.exec(e);if(null===t||void 0===t||!t.groups)throw new Error("Invalid CAIP chain ID.");return{namespace:t.groups.namespace,reference:t.groups.reference}}function _(e){const t=l.exec(e);if(null===t||void 0===t||!t.groups)throw new Error("Invalid CAIP account ID.");return{address:t.groups.accountAddress,chainId:t.groups.chainId,chain:{namespace:t.groups.namespace,reference:t.groups.reference}}}!function(e){e.Bip122="bip122",e.Solana="solana",e.Tron="tron",e.Eip155="eip155",e.Wallet="wallet"}(y=y||(y={}))},7683:(e,t,n)=>{"use strict";function r(e){return"string"===typeof e[0]?i(e):function(e){let t=0;for(const i of e)t+=i.length;const n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}(e)}function i(e){return"0x".concat(e.reduce((e,t)=>e+t.replace("0x",""),""))}n.d(t,{aP:()=>i,xW:()=>r})},7690:(e,t)=>{"use strict";t.byteLength=function(e){var t=a(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,o=a(e),s=o[0],c=o[1],l=new i(function(e,t,n){return 3*(t+n)/4-n}(0,s,c)),u=0,d=c>0?s-4:s;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;2===c&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,l[u++]=255&t);1===c&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t);return l},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],s=16383,a=0,c=r-i;a<c;a+=s)o.push(l(e,a,a+s>c?c:a+s));1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],r=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)n[s]=o[s],r[o.charCodeAt(s)]=s;function a(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function l(e,t,n){for(var r,i=[],o=t;o<n;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(c(r));return i.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},7802:e=>{var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"===typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"===typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var a,c=[],l=!1,u=-1;function d(){l&&a&&(l=!1,a.length?c=a.concat(c):u=-1,c.length&&h())}function h(){if(!l){var e=s(d);l=!0;for(var t=c.length;t;){for(a=c,c=[];++u<t;)a&&a[u].run();u=-1,t=c.length}a=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function p(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new f(e,t)),1!==c.length||l||s(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=p,r.addListener=p,r.once=p,r.off=p,r.removeListener=p,r.removeAllListeners=p,r.emit=p,r.prependListener=p,r.prependOnceListener=p,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},7814:(e,t,n)=>{"use strict";n.d(t,{$s:()=>d,Kc:()=>f,Kz:()=>h,Vg:()=>l,WA:()=>p,aO:()=>s,fZ:()=>u,n3:()=>a,zW:()=>c});var r=n(3300),i=n(2958),o=n(8090);function s(e){const t=Object.entries(e).map(e=>{let[t,n]=e;return void 0===n||!1===n?null:[t,n]}).filter(Boolean),n=t.reduce((e,t)=>{let[n]=t;return Math.max(e,n.length)},0);return t.map(e=>{let[t,r]=e;return" ".concat("".concat(t,":").padEnd(n+1)," ").concat(r)}).join("\n")}class a extends o.C{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join("\n"),{name:"FeeConflictError"})}}class c extends o.C{constructor(e){let{v:t}=e;super('Invalid `v` value "'.concat(t,'". Expected 27 or 28.'),{name:"InvalidLegacyVError"})}}class l extends o.C{constructor(e){let{transaction:t}=e;super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",s(t),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}}o.C;o.C;class u extends o.C{constructor(e){let{storageKey:t}=e;super('Size for storage key "'.concat(t,'" is invalid. Expected 32 bytes. Got ').concat(Math.floor((t.length-2)/2)," bytes."),{name:"InvalidStorageKeySizeError"})}}class d extends o.C{constructor(e,t){var n;let{account:o,docsPath:a,chain:c,data:l,gas:u,gasPrice:d,maxFeePerGas:h,maxPriorityFeePerGas:f,nonce:p,to:m,value:g}=t;const y=s({chain:c&&"".concat(null===c||void 0===c?void 0:c.name," (id: ").concat(null===c||void 0===c?void 0:c.id,")"),from:null===o||void 0===o?void 0:o.address,to:m,value:"undefined"!==typeof g&&"".concat((0,r.c)(g)," ").concat((null===c||void 0===c||null===(n=c.nativeCurrency)||void 0===n?void 0:n.symbol)||"ETH"),data:l,gas:u,gasPrice:"undefined"!==typeof d&&"".concat((0,i.Q)(d)," gwei"),maxFeePerGas:"undefined"!==typeof h&&"".concat((0,i.Q)(h)," gwei"),maxPriorityFeePerGas:"undefined"!==typeof f&&"".concat((0,i.Q)(f)," gwei"),nonce:p});super(e.shortMessage,{cause:e,docsPath:a,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",y].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class h extends o.C{constructor(e){let{blockHash:t,blockNumber:n,blockTag:r,hash:i,index:o}=e,s="Transaction";r&&void 0!==o&&(s='Transaction at block time "'.concat(r,'" at index "').concat(o,'"')),t&&void 0!==o&&(s='Transaction at block hash "'.concat(t,'" at index "').concat(o,'"')),n&&void 0!==o&&(s='Transaction at block number "'.concat(n,'" at index "').concat(o,'"')),i&&(s='Transaction with hash "'.concat(i,'"')),super("".concat(s," could not be found."),{name:"TransactionNotFoundError"})}}class f extends o.C{constructor(e){let{hash:t}=e;super('Transaction receipt with hash "'.concat(t,'" could not be found. The Transaction may not be processed on a block yet.'),{name:"TransactionReceiptNotFoundError"})}}o.C;class p extends o.C{constructor(e){let{hash:t}=e;super('Timed out while waiting for transaction with hash "'.concat(t,'" to be confirmed.'),{name:"WaitForTransactionReceiptTimeoutError"})}}},7871:(e,t,n)=>{"use strict";n.d(t,{p:()=>u});var r=n(7683),i=n(5210),o=n(1588),s=n(1503),a=n(2311),c=n(7188);const l="/docs/contract/encodeFunctionData";function u(e){const{args:t}=e,{abi:n,functionName:u}=1===e.abi.length&&null!==(d=e.functionName)&&void 0!==d&&d.startsWith("0x")?e:function(e){const{abi:t,args:n,functionName:r}=e;let i=t[0];if(r){const e=(0,c.iY)({abi:t,args:n,name:r});if(!e)throw new o.Iz(r,{docsPath:l});i=e}if("function"!==i.type)throw new o.Iz(void 0,{docsPath:l});return{abi:[i],functionName:(0,s.V)((0,a.B)(i))}}(e);var d;const h=n[0],f=u,p="inputs"in h&&h.inputs?(0,i.h)(h.inputs,null!==t&&void 0!==t?t:[]):void 0;return(0,r.aP)([f,null!==p&&void 0!==p?p:"0x"])}},7950:(e,t)=>{"use strict";var n=Symbol.for("react.transitional.element");function r(e,t,r){var i=null;if(void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),"key"in t)for(var o in r={},t)"key"!==o&&(r[o]=t[o]);else r=t;return t=r.ref,{$$typeof:n,type:e,key:i,ref:void 0!==t?t:null,props:r}}Symbol.for("react.fragment"),t.jsx=r,t.jsxs=r},7963:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PrivateKey=void 0;var r=n(4314),i=n(1586),o=n(8745),s=function(){function e(e,t){if(this.curve=t,void 0===e)this.data=(0,i.getValidSecret)(t);else{if(!(0,i.isValidPrivateKey)(e,t))throw new Error("Invalid private key");this.data=e}this.publicKey=new o.PublicKey((0,i.getPublicKey)(this.data,t),t)}return e.fromHex=function(t,n){return new e((0,i.decodeHex)(t),n)},Object.defineProperty(e.prototype,"secret",{get:function(){return Buffer.from(this.data)},enumerable:!1,configurable:!0}),e.prototype.toHex=function(){return(0,r.bytesToHex)(this.data)},e.prototype.encapsulate=function(e,t){void 0===t&&(t=!1);var n=this.publicKey.toBytes(t),r=this.multiply(e,t);return(0,i.getSharedKey)(n,r)},e.prototype.multiply=function(e,t){return void 0===t&&(t=!1),(0,i.getSharedPoint)(this.data,e.toBytes(!0),t,this.curve)},e.prototype.equals=function(e){return(0,r.equalBytes)(this.data,e.data)},e}();t.PrivateKey=s},7994:(e,t,n)=>{"use strict";n.d(t,{C:()=>o});var r=n(4223);const i=["message","explanation"];class o extends TypeError{constructor(e,t){let n;const{message:o,explanation:s}=e,a=(0,r.A)(e,i),{path:c}=e,l=0===c.length?o:"At path: ".concat(c.join(".")," -- ").concat(o);super(null!==s&&void 0!==s?s:l),null!==s&&void 0!==s&&(this.cause=l),Object.assign(this,a),this.name=this.constructor.name,this.failures=()=>null!==n&&void 0!==n?n:n=[e,...t()]}}},8090:(e,t,n)=>{"use strict";n.d(t,{C:()=>s});var r=n(9740);const i="2.38.6";let o={getDocsUrl:e=>{let{docsBaseUrl:t,docsPath:n="",docsSlug:r}=e;return n?"".concat(null!==t&&void 0!==t?t:"https://viem.sh").concat(n).concat(r?"#".concat(r):""):void 0},version:"viem@".concat(i)};class s extends Error{constructor(e){var t,n,a;let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const l=c.cause instanceof s?c.cause.details:null!==(u=c.cause)&&void 0!==u&&u.message?c.cause.message:c.details;var u;const d=c.cause instanceof s&&c.cause.docsPath||c.docsPath,h=null===(t=(n=o).getDocsUrl)||void 0===t?void 0:t.call(n,(0,r.A)((0,r.A)({},c),{},{docsPath:d}));super([e||"An error occurred.","",...c.metaMessages?[...c.metaMessages,""]:[],...h?["Docs: ".concat(h)]:[],...l?["Details: ".concat(l)]:[],...o.version?["Version: ".concat(o.version)]:[]].join("\n"),c.cause?{cause:c.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=l,this.docsPath=d,this.metaMessages=c.metaMessages,this.name=null!==(a=c.name)&&void 0!==a?a:this.name,this.shortMessage=e,this.version=i}walk(e){return a(this,e)}}function a(e,t){return null!==t&&void 0!==t&&t(e)?e:e&&"object"===typeof e&&"cause"in e&&void 0!==e.cause?a(e.cause,t):t?null:e}},8116:(e,t,n)=>{"use strict";const r=n(5544);e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))},8212:(e,t,n)=>{var r=n(6347);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},8286:function(e,t,n){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function o(e,t,n){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var s;"object"===typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{s="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:n(2805).Buffer}catch(C){}function a(e,t){var n=e.charCodeAt(t);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+e)}function c(e,t,n){var r=a(e,n);return n-1>=t&&(r|=a(e,n-1)<<4),r}function l(e,t,n,i){for(var o=0,s=0,a=Math.min(e.length,n),c=t;c<a;c++){var l=e.charCodeAt(c)-48;o*=i,s=l>=49?l-49+10:l>=17?l-17+10:l,r(l>=0&&s<i,"Invalid character"),o+=s}return o}function u(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(o.isBN=function(e){return e instanceof o||null!==e&&"object"===typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,n){if("number"===typeof e)return this._initNumber(e,t,n);if("object"===typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,n):(this._parseBase(e,t,i),"le"===n&&this._initArray(this.toArray(),t,n)))},o.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initArray=function(e,t,n){if(r("number"===typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,s,a=0;if("be"===n)for(i=e.length-1,o=0;i>=0;i-=3)s=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);else if("le"===n)for(i=0,o=0;i<e.length;i+=3)s=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);return this._strip()},o.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var i,o=0,s=0;if("be"===n)for(r=e.length-1;r>=t;r-=2)i=c(e,t,r)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else for(r=(e.length-t)%2===0?t+1:t;r<e.length;r+=2)i=c(e,t,r)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;this._strip()},o.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,s=o%r,a=Math.min(o,o-s)+n,c=0,u=n;u<a;u+=r)c=l(e,u,u+r,t),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==s){var d=1;for(c=l(e,u,e.length,t),u=0;u<s;u++)d*=t;this.imuln(d),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this._strip()},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype._move=function(e){u(e,this)},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!==typeof Symbol&&"function"===typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=d}catch(C){o.prototype.inspect=d}else o.prototype.inspect=d;function d(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],c=(16777215&(a<<i|o)).toString(16);o=a>>>24-i&16777215,(i+=2)>=26&&(i-=26,s--),n=0!==o||s!==this.length-1?h[6-c.length]+c+n:c+n}for(0!==o&&(n=o.toString(16)+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var l=f[e],u=p[e];n="";var d=this.clone();for(d.negative=0;!d.isZero();){var m=d.modrn(u).toString(e);n=(d=d.idivn(u)).isZero()?m+n:h[l-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},s&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(s,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function m(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],s=i*o,a=67108863&s,c=s/67108864|0;n.words[0]=a;for(var l=1;l<r;l++){for(var u=c>>>26,d=67108863&c,h=Math.min(l,t.length-1),f=Math.max(0,l-e.length+1);f<=h;f++){var p=l-f|0;u+=(s=(i=0|e.words[p])*(o=0|t.words[f])+d)/67108864|0,d=67108863&s}n.words[l]=0|d,c=0|u}return 0!==c?n.words[l]=0|c:n.length--,n._strip()}o.prototype.toArrayLike=function(e,t,n){this._strip();var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0");var s=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](s,i),s},o.prototype._toArrayLikeLE=function(e,t){for(var n=0,r=0,i=0,o=0;i<this.length;i++){var s=this.words[i]<<o|r;e[n++]=255&s,n<e.length&&(e[n++]=s>>8&255),n<e.length&&(e[n++]=s>>16&255),6===o?(n<e.length&&(e[n++]=s>>24&255),r=0,o=0):(r=s>>>24,o+=2)}if(n<e.length)for(e[n++]=r;n<e.length;)e[n++]=0},o.prototype._toArrayLikeBE=function(e,t){for(var n=e.length-1,r=0,i=0,o=0;i<this.length;i++){var s=this.words[i]<<o|r;e[n--]=255&s,n>=0&&(e[n--]=s>>8&255),n>=0&&(e[n--]=s>>16&255),6===o?(n>=0&&(e[n--]=s>>24&255),r=0,o=0):(r=s>>>24,o+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0===(8191&t)&&(n+=13,t>>>=13),0===(127&t)&&(n+=7,t>>>=7),0===(15&t)&&(n+=4,t>>>=4),0===(3&t)&&(n+=2,t>>>=2),0===(1&t)&&n++,n},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},o.prototype.ior=function(e){return r(0===(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this._strip()},o.prototype.iand=function(e){return r(0===(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this._strip()},o.prototype.ixor=function(e){return r(0===(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){r("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){r("number"===typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<i:this.words[n]&~(1<<i),this._strip()},o.prototype.iadd=function(e){var t,n,r;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o<r.length;o++)t=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<n.length;o++)t=(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,s=0;s<r.length;s++)o=(t=(0|n.words[s])-(0|r.words[s])+o)>>26,this.words[s]=67108863&t;for(;0!==o&&s<n.length;s++)o=(t=(0|n.words[s])+o)>>26,this.words[s]=67108863&t;if(0===o&&s<n.length&&n!==this)for(;s<n.length;s++)this.words[s]=n.words[s];return this.length=Math.max(this.length,s),n!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var g=function(e,t,n){var r,i,o,s=e.words,a=t.words,c=n.words,l=0,u=0|s[0],d=8191&u,h=u>>>13,f=0|s[1],p=8191&f,m=f>>>13,g=0|s[2],y=8191&g,b=g>>>13,v=0|s[3],w=8191&v,_=v>>>13,x=0|s[4],A=8191&x,k=x>>>13,E=0|s[5],S=8191&E,P=E>>>13,C=0|s[6],I=8191&C,M=C>>>13,T=0|s[7],O=8191&T,R=T>>>13,B=0|s[8],N=8191&B,U=B>>>13,j=0|s[9],L=8191&j,F=j>>>13,D=0|a[0],z=8191&D,q=D>>>13,H=0|a[1],W=8191&H,K=H>>>13,$=0|a[2],V=8191&$,G=$>>>13,J=0|a[3],Z=8191&J,Y=J>>>13,Q=0|a[4],X=8191&Q,ee=Q>>>13,te=0|a[5],ne=8191&te,re=te>>>13,ie=0|a[6],oe=8191&ie,se=ie>>>13,ae=0|a[7],ce=8191&ae,le=ae>>>13,ue=0|a[8],de=8191&ue,he=ue>>>13,fe=0|a[9],pe=8191&fe,me=fe>>>13;n.negative=e.negative^t.negative,n.length=19;var ge=(l+(r=Math.imul(d,z))|0)+((8191&(i=(i=Math.imul(d,q))+Math.imul(h,z)|0))<<13)|0;l=((o=Math.imul(h,q))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(p,z),i=(i=Math.imul(p,q))+Math.imul(m,z)|0,o=Math.imul(m,q);var ye=(l+(r=r+Math.imul(d,W)|0)|0)+((8191&(i=(i=i+Math.imul(d,K)|0)+Math.imul(h,W)|0))<<13)|0;l=((o=o+Math.imul(h,K)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(y,z),i=(i=Math.imul(y,q))+Math.imul(b,z)|0,o=Math.imul(b,q),r=r+Math.imul(p,W)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,K)|0;var be=(l+(r=r+Math.imul(d,V)|0)|0)+((8191&(i=(i=i+Math.imul(d,G)|0)+Math.imul(h,V)|0))<<13)|0;l=((o=o+Math.imul(h,G)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(w,z),i=(i=Math.imul(w,q))+Math.imul(_,z)|0,o=Math.imul(_,q),r=r+Math.imul(y,W)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(b,W)|0,o=o+Math.imul(b,K)|0,r=r+Math.imul(p,V)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,G)|0;var ve=(l+(r=r+Math.imul(d,Z)|0)|0)+((8191&(i=(i=i+Math.imul(d,Y)|0)+Math.imul(h,Z)|0))<<13)|0;l=((o=o+Math.imul(h,Y)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(A,z),i=(i=Math.imul(A,q))+Math.imul(k,z)|0,o=Math.imul(k,q),r=r+Math.imul(w,W)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(_,W)|0,o=o+Math.imul(_,K)|0,r=r+Math.imul(y,V)|0,i=(i=i+Math.imul(y,G)|0)+Math.imul(b,V)|0,o=o+Math.imul(b,G)|0,r=r+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,Y)|0;var we=(l+(r=r+Math.imul(d,X)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(h,X)|0))<<13)|0;l=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(S,z),i=(i=Math.imul(S,q))+Math.imul(P,z)|0,o=Math.imul(P,q),r=r+Math.imul(A,W)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(k,W)|0,o=o+Math.imul(k,K)|0,r=r+Math.imul(w,V)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(_,V)|0,o=o+Math.imul(_,G)|0,r=r+Math.imul(y,Z)|0,i=(i=i+Math.imul(y,Y)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,Y)|0,r=r+Math.imul(p,X)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,ee)|0;var _e=(l+(r=r+Math.imul(d,ne)|0)|0)+((8191&(i=(i=i+Math.imul(d,re)|0)+Math.imul(h,ne)|0))<<13)|0;l=((o=o+Math.imul(h,re)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(I,z),i=(i=Math.imul(I,q))+Math.imul(M,z)|0,o=Math.imul(M,q),r=r+Math.imul(S,W)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul(P,W)|0,o=o+Math.imul(P,K)|0,r=r+Math.imul(A,V)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(k,V)|0,o=o+Math.imul(k,G)|0,r=r+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,Y)|0,r=r+Math.imul(y,X)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,ee)|0,r=r+Math.imul(p,ne)|0,i=(i=i+Math.imul(p,re)|0)+Math.imul(m,ne)|0,o=o+Math.imul(m,re)|0;var xe=(l+(r=r+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,se)|0)+Math.imul(h,oe)|0))<<13)|0;l=((o=o+Math.imul(h,se)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(O,z),i=(i=Math.imul(O,q))+Math.imul(R,z)|0,o=Math.imul(R,q),r=r+Math.imul(I,W)|0,i=(i=i+Math.imul(I,K)|0)+Math.imul(M,W)|0,o=o+Math.imul(M,K)|0,r=r+Math.imul(S,V)|0,i=(i=i+Math.imul(S,G)|0)+Math.imul(P,V)|0,o=o+Math.imul(P,G)|0,r=r+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(k,Z)|0,o=o+Math.imul(k,Y)|0,r=r+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,ee)|0,r=r+Math.imul(y,ne)|0,i=(i=i+Math.imul(y,re)|0)+Math.imul(b,ne)|0,o=o+Math.imul(b,re)|0,r=r+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,se)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,se)|0;var Ae=(l+(r=r+Math.imul(d,ce)|0)|0)+((8191&(i=(i=i+Math.imul(d,le)|0)+Math.imul(h,ce)|0))<<13)|0;l=((o=o+Math.imul(h,le)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(N,z),i=(i=Math.imul(N,q))+Math.imul(U,z)|0,o=Math.imul(U,q),r=r+Math.imul(O,W)|0,i=(i=i+Math.imul(O,K)|0)+Math.imul(R,W)|0,o=o+Math.imul(R,K)|0,r=r+Math.imul(I,V)|0,i=(i=i+Math.imul(I,G)|0)+Math.imul(M,V)|0,o=o+Math.imul(M,G)|0,r=r+Math.imul(S,Z)|0,i=(i=i+Math.imul(S,Y)|0)+Math.imul(P,Z)|0,o=o+Math.imul(P,Y)|0,r=r+Math.imul(A,X)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(k,X)|0,o=o+Math.imul(k,ee)|0,r=r+Math.imul(w,ne)|0,i=(i=i+Math.imul(w,re)|0)+Math.imul(_,ne)|0,o=o+Math.imul(_,re)|0,r=r+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,se)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,se)|0,r=r+Math.imul(p,ce)|0,i=(i=i+Math.imul(p,le)|0)+Math.imul(m,ce)|0,o=o+Math.imul(m,le)|0;var ke=(l+(r=r+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,he)|0)+Math.imul(h,de)|0))<<13)|0;l=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(L,z),i=(i=Math.imul(L,q))+Math.imul(F,z)|0,o=Math.imul(F,q),r=r+Math.imul(N,W)|0,i=(i=i+Math.imul(N,K)|0)+Math.imul(U,W)|0,o=o+Math.imul(U,K)|0,r=r+Math.imul(O,V)|0,i=(i=i+Math.imul(O,G)|0)+Math.imul(R,V)|0,o=o+Math.imul(R,G)|0,r=r+Math.imul(I,Z)|0,i=(i=i+Math.imul(I,Y)|0)+Math.imul(M,Z)|0,o=o+Math.imul(M,Y)|0,r=r+Math.imul(S,X)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(P,X)|0,o=o+Math.imul(P,ee)|0,r=r+Math.imul(A,ne)|0,i=(i=i+Math.imul(A,re)|0)+Math.imul(k,ne)|0,o=o+Math.imul(k,re)|0,r=r+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,se)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,se)|0,r=r+Math.imul(y,ce)|0,i=(i=i+Math.imul(y,le)|0)+Math.imul(b,ce)|0,o=o+Math.imul(b,le)|0,r=r+Math.imul(p,de)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(m,de)|0,o=o+Math.imul(m,he)|0;var Ee=(l+(r=r+Math.imul(d,pe)|0)|0)+((8191&(i=(i=i+Math.imul(d,me)|0)+Math.imul(h,pe)|0))<<13)|0;l=((o=o+Math.imul(h,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(L,W),i=(i=Math.imul(L,K))+Math.imul(F,W)|0,o=Math.imul(F,K),r=r+Math.imul(N,V)|0,i=(i=i+Math.imul(N,G)|0)+Math.imul(U,V)|0,o=o+Math.imul(U,G)|0,r=r+Math.imul(O,Z)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(R,Z)|0,o=o+Math.imul(R,Y)|0,r=r+Math.imul(I,X)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(M,X)|0,o=o+Math.imul(M,ee)|0,r=r+Math.imul(S,ne)|0,i=(i=i+Math.imul(S,re)|0)+Math.imul(P,ne)|0,o=o+Math.imul(P,re)|0,r=r+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,se)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,se)|0,r=r+Math.imul(w,ce)|0,i=(i=i+Math.imul(w,le)|0)+Math.imul(_,ce)|0,o=o+Math.imul(_,le)|0,r=r+Math.imul(y,de)|0,i=(i=i+Math.imul(y,he)|0)+Math.imul(b,de)|0,o=o+Math.imul(b,he)|0;var Se=(l+(r=r+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;l=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(L,V),i=(i=Math.imul(L,G))+Math.imul(F,V)|0,o=Math.imul(F,G),r=r+Math.imul(N,Z)|0,i=(i=i+Math.imul(N,Y)|0)+Math.imul(U,Z)|0,o=o+Math.imul(U,Y)|0,r=r+Math.imul(O,X)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(R,X)|0,o=o+Math.imul(R,ee)|0,r=r+Math.imul(I,ne)|0,i=(i=i+Math.imul(I,re)|0)+Math.imul(M,ne)|0,o=o+Math.imul(M,re)|0,r=r+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,se)|0)+Math.imul(P,oe)|0,o=o+Math.imul(P,se)|0,r=r+Math.imul(A,ce)|0,i=(i=i+Math.imul(A,le)|0)+Math.imul(k,ce)|0,o=o+Math.imul(k,le)|0,r=r+Math.imul(w,de)|0,i=(i=i+Math.imul(w,he)|0)+Math.imul(_,de)|0,o=o+Math.imul(_,he)|0;var Pe=(l+(r=r+Math.imul(y,pe)|0)|0)+((8191&(i=(i=i+Math.imul(y,me)|0)+Math.imul(b,pe)|0))<<13)|0;l=((o=o+Math.imul(b,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(L,Z),i=(i=Math.imul(L,Y))+Math.imul(F,Z)|0,o=Math.imul(F,Y),r=r+Math.imul(N,X)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(U,X)|0,o=o+Math.imul(U,ee)|0,r=r+Math.imul(O,ne)|0,i=(i=i+Math.imul(O,re)|0)+Math.imul(R,ne)|0,o=o+Math.imul(R,re)|0,r=r+Math.imul(I,oe)|0,i=(i=i+Math.imul(I,se)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,se)|0,r=r+Math.imul(S,ce)|0,i=(i=i+Math.imul(S,le)|0)+Math.imul(P,ce)|0,o=o+Math.imul(P,le)|0,r=r+Math.imul(A,de)|0,i=(i=i+Math.imul(A,he)|0)+Math.imul(k,de)|0,o=o+Math.imul(k,he)|0;var Ce=(l+(r=r+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(_,pe)|0))<<13)|0;l=((o=o+Math.imul(_,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(L,X),i=(i=Math.imul(L,ee))+Math.imul(F,X)|0,o=Math.imul(F,ee),r=r+Math.imul(N,ne)|0,i=(i=i+Math.imul(N,re)|0)+Math.imul(U,ne)|0,o=o+Math.imul(U,re)|0,r=r+Math.imul(O,oe)|0,i=(i=i+Math.imul(O,se)|0)+Math.imul(R,oe)|0,o=o+Math.imul(R,se)|0,r=r+Math.imul(I,ce)|0,i=(i=i+Math.imul(I,le)|0)+Math.imul(M,ce)|0,o=o+Math.imul(M,le)|0,r=r+Math.imul(S,de)|0,i=(i=i+Math.imul(S,he)|0)+Math.imul(P,de)|0,o=o+Math.imul(P,he)|0;var Ie=(l+(r=r+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(k,pe)|0))<<13)|0;l=((o=o+Math.imul(k,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(L,ne),i=(i=Math.imul(L,re))+Math.imul(F,ne)|0,o=Math.imul(F,re),r=r+Math.imul(N,oe)|0,i=(i=i+Math.imul(N,se)|0)+Math.imul(U,oe)|0,o=o+Math.imul(U,se)|0,r=r+Math.imul(O,ce)|0,i=(i=i+Math.imul(O,le)|0)+Math.imul(R,ce)|0,o=o+Math.imul(R,le)|0,r=r+Math.imul(I,de)|0,i=(i=i+Math.imul(I,he)|0)+Math.imul(M,de)|0,o=o+Math.imul(M,he)|0;var Me=(l+(r=r+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,me)|0)+Math.imul(P,pe)|0))<<13)|0;l=((o=o+Math.imul(P,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(L,oe),i=(i=Math.imul(L,se))+Math.imul(F,oe)|0,o=Math.imul(F,se),r=r+Math.imul(N,ce)|0,i=(i=i+Math.imul(N,le)|0)+Math.imul(U,ce)|0,o=o+Math.imul(U,le)|0,r=r+Math.imul(O,de)|0,i=(i=i+Math.imul(O,he)|0)+Math.imul(R,de)|0,o=o+Math.imul(R,he)|0;var Te=(l+(r=r+Math.imul(I,pe)|0)|0)+((8191&(i=(i=i+Math.imul(I,me)|0)+Math.imul(M,pe)|0))<<13)|0;l=((o=o+Math.imul(M,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(L,ce),i=(i=Math.imul(L,le))+Math.imul(F,ce)|0,o=Math.imul(F,le),r=r+Math.imul(N,de)|0,i=(i=i+Math.imul(N,he)|0)+Math.imul(U,de)|0,o=o+Math.imul(U,he)|0;var Oe=(l+(r=r+Math.imul(O,pe)|0)|0)+((8191&(i=(i=i+Math.imul(O,me)|0)+Math.imul(R,pe)|0))<<13)|0;l=((o=o+Math.imul(R,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(L,de),i=(i=Math.imul(L,he))+Math.imul(F,de)|0,o=Math.imul(F,he);var Re=(l+(r=r+Math.imul(N,pe)|0)|0)+((8191&(i=(i=i+Math.imul(N,me)|0)+Math.imul(U,pe)|0))<<13)|0;l=((o=o+Math.imul(U,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863;var Be=(l+(r=Math.imul(L,pe))|0)+((8191&(i=(i=Math.imul(L,me))+Math.imul(F,pe)|0))<<13)|0;return l=((o=Math.imul(F,me))+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,c[0]=ge,c[1]=ye,c[2]=be,c[3]=ve,c[4]=we,c[5]=_e,c[6]=xe,c[7]=Ae,c[8]=ke,c[9]=Ee,c[10]=Se,c[11]=Pe,c[12]=Ce,c[13]=Ie,c[14]=Me,c[15]=Te,c[16]=Oe,c[17]=Re,c[18]=Be,0!==l&&(c[19]=l,n.length++),n};function y(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var s=i;i=0;for(var a=67108863&r,c=Math.min(o,t.length-1),l=Math.max(0,o-e.length+1);l<=c;l++){var u=o-l,d=(0|e.words[u])*(0|t.words[l]),h=67108863&d;a=67108863&(h=h+a|0),i+=(s=(s=s+(d/67108864|0)|0)+(h>>>26)|0)>>>26,s&=67108863}n.words[o]=a,r=s,s=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function b(e,t,n){return y(e,t,n)}function v(e,t){this.x=e,this.y=t}Math.imul||(g=m),o.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?g(this,e,t):n<63?m(this,e,t):n<1024?y(this,e,t):b(this,e,t)},v.prototype.makeRBT=function(e){for(var t=new Array(e),n=o.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},v.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var r=0,i=0;i<t;i++)r|=(1&e)<<t-i-1,e>>=1;return r},v.prototype.permute=function(e,t,n,r,i,o){for(var s=0;s<o;s++)r[s]=t[e[s]],i[s]=n[e[s]]},v.prototype.transform=function(e,t,n,r,i,o){this.permute(o,e,t,n,r,i);for(var s=1;s<i;s<<=1)for(var a=s<<1,c=Math.cos(2*Math.PI/a),l=Math.sin(2*Math.PI/a),u=0;u<i;u+=a)for(var d=c,h=l,f=0;f<s;f++){var p=n[u+f],m=r[u+f],g=n[u+f+s],y=r[u+f+s],b=d*g-h*y;y=d*y+h*g,g=b,n[u+f]=p+g,r[u+f]=m+y,n[u+f+s]=p-g,r[u+f+s]=m-y,f!==a&&(b=c*d-l*h,h=c*h+l*d,d=b)}},v.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},v.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=e[r];e[r]=e[n-r-1],e[n-r-1]=i,i=t[r],t[r]=-t[n-r-1],t[n-r-1]=-i}},v.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var i=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+n;e[r]=67108863&i,n=i<67108864?0:i/67108864|0}return e},v.prototype.convert13b=function(e,t,n,i){for(var o=0,s=0;s<t;s++)o+=0|e[s],n[2*s]=8191&o,o>>>=13,n[2*s+1]=8191&o,o>>>=13;for(s=2*t;s<i;++s)n[s]=0;r(0===o),r(0===(-8192&o))},v.prototype.stub=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=0;return t},v.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(r),o=this.stub(r),s=new Array(r),a=new Array(r),c=new Array(r),l=new Array(r),u=new Array(r),d=new Array(r),h=n.words;h.length=r,this.convert13b(e.words,e.length,s,r),this.convert13b(t.words,t.length,l,r),this.transform(s,o,a,c,r,i),this.transform(l,o,u,d,r,i);for(var f=0;f<r;f++){var p=a[f]*u[f]-c[f]*d[f];c[f]=a[f]*d[f]+c[f]*u[f],a[f]=p}return this.conjugate(a,c,r),this.transform(a,c,h,o,r,i),this.conjugate(h,o,r),this.normalize13b(h,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n._strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),b(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){var t=e<0;t&&(e=-e),r("number"===typeof e),r(e<67108864);for(var n=0,i=0;i<this.length;i++){var o=(0|this.words[i])*e,s=(67108863&o)+(67108863&n);n>>=26,n+=o/67108864|0,n+=s>>>26,this.words[i]=67108863&s}return 0!==n&&(this.words[i]=n,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=e.words[r]>>>i&1}return t}(e);if(0===t.length)return new o(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var i=n.sqr();r<t.length;r++,i=i.sqr())0!==t[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(e){r("number"===typeof e&&e>=0);var t,n=e%26,i=(e-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var s=0;for(t=0;t<this.length;t++){var a=this.words[t]&o,c=(0|this.words[t])-a<<n;this.words[t]=c|s,s=a>>>26-n}s&&(this.words[t]=s,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this._strip()},o.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,n){var i;r("number"===typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,s=Math.min((e-o)/26,this.length),a=67108863^67108863>>>o<<o,c=n;if(i-=s,i=Math.max(0,i),c){for(var l=0;l<s;l++)c.words[l]=this.words[l];c.length=s}if(0===s);else if(this.length>s)for(this.length-=s,l=0;l<this.length;l++)this.words[l]=this.words[l+s];else this.words[0]=0,this.length=1;var u=0;for(l=this.length-1;l>=0&&(0!==u||l>=i);l--){var d=0|this.words[l];this.words[l]=u<<26-o|d>>>o,u=d&a}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){r("number"===typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<<t;return!(this.length<=n)&&!!(this.words[n]&i)},o.prototype.imaskn=function(e){r("number"===typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this._strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return r("number"===typeof e),r(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(r("number"===typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,n){var i,o,s=e.length+n;this._expand(s);var a=0;for(i=0;i<e.length;i++){o=(0|this.words[i+n])+a;var c=(0|e.words[i])*t;a=((o-=67108863&c)>>26)-(c/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)a=(o=(0|this.words[i+n])+a)>>26,this.words[i+n]=67108863&o;if(0===a)return this._strip();for(r(-1===a),a=0,i=0;i<this.length;i++)a=(o=-(0|this.words[i])+a)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,s=0|i.words[i.length-1];0!==(n=26-this._countBits(s))&&(i=i.ushln(n),r.iushln(n),s=0|i.words[i.length-1]);var a,c=r.length-i.length;if("mod"!==t){(a=new o(null)).length=c+1,a.words=new Array(a.length);for(var l=0;l<a.length;l++)a.words[l]=0}var u=r.clone()._ishlnsubmul(i,1,c);0===u.negative&&(r=u,a&&(a.words[c]=1));for(var d=c-1;d>=0;d--){var h=67108864*(0|r.words[i.length+d])+(0|r.words[i.length+d-1]);for(h=Math.min(h/s|0,67108863),r._ishlnsubmul(i,h,d);0!==r.negative;)h--,r.negative=0,r._ishlnsubmul(i,1,d),r.isZero()||(r.negative^=1);a&&(a.words[d]=h)}return a&&a._strip(),r._strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:a||null,mod:r}},o.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(i=a.div.neg()),"div"!==t&&(s=a.mod.neg(),n&&0!==s.negative&&s.iadd(e)),{div:i,mod:s}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(i=a.div.neg()),{div:i,mod:a.mod}):0!==(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(s=a.mod.neg(),n&&0!==s.negative&&s.isub(e)),{div:a.div,mod:s}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t);var i,s,a},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(n*i+(0|this.words[o]))%e;return t?-i:i},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*n;this.words[i]=o/e|0,n=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),s=new o(0),a=new o(0),c=new o(1),l=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++l;for(var u=n.clone(),d=t.clone();!t.isZero();){for(var h=0,f=1;0===(t.words[0]&f)&&h<26;++h,f<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(u),s.isub(d)),i.iushrn(1),s.iushrn(1);for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(a.isOdd()||c.isOdd())&&(a.iadd(u),c.isub(d)),a.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(a),s.isub(c)):(n.isub(t),a.isub(i),c.isub(s))}return{a:a,b:c,gcd:n.iushln(l)}},o.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,s=new o(1),a=new o(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,u=1;0===(t.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(t.iushrn(l);l-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);for(var d=0,h=1;0===(n.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(n.iushrn(d);d-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);t.cmp(n)>=0?(t.isub(n),s.isub(a)):(n.isub(t),a.isub(s))}return(i=0===t.cmpn(1)?s:a).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){r("number"===typeof e);var t=e%26,n=(e-t)/26,i=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,s=n;0!==o&&s<this.length;s++){var a=0|this.words[s];o=(a+=o)>>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){r<i?t=-1:r>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new S(e)},o.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function _(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"===typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function P(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}_.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},_.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},_.prototype.split=function(e,t){e.iushrn(this.n,0,t)},_.prototype.imulK=function(e){return e.imul(this.k)},i(x,_),x.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i<r;i++)t.words[i]=e.words[i];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(t.words[t.length++]=o&n,i=10;i<e.length;i++){var s=0|e.words[i];e.words[i-10]=(s&n)<<4|o>>>22,o=s}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},x.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(A,_),i(k,_),i(E,_),E.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,i=67108863&r;r>>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(w[e])return w[e];var t;if("k256"===e)t=new x;else if("p224"===e)t=new A;else if("p192"===e)t=new k;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new E}return w[e]=t,t},S.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){r(0===(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},S.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(u(e,e.umod(this.m)._forceRed(this)),e)},S.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},S.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},S.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},S.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},S.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},S.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},S.prototype.isqr=function(e){return this.imul(e,e.clone())},S.prototype.sqr=function(e){return this.mul(e,e)},S.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2===1),3===t){var n=this.m.add(new o(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);r(!i.isZero());var a=new o(1).toRed(this),c=a.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var d=this.pow(u,i),h=this.pow(e,i.addn(1).iushrn(1)),f=this.pow(e,i),p=s;0!==f.cmp(a);){for(var m=f,g=0;0!==m.cmp(a);g++)m=m.redSqr();r(g<p);var y=this.pow(d,new o(1).iushln(p-g-1));h=h.redMul(y),d=y.redSqr(),f=f.redMul(d),p=g}return h},S.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},S.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new o(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var i=n[0],s=0,a=0,c=t.bitLength()%26;for(0===c&&(c=26),r=t.length-1;r>=0;r--){for(var l=t.words[r],u=c-1;u>=0;u--){var d=l>>u&1;i!==n[0]&&(i=this.sqr(i)),0!==d||0!==s?(s<<=1,s|=d,(4===++a||0===r&&0===u)&&(i=this.mul(i,n[s]),a=0,s=0)):a=0}c=26}return i},S.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},S.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new P(e)},i(P,S),P.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},P.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},P.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},P.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},P.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=n.nmd(e),this)},8299:(e,t,n)=>{"use strict";const r=n(8116);e.exports=(e,t,n)=>0!==r(e,t,n)},8322:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.aes256cbc=t.aes256gcm=void 0;var r=n(2338);t.aes256gcm=function(e,t,n){return(0,r.gcm)(e,t,n)};t.aes256cbc=function(e,t,n){return(0,r.cbc)(e,t)}},8379:()=>{},8445:(e,t,n)=>{"use strict";n.d(t,{J9:()=>o,Mc:()=>i,fD:()=>r});const r={1:"An `assert` condition failed.",17:"Arithmetic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},i={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},o={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"}},8512:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(7545);function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function o(){o=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,o){var s=RegExp(e,r);return t.set(s,o||t.get(e)),i(s,n.prototype)}function s(e,n){var r=t.get(n);return Object.keys(r).reduce(function(t,n){var i=r[n];if("number"==typeof i)t[n]=e[i];else{for(var o=0;void 0===e[i[o]]&&o+1<i.length;)o++;t[n]=e[i[o]]}return t},Object.create(null))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=s(n,this);var r=n.indices;r&&(r.groups=s(r,this))}return n},n.prototype[Symbol.replace]=function(n,i){if("string"==typeof i){var o=t.get(this);return e[Symbol.replace].call(this,n,i.replace(/\$<([^>]+)(>|$)/g,function(e,t,n){if(""===n)return e;var r=o[t];return Array.isArray(r)?"$"+r.join("$"):"number"==typeof r?"$"+r:""}))}if("function"==typeof i){var a=this;return e[Symbol.replace].call(this,n,function(){var e=arguments;return"object"!=(0,r.A)(e[e.length-1])&&(e=[].slice.call(e)).push(s(e,a)),i.apply(this,e)})}return e[Symbol.replace].call(this,n,i)},o.apply(this,arguments)}},8551:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(e,t,n)=>JSON.stringify(e,(e,n)=>{const r="bigint"===typeof n?n.toString():n;return"function"===typeof t?t(e,r):r},n)},8599:(e,t,n)=>{"use strict";function r(e,t){let n=e.toString();const r=n.startsWith("-");r&&(n=n.slice(1)),n=n.padStart(t,"0");let[i,o]=[n.slice(0,n.length-t),n.slice(n.length-t)];return o=o.replace(/(0+)$/,""),"".concat(r?"-":"").concat(i||"0").concat(o?".".concat(o):"")}n.d(t,{J:()=>r})},8632:(e,t,n)=>{"use strict";function r(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})}function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}n.r(t),n.d(t,{Centrifuge:()=>$,State:()=>P,Subscription:()=>R,SubscriptionState:()=>C,UnauthorizedError:()=>K,connectingCodes:()=>x,disconnectedCodes:()=>A,errorCodes:()=>_,subscribingCodes:()=>k,subscriptionFlags:()=>S,unsubscribedCodes:()=>E}),"function"===typeof SuppressedError&&SuppressedError;var o,s={exports:{}},a="object"===typeof Reflect?Reflect:null,c=a&&"function"===typeof a.apply?a.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};o=a&&"function"===typeof a.ownKeys?a.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var l=Number.isNaN||function(e){return e!==e};function u(){u.init.call(this)}s.exports=u,s.exports.once=function(e,t){return new Promise(function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"===typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}w(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"===typeof e.on&&w(e,"error",t,n)}(e,i,{once:!0})})},u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0;var d=10;function h(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function f(e){return void 0===e._maxListeners?u.defaultMaxListeners:e._maxListeners}function p(e,t,n,r){var i,o,s,a;if(h(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"===typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=f(e))>0&&s.length>i&&!s.warned){s.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=s.length,a=c,console&&console.warn&&console.warn(a)}return e}function m(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function g(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=m.bind(r);return i.listener=n,r.wrapFn=i,i}function y(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"===typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):v(i,i.length)}function b(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"===typeof n)return 1;if(void 0!==n)return n.length}return 0}function v(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function w(e,t,n,r){if("function"===typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!==typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function i(o){r.once&&e.removeEventListener(t,i),n(o)})}}Object.defineProperty(u,"defaultMaxListeners",{enumerable:!0,get:function(){return d},set:function(e){if("number"!==typeof e||e<0||l(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");d=e}}),u.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},u.prototype.setMaxListeners=function(e){if("number"!==typeof e||e<0||l(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},u.prototype.getMaxListeners=function(){return f(this)},u.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var a=i[e];if(void 0===a)return!1;if("function"===typeof a)c(a,this,t);else{var l=a.length,u=v(a,l);for(n=0;n<l;++n)c(u[n],this,t)}return!0},u.prototype.addListener=function(e,t){return p(this,e,t,!1)},u.prototype.on=u.prototype.addListener,u.prototype.prependListener=function(e,t){return p(this,e,t,!0)},u.prototype.once=function(e,t){return h(t),this.on(e,g(this,e,t)),this},u.prototype.prependOnceListener=function(e,t){return h(t),this.prependListener(e,g(this,e,t)),this},u.prototype.removeListener=function(e,t){var n,r,i,o,s;if(h(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!==typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},u.prototype.off=u.prototype.removeListener,u.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"===typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},u.prototype.listeners=function(e){return y(this,e,!0)},u.prototype.rawListeners=function(e){return y(this,e,!1)},u.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):b.call(e,t)},u.prototype.listenerCount=b,u.prototype.eventNames=function(){return this._eventsCount>0?o(this._events):[]};var _,x,A,k,E,S,P,C,I=i(s.exports);function M(e){return void 0!==e&&null!==e&&"function"===typeof e}function T(e,t,n){e>31&&(e=31);const r=function(e,t){return Math.floor(Math.random()*(t-e+1)+e)}(0,Math.min(n,t*Math.pow(2,e)));return Math.min(n,t+r)}function O(e){return Math.min(1e3*e,2147483647)}!function(e){e[e.timeout=1]="timeout",e[e.transportClosed=2]="transportClosed",e[e.clientDisconnected=3]="clientDisconnected",e[e.clientClosed=4]="clientClosed",e[e.clientConnectToken=5]="clientConnectToken",e[e.clientRefreshToken=6]="clientRefreshToken",e[e.subscriptionUnsubscribed=7]="subscriptionUnsubscribed",e[e.subscriptionSubscribeToken=8]="subscriptionSubscribeToken",e[e.subscriptionRefreshToken=9]="subscriptionRefreshToken",e[e.transportWriteError=10]="transportWriteError",e[e.connectionClosed=11]="connectionClosed",e[e.badConfiguration=12]="badConfiguration"}(_||(_={})),function(e){e[e.connectCalled=0]="connectCalled",e[e.transportClosed=1]="transportClosed",e[e.noPing=2]="noPing",e[e.subscribeTimeout=3]="subscribeTimeout",e[e.unsubscribeError=4]="unsubscribeError"}(x||(x={})),function(e){e[e.disconnectCalled=0]="disconnectCalled",e[e.unauthorized=1]="unauthorized",e[e.badProtocol=2]="badProtocol",e[e.messageSizeLimit=3]="messageSizeLimit"}(A||(A={})),function(e){e[e.subscribeCalled=0]="subscribeCalled",e[e.transportClosed=1]="transportClosed"}(k||(k={})),function(e){e[e.unsubscribeCalled=0]="unsubscribeCalled",e[e.unauthorized=1]="unauthorized",e[e.clientClosed=2]="clientClosed"}(E||(E={})),function(e){e[e.channelCompaction=1]="channelCompaction"}(S||(S={})),function(e){e.Disconnected="disconnected",e.Connecting="connecting",e.Connected="connected"}(P||(P={})),function(e){e.Unsubscribed="unsubscribed",e.Subscribing="subscribing",e.Subscribed="subscribed"}(C||(C={}));class R extends I{constructor(e,t,n){super(),this._resubscribeTimeout=null,this._refreshTimeout=null,this.channel=t,this.state=C.Unsubscribed,this._centrifuge=e,this._token="",this._getToken=null,this._data=null,this._getData=null,this._recover=!1,this._offset=null,this._epoch=null,this._id=0,this._recoverable=!1,this._positioned=!1,this._joinLeave=!1,this._minResubscribeDelay=500,this._maxResubscribeDelay=2e4,this._resubscribeTimeout=null,this._resubscribeAttempts=0,this._promises={},this._promiseId=0,this._inflight=!1,this._refreshTimeout=null,this._delta="",this._delta_negotiated=!1,this._tagsFilter=null,this._prevValue=null,this._unsubPromise=Promise.resolve(),this._setOptions(n),this._centrifuge._debugEnabled?(this.on("state",e=>{this._debug("subscription state",t,e.oldState,"->",e.newState)}),this.on("error",e=>{this._debug("subscription error",t,e)})):this.on("error",function(){Function.prototype()})}ready(e){return this.state===C.Unsubscribed?Promise.reject({code:_.subscriptionUnsubscribed,message:this.state}):this.state===C.Subscribed?Promise.resolve():new Promise((t,n)=>{const r={resolve:t,reject:n};e&&(r.timeout=setTimeout(function(){n({code:_.timeout,message:"timeout"})},e)),this._promises[this._nextPromiseId()]=r})}subscribe(){this._isSubscribed()||(this._resubscribeAttempts=0,this._setSubscribing(k.subscribeCalled,"subscribe called"))}unsubscribe(){this._unsubPromise=this._setUnsubscribed(E.unsubscribeCalled,"unsubscribe called",!0)}publish(e){return r(this,void 0,void 0,function*(){return yield this._methodCall(),this._centrifuge.publish(this.channel,e)})}presence(){return r(this,void 0,void 0,function*(){return yield this._methodCall(),this._centrifuge.presence(this.channel)})}presenceStats(){return r(this,void 0,void 0,function*(){return yield this._methodCall(),this._centrifuge.presenceStats(this.channel)})}history(e){return r(this,void 0,void 0,function*(){return yield this._methodCall(),this._centrifuge.history(this.channel,e)})}setTagsFilter(e){if(e&&this._delta)throw new Error("cannot use delta and tagsFilter together");this._tagsFilter=e}setData(e){this._data=e}_methodCall(){return this._isSubscribed()?Promise.resolve():this._isUnsubscribed()?Promise.reject({code:_.subscriptionUnsubscribed,message:this.state}):new Promise((e,t)=>{const n=this._centrifuge._config.timeout,r=setTimeout(()=>{t({code:_.timeout,message:"timeout"})},n);this._promises[this._nextPromiseId()]={timeout:r,resolve:e,reject:t}})}_nextPromiseId(){return++this._promiseId}_needRecover(){return!0===this._recover}_isUnsubscribed(){return this.state===C.Unsubscribed}_isSubscribing(){return this.state===C.Subscribing}_isSubscribed(){return this.state===C.Subscribed}_setState(e){if(this.state!==e){const t=this.state;return this.state=e,this.emit("state",{newState:e,oldState:t,channel:this.channel}),!0}return!1}_usesToken(){return""!==this._token||null!==this._getToken}_clearSubscribingState(){this._resubscribeAttempts=0,this._clearResubscribeTimeout()}_clearSubscribedState(){this._clearRefreshTimeout()}_setSubscribed(e){if(!this._isSubscribing())return;this._clearSubscribingState(),e.id&&(this._id=e.id),e.recoverable&&(this._recover=!0,this._offset=e.offset||0,this._epoch=e.epoch||""),e.delta?this._delta_negotiated=!0:this._delta_negotiated=!1,this._setState(C.Subscribed);const t=this._centrifuge._getSubscribeContext(this.channel,e);this.emit("subscribed",t),this._resolvePromises();const n=e.publications;if(n&&n.length>0)for(const r in n)n.hasOwnProperty(r)&&this._handlePublication(n[r]);!0===e.expires&&(this._refreshTimeout=setTimeout(()=>this._refresh(),O(e.ttl)))}_setSubscribing(e,t){return r(this,void 0,void 0,function*(){this._isSubscribing()||(this._isSubscribed()&&this._clearSubscribedState(),this._setState(C.Subscribing)&&this.emit("subscribing",{channel:this.channel,code:e,reason:t}),this._centrifuge._transport&&this._centrifuge._transport.emulation()&&(yield this._unsubPromise),this._isSubscribing()&&this._subscribe())})}_subscribe(){return this._debug("subscribing on",this.channel),this._isTransportOpen()?this._inflight?null:(this._inflight=!0,this._canSubscribeWithoutGettingToken()?this._subscribeWithoutToken():(this._getSubscriptionToken().then(e=>this._handleTokenResponse(e)).catch(e=>this._handleTokenError(e)),null)):(this._debug("delay subscribe on",this.channel,"till connected"),null)}_isTransportOpen(){return this._centrifuge._transportIsOpen}_canSubscribeWithoutGettingToken(){return!this._usesToken()||!!this._token}_subscribeWithoutToken(){return this._getData?(this._getDataAndSubscribe(this._token),null):this._sendSubscribe(this._token)}_getDataAndSubscribe(e){this._getData?this._getData({channel:this.channel}).then(t=>{this._isSubscribing()?(this._data=t,this._sendSubscribe(e)):this._inflight=!1}).catch(e=>this._handleGetDataError(e)):this._inflight=!1}_handleGetDataError(e){if(this._isSubscribing()){if(e instanceof K)return this._inflight=!1,void this._failUnauthorized();this.emit("error",{type:"subscribeData",channel:this.channel,error:{code:_.badConfiguration,message:(null===e||void 0===e?void 0:e.toString())||""}}),this._inflight=!1,this._scheduleResubscribe()}else this._inflight=!1}_handleTokenResponse(e){if(this._isSubscribing()){if(!e)return this._inflight=!1,void this._failUnauthorized();this._token=e,this._getData?this._getDataAndSubscribe(e):this._sendSubscribe(e)}else this._inflight=!1}_handleTokenError(e){if(this._isSubscribing()){if(e instanceof K)return this._inflight=!1,void this._failUnauthorized();this.emit("error",{type:"subscribeToken",channel:this.channel,error:{code:_.subscriptionSubscribeToken,message:(null===e||void 0===e?void 0:e.toString())||""}}),this._inflight=!1,this._scheduleResubscribe()}else this._inflight=!1}_sendSubscribe(e){if(!this._isTransportOpen())return this._inflight=!1,null;const t=this._buildSubscribeCommand(e);return this._centrifuge._call(t).then(e=>{this._inflight=!1;const t=e.reply.subscribe;this._handleSubscribeResponse(t),e.next&&e.next()},e=>{this._inflight=!1,this._handleSubscribeError(e.error),e.next&&e.next()}),t}_buildSubscribeCommand(e){const t={channel:this.channel};if(e&&(t.token=e),this._data&&(t.data=this._data),this._positioned&&(t.positioned=!0),this._recoverable&&(t.recoverable=!0),this._joinLeave&&(t.join_leave=!0),t.flag=S.channelCompaction,this._needRecover()){t.recover=!0;const e=this._getOffset();e&&(t.offset=e);const n=this._getEpoch();n&&(t.epoch=n)}return this._delta&&(t.delta=this._delta),this._tagsFilter&&(t.tf=this._tagsFilter),{subscribe:t}}_debug(){this._centrifuge._debug(...arguments)}_handleSubscribeError(e){this._isSubscribing()&&(e.code!==_.timeout?this._subscribeError(e):this._centrifuge._disconnect(x.subscribeTimeout,"subscribe timeout",!0))}_handleSubscribeResponse(e){this._isSubscribing()&&this._setSubscribed(e)}_setUnsubscribed(e,t,n){if(this._isUnsubscribed())return Promise.resolve();let r=Promise.resolve();return this._isSubscribed()?(n&&(r=this._centrifuge._unsubscribe(this)),this._clearSubscribedState()):this._isSubscribing()&&(this._inflight&&n&&(r=this._centrifuge._unsubscribe(this)),this._clearSubscribingState()),this._inflight=!1,this._setState(C.Unsubscribed)&&this.emit("unsubscribed",{channel:this.channel,code:e,reason:t}),this._rejectPromises({code:_.subscriptionUnsubscribed,message:this.state}),r}_handlePublication(e){if(this._delta&&this._delta_negotiated){const{newData:t,newPrevValue:n}=this._centrifuge._codec.applyDeltaIfNeeded(e,this._prevValue);e.data=t,this._prevValue=n}const t=this._centrifuge._getPublicationContext(this.channel,e);this.emit("publication",t),e.offset&&(this._offset=e.offset)}_handleJoin(e){const t=this._centrifuge._getJoinLeaveContext(e.info);this.emit("join",{channel:this.channel,info:t})}_handleLeave(e){const t=this._centrifuge._getJoinLeaveContext(e.info);this.emit("leave",{channel:this.channel,info:t})}_resolvePromises(){for(const e in this._promises)this._promises.hasOwnProperty(e)&&(this._promises[e].timeout&&clearTimeout(this._promises[e].timeout),this._promises[e].resolve(),delete this._promises[e])}_rejectPromises(e){for(const t in this._promises)this._promises.hasOwnProperty(t)&&(this._promises[t].timeout&&clearTimeout(this._promises[t].timeout),this._promises[t].reject(e),delete this._promises[t])}_scheduleResubscribe(){if(!this._isSubscribing())return void this._debug("not in subscribing state, skip resubscribe scheduling",this.channel);const e=this,t=this._getResubscribeDelay();this._resubscribeTimeout=setTimeout(function(){e._isSubscribing()&&e._subscribe()},t),this._debug("resubscribe scheduled after "+t,this.channel)}_subscribeError(e){if(this._isSubscribing())if(e.code<100||109===e.code||!0===e.temporary){109===e.code&&(this._token="");const t={channel:this.channel,type:"subscribe",error:e};this._centrifuge.state===P.Connected&&this.emit("error",t),this._scheduleResubscribe()}else this._setUnsubscribed(e.code,e.message,!1)}_getResubscribeDelay(){const e=T(this._resubscribeAttempts,this._minResubscribeDelay,this._maxResubscribeDelay);return this._resubscribeAttempts++,e}_setOptions(e){if(e){if(e.since&&(this._offset=e.since.offset||0,this._epoch=e.since.epoch||"",this._recover=!0),e.data&&(this._data=e.data),e.getData&&(this._getData=e.getData),void 0!==e.minResubscribeDelay&&(this._minResubscribeDelay=e.minResubscribeDelay),void 0!==e.maxResubscribeDelay&&(this._maxResubscribeDelay=e.maxResubscribeDelay),e.token&&(this._token=e.token),e.getToken&&(this._getToken=e.getToken),!0===e.positioned&&(this._positioned=!0),!0===e.recoverable&&(this._recoverable=!0),!0===e.joinLeave&&(this._joinLeave=!0),e.delta){if("fossil"!==e.delta)throw new Error("unsupported delta format");this._delta=e.delta}if(e.tagsFilter&&(this._tagsFilter=e.tagsFilter),this._tagsFilter&&this._delta)throw new Error("cannot use delta and tagsFilter together")}}_getOffset(){const e=this._offset;return null!==e?e:0}_getEpoch(){const e=this._epoch;return null!==e?e:""}_clearRefreshTimeout(){null!==this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null)}_clearResubscribeTimeout(){null!==this._resubscribeTimeout&&(clearTimeout(this._resubscribeTimeout),this._resubscribeTimeout=null)}_getSubscriptionToken(){this._debug("get subscription token for channel",this.channel);const e={channel:this.channel},t=this._getToken;return null===t?(this.emit("error",{type:"configuration",channel:this.channel,error:{code:_.badConfiguration,message:"provide a function to get channel subscription token"}}),Promise.reject(new K(""))):t(e)}_refresh(){this._clearRefreshTimeout();const e=this;this._getSubscriptionToken().then(function(t){if(!e._isSubscribed())return;if(!t)return void e._failUnauthorized();e._token=t;const n={sub_refresh:{channel:e.channel,token:t}};e._centrifuge._call(n).then(t=>{const n=t.reply.sub_refresh;e._refreshResponse(n),t.next&&t.next()},t=>{e._refreshError(t.error),t.next&&t.next()})}).catch(function(t){t instanceof K?e._failUnauthorized():(e.emit("error",{type:"refreshToken",channel:e.channel,error:{code:_.subscriptionRefreshToken,message:void 0!==t?t.toString():""}}),e._refreshTimeout=setTimeout(()=>e._refresh(),e._getRefreshRetryDelay()))})}_refreshResponse(e){this._isSubscribed()&&(this._debug("subscription token refreshed, channel",this.channel),this._clearRefreshTimeout(),!0===e.expires&&(this._refreshTimeout=setTimeout(()=>this._refresh(),O(e.ttl))))}_refreshError(e){this._isSubscribed()&&(e.code<100||!0===e.temporary?(this.emit("error",{type:"refresh",channel:this.channel,error:e}),this._refreshTimeout=setTimeout(()=>this._refresh(),this._getRefreshRetryDelay())):this._setUnsubscribed(e.code,e.message,!0))}_getRefreshRetryDelay(){return T(0,1e4,2e4)}_failUnauthorized(){this._setUnsubscribed(E.unauthorized,"unauthorized",!0)}}class B{constructor(e,t){this.endpoint=e,this.options=t,this._transport=null}name(){return"sockjs"}subName(){return"sockjs-"+this._transport.transport}emulation(){return!1}supported(){return null!==this.options.sockjs}initialize(e,t){this._transport=new this.options.sockjs(this.endpoint,null,this.options.sockjsOptions),this._transport.onopen=()=>{t.onOpen()},this._transport.onerror=e=>{t.onError(e)},this._transport.onclose=e=>{t.onClose(e)},this._transport.onmessage=e=>{t.onMessage(e.data)}}close(){this._transport.close()}send(e){this._transport.send(e)}}class N{constructor(e,t){this.endpoint=e,this.options=t,this._transport=null}name(){return"websocket"}subName(){return"websocket"}emulation(){return!1}supported(){return void 0!==this.options.websocket&&null!==this.options.websocket}initialize(e,t){let n="";"protobuf"===e&&(n="centrifuge-protobuf"),this._transport=""!==n?new this.options.websocket(this.endpoint,n):new this.options.websocket(this.endpoint),"protobuf"===e&&(this._transport.binaryType="arraybuffer"),this._transport.onopen=()=>{t.onOpen()},this._transport.onerror=e=>{t.onError(e)},this._transport.onclose=e=>{t.onClose(e)},this._transport.onmessage=e=>{t.onMessage(e.data)}}close(){this._transport.close()}send(e){this._transport.send(e)}}class U{constructor(e,t){this.endpoint=e,this.options=t,this._abortController=null,this._utf8decoder=new TextDecoder,this._protocol="json"}name(){return"http_stream"}subName(){return"http_stream"}emulation(){return!0}_handleErrors(e){if(!e.ok)throw new Error(e.status);return e}_fetchEventTarget(e,t,n){const r=new EventTarget;return(0,e.options.fetch)(t,n).then(e._handleErrors).then(t=>{r.dispatchEvent(new Event("open"));let n="",i=0,o=new Uint8Array;const s=t.body.getReader();return new e.options.readableStream({start:t=>function a(){return s.read().then(s=>{let{done:c,value:l}=s;if(c)return r.dispatchEvent(new Event("close")),void t.close();try{if("json"===e._protocol)for(n+=e._utf8decoder.decode(l);i<n.length;)if("\n"===n[i]){const e=n.substring(0,i);r.dispatchEvent(new MessageEvent("message",{data:e})),n=n.substring(i+1),i=0}else++i;else{const t=new Uint8Array(o.length+l.length);for(t.set(o),t.set(l,o.length),o=t;;){const t=e.options.decoder.decodeReply(o);if(t.ok){const e=o.slice(0,t.pos);r.dispatchEvent(new MessageEvent("message",{data:e})),o=o.slice(t.pos);continue}break}}}catch(u){return r.dispatchEvent(new Event("error",{detail:u})),r.dispatchEvent(new Event("close")),void t.close()}a()}).catch(function(e){r.dispatchEvent(new Event("error",{detail:e})),r.dispatchEvent(new Event("close")),t.close()})}()})}).catch(e=>{r.dispatchEvent(new Event("error",{detail:e})),r.dispatchEvent(new Event("close"))}),r}supported(){return null!==this.options.fetch&&null!==this.options.readableStream&&"undefined"!==typeof TextDecoder&&"undefined"!==typeof AbortController&&"undefined"!==typeof EventTarget&&"undefined"!==typeof Event&&"undefined"!==typeof MessageEvent&&"undefined"!==typeof Error}initialize(e,t,n){let r,i;this._protocol=e,this._abortController=new AbortController,"json"===e?(r={Accept:"application/json","Content-Type":"application/json"},i=n):(r={Accept:"application/octet-stream","Content-Type":"application/octet-stream"},i=n);const o={method:"POST",headers:r,body:i,mode:"cors",credentials:"same-origin",signal:this._abortController.signal},s=this._fetchEventTarget(this,this.endpoint,o);s.addEventListener("open",()=>{t.onOpen()}),s.addEventListener("error",e=>{this._abortController.abort(),t.onError(e)}),s.addEventListener("close",()=>{this._abortController.abort(),t.onClose({code:4,reason:"connection closed"})}),s.addEventListener("message",e=>{t.onMessage(e.data)})}close(){this._abortController.abort()}send(e,t,n){let r,i;const o={session:t,node:n,data:e};"json"===this._protocol?(r={"Content-Type":"application/json"},i=JSON.stringify(o)):(r={"Content-Type":"application/octet-stream"},i=this.options.encoder.encodeEmulationRequest(o));const s={method:"POST",headers:r,body:i,mode:"cors",credentials:"same-origin"};(0,this.options.fetch)(this.options.emulationEndpoint,s)}}class j{constructor(e,t){this.endpoint=e,this.options=t,this._protocol="json",this._transport=null,this._onClose=null}name(){return"sse"}subName(){return"sse"}emulation(){return!0}supported(){return null!==this.options.eventsource&&null!==this.options.fetch}initialize(e,t,n){let r;r=globalThis&&globalThis.document&&globalThis.document.baseURI?new URL(this.endpoint,globalThis.document.baseURI):new URL(this.endpoint),r.searchParams.append("cf_connect",n);const i=new this.options.eventsource(r.toString(),{});this._transport=i;i.onopen=function(){t.onOpen()},i.onerror=function(e){i.close(),t.onError(e),t.onClose({code:4,reason:"connection closed"})},i.onmessage=function(e){t.onMessage(e.data)},this._onClose=function(){t.onClose({code:4,reason:"connection closed"})}}close(){this._transport.close(),null!==this._onClose&&this._onClose()}send(e,t,n){const r={session:t,node:n,data:e},i={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r),mode:"cors",credentials:"same-origin"};(0,this.options.fetch)(this.options.emulationEndpoint,i)}}class L{constructor(e,t){this.endpoint=e,this.options=t,this._transport=null,this._stream=null,this._writer=null,this._utf8decoder=new TextDecoder,this._protocol="json"}name(){return"webtransport"}subName(){return"webtransport"}emulation(){return!1}supported(){return void 0!==this.options.webtransport&&null!==this.options.webtransport}initialize(e,t){return r(this,void 0,void 0,function*(){let n;n=globalThis&&globalThis.document&&globalThis.document.baseURI?new URL(this.endpoint,globalThis.document.baseURI):new URL(this.endpoint),"protobuf"===e&&n.searchParams.append("cf_protocol","protobuf"),this._protocol=e;const r=new EventTarget;this._transport=new this.options.webtransport(n.toString()),this._transport.closed.then(()=>{t.onClose({code:4,reason:"connection closed"})}).catch(()=>{t.onClose({code:4,reason:"connection closed"})});try{yield this._transport.ready}catch(o){return void this.close()}let i;try{i=yield this._transport.createBidirectionalStream()}catch(s){return void this.close()}this._stream=i,this._writer=this._stream.writable.getWriter(),r.addEventListener("close",()=>{t.onClose({code:4,reason:"connection closed"})}),r.addEventListener("message",e=>{t.onMessage(e.data)}),this._startReading(r),t.onOpen()})}_startReading(e){return r(this,void 0,void 0,function*(){const t=this._stream.readable.getReader();let n="",r=0,i=new Uint8Array;try{for(;;){const{done:o,value:s}=yield t.read();if(s.length>0)if("json"===this._protocol)for(n+=this._utf8decoder.decode(s);r<n.length;)if("\n"===n[r]){const t=n.substring(0,r);e.dispatchEvent(new MessageEvent("message",{data:t})),n=n.substring(r+1),r=0}else++r;else{const t=new Uint8Array(i.length+s.length);for(t.set(i),t.set(s,i.length),i=t;;){const t=this.options.decoder.decodeReply(i);if(t.ok){const n=i.slice(0,t.pos);e.dispatchEvent(new MessageEvent("message",{data:n})),i=i.slice(t.pos);continue}break}}if(o)break}}catch(o){e.dispatchEvent(new Event("close"))}})}close(){return r(this,void 0,void 0,function*(){try{this._writer&&(yield this._writer.close()),this._transport.close()}catch(e){}})}send(e){return r(this,void 0,void 0,function*(){let t;t="json"===this._protocol?(new TextEncoder).encode(e+"\n"):e;try{yield this._writer.write(t)}catch(n){this.close()}})}}const F=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,-1,-1,-1,-1,36,-1,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,-1,-1,-1,63,-1];class D{constructor(e){this.a=e,this.pos=0}haveBytes(){return this.pos<this.a.length}getByte(){const e=this.a[this.pos];if(this.pos++,this.pos>this.a.length)throw new RangeError("out of bounds");return e}getChar(){return String.fromCharCode(this.getByte())}getInt(){let e,t=0;for(;this.haveBytes()&&(e=F[127&this.getByte()])>=0;)t=(t<<6)+e;return this.pos--,t>>>0}}class z{constructor(){this.a=[]}toByteArray(e){return Array.isArray(e)?this.a:new Uint8Array(this.a)}putArray(e,t,n){for(let r=t;r<n;r++)this.a.push(e[r])}}function q(e){let t=0,n=0,r=0,i=0,o=0,s=e.length;for(;s>=16;)t=t+e[o+0]|0,n=n+e[o+1]|0,r=r+e[o+2]|0,i=i+e[o+3]|0,t=t+e[o+4]|0,n=n+e[o+5]|0,r=r+e[o+6]|0,i=i+e[o+7]|0,t=t+e[o+8]|0,n=n+e[o+9]|0,r=r+e[o+10]|0,i=i+e[o+11]|0,t=t+e[o+12]|0,n=n+e[o+13]|0,r=r+e[o+14]|0,i=i+e[o+15]|0,o+=16,s-=16;for(;s>=4;)t=t+e[o+0]|0,n=n+e[o+1]|0,r=r+e[o+2]|0,i=i+e[o+3]|0,o+=4,s-=4;switch(i=((i+(r<<8)|0)+(n<<16)|0)+(t<<24)|0,s){case 3:i=i+(e[o+2]<<8)|0;case 2:i=i+(e[o+1]<<16)|0;case 1:i=i+(e[o+0]<<24)|0}return i>>>0}class H{name(){return"json"}encodeCommands(e){return e.map(e=>JSON.stringify(e)).join("\n")}decodeReplies(e){return e.trim().split("\n").map(e=>JSON.parse(e))}applyDeltaIfNeeded(e,t){let n,r;if(e.delta){const i=function(e,t){let n=0;const r=new D(t),i=e.length,o=t.length,s=r.getInt();if("\n"!==r.getChar())throw new Error("size integer not terminated by '\\n'");const a=new z;for(;r.haveBytes();){const t=r.getInt();let c;switch(r.getChar()){case"@":if(c=r.getInt(),r.haveBytes()&&","!==r.getChar())throw new Error("copy command not terminated by ','");if(n+=t,n>s)throw new Error("copy exceeds output file size");if(c+t>i)throw new Error("copy extends past end of input");a.putArray(e,c,c+t);break;case":":if(n+=t,n>s)throw new Error("insert command gives an output larger than predicted");if(t>o)throw new Error("insert count exceeds size of delta");a.putArray(r.a,r.pos,r.pos+t),r.pos+=t;break;case";":{const r=a.toByteArray(e);if(t!==q(r))throw new Error("bad checksum");if(n!==s)throw new Error("generated size does not match predicted size");return r}default:throw new Error("unknown delta operator")}}throw new Error("unterminated delta")}(t,(new TextEncoder).encode(e.data));n=JSON.parse((new TextDecoder).decode(i)),r=i}else n=JSON.parse(e.data),r=(new TextEncoder).encode(e.data);return{newData:n,newPrevValue:r}}}const W={headers:{},token:"",getToken:null,data:null,getData:null,debug:!1,name:"js",version:"",fetch:null,readableStream:null,websocket:null,eventsource:null,sockjs:null,sockjsOptions:{},emulationEndpoint:"/emulation",minReconnectDelay:500,maxReconnectDelay:2e4,timeout:5e3,maxServerPingDelay:1e4,networkEventTarget:null};class K extends Error{constructor(e){super(e),this.name=this.constructor.name}}class $ extends I{constructor(e,t){super(),this._reconnectTimeout=null,this._refreshTimeout=null,this._serverPingTimeout=null,this.state=P.Disconnected,this._transportIsOpen=!1,this._endpoint=e,this._emulation=!1,this._transports=[],this._currentTransportIndex=0,this._triedAllTransports=!1,this._transportWasOpen=!1,this._transport=null,this._transportId=0,this._deviceWentOffline=!1,this._transportClosed=!0,this._codec=new H,this._reconnecting=!1,this._reconnectTimeout=null,this._reconnectAttempts=0,this._client=null,this._session="",this._node="",this._subs={},this._serverSubs={},this._commandId=0,this._commands=[],this._batching=!1,this._refreshRequired=!1,this._refreshTimeout=null,this._callbacks={},this._token="",this._data=null,this._dispatchPromise=Promise.resolve(),this._serverPing=0,this._serverPingTimeout=null,this._sendPong=!1,this._promises={},this._promiseId=0,this._debugEnabled=!1,this._networkEventsSet=!1,this._config=Object.assign(Object.assign({},W),t),this._configure(),this._debugEnabled?(this.on("state",e=>{this._debug("client state",e.oldState,"->",e.newState)}),this.on("error",e=>{this._debug("client error",e)})):this.on("error",function(){Function.prototype()})}newSubscription(e,t){if(null!==this.getSubscription(e))throw new Error("Subscription to the channel "+e+" already exists");const n=new R(this,e,t);return this._subs[e]=n,n}getSubscription(e){return this._getSub(e)}removeSubscription(e){e&&(e.state!==C.Unsubscribed&&e.unsubscribe(),this._removeSubscription(e))}subscriptions(){return this._subs}ready(e){return r(this,void 0,void 0,function*(){switch(this.state){case P.Disconnected:throw{code:_.clientDisconnected,message:"client disconnected"};case P.Connected:return;default:return new Promise((t,n)=>{const r={resolve:t,reject:n};e&&(r.timeout=setTimeout(()=>{n({code:_.timeout,message:"timeout"})},e)),this._promises[this._nextPromiseId()]=r})}})}connect(){this._isConnected()?this._debug("connect called when already connected"):this._isConnecting()?this._debug("connect called when already connecting"):(this._debug("connect called"),this._reconnectAttempts=0,this._startConnecting())}disconnect(){this._disconnect(A.disconnectCalled,"disconnect called",!1)}setToken(e){this._token=e}setData(e){this._data=e}setHeaders(e){this._config.headers=e}send(e){return r(this,void 0,void 0,function*(){const t={send:{data:e}};yield this._methodCall();if(!this._transportSendCommands([t]))throw this._createErrorObject(_.transportWriteError,"transport write error")})}rpc(e,t){return r(this,void 0,void 0,function*(){const n={rpc:{method:e,data:t}};yield this._methodCall();return{data:(yield this._callPromise(n,e=>e.rpc)).data}})}publish(e,t){return r(this,void 0,void 0,function*(){const n={publish:{channel:e,data:t}};return yield this._methodCall(),yield this._callPromise(n,()=>({})),{}})}history(e,t){return r(this,void 0,void 0,function*(){const n={history:this._getHistoryRequest(e,t)};yield this._methodCall();const r=yield this._callPromise(n,e=>e.history),i=[];if(r.publications)for(let t=0;t<r.publications.length;t++)i.push(this._getPublicationContext(e,r.publications[t]));return{publications:i,epoch:r.epoch||"",offset:r.offset||0}})}presence(e){return r(this,void 0,void 0,function*(){const t={presence:{channel:e}};yield this._methodCall();const n=(yield this._callPromise(t,e=>e.presence)).presence;for(const e in n)if(Object.prototype.hasOwnProperty.call(n,e)){const t=n[e],r=t.conn_info,i=t.chan_info;r&&(t.connInfo=r),i&&(t.chanInfo=i)}return{clients:n}})}presenceStats(e){return r(this,void 0,void 0,function*(){const t={presence_stats:{channel:e}};yield this._methodCall();const n=yield this._callPromise(t,e=>e.presence_stats);return{numUsers:n.num_users,numClients:n.num_clients}})}startBatching(){this._batching=!0}stopBatching(){const e=this;Promise.resolve().then(function(){Promise.resolve().then(function(){e._batching=!1,e._flush()})})}_debug(){if(this._debugEnabled){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];!function(e,t){if(globalThis.console){const n=globalThis.console[e];M(n)&&n.apply(globalThis.console,t)}}("debug",t)}}_codecName(){return this._codec.name()}_formatOverride(){}_configure(){if(!("Promise"in globalThis))throw new Error("Promise polyfill required");if(!this._endpoint)throw new Error("endpoint configuration required");if(null!==this._config.token&&(this._token=this._config.token),null!==this._config.data&&(this._data=this._config.data),this._codec=new H,this._formatOverride(),(!0===this._config.debug||"undefined"!==typeof localStorage&&"function"===typeof localStorage.getItem&&localStorage.getItem("centrifuge.debug"))&&(this._debugEnabled=!0),this._debug("config",this._config),"string"===typeof this._endpoint);else{if(!("object"===typeof this._endpoint&&this._endpoint instanceof Array))throw new Error("unsupported url configuration type: only string or array of objects are supported");this._transports=this._endpoint,this._emulation=!0;for(const e in this._transports)if(this._transports.hasOwnProperty(e)){const t=this._transports[e];if(!t.endpoint||!t.transport)throw new Error("malformed transport configuration");const n=t.transport;if(["websocket","http_stream","sse","sockjs","webtransport"].indexOf(n)<0)throw new Error("unsupported transport name: "+n)}}}_setState(e){if(this.state!==e){this._reconnecting=!1;const t=this.state;return this.state=e,this.emit("state",{newState:e,oldState:t}),!0}return!1}_isDisconnected(){return this.state===P.Disconnected}_isConnecting(){return this.state===P.Connecting}_isConnected(){return this.state===P.Connected}_nextCommandId(){return++this._commandId}_setNetworkEvents(){if(this._networkEventsSet)return;let e=null;null!==this._config.networkEventTarget?e=this._config.networkEventTarget:"undefined"!==typeof globalThis.addEventListener&&(e=globalThis),e&&(e.addEventListener("offline",()=>{this._debug("offline event triggered"),this.state!==P.Connected&&this.state!==P.Connecting||(this._disconnect(x.transportClosed,"transport closed",!0),this._deviceWentOffline=!0)}),e.addEventListener("online",()=>{this._debug("online event triggered"),this.state===P.Connecting&&(this._deviceWentOffline&&!this._transportClosed&&(this._deviceWentOffline=!1,this._transportClosed=!0),this._clearReconnectTimeout(),this._startReconnecting())}),this._networkEventsSet=!0)}_getReconnectDelay(){const e=T(this._reconnectAttempts,this._config.minReconnectDelay,this._config.maxReconnectDelay);return this._reconnectAttempts+=1,e}_clearOutgoingRequests(){for(const e in this._callbacks)if(this._callbacks.hasOwnProperty(e)){const t=this._callbacks[e];clearTimeout(t.timeout);const n=t.errback;if(!n)continue;n({error:this._createErrorObject(_.connectionClosed,"connection closed")})}this._callbacks={}}_clearConnectedState(){this._client=null,this._clearServerPingTimeout(),this._clearRefreshTimeout();for(const e in this._subs){if(!this._subs.hasOwnProperty(e))continue;const t=this._subs[e];t.state===C.Subscribed&&t._setSubscribing(k.transportClosed,"transport closed")}for(const e in this._serverSubs)this._serverSubs.hasOwnProperty(e)&&this.emit("subscribing",{channel:e})}_handleWriteError(e){for(const t of e){const e=t.id;if(!(e in this._callbacks))continue;const n=this._callbacks[e];clearTimeout(this._callbacks[e].timeout),delete this._callbacks[e];(0,n.errback)({error:this._createErrorObject(_.transportWriteError,"transport write error")})}}_transportSendCommands(e){if(!e.length)return!0;if(!this._transport)return!1;try{this._transport.send(this._codec.encodeCommands(e),this._session,this._node)}catch(t){return this._debug("error writing commands",t),this._handleWriteError(e),!1}return!0}_initializeTransport(){let e;null!==this._config.websocket?e=this._config.websocket:"function"!==typeof globalThis.WebSocket&&"object"!==typeof globalThis.WebSocket||(e=globalThis.WebSocket);let t=null;null!==this._config.sockjs?t=this._config.sockjs:"undefined"!==typeof globalThis.SockJS&&(t=globalThis.SockJS);let n=null;null!==this._config.eventsource?n=this._config.eventsource:"undefined"!==typeof globalThis.EventSource&&(n=globalThis.EventSource);let r=null;null!==this._config.fetch?r=this._config.fetch:"undefined"!==typeof globalThis.fetch&&(r=globalThis.fetch);let i=null;if(null!==this._config.readableStream?i=this._config.readableStream:"undefined"!==typeof globalThis.ReadableStream&&(i=globalThis.ReadableStream),this._emulation){this._currentTransportIndex>=this._transports.length&&(this._triedAllTransports=!0,this._currentTransportIndex=0);let o=0;for(;;){if(o>=this._transports.length)throw new Error("no supported transport found");const s=this._transports[this._currentTransportIndex],a=s.transport,c=s.endpoint;if("websocket"===a){if(this._debug("trying websocket transport"),this._transport=new N(c,{websocket:e}),!this._transport.supported()){this._debug("websocket transport not available"),this._currentTransportIndex++,o++;continue}}else if("webtransport"===a){if(this._debug("trying webtransport transport"),this._transport=new L(c,{webtransport:globalThis.WebTransport,decoder:this._codec,encoder:this._codec}),!this._transport.supported()){this._debug("webtransport transport not available"),this._currentTransportIndex++,o++;continue}}else if("http_stream"===a){if(this._debug("trying http_stream transport"),this._transport=new U(c,{fetch:r,readableStream:i,emulationEndpoint:this._config.emulationEndpoint,decoder:this._codec,encoder:this._codec}),!this._transport.supported()){this._debug("http_stream transport not available"),this._currentTransportIndex++,o++;continue}}else if("sse"===a){if(this._debug("trying sse transport"),this._transport=new j(c,{eventsource:n,fetch:r,emulationEndpoint:this._config.emulationEndpoint}),!this._transport.supported()){this._debug("sse transport not available"),this._currentTransportIndex++,o++;continue}}else{if("sockjs"!==a)throw new Error("unknown transport "+a);if(this._debug("trying sockjs"),this._transport=new B(c,{sockjs:t,sockjsOptions:this._config.sockjsOptions}),!this._transport.supported()){this._debug("sockjs transport not available"),this._currentTransportIndex++,o++;continue}}break}}else{if(o=this._endpoint,s="http",0===o.lastIndexOf(s,0))throw new Error("Provide explicit transport endpoints configuration in case of using HTTP (i.e. using array of TransportEndpoint instead of a single string), or use ws(s):// scheme in an endpoint if you aimed using WebSocket transport");if(this._debug("client will use websocket"),this._transport=new N(this._endpoint,{websocket:e}),!this._transport.supported())throw new Error("WebSocket constructor not found, make sure it is available globally or passed as a dependency in Centrifuge options")}var o,s;const a=this,c=this._transport,l=this._nextTransportId();a._debug("id of transport",l);let u=!1;const d=[];if(this._transport.emulation()){const e=a._sendConnect(!0);d.push(e)}this._setNetworkEvents();const h=this._codec.encodeCommands(d);let f;this._transportClosed=!1,f=setTimeout(function(){c.close()},this._config.timeout),this._transport.initialize(this._codecName(),{onOpen:function(){if(f&&(clearTimeout(f),f=null),a._transportId!=l)return a._debug("open callback from non-actual transport"),void c.close();u=!0,a._debug(c.subName(),"transport open"),c.emulation()||(a._transportIsOpen=!0,a._transportWasOpen=!0,a.startBatching(),a._sendConnect(!1),a._sendSubscribeCommands(),a.stopBatching(),a.emit("__centrifuge_debug:connect_frame_sent",{}))},onError:function(e){a._transportId==l?a._debug("transport level error",e):a._debug("error callback from non-actual transport")},onClose:function(e){if(f&&(clearTimeout(f),f=null),a._transportId!=l)return void a._debug("close callback from non-actual transport");a._debug(c.subName(),"transport closed"),a._transportClosed=!0,a._transportIsOpen=!1;let t="connection closed",n=!0,r=0;if(e&&"code"in e&&e.code&&(r=e.code),e&&e.reason)try{const r=JSON.parse(e.reason);t=r.reason,n=r.reconnect}catch(i){t=e.reason,(r>=3500&&r<4e3||r>=4500&&r<5e3)&&(n=!1)}r<3e3?(1009===r?(r=A.messageSizeLimit,t="message size limit exceeded",n=!1):(r=x.transportClosed,t="transport closed"),a._emulation&&!a._transportWasOpen&&(a._currentTransportIndex++,a._currentTransportIndex>=a._transports.length&&(a._triedAllTransports=!0,a._currentTransportIndex=0))):a._transportWasOpen=!0,a._isConnecting()&&!u&&a.emit("error",{type:"transport",error:{code:_.transportClosed,message:"transport closed"},transport:c.name()}),a._reconnecting=!1,a._disconnect(r,t,n)},onMessage:function(e){a._dataReceived(e)}},h),a.emit("__centrifuge_debug:transport_initialized",{})}_sendConnect(e){const t=this._constructConnectCommand(),n=this;return this._call(t,e).then(e=>{const t=e.reply.connect;n._connectResponse(t),e.next&&e.next()},e=>{n._connectError(e.error),e.next&&e.next()}),t}_startReconnecting(){if(this._debug("start reconnecting"),!this._isConnecting())return void this._debug("stop reconnecting: client not in connecting state");if(this._reconnecting)return void this._debug("reconnect already in progress, return from reconnect routine");if(!1===this._transportClosed)return void this._debug("waiting for transport close");this._reconnecting=!0;const e=""===this._token;if(!(this._refreshRequired||e&&null!==this._config.getToken))return void(this._config.getData?this._config.getData().then(e=>{this._isConnecting()&&(this._data=e,this._initializeTransport())}).catch(e=>this._handleGetDataError(e)):this._initializeTransport());const t=this;this._getToken().then(function(e){t._isConnecting()&&(null!=e&&void 0!=e?(t._token=e,t._debug("connection token refreshed"),t._config.getData?t._config.getData().then(function(e){t._isConnecting()&&(t._data=e,t._initializeTransport())}).catch(e=>t._handleGetDataError(e)):t._initializeTransport()):t._failUnauthorized())}).catch(function(e){if(!t._isConnecting())return;if(e instanceof K)return void t._failUnauthorized();t.emit("error",{type:"connectToken",error:{code:_.clientConnectToken,message:void 0!==e?e.toString():""}});const n=t._getReconnectDelay();t._debug("error on getting connection token, reconnect after "+n+" milliseconds",e),t._reconnecting=!1,t._reconnectTimeout=setTimeout(()=>{t._startReconnecting()},n)})}_handleGetDataError(e){if(e instanceof K)return void this._failUnauthorized();this.emit("error",{type:"connectData",error:{code:_.badConfiguration,message:(null===e||void 0===e?void 0:e.toString())||""}});const t=this._getReconnectDelay();this._debug("error on getting connect data, reconnect after "+t+" milliseconds",e),this._reconnecting=!1,this._reconnectTimeout=setTimeout(()=>{this._startReconnecting()},t)}_connectError(e){this.state===P.Connecting&&(109===e.code&&(this._refreshRequired=!0),e.code<100||!0===e.temporary||109===e.code?(this.emit("error",{type:"connect",error:e}),this._debug("closing transport due to connect error"),this._disconnect(e.code,e.message,!0)):this._disconnect(e.code,e.message,!1))}_scheduleReconnect(){if(!this._isConnecting())return;let e=!1;!this._emulation||this._transportWasOpen||this._triedAllTransports||(e=!0);let t=this._getReconnectDelay();e&&(t=0),this._debug("reconnect after "+t+" milliseconds"),this._clearReconnectTimeout(),this._reconnectTimeout=setTimeout(()=>{this._startReconnecting()},t)}_constructConnectCommand(){const e={};this._token&&(e.token=this._token),this._data&&(e.data=this._data),this._config.name&&(e.name=this._config.name),this._config.version&&(e.version=this._config.version),Object.keys(this._config.headers).length>0&&(e.headers=this._config.headers);const t={};let n=!1;for(const r in this._serverSubs)if(this._serverSubs.hasOwnProperty(r)&&this._serverSubs[r].recoverable){n=!0;const e={recover:!0};this._serverSubs[r].offset&&(e.offset=this._serverSubs[r].offset),this._serverSubs[r].epoch&&(e.epoch=this._serverSubs[r].epoch),t[r]=e}return n&&(e.subs=t),{connect:e}}_getHistoryRequest(e,t){const n={channel:e};return void 0!==t&&(t.since&&(n.since={offset:t.since.offset},t.since.epoch&&(n.since.epoch=t.since.epoch)),void 0!==t.limit&&(n.limit=t.limit),!0===t.reverse&&(n.reverse=!0)),n}_methodCall(){return this._isConnected()?Promise.resolve():new Promise((e,t)=>{const n=setTimeout(function(){t({code:_.timeout,message:"timeout"})},this._config.timeout);this._promises[this._nextPromiseId()]={timeout:n,resolve:e,reject:t}})}_callPromise(e,t){return new Promise((n,r)=>{this._call(e,!1).then(e=>{var r;const i=t(e.reply);n(i),null===(r=e.next)||void 0===r||r.call(e)},e=>{var t;r(e.error),null===(t=e.next)||void 0===t||t.call(e)})})}_dataReceived(e){this._serverPing>0&&this._waitServerPing();const t=this._codec.decodeReplies(e);this._dispatchPromise=this._dispatchPromise.then(()=>{let e;this._dispatchPromise=new Promise(t=>{e=t}),this._dispatchSynchronized(t,e)})}_dispatchSynchronized(e,t){let n=Promise.resolve();for(const r in e)e.hasOwnProperty(r)&&(n=n.then(()=>this._dispatchReply(e[r])));n=n.then(()=>{t()})}_dispatchReply(e){let t;const n=new Promise(e=>{t=e});if(void 0===e||null===e)return this._debug("dispatch: got undefined or null reply"),t(),n;const r=e.id;return r&&r>0?this._handleReply(e,t):e.push?this._handlePush(e.push,t):this._handleServerPing(t),n}_call(e,t){return new Promise((n,r)=>{e.id=this._nextCommandId(),this._registerCall(e.id,n,r),t||this._addCommand(e)})}_startConnecting(){this._debug("start connecting"),this._setState(P.Connecting)&&this.emit("connecting",{code:x.connectCalled,reason:"connect called"}),this._client=null,this._startReconnecting()}_disconnect(e,t,n){if(this._isDisconnected())return;this._transportIsOpen=!1;const r=this.state;this._reconnecting=!1;const i={code:e,reason:t};let o=!1;if(n?o=this._setState(P.Connecting):(o=this._setState(P.Disconnected),this._rejectPromises({code:_.clientDisconnected,message:"disconnected"})),this._clearOutgoingRequests(),r===P.Connecting&&this._clearReconnectTimeout(),r===P.Connected&&this._clearConnectedState(),o&&(this._isConnecting()?this.emit("connecting",i):this.emit("disconnected",i)),this._transport){this._debug("closing existing transport");const e=this._transport;this._transport=null,e.close(),this._transportClosed=!0,this._nextTransportId()}else this._debug("no transport to close");this._scheduleReconnect()}_failUnauthorized(){this._disconnect(A.unauthorized,"unauthorized",!1)}_getToken(){return this._debug("get connection token"),this._config.getToken?this._config.getToken({}):(this.emit("error",{type:"configuration",error:{code:_.badConfiguration,message:"token expired but no getToken function set in the configuration"}}),Promise.reject(new K("")))}_refresh(){const e=this._client,t=this;this._getToken().then(function(n){if(e!==t._client)return;if(!n)return void t._failUnauthorized();if(t._token=n,t._debug("connection token refreshed"),!t._isConnected())return;const r={refresh:{token:t._token}};t._call(r,!1).then(e=>{const n=e.reply.refresh;t._refreshResponse(n),e.next&&e.next()},e=>{t._refreshError(e.error),e.next&&e.next()})}).catch(function(e){t._isConnected()&&(e instanceof K?t._failUnauthorized():(t.emit("error",{type:"refreshToken",error:{code:_.clientRefreshToken,message:void 0!==e?e.toString():""}}),t._refreshTimeout=setTimeout(()=>t._refresh(),t._getRefreshRetryDelay())))})}_refreshError(e){e.code<100||!0===e.temporary?(this.emit("error",{type:"refresh",error:e}),this._refreshTimeout=setTimeout(()=>this._refresh(),this._getRefreshRetryDelay())):this._disconnect(e.code,e.message,!1)}_getRefreshRetryDelay(){return T(0,5e3,1e4)}_refreshResponse(e){this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null),e.expires&&(this._client=e.client,this._refreshTimeout=setTimeout(()=>this._refresh(),O(e.ttl)))}_removeSubscription(e){null!==e&&delete this._subs[e.channel]}_unsubscribe(e){if(!this._transportIsOpen)return Promise.resolve();const t={unsubscribe:{channel:e.channel}},n=this;return new Promise((e,r)=>{this._call(t,!1).then(t=>{e(),t.next&&t.next()},t=>{e(),t.next&&t.next(),n._disconnect(x.unsubscribeError,"unsubscribe error",!0)})})}_getSub(e,t){if(t&&t>0){for(const e in this._subs)if(this._subs.hasOwnProperty(e)){const n=this._subs[e];if(n._id===t)return n}return null}const n=this._subs[e];return n||null}_isServerSub(e){return void 0!==this._serverSubs[e]}_sendSubscribeCommands(){const e=[];for(const t in this._subs){if(!this._subs.hasOwnProperty(t))continue;const n=this._subs[t];if(!0!==n._inflight&&n.state===C.Subscribing){const t=n._subscribe();t&&e.push(t)}}return e}_connectResponse(e){if(this._transportIsOpen=!0,this._transportWasOpen=!0,this._reconnectAttempts=0,this._refreshRequired=!1,this._isConnected())return;this._client=e.client,this._setState(P.Connected),this._refreshTimeout&&clearTimeout(this._refreshTimeout),e.expires&&(this._refreshTimeout=setTimeout(()=>this._refresh(),O(e.ttl))),this._session=e.session,this._node=e.node,this.startBatching(),this._sendSubscribeCommands(),this.stopBatching();const t={client:e.client,transport:this._transport.subName()};e.data&&(t.data=e.data),this.emit("connected",t),this._resolvePromises(),this._processServerSubs(e.subs||{}),e.ping&&e.ping>0?(this._serverPing=1e3*e.ping,this._sendPong=!0===e.pong,this._waitServerPing()):this._serverPing=0}_processServerSubs(e){for(const t in e){if(!e.hasOwnProperty(t))continue;const n=e[t];this._serverSubs[t]={offset:n.offset,epoch:n.epoch,recoverable:n.recoverable||!1};const r=this._getSubscribeContext(t,n);this.emit("subscribed",r)}for(const t in e){if(!e.hasOwnProperty(t))continue;const n=e[t];if(n.recovered){const e=n.publications;if(e&&e.length>0)for(const n in e)e.hasOwnProperty(n)&&this._handlePublication(t,e[n])}}for(const t in this._serverSubs)this._serverSubs.hasOwnProperty(t)&&(e[t]||(this.emit("unsubscribed",{channel:t}),delete this._serverSubs[t]))}_clearRefreshTimeout(){null!==this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null)}_clearReconnectTimeout(){null!==this._reconnectTimeout&&(clearTimeout(this._reconnectTimeout),this._reconnectTimeout=null)}_clearServerPingTimeout(){null!==this._serverPingTimeout&&(clearTimeout(this._serverPingTimeout),this._serverPingTimeout=null)}_waitServerPing(){0!==this._config.maxServerPingDelay&&this._isConnected()&&(this._clearServerPingTimeout(),this._serverPingTimeout=setTimeout(()=>{this._isConnected()&&this._disconnect(x.noPing,"no ping",!0)},this._serverPing+this._config.maxServerPingDelay))}_getSubscribeContext(e,t){const n={channel:e,positioned:!1,recoverable:!1,wasRecovering:!1,recovered:!1,hasRecoveredPublications:!1};t.recovered&&(n.recovered=!0),t.positioned&&(n.positioned=!0),t.recoverable&&(n.recoverable=!0),t.was_recovering&&(n.wasRecovering=!0);let r="";"epoch"in t&&(r=t.epoch);let i=0;return"offset"in t&&(i=t.offset),(n.positioned||n.recoverable)&&(n.streamPosition={offset:i,epoch:r}),Array.isArray(t.publications)&&t.publications.length>0&&(n.hasRecoveredPublications=!0),t.data&&(n.data=t.data),n}_handleReply(e,t){const n=e.id;if(!(n in this._callbacks))return void t();const r=this._callbacks[n];if(clearTimeout(this._callbacks[n].timeout),delete this._callbacks[n],"error"in(i=e)&&null!==i.error){const n=r.errback;if(!n)return void t();n({error:{code:e.error.code,message:e.error.message||"",temporary:e.error.temporary||!1},next:t})}else{const n=r.callback;if(!n)return;n({reply:e,next:t})}var i}_handleJoin(e,t,n){const r=this._getSub(e,n);if(r||!e)r._handleJoin(t);else if(this._isServerSub(e)){const n={channel:e,info:this._getJoinLeaveContext(t.info)};this.emit("join",n)}}_handleLeave(e,t,n){const r=this._getSub(e,n);if(r||!e)r._handleLeave(t);else if(this._isServerSub(e)){const n={channel:e,info:this._getJoinLeaveContext(t.info)};this.emit("leave",n)}}_handleUnsubscribe(e,t){const n=this._getSub(e,0);n||!e?t.code<2500?n._setUnsubscribed(t.code,t.reason,!1):n._setSubscribing(t.code,t.reason):this._isServerSub(e)&&(delete this._serverSubs[e],this.emit("unsubscribed",{channel:e}))}_handleSubscribe(e,t){this._serverSubs[e]={offset:t.offset,epoch:t.epoch,recoverable:t.recoverable||!1},this.emit("subscribed",this._getSubscribeContext(e,t))}_handleDisconnect(e){const t=e.code;let n=!0;(t>=3500&&t<4e3||t>=4500&&t<5e3)&&(n=!1),this._disconnect(t,e.reason,n)}_getPublicationContext(e,t){const n={channel:e,data:t.data};return t.offset&&(n.offset=t.offset),t.info&&(n.info=this._getJoinLeaveContext(t.info)),t.tags&&(n.tags=t.tags),n}_getJoinLeaveContext(e){const t={client:e.client,user:e.user},n=e.conn_info;n&&(t.connInfo=n);const r=e.chan_info;return r&&(t.chanInfo=r),t}_handlePublication(e,t,n){const r=this._getSub(e,n);if(r||!e)r._handlePublication(t);else if(this._isServerSub(e)){const n=this._getPublicationContext(e,t);this.emit("publication",n),void 0!==t.offset&&(this._serverSubs[e].offset=t.offset)}}_handleMessage(e){this.emit("message",{data:e.data})}_handleServerPing(e){if(this._sendPong){const e={};this._transportSendCommands([e])}e()}_handlePush(e,t){const n=e.channel,r=e.id;e.pub?this._handlePublication(n,e.pub,r):e.message?this._handleMessage(e.message):e.join?this._handleJoin(n,e.join,r):e.leave?this._handleLeave(n,e.leave,r):e.unsubscribe?this._handleUnsubscribe(n,e.unsubscribe):e.subscribe?this._handleSubscribe(n,e.subscribe):e.disconnect&&this._handleDisconnect(e.disconnect),t()}_flush(){const e=this._commands.slice(0);this._commands=[],this._transportSendCommands(e)}_createErrorObject(e,t,n){const r={code:e,message:t};return n&&(r.temporary=!0),r}_registerCall(e,t,n){this._callbacks[e]={callback:t,errback:n,timeout:null},this._callbacks[e].timeout=setTimeout(()=>{delete this._callbacks[e],M(n)&&n({error:this._createErrorObject(_.timeout,"timeout")})},this._config.timeout)}_addCommand(e){this._batching?this._commands.push(e):this._transportSendCommands([e])}_nextPromiseId(){return++this._promiseId}_nextTransportId(){return++this._transportId}_resolvePromises(){for(const e in this._promises)this._promises.hasOwnProperty(e)&&(this._promises[e].timeout&&clearTimeout(this._promises[e].timeout),this._promises[e].resolve(),delete this._promises[e])}_rejectPromises(e){for(const t in this._promises)this._promises.hasOwnProperty(t)&&(this._promises[t].timeout&&clearTimeout(this._promises[t].timeout),this._promises[t].reject(e),delete this._promises[t])}}$.SubscriptionState=C,$.State=P,$.UnauthorizedError=K},8717:(e,t,n)=>{"use strict";n.r(t),n.d(t,{encodeToCurve:()=>X,hashToCurve:()=>Q,schnorr:()=>G,secp256k1:()=>N,secp256k1_hasher:()=>Y});var r=n(9740),i=n(929),o=n(2766),s=n(4934),a=n(3808),c=n(9231),l=n(4902);const u=(e,t)=>(e+(e>=0?t:-t)/y)/t;function d(e){if(!["compact","recovered","der"].includes(e))throw new Error('Signature format must be "compact", "recovered", or "der"');return e}function h(e,t){const n={};for(let r of Object.keys(t))n[r]=void 0===e[r]?t[r]:e[r];return(0,a.d6)(n.lowS,"lowS"),(0,a.d6)(n.prehash,"prehash"),void 0!==n.format&&d(n.format),n}class f extends Error{constructor(){super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")}}const p={Err:f,_tlv:{encode:(e,t)=>{const{Err:n}=p;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(1&t.length)throw new n("tlv.encode: unpadded data");const r=t.length/2,i=(0,a.zW)(r);if(i.length/2&128)throw new n("tlv.encode: long form length too big");const o=r>127?(0,a.zW)(i.length/2|128):"";return(0,a.zW)(e)+o+i+t},decode(e,t){const{Err:n}=p;let r=0;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(t.length<2||t[r++]!==e)throw new n("tlv.decode: wrong tlv");const i=t[r++];let o=0;if(!!(128&i)){const e=127&i;if(!e)throw new n("tlv.decode(long): indefinite length not supported");if(e>4)throw new n("tlv.decode(long): byte length is too big");const s=t.subarray(r,r+e);if(s.length!==e)throw new n("tlv.decode: length bytes not complete");if(0===s[0])throw new n("tlv.decode(long): zero leftmost byte");for(const t of s)o=o<<8|t;if(r+=e,o<128)throw new n("tlv.decode(long): not minimal encoding")}else o=i;const s=t.subarray(r,r+o);if(s.length!==o)throw new n("tlv.decode: wrong value length");return{v:s,l:t.subarray(r+o)}}},_int:{encode(e){const{Err:t}=p;if(e<m)throw new t("integer: negative integers are not allowed");let n=(0,a.zW)(e);if(8&Number.parseInt(n[0],16)&&(n="00"+n),1&n.length)throw new t("unexpected DER parsing assertion: unpadded hex");return n},decode(e){const{Err:t}=p;if(128&e[0])throw new t("invalid signature integer: negative");if(0===e[0]&&!(128&e[1]))throw new t("invalid signature integer: unnecessary leading zero");return(0,a.Ph)(e)}},toSig(e){const{Err:t,_int:n,_tlv:r}=p,i=(0,a.qj)("signature",e),{v:o,l:s}=r.decode(48,i);if(s.length)throw new t("invalid signature: left bytes after parsing");const{v:c,l:l}=r.decode(2,o),{v:u,l:d}=r.decode(2,l);if(d.length)throw new t("invalid signature: left bytes after parsing");return{r:n.decode(c),s:n.decode(u)}},hexFromSig(e){const{_tlv:t,_int:n}=p,r=t.encode(2,n.encode(e.r))+t.encode(2,n.encode(e.s));return t.encode(48,r)}},m=BigInt(0),g=BigInt(1),y=BigInt(2),b=BigInt(3),v=BigInt(4);function w(e,t){const{BYTES:n}=e;let r;if("bigint"===typeof t)r=t;else{let o=(0,a.qj)("private key",t);try{r=e.fromBytes(o)}catch(i){throw new Error("invalid private key: expected ui8a of size ".concat(n,", got ").concat(typeof t))}}if(!e.isValidNot0(r))throw new Error("invalid private key: out of range [1..N-1]");return r}function _(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=(0,c.UT)("weierstrass",e,t),{Fp:r,Fn:i}=n;let s=n.CURVE;const{h:l,n:d}=s;(0,a.DS)(t,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object",wrapPrivateKey:"boolean"});const{endo:h}=t;if(h&&(!r.is0(s.a)||"bigint"!==typeof h.beta||!Array.isArray(h.basises)))throw new Error('invalid endo: expected "beta": bigint and "basises": array');const f=k(r,i);function p(){if(!r.isOdd)throw new Error("compression is not supported: Field does not have .isOdd()")}const y=t.toBytes||function(e,t,n){const{x:i,y:s}=t.toAffine(),c=r.toBytes(i);if((0,a.d6)(n,"isCompressed"),n){p();const e=!r.isOdd(s);return(0,o.Id)(x(e),c)}return(0,o.Id)(Uint8Array.of(4),c,r.toBytes(s))},_=t.fromBytes||function(e){(0,a.eV)(e,void 0,"Point");const{publicKey:t,publicKeyUncompressed:n}=f,i=e.length,o=e[0],s=e.subarray(1);if(i!==t||2!==o&&3!==o){if(i===n&&4===o){const e=r.BYTES,t=r.fromBytes(s.subarray(0,e)),n=r.fromBytes(s.subarray(e,2*e));if(!E(t,n))throw new Error("bad point: is not on curve");return{x:t,y:n}}throw new Error("bad point: got length ".concat(i,", expected compressed=").concat(t," or uncompressed=").concat(n))}{const e=r.fromBytes(s);if(!r.isValid(e))throw new Error("bad point: is not on curve, wrong x");const t=A(e);let n;try{n=r.sqrt(t)}catch(c){const e=c instanceof Error?": "+c.message:"";throw new Error("bad point: is not on curve, sqrt error"+e)}p();return 1===(1&o)!==r.isOdd(n)&&(n=r.neg(n)),{x:e,y:n}}};function A(e){const t=r.sqr(e),n=r.mul(t,e);return r.add(r.add(n,r.mul(e,s.a)),s.b)}function E(e,t){const n=r.sqr(t),i=A(e);return r.eql(n,i)}if(!E(s.Gx,s.Gy))throw new Error("bad curve params: generator point");const S=r.mul(r.pow(s.a,b),v),P=r.mul(r.sqr(s.b),BigInt(27));if(r.is0(r.add(S,P)))throw new Error("bad curve params: a or b");function C(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!r.isValid(t)||n&&r.is0(t))throw new Error("bad point coordinate ".concat(e));return t}function I(e){if(!(e instanceof B))throw new Error("ProjectivePoint expected")}function M(e){if(!h||!h.basises)throw new Error("no endo");return function(e,t,n){const[[r,i],[o,s]]=t,c=u(s*e,n),l=u(-i*e,n);let d=e-c*r-l*o,h=-c*i-l*s;const f=d<m,p=h<m;f&&(d=-d),p&&(h=-h);const y=(0,a.OG)(Math.ceil((0,a.dJ)(n)/2))+g;if(d<m||d>=y||h<m||h>=y)throw new Error("splitScalar (endomorphism): failed, k="+e);return{k1neg:f,k1:d,k2neg:p,k2:h}}(e,h.basises,i.ORDER)}const T=(0,a.x)((e,t)=>{const{X:n,Y:i,Z:o}=e;if(r.eql(o,r.ONE))return{x:n,y:i};const s=e.is0();null==t&&(t=s?r.ONE:r.inv(o));const a=r.mul(n,t),c=r.mul(i,t),l=r.mul(o,t);if(s)return{x:r.ZERO,y:r.ZERO};if(!r.eql(l,r.ONE))throw new Error("invZ was invalid");return{x:a,y:c}}),O=(0,a.x)(e=>{if(e.is0()){if(t.allowInfinityPoint&&!r.is0(e.Y))return;throw new Error("bad point: ZERO")}const{x:n,y:i}=e.toAffine();if(!r.isValid(n)||!r.isValid(i))throw new Error("bad point: x or y not field elements");if(!E(n,i))throw new Error("bad point: equation left != right");if(!e.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});function R(e,t,n,i,o){return n=new B(r.mul(n.X,e),n.Y,n.Z),t=(0,c.u0)(i,t),n=(0,c.u0)(o,n),t.add(n)}class B{constructor(e,t,n){this.X=C("x",e),this.Y=C("y",t,!0),this.Z=C("z",n),Object.freeze(this)}static CURVE(){return s}static fromAffine(e){const{x:t,y:n}=e||{};if(!e||!r.isValid(t)||!r.isValid(n))throw new Error("invalid affine point");if(e instanceof B)throw new Error("projective point not allowed");return r.is0(t)&&r.is0(n)?B.ZERO:new B(t,n,r.ONE)}static fromBytes(e){const t=B.fromAffine(_((0,a.eV)(e,void 0,"point")));return t.assertValidity(),t}static fromHex(e){return B.fromBytes((0,a.qj)("pointHex",e))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return U.createCache(this,e),t||this.multiply(b),this}assertValidity(){O(this)}hasEvenY(){const{y:e}=this.toAffine();if(!r.isOdd)throw new Error("Field doesn't support isOdd");return!r.isOdd(e)}equals(e){I(e);const{X:t,Y:n,Z:i}=this,{X:o,Y:s,Z:a}=e,c=r.eql(r.mul(t,a),r.mul(o,i)),l=r.eql(r.mul(n,a),r.mul(s,i));return c&&l}negate(){return new B(this.X,r.neg(this.Y),this.Z)}double(){const{a:e,b:t}=s,n=r.mul(t,b),{X:i,Y:o,Z:a}=this;let c=r.ZERO,l=r.ZERO,u=r.ZERO,d=r.mul(i,i),h=r.mul(o,o),f=r.mul(a,a),p=r.mul(i,o);return p=r.add(p,p),u=r.mul(i,a),u=r.add(u,u),c=r.mul(e,u),l=r.mul(n,f),l=r.add(c,l),c=r.sub(h,l),l=r.add(h,l),l=r.mul(c,l),c=r.mul(p,c),u=r.mul(n,u),f=r.mul(e,f),p=r.sub(d,f),p=r.mul(e,p),p=r.add(p,u),u=r.add(d,d),d=r.add(u,d),d=r.add(d,f),d=r.mul(d,p),l=r.add(l,d),f=r.mul(o,a),f=r.add(f,f),d=r.mul(f,p),c=r.sub(c,d),u=r.mul(f,h),u=r.add(u,u),u=r.add(u,u),new B(c,l,u)}add(e){I(e);const{X:t,Y:n,Z:i}=this,{X:o,Y:a,Z:c}=e;let l=r.ZERO,u=r.ZERO,d=r.ZERO;const h=s.a,f=r.mul(s.b,b);let p=r.mul(t,o),m=r.mul(n,a),g=r.mul(i,c),y=r.add(t,n),v=r.add(o,a);y=r.mul(y,v),v=r.add(p,m),y=r.sub(y,v),v=r.add(t,i);let w=r.add(o,c);return v=r.mul(v,w),w=r.add(p,g),v=r.sub(v,w),w=r.add(n,i),l=r.add(a,c),w=r.mul(w,l),l=r.add(m,g),w=r.sub(w,l),d=r.mul(h,v),l=r.mul(f,g),d=r.add(l,d),l=r.sub(m,d),d=r.add(m,d),u=r.mul(l,d),m=r.add(p,p),m=r.add(m,p),g=r.mul(h,g),v=r.mul(f,v),m=r.add(m,g),g=r.sub(p,g),g=r.mul(h,g),v=r.add(v,g),p=r.mul(m,v),u=r.add(u,p),p=r.mul(w,v),l=r.mul(y,l),l=r.sub(l,p),p=r.mul(y,m),d=r.mul(w,d),d=r.add(d,p),new B(l,u,d)}subtract(e){return this.add(e.negate())}is0(){return this.equals(B.ZERO)}multiply(e){const{endo:n}=t;if(!i.isValidNot0(e))throw new Error("invalid scalar: out of range");let r,o;const s=e=>U.cached(this,e,e=>(0,c.Ak)(B,e));if(n){const{k1neg:t,k1:i,k2neg:a,k2:c}=M(e),{p:l,f:u}=s(i),{p:d,f:h}=s(c);o=u.add(h),r=R(n.beta,l,d,t,a)}else{const{p:t,f:n}=s(e);r=t,o=n}return(0,c.Ak)(B,[r,o])[0]}multiplyUnsafe(e){const{endo:n}=t,r=this;if(!i.isValid(e))throw new Error("invalid scalar: out of range");if(e===m||r.is0())return B.ZERO;if(e===g)return r;if(U.hasCache(this))return this.multiply(e);if(n){const{k1neg:t,k1:i,k2neg:o,k2:s}=M(e),{p1:a,p2:l}=(0,c.fH)(B,r,i,s);return R(n.beta,a,l,t,o)}return U.unsafe(r,e)}multiplyAndAddUnsafe(e,t,n){const r=this.multiplyUnsafe(t).add(e.multiplyUnsafe(n));return r.is0()?void 0:r}toAffine(e){return T(this,e)}isTorsionFree(){const{isTorsionFree:e}=t;return l===g||(e?e(B,this):U.unsafe(this,d).is0())}clearCofactor(){const{clearCofactor:e}=t;return l===g?this:e?e(B,this):this.multiplyUnsafe(l)}isSmallOrder(){return this.multiplyUnsafe(l).is0()}toBytes(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return(0,a.d6)(e,"isCompressed"),this.assertValidity(),y(B,this,e)}toHex(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return(0,o.My)(this.toBytes(e))}toString(){return"<Point ".concat(this.is0()?"ZERO":this.toHex(),">")}get px(){return this.X}get py(){return this.X}get pz(){return this.Z}toRawBytes(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.toBytes(e)}_setWindowSize(e){this.precompute(e)}static normalizeZ(e){return(0,c.Ak)(B,e)}static msm(e,t){return(0,c.Xf)(B,i,e,t)}static fromPrivateKey(e){return B.BASE.multiply(w(i,e))}}B.BASE=new B(s.Gx,s.Gy,r.ONE),B.ZERO=new B(r.ZERO,r.ONE,r.ZERO),B.Fp=r,B.Fn=i;const N=i.BITS,U=new c.hT(B,t.endo?Math.ceil(N/2):N);return B.BASE.precompute(8),B}function x(e){return Uint8Array.of(e?2:3)}function A(e,t){(0,l.jr)(e);const{A:n,B:r,Z:i}=t;if(!e.isValid(n)||!e.isValid(r)||!e.isValid(i))throw new Error("mapToCurveSimpleSWU: invalid opts");const o=function(e,t){const n=e.ORDER;let r=m;for(let p=n-g;p%y===m;p/=y)r+=g;const i=r,o=y<<i-g-g,s=o*y,a=(n-g)/s,c=(a-g)/y,l=s-g,u=o,d=e.pow(t,a),h=e.pow(t,(a+g)/y);let f=(t,n)=>{let r=d,o=e.pow(n,l),s=e.sqr(o);s=e.mul(s,n);let a=e.mul(t,s);a=e.pow(a,c),a=e.mul(a,o),o=e.mul(a,n),s=e.mul(a,t);let f=e.mul(s,o);a=e.pow(f,u);let p=e.eql(a,e.ONE);o=e.mul(s,h),a=e.mul(f,r),s=e.cmov(o,s,p),f=e.cmov(a,f,p);for(let c=i;c>g;c--){let t=c-y;t=y<<t-g;let n=e.pow(f,t);const i=e.eql(n,e.ONE);o=e.mul(s,r),r=e.mul(r,r),n=e.mul(f,r),s=e.cmov(o,s,i),f=e.cmov(n,f,i)}return{isValid:p,value:s}};if(e.ORDER%v===b){const n=(e.ORDER-b)/v,r=e.sqrt(e.neg(t));f=(t,i)=>{let o=e.sqr(i);const s=e.mul(t,i);o=e.mul(o,s);let a=e.pow(o,n);a=e.mul(a,s);const c=e.mul(a,r),l=e.mul(e.sqr(a),i),u=e.eql(l,t);return{isValid:u,value:e.cmov(c,a,u)}}}return f}(e,i);if(!e.isOdd)throw new Error("Field does not have .isOdd()");return t=>{let s,a,c,u,d,h,f,p;s=e.sqr(t),s=e.mul(s,i),a=e.sqr(s),a=e.add(a,s),c=e.add(a,e.ONE),c=e.mul(c,r),u=e.cmov(i,e.neg(a),!e.eql(a,e.ZERO)),u=e.mul(u,n),a=e.sqr(c),h=e.sqr(u),d=e.mul(h,n),a=e.add(a,d),a=e.mul(a,c),h=e.mul(h,u),d=e.mul(h,r),a=e.add(a,d),f=e.mul(s,c);const{isValid:m,value:g}=o(a,h);p=e.mul(s,t),p=e.mul(p,g),f=e.cmov(f,c,m),p=e.cmov(p,g,m);const y=e.isOdd(t)===e.isOdd(p);p=e.cmov(e.neg(p),p,y);const b=(0,l.pS)(e,[u],!0)[0];return f=e.mul(f,b),{x:f,y:p}}}function k(e,t){return{secretKey:t.BYTES,publicKey:1+e.BYTES,publicKeyUncompressed:1+2*e.BYTES,publicKeyHasPrefix:!0,signature:2*t.BYTES}}function E(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,o.sd)(t),(0,a.DS)(n,{},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"});const r=n.randomBytes||o.po,i=n.hmac||function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return(0,s.w)(t,e,(0,o.Id)(...r))},{Fp:c,Fn:u}=e,{ORDER:f,BITS:b}=u,{keygen:v,getPublicKey:_,getSharedSecret:A,utils:E,lengths:S}=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{Fn:n}=e,r=t.randomBytes||o.po,i=Object.assign(k(e.Fp,n),{seed:(0,l.Tp)(n.ORDER)});function s(e){try{return!!w(n,e)}catch(t){return!1}}function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r(i.seed);return(0,l.qy)((0,a.eV)(e,i.seed,"seed"),n.ORDER)}function u(t){let r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.BASE.multiply(w(n,t)).toBytes(r)}function d(t){if("bigint"===typeof t)return!1;if(t instanceof e)return!0;const{secretKey:r,publicKey:o,publicKeyUncompressed:s}=i;if(n.allowedLengths||r===o)return;const c=(0,a.qj)("key",t).length;return c===o||c===s}const h={isValidSecretKey:s,isValidPublicKey:function(t,n){const{publicKey:r,publicKeyUncompressed:o}=i;try{const i=t.length;return(!0!==n||i===r)&&(!1!==n||i===o)&&!!e.fromBytes(t)}catch(s){return!1}},randomSecretKey:c,isValidPrivateKey:s,randomPrivateKey:c,normPrivateKeyToScalar:e=>w(n,e),precompute(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.BASE).precompute(t,!1)}};return Object.freeze({getPublicKey:u,getSharedSecret:function(t,r){let i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!0===d(t))throw new Error("first arg must be private key");if(!1===d(r))throw new Error("second arg must be public key");const o=w(n,t);return e.fromHex(r).multiply(o).toBytes(i)},keygen:function(e){const t=c(e);return{secretKey:t,publicKey:u(t)}},Point:e,utils:h,lengths:i})}(e,n),P={prehash:!1,lowS:"boolean"===typeof n.lowS&&n.lowS,format:void 0,extraEntropy:!1},C="compact";function I(e){return e>f>>g}function M(e,t){if(!u.isValidNot0(t))throw new Error("invalid signature ".concat(e,": out of range 1..Point.Fn.ORDER"));return t}class T{constructor(e,t,n){this.r=M("r",e),this.s=M("s",t),null!=n&&(this.recovery=n),Object.freeze(this)}static fromBytes(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;if(function(e,t){d(t);const n=S.signature,r="compact"===t?n:"recovered"===t?n+1:void 0;(0,a.eV)(e,r,"".concat(t," signature"))}(e,n),"der"===n){const{r:t,s:n}=p.toSig((0,a.eV)(e));return new T(t,n)}"recovered"===n&&(t=e[0],n="compact",e=e.subarray(1));const r=u.BYTES,i=e.subarray(0,r),o=e.subarray(r,2*r);return new T(u.fromBytes(i),u.fromBytes(o),t)}static fromHex(e,t){return this.fromBytes((0,o.aT)(e),t)}addRecoveryBit(e){return new T(this.r,this.s,e)}recoverPublicKey(t){const n=c.ORDER,{r:r,s:i,recovery:s}=this;if(null==s||![0,1,2,3].includes(s))throw new Error("recovery id invalid");if(f*y<n&&s>1)throw new Error("recovery id is ambiguous for h>1 curve");const l=2===s||3===s?r+f:r;if(!c.isValid(l))throw new Error("recovery id 2 or 3 invalid");const d=c.toBytes(l),h=e.fromBytes((0,o.Id)(x(0===(1&s)),d)),p=u.inv(l),m=R((0,a.qj)("msgHash",t)),g=u.create(-m*p),b=u.create(i*p),v=e.BASE.multiplyUnsafe(g).add(h.multiplyUnsafe(b));if(v.is0())throw new Error("point at infinify");return v.assertValidity(),v}hasHighS(){return I(this.s)}toBytes(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C;if(d(e),"der"===e)return(0,o.aT)(p.hexFromSig(this));const t=u.toBytes(this.r),n=u.toBytes(this.s);if("recovered"===e){if(null==this.recovery)throw new Error("recovery bit must be present");return(0,o.Id)(Uint8Array.of(this.recovery),t,n)}return(0,o.Id)(t,n)}toHex(e){return(0,o.My)(this.toBytes(e))}assertValidity(){}static fromCompact(e){return T.fromBytes((0,a.qj)("sig",e),"compact")}static fromDER(e){return T.fromBytes((0,a.qj)("sig",e),"der")}normalizeS(){return this.hasHighS()?new T(this.r,u.neg(this.s),this.recovery):this}toDERRawBytes(){return this.toBytes("der")}toDERHex(){return(0,o.My)(this.toBytes("der"))}toCompactRawBytes(){return this.toBytes("compact")}toCompactHex(){return(0,o.My)(this.toBytes("compact"))}}const O=n.bits2int||function(e){if(e.length>8192)throw new Error("input is too large");const t=(0,a.Ph)(e),n=8*e.length-b;return n>0?t>>BigInt(n):t},R=n.bits2int_modN||function(e){return u.create(O(e))},B=(0,a.OG)(b);function N(e){return(0,a.aK)("num < 2^"+b,e,m,B),u.toBytes(e)}function U(e,n){return(0,a.eV)(e,void 0,"message"),n?(0,a.eV)(t(e),void 0,"prehashed message"):e}return Object.freeze({keygen:v,getPublicKey:_,getSharedSecret:A,utils:E,lengths:S,Point:e,sign:function(n,s){let c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n=(0,a.qj)("message",n);const{seed:l,k2sig:d}=function(t,n,i){if(["recovered","canonical"].some(e=>e in i))throw new Error("sign() legacy options not supported");const{lowS:s,prehash:c,extraEntropy:l}=h(i,P);t=U(t,c);const d=R(t),f=w(u,n),p=[N(f),N(d)];if(null!=l&&!1!==l){const e=!0===l?r(S.secretKey):l;p.push((0,a.qj)("extraEntropy",e))}const y=(0,o.Id)(...p),b=d;return{seed:y,k2sig:function(t){const n=O(t);if(!u.isValidNot0(n))return;const r=u.inv(n),i=e.BASE.multiply(n).toAffine(),o=u.create(i.x);if(o===m)return;const a=u.create(r*u.create(b+o*f));if(a===m)return;let c=(i.x===o?0:2)|Number(i.y&g),l=a;return s&&I(a)&&(l=u.neg(a),c^=1),new T(o,l,c)}}}(n,s,c);return(0,a.fg)(t.outputLen,u.BYTES,i)(l,d)},verify:function(t,n,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const{lowS:s,prehash:c,format:l}=h(i,P);if(r=(0,a.qj)("publicKey",r),n=U((0,a.qj)("message",n),c),"strict"in i)throw new Error("options.strict was renamed to lowS");const d=void 0===l?function(e){let t;const n="string"===typeof e||(0,o.aY)(e),r=!n&&null!==e&&"object"===typeof e&&"bigint"===typeof e.r&&"bigint"===typeof e.s;if(!n&&!r)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");if(r)t=new T(e.r,e.s);else if(n){try{t=T.fromBytes((0,a.qj)("sig",e),"der")}catch(i){if(!(i instanceof p.Err))throw i}if(!t)try{t=T.fromBytes((0,a.qj)("sig",e),"compact")}catch(s){return!1}}return t||!1}(t):T.fromBytes((0,a.qj)("sig",t),l);if(!1===d)return!1;try{const t=e.fromBytes(r);if(s&&d.hasHighS())return!1;const{r:i,s:o}=d,a=R(n),c=u.inv(o),l=u.create(a*c),h=u.create(i*c),f=e.BASE.multiplyUnsafe(l).add(t.multiplyUnsafe(h));if(f.is0())return!1;return u.create(f.x)===i}catch(f){return!1}},recoverPublicKey:function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{prehash:r}=h(n,P);return t=U(t,r),T.fromBytes(e,"recovered").recoverPublicKey(t).toBytes()},Signature:T,hash:t})}function S(e){const t={a:e.a,b:e.b,p:e.Fp.ORDER,n:e.n,h:e.h,Gx:e.Gx,Gy:e.Gy},n=e.Fp;let r=e.allowedPrivateKeyLengths?Array.from(new Set(e.allowedPrivateKeyLengths.map(e=>Math.ceil(e/2)))):void 0;return{CURVE:t,curveOpts:{Fp:n,Fn:(0,l.D0)(t.n,{BITS:e.nBitLength,allowedLengths:r,modFromBytes:e.wrapPrivateKey}),allowInfinityPoint:e.allowInfinityPoint,endo:e.endo,isTorsionFree:e.isTorsionFree,clearCofactor:e.clearCofactor,fromBytes:e.fromBytes,toBytes:e.toBytes}}}function P(e){const{CURVE:t,curveOpts:n,hash:r,ecdsaOpts:i}=function(e){const{CURVE:t,curveOpts:n}=S(e),r={hmac:e.hmac,randomBytes:e.randomBytes,lowS:e.lowS,bits2int:e.bits2int,bits2int_modN:e.bits2int_modN};return{CURVE:t,curveOpts:n,hash:e.hash,ecdsaOpts:r}}(e);return function(e,t){const n=t.Point;return Object.assign({},t,{ProjectivePoint:n,CURVE:Object.assign({},e,(0,l.LH)(n.Fn.ORDER,n.Fn.BITS))})}(e,E(_(t,n),r,i))}var C=n(8788);const I={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},M={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),basises:[[BigInt("0x3086d221a7d46bcde86c90e49284eb15"),-BigInt("0xe4437ed6010e88286f547fa90abfe4c3")],[BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),BigInt("0x3086d221a7d46bcde86c90e49284eb15")]]},T=BigInt(0),O=BigInt(1),R=BigInt(2);const B=(0,l.D0)(I.p,{sqrt:function(e){const t=I.p,n=BigInt(3),r=BigInt(6),i=BigInt(11),o=BigInt(22),s=BigInt(23),a=BigInt(44),c=BigInt(88),u=e*e*e%t,d=u*u*e%t,h=(0,l.zH)(d,n,t)*d%t,f=(0,l.zH)(h,n,t)*d%t,p=(0,l.zH)(f,R,t)*u%t,m=(0,l.zH)(p,i,t)*p%t,g=(0,l.zH)(m,o,t)*m%t,y=(0,l.zH)(g,a,t)*g%t,b=(0,l.zH)(y,c,t)*y%t,v=(0,l.zH)(b,a,t)*g%t,w=(0,l.zH)(v,n,t)*d%t,_=(0,l.zH)(w,s,t)*m%t,x=(0,l.zH)(_,r,t)*u%t,A=(0,l.zH)(x,R,t);if(!B.eql(B.sqr(A),e))throw new Error("Cannot find square root");return A}}),N=function(e,t){const n=t=>P((0,r.A)((0,r.A)({},e),{},{hash:t}));return(0,r.A)((0,r.A)({},n(t)),{},{create:n})}((0,r.A)((0,r.A)({},I),{},{Fp:B,lowS:!0,endo:M}),i.sha256),U={};function j(e){let t=U[e];if(void 0===t){const n=(0,i.sha256)((0,o.AI)(e));t=(0,o.Id)(n,n),U[e]=t}for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return(0,i.sha256)((0,o.Id)(t,...r))}const L=e=>e.toBytes(!0).slice(1),F=(()=>N.Point)(),D=e=>e%R===T;function z(e){const{Fn:t,BASE:n}=F,r=w(t,e),i=n.multiply(r);return{scalar:D(i.y)?r:t.neg(r),bytes:L(i)}}function q(e){const t=B;if(!t.isValidNot0(e))throw new Error("invalid x: Fail if x \u2265 p");const n=t.create(e*e),r=t.create(n*e+BigInt(7));let i=t.sqrt(r);D(i)||(i=t.neg(i));const o=F.fromAffine({x:e,y:i});return o.assertValidity(),o}const H=a.Ph;function W(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return F.Fn.create(H(j("BIP0340/challenge",...t)))}function K(e){return z(e).bytes}function $(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,o.po)(32);const{Fn:r}=F,i=(0,a.qj)("message",e),{bytes:s,scalar:c}=z(t),l=(0,a.qj)("auxRand",n,32),u=r.toBytes(c^H(j("BIP0340/aux",l))),d=j("BIP0340/nonce",u,s,i),{bytes:h,scalar:f}=z(d),p=W(h,s,i),m=new Uint8Array(64);if(m.set(h,0),m.set(r.toBytes(r.create(f+p*c)),32),!V(m,i,s))throw new Error("sign: Invalid signature produced");return m}function V(e,t,n){const{Fn:r,BASE:i}=F,o=(0,a.qj)("signature",e,64),s=(0,a.qj)("message",t),c=(0,a.qj)("publicKey",n,32);try{const e=q(H(c)),t=H(o.subarray(0,32));if(!(0,a.r4)(t,O,I.p))return!1;const n=H(o.subarray(32,64));if(!(0,a.r4)(n,O,I.n))return!1;const l=W(r.toBytes(t),L(e),s),u=i.multiplyUnsafe(n).add(e.multiplyUnsafe(r.neg(l))),{x:d,y:h}=u.toAffine();return!(u.is0()||!D(h)||d!==t)}catch(l){return!1}}const G=(()=>{const e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,o.po)(48);return(0,l.qy)(e,I.n)};return N.utils.randomSecretKey,{keygen:function(t){const n=e(t);return{secretKey:n,publicKey:K(n)}},getPublicKey:K,sign:$,verify:V,Point:F,utils:{randomSecretKey:e,randomPrivateKey:e,taggedHash:j,lift_x:q,pointToBytes:L,numberToBytesBE:a.lq,bytesToNumberBE:a.Ph,mod:l.zi},lengths:{secretKey:32,publicKey:32,publicKeyHasPrefix:!1,signature:64,seed:48}}})(),J=(()=>(0,C.FL)(B,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(e=>e.map(e=>BigInt(e)))))(),Z=(()=>A(B,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:B.create(BigInt("-11"))}))(),Y=(()=>(0,C.qj)(N.Point,e=>{const{x:t,y:n}=Z(B.create(e[0]));return J(t,n)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:B.ORDER,m:1,k:128,expand:"xmd",hash:i.sha256}))(),Q=(()=>Y.hashToCurve)(),X=(()=>Y.encodeToCurve)()},8745:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PublicKey=void 0;var r=n(4314),i=n(1586),o=function(){function e(e,t){var n=(0,i.convertPublicKeyFormat)(e,!0,t),r=(0,i.convertPublicKeyFormat)(e,!1,t);this.data=n,this.dataUncompressed=n.length!==r.length?r:null}return e.fromHex=function(t,n){return new e((0,i.hexToPublicKey)(t,n),n)},Object.defineProperty(e.prototype,"_uncompressed",{get:function(){return null!==this.dataUncompressed?this.dataUncompressed:this.data},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uncompressed",{get:function(){return Buffer.from(this._uncompressed)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"compressed",{get:function(){return Buffer.from(this.data)},enumerable:!1,configurable:!0}),e.prototype.toBytes=function(e){return void 0===e&&(e=!0),e?this.data:this._uncompressed},e.prototype.toHex=function(e){return void 0===e&&(e=!0),(0,r.bytesToHex)(this.toBytes(e))},e.prototype.decapsulate=function(e,t){void 0===t&&(t=!1);var n=this.toBytes(t),r=e.multiply(this,t);return(0,i.getSharedKey)(n,r)},e.prototype.equals=function(e){return(0,r.equalBytes)(this.data,e.data)},e}();t.PublicKey=o},8785:(e,t,n)=>{"use strict";const r=n(3794),i=n(9070),o=n(5544),s=n(3007),a=n(9812),c=n(2445),l=n(3514),u=n(6019),d=n(2500),h=n(5206),f=n(5474),p=n(817),m=n(6141),g=n(8116),y=n(5646),b=n(1567),v=n(593),w=n(2715),_=n(2065),x=n(6592),A=n(3751),k=n(61),E=n(8299),S=n(4301),P=n(804),C=n(5555),I=n(9622),M=n(2548),T=n(1227),O=n(3882),R=n(3643),B=n(784),N=n(2954),U=n(1457),j=n(8950),L=n(6007),F=n(223),D=n(6618),z=n(1304),q=n(2873),H=n(4084);e.exports={parse:a,valid:c,clean:l,inc:u,diff:d,major:h,minor:f,patch:p,prerelease:m,compare:g,rcompare:y,compareLoose:b,compareBuild:v,sort:w,rsort:_,gt:x,lt:A,eq:k,neq:E,gte:S,lte:P,cmp:C,coerce:I,Comparator:M,Range:T,satisfies:O,toComparators:R,maxSatisfying:B,minSatisfying:N,minVersion:U,validRange:j,outside:L,gtr:F,ltr:D,intersects:z,simplifyRange:q,subset:H,SemVer:o,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:s.compareIdentifiers,rcompareIdentifiers:s.rcompareIdentifiers}},8788:(e,t,n)=>{"use strict";n.d(t,{FL:()=>f,Tq:()=>d,qX:()=>p,qj:()=>m});var r=n(3808),i=n(2766),o=n(4902);const s=r.Ph;function a(e,t){if(l(e),l(t),e<0||e>=1<<8*t)throw new Error("invalid I2OSP input: "+e);const n=Array.from({length:t}).fill(0);for(let r=t-1;r>=0;r--)n[r]=255&e,e>>>=8;return new Uint8Array(n)}function c(e,t){const n=new Uint8Array(e.length);for(let r=0;r<e.length;r++)n[r]=e[r]^t[r];return n}function l(e){if(!Number.isSafeInteger(e))throw new Error("number expected")}function u(e){if(!(0,i.aY)(e)&&"string"!==typeof e)throw new Error("DST must be Uint8Array or string");return"string"===typeof e?(0,i.AI)(e):e}function d(e,t,n,r){(0,i.DO)(e),l(n),(t=u(t)).length>255&&(t=r((0,i.Id)((0,i.AI)("H2C-OVERSIZE-DST-"),t)));const{outputLen:o,blockLen:s}=r,d=Math.ceil(n/o);if(n>65535||d>255)throw new Error("expand_message_xmd: invalid lenInBytes");const h=(0,i.Id)(t,a(t.length,1)),f=a(0,s),p=a(n,2),m=new Array(d),g=r((0,i.Id)(f,e,p,a(0,1),h));m[0]=r((0,i.Id)(g,a(1,1),h));for(let l=1;l<=d;l++){const e=[c(g,m[l-1]),a(l+1,1),h];m[l]=r((0,i.Id)(...e))}return(0,i.Id)(...m).slice(0,n)}function h(e,t,n){(0,r.DS)(n,{p:"bigint",m:"number",k:"number",hash:"function"});const{p:c,k:h,m:f,hash:p,expand:m,DST:g}=n;if(!(0,r.jN)(n.hash))throw new Error("expected valid hash");(0,i.DO)(e),l(t);const y=c.toString(2).length,b=Math.ceil((y+h)/8),v=t*f*b;let w;if("xmd"===m)w=d(e,g,v,p);else if("xof"===m)w=function(e,t,n,r,o){if((0,i.DO)(e),l(n),(t=u(t)).length>255){const e=Math.ceil(2*r/8);t=o.create({dkLen:e}).update((0,i.AI)("H2C-OVERSIZE-DST-")).update(t).digest()}if(n>65535||t.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return o.create({dkLen:n}).update(e).update(a(n,2)).update(t).update(a(t.length,1)).digest()}(e,g,v,h,p);else{if("_internal_pass"!==m)throw new Error('expand must be "xmd" or "xof"');w=e}const _=new Array(t);for(let r=0;r<t;r++){const e=new Array(f);for(let t=0;t<f;t++){const n=b*(t+r*f),i=w.subarray(n,n+b);e[t]=(0,o.zi)(s(i),c)}_[r]=e}return _}function f(e,t){const n=t.map(e=>Array.from(e).reverse());return(t,r)=>{const[i,s,a,c]=n.map(n=>n.reduce((n,r)=>e.add(e.mul(n,t),r))),[l,u]=(0,o.pS)(e,[s,c],!0);return t=e.mul(i,l),r=e.mul(r,e.mul(a,u)),{x:t,y:r}}}const p=(0,i.AI)("HashToScalar-");function m(e,t,n){if("function"!==typeof t)throw new Error("mapToCurve() must be defined");function r(n){return e.fromAffine(t(n))}function i(t){const n=t.clearCofactor();return n.equals(e.ZERO)?e.ZERO:(n.assertValidity(),n)}return{defaults:n,hashToCurve(e,t){const o=h(e,2,Object.assign({},n,t)),s=r(o[0]),a=r(o[1]);return i(s.add(a))},encodeToCurve(e,t){const o=n.encodeDST?{DST:n.encodeDST}:{};return i(r(h(e,1,Object.assign({},n,o,t))[0]))},mapToCurve(e){if(!Array.isArray(e))throw new Error("expected array of bigints");for(const t of e)if("bigint"!==typeof t)throw new Error("expected array of bigints");return i(r(e))},hashToScalar(t,r){const i=e.Fn.ORDER;return h(t,1,Object.assign({},n,{p:i,m:1,DST:p},r))[0][0]}}}},8798:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AEAD_TAG_LENGTH=t.XCHACHA20_NONCE_LENGTH=t.CURVE25519_PUBLIC_KEY_SIZE=t.ETH_PUBLIC_KEY_SIZE=t.UNCOMPRESSED_PUBLIC_KEY_SIZE=t.COMPRESSED_PUBLIC_KEY_SIZE=t.SECRET_KEY_LENGTH=void 0,t.SECRET_KEY_LENGTH=32,t.COMPRESSED_PUBLIC_KEY_SIZE=33,t.UNCOMPRESSED_PUBLIC_KEY_SIZE=65,t.ETH_PUBLIC_KEY_SIZE=64,t.CURVE25519_PUBLIC_KEY_SIZE=32,t.XCHACHA20_NONCE_LENGTH=24,t.AEAD_TAG_LENGTH=16},8859:(e,t,n)=>{"use strict";n.d(t,{k:()=>p});var r=n(3530),i=n(7568);const o=e=>(0,i.S)((0,r.ZJ)(e));var s=n(9740),a=n(8512),c=n(4015);const l=(0,a.A)(/^tuple((\[(\d*)\])*)$/,{array:1});function u(e){let t=e.type;if(l.test(e.type)&&"components"in e){var n;t="(";const r=e.components.length;for(let n=0;n<r;n++){t+=u(e.components[n]),n<r-1&&(t+=", ")}const i=(0,c.Yv)(l,e.type);return t+=")".concat(null!==(n=null===i||void 0===i?void 0:i.array)&&void 0!==n?n:""),u((0,s.A)((0,s.A)({},e),{},{type:t}))}return"indexed"in e&&e.indexed&&(t="".concat(t," indexed")),e.name?"".concat(t," ").concat(e.name):t}function d(e){let t="";const n=e.length;for(let r=0;r<n;r++){t+=u(e[r]),r!==n-1&&(t+=", ")}return t}var h=n(8090);const f=e=>function(e){let t=!0,n="",r=0,i="",o=!1;for(let s=0;s<e.length;s++){const a=e[s];if(["(",")",","].includes(a)&&(t=!0),"("===a&&r++,")"===a&&r--,t)if(0!==r)" "!==a?(i+=a,n+=a):","!==e[s-1]&&","!==n&&",("!==n&&(n="",t=!1);else if(" "===a&&["event","function",""].includes(i))i="";else if(i+=a,")"===a){o=!0;break}}if(!o)throw new h.C("Unable to normalize signature.");return i}("string"===typeof e?e:function(e){var t;return"function"===e.type?"function ".concat(e.name,"(").concat(d(e.inputs),")").concat(e.stateMutability&&"nonpayable"!==e.stateMutability?" ".concat(e.stateMutability):"").concat(null!==(t=e.outputs)&&void 0!==t&&t.length?" returns (".concat(d(e.outputs),")"):""):"event"===e.type?"event ".concat(e.name,"(").concat(d(e.inputs),")"):"error"===e.type?"error ".concat(e.name,"(").concat(d(e.inputs),")"):"constructor"===e.type?"constructor(".concat(d(e.inputs),")").concat("payable"===e.stateMutability?" payable":""):"fallback"===e.type?"fallback() external".concat("payable"===e.stateMutability?" payable":""):"receive() external payable"}(e));function p(e){return t=f(e),o(t);var t}},8950:(e,t,n)=>{"use strict";const r=n(1227);e.exports=(e,t)=>{try{return new r(e,t).range||"*"}catch(n){return null}}},9063:(e,t,n)=>{"use strict";function r(e,t,n){return t<=e&&e<=n}function i(e){if(void 0===e)return{};if(e===Object(e))return e;throw TypeError("Could not convert argument to dictionary")}n.r(t),n.d(t,{TextDecoder:()=>l,TextEncoder:()=>u});function o(e){this.tokens=[].slice.call(e)}o.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():-1},prepend:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.unshift(t.pop());else this.tokens.unshift(e)},push:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.push(t.shift());else this.tokens.push(e)}};var s=-1;function a(e,t){if(e)throw TypeError("Decoder error");return t||65533}var c="utf-8";function l(e,t){if(!(this instanceof l))return new l(e,t);if((e=void 0!==e?String(e).toLowerCase():c)!==c)throw new Error("Encoding not supported. Only utf-8 is supported");t=i(t),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=Boolean(t.fatal),this._ignoreBOM=Boolean(t.ignoreBOM),Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this._fatal}),Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}function u(e,t){if(!(this instanceof u))return new u(e,t);if((e=void 0!==e?String(e).toLowerCase():c)!==c)throw new Error("Encoding not supported. Only utf-8 is supported");t=i(t),this._streaming=!1,this._encoder=null,this._options={fatal:Boolean(t.fatal)},Object.defineProperty(this,"encoding",{value:"utf-8"})}function d(e){var t=e.fatal,n=0,i=0,o=0,c=128,l=191;this.handler=function(e,u){if(-1===u&&0!==o)return o=0,a(t);if(-1===u)return s;if(0===o){if(r(u,0,127))return u;if(r(u,194,223))o=1,n=u-192;else if(r(u,224,239))224===u&&(c=160),237===u&&(l=159),o=2,n=u-224;else{if(!r(u,240,244))return a(t);240===u&&(c=144),244===u&&(l=143),o=3,n=u-240}return n<<=6*o,null}if(!r(u,c,l))return n=o=i=0,c=128,l=191,e.prepend(u),a(t);if(c=128,l=191,n+=u-128<<6*(o-(i+=1)),i!==o)return null;var d=n;return n=o=i=0,d}}function h(e){e.fatal;this.handler=function(e,t){if(-1===t)return s;if(r(t,0,127))return t;var n,i;r(t,128,2047)?(n=1,i=192):r(t,2048,65535)?(n=2,i=224):r(t,65536,1114111)&&(n=3,i=240);for(var o=[(t>>6*n)+i];n>0;){var a=t>>6*(n-1);o.push(128|63&a),n-=1}return o}}l.prototype={decode:function(e,t){var n;n="object"===typeof e&&e instanceof ArrayBuffer?new Uint8Array(e):"object"===typeof e&&"buffer"in e&&e.buffer instanceof ArrayBuffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(0),t=i(t),this._streaming||(this._decoder=new d({fatal:this._fatal}),this._BOMseen=!1),this._streaming=Boolean(t.stream);for(var r,a=new o(n),c=[];!a.endOfStream()&&(r=this._decoder.handler(a,a.read()))!==s;)null!==r&&(Array.isArray(r)?c.push.apply(c,r):c.push(r));if(!this._streaming){do{if((r=this._decoder.handler(a,a.read()))===s)break;null!==r&&(Array.isArray(r)?c.push.apply(c,r):c.push(r))}while(!a.endOfStream());this._decoder=null}return c.length&&(-1===["utf-8"].indexOf(this.encoding)||this._ignoreBOM||this._BOMseen||(65279===c[0]?(this._BOMseen=!0,c.shift()):this._BOMseen=!0)),function(e){for(var t="",n=0;n<e.length;++n){var r=e[n];r<=65535?t+=String.fromCharCode(r):(r-=65536,t+=String.fromCharCode(55296+(r>>10),56320+(1023&r)))}return t}(c)}},u.prototype={encode:function(e,t){e=e?String(e):"",t=i(t),this._streaming||(this._encoder=new h(this._options)),this._streaming=Boolean(t.stream);for(var n,r=[],a=new o(function(e){for(var t=String(e),n=t.length,r=0,i=[];r<n;){var o=t.charCodeAt(r);if(o<55296||o>57343)i.push(o);else if(56320<=o&&o<=57343)i.push(65533);else if(55296<=o&&o<=56319)if(r===n-1)i.push(65533);else{var s=e.charCodeAt(r+1);if(56320<=s&&s<=57343){var a=1023&o,c=1023&s;i.push(65536+(a<<10)+c),r+=1}else i.push(65533)}r+=1}return i}(e));!a.endOfStream()&&(n=this._encoder.handler(a,a.read()))!==s;)Array.isArray(n)?r.push.apply(r,n):r.push(n);if(!this._streaming){for(;(n=this._encoder.handler(a,a.read()))!==s;)Array.isArray(n)?r.push.apply(r,n):r.push(n);this._encoder=null}return new Uint8Array(r)}}},9070:e=>{"use strict";const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},9187:(e,t,n)=>{"use strict";n.d(t,{yH:()=>h});var r=n(4223),i=n(7578),o=n(1296),s=n(4235),a=n(2569),c=n(4456);const l=["address"];function u(e){if(e&&0!==e.length)return e.reduce((e,t)=>{let{slot:n,value:r}=t;if(66!==n.length)throw new o.NV({size:n.length,targetSize:66,type:"hex"});if(66!==r.length)throw new o.NV({size:r.length,targetSize:66,type:"hex"});return e[n]=r,e},{})}function d(e){const{balance:t,nonce:n,state:r,stateDiff:i,code:o}=e,a={};if(void 0!==o&&(a.code=o),void 0!==t&&(a.balance=(0,c.cK)(t)),void 0!==n&&(a.nonce=(0,c.cK)(n)),void 0!==r&&(a.state=u(r)),void 0!==i){if(a.state)throw new s.ft;a.stateDiff=u(i)}return a}function h(e){if(!e)return;const t={};for(const n of e){const{address:e}=n,o=(0,r.A)(n,l);if(!(0,a.P)(e,{strict:!1}))throw new i.M({address:e});if(t[e])throw new s.Hi({address:e});t[e]=d(o)}return t}},9231:(e,t,n)=>{"use strict";n.d(t,{Ak:()=>c,UT:()=>x,Xf:()=>w,fH:()=>v,hT:()=>b,u0:()=>a});var r=n(3808),i=n(4902);const o=BigInt(0),s=BigInt(1);function a(e,t){const n=t.negate();return e?n:t}function c(e,t){const n=(0,i.pS)(e.Fp,t.map(e=>e.Z));return t.map((t,r)=>e.fromAffine(t.toAffine(n[r])))}function l(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function u(e,t){l(e,t);const n=2**e;return{windows:Math.ceil(t/e)+1,windowSize:2**(e-1),mask:(0,r.OG)(e),maxNumber:n,shiftBy:BigInt(e)}}function d(e,t,n){const{windowSize:r,mask:i,maxNumber:o,shiftBy:a}=n;let c=Number(e&i),l=e>>a;c>r&&(c-=o,l+=s);const u=t*r;return{nextN:l,offset:u+Math.abs(c)-1,isZero:0===c,isNeg:c<0,isNegF:t%2!==0,offsetF:u}}function h(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach((e,n)=>{if(!(e instanceof t))throw new Error("invalid point at index "+n)})}function f(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((e,n)=>{if(!t.isValid(e))throw new Error("invalid scalar at index "+n)})}const p=new WeakMap,m=new WeakMap;function g(e){return m.get(e)||1}function y(e){if(e!==o)throw new Error("invalid wNAF")}class b{constructor(e,t){this.BASE=e.BASE,this.ZERO=e.ZERO,this.Fn=e.Fn,this.bits=t}_unsafeLadder(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.ZERO,r=e;for(;t>o;)t&s&&(n=n.add(r)),r=r.double(),t>>=s;return n}precomputeWindow(e,t){const{windows:n,windowSize:r}=u(t,this.bits),i=[];let o=e,s=o;for(let a=0;a<n;a++){s=o,i.push(s);for(let e=1;e<r;e++)s=s.add(o),i.push(s);o=s.double()}return i}wNAF(e,t,n){if(!this.Fn.isValid(n))throw new Error("invalid scalar");let r=this.ZERO,i=this.BASE;const o=u(e,this.bits);for(let s=0;s<o.windows;s++){const{nextN:e,offset:c,isZero:l,isNeg:u,isNegF:h,offsetF:f}=d(n,s,o);n=e,l?i=i.add(a(h,t[f])):r=r.add(a(u,t[c]))}return y(n),{p:r,f:i}}wNAFUnsafe(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.ZERO;const i=u(e,this.bits);for(let s=0;s<i.windows&&n!==o;s++){const{nextN:e,offset:o,isZero:a,isNeg:c}=d(n,s,i);if(n=e,!a){const e=t[o];r=r.add(c?e.negate():e)}}return y(n),r}getPrecomputes(e,t,n){let r=p.get(t);return r||(r=this.precomputeWindow(t,e),1!==e&&("function"===typeof n&&(r=n(r)),p.set(t,r))),r}cached(e,t,n){const r=g(e);return this.wNAF(r,this.getPrecomputes(r,e,n),t)}unsafe(e,t,n,r){const i=g(e);return 1===i?this._unsafeLadder(e,t,r):this.wNAFUnsafe(i,this.getPrecomputes(i,e,n),t,r)}createCache(e,t){l(t,this.bits),m.set(e,t),p.delete(e)}hasCache(e){return 1!==g(e)}}function v(e,t,n,r){let i=t,a=e.ZERO,c=e.ZERO;for(;n>o||r>o;)n&s&&(a=a.add(i)),r&s&&(c=c.add(i)),i=i.double(),n>>=s,r>>=s;return{p1:a,p2:c}}function w(e,t,n,i){h(n,e),f(i,t);const o=n.length,s=i.length;if(o!==s)throw new Error("arrays of points and scalars must have equal length");const a=e.ZERO,c=(0,r.dJ)(BigInt(o));let l=1;c>12?l=c-3:c>4?l=c-2:c>0&&(l=2);const u=(0,r.OG)(l),d=new Array(Number(u)+1).fill(a);let p=a;for(let r=Math.floor((t.BITS-1)/l)*l;r>=0;r-=l){d.fill(a);for(let t=0;t<s;t++){const e=i[t],o=Number(e>>BigInt(r)&u);d[o]=d[o].add(n[t])}let e=a;for(let t=d.length-1,n=a;t>0;t--)n=n.add(d[t]),e=e.add(n);if(p=p.add(e),0!==r)for(let t=0;t<l;t++)p=p.double()}return p}function _(e,t,n){if(t){if(t.ORDER!==e)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return(0,i.jr)(t),t}return(0,i.D0)(e,{isLE:n})}function x(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(void 0===r&&(r="edwards"===e),!t||"object"!==typeof t)throw new Error("expected valid ".concat(e," CURVE object"));for(const c of["p","n","h"]){const e=t[c];if(!("bigint"===typeof e&&e>o))throw new Error("CURVE.".concat(c," must be positive bigint"))}const i=_(t.p,n.Fp,r),s=_(t.n,n.Fn,r),a=["Gx","Gy","a","weierstrass"===e?"b":"d"];for(const o of a)if(!i.isValid(t[o]))throw new Error("CURVE.".concat(o," must be valid field element of CURVE.Fp"));return{CURVE:t=Object.freeze(Object.assign({},t)),Fp:i,Fn:s}}},9405:e=>{var t=1e3,n=60*t,r=60*n,i=24*r,o=7*i,s=365.25*i;function a(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,c){c=c||{};var l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a)return;var c=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*r;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===l&&isFinite(e))return c.long?function(e){var o=Math.abs(e);if(o>=i)return a(e,o,i,"day");if(o>=r)return a(e,o,r,"hour");if(o>=n)return a(e,o,n,"minute");if(o>=t)return a(e,o,t,"second");return e+" ms"}(e):function(e){var o=Math.abs(e);if(o>=i)return Math.round(e/i)+"d";if(o>=r)return Math.round(e/r)+"h";if(o>=n)return Math.round(e/n)+"m";if(o>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},9454:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(2387)},9517:(e,t,n)=>{"use strict";const r=n(882).v4;e.exports=function(e,t,n,i){if("string"!==typeof e)throw new TypeError(e+" must be a string");const o="number"===typeof(i=i||{}).version?i.version:2;if(1!==o&&2!==o)throw new TypeError(o+" must be 1 or 2");const s={method:e};if(2===o&&(s.jsonrpc="2.0"),t){if("object"!==typeof t&&!Array.isArray(t))throw new TypeError(t+" must be an object, array or omitted");s.params=t}if("undefined"===typeof n){const e="function"===typeof i.generator?i.generator:function(){return r()};s.id=e(s,i)}else 2===o&&null===n?i.notificationIdNull&&(s.id=null):s.id=n;return s}},9521:(e,t,n)=>{"use strict";n.d(t,{Ez:()=>o,LX:()=>r,WN:()=>i});const r="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",i="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",o="0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033"},9603:(e,t,n)=>{"use strict";n.d(t,{I:()=>i,R:()=>r});const r=e=>e,i=e=>e},9618:(e,t,n)=>{"use strict";n.r(t),n.d(t,{expand:()=>c,extract:()=>o,hkdf:()=>l});var r=n(4934),i=n(2766);function o(e,t,n){return(0,i.sd)(e),void 0===n&&(n=new Uint8Array(e.outputLen)),(0,r.w)(e,(0,i.ZJ)(n),(0,i.ZJ)(t))}const s=Uint8Array.from([0]),a=Uint8Array.of();function c(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:32;(0,i.sd)(e),(0,i.Fe)(o);const c=e.outputLen;if(o>255*c)throw new Error("Length should be <= 255*HashLen");const l=Math.ceil(o/c);void 0===n&&(n=a);const u=new Uint8Array(l*c),d=r.w.create(e,t),h=d._cloneInto(),f=new Uint8Array(d.outputLen);for(let r=0;r<l;r++)s[0]=r+1,h.update(0===r?a:f).update(n).update(s).digestInto(f),u.set(f,c*r),d._cloneInto(h);return d.destroy(),h.destroy(),(0,i.uH)(f,s),u.slice(0,o)}const l=(e,t,n,r,i)=>c(e,o(e,t,n),r,i)},9622:(e,t,n)=>{"use strict";const r=n(5544),i=n(9812),{safeRe:o,t:s}=n(3794);e.exports=(e,t)=>{if(e instanceof r)return e;if("number"===typeof e&&(e=String(e)),"string"!==typeof e)return null;let n=null;if((t=t||{}).rtl){const r=t.includePrerelease?o[s.COERCERTLFULL]:o[s.COERCERTL];let i;for(;(i=r.exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&i.index+i[0].length===n.index+n[0].length||(n=i),r.lastIndex=i.index+i[1].length+i[2].length;r.lastIndex=-1}else n=e.match(t.includePrerelease?o[s.COERCEFULL]:o[s.COERCE]);if(null===n)return null;const a=n[2],c=n[3]||"0",l=n[4]||"0",u=t.includePrerelease&&n[5]?"-".concat(n[5]):"",d=t.includePrerelease&&n[6]?"+".concat(n[6]):"";return i("".concat(a,".").concat(c,".").concat(l).concat(u).concat(d),t)}},9740:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(1979);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}},9774:(e,t,n)=>{"use strict";n.d(t,{W:()=>l});var r=n(8445),i=n(1588),o=n(2129),s=n(1503),a=n(1187),c=n(2311);function l(e){const{abi:t,data:n}=e,l=(0,o.di)(n,0,4);if("0x"===l)throw new i.O;const u=[...t||[],r.Mc,r.J9].find(e=>"error"===e.type&&l===(0,s.V)((0,c.B)(e)));if(!u)throw new i.Wq(l,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:u,args:"inputs"in u&&u.inputs&&u.inputs.length>0?(0,a.n)(u.inputs,(0,o.di)(n,4)):void 0,errorName:u.name}}},9804:function(e){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=90)}({17:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(18),i=function(){function e(){}return e.getFirstMatch=function(e,t){var n=t.match(e);return n&&n.length>0&&n[1]||""},e.getSecondMatch=function(e,t){var n=t.match(e);return n&&n.length>1&&n[2]||""},e.matchAndReturnConst=function(e,t,n){if(e.test(t))return n},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map(function(e){return parseInt(e,10)||0});if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map(function(e){return parseInt(e,10)||0});if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,n,r){void 0===r&&(r=!1);var i=e.getVersionPrecision(t),o=e.getVersionPrecision(n),s=Math.max(i,o),a=0,c=e.map([t,n],function(t){var n=s-e.getVersionPrecision(t),r=t+new Array(n+1).join(".0");return e.map(r.split("."),function(e){return new Array(20-e.length).join("0")+e}).reverse()});for(r&&(a=s-Math.min(i,o)),s-=1;s>=a;){if(c[0][s]>c[1][s])return 1;if(c[0][s]===c[1][s]){if(s===a)return 0;s-=1}else if(c[0][s]<c[1][s])return-1}},e.map=function(e,t){var n,r=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(n=0;n<e.length;n+=1)r.push(t(e[n]));return r},e.find=function(e,t){var n,r;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(n=0,r=e.length;n<r;n+=1){var i=e[n];if(t(i,n))return i}},e.assign=function(e){for(var t,n,r=e,i=arguments.length,o=new Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];if(Object.assign)return Object.assign.apply(Object,[e].concat(o));var a=function(){var e=o[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach(function(t){r[t]=e[t]})};for(t=0,n=o.length;t<n;t+=1)a();return e},e.getBrowserAlias=function(e){return r.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return r.BROWSER_MAP[e]||""},e}();t.default=i,e.exports=t.default},18:function(e,t,n){"use strict";t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast","Pale Moon":"pale_moon",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},t.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",pale_moon:"Pale Moon",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},t.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv",bot:"bot"},t.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},t.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(91))&&r.__esModule?r:{default:r},o=n(18);function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=function(){function e(){}var t,n,r;return e.getParser=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw new Error("UserAgent should be a string");return new i.default(e,t)},e.parse=function(e){return new i.default(e).getResult()},t=e,r=[{key:"BROWSER_MAP",get:function(){return o.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return o.ENGINE_MAP}},{key:"OS_MAP",get:function(){return o.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return o.PLATFORMS_MAP}}],(n=null)&&s(t.prototype,n),r&&s(t,r),e}();t.default=a,e.exports=t.default},91:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=c(n(92)),i=c(n(93)),o=c(n(94)),s=c(n(95)),a=c(n(17));function c(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(e,t){if(void 0===t&&(t=!1),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}var t=e.prototype;return t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=a.default.find(r.default,function(t){if("function"==typeof t.test)return t.test(e);if(Array.isArray(t.test))return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=a.default.find(i.default,function(t){if("function"==typeof t.test)return t.test(e);if(Array.isArray(t.test))return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=a.default.find(o.default,function(t){if("function"==typeof t.test)return t.test(e);if(Array.isArray(t.test))return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=a.default.find(s.default,function(t){if("function"==typeof t.test)return t.test(e);if(Array.isArray(t.test))return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return a.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,n={},r=0,i={},o=0;if(Object.keys(e).forEach(function(t){var s=e[t];"string"==typeof s?(i[t]=s,o+=1):"object"==typeof s&&(n[t]=s,r+=1)}),r>0){var s=Object.keys(n),c=a.default.find(s,function(e){return t.isOS(e)});if(c){var l=this.satisfies(n[c]);if(void 0!==l)return l}var u=a.default.find(s,function(e){return t.isPlatform(e)});if(u){var d=this.satisfies(n[u]);if(void 0!==d)return d}}if(o>0){var h=Object.keys(i),f=a.default.find(h,function(e){return t.isBrowser(e,!0)});if(void 0!==f)return this.compareVersion(i[f])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),i=a.default.getBrowserTypeByAlias(r);return t&&i&&(r=i.toLowerCase()),r===n},t.compareVersion=function(e){var t=[0],n=e,r=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(n=e.substr(1),"="===e[1]?(r=!0,n=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?n=e.substr(1):"~"===e[0]&&(r=!0,n=e.substr(1)),t.indexOf(a.default.compareVersions(i,n,r))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some(function(e){return t.is(e)})},e}();t.default=l,e.exports=t.default},92:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=/version\/(\d+(\.?_?\d+)+)/i,s=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},n=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},n=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/PaleMoon/i],describe:function(e){var t={name:"Pale Moon"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:PaleMoon)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},n=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},n=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},n=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},n=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},n=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},n=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},n=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},n=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},n=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},n=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},n=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},n=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},n=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},n=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},n=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},n=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},n=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},n=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},n=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},n=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},n=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},n=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},n=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},n=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t={name:"Android Browser"},n=i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},n=i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},n=i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(t,e),version:i.default.getSecondMatch(t,e)}}}];t.default=s,e.exports=t.default},93:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),s=[{test:[/Roku\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:o.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=i.default.getWindowsVersionName(t);return{name:o.OS_MAP.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:o.OS_MAP.iOS},n=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe:function(e){var t=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=i.default.getMacOSVersionName(t),r={name:o.OS_MAP.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:o.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=i.default.getAndroidVersionName(t),r={name:o.OS_MAP.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:o.OS_MAP.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||i.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:o.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:o.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:o.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.PlayStation4,version:t}}}];t.default=s,e.exports=t.default},94:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),s=[{test:[/googlebot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=i.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe:function(e){var t=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/Nokia/i],describe:function(e){var t=i.default.getFirstMatch(/Nokia\s+([0-9]+(\.[0-9]+)?)/i,e),n={type:o.PLATFORMS_MAP.mobile,vendor:"Nokia"};return t&&(n.model=t),n}},{test:[/[^-]mobi/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}}];t.default=s,e.exports=t.default},95:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),s=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:o.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:o.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:o.ENGINE_MAP.Trident},n=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:o.ENGINE_MAP.Presto},n=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe:function(e){var t={name:o.ENGINE_MAP.Gecko},n=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:o.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:o.ENGINE_MAP.WebKit},n=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];t.default=s,e.exports=t.default}})},9812:(e,t,n)=>{"use strict";const r=n(5544);e.exports=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e instanceof r)return e;try{return new r(e,t)}catch(i){if(!n)return null;throw i}}},9921:e=>{"use strict";e.exports=JSON.parse('{"openrpc":"1.2.4","info":{"title":"JSON-RPC API","version":"1.0.0","description":"This section provides an interactive reference for MetaMask\'s Wallet JSON-RPC API. The API builds on a set of standard Ethereum methods with MetaMask-specific enhancements, and is designed for seamless integration into dapps."},"methods":[{"name":"wallet_addEthereumChain","tags":[{"$ref":"#/components/tags/MetaMask"},{"$ref":"#/components/tags/Multichain"}],"summary":"Adds an Ethereum chain to the wallet.","description":"Creates a confirmation asking the user to add the specified chain to the wallet application. The caller must specify a chain ID and some chain metadata. Specified by [EIP-3085](https://eips.ethereum.org/EIPS/eip-3085).","params":[{"name":"Chain","schema":{"$ref":"#/components/schemas/AddEthereumChainParameter"}}],"errors":[{"code":-32602,"message":"Expected null or array with at least one valid string HTTPS URL \'blockExplorerUrl\'. Received: ${blockExplorerUrls}"},{"code":-32602,"message":"Expected 0x-prefixed, unpadded, non-zero hexadecimal string \'chainId\'. Received:\\n${chainId}"},{"code":-32602,"message":"Invalid chain ID \\"${_chainId}\\": numerical value greater than max safe value. Received:\\n${chainId}"},{"code":-32602,"message":"May not specify default MetaMask chain."},{"code":-32602,"message":"Expected 2-6 character string \'nativeCurrency.symbol\'. Received:\\n${ticker}"},{"code":-32602,"message":"nativeCurrency.symbol does not match currency symbol for a network the user already has added with the same chainId. Received:\\n${ticker}"}],"result":{"name":"Null response","description":"This method returns `null` if the chain is added.","schema":{"type":"null"}},"examples":[{"name":"wallet_addEthereumChain example","params":[{"name":"Chain","value":{"chainId":"0x64","chainName":"Gnosis","rpcUrls":["https://rpc.gnosischain.com"],"iconUrls":["https://xdaichain.com/fake/example/url/xdai.svg","https://xdaichain.com/fake/example/url/xdai.png"],"nativeCurrency":{"name":"XDAI","symbol":"XDAI","decimals":18},"blockExplorerUrls":["https://blockscout.com/poa/xdai/"]}}],"result":{"name":"Null response","value":"null"}}]},{"name":"wallet_switchEthereumChain","tags":[{"$ref":"#/components/tags/MetaMask"}],"summary":"Switches the wallet\'s active Ethereum chain.","description":"Requests that the wallet switches its active Ethereum chain. Specified by [EIP-3326](https://eips.ethereum.org/EIPS/eip-3326).","params":[{"name":"Chain","schema":{"title":"Chain","description":"Object containing the chain ID to switch to.","type":"object","required":["chainId"],"properties":{"chainId":{"description":"The chain ID as a `0x`-prefixed hexadecimal string, as returned by the `eth_chainId` method.","type":"string"}}}}],"result":{"name":"Null response","description":"This method returns `null` if the active chain is switched.","schema":{"type":"null"}},"errors":[{"code":4902,"message":"Unrecognized chain ID. Try adding the chain using wallet_addEthereumChain first."}],"examples":[{"name":"wallet_switchEthereumChain example","params":[{"name":"Chain","value":{"chainId":"0x64"}}],"result":{"name":"Null response","value":"null"}}]},{"name":"wallet_getPermissions","tags":[{"$ref":"#/components/tags/MetaMask"}],"summary":"Gets the user\'s permissions.","description":"Gets the user\'s permissions. Specified by [EIP-2255](https://eips.ethereum.org/EIPS/eip-2255).","params":[],"result":{"name":"Permissions list","schema":{"$ref":"#/components/schemas/PermissionsList"}},"examples":[{"name":"wallet_getPermissions example","params":[],"result":{"name":"Permission list","value":{"eth_accounts":{}}}}]},{"name":"wallet_requestPermissions","tags":[{"$ref":"#/components/tags/MetaMask"}],"summary":"Requests additional permissions.","description":"Requests additional permissions from the user. This method accepts a single permission per call. Specified by [EIP-2255](https://eips.ethereum.org/EIPS/eip-2255).","params":[{"name":"Permission","required":true,"schema":{"title":"Permission","description":"Object containing the permission to request.","type":"object","properties":{"permission_name":{"type":"object","description":"The permission object. `permission_name` is the name of the permission being requested.","additionalProperties":true}}}}],"result":{"name":"Permissions list","schema":{"$ref":"#/components/schemas/PermissionsList"}},"examples":[{"name":"wallet_requestPermissions example","params":[{"name":"Permission","value":{"eth_accounts":{}}}],"result":{"name":"Permission list","value":{"eth_accounts":{}}}}],"errors":[{"$ref":"#/components/errors/UserRejected"}]},{"name":"wallet_revokePermissions","tags":[{"$ref":"#/components/tags/MetaMask"},{"$ref":"#/components/tags/Experimental"}],"summary":"Revokes the current dapp permissions.","description":"Revokes previously granted permissions for the current dapp identified by its origin. This method accepts a single permission per call. Specified by [MIP-2](https://github.com/MetaMask/metamask-improvement-proposals/blob/main/MIPs/mip-2.md) and only available for the MetaMask browser extension.","params":[{"name":"Permission","required":true,"schema":{"title":"Permission","description":"Object containing the permission to revoke.","type":"object","properties":{"permission_name":{"type":"object","description":"The permission object. `permission_name` is the name of the permission being revoked.","additionalProperties":true}}}}],"result":{"name":"Null response","description":"This method returns `null` if the permission is revoked.","schema":{"type":"null"}},"errors":[],"examples":[{"name":"wallet_revokePermissions example","params":[{"name":"Permission","value":{"eth_accounts":{}}}],"result":{"name":"Null response","value":"null"}}]},{"name":"personal_sign","tags":[{"$ref":"#/components/tags/MetaMask"},{"$ref":"#/components/tags/Restricted"},{"$ref":"#/components/tags/Multichain"}],"summary":"Presents a plain text signature challenge to the user.","description":"Presents a plain text signature challenge to the user and returns the signed response. Prepends a safe prefix to the signed message to prevent the challenge tricking users into signing a financial transaction. <br><br> MetaMask implements `personal_sign` similarly to the Go Ethereum client\'s `eth_sign` implementation. MetaMask\'s `personal_sign` doesn\'t accept a password. <br><br> This method requires that the user has granted permission to interact with their account first, so make sure to call `eth_requestAccounts` (recommended) or `wallet_requestPermissions` first.","deprecated":false,"params":[{"name":"Challenge","required":true,"description":"A hex-encoded UTF-8 string to present to the user. See how to encode a string like this in the [`browser-string-hexer`](https://github.com/danfinlay/browser-string-hexer) module.","schema":{"type":"string","pattern":"^0x[a-fA-F\\\\d]+$"}},{"name":"Address","required":true,"description":"The address of the requested signing account.","schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}}],"result":{"name":"Signature","description":"A hex-encoded signature.","schema":{"type":"string","pattern":"^0x[0-9a-f]*$"}},"examples":[{"name":"personal_sign example","params":[{"name":"Challenge","value":"0x506c65617365207369676e2074686973206d65737361676520746f20636f6e6669726d20796f7572206964656e746974792e"},{"name":"Address","value":"0x4B0897b0513FdBeEc7C469D9aF4fA6C0752aBea7"}],"result":{"name":"Signature","value":"0x43d7215ebe96c09a5adac69fc76dea5647286b501954ea273e417cf65e6c80e1db4891826375a7de02467a3e01caf125f64c851a8e9ee9467fd6f7e83523b2115bed8e79d527a85e28a36807d79b85fc551b5c15c1ead2e43456c31f565219203db2aed86cb3601b33ec3b410836d4be7718c6148dc9ac82ecc0a04c5edecd8914"}}]},{"name":"eth_signTypedData_v4","tags":[{"$ref":"#/components/tags/MetaMask"},{"$ref":"#/components/tags/Restricted"},{"$ref":"#/components/tags/Multichain"}],"summary":"Presents a structured data message for the user to sign.","description":"Presents a data message for the user to sign in a structured and readable format and returns the signed response. Introduced by [EIP-712](https://eips.ethereum.org/EIPS/eip-712). This method requires that the user has granted permission to interact with their account first, so make sure to call `eth_requestAccounts` (recommended) or `wallet_requestPermissions` first.","params":[{"name":"Address","required":true,"description":"The address of the requested signing account.","schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}},{"name":"Typed data","required":true,"schema":{"$ref":"#/components/schemas/TypedData"}}],"result":{"name":"Signature","description":"A hex-encoded signature.","schema":{"type":"string","pattern":"^0x[0-9a-f]*$"}},"examples":[{"name":"eth_SignTypedData_v4 example","params":[{"name":"Address","value":"0x0000000000000000000000000000000000000000"},{"name":"Typed data","value":{"types":{"EIP712Domain":[{"name":"name","type":"string"},{"name":"version","type":"string"},{"name":"chainId","type":"uint256"},{"name":"verifyingContract","type":"address"}],"Person":[{"name":"name","type":"string"},{"name":"wallet","type":"address"}],"Mail":[{"name":"from","type":"Person"},{"name":"to","type":"Person"},{"name":"contents","type":"string"}]},"primaryType":"Mail","domain":{"name":"Ether Mail","version":"1","chainId":1,"verifyingContract":"0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC"},"message":{"from":{"name":"Cow","wallet":"0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826"},"to":{"name":"Bob","wallet":"0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB"},"contents":"Hello, Bob!"}}}],"result":{"name":"Signature","value":"0x4355c47d63924e8a72e509b65029052eb6c299d53a04e167c5775fd466751c9d07299936d304c153f6443dfa05f40ff007d72911b6f72307f996231605b915621c"}}]},{"name":"wallet_registerOnboarding","tags":[{"$ref":"#/components/tags/MetaMask"},{"$ref":"#/components/tags/Multichain"}],"summary":"Redirects the user back to the site after onboarding.","description":"Registers the requesting site with MetaMask as the initiator of onboarding, enabling MetaMask to redirect the user back to the site after onboarding. Returns a promise that resolves to `true`, or rejects the request if there\'s an error. Instead of calling this method directly, you should use the [`@metamask/onboarding`](https://github.com/MetaMask/metamask-onboarding) library.","params":[],"result":{"name":"Registered","description":"`true` if the request was successful, `false` otherwise.","schema":{"type":"boolean"}},"examples":[{"name":"wallet_registerOnboarding example","params":[],"result":{"name":"Registered","value":true}}]},{"name":"wallet_watchAsset","tags":[{"$ref":"#/components/tags/MetaMask"},{"$ref":"#/components/tags/Experimental"},{"$ref":"#/components/tags/Multichain"}],"summary":"Tracks a token in MetaMask.","description":"Requests that the user track the specified token in MetaMask. Returns a boolean indicating if the token was successfully added. Once added, the token is indistinguishable from those added using legacy methods, such as a centralized registry. Introduced by [EIP-747](https://eips.ethereum.org/EIPS/eip-747).","paramStructure":"by-name","params":[{"name":"type","schema":{"type":"string","description":"The token type (`ERC20`, `ERC721`, or `ERC1155`). Support for ERC-721 and ERC-1155 tokens is experimental and currently only available on the extension (not on mobile). See [MIP-1](https://github.com/MetaMask/metamask-improvement-proposals/blob/main/MIPs/mip-1.md) and the [MIP proposal lifecycle](https://github.com/MetaMask/metamask-improvement-proposals/blob/main/PROCESS-GUIDE.md#proposal-lifecycle) for more information.","enum":["ERC20","ERC721","ERC1155"]},"required":true},{"name":"options","schema":{"description":"An object containing information about the token.","type":"object","required":["address"],"properties":{"address":{"description":"The address of the token contract.","type":"string"},"symbol":{"description":"A ticker symbol or shorthand, up to 11 characters (optional for ERC-20 tokens).","minLength":2,"maxLength":11,"type":"string"},"decimals":{"description":"The number of token decimals (optional for ERC-20 tokens).","type":"number"},"image":{"description":"A string URL of the token logo (optional for ERC-20 tokens).","type":"string"},"tokenId":{"description":"The unique identifier of the NFT (required for ERC-721 and ERC-1155 tokens).","type":"string"}}}}],"errors":[{"code":-32602,"message":"Must specify address, symbol, and decimals."},{"code":-32602,"message":"Invalid symbol: not a string."},{"code":-32602,"message":"Invalid symbol \'${symbol}\': longer than 11 characters."},{"code":-32602,"message":"Invalid decimals \'${decimals}\': must be 0 <= 36."},{"code":-32602,"message":"Invalid address \'${address}\'."},{"code":-32602,"message":"Asset type is required."},{"code":-32602,"message":"Both address and tokenId are required."},{"code":-32602,"message":"Invalid address."},{"code":-32000,"message":"Suggested NFT is not owned by the selected account."},{"code":-32000,"message":"Suggested NFT of type ${standard} does not match received type ${type}."},{"code":-32002,"message":"Unable to verify ownership. Possibly because the standard is not supported or the user\'s currently selected network does not match the chain of the asset in question."}],"result":{"name":"Added","description":"`true` if the token was added, `false` otherwise.","schema":{"type":"boolean"}},"examples":[{"name":"wallet_watchAsset ERC-20 example","params":[{"name":"type","value":"ERC20"},{"name":"options","value":{"address":"0xb60e8dd61c5d32be8058bb8eb970870f07233155","symbol":"FOO","decimals":18,"image":"https://foo.io/token-image.svg"}}],"result":{"name":"Added","value":true}},{"name":"wallet_watchAsset ERC-721 example","params":[{"name":"type","value":"ERC721"},{"name":"options","value":{"address":"0x123456789abcdef0123456789abcdef01234567","tokenId":"42"}}],"result":{"name":"Added","value":true}},{"name":"wallet_watchAsset ERC-1155 example","params":[{"name":"type","value":"ERC1155"},{"name":"options","value":{"address":"0xabcdef0123456789abcdef0123456789abcdef01","tokenId":"1337"}}],"result":{"name":"Added","value":true}}]},{"name":"wallet_scanQRCode","tags":[{"$ref":"#/components/tags/MetaMask"},{"$ref":"#/components/tags/Mobile"},{"$ref":"#/components/tags/Multichain"}],"summary":"Requests that the user scan a QR code.","description":"Requests that the user scan a QR code using their device camera. Introduced by [EIP-945](https://github.com/ethereum/EIPs/issues/945).","params":[{"name":"Regex","required":false,"description":"A regular expression (regex) string for matching arbitrary QR code strings.","schema":{"type":"string","title":"regex"}}],"result":{"name":"QR code string","description":"A string corresponding to the scanned QR code. If a regex string is provided, the resulting string matches it. If no regex string is provided, the resulting string matches an Ethereum address. If neither condition is met, the method returns an error.","schema":{"type":"string","title":"QR code string"}}},{"name":"wallet_sendCalls","tags":[{"$ref":"#/components/tags/MetaMask"}],"summary":"Sends a batch of calls.","description":"Requests that the wallet submits a batch of calls. Specified by [EIP-5792](https://eips.ethereum.org/EIPS/eip-5792).","params":[{"name":"Calls","required":true,"schema":{"$ref":"#/components/schemas/SendCallsParameter"}}],"result":{"name":"Batch result","schema":{"description":"An object containing information about the sent batch.","type":"object","properties":{"id":{"description":"The ID of the batch of calls.","type":"string"},"capabilities":{"description":"Wallets can use this object to attach capability-specific metadata.","type":"object"}}}},"errors":[{"$ref":"#/components/errors/InvalidParams"},{"code":-32000,"message":"Version not supported."},{"$ref":"#/components/errors/UserRejected"},{"$ref":"#/components/errors/Unauthorized"},{"code":5700,"message":"The wallet does not support a capability that was not marked as optional."},{"code":5710,"message":"EIP-7702 not supported on the specified chain ID."},{"code":5720,"message":"There is already a batch submitted with the specified batch ID."},{"code":5740,"message":"The batch is too large for the wallet to process."},{"code":5750,"message":"EIP-7702 upgrade rejected for this chain and account."}],"examples":[{"name":"wallet_sendCalls example","params":[{"name":"Calls","value":{"version":"2.0.0","from":"0xd46e8dd67c5d32be8058bb8eb970870f07244567","chainId":"0xaa36a7","atomicRequired":true,"calls":[{"to":"0x54f1C1965B355e1AB9ec3465616136be35bb5Ff7","value":"0x0"},{"to":"0x2D48e6f5Ae053e4E918d2be53570961D880905F2","value":"0x0"}]}}],"result":{"name":"Batch result","value":{"id":"0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331"}}}]},{"name":"wallet_getCallsStatus","tags":[{"$ref":"#/components/tags/MetaMask"}],"summary":"Gets the status of a call batch.","description":"Gets the status of a batch of calls that was previously sent using `wallet_sendCalls`. Specified by [EIP-5792](https://eips.ethereum.org/EIPS/eip-5792).","params":[{"name":"Batch ID","required":true,"description":"The ID of a batch of calls (the `id` value returned by `wallet_sendCalls`).","schema":{"type":"string"}}],"result":{"name":"Batch status","schema":{"description":"An object containing status information of the batch of calls.","type":"object","properties":{"version":{"description":"The version of the API format.","type":"string"},"id":{"description":"The ID of the batch of calls.","$ref":"#/components/schemas/uint"},"chainId":{"description":"The chain ID of the calls.","$ref":"#/components/schemas/uint"},"status":{"description":"The status code of the batch of calls. Possible values are: <br> <ul>\\n <li>`100` - Pending</li>\\n <li>`200` - Confirmed</li>\\n <li>`400` - Failed offchain</li>\\n <li>`500` - Reverted</li>\\n <li>`600` - Partially reverted</li>\\n</ul>","type":"number"},"atomic":{"description":"`true` if the wallet executed the calls atomically. `false` if the wallet executed the calls non-atomically.","type":"boolean"},"receipts":{"description":"An array of transaction receipts. If the wallet executed the calls atomically, a single receipt or an array of receipts may be returned, corresponding to how the batch of calls were included onchain.","type":"array","items":{"title":"Receipt","description":"A transaction receipt object.","type":"object","properties":{"logs":{"description":"An array of log objects.","type":"array","items":{"title":"Log","description":"An object containing information about the log.","type":"object","properties":{"address":{"description":"The address that generated the log.","type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"data":{"description":"The data of the log.","type":"string","pattern":"^0x[0-9a-f]*$"},"topics":{"description":"An array of log topics.","type":"array","items":{"title":"Topic","description":"A log topic.","type":"string","pattern":"^0x[0-9a-f]*$"}}}}},"status":{"description":"The status of the transaction. `0x1` indicates success, and `0x0` indicates failure.","type":"string","pattern":"^0x[0-1]$"},"blockHash":{"description":"The hash of the block containing the transaction.","type":"string","pattern":"^0x[0-9a-f]{64}$"},"blockNumber":{"description":"The number of the block containing the transaction.","type":"string","pattern":"^0x([1-9a-f]+[0-9a-f]*|0)$"},"gasUsed":{"description":"The amount of gas used by the transaction.","type":"string","pattern":"^0x([1-9a-f]+[0-9a-f]*|0)$"},"transactionHash":{"description":"The hash of the transaction.","type":"string","pattern":"^0x[0-9a-f]{64}$"}},"additionalProperties":true}},"capabilities":{"description":"Capabilities associated with the batch of calls.","type":"object","additionalProperties":true}}}},"errors":[{"$ref":"#/components/errors/InvalidParams"},{"$ref":"#/components/errors/Unauthorized"},{"code":5730,"message":"No matching bundle found."}],"examples":[{"name":"wallet_getCallsStatus example","params":[{"name":"Batch ID","value":"0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331"}],"result":{"name":"Batch status","value":{"version":"2.0.0","chainId":"0xaa36a7","id":"0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331","status":200,"atomic":true,"receipts":[{"logs":[{"address":"0xa922b54716264130634d6ff183747a8ead91a40b","topics":["0x5a2a90727cc9d000dd060b1132a5c977c9702bb3a52afe360c9c22f0e9451a68"],"data":"0xabcd"}],"status":"0x1","blockHash":"0xf19bbafd9fd0124ec110b848e8de4ab4f62bf60c189524e54213285e7f540d4a","blockNumber":"0xabcd","gasUsed":"0xdef","transactionHash":"0x9b7bb827c2e5e3c1a0a44dc53e573aa0b3af3bd1f9f5ed03071b100bb039eaff"}]}}}]},{"name":"wallet_getCapabilities","tags":[{"$ref":"#/components/tags/MetaMask"}],"summary":"Gets the capabilities of the wallet.","description":"Returns information about the wallet\'s support for the `atomic` capability. The `atomic` capability specifies how the wallet will execute batches of transactions sent using `wallet_sendCalls`. `wallet_getCapabilities` is specified by [EIP-5792](https://eips.ethereum.org/EIPS/eip-5792).","params":[{"name":"Address","description":"A wallet address.","required":true,"schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}},{"name":"Chain IDs","description":"An array of chain IDs to get capabilities for.","schema":{"type":"array","items":{"title":"Chain ID","description":"An [EIP-155](https://eips.ethereum.org/EIPS/eip-155) chain ID in hexadecimal format.","$ref":"#/components/schemas/uint"}}}],"result":{"name":"Capabilities","schema":{"description":"An object specifying the status of the `atomic` capability for specific [EIP-155](https://eips.ethereum.org/EIPS/eip-155) chain IDs. For each chain, the `atomic` capability can have a `status` of: <br> <ul>\\n <li>`supported` - The wallet will execute calls sent using\\n `wallet_sendCalls` atomically.</li>\\n <li>`ready` - The wallet can upgrade to `supported` pending user\\n approval to upgrade their account via EIP-7702.</li>\\n</ul> If the `atomic` capability is not `supported` or `ready` for a specified chain ID, the wallet will not return anything for that chain ID.","type":"object"}},"errors":[{"$ref":"#/components/errors/InvalidParams"},{"$ref":"#/components/errors/Unauthorized"}],"examples":[{"name":"wallet_getCapabilities example","params":[{"name":"Address","value":"0xd46e8dd67c5d32be8058bb8eb970870f07244567"},{"name":"Chain IDs","value":["0xaa36a7"]}],"result":{"name":"Capabilities","value":{"0xaa36a7":{"atomic":{"status":"ready"}}}}}]},{"name":"eth_requestAccounts","tags":[{"$ref":"#/components/tags/MetaMask"}],"description":"Requests that the user provide access to one or more Ethereum addresses. This method is specified by [EIP-1102](https://eips.ethereum.org/EIPS/eip-1102). Internally, this method calls `wallet_requestPermissions` for permission to call `eth_accounts`.","summary":"Requests that the user provide access to addresses.","params":[],"result":{"name":"Address list","schema":{"type":"array","description":"An array of Ethereum addresses that the user has authorized the dapp to access.","items":{"title":"Address","description":"A hex-encoded address.","type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}}},"errors":[{"$ref":"#/components/errors/UserRejected"}],"examples":[{"name":"eth_requestAccounts example","params":[],"result":{"name":"Address list","value":["0xa77392123a1085f75e62eec7dea7e0e1e5142d5f"]}}]},{"name":"eth_accounts","tags":[{"$ref":"#/components/tags/MetaMask"},{"$ref":"#/components/tags/Restricted"}],"description":"Returns a list of addresses that the user has authorized the dapp to access. This method requires calling `wallet_requestPermissions` for permission. We recommend using `eth_requestAccounts`, which internally calls `wallet_requestPermission`.","summary":"Gets a list of authorized addresses.","params":[],"result":{"name":"Address list","schema":{"type":"array","description":"An array of Ethereum addresses that the user has authorized the dapp to access.","items":{"title":"Address","description":"A hex-encoded address.","type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}}},"examples":[{"name":"eth_accounts example","params":[],"result":{"name":"Address list","value":["0xa77392123a1085f75e62eec7dea7e0e1e5142d5f"]}}]},{"name":"eth_sendTransaction","tags":[{"$ref":"#/components/tags/MetaMask"},{"$ref":"#/components/tags/Restricted"},{"$ref":"#/components/tags/Multichain"}],"description":"Creates a new wallet confirmation to make an Ethereum transaction from the user\'s account. This method requires that the user has granted permission to interact with their account first, so make sure to call `eth_requestAccounts` (recommended) or `wallet_requestPermissions` first.","summary":"Initiates a new transaction.","params":[{"name":"Transaction","required":true,"description":"The transaction object to sign and send.","schema":{"type":"object","title":"Transaction","description":"The parameters to customize a transaction. If a `to` address is not provided, the transaction is assumed to be a contract creation transaction, and the `data` field is used as the contract initialization code. `gasPrice` cannot be used together with `maxPriorityFeePerGas` and `maxFeePerGas`.","required":["from"],"if":{"properties":{"to":{"not":{"type":"string"}}}},"then":{"required":["data"]},"properties":{"to":{"description":"The recipient\'s address.","$ref":"#/components/schemas/address"},"from":{"description":"The sender\'s address.","$ref":"#/components/schemas/address"},"gas":{"description":"The maximum amount of gas the transaction is allowed to use.","$ref":"#/components/schemas/uint"},"value":{"description":"The amount to transfer in wei.","$ref":"#/components/schemas/uint"},"data":{"description":"The data to include in the transaction. Used for contract creation transactions.","$ref":"#/components/schemas/bytes"},"gasPrice":{"description":"The gas price the sender is willing to pay to miners in wei. Used in pre-1559 transactions.","$ref":"#/components/schemas/uint"},"maxPriorityFeePerGas":{"description":"Maximum fee per gas the sender is willing to pay to miners in wei. Used in 1559 transactions.","$ref":"#/components/schemas/uint"},"maxFeePerGas":{"description":"The maximum total fee per gas the sender is willing to pay (includes the network / base fee and miner / priority fee) in wei. Used in 1559 transactions.","$ref":"#/components/schemas/uint"}}}}],"result":{"name":"Transaction hash","description":"The transaction hash of the sent transaction.","schema":{"type":"string","pattern":"^0x[0-9a-f]{64}$"}},"errors":[{"code":4100,"message":"The requested account and/or method has not been authorized by the user."}],"examples":[{"name":"sendTransaction","params":[{"name":"Transaction","value":{"to":"0x4B0897b0513FdBeEc7C469D9aF4fA6C0752aBea7","from":"0xDeaDbeefdEAdbeefdEadbEEFdeadbeefDEADbEEF","gas":"0x76c0","value":"0x8ac7230489e80000","data":"0x","gasPrice":"0x4a817c800"}}],"result":{"name":"eth_sendTransactionExampleResult","value":"0x4e306b5a5a37532e1734503f7d2427a86f2c992fbe471f5be403b9f734e667c8"}}]},{"name":"eth_decrypt","tags":[{"$ref":"#/components/tags/MetaMask"},{"$ref":"#/components/tags/Restricted"},{"$ref":"#/components/tags/Deprecated"}],"summary":"Decrypts an encrypted message.","description":"This method is deprecated and may be removed in the future.\\n\\n Requests that MetaMask decrypt the specified encrypted message.\\n The message must have been encrypted using the public encryption key of the specified Ethereum address.\\n Returns a promise that resolves to the decrypted message, or rejects if the decryption attempt fails.","params":[{"name":"EncryptedMessage","required":true,"description":"The encrypted message to decrypt.","schema":{"type":"string"}},{"name":"Address","required":true,"description":"The address of the Ethereum account that can decrypt the message.","schema":{"$ref":"#/components/schemas/address"}}],"result":{"name":"PermissionsList","schema":{"$ref":"#/components/schemas/PermissionsList"}},"errors":[{"code":4100,"message":"The requested account and/or method has not been authorized by the user."}],"examples":[{"name":"decryptExample","params":[{"name":"EncryptedMessage","value":"0x7b2276657273696f6e223a227832353531392d7873616c736132302d706f6c7931333035222c226e6f6e6365223a2243533967507076467071765358704655416679726a7179774e35302b7a747766222c22657068656d5075626c69634b6579223a224372774b61456d2f4b356d6d714239764c376f5872636d6441417757764479324f784c3333527135576e553d222c2263697068657274657874223a2248347a65336e7177572b753174663956343945506167454e343872774f766b6952676244566e47587a38493d227d"},{"name":"Address","value":"0xD1F5279BE4B4dD94133A23deE1B23F5bfC0Db1d0"}],"result":{"name":"eth_decryptExampleResult","value":"Hello, Ethereum!"}}]},{"name":"eth_getEncryptionPublicKey","tags":[{"$ref":"#/components/tags/MetaMask"},{"$ref":"#/components/tags/Restricted"},{"$ref":"#/components/tags/Deprecated"}],"summary":"Gets a public key used for encryption.","description":"This method is deprecated and may be removed in the future.\\n\\n Requests that the user share their public encryption key.\\n Returns a public encryption key, or rejects if the user denies the request.\\n The public key is computed from entropy associated with the specified user account, using the NaCl implementation of the `X25519_XSalsa20_Poly1305` algorithm.","params":[{"name":"Address","required":true,"description":"The address of the Ethereum account that can decrypt the message.","schema":{"$ref":"#/components/schemas/address"}}],"result":{"name":"EncryptionKey","schema":{"type":"string"}},"examples":[{"name":"eth_getEncryptionPublicKey","params":[{"name":"Address","value":"0x4B0897b0513FdBeEc7C469D9aF4fA6C0752aBea7"}],"result":{"name":"eth_getEncryptionPublicKeyExampleResult","value":"0x04bfcab3b7ca7e8b3f3b62b2f7f77e9e4b68080bbf8f0f4a1c8f890864d2c7c1d3c45d8b2e3f5f1c27dfeea4c2f5733e90bfc7484e2a690aa9b8ac4559d2e6a8d7"}}]},{"name":"web3_clientVersion","tags":[{"$ref":"#/components/tags/Ethereum"},{"$ref":"#/components/tags/Multichain"}],"description":"Returns the current MetaMask client version. This differs slightly per client. For example, the browser extension returns a string like `MetaMask/v10.33.1`, while the mobile app returns a string like `MetaMask/8.1.2/Mobile`.","summary":"Current client version.","params":[],"examples":[{"name":"MetaMaskClientVersionExample","description":"Example version response from MetaMask.","params":[],"result":{"name":"MetaMaskClientVersion","description":"The current client version.","value":"MetaMask/v10.33.1"}},{"name":"MetaMaskMobileClientVersionExample","description":"Example version response from MetaMask Mobile.","params":[],"result":{"name":"MetaMaskClientVersion","description":"The current client version.","value":"MetaMask/8.1.2/Mobile"}}],"result":{"name":"CurrentVersion","description":"The current client version.","schema":{"title":"CurrentClientVersion","type":"string"}}},{"name":"eth_subscribe","tags":[{"$ref":"#/components/tags/Ethereum"},{"$ref":"#/components/tags/Multichain"}],"summary":"Subscribes to specific Ethereum events, returning a subscription ID used to receive notifications.","description":"Subscribes to specific events on the Ethereum network, such as new blocks, or logs. When an event occurs, a notification is sent to the client with the corresponding data. To stop receiving notifications, the client can unsubscribe using `eth_unsubscribe`.","params":[{"name":"subscriptionType","required":true,"schema":{"title":"subscriptionType","type":"string","enum":["newHeads","logs"],"description":"The type of subscription to create. Must be one of the following:\\n1. `newHeads` - New block headers.\\n2. `logs` - Logs matching a filter object."}},{"name":"filterOptions","required":false,"schema":{"title":"filterOptions","type":"object","description":"(Optional) An object containing filter options specific to the subscription type. Only applicable for the `logs` subscription type.","required":["topics"],"properties":{"address":{"type":"string","description":"(Optional) A single address or an array of addresses to filter the logs by."},"topics":{"type":"array","description":"An array of topics to filter the logs by.","items":{"type":"string"}}}}}],"result":{"name":"subscriptionId","schema":{"type":"string"},"description":"A unique subscription ID that can be used to unsubscribe or identify incoming notifications."},"examples":[{"name":"eth_subscribe example","params":[{"name":"subscriptionType","value":"newHeads"}],"result":{"name":"eth_subscribeExampleResult","value":"0x1b84f2cdf29a204b79e450c1939b30c1"}}]},{"name":"eth_unsubscribe","tags":[{"$ref":"#/components/tags/Ethereum"},{"$ref":"#/components/tags/Multichain"}],"summary":"Unsubscribes from a specific Ethereum event, using the subscription ID provided by `eth_subscribe`.","description":"Unsubscribes from specific events on the Ethereum network, to which the client has been previously subscribed using `eth_subscribe`. The client must provide the subscription ID obtained from `eth_subscribe` to stop receiving notifications for the corresponding event.","params":[{"name":"subscriptionId","required":true,"schema":{"type":"string","description":"The unique subscription ID obtained from `eth_subscribe`, used to identify the subscription to be unsubscribed."}}],"result":{"name":"unsubscribed","schema":{"type":"boolean"},"description":"A boolean value indicating whether the unsubscription was successful."},"examples":[{"name":"eth_unsubscribe example","params":[{"name":"subscriptionId","value":"0x1b84f2cdf29a204b79e450c1939b30c1"}],"result":{"name":"eth_unsubscribeExampleResult","value":true}}]},{"name":"eth_blockNumber","summary":"Returns the number of most recent block.","params":[],"result":{"name":"Block number","schema":{"$ref":"#/components/schemas/uint"}},"examples":[{"name":"eth_blockNumber example","params":[],"result":{"name":"Block number","value":"0x2377"}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_call","summary":"Executes a new message call immediately without creating a transaction on the block chain.","params":[{"name":"Transaction","required":true,"schema":{"$ref":"#/components/schemas/GenericTransaction"}},{"name":"Block","required":false,"schema":{"$ref":"#/components/schemas/BlockNumberOrTagOrHash"}}],"result":{"name":"Return data","schema":{"$ref":"#/components/schemas/bytes"}},"examples":[{"name":"eth_call example","params":[{"name":"Transaction","value":{"to":"0x69498dd54bd25aa0c886cf1f8b8ae0856d55ff13","value":"0x1"}},{"name":"Block","value":"latest"}],"result":{"name":"Return data","value":"0x"}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_chainId","summary":"Returns the chain ID of the current network.","params":[],"result":{"name":"Chain ID","schema":{"$ref":"#/components/schemas/uint"}},"examples":[{"name":"eth_chainId example","params":[],"result":{"name":"Chain ID","value":"0x1"}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_coinbase","summary":"Returns the client coinbase address.","params":[],"result":{"name":"Coinbase address","schema":{"$ref":"#/components/schemas/address"}},"examples":[{"name":"eth_coinbase example","params":[],"result":{"name":"Coinbase address","value":"0xfe3b557e8fb62b89f4916b721be55ceb828dbd73"}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_estimateGas","summary":"Generates and returns an estimate of how much gas is necessary to allow the transaction to complete.","params":[{"name":"Transaction","required":true,"schema":{"$ref":"#/components/schemas/GenericTransaction"}},{"name":"Block","required":false,"schema":{"$ref":"#/components/schemas/BlockNumberOrTag"}}],"result":{"name":"Gas used","schema":{"$ref":"#/components/schemas/uint"}},"examples":[{"name":"eth_estimateGas example","params":[{"name":"Transaction","value":{"from":"0xfe3b557e8fb62b89f4916b721be55ceb828dbd73","to":"0x44aa93095d6749a706051658b970b941c72c1d53","value":"0x1"}}],"result":{"name":"Gas used","value":"0x5208"}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_feeHistory","summary":"Transaction fee history","description":"Returns transaction base fee per gas and effective priority fee per gas for the requested/supported block range.","params":[{"name":"blockCount","description":"Requested range of blocks. Clients will return less than the requested range if not all blocks are available.","required":true,"schema":{"$ref":"#/components/schemas/uint"}},{"name":"newestBlock","description":"Highest block of the requested range.","required":true,"schema":{"$ref":"#/components/schemas/BlockNumberOrTag"}},{"name":"rewardPercentiles","description":"A monotonically increasing list of percentile values. For each block in the requested range, the transactions will be sorted in ascending order by effective tip per gas and the coresponding effective tip for the percentile will be determined, accounting for gas consumed.","required":true,"schema":{"title":"rewardPercentiles","type":"array","items":{"title":"rewardPercentile","description":"Floating point value between 0 and 100.","type":"number"}}}],"result":{"name":"Fee history result","description":"Fee history for the returned block range. This can be a subsection of the requested range if not all blocks are available.","schema":{"title":"feeHistoryResults","description":"Fee history results.","type":"object","required":["oldestBlock","baseFeePerGas","gasUsedRatio"],"additionalProperties":false,"properties":{"oldestBlock":{"title":"oldestBlock","description":"Lowest number block of returned range.","$ref":"#/components/schemas/uint"},"baseFeePerGas":{"title":"baseFeePerGasArray","description":"An array of block base fees per gas. This includes the next block after the newest of the returned range, because this value can be derived from the newest block. Zeroes are returned for pre-EIP-1559 blocks.","type":"array","items":{"$ref":"#/components/schemas/uint"}},"baseFeePerBlobGas":{"title":"baseFeePerBlobGasArray","description":"An array of block base fees per blob gas. This includes the next block after the newest of the returned range, because this value can be derived from the newest block. Zeroes are returned for pre-EIP-4844 blocks.","type":"array","items":{"$ref":"#/components/schemas/uint"}},"gasUsedRatio":{"title":"gasUsedRatio","description":"An array of block gas used ratios. These are calculated as the ratio of gasUsed and gasLimit.","type":"array","items":{"$ref":"#/components/schemas/ratio"}},"blobGasUsedRatio":{"title":"blobGasUsedRatio","description":"An array of block blob gas used ratios. These are calculated as the ratio of blobGasUsed and the max blob gas per block.","type":"array","items":{"$ref":"#/components/schemas/ratio"}},"reward":{"title":"rewardArray","description":"A two-dimensional array of effective priority fees per gas at the requested block percentiles.","type":"array","items":{"title":"rewardPercentile","description":"An array of effective priority fee per gas data points from a single block. All zeroes are returned if the block is empty.","type":"array","items":{"title":"rewardPercentile","description":"A given percentile sample of effective priority fees per gas from a single block in ascending order, weighted by gas used. Zeroes are returned if the block is empty.","$ref":"#/components/schemas/uint"}}}}}},"examples":[{"name":"eth_feeHistory example","params":[{"name":"blockCount","value":"0x5"},{"name":"newestblock","value":"latest"},{"name":"rewardPercentiles","value":[20,30]}],"result":{"name":"Fee history result","value":{"oldestblock":"0x10b52f","baseFeePerGas":["0x3fa63a3f","0x37f999ee","0x3e36f20a","0x4099f79a","0x430d532d","0x46fcd4a4"],"baseFeePerBlobGas":["0x7b7609c19","0x6dbe41789","0x7223341d4","0x6574a002c","0x7223341d4","0x6574a002c"],"gasUsedRatio":[0.017712333333333333,0.9458865666666667,0.6534561,0.6517375666666667,0.7347769666666667],"blobGasUsedRatio":[0,0.6666666666666666,0,1,0],"reward":[["0x3b9aca00","0x59682f00"],["0x3a13012","0x3a13012"],["0x3a13012","0x3a13012"],["0xf4240","0xf4240"],["0xf4240","0xf4240"]]}}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_gasPrice","summary":"Returns the current price per gas in wei.","params":[],"result":{"name":"Gas price","schema":{"title":"Gas price","$ref":"#/components/schemas/uint"}},"examples":[{"name":"eth_gasPrice example","params":[],"result":{"name":"Gas price","value":"0x3e8"}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_getBalance","summary":"Returns the balance of the account of given address.","params":[{"name":"Address","required":true,"schema":{"$ref":"#/components/schemas/address"}},{"name":"Block","required":true,"schema":{"$ref":"#/components/schemas/BlockNumberOrTagOrHash"}}],"result":{"name":"Balance","schema":{"$ref":"#/components/schemas/uint"}},"examples":[{"name":"eth_getBalance example","params":[{"name":"Address","value":"0xfe3b557e8fb62b89f4916b721be55ceb828dbd73"},{"name":"Block","value":"latest"}],"result":{"name":"Balance","value":"0x1cfe56f3795885980000"}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_getBlockByHash","summary":"Returns information about a block by hash.","params":[{"name":"Block hash","required":true,"schema":{"$ref":"#/components/schemas/hash32"}},{"name":"Hydrated transactions","required":true,"schema":{"title":"hydrated","type":"boolean"}}],"result":{"name":"Block information","schema":{"oneOf":[{"$ref":"#/components/schemas/notFound"},{"$ref":"#/components/schemas/Block"}]}},"examples":[{"name":"eth_getBlockByHash example","params":[{"name":"Block hash","value":"0xd5f1812548be429cbdc6376b29611fc49e06f1359758c4ceaaa3b393e2239f9c"},{"name":"Hydrated transactions","value":false}],"result":{"name":"Block information","value":{"number":"0x68b3","hash":"0xd5f1812548be429cbdc6376b29611fc49e06f1359758c4ceaaa3b393e2239f9c","mixHash":"0x24900fb3da77674a861c428429dce0762707ecb6052325bbd9b3c64e74b5af9d","parentHash":"0x1f68ac259155e2f38211ddad0f0a15394d55417b185a93923e2abe71bb7a4d6d","nonce":"0x378da40ff335b070","sha3Uncles":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347","logsBloom":"0x00000000000000100000004080000000000500000000000000020000100000000800001000000004000001000000000000000800040010000020100000000400000010000000000000000040000000000000040000000000000000000000000000000400002400000000000000000000000000000004000004000000000000840000000800000080010004000000001000000800000000000000000000000000000000000800000000000040000000020000000000000000000800000400000000000000000000000600000400000000002000000000000000000000004000000000000000100000000000000000000000000000000000040000900010000000","transactionsRoot":"0x4d0c8e91e16bdff538c03211c5c73632ed054d00a7e210c0eb25146c20048126","stateRoot":"0x91309efa7e42c1f137f31fe9edbe88ae087e6620d0d59031324da3e2f4f93233","receiptsRoot":"0x68461ab700003503a305083630a8fb8d14927238f0bc8b6b3d246c0c64f21f4a","miner":"0xb42b6c4a95406c78ff892d270ad20b22642e102d","difficulty":"0x66e619a","totalDifficulty":"0x1e875d746ae","extraData":"0xd583010502846765746885676f312e37856c696e7578","size":"0x334","gasLimit":"0x47e7c4","gasUsed":"0x37993","timestamp":"0x5835c54d","uncles":[],"transactions":["0xa0807e117a8dd124ab949f460f08c36c72b710188f01609595223b325e58e0fc","0xeae6d797af50cb62a596ec3939114d63967c374fa57de9bc0f4e2b576ed6639d"],"baseFeePerGas":"0x7","withdrawalsRoot":"0x7a4ecf19774d15cf9c15adf0dd8e8a250c128b26c9e2ab2a08d6c9c8ffbd104f","withdrawals":[{"index":"0x0","validatorIndex":"0x9d8c0","address":"0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f","amount":"0x11a33e3760"}],"blobGasUsed":"0x0","excessBlobGas":"0x0","parentBeaconBlockRoot":"0x95c4dbd5b19f6fe3cbc3183be85ff4e85ebe75c5b4fc911f1c91e5b7a554a685"}}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_getBlockByNumber","summary":"Returns information about a block by number.","params":[{"name":"Block","required":true,"schema":{"$ref":"#/components/schemas/BlockNumberOrTag"}},{"name":"Hydrated transactions","required":true,"schema":{"title":"hydrated","type":"boolean"}}],"result":{"name":"Block information","schema":{"oneOf":[{"$ref":"#/components/schemas/notFound"},{"$ref":"#/components/schemas/Block"}]}},"examples":[{"name":"eth_getBlockByNumber example","params":[{"name":"block","value":"0x68b3"},{"name":"Hydrated transactions","value":false}],"result":{"name":"Block information","value":{"number":"0x68b3","hash":"0xd5f1812548be429cbdc6376b29611fc49e06f1359758c4ceaaa3b393e2239f9c","mixHash":"0x24900fb3da77674a861c428429dce0762707ecb6052325bbd9b3c64e74b5af9d","parentHash":"0x1f68ac259155e2f38211ddad0f0a15394d55417b185a93923e2abe71bb7a4d6d","nonce":"0x378da40ff335b070","sha3Uncles":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347","logsBloom":"0x00000000000000100000004080000000000500000000000000020000100000000800001000000004000001000000000000000800040010000020100000000400000010000000000000000040000000000000040000000000000000000000000000000400002400000000000000000000000000000004000004000000000000840000000800000080010004000000001000000800000000000000000000000000000000000800000000000040000000020000000000000000000800000400000000000000000000000600000400000000002000000000000000000000004000000000000000100000000000000000000000000000000000040000900010000000","transactionsRoot":"0x4d0c8e91e16bdff538c03211c5c73632ed054d00a7e210c0eb25146c20048126","stateRoot":"0x91309efa7e42c1f137f31fe9edbe88ae087e6620d0d59031324da3e2f4f93233","receiptsRoot":"0x68461ab700003503a305083630a8fb8d14927238f0bc8b6b3d246c0c64f21f4a","miner":"0xb42b6c4a95406c78ff892d270ad20b22642e102d","difficulty":"0x66e619a","totalDifficulty":"0x1e875d746ae","extraData":"0xd583010502846765746885676f312e37856c696e7578","size":"0x334","gasLimit":"0x47e7c4","gasUsed":"0x37993","timestamp":"0x5835c54d","uncles":[],"transactions":["0xa0807e117a8dd124ab949f460f08c36c72b710188f01609595223b325e58e0fc","0xeae6d797af50cb62a596ec3939114d63967c374fa57de9bc0f4e2b576ed6639d"],"baseFeePerGas":"0x7","withdrawalsRoot":"0x7a4ecf19774d15cf9c15adf0dd8e8a250c128b26c9e2ab2a08d6c9c8ffbd104f","withdrawals":[{"index":"0x0","validatorIndex":"0x9d8c0","address":"0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f","amount":"0x11a33e3760"}],"blobGasUsed":"0x0","excessBlobGas":"0x0","parentBeaconBlockRoot":"0x95c4dbd5b19f6fe3cbc3183be85ff4e85ebe75c5b4fc911f1c91e5b7a554a685"}}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_getBlockTransactionCountByHash","summary":"Returns the number of transactions in a block from a block matching the given block hash.","params":[{"name":"Block hash","schema":{"$ref":"#/components/schemas/hash32"}}],"result":{"name":"Transaction count","schema":{"oneOf":[{"$ref":"#/components/schemas/notFound"},{"title":"Transaction count","$ref":"#/components/schemas/uint"}]}},"examples":[{"name":"eth_getBlockTransactionCountByHash example","params":[{"name":"Block hash","value":"0xb903239f8543d04b5dc1ba6579132b143087c68db1b2168786408fcbce568238"}],"result":{"name":"Transaction count","value":"0x8"}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_getBlockTransactionCountByNumber","summary":"Returns the number of transactions in a block matching the given block number.","params":[{"name":"Block","schema":{"$ref":"#/components/schemas/BlockNumberOrTag"}}],"result":{"name":"Transaction count","schema":{"oneOf":[{"$ref":"#/components/schemas/notFound"},{"title":"Transaction count","$ref":"#/components/schemas/uint"}]}},"examples":[{"name":"eth_getBlockTransactionCountByNumber example","params":[{"name":"Block","value":"0xe8"}],"result":{"name":"Transaction count","value":"0x8"}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_getCode","summary":"Returns code at a given address.","params":[{"name":"Address","required":true,"schema":{"$ref":"#/components/schemas/address"}},{"name":"Block","required":true,"schema":{"$ref":"#/components/schemas/BlockNumberOrTagOrHash"}}],"result":{"name":"Bytecode","schema":{"$ref":"#/components/schemas/bytes"}},"examples":[{"name":"eth_getCode example","params":[{"name":"Address","value":"0xa50a51c09a5c451c52bb714527e1974b686d8e77"},{"name":"Block","value":"latest"}],"result":{"name":"Bytecode","value":"0x60806040526004361060485763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416633fa4f2458114604d57806355241077146071575b600080fd5b348015605857600080fd5b50605f6088565b60408051918252519081900360200190f35b348015607c57600080fd5b506086600435608e565b005b60005481565b60008190556040805182815290517f199cd93e851e4c78c437891155e2112093f8f15394aa89dab09e38d6ca0727879181900360200190a1505600a165627a7a723058209d8929142720a69bde2ab3bfa2da6217674b984899b62753979743c0470a2ea70029"}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_getFilterChanges","summary":"Polling method for the filter with the given ID (created using `eth_newFilter`). Returns an array of logs which occurred since last poll.","params":[{"name":"Filter identifier","schema":{"$ref":"#/components/schemas/uint"}}],"result":{"name":"Log objects","schema":{"$ref":"#/components/schemas/FilterResults"}},"examples":[{"name":"eth_getFilterChanges example","params":[{"name":"Filter identifier","value":"0x01"}],"result":{"name":"Log objects","value":[{"logIndex":"0x0","removed":false,"blockNumber":"0x233","blockHash":"0xfc139f5e2edee9e9c888d8df9a2d2226133a9bd87c88ccbd9c930d3d4c9f9ef5","transactionHash":"0x66e7a140c8fa27fe98fde923defea7562c3ca2d6bb89798aabec65782c08f63d","transactionIndex":"0x0","address":"0x42699a7612a82f1d9c36148af9c77354759b210b","data":"0x0000000000000000000000000000000000000000000000000000000000000004","topics":["0x04474795f5b996ff80cb47c148d4c5ccdbe09ef27551820caa9c2f8ed149cce3"]},{"logIndex":"0x0","removed":false,"blockNumber":"0x238","blockHash":"0x98b0ec0f9fea0018a644959accbe69cd046a8582e89402e1ab0ada91cad644ed","transactionHash":"0xdb17aa1c2ce609132f599155d384c0bc5334c988a6c368056d7e167e23eee058","transactionIndex":"0x0","address":"0x42699a7612a82f1d9c36148af9c77354759b210b","data":"0x0000000000000000000000000000000000000000000000000000000000000007","topics":["0x04474795f5b996ff80cb47c148d4c5ccdbe09ef27551820caa9c2f8ed149cce3"]}]}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_getFilterLogs","summary":"Returns an array of all logs matching the filter with the given ID (created using `eth_newFilter`).","params":[{"name":"Filter identifier","schema":{"$ref":"#/components/schemas/uint"}}],"result":{"name":"Log objects","schema":{"$ref":"#/components/schemas/FilterResults"}},"examples":[{"name":"eth_getFilterLogs example","params":[{"name":"Filter identifier","value":"0x01"}],"result":{"name":"Log objects","value":[{"logIndex":"0x0","removed":false,"blockNumber":"0x233","blockHash":"0xfc139f5e2edee9e9c888d8df9a2d2226133a9bd87c88ccbd9c930d3d4c9f9ef5","transactionHash":"0x66e7a140c8fa27fe98fde923defea7562c3ca2d6bb89798aabec65782c08f63d","transactionIndex":"0x0","address":"0x42699a7612a82f1d9c36148af9c77354759b210b","data":"0x0000000000000000000000000000000000000000000000000000000000000004","topics":["0x04474795f5b996ff80cb47c148d4c5ccdbe09ef27551820caa9c2f8ed149cce3"]},{"logIndex":"0x0","removed":false,"blockNumber":"0x238","blockHash":"0x98b0ec0f9fea0018a644959accbe69cd046a8582e89402e1ab0ada91cad644ed","transactionHash":"0xdb17aa1c2ce609132f599155d384c0bc5334c988a6c368056d7e167e23eee058","transactionIndex":"0x0","address":"0x42699a7612a82f1d9c36148af9c77354759b210b","data":"0x0000000000000000000000000000000000000000000000000000000000000007","topics":["0x04474795f5b996ff80cb47c148d4c5ccdbe09ef27551820caa9c2f8ed149cce3"]}]}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_getLogs","summary":"Returns an array of all logs matching the specified filter.","params":[{"name":"Filter","schema":{"$ref":"#/components/schemas/Filter"}}],"result":{"name":"Log objects","schema":{"$ref":"#/components/schemas/FilterResults"}},"examples":[{"name":"eth_getLogs example","params":[{"name":"Filter","value":{"fromBlock":"0x137d3c2","toBlock":"0x137d3c3","address":"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2","topics":[]}}],"result":{"name":"Log objects","value":[{"logIndex":"0x0","removed":false,"blockNumber":"0x233","blockHash":"0xfc139f5e2edee9e9c888d8df9a2d2226133a9bd87c88ccbd9c930d3d4c9f9ef5","transactionHash":"0x66e7a140c8fa27fe98fde923defea7562c3ca2d6bb89798aabec65782c08f63d","transactionIndex":"0x0","address":"0x42699a7612a82f1d9c36148af9c77354759b210b","data":"0x0000000000000000000000000000000000000000000000000000000000000004","topics":["0x04474795f5b996ff80cb47c148d4c5ccdbe09ef27551820caa9c2f8ed149cce3"]},{"logIndex":"0x0","removed":false,"blockNumber":"0x238","blockHash":"0x98b0ec0f9fea0018a644959accbe69cd046a8582e89402e1ab0ada91cad644ed","transactionHash":"0xdb17aa1c2ce609132f599155d384c0bc5334c988a6c368056d7e167e23eee058","transactionIndex":"0x0","address":"0x42699a7612a82f1d9c36148af9c77354759b210b","data":"0x0000000000000000000000000000000000000000000000000000000000000007","topics":["0x04474795f5b996ff80cb47c148d4c5ccdbe09ef27551820caa9c2f8ed149cce3"]}]}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_getProof","summary":"Returns the merkle proof for a given account and optionally some storage keys.","params":[{"name":"Address","required":true,"schema":{"$ref":"#/components/schemas/address"}},{"name":"StorageKeys","required":true,"schema":{"title":"Storage keys","type":"array","items":{"$ref":"#/components/schemas/bytesMax32"}}},{"name":"Block","required":true,"schema":{"$ref":"#/components/schemas/BlockNumberOrTagOrHash"}}],"result":{"name":"Account","schema":{"$ref":"#/components/schemas/AccountProof"}},"examples":[{"name":"eth_getProof example","params":[{"name":"Address","value":"0xe5cB067E90D5Cd1F8052B83562Ae670bA4A211a8"},{"name":"StorageKeys","value":["0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421","0x283s34c8e2b1456f09832c71e5d6a0b4f8c9e1d3a2b5c7f0e6d4a8b2c1f3e5d7"]},{"name":"Block","value":"latest"}],"result":{"name":"Account","value":{"accountProof":["0xf90211a06a718c2c9da77c253b12d7b2569657901e37bb691718f5dda1b86157ab1dd5eda0e7f19ed5e21bccc8d3260236b24f80ad88b3634f5d005f37b838881f0e12f1bda0abb301291704e4d92686c0f5f8ebb1734185321559b8d717ffdca95c99591976a0d0c2026bfab65c3b95276bfa82af9dec860b485f8857f293c148d63a2182128fa0c98044ec9a1273a218bed58b478277dd39173ad7b8edb95c200423a6bc8fc25fa056e5a55d9ddccdbf49362857200bbb1f042d61187c9f5f9ddcff5d2f1fc984a2a02a5b7200af424114f99a4b5f0a21c19aac82209e431ed80bfde177adb1004bdfa0026e4374f0518ff44a80fa374838ecb86cc64ac93bb710fea6dff4198f947b27a03fea341d87984673ad523177ed52f278bf4d8f97e6531c8ece932aeede4802f4a0bfe2f4a7fcb78f7e9f080dea7b6977fb1d88c441696e4456dad92b9d34ff0f43a02a3eb5c0edb14626c9c629601027bd60178bb2b688a67cea4d179fc432436615a0747355b8e02f3b884b4ffe5cea1619e32515fea064cca98208591af8c744e894a0874253737bae37f020ad3bb7e3292c7c4a63cdc158af6b33aaa4deaef016dccba03d8192bc1fc6aa1548912e763a0b5013a94399cefad7b47cf388873b2b794068a09b67f9737c6028d796bfd1c5da57a6f45824dc891f848ea0e1f8019d1fb5fba8a0aa871f9de8da85960fcd8a22cdf21c27f11e3966c14a6737ffd414b98dda00b280","0xf90211a0d360be1e1da1a0c32bc4c105833bd531e59d110684007b7c50fb2709002973eca0cf6dd1e350a7031b4e2ab49c899fd8bd47551c8565d8fd8d1d7796c83820c3b1a0eb0a88c29bb33989a589156f7bf07d9efc74034dd9d3f5b73385c3b45c3249bea02783c25f97a6ddb8dc07adf4b176991836d39184b1f678adeda832fff15e3664a00a4e288060045e587774d8a64993a7add73068b16863145e1e8eeb4602e18e19a0340851f4046ad1298962d6e47d05c66329549c839c158748aaad7ae00b943aefa085b127bc2a3bd17604283de21b2b3c9aa8f1d4b7b85c94d8105a46fe32c77688a00f531d62b3c5435324c01009c284fe31277e8d38302b75ea01be89f09e205969a00011c8351c0e3d639ac54b9d3a59de630b16a67de8270d7d6064d0a67e93f9cca048780d32b7f2db88650b51c46f46fd0a68795edee1fd5ecee6eb3595741d9669a0c91afd74eaf8e08a997061a62b354e2516fdc494e8e26cc50ceeb8f4a175608ba0e2c07f1b48fab80eecb340f5882e8c7b32ee416e4045c61f1df646a133487303a01a1eff78435a7a29a29463bdc3486ae81364b00bea82ba0fdf67a110770f2261a04f2eb440ba71c72da5fd7f0e439018d6671dc809f747213a1ea755848124e994a074ff9f37fce99daa3ed01dd763076450022996fc729be2cc43c61ec5182c2366a0b80b36b7b621112592f52390b89748d422e9b1517c4b0203b8176a53f89d4a6680","0xf90211a0b25f283bd01a8c8b2418049f9585bc37ff2c1e2e12eab4b7f64ae1f26647389aa02ad96c150d7c3c9c194d30315456852cf6a0a940e0191ae5d04007454823d4e9a0b220cf7a855e2dbcc0b973134e2e119b982d7d40dbb1b27d99816c41f40e829aa049224431da84cbf1b7ae813abcc9ef4c1dfc1760f6ddc5d57f7354bf3cbf6cc4a015191f879ac115b362f0257fd3eedb789537e836574a5b1abf1c9982ebe3bdfea07913c1b6e7282569d2d421e9fa2257f5d1698e93303bc49b941704287d7aaefea0a526576981ce6fd9f2bd48dd2ca6d5272f2fbdc85f0ee35a295f6ccd97ae8765a0313fad407f0c737c29024c02a890c4ecc12d7771c05ab7b435e5087a7cdef4d9a0d2044603cba9d4afdaf6fd2470e729ef3a65242de71276f20d59accfa6b53a7ca0457caacb9370c09b15f7d904adefd2308be94e23669ba5f43241ffff5f438a0aa09fb2dd45a383a0cc088a72b14117e1e9b7d6889218f3ac7631e8de644c5cb76da0c675dcd4d3fb692b514851c6106e2b09e6f5661d56a0a32ae02e2efc1515c235a074949a59ff1bdba87548510d6e404ec4532f4456dfdec8e753d92fda11a3088ba0a328c6ab1ab8f70db4d23e95bb163c13ba0c508f063a5b1393a4efd7ff375f05a0c722fe3ce796998269373cbb2fc229b2bdf2c43c6c2df003309422e043ce6c03a024e69343286eec44fa4744f6907209116e5383cff3fa98fe81ba06e7e8d4366680","0xf90211a00e99ba2198124b8241ea304551fe973215829e2fbc0438d67922707a2a847432a0bb9ce24fd527879c5fe6dbbec1ef5a05ed9d1ca88e921d140bafbec1112f6a6aa099787fd6c7a1989229c4291ef5267335e66152ce417daea46e66d19cb6f81d1ca0e430ff4b8d5621baa5978673344e78b4d8b4df51431b6e63785267c98a24ce18a0bb3e91a825fe3d42ed270a93e9ad1aabd566c40cb28e622f7f1d7ee967c8afd6a0aa364b0056870c6507bc3262a5f851ecb13684088bdb13996d3cb2db401ce3ffa0a3732eba4c7a6e062665ab5be08acb986c3db87556fb138548cc900ff1e56995a026b088e90c9738b8ce16e853107a937a50d52726a24f9f6ce60f587762eb45a2a006c9d5bc3c064b5c1fb565bff91cace9161c64ae653a329610c1dcf34d434429a06c16df2edc70656d322d0c2403bad7d45bc790ffc3e7adeef856d98ea6afc91ba0ae05ed5d6c34b5da29c2e94d7880aeba0906f95f4ec10b132a1d4766a0701c98a01470a86aa350d1ada0c082eac75de828a851f9c8c7c4aa49b1556fe3a5574966a0334eef025100a6da1033710dd98e0475f29d3d7e397caf618ca71c336c5f4f49a0ef0b3abbebcff34d6a8a8f5cdbfbd154ab3452b58dcb09de58ec983644963675a041857e865ec38e200a13bc1a3cb71c7d69aeef7ffdee8be515c9a5b691ce091fa059edd0eb3bbec36bbf38a19802d4646c00ba821ab55fdeea12e15bab62c4e1e580","0xf90211a0af0c7fa65ffcb84c31e68c1cf00e1a20bf8bb497c39883e19b66a99975b03431a0c492cab3623eb7926069794c3c718733e16c5fd0d4a13fb7c752ee9809aac7ada05003cea7132aa70d6f36731d60640a90bcd8f4fd493e4540d5ab1b4943679c0ca0fd700683405b1d2306b586dd3b5b2f92f1692fae20d17cd8b8e59d09b9c6670da01db8683910e46e56e8afeb9fe2b7c35382e5a0914d7b0dd8f0e8cb9981ba7435a0fa7f75d73aa73c35824387bec81388315caa4aee3f4f5562f971beb256c62d49a0ee478e420d83f413e8568dacfd5d83f83a5dd7c45f494b504828e5dc962f0e3ea094b95444a917ac94a675681f6bf851172ad0969801a783a63a71edafed45e7a7a0a0c46586e109abe80fe50361dd582e3f143cb416828239faa43bb2b890869501a0ae051d5d43634c68bf9c97823256cc68580f194dfdbd0c301140c7ca5853430ca0660b9365bb77ec9cdc6eb95516c162dca20727c6f828dbbeb1ae110dde4d3134a09feb1b75e84ff6722e4d837bfb6d207b6ee3b21b86844a01140ce293813b49a1a0ed58a70b04efa3bdc0babe2abfa20824a75d61d52291bfdb5cf08597800764d6a020a2d5d3a83f9e35ad9fd1c448626d90af0eb3efefaa4f2f93207b4096ef5507a0fc8efc4484dcf0a54f0574de9aaade0dcff6ec3599edb9f82efb26b6566dcaeaa032f7e79856db3fd984f72bb2c93d4dab328198d355a61c975fab1f08bdb2046580"],"balance":"0x0","codeHash":"0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470","nonce":"0x0","storageHash":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421","storageProof":[{"key":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421","proof":["0xf90211a0c87222cccea2bf32759fcee9dbaacbe3ea4165dd6184af6773651c5e00e34a8ba0be90e6e5d1a67ab5587779c60ac136d6a96db62b84c04998a5f03a367346abd6a05344aa1c9ca2e3e56bf98fd718ec43728578d148e1967fbaf8bf17a2a073a0bda011a2f9312c3308640a0d6ceeae218747290f23806067456da1d444c65abae437a0b3097a108bfce79af6699da4ae3003cd4929f0b4576aad655c31cb725bde84c7a0c133d3c637e174f36a73c22b1039eb003da6374bc0929321241badb3efa3c4a9a0f13059f2301ad9862ce02e3f7f3f2c9ab78eb30583764d73654f7f1f8b1e86fda06544e3915748b18204e09df75ff20d2fa6bd8121e2e669699012d54590383d6fa070e3a8e093691581d58fadb560b510262a758037632cd8670d3a36df828976b7a062a88a2900544dc76a32255a6b2b2a2eef8fa68279700c00adc7508286702552a0a474aeebd5603dfce46a6ecd1ecd519068dc034a544fde03ac42d4018e60a334a0b7d528fc41c8fdc8ea18c6e7d0099270c777ec1403cf879d1f5134bdc12a6c6ca04440f1242e42c5bfa7c536591ab89c8e84bea417435871c32eef1e25295b20daa06a5dcfe3cc84cff9d3e3c3ae868cfba8f0dd111a90c3f85869dab5b893f96643a026b2fb9dd7d08b0ed2f1c44fbf875011412a384f86f751c92e1013248d4aa371a0c75597b2b789fc4e939b71937390ce9d7d53159431328ac52180eef08ef200f280","0xf90191a0f0c5b800b542001597f2b7a8e106ac0e2849d2cc1df1727ac35c4ea3965f1c9180a08537f2e248702a6ae2a57e9110a5740f5772c876389739ac90debd6a0692713ea00b3a26a05b5494fb3ff6f0b3897688a5581066b20b07ebab9252d169d928717fa0a9a54d84976d134d6dba06a65064c7f3a964a75947d452db6f6bb4b6c47b43aaa01e2a1ed3d1572b872bbf09ee44d2ed737da31f01de3c0f4b4e1f046740066461a076f251d160b9a02eb0b5c1d83b61c9cdd4f37361705e79a45529bf49801fb824a0774a01a624cb14a50d17f2fe4b7ae6af8a67bbb029177ccc3dd729a734484d3ea05921b8a19aebe4fff5a36071e311778f9b93459183fdf7f6d870b401fa25dcbba0c8d71dd13d2806e2865a5c2cfa447f626471bf0b66182a8fd07230434e1cad2680a0e9864fdfaf3693b2602f56cd938ccd494b8634b1f91800ef02203a3609ca4c21a0c69d174ad6b6e58b0bd05914352839ec60915cd066dd2bee2a48016139687f21a0513dd5514fd6bad56871711441d38de2821cc6913cb192416b0385f025650731808080"],"value":"0x1"}]}}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_getStorageAt","summary":"Returns the value from a storage position at a given address.","params":[{"name":"Address","required":true,"schema":{"$ref":"#/components/schemas/address"}},{"name":"Storage slot","required":true,"schema":{"$ref":"#/components/schemas/uint256"}},{"name":"Block","required":true,"schema":{"$ref":"#/components/schemas/BlockNumberOrTagOrHash"}}],"result":{"name":"Value","schema":{"$ref":"#/components/schemas/bytes"}},"examples":[{"name":"eth_getStorageAt example","params":[{"name":"Address","value":"0xfe3b557e8fb62b89f4916b721be55ceb828dbd73"},{"name":"Storage slot","value":"0x0"},{"name":"Block","value":"latest"}],"result":{"name":"Value","value":"0x0000000000000000000000000000000000000000000000000000000000000000"}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_getTransactionByBlockHashAndIndex","summary":"Returns information about a transaction by block hash and transaction index position.","params":[{"name":"Block hash","required":true,"schema":{"$ref":"#/components/schemas/hash32"}},{"name":"Transaction index","required":true,"schema":{"$ref":"#/components/schemas/uint"}}],"result":{"name":"Transaction information","schema":{"oneOf":[{"$ref":"#/components/schemas/notFound"},{"$ref":"#/components/schemas/TransactionInfo"}]}},"examples":[{"name":"eth_getTransactionByBlockHashAndIndex example","params":[{"name":"Block hash","value":"0xbf137c3a7a1ebdfac21252765e5d7f40d115c2757e4a4abee929be88c624fdb7"},{"name":"Transaction index","value":"0x2"}],"result":{"name":"Transaction information","value":{"blockHash":"0x510efccf44a192e6e34bcb439a1947e24b86244280762cbb006858c237093fda","blockNumber":"0x422","chainId":2018,"from":"0xfe3b557e8fb62b89f4916b721be55ceb828dbd73","gas":"0x5208","gasPrice":"0x3b9aca00","hash":"0xa52be92809541220ee0aaaede6047d9a6c5d0cd96a517c854d944ee70a0ebb44","input":"0x","nonce":"0x1","to":"0x627306090abab3a6e1400e9345bc60c78a8bef57","transactionIndex":"0x0","value":"0x4e1003b28d9280000","v":"0xfe7","r":"0x84caf09aefbd5e539295acc67217563438a4efb224879b6855f56857fa2037d3","s":"0x5e863be3829812c81439f0ae9d8ecb832b531d651fb234c848d1bf45e62be8b9"}}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_getTransactionByBlockNumberAndIndex","summary":"Returns information about a transaction by block number and transaction index position.","params":[{"name":"Block","required":true,"schema":{"$ref":"#/components/schemas/BlockNumberOrTag"}},{"name":"Transaction index","required":true,"schema":{"$ref":"#/components/schemas/uint"}}],"result":{"name":"Transaction information","schema":{"oneOf":[{"$ref":"#/components/schemas/notFound"},{"$ref":"#/components/schemas/TransactionInfo"}]}},"examples":[{"name":"eth_getTransactionByBlockNumberAndIndex example","params":[{"name":"Block","value":"0x1442e"},{"name":"Transaction index","value":"0x2"}],"result":{"name":"Transaction information","value":{"blockHash":"0x510efccf44a192e6e34bcb439a1947e24b86244280762cbb006858c237093fda","blockNumber":"0x422","chainId":2018,"from":"0xfe3b557e8fb62b89f4916b721be55ceb828dbd73","gas":"0x5208","gasPrice":"0x3b9aca00","hash":"0xa52be92809541220ee0aaaede6047d9a6c5d0cd96a517c854d944ee70a0ebb44","input":"0x","nonce":"0x1","to":"0x627306090abab3a6e1400e9345bc60c78a8bef57","transactionIndex":"0x0","value":"0x4e1003b28d9280000","v":"0xfe7","r":"0x84caf09aefbd5e539295acc67217563438a4efb224879b6855f56857fa2037d3","s":"0x5e863be3829812c81439f0ae9d8ecb832b531d651fb234c848d1bf45e62be8b9"}}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_getTransactionByHash","summary":"Returns the information about a transaction requested by transaction hash.","params":[{"name":"Transaction hash","required":true,"schema":{"$ref":"#/components/schemas/hash32"}}],"result":{"name":"Transaction information","schema":{"oneOf":[{"$ref":"#/components/schemas/notFound"},{"$ref":"#/components/schemas/TransactionInfo"}]}},"examples":[{"name":"eth_getTransactionByHash example","params":[{"name":"Transaction hash","value":"0xa52be92809541220ee0aaaede6047d9a6c5d0cd96a517c854d944ee70a0ebb44"}],"result":{"name":"Transaction information","value":{"blockHash":"0x510efccf44a192e6e34bcb439a1947e24b86244280762cbb006858c237093fda","blockNumber":"0x422","chainId":2018,"from":"0xfe3b557e8fb62b89f4916b721be55ceb828dbd73","gas":"0x5208","gasPrice":"0x3b9aca00","hash":"0xa52be92809541220ee0aaaede6047d9a6c5d0cd96a517c854d944ee70a0ebb44","input":"0x","nonce":"0x1","to":"0x627306090abab3a6e1400e9345bc60c78a8bef57","transactionIndex":"0x0","value":"0x4e1003b28d9280000","v":"0xfe7","r":"0x84caf09aefbd5e539295acc67217563438a4efb224879b6855f56857fa2037d3","s":"0x5e863be3829812c81439f0ae9d8ecb832b531d651fb234c848d1bf45e62be8b9"}}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_getTransactionCount","summary":"Returns the number of transactions sent from an address.","params":[{"name":"Address","required":true,"schema":{"$ref":"#/components/schemas/address"}},{"name":"Block","required":true,"schema":{"$ref":"#/components/schemas/BlockNumberOrTagOrHash"}}],"result":{"name":"Transaction count","schema":{"$ref":"#/components/schemas/uint"}},"examples":[{"name":"eth_getTransactionCount example","params":[{"name":"Address","value":"0xc94770007dda54cF92009BFF0dE90c06F603a09f"},{"name":"Block","value":"latest"}],"result":{"name":"Transaction count","value":"0x1"}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_getTransactionReceipt","summary":"Returns the receipt of a transaction by transaction hash.","params":[{"name":"Transaction hash","required":true,"schema":{"$ref":"#/components/schemas/hash32"}}],"result":{"name":"Receipt information","schema":{"oneOf":[{"$ref":"#/components/schemas/notFound"},{"$ref":"#/components/schemas/ReceiptInfo"}]}},"examples":[{"name":"eth_getTransactionReceipt example","params":[{"name":"Transaction hash","value":"0x504ce587a65bdbdb6414a0c6c16d86a04dd79bfcc4f2950eec9634b30ce5370f"}],"result":{"name":"Receipt information","value":{"blockHash":"0xe7212a92cfb9b06addc80dec2a0dfae9ea94fd344efeb157c41e12994fcad60a","blockNumber":"0x50","contractAddress":null,"cumulativeGasUsed":"0x5208","from":"0x627306090abab3a6e1400e9345bc60c78a8bef57","gasUsed":"0x5208","blobGasUsed":"0x20000","effectiveGasPrice":"0x1","blobGasPrice":"0x3","logs":[],"logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","status":"0x1","to":"0xf17f52151ebef6c7334fad080c5704d77216b732","transactionHash":"0xc00e97af59c6f88de163306935f7682af1a34c67245e414537d02e422815efc3","transactionIndex":"0x0"}}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_getUncleCountByBlockHash","summary":"Returns the number of uncles in a block from a block matching the given block hash.","params":[{"name":"Block hash","schema":{"$ref":"#/components/schemas/hash32"}}],"result":{"name":"Uncle count","schema":{"oneOf":[{"$ref":"#/components/schemas/notFound"},{"title":"Uncle count","$ref":"#/components/schemas/uint"}]}},"examples":[{"name":"eth_getUncleCountByBlockHash example","params":[{"name":"Block hash","value":"0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"}],"result":{"name":"Uncle count","value":"0x1"}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_getUncleCountByBlockNumber","summary":"Returns the number of transactions in a block matching the given block number.","params":[{"name":"Block","schema":{"$ref":"#/components/schemas/BlockNumberOrTag"}}],"result":{"name":"Uncle count","schema":{"oneOf":[{"$ref":"#/components/schemas/notFound"},{"title":"Uncle count","$ref":"#/components/schemas/uint"}]}},"examples":[{"name":"eth_getUncleCountByBlockNumber example","params":[{"name":"Block","value":"0xe8"}],"result":{"name":"Uncle count","value":"0x1"}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_newBlockFilter","summary":"Creates a filter in the node, to notify when a new block arrives.","params":[],"result":{"name":"Filter identifier","schema":{"$ref":"#/components/schemas/uint"}},"examples":[{"name":"eth_newBlockFilter example","params":[],"result":{"name":"Filter identifier","value":"0x01"}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_newFilter","summary":"Creates a filter object, based on filter options, to notify when the state changes (logs).","params":[{"name":"Filter","schema":{"$ref":"#/components/schemas/Filter"}}],"result":{"name":"Filter identifier","schema":{"$ref":"#/components/schemas/uint"}},"examples":[{"name":"eth_newFilter example","params":[{"name":"Filter","value":{"fromBlock":"0x137d3c2","toBlock":"0x137d3c3","address":"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2","topics":[]}}],"result":{"name":"Filter identifier","value":"0x01"}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_newPendingTransactionFilter","summary":"Creates a filter in the node, to notify when new pending transactions arrive.","params":[],"result":{"name":"Filter identifier","schema":{"$ref":"#/components/schemas/uint"}},"examples":[{"name":"eth_newPendingTransactionFilter example","params":[],"result":{"name":"Filter identifier","value":"0x01"}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_sendRawTransaction","summary":"Submits a raw transaction. You can create and sign a transaction externally using a library such as [web3.js](https://web3js.readthedocs.io/) or [ethers.js](https://docs.ethers.org/). For [EIP-4844](https://eips.ethereum.org/EIPS/eip-4844) transactions, the raw form must be the network form. This means it includes the blobs, KZG commitments, and KZG proofs.","params":[{"name":"Transaction","required":true,"schema":{"$ref":"#/components/schemas/bytes"}}],"result":{"name":"Transaction hash","schema":{"$ref":"#/components/schemas/hash32"}},"examples":[{"name":"eth_sendRawTransaction example","params":[{"name":"Transaction","value":"0xf869018203e882520894f17f52151ebef6c7334fad080c5704d77216b732881bc16d674ec80000801ba02da1c48b670996dcb1f447ef9ef00b33033c48a4fe938f420bec3e56bfd24071a062e0aa78a81bf0290afbc3a9d8e9a068e6d74caa66c5e0fa8a46deaae96b0833"}],"result":{"name":"Transaction hash","value":"0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331"}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_syncing","summary":"Returns an object with data about the sync status or false.","params":[],"result":{"name":"Syncing status","schema":{"$ref":"#/components/schemas/SyncingStatus"}},"examples":[{"name":"eth_syncing example","params":[],"result":{"name":"Syncing status","value":{"startingBlock":"0x0","currentBlock":"0x1518","highestBlock":"0x9567a3"}}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]},{"name":"eth_uninstallFilter","summary":"Uninstalls a filter with given id.","params":[{"name":"Filter identifier","schema":{"$ref":"#/components/schemas/uint"}}],"result":{"name":"Success","schema":{"type":"boolean"}},"examples":[{"name":"eth_uninstallFilter example","params":[{"name":"Filter identifier","value":"0x01"}],"result":{"name":"Success","value":true}}],"tags":[{"name":"Ethereum API","description":"Ethereum Node JSON-RPC method"},{"name":"Multichain API","description":"Multichain JSON-RPC method"}]}],"components":{"errors":{"UserRejected":{"code":4001,"message":"User rejected the request."},"InvalidParams":{"code":-32602,"message":"The wallet cannot parse the request."},"Unauthorized":{"code":4100,"message":"The requested account and/or method has not been authorized by the user."}},"schemas":{"TypedData":{"title":"Typed data","description":"Object containing information about the typed data to sign.","type":"object","required":["types","primaryType","domain","message"],"properties":{"types":{"type":"object","description":"Object containing type information.","required":["EIP712Domain"],"properties":{"EIP712Domain":{"type":"array","items":{"type":"object","title":"Domain separator value","description":"Object containing information about the domain separator value.","properties":{"name":{"type":"string","description":"Name of the domain separator value."},"type":{"type":"string","description":"Data type of the domain separator value."}}},"description":"An array specifying one or more of the following domain separator values: <br><br> <ul>\\n <li>`name` - The user-readable name of the signing domain, that is, the name of the dapp or the protocol.</li>\\n <li>`version` - The current major version of the signing domain.</li>\\n <li>`chainId` - The chain ID of the network.</li>\\n <li>`verifyingContract` - The address of the contract that will verify the signature.</li>\\n <li>`salt` - A disambiguating salt for the protocol.</li>\\n</ul>"}},"additionalProperties":{"type":"array","required":["name","type"],"items":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"}}}}},"domain":{"type":"object","description":"Object containing the domain separator values specified in the `EIP712Domain` type."},"primaryType":{"type":"string","description":"The primary type of the message."},"message":{"type":"object","description":"The message you\'re proposing the user to sign."}}},"SendCallsParameter":{"title":"Calls","description":"An object containing information about a batch of calls.","type":"object","required":["version","from","chainId","atomicRequired","calls"],"properties":{"version":{"description":"The version of the API format. This must be `2.0.0`.","type":"string"},"id":{"description":"The ID of the batch of calls.","type":"string"},"from":{"description":"The sender\'s address.","type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"chainId":{"description":"The [EIP-155](https://eips.ethereum.org/EIPS/eip-155) chain ID of the calls. This must match the currently selected network in the wallet.","type":"string","pattern":"^0x([1-9a-f]+[0-9a-f]*|0)$"},"atomicRequired":{"description":"`true` if the wallet must execute all calls atomically. If `false`, the wallet may execute the calls sequentially without atomicity. If `false` and the wallet is capable of executing the calls atomically, it may do so.","type":"boolean"},"calls":{"type":"array","description":"An array of call objects.","items":{"title":"Call","description":"An object containing information about the call.","type":"object","properties":{"to":{"description":"The address of the call\'s recipient.","type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"data":{"description":"The data to send with the call.","type":"string","pattern":"^0x[0-9a-f]*$"},"value":{"description":"The value to send with the call.","type":"string","pattern":"^0x([1-9a-f]+[0-9a-f]*|0)$"},"capabilities":{"description":"Dapps can use this object to communicate with the wallet about supported capabilities.","type":"object"}}}},"capabilities":{"description":"Dapps can use this object to communicate with the wallet about supported capabilities.","type":"object"}}},"AddEthereumChainParameter":{"title":"Chain","description":"Object containing information about the chain to add.","type":"object","required":["chainId","chainName","nativeCurrency","rpcUrls"],"properties":{"chainId":{"description":"The chain ID as a `0x`-prefixed hexadecimal string, per the `eth_chainId` method. MetaMask compares this chain ID value with the `eth_chainId` return value. If these values aren\'t identical, MetaMask rejects the request.","type":"string"},"blockExplorerUrls":{"description":"(Optional) An array of one or more URLs pointing to block explorer sites for the chain.","type":"array","items":{"type":"string","description":"Block explorer URL."}},"chainName":{"description":"A human-readable name for the chain.","type":"string"},"iconUrls":{"description":"(Optional) An array of one or more URLs pointing to icons that can be used to visually identify the chain. Note: MetaMask will not currently display these icons. You can still include icon URLs so they are used if MetaMask incorporates them into the display of custom networks in the future.","type":"array","items":{"format":"uri","type":"string","description":"Icon URL."}},"nativeCurrency":{"$ref":"#/components/schemas/NativeCurrency"},"rpcUrls":{"description":"An array of one or more URLs pointing to RPC endpoints that can be used to communicate with the chain. At least one item is required, and only the first item is used.","type":"array","minItems":1,"items":{"format":"uri","type":"string","description":"RPC URL."}}}},"NativeCurrency":{"title":"NativeCurrency","type":"object","description":"An object containing information about the native currency of the chain.","required":["decimals","symbol"],"properties":{"decimals":{"description":"A non-negative integer representing the number of decimals the native currency uses.","minimum":0,"type":"integer"},"name":{"description":"A human-readable name of the native currency.","type":"string"},"symbol":{"description":"A human-readable symbol of the native currency.","type":"string"}}},"Caveats":{"title":"Caveats","description":"An array of caveats that specify restrictions on the permission.","type":"array","items":{"title":"Caveat","description":"Object containing information about the caveat.","type":"object","properties":{"type":{"title":"Type","type":"string","description":"Type of caveat."},"value":{"title":"CaveatValue","description":"Value of the caveat."},"name":{"title":"Name","type":"string","description":"Name of the caveat."}}}},"Permission":{"title":"Permission","description":"Object containing information about the permission.","type":"object","properties":{"id":{"description":"The permission ID.","type":"string"},"parentCapability":{"description":"The name of the permission being granted. For example, `eth_accounts` or `endowment:permitted-chains`.","type":"string"},"invoker":{"description":"The URI of the dapp being granted this permission.","type":"string"},"caveats":{"$ref":"#/components/schemas/Caveats"},"date":{"description":"The timestamp of the permission request.","type":"number"}}},"PermissionsList":{"title":"Permissions list","description":"An array of the user\'s permissions.","type":"array","items":{"$ref":"#/components/schemas/Permission"}},"address":{"title":"hex encoded address","type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"addresses":{"title":"hex encoded address","type":"array","items":{"$ref":"#/components/schemas/address"}},"byte":{"title":"hex encoded byte","type":"string","pattern":"^0x([0-9a-fA-F]?){1,2}$"},"bytes":{"title":"hex encoded bytes","type":"string","pattern":"^0x[0-9a-f]*$"},"bytesMax32":{"title":"32 hex encoded bytes","type":"string","pattern":"^0x[0-9a-f]{0,64}$"},"bytes8":{"title":"8 hex encoded bytes","type":"string","pattern":"^0x[0-9a-f]{16}$"},"bytes32":{"title":"32 hex encoded bytes","type":"string","pattern":"^0x[0-9a-f]{64}$"},"bytes48":{"title":"48 hex encoded bytes","type":"string","pattern":"^0x[0-9a-f]{96}$"},"bytes96":{"title":"96 hex encoded bytes","type":"string","pattern":"^0x[0-9a-f]{192}$"},"bytes256":{"title":"256 hex encoded bytes","type":"string","pattern":"^0x[0-9a-f]{512}$"},"bytes65":{"title":"65 hex encoded bytes","type":"string","pattern":"^0x[0-9a-f]{130}$"},"ratio":{"title":"normalized ratio","type":"number","minimum":0,"maximum":1},"uint":{"title":"hex encoded unsigned integer","type":"string","pattern":"^0x([1-9a-f]+[0-9a-f]*|0)$"},"uint64":{"title":"hex encoded 64 bit unsigned integer","type":"string","pattern":"^0x([1-9a-f]+[0-9a-f]{0,15})|0$"},"uint256":{"title":"hex encoded 256 bit unsigned integer","type":"string","pattern":"^0x([1-9a-f]+[0-9a-f]{0,31})|0$"},"hash32":{"title":"32 byte hex value","type":"string","pattern":"^0x[0-9a-f]{64}$"},"notFound":{"title":"Not Found (null)","type":"null"},"Block":{"title":"Block object","type":"object","required":["hash","parentHash","sha3Uncles","miner","stateRoot","transactionsRoot","receiptsRoot","logsBloom","number","gasLimit","gasUsed","timestamp","extraData","mixHash","nonce","size","transactions","uncles"],"additionalProperties":false,"properties":{"hash":{"title":"Hash","$ref":"#/components/schemas/hash32"},"parentHash":{"title":"Parent block hash","$ref":"#/components/schemas/hash32"},"sha3Uncles":{"title":"Ommers hash","$ref":"#/components/schemas/hash32"},"miner":{"title":"Coinbase","$ref":"#/components/schemas/address"},"stateRoot":{"title":"State root","$ref":"#/components/schemas/hash32"},"transactionsRoot":{"title":"Transactions root","$ref":"#/components/schemas/hash32"},"receiptsRoot":{"title":"Receipts root","$ref":"#/components/schemas/hash32"},"logsBloom":{"title":"Bloom filter","$ref":"#/components/schemas/bytes256"},"difficulty":{"title":"Difficulty","$ref":"#/components/schemas/uint"},"number":{"title":"Number","$ref":"#/components/schemas/uint"},"gasLimit":{"title":"Gas limit","$ref":"#/components/schemas/uint"},"gasUsed":{"title":"Gas used","$ref":"#/components/schemas/uint"},"timestamp":{"title":"Timestamp","$ref":"#/components/schemas/uint"},"extraData":{"title":"Extra data","$ref":"#/components/schemas/bytes"},"mixHash":{"title":"Mix hash","$ref":"#/components/schemas/hash32"},"nonce":{"title":"Nonce","$ref":"#/components/schemas/bytes8"},"baseFeePerGas":{"title":"Base fee per gas","$ref":"#/components/schemas/uint"},"withdrawalsRoot":{"title":"Withdrawals root","$ref":"#/components/schemas/hash32"},"blobGasUsed":{"title":"Blob gas used","$ref":"#/components/schemas/uint"},"excessBlobGas":{"title":"Excess blob gas","$ref":"#/components/schemas/uint"},"parentBeaconBlockRoot":{"title":"Parent Beacon Block Root","$ref":"#/components/schemas/hash32"},"size":{"title":"Block size","$ref":"#/components/schemas/uint"},"transactions":{"anyOf":[{"title":"Transaction hashes","type":"array","items":{"$ref":"#/components/schemas/hash32"}},{"title":"Full transactions","type":"array","items":{"$ref":"#/components/schemas/TransactionInfo"}}]},"withdrawals":{"title":"Withdrawals","type":"array","items":{"$ref":"#/components/schemas/Withdrawal"}},"uncles":{"title":"Uncles","type":"array","items":{"$ref":"#/components/schemas/hash32"}}}},"BlockTag":{"title":"Block tag","type":"string","enum":["earliest","finalized","safe","latest","pending"],"description":"`earliest`: The lowest numbered block the client has available; `finalized`: The most recent crypto-economically secure block, cannot be re-orged outside of manual intervention driven by community coordination; `safe`: The most recent block that is safe from re-orgs under honest majority and certain synchronicity assumptions; `latest`: The most recent block in the canonical chain observed by the client, this block may be re-orged out of the canonical chain even under healthy/normal conditions; `pending`: A sample next block built by the client on top of `latest` and containing the set of transactions usually taken from local mempool. Before the merge transition is finalized, any call querying for `finalized` or `safe` block MUST be responded to with `-39001: Unknown block` error"},"BlockNumberOrTag":{"title":"Block number or tag","oneOf":[{"title":"Block number","$ref":"#/components/schemas/uint"},{"title":"Block tag","$ref":"#/components/schemas/BlockTag"}]},"BlockNumberOrTagOrHash":{"title":"Block number, tag, or block hash","anyOf":[{"title":"Block number","$ref":"#/components/schemas/uint"},{"title":"Block tag","$ref":"#/components/schemas/BlockTag"},{"title":"Block hash","$ref":"#/components/schemas/hash32"}]},"BadBlock":{"title":"Bad block","type":"object","required":["block","hash","rlp"],"additionalProperties":false,"properties":{"block":{"title":"Block","$ref":"#/components/schemas/Block"},"hash":{"title":"Hash","$ref":"#/components/schemas/hash32"},"rlp":{"title":"RLP","$ref":"#/components/schemas/bytes"}}},"SyncingStatus":{"title":"Syncing status","oneOf":[{"title":"Syncing progress","type":"object","additionalProperties":false,"properties":{"startingBlock":{"title":"Starting block","$ref":"#/components/schemas/uint"},"currentBlock":{"title":"Current block","$ref":"#/components/schemas/uint"},"highestBlock":{"title":"Highest block","$ref":"#/components/schemas/uint"}}},{"title":"Not syncing","description":"Should always return false if not syncing.","type":"boolean"}]},"FilterResults":{"title":"Filter results","oneOf":[{"title":"new block or transaction hashes","type":"array","items":{"$ref":"#/components/schemas/hash32"}},{"title":"new logs","type":"array","items":{"$ref":"#/components/schemas/Log"}}]},"Filter":{"title":"filter","type":"object","additionalProperties":false,"properties":{"fromBlock":{"title":"from block","$ref":"#/components/schemas/uint"},"toBlock":{"title":"to block","$ref":"#/components/schemas/uint"},"address":{"title":"Address(es)","oneOf":[{"title":"Any Address","type":"null"},{"title":"Address","$ref":"#/components/schemas/address"},{"title":"Addresses","$ref":"#/components/schemas/addresses"}]},"topics":{"title":"Topics","$ref":"#/components/schemas/FilterTopics"}}},"FilterTopics":{"title":"Filter Topics","oneOf":[{"title":"Any Topic Match","type":"null"},{"title":"Specified Filter Topics","type":"array","items":{"$ref":"#/components/schemas/FilterTopic"}}]},"FilterTopic":{"title":"Filter Topic List Entry","oneOf":[{"title":"Single Topic Match","$ref":"#/components/schemas/bytes32"},{"title":"Multiple Topic Match","type":"array","items":{"$ref":"#/components/schemas/bytes32"}}]},"Log":{"title":"log","type":"object","required":["transactionHash"],"additionalProperties":false,"properties":{"removed":{"title":"removed","type":"boolean"},"logIndex":{"title":"log index","$ref":"#/components/schemas/uint"},"transactionIndex":{"title":"transaction index","$ref":"#/components/schemas/uint"},"transactionHash":{"title":"transaction hash","$ref":"#/components/schemas/hash32"},"blockHash":{"title":"block hash","$ref":"#/components/schemas/hash32"},"blockNumber":{"title":"block number","$ref":"#/components/schemas/uint"},"address":{"title":"address","$ref":"#/components/schemas/address"},"data":{"title":"data","$ref":"#/components/schemas/bytes"},"topics":{"title":"topics","type":"array","items":{"$ref":"#/components/schemas/bytes32"}}}},"ReceiptInfo":{"type":"object","title":"Receipt information","required":["blockHash","blockNumber","from","cumulativeGasUsed","gasUsed","logs","logsBloom","transactionHash","transactionIndex","effectiveGasPrice"],"additionalProperties":false,"properties":{"type":{"title":"type","$ref":"#/components/schemas/byte"},"transactionHash":{"title":"transaction hash","$ref":"#/components/schemas/hash32"},"transactionIndex":{"title":"transaction index","$ref":"#/components/schemas/uint"},"blockHash":{"title":"block hash","$ref":"#/components/schemas/hash32"},"blockNumber":{"title":"block number","$ref":"#/components/schemas/uint"},"from":{"title":"from","$ref":"#/components/schemas/address"},"to":{"title":"to","description":"Address of the receiver or null in a contract creation transaction.","oneOf":[{"title":"Contract Creation (null)","type":"null"},{"title":"Recipient Address","$ref":"#/components/schemas/address"}]},"cumulativeGasUsed":{"title":"cumulative gas used","description":"The sum of gas used by this transaction and all preceding transactions in the same block.","$ref":"#/components/schemas/uint"},"gasUsed":{"title":"gas used","description":"The amount of gas used for this specific transaction alone.","$ref":"#/components/schemas/uint"},"blobGasUsed":{"title":"blob gas used","description":"The amount of blob gas used for this specific transaction. Only specified for blob transactions as defined by EIP-4844.","$ref":"#/components/schemas/uint"},"contractAddress":{"title":"contract address","description":"The contract address created, if the transaction was a contract creation, otherwise null.","oneOf":[{"$ref":"#/components/schemas/address"},{"title":"Null","type":"null"}]},"logs":{"title":"logs","type":"array","items":{"$ref":"#/components/schemas/Log"}},"logsBloom":{"title":"logs bloom","$ref":"#/components/schemas/bytes256"},"root":{"title":"state root","description":"The post-transaction state root. Only specified for transactions included before the Byzantium upgrade.","$ref":"#/components/schemas/hash32"},"status":{"title":"status","description":"Either 1 (success) or 0 (failure). Only specified for transactions included after the Byzantium upgrade.","$ref":"#/components/schemas/uint"},"effectiveGasPrice":{"title":"effective gas price","description":"The actual value per gas deducted from the sender\'s account. Before EIP-1559, this is equal to the transaction\'s gas price. After, it is equal to baseFeePerGas + min(maxFeePerGas - baseFeePerGas, maxPriorityFeePerGas).","$ref":"#/components/schemas/uint"},"blobGasPrice":{"title":"blob gas price","description":"The actual value per gas deducted from the sender\'s account for blob gas. Only specified for blob transactions as defined by EIP-4844.","$ref":"#/components/schemas/uint"}}},"AccountProof":{"title":"Account proof","type":"object","required":["address","accountProof","balance","codeHash","nonce","storageHash","storageProof"],"additionalProperties":false,"properties":{"address":{"title":"address","$ref":"#/components/schemas/address"},"accountProof":{"title":"accountProof","type":"array","items":{"$ref":"#/components/schemas/bytes"}},"balance":{"title":"balance","$ref":"#/components/schemas/uint256"},"codeHash":{"title":"codeHash","$ref":"#/components/schemas/hash32"},"nonce":{"title":"nonce","$ref":"#/components/schemas/uint64"},"storageHash":{"title":"storageHash","$ref":"#/components/schemas/hash32"},"storageProof":{"title":"Storage proofs","type":"array","items":{"$ref":"#/components/schemas/StorageProof"}}}},"StorageProof":{"title":"Storage proof","type":"object","required":["key","value","proof"],"additionalProperties":false,"properties":{"key":{"title":"key","$ref":"#/components/schemas/bytesMax32"},"value":{"title":"value","$ref":"#/components/schemas/uint256"},"proof":{"title":"proof","type":"array","items":{"$ref":"#/components/schemas/bytes"}}}},"Transaction4844Unsigned":{"type":"object","title":"EIP-4844 transaction.","required":["type","nonce","to","gas","value","input","maxPriorityFeePerGas","maxFeePerGas","maxFeePerBlobGas","accessList","blobVersionedHashes","chainId"],"properties":{"type":{"title":"type","$ref":"#/components/schemas/byte"},"nonce":{"title":"nonce","$ref":"#/components/schemas/uint"},"to":{"title":"to address","$ref":"#/components/schemas/address"},"gas":{"title":"gas limit","$ref":"#/components/schemas/uint"},"value":{"title":"value","$ref":"#/components/schemas/uint"},"input":{"title":"input data","$ref":"#/components/schemas/bytes"},"maxPriorityFeePerGas":{"title":"max priority fee per gas","description":"Maximum fee per gas the sender is willing to pay to miners in wei","$ref":"#/components/schemas/uint"},"maxFeePerGas":{"title":"max fee per gas","description":"The maximum total fee per gas the sender is willing to pay (includes the network / base fee and miner / priority fee) in wei","$ref":"#/components/schemas/uint"},"maxFeePerBlobGas":{"title":"max fee per blob gas","description":"The maximum total fee per gas the sender is willing to pay for blob gas in wei","$ref":"#/components/schemas/uint"},"accessList":{"title":"accessList","description":"EIP-2930 access list","$ref":"#/components/schemas/AccessList"},"blobVersionedHashes":{"title":"blobVersionedHashes","description":"List of versioned blob hashes associated with the transaction\'s EIP-4844 data blobs.","type":"array","items":{"$ref":"#/components/schemas/hash32"}},"chainId":{"title":"chainId","description":"Chain ID that this transaction is valid on.","$ref":"#/components/schemas/uint"}}},"AccessListEntry":{"title":"Access list entry","type":"object","additionalProperties":false,"properties":{"address":{"$ref":"#/components/schemas/address"},"storageKeys":{"type":"array","items":{"$ref":"#/components/schemas/hash32"}}}},"AccessList":{"title":"Access list","type":"array","items":{"$ref":"#/components/schemas/AccessListEntry"}},"Transaction1559Unsigned":{"type":"object","title":"EIP-1559 transaction.","required":["type","nonce","gas","value","input","maxFeePerGas","maxPriorityFeePerGas","gasPrice","chainId","accessList"],"properties":{"type":{"title":"type","type":"string","pattern":"^0x2$"},"nonce":{"title":"nonce","$ref":"#/components/schemas/uint"},"to":{"title":"to address","oneOf":[{"title":"Contract Creation (null)","type":"null"},{"title":"Address","$ref":"#/components/schemas/address"}]},"gas":{"title":"gas limit","$ref":"#/components/schemas/uint"},"value":{"title":"value","$ref":"#/components/schemas/uint"},"input":{"title":"input data","$ref":"#/components/schemas/bytes"},"maxPriorityFeePerGas":{"title":"max priority fee per gas","description":"Maximum fee per gas the sender is willing to pay to miners in wei","$ref":"#/components/schemas/uint"},"maxFeePerGas":{"title":"max fee per gas","description":"The maximum total fee per gas the sender is willing to pay (includes the network / base fee and miner / priority fee) in wei","$ref":"#/components/schemas/uint"},"gasPrice":{"title":"gas price","description":"The effective gas price paid by the sender in wei. For transactions not yet included in a block, this value should be set equal to the max fee per gas. This field is DEPRECATED, please transition to using effectiveGasPrice in the receipt object going forward.","$ref":"#/components/schemas/uint"},"accessList":{"title":"accessList","description":"EIP-2930 access list","$ref":"#/components/schemas/AccessList"},"chainId":{"title":"chainId","description":"Chain ID that this transaction is valid on.","$ref":"#/components/schemas/uint"}}},"Transaction2930Unsigned":{"type":"object","title":"EIP-2930 transaction.","required":["type","nonce","gas","value","input","gasPrice","chainId","accessList"],"properties":{"type":{"title":"type","type":"string","pattern":"^0x1$"},"nonce":{"title":"nonce","$ref":"#/components/schemas/uint"},"to":{"title":"to address","oneOf":[{"title":"Contract Creation (null)","type":"null"},{"title":"Address","$ref":"#/components/schemas/address"}]},"gas":{"title":"gas limit","$ref":"#/components/schemas/uint"},"value":{"title":"value","$ref":"#/components/schemas/uint"},"input":{"title":"input data","$ref":"#/components/schemas/bytes"},"gasPrice":{"title":"gas price","description":"The gas price willing to be paid by the sender in wei","$ref":"#/components/schemas/uint"},"accessList":{"title":"accessList","description":"EIP-2930 access list","$ref":"#/components/schemas/AccessList"},"chainId":{"title":"chainId","description":"Chain ID that this transaction is valid on.","$ref":"#/components/schemas/uint"}}},"TransactionLegacyUnsigned":{"type":"object","title":"Legacy transaction.","required":["type","nonce","gas","value","input","gasPrice"],"properties":{"type":{"title":"type","type":"string","pattern":"^0x0$"},"nonce":{"title":"nonce","$ref":"#/components/schemas/uint"},"to":{"title":"to address","oneOf":[{"title":"Contract Creation (null)","type":"null"},{"title":"Address","$ref":"#/components/schemas/address"}]},"gas":{"title":"gas limit","$ref":"#/components/schemas/uint"},"value":{"title":"value","$ref":"#/components/schemas/uint"},"input":{"title":"input data","$ref":"#/components/schemas/bytes"},"gasPrice":{"title":"gas price","description":"The gas price willing to be paid by the sender in wei","$ref":"#/components/schemas/uint"},"chainId":{"title":"chainId","description":"Chain ID that this transaction is valid on.","$ref":"#/components/schemas/uint"}}},"TransactionUnsigned":{"oneOf":[{"$ref":"#/components/schemas/Transaction4844Unsigned"},{"$ref":"#/components/schemas/Transaction1559Unsigned"},{"$ref":"#/components/schemas/Transaction2930Unsigned"},{"$ref":"#/components/schemas/TransactionLegacyUnsigned"}]},"Transaction4844Signed":{"title":"Signed 4844 Transaction","type":"object","allOf":[{"$ref":"#/components/schemas/Transaction4844Unsigned"},{"title":"EIP-4844 transaction signature properties.","required":["yParity","r","s"],"properties":{"yParity":{"title":"yParity","description":"The parity (0 for even, 1 for odd) of the y-value of the secp256k1 signature.","$ref":"#/components/schemas/uint"},"r":{"title":"r","$ref":"#/components/schemas/uint"},"s":{"title":"s","$ref":"#/components/schemas/uint"}}}]},"Transaction1559Signed":{"title":"Signed 1559 Transaction","type":"object","allOf":[{"$ref":"#/components/schemas/Transaction1559Unsigned"},{"title":"EIP-1559 transaction signature properties.","required":["yParity","r","s"],"properties":{"yParity":{"title":"yParity","description":"The parity (0 for even, 1 for odd) of the y-value of the secp256k1 signature.","$ref":"#/components/schemas/uint"},"v":{"title":"v","description":"For backwards compatibility, `v` is optionally provided as an alternative to `yParity`. This field is DEPRECATED and all use of it should migrate to `yParity`.","$ref":"#/components/schemas/uint"},"r":{"title":"r","$ref":"#/components/schemas/uint"},"s":{"title":"s","$ref":"#/components/schemas/uint"}}}]},"Transaction2930Signed":{"title":"Signed 2930 Transaction","type":"object","allOf":[{"$ref":"#/components/schemas/Transaction2930Unsigned"},{"title":"EIP-2930 transaction signature properties.","required":["yParity","r","s"],"properties":{"yParity":{"title":"yParity","description":"The parity (0 for even, 1 for odd) of the y-value of the secp256k1 signature.","$ref":"#/components/schemas/uint"},"v":{"title":"v","description":"For backwards compatibility, `v` is optionally provided as an alternative to `yParity`. This field is DEPRECATED and all use of it should migrate to `yParity`.","$ref":"#/components/schemas/uint"},"r":{"title":"r","$ref":"#/components/schemas/uint"},"s":{"title":"s","$ref":"#/components/schemas/uint"}}}]},"TransactionLegacySigned":{"title":"Signed Legacy Transaction","type":"object","allOf":[{"$ref":"#/components/schemas/TransactionLegacyUnsigned"},{"title":"Legacy transaction signature properties.","required":["v","r","s"],"properties":{"v":{"title":"v","$ref":"#/components/schemas/uint"},"r":{"title":"r","$ref":"#/components/schemas/uint"},"s":{"title":"s","$ref":"#/components/schemas/uint"}}}]},"TransactionSigned":{"oneOf":[{"$ref":"#/components/schemas/Transaction4844Signed"},{"$ref":"#/components/schemas/Transaction1559Signed"},{"$ref":"#/components/schemas/Transaction2930Signed"},{"$ref":"#/components/schemas/TransactionLegacySigned"}]},"TransactionInfo":{"type":"object","title":"Transaction information","allOf":[{"title":"Contextual information","required":["blockHash","blockNumber","from","hash","transactionIndex"],"unevaluatedProperties":false,"properties":{"blockHash":{"title":"block hash","$ref":"#/components/schemas/hash32"},"blockNumber":{"title":"block number","$ref":"#/components/schemas/uint"},"from":{"title":"from address","$ref":"#/components/schemas/address"},"hash":{"title":"transaction hash","$ref":"#/components/schemas/hash32"},"transactionIndex":{"title":"transaction index","$ref":"#/components/schemas/uint"}}},{"$ref":"#/components/schemas/TransactionSigned"}]},"GenericTransaction":{"type":"object","title":"Transaction object generic to all types","additionalProperties":false,"properties":{"type":{"title":"type","$ref":"#/components/schemas/byte"},"nonce":{"title":"nonce","$ref":"#/components/schemas/uint"},"to":{"title":"to address","oneOf":[{"title":"Contract Creation (null)","type":"null"},{"title":"Address","$ref":"#/components/schemas/address"}]},"from":{"title":"from address","$ref":"#/components/schemas/address"},"gas":{"title":"gas limit","$ref":"#/components/schemas/uint"},"value":{"title":"value","$ref":"#/components/schemas/uint"},"input":{"title":"input data","$ref":"#/components/schemas/bytes"},"gasPrice":{"title":"gas price","description":"The gas price willing to be paid by the sender in wei","$ref":"#/components/schemas/uint"},"maxPriorityFeePerGas":{"title":"max priority fee per gas","description":"Maximum fee per gas the sender is willing to pay to miners in wei","$ref":"#/components/schemas/uint"},"maxFeePerGas":{"title":"max fee per gas","description":"The maximum total fee per gas the sender is willing to pay (includes the network / base fee and miner / priority fee) in wei","$ref":"#/components/schemas/uint"},"maxFeePerBlobGas":{"title":"max fee per blob gas","description":"The maximum total fee per gas the sender is willing to pay for blob gas in wei","$ref":"#/components/schemas/uint"},"accessList":{"title":"accessList","description":"EIP-2930 access list","$ref":"#/components/schemas/AccessList"},"blobVersionedHashes":{"title":"blobVersionedHashes","description":"List of versioned blob hashes associated with the transaction\'s EIP-4844 data blobs.","type":"array","items":{"$ref":"#/components/schemas/hash32"}},"blobs":{"title":"blobs","description":"Raw blob data.","type":"array","items":{"$ref":"#/components/schemas/bytes"}},"chainId":{"title":"chainId","description":"Chain ID that this transaction is valid on.","$ref":"#/components/schemas/uint"}}},"Withdrawal":{"type":"object","title":"Validator withdrawal","required":["index","validatorIndex","address","amount"],"additionalProperties":false,"properties":{"index":{"title":"index of withdrawal","$ref":"#/components/schemas/uint64"},"validatorIndex":{"title":"index of validator that generated withdrawal","$ref":"#/components/schemas/uint64"},"address":{"title":"recipient address for withdrawal value","$ref":"#/components/schemas/address"},"amount":{"title":"value contained in withdrawal","$ref":"#/components/schemas/uint256"}}},"ForkchoiceStateV1":{"title":"Forkchoice state object V1","type":"object","required":["headBlockHash","safeBlockHash","finalizedBlockHash"],"properties":{"headBlockHash":{"title":"Head block hash","$ref":"#/components/schemas/hash32"},"safeBlockHash":{"title":"Safe block hash","$ref":"#/components/schemas/hash32"},"finalizedBlockHash":{"title":"Finalized block hash","$ref":"#/components/schemas/hash32"}}},"ForkchoiceUpdatedResponseV1":{"title":"Forkchoice updated response","type":"object","required":["payloadStatus"],"properties":{"payloadStatus":{"title":"Payload status","$ref":"#/components/schemas/RestrictedPayloadStatusV1"},"payloadId":{"title":"Payload id","$ref":"#/components/schemas/bytes8"}}},"PayloadAttributesV1":{"title":"Payload attributes object V1","type":"object","required":["timestamp","prevRandao","suggestedFeeRecipient"],"properties":{"timestamp":{"title":"Timestamp","$ref":"#/components/schemas/uint64"},"prevRandao":{"title":"Previous randao value","$ref":"#/components/schemas/bytes32"},"suggestedFeeRecipient":{"title":"Suggested fee recipient","$ref":"#/components/schemas/address"}}},"PayloadAttributesV2":{"title":"Payload attributes object V2","type":"object","required":["timestamp","prevRandao","suggestedFeeRecipient","withdrawals"],"properties":{"timestamp":{"$ref":"#/components/schemas/PayloadAttributesV1/properties/timestamp"},"prevRandao":{"$ref":"#/components/schemas/PayloadAttributesV1/properties/prevRandao"},"suggestedFeeRecipient":{"$ref":"#/components/schemas/PayloadAttributesV1/properties/suggestedFeeRecipient"},"withdrawals":{"title":"Withdrawals","type":"array","items":{"$ref":"#/components/schemas/WithdrawalV1"}}}},"PayloadAttributesV3":{"title":"Payload attributes object V3","type":"object","required":["timestamp","prevRandao","suggestedFeeRecipient","withdrawals","parentBeaconBlockRoot"],"properties":{"timestamp":{"$ref":"#/components/schemas/PayloadAttributesV2/properties/timestamp"},"prevRandao":{"$ref":"#/components/schemas/PayloadAttributesV2/properties/prevRandao"},"suggestedFeeRecipient":{"$ref":"#/components/schemas/PayloadAttributesV2/properties/suggestedFeeRecipient"},"withdrawals":{"$ref":"#/components/schemas/PayloadAttributesV2/properties/withdrawals"},"parentBeaconBlockRoot":{"title":"Parent beacon block root","$ref":"#/components/schemas/hash32"}}},"PayloadStatusV1":{"title":"Payload status object V1","type":"object","required":["status"],"properties":{"status":{"title":"Payload validation status","type":"string","enum":["VALID","INVALID","SYNCING","ACCEPTED","INVALID_BLOCK_HASH"]},"latestValidHash":{"title":"The hash of the most recent valid block","$ref":"#/components/schemas/hash32"},"validationError":{"title":"Validation error message","type":"string"}}},"RestrictedPayloadStatusV1":{"$ref":"#/components/schemas/PayloadStatusV1","properties":{"status":{"$ref":"#/components/schemas/PayloadStatusV1/properties/status","description":"Set of possible values is restricted to VALID, INVALID, SYNCING","enum":["VALID","INVALID","SYNCING"]},"latestValidHash":{"$ref":"#/components/schemas/PayloadStatusV1/properties/latestValidHash"},"validationError":{"$ref":"#/components/schemas/PayloadStatusV1/properties/validationError"}}},"PayloadStatusNoInvalidBlockHash":{"$ref":"#/components/schemas/PayloadStatusV1","title":"Payload status object deprecating INVALID_BLOCK_HASH status","properties":{"status":{"$ref":"#/components/schemas/PayloadStatusV1/properties/status","enum":["VALID","INVALID","SYNCING","ACCEPTED"]},"latestValidHash":{"$ref":"#/components/schemas/PayloadStatusV1/properties/latestValidHash"},"validationError":{"$ref":"#/components/schemas/PayloadStatusV1/properties/validationError"}}},"ExecutionPayloadV1":{"title":"Execution payload object V1","type":"object","required":["parentHash","feeRecipient","stateRoot","receiptsRoot","logsBloom","prevRandao","blockNumber","gasLimit","gasUsed","timestamp","extraData","baseFeePerGas","blockHash","transactions"],"properties":{"parentHash":{"title":"Parent block hash","$ref":"#/components/schemas/hash32"},"feeRecipient":{"title":"Recipient of transaction priority fees","$ref":"#/components/schemas/address"},"stateRoot":{"title":"State root","$ref":"#/components/schemas/hash32"},"receiptsRoot":{"title":"Receipts root","$ref":"#/components/schemas/hash32"},"logsBloom":{"title":"Bloom filter","$ref":"#/components/schemas/bytes256"},"prevRandao":{"title":"Previous randao value","$ref":"#/components/schemas/bytes32"},"blockNumber":{"title":"Block number","$ref":"#/components/schemas/uint64"},"gasLimit":{"title":"Gas limit","$ref":"#/components/schemas/uint64"},"gasUsed":{"title":"Gas used","$ref":"#/components/schemas/uint64"},"timestamp":{"title":"Timestamp","$ref":"#/components/schemas/uint64"},"extraData":{"title":"Extra data","$ref":"#/components/schemas/bytesMax32"},"baseFeePerGas":{"title":"Base fee per gas","$ref":"#/components/schemas/uint256"},"blockHash":{"title":"Block hash","$ref":"#/components/schemas/hash32"},"transactions":{"title":"Transactions","type":"array","items":{"$ref":"#/components/schemas/bytes"}}}},"WithdrawalV1":{"title":"Withdrawal object V1","type":"object","required":["index","validatorIndex","address","amount"],"properties":{"index":{"title":"Withdrawal index","$ref":"#/components/schemas/uint64"},"validatorIndex":{"title":"Validator index","$ref":"#/components/schemas/uint64"},"address":{"title":"Withdrawal address","$ref":"#/components/schemas/address"},"amount":{"title":"Withdrawal amount","$ref":"#/components/schemas/uint64"}}},"ExecutionPayloadV2":{"title":"Execution payload object V2","type":"object","required":["parentHash","feeRecipient","stateRoot","receiptsRoot","logsBloom","prevRandao","blockNumber","gasLimit","gasUsed","timestamp","extraData","baseFeePerGas","blockHash","transactions","withdrawals"],"properties":{"parentHash":{"$ref":"#/components/schemas/ExecutionPayloadV1/properties/parentHash"},"feeRecipient":{"$ref":"#/components/schemas/ExecutionPayloadV1/properties/feeRecipient"},"stateRoot":{"$ref":"#/components/schemas/ExecutionPayloadV1/properties/stateRoot"},"receiptsRoot":{"$ref":"#/components/schemas/ExecutionPayloadV1/properties/receiptsRoot"},"logsBloom":{"$ref":"#/components/schemas/ExecutionPayloadV1/properties/logsBloom"},"prevRandao":{"$ref":"#/components/schemas/ExecutionPayloadV1/properties/prevRandao"},"blockNumber":{"$ref":"#/components/schemas/ExecutionPayloadV1/properties/blockNumber"},"gasLimit":{"$ref":"#/components/schemas/ExecutionPayloadV1/properties/gasLimit"},"gasUsed":{"$ref":"#/components/schemas/ExecutionPayloadV1/properties/gasUsed"},"timestamp":{"$ref":"#/components/schemas/ExecutionPayloadV1/properties/timestamp"},"extraData":{"$ref":"#/components/schemas/ExecutionPayloadV1/properties/extraData"},"baseFeePerGas":{"$ref":"#/components/schemas/ExecutionPayloadV1/properties/baseFeePerGas"},"blockHash":{"$ref":"#/components/schemas/ExecutionPayloadV1/properties/blockHash"},"transactions":{"$ref":"#/components/schemas/ExecutionPayloadV1/properties/transactions"},"withdrawals":{"title":"Withdrawals","type":"array","items":{"$ref":"#/components/schemas/WithdrawalV1"}}}},"ExecutionPayloadV3":{"title":"Execution payload object V3","type":"object","required":["parentHash","feeRecipient","stateRoot","receiptsRoot","logsBloom","prevRandao","blockNumber","gasLimit","gasUsed","timestamp","extraData","baseFeePerGas","blockHash","transactions","withdrawals","blobGasUsed","excessBlobGas"],"properties":{"parentHash":{"$ref":"#/components/schemas/ExecutionPayloadV2/properties/parentHash"},"feeRecipient":{"$ref":"#/components/schemas/ExecutionPayloadV2/properties/feeRecipient"},"stateRoot":{"$ref":"#/components/schemas/ExecutionPayloadV2/properties/stateRoot"},"receiptsRoot":{"$ref":"#/components/schemas/ExecutionPayloadV2/properties/receiptsRoot"},"logsBloom":{"$ref":"#/components/schemas/ExecutionPayloadV2/properties/logsBloom"},"prevRandao":{"$ref":"#/components/schemas/ExecutionPayloadV2/properties/prevRandao"},"blockNumber":{"$ref":"#/components/schemas/ExecutionPayloadV2/properties/blockNumber"},"gasLimit":{"$ref":"#/components/schemas/ExecutionPayloadV2/properties/gasLimit"},"gasUsed":{"$ref":"#/components/schemas/ExecutionPayloadV2/properties/gasUsed"},"timestamp":{"$ref":"#/components/schemas/ExecutionPayloadV2/properties/timestamp"},"extraData":{"$ref":"#/components/schemas/ExecutionPayloadV2/properties/extraData"},"baseFeePerGas":{"$ref":"#/components/schemas/ExecutionPayloadV2/properties/baseFeePerGas"},"blockHash":{"$ref":"#/components/schemas/ExecutionPayloadV2/properties/blockHash"},"transactions":{"$ref":"#/components/schemas/ExecutionPayloadV2/properties/transactions"},"withdrawals":{"$ref":"#/components/schemas/ExecutionPayloadV2/properties/withdrawals"},"blobGasUsed":{"title":"Blob gas used","$ref":"#/components/schemas/uint64"},"excessBlobGas":{"title":"Excess blob gas","$ref":"#/components/schemas/uint64"}}},"ExecutionPayloadV4":{"title":"Execution payload object V4","type":"object","required":["parentHash","feeRecipient","stateRoot","receiptsRoot","logsBloom","prevRandao","blockNumber","gasLimit","gasUsed","timestamp","extraData","baseFeePerGas","blockHash","transactions","withdrawals","blobGasUsed","excessBlobGas","depositRequests","withdrawalRequests","consolidationRequests"],"properties":{"parentHash":{"$ref":"#/components/schemas/ExecutionPayloadV3/properties/parentHash"},"feeRecipient":{"$ref":"#/components/schemas/ExecutionPayloadV3/properties/feeRecipient"},"stateRoot":{"$ref":"#/components/schemas/ExecutionPayloadV3/properties/stateRoot"},"receiptsRoot":{"$ref":"#/components/schemas/ExecutionPayloadV3/properties/receiptsRoot"},"logsBloom":{"$ref":"#/components/schemas/ExecutionPayloadV3/properties/logsBloom"},"prevRandao":{"$ref":"#/components/schemas/ExecutionPayloadV3/properties/prevRandao"},"blockNumber":{"$ref":"#/components/schemas/ExecutionPayloadV3/properties/blockNumber"},"gasLimit":{"$ref":"#/components/schemas/ExecutionPayloadV3/properties/gasLimit"},"gasUsed":{"$ref":"#/components/schemas/ExecutionPayloadV3/properties/gasUsed"},"timestamp":{"$ref":"#/components/schemas/ExecutionPayloadV3/properties/timestamp"},"extraData":{"$ref":"#/components/schemas/ExecutionPayloadV3/properties/extraData"},"baseFeePerGas":{"$ref":"#/components/schemas/ExecutionPayloadV3/properties/baseFeePerGas"},"blockHash":{"$ref":"#/components/schemas/ExecutionPayloadV3/properties/blockHash"},"transactions":{"$ref":"#/components/schemas/ExecutionPayloadV3/properties/transactions"},"withdrawals":{"$ref":"#/components/schemas/ExecutionPayloadV3/properties/withdrawals"},"blobGasUsed":{"$ref":"#/components/schemas/ExecutionPayloadV3/properties/blobGasUsed"},"excessBlobGas":{"$ref":"#/components/schemas/ExecutionPayloadV3/properties/excessBlobGas"},"depositRequests":{"title":"Deposit requests","type":"array","items":{"$ref":"#/components/schemas/DepositRequestV1"}},"withdrawalRequests":{"title":"Withdrawals requests","type":"array","items":{"$ref":"#/components/schemas/WithdrawalRequestV1"}},"consolidationRequests":{"title":"Consolidation requests","type":"array","items":{"$ref":"#/components/schemas/ConsolidationRequestV1"}}}},"ExecutionPayloadBodyV1":{"title":"Execution payload body object V1","type":"object","required":["transactions"],"properties":{"transactions":{"$ref":"#/components/schemas/ExecutionPayloadV1/properties/transactions"},"withdrawals":{"title":"Withdrawals","type":["array","null"],"items":{"$ref":"#/components/schemas/WithdrawalV1"}}}},"ExecutionPayloadBodyV2":{"title":"Execution payload body object V2","type":"object","required":["transactions"],"properties":{"transactions":{"title":"Transactions","type":"array","items":{"$ref":"#/components/schemas/bytes"}},"withdrawals":{"title":"Withdrawals","type":["array","null"],"items":{"$ref":"#/components/schemas/WithdrawalV1"}},"depositRequests":{"title":"Deposit requests","type":["array","null"],"items":{"$ref":"#/components/schemas/DepositRequestV1"}},"withdrawalRequests":{"title":"Withdrawals requests","type":["array","null"],"items":{"$ref":"#/components/schemas/WithdrawalRequestV1"}},"consolidationRequests":{"title":"Consolidation requests - array - \'null\'","items":{"$ref":"#/components/schemas/ConsolidationRequestV1"}}}},"BlobsBundleV1":{"title":"Blobs bundle object V1","type":"object","required":["commitments","proofs","blobs"],"properties":{"commitments":{"title":"Commitments","type":"array","items":{"$ref":"#/components/schemas/bytes48"}},"proofs":{"title":"Proofs","type":"array","items":{"$ref":"#/components/schemas/bytes48"}},"blobs":{"title":"Blobs","type":"array","items":{"$ref":"#/components/schemas/bytes"}}}},"DepositRequestV1":{"title":"Deposit request object V1","type":"object","required":["pubkey","withdrawalCredentials","amount","signature","index"],"properties":{"pubkey":{"title":"Public key","$ref":"#/components/schemas/bytes48"},"withdrawalCredentials":{"title":"Withdrawal credentials","$ref":"#/components/schemas/bytes32"},"amount":{"title":"Deposit amount","$ref":"#/components/schemas/uint64"},"signature":{"title":"Deposit signature","$ref":"#/components/schemas/bytes96"},"index":{"title":"Deposit index","$ref":"#/components/schemas/uint64"}}},"WithdrawalRequestV1":{"title":"Withdrawal request object V1","type":"object","required":["sourceAddress","validatorPubkey","amount"],"properties":{"sourceAddress":{"title":"Source address","$ref":"#/components/schemas/address"},"validatorPubkey":{"title":"Validator public key","$ref":"#/components/schemas/bytes48"},"amount":{"title":"Withdraw amount","$ref":"#/components/schemas/uint64"}}},"ConsolidationRequestV1":{"title":"Consolidation request object V1","type":"object","required":["sourceAddress","sourcePubkey","targetPubkey"],"properties":{"sourceAddress":{"title":"Source address","$ref":"#/components/schemas/address"},"sourcePubkey":{"title":"Source validator public key","$ref":"#/components/schemas/bytes48"},"targetPubkey":{"title":"Target validator public key","$ref":"#/components/schemas/bytes48"}}},"TransitionConfigurationV1":{"title":"Transition configuration object","type":"object","required":["terminalTotalDifficulty","terminalBlockHash","terminalBlockNumber"],"properties":{"terminalTotalDifficulty":{"title":"Terminal total difficulty","$ref":"#/components/schemas/uint256"},"terminalBlockHash":{"title":"Terminal block hash","$ref":"#/components/schemas/hash32"},"terminalBlockNumber":{"title":"Terminal block number","$ref":"#/components/schemas/uint64"}}}},"tags":{"MetaMask":{"name":"MetaMask","description":"MetaMask-specific methods."},"Restricted":{"name":"Restricted","description":"Restricted methods. If a method is restricted, the caller must have the corresponding permission via `wallet_requestPermissions` in order to call it."},"Mobile":{"name":"Mobile","description":"Mobile-specific methods."},"Experimental":{"name":"Experimental","description":"Experimental methods."},"Deprecated":{"name":"Deprecated","description":"Deprecated methods."},"Ethereum":{"name":"Ethereum API","description":"Ethereum execution API methods."},"Multichain":{"name":"Multichain API","description":"Multichain API methods."}},"contentDescriptors":{},"examplePairings":{},"links":{},"examples":{}}}')},9956:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ephemeralKeySize=t.symmetricNonceLength=t.symmetricAlgorithm=t.isHkdfKeyCompressed=t.isEphemeralKeyCompressed=t.ellipticCurve=t.ECIES_CONFIG=void 0;var r=n(8798),i=function(){this.ellipticCurve="secp256k1",this.isEphemeralKeyCompressed=!1,this.isHkdfKeyCompressed=!1,this.symmetricAlgorithm="aes-256-gcm",this.symmetricNonceLength=16};t.ECIES_CONFIG=new i;t.ellipticCurve=function(){return t.ECIES_CONFIG.ellipticCurve};t.isEphemeralKeyCompressed=function(){return t.ECIES_CONFIG.isEphemeralKeyCompressed};t.isHkdfKeyCompressed=function(){return t.ECIES_CONFIG.isHkdfKeyCompressed};t.symmetricAlgorithm=function(){return t.ECIES_CONFIG.symmetricAlgorithm};t.symmetricNonceLength=function(){return t.ECIES_CONFIG.symmetricNonceLength};t.ephemeralKeySize=function(){var e={secp256k1:t.ECIES_CONFIG.isEphemeralKeyCompressed?r.COMPRESSED_PUBLIC_KEY_SIZE:r.UNCOMPRESSED_PUBLIC_KEY_SIZE,x25519:r.CURVE25519_PUBLIC_KEY_SIZE,ed25519:r.CURVE25519_PUBLIC_KEY_SIZE};if(t.ECIES_CONFIG.ellipticCurve in e)return e[t.ECIES_CONFIG.ellipticCurve];throw new Error("Not implemented")}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,i){if(1&i&&(r=this(r)),8&i)return r;if("object"===typeof r&&r){if(4&i&&r.__esModule)return r;if(16&i&&"function"===typeof r.then)return r}var o=Object.create(null);n.r(o);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&i&&r;("object"==typeof a||"function"==typeof a)&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach(e=>s[e]=()=>r[e]);return s.default=()=>r,n.d(o,s),o}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce((t,r)=>(n.f[r](e,t),t),[])),n.u=e=>"static/js/"+e+"."+{29:"ca05a909",435:"8081f498",578:"67e35af4",700:"06adf8f4",817:"1749786b"}[e]+".chunk.js",n.miniCssF=e=>{},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="@metamask/browser-playground:";n.l=(r,i,o,s)=>{if(e[r])e[r].push(i);else{var a,c;if(void 0!==o)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var d=l[u];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+o){a=d;break}}a||(c=!0,(a=document.createElement("script")).charset="utf-8",n.nc&&a.setAttribute("nonce",n.nc),a.setAttribute("data-webpack",t+o),a.src=r),e[r]=[i];var h=(t,n)=>{a.onerror=a.onload=null,clearTimeout(f);var i=e[r];if(delete e[r],a.parentNode&&a.parentNode.removeChild(a),i&&i.forEach(e=>e(n)),t)return t(n)},f=setTimeout(h.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=h.bind(null,a.onerror),a.onload=h.bind(null,a.onload),c&&document.head.appendChild(a)}}})(),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.p="./",(()=>{var e={792:0};n.f.j=(t,r)=>{var i=n.o(e,t)?e[t]:void 0;if(0!==i)if(i)r.push(i[2]);else{var o=new Promise((n,r)=>i=e[t]=[n,r]);r.push(i[2]=o);var s=n.p+n.u(t),a=new Error;n.l(s,r=>{if(n.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var o=r&&("load"===r.type?"missing":r.type),s=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+s+")",a.name="ChunkLoadError",a.type=o,a.request=s,i[1](a)}},"chunk-"+t,t)}};var t=(t,r)=>{var i,o,[s,a,c]=r,l=0;if(s.some(t=>0!==e[t])){for(i in a)n.o(a,i)&&(n.m[i]=a[i]);if(c)c(n)}for(t&&t(r);l<s.length;l++)o=s[l],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0},r=self.webpackChunk_metamask_browser_playground=self.webpackChunk_metamask_browser_playground||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),(()=>{"use strict";var e=n(2176),t=n(9454);function r(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,r=null;return function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];t=o,null===r&&(r=setTimeout(()=>{e(...t),r=null},n))}}function i(){}var o,s,a=n(9740);function c(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function l(e,t,n){c(e,t),t.set(e,n)}function u(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function d(e,t){return e.get(u(e,t))}function h(e,t,n){return e.set(u(e,t),n),n}var f={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},p=new(o=new WeakMap,s=new WeakMap,class{constructor(){l(this,o,f),l(this,s,!1)}setTimeoutProvider(e){h(o,this,e)}setTimeout(e,t){return d(o,this).setTimeout(e,t)}clearTimeout(e){d(o,this).clearTimeout(e)}setInterval(e,t){return d(o,this).setInterval(e,t)}clearInterval(e){d(o,this).clearInterval(e)}});var m="undefined"===typeof window||"Deno"in globalThis;function g(){}function y(e){return"number"===typeof e&&e>=0&&e!==1/0}function b(e,t){return Math.max(e+(t||0)-Date.now(),0)}function v(e,t){return"function"===typeof e?e(t):e}function w(e,t){return"function"===typeof e?e(t):e}function _(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if(s)if(r){if(t.queryHash!==A(s,t.options))return!1}else if(!E(t.queryKey,s))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!==typeof a||t.isStale()===a)&&((!i||i===t.state.fetchStatus)&&!(o&&!o(t)))}function x(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(k(t.options.mutationKey)!==k(o))return!1}else if(!E(t.options.mutationKey,o))return!1}return(!r||t.state.status===r)&&!(i&&!i(t))}function A(e,t){return((null===t||void 0===t?void 0:t.queryKeyHashFn)||k)(e)}function k(e){return JSON.stringify(e,(e,t)=>M(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function E(e,t){return e===t||typeof e===typeof t&&(!(!e||!t||"object"!==typeof e||"object"!==typeof t)&&Object.keys(t).every(n=>E(e[n],t[n])))}var S=Object.prototype.hasOwnProperty;function P(e,t){if(e===t)return e;const n=I(e)&&I(t);if(!n&&(!M(e)||!M(t)))return t;const r=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),o=i.length,s=n?new Array(o):{};let a=0;for(let c=0;c<o;c++){const o=n?c:i[c],l=e[o],u=t[o];if(l===u){s[o]=l,(n?c<r:S.call(e,o))&&a++;continue}if(null===l||null===u||"object"!==typeof l||"object"!==typeof u){s[o]=u;continue}const d=P(l,u);s[o]=d,d===l&&a++}return r===o&&a===r?e:s}function C(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function I(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function M(e){if(!T(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!T(n)&&(!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function T(e){return"[object Object]"===Object.prototype.toString.call(e)}function O(e,t,n){return"function"===typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?P(e,t):t}function R(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=[...e,t];return n&&r.length>n?r.slice(1):r}function B(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var N=Symbol();function U(e,t){return!e.queryFn&&null!==t&&void 0!==t&&t.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==N?e.queryFn:()=>Promise.reject(new Error("Missing queryFn: '".concat(e.queryHash,"'")))}function j(e,t){return"function"===typeof e?e(...t):!!e}function L(e,t){c(e,t),t.add(e)}var F=function(e){setTimeout(e,0)};var D,z,q,H,W,K,$=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=F;const o=r=>{t?e.push(r):i(()=>{n(r)})};return{batch:o=>{let s;t++;try{s=o()}finally{t--,t||(()=>{const t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})})()}return s},batchCalls:e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];o(()=>{e(...n)})},schedule:o,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}(),V=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},G=new(D=new WeakMap,z=new WeakMap,q=new WeakMap,class extends V{constructor(){super(),l(this,D,void 0),l(this,z,void 0),l(this,q,void 0),h(q,this,e=>{if(!m&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}})}onSubscribe(){d(z,this)||this.setEventListener(d(q,this))}onUnsubscribe(){var e;this.hasListeners()||(null===(e=d(z,this))||void 0===e||e.call(this),h(z,this,void 0))}setEventListener(e){var t;h(q,this,e),null===(t=d(z,this))||void 0===t||t.call(this),h(z,this,e(e=>{"boolean"===typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){d(D,this)!==e&&(h(D,this,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){var e;return"boolean"===typeof d(D,this)?d(D,this):"hidden"!==(null===(e=globalThis.document)||void 0===e?void 0:e.visibilityState)}}),J=new(H=new WeakMap,W=new WeakMap,K=new WeakMap,class extends V{constructor(){super(),l(this,H,!0),l(this,W,void 0),l(this,K,void 0),h(K,this,e=>{if(!m&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}})}onSubscribe(){d(W,this)||this.setEventListener(d(K,this))}onUnsubscribe(){var e;this.hasListeners()||(null===(e=d(W,this))||void 0===e||e.call(this),h(W,this,void 0))}setEventListener(e){var t;h(K,this,e),null===(t=d(W,this))||void 0===t||t.call(this),h(W,this,e(this.setOnline.bind(this)))}setOnline(e){d(H,this)!==e&&(h(H,this,e),this.listeners.forEach(t=>{t(e)}))}isOnline(){return d(H,this)}});function Z(){let e,t;const n=new Promise((n,r)=>{e=n,t=r});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch(()=>{}),n.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},n.reject=e=>{r({status:"rejected",reason:e}),t(e)},n}function Y(e){return Math.min(1e3*2**e,3e4)}function Q(e){return"online"!==(null!==e&&void 0!==e?e:"online")||J.isOnline()}var X,ee=class extends Error{constructor(e){super("CancelledError"),this.revert=null===e||void 0===e?void 0:e.revert,this.silent=null===e||void 0===e?void 0:e.silent}};function te(e){let t,n=!1,r=0;const i=Z(),o=()=>"pending"!==i.status,s=()=>G.isFocused()&&("always"===e.networkMode||J.isOnline())&&e.canRun(),a=()=>Q(e.networkMode)&&e.canRun(),c=e=>{var n;o()||(null===(n=t)||void 0===n||n(),i.resolve(e))},l=e=>{var n;o()||(null===(n=t)||void 0===n||n(),i.reject(e))},u=()=>new Promise(n=>{var r;t=e=>{(o()||s())&&n(e)},null===(r=e.onPause)||void 0===r||r.call(e)}).then(()=>{var n;(t=void 0,o())||(null===(n=e.onContinue)||void 0===n||n.call(e))}),d=()=>{if(o())return;let t;const i=0===r?e.initialPromise:void 0;try{t=null!==i&&void 0!==i?i:e.fn()}catch(a){t=Promise.reject(a)}Promise.resolve(t).then(c).catch(t=>{var i,a,c;if(o())return;const h=null!==(i=e.retry)&&void 0!==i?i:m?0:3,f=null!==(a=e.retryDelay)&&void 0!==a?a:Y,g="function"===typeof f?f(r,t):f,y=!0===h||"number"===typeof h&&r<h||"function"===typeof h&&h(r,t);var b;!n&&y?(r++,null===(c=e.onFail)||void 0===c||c.call(e,r,t),(b=g,new Promise(e=>{p.setTimeout(e,b)})).then(()=>s()?void 0:u()).then(()=>{n?l(t):d()})):l(t)})};return{promise:i,status:()=>i.status,cancel:t=>{if(!o()){var n;const r=new ee(t);l(r),null===(n=e.onCancel)||void 0===n||n.call(e,r)}},continue:()=>{var e;return null===(e=t)||void 0===e||e(),i},cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:a,start:()=>(a()?d():u().then(d),i)}}var ne,re,ie,oe,se,ae,ce,le,ue,de=(X=new WeakMap,class{constructor(){l(this,X,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),y(this.gcTime)&&h(X,this,p.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,null!==e&&void 0!==e?e:m?1/0:3e5)}clearGcTimeout(){d(X,this)&&(p.clearTimeout(d(X,this)),h(X,this,void 0))}}),he=(ne=new WeakMap,re=new WeakMap,ie=new WeakMap,oe=new WeakMap,se=new WeakMap,ae=new WeakMap,ce=new WeakMap,le=new WeakSet,class extends de{constructor(e){var t;super(),L(this,le),l(this,ne,void 0),l(this,re,void 0),l(this,ie,void 0),l(this,oe,void 0),l(this,se,void 0),l(this,ae,void 0),l(this,ce,void 0),h(ce,this,!1),h(ae,this,e.defaultOptions),this.setOptions(e.options),this.observers=[],h(oe,this,e.client),h(ie,this,d(oe,this).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,h(ne,this,ge(this.options)),this.state=null!==(t=e.state)&&void 0!==t?t:d(ne,this),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return null===(e=d(se,this))||void 0===e?void 0:e.promise}setOptions(e){if(this.options=(0,a.A)((0,a.A)({},d(ae,this)),e),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){const e=ge(this.options);void 0!==e.data&&(this.setState(me(e.data,e.dataUpdatedAt)),h(ne,this,e))}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||d(ie,this).remove(this)}setData(e,t){const n=O(this.state.data,e,this.options);return u(le,this,fe).call(this,{data:n,type:"success",dataUpdatedAt:null===t||void 0===t?void 0:t.updatedAt,manual:null===t||void 0===t?void 0:t.manual}),n}setState(e,t){u(le,this,fe).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){var t,n;const r=null===(t=d(se,this))||void 0===t?void 0:t.promise;return null===(n=d(se,this))||void 0===n||n.cancel(e),r?r.then(g).catch(g):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(d(ne,this))}isActive(){return this.observers.some(e=>!1!==w(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===N||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===v(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!b(this.state.dataUpdatedAt,e))}onFocus(){var e;const t=this.observers.find(e=>e.shouldFetchOnWindowFocus());null===t||void 0===t||t.refetch({cancelRefetch:!1}),null===(e=d(se,this))||void 0===e||e.continue()}onOnline(){var e;const t=this.observers.find(e=>e.shouldFetchOnReconnect());null===t||void 0===t||t.refetch({cancelRefetch:!1}),null===(e=d(se,this))||void 0===e||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),d(ie,this).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(d(se,this)&&(d(ce,this)?d(se,this).cancel({revert:!0}):d(se,this).cancelRetry()),this.scheduleGc()),d(ie,this).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||u(le,this,fe).call(this,{type:"invalidate"})}async fetch(e,t){var n,r,i;if("idle"!==this.state.fetchStatus&&"rejected"!==(null===(n=d(se,this))||void 0===n?void 0:n.status()))if(void 0!==this.state.data&&null!==t&&void 0!==t&&t.cancelRefetch)this.cancel({silent:!0});else if(d(se,this))return d(se,this).continueRetry(),d(se,this).promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}const o=new AbortController,s=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(h(ce,this,!0),o.signal)})},c=()=>{const e=U(this.options,t),n=(()=>{const e={client:d(oe,this),queryKey:this.queryKey,meta:this.meta};return s(e),e})();return h(ce,this,!1),this.options.persister?this.options.persister(e,n,this):e(n)},l=(()=>{const e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:d(oe,this),state:this.state,fetchFn:c};return s(e),e})();var f;(null===(r=this.options.behavior)||void 0===r||r.onFetch(l,this),h(re,this,this.state),"idle"===this.state.fetchStatus||this.state.fetchMeta!==(null===(i=l.fetchOptions)||void 0===i?void 0:i.meta))&&u(le,this,fe).call(this,{type:"fetch",meta:null===(f=l.fetchOptions)||void 0===f?void 0:f.meta});h(se,this,te({initialPromise:null===t||void 0===t?void 0:t.initialPromise,fn:l.fetchFn,onCancel:e=>{e instanceof ee&&e.revert&&this.setState((0,a.A)((0,a.A)({},d(re,this)),{},{fetchStatus:"idle"})),o.abort()},onFail:(e,t)=>{u(le,this,fe).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{u(le,this,fe).call(this,{type:"pause"})},onContinue:()=>{u(le,this,fe).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}));try{var p,m,g,y;const e=await d(se,this).start();if(void 0===e)throw new Error("".concat(this.queryHash," data is undefined"));return this.setData(e),null===(p=(m=d(ie,this).config).onSuccess)||void 0===p||p.call(m,e,this),null===(g=(y=d(ie,this).config).onSettled)||void 0===g||g.call(y,e,this.state.error,this),e}catch(x){var b,v,w,_;if(x instanceof ee){if(x.silent)return d(se,this).promise;if(x.revert){if(void 0===this.state.data)throw x;return this.state.data}}throw u(le,this,fe).call(this,{type:"error",error:x}),null===(b=(v=d(ie,this).config).onError)||void 0===b||b.call(v,x,this),null===(w=(_=d(ie,this).config).onSettled)||void 0===w||w.call(_,this.state.data,x,this),x}finally{this.scheduleGc()}}});function fe(e){this.state=(t=>{var n;switch(e.type){case"failed":return(0,a.A)((0,a.A)({},t),{},{fetchFailureCount:e.failureCount,fetchFailureReason:e.error});case"pause":return(0,a.A)((0,a.A)({},t),{},{fetchStatus:"paused"});case"continue":return(0,a.A)((0,a.A)({},t),{},{fetchStatus:"fetching"});case"fetch":return(0,a.A)((0,a.A)((0,a.A)({},t),pe(t.data,this.options)),{},{fetchMeta:null!==(n=e.meta)&&void 0!==n?n:null});case"success":const r=(0,a.A)((0,a.A)((0,a.A)({},t),me(e.data,e.dataUpdatedAt)),{},{dataUpdateCount:t.dataUpdateCount+1},!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null});return h(re,this,e.manual?r:void 0),r;case"error":const i=e.error;return(0,a.A)((0,a.A)({},t),{},{error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"});case"invalidate":return(0,a.A)((0,a.A)({},t),{},{isInvalidated:!0});case"setState":return(0,a.A)((0,a.A)({},t),e.state)}})(this.state),$.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),d(ie,this).notify({query:this,type:"updated",action:e})})}function pe(e,t){return(0,a.A)({fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Q(t.networkMode)?"fetching":"paused"},void 0===e&&{error:null,status:"pending"})}function me(e,t){return{data:e,dataUpdatedAt:null!==t&&void 0!==t?t:Date.now(),error:null,isInvalidated:!1,status:"success"}}function ge(e){const t="function"===typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"===typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!==r&&void 0!==r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var ye,be,ve,we,_e,xe,Ae,ke,Ee=(ue=new WeakMap,class extends V{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),l(this,ue,void 0),this.config=e,h(ue,this,new Map)}build(e,t,n){var r;const i=t.queryKey,o=null!==(r=t.queryHash)&&void 0!==r?r:A(i,t);let s=this.get(o);return s||(s=new he({client:e,queryKey:i,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i)}),this.add(s)),s}add(e){d(ue,this).has(e.queryHash)||(d(ue,this).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=d(ue,this).get(e.queryHash);t&&(e.destroy(),t===e&&d(ue,this).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){$.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return d(ue,this).get(e)}getAll(){return[...d(ue,this).values()]}find(e){const t=(0,a.A)({exact:!0},e);return this.getAll().find(e=>_(t,e))}findAll(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=this.getAll();return Object.keys(e).length>0?t.filter(t=>_(e,t)):t}notify(e){$.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){$.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){$.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}}),Se=(ye=new WeakMap,be=new WeakMap,ve=new WeakMap,we=new WeakMap,_e=new WeakSet,class extends de{constructor(e){super(),L(this,_e),l(this,ye,void 0),l(this,be,void 0),l(this,ve,void 0),l(this,we,void 0),h(ye,this,e.client),this.mutationId=e.mutationId,h(ve,this,e.mutationCache),h(be,this,[]),this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){d(be,this).includes(e)||(d(be,this).push(e),this.clearGcTimeout(),d(ve,this).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){h(be,this,d(be,this).filter(t=>t!==e)),this.scheduleGc(),d(ve,this).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){d(be,this).length||("pending"===this.state.status?this.scheduleGc():d(ve,this).remove(this))}continue(){var e,t;return null!==(e=null===(t=d(we,this))||void 0===t?void 0:t.continue())&&void 0!==e?e:this.execute(this.state.variables)}async execute(e){var t;const n=()=>{u(_e,this,Pe).call(this,{type:"continue"})},r={client:d(ye,this),meta:this.options.meta,mutationKey:this.options.mutationKey};h(we,this,te({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{u(_e,this,Pe).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{u(_e,this,Pe).call(this,{type:"pause"})},onContinue:n,retry:null!==(t=this.options.retry)&&void 0!==t?t:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>d(ve,this).canRun(this)}));const i="pending"===this.state.status,o=!d(we,this).canStart();try{var s,a,c,l,f,p,m,g;if(i)n();else{var y,b,v,w;u(_e,this,Pe).call(this,{type:"pending",variables:e,isPaused:o}),await(null===(y=(b=d(ve,this).config).onMutate)||void 0===y?void 0:y.call(b,e,this,r));const t=await(null===(v=(w=this.options).onMutate)||void 0===v?void 0:v.call(w,e,r));t!==this.state.context&&u(_e,this,Pe).call(this,{type:"pending",context:t,variables:e,isPaused:o})}const t=await d(we,this).start();return await(null===(s=(a=d(ve,this).config).onSuccess)||void 0===s?void 0:s.call(a,t,e,this.state.context,this,r)),await(null===(c=(l=this.options).onSuccess)||void 0===c?void 0:c.call(l,t,e,this.state.context,r)),await(null===(f=(p=d(ve,this).config).onSettled)||void 0===f?void 0:f.call(p,t,null,this.state.variables,this.state.context,this,r)),await(null===(m=(g=this.options).onSettled)||void 0===m?void 0:m.call(g,t,null,e,this.state.context,r)),u(_e,this,Pe).call(this,{type:"success",data:t}),t}catch(I){try{var _,x,A,k,E,S,P,C;throw await(null===(_=(x=d(ve,this).config).onError)||void 0===_?void 0:_.call(x,I,e,this.state.context,this,r)),await(null===(A=(k=this.options).onError)||void 0===A?void 0:A.call(k,I,e,this.state.context,r)),await(null===(E=(S=d(ve,this).config).onSettled)||void 0===E?void 0:E.call(S,void 0,I,this.state.variables,this.state.context,this,r)),await(null===(P=(C=this.options).onSettled)||void 0===P?void 0:P.call(C,void 0,I,e,this.state.context,r)),I}finally{u(_e,this,Pe).call(this,{type:"error",error:I})}}finally{d(ve,this).runNext(this)}}});function Pe(e){this.state=(t=>{switch(e.type){case"failed":return(0,a.A)((0,a.A)({},t),{},{failureCount:e.failureCount,failureReason:e.error});case"pause":return(0,a.A)((0,a.A)({},t),{},{isPaused:!0});case"continue":return(0,a.A)((0,a.A)({},t),{},{isPaused:!1});case"pending":return(0,a.A)((0,a.A)({},t),{},{context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()});case"success":return(0,a.A)((0,a.A)({},t),{},{data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1});case"error":return(0,a.A)((0,a.A)({},t),{},{data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"})}})(this.state),$.batch(()=>{d(be,this).forEach(t=>{t.onMutationUpdate(e)}),d(ve,this).notify({mutation:this,type:"updated",action:e})})}var Ce,Ie,Me,Te,Oe,Re,Be,Ne,Ue=(xe=new WeakMap,Ae=new WeakMap,ke=new WeakMap,class extends V{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),l(this,xe,void 0),l(this,Ae,void 0),l(this,ke,void 0),this.config=e,h(xe,this,new Set),h(Ae,this,new Map),h(ke,this,0)}build(e,t,n){var r;const i=new Se({client:e,mutationCache:this,mutationId:h(ke,this,(r=d(ke,this),++r)),options:e.defaultMutationOptions(t),state:n});return this.add(i),i}add(e){d(xe,this).add(e);const t=je(e);if("string"===typeof t){const n=d(Ae,this).get(t);n?n.push(e):d(Ae,this).set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(d(xe,this).delete(e)){const t=je(e);if("string"===typeof t){const n=d(Ae,this).get(t);if(n)if(n.length>1){const t=n.indexOf(e);-1!==t&&n.splice(t,1)}else n[0]===e&&d(Ae,this).delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=je(e);if("string"===typeof t){const n=d(Ae,this).get(t),r=null===n||void 0===n?void 0:n.find(e=>"pending"===e.state.status);return!r||r===e}return!0}runNext(e){const t=je(e);if("string"===typeof t){var n,r;const i=null===(n=d(Ae,this).get(t))||void 0===n?void 0:n.find(t=>t!==e&&t.state.isPaused);return null!==(r=null===i||void 0===i?void 0:i.continue())&&void 0!==r?r:Promise.resolve()}return Promise.resolve()}clear(){$.batch(()=>{d(xe,this).forEach(e=>{this.notify({type:"removed",mutation:e})}),d(xe,this).clear(),d(Ae,this).clear()})}getAll(){return Array.from(d(xe,this))}find(e){const t=(0,a.A)({exact:!0},e);return this.getAll().find(e=>x(t,e))}findAll(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.getAll().filter(t=>x(e,t))}notify(e){$.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(e=>e.state.isPaused);return $.batch(()=>Promise.all(e.map(e=>e.continue().catch(g))))}});function je(e){var t;return null===(t=e.options.scope)||void 0===t?void 0:t.id}function Le(e){return{onFetch:(t,n)=>{var r,i,o;const s=t.options,a=null===(r=t.fetchOptions)||void 0===r||null===(r=r.meta)||void 0===r||null===(r=r.fetchMore)||void 0===r?void 0:r.direction,c=(null===(i=t.state.data)||void 0===i?void 0:i.pages)||[],l=(null===(o=t.state.data)||void 0===o?void 0:o.pageParams)||[];let u={pages:[],pageParams:[]},d=0;const h=async()=>{let n=!1;const r=U(t.options,t.fetchOptions),i=async(e,i,o)=>{if(n)return Promise.reject();if(null==i&&e.pages.length)return Promise.resolve(e);const s=(()=>{const e={client:t.client,queryKey:t.queryKey,pageParam:i,direction:o?"backward":"forward",meta:t.options.meta};return(e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",()=>{n=!0}),t.signal)})})(e),e})(),a=await r(s),{maxPages:c}=t.options,l=o?B:R;return{pages:l(e.pages,a,c),pageParams:l(e.pageParams,i,c)}};if(a&&c.length){const e="backward"===a,t={pages:c,pageParams:l},n=(e?De:Fe)(s,t);u=await i(t,n,e)}else{const t=null!==e&&void 0!==e?e:c.length;do{var o;const e=0===d?null!==(o=l[0])&&void 0!==o?o:s.initialPageParam:Fe(s,u);if(d>0&&null==e)break;u=await i(u,e),d++}while(d<t)}return u};t.options.persister?t.fetchFn=()=>{var e,r;return null===(e=(r=t.options).persister)||void 0===e?void 0:e.call(r,h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=h}}}function Fe(e,t){let{pages:n,pageParams:r}=t;const i=n.length-1;return n.length>0?e.getNextPageParam(n[i],n,r[i],r):void 0}function De(e,t){var n;let{pages:r,pageParams:i}=t;return r.length>0?null===(n=e.getPreviousPageParam)||void 0===n?void 0:n.call(e,r[0],r,i[0],i):void 0}var ze=(Ce=new WeakMap,Ie=new WeakMap,Me=new WeakMap,Te=new WeakMap,Oe=new WeakMap,Re=new WeakMap,Be=new WeakMap,Ne=new WeakMap,class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l(this,Ce,void 0),l(this,Ie,void 0),l(this,Me,void 0),l(this,Te,void 0),l(this,Oe,void 0),l(this,Re,void 0),l(this,Be,void 0),l(this,Ne,void 0),h(Ce,this,e.queryCache||new Ee),h(Ie,this,e.mutationCache||new Ue),h(Me,this,e.defaultOptions||{}),h(Te,this,new Map),h(Oe,this,new Map),h(Re,this,0)}mount(){var e;h(Re,this,(e=d(Re,this),e++,e)),1===d(Re,this)&&(h(Be,this,G.subscribe(async e=>{e&&(await this.resumePausedMutations(),d(Ce,this).onFocus())})),h(Ne,this,J.subscribe(async e=>{e&&(await this.resumePausedMutations(),d(Ce,this).onOnline())})))}unmount(){var e,t,n;h(Re,this,(e=d(Re,this),e--,e)),0===d(Re,this)&&(null===(t=d(Be,this))||void 0===t||t.call(this),h(Be,this,void 0),null===(n=d(Ne,this))||void 0===n||n.call(this),h(Ne,this,void 0))}isFetching(e){return d(Ce,this).findAll((0,a.A)((0,a.A)({},e),{},{fetchStatus:"fetching"})).length}isMutating(e){return d(Ie,this).findAll((0,a.A)((0,a.A)({},e),{},{status:"pending"})).length}getQueryData(e){var t;const n=this.defaultQueryOptions({queryKey:e});return null===(t=d(Ce,this).get(n.queryHash))||void 0===t?void 0:t.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=d(Ce,this).build(this,t),r=n.state.data;return void 0===r?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(v(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return d(Ce,this).findAll(e).map(e=>{let{queryKey:t,state:n}=e;return[t,n.data]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=d(Ce,this).get(r.queryHash),o=function(e,t){return"function"===typeof e?e(t):e}(t,null===i||void 0===i?void 0:i.state.data);if(void 0!==o)return d(Ce,this).build(this,r).setData(o,(0,a.A)((0,a.A)({},n),{},{manual:!0}))}setQueriesData(e,t,n){return $.batch(()=>d(Ce,this).findAll(e).map(e=>{let{queryKey:r}=e;return[r,this.setQueryData(r,t,n)]}))}getQueryState(e){var t;const n=this.defaultQueryOptions({queryKey:e});return null===(t=d(Ce,this).get(n.queryHash))||void 0===t?void 0:t.state}removeQueries(e){const t=d(Ce,this);$.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){const n=d(Ce,this);return $.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries((0,a.A)({type:"active"},e),t)))}cancelQueries(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=(0,a.A)({revert:!0},t),r=$.batch(()=>d(Ce,this).findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(g).catch(g)}invalidateQueries(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return $.batch(()=>{var n,r;return d(Ce,this).findAll(e).forEach(e=>{e.invalidate()}),"none"===(null===e||void 0===e?void 0:e.refetchType)?Promise.resolve():this.refetchQueries((0,a.A)((0,a.A)({},e),{},{type:null!==(n=null!==(r=null===e||void 0===e?void 0:e.refetchType)&&void 0!==r?r:null===e||void 0===e?void 0:e.type)&&void 0!==n?n:"active"}),t)})}refetchQueries(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=(0,a.A)((0,a.A)({},n),{},{cancelRefetch:null===(t=n.cancelRefetch)||void 0===t||t}),i=$.batch(()=>d(Ce,this).findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(g)),"paused"===e.state.fetchStatus?Promise.resolve():t}));return Promise.all(i).then(g)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const n=d(Ce,this).build(this,t);return n.isStaleByTime(v(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(g).catch(g)}fetchInfiniteQuery(e){return e.behavior=Le(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(g).catch(g)}ensureInfiniteQueryData(e){return e.behavior=Le(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return J.isOnline()?d(Ie,this).resumePausedMutations():Promise.resolve()}getQueryCache(){return d(Ce,this)}getMutationCache(){return d(Ie,this)}getDefaultOptions(){return d(Me,this)}setDefaultOptions(e){h(Me,this,e)}setQueryDefaults(e,t){d(Te,this).set(k(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...d(Te,this).values()],n={};return t.forEach(t=>{E(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){d(Oe,this).set(k(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...d(Oe,this).values()],n={};return t.forEach(t=>{E(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t=(0,a.A)((0,a.A)((0,a.A)((0,a.A)({},d(Me,this).queries),this.getQueryDefaults(e.queryKey)),e),{},{_defaulted:!0});return t.queryHash||(t.queryHash=A(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===N&&(t.enabled=!1),t}defaultMutationOptions(e){return null!==e&&void 0!==e&&e._defaulted?e:(0,a.A)((0,a.A)((0,a.A)((0,a.A)({},d(Me,this).mutations),(null===e||void 0===e?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey)),e),{},{_defaulted:!0})}clear(){d(Ce,this).clear(),d(Ie,this).clear()}}),qe=n(4223);const He=["fetchStatus"];function We(e){return(0,a.A)({mutationKey:e.options.mutationKey,state:e.state},e.meta&&{meta:e.meta})}function Ke(e){return(0,a.A)({state:e.state,queryKey:e.queryKey,queryHash:e.queryHash},e.meta&&{meta:e.meta})}function $e(e){return e.state.isPaused}function Ve(e){return"success"===e.state.status}function Ge(e){var t,n;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=null!==(t=r.shouldDehydrateMutation)&&void 0!==t?t:$e,o=e.getMutationCache().getAll().flatMap(e=>i(e)?[We(e)]:[]),s=null!==(n=r.shouldDehydrateQuery)&&void 0!==n?n:Ve;return{mutations:o,queries:e.getQueryCache().getAll().flatMap(e=>s(e)?[Ke(e)]:[])}}var Je=["added","removed","updated"];function Ze(e){return Je.includes(e)}async function Ye(e){let{queryClient:t,persister:n,maxAge:r=864e5,buster:i="",hydrateOptions:o}=e;try{const e=await n.restoreClient();if(e)if(e.timestamp){const s=Date.now()-e.timestamp>r,c=e.buster!==i;s||c?n.removeClient():function(e,t,n){if("object"!==typeof t||null===t)return;const r=e.getMutationCache(),i=e.getQueryCache(),o=t.mutations||[],s=t.queries||[];o.forEach(t=>{var i;r.build(e,(0,a.A)((0,a.A)({},null===n||void 0===n||null===(i=n.defaultOptions)||void 0===i?void 0:i.mutations),{},{mutationKey:t.mutationKey,meta:t.meta}),t.state)}),s.forEach(t=>{var r;let{queryKey:o,state:s,queryHash:c,meta:l}=t;const u=i.get(c);if(u){if(u.state.dataUpdatedAt<s.dataUpdatedAt){const{fetchStatus:e}=s,t=(0,qe.A)(s,He);u.setState(t)}}else i.build(e,(0,a.A)((0,a.A)({},null===n||void 0===n||null===(r=n.defaultOptions)||void 0===r?void 0:r.queries),{},{queryKey:o,queryHash:c,meta:l}),(0,a.A)((0,a.A)({},s),{},{fetchStatus:"idle"}))})}(t,e.clientState,o)}else n.removeClient()}catch(s){0,n.removeClient()}}async function Qe(e){let{queryClient:t,persister:n,buster:r="",dehydrateOptions:i}=e;const o={buster:r,timestamp:Date.now(),clientState:Ge(t,i)};await n.persistClient(o)}function Xe(e){const t=e.queryClient.getQueryCache().subscribe(t=>{Ze(t.type)&&Qe(e)}),n=e.queryClient.getMutationCache().subscribe(t=>{Ze(t.type)&&Qe(e)});return()=>{t(),n()}}var et=n(812),tt=e.createContext(void 0),nt=t=>{const n=e.useContext(tt);if(t)return t;if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},rt=t=>{let{client:n,children:r}=t;return e.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),(0,et.jsx)(tt.Provider,{value:n,children:r})},it=e.createContext(!1),ot=it.Provider;const st=["client","children","persistOptions","onSuccess"];var at=t=>{let{client:n,children:r,persistOptions:i,onSuccess:o}=t,s=(0,qe.A)(t,st);const[c,l]=e.useState(!0),u=e.useRef({persistOptions:i,onSuccess:o}),d=e.useRef(!1);return e.useEffect(()=>{u.current={persistOptions:i,onSuccess:o}}),e.useEffect(()=>{const e=(0,a.A)((0,a.A)({},u.current.persistOptions),{},{queryClient:n});return d.current||(d.current=!0,l(!0),Ye(e).then(async()=>{try{var e,t;await(null===(e=(t=u.current).onSuccess)||void 0===e?void 0:e.call(t))}finally{l(!1)}})),c?void 0:Xe(e)},[n,c]),e.createElement(rt,(0,a.A)({client:n},s),e.createElement(ot,{value:c},r))};function ct(e,t){return e.slice(0,t).join(".")||"."}function lt(e,t){const{length:n}=e;for(let r=0;r<n;++r)if(e[r]===t)return r+1;return 0}function ut(e,t,n,r){return JSON.stringify(e,function(e,t){const n="function"===typeof e,r="function"===typeof t,i=[],o=[];return function(s,a){if("object"===typeof a)if(i.length){const e=lt(i,this);0===e?i[i.length]=this:(i.splice(e),o.splice(e)),o[o.length]=s;const n=lt(i,a);if(0!==n)return r?t.call(this,s,a,ct(o,n)):"[ref=".concat(ct(o,n),"]")}else i[0]=a,o[0]=s;return n?e.call(this,s,a):a}}((e,n)=>{var r;let i=n;return"bigint"===typeof i&&(i={__type:"bigint",value:n.toString()}),i instanceof Map&&(i={__type:"Map",value:Array.from(n.entries())}),null!==(r=null===t||void 0===t?void 0:t(e,i))&&void 0!==r?r:i},r),null!==n&&void 0!==n?n:void 0)}function dt(e,t){return JSON.parse(e,(e,n)=>{var r,i,o;let s=n;return"bigint"===(null===(r=s)||void 0===r?void 0:r.__type)&&(s=BigInt(s.value)),"Map"===(null===(i=s)||void 0===i?void 0:i.__type)&&(s=new Map(s.value)),null!==(o=null===t||void 0===t?void 0:t(e,s))&&void 0!==o?o:s})}let ht=!1;function ft(e,t){const{initialState:n,reconnectOnMount:r}=t;return n&&!e._internal.store.persist.hasHydrated()&&e.setState((0,a.A)((0,a.A)({},n),{},{chainId:e.chains.some(e=>e.id===n.chainId)?n.chainId:e.chains[0].id,connections:r?n.connections:new Map,status:r?"reconnecting":"disconnected"})),{async onMount(){e._internal.ssr&&(await e._internal.store.persist.rehydrate(),e._internal.mipd&&e._internal.connectors.setState(t=>{var n,r;const i=new Set;for(const e of null!==t&&void 0!==t?t:[])if(e.rdns){const t=Array.isArray(e.rdns)?e.rdns:[e.rdns];for(const e of t)i.add(e)}const o=[],s=null!==(n=null===(r=e._internal.mipd)||void 0===r?void 0:r.getProviders())&&void 0!==n?n:[];for(const a of s){if(i.has(a.info.rdns))continue;const t=e._internal.connectors.providerDetailToConnector(a),n=e._internal.connectors.setup(t);o.push(n)}return[...t,...o]})),r?async function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(ht)return[];ht=!0,e.setState(e=>(0,a.A)((0,a.A)({},e),{},{status:e.current?"reconnecting":"connecting"}));const r=[];if(null!==(t=n.connectors)&&void 0!==t&&t.length)for(const a of n.connectors){let t;t="function"===typeof a?e._internal.connectors.setup(a):a,r.push(t)}else r.push(...e.connectors);let i;try{var o;i=await(null===(o=e.storage)||void 0===o?void 0:o.getItem("recentConnectorId"))}catch(h){}const s={};for(const[,a]of e.state.connections)s[a.connector.id]=1;i&&(s[i]=0);const c=Object.keys(s).length>0?[...r].sort((e,t)=>{var n,r;return(null!==(n=s[e.id])&&void 0!==n?n:10)-(null!==(r=s[t.id])&&void 0!==r?r:10)}):r;let l=!1;const u=[],d=[];for(const f of c){const t=await f.getProvider().catch(()=>{});if(!t)continue;if(d.some(e=>e===t))continue;if(!await f.isAuthorized())continue;const n=await f.connect({isReconnecting:!0}).catch(()=>null);n&&(f.emitter.off("connect",e._internal.events.connect),f.emitter.on("change",e._internal.events.change),f.emitter.on("disconnect",e._internal.events.disconnect),e.setState(e=>{const t=new Map(l?e.connections:new Map).set(f.uid,{accounts:n.accounts,chainId:n.chainId,connector:f});return(0,a.A)((0,a.A)({},e),{},{current:l?e.current:f.uid,connections:t})}),u.push({accounts:n.accounts,chainId:n.chainId,connector:f}),d.push(t),l=!0)}"reconnecting"!==e.state.status&&"connecting"!==e.state.status||(l?e.setState(e=>(0,a.A)((0,a.A)({},e),{},{status:"connected"})):e.setState(e=>(0,a.A)((0,a.A)({},e),{},{connections:new Map,current:null,status:"disconnected"}))),ht=!1}(e):e.storage&&e.setState(e=>(0,a.A)((0,a.A)({},e),{},{connections:new Map}))}}}function pt(t){const{children:n,config:r,initialState:i,reconnectOnMount:o=!0}=t,{onMount:s}=ft(r,{initialState:i,reconnectOnMount:o});r._internal.ssr||s();const a=(0,e.useRef)(!0);return(0,e.useEffect)(()=>{if(a.current&&r._internal.ssr)return s(),()=>{a.current=!1}},[]),n}const mt=(0,e.createContext)(void 0);function gt(t){const{children:n,config:r}=t,i={value:r};return(0,e.createElement)(pt,t,(0,e.createElement)(mt.Provider,i,n))}var yt=n(2450);function bt(e,t){if(e===t)return!0;if(e&&t&&"object"===typeof e&&"object"===typeof t){if(e.constructor!==t.constructor)return!1;let n,r;if(Array.isArray(e)&&Array.isArray(t)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!bt(e[r],t[r]))return!1;return!0}if("function"===typeof e.valueOf&&e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if("function"===typeof e.toString&&e.toString!==Object.prototype.toString)return e.toString()===t.toString();const i=Object.keys(e);if(n=i.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!Object.hasOwn(t,i[r]))return!1;for(r=n;0!==r--;){const n=i[r];if(n&&!bt(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function vt(e){const t=e.state.current,n=e.state.connections.get(t),r=null===n||void 0===n?void 0:n.accounts,i=null===r||void 0===r?void 0:r[0],o=e.chains.find(e=>e.id===(null===n||void 0===n?void 0:n.chainId)),s=e.state.status;switch(s){case"connected":return{address:i,addresses:r,chain:o,chainId:null===n||void 0===n?void 0:n.chainId,connector:null===n||void 0===n?void 0:n.connector,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:s};case"reconnecting":return{address:i,addresses:r,chain:o,chainId:null===n||void 0===n?void 0:n.chainId,connector:null===n||void 0===n?void 0:n.connector,isConnected:!!i,isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:s};case"connecting":return{address:i,addresses:r,chain:o,chainId:null===n||void 0===n?void 0:n.chainId,connector:null===n||void 0===n?void 0:n.connector,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:s};case"disconnected":return{address:void 0,addresses:void 0,chain:void 0,chainId:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:s}}}const wt=["connector"],_t=["connector"];const xt="2.22.1";var At,kt,Et=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};class St extends Error{get docsBaseUrl(){return"https://wagmi.sh/core"}get version(){return"@wagmi/core@".concat(xt)}constructor(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),At.add(this),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiCoreError"});const r=n.cause instanceof St?n.cause.details:null!==(t=n.cause)&&void 0!==t&&t.message?n.cause.message:n.details,i=n.cause instanceof St&&n.cause.docsPath||n.docsPath;this.message=[e||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...i?["Docs: ".concat(this.docsBaseUrl).concat(i,".html").concat(n.docsSlug?"#".concat(n.docsSlug):"")]:[],...r?["Details: ".concat(r)]:[],"Version: ".concat(this.version)].join("\n"),n.cause&&(this.cause=n.cause),this.details=r,this.docsPath=i,this.metaMessages=n.metaMessages,this.shortMessage=e}walk(e){return Et(this,At,"m",kt).call(this,this,e)}}At=new WeakSet,kt=function e(t,n){return null!==n&&void 0!==n&&n(t)?t:t.cause?Et(this,At,"m",e).call(this,t.cause,n):t};class Pt extends St{constructor(){super(...arguments),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiError"})}get docsBaseUrl(){return"https://wagmi.sh/react"}get version(){return"wagmi@".concat("2.19.2")}}class Ct extends Pt{constructor(){super("`useConfig` must be used within `WagmiProvider`.",{docsPath:"/api/WagmiProvider"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiProviderNotFoundError"})}}function It(){var t;const n=null!==(t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).config)&&void 0!==t?t:(0,e.useContext)(mt);if(!n)throw new Ct;return n}var Mt=n(5987);const Tt=e=>"object"===typeof e&&!Array.isArray(e);function Ot(){const t=It(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});return function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:bt;const o=(0,e.useRef)([]),s=(0,Mt.useSyncExternalStoreWithSelector)(t,n,r,e=>e,(e,t)=>{if(Tt(e)&&Tt(t)&&o.current.length){for(const n of o.current)if(!i(e[n],t[n]))return!1;return!0}return i(e,t)});return(0,e.useMemo)(()=>{if(Tt(s)){const e=(0,a.A)({},s);let t={};for(const[n,r]of Object.entries(e))t=(0,a.A)((0,a.A)({},t),{},{[n]:{configurable:!1,enumerable:!0,get:()=>(o.current.includes(n)||o.current.push(n),r)}});return Object.defineProperties(e,t),e}return s},[s])}(e=>function(e,t){const{onChange:n}=t;return e.subscribe(()=>vt(e),n,{equalityFn(e,t){const{connector:n}=e,r=(0,qe.A)(e,wt),{connector:i}=t;return bt(r,(0,qe.A)(t,_t))&&(null===n||void 0===n?void 0:n.id)===(null===i||void 0===i?void 0:i.id)&&(null===n||void 0===n?void 0:n.uid)===(null===i||void 0===i?void 0:i.uid)}})}(t,{onChange:e}),()=>vt(t))}function Rt(e){return e.state.chainId}function Bt(){const t=It(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});return(0,e.useSyncExternalStore)(e=>function(e,t){const{onChange:n}=t;return e.subscribe(e=>e.chainId,n)}(t,{onChange:e}),()=>Rt(t),()=>Rt(t))}var Nt,Ut,jt,Lt,Ft,Dt=(Nt=new WeakMap,Ut=new WeakMap,jt=new WeakMap,Lt=new WeakMap,Ft=new WeakSet,class extends V{constructor(e,t){super(),L(this,Ft),l(this,Nt,void 0),l(this,Ut,void 0),l(this,jt,void 0),l(this,Lt,void 0),h(Nt,this,e),this.setOptions(t),this.bindMethods(),u(Ft,this,zt).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const n=this.options;this.options=d(Nt,this).defaultMutationOptions(e),C(this.options,n)||d(Nt,this).getMutationCache().notify({type:"observerOptionsUpdated",mutation:d(jt,this),observer:this}),null!==n&&void 0!==n&&n.mutationKey&&this.options.mutationKey&&k(n.mutationKey)!==k(this.options.mutationKey)?this.reset():"pending"===(null===(t=d(jt,this))||void 0===t?void 0:t.state.status)&&d(jt,this).setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||(null===(e=d(jt,this))||void 0===e||e.removeObserver(this))}onMutationUpdate(e){u(Ft,this,zt).call(this),u(Ft,this,qt).call(this,e)}getCurrentResult(){return d(Ut,this)}reset(){var e;null===(e=d(jt,this))||void 0===e||e.removeObserver(this),h(jt,this,void 0),u(Ft,this,zt).call(this),u(Ft,this,qt).call(this)}mutate(e,t){var n;return h(Lt,this,t),null===(n=d(jt,this))||void 0===n||n.removeObserver(this),h(jt,this,d(Nt,this).getMutationCache().build(d(Nt,this),this.options)),d(jt,this).addObserver(this),d(jt,this).execute(e)}});function zt(){var e,t;const n=null!==(e=null===(t=d(jt,this))||void 0===t?void 0:t.state)&&void 0!==e?e:{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0};h(Ut,this,(0,a.A)((0,a.A)({},n),{},{isPending:"pending"===n.status,isSuccess:"success"===n.status,isError:"error"===n.status,isIdle:"idle"===n.status,mutate:this.mutate,reset:this.reset}))}function qt(e){$.batch(()=>{if(d(Lt,this)&&this.hasListeners()){const l=d(Ut,this).variables,u=d(Ut,this).context,h={client:d(Nt,this),meta:this.options.meta,mutationKey:this.options.mutationKey};var t,n,r,i;if("success"===(null===e||void 0===e?void 0:e.type))null===(t=(n=d(Lt,this)).onSuccess)||void 0===t||t.call(n,e.data,l,u,h),null===(r=(i=d(Lt,this)).onSettled)||void 0===r||r.call(i,e.data,null,l,u,h);else if("error"===(null===e||void 0===e?void 0:e.type)){var o,s,a,c;null===(o=(s=d(Lt,this)).onError)||void 0===o||o.call(s,e.error,l,u,h),null===(a=(c=d(Lt,this)).onSettled)||void 0===a||a.call(c,void 0,e.error,l,u,h)}}this.listeners.forEach(e=>{e(d(Ut,this))})})}function Ht(t,n){const r=nt(n),[i]=e.useState(()=>new Dt(r,t));e.useEffect(()=>{i.setOptions(t)},[i,t]);const o=e.useSyncExternalStore(e.useCallback(e=>i.subscribe($.batchCalls(e)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),s=e.useCallback((e,t)=>{i.mutate(e,t).catch(g)},[i]);if(o.error&&j(i.options.throwOnError,[o.error]))throw o.error;return(0,a.A)((0,a.A)({},o),{},{mutate:s,mutateAsync:o.mutate})}class Wt extends St{constructor(){super("Chain not configured."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotConfiguredError"})}}class Kt extends St{constructor(){super("Connector already connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAlreadyConnectedError"})}}class $t extends St{constructor(){super("Connector not connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorNotConnectedError"})}}class Vt extends St{constructor(e){let{address:t,connector:n}=e;super('Account "'.concat(t,'" not found for connector "').concat(n.name,'".')),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAccountNotFoundError"})}}class Gt extends St{constructor(e){let{connectionChainId:t,connectorChainId:n}=e;super("The current chain of the connector (id: ".concat(n,") does not match the connection's chain (id: ").concat(t,")."),{metaMessages:["Current Chain ID: ".concat(n),"Expected Chain ID: ".concat(t)]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorChainMismatchError"})}}class Jt extends St{constructor(e){let{connector:t}=e;super('Connector "'.concat(t.name,'" unavailable while reconnecting.'),{details:["During the reconnection step, the only connector methods guaranteed to be available are: `id`, `name`, `type`, `uid`.","All other methods are not guaranteed to be available until reconnection completes and connectors are fully restored.","This error commonly occurs for connectors that asynchronously inject after reconnection has already started."].join(" ")}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorUnavailableReconnectingError"})}}const Zt=["connector"];function Yt(e){return{mutationFn:t=>async function(e,t){let n;if(n="function"===typeof t.connector?e._internal.connectors.setup(t.connector):t.connector,n.uid===e.state.current)throw new Kt;try{var r;e.setState(e=>(0,a.A)((0,a.A)({},e),{},{status:"connecting"})),n.emitter.emit("message",{type:"connecting"});const{connector:i}=t,o=(0,qe.A)(t,Zt),s=await n.connect(o);return n.emitter.off("connect",e._internal.events.connect),n.emitter.on("change",e._internal.events.change),n.emitter.on("disconnect",e._internal.events.disconnect),await(null===(r=e.storage)||void 0===r?void 0:r.setItem("recentConnectorId",n.id)),e.setState(e=>(0,a.A)((0,a.A)({},e),{},{connections:new Map(e.connections).set(n.uid,{accounts:o.withCapabilities?s.accounts.map(e=>"object"===typeof e?e.address:e):s.accounts,chainId:s.chainId,connector:n}),current:n.uid,status:"connected"})),{accounts:o.withCapabilities?s.accounts.map(e=>"object"===typeof e?e:{address:e,capabilities:{}}):s.accounts,chainId:s.chainId}}catch(i){throw e.setState(e=>(0,a.A)((0,a.A)({},e),{},{status:e.current?"connected":"disconnected"})),i}}(e,t),mutationKey:["connect"]}}let Qt=[];function Xt(e){const t=e.connectors;return Qt.length===t.length&&Qt.every((e,n)=>e===t[n])?Qt:(Qt=t,t)}function en(){const t=It(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});return(0,e.useSyncExternalStore)(e=>function(e,t){const{onChange:n}=t;return e._internal.connectors.subscribe((e,t)=>{n(Object.values(e),t)})}(t,{onChange:e}),()=>Xt(t),()=>Xt(t))}const tn=["mutate","mutateAsync"];function nn(e){return{mutationFn:t=>async function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n.connector)t=n.connector;else{const{connections:n,current:r}=e.state,i=n.get(r);t=null===i||void 0===i?void 0:i.connector}const r=e.state.connections;t&&(await t.disconnect(),t.emitter.off("change",e._internal.events.change),t.emitter.off("disconnect",e._internal.events.disconnect),t.emitter.on("connect",e._internal.events.connect),r.delete(t.uid)),e.setState(e=>{if(0===r.size)return(0,a.A)((0,a.A)({},e),{},{connections:new Map,current:null,status:"disconnected"});const t=r.values().next().value;return(0,a.A)((0,a.A)({},e),{},{connections:new Map(r),current:t.connector.uid})});{var i,o;const t=e.state.current;if(!t)return;const n=null===(i=e.state.connections.get(t))||void 0===i?void 0:i.connector;if(!n)return;await(null===(o=e.storage)||void 0===o?void 0:o.setItem("recentConnectorId",n.id))}}(e,t),mutationKey:["disconnect"]}}let rn=[];function on(e){const t=[...e.state.connections.values()];return"reconnecting"===e.state.status||bt(rn,t)?rn:(rn=t,t)}function sn(){const t=It(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});return(0,e.useSyncExternalStore)(e=>function(e,t){const{onChange:n}=t;return e.subscribe(()=>on(e),n,{equalityFn:bt})}(t,{onChange:e}),()=>on(t),()=>on(t))}const an=["mutate","mutateAsync"];var cn=n(2349),ln=n.n(cn),un=n(7663),dn=n(764),hn=Object.defineProperty,fn=Object.defineProperties,pn=Object.getOwnPropertyDescriptors,mn=Object.getOwnPropertySymbols,gn=Object.prototype.hasOwnProperty,yn=Object.prototype.propertyIsEnumerable,bn=(e,t,n)=>t in e?hn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vn=(e,t)=>{for(var n in t||(t={}))gn.call(t,n)&&bn(e,n,t[n]);if(mn)for(var n of mn(t))yn.call(t,n)&&bn(e,n,t[n]);return e},wn=(e,t)=>fn(e,pn(t)),_n={"Ethereum Mainnet":"eip155:1","Linea Mainnet":"eip155:59144","Arbitrum One":"eip155:42161","Avalanche Network C-Chain":"eip155:43114","BNB Chain":"eip155:56","OP Mainnet":"eip155:10","Polygon Mainnet":"eip155:137","zkSync Era Mainnet":"eip155:324","Base Mainnet":"eip155:8453","Solana Mainnet":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"},xn={eth_sendTransaction:!0,eth_signTypedData_v4:!0,personal_sign:!0,eth_getBalance:!0,wallet_sendCalls:!0,wallet_getCapabilities:!0},An=["wallet_registerOnboarding","wallet_scanQRCode"],kn=["wallet_addEthereumChain"],En=["wallet_switchEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_revokePermissions","eth_requestAccounts","eth_accounts","eth_coinbase","net_version","metamask_logWeb3ShimUsage","metamask_getProviderState","metamask_sendDomainMetadata","wallet_registerOnboarding"],Sn=(cn.MetaMaskOpenRPCDocument.methods.map(e=>{let{name:t}=e;return t}).filter(e=>!kn.includes(e)).filter(e=>!An.includes(e)).filter(e=>!En.includes(e)),e=>{const t=[];return e.forEach(e=>{const{namespace:n,reference:r}=(0,dn.$)(e);if("eip155"===n&&r){const e=parseInt(r,10);isNaN(e)||t.push((0,yt.cK)(e))}}),t}),Pn=e=>{if(!e.examples||0===e.examples.length)return{method:e.name,params:[]};const t=e.examples[0].params.map(e=>e.value),n="by-name"===e.paramStructure?((e,t)=>e.reduce((e,n,r)=>{var i;const o=null==(i=t[r])?void 0:i.name;return o&&(e[o]=n),e},{}))(t,e.params):t;return{method:e.name,params:n}},Cn=(e,t,n,r,i)=>{var o,s;const a=null!=(o=e[t])?o:{},c=null!=(s=a[n])?s:[];return wn(vn({},e),{[t]:wn(vn({},a),{[n]:[...c,{result:r,request:i}]})})},In=e=>e.params.request,Mn=e=>e.toLowerCase().replace(/:/g,"-").replace(/\s+/g,"-").replace(/_/g,"-").replace(/[^a-z0-9-]/g,""),Tn=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.map(Mn).filter(Boolean).join("-")},On={container:"app-container",title:"app-title",btnConnect:e=>e?Tn("app","btn","connect",e):"app-btn-connect",btnDisconnect:"app-btn-disconnect",btnReconnect:"app-btn-reconnect",btnCancel:"app-btn-cancel",sectionScopes:"app-section-scopes",sectionConnected:"app-section-connected",sectionError:"app-section-error"},Rn={container:e=>Tn("dynamic-inputs","container",e),heading:e=>Tn("dynamic-inputs","heading",e),checkbox:e=>Tn("dynamic-inputs","checkbox",e),checkboxLabel:e=>Tn("dynamic-inputs","label",e)},Bn={card:e=>Tn("scope-card",e),networkName:e=>Tn("scope-card","network-name",e),accountsLabel:e=>Tn("scope-card","accounts-label",e),accountsBadge:e=>Tn("scope-card","accounts-badge",e),accountSelect:e=>Tn("scope-card","account-select",e),accountOption:(e,t)=>Tn("scope-card","account-option",e,t),activeAccount:e=>Tn("scope-card","active-account",e),methodsLabel:e=>Tn("scope-card","methods-label",e),methodsBadge:e=>Tn("scope-card","methods-badge",e),methodSelect:e=>Tn("scope-card","method-select",e),methodOption:(e,t)=>Tn("scope-card","method-option",e,t),selectedMethod:e=>Tn("scope-card","selected-method",e),invokeCollapsible:e=>Tn("scope-card","invoke-collapsible",e),invokeTextarea:e=>Tn("scope-card","invoke-textarea",e),invokeBtn:e=>Tn("scope-card","invoke-btn",e),resultContainer:(e,t,n)=>Tn("scope-card","result",e,t,String(n)),resultMethod:(e,t,n)=>Tn("scope-card","result-method",e,t,String(n)),resultStatus:(e,t,n)=>Tn("scope-card","result-status",e,t,String(n)),resultCode:(e,t,n)=>Tn("scope-card","result-code",e,t,String(n))},Nn={card:"legacy-evm-card",title:"legacy-evm-title",chainIdLabel:"legacy-evm-chain-id-label",chainIdValue:"legacy-evm-chain-id-value",accountsLabel:"legacy-evm-accounts-label",accountsValue:"legacy-evm-accounts-value",activeAccount:"legacy-evm-active-account",responseContainer:"legacy-evm-response-container",responseLabel:"legacy-evm-response-label",responseText:"legacy-evm-response-text",btnRequestPermissions:"legacy-evm-btn-request-permissions",btnSignTypedDataV4:"legacy-evm-btn-sign-typed-data-v4",btnPersonalSign:"legacy-evm-btn-personal-sign",btnSendTransaction:"legacy-evm-btn-send-transaction",btnSwitchToGoerli:"legacy-evm-btn-switch-goerli",btnSwitchToSepolia:"legacy-evm-btn-switch-sepolia",btnSwitchToMainnet:"legacy-evm-btn-switch-mainnet",btnSwitchToPolygon:"legacy-evm-btn-switch-polygon",btnAddPolygonChain:"legacy-evm-btn-add-polygon-chain",readOnlySection:"legacy-evm-section-read-only",btnGetBalance:"legacy-evm-btn-get-balance",btnBlockNumber:"legacy-evm-btn-block-number",btnGasPrice:"legacy-evm-btn-gas-price"},Un={card:"wagmi-card",title:"wagmi-title",chainIdLabel:"wagmi-chain-id-label",chainIdValue:"wagmi-chain-id-value",accountLabel:"wagmi-account-label",accountValue:"wagmi-account-value",activeAccount:"wagmi-active-account",balanceContainer:"wagmi-balance-container",balanceValue:"wagmi-balance-value",blockNumberContainer:"wagmi-block-number-container",blockNumberValue:"wagmi-block-number-value",switchChainSection:"wagmi-section-switch-chain",btnSwitchChain:e=>Tn("wagmi","btn-switch-chain",String(e)),signMessageSection:"wagmi-section-sign-message",inputMessage:"wagmi-input-message",btnSignMessage:"wagmi-btn-sign-message",signatureResult:"wagmi-signature-result",sendTxSection:"wagmi-section-send-transaction",inputToAddress:"wagmi-input-to-address",inputAmount:"wagmi-input-amount",btnSendTransaction:"wagmi-btn-send-transaction",txHashResult:"wagmi-tx-hash-result",txConfirmingText:"wagmi-tx-confirming",txConfirmedText:"wagmi-tx-confirmed",txErrorText:"wagmi-tx-error",connectorSection:"wagmi-section-connector",connectorAccount:"wagmi-connector-account",connectorChainId:"wagmi-connector-chain-id"},jn=n(3505);const Ln=(0,e.createContext)(void 0),Fn=t=>{let{children:n}=t;const[r,i]=(0,e.useState)("pending"),[o,s]=(0,e.useState)(void 0),[a,c]=(0,e.useState)(null),l=(0,e.useRef)(void 0);(0,e.useEffect)(()=>{l.current||(l.current=(0,jn.CI)({dapp:{name:"playground",url:"https://playground.metamask.io"},api:{supportedNetworks:(0,jn.pm)("")},transport:{extensionId:"nkbihfbeogaeaoehlefnkodbefgpgknn",onNotification:e=>{const t=e;"wallet_sessionChanged"===t.method||"wallet_createSession"===t.method||"wallet_getSession"===t.method?s(t.params):"stateChanged"===t.method&&i(t.params)}}}))},[]);const u=(0,e.useCallback)(async()=>{try{if(!l.current)throw new Error("SDK not initialized");return(await l.current).disconnect()}catch(a){c(a)}},[]),d=(0,e.useCallback)(async(e,t)=>{try{if(!l.current)throw new Error("SDK not initialized");const n=await l.current;await n.connect(e,t)}catch(a){c(a)}},[]),h=(0,e.useCallback)(async e=>{try{if(!l.current)throw new Error("SDK not initialized");return(await l.current).invokeMethod(e)}catch(a){c(a)}},[]);return(0,et.jsx)(Ln.Provider,{value:{session:o,status:r,error:a,connect:d,disconnect:u,invokeMethod:h},children:n})},Dn=()=>{const t=(0,e.useContext)(Ln);if(void 0===t)throw new Error("useSDK must be used within a SDKProvider");return t};var zn=n(3873);const qn=(0,e.createContext)(void 0),Hn=t=>{let{children:n}=t;const[r,i]=(0,e.useState)(),[o,s]=(0,e.useState)(!1),[a,c]=(0,e.useState)(),[l,u]=(0,e.useState)(),[d,h]=(0,e.useState)([]),f=(0,e.useRef)(void 0);(0,e.useEffect)(()=>{if(!f.current){const e=async()=>{const e={"eip155:1":"https://eth.llamarpc.com","eip155:5":"https://goerli.infura.io/v3/demo","eip155:11155111":"https://sepolia.infura.io/v3/demo","eip155:137":"https://polygon-rpc.com"},t=await(0,zn.createEVMClient)({dapp:{name:"playground",url:"https://playground.metamask.io"},api:{supportedNetworks:e}}),n=await t.getProvider();return n&&(n.on("connect",()=>{s(!0)}),n.on("disconnect",()=>{s(!1),h([]),u(void 0)}),n.on("chainChanged",e=>{u(e)}),n.on("accountsChanged",e=>{h(e)}),i(t),c(n)),t};f.current=e()}},[]);const p=(0,e.useCallback)(async e=>{try{if(!f.current)throw new Error("SDK not initialized");const t=await f.current,n=e.length>0?e:[1];await t.connect({chainIds:n})}catch(t){console.error("Failed to connect:",t)}},[]),m=(0,e.useCallback)(async()=>{try{if(!f.current)throw new Error("SDK not initialized");const e=await f.current;await e.disconnect(),s(!1),h([]),u(void 0)}catch(e){console.error("Failed to disconnect:",e)}},[]);return(0,et.jsx)(qn.Provider,{value:{sdk:r,connected:o,provider:a,chainId:l,accounts:d,connect:p,disconnect:m},children:n})};let Wn=function(e){return e.ADDRESS="Address",e.SCOPE="Scope",e.CAIP_ACCOUNT_ID="CAIP Address",e}({});const Kn=e=>{let{inputArray:t,handleCheckboxChange:n,label:r,availableOptions:i}=e;return(0,et.jsxs)("div",{"data-testid":Rn.container(r),className:"space-y-3",children:[(0,et.jsxs)("h3",{"data-testid":Rn.heading(r),className:"text-lg font-medium text-gray-800",children:[r,"s:"]}),(0,et.jsx)("div",{className:"flex flex-wrap gap-4",children:i.map(e=>{const r=t.includes(e.value);return(0,et.jsxs)("label",{"data-testid":Rn.checkboxLabel(e.value),className:"flex items-center gap-2 p-2 hover:bg-gray-50 rounded cursor-pointer",children:[(0,et.jsx)("input",{type:"checkbox","data-testid":Rn.checkbox(e.value),checked:r,onChange:t=>n(e.value,t.target.checked),className:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue-500 focus:ring-2"}),(0,et.jsx)("span",{className:"text-gray-700 select-none",children:e.name})]},"checkbox-".concat(e.value))})})]})};var $n=n(4507),Vn=n(5471),Gn=n(5720),Jn=n.n(Gn),Zn=n(982),Yn=n.n(Zn);const Qn=n(929).sha256;var Xn=n(6815),er=n(3109),tr=n(1979);const nr=["cause"];var rr=8078e3,ir=8078001,or=8078004,sr=8078005,ar=8078006,cr=8078011;function lr(e){if(Array.isArray(e)){return"%5B"+e.map(lr).join("%2C%20")+"%5D"}return"bigint"===typeof e?"".concat(e,"n"):encodeURIComponent(String(null!=e&&null===Object.getPrototypeOf(e)?(0,a.A)({},e):e))}function ur(e){let[t,n]=e;return"".concat(t,"=").concat(lr(n))}function dr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};{let n="Solana error #".concat(e,"; Decode this error by running `npx @solana/errors decode -- ").concat(e);return Object.keys(t).length&&(n+=" '".concat(function(e){const t=Object.entries(e).map(ur).join("&");return btoa(t)}(t),"'")),"".concat(n,"`")}}var hr=class extends Error{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let r,i,[o,s]=t;if(s){const{cause:e}=s,t=(0,qe.A)(s,nr);e&&(i={cause:e}),Object.keys(t).length>0&&(r=t)}super(dr(o,r),i),(0,tr.A)(this,"cause",this.cause),(0,tr.A)(this,"context",void 0),this.context=(0,a.A)({__code:o},r),this.name="SolanaError"}};function fr(e,t){return"fixedSize"in t?t.fixedSize:t.getSizeFromValue(e)}function pr(e){return Object.freeze((0,a.A)((0,a.A)({},e),{},{encode:t=>{const n=new Uint8Array(fr(t,e));return e.write(t,n,0),n}}))}function mr(e){return Object.freeze((0,a.A)((0,a.A)({},e),{},{decode:function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.read(t,n)[0]}}))}function gr(e){return"fixedSize"in e&&"number"===typeof e.fixedSize}function yr(e,t){if(gr(e)!==gr(t))throw new hr(or);if(gr(e)&&gr(t)&&e.fixedSize!==t.fixedSize)throw new hr(sr,{decoderFixedSize:t.fixedSize,encoderFixedSize:e.fixedSize});if(!gr(e)&&!gr(t)&&e.maxSize!==t.maxSize)throw new hr(ar,{decoderMaxSize:t.maxSize,encoderMaxSize:e.maxSize});return(0,a.A)((0,a.A)((0,a.A)({},t),e),{},{decode:t.decode,encode:e.encode,read:t.read,write:e.write})}function br(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const i=n.length-r;if(i<t)throw new hr(ir,{bytesLength:i,codecDescription:e,expected:t})}function vr(e,t,n,r){if(r<t||r>n)throw new hr(cr,{codecDescription:e,max:n,min:t,value:r})}function wr(e){return 1!==(null===e||void 0===e?void 0:e.endian)}function _r(e){return pr({fixedSize:e.size,write(t,n,r){e.range&&vr(e.name,e.range[0],e.range[1],t);const i=new ArrayBuffer(e.size);return e.set(new DataView(i),t,wr(e.config)),n.set(new Uint8Array(i),r),r+e.size}})}function xr(e){return mr({fixedSize:e.size,read(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;!function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(t.length-n<=0)throw new hr(rr,{codecDescription:e})}(e.name,t,n),br(e.name,e.size,t,n);const r=new DataView(function(e,t,n){const r=e.byteOffset+(null!==t&&void 0!==t?t:0),i=null!==n&&void 0!==n?n:e.byteLength;return e.buffer.slice(r,r+i)}(t,n,e.size));return[e.get(r,wr(e.config)),n+e.size]}})}var Ar=function(){return _r({config:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},name:"u64",range:[0n,BigInt("0xffffffffffffffff")],set:(e,t,n)=>e.setBigUint64(0,BigInt(t),n),size:8})},kr=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return yr(Ar(e),function(){return xr({config:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},get:(e,t)=>e.getBigUint64(0,t),name:"u64",size:8})}(e))};const Er=["message","explanation"];class Sr extends TypeError{constructor(e,t){let n;const{message:r,explanation:i}=e,o=(0,qe.A)(e,Er),{path:s}=e,a=0===s.length?r:"At path: ".concat(s.join(".")," -- ").concat(r);super(null!==i&&void 0!==i?i:a),null!=i&&(this.cause=a),Object.assign(this,o),this.name=this.constructor.name,this.failures=()=>null!==n&&void 0!==n?n:n=[e,...t()]}}function Pr(e){return"object"===typeof e&&null!=e}function Cr(e){return Pr(e)&&!Array.isArray(e)}function Ir(e){return"symbol"===typeof e?e.toString():"string"===typeof e?JSON.stringify(e):"".concat(e)}function Mr(e,t,n,r){if(!0===e)return;!1===e?e={}:"string"===typeof e&&(e={message:e});const{path:i,branch:o}=t,{type:s}=n,{refinement:c,message:l="Expected a value of type `".concat(s,"`").concat(c?" with refinement `".concat(c,"`"):"",", but received: `").concat(Ir(r),"`")}=e;return(0,a.A)((0,a.A)({value:r,type:s,refinement:c,key:i[i.length-1],path:i,branch:o},e),{},{message:l})}function*Tr(e,t,n,r){var i;Pr(i=e)&&"function"===typeof i[Symbol.iterator]||(e=[e]);for(const o of e){const e=Mr(o,t,n,r);e&&(yield e)}}function Or(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function*(){const{path:r=[],branch:i=[e],coerce:o=!1,mask:s=!1}=n,a={path:r,branch:i,mask:s};o&&(e=t.coercer(e,a));let c="valid";for(const l of t.validator(e,a))l.explanation=n.message,c="not_valid",yield[l,void 0];for(let[l,u,d]of t.entries(e,a)){const t=Or(u,d,{path:void 0===l?r:[...r,l],branch:void 0===l?i:[...i,u],coerce:o,mask:s,message:n.message});for(const n of t)n[0]?(c=null!=n[0].refinement?"not_refined":"not_valid",yield[n[0],void 0]):o&&(u=n[1],void 0===l?e=u:e instanceof Map?e.set(l,u):e instanceof Set?e.add(u):Pr(e)&&(void 0!==u||l in e)&&(e[l]=u))}if("not_valid"!==c)for(const l of t.refiner(e,a))l.explanation=n.message,c="not_refined",yield[l,void 0];"valid"===c&&(yield[void 0,e])}()}class Rr{constructor(e){const{type:t,schema:n,validator:r,refiner:i,coercer:o=e=>e,entries:s=function*(){}}=e;this.type=t,this.schema=n,this.entries=s,this.coercer=o,this.validator=r?(e,t)=>Tr(r(e,t),t,this,e):()=>[],this.refiner=i?(e,t)=>Tr(i(e,t),t,this,e):()=>[]}assert(e,t){return function(e,t,n){const r=Ur(e,t,{message:n});if(r[0])throw r[0]}(e,this,t)}create(e,t){return Br(e,this,t)}is(e){return Nr(e,this)}mask(e,t){return function(e,t,n){const r=Ur(e,t,{coerce:!0,mask:!0,message:n});if(r[0])throw r[0];return r[1]}(e,this,t)}validate(e){return Ur(e,this,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}}function Br(e,t,n){const r=Ur(e,t,{coerce:!0,message:n});if(r[0])throw r[0];return r[1]}function Nr(e,t){return!Ur(e,t)[0]}function Ur(e,t){const n=Or(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),r=function(e){const{done:t,value:n}=e.next();return t?void 0:n}(n);if(r[0]){return[new Sr(r[0],function*(){for(const e of n)e[0]&&(yield e[0])}),void 0]}return[void 0,r[1]]}function jr(e,t){return new Rr({type:e,schema:null,validator:t})}function Lr(e){return new Rr({type:"array",schema:e,*entries(t){if(e&&Array.isArray(t))for(const[n,r]of t.entries())yield[n,r,e]},coercer:e=>Array.isArray(e)?e.slice():e,validator:e=>Array.isArray(e)||"Expected an array value, but received: ".concat(Ir(e))})}function Fr(){return jr("boolean",e=>"boolean"===typeof e)}function Dr(e){return jr("instance",t=>t instanceof e||"Expected a `".concat(e.name,"` instance, but received: ").concat(Ir(t)))}function zr(e){const t=Ir(e),n=typeof e;return new Rr({type:"literal",schema:"string"===n||"number"===n||"boolean"===n?e:null,validator:n=>n===e||"Expected the literal `".concat(t,"`, but received: ").concat(Ir(n))})}function qr(){return jr("never",()=>!1)}function Hr(e){return new Rr((0,a.A)((0,a.A)({},e),{},{validator:(t,n)=>null===t||e.validator(t,n),refiner:(t,n)=>null===t||e.refiner(t,n)}))}function Wr(){return jr("number",e=>"number"===typeof e&&!isNaN(e)||"Expected a number, but received: ".concat(Ir(e)))}function Kr(e){return new Rr((0,a.A)((0,a.A)({},e),{},{validator:(t,n)=>void 0===t||e.validator(t,n),refiner:(t,n)=>void 0===t||e.refiner(t,n)}))}function $r(e,t){return new Rr({type:"record",schema:null,*entries(n){if(Pr(n))for(const r in n){const i=n[r];yield[r,r,e],yield[r,i,t]}},validator:e=>Cr(e)||"Expected an object, but received: ".concat(Ir(e)),coercer:e=>Cr(e)?(0,a.A)({},e):e})}function Vr(){return jr("string",e=>"string"===typeof e||"Expected a string, but received: ".concat(Ir(e)))}function Gr(e){const t=qr();return new Rr({type:"tuple",schema:null,*entries(n){if(Array.isArray(n)){const r=Math.max(e.length,n.length);for(let i=0;i<r;i++)yield[i,n[i],e[i]||t]}},validator:e=>Array.isArray(e)||"Expected an array, but received: ".concat(Ir(e)),coercer:e=>Array.isArray(e)?e.slice():e})}function Jr(e){const t=Object.keys(e);return new Rr({type:"type",schema:e,*entries(n){if(Pr(n))for(const r of t)yield[r,n[r],e[r]]},validator:e=>Cr(e)||"Expected an object, but received: ".concat(Ir(e)),coercer:e=>Cr(e)?(0,a.A)({},e):e})}function Zr(e){const t=e.map(e=>e.type).join(" | ");return new Rr({type:"union",schema:null,coercer(t,n){for(const r of e){const[e,i]=r.validate(t,{coerce:!0,mask:n.mask});if(!e)return i}return t},validator(n,r){const i=[];for(const t of e){const[...e]=Or(n,t,r),[o]=e;if(!o[0])return[];for(const[t]of e)t&&i.push(t)}return["Expected the value to satisfy a union of `".concat(t,"`, but received: ").concat(Ir(n)),...i]}})}function Yr(){return jr("unknown",()=>!0)}function Qr(e,t,n){return new Rr((0,a.A)((0,a.A)({},e),{},{coercer:(r,i)=>Nr(r,t)?e.coercer(n(r,i),i):e.coercer(r,i)}))}var Xr=n(4226),ei=n.n(Xr),ti=n(5806);const ni=["autoconnect","reconnect","reconnect_interval","max_reconnects"];var ri=class extends ti.EventEmitter{constructor(e,t,n){super(),(0,tr.A)(this,"socket",void 0),this.socket=new window.WebSocket(e,n),this.socket.onopen=()=>this.emit("open"),this.socket.onmessage=e=>this.emit("message",e.data),this.socket.onerror=e=>this.emit("error",e),this.socket.onclose=e=>{this.emit("close",e.code,e.reason)}}send(e,t,n){const r=n||t;try{this.socket.send(e),r()}catch(i){r(i)}}close(e,t){this.socket.close(e,t)}addEventListener(e,t,n){this.socket.addEventListener(e,t,n)}};function ii(e,t){return new ri(e,t)}var oi=class{encode(e){return JSON.stringify(e)}decode(e){return JSON.parse(e)}},si=class extends ti.EventEmitter{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ws://localhost:8080",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{autoconnect:r=!0,reconnect:i=!0,reconnect_interval:o=1e3,max_reconnects:s=5}=n,c=(0,qe.A)(n,ni),l=arguments.length>3?arguments[3]:void 0,u=arguments.length>4?arguments[4]:void 0;super(),(0,tr.A)(this,"address",void 0),(0,tr.A)(this,"rpc_id",void 0),(0,tr.A)(this,"queue",void 0),(0,tr.A)(this,"options",void 0),(0,tr.A)(this,"autoconnect",void 0),(0,tr.A)(this,"ready",void 0),(0,tr.A)(this,"reconnect",void 0),(0,tr.A)(this,"reconnect_timer_id",void 0),(0,tr.A)(this,"reconnect_interval",void 0),(0,tr.A)(this,"max_reconnects",void 0),(0,tr.A)(this,"rest_options",void 0),(0,tr.A)(this,"current_reconnects",void 0),(0,tr.A)(this,"generate_request_id",void 0),(0,tr.A)(this,"socket",void 0),(0,tr.A)(this,"webSocketFactory",void 0),(0,tr.A)(this,"dataPack",void 0),this.webSocketFactory=e,this.queue={},this.rpc_id=0,this.address=t,this.autoconnect=r,this.ready=!1,this.reconnect=i,this.reconnect_timer_id=void 0,this.reconnect_interval=o,this.max_reconnects=s,this.rest_options=c,this.current_reconnects=0,this.generate_request_id=l||(()=>"number"===typeof this.rpc_id?++this.rpc_id:Number(this.rpc_id)+1),this.dataPack=u||new oi,this.autoconnect&&this._connect(this.address,(0,a.A)({autoconnect:this.autoconnect,reconnect:this.reconnect,reconnect_interval:this.reconnect_interval,max_reconnects:this.max_reconnects},this.rest_options))}connect(){this.socket||this._connect(this.address,(0,a.A)({autoconnect:this.autoconnect,reconnect:this.reconnect,reconnect_interval:this.reconnect_interval,max_reconnects:this.max_reconnects},this.rest_options))}call(e,t,n,r){return r||"object"!==typeof n||(r=n,n=null),new Promise((i,o)=>{if(!this.ready)return o(new Error("socket not ready"));const s=this.generate_request_id(e,t),a={jsonrpc:"2.0",method:e,params:t||void 0,id:s};this.socket.send(this.dataPack.encode(a),r,e=>{if(e)return o(e);this.queue[s]={promise:[i,o]},n&&(this.queue[s].timeout=setTimeout(()=>{delete this.queue[s],o(new Error("reply timeout"))},n))})})}async login(e){const t=await this.call("rpc.login",e);if(!t)throw new Error("authentication failed");return t}async listMethods(){return await this.call("__listMethods")}notify(e,t){return new Promise((n,r)=>{if(!this.ready)return r(new Error("socket not ready"));const i={jsonrpc:"2.0",method:e,params:t};this.socket.send(this.dataPack.encode(i),e=>{if(e)return r(e);n()})})}async subscribe(e){"string"===typeof e&&(e=[e]);const t=await this.call("rpc.on",e);if("string"===typeof e&&"ok"!==t[e])throw new Error("Failed subscribing to an event '"+e+"' with: "+t[e]);return t}async unsubscribe(e){"string"===typeof e&&(e=[e]);const t=await this.call("rpc.off",e);if("string"===typeof e&&"ok"!==t[e])throw new Error("Failed unsubscribing from an event with: "+t);return t}close(e,t){this.socket&&this.socket.close(e||1e3,t)}setAutoReconnect(e){this.reconnect=e}setReconnectInterval(e){this.reconnect_interval=e}setMaxReconnects(e){this.max_reconnects=e}getCurrentReconnects(){return this.current_reconnects}getMaxReconnects(){return this.max_reconnects}isReconnecting(){return void 0!==this.reconnect_timer_id}willReconnect(){return this.reconnect&&(0===this.max_reconnects||this.current_reconnects<this.max_reconnects)}_connect(e,t){clearTimeout(this.reconnect_timer_id),this.socket=this.webSocketFactory(e,t),this.socket.addEventListener("open",()=>{this.ready=!0,this.emit("open"),this.current_reconnects=0}),this.socket.addEventListener("message",e=>{let{data:t}=e;t instanceof ArrayBuffer&&(t=$n.Buffer.from(t).toString());try{t=this.dataPack.decode(t)}catch(n){return}if(t.notification&&this.listeners(t.notification).length){if(!Object.keys(t.params).length)return this.emit(t.notification);const e=[t.notification];if(t.params.constructor===Object)e.push(t.params);else for(let n=0;n<t.params.length;n++)e.push(t.params[n]);return Promise.resolve().then(()=>{this.emit.apply(this,e)})}if(!this.queue[t.id])return t.method?Promise.resolve().then(()=>{var e;this.emit(t.method,null===(e=t)||void 0===e?void 0:e.params)}):void 0;"error"in t==="result"in t&&this.queue[t.id].promise[1](new Error('Server response malformed. Response must include either "result" or "error", but not both.')),this.queue[t.id].timeout&&clearTimeout(this.queue[t.id].timeout),t.error?this.queue[t.id].promise[1](t.error):this.queue[t.id].promise[0](t.result),delete this.queue[t.id]}),this.socket.addEventListener("error",e=>this.emit("error",e)),this.socket.addEventListener("close",n=>{let{code:r,reason:i}=n;this.ready&&setTimeout(()=>this.emit("close",r,i),0),this.ready=!1,this.socket=void 0,1e3!==r&&(this.current_reconnects++,this.reconnect&&(this.max_reconnects>this.current_reconnects||0===this.max_reconnects)?this.reconnect_timer_id=setTimeout(()=>this._connect(e,t),this.reconnect_interval):this.reconnect&&this.max_reconnects>0&&this.current_reconnects>=this.max_reconnects&&setTimeout(()=>this.emit("max_reconnects_reached",r,i),1))})}},ai=n(2494),ci=n(8717);const li=["commitment"],ui=["encoding"],di=["commitment"],hi=["commitment"],fi=(Vn.ed25519.utils.randomPrivateKey,()=>{const e=Vn.ed25519.utils.randomPrivateKey(),t=pi(e),n=new Uint8Array(64);return n.set(e),n.set(t,32),{publicKey:t,secretKey:n}}),pi=Vn.ed25519.getPublicKey;function mi(e){try{return Vn.ed25519.ExtendedPoint.fromHex(e),!0}catch(t){return!1}}const gi=(e,t)=>Vn.ed25519.sign(e,t.slice(0,32)),yi=Vn.ed25519.verify,bi=e=>$n.Buffer.isBuffer(e)?e:e instanceof Uint8Array?$n.Buffer.from(e.buffer,e.byteOffset,e.byteLength):$n.Buffer.from(e);class vi{constructor(e){Object.assign(this,e)}encode(){return $n.Buffer.from((0,Xn.serialize)(wi,this))}static decode(e){return(0,Xn.deserialize)(wi,this,e)}static decodeUnchecked(e){return(0,Xn.deserializeUnchecked)(wi,this,e)}}const wi=new Map;var _i;const xi=32;let Ai=1;class ki extends vi{constructor(e){if(super({}),this._bn=void 0,function(e){return void 0!==e._bn}(e))this._bn=e._bn;else{if("string"===typeof e){const t=Yn().decode(e);if(t.length!=xi)throw new Error("Invalid public key input");this._bn=new(Jn())(t)}else this._bn=new(Jn())(e);if(this._bn.byteLength()>xi)throw new Error("Invalid public key input")}}static unique(){const e=new ki(Ai);return Ai+=1,new ki(e.toBuffer())}equals(e){return this._bn.eq(e._bn)}toBase58(){return Yn().encode(this.toBytes())}toJSON(){return this.toBase58()}toBytes(){const e=this.toBuffer();return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}toBuffer(){const e=this._bn.toArrayLike($n.Buffer);if(e.length===xi)return e;const t=$n.Buffer.alloc(32);return e.copy(t,32-e.length),t}get[Symbol.toStringTag](){return"PublicKey(".concat(this.toString(),")")}toString(){return this.toBase58()}static async createWithSeed(e,t,n){const r=$n.Buffer.concat([e.toBuffer(),$n.Buffer.from(t),n.toBuffer()]),i=Qn(r);return new ki(i)}static createProgramAddressSync(e,t){let n=$n.Buffer.alloc(0);e.forEach(function(e){if(e.length>32)throw new TypeError("Max seed length exceeded");n=$n.Buffer.concat([n,bi(e)])}),n=$n.Buffer.concat([n,t.toBuffer(),$n.Buffer.from("ProgramDerivedAddress")]);const r=Qn(n);if(mi(r))throw new Error("Invalid seeds, address must fall off the curve");return new ki(r)}static async createProgramAddress(e,t){return this.createProgramAddressSync(e,t)}static findProgramAddressSync(e,t){let n,r=255;for(;0!=r;){try{const i=e.concat($n.Buffer.from([r]));n=this.createProgramAddressSync(i,t)}catch(i){if(i instanceof TypeError)throw i;r--;continue}return[n,r]}throw new Error("Unable to find a viable program address nonce")}static async findProgramAddress(e,t){return this.findProgramAddressSync(e,t)}static isOnCurve(e){return mi(new ki(e).toBytes())}}_i=ki,ki.default=new _i("11111111111111111111111111111111"),wi.set(ki,{kind:"struct",fields:[["_bn","u256"]]});new ki("BPFLoader1111111111111111111111111111111111");const Ei=1232;class Si extends Error{constructor(e){super("Signature ".concat(e," has expired: block height exceeded.")),this.signature=void 0,this.signature=e}}Object.defineProperty(Si.prototype,"name",{value:"TransactionExpiredBlockheightExceededError"});class Pi extends Error{constructor(e,t){super("Transaction was not confirmed in ".concat(t.toFixed(2)," seconds. It is ")+"unknown if it succeeded or failed. Check signature "+"".concat(e," using the Solana Explorer or CLI tools.")),this.signature=void 0,this.signature=e}}Object.defineProperty(Pi.prototype,"name",{value:"TransactionExpiredTimeoutError"});class Ci extends Error{constructor(e){super("Signature ".concat(e," has expired: the nonce is no longer valid.")),this.signature=void 0,this.signature=e}}Object.defineProperty(Ci.prototype,"name",{value:"TransactionExpiredNonceInvalidError"});class Ii{constructor(e,t){this.staticAccountKeys=void 0,this.accountKeysFromLookups=void 0,this.staticAccountKeys=e,this.accountKeysFromLookups=t}keySegments(){const e=[this.staticAccountKeys];return this.accountKeysFromLookups&&(e.push(this.accountKeysFromLookups.writable),e.push(this.accountKeysFromLookups.readonly)),e}get(e){for(const t of this.keySegments()){if(e<t.length)return t[e];e-=t.length}}get length(){return this.keySegments().flat().length}compileInstructions(e){if(this.length>256)throw new Error("Account index overflow encountered during compilation");const t=new Map;this.keySegments().flat().forEach((e,n)=>{t.set(e.toBase58(),n)});const n=e=>{const n=t.get(e.toBase58());if(void 0===n)throw new Error("Encountered an unknown instruction account key during compilation");return n};return e.map(e=>({programIdIndex:n(e.programId),accountKeyIndexes:e.keys.map(e=>n(e.pubkey)),data:e.data}))}}const Mi=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"publicKey";return er.av(32,e)},Ti=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"string";const t=er.w3([er.DH("length"),er.DH("lengthPadding"),er.av(er.cY(er.DH(),-8),"chars")],e),n=t.decode.bind(t),r=t.encode.bind(t),i=t;return i.decode=(e,t)=>n(e,t).chars.toString(),i.encode=(e,t,n)=>{const i={chars:$n.Buffer.from(e,"utf8")};return r(i,t,n)},i.alloc=e=>er.DH().span+er.DH().span+$n.Buffer.from(e,"utf8").length,i};function Oi(e,t){const n=e=>{if(e.span>=0)return e.span;if("function"===typeof e.alloc)return e.alloc(t[e.property]);if("count"in e&&"elementLayout"in e){const r=t[e.property];if(Array.isArray(r))return r.length*n(e.elementLayout)}else if("fields"in e)return Oi({layout:e},t[e.property]);return 0};let r=0;return e.layout.fields.forEach(e=>{r+=n(e)}),r}function Ri(e){let t=0,n=0;for(;;){let r=e.shift();if(t|=(127&r)<<7*n,n+=1,0===(128&r))break}return t}function Bi(e,t){let n=t;for(;;){let t=127&n;if(n>>=7,0==n){e.push(t);break}t|=128,e.push(t)}}function Ni(e,t){if(!e)throw new Error(t||"Assertion failed")}class Ui{constructor(e,t){this.payer=void 0,this.keyMetaMap=void 0,this.payer=e,this.keyMetaMap=t}static compile(e,t){const n=new Map,r=e=>{const t=e.toBase58();let r=n.get(t);return void 0===r&&(r={isSigner:!1,isWritable:!1,isInvoked:!1},n.set(t,r)),r},i=r(t);i.isSigner=!0,i.isWritable=!0;for(const o of e){r(o.programId).isInvoked=!0;for(const e of o.keys){const t=r(e.pubkey);t.isSigner||(t.isSigner=e.isSigner),t.isWritable||(t.isWritable=e.isWritable)}}return new Ui(t,n)}getMessageComponents(){const e=[...this.keyMetaMap.entries()];Ni(e.length<=256,"Max static account keys length exceeded");const t=e.filter(e=>{let[,t]=e;return t.isSigner&&t.isWritable}),n=e.filter(e=>{let[,t]=e;return t.isSigner&&!t.isWritable}),r=e.filter(e=>{let[,t]=e;return!t.isSigner&&t.isWritable}),i=e.filter(e=>{let[,t]=e;return!t.isSigner&&!t.isWritable}),o={numRequiredSignatures:t.length+n.length,numReadonlySignedAccounts:n.length,numReadonlyUnsignedAccounts:i.length};{Ni(t.length>0,"Expected at least one writable signer key");const[e]=t[0];Ni(e===this.payer.toBase58(),"Expected first writable signer key to be the fee payer")}return[o,[...t.map(e=>{let[t]=e;return new ki(t)}),...n.map(e=>{let[t]=e;return new ki(t)}),...r.map(e=>{let[t]=e;return new ki(t)}),...i.map(e=>{let[t]=e;return new ki(t)})]]}extractTableLookup(e){const[t,n]=this.drainKeysFoundInLookupTable(e.state.addresses,e=>!e.isSigner&&!e.isInvoked&&e.isWritable),[r,i]=this.drainKeysFoundInLookupTable(e.state.addresses,e=>!e.isSigner&&!e.isInvoked&&!e.isWritable);if(0!==t.length||0!==r.length)return[{accountKey:e.key,writableIndexes:t,readonlyIndexes:r},{writable:n,readonly:i}]}drainKeysFoundInLookupTable(e,t){const n=new Array,r=new Array;for(const[i,o]of this.keyMetaMap.entries())if(t(o)){const t=new ki(i),o=e.findIndex(e=>e.equals(t));o>=0&&(Ni(o<256,"Max lookup table index exceeded"),n.push(o),r.push(t),this.keyMetaMap.delete(i))}return[n,r]}}const ji="Reached end of buffer unexpectedly";function Li(e){if(0===e.length)throw new Error(ji);return e.shift()}function Fi(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];const[o]=r;if(2===r.length?o+(null!==(t=r[1])&&void 0!==t?t:0)>e.length:o>=e.length)throw new Error(ji);return e.splice(...r)}class Di{constructor(e){this.header=void 0,this.accountKeys=void 0,this.recentBlockhash=void 0,this.instructions=void 0,this.indexToProgramIds=new Map,this.header=e.header,this.accountKeys=e.accountKeys.map(e=>new ki(e)),this.recentBlockhash=e.recentBlockhash,this.instructions=e.instructions,this.instructions.forEach(e=>this.indexToProgramIds.set(e.programIdIndex,this.accountKeys[e.programIdIndex]))}get version(){return"legacy"}get staticAccountKeys(){return this.accountKeys}get compiledInstructions(){return this.instructions.map(e=>({programIdIndex:e.programIdIndex,accountKeyIndexes:e.accounts,data:Yn().decode(e.data)}))}get addressTableLookups(){return[]}getAccountKeys(){return new Ii(this.staticAccountKeys)}static compile(e){const t=Ui.compile(e.instructions,e.payerKey),[n,r]=t.getMessageComponents(),i=new Ii(r).compileInstructions(e.instructions).map(e=>({programIdIndex:e.programIdIndex,accounts:e.accountKeyIndexes,data:Yn().encode(e.data)}));return new Di({header:n,accountKeys:r,recentBlockhash:e.recentBlockhash,instructions:i})}isAccountSigner(e){return e<this.header.numRequiredSignatures}isAccountWritable(e){const t=this.header.numRequiredSignatures;if(e>=this.header.numRequiredSignatures){return e-t<this.accountKeys.length-t-this.header.numReadonlyUnsignedAccounts}return e<t-this.header.numReadonlySignedAccounts}isProgramId(e){return this.indexToProgramIds.has(e)}programIds(){return[...this.indexToProgramIds.values()]}nonProgramIds(){return this.accountKeys.filter((e,t)=>!this.isProgramId(t))}serialize(){const e=this.accountKeys.length;let t=[];Bi(t,e);const n=this.instructions.map(e=>{const{accounts:t,programIdIndex:n}=e,r=Array.from(Yn().decode(e.data));let i=[];Bi(i,t.length);let o=[];return Bi(o,r.length),{programIdIndex:n,keyIndicesCount:$n.Buffer.from(i),keyIndices:t,dataLength:$n.Buffer.from(o),data:r}});let r=[];Bi(r,n.length);let i=$n.Buffer.alloc(Ei);$n.Buffer.from(r).copy(i);let o=r.length;n.forEach(e=>{const t=er.w3([er.u8("programIdIndex"),er.av(e.keyIndicesCount.length,"keyIndicesCount"),er.O6(er.u8("keyIndex"),e.keyIndices.length,"keyIndices"),er.av(e.dataLength.length,"dataLength"),er.O6(er.u8("userdatum"),e.data.length,"data")]).encode(e,i,o);o+=t}),i=i.slice(0,o);const s=er.w3([er.av(1,"numRequiredSignatures"),er.av(1,"numReadonlySignedAccounts"),er.av(1,"numReadonlyUnsignedAccounts"),er.av(t.length,"keyCount"),er.O6(Mi("key"),e,"keys"),Mi("recentBlockhash")]),a={numRequiredSignatures:$n.Buffer.from([this.header.numRequiredSignatures]),numReadonlySignedAccounts:$n.Buffer.from([this.header.numReadonlySignedAccounts]),numReadonlyUnsignedAccounts:$n.Buffer.from([this.header.numReadonlyUnsignedAccounts]),keyCount:$n.Buffer.from(t),keys:this.accountKeys.map(e=>bi(e.toBytes())),recentBlockhash:Yn().decode(this.recentBlockhash)};let c=$n.Buffer.alloc(2048);const l=s.encode(a,c);return i.copy(c,l),c.slice(0,l+i.length)}static from(e){let t=[...e];const n=Li(t);if(n!==(127&n))throw new Error("Versioned messages must be deserialized with VersionedMessage.deserialize()");const r=Li(t),i=Li(t),o=Ri(t);let s=[];for(let d=0;d<o;d++){const e=Fi(t,0,xi);s.push(new ki($n.Buffer.from(e)))}const a=Fi(t,0,xi),c=Ri(t);let l=[];for(let d=0;d<c;d++){const e=Li(t),n=Fi(t,0,Ri(t)),r=Fi(t,0,Ri(t)),i=Yn().encode($n.Buffer.from(r));l.push({programIdIndex:e,accounts:n,data:i})}const u={header:{numRequiredSignatures:n,numReadonlySignedAccounts:r,numReadonlyUnsignedAccounts:i},recentBlockhash:Yn().encode($n.Buffer.from(a)),accountKeys:s,instructions:l};return new Di(u)}}class zi{constructor(e){this.header=void 0,this.staticAccountKeys=void 0,this.recentBlockhash=void 0,this.compiledInstructions=void 0,this.addressTableLookups=void 0,this.header=e.header,this.staticAccountKeys=e.staticAccountKeys,this.recentBlockhash=e.recentBlockhash,this.compiledInstructions=e.compiledInstructions,this.addressTableLookups=e.addressTableLookups}get version(){return 0}get numAccountKeysFromLookups(){let e=0;for(const t of this.addressTableLookups)e+=t.readonlyIndexes.length+t.writableIndexes.length;return e}getAccountKeys(e){let t;if(e&&"accountKeysFromLookups"in e&&e.accountKeysFromLookups){if(this.numAccountKeysFromLookups!=e.accountKeysFromLookups.writable.length+e.accountKeysFromLookups.readonly.length)throw new Error("Failed to get account keys because of a mismatch in the number of account keys from lookups");t=e.accountKeysFromLookups}else if(e&&"addressLookupTableAccounts"in e&&e.addressLookupTableAccounts)t=this.resolveAddressTableLookups(e.addressLookupTableAccounts);else if(this.addressTableLookups.length>0)throw new Error("Failed to get account keys because address table lookups were not resolved");return new Ii(this.staticAccountKeys,t)}isAccountSigner(e){return e<this.header.numRequiredSignatures}isAccountWritable(e){const t=this.header.numRequiredSignatures,n=this.staticAccountKeys.length;if(e>=n){return e-n<this.addressTableLookups.reduce((e,t)=>e+t.writableIndexes.length,0)}if(e>=this.header.numRequiredSignatures){return e-t<n-t-this.header.numReadonlyUnsignedAccounts}return e<t-this.header.numReadonlySignedAccounts}resolveAddressTableLookups(e){const t={writable:[],readonly:[]};for(const n of this.addressTableLookups){const r=e.find(e=>e.key.equals(n.accountKey));if(!r)throw new Error("Failed to find address lookup table account for table key ".concat(n.accountKey.toBase58()));for(const e of n.writableIndexes){if(!(e<r.state.addresses.length))throw new Error("Failed to find address for index ".concat(e," in address lookup table ").concat(n.accountKey.toBase58()));t.writable.push(r.state.addresses[e])}for(const e of n.readonlyIndexes){if(!(e<r.state.addresses.length))throw new Error("Failed to find address for index ".concat(e," in address lookup table ").concat(n.accountKey.toBase58()));t.readonly.push(r.state.addresses[e])}}return t}static compile(e){const t=Ui.compile(e.instructions,e.payerKey),n=new Array,r={writable:new Array,readonly:new Array},i=e.addressLookupTableAccounts||[];for(const c of i){const e=t.extractTableLookup(c);if(void 0!==e){const[t,{writable:i,readonly:o}]=e;n.push(t),r.writable.push(...i),r.readonly.push(...o)}}const[o,s]=t.getMessageComponents(),a=new Ii(s,r).compileInstructions(e.instructions);return new zi({header:o,staticAccountKeys:s,recentBlockhash:e.recentBlockhash,compiledInstructions:a,addressTableLookups:n})}serialize(){const e=Array();Bi(e,this.staticAccountKeys.length);const t=this.serializeInstructions(),n=Array();Bi(n,this.compiledInstructions.length);const r=this.serializeAddressTableLookups(),i=Array();Bi(i,this.addressTableLookups.length);const o=er.w3([er.u8("prefix"),er.w3([er.u8("numRequiredSignatures"),er.u8("numReadonlySignedAccounts"),er.u8("numReadonlyUnsignedAccounts")],"header"),er.av(e.length,"staticAccountKeysLength"),er.O6(Mi(),this.staticAccountKeys.length,"staticAccountKeys"),Mi("recentBlockhash"),er.av(n.length,"instructionsLength"),er.av(t.length,"serializedInstructions"),er.av(i.length,"addressTableLookupsLength"),er.av(r.length,"serializedAddressTableLookups")]),s=new Uint8Array(Ei),a=o.encode({prefix:128,header:this.header,staticAccountKeysLength:new Uint8Array(e),staticAccountKeys:this.staticAccountKeys.map(e=>e.toBytes()),recentBlockhash:Yn().decode(this.recentBlockhash),instructionsLength:new Uint8Array(n),serializedInstructions:t,addressTableLookupsLength:new Uint8Array(i),serializedAddressTableLookups:r},s);return s.slice(0,a)}serializeInstructions(){let e=0;const t=new Uint8Array(Ei);for(const n of this.compiledInstructions){const r=Array();Bi(r,n.accountKeyIndexes.length);const i=Array();Bi(i,n.data.length);e+=er.w3([er.u8("programIdIndex"),er.av(r.length,"encodedAccountKeyIndexesLength"),er.O6(er.u8(),n.accountKeyIndexes.length,"accountKeyIndexes"),er.av(i.length,"encodedDataLength"),er.av(n.data.length,"data")]).encode({programIdIndex:n.programIdIndex,encodedAccountKeyIndexesLength:new Uint8Array(r),accountKeyIndexes:n.accountKeyIndexes,encodedDataLength:new Uint8Array(i),data:n.data},t,e)}return t.slice(0,e)}serializeAddressTableLookups(){let e=0;const t=new Uint8Array(Ei);for(const n of this.addressTableLookups){const r=Array();Bi(r,n.writableIndexes.length);const i=Array();Bi(i,n.readonlyIndexes.length);e+=er.w3([Mi("accountKey"),er.av(r.length,"encodedWritableIndexesLength"),er.O6(er.u8(),n.writableIndexes.length,"writableIndexes"),er.av(i.length,"encodedReadonlyIndexesLength"),er.O6(er.u8(),n.readonlyIndexes.length,"readonlyIndexes")]).encode({accountKey:n.accountKey.toBytes(),encodedWritableIndexesLength:new Uint8Array(r),writableIndexes:n.writableIndexes,encodedReadonlyIndexesLength:new Uint8Array(i),readonlyIndexes:n.readonlyIndexes},t,e)}return t.slice(0,e)}static deserialize(e){let t=[...e];const n=Li(t),r=127&n;Ni(n!==r,"Expected versioned message but received legacy message");Ni(0===r,"Expected versioned message with version 0 but found version ".concat(r));const i={numRequiredSignatures:Li(t),numReadonlySignedAccounts:Li(t),numReadonlyUnsignedAccounts:Li(t)},o=[],s=Ri(t);for(let h=0;h<s;h++)o.push(new ki(Fi(t,0,xi)));const a=Yn().encode(Fi(t,0,xi)),c=Ri(t),l=[];for(let h=0;h<c;h++){const e=Li(t),n=Fi(t,0,Ri(t)),r=Ri(t),i=new Uint8Array(Fi(t,0,r));l.push({programIdIndex:e,accountKeyIndexes:n,data:i})}const u=Ri(t),d=[];for(let h=0;h<u;h++){const e=new ki(Fi(t,0,xi)),n=Fi(t,0,Ri(t)),r=Fi(t,0,Ri(t));d.push({accountKey:e,writableIndexes:n,readonlyIndexes:r})}return new zi({header:i,staticAccountKeys:o,recentBlockhash:a,compiledInstructions:l,addressTableLookups:d})}}let qi=function(e){return e[e.BLOCKHEIGHT_EXCEEDED=0]="BLOCKHEIGHT_EXCEEDED",e[e.PROCESSED=1]="PROCESSED",e[e.TIMED_OUT=2]="TIMED_OUT",e[e.NONCE_INVALID=3]="NONCE_INVALID",e}({});const Hi=$n.Buffer.alloc(64).fill(0);class Wi{constructor(e){this.keys=void 0,this.programId=void 0,this.data=$n.Buffer.alloc(0),this.programId=e.programId,this.keys=e.keys,e.data&&(this.data=e.data)}toJSON(){return{keys:this.keys.map(e=>{let{pubkey:t,isSigner:n,isWritable:r}=e;return{pubkey:t.toJSON(),isSigner:n,isWritable:r}}),programId:this.programId.toJSON(),data:[...this.data]}}}class Ki{get signature(){return this.signatures.length>0?this.signatures[0].signature:null}constructor(e){if(this.signatures=[],this.feePayer=void 0,this.instructions=[],this.recentBlockhash=void 0,this.lastValidBlockHeight=void 0,this.nonceInfo=void 0,this.minNonceContextSlot=void 0,this._message=void 0,this._json=void 0,e)if(e.feePayer&&(this.feePayer=e.feePayer),e.signatures&&(this.signatures=e.signatures),Object.prototype.hasOwnProperty.call(e,"nonceInfo")){const{minContextSlot:t,nonceInfo:n}=e;this.minNonceContextSlot=t,this.nonceInfo=n}else if(Object.prototype.hasOwnProperty.call(e,"lastValidBlockHeight")){const{blockhash:t,lastValidBlockHeight:n}=e;this.recentBlockhash=t,this.lastValidBlockHeight=n}else{const{recentBlockhash:t,nonceInfo:n}=e;n&&(this.nonceInfo=n),this.recentBlockhash=t}}toJSON(){return{recentBlockhash:this.recentBlockhash||null,feePayer:this.feePayer?this.feePayer.toJSON():null,nonceInfo:this.nonceInfo?{nonce:this.nonceInfo.nonce,nonceInstruction:this.nonceInfo.nonceInstruction.toJSON()}:null,instructions:this.instructions.map(e=>e.toJSON()),signers:this.signatures.map(e=>{let{publicKey:t}=e;return t.toJSON()})}}add(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0===t.length)throw new Error("No instructions");return t.forEach(e=>{"instructions"in e?this.instructions=this.instructions.concat(e.instructions):"data"in e&&"programId"in e&&"keys"in e?this.instructions.push(e):this.instructions.push(new Wi(e))}),this}compileMessage(){if(this._message&&JSON.stringify(this.toJSON())===JSON.stringify(this._json))return this._message;let e,t,n;if(this.nonceInfo?(e=this.nonceInfo.nonce,t=this.instructions[0]!=this.nonceInfo.nonceInstruction?[this.nonceInfo.nonceInstruction,...this.instructions]:this.instructions):(e=this.recentBlockhash,t=this.instructions),!e)throw new Error("Transaction recentBlockhash required");if(t.length<1&&console.warn("No instructions provided"),this.feePayer)n=this.feePayer;else{if(!(this.signatures.length>0&&this.signatures[0].publicKey))throw new Error("Transaction fee payer required");n=this.signatures[0].publicKey}for(let a=0;a<t.length;a++)if(void 0===t[a].programId)throw new Error("Transaction instruction index ".concat(a," has undefined program id"));const r=[],i=[];t.forEach(e=>{e.keys.forEach(e=>{i.push((0,a.A)({},e))});const t=e.programId.toString();r.includes(t)||r.push(t)}),r.forEach(e=>{i.push({pubkey:new ki(e),isSigner:!1,isWritable:!1})});const o=[];i.forEach(e=>{const t=e.pubkey.toString(),n=o.findIndex(e=>e.pubkey.toString()===t);n>-1?(o[n].isWritable=o[n].isWritable||e.isWritable,o[n].isSigner=o[n].isSigner||e.isSigner):o.push(e)}),o.sort(function(e,t){if(e.isSigner!==t.isSigner)return e.isSigner?-1:1;if(e.isWritable!==t.isWritable)return e.isWritable?-1:1;return e.pubkey.toBase58().localeCompare(t.pubkey.toBase58(),"en",{localeMatcher:"best fit",usage:"sort",sensitivity:"variant",ignorePunctuation:!1,numeric:!1,caseFirst:"lower"})});const s=o.findIndex(e=>e.pubkey.equals(n));if(s>-1){const[e]=o.splice(s,1);e.isSigner=!0,e.isWritable=!0,o.unshift(e)}else o.unshift({pubkey:n,isSigner:!0,isWritable:!0});for(const a of this.signatures){const e=o.findIndex(e=>e.pubkey.equals(a.publicKey));if(!(e>-1))throw new Error("unknown signer: ".concat(a.publicKey.toString()));o[e].isSigner||(o[e].isSigner=!0,console.warn("Transaction references a signature that is unnecessary, only the fee payer and instruction signer accounts should sign a transaction. This behavior is deprecated and will throw an error in the next major version release."))}let c=0,l=0,u=0;const d=[],h=[];o.forEach(e=>{let{pubkey:t,isSigner:n,isWritable:r}=e;n?(d.push(t.toString()),c+=1,r||(l+=1)):(h.push(t.toString()),r||(u+=1))});const f=d.concat(h),p=t.map(e=>{const{data:t,programId:n}=e;return{programIdIndex:f.indexOf(n.toString()),accounts:e.keys.map(e=>f.indexOf(e.pubkey.toString())),data:Yn().encode(t)}});return p.forEach(e=>{Ni(e.programIdIndex>=0),e.accounts.forEach(e=>Ni(e>=0))}),new Di({header:{numRequiredSignatures:c,numReadonlySignedAccounts:l,numReadonlyUnsignedAccounts:u},accountKeys:f,recentBlockhash:e,instructions:p})}_compile(){const e=this.compileMessage(),t=e.accountKeys.slice(0,e.header.numRequiredSignatures);if(this.signatures.length===t.length){const n=this.signatures.every((e,n)=>t[n].equals(e.publicKey));if(n)return e}return this.signatures=t.map(e=>({signature:null,publicKey:e})),e}serializeMessage(){return this._compile().serialize()}async getEstimatedFee(e){return(await e.getFeeForMessage(this.compileMessage())).value}setSigners(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0===t.length)throw new Error("No signers");const r=new Set;this.signatures=t.filter(e=>{const t=e.toString();return!r.has(t)&&(r.add(t),!0)}).map(e=>({signature:null,publicKey:e}))}sign(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0===t.length)throw new Error("No signers");const r=new Set,i=[];for(const s of t){const e=s.publicKey.toString();r.has(e)||(r.add(e),i.push(s))}this.signatures=i.map(e=>({signature:null,publicKey:e.publicKey}));const o=this._compile();this._partialSign(o,...i)}partialSign(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0===t.length)throw new Error("No signers");const r=new Set,i=[];for(const s of t){const e=s.publicKey.toString();r.has(e)||(r.add(e),i.push(s))}const o=this._compile();this._partialSign(o,...i)}_partialSign(e){const t=e.serialize();for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];r.forEach(e=>{const n=gi(t,e.secretKey);this._addSignature(e.publicKey,bi(n))})}addSignature(e,t){this._compile(),this._addSignature(e,t)}_addSignature(e,t){Ni(64===t.length);const n=this.signatures.findIndex(t=>e.equals(t.publicKey));if(n<0)throw new Error("unknown signer: ".concat(e.toString()));this.signatures[n].signature=$n.Buffer.from(t)}verifySignatures(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return!this._getMessageSignednessErrors(this.serializeMessage(),e)}_getMessageSignednessErrors(e,t){const n={};for(const{signature:r,publicKey:i}of this.signatures)null===r?t&&(n.missing||(n.missing=[])).push(i):yi(r,e,i.toBytes())||(n.invalid||(n.invalid=[])).push(i);return n.invalid||n.missing?n:void 0}serialize(e){const{requireAllSignatures:t,verifySignatures:n}=Object.assign({requireAllSignatures:!0,verifySignatures:!0},e),r=this.serializeMessage();if(n){const e=this._getMessageSignednessErrors(r,t);if(e){let t="Signature verification failed.";throw e.invalid&&(t+="\nInvalid signature for public key".concat(1===e.invalid.length?"":"(s)"," [`").concat(e.invalid.map(e=>e.toBase58()).join("`, `"),"`].")),e.missing&&(t+="\nMissing signature for public key".concat(1===e.missing.length?"":"(s)"," [`").concat(e.missing.map(e=>e.toBase58()).join("`, `"),"`].")),new Error(t)}}return this._serialize(r)}_serialize(e){const{signatures:t}=this,n=[];Bi(n,t.length);const r=n.length+64*t.length+e.length,i=$n.Buffer.alloc(r);return Ni(t.length<256),$n.Buffer.from(n).copy(i,0),t.forEach((e,t)=>{let{signature:r}=e;null!==r&&(Ni(64===r.length,"signature has invalid length"),$n.Buffer.from(r).copy(i,n.length+64*t))}),e.copy(i,n.length+64*t.length),Ni(i.length<=Ei,"Transaction too large: ".concat(i.length," > ").concat(Ei)),i}get keys(){return Ni(1===this.instructions.length),this.instructions[0].keys.map(e=>e.pubkey)}get programId(){return Ni(1===this.instructions.length),this.instructions[0].programId}get data(){return Ni(1===this.instructions.length),this.instructions[0].data}static from(e){let t=[...e];const n=Ri(t);let r=[];for(let i=0;i<n;i++){const e=Fi(t,0,64);r.push(Yn().encode($n.Buffer.from(e)))}return Ki.populate(Di.from(t),r)}static populate(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=new Ki;return n.recentBlockhash=e.recentBlockhash,e.header.numRequiredSignatures>0&&(n.feePayer=e.accountKeys[0]),t.forEach((t,r)=>{const i={signature:t==Yn().encode(Hi)?null:Yn().decode(t),publicKey:e.accountKeys[r]};n.signatures.push(i)}),e.instructions.forEach(t=>{const r=t.accounts.map(t=>{const r=e.accountKeys[t];return{pubkey:r,isSigner:n.signatures.some(e=>e.publicKey.toString()===r.toString())||e.isAccountSigner(t),isWritable:e.isAccountWritable(t)}});n.instructions.push(new Wi({keys:r,programId:e.accountKeys[t.programIdIndex],data:Yn().decode(t.data)}))}),n._message=e,n._json=n.toJSON(),n}}const $i=new ki("SysvarC1ock11111111111111111111111111111111"),Vi=(new ki("SysvarEpochSchedu1e111111111111111111111111"),new ki("Sysvar1nstructions1111111111111111111111111"),new ki("SysvarRecentB1ockHashes11111111111111111111")),Gi=new ki("SysvarRent111111111111111111111111111111111"),Ji=(new ki("SysvarRewards111111111111111111111111111111"),new ki("SysvarS1otHashes111111111111111111111111111"),new ki("SysvarS1otHistory11111111111111111111111111"),new ki("SysvarStakeHistory1111111111111111111111111"));class Zi extends Error{constructor(e){let{action:t,signature:n,transactionMessage:r,logs:i}=e;const o=i?"Logs: \n".concat(JSON.stringify(i.slice(-10),null,2),". "):"",s="\nCatch the `SendTransactionError` and call `getLogs()` on it for full details.";let a;switch(t){case"send":a="Transaction ".concat(n," resulted in an error. \n")+"".concat(r,". ")+o+s;break;case"simulate":a="Simulation failed. \nMessage: ".concat(r,". \n")+o+s;break;default:a="Unknown action '".concat(t,"'")}super(a),this.signature=void 0,this.transactionMessage=void 0,this.transactionLogs=void 0,this.signature=n,this.transactionMessage=r,this.transactionLogs=i||void 0}get transactionError(){return{message:this.transactionMessage,logs:Array.isArray(this.transactionLogs)?this.transactionLogs:void 0}}get logs(){const e=this.transactionLogs;if(null==e||"object"!==typeof e||!("then"in e))return e}async getLogs(e){return Array.isArray(this.transactionLogs)||(this.transactionLogs=new Promise((t,n)=>{e.getTransaction(this.signature).then(e=>{if(e&&e.meta&&e.meta.logMessages){const n=e.meta.logMessages;this.transactionLogs=n,t(n)}else n(new Error("Log messages not found"))}).catch(n)})),await this.transactionLogs}}class Yi extends Error{constructor(e,t){let{code:n,message:r,data:i}=e;super(null!=t?"".concat(t,": ").concat(r):r),this.code=void 0,this.data=void 0,this.code=n,this.data=i,this.name="SolanaJSONRPCError"}}async function Qi(e,t,n,r){const i=r&&{skipPreflight:r.skipPreflight,preflightCommitment:r.preflightCommitment||r.commitment,maxRetries:r.maxRetries,minContextSlot:r.minContextSlot},o=await e.sendTransaction(t,n,i);let s;if(null!=t.recentBlockhash&&null!=t.lastValidBlockHeight)s=(await e.confirmTransaction({abortSignal:null===r||void 0===r?void 0:r.abortSignal,signature:o,blockhash:t.recentBlockhash,lastValidBlockHeight:t.lastValidBlockHeight},r&&r.commitment)).value;else if(null!=t.minNonceContextSlot&&null!=t.nonceInfo){const{nonceInstruction:n}=t.nonceInfo,i=n.keys[0].pubkey;s=(await e.confirmTransaction({abortSignal:null===r||void 0===r?void 0:r.abortSignal,minContextSlot:t.minNonceContextSlot,nonceAccountPubkey:i,nonceValue:t.nonceInfo.nonce,signature:o},r&&r.commitment)).value}else null!=(null===r||void 0===r?void 0:r.abortSignal)&&console.warn("sendAndConfirmTransaction(): A transaction with a deprecated confirmation strategy was supplied along with an `abortSignal`. Only transactions having `lastValidBlockHeight` or a combination of `nonceInfo` and `minNonceContextSlot` are abortable."),s=(await e.confirmTransaction(o,r&&r.commitment)).value;if(s.err){if(null!=o)throw new Zi({action:"send",signature:o,transactionMessage:"Status: (".concat(JSON.stringify(s),")")});throw new Error("Transaction ".concat(o," failed (").concat(JSON.stringify(s),")"))}return o}function Xi(e){return new Promise(t=>setTimeout(t,e))}function eo(e,t){const n=e.layout.span>=0?e.layout.span:Oi(e,t),r=$n.Buffer.alloc(n),i=Object.assign({instruction:e.index},t);return e.layout.encode(i,r),r}const to=er.I0("lamportsPerSignature"),no=er.w3([er.DH("version"),er.DH("state"),Mi("authorizedPubkey"),Mi("nonce"),er.w3([to],"feeCalculator")]),ro=no.span;class io{constructor(e){this.authorizedPubkey=void 0,this.nonce=void 0,this.feeCalculator=void 0,this.authorizedPubkey=e.authorizedPubkey,this.nonce=e.nonce,this.feeCalculator=e.feeCalculator}static fromAccountData(e){const t=no.decode(bi(e),0);return new io({authorizedPubkey:new ki(t.authorizedPubkey),nonce:new ki(t.nonce).toString(),feeCalculator:t.feeCalculator})}}function oo(e){const t=(0,er.av)(8,e),n=t.decode.bind(t),r=t.encode.bind(t),i=t,o=kr();return i.decode=(e,t)=>{const r=n(e,t);return o.decode(r)},i.encode=(e,t,n)=>{const i=o.encode(e);return r(i,t,n)},i}const so=Object.freeze({Create:{index:0,layout:er.w3([er.DH("instruction"),er.Wg("lamports"),er.Wg("space"),Mi("programId")])},Assign:{index:1,layout:er.w3([er.DH("instruction"),Mi("programId")])},Transfer:{index:2,layout:er.w3([er.DH("instruction"),oo("lamports")])},CreateWithSeed:{index:3,layout:er.w3([er.DH("instruction"),Mi("base"),Ti("seed"),er.Wg("lamports"),er.Wg("space"),Mi("programId")])},AdvanceNonceAccount:{index:4,layout:er.w3([er.DH("instruction")])},WithdrawNonceAccount:{index:5,layout:er.w3([er.DH("instruction"),er.Wg("lamports")])},InitializeNonceAccount:{index:6,layout:er.w3([er.DH("instruction"),Mi("authorized")])},AuthorizeNonceAccount:{index:7,layout:er.w3([er.DH("instruction"),Mi("authorized")])},Allocate:{index:8,layout:er.w3([er.DH("instruction"),er.Wg("space")])},AllocateWithSeed:{index:9,layout:er.w3([er.DH("instruction"),Mi("base"),Ti("seed"),er.Wg("space"),Mi("programId")])},AssignWithSeed:{index:10,layout:er.w3([er.DH("instruction"),Mi("base"),Ti("seed"),Mi("programId")])},TransferWithSeed:{index:11,layout:er.w3([er.DH("instruction"),oo("lamports"),Ti("seed"),Mi("programId")])},UpgradeNonceAccount:{index:12,layout:er.w3([er.DH("instruction")])}});class ao{constructor(){}static createAccount(e){const t=eo(so.Create,{lamports:e.lamports,space:e.space,programId:bi(e.programId.toBuffer())});return new Wi({keys:[{pubkey:e.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:e.newAccountPubkey,isSigner:!0,isWritable:!0}],programId:this.programId,data:t})}static transfer(e){let t,n;if("basePubkey"in e){t=eo(so.TransferWithSeed,{lamports:BigInt(e.lamports),seed:e.seed,programId:bi(e.programId.toBuffer())}),n=[{pubkey:e.fromPubkey,isSigner:!1,isWritable:!0},{pubkey:e.basePubkey,isSigner:!0,isWritable:!1},{pubkey:e.toPubkey,isSigner:!1,isWritable:!0}]}else{t=eo(so.Transfer,{lamports:BigInt(e.lamports)}),n=[{pubkey:e.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:e.toPubkey,isSigner:!1,isWritable:!0}]}return new Wi({keys:n,programId:this.programId,data:t})}static assign(e){let t,n;if("basePubkey"in e){t=eo(so.AssignWithSeed,{base:bi(e.basePubkey.toBuffer()),seed:e.seed,programId:bi(e.programId.toBuffer())}),n=[{pubkey:e.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:e.basePubkey,isSigner:!0,isWritable:!1}]}else{t=eo(so.Assign,{programId:bi(e.programId.toBuffer())}),n=[{pubkey:e.accountPubkey,isSigner:!0,isWritable:!0}]}return new Wi({keys:n,programId:this.programId,data:t})}static createAccountWithSeed(e){const t=eo(so.CreateWithSeed,{base:bi(e.basePubkey.toBuffer()),seed:e.seed,lamports:e.lamports,space:e.space,programId:bi(e.programId.toBuffer())});let n=[{pubkey:e.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:e.newAccountPubkey,isSigner:!1,isWritable:!0}];return e.basePubkey.equals(e.fromPubkey)||n.push({pubkey:e.basePubkey,isSigner:!0,isWritable:!1}),new Wi({keys:n,programId:this.programId,data:t})}static createNonceAccount(e){const t=new Ki;"basePubkey"in e&&"seed"in e?t.add(ao.createAccountWithSeed({fromPubkey:e.fromPubkey,newAccountPubkey:e.noncePubkey,basePubkey:e.basePubkey,seed:e.seed,lamports:e.lamports,space:ro,programId:this.programId})):t.add(ao.createAccount({fromPubkey:e.fromPubkey,newAccountPubkey:e.noncePubkey,lamports:e.lamports,space:ro,programId:this.programId}));const n={noncePubkey:e.noncePubkey,authorizedPubkey:e.authorizedPubkey};return t.add(this.nonceInitialize(n)),t}static nonceInitialize(e){const t=eo(so.InitializeNonceAccount,{authorized:bi(e.authorizedPubkey.toBuffer())}),n={keys:[{pubkey:e.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:Vi,isSigner:!1,isWritable:!1},{pubkey:Gi,isSigner:!1,isWritable:!1}],programId:this.programId,data:t};return new Wi(n)}static nonceAdvance(e){const t=eo(so.AdvanceNonceAccount),n={keys:[{pubkey:e.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:Vi,isSigner:!1,isWritable:!1},{pubkey:e.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:t};return new Wi(n)}static nonceWithdraw(e){const t=eo(so.WithdrawNonceAccount,{lamports:e.lamports});return new Wi({keys:[{pubkey:e.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:e.toPubkey,isSigner:!1,isWritable:!0},{pubkey:Vi,isSigner:!1,isWritable:!1},{pubkey:Gi,isSigner:!1,isWritable:!1},{pubkey:e.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:t})}static nonceAuthorize(e){const t=eo(so.AuthorizeNonceAccount,{authorized:bi(e.newAuthorizedPubkey.toBuffer())});return new Wi({keys:[{pubkey:e.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:e.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:t})}static allocate(e){let t,n;if("basePubkey"in e){t=eo(so.AllocateWithSeed,{base:bi(e.basePubkey.toBuffer()),seed:e.seed,space:e.space,programId:bi(e.programId.toBuffer())}),n=[{pubkey:e.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:e.basePubkey,isSigner:!0,isWritable:!1}]}else{t=eo(so.Allocate,{space:e.space}),n=[{pubkey:e.accountPubkey,isSigner:!0,isWritable:!0}]}return new Wi({keys:n,programId:this.programId,data:t})}}ao.programId=new ki("11111111111111111111111111111111");class co{constructor(){}static getMinNumSignatures(e){return 2*(Math.ceil(e/co.chunkSize)+1+1)}static async load(e,t,n,r,i){{const o=await e.getMinimumBalanceForRentExemption(i.length),s=await e.getAccountInfo(n.publicKey,"confirmed");let a=null;if(null!==s){if(s.executable)return console.error("Program load failed, account is already executable"),!1;s.data.length!==i.length&&(a=a||new Ki,a.add(ao.allocate({accountPubkey:n.publicKey,space:i.length}))),s.owner.equals(r)||(a=a||new Ki,a.add(ao.assign({accountPubkey:n.publicKey,programId:r}))),s.lamports<o&&(a=a||new Ki,a.add(ao.transfer({fromPubkey:t.publicKey,toPubkey:n.publicKey,lamports:o-s.lamports})))}else a=(new Ki).add(ao.createAccount({fromPubkey:t.publicKey,newAccountPubkey:n.publicKey,lamports:o>0?o:1,space:i.length,programId:r}));null!==a&&await Qi(e,a,[t,n],{commitment:"confirmed"})}const o=er.w3([er.DH("instruction"),er.DH("offset"),er.DH("bytesLength"),er.DH("bytesLengthPadding"),er.O6(er.u8("byte"),er.cY(er.DH(),-8),"bytes")]),s=co.chunkSize;let a=0,c=i,l=[];for(;c.length>0;){const i=c.slice(0,s),u=$n.Buffer.alloc(s+16);o.encode({instruction:0,offset:a,bytes:i,bytesLength:0,bytesLengthPadding:0},u);const d=(new Ki).add({keys:[{pubkey:n.publicKey,isSigner:!0,isWritable:!0}],programId:r,data:u});if(l.push(Qi(e,d,[t,n],{commitment:"confirmed"})),e._rpcEndpoint.includes("solana.com")){const e=4;await Xi(1e3/e)}a+=s,c=c.slice(s)}await Promise.all(l);{const i=er.w3([er.DH("instruction")]),o=$n.Buffer.alloc(i.span);i.encode({instruction:1},o);const s=(new Ki).add({keys:[{pubkey:n.publicKey,isSigner:!0,isWritable:!0},{pubkey:Gi,isSigner:!1,isWritable:!1}],programId:r,data:o}),a="processed",c=await e.sendTransaction(s,[t,n],{preflightCommitment:a}),{context:l,value:d}=await e.confirmTransaction({signature:c,lastValidBlockHeight:s.lastValidBlockHeight,blockhash:s.recentBlockhash},a);if(d.err)throw new Error("Transaction ".concat(c," failed (").concat(JSON.stringify(d),")"));for(;;){try{if(await e.getSlot({commitment:a})>l.slot)break}catch(u){}await new Promise(e=>setTimeout(e,Math.round(200)))}}return!0}}co.chunkSize=932;new ki("BPFLoader2111111111111111111111111111111111");function lo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var uo,ho;function fo(){if(ho)return uo;ho=1;var e=Object.prototype.toString,t=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};function n(r,i){var o,s,a,c,l,u,d;if(!0===r)return"true";if(!1===r)return"false";switch(typeof r){case"object":if(null===r)return null;if(r.toJSON&&"function"===typeof r.toJSON)return n(r.toJSON(),i);if("[object Array]"===(d=e.call(r))){for(a="[",s=r.length-1,o=0;o<s;o++)a+=n(r[o],!0)+",";return s>-1&&(a+=n(r[o],!0)),a+"]"}if("[object Object]"===d){for(s=(c=t(r).sort()).length,a="",o=0;o<s;)void 0!==(u=n(r[l=c[o]],!1))&&(a&&(a+=","),a+=JSON.stringify(l)+":"+u),o++;return"{"+a+"}"}return JSON.stringify(r);case"function":case"undefined":return i?null:void 0;case"string":return JSON.stringify(r);default:return isFinite(r)?r:null}}return uo=function(e){var t=n(e,!1);if(void 0!==t)return""+t}}var po=lo(fo());function mo(e){let t=0;for(;e>1;)e/=2,t++;return t}class go{constructor(e,t,n,r,i){this.slotsPerEpoch=void 0,this.leaderScheduleSlotOffset=void 0,this.warmup=void 0,this.firstNormalEpoch=void 0,this.firstNormalSlot=void 0,this.slotsPerEpoch=e,this.leaderScheduleSlotOffset=t,this.warmup=n,this.firstNormalEpoch=r,this.firstNormalSlot=i}getEpoch(e){return this.getEpochAndSlotIndex(e)[0]}getEpochAndSlotIndex(e){if(e<this.firstNormalSlot){const n=mo(0===(t=e+32+1)?1:(t--,t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,1+(t|=t>>32)))-mo(32)-1;return[n,e-(this.getSlotsInEpoch(n)-32)]}{const t=e-this.firstNormalSlot,n=Math.floor(t/this.slotsPerEpoch);return[this.firstNormalEpoch+n,t%this.slotsPerEpoch]}var t}getFirstSlotInEpoch(e){return e<=this.firstNormalEpoch?32*(Math.pow(2,e)-1):(e-this.firstNormalEpoch)*this.slotsPerEpoch+this.firstNormalSlot}getLastSlotInEpoch(e){return this.getFirstSlotInEpoch(e)+this.getSlotsInEpoch(e)-1}getSlotsInEpoch(e){return e<this.firstNormalEpoch?Math.pow(2,e+mo(32)):this.slotsPerEpoch}}var yo=globalThis.fetch;class bo extends si{constructor(e,t,n){super(e=>{const n=ii(e,(0,a.A)({autoconnect:!0,max_reconnects:5,reconnect:!0,reconnect_interval:1e3},t));return this.underlyingSocket="socket"in n?n.socket:n,n},e,t,n),this.underlyingSocket=void 0}call(){var e;const t=null===(e=this.underlyingSocket)||void 0===e?void 0:e.readyState;return 1===t?super.call(...arguments):Promise.reject(new Error("Tried to call a JSON-RPC method `"+(arguments.length<=0?void 0:arguments[0])+"` but the socket was not `CONNECTING` or `OPEN` (`readyState` was "+t+")"))}notify(){var e;const t=null===(e=this.underlyingSocket)||void 0===e?void 0:e.readyState;return 1===t?super.notify(...arguments):Promise.reject(new Error("Tried to send a JSON-RPC notification `"+(arguments.length<=0?void 0:arguments[0])+"` but the socket was not `CONNECTING` or `OPEN` (`readyState` was "+t+")"))}}class vo{constructor(e){this.key=void 0,this.state=void 0,this.key=e.key,this.state=e.state}isActive(){const e=BigInt("0xffffffffffffffff");return this.state.deactivationSlot===e}static deserialize(e){const t=function(e,t){let n;try{n=e.layout.decode(t)}catch(r){throw new Error("invalid instruction; "+r)}if(n.typeIndex!==e.index)throw new Error("invalid account data; account type mismatch ".concat(n.typeIndex," != ").concat(e.index));return n}(wo,e),n=e.length-56;Ni(n>=0,"lookup table is invalid"),Ni(n%32===0,"lookup table is invalid");const r=n/32,{addresses:i}=er.w3([er.O6(Mi(),r,"addresses")]).decode(e.slice(56));return{deactivationSlot:t.deactivationSlot,lastExtendedSlot:t.lastExtendedSlot,lastExtendedSlotStartIndex:t.lastExtendedStartIndex,authority:0!==t.authority.length?new ki(t.authority[0]):void 0,addresses:i.map(e=>new ki(e))}}}const wo={index:1,layout:er.w3([er.DH("typeIndex"),oo("deactivationSlot"),er.I0("lastExtendedSlot"),er.u8("lastExtendedStartIndex"),er.u8(),er.O6(Mi(),er.cY(er.u8(),-1),"authority")])},_o=/^[^:]+:\/\/([^:[]+|\[[^\]]+\])(:\d+)?(.*)/i;const xo=Qr(Dr(ki),Vr(),e=>new ki(e)),Ao=Gr([Vr(),zr("base64")]),ko=Qr(Dr($n.Buffer),Ao,e=>$n.Buffer.from(e[0],"base64"));function Eo(e){let t,n;if("string"===typeof e)t=e;else if(e){const{commitment:r}=e;t=r,n=(0,qe.A)(e,li)}return{commitment:t,config:n}}function So(e){return e.map(e=>{var t;return"memcmp"in e?(0,a.A)((0,a.A)({},e),{},{memcmp:(0,a.A)((0,a.A)({},e.memcmp),{},{encoding:null!==(t=e.memcmp.encoding)&&void 0!==t?t:"base58"})}):e})}function Po(e){return Zr([Jr({jsonrpc:zr("2.0"),id:Vr(),result:e}),Jr({jsonrpc:zr("2.0"),id:Vr(),error:Jr({code:Yr(),message:Vr(),data:Kr(jr("any",()=>!0))})})])}const Co=Po(Yr());function Io(e){return Qr(Po(e),Co,t=>"error"in t?t:(0,a.A)((0,a.A)({},t),{},{result:Br(t.result,e)}))}function Mo(e){return Io(Jr({context:Jr({slot:Wr()}),value:e}))}function To(e){return Jr({context:Jr({slot:Wr()}),value:e})}function Oo(e,t){return 0===e?new zi({header:t.header,staticAccountKeys:t.accountKeys.map(e=>new ki(e)),recentBlockhash:t.recentBlockhash,compiledInstructions:t.instructions.map(e=>({programIdIndex:e.programIdIndex,accountKeyIndexes:e.accounts,data:Yn().decode(e.data)})),addressTableLookups:t.addressTableLookups}):new Di(t)}const Ro=Jr({foundation:Wr(),foundationTerm:Wr(),initial:Wr(),taper:Wr(),terminal:Wr()}),Bo=Io(Lr(Hr(Jr({epoch:Wr(),effectiveSlot:Wr(),amount:Wr(),postBalance:Wr(),commission:Kr(Hr(Wr()))})))),No=Lr(Jr({slot:Wr(),prioritizationFee:Wr()})),Uo=Jr({total:Wr(),validator:Wr(),foundation:Wr(),epoch:Wr()}),jo=Jr({epoch:Wr(),slotIndex:Wr(),slotsInEpoch:Wr(),absoluteSlot:Wr(),blockHeight:Kr(Wr()),transactionCount:Kr(Wr())}),Lo=Jr({slotsPerEpoch:Wr(),leaderScheduleSlotOffset:Wr(),warmup:Fr(),firstNormalEpoch:Wr(),firstNormalSlot:Wr()}),Fo=$r(Vr(),Lr(Wr())),Do=Hr(Zr([Jr({}),Vr()])),zo=Jr({err:Do}),qo=zr("receivedSignature"),Ho=Jr({"solana-core":Vr(),"feature-set":Kr(Wr())}),Wo=Jr({program:Vr(),programId:xo,parsed:Yr()}),Ko=Jr({programId:xo,accounts:Lr(xo),data:Vr()}),$o=Mo(Jr({err:Hr(Zr([Jr({}),Vr()])),logs:Hr(Lr(Vr())),accounts:Kr(Hr(Lr(Hr(Jr({executable:Fr(),owner:Vr(),lamports:Wr(),data:Lr(Vr()),rentEpoch:Kr(Wr())}))))),unitsConsumed:Kr(Wr()),returnData:Kr(Hr(Jr({programId:Vr(),data:Gr([Vr(),zr("base64")])}))),innerInstructions:Kr(Hr(Lr(Jr({index:Wr(),instructions:Lr(Zr([Wo,Ko]))}))))})),Vo=Mo(Jr({byIdentity:$r(Vr(),Lr(Wr())),range:Jr({firstSlot:Wr(),lastSlot:Wr()})}));const Go=Io(Ro),Jo=Io(Uo),Zo=Io(No),Yo=Io(jo),Qo=Io(Lo),Xo=Io(Fo),es=Io(Wr()),ts=Mo(Jr({total:Wr(),circulating:Wr(),nonCirculating:Wr(),nonCirculatingAccounts:Lr(xo)})),ns=Jr({amount:Vr(),uiAmount:Hr(Wr()),decimals:Wr(),uiAmountString:Kr(Vr())}),rs=Mo(Lr(Jr({address:xo,amount:Vr(),uiAmount:Hr(Wr()),decimals:Wr(),uiAmountString:Kr(Vr())}))),is=Mo(Lr(Jr({pubkey:xo,account:Jr({executable:Fr(),owner:xo,lamports:Wr(),data:ko,rentEpoch:Wr()})}))),os=Jr({program:Vr(),parsed:Yr(),space:Wr()}),ss=Mo(Lr(Jr({pubkey:xo,account:Jr({executable:Fr(),owner:xo,lamports:Wr(),data:os,rentEpoch:Wr()})}))),as=Mo(Lr(Jr({lamports:Wr(),address:xo}))),cs=Jr({executable:Fr(),owner:xo,lamports:Wr(),data:ko,rentEpoch:Wr()}),ls=Jr({pubkey:xo,account:cs}),us=Qr(Zr([Dr($n.Buffer),os]),Zr([Ao,os]),e=>Array.isArray(e)?Br(e,ko):e),ds=Jr({executable:Fr(),owner:xo,lamports:Wr(),data:us,rentEpoch:Wr()}),hs=Jr({pubkey:xo,account:ds}),fs=Jr({state:Zr([zr("active"),zr("inactive"),zr("activating"),zr("deactivating")]),active:Wr(),inactive:Wr()}),ps=Io(Lr(Jr({signature:Vr(),slot:Wr(),err:Do,memo:Hr(Vr()),blockTime:Kr(Hr(Wr()))}))),ms=Io(Lr(Jr({signature:Vr(),slot:Wr(),err:Do,memo:Hr(Vr()),blockTime:Kr(Hr(Wr()))}))),gs=Jr({subscription:Wr(),result:To(cs)}),ys=Jr({pubkey:xo,account:cs}),bs=Jr({subscription:Wr(),result:To(ys)}),vs=Jr({parent:Wr(),slot:Wr(),root:Wr()}),ws=Jr({subscription:Wr(),result:vs}),_s=Zr([Jr({type:Zr([zr("firstShredReceived"),zr("completed"),zr("optimisticConfirmation"),zr("root")]),slot:Wr(),timestamp:Wr()}),Jr({type:zr("createdBank"),parent:Wr(),slot:Wr(),timestamp:Wr()}),Jr({type:zr("frozen"),slot:Wr(),timestamp:Wr(),stats:Jr({numTransactionEntries:Wr(),numSuccessfulTransactions:Wr(),numFailedTransactions:Wr(),maxTransactionsPerEntry:Wr()})}),Jr({type:zr("dead"),slot:Wr(),timestamp:Wr(),err:Vr()})]),xs=Jr({subscription:Wr(),result:_s}),As=Jr({subscription:Wr(),result:To(Zr([zo,qo]))}),ks=Jr({subscription:Wr(),result:Wr()}),Es=Jr({pubkey:Vr(),gossip:Hr(Vr()),tpu:Hr(Vr()),rpc:Hr(Vr()),version:Hr(Vr())}),Ss=Jr({votePubkey:Vr(),nodePubkey:Vr(),activatedStake:Wr(),epochVoteAccount:Fr(),epochCredits:Lr(Gr([Wr(),Wr(),Wr()])),commission:Wr(),lastVote:Wr(),rootSlot:Hr(Wr())}),Ps=Io(Jr({current:Lr(Ss),delinquent:Lr(Ss)})),Cs=Zr([zr("processed"),zr("confirmed"),zr("finalized")]),Is=Jr({slot:Wr(),confirmations:Hr(Wr()),err:Do,confirmationStatus:Kr(Cs)}),Ms=Mo(Lr(Hr(Is))),Ts=Io(Wr()),Os=Jr({accountKey:xo,writableIndexes:Lr(Wr()),readonlyIndexes:Lr(Wr())}),Rs=Jr({signatures:Lr(Vr()),message:Jr({accountKeys:Lr(Vr()),header:Jr({numRequiredSignatures:Wr(),numReadonlySignedAccounts:Wr(),numReadonlyUnsignedAccounts:Wr()}),instructions:Lr(Jr({accounts:Lr(Wr()),data:Vr(),programIdIndex:Wr()})),recentBlockhash:Vr(),addressTableLookups:Kr(Lr(Os))})}),Bs=Jr({pubkey:xo,signer:Fr(),writable:Fr(),source:Kr(Zr([zr("transaction"),zr("lookupTable")]))}),Ns=Jr({accountKeys:Lr(Bs),signatures:Lr(Vr())}),Us=Jr({parsed:Yr(),program:Vr(),programId:xo}),js=Jr({accounts:Lr(xo),data:Vr(),programId:xo}),Ls=Qr(Zr([js,Us]),Zr([Jr({parsed:Yr(),program:Vr(),programId:Vr()}),Jr({accounts:Lr(Vr()),data:Vr(),programId:Vr()})]),e=>Br(e,"accounts"in e?js:Us)),Fs=Jr({signatures:Lr(Vr()),message:Jr({accountKeys:Lr(Bs),instructions:Lr(Ls),recentBlockhash:Vr(),addressTableLookups:Kr(Hr(Lr(Os)))})}),Ds=Jr({accountIndex:Wr(),mint:Vr(),owner:Kr(Vr()),programId:Kr(Vr()),uiTokenAmount:ns}),zs=Jr({writable:Lr(xo),readonly:Lr(xo)}),qs=Jr({err:Do,fee:Wr(),innerInstructions:Kr(Hr(Lr(Jr({index:Wr(),instructions:Lr(Jr({accounts:Lr(Wr()),data:Vr(),programIdIndex:Wr()}))})))),preBalances:Lr(Wr()),postBalances:Lr(Wr()),logMessages:Kr(Hr(Lr(Vr()))),preTokenBalances:Kr(Hr(Lr(Ds))),postTokenBalances:Kr(Hr(Lr(Ds))),loadedAddresses:Kr(zs),computeUnitsConsumed:Kr(Wr()),costUnits:Kr(Wr())}),Hs=Jr({err:Do,fee:Wr(),innerInstructions:Kr(Hr(Lr(Jr({index:Wr(),instructions:Lr(Ls)})))),preBalances:Lr(Wr()),postBalances:Lr(Wr()),logMessages:Kr(Hr(Lr(Vr()))),preTokenBalances:Kr(Hr(Lr(Ds))),postTokenBalances:Kr(Hr(Lr(Ds))),loadedAddresses:Kr(zs),computeUnitsConsumed:Kr(Wr()),costUnits:Kr(Wr())}),Ws=Zr([zr(0),zr("legacy")]),Ks=Jr({pubkey:Vr(),lamports:Wr(),postBalance:Hr(Wr()),rewardType:Hr(Vr()),commission:Kr(Hr(Wr()))}),$s=Io(Hr(Jr({blockhash:Vr(),previousBlockhash:Vr(),parentSlot:Wr(),transactions:Lr(Jr({transaction:Rs,meta:Hr(qs),version:Kr(Ws)})),rewards:Kr(Lr(Ks)),blockTime:Hr(Wr()),blockHeight:Hr(Wr())}))),Vs=Io(Hr(Jr({blockhash:Vr(),previousBlockhash:Vr(),parentSlot:Wr(),rewards:Kr(Lr(Ks)),blockTime:Hr(Wr()),blockHeight:Hr(Wr())}))),Gs=Io(Hr(Jr({blockhash:Vr(),previousBlockhash:Vr(),parentSlot:Wr(),transactions:Lr(Jr({transaction:Ns,meta:Hr(qs),version:Kr(Ws)})),rewards:Kr(Lr(Ks)),blockTime:Hr(Wr()),blockHeight:Hr(Wr())}))),Js=Io(Hr(Jr({blockhash:Vr(),previousBlockhash:Vr(),parentSlot:Wr(),transactions:Lr(Jr({transaction:Fs,meta:Hr(Hs),version:Kr(Ws)})),rewards:Kr(Lr(Ks)),blockTime:Hr(Wr()),blockHeight:Hr(Wr())}))),Zs=Io(Hr(Jr({blockhash:Vr(),previousBlockhash:Vr(),parentSlot:Wr(),transactions:Lr(Jr({transaction:Ns,meta:Hr(Hs),version:Kr(Ws)})),rewards:Kr(Lr(Ks)),blockTime:Hr(Wr()),blockHeight:Hr(Wr())}))),Ys=Io(Hr(Jr({blockhash:Vr(),previousBlockhash:Vr(),parentSlot:Wr(),rewards:Kr(Lr(Ks)),blockTime:Hr(Wr()),blockHeight:Hr(Wr())}))),Qs=Io(Hr(Jr({blockhash:Vr(),previousBlockhash:Vr(),parentSlot:Wr(),transactions:Lr(Jr({transaction:Rs,meta:Hr(qs)})),rewards:Kr(Lr(Ks)),blockTime:Hr(Wr())}))),Xs=Io(Hr(Jr({blockhash:Vr(),previousBlockhash:Vr(),parentSlot:Wr(),signatures:Lr(Vr()),blockTime:Hr(Wr())}))),ea=Io(Hr(Jr({slot:Wr(),meta:Hr(qs),blockTime:Kr(Hr(Wr())),transaction:Rs,version:Kr(Ws)}))),ta=Io(Hr(Jr({slot:Wr(),transaction:Fs,meta:Hr(Hs),blockTime:Kr(Hr(Wr())),version:Kr(Ws)}))),na=Mo(Jr({blockhash:Vr(),lastValidBlockHeight:Wr()})),ra=Mo(Fr()),ia=Io(Lr(Jr({slot:Wr(),numTransactions:Wr(),numSlots:Wr(),samplePeriodSecs:Wr()}))),oa=Mo(Hr(Jr({feeCalculator:Jr({lamportsPerSignature:Wr()})}))),sa=Io(Vr()),aa=Io(Vr()),ca=Jr({err:Do,logs:Lr(Vr()),signature:Vr()}),la=Jr({result:To(ca),subscription:Wr()}),ua={"solana-client":"js/".concat("1.0.0-maintenance")};class da{constructor(e,t){let n,r,i,o,s,a;this._commitment=void 0,this._confirmTransactionInitialTimeout=void 0,this._rpcEndpoint=void 0,this._rpcWsEndpoint=void 0,this._rpcClient=void 0,this._rpcRequest=void 0,this._rpcBatchRequest=void 0,this._rpcWebSocket=void 0,this._rpcWebSocketConnected=!1,this._rpcWebSocketHeartbeat=null,this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketGeneration=0,this._disableBlockhashCaching=!1,this._pollingBlockhash=!1,this._blockhashInfo={latestBlockhash:null,lastFetch:0,transactionSignatures:[],simulatedSignatures:[]},this._nextClientSubscriptionId=0,this._subscriptionDisposeFunctionsByClientSubscriptionId={},this._subscriptionHashByClientSubscriptionId={},this._subscriptionStateChangeCallbacksByHash={},this._subscriptionCallbacksByServerSubscriptionId={},this._subscriptionsByHash={},this._subscriptionsAutoDisposedByRpc=new Set,this.getBlockHeight=(()=>{const e={};return async t=>{var n;const{commitment:r,config:i}=Eo(t),o=this._buildArgs([],r,void 0,i),s=po(o);return e[s]=null!==(n=e[s])&&void 0!==n?n:(async()=>{try{const e=Br(await this._rpcRequest("getBlockHeight",o),Io(Wr()));if("error"in e)throw new Yi(e.error,"failed to get block height information");return e.result}finally{delete e[s]}})(),await e[s]}})(),t&&"string"===typeof t?this._commitment=t:t&&(this._commitment=t.commitment,this._confirmTransactionInitialTimeout=t.confirmTransactionInitialTimeout,n=t.wsEndpoint,r=t.httpHeaders,i=t.fetch,o=t.fetchMiddleware,s=t.disableRetryOnRateLimit,a=t.httpAgent),this._rpcEndpoint=function(e){if(!1===/^https?:/.test(e))throw new TypeError("Endpoint URL must start with `http:` or `https:`.");return e}(e),this._rpcWsEndpoint=n||function(e){const t=e.match(_o);if(null==t)throw TypeError("Failed to validate endpoint URL `".concat(e,"`"));const[n,r,i,o]=t,s=e.startsWith("https:")?"wss:":"ws:",a=null==i?null:parseInt(i.slice(1),10),c=null==a?"":":".concat(a+1);return"".concat(s,"//").concat(r).concat(c).concat(o)}(e),this._rpcClient=function(e,t,n,r,i,o){const s=n||yo;let a;return null!=o&&console.warn("You have supplied an `httpAgent` when creating a `Connection` in a browser environment.It has been ignored; `httpAgent` is only used in Node environments."),r&&(a=async(e,t)=>{const n=await new Promise((n,i)=>{try{r(e,t,(e,t)=>n([e,t]))}catch(o){i(o)}});return await s(...n)}),new(ei())(async(n,r)=>{const o={method:"POST",body:n,agent:void 0,headers:Object.assign({"Content-Type":"application/json"},t||{},ua)};try{let t,n=5,c=500;for(;t=a?await a(e,o):await s(e,o),429===t.status&&!0!==i&&(n-=1,0!==n);)console.error("Server responded with ".concat(t.status," ").concat(t.statusText,". Retrying after ").concat(c,"ms delay...")),await Xi(c),c*=2;const l=await t.text();t.ok?r(null,l):r(new Error("".concat(t.status," ").concat(t.statusText,": ").concat(l)))}catch(c){c instanceof Error&&r(c)}},{})}(e,r,i,o,s,a),this._rpcRequest=function(e){return(t,n)=>new Promise((r,i)=>{e.request(t,n,(e,t)=>{e?i(e):r(t)})})}(this._rpcClient),this._rpcBatchRequest=function(e){return t=>new Promise((n,r)=>{0===t.length&&n([]);const i=t.map(t=>e.request(t.methodName,t.args));e.request(i,(e,t)=>{e?r(e):n(t)})})}(this._rpcClient),this._rpcWebSocket=new bo(this._rpcWsEndpoint,{autoconnect:!1,max_reconnects:1/0}),this._rpcWebSocket.on("open",this._wsOnOpen.bind(this)),this._rpcWebSocket.on("error",this._wsOnError.bind(this)),this._rpcWebSocket.on("close",this._wsOnClose.bind(this)),this._rpcWebSocket.on("accountNotification",this._wsOnAccountNotification.bind(this)),this._rpcWebSocket.on("programNotification",this._wsOnProgramAccountNotification.bind(this)),this._rpcWebSocket.on("slotNotification",this._wsOnSlotNotification.bind(this)),this._rpcWebSocket.on("slotsUpdatesNotification",this._wsOnSlotUpdatesNotification.bind(this)),this._rpcWebSocket.on("signatureNotification",this._wsOnSignatureNotification.bind(this)),this._rpcWebSocket.on("rootNotification",this._wsOnRootNotification.bind(this)),this._rpcWebSocket.on("logsNotification",this._wsOnLogsNotification.bind(this))}get commitment(){return this._commitment}get rpcEndpoint(){return this._rpcEndpoint}async getBalanceAndContext(e,t){const{commitment:n,config:r}=Eo(t),i=this._buildArgs([e.toBase58()],n,void 0,r),o=Br(await this._rpcRequest("getBalance",i),Mo(Wr()));if("error"in o)throw new Yi(o.error,"failed to get balance for ".concat(e.toBase58()));return o.result}async getBalance(e,t){return await this.getBalanceAndContext(e,t).then(e=>e.value).catch(t=>{throw new Error("failed to get balance of account "+e.toBase58()+": "+t)})}async getBlockTime(e){const t=Br(await this._rpcRequest("getBlockTime",[e]),Io(Hr(Wr())));if("error"in t)throw new Yi(t.error,"failed to get block time for slot ".concat(e));return t.result}async getMinimumLedgerSlot(){const e=Br(await this._rpcRequest("minimumLedgerSlot",[]),Io(Wr()));if("error"in e)throw new Yi(e.error,"failed to get minimum ledger slot");return e.result}async getFirstAvailableBlock(){const e=Br(await this._rpcRequest("getFirstAvailableBlock",[]),es);if("error"in e)throw new Yi(e.error,"failed to get first available block");return e.result}async getSupply(e){let t={};t="string"===typeof e?{commitment:e}:e?(0,a.A)((0,a.A)({},e),{},{commitment:e&&e.commitment||this.commitment}):{commitment:this.commitment};const n=Br(await this._rpcRequest("getSupply",[t]),ts);if("error"in n)throw new Yi(n.error,"failed to get supply");return n.result}async getTokenSupply(e,t){const n=this._buildArgs([e.toBase58()],t),r=Br(await this._rpcRequest("getTokenSupply",n),Mo(ns));if("error"in r)throw new Yi(r.error,"failed to get token supply");return r.result}async getTokenAccountBalance(e,t){const n=this._buildArgs([e.toBase58()],t),r=Br(await this._rpcRequest("getTokenAccountBalance",n),Mo(ns));if("error"in r)throw new Yi(r.error,"failed to get token account balance");return r.result}async getTokenAccountsByOwner(e,t,n){const{commitment:r,config:i}=Eo(n);let o=[e.toBase58()];"mint"in t?o.push({mint:t.mint.toBase58()}):o.push({programId:t.programId.toBase58()});const s=this._buildArgs(o,r,"base64",i),a=Br(await this._rpcRequest("getTokenAccountsByOwner",s),is);if("error"in a)throw new Yi(a.error,"failed to get token accounts owned by account ".concat(e.toBase58()));return a.result}async getParsedTokenAccountsByOwner(e,t,n){let r=[e.toBase58()];"mint"in t?r.push({mint:t.mint.toBase58()}):r.push({programId:t.programId.toBase58()});const i=this._buildArgs(r,n,"jsonParsed"),o=Br(await this._rpcRequest("getTokenAccountsByOwner",i),ss);if("error"in o)throw new Yi(o.error,"failed to get token accounts owned by account ".concat(e.toBase58()));return o.result}async getLargestAccounts(e){const t=(0,a.A)((0,a.A)({},e),{},{commitment:e&&e.commitment||this.commitment}),n=t.filter||t.commitment?[t]:[],r=Br(await this._rpcRequest("getLargestAccounts",n),as);if("error"in r)throw new Yi(r.error,"failed to get largest accounts");return r.result}async getTokenLargestAccounts(e,t){const n=this._buildArgs([e.toBase58()],t),r=Br(await this._rpcRequest("getTokenLargestAccounts",n),rs);if("error"in r)throw new Yi(r.error,"failed to get token largest accounts");return r.result}async getAccountInfoAndContext(e,t){const{commitment:n,config:r}=Eo(t),i=this._buildArgs([e.toBase58()],n,"base64",r),o=Br(await this._rpcRequest("getAccountInfo",i),Mo(Hr(cs)));if("error"in o)throw new Yi(o.error,"failed to get info about account ".concat(e.toBase58()));return o.result}async getParsedAccountInfo(e,t){const{commitment:n,config:r}=Eo(t),i=this._buildArgs([e.toBase58()],n,"jsonParsed",r),o=Br(await this._rpcRequest("getAccountInfo",i),Mo(Hr(ds)));if("error"in o)throw new Yi(o.error,"failed to get info about account ".concat(e.toBase58()));return o.result}async getAccountInfo(e,t){try{return(await this.getAccountInfoAndContext(e,t)).value}catch(n){throw new Error("failed to get info about account "+e.toBase58()+": "+n)}}async getMultipleParsedAccounts(e,t){const{commitment:n,config:r}=Eo(t),i=e.map(e=>e.toBase58()),o=this._buildArgs([i],n,"jsonParsed",r),s=Br(await this._rpcRequest("getMultipleAccounts",o),Mo(Lr(Hr(ds))));if("error"in s)throw new Yi(s.error,"failed to get info for accounts ".concat(i));return s.result}async getMultipleAccountsInfoAndContext(e,t){const{commitment:n,config:r}=Eo(t),i=e.map(e=>e.toBase58()),o=this._buildArgs([i],n,"base64",r),s=Br(await this._rpcRequest("getMultipleAccounts",o),Mo(Lr(Hr(cs))));if("error"in s)throw new Yi(s.error,"failed to get info for accounts ".concat(i));return s.result}async getMultipleAccountsInfo(e,t){return(await this.getMultipleAccountsInfoAndContext(e,t)).value}async getStakeActivation(e,t,n){const{commitment:r,config:i}=Eo(t),o=this._buildArgs([e.toBase58()],r,void 0,(0,a.A)((0,a.A)({},i),{},{epoch:null!=n?n:null===i||void 0===i?void 0:i.epoch})),s=Br(await this._rpcRequest("getStakeActivation",o),Io(fs));if("error"in s)throw new Yi(s.error,"failed to get Stake Activation ".concat(e.toBase58()));return s.result}async getProgramAccounts(e,t){const{commitment:n,config:r}=Eo(t),i=r||{},{encoding:o}=i,s=(0,qe.A)(i,ui),c=this._buildArgs([e.toBase58()],n,o||"base64",(0,a.A)((0,a.A)({},s),s.filters?{filters:So(s.filters)}:null)),l=await this._rpcRequest("getProgramAccounts",c),u=Lr(ls),d=!0===s.withContext?Br(l,Mo(u)):Br(l,Io(u));if("error"in d)throw new Yi(d.error,"failed to get accounts owned by program ".concat(e.toBase58()));return d.result}async getParsedProgramAccounts(e,t){const{commitment:n,config:r}=Eo(t),i=this._buildArgs([e.toBase58()],n,"jsonParsed",r),o=Br(await this._rpcRequest("getProgramAccounts",i),Io(Lr(hs)));if("error"in o)throw new Yi(o.error,"failed to get accounts owned by program ".concat(e.toBase58()));return o.result}async confirmTransaction(e,t){let n,r;if("string"==typeof e)n=e;else{var i;const t=e;if(null!==(i=t.abortSignal)&&void 0!==i&&i.aborted)return Promise.reject(t.abortSignal.reason);n=t.signature}try{r=Yn().decode(n)}catch(o){throw new Error("signature must be base58 encoded: "+n)}return Ni(64===r.length,"signature has invalid length"),"string"===typeof e?await this.confirmTransactionUsingLegacyTimeoutStrategy({commitment:t||this.commitment,signature:n}):"lastValidBlockHeight"in e?await this.confirmTransactionUsingBlockHeightExceedanceStrategy({commitment:t||this.commitment,strategy:e}):await this.confirmTransactionUsingDurableNonceStrategy({commitment:t||this.commitment,strategy:e})}getCancellationPromise(e){return new Promise((t,n)=>{null!=e&&(e.aborted?n(e.reason):e.addEventListener("abort",()=>{n(e.reason)}))})}getTransactionConfirmationPromise(e){let t,n,{commitment:r,signature:i}=e,o=!1;return{abortConfirmation:()=>{n&&(n(),n=void 0),null!=t&&(this.removeSignatureListener(t),t=void 0)},confirmationPromise:new Promise((e,s)=>{try{t=this.onSignature(i,(n,r)=>{t=void 0;const i={context:r,value:n};e({__type:qi.PROCESSED,response:i})},r);const a=new Promise(e=>{null==t?e():n=this._onSubscriptionStateChange(t,t=>{"subscribed"===t&&e()})});(async()=>{if(await a,o)return;const t=await this.getSignatureStatus(i);if(o)return;if(null==t)return;const{context:n,value:c}=t;if(null!=c)if(null!==c&&void 0!==c&&c.err)s(c.err);else{switch(r){case"confirmed":case"single":case"singleGossip":if("processed"===c.confirmationStatus)return;break;case"finalized":case"max":case"root":if("processed"===c.confirmationStatus||"confirmed"===c.confirmationStatus)return}o=!0,e({__type:qi.PROCESSED,response:{context:n,value:c}})}})()}catch(a){s(a)}})}}async confirmTransactionUsingBlockHeightExceedanceStrategy(e){let{commitment:t,strategy:{abortSignal:n,lastValidBlockHeight:r,signature:i}}=e,o=!1;const s=new Promise(e=>{const n=async()=>{try{return await this.getBlockHeight(t)}catch(e){return-1}};(async()=>{let t=await n();if(!o){for(;t<=r;){if(await Xi(1e3),o)return;if(t=await n(),o)return}e({__type:qi.BLOCKHEIGHT_EXCEEDED})}})()}),{abortConfirmation:a,confirmationPromise:c}=this.getTransactionConfirmationPromise({commitment:t,signature:i}),l=this.getCancellationPromise(n);let u;try{const e=await Promise.race([l,c,s]);if(e.__type!==qi.PROCESSED)throw new Si(i);u=e.response}finally{o=!0,a()}return u}async confirmTransactionUsingDurableNonceStrategy(e){let{commitment:t,strategy:{abortSignal:n,minContextSlot:r,nonceAccountPubkey:i,nonceValue:o,signature:s}}=e,a=!1;const c=new Promise(e=>{let n=o,s=null;const c=async()=>{try{const{context:e,value:n}=await this.getNonceAndContext(i,{commitment:t,minContextSlot:r});return s=e.slot,null===n||void 0===n?void 0:n.nonce}catch(e){return n}};(async()=>{if(n=await c(),!a)for(;;){if(o!==n)return void e({__type:qi.NONCE_INVALID,slotInWhichNonceDidAdvance:s});if(await Xi(2e3),a)return;if(n=await c(),a)return}})()}),{abortConfirmation:l,confirmationPromise:u}=this.getTransactionConfirmationPromise({commitment:t,signature:s}),d=this.getCancellationPromise(n);let h;try{const e=await Promise.race([d,u,c]);if(e.__type===qi.PROCESSED)h=e.response;else{var f;let n;for(;;){var p;const t=await this.getSignatureStatus(s);if(null==t)break;if(!(t.context.slot<(null!==(p=e.slotInWhichNonceDidAdvance)&&void 0!==p?p:r))){n=t;break}await Xi(400)}if(null===(f=n)||void 0===f||!f.value)throw new Ci(s);{const e=t||"finalized",{confirmationStatus:r}=n.value;switch(e){case"processed":case"recent":if("processed"!==r&&"confirmed"!==r&&"finalized"!==r)throw new Ci(s);break;case"confirmed":case"single":case"singleGossip":if("confirmed"!==r&&"finalized"!==r)throw new Ci(s);break;case"finalized":case"max":case"root":if("finalized"!==r)throw new Ci(s)}h={context:n.context,value:{err:n.value.err}}}}}finally{a=!0,l()}return h}async confirmTransactionUsingLegacyTimeoutStrategy(e){let t,{commitment:n,signature:r}=e;const i=new Promise(e=>{let r=this._confirmTransactionInitialTimeout||6e4;switch(n){case"processed":case"recent":case"single":case"confirmed":case"singleGossip":r=this._confirmTransactionInitialTimeout||3e4}t=setTimeout(()=>e({__type:qi.TIMED_OUT,timeoutMs:r}),r)}),{abortConfirmation:o,confirmationPromise:s}=this.getTransactionConfirmationPromise({commitment:n,signature:r});let a;try{const e=await Promise.race([s,i]);if(e.__type!==qi.PROCESSED)throw new Pi(r,e.timeoutMs/1e3);a=e.response}finally{clearTimeout(t),o()}return a}async getClusterNodes(){const e=Br(await this._rpcRequest("getClusterNodes",[]),Io(Lr(Es)));if("error"in e)throw new Yi(e.error,"failed to get cluster nodes");return e.result}async getVoteAccounts(e){const t=this._buildArgs([],e),n=Br(await this._rpcRequest("getVoteAccounts",t),Ps);if("error"in n)throw new Yi(n.error,"failed to get vote accounts");return n.result}async getSlot(e){const{commitment:t,config:n}=Eo(e),r=this._buildArgs([],t,void 0,n),i=Br(await this._rpcRequest("getSlot",r),Io(Wr()));if("error"in i)throw new Yi(i.error,"failed to get slot");return i.result}async getSlotLeader(e){const{commitment:t,config:n}=Eo(e),r=this._buildArgs([],t,void 0,n),i=Br(await this._rpcRequest("getSlotLeader",r),Io(Vr()));if("error"in i)throw new Yi(i.error,"failed to get slot leader");return i.result}async getSlotLeaders(e,t){const n=[e,t],r=Br(await this._rpcRequest("getSlotLeaders",n),Io(Lr(xo)));if("error"in r)throw new Yi(r.error,"failed to get slot leaders");return r.result}async getSignatureStatus(e,t){const{context:n,value:r}=await this.getSignatureStatuses([e],t);Ni(1===r.length);return{context:n,value:r[0]}}async getSignatureStatuses(e,t){const n=[e];t&&n.push(t);const r=Br(await this._rpcRequest("getSignatureStatuses",n),Ms);if("error"in r)throw new Yi(r.error,"failed to get signature status");return r.result}async getTransactionCount(e){const{commitment:t,config:n}=Eo(e),r=this._buildArgs([],t,void 0,n),i=Br(await this._rpcRequest("getTransactionCount",r),Io(Wr()));if("error"in i)throw new Yi(i.error,"failed to get transaction count");return i.result}async getTotalSupply(e){return(await this.getSupply({commitment:e,excludeNonCirculatingAccountsList:!0})).value.total}async getInflationGovernor(e){const t=this._buildArgs([],e),n=Br(await this._rpcRequest("getInflationGovernor",t),Go);if("error"in n)throw new Yi(n.error,"failed to get inflation");return n.result}async getInflationReward(e,t,n){const{commitment:r,config:i}=Eo(n),o=this._buildArgs([e.map(e=>e.toBase58())],r,void 0,(0,a.A)((0,a.A)({},i),{},{epoch:null!=t?t:null===i||void 0===i?void 0:i.epoch})),s=Br(await this._rpcRequest("getInflationReward",o),Bo);if("error"in s)throw new Yi(s.error,"failed to get inflation reward");return s.result}async getInflationRate(){const e=Br(await this._rpcRequest("getInflationRate",[]),Jo);if("error"in e)throw new Yi(e.error,"failed to get inflation rate");return e.result}async getEpochInfo(e){const{commitment:t,config:n}=Eo(e),r=this._buildArgs([],t,void 0,n),i=Br(await this._rpcRequest("getEpochInfo",r),Yo);if("error"in i)throw new Yi(i.error,"failed to get epoch info");return i.result}async getEpochSchedule(){const e=Br(await this._rpcRequest("getEpochSchedule",[]),Qo);if("error"in e)throw new Yi(e.error,"failed to get epoch schedule");const t=e.result;return new go(t.slotsPerEpoch,t.leaderScheduleSlotOffset,t.warmup,t.firstNormalEpoch,t.firstNormalSlot)}async getLeaderSchedule(){const e=Br(await this._rpcRequest("getLeaderSchedule",[]),Xo);if("error"in e)throw new Yi(e.error,"failed to get leader schedule");return e.result}async getMinimumBalanceForRentExemption(e,t){const n=this._buildArgs([e],t),r=Br(await this._rpcRequest("getMinimumBalanceForRentExemption",n),Ts);return"error"in r?(console.warn("Unable to fetch minimum balance for rent exemption"),0):r.result}async getRecentBlockhashAndContext(e){const{context:t,value:{blockhash:n}}=await this.getLatestBlockhashAndContext(e);return{context:t,value:{blockhash:n,feeCalculator:{get lamportsPerSignature(){throw new Error("The capability to fetch `lamportsPerSignature` using the `getRecentBlockhash` API is no longer offered by the network. Use the `getFeeForMessage` API to obtain the fee for a given message.")},toJSON:()=>({})}}}}async getRecentPerformanceSamples(e){const t=Br(await this._rpcRequest("getRecentPerformanceSamples",e?[e]:[]),ia);if("error"in t)throw new Yi(t.error,"failed to get recent performance samples");return t.result}async getFeeCalculatorForBlockhash(e,t){const n=this._buildArgs([e],t),r=Br(await this._rpcRequest("getFeeCalculatorForBlockhash",n),oa);if("error"in r)throw new Yi(r.error,"failed to get fee calculator");const{context:i,value:o}=r.result;return{context:i,value:null!==o?o.feeCalculator:null}}async getFeeForMessage(e,t){const n=bi(e.serialize()).toString("base64"),r=this._buildArgs([n],t),i=Br(await this._rpcRequest("getFeeForMessage",r),Mo(Hr(Wr())));if("error"in i)throw new Yi(i.error,"failed to get fee for message");if(null===i.result)throw new Error("invalid blockhash");return i.result}async getRecentPrioritizationFees(e){var t;const n=null===e||void 0===e||null===(t=e.lockedWritableAccounts)||void 0===t?void 0:t.map(e=>e.toBase58()),r=null!==n&&void 0!==n&&n.length?[n]:[],i=Br(await this._rpcRequest("getRecentPrioritizationFees",r),Zo);if("error"in i)throw new Yi(i.error,"failed to get recent prioritization fees");return i.result}async getRecentBlockhash(e){try{return(await this.getRecentBlockhashAndContext(e)).value}catch(t){throw new Error("failed to get recent blockhash: "+t)}}async getLatestBlockhash(e){try{return(await this.getLatestBlockhashAndContext(e)).value}catch(t){throw new Error("failed to get recent blockhash: "+t)}}async getLatestBlockhashAndContext(e){const{commitment:t,config:n}=Eo(e),r=this._buildArgs([],t,void 0,n),i=Br(await this._rpcRequest("getLatestBlockhash",r),na);if("error"in i)throw new Yi(i.error,"failed to get latest blockhash");return i.result}async isBlockhashValid(e,t){const{commitment:n,config:r}=Eo(t),i=this._buildArgs([e],n,void 0,r),o=Br(await this._rpcRequest("isBlockhashValid",i),ra);if("error"in o)throw new Yi(o.error,"failed to determine if the blockhash `"+e+"`is valid");return o.result}async getVersion(){const e=Br(await this._rpcRequest("getVersion",[]),Io(Ho));if("error"in e)throw new Yi(e.error,"failed to get version");return e.result}async getGenesisHash(){const e=Br(await this._rpcRequest("getGenesisHash",[]),Io(Vr()));if("error"in e)throw new Yi(e.error,"failed to get genesis hash");return e.result}async getBlock(e,t){const{commitment:n,config:r}=Eo(t),i=this._buildArgsAtLeastConfirmed([e],n,void 0,r),o=await this._rpcRequest("getBlock",i);try{switch(null===r||void 0===r?void 0:r.transactionDetails){case"accounts":{const e=Br(o,Gs);if("error"in e)throw e.error;return e.result}case"none":{const e=Br(o,Vs);if("error"in e)throw e.error;return e.result}default:{const e=Br(o,$s);if("error"in e)throw e.error;const{result:t}=e;return t?(0,a.A)((0,a.A)({},t),{},{transactions:t.transactions.map(e=>{let{transaction:t,meta:n,version:r}=e;return{meta:n,transaction:(0,a.A)((0,a.A)({},t),{},{message:Oo(r,t.message)}),version:r}})}):null}}}catch(s){throw new Yi(s,"failed to get confirmed block")}}async getParsedBlock(e,t){const{commitment:n,config:r}=Eo(t),i=this._buildArgsAtLeastConfirmed([e],n,"jsonParsed",r),o=await this._rpcRequest("getBlock",i);try{switch(null===r||void 0===r?void 0:r.transactionDetails){case"accounts":{const e=Br(o,Zs);if("error"in e)throw e.error;return e.result}case"none":{const e=Br(o,Ys);if("error"in e)throw e.error;return e.result}default:{const e=Br(o,Js);if("error"in e)throw e.error;return e.result}}}catch(s){throw new Yi(s,"failed to get block")}}async getBlockProduction(e){let t,n;if("string"===typeof e)n=e;else if(e){const{commitment:r}=e;n=r,t=(0,qe.A)(e,di)}const r=this._buildArgs([],n,"base64",t),i=Br(await this._rpcRequest("getBlockProduction",r),Vo);if("error"in i)throw new Yi(i.error,"failed to get block production information");return i.result}async getTransaction(e,t){const{commitment:n,config:r}=Eo(t),i=this._buildArgsAtLeastConfirmed([e],n,void 0,r),o=Br(await this._rpcRequest("getTransaction",i),ea);if("error"in o)throw new Yi(o.error,"failed to get transaction");const s=o.result;return s?(0,a.A)((0,a.A)({},s),{},{transaction:(0,a.A)((0,a.A)({},s.transaction),{},{message:Oo(s.version,s.transaction.message)})}):s}async getParsedTransaction(e,t){const{commitment:n,config:r}=Eo(t),i=this._buildArgsAtLeastConfirmed([e],n,"jsonParsed",r),o=Br(await this._rpcRequest("getTransaction",i),ta);if("error"in o)throw new Yi(o.error,"failed to get transaction");return o.result}async getParsedTransactions(e,t){const{commitment:n,config:r}=Eo(t),i=e.map(e=>({methodName:"getTransaction",args:this._buildArgsAtLeastConfirmed([e],n,"jsonParsed",r)}));return(await this._rpcBatchRequest(i)).map(e=>{const t=Br(e,ta);if("error"in t)throw new Yi(t.error,"failed to get transactions");return t.result})}async getTransactions(e,t){const{commitment:n,config:r}=Eo(t),i=e.map(e=>({methodName:"getTransaction",args:this._buildArgsAtLeastConfirmed([e],n,void 0,r)}));return(await this._rpcBatchRequest(i)).map(e=>{const t=Br(e,ea);if("error"in t)throw new Yi(t.error,"failed to get transactions");const n=t.result;return n?(0,a.A)((0,a.A)({},n),{},{transaction:(0,a.A)((0,a.A)({},n.transaction),{},{message:Oo(n.version,n.transaction.message)})}):n})}async getConfirmedBlock(e,t){const n=this._buildArgsAtLeastConfirmed([e],t),r=Br(await this._rpcRequest("getBlock",n),Qs);if("error"in r)throw new Yi(r.error,"failed to get confirmed block");const i=r.result;if(!i)throw new Error("Confirmed block "+e+" not found");const o=(0,a.A)((0,a.A)({},i),{},{transactions:i.transactions.map(e=>{let{transaction:t,meta:n}=e;const r=new Di(t.message);return{meta:n,transaction:(0,a.A)((0,a.A)({},t),{},{message:r})}})});return(0,a.A)((0,a.A)({},o),{},{transactions:o.transactions.map(e=>{let{transaction:t,meta:n}=e;return{meta:n,transaction:Ki.populate(t.message,t.signatures)}})})}async getBlocks(e,t,n){const r=this._buildArgsAtLeastConfirmed(void 0!==t?[e,t]:[e],n),i=Br(await this._rpcRequest("getBlocks",r),Io(Lr(Wr())));if("error"in i)throw new Yi(i.error,"failed to get blocks");return i.result}async getBlockSignatures(e,t){const n=this._buildArgsAtLeastConfirmed([e],t,void 0,{transactionDetails:"signatures",rewards:!1}),r=Br(await this._rpcRequest("getBlock",n),Xs);if("error"in r)throw new Yi(r.error,"failed to get block");const i=r.result;if(!i)throw new Error("Block "+e+" not found");return i}async getConfirmedBlockSignatures(e,t){const n=this._buildArgsAtLeastConfirmed([e],t,void 0,{transactionDetails:"signatures",rewards:!1}),r=Br(await this._rpcRequest("getBlock",n),Xs);if("error"in r)throw new Yi(r.error,"failed to get confirmed block");const i=r.result;if(!i)throw new Error("Confirmed block "+e+" not found");return i}async getConfirmedTransaction(e,t){const n=this._buildArgsAtLeastConfirmed([e],t),r=Br(await this._rpcRequest("getTransaction",n),ea);if("error"in r)throw new Yi(r.error,"failed to get transaction");const i=r.result;if(!i)return i;const o=new Di(i.transaction.message),s=i.transaction.signatures;return(0,a.A)((0,a.A)({},i),{},{transaction:Ki.populate(o,s)})}async getParsedConfirmedTransaction(e,t){const n=this._buildArgsAtLeastConfirmed([e],t,"jsonParsed"),r=Br(await this._rpcRequest("getTransaction",n),ta);if("error"in r)throw new Yi(r.error,"failed to get confirmed transaction");return r.result}async getParsedConfirmedTransactions(e,t){const n=e.map(e=>({methodName:"getTransaction",args:this._buildArgsAtLeastConfirmed([e],t,"jsonParsed")}));return(await this._rpcBatchRequest(n)).map(e=>{const t=Br(e,ta);if("error"in t)throw new Yi(t.error,"failed to get confirmed transactions");return t.result})}async getConfirmedSignaturesForAddress(e,t,n){let r={},i=await this.getFirstAvailableBlock();for(;!("until"in r)&&!(--t<=0||t<i);)try{const e=await this.getConfirmedBlockSignatures(t,"finalized");e.signatures.length>0&&(r.until=e.signatures[e.signatures.length-1].toString())}catch(s){if(s instanceof Error&&s.message.includes("skipped"))continue;throw s}let o=await this.getSlot("finalized");for(;!("before"in r)&&!(++n>o);)try{const e=await this.getConfirmedBlockSignatures(n);e.signatures.length>0&&(r.before=e.signatures[e.signatures.length-1].toString())}catch(s){if(s instanceof Error&&s.message.includes("skipped"))continue;throw s}return(await this.getConfirmedSignaturesForAddress2(e,r)).map(e=>e.signature)}async getConfirmedSignaturesForAddress2(e,t,n){const r=this._buildArgsAtLeastConfirmed([e.toBase58()],n,void 0,t),i=Br(await this._rpcRequest("getConfirmedSignaturesForAddress2",r),ps);if("error"in i)throw new Yi(i.error,"failed to get confirmed signatures for address");return i.result}async getSignaturesForAddress(e,t,n){const r=this._buildArgsAtLeastConfirmed([e.toBase58()],n,void 0,t),i=Br(await this._rpcRequest("getSignaturesForAddress",r),ms);if("error"in i)throw new Yi(i.error,"failed to get signatures for address");return i.result}async getAddressLookupTable(e,t){const{context:n,value:r}=await this.getAccountInfoAndContext(e,t);let i=null;return null!==r&&(i=new vo({key:e,state:vo.deserialize(r.data)})),{context:n,value:i}}async getNonceAndContext(e,t){const{context:n,value:r}=await this.getAccountInfoAndContext(e,t);let i=null;return null!==r&&(i=io.fromAccountData(r.data)),{context:n,value:i}}async getNonce(e,t){return await this.getNonceAndContext(e,t).then(e=>e.value).catch(t=>{throw new Error("failed to get nonce for account "+e.toBase58()+": "+t)})}async requestAirdrop(e,t){const n=Br(await this._rpcRequest("requestAirdrop",[e.toBase58(),t]),sa);if("error"in n)throw new Yi(n.error,"airdrop to ".concat(e.toBase58()," failed"));return n.result}async _blockhashWithExpiryBlockHeight(e){if(!e){for(;this._pollingBlockhash;)await Xi(100);const e=Date.now()-this._blockhashInfo.lastFetch>=3e4;if(null!==this._blockhashInfo.latestBlockhash&&!e)return this._blockhashInfo.latestBlockhash}return await this._pollNewBlockhash()}async _pollNewBlockhash(){this._pollingBlockhash=!0;try{const e=Date.now(),t=this._blockhashInfo.latestBlockhash,n=t?t.blockhash:null;for(let r=0;r<50;r++){const e=await this.getLatestBlockhash("finalized");if(n!==e.blockhash)return this._blockhashInfo={latestBlockhash:e,lastFetch:Date.now(),transactionSignatures:[],simulatedSignatures:[]},e;await Xi(200)}throw new Error("Unable to obtain a new blockhash after ".concat(Date.now()-e,"ms"))}finally{this._pollingBlockhash=!1}}async getStakeMinimumDelegation(e){const{commitment:t,config:n}=Eo(e),r=this._buildArgs([],t,"base64",n),i=Br(await this._rpcRequest("getStakeMinimumDelegation",r),Mo(Wr()));if("error"in i)throw new Yi(i.error,"failed to get stake minimum delegation");return i.result}async simulateTransaction(e,t,n){if("message"in e){const r=e.serialize(),i=$n.Buffer.from(r).toString("base64");if(Array.isArray(t)||void 0!==n)throw new Error("Invalid arguments");const o=t||{};o.encoding="base64","commitment"in o||(o.commitment=this.commitment),t&&"object"===typeof t&&"innerInstructions"in t&&(o.innerInstructions=t.innerInstructions);const s=[i,o],a=Br(await this._rpcRequest("simulateTransaction",s),$o);if("error"in a)throw new Error("failed to simulate transaction: "+a.error.message);return a.result}let r;if(e instanceof Ki){let t=e;r=new Ki,r.feePayer=t.feePayer,r.instructions=e.instructions,r.nonceInfo=t.nonceInfo,r.signatures=t.signatures}else r=Ki.populate(e),r._message=r._json=void 0;if(void 0!==t&&!Array.isArray(t))throw new Error("Invalid arguments");const i=t;if(r.nonceInfo&&i)r.sign(...i);else{let e=this._disableBlockhashCaching;for(;;){const t=await this._blockhashWithExpiryBlockHeight(e);if(r.lastValidBlockHeight=t.lastValidBlockHeight,r.recentBlockhash=t.blockhash,!i)break;if(r.sign(...i),!r.signature)throw new Error("!signature");const n=r.signature.toString("base64");if(!this._blockhashInfo.simulatedSignatures.includes(n)&&!this._blockhashInfo.transactionSignatures.includes(n)){this._blockhashInfo.simulatedSignatures.push(n);break}e=!0}}const o=r._compile(),s=o.serialize(),a=r._serialize(s).toString("base64"),c={encoding:"base64",commitment:this.commitment};if(n){const e=(Array.isArray(n)?n:o.nonProgramIds()).map(e=>e.toBase58());c.accounts={encoding:"base64",addresses:e}}i&&(c.sigVerify=!0),t&&"object"===typeof t&&"innerInstructions"in t&&(c.innerInstructions=t.innerInstructions);const l=[a,c],u=Br(await this._rpcRequest("simulateTransaction",l),$o);if("error"in u){let e;if("data"in u.error&&(e=u.error.data.logs,e&&Array.isArray(e))){const t="\n ",n=t+e.join(t);console.error(u.error.message,n)}throw new Zi({action:"simulate",signature:"",transactionMessage:u.error.message,logs:e})}return u.result}async sendTransaction(e,t,n){if("version"in e){if(t&&Array.isArray(t))throw new Error("Invalid arguments");const n=e.serialize();return await this.sendRawTransaction(n,t)}if(void 0===t||!Array.isArray(t))throw new Error("Invalid arguments");const r=t;if(e.nonceInfo)e.sign(...r);else{let t=this._disableBlockhashCaching;for(;;){const n=await this._blockhashWithExpiryBlockHeight(t);if(e.lastValidBlockHeight=n.lastValidBlockHeight,e.recentBlockhash=n.blockhash,e.sign(...r),!e.signature)throw new Error("!signature");const i=e.signature.toString("base64");if(!this._blockhashInfo.transactionSignatures.includes(i)){this._blockhashInfo.transactionSignatures.push(i);break}t=!0}}const i=e.serialize();return await this.sendRawTransaction(i,n)}async sendRawTransaction(e,t){const n=bi(e).toString("base64");return await this.sendEncodedTransaction(n,t)}async sendEncodedTransaction(e,t){const n={encoding:"base64"},r=t&&t.skipPreflight,i=!0===r?"processed":t&&t.preflightCommitment||this.commitment;t&&null!=t.maxRetries&&(n.maxRetries=t.maxRetries),t&&null!=t.minContextSlot&&(n.minContextSlot=t.minContextSlot),r&&(n.skipPreflight=r),i&&(n.preflightCommitment=i);const o=[e,n],s=Br(await this._rpcRequest("sendTransaction",o),aa);if("error"in s){let e;throw"data"in s.error&&(e=s.error.data.logs),new Zi({action:r?"send":"simulate",signature:"",transactionMessage:s.error.message,logs:e})}return s.result}_wsOnOpen(){this._rpcWebSocketConnected=!0,this._rpcWebSocketHeartbeat=setInterval(()=>{(async()=>{try{await this._rpcWebSocket.notify("ping")}catch(e){}})()},5e3),this._updateSubscriptions()}_wsOnError(e){this._rpcWebSocketConnected=!1,console.error("ws error:",e.message)}_wsOnClose(e){this._rpcWebSocketConnected=!1,this._rpcWebSocketGeneration=(this._rpcWebSocketGeneration+1)%Number.MAX_SAFE_INTEGER,this._rpcWebSocketIdleTimeout&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null),this._rpcWebSocketHeartbeat&&(clearInterval(this._rpcWebSocketHeartbeat),this._rpcWebSocketHeartbeat=null),1e3!==e?(this._subscriptionCallbacksByServerSubscriptionId={},Object.entries(this._subscriptionsByHash).forEach(e=>{let[t,n]=e;this._setSubscription(t,(0,a.A)((0,a.A)({},n),{},{state:"pending"}))})):this._updateSubscriptions()}_setSubscription(e,t){var n;const r=null===(n=this._subscriptionsByHash[e])||void 0===n?void 0:n.state;if(this._subscriptionsByHash[e]=t,r!==t.state){const n=this._subscriptionStateChangeCallbacksByHash[e];n&&n.forEach(e=>{try{e(t.state)}catch(n){}})}}_onSubscriptionStateChange(e,t){var n;const r=this._subscriptionHashByClientSubscriptionId[e];if(null==r)return()=>{};const i=(n=this._subscriptionStateChangeCallbacksByHash)[r]||(n[r]=new Set);return i.add(t),()=>{i.delete(t),0===i.size&&delete this._subscriptionStateChangeCallbacksByHash[r]}}async _updateSubscriptions(){if(0===Object.keys(this._subscriptionsByHash).length)return void(this._rpcWebSocketConnected&&(this._rpcWebSocketConnected=!1,this._rpcWebSocketIdleTimeout=setTimeout(()=>{this._rpcWebSocketIdleTimeout=null;try{this._rpcWebSocket.close()}catch(e){e instanceof Error&&console.log("Error when closing socket connection: ".concat(e.message))}},500)));if(null!==this._rpcWebSocketIdleTimeout&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketConnected=!0),!this._rpcWebSocketConnected)return void this._rpcWebSocket.connect();const e=this._rpcWebSocketGeneration,t=()=>e===this._rpcWebSocketGeneration;await Promise.all(Object.keys(this._subscriptionsByHash).map(async e=>{const n=this._subscriptionsByHash[e];if(void 0!==n)switch(n.state){case"pending":case"unsubscribed":if(0===n.callbacks.size)return delete this._subscriptionsByHash[e],"unsubscribed"===n.state&&delete this._subscriptionCallbacksByServerSubscriptionId[n.serverSubscriptionId],void await this._updateSubscriptions();await(async()=>{const{args:r,method:i}=n;try{this._setSubscription(e,(0,a.A)((0,a.A)({},n),{},{state:"subscribing"}));const t=await this._rpcWebSocket.call(i,r);this._setSubscription(e,(0,a.A)((0,a.A)({},n),{},{serverSubscriptionId:t,state:"subscribed"})),this._subscriptionCallbacksByServerSubscriptionId[t]=n.callbacks,await this._updateSubscriptions()}catch(o){if(console.error("Received ".concat(o instanceof Error?"":"JSON-RPC ","error calling `").concat(i,"`"),{args:r,error:o}),!t())return;this._setSubscription(e,(0,a.A)((0,a.A)({},n),{},{state:"pending"})),await this._updateSubscriptions()}})();break;case"subscribed":0===n.callbacks.size&&await(async()=>{const{serverSubscriptionId:r,unsubscribeMethod:i}=n;if(this._subscriptionsAutoDisposedByRpc.has(r))this._subscriptionsAutoDisposedByRpc.delete(r);else{this._setSubscription(e,(0,a.A)((0,a.A)({},n),{},{state:"unsubscribing"})),this._setSubscription(e,(0,a.A)((0,a.A)({},n),{},{state:"unsubscribing"}));try{await this._rpcWebSocket.call(i,[r])}catch(o){if(o instanceof Error&&console.error("".concat(i," error:"),o.message),!t())return;return this._setSubscription(e,(0,a.A)((0,a.A)({},n),{},{state:"subscribed"})),void await this._updateSubscriptions()}}this._setSubscription(e,(0,a.A)((0,a.A)({},n),{},{state:"unsubscribed"})),await this._updateSubscriptions()})()}}))}_handleServerNotification(e,t){const n=this._subscriptionCallbacksByServerSubscriptionId[e];void 0!==n&&n.forEach(e=>{try{e(...t)}catch(n){console.error(n)}})}_wsOnAccountNotification(e){const{result:t,subscription:n}=Br(e,gs);this._handleServerNotification(n,[t.value,t.context])}_makeSubscription(e,t){const n=this._nextClientSubscriptionId++,r=po([e.method,t]),i=this._subscriptionsByHash[r];return void 0===i?this._subscriptionsByHash[r]=(0,a.A)((0,a.A)({},e),{},{args:t,callbacks:new Set([e.callback]),state:"pending"}):i.callbacks.add(e.callback),this._subscriptionHashByClientSubscriptionId[n]=r,this._subscriptionDisposeFunctionsByClientSubscriptionId[n]=async()=>{delete this._subscriptionDisposeFunctionsByClientSubscriptionId[n],delete this._subscriptionHashByClientSubscriptionId[n];const t=this._subscriptionsByHash[r];Ni(void 0!==t,"Could not find a `Subscription` when tearing down client subscription #".concat(n)),t.callbacks.delete(e.callback),await this._updateSubscriptions()},this._updateSubscriptions(),n}onAccountChange(e,t,n){const{commitment:r,config:i}=Eo(n),o=this._buildArgs([e.toBase58()],r||this._commitment||"finalized","base64",i);return this._makeSubscription({callback:t,method:"accountSubscribe",unsubscribeMethod:"accountUnsubscribe"},o)}async removeAccountChangeListener(e){await this._unsubscribeClientSubscription(e,"account change")}_wsOnProgramAccountNotification(e){const{result:t,subscription:n}=Br(e,bs);this._handleServerNotification(n,[{accountId:t.value.pubkey,accountInfo:t.value.account},t.context])}onProgramAccountChange(e,t,n,r){const{commitment:i,config:o}=Eo(n),s=this._buildArgs([e.toBase58()],i||this._commitment||"finalized","base64",o||(r?{filters:So(r)}:void 0));return this._makeSubscription({callback:t,method:"programSubscribe",unsubscribeMethod:"programUnsubscribe"},s)}async removeProgramAccountChangeListener(e){await this._unsubscribeClientSubscription(e,"program account change")}onLogs(e,t,n){const r=this._buildArgs(["object"===typeof e?{mentions:[e.toString()]}:e],n||this._commitment||"finalized");return this._makeSubscription({callback:t,method:"logsSubscribe",unsubscribeMethod:"logsUnsubscribe"},r)}async removeOnLogsListener(e){await this._unsubscribeClientSubscription(e,"logs")}_wsOnLogsNotification(e){const{result:t,subscription:n}=Br(e,la);this._handleServerNotification(n,[t.value,t.context])}_wsOnSlotNotification(e){const{result:t,subscription:n}=Br(e,ws);this._handleServerNotification(n,[t])}onSlotChange(e){return this._makeSubscription({callback:e,method:"slotSubscribe",unsubscribeMethod:"slotUnsubscribe"},[])}async removeSlotChangeListener(e){await this._unsubscribeClientSubscription(e,"slot change")}_wsOnSlotUpdatesNotification(e){const{result:t,subscription:n}=Br(e,xs);this._handleServerNotification(n,[t])}onSlotUpdate(e){return this._makeSubscription({callback:e,method:"slotsUpdatesSubscribe",unsubscribeMethod:"slotsUpdatesUnsubscribe"},[])}async removeSlotUpdateListener(e){await this._unsubscribeClientSubscription(e,"slot update")}async _unsubscribeClientSubscription(e,t){const n=this._subscriptionDisposeFunctionsByClientSubscriptionId[e];n?await n():console.warn("Ignored unsubscribe request because an active subscription with id "+"`".concat(e,"` for '").concat(t,"' events ")+"could not be found.")}_buildArgs(e,t,n,r){const i=t||this._commitment;if(i||n||r){let t={};n&&(t.encoding=n),i&&(t.commitment=i),r&&(t=Object.assign(t,r)),e.push(t)}return e}_buildArgsAtLeastConfirmed(e,t,n,r){const i=t||this._commitment;if(i&&!["confirmed","finalized"].includes(i))throw new Error("Using Connection with default commitment: `"+this._commitment+"`, but method requires at least `confirmed`");return this._buildArgs(e,t,n,r)}_wsOnSignatureNotification(e){const{result:t,subscription:n}=Br(e,As);"receivedSignature"!==t.value&&this._subscriptionsAutoDisposedByRpc.add(n),this._handleServerNotification(n,"receivedSignature"===t.value?[{type:"received"},t.context]:[{type:"status",result:t.value},t.context])}onSignature(e,t,n){const r=this._buildArgs([e],n||this._commitment||"finalized"),i=this._makeSubscription({callback:(e,n)=>{if("status"===e.type){t(e.result,n);try{this.removeSignatureListener(i)}catch(r){}}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},r);return i}onSignatureWithOptions(e,t,n){const r=(0,a.A)((0,a.A)({},n),{},{commitment:n&&n.commitment||this._commitment||"finalized"}),{commitment:i}=r,o=(0,qe.A)(r,hi),s=this._buildArgs([e],i,void 0,o),c=this._makeSubscription({callback:(e,n)=>{t(e,n);try{this.removeSignatureListener(c)}catch(r){}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},s);return c}async removeSignatureListener(e){await this._unsubscribeClientSubscription(e,"signature result")}_wsOnRootNotification(e){const{result:t,subscription:n}=Br(e,ks);this._handleServerNotification(n,[t])}onRootChange(e){return this._makeSubscription({callback:e,method:"rootSubscribe",unsubscribeMethod:"rootUnsubscribe"},[])}async removeRootChangeListener(e){await this._unsubscribeClientSubscription(e,"root change")}}class ha{constructor(e){this._keypair=void 0,this._keypair=null!==e&&void 0!==e?e:fi()}static generate(){return new ha(fi())}static fromSecretKey(e,t){if(64!==e.byteLength)throw new Error("bad secret key size");const n=e.slice(32,64);if(!t||!t.skipValidation){const t=e.slice(0,32),r=pi(t);for(let e=0;e<32;e++)if(n[e]!==r[e])throw new Error("provided secretKey is invalid")}return new ha({publicKey:n,secretKey:e})}static fromSeed(e){const t=pi(e),n=new Uint8Array(64);return n.set(e),n.set(t,32),new ha({publicKey:t,secretKey:n})}get publicKey(){return new ki(this._keypair.publicKey)}get secretKey(){return new Uint8Array(this._keypair.secretKey)}}const fa=Object.freeze({CreateLookupTable:{index:0,layout:er.w3([er.DH("instruction"),oo("recentSlot"),er.u8("bumpSeed")])},FreezeLookupTable:{index:1,layout:er.w3([er.DH("instruction")])},ExtendLookupTable:{index:2,layout:er.w3([er.DH("instruction"),oo(),er.O6(Mi(),er.cY(er.DH(),-8),"addresses")])},DeactivateLookupTable:{index:3,layout:er.w3([er.DH("instruction")])},CloseLookupTable:{index:4,layout:er.w3([er.DH("instruction")])}});class pa{constructor(){}static createLookupTable(e){const[t,n]=ki.findProgramAddressSync([e.authority.toBuffer(),Ar().encode(e.recentSlot)],this.programId),r=eo(fa.CreateLookupTable,{recentSlot:BigInt(e.recentSlot),bumpSeed:n}),i=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:e.authority,isSigner:!0,isWritable:!1},{pubkey:e.payer,isSigner:!0,isWritable:!0},{pubkey:ao.programId,isSigner:!1,isWritable:!1}];return[new Wi({programId:this.programId,keys:i,data:r}),t]}static freezeLookupTable(e){const t=eo(fa.FreezeLookupTable),n=[{pubkey:e.lookupTable,isSigner:!1,isWritable:!0},{pubkey:e.authority,isSigner:!0,isWritable:!1}];return new Wi({programId:this.programId,keys:n,data:t})}static extendLookupTable(e){const t=eo(fa.ExtendLookupTable,{addresses:e.addresses.map(e=>e.toBytes())}),n=[{pubkey:e.lookupTable,isSigner:!1,isWritable:!0},{pubkey:e.authority,isSigner:!0,isWritable:!1}];return e.payer&&n.push({pubkey:e.payer,isSigner:!0,isWritable:!0},{pubkey:ao.programId,isSigner:!1,isWritable:!1}),new Wi({programId:this.programId,keys:n,data:t})}static deactivateLookupTable(e){const t=eo(fa.DeactivateLookupTable),n=[{pubkey:e.lookupTable,isSigner:!1,isWritable:!0},{pubkey:e.authority,isSigner:!0,isWritable:!1}];return new Wi({programId:this.programId,keys:n,data:t})}static closeLookupTable(e){const t=eo(fa.CloseLookupTable),n=[{pubkey:e.lookupTable,isSigner:!1,isWritable:!0},{pubkey:e.authority,isSigner:!0,isWritable:!1},{pubkey:e.recipient,isSigner:!1,isWritable:!0}];return new Wi({programId:this.programId,keys:n,data:t})}}pa.programId=new ki("AddressLookupTab1e1111111111111111111111111");const ma=Object.freeze({RequestUnits:{index:0,layout:er.w3([er.u8("instruction"),er.DH("units"),er.DH("additionalFee")])},RequestHeapFrame:{index:1,layout:er.w3([er.u8("instruction"),er.DH("bytes")])},SetComputeUnitLimit:{index:2,layout:er.w3([er.u8("instruction"),er.DH("units")])},SetComputeUnitPrice:{index:3,layout:er.w3([er.u8("instruction"),oo("microLamports")])}});class ga{constructor(){}static requestUnits(e){const t=eo(ma.RequestUnits,e);return new Wi({keys:[],programId:this.programId,data:t})}static requestHeapFrame(e){const t=eo(ma.RequestHeapFrame,e);return new Wi({keys:[],programId:this.programId,data:t})}static setComputeUnitLimit(e){const t=eo(ma.SetComputeUnitLimit,e);return new Wi({keys:[],programId:this.programId,data:t})}static setComputeUnitPrice(e){const t=eo(ma.SetComputeUnitPrice,{microLamports:BigInt(e.microLamports)});return new Wi({keys:[],programId:this.programId,data:t})}}ga.programId=new ki("ComputeBudget111111111111111111111111111111");const ya=er.w3([er.u8("numSignatures"),er.u8("padding"),er.NX("signatureOffset"),er.NX("signatureInstructionIndex"),er.NX("publicKeyOffset"),er.NX("publicKeyInstructionIndex"),er.NX("messageDataOffset"),er.NX("messageDataSize"),er.NX("messageInstructionIndex")]);class ba{constructor(){}static createInstructionWithPublicKey(e){const{publicKey:t,message:n,signature:r,instructionIndex:i}=e;Ni(32===t.length,"Public Key must be ".concat(32," bytes but received ").concat(t.length," bytes")),Ni(64===r.length,"Signature must be ".concat(64," bytes but received ").concat(r.length," bytes"));const o=ya.span,s=o+t.length,a=s+r.length,c=$n.Buffer.alloc(a+n.length),l=null==i?65535:i;return ya.encode({numSignatures:1,padding:0,signatureOffset:s,signatureInstructionIndex:l,publicKeyOffset:o,publicKeyInstructionIndex:l,messageDataOffset:a,messageDataSize:n.length,messageInstructionIndex:l},c),c.fill(t,o),c.fill(r,s),c.fill(n,a),new Wi({keys:[],programId:ba.programId,data:c})}static createInstructionWithPrivateKey(e){const{privateKey:t,message:n,instructionIndex:r}=e;Ni(64===t.length,"Private key must be ".concat(64," bytes but received ").concat(t.length," bytes"));try{const e=ha.fromSecretKey(t),i=e.publicKey.toBytes(),o=gi(n,e.secretKey);return this.createInstructionWithPublicKey({publicKey:i,message:n,signature:o,instructionIndex:r})}catch(i){throw new Error("Error creating instruction; ".concat(i))}}}ba.programId=new ki("Ed25519SigVerify111111111111111111111111111");ci.secp256k1.utils.isValidPrivateKey;const va=ci.secp256k1.getPublicKey,wa=er.w3([er.u8("numSignatures"),er.NX("signatureOffset"),er.u8("signatureInstructionIndex"),er.NX("ethAddressOffset"),er.u8("ethAddressInstructionIndex"),er.NX("messageDataOffset"),er.NX("messageDataSize"),er.u8("messageInstructionIndex"),er.av(20,"ethAddress"),er.av(64,"signature"),er.u8("recoveryId")]);class _a{constructor(){}static publicKeyToEthAddress(e){Ni(64===e.length,"Public key must be ".concat(64," bytes but received ").concat(e.length," bytes"));try{return $n.Buffer.from((0,ai.lY)(bi(e))).slice(-20)}catch(t){throw new Error("Error constructing Ethereum address: ".concat(t))}}static createInstructionWithPublicKey(e){const{publicKey:t,message:n,signature:r,recoveryId:i,instructionIndex:o}=e;return _a.createInstructionWithEthAddress({ethAddress:_a.publicKeyToEthAddress(t),message:n,signature:r,recoveryId:i,instructionIndex:o})}static createInstructionWithEthAddress(e){const{ethAddress:t,message:n,signature:r,recoveryId:i,instructionIndex:o=0}=e;let s;s="string"===typeof t?t.startsWith("0x")?$n.Buffer.from(t.substr(2),"hex"):$n.Buffer.from(t,"hex"):t,Ni(20===s.length,"Address must be ".concat(20," bytes but received ").concat(s.length," bytes"));const a=12+s.length,c=a+r.length+1,l=$n.Buffer.alloc(wa.span+n.length);return wa.encode({numSignatures:1,signatureOffset:a,signatureInstructionIndex:o,ethAddressOffset:12,ethAddressInstructionIndex:o,messageDataOffset:c,messageDataSize:n.length,messageInstructionIndex:o,signature:bi(r),ethAddress:bi(s),recoveryId:i},l),l.fill(bi(n),wa.span),new Wi({keys:[],programId:_a.programId,data:l})}static createInstructionWithPrivateKey(e){const{privateKey:t,message:n,instructionIndex:r}=e;Ni(32===t.length,"Private key must be ".concat(32," bytes but received ").concat(t.length," bytes"));try{const e=bi(t),i=va(e,!1).slice(1),o=$n.Buffer.from((0,ai.lY)(bi(n))),[s,a]=((e,t)=>{const n=ci.secp256k1.sign(e,t);return[n.toCompactRawBytes(),n.recovery]})(o,e);return this.createInstructionWithPublicKey({publicKey:i,message:n,signature:s,recoveryId:a,instructionIndex:r})}catch(i){throw new Error("Error creating instruction; ".concat(i))}}}var xa;_a.programId=new ki("KeccakSecp256k11111111111111111111111111111");const Aa=new ki("StakeConfig11111111111111111111111111111111");class ka{constructor(e,t,n){this.unixTimestamp=void 0,this.epoch=void 0,this.custodian=void 0,this.unixTimestamp=e,this.epoch=t,this.custodian=n}}xa=ka,ka.default=new xa(0,0,ki.default);const Ea=Object.freeze({Initialize:{index:0,layout:er.w3([er.DH("instruction"),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"authorized";return er.w3([Mi("staker"),Mi("withdrawer")],e)}(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"lockup";return er.w3([er.Wg("unixTimestamp"),er.Wg("epoch"),Mi("custodian")],e)}()])},Authorize:{index:1,layout:er.w3([er.DH("instruction"),Mi("newAuthorized"),er.DH("stakeAuthorizationType")])},Delegate:{index:2,layout:er.w3([er.DH("instruction")])},Split:{index:3,layout:er.w3([er.DH("instruction"),er.Wg("lamports")])},Withdraw:{index:4,layout:er.w3([er.DH("instruction"),er.Wg("lamports")])},Deactivate:{index:5,layout:er.w3([er.DH("instruction")])},Merge:{index:7,layout:er.w3([er.DH("instruction")])},AuthorizeWithSeed:{index:8,layout:er.w3([er.DH("instruction"),Mi("newAuthorized"),er.DH("stakeAuthorizationType"),Ti("authoritySeed"),Mi("authorityOwner")])}});Object.freeze({Staker:{index:0},Withdrawer:{index:1}});class Sa{constructor(){}static initialize(e){const{stakePubkey:t,authorized:n,lockup:r}=e,i=r||ka.default,o=eo(Ea.Initialize,{authorized:{staker:bi(n.staker.toBuffer()),withdrawer:bi(n.withdrawer.toBuffer())},lockup:{unixTimestamp:i.unixTimestamp,epoch:i.epoch,custodian:bi(i.custodian.toBuffer())}}),s={keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:Gi,isSigner:!1,isWritable:!1}],programId:this.programId,data:o};return new Wi(s)}static createAccountWithSeed(e){const t=new Ki;t.add(ao.createAccountWithSeed({fromPubkey:e.fromPubkey,newAccountPubkey:e.stakePubkey,basePubkey:e.basePubkey,seed:e.seed,lamports:e.lamports,space:this.space,programId:this.programId}));const{stakePubkey:n,authorized:r,lockup:i}=e;return t.add(this.initialize({stakePubkey:n,authorized:r,lockup:i}))}static createAccount(e){const t=new Ki;t.add(ao.createAccount({fromPubkey:e.fromPubkey,newAccountPubkey:e.stakePubkey,lamports:e.lamports,space:this.space,programId:this.programId}));const{stakePubkey:n,authorized:r,lockup:i}=e;return t.add(this.initialize({stakePubkey:n,authorized:r,lockup:i}))}static delegate(e){const{stakePubkey:t,authorizedPubkey:n,votePubkey:r}=e,i=eo(Ea.Delegate);return(new Ki).add({keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!1},{pubkey:$i,isSigner:!1,isWritable:!1},{pubkey:Ji,isSigner:!1,isWritable:!1},{pubkey:Aa,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:i})}static authorize(e){const{stakePubkey:t,authorizedPubkey:n,newAuthorizedPubkey:r,stakeAuthorizationType:i,custodianPubkey:o}=e,s=eo(Ea.Authorize,{newAuthorized:bi(r.toBuffer()),stakeAuthorizationType:i.index}),a=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:$i,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}];return o&&a.push({pubkey:o,isSigner:!0,isWritable:!1}),(new Ki).add({keys:a,programId:this.programId,data:s})}static authorizeWithSeed(e){const{stakePubkey:t,authorityBase:n,authoritySeed:r,authorityOwner:i,newAuthorizedPubkey:o,stakeAuthorizationType:s,custodianPubkey:a}=e,c=eo(Ea.AuthorizeWithSeed,{newAuthorized:bi(o.toBuffer()),stakeAuthorizationType:s.index,authoritySeed:r,authorityOwner:bi(i.toBuffer())}),l=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1},{pubkey:$i,isSigner:!1,isWritable:!1}];return a&&l.push({pubkey:a,isSigner:!0,isWritable:!1}),(new Ki).add({keys:l,programId:this.programId,data:c})}static splitInstruction(e){const{stakePubkey:t,authorizedPubkey:n,splitStakePubkey:r,lamports:i}=e,o=eo(Ea.Split,{lamports:i});return new Wi({keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:o})}static split(e,t){const n=new Ki;return n.add(ao.createAccount({fromPubkey:e.authorizedPubkey,newAccountPubkey:e.splitStakePubkey,lamports:t,space:this.space,programId:this.programId})),n.add(this.splitInstruction(e))}static splitWithSeed(e,t){const{stakePubkey:n,authorizedPubkey:r,splitStakePubkey:i,basePubkey:o,seed:s,lamports:a}=e,c=new Ki;return c.add(ao.allocate({accountPubkey:i,basePubkey:o,seed:s,space:this.space,programId:this.programId})),t&&t>0&&c.add(ao.transfer({fromPubkey:e.authorizedPubkey,toPubkey:i,lamports:t})),c.add(this.splitInstruction({stakePubkey:n,authorizedPubkey:r,splitStakePubkey:i,lamports:a}))}static merge(e){const{stakePubkey:t,sourceStakePubKey:n,authorizedPubkey:r}=e,i=eo(Ea.Merge);return(new Ki).add({keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:$i,isSigner:!1,isWritable:!1},{pubkey:Ji,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}],programId:this.programId,data:i})}static withdraw(e){const{stakePubkey:t,authorizedPubkey:n,toPubkey:r,lamports:i,custodianPubkey:o}=e,s=eo(Ea.Withdraw,{lamports:i}),a=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:$i,isSigner:!1,isWritable:!1},{pubkey:Ji,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return o&&a.push({pubkey:o,isSigner:!0,isWritable:!1}),(new Ki).add({keys:a,programId:this.programId,data:s})}static deactivate(e){const{stakePubkey:t,authorizedPubkey:n}=e,r=eo(Ea.Deactivate);return(new Ki).add({keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:$i,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:r})}}Sa.programId=new ki("Stake11111111111111111111111111111111111111"),Sa.space=200;const Pa=Object.freeze({InitializeAccount:{index:0,layout:er.w3([er.DH("instruction"),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"voteInit";return er.w3([Mi("nodePubkey"),Mi("authorizedVoter"),Mi("authorizedWithdrawer"),er.u8("commission")],e)}()])},Authorize:{index:1,layout:er.w3([er.DH("instruction"),Mi("newAuthorized"),er.DH("voteAuthorizationType")])},Withdraw:{index:3,layout:er.w3([er.DH("instruction"),er.Wg("lamports")])},UpdateValidatorIdentity:{index:4,layout:er.w3([er.DH("instruction")])},AuthorizeWithSeed:{index:10,layout:er.w3([er.DH("instruction"),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"voteAuthorizeWithSeedArgs";return er.w3([er.DH("voteAuthorizationType"),Mi("currentAuthorityDerivedKeyOwnerPubkey"),Ti("currentAuthorityDerivedKeySeed"),Mi("newAuthorized")],e)}()])}});Object.freeze({Voter:{index:0},Withdrawer:{index:1}});class Ca{constructor(){}static initializeAccount(e){const{votePubkey:t,nodePubkey:n,voteInit:r}=e,i=eo(Pa.InitializeAccount,{voteInit:{nodePubkey:bi(r.nodePubkey.toBuffer()),authorizedVoter:bi(r.authorizedVoter.toBuffer()),authorizedWithdrawer:bi(r.authorizedWithdrawer.toBuffer()),commission:r.commission}}),o={keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:Gi,isSigner:!1,isWritable:!1},{pubkey:$i,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:i};return new Wi(o)}static createAccount(e){const t=new Ki;return t.add(ao.createAccount({fromPubkey:e.fromPubkey,newAccountPubkey:e.votePubkey,lamports:e.lamports,space:this.space,programId:this.programId})),t.add(this.initializeAccount({votePubkey:e.votePubkey,nodePubkey:e.voteInit.nodePubkey,voteInit:e.voteInit}))}static authorize(e){const{votePubkey:t,authorizedPubkey:n,newAuthorizedPubkey:r,voteAuthorizationType:i}=e,o=eo(Pa.Authorize,{newAuthorized:bi(r.toBuffer()),voteAuthorizationType:i.index}),s=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:$i,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return(new Ki).add({keys:s,programId:this.programId,data:o})}static authorizeWithSeed(e){const{currentAuthorityDerivedKeyBasePubkey:t,currentAuthorityDerivedKeyOwnerPubkey:n,currentAuthorityDerivedKeySeed:r,newAuthorizedPubkey:i,voteAuthorizationType:o,votePubkey:s}=e,a=eo(Pa.AuthorizeWithSeed,{voteAuthorizeWithSeedArgs:{currentAuthorityDerivedKeyOwnerPubkey:bi(n.toBuffer()),currentAuthorityDerivedKeySeed:r,newAuthorized:bi(i.toBuffer()),voteAuthorizationType:o.index}}),c=[{pubkey:s,isSigner:!1,isWritable:!0},{pubkey:$i,isSigner:!1,isWritable:!1},{pubkey:t,isSigner:!0,isWritable:!1}];return(new Ki).add({keys:c,programId:this.programId,data:a})}static withdraw(e){const{votePubkey:t,authorizedWithdrawerPubkey:n,lamports:r,toPubkey:i}=e,o=eo(Pa.Withdraw,{lamports:r}),s=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}];return(new Ki).add({keys:s,programId:this.programId,data:o})}static safeWithdraw(e,t,n){if(e.lamports>t-n)throw new Error("Withdraw will leave vote account with insufficient funds.");return Ca.withdraw(e)}static updateValidatorIdentity(e){const{votePubkey:t,authorizedWithdrawerPubkey:n,nodePubkey:r}=e,i=eo(Pa.UpdateValidatorIdentity),o=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!0,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return(new Ki).add({keys:o,programId:this.programId,data:i})}}Ca.programId=new ki("Vote111111111111111111111111111111111111111"),Ca.space=3762;new ki("Va1idator1nfo111111111111111111111111111111"),Jr({name:Vr(),website:Kr(Vr()),details:Kr(Vr()),iconUrl:Kr(Vr()),keybaseUsername:Kr(Vr())});new ki("Vote111111111111111111111111111111111111111"),er.w3([Mi("nodePubkey"),Mi("authorizedWithdrawer"),er.u8("commission"),er.I0(),er.O6(er.w3([er.I0("slot"),er.DH("confirmationCount")]),er.cY(er.DH(),-8),"votes"),er.u8("rootSlotValid"),er.I0("rootSlot"),er.I0(),er.O6(er.w3([er.I0("epoch"),Mi("authorizedVoter")]),er.cY(er.DH(),-8),"authorizedVoters"),er.w3([er.O6(er.w3([Mi("authorizedPubkey"),er.I0("epochOfLastAuthorizedSwitch"),er.I0("targetEpoch")]),32,"buf"),er.I0("idx"),er.u8("isEmpty")],"priorVoters"),er.I0(),er.O6(er.w3([er.I0("epoch"),er.I0("credits"),er.I0("prevCredits")]),er.cY(er.DH(),-8),"epochCredits"),er.w3([er.I0("slot"),er.I0("timestamp")],"lastTimestamp")]);Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var Ia={"Ethereum Mainnet":"eip155:1","Linea Mainnet":"eip155:59144","Arbitrum One":"eip155:42161","Avalanche Network C-Chain":"eip155:43114","BNB Chain":"eip155:56","OP Mainnet":"eip155:10","Polygon Mainnet":"eip155:137","zkSync Era Mainnet":"eip155:324","Base Mainnet":"eip155:8453","Solana Mainnet":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"},Ma=["wallet_registerOnboarding","wallet_scanQRCode"],Ta=["wallet_addEthereumChain"],Oa=["wallet_switchEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_revokePermissions","eth_requestAccounts","eth_accounts","eth_coinbase","net_version","metamask_logWeb3ShimUsage","metamask_getProviderState","metamask_sendDomainMetadata","wallet_registerOnboarding"],Ra=(cn.MetaMaskOpenRPCDocument.methods.map(e=>{let{name:t}=e;return t}).filter(e=>!Ta.includes(e)).filter(e=>!Ma.includes(e)).filter(e=>!Oa.includes(e)),Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,{}),Ba={},Na=e=>{if(Ba.stringToBase64)return Ba.stringToBase64(e);if("undefined"!==typeof btoa)return btoa(e);throw new Error("No base64 encoder configured. Call setPlatformAdapter() first.")};const Ua=()=>{const e=Ra;return{endpoints:[...e.heliusApiKey?["https://api.helius-rpc.com/?api-key=".concat(e.heliusApiKey)]:[],...{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_HELIUS_API_KEY?["https://api.helius-rpc.com/?api-key=".concat({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_HELIUS_API_KEY)]:[],"https://api.devnet.solana.com","https://api.mainnet-beta.solana.com"],commitment:"confirmed",fallbackBlockhash:"EETubP5AKHgjPAhzPAFcb8BAY1hMH639CWCFTqi3hq1k"}},ja=async e=>{const t=Ua(),n=new ki(e);let r,i;for(const c of t.endpoints)try{const e=new da(c,t.commitment);r=(await e.getLatestBlockhash()).blockhash,console.log("Successfully connected to Solana RPC endpoint");break}catch(a){console.error("Failed to connect to RPC endpoint:",a),i=a}r||(console.warn("All RPC endpoints failed, using fallback blockhash"),r=t.fallbackBlockhash,console.error("Original error:",i));const o=new Ki;o.recentBlockhash=r,o.feePayer=n,o.add(ao.transfer({fromPubkey:n,toPubkey:n,lamports:1e3}));const s=o.serialize({verifySignatures:!1});return(e=>{if(Ba.uint8ArrayToBase64)return Ba.uint8ArrayToBase64(e);let t="";for(let n=0;n<e.length;n+=2048){const r=e.slice(n,n+2048);t+=String.fromCharCode.apply(null,Array.from(r))}if("undefined"!==typeof btoa)return btoa(t);throw new Error("No base64 encoder configured. Call setPlatformAdapter() first.")})(new Uint8Array(s))},La=ln();function Fa(t){var n,r,i,o,s,c,l,u;let{scope:d,details:h}=t;const{accounts:f}=h,p=(0,e.useCallback)(e=>{const t={},n={},r={};Object.entries(e.sessionScopes).forEach(e=>{var i;let[o,s]=e;null!==(i=s.accounts)&&void 0!==i&&i[0]&&(n[o]=s.accounts[0]);if(o.startsWith("eip155:")){t[o]="eth_blockNumber";const e=null===La||void 0===La?void 0:La.methods.find(e=>"eth_blockNumber"===e.name),n=(e=>({method:"wallet_invokeMethod",params:{scope:o,request:e}}))(Pn(e));r[o]=JSON.stringify(n,null,2)}}),A(r),P(t),E(n)},[]),m=(0,e.useCallback)(e=>{var t;null!==(t=e.params)&&void 0!==t&&t.sessionScopes&&p({sessionScopes:e.params.sessionScopes})},[p]),{invokeMethod:g,session:y}=Dn();(0,e.useEffect)(()=>{m(y)},[y,m]);const[b,v]=(0,e.useState)({}),[w,_]=(0,e.useState)(null!==f&&void 0!==f&&f.length?f[0]:void 0),[x,A]=(0,e.useState)({}),[k,E]=(0,e.useState)({[d]:null!==f&&void 0!==f&&f.length&&null!==(n=f[0])&&void 0!==n?n:null}),[S,P]=(0,e.useState)({}),C=(e=>{const t=Object.entries(_n).find(t=>{let[n,r]=t;return r===e});return t?t[0]:e})(d),I=null!==(r=null===f||void 0===f?void 0:f.length)&&void 0!==r?r:0,M=async(e,t,n)=>{if(!e.startsWith("solana:"))throw new Error('Invalid CAIP chain ID. It must start with "solana:"');const r=await(async(e,t)=>{switch(e){case"signMessage":return{params:{account:{address:t},message:Na("Hello, world!")}};case"signTransaction":case"signAndSendTransaction":return{params:{account:{address:t},transaction:await ja(t),scope:Ia["Solana Mainnet"]}};case"signAllTransactions":return{params:{account:{address:t},transactions:[await ja(t),await ja(t)],scope:Ia["Solana Mainnet"]}};case"signIn":return{params:{address:t,domain:Ba.getHostname?Ba.getHostname():"undefined"!==typeof window&&window.location?window.location.host:"metamask.io",statement:"Please sign in."}};case"getGenesisHash":return{params:{}};default:return{}}})(n,t),i={method:"wallet_invokeMethod",params:{scope:e,request:(0,a.A)({method:n},r)}};A(t=>(0,a.A)((0,a.A)({},t),{},{[e]:JSON.stringify(i,null,2)}))},T=async(e,t)=>{const n=e.target.value;P(e=>(0,a.A)((0,a.A)({},e),{},{[t]:n}));const r=k[t];if(r)if(t.startsWith("solana:"))await M(t,(0,un.Dz)(r).address,n);else{const e=null===La||void 0===La?void 0:La.methods.find(e=>e.name===n);if(e){let i=Pn(e);n in xn&&(i=((e,t,n,r)=>{const{address:i}=(0,un.Dz)(n),{reference:o}=(0,un.rW)(r);if(!(e in xn)||"object"!==typeof t||null===t||!("method"in t)||!("params"in t)||!Array.isArray(t.params))return t;switch(e){case"eth_sendTransaction":if(t.params.length>0&&"object"===typeof t.params[0]&&null!==t.params[0])return wn(vn({},t),{params:[wn(vn({},t.params[0]),{from:i,to:i,value:"0x0"}),...t.params.slice(1)]});break;case"personal_sign":if(t.params.length>=2)return wn(vn({},t),{params:[t.params[0],i,...t.params.slice(2)]});break;case"eth_signTypedData_v4":if(t.params.length>=2&&"object"===typeof t.params[1]&&null!==t.params[1]){const e=t.params[1];if("object"===typeof e&&null!==e&&"domain"in e&&"object"===typeof e.domain&&null!==e.domain)return wn(vn({},t),{params:[i,wn(vn({},e),{domain:wn(vn({},e.domain),{chainId:o})})]})}break;case"eth_getBalance":return wn(vn({},t),{params:[i,"latest"]});case"wallet_sendCalls":{const e=t.params[0];if("object"===typeof e)return wn(vn({},t),{params:[wn(vn({},e),{chainId:(0,yt.cK)(Number(o)),from:i})]});break}case"wallet_getCapabilities":return wn(vn({},t),{params:[i,[(0,yt.cK)(Number(o))]]})}return t})(n,i,r,t));const o={method:"wallet_invokeMethod",params:{scope:t,request:i}};A(e=>(0,a.A)((0,a.A)({},e),{},{[t]:JSON.stringify(o,null,2)}))}}},O=async(e,t,n)=>{console.log("\ud83d\udd27 handleInvokeMethod called: ".concat(t," on ").concat(e));const r=x[e];if(!n&&!r)throw new Error("No request configured for method ".concat(t," on scope ").concat(e));const i=null!==n&&void 0!==n?n:JSON.parse(null!==r&&void 0!==r?r:"{}");console.log("\ud83d\udccb Request object:",i);try{const n=(e=>e.params.request.params)(i);console.log("\ud83d\udce4 Calling invokeMethod with params:",n);const r=((e,t,n)=>{if(["signMessage","signTransaction","signAllTransactions","signAndSendTransaction","signIn"].includes(e)||(null==n?void 0:n.startsWith("solana:")))return t;let r=Array.isArray(t)?t:[t];if(("eth_signTypedData_v3"===e||"eth_signTypedData_v4"===e)&&r.length>=2){const e=r[0],t=r[1];void 0!==e&&void 0!==t&&(r=[e,"string"===typeof t?t:JSON.stringify(t)])}return r})(t,n,e);console.log("\ud83d\udce4 Normalized params:",r);const o=await g({scope:e,request:{method:t,params:r}});console.log("\ud83d\udce5 Received result:",o);const s=In(i);v(n=>{const r=Cn(n,e,t,o,s);return console.log("\ud83d\udcbe Updated invoke results:",r),r})}catch(o){console.error("\u274c Error invoking method:",o);const n=In(i);v(r=>{const i=Cn(r,e,t,o,n);return console.log("\ud83d\udcbe Updated invoke results (error):",i),i})}};return(0,et.jsxs)("div",{"data-testid":Bn.card(d),className:"bg-white border border-gray-200 rounded-lg p-6 shadow-sm hover:shadow-md transition-shadow duration-200",children:[(0,et.jsx)("div",{className:"flex items-center justify-between mb-4",children:(0,et.jsx)("h3",{"data-testid":Bn.networkName(d),title:"".concat(C," (").concat(d,")"),className:"text-lg font-semibold text-gray-800 truncate",children:C})}),(0,et.jsxs)("div",{className:"mb-4",children:[(0,et.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,et.jsx)("span",{"data-testid":Bn.accountsLabel(d),className:"text-sm font-medium text-gray-600",children:"Accounts:"}),(0,et.jsxs)("span",{"data-testid":Bn.accountsBadge(d),className:"text-sm text-gray-500 bg-blue-50 text-blue-700 px-2 py-1 rounded-full",children:[I," available"]})]}),(0,et.jsxs)("select",{value:w,onChange:async e=>{const t=e.target.value;_(t),E(e=>(0,a.A)((0,a.A)({},e),{},{[d]:t}))},"data-testid":Bn.accountSelect(d),id:Bn.accountSelect(d),className:"w-full p-3 border border-gray-300 rounded-md text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 transition-colors",children:[(0,et.jsx)("option",{value:"",children:"Select an account"}),(null!==f&&void 0!==f?f:[]).map(e=>{const{address:t}=(0,un.Dz)(e);return(0,et.jsx)("option",{"data-testid":Bn.accountOption(d,String(e)),value:e,children:t},t)})]})]}),w&&(0,et.jsxs)("div",{"data-testid":Bn.activeAccount(d),className:"mt-4 p-3 bg-green-50 border border-green-200 rounded-md",children:[(0,et.jsx)("p",{className:"text-sm text-green-800 font-medium",children:"Active Account:"}),(0,et.jsx)("p",{className:"text-sm text-green-700 font-mono break-all",children:(0,un.Dz)(w).address})]}),(0,et.jsxs)("div",{className:"mb-4",children:[(0,et.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,et.jsx)("span",{"data-testid":Bn.methodsLabel(d),className:"text-sm font-medium text-gray-600",children:"Available Methods:"}),(0,et.jsxs)("span",{"data-testid":Bn.methodsBadge(d),className:"text-sm text-gray-500 bg-purple-50 text-purple-700 px-2 py-1 rounded-full",children:[null!==(i=null===(o=h.methods)||void 0===o?void 0:o.length)&&void 0!==i?i:0," available"]})]}),(0,et.jsxs)("select",{"data-testid":Bn.methodSelect(d),value:null!==(s=S[d])&&void 0!==s?s:"",onChange:async e=>{await T(e,d)},id:Bn.methodSelect(d),className:"w-full p-3 border border-gray-300 rounded-md text-sm focus:outline-none focus:ring-2 focus:ring-purple-500 focus:border-purple-500 transition-colors bg-white hover:border-gray-400",children:[(0,et.jsx)("option",{value:"",children:"Select a method to invoke"}),(null!==(c=h.methods)&&void 0!==c?c:[]).map(e=>(0,et.jsx)("option",{"data-testid":Bn.methodOption(d,e),value:e,children:e},e))]})]}),S[d]&&(0,et.jsxs)("div",{"data-testid":Bn.selectedMethod(d),className:"mt-4 p-3 bg-purple-50 border border-purple-200 rounded-md",children:[(0,et.jsx)("p",{className:"text-sm text-purple-800 font-medium",children:"Selected Method:"}),(0,et.jsx)("p",{className:"text-sm text-purple-700 font-mono",children:S[d]})]}),(0,et.jsxs)("details",{className:"mt-4 border border-gray-200 rounded-lg","data-testid":Bn.invokeCollapsible(d),id:Bn.invokeCollapsible(d),children:[(0,et.jsxs)("summary",{className:"px-4 py-3 bg-gray-50 cursor-pointer hover:bg-gray-100 transition-colors duration-150 rounded-t-lg flex items-center gap-2 font-medium text-gray-700",children:[(0,et.jsxs)("svg",{className:"w-4 h-4 transform transition-transform duration-200",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[(0,et.jsx)("title",{children:"Invoke Method"}),(0,et.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})]}),"Invoke Method Request"]}),(0,et.jsxs)("div",{className:"p-4 bg-white border-t border-gray-200",children:[(0,et.jsx)("div",{className:"mb-2",children:(0,et.jsx)("label",{htmlFor:Bn.invokeTextarea(d),className:"block text-sm font-medium text-gray-600 mb-1",children:"JSON Request:"})}),(0,et.jsx)("textarea",{"data-testid":Bn.invokeTextarea(d),value:null!==(l=x[d])&&void 0!==l?l:"",onChange:e=>A(t=>(0,a.A)((0,a.A)({},t),{},{[d]:e.target.value})),rows:12,id:Bn.invokeTextarea(d),className:"w-full p-3 font-mono text-sm border border-gray-300 rounded-md resize-y min-h-[200px] max-h-[400px] focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 bg-gray-50",placeholder:"Method request will appear here...",spellCheck:!1}),(0,et.jsx)("div",{className:"mt-2 text-xs text-gray-500",children:"Edit the JSON above to customize the request parameters before invoking the method."})]})]}),(0,et.jsxs)("button",{type:"button","data-testid":Bn.invokeBtn(d),onClick:async()=>{const e=S[d];e&&await O(d,e)},id:Bn.invokeBtn(d),disabled:!S[d]||!x[d],className:"\n w-full mt-4 px-6 py-3 rounded-lg font-medium text-white transition-all duration-200\n flex items-center justify-center gap-2\n ".concat(S[d]&&x[d]?"bg-gradient-to-r from-purple-600 to-blue-600 hover:from-purple-700 hover:to-blue-700 hover:shadow-lg hover:scale-105 active:scale-95 cursor-pointer":"bg-gray-300 cursor-not-allowed text-gray-500","\n "),children:[(0,et.jsxs)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,et.jsx)("title",{children:"Invoke Method"}),(0,et.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})]}),"Invoke Method"]}),Object.entries(null!==(u=b[d])&&void 0!==u?u:{}).map(e=>{let[t,n]=e;return n.map((e,n)=>{let{result:r,request:i}=e;const{text:o,truncated:s}=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;const n=JSON.stringify(e);return n.length<=t?{text:n,truncated:!1}:{text:n.slice(0,t),truncated:!0}}(r,150),a=r instanceof Error;return s?(0,et.jsxs)("details",{"data-testid":Bn.resultContainer(d,t,n),id:Bn.resultContainer(d,t,n),className:"mt-4 border border-gray-200 rounded-lg",children:[(0,et.jsx)("summary",{className:"px-4 py-3 cursor-pointer hover:bg-gray-50 transition-colors duration-150 rounded-t-lg ".concat(a?"bg-red-50 border-red-200":"bg-gray-50"),children:(0,et.jsxs)("div",{className:"flex items-center gap-2",children:[(0,et.jsxs)("svg",{className:"w-4 h-4 transform transition-transform duration-200",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[(0,et.jsx)("title",{children:"Scope card"}),(0,et.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})]}),(0,et.jsxs)("div",{className:"flex-1",children:[(0,et.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,et.jsx)("span",{className:"font-mono text-sm font-medium ".concat(a?"text-red-700":"text-purple-700"),children:t}),(0,et.jsx)("span",{className:"text-xs px-2 py-1 rounded-full ".concat(a?"bg-red-100 text-red-600":"bg-green-100 text-green-600"),children:a?"Error":"Success"})]}),(0,et.jsxs)("div",{className:"text-xs text-gray-500 mb-1",children:[(0,et.jsx)("span",{className:"font-medium",children:"Params:"})," ",JSON.stringify(i.params)]}),(0,et.jsxs)("div",{className:"text-xs text-gray-600 font-mono bg-gray-100 p-2 rounded",children:[o,"..."]})]})]})}),(0,et.jsxs)("div",{className:"p-4 bg-white border-t border-gray-200",children:[(0,et.jsx)("div",{className:"mb-2",children:(0,et.jsx)("div",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Full Response:"})}),(0,et.jsx)("div",{className:"relative",children:(0,et.jsx)("pre",{className:"bg-gray-50 p-4 rounded-md text-sm font-mono overflow-x-auto max-h-96 overflow-y-auto border border-gray-200 text-left",children:(0,et.jsx)("code",{"data-testid":Bn.resultCode(d,t,n),id:Bn.resultCode(d,t,n),className:a?"text-red-600":"text-gray-800",children:JSON.stringify(r,null,2)})})})]})]},"".concat(t,"-").concat(n)):(0,et.jsxs)("div",{className:"mt-4 border border-gray-200 rounded-lg bg-white","data-testid":Bn.resultContainer(d,t,n),id:Bn.resultContainer(d,t,n),children:[(0,et.jsx)("div",{className:"px-4 py-3 border-b border-gray-200 ".concat(a?"bg-red-50":"bg-gray-50"),children:(0,et.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,et.jsx)("span",{className:"font-mono text-sm font-medium ".concat(a?"text-red-700":"text-purple-700"),children:t}),(0,et.jsx)("span",{className:"text-xs px-2 py-1 rounded-full ".concat(a?"bg-red-100 text-red-600":"bg-green-100 text-green-600"),children:a?"Error":"Success"})]})}),(0,et.jsx)("div",{className:"p-4",children:(0,et.jsx)("div",{className:"relative",children:(0,et.jsx)("pre",{className:"bg-gray-50 p-4 rounded-md text-sm font-mono overflow-x-auto border border-gray-200 text-left",children:(0,et.jsx)("code",{"data-testid":Bn.resultCode(d,t,n),id:Bn.resultCode(d,t,n),className:a?"text-red-600":"text-gray-800",children:o})})})})]},"".concat(t,"-").concat(n))})})]},d)}Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;function Da(t){let{provider:n,chainId:r,accounts:i,sdk:o}=t;const[s,a]=(0,e.useState)(""),c=async e=>{console.debug("switching to network chainId=".concat(e));try{const t=await(null===n||void 0===n?void 0:n.request({method:"wallet_switchEthereumChain",params:[{chainId:e}]}));console.debug("response",t)}catch(t){console.error(t)}};return(0,et.jsxs)("div",{"data-testid":Nn.card,className:"bg-white border border-gray-200 rounded-lg p-6 shadow-sm hover:shadow-md transition-shadow duration-200",children:[(0,et.jsx)("div",{className:"flex items-center justify-between mb-4",children:(0,et.jsx)("h3",{"data-testid":Nn.title,className:"text-lg font-semibold text-gray-800 truncate",children:"Legacy EVM Connection"})}),(0,et.jsxs)("div",{className:"mb-4",children:[(0,et.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,et.jsx)("span",{"data-testid":Nn.chainIdLabel,className:"text-sm font-medium text-gray-600",children:"Connected Chain:"}),(0,et.jsx)("span",{"data-testid":Nn.chainIdValue,className:"text-sm text-gray-500 bg-blue-50 text-blue-700 px-2 py-1 rounded-full",children:r||"Not available"})]}),(0,et.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,et.jsx)("span",{"data-testid":Nn.accountsLabel,className:"text-sm font-medium text-gray-600",children:"Accounts:"}),(0,et.jsxs)("span",{"data-testid":Nn.accountsValue,className:"text-sm text-gray-500 bg-blue-50 text-blue-700 px-2 py-1 rounded-full",children:[i.length," available"]})]}),i.length>0&&(0,et.jsxs)("div",{"data-testid":Nn.activeAccount,className:"mt-2 p-3 bg-green-50 border border-green-200 rounded-md",children:[(0,et.jsx)("p",{className:"text-sm text-green-800 font-medium",children:"Active Account:"}),(0,et.jsx)("p",{className:"text-sm text-green-700 font-mono break-all",children:i[0]})]})]}),s&&(0,et.jsxs)("div",{"data-testid":Nn.responseContainer,className:"mb-4 p-3 bg-gray-50 border border-gray-200 rounded-md",children:[(0,et.jsx)("p",{"data-testid":Nn.responseLabel,className:"text-sm font-medium text-gray-600 mb-1",children:"Last Response:"}),(0,et.jsx)("p",{"data-testid":Nn.responseText,className:"text-sm text-gray-700 font-mono break-all",children:String(s)})]}),(0,et.jsxs)("div",{className:"space-y-2",children:[(0,et.jsx)("button",{type:"button","data-testid":Nn.btnRequestPermissions,onClick:async()=>{if(n)try{const e=await n.request({method:"wallet_requestPermissions",params:[]});a("Accounts: ".concat(e))}catch(e){console.error("Error requesting accounts",e),a("Error: ".concat(e instanceof Error?e.message:"Unknown error"))}else a("Provider not available")},className:"w-full bg-blue-500 text-white px-4 py-2 rounded text-sm hover:bg-blue-600 transition-colors",children:"wallet_requestPermissions"}),(0,et.jsx)("button",{type:"button","data-testid":Nn.btnSignTypedDataV4,onClick:async()=>{var e;if(!n)return void a("invalid ethereum provider");const t=await(async(e,t)=>{const n=JSON.stringify((e=>({domain:{chainId:e,name:"Ether Mail",verifyingContract:"0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC",version:"1"},message:{contents:"Hello, Bob!",attachedMoneyInEth:4.2,from:{name:"Cow",wallets:["0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826","0xDeaDbeefdEAdbeefdEadbEEFdeadbeEFdEaDbeeF"]},to:[{name:"Bob",wallets:["0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB","0xB0BdaBea57B0BDABeA57b0bdABEA57b0BDabEa57","0xB0B0b0b0b0b0B000000000000000000000000000"]}]},primaryType:"Mail",types:{EIP712Domain:[{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"}],Group:[{name:"name",type:"string"},{name:"members",type:"Person[]"}],Mail:[{name:"from",type:"Person"},{name:"to",type:"Person[]"},{name:"contents",type:"string"}],Person:[{name:"name",type:"string"},{name:"wallets",type:"address[]"}]}}))(t)),r=e.selectedAccount;console.debug("sign from: ".concat(r));try{if(!r)return void alert("Invalid account -- please connect using eth_requestAccounts first");const t=[r,n],i="eth_signTypedData_v4";return console.debug("ethRequest ".concat(i),JSON.stringify(t,null,4)),console.debug("sign params",t),await(null===e||void 0===e?void 0:e.request({method:i,params:t}))}catch(i){return console.log("eth_signTypedData_v4 error: ".concat(i)),"Error: "+i}})(n,null!==(e=null===o||void 0===o?void 0:o.selectedChainId)&&void 0!==e?e:"");a(t)},className:"w-full bg-blue-500 text-white px-4 py-2 rounded text-sm hover:bg-blue-600 transition-colors",children:"eth_signTypedData_v4"}),(0,et.jsx)("button",{type:"button","data-testid":Nn.btnPersonalSign,onClick:async()=>{if(!n)return void a("invalid ethereum provider");const e=await(async e=>{try{const t=e.selectedAccount,n="Hello World from the ".concat("Create React dapp","!"),r="0x"+$n.Buffer.from(n,"utf8").toString("hex");return await e.request({method:"personal_sign",params:[r,t,"Example password"]})}catch(t){return console.log("personal_sign error: ".concat(t)),"Error: "+t}})(n);a(e)},className:"w-full bg-blue-500 text-white px-4 py-2 rounded text-sm hover:bg-blue-600 transition-colors",children:"personal_sign"}),(0,et.jsx)("button",{type:"button","data-testid":Nn.btnSendTransaction,onClick:async()=>{if(!i[0])return void a("No account available");const e={to:"0x0000000000000000000000000000000000000000",from:i[0],value:"0x5AF3107A4000"};console.log("transactionParameters",e);try{const t=await(null===n||void 0===n?void 0:n.request({method:"eth_sendTransaction",params:[e]}));a(t)}catch(t){console.log(t),a(t instanceof Error?t.message:"Unknown error")}},className:"w-full bg-blue-500 text-white px-4 py-2 rounded text-sm hover:bg-blue-600 transition-colors",children:"Send transaction"}),"0x1"===r?(0,et.jsx)("button",{type:"button","data-testid":Nn.btnSwitchToGoerli,onClick:()=>c("0x5"),className:"w-full bg-blue-500 text-white px-4 py-2 rounded text-sm hover:bg-blue-600 transition-colors",children:"Switch to Goerli"}):(0,et.jsx)("button",{type:"button","data-testid":Nn.btnSwitchToMainnet,onClick:()=>c("0x1"),className:"w-full bg-blue-500 text-white px-4 py-2 rounded text-sm hover:bg-blue-600 transition-colors",children:"Switch to Mainnet"}),(0,et.jsx)("button",{type:"button","data-testid":Nn.btnSwitchToPolygon,onClick:()=>c("0x89"),className:"w-full bg-blue-500 text-white px-4 py-2 rounded text-sm hover:bg-blue-600 transition-colors",children:"Switch to Polygon"}),(0,et.jsx)("button",{type:"button","data-testid":Nn.btnAddPolygonChain,onClick:()=>{if(!n)throw new Error("invalid ethereum provider");n.request({method:"wallet_addEthereumChain",params:[{chainId:"0x89",chainName:"Polygon",blockExplorerUrls:["https://polygonscan.com"],nativeCurrency:{symbol:"MATIC",decimals:18},rpcUrls:["https://polygon-rpc.com/"]}]})},className:"w-full bg-blue-500 text-white px-4 py-2 rounded text-sm hover:bg-blue-600 transition-colors",children:"Add Polygon Chain"}),(0,et.jsxs)("div",{"data-testid":Nn.readOnlySection,className:"mt-4 pt-4 border-t border-gray-200",children:[(0,et.jsx)("h4",{className:"text-sm font-medium text-gray-700 mb-2",children:"Read-Only RPC Calls"}),(0,et.jsxs)("div",{className:"space-y-2",children:[(0,et.jsx)("button",{type:"button","data-testid":Nn.btnGetBalance,onClick:async()=>{if(n&&i[0])try{const e=await n.request({method:"eth_getBalance",params:[i[0],"latest"]});a("Balance: ".concat(e))}catch(e){console.error("Error getting balance",e),a("Error: ".concat(e instanceof Error?e.message:"Unknown error"))}else a("Provider or accounts not available")},className:"w-full bg-purple-500 text-white px-4 py-2 rounded text-sm hover:bg-purple-600 transition-colors",children:"eth_getBalance"}),(0,et.jsx)("button",{type:"button","data-testid":Nn.btnBlockNumber,onClick:async()=>{if(n)try{const e=await n.request({method:"eth_blockNumber",params:[]});a("Block Number: ".concat(e))}catch(e){console.error("Error getting block number",e),a("Error: ".concat(e instanceof Error?e.message:"Unknown error"))}else a("Provider not available")},className:"w-full bg-purple-500 text-white px-4 py-2 rounded text-sm hover:bg-purple-600 transition-colors",children:"eth_blockNumber"}),(0,et.jsx)("button",{type:"button","data-testid":Nn.btnGasPrice,onClick:async()=>{if(n)try{const e=await n.request({method:"eth_gasPrice",params:[]});a("Gas Price: ".concat(e))}catch(e){console.error("Error getting gas price",e),a("Error: ".concat(e instanceof Error?e.message:"Unknown error"))}else a("Provider not available")},className:"w-full bg-purple-500 text-white px-4 py-2 rounded text-sm hover:bg-purple-600 transition-colors",children:"eth_gasPrice"})]})]})]})]})}var za=n(6006),qa=n(8090);class Ha extends qa.C{constructor(e){let{value:t}=e;super("Number `".concat(t,"` is not a valid decimal number."),{name:"InvalidDecimalNumberError"})}}function Wa(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"wei";return function(e,t){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(e))throw new Ha({value:e});let[n,r="0"]=e.split(".");const i=n.startsWith("-");if(i&&(n=n.slice(1)),r=r.replace(/(0+)$/,""),0===t)1===Math.round(Number(".".concat(r)))&&(n="".concat(BigInt(n)+1n)),r="";else if(r.length>t){const[e,i,o]=[r.slice(0,t-1),r.slice(t-1,t),r.slice(t)],s=Math.round(Number("".concat(i,".").concat(o)));r=s>9?"".concat(BigInt(e)+BigInt(1),"0").padStart(e.length+1,"0"):"".concat(e).concat(s),r.length>t&&(r=r.slice(1),n="".concat(BigInt(n)+1n)),r=r.slice(0,t)}else r=r.padEnd(t,"0");return BigInt("".concat(i?"-":"").concat(n).concat(r))}(e,za.eL[t])}var Ka=n(3300);class $a extends St{constructor(){super("Provider not found."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderNotFoundError"})}}class Va extends St{constructor(e){let{connector:t}=e;super('"'.concat(t.name,'" does not support programmatic chain switching.')),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainNotSupportedError"})}}function Ga(e){return{mutationFn:t=>async function(e,t){var n,r;const{addEthereumChainParameter:i,chainId:o}=t,s=e.state.connections.get(null!==(n=null===(r=t.connector)||void 0===r?void 0:r.uid)&&void 0!==n?n:e.state.current);if(s){const e=s.connector;if(!e.switchChain)throw new Va({connector:e});return await e.switchChain({addEthereumChainParameter:i,chainId:o})}const c=e.chains.find(e=>e.id===o);if(!c)throw new Wt;return e.setState(e=>(0,a.A)((0,a.A)({},e),{},{chainId:o})),c}(e,t),mutationKey:["switchChain"]}}let Ja=[];function Za(e){const t=e.chains;return bt(Ja,t)?Ja:(Ja=t,t)}function Ya(){const t=It(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});return(0,e.useSyncExternalStore)(e=>function(e,t){const{onChange:n}=t;return e._internal.chains.subscribe((e,t)=>{n(e,t)})}(t,{onChange:e}),()=>Za(t),()=>Za(t))}const Qa=["mutate","mutateAsync"];var Xa=n(6091),ec=n(191),tc=n(8599),nc=n(4456);async function rc(e,t){var n;let{address:r,blockNumber:i,blockTag:o=(null!==(n=e.experimental_blockTag)&&void 0!==n?n:"latest")}=t;const s="bigint"===typeof i?(0,nc.cK)(i):void 0,a=await e.request({method:"eth_getBalance",params:[r,s||o]});return BigInt(a)}function ic(e,t,n){const r=e[t.name];if("function"===typeof r)return r;const i=e[n];return"function"===typeof i?i:n=>t(e,n)}function oc(e){return"number"===typeof e?e:"wei"===e?0:Math.abs(za.pj[e])}var sc=n(7131),ac=n(6351),cc=n(9521),lc=n(1588),uc=n(7412),dc=n(7871),hc=n(4617),fc=n(3467);class pc extends qa.C{constructor(e,t){let{code:n,docsPath:r,metaMessages:i,name:o,shortMessage:s}=t;super(s,{cause:e,docsPath:r,metaMessages:i||(null===e||void 0===e?void 0:e.metaMessages),name:o||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=o||e.name,this.code=e instanceof fc.J8?e.code:null!==n&&void 0!==n?n:-1}}class mc extends pc{constructor(e,t){super(e,t),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t.data}}class gc extends pc{constructor(e){super(e,{code:gc.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(gc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class yc extends pc{constructor(e){super(e,{code:yc.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(yc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class bc extends pc{constructor(e){let{method:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(e,{code:bc.code,name:"MethodNotFoundRpcError",shortMessage:"The method".concat(t?' "'.concat(t,'"'):""," does not exist / is not available.")})}}Object.defineProperty(bc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class vc extends pc{constructor(e){super(e,{code:vc.code,name:"InvalidParamsRpcError",shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join("\n")})}}Object.defineProperty(vc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class wc extends pc{constructor(e){super(e,{code:wc.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(wc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class _c extends pc{constructor(e){super(e,{code:_c.code,name:"InvalidInputRpcError",shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join("\n")})}}Object.defineProperty(_c,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class xc extends pc{constructor(e){super(e,{code:xc.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(xc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class Ac extends pc{constructor(e){super(e,{code:Ac.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(Ac,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class kc extends pc{constructor(e){super(e,{code:kc.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(kc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class Ec extends pc{constructor(e){let{method:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(e,{code:Ec.code,name:"MethodNotSupportedRpcError",shortMessage:"Method".concat(t?' "'.concat(t,'"'):""," is not supported.")})}}Object.defineProperty(Ec,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class Sc extends pc{constructor(e){super(e,{code:Sc.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty(Sc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class Pc extends pc{constructor(e){super(e,{code:Pc.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(Pc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class Cc extends mc{constructor(e){super(e,{code:Cc.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(Cc,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class Ic extends mc{constructor(e){super(e,{code:Ic.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(Ic,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class Mc extends mc{constructor(e){let{method:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(e,{code:Mc.code,name:"UnsupportedProviderMethodError",shortMessage:"The Provider does not support the requested method".concat(t?' " '.concat(t,'"'):"",".")})}}Object.defineProperty(Mc,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class Tc extends mc{constructor(e){super(e,{code:Tc.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(Tc,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class Oc extends mc{constructor(e){super(e,{code:Oc.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(Oc,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class Rc extends mc{constructor(e){super(e,{code:Rc.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(Rc,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class Bc extends mc{constructor(e){super(e,{code:Bc.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}Object.defineProperty(Bc,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class Nc extends mc{constructor(e){super(e,{code:Nc.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}Object.defineProperty(Nc,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class Uc extends mc{constructor(e){super(e,{code:Uc.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}Object.defineProperty(Uc,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class jc extends mc{constructor(e){super(e,{code:jc.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}Object.defineProperty(jc,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class Lc extends mc{constructor(e){super(e,{code:Lc.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}Object.defineProperty(Lc,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class Fc extends mc{constructor(e){super(e,{code:Fc.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}Object.defineProperty(Fc,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750});class Dc extends mc{constructor(e){super(e,{code:Dc.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}Object.defineProperty(Dc,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class zc extends pc{constructor(e){super(e,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}const qc=3;function Hc(e,t){let{abi:n,address:r,args:i,docsPath:o,functionName:s,sender:a}=t;const c=e instanceof sc.$S?e:e instanceof qa.C?e.walk(e=>"data"in e)||e.walk():{},{code:l,data:u,details:d,message:h,shortMessage:f}=c,p=e instanceof lc.O?new sc.rR({functionName:s}):[qc,wc.code].includes(l)&&(u||d||h||f)?new sc.M({abi:n,data:"object"===typeof u?u.data:u,functionName:s,message:c instanceof fc.J8?d:null!==f&&void 0!==f?f:h}):e;return new sc.bG(p,{abi:n,args:i,contractAddress:r,docsPath:o,functionName:s,sender:a})}function Wc(e,t,n){const r=e[t.name];if("function"===typeof r)return r;const i=e[n];return"function"===typeof i?i:n=>t(e,n)}var Kc=n(3126);const $c=["abi","address","args","functionName"];async function Vc(e,t){const{abi:n,address:r,args:i,functionName:o}=t,s=(0,qe.A)(t,$c),c=(0,dc.p)({abi:n,args:i,functionName:o});try{const{data:t}=await Wc(e,Kc.T,"call")((0,a.A)((0,a.A)({},s),{},{data:c,to:r}));return(0,uc.e)({abi:n,args:i,functionName:o,data:t||"0x"})}catch(l){throw Hc(l,{abi:n,address:r,args:i,docsPath:"/docs/contract/readContract",functionName:o})}}async function Gc(e,t){var n,r,i;const{account:o,authorizationList:s,allowFailure:c=!0,blockNumber:l,blockOverrides:u,blockTag:d,stateOverride:h}=t,f=t.contracts,{batchSize:p=(null!==(n=t.batchSize)&&void 0!==n?n:1024),deployless:m=null!==(r=t.deployless)&&void 0!==r&&r}="object"===typeof(null===(i=e.batch)||void 0===i?void 0:i.multicall)?e.batch.multicall:{},g=(()=>{if(t.multicallAddress)return t.multicallAddress;if(m)return null;if(e.chain)return(0,hc.M)({blockNumber:l,chain:e.chain,contract:"multicall3"});throw new Error("client chain not configured. multicallAddress is required.")})(),y=[[]];let b=0,v=0;for(let a=0;a<f.length;a++){const{abi:e,address:t,args:n,functionName:r}=f[a];try{const i=(0,dc.p)({abi:e,args:n,functionName:r});v+=(i.length-2)/2,p>0&&v>p&&y[b].length>0&&(b++,v=(i.length-2)/2,y[b]=[]),y[b]=[...y[b],{allowFailure:!0,callData:i,target:t}]}catch(x){const i=Hc(x,{abi:e,address:t,args:n,docsPath:"/docs/contract/multicall",functionName:r,sender:o});if(!c)throw i;y[b]=[...y[b],{allowFailure:!0,callData:"0x",target:t}]}}const w=await Promise.allSettled(y.map(t=>Wc(e,Vc,"readContract")((0,a.A)((0,a.A)({},null===g?{code:cc.Ez}:{address:g}),{},{abi:ac.v2,account:o,args:[t],authorizationList:s,blockNumber:l,blockOverrides:u,blockTag:d,functionName:"aggregate3",stateOverride:h})))),_=[];for(let a=0;a<w.length;a++){const e=w[a];if("rejected"===e.status){if(!c)throw e.reason;for(let t=0;t<y[a].length;t++)_.push({status:"failure",error:e.reason,result:void 0});continue}const t=e.value;for(let n=0;n<t.length;n++){const{returnData:e,success:r}=t[n],{callData:i}=y[a][n],{abi:o,address:s,functionName:l,args:u}=f[_.length];try{if("0x"===i)throw new lc.O;if(!r)throw new sc.$S({data:e});const t=(0,uc.e)({abi:o,args:u,data:e,functionName:l});_.push(c?{result:t,status:"success"}:t)}catch(x){const e=Hc(x,{abi:o,address:s,args:u,docsPath:"/docs/contract/multicall",functionName:l});if(!c)throw e;_.push({error:e,result:void 0,status:"failure"})}}}if(_.length!==f.length)throw new qa.C("multicall results mismatch");return _}const Jc=["allowFailure","chainId","contracts"];const Zc=["chainId"];const Yc=["allowFailure","blockNumber","blockTag"];async function Qc(e,t){const{allowFailure:n=!0,blockNumber:r,blockTag:i}=t,o=(0,qe.A)(t,Yc),s=t.contracts;try{const t={};for(const[n,r]of s.entries()){var c,l;const i=null!==(c=r.chainId)&&void 0!==c?c:e.state.chainId;t[i]||(t[i]=[]),null===(l=t[i])||void 0===l||l.push({contract:r,index:n})}const u=()=>Object.entries(t).map(t=>{let[s,c]=t;return async function(e,t){const{allowFailure:n=!0,chainId:r,contracts:i}=t,o=(0,qe.A)(t,Jc);return ic(e.getClient({chainId:r}),Gc,"multicall")((0,a.A)({allowFailure:n,contracts:i},o))}(e,(0,a.A)((0,a.A)({},o),{},{allowFailure:n,blockNumber:r,blockTag:i,chainId:Number.parseInt(s,10),contracts:c.map(e=>{let{contract:t}=e;return t})}))}),d=(await Promise.all(u())).flat(),h=Object.values(t).flatMap(e=>e.map(e=>{let{index:t}=e;return t}));return d.reduce((e,t,n)=>(e&&(e[h[n]]=t),e),[])}catch(u){if(u instanceof sc.bG)throw u;const t=()=>s.map(t=>function(e,t){const{chainId:n}=t,r=(0,qe.A)(t,Zc);return ic(e.getClient({chainId:n}),Vc,"readContract")(r)}(e,(0,a.A)((0,a.A)({},t),{},{blockNumber:r,blockTag:i})));return n?(await Promise.allSettled(t())).map(e=>"fulfilled"===e.status?{result:e.value,status:"success"}:{error:e.reason,result:void 0,status:"failure"}):await Promise.all(t())}}async function Xc(e,t){const{balanceAddress:n,chainId:r,symbolType:i,tokenAddress:o,unit:s}=t,c={abi:[{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{type:"uint8"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:i}]}],address:o},[l,u,d]=await Qc(e,{allowFailure:!1,contracts:[(0,a.A)((0,a.A)({},c),{},{functionName:"balanceOf",args:[n],chainId:r}),(0,a.A)((0,a.A)({},c),{},{functionName:"decimals",chainId:r}),(0,a.A)((0,a.A)({},c),{},{functionName:"symbol",chainId:r})]});return{decimals:u,formatted:(0,tc.J)(null!==l&&void 0!==l?l:"0",oc(null!==s&&void 0!==s?s:u)),symbol:d,value:l}}const el=["_defaulted","behavior","gcTime","initialData","initialDataUpdatedAt","maxPages","meta","networkMode","queryFn","queryHash","queryKey","queryKeyHashFn","retry","retryDelay","structuralSharing","getPreviousPageParam","getNextPageParam","initialPageParam","_optimisticResults","enabled","notifyOnChangeProps","placeholderData","refetchInterval","refetchIntervalInBackground","refetchOnMount","refetchOnReconnect","refetchOnWindowFocus","retryOnMount","select","staleTime","suspense","throwOnError","config","connector","query"];function tl(e){return JSON.stringify(e,(e,t)=>function(e){if(!nl(e))return!1;const t=e.constructor;if("undefined"===typeof t)return!0;const n=t.prototype;return!!nl(n)&&!!n.hasOwnProperty("isPrototypeOf")}(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):"bigint"===typeof t?t.toString():t)}function nl(e){return"[object Object]"===Object.prototype.toString.call(e)}function rl(e){const{_defaulted:t,behavior:n,gcTime:r,initialData:i,initialDataUpdatedAt:o,maxPages:s,meta:a,networkMode:c,queryFn:l,queryHash:u,queryKey:d,queryKeyHashFn:h,retry:f,retryDelay:p,structuralSharing:m,getPreviousPageParam:g,getNextPageParam:y,initialPageParam:b,_optimisticResults:v,enabled:w,notifyOnChangeProps:_,placeholderData:x,refetchInterval:A,refetchIntervalInBackground:k,refetchOnMount:E,refetchOnReconnect:S,refetchOnWindowFocus:P,retryOnMount:C,select:I,staleTime:M,suspense:T,throwOnError:O,config:R,connector:B,query:N}=e;return(0,qe.A)(e,el)}const il=["address","scopeKey"];function ol(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{async queryFn(t){let{queryKey:n}=t;const r=n[1],{address:i,scopeKey:o}=r,s=(0,qe.A)(r,il);if(!i)throw new Error("address is required");const c=await async function(e,t){var n;const{address:r,blockNumber:i,blockTag:o,chainId:s,token:c,unit:l="ether"}=t;if(c)try{return await Xc(e,{balanceAddress:r,chainId:s,symbolType:"string",tokenAddress:c})}catch(p){if("ContractFunctionExecutionError"===p.name){const t=await Xc(e,{balanceAddress:r,chainId:s,symbolType:"bytes32",tokenAddress:c}),n=(0,Xa.IQ)((0,ec.B)(t.symbol,{dir:"right"}));return(0,a.A)((0,a.A)({},t),{},{symbol:n})}throw p}const u=e.getClient({chainId:s}),d=ic(u,rc,"getBalance"),h=await d(i?{address:r,blockNumber:i}:{address:r,blockTag:o}),f=null!==(n=e.chains.find(e=>e.id===s))&&void 0!==n?n:u.chain;return{decimals:f.nativeCurrency.decimals,formatted:(0,tc.J)(h,oc(l)),symbol:f.nativeCurrency.symbol,value:h}}(e,(0,a.A)((0,a.A)({},s),{},{address:i}));return null!==c&&void 0!==c?c:null},queryKey:sl(t)}}function sl(){return["balance",rl(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})]}var al,cl,ll,ul,dl,hl,fl,pl,ml,gl,yl,bl,vl,wl,_l,xl,Al=(al=new WeakMap,cl=new WeakMap,ll=new WeakMap,ul=new WeakMap,dl=new WeakMap,hl=new WeakMap,fl=new WeakMap,pl=new WeakMap,ml=new WeakMap,gl=new WeakMap,yl=new WeakMap,bl=new WeakMap,vl=new WeakMap,wl=new WeakMap,_l=new WeakMap,xl=new WeakSet,class extends V{constructor(e,t){super(),L(this,xl),l(this,al,void 0),l(this,cl,void 0),l(this,ll,void 0),l(this,ul,void 0),l(this,dl,void 0),l(this,hl,void 0),l(this,fl,void 0),l(this,pl,void 0),l(this,ml,void 0),l(this,gl,void 0),l(this,yl,void 0),l(this,bl,void 0),l(this,vl,void 0),l(this,wl,void 0),l(this,_l,new Set),this.options=t,h(al,this,e),h(pl,this,null),h(fl,this,Z()),this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(d(cl,this).addObserver(this),Rl(d(cl,this),this.options)?u(xl,this,kl).call(this):this.updateResult(),u(xl,this,Cl).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Bl(d(cl,this),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Bl(d(cl,this),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,u(xl,this,Il).call(this),u(xl,this,Ml).call(this),d(cl,this).removeObserver(this)}setOptions(e){const t=this.options,n=d(cl,this);if(this.options=d(al,this).defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!==typeof this.options.enabled&&"function"!==typeof this.options.enabled&&"boolean"!==typeof w(this.options.enabled,d(cl,this)))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");u(xl,this,Tl).call(this),d(cl,this).setOptions(this.options),t._defaulted&&!C(this.options,t)&&d(al,this).getQueryCache().notify({type:"observerOptionsUpdated",query:d(cl,this),observer:this});const r=this.hasListeners();r&&Nl(d(cl,this),n,this.options,t)&&u(xl,this,kl).call(this),this.updateResult(),!r||d(cl,this)===n&&w(this.options.enabled,d(cl,this))===w(t.enabled,d(cl,this))&&v(this.options.staleTime,d(cl,this))===v(t.staleTime,d(cl,this))||u(xl,this,El).call(this);const i=u(xl,this,Sl).call(this);!r||d(cl,this)===n&&w(this.options.enabled,d(cl,this))===w(t.enabled,d(cl,this))&&i===d(wl,this)||u(xl,this,Pl).call(this,i)}getOptimisticResult(e){const t=d(al,this).getQueryCache().build(d(al,this),e),n=this.createResult(t,e);return function(e,t){if(!C(e.getCurrentResult(),t))return!0;return!1}(this,n)&&(h(ul,this,n),h(hl,this,this.options),h(dl,this,d(cl,this).state)),n}getCurrentResult(){return d(ul,this)}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),null===t||void 0===t||t(n),"promise"===n&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==d(fl,this).status||d(fl,this).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,n))})}trackProp(e){d(_l,this).add(e)}getCurrentQuery(){return d(cl,this)}refetch(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),e));return this.fetch((0,a.A)({},t))}fetchOptimistic(e){const t=d(al,this).defaultQueryOptions(e),n=d(al,this).getQueryCache().build(d(al,this),t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){var t;return u(xl,this,kl).call(this,(0,a.A)((0,a.A)({},e),{},{cancelRefetch:null===(t=e.cancelRefetch)||void 0===t||t})).then(()=>(this.updateResult(),d(ul,this)))}createResult(e,t){const n=d(cl,this),r=this.options,i=d(ul,this),o=d(dl,this),s=d(hl,this),c=e!==n?e.state:d(ll,this),{state:l}=e;let u,f=(0,a.A)({},l),p=!1;if(t._optimisticResults){const i=this.hasListeners(),o=!i&&Rl(e,t),s=i&&Nl(e,n,t,r);(o||s)&&(f=(0,a.A)((0,a.A)({},f),pe(l.data,e.options))),"isRestoring"===t._optimisticResults&&(f.fetchStatus="idle")}let{error:m,errorUpdatedAt:g,status:y}=f;u=f.data;let b=!1;if(void 0!==t.placeholderData&&void 0===u&&"pending"===y){let e;var v;if(null!==i&&void 0!==i&&i.isPlaceholderData&&t.placeholderData===(null===s||void 0===s?void 0:s.placeholderData))e=i.data,b=!0;else e="function"===typeof t.placeholderData?t.placeholderData(null===(v=d(yl,this))||void 0===v?void 0:v.state.data,d(yl,this)):t.placeholderData;void 0!==e&&(y="success",u=O(null===i||void 0===i?void 0:i.data,e,t),p=!0)}if(t.select&&void 0!==u&&!b)if(i&&u===(null===o||void 0===o?void 0:o.data)&&t.select===d(ml,this))u=d(gl,this);else try{h(ml,this,t.select),u=t.select(u),u=O(null===i||void 0===i?void 0:i.data,u,t),h(gl,this,u),h(pl,this,null)}catch(P){h(pl,this,P)}d(pl,this)&&(m=d(pl,this),u=d(gl,this),g=Date.now(),y="error");const _="fetching"===f.fetchStatus,x="pending"===y,A="error"===y,k=x&&_,E=void 0!==u,S={status:y,fetchStatus:f.fetchStatus,isPending:x,isSuccess:"success"===y,isError:A,isInitialLoading:k,isLoading:k,data:u,dataUpdatedAt:f.dataUpdatedAt,error:m,errorUpdatedAt:g,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>c.dataUpdateCount||f.errorUpdateCount>c.errorUpdateCount,isFetching:_,isRefetching:_&&!x,isLoadingError:A&&!E,isPaused:"paused"===f.fetchStatus,isPlaceholderData:p,isRefetchError:A&&E,isStale:Ul(e,t),refetch:this.refetch,promise:d(fl,this),isEnabled:!1!==w(t.enabled,e)};if(this.options.experimental_prefetchInRender){const t=e=>{"error"===S.status?e.reject(S.error):void 0!==S.data&&e.resolve(S.data)},r=()=>{const e=h(fl,this,S.promise=Z());t(e)},i=d(fl,this);switch(i.status){case"pending":e.queryHash===n.queryHash&&t(i);break;case"fulfilled":"error"!==S.status&&S.data===i.value||r();break;case"rejected":"error"===S.status&&S.error===i.reason||r()}}return S}updateResult(){const e=d(ul,this),t=this.createResult(d(cl,this),this.options);if(h(dl,this,d(cl,this).state),h(hl,this,this.options),void 0!==d(dl,this).data&&h(yl,this,d(cl,this)),C(t,e))return;h(ul,this,t);u(xl,this,Ol).call(this,{listeners:(()=>{if(!e)return!0;const{notifyOnChangeProps:t}=this.options,n="function"===typeof t?t():t;if("all"===n||!n&&!d(_l,this).size)return!0;const r=new Set(null!==n&&void 0!==n?n:d(_l,this));return this.options.throwOnError&&r.add("error"),Object.keys(d(ul,this)).some(t=>{const n=t;return d(ul,this)[n]!==e[n]&&r.has(n)})})()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&u(xl,this,Cl).call(this)}});function kl(e){u(xl,this,Tl).call(this);let t=d(cl,this).fetch(this.options,e);return null!==e&&void 0!==e&&e.throwOnError||(t=t.catch(g)),t}function El(){u(xl,this,Il).call(this);const e=v(this.options.staleTime,d(cl,this));if(m||d(ul,this).isStale||!y(e))return;const t=b(d(ul,this).dataUpdatedAt,e)+1;h(bl,this,p.setTimeout(()=>{d(ul,this).isStale||this.updateResult()},t))}function Sl(){var e;return null!==(e="function"===typeof this.options.refetchInterval?this.options.refetchInterval(d(cl,this)):this.options.refetchInterval)&&void 0!==e&&e}function Pl(e){u(xl,this,Ml).call(this),h(wl,this,e),!m&&!1!==w(this.options.enabled,d(cl,this))&&y(d(wl,this))&&0!==d(wl,this)&&h(vl,this,p.setInterval(()=>{(this.options.refetchIntervalInBackground||G.isFocused())&&u(xl,this,kl).call(this)},d(wl,this)))}function Cl(){u(xl,this,El).call(this),u(xl,this,Pl).call(this,u(xl,this,Sl).call(this))}function Il(){d(bl,this)&&(p.clearTimeout(d(bl,this)),h(bl,this,void 0))}function Ml(){d(vl,this)&&(p.clearInterval(d(vl,this)),h(vl,this,void 0))}function Tl(){const e=d(al,this).getQueryCache().build(d(al,this),this.options);if(e===d(cl,this))return;const t=d(cl,this);h(cl,this,e),h(ll,this,e.state),this.hasListeners()&&(null===t||void 0===t||t.removeObserver(this),e.addObserver(this))}function Ol(e){$.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(d(ul,this))}),d(al,this).getQueryCache().notify({query:d(cl,this),type:"observerResultsUpdated"})})}function Rl(e,t){return function(e,t){return!1!==w(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&Bl(e,t,t.refetchOnMount)}function Bl(e,t,n){if(!1!==w(t.enabled,e)&&"static"!==v(t.staleTime,e)){const r="function"===typeof n?n(e):n;return"always"===r||!1!==r&&Ul(e,t)}return!1}function Nl(e,t,n,r){return(e!==t||!1===w(r.enabled,e))&&(!n.suspense||"error"!==e.state.status)&&Ul(e,n)}function Ul(e,t){return!1!==w(t.enabled,e)&&e.isStaleByTime(v(t.staleTime,e))}function jl(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Ll=e.createContext(jl()),Fl=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Dl(t,n,r){var i,o,s,a;const c=e.useContext(it),l=e.useContext(Ll),u=nt(r),d=u.defaultQueryOptions(t);null===(i=u.getDefaultOptions().queries)||void 0===i||null===(o=i._experimental_beforeQuery)||void 0===o||o.call(i,d),d._optimisticResults=c?"isRestoring":"optimistic",(e=>{if(e.suspense){const t=1e3,n=e=>"static"===e?e:Math.max(null!==e&&void 0!==e?e:t,t),r=e.staleTime;e.staleTime="function"===typeof r?function(){return n(r(...arguments))}:n(r),"number"===typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,t))}})(d),((e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))})(d,l),(t=>{e.useEffect(()=>{t.clearReset()},[t])})(l);const h=!u.getQueryCache().get(d.queryHash),[f]=e.useState(()=>new n(u,d)),p=f.getOptimisticResult(d),y=!c&&!1!==t.subscribed;if(e.useSyncExternalStore(e.useCallback(e=>{const t=y?f.subscribe($.batchCalls(e)):g;return f.updateResult(),t},[f,y]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),e.useEffect(()=>{f.setOptions(d)},[d,f]),((e,t)=>(null===e||void 0===e?void 0:e.suspense)&&t.isPending)(d,p))throw Fl(d,f,l);if((e=>{let{result:t,errorResetBoundary:n,throwOnError:r,query:i,suspense:o}=e;return t.isError&&!n.isReset()&&!t.isFetching&&i&&(o&&void 0===t.data||j(r,[t.error,i]))})({result:p,errorResetBoundary:l,throwOnError:d.throwOnError,query:u.getQueryCache().get(d.queryHash),suspense:d.suspense}))throw p.error;if(null===(s=u.getDefaultOptions().queries)||void 0===s||null===(a=s._experimental_afterQuery)||void 0===a||a.call(s,d,p),d.experimental_prefetchInRender&&!m&&((e,t)=>e.isLoading&&e.isFetching&&!t)(p,c)){var b;const e=h?Fl(d,f,l):null===(b=u.getQueryCache().get(d.queryHash))||void 0===b?void 0:b.promise;null===e||void 0===e||e.catch(g).finally(()=>{f.updateResult()})}return d.notifyOnChangeProps?p:f.trackResult(p)}function zl(e){const t=function(e,t){return Dl(e,Al,t)}((0,a.A)((0,a.A)({},e),{},{queryKeyHashFn:tl}));return t.queryKey=e.queryKey,t}const ql=new Map,Hl=new Map;async function Wl(e,t){let{cacheKey:n,cacheTime:r=Number.POSITIVE_INFINITY}=t;const i=function(e){const t=(e,t)=>({clear:()=>t.delete(e),get:()=>t.get(e),set:n=>t.set(e,n)}),n=t(e,ql),r=t(e,Hl);return{clear:()=>{n.clear(),r.clear()},promise:n,response:r}}(n),o=i.response.get();if(o&&r>0){if(Date.now()-o.created.getTime()<r)return o.data}let s=i.promise.get();s||(s=e(),i.promise.set(s));try{const e=await s;return i.response.set({created:new Date,data:e}),e}finally{i.promise.clear()}}const Kl=e=>"blockNumber.".concat(e);async function $l(e){let{cacheTime:t=e.cacheTime}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=await Wl(()=>e.request({method:"eth_blockNumber"}),{cacheKey:Kl(e.uid),cacheTime:t});return BigInt(n)}const Vl=["chainId"];const Gl=["scopeKey"];function Jl(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{gcTime:0,async queryFn(t){let{queryKey:n}=t;const r=n[1],{scopeKey:i}=r,o=(0,qe.A)(r,Gl),s=await function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{chainId:n}=t,r=(0,qe.A)(t,Vl);return ic(e.getClient({chainId:n}),$l,"getBlockNumber")(r)}(e,o);return null!==s&&void 0!==s?s:null},queryKey:Zl(t)}}function Zl(){return["blockNumber",rl(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})]}const Yl=new Map,Ql=new Map;let Xl=0;function eu(e,t,n){const r=++Xl,i=()=>Yl.get(e)||[],o=()=>{const t=i();if(!t.some(e=>e.id===r))return;const n=Ql.get(e);if(1===t.length&&n){const e=n();e instanceof Promise&&e.catch(()=>{})}(()=>{const t=i();Yl.set(e,t.filter(e=>e.id!==r))})()},s=i();if(Yl.set(e,[...s,{id:r,fns:t}]),s&&s.length>0)return o;const a={};for(const l in t)a[l]=function(){const e=i();if(0!==e.length){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(const t of e){var o,s;null===(o=(s=t.fns)[l])||void 0===o||o.call(s,...n)}}};const c=n(a);return"function"===typeof c&&Ql.set(e,c),o}async function tu(e){return new Promise(t=>setTimeout(t,e))}var nu=n(8551);function ru(e,t){let{emitOnBegin:n=!1,emitMissed:r=!1,onBlockNumber:i,onError:o,poll:s,pollingInterval:a=e.pollingInterval}=t;let c;return("undefined"!==typeof s?s:"webSocket"!==e.transport.type&&"ipc"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].config.type&&"ipc"!==e.transport.transports[0].config.type))?eu((0,nu.A)(["watchBlockNumber",e.uid,n,r,a]),{onBlockNumber:i,onError:o},t=>function(e,t){let{emitOnBegin:n,initialWaitTime:r,interval:i}=t,o=!0;const s=()=>o=!1;return(async()=>{var t;let a;n&&(a=await e({unpoll:s}));const c=null!==(t=await(null===r||void 0===r?void 0:r(a)))&&void 0!==t?t:i;await tu(c);const l=async()=>{o&&(await e({unpoll:s}),await tu(i),l())};l()})(),s}(async()=>{try{const n=await Wc(e,$l,"getBlockNumber")({cacheTime:0});if(void 0!==c){if(n===c)return;if(n-c>1&&r)for(let e=c+1n;e<n;e++)t.onBlockNumber(e,c),c=e}(void 0===c||n>c)&&(t.onBlockNumber(n,c),c=n)}catch(i){var n;null===(n=t.onError)||void 0===n||n.call(t,i)}},{emitOnBegin:n,interval:a})):eu((0,nu.A)(["watchBlockNumber",e.uid,n,r]),{onBlockNumber:i,onError:o},t=>{let n=!0,r=()=>n=!1;return(async()=>{try{const i=(()=>{if("fallback"===e.transport.type){const t=e.transport.transports.find(e=>"webSocket"===e.config.type||"ipc"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:o}=await i.subscribe({params:["newHeads"],onData(e){var r;if(!n)return;const i=(0,Xa.uU)(null===(r=e.result)||void 0===r?void 0:r.number);t.onBlockNumber(i,c),c=i},onError(e){var n;null===(n=t.onError)||void 0===n||n.call(t,e)}});r=o,n||r()}catch(i){null===o||void 0===o||o(i)}})(),()=>r()})}const iu=["syncConnectedChain"];const ou=["enabled","onBlockNumber","config"];function su(){var t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{enabled:r=!0,onBlockNumber:i,config:o}=n,s=(0,qe.A)(n,ou),c=It(n),l=Bt({config:c}),u=null!==(t=n.chainId)&&void 0!==t?t:l;(0,e.useEffect)(()=>{if(r&&i)return function(e,t){const{syncConnectedChain:n=e._internal.syncConnectedChain}=t,r=(0,qe.A)(t,iu);let i;const o=t=>{i&&i();const n=ic(e.getClient({chainId:t}),ru,"watchBlockNumber");return i=n(r),i},s=o(t.chainId);let a;return n&&!t.chainId&&(a=e.subscribe(e=>{let{chainId:t}=e;return t},async e=>o(e))),()=>{var e;null===s||void 0===s||s(),null===(e=a)||void 0===e||e()}}(c,(0,a.A)((0,a.A)({},s),{},{chainId:u,onBlockNumber:i}))},[u,c,r,i,s.onError,s.emitMissed,s.emitOnBegin,s.poll,s.pollingInterval,s.syncConnectedChain])}var au=n(625);let cu,lu=256;function uu(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:11;if(!cu||lu+e>512){cu="",lu=0;for(let e=0;e<256;e++)cu+=(256+256*Math.random()|0).toString(16).substring(1)}return cu.substring(lu,lu+++e)}function du(e){var t,n,r,i;const{batch:o,chain:s,ccipRead:c,key:l="base",name:u="Base Client",type:d="base"}=e,h=null!==(t=e.experimental_blockTag)&&void 0!==t?t:"number"===typeof(null===s||void 0===s?void 0:s.experimental_preconfirmationTime)?"pending":void 0,f=null!==(n=null===s||void 0===s?void 0:s.blockTime)&&void 0!==n?n:12e3,p=Math.min(Math.max(Math.floor(f/2),500),4e3),m=null!==(r=e.pollingInterval)&&void 0!==r?r:p,g=null!==(i=e.cacheTime)&&void 0!==i?i:m,y=e.account?(0,au.J)(e.account):void 0,{config:b,request:v,value:w}=e.transport({chain:s,pollingInterval:m}),_=(0,a.A)((0,a.A)({},b),w),x=(0,a.A)({account:y,batch:o,cacheTime:g,ccipRead:c,chain:s,key:l,name:u,pollingInterval:m,request:v,transport:_,type:d,uid:uu()},h?{experimental_blockTag:h}:{});return Object.assign(x,{extend:function e(t){return n=>{const r=n(t);for(const e in x)delete r[e];const i=(0,a.A)((0,a.A)({},t),r);return Object.assign(i,{extend:e(i)})}}(x)})}var hu=n(7543);const fu=new hu.A(8192);function pu(e){let{delay:t=100,retryCount:n=2,shouldRetry:r=()=>!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((i,o)=>{const s=async function(){let{count:a=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{const t=await e();i(t)}catch(c){if(a<n&&await r({count:a,error:c}))return(async e=>{let{error:n}=e;const r="function"===typeof t?t({count:a,error:n}):t;r&&await tu(r),s({count:a+1})})({error:c});o(c)}};s()})}function mu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return async function(n){var r;let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{dedupe:o=!1,methods:s,retryDelay:c=150,retryCount:l=3,uid:u}=(0,a.A)((0,a.A)({},t),i),{method:d}=n;if(null!==s&&void 0!==s&&null!==(r=s.exclude)&&void 0!==r&&r.includes(d))throw new Ec(new Error("method not supported"),{method:d});if(null!==s&&void 0!==s&&s.include&&!s.include.includes(d))throw new Ec(new Error("method not supported"),{method:d});return function(e,t){let{enabled:n=!0,id:r}=t;if(!n||!r)return e();if(fu.get(r))return fu.get(r);const i=e().finally(()=>fu.delete(r));return fu.set(r,i),i}(()=>pu(async()=>{try{return await e(n)}catch(t){const e=t;switch(e.code){case gc.code:throw new gc(e);case yc.code:throw new yc(e);case bc.code:throw new bc(e,{method:n.method});case vc.code:throw new vc(e);case wc.code:throw new wc(e);case _c.code:throw new _c(e);case xc.code:throw new xc(e);case Ac.code:throw new Ac(e);case kc.code:throw new kc(e);case Ec.code:throw new Ec(e,{method:n.method});case Sc.code:throw new Sc(e);case Pc.code:throw new Pc(e);case Cc.code:throw new Cc(e);case Ic.code:throw new Ic(e);case Mc.code:throw new Mc(e);case Tc.code:throw new Tc(e);case Oc.code:throw new Oc(e);case Rc.code:throw new Rc(e);case Bc.code:throw new Bc(e);case Nc.code:throw new Nc(e);case Uc.code:throw new Uc(e);case jc.code:throw new jc(e);case Lc.code:throw new Lc(e);case Fc.code:throw new Fc(e);case Dc.code:throw new Dc(e);case 5e3:throw new Cc(e);default:if(t instanceof qa.C)throw t;throw new zc(e)}}},{delay:e=>{let{count:t,error:n}=e;if(n&&n instanceof fc.Ci){var r;const e=null===n||void 0===n||null===(r=n.headers)||void 0===r?void 0:r.get("Retry-After");if(null!==e&&void 0!==e&&e.match(/\d/))return 1e3*Number.parseInt(e,10)}return(1<<t)*c},retryCount:l,shouldRetry:e=>{let{error:t}=e;return function(e){if("code"in e&&"number"===typeof e.code)return-1===e.code||(e.code===Sc.code||e.code===wc.code);if(e instanceof fc.Ci&&e.status)return 403===e.status||(408===e.status||(413===e.status||(429===e.status||(500===e.status||(502===e.status||(503===e.status||504===e.status))))));return!0}(t)}}),{enabled:o,id:o?(0,nc.i3)("".concat(u,".").concat((0,nu.A)(n))):void 0})}}function gu(e,t){let{key:n,methods:r,name:i,request:o,retryCount:s=3,retryDelay:a=150,timeout:c,type:l}=e;return{config:{key:n,methods:r,name:i,request:o,retryCount:s,retryDelay:a,timeout:c,type:l},request:mu(o,{methods:r,retryCount:s,retryDelay:a,uid:uu()}),value:t}}var yu=n(6961);async function bu(e){var t,n;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{assertChainId:i=!0}=r;let o;if(r.connector){const{connector:t}=r;if("reconnecting"===e.state.status&&!t.getAccounts&&!t.getChainId)throw new Jt({connector:t});const[n,i]=await Promise.all([t.getAccounts().catch(e=>{if(null===r.account)return[];throw e}),t.getChainId()]);o={accounts:n,chainId:i,connector:t}}else o=e.state.connections.get(e.state.current);if(!o)throw new $t;const s=null!==(t=r.chainId)&&void 0!==t?t:o.chainId,c=await o.connector.getChainId();if(i&&c!==s)throw new Gt({connectionChainId:s,connectorChainId:c});const l=o.connector;if(l.getClient)return l.getClient({chainId:s});const u=(0,au.J)(null!==(n=r.account)&&void 0!==n?n:o.accounts[0]);if(u&&(u.address=(0,yu.b)(u.address)),r.account&&!o.accounts.some(e=>e.toLowerCase()===u.address.toLowerCase()))throw new Vt({address:u.address,connector:l});const d=e.chains.find(e=>e.id===s),h=await o.connector.getProvider({chainId:s});return du({account:u,chain:d,name:"Connector Client",transport:e=>function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{key:n="custom",methods:r,name:i="Custom Provider",retryDelay:o}=t;return s=>{var a;let{retryCount:c}=s;return gu({key:n,methods:r,name:i,request:e.request.bind(e),retryCount:null!==(a=t.retryCount)&&void 0!==a?a:c,retryDelay:o,type:"custom"})}}(h)((0,a.A)((0,a.A)({},e),{},{retryCount:0}))})}const vu=["connectorUid","scopeKey"],wu=["connector"];function _u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{connector:t}=e,n=(0,qe.A)(e,wu);return["connectorClient",(0,a.A)((0,a.A)({},rl(n)),{},{connectorUid:null===t||void 0===t?void 0:t.uid})]}const xu=["query"],Au=["queryKey"];function ku(){var t,n,r;let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{query:o={}}=i,s=It((0,qe.A)(i,xu)),c=nt(),{address:l,connector:u,status:d}=Ot({config:s}),h=Bt({config:s}),f=null!==(t=i.connector)&&void 0!==t?t:u,p=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{gcTime:0,async queryFn(n){let{queryKey:r}=n;const{connector:i}=t,o=r[1],{connectorUid:s,scopeKey:c}=o,l=(0,qe.A)(o,vu);return bu(e,(0,a.A)((0,a.A)({},l),{},{connector:i}))},queryKey:_u(t)}}(s,(0,a.A)((0,a.A)({},i),{},{chainId:null!==(n=i.chainId)&&void 0!==n?n:h,connector:f})),{queryKey:m}=p,g=(0,qe.A)(p,Au),y=Boolean(("connected"===d||"reconnecting"===d&&(null===f||void 0===f?void 0:f.getProvider))&&(null===(r=o.enabled)||void 0===r||r)),b=(0,e.useRef)(l);return(0,e.useEffect)(()=>{const e=b.current;!l&&e?(c.removeQueries({queryKey:m}),b.current=void 0):l!==e&&(c.invalidateQueries({queryKey:m}),b.current=l)},[l,c]),zl((0,a.A)((0,a.A)((0,a.A)({},o),g),{},{queryKey:m,enabled:y,staleTime:Number.POSITIVE_INFINITY}))}class Eu extends qa.C{constructor(){let{docsPath:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(["Could not find an Account to execute with this Action.","Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client."].join("\n"),{docsPath:e,docsSlug:"account",name:"AccountNotFoundError"})}}class Su extends qa.C{constructor(e){let{docsPath:t,metaMessages:n,type:r}=e;super('Account type "'.concat(r,'" is not supported.'),{docsPath:t,metaMessages:n,name:"AccountTypeNotSupportedError"})}}async function Pu(e,t){let{account:n=e.account,message:r}=t;if(!n)throw new Eu({docsPath:"/docs/actions/wallet/signMessage"});const i=(0,au.J)(n);if(i.signMessage)return i.signMessage({message:r});const o="string"===typeof r?(0,nc.i3)(r):r.raw instanceof Uint8Array?(0,nc.nj)(r.raw):r.raw;return e.request({method:"personal_sign",params:[o,i.address]},{retryCount:0})}const Cu=["account","connector"];function Iu(e){return{mutationFn:t=>async function(e,t){const{account:n,connector:r}=t,i=(0,qe.A)(t,Cu);let o;return o="object"===typeof n&&"local"===n.type?e.getClient():await bu(e,{account:n,connector:r}),ic(o,Pu,"signMessage")((0,a.A)((0,a.A)({},i),n?{account:n}:{}))}(e,t),mutationKey:["signMessage"]}}const Mu=["mutate","mutateAsync"];var Tu=n(7568);var Ou=n(226),Ru=n(1478);function Bu(e){if(0===e||1===e)return e;if(27===e)return 0;if(28===e)return 1;throw new Error("Invalid yParityOrV value")}async function Nu(e){let{hash:t,signature:r}=e;return function(e){const t=(0,Tu.S)("0x".concat(e.substring(4))).substring(26);return(0,yu.o)("0x".concat(t))}(await async function(e){let{hash:t,signature:r}=e;const i=(0,Ou.q)(t)?t:(0,nc.nj)(t),{secp256k1:o}=await n.e(578).then(n.bind(n,578)),s=(()=>{if("object"===typeof r&&"r"in r&&"s"in r){const{r:e,s:t,v:n,yParity:i}=r,s=Bu(Number(null!==i&&void 0!==i?i:n));return new o.Signature((0,Xa.uU)(e),(0,Xa.uU)(t)).addRecoveryBit(s)}const e=(0,Ou.q)(r)?r:(0,nc.nj)(r);if(65!==(0,Ru.E)(e))throw new Error("invalid signature length");const t=Bu((0,Xa.ME)("0x".concat(e.slice(130))));return o.Signature.fromCompact(e.substring(2,130)).addRecoveryBit(t)})().recoverPublicKey(i.substring(2)).toHex(!1);return"0x".concat(s)}({hash:t,signature:r}))}var Uu=n(7683),ju=n(3530),Lu=n(2470);function Fu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"hex";const n=Du(e),r=(0,Lu.l)(new Uint8Array(n.length));return n.encode(r),"hex"===t?(0,nc.My)(r.bytes):r.bytes}function Du(e){return Array.isArray(e)?function(e){const t=e.reduce((e,t)=>e+t.length,0),n=zu(t);return{length:t<=55?1+t:1+n+t,encode(r){t<=55?r.pushByte(192+t):(r.pushByte(247+n),1===n?r.pushUint8(t):2===n?r.pushUint16(t):3===n?r.pushUint24(t):r.pushUint32(t));for(const{encode:t}of e)t(r)}}}(e.map(e=>Du(e))):function(e){const t="string"===typeof e?(0,ju.aT)(e):e,n=zu(t.length),r=1===t.length&&t[0]<128?1:t.length<=55?1+t.length:1+n+t.length;return{length:r,encode(e){1===t.length&&t[0]<128?e.pushBytes(t):t.length<=55?(e.pushByte(128+t.length),e.pushBytes(t)):(e.pushByte(183+n),1===n?e.pushUint8(t.length):2===n?e.pushUint16(t.length):3===n?e.pushUint24(t.length):e.pushUint32(t.length),e.pushBytes(t))}}}(e)}function zu(e){if(e<256)return 1;if(e<65536)return 2;if(e<2**24)return 3;if(e<2**32)return 4;throw new qa.C("Length is too large.")}function qu(e){var t;const{chainId:n,nonce:r,to:i}=e,o=null!==(t=e.contractAddress)&&void 0!==t?t:e.address,s=(0,Tu.S)((0,Uu.aP)(["0x05",Fu([n?(0,nc.cK)(n):"0x",o,r?(0,nc.cK)(r):"0x"])]));return"bytes"===i?(0,ju.aT)(s):s}async function Hu(e){const{authorization:t,signature:n}=e;return Nu({hash:qu(t),signature:null!==n&&void 0!==n?n:t})}var Wu=n(6583);var Ku=n(6600),$u=n(7814),Vu=n(2580);const Gu=["docsPath"];var Ju=n(3093),Zu=n(4367),Yu=n(7278);async function Qu(e){const t=await e.request({method:"eth_chainId"},{dedupe:!0});return(0,Xa.ME)(t)}var Xu=n(2958);class ed extends qa.C{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}class td extends qa.C{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}class nd extends qa.C{constructor(e){let{maxPriorityFeePerGas:t}=e;super("`maxFeePerGas` cannot be less than the `maxPriorityFeePerGas` (".concat((0,Xu.Q)(t)," gwei)."),{name:"MaxFeePerGasTooLowError"})}}class rd extends qa.C{constructor(e){let{blockHash:t,blockNumber:n}=e,r="Block";t&&(r='Block at hash "'.concat(t,'"')),n&&(r='Block at number "'.concat(n,'"')),super("".concat(r," could not be found."),{name:"BlockNotFoundError"})}}var id=n(3506);const od={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function sd(e,t){const n=(0,a.A)((0,a.A)({},e),{},{blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?(0,Xa.ME)(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?(0,Xa.ME)(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?od[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0});return e.authorizationList&&(n.authorizationList=e.authorizationList.map(e=>({address:e.address,chainId:Number(e.chainId),nonce:Number(e.nonce),r:e.r,s:e.s,yParity:Number(e.yParity)}))),n.yParity=(()=>{if(e.yParity)return Number(e.yParity);if("bigint"===typeof n.v){if(0n===n.v||27n===n.v)return 0;if(1n===n.v||28n===n.v)return 1;if(n.v>=35n)return n.v%2n===0n?1:0}})(),"legacy"===n.type&&(delete n.accessList,delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas,delete n.yParity),"eip2930"===n.type&&(delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas),"eip1559"===n.type&&delete n.maxFeePerBlobGas,n}const ad=(0,id.q)("transaction",sd);function cd(e,t){var n;const r=(null!==(n=e.transactions)&&void 0!==n?n:[]).map(e=>"string"===typeof e?e:sd(e));return(0,a.A)((0,a.A)({},e),{},{baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:r,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null})}const ld=(0,id.q)("block",cd);async function ud(e){var t,n;let{blockHash:r,blockNumber:i,blockTag:o=(null!==(t=e.experimental_blockTag)&&void 0!==t?t:"latest"),includeTransactions:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a=null!==s&&void 0!==s&&s,c=void 0!==i?(0,nc.cK)(i):void 0;let l=null;if(l=r?await e.request({method:"eth_getBlockByHash",params:[r,a]},{dedupe:!0}):await e.request({method:"eth_getBlockByNumber",params:[c||o,a]},{dedupe:Boolean(c)}),!l)throw new rd({blockHash:r,blockNumber:i});return((null===(n=e.chain)||void 0===n||null===(n=n.formatters)||void 0===n||null===(n=n.block)||void 0===n?void 0:n.format)||cd)(l,"getBlock")}async function dd(e){const t=await e.request({method:"eth_gasPrice"});return BigInt(t)}async function hd(e,t){const{block:n,chain:r=e.chain,request:i}=t||{};try{var o,s,a;const t=null!==(o=null===r||void 0===r||null===(s=r.fees)||void 0===s?void 0:s.maxPriorityFeePerGas)&&void 0!==o?o:null===r||void 0===r||null===(a=r.fees)||void 0===a?void 0:a.defaultPriorityFee;if("function"===typeof t){const r=n||await Wc(e,ud,"getBlock")({}),o=await t({block:r,client:e,request:i});if(null===o)throw new Error;return o}if("undefined"!==typeof t)return t;const c=await e.request({method:"eth_maxPriorityFeePerGas"});return(0,Xa.uU)(c)}catch(c){const[t,r]=await Promise.all([n?Promise.resolve(n):Wc(e,ud,"getBlock")({}),Wc(e,dd,"getGasPrice")({})]);if("bigint"!==typeof t.baseFeePerGas)throw new td;const i=r-t.baseFeePerGas;return i<0n?0n:i}}async function fd(e,t){var n,r,i,o;const{block:s,chain:a=e.chain,request:c,type:l="eip1559"}=t||{},u=await(async(t,n,r)=>"function"===typeof(null===a||void 0===a||null===(t=a.fees)||void 0===t?void 0:t.baseFeeMultiplier)?a.fees.baseFeeMultiplier({block:s,client:e,request:c}):null!==(n=null===a||void 0===a||null===(r=a.fees)||void 0===r?void 0:r.baseFeeMultiplier)&&void 0!==n?n:1.2)();if(u<1)throw new ed;const d=10**(null!==(n=null===(r=u.toString().split(".")[1])||void 0===r?void 0:r.length)&&void 0!==n?n:0),h=e=>e*BigInt(Math.ceil(u*d))/BigInt(d),f=s||await Wc(e,ud,"getBlock")({});if("function"===typeof(null===a||void 0===a||null===(i=a.fees)||void 0===i?void 0:i.estimateFeesPerGas)){const t=await a.fees.estimateFeesPerGas({block:s,client:e,multiply:h,request:c,type:l});if(null!==t)return t}if("eip1559"===l){var p;if("bigint"!==typeof f.baseFeePerGas)throw new td;const t="bigint"===typeof(null===c||void 0===c?void 0:c.maxPriorityFeePerGas)?c.maxPriorityFeePerGas:await hd(e,{block:f,chain:a,request:c}),n=h(f.baseFeePerGas);return{maxFeePerGas:null!==(p=null===c||void 0===c?void 0:c.maxFeePerGas)&&void 0!==p?p:n+t,maxPriorityFeePerGas:t}}return{gasPrice:null!==(o=null===c||void 0===c?void 0:c.gasPrice)&&void 0!==o?o:h(await Wc(e,dd,"getGasPrice")({}))}}class pd extends qa.C{constructor(e,t){var n;let{account:r,docsPath:i,chain:o,data:s,gas:a,gasPrice:c,maxFeePerGas:l,maxPriorityFeePerGas:u,nonce:d,to:h,value:f}=t;const p=(0,$u.aO)({from:null===r||void 0===r?void 0:r.address,to:h,value:"undefined"!==typeof f&&"".concat((0,Ka.c)(f)," ").concat((null===o||void 0===o||null===(n=o.nativeCurrency)||void 0===n?void 0:n.symbol)||"ETH"),data:s,gas:a,gasPrice:"undefined"!==typeof c&&"".concat((0,Xu.Q)(c)," gwei"),maxFeePerGas:"undefined"!==typeof l&&"".concat((0,Xu.Q)(l)," gwei"),maxPriorityFeePerGas:"undefined"!==typeof u&&"".concat((0,Xu.Q)(u)," gwei"),nonce:d});super(e.shortMessage,{cause:e,docsPath:i,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",p].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}const md=["docsPath"];var gd=n(9187);const yd=["accessList","authorizationList","blobs","blobVersionedHashes","blockNumber","blockTag","data","gas","gasPrice","maxFeePerBlobGas","maxFeePerGas","maxPriorityFeePerGas","nonce","value","stateOverride"];async function bd(e,t){const{account:n=e.account,prepare:r=!0}=t,i=n?(0,au.J)(n):void 0,o=Array.isArray(r)?r:"local"!==(null===i||void 0===i?void 0:i.type)?["blobVersionedHashes"]:void 0;try{var s,c;const n=r?await Ud(e,(0,a.A)((0,a.A)({},t),{},{parameters:o})):t,{accessList:l,authorizationList:u,blobs:d,blobVersionedHashes:h,blockNumber:f,blockTag:p,data:m,gas:g,gasPrice:y,maxFeePerBlobGas:b,maxFeePerGas:v,maxPriorityFeePerGas:w,nonce:_,value:x,stateOverride:A}=n,k=(0,qe.A)(n,yd),E=("bigint"===typeof f?(0,nc.cK)(f):void 0)||p,S=(0,gd.yH)(A),P=await(async()=>k.to?k.to:u&&u.length>0?await Hu({authorization:u[0]}).catch(()=>{throw new qa.C("`to` is required. Could not infer from `authorizationList`")}):void 0)();(0,Yu.c)(t);const C=null===(s=e.chain)||void 0===s||null===(s=s.formatters)||void 0===s||null===(s=s.transactionRequest)||void 0===s?void 0:s.format,I=(C||Zu.Bv)((0,a.A)((0,a.A)({},(0,Ju.o)(k,{format:C})),{},{account:i,accessList:l,authorizationList:u,blobs:d,blobVersionedHashes:h,data:m,gas:g,gasPrice:y,maxFeePerBlobGas:b,maxFeePerGas:v,maxPriorityFeePerGas:w,nonce:_,to:P,value:x}),"estimateGas");return BigInt(await e.request({method:"eth_estimateGas",params:S?[I,null!==(c=null!==E&&void 0!==E?E:e.experimental_blockTag)&&void 0!==c?c:"latest",S]:E?[I,E]:[I]}))}catch(l){throw function(e,t){let{docsPath:n}=t,r=(0,qe.A)(t,md);const i=(()=>{const t=(0,Vu.l)(e,r);return t instanceof Ku.RM?e:t})();return new pd(i,(0,a.A)({docsPath:n},r))}(l,(0,a.A)((0,a.A)({},t),{},{account:i,chain:e.chain}))}}async function vd(e,t){let{address:n,blockTag:r="latest",blockNumber:i}=t;const o=await e.request({method:"eth_getTransactionCount",params:[n,"bigint"===typeof i?(0,nc.cK)(i):r]},{dedupe:Boolean(i)});return(0,Xa.ME)(o)}function wd(e){var t;const{kzg:n}=e,r=null!==(t=e.to)&&void 0!==t?t:"string"===typeof e.blobs[0]?"hex":"bytes",i="string"===typeof e.blobs[0]?e.blobs.map(e=>(0,ju.aT)(e)):e.blobs,o=[];for(const s of i)o.push(Uint8Array.from(n.blobToKzgCommitment(s)));return"bytes"===r?o:o.map(e=>(0,nc.My)(e))}function _d(e){var t;const{kzg:n}=e,r=null!==(t=e.to)&&void 0!==t?t:"string"===typeof e.blobs[0]?"hex":"bytes",i="string"===typeof e.blobs[0]?e.blobs.map(e=>(0,ju.aT)(e)):e.blobs,o="string"===typeof e.commitments[0]?e.commitments.map(e=>(0,ju.aT)(e)):e.commitments,s=[];for(let a=0;a<i.length;a++){const e=i[a],t=o[a];s.push(Uint8Array.from(n.computeBlobKzgProof(e,t)))}return"bytes"===r?s:s.map(e=>(0,nc.My)(e))}function xd(e){var t;const{commitment:n,version:r=1}=e,i=null!==(t=e.to)&&void 0!==t?t:"string"===typeof n?"hex":"bytes",o=function(e,t){const n=t||"hex",r=Qn((0,Ou.q)(e,{strict:!1})?(0,ju.ZJ)(e):e);return"bytes"===n?r:(0,nc.nj)(r)}(n,"bytes");return o.set([r],0),"bytes"===i?o:(0,nc.My)(o)}function Ad(e){var t;const{commitments:n,version:r}=e,i=null!==(t=e.to)&&void 0!==t?t:"string"===typeof n[0]?"hex":"bytes",o=[];for(const s of n)o.push(xd({commitment:s,to:i,version:r}));return o}const kd=32,Ed=4096,Sd=kd*Ed,Pd=6*Sd-1-1*Ed*6;class Cd extends qa.C{constructor(e){let{maxSize:t,size:n}=e;super("Blob size is too large.",{metaMessages:["Max: ".concat(t," bytes"),"Given: ".concat(n," bytes")],name:"BlobSizeTooLargeError"})}}class Id extends qa.C{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class Md extends qa.C{constructor(e){let{hash:t,size:n}=e;super('Versioned hash "'.concat(t,'" size is invalid.'),{metaMessages:["Expected: 32","Received: ".concat(n)],name:"InvalidVersionedHashSizeError"})}}class Td extends qa.C{constructor(e){let{hash:t,version:n}=e;super('Versioned hash "'.concat(t,'" version is invalid.'),{metaMessages:["Expected: ".concat(1),"Received: ".concat(n)],name:"InvalidVersionedHashVersionError"})}}function Od(e){var t,n,r;const{data:i,kzg:o,to:s}=e,a=null!==(t=e.blobs)&&void 0!==t?t:function(e){var t;const n=null!==(t=e.to)&&void 0!==t?t:"string"===typeof e.data?"hex":"bytes",r="string"===typeof e.data?(0,ju.aT)(e.data):e.data,i=(0,Ru.E)(r);if(!i)throw new Id;if(i>Pd)throw new Cd({maxSize:Pd,size:i});const o=[];let s=!0,a=0;for(;s;){const e=(0,Lu.l)(new Uint8Array(Sd));let t=0;for(;t<Ed;){const n=r.slice(a,a+(kd-1));if(e.pushByte(0),e.pushBytes(n),n.length<31){e.pushByte(128),s=!1;break}t++,a+=31}o.push(e)}return"bytes"===n?o.map(e=>e.bytes):o.map(e=>(0,nc.My)(e.bytes))}({data:i,to:s}),c=null!==(n=e.commitments)&&void 0!==n?n:wd({blobs:a,kzg:o,to:s}),l=null!==(r=e.proofs)&&void 0!==r?r:_d({blobs:a,commitments:c,kzg:o,to:s}),u=[];for(let d=0;d<a.length;d++)u.push({blob:a[d],commitment:c[d],proof:l[d]});return u}function Rd(e){if(e.type)return e.type;if("undefined"!==typeof e.authorizationList)return"eip7702";if("undefined"!==typeof e.blobs||"undefined"!==typeof e.blobVersionedHashes||"undefined"!==typeof e.maxFeePerBlobGas||"undefined"!==typeof e.sidecars)return"eip4844";if("undefined"!==typeof e.maxFeePerGas||"undefined"!==typeof e.maxPriorityFeePerGas)return"eip1559";if("undefined"!==typeof e.gasPrice)return"undefined"!==typeof e.accessList?"eip2930":"legacy";throw new $u.Vg({transaction:e})}const Bd=["blobVersionedHashes","chainId","fees","gas","nonce","type"],Nd=new Map;async function Ud(e,t){const{account:n=e.account,blobs:r,chain:i,gas:o,kzg:s,nonce:c,nonceManager:l,parameters:u=Bd,type:d}=t,h=n?(0,au.J)(n):n,f=(0,a.A)((0,a.A)({},t),h?{from:null===h||void 0===h?void 0:h.address}:{});let p,m;async function g(){return p||(p=await Wc(e,ud,"getBlock")({blockTag:"latest"}),p)}async function y(){if(m)return m;if(i)return i.id;if("undefined"!==typeof t.chainId)return t.chainId;const n=await Wc(e,Qu,"getChainId")({});return m=n,m}if(u.includes("nonce")&&"undefined"===typeof c&&h)if(l){const t=await y();f.nonce=await l.consume({address:h.address,chainId:t,client:e})}else f.nonce=await Wc(e,vd,"getTransactionCount")({address:h.address,blockTag:"pending"});if((u.includes("blobVersionedHashes")||u.includes("sidecars"))&&r&&s){const e=wd({blobs:r,kzg:s});if(u.includes("blobVersionedHashes")){const t=Ad({commitments:e,to:"hex"});f.blobVersionedHashes=t}if(u.includes("sidecars")){const t=Od({blobs:r,commitments:e,proofs:_d({blobs:r,commitments:e,kzg:s}),to:"hex"});f.sidecars=t}}if(u.includes("chainId")&&(f.chainId=await y()),(u.includes("fees")||u.includes("type"))&&"undefined"===typeof d)try{f.type=Rd(f)}catch(b){let t=Nd.get(e.uid);if("undefined"===typeof t){const n=await g();t="bigint"===typeof(null===n||void 0===n?void 0:n.baseFeePerGas),Nd.set(e.uid,t)}f.type=t?"eip1559":"legacy"}if(u.includes("fees"))if("legacy"!==f.type&&"eip2930"!==f.type){if("undefined"===typeof f.maxFeePerGas||"undefined"===typeof f.maxPriorityFeePerGas){const n=await g(),{maxFeePerGas:r,maxPriorityFeePerGas:o}=await fd(e,{block:n,chain:i,request:f});if("undefined"===typeof t.maxPriorityFeePerGas&&t.maxFeePerGas&&t.maxFeePerGas<o)throw new nd({maxPriorityFeePerGas:o});f.maxPriorityFeePerGas=o,f.maxFeePerGas=r}}else{if("undefined"!==typeof t.maxFeePerGas||"undefined"!==typeof t.maxPriorityFeePerGas)throw new td;if("undefined"===typeof t.gasPrice){const t=await g(),{gasPrice:n}=await fd(e,{block:t,chain:i,request:f,type:"legacy"});f.gasPrice=n}}return u.includes("gas")&&"undefined"===typeof o&&(f.gas=await Wc(e,bd,"estimateGas")((0,a.A)((0,a.A)({},f),{},{account:h,prepare:"local"===(null===h||void 0===h?void 0:h.type)?[]:["blobVersionedHashes"]}))),(0,Yu.c)(f),delete f.parameters,f}async function jd(e,t){let{serializedTransaction:n}=t;return e.request({method:"eth_sendRawTransaction",params:[n]},{retryCount:0})}const Ld=["account","chain","accessList","authorizationList","blobs","data","gas","gasPrice","maxFeePerBlobGas","maxFeePerGas","maxPriorityFeePerGas","nonce","type","value"],Fd=new hu.A(128);async function Dd(e,t){const{account:n=e.account,chain:r=e.chain,accessList:i,authorizationList:o,blobs:s,data:c,gas:l,gasPrice:u,maxFeePerBlobGas:d,maxFeePerGas:h,maxPriorityFeePerGas:f,nonce:p,type:m,value:g}=t,y=(0,qe.A)(t,Ld);if("undefined"===typeof n)throw new Eu({docsPath:"/docs/actions/wallet/sendTransaction"});const b=n?(0,au.J)(n):null;try{(0,Yu.c)(t);const n=await(async()=>t.to?t.to:null!==t.to&&o&&o.length>0?await Hu({authorization:o[0]}).catch(()=>{throw new qa.C("`to` is required. Could not infer from `authorizationList`.")}):void 0)();if("json-rpc"===(null===b||void 0===b?void 0:b.type)||null===b){var v;let t;null!==r&&(t=await Wc(e,Qu,"getChainId")({}),function(e){let{chain:t,currentChainId:n}=e;if(!t)throw new Wu.jF;if(n!==t.id)throw new Wu.EH({chain:t,currentChainId:n})}({currentChainId:t,chain:r}));const w=null===(v=e.chain)||void 0===v||null===(v=v.formatters)||void 0===v||null===(v=v.transactionRequest)||void 0===v?void 0:v.format,x=(w||Zu.Bv)((0,a.A)((0,a.A)({},(0,Ju.o)(y,{format:w})),{},{accessList:i,account:b,authorizationList:o,blobs:s,chainId:t,data:c,gas:l,gasPrice:u,maxFeePerBlobGas:d,maxFeePerGas:h,maxPriorityFeePerGas:f,nonce:p,to:n,type:m,value:g}),"sendTransaction"),A=Fd.get(e.uid),k=A?"wallet_sendTransaction":"eth_sendTransaction";try{return await e.request({method:k,params:[x]},{retryCount:0})}catch(_){if(!1===A)throw _;const t=_;if("InvalidInputRpcError"===t.name||"InvalidParamsRpcError"===t.name||"MethodNotFoundRpcError"===t.name||"MethodNotSupportedRpcError"===t.name)return await e.request({method:"wallet_sendTransaction",params:[x]},{retryCount:0}).then(t=>(Fd.set(e.uid,!0),t)).catch(n=>{const r=n;if("MethodNotFoundRpcError"===r.name||"MethodNotSupportedRpcError"===r.name)throw Fd.set(e.uid,!1),t;throw r});throw t}}if("local"===(null===b||void 0===b?void 0:b.type)){var w;const t=await Wc(e,Ud,"prepareTransactionRequest")((0,a.A)((0,a.A)({account:b,accessList:i,authorizationList:o,blobs:s,chain:r,data:c,gas:l,gasPrice:u,maxFeePerBlobGas:d,maxFeePerGas:h,maxPriorityFeePerGas:f,nonce:p,nonceManager:b.nonceManager,parameters:[...Bd,"sidecars"],type:m,value:g},y),{},{to:n})),v=null===r||void 0===r||null===(w=r.serializers)||void 0===w?void 0:w.transaction,_=await b.signTransaction(t,{serializer:v});return await Wc(e,jd,"sendRawTransaction")({serializedTransaction:_})}if("smart"===(null===b||void 0===b?void 0:b.type))throw new Su({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"});throw new Su({docsPath:"/docs/actions/wallet/sendTransaction",type:null===b||void 0===b?void 0:b.type})}catch(x){if(x instanceof Su)throw x;throw function(e,t){let{docsPath:n}=t,r=(0,qe.A)(t,Gu);const i=(()=>{const t=(0,Vu.l)(e,r);return t instanceof Ku.RM?e:t})();return new $u.$s(i,(0,a.A)({docsPath:n},r))}(x,(0,a.A)((0,a.A)({},t),{},{account:b,chain:t.chain||void 0}))}}const zd=["account","chainId","connector"];function qd(e){return{mutationFn:t=>async function(e,t){var n;const{account:r,chainId:i,connector:o}=t,s=(0,qe.A)(t,zd);let c;c="object"===typeof r&&"local"===(null===r||void 0===r?void 0:r.type)?e.getClient({chainId:i}):await bu(e,{account:null!==r&&void 0!==r?r:void 0,assertChainId:!1,chainId:i,connector:o});const l=ic(c,Dd,"sendTransaction");return await l((0,a.A)((0,a.A)((0,a.A)({},s),r?{account:r}:{}),{},{chain:i?{id:i}:null,gas:null!==(n=s.gas)&&void 0!==n?n:void 0}))}(e,t),mutationKey:["sendTransaction"]}}const Hd=["mutate","mutateAsync"];var Wd=n(2283);async function Kd(e,t){var n;let{blockHash:r,blockNumber:i,blockTag:o,hash:s,index:a}=t;const c=o||"latest",l=void 0!==i?(0,nc.cK)(i):void 0;let u=null;if(s?u=await e.request({method:"eth_getTransactionByHash",params:[s]},{dedupe:!0}):r?u=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[r,(0,nc.cK)(a)]},{dedupe:!0}):(l||c)&&(u=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[l||c,(0,nc.cK)(a)]},{dedupe:Boolean(l)})),!u)throw new $u.Kz({blockHash:r,blockNumber:i,blockTag:c,hash:s,index:a});return((null===(n=e.chain)||void 0===n||null===(n=n.formatters)||void 0===n||null===(n=n.transaction)||void 0===n?void 0:n.format)||sd)(u,"getTransaction")}const $d={"0x0":"reverted","0x1":"success"};function Vd(e,t){const n=(0,a.A)((0,a.A)({},e),{},{blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(e=>function(e){let{args:t,eventName:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,a.A)((0,a.A)({},e),{},{blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null},n?{args:t,eventName:n}:{})}(e)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,Xa.ME)(e.transactionIndex):null,status:e.status?$d[e.status]:null,type:e.type?od[e.type]||e.type:null});return e.blobGasPrice&&(n.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(n.blobGasUsed=BigInt(e.blobGasUsed)),n}const Gd=(0,id.q)("transactionReceipt",Vd);async function Jd(e,t){var n;let{hash:r}=t;const i=await e.request({method:"eth_getTransactionReceipt",params:[r]},{dedupe:!0});if(!i)throw new $u.Kc({hash:r});return((null===(n=e.chain)||void 0===n||null===(n=n.formatters)||void 0===n||null===(n=n.transactionReceipt)||void 0===n?void 0:n.format)||Vd)(i,"getTransactionReceipt")}async function Zd(e,t){const{checkReplacement:n=!0,confirmations:r=1,hash:i,onReplaced:o,retryCount:s=6,retryDelay:a=e=>{let{count:t}=e;return 200*(1<<t)},timeout:c=18e4}=t,l=(0,nu.A)(["waitForTransactionReceipt",e.uid,i]),u=t.pollingInterval?t.pollingInterval:null!==(d=e.chain)&&void 0!==d&&d.experimental_preconfirmationTime?e.chain.experimental_preconfirmationTime:e.pollingInterval;var d;let h,f,p,m,g,y=!1;const{promise:b,resolve:v,reject:w}=(0,Wd.Y)(),_=c?setTimeout(()=>{var e,t;null===(e=g)||void 0===e||e(),null===(t=m)||void 0===t||t(),w(new $u.WA({hash:i}))},c):void 0;return m=eu(l,{onReplaced:o,resolve:v,reject:w},async t=>{var o;if(p=await Wc(e,Jd,"getTransactionReceipt")({hash:i}).catch(()=>{}),p&&r<=1)return clearTimeout(_),t.resolve(p),void(null===(o=m)||void 0===o||o());g=Wc(e,ru,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:u,async onBlockNumber(o){const c=e=>{var t,n;clearTimeout(_),null===(t=g)||void 0===t||t(),e(),null===(n=m)||void 0===n||n()};let l=o;if(!y)try{if(p){if(r>1&&(!p.blockNumber||l-p.blockNumber+1n<r))return;return void c(()=>t.resolve(p))}if(n&&!h&&(y=!0,await pu(async()=>{h=await Wc(e,Kd,"getTransaction")({hash:i}),h.blockNumber&&(l=h.blockNumber)},{delay:a,retryCount:s}),y=!1),p=await Wc(e,Jd,"getTransactionReceipt")({hash:i}),r>1&&(!p.blockNumber||l-p.blockNumber+1n<r))return;c(()=>t.resolve(p))}catch(u){if(u instanceof $u.Kz||u instanceof $u.Kc){if(!h)return void(y=!1);try{f=h,y=!0;const n=await pu(()=>Wc(e,ud,"getBlock")({blockNumber:l,includeTransactions:!0}),{delay:a,retryCount:s,shouldRetry:e=>{let{error:t}=e;return t instanceof rd}});y=!1;const i=n.transactions.find(e=>{let{from:t,nonce:n}=e;return t===f.from&&n===f.nonce});if(!i)return;if(p=await Wc(e,Jd,"getTransactionReceipt")({hash:i.hash}),r>1&&(!p.blockNumber||l-p.blockNumber+1n<r))return;let o="replaced";i.to===f.to&&i.value===f.value&&i.input===f.input?o="repriced":i.from===i.to&&0n===i.value&&(o="cancelled"),c(()=>{var e;null===(e=t.onReplaced)||void 0===e||e.call(t,{reason:o,replacedTransaction:f,transaction:i,transactionReceipt:p}),t.resolve(p)})}catch(d){c(()=>t.reject(d))}}else c(()=>t.reject(u))}}})}),b}const Yd=["chainId","timeout"],Qd=["from"];const Xd=["hash"],eh=["onReplaced"];function th(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{async queryFn(n){let{queryKey:r}=n;const i=r[1],{hash:o}=i,s=(0,qe.A)(i,Xd);if(!o)throw new Error("hash is required");return async function(e,t){const{chainId:n,timeout:r=0}=t,i=(0,qe.A)(t,Yd),o=e.getClient({chainId:n}),s=ic(o,Zd,"waitForTransactionReceipt"),c=await s((0,a.A)((0,a.A)({},i),{},{timeout:r}));if("reverted"===c.status){const e=ic(o,Kd,"getTransaction"),t=await e({hash:c.transactionHash}),{from:n}=t,r=(0,qe.A)(t,Qd),i=ic(o,Kc.T,"call"),s=await i((0,a.A)((0,a.A)({},r),{},{account:n,data:r.input,gasPrice:"eip1559"!==r.type?r.gasPrice:void 0,maxFeePerGas:"eip1559"===r.type?r.maxFeePerGas:void 0,maxPriorityFeePerGas:"eip1559"===r.type?r.maxPriorityFeePerGas:void 0})),l=null!==s&&void 0!==s&&s.data?(0,Xa.IQ)("0x".concat(s.data.substring(138))):"unknown reason";throw new Error(l)}return(0,a.A)((0,a.A)({},c),{},{chainId:o.chain.id})}(e,(0,a.A)((0,a.A)({},s),{},{onReplaced:t.onReplaced,hash:o}))},queryKey:nh(t)}}function nh(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{onReplaced:t}=e;return["waitForTransactionReceipt",rl((0,qe.A)(e,eh))]}function rh(){var t,n;const r=Ot(),i=Bt(),{chains:o,switchChain:s}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{mutation:t}=e,n=It(e),r=Ga(n),i=Ht((0,a.A)((0,a.A)({},t),r)),{mutate:o,mutateAsync:s}=i,c=(0,qe.A)(i,Qa);return(0,a.A)((0,a.A)({},c),{},{chains:Ya({config:n}),switchChain:o,switchChainAsync:s})}(),{data:c}=function(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{address:r,query:i={}}=n,o=It(n),s=Bt({config:o}),c=ol(o,(0,a.A)((0,a.A)({},n),{},{chainId:null!==(e=n.chainId)&&void 0!==e?e:s})),l=Boolean(r&&(null===(t=i.enabled)||void 0===t||t));return zl((0,a.A)((0,a.A)((0,a.A)({},i),c),{},{enabled:l}))}({address:r.address}),{data:l}=function(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{query:r={},watch:i}=n,o=It(n),s=nt(),c=Bt({config:o}),l=null!==(e=n.chainId)&&void 0!==e?e:c,u=Jl(o,(0,a.A)((0,a.A)({},n),{},{chainId:l}));return su((0,a.A)((0,a.A)({},(0,a.A)({config:n.config,chainId:n.chainId},"object"===typeof i?i:{})),{},{enabled:Boolean((null===(t=r.enabled)||void 0===t||t)&&("object"===typeof i?i.enabled:i)),onBlockNumber(e){s.setQueryData(u.queryKey,e)}})),zl((0,a.A)((0,a.A)({},r),u))}({watch:!0}),{data:u}=ku(),{signMessage:d,data:h}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{mutation:t}=e,n=Iu(It(e)),r=Ht((0,a.A)((0,a.A)({},t),n)),{mutate:i,mutateAsync:o}=r,s=(0,qe.A)(r,Mu);return(0,a.A)((0,a.A)({},s),{},{signMessage:i,signMessageAsync:o})}(),{data:f,error:p,isPending:m,sendTransaction:g}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{mutation:t}=e,n=qd(It(e)),r=Ht((0,a.A)((0,a.A)({},t),n)),{mutate:i,mutateAsync:o}=r,s=(0,qe.A)(r,Hd);return(0,a.A)((0,a.A)({},s),{},{sendTransaction:i,sendTransactionAsync:o})}(),{isLoading:y,isSuccess:b}=function(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{hash:r,query:i={}}=n,o=It(n),s=Bt({config:o}),c=th(o,(0,a.A)((0,a.A)({},n),{},{chainId:null!==(e=n.chainId)&&void 0!==e?e:s})),l=Boolean(r&&(null===(t=i.enabled)||void 0===t||t));return zl((0,a.A)((0,a.A)((0,a.A)({},i),c),{},{enabled:l}))}({hash:f}),[v,w]=(0,e.useState)(""),[_,x]=(0,e.useState)(""),[A,k]=(0,e.useState)("");return(0,et.jsxs)("div",{"data-testid":Un.card,className:"bg-white border border-gray-200 rounded-lg p-6 shadow-sm hover:shadow-md transition-shadow duration-200",children:[(0,et.jsx)("div",{className:"flex items-center justify-between mb-4",children:(0,et.jsx)("h3",{"data-testid":Un.title,className:"text-lg font-semibold text-gray-800 truncate",children:"Wagmi Connection"})}),(0,et.jsxs)("div",{className:"mb-4",children:[(0,et.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,et.jsx)("span",{"data-testid":Un.chainIdLabel,className:"text-sm font-medium text-gray-600",children:"Connected Chain:"}),(0,et.jsx)("span",{"data-testid":Un.chainIdValue,className:"text-sm text-gray-500 bg-blue-50 text-blue-700 px-2 py-1 rounded-full",children:i||"Not available"})]}),(0,et.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,et.jsx)("span",{"data-testid":Un.accountLabel,className:"text-sm font-medium text-gray-600",children:"Account:"}),(0,et.jsx)("span",{"data-testid":Un.accountValue,className:"text-sm text-gray-500 bg-blue-50 text-blue-700 px-2 py-1 rounded-full",children:r.address?"Connected":"Not connected"})]}),r.address&&(0,et.jsxs)("div",{"data-testid":Un.activeAccount,className:"mt-2 p-3 bg-green-50 border border-green-200 rounded-md",children:[(0,et.jsx)("p",{className:"text-sm text-green-800 font-medium",children:"Active Account:"}),(0,et.jsx)("p",{className:"text-sm text-green-700 font-mono break-all",children:r.address})]}),c&&(0,et.jsxs)("div",{"data-testid":Un.balanceContainer,className:"mt-2 p-3 bg-purple-50 border border-purple-200 rounded-md",children:[(0,et.jsx)("p",{className:"text-sm text-purple-800 font-medium",children:"Balance:"}),(0,et.jsxs)("p",{"data-testid":Un.balanceValue,className:"text-sm text-purple-700 font-mono",children:[(0,Ka.c)(c.value)," ",c.symbol]})]}),l&&(0,et.jsxs)("div",{"data-testid":Un.blockNumberContainer,className:"mt-2 p-3 bg-gray-50 border border-gray-200 rounded-md",children:[(0,et.jsx)("p",{className:"text-sm text-gray-800 font-medium",children:"Block Number:"}),(0,et.jsx)("p",{"data-testid":Un.blockNumberValue,className:"text-sm text-gray-700 font-mono",children:l.toString()})]})]}),(0,et.jsxs)("div",{className:"space-y-2",children:[(0,et.jsxs)("div",{"data-testid":Un.switchChainSection,className:"mt-4 pt-4 border-t border-gray-200",children:[(0,et.jsx)("h4",{className:"text-sm font-medium text-gray-700 mb-2",children:"Switch Chain"}),(0,et.jsx)("div",{className:"space-y-2",children:o.map(e=>(0,et.jsxs)("button",{type:"button","data-testid":Un.btnSwitchChain(e.id),disabled:i===e.id,onClick:()=>s({chainId:e.id}),className:"w-full bg-blue-500 text-white px-4 py-2 rounded text-sm hover:bg-blue-600 transition-colors disabled:bg-gray-300 disabled:cursor-not-allowed",children:[e.name," ",i===e.id&&"(Current)"]},e.id))})]}),(0,et.jsxs)("div",{"data-testid":Un.signMessageSection,className:"mt-4 pt-4 border-t border-gray-200",children:[(0,et.jsx)("h4",{className:"text-sm font-medium text-gray-700 mb-2",children:"Sign Message"}),(0,et.jsxs)("form",{onSubmit:e=>{e.preventDefault(),v&&d({message:v})},className:"space-y-2",children:[(0,et.jsx)("input",{type:"text","data-testid":Un.inputMessage,value:v,onChange:e=>w(e.target.value),placeholder:"Enter message to sign",className:"w-full p-2 border border-gray-300 rounded text-sm"}),(0,et.jsx)("button",{type:"submit","data-testid":Un.btnSignMessage,disabled:!v,className:"w-full bg-blue-500 text-white px-4 py-2 rounded text-sm hover:bg-blue-600 transition-colors disabled:bg-gray-300 disabled:cursor-not-allowed",children:"Sign Message"})]}),h&&(0,et.jsxs)("div",{"data-testid":Un.signatureResult,className:"mt-2 p-2 bg-green-50 border border-green-200 rounded text-xs font-mono break-all",children:["Signature: ",h]})]}),(0,et.jsxs)("div",{"data-testid":Un.sendTxSection,className:"mt-4 pt-4 border-t border-gray-200",children:[(0,et.jsx)("h4",{className:"text-sm font-medium text-gray-700 mb-2",children:"Send Transaction"}),(0,et.jsxs)("form",{onSubmit:e=>{e.preventDefault(),_&&A&&g({to:_,value:Wa(A)})},className:"space-y-2",children:[(0,et.jsx)("input",{type:"text","data-testid":Un.inputToAddress,value:_,onChange:e=>x(e.target.value),placeholder:"To address (0x...)",className:"w-full p-2 border border-gray-300 rounded text-sm"}),(0,et.jsx)("input",{type:"text","data-testid":Un.inputAmount,value:A,onChange:e=>k(e.target.value),placeholder:"Amount (ETH)",className:"w-full p-2 border border-gray-300 rounded text-sm"}),(0,et.jsx)("button",{type:"submit","data-testid":Un.btnSendTransaction,disabled:m||!_||!A,className:"w-full bg-blue-500 text-white px-4 py-2 rounded text-sm hover:bg-blue-600 transition-colors disabled:bg-gray-300 disabled:cursor-not-allowed",children:m?"Sending...":"Send Transaction"})]}),f&&(0,et.jsxs)("div",{"data-testid":Un.txHashResult,className:"mt-2 p-2 bg-blue-50 border border-blue-200 rounded text-xs font-mono break-all",children:["Transaction Hash: ",f]}),y&&(0,et.jsx)("div",{"data-testid":Un.txConfirmingText,className:"mt-2 text-xs text-blue-600",children:"Waiting for confirmation..."}),b&&(0,et.jsx)("div",{"data-testid":Un.txConfirmedText,className:"mt-2 text-xs text-green-600",children:"Transaction confirmed!"}),p&&(0,et.jsxs)("div",{"data-testid":Un.txErrorText,className:"mt-2 p-2 bg-red-50 border border-red-200 rounded text-xs text-red-600",children:["Error: ",p.shortMessage||p.message]})]}),u&&(0,et.jsxs)("div",{"data-testid":Un.connectorSection,className:"mt-4 pt-4 border-t border-gray-200",children:[(0,et.jsx)("h4",{className:"text-sm font-medium text-gray-700 mb-2",children:"Connector Client Info"}),(0,et.jsxs)("div",{className:"p-2 bg-gray-50 border border-gray-200 rounded text-xs",children:[(0,et.jsxs)("p",{"data-testid":Un.connectorAccount,children:["Account: ",null===(t=u.account)||void 0===t?void 0:t.address]}),(0,et.jsxs)("p",{"data-testid":Un.connectorChainId,children:["Chain ID: ",null===(n=u.chain)||void 0===n?void 0:n.id]})]})]})]})]})}n.g.Buffer=$n.Buffer;const ih=function(){var t,n;const[r,i]=(0,e.useState)(["eip155:1"]),[o,s]=(0,e.useState)([]),{error:c,status:l,session:u,connect:d,disconnect:h}=Dn(),{connected:f,provider:p,chainId:m,accounts:g,sdk:y,connect:b,disconnect:v}=(()=>{const t=(0,e.useContext)(qn);if(void 0===t)throw new Error("useLegacyEVMSDK must be used within a LegacyEVMSDKProvider");return t})(),{address:w,isConnected:_}=Ot(),{connectors:x,connectAsync:A,status:k}=(Bt(),function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{mutation:n}=t,r=It(t),i=Yt(r),o=Ht((0,a.A)((0,a.A)({},n),i)),{mutate:s,mutateAsync:c}=o,l=(0,qe.A)(o,tn);return(0,e.useEffect)(()=>r.subscribe(e=>{let{status:t}=e;return t},(e,t)=>{"connected"===t&&"disconnected"===e&&l.reset()}),[r,l.reset]),(0,a.A)((0,a.A)({},l),{},{connect:s,connectAsync:c,connectors:en({config:r})})}()),{disconnect:E}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{mutation:t}=e,n=It(e),r=nn(n),i=Ht((0,a.A)((0,a.A)({},t),r)),{mutate:o,mutateAsync:s}=i,c=(0,qe.A)(i,an);return(0,a.A)((0,a.A)({},c),{},{connectors:sn({config:n}).map(e=>e.connector),disconnect:o,disconnectAsync:s})}(),S=(0,e.useCallback)((e,t)=>{i(t?Array.from(new Set([...r,e])):r.filter(t=>t!==e))},[r]);(0,e.useEffect)(()=>{if(u){var e;const r=Object.keys(null!==(e=null===u||void 0===u?void 0:u.sessionScopes)&&void 0!==e?e:{});i(r);const o=[];for(const e of r){var t,n;const{accounts:r}=null!==(t=null===(n=u.sessionScopes)||void 0===n?void 0:n[e])&&void 0!==t?t:{};r&&r.length>0&&o.push(...r)}s(o)}},[u]);const P=(0,e.useCallback)(()=>{var e;if(!u)return!1;const t=Object.keys(null!==(e=null===u||void 0===u?void 0:u.sessionScopes)&&void 0!==e?e:{}),n=r.filter(e=>e.length);return t.length!==n.length||(!t.every(e=>n.includes(e))||!n.every(e=>t.includes(e)))},[u,r]),C=(0,e.useCallback)(async()=>{const e=r.filter(e=>e.length),t=o.filter(e=>""!==e.trim());return d(e,t)},[r,o,d]),I=(0,e.useCallback)(async()=>{const e=r.filter(e=>e.length),t=Sn(e).map(e=>(0,yt.ME)(e));await b(t)},[r,b]),M=(0,e.useCallback)(async()=>{const e=r.filter(e=>e.length),t=Sn(e).map(e=>(0,yt.ME)(e))[0]||1,n=x.find(e=>"metaMaskSDK"===e.id);if(n)try{await A({connector:n,chainId:t})}catch(c){console.error("Wagmi connection error:",c)}},[r,x,A]),T="connected"===l,O="disconnected"===l||"pending"===l||"loaded"===l,R=(0,e.useCallback)(async()=>{T&&await h(),f&&await v(),_&&E()},[h,v,E,T,f,_]),B=Object.keys(_n).reduce((e,t)=>{const n=_n[t];return e.push({name:t,value:n}),e},[]),N="connecting"===l;return(0,et.jsx)("div",{"data-testid":On.container,className:"min-h-screen bg-gray-50 flex justify-center",children:(0,et.jsxs)("div",{className:"max-w-6xl w-full p-8",children:[(0,et.jsx)("h1",{"data-testid":On.title,className:"text-slate-800 text-4xl font-bold mb-8 text-center",children:"MetaMask MultiChain API Test Dapp"}),(0,et.jsxs)("section",{className:"bg-white rounded-lg p-8 mb-6 shadow-sm",children:[(0,et.jsx)("div",{className:"mb-4",children:(0,et.jsx)(Kn,{availableOptions:B,inputArray:r,handleCheckboxChange:S,label:Wn.SCOPE})}),(0,et.jsxs)("div",{className:"flex gap-2 flex-wrap",children:[N&&(0,et.jsx)("button",{type:"button","data-testid":On.btnConnect(),onClick:C,className:"bg-blue-500 text-white px-5 py-2 rounded text-base hover:bg-blue-600 transition-colors",children:"Connecting"}),O&&(0,et.jsx)("button",{type:"button","data-testid":On.btnConnect(),onClick:C,className:"bg-blue-500 text-white px-5 py-2 rounded text-base hover:bg-blue-600 transition-colors",children:"Connect"}),!f&&(0,et.jsx)("button",{type:"button","data-testid":On.btnConnect("legacy"),onClick:I,className:"bg-green-500 text-white px-5 py-2 rounded text-base hover:bg-green-600 transition-colors",children:"Connect (Legacy EVM)"}),!_&&(0,et.jsx)("button",{type:"button","data-testid":On.btnConnect("wagmi"),onClick:M,disabled:"pending"===k,className:"bg-purple-500 text-white px-5 py-2 rounded text-base hover:bg-purple-600 transition-colors disabled:bg-gray-400 disabled:cursor-not-allowed",children:"pending"===k?"Connecting...":"Connect (Wagmi)"}),T&&(0,et.jsx)("button",{type:"button","data-testid":P()?On.btnReconnect:On.btnDisconnect,onClick:P()?C:R,className:"bg-blue-500 text-white px-5 py-2 rounded text-base hover:bg-blue-600 transition-colors",children:P()?"Re Establishing Connection":"Disconnect"}),(T||f||_)&&(0,et.jsx)("button",{type:"button","data-testid":On.btnDisconnect,onClick:R,className:"bg-red-500 text-white px-5 py-2 rounded text-base hover:bg-red-600 transition-colors",children:"Disconnect"})]})]}),c&&(0,et.jsxs)("section",{"data-testid":On.sectionError,className:"bg-white rounded-lg p-8 mb-6 shadow-sm",children:[(0,et.jsx)("h2",{className:"text-2xl font-bold text-red-600 mb-4",children:"Error"}),(0,et.jsx)("p",{className:"text-gray-700",children:c.message.toString()})]}),(0,et.jsxs)("section",{"data-testid":On.sectionConnected,className:"bg-white rounded-lg p-8 mb-6 shadow-sm",children:[Object.keys(null!==(t=null===u||void 0===u?void 0:u.sessionScopes)&&void 0!==t?t:{}).length>0&&(0,et.jsxs)("section",{"data-testid":On.sectionScopes,className:"mb-6",children:[(0,et.jsx)("h2",{className:"text-2xl font-bold text-gray-800 mb-6",children:"Connected Networks"}),(0,et.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:Object.entries(null!==(n=null===u||void 0===u?void 0:u.sessionScopes)&&void 0!==n?n:{}).map(e=>{let[t,n]=e;return(0,et.jsx)(Fa,{scope:t,details:n},t)})})]}),f&&p&&y&&(0,et.jsxs)("section",{className:"mb-6",children:[(0,et.jsx)("h2",{className:"text-2xl font-bold text-gray-800 mb-6",children:"Legacy EVM Connection"}),(0,et.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:(0,et.jsx)(Da,{provider:p,chainId:m,accounts:g,sdk:y})})]}),_&&w&&(0,et.jsxs)("section",{className:"mb-6",children:[(0,et.jsx)("h2",{className:"text-2xl font-bold text-gray-800 mb-6",children:"Wagmi Connection"}),(0,et.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:(0,et.jsx)(rh,{})})]})]})]})})};function oh(){const e=new Set;let t=[];const n=()=>function(e){if("undefined"===typeof window)return;const t=t=>e(t.detail);return window.addEventListener("eip6963:announceProvider",t),window.dispatchEvent(new CustomEvent("eip6963:requestProvider")),()=>window.removeEventListener("eip6963:announceProvider",t)}(n=>{t.some(e=>{let{info:t}=e;return t.uuid===n.info.uuid})||(t=[...t,n],e.forEach(e=>e(t,{added:[n]})))});let r=n();return{_listeners:()=>e,clear(){e.forEach(e=>e([],{removed:[...t]})),t=[]},destroy(){var t;this.clear(),e.clear(),null===(t=r)||void 0===t||t()},findProvider(e){let{rdns:n}=e;return t.find(e=>e.info.rdns===n)},getProviders:()=>t,reset(){var e;this.clear(),null===(e=r)||void 0===e||e(),r=n()},subscribe(n){let{emitImmediately:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.add(n),r&&n(t,{added:t}),()=>e.delete(n)}}}const sh=e=>(t,n,r)=>{const i=r.subscribe;r.subscribe=(e,t,n)=>{let o=e;if(t){const i=(null==n?void 0:n.equalityFn)||Object.is;let s=e(r.getState());o=n=>{const r=e(n);if(!i(s,r)){const e=s;t(s=r,e)}},(null==n?void 0:n.fireImmediately)&&t(s,s)}return i(o)};return e(t,n,r)};function ah(e,t){let n;try{n=e()}catch(r){return}return{getItem:e=>{var r;const i=e=>null===e?null:JSON.parse(e,null==t?void 0:t.reviver),o=null!=(r=n.getItem(e))?r:null;return o instanceof Promise?o.then(i):i(o)},setItem:(e,r)=>n.setItem(e,JSON.stringify(r,null==t?void 0:t.replacer)),removeItem:e=>n.removeItem(e)}}const ch=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then:e=>ch(e)(n),catch(e){return this}}}catch(n){return{then(e){return this},catch:e=>ch(e)(n)}}},lh=(e,t)=>(n,r,i)=>{let o=(0,a.A)({storage:ah(()=>localStorage),partialize:e=>e,version:0,merge:(e,t)=>(0,a.A)((0,a.A)({},t),e)},t),s=!1;const c=new Set,l=new Set;let u=o.storage;if(!u)return e(function(){console.warn("[zustand persist middleware] Unable to update item '".concat(o.name,"', the given storage is currently unavailable.")),n(...arguments)},r,i);const d=()=>{const e=o.partialize((0,a.A)({},r()));return u.setItem(o.name,{state:e,version:o.version})},h=i.setState;i.setState=(e,t)=>{h(e,t),d()};const f=e(function(){n(...arguments),d()},r,i);let p;i.getInitialState=()=>f;const m=()=>{var e,t;if(!u)return;s=!1,c.forEach(e=>{var t;return e(null!=(t=r())?t:f)});const i=(null==(t=o.onRehydrateStorage)?void 0:t.call(o,null!=(e=r())?e:f))||void 0;return ch(u.getItem.bind(u))(o.name).then(e=>{if(e){if("number"!==typeof e.version||e.version===o.version)return[!1,e.state];if(o.migrate)return[!0,o.migrate(e.state,e.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(e=>{var t;const[i,s]=e;if(p=o.merge(s,null!=(t=r())?t:f),n(p,!0),i)return d()}).then(()=>{null==i||i(p,void 0),p=r(),s=!0,l.forEach(e=>e(p))}).catch(e=>{null==i||i(void 0,e)})};return i.persist={setOptions:e=>{o=(0,a.A)((0,a.A)({},o),e),e.storage&&(u=e.storage)},clearStorage:()=>{null==u||u.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>m(),hasHydrated:()=>s,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},o.skipHydration||m(),p||f},uh=e=>{let t;const n=new Set,r=(e,r)=>{const i="function"===typeof e?e(t):e;if(!Object.is(i,t)){const e=t;t=(null!=r?r:"object"!==typeof i||null===i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,o={setState:r,getState:i,getInitialState:()=>s,subscribe:e=>(n.add(e),()=>n.delete(e))},s=t=e(r,i,o);return o},dh=e=>e?uh(e):uh;function hh(e,t){let{errorInstance:n=new Error("timed out"),timeout:r,signal:i}=t;return new Promise((t,o)=>{(async()=>{let s;try{const a=new AbortController;r>0&&(s=setTimeout(()=>{i?a.abort():o(n)},r)),t(await e({signal:(null===a||void 0===a?void 0:a.signal)||null}))}catch(a){"AbortError"===(null===a||void 0===a?void 0:a.name)&&o(n),o(a)}finally{clearTimeout(s)}})()})}const fh=["default"];function ph(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{shimDisconnect:t=!0,unstable_shimAsyncInject:n}=e;function r(){var t;const n=e.target;if("function"===typeof n){const e=n();if(e)return e}return"object"===typeof n?n:"string"===typeof n?(0,a.A)({},null!==(t=mh[n])&&void 0!==t?t:{id:n,name:"".concat(n[0].toUpperCase()).concat(n.slice(1)),provider:"is".concat(n[0].toUpperCase()).concat(n.slice(1))}):{id:"injected",name:"Injected",provider:e=>null===e||void 0===e?void 0:e.ethereum}}let i,o,s,c;return a=>({get icon(){return r().icon},get id(){return r().id},get name(){return r().name},get supportsSimulation(){return!0},type:ph.type,async setup(){const t=await this.getProvider();null!==t&&void 0!==t&&t.on&&e.target&&(s||(s=this.onConnect.bind(this),t.on("connect",s)),i||(i=this.onAccountsChanged.bind(this),t.on("accountsChanged",i)))},async connect(){let{chainId:n,isReconnecting:r,withCapabilities:l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const u=await this.getProvider();if(!u)throw new $a;let d=[];if(r)d=await this.getAccounts().catch(()=>[]);else if(t)try{var h;if(d=null===(h=(await u.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]}))[0])||void 0===h||null===(h=h.caveats)||void 0===h||null===(h=h[0])||void 0===h||null===(h=h.value)||void 0===h?void 0:h.map(e=>(0,yu.b)(e)),d.length>0){d=await this.getAccounts()}}catch(y){const e=y;if(e.code===Cc.code)throw new Cc(e);if(e.code===Ac.code)throw e}try{var f,p,m;if((null===(f=d)||void 0===f||!f.length)&&!r){d=(await u.request({method:"eth_requestAccounts"})).map(e=>(0,yu.b)(e))}s&&(u.removeListener("connect",s),s=void 0),i||(i=this.onAccountsChanged.bind(this),u.on("accountsChanged",i)),o||(o=this.onChainChanged.bind(this),u.on("chainChanged",o)),c||(c=this.onDisconnect.bind(this),u.on("disconnect",c));let h=await this.getChainId();if(n&&h!==n){var g;const e=await this.switchChain({chainId:n}).catch(e=>{if(e.code===Cc.code)throw e;return{id:h}});h=null!==(g=null===e||void 0===e?void 0:e.id)&&void 0!==g?g:h}return t&&await(null===(p=a.storage)||void 0===p?void 0:p.removeItem("".concat(this.id,".disconnected"))),e.target||await(null===(m=a.storage)||void 0===m?void 0:m.setItem("injected.connected",!0)),{accounts:l?d.map(e=>({address:e,capabilities:{}})):d,chainId:h}}catch(y){const e=y;if(e.code===Cc.code)throw new Cc(e);if(e.code===Ac.code)throw new Ac(e);throw e}},async disconnect(){var n;const r=await this.getProvider();if(!r)throw new $a;o&&(r.removeListener("chainChanged",o),o=void 0),c&&(r.removeListener("disconnect",c),c=void 0),s||(s=this.onConnect.bind(this),r.on("connect",s));try{await hh(()=>r.request({method:"wallet_revokePermissions",params:[{eth_accounts:{}}]}),{timeout:100})}catch(l){}var i;t&&await(null===(i=a.storage)||void 0===i?void 0:i.setItem("".concat(this.id,".disconnected"),!0));e.target||await(null===(n=a.storage)||void 0===n?void 0:n.removeItem("injected.connected"))},async getAccounts(){const e=await this.getProvider();if(!e)throw new $a;return(await e.request({method:"eth_accounts"})).map(e=>(0,yu.b)(e))},async getChainId(){const e=await this.getProvider();if(!e)throw new $a;const t=await e.request({method:"eth_chainId"});return Number(t)},async getProvider(){if("undefined"===typeof window)return;let e;const t=r();return e="function"===typeof t.provider?t.provider(window):"string"===typeof t.provider?gh(window,t.provider):t.provider,e&&!e.removeListener&&("off"in e&&"function"===typeof e.off?e.removeListener=e.off:e.removeListener=()=>{}),e},async isAuthorized(){try{var r;if(t&&await(null===(r=a.storage)||void 0===r?void 0:r.getItem("".concat(this.id,".disconnected"))))return!1;if(!e.target){var i;if(!await(null===(i=a.storage)||void 0===i?void 0:i.getItem("injected.connected")))return!1}if(!await this.getProvider()){if(void 0!==n&&!1!==n){const e=async()=>{"undefined"!==typeof window&&window.removeEventListener("ethereum#initialized",e);return!!await this.getProvider()},t="number"===typeof n?n:1e3;if(await Promise.race([..."undefined"!==typeof window?[new Promise(t=>window.addEventListener("ethereum#initialized",()=>t(e()),{once:!0}))]:[],new Promise(n=>setTimeout(()=>n(e()),t))]))return!0}throw new $a}return!!(await pu(()=>this.getAccounts())).length}catch(o){return!1}},async switchChain(e){let{addEthereumChainParameter:t,chainId:n}=e;const r=await this.getProvider();if(!r)throw new $a;const i=a.chains.find(e=>e.id===n);if(!i)throw new Rc(new Wt);const o=new Promise(e=>{const t=r=>{"chainId"in r&&r.chainId===n&&(a.emitter.off("change",t),e())};a.emitter.on("change",t)});try{return await Promise.all([r.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,nc.cK)(n)}]}).then(async()=>{await this.getChainId()===n&&a.emitter.emit("change",{chainId:n})}),o]),i}catch(p){var s;const e=p;if(4902===e.code||4902===(null===e||void 0===e||null===(s=e.data)||void 0===s||null===(s=s.originalError)||void 0===s?void 0:s.code))try{var c,l,u,d,h,f;const e=null!==(c=i.blockExplorers)&&void 0!==c?c:{},{default:s}=e,p=(0,qe.A)(e,fh);let m,g;null!==t&&void 0!==t&&t.blockExplorerUrls?m=t.blockExplorerUrls:s&&(m=[s.url,...Object.values(p).map(e=>e.url)]),g=null!==t&&void 0!==t&&null!==(l=t.rpcUrls)&&void 0!==l&&l.length?t.rpcUrls:[null!==(u=null===(d=i.rpcUrls.default)||void 0===d?void 0:d.http[0])&&void 0!==u?u:""];const y={blockExplorerUrls:m,chainId:(0,nc.cK)(n),chainName:null!==(h=null===t||void 0===t?void 0:t.chainName)&&void 0!==h?h:i.name,iconUrls:null===t||void 0===t?void 0:t.iconUrls,nativeCurrency:null!==(f=null===t||void 0===t?void 0:t.nativeCurrency)&&void 0!==f?f:i.nativeCurrency,rpcUrls:g};return await Promise.all([r.request({method:"wallet_addEthereumChain",params:[y]}).then(async()=>{if(await this.getChainId()!==n)throw new Cc(new Error("User rejected switch after adding network."));a.emitter.emit("change",{chainId:n})}),o]),i}catch(m){throw new Cc(m)}if(e.code===Cc.code)throw new Cc(e);throw new Rc(e)}},async onAccountsChanged(e){if(0===e.length)this.onDisconnect();else if(a.emitter.listenerCount("connect")){var n;const e=(await this.getChainId()).toString();this.onConnect({chainId:e}),t&&await(null===(n=a.storage)||void 0===n?void 0:n.removeItem("".concat(this.id,".disconnected")))}else a.emitter.emit("change",{accounts:e.map(e=>(0,yu.b)(e))})},onChainChanged(e){const t=Number(e);a.emitter.emit("change",{chainId:t})},async onConnect(e){const t=await this.getAccounts();if(0===t.length)return;const n=Number(e.chainId);a.emitter.emit("connect",{accounts:t,chainId:n});const r=await this.getProvider();r&&(s&&(r.removeListener("connect",s),s=void 0),i||(i=this.onAccountsChanged.bind(this),r.on("accountsChanged",i)),o||(o=this.onChainChanged.bind(this),r.on("chainChanged",o)),c||(c=this.onDisconnect.bind(this),r.on("disconnect",c)))},async onDisconnect(e){const t=await this.getProvider();e&&1013===e.code&&t&&(await this.getAccounts()).length||(a.emitter.emit("disconnect"),t&&(o&&(t.removeListener("chainChanged",o),o=void 0),c&&(t.removeListener("disconnect",c),c=void 0),s||(s=this.onConnect.bind(this),t.on("connect",s))))}})}ph.type="injected";const mh={coinbaseWallet:{id:"coinbaseWallet",name:"Coinbase Wallet",provider:e=>null!==e&&void 0!==e&&e.coinbaseWalletExtension?e.coinbaseWalletExtension:gh(e,"isCoinbaseWallet")},metaMask:{id:"metaMask",name:"MetaMask",provider:e=>gh(e,e=>{if(!e.isMetaMask)return!1;if(e.isBraveWallet&&!e._events&&!e._state)return!1;const t=["isApexWallet","isAvalanche","isBitKeep","isBlockWallet","isKuCoinWallet","isMathWallet","isOkxWallet","isOKExWallet","isOneInchIOSWallet","isOneInchAndroidWallet","isOpera","isPhantom","isPortal","isRabby","isTokenPocket","isTokenary","isUniswapWallet","isZerion"];for(const n of t)if(e[n])return!1;return!0})},phantom:{id:"phantom",name:"Phantom",provider(e){var t,n;return null!==e&&void 0!==e&&null!==(t=e.phantom)&&void 0!==t&&t.ethereum?null===(n=e.phantom)||void 0===n?void 0:n.ethereum:gh(e,"isPhantom")}}};function gh(e,t){function n(e){return"function"===typeof t?t(e):"string"!==typeof t||e[t]}const r=e.ethereum;return null!==r&&void 0!==r&&r.providers?r.providers.find(e=>n(e)):r&&n(r)?r:void 0}class yh{constructor(e){Object.defineProperty(this,"uid",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"_emitter",{enumerable:!0,configurable:!0,writable:!0,value:new ti.EventEmitter})}on(e,t){this._emitter.on(e,t)}once(e,t){this._emitter.once(e,t)}off(e,t){this._emitter.off(e,t)}emit(e){const t=arguments.length<=1?void 0:arguments[1];this._emitter.emit(e,(0,a.A)({uid:this.uid},t))}listenerCount(e){return this._emitter.listenerCount(e)}}function bh(e){const{deserialize:t=dt,key:n="wagmi",serialize:r=ut,storage:i=vh}=e;function o(e){return e instanceof Promise?e.then(e=>e).catch(()=>null):e}return(0,a.A)((0,a.A)({},i),{},{key:n,async getItem(e,r){var s;const a=i.getItem("".concat(n,".").concat(e)),c=await o(a);return c?null!==(s=t(c))&&void 0!==s?s:null:null!==r&&void 0!==r?r:null},async setItem(e,t){const s="".concat(n,".").concat(e);null===t?await o(i.removeItem(s)):await o(i.setItem(s,r(t)))},async removeItem(e){await o(i.removeItem("".concat(n,".").concat(e)))}})}const vh={getItem:()=>null,setItem:()=>{},removeItem:()=>{}};function wh(){const e="undefined"!==typeof window&&window.localStorage?window.localStorage:vh;return{getItem:t=>e.getItem(t),removeItem(t){e.removeItem(t)},setItem(t,n){try{e.setItem(t,n)}catch(r){}}}}let _h,xh=256;const Ah=["multiInjectedProviderDiscovery","storage","syncConnectedChain","ssr"];class kh extends qa.C{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}var Eh=n(6703);function Sh(){return{current:0,take(){return this.current++},reset(){this.current=0}}}const Ph=Sh();function Ch(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{batch:n,fetchFn:r,fetchOptions:i,key:o="http",methods:s,name:c="HTTP JSON-RPC",onFetchRequest:l,onFetchResponse:u,retryDelay:d,raw:h}=t;return f=>{var p,m;let{chain:g,retryCount:y,timeout:b}=f;const{batchSize:v=1e3,wait:w=0}="object"===typeof n?n:{},_=null!==(p=t.retryCount)&&void 0!==p?p:y,x=null!==(m=null!==b&&void 0!==b?b:t.timeout)&&void 0!==m?m:1e4,A=e||(null===g||void 0===g?void 0:g.rpcUrls.default.http[0]);if(!A)throw new kh;const k=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{async request(n){var r,i,o,s;const{body:c,fetchFn:l=(null!==(r=t.fetchFn)&&void 0!==r?r:fetch),onRequest:u=t.onRequest,onResponse:d=t.onResponse,timeout:h=(null!==(i=t.timeout)&&void 0!==i?i:1e4)}=n,f=(0,a.A)((0,a.A)({},null!==(o=t.fetchOptions)&&void 0!==o?o:{}),null!==(s=n.fetchOptions)&&void 0!==s?s:{}),{headers:p,method:m,signal:g}=f;try{var y;const t=await hh(async t=>{var n,r,i;let{signal:o}=t;const s=(0,a.A)((0,a.A)({},f),{},{body:Array.isArray(c)?(0,nu.A)(c.map(e=>{var t;return(0,a.A)({jsonrpc:"2.0",id:null!==(t=e.id)&&void 0!==t?t:Ph.take()},e)})):(0,nu.A)((0,a.A)({jsonrpc:"2.0",id:null!==(n=c.id)&&void 0!==n?n:Ph.take()},c)),headers:(0,a.A)({"Content-Type":"application/json"},p),method:m||"POST",signal:g||(h>0?o:null)}),d=new Request(e,s),y=null!==(r=await(null===u||void 0===u?void 0:u(d,s)))&&void 0!==r?r:(0,a.A)((0,a.A)({},s),{},{url:e});return await l(null!==(i=y.url)&&void 0!==i?i:e,y)},{errorInstance:new fc.MU({body:c,url:e}),timeout:h,signal:!0});let n;if(d&&await d(t),null!==(y=t.headers.get("Content-Type"))&&void 0!==y&&y.startsWith("application/json"))n=await t.json();else{n=await t.text();try{n=JSON.parse(n||"{}")}catch(b){if(t.ok)throw b;n={error:n}}}if(!t.ok)throw new fc.Ci({body:c,details:(0,nu.A)(n.error)||t.statusText,headers:t.headers,status:t.status,url:e});return n}catch(b){if(b instanceof fc.Ci)throw b;if(b instanceof fc.MU)throw b;throw new fc.Ci({body:c,cause:b,url:e})}}}}(A,{fetchFn:r,fetchOptions:i,onRequest:l,onResponse:u,timeout:x});return gu({key:o,methods:s,name:c,async request(e){let{method:t,params:r}=e;const i={method:t,params:r},{schedule:o}=(0,Eh.u)({id:A,wait:w,shouldSplitBatch:e=>e.length>v,fn:e=>k.request({body:e}),sort:(e,t)=>e.id-t.id}),[{error:s,result:a}]=await(async e=>n?o(e):[await k.request({body:e})])(i);if(h)return{error:s,result:a};if(s)throw new fc.J8({body:i,error:s,url:A});return a},retryCount:_,retryDelay:d,timeout:x,type:"http"},{fetchOptions:i,url:A})}}function Ih(e){return(0,a.A)({formatters:void 0,fees:void 0,serializers:void 0},e)}const Mh=Ih({id:1,name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:12e3,rpcUrls:{default:{http:["https://eth.merkle.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://etherscan.io",apiUrl:"https://api.etherscan.io/api"}},contracts:{ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:23085558},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),Th=Ih({id:11155111,name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://11155111.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.etherscan.io",apiUrl:"https://api-sepolia.etherscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:751532},ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:8928790}},testnet:!0}),Oh={gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}},Rh={block:ld({format(e){var t;return{transactions:null===(t=e.transactions)||void 0===t?void 0:t.map(e=>{if("string"===typeof e)return e;const t=sd(e);return"0x7e"===t.typeHex&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?(0,Xa.uU)(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}),stateRoot:e.stateRoot}}}),transaction:ad({format(e){const t={};return"0x7e"===e.type&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?(0,Xa.uU)(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}}),transactionReceipt:Gd({format:e=>({l1GasPrice:e.l1GasPrice?(0,Xa.uU)(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?(0,Xa.uU)(e.l1GasUsed):null,l1Fee:e.l1Fee?(0,Xa.uU)(e.l1Fee):null,l1FeeScalar:e.l1FeeScalar?Number(e.l1FeeScalar):null})})};var Bh=n(7578),Nh=n(2569);const Uh=["chainId","nonce"];var jh=n(2505),Lh=n(2129);function Fh(e){const{chainId:t,maxPriorityFeePerGas:n,maxFeePerGas:r,to:i}=e;if(t<=0)throw new Wu.qD({chainId:t});if(i&&!(0,Nh.P)(i))throw new Bh.M({address:i});if(r&&r>jh.Ao)throw new Ku.BG({maxFeePerGas:r});if(n&&r&&n>r)throw new Ku.lN({maxFeePerGas:r,maxPriorityFeePerGas:n})}function Dh(e){if(!e||0===e.length)return[];const t=[];for(let n=0;n<e.length;n++){const{address:r,storageKeys:i}=e[n];for(let e=0;e<i.length;e++)if(i[e].length-2!==64)throw new $u.fZ({storageKey:i[e]});if(!(0,Nh.P)(r,{strict:!1}))throw new Bh.M({address:r});t.push([r,i])}return t}function zh(e,t){const n=Rd(e);return"eip1559"===n?function(e,t){const{chainId:n,gas:r,nonce:i,to:o,value:s,maxFeePerGas:a,maxPriorityFeePerGas:c,accessList:l,data:u}=e;Fh(e);const d=Dh(l),h=[(0,nc.cK)(n),i?(0,nc.cK)(i):"0x",c?(0,nc.cK)(c):"0x",a?(0,nc.cK)(a):"0x",r?(0,nc.cK)(r):"0x",null!==o&&void 0!==o?o:"0x",s?(0,nc.cK)(s):"0x",null!==u&&void 0!==u?u:"0x",d,...qh(e,t)];return(0,Uu.aP)(["0x02",Fu(h)])}(e,t):"eip2930"===n?function(e,t){const{chainId:n,gas:r,data:i,nonce:o,to:s,value:a,accessList:c,gasPrice:l}=e;!function(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:i,to:o}=e;if(t<=0)throw new Wu.qD({chainId:t});if(o&&!(0,Nh.P)(o))throw new Bh.M({address:o});if(n||i)throw new qa.C("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(r&&r>jh.Ao)throw new Ku.BG({maxFeePerGas:r})}(e);const u=Dh(c),d=[(0,nc.cK)(n),o?(0,nc.cK)(o):"0x",l?(0,nc.cK)(l):"0x",r?(0,nc.cK)(r):"0x",null!==s&&void 0!==s?s:"0x",a?(0,nc.cK)(a):"0x",null!==i&&void 0!==i?i:"0x",u,...qh(e,t)];return(0,Uu.aP)(["0x01",Fu(d)])}(e,t):"eip4844"===n?function(e,t){const{chainId:n,gas:r,nonce:i,to:o,value:s,maxFeePerBlobGas:a,maxFeePerGas:c,maxPriorityFeePerGas:l,accessList:u,data:d}=e;!function(e){const{blobVersionedHashes:t}=e;if(t){if(0===t.length)throw new Id;for(const e of t){const t=(0,Ru.E)(e),n=(0,Xa.ME)((0,Lh.di)(e,0,1));if(32!==t)throw new Md({hash:e,size:t});if(1!==n)throw new Td({hash:e,version:n})}}Fh(e)}(e);let h=e.blobVersionedHashes,f=e.sidecars;if(e.blobs&&("undefined"===typeof h||"undefined"===typeof f)){const t="string"===typeof e.blobs[0]?e.blobs:e.blobs.map(e=>(0,nc.My)(e)),n=e.kzg,r=wd({blobs:t,kzg:n});if("undefined"===typeof h&&(h=Ad({commitments:r})),"undefined"===typeof f){f=Od({blobs:t,commitments:r,proofs:_d({blobs:t,commitments:r,kzg:n})})}}const p=Dh(u),m=[(0,nc.cK)(n),i?(0,nc.cK)(i):"0x",l?(0,nc.cK)(l):"0x",c?(0,nc.cK)(c):"0x",r?(0,nc.cK)(r):"0x",null!==o&&void 0!==o?o:"0x",s?(0,nc.cK)(s):"0x",null!==d&&void 0!==d?d:"0x",p,a?(0,nc.cK)(a):"0x",null!==h&&void 0!==h?h:[],...qh(e,t)],g=[],y=[],b=[];if(f)for(let v=0;v<f.length;v++){const{blob:e,commitment:t,proof:n}=f[v];g.push(e),y.push(t),b.push(n)}return(0,Uu.aP)(["0x03",Fu(f?[m,g,y,b]:m)])}(e,t):"eip7702"===n?function(e,t){const{authorizationList:n,chainId:r,gas:i,nonce:o,to:s,value:a,maxFeePerGas:c,maxPriorityFeePerGas:l,accessList:u,data:d}=e;!function(e){const{authorizationList:t}=e;if(t)for(const n of t){const{chainId:e}=n,t=n.address;if(!(0,Nh.P)(t))throw new Bh.M({address:t});if(e<0)throw new Wu.qD({chainId:e})}Fh(e)}(e);const h=Dh(u),f=function(e){if(!e||0===e.length)return[];const t=[];for(const n of e){const{chainId:e,nonce:r}=n,i=(0,qe.A)(n,Uh),o=n.address;t.push([e?(0,nc.nj)(e):"0x",o,r?(0,nc.nj)(r):"0x",...qh({},i)])}return t}(n);return(0,Uu.aP)(["0x04",Fu([(0,nc.cK)(r),o?(0,nc.cK)(o):"0x",l?(0,nc.cK)(l):"0x",c?(0,nc.cK)(c):"0x",i?(0,nc.cK)(i):"0x",null!==s&&void 0!==s?s:"0x",a?(0,nc.cK)(a):"0x",null!==d&&void 0!==d?d:"0x",h,f,...qh(e,t)])])}(e,t):function(e,t){const{chainId:n=0,gas:r,data:i,nonce:o,to:s,value:a,gasPrice:c}=e;!function(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:i,to:o}=e;if(o&&!(0,Nh.P)(o))throw new Bh.M({address:o});if("undefined"!==typeof t&&t<=0)throw new Wu.qD({chainId:t});if(n||i)throw new qa.C("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(r&&r>jh.Ao)throw new Ku.BG({maxFeePerGas:r})}(e);let l=[o?(0,nc.cK)(o):"0x",c?(0,nc.cK)(c):"0x",r?(0,nc.cK)(r):"0x",null!==s&&void 0!==s?s:"0x",a?(0,nc.cK)(a):"0x",null!==i&&void 0!==i?i:"0x"];if(t){const e=(()=>{if(t.v>=35n){return(t.v-35n)/2n>0?t.v:27n+(35n===t.v?0n:1n)}if(n>0)return BigInt(2*n)+BigInt(35n+t.v-27n);const e=27n+(27n===t.v?0n:1n);if(t.v!==e)throw new $u.zW({v:t.v});return e})(),r=(0,ec.B)(t.r),i=(0,ec.B)(t.s);l=[...l,(0,nc.cK)(e),"0x00"===r?"0x":r,"0x00"===i?"0x":i]}else n>0&&(l=[...l,(0,nc.cK)(n),"0x","0x"]);return Fu(l)}(e,t)}function qh(e,t){const n=null!==t&&void 0!==t?t:e,{v:r,yParity:i}=n;if("undefined"===typeof n.r)return[];if("undefined"===typeof n.s)return[];if("undefined"===typeof r&&"undefined"===typeof i)return[];const o=(0,ec.B)(n.r),s=(0,ec.B)(n.s);return["number"===typeof i?i?(0,nc.cK)(1):"0x":0n===r?"0x":1n===r?(0,nc.cK)(1):27n===r?"0x":(0,nc.cK)(1),"0x00"===o?"0x":o,"0x00"===s?"0x":s]}function Hh(e,t){return function(e){return"deposit"===e.type||"undefined"!==typeof e.sourceHash}(e)?function(e){!function(e){const{from:t,to:n}=e;if(t&&!(0,Nh.P)(t))throw new Bh.M({address:t});if(n&&!(0,Nh.P)(n))throw new Bh.M({address:n})}(e);const{sourceHash:t,data:n,from:r,gas:i,isSystemTx:o,mint:s,to:a,value:c}=e,l=[t,r,null!==a&&void 0!==a?a:"0x",s?(0,nc.nj)(s):"0x",c?(0,nc.nj)(c):"0x",i?(0,nc.nj)(i):"0x",o?"0x1":"0x",null!==n&&void 0!==n?n:"0x"];return(0,Uu.aP)(["0x7e",Fu(l)])}(e):zh(e,t)}const Wh={blockTime:2e3,contracts:Oh,formatters:Rh,serializers:{transaction:Hh}},Kh=1,$h=Ih((0,a.A)((0,a.A)({},Wh),{},{id:10,name:"OP Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.optimism.io"]}},blockExplorers:{default:{name:"Optimism Explorer",url:"https://optimistic.etherscan.io",apiUrl:"https://api-optimistic.etherscan.io/api"}},contracts:(0,a.A)((0,a.A)({},Wh.contracts),{},{disputeGameFactory:{[Kh]:{address:"0xe5965Ab5962eDc7477C8520243A95517CD252fA9"}},l2OutputOracle:{[Kh]:{address:"0xdfe97868233d1aa22e815a266982f2cf17685a27"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4286263},portal:{[Kh]:{address:"0xbEb5Fc579115071764c7423A4f12eDde41f106Ed"}},l1StandardBridge:{[Kh]:{address:"0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1"}}}),sourceId:1})),Vh={estimateFeesPerGas:async e=>{var t;if(null===(t=e.request)||void 0===t||!t.feeCurrency)return null;const[n,r]=await Promise.all([Gh(e.client,e.request.feeCurrency),Jh(e.client,e.request.feeCurrency)]);return{maxFeePerGas:e.multiply(n-r)+r,maxPriorityFeePerGas:r}}};async function Gh(e,t){const n=await e.request({method:"eth_gasPrice",params:[t]});return BigInt(n)}async function Jh(e,t){const n=await e.request({method:"eth_maxPriorityFeePerGas",params:[t]});return BigInt(n)}function Zh(e){return 0===e||0n===e||void 0===e||null===e||"0"===e||""===e||"string"===typeof e&&("0x"===(0,ec.B)(e).toLowerCase()||"0x00"===(0,ec.B)(e).toLowerCase())}function Yh(e){return!Zh(e)}function Qh(e){return"cip64"===e.type||function(e){return"undefined"!==typeof e.maxFeePerGas&&"undefined"!==typeof e.maxPriorityFeePerGas}(e)&&Yh(e.feeCurrency)}const Xh={block:ld({format(e){var t;return{transactions:null===(t=e.transactions)||void 0===t?void 0:t.map(e=>{if("string"===typeof e)return e;const t=sd(e);return(0,a.A)((0,a.A)((0,a.A)({},t),e.gatewayFee?{gatewayFee:(0,Xa.uU)(e.gatewayFee),gatewayFeeRecipient:e.gatewayFeeRecipient}:{}),{},{feeCurrency:e.feeCurrency})})}}}),transaction:ad({format(e){if("0x7e"===e.type)return{isSystemTx:e.isSystemTx,mint:e.mint?(0,Xa.uU)(e.mint):void 0,sourceHash:e.sourceHash,type:"deposit"};const t={feeCurrency:e.feeCurrency};return"0x7b"===e.type?t.type="cip64":("0x7c"===e.type&&(t.type="cip42"),t.gatewayFee=e.gatewayFee?(0,Xa.uU)(e.gatewayFee):null,t.gatewayFeeRecipient=e.gatewayFeeRecipient),t}}),transactionRequest:(0,Zu.bm)({format(e){const t={};return e.feeCurrency&&(t.feeCurrency=e.feeCurrency),Qh(e)&&(t.type="0x7b"),t}})};const ef={transaction:function(e,t){return Qh(e)?function(e,t){!function(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:i,to:o,feeCurrency:s}=e;if(t<=0)throw new Wu.qD({chainId:t});if(o&&!(0,Nh.P)(o))throw new Bh.M({address:o});if(r)throw new qa.C("`gasPrice` is not a valid CIP-64 Transaction attribute.");if(Yh(i)&&i>tf)throw new Ku.BG({maxFeePerGas:i});if(Yh(n)&&Yh(i)&&n>i)throw new Ku.lN({maxFeePerGas:i,maxPriorityFeePerGas:n});if(Yh(s)&&!(0,Nh.P)(s))throw new qa.C("`feeCurrency` MUST be a token address for CIP-64 transactions.");if(Zh(s))throw new qa.C("`feeCurrency` must be provided for CIP-64 transactions.")}(e);const{chainId:n,gas:r,nonce:i,to:o,value:s,maxFeePerGas:a,maxPriorityFeePerGas:c,accessList:l,feeCurrency:u,data:d}=e,h=[(0,nc.nj)(n),i?(0,nc.nj)(i):"0x",c?(0,nc.nj)(c):"0x",a?(0,nc.nj)(a):"0x",r?(0,nc.nj)(r):"0x",null!==o&&void 0!==o?o:"0x",s?(0,nc.nj)(s):"0x",null!==d&&void 0!==d?d:"0x",Dh(l),u,...qh(e,t)];return(0,Uu.aP)(["0x7b",Fu(h)])}(e,t):Hh(e,t)}};const tf=jh.Ao;const nf={blockTime:1e3,contracts:Oh,formatters:Xh,serializers:ef,fees:Vh},rf=Ih((0,a.A)((0,a.A)({},nf),{},{id:42220,name:"Celo",nativeCurrency:{decimals:18,name:"CELO",symbol:"CELO"},rpcUrls:{default:{http:["https://forno.celo.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://celoscan.io",apiUrl:"https://api.celoscan.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:13112599}},testnet:!1}));function of(){let e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i=>({id:"metaMaskSDK",name:"MetaMask",rdns:["io.metamask","io.metamask.mobile"],type:of.type,async connect(){let{chainId:e=1,isReconnecting:t,withCapabilities:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const o=await this.getInstance(),s=o.getProvider();let a=[];t&&(a=await this.getAccounts().catch(()=>[]));try{var c;let t,u;if(null===(c=a)||void 0===c||!c.length){const e=i.chains.map(e=>e.id);if(r.connectAndSign||r.connectWith)r.connectAndSign?t=await o.connectAndSign({chainIds:e,message:r.connectAndSign}):r.connectWith&&(u=await o.connectWith({chainIds:e,method:r.connectWith.method,params:r.connectWith.params})),a=await this.getAccounts();else{a=(await o.connect({chainIds:e})).accounts.map(e=>(0,yu.b)(e))}}let d=await this.getChainId();if(e&&d!==e){var l;const t=await this.switchChain({chainId:e}).catch(e=>{if(e.code===Cc.code)throw e;return{id:d}});d=null!==(l=null===t||void 0===t?void 0:t.id)&&void 0!==l?l:d}return t?s.emit("connectAndSign",{accounts:a,chainId:d,signResponse:t}):u&&s.emit("connectWith",{accounts:a,chainId:d,connectWithResponse:u}),{accounts:n?a.map(e=>({address:e,capabilities:{}})):a,chainId:d}}catch(u){const e=u;if(e.code===Cc.code)throw new Cc(e);if(e.code===Ac.code)throw new Ac(e);throw e}},async disconnect(){return(await this.getInstance()).disconnect()},async getAccounts(){const e=await this.getInstance();if(e.accounts.length)return e.accounts.map(e=>(0,yu.b)(e));const t=e.getProvider();return(await t.request({method:"eth_accounts"})).map(e=>(0,yu.b)(e))},async getChainId(){const e=await this.getInstance();if(e.getChainId())return Number(e.getChainId());const t=e.getProvider(),n=await t.request({method:"eth_chainId"});return Number(n)},async getProvider(){return(await this.getInstance()).getProvider()},async isAuthorized(){try{const e=10;return!!(await pu(()=>hh(async()=>{const e=await this.getAccounts();if(!e.length)throw new Error("try again");return e},{timeout:e}),{delay:e+1,retryCount:3})).length}catch(e){return!1}},async switchChain(e){let{addEthereumChainParameter:t,chainId:n}=e;const r=i.chains.find(e=>{let{id:t}=e;return t===n});if(!r)throw new Rc(new Wt);try{var o,s,a,c;const e=await this.getInstance();return await e.switchChain({chainId:n,chainConfiguration:{blockExplorerUrls:null!==t&&void 0!==t&&t.blockExplorerUrls?[...t.blockExplorerUrls]:null!==(o=r.blockExplorers)&&void 0!==o&&o.default.url?[r.blockExplorers.default.url]:void 0,chainId:"0x".concat(n.toString(16)),chainName:null!==(s=null===t||void 0===t?void 0:t.chainName)&&void 0!==s?s:r.name,iconUrls:null===t||void 0===t?void 0:t.iconUrls,nativeCurrency:null!==(a=null===t||void 0===t?void 0:t.nativeCurrency)&&void 0!==a?a:r.nativeCurrency,rpcUrls:null!==t&&void 0!==t&&t.rpcUrls?[...t.rpcUrls]:null!==(c=r.rpcUrls.default)&&void 0!==c&&c.http?[...r.rpcUrls.default.http]:void 0}}),r}catch(l){const e=l;if(e.code===Cc.code)throw new Cc(e);throw new Rc(e)}},async onAccountsChanged(e){i.emitter.emit("change",{accounts:e.map(e=>(0,yu.b)(e))})},onChainChanged(e){const t=Number(e);i.emitter.emit("change",{chainId:t})},async onConnect(e){const t=await this.getAccounts();if(0===t.length)return;const n=Number(e.chainId);i.emitter.emit("connect",{accounts:t,chainId:n})},async onDisconnect(e){if(e&&1013===e.code){if(await this.getProvider()&&(await this.getAccounts()).length)return}i.emitter.emit("disconnect")},onDisplayUri(e){i.emitter.emit("message",{type:"display_uri",data:e})},async getInstance(){if(!e){if(!t){const{createEVMClient:e}=await(()=>{try{return Promise.resolve().then(n.bind(n,3873))}catch(e){throw new Error('dependency "@metamask/connect-evm" not found')}})();t=e((0,a.A)({api:{supportedNetworks:Object.fromEntries(i.chains.map(e=>{var t;return["eip155:".concat(e.id),null===(t=e.rpcUrls.default)||void 0===t?void 0:t.http[0]]}))},dapp:r.dappMetadata?r.dappMetadata:r.dapp?r.dapp:"undefined"===typeof window?{name:"wagmi"}:{name:window.location.hostname,url:window.location.href},debug:!!r.logging||r.debug,eventHandlers:{accountsChanged:this.onAccountsChanged.bind(this),chainChanged:this.onChainChanged.bind(this),connect:this.onConnect.bind(this),disconnect:this.onDisconnect.bind(this),displayUri:this.onDisplayUri.bind(this)}},r.mobile&&{mobile:r.mobile}))}e=await t}return e}})}of.type="metaMask";const sf=function(e){var t;const{multiInjectedProviderDiscovery:n=!0,storage:r=bh({storage:wh()}),syncConnectedChain:i=!0,ssr:o=!1}=e,s=(0,qe.A)(e,Ah),c="undefined"!==typeof window&&n?oh():void 0,l=dh(()=>s.chains),u=dh(()=>{const e=[],t=new Set;for(const r of null!==(n=s.connectors)&&void 0!==n?n:[]){var n;const i=d(r);if(e.push(i),!o&&i.rdns){const e="string"===typeof i.rdns?[i.rdns]:i.rdns;for(const n of e)t.add(n)}}if(!o&&c){const n=c.getProviders();for(const r of n)t.has(r.info.rdns)||e.push(d(h(r)))}return e});function d(e){var t;const n=function(e){return new yh(e)}(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:11;if(!_h||xh+e>512){_h="",xh=0;for(let e=0;e<256;e++)_h+=(256+256*Math.random()|0).toString(16).substring(1)}return _h.substring(xh,xh+++e)}()),i=(0,a.A)((0,a.A)({},e({emitter:n,chains:l.getState(),storage:r,transports:s.transports})),{},{emitter:n,uid:n.uid});return n.on("connect",w),null===(t=i.setup)||void 0===t||t.call(i),i}function h(e){const{info:t}=e,n=e.provider;return ph({target:(0,a.A)((0,a.A)({},t),{},{id:t.rdns,provider:n})})}const f=new Map;function p(){return{chainId:l.getState()[0].id,connections:new Map,current:null,status:"disconnected"}}let m;const g="0.0.0-canary-";m=xt.startsWith(g)?Number.parseInt(xt.replace(g,""),10):Number.parseInt(null!==(t=xt.split(".")[0])&&void 0!==t?t:"0",10);const y=dh(sh(r?lh(p,{migrate(e,t){if(t===m)return e;const n=p(),r=b(e,n.chainId);return(0,a.A)((0,a.A)({},n),{},{chainId:r})},name:"store",partialize:e=>({connections:{__type:"Map",value:Array.from(e.connections.entries()).map(e=>{let[t,n]=e;const{id:r,name:i,type:o,uid:s}=n.connector,c={id:r,name:i,type:o,uid:s};return[t,(0,a.A)((0,a.A)({},n),{},{connector:c})]})},chainId:e.chainId,current:e.current}),merge(e,t){"object"===typeof e&&e&&"status"in e&&delete e.status;const n=b(e,t.chainId);return(0,a.A)((0,a.A)((0,a.A)({},t),e),{},{chainId:n})},skipHydration:o,storage:r,version:m}):p));function b(e,t){return e&&"object"===typeof e&&"chainId"in e&&"number"===typeof e.chainId&&l.getState().some(t=>t.id===e.chainId)?e.chainId:t}function v(e){y.setState(t=>{var n,r;const i=t.connections.get(e.uid);return i?(0,a.A)((0,a.A)({},t),{},{connections:new Map(t.connections).set(e.uid,{accounts:null!==(n=e.accounts)&&void 0!==n?n:i.accounts,chainId:null!==(r=e.chainId)&&void 0!==r?r:i.chainId,connector:i.connector})}):t})}function w(e){"connecting"!==y.getState().status&&"reconnecting"!==y.getState().status&&y.setState(t=>{const n=u.getState().find(t=>t.uid===e.uid);return n?(n.emitter.listenerCount("connect")&&n.emitter.off("connect",v),n.emitter.listenerCount("change")||n.emitter.on("change",v),n.emitter.listenerCount("disconnect")||n.emitter.on("disconnect",_),(0,a.A)((0,a.A)({},t),{},{connections:new Map(t.connections).set(e.uid,{accounts:e.accounts,chainId:e.chainId,connector:n}),current:e.uid,status:"connected"})):t})}function _(e){y.setState(t=>{const n=t.connections.get(e.uid);if(n){const e=n.connector;e.emitter.listenerCount("change")&&n.connector.emitter.off("change",v),e.emitter.listenerCount("disconnect")&&n.connector.emitter.off("disconnect",_),e.emitter.listenerCount("connect")||n.connector.emitter.on("connect",w)}if(t.connections.delete(e.uid),0===t.connections.size)return(0,a.A)((0,a.A)({},t),{},{connections:new Map,current:null,status:"disconnected"});const r=t.connections.values().next().value;return(0,a.A)((0,a.A)({},t),{},{connections:new Map(t.connections),current:r.connector.uid})})}return y.setState(p()),i&&y.subscribe(e=>{var t;let{connections:n,current:r}=e;return r?null===(t=n.get(r))||void 0===t?void 0:t.chainId:void 0},e=>{if(l.getState().some(t=>t.id===e))return y.setState(t=>(0,a.A)((0,a.A)({},t),{},{chainId:null!==e&&void 0!==e?e:t.chainId}))}),null===c||void 0===c||c.subscribe(e=>{const t=new Set,n=new Set;for(const r of u.getState())if(t.add(r.id),r.rdns){const e="string"===typeof r.rdns?[r.rdns]:r.rdns;for(const t of e)n.add(t)}const i=[];for(const r of e){if(n.has(r.info.rdns))continue;const e=d(h(r));t.has(e.id)||i.push(e)}r&&!y.persist.hasHydrated()||u.setState(e=>[...e,...i],!0)}),{get chains(){return l.getState()},get connectors(){return u.getState()},storage:r,getClient:function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=null!==(e=t.chainId)&&void 0!==e?e:y.getState().chainId,r=l.getState().find(e=>e.id===n);if(t.chainId&&!r)throw new Wt;{const e=f.get(y.getState().chainId);if(e&&!r)return e;if(!r)throw new Wt}{const e=f.get(n);if(e)return e}let i;if(s.client)i=s.client({chain:r});else{var o;const e=r.id,t=l.getState().map(e=>e.id),n={},c=Object.entries(s);for(const[r,i]of c)if("chains"!==r&&"client"!==r&&"connectors"!==r&&"transports"!==r)if("object"===typeof i)if(e in i)n[r]=i[e];else{if(t.some(e=>e in i))continue;n[r]=i}else n[r]=i;i=du((0,a.A)((0,a.A)({},n),{},{chain:r,batch:null!==(o=n.batch)&&void 0!==o?o:{multicall:!0},transport:t=>s.transports[e]((0,a.A)((0,a.A)({},t),{},{connectors:u}))}))}return f.set(n,i),i},get state(){return y.getState()},setState(e){let t;t="function"===typeof e?e(y.getState()):e;const n=p();"object"!==typeof t&&(t=n);Object.keys(n).some(e=>!(e in t))&&(t=n),y.setState(t,!0)},subscribe:(e,t,n)=>y.subscribe(e,t,n?(0,a.A)((0,a.A)({},n),{},{fireImmediately:n.emitImmediately}):void 0),_internal:{mipd:c,async revalidate(){const e=y.getState(),t=e.connections;let n=e.current;for(const[,r]of t){const e=r.connector;!!e.isAuthorized&&await e.isAuthorized()||(t.delete(e.uid),n===e.uid&&(n=null))}y.setState(e=>(0,a.A)((0,a.A)({},e),{},{connections:t,current:n}))},store:y,ssr:Boolean(o),syncConnectedChain:i,transports:s.transports,chains:{setState(e){const t="function"===typeof e?e(l.getState()):e;if(0!==t.length)return l.setState(t,!0)},subscribe:e=>l.subscribe(e)},connectors:{providerDetailToConnector:h,setup:d,setState:e=>u.setState("function"===typeof e?e(u.getState()):e,!0),subscribe:e=>u.subscribe(e)},events:{change:v,connect:w,disconnect:_}}}}({chains:[Mh,Th,$h,rf],connectors:[of({dapp:{name:window.location.hostname,url:window.location.href}})],transports:{[Mh.id]:Ch(),[Th.id]:Ch(),[$h.id]:Ch(),[rf.id]:Ch()}}),af=new ze({defaultOptions:{queries:{gcTime:864e5,networkMode:"offlineFirst",refetchOnWindowFocus:!1,retry:0},mutations:{networkMode:"offlineFirst"}}}),cf=function(e){let{storage:t,key:n="REACT_QUERY_OFFLINE_CACHE",throttleTime:o=1e3,serialize:s=JSON.stringify,deserialize:a=JSON.parse,retry:c}=e;if(t){const e=e=>{try{return void t.setItem(n,s(e))}catch(r){return r}};return{persistClient:r(t=>{let n=t,r=e(n),i=0;for(;r&&n;)i++,n=null===c||void 0===c?void 0:c({persistedClient:n,error:r,errorCount:i}),n&&(r=e(n))},o),restoreClient:()=>{const e=t.getItem(n);if(e)return a(e)},removeClient:()=>{t.removeItem(n)}}}return{persistClient:i,restoreClient:()=>{},removeClient:i}}({key:"browser-playground.cache",serialize:ut,storage:window.localStorage,deserialize:dt});t.createRoot(document.getElementById("root")).render((0,et.jsx)(e.StrictMode,{children:(0,et.jsx)(gt,{config:sf,children:(0,et.jsx)(at,{client:af,persistOptions:{persister:cf},children:(0,et.jsx)(Fn,{children:(0,et.jsx)(Hn,{children:(0,et.jsx)(ih,{})})})})})}))})()})();
3
+ //# sourceMappingURL=main.e41514ec.js.map