@paimaexample/explorer 0.3.28 → 0.3.29

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.
@@ -1,154 +0,0 @@
1
- var _2=e=>{throw TypeError(e)};var Hy=(e,t,i)=>t.has(e)||_2("Cannot "+i);var dt=(e,t,i)=>(Hy(e,t,"read from private field"),i?i.call(e):t.get(e)),ji=(e,t,i)=>t.has(e)?_2("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),Oa=(e,t,i,a)=>(Hy(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),ct=(e,t,i)=>(Hy(e,t,"access private method"),i);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))a(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const l of c.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&a(l)}).observe(document,{childList:!0,subtree:!0});function i(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function a(s){if(s.ep)return;s.ep=!0;const c=i(s);fetch(s.href,c)}})();var ki=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Hd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ky={exports:{}},vc={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var D2;function r4(){if(D2)return vc;D2=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function i(a,s,c){var l=null;if(c!==void 0&&(l=""+c),s.key!==void 0&&(l=""+s.key),"key"in s){c={};for(var f in s)f!=="key"&&(c[f]=s[f])}else c=s;return s=c.ref,{$$typeof:e,type:a,key:l,ref:s!==void 0?s:null,props:c}}return vc.Fragment=t,vc.jsx=i,vc.jsxs=i,vc}var U2;function i4(){return U2||(U2=1,ky.exports=r4()),ky.exports}var J=i4(),zy={exports:{}},Gy={},xc={},M2;function a4(){if(M2)return xc;M2=1,xc.byteLength=f,xc.toByteArray=h,xc.fromByteArray=A;for(var e=[],t=[],i=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s<c;++s)e[s]=a[s],t[a.charCodeAt(s)]=s;t[45]=62,t[95]=63;function l(I){var C=I.length;if(C%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var U=I.indexOf("=");U===-1&&(U=C);var B=U===C?0:4-U%4;return[U,B]}function f(I){var C=l(I),U=C[0],B=C[1];return(U+B)*3/4-B}function p(I,C,U){return(C+U)*3/4-U}function h(I){var C,U=l(I),B=U[0],_=U[1],D=new i(p(I,B,_)),M=0,te=_>0?B-4:B,z;for(z=0;z<te;z+=4)C=t[I.charCodeAt(z)]<<18|t[I.charCodeAt(z+1)]<<12|t[I.charCodeAt(z+2)]<<6|t[I.charCodeAt(z+3)],D[M++]=C>>16&255,D[M++]=C>>8&255,D[M++]=C&255;return _===2&&(C=t[I.charCodeAt(z)]<<2|t[I.charCodeAt(z+1)]>>4,D[M++]=C&255),_===1&&(C=t[I.charCodeAt(z)]<<10|t[I.charCodeAt(z+1)]<<4|t[I.charCodeAt(z+2)]>>2,D[M++]=C>>8&255,D[M++]=C&255),D}function b(I){return e[I>>18&63]+e[I>>12&63]+e[I>>6&63]+e[I&63]}function v(I,C,U){for(var B,_=[],D=C;D<U;D+=3)B=(I[D]<<16&16711680)+(I[D+1]<<8&65280)+(I[D+2]&255),_.push(b(B));return _.join("")}function A(I){for(var C,U=I.length,B=U%3,_=[],D=16383,M=0,te=U-B;M<te;M+=D)_.push(v(I,M,M+D>te?te:M+D));return B===1?(C=I[U-1],_.push(e[C>>2]+e[C<<4&63]+"==")):B===2&&(C=(I[U-2]<<8)+I[U-1],_.push(e[C>>10]+e[C>>4&63]+e[C<<2&63]+"=")),_.join("")}return xc}var id={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var j2;function o4(){return j2||(j2=1,id.read=function(e,t,i,a,s){var c,l,f=s*8-a-1,p=(1<<f)-1,h=p>>1,b=-7,v=i?s-1:0,A=i?-1:1,I=e[t+v];for(v+=A,c=I&(1<<-b)-1,I>>=-b,b+=f;b>0;c=c*256+e[t+v],v+=A,b-=8);for(l=c&(1<<-b)-1,c>>=-b,b+=a;b>0;l=l*256+e[t+v],v+=A,b-=8);if(c===0)c=1-h;else{if(c===p)return l?NaN:(I?-1:1)*(1/0);l=l+Math.pow(2,a),c=c-h}return(I?-1:1)*l*Math.pow(2,c-a)},id.write=function(e,t,i,a,s,c){var l,f,p,h=c*8-s-1,b=(1<<h)-1,v=b>>1,A=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,I=a?0:c-1,C=a?1:-1,U=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(f=isNaN(t)?1:0,l=b):(l=Math.floor(Math.log(t)/Math.LN2),t*(p=Math.pow(2,-l))<1&&(l--,p*=2),l+v>=1?t+=A/p:t+=A*Math.pow(2,1-v),t*p>=2&&(l++,p/=2),l+v>=b?(f=0,l=b):l+v>=1?(f=(t*p-1)*Math.pow(2,s),l=l+v):(f=t*Math.pow(2,v-1)*Math.pow(2,s),l=0));s>=8;e[i+I]=f&255,I+=C,f/=256,s-=8);for(l=l<<s|f,h+=s;h>0;e[i+I]=l&255,I+=C,l/=256,h-=8);e[i+I-C]|=U*128}),id}/*!
10
- * The buffer module from node.js, for the browser.
11
- *
12
- * @author Feross Aboukhadijeh <https://feross.org>
13
- * @license MIT
14
- */var P2;function s4(){return P2||(P2=1,(function(e){var t=a4(),i=o4(),a=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=f,e.SlowBuffer=D,e.INSPECT_MAX_BYTES=50;var s=2147483647;e.kMaxLength=s,f.TYPED_ARRAY_SUPPORT=c(),!f.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&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.");function c(){try{var x=new Uint8Array(1),g={foo:function(){return 42}};return Object.setPrototypeOf(g,Uint8Array.prototype),Object.setPrototypeOf(x,g),x.foo()===42}catch{return!1}}Object.defineProperty(f.prototype,"parent",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.buffer}}),Object.defineProperty(f.prototype,"offset",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.byteOffset}});function l(x){if(x>s)throw new RangeError('The value "'+x+'" is invalid for option "size"');var g=new Uint8Array(x);return Object.setPrototypeOf(g,f.prototype),g}function f(x,g,m){if(typeof x=="number"){if(typeof g=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return v(x)}return p(x,g,m)}f.poolSize=8192;function p(x,g,m){if(typeof x=="string")return A(x,g);if(ArrayBuffer.isView(x))return C(x);if(x==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof x);if(W(x,ArrayBuffer)||x&&W(x.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(W(x,SharedArrayBuffer)||x&&W(x.buffer,SharedArrayBuffer)))return U(x,g,m);if(typeof x=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var S=x.valueOf&&x.valueOf();if(S!=null&&S!==x)return f.from(S,g,m);var ee=B(x);if(ee)return ee;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof x[Symbol.toPrimitive]=="function")return f.from(x[Symbol.toPrimitive]("string"),g,m);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof x)}f.from=function(x,g,m){return p(x,g,m)},Object.setPrototypeOf(f.prototype,Uint8Array.prototype),Object.setPrototypeOf(f,Uint8Array);function h(x){if(typeof x!="number")throw new TypeError('"size" argument must be of type number');if(x<0)throw new RangeError('The value "'+x+'" is invalid for option "size"')}function b(x,g,m){return h(x),x<=0?l(x):g!==void 0?typeof m=="string"?l(x).fill(g,m):l(x).fill(g):l(x)}f.alloc=function(x,g,m){return b(x,g,m)};function v(x){return h(x),l(x<0?0:_(x)|0)}f.allocUnsafe=function(x){return v(x)},f.allocUnsafeSlow=function(x){return v(x)};function A(x,g){if((typeof g!="string"||g==="")&&(g="utf8"),!f.isEncoding(g))throw new TypeError("Unknown encoding: "+g);var m=M(x,g)|0,S=l(m),ee=S.write(x,g);return ee!==m&&(S=S.slice(0,ee)),S}function I(x){for(var g=x.length<0?0:_(x.length)|0,m=l(g),S=0;S<g;S+=1)m[S]=x[S]&255;return m}function C(x){if(W(x,Uint8Array)){var g=new Uint8Array(x);return U(g.buffer,g.byteOffset,g.byteLength)}return I(x)}function U(x,g,m){if(g<0||x.byteLength<g)throw new RangeError('"offset" is outside of buffer bounds');if(x.byteLength<g+(m||0))throw new RangeError('"length" is outside of buffer bounds');var S;return g===void 0&&m===void 0?S=new Uint8Array(x):m===void 0?S=new Uint8Array(x,g):S=new Uint8Array(x,g,m),Object.setPrototypeOf(S,f.prototype),S}function B(x){if(f.isBuffer(x)){var g=_(x.length)|0,m=l(g);return m.length===0||x.copy(m,0,0,g),m}if(x.length!==void 0)return typeof x.length!="number"||le(x.length)?l(0):I(x);if(x.type==="Buffer"&&Array.isArray(x.data))return I(x.data)}function _(x){if(x>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return x|0}function D(x){return+x!=x&&(x=0),f.alloc(+x)}f.isBuffer=function(g){return g!=null&&g._isBuffer===!0&&g!==f.prototype},f.compare=function(g,m){if(W(g,Uint8Array)&&(g=f.from(g,g.offset,g.byteLength)),W(m,Uint8Array)&&(m=f.from(m,m.offset,m.byteLength)),!f.isBuffer(g)||!f.isBuffer(m))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(g===m)return 0;for(var S=g.length,ee=m.length,Ae=0,Se=Math.min(S,ee);Ae<Se;++Ae)if(g[Ae]!==m[Ae]){S=g[Ae],ee=m[Ae];break}return S<ee?-1:ee<S?1:0},f.isEncoding=function(g){switch(String(g).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}},f.concat=function(g,m){if(!Array.isArray(g))throw new TypeError('"list" argument must be an Array of Buffers');if(g.length===0)return f.alloc(0);var S;if(m===void 0)for(m=0,S=0;S<g.length;++S)m+=g[S].length;var ee=f.allocUnsafe(m),Ae=0;for(S=0;S<g.length;++S){var Se=g[S];if(W(Se,Uint8Array))Ae+Se.length>ee.length?f.from(Se).copy(ee,Ae):Uint8Array.prototype.set.call(ee,Se,Ae);else if(f.isBuffer(Se))Se.copy(ee,Ae);else throw new TypeError('"list" argument must be an Array of Buffers');Ae+=Se.length}return ee};function M(x,g){if(f.isBuffer(x))return x.length;if(ArrayBuffer.isView(x)||W(x,ArrayBuffer))return x.byteLength;if(typeof x!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof x);var m=x.length,S=arguments.length>2&&arguments[2]===!0;if(!S&&m===0)return 0;for(var ee=!1;;)switch(g){case"ascii":case"latin1":case"binary":return m;case"utf8":case"utf-8":return ge(x).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return m*2;case"hex":return m>>>1;case"base64":return P(x).length;default:if(ee)return S?-1:ge(x).length;g=(""+g).toLowerCase(),ee=!0}}f.byteLength=M;function te(x,g,m){var S=!1;if((g===void 0||g<0)&&(g=0),g>this.length||((m===void 0||m>this.length)&&(m=this.length),m<=0)||(m>>>=0,g>>>=0,m<=g))return"";for(x||(x="utf8");;)switch(x){case"hex":return Z(this,g,m);case"utf8":case"utf-8":return X(this,g,m);case"ascii":return re(this,g,m);case"latin1":case"binary":return fe(this,g,m);case"base64":return Y(this,g,m);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,g,m);default:if(S)throw new TypeError("Unknown encoding: "+x);x=(x+"").toLowerCase(),S=!0}}f.prototype._isBuffer=!0;function z(x,g,m){var S=x[g];x[g]=x[m],x[m]=S}f.prototype.swap16=function(){var g=this.length;if(g%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var m=0;m<g;m+=2)z(this,m,m+1);return this},f.prototype.swap32=function(){var g=this.length;if(g%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var m=0;m<g;m+=4)z(this,m,m+3),z(this,m+1,m+2);return this},f.prototype.swap64=function(){var g=this.length;if(g%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var m=0;m<g;m+=8)z(this,m,m+7),z(this,m+1,m+6),z(this,m+2,m+5),z(this,m+3,m+4);return this},f.prototype.toString=function(){var g=this.length;return g===0?"":arguments.length===0?X(this,0,g):te.apply(this,arguments)},f.prototype.toLocaleString=f.prototype.toString,f.prototype.equals=function(g){if(!f.isBuffer(g))throw new TypeError("Argument must be a Buffer");return this===g?!0:f.compare(this,g)===0},f.prototype.inspect=function(){var g="",m=e.INSPECT_MAX_BYTES;return g=this.toString("hex",0,m).replace(/(.{2})/g,"$1 ").trim(),this.length>m&&(g+=" ... "),"<Buffer "+g+">"},a&&(f.prototype[a]=f.prototype.inspect),f.prototype.compare=function(g,m,S,ee,Ae){if(W(g,Uint8Array)&&(g=f.from(g,g.offset,g.byteLength)),!f.isBuffer(g))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof g);if(m===void 0&&(m=0),S===void 0&&(S=g?g.length:0),ee===void 0&&(ee=0),Ae===void 0&&(Ae=this.length),m<0||S>g.length||ee<0||Ae>this.length)throw new RangeError("out of range index");if(ee>=Ae&&m>=S)return 0;if(ee>=Ae)return-1;if(m>=S)return 1;if(m>>>=0,S>>>=0,ee>>>=0,Ae>>>=0,this===g)return 0;for(var Se=Ae-ee,Me=S-m,se=Math.min(Se,Me),ue=this.slice(ee,Ae),Ee=g.slice(m,S),Oe=0;Oe<se;++Oe)if(ue[Oe]!==Ee[Oe]){Se=ue[Oe],Me=Ee[Oe];break}return Se<Me?-1:Me<Se?1:0};function ne(x,g,m,S,ee){if(x.length===0)return-1;if(typeof m=="string"?(S=m,m=0):m>2147483647?m=2147483647:m<-2147483648&&(m=-2147483648),m=+m,le(m)&&(m=ee?0:x.length-1),m<0&&(m=x.length+m),m>=x.length){if(ee)return-1;m=x.length-1}else if(m<0)if(ee)m=0;else return-1;if(typeof g=="string"&&(g=f.from(g,S)),f.isBuffer(g))return g.length===0?-1:ce(x,g,m,S,ee);if(typeof g=="number")return g=g&255,typeof Uint8Array.prototype.indexOf=="function"?ee?Uint8Array.prototype.indexOf.call(x,g,m):Uint8Array.prototype.lastIndexOf.call(x,g,m):ce(x,[g],m,S,ee);throw new TypeError("val must be string, number or Buffer")}function ce(x,g,m,S,ee){var Ae=1,Se=x.length,Me=g.length;if(S!==void 0&&(S=String(S).toLowerCase(),S==="ucs2"||S==="ucs-2"||S==="utf16le"||S==="utf-16le")){if(x.length<2||g.length<2)return-1;Ae=2,Se/=2,Me/=2,m/=2}function se(Ne,qe){return Ae===1?Ne[qe]:Ne.readUInt16BE(qe*Ae)}var ue;if(ee){var Ee=-1;for(ue=m;ue<Se;ue++)if(se(x,ue)===se(g,Ee===-1?0:ue-Ee)){if(Ee===-1&&(Ee=ue),ue-Ee+1===Me)return Ee*Ae}else Ee!==-1&&(ue-=ue-Ee),Ee=-1}else for(m+Me>Se&&(m=Se-Me),ue=m;ue>=0;ue--){for(var Oe=!0,_e=0;_e<Me;_e++)if(se(x,ue+_e)!==se(g,_e)){Oe=!1;break}if(Oe)return ue}return-1}f.prototype.includes=function(g,m,S){return this.indexOf(g,m,S)!==-1},f.prototype.indexOf=function(g,m,S){return ne(this,g,m,S,!0)},f.prototype.lastIndexOf=function(g,m,S){return ne(this,g,m,S,!1)};function oe(x,g,m,S){m=Number(m)||0;var ee=x.length-m;S?(S=Number(S),S>ee&&(S=ee)):S=ee;var Ae=g.length;S>Ae/2&&(S=Ae/2);for(var Se=0;Se<S;++Se){var Me=parseInt(g.substr(Se*2,2),16);if(le(Me))return Se;x[m+Se]=Me}return Se}function F(x,g,m,S){return Q(ge(g,x.length-m),x,m,S)}function H(x,g,m,S){return Q(q(g),x,m,S)}function K(x,g,m,S){return Q(P(g),x,m,S)}function G(x,g,m,S){return Q(E(g,x.length-m),x,m,S)}f.prototype.write=function(g,m,S,ee){if(m===void 0)ee="utf8",S=this.length,m=0;else if(S===void 0&&typeof m=="string")ee=m,S=this.length,m=0;else if(isFinite(m))m=m>>>0,isFinite(S)?(S=S>>>0,ee===void 0&&(ee="utf8")):(ee=S,S=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Ae=this.length-m;if((S===void 0||S>Ae)&&(S=Ae),g.length>0&&(S<0||m<0)||m>this.length)throw new RangeError("Attempt to write outside buffer bounds");ee||(ee="utf8");for(var Se=!1;;)switch(ee){case"hex":return oe(this,g,m,S);case"utf8":case"utf-8":return F(this,g,m,S);case"ascii":case"latin1":case"binary":return H(this,g,m,S);case"base64":return K(this,g,m,S);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,g,m,S);default:if(Se)throw new TypeError("Unknown encoding: "+ee);ee=(""+ee).toLowerCase(),Se=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Y(x,g,m){return g===0&&m===x.length?t.fromByteArray(x):t.fromByteArray(x.slice(g,m))}function X(x,g,m){m=Math.min(x.length,m);for(var S=[],ee=g;ee<m;){var Ae=x[ee],Se=null,Me=Ae>239?4:Ae>223?3:Ae>191?2:1;if(ee+Me<=m){var se,ue,Ee,Oe;switch(Me){case 1:Ae<128&&(Se=Ae);break;case 2:se=x[ee+1],(se&192)===128&&(Oe=(Ae&31)<<6|se&63,Oe>127&&(Se=Oe));break;case 3:se=x[ee+1],ue=x[ee+2],(se&192)===128&&(ue&192)===128&&(Oe=(Ae&15)<<12|(se&63)<<6|ue&63,Oe>2047&&(Oe<55296||Oe>57343)&&(Se=Oe));break;case 4:se=x[ee+1],ue=x[ee+2],Ee=x[ee+3],(se&192)===128&&(ue&192)===128&&(Ee&192)===128&&(Oe=(Ae&15)<<18|(se&63)<<12|(ue&63)<<6|Ee&63,Oe>65535&&Oe<1114112&&(Se=Oe))}}Se===null?(Se=65533,Me=1):Se>65535&&(Se-=65536,S.push(Se>>>10&1023|55296),Se=56320|Se&1023),S.push(Se),ee+=Me}return R(S)}var pe=4096;function R(x){var g=x.length;if(g<=pe)return String.fromCharCode.apply(String,x);for(var m="",S=0;S<g;)m+=String.fromCharCode.apply(String,x.slice(S,S+=pe));return m}function re(x,g,m){var S="";m=Math.min(x.length,m);for(var ee=g;ee<m;++ee)S+=String.fromCharCode(x[ee]&127);return S}function fe(x,g,m){var S="";m=Math.min(x.length,m);for(var ee=g;ee<m;++ee)S+=String.fromCharCode(x[ee]);return S}function Z(x,g,m){var S=x.length;(!g||g<0)&&(g=0),(!m||m<0||m>S)&&(m=S);for(var ee="",Ae=g;Ae<m;++Ae)ee+=de[x[Ae]];return ee}function O(x,g,m){for(var S=x.slice(g,m),ee="",Ae=0;Ae<S.length-1;Ae+=2)ee+=String.fromCharCode(S[Ae]+S[Ae+1]*256);return ee}f.prototype.slice=function(g,m){var S=this.length;g=~~g,m=m===void 0?S:~~m,g<0?(g+=S,g<0&&(g=0)):g>S&&(g=S),m<0?(m+=S,m<0&&(m=0)):m>S&&(m=S),m<g&&(m=g);var ee=this.subarray(g,m);return Object.setPrototypeOf(ee,f.prototype),ee};function V(x,g,m){if(x%1!==0||x<0)throw new RangeError("offset is not uint");if(x+g>m)throw new RangeError("Trying to access beyond buffer length")}f.prototype.readUintLE=f.prototype.readUIntLE=function(g,m,S){g=g>>>0,m=m>>>0,S||V(g,m,this.length);for(var ee=this[g],Ae=1,Se=0;++Se<m&&(Ae*=256);)ee+=this[g+Se]*Ae;return ee},f.prototype.readUintBE=f.prototype.readUIntBE=function(g,m,S){g=g>>>0,m=m>>>0,S||V(g,m,this.length);for(var ee=this[g+--m],Ae=1;m>0&&(Ae*=256);)ee+=this[g+--m]*Ae;return ee},f.prototype.readUint8=f.prototype.readUInt8=function(g,m){return g=g>>>0,m||V(g,1,this.length),this[g]},f.prototype.readUint16LE=f.prototype.readUInt16LE=function(g,m){return g=g>>>0,m||V(g,2,this.length),this[g]|this[g+1]<<8},f.prototype.readUint16BE=f.prototype.readUInt16BE=function(g,m){return g=g>>>0,m||V(g,2,this.length),this[g]<<8|this[g+1]},f.prototype.readUint32LE=f.prototype.readUInt32LE=function(g,m){return g=g>>>0,m||V(g,4,this.length),(this[g]|this[g+1]<<8|this[g+2]<<16)+this[g+3]*16777216},f.prototype.readUint32BE=f.prototype.readUInt32BE=function(g,m){return g=g>>>0,m||V(g,4,this.length),this[g]*16777216+(this[g+1]<<16|this[g+2]<<8|this[g+3])},f.prototype.readIntLE=function(g,m,S){g=g>>>0,m=m>>>0,S||V(g,m,this.length);for(var ee=this[g],Ae=1,Se=0;++Se<m&&(Ae*=256);)ee+=this[g+Se]*Ae;return Ae*=128,ee>=Ae&&(ee-=Math.pow(2,8*m)),ee},f.prototype.readIntBE=function(g,m,S){g=g>>>0,m=m>>>0,S||V(g,m,this.length);for(var ee=m,Ae=1,Se=this[g+--ee];ee>0&&(Ae*=256);)Se+=this[g+--ee]*Ae;return Ae*=128,Se>=Ae&&(Se-=Math.pow(2,8*m)),Se},f.prototype.readInt8=function(g,m){return g=g>>>0,m||V(g,1,this.length),this[g]&128?(255-this[g]+1)*-1:this[g]},f.prototype.readInt16LE=function(g,m){g=g>>>0,m||V(g,2,this.length);var S=this[g]|this[g+1]<<8;return S&32768?S|4294901760:S},f.prototype.readInt16BE=function(g,m){g=g>>>0,m||V(g,2,this.length);var S=this[g+1]|this[g]<<8;return S&32768?S|4294901760:S},f.prototype.readInt32LE=function(g,m){return g=g>>>0,m||V(g,4,this.length),this[g]|this[g+1]<<8|this[g+2]<<16|this[g+3]<<24},f.prototype.readInt32BE=function(g,m){return g=g>>>0,m||V(g,4,this.length),this[g]<<24|this[g+1]<<16|this[g+2]<<8|this[g+3]},f.prototype.readFloatLE=function(g,m){return g=g>>>0,m||V(g,4,this.length),i.read(this,g,!0,23,4)},f.prototype.readFloatBE=function(g,m){return g=g>>>0,m||V(g,4,this.length),i.read(this,g,!1,23,4)},f.prototype.readDoubleLE=function(g,m){return g=g>>>0,m||V(g,8,this.length),i.read(this,g,!0,52,8)},f.prototype.readDoubleBE=function(g,m){return g=g>>>0,m||V(g,8,this.length),i.read(this,g,!1,52,8)};function ie(x,g,m,S,ee,Ae){if(!f.isBuffer(x))throw new TypeError('"buffer" argument must be a Buffer instance');if(g>ee||g<Ae)throw new RangeError('"value" argument is out of bounds');if(m+S>x.length)throw new RangeError("Index out of range")}f.prototype.writeUintLE=f.prototype.writeUIntLE=function(g,m,S,ee){if(g=+g,m=m>>>0,S=S>>>0,!ee){var Ae=Math.pow(2,8*S)-1;ie(this,g,m,S,Ae,0)}var Se=1,Me=0;for(this[m]=g&255;++Me<S&&(Se*=256);)this[m+Me]=g/Se&255;return m+S},f.prototype.writeUintBE=f.prototype.writeUIntBE=function(g,m,S,ee){if(g=+g,m=m>>>0,S=S>>>0,!ee){var Ae=Math.pow(2,8*S)-1;ie(this,g,m,S,Ae,0)}var Se=S-1,Me=1;for(this[m+Se]=g&255;--Se>=0&&(Me*=256);)this[m+Se]=g/Me&255;return m+S},f.prototype.writeUint8=f.prototype.writeUInt8=function(g,m,S){return g=+g,m=m>>>0,S||ie(this,g,m,1,255,0),this[m]=g&255,m+1},f.prototype.writeUint16LE=f.prototype.writeUInt16LE=function(g,m,S){return g=+g,m=m>>>0,S||ie(this,g,m,2,65535,0),this[m]=g&255,this[m+1]=g>>>8,m+2},f.prototype.writeUint16BE=f.prototype.writeUInt16BE=function(g,m,S){return g=+g,m=m>>>0,S||ie(this,g,m,2,65535,0),this[m]=g>>>8,this[m+1]=g&255,m+2},f.prototype.writeUint32LE=f.prototype.writeUInt32LE=function(g,m,S){return g=+g,m=m>>>0,S||ie(this,g,m,4,4294967295,0),this[m+3]=g>>>24,this[m+2]=g>>>16,this[m+1]=g>>>8,this[m]=g&255,m+4},f.prototype.writeUint32BE=f.prototype.writeUInt32BE=function(g,m,S){return g=+g,m=m>>>0,S||ie(this,g,m,4,4294967295,0),this[m]=g>>>24,this[m+1]=g>>>16,this[m+2]=g>>>8,this[m+3]=g&255,m+4},f.prototype.writeIntLE=function(g,m,S,ee){if(g=+g,m=m>>>0,!ee){var Ae=Math.pow(2,8*S-1);ie(this,g,m,S,Ae-1,-Ae)}var Se=0,Me=1,se=0;for(this[m]=g&255;++Se<S&&(Me*=256);)g<0&&se===0&&this[m+Se-1]!==0&&(se=1),this[m+Se]=(g/Me>>0)-se&255;return m+S},f.prototype.writeIntBE=function(g,m,S,ee){if(g=+g,m=m>>>0,!ee){var Ae=Math.pow(2,8*S-1);ie(this,g,m,S,Ae-1,-Ae)}var Se=S-1,Me=1,se=0;for(this[m+Se]=g&255;--Se>=0&&(Me*=256);)g<0&&se===0&&this[m+Se+1]!==0&&(se=1),this[m+Se]=(g/Me>>0)-se&255;return m+S},f.prototype.writeInt8=function(g,m,S){return g=+g,m=m>>>0,S||ie(this,g,m,1,127,-128),g<0&&(g=255+g+1),this[m]=g&255,m+1},f.prototype.writeInt16LE=function(g,m,S){return g=+g,m=m>>>0,S||ie(this,g,m,2,32767,-32768),this[m]=g&255,this[m+1]=g>>>8,m+2},f.prototype.writeInt16BE=function(g,m,S){return g=+g,m=m>>>0,S||ie(this,g,m,2,32767,-32768),this[m]=g>>>8,this[m+1]=g&255,m+2},f.prototype.writeInt32LE=function(g,m,S){return g=+g,m=m>>>0,S||ie(this,g,m,4,2147483647,-2147483648),this[m]=g&255,this[m+1]=g>>>8,this[m+2]=g>>>16,this[m+3]=g>>>24,m+4},f.prototype.writeInt32BE=function(g,m,S){return g=+g,m=m>>>0,S||ie(this,g,m,4,2147483647,-2147483648),g<0&&(g=4294967295+g+1),this[m]=g>>>24,this[m+1]=g>>>16,this[m+2]=g>>>8,this[m+3]=g&255,m+4};function $(x,g,m,S,ee,Ae){if(m+S>x.length)throw new RangeError("Index out of range");if(m<0)throw new RangeError("Index out of range")}function j(x,g,m,S,ee){return g=+g,m=m>>>0,ee||$(x,g,m,4),i.write(x,g,m,S,23,4),m+4}f.prototype.writeFloatLE=function(g,m,S){return j(this,g,m,!0,S)},f.prototype.writeFloatBE=function(g,m,S){return j(this,g,m,!1,S)};function N(x,g,m,S,ee){return g=+g,m=m>>>0,ee||$(x,g,m,8),i.write(x,g,m,S,52,8),m+8}f.prototype.writeDoubleLE=function(g,m,S){return N(this,g,m,!0,S)},f.prototype.writeDoubleBE=function(g,m,S){return N(this,g,m,!1,S)},f.prototype.copy=function(g,m,S,ee){if(!f.isBuffer(g))throw new TypeError("argument should be a Buffer");if(S||(S=0),!ee&&ee!==0&&(ee=this.length),m>=g.length&&(m=g.length),m||(m=0),ee>0&&ee<S&&(ee=S),ee===S||g.length===0||this.length===0)return 0;if(m<0)throw new RangeError("targetStart out of bounds");if(S<0||S>=this.length)throw new RangeError("Index out of range");if(ee<0)throw new RangeError("sourceEnd out of bounds");ee>this.length&&(ee=this.length),g.length-m<ee-S&&(ee=g.length-m+S);var Ae=ee-S;return this===g&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(m,S,ee):Uint8Array.prototype.set.call(g,this.subarray(S,ee),m),Ae},f.prototype.fill=function(g,m,S,ee){if(typeof g=="string"){if(typeof m=="string"?(ee=m,m=0,S=this.length):typeof S=="string"&&(ee=S,S=this.length),ee!==void 0&&typeof ee!="string")throw new TypeError("encoding must be a string");if(typeof ee=="string"&&!f.isEncoding(ee))throw new TypeError("Unknown encoding: "+ee);if(g.length===1){var Ae=g.charCodeAt(0);(ee==="utf8"&&Ae<128||ee==="latin1")&&(g=Ae)}}else typeof g=="number"?g=g&255:typeof g=="boolean"&&(g=Number(g));if(m<0||this.length<m||this.length<S)throw new RangeError("Out of range index");if(S<=m)return this;m=m>>>0,S=S===void 0?this.length:S>>>0,g||(g=0);var Se;if(typeof g=="number")for(Se=m;Se<S;++Se)this[Se]=g;else{var Me=f.isBuffer(g)?g:f.from(g,ee),se=Me.length;if(se===0)throw new TypeError('The value "'+g+'" is invalid for argument "value"');for(Se=0;Se<S-m;++Se)this[Se+m]=Me[Se%se]}return this};var k=/[^+/0-9A-Za-z-_]/g;function ye(x){if(x=x.split("=")[0],x=x.trim().replace(k,""),x.length<2)return"";for(;x.length%4!==0;)x=x+"=";return x}function ge(x,g){g=g||1/0;for(var m,S=x.length,ee=null,Ae=[],Se=0;Se<S;++Se){if(m=x.charCodeAt(Se),m>55295&&m<57344){if(!ee){if(m>56319){(g-=3)>-1&&Ae.push(239,191,189);continue}else if(Se+1===S){(g-=3)>-1&&Ae.push(239,191,189);continue}ee=m;continue}if(m<56320){(g-=3)>-1&&Ae.push(239,191,189),ee=m;continue}m=(ee-55296<<10|m-56320)+65536}else ee&&(g-=3)>-1&&Ae.push(239,191,189);if(ee=null,m<128){if((g-=1)<0)break;Ae.push(m)}else if(m<2048){if((g-=2)<0)break;Ae.push(m>>6|192,m&63|128)}else if(m<65536){if((g-=3)<0)break;Ae.push(m>>12|224,m>>6&63|128,m&63|128)}else if(m<1114112){if((g-=4)<0)break;Ae.push(m>>18|240,m>>12&63|128,m>>6&63|128,m&63|128)}else throw new Error("Invalid code point")}return Ae}function q(x){for(var g=[],m=0;m<x.length;++m)g.push(x.charCodeAt(m)&255);return g}function E(x,g){for(var m,S,ee,Ae=[],Se=0;Se<x.length&&!((g-=2)<0);++Se)m=x.charCodeAt(Se),S=m>>8,ee=m%256,Ae.push(ee),Ae.push(S);return Ae}function P(x){return t.toByteArray(ye(x))}function Q(x,g,m,S){for(var ee=0;ee<S&&!(ee+m>=g.length||ee>=x.length);++ee)g[ee+m]=x[ee];return ee}function W(x,g){return x instanceof g||x!=null&&x.constructor!=null&&x.constructor.name!=null&&x.constructor.name===g.name}function le(x){return x!==x}var de=(function(){for(var x="0123456789abcdef",g=new Array(256),m=0;m<16;++m)for(var S=m*16,ee=0;ee<16;++ee)g[S+ee]=x[m]+x[ee];return g})()})(Gy)),Gy}var Yt=s4(),ad={exports:{}},N2;function u4(){return N2||(N2=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var i={exports:{}},a=i.exports={},s,c;function l(){throw new Error("setTimeout has not been defined")}function f(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?s=setTimeout:s=l}catch{s=l}try{typeof clearTimeout=="function"?c=clearTimeout:c=f}catch{c=f}})();function p(Z){if(s===setTimeout)return setTimeout(Z,0);if((s===l||!s)&&setTimeout)return s=setTimeout,setTimeout(Z,0);try{return s(Z,0)}catch{try{return s.call(null,Z,0)}catch{return s.call(this,Z,0)}}}function h(Z){if(c===clearTimeout)return clearTimeout(Z);if((c===f||!c)&&clearTimeout)return c=clearTimeout,clearTimeout(Z);try{return c(Z)}catch{try{return c.call(null,Z)}catch{return c.call(this,Z)}}}var b=[],v=!1,A,I=-1;function C(){!v||!A||(v=!1,A.length?b=A.concat(b):I=-1,b.length&&U())}function U(){if(!v){var Z=p(C);v=!0;for(var O=b.length;O;){for(A=b,b=[];++I<O;)A&&A[I].run();I=-1,O=b.length}A=null,v=!1,h(Z)}}a.nextTick=function(Z){var O=new Array(arguments.length-1);if(arguments.length>1)for(var V=1;V<arguments.length;V++)O[V-1]=arguments[V];b.push(new B(Z,O)),b.length===1&&!v&&p(U)};function B(Z,O){this.fun=Z,this.array=O}B.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={};function _(){}a.on=_,a.addListener=_,a.once=_,a.off=_,a.removeListener=_,a.removeAllListeners=_,a.emit=_,a.prependListener=_,a.prependOnceListener=_,a.listeners=function(Z){return[]},a.binding=function(Z){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(Z){throw new Error("process.chdir is not supported")},a.umask=function(){return 0};function D(){}var M=i.exports.browser,te=D,z=i.exports.binding,ne=D,ce=1,oe={},F=D,H=D,K=D,G=D,Y=D,X="browser",pe="browser",R="browser",re=[],fe={nextTick:i.exports.nextTick,title:i.exports.title,browser:M,env:i.exports.env,argv:i.exports.argv,version:i.exports.version,versions:i.exports.versions,on:i.exports.on,addListener:i.exports.addListener,once:i.exports.once,off:i.exports.off,removeListener:i.exports.removeListener,removeAllListeners:i.exports.removeAllListeners,emit:i.exports.emit,emitWarning:te,prependListener:i.exports.prependListener,prependOnceListener:i.exports.prependOnceListener,listeners:i.exports.listeners,binding:z,cwd:i.exports.cwd,chdir:i.exports.chdir,umask:i.exports.umask,exit:ne,pid:ce,features:oe,kill:F,dlopen:H,uptime:K,memoryUsage:G,uvCounters:Y,platform:X,arch:pe,execPath:R,execArgv:re};t.addListener=i.exports.addListener,t.arch=pe,t.argv=i.exports.argv,t.binding=z,t.browser=M,t.chdir=i.exports.chdir,t.cwd=i.exports.cwd,t.default=fe,t.dlopen=H,t.emit=i.exports.emit,t.emitWarning=te,t.env=i.exports.env,t.execArgv=re,t.execPath=R,t.exit=ne,t.features=oe,t.kill=F,t.listeners=i.exports.listeners,t.memoryUsage=G,t.nextTick=i.exports.nextTick,t.off=i.exports.off,t.on=i.exports.on,t.once=i.exports.once,t.pid=ce,t.platform=X,t.prependListener=i.exports.prependListener,t.prependOnceListener=i.exports.prependOnceListener,t.removeAllListeners=i.exports.removeAllListeners,t.removeListener=i.exports.removeListener,t.title=i.exports.title,t.umask=i.exports.umask,t.uptime=K,t.uvCounters=Y,t.version=i.exports.version,t.versions=i.exports.versions,t=e.exports=fe})(ad,ad.exports)),ad.exports}var c4=u4();const it=Hd(c4);(function(e){function t(){var a=this||self;return delete e.prototype.__magic__,a}if(typeof globalThis=="object")return globalThis;if(this)return t();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:t});var i=__magic__;return i})(Object);var Ze={},L2;function l4(){if(L2)return Ze;L2=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),l=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),v=Symbol.iterator;function A(O){return O===null||typeof O!="object"?null:(O=v&&O[v]||O["@@iterator"],typeof O=="function"?O:null)}var I={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,U={};function B(O,V,ie){this.props=O,this.context=V,this.refs=U,this.updater=ie||I}B.prototype.isReactComponent={},B.prototype.setState=function(O,V){if(typeof O!="object"&&typeof O!="function"&&O!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,O,V,"setState")},B.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function _(){}_.prototype=B.prototype;function D(O,V,ie){this.props=O,this.context=V,this.refs=U,this.updater=ie||I}var M=D.prototype=new _;M.constructor=D,C(M,B.prototype),M.isPureReactComponent=!0;var te=Array.isArray,z={H:null,A:null,T:null,S:null,V:null},ne=Object.prototype.hasOwnProperty;function ce(O,V,ie,$,j,N){return ie=N.ref,{$$typeof:e,type:O,key:V,ref:ie!==void 0?ie:null,props:N}}function oe(O,V){return ce(O.type,V,void 0,void 0,void 0,O.props)}function F(O){return typeof O=="object"&&O!==null&&O.$$typeof===e}function H(O){var V={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(ie){return V[ie]})}var K=/\/+/g;function G(O,V){return typeof O=="object"&&O!==null&&O.key!=null?H(""+O.key):V.toString(36)}function Y(){}function X(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(Y,Y):(O.status="pending",O.then(function(V){O.status==="pending"&&(O.status="fulfilled",O.value=V)},function(V){O.status==="pending"&&(O.status="rejected",O.reason=V)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function pe(O,V,ie,$,j){var N=typeof O;(N==="undefined"||N==="boolean")&&(O=null);var k=!1;if(O===null)k=!0;else switch(N){case"bigint":case"string":case"number":k=!0;break;case"object":switch(O.$$typeof){case e:case t:k=!0;break;case b:return k=O._init,pe(k(O._payload),V,ie,$,j)}}if(k)return j=j(O),k=$===""?"."+G(O,0):$,te(j)?(ie="",k!=null&&(ie=k.replace(K,"$&/")+"/"),pe(j,V,ie,"",function(q){return q})):j!=null&&(F(j)&&(j=oe(j,ie+(j.key==null||O&&O.key===j.key?"":(""+j.key).replace(K,"$&/")+"/")+k)),V.push(j)),1;k=0;var ye=$===""?".":$+":";if(te(O))for(var ge=0;ge<O.length;ge++)$=O[ge],N=ye+G($,ge),k+=pe($,V,ie,N,j);else if(ge=A(O),typeof ge=="function")for(O=ge.call(O),ge=0;!($=O.next()).done;)$=$.value,N=ye+G($,ge++),k+=pe($,V,ie,N,j);else if(N==="object"){if(typeof O.then=="function")return pe(X(O),V,ie,$,j);throw V=String(O),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return k}function R(O,V,ie){if(O==null)return O;var $=[],j=0;return pe(O,$,"","",function(N){return V.call(ie,N,j++)}),$}function re(O){if(O._status===-1){var V=O._result;V=V(),V.then(function(ie){(O._status===0||O._status===-1)&&(O._status=1,O._result=ie)},function(ie){(O._status===0||O._status===-1)&&(O._status=2,O._result=ie)}),O._status===-1&&(O._status=0,O._result=V)}if(O._status===1)return O._result.default;throw O._result}var fe=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(V))return}else if(typeof it=="object"&&typeof it.emit=="function"){it.emit("uncaughtException",O);return}console.error(O)};function Z(){}return Ze.Children={map:R,forEach:function(O,V,ie){R(O,function(){V.apply(this,arguments)},ie)},count:function(O){var V=0;return R(O,function(){V++}),V},toArray:function(O){return R(O,function(V){return V})||[]},only:function(O){if(!F(O))throw Error("React.Children.only expected to receive a single React element child.");return O}},Ze.Component=B,Ze.Fragment=i,Ze.Profiler=s,Ze.PureComponent=D,Ze.StrictMode=a,Ze.Suspense=p,Ze.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=z,Ze.__COMPILER_RUNTIME={__proto__:null,c:function(O){return z.H.useMemoCache(O)}},Ze.cache=function(O){return function(){return O.apply(null,arguments)}},Ze.cloneElement=function(O,V,ie){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var $=C({},O.props),j=O.key,N=void 0;if(V!=null)for(k in V.ref!==void 0&&(N=void 0),V.key!==void 0&&(j=""+V.key),V)!ne.call(V,k)||k==="key"||k==="__self"||k==="__source"||k==="ref"&&V.ref===void 0||($[k]=V[k]);var k=arguments.length-2;if(k===1)$.children=ie;else if(1<k){for(var ye=Array(k),ge=0;ge<k;ge++)ye[ge]=arguments[ge+2];$.children=ye}return ce(O.type,j,void 0,void 0,N,$)},Ze.createContext=function(O){return O={$$typeof:l,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:c,_context:O},O},Ze.createElement=function(O,V,ie){var $,j={},N=null;if(V!=null)for($ in V.key!==void 0&&(N=""+V.key),V)ne.call(V,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(j[$]=V[$]);var k=arguments.length-2;if(k===1)j.children=ie;else if(1<k){for(var ye=Array(k),ge=0;ge<k;ge++)ye[ge]=arguments[ge+2];j.children=ye}if(O&&O.defaultProps)for($ in k=O.defaultProps,k)j[$]===void 0&&(j[$]=k[$]);return ce(O,N,void 0,void 0,null,j)},Ze.createRef=function(){return{current:null}},Ze.forwardRef=function(O){return{$$typeof:f,render:O}},Ze.isValidElement=F,Ze.lazy=function(O){return{$$typeof:b,_payload:{_status:-1,_result:O},_init:re}},Ze.memo=function(O,V){return{$$typeof:h,type:O,compare:V===void 0?null:V}},Ze.startTransition=function(O){var V=z.T,ie={};z.T=ie;try{var $=O(),j=z.S;j!==null&&j(ie,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(Z,fe)}catch(N){fe(N)}finally{z.T=V}},Ze.unstable_useCacheRefresh=function(){return z.H.useCacheRefresh()},Ze.use=function(O){return z.H.use(O)},Ze.useActionState=function(O,V,ie){return z.H.useActionState(O,V,ie)},Ze.useCallback=function(O,V){return z.H.useCallback(O,V)},Ze.useContext=function(O){return z.H.useContext(O)},Ze.useDebugValue=function(){},Ze.useDeferredValue=function(O,V){return z.H.useDeferredValue(O,V)},Ze.useEffect=function(O,V,ie){var $=z.H;if(typeof ie=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return $.useEffect(O,V)},Ze.useId=function(){return z.H.useId()},Ze.useImperativeHandle=function(O,V,ie){return z.H.useImperativeHandle(O,V,ie)},Ze.useInsertionEffect=function(O,V){return z.H.useInsertionEffect(O,V)},Ze.useLayoutEffect=function(O,V){return z.H.useLayoutEffect(O,V)},Ze.useMemo=function(O,V){return z.H.useMemo(O,V)},Ze.useOptimistic=function(O,V){return z.H.useOptimistic(O,V)},Ze.useReducer=function(O,V,ie){return z.H.useReducer(O,V,ie)},Ze.useRef=function(O){return z.H.useRef(O)},Ze.useState=function(O){return z.H.useState(O)},Ze.useSyncExternalStore=function(O,V,ie){return z.H.useSyncExternalStore(O,V,ie)},Ze.useTransition=function(){return z.H.useTransition()},Ze.version="19.1.1",Ze}var q2;function A1(){return q2||(q2=1,zy.exports=l4()),zy.exports}var Re=A1(),Qy={exports:{}},Ec={},Vy={exports:{}},Ky={};/**
15
- * @license React
16
- * scheduler.production.js
17
- *
18
- * Copyright (c) Meta Platforms, Inc. and affiliates.
19
- *
20
- * This source code is licensed under the MIT license found in the
21
- * LICENSE file in the root directory of this source tree.
22
- */var $2;function f4(){return $2||($2=1,(function(e){function t(R,re){var fe=R.length;R.push(re);e:for(;0<fe;){var Z=fe-1>>>1,O=R[Z];if(0<s(O,re))R[Z]=re,R[fe]=O,fe=Z;else break e}}function i(R){return R.length===0?null:R[0]}function a(R){if(R.length===0)return null;var re=R[0],fe=R.pop();if(fe!==re){R[0]=fe;e:for(var Z=0,O=R.length,V=O>>>1;Z<V;){var ie=2*(Z+1)-1,$=R[ie],j=ie+1,N=R[j];if(0>s($,fe))j<O&&0>s(N,$)?(R[Z]=N,R[j]=fe,Z=j):(R[Z]=$,R[ie]=fe,Z=ie);else if(j<O&&0>s(N,fe))R[Z]=N,R[j]=fe,Z=j;else break e}}return re}function s(R,re){var fe=R.sortIndex-re.sortIndex;return fe!==0?fe:R.id-re.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var l=Date,f=l.now();e.unstable_now=function(){return l.now()-f}}var p=[],h=[],b=1,v=null,A=3,I=!1,C=!1,U=!1,B=!1,_=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function te(R){for(var re=i(h);re!==null;){if(re.callback===null)a(h);else if(re.startTime<=R)a(h),re.sortIndex=re.expirationTime,t(p,re);else break;re=i(h)}}function z(R){if(U=!1,te(R),!C)if(i(p)!==null)C=!0,ne||(ne=!0,G());else{var re=i(h);re!==null&&pe(z,re.startTime-R)}}var ne=!1,ce=-1,oe=5,F=-1;function H(){return B?!0:!(e.unstable_now()-F<oe)}function K(){if(B=!1,ne){var R=e.unstable_now();F=R;var re=!0;try{e:{C=!1,U&&(U=!1,D(ce),ce=-1),I=!0;var fe=A;try{t:{for(te(R),v=i(p);v!==null&&!(v.expirationTime>R&&H());){var Z=v.callback;if(typeof Z=="function"){v.callback=null,A=v.priorityLevel;var O=Z(v.expirationTime<=R);if(R=e.unstable_now(),typeof O=="function"){v.callback=O,te(R),re=!0;break t}v===i(p)&&a(p),te(R)}else a(p);v=i(p)}if(v!==null)re=!0;else{var V=i(h);V!==null&&pe(z,V.startTime-R),re=!1}}break e}finally{v=null,A=fe,I=!1}re=void 0}}finally{re?G():ne=!1}}}var G;if(typeof M=="function")G=function(){M(K)};else if(typeof MessageChannel<"u"){var Y=new MessageChannel,X=Y.port2;Y.port1.onmessage=K,G=function(){X.postMessage(null)}}else G=function(){_(K,0)};function pe(R,re){ce=_(function(){R(e.unstable_now())},re)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(R){R.callback=null},e.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):oe=0<R?Math.floor(1e3/R):5},e.unstable_getCurrentPriorityLevel=function(){return A},e.unstable_next=function(R){switch(A){case 1:case 2:case 3:var re=3;break;default:re=A}var fe=A;A=re;try{return R()}finally{A=fe}},e.unstable_requestPaint=function(){B=!0},e.unstable_runWithPriority=function(R,re){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var fe=A;A=R;try{return re()}finally{A=fe}},e.unstable_scheduleCallback=function(R,re,fe){var Z=e.unstable_now();switch(typeof fe=="object"&&fe!==null?(fe=fe.delay,fe=typeof fe=="number"&&0<fe?Z+fe:Z):fe=Z,R){case 1:var O=-1;break;case 2:O=250;break;case 5:O=1073741823;break;case 4:O=1e4;break;default:O=5e3}return O=fe+O,R={id:b++,callback:re,priorityLevel:R,startTime:fe,expirationTime:O,sortIndex:-1},fe>Z?(R.sortIndex=fe,t(h,R),i(p)===null&&R===i(h)&&(U?(D(ce),ce=-1):U=!0,pe(z,fe-Z))):(R.sortIndex=O,t(p,R),C||I||(C=!0,ne||(ne=!0,G()))),R},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(R){var re=A;return function(){var fe=A;A=re;try{return R.apply(this,arguments)}finally{A=fe}}}})(Ky)),Ky}var H2;function d4(){return H2||(H2=1,Vy.exports=f4()),Vy.exports}var Yy={exports:{}},Bn={};/**
23
- * @license React
24
- * react-dom.production.js
25
- *
26
- * Copyright (c) Meta Platforms, Inc. and affiliates.
27
- *
28
- * This source code is licensed under the MIT license found in the
29
- * LICENSE file in the root directory of this source tree.
30
- */var k2;function h4(){if(k2)return Bn;k2=1;var e=A1();function t(p){var h="https://react.dev/errors/"+p;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)h+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+p+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var a={d:{f:i,r:function(){throw Error(t(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},s=Symbol.for("react.portal");function c(p,h,b){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:v==null?null:""+v,children:p,containerInfo:h,implementation:b}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(p,h){if(p==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Bn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,Bn.createPortal=function(p,h){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return c(p,h,null,b)},Bn.flushSync=function(p){var h=l.T,b=a.p;try{if(l.T=null,a.p=2,p)return p()}finally{l.T=h,a.p=b,a.d.f()}},Bn.preconnect=function(p,h){typeof p=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,a.d.C(p,h))},Bn.prefetchDNS=function(p){typeof p=="string"&&a.d.D(p)},Bn.preinit=function(p,h){if(typeof p=="string"&&h&&typeof h.as=="string"){var b=h.as,v=f(b,h.crossOrigin),A=typeof h.integrity=="string"?h.integrity:void 0,I=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;b==="style"?a.d.S(p,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:v,integrity:A,fetchPriority:I}):b==="script"&&a.d.X(p,{crossOrigin:v,integrity:A,fetchPriority:I,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Bn.preinitModule=function(p,h){if(typeof p=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var b=f(h.as,h.crossOrigin);a.d.M(p,{crossOrigin:b,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&a.d.M(p)},Bn.preload=function(p,h){if(typeof p=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var b=h.as,v=f(b,h.crossOrigin);a.d.L(p,b,{crossOrigin:v,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Bn.preloadModule=function(p,h){if(typeof p=="string")if(h){var b=f(h.as,h.crossOrigin);a.d.m(p,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:b,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else a.d.m(p)},Bn.requestFormReset=function(p){a.d.r(p)},Bn.unstable_batchedUpdates=function(p,h){return p(h)},Bn.useFormState=function(p,h,b){return l.H.useFormState(p,h,b)},Bn.useFormStatus=function(){return l.H.useHostTransitionStatus()},Bn.version="19.1.1",Bn}var z2;function QT(){if(z2)return Yy.exports;z2=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Yy.exports=h4(),Yy.exports}var G2;function p4(){if(G2)return Ec;G2=1;var e=d4(),t=A1(),i=QT();function a(n){var r="https://react.dev/errors/"+n;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)r+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+n+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function c(n){var r=n,o=n;if(n.alternate)for(;r.return;)r=r.return;else{n=r;do r=n,(r.flags&4098)!==0&&(o=r.return),n=r.return;while(n)}return r.tag===3?o:null}function l(n){if(n.tag===13){var r=n.memoizedState;if(r===null&&(n=n.alternate,n!==null&&(r=n.memoizedState)),r!==null)return r.dehydrated}return null}function f(n){if(c(n)!==n)throw Error(a(188))}function p(n){var r=n.alternate;if(!r){if(r=c(n),r===null)throw Error(a(188));return r!==n?null:n}for(var o=n,u=r;;){var d=o.return;if(d===null)break;var y=d.alternate;if(y===null){if(u=d.return,u!==null){o=u;continue}break}if(d.child===y.child){for(y=d.child;y;){if(y===o)return f(d),n;if(y===u)return f(d),r;y=y.sibling}throw Error(a(188))}if(o.return!==u.return)o=d,u=y;else{for(var T=!1,L=d.child;L;){if(L===o){T=!0,o=d,u=y;break}if(L===u){T=!0,u=d,o=y;break}L=L.sibling}if(!T){for(L=y.child;L;){if(L===o){T=!0,o=y,u=d;break}if(L===u){T=!0,u=y,o=d;break}L=L.sibling}if(!T)throw Error(a(189))}}if(o.alternate!==u)throw Error(a(190))}if(o.tag!==3)throw Error(a(188));return o.stateNode.current===o?n:r}function h(n){var r=n.tag;if(r===5||r===26||r===27||r===6)return n;for(n=n.child;n!==null;){if(r=h(n),r!==null)return r;n=n.sibling}return null}var b=Object.assign,v=Symbol.for("react.element"),A=Symbol.for("react.transitional.element"),I=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),D=Symbol.for("react.consumer"),M=Symbol.for("react.context"),te=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),ne=Symbol.for("react.suspense_list"),ce=Symbol.for("react.memo"),oe=Symbol.for("react.lazy"),F=Symbol.for("react.activity"),H=Symbol.for("react.memo_cache_sentinel"),K=Symbol.iterator;function G(n){return n===null||typeof n!="object"?null:(n=K&&n[K]||n["@@iterator"],typeof n=="function"?n:null)}var Y=Symbol.for("react.client.reference");function X(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===Y?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case C:return"Fragment";case B:return"Profiler";case U:return"StrictMode";case z:return"Suspense";case ne:return"SuspenseList";case F:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case I:return"Portal";case M:return(n.displayName||"Context")+".Provider";case D:return(n._context.displayName||"Context")+".Consumer";case te:var r=n.render;return n=n.displayName,n||(n=r.displayName||r.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case ce:return r=n.displayName||null,r!==null?r:X(n.type)||"Memo";case oe:r=n._payload,n=n._init;try{return X(n(r))}catch{}}return null}var pe=Array.isArray,R=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fe={pending:!1,data:null,method:null,action:null},Z=[],O=-1;function V(n){return{current:n}}function ie(n){0>O||(n.current=Z[O],Z[O]=null,O--)}function $(n,r){O++,Z[O]=n.current,n.current=r}var j=V(null),N=V(null),k=V(null),ye=V(null);function ge(n,r){switch($(k,r),$(N,n),$(j,null),r.nodeType){case 9:case 11:n=(n=r.documentElement)&&(n=n.namespaceURI)?o2(n):0;break;default:if(n=r.tagName,r=r.namespaceURI)r=o2(r),n=s2(r,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}ie(j),$(j,n)}function q(){ie(j),ie(N),ie(k)}function E(n){n.memoizedState!==null&&$(ye,n);var r=j.current,o=s2(r,n.type);r!==o&&($(N,n),$(j,o))}function P(n){N.current===n&&(ie(j),ie(N)),ye.current===n&&(ie(ye),yc._currentValue=fe)}var Q=Object.prototype.hasOwnProperty,W=e.unstable_scheduleCallback,le=e.unstable_cancelCallback,de=e.unstable_shouldYield,x=e.unstable_requestPaint,g=e.unstable_now,m=e.unstable_getCurrentPriorityLevel,S=e.unstable_ImmediatePriority,ee=e.unstable_UserBlockingPriority,Ae=e.unstable_NormalPriority,Se=e.unstable_LowPriority,Me=e.unstable_IdlePriority,se=e.log,ue=e.unstable_setDisableYieldValue,Ee=null,Oe=null;function _e(n){if(typeof se=="function"&&ue(n),Oe&&typeof Oe.setStrictMode=="function")try{Oe.setStrictMode(Ee,n)}catch{}}var Ne=Math.clz32?Math.clz32:ze,qe=Math.log,ke=Math.LN2;function ze(n){return n>>>=0,n===0?32:31-(qe(n)/ke|0)|0}var Ye=256,Xe=4194304;function ut(n){var r=n&42;if(r!==0)return r;switch(n&-n){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 n&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function ft(n,r,o){var u=n.pendingLanes;if(u===0)return 0;var d=0,y=n.suspendedLanes,T=n.pingedLanes;n=n.warmLanes;var L=u&134217727;return L!==0?(u=L&~y,u!==0?d=ut(u):(T&=L,T!==0?d=ut(T):o||(o=L&~n,o!==0&&(d=ut(o))))):(L=u&~y,L!==0?d=ut(L):T!==0?d=ut(T):o||(o=u&~n,o!==0&&(d=ut(o)))),d===0?0:r!==0&&r!==d&&(r&y)===0&&(y=d&-d,o=r&-r,y>=o||y===32&&(o&4194048)!==0)?r:d}function ht(n,r){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&r)===0}function pt(n,r){switch(n){case 1:case 2:case 4:case 8:case 64:return r+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 r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function mt(){var n=Ye;return Ye<<=1,(Ye&4194048)===0&&(Ye=256),n}function Mt(){var n=Xe;return Xe<<=1,(Xe&62914560)===0&&(Xe=4194304),n}function Rt(n){for(var r=[],o=0;31>o;o++)r.push(n);return r}function Tt(n,r){n.pendingLanes|=r,r!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function $t(n,r,o,u,d,y){var T=n.pendingLanes;n.pendingLanes=o,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=o,n.entangledLanes&=o,n.errorRecoveryDisabledLanes&=o,n.shellSuspendCounter=0;var L=n.entanglements,ae=n.expirationTimes,ve=n.hiddenUpdates;for(o=T&~o;0<o;){var Fe=31-Ne(o),Be=1<<Fe;L[Fe]=0,ae[Fe]=-1;var xe=ve[Fe];if(xe!==null)for(ve[Fe]=null,Fe=0;Fe<xe.length;Fe++){var we=xe[Fe];we!==null&&(we.lane&=-536870913)}o&=~Be}u!==0&&jt(n,u,0),y!==0&&d===0&&n.tag!==0&&(n.suspendedLanes|=y&~(T&~r))}function jt(n,r,o){n.pendingLanes|=r,n.suspendedLanes&=~r;var u=31-Ne(r);n.entangledLanes|=r,n.entanglements[u]=n.entanglements[u]|1073741824|o&4194090}function Pt(n,r){var o=n.entangledLanes|=r;for(n=n.entanglements;o;){var u=31-Ne(o),d=1<<u;d&r|n[u]&r&&(n[u]|=r),o&=~d}}function _t(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=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:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function na(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function Ka(){var n=re.p;return n!==0?n:(n=window.event,n===void 0?32:C2(n.type))}function Jo(n,r){var o=re.p;try{return re.p=n,r()}finally{re.p=o}}var nr=Math.random().toString(36).slice(2),Qt="__reactFiber$"+nr,sn="__reactProps$"+nr,Mr="__reactContainer$"+nr,ra="__reactEvents$"+nr,Wo="__reactListeners$"+nr,es="__reactHandles$"+nr,Ya="__reactResources$"+nr,ti="__reactMarker$"+nr;function ia(n){delete n[Qt],delete n[sn],delete n[ra],delete n[Wo],delete n[es]}function jr(n){var r=n[Qt];if(r)return r;for(var o=n.parentNode;o;){if(r=o[Mr]||o[Qt]){if(o=r.alternate,r.child!==null||o!==null&&o.child!==null)for(n=f2(n);n!==null;){if(o=n[Qt])return o;n=f2(n)}return r}n=o,o=n.parentNode}return null}function Pr(n){if(n=n[Qt]||n[Mr]){var r=n.tag;if(r===5||r===6||r===13||r===26||r===27||r===3)return n}return null}function ni(n){var r=n.tag;if(r===5||r===26||r===27||r===6)return n.stateNode;throw Error(a(33))}function Nr(n){var r=n[Ya];return r||(r=n[Ya]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function Nt(n){n[ti]=!0}var Xa=new Set,Za={};function br(n,r){Lr(n,r),Lr(n+"Capture",r)}function Lr(n,r){for(Za[n]=r,n=0;n<r.length;n++)Xa.add(r[n])}var ts=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]*$"),Ja={},Wa={};function ns(n){return Q.call(Wa,n)?!0:Q.call(Ja,n)?!1:ts.test(n)?Wa[n]=!0:(Ja[n]=!0,!1)}function vi(n,r,o){if(ns(r))if(o===null)n.removeAttribute(r);else{switch(typeof o){case"undefined":case"function":case"symbol":n.removeAttribute(r);return;case"boolean":var u=r.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){n.removeAttribute(r);return}}n.setAttribute(r,""+o)}}function Kl(n,r,o){if(o===null)n.removeAttribute(r);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(r);return}n.setAttribute(r,""+o)}}function xi(n,r,o,u){if(u===null)n.removeAttribute(o);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(o);return}n.setAttributeNS(r,o,""+u)}}var jh,Wv;function rs(n){if(jh===void 0)try{throw Error()}catch(o){var r=o.stack.trim().match(/\n( *(at )?)/);jh=r&&r[1]||"",Wv=-1<o.stack.indexOf(`
31
- at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
32
- `+jh+n+Wv}var Ph=!1;function Nh(n,r){if(!n||Ph)return"";Ph=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(r){var Be=function(){throw Error()};if(Object.defineProperty(Be.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Be,[])}catch(we){var xe=we}Reflect.construct(n,[],Be)}else{try{Be.call()}catch(we){xe=we}n.call(Be.prototype)}}else{try{throw Error()}catch(we){xe=we}(Be=n())&&typeof Be.catch=="function"&&Be.catch(function(){})}}catch(we){if(we&&xe&&typeof we.stack=="string")return[we.stack,xe.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=u.DetermineComponentFrameRoot(),T=y[0],L=y[1];if(T&&L){var ae=T.split(`
33
- `),ve=L.split(`
34
- `);for(d=u=0;u<ae.length&&!ae[u].includes("DetermineComponentFrameRoot");)u++;for(;d<ve.length&&!ve[d].includes("DetermineComponentFrameRoot");)d++;if(u===ae.length||d===ve.length)for(u=ae.length-1,d=ve.length-1;1<=u&&0<=d&&ae[u]!==ve[d];)d--;for(;1<=u&&0<=d;u--,d--)if(ae[u]!==ve[d]){if(u!==1||d!==1)do if(u--,d--,0>d||ae[u]!==ve[d]){var Fe=`
35
- `+ae[u].replace(" at new "," at ");return n.displayName&&Fe.includes("<anonymous>")&&(Fe=Fe.replace("<anonymous>",n.displayName)),Fe}while(1<=u&&0<=d);break}}}finally{Ph=!1,Error.prepareStackTrace=o}return(o=n?n.displayName||n.name:"")?rs(o):""}function Z6(n){switch(n.tag){case 26:case 27:case 5:return rs(n.type);case 16:return rs("Lazy");case 13:return rs("Suspense");case 19:return rs("SuspenseList");case 0:case 15:return Nh(n.type,!1);case 11:return Nh(n.type.render,!1);case 1:return Nh(n.type,!0);case 31:return rs("Activity");default:return""}}function ex(n){try{var r="";do r+=Z6(n),n=n.return;while(n);return r}catch(o){return`
36
- Error generating stack: `+o.message+`
37
- `+o.stack}}function vr(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function tx(n){var r=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function J6(n){var r=tx(n)?"checked":"value",o=Object.getOwnPropertyDescriptor(n.constructor.prototype,r),u=""+n[r];if(!n.hasOwnProperty(r)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var d=o.get,y=o.set;return Object.defineProperty(n,r,{configurable:!0,get:function(){return d.call(this)},set:function(T){u=""+T,y.call(this,T)}}),Object.defineProperty(n,r,{enumerable:o.enumerable}),{getValue:function(){return u},setValue:function(T){u=""+T},stopTracking:function(){n._valueTracker=null,delete n[r]}}}}function Yl(n){n._valueTracker||(n._valueTracker=J6(n))}function nx(n){if(!n)return!1;var r=n._valueTracker;if(!r)return!0;var o=r.getValue(),u="";return n&&(u=tx(n)?n.checked?"true":"false":n.value),n=u,n!==o?(r.setValue(n),!0):!1}function Xl(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var W6=/[\n"\\]/g;function xr(n){return n.replace(W6,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function Lh(n,r,o,u,d,y,T,L){n.name="",T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?n.type=T:n.removeAttribute("type"),r!=null?T==="number"?(r===0&&n.value===""||n.value!=r)&&(n.value=""+vr(r)):n.value!==""+vr(r)&&(n.value=""+vr(r)):T!=="submit"&&T!=="reset"||n.removeAttribute("value"),r!=null?qh(n,T,vr(r)):o!=null?qh(n,T,vr(o)):u!=null&&n.removeAttribute("value"),d==null&&y!=null&&(n.defaultChecked=!!y),d!=null&&(n.checked=d&&typeof d!="function"&&typeof d!="symbol"),L!=null&&typeof L!="function"&&typeof L!="symbol"&&typeof L!="boolean"?n.name=""+vr(L):n.removeAttribute("name")}function rx(n,r,o,u,d,y,T,L){if(y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(n.type=y),r!=null||o!=null){if(!(y!=="submit"&&y!=="reset"||r!=null))return;o=o!=null?""+vr(o):"",r=r!=null?""+vr(r):o,L||r===n.value||(n.value=r),n.defaultValue=r}u=u??d,u=typeof u!="function"&&typeof u!="symbol"&&!!u,n.checked=L?n.checked:!!u,n.defaultChecked=!!u,T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"&&(n.name=T)}function qh(n,r,o){r==="number"&&Xl(n.ownerDocument)===n||n.defaultValue===""+o||(n.defaultValue=""+o)}function is(n,r,o,u){if(n=n.options,r){r={};for(var d=0;d<o.length;d++)r["$"+o[d]]=!0;for(o=0;o<n.length;o++)d=r.hasOwnProperty("$"+n[o].value),n[o].selected!==d&&(n[o].selected=d),d&&u&&(n[o].defaultSelected=!0)}else{for(o=""+vr(o),r=null,d=0;d<n.length;d++){if(n[d].value===o){n[d].selected=!0,u&&(n[d].defaultSelected=!0);return}r!==null||n[d].disabled||(r=n[d])}r!==null&&(r.selected=!0)}}function ix(n,r,o){if(r!=null&&(r=""+vr(r),r!==n.value&&(n.value=r),o==null)){n.defaultValue!==r&&(n.defaultValue=r);return}n.defaultValue=o!=null?""+vr(o):""}function ax(n,r,o,u){if(r==null){if(u!=null){if(o!=null)throw Error(a(92));if(pe(u)){if(1<u.length)throw Error(a(93));u=u[0]}o=u}o==null&&(o=""),r=o}o=vr(r),n.defaultValue=o,u=n.textContent,u===o&&u!==""&&u!==null&&(n.value=u)}function as(n,r){if(r){var o=n.firstChild;if(o&&o===n.lastChild&&o.nodeType===3){o.nodeValue=r;return}}n.textContent=r}var e_=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 ox(n,r,o){var u=r.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?u?n.setProperty(r,""):r==="float"?n.cssFloat="":n[r]="":u?n.setProperty(r,o):typeof o!="number"||o===0||e_.has(r)?r==="float"?n.cssFloat=o:n[r]=(""+o).trim():n[r]=o+"px"}function sx(n,r,o){if(r!=null&&typeof r!="object")throw Error(a(62));if(n=n.style,o!=null){for(var u in o)!o.hasOwnProperty(u)||r!=null&&r.hasOwnProperty(u)||(u.indexOf("--")===0?n.setProperty(u,""):u==="float"?n.cssFloat="":n[u]="");for(var d in r)u=r[d],r.hasOwnProperty(d)&&o[d]!==u&&ox(n,d,u)}else for(var y in r)r.hasOwnProperty(y)&&ox(n,y,r[y])}function $h(n){if(n.indexOf("-")===-1)return!1;switch(n){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 t_=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"]]),n_=/^[\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 Zl(n){return n_.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}var Hh=null;function kh(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var os=null,ss=null;function ux(n){var r=Pr(n);if(r&&(n=r.stateNode)){var o=n[sn]||null;e:switch(n=r.stateNode,r.type){case"input":if(Lh(n,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),r=o.name,o.type==="radio"&&r!=null){for(o=n;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+xr(""+r)+'"][type="radio"]'),r=0;r<o.length;r++){var u=o[r];if(u!==n&&u.form===n.form){var d=u[sn]||null;if(!d)throw Error(a(90));Lh(u,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(r=0;r<o.length;r++)u=o[r],u.form===n.form&&nx(u)}break e;case"textarea":ix(n,o.value,o.defaultValue);break e;case"select":r=o.value,r!=null&&is(n,!!o.multiple,r,!1)}}}var zh=!1;function cx(n,r,o){if(zh)return n(r,o);zh=!0;try{var u=n(r);return u}finally{if(zh=!1,(os!==null||ss!==null)&&(Pf(),os&&(r=os,n=ss,ss=os=null,ux(r),n)))for(r=0;r<n.length;r++)ux(n[r])}}function Fu(n,r){var o=n.stateNode;if(o===null)return null;var u=o[sn]||null;if(u===null)return null;o=u[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(n=n.type,u=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!u;break e;default:n=!1}if(n)return null;if(o&&typeof o!="function")throw Error(a(231,r,typeof o));return o}var Ei=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Gh=!1;if(Ei)try{var Tu={};Object.defineProperty(Tu,"passive",{get:function(){Gh=!0}}),window.addEventListener("test",Tu,Tu),window.removeEventListener("test",Tu,Tu)}catch{Gh=!1}var aa=null,Qh=null,Jl=null;function lx(){if(Jl)return Jl;var n,r=Qh,o=r.length,u,d="value"in aa?aa.value:aa.textContent,y=d.length;for(n=0;n<o&&r[n]===d[n];n++);var T=o-n;for(u=1;u<=T&&r[o-u]===d[y-u];u++);return Jl=d.slice(n,1<u?1-u:void 0)}function Wl(n){var r=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&r===13&&(n=13)):n=r,n===10&&(n=13),32<=n||n===13?n:0}function ef(){return!0}function fx(){return!1}function kn(n){function r(o,u,d,y,T){this._reactName=o,this._targetInst=d,this.type=u,this.nativeEvent=y,this.target=T,this.currentTarget=null;for(var L in n)n.hasOwnProperty(L)&&(o=n[L],this[L]=o?o(y):y[L]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?ef:fx,this.isPropagationStopped=fx,this}return b(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=ef)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=ef)},persist:function(){},isPersistent:ef}),r}var eo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tf=kn(eo),Bu=b({},eo,{view:0,detail:0}),r_=kn(Bu),Vh,Kh,Ru,nf=b({},Bu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xh,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==Ru&&(Ru&&n.type==="mousemove"?(Vh=n.screenX-Ru.screenX,Kh=n.screenY-Ru.screenY):Kh=Vh=0,Ru=n),Vh)},movementY:function(n){return"movementY"in n?n.movementY:Kh}}),dx=kn(nf),i_=b({},nf,{dataTransfer:0}),a_=kn(i_),o_=b({},Bu,{relatedTarget:0}),Yh=kn(o_),s_=b({},eo,{animationName:0,elapsedTime:0,pseudoElement:0}),u_=kn(s_),c_=b({},eo,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),l_=kn(c_),f_=b({},eo,{data:0}),hx=kn(f_),d_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},h_={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"},p_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function y_(n){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(n):(n=p_[n])?!!r[n]:!1}function Xh(){return y_}var g_=b({},Bu,{key:function(n){if(n.key){var r=d_[n.key]||n.key;if(r!=="Unidentified")return r}return n.type==="keypress"?(n=Wl(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?h_[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xh,charCode:function(n){return n.type==="keypress"?Wl(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Wl(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),m_=kn(g_),A_=b({},nf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),px=kn(A_),b_=b({},Bu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xh}),v_=kn(b_),x_=b({},eo,{propertyName:0,elapsedTime:0,pseudoElement:0}),E_=kn(x_),w_=b({},nf,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),I_=kn(w_),S_=b({},eo,{newState:0,oldState:0}),C_=kn(S_),O_=[9,13,27,32],Zh=Ei&&"CompositionEvent"in window,_u=null;Ei&&"documentMode"in document&&(_u=document.documentMode);var F_=Ei&&"TextEvent"in window&&!_u,yx=Ei&&(!Zh||_u&&8<_u&&11>=_u),gx=" ",mx=!1;function Ax(n,r){switch(n){case"keyup":return O_.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bx(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var us=!1;function T_(n,r){switch(n){case"compositionend":return bx(r);case"keypress":return r.which!==32?null:(mx=!0,gx);case"textInput":return n=r.data,n===gx&&mx?null:n;default:return null}}function B_(n,r){if(us)return n==="compositionend"||!Zh&&Ax(n,r)?(n=lx(),Jl=Qh=aa=null,us=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return yx&&r.locale!=="ko"?null:r.data;default:return null}}var R_={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 vx(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r==="input"?!!R_[n.type]:r==="textarea"}function xx(n,r,o,u){os?ss?ss.push(u):ss=[u]:os=u,r=kf(r,"onChange"),0<r.length&&(o=new tf("onChange","change",null,o,u),n.push({event:o,listeners:r}))}var Du=null,Uu=null;function __(n){t2(n,0)}function rf(n){var r=ni(n);if(nx(r))return n}function Ex(n,r){if(n==="change")return r}var wx=!1;if(Ei){var Jh;if(Ei){var Wh="oninput"in document;if(!Wh){var Ix=document.createElement("div");Ix.setAttribute("oninput","return;"),Wh=typeof Ix.oninput=="function"}Jh=Wh}else Jh=!1;wx=Jh&&(!document.documentMode||9<document.documentMode)}function Sx(){Du&&(Du.detachEvent("onpropertychange",Cx),Uu=Du=null)}function Cx(n){if(n.propertyName==="value"&&rf(Uu)){var r=[];xx(r,Uu,n,kh(n)),cx(__,r)}}function D_(n,r,o){n==="focusin"?(Sx(),Du=r,Uu=o,Du.attachEvent("onpropertychange",Cx)):n==="focusout"&&Sx()}function U_(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return rf(Uu)}function M_(n,r){if(n==="click")return rf(r)}function j_(n,r){if(n==="input"||n==="change")return rf(r)}function P_(n,r){return n===r&&(n!==0||1/n===1/r)||n!==n&&r!==r}var rr=typeof Object.is=="function"?Object.is:P_;function Mu(n,r){if(rr(n,r))return!0;if(typeof n!="object"||n===null||typeof r!="object"||r===null)return!1;var o=Object.keys(n),u=Object.keys(r);if(o.length!==u.length)return!1;for(u=0;u<o.length;u++){var d=o[u];if(!Q.call(r,d)||!rr(n[d],r[d]))return!1}return!0}function Ox(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Fx(n,r){var o=Ox(n);n=0;for(var u;o;){if(o.nodeType===3){if(u=n+o.textContent.length,n<=r&&u>=r)return{node:o,offset:r-n};n=u}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Ox(o)}}function Tx(n,r){return n&&r?n===r?!0:n&&n.nodeType===3?!1:r&&r.nodeType===3?Tx(n,r.parentNode):"contains"in n?n.contains(r):n.compareDocumentPosition?!!(n.compareDocumentPosition(r)&16):!1:!1}function Bx(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var r=Xl(n.document);r instanceof n.HTMLIFrameElement;){try{var o=typeof r.contentWindow.location.href=="string"}catch{o=!1}if(o)n=r.contentWindow;else break;r=Xl(n.document)}return r}function ep(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r&&(r==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||r==="textarea"||n.contentEditable==="true")}var N_=Ei&&"documentMode"in document&&11>=document.documentMode,cs=null,tp=null,ju=null,np=!1;function Rx(n,r,o){var u=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;np||cs==null||cs!==Xl(u)||(u=cs,"selectionStart"in u&&ep(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),ju&&Mu(ju,u)||(ju=u,u=kf(tp,"onSelect"),0<u.length&&(r=new tf("onSelect","select",null,r,o),n.push({event:r,listeners:u}),r.target=cs)))}function to(n,r){var o={};return o[n.toLowerCase()]=r.toLowerCase(),o["Webkit"+n]="webkit"+r,o["Moz"+n]="moz"+r,o}var ls={animationend:to("Animation","AnimationEnd"),animationiteration:to("Animation","AnimationIteration"),animationstart:to("Animation","AnimationStart"),transitionrun:to("Transition","TransitionRun"),transitionstart:to("Transition","TransitionStart"),transitioncancel:to("Transition","TransitionCancel"),transitionend:to("Transition","TransitionEnd")},rp={},_x={};Ei&&(_x=document.createElement("div").style,"AnimationEvent"in window||(delete ls.animationend.animation,delete ls.animationiteration.animation,delete ls.animationstart.animation),"TransitionEvent"in window||delete ls.transitionend.transition);function no(n){if(rp[n])return rp[n];if(!ls[n])return n;var r=ls[n],o;for(o in r)if(r.hasOwnProperty(o)&&o in _x)return rp[n]=r[o];return n}var Dx=no("animationend"),Ux=no("animationiteration"),Mx=no("animationstart"),L_=no("transitionrun"),q_=no("transitionstart"),$_=no("transitioncancel"),jx=no("transitionend"),Px=new Map,ip="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(" ");ip.push("scrollEnd");function qr(n,r){Px.set(n,r),br(r,[n])}var Nx=new WeakMap;function Er(n,r){if(typeof n=="object"&&n!==null){var o=Nx.get(n);return o!==void 0?o:(r={value:n,source:r,stack:ex(r)},Nx.set(n,r),r)}return{value:n,source:r,stack:ex(r)}}var wr=[],fs=0,ap=0;function af(){for(var n=fs,r=ap=fs=0;r<n;){var o=wr[r];wr[r++]=null;var u=wr[r];wr[r++]=null;var d=wr[r];wr[r++]=null;var y=wr[r];if(wr[r++]=null,u!==null&&d!==null){var T=u.pending;T===null?d.next=d:(d.next=T.next,T.next=d),u.pending=d}y!==0&&Lx(o,d,y)}}function of(n,r,o,u){wr[fs++]=n,wr[fs++]=r,wr[fs++]=o,wr[fs++]=u,ap|=u,n.lanes|=u,n=n.alternate,n!==null&&(n.lanes|=u)}function op(n,r,o,u){return of(n,r,o,u),sf(n)}function ds(n,r){return of(n,null,null,r),sf(n)}function Lx(n,r,o){n.lanes|=o;var u=n.alternate;u!==null&&(u.lanes|=o);for(var d=!1,y=n.return;y!==null;)y.childLanes|=o,u=y.alternate,u!==null&&(u.childLanes|=o),y.tag===22&&(n=y.stateNode,n===null||n._visibility&1||(d=!0)),n=y,y=y.return;return n.tag===3?(y=n.stateNode,d&&r!==null&&(d=31-Ne(o),n=y.hiddenUpdates,u=n[d],u===null?n[d]=[r]:u.push(r),r.lane=o|536870912),y):null}function sf(n){if(50<sc)throw sc=0,dy=null,Error(a(185));for(var r=n.return;r!==null;)n=r,r=n.return;return n.tag===3?n.stateNode:null}var hs={};function H_(n,r,o,u){this.tag=n,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ir(n,r,o,u){return new H_(n,r,o,u)}function sp(n){return n=n.prototype,!(!n||!n.isReactComponent)}function wi(n,r){var o=n.alternate;return o===null?(o=ir(n.tag,r,n.key,n.mode),o.elementType=n.elementType,o.type=n.type,o.stateNode=n.stateNode,o.alternate=n,n.alternate=o):(o.pendingProps=r,o.type=n.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=n.flags&65011712,o.childLanes=n.childLanes,o.lanes=n.lanes,o.child=n.child,o.memoizedProps=n.memoizedProps,o.memoizedState=n.memoizedState,o.updateQueue=n.updateQueue,r=n.dependencies,o.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},o.sibling=n.sibling,o.index=n.index,o.ref=n.ref,o.refCleanup=n.refCleanup,o}function qx(n,r){n.flags&=65011714;var o=n.alternate;return o===null?(n.childLanes=0,n.lanes=r,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=o.childLanes,n.lanes=o.lanes,n.child=o.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=o.memoizedProps,n.memoizedState=o.memoizedState,n.updateQueue=o.updateQueue,n.type=o.type,r=o.dependencies,n.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),n}function uf(n,r,o,u,d,y){var T=0;if(u=n,typeof n=="function")sp(n)&&(T=1);else if(typeof n=="string")T=z8(n,o,j.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case F:return n=ir(31,o,r,d),n.elementType=F,n.lanes=y,n;case C:return ro(o.children,d,y,r);case U:T=8,d|=24;break;case B:return n=ir(12,o,r,d|2),n.elementType=B,n.lanes=y,n;case z:return n=ir(13,o,r,d),n.elementType=z,n.lanes=y,n;case ne:return n=ir(19,o,r,d),n.elementType=ne,n.lanes=y,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case _:case M:T=10;break e;case D:T=9;break e;case te:T=11;break e;case ce:T=14;break e;case oe:T=16,u=null;break e}T=29,o=Error(a(130,n===null?"null":typeof n,"")),u=null}return r=ir(T,o,r,d),r.elementType=n,r.type=u,r.lanes=y,r}function ro(n,r,o,u){return n=ir(7,n,u,r),n.lanes=o,n}function up(n,r,o){return n=ir(6,n,null,r),n.lanes=o,n}function cp(n,r,o){return r=ir(4,n.children!==null?n.children:[],n.key,r),r.lanes=o,r.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},r}var ps=[],ys=0,cf=null,lf=0,Ir=[],Sr=0,io=null,Ii=1,Si="";function ao(n,r){ps[ys++]=lf,ps[ys++]=cf,cf=n,lf=r}function $x(n,r,o){Ir[Sr++]=Ii,Ir[Sr++]=Si,Ir[Sr++]=io,io=n;var u=Ii;n=Si;var d=32-Ne(u)-1;u&=~(1<<d),o+=1;var y=32-Ne(r)+d;if(30<y){var T=d-d%5;y=(u&(1<<T)-1).toString(32),u>>=T,d-=T,Ii=1<<32-Ne(r)+d|o<<d|u,Si=y+n}else Ii=1<<y|o<<d|u,Si=n}function lp(n){n.return!==null&&(ao(n,1),$x(n,1,0))}function fp(n){for(;n===cf;)cf=ps[--ys],ps[ys]=null,lf=ps[--ys],ps[ys]=null;for(;n===io;)io=Ir[--Sr],Ir[Sr]=null,Si=Ir[--Sr],Ir[Sr]=null,Ii=Ir[--Sr],Ir[Sr]=null}var Pn=null,Ht=null,gt=!1,oo=null,ri=!1,dp=Error(a(519));function so(n){var r=Error(a(418,""));throw Lu(Er(r,n)),dp}function Hx(n){var r=n.stateNode,o=n.type,u=n.memoizedProps;switch(r[Qt]=n,r[sn]=u,o){case"dialog":nt("cancel",r),nt("close",r);break;case"iframe":case"object":case"embed":nt("load",r);break;case"video":case"audio":for(o=0;o<cc.length;o++)nt(cc[o],r);break;case"source":nt("error",r);break;case"img":case"image":case"link":nt("error",r),nt("load",r);break;case"details":nt("toggle",r);break;case"input":nt("invalid",r),rx(r,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0),Yl(r);break;case"select":nt("invalid",r);break;case"textarea":nt("invalid",r),ax(r,u.value,u.defaultValue,u.children),Yl(r)}o=u.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||r.textContent===""+o||u.suppressHydrationWarning===!0||a2(r.textContent,o)?(u.popover!=null&&(nt("beforetoggle",r),nt("toggle",r)),u.onScroll!=null&&nt("scroll",r),u.onScrollEnd!=null&&nt("scrollend",r),u.onClick!=null&&(r.onclick=zf),r=!0):r=!1,r||so(n)}function kx(n){for(Pn=n.return;Pn;)switch(Pn.tag){case 5:case 13:ri=!1;return;case 27:case 3:ri=!0;return;default:Pn=Pn.return}}function Pu(n){if(n!==Pn)return!1;if(!gt)return kx(n),gt=!0,!1;var r=n.tag,o;if((o=r!==3&&r!==27)&&((o=r===5)&&(o=n.type,o=!(o!=="form"&&o!=="button")||Fy(n.type,n.memoizedProps)),o=!o),o&&Ht&&so(n),kx(n),r===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(a(317));e:{for(n=n.nextSibling,r=0;n;){if(n.nodeType===8)if(o=n.data,o==="/$"){if(r===0){Ht=Hr(n.nextSibling);break e}r--}else o!=="$"&&o!=="$!"&&o!=="$?"||r++;n=n.nextSibling}Ht=null}}else r===27?(r=Ht,xa(n.type)?(n=_y,_y=null,Ht=n):Ht=r):Ht=Pn?Hr(n.stateNode.nextSibling):null;return!0}function Nu(){Ht=Pn=null,gt=!1}function zx(){var n=oo;return n!==null&&(Qn===null?Qn=n:Qn.push.apply(Qn,n),oo=null),n}function Lu(n){oo===null?oo=[n]:oo.push(n)}var hp=V(null),uo=null,Ci=null;function oa(n,r,o){$(hp,r._currentValue),r._currentValue=o}function Oi(n){n._currentValue=hp.current,ie(hp)}function pp(n,r,o){for(;n!==null;){var u=n.alternate;if((n.childLanes&r)!==r?(n.childLanes|=r,u!==null&&(u.childLanes|=r)):u!==null&&(u.childLanes&r)!==r&&(u.childLanes|=r),n===o)break;n=n.return}}function yp(n,r,o,u){var d=n.child;for(d!==null&&(d.return=n);d!==null;){var y=d.dependencies;if(y!==null){var T=d.child;y=y.firstContext;e:for(;y!==null;){var L=y;y=d;for(var ae=0;ae<r.length;ae++)if(L.context===r[ae]){y.lanes|=o,L=y.alternate,L!==null&&(L.lanes|=o),pp(y.return,o,n),u||(T=null);break e}y=L.next}}else if(d.tag===18){if(T=d.return,T===null)throw Error(a(341));T.lanes|=o,y=T.alternate,y!==null&&(y.lanes|=o),pp(T,o,n),T=null}else T=d.child;if(T!==null)T.return=d;else for(T=d;T!==null;){if(T===n){T=null;break}if(d=T.sibling,d!==null){d.return=T.return,T=d;break}T=T.return}d=T}}function qu(n,r,o,u){n=null;for(var d=r,y=!1;d!==null;){if(!y){if((d.flags&524288)!==0)y=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var T=d.alternate;if(T===null)throw Error(a(387));if(T=T.memoizedProps,T!==null){var L=d.type;rr(d.pendingProps.value,T.value)||(n!==null?n.push(L):n=[L])}}else if(d===ye.current){if(T=d.alternate,T===null)throw Error(a(387));T.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(n!==null?n.push(yc):n=[yc])}d=d.return}n!==null&&yp(r,n,o,u),r.flags|=262144}function ff(n){for(n=n.firstContext;n!==null;){if(!rr(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function co(n){uo=n,Ci=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function Tn(n){return Gx(uo,n)}function df(n,r){return uo===null&&co(n),Gx(n,r)}function Gx(n,r){var o=r._currentValue;if(r={context:r,memoizedValue:o,next:null},Ci===null){if(n===null)throw Error(a(308));Ci=r,n.dependencies={lanes:0,firstContext:r},n.flags|=524288}else Ci=Ci.next=r;return o}var k_=typeof AbortController<"u"?AbortController:function(){var n=[],r=this.signal={aborted:!1,addEventListener:function(o,u){n.push(u)}};this.abort=function(){r.aborted=!0,n.forEach(function(o){return o()})}},z_=e.unstable_scheduleCallback,G_=e.unstable_NormalPriority,un={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function gp(){return{controller:new k_,data:new Map,refCount:0}}function $u(n){n.refCount--,n.refCount===0&&z_(G_,function(){n.controller.abort()})}var Hu=null,mp=0,gs=0,ms=null;function Q_(n,r){if(Hu===null){var o=Hu=[];mp=0,gs=by(),ms={status:"pending",value:void 0,then:function(u){o.push(u)}}}return mp++,r.then(Qx,Qx),r}function Qx(){if(--mp===0&&Hu!==null){ms!==null&&(ms.status="fulfilled");var n=Hu;Hu=null,gs=0,ms=null;for(var r=0;r<n.length;r++)(0,n[r])()}}function V_(n,r){var o=[],u={status:"pending",value:null,reason:null,then:function(d){o.push(d)}};return n.then(function(){u.status="fulfilled",u.value=r;for(var d=0;d<o.length;d++)(0,o[d])(r)},function(d){for(u.status="rejected",u.reason=d,d=0;d<o.length;d++)(0,o[d])(void 0)}),u}var Vx=R.S;R.S=function(n,r){typeof r=="object"&&r!==null&&typeof r.then=="function"&&Q_(n,r),Vx!==null&&Vx(n,r)};var lo=V(null);function Ap(){var n=lo.current;return n!==null?n:Bt.pooledCache}function hf(n,r){r===null?$(lo,lo.current):$(lo,r.pool)}function Kx(){var n=Ap();return n===null?null:{parent:un._currentValue,pool:n}}var ku=Error(a(460)),Yx=Error(a(474)),pf=Error(a(542)),bp={then:function(){}};function Xx(n){return n=n.status,n==="fulfilled"||n==="rejected"}function yf(){}function Zx(n,r,o){switch(o=n[o],o===void 0?n.push(r):o!==r&&(r.then(yf,yf),r=o),r.status){case"fulfilled":return r.value;case"rejected":throw n=r.reason,Wx(n),n;default:if(typeof r.status=="string")r.then(yf,yf);else{if(n=Bt,n!==null&&100<n.shellSuspendCounter)throw Error(a(482));n=r,n.status="pending",n.then(function(u){if(r.status==="pending"){var d=r;d.status="fulfilled",d.value=u}},function(u){if(r.status==="pending"){var d=r;d.status="rejected",d.reason=u}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw n=r.reason,Wx(n),n}throw zu=r,ku}}var zu=null;function Jx(){if(zu===null)throw Error(a(459));var n=zu;return zu=null,n}function Wx(n){if(n===ku||n===pf)throw Error(a(483))}var sa=!1;function vp(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function xp(n,r){n=n.updateQueue,r.updateQueue===n&&(r.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function ua(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function ca(n,r,o){var u=n.updateQueue;if(u===null)return null;if(u=u.shared,(At&2)!==0){var d=u.pending;return d===null?r.next=r:(r.next=d.next,d.next=r),u.pending=r,r=sf(n),Lx(n,null,o),r}return of(n,u,r,o),sf(n)}function Gu(n,r,o){if(r=r.updateQueue,r!==null&&(r=r.shared,(o&4194048)!==0)){var u=r.lanes;u&=n.pendingLanes,o|=u,r.lanes=o,Pt(n,o)}}function Ep(n,r){var o=n.updateQueue,u=n.alternate;if(u!==null&&(u=u.updateQueue,o===u)){var d=null,y=null;if(o=o.firstBaseUpdate,o!==null){do{var T={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};y===null?d=y=T:y=y.next=T,o=o.next}while(o!==null);y===null?d=y=r:y=y.next=r}else d=y=r;o={baseState:u.baseState,firstBaseUpdate:d,lastBaseUpdate:y,shared:u.shared,callbacks:u.callbacks},n.updateQueue=o;return}n=o.lastBaseUpdate,n===null?o.firstBaseUpdate=r:n.next=r,o.lastBaseUpdate=r}var wp=!1;function Qu(){if(wp){var n=ms;if(n!==null)throw n}}function Vu(n,r,o,u){wp=!1;var d=n.updateQueue;sa=!1;var y=d.firstBaseUpdate,T=d.lastBaseUpdate,L=d.shared.pending;if(L!==null){d.shared.pending=null;var ae=L,ve=ae.next;ae.next=null,T===null?y=ve:T.next=ve,T=ae;var Fe=n.alternate;Fe!==null&&(Fe=Fe.updateQueue,L=Fe.lastBaseUpdate,L!==T&&(L===null?Fe.firstBaseUpdate=ve:L.next=ve,Fe.lastBaseUpdate=ae))}if(y!==null){var Be=d.baseState;T=0,Fe=ve=ae=null,L=y;do{var xe=L.lane&-536870913,we=xe!==L.lane;if(we?(lt&xe)===xe:(u&xe)===xe){xe!==0&&xe===gs&&(wp=!0),Fe!==null&&(Fe=Fe.next={lane:0,tag:L.tag,payload:L.payload,callback:null,next:null});e:{var Ke=n,Ge=L;xe=r;var It=o;switch(Ge.tag){case 1:if(Ke=Ge.payload,typeof Ke=="function"){Be=Ke.call(It,Be,xe);break e}Be=Ke;break e;case 3:Ke.flags=Ke.flags&-65537|128;case 0:if(Ke=Ge.payload,xe=typeof Ke=="function"?Ke.call(It,Be,xe):Ke,xe==null)break e;Be=b({},Be,xe);break e;case 2:sa=!0}}xe=L.callback,xe!==null&&(n.flags|=64,we&&(n.flags|=8192),we=d.callbacks,we===null?d.callbacks=[xe]:we.push(xe))}else we={lane:xe,tag:L.tag,payload:L.payload,callback:L.callback,next:null},Fe===null?(ve=Fe=we,ae=Be):Fe=Fe.next=we,T|=xe;if(L=L.next,L===null){if(L=d.shared.pending,L===null)break;we=L,L=we.next,we.next=null,d.lastBaseUpdate=we,d.shared.pending=null}}while(!0);Fe===null&&(ae=Be),d.baseState=ae,d.firstBaseUpdate=ve,d.lastBaseUpdate=Fe,y===null&&(d.shared.lanes=0),ma|=T,n.lanes=T,n.memoizedState=Be}}function eE(n,r){if(typeof n!="function")throw Error(a(191,n));n.call(r)}function tE(n,r){var o=n.callbacks;if(o!==null)for(n.callbacks=null,n=0;n<o.length;n++)eE(o[n],r)}var As=V(null),gf=V(0);function nE(n,r){n=Ui,$(gf,n),$(As,r),Ui=n|r.baseLanes}function Ip(){$(gf,Ui),$(As,As.current)}function Sp(){Ui=gf.current,ie(As),ie(gf)}var la=0,We=null,Et=null,Wt=null,mf=!1,bs=!1,fo=!1,Af=0,Ku=0,vs=null,K_=0;function Vt(){throw Error(a(321))}function Cp(n,r){if(r===null)return!1;for(var o=0;o<r.length&&o<n.length;o++)if(!rr(n[o],r[o]))return!1;return!0}function Op(n,r,o,u,d,y){return la=y,We=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,R.H=n===null||n.memoizedState===null?LE:qE,fo=!1,y=o(u,d),fo=!1,bs&&(y=iE(r,o,u,d)),rE(n),y}function rE(n){R.H=If;var r=Et!==null&&Et.next!==null;if(la=0,Wt=Et=We=null,mf=!1,Ku=0,vs=null,r)throw Error(a(300));n===null||fn||(n=n.dependencies,n!==null&&ff(n)&&(fn=!0))}function iE(n,r,o,u){We=n;var d=0;do{if(bs&&(vs=null),Ku=0,bs=!1,25<=d)throw Error(a(301));if(d+=1,Wt=Et=null,n.updateQueue!=null){var y=n.updateQueue;y.lastEffect=null,y.events=null,y.stores=null,y.memoCache!=null&&(y.memoCache.index=0)}R.H=t8,y=r(o,u)}while(bs);return y}function Y_(){var n=R.H,r=n.useState()[0];return r=typeof r.then=="function"?Yu(r):r,n=n.useState()[0],(Et!==null?Et.memoizedState:null)!==n&&(We.flags|=1024),r}function Fp(){var n=Af!==0;return Af=0,n}function Tp(n,r,o){r.updateQueue=n.updateQueue,r.flags&=-2053,n.lanes&=~o}function Bp(n){if(mf){for(n=n.memoizedState;n!==null;){var r=n.queue;r!==null&&(r.pending=null),n=n.next}mf=!1}la=0,Wt=Et=We=null,bs=!1,Ku=Af=0,vs=null}function zn(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Wt===null?We.memoizedState=Wt=n:Wt=Wt.next=n,Wt}function en(){if(Et===null){var n=We.alternate;n=n!==null?n.memoizedState:null}else n=Et.next;var r=Wt===null?We.memoizedState:Wt.next;if(r!==null)Wt=r,Et=n;else{if(n===null)throw We.alternate===null?Error(a(467)):Error(a(310));Et=n,n={memoizedState:Et.memoizedState,baseState:Et.baseState,baseQueue:Et.baseQueue,queue:Et.queue,next:null},Wt===null?We.memoizedState=Wt=n:Wt=Wt.next=n}return Wt}function Rp(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Yu(n){var r=Ku;return Ku+=1,vs===null&&(vs=[]),n=Zx(vs,n,r),r=We,(Wt===null?r.memoizedState:Wt.next)===null&&(r=r.alternate,R.H=r===null||r.memoizedState===null?LE:qE),n}function bf(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return Yu(n);if(n.$$typeof===M)return Tn(n)}throw Error(a(438,String(n)))}function _p(n){var r=null,o=We.updateQueue;if(o!==null&&(r=o.memoCache),r==null){var u=We.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(r={data:u.data.map(function(d){return d.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),o===null&&(o=Rp(),We.updateQueue=o),o.memoCache=r,o=r.data[r.index],o===void 0)for(o=r.data[r.index]=Array(n),u=0;u<n;u++)o[u]=H;return r.index++,o}function Fi(n,r){return typeof r=="function"?r(n):r}function vf(n){var r=en();return Dp(r,Et,n)}function Dp(n,r,o){var u=n.queue;if(u===null)throw Error(a(311));u.lastRenderedReducer=o;var d=n.baseQueue,y=u.pending;if(y!==null){if(d!==null){var T=d.next;d.next=y.next,y.next=T}r.baseQueue=d=y,u.pending=null}if(y=n.baseState,d===null)n.memoizedState=y;else{r=d.next;var L=T=null,ae=null,ve=r,Fe=!1;do{var Be=ve.lane&-536870913;if(Be!==ve.lane?(lt&Be)===Be:(la&Be)===Be){var xe=ve.revertLane;if(xe===0)ae!==null&&(ae=ae.next={lane:0,revertLane:0,action:ve.action,hasEagerState:ve.hasEagerState,eagerState:ve.eagerState,next:null}),Be===gs&&(Fe=!0);else if((la&xe)===xe){ve=ve.next,xe===gs&&(Fe=!0);continue}else Be={lane:0,revertLane:ve.revertLane,action:ve.action,hasEagerState:ve.hasEagerState,eagerState:ve.eagerState,next:null},ae===null?(L=ae=Be,T=y):ae=ae.next=Be,We.lanes|=xe,ma|=xe;Be=ve.action,fo&&o(y,Be),y=ve.hasEagerState?ve.eagerState:o(y,Be)}else xe={lane:Be,revertLane:ve.revertLane,action:ve.action,hasEagerState:ve.hasEagerState,eagerState:ve.eagerState,next:null},ae===null?(L=ae=xe,T=y):ae=ae.next=xe,We.lanes|=Be,ma|=Be;ve=ve.next}while(ve!==null&&ve!==r);if(ae===null?T=y:ae.next=L,!rr(y,n.memoizedState)&&(fn=!0,Fe&&(o=ms,o!==null)))throw o;n.memoizedState=y,n.baseState=T,n.baseQueue=ae,u.lastRenderedState=y}return d===null&&(u.lanes=0),[n.memoizedState,u.dispatch]}function Up(n){var r=en(),o=r.queue;if(o===null)throw Error(a(311));o.lastRenderedReducer=n;var u=o.dispatch,d=o.pending,y=r.memoizedState;if(d!==null){o.pending=null;var T=d=d.next;do y=n(y,T.action),T=T.next;while(T!==d);rr(y,r.memoizedState)||(fn=!0),r.memoizedState=y,r.baseQueue===null&&(r.baseState=y),o.lastRenderedState=y}return[y,u]}function aE(n,r,o){var u=We,d=en(),y=gt;if(y){if(o===void 0)throw Error(a(407));o=o()}else o=r();var T=!rr((Et||d).memoizedState,o);T&&(d.memoizedState=o,fn=!0),d=d.queue;var L=uE.bind(null,u,d,n);if(Xu(2048,8,L,[n]),d.getSnapshot!==r||T||Wt!==null&&Wt.memoizedState.tag&1){if(u.flags|=2048,xs(9,xf(),sE.bind(null,u,d,o,r),null),Bt===null)throw Error(a(349));y||(la&124)!==0||oE(u,r,o)}return o}function oE(n,r,o){n.flags|=16384,n={getSnapshot:r,value:o},r=We.updateQueue,r===null?(r=Rp(),We.updateQueue=r,r.stores=[n]):(o=r.stores,o===null?r.stores=[n]:o.push(n))}function sE(n,r,o,u){r.value=o,r.getSnapshot=u,cE(r)&&lE(n)}function uE(n,r,o){return o(function(){cE(r)&&lE(n)})}function cE(n){var r=n.getSnapshot;n=n.value;try{var o=r();return!rr(n,o)}catch{return!0}}function lE(n){var r=ds(n,2);r!==null&&cr(r,n,2)}function Mp(n){var r=zn();if(typeof n=="function"){var o=n;if(n=o(),fo){_e(!0);try{o()}finally{_e(!1)}}}return r.memoizedState=r.baseState=n,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fi,lastRenderedState:n},r}function fE(n,r,o,u){return n.baseState=o,Dp(n,Et,typeof u=="function"?u:Fi)}function X_(n,r,o,u,d){if(wf(n))throw Error(a(485));if(n=r.action,n!==null){var y={payload:d,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(T){y.listeners.push(T)}};R.T!==null?o(!0):y.isTransition=!1,u(y),o=r.pending,o===null?(y.next=r.pending=y,dE(r,y)):(y.next=o.next,r.pending=o.next=y)}}function dE(n,r){var o=r.action,u=r.payload,d=n.state;if(r.isTransition){var y=R.T,T={};R.T=T;try{var L=o(d,u),ae=R.S;ae!==null&&ae(T,L),hE(n,r,L)}catch(ve){jp(n,r,ve)}finally{R.T=y}}else try{y=o(d,u),hE(n,r,y)}catch(ve){jp(n,r,ve)}}function hE(n,r,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(u){pE(n,r,u)},function(u){return jp(n,r,u)}):pE(n,r,o)}function pE(n,r,o){r.status="fulfilled",r.value=o,yE(r),n.state=o,r=n.pending,r!==null&&(o=r.next,o===r?n.pending=null:(o=o.next,r.next=o,dE(n,o)))}function jp(n,r,o){var u=n.pending;if(n.pending=null,u!==null){u=u.next;do r.status="rejected",r.reason=o,yE(r),r=r.next;while(r!==u)}n.action=null}function yE(n){n=n.listeners;for(var r=0;r<n.length;r++)(0,n[r])()}function gE(n,r){return r}function mE(n,r){if(gt){var o=Bt.formState;if(o!==null){e:{var u=We;if(gt){if(Ht){t:{for(var d=Ht,y=ri;d.nodeType!==8;){if(!y){d=null;break t}if(d=Hr(d.nextSibling),d===null){d=null;break t}}y=d.data,d=y==="F!"||y==="F"?d:null}if(d){Ht=Hr(d.nextSibling),u=d.data==="F!";break e}}so(u)}u=!1}u&&(r=o[0])}}return o=zn(),o.memoizedState=o.baseState=r,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gE,lastRenderedState:r},o.queue=u,o=jE.bind(null,We,u),u.dispatch=o,u=Mp(!1),y=$p.bind(null,We,!1,u.queue),u=zn(),d={state:r,dispatch:null,action:n,pending:null},u.queue=d,o=X_.bind(null,We,d,y,o),d.dispatch=o,u.memoizedState=n,[r,o,!1]}function AE(n){var r=en();return bE(r,Et,n)}function bE(n,r,o){if(r=Dp(n,r,gE)[0],n=vf(Fi)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var u=Yu(r)}catch(T){throw T===ku?pf:T}else u=r;r=en();var d=r.queue,y=d.dispatch;return o!==r.memoizedState&&(We.flags|=2048,xs(9,xf(),Z_.bind(null,d,o),null)),[u,y,n]}function Z_(n,r){n.action=r}function vE(n){var r=en(),o=Et;if(o!==null)return bE(r,o,n);en(),r=r.memoizedState,o=en();var u=o.queue.dispatch;return o.memoizedState=n,[r,u,!1]}function xs(n,r,o,u){return n={tag:n,create:o,deps:u,inst:r,next:null},r=We.updateQueue,r===null&&(r=Rp(),We.updateQueue=r),o=r.lastEffect,o===null?r.lastEffect=n.next=n:(u=o.next,o.next=n,n.next=u,r.lastEffect=n),n}function xf(){return{destroy:void 0,resource:void 0}}function xE(){return en().memoizedState}function Ef(n,r,o,u){var d=zn();u=u===void 0?null:u,We.flags|=n,d.memoizedState=xs(1|r,xf(),o,u)}function Xu(n,r,o,u){var d=en();u=u===void 0?null:u;var y=d.memoizedState.inst;Et!==null&&u!==null&&Cp(u,Et.memoizedState.deps)?d.memoizedState=xs(r,y,o,u):(We.flags|=n,d.memoizedState=xs(1|r,y,o,u))}function EE(n,r){Ef(8390656,8,n,r)}function wE(n,r){Xu(2048,8,n,r)}function IE(n,r){return Xu(4,2,n,r)}function SE(n,r){return Xu(4,4,n,r)}function CE(n,r){if(typeof r=="function"){n=n();var o=r(n);return function(){typeof o=="function"?o():r(null)}}if(r!=null)return n=n(),r.current=n,function(){r.current=null}}function OE(n,r,o){o=o!=null?o.concat([n]):null,Xu(4,4,CE.bind(null,r,n),o)}function Pp(){}function FE(n,r){var o=en();r=r===void 0?null:r;var u=o.memoizedState;return r!==null&&Cp(r,u[1])?u[0]:(o.memoizedState=[n,r],n)}function TE(n,r){var o=en();r=r===void 0?null:r;var u=o.memoizedState;if(r!==null&&Cp(r,u[1]))return u[0];if(u=n(),fo){_e(!0);try{n()}finally{_e(!1)}}return o.memoizedState=[u,r],u}function Np(n,r,o){return o===void 0||(la&1073741824)!==0?n.memoizedState=r:(n.memoizedState=o,n=_w(),We.lanes|=n,ma|=n,o)}function BE(n,r,o,u){return rr(o,r)?o:As.current!==null?(n=Np(n,o,u),rr(n,r)||(fn=!0),n):(la&42)===0?(fn=!0,n.memoizedState=o):(n=_w(),We.lanes|=n,ma|=n,r)}function RE(n,r,o,u,d){var y=re.p;re.p=y!==0&&8>y?y:8;var T=R.T,L={};R.T=L,$p(n,!1,r,o);try{var ae=d(),ve=R.S;if(ve!==null&&ve(L,ae),ae!==null&&typeof ae=="object"&&typeof ae.then=="function"){var Fe=V_(ae,u);Zu(n,r,Fe,ur(n))}else Zu(n,r,u,ur(n))}catch(Be){Zu(n,r,{then:function(){},status:"rejected",reason:Be},ur())}finally{re.p=y,R.T=T}}function J_(){}function Lp(n,r,o,u){if(n.tag!==5)throw Error(a(476));var d=_E(n).queue;RE(n,d,r,fe,o===null?J_:function(){return DE(n),o(u)})}function _E(n){var r=n.memoizedState;if(r!==null)return r;r={memoizedState:fe,baseState:fe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fi,lastRenderedState:fe},next:null};var o={};return r.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fi,lastRenderedState:o},next:null},n.memoizedState=r,n=n.alternate,n!==null&&(n.memoizedState=r),r}function DE(n){var r=_E(n).next.queue;Zu(n,r,{},ur())}function qp(){return Tn(yc)}function UE(){return en().memoizedState}function ME(){return en().memoizedState}function W_(n){for(var r=n.return;r!==null;){switch(r.tag){case 24:case 3:var o=ur();n=ua(o);var u=ca(r,n,o);u!==null&&(cr(u,r,o),Gu(u,r,o)),r={cache:gp()},n.payload=r;return}r=r.return}}function e8(n,r,o){var u=ur();o={lane:u,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null},wf(n)?PE(r,o):(o=op(n,r,o,u),o!==null&&(cr(o,n,u),NE(o,r,u)))}function jE(n,r,o){var u=ur();Zu(n,r,o,u)}function Zu(n,r,o,u){var d={lane:u,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null};if(wf(n))PE(r,d);else{var y=n.alternate;if(n.lanes===0&&(y===null||y.lanes===0)&&(y=r.lastRenderedReducer,y!==null))try{var T=r.lastRenderedState,L=y(T,o);if(d.hasEagerState=!0,d.eagerState=L,rr(L,T))return of(n,r,d,0),Bt===null&&af(),!1}catch{}finally{}if(o=op(n,r,d,u),o!==null)return cr(o,n,u),NE(o,r,u),!0}return!1}function $p(n,r,o,u){if(u={lane:2,revertLane:by(),action:u,hasEagerState:!1,eagerState:null,next:null},wf(n)){if(r)throw Error(a(479))}else r=op(n,o,u,2),r!==null&&cr(r,n,2)}function wf(n){var r=n.alternate;return n===We||r!==null&&r===We}function PE(n,r){bs=mf=!0;var o=n.pending;o===null?r.next=r:(r.next=o.next,o.next=r),n.pending=r}function NE(n,r,o){if((o&4194048)!==0){var u=r.lanes;u&=n.pendingLanes,o|=u,r.lanes=o,Pt(n,o)}}var If={readContext:Tn,use:bf,useCallback:Vt,useContext:Vt,useEffect:Vt,useImperativeHandle:Vt,useLayoutEffect:Vt,useInsertionEffect:Vt,useMemo:Vt,useReducer:Vt,useRef:Vt,useState:Vt,useDebugValue:Vt,useDeferredValue:Vt,useTransition:Vt,useSyncExternalStore:Vt,useId:Vt,useHostTransitionStatus:Vt,useFormState:Vt,useActionState:Vt,useOptimistic:Vt,useMemoCache:Vt,useCacheRefresh:Vt},LE={readContext:Tn,use:bf,useCallback:function(n,r){return zn().memoizedState=[n,r===void 0?null:r],n},useContext:Tn,useEffect:EE,useImperativeHandle:function(n,r,o){o=o!=null?o.concat([n]):null,Ef(4194308,4,CE.bind(null,r,n),o)},useLayoutEffect:function(n,r){return Ef(4194308,4,n,r)},useInsertionEffect:function(n,r){Ef(4,2,n,r)},useMemo:function(n,r){var o=zn();r=r===void 0?null:r;var u=n();if(fo){_e(!0);try{n()}finally{_e(!1)}}return o.memoizedState=[u,r],u},useReducer:function(n,r,o){var u=zn();if(o!==void 0){var d=o(r);if(fo){_e(!0);try{o(r)}finally{_e(!1)}}}else d=r;return u.memoizedState=u.baseState=d,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:d},u.queue=n,n=n.dispatch=e8.bind(null,We,n),[u.memoizedState,n]},useRef:function(n){var r=zn();return n={current:n},r.memoizedState=n},useState:function(n){n=Mp(n);var r=n.queue,o=jE.bind(null,We,r);return r.dispatch=o,[n.memoizedState,o]},useDebugValue:Pp,useDeferredValue:function(n,r){var o=zn();return Np(o,n,r)},useTransition:function(){var n=Mp(!1);return n=RE.bind(null,We,n.queue,!0,!1),zn().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,r,o){var u=We,d=zn();if(gt){if(o===void 0)throw Error(a(407));o=o()}else{if(o=r(),Bt===null)throw Error(a(349));(lt&124)!==0||oE(u,r,o)}d.memoizedState=o;var y={value:o,getSnapshot:r};return d.queue=y,EE(uE.bind(null,u,y,n),[n]),u.flags|=2048,xs(9,xf(),sE.bind(null,u,y,o,r),null),o},useId:function(){var n=zn(),r=Bt.identifierPrefix;if(gt){var o=Si,u=Ii;o=(u&~(1<<32-Ne(u)-1)).toString(32)+o,r="«"+r+"R"+o,o=Af++,0<o&&(r+="H"+o.toString(32)),r+="»"}else o=K_++,r="«"+r+"r"+o.toString(32)+"»";return n.memoizedState=r},useHostTransitionStatus:qp,useFormState:mE,useActionState:mE,useOptimistic:function(n){var r=zn();r.memoizedState=r.baseState=n;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=o,r=$p.bind(null,We,!0,o),o.dispatch=r,[n,r]},useMemoCache:_p,useCacheRefresh:function(){return zn().memoizedState=W_.bind(null,We)}},qE={readContext:Tn,use:bf,useCallback:FE,useContext:Tn,useEffect:wE,useImperativeHandle:OE,useInsertionEffect:IE,useLayoutEffect:SE,useMemo:TE,useReducer:vf,useRef:xE,useState:function(){return vf(Fi)},useDebugValue:Pp,useDeferredValue:function(n,r){var o=en();return BE(o,Et.memoizedState,n,r)},useTransition:function(){var n=vf(Fi)[0],r=en().memoizedState;return[typeof n=="boolean"?n:Yu(n),r]},useSyncExternalStore:aE,useId:UE,useHostTransitionStatus:qp,useFormState:AE,useActionState:AE,useOptimistic:function(n,r){var o=en();return fE(o,Et,n,r)},useMemoCache:_p,useCacheRefresh:ME},t8={readContext:Tn,use:bf,useCallback:FE,useContext:Tn,useEffect:wE,useImperativeHandle:OE,useInsertionEffect:IE,useLayoutEffect:SE,useMemo:TE,useReducer:Up,useRef:xE,useState:function(){return Up(Fi)},useDebugValue:Pp,useDeferredValue:function(n,r){var o=en();return Et===null?Np(o,n,r):BE(o,Et.memoizedState,n,r)},useTransition:function(){var n=Up(Fi)[0],r=en().memoizedState;return[typeof n=="boolean"?n:Yu(n),r]},useSyncExternalStore:aE,useId:UE,useHostTransitionStatus:qp,useFormState:vE,useActionState:vE,useOptimistic:function(n,r){var o=en();return Et!==null?fE(o,Et,n,r):(o.baseState=n,[n,o.queue.dispatch])},useMemoCache:_p,useCacheRefresh:ME},Es=null,Ju=0;function Sf(n){var r=Ju;return Ju+=1,Es===null&&(Es=[]),Zx(Es,n,r)}function Wu(n,r){r=r.props.ref,n.ref=r!==void 0?r:null}function Cf(n,r){throw r.$$typeof===v?Error(a(525)):(n=Object.prototype.toString.call(r),Error(a(31,n==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":n)))}function $E(n){var r=n._init;return r(n._payload)}function HE(n){function r(me,he){if(n){var be=me.deletions;be===null?(me.deletions=[he],me.flags|=16):be.push(he)}}function o(me,he){if(!n)return null;for(;he!==null;)r(me,he),he=he.sibling;return null}function u(me){for(var he=new Map;me!==null;)me.key!==null?he.set(me.key,me):he.set(me.index,me),me=me.sibling;return he}function d(me,he){return me=wi(me,he),me.index=0,me.sibling=null,me}function y(me,he,be){return me.index=be,n?(be=me.alternate,be!==null?(be=be.index,be<he?(me.flags|=67108866,he):be):(me.flags|=67108866,he)):(me.flags|=1048576,he)}function T(me){return n&&me.alternate===null&&(me.flags|=67108866),me}function L(me,he,be,Te){return he===null||he.tag!==6?(he=up(be,me.mode,Te),he.return=me,he):(he=d(he,be),he.return=me,he)}function ae(me,he,be,Te){var $e=be.type;return $e===C?Fe(me,he,be.props.children,Te,be.key):he!==null&&(he.elementType===$e||typeof $e=="object"&&$e!==null&&$e.$$typeof===oe&&$E($e)===he.type)?(he=d(he,be.props),Wu(he,be),he.return=me,he):(he=uf(be.type,be.key,be.props,null,me.mode,Te),Wu(he,be),he.return=me,he)}function ve(me,he,be,Te){return he===null||he.tag!==4||he.stateNode.containerInfo!==be.containerInfo||he.stateNode.implementation!==be.implementation?(he=cp(be,me.mode,Te),he.return=me,he):(he=d(he,be.children||[]),he.return=me,he)}function Fe(me,he,be,Te,$e){return he===null||he.tag!==7?(he=ro(be,me.mode,Te,$e),he.return=me,he):(he=d(he,be),he.return=me,he)}function Be(me,he,be){if(typeof he=="string"&&he!==""||typeof he=="number"||typeof he=="bigint")return he=up(""+he,me.mode,be),he.return=me,he;if(typeof he=="object"&&he!==null){switch(he.$$typeof){case A:return be=uf(he.type,he.key,he.props,null,me.mode,be),Wu(be,he),be.return=me,be;case I:return he=cp(he,me.mode,be),he.return=me,he;case oe:var Te=he._init;return he=Te(he._payload),Be(me,he,be)}if(pe(he)||G(he))return he=ro(he,me.mode,be,null),he.return=me,he;if(typeof he.then=="function")return Be(me,Sf(he),be);if(he.$$typeof===M)return Be(me,df(me,he),be);Cf(me,he)}return null}function xe(me,he,be,Te){var $e=he!==null?he.key:null;if(typeof be=="string"&&be!==""||typeof be=="number"||typeof be=="bigint")return $e!==null?null:L(me,he,""+be,Te);if(typeof be=="object"&&be!==null){switch(be.$$typeof){case A:return be.key===$e?ae(me,he,be,Te):null;case I:return be.key===$e?ve(me,he,be,Te):null;case oe:return $e=be._init,be=$e(be._payload),xe(me,he,be,Te)}if(pe(be)||G(be))return $e!==null?null:Fe(me,he,be,Te,null);if(typeof be.then=="function")return xe(me,he,Sf(be),Te);if(be.$$typeof===M)return xe(me,he,df(me,be),Te);Cf(me,be)}return null}function we(me,he,be,Te,$e){if(typeof Te=="string"&&Te!==""||typeof Te=="number"||typeof Te=="bigint")return me=me.get(be)||null,L(he,me,""+Te,$e);if(typeof Te=="object"&&Te!==null){switch(Te.$$typeof){case A:return me=me.get(Te.key===null?be:Te.key)||null,ae(he,me,Te,$e);case I:return me=me.get(Te.key===null?be:Te.key)||null,ve(he,me,Te,$e);case oe:var et=Te._init;return Te=et(Te._payload),we(me,he,be,Te,$e)}if(pe(Te)||G(Te))return me=me.get(be)||null,Fe(he,me,Te,$e,null);if(typeof Te.then=="function")return we(me,he,be,Sf(Te),$e);if(Te.$$typeof===M)return we(me,he,be,df(he,Te),$e);Cf(he,Te)}return null}function Ke(me,he,be,Te){for(var $e=null,et=null,He=he,Qe=he=0,hn=null;He!==null&&Qe<be.length;Qe++){He.index>Qe?(hn=He,He=null):hn=He.sibling;var yt=xe(me,He,be[Qe],Te);if(yt===null){He===null&&(He=hn);break}n&&He&&yt.alternate===null&&r(me,He),he=y(yt,he,Qe),et===null?$e=yt:et.sibling=yt,et=yt,He=hn}if(Qe===be.length)return o(me,He),gt&&ao(me,Qe),$e;if(He===null){for(;Qe<be.length;Qe++)He=Be(me,be[Qe],Te),He!==null&&(he=y(He,he,Qe),et===null?$e=He:et.sibling=He,et=He);return gt&&ao(me,Qe),$e}for(He=u(He);Qe<be.length;Qe++)hn=we(He,me,Qe,be[Qe],Te),hn!==null&&(n&&hn.alternate!==null&&He.delete(hn.key===null?Qe:hn.key),he=y(hn,he,Qe),et===null?$e=hn:et.sibling=hn,et=hn);return n&&He.forEach(function(Ca){return r(me,Ca)}),gt&&ao(me,Qe),$e}function Ge(me,he,be,Te){if(be==null)throw Error(a(151));for(var $e=null,et=null,He=he,Qe=he=0,hn=null,yt=be.next();He!==null&&!yt.done;Qe++,yt=be.next()){He.index>Qe?(hn=He,He=null):hn=He.sibling;var Ca=xe(me,He,yt.value,Te);if(Ca===null){He===null&&(He=hn);break}n&&He&&Ca.alternate===null&&r(me,He),he=y(Ca,he,Qe),et===null?$e=Ca:et.sibling=Ca,et=Ca,He=hn}if(yt.done)return o(me,He),gt&&ao(me,Qe),$e;if(He===null){for(;!yt.done;Qe++,yt=be.next())yt=Be(me,yt.value,Te),yt!==null&&(he=y(yt,he,Qe),et===null?$e=yt:et.sibling=yt,et=yt);return gt&&ao(me,Qe),$e}for(He=u(He);!yt.done;Qe++,yt=be.next())yt=we(He,me,Qe,yt.value,Te),yt!==null&&(n&&yt.alternate!==null&&He.delete(yt.key===null?Qe:yt.key),he=y(yt,he,Qe),et===null?$e=yt:et.sibling=yt,et=yt);return n&&He.forEach(function(n4){return r(me,n4)}),gt&&ao(me,Qe),$e}function It(me,he,be,Te){if(typeof be=="object"&&be!==null&&be.type===C&&be.key===null&&(be=be.props.children),typeof be=="object"&&be!==null){switch(be.$$typeof){case A:e:{for(var $e=be.key;he!==null;){if(he.key===$e){if($e=be.type,$e===C){if(he.tag===7){o(me,he.sibling),Te=d(he,be.props.children),Te.return=me,me=Te;break e}}else if(he.elementType===$e||typeof $e=="object"&&$e!==null&&$e.$$typeof===oe&&$E($e)===he.type){o(me,he.sibling),Te=d(he,be.props),Wu(Te,be),Te.return=me,me=Te;break e}o(me,he);break}else r(me,he);he=he.sibling}be.type===C?(Te=ro(be.props.children,me.mode,Te,be.key),Te.return=me,me=Te):(Te=uf(be.type,be.key,be.props,null,me.mode,Te),Wu(Te,be),Te.return=me,me=Te)}return T(me);case I:e:{for($e=be.key;he!==null;){if(he.key===$e)if(he.tag===4&&he.stateNode.containerInfo===be.containerInfo&&he.stateNode.implementation===be.implementation){o(me,he.sibling),Te=d(he,be.children||[]),Te.return=me,me=Te;break e}else{o(me,he);break}else r(me,he);he=he.sibling}Te=cp(be,me.mode,Te),Te.return=me,me=Te}return T(me);case oe:return $e=be._init,be=$e(be._payload),It(me,he,be,Te)}if(pe(be))return Ke(me,he,be,Te);if(G(be)){if($e=G(be),typeof $e!="function")throw Error(a(150));return be=$e.call(be),Ge(me,he,be,Te)}if(typeof be.then=="function")return It(me,he,Sf(be),Te);if(be.$$typeof===M)return It(me,he,df(me,be),Te);Cf(me,be)}return typeof be=="string"&&be!==""||typeof be=="number"||typeof be=="bigint"?(be=""+be,he!==null&&he.tag===6?(o(me,he.sibling),Te=d(he,be),Te.return=me,me=Te):(o(me,he),Te=up(be,me.mode,Te),Te.return=me,me=Te),T(me)):o(me,he)}return function(me,he,be,Te){try{Ju=0;var $e=It(me,he,be,Te);return Es=null,$e}catch(He){if(He===ku||He===pf)throw He;var et=ir(29,He,null,me.mode);return et.lanes=Te,et.return=me,et}finally{}}}var ws=HE(!0),kE=HE(!1),Cr=V(null),ii=null;function fa(n){var r=n.alternate;$(cn,cn.current&1),$(Cr,n),ii===null&&(r===null||As.current!==null||r.memoizedState!==null)&&(ii=n)}function zE(n){if(n.tag===22){if($(cn,cn.current),$(Cr,n),ii===null){var r=n.alternate;r!==null&&r.memoizedState!==null&&(ii=n)}}else da()}function da(){$(cn,cn.current),$(Cr,Cr.current)}function Ti(n){ie(Cr),ii===n&&(ii=null),ie(cn)}var cn=V(0);function Of(n){for(var r=n;r!==null;){if(r.tag===13){var o=r.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||Ry(o)))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===n)break;for(;r.sibling===null;){if(r.return===null||r.return===n)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}function Hp(n,r,o,u){r=n.memoizedState,o=o(u,r),o=o==null?r:b({},r,o),n.memoizedState=o,n.lanes===0&&(n.updateQueue.baseState=o)}var kp={enqueueSetState:function(n,r,o){n=n._reactInternals;var u=ur(),d=ua(u);d.payload=r,o!=null&&(d.callback=o),r=ca(n,d,u),r!==null&&(cr(r,n,u),Gu(r,n,u))},enqueueReplaceState:function(n,r,o){n=n._reactInternals;var u=ur(),d=ua(u);d.tag=1,d.payload=r,o!=null&&(d.callback=o),r=ca(n,d,u),r!==null&&(cr(r,n,u),Gu(r,n,u))},enqueueForceUpdate:function(n,r){n=n._reactInternals;var o=ur(),u=ua(o);u.tag=2,r!=null&&(u.callback=r),r=ca(n,u,o),r!==null&&(cr(r,n,o),Gu(r,n,o))}};function GE(n,r,o,u,d,y,T){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(u,y,T):r.prototype&&r.prototype.isPureReactComponent?!Mu(o,u)||!Mu(d,y):!0}function QE(n,r,o,u){n=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(o,u),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(o,u),r.state!==n&&kp.enqueueReplaceState(r,r.state,null)}function ho(n,r){var o=r;if("ref"in r){o={};for(var u in r)u!=="ref"&&(o[u]=r[u])}if(n=n.defaultProps){o===r&&(o=b({},o));for(var d in n)o[d]===void 0&&(o[d]=n[d])}return o}var Ff=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(r))return}else if(typeof it=="object"&&typeof it.emit=="function"){it.emit("uncaughtException",n);return}console.error(n)};function VE(n){Ff(n)}function KE(n){console.error(n)}function YE(n){Ff(n)}function Tf(n,r){try{var o=n.onUncaughtError;o(r.value,{componentStack:r.stack})}catch(u){setTimeout(function(){throw u})}}function XE(n,r,o){try{var u=n.onCaughtError;u(o.value,{componentStack:o.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function zp(n,r,o){return o=ua(o),o.tag=3,o.payload={element:null},o.callback=function(){Tf(n,r)},o}function ZE(n){return n=ua(n),n.tag=3,n}function JE(n,r,o,u){var d=o.type.getDerivedStateFromError;if(typeof d=="function"){var y=u.value;n.payload=function(){return d(y)},n.callback=function(){XE(r,o,u)}}var T=o.stateNode;T!==null&&typeof T.componentDidCatch=="function"&&(n.callback=function(){XE(r,o,u),typeof d!="function"&&(Aa===null?Aa=new Set([this]):Aa.add(this));var L=u.stack;this.componentDidCatch(u.value,{componentStack:L!==null?L:""})})}function n8(n,r,o,u,d){if(o.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(r=o.alternate,r!==null&&qu(r,o,d,!0),o=Cr.current,o!==null){switch(o.tag){case 13:return ii===null?py():o.alternate===null&&kt===0&&(kt=3),o.flags&=-257,o.flags|=65536,o.lanes=d,u===bp?o.flags|=16384:(r=o.updateQueue,r===null?o.updateQueue=new Set([u]):r.add(u),gy(n,u,d)),!1;case 22:return o.flags|=65536,u===bp?o.flags|=16384:(r=o.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([u])},o.updateQueue=r):(o=r.retryQueue,o===null?r.retryQueue=new Set([u]):o.add(u)),gy(n,u,d)),!1}throw Error(a(435,o.tag))}return gy(n,u,d),py(),!1}if(gt)return r=Cr.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=d,u!==dp&&(n=Error(a(422),{cause:u}),Lu(Er(n,o)))):(u!==dp&&(r=Error(a(423),{cause:u}),Lu(Er(r,o))),n=n.current.alternate,n.flags|=65536,d&=-d,n.lanes|=d,u=Er(u,o),d=zp(n.stateNode,u,d),Ep(n,d),kt!==4&&(kt=2)),!1;var y=Error(a(520),{cause:u});if(y=Er(y,o),oc===null?oc=[y]:oc.push(y),kt!==4&&(kt=2),r===null)return!0;u=Er(u,o),o=r;do{switch(o.tag){case 3:return o.flags|=65536,n=d&-d,o.lanes|=n,n=zp(o.stateNode,u,n),Ep(o,n),!1;case 1:if(r=o.type,y=o.stateNode,(o.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Aa===null||!Aa.has(y))))return o.flags|=65536,d&=-d,o.lanes|=d,d=ZE(d),JE(d,n,o,u),Ep(o,d),!1}o=o.return}while(o!==null);return!1}var WE=Error(a(461)),fn=!1;function bn(n,r,o,u){r.child=n===null?kE(r,null,o,u):ws(r,n.child,o,u)}function ew(n,r,o,u,d){o=o.render;var y=r.ref;if("ref"in u){var T={};for(var L in u)L!=="ref"&&(T[L]=u[L])}else T=u;return co(r),u=Op(n,r,o,T,y,d),L=Fp(),n!==null&&!fn?(Tp(n,r,d),Bi(n,r,d)):(gt&&L&&lp(r),r.flags|=1,bn(n,r,u,d),r.child)}function tw(n,r,o,u,d){if(n===null){var y=o.type;return typeof y=="function"&&!sp(y)&&y.defaultProps===void 0&&o.compare===null?(r.tag=15,r.type=y,nw(n,r,y,u,d)):(n=uf(o.type,null,u,r,r.mode,d),n.ref=r.ref,n.return=r,r.child=n)}if(y=n.child,!Jp(n,d)){var T=y.memoizedProps;if(o=o.compare,o=o!==null?o:Mu,o(T,u)&&n.ref===r.ref)return Bi(n,r,d)}return r.flags|=1,n=wi(y,u),n.ref=r.ref,n.return=r,r.child=n}function nw(n,r,o,u,d){if(n!==null){var y=n.memoizedProps;if(Mu(y,u)&&n.ref===r.ref)if(fn=!1,r.pendingProps=u=y,Jp(n,d))(n.flags&131072)!==0&&(fn=!0);else return r.lanes=n.lanes,Bi(n,r,d)}return Gp(n,r,o,u,d)}function rw(n,r,o){var u=r.pendingProps,d=u.children,y=n!==null?n.memoizedState:null;if(u.mode==="hidden"){if((r.flags&128)!==0){if(u=y!==null?y.baseLanes|o:o,n!==null){for(d=r.child=n.child,y=0;d!==null;)y=y|d.lanes|d.childLanes,d=d.sibling;r.childLanes=y&~u}else r.childLanes=0,r.child=null;return iw(n,r,u,o)}if((o&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},n!==null&&hf(r,y!==null?y.cachePool:null),y!==null?nE(r,y):Ip(),zE(r);else return r.lanes=r.childLanes=536870912,iw(n,r,y!==null?y.baseLanes|o:o,o)}else y!==null?(hf(r,y.cachePool),nE(r,y),da(),r.memoizedState=null):(n!==null&&hf(r,null),Ip(),da());return bn(n,r,d,o),r.child}function iw(n,r,o,u){var d=Ap();return d=d===null?null:{parent:un._currentValue,pool:d},r.memoizedState={baseLanes:o,cachePool:d},n!==null&&hf(r,null),Ip(),zE(r),n!==null&&qu(n,r,u,!0),null}function Bf(n,r){var o=r.ref;if(o===null)n!==null&&n.ref!==null&&(r.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(a(284));(n===null||n.ref!==o)&&(r.flags|=4194816)}}function Gp(n,r,o,u,d){return co(r),o=Op(n,r,o,u,void 0,d),u=Fp(),n!==null&&!fn?(Tp(n,r,d),Bi(n,r,d)):(gt&&u&&lp(r),r.flags|=1,bn(n,r,o,d),r.child)}function aw(n,r,o,u,d,y){return co(r),r.updateQueue=null,o=iE(r,u,o,d),rE(n),u=Fp(),n!==null&&!fn?(Tp(n,r,y),Bi(n,r,y)):(gt&&u&&lp(r),r.flags|=1,bn(n,r,o,y),r.child)}function ow(n,r,o,u,d){if(co(r),r.stateNode===null){var y=hs,T=o.contextType;typeof T=="object"&&T!==null&&(y=Tn(T)),y=new o(u,y),r.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=kp,r.stateNode=y,y._reactInternals=r,y=r.stateNode,y.props=u,y.state=r.memoizedState,y.refs={},vp(r),T=o.contextType,y.context=typeof T=="object"&&T!==null?Tn(T):hs,y.state=r.memoizedState,T=o.getDerivedStateFromProps,typeof T=="function"&&(Hp(r,o,T,u),y.state=r.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(T=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),T!==y.state&&kp.enqueueReplaceState(y,y.state,null),Vu(r,u,y,d),Qu(),y.state=r.memoizedState),typeof y.componentDidMount=="function"&&(r.flags|=4194308),u=!0}else if(n===null){y=r.stateNode;var L=r.memoizedProps,ae=ho(o,L);y.props=ae;var ve=y.context,Fe=o.contextType;T=hs,typeof Fe=="object"&&Fe!==null&&(T=Tn(Fe));var Be=o.getDerivedStateFromProps;Fe=typeof Be=="function"||typeof y.getSnapshotBeforeUpdate=="function",L=r.pendingProps!==L,Fe||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(L||ve!==T)&&QE(r,y,u,T),sa=!1;var xe=r.memoizedState;y.state=xe,Vu(r,u,y,d),Qu(),ve=r.memoizedState,L||xe!==ve||sa?(typeof Be=="function"&&(Hp(r,o,Be,u),ve=r.memoizedState),(ae=sa||GE(r,o,ae,u,xe,ve,T))?(Fe||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(r.flags|=4194308)):(typeof y.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=u,r.memoizedState=ve),y.props=u,y.state=ve,y.context=T,u=ae):(typeof y.componentDidMount=="function"&&(r.flags|=4194308),u=!1)}else{y=r.stateNode,xp(n,r),T=r.memoizedProps,Fe=ho(o,T),y.props=Fe,Be=r.pendingProps,xe=y.context,ve=o.contextType,ae=hs,typeof ve=="object"&&ve!==null&&(ae=Tn(ve)),L=o.getDerivedStateFromProps,(ve=typeof L=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(T!==Be||xe!==ae)&&QE(r,y,u,ae),sa=!1,xe=r.memoizedState,y.state=xe,Vu(r,u,y,d),Qu();var we=r.memoizedState;T!==Be||xe!==we||sa||n!==null&&n.dependencies!==null&&ff(n.dependencies)?(typeof L=="function"&&(Hp(r,o,L,u),we=r.memoizedState),(Fe=sa||GE(r,o,Fe,u,xe,we,ae)||n!==null&&n.dependencies!==null&&ff(n.dependencies))?(ve||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(u,we,ae),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(u,we,ae)),typeof y.componentDidUpdate=="function"&&(r.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof y.componentDidUpdate!="function"||T===n.memoizedProps&&xe===n.memoizedState||(r.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||T===n.memoizedProps&&xe===n.memoizedState||(r.flags|=1024),r.memoizedProps=u,r.memoizedState=we),y.props=u,y.state=we,y.context=ae,u=Fe):(typeof y.componentDidUpdate!="function"||T===n.memoizedProps&&xe===n.memoizedState||(r.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||T===n.memoizedProps&&xe===n.memoizedState||(r.flags|=1024),u=!1)}return y=u,Bf(n,r),u=(r.flags&128)!==0,y||u?(y=r.stateNode,o=u&&typeof o.getDerivedStateFromError!="function"?null:y.render(),r.flags|=1,n!==null&&u?(r.child=ws(r,n.child,null,d),r.child=ws(r,null,o,d)):bn(n,r,o,d),r.memoizedState=y.state,n=r.child):n=Bi(n,r,d),n}function sw(n,r,o,u){return Nu(),r.flags|=256,bn(n,r,o,u),r.child}var Qp={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Vp(n){return{baseLanes:n,cachePool:Kx()}}function Kp(n,r,o){return n=n!==null?n.childLanes&~o:0,r&&(n|=Or),n}function uw(n,r,o){var u=r.pendingProps,d=!1,y=(r.flags&128)!==0,T;if((T=y)||(T=n!==null&&n.memoizedState===null?!1:(cn.current&2)!==0),T&&(d=!0,r.flags&=-129),T=(r.flags&32)!==0,r.flags&=-33,n===null){if(gt){if(d?fa(r):da(),gt){var L=Ht,ae;if(ae=L){e:{for(ae=L,L=ri;ae.nodeType!==8;){if(!L){L=null;break e}if(ae=Hr(ae.nextSibling),ae===null){L=null;break e}}L=ae}L!==null?(r.memoizedState={dehydrated:L,treeContext:io!==null?{id:Ii,overflow:Si}:null,retryLane:536870912,hydrationErrors:null},ae=ir(18,null,null,0),ae.stateNode=L,ae.return=r,r.child=ae,Pn=r,Ht=null,ae=!0):ae=!1}ae||so(r)}if(L=r.memoizedState,L!==null&&(L=L.dehydrated,L!==null))return Ry(L)?r.lanes=32:r.lanes=536870912,null;Ti(r)}return L=u.children,u=u.fallback,d?(da(),d=r.mode,L=Rf({mode:"hidden",children:L},d),u=ro(u,d,o,null),L.return=r,u.return=r,L.sibling=u,r.child=L,d=r.child,d.memoizedState=Vp(o),d.childLanes=Kp(n,T,o),r.memoizedState=Qp,u):(fa(r),Yp(r,L))}if(ae=n.memoizedState,ae!==null&&(L=ae.dehydrated,L!==null)){if(y)r.flags&256?(fa(r),r.flags&=-257,r=Xp(n,r,o)):r.memoizedState!==null?(da(),r.child=n.child,r.flags|=128,r=null):(da(),d=u.fallback,L=r.mode,u=Rf({mode:"visible",children:u.children},L),d=ro(d,L,o,null),d.flags|=2,u.return=r,d.return=r,u.sibling=d,r.child=u,ws(r,n.child,null,o),u=r.child,u.memoizedState=Vp(o),u.childLanes=Kp(n,T,o),r.memoizedState=Qp,r=d);else if(fa(r),Ry(L)){if(T=L.nextSibling&&L.nextSibling.dataset,T)var ve=T.dgst;T=ve,u=Error(a(419)),u.stack="",u.digest=T,Lu({value:u,source:null,stack:null}),r=Xp(n,r,o)}else if(fn||qu(n,r,o,!1),T=(o&n.childLanes)!==0,fn||T){if(T=Bt,T!==null&&(u=o&-o,u=(u&42)!==0?1:_t(u),u=(u&(T.suspendedLanes|o))!==0?0:u,u!==0&&u!==ae.retryLane))throw ae.retryLane=u,ds(n,u),cr(T,n,u),WE;L.data==="$?"||py(),r=Xp(n,r,o)}else L.data==="$?"?(r.flags|=192,r.child=n.child,r=null):(n=ae.treeContext,Ht=Hr(L.nextSibling),Pn=r,gt=!0,oo=null,ri=!1,n!==null&&(Ir[Sr++]=Ii,Ir[Sr++]=Si,Ir[Sr++]=io,Ii=n.id,Si=n.overflow,io=r),r=Yp(r,u.children),r.flags|=4096);return r}return d?(da(),d=u.fallback,L=r.mode,ae=n.child,ve=ae.sibling,u=wi(ae,{mode:"hidden",children:u.children}),u.subtreeFlags=ae.subtreeFlags&65011712,ve!==null?d=wi(ve,d):(d=ro(d,L,o,null),d.flags|=2),d.return=r,u.return=r,u.sibling=d,r.child=u,u=d,d=r.child,L=n.child.memoizedState,L===null?L=Vp(o):(ae=L.cachePool,ae!==null?(ve=un._currentValue,ae=ae.parent!==ve?{parent:ve,pool:ve}:ae):ae=Kx(),L={baseLanes:L.baseLanes|o,cachePool:ae}),d.memoizedState=L,d.childLanes=Kp(n,T,o),r.memoizedState=Qp,u):(fa(r),o=n.child,n=o.sibling,o=wi(o,{mode:"visible",children:u.children}),o.return=r,o.sibling=null,n!==null&&(T=r.deletions,T===null?(r.deletions=[n],r.flags|=16):T.push(n)),r.child=o,r.memoizedState=null,o)}function Yp(n,r){return r=Rf({mode:"visible",children:r},n.mode),r.return=n,n.child=r}function Rf(n,r){return n=ir(22,n,null,r),n.lanes=0,n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},n}function Xp(n,r,o){return ws(r,n.child,null,o),n=Yp(r,r.pendingProps.children),n.flags|=2,r.memoizedState=null,n}function cw(n,r,o){n.lanes|=r;var u=n.alternate;u!==null&&(u.lanes|=r),pp(n.return,r,o)}function Zp(n,r,o,u,d){var y=n.memoizedState;y===null?n.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:u,tail:o,tailMode:d}:(y.isBackwards=r,y.rendering=null,y.renderingStartTime=0,y.last=u,y.tail=o,y.tailMode=d)}function lw(n,r,o){var u=r.pendingProps,d=u.revealOrder,y=u.tail;if(bn(n,r,u.children,o),u=cn.current,(u&2)!==0)u=u&1|2,r.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=r.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&cw(n,o,r);else if(n.tag===19)cw(n,o,r);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===r)break e;for(;n.sibling===null;){if(n.return===null||n.return===r)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}u&=1}switch($(cn,u),d){case"forwards":for(o=r.child,d=null;o!==null;)n=o.alternate,n!==null&&Of(n)===null&&(d=o),o=o.sibling;o=d,o===null?(d=r.child,r.child=null):(d=o.sibling,o.sibling=null),Zp(r,!1,d,o,y);break;case"backwards":for(o=null,d=r.child,r.child=null;d!==null;){if(n=d.alternate,n!==null&&Of(n)===null){r.child=d;break}n=d.sibling,d.sibling=o,o=d,d=n}Zp(r,!0,o,null,y);break;case"together":Zp(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function Bi(n,r,o){if(n!==null&&(r.dependencies=n.dependencies),ma|=r.lanes,(o&r.childLanes)===0)if(n!==null){if(qu(n,r,o,!1),(o&r.childLanes)===0)return null}else return null;if(n!==null&&r.child!==n.child)throw Error(a(153));if(r.child!==null){for(n=r.child,o=wi(n,n.pendingProps),r.child=o,o.return=r;n.sibling!==null;)n=n.sibling,o=o.sibling=wi(n,n.pendingProps),o.return=r;o.sibling=null}return r.child}function Jp(n,r){return(n.lanes&r)!==0?!0:(n=n.dependencies,!!(n!==null&&ff(n)))}function r8(n,r,o){switch(r.tag){case 3:ge(r,r.stateNode.containerInfo),oa(r,un,n.memoizedState.cache),Nu();break;case 27:case 5:E(r);break;case 4:ge(r,r.stateNode.containerInfo);break;case 10:oa(r,r.type,r.memoizedProps.value);break;case 13:var u=r.memoizedState;if(u!==null)return u.dehydrated!==null?(fa(r),r.flags|=128,null):(o&r.child.childLanes)!==0?uw(n,r,o):(fa(r),n=Bi(n,r,o),n!==null?n.sibling:null);fa(r);break;case 19:var d=(n.flags&128)!==0;if(u=(o&r.childLanes)!==0,u||(qu(n,r,o,!1),u=(o&r.childLanes)!==0),d){if(u)return lw(n,r,o);r.flags|=128}if(d=r.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),$(cn,cn.current),u)break;return null;case 22:case 23:return r.lanes=0,rw(n,r,o);case 24:oa(r,un,n.memoizedState.cache)}return Bi(n,r,o)}function fw(n,r,o){if(n!==null)if(n.memoizedProps!==r.pendingProps)fn=!0;else{if(!Jp(n,o)&&(r.flags&128)===0)return fn=!1,r8(n,r,o);fn=(n.flags&131072)!==0}else fn=!1,gt&&(r.flags&1048576)!==0&&$x(r,lf,r.index);switch(r.lanes=0,r.tag){case 16:e:{n=r.pendingProps;var u=r.elementType,d=u._init;if(u=d(u._payload),r.type=u,typeof u=="function")sp(u)?(n=ho(u,n),r.tag=1,r=ow(null,r,u,n,o)):(r.tag=0,r=Gp(null,r,u,n,o));else{if(u!=null){if(d=u.$$typeof,d===te){r.tag=11,r=ew(null,r,u,n,o);break e}else if(d===ce){r.tag=14,r=tw(null,r,u,n,o);break e}}throw r=X(u)||u,Error(a(306,r,""))}}return r;case 0:return Gp(n,r,r.type,r.pendingProps,o);case 1:return u=r.type,d=ho(u,r.pendingProps),ow(n,r,u,d,o);case 3:e:{if(ge(r,r.stateNode.containerInfo),n===null)throw Error(a(387));u=r.pendingProps;var y=r.memoizedState;d=y.element,xp(n,r),Vu(r,u,null,o);var T=r.memoizedState;if(u=T.cache,oa(r,un,u),u!==y.cache&&yp(r,[un],o,!0),Qu(),u=T.element,y.isDehydrated)if(y={element:u,isDehydrated:!1,cache:T.cache},r.updateQueue.baseState=y,r.memoizedState=y,r.flags&256){r=sw(n,r,u,o);break e}else if(u!==d){d=Er(Error(a(424)),r),Lu(d),r=sw(n,r,u,o);break e}else{switch(n=r.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(Ht=Hr(n.firstChild),Pn=r,gt=!0,oo=null,ri=!0,o=kE(r,null,u,o),r.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling}else{if(Nu(),u===d){r=Bi(n,r,o);break e}bn(n,r,u,o)}r=r.child}return r;case 26:return Bf(n,r),n===null?(o=y2(r.type,null,r.pendingProps,null))?r.memoizedState=o:gt||(o=r.type,n=r.pendingProps,u=Gf(k.current).createElement(o),u[Qt]=r,u[sn]=n,xn(u,o,n),Nt(u),r.stateNode=u):r.memoizedState=y2(r.type,n.memoizedProps,r.pendingProps,n.memoizedState),null;case 27:return E(r),n===null&&gt&&(u=r.stateNode=d2(r.type,r.pendingProps,k.current),Pn=r,ri=!0,d=Ht,xa(r.type)?(_y=d,Ht=Hr(u.firstChild)):Ht=d),bn(n,r,r.pendingProps.children,o),Bf(n,r),n===null&&(r.flags|=4194304),r.child;case 5:return n===null&&gt&&((d=u=Ht)&&(u=R8(u,r.type,r.pendingProps,ri),u!==null?(r.stateNode=u,Pn=r,Ht=Hr(u.firstChild),ri=!1,d=!0):d=!1),d||so(r)),E(r),d=r.type,y=r.pendingProps,T=n!==null?n.memoizedProps:null,u=y.children,Fy(d,y)?u=null:T!==null&&Fy(d,T)&&(r.flags|=32),r.memoizedState!==null&&(d=Op(n,r,Y_,null,null,o),yc._currentValue=d),Bf(n,r),bn(n,r,u,o),r.child;case 6:return n===null&&gt&&((n=o=Ht)&&(o=_8(o,r.pendingProps,ri),o!==null?(r.stateNode=o,Pn=r,Ht=null,n=!0):n=!1),n||so(r)),null;case 13:return uw(n,r,o);case 4:return ge(r,r.stateNode.containerInfo),u=r.pendingProps,n===null?r.child=ws(r,null,u,o):bn(n,r,u,o),r.child;case 11:return ew(n,r,r.type,r.pendingProps,o);case 7:return bn(n,r,r.pendingProps,o),r.child;case 8:return bn(n,r,r.pendingProps.children,o),r.child;case 12:return bn(n,r,r.pendingProps.children,o),r.child;case 10:return u=r.pendingProps,oa(r,r.type,u.value),bn(n,r,u.children,o),r.child;case 9:return d=r.type._context,u=r.pendingProps.children,co(r),d=Tn(d),u=u(d),r.flags|=1,bn(n,r,u,o),r.child;case 14:return tw(n,r,r.type,r.pendingProps,o);case 15:return nw(n,r,r.type,r.pendingProps,o);case 19:return lw(n,r,o);case 31:return u=r.pendingProps,o=r.mode,u={mode:u.mode,children:u.children},n===null?(o=Rf(u,o),o.ref=r.ref,r.child=o,o.return=r,r=o):(o=wi(n.child,u),o.ref=r.ref,r.child=o,o.return=r,r=o),r;case 22:return rw(n,r,o);case 24:return co(r),u=Tn(un),n===null?(d=Ap(),d===null&&(d=Bt,y=gp(),d.pooledCache=y,y.refCount++,y!==null&&(d.pooledCacheLanes|=o),d=y),r.memoizedState={parent:u,cache:d},vp(r),oa(r,un,d)):((n.lanes&o)!==0&&(xp(n,r),Vu(r,null,null,o),Qu()),d=n.memoizedState,y=r.memoizedState,d.parent!==u?(d={parent:u,cache:u},r.memoizedState=d,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=d),oa(r,un,u)):(u=y.cache,oa(r,un,u),u!==d.cache&&yp(r,[un],o,!0))),bn(n,r,r.pendingProps.children,o),r.child;case 29:throw r.pendingProps}throw Error(a(156,r.tag))}function Ri(n){n.flags|=4}function dw(n,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!v2(r)){if(r=Cr.current,r!==null&&((lt&4194048)===lt?ii!==null:(lt&62914560)!==lt&&(lt&536870912)===0||r!==ii))throw zu=bp,Yx;n.flags|=8192}}function _f(n,r){r!==null&&(n.flags|=4),n.flags&16384&&(r=n.tag!==22?Mt():536870912,n.lanes|=r,Os|=r)}function ec(n,r){if(!gt)switch(n.tailMode){case"hidden":r=n.tail;for(var o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?n.tail=null:o.sibling=null;break;case"collapsed":o=n.tail;for(var u=null;o!==null;)o.alternate!==null&&(u=o),o=o.sibling;u===null?r||n.tail===null?n.tail=null:n.tail.sibling=null:u.sibling=null}}function Lt(n){var r=n.alternate!==null&&n.alternate.child===n.child,o=0,u=0;if(r)for(var d=n.child;d!==null;)o|=d.lanes|d.childLanes,u|=d.subtreeFlags&65011712,u|=d.flags&65011712,d.return=n,d=d.sibling;else for(d=n.child;d!==null;)o|=d.lanes|d.childLanes,u|=d.subtreeFlags,u|=d.flags,d.return=n,d=d.sibling;return n.subtreeFlags|=u,n.childLanes=o,r}function i8(n,r,o){var u=r.pendingProps;switch(fp(r),r.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Lt(r),null;case 1:return Lt(r),null;case 3:return o=r.stateNode,u=null,n!==null&&(u=n.memoizedState.cache),r.memoizedState.cache!==u&&(r.flags|=2048),Oi(un),q(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(n===null||n.child===null)&&(Pu(r)?Ri(r):n===null||n.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,zx())),Lt(r),null;case 26:return o=r.memoizedState,n===null?(Ri(r),o!==null?(Lt(r),dw(r,o)):(Lt(r),r.flags&=-16777217)):o?o!==n.memoizedState?(Ri(r),Lt(r),dw(r,o)):(Lt(r),r.flags&=-16777217):(n.memoizedProps!==u&&Ri(r),Lt(r),r.flags&=-16777217),null;case 27:P(r),o=k.current;var d=r.type;if(n!==null&&r.stateNode!=null)n.memoizedProps!==u&&Ri(r);else{if(!u){if(r.stateNode===null)throw Error(a(166));return Lt(r),null}n=j.current,Pu(r)?Hx(r):(n=d2(d,u,o),r.stateNode=n,Ri(r))}return Lt(r),null;case 5:if(P(r),o=r.type,n!==null&&r.stateNode!=null)n.memoizedProps!==u&&Ri(r);else{if(!u){if(r.stateNode===null)throw Error(a(166));return Lt(r),null}if(n=j.current,Pu(r))Hx(r);else{switch(d=Gf(k.current),n){case 1:n=d.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:n=d.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":n=d.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":n=d.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":n=d.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof u.is=="string"?d.createElement("select",{is:u.is}):d.createElement("select"),u.multiple?n.multiple=!0:u.size&&(n.size=u.size);break;default:n=typeof u.is=="string"?d.createElement(o,{is:u.is}):d.createElement(o)}}n[Qt]=r,n[sn]=u;e:for(d=r.child;d!==null;){if(d.tag===5||d.tag===6)n.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===r)break e;for(;d.sibling===null;){if(d.return===null||d.return===r)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}r.stateNode=n;e:switch(xn(n,o,u),o){case"button":case"input":case"select":case"textarea":n=!!u.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&Ri(r)}}return Lt(r),r.flags&=-16777217,null;case 6:if(n&&r.stateNode!=null)n.memoizedProps!==u&&Ri(r);else{if(typeof u!="string"&&r.stateNode===null)throw Error(a(166));if(n=k.current,Pu(r)){if(n=r.stateNode,o=r.memoizedProps,u=null,d=Pn,d!==null)switch(d.tag){case 27:case 5:u=d.memoizedProps}n[Qt]=r,n=!!(n.nodeValue===o||u!==null&&u.suppressHydrationWarning===!0||a2(n.nodeValue,o)),n||so(r)}else n=Gf(n).createTextNode(u),n[Qt]=r,r.stateNode=n}return Lt(r),null;case 13:if(u=r.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(d=Pu(r),u!==null&&u.dehydrated!==null){if(n===null){if(!d)throw Error(a(318));if(d=r.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(a(317));d[Qt]=r}else Nu(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Lt(r),d=!1}else d=zx(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=d),d=!0;if(!d)return r.flags&256?(Ti(r),r):(Ti(r),null)}if(Ti(r),(r.flags&128)!==0)return r.lanes=o,r;if(o=u!==null,n=n!==null&&n.memoizedState!==null,o){u=r.child,d=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(d=u.alternate.memoizedState.cachePool.pool);var y=null;u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(y=u.memoizedState.cachePool.pool),y!==d&&(u.flags|=2048)}return o!==n&&o&&(r.child.flags|=8192),_f(r,r.updateQueue),Lt(r),null;case 4:return q(),n===null&&wy(r.stateNode.containerInfo),Lt(r),null;case 10:return Oi(r.type),Lt(r),null;case 19:if(ie(cn),d=r.memoizedState,d===null)return Lt(r),null;if(u=(r.flags&128)!==0,y=d.rendering,y===null)if(u)ec(d,!1);else{if(kt!==0||n!==null&&(n.flags&128)!==0)for(n=r.child;n!==null;){if(y=Of(n),y!==null){for(r.flags|=128,ec(d,!1),n=y.updateQueue,r.updateQueue=n,_f(r,n),r.subtreeFlags=0,n=o,o=r.child;o!==null;)qx(o,n),o=o.sibling;return $(cn,cn.current&1|2),r.child}n=n.sibling}d.tail!==null&&g()>Mf&&(r.flags|=128,u=!0,ec(d,!1),r.lanes=4194304)}else{if(!u)if(n=Of(y),n!==null){if(r.flags|=128,u=!0,n=n.updateQueue,r.updateQueue=n,_f(r,n),ec(d,!0),d.tail===null&&d.tailMode==="hidden"&&!y.alternate&&!gt)return Lt(r),null}else 2*g()-d.renderingStartTime>Mf&&o!==536870912&&(r.flags|=128,u=!0,ec(d,!1),r.lanes=4194304);d.isBackwards?(y.sibling=r.child,r.child=y):(n=d.last,n!==null?n.sibling=y:r.child=y,d.last=y)}return d.tail!==null?(r=d.tail,d.rendering=r,d.tail=r.sibling,d.renderingStartTime=g(),r.sibling=null,n=cn.current,$(cn,u?n&1|2:n&1),r):(Lt(r),null);case 22:case 23:return Ti(r),Sp(),u=r.memoizedState!==null,n!==null?n.memoizedState!==null!==u&&(r.flags|=8192):u&&(r.flags|=8192),u?(o&536870912)!==0&&(r.flags&128)===0&&(Lt(r),r.subtreeFlags&6&&(r.flags|=8192)):Lt(r),o=r.updateQueue,o!==null&&_f(r,o.retryQueue),o=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),u=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),u!==o&&(r.flags|=2048),n!==null&&ie(lo),null;case 24:return o=null,n!==null&&(o=n.memoizedState.cache),r.memoizedState.cache!==o&&(r.flags|=2048),Oi(un),Lt(r),null;case 25:return null;case 30:return null}throw Error(a(156,r.tag))}function a8(n,r){switch(fp(r),r.tag){case 1:return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 3:return Oi(un),q(),n=r.flags,(n&65536)!==0&&(n&128)===0?(r.flags=n&-65537|128,r):null;case 26:case 27:case 5:return P(r),null;case 13:if(Ti(r),n=r.memoizedState,n!==null&&n.dehydrated!==null){if(r.alternate===null)throw Error(a(340));Nu()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 19:return ie(cn),null;case 4:return q(),null;case 10:return Oi(r.type),null;case 22:case 23:return Ti(r),Sp(),n!==null&&ie(lo),n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 24:return Oi(un),null;case 25:return null;default:return null}}function hw(n,r){switch(fp(r),r.tag){case 3:Oi(un),q();break;case 26:case 27:case 5:P(r);break;case 4:q();break;case 13:Ti(r);break;case 19:ie(cn);break;case 10:Oi(r.type);break;case 22:case 23:Ti(r),Sp(),n!==null&&ie(lo);break;case 24:Oi(un)}}function tc(n,r){try{var o=r.updateQueue,u=o!==null?o.lastEffect:null;if(u!==null){var d=u.next;o=d;do{if((o.tag&n)===n){u=void 0;var y=o.create,T=o.inst;u=y(),T.destroy=u}o=o.next}while(o!==d)}}catch(L){Ct(r,r.return,L)}}function ha(n,r,o){try{var u=r.updateQueue,d=u!==null?u.lastEffect:null;if(d!==null){var y=d.next;u=y;do{if((u.tag&n)===n){var T=u.inst,L=T.destroy;if(L!==void 0){T.destroy=void 0,d=r;var ae=o,ve=L;try{ve()}catch(Fe){Ct(d,ae,Fe)}}}u=u.next}while(u!==y)}}catch(Fe){Ct(r,r.return,Fe)}}function pw(n){var r=n.updateQueue;if(r!==null){var o=n.stateNode;try{tE(r,o)}catch(u){Ct(n,n.return,u)}}}function yw(n,r,o){o.props=ho(n.type,n.memoizedProps),o.state=n.memoizedState;try{o.componentWillUnmount()}catch(u){Ct(n,r,u)}}function nc(n,r){try{var o=n.ref;if(o!==null){switch(n.tag){case 26:case 27:case 5:var u=n.stateNode;break;case 30:u=n.stateNode;break;default:u=n.stateNode}typeof o=="function"?n.refCleanup=o(u):o.current=u}}catch(d){Ct(n,r,d)}}function ai(n,r){var o=n.ref,u=n.refCleanup;if(o!==null)if(typeof u=="function")try{u()}catch(d){Ct(n,r,d)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(d){Ct(n,r,d)}else o.current=null}function gw(n){var r=n.type,o=n.memoizedProps,u=n.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":o.autoFocus&&u.focus();break e;case"img":o.src?u.src=o.src:o.srcSet&&(u.srcset=o.srcSet)}}catch(d){Ct(n,n.return,d)}}function Wp(n,r,o){try{var u=n.stateNode;C8(u,n.type,o,r),u[sn]=r}catch(d){Ct(n,n.return,d)}}function mw(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&xa(n.type)||n.tag===4}function ey(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||mw(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&xa(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function ty(n,r,o){var u=n.tag;if(u===5||u===6)n=n.stateNode,r?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(n,r):(r=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,r.appendChild(n),o=o._reactRootContainer,o!=null||r.onclick!==null||(r.onclick=zf));else if(u!==4&&(u===27&&xa(n.type)&&(o=n.stateNode,r=null),n=n.child,n!==null))for(ty(n,r,o),n=n.sibling;n!==null;)ty(n,r,o),n=n.sibling}function Df(n,r,o){var u=n.tag;if(u===5||u===6)n=n.stateNode,r?o.insertBefore(n,r):o.appendChild(n);else if(u!==4&&(u===27&&xa(n.type)&&(o=n.stateNode),n=n.child,n!==null))for(Df(n,r,o),n=n.sibling;n!==null;)Df(n,r,o),n=n.sibling}function Aw(n){var r=n.stateNode,o=n.memoizedProps;try{for(var u=n.type,d=r.attributes;d.length;)r.removeAttributeNode(d[0]);xn(r,u,o),r[Qt]=n,r[sn]=o}catch(y){Ct(n,n.return,y)}}var _i=!1,Kt=!1,ny=!1,bw=typeof WeakSet=="function"?WeakSet:Set,dn=null;function o8(n,r){if(n=n.containerInfo,Cy=Zf,n=Bx(n),ep(n)){if("selectionStart"in n)var o={start:n.selectionStart,end:n.selectionEnd};else e:{o=(o=n.ownerDocument)&&o.defaultView||window;var u=o.getSelection&&o.getSelection();if(u&&u.rangeCount!==0){o=u.anchorNode;var d=u.anchorOffset,y=u.focusNode;u=u.focusOffset;try{o.nodeType,y.nodeType}catch{o=null;break e}var T=0,L=-1,ae=-1,ve=0,Fe=0,Be=n,xe=null;t:for(;;){for(var we;Be!==o||d!==0&&Be.nodeType!==3||(L=T+d),Be!==y||u!==0&&Be.nodeType!==3||(ae=T+u),Be.nodeType===3&&(T+=Be.nodeValue.length),(we=Be.firstChild)!==null;)xe=Be,Be=we;for(;;){if(Be===n)break t;if(xe===o&&++ve===d&&(L=T),xe===y&&++Fe===u&&(ae=T),(we=Be.nextSibling)!==null)break;Be=xe,xe=Be.parentNode}Be=we}o=L===-1||ae===-1?null:{start:L,end:ae}}else o=null}o=o||{start:0,end:0}}else o=null;for(Oy={focusedElem:n,selectionRange:o},Zf=!1,dn=r;dn!==null;)if(r=dn,n=r.child,(r.subtreeFlags&1024)!==0&&n!==null)n.return=r,dn=n;else for(;dn!==null;){switch(r=dn,y=r.alternate,n=r.flags,r.tag){case 0:break;case 11:case 15:break;case 1:if((n&1024)!==0&&y!==null){n=void 0,o=r,d=y.memoizedProps,y=y.memoizedState,u=o.stateNode;try{var Ke=ho(o.type,d,o.elementType===o.type);n=u.getSnapshotBeforeUpdate(Ke,y),u.__reactInternalSnapshotBeforeUpdate=n}catch(Ge){Ct(o,o.return,Ge)}}break;case 3:if((n&1024)!==0){if(n=r.stateNode.containerInfo,o=n.nodeType,o===9)By(n);else if(o===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":By(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(a(163))}if(n=r.sibling,n!==null){n.return=r.return,dn=n;break}dn=r.return}}function vw(n,r,o){var u=o.flags;switch(o.tag){case 0:case 11:case 15:pa(n,o),u&4&&tc(5,o);break;case 1:if(pa(n,o),u&4)if(n=o.stateNode,r===null)try{n.componentDidMount()}catch(T){Ct(o,o.return,T)}else{var d=ho(o.type,r.memoizedProps);r=r.memoizedState;try{n.componentDidUpdate(d,r,n.__reactInternalSnapshotBeforeUpdate)}catch(T){Ct(o,o.return,T)}}u&64&&pw(o),u&512&&nc(o,o.return);break;case 3:if(pa(n,o),u&64&&(n=o.updateQueue,n!==null)){if(r=null,o.child!==null)switch(o.child.tag){case 27:case 5:r=o.child.stateNode;break;case 1:r=o.child.stateNode}try{tE(n,r)}catch(T){Ct(o,o.return,T)}}break;case 27:r===null&&u&4&&Aw(o);case 26:case 5:pa(n,o),r===null&&u&4&&gw(o),u&512&&nc(o,o.return);break;case 12:pa(n,o);break;case 13:pa(n,o),u&4&&ww(n,o),u&64&&(n=o.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(o=y8.bind(null,o),D8(n,o))));break;case 22:if(u=o.memoizedState!==null||_i,!u){r=r!==null&&r.memoizedState!==null||Kt,d=_i;var y=Kt;_i=u,(Kt=r)&&!y?ya(n,o,(o.subtreeFlags&8772)!==0):pa(n,o),_i=d,Kt=y}break;case 30:break;default:pa(n,o)}}function xw(n){var r=n.alternate;r!==null&&(n.alternate=null,xw(r)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(r=n.stateNode,r!==null&&ia(r)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var Dt=null,Gn=!1;function Di(n,r,o){for(o=o.child;o!==null;)Ew(n,r,o),o=o.sibling}function Ew(n,r,o){if(Oe&&typeof Oe.onCommitFiberUnmount=="function")try{Oe.onCommitFiberUnmount(Ee,o)}catch{}switch(o.tag){case 26:Kt||ai(o,r),Di(n,r,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:Kt||ai(o,r);var u=Dt,d=Gn;xa(o.type)&&(Dt=o.stateNode,Gn=!1),Di(n,r,o),fc(o.stateNode),Dt=u,Gn=d;break;case 5:Kt||ai(o,r);case 6:if(u=Dt,d=Gn,Dt=null,Di(n,r,o),Dt=u,Gn=d,Dt!==null)if(Gn)try{(Dt.nodeType===9?Dt.body:Dt.nodeName==="HTML"?Dt.ownerDocument.body:Dt).removeChild(o.stateNode)}catch(y){Ct(o,r,y)}else try{Dt.removeChild(o.stateNode)}catch(y){Ct(o,r,y)}break;case 18:Dt!==null&&(Gn?(n=Dt,l2(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,o.stateNode),bc(n)):l2(Dt,o.stateNode));break;case 4:u=Dt,d=Gn,Dt=o.stateNode.containerInfo,Gn=!0,Di(n,r,o),Dt=u,Gn=d;break;case 0:case 11:case 14:case 15:Kt||ha(2,o,r),Kt||ha(4,o,r),Di(n,r,o);break;case 1:Kt||(ai(o,r),u=o.stateNode,typeof u.componentWillUnmount=="function"&&yw(o,r,u)),Di(n,r,o);break;case 21:Di(n,r,o);break;case 22:Kt=(u=Kt)||o.memoizedState!==null,Di(n,r,o),Kt=u;break;default:Di(n,r,o)}}function ww(n,r){if(r.memoizedState===null&&(n=r.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{bc(n)}catch(o){Ct(r,r.return,o)}}function s8(n){switch(n.tag){case 13:case 19:var r=n.stateNode;return r===null&&(r=n.stateNode=new bw),r;case 22:return n=n.stateNode,r=n._retryCache,r===null&&(r=n._retryCache=new bw),r;default:throw Error(a(435,n.tag))}}function ry(n,r){var o=s8(n);r.forEach(function(u){var d=g8.bind(null,n,u);o.has(u)||(o.add(u),u.then(d,d))})}function ar(n,r){var o=r.deletions;if(o!==null)for(var u=0;u<o.length;u++){var d=o[u],y=n,T=r,L=T;e:for(;L!==null;){switch(L.tag){case 27:if(xa(L.type)){Dt=L.stateNode,Gn=!1;break e}break;case 5:Dt=L.stateNode,Gn=!1;break e;case 3:case 4:Dt=L.stateNode.containerInfo,Gn=!0;break e}L=L.return}if(Dt===null)throw Error(a(160));Ew(y,T,d),Dt=null,Gn=!1,y=d.alternate,y!==null&&(y.return=null),d.return=null}if(r.subtreeFlags&13878)for(r=r.child;r!==null;)Iw(r,n),r=r.sibling}var $r=null;function Iw(n,r){var o=n.alternate,u=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:ar(r,n),or(n),u&4&&(ha(3,n,n.return),tc(3,n),ha(5,n,n.return));break;case 1:ar(r,n),or(n),u&512&&(Kt||o===null||ai(o,o.return)),u&64&&_i&&(n=n.updateQueue,n!==null&&(u=n.callbacks,u!==null&&(o=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=o===null?u:o.concat(u))));break;case 26:var d=$r;if(ar(r,n),or(n),u&512&&(Kt||o===null||ai(o,o.return)),u&4){var y=o!==null?o.memoizedState:null;if(u=n.memoizedState,o===null)if(u===null)if(n.stateNode===null){e:{u=n.type,o=n.memoizedProps,d=d.ownerDocument||d;t:switch(u){case"title":y=d.getElementsByTagName("title")[0],(!y||y[ti]||y[Qt]||y.namespaceURI==="http://www.w3.org/2000/svg"||y.hasAttribute("itemprop"))&&(y=d.createElement(u),d.head.insertBefore(y,d.querySelector("head > title"))),xn(y,u,o),y[Qt]=n,Nt(y),u=y;break e;case"link":var T=A2("link","href",d).get(u+(o.href||""));if(T){for(var L=0;L<T.length;L++)if(y=T[L],y.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&y.getAttribute("rel")===(o.rel==null?null:o.rel)&&y.getAttribute("title")===(o.title==null?null:o.title)&&y.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){T.splice(L,1);break t}}y=d.createElement(u),xn(y,u,o),d.head.appendChild(y);break;case"meta":if(T=A2("meta","content",d).get(u+(o.content||""))){for(L=0;L<T.length;L++)if(y=T[L],y.getAttribute("content")===(o.content==null?null:""+o.content)&&y.getAttribute("name")===(o.name==null?null:o.name)&&y.getAttribute("property")===(o.property==null?null:o.property)&&y.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&y.getAttribute("charset")===(o.charSet==null?null:o.charSet)){T.splice(L,1);break t}}y=d.createElement(u),xn(y,u,o),d.head.appendChild(y);break;default:throw Error(a(468,u))}y[Qt]=n,Nt(y),u=y}n.stateNode=u}else b2(d,n.type,n.stateNode);else n.stateNode=m2(d,u,n.memoizedProps);else y!==u?(y===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):y.count--,u===null?b2(d,n.type,n.stateNode):m2(d,u,n.memoizedProps)):u===null&&n.stateNode!==null&&Wp(n,n.memoizedProps,o.memoizedProps)}break;case 27:ar(r,n),or(n),u&512&&(Kt||o===null||ai(o,o.return)),o!==null&&u&4&&Wp(n,n.memoizedProps,o.memoizedProps);break;case 5:if(ar(r,n),or(n),u&512&&(Kt||o===null||ai(o,o.return)),n.flags&32){d=n.stateNode;try{as(d,"")}catch(we){Ct(n,n.return,we)}}u&4&&n.stateNode!=null&&(d=n.memoizedProps,Wp(n,d,o!==null?o.memoizedProps:d)),u&1024&&(ny=!0);break;case 6:if(ar(r,n),or(n),u&4){if(n.stateNode===null)throw Error(a(162));u=n.memoizedProps,o=n.stateNode;try{o.nodeValue=u}catch(we){Ct(n,n.return,we)}}break;case 3:if(Kf=null,d=$r,$r=Qf(r.containerInfo),ar(r,n),$r=d,or(n),u&4&&o!==null&&o.memoizedState.isDehydrated)try{bc(r.containerInfo)}catch(we){Ct(n,n.return,we)}ny&&(ny=!1,Sw(n));break;case 4:u=$r,$r=Qf(n.stateNode.containerInfo),ar(r,n),or(n),$r=u;break;case 12:ar(r,n),or(n);break;case 13:ar(r,n),or(n),n.child.flags&8192&&n.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(cy=g()),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,ry(n,u)));break;case 22:d=n.memoizedState!==null;var ae=o!==null&&o.memoizedState!==null,ve=_i,Fe=Kt;if(_i=ve||d,Kt=Fe||ae,ar(r,n),Kt=Fe,_i=ve,or(n),u&8192)e:for(r=n.stateNode,r._visibility=d?r._visibility&-2:r._visibility|1,d&&(o===null||ae||_i||Kt||po(n)),o=null,r=n;;){if(r.tag===5||r.tag===26){if(o===null){ae=o=r;try{if(y=ae.stateNode,d)T=y.style,typeof T.setProperty=="function"?T.setProperty("display","none","important"):T.display="none";else{L=ae.stateNode;var Be=ae.memoizedProps.style,xe=Be!=null&&Be.hasOwnProperty("display")?Be.display:null;L.style.display=xe==null||typeof xe=="boolean"?"":(""+xe).trim()}}catch(we){Ct(ae,ae.return,we)}}}else if(r.tag===6){if(o===null){ae=r;try{ae.stateNode.nodeValue=d?"":ae.memoizedProps}catch(we){Ct(ae,ae.return,we)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===n)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===n)break e;for(;r.sibling===null;){if(r.return===null||r.return===n)break e;o===r&&(o=null),r=r.return}o===r&&(o=null),r.sibling.return=r.return,r=r.sibling}u&4&&(u=n.updateQueue,u!==null&&(o=u.retryQueue,o!==null&&(u.retryQueue=null,ry(n,o))));break;case 19:ar(r,n),or(n),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,ry(n,u)));break;case 30:break;case 21:break;default:ar(r,n),or(n)}}function or(n){var r=n.flags;if(r&2){try{for(var o,u=n.return;u!==null;){if(mw(u)){o=u;break}u=u.return}if(o==null)throw Error(a(160));switch(o.tag){case 27:var d=o.stateNode,y=ey(n);Df(n,y,d);break;case 5:var T=o.stateNode;o.flags&32&&(as(T,""),o.flags&=-33);var L=ey(n);Df(n,L,T);break;case 3:case 4:var ae=o.stateNode.containerInfo,ve=ey(n);ty(n,ve,ae);break;default:throw Error(a(161))}}catch(Fe){Ct(n,n.return,Fe)}n.flags&=-3}r&4096&&(n.flags&=-4097)}function Sw(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var r=n;Sw(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),n=n.sibling}}function pa(n,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)vw(n,r.alternate,r),r=r.sibling}function po(n){for(n=n.child;n!==null;){var r=n;switch(r.tag){case 0:case 11:case 14:case 15:ha(4,r,r.return),po(r);break;case 1:ai(r,r.return);var o=r.stateNode;typeof o.componentWillUnmount=="function"&&yw(r,r.return,o),po(r);break;case 27:fc(r.stateNode);case 26:case 5:ai(r,r.return),po(r);break;case 22:r.memoizedState===null&&po(r);break;case 30:po(r);break;default:po(r)}n=n.sibling}}function ya(n,r,o){for(o=o&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var u=r.alternate,d=n,y=r,T=y.flags;switch(y.tag){case 0:case 11:case 15:ya(d,y,o),tc(4,y);break;case 1:if(ya(d,y,o),u=y,d=u.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(ve){Ct(u,u.return,ve)}if(u=y,d=u.updateQueue,d!==null){var L=u.stateNode;try{var ae=d.shared.hiddenCallbacks;if(ae!==null)for(d.shared.hiddenCallbacks=null,d=0;d<ae.length;d++)eE(ae[d],L)}catch(ve){Ct(u,u.return,ve)}}o&&T&64&&pw(y),nc(y,y.return);break;case 27:Aw(y);case 26:case 5:ya(d,y,o),o&&u===null&&T&4&&gw(y),nc(y,y.return);break;case 12:ya(d,y,o);break;case 13:ya(d,y,o),o&&T&4&&ww(d,y);break;case 22:y.memoizedState===null&&ya(d,y,o),nc(y,y.return);break;case 30:break;default:ya(d,y,o)}r=r.sibling}}function iy(n,r){var o=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),n=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(n=r.memoizedState.cachePool.pool),n!==o&&(n!=null&&n.refCount++,o!=null&&$u(o))}function ay(n,r){n=null,r.alternate!==null&&(n=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==n&&(r.refCount++,n!=null&&$u(n))}function oi(n,r,o,u){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)Cw(n,r,o,u),r=r.sibling}function Cw(n,r,o,u){var d=r.flags;switch(r.tag){case 0:case 11:case 15:oi(n,r,o,u),d&2048&&tc(9,r);break;case 1:oi(n,r,o,u);break;case 3:oi(n,r,o,u),d&2048&&(n=null,r.alternate!==null&&(n=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==n&&(r.refCount++,n!=null&&$u(n)));break;case 12:if(d&2048){oi(n,r,o,u),n=r.stateNode;try{var y=r.memoizedProps,T=y.id,L=y.onPostCommit;typeof L=="function"&&L(T,r.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(ae){Ct(r,r.return,ae)}}else oi(n,r,o,u);break;case 13:oi(n,r,o,u);break;case 23:break;case 22:y=r.stateNode,T=r.alternate,r.memoizedState!==null?y._visibility&2?oi(n,r,o,u):rc(n,r):y._visibility&2?oi(n,r,o,u):(y._visibility|=2,Is(n,r,o,u,(r.subtreeFlags&10256)!==0)),d&2048&&iy(T,r);break;case 24:oi(n,r,o,u),d&2048&&ay(r.alternate,r);break;default:oi(n,r,o,u)}}function Is(n,r,o,u,d){for(d=d&&(r.subtreeFlags&10256)!==0,r=r.child;r!==null;){var y=n,T=r,L=o,ae=u,ve=T.flags;switch(T.tag){case 0:case 11:case 15:Is(y,T,L,ae,d),tc(8,T);break;case 23:break;case 22:var Fe=T.stateNode;T.memoizedState!==null?Fe._visibility&2?Is(y,T,L,ae,d):rc(y,T):(Fe._visibility|=2,Is(y,T,L,ae,d)),d&&ve&2048&&iy(T.alternate,T);break;case 24:Is(y,T,L,ae,d),d&&ve&2048&&ay(T.alternate,T);break;default:Is(y,T,L,ae,d)}r=r.sibling}}function rc(n,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var o=n,u=r,d=u.flags;switch(u.tag){case 22:rc(o,u),d&2048&&iy(u.alternate,u);break;case 24:rc(o,u),d&2048&&ay(u.alternate,u);break;default:rc(o,u)}r=r.sibling}}var ic=8192;function Ss(n){if(n.subtreeFlags&ic)for(n=n.child;n!==null;)Ow(n),n=n.sibling}function Ow(n){switch(n.tag){case 26:Ss(n),n.flags&ic&&n.memoizedState!==null&&Q8($r,n.memoizedState,n.memoizedProps);break;case 5:Ss(n);break;case 3:case 4:var r=$r;$r=Qf(n.stateNode.containerInfo),Ss(n),$r=r;break;case 22:n.memoizedState===null&&(r=n.alternate,r!==null&&r.memoizedState!==null?(r=ic,ic=16777216,Ss(n),ic=r):Ss(n));break;default:Ss(n)}}function Fw(n){var r=n.alternate;if(r!==null&&(n=r.child,n!==null)){r.child=null;do r=n.sibling,n.sibling=null,n=r;while(n!==null)}}function ac(n){var r=n.deletions;if((n.flags&16)!==0){if(r!==null)for(var o=0;o<r.length;o++){var u=r[o];dn=u,Bw(u,n)}Fw(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Tw(n),n=n.sibling}function Tw(n){switch(n.tag){case 0:case 11:case 15:ac(n),n.flags&2048&&ha(9,n,n.return);break;case 3:ac(n);break;case 12:ac(n);break;case 22:var r=n.stateNode;n.memoizedState!==null&&r._visibility&2&&(n.return===null||n.return.tag!==13)?(r._visibility&=-3,Uf(n)):ac(n);break;default:ac(n)}}function Uf(n){var r=n.deletions;if((n.flags&16)!==0){if(r!==null)for(var o=0;o<r.length;o++){var u=r[o];dn=u,Bw(u,n)}Fw(n)}for(n=n.child;n!==null;){switch(r=n,r.tag){case 0:case 11:case 15:ha(8,r,r.return),Uf(r);break;case 22:o=r.stateNode,o._visibility&2&&(o._visibility&=-3,Uf(r));break;default:Uf(r)}n=n.sibling}}function Bw(n,r){for(;dn!==null;){var o=dn;switch(o.tag){case 0:case 11:case 15:ha(8,o,r);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var u=o.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:$u(o.memoizedState.cache)}if(u=o.child,u!==null)u.return=o,dn=u;else e:for(o=n;dn!==null;){u=dn;var d=u.sibling,y=u.return;if(xw(u),u===o){dn=null;break e}if(d!==null){d.return=y,dn=d;break e}dn=y}}}var u8={getCacheForType:function(n){var r=Tn(un),o=r.data.get(n);return o===void 0&&(o=n(),r.data.set(n,o)),o}},c8=typeof WeakMap=="function"?WeakMap:Map,At=0,Bt=null,tt=null,lt=0,bt=0,sr=null,ga=!1,Cs=!1,oy=!1,Ui=0,kt=0,ma=0,yo=0,sy=0,Or=0,Os=0,oc=null,Qn=null,uy=!1,cy=0,Mf=1/0,jf=null,Aa=null,vn=0,ba=null,Fs=null,Ts=0,ly=0,fy=null,Rw=null,sc=0,dy=null;function ur(){if((At&2)!==0&&lt!==0)return lt&-lt;if(R.T!==null){var n=gs;return n!==0?n:by()}return Ka()}function _w(){Or===0&&(Or=(lt&536870912)===0||gt?mt():536870912);var n=Cr.current;return n!==null&&(n.flags|=32),Or}function cr(n,r,o){(n===Bt&&(bt===2||bt===9)||n.cancelPendingCommit!==null)&&(Bs(n,0),va(n,lt,Or,!1)),Tt(n,o),((At&2)===0||n!==Bt)&&(n===Bt&&((At&2)===0&&(yo|=o),kt===4&&va(n,lt,Or,!1)),si(n))}function Dw(n,r,o){if((At&6)!==0)throw Error(a(327));var u=!o&&(r&124)===0&&(r&n.expiredLanes)===0||ht(n,r),d=u?d8(n,r):yy(n,r,!0),y=u;do{if(d===0){Cs&&!u&&va(n,r,0,!1);break}else{if(o=n.current.alternate,y&&!l8(o)){d=yy(n,r,!1),y=!1;continue}if(d===2){if(y=r,n.errorRecoveryDisabledLanes&y)var T=0;else T=n.pendingLanes&-536870913,T=T!==0?T:T&536870912?536870912:0;if(T!==0){r=T;e:{var L=n;d=oc;var ae=L.current.memoizedState.isDehydrated;if(ae&&(Bs(L,T).flags|=256),T=yy(L,T,!1),T!==2){if(oy&&!ae){L.errorRecoveryDisabledLanes|=y,yo|=y,d=4;break e}y=Qn,Qn=d,y!==null&&(Qn===null?Qn=y:Qn.push.apply(Qn,y))}d=T}if(y=!1,d!==2)continue}}if(d===1){Bs(n,0),va(n,r,0,!0);break}e:{switch(u=n,y=d,y){case 0:case 1:throw Error(a(345));case 4:if((r&4194048)!==r)break;case 6:va(u,r,Or,!ga);break e;case 2:Qn=null;break;case 3:case 5:break;default:throw Error(a(329))}if((r&62914560)===r&&(d=cy+300-g(),10<d)){if(va(u,r,Or,!ga),ft(u,0,!0)!==0)break e;u.timeoutHandle=u2(Uw.bind(null,u,o,Qn,jf,uy,r,Or,yo,Os,ga,y,2,-0,0),d);break e}Uw(u,o,Qn,jf,uy,r,Or,yo,Os,ga,y,0,-0,0)}}break}while(!0);si(n)}function Uw(n,r,o,u,d,y,T,L,ae,ve,Fe,Be,xe,we){if(n.timeoutHandle=-1,Be=r.subtreeFlags,(Be&8192||(Be&16785408)===16785408)&&(pc={stylesheets:null,count:0,unsuspend:G8},Ow(r),Be=V8(),Be!==null)){n.cancelPendingCommit=Be($w.bind(null,n,r,y,o,u,d,T,L,ae,Fe,1,xe,we)),va(n,y,T,!ve);return}$w(n,r,y,o,u,d,T,L,ae)}function l8(n){for(var r=n;;){var o=r.tag;if((o===0||o===11||o===15)&&r.flags&16384&&(o=r.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var u=0;u<o.length;u++){var d=o[u],y=d.getSnapshot;d=d.value;try{if(!rr(y(),d))return!1}catch{return!1}}if(o=r.child,r.subtreeFlags&16384&&o!==null)o.return=r,r=o;else{if(r===n)break;for(;r.sibling===null;){if(r.return===null||r.return===n)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function va(n,r,o,u){r&=~sy,r&=~yo,n.suspendedLanes|=r,n.pingedLanes&=~r,u&&(n.warmLanes|=r),u=n.expirationTimes;for(var d=r;0<d;){var y=31-Ne(d),T=1<<y;u[y]=-1,d&=~T}o!==0&&jt(n,o,r)}function Pf(){return(At&6)===0?(uc(0),!1):!0}function hy(){if(tt!==null){if(bt===0)var n=tt.return;else n=tt,Ci=uo=null,Bp(n),Es=null,Ju=0,n=tt;for(;n!==null;)hw(n.alternate,n),n=n.return;tt=null}}function Bs(n,r){var o=n.timeoutHandle;o!==-1&&(n.timeoutHandle=-1,F8(o)),o=n.cancelPendingCommit,o!==null&&(n.cancelPendingCommit=null,o()),hy(),Bt=n,tt=o=wi(n.current,null),lt=r,bt=0,sr=null,ga=!1,Cs=ht(n,r),oy=!1,Os=Or=sy=yo=ma=kt=0,Qn=oc=null,uy=!1,(r&8)!==0&&(r|=r&32);var u=n.entangledLanes;if(u!==0)for(n=n.entanglements,u&=r;0<u;){var d=31-Ne(u),y=1<<d;r|=n[d],u&=~y}return Ui=r,af(),o}function Mw(n,r){We=null,R.H=If,r===ku||r===pf?(r=Jx(),bt=3):r===Yx?(r=Jx(),bt=4):bt=r===WE?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,sr=r,tt===null&&(kt=1,Tf(n,Er(r,n.current)))}function jw(){var n=R.H;return R.H=If,n===null?If:n}function Pw(){var n=R.A;return R.A=u8,n}function py(){kt=4,ga||(lt&4194048)!==lt&&Cr.current!==null||(Cs=!0),(ma&134217727)===0&&(yo&134217727)===0||Bt===null||va(Bt,lt,Or,!1)}function yy(n,r,o){var u=At;At|=2;var d=jw(),y=Pw();(Bt!==n||lt!==r)&&(jf=null,Bs(n,r)),r=!1;var T=kt;e:do try{if(bt!==0&&tt!==null){var L=tt,ae=sr;switch(bt){case 8:hy(),T=6;break e;case 3:case 2:case 9:case 6:Cr.current===null&&(r=!0);var ve=bt;if(bt=0,sr=null,Rs(n,L,ae,ve),o&&Cs){T=0;break e}break;default:ve=bt,bt=0,sr=null,Rs(n,L,ae,ve)}}f8(),T=kt;break}catch(Fe){Mw(n,Fe)}while(!0);return r&&n.shellSuspendCounter++,Ci=uo=null,At=u,R.H=d,R.A=y,tt===null&&(Bt=null,lt=0,af()),T}function f8(){for(;tt!==null;)Nw(tt)}function d8(n,r){var o=At;At|=2;var u=jw(),d=Pw();Bt!==n||lt!==r?(jf=null,Mf=g()+500,Bs(n,r)):Cs=ht(n,r);e:do try{if(bt!==0&&tt!==null){r=tt;var y=sr;t:switch(bt){case 1:bt=0,sr=null,Rs(n,r,y,1);break;case 2:case 9:if(Xx(y)){bt=0,sr=null,Lw(r);break}r=function(){bt!==2&&bt!==9||Bt!==n||(bt=7),si(n)},y.then(r,r);break e;case 3:bt=7;break e;case 4:bt=5;break e;case 7:Xx(y)?(bt=0,sr=null,Lw(r)):(bt=0,sr=null,Rs(n,r,y,7));break;case 5:var T=null;switch(tt.tag){case 26:T=tt.memoizedState;case 5:case 27:var L=tt;if(!T||v2(T)){bt=0,sr=null;var ae=L.sibling;if(ae!==null)tt=ae;else{var ve=L.return;ve!==null?(tt=ve,Nf(ve)):tt=null}break t}}bt=0,sr=null,Rs(n,r,y,5);break;case 6:bt=0,sr=null,Rs(n,r,y,6);break;case 8:hy(),kt=6;break e;default:throw Error(a(462))}}h8();break}catch(Fe){Mw(n,Fe)}while(!0);return Ci=uo=null,R.H=u,R.A=d,At=o,tt!==null?0:(Bt=null,lt=0,af(),kt)}function h8(){for(;tt!==null&&!de();)Nw(tt)}function Nw(n){var r=fw(n.alternate,n,Ui);n.memoizedProps=n.pendingProps,r===null?Nf(n):tt=r}function Lw(n){var r=n,o=r.alternate;switch(r.tag){case 15:case 0:r=aw(o,r,r.pendingProps,r.type,void 0,lt);break;case 11:r=aw(o,r,r.pendingProps,r.type.render,r.ref,lt);break;case 5:Bp(r);default:hw(o,r),r=tt=qx(r,Ui),r=fw(o,r,Ui)}n.memoizedProps=n.pendingProps,r===null?Nf(n):tt=r}function Rs(n,r,o,u){Ci=uo=null,Bp(r),Es=null,Ju=0;var d=r.return;try{if(n8(n,d,r,o,lt)){kt=1,Tf(n,Er(o,n.current)),tt=null;return}}catch(y){if(d!==null)throw tt=d,y;kt=1,Tf(n,Er(o,n.current)),tt=null;return}r.flags&32768?(gt||u===1?n=!0:Cs||(lt&536870912)!==0?n=!1:(ga=n=!0,(u===2||u===9||u===3||u===6)&&(u=Cr.current,u!==null&&u.tag===13&&(u.flags|=16384))),qw(r,n)):Nf(r)}function Nf(n){var r=n;do{if((r.flags&32768)!==0){qw(r,ga);return}n=r.return;var o=i8(r.alternate,r,Ui);if(o!==null){tt=o;return}if(r=r.sibling,r!==null){tt=r;return}tt=r=n}while(r!==null);kt===0&&(kt=5)}function qw(n,r){do{var o=a8(n.alternate,n);if(o!==null){o.flags&=32767,tt=o;return}if(o=n.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!r&&(n=n.sibling,n!==null)){tt=n;return}tt=n=o}while(n!==null);kt=6,tt=null}function $w(n,r,o,u,d,y,T,L,ae){n.cancelPendingCommit=null;do Lf();while(vn!==0);if((At&6)!==0)throw Error(a(327));if(r!==null){if(r===n.current)throw Error(a(177));if(y=r.lanes|r.childLanes,y|=ap,$t(n,o,y,T,L,ae),n===Bt&&(tt=Bt=null,lt=0),Fs=r,ba=n,Ts=o,ly=y,fy=d,Rw=u,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,m8(Ae,function(){return Qw(),null})):(n.callbackNode=null,n.callbackPriority=0),u=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||u){u=R.T,R.T=null,d=re.p,re.p=2,T=At,At|=4;try{o8(n,r,o)}finally{At=T,re.p=d,R.T=u}}vn=1,Hw(),kw(),zw()}}function Hw(){if(vn===1){vn=0;var n=ba,r=Fs,o=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||o){o=R.T,R.T=null;var u=re.p;re.p=2;var d=At;At|=4;try{Iw(r,n);var y=Oy,T=Bx(n.containerInfo),L=y.focusedElem,ae=y.selectionRange;if(T!==L&&L&&L.ownerDocument&&Tx(L.ownerDocument.documentElement,L)){if(ae!==null&&ep(L)){var ve=ae.start,Fe=ae.end;if(Fe===void 0&&(Fe=ve),"selectionStart"in L)L.selectionStart=ve,L.selectionEnd=Math.min(Fe,L.value.length);else{var Be=L.ownerDocument||document,xe=Be&&Be.defaultView||window;if(xe.getSelection){var we=xe.getSelection(),Ke=L.textContent.length,Ge=Math.min(ae.start,Ke),It=ae.end===void 0?Ge:Math.min(ae.end,Ke);!we.extend&&Ge>It&&(T=It,It=Ge,Ge=T);var me=Fx(L,Ge),he=Fx(L,It);if(me&&he&&(we.rangeCount!==1||we.anchorNode!==me.node||we.anchorOffset!==me.offset||we.focusNode!==he.node||we.focusOffset!==he.offset)){var be=Be.createRange();be.setStart(me.node,me.offset),we.removeAllRanges(),Ge>It?(we.addRange(be),we.extend(he.node,he.offset)):(be.setEnd(he.node,he.offset),we.addRange(be))}}}}for(Be=[],we=L;we=we.parentNode;)we.nodeType===1&&Be.push({element:we,left:we.scrollLeft,top:we.scrollTop});for(typeof L.focus=="function"&&L.focus(),L=0;L<Be.length;L++){var Te=Be[L];Te.element.scrollLeft=Te.left,Te.element.scrollTop=Te.top}}Zf=!!Cy,Oy=Cy=null}finally{At=d,re.p=u,R.T=o}}n.current=r,vn=2}}function kw(){if(vn===2){vn=0;var n=ba,r=Fs,o=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||o){o=R.T,R.T=null;var u=re.p;re.p=2;var d=At;At|=4;try{vw(n,r.alternate,r)}finally{At=d,re.p=u,R.T=o}}vn=3}}function zw(){if(vn===4||vn===3){vn=0,x();var n=ba,r=Fs,o=Ts,u=Rw;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?vn=5:(vn=0,Fs=ba=null,Gw(n,n.pendingLanes));var d=n.pendingLanes;if(d===0&&(Aa=null),na(o),r=r.stateNode,Oe&&typeof Oe.onCommitFiberRoot=="function")try{Oe.onCommitFiberRoot(Ee,r,void 0,(r.current.flags&128)===128)}catch{}if(u!==null){r=R.T,d=re.p,re.p=2,R.T=null;try{for(var y=n.onRecoverableError,T=0;T<u.length;T++){var L=u[T];y(L.value,{componentStack:L.stack})}}finally{R.T=r,re.p=d}}(Ts&3)!==0&&Lf(),si(n),d=n.pendingLanes,(o&4194090)!==0&&(d&42)!==0?n===dy?sc++:(sc=0,dy=n):sc=0,uc(0)}}function Gw(n,r){(n.pooledCacheLanes&=r)===0&&(r=n.pooledCache,r!=null&&(n.pooledCache=null,$u(r)))}function Lf(n){return Hw(),kw(),zw(),Qw()}function Qw(){if(vn!==5)return!1;var n=ba,r=ly;ly=0;var o=na(Ts),u=R.T,d=re.p;try{re.p=32>o?32:o,R.T=null,o=fy,fy=null;var y=ba,T=Ts;if(vn=0,Fs=ba=null,Ts=0,(At&6)!==0)throw Error(a(331));var L=At;if(At|=4,Tw(y.current),Cw(y,y.current,T,o),At=L,uc(0,!1),Oe&&typeof Oe.onPostCommitFiberRoot=="function")try{Oe.onPostCommitFiberRoot(Ee,y)}catch{}return!0}finally{re.p=d,R.T=u,Gw(n,r)}}function Vw(n,r,o){r=Er(o,r),r=zp(n.stateNode,r,2),n=ca(n,r,2),n!==null&&(Tt(n,2),si(n))}function Ct(n,r,o){if(n.tag===3)Vw(n,n,o);else for(;r!==null;){if(r.tag===3){Vw(r,n,o);break}else if(r.tag===1){var u=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Aa===null||!Aa.has(u))){n=Er(o,n),o=ZE(2),u=ca(r,o,2),u!==null&&(JE(o,u,r,n),Tt(u,2),si(u));break}}r=r.return}}function gy(n,r,o){var u=n.pingCache;if(u===null){u=n.pingCache=new c8;var d=new Set;u.set(r,d)}else d=u.get(r),d===void 0&&(d=new Set,u.set(r,d));d.has(o)||(oy=!0,d.add(o),n=p8.bind(null,n,r,o),r.then(n,n))}function p8(n,r,o){var u=n.pingCache;u!==null&&u.delete(r),n.pingedLanes|=n.suspendedLanes&o,n.warmLanes&=~o,Bt===n&&(lt&o)===o&&(kt===4||kt===3&&(lt&62914560)===lt&&300>g()-cy?(At&2)===0&&Bs(n,0):sy|=o,Os===lt&&(Os=0)),si(n)}function Kw(n,r){r===0&&(r=Mt()),n=ds(n,r),n!==null&&(Tt(n,r),si(n))}function y8(n){var r=n.memoizedState,o=0;r!==null&&(o=r.retryLane),Kw(n,o)}function g8(n,r){var o=0;switch(n.tag){case 13:var u=n.stateNode,d=n.memoizedState;d!==null&&(o=d.retryLane);break;case 19:u=n.stateNode;break;case 22:u=n.stateNode._retryCache;break;default:throw Error(a(314))}u!==null&&u.delete(r),Kw(n,o)}function m8(n,r){return W(n,r)}var qf=null,_s=null,my=!1,$f=!1,Ay=!1,go=0;function si(n){n!==_s&&n.next===null&&(_s===null?qf=_s=n:_s=_s.next=n),$f=!0,my||(my=!0,b8())}function uc(n,r){if(!Ay&&$f){Ay=!0;do for(var o=!1,u=qf;u!==null;){if(n!==0){var d=u.pendingLanes;if(d===0)var y=0;else{var T=u.suspendedLanes,L=u.pingedLanes;y=(1<<31-Ne(42|n)+1)-1,y&=d&~(T&~L),y=y&201326741?y&201326741|1:y?y|2:0}y!==0&&(o=!0,Jw(u,y))}else y=lt,y=ft(u,u===Bt?y:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(y&3)===0||ht(u,y)||(o=!0,Jw(u,y));u=u.next}while(o);Ay=!1}}function A8(){Yw()}function Yw(){$f=my=!1;var n=0;go!==0&&(O8()&&(n=go),go=0);for(var r=g(),o=null,u=qf;u!==null;){var d=u.next,y=Xw(u,r);y===0?(u.next=null,o===null?qf=d:o.next=d,d===null&&(_s=o)):(o=u,(n!==0||(y&3)!==0)&&($f=!0)),u=d}uc(n)}function Xw(n,r){for(var o=n.suspendedLanes,u=n.pingedLanes,d=n.expirationTimes,y=n.pendingLanes&-62914561;0<y;){var T=31-Ne(y),L=1<<T,ae=d[T];ae===-1?((L&o)===0||(L&u)!==0)&&(d[T]=pt(L,r)):ae<=r&&(n.expiredLanes|=L),y&=~L}if(r=Bt,o=lt,o=ft(n,n===r?o:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),u=n.callbackNode,o===0||n===r&&(bt===2||bt===9)||n.cancelPendingCommit!==null)return u!==null&&u!==null&&le(u),n.callbackNode=null,n.callbackPriority=0;if((o&3)===0||ht(n,o)){if(r=o&-o,r===n.callbackPriority)return r;switch(u!==null&&le(u),na(o)){case 2:case 8:o=ee;break;case 32:o=Ae;break;case 268435456:o=Me;break;default:o=Ae}return u=Zw.bind(null,n),o=W(o,u),n.callbackPriority=r,n.callbackNode=o,r}return u!==null&&u!==null&&le(u),n.callbackPriority=2,n.callbackNode=null,2}function Zw(n,r){if(vn!==0&&vn!==5)return n.callbackNode=null,n.callbackPriority=0,null;var o=n.callbackNode;if(Lf()&&n.callbackNode!==o)return null;var u=lt;return u=ft(n,n===Bt?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),u===0?null:(Dw(n,u,r),Xw(n,g()),n.callbackNode!=null&&n.callbackNode===o?Zw.bind(null,n):null)}function Jw(n,r){if(Lf())return null;Dw(n,r,!0)}function b8(){T8(function(){(At&6)!==0?W(S,A8):Yw()})}function by(){return go===0&&(go=mt()),go}function Ww(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:Zl(""+n)}function e2(n,r){var o=r.ownerDocument.createElement("input");return o.name=r.name,o.value=r.value,n.id&&o.setAttribute("form",n.id),r.parentNode.insertBefore(o,r),n=new FormData(n),o.parentNode.removeChild(o),n}function v8(n,r,o,u,d){if(r==="submit"&&o&&o.stateNode===d){var y=Ww((d[sn]||null).action),T=u.submitter;T&&(r=(r=T[sn]||null)?Ww(r.formAction):T.getAttribute("formAction"),r!==null&&(y=r,T=null));var L=new tf("action","action",null,u,d);n.push({event:L,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(go!==0){var ae=T?e2(d,T):new FormData(d);Lp(o,{pending:!0,data:ae,method:d.method,action:y},null,ae)}}else typeof y=="function"&&(L.preventDefault(),ae=T?e2(d,T):new FormData(d),Lp(o,{pending:!0,data:ae,method:d.method,action:y},y,ae))},currentTarget:d}]})}}for(var vy=0;vy<ip.length;vy++){var xy=ip[vy],x8=xy.toLowerCase(),E8=xy[0].toUpperCase()+xy.slice(1);qr(x8,"on"+E8)}qr(Dx,"onAnimationEnd"),qr(Ux,"onAnimationIteration"),qr(Mx,"onAnimationStart"),qr("dblclick","onDoubleClick"),qr("focusin","onFocus"),qr("focusout","onBlur"),qr(L_,"onTransitionRun"),qr(q_,"onTransitionStart"),qr($_,"onTransitionCancel"),qr(jx,"onTransitionEnd"),Lr("onMouseEnter",["mouseout","mouseover"]),Lr("onMouseLeave",["mouseout","mouseover"]),Lr("onPointerEnter",["pointerout","pointerover"]),Lr("onPointerLeave",["pointerout","pointerover"]),br("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),br("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),br("onBeforeInput",["compositionend","keypress","textInput","paste"]),br("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),br("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),br("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var cc="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(" "),w8=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(cc));function t2(n,r){r=(r&4)!==0;for(var o=0;o<n.length;o++){var u=n[o],d=u.event;u=u.listeners;e:{var y=void 0;if(r)for(var T=u.length-1;0<=T;T--){var L=u[T],ae=L.instance,ve=L.currentTarget;if(L=L.listener,ae!==y&&d.isPropagationStopped())break e;y=L,d.currentTarget=ve;try{y(d)}catch(Fe){Ff(Fe)}d.currentTarget=null,y=ae}else for(T=0;T<u.length;T++){if(L=u[T],ae=L.instance,ve=L.currentTarget,L=L.listener,ae!==y&&d.isPropagationStopped())break e;y=L,d.currentTarget=ve;try{y(d)}catch(Fe){Ff(Fe)}d.currentTarget=null,y=ae}}}}function nt(n,r){var o=r[ra];o===void 0&&(o=r[ra]=new Set);var u=n+"__bubble";o.has(u)||(n2(r,n,2,!1),o.add(u))}function Ey(n,r,o){var u=0;r&&(u|=4),n2(o,n,u,r)}var Hf="_reactListening"+Math.random().toString(36).slice(2);function wy(n){if(!n[Hf]){n[Hf]=!0,Xa.forEach(function(o){o!=="selectionchange"&&(w8.has(o)||Ey(o,!1,n),Ey(o,!0,n))});var r=n.nodeType===9?n:n.ownerDocument;r===null||r[Hf]||(r[Hf]=!0,Ey("selectionchange",!1,r))}}function n2(n,r,o,u){switch(C2(r)){case 2:var d=X8;break;case 8:d=Z8;break;default:d=Py}o=d.bind(null,r,o,n),d=void 0,!Gh||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(d=!0),u?d!==void 0?n.addEventListener(r,o,{capture:!0,passive:d}):n.addEventListener(r,o,!0):d!==void 0?n.addEventListener(r,o,{passive:d}):n.addEventListener(r,o,!1)}function Iy(n,r,o,u,d){var y=u;if((r&1)===0&&(r&2)===0&&u!==null)e:for(;;){if(u===null)return;var T=u.tag;if(T===3||T===4){var L=u.stateNode.containerInfo;if(L===d)break;if(T===4)for(T=u.return;T!==null;){var ae=T.tag;if((ae===3||ae===4)&&T.stateNode.containerInfo===d)return;T=T.return}for(;L!==null;){if(T=jr(L),T===null)return;if(ae=T.tag,ae===5||ae===6||ae===26||ae===27){u=y=T;continue e}L=L.parentNode}}u=u.return}cx(function(){var ve=y,Fe=kh(o),Be=[];e:{var xe=Px.get(n);if(xe!==void 0){var we=tf,Ke=n;switch(n){case"keypress":if(Wl(o)===0)break e;case"keydown":case"keyup":we=m_;break;case"focusin":Ke="focus",we=Yh;break;case"focusout":Ke="blur",we=Yh;break;case"beforeblur":case"afterblur":we=Yh;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":we=dx;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":we=a_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":we=v_;break;case Dx:case Ux:case Mx:we=u_;break;case jx:we=E_;break;case"scroll":case"scrollend":we=r_;break;case"wheel":we=I_;break;case"copy":case"cut":case"paste":we=l_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":we=px;break;case"toggle":case"beforetoggle":we=C_}var Ge=(r&4)!==0,It=!Ge&&(n==="scroll"||n==="scrollend"),me=Ge?xe!==null?xe+"Capture":null:xe;Ge=[];for(var he=ve,be;he!==null;){var Te=he;if(be=Te.stateNode,Te=Te.tag,Te!==5&&Te!==26&&Te!==27||be===null||me===null||(Te=Fu(he,me),Te!=null&&Ge.push(lc(he,Te,be))),It)break;he=he.return}0<Ge.length&&(xe=new we(xe,Ke,null,o,Fe),Be.push({event:xe,listeners:Ge}))}}if((r&7)===0){e:{if(xe=n==="mouseover"||n==="pointerover",we=n==="mouseout"||n==="pointerout",xe&&o!==Hh&&(Ke=o.relatedTarget||o.fromElement)&&(jr(Ke)||Ke[Mr]))break e;if((we||xe)&&(xe=Fe.window===Fe?Fe:(xe=Fe.ownerDocument)?xe.defaultView||xe.parentWindow:window,we?(Ke=o.relatedTarget||o.toElement,we=ve,Ke=Ke?jr(Ke):null,Ke!==null&&(It=c(Ke),Ge=Ke.tag,Ke!==It||Ge!==5&&Ge!==27&&Ge!==6)&&(Ke=null)):(we=null,Ke=ve),we!==Ke)){if(Ge=dx,Te="onMouseLeave",me="onMouseEnter",he="mouse",(n==="pointerout"||n==="pointerover")&&(Ge=px,Te="onPointerLeave",me="onPointerEnter",he="pointer"),It=we==null?xe:ni(we),be=Ke==null?xe:ni(Ke),xe=new Ge(Te,he+"leave",we,o,Fe),xe.target=It,xe.relatedTarget=be,Te=null,jr(Fe)===ve&&(Ge=new Ge(me,he+"enter",Ke,o,Fe),Ge.target=be,Ge.relatedTarget=It,Te=Ge),It=Te,we&&Ke)t:{for(Ge=we,me=Ke,he=0,be=Ge;be;be=Ds(be))he++;for(be=0,Te=me;Te;Te=Ds(Te))be++;for(;0<he-be;)Ge=Ds(Ge),he--;for(;0<be-he;)me=Ds(me),be--;for(;he--;){if(Ge===me||me!==null&&Ge===me.alternate)break t;Ge=Ds(Ge),me=Ds(me)}Ge=null}else Ge=null;we!==null&&r2(Be,xe,we,Ge,!1),Ke!==null&&It!==null&&r2(Be,It,Ke,Ge,!0)}}e:{if(xe=ve?ni(ve):window,we=xe.nodeName&&xe.nodeName.toLowerCase(),we==="select"||we==="input"&&xe.type==="file")var $e=Ex;else if(vx(xe))if(wx)$e=j_;else{$e=U_;var et=D_}else we=xe.nodeName,!we||we.toLowerCase()!=="input"||xe.type!=="checkbox"&&xe.type!=="radio"?ve&&$h(ve.elementType)&&($e=Ex):$e=M_;if($e&&($e=$e(n,ve))){xx(Be,$e,o,Fe);break e}et&&et(n,xe,ve),n==="focusout"&&ve&&xe.type==="number"&&ve.memoizedProps.value!=null&&qh(xe,"number",xe.value)}switch(et=ve?ni(ve):window,n){case"focusin":(vx(et)||et.contentEditable==="true")&&(cs=et,tp=ve,ju=null);break;case"focusout":ju=tp=cs=null;break;case"mousedown":np=!0;break;case"contextmenu":case"mouseup":case"dragend":np=!1,Rx(Be,o,Fe);break;case"selectionchange":if(N_)break;case"keydown":case"keyup":Rx(Be,o,Fe)}var He;if(Zh)e:{switch(n){case"compositionstart":var Qe="onCompositionStart";break e;case"compositionend":Qe="onCompositionEnd";break e;case"compositionupdate":Qe="onCompositionUpdate";break e}Qe=void 0}else us?Ax(n,o)&&(Qe="onCompositionEnd"):n==="keydown"&&o.keyCode===229&&(Qe="onCompositionStart");Qe&&(yx&&o.locale!=="ko"&&(us||Qe!=="onCompositionStart"?Qe==="onCompositionEnd"&&us&&(He=lx()):(aa=Fe,Qh="value"in aa?aa.value:aa.textContent,us=!0)),et=kf(ve,Qe),0<et.length&&(Qe=new hx(Qe,n,null,o,Fe),Be.push({event:Qe,listeners:et}),He?Qe.data=He:(He=bx(o),He!==null&&(Qe.data=He)))),(He=F_?T_(n,o):B_(n,o))&&(Qe=kf(ve,"onBeforeInput"),0<Qe.length&&(et=new hx("onBeforeInput","beforeinput",null,o,Fe),Be.push({event:et,listeners:Qe}),et.data=He)),v8(Be,n,ve,o,Fe)}t2(Be,r)})}function lc(n,r,o){return{instance:n,listener:r,currentTarget:o}}function kf(n,r){for(var o=r+"Capture",u=[];n!==null;){var d=n,y=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||y===null||(d=Fu(n,o),d!=null&&u.unshift(lc(n,d,y)),d=Fu(n,r),d!=null&&u.push(lc(n,d,y))),n.tag===3)return u;n=n.return}return[]}function Ds(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function r2(n,r,o,u,d){for(var y=r._reactName,T=[];o!==null&&o!==u;){var L=o,ae=L.alternate,ve=L.stateNode;if(L=L.tag,ae!==null&&ae===u)break;L!==5&&L!==26&&L!==27||ve===null||(ae=ve,d?(ve=Fu(o,y),ve!=null&&T.unshift(lc(o,ve,ae))):d||(ve=Fu(o,y),ve!=null&&T.push(lc(o,ve,ae)))),o=o.return}T.length!==0&&n.push({event:r,listeners:T})}var I8=/\r\n?/g,S8=/\u0000|\uFFFD/g;function i2(n){return(typeof n=="string"?n:""+n).replace(I8,`
38
- `).replace(S8,"")}function a2(n,r){return r=i2(r),i2(n)===r}function zf(){}function wt(n,r,o,u,d,y){switch(o){case"children":typeof u=="string"?r==="body"||r==="textarea"&&u===""||as(n,u):(typeof u=="number"||typeof u=="bigint")&&r!=="body"&&as(n,""+u);break;case"className":Kl(n,"class",u);break;case"tabIndex":Kl(n,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":Kl(n,o,u);break;case"style":sx(n,u,y);break;case"data":if(r!=="object"){Kl(n,"data",u);break}case"src":case"href":if(u===""&&(r!=="a"||o!=="href")){n.removeAttribute(o);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){n.removeAttribute(o);break}u=Zl(""+u),n.setAttribute(o,u);break;case"action":case"formAction":if(typeof u=="function"){n.setAttribute(o,"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}else typeof y=="function"&&(o==="formAction"?(r!=="input"&&wt(n,r,"name",d.name,d,null),wt(n,r,"formEncType",d.formEncType,d,null),wt(n,r,"formMethod",d.formMethod,d,null),wt(n,r,"formTarget",d.formTarget,d,null)):(wt(n,r,"encType",d.encType,d,null),wt(n,r,"method",d.method,d,null),wt(n,r,"target",d.target,d,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){n.removeAttribute(o);break}u=Zl(""+u),n.setAttribute(o,u);break;case"onClick":u!=null&&(n.onclick=zf);break;case"onScroll":u!=null&&nt("scroll",n);break;case"onScrollEnd":u!=null&&nt("scrollend",n);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(a(61));if(o=u.__html,o!=null){if(d.children!=null)throw Error(a(60));n.innerHTML=o}}break;case"multiple":n.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":n.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){n.removeAttribute("xlink:href");break}o=Zl(""+u),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(o,""+u):n.removeAttribute(o);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":u&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(o,""):n.removeAttribute(o);break;case"capture":case"download":u===!0?n.setAttribute(o,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(o,u):n.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?n.setAttribute(o,u):n.removeAttribute(o);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?n.removeAttribute(o):n.setAttribute(o,u);break;case"popover":nt("beforetoggle",n),nt("toggle",n),vi(n,"popover",u);break;case"xlinkActuate":xi(n,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":xi(n,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":xi(n,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":xi(n,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":xi(n,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":xi(n,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":xi(n,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":xi(n,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":xi(n,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":vi(n,"is",u);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=t_.get(o)||o,vi(n,o,u))}}function Sy(n,r,o,u,d,y){switch(o){case"style":sx(n,u,y);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(a(61));if(o=u.__html,o!=null){if(d.children!=null)throw Error(a(60));n.innerHTML=o}}break;case"children":typeof u=="string"?as(n,u):(typeof u=="number"||typeof u=="bigint")&&as(n,""+u);break;case"onScroll":u!=null&&nt("scroll",n);break;case"onScrollEnd":u!=null&&nt("scrollend",n);break;case"onClick":u!=null&&(n.onclick=zf);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Za.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(d=o.endsWith("Capture"),r=o.slice(2,d?o.length-7:void 0),y=n[sn]||null,y=y!=null?y[o]:null,typeof y=="function"&&n.removeEventListener(r,y,d),typeof u=="function")){typeof y!="function"&&y!==null&&(o in n?n[o]=null:n.hasAttribute(o)&&n.removeAttribute(o)),n.addEventListener(r,u,d);break e}o in n?n[o]=u:u===!0?n.setAttribute(o,""):vi(n,o,u)}}}function xn(n,r,o){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":nt("error",n),nt("load",n);var u=!1,d=!1,y;for(y in o)if(o.hasOwnProperty(y)){var T=o[y];if(T!=null)switch(y){case"src":u=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,r));default:wt(n,r,y,T,o,null)}}d&&wt(n,r,"srcSet",o.srcSet,o,null),u&&wt(n,r,"src",o.src,o,null);return;case"input":nt("invalid",n);var L=y=T=d=null,ae=null,ve=null;for(u in o)if(o.hasOwnProperty(u)){var Fe=o[u];if(Fe!=null)switch(u){case"name":d=Fe;break;case"type":T=Fe;break;case"checked":ae=Fe;break;case"defaultChecked":ve=Fe;break;case"value":y=Fe;break;case"defaultValue":L=Fe;break;case"children":case"dangerouslySetInnerHTML":if(Fe!=null)throw Error(a(137,r));break;default:wt(n,r,u,Fe,o,null)}}rx(n,y,L,ae,ve,T,d,!1),Yl(n);return;case"select":nt("invalid",n),u=T=y=null;for(d in o)if(o.hasOwnProperty(d)&&(L=o[d],L!=null))switch(d){case"value":y=L;break;case"defaultValue":T=L;break;case"multiple":u=L;default:wt(n,r,d,L,o,null)}r=y,o=T,n.multiple=!!u,r!=null?is(n,!!u,r,!1):o!=null&&is(n,!!u,o,!0);return;case"textarea":nt("invalid",n),y=d=u=null;for(T in o)if(o.hasOwnProperty(T)&&(L=o[T],L!=null))switch(T){case"value":u=L;break;case"defaultValue":d=L;break;case"children":y=L;break;case"dangerouslySetInnerHTML":if(L!=null)throw Error(a(91));break;default:wt(n,r,T,L,o,null)}ax(n,u,d,y),Yl(n);return;case"option":for(ae in o)if(o.hasOwnProperty(ae)&&(u=o[ae],u!=null))switch(ae){case"selected":n.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:wt(n,r,ae,u,o,null)}return;case"dialog":nt("beforetoggle",n),nt("toggle",n),nt("cancel",n),nt("close",n);break;case"iframe":case"object":nt("load",n);break;case"video":case"audio":for(u=0;u<cc.length;u++)nt(cc[u],n);break;case"image":nt("error",n),nt("load",n);break;case"details":nt("toggle",n);break;case"embed":case"source":case"link":nt("error",n),nt("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ve in o)if(o.hasOwnProperty(ve)&&(u=o[ve],u!=null))switch(ve){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,r));default:wt(n,r,ve,u,o,null)}return;default:if($h(r)){for(Fe in o)o.hasOwnProperty(Fe)&&(u=o[Fe],u!==void 0&&Sy(n,r,Fe,u,o,void 0));return}}for(L in o)o.hasOwnProperty(L)&&(u=o[L],u!=null&&wt(n,r,L,u,o,null))}function C8(n,r,o,u){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,y=null,T=null,L=null,ae=null,ve=null,Fe=null;for(we in o){var Be=o[we];if(o.hasOwnProperty(we)&&Be!=null)switch(we){case"checked":break;case"value":break;case"defaultValue":ae=Be;default:u.hasOwnProperty(we)||wt(n,r,we,null,u,Be)}}for(var xe in u){var we=u[xe];if(Be=o[xe],u.hasOwnProperty(xe)&&(we!=null||Be!=null))switch(xe){case"type":y=we;break;case"name":d=we;break;case"checked":ve=we;break;case"defaultChecked":Fe=we;break;case"value":T=we;break;case"defaultValue":L=we;break;case"children":case"dangerouslySetInnerHTML":if(we!=null)throw Error(a(137,r));break;default:we!==Be&&wt(n,r,xe,we,u,Be)}}Lh(n,T,L,ae,ve,Fe,y,d);return;case"select":we=T=L=xe=null;for(y in o)if(ae=o[y],o.hasOwnProperty(y)&&ae!=null)switch(y){case"value":break;case"multiple":we=ae;default:u.hasOwnProperty(y)||wt(n,r,y,null,u,ae)}for(d in u)if(y=u[d],ae=o[d],u.hasOwnProperty(d)&&(y!=null||ae!=null))switch(d){case"value":xe=y;break;case"defaultValue":L=y;break;case"multiple":T=y;default:y!==ae&&wt(n,r,d,y,u,ae)}r=L,o=T,u=we,xe!=null?is(n,!!o,xe,!1):!!u!=!!o&&(r!=null?is(n,!!o,r,!0):is(n,!!o,o?[]:"",!1));return;case"textarea":we=xe=null;for(L in o)if(d=o[L],o.hasOwnProperty(L)&&d!=null&&!u.hasOwnProperty(L))switch(L){case"value":break;case"children":break;default:wt(n,r,L,null,u,d)}for(T in u)if(d=u[T],y=o[T],u.hasOwnProperty(T)&&(d!=null||y!=null))switch(T){case"value":xe=d;break;case"defaultValue":we=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(a(91));break;default:d!==y&&wt(n,r,T,d,u,y)}ix(n,xe,we);return;case"option":for(var Ke in o)if(xe=o[Ke],o.hasOwnProperty(Ke)&&xe!=null&&!u.hasOwnProperty(Ke))switch(Ke){case"selected":n.selected=!1;break;default:wt(n,r,Ke,null,u,xe)}for(ae in u)if(xe=u[ae],we=o[ae],u.hasOwnProperty(ae)&&xe!==we&&(xe!=null||we!=null))switch(ae){case"selected":n.selected=xe&&typeof xe!="function"&&typeof xe!="symbol";break;default:wt(n,r,ae,xe,u,we)}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 Ge in o)xe=o[Ge],o.hasOwnProperty(Ge)&&xe!=null&&!u.hasOwnProperty(Ge)&&wt(n,r,Ge,null,u,xe);for(ve in u)if(xe=u[ve],we=o[ve],u.hasOwnProperty(ve)&&xe!==we&&(xe!=null||we!=null))switch(ve){case"children":case"dangerouslySetInnerHTML":if(xe!=null)throw Error(a(137,r));break;default:wt(n,r,ve,xe,u,we)}return;default:if($h(r)){for(var It in o)xe=o[It],o.hasOwnProperty(It)&&xe!==void 0&&!u.hasOwnProperty(It)&&Sy(n,r,It,void 0,u,xe);for(Fe in u)xe=u[Fe],we=o[Fe],!u.hasOwnProperty(Fe)||xe===we||xe===void 0&&we===void 0||Sy(n,r,Fe,xe,u,we);return}}for(var me in o)xe=o[me],o.hasOwnProperty(me)&&xe!=null&&!u.hasOwnProperty(me)&&wt(n,r,me,null,u,xe);for(Be in u)xe=u[Be],we=o[Be],!u.hasOwnProperty(Be)||xe===we||xe==null&&we==null||wt(n,r,Be,xe,u,we)}var Cy=null,Oy=null;function Gf(n){return n.nodeType===9?n:n.ownerDocument}function o2(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function s2(n,r){if(n===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&r==="foreignObject"?0:n}function Fy(n,r){return n==="textarea"||n==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var Ty=null;function O8(){var n=window.event;return n&&n.type==="popstate"?n===Ty?!1:(Ty=n,!0):(Ty=null,!1)}var u2=typeof setTimeout=="function"?setTimeout:void 0,F8=typeof clearTimeout=="function"?clearTimeout:void 0,c2=typeof Promise=="function"?Promise:void 0,T8=typeof queueMicrotask=="function"?queueMicrotask:typeof c2<"u"?function(n){return c2.resolve(null).then(n).catch(B8)}:u2;function B8(n){setTimeout(function(){throw n})}function xa(n){return n==="head"}function l2(n,r){var o=r,u=0,d=0;do{var y=o.nextSibling;if(n.removeChild(o),y&&y.nodeType===8)if(o=y.data,o==="/$"){if(0<u&&8>u){o=u;var T=n.ownerDocument;if(o&1&&fc(T.documentElement),o&2&&fc(T.body),o&4)for(o=T.head,fc(o),T=o.firstChild;T;){var L=T.nextSibling,ae=T.nodeName;T[ti]||ae==="SCRIPT"||ae==="STYLE"||ae==="LINK"&&T.rel.toLowerCase()==="stylesheet"||o.removeChild(T),T=L}}if(d===0){n.removeChild(y),bc(r);return}d--}else o==="$"||o==="$?"||o==="$!"?d++:u=o.charCodeAt(0)-48;else u=0;o=y}while(o);bc(r)}function By(n){var r=n.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var o=r;switch(r=r.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":By(o),ia(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}n.removeChild(o)}}function R8(n,r,o,u){for(;n.nodeType===1;){var d=o;if(n.nodeName.toLowerCase()!==r.toLowerCase()){if(!u&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(u){if(!n[ti])switch(r){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(y=n.getAttribute("rel"),y==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(y!==d.rel||n.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||n.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||n.getAttribute("title")!==(d.title==null?null:d.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(y=n.getAttribute("src"),(y!==(d.src==null?null:d.src)||n.getAttribute("type")!==(d.type==null?null:d.type)||n.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&y&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(r==="input"&&n.type==="hidden"){var y=d.name==null?null:""+d.name;if(d.type==="hidden"&&n.getAttribute("name")===y)return n}else return n;if(n=Hr(n.nextSibling),n===null)break}return null}function _8(n,r,o){if(r==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!o||(n=Hr(n.nextSibling),n===null))return null;return n}function Ry(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState==="complete"}function D8(n,r){var o=n.ownerDocument;if(n.data!=="$?"||o.readyState==="complete")r();else{var u=function(){r(),o.removeEventListener("DOMContentLoaded",u)};o.addEventListener("DOMContentLoaded",u),n._reactRetry=u}}function Hr(n){for(;n!=null;n=n.nextSibling){var r=n.nodeType;if(r===1||r===3)break;if(r===8){if(r=n.data,r==="$"||r==="$!"||r==="$?"||r==="F!"||r==="F")break;if(r==="/$")return null}}return n}var _y=null;function f2(n){n=n.previousSibling;for(var r=0;n;){if(n.nodeType===8){var o=n.data;if(o==="$"||o==="$!"||o==="$?"){if(r===0)return n;r--}else o==="/$"&&r++}n=n.previousSibling}return null}function d2(n,r,o){switch(r=Gf(o),n){case"html":if(n=r.documentElement,!n)throw Error(a(452));return n;case"head":if(n=r.head,!n)throw Error(a(453));return n;case"body":if(n=r.body,!n)throw Error(a(454));return n;default:throw Error(a(451))}}function fc(n){for(var r=n.attributes;r.length;)n.removeAttributeNode(r[0]);ia(n)}var Fr=new Map,h2=new Set;function Qf(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var Mi=re.d;re.d={f:U8,r:M8,D:j8,C:P8,L:N8,m:L8,X:$8,S:q8,M:H8};function U8(){var n=Mi.f(),r=Pf();return n||r}function M8(n){var r=Pr(n);r!==null&&r.tag===5&&r.type==="form"?DE(r):Mi.r(n)}var Us=typeof document>"u"?null:document;function p2(n,r,o){var u=Us;if(u&&typeof r=="string"&&r){var d=xr(r);d='link[rel="'+n+'"][href="'+d+'"]',typeof o=="string"&&(d+='[crossorigin="'+o+'"]'),h2.has(d)||(h2.add(d),n={rel:n,crossOrigin:o,href:r},u.querySelector(d)===null&&(r=u.createElement("link"),xn(r,"link",n),Nt(r),u.head.appendChild(r)))}}function j8(n){Mi.D(n),p2("dns-prefetch",n,null)}function P8(n,r){Mi.C(n,r),p2("preconnect",n,r)}function N8(n,r,o){Mi.L(n,r,o);var u=Us;if(u&&n&&r){var d='link[rel="preload"][as="'+xr(r)+'"]';r==="image"&&o&&o.imageSrcSet?(d+='[imagesrcset="'+xr(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(d+='[imagesizes="'+xr(o.imageSizes)+'"]')):d+='[href="'+xr(n)+'"]';var y=d;switch(r){case"style":y=Ms(n);break;case"script":y=js(n)}Fr.has(y)||(n=b({rel:"preload",href:r==="image"&&o&&o.imageSrcSet?void 0:n,as:r},o),Fr.set(y,n),u.querySelector(d)!==null||r==="style"&&u.querySelector(dc(y))||r==="script"&&u.querySelector(hc(y))||(r=u.createElement("link"),xn(r,"link",n),Nt(r),u.head.appendChild(r)))}}function L8(n,r){Mi.m(n,r);var o=Us;if(o&&n){var u=r&&typeof r.as=="string"?r.as:"script",d='link[rel="modulepreload"][as="'+xr(u)+'"][href="'+xr(n)+'"]',y=d;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=js(n)}if(!Fr.has(y)&&(n=b({rel:"modulepreload",href:n},r),Fr.set(y,n),o.querySelector(d)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(hc(y)))return}u=o.createElement("link"),xn(u,"link",n),Nt(u),o.head.appendChild(u)}}}function q8(n,r,o){Mi.S(n,r,o);var u=Us;if(u&&n){var d=Nr(u).hoistableStyles,y=Ms(n);r=r||"default";var T=d.get(y);if(!T){var L={loading:0,preload:null};if(T=u.querySelector(dc(y)))L.loading=5;else{n=b({rel:"stylesheet",href:n,"data-precedence":r},o),(o=Fr.get(y))&&Dy(n,o);var ae=T=u.createElement("link");Nt(ae),xn(ae,"link",n),ae._p=new Promise(function(ve,Fe){ae.onload=ve,ae.onerror=Fe}),ae.addEventListener("load",function(){L.loading|=1}),ae.addEventListener("error",function(){L.loading|=2}),L.loading|=4,Vf(T,r,u)}T={type:"stylesheet",instance:T,count:1,state:L},d.set(y,T)}}}function $8(n,r){Mi.X(n,r);var o=Us;if(o&&n){var u=Nr(o).hoistableScripts,d=js(n),y=u.get(d);y||(y=o.querySelector(hc(d)),y||(n=b({src:n,async:!0},r),(r=Fr.get(d))&&Uy(n,r),y=o.createElement("script"),Nt(y),xn(y,"link",n),o.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},u.set(d,y))}}function H8(n,r){Mi.M(n,r);var o=Us;if(o&&n){var u=Nr(o).hoistableScripts,d=js(n),y=u.get(d);y||(y=o.querySelector(hc(d)),y||(n=b({src:n,async:!0,type:"module"},r),(r=Fr.get(d))&&Uy(n,r),y=o.createElement("script"),Nt(y),xn(y,"link",n),o.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},u.set(d,y))}}function y2(n,r,o,u){var d=(d=k.current)?Qf(d):null;if(!d)throw Error(a(446));switch(n){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(r=Ms(o.href),o=Nr(d).hoistableStyles,u=o.get(r),u||(u={type:"style",instance:null,count:0,state:null},o.set(r,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){n=Ms(o.href);var y=Nr(d).hoistableStyles,T=y.get(n);if(T||(d=d.ownerDocument||d,T={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},y.set(n,T),(y=d.querySelector(dc(n)))&&!y._p&&(T.instance=y,T.state.loading=5),Fr.has(n)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},Fr.set(n,o),y||k8(d,n,o,T.state))),r&&u===null)throw Error(a(528,""));return T}if(r&&u!==null)throw Error(a(529,""));return null;case"script":return r=o.async,o=o.src,typeof o=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=js(o),o=Nr(d).hoistableScripts,u=o.get(r),u||(u={type:"script",instance:null,count:0,state:null},o.set(r,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,n))}}function Ms(n){return'href="'+xr(n)+'"'}function dc(n){return'link[rel="stylesheet"]['+n+"]"}function g2(n){return b({},n,{"data-precedence":n.precedence,precedence:null})}function k8(n,r,o,u){n.querySelector('link[rel="preload"][as="style"]['+r+"]")?u.loading=1:(r=n.createElement("link"),u.preload=r,r.addEventListener("load",function(){return u.loading|=1}),r.addEventListener("error",function(){return u.loading|=2}),xn(r,"link",o),Nt(r),n.head.appendChild(r))}function js(n){return'[src="'+xr(n)+'"]'}function hc(n){return"script[async]"+n}function m2(n,r,o){if(r.count++,r.instance===null)switch(r.type){case"style":var u=n.querySelector('style[data-href~="'+xr(o.href)+'"]');if(u)return r.instance=u,Nt(u),u;var d=b({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return u=(n.ownerDocument||n).createElement("style"),Nt(u),xn(u,"style",d),Vf(u,o.precedence,n),r.instance=u;case"stylesheet":d=Ms(o.href);var y=n.querySelector(dc(d));if(y)return r.state.loading|=4,r.instance=y,Nt(y),y;u=g2(o),(d=Fr.get(d))&&Dy(u,d),y=(n.ownerDocument||n).createElement("link"),Nt(y);var T=y;return T._p=new Promise(function(L,ae){T.onload=L,T.onerror=ae}),xn(y,"link",u),r.state.loading|=4,Vf(y,o.precedence,n),r.instance=y;case"script":return y=js(o.src),(d=n.querySelector(hc(y)))?(r.instance=d,Nt(d),d):(u=o,(d=Fr.get(y))&&(u=b({},o),Uy(u,d)),n=n.ownerDocument||n,d=n.createElement("script"),Nt(d),xn(d,"link",u),n.head.appendChild(d),r.instance=d);case"void":return null;default:throw Error(a(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(u=r.instance,r.state.loading|=4,Vf(u,o.precedence,n));return r.instance}function Vf(n,r,o){for(var u=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=u.length?u[u.length-1]:null,y=d,T=0;T<u.length;T++){var L=u[T];if(L.dataset.precedence===r)y=L;else if(y!==d)break}y?y.parentNode.insertBefore(n,y.nextSibling):(r=o.nodeType===9?o.head:o,r.insertBefore(n,r.firstChild))}function Dy(n,r){n.crossOrigin==null&&(n.crossOrigin=r.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=r.referrerPolicy),n.title==null&&(n.title=r.title)}function Uy(n,r){n.crossOrigin==null&&(n.crossOrigin=r.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=r.referrerPolicy),n.integrity==null&&(n.integrity=r.integrity)}var Kf=null;function A2(n,r,o){if(Kf===null){var u=new Map,d=Kf=new Map;d.set(o,u)}else d=Kf,u=d.get(o),u||(u=new Map,d.set(o,u));if(u.has(n))return u;for(u.set(n,null),o=o.getElementsByTagName(n),d=0;d<o.length;d++){var y=o[d];if(!(y[ti]||y[Qt]||n==="link"&&y.getAttribute("rel")==="stylesheet")&&y.namespaceURI!=="http://www.w3.org/2000/svg"){var T=y.getAttribute(r)||"";T=n+T;var L=u.get(T);L?L.push(y):u.set(T,[y])}}return u}function b2(n,r,o){n=n.ownerDocument||n,n.head.insertBefore(o,r==="title"?n.querySelector("head > title"):null)}function z8(n,r,o){if(o===1||r.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;switch(r.rel){case"stylesheet":return n=r.disabled,typeof r.precedence=="string"&&n==null;default:return!0}case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function v2(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}var pc=null;function G8(){}function Q8(n,r,o){if(pc===null)throw Error(a(475));var u=pc;if(r.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var d=Ms(o.href),y=n.querySelector(dc(d));if(y){n=y._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(u.count++,u=Yf.bind(u),n.then(u,u)),r.state.loading|=4,r.instance=y,Nt(y);return}y=n.ownerDocument||n,o=g2(o),(d=Fr.get(d))&&Dy(o,d),y=y.createElement("link"),Nt(y);var T=y;T._p=new Promise(function(L,ae){T.onload=L,T.onerror=ae}),xn(y,"link",o),r.instance=y}u.stylesheets===null&&(u.stylesheets=new Map),u.stylesheets.set(r,n),(n=r.state.preload)&&(r.state.loading&3)===0&&(u.count++,r=Yf.bind(u),n.addEventListener("load",r),n.addEventListener("error",r))}}function V8(){if(pc===null)throw Error(a(475));var n=pc;return n.stylesheets&&n.count===0&&My(n,n.stylesheets),0<n.count?function(r){var o=setTimeout(function(){if(n.stylesheets&&My(n,n.stylesheets),n.unsuspend){var u=n.unsuspend;n.unsuspend=null,u()}},6e4);return n.unsuspend=r,function(){n.unsuspend=null,clearTimeout(o)}}:null}function Yf(){if(this.count--,this.count===0){if(this.stylesheets)My(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var Xf=null;function My(n,r){n.stylesheets=null,n.unsuspend!==null&&(n.count++,Xf=new Map,r.forEach(K8,n),Xf=null,Yf.call(n))}function K8(n,r){if(!(r.state.loading&4)){var o=Xf.get(n);if(o)var u=o.get(null);else{o=new Map,Xf.set(n,o);for(var d=n.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y<d.length;y++){var T=d[y];(T.nodeName==="LINK"||T.getAttribute("media")!=="not all")&&(o.set(T.dataset.precedence,T),u=T)}u&&o.set(null,u)}d=r.instance,T=d.getAttribute("data-precedence"),y=o.get(T)||u,y===u&&o.set(null,d),o.set(T,d),this.count++,u=Yf.bind(this),d.addEventListener("load",u),d.addEventListener("error",u),y?y.parentNode.insertBefore(d,y.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(d,n.firstChild)),r.state.loading|=4}}var yc={$$typeof:M,Provider:null,Consumer:null,_currentValue:fe,_currentValue2:fe,_threadCount:0};function Y8(n,r,o,u,d,y,T,L){this.tag=1,this.containerInfo=n,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=Rt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Rt(0),this.hiddenUpdates=Rt(null),this.identifierPrefix=u,this.onUncaughtError=d,this.onCaughtError=y,this.onRecoverableError=T,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=L,this.incompleteTransitions=new Map}function x2(n,r,o,u,d,y,T,L,ae,ve,Fe,Be){return n=new Y8(n,r,o,T,L,ae,ve,Be),r=1,y===!0&&(r|=24),y=ir(3,null,null,r),n.current=y,y.stateNode=n,r=gp(),r.refCount++,n.pooledCache=r,r.refCount++,y.memoizedState={element:u,isDehydrated:o,cache:r},vp(y),n}function E2(n){return n?(n=hs,n):hs}function w2(n,r,o,u,d,y){d=E2(d),u.context===null?u.context=d:u.pendingContext=d,u=ua(r),u.payload={element:o},y=y===void 0?null:y,y!==null&&(u.callback=y),o=ca(n,u,r),o!==null&&(cr(o,n,r),Gu(o,n,r))}function I2(n,r){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var o=n.retryLane;n.retryLane=o!==0&&o<r?o:r}}function jy(n,r){I2(n,r),(n=n.alternate)&&I2(n,r)}function S2(n){if(n.tag===13){var r=ds(n,67108864);r!==null&&cr(r,n,67108864),jy(n,67108864)}}var Zf=!0;function X8(n,r,o,u){var d=R.T;R.T=null;var y=re.p;try{re.p=2,Py(n,r,o,u)}finally{re.p=y,R.T=d}}function Z8(n,r,o,u){var d=R.T;R.T=null;var y=re.p;try{re.p=8,Py(n,r,o,u)}finally{re.p=y,R.T=d}}function Py(n,r,o,u){if(Zf){var d=Ny(u);if(d===null)Iy(n,r,u,Jf,o),O2(n,u);else if(W8(d,n,r,o,u))u.stopPropagation();else if(O2(n,u),r&4&&-1<J8.indexOf(n)){for(;d!==null;){var y=Pr(d);if(y!==null)switch(y.tag){case 3:if(y=y.stateNode,y.current.memoizedState.isDehydrated){var T=ut(y.pendingLanes);if(T!==0){var L=y;for(L.pendingLanes|=2,L.entangledLanes|=2;T;){var ae=1<<31-Ne(T);L.entanglements[1]|=ae,T&=~ae}si(y),(At&6)===0&&(Mf=g()+500,uc(0))}}break;case 13:L=ds(y,2),L!==null&&cr(L,y,2),Pf(),jy(y,2)}if(y=Ny(u),y===null&&Iy(n,r,u,Jf,o),y===d)break;d=y}d!==null&&u.stopPropagation()}else Iy(n,r,u,null,o)}}function Ny(n){return n=kh(n),Ly(n)}var Jf=null;function Ly(n){if(Jf=null,n=jr(n),n!==null){var r=c(n);if(r===null)n=null;else{var o=r.tag;if(o===13){if(n=l(r),n!==null)return n;n=null}else if(o===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;n=null}else r!==n&&(n=null)}}return Jf=n,null}function C2(n){switch(n){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(m()){case S:return 2;case ee:return 8;case Ae:case Se:return 32;case Me:return 268435456;default:return 32}default:return 32}}var qy=!1,Ea=null,wa=null,Ia=null,gc=new Map,mc=new Map,Sa=[],J8="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 O2(n,r){switch(n){case"focusin":case"focusout":Ea=null;break;case"dragenter":case"dragleave":wa=null;break;case"mouseover":case"mouseout":Ia=null;break;case"pointerover":case"pointerout":gc.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":mc.delete(r.pointerId)}}function Ac(n,r,o,u,d,y){return n===null||n.nativeEvent!==y?(n={blockedOn:r,domEventName:o,eventSystemFlags:u,nativeEvent:y,targetContainers:[d]},r!==null&&(r=Pr(r),r!==null&&S2(r)),n):(n.eventSystemFlags|=u,r=n.targetContainers,d!==null&&r.indexOf(d)===-1&&r.push(d),n)}function W8(n,r,o,u,d){switch(r){case"focusin":return Ea=Ac(Ea,n,r,o,u,d),!0;case"dragenter":return wa=Ac(wa,n,r,o,u,d),!0;case"mouseover":return Ia=Ac(Ia,n,r,o,u,d),!0;case"pointerover":var y=d.pointerId;return gc.set(y,Ac(gc.get(y)||null,n,r,o,u,d)),!0;case"gotpointercapture":return y=d.pointerId,mc.set(y,Ac(mc.get(y)||null,n,r,o,u,d)),!0}return!1}function F2(n){var r=jr(n.target);if(r!==null){var o=c(r);if(o!==null){if(r=o.tag,r===13){if(r=l(o),r!==null){n.blockedOn=r,Jo(n.priority,function(){if(o.tag===13){var u=ur();u=_t(u);var d=ds(o,u);d!==null&&cr(d,o,u),jy(o,u)}});return}}else if(r===3&&o.stateNode.current.memoizedState.isDehydrated){n.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Wf(n){if(n.blockedOn!==null)return!1;for(var r=n.targetContainers;0<r.length;){var o=Ny(n.nativeEvent);if(o===null){o=n.nativeEvent;var u=new o.constructor(o.type,o);Hh=u,o.target.dispatchEvent(u),Hh=null}else return r=Pr(o),r!==null&&S2(r),n.blockedOn=o,!1;r.shift()}return!0}function T2(n,r,o){Wf(n)&&o.delete(r)}function e4(){qy=!1,Ea!==null&&Wf(Ea)&&(Ea=null),wa!==null&&Wf(wa)&&(wa=null),Ia!==null&&Wf(Ia)&&(Ia=null),gc.forEach(T2),mc.forEach(T2)}function ed(n,r){n.blockedOn===r&&(n.blockedOn=null,qy||(qy=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,e4)))}var td=null;function B2(n){td!==n&&(td=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){td===n&&(td=null);for(var r=0;r<n.length;r+=3){var o=n[r],u=n[r+1],d=n[r+2];if(typeof u!="function"){if(Ly(u||o)===null)continue;break}var y=Pr(o);y!==null&&(n.splice(r,3),r-=3,Lp(y,{pending:!0,data:d,method:o.method,action:u},u,d))}}))}function bc(n){function r(ae){return ed(ae,n)}Ea!==null&&ed(Ea,n),wa!==null&&ed(wa,n),Ia!==null&&ed(Ia,n),gc.forEach(r),mc.forEach(r);for(var o=0;o<Sa.length;o++){var u=Sa[o];u.blockedOn===n&&(u.blockedOn=null)}for(;0<Sa.length&&(o=Sa[0],o.blockedOn===null);)F2(o),o.blockedOn===null&&Sa.shift();if(o=(n.ownerDocument||n).$$reactFormReplay,o!=null)for(u=0;u<o.length;u+=3){var d=o[u],y=o[u+1],T=d[sn]||null;if(typeof y=="function")T||B2(o);else if(T){var L=null;if(y&&y.hasAttribute("formAction")){if(d=y,T=y[sn]||null)L=T.formAction;else if(Ly(d)!==null)continue}else L=T.action;typeof L=="function"?o[u+1]=L:(o.splice(u,3),u-=3),B2(o)}}}function $y(n){this._internalRoot=n}nd.prototype.render=$y.prototype.render=function(n){var r=this._internalRoot;if(r===null)throw Error(a(409));var o=r.current,u=ur();w2(o,u,n,r,null,null)},nd.prototype.unmount=$y.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var r=n.containerInfo;w2(n.current,2,null,n,null,null),Pf(),r[Mr]=null}};function nd(n){this._internalRoot=n}nd.prototype.unstable_scheduleHydration=function(n){if(n){var r=Ka();n={blockedOn:null,target:n,priority:r};for(var o=0;o<Sa.length&&r!==0&&r<Sa[o].priority;o++);Sa.splice(o,0,n),o===0&&F2(n)}};var R2=t.version;if(R2!=="19.1.1")throw Error(a(527,R2,"19.1.1"));re.findDOMNode=function(n){var r=n._reactInternals;if(r===void 0)throw typeof n.render=="function"?Error(a(188)):(n=Object.keys(n).join(","),Error(a(268,n)));return n=p(r),n=n!==null?h(n):null,n=n===null?null:n.stateNode,n};var t4={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var rd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rd.isDisabled&&rd.supportsFiber)try{Ee=rd.inject(t4),Oe=rd}catch{}}return Ec.createRoot=function(n,r){if(!s(n))throw Error(a(299));var o=!1,u="",d=VE,y=KE,T=YE,L=null;return r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(u=r.identifierPrefix),r.onUncaughtError!==void 0&&(d=r.onUncaughtError),r.onCaughtError!==void 0&&(y=r.onCaughtError),r.onRecoverableError!==void 0&&(T=r.onRecoverableError),r.unstable_transitionCallbacks!==void 0&&(L=r.unstable_transitionCallbacks)),r=x2(n,1,!1,null,null,o,u,d,y,T,L,null),n[Mr]=r.current,wy(n),new $y(r)},Ec.hydrateRoot=function(n,r,o){if(!s(n))throw Error(a(299));var u=!1,d="",y=VE,T=KE,L=YE,ae=null,ve=null;return o!=null&&(o.unstable_strictMode===!0&&(u=!0),o.identifierPrefix!==void 0&&(d=o.identifierPrefix),o.onUncaughtError!==void 0&&(y=o.onUncaughtError),o.onCaughtError!==void 0&&(T=o.onCaughtError),o.onRecoverableError!==void 0&&(L=o.onRecoverableError),o.unstable_transitionCallbacks!==void 0&&(ae=o.unstable_transitionCallbacks),o.formState!==void 0&&(ve=o.formState)),r=x2(n,1,!0,r,o??null,u,d,y,T,L,ae,ve),r.context=E2(null),o=r.current,u=ur(),u=_t(u),d=ua(u),d.callback=null,ca(o,d,u),o=u,r.current.lanes=o,Tt(r,o),si(r),n[Mr]=r.current,wy(n),new nd(r)},Ec.version="19.1.1",Ec}var Q2;function y4(){if(Q2)return Qy.exports;Q2=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Qy.exports=p4(),Qy.exports}var g4=y4(),m4=QT();function Bc({isOpen:e,onClose:t,title:i,children:a,className:s,url:c}){Re.useEffect(()=>{if(e){const p=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=p}}},[e]);const l=()=>{var p;c&&((p=globalThis==null?void 0:globalThis.open)==null||p.call(globalThis,c,"_blank","noopener,noreferrer"),t())};if(!e)return null;const f=J.jsx("div",{className:"modal-overlay",onClick:t,children:J.jsxs("div",{className:`modal-content ${s}`,onClick:p=>p.stopPropagation(),children:[J.jsxs("div",{className:"modal-header",children:[J.jsx("h2",{className:"modal-title",children:i}),J.jsxs("div",{className:"modal-header-actions",children:[c&&J.jsx("button",{className:"modal-open-new-window",onClick:l,"aria-label":"Open in new window",title:"Open in new window",type:"button",children:J.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[J.jsx("path",{d:"M18 13v6a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),J.jsx("polyline",{points:"15 3 21 3 21 9"}),J.jsx("line",{x1:"10",y1:"14",x2:"21",y2:"3"})]})}),J.jsx("button",{className:"modal-close",onClick:t,type:"button",children:"×"})]})]}),J.jsx("div",{className:"modal-body",children:a})]})});return typeof document<"u"&&document.body?m4.createPortal(f,document.body):f}const Ps=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function kd(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function kc(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function Ki(e,...t){if(!kd(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function VT(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");kc(e.outputLen),kc(e.blockLen)}function Ys(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function KT(e,t){Ki(e);const i=t.outputLen;if(e.length<i)throw new Error("digestInto() expects output buffer of length at least "+i)}function A4(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function Xs(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Xy(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function ui(e,t){return e<<32-t|e>>>t}const b4=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function v4(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function x4(e){for(let t=0;t<e.length;t++)e[t]=v4(e[t]);return e}const V2=b4?e=>e:x4,YT=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",E4=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function ks(e){if(Ki(e),YT)return e.toHex();let t="";for(let i=0;i<e.length;i++)t+=E4[e[i]];return t}const Pi={_0:48,_9:57,A:65,F:70,a:97,f:102};function K2(e){if(e>=Pi._0&&e<=Pi._9)return e-Pi._0;if(e>=Pi.A&&e<=Pi.F)return e-(Pi.A-10);if(e>=Pi.a&&e<=Pi.f)return e-(Pi.a-10)}function Td(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(YT)return Uint8Array.fromHex(e);const t=e.length,i=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const a=new Uint8Array(i);for(let s=0,c=0;s<i;s++,c+=2){const l=K2(e.charCodeAt(c)),f=K2(e.charCodeAt(c+1));if(l===void 0||f===void 0){const p=e[c]+e[c+1];throw new Error('hex string expected, got non-hex character "'+p+'" at index '+c)}a[s]=l*16+f}return a}function w4(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function zd(e){return typeof e=="string"&&(e=w4(e)),Ki(e),e}function Ua(...e){let t=0;for(let a=0;a<e.length;a++){const s=e[a];Ki(s),t+=s.length}const i=new Uint8Array(t);for(let a=0,s=0;a<e.length;a++){const c=e[a];i.set(c,s),s+=c.length}return i}let b1=class{};function XT(e){const t=a=>e().update(zd(a)).digest(),i=e();return t.outputLen=i.outputLen,t.blockLen=i.blockLen,t.create=()=>e(),t}function ZT(e=32){if(Ps&&typeof Ps.getRandomValues=="function")return Ps.getRandomValues(new Uint8Array(e));if(Ps&&typeof Ps.randomBytes=="function")return Uint8Array.from(Ps.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const v1=BigInt(0),Lb=BigInt(1);function Bd(e,t=""){if(typeof e!="boolean"){const i=t&&`"${t}"`;throw new Error(i+"expected boolean, got type="+typeof e)}return e}function Co(e,t,i=""){const a=kd(e),s=e==null?void 0:e.length,c=t!==void 0;if(!a||c&&s!==t){const l=i&&`"${i}" `,f=c?` of length ${t}`:"",p=a?`length=${s}`:`type=${typeof e}`;throw new Error(l+"expected Uint8Array"+f+", got "+p)}return e}function od(e){const t=e.toString(16);return t.length&1?"0"+t:t}function JT(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?v1:BigInt("0x"+e)}function Gd(e){return JT(ks(e))}function WT(e){return Ki(e),JT(ks(Uint8Array.from(e).reverse()))}function x1(e,t){return Td(e.toString(16).padStart(t*2,"0"))}function eB(e,t){return x1(e,t).reverse()}function Vn(e,t,i){let a;if(typeof t=="string")try{a=Td(t)}catch(s){throw new Error(e+" must be hex string or Uint8Array, cause: "+s)}else if(kd(t))a=Uint8Array.from(t);else throw new Error(e+" must be hex string or Uint8Array");return a.length,a}const Zy=e=>typeof e=="bigint"&&v1<=e;function I4(e,t,i){return Zy(e)&&Zy(t)&&Zy(i)&&t<=e&&e<i}function S4(e,t,i,a){if(!I4(t,i,a))throw new Error("expected valid "+e+": "+i+" <= n < "+a+", got "+t)}function tB(e){let t;for(t=0;e>v1;e>>=Lb,t+=1);return t}const El=e=>(Lb<<BigInt(e))-Lb;function C4(e,t,i){if(typeof e!="number"||e<2)throw new Error("hashLen must be a number");if(typeof t!="number"||t<2)throw new Error("qByteLen must be a number");if(typeof i!="function")throw new Error("hmacFn must be a function");const a=I=>new Uint8Array(I),s=I=>Uint8Array.of(I);let c=a(e),l=a(e),f=0;const p=()=>{c.fill(1),l.fill(0),f=0},h=(...I)=>i(l,c,...I),b=(I=a(0))=>{l=h(s(0),I),c=h(),I.length!==0&&(l=h(s(1),I),c=h())},v=()=>{if(f++>=1e3)throw new Error("drbg: tried 1000 values");let I=0;const C=[];for(;I<t;){c=h();const U=c.slice();C.push(U),I+=c.length}return Ua(...C)};return(I,C)=>{p(),b(I);let U;for(;!(U=C(v()));)b();return p(),U}}function E1(e,t,i={}){if(!e||typeof e!="object")throw new Error("expected valid options object");function a(s,c,l){const f=e[s];if(l&&f===void 0)return;const p=typeof f;if(p!==c||f===null)throw new Error(`param "${s}" is invalid: expected ${c}, got ${p}`)}Object.entries(t).forEach(([s,c])=>a(s,c,!1)),Object.entries(i).forEach(([s,c])=>a(s,c,!0))}function Y2(e){const t=new WeakMap;return(i,...a)=>{const s=t.get(i);if(s!==void 0)return s;const c=e(i,...a);return t.set(i,c),c}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Kn=BigInt(0),qn=BigInt(1),Oo=BigInt(2),nB=BigInt(3),rB=BigInt(4),iB=BigInt(5),O4=BigInt(7),aB=BigInt(8),F4=BigInt(9),oB=BigInt(16);function zr(e,t){const i=e%t;return i>=Kn?i:t+i}function Tr(e,t,i){let a=e;for(;t-- >Kn;)a*=a,a%=i;return a}function X2(e,t){if(e===Kn)throw new Error("invert: expected non-zero number");if(t<=Kn)throw new Error("invert: expected positive modulus, got "+t);let i=zr(e,t),a=t,s=Kn,c=qn;for(;i!==Kn;){const f=a/i,p=a%i,h=s-c*f;a=i,i=p,s=c,c=h}if(a!==qn)throw new Error("invert: does not exist");return zr(s,t)}function w1(e,t,i){if(!e.eql(e.sqr(t),i))throw new Error("Cannot find square root")}function sB(e,t){const i=(e.ORDER+qn)/rB,a=e.pow(t,i);return w1(e,a,t),a}function T4(e,t){const i=(e.ORDER-iB)/aB,a=e.mul(t,Oo),s=e.pow(a,i),c=e.mul(t,s),l=e.mul(e.mul(c,Oo),s),f=e.mul(c,e.sub(l,e.ONE));return w1(e,f,t),f}function B4(e){const t=wl(e),i=uB(e),a=i(t,t.neg(t.ONE)),s=i(t,a),c=i(t,t.neg(a)),l=(e+O4)/oB;return(f,p)=>{let h=f.pow(p,l),b=f.mul(h,a);const v=f.mul(h,s),A=f.mul(h,c),I=f.eql(f.sqr(b),p),C=f.eql(f.sqr(v),p);h=f.cmov(h,b,I),b=f.cmov(A,v,C);const U=f.eql(f.sqr(b),p),B=f.cmov(h,b,U);return w1(f,B,p),B}}function uB(e){if(e<nB)throw new Error("sqrt is not defined for small field");let t=e-qn,i=0;for(;t%Oo===Kn;)t/=Oo,i++;let a=Oo;const s=wl(e);for(;Z2(s,a)===1;)if(a++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(i===1)return sB;let c=s.pow(a,t);const l=(t+qn)/Oo;return function(p,h){if(p.is0(h))return h;if(Z2(p,h)!==1)throw new Error("Cannot find square root");let b=i,v=p.mul(p.ONE,c),A=p.pow(h,t),I=p.pow(h,l);for(;!p.eql(A,p.ONE);){if(p.is0(A))return p.ZERO;let C=1,U=p.sqr(A);for(;!p.eql(U,p.ONE);)if(C++,U=p.sqr(U),C===b)throw new Error("Cannot find square root");const B=qn<<BigInt(b-C-1),_=p.pow(v,B);b=C,v=p.sqr(_),A=p.mul(A,v),I=p.mul(I,_)}return I}}function R4(e){return e%rB===nB?sB:e%aB===iB?T4:e%oB===F4?B4(e):uB(e)}const _4=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function D4(e){const t={ORDER:"bigint",MASK:"bigint",BYTES:"number",BITS:"number"},i=_4.reduce((a,s)=>(a[s]="function",a),t);return E1(e,i),e}function U4(e,t,i){if(i<Kn)throw new Error("invalid exponent, negatives unsupported");if(i===Kn)return e.ONE;if(i===qn)return t;let a=e.ONE,s=t;for(;i>Kn;)i&qn&&(a=e.mul(a,s)),s=e.sqr(s),i>>=qn;return a}function cB(e,t,i=!1){const a=new Array(t.length).fill(i?e.ZERO:void 0),s=t.reduce((l,f,p)=>e.is0(f)?l:(a[p]=l,e.mul(l,f)),e.ONE),c=e.inv(s);return t.reduceRight((l,f,p)=>e.is0(f)?l:(a[p]=e.mul(l,a[p]),e.mul(l,f)),c),a}function Z2(e,t){const i=(e.ORDER-qn)/Oo,a=e.pow(t,i),s=e.eql(a,e.ONE),c=e.eql(a,e.ZERO),l=e.eql(a,e.neg(e.ONE));if(!s&&!c&&!l)throw new Error("invalid Legendre symbol result");return s?1:c?0:-1}function lB(e,t){t!==void 0&&kc(t);const i=t!==void 0?t:e.toString(2).length,a=Math.ceil(i/8);return{nBitLength:i,nByteLength:a}}function wl(e,t,i=!1,a={}){if(e<=Kn)throw new Error("invalid field: expected ORDER > 0, got "+e);let s,c,l=!1,f;if(typeof t=="object"&&t!=null){if(a.sqrt||i)throw new Error("cannot specify opts in two arguments");const A=t;A.BITS&&(s=A.BITS),A.sqrt&&(c=A.sqrt),typeof A.isLE=="boolean"&&(i=A.isLE),typeof A.modFromBytes=="boolean"&&(l=A.modFromBytes),f=A.allowedLengths}else typeof t=="number"&&(s=t),a.sqrt&&(c=a.sqrt);const{nBitLength:p,nByteLength:h}=lB(e,s);if(h>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let b;const v=Object.freeze({ORDER:e,isLE:i,BITS:p,BYTES:h,MASK:El(p),ZERO:Kn,ONE:qn,allowedLengths:f,create:A=>zr(A,e),isValid:A=>{if(typeof A!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof A);return Kn<=A&&A<e},is0:A=>A===Kn,isValidNot0:A=>!v.is0(A)&&v.isValid(A),isOdd:A=>(A&qn)===qn,neg:A=>zr(-A,e),eql:(A,I)=>A===I,sqr:A=>zr(A*A,e),add:(A,I)=>zr(A+I,e),sub:(A,I)=>zr(A-I,e),mul:(A,I)=>zr(A*I,e),pow:(A,I)=>U4(v,A,I),div:(A,I)=>zr(A*X2(I,e),e),sqrN:A=>A*A,addN:(A,I)=>A+I,subN:(A,I)=>A-I,mulN:(A,I)=>A*I,inv:A=>X2(A,e),sqrt:c||(A=>(b||(b=R4(e)),b(v,A))),toBytes:A=>i?eB(A,h):x1(A,h),fromBytes:(A,I=!0)=>{if(f){if(!f.includes(A.length)||A.length>h)throw new Error("Field.fromBytes: expected "+f+" bytes, got "+A.length);const U=new Uint8Array(h);U.set(A,i?0:U.length-A.length),A=U}if(A.length!==h)throw new Error("Field.fromBytes: expected "+h+" bytes, got "+A.length);let C=i?WT(A):Gd(A);if(l&&(C=zr(C,e)),!I&&!v.isValid(C))throw new Error("invalid field element: outside of range 0..ORDER");return C},invertBatch:A=>cB(v,A),cmov:(A,I,C)=>C?I:A});return Object.freeze(v)}function fB(e){if(typeof e!="bigint")throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function dB(e){const t=fB(e);return t+Math.ceil(t/2)}function M4(e,t,i=!1){const a=e.length,s=fB(t),c=dB(t);if(a<16||a<c||a>1024)throw new Error("expected "+c+"-1024 bytes of input, got "+a);const l=i?WT(e):Gd(e),f=zr(l,t-qn)+qn;return i?eB(f,s):x1(f,s)}function j4(e,t,i,a){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,i,a);const s=BigInt(32),c=BigInt(4294967295),l=Number(i>>s&c),f=Number(i&c),p=a?4:0,h=a?0:4;e.setUint32(t+p,l,a),e.setUint32(t+h,f,a)}function P4(e,t,i){return e&t^~e&i}function N4(e,t,i){return e&t^e&i^t&i}let L4=class extends b1{constructor(t,i,a,s){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=i,this.padOffset=a,this.isLE=s,this.buffer=new Uint8Array(t),this.view=Xy(this.buffer)}update(t){Ys(this),t=zd(t),Ki(t);const{view:i,buffer:a,blockLen:s}=this,c=t.length;for(let l=0;l<c;){const f=Math.min(s-this.pos,c-l);if(f===s){const p=Xy(t);for(;s<=c-l;l+=s)this.process(p,l);continue}a.set(t.subarray(l,l+f),this.pos),this.pos+=f,l+=f,this.pos===s&&(this.process(i,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){Ys(this),KT(t,this),this.finished=!0;const{buffer:i,view:a,blockLen:s,isLE:c}=this;let{pos:l}=this;i[l++]=128,Xs(this.buffer.subarray(l)),this.padOffset>s-l&&(this.process(a,0),l=0);for(let v=l;v<s;v++)i[v]=0;j4(a,s-8,BigInt(this.length*8),c),this.process(a,0);const f=Xy(t),p=this.outputLen;if(p%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const h=p/4,b=this.get();if(h>b.length)throw new Error("_sha2: outputLen bigger than state");for(let v=0;v<h;v++)f.setUint32(4*v,b[v],c)}digest(){const{buffer:t,outputLen:i}=this;this.digestInto(t);const a=t.slice(0,i);return this.destroy(),a}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:i,buffer:a,length:s,finished:c,destroyed:l,pos:f}=this;return t.destroyed=l,t.finished=c,t.length=s,t.pos=f,s%i&&t.buffer.set(a),t}clone(){return this._cloneInto()}};const Fa=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),sd=BigInt(2**32-1),J2=BigInt(32);function q4(e,t=!1){return t?{h:Number(e&sd),l:Number(e>>J2&sd)}:{h:Number(e>>J2&sd)|0,l:Number(e&sd)|0}}function $4(e,t=!1){const i=e.length;let a=new Uint32Array(i),s=new Uint32Array(i);for(let c=0;c<i;c++){const{h:l,l:f}=q4(e[c],t);[a[c],s[c]]=[l,f]}return[a,s]}const H4=(e,t,i)=>e<<i|t>>>32-i,k4=(e,t,i)=>t<<i|e>>>32-i,z4=(e,t,i)=>t<<i-32|e>>>64-i,G4=(e,t,i)=>e<<i-32|t>>>64-i,Q4=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]),Ta=new Uint32Array(64);let V4=class extends L4{constructor(t=32){super(64,t,8,!1),this.A=Fa[0]|0,this.B=Fa[1]|0,this.C=Fa[2]|0,this.D=Fa[3]|0,this.E=Fa[4]|0,this.F=Fa[5]|0,this.G=Fa[6]|0,this.H=Fa[7]|0}get(){const{A:t,B:i,C:a,D:s,E:c,F:l,G:f,H:p}=this;return[t,i,a,s,c,l,f,p]}set(t,i,a,s,c,l,f,p){this.A=t|0,this.B=i|0,this.C=a|0,this.D=s|0,this.E=c|0,this.F=l|0,this.G=f|0,this.H=p|0}process(t,i){for(let v=0;v<16;v++,i+=4)Ta[v]=t.getUint32(i,!1);for(let v=16;v<64;v++){const A=Ta[v-15],I=Ta[v-2],C=ui(A,7)^ui(A,18)^A>>>3,U=ui(I,17)^ui(I,19)^I>>>10;Ta[v]=U+Ta[v-7]+C+Ta[v-16]|0}let{A:a,B:s,C:c,D:l,E:f,F:p,G:h,H:b}=this;for(let v=0;v<64;v++){const A=ui(f,6)^ui(f,11)^ui(f,25),I=b+A+P4(f,p,h)+Q4[v]+Ta[v]|0,U=(ui(a,2)^ui(a,13)^ui(a,22))+N4(a,s,c)|0;b=h,h=p,p=f,f=l+I|0,l=c,c=s,s=a,a=I+U|0}a=a+this.A|0,s=s+this.B|0,c=c+this.C|0,l=l+this.D|0,f=f+this.E|0,p=p+this.F|0,h=h+this.G|0,b=b+this.H|0,this.set(a,s,c,l,f,p,h,b)}roundClean(){Xs(Ta)}destroy(){this.set(0,0,0,0,0,0,0,0),Xs(this.buffer)}};const hB=XT(()=>new V4);class pB extends b1{constructor(t,i){super(),this.finished=!1,this.destroyed=!1,VT(t);const a=zd(i);if(this.iHash=t.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const s=this.blockLen,c=new Uint8Array(s);c.set(a.length>s?t.create().update(a).digest():a);for(let l=0;l<c.length;l++)c[l]^=54;this.iHash.update(c),this.oHash=t.create();for(let l=0;l<c.length;l++)c[l]^=106;this.oHash.update(c),Xs(c)}update(t){return Ys(this),this.iHash.update(t),this}digestInto(t){Ys(this),Ki(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:i,iHash:a,finished:s,destroyed:c,blockLen:l,outputLen:f}=this;return t=t,t.finished=s,t.destroyed=c,t.blockLen=l,t.outputLen=f,t.oHash=i._cloneInto(t.oHash),t.iHash=a._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const yB=(e,t,i)=>new pB(e,t).update(i).digest();yB.create=(e,t)=>new pB(e,t);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Zs=BigInt(0),Fo=BigInt(1);function Rd(e,t){const i=t.negate();return e?i:t}function Jy(e,t){const i=cB(e.Fp,t.map(a=>a.Z));return t.map((a,s)=>e.fromAffine(a.toAffine(i[s])))}function gB(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function Wy(e,t){gB(e,t);const i=Math.ceil(t/e)+1,a=2**(e-1),s=2**e,c=El(e),l=BigInt(e);return{windows:i,windowSize:a,mask:c,maxNumber:s,shiftBy:l}}function W2(e,t,i){const{windowSize:a,mask:s,maxNumber:c,shiftBy:l}=i;let f=Number(e&s),p=e>>l;f>a&&(f-=c,p+=Fo);const h=t*a,b=h+Math.abs(f)-1,v=f===0,A=f<0,I=t%2!==0;return{nextN:p,offset:b,isZero:v,isNeg:A,isNegF:I,offsetF:h}}function K4(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach((i,a)=>{if(!(i instanceof t))throw new Error("invalid point at index "+a)})}function Y4(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((i,a)=>{if(!t.isValid(i))throw new Error("invalid scalar at index "+a)})}const e0=new WeakMap,mB=new WeakMap;function t0(e){return mB.get(e)||1}function eI(e){if(e!==Zs)throw new Error("invalid wNAF")}class X4{constructor(t,i){this.BASE=t.BASE,this.ZERO=t.ZERO,this.Fn=t.Fn,this.bits=i}_unsafeLadder(t,i,a=this.ZERO){let s=t;for(;i>Zs;)i&Fo&&(a=a.add(s)),s=s.double(),i>>=Fo;return a}precomputeWindow(t,i){const{windows:a,windowSize:s}=Wy(i,this.bits),c=[];let l=t,f=l;for(let p=0;p<a;p++){f=l,c.push(f);for(let h=1;h<s;h++)f=f.add(l),c.push(f);l=f.double()}return c}wNAF(t,i,a){if(!this.Fn.isValid(a))throw new Error("invalid scalar");let s=this.ZERO,c=this.BASE;const l=Wy(t,this.bits);for(let f=0;f<l.windows;f++){const{nextN:p,offset:h,isZero:b,isNeg:v,isNegF:A,offsetF:I}=W2(a,f,l);a=p,b?c=c.add(Rd(A,i[I])):s=s.add(Rd(v,i[h]))}return eI(a),{p:s,f:c}}wNAFUnsafe(t,i,a,s=this.ZERO){const c=Wy(t,this.bits);for(let l=0;l<c.windows&&a!==Zs;l++){const{nextN:f,offset:p,isZero:h,isNeg:b}=W2(a,l,c);if(a=f,!h){const v=i[p];s=s.add(b?v.negate():v)}}return eI(a),s}getPrecomputes(t,i,a){let s=e0.get(i);return s||(s=this.precomputeWindow(i,t),t!==1&&(typeof a=="function"&&(s=a(s)),e0.set(i,s))),s}cached(t,i,a){const s=t0(t);return this.wNAF(s,this.getPrecomputes(s,t,a),i)}unsafe(t,i,a,s){const c=t0(t);return c===1?this._unsafeLadder(t,i,s):this.wNAFUnsafe(c,this.getPrecomputes(c,t,a),i,s)}createCache(t,i){gB(i,this.bits),mB.set(t,i),e0.delete(t)}hasCache(t){return t0(t)!==1}}function Z4(e,t,i,a){let s=t,c=e.ZERO,l=e.ZERO;for(;i>Zs||a>Zs;)i&Fo&&(c=c.add(s)),a&Fo&&(l=l.add(s)),s=s.double(),i>>=Fo,a>>=Fo;return{p1:c,p2:l}}function J4(e,t,i,a){K4(i,e),Y4(a,t);const s=i.length,c=a.length;if(s!==c)throw new Error("arrays of points and scalars must have equal length");const l=e.ZERO,f=tB(BigInt(s));let p=1;f>12?p=f-3:f>4?p=f-2:f>0&&(p=2);const h=El(p),b=new Array(Number(h)+1).fill(l),v=Math.floor((t.BITS-1)/p)*p;let A=l;for(let I=v;I>=0;I-=p){b.fill(l);for(let U=0;U<c;U++){const B=a[U],_=Number(B>>BigInt(I)&h);b[_]=b[_].add(i[U])}let C=l;for(let U=b.length-1,B=l;U>0;U--)B=B.add(b[U]),C=C.add(B);if(A=A.add(C),I!==0)for(let U=0;U<p;U++)A=A.double()}return A}function tI(e,t,i){if(t){if(t.ORDER!==e)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return D4(t),t}else return wl(e,{isLE:i})}function W4(e,t,i={},a){if(a===void 0&&(a=e==="edwards"),!t||typeof t!="object")throw new Error(`expected valid ${e} CURVE object`);for(const p of["p","n","h"]){const h=t[p];if(!(typeof h=="bigint"&&h>Zs))throw new Error(`CURVE.${p} must be positive bigint`)}const s=tI(t.p,i.Fp,a),c=tI(t.n,i.Fn,a),f=["Gx","Gy","a","b"];for(const p of f)if(!s.isValid(t[p]))throw new Error(`CURVE.${p} must be valid field element of CURVE.Fp`);return t=Object.freeze(Object.assign({},t)),{CURVE:t,Fp:s,Fn:c}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const nI=(e,t)=>(e+(e>=0?t:-t)/AB)/t;function eD(e,t,i){const[[a,s],[c,l]]=t,f=nI(l*e,i),p=nI(-s*e,i);let h=e-f*a-p*c,b=-f*s-p*l;const v=h<zi,A=b<zi;v&&(h=-h),A&&(b=-b);const I=El(Math.ceil(tB(i)/2))+zs;if(h<zi||h>=I||b<zi||b>=I)throw new Error("splitScalar (endomorphism): failed, k="+e);return{k1neg:v,k1:h,k2neg:A,k2:b}}function qb(e){if(!["compact","recovered","der"].includes(e))throw new Error('Signature format must be "compact", "recovered", or "der"');return e}function n0(e,t){const i={};for(let a of Object.keys(t))i[a]=e[a]===void 0?t[a]:e[a];return Bd(i.lowS,"lowS"),Bd(i.prehash,"prehash"),i.format!==void 0&&qb(i.format),i}class tD extends Error{constructor(t=""){super(t)}}const $i={Err:tD,_tlv:{encode:(e,t)=>{const{Err:i}=$i;if(e<0||e>256)throw new i("tlv.encode: wrong tag");if(t.length&1)throw new i("tlv.encode: unpadded data");const a=t.length/2,s=od(a);if(s.length/2&128)throw new i("tlv.encode: long form length too big");const c=a>127?od(s.length/2|128):"";return od(e)+c+s+t},decode(e,t){const{Err:i}=$i;let a=0;if(e<0||e>256)throw new i("tlv.encode: wrong tag");if(t.length<2||t[a++]!==e)throw new i("tlv.decode: wrong tlv");const s=t[a++],c=!!(s&128);let l=0;if(!c)l=s;else{const p=s&127;if(!p)throw new i("tlv.decode(long): indefinite length not supported");if(p>4)throw new i("tlv.decode(long): byte length is too big");const h=t.subarray(a,a+p);if(h.length!==p)throw new i("tlv.decode: length bytes not complete");if(h[0]===0)throw new i("tlv.decode(long): zero leftmost byte");for(const b of h)l=l<<8|b;if(a+=p,l<128)throw new i("tlv.decode(long): not minimal encoding")}const f=t.subarray(a,a+l);if(f.length!==l)throw new i("tlv.decode: wrong value length");return{v:f,l:t.subarray(a+l)}}},_int:{encode(e){const{Err:t}=$i;if(e<zi)throw new t("integer: negative integers are not allowed");let i=od(e);if(Number.parseInt(i[0],16)&8&&(i="00"+i),i.length&1)throw new t("unexpected DER parsing assertion: unpadded hex");return i},decode(e){const{Err:t}=$i;if(e[0]&128)throw new t("invalid signature integer: negative");if(e[0]===0&&!(e[1]&128))throw new t("invalid signature integer: unnecessary leading zero");return Gd(e)}},toSig(e){const{Err:t,_int:i,_tlv:a}=$i,s=Vn("signature",e),{v:c,l}=a.decode(48,s);if(l.length)throw new t("invalid signature: left bytes after parsing");const{v:f,l:p}=a.decode(2,c),{v:h,l:b}=a.decode(2,p);if(b.length)throw new t("invalid signature: left bytes after parsing");return{r:i.decode(f),s:i.decode(h)}},hexFromSig(e){const{_tlv:t,_int:i}=$i,a=t.encode(2,i.encode(e.r)),s=t.encode(2,i.encode(e.s)),c=a+s;return t.encode(48,c)}},zi=BigInt(0),zs=BigInt(1),AB=BigInt(2),ud=BigInt(3),nD=BigInt(4);function Ls(e,t){const{BYTES:i}=e;let a;if(typeof t=="bigint")a=t;else{let s=Vn("private key",t);try{a=e.fromBytes(s)}catch{throw new Error(`invalid private key: expected ui8a of size ${i}, got ${typeof t}`)}}if(!e.isValidNot0(a))throw new Error("invalid private key: out of range [1..N-1]");return a}function rD(e,t={}){const i=W4("weierstrass",e,t),{Fp:a,Fn:s}=i;let c=i.CURVE;const{h:l,n:f}=c;E1(t,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object",wrapPrivateKey:"boolean"});const{endo:p}=t;if(p&&(!a.is0(c.a)||typeof p.beta!="bigint"||!Array.isArray(p.basises)))throw new Error('invalid endo: expected "beta": bigint and "basises": array');const h=vB(a,s);function b(){if(!a.isOdd)throw new Error("compression is not supported: Field does not have .isOdd()")}function v(G,Y,X){const{x:pe,y:R}=Y.toAffine(),re=a.toBytes(pe);if(Bd(X,"isCompressed"),X){b();const fe=!a.isOdd(R);return Ua(bB(fe),re)}else return Ua(Uint8Array.of(4),re,a.toBytes(R))}function A(G){Co(G,void 0,"Point");const{publicKey:Y,publicKeyUncompressed:X}=h,pe=G.length,R=G[0],re=G.subarray(1);if(pe===Y&&(R===2||R===3)){const fe=a.fromBytes(re);if(!a.isValid(fe))throw new Error("bad point: is not on curve, wrong x");const Z=U(fe);let O;try{O=a.sqrt(Z)}catch($){const j=$ instanceof Error?": "+$.message:"";throw new Error("bad point: is not on curve, sqrt error"+j)}b();const V=a.isOdd(O);return(R&1)===1!==V&&(O=a.neg(O)),{x:fe,y:O}}else if(pe===X&&R===4){const fe=a.BYTES,Z=a.fromBytes(re.subarray(0,fe)),O=a.fromBytes(re.subarray(fe,fe*2));if(!B(Z,O))throw new Error("bad point: is not on curve");return{x:Z,y:O}}else throw new Error(`bad point: got length ${pe}, expected compressed=${Y} or uncompressed=${X}`)}const I=t.toBytes||v,C=t.fromBytes||A;function U(G){const Y=a.sqr(G),X=a.mul(Y,G);return a.add(a.add(X,a.mul(G,c.a)),c.b)}function B(G,Y){const X=a.sqr(Y),pe=U(G);return a.eql(X,pe)}if(!B(c.Gx,c.Gy))throw new Error("bad curve params: generator point");const _=a.mul(a.pow(c.a,ud),nD),D=a.mul(a.sqr(c.b),BigInt(27));if(a.is0(a.add(_,D)))throw new Error("bad curve params: a or b");function M(G,Y,X=!1){if(!a.isValid(Y)||X&&a.is0(Y))throw new Error(`bad point coordinate ${G}`);return Y}function te(G){if(!(G instanceof F))throw new Error("ProjectivePoint expected")}function z(G){if(!p||!p.basises)throw new Error("no endo");return eD(G,p.basises,s.ORDER)}const ne=Y2((G,Y)=>{const{X,Y:pe,Z:R}=G;if(a.eql(R,a.ONE))return{x:X,y:pe};const re=G.is0();Y==null&&(Y=re?a.ONE:a.inv(R));const fe=a.mul(X,Y),Z=a.mul(pe,Y),O=a.mul(R,Y);if(re)return{x:a.ZERO,y:a.ZERO};if(!a.eql(O,a.ONE))throw new Error("invZ was invalid");return{x:fe,y:Z}}),ce=Y2(G=>{if(G.is0()){if(t.allowInfinityPoint&&!a.is0(G.Y))return;throw new Error("bad point: ZERO")}const{x:Y,y:X}=G.toAffine();if(!a.isValid(Y)||!a.isValid(X))throw new Error("bad point: x or y not field elements");if(!B(Y,X))throw new Error("bad point: equation left != right");if(!G.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});function oe(G,Y,X,pe,R){return X=new F(a.mul(X.X,G),X.Y,X.Z),Y=Rd(pe,Y),X=Rd(R,X),Y.add(X)}class F{constructor(Y,X,pe){this.X=M("x",Y),this.Y=M("y",X,!0),this.Z=M("z",pe),Object.freeze(this)}static CURVE(){return c}static fromAffine(Y){const{x:X,y:pe}=Y||{};if(!Y||!a.isValid(X)||!a.isValid(pe))throw new Error("invalid affine point");if(Y instanceof F)throw new Error("projective point not allowed");return a.is0(X)&&a.is0(pe)?F.ZERO:new F(X,pe,a.ONE)}static fromBytes(Y){const X=F.fromAffine(C(Co(Y,void 0,"point")));return X.assertValidity(),X}static fromHex(Y){return F.fromBytes(Vn("pointHex",Y))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(Y=8,X=!0){return K.createCache(this,Y),X||this.multiply(ud),this}assertValidity(){ce(this)}hasEvenY(){const{y:Y}=this.toAffine();if(!a.isOdd)throw new Error("Field doesn't support isOdd");return!a.isOdd(Y)}equals(Y){te(Y);const{X,Y:pe,Z:R}=this,{X:re,Y:fe,Z}=Y,O=a.eql(a.mul(X,Z),a.mul(re,R)),V=a.eql(a.mul(pe,Z),a.mul(fe,R));return O&&V}negate(){return new F(this.X,a.neg(this.Y),this.Z)}double(){const{a:Y,b:X}=c,pe=a.mul(X,ud),{X:R,Y:re,Z:fe}=this;let Z=a.ZERO,O=a.ZERO,V=a.ZERO,ie=a.mul(R,R),$=a.mul(re,re),j=a.mul(fe,fe),N=a.mul(R,re);return N=a.add(N,N),V=a.mul(R,fe),V=a.add(V,V),Z=a.mul(Y,V),O=a.mul(pe,j),O=a.add(Z,O),Z=a.sub($,O),O=a.add($,O),O=a.mul(Z,O),Z=a.mul(N,Z),V=a.mul(pe,V),j=a.mul(Y,j),N=a.sub(ie,j),N=a.mul(Y,N),N=a.add(N,V),V=a.add(ie,ie),ie=a.add(V,ie),ie=a.add(ie,j),ie=a.mul(ie,N),O=a.add(O,ie),j=a.mul(re,fe),j=a.add(j,j),ie=a.mul(j,N),Z=a.sub(Z,ie),V=a.mul(j,$),V=a.add(V,V),V=a.add(V,V),new F(Z,O,V)}add(Y){te(Y);const{X,Y:pe,Z:R}=this,{X:re,Y:fe,Z}=Y;let O=a.ZERO,V=a.ZERO,ie=a.ZERO;const $=c.a,j=a.mul(c.b,ud);let N=a.mul(X,re),k=a.mul(pe,fe),ye=a.mul(R,Z),ge=a.add(X,pe),q=a.add(re,fe);ge=a.mul(ge,q),q=a.add(N,k),ge=a.sub(ge,q),q=a.add(X,R);let E=a.add(re,Z);return q=a.mul(q,E),E=a.add(N,ye),q=a.sub(q,E),E=a.add(pe,R),O=a.add(fe,Z),E=a.mul(E,O),O=a.add(k,ye),E=a.sub(E,O),ie=a.mul($,q),O=a.mul(j,ye),ie=a.add(O,ie),O=a.sub(k,ie),ie=a.add(k,ie),V=a.mul(O,ie),k=a.add(N,N),k=a.add(k,N),ye=a.mul($,ye),q=a.mul(j,q),k=a.add(k,ye),ye=a.sub(N,ye),ye=a.mul($,ye),q=a.add(q,ye),N=a.mul(k,q),V=a.add(V,N),N=a.mul(E,q),O=a.mul(ge,O),O=a.sub(O,N),N=a.mul(ge,k),ie=a.mul(E,ie),ie=a.add(ie,N),new F(O,V,ie)}subtract(Y){return this.add(Y.negate())}is0(){return this.equals(F.ZERO)}multiply(Y){const{endo:X}=t;if(!s.isValidNot0(Y))throw new Error("invalid scalar: out of range");let pe,R;const re=fe=>K.cached(this,fe,Z=>Jy(F,Z));if(X){const{k1neg:fe,k1:Z,k2neg:O,k2:V}=z(Y),{p:ie,f:$}=re(Z),{p:j,f:N}=re(V);R=$.add(N),pe=oe(X.beta,ie,j,fe,O)}else{const{p:fe,f:Z}=re(Y);pe=fe,R=Z}return Jy(F,[pe,R])[0]}multiplyUnsafe(Y){const{endo:X}=t,pe=this;if(!s.isValid(Y))throw new Error("invalid scalar: out of range");if(Y===zi||pe.is0())return F.ZERO;if(Y===zs)return pe;if(K.hasCache(this))return this.multiply(Y);if(X){const{k1neg:R,k1:re,k2neg:fe,k2:Z}=z(Y),{p1:O,p2:V}=Z4(F,pe,re,Z);return oe(X.beta,O,V,R,fe)}else return K.unsafe(pe,Y)}multiplyAndAddUnsafe(Y,X,pe){const R=this.multiplyUnsafe(X).add(Y.multiplyUnsafe(pe));return R.is0()?void 0:R}toAffine(Y){return ne(this,Y)}isTorsionFree(){const{isTorsionFree:Y}=t;return l===zs?!0:Y?Y(F,this):K.unsafe(this,f).is0()}clearCofactor(){const{clearCofactor:Y}=t;return l===zs?this:Y?Y(F,this):this.multiplyUnsafe(l)}isSmallOrder(){return this.multiplyUnsafe(l).is0()}toBytes(Y=!0){return Bd(Y,"isCompressed"),this.assertValidity(),I(F,this,Y)}toHex(Y=!0){return ks(this.toBytes(Y))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}get px(){return this.X}get py(){return this.X}get pz(){return this.Z}toRawBytes(Y=!0){return this.toBytes(Y)}_setWindowSize(Y){this.precompute(Y)}static normalizeZ(Y){return Jy(F,Y)}static msm(Y,X){return J4(F,s,Y,X)}static fromPrivateKey(Y){return F.BASE.multiply(Ls(s,Y))}}F.BASE=new F(c.Gx,c.Gy,a.ONE),F.ZERO=new F(a.ZERO,a.ONE,a.ZERO),F.Fp=a,F.Fn=s;const H=s.BITS,K=new X4(F,t.endo?Math.ceil(H/2):H);return F.BASE.precompute(8),F}function bB(e){return Uint8Array.of(e?2:3)}function vB(e,t){return{secretKey:t.BYTES,publicKey:1+e.BYTES,publicKeyUncompressed:1+2*e.BYTES,publicKeyHasPrefix:!0,signature:2*t.BYTES}}function iD(e,t={}){const{Fn:i}=e,a=t.randomBytes||ZT,s=Object.assign(vB(e.Fp,i),{seed:dB(i.ORDER)});function c(I){try{return!!Ls(i,I)}catch{return!1}}function l(I,C){const{publicKey:U,publicKeyUncompressed:B}=s;try{const _=I.length;return C===!0&&_!==U||C===!1&&_!==B?!1:!!e.fromBytes(I)}catch{return!1}}function f(I=a(s.seed)){return M4(Co(I,s.seed,"seed"),i.ORDER)}function p(I,C=!0){return e.BASE.multiply(Ls(i,I)).toBytes(C)}function h(I){const C=f(I);return{secretKey:C,publicKey:p(C)}}function b(I){if(typeof I=="bigint")return!1;if(I instanceof e)return!0;const{secretKey:C,publicKey:U,publicKeyUncompressed:B}=s;if(i.allowedLengths||C===U)return;const _=Vn("key",I).length;return _===U||_===B}function v(I,C,U=!0){if(b(I)===!0)throw new Error("first arg must be private key");if(b(C)===!1)throw new Error("second arg must be public key");const B=Ls(i,I);return e.fromHex(C).multiply(B).toBytes(U)}return Object.freeze({getPublicKey:p,getSharedSecret:v,keygen:h,Point:e,utils:{isValidSecretKey:c,isValidPublicKey:l,randomSecretKey:f,isValidPrivateKey:c,randomPrivateKey:f,normPrivateKeyToScalar:I=>Ls(i,I),precompute(I=8,C=e.BASE){return C.precompute(I,!1)}},lengths:s})}function aD(e,t,i={}){VT(t),E1(i,{},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"});const a=i.randomBytes||ZT,s=i.hmac||((X,...pe)=>yB(t,X,Ua(...pe))),{Fp:c,Fn:l}=e,{ORDER:f,BITS:p}=l,{keygen:h,getPublicKey:b,getSharedSecret:v,utils:A,lengths:I}=iD(e,i),C={prehash:!1,lowS:typeof i.lowS=="boolean"?i.lowS:!1,format:void 0,extraEntropy:!1},U="compact";function B(X){const pe=f>>zs;return X>pe}function _(X,pe){if(!l.isValidNot0(pe))throw new Error(`invalid signature ${X}: out of range 1..Point.Fn.ORDER`);return pe}function D(X,pe){qb(pe);const R=I.signature,re=pe==="compact"?R:pe==="recovered"?R+1:void 0;return Co(X,re,`${pe} signature`)}class M{constructor(pe,R,re){this.r=_("r",pe),this.s=_("s",R),re!=null&&(this.recovery=re),Object.freeze(this)}static fromBytes(pe,R=U){D(pe,R);let re;if(R==="der"){const{r:V,s:ie}=$i.toSig(Co(pe));return new M(V,ie)}R==="recovered"&&(re=pe[0],R="compact",pe=pe.subarray(1));const fe=l.BYTES,Z=pe.subarray(0,fe),O=pe.subarray(fe,fe*2);return new M(l.fromBytes(Z),l.fromBytes(O),re)}static fromHex(pe,R){return this.fromBytes(Td(pe),R)}addRecoveryBit(pe){return new M(this.r,this.s,pe)}recoverPublicKey(pe){const R=c.ORDER,{r:re,s:fe,recovery:Z}=this;if(Z==null||![0,1,2,3].includes(Z))throw new Error("recovery id invalid");if(f*AB<R&&Z>1)throw new Error("recovery id is ambiguous for h>1 curve");const V=Z===2||Z===3?re+f:re;if(!c.isValid(V))throw new Error("recovery id 2 or 3 invalid");const ie=c.toBytes(V),$=e.fromBytes(Ua(bB((Z&1)===0),ie)),j=l.inv(V),N=z(Vn("msgHash",pe)),k=l.create(-N*j),ye=l.create(fe*j),ge=e.BASE.multiplyUnsafe(k).add($.multiplyUnsafe(ye));if(ge.is0())throw new Error("point at infinify");return ge.assertValidity(),ge}hasHighS(){return B(this.s)}toBytes(pe=U){if(qb(pe),pe==="der")return Td($i.hexFromSig(this));const R=l.toBytes(this.r),re=l.toBytes(this.s);if(pe==="recovered"){if(this.recovery==null)throw new Error("recovery bit must be present");return Ua(Uint8Array.of(this.recovery),R,re)}return Ua(R,re)}toHex(pe){return ks(this.toBytes(pe))}assertValidity(){}static fromCompact(pe){return M.fromBytes(Vn("sig",pe),"compact")}static fromDER(pe){return M.fromBytes(Vn("sig",pe),"der")}normalizeS(){return this.hasHighS()?new M(this.r,l.neg(this.s),this.recovery):this}toDERRawBytes(){return this.toBytes("der")}toDERHex(){return ks(this.toBytes("der"))}toCompactRawBytes(){return this.toBytes("compact")}toCompactHex(){return ks(this.toBytes("compact"))}}const te=i.bits2int||function(pe){if(pe.length>8192)throw new Error("input is too large");const R=Gd(pe),re=pe.length*8-p;return re>0?R>>BigInt(re):R},z=i.bits2int_modN||function(pe){return l.create(te(pe))},ne=El(p);function ce(X){return S4("num < 2^"+p,X,zi,ne),l.toBytes(X)}function oe(X,pe){return Co(X,void 0,"message"),pe?Co(t(X),void 0,"prehashed message"):X}function F(X,pe,R){if(["recovered","canonical"].some(k=>k in R))throw new Error("sign() legacy options not supported");const{lowS:re,prehash:fe,extraEntropy:Z}=n0(R,C);X=oe(X,fe);const O=z(X),V=Ls(l,pe),ie=[ce(V),ce(O)];if(Z!=null&&Z!==!1){const k=Z===!0?a(I.secretKey):Z;ie.push(Vn("extraEntropy",k))}const $=Ua(...ie),j=O;function N(k){const ye=te(k);if(!l.isValidNot0(ye))return;const ge=l.inv(ye),q=e.BASE.multiply(ye).toAffine(),E=l.create(q.x);if(E===zi)return;const P=l.create(ge*l.create(j+E*V));if(P===zi)return;let Q=(q.x===E?0:2)|Number(q.y&zs),W=P;return re&&B(P)&&(W=l.neg(P),Q^=1),new M(E,W,Q)}return{seed:$,k2sig:N}}function H(X,pe,R={}){X=Vn("message",X);const{seed:re,k2sig:fe}=F(X,pe,R);return C4(t.outputLen,l.BYTES,s)(re,fe)}function K(X){let pe;const R=typeof X=="string"||kd(X),re=!R&&X!==null&&typeof X=="object"&&typeof X.r=="bigint"&&typeof X.s=="bigint";if(!R&&!re)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");if(re)pe=new M(X.r,X.s);else if(R){try{pe=M.fromBytes(Vn("sig",X),"der")}catch(fe){if(!(fe instanceof $i.Err))throw fe}if(!pe)try{pe=M.fromBytes(Vn("sig",X),"compact")}catch{return!1}}return pe||!1}function G(X,pe,R,re={}){const{lowS:fe,prehash:Z,format:O}=n0(re,C);if(R=Vn("publicKey",R),pe=oe(Vn("message",pe),Z),"strict"in re)throw new Error("options.strict was renamed to lowS");const V=O===void 0?K(X):M.fromBytes(Vn("sig",X),O);if(V===!1)return!1;try{const ie=e.fromBytes(R);if(fe&&V.hasHighS())return!1;const{r:$,s:j}=V,N=z(pe),k=l.inv(j),ye=l.create(N*k),ge=l.create($*k),q=e.BASE.multiplyUnsafe(ye).add(ie.multiplyUnsafe(ge));return q.is0()?!1:l.create(q.x)===$}catch{return!1}}function Y(X,pe,R={}){const{prehash:re}=n0(R,C);return pe=oe(pe,re),M.fromBytes(X,"recovered").recoverPublicKey(pe).toBytes()}return Object.freeze({keygen:h,getPublicKey:b,getSharedSecret:v,utils:A,lengths:I,Point:e,sign:H,verify:G,recoverPublicKey:Y,Signature:M,hash:t})}function oD(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},i=e.Fp;let a=e.allowedPrivateKeyLengths?Array.from(new Set(e.allowedPrivateKeyLengths.map(l=>Math.ceil(l/2)))):void 0;const s=wl(t.n,{BITS:e.nBitLength,allowedLengths:a,modFromBytes:e.wrapPrivateKey}),c={Fp:i,Fn:s,allowInfinityPoint:e.allowInfinityPoint,endo:e.endo,isTorsionFree:e.isTorsionFree,clearCofactor:e.clearCofactor,fromBytes:e.fromBytes,toBytes:e.toBytes};return{CURVE:t,curveOpts:c}}function sD(e){const{CURVE:t,curveOpts:i}=oD(e),a={hmac:e.hmac,randomBytes:e.randomBytes,lowS:e.lowS,bits2int:e.bits2int,bits2int_modN:e.bits2int_modN};return{CURVE:t,curveOpts:i,hash:e.hash,ecdsaOpts:a}}function uD(e,t){const i=t.Point;return Object.assign({},t,{ProjectivePoint:i,CURVE:Object.assign({},e,lB(i.Fn.ORDER,i.Fn.BITS))})}function cD(e){const{CURVE:t,curveOpts:i,hash:a,ecdsaOpts:s}=sD(e),c=rD(t,i),l=aD(c,a,s);return uD(e,l)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function lD(e,t){const i=a=>cD({...e,hash:a});return{...i(t),create:i}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const I1={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},fD={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),basises:[[BigInt("0x3086d221a7d46bcde86c90e49284eb15"),-BigInt("0xe4437ed6010e88286f547fa90abfe4c3")],[BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),BigInt("0x3086d221a7d46bcde86c90e49284eb15")]]},rI=BigInt(2);function dD(e){const t=I1.p,i=BigInt(3),a=BigInt(6),s=BigInt(11),c=BigInt(22),l=BigInt(23),f=BigInt(44),p=BigInt(88),h=e*e*e%t,b=h*h*e%t,v=Tr(b,i,t)*b%t,A=Tr(v,i,t)*b%t,I=Tr(A,rI,t)*h%t,C=Tr(I,s,t)*I%t,U=Tr(C,c,t)*C%t,B=Tr(U,f,t)*U%t,_=Tr(B,p,t)*B%t,D=Tr(_,f,t)*U%t,M=Tr(D,i,t)*b%t,te=Tr(M,l,t)*C%t,z=Tr(te,a,t)*h%t,ne=Tr(z,rI,t);if(!$b.eql($b.sqr(ne),e))throw new Error("Cannot find square root");return ne}const $b=wl(I1.p,{sqrt:dD}),Il=lD({...I1,Fp:$b,lowS:!0,endo:fD},hB),hD=Object.freeze(Object.defineProperty({__proto__:null,secp256k1:Il},Symbol.toStringTag,{value:"Module"})),xB="2.35.1";let wc={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:i})=>t?`${e??"https://viem.sh"}${t}${i?`#${i}`:""}`:void 0,version:`viem@${xB}`};class De extends Error{constructor(t,i={}){var f;const a=(()=>{var p;return i.cause instanceof De?i.cause.details:(p=i.cause)!=null&&p.message?i.cause.message:i.details})(),s=i.cause instanceof De&&i.cause.docsPath||i.docsPath,c=(f=wc.getDocsUrl)==null?void 0:f.call(wc,{...i,docsPath:s}),l=[t||"An error occurred.","",...i.metaMessages?[...i.metaMessages,""]:[],...c?[`Docs: ${c}`]:[],...a?[`Details: ${a}`]:[],...wc.version?[`Version: ${wc.version}`]:[]].join(`
39
- `);super(l,i.cause?{cause:i.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=a,this.docsPath=s,this.metaMessages=i.metaMessages,this.name=i.name??this.name,this.shortMessage=t,this.version=xB}walk(t){return EB(this,t)}}function EB(e,t){return t!=null&&t(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause!==void 0?EB(e.cause,t):t?null:e}class wB extends De{constructor({max:t,min:i,signed:a,size:s,value:c}){super(`Number "${c}" is not in safe ${s?`${s*8}-bit ${a?"signed":"unsigned"} `:""}integer range ${t?`(${i} to ${t})`:`(above ${i})`}`,{name:"IntegerOutOfRangeError"})}}class pD extends De{constructor(t){super(`Bytes value "${t}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}class yD extends De{constructor({givenSize:t,maxSize:i}){super(`Size cannot exceed ${i} bytes. Given size: ${t} bytes.`,{name:"SizeOverflowError"})}}class IB extends De{constructor({offset:t,position:i,size:a}){super(`Slice ${i==="start"?"starting":"ending"} at offset "${t}" is out-of-bounds (size: ${a}).`,{name:"SliceOffsetOutOfBoundsError"})}}class SB extends De{constructor({size:t,targetSize:i,type:a}){super(`${a.charAt(0).toUpperCase()}${a.slice(1).toLowerCase()} size (${t}) exceeds padding size (${i}).`,{name:"SizeExceedsPaddingSizeError"})}}class iI extends De{constructor({size:t,targetSize:i,type:a}){super(`${a.charAt(0).toUpperCase()}${a.slice(1).toLowerCase()} is expected to be ${i} ${a} long, but is ${t} ${a} long.`,{name:"InvalidBytesLengthError"})}}function cu(e,{dir:t,size:i=32}={}){return typeof e=="string"?Ma(e,{dir:t,size:i}):gD(e,{dir:t,size:i})}function Ma(e,{dir:t,size:i=32}={}){if(i===null)return e;const a=e.replace("0x","");if(a.length>i*2)throw new SB({size:Math.ceil(a.length/2),targetSize:i,type:"hex"});return`0x${a[t==="right"?"padEnd":"padStart"](i*2,"0")}`}function gD(e,{dir:t,size:i=32}={}){if(i===null)return e;if(e.length>i)throw new SB({size:e.length,targetSize:i,type:"bytes"});const a=new Uint8Array(i);for(let s=0;s<i;s++){const c=t==="right";a[c?s:i-s-1]=e[c?s:e.length-s-1]}return a}function Yi(e,{strict:t=!0}={}){return!e||typeof e!="string"?!1:t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")}function Gt(e){return Yi(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}function ja(e,{dir:t="left"}={}){let i=typeof e=="string"?e.replace("0x",""):e,a=0;for(let s=0;s<i.length-1&&i[t==="left"?s:i.length-s-1].toString()==="0";s++)a++;return i=t==="left"?i.slice(a):i.slice(0,i.length-a),typeof e=="string"?(i.length===1&&t==="right"&&(i=`${i}0`),`0x${i.length%2===1?`0${i}`:i}`):i}const mD=new TextEncoder;function S1(e,t={}){return typeof e=="number"||typeof e=="bigint"?bD(e,t):typeof e=="boolean"?AD(e,t):Yi(e)?Kr(e,t):CB(e,t)}function AD(e,t={}){const i=new Uint8Array(1);return i[0]=Number(e),typeof t.size=="number"?(mi(i,{size:t.size}),cu(i,{size:t.size})):i}const Ni={zero:48,nine:57,A:65,F:70,a:97,f:102};function aI(e){if(e>=Ni.zero&&e<=Ni.nine)return e-Ni.zero;if(e>=Ni.A&&e<=Ni.F)return e-(Ni.A-10);if(e>=Ni.a&&e<=Ni.f)return e-(Ni.a-10)}function Kr(e,t={}){let i=e;t.size&&(mi(i,{size:t.size}),i=cu(i,{dir:"right",size:t.size}));let a=i.slice(2);a.length%2&&(a=`0${a}`);const s=a.length/2,c=new Uint8Array(s);for(let l=0,f=0;l<s;l++){const p=aI(a.charCodeAt(f++)),h=aI(a.charCodeAt(f++));if(p===void 0||h===void 0)throw new De(`Invalid byte sequence ("${a[f-2]}${a[f-1]}" in "${a}").`);c[l]=p*16+h}return c}function bD(e,t){const i=Pe(e,t);return Kr(i)}function CB(e,t={}){const i=mD.encode(e);return typeof t.size=="number"?(mi(i,{size:t.size}),cu(i,{dir:"right",size:t.size})):i}function mi(e,{size:t}){if(Gt(e)>t)throw new yD({givenSize:Gt(e),maxSize:t})}function di(e,t={}){const{signed:i}=t;t.size&&mi(e,{size:t.size});const a=BigInt(e);if(!i)return a;const s=(e.length-2)/2,c=(1n<<BigInt(s)*8n-1n)-1n;return a<=c?a:a-BigInt(`0x${"f".padStart(s*2,"f")}`)-1n}function Xi(e,t={}){return Number(di(e,t))}const vD=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function hi(e,t={}){return typeof e=="number"||typeof e=="bigint"?Pe(e,t):typeof e=="string"?Js(e,t):typeof e=="boolean"?OB(e,t):Un(e,t)}function OB(e,t={}){const i=`0x${Number(e)}`;return typeof t.size=="number"?(mi(i,{size:t.size}),cu(i,{size:t.size})):i}function Un(e,t={}){let i="";for(let s=0;s<e.length;s++)i+=vD[e[s]];const a=`0x${i}`;return typeof t.size=="number"?(mi(a,{size:t.size}),cu(a,{dir:"right",size:t.size})):a}function Pe(e,t={}){const{signed:i,size:a}=t,s=BigInt(e);let c;a?i?c=(1n<<BigInt(a)*8n-1n)-1n:c=2n**(BigInt(a)*8n)-1n:typeof e=="number"&&(c=BigInt(Number.MAX_SAFE_INTEGER));const l=typeof c=="bigint"&&i?-c-1n:0;if(c&&s>c||s<l){const p=typeof e=="bigint"?"n":"";throw new wB({max:c?`${c}${p}`:void 0,min:`${l}${p}`,signed:i,size:a,value:`${e}${p}`})}const f=`0x${(i&&s<0?(1n<<BigInt(a*8))+BigInt(s):s).toString(16)}`;return a?cu(f,{size:a}):f}const xD=new TextEncoder;function Js(e,t={}){const i=xD.encode(e);return Un(i,t)}function FB(){return hi(Il.utils.randomPrivateKey())}class Hn extends De{constructor({address:t}){super(`Address "${t}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}class Qd extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){const i=super.get(t);return super.has(t)&&i!==void 0&&(this.delete(t),super.set(t,i)),i}set(t,i){if(super.set(t,i),this.maxSize&&this.size>this.maxSize){const a=this.keys().next().value;a&&this.delete(a)}return this}}const ED=BigInt(0),Ic=BigInt(1),wD=BigInt(2),ID=BigInt(7),SD=BigInt(256),CD=BigInt(113),TB=[],BB=[],RB=[];for(let e=0,t=Ic,i=1,a=0;e<24;e++){[i,a]=[a,(2*i+3*a)%5],TB.push(2*(5*a+i)),BB.push((e+1)*(e+2)/2%64);let s=ED;for(let c=0;c<7;c++)t=(t<<Ic^(t>>ID)*CD)%SD,t&wD&&(s^=Ic<<(Ic<<BigInt(c))-Ic);RB.push(s)}const _B=$4(RB,!0),OD=_B[0],FD=_B[1],oI=(e,t,i)=>i>32?z4(e,t,i):H4(e,t,i),sI=(e,t,i)=>i>32?G4(e,t,i):k4(e,t,i);function TD(e,t=24){const i=new Uint32Array(10);for(let a=24-t;a<24;a++){for(let l=0;l<10;l++)i[l]=e[l]^e[l+10]^e[l+20]^e[l+30]^e[l+40];for(let l=0;l<10;l+=2){const f=(l+8)%10,p=(l+2)%10,h=i[p],b=i[p+1],v=oI(h,b,1)^i[f],A=sI(h,b,1)^i[f+1];for(let I=0;I<50;I+=10)e[l+I]^=v,e[l+I+1]^=A}let s=e[2],c=e[3];for(let l=0;l<24;l++){const f=BB[l],p=oI(s,c,f),h=sI(s,c,f),b=TB[l];s=e[b],c=e[b+1],e[b]=p,e[b+1]=h}for(let l=0;l<50;l+=10){for(let f=0;f<10;f++)i[f]=e[l+f];for(let f=0;f<10;f++)e[l+f]^=~i[(f+2)%10]&i[(f+4)%10]}e[0]^=OD[a],e[1]^=FD[a]}Xs(i)}class C1 extends b1{constructor(t,i,a,s=!1,c=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=t,this.suffix=i,this.outputLen=a,this.enableXOF=s,this.rounds=c,kc(a),!(0<t&&t<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=A4(this.state)}clone(){return this._cloneInto()}keccak(){V2(this.state32),TD(this.state32,this.rounds),V2(this.state32),this.posOut=0,this.pos=0}update(t){Ys(this),t=zd(t),Ki(t);const{blockLen:i,state:a}=this,s=t.length;for(let c=0;c<s;){const l=Math.min(i-this.pos,s-c);for(let f=0;f<l;f++)a[this.pos++]^=t[c++];this.pos===i&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:t,suffix:i,pos:a,blockLen:s}=this;t[a]^=i,(i&128)!==0&&a===s-1&&this.keccak(),t[s-1]^=128,this.keccak()}writeInto(t){Ys(this,!1),Ki(t),this.finish();const i=this.state,{blockLen:a}=this;for(let s=0,c=t.length;s<c;){this.posOut>=a&&this.keccak();const l=Math.min(a-this.posOut,c-s);t.set(i.subarray(this.posOut,this.posOut+l),s),this.posOut+=l,s+=l}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return kc(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(KT(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,Xs(this.state)}_cloneInto(t){const{blockLen:i,suffix:a,outputLen:s,rounds:c,enableXOF:l}=this;return t||(t=new C1(i,a,s,l,c)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=c,t.suffix=a,t.outputLen=s,t.enableXOF=l,t.destroyed=this.destroyed,t}}const BD=(e,t,i)=>XT(()=>new C1(t,e,i)),RD=BD(1,136,256/8);function lr(e,t){const i=t||"hex",a=RD(Yi(e,{strict:!1})?S1(e):e);return i==="bytes"?a:hi(a)}const r0=new Qd(8192);function Sl(e,t){if(r0.has(`${e}.${t}`))return r0.get(`${e}.${t}`);const i=e.substring(2).toLowerCase(),a=lr(CB(i),"bytes"),s=i.split("");for(let l=0;l<40;l+=2)a[l>>1]>>4>=8&&s[l]&&(s[l]=s[l].toUpperCase()),(a[l>>1]&15)>=8&&s[l+1]&&(s[l+1]=s[l+1].toUpperCase());const c=`0x${s.join("")}`;return r0.set(`${e}.${t}`,c),c}function _D(e,t){if(!yn(e,{strict:!1}))throw new Hn({address:e});return Sl(e,t)}const DD=/^0x[a-fA-F0-9]{40}$/,i0=new Qd(8192);function yn(e,t){const{strict:i=!0}=t??{},a=`${e}.${i}`;if(i0.has(a))return i0.get(a);const s=DD.test(e)?e.toLowerCase()===e?!0:i?Sl(e)===e:!0:!1;return i0.set(a,s),s}function UD(e){if(typeof e=="string"){if(!yn(e,{strict:!1}))throw new Hn({address:e});return{address:e,type:"json-rpc"}}if(!yn(e.address,{strict:!1}))throw new Hn({address:e.address});return{address:e.address,nonceManager:e.nonceManager,sign:e.sign,signAuthorization:e.signAuthorization,signMessage:e.signMessage,signTransaction:e.signTransaction,signTypedData:e.signTypedData,source:"custom",type:"local"}}function DB(e){const t=lr(`0x${e.substring(4)}`).substring(26);return Sl(`0x${t}`)}function MD({r:e,s:t,to:i="hex",v:a,yParity:s}){const c=(()=>{if(s===0||s===1)return s;if(a&&(a===27n||a===28n||a>=35n))return a%2n===0n?1:0;throw new Error("Invalid `v` or `yParity` value")})(),l=`0x${new Il.Signature(di(e),di(t)).toCompactHex()}${c===0?"1b":"1c"}`;return i==="hex"?l:Kr(l)}let a0=!1;async function Cl({hash:e,privateKey:t,to:i="object"}){const{r:a,s,recovery:c}=Il.sign(e.slice(2),t.slice(2),{lowS:!0,extraEntropy:Yi(a0,{strict:!1})?Kr(a0):a0}),l={r:Pe(a,{size:32}),s:Pe(s,{size:32}),v:c?28n:27n,yParity:c};return i==="bytes"||i==="hex"?MD({...l,to:i}):l}function pi(e){return typeof e[0]=="string"?La(e):jD(e)}function jD(e){let t=0;for(const s of e)t+=s.length;const i=new Uint8Array(t);let a=0;for(const s of e)i.set(s,a),a+=s.length;return i}function La(e){return`0x${e.reduce((t,i)=>t+i.replace("0x",""),"")}`}class uI extends De{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class PD extends De{constructor({length:t,position:i}){super(`Position \`${i}\` is out of bounds (\`0 < position < ${t}\`).`,{name:"PositionOutOfBoundsError"})}}class ND extends De{constructor({count:t,limit:i}){super(`Recursive read limit of \`${i}\` exceeded (recursive read count: \`${t}\`).`,{name:"RecursiveReadLimitExceededError"})}}const LD={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 ND({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new PD({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new uI({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 uI({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const i=t??this.position;return this.assertPosition(i+e-1),this.bytes.subarray(i,i+e)},inspectUint8(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const t=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,e&255),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 i=this.inspectBytes(e);return this.position+=t??e,i},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 O1(e,{recursiveReadLimit:t=8192}={}){const i=Object.create(LD);return i.bytes=e,i.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),i.positionReadCount=new Map,i.recursiveReadLimit=t,i}function _o(e,t="hex"){const i=UB(e),a=O1(new Uint8Array(i.length));return i.encode(a),t==="hex"?Un(a.bytes):a.bytes}function UB(e){return Array.isArray(e)?qD(e.map(t=>UB(t))):$D(e)}function qD(e){const t=e.reduce((s,c)=>s+c.length,0),i=MB(t);return{length:t<=55?1+t:1+i+t,encode(s){t<=55?s.pushByte(192+t):(s.pushByte(247+i),i===1?s.pushUint8(t):i===2?s.pushUint16(t):i===3?s.pushUint24(t):s.pushUint32(t));for(const{encode:c}of e)c(s)}}}function $D(e){const t=typeof e=="string"?Kr(e):e,i=MB(t.length);return{length:t.length===1&&t[0]<128?1:t.length<=55?1+t.length:1+i+t.length,encode(s){t.length===1&&t[0]<128?s.pushBytes(t):t.length<=55?(s.pushByte(128+t.length),s.pushBytes(t)):(s.pushByte(183+i),i===1?s.pushUint8(t.length):i===2?s.pushUint16(t.length):i===3?s.pushUint24(t.length):s.pushUint32(t.length),s.pushBytes(t))}}}function MB(e){if(e<2**8)return 1;if(e<2**16)return 2;if(e<2**24)return 3;if(e<2**32)return 4;throw new De("Length is too large.")}function jB(e){const{chainId:t,nonce:i,to:a}=e,s=e.contractAddress??e.address,c=lr(La(["0x05",_o([t?Pe(t):"0x",s,i?Pe(i):"0x"])]));return a==="bytes"?Kr(c):c}async function HD(e){const{chainId:t,nonce:i,privateKey:a,to:s="object"}=e,c=e.contractAddress??e.address,l=await Cl({hash:jB({address:c,chainId:t,nonce:i}),privateKey:a,to:s});return s==="object"?{address:c,chainId:t,nonce:i,...l}:l}const kD=`Ethereum Signed Message:
40
- `;function zD(e){const t=typeof e=="string"?Js(e):typeof e.raw=="string"?e.raw:Un(e.raw),i=Js(`${kD}${Gt(t)}`);return pi([i,t])}function GD(e,t){return lr(zD(e),t)}async function QD({message:e,privateKey:t}){return await Cl({hash:GD(e),privateKey:t,to:"hex"})}const VD={gwei:9,wei:18},KD={ether:-9,wei:9};function PB(e,t){let i=e.toString();const a=i.startsWith("-");a&&(i=i.slice(1)),i=i.padStart(t,"0");let[s,c]=[i.slice(0,i.length-t),i.slice(i.length-t)];return c=c.replace(/(0+)$/,""),`${a?"-":""}${s||"0"}${c?`.${c}`:""}`}function NB(e,t="wei"){return PB(e,VD[t])}function Qr(e,t="wei"){return PB(e,KD[t])}function Vd(e){const t=Object.entries(e).map(([a,s])=>s===void 0||s===!1?null:[a,s]).filter(Boolean),i=t.reduce((a,[s])=>Math.max(a,s.length),0);return t.map(([a,s])=>` ${`${a}:`.padEnd(i+1)} ${s}`).join(`
41
- `)}class YD extends De{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join(`
42
- `),{name:"FeeConflictError"})}}class XD extends De{constructor({v:t}){super(`Invalid \`v\` value "${t}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class ZD extends De{constructor({transaction:t}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",Vd(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"})}}class JD extends De{constructor({storageKey:t}){super(`Size for storage key "${t}" is invalid. Expected 32 bytes. Got ${Math.floor((t.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}class WD extends De{constructor(t,{account:i,docsPath:a,chain:s,data:c,gas:l,gasPrice:f,maxFeePerGas:p,maxPriorityFeePerGas:h,nonce:b,to:v,value:A}){var C;const I=Vd({chain:s&&`${s==null?void 0:s.name} (id: ${s==null?void 0:s.id})`,from:i==null?void 0:i.address,to:v,value:typeof A<"u"&&`${NB(A)} ${((C=s==null?void 0:s.nativeCurrency)==null?void 0:C.symbol)||"ETH"}`,data:c,gas:l,gasPrice:typeof f<"u"&&`${Qr(f)} gwei`,maxFeePerGas:typeof p<"u"&&`${Qr(p)} gwei`,maxPriorityFeePerGas:typeof h<"u"&&`${Qr(h)} gwei`,nonce:b});super(t.shortMessage,{cause:t,docsPath:a,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Request Arguments:",I].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}function eU(e){if(!e||e.length===0)return[];const t=[];for(const i of e){const{chainId:a,nonce:s,...c}=i,l=i.address;t.push([a?hi(a):"0x",l,s?hi(s):"0x",...Ol({},c)])}return t}function F1(e){const{kzg:t}=e,i=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),a=typeof e.blobs[0]=="string"?e.blobs.map(c=>Kr(c)):e.blobs,s=[];for(const c of a)s.push(Uint8Array.from(t.blobToKzgCommitment(c)));return i==="bytes"?s:s.map(c=>Un(c))}function T1(e){const{kzg:t}=e,i=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),a=typeof e.blobs[0]=="string"?e.blobs.map(l=>Kr(l)):e.blobs,s=typeof e.commitments[0]=="string"?e.commitments.map(l=>Kr(l)):e.commitments,c=[];for(let l=0;l<a.length;l++){const f=a[l],p=s[l];c.push(Uint8Array.from(t.computeBlobKzgProof(f,p)))}return i==="bytes"?c:c.map(l=>Un(l))}const tU=hB;function nU(e,t){return tU(Yi(e,{strict:!1})?S1(e):e)}function rU(e){const{commitment:t,version:i=1}=e,a=e.to??(typeof t=="string"?"hex":"bytes"),s=nU(t);return s.set([i],0),a==="bytes"?s:Un(s)}function LB(e){const{commitments:t,version:i}=e,a=e.to??(typeof t[0]=="string"?"hex":"bytes"),s=[];for(const c of t)s.push(rU({commitment:c,to:a,version:i}));return s}const cI=6,qB=32,B1=4096,$B=qB*B1,lI=$B*cI-1-1*B1*cI,HB=1;class iU extends De{constructor({maxSize:t,size:i}){super("Blob size is too large.",{metaMessages:[`Max: ${t} bytes`,`Given: ${i} bytes`],name:"BlobSizeTooLargeError"})}}class kB extends De{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class aU extends De{constructor({hash:t,size:i}){super(`Versioned hash "${t}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${i}`],name:"InvalidVersionedHashSizeError"})}}class oU extends De{constructor({hash:t,version:i}){super(`Versioned hash "${t}" version is invalid.`,{metaMessages:[`Expected: ${HB}`,`Received: ${i}`],name:"InvalidVersionedHashVersionError"})}}function sU(e){const t=e.to??(typeof e.data=="string"?"hex":"bytes"),i=typeof e.data=="string"?Kr(e.data):e.data,a=Gt(i);if(!a)throw new kB;if(a>lI)throw new iU({maxSize:lI,size:a});const s=[];let c=!0,l=0;for(;c;){const f=O1(new Uint8Array($B));let p=0;for(;p<B1;){const h=i.slice(l,l+(qB-1));if(f.pushByte(0),f.pushBytes(h),h.length<31){f.pushByte(128),c=!1;break}p++,l+=31}s.push(f)}return t==="bytes"?s.map(f=>f.bytes):s.map(f=>Un(f.bytes))}function zB(e){const{data:t,kzg:i,to:a}=e,s=e.blobs??sU({data:t,to:a}),c=e.commitments??F1({blobs:s,kzg:i,to:a}),l=e.proofs??T1({blobs:s,commitments:c,kzg:i,to:a}),f=[];for(let p=0;p<s.length;p++)f.push({blob:s[p],commitment:c[p],proof:l[p]});return f}const Kd=2n**256n-1n;class uU extends De{constructor({chain:t,currentChainId:i}){super(`The current chain of the wallet (id: ${i}) does not match the target chain for the transaction (id: ${t.id} – ${t.name}).`,{metaMessages:[`Current Chain ID: ${i}`,`Expected Chain ID: ${t.id} – ${t.name}`],name:"ChainMismatchError"})}}class cU extends De{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(`
43
- `),{name:"ChainNotFoundError"})}}class Yd extends De{constructor({chainId:t}){super(typeof t=="number"?`Chain ID "${t}" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}class qs extends De{constructor({cause:t,message:i}={}){var s;const a=(s=i==null?void 0:i.replace("execution reverted: ",""))==null?void 0:s.replace("execution reverted","");super(`Execution reverted ${a?`with reason: ${a}`:"for an unknown reason"}.`,{cause:t,name:"ExecutionRevertedError"})}}Object.defineProperty(qs,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(qs,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class Do extends De{constructor({cause:t,maxFeePerGas:i}={}){super(`The fee cap (\`maxFeePerGas\`${i?` = ${Qr(i)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:t,name:"FeeCapTooHighError"})}}Object.defineProperty(Do,"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 Hb extends De{constructor({cause:t,maxFeePerGas:i}={}){super(`The fee cap (\`maxFeePerGas\`${i?` = ${Qr(i)}`:""} gwei) cannot be lower than the block base fee.`,{cause:t,name:"FeeCapTooLowError"})}}Object.defineProperty(Hb,"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 kb extends De{constructor({cause:t,nonce:i}={}){super(`Nonce provided for the transaction ${i?`(${i}) `:""}is higher than the next one expected.`,{cause:t,name:"NonceTooHighError"})}}Object.defineProperty(kb,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class zb extends De{constructor({cause:t,nonce:i}={}){super([`Nonce provided for the transaction ${i?`(${i}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join(`
44
- `),{cause:t,name:"NonceTooLowError"})}}Object.defineProperty(zb,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class Gb extends De{constructor({cause:t,nonce:i}={}){super(`Nonce provided for the transaction ${i?`(${i}) `:""}exceeds the maximum allowed nonce.`,{cause:t,name:"NonceMaxValueError"})}}Object.defineProperty(Gb,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class Qb extends De{constructor({cause:t}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join(`
45
- `),{cause:t,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(Qb,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class Vb extends De{constructor({cause:t,gas:i}={}){super(`The amount of gas ${i?`(${i}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:t,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(Vb,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class Kb extends De{constructor({cause:t,gas:i}={}){super(`The amount of gas ${i?`(${i}) `:""}provided for the transaction is too low.`,{cause:t,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(Kb,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class Yb extends De{constructor({cause:t}){super("The transaction type is not supported for this chain.",{cause:t,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(Yb,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class zc extends De{constructor({cause:t,maxPriorityFeePerGas:i,maxFeePerGas:a}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${i?` = ${Qr(i)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${a?` = ${Qr(a)} gwei`:""}).`].join(`
46
- `),{cause:t,name:"TipAboveFeeCapError"})}}Object.defineProperty(zc,"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 R1 extends De{constructor({cause:t}){super(`An error occurred while executing: ${t==null?void 0:t.shortMessage}`,{cause:t,name:"UnknownNodeError"})}}function Gc(e,t,i,{strict:a}={}){return Yi(e,{strict:!1})?Xb(e,t,i,{strict:a}):VB(e,t,i,{strict:a})}function GB(e,t){if(typeof t=="number"&&t>0&&t>Gt(e)-1)throw new IB({offset:t,position:"start",size:Gt(e)})}function QB(e,t,i){if(typeof t=="number"&&typeof i=="number"&&Gt(e)!==i-t)throw new IB({offset:i,position:"end",size:Gt(e)})}function VB(e,t,i,{strict:a}={}){GB(e,t);const s=e.slice(t,i);return a&&QB(s,t,i),s}function Xb(e,t,i,{strict:a}={}){GB(e,t);const s=`0x${e.replace("0x","").slice((t??0)*2,(i??e.length)*2)}`;return a&&QB(s,t,i),s}function lU(e){const{authorizationList:t}=e;if(t)for(const i of t){const{chainId:a}=i,s=i.address;if(!yn(s))throw new Hn({address:s});if(a<0)throw new Yd({chainId:a})}_1(e)}function fU(e){const{blobVersionedHashes:t}=e;if(t){if(t.length===0)throw new kB;for(const i of t){const a=Gt(i),s=Xi(Gc(i,0,1));if(a!==32)throw new aU({hash:i,size:a});if(s!==HB)throw new oU({hash:i,version:s})}}_1(e)}function _1(e){const{chainId:t,maxPriorityFeePerGas:i,maxFeePerGas:a,to:s}=e;if(t<=0)throw new Yd({chainId:t});if(s&&!yn(s))throw new Hn({address:s});if(a&&a>Kd)throw new Do({maxFeePerGas:a});if(i&&a&&i>a)throw new zc({maxFeePerGas:a,maxPriorityFeePerGas:i})}function dU(e){const{chainId:t,maxPriorityFeePerGas:i,gasPrice:a,maxFeePerGas:s,to:c}=e;if(t<=0)throw new Yd({chainId:t});if(c&&!yn(c))throw new Hn({address:c});if(i||s)throw new De("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(a&&a>Kd)throw new Do({maxFeePerGas:a})}function hU(e){const{chainId:t,maxPriorityFeePerGas:i,gasPrice:a,maxFeePerGas:s,to:c}=e;if(c&&!yn(c))throw new Hn({address:c});if(typeof t<"u"&&t<=0)throw new Yd({chainId:t});if(i||s)throw new De("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(a&&a>Kd)throw new Do({maxFeePerGas:a})}function KB(e){if(e.type)return e.type;if(typeof e.authorizationList<"u")return"eip7702";if(typeof e.blobs<"u"||typeof e.blobVersionedHashes<"u"||typeof e.maxFeePerBlobGas<"u"||typeof e.sidecars<"u")return"eip4844";if(typeof e.maxFeePerGas<"u"||typeof e.maxPriorityFeePerGas<"u")return"eip1559";if(typeof e.gasPrice<"u")return typeof e.accessList<"u"?"eip2930":"legacy";throw new ZD({transaction:e})}function Xd(e){if(!e||e.length===0)return[];const t=[];for(let i=0;i<e.length;i++){const{address:a,storageKeys:s}=e[i];for(let c=0;c<s.length;c++)if(s[c].length-2!==64)throw new JD({storageKey:s[c]});if(!yn(a,{strict:!1}))throw new Hn({address:a});t.push([a,s])}return t}function pU(e,t){const i=KB(e);return i==="eip1559"?mU(e,t):i==="eip2930"?AU(e,t):i==="eip4844"?gU(e,t):i==="eip7702"?yU(e,t):bU(e,t)}function yU(e,t){const{authorizationList:i,chainId:a,gas:s,nonce:c,to:l,value:f,maxFeePerGas:p,maxPriorityFeePerGas:h,accessList:b,data:v}=e;lU(e);const A=Xd(b),I=eU(i);return La(["0x04",_o([Pe(a),c?Pe(c):"0x",h?Pe(h):"0x",p?Pe(p):"0x",s?Pe(s):"0x",l??"0x",f?Pe(f):"0x",v??"0x",A,I,...Ol(e,t)])])}function gU(e,t){const{chainId:i,gas:a,nonce:s,to:c,value:l,maxFeePerBlobGas:f,maxFeePerGas:p,maxPriorityFeePerGas:h,accessList:b,data:v}=e;fU(e);let A=e.blobVersionedHashes,I=e.sidecars;if(e.blobs&&(typeof A>"u"||typeof I>"u")){const M=typeof e.blobs[0]=="string"?e.blobs:e.blobs.map(ne=>Un(ne)),te=e.kzg,z=F1({blobs:M,kzg:te});if(typeof A>"u"&&(A=LB({commitments:z})),typeof I>"u"){const ne=T1({blobs:M,commitments:z,kzg:te});I=zB({blobs:M,commitments:z,proofs:ne})}}const C=Xd(b),U=[Pe(i),s?Pe(s):"0x",h?Pe(h):"0x",p?Pe(p):"0x",a?Pe(a):"0x",c??"0x",l?Pe(l):"0x",v??"0x",C,f?Pe(f):"0x",A??[],...Ol(e,t)],B=[],_=[],D=[];if(I)for(let M=0;M<I.length;M++){const{blob:te,commitment:z,proof:ne}=I[M];B.push(te),_.push(z),D.push(ne)}return La(["0x03",_o(I?[U,B,_,D]:U)])}function mU(e,t){const{chainId:i,gas:a,nonce:s,to:c,value:l,maxFeePerGas:f,maxPriorityFeePerGas:p,accessList:h,data:b}=e;_1(e);const v=Xd(h),A=[Pe(i),s?Pe(s):"0x",p?Pe(p):"0x",f?Pe(f):"0x",a?Pe(a):"0x",c??"0x",l?Pe(l):"0x",b??"0x",v,...Ol(e,t)];return La(["0x02",_o(A)])}function AU(e,t){const{chainId:i,gas:a,data:s,nonce:c,to:l,value:f,accessList:p,gasPrice:h}=e;dU(e);const b=Xd(p),v=[Pe(i),c?Pe(c):"0x",h?Pe(h):"0x",a?Pe(a):"0x",l??"0x",f?Pe(f):"0x",s??"0x",b,...Ol(e,t)];return La(["0x01",_o(v)])}function bU(e,t){const{chainId:i=0,gas:a,data:s,nonce:c,to:l,value:f,gasPrice:p}=e;hU(e);let h=[c?Pe(c):"0x",p?Pe(p):"0x",a?Pe(a):"0x",l??"0x",f?Pe(f):"0x",s??"0x"];if(t){const b=(()=>{if(t.v>=35n)return(t.v-35n)/2n>0?t.v:27n+(t.v===35n?0n:1n);if(i>0)return BigInt(i*2)+BigInt(35n+t.v-27n);const I=27n+(t.v===27n?0n:1n);if(t.v!==I)throw new XD({v:t.v});return I})(),v=ja(t.r),A=ja(t.s);h=[...h,Pe(b),v==="0x00"?"0x":v,A==="0x00"?"0x":A]}else i>0&&(h=[...h,Pe(i),"0x","0x"]);return _o(h)}function Ol(e,t){const i=t??e,{v:a,yParity:s}=i;if(typeof i.r>"u")return[];if(typeof i.s>"u")return[];if(typeof a>"u"&&typeof s>"u")return[];const c=ja(i.r),l=ja(i.s);return[typeof s=="number"?s?Pe(1):"0x":a===0n?"0x":a===1n?Pe(1):a===27n?"0x":Pe(1),c==="0x00"?"0x":c,l==="0x00"?"0x":l]}async function vU(e){const{privateKey:t,transaction:i,serializer:a=pU}=e,s=i.type==="eip4844"?{...i,sidecars:!1}:i,c=await Cl({hash:lr(a(s)),privateKey:t});return a(i,c)}function Ws(e,{includeName:t=!1}={}){if(e.type!=="function"&&e.type!=="event"&&e.type!=="error")throw new _U(e.type);return`${e.name}(${D1(e.inputs,{includeName:t})})`}function D1(e,{includeName:t=!1}={}){return e?e.map(i=>xU(i,{includeName:t})).join(t?", ":","):""}function xU(e,{includeName:t}){return e.type.startsWith("tuple")?`(${D1(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")}class EU extends De{constructor({docsPath:t}){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(`
47
- `),{docsPath:t,name:"AbiConstructorNotFoundError"})}}class fI extends De{constructor({docsPath:t}){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(`
48
- `),{docsPath:t,name:"AbiConstructorParamsNotFoundError"})}}class wU extends De{constructor({data:t,params:i,size:a}){super([`Data size of ${a} bytes is too small for given parameters.`].join(`
49
- `),{metaMessages:[`Params: (${D1(i,{includeName:!0})})`,`Data: ${t} (${a} 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=i,this.size=a}}class U1 extends De{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError"})}}class IU extends De{constructor({expectedLength:t,givenLength:i,type:a}){super([`ABI encoding array length mismatch for type ${a}.`,`Expected length: ${t}`,`Given length: ${i}`].join(`
50
- `),{name:"AbiEncodingArrayLengthMismatchError"})}}class SU extends De{constructor({expectedSize:t,value:i}){super(`Size of bytes "${i}" (bytes${Gt(i)}) does not match expected size (bytes${t}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class CU extends De{constructor({expectedLength:t,givenLength:i}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${t}`,`Given length (values): ${i}`].join(`
51
- `),{name:"AbiEncodingLengthMismatchError"})}}class YB extends De{constructor(t,{docsPath:i}){super([`Encoded error signature "${t}" 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=${t}.`].join(`
52
- `),{docsPath:i,name:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=t}}class dI extends De{constructor(t,{docsPath:i}={}){super([`Function ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join(`
53
- `),{docsPath:i,name:"AbiFunctionNotFoundError"})}}class OU extends De{constructor(t,i){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${t.type}\` in \`${Ws(t.abiItem)}\`, and`,`\`${i.type}\` in \`${Ws(i.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}class FU extends De{constructor({expectedSize:t,givenSize:i}){super(`Expected bytes${t}, got bytes${i}.`,{name:"BytesSizeMismatchError"})}}class TU extends De{constructor(t,{docsPath:i}){super([`Type "${t}" is not a valid encoding type.`,"Please provide a valid ABI type."].join(`
54
- `),{docsPath:i,name:"InvalidAbiEncodingType"})}}class BU extends De{constructor(t,{docsPath:i}){super([`Type "${t}" is not a valid decoding type.`,"Please provide a valid ABI type."].join(`
55
- `),{docsPath:i,name:"InvalidAbiDecodingType"})}}class RU extends De{constructor(t){super([`Value "${t}" is not a valid array.`].join(`
56
- `),{name:"InvalidArrayError"})}}class _U extends De{constructor(t){super([`"${t}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join(`
57
- `),{name:"InvalidDefinitionTypeError"})}}const DU=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,XB=/^(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 Zd(e,t){if(e.length!==t.length)throw new CU({expectedLength:e.length,givenLength:t.length});const i=UU({params:e,values:t}),a=j1(i);return a.length===0?"0x":a}function UU({params:e,values:t}){const i=[];for(let a=0;a<e.length;a++)i.push(M1({param:e[a],value:t[a]}));return i}function M1({param:e,value:t}){const i=P1(e.type);if(i){const[a,s]=i;return jU(t,{length:a,param:{...e,type:s}})}if(e.type==="tuple")return $U(t,{param:e});if(e.type==="address")return MU(t);if(e.type==="bool")return NU(t);if(e.type.startsWith("uint")||e.type.startsWith("int")){const a=e.type.startsWith("int"),[,,s="256"]=XB.exec(e.type)??[];return LU(t,{signed:a,size:Number(s)})}if(e.type.startsWith("bytes"))return PU(t,{param:e});if(e.type==="string")return qU(t);throw new TU(e.type,{docsPath:"/docs/contract/encodeAbiParameters"})}function j1(e){let t=0;for(let c=0;c<e.length;c++){const{dynamic:l,encoded:f}=e[c];l?t+=32:t+=Gt(f)}const i=[],a=[];let s=0;for(let c=0;c<e.length;c++){const{dynamic:l,encoded:f}=e[c];l?(i.push(Pe(t+s,{size:32})),a.push(f),s+=Gt(f)):i.push(f)}return pi([...i,...a])}function MU(e){if(!yn(e))throw new Hn({address:e});return{dynamic:!1,encoded:Ma(e.toLowerCase())}}function jU(e,{length:t,param:i}){const a=t===null;if(!Array.isArray(e))throw new RU(e);if(!a&&e.length!==t)throw new IU({expectedLength:t,givenLength:e.length,type:`${i.type}[${t}]`});let s=!1;const c=[];for(let l=0;l<e.length;l++){const f=M1({param:i,value:e[l]});f.dynamic&&(s=!0),c.push(f)}if(a||s){const l=j1(c);if(a){const f=Pe(c.length,{size:32});return{dynamic:!0,encoded:c.length>0?pi([f,l]):f}}if(s)return{dynamic:!0,encoded:l}}return{dynamic:!1,encoded:pi(c.map(({encoded:l})=>l))}}function PU(e,{param:t}){const[,i]=t.type.split("bytes"),a=Gt(e);if(!i){let s=e;return a%32!==0&&(s=Ma(s,{dir:"right",size:Math.ceil((e.length-2)/2/32)*32})),{dynamic:!0,encoded:pi([Ma(Pe(a,{size:32})),s])}}if(a!==Number.parseInt(i))throw new SU({expectedSize:Number.parseInt(i),value:e});return{dynamic:!1,encoded:Ma(e,{dir:"right"})}}function NU(e){if(typeof e!="boolean")throw new De(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:Ma(OB(e))}}function LU(e,{signed:t,size:i=256}){if(typeof i=="number"){const a=2n**(BigInt(i)-(t?1n:0n))-1n,s=t?-a-1n:0n;if(e>a||e<s)throw new wB({max:a.toString(),min:s.toString(),signed:t,size:i/8,value:e.toString()})}return{dynamic:!1,encoded:Pe(e,{size:32,signed:t})}}function qU(e){const t=Js(e),i=Math.ceil(Gt(t)/32),a=[];for(let s=0;s<i;s++)a.push(Ma(Gc(t,s*32,(s+1)*32),{dir:"right"}));return{dynamic:!0,encoded:pi([Ma(Pe(Gt(t),{size:32})),...a])}}function $U(e,{param:t}){let i=!1;const a=[];for(let s=0;s<t.components.length;s++){const c=t.components[s],l=Array.isArray(e)?s:c.name,f=M1({param:c,value:e[l]});a.push(f),f.dynamic&&(i=!0)}return{dynamic:i,encoded:i?j1(a):pi(a.map(({encoded:s})=>s))}}function P1(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}const Vr=(e,t,i)=>JSON.stringify(e,(a,s)=>typeof s=="bigint"?s.toString():s,i);class HU extends De{constructor({domain:t}){super(`Invalid domain "${Vr(t)}".`,{metaMessages:["Must be a valid EIP-712 domain."]})}}class kU extends De{constructor({primaryType:t,types:i}){super(`Invalid primary type \`${t}\` must be one of \`${JSON.stringify(Object.keys(i))}\`.`,{docsPath:"/api/glossary/Errors#typeddatainvalidprimarytypeerror",metaMessages:["Check that the primary type is a key in `types`."]})}}class zU extends De{constructor({type:t}){super(`Struct type "${t}" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}}function GU(e){const{domain:t,message:i,primaryType:a,types:s}=e,c=(p,h)=>{const b={...h};for(const v of p){const{name:A,type:I}=v;I==="address"&&(b[A]=b[A].toLowerCase())}return b},l=s.EIP712Domain?t?c(s.EIP712Domain,t):{}:{},f=(()=>{if(a!=="EIP712Domain")return c(s[a],i)})();return Vr({domain:l,message:f,primaryType:a,types:s})}function ZB(e){const{domain:t,message:i,primaryType:a,types:s}=e,c=(l,f)=>{for(const p of l){const{name:h,type:b}=p,v=f[h],A=b.match(XB);if(A&&(typeof v=="number"||typeof v=="bigint")){const[U,B,_]=A;Pe(v,{signed:B==="int",size:Number.parseInt(_)/8})}if(b==="address"&&typeof v=="string"&&!yn(v))throw new Hn({address:v});const I=b.match(DU);if(I){const[U,B]=I;if(B&&Gt(v)!==Number.parseInt(B))throw new FU({expectedSize:Number.parseInt(B),givenSize:Gt(v)})}const C=s[b];C&&(QU(b),c(C,v))}};if(s.EIP712Domain&&t){if(typeof t!="object")throw new HU({domain:t});c(s.EIP712Domain,t)}if(a!=="EIP712Domain")if(s[a])c(s[a],i);else throw new kU({primaryType:a,types:s})}function JB({domain:e}){return[typeof(e==null?void 0:e.name)=="string"&&{name:"name",type:"string"},(e==null?void 0:e.version)&&{name:"version",type:"string"},(typeof(e==null?void 0:e.chainId)=="number"||typeof(e==null?void 0:e.chainId)=="bigint")&&{name:"chainId",type:"uint256"},(e==null?void 0:e.verifyingContract)&&{name:"verifyingContract",type:"address"},(e==null?void 0:e.salt)&&{name:"salt",type:"bytes32"}].filter(Boolean)}function QU(e){if(e==="address"||e==="bool"||e==="string"||e.startsWith("bytes")||e.startsWith("uint")||e.startsWith("int"))throw new zU({type:e})}function VU(e){const{domain:t={},message:i,primaryType:a}=e,s={EIP712Domain:JB({domain:t}),...e.types};ZB({domain:t,message:i,primaryType:a,types:s});const c=["0x1901"];return t&&c.push(KU({domain:t,types:s})),a!=="EIP712Domain"&&c.push(WB({data:i,primaryType:a,types:s})),lr(pi(c))}function KU({domain:e,types:t}){return WB({data:e,primaryType:"EIP712Domain",types:t})}function WB({data:e,primaryType:t,types:i}){const a=eR({data:e,primaryType:t,types:i});return lr(a)}function eR({data:e,primaryType:t,types:i}){const a=[{type:"bytes32"}],s=[YU({primaryType:t,types:i})];for(const c of i[t]){const[l,f]=nR({types:i,name:c.name,type:c.type,value:e[c.name]});a.push(l),s.push(f)}return Zd(a,s)}function YU({primaryType:e,types:t}){const i=hi(XU({primaryType:e,types:t}));return lr(i)}function XU({primaryType:e,types:t}){let i="";const a=tR({primaryType:e,types:t});a.delete(e);const s=[e,...Array.from(a).sort()];for(const c of s)i+=`${c}(${t[c].map(({name:l,type:f})=>`${f} ${l}`).join(",")})`;return i}function tR({primaryType:e,types:t},i=new Set){const a=e.match(/^\w*/u),s=a==null?void 0:a[0];if(i.has(s)||t[s]===void 0)return i;i.add(s);for(const c of t[s])tR({primaryType:c.type,types:t},i);return i}function nR({types:e,name:t,type:i,value:a}){if(e[i]!==void 0)return[{type:"bytes32"},lr(eR({data:a,primaryType:i,types:e}))];if(i==="bytes")return a=`0x${(a.length%2?"0":"")+a.slice(2)}`,[{type:"bytes32"},lr(a)];if(i==="string")return[{type:"bytes32"},lr(hi(a))];if(i.lastIndexOf("]")===i.length-1){const s=i.slice(0,i.lastIndexOf("[")),c=a.map(l=>nR({name:t,type:s,types:e,value:l}));return[{type:"bytes32"},lr(Zd(c.map(([l])=>l),c.map(([,l])=>l)))]}return[{type:i},a]}async function ZU(e){const{privateKey:t,...i}=e;return await Cl({hash:VU(i),privateKey:t,to:"hex"})}function fi(e,t={}){const{nonceManager:i}=t,a=hi(Il.getPublicKey(e.slice(2),!1)),s=DB(a);return{...UD({address:s,nonceManager:i,async sign({hash:l}){return Cl({hash:l,privateKey:e,to:"hex"})},async signAuthorization(l){return HD({...l,privateKey:e})},async signMessage({message:l}){return QD({message:l,privateKey:e})},async signTransaction(l,{serializer:f}={}){return vU({privateKey:e,transaction:l,serializer:f})},async signTypedData(l){return ZU({...l,privateKey:e})}}),publicKey:a,source:"privateKey"}}function Zn(e){return typeof e=="string"?{address:e,type:"json-rpc"}:e}async function rR(e,{address:t,blockTag:i="latest",blockNumber:a}){const s=await e.request({method:"eth_getTransactionCount",params:[t,typeof a=="bigint"?Pe(a):i]},{dedupe:!!a});return Xi(s)}function JU(e,t){const i=e.exec(t);return i==null?void 0:i.groups}const hI=/^tuple(?<array>(\[(\d*)\])*)$/;function Zb(e){let t=e.type;if(hI.test(e.type)&&"components"in e){t="(";const i=e.components.length;for(let s=0;s<i;s++){const c=e.components[s];t+=Zb(c),s<i-1&&(t+=", ")}const a=JU(hI,e.type);return t+=`)${(a==null?void 0:a.array)??""}`,Zb({...e,type:t})}return"indexed"in e&&e.indexed&&(t=`${t} indexed`),e.name?`${t} ${e.name}`:t}function Sc(e){let t="";const i=e.length;for(let a=0;a<i;a++){const s=e[a];t+=Zb(s),a!==i-1&&(t+=", ")}return t}function WU(e){var t;return e.type==="function"?`function ${e.name}(${Sc(e.inputs)})${e.stateMutability&&e.stateMutability!=="nonpayable"?` ${e.stateMutability}`:""}${(t=e.outputs)!=null&&t.length?` returns (${Sc(e.outputs)})`:""}`:e.type==="event"?`event ${e.name}(${Sc(e.inputs)})`:e.type==="error"?`error ${e.name}(${Sc(e.inputs)})`:e.type==="constructor"?`constructor(${Sc(e.inputs)})${e.stateMutability==="payable"?" payable":""}`:e.type==="fallback"?`fallback() external${e.stateMutability==="payable"?" payable":""}`:"receive() external payable"}function Dn(e,t,i){const a=e[t.name];if(typeof a=="function")return a;const s=e[i];return typeof s=="function"?s:c=>t(e,c)}const eM=e=>lr(S1(e));function tM(e){return eM(e)}function nM(e){let t=!0,i="",a=0,s="",c=!1;for(let l=0;l<e.length;l++){const f=e[l];if(["(",")",","].includes(f)&&(t=!0),f==="("&&a++,f===")"&&a--,!!t){if(a===0){if(f===" "&&["event","function",""].includes(s))s="";else if(s+=f,f===")"){c=!0;break}continue}if(f===" "){e[l-1]!==","&&i!==","&&i!==",("&&(i="",t=!1);continue}s+=f,i+=f}}if(!c)throw new De("Unable to normalize signature.");return s}const rM=e=>{const t=typeof e=="string"?e:WU(e);return nM(t)};function iR(e){return tM(rM(e))}const iM=iR,N1=e=>Gc(iR(e),0,4);function aR(e){const{abi:t,args:i=[],name:a}=e,s=Yi(a,{strict:!1}),c=t.filter(f=>s?f.type==="function"?N1(f)===a:f.type==="event"?iM(f)===a:!1:"name"in f&&f.name===a);if(c.length===0)return;if(c.length===1)return c[0];let l;for(const f of c){if(!("inputs"in f))continue;if(!i||i.length===0){if(!f.inputs||f.inputs.length===0)return f;continue}if(!f.inputs||f.inputs.length===0||f.inputs.length!==i.length)continue;if(i.every((h,b)=>{const v="inputs"in f&&f.inputs[b];return v?Jb(h,v):!1})){if(l&&"inputs"in l&&l.inputs){const h=oR(f.inputs,l.inputs,i);if(h)throw new OU({abiItem:f,type:h[0]},{abiItem:l,type:h[1]})}l=f}}return l||c[0]}function Jb(e,t){const i=typeof e,a=t.type;switch(a){case"address":return yn(e,{strict:!1});case"bool":return i==="boolean";case"function":return i==="string";case"string":return i==="string";default:return a==="tuple"&&"components"in t?Object.values(t.components).every((s,c)=>Jb(Object.values(e)[c],s)):/^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(a)?i==="number"||i==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(a)?i==="string"||e instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(a)?Array.isArray(e)&&e.every(s=>Jb(s,{...t,type:a.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function oR(e,t,i){for(const a in e){const s=e[a],c=t[a];if(s.type==="tuple"&&c.type==="tuple"&&"components"in s&&"components"in c)return oR(s.components,c.components,i[a]);const l=[s.type,c.type];if(l.includes("address")&&l.includes("bytes20")?!0:l.includes("address")&&l.includes("string")?yn(i[a],{strict:!1}):l.includes("address")&&l.includes("bytes")?yn(i[a],{strict:!1}):!1)return l}}const pI="/docs/contract/encodeFunctionData";function aM(e){const{abi:t,args:i,functionName:a}=e;let s=t[0];if(a){const c=aR({abi:t,args:i,name:a});if(!c)throw new dI(a,{docsPath:pI});s=c}if(s.type!=="function")throw new dI(void 0,{docsPath:pI});return{abi:[s],functionName:N1(Ws(s))}}function sR(e){const{args:t}=e,{abi:i,functionName:a}=(()=>{var f;return e.abi.length===1&&((f=e.functionName)!=null&&f.startsWith("0x"))?e:aM(e)})(),s=i[0],c=a,l="inputs"in s&&s.inputs?Zd(s.inputs,t??[]):void 0;return La([c,l??"0x"])}const oM={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."},sM={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},uM={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};function cM(e,t={}){typeof t.size<"u"&&mi(e,{size:t.size});const i=Un(e,t);return di(i,t)}function lM(e,t={}){let i=e;if(typeof t.size<"u"&&(mi(i,{size:t.size}),i=ja(i)),i.length>1||i[0]>1)throw new pD(i);return!!i[0]}function Qi(e,t={}){typeof t.size<"u"&&mi(e,{size:t.size});const i=Un(e,t);return Xi(i,t)}function fM(e,t={}){let i=e;return typeof t.size<"u"&&(mi(i,{size:t.size}),i=ja(i,{dir:"right"})),new TextDecoder().decode(i)}function dM(e,t){const i=typeof t=="string"?Kr(t):t,a=O1(i);if(Gt(i)===0&&e.length>0)throw new U1;if(Gt(t)&&Gt(t)<32)throw new wU({data:typeof t=="string"?t:Un(t),params:e,size:Gt(t)});let s=0;const c=[];for(let l=0;l<e.length;++l){const f=e[l];a.setPosition(s);const[p,h]=Gs(a,f,{staticPosition:0});s+=h,c.push(p)}return c}function Gs(e,t,{staticPosition:i}){const a=P1(t.type);if(a){const[s,c]=a;return pM(e,{...t,type:c},{length:s,staticPosition:i})}if(t.type==="tuple")return AM(e,t,{staticPosition:i});if(t.type==="address")return hM(e);if(t.type==="bool")return yM(e);if(t.type.startsWith("bytes"))return gM(e,t,{staticPosition:i});if(t.type.startsWith("uint")||t.type.startsWith("int"))return mM(e,t);if(t.type==="string")return bM(e,{staticPosition:i});throw new BU(t.type,{docsPath:"/docs/contract/decodeAbiParameters"})}const yI=32,Wb=32;function hM(e){const t=e.readBytes(32);return[Sl(Un(VB(t,-20))),32]}function pM(e,t,{length:i,staticPosition:a}){if(!i){const l=Qi(e.readBytes(Wb)),f=a+l,p=f+yI;e.setPosition(f);const h=Qi(e.readBytes(yI)),b=Qc(t);let v=0;const A=[];for(let I=0;I<h;++I){e.setPosition(p+(b?I*32:v));const[C,U]=Gs(e,t,{staticPosition:p});v+=U,A.push(C)}return e.setPosition(a+32),[A,32]}if(Qc(t)){const l=Qi(e.readBytes(Wb)),f=a+l,p=[];for(let h=0;h<i;++h){e.setPosition(f+h*32);const[b]=Gs(e,t,{staticPosition:f});p.push(b)}return e.setPosition(a+32),[p,32]}let s=0;const c=[];for(let l=0;l<i;++l){const[f,p]=Gs(e,t,{staticPosition:a+s});s+=p,c.push(f)}return[c,s]}function yM(e){return[lM(e.readBytes(32),{size:32}),32]}function gM(e,t,{staticPosition:i}){const[a,s]=t.type.split("bytes");if(!s){const l=Qi(e.readBytes(32));e.setPosition(i+l);const f=Qi(e.readBytes(32));if(f===0)return e.setPosition(i+32),["0x",32];const p=e.readBytes(f);return e.setPosition(i+32),[Un(p),32]}return[Un(e.readBytes(Number.parseInt(s),32)),32]}function mM(e,t){const i=t.type.startsWith("int"),a=Number.parseInt(t.type.split("int")[1]||"256"),s=e.readBytes(32);return[a>48?cM(s,{signed:i}):Qi(s,{signed:i}),32]}function AM(e,t,{staticPosition:i}){const a=t.components.length===0||t.components.some(({name:l})=>!l),s=a?[]:{};let c=0;if(Qc(t)){const l=Qi(e.readBytes(Wb)),f=i+l;for(let p=0;p<t.components.length;++p){const h=t.components[p];e.setPosition(f+c);const[b,v]=Gs(e,h,{staticPosition:f});c+=v,s[a?p:h==null?void 0:h.name]=b}return e.setPosition(i+32),[s,32]}for(let l=0;l<t.components.length;++l){const f=t.components[l],[p,h]=Gs(e,f,{staticPosition:i});s[a?l:f==null?void 0:f.name]=p,c+=h}return[s,c]}function bM(e,{staticPosition:t}){const i=Qi(e.readBytes(32)),a=t+i;e.setPosition(a);const s=Qi(e.readBytes(32));if(s===0)return e.setPosition(t+32),["",32];const c=e.readBytes(s,32),l=fM(ja(c));return e.setPosition(t+32),[l,32]}function Qc(e){var a;const{type:t}=e;if(t==="string"||t==="bytes"||t.endsWith("[]"))return!0;if(t==="tuple")return(a=e.components)==null?void 0:a.some(Qc);const i=P1(e.type);return!!(i&&Qc({...e,type:i[1]}))}function vM(e){const{abi:t,data:i}=e,a=Gc(i,0,4);if(a==="0x")throw new U1;const c=[...t||[],sM,uM].find(l=>l.type==="error"&&a===N1(Ws(l)));if(!c)throw new YB(a,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:c,args:"inputs"in c&&c.inputs&&c.inputs.length>0?dM(c.inputs,Gc(i,4)):void 0,errorName:c.name}}function uR({abiItem:e,args:t,includeFunctionName:i=!0,includeName:a=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${i?e.name:""}(${e.inputs.map((s,c)=>`${a&&s.name?`${s.name}: `:""}${typeof t[c]=="object"?Vr(t[c]):t[c]}`).join(", ")})`}class xM extends De{constructor({address:t}){super(`State for account "${t}" is set multiple times.`,{name:"AccountStateConflictError"})}}class EM extends De{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}const wM=e=>e,L1=e=>e;class IM extends De{constructor(t,{abi:i,args:a,contractAddress:s,docsPath:c,functionName:l,sender:f}){const p=aR({abi:i,args:a,name:l}),h=p?uR({abiItem:p,args:a,includeFunctionName:!1,includeName:!1}):void 0,b=p?Ws(p,{includeName:!0}):void 0,v=Vd({address:s&&wM(s),function:b,args:h&&h!=="()"&&`${[...Array((l==null?void 0:l.length)??0).keys()].map(()=>" ").join("")}${h}`,sender:f});super(t.shortMessage||`An unknown error occurred while executing the contract function "${l}".`,{cause:t,docsPath:c,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],v&&"Contract Call:",v].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=i,this.args=a,this.cause=t,this.contractAddress=s,this.functionName=l,this.sender=f}}class SM extends De{constructor({abi:t,data:i,functionName:a,message:s}){let c,l,f,p;if(i&&i!=="0x")try{l=vM({abi:t,data:i});const{abiItem:b,errorName:v,args:A}=l;if(v==="Error")p=A[0];else if(v==="Panic"){const[I]=A;p=oM[I]}else{const I=b?Ws(b,{includeName:!0}):void 0,C=b&&A?uR({abiItem:b,args:A,includeFunctionName:!1,includeName:!1}):void 0;f=[I?`Error: ${I}`:"",C&&C!=="()"?` ${[...Array((v==null?void 0:v.length)??0).keys()].map(()=>" ").join("")}${C}`:""]}}catch(b){c=b}else s&&(p=s);let h;c instanceof YB&&(h=c.signature,f=[`Unable to decode signature "${h}" 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=${h}.`]),super(p&&p!=="execution reverted"||h?[`The contract function "${a}" reverted with the following ${h?"signature":"reason"}:`,p||h].join(`
58
- `):`The contract function "${a}" reverted.`,{cause:c,metaMessages:f,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=l,this.raw=i,this.reason=p,this.signature=h}}class CM extends De{constructor({functionName:t}){super(`The contract function "${t}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${t}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."],name:"ContractFunctionZeroDataError"})}}class OM extends De{constructor({data:t,message:i}){super(i||"",{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}}class Nc extends De{constructor({body:t,cause:i,details:a,headers:s,status:c,url:l}){super("HTTP request failed.",{cause:i,details:a,metaMessages:[c&&`Status: ${c}`,`URL: ${L1(l)}`,t&&`Request body: ${Vr(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=c,this.url=l}}class q1 extends De{constructor({body:t,error:i,url:a}){super("RPC Request failed.",{cause:i,details:i.message,metaMessages:[`URL: ${L1(a)}`,`Request body: ${Vr(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=i.code,this.data=i.data}}class gI extends De{constructor({body:t,url:i}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${L1(i)}`,`Request body: ${Vr(t)}`],name:"TimeoutError"})}}const FM=-1;class er extends De{constructor(t,{code:i,docsPath:a,metaMessages:s,name:c,shortMessage:l}){super(l,{cause:t,docsPath:a,metaMessages:s||(t==null?void 0:t.metaMessages),name:c||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=c||t.name,this.code=t instanceof q1?t.code:i??FM}}class yr extends er{constructor(t,i){super(t,i),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=i.data}}class Vc extends er{constructor(t){super(t,{code:Vc.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(Vc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class Kc extends er{constructor(t){super(t,{code:Kc.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(Kc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class Yc extends er{constructor(t,{method:i}={}){super(t,{code:Yc.code,name:"MethodNotFoundRpcError",shortMessage:`The method${i?` "${i}"`:""} does not exist / is not available.`})}}Object.defineProperty(Yc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class Xc extends er{constructor(t){super(t,{code:Xc.code,name:"InvalidParamsRpcError",shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join(`
59
- `)})}}Object.defineProperty(Xc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class Uo extends er{constructor(t){super(t,{code:Uo.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(Uo,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class Zc extends er{constructor(t){super(t,{code:Zc.code,name:"InvalidInputRpcError",shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join(`
60
- `)})}}Object.defineProperty(Zc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class Jc extends er{constructor(t){super(t,{code:Jc.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(Jc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class Wc extends er{constructor(t){super(t,{code:Wc.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(Wc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class el extends er{constructor(t){super(t,{code:el.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(el,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class To extends er{constructor(t,{method:i}={}){super(t,{code:To.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${i?` "${i}"`:""} is not supported.`})}}Object.defineProperty(To,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class eu extends er{constructor(t){super(t,{code:eu.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty(eu,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class tl extends er{constructor(t){super(t,{code:tl.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(tl,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class Qs extends yr{constructor(t){super(t,{code:Qs.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(Qs,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class nl extends yr{constructor(t){super(t,{code:nl.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(nl,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class rl extends yr{constructor(t,{method:i}={}){super(t,{code:rl.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${i?` " ${i}"`:""}.`})}}Object.defineProperty(rl,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class il extends yr{constructor(t){super(t,{code:il.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(il,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class al extends yr{constructor(t){super(t,{code:al.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(al,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class ol extends yr{constructor(t){super(t,{code:ol.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(ol,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class tu extends yr{constructor(t){super(t,{code:tu.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}Object.defineProperty(tu,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class sl extends yr{constructor(t){super(t,{code:sl.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}Object.defineProperty(sl,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class ul extends yr{constructor(t){super(t,{code:ul.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}Object.defineProperty(ul,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class cl extends yr{constructor(t){super(t,{code:cl.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}Object.defineProperty(cl,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class ll extends yr{constructor(t){super(t,{code:ll.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}Object.defineProperty(ll,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class fl extends yr{constructor(t){super(t,{code:fl.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}Object.defineProperty(fl,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750});class nu extends yr{constructor(t){super(t,{code:nu.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}Object.defineProperty(nu,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class TM extends er{constructor(t){super(t,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}const BM=3;function RM(e,{abi:t,address:i,args:a,docsPath:s,functionName:c,sender:l}){const f=e instanceof OM?e:e instanceof De?e.walk(C=>"data"in C)||e.walk():{},{code:p,data:h,details:b,message:v,shortMessage:A}=f,I=e instanceof U1?new CM({functionName:c}):[BM,Uo.code].includes(p)&&(h||b||v||A)?new SM({abi:t,data:typeof h=="object"?h.data:h,functionName:c,message:f instanceof q1?b:A??v}):e;return new IM(I,{abi:t,args:a,contractAddress:i,docsPath:s,functionName:c,sender:l})}const _M="modulepreload",DM=function(e){return"/"+e},mI={},UM=function(t,i,a){let s=Promise.resolve();if(i&&i.length>0){let l=function(h){return Promise.all(h.map(b=>Promise.resolve(b).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const f=document.querySelector("meta[property=csp-nonce]"),p=(f==null?void 0:f.nonce)||(f==null?void 0:f.getAttribute("nonce"));s=l(i.map(h=>{if(h=DM(h),h in mI)return;mI[h]=!0;const b=h.endsWith(".css"),v=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${v}`))return;const A=document.createElement("link");if(A.rel=b?"stylesheet":_M,b||(A.as="script"),A.crossOrigin="",A.href=h,p&&A.setAttribute("nonce",p),document.head.appendChild(A),b)return new Promise((I,C)=>{A.addEventListener("load",I),A.addEventListener("error",()=>C(new Error(`Unable to preload CSS for ${h}`)))})}))}function c(l){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=l,window.dispatchEvent(f),!f.defaultPrevented)throw l}return s.then(l=>{for(const f of l||[])f.status==="rejected"&&c(f.reason);return t().catch(c)})};async function MM({hash:e,signature:t}){const i=Yi(e)?e:hi(e),{secp256k1:a}=await UM(async()=>{const{secp256k1:l}=await Promise.resolve().then(()=>hD);return{secp256k1:l}},void 0);return`0x${(()=>{if(typeof t=="object"&&"r"in t&&"s"in t){const{r:h,s:b,v,yParity:A}=t,I=Number(A??v),C=AI(I);return new a.Signature(di(h),di(b)).addRecoveryBit(C)}const l=Yi(t)?t:hi(t);if(Gt(l)!==65)throw new Error("invalid signature length");const f=Xi(`0x${l.slice(130)}`),p=AI(f);return a.Signature.fromCompact(l.substring(2,130)).addRecoveryBit(p)})().recoverPublicKey(i.substring(2)).toHex(!1)}`}function AI(e){if(e===0||e===1)return e;if(e===27)return 0;if(e===28)return 1;throw new Error("Invalid yParityOrV value")}async function jM({hash:e,signature:t}){return DB(await MM({hash:e,signature:t}))}async function cR(e){const{authorization:t,signature:i}=e;return jM({hash:jB(t),signature:i??t})}class PM extends De{constructor(t,{account:i,docsPath:a,chain:s,data:c,gas:l,gasPrice:f,maxFeePerGas:p,maxPriorityFeePerGas:h,nonce:b,to:v,value:A}){var C;const I=Vd({from:i==null?void 0:i.address,to:v,value:typeof A<"u"&&`${NB(A)} ${((C=s==null?void 0:s.nativeCurrency)==null?void 0:C.symbol)||"ETH"}`,data:c,gas:l,gasPrice:typeof f<"u"&&`${Qr(f)} gwei`,maxFeePerGas:typeof p<"u"&&`${Qr(p)} gwei`,maxPriorityFeePerGas:typeof h<"u"&&`${Qr(h)} gwei`,nonce:b});super(t.shortMessage,{cause:t,docsPath:a,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Estimate Gas Arguments:",I].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}function lR(e,t){const i=(e.details||"").toLowerCase(),a=e instanceof De?e.walk(s=>(s==null?void 0:s.code)===qs.code):e;return a instanceof De?new qs({cause:e,message:a.details}):qs.nodeMessage.test(i)?new qs({cause:e,message:e.details}):Do.nodeMessage.test(i)?new Do({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas}):Hb.nodeMessage.test(i)?new Hb({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas}):kb.nodeMessage.test(i)?new kb({cause:e,nonce:t==null?void 0:t.nonce}):zb.nodeMessage.test(i)?new zb({cause:e,nonce:t==null?void 0:t.nonce}):Gb.nodeMessage.test(i)?new Gb({cause:e,nonce:t==null?void 0:t.nonce}):Qb.nodeMessage.test(i)?new Qb({cause:e}):Vb.nodeMessage.test(i)?new Vb({cause:e,gas:t==null?void 0:t.gas}):Kb.nodeMessage.test(i)?new Kb({cause:e,gas:t==null?void 0:t.gas}):Yb.nodeMessage.test(i)?new Yb({cause:e}):zc.nodeMessage.test(i)?new zc({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas,maxPriorityFeePerGas:t==null?void 0:t.maxPriorityFeePerGas}):new R1({cause:e})}function NM(e,{docsPath:t,...i}){const a=(()=>{const s=lR(e,i);return s instanceof R1?e:s})();return new PM(a,{docsPath:t,...i})}function fR(e,{format:t}){if(!t)return{};const i={};function a(c){const l=Object.keys(c);for(const f of l)f in e&&(i[f]=e[f]),c[f]&&typeof c[f]=="object"&&!Array.isArray(c[f])&&a(c[f])}const s=t(e||{});return a(s),i}const LM={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function $1(e){const t={};return typeof e.authorizationList<"u"&&(t.authorizationList=qM(e.authorizationList)),typeof e.accessList<"u"&&(t.accessList=e.accessList),typeof e.blobVersionedHashes<"u"&&(t.blobVersionedHashes=e.blobVersionedHashes),typeof e.blobs<"u"&&(typeof e.blobs[0]!="string"?t.blobs=e.blobs.map(i=>Un(i)):t.blobs=e.blobs),typeof e.data<"u"&&(t.data=e.data),typeof e.from<"u"&&(t.from=e.from),typeof e.gas<"u"&&(t.gas=Pe(e.gas)),typeof e.gasPrice<"u"&&(t.gasPrice=Pe(e.gasPrice)),typeof e.maxFeePerBlobGas<"u"&&(t.maxFeePerBlobGas=Pe(e.maxFeePerBlobGas)),typeof e.maxFeePerGas<"u"&&(t.maxFeePerGas=Pe(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<"u"&&(t.maxPriorityFeePerGas=Pe(e.maxPriorityFeePerGas)),typeof e.nonce<"u"&&(t.nonce=Pe(e.nonce)),typeof e.to<"u"&&(t.to=e.to),typeof e.type<"u"&&(t.type=LM[e.type]),typeof e.value<"u"&&(t.value=Pe(e.value)),t}function qM(e){return e.map(t=>({address:t.address,r:t.r?Pe(BigInt(t.r)):t.r,s:t.s?Pe(BigInt(t.s)):t.s,chainId:Pe(t.chainId),nonce:Pe(t.nonce),...typeof t.yParity<"u"?{yParity:Pe(t.yParity)}:{},...typeof t.v<"u"&&typeof t.yParity>"u"?{v:Pe(t.v)}:{}}))}function bI(e){if(!(!e||e.length===0))return e.reduce((t,{slot:i,value:a})=>{if(i.length!==66)throw new iI({size:i.length,targetSize:66,type:"hex"});if(a.length!==66)throw new iI({size:a.length,targetSize:66,type:"hex"});return t[i]=a,t},{})}function $M(e){const{balance:t,nonce:i,state:a,stateDiff:s,code:c}=e,l={};if(c!==void 0&&(l.code=c),t!==void 0&&(l.balance=Pe(t)),i!==void 0&&(l.nonce=Pe(i)),a!==void 0&&(l.state=bI(a)),s!==void 0){if(l.state)throw new EM;l.stateDiff=bI(s)}return l}function HM(e){if(!e)return;const t={};for(const{address:i,...a}of e){if(!yn(i,{strict:!1}))throw new Hn({address:i});if(t[i])throw new xM({address:i});t[i]=$M(a)}return t}function Jd(e){const{account:t,gasPrice:i,maxFeePerGas:a,maxPriorityFeePerGas:s,to:c}=e,l=t?Zn(t):void 0;if(l&&!yn(l.address))throw new Hn({address:l.address});if(c&&!yn(c))throw new Hn({address:c});if(typeof i<"u"&&(typeof a<"u"||typeof s<"u"))throw new YD;if(a&&a>Kd)throw new Do({maxFeePerGas:a});if(s&&a&&s>a)throw new zc({maxFeePerGas:a,maxPriorityFeePerGas:s})}class kM extends De{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}class H1 extends De{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}class zM extends De{constructor({maxPriorityFeePerGas:t}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${Qr(t)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}class GM extends De{constructor({blockHash:t,blockNumber:i}){let a="Block";t&&(a=`Block at hash "${t}"`),i&&(a=`Block at number "${i}"`),super(`${a} could not be found.`,{name:"BlockNotFoundError"})}}const QM={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function VM(e){const t={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?Xi(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?Xi(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?QM[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&&(t.authorizationList=KM(e.authorizationList)),t.yParity=(()=>{if(e.yParity)return Number(e.yParity);if(typeof t.v=="bigint"){if(t.v===0n||t.v===27n)return 0;if(t.v===1n||t.v===28n)return 1;if(t.v>=35n)return t.v%2n===0n?1:0}})(),t.type==="legacy"&&(delete t.accessList,delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas,delete t.yParity),t.type==="eip2930"&&(delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),t.type==="eip1559"&&delete t.maxFeePerBlobGas,t}function KM(e){return e.map(t=>({address:t.address,chainId:Number(t.chainId),nonce:Number(t.nonce),r:t.r,s:t.s,yParity:Number(t.yParity)}))}function YM(e){const t=(e.transactions??[]).map(i=>typeof i=="string"?i:VM(i));return{...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:t,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}async function _d(e,{blockHash:t,blockNumber:i,blockTag:a=e.experimental_blockTag??"latest",includeTransactions:s}={}){var h,b,v;const c=s??!1,l=i!==void 0?Pe(i):void 0;let f=null;if(t?f=await e.request({method:"eth_getBlockByHash",params:[t,c]},{dedupe:!0}):f=await e.request({method:"eth_getBlockByNumber",params:[l||a,c]},{dedupe:!!l}),!f)throw new GM({blockHash:t,blockNumber:i});return(((v=(b=(h=e.chain)==null?void 0:h.formatters)==null?void 0:b.block)==null?void 0:v.format)||YM)(f)}async function dR(e){const t=await e.request({method:"eth_gasPrice"});return BigInt(t)}async function XM(e,t){var c,l;const{block:i,chain:a=e.chain,request:s}=t||{};try{const f=((c=a==null?void 0:a.fees)==null?void 0:c.maxPriorityFeePerGas)??((l=a==null?void 0:a.fees)==null?void 0:l.defaultPriorityFee);if(typeof f=="function"){const h=i||await Dn(e,_d,"getBlock")({}),b=await f({block:h,client:e,request:s});if(b===null)throw new Error;return b}if(typeof f<"u")return f;const p=await e.request({method:"eth_maxPriorityFeePerGas"});return di(p)}catch{const[f,p]=await Promise.all([i?Promise.resolve(i):Dn(e,_d,"getBlock")({}),Dn(e,dR,"getGasPrice")({})]);if(typeof f.baseFeePerGas!="bigint")throw new H1;const h=p-f.baseFeePerGas;return h<0n?0n:h}}async function vI(e,t){var A,I;const{block:i,chain:a=e.chain,request:s,type:c="eip1559"}=t||{},l=await(async()=>{var C,U;return typeof((C=a==null?void 0:a.fees)==null?void 0:C.baseFeeMultiplier)=="function"?a.fees.baseFeeMultiplier({block:i,client:e,request:s}):((U=a==null?void 0:a.fees)==null?void 0:U.baseFeeMultiplier)??1.2})();if(l<1)throw new kM;const p=10**(((A=l.toString().split(".")[1])==null?void 0:A.length)??0),h=C=>C*BigInt(Math.ceil(l*p))/BigInt(p),b=i||await Dn(e,_d,"getBlock")({});if(typeof((I=a==null?void 0:a.fees)==null?void 0:I.estimateFeesPerGas)=="function"){const C=await a.fees.estimateFeesPerGas({block:i,client:e,multiply:h,request:s,type:c});if(C!==null)return C}if(c==="eip1559"){if(typeof b.baseFeePerGas!="bigint")throw new H1;const C=typeof(s==null?void 0:s.maxPriorityFeePerGas)=="bigint"?s.maxPriorityFeePerGas:await XM(e,{block:b,chain:a,request:s}),U=h(b.baseFeePerGas);return{maxFeePerGas:(s==null?void 0:s.maxFeePerGas)??U+C,maxPriorityFeePerGas:C}}return{gasPrice:(s==null?void 0:s.gasPrice)??h(await Dn(e,dR,"getGasPrice")({}))}}async function Fl(e){const t=await e.request({method:"eth_chainId"},{dedupe:!0});return Xi(t)}const hR=["blobVersionedHashes","chainId","fees","gas","nonce","type"],xI=new Map;async function k1(e,t){const{account:i=e.account,blobs:a,chain:s,gas:c,kzg:l,nonce:f,nonceManager:p,parameters:h=hR,type:b}=t,v=i&&Zn(i),A={...t,...v?{from:v==null?void 0:v.address}:{}};let I;async function C(){return I||(I=await Dn(e,_d,"getBlock")({blockTag:"latest"}),I)}let U;async function B(){return U||(s?s.id:typeof t.chainId<"u"?t.chainId:(U=await Dn(e,Fl,"getChainId")({}),U))}if(h.includes("nonce")&&typeof f>"u"&&v)if(p){const _=await B();A.nonce=await p.consume({address:v.address,chainId:_,client:e})}else A.nonce=await Dn(e,rR,"getTransactionCount")({address:v.address,blockTag:"pending"});if((h.includes("blobVersionedHashes")||h.includes("sidecars"))&&a&&l){const _=F1({blobs:a,kzg:l});if(h.includes("blobVersionedHashes")){const D=LB({commitments:_,to:"hex"});A.blobVersionedHashes=D}if(h.includes("sidecars")){const D=T1({blobs:a,commitments:_,kzg:l}),M=zB({blobs:a,commitments:_,proofs:D,to:"hex"});A.sidecars=M}}if(h.includes("chainId")&&(A.chainId=await B()),(h.includes("fees")||h.includes("type"))&&typeof b>"u")try{A.type=KB(A)}catch{let _=xI.get(e.uid);if(typeof _>"u"){const D=await C();_=typeof(D==null?void 0:D.baseFeePerGas)=="bigint",xI.set(e.uid,_)}A.type=_?"eip1559":"legacy"}if(h.includes("fees"))if(A.type!=="legacy"&&A.type!=="eip2930"){if(typeof A.maxFeePerGas>"u"||typeof A.maxPriorityFeePerGas>"u"){const _=await C(),{maxFeePerGas:D,maxPriorityFeePerGas:M}=await vI(e,{block:_,chain:s,request:A});if(typeof t.maxPriorityFeePerGas>"u"&&t.maxFeePerGas&&t.maxFeePerGas<M)throw new zM({maxPriorityFeePerGas:M});A.maxPriorityFeePerGas=M,A.maxFeePerGas=D}}else{if(typeof t.maxFeePerGas<"u"||typeof t.maxPriorityFeePerGas<"u")throw new H1;if(typeof t.gasPrice>"u"){const _=await C(),{gasPrice:D}=await vI(e,{block:_,chain:s,request:A,type:"legacy"});A.gasPrice=D}}return h.includes("gas")&&typeof c>"u"&&(A.gas=await Dn(e,JM,"estimateGas")({...A,account:v&&{address:v.address,type:"json-rpc"}})),Jd(A),delete A.parameters,A}async function ZM(e,{address:t,blockNumber:i,blockTag:a=e.experimental_blockTag??"latest"}){const s=typeof i=="bigint"?Pe(i):void 0,c=await e.request({method:"eth_getBalance",params:[t,s||a]});return BigInt(c)}async function JM(e,t){var c,l,f;const{account:i=e.account}=t,a=i?Zn(i):void 0;try{let pe=function(re){const{block:fe,request:Z,rpcStateOverride:O}=re;return e.request({method:"eth_estimateGas",params:O?[Z,fe??e.experimental_blockTag??"latest",O]:fe?[Z,fe]:[Z]})};var s=pe;const{accessList:p,authorizationList:h,blobs:b,blobVersionedHashes:v,blockNumber:A,blockTag:I,data:C,gas:U,gasPrice:B,maxFeePerBlobGas:_,maxFeePerGas:D,maxPriorityFeePerGas:M,nonce:te,value:z,stateOverride:ne,...ce}=await k1(e,{...t,parameters:(a==null?void 0:a.type)==="local"?void 0:["blobVersionedHashes"]}),F=(typeof A=="bigint"?Pe(A):void 0)||I,H=HM(ne),K=await(async()=>{if(ce.to)return ce.to;if(h&&h.length>0)return await cR({authorization:h[0]}).catch(()=>{throw new De("`to` is required. Could not infer from `authorizationList`")})})();Jd(t);const G=(f=(l=(c=e.chain)==null?void 0:c.formatters)==null?void 0:l.transactionRequest)==null?void 0:f.format,X=(G||$1)({...fR(ce,{format:G}),from:a==null?void 0:a.address,accessList:p,authorizationList:h,blobs:b,blobVersionedHashes:v,data:C,gas:U,gasPrice:B,maxFeePerBlobGas:_,maxFeePerGas:D,maxPriorityFeePerGas:M,nonce:te,to:K,value:z});let R=BigInt(await pe({block:F,request:X,rpcStateOverride:H}));if(h){const re=await ZM(e,{address:X.from}),fe=await Promise.all(h.map(async Z=>{const{address:O}=Z,V=await pe({block:F,request:{authorizationList:void 0,data:C,from:a==null?void 0:a.address,to:O,value:Pe(re)},rpcStateOverride:H}).catch(()=>100000n);return 2n*BigInt(V)}));R+=fe.reduce((Z,O)=>Z+O,0n)}return R}catch(p){throw NM(p,{...t,account:a,chain:e.chain})}}function WM(e,t){if(!yn(e,{strict:!1}))throw new Hn({address:e});if(!yn(t,{strict:!1}))throw new Hn({address:t});return e.toLowerCase()===t.toLowerCase()}const o0="/docs/contract/encodeDeployData";function ej(e){const{abi:t,args:i,bytecode:a}=e;if(!i||i.length===0)return a;const s=t.find(l=>"type"in l&&l.type==="constructor");if(!s)throw new EU({docsPath:o0});if(!("inputs"in s))throw new fI({docsPath:o0});if(!s.inputs||s.inputs.length===0)throw new fI({docsPath:o0});const c=Zd(s.inputs,i);return La([a,c])}function pR(){let e=()=>{},t=()=>{};return{promise:new Promise((a,s)=>{e=a,t=s}),resolve:e,reject:t}}const s0=new Map;function tj({fn:e,id:t,shouldSplitBatch:i,wait:a=0,sort:s}){const c=async()=>{const b=p();l();const v=b.map(({args:A})=>A);v.length!==0&&e(v).then(A=>{s&&Array.isArray(A)&&A.sort(s);for(let I=0;I<b.length;I++){const{resolve:C}=b[I];C==null||C([A[I],A])}}).catch(A=>{for(let I=0;I<b.length;I++){const{reject:C}=b[I];C==null||C(A)}})},l=()=>s0.delete(t),f=()=>p().map(({args:b})=>b),p=()=>s0.get(t)||[],h=b=>s0.set(t,[...p(),b]);return{flush:l,async schedule(b){const{promise:v,resolve:A,reject:I}=pR();return(i==null?void 0:i([...f(),b]))&&c(),p().length>0?(h({args:b,resolve:A,reject:I}),v):(h({args:b,resolve:A,reject:I}),setTimeout(c,a),v)}}}const u0=new Map,EI=new Map;let nj=0;function rj(e,t,i){const a=++nj,s=()=>u0.get(e)||[],c=()=>{const b=s();u0.set(e,b.filter(v=>v.id!==a))},l=()=>{const b=s();if(!b.some(A=>A.id===a))return;const v=EI.get(e);if(b.length===1&&v){const A=v();A instanceof Promise&&A.catch(()=>{})}c()},f=s();if(u0.set(e,[...f,{id:a,fns:t}]),f&&f.length>0)return l;const p={};for(const b in t)p[b]=((...v)=>{var I,C;const A=s();if(A.length!==0)for(const U of A)(C=(I=U.fns)[b])==null||C.call(I,...v)});const h=i(p);return typeof h=="function"&&EI.set(e,h),l}async function e1(e){return new Promise(t=>setTimeout(t,e))}function ij(e,{emitOnBegin:t,initialWaitTime:i,interval:a}){let s=!0;const c=()=>s=!1;return(async()=>{let f;f=await e({unpoll:c});const p=await(i==null?void 0:i(f))??a;await e1(p);const h=async()=>{s&&(await e({unpoll:c}),await e1(a),h())};h()})(),c}class No extends De{constructor({docsPath:t}={}){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(`
61
- `),{docsPath:t,docsSlug:"account",name:"AccountNotFoundError"})}}class Ed extends De{constructor({docsPath:t,metaMessages:i,type:a}){super(`Account type "${a}" is not supported.`,{docsPath:t,metaMessages:i,name:"AccountTypeNotSupportedError"})}}function yR({chain:e,currentChainId:t}){if(!e)throw new cU;if(t!==e.id)throw new uU({chain:e,currentChainId:t})}function gR(e,{docsPath:t,...i}){const a=(()=>{const s=lR(e,i);return s instanceof R1?e:s})();return new WD(a,{docsPath:t,...i})}async function mR(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]},{retryCount:0})}const c0=new Qd(128);async function Wd(e,t){var D,M,te,z;const{account:i=e.account,chain:a=e.chain,accessList:s,authorizationList:c,blobs:l,data:f,gas:p,gasPrice:h,maxFeePerBlobGas:b,maxFeePerGas:v,maxPriorityFeePerGas:A,nonce:I,type:C,value:U,...B}=t;if(typeof i>"u")throw new No({docsPath:"/docs/actions/wallet/sendTransaction"});const _=i?Zn(i):null;try{Jd(t);const ne=await(async()=>{if(t.to)return t.to;if(t.to!==null&&c&&c.length>0)return await cR({authorization:c[0]}).catch(()=>{throw new De("`to` is required. Could not infer from `authorizationList`.")})})();if((_==null?void 0:_.type)==="json-rpc"||_===null){let ce;a!==null&&(ce=await Dn(e,Fl,"getChainId")({}),yR({currentChainId:ce,chain:a}));const oe=(te=(M=(D=e.chain)==null?void 0:D.formatters)==null?void 0:M.transactionRequest)==null?void 0:te.format,H=(oe||$1)({...fR(B,{format:oe}),accessList:s,authorizationList:c,blobs:l,chainId:ce,data:f,from:_==null?void 0:_.address,gas:p,gasPrice:h,maxFeePerBlobGas:b,maxFeePerGas:v,maxPriorityFeePerGas:A,nonce:I,to:ne,type:C,value:U}),K=c0.get(e.uid),G=K?"wallet_sendTransaction":"eth_sendTransaction";try{return await e.request({method:G,params:[H]},{retryCount:0})}catch(Y){if(K===!1)throw Y;const X=Y;if(X.name==="InvalidInputRpcError"||X.name==="InvalidParamsRpcError"||X.name==="MethodNotFoundRpcError"||X.name==="MethodNotSupportedRpcError")return await e.request({method:"wallet_sendTransaction",params:[H]},{retryCount:0}).then(pe=>(c0.set(e.uid,!0),pe)).catch(pe=>{const R=pe;throw R.name==="MethodNotFoundRpcError"||R.name==="MethodNotSupportedRpcError"?(c0.set(e.uid,!1),X):R});throw X}}if((_==null?void 0:_.type)==="local"){const ce=await Dn(e,k1,"prepareTransactionRequest")({account:_,accessList:s,authorizationList:c,blobs:l,chain:a,data:f,gas:p,gasPrice:h,maxFeePerBlobGas:b,maxFeePerGas:v,maxPriorityFeePerGas:A,nonce:I,nonceManager:_.nonceManager,parameters:[...hR,"sidecars"],type:C,value:U,...B,to:ne}),oe=(z=a==null?void 0:a.serializers)==null?void 0:z.transaction,F=await _.signTransaction(ce,{serializer:oe});return await Dn(e,mR,"sendRawTransaction")({serializedTransaction:F})}throw(_==null?void 0:_.type)==="smart"?new Ed({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new Ed({docsPath:"/docs/actions/wallet/sendTransaction",type:_==null?void 0:_.type})}catch(ne){throw ne instanceof Ed?ne:gR(ne,{...t,account:_,chain:t.chain||void 0})}}async function aj(e,t){const{abi:i,account:a=e.account,address:s,args:c,dataSuffix:l,functionName:f,...p}=t;if(typeof a>"u")throw new No({docsPath:"/docs/contract/writeContract"});const h=a?Zn(a):null,b=sR({abi:i,args:c,functionName:f});try{return await Dn(e,Wd,"sendTransaction")({data:`${b}${l?l.replace("0x",""):""}`,to:s,account:h,...p})}catch(v){throw RM(v,{abi:i,address:s,args:c,docsPath:"/docs/contract/writeContract",functionName:f,sender:h==null?void 0:h.address})}}class oj extends De{constructor(t){super(`Call bundle failed with status: ${t.statusCode}`,{name:"BundleFailedError"}),Object.defineProperty(this,"result",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.result=t}}function AR(e,{delay:t=100,retryCount:i=2,shouldRetry:a=()=>!0}={}){return new Promise((s,c)=>{const l=async({count:f=0}={})=>{const p=async({error:h})=>{const b=typeof t=="function"?t({count:f,error:h}):t;b&&await e1(b),l({count:f+1})};try{const h=await e();s(h)}catch(h){if(f<i&&await a({count:f,error:h}))return p({error:h});c(h)}};l()})}const sj={"0x0":"reverted","0x1":"success"},bR="0x5792579257925792579257925792579257925792579257925792579257925792",vR=Pe(0,{size:32});async function uj(e,t){const{account:i=e.account,capabilities:a,chain:s=e.chain,experimental_fallback:c,experimental_fallbackDelay:l=32,forceAtomic:f=!1,id:p,version:h="2.0.0"}=t,b=i?Zn(i):null,v=t.calls.map(A=>{const I=A,C=I.abi?sR({abi:I.abi,functionName:I.functionName,args:I.args}):I.data;return{data:I.dataSuffix&&C?pi([C,I.dataSuffix]):C,to:I.to,value:I.value?Pe(I.value):void 0}});try{const A=await e.request({method:"wallet_sendCalls",params:[{atomicRequired:f,calls:v,capabilities:a,chainId:Pe(s.id),from:b==null?void 0:b.address,id:p,version:h}]},{retryCount:0});return typeof A=="string"?{id:A}:A}catch(A){const I=A;if(c&&(I.name==="MethodNotFoundRpcError"||I.name==="MethodNotSupportedRpcError"||I.name==="UnknownRpcError"||I.details.toLowerCase().includes("does not exist / is not available")||I.details.toLowerCase().includes("missing or invalid. request()")||I.details.toLowerCase().includes("did not match any variant of untagged enum")||I.details.toLowerCase().includes("account upgraded to unsupported contract")||I.details.toLowerCase().includes("eip-7702 not supported")||I.details.toLowerCase().includes("unsupported wc_ method")||I.details.toLowerCase().includes("feature toggled misconfigured"))){if(a&&Object.values(a).some(D=>!D.optional)){const D="non-optional `capabilities` are not supported on fallback to `eth_sendTransaction`.";throw new tu(new De(D,{details:D}))}if(f&&v.length>1){const _="`forceAtomic` is not supported on fallback to `eth_sendTransaction`.";throw new nu(new De(_,{details:_}))}const C=[];for(const _ of v){const D=Wd(e,{account:b,chain:s,data:_.data,to:_.to,value:_.value?di(_.value):void 0});C.push(D),l>0&&await new Promise(M=>setTimeout(M,l))}const U=await Promise.allSettled(C);if(U.every(_=>_.status==="rejected"))throw U[0].reason;const B=U.map(_=>_.status==="fulfilled"?_.value:vR);return{id:pi([...B,Pe(s.id,{size:32}),bR])}}throw gR(A,{...t,account:b,chain:t.chain})}}async function xR(e,t){async function i(b){if(b.endsWith(bR.slice(2))){const A=ja(Xb(b,-64,-32)),I=Xb(b,0,-64).slice(2).match(/.{1,64}/g),C=await Promise.all(I.map(B=>vR.slice(2)!==B?e.request({method:"eth_getTransactionReceipt",params:[`0x${B}`]},{dedupe:!0}):void 0)),U=C.some(B=>B===null)?100:C.every(B=>(B==null?void 0:B.status)==="0x1")?200:C.every(B=>(B==null?void 0:B.status)==="0x0")?500:600;return{atomic:!1,chainId:Xi(A),receipts:C.filter(Boolean),status:U,version:"2.0.0"}}return e.request({method:"wallet_getCallsStatus",params:[b]})}const{atomic:a=!1,chainId:s,receipts:c,version:l="2.0.0",...f}=await i(t.id),[p,h]=(()=>{const b=f.status;return b>=100&&b<200?["pending",b]:b>=200&&b<300?["success",b]:b>=300&&b<700?["failure",b]:b==="CONFIRMED"?["success",200]:b==="PENDING"?["pending",100]:[void 0,b]})();return{...f,atomic:a,chainId:s?Xi(s):void 0,receipts:(c==null?void 0:c.map(b=>({...b,blockNumber:di(b.blockNumber),gasUsed:di(b.gasUsed),status:sj[b.status]})))??[],statusCode:h,status:p,version:l}}async function cj(e,t){const{id:i,pollingInterval:a=e.pollingInterval,status:s=({statusCode:U})=>U===200||U>=300,retryCount:c=4,retryDelay:l=({count:U})=>~~(1<<U)*200,timeout:f=6e4,throwOnFailure:p=!1}=t,h=Vr(["waitForCallsStatus",e.uid,i]),{promise:b,resolve:v,reject:A}=pR();let I;const C=rj(h,{resolve:v,reject:A},U=>{const B=ij(async()=>{const _=D=>{clearTimeout(I),B(),D(),C()};try{const D=await AR(async()=>{const M=await xR(e,{id:i});if(p&&M.status==="failure")throw new oj(M);return M},{retryCount:c,delay:l});if(!s(D))return;_(()=>U.resolve(D))}catch(D){_(()=>U.reject(D))}},{interval:a,emitOnBegin:!0});return B});return I=f?setTimeout(()=>{C(),clearTimeout(I),A(new lj({id:i}))},f):void 0,await b}class lj extends De{constructor({id:t}){super(`Timed out while waiting for call bundle with id "${t}" to be confirmed.`,{name:"WaitForCallsStatusTimeoutError"})}}const t1=256;let cd=t1,ld;function ER(e=11){if(!ld||cd+e>t1*2){ld="",cd=0;for(let t=0;t<t1;t++)ld+=(256+Math.random()*256|0).toString(16).substring(1)}return ld.substring(cd,cd+++e)}function fj(e){const{batch:t,chain:i,ccipRead:a,key:s="base",name:c="Base Client",type:l="base"}=e,f=e.experimental_blockTag??(typeof(i==null?void 0:i.experimental_preconfirmationTime)=="number"?"pending":void 0),p=(i==null?void 0:i.blockTime)??12e3,h=Math.min(Math.max(Math.floor(p/2),500),4e3),b=e.pollingInterval??h,v=e.cacheTime??b,A=e.account?Zn(e.account):void 0,{config:I,request:C,value:U}=e.transport({chain:i,pollingInterval:b}),B={...I,...U},_={account:A,batch:t,cacheTime:v,ccipRead:a,chain:i,key:s,name:c,pollingInterval:b,request:C,transport:B,type:l,uid:ER(),...f?{experimental_blockTag:f}:{}};function D(M){return te=>{const z=te(M);for(const ce in _)delete z[ce];const ne={...M,...z};return Object.assign(ne,{extend:D(ne)})}}return Object.assign(_,{extend:D(_)})}const fd=new Qd(8192);function dj(e,{enabled:t=!0,id:i}){if(!t||!i)return e();if(fd.get(i))return fd.get(i);const a=e().finally(()=>fd.delete(i));return fd.set(i,a),a}function hj(e,t={}){return async(i,a={})=>{var v;const{dedupe:s=!1,methods:c,retryDelay:l=150,retryCount:f=3,uid:p}={...t,...a},{method:h}=i;if((v=c==null?void 0:c.exclude)!=null&&v.includes(h))throw new To(new Error("method not supported"),{method:h});if(c!=null&&c.include&&!c.include.includes(h))throw new To(new Error("method not supported"),{method:h});const b=s?Js(`${p}.${Vr(i)}`):void 0;return dj(()=>AR(async()=>{try{return await e(i)}catch(A){const I=A;switch(I.code){case Vc.code:throw new Vc(I);case Kc.code:throw new Kc(I);case Yc.code:throw new Yc(I,{method:i.method});case Xc.code:throw new Xc(I);case Uo.code:throw new Uo(I);case Zc.code:throw new Zc(I);case Jc.code:throw new Jc(I);case Wc.code:throw new Wc(I);case el.code:throw new el(I);case To.code:throw new To(I,{method:i.method});case eu.code:throw new eu(I);case tl.code:throw new tl(I);case Qs.code:throw new Qs(I);case nl.code:throw new nl(I);case rl.code:throw new rl(I);case il.code:throw new il(I);case al.code:throw new al(I);case ol.code:throw new ol(I);case tu.code:throw new tu(I);case sl.code:throw new sl(I);case ul.code:throw new ul(I);case cl.code:throw new cl(I);case ll.code:throw new ll(I);case fl.code:throw new fl(I);case nu.code:throw new nu(I);case 5e3:throw new Qs(I);default:throw A instanceof De?A:new TM(I)}}},{delay:({count:A,error:I})=>{var C;if(I&&I instanceof Nc){const U=(C=I==null?void 0:I.headers)==null?void 0:C.get("Retry-After");if(U!=null&&U.match(/\d/))return Number.parseInt(U)*1e3}return~~(1<<A)*l},retryCount:f,shouldRetry:({error:A})=>pj(A)}),{enabled:s,id:b})}}function pj(e){return"code"in e&&typeof e.code=="number"?e.code===-1||e.code===eu.code||e.code===Uo.code:e instanceof Nc&&e.status?e.status===403||e.status===408||e.status===413||e.status===429||e.status===500||e.status===502||e.status===503||e.status===504:!0}function yj({key:e,methods:t,name:i,request:a,retryCount:s=3,retryDelay:c=150,timeout:l,type:f},p){const h=ER();return{config:{key:e,methods:t,name:i,request:a,retryCount:s,retryDelay:c,timeout:l,type:f},request:hj(a,{methods:t,retryCount:s,retryDelay:c,uid:h}),value:p}}class gj extends De{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}function mj(e,{errorInstance:t=new Error("timed out"),timeout:i,signal:a}){return new Promise((s,c)=>{(async()=>{let l;try{const f=new AbortController;i>0&&(l=setTimeout(()=>{a&&f.abort()},i)),s(await e({signal:(f==null?void 0:f.signal)||null}))}catch(f){(f==null?void 0:f.name)==="AbortError"&&c(t),c(f)}finally{clearTimeout(l)}})()})}function Aj(){return{current:0,take(){return this.current++},reset(){this.current=0}}}const wI=Aj();function bj(e,t={}){return{async request(i){var v;const{body:a,onRequest:s=t.onRequest,onResponse:c=t.onResponse,timeout:l=t.timeout??1e4}=i,f={...t.fetchOptions??{},...i.fetchOptions??{}},{headers:p,method:h,signal:b}=f;try{const A=await mj(async({signal:C})=>{const U={...f,body:Array.isArray(a)?Vr(a.map(M=>({jsonrpc:"2.0",id:M.id??wI.take(),...M}))):Vr({jsonrpc:"2.0",id:a.id??wI.take(),...a}),headers:{"Content-Type":"application/json",...p},method:h||"POST",signal:b||(l>0?C:null)},B=new Request(e,U),_=await(s==null?void 0:s(B,U))??{...U,url:e};return await fetch(_.url??e,_)},{errorInstance:new gI({body:a,url:e}),timeout:l,signal:!0});c&&await c(A);let I;if((v=A.headers.get("Content-Type"))!=null&&v.startsWith("application/json"))I=await A.json();else{I=await A.text();try{I=JSON.parse(I||"{}")}catch(C){if(A.ok)throw C;I={error:I}}}if(!A.ok)throw new Nc({body:a,details:Vr(I.error)||A.statusText,headers:A.headers,status:A.status,url:e});return I}catch(A){throw A instanceof Nc||A instanceof gI?A:new Nc({body:a,cause:A,url:e})}}}}function Lc(e,t={}){const{batch:i,fetchOptions:a,key:s="http",methods:c,name:l="HTTP JSON-RPC",onFetchRequest:f,onFetchResponse:p,retryDelay:h,raw:b}=t;return({chain:v,retryCount:A,timeout:I})=>{const{batchSize:C=1e3,wait:U=0}=typeof i=="object"?i:{},B=t.retryCount??A,_=I??t.timeout??1e4,D=v==null?void 0:v.rpcUrls.default.http[0];if(!D)throw new gj;const M=bj(D,{fetchOptions:a,onRequest:f,onResponse:p,timeout:_});return yj({key:s,methods:c,name:l,async request({method:te,params:z}){const ne={method:te,params:z},{schedule:ce}=tj({id:D,wait:U,shouldSplitBatch(K){return K.length>C},fn:K=>M.request({body:K}),sort:(K,G)=>K.id-G.id}),oe=async K=>i?ce(K):[await M.request({body:K})],[{error:F,result:H}]=await oe(ne);if(b)return{error:F,result:H};if(F)throw new q1({body:ne,error:F,url:D});return H},retryCount:B,retryDelay:h,timeout:_,type:"http"},{fetchOptions:a,url:D})}}function vj(e){return{formatters:void 0,fees:void 0,serializers:void 0,...e}}async function xj(e,{chain:t}){const{id:i,name:a,nativeCurrency:s,rpcUrls:c,blockExplorers:l}=t;await e.request({method:"wallet_addEthereumChain",params:[{chainId:Pe(i),chainName:a,nativeCurrency:s,rpcUrls:c.default.http,blockExplorerUrls:l?Object.values(l).map(({url:f})=>f):void 0}]},{dedupe:!0,retryCount:0})}function Ej(e,t){const{abi:i,args:a,bytecode:s,...c}=t,l=ej({abi:i,args:a,bytecode:s});return Wd(e,{...c,...c.authorizationList?{to:null}:{},data:l})}async function wj(e){var i;return((i=e.account)==null?void 0:i.type)==="local"?[e.account.address]:(await e.request({method:"eth_accounts"},{dedupe:!0})).map(a=>Sl(a))}async function Ij(e,t={}){const{account:i=e.account,chainId:a}=t,s=i?Zn(i):void 0,c=a?[s==null?void 0:s.address,[Pe(a)]]:[s==null?void 0:s.address],l=await e.request({method:"wallet_getCapabilities",params:c}),f={};for(const[p,h]of Object.entries(l)){f[Number(p)]={};for(let[b,v]of Object.entries(h))b==="addSubAccount"&&(b="unstable_addSubAccount"),f[Number(p)][b]=v}return typeof a=="number"?f[a]:f}async function Sj(e){return await e.request({method:"wallet_getPermissions"},{dedupe:!0})}async function wR(e,t){var p;const{account:i=e.account,chainId:a,nonce:s}=t;if(!i)throw new No({docsPath:"/docs/eip7702/prepareAuthorization"});const c=Zn(i),l=(()=>{if(t.executor)return t.executor==="self"?t.executor:Zn(t.executor)})(),f={address:t.contractAddress??t.address,chainId:a,nonce:s};return typeof f.chainId>"u"&&(f.chainId=((p=e.chain)==null?void 0:p.id)??await Dn(e,Fl,"getChainId")({})),typeof f.nonce>"u"&&(f.nonce=await Dn(e,rR,"getTransactionCount")({address:c.address,blockTag:"pending"}),(l==="self"||l!=null&&l.address&&WM(l.address,c.address))&&(f.nonce+=1)),f}async function Cj(e){return(await e.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(i=>_D(i))}async function Oj(e,t){return e.request({method:"wallet_requestPermissions",params:[t]},{retryCount:0})}async function Fj(e,t){const{id:i}=t;await e.request({method:"wallet_showCallsStatus",params:[i]})}async function Tj(e,t){const{account:i=e.account}=t;if(!i)throw new No({docsPath:"/docs/eip7702/signAuthorization"});const a=Zn(i);if(!a.signAuthorization)throw new Ed({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:a.type});const s=await wR(e,t);return a.signAuthorization(s)}async function Bj(e,{account:t=e.account,message:i}){if(!t)throw new No({docsPath:"/docs/actions/wallet/signMessage"});const a=Zn(t);if(a.signMessage)return a.signMessage({message:i});const s=typeof i=="string"?Js(i):i.raw instanceof Uint8Array?hi(i.raw):i.raw;return e.request({method:"personal_sign",params:[s,a.address]},{retryCount:0})}async function Rj(e,t){var h,b,v,A;const{account:i=e.account,chain:a=e.chain,...s}=t;if(!i)throw new No({docsPath:"/docs/actions/wallet/signTransaction"});const c=Zn(i);Jd({account:c,...t});const l=await Dn(e,Fl,"getChainId")({});a!==null&&yR({currentChainId:l,chain:a});const f=(a==null?void 0:a.formatters)||((h=e.chain)==null?void 0:h.formatters),p=((b=f==null?void 0:f.transactionRequest)==null?void 0:b.format)||$1;return c.signTransaction?c.signTransaction({...s,chainId:l},{serializer:(A=(v=e.chain)==null?void 0:v.serializers)==null?void 0:A.transaction}):await e.request({method:"eth_signTransaction",params:[{...p(s),chainId:Pe(l),from:c.address}]},{retryCount:0})}async function _j(e,t){const{account:i=e.account,domain:a,message:s,primaryType:c}=t;if(!i)throw new No({docsPath:"/docs/actions/wallet/signTypedData"});const l=Zn(i),f={EIP712Domain:JB({domain:a}),...t.types};if(ZB({domain:a,message:s,primaryType:c,types:f}),l.signTypedData)return l.signTypedData({domain:a,message:s,primaryType:c,types:f});const p=GU({domain:a,message:s,primaryType:c,types:f});return e.request({method:"eth_signTypedData_v4",params:[l.address,p]},{retryCount:0})}async function Dj(e,{id:t}){await e.request({method:"wallet_switchEthereumChain",params:[{chainId:Pe(t)}]},{retryCount:0})}async function Uj(e,t){return await e.request({method:"wallet_watchAsset",params:t},{retryCount:0})}function Mj(e){return{addChain:t=>xj(e,t),deployContract:t=>Ej(e,t),getAddresses:()=>wj(e),getCallsStatus:t=>xR(e,t),getCapabilities:t=>Ij(e,t),getChainId:()=>Fl(e),getPermissions:()=>Sj(e),prepareAuthorization:t=>wR(e,t),prepareTransactionRequest:t=>k1(e,t),requestAddresses:()=>Cj(e),requestPermissions:t=>Oj(e,t),sendCalls:t=>uj(e,t),sendRawTransaction:t=>mR(e,t),sendTransaction:t=>Wd(e,t),showCallsStatus:t=>Fj(e,t),signAuthorization:t=>Tj(e,t),signMessage:t=>Bj(e,t),signTransaction:t=>Rj(e,t),signTypedData:t=>_j(e,t),switchChain:t=>Dj(e,t),waitForCallsStatus:t=>cj(e,t),watchAsset:t=>Uj(e,t),writeContract:t=>aj(e,t)}}function qc(e){const{key:t="wallet",name:i="Wallet Client",transport:a}=e;return fj({...e,key:t,name:i,transport:a,type:"walletClient"}).extend(Mj)}const $c=vj({id:31337,name:"Hardhat",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]}}}),St={DB_HOST:{key:"DB_HOST",isSecret:!1,type:"string",defaultValue:"localhost",description:"Paima Engine Postgres Host URL. Example: 'localhost'"},DB_NAME:{key:"DB_NAME",isSecret:!1,type:"string",defaultValue:"postgres",description:"Paima Engine Postgres Database Name. Example: 'postgres'"},DB_PORT:{key:"DB_PORT",isSecret:!1,type:"number",defaultValue:5432,description:"Paima Engine Postgres Port. Example: '5432'"},DB_PW:{key:"DB_PW",isSecret:!0,type:"string",defaultValue:"postgres",description:"Paima Engine Postgres Password. Example: 'password'"},DB_USER:{key:"DB_USER",isSecret:!1,type:"string",defaultValue:"postgres",description:"Paima Engine Postgres User. Example: 'postgres'"},NODE_ENV:{key:"NODE_ENV",isSecret:!1,type:"string",defaultValue:void 0,description:"Node Environment. Example: 'development' or 'production'"},ORCHESTRATOR_URL:{key:"ORCHESTRATOR_URL",isSecret:!1,type:"string",defaultValue:"http://localhost",description:"Paima Engine Orchestrator URL. Example: 'http://localhost'"},ORCHESTRATOR_PORT:{key:"ORCHESTRATOR_PORT",isSecret:!1,type:"number",defaultValue:3e3,description:"Paima Engine Orchestrator Port. Used by the TUI to monitor processes. Example: '3000'"},TUI_LOG_URL:{key:"TUI_LOG_URL",isSecret:!1,type:"string",defaultValue:"http://localhost",description:"TUI Log URL. Example: 'http://localhost'"},TUI_LOG_PORT:{key:"TUI_LOG_PORT",isSecret:!1,type:"number",defaultValue:11033,description:"TUI Log Port. Example: '11033'"},SHELL:{isSystem:!0,key:"SHELL",isSecret:!1,type:"string",defaultValue:void 0,description:"System shell path. This is set by the OS. Used to run TUI/tmux commands"},TMUX:{isSystem:!0,key:"TMUX",isSecret:!1,type:"string",defaultValue:void 0,description:"System tmux path. This is set by Tmux itself. Used to check if the process is running in a tmux session"},RECAPTCHA_V3_FRONTEND:{key:"RECAPTCHA_V3_FRONTEND",isSecret:!1,type:"string",defaultValue:void 0,description:"ReCaptcha V3 Frontend Key. Used by the Batcher to verify requests. Leave empty to disable. Example: '6Lc123456789012345678901234567890'"},BATCHER_PORT:{key:"BATCHER_PORT",isSecret:!1,type:"number",defaultValue:3334,description:"Batcher Port. Example: '3334'"},STORE_HISTORICAL_GAME_INPUTS:{key:"STORE_HISTORICAL_GAME_INPUTS",isSecret:!1,type:"boolean",defaultValue:!0,description:"Store Historical Game Inputs. Example: 'true' or 'false'"},MQTT_BROKER:{key:"MQTT_BROKER",isSecret:!1,type:"boolean",defaultValue:!0,description:"MQTT Broker. Example: 'true' or 'false'"},MQTT_ENGINE_BROKER_URL:{key:"MQTT_ENGINE_BROKER_URL",isSecret:!1,type:"string",defaultValue:"ws://127.0.0.1:8883",description:"MQTT Engine Broker URL. Example: 'ws://127.0.0.1:8883'"},MQTT_ENGINE_BROKER_PORT:{key:"MQTT_ENGINE_BROKER_PORT",isSecret:!1,type:"number",defaultValue:8883,description:"MQTT Engine Broker Port. Example: '8883'"},MQTT_BATCHER_BROKER_URL:{key:"MQTT_BATCHER_BROKER_URL",isSecret:!1,type:"string",defaultValue:"ws://127.0.0.1:8884",description:"MQTT Batcher Broker URL. Example: 'ws://127.0.0.1:8884'"},MQTT_BATCHER_BROKER_PORT:{key:"MQTT_BATCHER_BROKER_PORT",isSecret:!1,type:"number",defaultValue:8884,description:"MQTT Batcher Broker Port. Example: '8884'"},PAIMA_API_PORT:{key:"PAIMA_API_PORT",isSecret:!1,type:"number",defaultValue:9999,description:"Main Paima API Port. Used by developers custom endpoints and RPC endpoints. Example: '9999'"},PAIMA_EXPLORER_PORT:{key:"PAIMA_EXPLORER_PORT",isSecret:!1,type:"number",defaultValue:10590,description:"Explorer Port. Example: '10590'"},PAIMA_CHAIN_ID:{key:"PAIMA_CHAIN_ID",isSecret:!1,type:"number",defaultValue:87401284021,description:"Paima Chain ID. Example: '87401284021'"},PGLITE:{key:"PGLITE",isSecret:!1,type:"boolean",defaultValue:!0,description:"Enable single connection mode and other specific PGLite features. IMPORTANT enable only for development. ('true' or 'false')"},DEBUG_PGLITE:{key:"DEBUG_PGLITE",isSecret:!1,type:"number",defaultValue:void 0,description:"Enable PGLite Debug/Verbose mode. Example: '1'"},OTEL_COLLECTOR_PORT:{key:"OTEL_COLLECTOR_PORT",isSecret:!1,type:"number",defaultValue:4318,description:"OTEL Collector Port. Example: '4318'"},DOCS_PORT:{key:"DOCS_PORT",isSecret:!1,type:"number",defaultValue:10600,description:"Docs Port. Example: '10600'"}};class Ve{static get MQTT_BROKER(){return Ve.getConfig(St.MQTT_BROKER)}static get MQTT_ENGINE_BROKER_PORT(){return Ve.getConfig(St.MQTT_ENGINE_BROKER_PORT)}static get MQTT_BATCHER_BROKER_PORT(){return Ve.getConfig(St.MQTT_BATCHER_BROKER_PORT)}static get MQTT_ENGINE_BROKER_URL(){return Ve.getConfig(St.MQTT_ENGINE_BROKER_URL)}static get MQTT_BATCHER_BROKER_URL(){return Ve.getConfig(St.MQTT_BATCHER_BROKER_URL)}static get DB_HOST(){return Ve.getConfig(St.DB_HOST)}static get DB_NAME(){return Ve.getConfig(St.DB_NAME)}static get DB_PORT(){return Ve.getConfig(St.DB_PORT)}static get DB_PW(){return Ve.getConfig(St.DB_PW)}static get DB_USER(){return Ve.getConfig(St.DB_USER)}static get NODE_ENV(){return Ve.getConfig(St.NODE_ENV)}static get ORCHESTRATOR_URL(){return Ve.getConfig(St.ORCHESTRATOR_URL)}static get ORCHESTRATOR_PORT(){return Ve.getConfig(St.ORCHESTRATOR_PORT)}static get TUI_LOG_URL(){return Ve.getConfig(St.TUI_LOG_URL)}static get TUI_LOG_PORT(){return Ve.getConfig(St.TUI_LOG_PORT)}static get SHELL(){return Ve.getConfig(St.SHELL)}static get TMUX(){return Ve.getConfig(St.TMUX)}static get PAIMA_API_PORT(){return Ve.getConfig(St.PAIMA_API_PORT)}static get RECAPTCHA_V3_FRONTEND(){return Ve.getConfig(St.RECAPTCHA_V3_FRONTEND)}static get BATCHER_PORT(){return Ve.getConfig(St.BATCHER_PORT)}static get PAIMA_EXPLORER_PORT(){return Ve.getConfig(St.PAIMA_EXPLORER_PORT)}static get PAIMA_CHAIN_ID(){return Ve.getConfig(St.PAIMA_CHAIN_ID)}static get PGLITE(){return Ve.getConfig(St.PGLITE)}static get DEBUG_PGLITE(){return Ve.getConfig(St.DEBUG_PGLITE)}static get OTEL_COLLECTOR_PORT(){return Ve.getConfig(St.OTEL_COLLECTOR_PORT)}static get DOCS_PORT(){return Ve.getConfig(St.DOCS_PORT)}static getConfig(t){switch(t.type){case"string":return Ve.getString(t.key,t.defaultValue);case"number":return Ve.getNumber(t.key,t.defaultValue);case"boolean":return Ve.getBoolean(t.key,t.defaultValue);default:throw new Error(`Invalid config type: ${t}`)}}static getCurrentConfig(t=!1){const i="********",a={};return Object.entries(St).forEach(([s,c])=>{c.isSecret?a[s]=t?Ve[s]:i:a[s]=Ve[s]}),a}static getDocumentation(){return Object.fromEntries(Object.entries(St).map(([t,i])=>[t,{defaultValue:i.defaultValue,description:i.description}]))}static getBoolean(t,i=!1){const a=Ve.getEnv(t);return a==null||a===""?i:["true","1","yes"].includes(a.toLowerCase())}static getNumber(t,i=0){const a=Ve.getEnv(t);return a==null||a===""?i:parseInt(a,10)}static getString(t,i=""){return Ve.getEnv(t)??i}static getEnv(t){try{return Deno.env.get(t)}catch{return it.env[t]}}}function jj(e){return rn(e)&&!tr(e)&&!Bl(e)&&Symbol.asyncIterator in e}function tr(e){return Array.isArray(e)}function IR(e){return typeof e=="bigint"}function Tl(e){return typeof e=="boolean"}function z1(e){return e instanceof globalThis.Date}function Pj(e){return typeof e=="function"}function Nj(e){return rn(e)&&!tr(e)&&!Bl(e)&&Symbol.iterator in e}function Lj(e){return e===null}function yi(e){return typeof e=="number"}function rn(e){return typeof e=="object"&&e!==null}function SR(e){return e instanceof globalThis.RegExp}function Xt(e){return typeof e=="string"}function qj(e){return typeof e=="symbol"}function Bl(e){return e instanceof globalThis.Uint8Array}function tn(e){return e===void 0}function $j(e){return e.map(t=>Dd(t))}function Hj(e){return new Date(e.getTime())}function kj(e){return new Uint8Array(e)}function zj(e){return new RegExp(e.source,e.flags)}function Gj(e){const t={};for(const i of Object.getOwnPropertyNames(e))t[i]=Dd(e[i]);for(const i of Object.getOwnPropertySymbols(e))t[i]=Dd(e[i]);return t}function Dd(e){return tr(e)?$j(e):z1(e)?Hj(e):Bl(e)?kj(e):SR(e)?zj(e):rn(e)?Gj(e):e}function fr(e){return Dd(e)}function G1(e,t){return fr(t===void 0?e:{...t,...e})}function Qj(e){return gi(e)&&globalThis.Symbol.asyncIterator in e}function Vj(e){return gi(e)&&globalThis.Symbol.iterator in e}function Kj(e){return e instanceof globalThis.Promise}function eh(e){return e instanceof Date&&globalThis.Number.isFinite(e.getTime())}function Yj(e){return e instanceof globalThis.Map}function Xj(e){return e instanceof globalThis.Set}function Zj(e){return globalThis.ArrayBuffer.isView(e)}function CR(e){return e instanceof globalThis.Uint8Array}function Jj(e,t){return t in e}function gi(e){return e!==null&&typeof e=="object"}function Pa(e){return globalThis.Array.isArray(e)&&!globalThis.ArrayBuffer.isView(e)}function Lo(e){return e===void 0}function Q1(e){return e===null}function V1(e){return typeof e=="boolean"}function Bo(e){return typeof e=="number"}function Wj(e){return globalThis.Number.isInteger(e)}function K1(e){return typeof e=="bigint"}function Rl(e){return typeof e=="string"}function OR(e){return typeof e=="function"}function Y1(e){return typeof e=="symbol"}function eP(e){return K1(e)||V1(e)||Q1(e)||Bo(e)||Rl(e)||Y1(e)||Lo(e)}var Na;(function(e){e.InstanceMode="default",e.ExactOptionalPropertyTypes=!1,e.AllowArrayObject=!1,e.AllowNaN=!1,e.AllowNullVoid=!1;function t(l,f){return e.ExactOptionalPropertyTypes?f in l:l[f]!==void 0}e.IsExactOptionalProperty=t;function i(l){const f=gi(l);return e.AllowArrayObject?f:f&&!Pa(l)}e.IsObjectLike=i;function a(l){return i(l)&&!(l instanceof Date)&&!(l instanceof Uint8Array)}e.IsRecordLike=a;function s(l){return e.AllowNaN?Bo(l):Number.isFinite(l)}e.IsNumberLike=s;function c(l){const f=Lo(l);return e.AllowNullVoid?f||l===null:f}e.IsVoidLike=c})(Na||(Na={}));function tP(e){return globalThis.Object.freeze(e).map(t=>Ud(t))}function nP(e){const t={};for(const i of Object.getOwnPropertyNames(e))t[i]=Ud(e[i]);for(const i of Object.getOwnPropertySymbols(e))t[i]=Ud(e[i]);return globalThis.Object.freeze(t)}function Ud(e){return tr(e)?tP(e):z1(e)?e:Bl(e)?e:SR(e)?e:rn(e)?nP(e):e}function Ue(e,t){const i=t!==void 0?{...t,...e}:e;switch(Na.InstanceMode){case"freeze":return Ud(i);case"clone":return fr(i);default:return i}}class Ai extends Error{constructor(t){super(t)}}const Rr=Symbol.for("TypeBox.Transform"),_l=Symbol.for("TypeBox.Readonly"),Ji=Symbol.for("TypeBox.Optional"),th=Symbol.for("TypeBox.Hint"),Le=Symbol.for("TypeBox.Kind");function X1(e){return rn(e)&&e[_l]==="Readonly"}function qa(e){return rn(e)&&e[Ji]==="Optional"}function FR(e){return ot(e,"Any")}function TR(e){return ot(e,"Argument")}function lu(e){return ot(e,"Array")}function nh(e){return ot(e,"AsyncIterator")}function rh(e){return ot(e,"BigInt")}function Dl(e){return ot(e,"Boolean")}function fu(e){return ot(e,"Computed")}function du(e){return ot(e,"Constructor")}function rP(e){return ot(e,"Date")}function hu(e){return ot(e,"Function")}function pu(e){return ot(e,"Integer")}function Dr(e){return ot(e,"Intersect")}function ih(e){return ot(e,"Iterator")}function ot(e,t){return rn(e)&&Le in e&&e[Le]===t}function BR(e){return Tl(e)||yi(e)||Xt(e)}function qo(e){return ot(e,"Literal")}function $o(e){return ot(e,"MappedKey")}function gr(e){return ot(e,"MappedResult")}function Ul(e){return ot(e,"Never")}function iP(e){return ot(e,"Not")}function Z1(e){return ot(e,"Null")}function yu(e){return ot(e,"Number")}function ei(e){return ot(e,"Object")}function ah(e){return ot(e,"Promise")}function oh(e){return ot(e,"Record")}function Jn(e){return ot(e,"Ref")}function RR(e){return ot(e,"RegExp")}function Ml(e){return ot(e,"String")}function J1(e){return ot(e,"Symbol")}function Ho(e){return ot(e,"TemplateLiteral")}function aP(e){return ot(e,"This")}function sh(e){return rn(e)&&Rr in e}function ko(e){return ot(e,"Tuple")}function W1(e){return ot(e,"Undefined")}function An(e){return ot(e,"Union")}function oP(e){return ot(e,"Uint8Array")}function sP(e){return ot(e,"Unknown")}function uP(e){return ot(e,"Unsafe")}function cP(e){return ot(e,"Void")}function _R(e){return rn(e)&&Le in e&&Xt(e[Le])}function Vi(e){return FR(e)||TR(e)||lu(e)||Dl(e)||rh(e)||nh(e)||fu(e)||du(e)||rP(e)||hu(e)||pu(e)||Dr(e)||ih(e)||qo(e)||$o(e)||gr(e)||Ul(e)||iP(e)||Z1(e)||yu(e)||ei(e)||ah(e)||oh(e)||Jn(e)||RR(e)||Ml(e)||J1(e)||Ho(e)||aP(e)||ko(e)||W1(e)||An(e)||oP(e)||sP(e)||uP(e)||cP(e)||_R(e)}const lP=["Argument","Any","Array","AsyncIterator","BigInt","Boolean","Computed","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function DR(e){try{return new RegExp(e),!0}catch{return!1}}function ev(e){if(!Xt(e))return!1;for(let t=0;t<e.length;t++){const i=e.charCodeAt(t);if(i>=7&&i<=13||i===27||i===127)return!1}return!0}function UR(e){return tv(e)||Sn(e)}function Cc(e){return tn(e)||IR(e)}function Ft(e){return tn(e)||yi(e)}function tv(e){return tn(e)||Tl(e)}function xt(e){return tn(e)||Xt(e)}function fP(e){return tn(e)||Xt(e)&&ev(e)&&DR(e)}function dP(e){return tn(e)||Xt(e)&&ev(e)}function MR(e){return tn(e)||Sn(e)}function Md(e){return rn(e)&&e[Ji]==="Optional"}function Yr(e){return st(e,"Any")&&xt(e.$id)}function hP(e){return st(e,"Argument")&&yi(e.index)}function zo(e){return st(e,"Array")&&e.type==="array"&&xt(e.$id)&&Sn(e.items)&&Ft(e.minItems)&&Ft(e.maxItems)&&tv(e.uniqueItems)&&MR(e.contains)&&Ft(e.minContains)&&Ft(e.maxContains)}function nv(e){return st(e,"AsyncIterator")&&e.type==="AsyncIterator"&&xt(e.$id)&&Sn(e.items)}function uh(e){return st(e,"BigInt")&&e.type==="bigint"&&xt(e.$id)&&Cc(e.exclusiveMaximum)&&Cc(e.exclusiveMinimum)&&Cc(e.maximum)&&Cc(e.minimum)&&Cc(e.multipleOf)}function Go(e){return st(e,"Boolean")&&e.type==="boolean"&&xt(e.$id)}function pP(e){return st(e,"Computed")&&Xt(e.target)&&tr(e.parameters)&&e.parameters.every(t=>Sn(t))}function ch(e){return st(e,"Constructor")&&e.type==="Constructor"&&xt(e.$id)&&tr(e.parameters)&&e.parameters.every(t=>Sn(t))&&Sn(e.returns)}function lh(e){return st(e,"Date")&&e.type==="Date"&&xt(e.$id)&&Ft(e.exclusiveMaximumTimestamp)&&Ft(e.exclusiveMinimumTimestamp)&&Ft(e.maximumTimestamp)&&Ft(e.minimumTimestamp)&&Ft(e.multipleOfTimestamp)}function fh(e){return st(e,"Function")&&e.type==="Function"&&xt(e.$id)&&tr(e.parameters)&&e.parameters.every(t=>Sn(t))&&Sn(e.returns)}function Wi(e){return st(e,"Integer")&&e.type==="integer"&&xt(e.$id)&&Ft(e.exclusiveMaximum)&&Ft(e.exclusiveMinimum)&&Ft(e.maximum)&&Ft(e.minimum)&&Ft(e.multipleOf)}function jR(e){return rn(e)&&Object.entries(e).every(([t,i])=>ev(t)&&Sn(i))}function Qo(e){return st(e,"Intersect")&&!(Xt(e.type)&&e.type!=="object")&&tr(e.allOf)&&e.allOf.every(t=>Sn(t)&&!vP(t))&&xt(e.type)&&(tv(e.unevaluatedProperties)||MR(e.unevaluatedProperties))&&xt(e.$id)}function rv(e){return st(e,"Iterator")&&e.type==="Iterator"&&xt(e.$id)&&Sn(e.items)}function st(e,t){return rn(e)&&Le in e&&e[Le]===t}function PR(e){return $a(e)&&Xt(e.const)}function NR(e){return $a(e)&&yi(e.const)}function LR(e){return $a(e)&&Tl(e.const)}function $a(e){return st(e,"Literal")&&xt(e.$id)&&yP(e.const)}function yP(e){return Tl(e)||yi(e)||Xt(e)}function gP(e){return st(e,"MappedKey")&&tr(e.keys)&&e.keys.every(t=>yi(t)||Xt(t))}function mP(e){return st(e,"MappedResult")&&jR(e.properties)}function Ha(e){return st(e,"Never")&&rn(e.not)&&Object.getOwnPropertyNames(e.not).length===0}function ru(e){return st(e,"Not")&&Sn(e.not)}function iv(e){return st(e,"Null")&&e.type==="null"&&xt(e.$id)}function Yn(e){return st(e,"Number")&&e.type==="number"&&xt(e.$id)&&Ft(e.exclusiveMaximum)&&Ft(e.exclusiveMinimum)&&Ft(e.maximum)&&Ft(e.minimum)&&Ft(e.multipleOf)}function qt(e){return st(e,"Object")&&e.type==="object"&&xt(e.$id)&&jR(e.properties)&&UR(e.additionalProperties)&&Ft(e.minProperties)&&Ft(e.maxProperties)}function av(e){return st(e,"Promise")&&e.type==="Promise"&&xt(e.$id)&&Sn(e.item)}function In(e){return st(e,"Record")&&e.type==="object"&&xt(e.$id)&&UR(e.additionalProperties)&&rn(e.patternProperties)&&(t=>{const i=Object.getOwnPropertyNames(t.patternProperties);return i.length===1&&DR(i[0])&&rn(t.patternProperties)&&Sn(t.patternProperties[i[0]])})(e)}function AP(e){return st(e,"Ref")&&xt(e.$id)&&Xt(e.$ref)}function dl(e){return st(e,"RegExp")&&xt(e.$id)&&Xt(e.source)&&Xt(e.flags)&&Ft(e.maxLength)&&Ft(e.minLength)}function Xr(e){return st(e,"String")&&e.type==="string"&&xt(e.$id)&&Ft(e.minLength)&&Ft(e.maxLength)&&fP(e.pattern)&&dP(e.format)}function hl(e){return st(e,"Symbol")&&e.type==="symbol"&&xt(e.$id)}function pl(e){return st(e,"TemplateLiteral")&&e.type==="string"&&Xt(e.pattern)&&e.pattern[0]==="^"&&e.pattern[e.pattern.length-1]==="$"}function bP(e){return st(e,"This")&&xt(e.$id)&&Xt(e.$ref)}function vP(e){return rn(e)&&Rr in e}function dh(e){return st(e,"Tuple")&&e.type==="array"&&xt(e.$id)&&yi(e.minItems)&&yi(e.maxItems)&&e.minItems===e.maxItems&&(tn(e.items)&&tn(e.additionalItems)&&e.minItems===0||tr(e.items)&&e.items.every(t=>Sn(t)))}function Mo(e){return st(e,"Undefined")&&e.type==="undefined"&&xt(e.$id)}function Zi(e){return st(e,"Union")&&xt(e.$id)&&rn(e)&&tr(e.anyOf)&&e.anyOf.every(t=>Sn(t))}function jl(e){return st(e,"Uint8Array")&&e.type==="Uint8Array"&&xt(e.$id)&&Ft(e.minByteLength)&&Ft(e.maxByteLength)}function Zr(e){return st(e,"Unknown")&&xt(e.$id)}function xP(e){return st(e,"Unsafe")}function hh(e){return st(e,"Void")&&e.type==="void"&&xt(e.$id)}function EP(e){return rn(e)&&Le in e&&Xt(e[Le])&&!lP.includes(e[Le])}function Sn(e){return rn(e)&&(Yr(e)||hP(e)||zo(e)||Go(e)||uh(e)||nv(e)||pP(e)||ch(e)||lh(e)||fh(e)||Wi(e)||Qo(e)||rv(e)||$a(e)||gP(e)||mP(e)||Ha(e)||ru(e)||iv(e)||Yn(e)||qt(e)||av(e)||In(e)||AP(e)||dl(e)||Xr(e)||hl(e)||pl(e)||bP(e)||dh(e)||Mo(e)||Zi(e)||jl(e)||Zr(e)||xP(e)||hh(e)||EP(e))}const wP="(true|false)",wd="(0|[1-9][0-9]*)",qR="(.*)",IP="(?!.*)",iu=`^${wd}$`,au=`^${qR}$`,SP=`^${IP}$`,ov=new Map;function CP(e){return ov.has(e)}function bi(e,t){ov.set(e,t)}function OP(e){return ov.get(e)}const $R=new Map;function HR(e){return $R.has(e)}function FP(e){return $R.get(e)}function TP(e,t){return e.includes(t)}function BP(e){return[...new Set(e)]}function RP(e,t){return e.filter(i=>t.includes(i))}function _P(e,t){return e.reduce((i,a)=>RP(i,a),t)}function DP(e){return e.length===1?e[0]:e.length>1?_P(e.slice(1),e[0]):[]}function UP(e){const t=[];for(const i of e)t.push(...i);return t}function yl(e){return Ue({[Le]:"Any"},e)}function sv(e,t){return Ue({[Le]:"Array",type:"array",items:e},t)}function MP(e){return Ue({[Le]:"Argument",index:e})}function uv(e,t){return Ue({[Le]:"AsyncIterator",type:"AsyncIterator",items:e},t)}function ln(e,t,i){return Ue({[Le]:"Computed",target:e,parameters:t},i)}function jP(e,t){const{[t]:i,...a}=e;return a}function dr(e,t){return t.reduce((i,a)=>jP(i,a),e)}function Zt(e){return Ue({[Le]:"Never",not:{}},e)}function Cn(e){return Ue({[Le]:"MappedResult",properties:e})}function cv(e,t,i){return Ue({[Le]:"Constructor",type:"Constructor",parameters:e,returns:t},i)}function Pl(e,t,i){return Ue({[Le]:"Function",type:"Function",parameters:e,returns:t},i)}function n1(e,t){return Ue({[Le]:"Union",anyOf:e},t)}function PP(e){return e.some(t=>qa(t))}function II(e){return e.map(t=>qa(t)?NP(t):t)}function NP(e){return dr(e,[Ji])}function LP(e,t){return PP(e)?Ga(n1(II(e),t)):n1(II(e),t)}function gu(e,t){return e.length===1?Ue(e[0],t):e.length===0?Zt(t):LP(e,t)}function On(e,t){return e.length===0?Zt(t):e.length===1?Ue(e[0],t):n1(e,t)}class SI extends Ai{}function qP(e){return e.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}function lv(e,t,i){return e[t]===i&&e.charCodeAt(t-1)!==92}function Gi(e,t){return lv(e,t,"(")}function gl(e,t){return lv(e,t,")")}function kR(e,t){return lv(e,t,"|")}function $P(e){if(!(Gi(e,0)&&gl(e,e.length-1)))return!1;let t=0;for(let i=0;i<e.length;i++)if(Gi(e,i)&&(t+=1),gl(e,i)&&(t-=1),t===0&&i!==e.length-1)return!1;return!0}function HP(e){return e.slice(1,e.length-1)}function kP(e){let t=0;for(let i=0;i<e.length;i++)if(Gi(e,i)&&(t+=1),gl(e,i)&&(t-=1),kR(e,i)&&t===0)return!0;return!1}function zP(e){for(let t=0;t<e.length;t++)if(Gi(e,t))return!0;return!1}function GP(e){let[t,i]=[0,0];const a=[];for(let c=0;c<e.length;c++)if(Gi(e,c)&&(t+=1),gl(e,c)&&(t-=1),kR(e,c)&&t===0){const l=e.slice(i,c);l.length>0&&a.push(ou(l)),i=c+1}const s=e.slice(i);return s.length>0&&a.push(ou(s)),a.length===0?{type:"const",const:""}:a.length===1?a[0]:{type:"or",expr:a}}function QP(e){function t(s,c){if(!Gi(s,c))throw new SI("TemplateLiteralParser: Index must point to open parens");let l=0;for(let f=c;f<s.length;f++)if(Gi(s,f)&&(l+=1),gl(s,f)&&(l-=1),l===0)return[c,f];throw new SI("TemplateLiteralParser: Unclosed group parens in expression")}function i(s,c){for(let l=c;l<s.length;l++)if(Gi(s,l))return[c,l];return[c,s.length]}const a=[];for(let s=0;s<e.length;s++)if(Gi(e,s)){const[c,l]=t(e,s),f=e.slice(c,l+1);a.push(ou(f)),s=l}else{const[c,l]=i(e,s),f=e.slice(c,l);f.length>0&&a.push(ou(f)),s=l-1}return a.length===0?{type:"const",const:""}:a.length===1?a[0]:{type:"and",expr:a}}function ou(e){return $P(e)?ou(HP(e)):kP(e)?GP(e):zP(e)?QP(e):{type:"const",const:qP(e)}}function fv(e){return ou(e.slice(1,e.length-1))}class VP extends Ai{}function KP(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="0"&&e.expr[1].type==="const"&&e.expr[1].const==="[1-9][0-9]*"}function YP(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="true"&&e.expr[1].type==="const"&&e.expr[1].const==="false"}function XP(e){return e.type==="const"&&e.const===".*"}function ml(e){return KP(e)||XP(e)?!1:YP(e)?!0:e.type==="and"?e.expr.every(t=>ml(t)):e.type==="or"?e.expr.every(t=>ml(t)):e.type==="const"?!0:(()=>{throw new VP("Unknown expression type")})()}function ZP(e){const t=fv(e.pattern);return ml(t)}class JP extends Ai{}function*zR(e){if(e.length===1)return yield*e[0];for(const t of e[0])for(const i of zR(e.slice(1)))yield`${t}${i}`}function*WP(e){return yield*zR(e.expr.map(t=>[...ph(t)]))}function*eN(e){for(const t of e.expr)yield*ph(t)}function*tN(e){return yield e.const}function*ph(e){return e.type==="and"?yield*WP(e):e.type==="or"?yield*eN(e):e.type==="const"?yield*tN(e):(()=>{throw new JP("Unknown expression")})()}function GR(e){const t=fv(e.pattern);return ml(t)?[...ph(t)]:[]}function nn(e,t){return Ue({[Le]:"Literal",const:e,type:typeof e},t)}function QR(e){return Ue({[Le]:"Boolean",type:"boolean"},e)}function dv(e){return Ue({[Le]:"BigInt",type:"bigint"},e)}function Vo(e){return Ue({[Le]:"Number",type:"number"},e)}function jo(e){return Ue({[Le]:"String",type:"string"},e)}function*nN(e){const t=e.trim().replace(/"|'/g,"");return t==="boolean"?yield QR():t==="number"?yield Vo():t==="bigint"?yield dv():t==="string"?yield jo():yield(()=>{const i=t.split("|").map(a=>nn(a.trim()));return i.length===0?Zt():i.length===1?i[0]:gu(i)})()}function*rN(e){if(e[1]!=="{"){const t=nn("$"),i=r1(e.slice(1));return yield*[t,...i]}for(let t=2;t<e.length;t++)if(e[t]==="}"){const i=nN(e.slice(2,t)),a=r1(e.slice(t+1));return yield*[...i,...a]}yield nn(e)}function*r1(e){for(let t=0;t<e.length;t++)if(e[t]==="$"){const i=nn(e.slice(0,t)),a=rN(e.slice(t));return yield*[i,...a]}yield nn(e)}function iN(e){return[...r1(e)]}class aN extends Ai{}function oN(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function VR(e,t){return Ho(e)?e.pattern.slice(1,e.pattern.length-1):An(e)?`(${e.anyOf.map(i=>VR(i,t)).join("|")})`:yu(e)?`${t}${wd}`:pu(e)?`${t}${wd}`:rh(e)?`${t}${wd}`:Ml(e)?`${t}${qR}`:qo(e)?`${t}${oN(e.const.toString())}`:Dl(e)?`${t}${wP}`:(()=>{throw new aN(`Unexpected Kind '${e[Le]}'`)})()}function CI(e){return`^${e.map(t=>VR(t,"")).join("")}$`}function jd(e){const i=GR(e).map(a=>nn(a));return gu(i)}function KR(e,t){const i=Xt(e)?CI(iN(e)):CI(e);return Ue({[Le]:"TemplateLiteral",type:"string",pattern:i},t)}function sN(e){return GR(e).map(i=>i.toString())}function uN(e){const t=[];for(const i of e)t.push(...ka(i));return t}function cN(e){return[e.toString()]}function ka(e){return[...new Set(Ho(e)?sN(e):An(e)?uN(e.anyOf):qo(e)?cN(e.const):yu(e)?["[number]"]:pu(e)?["[number]"]:[])]}function lN(e,t,i){const a={};for(const s of Object.getOwnPropertyNames(t))a[s]=yh(e,ka(t[s]),i);return a}function fN(e,t,i){return lN(e,t.properties,i)}function dN(e,t,i){const a=fN(e,t,i);return Cn(a)}function YR(e,t){return e.map(i=>XR(i,t))}function hN(e){return e.filter(t=>!Ul(t))}function pN(e,t){return e3(hN(YR(e,t)))}function yN(e){return e.some(t=>Ul(t))?[]:e}function gN(e,t){return gu(yN(YR(e,t)))}function mN(e,t){return t in e?e[t]:t==="[number]"?gu(e):Zt()}function AN(e,t){return t==="[number]"?e:Zt()}function bN(e,t){return t in e?e[t]:Zt()}function XR(e,t){return Dr(e)?pN(e.allOf,t):An(e)?gN(e.anyOf,t):ko(e)?mN(e.items??[],t):lu(e)?AN(e.items,t):ei(e)?bN(e.properties,t):Zt()}function ZR(e,t){return t.map(i=>XR(e,i))}function OI(e,t){return gu(ZR(e,t))}function yh(e,t,i){if(Jn(e)||Jn(t)){const a="Index types using Ref parameters require both Type and Key to be of TSchema";if(!Vi(e)||!Vi(t))throw new Ai(a);return ln("Index",[e,t])}return gr(t)?dN(e,t,i):$o(t)?wN(e,t,i):Ue(Vi(t)?OI(e,ka(t)):OI(e,t),i)}function vN(e,t,i){return{[t]:yh(e,[t],fr(i))}}function xN(e,t,i){return t.reduce((a,s)=>({...a,...vN(e,s,i)}),{})}function EN(e,t,i){return xN(e,t.keys,i)}function wN(e,t,i){const a=EN(e,t,i);return Cn(a)}function hv(e,t){return Ue({[Le]:"Iterator",type:"Iterator",items:e},t)}function IN(e){const t=[];for(let i in e)qa(e[i])||t.push(i);return t}function SN(e,t){const i=IN(e),a=i.length>0?{[Le]:"Object",type:"object",properties:e,required:i}:{[Le]:"Object",type:"object",properties:e};return Ue(a,t)}var gn=SN;function JR(e,t){return Ue({[Le]:"Promise",type:"Promise",item:e},t)}function CN(e){return Ue(dr(e,[_l]))}function ON(e){return Ue({...e,[_l]:"Readonly"})}function FN(e,t){return t===!1?CN(e):ON(e)}function za(e,t){const i=t??!0;return gr(e)?RN(e,i):FN(e,i)}function TN(e,t){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=za(e[a],t);return i}function BN(e,t){return TN(e.properties,t)}function RN(e,t){const i=BN(e,t);return Cn(i)}function mu(e,t){return Ue(e.length>0?{[Le]:"Tuple",type:"array",items:e,additionalItems:!1,minItems:e.length,maxItems:e.length}:{[Le]:"Tuple",type:"array",minItems:e.length,maxItems:e.length},t)}function WR(e,t){return e in t?Br(e,t[e]):Cn(t)}function _N(e){return{[e]:nn(e)}}function DN(e){const t={};for(const i of e)t[i]=nn(i);return t}function UN(e,t){return TP(t,e)?_N(e):DN(t)}function MN(e,t){const i=UN(e,t);return WR(e,i)}function Oc(e,t){return t.map(i=>Br(e,i))}function jN(e,t){const i={};for(const a of globalThis.Object.getOwnPropertyNames(t))i[a]=Br(e,t[a]);return i}function Br(e,t){const i={...t};return qa(t)?Ga(Br(e,dr(t,[Ji]))):X1(t)?za(Br(e,dr(t,[_l]))):gr(t)?WR(e,t.properties):$o(t)?MN(e,t.keys):du(t)?cv(Oc(e,t.parameters),Br(e,t.returns),i):hu(t)?Pl(Oc(e,t.parameters),Br(e,t.returns),i):nh(t)?uv(Br(e,t.items),i):ih(t)?hv(Br(e,t.items),i):Dr(t)?Qa(Oc(e,t.allOf),i):An(t)?On(Oc(e,t.anyOf),i):ko(t)?mu(Oc(e,t.items??[]),i):ei(t)?gn(jN(e,t.properties),i):lu(t)?sv(Br(e,t.items),i):ah(t)?JR(Br(e,t.item),i):t}function PN(e,t){const i={};for(const a of e)i[a]=Br(a,t);return i}function NN(e,t,i){const a=Vi(e)?ka(e):e,s=t({[Le]:"MappedKey",keys:a}),c=PN(a,s);return gn(c,i)}function LN(e){return Ue(dr(e,[Ji]))}function qN(e){return Ue({...e,[Ji]:"Optional"})}function $N(e,t){return t===!1?LN(e):qN(e)}function Ga(e,t){const i=t??!0;return gr(e)?zN(e,i):$N(e,i)}function HN(e,t){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=Ga(e[a],t);return i}function kN(e,t){return HN(e.properties,t)}function zN(e,t){const i=kN(e,t);return Cn(i)}function i1(e,t={}){const i=e.every(s=>ei(s)),a=Vi(t.unevaluatedProperties)?{unevaluatedProperties:t.unevaluatedProperties}:{};return Ue(t.unevaluatedProperties===!1||Vi(t.unevaluatedProperties)||i?{...a,[Le]:"Intersect",type:"object",allOf:e}:{...a,[Le]:"Intersect",allOf:e},t)}function GN(e){return e.every(t=>qa(t))}function QN(e){return dr(e,[Ji])}function FI(e){return e.map(t=>qa(t)?QN(t):t)}function VN(e,t){return GN(e)?Ga(i1(FI(e),t)):i1(FI(e),t)}function e3(e,t={}){if(e.length===1)return Ue(e[0],t);if(e.length===0)return Zt(t);if(e.some(i=>sh(i)))throw new Error("Cannot intersect transform types");return VN(e,t)}function Qa(e,t){if(e.length===1)return Ue(e[0],t);if(e.length===0)return Zt(t);if(e.some(i=>sh(i)))throw new Error("Cannot intersect transform types");return i1(e,t)}function Nl(...e){const[t,i]=typeof e[0]=="string"?[e[0],e[1]]:[e[0].$id,e[1]];if(typeof t!="string")throw new Ai("Ref: $ref must be a string");return Ue({[Le]:"Ref",$ref:t},i)}function KN(e,t){return ln("Awaited",[ln(e,t)])}function YN(e){return ln("Awaited",[Nl(e)])}function XN(e){return Qa(t3(e))}function ZN(e){return On(t3(e))}function JN(e){return gh(e)}function t3(e){return e.map(t=>gh(t))}function gh(e,t){return Ue(fu(e)?KN(e.target,e.parameters):Dr(e)?XN(e.allOf):An(e)?ZN(e.anyOf):ah(e)?JN(e.item):Jn(e)?YN(e.$ref):e,t)}function n3(e){const t=[];for(const i of e)t.push(mh(i));return t}function WN(e){const t=n3(e);return UP(t)}function eL(e){const t=n3(e);return DP(t)}function tL(e){return e.map((t,i)=>i.toString())}function nL(e){return["[number]"]}function rL(e){return globalThis.Object.getOwnPropertyNames(e)}function iL(e){return a1?globalThis.Object.getOwnPropertyNames(e).map(i=>i[0]==="^"&&i[i.length-1]==="$"?i.slice(1,i.length-1):i):[]}function mh(e){return Dr(e)?WN(e.allOf):An(e)?eL(e.anyOf):ko(e)?tL(e.items??[]):lu(e)?nL(e.items):ei(e)?rL(e.properties):oh(e)?iL(e.patternProperties):[]}let a1=!1;function TI(e){a1=!0;const t=mh(e);return a1=!1,`^(${t.map(a=>`(${a})`).join("|")})$`}function aL(e,t){return ln("KeyOf",[ln(e,t)])}function oL(e){return ln("KeyOf",[Nl(e)])}function sL(e,t){const i=mh(e),a=uL(i),s=gu(a);return Ue(s,t)}function uL(e){return e.map(t=>t==="[number]"?Vo():nn(t))}function pv(e,t){return fu(e)?aL(e.target,e.parameters):Jn(e)?oL(e.$ref):gr(e)?fL(e,t):sL(e,t)}function cL(e,t){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=pv(e[a],fr(t));return i}function lL(e,t){return cL(e.properties,t)}function fL(e,t){const i=lL(e,t);return Cn(i)}function dL(e){const t=[];for(const i of e)t.push(...mh(i));return BP(t)}function hL(e){return e.filter(t=>!Ul(t))}function pL(e,t){const i=[];for(const a of e)i.push(...ZR(a,[t]));return hL(i)}function yL(e,t){const i={};for(const a of t)i[a]=e3(pL(e,a));return i}function gL(e,t){const i=dL(e),a=yL(e,i);return gn(a,t)}function r3(e){return Ue({[Le]:"Date",type:"Date"},e)}function i3(e){return Ue({[Le]:"Null",type:"null"},e)}function a3(e){return Ue({[Le]:"Symbol",type:"symbol"},e)}function o3(e){return Ue({[Le]:"Undefined",type:"undefined"},e)}function s3(e){return Ue({[Le]:"Uint8Array",type:"Uint8Array"},e)}function Ah(e){return Ue({[Le]:"Unknown"},e)}function mL(e){return e.map(t=>yv(t,!1))}function AL(e){const t={};for(const i of globalThis.Object.getOwnPropertyNames(e))t[i]=za(yv(e[i],!1));return t}function dd(e,t){return t===!0?e:za(e)}function yv(e,t){return jj(e)||Nj(e)?dd(yl(),t):tr(e)?za(mu(mL(e))):Bl(e)?s3():z1(e)?r3():rn(e)?dd(gn(AL(e)),t):Pj(e)?dd(Pl([],Ah()),t):tn(e)?o3():Lj(e)?i3():qj(e)?a3():IR(e)?dv():yi(e)||Tl(e)||Xt(e)?nn(e):gn({})}function bL(e,t){return Ue(yv(e,!0),t)}function vL(e,t){return du(e)?mu(e.parameters,t):Zt(t)}function xL(e,t){if(tn(e))throw new Error("Enum undefined or empty");const i=globalThis.Object.getOwnPropertyNames(e).filter(c=>isNaN(c)).map(c=>e[c]),s=[...new Set(i)].map(c=>nn(c));return On(s,{...t,[th]:"Enum"})}class EL extends Ai{}var Ce;(function(e){e[e.Union=0]="Union",e[e.True=1]="True",e[e.False=2]="False"})(Ce||(Ce={}));function _r(e){return e===Ce.False?e:Ce.True}function Au(e){throw new EL(e)}function an(e){return Ha(e)||Qo(e)||Zi(e)||Zr(e)||Yr(e)}function on(e,t){return Ha(t)?l3():Qo(t)?bh(e,t):Zi(t)?mv(e,t):Zr(t)?p3():Yr(t)?gv():Au("StructuralRight")}function gv(e,t){return Ce.True}function wL(e,t){return Qo(t)?bh(e,t):Zi(t)&&t.anyOf.some(i=>Yr(i)||Zr(i))?Ce.True:Zi(t)?Ce.Union:Zr(t)||Yr(t)?Ce.True:Ce.Union}function IL(e,t){return Zr(e)?Ce.False:Yr(e)?Ce.Union:Ha(e)?Ce.True:Ce.False}function SL(e,t){return qt(t)&&vh(t)?Ce.True:an(t)?on(e,t):zo(t)?_r(vt(e.items,t.items)):Ce.False}function CL(e,t){return an(t)?on(e,t):nv(t)?_r(vt(e.items,t.items)):Ce.False}function OL(e,t){return an(t)?on(e,t):qt(t)?jn(e,t):In(t)?Ur(e,t):uh(t)?Ce.True:Ce.False}function u3(e,t){return LR(e)||Go(e)?Ce.True:Ce.False}function FL(e,t){return an(t)?on(e,t):qt(t)?jn(e,t):In(t)?Ur(e,t):Go(t)?Ce.True:Ce.False}function TL(e,t){return an(t)?on(e,t):qt(t)?jn(e,t):ch(t)?e.parameters.length>t.parameters.length?Ce.False:e.parameters.every((i,a)=>_r(vt(t.parameters[a],i))===Ce.True)?_r(vt(e.returns,t.returns)):Ce.False:Ce.False}function BL(e,t){return an(t)?on(e,t):qt(t)?jn(e,t):In(t)?Ur(e,t):lh(t)?Ce.True:Ce.False}function RL(e,t){return an(t)?on(e,t):qt(t)?jn(e,t):fh(t)?e.parameters.length>t.parameters.length?Ce.False:e.parameters.every((i,a)=>_r(vt(t.parameters[a],i))===Ce.True)?_r(vt(e.returns,t.returns)):Ce.False:Ce.False}function c3(e,t){return $a(e)&&yi(e.const)||Yn(e)||Wi(e)?Ce.True:Ce.False}function _L(e,t){return Wi(t)||Yn(t)?Ce.True:an(t)?on(e,t):qt(t)?jn(e,t):In(t)?Ur(e,t):Ce.False}function bh(e,t){return t.allOf.every(i=>vt(e,i)===Ce.True)?Ce.True:Ce.False}function DL(e,t){return e.allOf.some(i=>vt(i,t)===Ce.True)?Ce.True:Ce.False}function UL(e,t){return an(t)?on(e,t):rv(t)?_r(vt(e.items,t.items)):Ce.False}function ML(e,t){return $a(t)&&t.const===e.const?Ce.True:an(t)?on(e,t):qt(t)?jn(e,t):In(t)?Ur(e,t):Xr(t)?h3(e):Yn(t)?f3(e):Wi(t)?c3(e):Go(t)?u3(e):Ce.False}function l3(e,t){return Ce.False}function jL(e,t){return Ce.True}function BI(e){let[t,i]=[e,0];for(;ru(t);)t=t.not,i+=1;return i%2===0?t:Ah()}function PL(e,t){return ru(e)?vt(BI(e),t):ru(t)?vt(e,BI(t)):Au("Invalid fallthrough for Not")}function NL(e,t){return an(t)?on(e,t):qt(t)?jn(e,t):In(t)?Ur(e,t):iv(t)?Ce.True:Ce.False}function f3(e,t){return NR(e)||Yn(e)||Wi(e)?Ce.True:Ce.False}function LL(e,t){return an(t)?on(e,t):qt(t)?jn(e,t):In(t)?Ur(e,t):Wi(t)||Yn(t)?Ce.True:Ce.False}function Wn(e,t){return Object.getOwnPropertyNames(e.properties).length===t}function RI(e){return vh(e)}function _I(e){return Wn(e,0)||Wn(e,1)&&"description"in e.properties&&Zi(e.properties.description)&&e.properties.description.anyOf.length===2&&(Xr(e.properties.description.anyOf[0])&&Mo(e.properties.description.anyOf[1])||Xr(e.properties.description.anyOf[1])&&Mo(e.properties.description.anyOf[0]))}function l0(e){return Wn(e,0)}function DI(e){return Wn(e,0)}function qL(e){return Wn(e,0)}function $L(e){return Wn(e,0)}function HL(e){return vh(e)}function kL(e){const t=Vo();return Wn(e,0)||Wn(e,1)&&"length"in e.properties&&_r(vt(e.properties.length,t))===Ce.True}function zL(e){return Wn(e,0)}function vh(e){const t=Vo();return Wn(e,0)||Wn(e,1)&&"length"in e.properties&&_r(vt(e.properties.length,t))===Ce.True}function GL(e){const t=Pl([yl()],yl());return Wn(e,0)||Wn(e,1)&&"then"in e.properties&&_r(vt(e.properties.then,t))===Ce.True}function d3(e,t){return vt(e,t)===Ce.False||Md(e)&&!Md(t)?Ce.False:Ce.True}function jn(e,t){return Zr(e)?Ce.False:Yr(e)?Ce.Union:Ha(e)||PR(e)&&RI(t)||NR(e)&&l0(t)||LR(e)&&DI(t)||hl(e)&&_I(t)||uh(e)&&qL(t)||Xr(e)&&RI(t)||hl(e)&&_I(t)||Yn(e)&&l0(t)||Wi(e)&&l0(t)||Go(e)&&DI(t)||jl(e)&&HL(t)||lh(e)&&$L(t)||ch(e)&&zL(t)||fh(e)&&kL(t)?Ce.True:In(e)&&Xr(o1(e))?t[th]==="Record"?Ce.True:Ce.False:In(e)&&Yn(o1(e))?Wn(t,0)?Ce.True:Ce.False:Ce.False}function QL(e,t){return an(t)?on(e,t):In(t)?Ur(e,t):qt(t)?(()=>{for(const i of Object.getOwnPropertyNames(t.properties)){if(!(i in e.properties)&&!Md(t.properties[i]))return Ce.False;if(Md(t.properties[i]))return Ce.True;if(d3(e.properties[i],t.properties[i])===Ce.False)return Ce.False}return Ce.True})():Ce.False}function VL(e,t){return an(t)?on(e,t):qt(t)&&GL(t)?Ce.True:av(t)?_r(vt(e.item,t.item)):Ce.False}function o1(e){return iu in e.patternProperties?Vo():au in e.patternProperties?jo():Au("Unknown record key pattern")}function s1(e){return iu in e.patternProperties?e.patternProperties[iu]:au in e.patternProperties?e.patternProperties[au]:Au("Unable to get record value schema")}function Ur(e,t){const[i,a]=[o1(t),s1(t)];return PR(e)&&Yn(i)&&_r(vt(e,a))===Ce.True?Ce.True:jl(e)&&Yn(i)||Xr(e)&&Yn(i)||zo(e)&&Yn(i)?vt(e,a):qt(e)?(()=>{for(const s of Object.getOwnPropertyNames(e.properties))if(d3(a,e.properties[s])===Ce.False)return Ce.False;return Ce.True})():Ce.False}function KL(e,t){return an(t)?on(e,t):qt(t)?jn(e,t):In(t)?vt(s1(e),s1(t)):Ce.False}function YL(e,t){const i=dl(e)?jo():e,a=dl(t)?jo():t;return vt(i,a)}function h3(e,t){return $a(e)&&Xt(e.const)||Xr(e)?Ce.True:Ce.False}function XL(e,t){return an(t)?on(e,t):qt(t)?jn(e,t):In(t)?Ur(e,t):Xr(t)?Ce.True:Ce.False}function ZL(e,t){return an(t)?on(e,t):qt(t)?jn(e,t):In(t)?Ur(e,t):hl(t)?Ce.True:Ce.False}function JL(e,t){return pl(e)?vt(jd(e),t):pl(t)?vt(e,jd(t)):Au("Invalid fallthrough for TemplateLiteral")}function WL(e,t){return zo(t)&&e.items!==void 0&&e.items.every(i=>vt(i,t.items)===Ce.True)}function e5(e,t){return Ha(e)?Ce.True:Zr(e)?Ce.False:Yr(e)?Ce.Union:Ce.False}function t5(e,t){return an(t)?on(e,t):qt(t)&&vh(t)||zo(t)&&WL(e,t)?Ce.True:dh(t)?tn(e.items)&&!tn(t.items)||!tn(e.items)&&tn(t.items)?Ce.False:tn(e.items)&&!tn(t.items)||e.items.every((i,a)=>vt(i,t.items[a])===Ce.True)?Ce.True:Ce.False:Ce.False}function n5(e,t){return an(t)?on(e,t):qt(t)?jn(e,t):In(t)?Ur(e,t):jl(t)?Ce.True:Ce.False}function r5(e,t){return an(t)?on(e,t):qt(t)?jn(e,t):In(t)?Ur(e,t):hh(t)?o5(e):Mo(t)?Ce.True:Ce.False}function mv(e,t){return t.anyOf.some(i=>vt(e,i)===Ce.True)?Ce.True:Ce.False}function i5(e,t){return e.anyOf.every(i=>vt(i,t)===Ce.True)?Ce.True:Ce.False}function p3(e,t){return Ce.True}function a5(e,t){return Ha(t)?l3():Qo(t)?bh(e,t):Zi(t)?mv(e,t):Yr(t)?gv():Xr(t)?h3(e):Yn(t)?f3(e):Wi(t)?c3(e):Go(t)?u3(e):zo(t)?IL(e):dh(t)?e5(e):qt(t)?jn(e,t):Zr(t)?Ce.True:Ce.False}function o5(e,t){return Mo(e)||Mo(e)?Ce.True:Ce.False}function s5(e,t){return Qo(t)?bh(e,t):Zi(t)?mv(e,t):Zr(t)?p3():Yr(t)?gv():qt(t)?jn(e,t):hh(t)?Ce.True:Ce.False}function vt(e,t){return pl(e)||pl(t)?JL(e,t):dl(e)||dl(t)?YL(e,t):ru(e)||ru(t)?PL(e,t):Yr(e)?wL(e,t):zo(e)?SL(e,t):uh(e)?OL(e,t):Go(e)?FL(e,t):nv(e)?CL(e,t):ch(e)?TL(e,t):lh(e)?BL(e,t):fh(e)?RL(e,t):Wi(e)?_L(e,t):Qo(e)?DL(e,t):rv(e)?UL(e,t):$a(e)?ML(e,t):Ha(e)?jL():iv(e)?NL(e,t):Yn(e)?LL(e,t):qt(e)?QL(e,t):In(e)?KL(e,t):Xr(e)?XL(e,t):hl(e)?ZL(e,t):dh(e)?t5(e,t):av(e)?VL(e,t):jl(e)?n5(e,t):Mo(e)?r5(e,t):Zi(e)?i5(e,t):Zr(e)?a5(e,t):hh(e)?s5(e,t):Au(`Unknown left type operand '${e[Le]}'`)}function Ll(e,t){return vt(e,t)}function u5(e,t,i,a,s){const c={};for(const l of globalThis.Object.getOwnPropertyNames(e))c[l]=Av(e[l],t,i,a,fr(s));return c}function c5(e,t,i,a,s){return u5(e.properties,t,i,a,s)}function l5(e,t,i,a,s){const c=c5(e,t,i,a,s);return Cn(c)}function f5(e,t,i,a){const s=Ll(e,t);return s===Ce.Union?On([i,a]):s===Ce.True?i:a}function Av(e,t,i,a,s){return gr(e)?l5(e,t,i,a,s):$o(e)?Ue(y5(e,t,i,a,s)):Ue(f5(e,t,i,a),s)}function d5(e,t,i,a,s){return{[e]:Av(nn(e),t,i,a,fr(s))}}function h5(e,t,i,a,s){return e.reduce((c,l)=>({...c,...d5(l,t,i,a,s)}),{})}function p5(e,t,i,a,s){return h5(e.keys,t,i,a,s)}function y5(e,t,i,a,s){const c=p5(e,t,i,a,s);return Cn(c)}function g5(e){return e.allOf.every(t=>xh(t))}function m5(e){return e.anyOf.some(t=>xh(t))}function A5(e){return!xh(e.not)}function xh(e){return e[Le]==="Intersect"?g5(e):e[Le]==="Union"?m5(e):e[Le]==="Not"?A5(e):e[Le]==="Undefined"}function b5(e,t){return bv(jd(e),t)}function v5(e,t){const i=e.filter(a=>Ll(a,t)===Ce.False);return i.length===1?i[0]:On(i)}function bv(e,t,i={}){return Ho(e)?Ue(b5(e,t),i):gr(e)?Ue(w5(e,t),i):Ue(An(e)?v5(e.anyOf,t):Ll(e,t)!==Ce.False?Zt():e,i)}function x5(e,t){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=bv(e[a],t);return i}function E5(e,t){return x5(e.properties,t)}function w5(e,t){const i=E5(e,t);return Cn(i)}function I5(e,t){return vv(jd(e),t)}function S5(e,t){const i=e.filter(a=>Ll(a,t)!==Ce.False);return i.length===1?i[0]:On(i)}function vv(e,t,i){return Ho(e)?Ue(I5(e,t),i):gr(e)?Ue(F5(e,t),i):Ue(An(e)?S5(e.anyOf,t):Ll(e,t)!==Ce.False?e:Zt(),i)}function C5(e,t){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=vv(e[a],t);return i}function O5(e,t){return C5(e.properties,t)}function F5(e,t){const i=O5(e,t);return Cn(i)}function T5(e,t){return du(e)?Ue(e.returns,t):Zt(t)}function y3(e){return za(Ga(e))}function Ko(e,t,i){return Ue({[Le]:"Record",type:"object",patternProperties:{[e]:t}},i)}function xv(e,t,i){const a={};for(const s of e)a[s]=t;return gn(a,{...i,[th]:"Record"})}function B5(e,t,i){return ZP(e)?xv(ka(e),t,i):Ko(e.pattern,t,i)}function R5(e,t,i){return xv(ka(On(e)),t,i)}function _5(e,t,i){return xv([e.toString()],t,i)}function D5(e,t,i){return Ko(e.source,t,i)}function U5(e,t,i){const a=tn(e.pattern)?au:e.pattern;return Ko(a,t,i)}function M5(e,t,i){return Ko(au,t,i)}function j5(e,t,i){return Ko(SP,t,i)}function P5(e,t,i){return gn({true:t,false:t},i)}function N5(e,t,i){return Ko(iu,t,i)}function L5(e,t,i){return Ko(iu,t,i)}function g3(e,t,i={}){return An(e)?R5(e.anyOf,t,i):Ho(e)?B5(e,t,i):qo(e)?_5(e.const,t,i):Dl(e)?P5(e,t,i):pu(e)?N5(e,t,i):yu(e)?L5(e,t,i):RR(e)?D5(e,t,i):Ml(e)?U5(e,t,i):FR(e)?M5(e,t,i):Ul(e)?j5(e,t,i):Zt(i)}function Ev(e){return globalThis.Object.getOwnPropertyNames(e.patternProperties)[0]}function q5(e){const t=Ev(e);return t===au?jo():t===iu?Vo():jo({pattern:t})}function m3(e){return e.patternProperties[Ev(e)]}function $5(e,t){return t.parameters=ql(e,t.parameters),t.returns=Jr(e,t.returns),t}function H5(e,t){return t.parameters=ql(e,t.parameters),t.returns=Jr(e,t.returns),t}function k5(e,t){return t.allOf=ql(e,t.allOf),t}function z5(e,t){return t.anyOf=ql(e,t.anyOf),t}function G5(e,t){return tn(t.items)||(t.items=ql(e,t.items)),t}function Q5(e,t){return t.items=Jr(e,t.items),t}function V5(e,t){return t.items=Jr(e,t.items),t}function K5(e,t){return t.items=Jr(e,t.items),t}function Y5(e,t){return t.item=Jr(e,t.item),t}function X5(e,t){const i=eq(e,t.properties);return{...t,...gn(i)}}function Z5(e,t){const i=Jr(e,q5(t)),a=Jr(e,m3(t)),s=g3(i,a);return{...t,...s}}function J5(e,t){return t.index in e?e[t.index]:Ah()}function W5(e,t){const i=X1(t),a=qa(t),s=Jr(e,t);return i&&a?y3(s):i&&!a?za(s):!i&&a?Ga(s):s}function eq(e,t){return globalThis.Object.getOwnPropertyNames(t).reduce((i,a)=>({...i,[a]:W5(e,t[a])}),{})}function ql(e,t){return t.map(i=>Jr(e,i))}function Jr(e,t){return du(t)?$5(e,t):hu(t)?H5(e,t):Dr(t)?k5(e,t):An(t)?z5(e,t):ko(t)?G5(e,t):lu(t)?Q5(e,t):nh(t)?V5(e,t):ih(t)?K5(e,t):ah(t)?Y5(e,t):ei(t)?X5(e,t):oh(t)?Z5(e,t):TR(t)?J5(e,t):t}function tq(e,t){return Jr(t,G1(e))}function nq(e){return Ue({[Le]:"Integer",type:"integer"},e)}function rq(e,t,i){return{[e]:bu(nn(e),t,fr(i))}}function iq(e,t,i){return e.reduce((s,c)=>({...s,...rq(c,t,i)}),{})}function aq(e,t,i){return iq(e.keys,t,i)}function oq(e,t,i){const a=aq(e,t,i);return Cn(a)}function sq(e){const[t,i]=[e.slice(0,1),e.slice(1)];return[t.toLowerCase(),i].join("")}function uq(e){const[t,i]=[e.slice(0,1),e.slice(1)];return[t.toUpperCase(),i].join("")}function cq(e){return e.toUpperCase()}function lq(e){return e.toLowerCase()}function fq(e,t,i){const a=fv(e.pattern);if(!ml(a))return{...e,pattern:A3(e.pattern,t)};const l=[...ph(a)].map(h=>nn(h)),f=b3(l,t),p=On(f);return KR([p],i)}function A3(e,t){return typeof e=="string"?t==="Uncapitalize"?sq(e):t==="Capitalize"?uq(e):t==="Uppercase"?cq(e):t==="Lowercase"?lq(e):e:e.toString()}function b3(e,t){return e.map(i=>bu(i,t))}function bu(e,t,i={}){return $o(e)?oq(e,t,i):Ho(e)?fq(e,t,i):An(e)?On(b3(e.anyOf,t),i):qo(e)?nn(A3(e.const,t),i):Ue(e,i)}function dq(e,t={}){return bu(e,"Capitalize",t)}function hq(e,t={}){return bu(e,"Lowercase",t)}function pq(e,t={}){return bu(e,"Uncapitalize",t)}function yq(e,t={}){return bu(e,"Uppercase",t)}function gq(e,t,i){const a={};for(const s of globalThis.Object.getOwnPropertyNames(e))a[s]=Eh(e[s],t,fr(i));return a}function mq(e,t,i){return gq(e.properties,t,i)}function Aq(e,t,i){const a=mq(e,t,i);return Cn(a)}function bq(e,t){return e.map(i=>wv(i,t))}function vq(e,t){return e.map(i=>wv(i,t))}function xq(e,t){const{[t]:i,...a}=e;return a}function Eq(e,t){return t.reduce((i,a)=>xq(i,a),e)}function wq(e,t){const i=dr(e,[Rr,"$id","required","properties"]),a=Eq(e.properties,t);return gn(a,i)}function Iq(e){const t=e.reduce((i,a)=>BR(a)?[...i,nn(a)]:i,[]);return On(t)}function wv(e,t){return Dr(e)?Qa(bq(e.allOf,t)):An(e)?On(vq(e.anyOf,t)):ei(e)?wq(e,t):gn({})}function Eh(e,t,i){const a=tr(t)?Iq(t):t,s=Vi(t)?ka(t):t,c=Jn(e),l=Jn(t);return gr(e)?Aq(e,s,i):$o(t)?Fq(e,t,i):c&&l?ln("Omit",[e,a],i):!c&&l?ln("Omit",[e,a],i):c&&!l?ln("Omit",[e,a],i):Ue({...wv(e,s),...i})}function Sq(e,t,i){return{[t]:Eh(e,[t],fr(i))}}function Cq(e,t,i){return t.reduce((a,s)=>({...a,...Sq(e,s,i)}),{})}function Oq(e,t,i){return Cq(e,t.keys,i)}function Fq(e,t,i){const a=Oq(e,t,i);return Cn(a)}function Tq(e,t,i){const a={};for(const s of globalThis.Object.getOwnPropertyNames(e))a[s]=wh(e[s],t,fr(i));return a}function Bq(e,t,i){return Tq(e.properties,t,i)}function Rq(e,t,i){const a=Bq(e,t,i);return Cn(a)}function _q(e,t){return e.map(i=>Iv(i,t))}function Dq(e,t){return e.map(i=>Iv(i,t))}function Uq(e,t){const i={};for(const a of t)a in e&&(i[a]=e[a]);return i}function Mq(e,t){const i=dr(e,[Rr,"$id","required","properties"]),a=Uq(e.properties,t);return gn(a,i)}function jq(e){const t=e.reduce((i,a)=>BR(a)?[...i,nn(a)]:i,[]);return On(t)}function Iv(e,t){return Dr(e)?Qa(_q(e.allOf,t)):An(e)?On(Dq(e.anyOf,t)):ei(e)?Mq(e,t):gn({})}function wh(e,t,i){const a=tr(t)?jq(t):t,s=Vi(t)?ka(t):t,c=Jn(e),l=Jn(t);return gr(e)?Rq(e,s,i):$o(t)?qq(e,t,i):c&&l?ln("Pick",[e,a],i):!c&&l?ln("Pick",[e,a],i):c&&!l?ln("Pick",[e,a],i):Ue({...Iv(e,s),...i})}function Pq(e,t,i){return{[t]:wh(e,[t],fr(i))}}function Nq(e,t,i){return t.reduce((a,s)=>({...a,...Pq(e,s,i)}),{})}function Lq(e,t,i){return Nq(e,t.keys,i)}function qq(e,t,i){const a=Lq(e,t,i);return Cn(a)}function $q(e,t){return ln("Partial",[ln(e,t)])}function Hq(e){return ln("Partial",[Nl(e)])}function kq(e){const t={};for(const i of globalThis.Object.getOwnPropertyNames(e))t[i]=Ga(e[i]);return t}function zq(e){const t=dr(e,[Rr,"$id","required","properties"]),i=kq(e.properties);return gn(i,t)}function UI(e){return e.map(t=>v3(t))}function v3(e){return fu(e)?$q(e.target,e.parameters):Jn(e)?Hq(e.$ref):Dr(e)?Qa(UI(e.allOf)):An(e)?On(UI(e.anyOf)):ei(e)?zq(e):rh(e)||Dl(e)||pu(e)||qo(e)||Z1(e)||yu(e)||Ml(e)||J1(e)||W1(e)?e:gn({})}function Sv(e,t){return gr(e)?Vq(e,t):Ue({...v3(e),...t})}function Gq(e,t){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=Sv(e[a],fr(t));return i}function Qq(e,t){return Gq(e.properties,t)}function Vq(e,t){const i=Qq(e,t);return Cn(i)}function Kq(e,t){return ln("Required",[ln(e,t)])}function Yq(e){return ln("Required",[Nl(e)])}function Xq(e){const t={};for(const i of globalThis.Object.getOwnPropertyNames(e))t[i]=dr(e[i],[Ji]);return t}function Zq(e){const t=dr(e,[Rr,"$id","required","properties"]),i=Xq(e.properties);return gn(i,t)}function MI(e){return e.map(t=>x3(t))}function x3(e){return fu(e)?Kq(e.target,e.parameters):Jn(e)?Yq(e.$ref):Dr(e)?Qa(MI(e.allOf)):An(e)?On(MI(e.anyOf)):ei(e)?Zq(e):rh(e)||Dl(e)||pu(e)||qo(e)||Z1(e)||yu(e)||Ml(e)||J1(e)||W1(e)?e:gn({})}function Cv(e,t){return gr(e)?e7(e,t):Ue({...x3(e),...t})}function Jq(e,t){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=Cv(e[a],t);return i}function Wq(e,t){return Jq(e.properties,t)}function e7(e,t){const i=Wq(e,t);return Cn(i)}function t7(e,t){return t.map(i=>Jn(i)?Ov(e,i.$ref):hr(e,i))}function Ov(e,t){return t in e?Jn(e[t])?Ov(e,e[t].$ref):hr(e,e[t]):Zt()}function n7(e){return gh(e[0])}function r7(e){return yh(e[0],e[1])}function i7(e){return pv(e[0])}function a7(e){return Sv(e[0])}function o7(e){return Eh(e[0],e[1])}function s7(e){return wh(e[0],e[1])}function u7(e){return Cv(e[0])}function c7(e,t,i){const a=t7(e,i);return t==="Awaited"?n7(a):t==="Index"?r7(a):t==="KeyOf"?i7(a):t==="Partial"?a7(a):t==="Omit"?o7(a):t==="Pick"?s7(a):t==="Required"?u7(a):Zt()}function l7(e,t){return sv(hr(e,t))}function f7(e,t){return uv(hr(e,t))}function d7(e,t,i){return cv($l(e,t),hr(e,i))}function h7(e,t,i){return Pl($l(e,t),hr(e,i))}function p7(e,t){return Qa($l(e,t))}function y7(e,t){return hv(hr(e,t))}function g7(e,t){return gn(globalThis.Object.keys(t).reduce((i,a)=>({...i,[a]:hr(e,t[a])}),{}))}function m7(e,t){const[i,a]=[hr(e,m3(t)),Ev(t)],s=G1(t);return s.patternProperties[a]=i,s}function A7(e,t){return Jn(t)?{...Ov(e,t.$ref),[Rr]:t[Rr]}:t}function b7(e,t){return mu($l(e,t))}function v7(e,t){return On($l(e,t))}function $l(e,t){return t.map(i=>hr(e,i))}function hr(e,t){return qa(t)?Ue(hr(e,dr(t,[Ji])),t):X1(t)?Ue(hr(e,dr(t,[_l])),t):sh(t)?Ue(A7(e,t),t):lu(t)?Ue(l7(e,t.items),t):nh(t)?Ue(f7(e,t.items),t):fu(t)?Ue(c7(e,t.target,t.parameters)):du(t)?Ue(d7(e,t.parameters,t.returns),t):hu(t)?Ue(h7(e,t.parameters,t.returns),t):Dr(t)?Ue(p7(e,t.allOf),t):ih(t)?Ue(y7(e,t.items),t):ei(t)?Ue(g7(e,t.properties),t):oh(t)?Ue(m7(e,t)):ko(t)?Ue(b7(e,t.items||[]),t):An(t)?Ue(v7(e,t.anyOf),t):t}function x7(e,t){return t in e?hr(e,e[t]):Zt()}function E7(e){return globalThis.Object.getOwnPropertyNames(e).reduce((t,i)=>({...t,[i]:x7(e,i)}),{})}class w7{constructor(t){const i=E7(t),a=this.WithIdentifiers(i);this.$defs=a}Import(t,i){const a={...this.$defs,[t]:Ue(this.$defs[t],i)};return Ue({[Le]:"Import",$defs:a,$ref:t})}WithIdentifiers(t){return globalThis.Object.getOwnPropertyNames(t).reduce((i,a)=>({...i,[a]:{...t[a],$id:a}}),{})}}function I7(e){return new w7(e)}function S7(e,t){return Ue({[Le]:"Not",not:e},t)}function C7(e,t){return hu(e)?mu(e.parameters,t):Zt()}let O7=0;function F7(e,t={}){tn(t.$id)&&(t.$id=`T${O7++}`);const i=G1(e({[Le]:"This",$ref:`${t.$id}`}));return i.$id=t.$id,Ue({[th]:"Recursive",...i},t)}function T7(e,t){const i=Xt(e)?new globalThis.RegExp(e):e;return Ue({[Le]:"RegExp",type:"RegExp",source:i.source,flags:i.flags},t)}function B7(e){return Dr(e)?e.allOf:An(e)?e.anyOf:ko(e)?e.items??[]:[]}function R7(e){return B7(e)}function _7(e,t){return hu(e)?Ue(e.returns,t):Zt(t)}class D7{constructor(t){this.schema=t}Decode(t){return new U7(this.schema,t)}}class U7{constructor(t,i){this.schema=t,this.decode=i}EncodeTransform(t,i){const c={Encode:l=>i[Rr].Encode(t(l)),Decode:l=>this.decode(i[Rr].Decode(l))};return{...i,[Rr]:c}}EncodeSchema(t,i){const a={Decode:this.decode,Encode:t};return{...i,[Rr]:a}}Encode(t){return sh(this.schema)?this.EncodeTransform(t,this.schema):this.EncodeSchema(t,this.schema)}}function M7(e){return new D7(e)}function j7(e={}){return Ue({[Le]:e[Le]??"Unsafe"},e)}function P7(e){return Ue({[Le]:"Void",type:"void"},e)}const N7=Object.freeze(Object.defineProperty({__proto__:null,Any:yl,Argument:MP,Array:sv,AsyncIterator:uv,Awaited:gh,BigInt:dv,Boolean:QR,Capitalize:dq,Composite:gL,Const:bL,Constructor:cv,ConstructorParameters:vL,Date:r3,Enum:xL,Exclude:bv,Extends:Av,Extract:vv,Function:Pl,Index:yh,InstanceType:T5,Instantiate:tq,Integer:nq,Intersect:Qa,Iterator:hv,KeyOf:pv,Literal:nn,Lowercase:hq,Mapped:NN,Module:I7,Never:Zt,Not:S7,Null:i3,Number:Vo,Object:gn,Omit:Eh,Optional:Ga,Parameters:C7,Partial:Sv,Pick:wh,Promise:JR,Readonly:za,ReadonlyOptional:y3,Record:g3,Recursive:F7,Ref:Nl,RegExp:T7,Required:Cv,Rest:R7,ReturnType:_7,String:jo,Symbol:a3,TemplateLiteral:KR,Transform:M7,Tuple:mu,Uint8Array:s3,Uncapitalize:pq,Undefined:o3,Union:On,Unknown:Ah,Unsafe:j7,Uppercase:yq,Void:P7},Symbol.toStringTag,{value:"Module"})),w=N7;class L7 extends Ai{constructor(t){super(`Unable to dereference schema with $id '${t.$ref}'`),this.schema=t}}function q7(e,t){const i=t.find(a=>a.$id===e.$ref);if(i===void 0)throw new L7(e);return Hl(i,t)}function E3(e,t){return!Rl(e.$id)||t.some(i=>i.$id===e.$id)||t.push(e),t}function Hl(e,t){return e[Le]==="This"||e[Le]==="Ref"?q7(e,t):e}class $7 extends Ai{constructor(t){super("Unable to hash value"),this.value=t}}var pr;(function(e){e[e.Undefined=0]="Undefined",e[e.Null=1]="Null",e[e.Boolean=2]="Boolean",e[e.Number=3]="Number",e[e.String=4]="String",e[e.Object=5]="Object",e[e.Array=6]="Array",e[e.Date=7]="Date",e[e.Uint8Array=8]="Uint8Array",e[e.Symbol=9]="Symbol",e[e.BigInt=10]="BigInt"})(pr||(pr={}));let $s=BigInt("14695981039346656037");const[H7,k7]=[BigInt("1099511628211"),BigInt("18446744073709551616")],z7=Array.from({length:256}).map((e,t)=>BigInt(t)),w3=new Float64Array(1),I3=new DataView(w3.buffer),S3=new Uint8Array(w3.buffer);function*G7(e){const t=e===0?1:Math.ceil(Math.floor(Math.log2(e)+1)/8);for(let i=0;i<t;i++)yield e>>8*(t-1-i)&255}function Q7(e){Mn(pr.Array);for(const t of e)su(t)}function V7(e){Mn(pr.Boolean),Mn(e?1:0)}function K7(e){Mn(pr.BigInt),I3.setBigInt64(0,e);for(const t of S3)Mn(t)}function Y7(e){Mn(pr.Date),su(e.getTime())}function X7(e){Mn(pr.Null)}function Z7(e){Mn(pr.Number),I3.setFloat64(0,e);for(const t of S3)Mn(t)}function J7(e){Mn(pr.Object);for(const t of globalThis.Object.getOwnPropertyNames(e).sort())su(t),su(e[t])}function W7(e){Mn(pr.String);for(let t=0;t<e.length;t++)for(const i of G7(e.charCodeAt(t)))Mn(i)}function e$(e){Mn(pr.Symbol),su(e.description)}function t$(e){Mn(pr.Uint8Array);for(let t=0;t<e.length;t++)Mn(e[t])}function n$(e){return Mn(pr.Undefined)}function su(e){if(Pa(e))return Q7(e);if(V1(e))return V7(e);if(K1(e))return K7(e);if(eh(e))return Y7(e);if(Q1(e))return X7();if(Bo(e))return Z7(e);if(gi(e))return J7(e);if(Rl(e))return W7(e);if(Y1(e))return e$(e);if(CR(e))return t$(e);if(Lo(e))return n$();throw new $7(e)}function Mn(e){$s=$s^z7[e],$s=$s*H7%k7}function r$(e){return $s=BigInt("14695981039346656037"),su(e),$s}class i$ extends Ai{constructor(t){super("Unknown type"),this.schema=t}}function a$(e){return e[Le]==="Any"||e[Le]==="Unknown"}function rt(e){return e!==void 0}function o$(e,t,i){return!0}function s$(e,t,i){return!0}function u$(e,t,i){if(!Pa(i)||rt(e.minItems)&&!(i.length>=e.minItems)||rt(e.maxItems)&&!(i.length<=e.maxItems)||!i.every(c=>pn(e.items,t,c))||e.uniqueItems===!0&&!(function(){const c=new Set;for(const l of i){const f=r$(l);if(c.has(f))return!1;c.add(f)}return!0})())return!1;if(!(rt(e.contains)||Bo(e.minContains)||Bo(e.maxContains)))return!0;const a=rt(e.contains)?e.contains:Zt(),s=i.reduce((c,l)=>pn(a,t,l)?c+1:c,0);return!(s===0||Bo(e.minContains)&&s<e.minContains||Bo(e.maxContains)&&s>e.maxContains)}function c$(e,t,i){return Qj(i)}function l$(e,t,i){return!(!K1(i)||rt(e.exclusiveMaximum)&&!(i<e.exclusiveMaximum)||rt(e.exclusiveMinimum)&&!(i>e.exclusiveMinimum)||rt(e.maximum)&&!(i<=e.maximum)||rt(e.minimum)&&!(i>=e.minimum)||rt(e.multipleOf)&&i%e.multipleOf!==BigInt(0))}function f$(e,t,i){return V1(i)}function d$(e,t,i){return pn(e.returns,t,i.prototype)}function h$(e,t,i){return!(!eh(i)||rt(e.exclusiveMaximumTimestamp)&&!(i.getTime()<e.exclusiveMaximumTimestamp)||rt(e.exclusiveMinimumTimestamp)&&!(i.getTime()>e.exclusiveMinimumTimestamp)||rt(e.maximumTimestamp)&&!(i.getTime()<=e.maximumTimestamp)||rt(e.minimumTimestamp)&&!(i.getTime()>=e.minimumTimestamp)||rt(e.multipleOfTimestamp)&&i.getTime()%e.multipleOfTimestamp!==0)}function p$(e,t,i){return OR(i)}function y$(e,t,i){const a=globalThis.Object.values(e.$defs),s=e.$defs[e.$ref];return pn(s,[...t,...a],i)}function g$(e,t,i){return!(!Wj(i)||rt(e.exclusiveMaximum)&&!(i<e.exclusiveMaximum)||rt(e.exclusiveMinimum)&&!(i>e.exclusiveMinimum)||rt(e.maximum)&&!(i<=e.maximum)||rt(e.minimum)&&!(i>=e.minimum)||rt(e.multipleOf)&&i%e.multipleOf!==0)}function m$(e,t,i){const a=e.allOf.every(s=>pn(s,t,i));if(e.unevaluatedProperties===!1){const s=new RegExp(TI(e)),c=Object.getOwnPropertyNames(i).every(l=>s.test(l));return a&&c}else if(Vi(e.unevaluatedProperties)){const s=new RegExp(TI(e)),c=Object.getOwnPropertyNames(i).every(l=>s.test(l)||pn(e.unevaluatedProperties,t,i[l]));return a&&c}else return a}function A$(e,t,i){return Vj(i)}function b$(e,t,i){return i===e.const}function v$(e,t,i){return!1}function x$(e,t,i){return!pn(e.not,t,i)}function E$(e,t,i){return Q1(i)}function w$(e,t,i){return!(!Na.IsNumberLike(i)||rt(e.exclusiveMaximum)&&!(i<e.exclusiveMaximum)||rt(e.exclusiveMinimum)&&!(i>e.exclusiveMinimum)||rt(e.minimum)&&!(i>=e.minimum)||rt(e.maximum)&&!(i<=e.maximum)||rt(e.multipleOf)&&i%e.multipleOf!==0)}function I$(e,t,i){if(!Na.IsObjectLike(i)||rt(e.minProperties)&&!(Object.getOwnPropertyNames(i).length>=e.minProperties)||rt(e.maxProperties)&&!(Object.getOwnPropertyNames(i).length<=e.maxProperties))return!1;const a=Object.getOwnPropertyNames(e.properties);for(const s of a){const c=e.properties[s];if(e.required&&e.required.includes(s)){if(!pn(c,t,i[s])||(xh(c)||a$(c))&&!(s in i))return!1}else if(Na.IsExactOptionalProperty(i,s)&&!pn(c,t,i[s]))return!1}if(e.additionalProperties===!1){const s=Object.getOwnPropertyNames(i);return e.required&&e.required.length===a.length&&s.length===a.length?!0:s.every(c=>a.includes(c))}else return typeof e.additionalProperties=="object"?Object.getOwnPropertyNames(i).every(c=>a.includes(c)||pn(e.additionalProperties,t,i[c])):!0}function S$(e,t,i){return Kj(i)}function C$(e,t,i){if(!Na.IsRecordLike(i)||rt(e.minProperties)&&!(Object.getOwnPropertyNames(i).length>=e.minProperties)||rt(e.maxProperties)&&!(Object.getOwnPropertyNames(i).length<=e.maxProperties))return!1;const[a,s]=Object.entries(e.patternProperties)[0],c=new RegExp(a),l=Object.entries(i).every(([h,b])=>c.test(h)?pn(s,t,b):!0),f=typeof e.additionalProperties=="object"?Object.entries(i).every(([h,b])=>c.test(h)?!0:pn(e.additionalProperties,t,b)):!0,p=e.additionalProperties===!1?Object.getOwnPropertyNames(i).every(h=>c.test(h)):!0;return l&&f&&p}function O$(e,t,i){return pn(Hl(e,t),t,i)}function F$(e,t,i){const a=new RegExp(e.source,e.flags);return rt(e.minLength)&&!(i.length>=e.minLength)||rt(e.maxLength)&&!(i.length<=e.maxLength)?!1:a.test(i)}function T$(e,t,i){return!Rl(i)||rt(e.minLength)&&!(i.length>=e.minLength)||rt(e.maxLength)&&!(i.length<=e.maxLength)||rt(e.pattern)&&!new RegExp(e.pattern).test(i)?!1:rt(e.format)?CP(e.format)?OP(e.format)(i):!1:!0}function B$(e,t,i){return Y1(i)}function R$(e,t,i){return Rl(i)&&new RegExp(e.pattern).test(i)}function _$(e,t,i){return pn(Hl(e,t),t,i)}function D$(e,t,i){if(!Pa(i)||e.items===void 0&&i.length!==0||i.length!==e.maxItems)return!1;if(!e.items)return!0;for(let a=0;a<e.items.length;a++)if(!pn(e.items[a],t,i[a]))return!1;return!0}function U$(e,t,i){return Lo(i)}function M$(e,t,i){return e.anyOf.some(a=>pn(a,t,i))}function j$(e,t,i){return!(!CR(i)||rt(e.maxByteLength)&&!(i.length<=e.maxByteLength)||rt(e.minByteLength)&&!(i.length>=e.minByteLength))}function P$(e,t,i){return!0}function N$(e,t,i){return Na.IsVoidLike(i)}function L$(e,t,i){return HR(e[Le])?FP(e[Le])(e,i):!1}function pn(e,t,i){const a=rt(e.$id)?E3(e,t):t,s=e;switch(s[Le]){case"Any":return o$();case"Argument":return s$();case"Array":return u$(s,a,i);case"AsyncIterator":return c$(s,a,i);case"BigInt":return l$(s,a,i);case"Boolean":return f$(s,a,i);case"Constructor":return d$(s,a,i);case"Date":return h$(s,a,i);case"Function":return p$(s,a,i);case"Import":return y$(s,a,i);case"Integer":return g$(s,a,i);case"Intersect":return m$(s,a,i);case"Iterator":return A$(s,a,i);case"Literal":return b$(s,a,i);case"Never":return v$();case"Not":return x$(s,a,i);case"Null":return E$(s,a,i);case"Number":return w$(s,a,i);case"Object":return I$(s,a,i);case"Promise":return S$(s,a,i);case"Record":return C$(s,a,i);case"Ref":return O$(s,a,i);case"RegExp":return F$(s,a,i);case"String":return T$(s,a,i);case"Symbol":return B$(s,a,i);case"TemplateLiteral":return R$(s,a,i);case"This":return _$(s,a,i);case"Tuple":return D$(s,a,i);case"Undefined":return U$(s,a,i);case"Union":return M$(s,a,i);case"Uint8Array":return j$(s,a,i);case"Unknown":return P$();case"Void":return N$(s,a,i);default:if(!HR(s[Le]))throw new i$(s);return L$(s,a,i)}}function q$(...e){return e.length===3?pn(e[0],e[1],e[2]):pn(e[0],[],e[1])}function $$(e){const t={};for(const i of Object.getOwnPropertyNames(e))t[i]=Po(e[i]);for(const i of Object.getOwnPropertySymbols(e))t[i]=Po(e[i]);return t}function H$(e){return e.map(t=>Po(t))}function k$(e){return e.slice()}function z$(e){return new Map(Po([...e.entries()]))}function G$(e){return new Set(Po([...e.entries()]))}function Q$(e){return new Date(e.toISOString())}function Po(e){if(Pa(e))return H$(e);if(eh(e))return Q$(e);if(Zj(e))return k$(e);if(Yj(e))return z$(e);if(Xj(e))return G$(e);if(gi(e))return $$(e);if(eP(e))return e;throw new Error("ValueClone: Unable to clone value")}function ea(e,t){const i=Jj(e,"default")?e.default:void 0,a=OR(i)?i():Po(i);return Lo(t)?a:gi(t)&&gi(a)?Object.assign(a,t):t}function u1(e){return _R(e)&&"default"in e}function V$(e,t,i){if(Pa(i)){for(let s=0;s<i.length;s++)i[s]=$n(e.items,t,i[s]);return i}const a=ea(e,i);if(!Pa(a))return a;for(let s=0;s<a.length;s++)a[s]=$n(e.items,t,a[s]);return a}function K$(e,t,i){return eh(i)?i:ea(e,i)}function Y$(e,t,i){const a=globalThis.Object.values(e.$defs),s=e.$defs[e.$ref];return $n(s,[...t,...a],i)}function X$(e,t,i){const a=ea(e,i);return e.allOf.reduce((s,c)=>{const l=$n(c,t,a);return gi(l)?{...s,...l}:l},{})}function Z$(e,t,i){const a=ea(e,i);if(!gi(a))return a;const s=Object.getOwnPropertyNames(e.properties);for(const c of s){const l=$n(e.properties[c],t,a[c]);Lo(l)||(a[c]=$n(e.properties[c],t,a[c]))}if(!u1(e.additionalProperties))return a;for(const c of Object.getOwnPropertyNames(a))s.includes(c)||(a[c]=$n(e.additionalProperties,t,a[c]));return a}function J$(e,t,i){const a=ea(e,i);if(!gi(a))return a;const s=e.additionalProperties,[c,l]=Object.entries(e.patternProperties)[0],f=new RegExp(c);for(const p of Object.getOwnPropertyNames(a))f.test(p)&&u1(l)&&(a[p]=$n(l,t,a[p]));if(!u1(s))return a;for(const p of Object.getOwnPropertyNames(a))f.test(p)||(a[p]=$n(s,t,a[p]));return a}function W$(e,t,i){return $n(Hl(e,t),t,ea(e,i))}function e9(e,t,i){return $n(Hl(e,t),t,i)}function t9(e,t,i){const a=ea(e,i);if(!Pa(a)||Lo(e.items))return a;const[s,c]=[e.items,Math.max(e.items.length,a.length)];for(let l=0;l<c;l++)l<s.length&&(a[l]=$n(s[l],t,a[l]));return a}function n9(e,t,i){const a=ea(e,i);for(const s of e.anyOf){const c=$n(s,t,Po(a));if(q$(s,t,c))return c}return a}function $n(e,t,i){const a=E3(e,t),s=e;switch(s[Le]){case"Array":return V$(s,a,i);case"Date":return K$(s,a,i);case"Import":return Y$(s,a,i);case"Intersect":return X$(s,a,i);case"Object":return Z$(s,a,i);case"Record":return J$(s,a,i);case"Ref":return W$(s,a,i);case"This":return e9(s,a,i);case"Tuple":return t9(s,a,i);case"Union":return n9(s,a,i);default:return ea(s,i)}}function r9(...e){return e.length===3?$n(e[0],e[1],e[2]):$n(e[0],[],e[1])}var Li={},f0={exports:{}},d0={},h0={},p0={},y0,jI;function Fv(){return jI||(jI=1,y0=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},i=Symbol("test"),a=Object(i);if(typeof i=="string"||Object.prototype.toString.call(i)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var s=42;t[i]=s;for(var c in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var l=Object.getOwnPropertySymbols(t);if(l.length!==1||l[0]!==i||!Object.prototype.propertyIsEnumerable.call(t,i))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var f=Object.getOwnPropertyDescriptor(t,i);if(f.value!==s||f.enumerable!==!0)return!1}return!0}),y0}var g0,PI;function Ih(){if(PI)return g0;PI=1;var e=Fv();return g0=function(){return e()&&!!Symbol.toStringTag},g0}var m0,NI;function Tv(){return NI||(NI=1,m0=Object),m0}var A0,LI;function i9(){return LI||(LI=1,A0=Error),A0}var b0,qI;function a9(){return qI||(qI=1,b0=EvalError),b0}var v0,$I;function o9(){return $I||($I=1,v0=RangeError),v0}var x0,HI;function s9(){return HI||(HI=1,x0=ReferenceError),x0}var E0,kI;function C3(){return kI||(kI=1,E0=SyntaxError),E0}var w0,zI;function kl(){return zI||(zI=1,w0=TypeError),w0}var I0,GI;function u9(){return GI||(GI=1,I0=URIError),I0}var S0,QI;function c9(){return QI||(QI=1,S0=Math.abs),S0}var C0,VI;function l9(){return VI||(VI=1,C0=Math.floor),C0}var O0,KI;function f9(){return KI||(KI=1,O0=Math.max),O0}var F0,YI;function d9(){return YI||(YI=1,F0=Math.min),F0}var T0,XI;function h9(){return XI||(XI=1,T0=Math.pow),T0}var B0,ZI;function p9(){return ZI||(ZI=1,B0=Math.round),B0}var R0,JI;function y9(){return JI||(JI=1,R0=Number.isNaN||function(t){return t!==t}),R0}var _0,WI;function g9(){if(WI)return _0;WI=1;var e=y9();return _0=function(i){return e(i)||i===0?i:i<0?-1:1},_0}var D0,eS;function m9(){return eS||(eS=1,D0=Object.getOwnPropertyDescriptor),D0}var U0,tS;function vu(){if(tS)return U0;tS=1;var e=m9();if(e)try{e([],"length")}catch{e=null}return U0=e,U0}var M0,nS;function Sh(){if(nS)return M0;nS=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return M0=e,M0}var j0,rS;function A9(){if(rS)return j0;rS=1;var e=typeof Symbol<"u"&&Symbol,t=Fv();return j0=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},j0}var P0,iS;function O3(){return iS||(iS=1,P0=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),P0}var N0,aS;function F3(){if(aS)return N0;aS=1;var e=Tv();return N0=e.getPrototypeOf||null,N0}var L0,oS;function b9(){if(oS)return L0;oS=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,i=Math.max,a="[object Function]",s=function(p,h){for(var b=[],v=0;v<p.length;v+=1)b[v]=p[v];for(var A=0;A<h.length;A+=1)b[A+p.length]=h[A];return b},c=function(p,h){for(var b=[],v=h,A=0;v<p.length;v+=1,A+=1)b[A]=p[v];return b},l=function(f,p){for(var h="",b=0;b<f.length;b+=1)h+=f[b],b+1<f.length&&(h+=p);return h};return L0=function(p){var h=this;if(typeof h!="function"||t.apply(h)!==a)throw new TypeError(e+h);for(var b=c(arguments,1),v,A=function(){if(this instanceof v){var _=h.apply(this,s(b,arguments));return Object(_)===_?_:this}return h.apply(p,s(b,arguments))},I=i(0,h.length-b.length),C=[],U=0;U<I;U++)C[U]="$"+U;if(v=Function("binder","return function ("+l(C,",")+"){ return binder.apply(this,arguments); }")(A),h.prototype){var B=function(){};B.prototype=h.prototype,v.prototype=new B,B.prototype=null}return v},L0}var q0,sS;function zl(){if(sS)return q0;sS=1;var e=b9();return q0=Function.prototype.bind||e,q0}var $0,uS;function Bv(){return uS||(uS=1,$0=Function.prototype.call),$0}var H0,cS;function Rv(){return cS||(cS=1,H0=Function.prototype.apply),H0}var k0,lS;function v9(){return lS||(lS=1,k0=typeof Reflect<"u"&&Reflect&&Reflect.apply),k0}var z0,fS;function T3(){if(fS)return z0;fS=1;var e=zl(),t=Rv(),i=Bv(),a=v9();return z0=a||e.call(i,t),z0}var G0,dS;function _v(){if(dS)return G0;dS=1;var e=zl(),t=kl(),i=Bv(),a=T3();return G0=function(c){if(c.length<1||typeof c[0]!="function")throw new t("a function is required");return a(e,i,c)},G0}var Q0,hS;function x9(){if(hS)return Q0;hS=1;var e=_v(),t=vu(),i;try{i=[].__proto__===Array.prototype}catch(l){if(!l||typeof l!="object"||!("code"in l)||l.code!=="ERR_PROTO_ACCESS")throw l}var a=!!i&&t&&t(Object.prototype,"__proto__"),s=Object,c=s.getPrototypeOf;return Q0=a&&typeof a.get=="function"?e([a.get]):typeof c=="function"?function(f){return c(f==null?f:s(f))}:!1,Q0}var V0,pS;function Dv(){if(pS)return V0;pS=1;var e=O3(),t=F3(),i=x9();return V0=e?function(s){return e(s)}:t?function(s){if(!s||typeof s!="object"&&typeof s!="function")throw new TypeError("getProto: not an object");return t(s)}:i?function(s){return i(s)}:null,V0}var K0,yS;function B3(){if(yS)return K0;yS=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,i=zl();return K0=i.call(e,t),K0}var Y0,gS;function Uv(){if(gS)return Y0;gS=1;var e,t=Tv(),i=i9(),a=a9(),s=o9(),c=s9(),l=C3(),f=kl(),p=u9(),h=c9(),b=l9(),v=f9(),A=d9(),I=h9(),C=p9(),U=g9(),B=Function,_=function(q){try{return B('"use strict"; return ('+q+").constructor;")()}catch{}},D=vu(),M=Sh(),te=function(){throw new f},z=D?(function(){try{return arguments.callee,te}catch{try{return D(arguments,"callee").get}catch{return te}}})():te,ne=A9()(),ce=Dv(),oe=F3(),F=O3(),H=Rv(),K=Bv(),G={},Y=typeof Uint8Array>"u"||!ce?e:ce(Uint8Array),X={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":ne&&ce?ce([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":G,"%AsyncGenerator%":G,"%AsyncGeneratorFunction%":G,"%AsyncIteratorPrototype%":G,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":B,"%GeneratorFunction%":G,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ne&&ce?ce(ce([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ne||!ce?e:ce(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":D,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":s,"%ReferenceError%":c,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ne||!ce?e:ce(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ne&&ce?ce(""[Symbol.iterator]()):e,"%Symbol%":ne?Symbol:e,"%SyntaxError%":l,"%ThrowTypeError%":z,"%TypedArray%":Y,"%TypeError%":f,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":p,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":K,"%Function.prototype.apply%":H,"%Object.defineProperty%":M,"%Object.getPrototypeOf%":oe,"%Math.abs%":h,"%Math.floor%":b,"%Math.max%":v,"%Math.min%":A,"%Math.pow%":I,"%Math.round%":C,"%Math.sign%":U,"%Reflect.getPrototypeOf%":F};if(ce)try{null.error}catch(q){var pe=ce(ce(q));X["%Error.prototype%"]=pe}var R=function q(E){var P;if(E==="%AsyncFunction%")P=_("async function () {}");else if(E==="%GeneratorFunction%")P=_("function* () {}");else if(E==="%AsyncGeneratorFunction%")P=_("async function* () {}");else if(E==="%AsyncGenerator%"){var Q=q("%AsyncGeneratorFunction%");Q&&(P=Q.prototype)}else if(E==="%AsyncIteratorPrototype%"){var W=q("%AsyncGenerator%");W&&ce&&(P=ce(W.prototype))}return X[E]=P,P},re={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},fe=zl(),Z=B3(),O=fe.call(K,Array.prototype.concat),V=fe.call(H,Array.prototype.splice),ie=fe.call(K,String.prototype.replace),$=fe.call(K,String.prototype.slice),j=fe.call(K,RegExp.prototype.exec),N=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,k=/\\(\\)?/g,ye=function(E){var P=$(E,0,1),Q=$(E,-1);if(P==="%"&&Q!=="%")throw new l("invalid intrinsic syntax, expected closing `%`");if(Q==="%"&&P!=="%")throw new l("invalid intrinsic syntax, expected opening `%`");var W=[];return ie(E,N,function(le,de,x,g){W[W.length]=x?ie(g,k,"$1"):de||le}),W},ge=function(E,P){var Q=E,W;if(Z(re,Q)&&(W=re[Q],Q="%"+W[0]+"%"),Z(X,Q)){var le=X[Q];if(le===G&&(le=R(Q)),typeof le>"u"&&!P)throw new f("intrinsic "+E+" exists, but is not available. Please file an issue!");return{alias:W,name:Q,value:le}}throw new l("intrinsic "+E+" does not exist!")};return Y0=function(E,P){if(typeof E!="string"||E.length===0)throw new f("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof P!="boolean")throw new f('"allowMissing" argument must be a boolean');if(j(/^%?[^%]*%?$/,E)===null)throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Q=ye(E),W=Q.length>0?Q[0]:"",le=ge("%"+W+"%",P),de=le.name,x=le.value,g=!1,m=le.alias;m&&(W=m[0],V(Q,O([0,1],m)));for(var S=1,ee=!0;S<Q.length;S+=1){var Ae=Q[S],Se=$(Ae,0,1),Me=$(Ae,-1);if((Se==='"'||Se==="'"||Se==="`"||Me==='"'||Me==="'"||Me==="`")&&Se!==Me)throw new l("property names with quotes must have matching quotes");if((Ae==="constructor"||!ee)&&(g=!0),W+="."+Ae,de="%"+W+"%",Z(X,de))x=X[de];else if(x!=null){if(!(Ae in x)){if(!P)throw new f("base intrinsic for "+E+" exists, but the property is not available.");return}if(D&&S+1>=Q.length){var se=D(x,Ae);ee=!!se,ee&&"get"in se&&!("originalValue"in se.get)?x=se.get:x=x[Ae]}else ee=Z(x,Ae),x=x[Ae];ee&&!g&&(X[de]=x)}}return x},Y0}var X0,mS;function xu(){if(mS)return X0;mS=1;var e=Uv(),t=_v(),i=t([e("%String.prototype.indexOf%")]);return X0=function(s,c){var l=e(s,!!c);return typeof l=="function"&&i(s,".prototype.")>-1?t([l]):l},X0}var Z0,AS;function E9(){if(AS)return Z0;AS=1;var e=Ih()(),t=xu(),i=t("Object.prototype.toString"),a=function(f){return e&&f&&typeof f=="object"&&Symbol.toStringTag in f?!1:i(f)==="[object Arguments]"},s=function(f){return a(f)?!0:f!==null&&typeof f=="object"&&"length"in f&&typeof f.length=="number"&&f.length>=0&&i(f)!=="[object Array]"&&"callee"in f&&i(f.callee)==="[object Function]"},c=(function(){return a(arguments)})();return a.isLegacyArguments=s,Z0=c?a:s,Z0}var J0,bS;function w9(){if(bS)return J0;bS=1;var e=xu(),t=Ih()(),i=B3(),a=vu(),s;if(t){var c=e("RegExp.prototype.exec"),l={},f=function(){throw l},p={toString:f,valueOf:f};typeof Symbol.toPrimitive=="symbol"&&(p[Symbol.toPrimitive]=f),s=function(A){if(!A||typeof A!="object")return!1;var I=a(A,"lastIndex"),C=I&&i(I,"value");if(!C)return!1;try{c(A,p)}catch(U){return U===l}}}else{var h=e("Object.prototype.toString"),b="[object RegExp]";s=function(A){return!A||typeof A!="object"&&typeof A!="function"?!1:h(A)===b}}return J0=s,J0}var W0,vS;function I9(){if(vS)return W0;vS=1;var e=xu(),t=w9(),i=e("RegExp.prototype.exec"),a=kl();return W0=function(c){if(!t(c))throw new a("`regex` must be a RegExp");return function(f){return i(c,f)!==null}},W0}var eg,xS;function S9(){if(xS)return eg;xS=1;var e=xu(),t=I9(),i=t(/^\s*(?:function)?\*/),a=Ih()(),s=Dv(),c=e("Object.prototype.toString"),l=e("Function.prototype.toString"),f=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch{}},p;return eg=function(b){if(typeof b!="function")return!1;if(i(l(b)))return!0;if(!a){var v=c(b);return v==="[object GeneratorFunction]"}if(!s)return!1;if(typeof p>"u"){var A=f();p=A?s(A):!1}return s(b)===p},eg}var tg,ES;function C9(){if(ES)return tg;ES=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,i,a;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{i=Object.defineProperty({},"length",{get:function(){throw a}}),a={},t(function(){throw 42},null,i)}catch(D){D!==a&&(t=null)}else t=null;var s=/^\s*class\b/,c=function(M){try{var te=e.call(M);return s.test(te)}catch{return!1}},l=function(M){try{return c(M)?!1:(e.call(M),!0)}catch{return!1}},f=Object.prototype.toString,p="[object Object]",h="[object Function]",b="[object GeneratorFunction]",v="[object HTMLAllCollection]",A="[object HTML document.all class]",I="[object HTMLCollection]",C=typeof Symbol=="function"&&!!Symbol.toStringTag,U=!(0 in[,]),B=function(){return!1};if(typeof document=="object"){var _=document.all;f.call(_)===f.call(document.all)&&(B=function(M){if((U||!M)&&(typeof M>"u"||typeof M=="object"))try{var te=f.call(M);return(te===v||te===A||te===I||te===p)&&M("")==null}catch{}return!1})}return tg=t?function(M){if(B(M))return!0;if(!M||typeof M!="function"&&typeof M!="object")return!1;try{t(M,null,i)}catch(te){if(te!==a)return!1}return!c(M)&&l(M)}:function(M){if(B(M))return!0;if(!M||typeof M!="function"&&typeof M!="object")return!1;if(C)return l(M);if(c(M))return!1;var te=f.call(M);return te!==h&&te!==b&&!/^\[object HTML/.test(te)?!1:l(M)},tg}var ng,wS;function O9(){if(wS)return ng;wS=1;var e=C9(),t=Object.prototype.toString,i=Object.prototype.hasOwnProperty,a=function(p,h,b){for(var v=0,A=p.length;v<A;v++)i.call(p,v)&&(b==null?h(p[v],v,p):h.call(b,p[v],v,p))},s=function(p,h,b){for(var v=0,A=p.length;v<A;v++)b==null?h(p.charAt(v),v,p):h.call(b,p.charAt(v),v,p)},c=function(p,h,b){for(var v in p)i.call(p,v)&&(b==null?h(p[v],v,p):h.call(b,p[v],v,p))};function l(f){return t.call(f)==="[object Array]"}return ng=function(p,h,b){if(!e(h))throw new TypeError("iterator must be a function");var v;arguments.length>=3&&(v=b),l(p)?a(p,h,v):typeof p=="string"?s(p,h,v):c(p,h,v)},ng}var rg,IS;function F9(){return IS||(IS=1,rg=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),rg}var ig,SS;function T9(){if(SS)return ig;SS=1;var e=F9(),t=typeof globalThis>"u"?ki:globalThis;return ig=function(){for(var a=[],s=0;s<e.length;s++)typeof t[e[s]]=="function"&&(a[a.length]=e[s]);return a},ig}var ag={exports:{}},og,CS;function R3(){if(CS)return og;CS=1;var e=Sh(),t=C3(),i=kl(),a=vu();return og=function(c,l,f){if(!c||typeof c!="object"&&typeof c!="function")throw new i("`obj` must be an object or a function`");if(typeof l!="string"&&typeof l!="symbol")throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new i("`loose`, if provided, must be a boolean");var p=arguments.length>3?arguments[3]:null,h=arguments.length>4?arguments[4]:null,b=arguments.length>5?arguments[5]:null,v=arguments.length>6?arguments[6]:!1,A=!!a&&a(c,l);if(e)e(c,l,{configurable:b===null&&A?A.configurable:!b,enumerable:p===null&&A?A.enumerable:!p,value:f,writable:h===null&&A?A.writable:!h});else if(v||!p&&!h&&!b)c[l]=f;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},og}var sg,OS;function _3(){if(OS)return sg;OS=1;var e=Sh(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},sg=t,sg}var ug,FS;function B9(){if(FS)return ug;FS=1;var e=Uv(),t=R3(),i=_3()(),a=vu(),s=kl(),c=e("%Math.floor%");return ug=function(f,p){if(typeof f!="function")throw new s("`fn` is not a function");if(typeof p!="number"||p<0||p>4294967295||c(p)!==p)throw new s("`length` must be a positive 32-bit integer");var h=arguments.length>2&&!!arguments[2],b=!0,v=!0;if("length"in f&&a){var A=a(f,"length");A&&!A.configurable&&(b=!1),A&&!A.writable&&(v=!1)}return(b||v||!h)&&(i?t(f,"length",p,!0,!0):t(f,"length",p)),f},ug}var cg,TS;function R9(){if(TS)return cg;TS=1;var e=zl(),t=Rv(),i=T3();return cg=function(){return i(e,t,arguments)},cg}var BS;function Ch(){return BS||(BS=1,(function(e){var t=B9(),i=Sh(),a=_v(),s=R9();e.exports=function(l){var f=a(arguments),p=l.length-(arguments.length-1);return t(f,1+(p>0?p:0),!0)},i?i(e.exports,"apply",{value:s}):e.exports.apply=s})(ag)),ag.exports}var lg,RS;function D3(){if(RS)return lg;RS=1;var e=O9(),t=T9(),i=Ch(),a=xu(),s=vu(),c=Dv(),l=a("Object.prototype.toString"),f=Ih()(),p=typeof globalThis>"u"?ki:globalThis,h=t(),b=a("String.prototype.slice"),v=a("Array.prototype.indexOf",!0)||function(B,_){for(var D=0;D<B.length;D+=1)if(B[D]===_)return D;return-1},A={__proto__:null};f&&s&&c?e(h,function(U){var B=new p[U];if(Symbol.toStringTag in B&&c){var _=c(B),D=s(_,Symbol.toStringTag);if(!D&&_){var M=c(_);D=s(M,Symbol.toStringTag)}A["$"+U]=i(D.get)}}):e(h,function(U){var B=new p[U],_=B.slice||B.set;_&&(A["$"+U]=i(_))});var I=function(B){var _=!1;return e(A,function(D,M){if(!_)try{"$"+D(B)===M&&(_=b(M,1))}catch{}}),_},C=function(B){var _=!1;return e(A,function(D,M){if(!_)try{D(B),_=b(M,1)}catch{}}),_};return lg=function(B){if(!B||typeof B!="object")return!1;if(!f){var _=b(l(B),8,-1);return v(h,_)>-1?_:_!=="Object"?!1:C(B)}return s?I(B):null},lg}var fg,_S;function _9(){if(_S)return fg;_S=1;var e=D3();return fg=function(i){return!!e(i)},fg}var DS;function D9(){return DS||(DS=1,(function(e){var t=E9(),i=S9(),a=D3(),s=_9();function c(S){return S.call.bind(S)}var l=typeof BigInt<"u",f=typeof Symbol<"u",p=c(Object.prototype.toString),h=c(Number.prototype.valueOf),b=c(String.prototype.valueOf),v=c(Boolean.prototype.valueOf);if(l)var A=c(BigInt.prototype.valueOf);if(f)var I=c(Symbol.prototype.valueOf);function C(S,ee){if(typeof S!="object")return!1;try{return ee(S),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=i,e.isTypedArray=s;function U(S){return typeof Promise<"u"&&S instanceof Promise||S!==null&&typeof S=="object"&&typeof S.then=="function"&&typeof S.catch=="function"}e.isPromise=U;function B(S){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(S):s(S)||$(S)}e.isArrayBufferView=B;function _(S){return a(S)==="Uint8Array"}e.isUint8Array=_;function D(S){return a(S)==="Uint8ClampedArray"}e.isUint8ClampedArray=D;function M(S){return a(S)==="Uint16Array"}e.isUint16Array=M;function te(S){return a(S)==="Uint32Array"}e.isUint32Array=te;function z(S){return a(S)==="Int8Array"}e.isInt8Array=z;function ne(S){return a(S)==="Int16Array"}e.isInt16Array=ne;function ce(S){return a(S)==="Int32Array"}e.isInt32Array=ce;function oe(S){return a(S)==="Float32Array"}e.isFloat32Array=oe;function F(S){return a(S)==="Float64Array"}e.isFloat64Array=F;function H(S){return a(S)==="BigInt64Array"}e.isBigInt64Array=H;function K(S){return a(S)==="BigUint64Array"}e.isBigUint64Array=K;function G(S){return p(S)==="[object Map]"}G.working=typeof Map<"u"&&G(new Map);function Y(S){return typeof Map>"u"?!1:G.working?G(S):S instanceof Map}e.isMap=Y;function X(S){return p(S)==="[object Set]"}X.working=typeof Set<"u"&&X(new Set);function pe(S){return typeof Set>"u"?!1:X.working?X(S):S instanceof Set}e.isSet=pe;function R(S){return p(S)==="[object WeakMap]"}R.working=typeof WeakMap<"u"&&R(new WeakMap);function re(S){return typeof WeakMap>"u"?!1:R.working?R(S):S instanceof WeakMap}e.isWeakMap=re;function fe(S){return p(S)==="[object WeakSet]"}fe.working=typeof WeakSet<"u"&&fe(new WeakSet);function Z(S){return fe(S)}e.isWeakSet=Z;function O(S){return p(S)==="[object ArrayBuffer]"}O.working=typeof ArrayBuffer<"u"&&O(new ArrayBuffer);function V(S){return typeof ArrayBuffer>"u"?!1:O.working?O(S):S instanceof ArrayBuffer}e.isArrayBuffer=V;function ie(S){return p(S)==="[object DataView]"}ie.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&ie(new DataView(new ArrayBuffer(1),0,1));function $(S){return typeof DataView>"u"?!1:ie.working?ie(S):S instanceof DataView}e.isDataView=$;var j=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function N(S){return p(S)==="[object SharedArrayBuffer]"}function k(S){return typeof j>"u"?!1:(typeof N.working>"u"&&(N.working=N(new j)),N.working?N(S):S instanceof j)}e.isSharedArrayBuffer=k;function ye(S){return p(S)==="[object AsyncFunction]"}e.isAsyncFunction=ye;function ge(S){return p(S)==="[object Map Iterator]"}e.isMapIterator=ge;function q(S){return p(S)==="[object Set Iterator]"}e.isSetIterator=q;function E(S){return p(S)==="[object Generator]"}e.isGeneratorObject=E;function P(S){return p(S)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=P;function Q(S){return C(S,h)}e.isNumberObject=Q;function W(S){return C(S,b)}e.isStringObject=W;function le(S){return C(S,v)}e.isBooleanObject=le;function de(S){return l&&C(S,A)}e.isBigIntObject=de;function x(S){return f&&C(S,I)}e.isSymbolObject=x;function g(S){return Q(S)||W(S)||le(S)||de(S)||x(S)}e.isBoxedPrimitive=g;function m(S){return typeof Uint8Array<"u"&&(V(S)||k(S))}e.isAnyArrayBuffer=m,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(S){Object.defineProperty(e,S,{enumerable:!1,value:function(){throw new Error(S+" is not supported in userland")}})})})(p0)),p0}var dg,US;function U9(){return US||(US=1,dg=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),dg}var hd={exports:{}},MS;function M9(){return MS||(MS=1,typeof Object.create=="function"?hd.exports=function(t,i){i&&(t.super_=i,t.prototype=Object.create(i.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:hd.exports=function(t,i){if(i){t.super_=i;var a=function(){};a.prototype=i.prototype,t.prototype=new a,t.prototype.constructor=t}}),hd.exports}var jS;function Al(){return jS||(jS=1,(function(e){var t={},i=Object.getOwnPropertyDescriptors||function(j){for(var N=Object.keys(j),k={},ye=0;ye<N.length;ye++)k[N[ye]]=Object.getOwnPropertyDescriptor(j,N[ye]);return k},a=/%[sdj%]/g;e.format=function($){if(!ne($)){for(var j=[],N=0;N<arguments.length;N++)j.push(f(arguments[N]));return j.join(" ")}for(var N=1,k=arguments,ye=k.length,ge=String($).replace(a,function(E){if(E==="%%")return"%";if(N>=ye)return E;switch(E){case"%s":return String(k[N++]);case"%d":return Number(k[N++]);case"%j":try{return JSON.stringify(k[N++])}catch{return"[Circular]"}default:return E}}),q=k[N];N<ye;q=k[++N])M(q)||!H(q)?ge+=" "+q:ge+=" "+f(q);return ge},e.deprecate=function($,j){if(typeof it<"u"&&it.noDeprecation===!0)return $;if(typeof it>"u")return function(){return e.deprecate($,j).apply(this,arguments)};var N=!1;function k(){if(!N){if(it.throwDeprecation)throw new Error(j);it.traceDeprecation?console.trace(j):console.error(j),N=!0}return $.apply(this,arguments)}return k};var s={},c=/^$/;if(t.NODE_DEBUG){var l=t.NODE_DEBUG;l=l.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),c=new RegExp("^"+l+"$","i")}e.debuglog=function($){if($=$.toUpperCase(),!s[$])if(c.test($)){var j=it.pid;s[$]=function(){var N=e.format.apply(e,arguments);console.error("%s %d: %s",$,j,N)}}else s[$]=function(){};return s[$]};function f($,j){var N={seen:[],stylize:h};return arguments.length>=3&&(N.depth=arguments[2]),arguments.length>=4&&(N.colors=arguments[3]),D(j)?N.showHidden=j:j&&e._extend(N,j),oe(N.showHidden)&&(N.showHidden=!1),oe(N.depth)&&(N.depth=2),oe(N.colors)&&(N.colors=!1),oe(N.customInspect)&&(N.customInspect=!0),N.colors&&(N.stylize=p),v(N,$,N.depth)}e.inspect=f,f.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},f.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function p($,j){var N=f.styles[j];return N?"\x1B["+f.colors[N][0]+"m"+$+"\x1B["+f.colors[N][1]+"m":$}function h($,j){return $}function b($){var j={};return $.forEach(function(N,k){j[N]=!0}),j}function v($,j,N){if($.customInspect&&j&&Y(j.inspect)&&j.inspect!==e.inspect&&!(j.constructor&&j.constructor.prototype===j)){var k=j.inspect(N,$);return ne(k)||(k=v($,k,N)),k}var ye=A($,j);if(ye)return ye;var ge=Object.keys(j),q=b(ge);if($.showHidden&&(ge=Object.getOwnPropertyNames(j)),G(j)&&(ge.indexOf("message")>=0||ge.indexOf("description")>=0))return I(j);if(ge.length===0){if(Y(j)){var E=j.name?": "+j.name:"";return $.stylize("[Function"+E+"]","special")}if(F(j))return $.stylize(RegExp.prototype.toString.call(j),"regexp");if(K(j))return $.stylize(Date.prototype.toString.call(j),"date");if(G(j))return I(j)}var P="",Q=!1,W=["{","}"];if(_(j)&&(Q=!0,W=["[","]"]),Y(j)){var le=j.name?": "+j.name:"";P=" [Function"+le+"]"}if(F(j)&&(P=" "+RegExp.prototype.toString.call(j)),K(j)&&(P=" "+Date.prototype.toUTCString.call(j)),G(j)&&(P=" "+I(j)),ge.length===0&&(!Q||j.length==0))return W[0]+P+W[1];if(N<0)return F(j)?$.stylize(RegExp.prototype.toString.call(j),"regexp"):$.stylize("[Object]","special");$.seen.push(j);var de;return Q?de=C($,j,N,q,ge):de=ge.map(function(x){return U($,j,N,q,x,Q)}),$.seen.pop(),B(de,P,W)}function A($,j){if(oe(j))return $.stylize("undefined","undefined");if(ne(j)){var N="'"+JSON.stringify(j).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return $.stylize(N,"string")}if(z(j))return $.stylize(""+j,"number");if(D(j))return $.stylize(""+j,"boolean");if(M(j))return $.stylize("null","null")}function I($){return"["+Error.prototype.toString.call($)+"]"}function C($,j,N,k,ye){for(var ge=[],q=0,E=j.length;q<E;++q)Z(j,String(q))?ge.push(U($,j,N,k,String(q),!0)):ge.push("");return ye.forEach(function(P){P.match(/^\d+$/)||ge.push(U($,j,N,k,P,!0))}),ge}function U($,j,N,k,ye,ge){var q,E,P;if(P=Object.getOwnPropertyDescriptor(j,ye)||{value:j[ye]},P.get?P.set?E=$.stylize("[Getter/Setter]","special"):E=$.stylize("[Getter]","special"):P.set&&(E=$.stylize("[Setter]","special")),Z(k,ye)||(q="["+ye+"]"),E||($.seen.indexOf(P.value)<0?(M(N)?E=v($,P.value,null):E=v($,P.value,N-1),E.indexOf(`
62
- `)>-1&&(ge?E=E.split(`
63
- `).map(function(Q){return" "+Q}).join(`
64
- `).slice(2):E=`
65
- `+E.split(`
66
- `).map(function(Q){return" "+Q}).join(`
67
- `))):E=$.stylize("[Circular]","special")),oe(q)){if(ge&&ye.match(/^\d+$/))return E;q=JSON.stringify(""+ye),q.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(q=q.slice(1,-1),q=$.stylize(q,"name")):(q=q.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),q=$.stylize(q,"string"))}return q+": "+E}function B($,j,N){var k=$.reduce(function(ye,ge){return ge.indexOf(`
68
- `)>=0,ye+ge.replace(/\u001b\[\d\d?m/g,"").length+1},0);return k>60?N[0]+(j===""?"":j+`
69
- `)+" "+$.join(`,
70
- `)+" "+N[1]:N[0]+j+" "+$.join(", ")+" "+N[1]}e.types=D9();function _($){return Array.isArray($)}e.isArray=_;function D($){return typeof $=="boolean"}e.isBoolean=D;function M($){return $===null}e.isNull=M;function te($){return $==null}e.isNullOrUndefined=te;function z($){return typeof $=="number"}e.isNumber=z;function ne($){return typeof $=="string"}e.isString=ne;function ce($){return typeof $=="symbol"}e.isSymbol=ce;function oe($){return $===void 0}e.isUndefined=oe;function F($){return H($)&&pe($)==="[object RegExp]"}e.isRegExp=F,e.types.isRegExp=F;function H($){return typeof $=="object"&&$!==null}e.isObject=H;function K($){return H($)&&pe($)==="[object Date]"}e.isDate=K,e.types.isDate=K;function G($){return H($)&&(pe($)==="[object Error]"||$ instanceof Error)}e.isError=G,e.types.isNativeError=G;function Y($){return typeof $=="function"}e.isFunction=Y;function X($){return $===null||typeof $=="boolean"||typeof $=="number"||typeof $=="string"||typeof $=="symbol"||typeof $>"u"}e.isPrimitive=X,e.isBuffer=U9();function pe($){return Object.prototype.toString.call($)}function R($){return $<10?"0"+$.toString(10):$.toString(10)}var re=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function fe(){var $=new Date,j=[R($.getHours()),R($.getMinutes()),R($.getSeconds())].join(":");return[$.getDate(),re[$.getMonth()],j].join(" ")}e.log=function(){console.log("%s - %s",fe(),e.format.apply(e,arguments))},e.inherits=M9(),e._extend=function($,j){if(!j||!H(j))return $;for(var N=Object.keys(j),k=N.length;k--;)$[N[k]]=j[N[k]];return $};function Z($,j){return Object.prototype.hasOwnProperty.call($,j)}var O=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(j){if(typeof j!="function")throw new TypeError('The "original" argument must be of type Function');if(O&&j[O]){var N=j[O];if(typeof N!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(N,O,{value:N,enumerable:!1,writable:!1,configurable:!0}),N}function N(){for(var k,ye,ge=new Promise(function(P,Q){k=P,ye=Q}),q=[],E=0;E<arguments.length;E++)q.push(arguments[E]);q.push(function(P,Q){P?ye(P):k(Q)});try{j.apply(this,q)}catch(P){ye(P)}return ge}return Object.setPrototypeOf(N,Object.getPrototypeOf(j)),O&&Object.defineProperty(N,O,{value:N,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(N,i(j))},e.promisify.custom=O;function V($,j){if(!$){var N=new Error("Promise was rejected with a falsy value");N.reason=$,$=N}return j($)}function ie($){if(typeof $!="function")throw new TypeError('The "original" argument must be of type Function');function j(){for(var N=[],k=0;k<arguments.length;k++)N.push(arguments[k]);var ye=N.pop();if(typeof ye!="function")throw new TypeError("The last argument must be of type Function");var ge=this,q=function(){return ye.apply(ge,arguments)};$.apply(this,N).then(function(E){it.nextTick(q.bind(null,null,E))},function(E){it.nextTick(V.bind(null,E,q))})}return Object.setPrototypeOf(j,Object.getPrototypeOf($)),Object.defineProperties(j,i($)),j}e.callbackify=ie})(h0)),h0}var PS;function U3(){if(PS)return d0;PS=1;function e(D){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},e(D)}function t(D,M,te){return Object.defineProperty(D,"prototype",{writable:!1}),D}function i(D,M){if(!(D instanceof M))throw new TypeError("Cannot call a class as a function")}function a(D,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(M&&M.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),Object.defineProperty(D,"prototype",{writable:!1}),M&&s(D,M)}function s(D,M){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(z,ne){return z.__proto__=ne,z},s(D,M)}function c(D){var M=p();return function(){var z=h(D),ne;if(M){var ce=h(this).constructor;ne=Reflect.construct(z,arguments,ce)}else ne=z.apply(this,arguments);return l(this,ne)}}function l(D,M){if(M&&(e(M)==="object"||typeof M=="function"))return M;if(M!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return f(D)}function f(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function p(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function h(D){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(te){return te.__proto__||Object.getPrototypeOf(te)},h(D)}var b={},v,A;function I(D,M,te){te||(te=Error);function z(ce,oe,F){return typeof M=="string"?M:M(ce,oe,F)}var ne=(function(ce){a(F,ce);var oe=c(F);function F(H,K,G){var Y;return i(this,F),Y=oe.call(this,z(H,K,G)),Y.code=D,Y}return t(F)})(te);b[D]=ne}function C(D,M){if(Array.isArray(D)){var te=D.length;return D=D.map(function(z){return String(z)}),te>2?"one of ".concat(M," ").concat(D.slice(0,te-1).join(", "),", or ")+D[te-1]:te===2?"one of ".concat(M," ").concat(D[0]," or ").concat(D[1]):"of ".concat(M," ").concat(D[0])}else return"of ".concat(M," ").concat(String(D))}function U(D,M,te){return D.substr(0,M.length)===M}function B(D,M,te){return(te===void 0||te>D.length)&&(te=D.length),D.substring(te-M.length,te)===M}function _(D,M,te){return typeof te!="number"&&(te=0),te+M.length>D.length?!1:D.indexOf(M,te)!==-1}return I("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),I("ERR_INVALID_ARG_TYPE",function(D,M,te){v===void 0&&(v=c1()),v(typeof D=="string","'name' must be a string");var z;typeof M=="string"&&U(M,"not ")?(z="must not be",M=M.replace(/^not /,"")):z="must be";var ne;if(B(D," argument"))ne="The ".concat(D," ").concat(z," ").concat(C(M,"type"));else{var ce=_(D,".")?"property":"argument";ne='The "'.concat(D,'" ').concat(ce," ").concat(z," ").concat(C(M,"type"))}return ne+=". Received type ".concat(e(te)),ne},TypeError),I("ERR_INVALID_ARG_VALUE",function(D,M){var te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";A===void 0&&(A=Al());var z=A.inspect(M);return z.length>128&&(z="".concat(z.slice(0,128),"...")),"The argument '".concat(D,"' ").concat(te,". Received ").concat(z)},TypeError),I("ERR_INVALID_RETURN_VALUE",function(D,M,te){var z;return te&&te.constructor&&te.constructor.name?z="instance of ".concat(te.constructor.name):z="type ".concat(e(te)),"Expected ".concat(D,' to be returned from the "').concat(M,'"')+" function but got ".concat(z,".")},TypeError),I("ERR_MISSING_ARGS",function(){for(var D=arguments.length,M=new Array(D),te=0;te<D;te++)M[te]=arguments[te];v===void 0&&(v=c1()),v(M.length>0,"At least one arg needs to be specified");var z="The ",ne=M.length;switch(M=M.map(function(ce){return'"'.concat(ce,'"')}),ne){case 1:z+="".concat(M[0]," argument");break;case 2:z+="".concat(M[0]," and ").concat(M[1]," arguments");break;default:z+=M.slice(0,ne-1).join(", "),z+=", and ".concat(M[ne-1]," arguments");break}return"".concat(z," must be specified")},TypeError),d0.codes=b,d0}var hg,NS;function j9(){if(NS)return hg;NS=1;function e(Z,O){var V=Object.keys(Z);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(Z);O&&(ie=ie.filter(function($){return Object.getOwnPropertyDescriptor(Z,$).enumerable})),V.push.apply(V,ie)}return V}function t(Z){for(var O=1;O<arguments.length;O++){var V=arguments[O]!=null?arguments[O]:{};O%2?e(Object(V),!0).forEach(function(ie){i(Z,ie,V[ie])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Z,Object.getOwnPropertyDescriptors(V)):e(Object(V)).forEach(function(ie){Object.defineProperty(Z,ie,Object.getOwnPropertyDescriptor(V,ie))})}return Z}function i(Z,O,V){return O=l(O),O in Z?Object.defineProperty(Z,O,{value:V,enumerable:!0,configurable:!0,writable:!0}):Z[O]=V,Z}function a(Z,O){if(!(Z instanceof O))throw new TypeError("Cannot call a class as a function")}function s(Z,O){for(var V=0;V<O.length;V++){var ie=O[V];ie.enumerable=ie.enumerable||!1,ie.configurable=!0,"value"in ie&&(ie.writable=!0),Object.defineProperty(Z,l(ie.key),ie)}}function c(Z,O,V){return O&&s(Z.prototype,O),Object.defineProperty(Z,"prototype",{writable:!1}),Z}function l(Z){var O=f(Z,"string");return D(O)==="symbol"?O:String(O)}function f(Z,O){if(D(Z)!=="object"||Z===null)return Z;var V=Z[Symbol.toPrimitive];if(V!==void 0){var ie=V.call(Z,O);if(D(ie)!=="object")return ie;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(Z)}function p(Z,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function");Z.prototype=Object.create(O&&O.prototype,{constructor:{value:Z,writable:!0,configurable:!0}}),Object.defineProperty(Z,"prototype",{writable:!1}),O&&B(Z,O)}function h(Z){var O=C();return function(){var ie=_(Z),$;if(O){var j=_(this).constructor;$=Reflect.construct(ie,arguments,j)}else $=ie.apply(this,arguments);return b(this,$)}}function b(Z,O){if(O&&(D(O)==="object"||typeof O=="function"))return O;if(O!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(Z)}function v(Z){if(Z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Z}function A(Z){var O=typeof Map=="function"?new Map:void 0;return A=function(ie){if(ie===null||!U(ie))return ie;if(typeof ie!="function")throw new TypeError("Super expression must either be null or a function");if(typeof O<"u"){if(O.has(ie))return O.get(ie);O.set(ie,$)}function $(){return I(ie,arguments,_(this).constructor)}return $.prototype=Object.create(ie.prototype,{constructor:{value:$,enumerable:!1,writable:!0,configurable:!0}}),B($,ie)},A(Z)}function I(Z,O,V){return C()?I=Reflect.construct.bind():I=function($,j,N){var k=[null];k.push.apply(k,j);var ye=Function.bind.apply($,k),ge=new ye;return N&&B(ge,N.prototype),ge},I.apply(null,arguments)}function C(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function U(Z){return Function.toString.call(Z).indexOf("[native code]")!==-1}function B(Z,O){return B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ie,$){return ie.__proto__=$,ie},B(Z,O)}function _(Z){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(V){return V.__proto__||Object.getPrototypeOf(V)},_(Z)}function D(Z){"@babel/helpers - typeof";return D=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(O){return typeof O}:function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},D(Z)}var M=Al(),te=M.inspect,z=U3(),ne=z.codes.ERR_INVALID_ARG_TYPE;function ce(Z,O,V){return(V===void 0||V>Z.length)&&(V=Z.length),Z.substring(V-O.length,V)===O}function oe(Z,O){if(O=Math.floor(O),Z.length==0||O==0)return"";var V=Z.length*O;for(O=Math.floor(Math.log(O)/Math.log(2));O;)Z+=Z,O--;return Z+=Z.substring(0,V-Z.length),Z}var F="",H="",K="",G="",Y={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},X=10;function pe(Z){var O=Object.keys(Z),V=Object.create(Object.getPrototypeOf(Z));return O.forEach(function(ie){V[ie]=Z[ie]}),Object.defineProperty(V,"message",{value:Z.message}),V}function R(Z){return te(Z,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function re(Z,O,V){var ie="",$="",j=0,N="",k=!1,ye=R(Z),ge=ye.split(`
71
- `),q=R(O).split(`
72
- `),E=0,P="";if(V==="strictEqual"&&D(Z)==="object"&&D(O)==="object"&&Z!==null&&O!==null&&(V="strictEqualObject"),ge.length===1&&q.length===1&&ge[0]!==q[0]){var Q=ge[0].length+q[0].length;if(Q<=X){if((D(Z)!=="object"||Z===null)&&(D(O)!=="object"||O===null)&&(Z!==0||O!==0))return"".concat(Y[V],`
73
-
74
- `)+"".concat(ge[0]," !== ").concat(q[0],`
75
- `)}else if(V!=="strictEqualObject"){var W=it.stderr&&it.stderr.isTTY?it.stderr.columns:80;if(Q<W){for(;ge[0][E]===q[0][E];)E++;E>2&&(P=`
76
- `.concat(oe(" ",E),"^"),E=0)}}}for(var le=ge[ge.length-1],de=q[q.length-1];le===de&&(E++<2?N=`
77
- `.concat(le).concat(N):ie=le,ge.pop(),q.pop(),!(ge.length===0||q.length===0));)le=ge[ge.length-1],de=q[q.length-1];var x=Math.max(ge.length,q.length);if(x===0){var g=ye.split(`
78
- `);if(g.length>30)for(g[26]="".concat(F,"...").concat(G);g.length>27;)g.pop();return"".concat(Y.notIdentical,`
79
-
80
- `).concat(g.join(`
81
- `),`
82
- `)}E>3&&(N=`
83
- `.concat(F,"...").concat(G).concat(N),k=!0),ie!==""&&(N=`
84
- `.concat(ie).concat(N),ie="");var m=0,S=Y[V]+`
85
- `.concat(H,"+ actual").concat(G," ").concat(K,"- expected").concat(G),ee=" ".concat(F,"...").concat(G," Lines skipped");for(E=0;E<x;E++){var Ae=E-j;if(ge.length<E+1)Ae>1&&E>2&&(Ae>4?($+=`
86
- `.concat(F,"...").concat(G),k=!0):Ae>3&&($+=`
87
- `.concat(q[E-2]),m++),$+=`
88
- `.concat(q[E-1]),m++),j=E,ie+=`
89
- `.concat(K,"-").concat(G," ").concat(q[E]),m++;else if(q.length<E+1)Ae>1&&E>2&&(Ae>4?($+=`
90
- `.concat(F,"...").concat(G),k=!0):Ae>3&&($+=`
91
- `.concat(ge[E-2]),m++),$+=`
92
- `.concat(ge[E-1]),m++),j=E,$+=`
93
- `.concat(H,"+").concat(G," ").concat(ge[E]),m++;else{var Se=q[E],Me=ge[E],se=Me!==Se&&(!ce(Me,",")||Me.slice(0,-1)!==Se);se&&ce(Se,",")&&Se.slice(0,-1)===Me&&(se=!1,Me+=","),se?(Ae>1&&E>2&&(Ae>4?($+=`
94
- `.concat(F,"...").concat(G),k=!0):Ae>3&&($+=`
95
- `.concat(ge[E-2]),m++),$+=`
96
- `.concat(ge[E-1]),m++),j=E,$+=`
97
- `.concat(H,"+").concat(G," ").concat(Me),ie+=`
98
- `.concat(K,"-").concat(G," ").concat(Se),m+=2):($+=ie,ie="",(Ae===1||E===0)&&($+=`
99
- `.concat(Me),m++))}if(m>20&&E<x-2)return"".concat(S).concat(ee,`
100
- `).concat($,`
101
- `).concat(F,"...").concat(G).concat(ie,`
102
- `)+"".concat(F,"...").concat(G)}return"".concat(S).concat(k?ee:"",`
103
- `).concat($).concat(ie).concat(N).concat(P)}var fe=(function(Z,O){p(ie,Z);var V=h(ie);function ie($){var j;if(a(this,ie),D($)!=="object"||$===null)throw new ne("options","Object",$);var N=$.message,k=$.operator,ye=$.stackStartFn,ge=$.actual,q=$.expected,E=Error.stackTraceLimit;if(Error.stackTraceLimit=0,N!=null)j=V.call(this,String(N));else if(it.stderr&&it.stderr.isTTY&&(it.stderr&&it.stderr.getColorDepth&&it.stderr.getColorDepth()!==1?(F="\x1B[34m",H="\x1B[32m",G="\x1B[39m",K="\x1B[31m"):(F="",H="",G="",K="")),D(ge)==="object"&&ge!==null&&D(q)==="object"&&q!==null&&"stack"in ge&&ge instanceof Error&&"stack"in q&&q instanceof Error&&(ge=pe(ge),q=pe(q)),k==="deepStrictEqual"||k==="strictEqual")j=V.call(this,re(ge,q,k));else if(k==="notDeepStrictEqual"||k==="notStrictEqual"){var P=Y[k],Q=R(ge).split(`
104
- `);if(k==="notStrictEqual"&&D(ge)==="object"&&ge!==null&&(P=Y.notStrictEqualObject),Q.length>30)for(Q[26]="".concat(F,"...").concat(G);Q.length>27;)Q.pop();Q.length===1?j=V.call(this,"".concat(P," ").concat(Q[0])):j=V.call(this,"".concat(P,`
105
-
106
- `).concat(Q.join(`
107
- `),`
108
- `))}else{var W=R(ge),le="",de=Y[k];k==="notDeepEqual"||k==="notEqual"?(W="".concat(Y[k],`
109
-
110
- `).concat(W),W.length>1024&&(W="".concat(W.slice(0,1021),"..."))):(le="".concat(R(q)),W.length>512&&(W="".concat(W.slice(0,509),"...")),le.length>512&&(le="".concat(le.slice(0,509),"...")),k==="deepEqual"||k==="equal"?W="".concat(de,`
111
-
112
- `).concat(W,`
113
-
114
- should equal
115
-
116
- `):le=" ".concat(k," ").concat(le)),j=V.call(this,"".concat(W).concat(le))}return Error.stackTraceLimit=E,j.generatedMessage=!N,Object.defineProperty(v(j),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),j.code="ERR_ASSERTION",j.actual=ge,j.expected=q,j.operator=k,Error.captureStackTrace&&Error.captureStackTrace(v(j),ye),j.stack,j.name="AssertionError",b(j)}return c(ie,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:O,value:function(j,N){return te(this,t(t({},N),{},{customInspect:!1,depth:0}))}}]),ie})(A(Error),te.custom);return hg=fe,hg}var pg,LS;function M3(){if(LS)return pg;LS=1;var e=Object.prototype.toString;return pg=function(i){var a=e.call(i),s=a==="[object Arguments]";return s||(s=a!=="[object Array]"&&i!==null&&typeof i=="object"&&typeof i.length=="number"&&i.length>=0&&e.call(i.callee)==="[object Function]"),s},pg}var yg,qS;function P9(){if(qS)return yg;qS=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=M3(),s=Object.prototype.propertyIsEnumerable,c=!s.call({toString:null},"toString"),l=s.call(function(){},"prototype"),f=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],p=function(A){var I=A.constructor;return I&&I.prototype===A},h={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},b=(function(){if(typeof window>"u")return!1;for(var A in window)try{if(!h["$"+A]&&t.call(window,A)&&window[A]!==null&&typeof window[A]=="object")try{p(window[A])}catch{return!0}}catch{return!0}return!1})(),v=function(A){if(typeof window>"u"||!b)return p(A);try{return p(A)}catch{return!1}};e=function(I){var C=I!==null&&typeof I=="object",U=i.call(I)==="[object Function]",B=a(I),_=C&&i.call(I)==="[object String]",D=[];if(!C&&!U&&!B)throw new TypeError("Object.keys called on a non-object");var M=l&&U;if(_&&I.length>0&&!t.call(I,0))for(var te=0;te<I.length;++te)D.push(String(te));if(B&&I.length>0)for(var z=0;z<I.length;++z)D.push(String(z));else for(var ne in I)!(M&&ne==="prototype")&&t.call(I,ne)&&D.push(String(ne));if(c)for(var ce=v(I),oe=0;oe<f.length;++oe)!(ce&&f[oe]==="constructor")&&t.call(I,f[oe])&&D.push(f[oe]);return D}}return yg=e,yg}var gg,$S;function j3(){if($S)return gg;$S=1;var e=Array.prototype.slice,t=M3(),i=Object.keys,a=i?function(l){return i(l)}:P9(),s=Object.keys;return a.shim=function(){if(Object.keys){var l=(function(){var f=Object.keys(arguments);return f&&f.length===arguments.length})(1,2);l||(Object.keys=function(p){return t(p)?s(e.call(p)):s(p)})}else Object.keys=a;return Object.keys||a},gg=a,gg}var mg,HS;function N9(){if(HS)return mg;HS=1;var e=j3(),t=Fv()(),i=xu(),a=Tv(),s=i("Array.prototype.push"),c=i("Object.prototype.propertyIsEnumerable"),l=t?a.getOwnPropertySymbols:null;return mg=function(p,h){if(p==null)throw new TypeError("target must be an object");var b=a(p);if(arguments.length===1)return b;for(var v=1;v<arguments.length;++v){var A=a(arguments[v]),I=e(A),C=t&&(a.getOwnPropertySymbols||l);if(C)for(var U=C(A),B=0;B<U.length;++B){var _=U[B];c(A,_)&&s(I,_)}for(var D=0;D<I.length;++D){var M=I[D];if(c(A,M)){var te=A[M];b[M]=te}}}return b},mg}var Ag,kS;function L9(){if(kS)return Ag;kS=1;var e=N9(),t=function(){if(!Object.assign)return!1;for(var a="abcdefghijklmnopqrst",s=a.split(""),c={},l=0;l<s.length;++l)c[s[l]]=s[l];var f=Object.assign({},c),p="";for(var h in f)p+=h;return a!==p},i=function(){if(!Object.assign||!Object.preventExtensions)return!1;var a=Object.preventExtensions({1:2});try{Object.assign(a,"xy")}catch{return a[1]==="y"}return!1};return Ag=function(){return!Object.assign||t()||i()?e:Object.assign},Ag}var bg,zS;function P3(){if(zS)return bg;zS=1;var e=function(t){return t!==t};return bg=function(i,a){return i===0&&a===0?1/i===1/a:!!(i===a||e(i)&&e(a))},bg}var vg,GS;function Mv(){if(GS)return vg;GS=1;var e=P3();return vg=function(){return typeof Object.is=="function"?Object.is:e},vg}var xg,QS;function q9(){if(QS)return xg;QS=1;var e=Uv(),t=Ch(),i=t(e("String.prototype.indexOf"));return xg=function(s,c){var l=e(s,!!c);return typeof l=="function"&&i(s,".prototype.")>-1?t(l):l},xg}var Eg,VS;function Oh(){if(VS)return Eg;VS=1;var e=j3(),t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",i=Object.prototype.toString,a=Array.prototype.concat,s=R3(),c=function(h){return typeof h=="function"&&i.call(h)==="[object Function]"},l=_3()(),f=function(h,b,v,A){if(b in h){if(A===!0){if(h[b]===v)return}else if(!c(A)||!A())return}l?s(h,b,v,!0):s(h,b,v)},p=function(h,b){var v=arguments.length>2?arguments[2]:{},A=e(b);t&&(A=a.call(A,Object.getOwnPropertySymbols(b)));for(var I=0;I<A.length;I+=1)f(h,A[I],b[A[I]],v[A[I]])};return p.supportsDescriptors=!!l,Eg=p,Eg}var wg,KS;function $9(){if(KS)return wg;KS=1;var e=Mv(),t=Oh();return wg=function(){var a=e();return t(Object,{is:a},{is:function(){return Object.is!==a}}),a},wg}var Ig,YS;function H9(){if(YS)return Ig;YS=1;var e=Oh(),t=Ch(),i=P3(),a=Mv(),s=$9(),c=t(a(),Object);return e(c,{getPolyfill:a,implementation:i,shim:s}),Ig=c,Ig}var Sg,XS;function N3(){return XS||(XS=1,Sg=function(t){return t!==t}),Sg}var Cg,ZS;function L3(){if(ZS)return Cg;ZS=1;var e=N3();return Cg=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:e},Cg}var Og,JS;function k9(){if(JS)return Og;JS=1;var e=Oh(),t=L3();return Og=function(){var a=t();return e(Number,{isNaN:a},{isNaN:function(){return Number.isNaN!==a}}),a},Og}var Fg,WS;function z9(){if(WS)return Fg;WS=1;var e=Ch(),t=Oh(),i=N3(),a=L3(),s=k9(),c=e(a(),Number);return t(c,{getPolyfill:a,implementation:i,shim:s}),Fg=c,Fg}var Tg,eC;function G9(){if(eC)return Tg;eC=1;function e(se,ue){return c(se)||s(se,ue)||i(se,ue)||t()}function t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
117
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i(se,ue){if(se){if(typeof se=="string")return a(se,ue);var Ee=Object.prototype.toString.call(se).slice(8,-1);if(Ee==="Object"&&se.constructor&&(Ee=se.constructor.name),Ee==="Map"||Ee==="Set")return Array.from(se);if(Ee==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ee))return a(se,ue)}}function a(se,ue){(ue==null||ue>se.length)&&(ue=se.length);for(var Ee=0,Oe=new Array(ue);Ee<ue;Ee++)Oe[Ee]=se[Ee];return Oe}function s(se,ue){var Ee=se==null?null:typeof Symbol<"u"&&se[Symbol.iterator]||se["@@iterator"];if(Ee!=null){var Oe,_e,Ne,qe,ke=[],ze=!0,Ye=!1;try{if(Ne=(Ee=Ee.call(se)).next,ue!==0)for(;!(ze=(Oe=Ne.call(Ee)).done)&&(ke.push(Oe.value),ke.length!==ue);ze=!0);}catch(Xe){Ye=!0,_e=Xe}finally{try{if(!ze&&Ee.return!=null&&(qe=Ee.return(),Object(qe)!==qe))return}finally{if(Ye)throw _e}}return ke}}function c(se){if(Array.isArray(se))return se}function l(se){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ue){return typeof ue}:function(ue){return ue&&typeof Symbol=="function"&&ue.constructor===Symbol&&ue!==Symbol.prototype?"symbol":typeof ue},l(se)}var f=/a/g.flags!==void 0,p=function(ue){var Ee=[];return ue.forEach(function(Oe){return Ee.push(Oe)}),Ee},h=function(ue){var Ee=[];return ue.forEach(function(Oe,_e){return Ee.push([_e,Oe])}),Ee},b=Object.is?Object.is:H9(),v=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},A=Number.isNaN?Number.isNaN:z9();function I(se){return se.call.bind(se)}var C=I(Object.prototype.hasOwnProperty),U=I(Object.prototype.propertyIsEnumerable),B=I(Object.prototype.toString),_=Al().types,D=_.isAnyArrayBuffer,M=_.isArrayBufferView,te=_.isDate,z=_.isMap,ne=_.isRegExp,ce=_.isSet,oe=_.isNativeError,F=_.isBoxedPrimitive,H=_.isNumberObject,K=_.isStringObject,G=_.isBooleanObject,Y=_.isBigIntObject,X=_.isSymbolObject,pe=_.isFloat32Array,R=_.isFloat64Array;function re(se){if(se.length===0||se.length>10)return!0;for(var ue=0;ue<se.length;ue++){var Ee=se.charCodeAt(ue);if(Ee<48||Ee>57)return!0}return se.length===10&&se>=Math.pow(2,32)}function fe(se){return Object.keys(se).filter(re).concat(v(se).filter(Object.prototype.propertyIsEnumerable.bind(se)))}/*!
118
- * The buffer module from node.js, for the browser.
119
- *
120
- * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
121
- * @license MIT
122
- */function Z(se,ue){if(se===ue)return 0;for(var Ee=se.length,Oe=ue.length,_e=0,Ne=Math.min(Ee,Oe);_e<Ne;++_e)if(se[_e]!==ue[_e]){Ee=se[_e],Oe=ue[_e];break}return Ee<Oe?-1:Oe<Ee?1:0}var O=!0,V=!1,ie=0,$=1,j=2,N=3;function k(se,ue){return f?se.source===ue.source&&se.flags===ue.flags:RegExp.prototype.toString.call(se)===RegExp.prototype.toString.call(ue)}function ye(se,ue){if(se.byteLength!==ue.byteLength)return!1;for(var Ee=0;Ee<se.byteLength;Ee++)if(se[Ee]!==ue[Ee])return!1;return!0}function ge(se,ue){return se.byteLength!==ue.byteLength?!1:Z(new Uint8Array(se.buffer,se.byteOffset,se.byteLength),new Uint8Array(ue.buffer,ue.byteOffset,ue.byteLength))===0}function q(se,ue){return se.byteLength===ue.byteLength&&Z(new Uint8Array(se),new Uint8Array(ue))===0}function E(se,ue){return H(se)?H(ue)&&b(Number.prototype.valueOf.call(se),Number.prototype.valueOf.call(ue)):K(se)?K(ue)&&String.prototype.valueOf.call(se)===String.prototype.valueOf.call(ue):G(se)?G(ue)&&Boolean.prototype.valueOf.call(se)===Boolean.prototype.valueOf.call(ue):Y(se)?Y(ue)&&BigInt.prototype.valueOf.call(se)===BigInt.prototype.valueOf.call(ue):X(ue)&&Symbol.prototype.valueOf.call(se)===Symbol.prototype.valueOf.call(ue)}function P(se,ue,Ee,Oe){if(se===ue)return se!==0?!0:Ee?b(se,ue):!0;if(Ee){if(l(se)!=="object")return typeof se=="number"&&A(se)&&A(ue);if(l(ue)!=="object"||se===null||ue===null||Object.getPrototypeOf(se)!==Object.getPrototypeOf(ue))return!1}else{if(se===null||l(se)!=="object")return ue===null||l(ue)!=="object"?se==ue:!1;if(ue===null||l(ue)!=="object")return!1}var _e=B(se),Ne=B(ue);if(_e!==Ne)return!1;if(Array.isArray(se)){if(se.length!==ue.length)return!1;var qe=fe(se),ke=fe(ue);return qe.length!==ke.length?!1:W(se,ue,Ee,Oe,$,qe)}if(_e==="[object Object]"&&(!z(se)&&z(ue)||!ce(se)&&ce(ue)))return!1;if(te(se)){if(!te(ue)||Date.prototype.getTime.call(se)!==Date.prototype.getTime.call(ue))return!1}else if(ne(se)){if(!ne(ue)||!k(se,ue))return!1}else if(oe(se)||se instanceof Error){if(se.message!==ue.message||se.name!==ue.name)return!1}else if(M(se)){if(!Ee&&(pe(se)||R(se))){if(!ye(se,ue))return!1}else if(!ge(se,ue))return!1;var ze=fe(se),Ye=fe(ue);return ze.length!==Ye.length?!1:W(se,ue,Ee,Oe,ie,ze)}else{if(ce(se))return!ce(ue)||se.size!==ue.size?!1:W(se,ue,Ee,Oe,j);if(z(se))return!z(ue)||se.size!==ue.size?!1:W(se,ue,Ee,Oe,N);if(D(se)){if(!q(se,ue))return!1}else if(F(se)&&!E(se,ue))return!1}return W(se,ue,Ee,Oe,ie)}function Q(se,ue){return ue.filter(function(Ee){return U(se,Ee)})}function W(se,ue,Ee,Oe,_e,Ne){if(arguments.length===5){Ne=Object.keys(se);var qe=Object.keys(ue);if(Ne.length!==qe.length)return!1}for(var ke=0;ke<Ne.length;ke++)if(!C(ue,Ne[ke]))return!1;if(Ee&&arguments.length===5){var ze=v(se);if(ze.length!==0){var Ye=0;for(ke=0;ke<ze.length;ke++){var Xe=ze[ke];if(U(se,Xe)){if(!U(ue,Xe))return!1;Ne.push(Xe),Ye++}else if(U(ue,Xe))return!1}var ut=v(ue);if(ze.length!==ut.length&&Q(ue,ut).length!==Ye)return!1}else{var ft=v(ue);if(ft.length!==0&&Q(ue,ft).length!==0)return!1}}if(Ne.length===0&&(_e===ie||_e===$&&se.length===0||se.size===0))return!0;if(Oe===void 0)Oe={val1:new Map,val2:new Map,position:0};else{var ht=Oe.val1.get(se);if(ht!==void 0){var pt=Oe.val2.get(ue);if(pt!==void 0)return ht===pt}Oe.position++}Oe.val1.set(se,Oe.position),Oe.val2.set(ue,Oe.position);var mt=Ae(se,ue,Ee,Ne,Oe,_e);return Oe.val1.delete(se),Oe.val2.delete(ue),mt}function le(se,ue,Ee,Oe){for(var _e=p(se),Ne=0;Ne<_e.length;Ne++){var qe=_e[Ne];if(P(ue,qe,Ee,Oe))return se.delete(qe),!0}return!1}function de(se){switch(l(se)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":se=+se;case"number":if(A(se))return!1}return!0}function x(se,ue,Ee){var Oe=de(Ee);return Oe??(ue.has(Oe)&&!se.has(Oe))}function g(se,ue,Ee,Oe,_e){var Ne=de(Ee);if(Ne!=null)return Ne;var qe=ue.get(Ne);return qe===void 0&&!ue.has(Ne)||!P(Oe,qe,!1,_e)?!1:!se.has(Ne)&&P(Oe,qe,!1,_e)}function m(se,ue,Ee,Oe){for(var _e=null,Ne=p(se),qe=0;qe<Ne.length;qe++){var ke=Ne[qe];if(l(ke)==="object"&&ke!==null)_e===null&&(_e=new Set),_e.add(ke);else if(!ue.has(ke)){if(Ee||!x(se,ue,ke))return!1;_e===null&&(_e=new Set),_e.add(ke)}}if(_e!==null){for(var ze=p(ue),Ye=0;Ye<ze.length;Ye++){var Xe=ze[Ye];if(l(Xe)==="object"&&Xe!==null){if(!le(_e,Xe,Ee,Oe))return!1}else if(!Ee&&!se.has(Xe)&&!le(_e,Xe,Ee,Oe))return!1}return _e.size===0}return!0}function S(se,ue,Ee,Oe,_e,Ne){for(var qe=p(se),ke=0;ke<qe.length;ke++){var ze=qe[ke];if(P(Ee,ze,_e,Ne)&&P(Oe,ue.get(ze),_e,Ne))return se.delete(ze),!0}return!1}function ee(se,ue,Ee,Oe){for(var _e=null,Ne=h(se),qe=0;qe<Ne.length;qe++){var ke=e(Ne[qe],2),ze=ke[0],Ye=ke[1];if(l(ze)==="object"&&ze!==null)_e===null&&(_e=new Set),_e.add(ze);else{var Xe=ue.get(ze);if(Xe===void 0&&!ue.has(ze)||!P(Ye,Xe,Ee,Oe)){if(Ee||!g(se,ue,ze,Ye,Oe))return!1;_e===null&&(_e=new Set),_e.add(ze)}}}if(_e!==null){for(var ut=h(ue),ft=0;ft<ut.length;ft++){var ht=e(ut[ft],2),pt=ht[0],mt=ht[1];if(l(pt)==="object"&&pt!==null){if(!S(_e,se,pt,mt,Ee,Oe))return!1}else if(!Ee&&(!se.has(pt)||!P(se.get(pt),mt,!1,Oe))&&!S(_e,se,pt,mt,!1,Oe))return!1}return _e.size===0}return!0}function Ae(se,ue,Ee,Oe,_e,Ne){var qe=0;if(Ne===j){if(!m(se,ue,Ee,_e))return!1}else if(Ne===N){if(!ee(se,ue,Ee,_e))return!1}else if(Ne===$)for(;qe<se.length;qe++)if(C(se,qe)){if(!C(ue,qe)||!P(se[qe],ue[qe],Ee,_e))return!1}else{if(C(ue,qe))return!1;for(var ke=Object.keys(se);qe<ke.length;qe++){var ze=ke[qe];if(!C(ue,ze)||!P(se[ze],ue[ze],Ee,_e))return!1}return ke.length===Object.keys(ue).length}for(qe=0;qe<Oe.length;qe++){var Ye=Oe[qe];if(!P(se[Ye],ue[Ye],Ee,_e))return!1}return!0}function Se(se,ue){return P(se,ue,V)}function Me(se,ue){return P(se,ue,O)}return Tg={isDeepEqual:Se,isDeepStrictEqual:Me},Tg}var tC;function c1(){if(tC)return f0.exports;tC=1;function e(j){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(N){return typeof N}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},e(j)}function t(j,N,k){return Object.defineProperty(j,"prototype",{writable:!1}),j}function i(j,N){if(!(j instanceof N))throw new TypeError("Cannot call a class as a function")}var a=U3(),s=a.codes,c=s.ERR_AMBIGUOUS_ARGUMENT,l=s.ERR_INVALID_ARG_TYPE,f=s.ERR_INVALID_ARG_VALUE,p=s.ERR_INVALID_RETURN_VALUE,h=s.ERR_MISSING_ARGS,b=j9(),v=Al(),A=v.inspect,I=Al().types,C=I.isPromise,U=I.isRegExp,B=L9()(),_=Mv()(),D=q9()("RegExp.prototype.test"),M,te;function z(){var j=G9();M=j.isDeepEqual,te=j.isDeepStrictEqual}var ne=!1,ce=f0.exports=G,oe={};function F(j){throw j.message instanceof Error?j.message:new b(j)}function H(j,N,k,ye,ge){var q=arguments.length,E;if(q===0)E="Failed";else if(q===1)k=j,j=void 0;else{if(ne===!1){ne=!0;var P=it.emitWarning?it.emitWarning:console.warn.bind(console);P("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}q===2&&(ye="!=")}if(k instanceof Error)throw k;var Q={actual:j,expected:N,operator:ye===void 0?"fail":ye,stackStartFn:ge||H};k!==void 0&&(Q.message=k);var W=new b(Q);throw E&&(W.message=E,W.generatedMessage=!0),W}ce.fail=H,ce.AssertionError=b;function K(j,N,k,ye){if(!k){var ge=!1;if(N===0)ge=!0,ye="No value argument passed to `assert.ok()`";else if(ye instanceof Error)throw ye;var q=new b({actual:k,expected:!0,message:ye,operator:"==",stackStartFn:j});throw q.generatedMessage=ge,q}}function G(){for(var j=arguments.length,N=new Array(j),k=0;k<j;k++)N[k]=arguments[k];K.apply(void 0,[G,N.length].concat(N))}ce.ok=G,ce.equal=function j(N,k,ye){if(arguments.length<2)throw new h("actual","expected");N!=k&&F({actual:N,expected:k,message:ye,operator:"==",stackStartFn:j})},ce.notEqual=function j(N,k,ye){if(arguments.length<2)throw new h("actual","expected");N==k&&F({actual:N,expected:k,message:ye,operator:"!=",stackStartFn:j})},ce.deepEqual=function j(N,k,ye){if(arguments.length<2)throw new h("actual","expected");M===void 0&&z(),M(N,k)||F({actual:N,expected:k,message:ye,operator:"deepEqual",stackStartFn:j})},ce.notDeepEqual=function j(N,k,ye){if(arguments.length<2)throw new h("actual","expected");M===void 0&&z(),M(N,k)&&F({actual:N,expected:k,message:ye,operator:"notDeepEqual",stackStartFn:j})},ce.deepStrictEqual=function j(N,k,ye){if(arguments.length<2)throw new h("actual","expected");M===void 0&&z(),te(N,k)||F({actual:N,expected:k,message:ye,operator:"deepStrictEqual",stackStartFn:j})},ce.notDeepStrictEqual=Y;function Y(j,N,k){if(arguments.length<2)throw new h("actual","expected");M===void 0&&z(),te(j,N)&&F({actual:j,expected:N,message:k,operator:"notDeepStrictEqual",stackStartFn:Y})}ce.strictEqual=function j(N,k,ye){if(arguments.length<2)throw new h("actual","expected");_(N,k)||F({actual:N,expected:k,message:ye,operator:"strictEqual",stackStartFn:j})},ce.notStrictEqual=function j(N,k,ye){if(arguments.length<2)throw new h("actual","expected");_(N,k)&&F({actual:N,expected:k,message:ye,operator:"notStrictEqual",stackStartFn:j})};var X=t(function j(N,k,ye){var ge=this;i(this,j),k.forEach(function(q){q in N&&(ye!==void 0&&typeof ye[q]=="string"&&U(N[q])&&D(N[q],ye[q])?ge[q]=ye[q]:ge[q]=N[q])})});function pe(j,N,k,ye,ge,q){if(!(k in j)||!te(j[k],N[k])){if(!ye){var E=new X(j,ge),P=new X(N,ge,j),Q=new b({actual:E,expected:P,operator:"deepStrictEqual",stackStartFn:q});throw Q.actual=j,Q.expected=N,Q.operator=q.name,Q}F({actual:j,expected:N,message:ye,operator:q.name,stackStartFn:q})}}function R(j,N,k,ye){if(typeof N!="function"){if(U(N))return D(N,j);if(arguments.length===2)throw new l("expected",["Function","RegExp"],N);if(e(j)!=="object"||j===null){var ge=new b({actual:j,expected:N,message:k,operator:"deepStrictEqual",stackStartFn:ye});throw ge.operator=ye.name,ge}var q=Object.keys(N);if(N instanceof Error)q.push("name","message");else if(q.length===0)throw new f("error",N,"may not be an empty object");return M===void 0&&z(),q.forEach(function(E){typeof j[E]=="string"&&U(N[E])&&D(N[E],j[E])||pe(j,N,E,k,q,ye)}),!0}return N.prototype!==void 0&&j instanceof N?!0:Error.isPrototypeOf(N)?!1:N.call({},j)===!0}function re(j){if(typeof j!="function")throw new l("fn","Function",j);try{j()}catch(N){return N}return oe}function fe(j){return C(j)||j!==null&&e(j)==="object"&&typeof j.then=="function"&&typeof j.catch=="function"}function Z(j){return Promise.resolve().then(function(){var N;if(typeof j=="function"){if(N=j(),!fe(N))throw new p("instance of Promise","promiseFn",N)}else if(fe(j))N=j;else throw new l("promiseFn",["Function","Promise"],j);return Promise.resolve().then(function(){return N}).then(function(){return oe}).catch(function(k){return k})})}function O(j,N,k,ye){if(typeof k=="string"){if(arguments.length===4)throw new l("error",["Object","Error","Function","RegExp"],k);if(e(N)==="object"&&N!==null){if(N.message===k)throw new c("error/message",'The error message "'.concat(N.message,'" is identical to the message.'))}else if(N===k)throw new c("error/message",'The error "'.concat(N,'" is identical to the message.'));ye=k,k=void 0}else if(k!=null&&e(k)!=="object"&&typeof k!="function")throw new l("error",["Object","Error","Function","RegExp"],k);if(N===oe){var ge="";k&&k.name&&(ge+=" (".concat(k.name,")")),ge+=ye?": ".concat(ye):".";var q=j.name==="rejects"?"rejection":"exception";F({actual:void 0,expected:k,operator:j.name,message:"Missing expected ".concat(q).concat(ge),stackStartFn:j})}if(k&&!R(N,k,ye,j))throw N}function V(j,N,k,ye){if(N!==oe){if(typeof k=="string"&&(ye=k,k=void 0),!k||R(N,k)){var ge=ye?": ".concat(ye):".",q=j.name==="doesNotReject"?"rejection":"exception";F({actual:N,expected:k,operator:j.name,message:"Got unwanted ".concat(q).concat(ge,`
123
- `)+'Actual message: "'.concat(N&&N.message,'"'),stackStartFn:j})}throw N}}ce.throws=function j(N){for(var k=arguments.length,ye=new Array(k>1?k-1:0),ge=1;ge<k;ge++)ye[ge-1]=arguments[ge];O.apply(void 0,[j,re(N)].concat(ye))},ce.rejects=function j(N){for(var k=arguments.length,ye=new Array(k>1?k-1:0),ge=1;ge<k;ge++)ye[ge-1]=arguments[ge];return Z(N).then(function(q){return O.apply(void 0,[j,q].concat(ye))})},ce.doesNotThrow=function j(N){for(var k=arguments.length,ye=new Array(k>1?k-1:0),ge=1;ge<k;ge++)ye[ge-1]=arguments[ge];V.apply(void 0,[j,re(N)].concat(ye))},ce.doesNotReject=function j(N){for(var k=arguments.length,ye=new Array(k>1?k-1:0),ge=1;ge<k;ge++)ye[ge-1]=arguments[ge];return Z(N).then(function(q){return V.apply(void 0,[j,q].concat(ye))})},ce.ifError=function j(N){if(N!=null){var k="ifError got unwanted exception: ";e(N)==="object"&&typeof N.message=="string"?N.message.length===0&&N.constructor?k+=N.constructor.name:k+=N.message:k+=A(N);var ye=new b({actual:N,expected:null,operator:"ifError",message:k,stackStartFn:j}),ge=N.stack;if(typeof ge=="string"){var q=ge.split(`
124
- `);q.shift();for(var E=ye.stack.split(`
125
- `),P=0;P<q.length;P++){var Q=E.indexOf(q[P]);if(Q!==-1){E=E.slice(0,Q);break}}ye.stack="".concat(E.join(`
126
- `),`
127
- `).concat(q.join(`
128
- `))}throw ye}};function ie(j,N,k,ye,ge){if(!U(N))throw new l("regexp","RegExp",N);var q=ge==="match";if(typeof j!="string"||D(N,j)!==q){if(k instanceof Error)throw k;var E=!k;k=k||(typeof j!="string"?'The "string" argument must be of type string. Received type '+"".concat(e(j)," (").concat(A(j),")"):(q?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(A(N),`. Input:
129
-
130
- `).concat(A(j),`
131
- `));var P=new b({actual:j,expected:N,message:k,operator:ge,stackStartFn:ye});throw P.generatedMessage=E,P}}ce.match=function j(N,k,ye){ie(N,k,ye,j,"match")},ce.doesNotMatch=function j(N,k,ye){ie(N,k,ye,j,"doesNotMatch")};function $(){for(var j=arguments.length,N=new Array(j),k=0;k<j;k++)N[k]=arguments[k];K.apply(void 0,[$,N.length].concat(N))}return ce.strict=B($,ce,{equal:ce.strictEqual,deepEqual:ce.deepStrictEqual,notEqual:ce.notStrictEqual,notDeepEqual:ce.notDeepStrictEqual}),ce.strict.strict=ce.strict,f0.exports}var Bg,nC;function Q9(){if(nC)return Bg;nC=1;function e(t){if(t.length>=255)throw new TypeError("Alphabet too long");for(var i=new Uint8Array(256),a=0;a<i.length;a++)i[a]=255;for(var s=0;s<t.length;s++){var c=t.charAt(s),l=c.charCodeAt(0);if(i[l]!==255)throw new TypeError(c+" is ambiguous");i[l]=s}var f=t.length,p=t.charAt(0),h=Math.log(f)/Math.log(256),b=Math.log(256)/Math.log(f);function v(C){if(C instanceof Uint8Array||(ArrayBuffer.isView(C)?C=new Uint8Array(C.buffer,C.byteOffset,C.byteLength):Array.isArray(C)&&(C=Uint8Array.from(C))),!(C instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(C.length===0)return"";for(var U=0,B=0,_=0,D=C.length;_!==D&&C[_]===0;)_++,U++;for(var M=(D-_)*b+1>>>0,te=new Uint8Array(M);_!==D;){for(var z=C[_],ne=0,ce=M-1;(z!==0||ne<B)&&ce!==-1;ce--,ne++)z+=256*te[ce]>>>0,te[ce]=z%f>>>0,z=z/f>>>0;if(z!==0)throw new Error("Non-zero carry");B=ne,_++}for(var oe=M-B;oe!==M&&te[oe]===0;)oe++;for(var F=p.repeat(U);oe<M;++oe)F+=t.charAt(te[oe]);return F}function A(C){if(typeof C!="string")throw new TypeError("Expected String");if(C.length===0)return new Uint8Array;for(var U=0,B=0,_=0;C[U]===p;)B++,U++;for(var D=(C.length-U)*h+1>>>0,M=new Uint8Array(D);C[U];){var te=i[C.charCodeAt(U)];if(te===255)return;for(var z=0,ne=D-1;(te!==0||z<_)&&ne!==-1;ne--,z++)te+=f*M[ne]>>>0,M[ne]=te%256>>>0,te=te/256>>>0;if(te!==0)throw new Error("Non-zero carry");_=z,U++}for(var ce=D-_;ce!==D&&M[ce]===0;)ce++;for(var oe=new Uint8Array(B+(D-ce)),F=B;ce!==D;)oe[F++]=M[ce++];return oe}function I(C){var U=A(C);if(U)return U;throw new Error("Non-base"+f+" character")}return{encode:v,decodeUnsafe:A,decode:I}}return Bg=e,Bg}var Rn={exports:{}},Rg,rC;function q3(){if(rC)return Rg;rC=1,Rg=t;class e extends Error{}e.prototype.name="AssertionError";function t(i,a){if(!i){var s=new e(a);throw Error.captureStackTrace&&Error.captureStackTrace(s,t),s}}return Rg}var kr={exports:{}},pd={exports:{}},_g,iC;function V9(){if(iC)return _g;iC=1;function e(a){return a.length}function t(a){const s=a.byteLength;let c="";for(let l=0;l<s;l++)c+=String.fromCharCode(a[l]);return c}function i(a,s,c=0,l=e(s)){const f=Math.min(l,a.byteLength-c);for(let p=0;p<f;p++)a[c+p]=s.charCodeAt(p);return f}return _g={byteLength:e,toString:t,write:i},_g}var Dg,aC;function K9(){if(aC)return Dg;aC=1;const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=new Uint8Array(256);for(let c=0;c<e.length;c++)t[e.charCodeAt(c)]=c;t[45]=62,t[95]=63;function i(c){let l=c.length;return c.charCodeAt(l-1)===61&&l--,l>1&&c.charCodeAt(l-1)===61&&l--,l*3>>>2}function a(c){const l=c.byteLength;let f="";for(let p=0;p<l;p+=3)f+=e[c[p]>>2]+e[(c[p]&3)<<4|c[p+1]>>4]+e[(c[p+1]&15)<<2|c[p+2]>>6]+e[c[p+2]&63];return l%3===2?f=f.substring(0,f.length-1)+"=":l%3===1&&(f=f.substring(0,f.length-2)+"=="),f}function s(c,l,f=0,p=i(l)){const h=Math.min(p,c.byteLength-f);for(let b=0,v=0;v<h;b+=4){const A=t[l.charCodeAt(b)],I=t[l.charCodeAt(b+1)],C=t[l.charCodeAt(b+2)],U=t[l.charCodeAt(b+3)];c[v++]=A<<2|I>>4,c[v++]=(I&15)<<4|C>>2,c[v++]=(C&3)<<6|U&63}return h}return Dg={byteLength:i,toString:a,write:s},Dg}var Ug,oC;function Y9(){if(oC)return Ug;oC=1;function e(s){return s.length>>>1}function t(s){const c=s.byteLength;s=new DataView(s.buffer,s.byteOffset,c);let l="",f=0;for(let p=c-c%4;f<p;f+=4)l+=s.getUint32(f).toString(16).padStart(8,"0");for(;f<c;f++)l+=s.getUint8(f).toString(16).padStart(2,"0");return l}function i(s,c,l=0,f=e(c)){const p=Math.min(f,s.byteLength-l);for(let h=0;h<p;h++){const b=a(c.charCodeAt(h*2)),v=a(c.charCodeAt(h*2+1));if(b===void 0||v===void 0)return s.subarray(0,h);s[l+h]=b<<4|v}return p}Ug={byteLength:e,toString:t,write:i};function a(s){if(s>=48&&s<=57)return s-48;if(s>=65&&s<=70)return s-65+10;if(s>=97&&s<=102)return s-97+10}return Ug}var Mg,sC;function X9(){if(sC)return Mg;sC=1;function e(a){let s=0;for(let c=0,l=a.length;c<l;c++){const f=a.charCodeAt(c);if(f>=55296&&f<=56319&&c+1<l){const p=a.charCodeAt(c+1);if(p>=56320&&p<=57343){s+=4,c++;continue}}f<=127?s+=1:f<=2047?s+=2:s+=3}return s}let t;if(typeof TextDecoder<"u"){const a=new TextDecoder;t=function(c){return a.decode(c)}}else t=function(s){const c=s.byteLength;let l="",f=0;for(;f<c;){let p=s[f];if(p<=127){l+=String.fromCharCode(p),f++;continue}let h=0,b=0;if(p<=223?(h=1,b=p&31):p<=239?(h=2,b=p&15):p<=244&&(h=3,b=p&7),c-f-h>0){let v=0;for(;v<h;)p=s[f+v+1],b=b<<6|p&63,v+=1}else b=65533,h=c-f;l+=String.fromCodePoint(b),f+=h+1}return l};let i;if(typeof TextEncoder<"u"){const a=new TextEncoder;i=function(c,l,f=0,p=e(l)){const h=Math.min(p,c.byteLength-f);return a.encodeInto(l,c.subarray(f,f+h)),h}}else i=function(s,c,l=0,f=e(c)){const p=Math.min(f,s.byteLength-l);s=s.subarray(l,l+p);let h=0,b=0;for(;h<c.length;){const v=c.codePointAt(h);if(v<=127){s[b++]=v,h++;continue}let A=0,I=0;for(v<=2047?(A=6,I=192):v<=65535?(A=12,I=224):v<=2097151&&(A=18,I=240),s[b++]=I|v>>A,A-=6;A>=0;)s[b++]=128|v>>A&63,A-=6;h+=v>=65536?2:1}return p};return Mg={byteLength:e,toString:t,write:i},Mg}var jg,uC;function Z9(){if(uC)return jg;uC=1;function e(a){return a.length*2}function t(a){const s=a.byteLength;let c="";for(let l=0;l<s-1;l+=2)c+=String.fromCharCode(a[l]+a[l+1]*256);return c}function i(a,s,c=0,l=e(s)){const f=Math.min(l,a.byteLength-c);let p=f;for(let h=0;h<s.length&&!((p-=2)<0);++h){const b=s.charCodeAt(h),v=b>>8,A=b%256;a[c+h*2]=A,a[c+h*2+1]=v}return f}return jg={byteLength:e,toString:t,write:i},jg}var cC;function J9(){return cC||(cC=1,(function(e,t){const i=V9(),a=K9(),s=Y9(),c=X9(),l=Z9(),f=new Uint8Array(Uint16Array.of(255).buffer)[0]===255;function p(x){switch(x){case"ascii":return i;case"base64":return a;case"hex":return s;case"utf8":case"utf-8":case void 0:case null:return c;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return l;default:throw new Error(`Unknown encoding: ${x}`)}}function h(x){return x instanceof Uint8Array}function b(x){try{return p(x),!0}catch{return!1}}function v(x,g,m){const S=new Uint8Array(x);return g!==void 0&&t.fill(S,g,0,S.byteLength,m),S}function A(x){return new Uint8Array(x)}function I(x){return new Uint8Array(x)}function C(x,g){return p(g).byteLength(x)}function U(x,g){if(x===g)return 0;const m=Math.min(x.byteLength,g.byteLength);x=new DataView(x.buffer,x.byteOffset,x.byteLength),g=new DataView(g.buffer,g.byteOffset,g.byteLength);let S=0;for(let ee=m-m%4;S<ee;S+=4){const Ae=x.getUint32(S,f),Se=g.getUint32(S,f);if(Ae!==Se)break}for(;S<m;S++){const ee=x.getUint8(S),Ae=g.getUint8(S);if(ee<Ae)return-1;if(ee>Ae)return 1}return x.byteLength>g.byteLength?1:x.byteLength<g.byteLength?-1:0}function B(x,g){g===void 0&&(g=x.reduce((ee,Ae)=>ee+Ae.byteLength,0));const m=new Uint8Array(g);let S=0;for(const ee of x){if(S+ee.byteLength>m.byteLength){const Ae=ee.subarray(0,m.byteLength-S);return m.set(Ae,S),m}m.set(ee,S),S+=ee.byteLength}return m}function _(x,g,m=0,S=0,ee=x.byteLength){if(ee>0&&ee<S||ee===S||x.byteLength===0||g.byteLength===0)return 0;if(m<0)throw new RangeError("targetStart is out of range");if(S<0||S>=x.byteLength)throw new RangeError("sourceStart is out of range");if(ee<0)throw new RangeError("sourceEnd is out of range");m>=g.byteLength&&(m=g.byteLength),ee>x.byteLength&&(ee=x.byteLength),g.byteLength-m<ee-S&&(ee=g.length-m+S);const Ae=ee-S;return x===g?g.copyWithin(m,S,ee):g.set(x.subarray(S,ee),m),Ae}function D(x,g){if(x===g)return!0;if(x.byteLength!==g.byteLength)return!1;const m=x.byteLength;x=new DataView(x.buffer,x.byteOffset,x.byteLength),g=new DataView(g.buffer,g.byteOffset,g.byteLength);let S=0;for(let ee=m-m%4;S<ee;S+=4)if(x.getUint32(S,f)!==g.getUint32(S,f))return!1;for(;S<m;S++)if(x.getUint8(S)!==g.getUint8(S))return!1;return!0}function M(x,g,m,S,ee){if(typeof g=="string"?typeof m=="string"?(ee=m,m=0,S=x.byteLength):typeof S=="string"&&(ee=S,S=x.byteLength):typeof g=="number"?g=g&255:typeof g=="boolean"&&(g=+g),m<0||x.byteLength<m||x.byteLength<S)throw new RangeError("Out of range index");if(m===void 0&&(m=0),S===void 0&&(S=x.byteLength),S<=m)return x;if(g||(g=0),typeof g=="number")for(let Ae=m;Ae<S;++Ae)x[Ae]=g;else{g=h(g)?g:te(g,ee);const Ae=g.byteLength;for(let Se=0;Se<S-m;++Se)x[Se+m]=g[Se%Ae]}return x}function te(x,g,m){return typeof x=="string"?z(x,g):Array.isArray(x)?ne(x):ArrayBuffer.isView(x)?ce(x):oe(x,g,m)}function z(x,g){const m=p(g),S=new Uint8Array(m.byteLength(x));return m.write(S,x,0,S.byteLength),S}function ne(x){const g=new Uint8Array(x.length);return g.set(x),g}function ce(x){const g=new Uint8Array(x.byteLength);return g.set(x),g}function oe(x,g,m){return new Uint8Array(x,g,m)}function F(x,g,m,S){return K(x,g,m,S)!==-1}function H(x,g,m,S,ee){if(x.byteLength===0)return-1;if(typeof m=="string"?(S=m,m=0):m===void 0?m=ee?0:x.length-1:m<0&&(m+=x.byteLength),m>=x.byteLength){if(ee)return-1;m=x.byteLength-1}else if(m<0)if(ee)m=0;else return-1;if(typeof g=="string")g=te(g,S);else if(typeof g=="number")return g=g&255,ee?x.indexOf(g,m):x.lastIndexOf(g,m);if(g.byteLength===0)return-1;if(ee){let Ae=-1;for(let Se=m;Se<x.byteLength;Se++)if(x[Se]===g[Ae===-1?0:Se-Ae]){if(Ae===-1&&(Ae=Se),Se-Ae+1===g.byteLength)return Ae}else Ae!==-1&&(Se-=Se-Ae),Ae=-1}else{m+g.byteLength>x.byteLength&&(m=x.byteLength-g.byteLength);for(let Ae=m;Ae>=0;Ae--){let Se=!0;for(let Me=0;Me<g.byteLength;Me++)if(x[Ae+Me]!==g[Me]){Se=!1;break}if(Se)return Ae}}return-1}function K(x,g,m,S){return H(x,g,m,S,!0)}function G(x,g,m,S){return H(x,g,m,S,!1)}function Y(x,g,m){const S=x[g];x[g]=x[m],x[m]=S}function X(x){const g=x.byteLength;if(g%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let m=0;m<g;m+=2)Y(x,m,m+1);return x}function pe(x){const g=x.byteLength;if(g%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let m=0;m<g;m+=4)Y(x,m,m+3),Y(x,m+1,m+2);return x}function R(x){const g=x.byteLength;if(g%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let m=0;m<g;m+=8)Y(x,m,m+7),Y(x,m+1,m+6),Y(x,m+2,m+5),Y(x,m+3,m+4);return x}function re(x){return x}function fe(x,g,m=0,S=x.byteLength){const ee=x.byteLength;return m>=ee||S<=m?"":(m<0&&(m=0),S>ee&&(S=ee),(m!==0||S<ee)&&(x=x.subarray(m,S)),p(g).toString(x))}function Z(x,g,m,S,ee){return m===void 0?ee="utf8":S===void 0&&typeof m=="string"?(ee=m,m=void 0):ee===void 0&&typeof S=="string"&&(ee=S,S=void 0),p(ee).write(x,g,m,S)}function O(x,g,m){return m===void 0&&(m=0),new DataView(x.buffer,x.byteOffset,x.byteLength).setFloat64(m,g,!0),m+8}function V(x,g,m){return m===void 0&&(m=0),new DataView(x.buffer,x.byteOffset,x.byteLength).setFloat32(m,g,!0),m+4}function ie(x,g,m){return m===void 0&&(m=0),new DataView(x.buffer,x.byteOffset,x.byteLength).setUint32(m,g,!0),m+4}function $(x,g,m){return m===void 0&&(m=0),new DataView(x.buffer,x.byteOffset,x.byteLength).setInt32(m,g,!0),m+4}function j(x,g){return g===void 0&&(g=0),new DataView(x.buffer,x.byteOffset,x.byteLength).getFloat64(g,!0)}function N(x,g){return g===void 0&&(g=0),new DataView(x.buffer,x.byteOffset,x.byteLength).getFloat32(g,!0)}function k(x,g){return g===void 0&&(g=0),new DataView(x.buffer,x.byteOffset,x.byteLength).getUint32(g,!0)}function ye(x,g){return g===void 0&&(g=0),new DataView(x.buffer,x.byteOffset,x.byteLength).getInt32(g,!0)}function ge(x,g,m){return m===void 0&&(m=0),new DataView(x.buffer,x.byteOffset,x.byteLength).setFloat64(m,g,!1),m+8}function q(x,g,m){return m===void 0&&(m=0),new DataView(x.buffer,x.byteOffset,x.byteLength).setFloat32(m,g,!1),m+4}function E(x,g,m){return m===void 0&&(m=0),new DataView(x.buffer,x.byteOffset,x.byteLength).setUint32(m,g,!1),m+4}function P(x,g,m){return m===void 0&&(m=0),new DataView(x.buffer,x.byteOffset,x.byteLength).setInt32(m,g,!1),m+4}function Q(x,g){return g===void 0&&(g=0),new DataView(x.buffer,x.byteOffset,x.byteLength).getFloat64(g,!1)}function W(x,g){return g===void 0&&(g=0),new DataView(x.buffer,x.byteOffset,x.byteLength).getFloat32(g,!1)}function le(x,g){return g===void 0&&(g=0),new DataView(x.buffer,x.byteOffset,x.byteLength).getUint32(g,!1)}function de(x,g){return g===void 0&&(g=0),new DataView(x.buffer,x.byteOffset,x.byteLength).getInt32(g,!1)}e.exports=t={isBuffer:h,isEncoding:b,alloc:v,allocUnsafe:A,allocUnsafeSlow:I,byteLength:C,compare:U,concat:B,copy:_,equals:D,fill:M,from:te,includes:F,indexOf:K,lastIndexOf:G,swap16:X,swap32:pe,swap64:R,toBuffer:re,toString:fe,write:Z,writeDoubleLE:O,writeFloatLE:V,writeUInt32LE:ie,writeInt32LE:$,readDoubleLE:j,readFloatLE:N,readUInt32LE:k,readInt32LE:ye,writeDoubleBE:ge,writeFloatBE:q,writeUInt32BE:E,writeInt32BE:P,readDoubleBE:Q,readFloatBE:W,readUInt32BE:le,readInt32BE:de}})(pd,pd.exports)),pd.exports}var Pg,lC;function W9(){if(lC)return Pg;lC=1;var e=(c,l)=>function(){return l||(0,c[Object.keys(c)[0]])((l={exports:{}}).exports,l),l.exports},t=(()=>{for(var c=new Uint8Array(128),l=0;l<64;l++)c[l<26?l+65:l<52?l+71:l<62?l-4:l*4-205]=l;return f=>{for(var p=f.length,h=new Uint8Array((p-(f[p-1]=="=")-(f[p-2]=="="))*3/4|0),b=0,v=0;b<p;){var A=c[f.charCodeAt(b++)],I=c[f.charCodeAt(b++)],C=c[f.charCodeAt(b++)],U=c[f.charCodeAt(b++)];h[v++]=A<<2|I>>4,h[v++]=I<<4|C>>2,h[v++]=C<<6|U}return h}})(),i=e({"wasm-binary:./blake2b.wat"(c,l){l.exports=t("AGFzbQEAAAABEANgAn9/AGADf39/AGABfwADBQQAAQICBQUBAQroBwdNBQZtZW1vcnkCAAxibGFrZTJiX2luaXQAAA5ibGFrZTJiX3VwZGF0ZQABDWJsYWtlMmJfZmluYWwAAhBibGFrZTJiX2NvbXByZXNzAAMKvz8EwAIAIABCADcDACAAQgA3AwggAEIANwMQIABCADcDGCAAQgA3AyAgAEIANwMoIABCADcDMCAAQgA3AzggAEIANwNAIABCADcDSCAAQgA3A1AgAEIANwNYIABCADcDYCAAQgA3A2ggAEIANwNwIABCADcDeCAAQoiS853/zPmE6gBBACkDAIU3A4ABIABCu86qptjQ67O7f0EIKQMAhTcDiAEgAEKr8NP0r+68tzxBECkDAIU3A5ABIABC8e30+KWn/aelf0EYKQMAhTcDmAEgAELRhZrv+s+Uh9EAQSApAwCFNwOgASAAQp/Y+dnCkdqCm39BKCkDAIU3A6gBIABC6/qG2r+19sEfQTApAwCFNwOwASAAQvnC+JuRo7Pw2wBBOCkDAIU3A7gBIABCADcDwAEgAEIANwPIASAAQgA3A9ABC20BA38gAEHAAWohAyAAQcgBaiEEIAQpAwCnIQUCQANAIAEgAkYNASAFQYABRgRAIAMgAykDACAFrXw3AwBBACEFIAAQAwsgACAFaiABLQAAOgAAIAVBAWohBSABQQFqIQEMAAsLIAQgBa03AwALYQEDfyAAQcABaiEBIABByAFqIQIgASABKQMAIAIpAwB8NwMAIABCfzcD0AEgAikDAKchAwJAA0AgA0GAAUYNASAAIANqQQA6AAAgA0EBaiEDDAALCyACIAOtNwMAIAAQAwuqOwIgfgl/IABBgAFqISEgAEGIAWohIiAAQZABaiEjIABBmAFqISQgAEGgAWohJSAAQagBaiEmIABBsAFqIScgAEG4AWohKCAhKQMAIQEgIikDACECICMpAwAhAyAkKQMAIQQgJSkDACEFICYpAwAhBiAnKQMAIQcgKCkDACEIQoiS853/zPmE6gAhCUK7zqqm2NDrs7t/IQpCq/DT9K/uvLc8IQtC8e30+KWn/aelfyEMQtGFmu/6z5SH0QAhDUKf2PnZwpHagpt/IQ5C6/qG2r+19sEfIQ9C+cL4m5Gjs/DbACEQIAApAwAhESAAKQMIIRIgACkDECETIAApAxghFCAAKQMgIRUgACkDKCEWIAApAzAhFyAAKQM4IRggACkDQCEZIAApA0ghGiAAKQNQIRsgACkDWCEcIAApA2AhHSAAKQNoIR4gACkDcCEfIAApA3ghICANIAApA8ABhSENIA8gACkD0AGFIQ8gASAFIBF8fCEBIA0gAYVCIIohDSAJIA18IQkgBSAJhUIYiiEFIAEgBSASfHwhASANIAGFQhCKIQ0gCSANfCEJIAUgCYVCP4ohBSACIAYgE3x8IQIgDiAChUIgiiEOIAogDnwhCiAGIAqFQhiKIQYgAiAGIBR8fCECIA4gAoVCEIohDiAKIA58IQogBiAKhUI/iiEGIAMgByAVfHwhAyAPIAOFQiCKIQ8gCyAPfCELIAcgC4VCGIohByADIAcgFnx8IQMgDyADhUIQiiEPIAsgD3whCyAHIAuFQj+KIQcgBCAIIBd8fCEEIBAgBIVCIIohECAMIBB8IQwgCCAMhUIYiiEIIAQgCCAYfHwhBCAQIASFQhCKIRAgDCAQfCEMIAggDIVCP4ohCCABIAYgGXx8IQEgECABhUIgiiEQIAsgEHwhCyAGIAuFQhiKIQYgASAGIBp8fCEBIBAgAYVCEIohECALIBB8IQsgBiALhUI/iiEGIAIgByAbfHwhAiANIAKFQiCKIQ0gDCANfCEMIAcgDIVCGIohByACIAcgHHx8IQIgDSAChUIQiiENIAwgDXwhDCAHIAyFQj+KIQcgAyAIIB18fCEDIA4gA4VCIIohDiAJIA58IQkgCCAJhUIYiiEIIAMgCCAefHwhAyAOIAOFQhCKIQ4gCSAOfCEJIAggCYVCP4ohCCAEIAUgH3x8IQQgDyAEhUIgiiEPIAogD3whCiAFIAqFQhiKIQUgBCAFICB8fCEEIA8gBIVCEIohDyAKIA98IQogBSAKhUI/iiEFIAEgBSAffHwhASANIAGFQiCKIQ0gCSANfCEJIAUgCYVCGIohBSABIAUgG3x8IQEgDSABhUIQiiENIAkgDXwhCSAFIAmFQj+KIQUgAiAGIBV8fCECIA4gAoVCIIohDiAKIA58IQogBiAKhUIYiiEGIAIgBiAZfHwhAiAOIAKFQhCKIQ4gCiAOfCEKIAYgCoVCP4ohBiADIAcgGnx8IQMgDyADhUIgiiEPIAsgD3whCyAHIAuFQhiKIQcgAyAHICB8fCEDIA8gA4VCEIohDyALIA98IQsgByALhUI/iiEHIAQgCCAefHwhBCAQIASFQiCKIRAgDCAQfCEMIAggDIVCGIohCCAEIAggF3x8IQQgECAEhUIQiiEQIAwgEHwhDCAIIAyFQj+KIQggASAGIBJ8fCEBIBAgAYVCIIohECALIBB8IQsgBiALhUIYiiEGIAEgBiAdfHwhASAQIAGFQhCKIRAgCyAQfCELIAYgC4VCP4ohBiACIAcgEXx8IQIgDSAChUIgiiENIAwgDXwhDCAHIAyFQhiKIQcgAiAHIBN8fCECIA0gAoVCEIohDSAMIA18IQwgByAMhUI/iiEHIAMgCCAcfHwhAyAOIAOFQiCKIQ4gCSAOfCEJIAggCYVCGIohCCADIAggGHx8IQMgDiADhUIQiiEOIAkgDnwhCSAIIAmFQj+KIQggBCAFIBZ8fCEEIA8gBIVCIIohDyAKIA98IQogBSAKhUIYiiEFIAQgBSAUfHwhBCAPIASFQhCKIQ8gCiAPfCEKIAUgCoVCP4ohBSABIAUgHHx8IQEgDSABhUIgiiENIAkgDXwhCSAFIAmFQhiKIQUgASAFIBl8fCEBIA0gAYVCEIohDSAJIA18IQkgBSAJhUI/iiEFIAIgBiAdfHwhAiAOIAKFQiCKIQ4gCiAOfCEKIAYgCoVCGIohBiACIAYgEXx8IQIgDiAChUIQiiEOIAogDnwhCiAGIAqFQj+KIQYgAyAHIBZ8fCEDIA8gA4VCIIohDyALIA98IQsgByALhUIYiiEHIAMgByATfHwhAyAPIAOFQhCKIQ8gCyAPfCELIAcgC4VCP4ohByAEIAggIHx8IQQgECAEhUIgiiEQIAwgEHwhDCAIIAyFQhiKIQggBCAIIB58fCEEIBAgBIVCEIohECAMIBB8IQwgCCAMhUI/iiEIIAEgBiAbfHwhASAQIAGFQiCKIRAgCyAQfCELIAYgC4VCGIohBiABIAYgH3x8IQEgECABhUIQiiEQIAsgEHwhCyAGIAuFQj+KIQYgAiAHIBR8fCECIA0gAoVCIIohDSAMIA18IQwgByAMhUIYiiEHIAIgByAXfHwhAiANIAKFQhCKIQ0gDCANfCEMIAcgDIVCP4ohByADIAggGHx8IQMgDiADhUIgiiEOIAkgDnwhCSAIIAmFQhiKIQggAyAIIBJ8fCEDIA4gA4VCEIohDiAJIA58IQkgCCAJhUI/iiEIIAQgBSAafHwhBCAPIASFQiCKIQ8gCiAPfCEKIAUgCoVCGIohBSAEIAUgFXx8IQQgDyAEhUIQiiEPIAogD3whCiAFIAqFQj+KIQUgASAFIBh8fCEBIA0gAYVCIIohDSAJIA18IQkgBSAJhUIYiiEFIAEgBSAafHwhASANIAGFQhCKIQ0gCSANfCEJIAUgCYVCP4ohBSACIAYgFHx8IQIgDiAChUIgiiEOIAogDnwhCiAGIAqFQhiKIQYgAiAGIBJ8fCECIA4gAoVCEIohDiAKIA58IQogBiAKhUI/iiEGIAMgByAefHwhAyAPIAOFQiCKIQ8gCyAPfCELIAcgC4VCGIohByADIAcgHXx8IQMgDyADhUIQiiEPIAsgD3whCyAHIAuFQj+KIQcgBCAIIBx8fCEEIBAgBIVCIIohECAMIBB8IQwgCCAMhUIYiiEIIAQgCCAffHwhBCAQIASFQhCKIRAgDCAQfCEMIAggDIVCP4ohCCABIAYgE3x8IQEgECABhUIgiiEQIAsgEHwhCyAGIAuFQhiKIQYgASAGIBd8fCEBIBAgAYVCEIohECALIBB8IQsgBiALhUI/iiEGIAIgByAWfHwhAiANIAKFQiCKIQ0gDCANfCEMIAcgDIVCGIohByACIAcgG3x8IQIgDSAChUIQiiENIAwgDXwhDCAHIAyFQj+KIQcgAyAIIBV8fCEDIA4gA4VCIIohDiAJIA58IQkgCCAJhUIYiiEIIAMgCCARfHwhAyAOIAOFQhCKIQ4gCSAOfCEJIAggCYVCP4ohCCAEIAUgIHx8IQQgDyAEhUIgiiEPIAogD3whCiAFIAqFQhiKIQUgBCAFIBl8fCEEIA8gBIVCEIohDyAKIA98IQogBSAKhUI/iiEFIAEgBSAafHwhASANIAGFQiCKIQ0gCSANfCEJIAUgCYVCGIohBSABIAUgEXx8IQEgDSABhUIQiiENIAkgDXwhCSAFIAmFQj+KIQUgAiAGIBZ8fCECIA4gAoVCIIohDiAKIA58IQogBiAKhUIYiiEGIAIgBiAYfHwhAiAOIAKFQhCKIQ4gCiAOfCEKIAYgCoVCP4ohBiADIAcgE3x8IQMgDyADhUIgiiEPIAsgD3whCyAHIAuFQhiKIQcgAyAHIBV8fCEDIA8gA4VCEIohDyALIA98IQsgByALhUI/iiEHIAQgCCAbfHwhBCAQIASFQiCKIRAgDCAQfCEMIAggDIVCGIohCCAEIAggIHx8IQQgECAEhUIQiiEQIAwgEHwhDCAIIAyFQj+KIQggASAGIB98fCEBIBAgAYVCIIohECALIBB8IQsgBiALhUIYiiEGIAEgBiASfHwhASAQIAGFQhCKIRAgCyAQfCELIAYgC4VCP4ohBiACIAcgHHx8IQIgDSAChUIgiiENIAwgDXwhDCAHIAyFQhiKIQcgAiAHIB18fCECIA0gAoVCEIohDSAMIA18IQwgByAMhUI/iiEHIAMgCCAXfHwhAyAOIAOFQiCKIQ4gCSAOfCEJIAggCYVCGIohCCADIAggGXx8IQMgDiADhUIQiiEOIAkgDnwhCSAIIAmFQj+KIQggBCAFIBR8fCEEIA8gBIVCIIohDyAKIA98IQogBSAKhUIYiiEFIAQgBSAefHwhBCAPIASFQhCKIQ8gCiAPfCEKIAUgCoVCP4ohBSABIAUgE3x8IQEgDSABhUIgiiENIAkgDXwhCSAFIAmFQhiKIQUgASAFIB18fCEBIA0gAYVCEIohDSAJIA18IQkgBSAJhUI/iiEFIAIgBiAXfHwhAiAOIAKFQiCKIQ4gCiAOfCEKIAYgCoVCGIohBiACIAYgG3x8IQIgDiAChUIQiiEOIAogDnwhCiAGIAqFQj+KIQYgAyAHIBF8fCEDIA8gA4VCIIohDyALIA98IQsgByALhUIYiiEHIAMgByAcfHwhAyAPIAOFQhCKIQ8gCyAPfCELIAcgC4VCP4ohByAEIAggGXx8IQQgECAEhUIgiiEQIAwgEHwhDCAIIAyFQhiKIQggBCAIIBR8fCEEIBAgBIVCEIohECAMIBB8IQwgCCAMhUI/iiEIIAEgBiAVfHwhASAQIAGFQiCKIRAgCyAQfCELIAYgC4VCGIohBiABIAYgHnx8IQEgECABhUIQiiEQIAsgEHwhCyAGIAuFQj+KIQYgAiAHIBh8fCECIA0gAoVCIIohDSAMIA18IQwgByAMhUIYiiEHIAIgByAWfHwhAiANIAKFQhCKIQ0gDCANfCEMIAcgDIVCP4ohByADIAggIHx8IQMgDiADhUIgiiEOIAkgDnwhCSAIIAmFQhiKIQggAyAIIB98fCEDIA4gA4VCEIohDiAJIA58IQkgCCAJhUI/iiEIIAQgBSASfHwhBCAPIASFQiCKIQ8gCiAPfCEKIAUgCoVCGIohBSAEIAUgGnx8IQQgDyAEhUIQiiEPIAogD3whCiAFIAqFQj+KIQUgASAFIB18fCEBIA0gAYVCIIohDSAJIA18IQkgBSAJhUIYiiEFIAEgBSAWfHwhASANIAGFQhCKIQ0gCSANfCEJIAUgCYVCP4ohBSACIAYgEnx8IQIgDiAChUIgiiEOIAogDnwhCiAGIAqFQhiKIQYgAiAGICB8fCECIA4gAoVCEIohDiAKIA58IQogBiAKhUI/iiEGIAMgByAffHwhAyAPIAOFQiCKIQ8gCyAPfCELIAcgC4VCGIohByADIAcgHnx8IQMgDyADhUIQiiEPIAsgD3whCyAHIAuFQj+KIQcgBCAIIBV8fCEEIBAgBIVCIIohECAMIBB8IQwgCCAMhUIYiiEIIAQgCCAbfHwhBCAQIASFQhCKIRAgDCAQfCEMIAggDIVCP4ohCCABIAYgEXx8IQEgECABhUIgiiEQIAsgEHwhCyAGIAuFQhiKIQYgASAGIBh8fCEBIBAgAYVCEIohECALIBB8IQsgBiALhUI/iiEGIAIgByAXfHwhAiANIAKFQiCKIQ0gDCANfCEMIAcgDIVCGIohByACIAcgFHx8IQIgDSAChUIQiiENIAwgDXwhDCAHIAyFQj+KIQcgAyAIIBp8fCEDIA4gA4VCIIohDiAJIA58IQkgCCAJhUIYiiEIIAMgCCATfHwhAyAOIAOFQhCKIQ4gCSAOfCEJIAggCYVCP4ohCCAEIAUgGXx8IQQgDyAEhUIgiiEPIAogD3whCiAFIAqFQhiKIQUgBCAFIBx8fCEEIA8gBIVCEIohDyAKIA98IQogBSAKhUI/iiEFIAEgBSAefHwhASANIAGFQiCKIQ0gCSANfCEJIAUgCYVCGIohBSABIAUgHHx8IQEgDSABhUIQiiENIAkgDXwhCSAFIAmFQj+KIQUgAiAGIBh8fCECIA4gAoVCIIohDiAKIA58IQogBiAKhUIYiiEGIAIgBiAffHwhAiAOIAKFQhCKIQ4gCiAOfCEKIAYgCoVCP4ohBiADIAcgHXx8IQMgDyADhUIgiiEPIAsgD3whCyAHIAuFQhiKIQcgAyAHIBJ8fCEDIA8gA4VCEIohDyALIA98IQsgByALhUI/iiEHIAQgCCAUfHwhBCAQIASFQiCKIRAgDCAQfCEMIAggDIVCGIohCCAEIAggGnx8IQQgECAEhUIQiiEQIAwgEHwhDCAIIAyFQj+KIQggASAGIBZ8fCEBIBAgAYVCIIohECALIBB8IQsgBiALhUIYiiEGIAEgBiARfHwhASAQIAGFQhCKIRAgCyAQfCELIAYgC4VCP4ohBiACIAcgIHx8IQIgDSAChUIgiiENIAwgDXwhDCAHIAyFQhiKIQcgAiAHIBV8fCECIA0gAoVCEIohDSAMIA18IQwgByAMhUI/iiEHIAMgCCAZfHwhAyAOIAOFQiCKIQ4gCSAOfCEJIAggCYVCGIohCCADIAggF3x8IQMgDiADhUIQiiEOIAkgDnwhCSAIIAmFQj+KIQggBCAFIBN8fCEEIA8gBIVCIIohDyAKIA98IQogBSAKhUIYiiEFIAQgBSAbfHwhBCAPIASFQhCKIQ8gCiAPfCEKIAUgCoVCP4ohBSABIAUgF3x8IQEgDSABhUIgiiENIAkgDXwhCSAFIAmFQhiKIQUgASAFICB8fCEBIA0gAYVCEIohDSAJIA18IQkgBSAJhUI/iiEFIAIgBiAffHwhAiAOIAKFQiCKIQ4gCiAOfCEKIAYgCoVCGIohBiACIAYgGnx8IQIgDiAChUIQiiEOIAogDnwhCiAGIAqFQj+KIQYgAyAHIBx8fCEDIA8gA4VCIIohDyALIA98IQsgByALhUIYiiEHIAMgByAUfHwhAyAPIAOFQhCKIQ8gCyAPfCELIAcgC4VCP4ohByAEIAggEXx8IQQgECAEhUIgiiEQIAwgEHwhDCAIIAyFQhiKIQggBCAIIBl8fCEEIBAgBIVCEIohECAMIBB8IQwgCCAMhUI/iiEIIAEgBiAdfHwhASAQIAGFQiCKIRAgCyAQfCELIAYgC4VCGIohBiABIAYgE3x8IQEgECABhUIQiiEQIAsgEHwhCyAGIAuFQj+KIQYgAiAHIB58fCECIA0gAoVCIIohDSAMIA18IQwgByAMhUIYiiEHIAIgByAYfHwhAiANIAKFQhCKIQ0gDCANfCEMIAcgDIVCP4ohByADIAggEnx8IQMgDiADhUIgiiEOIAkgDnwhCSAIIAmFQhiKIQggAyAIIBV8fCEDIA4gA4VCEIohDiAJIA58IQkgCCAJhUI/iiEIIAQgBSAbfHwhBCAPIASFQiCKIQ8gCiAPfCEKIAUgCoVCGIohBSAEIAUgFnx8IQQgDyAEhUIQiiEPIAogD3whCiAFIAqFQj+KIQUgASAFIBt8fCEBIA0gAYVCIIohDSAJIA18IQkgBSAJhUIYiiEFIAEgBSATfHwhASANIAGFQhCKIQ0gCSANfCEJIAUgCYVCP4ohBSACIAYgGXx8IQIgDiAChUIgiiEOIAogDnwhCiAGIAqFQhiKIQYgAiAGIBV8fCECIA4gAoVCEIohDiAKIA58IQogBiAKhUI/iiEGIAMgByAYfHwhAyAPIAOFQiCKIQ8gCyAPfCELIAcgC4VCGIohByADIAcgF3x8IQMgDyADhUIQiiEPIAsgD3whCyAHIAuFQj+KIQcgBCAIIBJ8fCEEIBAgBIVCIIohECAMIBB8IQwgCCAMhUIYiiEIIAQgCCAWfHwhBCAQIASFQhCKIRAgDCAQfCEMIAggDIVCP4ohCCABIAYgIHx8IQEgECABhUIgiiEQIAsgEHwhCyAGIAuFQhiKIQYgASAGIBx8fCEBIBAgAYVCEIohECALIBB8IQsgBiALhUI/iiEGIAIgByAafHwhAiANIAKFQiCKIQ0gDCANfCEMIAcgDIVCGIohByACIAcgH3x8IQIgDSAChUIQiiENIAwgDXwhDCAHIAyFQj+KIQcgAyAIIBR8fCEDIA4gA4VCIIohDiAJIA58IQkgCCAJhUIYiiEIIAMgCCAdfHwhAyAOIAOFQhCKIQ4gCSAOfCEJIAggCYVCP4ohCCAEIAUgHnx8IQQgDyAEhUIgiiEPIAogD3whCiAFIAqFQhiKIQUgBCAFIBF8fCEEIA8gBIVCEIohDyAKIA98IQogBSAKhUI/iiEFIAEgBSARfHwhASANIAGFQiCKIQ0gCSANfCEJIAUgCYVCGIohBSABIAUgEnx8IQEgDSABhUIQiiENIAkgDXwhCSAFIAmFQj+KIQUgAiAGIBN8fCECIA4gAoVCIIohDiAKIA58IQogBiAKhUIYiiEGIAIgBiAUfHwhAiAOIAKFQhCKIQ4gCiAOfCEKIAYgCoVCP4ohBiADIAcgFXx8IQMgDyADhUIgiiEPIAsgD3whCyAHIAuFQhiKIQcgAyAHIBZ8fCEDIA8gA4VCEIohDyALIA98IQsgByALhUI/iiEHIAQgCCAXfHwhBCAQIASFQiCKIRAgDCAQfCEMIAggDIVCGIohCCAEIAggGHx8IQQgECAEhUIQiiEQIAwgEHwhDCAIIAyFQj+KIQggASAGIBl8fCEBIBAgAYVCIIohECALIBB8IQsgBiALhUIYiiEGIAEgBiAafHwhASAQIAGFQhCKIRAgCyAQfCELIAYgC4VCP4ohBiACIAcgG3x8IQIgDSAChUIgiiENIAwgDXwhDCAHIAyFQhiKIQcgAiAHIBx8fCECIA0gAoVCEIohDSAMIA18IQwgByAMhUI/iiEHIAMgCCAdfHwhAyAOIAOFQiCKIQ4gCSAOfCEJIAggCYVCGIohCCADIAggHnx8IQMgDiADhUIQiiEOIAkgDnwhCSAIIAmFQj+KIQggBCAFIB98fCEEIA8gBIVCIIohDyAKIA98IQogBSAKhUIYiiEFIAQgBSAgfHwhBCAPIASFQhCKIQ8gCiAPfCEKIAUgCoVCP4ohBSABIAUgH3x8IQEgDSABhUIgiiENIAkgDXwhCSAFIAmFQhiKIQUgASAFIBt8fCEBIA0gAYVCEIohDSAJIA18IQkgBSAJhUI/iiEFIAIgBiAVfHwhAiAOIAKFQiCKIQ4gCiAOfCEKIAYgCoVCGIohBiACIAYgGXx8IQIgDiAChUIQiiEOIAogDnwhCiAGIAqFQj+KIQYgAyAHIBp8fCEDIA8gA4VCIIohDyALIA98IQsgByALhUIYiiEHIAMgByAgfHwhAyAPIAOFQhCKIQ8gCyAPfCELIAcgC4VCP4ohByAEIAggHnx8IQQgECAEhUIgiiEQIAwgEHwhDCAIIAyFQhiKIQggBCAIIBd8fCEEIBAgBIVCEIohECAMIBB8IQwgCCAMhUI/iiEIIAEgBiASfHwhASAQIAGFQiCKIRAgCyAQfCELIAYgC4VCGIohBiABIAYgHXx8IQEgECABhUIQiiEQIAsgEHwhCyAGIAuFQj+KIQYgAiAHIBF8fCECIA0gAoVCIIohDSAMIA18IQwgByAMhUIYiiEHIAIgByATfHwhAiANIAKFQhCKIQ0gDCANfCEMIAcgDIVCP4ohByADIAggHHx8IQMgDiADhUIgiiEOIAkgDnwhCSAIIAmFQhiKIQggAyAIIBh8fCEDIA4gA4VCEIohDiAJIA58IQkgCCAJhUI/iiEIIAQgBSAWfHwhBCAPIASFQiCKIQ8gCiAPfCEKIAUgCoVCGIohBSAEIAUgFHx8IQQgDyAEhUIQiiEPIAogD3whCiAFIAqFQj+KIQUgISAhKQMAIAEgCYWFNwMAICIgIikDACACIAqFhTcDACAjICMpAwAgAyALhYU3AwAgJCAkKQMAIAQgDIWFNwMAICUgJSkDACAFIA2FhTcDACAmICYpAwAgBiAOhYU3AwAgJyAnKQMAIAcgD4WFNwMAICggKCkDACAIIBCFhTcDAAs=")}}),a=i(),s=WebAssembly.compile(a);return Pg=async c=>(await WebAssembly.instantiate(await s,c)).exports,Pg}var fC;function eH(){if(fC)return kr.exports;fC=1;var e=q3(),t=J9(),i=null,a=typeof WebAssembly<"u"&&W9()().then(C=>{i=C}),s=64,c=[];kr.exports=A;var l=kr.exports.BYTES_MIN=16,f=kr.exports.BYTES_MAX=64;kr.exports.BYTES=32;var p=kr.exports.KEYBYTES_MIN=16,h=kr.exports.KEYBYTES_MAX=64;kr.exports.KEYBYTES=32;var b=kr.exports.SALTBYTES=16,v=kr.exports.PERSONALBYTES=16;function A(C,U,B,_,D){if(!(this instanceof A))return new A(C,U,B,_,D);if(!i)throw new Error("WASM not loaded. Wait for Blake2b.ready(cb)");C||(C=32),D!==!0&&(e(C>=l,"digestLength must be at least "+l+", was given "+C),e(C<=f,"digestLength must be at most "+f+", was given "+C),U!=null&&(e(U instanceof Uint8Array,"key must be Uint8Array or Buffer"),e(U.length>=p,"key must be at least "+p+", was given "+U.length),e(U.length<=h,"key must be at least "+h+", was given "+U.length)),B!=null&&(e(B instanceof Uint8Array,"salt must be Uint8Array or Buffer"),e(B.length===b,"salt must be exactly "+b+", was given "+B.length)),_!=null&&(e(_ instanceof Uint8Array,"personal must be Uint8Array or Buffer"),e(_.length===v,"personal must be exactly "+v+", was given "+_.length))),c.length||(c.push(s),s+=216),this.digestLength=C,this.finalized=!1,this.pointer=c.pop(),this._memory=new Uint8Array(i.memory.buffer),this._memory.fill(0,0,64),this._memory[0]=this.digestLength,this._memory[1]=U?U.length:0,this._memory[2]=1,this._memory[3]=1,B&&this._memory.set(B,32),_&&this._memory.set(_,48),this.pointer+216>this._memory.length&&this._realloc(this.pointer+216),i.blake2b_init(this.pointer,this.digestLength),U&&(this.update(U),this._memory.fill(0,s,s+U.length),this._memory[this.pointer+200]=128)}A.prototype._realloc=function(C){i.memory.grow(Math.max(0,Math.ceil(Math.abs(C-this._memory.length)/65536))),this._memory=new Uint8Array(i.memory.buffer)},A.prototype.update=function(C){return e(this.finalized===!1,"Hash instance finalized"),e(C instanceof Uint8Array,"input must be Uint8Array or Buffer"),s+C.length>this._memory.length&&this._realloc(s+C.length),this._memory.set(C,s),i.blake2b_update(this.pointer,s,s+C.length),this},A.prototype.digest=function(C){if(e(this.finalized===!1,"Hash instance finalized"),this.finalized=!0,c.push(this.pointer),i.blake2b_final(this.pointer),!C||C==="binary")return this._memory.slice(this.pointer+128,this.pointer+128+this.digestLength);if(typeof C=="string")return t.toString(this._memory,C,this.pointer+128,this.pointer+128+this.digestLength);e(C instanceof Uint8Array&&C.length>=this.digestLength,"input must be Uint8Array or Buffer");for(var U=0;U<this.digestLength;U++)C[U]=this._memory[this.pointer+128+U];return C},A.prototype.final=A.prototype.digest,A.WASM=i,A.SUPPORTED=typeof WebAssembly<"u",A.ready=function(C){return C||(C=I),a?a.then(()=>C(),C):C(new Error("WebAssembly not supported"))},A.prototype.ready=A.ready,A.prototype.getPartialHash=function(){return this._memory.slice(this.pointer,this.pointer+216)},A.prototype.setPartialHash=function(C){this._memory.set(C,this.pointer)};function I(){}return kr.exports}var dC;function tH(){if(dC)return Rn.exports;dC=1;var e=q3(),t=eH();function i(F,H,K){var G=F[H]+F[K],Y=F[H+1]+F[K+1];G>=4294967296&&Y++,F[H]=G,F[H+1]=Y}function a(F,H,K,G){var Y=F[H]+K;K<0&&(Y+=4294967296);var X=F[H+1]+G;Y>=4294967296&&X++,F[H]=Y,F[H+1]=X}function s(F,H){return F[H]^F[H+1]<<8^F[H+2]<<16^F[H+3]<<24}function c(F,H,K,G,Y,X){var pe=b[Y],R=b[Y+1],re=b[X],fe=b[X+1];i(h,F,H),a(h,F,pe,R);var Z=h[G]^h[F],O=h[G+1]^h[F+1];h[G]=O,h[G+1]=Z,i(h,K,G),Z=h[H]^h[K],O=h[H+1]^h[K+1],h[H]=Z>>>24^O<<8,h[H+1]=O>>>24^Z<<8,i(h,F,H),a(h,F,re,fe),Z=h[G]^h[F],O=h[G+1]^h[F+1],h[G]=Z>>>16^O<<16,h[G+1]=O>>>16^Z<<16,i(h,K,G),Z=h[H]^h[K],O=h[H+1]^h[K+1],h[H]=O>>>31^Z<<1,h[H+1]=Z>>>31^O<<1}var l=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),f=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3],p=new Uint8Array(f.map(function(F){return F*2})),h=new Uint32Array(32),b=new Uint32Array(32);function v(F,H){var K=0;for(K=0;K<16;K++)h[K]=F.h[K],h[K+16]=l[K];for(h[24]=h[24]^F.t,h[25]=h[25]^F.t/4294967296,H&&(h[28]=~h[28],h[29]=~h[29]),K=0;K<32;K++)b[K]=s(F.b,4*K);for(K=0;K<12;K++)c(0,8,16,24,p[K*16+0],p[K*16+1]),c(2,10,18,26,p[K*16+2],p[K*16+3]),c(4,12,20,28,p[K*16+4],p[K*16+5]),c(6,14,22,30,p[K*16+6],p[K*16+7]),c(0,10,20,30,p[K*16+8],p[K*16+9]),c(2,12,22,24,p[K*16+10],p[K*16+11]),c(4,14,16,26,p[K*16+12],p[K*16+13]),c(6,8,18,28,p[K*16+14],p[K*16+15]);for(K=0;K<16;K++)F.h[K]=F.h[K]^h[K]^h[K+16]}var A=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function I(F,H,K,G){A.fill(0),this.b=new Uint8Array(128),this.h=new Uint32Array(16),this.t=0,this.c=0,this.outlen=F,A[0]=F,H&&(A[1]=H.length),A[2]=1,A[3]=1,K&&A.set(K,32),G&&A.set(G,48);for(var Y=0;Y<16;Y++)this.h[Y]=l[Y]^s(A,Y*4);H&&(C(this,H),this.c=128)}I.prototype.update=function(F){return e(F instanceof Uint8Array,"input must be Uint8Array or Buffer"),C(this,F),this},I.prototype.digest=function(F){var H=!F||F==="binary"||F==="hex"?new Uint8Array(this.outlen):F;return e(H instanceof Uint8Array,'out must be "binary", "hex", Uint8Array, or Buffer'),e(H.length>=this.outlen,"out must have at least outlen bytes of space"),U(this,H),F==="hex"?B(H):H},I.prototype.final=I.prototype.digest,I.ready=function(F){t.ready(function(){F()})};function C(F,H){for(var K=0;K<H.length;K++)F.c===128&&(F.t+=F.c,v(F,!1),F.c=0),F.b[F.c++]=H[K]}function U(F,H){for(F.t+=F.c;F.c<128;)F.b[F.c++]=0;v(F,!0);for(var K=0;K<F.outlen;K++)H[K]=F.h[K>>2]>>8*(K&3);return H}function B(F){for(var H="",K=0;K<F.length;K++)H+=_(F[K]);return H}function _(F){return F<16?"0"+F.toString(16):F.toString(16)}var D=I;Rn.exports=function(H,K,G,Y,X){return X!==!0&&(e(H>=M,"outlen must be at least "+M+", was given "+H),e(H<=te,"outlen must be at most "+te+", was given "+H),K!=null&&(e(K instanceof Uint8Array,"key must be Uint8Array or Buffer"),e(K.length>=z,"key must be at least "+z+", was given "+K.length),e(K.length<=ne,"key must be at most "+ne+", was given "+K.length)),G!=null&&(e(G instanceof Uint8Array,"salt must be Uint8Array or Buffer"),e(G.length===ce,"salt must be exactly "+ce+", was given "+G.length)),Y!=null&&(e(Y instanceof Uint8Array,"personal must be Uint8Array or Buffer"),e(Y.length===oe,"personal must be exactly "+oe+", was given "+Y.length))),new D(H,K,G,Y)},Rn.exports.ready=function(F){t.ready(function(){F()})},Rn.exports.WASM_SUPPORTED=t.SUPPORTED,Rn.exports.WASM_LOADED=!1;var M=Rn.exports.BYTES_MIN=16,te=Rn.exports.BYTES_MAX=64;Rn.exports.BYTES=32;var z=Rn.exports.KEYBYTES_MIN=16,ne=Rn.exports.KEYBYTES_MAX=64;Rn.exports.KEYBYTES=32;var ce=Rn.exports.SALTBYTES=16,oe=Rn.exports.PERSONALBYTES=16;return t.ready(function(F){F||(Rn.exports.WASM_LOADED=!0,Rn.exports=t)}),Rn.exports}var hC;function nH(){if(hC)return Li;hC=1;var e=Li&&Li.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(Li,"__esModule",{value:!0}),Li.encode=Li.decode=void 0;const t=e(c1()),i=e(Q9()),a=e(tH()),s=(0,i.default)("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),c=Yt.Buffer.from("SS58PRE"),l=Yt.Buffer.alloc(64);function f(v){let A=s.decodeUnsafe(v);if(A==null||A.length<3)throw b(v);let I=A[0],C,U;if(I<64)U=I,C=1;else if(I<128){let _=A[1],D=(I<<2|_>>6)&255,M=_&63;U=D|M<<8,C=2}else throw b(v);let B;switch(A.length-C){case 34:case 35:B=2;break;case 9:case 5:case 3:case 2:B=1;break;default:throw b(v)}h(A,B);for(let _=0;_<B;_++)if(l[_]!=A[A.length-B+_])throw b(v);return{prefix:U,bytes:A.subarray(C,A.length-B)}}Li.decode=f;function p(v){let A=v.prefix;(0,t.default)(Number.isInteger(A)&&A>=0&&A<16384,"invalid prefix");let I=v.bytes.length,C;switch(I){case 1:case 2:case 4:case 8:C=1;break;case 32:case 33:C=2;break;default:(0,t.default)(!1,"invalid address length")}let U,B;A<64?(U=Yt.Buffer.allocUnsafe(1+C+I),U[0]=A,B=1):(U=Yt.Buffer.allocUnsafe(2+C+I),U[0]=(A&252)>>2|64,U[1]=A>>8|(A&3)<<6,B=2),U.set(v.bytes,B),h(U,C);for(let _=0;_<C;_++)U[B+I+_]=l[_];return s.encode(U)}Li.encode=p;function h(v,A){let I=(0,a.default)(64);I.update(c),I.update(v.subarray(0,v.length-A)),I.digest(l)}function b(v){return new Error("Invalid ss58 address: "+v)}return Li}var rH=nH();function iH(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}function $3(e,...t){if(!iH(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}function pC(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function aH(e,t){$3(e);const i=t.outputLen;if(e.length<i)throw new Error(`digestInto() expects output buffer of length at least ${i}`)}/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Ng=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),ci=(e,t)=>e<<32-t|e>>>t;new Uint8Array(new Uint32Array([287454020]).buffer)[0];function oH(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function H3(e){return typeof e=="string"&&(e=oH(e)),$3(e),e}class sH{clone(){return this._cloneInto()}}function uH(e){const t=a=>e().update(H3(a)).digest(),i=e();return t.outputLen=i.outputLen,t.blockLen=i.blockLen,t.create=()=>e(),t}function cH(e,t,i,a){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,i,a);const s=BigInt(32),c=BigInt(4294967295),l=Number(i>>s&c),f=Number(i&c),p=a?4:0,h=a?0:4;e.setUint32(t+p,l,a),e.setUint32(t+h,f,a)}const lH=(e,t,i)=>e&t^~e&i,fH=(e,t,i)=>e&t^e&i^t&i;class dH extends sH{constructor(t,i,a,s){super(),this.blockLen=t,this.outputLen=i,this.padOffset=a,this.isLE=s,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=Ng(this.buffer)}update(t){pC(this);const{view:i,buffer:a,blockLen:s}=this;t=H3(t);const c=t.length;for(let l=0;l<c;){const f=Math.min(s-this.pos,c-l);if(f===s){const p=Ng(t);for(;s<=c-l;l+=s)this.process(p,l);continue}a.set(t.subarray(l,l+f),this.pos),this.pos+=f,l+=f,this.pos===s&&(this.process(i,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){pC(this),aH(t,this),this.finished=!0;const{buffer:i,view:a,blockLen:s,isLE:c}=this;let{pos:l}=this;i[l++]=128,this.buffer.subarray(l).fill(0),this.padOffset>s-l&&(this.process(a,0),l=0);for(let v=l;v<s;v++)i[v]=0;cH(a,s-8,BigInt(this.length*8),c),this.process(a,0);const f=Ng(t),p=this.outputLen;if(p%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const h=p/4,b=this.get();if(h>b.length)throw new Error("_sha2: outputLen bigger than state");for(let v=0;v<h;v++)f.setUint32(4*v,b[v],c)}digest(){const{buffer:t,outputLen:i}=this;this.digestInto(t);const a=t.slice(0,i);return this.destroy(),a}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:i,buffer:a,length:s,finished:c,destroyed:l,pos:f}=this;return t.length=s,t.pos=f,t.finished=c,t.destroyed=l,s%i&&t.buffer.set(a),t}}const hH=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Ba=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Ra=new Uint32Array(64);class pH extends dH{constructor(){super(64,32,8,!1),this.A=Ba[0]|0,this.B=Ba[1]|0,this.C=Ba[2]|0,this.D=Ba[3]|0,this.E=Ba[4]|0,this.F=Ba[5]|0,this.G=Ba[6]|0,this.H=Ba[7]|0}get(){const{A:t,B:i,C:a,D:s,E:c,F:l,G:f,H:p}=this;return[t,i,a,s,c,l,f,p]}set(t,i,a,s,c,l,f,p){this.A=t|0,this.B=i|0,this.C=a|0,this.D=s|0,this.E=c|0,this.F=l|0,this.G=f|0,this.H=p|0}process(t,i){for(let v=0;v<16;v++,i+=4)Ra[v]=t.getUint32(i,!1);for(let v=16;v<64;v++){const A=Ra[v-15],I=Ra[v-2],C=ci(A,7)^ci(A,18)^A>>>3,U=ci(I,17)^ci(I,19)^I>>>10;Ra[v]=U+Ra[v-7]+C+Ra[v-16]|0}let{A:a,B:s,C:c,D:l,E:f,F:p,G:h,H:b}=this;for(let v=0;v<64;v++){const A=ci(f,6)^ci(f,11)^ci(f,25),I=b+A+lH(f,p,h)+hH[v]+Ra[v]|0,U=(ci(a,2)^ci(a,13)^ci(a,22))+fH(a,s,c)|0;b=h,h=p,p=f,f=l+I|0,l=c,c=s,s=a,a=I+U|0}a=a+this.A|0,s=s+this.B|0,c=c+this.C|0,l=l+this.D|0,f=f+this.E|0,p=p+this.F|0,h=h+this.G|0,b=b+this.H|0,this.set(a,s,c,l,f,p,h,b)}roundClean(){Ra.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const yC=uH(()=>new pH);function yH(e){if(e.length>=255)throw new TypeError("Alphabet too long");const t=new Uint8Array(256);for(let h=0;h<t.length;h++)t[h]=255;for(let h=0;h<e.length;h++){const b=e.charAt(h),v=b.charCodeAt(0);if(t[v]!==255)throw new TypeError(b+" is ambiguous");t[v]=h}const i=e.length,a=e.charAt(0),s=Math.log(i)/Math.log(256),c=Math.log(256)/Math.log(i);function l(h){if(h instanceof Uint8Array||(ArrayBuffer.isView(h)?h=new Uint8Array(h.buffer,h.byteOffset,h.byteLength):Array.isArray(h)&&(h=Uint8Array.from(h))),!(h instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(h.length===0)return"";let b=0,v=0,A=0;const I=h.length;for(;A!==I&&h[A]===0;)A++,b++;const C=(I-A)*c+1>>>0,U=new Uint8Array(C);for(;A!==I;){let D=h[A],M=0;for(let te=C-1;(D!==0||M<v)&&te!==-1;te--,M++)D+=256*U[te]>>>0,U[te]=D%i>>>0,D=D/i>>>0;if(D!==0)throw new Error("Non-zero carry");v=M,A++}let B=C-v;for(;B!==C&&U[B]===0;)B++;let _=a.repeat(b);for(;B<C;++B)_+=e.charAt(U[B]);return _}function f(h){if(typeof h!="string")throw new TypeError("Expected String");if(h.length===0)return new Uint8Array;let b=0,v=0,A=0;for(;h[b]===a;)v++,b++;const I=(h.length-b)*s+1>>>0,C=new Uint8Array(I);for(;h[b];){let D=t[h.charCodeAt(b)];if(D===255)return;let M=0;for(let te=I-1;(D!==0||M<A)&&te!==-1;te--,M++)D+=i*C[te]>>>0,C[te]=D%256>>>0,D=D/256>>>0;if(D!==0)throw new Error("Non-zero carry");A=M,b++}let U=I-A;for(;U!==I&&C[U]===0;)U++;const B=new Uint8Array(v+(I-U));let _=v;for(;U!==I;)B[_++]=C[U++];return B}function p(h){const b=f(h);if(b)return b;throw new Error("Non-base"+i+" character")}return{encode:l,decodeUnsafe:f,decode:p}}var gH="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";const Id=yH(gH);function mH(e){function t(c){var l=Uint8Array.from(c),f=e(l),p=l.length+4,h=new Uint8Array(p);return h.set(l,0),h.set(f.subarray(0,4),l.length),Id.encode(h)}function i(c){var l=c.slice(0,-4),f=c.slice(-4),p=e(l);if(!(f[0]^p[0]|f[1]^p[1]|f[2]^p[2]|f[3]^p[3]))return l}function a(c){var l=Id.decodeUnsafe(c);if(l!=null)return i(l)}function s(c){var l=Id.decode(c),f=i(l);if(f==null)throw new Error("Invalid checksum");return f}return{encode:t,decode:s,decodeUnsafe:a}}function AH(e){return yC(yC(e))}const Fh=mH(AH);var mo={},gC;function bH(){if(gC)return mo;gC=1,Object.defineProperty(mo,"__esModule",{value:!0}),mo.bech32m=mo.bech32=void 0;const e="qpzry9x8gf2tvdw0s3jn54khce6mua7l",t={};for(let h=0;h<e.length;h++){const b=e.charAt(h);t[b]=h}function i(h){const b=h>>25;return(h&33554431)<<5^-(b>>0&1)&996825010^-(b>>1&1)&642813549^-(b>>2&1)&513874426^-(b>>3&1)&1027748829^-(b>>4&1)&705979059}function a(h){let b=1;for(let v=0;v<h.length;++v){const A=h.charCodeAt(v);if(A<33||A>126)return"Invalid prefix ("+h+")";b=i(b)^A>>5}b=i(b);for(let v=0;v<h.length;++v){const A=h.charCodeAt(v);b=i(b)^A&31}return b}function s(h,b,v,A){let I=0,C=0;const U=(1<<v)-1,B=[];for(let _=0;_<h.length;++_)for(I=I<<b|h[_],C+=b;C>=v;)C-=v,B.push(I>>C&U);if(A)C>0&&B.push(I<<v-C&U);else{if(C>=b)return"Excess padding";if(I<<v-C&U)return"Non-zero padding"}return B}function c(h){return s(h,8,5,!0)}function l(h){const b=s(h,5,8,!1);if(Array.isArray(b))return b}function f(h){const b=s(h,5,8,!1);if(Array.isArray(b))return b;throw new Error(b)}function p(h){let b;h==="bech32"?b=1:b=734539939;function v(U,B,_){if(_=_||90,U.length+7+B.length>_)throw new TypeError("Exceeds length limit");U=U.toLowerCase();let D=a(U);if(typeof D=="string")throw new Error(D);let M=U+"1";for(let te=0;te<B.length;++te){const z=B[te];if(z>>5!==0)throw new Error("Non 5-bit word");D=i(D)^z,M+=e.charAt(z)}for(let te=0;te<6;++te)D=i(D);D^=b;for(let te=0;te<6;++te){const z=D>>(5-te)*5&31;M+=e.charAt(z)}return M}function A(U,B){if(B=B||90,U.length<8)return U+" too short";if(U.length>B)return"Exceeds length limit";const _=U.toLowerCase(),D=U.toUpperCase();if(U!==_&&U!==D)return"Mixed-case string "+U;U=_;const M=U.lastIndexOf("1");if(M===-1)return"No separator character for "+U;if(M===0)return"Missing prefix for "+U;const te=U.slice(0,M),z=U.slice(M+1);if(z.length<6)return"Data too short";let ne=a(te);if(typeof ne=="string")return ne;const ce=[];for(let oe=0;oe<z.length;++oe){const F=z.charAt(oe),H=t[F];if(H===void 0)return"Unknown character "+F;ne=i(ne)^H,!(oe+6>=z.length)&&ce.push(H)}return ne!==b?"Invalid checksum for "+U:{prefix:te,words:ce}}function I(U,B){const _=A(U,B);if(typeof _=="object")return _}function C(U,B){const _=A(U,B);if(typeof _=="object")return _;throw new Error(_)}return{decodeUnsafe:I,decode:C,encode:v,toWords:c,fromWordsUnsafe:l,fromWords:f}}return mo.bech32=p("bech32"),mo.bech32m=p("bech32m"),mo}var l1=bH(),Lg={exports:{}},mC;function vH(){return mC||(mC=1,(function(e){(function(){var t=typeof window=="object"?window:{},i=!t.HI_BASE32_NO_NODE_JS&&typeof it=="object"&&it.versions&&it.versions.node;i&&(t=ki);var a=!t.HI_BASE32_NO_COMMON_JS&&!0&&e.exports,s="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".split(""),c={A:0,B:1,C:2,D:3,E:4,F:5,G:6,H:7,I:8,J:9,K:10,L:11,M:12,N:13,O:14,P:15,Q:16,R:17,S:18,T:19,U:20,V:21,W:22,X:23,Y:24,Z:25,2:26,3:27,4:28,5:29,6:30,7:31},l=[0,0,0,0,0,0,0,0],f=function(B,_){_.length>10&&(_="..."+_.substr(-10));var D=new Error("Decoded data is not valid UTF-8. Maybe try base32.decode.asBytes()? Partial data after reading "+B+" bytes: "+_+" <-");throw D.position=B,D},p=function(B){for(var _="",D=B.length,M=0,te=0,z,ne;M<D;){if(z=B[M++],z<=127){_+=String.fromCharCode(z);continue}else z>191&&z<=223?(ne=z&31,te=1):z<=239?(ne=z&15,te=2):z<=247?(ne=z&7,te=3):f(M,_);for(var ce=0;ce<te;++ce)z=B[M++],(z<128||z>191)&&f(M,_),ne<<=6,ne+=z&63;ne>=55296&&ne<=57343&&f(M,_),ne>1114111&&f(M,_),ne<=65535?_+=String.fromCharCode(ne):(ne-=65536,_+=String.fromCharCode((ne>>10)+55296),_+=String.fromCharCode((ne&1023)+56320))}return _},h=function(B){if(B==="")return[];if(!/^[A-Z2-7=]+$/.test(B))throw new Error("Invalid base32 characters");B=B.replace(/=/g,"");for(var _,D,M,te,z,ne,ce,oe,F=[],H=0,K=B.length,G=0,Y=K>>3<<3;G<Y;)_=c[B.charAt(G++)],D=c[B.charAt(G++)],M=c[B.charAt(G++)],te=c[B.charAt(G++)],z=c[B.charAt(G++)],ne=c[B.charAt(G++)],ce=c[B.charAt(G++)],oe=c[B.charAt(G++)],F[H++]=(_<<3|D>>>2)&255,F[H++]=(D<<6|M<<1|te>>>4)&255,F[H++]=(te<<4|z>>>1)&255,F[H++]=(z<<7|ne<<2|ce>>>3)&255,F[H++]=(ce<<5|oe)&255;var X=K-Y;return X===2?(_=c[B.charAt(G++)],D=c[B.charAt(G++)],F[H++]=(_<<3|D>>>2)&255):X===4?(_=c[B.charAt(G++)],D=c[B.charAt(G++)],M=c[B.charAt(G++)],te=c[B.charAt(G++)],F[H++]=(_<<3|D>>>2)&255,F[H++]=(D<<6|M<<1|te>>>4)&255):X===5?(_=c[B.charAt(G++)],D=c[B.charAt(G++)],M=c[B.charAt(G++)],te=c[B.charAt(G++)],z=c[B.charAt(G++)],F[H++]=(_<<3|D>>>2)&255,F[H++]=(D<<6|M<<1|te>>>4)&255,F[H++]=(te<<4|z>>>1)&255):X===7&&(_=c[B.charAt(G++)],D=c[B.charAt(G++)],M=c[B.charAt(G++)],te=c[B.charAt(G++)],z=c[B.charAt(G++)],ne=c[B.charAt(G++)],ce=c[B.charAt(G++)],F[H++]=(_<<3|D>>>2)&255,F[H++]=(D<<6|M<<1|te>>>4)&255,F[H++]=(te<<4|z>>>1)&255,F[H++]=(z<<7|ne<<2|ce>>>3)&255),F},b=function(B){for(var _,D,M,te,z,ne="",ce=B.length,oe=0,F=parseInt(ce/5)*5;oe<F;)_=B.charCodeAt(oe++),D=B.charCodeAt(oe++),M=B.charCodeAt(oe++),te=B.charCodeAt(oe++),z=B.charCodeAt(oe++),ne+=s[_>>>3]+s[(_<<2|D>>>6)&31]+s[D>>>1&31]+s[(D<<4|M>>>4)&31]+s[(M<<1|te>>>7)&31]+s[te>>>2&31]+s[(te<<3|z>>>5)&31]+s[z&31];var H=ce-F;return H===1?(_=B.charCodeAt(oe),ne+=s[_>>>3]+s[_<<2&31]+"======"):H===2?(_=B.charCodeAt(oe++),D=B.charCodeAt(oe),ne+=s[_>>>3]+s[(_<<2|D>>>6)&31]+s[D>>>1&31]+s[D<<4&31]+"===="):H===3?(_=B.charCodeAt(oe++),D=B.charCodeAt(oe++),M=B.charCodeAt(oe),ne+=s[_>>>3]+s[(_<<2|D>>>6)&31]+s[D>>>1&31]+s[(D<<4|M>>>4)&31]+s[M<<1&31]+"==="):H===4&&(_=B.charCodeAt(oe++),D=B.charCodeAt(oe++),M=B.charCodeAt(oe++),te=B.charCodeAt(oe),ne+=s[_>>>3]+s[(_<<2|D>>>6)&31]+s[D>>>1&31]+s[(D<<4|M>>>4)&31]+s[(M<<1|te>>>7)&31]+s[te>>>2&31]+s[te<<3&31]+"="),ne},v=function(B){var _,D,M,te,z,ne,ce=!1,oe="",F=0,H,K=0,G=B.length;if(B==="")return oe;do{for(l[0]=l[5],l[1]=l[6],l[2]=l[7],H=K;F<G&&H<5;++F)ne=B.charCodeAt(F),ne<128?l[H++]=ne:ne<2048?(l[H++]=192|ne>>6,l[H++]=128|ne&63):ne<55296||ne>=57344?(l[H++]=224|ne>>12,l[H++]=128|ne>>6&63,l[H++]=128|ne&63):(ne=65536+((ne&1023)<<10|B.charCodeAt(++F)&1023),l[H++]=240|ne>>18,l[H++]=128|ne>>12&63,l[H++]=128|ne>>6&63,l[H++]=128|ne&63);K=H-5,F===G&&++F,F>G&&H<6&&(ce=!0),_=l[0],H>4?(D=l[1],M=l[2],te=l[3],z=l[4],oe+=s[_>>>3]+s[(_<<2|D>>>6)&31]+s[D>>>1&31]+s[(D<<4|M>>>4)&31]+s[(M<<1|te>>>7)&31]+s[te>>>2&31]+s[(te<<3|z>>>5)&31]+s[z&31]):H===1?oe+=s[_>>>3]+s[_<<2&31]+"======":H===2?(D=l[1],oe+=s[_>>>3]+s[(_<<2|D>>>6)&31]+s[D>>>1&31]+s[D<<4&31]+"===="):H===3?(D=l[1],M=l[2],oe+=s[_>>>3]+s[(_<<2|D>>>6)&31]+s[D>>>1&31]+s[(D<<4|M>>>4)&31]+s[M<<1&31]+"==="):(D=l[1],M=l[2],te=l[3],oe+=s[_>>>3]+s[(_<<2|D>>>6)&31]+s[D>>>1&31]+s[(D<<4|M>>>4)&31]+s[(M<<1|te>>>7)&31]+s[te>>>2&31]+s[te<<3&31]+"=")}while(!ce);return oe},A=function(B){for(var _,D,M,te,z,ne="",ce=B.length,oe=0,F=parseInt(ce/5)*5;oe<F;)_=B[oe++],D=B[oe++],M=B[oe++],te=B[oe++],z=B[oe++],ne+=s[_>>>3]+s[(_<<2|D>>>6)&31]+s[D>>>1&31]+s[(D<<4|M>>>4)&31]+s[(M<<1|te>>>7)&31]+s[te>>>2&31]+s[(te<<3|z>>>5)&31]+s[z&31];var H=ce-F;return H===1?(_=B[oe],ne+=s[_>>>3]+s[_<<2&31]+"======"):H===2?(_=B[oe++],D=B[oe],ne+=s[_>>>3]+s[(_<<2|D>>>6)&31]+s[D>>>1&31]+s[D<<4&31]+"===="):H===3?(_=B[oe++],D=B[oe++],M=B[oe],ne+=s[_>>>3]+s[(_<<2|D>>>6)&31]+s[D>>>1&31]+s[(D<<4|M>>>4)&31]+s[M<<1&31]+"==="):H===4&&(_=B[oe++],D=B[oe++],M=B[oe++],te=B[oe],ne+=s[_>>>3]+s[(_<<2|D>>>6)&31]+s[D>>>1&31]+s[(D<<4|M>>>4)&31]+s[(M<<1|te>>>7)&31]+s[te>>>2&31]+s[te<<3&31]+"="),ne},I=function(B,_){var D=typeof B!="string";return D&&B.constructor===ArrayBuffer&&(B=new Uint8Array(B)),D?A(B):_?b(B):v(B)},C=function(B,_){if(!_)return p(h(B));if(B==="")return"";if(!/^[A-Z2-7=]+$/.test(B))throw new Error("Invalid base32 characters");var D,M,te,z,ne,ce,oe,F,H="",K=B.indexOf("=");K===-1&&(K=B.length);for(var G=0,Y=K>>3<<3;G<Y;)D=c[B.charAt(G++)],M=c[B.charAt(G++)],te=c[B.charAt(G++)],z=c[B.charAt(G++)],ne=c[B.charAt(G++)],ce=c[B.charAt(G++)],oe=c[B.charAt(G++)],F=c[B.charAt(G++)],H+=String.fromCharCode((D<<3|M>>>2)&255)+String.fromCharCode((M<<6|te<<1|z>>>4)&255)+String.fromCharCode((z<<4|ne>>>1)&255)+String.fromCharCode((ne<<7|ce<<2|oe>>>3)&255)+String.fromCharCode((oe<<5|F)&255);var X=K-Y;return X===2?(D=c[B.charAt(G++)],M=c[B.charAt(G++)],H+=String.fromCharCode((D<<3|M>>>2)&255)):X===4?(D=c[B.charAt(G++)],M=c[B.charAt(G++)],te=c[B.charAt(G++)],z=c[B.charAt(G++)],H+=String.fromCharCode((D<<3|M>>>2)&255)+String.fromCharCode((M<<6|te<<1|z>>>4)&255)):X===5?(D=c[B.charAt(G++)],M=c[B.charAt(G++)],te=c[B.charAt(G++)],z=c[B.charAt(G++)],ne=c[B.charAt(G++)],H+=String.fromCharCode((D<<3|M>>>2)&255)+String.fromCharCode((M<<6|te<<1|z>>>4)&255)+String.fromCharCode((z<<4|ne>>>1)&255)):X===7&&(D=c[B.charAt(G++)],M=c[B.charAt(G++)],te=c[B.charAt(G++)],z=c[B.charAt(G++)],ne=c[B.charAt(G++)],ce=c[B.charAt(G++)],oe=c[B.charAt(G++)],H+=String.fromCharCode((D<<3|M>>>2)&255)+String.fromCharCode((M<<6|te<<1|z>>>4)&255)+String.fromCharCode((z<<4|ne>>>1)&255)+String.fromCharCode((ne<<7|ce<<2|oe>>>3)&255)),H},U={encode:I,decode:C};C.asBytes=h,a?e.exports=U:t.base32=U})()})(Lg)),Lg.exports}var xH=vH();const k3=Hd(xH);var qg={exports:{}},AC;function EH(){return AC||(AC=1,(function(e){(function(){var t="input is invalid type",i="finalize already called",a=typeof window=="object",s=a?window:{};s.JS_SHA512_NO_WINDOW&&(a=!1);var c=!a&&typeof self=="object",l=!s.JS_SHA512_NO_NODE_JS&&typeof it=="object"&&it.versions&&it.versions.node;l?s=ki:c&&(s=self);var f=!s.JS_SHA512_NO_COMMON_JS&&!0&&e.exports,p=!s.JS_SHA512_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",h="0123456789abcdef".split(""),b=[-2147483648,8388608,32768,128],v=[24,16,8,0],A=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],I=["hex","array","digest","arrayBuffer"],C=[],U=Array.isArray;(s.JS_SHA512_NO_NODE_JS||!U)&&(U=function(F){return Object.prototype.toString.call(F)==="[object Array]"});var B=ArrayBuffer.isView;p&&(s.JS_SHA512_NO_ARRAY_BUFFER_IS_VIEW||!B)&&(B=function(F){return typeof F=="object"&&F.buffer&&F.buffer.constructor===ArrayBuffer});var _=function(F){var H=typeof F;if(H==="string")return[F,!0];if(H!=="object"||F===null)throw new Error(t);if(p&&F.constructor===ArrayBuffer)return[new Uint8Array(F),!1];if(!U(F)&&!B(F))throw new Error(t);return[F,!1]},D=function(F,H){return function(K){return new ne(H,!0).update(K)[F]()}},M=function(F){var H=D("hex",F);H.create=function(){return new ne(F)},H.update=function(Y){return H.create().update(Y)};for(var K=0;K<I.length;++K){var G=I[K];H[G]=D(G,F)}return H},te=function(F,H){return function(K,G){return new ce(K,H,!0).update(G)[F]()}},z=function(F){var H=te("hex",F);H.create=function(Y){return new ce(Y,F)},H.update=function(Y,X){return H.create(Y).update(X)};for(var K=0;K<I.length;++K){var G=I[K];H[G]=te(G,F)}return H};function ne(F,H){H?(C[0]=C[1]=C[2]=C[3]=C[4]=C[5]=C[6]=C[7]=C[8]=C[9]=C[10]=C[11]=C[12]=C[13]=C[14]=C[15]=C[16]=C[17]=C[18]=C[19]=C[20]=C[21]=C[22]=C[23]=C[24]=C[25]=C[26]=C[27]=C[28]=C[29]=C[30]=C[31]=C[32]=0,this.blocks=C):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],F==384?(this.h0h=3418070365,this.h0l=3238371032,this.h1h=1654270250,this.h1l=914150663,this.h2h=2438529370,this.h2l=812702999,this.h3h=355462360,this.h3l=4144912697,this.h4h=1731405415,this.h4l=4290775857,this.h5h=2394180231,this.h5l=1750603025,this.h6h=3675008525,this.h6l=1694076839,this.h7h=1203062813,this.h7l=3204075428):F==256?(this.h0h=573645204,this.h0l=4230739756,this.h1h=2673172387,this.h1l=3360449730,this.h2h=596883563,this.h2l=1867755857,this.h3h=2520282905,this.h3l=1497426621,this.h4h=2519219938,this.h4l=2827943907,this.h5h=3193839141,this.h5l=1401305490,this.h6h=721525244,this.h6l=746961066,this.h7h=246885852,this.h7l=2177182882):F==224?(this.h0h=2352822216,this.h0l=424955298,this.h1h=1944164710,this.h1l=2312950998,this.h2h=502970286,this.h2l=855612546,this.h3h=1738396948,this.h3l=1479516111,this.h4h=258812777,this.h4l=2077511080,this.h5h=2011393907,this.h5l=79989058,this.h6h=1067287976,this.h6l=1780299464,this.h7h=286451373,this.h7l=2446758561):(this.h0h=1779033703,this.h0l=4089235720,this.h1h=3144134277,this.h1l=2227873595,this.h2h=1013904242,this.h2l=4271175723,this.h3h=2773480762,this.h3l=1595750129,this.h4h=1359893119,this.h4l=2917565137,this.h5h=2600822924,this.h5l=725511199,this.h6h=528734635,this.h6l=4215389547,this.h7h=1541459225,this.h7l=327033209),this.bits=F,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1}ne.prototype.update=function(F){if(this.finalized)throw new Error(i);var H=_(F);F=H[0];for(var K=H[1],G,Y=0,X,pe=F.length,R=this.blocks;Y<pe;){if(this.hashed&&(this.hashed=!1,R[0]=this.block,this.block=R[1]=R[2]=R[3]=R[4]=R[5]=R[6]=R[7]=R[8]=R[9]=R[10]=R[11]=R[12]=R[13]=R[14]=R[15]=R[16]=R[17]=R[18]=R[19]=R[20]=R[21]=R[22]=R[23]=R[24]=R[25]=R[26]=R[27]=R[28]=R[29]=R[30]=R[31]=R[32]=0),K)for(X=this.start;Y<pe&&X<128;++Y)G=F.charCodeAt(Y),G<128?R[X>>>2]|=G<<v[X++&3]:G<2048?(R[X>>>2]|=(192|G>>>6)<<v[X++&3],R[X>>>2]|=(128|G&63)<<v[X++&3]):G<55296||G>=57344?(R[X>>>2]|=(224|G>>>12)<<v[X++&3],R[X>>>2]|=(128|G>>>6&63)<<v[X++&3],R[X>>>2]|=(128|G&63)<<v[X++&3]):(G=65536+((G&1023)<<10|F.charCodeAt(++Y)&1023),R[X>>>2]|=(240|G>>>18)<<v[X++&3],R[X>>>2]|=(128|G>>>12&63)<<v[X++&3],R[X>>>2]|=(128|G>>>6&63)<<v[X++&3],R[X>>>2]|=(128|G&63)<<v[X++&3]);else for(X=this.start;Y<pe&&X<128;++Y)R[X>>>2]|=F[Y]<<v[X++&3];this.lastByteIndex=X,this.bytes+=X-this.start,X>=128?(this.block=R[32],this.start=X-128,this.hash(),this.hashed=!0):this.start=X}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this},ne.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var F=this.blocks,H=this.lastByteIndex;F[32]=this.block,F[H>>>2]|=b[H&3],this.block=F[32],H>=112&&(this.hashed||this.hash(),F[0]=this.block,F[1]=F[2]=F[3]=F[4]=F[5]=F[6]=F[7]=F[8]=F[9]=F[10]=F[11]=F[12]=F[13]=F[14]=F[15]=F[16]=F[17]=F[18]=F[19]=F[20]=F[21]=F[22]=F[23]=F[24]=F[25]=F[26]=F[27]=F[28]=F[29]=F[30]=F[31]=F[32]=0),F[30]=this.hBytes<<3|this.bytes>>>29,F[31]=this.bytes<<3,this.hash()}},ne.prototype.hash=function(){var F=this.h0h,H=this.h0l,K=this.h1h,G=this.h1l,Y=this.h2h,X=this.h2l,pe=this.h3h,R=this.h3l,re=this.h4h,fe=this.h4l,Z=this.h5h,O=this.h5l,V=this.h6h,ie=this.h6l,$=this.h7h,j=this.h7l,N=this.blocks,k,ye,ge,q,E,P,Q,W,le,de,x,g,m,S,ee,Ae,Se,Me,se,ue,Ee,Oe,_e,Ne,qe;for(k=32;k<160;k+=2)ue=N[k-30],Ee=N[k-29],ye=(ue>>>1|Ee<<31)^(ue>>>8|Ee<<24)^ue>>>7,ge=(Ee>>>1|ue<<31)^(Ee>>>8|ue<<24)^(Ee>>>7|ue<<25),ue=N[k-4],Ee=N[k-3],q=(ue>>>19|Ee<<13)^(Ee>>>29|ue<<3)^ue>>>6,E=(Ee>>>19|ue<<13)^(ue>>>29|Ee<<3)^(Ee>>>6|ue<<26),ue=N[k-32],Ee=N[k-31],Oe=N[k-14],_e=N[k-13],P=(_e&65535)+(Ee&65535)+(ge&65535)+(E&65535),Q=(_e>>>16)+(Ee>>>16)+(ge>>>16)+(E>>>16)+(P>>>16),W=(Oe&65535)+(ue&65535)+(ye&65535)+(q&65535)+(Q>>>16),le=(Oe>>>16)+(ue>>>16)+(ye>>>16)+(q>>>16)+(W>>>16),N[k]=le<<16|W&65535,N[k+1]=Q<<16|P&65535;var ke=F,ze=H,Ye=K,Xe=G,ut=Y,ft=X,ht=pe,pt=R,mt=re,Mt=fe,Rt=Z,Tt=O,$t=V,jt=ie,Pt=$,_t=j;for(Ae=Ye&ut,Se=Xe&ft,k=0;k<160;k+=8)ye=(ke>>>28|ze<<4)^(ze>>>2|ke<<30)^(ze>>>7|ke<<25),ge=(ze>>>28|ke<<4)^(ke>>>2|ze<<30)^(ke>>>7|ze<<25),q=(mt>>>14|Mt<<18)^(mt>>>18|Mt<<14)^(Mt>>>9|mt<<23),E=(Mt>>>14|mt<<18)^(Mt>>>18|mt<<14)^(mt>>>9|Mt<<23),de=ke&Ye,x=ze&Xe,Me=de^ke&ut^Ae,se=x^ze&ft^Se,Ne=mt&Rt^~mt&$t,qe=Mt&Tt^~Mt&jt,ue=N[k],Ee=N[k+1],Oe=A[k],_e=A[k+1],P=(_e&65535)+(Ee&65535)+(qe&65535)+(E&65535)+(_t&65535),Q=(_e>>>16)+(Ee>>>16)+(qe>>>16)+(E>>>16)+(_t>>>16)+(P>>>16),W=(Oe&65535)+(ue&65535)+(Ne&65535)+(q&65535)+(Pt&65535)+(Q>>>16),le=(Oe>>>16)+(ue>>>16)+(Ne>>>16)+(q>>>16)+(Pt>>>16)+(W>>>16),ue=le<<16|W&65535,Ee=Q<<16|P&65535,P=(se&65535)+(ge&65535),Q=(se>>>16)+(ge>>>16)+(P>>>16),W=(Me&65535)+(ye&65535)+(Q>>>16),le=(Me>>>16)+(ye>>>16)+(W>>>16),Oe=le<<16|W&65535,_e=Q<<16|P&65535,P=(pt&65535)+(Ee&65535),Q=(pt>>>16)+(Ee>>>16)+(P>>>16),W=(ht&65535)+(ue&65535)+(Q>>>16),le=(ht>>>16)+(ue>>>16)+(W>>>16),Pt=le<<16|W&65535,_t=Q<<16|P&65535,P=(_e&65535)+(Ee&65535),Q=(_e>>>16)+(Ee>>>16)+(P>>>16),W=(Oe&65535)+(ue&65535)+(Q>>>16),le=(Oe>>>16)+(ue>>>16)+(W>>>16),ht=le<<16|W&65535,pt=Q<<16|P&65535,ye=(ht>>>28|pt<<4)^(pt>>>2|ht<<30)^(pt>>>7|ht<<25),ge=(pt>>>28|ht<<4)^(ht>>>2|pt<<30)^(ht>>>7|pt<<25),q=(Pt>>>14|_t<<18)^(Pt>>>18|_t<<14)^(_t>>>9|Pt<<23),E=(_t>>>14|Pt<<18)^(_t>>>18|Pt<<14)^(Pt>>>9|_t<<23),g=ht&ke,m=pt&ze,Me=g^ht&Ye^de,se=m^pt&Xe^x,Ne=Pt&mt^~Pt&Rt,qe=_t&Mt^~_t&Tt,ue=N[k+2],Ee=N[k+3],Oe=A[k+2],_e=A[k+3],P=(_e&65535)+(Ee&65535)+(qe&65535)+(E&65535)+(jt&65535),Q=(_e>>>16)+(Ee>>>16)+(qe>>>16)+(E>>>16)+(jt>>>16)+(P>>>16),W=(Oe&65535)+(ue&65535)+(Ne&65535)+(q&65535)+($t&65535)+(Q>>>16),le=(Oe>>>16)+(ue>>>16)+(Ne>>>16)+(q>>>16)+($t>>>16)+(W>>>16),ue=le<<16|W&65535,Ee=Q<<16|P&65535,P=(se&65535)+(ge&65535),Q=(se>>>16)+(ge>>>16)+(P>>>16),W=(Me&65535)+(ye&65535)+(Q>>>16),le=(Me>>>16)+(ye>>>16)+(W>>>16),Oe=le<<16|W&65535,_e=Q<<16|P&65535,P=(ft&65535)+(Ee&65535),Q=(ft>>>16)+(Ee>>>16)+(P>>>16),W=(ut&65535)+(ue&65535)+(Q>>>16),le=(ut>>>16)+(ue>>>16)+(W>>>16),$t=le<<16|W&65535,jt=Q<<16|P&65535,P=(_e&65535)+(Ee&65535),Q=(_e>>>16)+(Ee>>>16)+(P>>>16),W=(Oe&65535)+(ue&65535)+(Q>>>16),le=(Oe>>>16)+(ue>>>16)+(W>>>16),ut=le<<16|W&65535,ft=Q<<16|P&65535,ye=(ut>>>28|ft<<4)^(ft>>>2|ut<<30)^(ft>>>7|ut<<25),ge=(ft>>>28|ut<<4)^(ut>>>2|ft<<30)^(ut>>>7|ft<<25),q=($t>>>14|jt<<18)^($t>>>18|jt<<14)^(jt>>>9|$t<<23),E=(jt>>>14|$t<<18)^(jt>>>18|$t<<14)^($t>>>9|jt<<23),S=ut&ht,ee=ft&pt,Me=S^ut&ke^g,se=ee^ft&ze^m,Ne=$t&Pt^~$t&mt,qe=jt&_t^~jt&Mt,ue=N[k+4],Ee=N[k+5],Oe=A[k+4],_e=A[k+5],P=(_e&65535)+(Ee&65535)+(qe&65535)+(E&65535)+(Tt&65535),Q=(_e>>>16)+(Ee>>>16)+(qe>>>16)+(E>>>16)+(Tt>>>16)+(P>>>16),W=(Oe&65535)+(ue&65535)+(Ne&65535)+(q&65535)+(Rt&65535)+(Q>>>16),le=(Oe>>>16)+(ue>>>16)+(Ne>>>16)+(q>>>16)+(Rt>>>16)+(W>>>16),ue=le<<16|W&65535,Ee=Q<<16|P&65535,P=(se&65535)+(ge&65535),Q=(se>>>16)+(ge>>>16)+(P>>>16),W=(Me&65535)+(ye&65535)+(Q>>>16),le=(Me>>>16)+(ye>>>16)+(W>>>16),Oe=le<<16|W&65535,_e=Q<<16|P&65535,P=(Xe&65535)+(Ee&65535),Q=(Xe>>>16)+(Ee>>>16)+(P>>>16),W=(Ye&65535)+(ue&65535)+(Q>>>16),le=(Ye>>>16)+(ue>>>16)+(W>>>16),Rt=le<<16|W&65535,Tt=Q<<16|P&65535,P=(_e&65535)+(Ee&65535),Q=(_e>>>16)+(Ee>>>16)+(P>>>16),W=(Oe&65535)+(ue&65535)+(Q>>>16),le=(Oe>>>16)+(ue>>>16)+(W>>>16),Ye=le<<16|W&65535,Xe=Q<<16|P&65535,ye=(Ye>>>28|Xe<<4)^(Xe>>>2|Ye<<30)^(Xe>>>7|Ye<<25),ge=(Xe>>>28|Ye<<4)^(Ye>>>2|Xe<<30)^(Ye>>>7|Xe<<25),q=(Rt>>>14|Tt<<18)^(Rt>>>18|Tt<<14)^(Tt>>>9|Rt<<23),E=(Tt>>>14|Rt<<18)^(Tt>>>18|Rt<<14)^(Rt>>>9|Tt<<23),Ae=Ye&ut,Se=Xe&ft,Me=Ae^Ye&ht^S,se=Se^Xe&pt^ee,Ne=Rt&$t^~Rt&Pt,qe=Tt&jt^~Tt&_t,ue=N[k+6],Ee=N[k+7],Oe=A[k+6],_e=A[k+7],P=(_e&65535)+(Ee&65535)+(qe&65535)+(E&65535)+(Mt&65535),Q=(_e>>>16)+(Ee>>>16)+(qe>>>16)+(E>>>16)+(Mt>>>16)+(P>>>16),W=(Oe&65535)+(ue&65535)+(Ne&65535)+(q&65535)+(mt&65535)+(Q>>>16),le=(Oe>>>16)+(ue>>>16)+(Ne>>>16)+(q>>>16)+(mt>>>16)+(W>>>16),ue=le<<16|W&65535,Ee=Q<<16|P&65535,P=(se&65535)+(ge&65535),Q=(se>>>16)+(ge>>>16)+(P>>>16),W=(Me&65535)+(ye&65535)+(Q>>>16),le=(Me>>>16)+(ye>>>16)+(W>>>16),Oe=le<<16|W&65535,_e=Q<<16|P&65535,P=(ze&65535)+(Ee&65535),Q=(ze>>>16)+(Ee>>>16)+(P>>>16),W=(ke&65535)+(ue&65535)+(Q>>>16),le=(ke>>>16)+(ue>>>16)+(W>>>16),mt=le<<16|W&65535,Mt=Q<<16|P&65535,P=(_e&65535)+(Ee&65535),Q=(_e>>>16)+(Ee>>>16)+(P>>>16),W=(Oe&65535)+(ue&65535)+(Q>>>16),le=(Oe>>>16)+(ue>>>16)+(W>>>16),ke=le<<16|W&65535,ze=Q<<16|P&65535;P=(H&65535)+(ze&65535),Q=(H>>>16)+(ze>>>16)+(P>>>16),W=(F&65535)+(ke&65535)+(Q>>>16),le=(F>>>16)+(ke>>>16)+(W>>>16),this.h0h=le<<16|W&65535,this.h0l=Q<<16|P&65535,P=(G&65535)+(Xe&65535),Q=(G>>>16)+(Xe>>>16)+(P>>>16),W=(K&65535)+(Ye&65535)+(Q>>>16),le=(K>>>16)+(Ye>>>16)+(W>>>16),this.h1h=le<<16|W&65535,this.h1l=Q<<16|P&65535,P=(X&65535)+(ft&65535),Q=(X>>>16)+(ft>>>16)+(P>>>16),W=(Y&65535)+(ut&65535)+(Q>>>16),le=(Y>>>16)+(ut>>>16)+(W>>>16),this.h2h=le<<16|W&65535,this.h2l=Q<<16|P&65535,P=(R&65535)+(pt&65535),Q=(R>>>16)+(pt>>>16)+(P>>>16),W=(pe&65535)+(ht&65535)+(Q>>>16),le=(pe>>>16)+(ht>>>16)+(W>>>16),this.h3h=le<<16|W&65535,this.h3l=Q<<16|P&65535,P=(fe&65535)+(Mt&65535),Q=(fe>>>16)+(Mt>>>16)+(P>>>16),W=(re&65535)+(mt&65535)+(Q>>>16),le=(re>>>16)+(mt>>>16)+(W>>>16),this.h4h=le<<16|W&65535,this.h4l=Q<<16|P&65535,P=(O&65535)+(Tt&65535),Q=(O>>>16)+(Tt>>>16)+(P>>>16),W=(Z&65535)+(Rt&65535)+(Q>>>16),le=(Z>>>16)+(Rt>>>16)+(W>>>16),this.h5h=le<<16|W&65535,this.h5l=Q<<16|P&65535,P=(ie&65535)+(jt&65535),Q=(ie>>>16)+(jt>>>16)+(P>>>16),W=(V&65535)+($t&65535)+(Q>>>16),le=(V>>>16)+($t>>>16)+(W>>>16),this.h6h=le<<16|W&65535,this.h6l=Q<<16|P&65535,P=(j&65535)+(_t&65535),Q=(j>>>16)+(_t>>>16)+(P>>>16),W=($&65535)+(Pt&65535)+(Q>>>16),le=($>>>16)+(Pt>>>16)+(W>>>16),this.h7h=le<<16|W&65535,this.h7l=Q<<16|P&65535},ne.prototype.hex=function(){this.finalize();var F=this.h0h,H=this.h0l,K=this.h1h,G=this.h1l,Y=this.h2h,X=this.h2l,pe=this.h3h,R=this.h3l,re=this.h4h,fe=this.h4l,Z=this.h5h,O=this.h5l,V=this.h6h,ie=this.h6l,$=this.h7h,j=this.h7l,N=this.bits,k=h[F>>>28&15]+h[F>>>24&15]+h[F>>>20&15]+h[F>>>16&15]+h[F>>>12&15]+h[F>>>8&15]+h[F>>>4&15]+h[F&15]+h[H>>>28&15]+h[H>>>24&15]+h[H>>>20&15]+h[H>>>16&15]+h[H>>>12&15]+h[H>>>8&15]+h[H>>>4&15]+h[H&15]+h[K>>>28&15]+h[K>>>24&15]+h[K>>>20&15]+h[K>>>16&15]+h[K>>>12&15]+h[K>>>8&15]+h[K>>>4&15]+h[K&15]+h[G>>>28&15]+h[G>>>24&15]+h[G>>>20&15]+h[G>>>16&15]+h[G>>>12&15]+h[G>>>8&15]+h[G>>>4&15]+h[G&15]+h[Y>>>28&15]+h[Y>>>24&15]+h[Y>>>20&15]+h[Y>>>16&15]+h[Y>>>12&15]+h[Y>>>8&15]+h[Y>>>4&15]+h[Y&15]+h[X>>>28&15]+h[X>>>24&15]+h[X>>>20&15]+h[X>>>16&15]+h[X>>>12&15]+h[X>>>8&15]+h[X>>>4&15]+h[X&15]+h[pe>>>28&15]+h[pe>>>24&15]+h[pe>>>20&15]+h[pe>>>16&15]+h[pe>>>12&15]+h[pe>>>8&15]+h[pe>>>4&15]+h[pe&15];return N>=256&&(k+=h[R>>>28&15]+h[R>>>24&15]+h[R>>>20&15]+h[R>>>16&15]+h[R>>>12&15]+h[R>>>8&15]+h[R>>>4&15]+h[R&15]),N>=384&&(k+=h[re>>>28&15]+h[re>>>24&15]+h[re>>>20&15]+h[re>>>16&15]+h[re>>>12&15]+h[re>>>8&15]+h[re>>>4&15]+h[re&15]+h[fe>>>28&15]+h[fe>>>24&15]+h[fe>>>20&15]+h[fe>>>16&15]+h[fe>>>12&15]+h[fe>>>8&15]+h[fe>>>4&15]+h[fe&15]+h[Z>>>28&15]+h[Z>>>24&15]+h[Z>>>20&15]+h[Z>>>16&15]+h[Z>>>12&15]+h[Z>>>8&15]+h[Z>>>4&15]+h[Z&15]+h[O>>>28&15]+h[O>>>24&15]+h[O>>>20&15]+h[O>>>16&15]+h[O>>>12&15]+h[O>>>8&15]+h[O>>>4&15]+h[O&15]),N==512&&(k+=h[V>>>28&15]+h[V>>>24&15]+h[V>>>20&15]+h[V>>>16&15]+h[V>>>12&15]+h[V>>>8&15]+h[V>>>4&15]+h[V&15]+h[ie>>>28&15]+h[ie>>>24&15]+h[ie>>>20&15]+h[ie>>>16&15]+h[ie>>>12&15]+h[ie>>>8&15]+h[ie>>>4&15]+h[ie&15]+h[$>>>28&15]+h[$>>>24&15]+h[$>>>20&15]+h[$>>>16&15]+h[$>>>12&15]+h[$>>>8&15]+h[$>>>4&15]+h[$&15]+h[j>>>28&15]+h[j>>>24&15]+h[j>>>20&15]+h[j>>>16&15]+h[j>>>12&15]+h[j>>>8&15]+h[j>>>4&15]+h[j&15]),k},ne.prototype.toString=ne.prototype.hex,ne.prototype.digest=function(){this.finalize();var F=this.h0h,H=this.h0l,K=this.h1h,G=this.h1l,Y=this.h2h,X=this.h2l,pe=this.h3h,R=this.h3l,re=this.h4h,fe=this.h4l,Z=this.h5h,O=this.h5l,V=this.h6h,ie=this.h6l,$=this.h7h,j=this.h7l,N=this.bits,k=[F>>>24&255,F>>>16&255,F>>>8&255,F&255,H>>>24&255,H>>>16&255,H>>>8&255,H&255,K>>>24&255,K>>>16&255,K>>>8&255,K&255,G>>>24&255,G>>>16&255,G>>>8&255,G&255,Y>>>24&255,Y>>>16&255,Y>>>8&255,Y&255,X>>>24&255,X>>>16&255,X>>>8&255,X&255,pe>>>24&255,pe>>>16&255,pe>>>8&255,pe&255];return N>=256&&k.push(R>>>24&255,R>>>16&255,R>>>8&255,R&255),N>=384&&k.push(re>>>24&255,re>>>16&255,re>>>8&255,re&255,fe>>>24&255,fe>>>16&255,fe>>>8&255,fe&255,Z>>>24&255,Z>>>16&255,Z>>>8&255,Z&255,O>>>24&255,O>>>16&255,O>>>8&255,O&255),N==512&&k.push(V>>>24&255,V>>>16&255,V>>>8&255,V&255,ie>>>24&255,ie>>>16&255,ie>>>8&255,ie&255,$>>>24&255,$>>>16&255,$>>>8&255,$&255,j>>>24&255,j>>>16&255,j>>>8&255,j&255),k},ne.prototype.array=ne.prototype.digest,ne.prototype.arrayBuffer=function(){this.finalize();var F=this.bits,H=new ArrayBuffer(F/8),K=new DataView(H);return K.setUint32(0,this.h0h),K.setUint32(4,this.h0l),K.setUint32(8,this.h1h),K.setUint32(12,this.h1l),K.setUint32(16,this.h2h),K.setUint32(20,this.h2l),K.setUint32(24,this.h3h),F>=256&&K.setUint32(28,this.h3l),F>=384&&(K.setUint32(32,this.h4h),K.setUint32(36,this.h4l),K.setUint32(40,this.h5h),K.setUint32(44,this.h5l)),F==512&&(K.setUint32(48,this.h6h),K.setUint32(52,this.h6l),K.setUint32(56,this.h7h),K.setUint32(60,this.h7l)),H},ne.prototype.clone=function(){var F=new ne(this.bits,!1);return this.copyTo(F),F},ne.prototype.copyTo=function(F){var H=0,K=["h0h","h0l","h1h","h1l","h2h","h2l","h3h","h3l","h4h","h4l","h5h","h5l","h6h","h6l","h7h","h7l","start","bytes","hBytes","finalized","hashed","lastByteIndex"];for(H=0;H<K.length;++H)F[K[H]]=this[K[H]];for(H=0;H<this.blocks.length;++H)F.blocks[H]=this.blocks[H]};function ce(F,H,K){var G,Y=_(F);if(F=Y[0],Y[1]){for(var X=[],pe=F.length,R=0,re,G=0;G<pe;++G)re=F.charCodeAt(G),re<128?X[R++]=re:re<2048?(X[R++]=192|re>>>6,X[R++]=128|re&63):re<55296||re>=57344?(X[R++]=224|re>>>12,X[R++]=128|re>>>6&63,X[R++]=128|re&63):(re=65536+((re&1023)<<10|F.charCodeAt(++G)&1023),X[R++]=240|re>>>18,X[R++]=128|re>>>12&63,X[R++]=128|re>>>6&63,X[R++]=128|re&63);F=X}F.length>128&&(F=new ne(H,!0).update(F).array());for(var fe=[],Z=[],G=0;G<128;++G){var O=F[G]||0;fe[G]=92^O,Z[G]=54^O}ne.call(this,H,K),this.update(Z),this.oKeyPad=fe,this.inner=!0,this.sharedMemory=K}ce.prototype=new ne,ce.prototype.finalize=function(){if(ne.prototype.finalize.call(this),this.inner){this.inner=!1;var F=this.array();ne.call(this,this.bits,this.sharedMemory),this.update(this.oKeyPad),this.update(F),ne.prototype.finalize.call(this)}},ce.prototype.clone=function(){var F=new ce([],this.bits,!1);this.copyTo(F),F.inner=this.inner;for(var H=0;H<this.oKeyPad.length;++H)F.oKeyPad[H]=this.oKeyPad[H];return F};var oe=M(512);oe.sha512=oe,oe.sha384=M(384),oe.sha512_256=M(256),oe.sha512_224=M(224),oe.sha512.hmac=z(512),oe.sha384.hmac=z(384),oe.sha512_256.hmac=z(256),oe.sha512_224.hmac=z(224),f?e.exports=oe:(s.sha512=oe.sha512,s.sha384=oe.sha384,s.sha512_256=oe.sha512_256,s.sha512_224=oe.sha512_224)})()})(qg)),qg.exports}var wH=EH();const IH=Hd(wH),z3="3.7.7",SH=z3,Eu=typeof Yt.Buffer=="function",bC=typeof TextDecoder=="function"?new TextDecoder:void 0,vC=typeof TextEncoder=="function"?new TextEncoder:void 0,CH="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Rc=Array.prototype.slice.call(CH),yd=(e=>{let t={};return e.forEach((i,a)=>t[i]=a),t})(Rc),OH=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,wn=String.fromCharCode.bind(String),xC=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),G3=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),Q3=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),V3=e=>{let t,i,a,s,c="";const l=e.length%3;for(let f=0;f<e.length;){if((i=e.charCodeAt(f++))>255||(a=e.charCodeAt(f++))>255||(s=e.charCodeAt(f++))>255)throw new TypeError("invalid character found");t=i<<16|a<<8|s,c+=Rc[t>>18&63]+Rc[t>>12&63]+Rc[t>>6&63]+Rc[t&63]}return l?c.slice(0,l-3)+"===".substring(l):c},jv=typeof btoa=="function"?e=>btoa(e):Eu?e=>Yt.Buffer.from(e,"binary").toString("base64"):V3,f1=Eu?e=>Yt.Buffer.from(e).toString("base64"):e=>{let i=[];for(let a=0,s=e.length;a<s;a+=4096)i.push(wn.apply(null,e.subarray(a,a+4096)));return jv(i.join(""))},Sd=(e,t=!1)=>t?G3(f1(e)):f1(e),FH=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?wn(192|t>>>6)+wn(128|t&63):wn(224|t>>>12&15)+wn(128|t>>>6&63)+wn(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return wn(240|t>>>18&7)+wn(128|t>>>12&63)+wn(128|t>>>6&63)+wn(128|t&63)}},TH=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,K3=e=>e.replace(TH,FH),EC=Eu?e=>Yt.Buffer.from(e,"utf8").toString("base64"):vC?e=>f1(vC.encode(e)):e=>jv(K3(e)),Vs=(e,t=!1)=>t?G3(EC(e)):EC(e),wC=e=>Vs(e,!0),BH=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,RH=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),i=t-65536;return wn((i>>>10)+55296)+wn((i&1023)+56320);case 3:return wn((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return wn((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},Y3=e=>e.replace(BH,RH),X3=e=>{if(e=e.replace(/\s+/g,""),!OH.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,i="",a,s;for(let c=0;c<e.length;)t=yd[e.charAt(c++)]<<18|yd[e.charAt(c++)]<<12|(a=yd[e.charAt(c++)])<<6|(s=yd[e.charAt(c++)]),i+=a===64?wn(t>>16&255):s===64?wn(t>>16&255,t>>8&255):wn(t>>16&255,t>>8&255,t&255);return i},Pv=typeof atob=="function"?e=>atob(Q3(e)):Eu?e=>Yt.Buffer.from(e,"base64").toString("binary"):X3,Z3=Eu?e=>xC(Yt.Buffer.from(e,"base64")):e=>xC(Pv(e).split("").map(t=>t.charCodeAt(0))),J3=e=>Z3(W3(e)),_H=Eu?e=>Yt.Buffer.from(e,"base64").toString("utf8"):bC?e=>bC.decode(Z3(e)):e=>Y3(Pv(e)),W3=e=>Q3(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),d1=e=>_H(W3(e)),DH=e=>{if(typeof e!="string")return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},e6=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),t6=function(){const e=(t,i)=>Object.defineProperty(String.prototype,t,e6(i));e("fromBase64",function(){return d1(this)}),e("toBase64",function(t){return Vs(this,t)}),e("toBase64URI",function(){return Vs(this,!0)}),e("toBase64URL",function(){return Vs(this,!0)}),e("toUint8Array",function(){return J3(this)})},n6=function(){const e=(t,i)=>Object.defineProperty(Uint8Array.prototype,t,e6(i));e("toBase64",function(t){return Sd(this,t)}),e("toBase64URI",function(){return Sd(this,!0)}),e("toBase64URL",function(){return Sd(this,!0)})},UH=()=>{t6(),n6()},MH={version:z3,VERSION:SH,atob:Pv,atobPolyfill:X3,btoa:jv,btoaPolyfill:V3,fromBase64:d1,toBase64:Vs,encode:Vs,encodeURI:wC,encodeURL:wC,utob:K3,btou:Y3,decode:d1,isValid:DH,fromUint8Array:Sd,toUint8Array:J3,extendString:t6,extendUint8Array:n6,extendBuiltins:UH},Yo=e=>`${e} is malformed`,r6=e=>`${e} checksum is wrong`,jH=32,IC=32,gd=36,i6=4,SC=58,CC=32,PH=32,OC=Yo("block hash"),NH=Yo("tx id"),$g=Yo("address"),LH=r6("address");function qH(e){return Uint8Array.from(IH.sha512_256.array(e).slice(CC-i6,CC))}function $H(e){if(typeof e!="string")throw new Error(`${$g}: expected string, got ${typeof e}, ${e}`);if(e.length!==SC)throw new Error(`${$g}: expected length ${SC}, got ${e.length}: ${e}`);const t=k3.decode.asBytes(e);if(t.length!==gd)throw new Error(`${$g}: expected byte length ${gd}, got ${t.length}`);const i=new Uint8Array(t.slice(0,gd-i6)),a=new Uint8Array(t.slice(PH,gd)),s=qH(i);if(!zH(s,a))throw new Error(LH);return!0}function HH(e){const t=MH.toUint8Array("3KYSrPgi16Cl3iLu3r+GaeZkBBrgNFbMB60jsrJtTdI=");if(t.length!==IC)throw new Error(`${NH}: expected byte length ${IC}, got ${t.length}`);return!0}function kH(e){const t=k3.decode.asBytes(e);if(t.length!==jH)throw new Error(`${OC}: expected byte length ${OC}, got ${t.length}`);return!0}function zH(e,t){return e.length!==t.length?!1:Array.from(e).every((i,a)=>i===t[a])}const GH=34,h1=34,FC=36,QH=Yo("block hash"),VH=Yo("tx id"),KH=Yo("address");function YH(e){const t=Fh.decode(e);if(t.length!==FC)throw new Error(`${KH}: expected byte length ${FC}, got ${t.length}`);return!0}function XH(e){const t=Fh.decode(e);if(t.length!==h1)throw new Error(`${QH}: expected byte length ${GH}, got ${t.length}`);return!0}function ZH(e){const t=Fh.decode(e);if(t.length!==h1)throw new Error(`${VH}: expected byte length ${h1}, got ${t.length}`);return!0}function JH({polynomial:e,numTables:t}){const i=new Uint32Array(256*t);for(let a=0;a<256;a++){let s=a;s=(s&1)*e^s>>>1,s=(s&1)*e^s>>>1,s=(s&1)*e^s>>>1,s=(s&1)*e^s>>>1,s=(s&1)*e^s>>>1,s=(s&1)*e^s>>>1,s=(s&1)*e^s>>>1,s=(s&1)*e^s>>>1,i[a]=s}for(let a=256;a<i.length;a++){const s=i[a-256];i[a]=i[s&255]^s>>>8}return i}const li=JH({polynomial:3988292384,numTables:8});function WH(){return-1}function ek(e,t){const i=t.byteLength,a=new DataView(t.buffer,t.byteOffset,i);let s=e,c=0;const l=-a.byteOffset&3;for(;c<l&&c<i;c++)s=li[(s^a.getUint8(c))&255]^s>>>8;if(c===i)return s;c=l;let f=i-c;for(;f>=8;c+=8,f-=8){s^=a.getUint32(c,!0);const p=a.getUint32(c+4,!0);s=li[0*256+(p>>>24&255)]^li[1*256+(p>>>16&255)]^li[2*256+(p>>>8&255)]^li[3*256+(p>>>0&255)]^li[4*256+(s>>>24&255)]^li[5*256+(s>>>16&255)]^li[6*256+(s>>>8&255)]^li[7*256+(s>>>0&255)]}for(let p=c;p<i;p++)s=li[(s^a.getUint8(p))&255]^s>>>8;return s}function tk(e){return(e^-1)>>>0}function nk(e){return tk(ek(WH(),e))}const Ao=Error,md=Error,Hg="Unexpected end of buffer",Hs=class Hs{constructor(t){this.initialByte=t}CborInitialByte(t,i){this.initialByte=t<<5|i}static from(t){return new Hs(t)}getInitialByte(){return this.initialByte}getMajorType(){return this.initialByte>>5}getAdditionalInfo(){return this.initialByte&Hs.AdditionalInformationMask}};Hs.IndefiniteLengthBreakByte=255,Hs.AdditionalInformationMask=31;let Da=Hs;var Hi,Gr,qd,Ks,zt,$d,at,a6,o6,s6,Cd,Xn,y1,u6,Od,_c,Dc,Io,g1,So;const En=class En{constructor(t){ji(this,at);ji(this,Hi);ji(this,Gr,0);ji(this,qd,new Array);ji(this,Ks,!1);ji(this,zt);ji(this,$d,0);Oa(this,Hi,new Uint8Array(Yt.Buffer.from(t,"hex"))),Oa(this,zt,{currentKeyOffset:null,frameOffset:0,itemsRead:0,type:null})}readStartArray(){var c;const t=ct(this,at,_c).call(this,4);if(t.getAdditionalInfo()===31)return ct(this,at,Io).call(this,1),ct(this,at,g1).call(this,4),null;const i=ct(this,at,So).call(this),{length:a,bytesRead:s}=ct(c=En,Xn,Od).call(c,t,i);return ct(this,at,Io).call(this,s),ct(this,at,g1).call(this,4,a),a}readTag(){const{tag:t,bytesRead:i}=ct(this,at,u6).call(this);return ct(this,at,Io).call(this,i),Oa(this,Ks,!0),t}readByteString(){var c;const t=ct(this,at,_c).call(this,2);if(t.getAdditionalInfo()===31){const{val:l,encodingLength:f}=ct(this,at,s6).call(this,2);return ct(this,at,Io).call(this,f),ct(this,at,Cd).call(this),l}const i=ct(this,at,So).call(this),{length:a,bytesRead:s}=ct(c=En,Xn,Od).call(c,t,i);return ct(this,at,o6).call(this,s+a),ct(this,at,Io).call(this,s+a),ct(this,at,Cd).call(this),i.slice(s,s+a)}readInt(){const t=ct(this,at,a6).call(this);return ct(this,at,Io).call(this,t.bytesRead),ct(this,at,Cd).call(this),t.signedInt}static ensureReadCapacityInArray(t,i){if(t.length<i)throw new Ao(Hg)}};Hi=new WeakMap,Gr=new WeakMap,qd=new WeakMap,Ks=new WeakMap,zt=new WeakMap,$d=new WeakMap,at=new WeakSet,a6=function(){var i,a;const t=ct(this,at,_c).call(this);switch(t.getMajorType()){case 0:{const{unsignedInt:s,bytesRead:c}=ct(i=En,Xn,Dc).call(i,t,ct(this,at,So).call(this));return{bytesRead:c,signedInt:BigInt(s)}}case 1:{const{unsignedInt:s,bytesRead:c}=ct(a=En,Xn,Dc).call(a,t,ct(this,at,So).call(this));return{bytesRead:c,signedInt:BigInt(-1)-s}}default:throw new md(`Reader type mismatch, expected 0 or 1 but got ${t.getMajorType()}`)}},o6=function(t){if(dt(this,Hi).length-dt(this,Gr)<t)throw new Ao(Hg)},s6=function(t){var f,p,h;const i=ct(this,at,So).call(this);let a=Yt.Buffer.from([]),s=0,c=1,l=ct(f=En,Xn,y1).call(f,i.slice(c),t);for(;l.getInitialByte()!==Da.IndefiniteLengthBreakByte;){const{length:b,bytesRead:v}=ct(p=En,Xn,Od).call(p,l,i.slice(c)),A=v+Number(b);a=Yt.Buffer.concat([a,i.slice(c+(A-b),c+A)]),c+=A,l=ct(h=En,Xn,y1).call(h,i.slice(c),t)}return s=c+1,{encodingLength:s,val:new Uint8Array(a)}},Cd=function(){++dt(this,zt).itemsRead,Oa(this,Ks,!1)},Xn=new WeakSet,y1=function(t,i){En.ensureReadCapacityInArray(t,1);const a=Da.from(t[0]);if(a.getInitialByte()!==Da.IndefiniteLengthBreakByte&&a.getMajorType()!==i)throw new Ao("Indefinite length string contains invalid data item");return a},u6=function(){var s;const t=ct(this,at,_c).call(this,6),{unsignedInt:i,bytesRead:a}=ct(s=En,Xn,Dc).call(s,t,ct(this,at,So).call(this));return{bytesRead:a,tag:Number(i)}},Od=function(t,i){var c;const{unsignedInt:a,bytesRead:s}=ct(c=En,Xn,Dc).call(c,t,i);return{bytesRead:s,length:Number(a)}},_c=function(t){if(dt(this,zt).definiteLength!==void 0&&dt(this,zt).definiteLength-dt(this,zt).itemsRead===0)throw new md("No more data items to read");if(dt(this,Gr)===dt(this,Hi).length)throw dt(this,zt).type===null&&dt(this,zt).definiteLength===void 0&&dt(this,Gr)>0?new md("End of root-level. No more data items to read"):new Ao(Hg);const i=Da.from(dt(this,Hi)[dt(this,Gr)]);switch(dt(this,zt).type){case 2:case 3:if(i.getInitialByte()===Da.IndefiniteLengthBreakByte||i.getMajorType()===dt(this,zt).type&&i.getAdditionalInfo()!==31)break;throw new Ao(`Indefinite length string contains invalid data item, ${i.getMajorType()}`)}if(t&&t!==i.getMajorType())throw new md(`Major type mismatch, expected type ${t} but got ${i.getMajorType()}`);return i},Dc=function(t,i){if((t.getInitialByte()&Da.AdditionalInformationMask)<24)return{bytesRead:1,unsignedInt:BigInt(t.getAdditionalInfo())};switch(t.getAdditionalInfo()){case 24:return En.ensureReadCapacityInArray(i,2),{bytesRead:2,unsignedInt:BigInt(i[1])};case 25:{En.ensureReadCapacityInArray(i,3);const s=Yt.Buffer.from(i.slice(1)).readUInt16BE();return{bytesRead:3,unsignedInt:BigInt(s)}}case 26:{En.ensureReadCapacityInArray(i,5);const s=Yt.Buffer.from(i.slice(1)).readUInt32BE();return{bytesRead:5,unsignedInt:BigInt(s)}}case 27:{En.ensureReadCapacityInArray(i,9);const a=Yt.Buffer.from(i.slice(1,9));let s=BigInt(0);for(const c of a)s=(s<<BigInt(8))+BigInt(c);return{bytesRead:9,unsignedInt:s}}default:throw new Ao("Invalid integer encoding")}},Io=function(t){if(dt(this,Gr)+t>dt(this,Hi).length)throw new Ao("Buffer offset out of bounds");Oa(this,Gr,dt(this,Gr)+t),Oa(this,$d,0)},g1=function(t,i){const a={currentKeyOffset:dt(this,zt).currentKeyOffset,definiteLength:dt(this,zt).definiteLength,frameOffset:dt(this,zt).frameOffset,itemsRead:dt(this,zt).itemsRead,type:dt(this,zt).type};dt(this,qd).push(a),dt(this,zt).type=t,dt(this,zt).definiteLength=i,dt(this,zt).itemsRead=0,dt(this,zt).frameOffset=dt(this,Gr),Oa(this,Ks,!1),dt(this,zt).currentKeyOffset=null},So=function(){return dt(this,Hi).slice(dt(this,Gr))},ji(En,Xn);let p1=En;const rk=r6("address");function ik(e){return c6(Id.decode(e))}function c6(e){const t=new p1(Yt.Buffer.from(e).toString("hex"));t.readStartArray(),t.readTag();const i=t.readByteString();if(Number(t.readInt())!==nk(i))throw new Error(rk);return!0}function ak(e){const t=l1.bech32.decode(e,Number.MAX_SAFE_INTEGER/2),i=l1.bech32.fromWords(t.words);if(!["addr","addr_test","stake","stake_test"].includes(t.prefix))return!1;switch(i[0]>>4){case 0:case 1:case 2:case 3:return i.length===57;case 4:case 5:{if(i.length<=29)return!1;let s=29;const c=Yt.Buffer.from(i),{bytesRead:l}=kg(c.subarray(s));s+=l;const{bytesRead:f}=kg(c.subarray(s));return s+=f,kg(c.subarray(s)),!0}case 6:case 7:return i.length===47;case 14:case 15:return i.length===47;case 8:return c6(new Uint8Array(i));default:throw new Error(Yo("address"))}}const kg=e=>{let t=!0,i=0n,a=0;for(;t&&a<e.length;){const s=e[a];i<<=7n,i|=BigInt(s&127),t=(s&128)!==0,++a}return{bytesRead:a,value:i}};var Ln=(e=>(e[e.EVM=0]="EVM",e[e.CARDANO=1]="CARDANO",e[e.SUBSTRATE=2]="SUBSTRATE",e[e.ALGORAND=3]="ALGORAND",e[e.MINA=4]="MINA",e[e.MIDNIGHT=5]="MIDNIGHT",e[e.AVAIL=6]="AVAIL",e))(Ln||{});function Wr(e,t,i=()=>!0){try{return i(t(e))}catch{return!1}}bi("algorand-address",e=>Wr(e,$H));bi("algorand-blockhash",e=>Wr(e,HH));bi("algorand-txid",e=>Wr(e,kH));bi("mina-address",e=>Wr(e,YH));bi("mina-blockhash",e=>Wr(e,XH));bi("mina-txid",e=>Wr(e,ZH));bi("cardano-address",e=>Wr(e,ik)||Wr(e,ak));bi("ss58",e=>Wr(e,rH.decode));bi("bs58check",e=>Wr(e,Fh.decode));bi("bech32",e=>Wr(e,t=>l1.bech32.decode(t,Number.MAX_SAFE_INTEGER/2)));function _n(e){return w.Transform(e).Decode(t=>t.toLowerCase()).Encode(t=>t.toLowerCase())}function TC(e){return w.Transform(e).Decode(t=>t.toUpperCase()).Encode(t=>t.toUpperCase())}const Ie={Uint256:w.Transform(w.BigInt({maximum:115792089237316195423570985008687907853269984665640564039457584007913129639935n,minimum:0n})).Decode(e=>e.toString()).Encode(e=>BigInt(e)),BlockNumber:e=>w.Unsafe(w.Number(e)),AbsoluteSlotNumber:e=>w.Unsafe(w.Number(e)),EpochNumber:e=>w.Unsafe(w.Number(e)),Algorand:{BlockHash:w.Unsafe(w.String({format:"algorand-blockhash"})),TxHash:w.Unsafe(TC(w.String({format:"algorand-txid"}))),Address:w.Unsafe(TC(w.String({format:"algorand-address"})))},Substrate:{Address:w.Unsafe(w.String({format:"ss58"}))},Avail:{BlockHash:w.Unsafe(_n(w.RegExp(/^0x[a-fA-F0-9]{64}$/))),Address:w.Unsafe(w.String({format:"ss58"}))},Cardano:{BlockHash:w.Unsafe(_n(w.RegExp(/^[a-fA-F0-9]{64}$/))),TxHash:w.Unsafe(_n(w.RegExp(/^[a-fA-F0-9]{64}$/))),Address:w.Unsafe(w.String({format:"cardano-address"})),Credential:w.Unsafe(_n(w.RegExp(/^[a-fA-F0-9]{64}$/))),PoolId:w.Unsafe(_n(w.String())),PolicyId:w.Unsafe(_n(w.RegExp(/^[a-fA-F0-9]{56}$/))),AssetName:w.Unsafe(_n(w.RegExp(/^[a-fA-F0-9]{64}$/))),Cip14Fingerprint:w.Unsafe(w.String()),AmountLovelace:w.Unsafe(w.RegExp(/^\d+$/))},Evm:{BlockHash:w.Unsafe(_n(w.RegExp(/^0x[a-fA-F0-9]{64}$/))),TxHash:w.Unsafe(_n(w.RegExp(/^0x[a-fA-F0-9]{64}$/))),Address:w.Unsafe(_n(w.RegExp(/^0x[a-fA-F0-9]{40}$/))),Selector:w.Unsafe(_n(w.RegExp(/^0x[a-fA-F0-9]{8}$/))),FullSelector:w.Unsafe(_n(w.RegExp(/^0x[a-fA-F0-9]{64}$/))),Signature:w.Unsafe(w.RegExp(/^0x[a-fA-F0-9]{130}$/)),PrivateKey:w.Unsafe(w.RegExp(/^0x[a-fA-F0-9]{64}$/))},Midnight:{BlockHash:w.Unsafe(_n(w.RegExp(/^0x[a-fA-F0-9]{64}$/))),TxHash:w.Unsafe(_n(w.RegExp(/^0x[a-fA-F0-9]{64}$/))),Address:w.Unsafe(_n(w.RegExp(/^[a-fA-F0-9]{181}$/)))},Mina:{BlockHash:w.Unsafe(w.String({format:"mina-blockhash"})),TxHash:w.Unsafe(w.String({format:"mina-txid"})),Address:w.Unsafe(w.String({format:"mina-address"}))},Caip2:w.Unsafe(w.String()),WalletAddress:()=>w.Union(sk),IntervalMs:e=>w.Unsafe(w.Number(e)),IntervalSec:e=>w.Unsafe(w.Number(e)),TimestampMs:e=>w.Unsafe(w.Number(e)),TimestampMsStr:w.Unsafe(w.RegExp(/^\d+$/)),HexString0x:e=>w.Unsafe(w.RegExp(/^0x[a-fA-F0-9]+$/,e)),HexStringNo0x:e=>w.Unsafe(w.RegExp(/^[a-fA-F0-9]+$/,e)),UnknownFormat:w.Unsafe(w.String()),Lowercase:_n(w.String()),TrueOrFalse:w.Transform(w.Union([w.Literal("T"),w.Literal("F")])).Decode(e=>e==="T").Encode(e=>e?"T":"F"),Nullable:(e,t)=>w.Union([e,w.Null()],t),SerializeObjAsJson:()=>w.Transform(w.Unsafe(w.Any())).Decode(e=>JSON.stringify(e)).Encode(e=>JSON.parse(e)),SerializeJsonAsObj:e=>w.Transform(e).Decode(t=>JSON.parse(t)).Encode(t=>JSON.stringify(t)),EvmAbiEvent:w.Unsafe(w.Any())},ok={0:Ie.Evm.Address,1:Ie.Cardano.Address,2:Ie.Substrate.Address,6:Ie.Avail.Address,3:Ie.Algorand.Address,4:Ie.Mina.Address,5:Ie.Midnight.Address},sk=[w.Object({type:w.Literal(0),address:Ie.Evm.Address}),w.Object({type:w.Literal(1),address:Ie.Cardano.Address}),w.Object({type:w.Literal(2),address:Ie.Substrate.Address}),w.Object({type:w.Literal(6),address:Ie.Avail.Address}),w.Object({type:w.Literal(3),address:Ie.Algorand.Address}),w.Object({type:w.Literal(4),address:Ie.Mina.Address}),w.Object({type:w.Literal(5),address:Ie.Midnight.Address})];function Fd(e){return{from:t=>{const i=[];for(const a of e)i.push([a,t.properties[a]]);return i}}}function Ns(e){return{from:t=>Fd(e).from(t)}}const bl=e=>({ok:!0,value:e}),vl=e=>({ok:!1,error:e}),uk={},l6=ck(globalThis,uk);function ck(e,t){return new Proxy(e,{get(i,a,s){return a in t?t[a]:e[a]},set(i,a,s){return a in t&&delete t[a],e[a]=s,!0},deleteProperty(i,a){let s=!1;return a in t&&(delete t[a],s=!0),a in e&&(delete e[a],s=!0),s},ownKeys(i){const a=Reflect.ownKeys(e),s=Reflect.ownKeys(t),c=new Set(s);return[...a.filter(l=>!c.has(l)),...s]},defineProperty(i,a,s){return a in t&&delete t[a],Reflect.defineProperty(e,a,s),!0},getOwnPropertyDescriptor(i,a){return a in t?Reflect.getOwnPropertyDescriptor(t,a):Reflect.getOwnPropertyDescriptor(e,a)},has(i,a){return a in t||a in e}})}const _a=l6.Temporal??new Proxy({},{get:()=>{}});new Set([Intl.Locale,RegExp,_a.Duration,_a.Instant,_a.PlainDate,_a.PlainDateTime,_a.PlainTime,_a.PlainYearMonth,_a.PlainMonthDay,_a.ZonedDateTime,URL,URLSearchParams].filter(e=>e!=null).map(e=>e.prototype));const{Deno:Ad}=l6;typeof(Ad==null?void 0:Ad.noColor)=="boolean"&&Ad.noColor;function*m1(e){return yield{type:"reset",block:e}}function*Nv(e){return yield{type:"shift",block:e}}function lk(){let e=[];return{reducing:!1,push(...t){return e.push(...t)},pop(){return e.pop()}}}function Ro(e){let t=lk();return t.push({method:"next",iterator:e()[Symbol.iterator]()}),Uc(t)}function Uc(e){try{e.reducing=!0;for(let t=e.pop();t;t=e.pop())try{let i=fk(t);if(e.value=i.value,!i.done){let a=i.value;if(a.type==="reset")e.push({...t,method:"next",get value(){return e.value}},{method:"next",iterator:a.block()[Symbol.iterator]()});else{let s=t,c=bd(f=>(e.push({method:"next",iterator:s.iterator,value:f}),Uc(e)));c.tail=bd(f=>{e.push({method:"next",iterator:s.iterator,value:f}),e.reducing||Uc(e)});let l=bd(f=>(e.push({method:"throw",iterator:s.iterator,value:f}),Uc(e)));l.tail=bd(f=>{e.push({method:"throw",iterator:s.iterator,value:f}),e.reducing||Uc(e)}),e.push({method:"next",iterator:a.block(c,l)[Symbol.iterator](),value:void 0})}}}catch(i){let a=e.pop();if(a)e.push({...a,method:"throw",value:i});else throw i}}finally{e.reducing=!1}return e.value}function fk(e){let{iterator:t}=e;if(e.method==="next")return t.next(e.value);{let i=e.value;if(t.throw)return t.throw(i);throw i}}function bd(e){let t=!1,i,a;return(s=>{if(t){if(i)throw i.error;return a}else{t=!0;try{return a=e(s)}catch(c){throw i={error:c},c}}})}function uu(e){return Nv((t,i)=>({[Symbol.iterator]:()=>({next(){return{done:!0,value:e(t,i)}}})}))}function Pd(){return Lv(dk)}function dk(e){return uu(t=>{e.aborted&&t.tail(bl(void 0))})}function BC(e){return Lv(function(i){return Nv(function*(a){let s=yield*m1(function*(){let p=yield*uu(b=>b.tail),h=yield*f.destroy();h.ok?a.tail(p):a.tail(h)}),c=p=>s(bl(p)),l=p=>s(vl(p)),f=i.createChild(function*(){let p=e(c,l);if(typeof p=="function")try{yield*Pd()}finally{p()}else yield*p,yield*Pd()});yield*m1(function*(){let p=yield*f;p.ok||a.tail(p)}),f.enter()})})}function hk(){return Lv(e=>uu(t=>t.tail(bl(e))))}function Lv(e){return{[Symbol.iterator](){let t=!1;return{next(i){return t?{done:!0,value:i}:(t=!0,{done:!1,value:e})},throw(i){throw i}}}}}function xl(e,t,i){let a={};for(let[s,c]of Object.entries(t))a[s]={enumerable:!0,value:c};return Object.create({...i,[Symbol.toStringTag]:e},a)}function pk(e){let t=()=>{let i=e();return t=()=>i,i};return()=>t()}function*yk(){let e,t=new Set;return[yield*m1(function*(){let s=yield*uu(c=>c.tail);e={value:s};for(let c of t)t.delete(c),c(s)}),{[Symbol.iterator](){return e?gk(e.value):uu(s=>{t.add(s.tail)})[Symbol.iterator]()}}]}function gk(e){return{next(){return{done:!0,value:e}}}}function mk(e){let t,i=(c,l)=>{Ro(function*(){let f=RC(yield*e);f.ok?c(f.value):l(f.error)})},a=()=>(t=new Promise((c,l)=>{i(c,l)}),a=()=>t,t);return xl("Task",{},{*[Symbol.iterator](){let c=Ro(()=>e);if(c){let l=RC(c);if(l.ok)return l.value;throw l.error}else return yield*BC(function*(l,f){i(l,f)})},then:(...c)=>a().then(...c),catch:(...c)=>a().catch(...c),finally:(...c)=>a().finally(...c),halt(){let c,l=()=>(c=new Promise((p,h)=>{f(p,h)}),l=()=>c,e.destroy(),c),f=(p,h)=>{Ro(function*(){let{destruction:b}=yield*e;b.ok?p():h(b.error)})};return xl("Future",{},{*[Symbol.iterator](){let p=Ro(()=>e);if(p){if(!p.ok)throw p.error}else yield*BC(function*(h,b){f(h,b),e.destroy()})},then:(...p)=>l().then(...p),catch:(...p)=>l().catch(...p),finally:(...p)=>l().finally(...p)})}})}function RC(e){return e.ok?e.exit.type==="aborted"?vl(Error("halted")):e.exit.type==="crashed"?vl(e.exit.error):e.exit.result:e}let Ak=0;function f6(e){return Ro(function*(){let{operation:t,parent:i}=e,a=new Set,s=Object.create(i??{}),c=[{done:!1,value:_C(void 0)}],l,f=()=>{},[p,h]=yield*yk(),b=yield*uu(B=>{let _=xl("Frame",{id:Ak++,context:s},{createChild(M){let te=f6({operation:M,parent:_.context});return a.add(te),Ro(function*(){yield*te,a.delete(te)}),te},getTask(){let M=mk(_);return _.getTask=()=>M,M},enter(){B.tail(_)},crash(M){return D(M),h},destroy(){return D(),h},[Symbol.iterator]:h[Symbol.iterator]}),D=M=>{_.aborted||(_.aborted=!0,l=M,c.unshift({done:!1,value:vk()}),f())};return _}),v=pk(()=>t()[Symbol.iterator]()),A=c.pop();for(;!A.done;){let B=A.value;try{let _=B(v());if(_.done)c.unshift({done:!0,value:bl(_.value)});else{let D=_.value,M=yield*Nv(function*(te){f=()=>te.tail({type:"interrupted"});try{te.tail({type:"settled",result:yield*D(b)})}catch(z){te.tail({type:"settled",result:vl(z)})}});M.type==="settled"&&(M.result.ok?c.unshift({done:!1,value:_C(M.result.value)}):c.unshift({done:!1,value:bk(M.result.error)}))}}catch(_){c.unshift({done:!0,value:vl(_)})}A=c.pop()}b.exited=!0;let I=A.value,C;I.ok?l?C={type:"crashed",error:l}:b.aborted?C={type:"aborted"}:C={type:"result",result:I}:C={type:"result",result:I};let U=bl(void 0);for(;a.size!==0;)for(let B of[...a].reverse()){let _=yield*B.destroy();_.ok||(U=_)}if(!U.ok)p({ok:!1,error:U.error,exit:C,destruction:U});else if(C.type==="aborted")p({ok:!0,value:void 0,exit:C,destruction:U});else if(C.type==="result"){let{result:B}=C;B.ok?p({ok:!0,value:void 0,exit:C,destruction:U}):p({ok:!1,error:B.error,exit:C,destruction:U})}else p({ok:!1,error:C.error,exit:C,destruction:U})})}const _C=e=>function(i){return i.next(e)},bk=e=>function(i){if(i.throw)return i.throw(e);throw e},vk=e=>function(i){return i.return?i.return(e):{done:!0,value:e}};function*zg(){let e=yield*hk(),[t]=xk(e);return t}function xk(e){let t=Ek(e)?e.frame.createChild(Pd):e??f6({operation:Pd}),i=xl("Scope",{},{frame:t,run(a){if(t.exited){let c=new Error("cannot call run() on a scope that has already been exited");throw c.name="InactiveScopeError",c}let s=t.createChild(a);return s.enter(),Ro(function*(){let c=yield*s;c.ok||(yield*t.crash(c.error))}),s.getTask()},get spawn(){let a=this;return function(c){return{*[Symbol.iterator](){return a.run(c)}}}},get(a){let{key:s,defaultValue:c}=a;return t.context[s]??c},set(a,s){let{key:c}=a;return t.context[c]=s,s},expect(a){let s=i.get(a);if(typeof s>"u"){let c=new Error(a.key);throw c.name="MissingContextError",c}return s},delete(a){let{key:s}=a;return delete t.context[s]},hasOwn(a){return!!Reflect.getOwnPropertyDescriptor(t.context,a.key)}});return t.enter(),[i,t.getTask().halt]}function Ek(e){return!!e&&typeof e.run=="function"}function wk(e,t){let i=xl("Context",{key:e},{defaultValue:t,*get(){return(yield*zg()).get(i)},*set(s){return(yield*zg()).set(i,s)},expect:a,*with(s,c){let l=yield*zg(),f=l.hasOwn(i)?l.get(i):void 0;try{return yield*c(l.set(i,s))}finally{typeof f>"u"?l.delete(i):l.set(i,f)}},[Symbol.iterator](){return console.warn(`⚠️ using a context (${e}) directly as an operation is deprecated. Use context.expect() instead`),i[Symbol.iterator]=a,a()}});function*a(){let s=yield*i.get();if(typeof s>"u")throw new Ik(`missing required context: '${e}'`);return s}return i}class Ik extends Error{constructor(){super(...arguments),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MissingContextError"})}}const Fc={evm:"#4caf50",evmParallel:"#ff9800",cardano:"#2196f3",midnight:"#9c27b0"};function Sk(e){const t={};return e.filter(a=>a.networkType!=="ntp").forEach((a,s)=>{var v,A,I;const c=a.network,l=a.syncProtocol;let f=c.name;c.type==="evm"&&c.chainId?f=`evm_${c.chainId}`:c.type==="evm"&&c.id&&(f=`evm_${c.id}`),t[f]&&(f=`${f}_${s}`);let p;c.type==="evm"?(I=(A=(v=c.rpcUrls)==null?void 0:v.default)==null?void 0:A.http)!=null&&I[0]?p=c.rpcUrls.default.http[0]:l.chainUri&&(p=l.chainUri):c.type==="midnight"&&(p=c.nodeUrl);let h=Fc.evm;c.type==="cardano"?h=Fc.cardano:c.type==="midnight"?h=Fc.midnight:c.name.toLowerCase().includes("arbitrum")?h=Fc.evm:(c.name.toLowerCase().includes("ethereum")||c.name.toLowerCase().includes("l1"))&&(h=Fc.evmParallel);const b={type:c.type.toUpperCase(),name:c.name,blockTime:c.blockTimeMS??void 0,color:h,blocks:[],currentBlock:c.type==="evm"?5e5:1e5,rpcEndpoint:p,latestBlockNumber:0,previousLatestBlockNumber:0,isConnected:!1,protocolName:l.name};t[f]=b}),t}async function Ck(){var e;try{const t=await fetch(h6);if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);const i=await t.json(),a=Sk(i);return{Paima:{type:"EVM",name:"Paima Engine",blockTime:((e=i.find(c=>c.syncProtocol.name==="mainNtp"))==null?void 0:e.network.blockTimeMS)??1e3,color:"#667eea",blocks:[],currentBlock:1e6,rpcEndpoint:`http://127.0.0.1:${Ve.PAIMA_API_PORT}/rpc/evm`,latestBlockNumber:0,previousLatestBlockNumber:0,isConnected:!1},...a}}catch(t){return console.error("Error fetching chain configs:",t),d6}}const d6={Paima:{type:"EVM",name:"Paima Engine",blockTime:1e3,color:"#667eea",blocks:[],currentBlock:1e6,rpcEndpoint:`http://127.0.0.1:${Ve.PAIMA_API_PORT}/rpc/evm`,latestBlockNumber:0,previousLatestBlockNumber:0,isConnected:!1},evmMain:{type:"EVM",name:"Arbitrum",blockTime:300,color:"#4caf50",blocks:[],currentBlock:5e5,rpcEndpoint:"http://127.0.0.1:8545/rpc/evm",latestBlockNumber:0,previousLatestBlockNumber:0,isConnected:!1},evmParallel:{type:"EVM",name:"Ethereum L1",blockTime:12e3,color:"#ff9800",blocks:[],currentBlock:75e4,rpcEndpoint:"http://127.0.0.1:8546/rpc/evm",latestBlockNumber:0,previousLatestBlockNumber:0,isConnected:!1},cardano:{type:"Cardano",name:"Cardano",blockTime:2e4,color:"#2196f3",blocks:[],currentBlock:3e5},midnight:{type:"Midnight",name:"Midnight",blockTime:6e3,color:"#9c27b0",blocks:[],currentBlock:15e4}},h6=`http://127.0.0.1:${Ve.PAIMA_API_PORT}/config`,Ok=`http://127.0.0.1:${Ve.PAIMA_API_PORT}/block-heights`,Fk=`http://127.0.0.1:${Ve.PAIMA_API_PORT}/primitives`,DC=`http://127.0.0.1:${Ve.PAIMA_API_PORT}/tables`,Tk=`http://127.0.0.1:${Ve.PAIMA_API_PORT}/grammar`,Bk=`http://127.0.0.1:${Ve.PAIMA_API_PORT}/scheduled-data`,Rk=`http://127.0.0.1:${Ve.PAIMA_API_PORT}/primitives-schema`,_k=`http://127.0.0.1:${Ve.PAIMA_API_PORT}/table-schema`,Dk=`http://127.0.0.1:${Ve.PAIMA_API_PORT}/sync-protocols`,p6=`http://localhost:${Ve.BATCHER_PORT}/send-input`,UC=`http://localhost:${Ve.BATCHER_PORT}/documentation`,MC=`http://localhost:${Ve.PAIMA_API_PORT}/documentation`,jC="https://acedward.github.io/paima-v-next-docs/",Uk=`http://127.0.0.1:${Ve.PAIMA_API_PORT}/addresses`;function qv(e){return Object.fromEntries(Object.entries(e).map(([i,a])=>{const s=a.map(([l,f])=>f),c=w.Tuple([w.Literal(i),...s]);return[i,c]}))}function bo(e){return["userAddress",ok[e]]}const vo=[["userSignature",w.String()],["gameInput",w.String()],["millisecondTimestamp",w.String()]],Mk={[`${Ln.EVM}`]:[bo(Ln.EVM),...vo],[`${Ln.CARDANO}`]:[bo(Ln.CARDANO),...vo],[`${Ln.SUBSTRATE}`]:[bo(Ln.SUBSTRATE),...vo],[`${Ln.AVAIL}`]:[bo(Ln.AVAIL),...vo],[`${Ln.ALGORAND}`]:[bo(Ln.ALGORAND),...vo],[`${Ln.MINA}`]:[bo(Ln.MINA),...vo],[`${Ln.MIDNIGHT}`]:[bo(Ln.MIDNIGHT),...vo]};qv(Mk);const jk={batcherInput:"&B"},Pk={[jk.batcherInput]:[["input",w.Array(w.String())]]};qv(Pk);const Gg={createAccount:"&createAccount",linkAddress:"&linkAddress",unlinkAddress:"&unlinkAddress"},Nk={[Gg.createAccount]:[],[Gg.linkAddress]:[["account_id",w.Number()],["signature_from_primary",w.String()],["new_address",w.String()],["signature_from_new_address",w.String()],["is_new_primary",w.Boolean()]],[Gg.unlinkAddress]:[["account_id",w.Number()],["signature_from_primary",w.String()],["account_address",w.String()],["new_primary",w.String()]]};qv(Nk);class mn{constructor(t){this.config=t,this.allProperties=i=>w.Intersect([this.config.required,i?this.config.optional:w.Partial(this.config.optional)]),this.defaultProperties=()=>r9(this.config.optional,{}),this.cloneMerge=i=>{const a=i instanceof mn?i.config:i;return new mn({required:w.Object({...this.config.required.properties,...a.required.properties}),optional:w.Object({...this.config.optional.properties,...a.optional.properties})})},this.allProperties.bind(this),this.defaultProperties.bind(this),this.cloneMerge.bind(this)}}var Ut=(e=>(e.NTP="ntp",e.EVM="evm",e.CARDANO="cardano",e.MINA="mina",e.ALGORAND="algorand",e.SUBSTRATE="substrate",e.AVAIL="avail",e.MIDNIGHT="midnight",e))(Ut||{});const PC=w.Object({name:w.String(),url:w.String(),apiUrl:w.Optional(w.String())}),Lk=w.Object({http:w.Array(w.String()),webSocket:w.Optional(w.Array(w.String()))}),NC=w.Unsafe(Lk),qk=w.Object({name:w.String(),symbol:w.String({minLength:2,maxLength:6}),decimals:w.Number()}),$k=new mn({required:w.Object({name:w.String(),type:w.Literal(Ut.EVM),chainId:w.Number(),nativeCurrency:qk,rpcUrls:w.Intersect([w.Record(w.String(),NC),w.Object({default:NC})])}),optional:w.Object({blockExplorers:Ie.Nullable(w.Intersect([w.Record(w.String(),PC),w.Object({default:PC})]),{default:null}),sourceId:Ie.Nullable(w.Number(),{default:null}),testnet:w.Boolean({default:!1})})}),Hk=w.Union([w.Literal("preview"),w.Literal("preprod"),w.Literal("mainnet"),w.Literal("yaci")]),kk=new mn({required:w.Object({name:w.String(),type:w.Literal(Ut.CARDANO),network:Hk}),optional:w.Object({})}),zk=new mn({required:w.Object({name:w.String(),type:w.Literal(Ut.MINA),networkId:w.String()}),optional:w.Object({})}),$v=Ie.HexString0x({maxLength:66,minLength:66}),Gk=new mn({required:w.Object({name:w.String(),type:w.Literal(Ut.SUBSTRATE),genesisHash:$v}),optional:w.Object({})}),Qk=new mn({required:w.Object({name:w.String(),type:w.Literal(Ut.AVAIL),genesisHash:$v}),optional:w.Object({})}),Vk=new mn({required:w.Object({name:w.String(),type:w.Literal(Ut.MIDNIGHT),networkId:w.Number(),genesisHash:$v}),optional:w.Object({})});var Tc={},LC;function Kk(){if(LC)return Tc;LC=1,Object.defineProperty(Tc,"__esModule",{value:!0}),Tc.assertNever=e;function e(t,i){if(typeof i=="string")throw new Error(i);if(typeof i=="function")throw new Error(i(t));if(i)return t;throw new Error("Unhandled discriminated union member: ".concat(JSON.stringify(t)))}return Tc.default=e,Tc}Kk();const Yk=w.RegExp("^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"),Xk=new mn({required:w.Object({name:w.String(),type:w.Literal(Ut.ALGORAND),genesisHash:Yk}),optional:w.Object({})});w.Object({name:w.String(),url:w.String(),apiUrl:w.Optional(w.String())});const Zk=w.Object({http:w.Array(w.String()),webSocket:w.Optional(w.Array(w.String()))});w.Unsafe(Zk);w.Object({name:w.String(),symbol:w.String({minLength:2,maxLength:6}),decimals:w.Number()});const Jk=new mn({required:w.Object({name:w.String(),type:w.Literal(Ut.NTP),startTime:w.Number(),blockTimeMS:w.Number()}),optional:w.Object({servers:w.Array(w.String())})});Ut.NTP+"",Ut.EVM+"",Ut.CARDANO+"",Ut.MINA+"",Ut.AVAIL+"",Ut.ALGORAND+"",Ut.MIDNIGHT+"",Ut.SUBSTRATE+"";var Je=(e=>(e.NTP_MAIN="ntp-main",e.EVM_RPC_PARALLEL="evm-rpc-parallel",e.CARDANO_CARP_PARALLEL="cardano-carp-parallel",e.CARDANO_UTXORPC_PARALLEL="cardano-utxorpc-parallel",e.MINA_PARALLEL="mina-sql-parallel",e.AVAIL_PARALLEL="avail-rpc-parallel",e.MIDNIGHT_PARALLEL="midnight-graphql-parallel",e))(Je||{});Ut.NTP,Ut.EVM,Ut.CARDANO,Ut.CARDANO,Ut.MINA,Ut.AVAIL,Ut.MIDNIGHT;const mr=new mn({required:w.Object({name:w.String()}),optional:w.Object({})}),wu=new mn({required:w.Object({pollingInterval:Ie.IntervalMs()}),optional:w.Object({})}),ta=new mn({required:w.Object({startBlockHeight:Ie.BlockNumber()}),optional:w.Object({stopBlockHeight:Ie.Nullable(Ie.BlockNumber(),{default:null})})}),Th=new mn({required:w.Object({startSlot:Ie.AbsoluteSlotNumber()}),optional:w.Object({stopSlot:Ie.Nullable(Ie.AbsoluteSlotNumber(),{default:null})})});new mn({required:w.Object({startTimestamp:Ie.TimestampMs()}),optional:w.Object({stopTimestamp:Ie.Nullable(Ie.TimestampMs(),{default:null})})});const Wk=new mn({required:w.Object({abi:Ie.EvmAbiEvent}),optional:w.Object({})}),ez=e=>w.Number({default:e}),tz=e=>Ie.IntervalMs({default:e});function Gl(e,t,i={}){let a=e*t;return i.factor!=null&&(a*=i.factor),i.absolute!=null&&(a+=i.absolute),{confirmationDepth:ez(e),delayMs:tz(a)}}const Iu={internal:{},payload:{mainchain:w.Object({blockNumber:Ie.Nullable(Ie.BlockNumber()),timestamp:Ie.Nullable(Ie.TimestampMs())})}};function Xo(...e){return w.Object({internal:w.Object(Object.assign({},...e.map(t=>t.internal))),payload:w.Object(Object.assign({},...e.map(t=>t.payload)))})}const nz=mr.cloneMerge(wu).cloneMerge(ta).cloneMerge({required:w.Object({chainUri:w.String()}),optional:w.Object({stepSize:w.Number({default:1e3})})}),rz={internal:{},payload:{primitiveName:w.String(),caip2:Ie.Caip2,ownChain:w.Object({blockNumber:Ie.BlockNumber()}),transactionHash:Ie.Evm.TxHash,transactionIndex:w.Number(),logIndex:w.Number(),contractAddress:Ie.Evm.Address}},iz=nz.cloneMerge({required:w.Object({type:w.Literal(Je.EVM_RPC_PARALLEL),confirmationDepth:w.Number()}),optional:w.Object({delayMs:Ie.IntervalMs({default:2*1e3})})}),az=Xo(Iu,rz);w.Unsafe(w.String());const oz=Ie.SerializeObjAsJson(),sz=mr.cloneMerge(wu).cloneMerge(Th).cloneMerge({required:w.Object({name:w.String(),carpUrl:w.String()}),optional:w.Object({stepSize:w.Number({default:1e3}),paginationLimit:w.Number({default:50})})}),uz={internal:{cursor:oz},payload:{primitiveName:w.String(),caip2:Ie.Caip2,ownChain:w.Object({absoluteSlotNumber:Ie.AbsoluteSlotNumber()}),transactionHash:Ie.Cardano.TxHash}},cz=20*1e3,lz=5,fz=sz.cloneMerge({required:w.Object({type:w.Literal(Je.CARDANO_CARP_PARALLEL)}),optional:w.Object({...Gl(lz,cz,{factor:2,absolute:0})})}),dz=Xo(Iu,uz),hz=Ie.Mina.TxHash,pz=mr.cloneMerge(wu).cloneMerge(ta).cloneMerge({required:w.Object({name:w.String(),archiveConnectionString:w.String()}),optional:w.Object({stepSize:w.Number({default:1e3}),paginationLimit:w.Number({default:50})})}),yz={internal:{cursor:hz},payload:{primitiveName:w.String(),caip2:Ie.Caip2,ownChain:w.Object({blockNumber:Ie.BlockNumber()}),transactionHash:Ie.Mina.TxHash,contractAddress:Ie.Mina.Address}},gz=180*1e3,mz=2,Az=pz.cloneMerge({required:w.Object({type:w.Literal(Je.MINA_PARALLEL)}),optional:w.Object({...Gl(mz,gz,{factor:2,absolute:0})})}),bz=Xo(Iu,yz),vz=mr.cloneMerge(wu).cloneMerge(ta).cloneMerge({required:w.Object({name:w.String(),rpc:w.String(),lightClient:w.String()}),optional:w.Object({blockGroupSize:w.Number({default:100}),stepSize:w.Number({default:1e3})})}),xz={internal:{},payload:{primitiveName:w.String(),caip2:Ie.Caip2,ownChain:w.Object({blockNumber:Ie.BlockNumber()}),extrinsicIndex:w.Number()}},qC=20*1e3,Ez=3,wz=vz.cloneMerge({required:w.Object({type:w.Literal(Je.AVAIL_PARALLEL)}),optional:w.Object({...Gl(Ez,qC,{absolute:qC})})}),Iz=Xo(Iu,xz),Sz=mr.cloneMerge(wu).cloneMerge(ta).cloneMerge({required:w.Object({indexer:w.String()}),optional:w.Object({indexerWS:Ie.Nullable(w.String(),{default:null}),stepSize:w.Number({default:1e3}),paginationLimit:w.Number({default:50})})}),Cz={internal:{},payload:{primitiveName:w.String(),caip2:Ie.Caip2,ownChain:w.Object({blockNumber:Ie.BlockNumber()}),transactionHash:Ie.Midnight.TxHash}},Oz=6*1e3,Fz=3,Tz=Sz.cloneMerge({required:w.Object({type:w.Literal(Je.MIDNIGHT_PARALLEL)}),optional:w.Object({...Gl(Fz,Oz,{absolute:2*1e3})})}),Bz=Xo(Iu,Cz),Rz=mr.cloneMerge(Th).cloneMerge({required:w.Object({name:w.String(),rpcUrl:w.String()}),optional:w.Object({})}),_z={internal:{},payload:{primitiveName:w.String(),caip2:Ie.Caip2,ownChain:w.Object({absoluteSlotNumber:Ie.AbsoluteSlotNumber()}),transactionHash:Ie.Cardano.TxHash}},Dz=20*1e3,Uz=5,Mz=Rz.cloneMerge({required:w.Object({type:w.Literal(Je.CARDANO_UTXORPC_PARALLEL)}),optional:w.Object({...Gl(Uz,Dz,{factor:2,absolute:0})})}),jz=Xo(Iu,_z);var Hv=(e=>(e.EMULATED="emulated",e))(Hv||{});const Pz=new mn({required:w.Object({name:w.String(),blockTimeMs:Ie.IntervalMs(),type:w.Literal(Hv.EMULATED)}),optional:w.Object({})});Hv.EMULATED+"";const Nz=mr.cloneMerge(wu).cloneMerge(ta).cloneMerge({required:w.Object({}),optional:w.Object({stepSize:w.Number({default:1e3})})}),Lz={internal:{},payload:{ownChain:w.Object({blockNumber:Ie.BlockNumber()})}},qz=Nz.cloneMerge({required:w.Object({type:w.Literal(Je.NTP_MAIN)}),optional:w.Object({})}),$z=Xo(Lz);Je.NTP_MAIN+"";Je.EVM_RPC_PARALLEL+"",Je.CARDANO_CARP_PARALLEL+"",Je.CARDANO_UTXORPC_PARALLEL+"",Je.MINA_PARALLEL+"",Je.AVAIL_PARALLEL+"",Je.MIDNIGHT_PARALLEL+"";const Hz={[Je.NTP_MAIN]:$z,[Je.EVM_RPC_PARALLEL]:az,[Je.CARDANO_CARP_PARALLEL]:dz,[Je.CARDANO_UTXORPC_PARALLEL]:jz,[Je.MINA_PARALLEL]:bz,[Je.AVAIL_PARALLEL]:Iz,[Je.MIDNIGHT_PARALLEL]:Bz};function kz(e,t){return w.Intersect([t,w.Object({name:w.String(),type:w.Literal(e)})])}Object.entries(Hz).map(([e,t])=>kz(e,t));var je=(e=>(e.EvmRpcGeneric="evm-rpc-generic",e.EvmRpcPaimaL2="evm-rpc-paima-l2",e.EvmRpcERC20="evm-rpc-erc20",e.EvmRpcERC721="evm-rpc-erc721",e.EvmRpcERC6551Registry="evm-rpc-erc6551-registry",e.EvmRpcERC1155="evm-rpc-erc1155",e.EvmRpcDynamicPrimitive="evm-rpc-dynamic-primitive",e.CardanoUtxorpcMatchTx="cardano-utxorpc-match-tx",e.CardanoCarpDelegation="carp-stake-delegation",e.CardanoCarpProjectedNFT="carp-projected-nft",e.CardanoCarpDelayedAsset="carp-delayed-asset",e.CardanoCarpTransfer="carp-transfer",e.CardanoCarpMintBurn="carp-mint-burn",e.MinaEventGeneric="mina-event-generic",e.MinaActionGeneric="mina-action-generic",e.MidnightContractState="midnight-contract-state",e.AvailPaimaL2="avail-paima-l2",e))(je||{});Je.AVAIL_PARALLEL;Je.CARDANO_CARP_PARALLEL,Je.CARDANO_CARP_PARALLEL,Je.CARDANO_CARP_PARALLEL,Je.CARDANO_CARP_PARALLEL,Je.CARDANO_CARP_PARALLEL;Je.CARDANO_UTXORPC_PARALLEL;Je.EVM_RPC_PARALLEL,Je.EVM_RPC_PARALLEL,Je.EVM_RPC_PARALLEL,Je.EVM_RPC_PARALLEL,Je.EVM_RPC_PARALLEL,Je.EVM_RPC_PARALLEL,Je.EVM_RPC_PARALLEL;Je.MINA_PARALLEL,Je.MINA_PARALLEL;Je.MIDNIGHT_PARALLEL;const Zo=mr.cloneMerge(ta).cloneMerge(Wk);Zo.cloneMerge({required:w.Object({type:w.Literal(je.EvmRpcPaimaL2),contractAddress:Ie.Evm.Address}),optional:w.Object({})});Zo.cloneMerge({required:w.Object({type:w.Literal(je.EvmRpcERC20),contractAddress:Ie.Evm.Address}),optional:w.Object({scheduledPrefix:w.String()})});const zz=Zo.cloneMerge({required:w.Object({type:w.Literal(je.EvmRpcERC721),contractAddress:Ie.Evm.Address,scheduledPrefix:w.String(),burnScheduledPrefix:w.Optional(w.String())}),optional:w.Object({})});Zo.cloneMerge({required:w.Object({type:w.Literal(je.EvmRpcERC1155),contractAddress:Ie.Evm.Address,scheduledPrefix:w.Optional(w.String()),burnScheduledPrefix:w.Optional(w.String())}),optional:w.Object({})});const Gz=Zo.cloneMerge({required:w.Object({type:w.Literal(je.EvmRpcGeneric),contractAddress:Ie.Evm.Address,abi:Ie.EvmAbiEvent,scheduledPrefix:w.String()}),optional:w.Object({})});Zo.cloneMerge({required:w.Object({type:w.Literal(je.EvmRpcERC6551Registry),contractAddress:w.Optional(Ie.Evm.Address),implementation:w.Optional(Ie.Evm.Address),tokenContract:w.Optional(Ie.Evm.Address),tokenId:w.Optional(Ie.Uint256),salt:w.Optional(Ie.Uint256)}),optional:w.Object({})});Zo.cloneMerge({required:w.Object({type:w.Literal(je.EvmRpcDynamicPrimitive),contractAddress:Ie.Evm.Address,abi:Ie.EvmAbiEvent,targetConfig:w.Union([w.Omit(zz.allProperties(!1),["name","startBlockHeight","stopBlockHeight","contractAddress"]),w.Omit(Gz.allProperties(!1),["name","startBlockHeight","stopBlockHeight","contractAddress"])]),dynamicFields:w.Object({contractAddress:Ie.Evm.Address})}),optional:w.Object({})});const Ql=mr.cloneMerge(Th);Ql.cloneMerge({required:w.Object({type:w.Literal(je.CardanoCarpDelegation),pools:w.Array(Ie.Cardano.PoolId),scheduledPrefix:w.String()}),optional:w.Object({})});Ql.cloneMerge({required:w.Object({type:w.Literal(je.CardanoCarpProjectedNFT),scheduledPrefix:w.Optional(w.String())}),optional:w.Object({})});Ql.cloneMerge({required:w.Object({type:w.Literal(je.CardanoCarpDelayedAsset),fingerprints:w.Optional(w.Array(Ie.Cardano.Cip14Fingerprint)),policyIds:w.Optional(w.Array(Ie.Cardano.PolicyId))}),optional:w.Object({})});Ql.cloneMerge({required:w.Object({type:w.Literal(je.CardanoCarpTransfer),credential:Ie.Cardano.Credential,scheduledPrefix:w.String()}),optional:w.Object({})});Ql.cloneMerge({required:w.Object({type:w.Literal(je.CardanoCarpMintBurn),policyIds:w.Array(Ie.Cardano.PolicyId),scheduledPrefix:w.String()}),optional:w.Object({})});const Qz=mr.cloneMerge(Th);Qz.cloneMerge({required:w.Object({type:w.Literal(je.CardanoUtxorpcMatchTx),scheduledPrefix:w.String()}),optional:w.Object({})});const y6=mr.cloneMerge(ta);y6.cloneMerge({required:w.Object({type:w.Literal(je.MinaEventGeneric),address:Ie.Mina.Address,scheduledPrefix:w.String(),name:w.String()}),optional:w.Object({})});y6.cloneMerge({required:w.Object({type:w.Literal(je.MinaActionGeneric),address:Ie.Mina.Address,scheduledPrefix:w.String(),name:w.String()}),optional:w.Object({})});const Vz=mr.cloneMerge(ta);Vz.cloneMerge({required:w.Object({type:w.Literal(je.MidnightContractState),contractAddress:Ie.Midnight.Address,scheduledPrefix:w.String()}),optional:w.Object({})});const Kz=mr.cloneMerge(ta);Kz.cloneMerge({required:w.Object({type:w.Literal(je.AvailPaimaL2),contractAddress:Ie.Avail.Address,appId:w.Number()}),optional:w.Object({})});var Jt=(e=>(e.Transfer="Transfer",e.PaimaL2Event="PaimaGameInteraction",e.Deposit="deposit",e.Mint="mint",e.MintOrBurn="mint-or-burn",e.Event="event",e.Registry="registry",e.Delegate="delegate",e.Projection="projection",e))(Jt||{});const Yz=w.Object({inputData:Ie.UnknownFormat,suppliedValue:Ie.Uint256,inputNonce:Ie.HexString0x()});w.Object({primitive:w.Literal(je.AvailPaimaL2),payloadType:w.Literal(Jt.Event),payload:Yz});var xo={},qi={},vd={exports:{}},Qg,$C;function g6(){return $C||($C=1,Qg=function(t,i){return function(){for(var s=new Array(arguments.length),c=0;c<s.length;c++)s[c]=arguments[c];return t.apply(i,s)}}),Qg}var Vg,HC;function Fn(){if(HC)return Vg;HC=1;var e=g6(),t=Object.prototype.toString,i=(function(R){return function(re){var fe=t.call(re);return R[fe]||(R[fe]=fe.slice(8,-1).toLowerCase())}})(Object.create(null));function a(R){return R=R.toLowerCase(),function(fe){return i(fe)===R}}function s(R){return Array.isArray(R)}function c(R){return typeof R>"u"}function l(R){return R!==null&&!c(R)&&R.constructor!==null&&!c(R.constructor)&&typeof R.constructor.isBuffer=="function"&&R.constructor.isBuffer(R)}var f=a("ArrayBuffer");function p(R){var re;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?re=ArrayBuffer.isView(R):re=R&&R.buffer&&f(R.buffer),re}function h(R){return typeof R=="string"}function b(R){return typeof R=="number"}function v(R){return R!==null&&typeof R=="object"}function A(R){if(i(R)!=="object")return!1;var re=Object.getPrototypeOf(R);return re===null||re===Object.prototype}var I=a("Date"),C=a("File"),U=a("Blob"),B=a("FileList");function _(R){return t.call(R)==="[object Function]"}function D(R){return v(R)&&_(R.pipe)}function M(R){var re="[object FormData]";return R&&(typeof FormData=="function"&&R instanceof FormData||t.call(R)===re||_(R.toString)&&R.toString()===re)}var te=a("URLSearchParams");function z(R){return R.trim?R.trim():R.replace(/^\s+|\s+$/g,"")}function ne(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function ce(R,re){if(!(R===null||typeof R>"u"))if(typeof R!="object"&&(R=[R]),s(R))for(var fe=0,Z=R.length;fe<Z;fe++)re.call(null,R[fe],fe,R);else for(var O in R)Object.prototype.hasOwnProperty.call(R,O)&&re.call(null,R[O],O,R)}function oe(){var R={};function re(O,V){A(R[V])&&A(O)?R[V]=oe(R[V],O):A(O)?R[V]=oe({},O):s(O)?R[V]=O.slice():R[V]=O}for(var fe=0,Z=arguments.length;fe<Z;fe++)ce(arguments[fe],re);return R}function F(R,re,fe){return ce(re,function(O,V){fe&&typeof O=="function"?R[V]=e(O,fe):R[V]=O}),R}function H(R){return R.charCodeAt(0)===65279&&(R=R.slice(1)),R}function K(R,re,fe,Z){R.prototype=Object.create(re.prototype,Z),R.prototype.constructor=R,fe&&Object.assign(R.prototype,fe)}function G(R,re,fe){var Z,O,V,ie={};re=re||{};do{for(Z=Object.getOwnPropertyNames(R),O=Z.length;O-- >0;)V=Z[O],ie[V]||(re[V]=R[V],ie[V]=!0);R=Object.getPrototypeOf(R)}while(R&&(!fe||fe(R,re))&&R!==Object.prototype);return re}function Y(R,re,fe){R=String(R),(fe===void 0||fe>R.length)&&(fe=R.length),fe-=re.length;var Z=R.indexOf(re,fe);return Z!==-1&&Z===fe}function X(R){if(!R)return null;var re=R.length;if(c(re))return null;for(var fe=new Array(re);re-- >0;)fe[re]=R[re];return fe}var pe=(function(R){return function(re){return R&&re instanceof R}})(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array));return Vg={isArray:s,isArrayBuffer:f,isBuffer:l,isFormData:M,isArrayBufferView:p,isString:h,isNumber:b,isObject:v,isPlainObject:A,isUndefined:c,isDate:I,isFile:C,isBlob:U,isFunction:_,isStream:D,isURLSearchParams:te,isStandardBrowserEnv:ne,forEach:ce,merge:oe,extend:F,trim:z,stripBOM:H,inherits:K,toFlatObject:G,kindOf:i,kindOfTest:a,endsWith:Y,toArray:X,isTypedArray:pe,isFileList:B},Vg}var Kg,kC;function m6(){if(kC)return Kg;kC=1;var e=Fn();function t(i){return encodeURIComponent(i).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}return Kg=function(a,s,c){if(!s)return a;var l;if(c)l=c(s);else if(e.isURLSearchParams(s))l=s.toString();else{var f=[];e.forEach(s,function(b,v){b===null||typeof b>"u"||(e.isArray(b)?v=v+"[]":b=[b],e.forEach(b,function(I){e.isDate(I)?I=I.toISOString():e.isObject(I)&&(I=JSON.stringify(I)),f.push(t(v)+"="+t(I))}))}),l=f.join("&")}if(l){var p=a.indexOf("#");p!==-1&&(a=a.slice(0,p)),a+=(a.indexOf("?")===-1?"?":"&")+l}return a},Kg}var Yg,zC;function Xz(){if(zC)return Yg;zC=1;var e=Fn();function t(){this.handlers=[]}return t.prototype.use=function(a,s,c){return this.handlers.push({fulfilled:a,rejected:s,synchronous:c?c.synchronous:!1,runWhen:c?c.runWhen:null}),this.handlers.length-1},t.prototype.eject=function(a){this.handlers[a]&&(this.handlers[a]=null)},t.prototype.forEach=function(a){e.forEach(this.handlers,function(c){c!==null&&a(c)})},Yg=t,Yg}var Xg,GC;function Zz(){if(GC)return Xg;GC=1;var e=Fn();return Xg=function(i,a){e.forEach(i,function(c,l){l!==a&&l.toUpperCase()===a.toUpperCase()&&(i[a]=c,delete i[l])})},Xg}var Zg,QC;function Su(){if(QC)return Zg;QC=1;var e=Fn();function t(s,c,l,f,p){Error.call(this),this.message=s,this.name="AxiosError",c&&(this.code=c),l&&(this.config=l),f&&(this.request=f),p&&(this.response=p)}e.inherits(t,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var i=t.prototype,a={};return["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(s){a[s]={value:s}}),Object.defineProperties(t,a),Object.defineProperty(i,"isAxiosError",{value:!0}),t.from=function(s,c,l,f,p,h){var b=Object.create(i);return e.toFlatObject(s,b,function(A){return A!==Error.prototype}),t.call(b,s.message,c,l,f,p),b.name=s.name,h&&Object.assign(b,h),b},Zg=t,Zg}var Jg,VC;function A6(){return VC||(VC=1,Jg={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}),Jg}var Wg,KC;function b6(){if(KC)return Wg;KC=1;var e=Fn();function t(i,a){a=a||new FormData;var s=[];function c(f){return f===null?"":e.isDate(f)?f.toISOString():e.isArrayBuffer(f)||e.isTypedArray(f)?typeof Blob=="function"?new Blob([f]):Yt.Buffer.from(f):f}function l(f,p){if(e.isPlainObject(f)||e.isArray(f)){if(s.indexOf(f)!==-1)throw Error("Circular reference detected in "+p);s.push(f),e.forEach(f,function(b,v){if(!e.isUndefined(b)){var A=p?p+"."+v:v,I;if(b&&!p&&typeof b=="object"){if(e.endsWith(v,"{}"))b=JSON.stringify(b);else if(e.endsWith(v,"[]")&&(I=e.toArray(b))){I.forEach(function(C){!e.isUndefined(C)&&a.append(A,c(C))});return}}l(b,A)}}),s.pop()}else a.append(p,c(f))}return l(i),a}return Wg=t,Wg}var em,YC;function Jz(){if(YC)return em;YC=1;var e=Su();return em=function(i,a,s){var c=s.config.validateStatus;!s.status||!c||c(s.status)?i(s):a(new e("Request failed with status code "+s.status,[e.ERR_BAD_REQUEST,e.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))},em}var tm,XC;function Wz(){if(XC)return tm;XC=1;var e=Fn();return tm=e.isStandardBrowserEnv()?(function(){return{write:function(a,s,c,l,f,p){var h=[];h.push(a+"="+encodeURIComponent(s)),e.isNumber(c)&&h.push("expires="+new Date(c).toGMTString()),e.isString(l)&&h.push("path="+l),e.isString(f)&&h.push("domain="+f),p===!0&&h.push("secure"),document.cookie=h.join("; ")},read:function(a){var s=document.cookie.match(new RegExp("(^|;\\s*)("+a+")=([^;]*)"));return s?decodeURIComponent(s[3]):null},remove:function(a){this.write(a,"",Date.now()-864e5)}}})():(function(){return{write:function(){},read:function(){return null},remove:function(){}}})(),tm}var nm,ZC;function eG(){return ZC||(ZC=1,nm=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),nm}var rm,JC;function tG(){return JC||(JC=1,rm=function(t,i){return i?t.replace(/\/+$/,"")+"/"+i.replace(/^\/+/,""):t}),rm}var im,WC;function v6(){if(WC)return im;WC=1;var e=eG(),t=tG();return im=function(a,s){return a&&!e(s)?t(a,s):s},im}var am,eO;function nG(){if(eO)return am;eO=1;var e=Fn(),t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return am=function(a){var s={},c,l,f;return a&&e.forEach(a.split(`
132
- `),function(h){if(f=h.indexOf(":"),c=e.trim(h.substr(0,f)).toLowerCase(),l=e.trim(h.substr(f+1)),c){if(s[c]&&t.indexOf(c)>=0)return;c==="set-cookie"?s[c]=(s[c]?s[c]:[]).concat([l]):s[c]=s[c]?s[c]+", "+l:l}}),s},am}var om,tO;function rG(){if(tO)return om;tO=1;var e=Fn();return om=e.isStandardBrowserEnv()?(function(){var i=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a"),s;function c(l){var f=l;return i&&(a.setAttribute("href",f),f=a.href),a.setAttribute("href",f),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return s=c(window.location.href),function(f){var p=e.isString(f)?c(f):f;return p.protocol===s.protocol&&p.host===s.host}})():(function(){return function(){return!0}})(),om}var sm,nO;function Bh(){if(nO)return sm;nO=1;var e=Su(),t=Fn();function i(a){e.call(this,a??"canceled",e.ERR_CANCELED),this.name="CanceledError"}return t.inherits(i,e,{__CANCEL__:!0}),sm=i,sm}var um,rO;function iG(){return rO||(rO=1,um=function(t){var i=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return i&&i[1]||""}),um}var cm,iO;function aO(){if(iO)return cm;iO=1;var e=Fn(),t=Jz(),i=Wz(),a=m6(),s=v6(),c=nG(),l=rG(),f=A6(),p=Su(),h=Bh(),b=iG();return cm=function(A){return new Promise(function(C,U){var B=A.data,_=A.headers,D=A.responseType,M;function te(){A.cancelToken&&A.cancelToken.unsubscribe(M),A.signal&&A.signal.removeEventListener("abort",M)}e.isFormData(B)&&e.isStandardBrowserEnv()&&delete _["Content-Type"];var z=new XMLHttpRequest;if(A.auth){var ne=A.auth.username||"",ce=A.auth.password?unescape(encodeURIComponent(A.auth.password)):"";_.Authorization="Basic "+btoa(ne+":"+ce)}var oe=s(A.baseURL,A.url);z.open(A.method.toUpperCase(),a(oe,A.params,A.paramsSerializer),!0),z.timeout=A.timeout;function F(){if(z){var G="getAllResponseHeaders"in z?c(z.getAllResponseHeaders()):null,Y=!D||D==="text"||D==="json"?z.responseText:z.response,X={data:Y,status:z.status,statusText:z.statusText,headers:G,config:A,request:z};t(function(R){C(R),te()},function(R){U(R),te()},X),z=null}}if("onloadend"in z?z.onloadend=F:z.onreadystatechange=function(){!z||z.readyState!==4||z.status===0&&!(z.responseURL&&z.responseURL.indexOf("file:")===0)||setTimeout(F)},z.onabort=function(){z&&(U(new p("Request aborted",p.ECONNABORTED,A,z)),z=null)},z.onerror=function(){U(new p("Network Error",p.ERR_NETWORK,A,z,z)),z=null},z.ontimeout=function(){var Y=A.timeout?"timeout of "+A.timeout+"ms exceeded":"timeout exceeded",X=A.transitional||f;A.timeoutErrorMessage&&(Y=A.timeoutErrorMessage),U(new p(Y,X.clarifyTimeoutError?p.ETIMEDOUT:p.ECONNABORTED,A,z)),z=null},e.isStandardBrowserEnv()){var H=(A.withCredentials||l(oe))&&A.xsrfCookieName?i.read(A.xsrfCookieName):void 0;H&&(_[A.xsrfHeaderName]=H)}"setRequestHeader"in z&&e.forEach(_,function(Y,X){typeof B>"u"&&X.toLowerCase()==="content-type"?delete _[X]:z.setRequestHeader(X,Y)}),e.isUndefined(A.withCredentials)||(z.withCredentials=!!A.withCredentials),D&&D!=="json"&&(z.responseType=A.responseType),typeof A.onDownloadProgress=="function"&&z.addEventListener("progress",A.onDownloadProgress),typeof A.onUploadProgress=="function"&&z.upload&&z.upload.addEventListener("progress",A.onUploadProgress),(A.cancelToken||A.signal)&&(M=function(G){z&&(U(!G||G&&G.type?new h:G),z.abort(),z=null)},A.cancelToken&&A.cancelToken.subscribe(M),A.signal&&(A.signal.aborted?M():A.signal.addEventListener("abort",M))),B||(B=null);var K=b(oe);if(K&&["http","https","file"].indexOf(K)===-1){U(new p("Unsupported protocol "+K+":",p.ERR_BAD_REQUEST,A));return}z.send(B)})},cm}var lm,oO;function aG(){return oO||(oO=1,lm=null),lm}var fm,sO;function kv(){if(sO)return fm;sO=1;var e=Fn(),t=Zz(),i=Su(),a=A6(),s=b6(),c={"Content-Type":"application/x-www-form-urlencoded"};function l(b,v){!e.isUndefined(b)&&e.isUndefined(b["Content-Type"])&&(b["Content-Type"]=v)}function f(){var b;return(typeof XMLHttpRequest<"u"||typeof it<"u"&&Object.prototype.toString.call(it)==="[object process]")&&(b=aO()),b}function p(b,v,A){if(e.isString(b))try{return(v||JSON.parse)(b),e.trim(b)}catch(I){if(I.name!=="SyntaxError")throw I}return(A||JSON.stringify)(b)}var h={transitional:a,adapter:f(),transformRequest:[function(v,A){if(t(A,"Accept"),t(A,"Content-Type"),e.isFormData(v)||e.isArrayBuffer(v)||e.isBuffer(v)||e.isStream(v)||e.isFile(v)||e.isBlob(v))return v;if(e.isArrayBufferView(v))return v.buffer;if(e.isURLSearchParams(v))return l(A,"application/x-www-form-urlencoded;charset=utf-8"),v.toString();var I=e.isObject(v),C=A&&A["Content-Type"],U;if((U=e.isFileList(v))||I&&C==="multipart/form-data"){var B=this.env&&this.env.FormData;return s(U?{"files[]":v}:v,B&&new B)}else if(I||C==="application/json")return l(A,"application/json"),p(v);return v}],transformResponse:[function(v){var A=this.transitional||h.transitional,I=A&&A.silentJSONParsing,C=A&&A.forcedJSONParsing,U=!I&&this.responseType==="json";if(U||C&&e.isString(v)&&v.length)try{return JSON.parse(v)}catch(B){if(U)throw B.name==="SyntaxError"?i.from(B,i.ERR_BAD_RESPONSE,this,null,this.response):B}return v}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:aG()},validateStatus:function(v){return v>=200&&v<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};return e.forEach(["delete","get","head"],function(v){h.headers[v]={}}),e.forEach(["post","put","patch"],function(v){h.headers[v]=e.merge(c)}),fm=h,fm}var dm,uO;function oG(){if(uO)return dm;uO=1;var e=Fn(),t=kv();return dm=function(a,s,c){var l=this||t;return e.forEach(c,function(p){a=p.call(l,a,s)}),a},dm}var hm,cO;function x6(){return cO||(cO=1,hm=function(t){return!!(t&&t.__CANCEL__)}),hm}var pm,lO;function sG(){if(lO)return pm;lO=1;var e=Fn(),t=oG(),i=x6(),a=kv(),s=Bh();function c(l){if(l.cancelToken&&l.cancelToken.throwIfRequested(),l.signal&&l.signal.aborted)throw new s}return pm=function(f){c(f),f.headers=f.headers||{},f.data=t.call(f,f.data,f.headers,f.transformRequest),f.headers=e.merge(f.headers.common||{},f.headers[f.method]||{},f.headers),e.forEach(["delete","get","head","post","put","patch","common"],function(b){delete f.headers[b]});var p=f.adapter||a.adapter;return p(f).then(function(b){return c(f),b.data=t.call(f,b.data,b.headers,f.transformResponse),b},function(b){return i(b)||(c(f),b&&b.response&&(b.response.data=t.call(f,b.response.data,b.response.headers,f.transformResponse))),Promise.reject(b)})},pm}var ym,fO;function E6(){if(fO)return ym;fO=1;var e=Fn();return ym=function(i,a){a=a||{};var s={};function c(v,A){return e.isPlainObject(v)&&e.isPlainObject(A)?e.merge(v,A):e.isPlainObject(A)?e.merge({},A):e.isArray(A)?A.slice():A}function l(v){if(e.isUndefined(a[v])){if(!e.isUndefined(i[v]))return c(void 0,i[v])}else return c(i[v],a[v])}function f(v){if(!e.isUndefined(a[v]))return c(void 0,a[v])}function p(v){if(e.isUndefined(a[v])){if(!e.isUndefined(i[v]))return c(void 0,i[v])}else return c(void 0,a[v])}function h(v){if(v in a)return c(i[v],a[v]);if(v in i)return c(void 0,i[v])}var b={url:f,method:f,data:f,baseURL:p,transformRequest:p,transformResponse:p,paramsSerializer:p,timeout:p,timeoutMessage:p,withCredentials:p,adapter:p,responseType:p,xsrfCookieName:p,xsrfHeaderName:p,onUploadProgress:p,onDownloadProgress:p,decompress:p,maxContentLength:p,maxBodyLength:p,beforeRedirect:p,transport:p,httpAgent:p,httpsAgent:p,cancelToken:p,socketPath:p,responseEncoding:p,validateStatus:h};return e.forEach(Object.keys(i).concat(Object.keys(a)),function(A){var I=b[A]||l,C=I(A);e.isUndefined(C)&&I!==h||(s[A]=C)}),s},ym}var gm,dO;function w6(){return dO||(dO=1,gm={version:"0.27.2"}),gm}var mm,hO;function uG(){if(hO)return mm;hO=1;var e=w6().version,t=Su(),i={};["object","boolean","number","function","string","symbol"].forEach(function(c,l){i[c]=function(p){return typeof p===c||"a"+(l<1?"n ":" ")+c}});var a={};i.transitional=function(l,f,p){function h(b,v){return"[Axios v"+e+"] Transitional option '"+b+"'"+v+(p?". "+p:"")}return function(b,v,A){if(l===!1)throw new t(h(v," has been removed"+(f?" in "+f:"")),t.ERR_DEPRECATED);return f&&!a[v]&&(a[v]=!0,console.warn(h(v," has been deprecated since v"+f+" and will be removed in the near future"))),l?l(b,v,A):!0}};function s(c,l,f){if(typeof c!="object")throw new t("options must be an object",t.ERR_BAD_OPTION_VALUE);for(var p=Object.keys(c),h=p.length;h-- >0;){var b=p[h],v=l[b];if(v){var A=c[b],I=A===void 0||v(A,b,c);if(I!==!0)throw new t("option "+b+" must be "+I,t.ERR_BAD_OPTION_VALUE);continue}if(f!==!0)throw new t("Unknown option "+b,t.ERR_BAD_OPTION)}}return mm={assertOptions:s,validators:i},mm}var Am,pO;function cG(){if(pO)return Am;pO=1;var e=Fn(),t=m6(),i=Xz(),a=sG(),s=E6(),c=v6(),l=uG(),f=l.validators;function p(h){this.defaults=h,this.interceptors={request:new i,response:new i}}return p.prototype.request=function(b,v){typeof b=="string"?(v=v||{},v.url=b):v=b||{},v=s(this.defaults,v),v.method?v.method=v.method.toLowerCase():this.defaults.method?v.method=this.defaults.method.toLowerCase():v.method="get";var A=v.transitional;A!==void 0&&l.assertOptions(A,{silentJSONParsing:f.transitional(f.boolean),forcedJSONParsing:f.transitional(f.boolean),clarifyTimeoutError:f.transitional(f.boolean)},!1);var I=[],C=!0;this.interceptors.request.forEach(function(ne){typeof ne.runWhen=="function"&&ne.runWhen(v)===!1||(C=C&&ne.synchronous,I.unshift(ne.fulfilled,ne.rejected))});var U=[];this.interceptors.response.forEach(function(ne){U.push(ne.fulfilled,ne.rejected)});var B;if(!C){var _=[a,void 0];for(Array.prototype.unshift.apply(_,I),_=_.concat(U),B=Promise.resolve(v);_.length;)B=B.then(_.shift(),_.shift());return B}for(var D=v;I.length;){var M=I.shift(),te=I.shift();try{D=M(D)}catch(z){te(z);break}}try{B=a(D)}catch(z){return Promise.reject(z)}for(;U.length;)B=B.then(U.shift(),U.shift());return B},p.prototype.getUri=function(b){b=s(this.defaults,b);var v=c(b.baseURL,b.url);return t(v,b.params,b.paramsSerializer)},e.forEach(["delete","get","head","options"],function(b){p.prototype[b]=function(v,A){return this.request(s(A||{},{method:b,url:v,data:(A||{}).data}))}}),e.forEach(["post","put","patch"],function(b){function v(A){return function(C,U,B){return this.request(s(B||{},{method:b,headers:A?{"Content-Type":"multipart/form-data"}:{},url:C,data:U}))}}p.prototype[b]=v(),p.prototype[b+"Form"]=v(!0)}),Am=p,Am}var bm,yO;function lG(){if(yO)return bm;yO=1;var e=Bh();function t(i){if(typeof i!="function")throw new TypeError("executor must be a function.");var a;this.promise=new Promise(function(l){a=l});var s=this;this.promise.then(function(c){if(s._listeners){var l,f=s._listeners.length;for(l=0;l<f;l++)s._listeners[l](c);s._listeners=null}}),this.promise.then=function(c){var l,f=new Promise(function(p){s.subscribe(p),l=p}).then(c);return f.cancel=function(){s.unsubscribe(l)},f},i(function(l){s.reason||(s.reason=new e(l),a(s.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.prototype.subscribe=function(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]},t.prototype.unsubscribe=function(a){if(this._listeners){var s=this._listeners.indexOf(a);s!==-1&&this._listeners.splice(s,1)}},t.source=function(){var a,s=new t(function(l){a=l});return{token:s,cancel:a}},bm=t,bm}var vm,gO;function fG(){return gO||(gO=1,vm=function(t){return function(a){return t.apply(null,a)}}),vm}var xm,mO;function dG(){if(mO)return xm;mO=1;var e=Fn();return xm=function(i){return e.isObject(i)&&i.isAxiosError===!0},xm}var AO;function hG(){if(AO)return vd.exports;AO=1;var e=Fn(),t=g6(),i=cG(),a=E6(),s=kv();function c(f){var p=new i(f),h=t(i.prototype.request,p);return e.extend(h,i.prototype,p),e.extend(h,p),h.create=function(v){return c(a(f,v))},h}var l=c(s);return l.Axios=i,l.CanceledError=Bh(),l.CancelToken=lG(),l.isCancel=x6(),l.VERSION=w6().version,l.toFormData=b6(),l.AxiosError=Su(),l.Cancel=l.CanceledError,l.all=function(p){return Promise.all(p)},l.spread=fG(),l.isAxiosError=dG(),vd.exports=l,vd.exports.default=l,vd.exports}var Em,bO;function pG(){return bO||(bO=1,Em=hG()),Em}var vO;function I6(){if(vO)return qi;vO=1;var e=qi&&qi.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(qi,"__esModule",{value:!0}),qi.getErrorResponse=qi.query=void 0;const t=e(pG());async function i(s,c,l){return(await t.default.post(`${s}/${c}`,l)).data}qi.query=i;function a(s){if(s.response==null)throw new Error("Unexpected null response");return s.response}return qi.getErrorResponse=a,qi}var Nn={},wm={},xO;function S6(){return xO||(xO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Routes=void 0,(function(t){t.transactionHistory="transaction/history",t.transactionOutput="transaction/output",t.addressUsed="address/used",t.credentialAddress="credential/address",t.blockLatest="block/latest",t.metadataNft="metadata/nft",t.dexMeanPrice="dex/mean-price",t.dexSwap="dex/swap",t.dexLastPrice="dex/last-price",t.delegationForAddress="delegation/address",t.delegationForPool="delegation/pool",t.projectedNftEventsRange="projected-nft/range",t.assetUtxos="asset/utxos",t.mintBurnHistory="asset/mint-burn-history",t.drepDelegationForAddress="delegation/drep/address",t.governanceVotesForCredential="governance/credential/votes",t.governanceCredentialVotesByGovActionId="governance/credential/votesByGovId"})(e.Routes||(e.Routes={}))})(wm)),wm}var Im,EO;function yG(){if(EO)return Im;EO=1;function e(t,i,a){var s=-1,c=t.length;i<0&&(i=-i>c?0:c+i),a=a>c?c:a,a<0&&(a+=c),c=i>a?0:a-i>>>0,i>>>=0;for(var l=Array(c);++s<c;)l[s]=t[s+i];return l}return Im=e,Im}var Sm,wO;function Rh(){if(wO)return Sm;wO=1;function e(t,i){return t===i||t!==t&&i!==i}return Sm=e,Sm}var Cm,IO;function C6(){if(IO)return Cm;IO=1;var e=typeof ki=="object"&&ki&&ki.Object===Object&&ki;return Cm=e,Cm}var Om,SO;function Cu(){if(SO)return Om;SO=1;var e=C6(),t=typeof self=="object"&&self&&self.Object===Object&&self,i=e||t||Function("return this")();return Om=i,Om}var Fm,CO;function O6(){if(CO)return Fm;CO=1;var e=Cu(),t=e.Symbol;return Fm=t,Fm}var Tm,OO;function gG(){if(OO)return Tm;OO=1;var e=O6(),t=Object.prototype,i=t.hasOwnProperty,a=t.toString,s=e?e.toStringTag:void 0;function c(l){var f=i.call(l,s),p=l[s];try{l[s]=void 0;var h=!0}catch{}var b=a.call(l);return h&&(f?l[s]=p:delete l[s]),b}return Tm=c,Tm}var Bm,FO;function mG(){if(FO)return Bm;FO=1;var e=Object.prototype,t=e.toString;function i(a){return t.call(a)}return Bm=i,Bm}var Rm,TO;function Vl(){if(TO)return Rm;TO=1;var e=O6(),t=gG(),i=mG(),a="[object Null]",s="[object Undefined]",c=e?e.toStringTag:void 0;function l(f){return f==null?f===void 0?s:a:c&&c in Object(f)?t(f):i(f)}return Rm=l,Rm}var _m,BO;function Va(){if(BO)return _m;BO=1;function e(t){var i=typeof t;return t!=null&&(i=="object"||i=="function")}return _m=e,_m}var Dm,RO;function zv(){if(RO)return Dm;RO=1;var e=Vl(),t=Va(),i="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",c="[object Proxy]";function l(f){if(!t(f))return!1;var p=e(f);return p==a||p==s||p==i||p==c}return Dm=l,Dm}var Um,_O;function F6(){if(_O)return Um;_O=1;var e=9007199254740991;function t(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=e}return Um=t,Um}var Mm,DO;function Gv(){if(DO)return Mm;DO=1;var e=zv(),t=F6();function i(a){return a!=null&&t(a.length)&&!e(a)}return Mm=i,Mm}var jm,UO;function T6(){if(UO)return jm;UO=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function i(a,s){var c=typeof a;return s=s??e,!!s&&(c=="number"||c!="symbol"&&t.test(a))&&a>-1&&a%1==0&&a<s}return jm=i,jm}var Pm,MO;function B6(){if(MO)return Pm;MO=1;var e=Rh(),t=Gv(),i=T6(),a=Va();function s(c,l,f){if(!a(f))return!1;var p=typeof l;return(p=="number"?t(f)&&i(l,f.length):p=="string"&&l in f)?e(f[l],c):!1}return Pm=s,Pm}var Nm,jO;function AG(){if(jO)return Nm;jO=1;var e=/\s/;function t(i){for(var a=i.length;a--&&e.test(i.charAt(a)););return a}return Nm=t,Nm}var Lm,PO;function bG(){if(PO)return Lm;PO=1;var e=AG(),t=/^\s+/;function i(a){return a&&a.slice(0,e(a)+1).replace(t,"")}return Lm=i,Lm}var qm,NO;function Ou(){if(NO)return qm;NO=1;function e(t){return t!=null&&typeof t=="object"}return qm=e,qm}var $m,LO;function vG(){if(LO)return $m;LO=1;var e=Vl(),t=Ou(),i="[object Symbol]";function a(s){return typeof s=="symbol"||t(s)&&e(s)==i}return $m=a,$m}var Hm,qO;function xG(){if(qO)return Hm;qO=1;var e=bG(),t=Va(),i=vG(),a=NaN,s=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,f=parseInt;function p(h){if(typeof h=="number")return h;if(i(h))return a;if(t(h)){var b=typeof h.valueOf=="function"?h.valueOf():h;h=t(b)?b+"":b}if(typeof h!="string")return h===0?h:+h;h=e(h);var v=c.test(h);return v||l.test(h)?f(h.slice(2),v?2:8):s.test(h)?a:+h}return Hm=p,Hm}var km,$O;function EG(){if($O)return km;$O=1;var e=xG(),t=1/0,i=17976931348623157e292;function a(s){if(!s)return s===0?s:0;if(s=e(s),s===t||s===-t){var c=s<0?-1:1;return c*i}return s===s?s:0}return km=a,km}var zm,HO;function wG(){if(HO)return zm;HO=1;var e=EG();function t(i){var a=e(i),s=a%1;return a===a?s?a-s:a:0}return zm=t,zm}var Gm,kO;function IG(){if(kO)return Gm;kO=1;var e=yG(),t=B6(),i=wG(),a=Math.ceil,s=Math.max;function c(l,f,p){(p?t(l,f,p):f===void 0)?f=1:f=s(i(f),0);var h=l==null?0:l.length;if(!h||f<1)return[];for(var b=0,v=0,A=Array(a(h/f));b<h;)A[v++]=e(l,b,b+=f);return A}return Gm=c,Gm}var Ot={},zO;function R6(){return zO||(zO=1,Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.GOVERNANCE_VOTES_BY_GOV_IDS_LIMIT=Ot.GOVERNANCE_VOTES_LIMIT=Ot.MINT_BURN_HISTORY_LIMIT=Ot.ASSET_UTXOS_LIMIT=Ot.POOL_DELEGATION_LIMIT=Ot.PROJECTED_NFT_LIMIT=Ot.DEX_PRICE_LIMIT=Ot.BLOCK_LIMIT=Ot.CREDENTIAL_LIMIT=Ot.ASSET_LIMIT=Ot.UTXO_LIMIT=Ot.ADDRESS_LIMIT=void 0,Ot.ADDRESS_LIMIT={REQUEST:100,RESPONSE:1e3},Ot.UTXO_LIMIT={REQUEST:100,RESPONSE:1e3},Ot.ASSET_LIMIT={REQUEST:1e3,RESPONSE:1e3},Ot.CREDENTIAL_LIMIT={REQUEST:50,RESPONSE:50},Ot.BLOCK_LIMIT={OFFSET:21600},Ot.DEX_PRICE_LIMIT={REQUEST_ADDRESSES:100,REQUEST_ASSET_PAIRS:100,RESPONSE:1e3},Ot.PROJECTED_NFT_LIMIT={DEFAULT_PAGE_SIZE:50},Ot.POOL_DELEGATION_LIMIT={POOLS:50,DEFAULT_PAGE_SIZE:50},Ot.ASSET_UTXOS_LIMIT={ASSETS:50,DEFAULT_PAGE_SIZE:50},Ot.MINT_BURN_HISTORY_LIMIT={DEFAULT_PAGE_SIZE:50},Ot.GOVERNANCE_VOTES_LIMIT={DEFAULT_PAGE_SIZE:50},Ot.GOVERNANCE_VOTES_BY_GOV_IDS_LIMIT={MAX_ACTION_IDS:50}),Ot}var Qm,GO;function SG(){if(GO)return Qm;GO=1;function e(){this.__data__=[],this.size=0}return Qm=e,Qm}var Vm,QO;function _h(){if(QO)return Vm;QO=1;var e=Rh();function t(i,a){for(var s=i.length;s--;)if(e(i[s][0],a))return s;return-1}return Vm=t,Vm}var Km,VO;function CG(){if(VO)return Km;VO=1;var e=_h(),t=Array.prototype,i=t.splice;function a(s){var c=this.__data__,l=e(c,s);if(l<0)return!1;var f=c.length-1;return l==f?c.pop():i.call(c,l,1),--this.size,!0}return Km=a,Km}var Ym,KO;function OG(){if(KO)return Ym;KO=1;var e=_h();function t(i){var a=this.__data__,s=e(a,i);return s<0?void 0:a[s][1]}return Ym=t,Ym}var Xm,YO;function FG(){if(YO)return Xm;YO=1;var e=_h();function t(i){return e(this.__data__,i)>-1}return Xm=t,Xm}var Zm,XO;function TG(){if(XO)return Zm;XO=1;var e=_h();function t(i,a){var s=this.__data__,c=e(s,i);return c<0?(++this.size,s.push([i,a])):s[c][1]=a,this}return Zm=t,Zm}var Jm,ZO;function Dh(){if(ZO)return Jm;ZO=1;var e=SG(),t=CG(),i=OG(),a=FG(),s=TG();function c(l){var f=-1,p=l==null?0:l.length;for(this.clear();++f<p;){var h=l[f];this.set(h[0],h[1])}}return c.prototype.clear=e,c.prototype.delete=t,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,Jm=c,Jm}var Wm,JO;function BG(){if(JO)return Wm;JO=1;var e=Dh();function t(){this.__data__=new e,this.size=0}return Wm=t,Wm}var eA,WO;function RG(){if(WO)return eA;WO=1;function e(t){var i=this.__data__,a=i.delete(t);return this.size=i.size,a}return eA=e,eA}var tA,eF;function _G(){if(eF)return tA;eF=1;function e(t){return this.__data__.get(t)}return tA=e,tA}var nA,tF;function DG(){if(tF)return nA;tF=1;function e(t){return this.__data__.has(t)}return nA=e,nA}var rA,nF;function UG(){if(nF)return rA;nF=1;var e=Cu(),t=e["__core-js_shared__"];return rA=t,rA}var iA,rF;function MG(){if(rF)return iA;rF=1;var e=UG(),t=(function(){var a=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""})();function i(a){return!!t&&t in a}return iA=i,iA}var aA,iF;function jG(){if(iF)return aA;iF=1;var e=Function.prototype,t=e.toString;function i(a){if(a!=null){try{return t.call(a)}catch{}try{return a+""}catch{}}return""}return aA=i,aA}var oA,aF;function PG(){if(aF)return oA;aF=1;var e=zv(),t=MG(),i=Va(),a=jG(),s=/[\\^$.*+?()[\]{}|]/g,c=/^\[object .+?Constructor\]$/,l=Function.prototype,f=Object.prototype,p=l.toString,h=f.hasOwnProperty,b=RegExp("^"+p.call(h).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function v(A){if(!i(A)||t(A))return!1;var I=e(A)?b:c;return I.test(a(A))}return oA=v,oA}var sA,oF;function NG(){if(oF)return sA;oF=1;function e(t,i){return t==null?void 0:t[i]}return sA=e,sA}var uA,sF;function Qv(){if(sF)return uA;sF=1;var e=PG(),t=NG();function i(a,s){var c=t(a,s);return e(c)?c:void 0}return uA=i,uA}var cA,uF;function _6(){if(uF)return cA;uF=1;var e=Qv(),t=Cu(),i=e(t,"Map");return cA=i,cA}var lA,cF;function Uh(){if(cF)return lA;cF=1;var e=Qv(),t=e(Object,"create");return lA=t,lA}var fA,lF;function LG(){if(lF)return fA;lF=1;var e=Uh();function t(){this.__data__=e?e(null):{},this.size=0}return fA=t,fA}var dA,fF;function qG(){if(fF)return dA;fF=1;function e(t){var i=this.has(t)&&delete this.__data__[t];return this.size-=i?1:0,i}return dA=e,dA}var hA,dF;function $G(){if(dF)return hA;dF=1;var e=Uh(),t="__lodash_hash_undefined__",i=Object.prototype,a=i.hasOwnProperty;function s(c){var l=this.__data__;if(e){var f=l[c];return f===t?void 0:f}return a.call(l,c)?l[c]:void 0}return hA=s,hA}var pA,hF;function HG(){if(hF)return pA;hF=1;var e=Uh(),t=Object.prototype,i=t.hasOwnProperty;function a(s){var c=this.__data__;return e?c[s]!==void 0:i.call(c,s)}return pA=a,pA}var yA,pF;function kG(){if(pF)return yA;pF=1;var e=Uh(),t="__lodash_hash_undefined__";function i(a,s){var c=this.__data__;return this.size+=this.has(a)?0:1,c[a]=e&&s===void 0?t:s,this}return yA=i,yA}var gA,yF;function zG(){if(yF)return gA;yF=1;var e=LG(),t=qG(),i=$G(),a=HG(),s=kG();function c(l){var f=-1,p=l==null?0:l.length;for(this.clear();++f<p;){var h=l[f];this.set(h[0],h[1])}}return c.prototype.clear=e,c.prototype.delete=t,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,gA=c,gA}var mA,gF;function GG(){if(gF)return mA;gF=1;var e=zG(),t=Dh(),i=_6();function a(){this.size=0,this.__data__={hash:new e,map:new(i||t),string:new e}}return mA=a,mA}var AA,mF;function QG(){if(mF)return AA;mF=1;function e(t){var i=typeof t;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?t!=="__proto__":t===null}return AA=e,AA}var bA,AF;function Mh(){if(AF)return bA;AF=1;var e=QG();function t(i,a){var s=i.__data__;return e(a)?s[typeof a=="string"?"string":"hash"]:s.map}return bA=t,bA}var vA,bF;function VG(){if(bF)return vA;bF=1;var e=Mh();function t(i){var a=e(this,i).delete(i);return this.size-=a?1:0,a}return vA=t,vA}var xA,vF;function KG(){if(vF)return xA;vF=1;var e=Mh();function t(i){return e(this,i).get(i)}return xA=t,xA}var EA,xF;function YG(){if(xF)return EA;xF=1;var e=Mh();function t(i){return e(this,i).has(i)}return EA=t,EA}var wA,EF;function XG(){if(EF)return wA;EF=1;var e=Mh();function t(i,a){var s=e(this,i),c=s.size;return s.set(i,a),this.size+=s.size==c?0:1,this}return wA=t,wA}var IA,wF;function ZG(){if(wF)return IA;wF=1;var e=GG(),t=VG(),i=KG(),a=YG(),s=XG();function c(l){var f=-1,p=l==null?0:l.length;for(this.clear();++f<p;){var h=l[f];this.set(h[0],h[1])}}return c.prototype.clear=e,c.prototype.delete=t,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,IA=c,IA}var SA,IF;function JG(){if(IF)return SA;IF=1;var e=Dh(),t=_6(),i=ZG(),a=200;function s(c,l){var f=this.__data__;if(f instanceof e){var p=f.__data__;if(!t||p.length<a-1)return p.push([c,l]),this.size=++f.size,this;f=this.__data__=new i(p)}return f.set(c,l),this.size=f.size,this}return SA=s,SA}var CA,SF;function WG(){if(SF)return CA;SF=1;var e=Dh(),t=BG(),i=RG(),a=_G(),s=DG(),c=JG();function l(f){var p=this.__data__=new e(f);this.size=p.size}return l.prototype.clear=t,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=s,l.prototype.set=c,CA=l,CA}var OA,CF;function D6(){if(CF)return OA;CF=1;var e=Qv(),t=(function(){try{var i=e(Object,"defineProperty");return i({},"",{}),i}catch{}})();return OA=t,OA}var FA,OF;function Vv(){if(OF)return FA;OF=1;var e=D6();function t(i,a,s){a=="__proto__"&&e?e(i,a,{configurable:!0,enumerable:!0,value:s,writable:!0}):i[a]=s}return FA=t,FA}var TA,FF;function U6(){if(FF)return TA;FF=1;var e=Vv(),t=Rh();function i(a,s,c){(c!==void 0&&!t(a[s],c)||c===void 0&&!(s in a))&&e(a,s,c)}return TA=i,TA}var BA,TF;function eQ(){if(TF)return BA;TF=1;function e(t){return function(i,a,s){for(var c=-1,l=Object(i),f=s(i),p=f.length;p--;){var h=f[t?p:++c];if(a(l[h],h,l)===!1)break}return i}}return BA=e,BA}var RA,BF;function tQ(){if(BF)return RA;BF=1;var e=eQ(),t=e();return RA=t,RA}var Mc={exports:{}};Mc.exports;var RF;function nQ(){return RF||(RF=1,(function(e,t){var i=Cu(),a=t&&!t.nodeType&&t,s=a&&!0&&e&&!e.nodeType&&e,c=s&&s.exports===a,l=c?i.Buffer:void 0,f=l?l.allocUnsafe:void 0;function p(h,b){if(b)return h.slice();var v=h.length,A=f?f(v):new h.constructor(v);return h.copy(A),A}e.exports=p})(Mc,Mc.exports)),Mc.exports}var _A,_F;function rQ(){if(_F)return _A;_F=1;var e=Cu(),t=e.Uint8Array;return _A=t,_A}var DA,DF;function iQ(){if(DF)return DA;DF=1;var e=rQ();function t(i){var a=new i.constructor(i.byteLength);return new e(a).set(new e(i)),a}return DA=t,DA}var UA,UF;function aQ(){if(UF)return UA;UF=1;var e=iQ();function t(i,a){var s=a?e(i.buffer):i.buffer;return new i.constructor(s,i.byteOffset,i.length)}return UA=t,UA}var MA,MF;function oQ(){if(MF)return MA;MF=1;function e(t,i){var a=-1,s=t.length;for(i||(i=Array(s));++a<s;)i[a]=t[a];return i}return MA=e,MA}var jA,jF;function sQ(){if(jF)return jA;jF=1;var e=Va(),t=Object.create,i=(function(){function a(){}return function(s){if(!e(s))return{};if(t)return t(s);a.prototype=s;var c=new a;return a.prototype=void 0,c}})();return jA=i,jA}var PA,PF;function uQ(){if(PF)return PA;PF=1;function e(t,i){return function(a){return t(i(a))}}return PA=e,PA}var NA,NF;function M6(){if(NF)return NA;NF=1;var e=uQ(),t=e(Object.getPrototypeOf,Object);return NA=t,NA}var LA,LF;function j6(){if(LF)return LA;LF=1;var e=Object.prototype;function t(i){var a=i&&i.constructor,s=typeof a=="function"&&a.prototype||e;return i===s}return LA=t,LA}var qA,qF;function cQ(){if(qF)return qA;qF=1;var e=sQ(),t=M6(),i=j6();function a(s){return typeof s.constructor=="function"&&!i(s)?e(t(s)):{}}return qA=a,qA}var $A,$F;function lQ(){if($F)return $A;$F=1;var e=Vl(),t=Ou(),i="[object Arguments]";function a(s){return t(s)&&e(s)==i}return $A=a,$A}var HA,HF;function P6(){if(HF)return HA;HF=1;var e=lQ(),t=Ou(),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,c=e((function(){return arguments})())?e:function(l){return t(l)&&a.call(l,"callee")&&!s.call(l,"callee")};return HA=c,HA}var kA,kF;function N6(){if(kF)return kA;kF=1;var e=Array.isArray;return kA=e,kA}var zA,zF;function fQ(){if(zF)return zA;zF=1;var e=Gv(),t=Ou();function i(a){return t(a)&&e(a)}return zA=i,zA}var jc={exports:{}},GA,GF;function dQ(){if(GF)return GA;GF=1;function e(){return!1}return GA=e,GA}jc.exports;var QF;function L6(){return QF||(QF=1,(function(e,t){var i=Cu(),a=dQ(),s=t&&!t.nodeType&&t,c=s&&!0&&e&&!e.nodeType&&e,l=c&&c.exports===s,f=l?i.Buffer:void 0,p=f?f.isBuffer:void 0,h=p||a;e.exports=h})(jc,jc.exports)),jc.exports}var QA,VF;function hQ(){if(VF)return QA;VF=1;var e=Vl(),t=M6(),i=Ou(),a="[object Object]",s=Function.prototype,c=Object.prototype,l=s.toString,f=c.hasOwnProperty,p=l.call(Object);function h(b){if(!i(b)||e(b)!=a)return!1;var v=t(b);if(v===null)return!0;var A=f.call(v,"constructor")&&v.constructor;return typeof A=="function"&&A instanceof A&&l.call(A)==p}return QA=h,QA}var VA,KF;function pQ(){if(KF)return VA;KF=1;var e=Vl(),t=F6(),i=Ou(),a="[object Arguments]",s="[object Array]",c="[object Boolean]",l="[object Date]",f="[object Error]",p="[object Function]",h="[object Map]",b="[object Number]",v="[object Object]",A="[object RegExp]",I="[object Set]",C="[object String]",U="[object WeakMap]",B="[object ArrayBuffer]",_="[object DataView]",D="[object Float32Array]",M="[object Float64Array]",te="[object Int8Array]",z="[object Int16Array]",ne="[object Int32Array]",ce="[object Uint8Array]",oe="[object Uint8ClampedArray]",F="[object Uint16Array]",H="[object Uint32Array]",K={};K[D]=K[M]=K[te]=K[z]=K[ne]=K[ce]=K[oe]=K[F]=K[H]=!0,K[a]=K[s]=K[B]=K[c]=K[_]=K[l]=K[f]=K[p]=K[h]=K[b]=K[v]=K[A]=K[I]=K[C]=K[U]=!1;function G(Y){return i(Y)&&t(Y.length)&&!!K[e(Y)]}return VA=G,VA}var KA,YF;function yQ(){if(YF)return KA;YF=1;function e(t){return function(i){return t(i)}}return KA=e,KA}var Pc={exports:{}};Pc.exports;var XF;function gQ(){return XF||(XF=1,(function(e,t){var i=C6(),a=t&&!t.nodeType&&t,s=a&&!0&&e&&!e.nodeType&&e,c=s&&s.exports===a,l=c&&i.process,f=(function(){try{var p=s&&s.require&&s.require("util").types;return p||l&&l.binding&&l.binding("util")}catch{}})();e.exports=f})(Pc,Pc.exports)),Pc.exports}var YA,ZF;function q6(){if(ZF)return YA;ZF=1;var e=pQ(),t=yQ(),i=gQ(),a=i&&i.isTypedArray,s=a?t(a):e;return YA=s,YA}var XA,JF;function $6(){if(JF)return XA;JF=1;function e(t,i){if(!(i==="constructor"&&typeof t[i]=="function")&&i!="__proto__")return t[i]}return XA=e,XA}var ZA,WF;function mQ(){if(WF)return ZA;WF=1;var e=Vv(),t=Rh(),i=Object.prototype,a=i.hasOwnProperty;function s(c,l,f){var p=c[l];(!(a.call(c,l)&&t(p,f))||f===void 0&&!(l in c))&&e(c,l,f)}return ZA=s,ZA}var JA,eT;function AQ(){if(eT)return JA;eT=1;var e=mQ(),t=Vv();function i(a,s,c,l){var f=!c;c||(c={});for(var p=-1,h=s.length;++p<h;){var b=s[p],v=l?l(c[b],a[b],b,c,a):void 0;v===void 0&&(v=a[b]),f?t(c,b,v):e(c,b,v)}return c}return JA=i,JA}var WA,tT;function bQ(){if(tT)return WA;tT=1;function e(t,i){for(var a=-1,s=Array(t);++a<t;)s[a]=i(a);return s}return WA=e,WA}var eb,nT;function vQ(){if(nT)return eb;nT=1;var e=bQ(),t=P6(),i=N6(),a=L6(),s=T6(),c=q6(),l=Object.prototype,f=l.hasOwnProperty;function p(h,b){var v=i(h),A=!v&&t(h),I=!v&&!A&&a(h),C=!v&&!A&&!I&&c(h),U=v||A||I||C,B=U?e(h.length,String):[],_=B.length;for(var D in h)(b||f.call(h,D))&&!(U&&(D=="length"||I&&(D=="offset"||D=="parent")||C&&(D=="buffer"||D=="byteLength"||D=="byteOffset")||s(D,_)))&&B.push(D);return B}return eb=p,eb}var tb,rT;function xQ(){if(rT)return tb;rT=1;function e(t){var i=[];if(t!=null)for(var a in Object(t))i.push(a);return i}return tb=e,tb}var nb,iT;function EQ(){if(iT)return nb;iT=1;var e=Va(),t=j6(),i=xQ(),a=Object.prototype,s=a.hasOwnProperty;function c(l){if(!e(l))return i(l);var f=t(l),p=[];for(var h in l)h=="constructor"&&(f||!s.call(l,h))||p.push(h);return p}return nb=c,nb}var rb,aT;function H6(){if(aT)return rb;aT=1;var e=vQ(),t=EQ(),i=Gv();function a(s){return i(s)?e(s,!0):t(s)}return rb=a,rb}var ib,oT;function wQ(){if(oT)return ib;oT=1;var e=AQ(),t=H6();function i(a){return e(a,t(a))}return ib=i,ib}var ab,sT;function IQ(){if(sT)return ab;sT=1;var e=U6(),t=nQ(),i=aQ(),a=oQ(),s=cQ(),c=P6(),l=N6(),f=fQ(),p=L6(),h=zv(),b=Va(),v=hQ(),A=q6(),I=$6(),C=wQ();function U(B,_,D,M,te,z,ne){var ce=I(B,D),oe=I(_,D),F=ne.get(oe);if(F){e(B,D,F);return}var H=z?z(ce,oe,D+"",B,_,ne):void 0,K=H===void 0;if(K){var G=l(oe),Y=!G&&p(oe),X=!G&&!Y&&A(oe);H=oe,G||Y||X?l(ce)?H=ce:f(ce)?H=a(ce):Y?(K=!1,H=t(oe,!0)):X?(K=!1,H=i(oe,!0)):H=[]:v(oe)||c(oe)?(H=ce,c(ce)?H=C(ce):(!b(ce)||h(ce))&&(H=s(oe))):K=!1}K&&(ne.set(oe,H),te(H,oe,M,z,ne),ne.delete(oe)),e(B,D,H)}return ab=U,ab}var ob,uT;function SQ(){if(uT)return ob;uT=1;var e=WG(),t=U6(),i=tQ(),a=IQ(),s=Va(),c=H6(),l=$6();function f(p,h,b,v,A){p!==h&&i(h,function(I,C){if(A||(A=new e),s(I))a(p,h,C,b,f,v,A);else{var U=v?v(l(p,C),I,C+"",p,h,A):void 0;U===void 0&&(U=I),t(p,C,U)}},c)}return ob=f,ob}var sb,cT;function k6(){if(cT)return sb;cT=1;function e(t){return t}return sb=e,sb}var ub,lT;function CQ(){if(lT)return ub;lT=1;function e(t,i,a){switch(a.length){case 0:return t.call(i);case 1:return t.call(i,a[0]);case 2:return t.call(i,a[0],a[1]);case 3:return t.call(i,a[0],a[1],a[2])}return t.apply(i,a)}return ub=e,ub}var cb,fT;function OQ(){if(fT)return cb;fT=1;var e=CQ(),t=Math.max;function i(a,s,c){return s=t(s===void 0?a.length-1:s,0),function(){for(var l=arguments,f=-1,p=t(l.length-s,0),h=Array(p);++f<p;)h[f]=l[s+f];f=-1;for(var b=Array(s+1);++f<s;)b[f]=l[f];return b[s]=c(h),e(a,this,b)}}return cb=i,cb}var lb,dT;function FQ(){if(dT)return lb;dT=1;function e(t){return function(){return t}}return lb=e,lb}var fb,hT;function TQ(){if(hT)return fb;hT=1;var e=FQ(),t=D6(),i=k6(),a=t?function(s,c){return t(s,"toString",{configurable:!0,enumerable:!1,value:e(c),writable:!0})}:i;return fb=a,fb}var db,pT;function BQ(){if(pT)return db;pT=1;var e=800,t=16,i=Date.now;function a(s){var c=0,l=0;return function(){var f=i(),p=t-(f-l);if(l=f,p>0){if(++c>=e)return arguments[0]}else c=0;return s.apply(void 0,arguments)}}return db=a,db}var hb,yT;function RQ(){if(yT)return hb;yT=1;var e=TQ(),t=BQ(),i=t(e);return hb=i,hb}var pb,gT;function _Q(){if(gT)return pb;gT=1;var e=k6(),t=OQ(),i=RQ();function a(s,c){return i(t(s,c,e),s+"")}return pb=a,pb}var yb,mT;function DQ(){if(mT)return yb;mT=1;var e=_Q(),t=B6();function i(a){return e(function(s,c){var l=-1,f=c.length,p=f>1?c[f-1]:void 0,h=f>2?c[2]:void 0;for(p=a.length>3&&typeof p=="function"?(f--,p):void 0,h&&t(c[0],c[1],h)&&(p=f<3?void 0:p,f=1),s=Object(s);++l<f;){var b=c[l];b&&a(s,b,l,p)}return s})}return yb=i,yb}var gb,AT;function UQ(){if(AT)return gb;AT=1;var e=SQ(),t=DQ(),i=t(function(a,s,c){e(a,s,c)});return gb=i,gb}var bT;function MQ(){if(bT)return Nn;bT=1;var e=Nn&&Nn.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(Nn,"__esModule",{value:!0}),Nn.nftCborToJson=Nn.paginatedMetadataNft=Nn.paginatedProjectedNft=Nn.paginatedTransactionHistory=Nn.paginateQuery=void 0;const t=I6(),i=S6(),a=e(IG()),s=R6(),c=e(UQ());async function l(A,I,C){let U=A;const B=[];let _=[];do _=await I(U),B.push(..._),U={...U,after:C(_[_.length-1])};while(_.length!==0);return B}Nn.paginateQuery=l;async function f(A,I){return{transactions:await l(I,async U=>(await(0,t.query)(A,i.Routes.transactionHistory,U)).transactions,U=>U!=null?{block:U.block.hash,tx:U.transaction.hash}:void 0)}}Nn.paginatedTransactionHistory=f;async function p(A,I){return await l(I,async U=>await(0,t.query)(A,i.Routes.projectedNftEventsRange,U),U=>U!=null?{block:U.block,tx:U.txId}:void 0)}Nn.paginatedProjectedNft=p;function h(A){var I;const C={};for(const[U,B]of A){const _=(I=C[U])!==null&&I!==void 0?I:[];_.push(B),_.length===1&&(C[U]=_)}return{assets:C}}async function b(A,I){const C=[];for(const[_,D]of Object.entries(I.assets))for(const M of D)C.push([_,M]);let U={cip25:{}};const B=await Promise.all((0,a.default)(C,s.ASSET_LIMIT.REQUEST).map(_=>(0,t.query)(A,i.Routes.metadataNft,h(_))));for(const _ of B)U=(0,c.default)(U,_);return U}Nn.paginatedMetadataNft=b;function v(A,I,C,U){const B={};for(const[_,D]of Object.entries(A.cip25)){const M={};for(const[te,z]of Object.entries(D)){const ne=I.from_cbor_bytes(Yt.Buffer.from(z,"hex")),ce=C(ne,U);M[te]=ce}B[_]=M}return{cip25:B}}return Nn.nftCborToJson=v,Nn}var Eo={},mb={},vT;function jQ(){return vT||(vT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.genErrorMessage=e.Errors=e.ErrorCodes=void 0;var t;(function(a){a[a.AddressLimitExceeded=0]="AddressLimitExceeded",a[a.IncorrectAddressFormat=1]="IncorrectAddressFormat",a[a.BlockHashNotFound=2]="BlockHashNotFound",a[a.PageStartNotFound=3]="PageStartNotFound",a[a.UtxoLimitExceeded=4]="UtxoLimitExceeded",a[a.IncorrectFormat=5]="IncorrectFormat",a[a.BlockOffsetLimit=6]="BlockOffsetLimit",a[a.OffsetBlockNotFound=7]="OffsetBlockNotFound",a[a.AssetLimitExceeded=8]="AssetLimitExceeded",a[a.CredentialLimitExceeded=9]="CredentialLimitExceeded",a[a.AssetPairLimitExceeded=10]="AssetPairLimitExceeded",a[a.PoolsLimitExceeded=11]="PoolsLimitExceeded",a[a.SlotRangeLimitExceeded=12]="SlotRangeLimitExceeded",a[a.AssetsLimitExceeded=12]="AssetsLimitExceeded"})(t=e.ErrorCodes||(e.ErrorCodes={})),e.Errors={AddressLimitExceeded:{code:t.AddressLimitExceeded,prefix:"Exceeded request address limit.",detailsGen:a=>`Limit of ${a.limit}, found ${a.found}`},UtxoLimitExceeded:{code:t.UtxoLimitExceeded,prefix:"Exceeded request utxo limit.",detailsGen:a=>`Limit of ${a.limit}, found ${a.found}`},IncorrectAddressFormat:{code:t.IncorrectAddressFormat,prefix:"Incorrectly formatted addresses found.",detailsGen:a=>JSON.stringify(a.addresses)},IncorrectFormat:{code:t.IncorrectFormat,prefix:"Incorrectly formatted data found.",detailsGen:a=>JSON.stringify(a)},BlockHashNotFound:{code:t.BlockHashNotFound,prefix:"Block hash not found.",detailsGen:a=>`Searched block hash: ${a.untilBlock}`},PageStartNotFound:{code:t.PageStartNotFound,prefix:"Combination of block and transaction not found.",detailsGen:a=>`Searched block hash ${a.blockHash} and tx hash ${a.txHash}`},BlockOffsetLimit:{code:t.BlockOffsetLimit,prefix:"Block offset exceeded the limit.",detailsGen:a=>`Offset used was ${a.offset}, but limit is ${a.limit}`},OffsetBlockNotFound:{code:t.OffsetBlockNotFound,prefix:"Block not found at offset. Are you sure your database is synchronized?",detailsGen:a=>`Offset used was ${a.offset}`},AssetLimitExceeded:{code:t.AssetLimitExceeded,prefix:"Exceeded request <policy, asset> pair limit.",detailsGen:a=>`Limit of ${a.limit}, found ${a.found}`},CredentialLimitExceeded:{code:t.CredentialLimitExceeded,prefix:"Exceeded request credential limit.",detailsGen:a=>`Limit of ${a.limit}, found ${a.found}`},AssetPairLimitExceeded:{code:t.AssetPairLimitExceeded,prefix:"Exceeded request asset pair limit.",detailsGen:a=>`Limit of ${a.limit}, found ${a.found}`},PoolsLimitExceeded:{code:t.PoolsLimitExceeded,prefix:"Exceeded request pools limit.",detailsGen:a=>`Limit of ${a.limit}, found ${a.found}`},SlotRangeLimitExceeded:{code:t.SlotRangeLimitExceeded,prefix:"Exceeded request slot range limit.",detailsGen:a=>`Limit of ${a.limit}, found ${a.found}`},AssetsLimitExceeded:{code:t.AssetLimitExceeded,prefix:"Exceeded request native assets limit.",detailsGen:a=>`Limit of ${a.limit}, found ${a.found}`},GovActionIdsLimitExceeded:{code:t.AssetLimitExceeded,prefix:"Exceeded request governance action ids limit.",detailsGen:a=>`Limit of ${a.limit}, found ${a.found}`}};function i(a,s){const c=a.detailsGen(s);return{code:a.code,reason:c.length===0?a.prefix:`${a.prefix} ${c}`}}e.genErrorMessage=i})(mb)),mb}var wo={},Ab={},xT;function PQ(){return xT||(xT=1,Object.defineProperty(Ab,"__esModule",{value:!0})),Ab}var bb={},ET;function NQ(){return ET||(ET=1,Object.defineProperty(bb,"__esModule",{value:!0})),bb}var vb={},wT;function LQ(){return wT||(wT=1,Object.defineProperty(vb,"__esModule",{value:!0})),vb}var xb={},IT;function qQ(){return IT||(IT=1,Object.defineProperty(xb,"__esModule",{value:!0})),xb}var Eb={},ST;function $Q(){return ST||(ST=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Dex=e.Direction=e.RelationFilterType=void 0,(function(t){t[t.FILTER_ALL=0]="FILTER_ALL",t[t.Witness=1]="Witness",t[t.Input=2]="Input",t[t.Output=4]="Output",t[t.StakeDeregistration=8]="StakeDeregistration",t[t.StakeDelegation=16]="StakeDelegation",t[t.StakeRegistration=32]="StakeRegistration",t[t.DelegationTarget=64]="DelegationTarget",t[t.PoolOwner=128]="PoolOwner",t[t.PoolOperator=256]="PoolOperator",t[t.PoolReward=512]="PoolReward",t[t.MirRecipient=1024]="MirRecipient",t[t.Withdrawal=2048]="Withdrawal",t[t.RequiredSigner=4096]="RequiredSigner",t[t.InNativeScript=8192]="InNativeScript",t[t.UnusedInput=16384]="UnusedInput",t[t.UnusedInputStake=32768]="UnusedInputStake",t[t.InputStake=65536]="InputStake",t[t.OutputStake=131072]="OutputStake",t[t.UnusedOutput=262144]="UnusedOutput",t[t.UnusedOutputStake=524288]="UnusedOutputStake",t[t.ReferenceInput=1048576]="ReferenceInput",t[t.ReferenceInputStake=2097152]="ReferenceInputStake",t[t.DrepStakeDelegation=4194304]="DrepStakeDelegation",t[t.DrepStakeDelegationTarget=8388608]="DrepStakeDelegationTarget",t[t.DrepOperation=16777216]="DrepOperation",t[t.NO_FILTER=255]="NO_FILTER"})(e.RelationFilterType||(e.RelationFilterType={})),(function(t){t.Buy="buy",t.Sell="sell"})(e.Direction||(e.Direction={})),(function(t){t.WingRiders="WingRiders",t.SundaeSwap="SundaeSwap",t.MinSwap="MinSwap"})(e.Dex||(e.Dex={}))})(Eb)),Eb}var wb={},CT;function HQ(){return CT||(CT=1,Object.defineProperty(wb,"__esModule",{value:!0})),wb}var Ib={},OT;function kQ(){return OT||(OT=1,Object.defineProperty(Ib,"__esModule",{value:!0})),Ib}var Sb={},FT;function zQ(){return FT||(FT=1,Object.defineProperty(Sb,"__esModule",{value:!0})),Sb}var Cb={},TT;function GQ(){return TT||(TT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PriceType=void 0,(function(t){t.Buy="buy",t.Sell="sell",t.Mean="mean"})(e.PriceType||(e.PriceType={}))})(Cb)),Cb}var Ob={},BT;function QQ(){return BT||(BT=1,Object.defineProperty(Ob,"__esModule",{value:!0})),Ob}var Fb={},RT;function VQ(){return RT||(RT=1,Object.defineProperty(Fb,"__esModule",{value:!0})),Fb}var Tb={},_T;function KQ(){return _T||(_T=1,Object.defineProperty(Tb,"__esModule",{value:!0})),Tb}var Bb={},DT;function YQ(){return DT||(DT=1,Object.defineProperty(Bb,"__esModule",{value:!0})),Bb}var Rb={},UT;function XQ(){return UT||(UT=1,Object.defineProperty(Rb,"__esModule",{value:!0})),Rb}var _b={},MT;function ZQ(){return MT||(MT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProjectedNftStatus=void 0,(function(t){t.Lock="Lock",t.Unlocking="Unlocking",t.Claim="Claim",t.Invalid="Invalid"})(e.ProjectedNftStatus||(e.ProjectedNftStatus={}))})(_b)),_b}var Db={},jT;function JQ(){return jT||(jT=1,Object.defineProperty(Db,"__esModule",{value:!0})),Db}var Ub={},PT;function WQ(){return PT||(PT=1,Object.defineProperty(Ub,"__esModule",{value:!0})),Ub}var NT;function eV(){return NT||(NT=1,(function(e){var t=wo&&wo.__createBinding||(Object.create?(function(a,s,c,l){l===void 0&&(l=c);var f=Object.getOwnPropertyDescriptor(s,c);(!f||("get"in f?!s.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(a,l,f)}):(function(a,s,c,l){l===void 0&&(l=c),a[l]=s[c]})),i=wo&&wo.__exportStar||function(a,s){for(var c in a)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&t(s,a,c)};Object.defineProperty(e,"__esModule",{value:!0}),i(PQ(),e),i(NQ(),e),i(LQ(),e),i(qQ(),e),i($Q(),e),i(HQ(),e),i(kQ(),e),i(zQ(),e),i(GQ(),e),i(QQ(),e),i(VQ(),e),i(KQ(),e),i(YQ(),e),i(XQ(),e),i(ZQ(),e),i(JQ(),e),i(WQ(),e)})(wo)),wo}var LT;function tV(){return LT||(LT=1,(function(e){var t=Eo&&Eo.__createBinding||(Object.create?(function(a,s,c,l){l===void 0&&(l=c);var f=Object.getOwnPropertyDescriptor(s,c);(!f||("get"in f?!s.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(a,l,f)}):(function(a,s,c,l){l===void 0&&(l=c),a[l]=s[c]})),i=Eo&&Eo.__exportStar||function(a,s){for(var c in a)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&t(s,a,c)};Object.defineProperty(e,"__esModule",{value:!0}),i(R6(),e),i(jQ(),e),i(S6(),e),i(eV(),e)})(Eo)),Eo}var qT;function nV(){return qT||(qT=1,(function(e){var t=xo&&xo.__createBinding||(Object.create?(function(a,s,c,l){l===void 0&&(l=c);var f=Object.getOwnPropertyDescriptor(s,c);(!f||("get"in f?!s.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(a,l,f)}):(function(a,s,c,l){l===void 0&&(l=c),a[l]=s[c]})),i=xo&&xo.__exportStar||function(a,s){for(var c in a)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&t(s,a,c)};Object.defineProperty(e,"__esModule",{value:!0}),i(I6(),e),i(MQ(),e),i(tV(),e)})(xo)),xo}var rV=nV();const Kv=w.Object({address:Ie.Cardano.Address,pool:Ie.Nullable(Ie.Cardano.PoolId),epoch:Ie.EpochNumber()});w.Object({primitive:w.Literal(je.CardanoCarpDelegation),payloadType:w.Literal(Jt.Delegate),payload:Kv});const Hc=w.Object({ownerAddress:Ie.Cardano.Address,actionTxId:Ie.Cardano.TxHash,actionOutputIndex:Ie.Nullable(w.Number()),previousTxHash:Ie.Nullable(Ie.Cardano.TxHash),previousTxOutputIndex:Ie.Nullable(w.Number()),policyId:Ie.Cardano.PolicyId,assetName:Ie.Cardano.AssetName,amount:Ie.Cardano.AmountLovelace,status:w.Enum(rV.ProjectedNftStatus),plutusDatum:Ie.HexStringNo0x(),forHowLong:Ie.Nullable(Ie.TimestampMsStr)});w.Object({primitive:w.Literal(je.CardanoCarpProjectedNFT),payloadType:w.Literal(Jt.Projection),payload:Hc});const z6=w.Object({address:Ie.Cardano.Address,txId:Ie.Cardano.TxHash,outputIndex:w.Number(),amount:Ie.Nullable(Ie.Cardano.AmountLovelace),cip14Fingerprint:Ie.Cardano.Cip14Fingerprint,policyId:Ie.Cardano.PolicyId,assetName:Ie.Cardano.AssetName,spent:w.Boolean()});w.Object({primitive:w.Literal(je.CardanoCarpDelayedAsset),payloadType:w.Literal(Jt.Transfer),payload:z6});const Yv=w.Object({txId:Ie.Cardano.TxHash,rawTx:w.String(),inputCredentials:w.Array(Ie.Cardano.Credential),outputs:w.Array(w.Object({asset:Ie.Nullable(w.Object({policyId:Ie.Cardano.PolicyId,assetName:Ie.Cardano.AssetName})),amount:Ie.Cardano.AmountLovelace})),metadata:Ie.Nullable(w.String())});w.Object({primitive:w.Literal(je.CardanoCarpTransfer),payloadType:w.Literal(Jt.Transfer),payload:Yv});const iV=w.Unsafe(w.Record(Ie.Cardano.AssetName,w.String())),aV=w.Unsafe(w.Record(Ie.Cardano.PolicyId,iV)),oV=w.Object({policyId:Ie.Cardano.PolicyId,assetName:Ie.Cardano.AssetName}),sV=w.Intersect([oV,w.Object({amount:Ie.Cardano.AmountLovelace})]),$T=w.Unsafe(w.Record(Ie.Cardano.Credential,w.Array(sV))),Xv=w.Object({txId:Ie.Cardano.TxHash,metadata:Ie.Nullable(w.String()),assets:aV,inputAddresses:$T,outputAddresses:$T});w.Object({primitive:w.Literal(je.CardanoCarpMintBurn),payloadType:w.Literal(Jt.MintOrBurn),payload:Xv});const uV=w.Object({});w.Object({primitive:w.Literal(je.CardanoUtxorpcMatchTx),payloadType:w.Literal(Jt.Event),payload:uV});je.EvmRpcPaimaL2+"",je.EvmRpcERC20+"",je.EvmRpcERC721+"",je.EvmRpcERC1155+"",je.EvmRpcGeneric+"",je.EvmRpcERC6551Registry+"",je.EvmRpcDynamicPrimitive+"";const G6=w.Object({userAddress:Ie.Evm.Address,data:Ie.HexString0x(),value:Ie.Uint256});w.Object({primitive:w.Literal(je.EvmRpcPaimaL2),payloadType:w.Literal(Jt.PaimaL2Event),payload:G6});const Zv=w.Object({from:Ie.Evm.Address,to:Ie.Evm.Address,value:Ie.Uint256});w.Object({primitive:w.Literal(je.EvmRpcERC20),payloadType:w.Literal(Jt.Transfer),payload:Zv});const Jv=w.Object({from:Ie.Evm.Address,to:Ie.Evm.Address,tokenId:Ie.Uint256});w.Object({primitive:w.Literal(je.EvmRpcERC721),payloadType:w.Literal(Jt.Transfer),payload:Jv});const Nd=w.Object({tokenId:Ie.Uint256,mintData:w.String(),from:Ie.Evm.Address});w.Object({primitive:w.Literal(je.EvmRpcERC721),payloadType:w.Literal(Jt.Mint),payload:Nd});const Ld=w.Object({operator:Ie.Evm.Address,from:Ie.Evm.Address,to:Ie.Evm.Address,ids:w.Array(Ie.Uint256),values:w.Array(Ie.Uint256)});w.Object({primitive:w.Literal(je.EvmRpcERC1155),payloadType:w.Literal(Jt.Transfer),payload:Ld});const cV=w.Any();w.Object({primitive:w.Literal(je.EvmRpcGeneric),payloadType:w.Literal(Jt.Event),payload:cV});const Q6=w.Object({accountCreated:Ie.Evm.Address,implementation:Ie.Evm.Address,chainId:Ie.Uint256,tokenContract:Ie.Evm.Address,tokenId:Ie.Uint256,salt:Ie.Uint256});w.Object({primitive:w.Literal(je.EvmRpcERC6551Registry),payloadType:w.Literal(Jt.Registry),payload:Q6});const lV=w.Union([w.Object({type:w.Literal(je.EvmRpcERC721),scheduledPrefix:w.String(),burnScheduledPrefix:w.Optional(w.String())}),w.Object({type:w.Literal(je.EvmRpcGeneric),abi:Ie.EvmAbiEvent,scheduledPrefix:w.String()})]),fV=w.Object({contractAddress:Ie.Evm.Address,targetConfig:lV});w.Object({primitive:w.Literal(je.EvmRpcDynamicPrimitive),payloadType:w.Literal(Jt.Event),payload:fV});const dV=w.Recursive(e=>w.Union([w.Object({tag:w.Literal("null")}),w.Object({tag:w.Literal("cell"),content:e}),w.Object({tag:w.Literal("array"),content:w.Array(e)}),w.Object({tag:w.Literal("map"),content:w.Any()}),w.Object({tag:w.Literal("some"),value:e}),w.Object({tag:w.Literal("none")})])),V6=w.Unsafe(dV);w.Object({primitive:w.Literal(je.MidnightContractState),payloadType:w.Literal(Jt.Event),payload:V6});const hV=w.Array(w.Array(Ie.UnknownFormat));w.Object({primitive:w.Literal(je.MinaEventGeneric),payloadType:w.Literal(Jt.Event),payload:hV});const pV=w.Array(w.Array(Ie.UnknownFormat));w.Object({primitive:w.Literal(je.MinaActionGeneric),payloadType:w.Literal(Jt.Event),payload:pV});var Ar=(e=>(e.Transfer="transfer",e.Delegate="delegate",e.MintOrBurn="mint-or-burn",e.ProjectedNft="projected-nft",e.Registry="registry",e.Event="event",e))(Ar||{});w.Object({primitive:w.Literal(je.CardanoCarpDelayedAsset),payloadType:w.Literal(Ar.Transfer),payload:z6});w.Object({primitive:w.Literal(je.CardanoCarpDelegation),payloadType:w.Literal(Ar.Transfer),payload:Kv});w.Object({primitive:w.Literal(je.CardanoCarpMintBurn),payloadType:w.Literal(Ar.MintOrBurn),payload:Xv});w.Object({primitive:w.Literal(je.CardanoCarpProjectedNFT),payloadType:w.Literal(Ar.ProjectedNft),payload:Hc});w.Object({primitive:w.Literal(je.CardanoCarpTransfer),payloadType:w.Literal(Ar.Transfer),payload:Yv});w.Object({primitive:w.Literal(je.EvmRpcPaimaL2),payloadType:w.Literal(Ar.Event),payload:G6});w.Object({primitive:w.Literal(je.EvmRpcERC20),payloadType:w.Literal(Ar.Transfer),payload:Zv});w.Object({primitive:w.Literal(je.EvmRpcERC721),payloadType:w.Literal(Ar.Transfer),payload:Jv});w.Object({primitive:w.Literal(je.EvmRpcERC721),payloadType:w.Literal(Ar.MintOrBurn),payload:Nd});w.Object({primitive:w.Literal(je.EvmRpcERC1155),payloadType:w.Literal(Ar.Transfer),payload:Ld});w.Object({primitive:w.Literal(je.EvmRpcERC6551Registry),payloadType:w.Literal(Ar.Registry),payload:Q6});w.Object({primitive:w.Literal(je.MidnightContractState),payloadType:w.Literal(Ar.Event),payload:V6});wk("paima:static-config");var Mb={exports:{}},HT;function yV(){return HT||(HT=1,(function(e){(function(){var t="input is invalid type",i="finalize already called",a=typeof window=="object",s=a?window:{};s.JS_SHA3_NO_WINDOW&&(a=!1);var c=!a&&typeof self=="object",l=!s.JS_SHA3_NO_NODE_JS&&typeof it=="object"&&it.versions&&it.versions.node;l?s=ki:c&&(s=self);for(var f=!s.JS_SHA3_NO_COMMON_JS&&!0&&e.exports,p=!s.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",h="0123456789abcdef".split(""),b=[31,7936,2031616,520093696],v=[4,1024,262144,67108864],A=[1,256,65536,16777216],I=[6,1536,393216,100663296],C=[0,8,16,24],U=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],B=[224,256,384,512],_=[128,256],D=["hex","buffer","arrayBuffer","array","digest"],M={128:168,256:136},te=s.JS_SHA3_NO_NODE_JS||!Array.isArray?function(E){return Object.prototype.toString.call(E)==="[object Array]"}:Array.isArray,z=p&&(s.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)?function(E){return typeof E=="object"&&E.buffer&&E.buffer.constructor===ArrayBuffer}:ArrayBuffer.isView,ne=function(E){var P=typeof E;if(P==="string")return[E,!0];if(P!=="object"||E===null)throw new Error(t);if(p&&E.constructor===ArrayBuffer)return[new Uint8Array(E),!1];if(!te(E)&&!z(E))throw new Error(t);return[E,!1]},ce=function(E){return ne(E)[0].length===0},oe=function(E){for(var P=[],Q=0;Q<E.length;++Q)P[Q]=E[Q];return P},F=function(E,P,Q){return function(W){return new ye(E,P,E).update(W)[Q]()}},H=function(E,P,Q){return function(W,le){return new ye(E,P,le).update(W)[Q]()}},K=function(E,P,Q){return function(W,le,de,x){return Z["cshake"+E].update(W,le,de,x)[Q]()}},G=function(E,P,Q){return function(W,le,de,x){return Z["kmac"+E].update(W,le,de,x)[Q]()}},Y=function(E,P,Q,W){for(var le=0;le<D.length;++le){var de=D[le];E[de]=P(Q,W,de)}return E},X=function(E,P){var Q=F(E,P,"hex");return Q.create=function(){return new ye(E,P,E)},Q.update=function(W){return Q.create().update(W)},Y(Q,F,E,P)},pe=function(E,P){var Q=H(E,P,"hex");return Q.create=function(W){return new ye(E,P,W)},Q.update=function(W,le){return Q.create(le).update(W)},Y(Q,H,E,P)},R=function(E,P){var Q=M[E],W=K(E,P,"hex");return W.create=function(le,de,x){return ce(de)&&ce(x)?Z["shake"+E].create(le):new ye(E,P,le).bytepad([de,x],Q)},W.update=function(le,de,x,g){return W.create(de,x,g).update(le)},Y(W,K,E,P)},re=function(E,P){var Q=M[E],W=G(E,P,"hex");return W.create=function(le,de,x){return new ge(E,P,de).bytepad(["KMAC",x],Q).bytepad([le],Q)},W.update=function(le,de,x,g){return W.create(le,x,g).update(de)},Y(W,G,E,P)},fe=[{name:"keccak",padding:A,bits:B,createMethod:X},{name:"sha3",padding:I,bits:B,createMethod:X},{name:"shake",padding:b,bits:_,createMethod:pe},{name:"cshake",padding:v,bits:_,createMethod:R},{name:"kmac",padding:v,bits:_,createMethod:re}],Z={},O=[],V=0;V<fe.length;++V)for(var ie=fe[V],$=ie.bits,j=0;j<$.length;++j){var N=ie.name+"_"+$[j];if(O.push(N),Z[N]=ie.createMethod($[j],ie.padding),ie.name!=="sha3"){var k=ie.name+$[j];O.push(k),Z[k]=Z[N]}}function ye(E,P,Q){this.blocks=[],this.s=[],this.padding=P,this.outputBits=Q,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(E<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=Q>>5,this.extraBytes=(Q&31)>>3;for(var W=0;W<50;++W)this.s[W]=0}ye.prototype.update=function(E){if(this.finalized)throw new Error(i);var P=ne(E);E=P[0];for(var Q=P[1],W=this.blocks,le=this.byteCount,de=E.length,x=this.blockCount,g=0,m=this.s,S,ee;g<de;){if(this.reset)for(this.reset=!1,W[0]=this.block,S=1;S<x+1;++S)W[S]=0;if(Q)for(S=this.start;g<de&&S<le;++g)ee=E.charCodeAt(g),ee<128?W[S>>2]|=ee<<C[S++&3]:ee<2048?(W[S>>2]|=(192|ee>>6)<<C[S++&3],W[S>>2]|=(128|ee&63)<<C[S++&3]):ee<55296||ee>=57344?(W[S>>2]|=(224|ee>>12)<<C[S++&3],W[S>>2]|=(128|ee>>6&63)<<C[S++&3],W[S>>2]|=(128|ee&63)<<C[S++&3]):(ee=65536+((ee&1023)<<10|E.charCodeAt(++g)&1023),W[S>>2]|=(240|ee>>18)<<C[S++&3],W[S>>2]|=(128|ee>>12&63)<<C[S++&3],W[S>>2]|=(128|ee>>6&63)<<C[S++&3],W[S>>2]|=(128|ee&63)<<C[S++&3]);else for(S=this.start;g<de&&S<le;++g)W[S>>2]|=E[g]<<C[S++&3];if(this.lastByteIndex=S,S>=le){for(this.start=S-le,this.block=W[x],S=0;S<x;++S)m[S]^=W[S];q(m),this.reset=!0}else this.start=S}return this},ye.prototype.encode=function(E,P){var Q=E&255,W=1,le=[Q];for(E=E>>8,Q=E&255;Q>0;)le.unshift(Q),E=E>>8,Q=E&255,++W;return P?le.push(W):le.unshift(W),this.update(le),le.length},ye.prototype.encodeString=function(E){var P=ne(E);E=P[0];var Q=P[1],W=0,le=E.length;if(Q)for(var de=0;de<E.length;++de){var x=E.charCodeAt(de);x<128?W+=1:x<2048?W+=2:x<55296||x>=57344?W+=3:(x=65536+((x&1023)<<10|E.charCodeAt(++de)&1023),W+=4)}else W=le;return W+=this.encode(W*8),this.update(E),W},ye.prototype.bytepad=function(E,P){for(var Q=this.encode(P),W=0;W<E.length;++W)Q+=this.encodeString(E[W]);var le=(P-Q%P)%P,de=[];return de.length=le,this.update(de),this},ye.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var E=this.blocks,P=this.lastByteIndex,Q=this.blockCount,W=this.s;if(E[P>>2]|=this.padding[P&3],this.lastByteIndex===this.byteCount)for(E[0]=E[Q],P=1;P<Q+1;++P)E[P]=0;for(E[Q-1]|=2147483648,P=0;P<Q;++P)W[P]^=E[P];q(W)}},ye.prototype.toString=ye.prototype.hex=function(){this.finalize();for(var E=this.blockCount,P=this.s,Q=this.outputBlocks,W=this.extraBytes,le=0,de=0,x="",g;de<Q;){for(le=0;le<E&&de<Q;++le,++de)g=P[le],x+=h[g>>4&15]+h[g&15]+h[g>>12&15]+h[g>>8&15]+h[g>>20&15]+h[g>>16&15]+h[g>>28&15]+h[g>>24&15];de%E===0&&(P=oe(P),q(P),le=0)}return W&&(g=P[le],x+=h[g>>4&15]+h[g&15],W>1&&(x+=h[g>>12&15]+h[g>>8&15]),W>2&&(x+=h[g>>20&15]+h[g>>16&15])),x},ye.prototype.arrayBuffer=function(){this.finalize();var E=this.blockCount,P=this.s,Q=this.outputBlocks,W=this.extraBytes,le=0,de=0,x=this.outputBits>>3,g;W?g=new ArrayBuffer(Q+1<<2):g=new ArrayBuffer(x);for(var m=new Uint32Array(g);de<Q;){for(le=0;le<E&&de<Q;++le,++de)m[de]=P[le];de%E===0&&(P=oe(P),q(P))}return W&&(m[de]=P[le],g=g.slice(0,x)),g},ye.prototype.buffer=ye.prototype.arrayBuffer,ye.prototype.digest=ye.prototype.array=function(){this.finalize();for(var E=this.blockCount,P=this.s,Q=this.outputBlocks,W=this.extraBytes,le=0,de=0,x=[],g,m;de<Q;){for(le=0;le<E&&de<Q;++le,++de)g=de<<2,m=P[le],x[g]=m&255,x[g+1]=m>>8&255,x[g+2]=m>>16&255,x[g+3]=m>>24&255;de%E===0&&(P=oe(P),q(P))}return W&&(g=de<<2,m=P[le],x[g]=m&255,W>1&&(x[g+1]=m>>8&255),W>2&&(x[g+2]=m>>16&255)),x};function ge(E,P,Q){ye.call(this,E,P,Q)}ge.prototype=new ye,ge.prototype.finalize=function(){return this.encode(this.outputBits,!0),ye.prototype.finalize.call(this)};var q=function(E){var P,Q,W,le,de,x,g,m,S,ee,Ae,Se,Me,se,ue,Ee,Oe,_e,Ne,qe,ke,ze,Ye,Xe,ut,ft,ht,pt,mt,Mt,Rt,Tt,$t,jt,Pt,_t,na,Ka,Jo,nr,Qt,sn,Mr,ra,Wo,es,Ya,ti,ia,jr,Pr,ni,Nr,Nt,Xa,Za,br,Lr,ts,Ja,Wa,ns,vi;for(W=0;W<48;W+=2)le=E[0]^E[10]^E[20]^E[30]^E[40],de=E[1]^E[11]^E[21]^E[31]^E[41],x=E[2]^E[12]^E[22]^E[32]^E[42],g=E[3]^E[13]^E[23]^E[33]^E[43],m=E[4]^E[14]^E[24]^E[34]^E[44],S=E[5]^E[15]^E[25]^E[35]^E[45],ee=E[6]^E[16]^E[26]^E[36]^E[46],Ae=E[7]^E[17]^E[27]^E[37]^E[47],Se=E[8]^E[18]^E[28]^E[38]^E[48],Me=E[9]^E[19]^E[29]^E[39]^E[49],P=Se^(x<<1|g>>>31),Q=Me^(g<<1|x>>>31),E[0]^=P,E[1]^=Q,E[10]^=P,E[11]^=Q,E[20]^=P,E[21]^=Q,E[30]^=P,E[31]^=Q,E[40]^=P,E[41]^=Q,P=le^(m<<1|S>>>31),Q=de^(S<<1|m>>>31),E[2]^=P,E[3]^=Q,E[12]^=P,E[13]^=Q,E[22]^=P,E[23]^=Q,E[32]^=P,E[33]^=Q,E[42]^=P,E[43]^=Q,P=x^(ee<<1|Ae>>>31),Q=g^(Ae<<1|ee>>>31),E[4]^=P,E[5]^=Q,E[14]^=P,E[15]^=Q,E[24]^=P,E[25]^=Q,E[34]^=P,E[35]^=Q,E[44]^=P,E[45]^=Q,P=m^(Se<<1|Me>>>31),Q=S^(Me<<1|Se>>>31),E[6]^=P,E[7]^=Q,E[16]^=P,E[17]^=Q,E[26]^=P,E[27]^=Q,E[36]^=P,E[37]^=Q,E[46]^=P,E[47]^=Q,P=ee^(le<<1|de>>>31),Q=Ae^(de<<1|le>>>31),E[8]^=P,E[9]^=Q,E[18]^=P,E[19]^=Q,E[28]^=P,E[29]^=Q,E[38]^=P,E[39]^=Q,E[48]^=P,E[49]^=Q,se=E[0],ue=E[1],es=E[11]<<4|E[10]>>>28,Ya=E[10]<<4|E[11]>>>28,pt=E[20]<<3|E[21]>>>29,mt=E[21]<<3|E[20]>>>29,Ja=E[31]<<9|E[30]>>>23,Wa=E[30]<<9|E[31]>>>23,sn=E[40]<<18|E[41]>>>14,Mr=E[41]<<18|E[40]>>>14,jt=E[2]<<1|E[3]>>>31,Pt=E[3]<<1|E[2]>>>31,Ee=E[13]<<12|E[12]>>>20,Oe=E[12]<<12|E[13]>>>20,ti=E[22]<<10|E[23]>>>22,ia=E[23]<<10|E[22]>>>22,Mt=E[33]<<13|E[32]>>>19,Rt=E[32]<<13|E[33]>>>19,ns=E[42]<<2|E[43]>>>30,vi=E[43]<<2|E[42]>>>30,Nt=E[5]<<30|E[4]>>>2,Xa=E[4]<<30|E[5]>>>2,_t=E[14]<<6|E[15]>>>26,na=E[15]<<6|E[14]>>>26,_e=E[25]<<11|E[24]>>>21,Ne=E[24]<<11|E[25]>>>21,jr=E[34]<<15|E[35]>>>17,Pr=E[35]<<15|E[34]>>>17,Tt=E[45]<<29|E[44]>>>3,$t=E[44]<<29|E[45]>>>3,Xe=E[6]<<28|E[7]>>>4,ut=E[7]<<28|E[6]>>>4,Za=E[17]<<23|E[16]>>>9,br=E[16]<<23|E[17]>>>9,Ka=E[26]<<25|E[27]>>>7,Jo=E[27]<<25|E[26]>>>7,qe=E[36]<<21|E[37]>>>11,ke=E[37]<<21|E[36]>>>11,ni=E[47]<<24|E[46]>>>8,Nr=E[46]<<24|E[47]>>>8,ra=E[8]<<27|E[9]>>>5,Wo=E[9]<<27|E[8]>>>5,ft=E[18]<<20|E[19]>>>12,ht=E[19]<<20|E[18]>>>12,Lr=E[29]<<7|E[28]>>>25,ts=E[28]<<7|E[29]>>>25,nr=E[38]<<8|E[39]>>>24,Qt=E[39]<<8|E[38]>>>24,ze=E[48]<<14|E[49]>>>18,Ye=E[49]<<14|E[48]>>>18,E[0]=se^~Ee&_e,E[1]=ue^~Oe&Ne,E[10]=Xe^~ft&pt,E[11]=ut^~ht&mt,E[20]=jt^~_t&Ka,E[21]=Pt^~na&Jo,E[30]=ra^~es&ti,E[31]=Wo^~Ya&ia,E[40]=Nt^~Za&Lr,E[41]=Xa^~br&ts,E[2]=Ee^~_e&qe,E[3]=Oe^~Ne&ke,E[12]=ft^~pt&Mt,E[13]=ht^~mt&Rt,E[22]=_t^~Ka&nr,E[23]=na^~Jo&Qt,E[32]=es^~ti&jr,E[33]=Ya^~ia&Pr,E[42]=Za^~Lr&Ja,E[43]=br^~ts&Wa,E[4]=_e^~qe&ze,E[5]=Ne^~ke&Ye,E[14]=pt^~Mt&Tt,E[15]=mt^~Rt&$t,E[24]=Ka^~nr&sn,E[25]=Jo^~Qt&Mr,E[34]=ti^~jr&ni,E[35]=ia^~Pr&Nr,E[44]=Lr^~Ja&ns,E[45]=ts^~Wa&vi,E[6]=qe^~ze&se,E[7]=ke^~Ye&ue,E[16]=Mt^~Tt&Xe,E[17]=Rt^~$t&ut,E[26]=nr^~sn&jt,E[27]=Qt^~Mr&Pt,E[36]=jr^~ni&ra,E[37]=Pr^~Nr&Wo,E[46]=Ja^~ns&Nt,E[47]=Wa^~vi&Xa,E[8]=ze^~se&Ee,E[9]=Ye^~ue&Oe,E[18]=Tt^~Xe&ft,E[19]=$t^~ut&ht,E[28]=sn^~jt&_t,E[29]=Mr^~Pt&na,E[38]=ni^~ra&es,E[39]=Nr^~Wo&Ya,E[48]=ns^~Nt&Za,E[49]=vi^~Xa&br,E[0]^=U[W],E[1]^=U[W+1]};if(f)e.exports=Z;else for(V=0;V<O.length;++V)s[O[V]]=Z[O[V]]})()})(Mb)),Mb.exports}var gV=yV();const K6=Hd(gV),{keccak_256:mV}=K6;function Y6(e){return`0x${mV(e).slice(0,40)}`}Y6(`${Je.CARDANO_CARP_PARALLEL}-${je.CardanoCarpMintBurn}-${Jt.MintOrBurn}`);Y6(`${Je.CARDANO_CARP_PARALLEL}-${je.CardanoCarpTransfer}-${Jt.Transfer}`);je.EvmRpcERC20+"",Ns(["from","to","value"]).from(Zv),je.EvmRpcERC721+"",Ns(["from","tokenId","mintData"]).from(Nd),[Jv.properties.from,...Fd(["tokenId"]).from(Nd)],je.EvmRpcERC1155+"",Ns(["operator","from","to","ids","values"]).from(Ld),Fd(["operator","from","ids","values"]).from(Ld),je.EvmRpcERC6551Registry+"",je.EvmRpcDynamicPrimitive+"",je.EvmRpcGeneric+"",je.CardanoCarpDelegation+"",Ns(["address","pool","epoch"]).from(Kv),je.CardanoCarpProjectedNFT+"",[...Fd(["ownerAddress","previousTxHash","previousTxOutputIndex","policyId","assetName","amount","status","forHowLong"]).from(Hc),Hc.properties.actionTxId,Hc.properties.actionOutputIndex],je.CardanoCarpDelayedAsset+"",je.CardanoCarpTransfer+"",Ns(["txId","rawTx","inputCredentials","outputs","metadata"]).from(Yv),je.CardanoCarpMintBurn+"",Ns(["txId","metadata","assets","inputAddresses","outputAddresses"]).from(Xv),je.CardanoUtxorpcMatchTx+"",je.MinaEventGeneric+"",je.MinaActionGeneric+"",je.MidnightContractState+"";const{keccak_256:$V}=K6;function X6(e,t,i,a){return(""+t+i+a).replace(/[^a-zA-Z0-9]/g,"-").toLocaleLowerCase()}const AV={EVM:0};async function bV(e,t){const i=fi(t.privateKey),a=qc({account:i,chain:$c,transport:Lc()}),s=Date.now().toString(),c=i.address,l=AV.EVM,f=X6(null,s,c,e),p=await a.signMessage({account:i,message:f});return{addressType:l,userAddress:c,userSignature:p,gameInput:e,millisecondTimestamp:s}}async function vV(e){const t=await fetch(p6,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);return await t.json()}async function xd(e,t){console.log("🚀 Creating signed input for:",e);const i=await bV(e,t);console.log("✅ Signed input created:",{...i,userSignature:i.userSignature.slice(0,10)+"..."}),console.log("📤 Sending to batcher...");const a=await vV(i);return console.log("🎉 Batcher response:",a),a}function xV(){const[e,t]=Re.useState([]),[i,a]=Re.useState(!0),[s,c]=Re.useState(null),[l,f]=Re.useState(10),[p,h]=Re.useState(0),[b,v]=Re.useState([void 0]),[A,I]=Re.useState(!1),[C,U]=Re.useState([]),[B,_]=Re.useState(null),[D,M]=Re.useState([]),[te,z]=Re.useState(!1),[ne,ce]=Re.useState(!1),[oe,F]=Re.useState(!1),[H,K]=Re.useState(""),[G,Y]=Re.useState(""),[X,pe]=Re.useState(""),[R,re]=Re.useState(null),[fe,Z]=Re.useState(null),O=(de,x,g)=>{const m=Date.now(),S={id:m,type:de,title:x,message:g};M(ee=>[...ee,S]),setTimeout(()=>{M(ee=>ee.filter(Ae=>Ae.id!==m))},5e3)},V=de=>{M(x=>x.filter(g=>g.id!==de))},ie=()=>{const de=FB(),x=fi(de),g={id:Date.now().toString(),privateKey:de,address:x.address,name:`Wallet ${C.length+1}`};U(m=>[...m,g]),_(g),O("success","Wallet Generated",`New wallet created: ${x.address.slice(0,6)}...${x.address.slice(-4)}`)},$=de=>{U(x=>x.filter(g=>g.id!==de)),(B==null?void 0:B.id)===de&&_(null)},j=async()=>{if(!B){O("error","No Wallet","Please select a wallet first");return}F(!0);try{const x=JSON.stringify(["&createAccount"]);await xd(x,B),O("success","Account Created","Successfully created account! Use the refresh button to see updated addresses.")}catch(de){O("error","Create Account Error",`Error creating account: ${de instanceof Error?de.message:"Unknown error"}`)}finally{F(!1)}},N=async()=>{if(!B){O("error","No Wallet","Please select a wallet first");return}if(!R){O("error","No Account","Please select an account ID");return}F(!0);try{const de=["&unlinkAddress",R.toString(),"","",""],x=JSON.stringify(de);await xd(x,B),O("success","Self Unlinked","Successfully unlinked self from account! Use the refresh button to see updated addresses.")}catch(de){O("error","Unlink Self Error",`Error unlinking self: ${de instanceof Error?de.message:"Unknown error"}`)}finally{F(!1)}},k=async()=>{if(!B){O("error","No Wallet","Please select a wallet first");return}if(!R){O("error","No Account","Please select an account ID");return}if(!X.trim()){O("error","No Address","Please enter an address to unlink");return}const de=qc({account:fi(B.privateKey),chain:$c,transport:Lc()});F(!0);const x=`unlink:${String(R)}:${X.toString().toLowerCase().trim()}:`,g=await de.signMessage({account:fi(B.privateKey),message:x});try{const m=["&unlinkAddress",R.toString(),g,X.toString().toLowerCase().trim(),""],S=JSON.stringify(m);await xd(S,B),O("success","Address Unlinked","Successfully unlinked address from account! Use the refresh button to see updated addresses."),pe("")}catch(m){O("error","Unlink Other Error",`Error unlinking address: ${m instanceof Error?m.message:"Unknown error"}`)}finally{F(!1)}},ye=async()=>{if(!B){O("error","No Wallet","Please select a wallet first");return}if(!R){O("error","No Account","Please select an account ID");return}if(!fe){O("error","No Link Wallet","Please select a wallet to link");return}F(!0);try{const de=qc({account:fi(B.privateKey),chain:$c,transport:Lc()}),x=qc({account:fi(fe.privateKey),chain:$c,transport:Lc()}),g=`link:${R}:${fe.address.toString().toLowerCase().trim()}:false`,m=await de.signMessage({account:fi(B.privateKey),message:g}),S=`link:${R}:${B.address.toString().toLowerCase().trim()}:false`,ee=await x.signMessage({account:fi(fe.privateKey),message:S}),Ae=["&linkAddress",R.toString(),m,fe.address.toString().toLowerCase().trim(),ee,"false"],Se=JSON.stringify(Ae);await xd(Se,B),O("success","Address Linked","Successfully linked address to account! Use the refresh button to see updated addresses."),Z(null)}catch(de){O("error","Link Address Error",`Error linking address: ${de instanceof Error?de.message:"Unknown error"}`)}finally{F(!1)}},ge=async()=>{try{a(!0),c(null);const de=new URL(Uk);de.searchParams.set("limit",String(l));const x=b[p];x&&de.searchParams.set("after",x);const g=await fetch(de.toString());if(!g.ok)throw new Error(`HTTP error! status: ${g.status}`);const m=await g.json(),S=m.data??[];t(S),m.pagination&&(I(m.pagination.hasMore??!1),m.pagination.nextCursor&&b.length===p+1&&v(ee=>[...ee,m.pagination.nextCursor]))}catch(de){console.error("Error fetching addresses:",de),c(de instanceof Error?de.message:"Unknown error")}finally{a(!1)}};Re.useEffect(()=>{ge()},[l,p]);const q=e.reduce((de,x)=>{const g=de.find(m=>m.account_id===x.account_id);return g?(g.addresses.includes(x.address)||g.addresses.push(x.address),x.primary_address&&(g.hasPrimaryAddress=!0,g.primaryAddress=x.primary_address)):de.push({account_id:x.account_id,addresses:[x.address],hasPrimaryAddress:!!x.primary_address,primaryAddress:x.primary_address}),de},[]),E=[...new Set(q.map(de=>de.account_id).filter(de=>de!==null))],P=de=>{f(Number(de.target.value)),h(0),v([void 0])},Q=()=>{A&&h(de=>de+1)},W=()=>{h(de=>Math.max(0,de-1))},le=()=>{h(0)};return i?J.jsx("div",{className:"addresses-loading",children:J.jsx("div",{className:"loading-text",children:"Loading addresses..."})}):s?J.jsx("div",{className:"addresses-error",children:J.jsxs("div",{className:"error-text",children:["Error loading addresses: ",s]})}):J.jsxs("div",{className:"addresses-table-container",children:[J.jsx("div",{style:{position:"fixed",top:"20px",right:"20px",zIndex:1e3,display:"flex",flexDirection:"column",gap:"10px"},children:D.map(de=>J.jsxs("div",{style:{background:de.type==="success"?"#10b981":de.type==="error"?"#ef4444":"#3b82f6",color:"white",padding:"12px 16px",borderRadius:"8px",minWidth:"300px",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",display:"flex",justifyContent:"space-between",alignItems:"flex-start",animation:"slideIn 0.3s ease-out"},children:[J.jsxs("div",{children:[J.jsx("div",{style:{fontWeight:"600",marginBottom:"4px"},children:de.title}),J.jsx("div",{style:{fontSize:"14px",opacity:.9},children:de.message})]}),J.jsx("button",{type:"button",onClick:()=>V(de.id),style:{background:"none",border:"none",color:"white",cursor:"pointer",fontSize:"18px",padding:"0",marginLeft:"12px",opacity:.7},children:"×"})]},de.id))}),J.jsxs("div",{style:{marginBottom:"20px",padding:"20px",border:"1px solid #ddd",borderRadius:"8px",background:"#f8fafc"},children:[J.jsxs("div",{onClick:()=>z(!te),style:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",marginBottom:te?0:"20px"},children:[J.jsx("h3",{style:{margin:0,color:"#333"},children:"Wallet Management"}),J.jsx("span",{style:{fontSize:"18px",color:"#666",transform:te?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.2s ease-in-out"},children:"▼"})]}),!te&&J.jsxs(J.Fragment,{children:[J.jsx("div",{style:{marginBottom:"20px"},children:J.jsx("button",{type:"button",onClick:ie,style:{padding:"10px 16px",background:"linear-gradient(45deg, #19b17b, #022418)",color:"white",border:"none",borderRadius:"6px",cursor:"pointer",fontWeight:"600",fontSize:"14px"},children:"Generate New EVM Wallet"})}),C.length>0&&J.jsxs("div",{style:{marginBottom:"20px"},children:[J.jsx("h4",{style:{margin:"0 0 10px 0",color:"#333"},children:"Available Wallets:"}),J.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:C.map(de=>J.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"10px",border:(B==null?void 0:B.id)===de.id?"2px solid #19b17b":"1px solid #ddd",borderRadius:"6px",background:(B==null?void 0:B.id)===de.id?"#f0fdf4":"white"},children:[J.jsx("input",{type:"radio",name:"selectedWallet",checked:(B==null?void 0:B.id)===de.id,onChange:()=>_(de),style:{margin:0}}),J.jsx("span",{style:{fontSize:"14px",fontFamily:"monospace",color:"#666",flex:"1"},children:de.name}),J.jsx("span",{style:{fontSize:"14px",fontFamily:"monospace",color:"#666",flex:"2"},children:de.address}),J.jsx("button",{type:"button",onClick:()=>$(de.id),style:{padding:"4px 8px",background:"#ef4444",color:"white",border:"none",borderRadius:"4px",cursor:"pointer",fontSize:"12px"},children:"Remove"})]},de.id))})]})]})]}),B&&J.jsxs("div",{style:{marginBottom:"20px",padding:"20px",border:"1px solid #ddd",borderRadius:"8px",background:"#fef7ff"},children:[J.jsxs("div",{onClick:()=>ce(!ne),style:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",marginBottom:ne?0:"20px"},children:[J.jsx("h3",{style:{margin:0,color:"#333"},children:"Account Commands"}),J.jsx("span",{style:{fontSize:"18px",color:"#666",transform:ne?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.2s ease-in-out"},children:"▼"})]}),!ne&&J.jsxs(J.Fragment,{children:[J.jsxs("div",{style:{marginBottom:"20px"},children:[J.jsx("label",{style:{display:"block",marginBottom:"10px",fontWeight:"600",fontSize:"16px"},children:"What would you like to do?"}),J.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:[J.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"12px",border:H==="create"?"2px solid #19b17b":"1px solid #ddd",borderRadius:"6px",background:H==="create"?"#f0fdf4":"white",cursor:"pointer"},onClick:()=>K("create"),children:[J.jsx("input",{type:"radio",name:"action",checked:H==="create",onChange:()=>K("create"),style:{margin:0}}),J.jsxs("div",{style:{flex:"1"},children:[J.jsx("div",{style:{fontWeight:"600",marginBottom:"4px"},children:"1. Create new account"}),J.jsx("div",{style:{fontSize:"14px",color:"#666",fontStyle:"italic"},children:"Can only create if not linked to any account"})]})]}),J.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"12px",border:H==="link"?"2px solid #3b82f6":"1px solid #ddd",borderRadius:"6px",background:H==="link"?"#eff6ff":"white",cursor:"pointer"},onClick:()=>K("link"),children:[J.jsx("input",{type:"radio",name:"action",checked:H==="link",onChange:()=>K("link"),style:{margin:0}}),J.jsxs("div",{style:{flex:"1"},children:[J.jsx("div",{style:{fontWeight:"600",marginBottom:"4px"},children:"2. Link Account"}),J.jsx("div",{style:{fontSize:"14px",color:"#666",fontStyle:"italic"},children:"Only Account Primary can do this Action"})]})]}),J.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"12px",border:H==="unlink-other"?"2px solid #f59e0b":"1px solid #ddd",borderRadius:"6px",background:H==="unlink-other"?"#fffbeb":"white",cursor:"pointer"},onClick:()=>K("unlink-other"),children:[J.jsx("input",{type:"radio",name:"action",checked:H==="unlink-other",onChange:()=>K("unlink-other"),style:{margin:0}}),J.jsxs("div",{style:{flex:"1"},children:[J.jsx("div",{style:{fontWeight:"600",marginBottom:"4px"},children:"3. Unlink Account"}),J.jsx("div",{style:{fontSize:"14px",color:"#666",fontStyle:"italic"},children:"Only Account Primary can do this Action"})]})]}),J.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"12px",border:H==="unlink-self"?"2px solid #ef4444":"1px solid #ddd",borderRadius:"6px",background:H==="unlink-self"?"#fef2f2":"white",cursor:"pointer"},onClick:()=>K("unlink-self"),children:[J.jsx("input",{type:"radio",name:"action",checked:H==="unlink-self",onChange:()=>K("unlink-self"),style:{margin:0}}),J.jsxs("div",{style:{flex:"1"},children:[J.jsx("div",{style:{fontWeight:"600",marginBottom:"4px"},children:"4. Unlink Self"}),J.jsx("div",{style:{fontSize:"14px",color:"#666",fontStyle:"italic"},children:"Unlink self from account"})]})]})]})]}),H&&J.jsxs("div",{style:{marginTop:"20px",padding:"20px",background:"#f8fafc",borderRadius:"8px",border:"1px solid #e2e8f0"},children:[H==="create"&&J.jsxs("div",{children:[J.jsx("h4",{style:{margin:"0 0 15px 0",color:"#333"},children:"Create New Account"}),J.jsx("p",{style:{margin:"0 0 15px 0",color:"#666",fontSize:"14px"},children:"This will create a new account with your selected wallet as the primary address."}),J.jsx("button",{type:"button",onClick:j,disabled:oe,style:{padding:"10px 20px",background:oe?"#ccc":"linear-gradient(45deg, #19b17b, #022418)",color:"white",border:"none",borderRadius:"6px",cursor:oe?"not-allowed":"pointer",fontWeight:"600",fontSize:"14px"},children:oe?"Creating...":"Create Account"})]}),H==="link"&&J.jsxs("div",{children:[J.jsx("h4",{style:{margin:"0 0 15px 0",color:"#333"},children:"Link Account"}),J.jsx("p",{style:{margin:"0 0 15px 0",color:"#666",fontSize:"14px"},children:"Link a wallet to an existing account. You must be the primary address of the account, and the wallet to link must have a private key."}),J.jsxs("div",{style:{marginBottom:"15px"},children:[J.jsx("label",{style:{display:"block",marginBottom:"5px",fontWeight:"600"},children:"Account ID:"}),J.jsxs("select",{value:R||"",onChange:de=>re(de.target.value?parseInt(de.target.value):null),style:{padding:"8px",border:"1px solid #ddd",borderRadius:"4px",width:"200px"},children:[J.jsx("option",{value:"",children:"-- Select Account ID --"}),E.map(de=>J.jsxs("option",{value:de,children:["Account ",de]},de))]})]}),J.jsxs("div",{style:{marginBottom:"15px"},children:[J.jsx("label",{style:{display:"block",marginBottom:"5px",fontWeight:"600"},children:"Wallet to Link:"}),J.jsxs("select",{value:(fe==null?void 0:fe.id)||"",onChange:de=>{const x=C.find(g=>g.id===de.target.value);Z(x||null)},style:{padding:"8px",border:"1px solid #ddd",borderRadius:"4px",width:"300px"},children:[J.jsx("option",{value:"",children:"-- Select a wallet to link --"}),C.filter(de=>de.id!==(B==null?void 0:B.id)).map(de=>J.jsxs("option",{value:de.id,children:[de.name," (",de.address,")"]},de.id))]})]}),J.jsx("button",{type:"button",onClick:ye,disabled:oe||!R||!fe,style:{padding:"10px 20px",background:oe||!R||!fe?"#ccc":"linear-gradient(45deg, #3b82f6, #1e3a8a)",color:"white",border:"none",borderRadius:"6px",cursor:oe||!R||!fe?"not-allowed":"pointer",fontWeight:"600",fontSize:"14px"},children:oe?"Linking...":"Link Wallet"})]}),H==="unlink-other"&&J.jsxs("div",{children:[J.jsx("h4",{style:{margin:"0 0 15px 0",color:"#333"},children:"Unlink Account"}),J.jsx("p",{style:{margin:"0 0 15px 0",color:"#666",fontSize:"14px"},children:"Unlink a specific address from an account. You must be the primary address of the account."}),J.jsxs("div",{style:{marginBottom:"15px"},children:[J.jsx("label",{style:{display:"block",marginBottom:"5px",fontWeight:"600"},children:"Account ID:"}),J.jsxs("select",{value:R||"",onChange:de=>re(de.target.value?parseInt(de.target.value):null),style:{padding:"8px",border:"1px solid #ddd",borderRadius:"4px",width:"200px"},children:[J.jsx("option",{value:"",children:"-- Select Account ID --"}),E.map(de=>J.jsxs("option",{value:de,children:["Account ",de]},de))]})]}),J.jsxs("div",{style:{marginBottom:"15px"},children:[J.jsx("label",{style:{display:"block",marginBottom:"5px",fontWeight:"600"},children:"Address to Unlink:"}),J.jsx("input",{type:"text",value:X,onChange:de=>pe(de.target.value),placeholder:"Enter address to unlink",style:{padding:"8px",border:"1px solid #ddd",borderRadius:"4px",width:"300px"}})]}),J.jsx("button",{type:"button",onClick:k,disabled:oe||!R||!X.trim(),style:{padding:"10px 20px",background:oe||!R||!X.trim()?"#ccc":"linear-gradient(45deg, #f59e0b, #92400e)",color:"white",border:"none",borderRadius:"6px",cursor:oe||!R||!X.trim()?"not-allowed":"pointer",fontWeight:"600",fontSize:"14px"},children:oe?"Unlinking...":"Unlink Address"})]}),H==="unlink-self"&&J.jsxs("div",{children:[J.jsx("h4",{style:{margin:"0 0 15px 0",color:"#333"},children:"Unlink Self"}),J.jsx("p",{style:{margin:"0 0 15px 0",color:"#666",fontSize:"14px"},children:"Unlink yourself from an account. This will remove your address from the account."}),J.jsxs("div",{style:{marginBottom:"15px"},children:[J.jsx("label",{style:{display:"block",marginBottom:"5px",fontWeight:"600"},children:"Account ID:"}),J.jsxs("select",{value:R||"",onChange:de=>re(de.target.value?parseInt(de.target.value):null),style:{padding:"8px",border:"1px solid #ddd",borderRadius:"4px",width:"200px"},children:[J.jsx("option",{value:"",children:"-- Select Account ID --"}),E.map(de=>J.jsxs("option",{value:de,children:["Account ",de]},de))]})]}),J.jsx("button",{type:"button",onClick:N,disabled:oe||!R,style:{padding:"10px 20px",background:oe||!R?"#ccc":"linear-gradient(45deg, #ef4444, #7f1d1d)",color:"white",border:"none",borderRadius:"6px",cursor:oe||!R?"not-allowed":"pointer",fontWeight:"600",fontSize:"14px"},children:oe?"Unlinking...":"Unlink Self"})]})]})]})]}),J.jsxs("div",{className:"addresses-table-wrapper",children:[J.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"15px"},children:[J.jsx("h3",{style:{margin:0,color:"#333"},children:"Addresses"}),J.jsx("div",{className:"table-controls",children:J.jsxs("label",{children:["Rows per page:",J.jsxs("select",{value:l,onChange:P,children:[J.jsx("option",{value:10,children:"10"}),J.jsx("option",{value:20,children:"20"}),J.jsx("option",{value:50,children:"50"})]})]})})]}),i&&J.jsx("p",{children:"Loading..."}),s&&J.jsx("p",{className:"error",children:s}),!i&&!s&&J.jsxs(J.Fragment,{children:[J.jsxs("table",{className:"addresses-table",children:[J.jsx("thead",{children:J.jsxs("tr",{children:[J.jsx("th",{children:"Account ID"}),J.jsx("th",{children:"Addresses"})]})}),J.jsx("tbody",{children:q.map((de,x)=>J.jsxs("tr",{className:de.hasPrimaryAddress?"has-primary-address":"",children:[J.jsx("td",{className:"account-id-cell",children:J.jsx("div",{className:"account-id-content",children:de.account_id??"No Account ID"})}),J.jsx("td",{className:"addresses-cell",children:de.addresses.map((g,m)=>J.jsxs("div",{className:`address-item ${g===de.primaryAddress?"primary-address":""}`,title:g===de.primaryAddress?`${g} (Primary)`:g,children:[g,g===de.primaryAddress&&J.jsx("span",{className:"primary-badge",children:"Primary"})]},g))})]},de.account_id??`null-${x}`))})]}),J.jsxs("div",{className:"pagination-controls",children:[J.jsx("button",{type:"button",onClick:le,disabled:p===0,children:"First"}),J.jsx("button",{type:"button",onClick:W,disabled:p===0,children:"Previous"}),J.jsx("button",{type:"button",onClick:Q,disabled:!A||e.length<l,children:"Next"})]})]})]}),q.length===0&&J.jsx("div",{className:"no-addresses",children:J.jsx("div",{className:"no-data-text",children:"No addresses found"})}),J.jsx("style",{children:`
133
- @keyframes slideIn {
134
- from {
135
- transform: translateX(100%);
136
- opacity: 0;
137
- }
138
- to {
139
- transform: translateX(0);
140
- opacity: 1;
141
- }
142
- }
143
- `})]})}function jb({latestBlock:e,isConnected:t}){const[i,a]=Re.useState(!1),[s,c]=Re.useState(!1),[l,f]=Re.useState(!1),[p,h]=Re.useState(!1),b=()=>{a(!0)},v=()=>{a(!1)},A=()=>{c(!0)},I=()=>{c(!1)},C=()=>{f(!0)},U=()=>{f(!1)},B=()=>{h(!0)},_=()=>{h(!1)};return J.jsxs(J.Fragment,{children:[J.jsxs("header",{className:"header",children:[J.jsx("h1",{className:"title",children:"Paima Explorer"}),J.jsxs("div",{className:"header-right",children:[J.jsx("button",{type:"button",className:"batcher-api-button",onClick:b,children:"Batcher API"}),J.jsx("button",{type:"button",className:"node-api-button",onClick:A,children:"Paima Engine Node API"}),J.jsx("button",{type:"button",className:"documentation-button",onClick:C,children:"Documentation"}),J.jsx("button",{type:"button",className:"addresses-button",onClick:B,children:"Addresses"}),J.jsxs("div",{className:"block-info",children:[J.jsx("span",{children:"Latest Block:"}),J.jsx("span",{id:"latest-block",style:{backgroundColor:t?"rgba(76, 175, 80, 0.1)":"rgba(244, 67, 54, 0.1)",color:t?"#4caf50":"#f44336"},children:t?e.toLocaleString():"Connection Error"})]})]})]}),J.jsx(Bc,{isOpen:i,onClose:v,title:"Batcher API Documentation",className:"api",url:UC,children:J.jsx("div",{className:"documentation-content",children:J.jsx("iframe",{src:UC,className:"documentation-iframe",title:"Batcher API Documentation"})})}),J.jsx(Bc,{isOpen:s,onClose:I,title:"Paima Engine Node API Documentation",className:"api",url:MC,children:J.jsx("div",{className:"documentation-content",children:J.jsx("iframe",{src:MC,className:"documentation-iframe",title:"Paima Engine Node API Documentation"})})}),J.jsx(Bc,{className:"docs",isOpen:l,onClose:U,title:"Documentation",url:jC,children:J.jsx("div",{className:"documentation-content",children:J.jsx("iframe",{src:jC,className:"documentation-iframe",title:"Documentation"})})}),J.jsx(Bc,{className:"addresses",isOpen:p,onClose:_,title:"Addresses",children:J.jsx(xV,{})})]})}function EV(e){return e.toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})}function wV({block:e,isNew:t=!1}){const[i,a]=Re.useState(!1),s=async()=>{try{await navigator.clipboard.writeText(e.hash),a(!0),setTimeout(()=>a(!1),300),console.log(`📋 Copied to clipboard: ${e.hash}`)}catch(c){console.error("Failed to copy to clipboard:",c)}};return J.jsxs("div",{className:`block-item ${t?"new-block":""}`,onClick:s,style:{backgroundColor:i?"rgba(76, 175, 80, 0.2)":void 0,cursor:"pointer"},children:[J.jsxs("div",{className:"block-header",children:[J.jsxs("div",{className:"block-number",children:["Block #",e.number.toLocaleString()]}),J.jsx("div",{className:"block-timestamp",children:EV(e.timestamp)})]}),J.jsx("div",{className:"block-hash",children:e.hash})]})}function IV({title:e,blockTime:t,blocks:i,isMainColumn:a=!1,newBlockIndex:s}){const c=i.filter((l,f,p)=>f===p.findIndex(h=>h.number===l.number&&h.hash===l.hash));return J.jsxs("div",{className:`row ${a?"main-row":""}`,children:[J.jsxs("h2",{className:"row-title",children:[e,t?` - Block Time: ${t}`:""]}),J.jsx("div",{className:"blocks-list",children:c.length===0?J.jsx("div",{className:"block-item placeholder",children:"No Blocks Fetched"}):c.map((l,f)=>J.jsx(wV,{block:l,isNew:s===f},`${f}-${l.number}-${l.hash}`))})]})}function SV(e,t){if(t.blockTime)return`${t.blockTime/1e3}s`}function kT({chainConfigs:e,newBlockIndices:t}){return J.jsx("div",{className:"rows-container",children:Object.entries(e).map(([i,a])=>{const c=(a.type||"").toUpperCase()==="CARDANO"?[]:a.blocks;return J.jsx(IV,{title:a.name,blockTime:SV(i,a),blocks:c,isMainColumn:i==="paima",newBlockIndex:t[i]},i)})})}function CV(e,t){if(e==null)return"";if(t==="inputs"&&typeof e=="string")try{const i=JSON.parse(e);return`<code style="font-size: 0.75em; background: rgba(0,0,0,0.1); padding: 4px 6px; border-radius: 3px; display: block; white-space: pre-wrap; max-height: 80px; overflow-y: auto;">${JSON.stringify(i,null,1).replace(/\n/g,"<br>")}</code>`}catch{return e.toString()}if(typeof e=="string"&&e.startsWith("0x")&&e.length===42)return`<span class="address-cell" style="overflow: hidden; text-overflow: ellipsis;" title="${e}">${e}</span>`;if(typeof e=="string"&&/^\d+$/.test(e)&&e.length>10){const i=BigInt(e);return t&&t.toLowerCase().includes("balance")?`${(Number(i)/Math.pow(10,18)).toFixed(6)} ETH`:i.toString()}return e.toString()}function OV({title:e,data:t,pagination:i,onPrev:a,onNext:s,onFirst:c,onLimitChange:l}){const f=t&&t.rows&&t.fields&&t.rows.length>0,p=(t==null?void 0:t.fields)||[],h=(t==null?void 0:t.rows)||[],b=!!i&&i.hasMore&&h.length>=i.limit,v=!!i&&i.currentPage>0,A=!i||!v&&!b;return J.jsxs("div",{className:`primitive-table-container ${h.length>6?"has-scroll":""}`,children:[J.jsx("h3",{className:"primitive-table-title",children:e}),f?J.jsxs("table",{className:"primitive-table",children:[J.jsx("thead",{children:J.jsx("tr",{children:p.map(I=>J.jsx("th",{children:I.name.replace(/_/g," ").toUpperCase()},I.name))})}),J.jsx("tbody",{children:h.slice().reverse().map((I,C)=>J.jsx("tr",{children:p.map(U=>{const B=I[U.name],_=CV(B,U.name),D=B?B.toString():"";return J.jsx("td",{dangerouslySetInnerHTML:{__html:_},title:D.length>30?D:void 0},U.name)})},C))})]}):J.jsx("div",{className:"table-error",children:"No data available"}),i&&!A&&J.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginTop:8},children:J.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[J.jsx("button",{type:"button",onClick:c,disabled:!v,style:{padding:"6px 10px",borderRadius:6,border:"1px solid #ddd",background:v?"white":"#f3f4f6",cursor:v?"pointer":"not-allowed"},children:"First"}),J.jsx("button",{type:"button",onClick:a,disabled:!v,style:{padding:"6px 10px",borderRadius:6,border:"1px solid #ddd",background:v?"white":"#f3f4f6",cursor:v?"pointer":"not-allowed"},children:"Prev"}),J.jsx("button",{type:"button",onClick:s,disabled:!b,style:{padding:"6px 10px",borderRadius:6,border:"1px solid #ddd",background:b?"white":"#f3f4f6",cursor:b?"pointer":"not-allowed"},children:"Next"})]})})]})}function Pb({title:e,tables:t,isLoading:i=!1,children:a,pagination:s,onPrev:c,onNext:l,onFirst:f,onLimitChange:p}){const h=Object.entries(t);return J.jsxs("div",{className:"tables-section",children:[J.jsx("h2",{className:"section-title",children:e}),a,J.jsx("div",{className:"primitive-tables",children:h.length===0?J.jsxs("div",{className:"table-error",children:["No ",e.toLowerCase()," configured"]}):h.map(([b,v])=>J.jsx(OV,{title:b,data:v,pagination:s==null?void 0:s[b],onPrev:c?()=>c(b):void 0,onNext:l?()=>l(b):void 0,onFirst:f?()=>f(b):void 0,onLimitChange:p?A=>p(b,A):void 0},b))})]})}const FV={EVM:0};async function TV(e,t){const i=fi(t.privateKey),a=qc({account:i,chain:$c,transport:Lc()}),s=Date.now().toString(),c=i.address,l=FV.EVM,f=X6(null,s,c,e),p=await a.signMessage({message:f});return{addressType:l,userAddress:c,userSignature:p,gameInput:e,millisecondTimestamp:s}}async function BV(e){const t=await fetch(p6,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);return await t.json()}async function RV(e,t){console.log("🚀 Creating signed input for:",e);const i=await TV(e,t);console.log("✅ Signed input created:",{...i,userSignature:i.userSignature.slice(0,10)+"..."}),console.log("📤 Sending to batcher...");const a=await BV(i);return console.log("🎉 Batcher response:",a),a}async function _V(){try{const e=await fetch(Tk);if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);return await e.json()}catch(e){throw console.error("Error fetching grammar:",e),e}}function DV(){const[e,t]=Re.useState(""),[i,a]=Re.useState({}),[s,c]=Re.useState(!1),[l,f]=Re.useState(null),[p,h]=Re.useState([]),[b,v]=Re.useState(!0),[A,I]=Re.useState({}),[C,U]=Re.useState(!0),B=(F,H,K)=>{const G=Date.now(),Y={id:G,type:F,title:H,message:K};h(X=>[...X,Y]),setTimeout(()=>{h(X=>X.filter(pe=>pe.id!==G))},5e3)};Re.useEffect(()=>{(async()=>{try{U(!0);const H=await _V();I(H)}catch{B("error","Grammar Error","Failed to load grammar from server")}finally{U(!1)}})()},[]);const _=Object.keys(A),D=()=>{const F=FB(),H=fi(F),K={privateKey:F,address:H.address};f(K),B("success","Wallet Generated",`New wallet created: ${H.address.slice(0,6)}...${H.address.slice(-4)}`)},M=F=>{h(H=>H.filter(K=>K.id!==F))},te=F=>{t(F),a({})},z=(F,H)=>{a(K=>({...K,[F]:H}))},ne=()=>{if(!e)return null;const F=[e],H=A[e];for(const[K,G]of H){const Y=i[K];if(Y!==void 0&&Y!=="")if(G.type==="integer")F.push(parseInt(Y)||0);else if(G.type==="object")try{F.push(typeof Y=="string"?JSON.parse(Y):Y)}catch{F.push(Y)}else F.push(Y)}return F},ce=(F,H)=>{const K=i[F]||"";return H.type==="integer"?J.jsx("input",{type:"number",value:K,onChange:G=>z(F,G.target.value),placeholder:`Enter ${F}`,style:{padding:"8px",border:"1px solid #ccc",borderRadius:"4px",width:"200px"}}):H.type==="string"?J.jsx("input",{type:"text",value:K,onChange:G=>z(F,G.target.value),placeholder:`Enter ${F}`,style:{padding:"8px",border:"1px solid #ccc",borderRadius:"4px",width:"200px"}}):H.type==="object"?J.jsx("textarea",{value:typeof K=="string"?K:JSON.stringify(K,null,2),onChange:G=>z(F,G.target.value),placeholder:`Enter ${F} as JSON object`,rows:3,style:{padding:"8px",border:"1px solid #ccc",borderRadius:"4px",width:"300px",fontFamily:"monospace"}}):J.jsx("input",{type:"text",value:K,onChange:G=>z(F,G.target.value),placeholder:`Enter ${F}`,style:{padding:"8px",border:"1px solid #ccc",borderRadius:"4px",width:"200px"}})},oe=async()=>{if(!e){B("error","Missing Type","Please select a type");return}if(!l){B("error","No Wallet","Please generate a wallet first");return}const F=ne();if(!F){B("error","Invalid Input","Failed to build JSON array");return}c(!0);try{const H=JSON.stringify(F);await RV(H,l),B("success","Success!","Successfully sent to batcher! Check console for details."),a({})}catch(H){B("error","Batcher Error",`Error sending to batcher: ${H instanceof Error?H.message:"Unknown error"}`)}finally{c(!1)}};return J.jsxs("div",{style:{marginBottom:"20px",padding:"20px",border:"1px solid #ddd",borderRadius:"8px",position:"relative"},children:[J.jsx("div",{style:{position:"fixed",top:"20px",right:"20px",zIndex:1e3,display:"flex",flexDirection:"column",gap:"10px"},children:p.map(F=>J.jsxs("div",{style:{background:F.type==="success"?"#10b981":F.type==="error"?"#ef4444":"#3b82f6",color:"white",padding:"12px 16px",borderRadius:"8px",minWidth:"300px",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",display:"flex",justifyContent:"space-between",alignItems:"flex-start",animation:"slideIn 0.3s ease-out"},children:[J.jsxs("div",{children:[J.jsx("div",{style:{fontWeight:"600",marginBottom:"4px"},children:F.title}),J.jsx("div",{style:{fontSize:"14px",opacity:.9},children:F.message})]}),J.jsx("button",{onClick:()=>M(F.id),style:{background:"none",border:"none",color:"white",cursor:"pointer",fontSize:"18px",padding:"0",marginLeft:"12px",opacity:.7},children:"×"})]},F.id))}),J.jsxs("div",{onClick:()=>v(!b),style:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",marginTop:0,marginBottom:b?0:"20px"},children:[J.jsx("h3",{style:{margin:0,color:"#333"},children:"Batcher Input"}),J.jsx("span",{style:{fontSize:"18px",color:"#666",transform:b?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.2s ease-in-out"},children:"▼"})]}),!b&&J.jsxs(J.Fragment,{children:[C&&J.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"40px",color:"#666"},children:J.jsxs("div",{style:{textAlign:"center"},children:[J.jsx("div",{style:{fontSize:"16px",marginBottom:"10px"},children:"Loading grammar..."}),J.jsx("div",{style:{fontSize:"14px",opacity:.8},children:"Fetching available input types from server"})]})}),!C&&J.jsxs(J.Fragment,{children:[J.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"20px",padding:"15px",background:"#f8fafc",borderRadius:"6px",border:"1px solid #e2e8f0"},children:[J.jsx("button",{onClick:D,style:{padding:"10px 16px",background:"linear-gradient(45deg, #19b17b, #022418)",color:"white",border:"none",borderRadius:"6px",cursor:"pointer",fontWeight:"600",fontSize:"14px"},children:"Generate new EVM Wallet"}),J.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[J.jsx("span",{style:{fontSize:"14px",color:"#64748b",fontWeight:"500"},children:"Current Address:"}),J.jsx("span",{style:{fontSize:"14px",fontFamily:"monospace",background:l?"#e0f2fe":"#fef3c7",padding:"4px 8px",borderRadius:"4px",color:l?"#0369a1":"#92400e",border:`1px solid ${l?"#bae6fd":"#fde68a"}`},children:l?`${l.address.slice(0,6)}...${l.address.slice(-4)}`:"No wallet generated"})]})]}),J.jsxs("div",{style:{display:"flex",gap:"30px",alignItems:"flex-start"},children:[J.jsx("div",{style:{flex:"0 0 300px"},children:J.jsxs("div",{style:{marginBottom:"15px"},children:[J.jsx("label",{style:{display:"block",marginBottom:"25px",fontWeight:"600"},children:"Select Type:"}),J.jsxs("select",{value:e,onChange:F=>te(F.target.value),disabled:s,style:{padding:"8px",border:"2px solid #19b17b",borderRadius:"4px",width:"100%"},children:[J.jsx("option",{value:"",children:"-- Select a type --"}),_.map(F=>J.jsx("option",{value:F,children:F.charAt(0).toUpperCase()+F.slice(1)},F))]})]})}),e&&J.jsx("div",{style:{flex:"1",minWidth:"0"},children:J.jsxs("div",{style:{marginBottom:"15px"},children:[J.jsxs("label",{style:{display:"block",marginBottom:"5px",fontWeight:"600"},children:["Parameters for ",e,":"]}),J.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"15px",alignItems:"flex-end"},children:A[e].map(([F,H])=>J.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[J.jsxs("label",{style:{marginBottom:"5px",fontWeight:"500",fontSize:"14px"},children:[F," (",H.type,"):"]}),ce(F,H)]},F))})]})})]}),e&&J.jsxs("div",{style:{marginTop:"20px",marginBottom:"15px"},children:[J.jsx("label",{style:{display:"block",marginBottom:"5px",fontWeight:"500"},children:"Preview JSON Array:"}),J.jsx("pre",{style:{background:"#f5f5f5",padding:"10px",borderRadius:"4px",border:"1px solid #ddd",fontSize:"12px",overflow:"auto"},children:JSON.stringify(ne(),null,2)})]}),J.jsx("button",{onClick:oe,disabled:s||!e||!l,style:{padding:"10px 20px",background:e&&l?"linear-gradient(45deg, #19b17b, #022418)":"#ccc",color:"white",border:"none",borderRadius:"8px",cursor:s||!e||!l?"not-allowed":"pointer",fontWeight:"600",opacity:s?.6:1},children:s?"Sending...":"Send to Batcher"}),J.jsx("style",{children:`
144
- @keyframes slideIn {
145
- from {
146
- transform: translateX(100%);
147
- opacity: 0;
148
- }
149
- to {
150
- transform: translateX(0);
151
- opacity: 1;
152
- }
153
- }
154
- `})]})]})]})}function zT({isOpen:e,onClose:t,title:i,tableNames:a,selectedNames:s,onApply:c}){const l=Re.useMemo(()=>new Set(s),[s]),[f,p]=Re.useState(l);Re.useEffect(()=>{p(new Set(s))},[s,e]);const h=I=>{p(C=>{const U=new Set(C);return U.has(I)?U.delete(I):U.add(I),U})},b=()=>p(new Set(a)),v=()=>p(new Set),A=()=>{c(Array.from(f)),t()};return J.jsx(Bc,{isOpen:e,onClose:t,title:i,className:"table-selector",children:J.jsxs("div",{className:"table-selector-content",children:[J.jsxs("div",{style:{display:"flex",gap:8,marginBottom:12},children:[J.jsx("button",{type:"button",className:"batcher-api-button",onClick:b,children:"Select All"}),J.jsx("button",{type:"button",className:"batcher-api-button",onClick:v,children:"Deselect All"})]}),J.jsx("ul",{children:a.map(I=>J.jsx("li",{children:J.jsxs("label",{style:{display:"flex",alignItems:"center",gap:8},children:[J.jsx("input",{type:"checkbox",checked:f.has(I),onChange:()=>h(I)}),I]})},I))}),J.jsxs("div",{style:{display:"flex",gap:8,marginTop:12},children:[J.jsx("button",{type:"button",className:"batcher-api-button",onClick:A,children:"Apply"}),J.jsx("button",{type:"button",className:"documentation-button",onClick:t,children:"Cancel"})]})]})})}function Nb(){return"0x"+Array.from({length:64},()=>Math.floor(Math.random()*16).toString(16)).join("")}let GT=1e3;function UV(){const[e,t]=Re.useState({}),[i,a]=Re.useState(!0),[s,c]=Re.useState(null),[l,f]=Re.useState({}),p=Re.useRef(null),h=Re.useRef(!1),b=Re.useRef(()=>{}),v=Re.useRef(!1),A=Re.useRef(!1),I=Re.useRef(null),C=Re.useCallback(async z=>{if(z!=="Paima")return;const ne=e[z];if(ne&&ne.rpcEndpoint&&ne.type==="EVM"&&!h.current){h.current=!0;try{const ce=await fetch(ne.rpcEndpoint,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jsonrpc:"2.0",method:"eth_blockNumber",params:[],id:1})});if(!ce.ok)throw new Error(`HTTP error! status: ${ce.status}`);const oe=await ce.json();if(oe.error)throw new Error(oe.error.message);const F=parseInt(oe.result,16);t(H=>{const K={...H},G=K[z];if(F>(G.latestBlockNumber||0)&&(G.previousLatestBlockNumber=G.latestBlockNumber||0,G.latestBlockNumber=F,G.isConnected=!0,G.previousLatestBlockNumber>0)){const Y=Nb(),pe={number:F,hash:Y,timestamp:new Date};G.blocks.some(re=>re.number===F&&re.hash===Y)||(G.blocks.unshift(pe),G.blocks.length>20&&(G.blocks=G.blocks.slice(0,20)),f(re=>({...re,[z]:0})),setTimeout(()=>{f(re=>({...re,[z]:void 0}))},500))}return K})}catch(ce){console.error(`Error fetching latest block for ${z}:`,ce),t(oe=>({...oe,[z]:{...oe[z],isConnected:!1}}))}finally{h.current=!1}}},[e]);Re.useEffect(()=>{b.current=C},[C]);const U=Re.useCallback((z,ne=e)=>{const ce=ne[z];if(!ce)return;const oe=ce.rpcEndpoint?ce.latestBlockNumber||0:ce.currentBlock++,F=Nb(),K={number:oe,hash:F,timestamp:new Date};t(G=>{const Y={...G},X=Y[z];return X.blocks.some(R=>R.number===oe)||(X.blocks.unshift(K),X.blocks.length>20&&(X.blocks=X.blocks.slice(0,20))),Y}),f(G=>({...G,[z]:0})),setTimeout(()=>{f(G=>({...G,[z]:void 0}))},250)},[e]),B=Re.useCallback(async()=>{a(!0),c(null);try{const z=await Ck();GT=z.Paima.blockTime??1e3,t(z),console.log("✅ Loaded chain configs from API:",z)}catch(z){const ne=z instanceof Error?z.message:"Unknown error";c(ne),console.error("❌ Failed to load chain configs, using fallback:",ne),t(d6)}finally{a(!1)}},[]),_=Re.useCallback(z=>{t(ne=>{const ce={...ne};return Object.keys(z).forEach(oe=>{const F=ce[oe];if(F&&!F.rpcEndpoint){const H=[];for(let K=-5;K<0;K++){const G=F.currentBlock+K,Y=Nb(),X=new Date(Date.now()+K*(F.blockTime??1e3));H.push({number:G,hash:Y,timestamp:X})}F.blocks=H.reverse(),F.currentBlock=F.currentBlock+1}}),ce})},[]);Re.useEffect(()=>{B()},[B]),Re.useEffect(()=>{i||v.current||Object.keys(e).length!==0&&(_(e),v.current=!0)},[i]),Re.useEffect(()=>{if(i||A.current||Object.keys(e).length===0)return;const z=[];return Object.keys(e).forEach(ne=>{const ce=e[ne];if(!ce.rpcEndpoint){const oe=setInterval(()=>{U(ne)},ce.blockTime);z.push(oe)}}),A.current=!0,()=>{z.forEach(ne=>clearInterval(ne)),A.current=!1}},[i]),Re.useEffect(()=>{if(console.log("🔄 Starting Paima RPC polling"),!i&&p.current==null)return b.current("Paima"),p.current=setInterval(()=>{b.current("Paima")},GT),()=>{p.current!=null&&(clearInterval(p.current),p.current=null)}},[i]),Re.useEffect(()=>{if(i||I.current!=null)return;const z=()=>{const oe=Object.entries(e).filter(([H])=>H!=="Paima");let F=Number.POSITIVE_INFINITY;for(const[,H]of oe)typeof H.blockTime=="number"&&H.blockTime>0&&H.blockTime<F&&(F=H.blockTime);return Number.isFinite(F)?Math.max(1e3,F):1e4},ne=async()=>{var oe,F,H,K,G,Y,X,pe,R;try{const re=await fetch(Ok);if(!re.ok)throw new Error(`block-heights HTTP ${re.status}`);const fe=await re.json(),Z=[];for(const[O,V]of Object.entries(e)){if(O==="Paima")continue;const ie=V.protocolName;if(!ie)continue;const $=fe.find(j=>j.protocol_name===ie);if(!(!$||$.synced_page==null))try{const j=await fetch(`${Dk}/${encodeURIComponent(ie)}/blocks?page=${$.synced_page}`);if(!j.ok)throw new Error(`blocks HTTP ${j.status}`);const N=await j.json(),k=(oe=N==null?void 0:N.blocks)==null?void 0:oe[0];if(!k)continue;let ye=null,ge=null,q=null;if(V.type==="EVM")ye=Number(k.number),ge=k.hash,q=k.timestamp!=null?Number(k.timestamp)*1e3:null;else if(V.type==="MIDNIGHT"){const E=(F=k==null?void 0:k.header)==null?void 0:F.number,P=E?parseInt(E,16):void 0;ye=Number(k.height??(P!==void 0?P:void 0)),ge=k.hash??((H=k.header)==null?void 0:H.parentHash)??"",q=null}else V.type==="CARDANO"?(ye=Number(((G=(K=k.block)==null?void 0:K.header)==null?void 0:G.height)??((Y=k.header)==null?void 0:Y.height)),ge=((pe=(X=k.block)==null?void 0:X.header)==null?void 0:pe.hash)??((R=k.header)==null?void 0:R.hash)??"",q=Number(k.timestamp??0)):(ye=Number(k.blockNumber??$.synced_page),ge=k.hash??"",q=k.timestamp!=null?Number(k.timestamp):null);ye!=null&&!Number.isNaN(ye)&&Z.push({key:O,block:{number:ye,hash:ge??"",timestamp:q?new Date(q):new Date}})}catch{}}Z.length>0&&t(O=>{const V={...O};for(const ie of Z){const $=V[ie.key];if(!$||!ie.block)continue;$.blocks.some(N=>N.number===ie.block.number)||($.blocks.unshift(ie.block),$.blocks.length>20&&($.blocks=$.blocks.slice(0,20)))}return V})}catch{}};ne();const ce=z();return console.log(`[Explorer] Engine block-heights polling interval resolved to ${ce} ms`),I.current=setInterval(ne,ce),()=>{I.current!=null&&(clearInterval(I.current),I.current=null)}},[i]);const D=e.Paima,M=(D==null?void 0:D.latestBlockNumber)||0,te=(D==null?void 0:D.isConnected)||!1;return{chainConfigs:e,newBlockIndices:l,latestBlock:M,isConnected:te,isLoadingConfig:i,configError:s}}function MV(){const[t,i]=Re.useState([]),[a,s]=Re.useState([]),[c,l]=Re.useState({}),[f,p]=Re.useState({}),[h,b]=Re.useState({}),[v,A]=Re.useState({}),[I,C]=Re.useState({}),[U,B]=Re.useState({}),[_,D]=Re.useState({}),M=Re.useRef(!1),te=Re.useRef([]),z=Re.useRef([]),ne=Re.useRef({}),ce=Re.useRef({}),oe=Re.useRef({}),F=Re.useRef({}),H=Re.useRef(new Set),K=Re.useRef(new Set);Re.useEffect(()=>{te.current=t},[t]),Re.useEffect(()=>{z.current=a},[a]),Re.useEffect(()=>{ne.current=U},[U]),Re.useEffect(()=>{ce.current=_},[_]),Re.useEffect(()=>{oe.current=v},[v]),Re.useEffect(()=>{F.current=I},[I]);const G=Re.useCallback(q=>q.map(E=>({name:E.column_name,dataTypeID:25})),[]),Y=Re.useCallback((q,E,P)=>{const Q=Array.isArray(q)?q:[];let W=[];return P&&P.length>0?W=G(P):Q.length>0&&(W=Object.keys(Q[0]).map(le=>({name:le,dataTypeID:25}))),{command:"SELECT",rowCount:Q.length,rows:Q,fields:W}},[G]),X=Re.useCallback((q,E,P)=>{const Q=Array.isArray(q)?q:[];let W=[];return P&&P.length>0?W=G(P):Q.length>0&&(W=Object.keys(Q[0]).map(le=>({name:le,dataTypeID:25}))),{command:"SELECT",rowCount:Q.length,rows:Q,fields:W}},[G]),pe=Re.useCallback(async q=>{try{if(H.current.has(q))return null;const E=ne.current[q];if(E)return E;const P=await fetch(`${Rk}/${q}`);if(!P.ok){if(P.status===404)return console.log(`🚫 Schema for primitive ${q} not found (404)`),H.current.add(q),null;throw new Error(`HTTP error! status: ${P.status}`)}const Q=await P.json();return console.log(`📋 Fetched schema for ${q}:`,Q),Q}catch(E){return console.error(`Error fetching schema for primitive ${q}:`,E),null}},[]),R=Re.useCallback(async q=>{try{const E=await fetch(`${_k}/${q}`);if(!E.ok){if(E.status===404)return console.log(`🚫 Schema for table ${q} not found (404)`),null;throw new Error(`HTTP error! status: ${E.status}`)}const P=await E.json();return console.log(`📋 Fetched schema for ${q}:`,P),P}catch(E){return console.error(`Error fetching schema for table ${q}:`,E),null}},[]),re=Re.useCallback(async()=>{try{const q=await fetch(h6);if(!q.ok)throw new Error(`HTTP error! status: ${q.status}`);const E=await q.json();return console.log("📋 Fetched config:",E),E}catch(q){return console.error("Error fetching config:",q),null}},[]),fe=Re.useCallback(async()=>{try{const q=await fetch(DC);if(!q.ok)throw new Error(`HTTP error! status: ${q.status}`);const E=await q.json();return console.log("📋 Fetched user table names:",E),E.map(P=>P.table_name)}catch(q){return console.error("Error fetching user table names:",q),[]}},[]),Z=Re.useCallback(q=>{const E=[];return!q||!Array.isArray(q)?E:(q.forEach(P=>{P.primitives&&Array.isArray(P.primitives)&&P.primitives.forEach(Q=>{Q.primitive&&Q.primitive.name&&Q.primitive.type!=="evm-rpc-paima-l2"&&E.push(Q.primitive.name)})}),[...new Set(E)])},[]),O=Re.useCallback(async(q,E,P)=>{try{if(K.current.has(q))return null;const Q=P??{limit:20,cursors:[void 0],currentPage:0,hasMore:!1},W=new URL(`${Fk}/${q}`);W.searchParams.set("limit",String(Q.limit));const le=Q.cursors[Q.currentPage];le&&W.searchParams.set("after",le);const de=await fetch(W.toString());if(!de.ok){if(de.status===404)return console.log(`🚫 Primitive ${q} not found (404)`),K.current.add(q),null;throw new Error(`HTTP error! status: ${de.status}`)}const x=await de.json(),g=Array.isArray(x)?x:x.data??[],m=x.pagination;return m&&A(S=>{const ee=[...S[q].cursors];return m.nextCursor&&ee.length===S[q].currentPage+1&&ee.push(m.nextCursor),{...S,[q]:{...S[q],hasMore:m.hasMore,cursors:ee}}}),console.log(`📊 Fetched data for ${q}:`,g),Y(g,q,E)}catch(Q){return console.error(`Error fetching primitive data for ${q}:`,Q),null}},[Y]),V=Re.useCallback(async(q,E,P)=>{try{const Q=P??{limit:20,cursors:[void 0],currentPage:0,hasMore:!1},W=new URL(`${DC}/${q}`);W.searchParams.set("limit",String(Q.limit));const le=Q.cursors[Q.currentPage];le&&W.searchParams.set("after",le);const de=await fetch(W.toString());if(!de.ok){if(de.status===404)return console.log(`🚫 Table ${q} not found (404)`),null;throw new Error(`HTTP error! status: ${de.status}`)}const x=await de.json();console.log(`📊 Fetched table data for ${q}:`,x);const g=x.data??[],m=x.pagination;return m&&C(S=>{const ee=[...S[q].cursors];return m.nextCursor&&ee.length===S[q].currentPage+1&&ee.push(m.nextCursor),{...S,[q]:{...S[q],hasMore:m.hasMore,cursors:ee}}}),X(g,q,E)}catch(Q){return console.error(`Error fetching table data for ${q}:`,Q),null}},[X]),ie=Re.useCallback(async()=>{try{const q=await fetch(Bk);if(!q.ok)throw new Error(`HTTP error! status: ${q.status}`);const P=(await q.json()).data??[];console.log("📊 Fetched scheduled data:",P);const Q=[{name:"id",dataTypeID:23},{name:"from_address",dataTypeID:25},{name:"input_data",dataTypeID:25},{name:"primitive_name",dataTypeID:25},{name:"caip2",dataTypeID:25},{name:"contract_address",dataTypeID:25},{name:"origin_tx_hash",dataTypeID:25},{name:"future_block_height",dataTypeID:23},{name:"future_ms_timestamp",dataTypeID:25}];return{command:"SELECT",rowCount:P.length,rows:P,fields:Q}}catch(q){return console.error("Error fetching scheduled data:",q),null}},[]),$=Re.useCallback(async()=>{if(!(te.current.length===0||!M.current))try{const q=te.current.map(async P=>{const Q=ne.current[P],W=oe.current[P],le=await O(P,Q,W);return{primitiveName:P,data:le}}),E=await Promise.all(q);E.length>0&&l(P=>{const Q={...P};return E.forEach(({primitiveName:W,data:le})=>{le!==null&&(Q[W]=le)}),Q})}catch(q){console.error("Error refreshing primitive data:",q)}},[O]),j=Re.useCallback(async()=>{if(!(!M.current||z.current.length===0))try{const q=z.current.map(async P=>{const Q=ce.current[P],W=F.current[P],le=await V(P,Q,W);return{tableName:P,data:le}}),E=await Promise.all(q);E.length>0&&p(P=>{const Q={...P};return E.forEach(({tableName:W,data:le})=>{le!==null&&(Q[W]=le)}),Q})}catch(q){console.error("Error refreshing user table data:",q)}},[V]),N=Re.useCallback(async()=>{if(M.current)try{const q=await ie();q!==null&&b({scheduled_data:q})}catch(q){console.error("Error refreshing scheduled data:",q)}},[ie]),k=Re.useCallback(async()=>{console.log("📋 Initializing primitive tables...");try{const q=await re();if(!q){console.error("Failed to fetch config");return}const E=Z(q);if(i(E),console.log("📊 Found primitives:",E),E.length===0){console.log("No primitives found in config");return}const P=E.map(async g=>{const m=await pe(g);return{primitiveName:g,schema:m}}),Q=await Promise.all(P),W={};Q.forEach(({primitiveName:g,schema:m})=>{m&&(W[g]=m)}),B(W),A(g=>{const m={...g};return E.forEach(S=>{m[S]||(m[S]={limit:20,cursors:[void 0],currentPage:0,hasMore:!1})}),m});const le=E.map(async g=>{const m=W[g],S=oe.current[g]??{limit:20,cursors:[void 0],currentPage:0,hasMore:!1},ee=await O(g,m,S);return{primitiveName:g,data:ee}}),de=await Promise.all(le),x={};de.forEach(({primitiveName:g,data:m})=>{x[g]=m}),l(x),console.log("✅ Primitive tables initialized")}catch(q){console.error("Error initializing primitive tables:",q)}},[re,Z,pe,O]),ye=Re.useCallback(async()=>{console.log("📋 Initializing state machine tables...");try{const q=await fe();if(s(q),q.length===0){console.log("No user tables found");return}const E=q.map(async x=>{const g=await R(x);return{tableName:x,schema:g}}),P=await Promise.all(E),Q={};P.forEach(({tableName:x,schema:g})=>{g&&(Q[x]=g)}),D(Q),C(x=>{const g={...x};return q.forEach(m=>{g[m]||(g[m]={limit:20,cursors:[void 0],currentPage:0,hasMore:!1})}),g});const W=q.map(async x=>{const g=Q[x],m=F.current[x]??{limit:20,cursors:[void 0],currentPage:0,hasMore:!1},S=await V(x,g||void 0,m);return{tableName:x,data:S}}),le=await Promise.all(W),de={};le.forEach(({tableName:x,data:g})=>{de[x]=g}),p(de),console.log("✅ State machine tables initialized")}catch(q){console.error("Error initializing state machine tables:",q)}},[R,V,fe]),ge=Re.useCallback(async()=>{console.log("📋 Initializing scheduled data...");try{const q=await ie();b({scheduled_data:q}),console.log("✅ Scheduled data initialized")}catch(q){console.error("Error initializing scheduled data:",q)}},[ie]);return Re.useEffect(()=>{let q,E,P;return(async()=>{await Promise.all([k(),ye(),ge()]),M.current=!0,q=setInterval(()=>{$()},5e3),setTimeout(()=>{j(),E=setInterval(()=>{j()},5e3)},1500),setTimeout(()=>{N(),P=setInterval(()=>{N()},5e3)},3e3)})(),()=>{q&&clearInterval(q),E&&clearInterval(E),P&&clearInterval(P)}},[]),{primitiveData:c,userTableData:f,scheduledData:h,primitiveNames:t,userTableNames:a,refreshPrimitiveData:$,refreshUserTableData:j,refreshScheduledData:N,primitivePagination:v,userTablePagination:I,setPrimitiveLimit:async(q,E)=>{const P={limit:E,cursors:[void 0],currentPage:0,hasMore:!1};A(le=>({...le,[q]:P}));const Q=ne.current[q],W=await O(q,Q,P);l(le=>({...le,[q]:W}))},nextPrimitivePage:async q=>{const E=oe.current[q];if(!E||!E.hasMore)return;const P={...E,currentPage:E.currentPage+1};A(le=>({...le,[q]:P}));const Q=ne.current[q],W=await O(q,Q,P);l(le=>({...le,[q]:W}))},prevPrimitivePage:async q=>{const E=oe.current[q];if(!E||E.currentPage===0)return;const P={...E,currentPage:E.currentPage-1};A(le=>({...le,[q]:P}));const Q=ne.current[q],W=await O(q,Q,P);l(le=>({...le,[q]:W}))},firstPrimitivePage:async q=>{const E=oe.current[q];if(!E)return;const P={...E,cursors:[void 0],currentPage:0};A(le=>({...le,[q]:P}));const Q=ne.current[q],W=await O(q,Q,P);l(le=>({...le,[q]:W}))},setUserTableLimit:async(q,E)=>{const P={limit:E,cursors:[void 0],currentPage:0,hasMore:!1};C(le=>({...le,[q]:P}));const Q=ce.current[q],W=await V(q,Q,P);p(le=>({...le,[q]:W}))},nextUserTablePage:async q=>{const E=F.current[q];if(!E||!E.hasMore)return;const P={...E,currentPage:E.currentPage+1};C(le=>({...le,[q]:P}));const Q=ce.current[q],W=await V(q,Q,P);p(le=>({...le,[q]:W}))},prevUserTablePage:async q=>{const E=F.current[q];if(!E||E.currentPage===0)return;const P={...E,currentPage:E.currentPage-1};C(le=>({...le,[q]:P}));const Q=ce.current[q],W=await V(q,Q,P);p(le=>({...le,[q]:W}))},firstUserTablePage:async q=>{const E=F.current[q];if(!E)return;const P={...E,cursors:[void 0],currentPage:0};C(le=>({...le,[q]:P}));const Q=ce.current[q],W=await V(q,Q,P);p(le=>({...le,[q]:W}))}}}function jV(){const[e,t]=Re.useState([]),[i,a]=Re.useState([]),[s,c]=Re.useState(!1),[l,f]=Re.useState(!1),{chainConfigs:p,newBlockIndices:h,latestBlock:b,isConnected:v,isLoadingConfig:A,configError:I}=UV(),{primitiveData:C,userTableData:U,scheduledData:B,primitiveNames:_,userTableNames:D,primitivePagination:M,userTablePagination:te,nextPrimitivePage:z,prevPrimitivePage:ne,firstPrimitivePage:ce,setPrimitiveLimit:oe,nextUserTablePage:F,prevUserTablePage:H,firstUserTablePage:K,setUserTableLimit:G}=MV();return Re.useEffect(()=>{_.length>0&&e.length===0&&t(_)},[_,e]),Re.useEffect(()=>{D.length>0&&i.length===0&&a([D[0]])},[D,i]),Re.useEffect(()=>{const Y=X=>{console.error("Unhandled promise rejection:",X.reason)};return globalThis.addEventListener("unhandledrejection",Y),()=>{globalThis.removeEventListener("unhandledrejection",Y)}},[]),Re.useEffect(()=>{const Y=X=>{X.key==="r"&&X.ctrlKey&&(X.preventDefault(),console.log("🔄 Manually refreshed (keyboard shortcut)"))};return document.addEventListener("keydown",Y),()=>{document.removeEventListener("keydown",Y)}},[]),A?J.jsxs("div",{className:"container",children:[J.jsx(jb,{latestBlock:b,isConnected:v}),J.jsx("div",{style:{padding:"20px",textAlign:"center",fontSize:"18px",color:"#667eea"},children:"🔄 Loading chain configurations..."})]}):I?J.jsxs("div",{className:"container",children:[J.jsx(jb,{latestBlock:b,isConnected:v}),J.jsxs("div",{style:{padding:"20px",textAlign:"center",fontSize:"16px",color:"#f44336",backgroundColor:"rgba(244, 67, 54, 0.1)",border:"1px solid rgba(244, 67, 54, 0.3)",borderRadius:"8px",margin:"20px"},children:["⚠️ Failed to load chain configurations: ",I,J.jsx("br",{}),J.jsx("small",{style:{color:"#666",marginTop:"8px",display:"block"},children:"Using fallback configuration. Some features may not work correctly."})]}),J.jsx(kT,{chainConfigs:p,newBlockIndices:h})]}):J.jsxs("div",{className:"container",children:[J.jsx(jb,{latestBlock:b,isConnected:v}),J.jsx(kT,{chainConfigs:p,newBlockIndices:h}),J.jsxs(Pb,{title:"Primitive Data",tables:Object.fromEntries(Object.entries(C).filter(([Y])=>e.includes(Y))),pagination:M,onPrev:Y=>ne(Y),onNext:Y=>z(Y),onFirst:Y=>ce(Y),onLimitChange:(Y,X)=>oe(Y,X),children:[J.jsx("div",{style:{display:"flex",gap:8,marginBottom:12},children:J.jsx("button",{type:"button",className:"batcher-api-button",onClick:()=>c(!0),children:"Select Primitives"})}),J.jsx(zT,{isOpen:s,onClose:()=>c(!1),title:"Select Primitives",tableNames:_,selectedNames:e,onApply:Y=>t(Y.length?Y:[_[0]].filter(Boolean))})]}),J.jsxs(Pb,{title:"State Machine Tables",tables:Object.fromEntries(Object.entries(U).filter(([Y])=>i.includes(Y))),pagination:te,onPrev:Y=>H(Y),onNext:Y=>F(Y),onFirst:Y=>K(Y),onLimitChange:(Y,X)=>G(Y,X),children:[J.jsx("div",{style:{display:"flex",gap:8,marginBottom:12},children:J.jsx("button",{type:"button",className:"batcher-api-button",onClick:()=>f(!0),children:"Select Tables"})}),J.jsx(zT,{isOpen:l,onClose:()=>f(!1),title:"Select Custom Tables",tableNames:D,selectedNames:i,onApply:Y=>a(Y.length?Y:[D[0]].filter(Boolean))}),J.jsx(DV,{})]}),J.jsx(Pb,{title:"Scheduled Data",tables:B})]})}g4.createRoot(document.getElementById("root")).render(J.jsx(Re.StrictMode,{children:J.jsx(jV,{})}));