@paimaexample/explorer 0.3.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,154 @@
1
+ var S2=e=>{throw TypeError(e)};var jy=(e,t,i)=>t.has(e)||S2("Cannot "+i);var dt=(e,t,i)=>(jy(e,t,"read from private field"),i?i.call(e):t.get(e)),Mi=(e,t,i)=>t.has(e)?S2("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),Ca=(e,t,i,a)=>(jy(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),ct=(e,t,i)=>(jy(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 Hi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Py={exports:{}},gc={};/**
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 C2;function N8(){if(C2)return gc;C2=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 gc.Fragment=t,gc.jsx=i,gc.jsxs=i,gc}var O2;function L8(){return O2||(O2=1,Py.exports=N8()),Py.exports}var ee=L8(),Ny={exports:{}},Ly={},mc={},F2;function q8(){if(F2)return mc;F2=1,mc.byteLength=f,mc.toByteArray=h,mc.fromByteArray=m;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 O=I.length;if(O%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var M=I.indexOf("=");M===-1&&(M=O);var B=M===O?0:4-M%4;return[M,B]}function f(I){var O=l(I),M=O[0],B=O[1];return(M+B)*3/4-B}function y(I,O,M){return(O+M)*3/4-M}function h(I){var O,M=l(I),B=M[0],R=M[1],U=new i(y(I,B,R)),j=0,K=R>0?B-4:B,H;for(H=0;H<K;H+=4)O=t[I.charCodeAt(H)]<<18|t[I.charCodeAt(H+1)]<<12|t[I.charCodeAt(H+2)]<<6|t[I.charCodeAt(H+3)],U[j++]=O>>16&255,U[j++]=O>>8&255,U[j++]=O&255;return R===2&&(O=t[I.charCodeAt(H)]<<2|t[I.charCodeAt(H+1)]>>4,U[j++]=O&255),R===1&&(O=t[I.charCodeAt(H)]<<10|t[I.charCodeAt(H+1)]<<4|t[I.charCodeAt(H+2)]>>2,U[j++]=O>>8&255,U[j++]=O&255),U}function A(I){return e[I>>18&63]+e[I>>12&63]+e[I>>6&63]+e[I&63]}function v(I,O,M){for(var B,R=[],U=O;U<M;U+=3)B=(I[U]<<16&16711680)+(I[U+1]<<8&65280)+(I[U+2]&255),R.push(A(B));return R.join("")}function m(I){for(var O,M=I.length,B=M%3,R=[],U=16383,j=0,K=M-B;j<K;j+=U)R.push(v(I,j,j+U>K?K:j+U));return B===1?(O=I[M-1],R.push(e[O>>2]+e[O<<4&63]+"==")):B===2&&(O=(I[M-2]<<8)+I[M-1],R.push(e[O>>10]+e[O>>4&63]+e[O<<2&63]+"=")),R.join("")}return mc}var Jf={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var B2;function $8(){return B2||(B2=1,Jf.read=function(e,t,i,a,s){var c,l,f=s*8-a-1,y=(1<<f)-1,h=y>>1,A=-7,v=i?s-1:0,m=i?-1:1,I=e[t+v];for(v+=m,c=I&(1<<-A)-1,I>>=-A,A+=f;A>0;c=c*256+e[t+v],v+=m,A-=8);for(l=c&(1<<-A)-1,c>>=-A,A+=a;A>0;l=l*256+e[t+v],v+=m,A-=8);if(c===0)c=1-h;else{if(c===y)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)},Jf.write=function(e,t,i,a,s,c){var l,f,y,h=c*8-s-1,A=(1<<h)-1,v=A>>1,m=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,I=a?0:c-1,O=a?1:-1,M=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=A):(l=Math.floor(Math.log(t)/Math.LN2),t*(y=Math.pow(2,-l))<1&&(l--,y*=2),l+v>=1?t+=m/y:t+=m*Math.pow(2,1-v),t*y>=2&&(l++,y/=2),l+v>=A?(f=0,l=A):l+v>=1?(f=(t*y-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+=O,f/=256,s-=8);for(l=l<<s|f,h+=s;h>0;e[i+I]=l&255,I+=O,l/=256,h-=8);e[i+I-O]|=M*128}),Jf}/*!
10
+ * The buffer module from node.js, for the browser.
11
+ *
12
+ * @author Feross Aboukhadijeh <https://feross.org>
13
+ * @license MIT
14
+ */var R2;function H8(){return R2||(R2=1,(function(e){var t=q8(),i=$8(),a=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=f,e.SlowBuffer=U,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,b){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 y(x,g,b)}f.poolSize=8192;function y(x,g,b){if(typeof x=="string")return m(x,g);if(ArrayBuffer.isView(x))return O(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 M(x,g,b);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,b);var X=B(x);if(X)return X;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof x[Symbol.toPrimitive]=="function")return f.from(x[Symbol.toPrimitive]("string"),g,b);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,b){return y(x,g,b)},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 A(x,g,b){return h(x),x<=0?l(x):g!==void 0?typeof b=="string"?l(x).fill(g,b):l(x).fill(g):l(x)}f.alloc=function(x,g,b){return A(x,g,b)};function v(x){return h(x),l(x<0?0:R(x)|0)}f.allocUnsafe=function(x){return v(x)},f.allocUnsafeSlow=function(x){return v(x)};function m(x,g){if((typeof g!="string"||g==="")&&(g="utf8"),!f.isEncoding(g))throw new TypeError("Unknown encoding: "+g);var b=j(x,g)|0,S=l(b),X=S.write(x,g);return X!==b&&(S=S.slice(0,X)),S}function I(x){for(var g=x.length<0?0:R(x.length)|0,b=l(g),S=0;S<g;S+=1)b[S]=x[S]&255;return b}function O(x){if(W(x,Uint8Array)){var g=new Uint8Array(x);return M(g.buffer,g.byteOffset,g.byteLength)}return I(x)}function M(x,g,b){if(g<0||x.byteLength<g)throw new RangeError('"offset" is outside of buffer bounds');if(x.byteLength<g+(b||0))throw new RangeError('"length" is outside of buffer bounds');var S;return g===void 0&&b===void 0?S=new Uint8Array(x):b===void 0?S=new Uint8Array(x,g):S=new Uint8Array(x,g,b),Object.setPrototypeOf(S,f.prototype),S}function B(x){if(f.isBuffer(x)){var g=R(x.length)|0,b=l(g);return b.length===0||x.copy(b,0,0,g),b}if(x.length!==void 0)return typeof x.length!="number"||me(x.length)?l(0):I(x);if(x.type==="Buffer"&&Array.isArray(x.data))return I(x.data)}function R(x){if(x>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return x|0}function U(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,b){if(W(g,Uint8Array)&&(g=f.from(g,g.offset,g.byteLength)),W(b,Uint8Array)&&(b=f.from(b,b.offset,b.byteLength)),!f.isBuffer(g)||!f.isBuffer(b))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(g===b)return 0;for(var S=g.length,X=b.length,Ae=0,Se=Math.min(S,X);Ae<Se;++Ae)if(g[Ae]!==b[Ae]){S=g[Ae],X=b[Ae];break}return S<X?-1:X<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,b){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(b===void 0)for(b=0,S=0;S<g.length;++S)b+=g[S].length;var X=f.allocUnsafe(b),Ae=0;for(S=0;S<g.length;++S){var Se=g[S];if(W(Se,Uint8Array))Ae+Se.length>X.length?f.from(Se).copy(X,Ae):Uint8Array.prototype.set.call(X,Se,Ae);else if(f.isBuffer(Se))Se.copy(X,Ae);else throw new TypeError('"list" argument must be an Array of Buffers');Ae+=Se.length}return X};function j(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 b=x.length,S=arguments.length>2&&arguments[2]===!0;if(!S&&b===0)return 0;for(var X=!1;;)switch(g){case"ascii":case"latin1":case"binary":return b;case"utf8":case"utf-8":return ne(x).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return b*2;case"hex":return b>>>1;case"base64":return G(x).length;default:if(X)return S?-1:ne(x).length;g=(""+g).toLowerCase(),X=!0}}f.byteLength=j;function K(x,g,b){var S=!1;if((g===void 0||g<0)&&(g=0),g>this.length||((b===void 0||b>this.length)&&(b=this.length),b<=0)||(b>>>=0,g>>>=0,b<=g))return"";for(x||(x="utf8");;)switch(x){case"hex":return V(this,g,b);case"utf8":case"utf-8":return Z(this,g,b);case"ascii":return te(this,g,b);case"latin1":case"binary":return le(this,g,b);case"base64":return re(this,g,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,g,b);default:if(S)throw new TypeError("Unknown encoding: "+x);x=(x+"").toLowerCase(),S=!0}}f.prototype._isBuffer=!0;function H(x,g,b){var S=x[g];x[g]=x[b],x[b]=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 b=0;b<g;b+=2)H(this,b,b+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 b=0;b<g;b+=4)H(this,b,b+3),H(this,b+1,b+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 b=0;b<g;b+=8)H(this,b,b+7),H(this,b+1,b+6),H(this,b+2,b+5),H(this,b+3,b+4);return this},f.prototype.toString=function(){var g=this.length;return g===0?"":arguments.length===0?Z(this,0,g):K.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="",b=e.INSPECT_MAX_BYTES;return g=this.toString("hex",0,b).replace(/(.{2})/g,"$1 ").trim(),this.length>b&&(g+=" ... "),"<Buffer "+g+">"},a&&(f.prototype[a]=f.prototype.inspect),f.prototype.compare=function(g,b,S,X,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(b===void 0&&(b=0),S===void 0&&(S=g?g.length:0),X===void 0&&(X=0),Ae===void 0&&(Ae=this.length),b<0||S>g.length||X<0||Ae>this.length)throw new RangeError("out of range index");if(X>=Ae&&b>=S)return 0;if(X>=Ae)return-1;if(b>=S)return 1;if(b>>>=0,S>>>=0,X>>>=0,Ae>>>=0,this===g)return 0;for(var Se=Ae-X,Me=S-b,se=Math.min(Se,Me),ue=this.slice(X,Ae),Ee=g.slice(b,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 ie(x,g,b,S,X){if(x.length===0)return-1;if(typeof b=="string"?(S=b,b=0):b>2147483647?b=2147483647:b<-2147483648&&(b=-2147483648),b=+b,me(b)&&(b=X?0:x.length-1),b<0&&(b=x.length+b),b>=x.length){if(X)return-1;b=x.length-1}else if(b<0)if(X)b=0;else return-1;if(typeof g=="string"&&(g=f.from(g,S)),f.isBuffer(g))return g.length===0?-1:ye(x,g,b,S,X);if(typeof g=="number")return g=g&255,typeof Uint8Array.prototype.indexOf=="function"?X?Uint8Array.prototype.indexOf.call(x,g,b):Uint8Array.prototype.lastIndexOf.call(x,g,b):ye(x,[g],b,S,X);throw new TypeError("val must be string, number or Buffer")}function ye(x,g,b,S,X){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,b/=2}function se(Ne,qe){return Ae===1?Ne[qe]:Ne.readUInt16BE(qe*Ae)}var ue;if(X){var Ee=-1;for(ue=b;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(b+Me>Se&&(b=Se-Me),ue=b;ue>=0;ue--){for(var Oe=!0,Te=0;Te<Me;Te++)if(se(x,ue+Te)!==se(g,Te)){Oe=!1;break}if(Oe)return ue}return-1}f.prototype.includes=function(g,b,S){return this.indexOf(g,b,S)!==-1},f.prototype.indexOf=function(g,b,S){return ie(this,g,b,S,!0)},f.prototype.lastIndexOf=function(g,b,S){return ie(this,g,b,S,!1)};function fe(x,g,b,S){b=Number(b)||0;var X=x.length-b;S?(S=Number(S),S>X&&(S=X)):S=X;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(me(Me))return Se;x[b+Se]=Me}return Se}function D(x,g,b,S){return Y(ne(g,x.length-b),x,b,S)}function $(x,g,b,S){return Y(ce(g),x,b,S)}function k(x,g,b,S){return Y(G(g),x,b,S)}function Q(x,g,b,S){return Y(w(g,x.length-b),x,b,S)}f.prototype.write=function(g,b,S,X){if(b===void 0)X="utf8",S=this.length,b=0;else if(S===void 0&&typeof b=="string")X=b,S=this.length,b=0;else if(isFinite(b))b=b>>>0,isFinite(S)?(S=S>>>0,X===void 0&&(X="utf8")):(X=S,S=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Ae=this.length-b;if((S===void 0||S>Ae)&&(S=Ae),g.length>0&&(S<0||b<0)||b>this.length)throw new RangeError("Attempt to write outside buffer bounds");X||(X="utf8");for(var Se=!1;;)switch(X){case"hex":return fe(this,g,b,S);case"utf8":case"utf-8":return D(this,g,b,S);case"ascii":case"latin1":case"binary":return $(this,g,b,S);case"base64":return k(this,g,b,S);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Q(this,g,b,S);default:if(Se)throw new TypeError("Unknown encoding: "+X);X=(""+X).toLowerCase(),Se=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function re(x,g,b){return g===0&&b===x.length?t.fromByteArray(x):t.fromByteArray(x.slice(g,b))}function Z(x,g,b){b=Math.min(x.length,b);for(var S=[],X=g;X<b;){var Ae=x[X],Se=null,Me=Ae>239?4:Ae>223?3:Ae>191?2:1;if(X+Me<=b){var se,ue,Ee,Oe;switch(Me){case 1:Ae<128&&(Se=Ae);break;case 2:se=x[X+1],(se&192)===128&&(Oe=(Ae&31)<<6|se&63,Oe>127&&(Se=Oe));break;case 3:se=x[X+1],ue=x[X+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[X+1],ue=x[X+2],Ee=x[X+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),X+=Me}return _(S)}var pe=4096;function _(x){var g=x.length;if(g<=pe)return String.fromCharCode.apply(String,x);for(var b="",S=0;S<g;)b+=String.fromCharCode.apply(String,x.slice(S,S+=pe));return b}function te(x,g,b){var S="";b=Math.min(x.length,b);for(var X=g;X<b;++X)S+=String.fromCharCode(x[X]&127);return S}function le(x,g,b){var S="";b=Math.min(x.length,b);for(var X=g;X<b;++X)S+=String.fromCharCode(x[X]);return S}function V(x,g,b){var S=x.length;(!g||g<0)&&(g=0),(!b||b<0||b>S)&&(b=S);for(var X="",Ae=g;Ae<b;++Ae)X+=de[x[Ae]];return X}function F(x,g,b){for(var S=x.slice(g,b),X="",Ae=0;Ae<S.length-1;Ae+=2)X+=String.fromCharCode(S[Ae]+S[Ae+1]*256);return X}f.prototype.slice=function(g,b){var S=this.length;g=~~g,b=b===void 0?S:~~b,g<0?(g+=S,g<0&&(g=0)):g>S&&(g=S),b<0?(b+=S,b<0&&(b=0)):b>S&&(b=S),b<g&&(b=g);var X=this.subarray(g,b);return Object.setPrototypeOf(X,f.prototype),X};function z(x,g,b){if(x%1!==0||x<0)throw new RangeError("offset is not uint");if(x+g>b)throw new RangeError("Trying to access beyond buffer length")}f.prototype.readUintLE=f.prototype.readUIntLE=function(g,b,S){g=g>>>0,b=b>>>0,S||z(g,b,this.length);for(var X=this[g],Ae=1,Se=0;++Se<b&&(Ae*=256);)X+=this[g+Se]*Ae;return X},f.prototype.readUintBE=f.prototype.readUIntBE=function(g,b,S){g=g>>>0,b=b>>>0,S||z(g,b,this.length);for(var X=this[g+--b],Ae=1;b>0&&(Ae*=256);)X+=this[g+--b]*Ae;return X},f.prototype.readUint8=f.prototype.readUInt8=function(g,b){return g=g>>>0,b||z(g,1,this.length),this[g]},f.prototype.readUint16LE=f.prototype.readUInt16LE=function(g,b){return g=g>>>0,b||z(g,2,this.length),this[g]|this[g+1]<<8},f.prototype.readUint16BE=f.prototype.readUInt16BE=function(g,b){return g=g>>>0,b||z(g,2,this.length),this[g]<<8|this[g+1]},f.prototype.readUint32LE=f.prototype.readUInt32LE=function(g,b){return g=g>>>0,b||z(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,b){return g=g>>>0,b||z(g,4,this.length),this[g]*16777216+(this[g+1]<<16|this[g+2]<<8|this[g+3])},f.prototype.readIntLE=function(g,b,S){g=g>>>0,b=b>>>0,S||z(g,b,this.length);for(var X=this[g],Ae=1,Se=0;++Se<b&&(Ae*=256);)X+=this[g+Se]*Ae;return Ae*=128,X>=Ae&&(X-=Math.pow(2,8*b)),X},f.prototype.readIntBE=function(g,b,S){g=g>>>0,b=b>>>0,S||z(g,b,this.length);for(var X=b,Ae=1,Se=this[g+--X];X>0&&(Ae*=256);)Se+=this[g+--X]*Ae;return Ae*=128,Se>=Ae&&(Se-=Math.pow(2,8*b)),Se},f.prototype.readInt8=function(g,b){return g=g>>>0,b||z(g,1,this.length),this[g]&128?(255-this[g]+1)*-1:this[g]},f.prototype.readInt16LE=function(g,b){g=g>>>0,b||z(g,2,this.length);var S=this[g]|this[g+1]<<8;return S&32768?S|4294901760:S},f.prototype.readInt16BE=function(g,b){g=g>>>0,b||z(g,2,this.length);var S=this[g+1]|this[g]<<8;return S&32768?S|4294901760:S},f.prototype.readInt32LE=function(g,b){return g=g>>>0,b||z(g,4,this.length),this[g]|this[g+1]<<8|this[g+2]<<16|this[g+3]<<24},f.prototype.readInt32BE=function(g,b){return g=g>>>0,b||z(g,4,this.length),this[g]<<24|this[g+1]<<16|this[g+2]<<8|this[g+3]},f.prototype.readFloatLE=function(g,b){return g=g>>>0,b||z(g,4,this.length),i.read(this,g,!0,23,4)},f.prototype.readFloatBE=function(g,b){return g=g>>>0,b||z(g,4,this.length),i.read(this,g,!1,23,4)},f.prototype.readDoubleLE=function(g,b){return g=g>>>0,b||z(g,8,this.length),i.read(this,g,!0,52,8)},f.prototype.readDoubleBE=function(g,b){return g=g>>>0,b||z(g,8,this.length),i.read(this,g,!1,52,8)};function oe(x,g,b,S,X,Ae){if(!f.isBuffer(x))throw new TypeError('"buffer" argument must be a Buffer instance');if(g>X||g<Ae)throw new RangeError('"value" argument is out of bounds');if(b+S>x.length)throw new RangeError("Index out of range")}f.prototype.writeUintLE=f.prototype.writeUIntLE=function(g,b,S,X){if(g=+g,b=b>>>0,S=S>>>0,!X){var Ae=Math.pow(2,8*S)-1;oe(this,g,b,S,Ae,0)}var Se=1,Me=0;for(this[b]=g&255;++Me<S&&(Se*=256);)this[b+Me]=g/Se&255;return b+S},f.prototype.writeUintBE=f.prototype.writeUIntBE=function(g,b,S,X){if(g=+g,b=b>>>0,S=S>>>0,!X){var Ae=Math.pow(2,8*S)-1;oe(this,g,b,S,Ae,0)}var Se=S-1,Me=1;for(this[b+Se]=g&255;--Se>=0&&(Me*=256);)this[b+Se]=g/Me&255;return b+S},f.prototype.writeUint8=f.prototype.writeUInt8=function(g,b,S){return g=+g,b=b>>>0,S||oe(this,g,b,1,255,0),this[b]=g&255,b+1},f.prototype.writeUint16LE=f.prototype.writeUInt16LE=function(g,b,S){return g=+g,b=b>>>0,S||oe(this,g,b,2,65535,0),this[b]=g&255,this[b+1]=g>>>8,b+2},f.prototype.writeUint16BE=f.prototype.writeUInt16BE=function(g,b,S){return g=+g,b=b>>>0,S||oe(this,g,b,2,65535,0),this[b]=g>>>8,this[b+1]=g&255,b+2},f.prototype.writeUint32LE=f.prototype.writeUInt32LE=function(g,b,S){return g=+g,b=b>>>0,S||oe(this,g,b,4,4294967295,0),this[b+3]=g>>>24,this[b+2]=g>>>16,this[b+1]=g>>>8,this[b]=g&255,b+4},f.prototype.writeUint32BE=f.prototype.writeUInt32BE=function(g,b,S){return g=+g,b=b>>>0,S||oe(this,g,b,4,4294967295,0),this[b]=g>>>24,this[b+1]=g>>>16,this[b+2]=g>>>8,this[b+3]=g&255,b+4},f.prototype.writeIntLE=function(g,b,S,X){if(g=+g,b=b>>>0,!X){var Ae=Math.pow(2,8*S-1);oe(this,g,b,S,Ae-1,-Ae)}var Se=0,Me=1,se=0;for(this[b]=g&255;++Se<S&&(Me*=256);)g<0&&se===0&&this[b+Se-1]!==0&&(se=1),this[b+Se]=(g/Me>>0)-se&255;return b+S},f.prototype.writeIntBE=function(g,b,S,X){if(g=+g,b=b>>>0,!X){var Ae=Math.pow(2,8*S-1);oe(this,g,b,S,Ae-1,-Ae)}var Se=S-1,Me=1,se=0;for(this[b+Se]=g&255;--Se>=0&&(Me*=256);)g<0&&se===0&&this[b+Se+1]!==0&&(se=1),this[b+Se]=(g/Me>>0)-se&255;return b+S},f.prototype.writeInt8=function(g,b,S){return g=+g,b=b>>>0,S||oe(this,g,b,1,127,-128),g<0&&(g=255+g+1),this[b]=g&255,b+1},f.prototype.writeInt16LE=function(g,b,S){return g=+g,b=b>>>0,S||oe(this,g,b,2,32767,-32768),this[b]=g&255,this[b+1]=g>>>8,b+2},f.prototype.writeInt16BE=function(g,b,S){return g=+g,b=b>>>0,S||oe(this,g,b,2,32767,-32768),this[b]=g>>>8,this[b+1]=g&255,b+2},f.prototype.writeInt32LE=function(g,b,S){return g=+g,b=b>>>0,S||oe(this,g,b,4,2147483647,-2147483648),this[b]=g&255,this[b+1]=g>>>8,this[b+2]=g>>>16,this[b+3]=g>>>24,b+4},f.prototype.writeInt32BE=function(g,b,S){return g=+g,b=b>>>0,S||oe(this,g,b,4,2147483647,-2147483648),g<0&&(g=4294967295+g+1),this[b]=g>>>24,this[b+1]=g>>>16,this[b+2]=g>>>8,this[b+3]=g&255,b+4};function q(x,g,b,S,X,Ae){if(b+S>x.length)throw new RangeError("Index out of range");if(b<0)throw new RangeError("Index out of range")}function N(x,g,b,S,X){return g=+g,b=b>>>0,X||q(x,g,b,4),i.write(x,g,b,S,23,4),b+4}f.prototype.writeFloatLE=function(g,b,S){return N(this,g,b,!0,S)},f.prototype.writeFloatBE=function(g,b,S){return N(this,g,b,!1,S)};function C(x,g,b,S,X){return g=+g,b=b>>>0,X||q(x,g,b,8),i.write(x,g,b,S,52,8),b+8}f.prototype.writeDoubleLE=function(g,b,S){return C(this,g,b,!0,S)},f.prototype.writeDoubleBE=function(g,b,S){return C(this,g,b,!1,S)},f.prototype.copy=function(g,b,S,X){if(!f.isBuffer(g))throw new TypeError("argument should be a Buffer");if(S||(S=0),!X&&X!==0&&(X=this.length),b>=g.length&&(b=g.length),b||(b=0),X>0&&X<S&&(X=S),X===S||g.length===0||this.length===0)return 0;if(b<0)throw new RangeError("targetStart out of bounds");if(S<0||S>=this.length)throw new RangeError("Index out of range");if(X<0)throw new RangeError("sourceEnd out of bounds");X>this.length&&(X=this.length),g.length-b<X-S&&(X=g.length-b+S);var Ae=X-S;return this===g&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(b,S,X):Uint8Array.prototype.set.call(g,this.subarray(S,X),b),Ae},f.prototype.fill=function(g,b,S,X){if(typeof g=="string"){if(typeof b=="string"?(X=b,b=0,S=this.length):typeof S=="string"&&(X=S,S=this.length),X!==void 0&&typeof X!="string")throw new TypeError("encoding must be a string");if(typeof X=="string"&&!f.isEncoding(X))throw new TypeError("Unknown encoding: "+X);if(g.length===1){var Ae=g.charCodeAt(0);(X==="utf8"&&Ae<128||X==="latin1")&&(g=Ae)}}else typeof g=="number"?g=g&255:typeof g=="boolean"&&(g=Number(g));if(b<0||this.length<b||this.length<S)throw new RangeError("Out of range index");if(S<=b)return this;b=b>>>0,S=S===void 0?this.length:S>>>0,g||(g=0);var Se;if(typeof g=="number")for(Se=b;Se<S;++Se)this[Se]=g;else{var Me=f.isBuffer(g)?g:f.from(g,X),se=Me.length;if(se===0)throw new TypeError('The value "'+g+'" is invalid for argument "value"');for(Se=0;Se<S-b;++Se)this[Se+b]=Me[Se%se]}return this};var P=/[^+/0-9A-Za-z-_]/g;function J(x){if(x=x.split("=")[0],x=x.trim().replace(P,""),x.length<2)return"";for(;x.length%4!==0;)x=x+"=";return x}function ne(x,g){g=g||1/0;for(var b,S=x.length,X=null,Ae=[],Se=0;Se<S;++Se){if(b=x.charCodeAt(Se),b>55295&&b<57344){if(!X){if(b>56319){(g-=3)>-1&&Ae.push(239,191,189);continue}else if(Se+1===S){(g-=3)>-1&&Ae.push(239,191,189);continue}X=b;continue}if(b<56320){(g-=3)>-1&&Ae.push(239,191,189),X=b;continue}b=(X-55296<<10|b-56320)+65536}else X&&(g-=3)>-1&&Ae.push(239,191,189);if(X=null,b<128){if((g-=1)<0)break;Ae.push(b)}else if(b<2048){if((g-=2)<0)break;Ae.push(b>>6|192,b&63|128)}else if(b<65536){if((g-=3)<0)break;Ae.push(b>>12|224,b>>6&63|128,b&63|128)}else if(b<1114112){if((g-=4)<0)break;Ae.push(b>>18|240,b>>12&63|128,b>>6&63|128,b&63|128)}else throw new Error("Invalid code point")}return Ae}function ce(x){for(var g=[],b=0;b<x.length;++b)g.push(x.charCodeAt(b)&255);return g}function w(x,g){for(var b,S,X,Ae=[],Se=0;Se<x.length&&!((g-=2)<0);++Se)b=x.charCodeAt(Se),S=b>>8,X=b%256,Ae.push(X),Ae.push(S);return Ae}function G(x){return t.toByteArray(J(x))}function Y(x,g,b,S){for(var X=0;X<S&&!(X+b>=g.length||X>=x.length);++X)g[X+b]=x[X];return X}function W(x,g){return x instanceof g||x!=null&&x.constructor!=null&&x.constructor.name!=null&&x.constructor.name===g.name}function me(x){return x!==x}var de=(function(){for(var x="0123456789abcdef",g=new Array(256),b=0;b<16;++b)for(var S=b*16,X=0;X<16;++X)g[S+X]=x[b]+x[X];return g})()})(Ly)),Ly}var Yt=H8(),Wf={exports:{}},T2;function z8(){return T2||(T2=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 y(V){if(s===setTimeout)return setTimeout(V,0);if((s===l||!s)&&setTimeout)return s=setTimeout,setTimeout(V,0);try{return s(V,0)}catch{try{return s.call(null,V,0)}catch{return s.call(this,V,0)}}}function h(V){if(c===clearTimeout)return clearTimeout(V);if((c===f||!c)&&clearTimeout)return c=clearTimeout,clearTimeout(V);try{return c(V)}catch{try{return c.call(null,V)}catch{return c.call(this,V)}}}var A=[],v=!1,m,I=-1;function O(){!v||!m||(v=!1,m.length?A=m.concat(A):I=-1,A.length&&M())}function M(){if(!v){var V=y(O);v=!0;for(var F=A.length;F;){for(m=A,A=[];++I<F;)m&&m[I].run();I=-1,F=A.length}m=null,v=!1,h(V)}}a.nextTick=function(V){var F=new Array(arguments.length-1);if(arguments.length>1)for(var z=1;z<arguments.length;z++)F[z-1]=arguments[z];A.push(new B(V,F)),A.length===1&&!v&&y(M)};function B(V,F){this.fun=V,this.array=F}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 R(){}a.on=R,a.addListener=R,a.once=R,a.off=R,a.removeListener=R,a.removeAllListeners=R,a.emit=R,a.prependListener=R,a.prependOnceListener=R,a.listeners=function(V){return[]},a.binding=function(V){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(V){throw new Error("process.chdir is not supported")},a.umask=function(){return 0};function U(){}var j=i.exports.browser,K=U,H=i.exports.binding,ie=U,ye=1,fe={},D=U,$=U,k=U,Q=U,re=U,Z="browser",pe="browser",_="browser",te=[],le={nextTick:i.exports.nextTick,title:i.exports.title,browser:j,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:K,prependListener:i.exports.prependListener,prependOnceListener:i.exports.prependOnceListener,listeners:i.exports.listeners,binding:H,cwd:i.exports.cwd,chdir:i.exports.chdir,umask:i.exports.umask,exit:ie,pid:ye,features:fe,kill:D,dlopen:$,uptime:k,memoryUsage:Q,uvCounters:re,platform:Z,arch:pe,execPath:_,execArgv:te};t.addListener=i.exports.addListener,t.arch=pe,t.argv=i.exports.argv,t.binding=H,t.browser=j,t.chdir=i.exports.chdir,t.cwd=i.exports.cwd,t.default=le,t.dlopen=$,t.emit=i.exports.emit,t.emitWarning=K,t.env=i.exports.env,t.execArgv=te,t.execPath=_,t.exit=ie,t.features=fe,t.kill=D,t.listeners=i.exports.listeners,t.memoryUsage=Q,t.nextTick=i.exports.nextTick,t.off=i.exports.off,t.on=i.exports.on,t.once=i.exports.once,t.pid=ye,t.platform=Z,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=re,t.version=i.exports.version,t.versions=i.exports.versions,t=e.exports=le})(Wf,Wf.exports)),Wf.exports}var G8=z8();const it=jd(G8);(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={},_2;function Q8(){if(_2)return Ze;_2=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"),y=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),v=Symbol.iterator;function m(F){return F===null||typeof F!="object"?null:(F=v&&F[v]||F["@@iterator"],typeof F=="function"?F:null)}var I={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,M={};function B(F,z,oe){this.props=F,this.context=z,this.refs=M,this.updater=oe||I}B.prototype.isReactComponent={},B.prototype.setState=function(F,z){if(typeof F!="object"&&typeof F!="function"&&F!=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,F,z,"setState")},B.prototype.forceUpdate=function(F){this.updater.enqueueForceUpdate(this,F,"forceUpdate")};function R(){}R.prototype=B.prototype;function U(F,z,oe){this.props=F,this.context=z,this.refs=M,this.updater=oe||I}var j=U.prototype=new R;j.constructor=U,O(j,B.prototype),j.isPureReactComponent=!0;var K=Array.isArray,H={H:null,A:null,T:null,S:null,V:null},ie=Object.prototype.hasOwnProperty;function ye(F,z,oe,q,N,C){return oe=C.ref,{$$typeof:e,type:F,key:z,ref:oe!==void 0?oe:null,props:C}}function fe(F,z){return ye(F.type,z,void 0,void 0,void 0,F.props)}function D(F){return typeof F=="object"&&F!==null&&F.$$typeof===e}function $(F){var z={"=":"=0",":":"=2"};return"$"+F.replace(/[=:]/g,function(oe){return z[oe]})}var k=/\/+/g;function Q(F,z){return typeof F=="object"&&F!==null&&F.key!=null?$(""+F.key):z.toString(36)}function re(){}function Z(F){switch(F.status){case"fulfilled":return F.value;case"rejected":throw F.reason;default:switch(typeof F.status=="string"?F.then(re,re):(F.status="pending",F.then(function(z){F.status==="pending"&&(F.status="fulfilled",F.value=z)},function(z){F.status==="pending"&&(F.status="rejected",F.reason=z)})),F.status){case"fulfilled":return F.value;case"rejected":throw F.reason}}throw F}function pe(F,z,oe,q,N){var C=typeof F;(C==="undefined"||C==="boolean")&&(F=null);var P=!1;if(F===null)P=!0;else switch(C){case"bigint":case"string":case"number":P=!0;break;case"object":switch(F.$$typeof){case e:case t:P=!0;break;case A:return P=F._init,pe(P(F._payload),z,oe,q,N)}}if(P)return N=N(F),P=q===""?"."+Q(F,0):q,K(N)?(oe="",P!=null&&(oe=P.replace(k,"$&/")+"/"),pe(N,z,oe,"",function(ce){return ce})):N!=null&&(D(N)&&(N=fe(N,oe+(N.key==null||F&&F.key===N.key?"":(""+N.key).replace(k,"$&/")+"/")+P)),z.push(N)),1;P=0;var J=q===""?".":q+":";if(K(F))for(var ne=0;ne<F.length;ne++)q=F[ne],C=J+Q(q,ne),P+=pe(q,z,oe,C,N);else if(ne=m(F),typeof ne=="function")for(F=ne.call(F),ne=0;!(q=F.next()).done;)q=q.value,C=J+Q(q,ne++),P+=pe(q,z,oe,C,N);else if(C==="object"){if(typeof F.then=="function")return pe(Z(F),z,oe,q,N);throw z=String(F),Error("Objects are not valid as a React child (found: "+(z==="[object Object]"?"object with keys {"+Object.keys(F).join(", ")+"}":z)+"). If you meant to render a collection of children, use an array instead.")}return P}function _(F,z,oe){if(F==null)return F;var q=[],N=0;return pe(F,q,"","",function(C){return z.call(oe,C,N++)}),q}function te(F){if(F._status===-1){var z=F._result;z=z(),z.then(function(oe){(F._status===0||F._status===-1)&&(F._status=1,F._result=oe)},function(oe){(F._status===0||F._status===-1)&&(F._status=2,F._result=oe)}),F._status===-1&&(F._status=0,F._result=z)}if(F._status===1)return F._result.default;throw F._result}var le=typeof reportError=="function"?reportError:function(F){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof F=="object"&&F!==null&&typeof F.message=="string"?String(F.message):String(F),error:F});if(!window.dispatchEvent(z))return}else if(typeof it=="object"&&typeof it.emit=="function"){it.emit("uncaughtException",F);return}console.error(F)};function V(){}return Ze.Children={map:_,forEach:function(F,z,oe){_(F,function(){z.apply(this,arguments)},oe)},count:function(F){var z=0;return _(F,function(){z++}),z},toArray:function(F){return _(F,function(z){return z})||[]},only:function(F){if(!D(F))throw Error("React.Children.only expected to receive a single React element child.");return F}},Ze.Component=B,Ze.Fragment=i,Ze.Profiler=s,Ze.PureComponent=U,Ze.StrictMode=a,Ze.Suspense=y,Ze.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,Ze.__COMPILER_RUNTIME={__proto__:null,c:function(F){return H.H.useMemoCache(F)}},Ze.cache=function(F){return function(){return F.apply(null,arguments)}},Ze.cloneElement=function(F,z,oe){if(F==null)throw Error("The argument must be a React element, but you passed "+F+".");var q=O({},F.props),N=F.key,C=void 0;if(z!=null)for(P in z.ref!==void 0&&(C=void 0),z.key!==void 0&&(N=""+z.key),z)!ie.call(z,P)||P==="key"||P==="__self"||P==="__source"||P==="ref"&&z.ref===void 0||(q[P]=z[P]);var P=arguments.length-2;if(P===1)q.children=oe;else if(1<P){for(var J=Array(P),ne=0;ne<P;ne++)J[ne]=arguments[ne+2];q.children=J}return ye(F.type,N,void 0,void 0,C,q)},Ze.createContext=function(F){return F={$$typeof:l,_currentValue:F,_currentValue2:F,_threadCount:0,Provider:null,Consumer:null},F.Provider=F,F.Consumer={$$typeof:c,_context:F},F},Ze.createElement=function(F,z,oe){var q,N={},C=null;if(z!=null)for(q in z.key!==void 0&&(C=""+z.key),z)ie.call(z,q)&&q!=="key"&&q!=="__self"&&q!=="__source"&&(N[q]=z[q]);var P=arguments.length-2;if(P===1)N.children=oe;else if(1<P){for(var J=Array(P),ne=0;ne<P;ne++)J[ne]=arguments[ne+2];N.children=J}if(F&&F.defaultProps)for(q in P=F.defaultProps,P)N[q]===void 0&&(N[q]=P[q]);return ye(F,C,void 0,void 0,null,N)},Ze.createRef=function(){return{current:null}},Ze.forwardRef=function(F){return{$$typeof:f,render:F}},Ze.isValidElement=D,Ze.lazy=function(F){return{$$typeof:A,_payload:{_status:-1,_result:F},_init:te}},Ze.memo=function(F,z){return{$$typeof:h,type:F,compare:z===void 0?null:z}},Ze.startTransition=function(F){var z=H.T,oe={};H.T=oe;try{var q=F(),N=H.S;N!==null&&N(oe,q),typeof q=="object"&&q!==null&&typeof q.then=="function"&&q.then(V,le)}catch(C){le(C)}finally{H.T=z}},Ze.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()},Ze.use=function(F){return H.H.use(F)},Ze.useActionState=function(F,z,oe){return H.H.useActionState(F,z,oe)},Ze.useCallback=function(F,z){return H.H.useCallback(F,z)},Ze.useContext=function(F){return H.H.useContext(F)},Ze.useDebugValue=function(){},Ze.useDeferredValue=function(F,z){return H.H.useDeferredValue(F,z)},Ze.useEffect=function(F,z,oe){var q=H.H;if(typeof oe=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return q.useEffect(F,z)},Ze.useId=function(){return H.H.useId()},Ze.useImperativeHandle=function(F,z,oe){return H.H.useImperativeHandle(F,z,oe)},Ze.useInsertionEffect=function(F,z){return H.H.useInsertionEffect(F,z)},Ze.useLayoutEffect=function(F,z){return H.H.useLayoutEffect(F,z)},Ze.useMemo=function(F,z){return H.H.useMemo(F,z)},Ze.useOptimistic=function(F,z){return H.H.useOptimistic(F,z)},Ze.useReducer=function(F,z,oe){return H.H.useReducer(F,z,oe)},Ze.useRef=function(F){return H.H.useRef(F)},Ze.useState=function(F){return H.H.useState(F)},Ze.useSyncExternalStore=function(F,z,oe){return H.H.useSyncExternalStore(F,z,oe)},Ze.useTransition=function(){return H.H.useTransition()},Ze.version="19.1.1",Ze}var D2;function f1(){return D2||(D2=1,Ny.exports=Q8()),Ny.exports}var De=f1(),qy={exports:{}},Ac={},$y={exports:{}},Hy={};/**
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 U2;function k8(){return U2||(U2=1,(function(e){function t(_,te){var le=_.length;_.push(te);e:for(;0<le;){var V=le-1>>>1,F=_[V];if(0<s(F,te))_[V]=te,_[le]=F,le=V;else break e}}function i(_){return _.length===0?null:_[0]}function a(_){if(_.length===0)return null;var te=_[0],le=_.pop();if(le!==te){_[0]=le;e:for(var V=0,F=_.length,z=F>>>1;V<z;){var oe=2*(V+1)-1,q=_[oe],N=oe+1,C=_[N];if(0>s(q,le))N<F&&0>s(C,q)?(_[V]=C,_[N]=le,V=N):(_[V]=q,_[oe]=le,V=oe);else if(N<F&&0>s(C,le))_[V]=C,_[N]=le,V=N;else break e}}return te}function s(_,te){var le=_.sortIndex-te.sortIndex;return le!==0?le:_.id-te.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 y=[],h=[],A=1,v=null,m=3,I=!1,O=!1,M=!1,B=!1,R=typeof setTimeout=="function"?setTimeout:null,U=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;function K(_){for(var te=i(h);te!==null;){if(te.callback===null)a(h);else if(te.startTime<=_)a(h),te.sortIndex=te.expirationTime,t(y,te);else break;te=i(h)}}function H(_){if(M=!1,K(_),!O)if(i(y)!==null)O=!0,ie||(ie=!0,Q());else{var te=i(h);te!==null&&pe(H,te.startTime-_)}}var ie=!1,ye=-1,fe=5,D=-1;function $(){return B?!0:!(e.unstable_now()-D<fe)}function k(){if(B=!1,ie){var _=e.unstable_now();D=_;var te=!0;try{e:{O=!1,M&&(M=!1,U(ye),ye=-1),I=!0;var le=m;try{t:{for(K(_),v=i(y);v!==null&&!(v.expirationTime>_&&$());){var V=v.callback;if(typeof V=="function"){v.callback=null,m=v.priorityLevel;var F=V(v.expirationTime<=_);if(_=e.unstable_now(),typeof F=="function"){v.callback=F,K(_),te=!0;break t}v===i(y)&&a(y),K(_)}else a(y);v=i(y)}if(v!==null)te=!0;else{var z=i(h);z!==null&&pe(H,z.startTime-_),te=!1}}break e}finally{v=null,m=le,I=!1}te=void 0}}finally{te?Q():ie=!1}}}var Q;if(typeof j=="function")Q=function(){j(k)};else if(typeof MessageChannel<"u"){var re=new MessageChannel,Z=re.port2;re.port1.onmessage=k,Q=function(){Z.postMessage(null)}}else Q=function(){R(k,0)};function pe(_,te){ye=R(function(){_(e.unstable_now())},te)}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(_){_.callback=null},e.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):fe=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_next=function(_){switch(m){case 1:case 2:case 3:var te=3;break;default:te=m}var le=m;m=te;try{return _()}finally{m=le}},e.unstable_requestPaint=function(){B=!0},e.unstable_runWithPriority=function(_,te){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var le=m;m=_;try{return te()}finally{m=le}},e.unstable_scheduleCallback=function(_,te,le){var V=e.unstable_now();switch(typeof le=="object"&&le!==null?(le=le.delay,le=typeof le=="number"&&0<le?V+le:V):le=V,_){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=le+F,_={id:A++,callback:te,priorityLevel:_,startTime:le,expirationTime:F,sortIndex:-1},le>V?(_.sortIndex=le,t(h,_),i(y)===null&&_===i(h)&&(M?(U(ye),ye=-1):M=!0,pe(H,le-V))):(_.sortIndex=F,t(y,_),O||I||(O=!0,ie||(ie=!0,Q()))),_},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(_){var te=m;return function(){var le=m;m=te;try{return _.apply(this,arguments)}finally{m=le}}}})(Hy)),Hy}var M2;function V8(){return M2||(M2=1,$y.exports=k8()),$y.exports}var zy={exports:{}},Rn={};/**
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 j2;function K8(){if(j2)return Rn;j2=1;var e=f1();function t(y){var h="https://react.dev/errors/"+y;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var A=2;A<arguments.length;A++)h+="&args[]="+encodeURIComponent(arguments[A])}return"Minified React error #"+y+"; 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(y,h,A){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:v==null?null:""+v,children:y,containerInfo:h,implementation:A}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(y,h){if(y==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Rn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,Rn.createPortal=function(y,h){var A=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(y,h,null,A)},Rn.flushSync=function(y){var h=l.T,A=a.p;try{if(l.T=null,a.p=2,y)return y()}finally{l.T=h,a.p=A,a.d.f()}},Rn.preconnect=function(y,h){typeof y=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,a.d.C(y,h))},Rn.prefetchDNS=function(y){typeof y=="string"&&a.d.D(y)},Rn.preinit=function(y,h){if(typeof y=="string"&&h&&typeof h.as=="string"){var A=h.as,v=f(A,h.crossOrigin),m=typeof h.integrity=="string"?h.integrity:void 0,I=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;A==="style"?a.d.S(y,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:v,integrity:m,fetchPriority:I}):A==="script"&&a.d.X(y,{crossOrigin:v,integrity:m,fetchPriority:I,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Rn.preinitModule=function(y,h){if(typeof y=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var A=f(h.as,h.crossOrigin);a.d.M(y,{crossOrigin:A,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&a.d.M(y)},Rn.preload=function(y,h){if(typeof y=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var A=h.as,v=f(A,h.crossOrigin);a.d.L(y,A,{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})}},Rn.preloadModule=function(y,h){if(typeof y=="string")if(h){var A=f(h.as,h.crossOrigin);a.d.m(y,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:A,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else a.d.m(y)},Rn.requestFormReset=function(y){a.d.r(y)},Rn.unstable_batchedUpdates=function(y,h){return y(h)},Rn.useFormState=function(y,h,A){return l.H.useFormState(y,h,A)},Rn.useFormStatus=function(){return l.H.useHostTransitionStatus()},Rn.version="19.1.1",Rn}var P2;function Y8(){if(P2)return zy.exports;P2=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(),zy.exports=K8(),zy.exports}var N2;function X8(){if(N2)return Ac;N2=1;var e=V8(),t=f1(),i=Y8();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 y(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 p=d.alternate;if(p===null){if(u=d.return,u!==null){o=u;continue}break}if(d.child===p.child){for(p=d.child;p;){if(p===o)return f(d),n;if(p===u)return f(d),r;p=p.sibling}throw Error(a(188))}if(o.return!==u.return)o=d,u=p;else{for(var T=!1,L=d.child;L;){if(L===o){T=!0,o=d,u=p;break}if(L===u){T=!0,u=d,o=p;break}L=L.sibling}if(!T){for(L=p.child;L;){if(L===o){T=!0,o=p,u=d;break}if(L===u){T=!0,u=p,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 A=Object.assign,v=Symbol.for("react.element"),m=Symbol.for("react.transitional.element"),I=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),R=Symbol.for("react.provider"),U=Symbol.for("react.consumer"),j=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),ie=Symbol.for("react.suspense_list"),ye=Symbol.for("react.memo"),fe=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),$=Symbol.for("react.memo_cache_sentinel"),k=Symbol.iterator;function Q(n){return n===null||typeof n!="object"?null:(n=k&&n[k]||n["@@iterator"],typeof n=="function"?n:null)}var re=Symbol.for("react.client.reference");function Z(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===re?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case O:return"Fragment";case B:return"Profiler";case M:return"StrictMode";case H:return"Suspense";case ie:return"SuspenseList";case D:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case I:return"Portal";case j:return(n.displayName||"Context")+".Provider";case U:return(n._context.displayName||"Context")+".Consumer";case K:var r=n.render;return n=n.displayName,n||(n=r.displayName||r.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case ye:return r=n.displayName||null,r!==null?r:Z(n.type)||"Memo";case fe:r=n._payload,n=n._init;try{return Z(n(r))}catch{}}return null}var pe=Array.isArray,_=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le={pending:!1,data:null,method:null,action:null},V=[],F=-1;function z(n){return{current:n}}function oe(n){0>F||(n.current=V[F],V[F]=null,F--)}function q(n,r){F++,V[F]=n.current,n.current=r}var N=z(null),C=z(null),P=z(null),J=z(null);function ne(n,r){switch(q(P,r),q(C,n),q(N,null),r.nodeType){case 9:case 11:n=(n=r.documentElement)&&(n=n.namespaceURI)?Ww(n):0;break;default:if(n=r.tagName,r=r.namespaceURI)r=Ww(r),n=e2(r,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}oe(N),q(N,n)}function ce(){oe(N),oe(C),oe(P)}function w(n){n.memoizedState!==null&&q(J,n);var r=N.current,o=e2(r,n.type);r!==o&&(q(C,n),q(N,o))}function G(n){C.current===n&&(oe(N),oe(C)),J.current===n&&(oe(J),fc._currentValue=le)}var Y=Object.prototype.hasOwnProperty,W=e.unstable_scheduleCallback,me=e.unstable_cancelCallback,de=e.unstable_shouldYield,x=e.unstable_requestPaint,g=e.unstable_now,b=e.unstable_getCurrentPriorityLevel,S=e.unstable_ImmediatePriority,X=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 Te(n){if(typeof se=="function"&&ue(n),Oe&&typeof Oe.setStrictMode=="function")try{Oe.setStrictMode(Ee,n)}catch{}}var Ne=Math.clz32?Math.clz32:Ge,qe=Math.log,ze=Math.LN2;function Ge(n){return n>>>=0,n===0?32:31-(qe(n)/ze|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,p=n.suspendedLanes,T=n.pingedLanes;n=n.warmLanes;var L=u&134217727;return L!==0?(u=L&~p,u!==0?d=ut(u):(T&=L,T!==0?d=ut(T):o||(o=L&~n,o!==0&&(d=ut(o))))):(L=u&~p,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&p)===0&&(p=d&-d,o=r&-r,p>=o||p===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 Tt(n){for(var r=[],o=0;31>o;o++)r.push(n);return r}function Bt(n,r){n.pendingLanes|=r,r!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function $t(n,r,o,u,d,p){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),Re=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&=~Re}u!==0&&jt(n,u,0),p!==0&&d===0&&n.tag!==0&&(n.suspendedLanes|=p&~(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 ta(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function Ga(){var n=te.p;return n!==0?n:(n=window.event,n===void 0?32:b2(n.type))}function Ko(n,r){var o=te.p;try{return te.p=n,r()}finally{te.p=o}}var nr=Math.random().toString(36).slice(2),kt="__reactFiber$"+nr,sn="__reactProps$"+nr,Mr="__reactContainer$"+nr,na="__reactEvents$"+nr,Yo="__reactListeners$"+nr,Xo="__reactHandles$"+nr,Qa="__reactResources$"+nr,ti="__reactMarker$"+nr;function ra(n){delete n[kt],delete n[sn],delete n[na],delete n[Yo],delete n[Xo]}function jr(n){var r=n[kt];if(r)return r;for(var o=n.parentNode;o;){if(r=o[Mr]||o[kt]){if(o=r.alternate,r.child!==null||o!==null&&o.child!==null)for(n=i2(n);n!==null;){if(o=n[kt])return o;n=i2(n)}return r}n=o,o=n.parentNode}return null}function Pr(n){if(n=n[kt]||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[Qa];return r||(r=n[Qa]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function Nt(n){n[ti]=!0}var ka=new Set,Va={};function br(n,r){Lr(n,r),Lr(n+"Capture",r)}function Lr(n,r){for(Va[n]=r,n=0;n<r.length;n++)ka.add(r[n])}var Zo=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]*$"),Ka={},Ya={};function Jo(n){return Y.call(Ya,n)?!0:Y.call(Ka,n)?!1:Zo.test(n)?Ya[n]=!0:(Ka[n]=!0,!1)}function bi(n,r,o){if(Jo(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 Hl(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 vi(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 Rh,kv;function Wo(n){if(Rh===void 0)try{throw Error()}catch(o){var r=o.stack.trim().match(/\n( *(at )?)/);Rh=r&&r[1]||"",kv=-1<o.stack.indexOf(`
31
+ at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
32
+ `+Rh+n+kv}var Th=!1;function _h(n,r){if(!n||Th)return"";Th=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(r){var Re=function(){throw Error()};if(Object.defineProperty(Re.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Re,[])}catch(we){var xe=we}Reflect.construct(n,[],Re)}else{try{Re.call()}catch(we){xe=we}n.call(Re.prototype)}}else{try{throw Error()}catch(we){xe=we}(Re=n())&&typeof Re.catch=="function"&&Re.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 p=u.DetermineComponentFrameRoot(),T=p[0],L=p[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{Th=!1,Error.prepareStackTrace=o}return(o=n?n.displayName||n.name:"")?Wo(o):""}function __(n){switch(n.tag){case 26:case 27:case 5:return Wo(n.type);case 16:return Wo("Lazy");case 13:return Wo("Suspense");case 19:return Wo("SuspenseList");case 0:case 15:return _h(n.type,!1);case 11:return _h(n.type.render,!1);case 1:return _h(n.type,!0);case 31:return Wo("Activity");default:return""}}function Vv(n){try{var r="";do r+=__(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 Kv(n){var r=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function D_(n){var r=Kv(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,p=o.set;return Object.defineProperty(n,r,{configurable:!0,get:function(){return d.call(this)},set:function(T){u=""+T,p.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 zl(n){n._valueTracker||(n._valueTracker=D_(n))}function Yv(n){if(!n)return!1;var r=n._valueTracker;if(!r)return!0;var o=r.getValue(),u="";return n&&(u=Kv(n)?n.checked?"true":"false":n.value),n=u,n!==o?(r.setValue(n),!0):!1}function Gl(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 U_=/[\n"\\]/g;function xr(n){return n.replace(U_,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function Dh(n,r,o,u,d,p,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?Uh(n,T,vr(r)):o!=null?Uh(n,T,vr(o)):u!=null&&n.removeAttribute("value"),d==null&&p!=null&&(n.defaultChecked=!!p),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 Xv(n,r,o,u,d,p,T,L){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(n.type=p),r!=null||o!=null){if(!(p!=="submit"&&p!=="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 Uh(n,r,o){r==="number"&&Gl(n.ownerDocument)===n||n.defaultValue===""+o||(n.defaultValue=""+o)}function es(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 Zv(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 Jv(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 ts(n,r){if(r){var o=n.firstChild;if(o&&o===n.lastChild&&o.nodeType===3){o.nodeValue=r;return}}n.textContent=r}var M_=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 Wv(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||M_.has(r)?r==="float"?n.cssFloat=o:n[r]=(""+o).trim():n[r]=o+"px"}function ex(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&&Wv(n,d,u)}else for(var p in r)r.hasOwnProperty(p)&&Wv(n,p,r[p])}function Mh(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 j_=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"]]),P_=/^[\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 Ql(n){return P_.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}var jh=null;function Ph(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var ns=null,rs=null;function tx(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(Dh(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));Dh(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&&Yv(u)}break e;case"textarea":Zv(n,o.value,o.defaultValue);break e;case"select":r=o.value,r!=null&&es(n,!!o.multiple,r,!1)}}}var Nh=!1;function nx(n,r,o){if(Nh)return n(r,o);Nh=!0;try{var u=n(r);return u}finally{if(Nh=!1,(ns!==null||rs!==null)&&(Tf(),ns&&(r=ns,n=rs,rs=ns=null,tx(r),n)))for(r=0;r<n.length;r++)tx(n[r])}}function Iu(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 xi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Lh=!1;if(xi)try{var Su={};Object.defineProperty(Su,"passive",{get:function(){Lh=!0}}),window.addEventListener("test",Su,Su),window.removeEventListener("test",Su,Su)}catch{Lh=!1}var ia=null,qh=null,kl=null;function rx(){if(kl)return kl;var n,r=qh,o=r.length,u,d="value"in ia?ia.value:ia.textContent,p=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[p-u];u++);return kl=d.slice(n,1<u?1-u:void 0)}function Vl(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 Kl(){return!0}function ix(){return!1}function zn(n){function r(o,u,d,p,T){this._reactName=o,this._targetInst=d,this.type=u,this.nativeEvent=p,this.target=T,this.currentTarget=null;for(var L in n)n.hasOwnProperty(L)&&(o=n[L],this[L]=o?o(p):p[L]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?Kl:ix,this.isPropagationStopped=ix,this}return A(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=Kl)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Kl)},persist:function(){},isPersistent:Kl}),r}var Xa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Yl=zn(Xa),Cu=A({},Xa,{view:0,detail:0}),N_=zn(Cu),$h,Hh,Ou,Xl=A({},Cu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gh,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!==Ou&&(Ou&&n.type==="mousemove"?($h=n.screenX-Ou.screenX,Hh=n.screenY-Ou.screenY):Hh=$h=0,Ou=n),$h)},movementY:function(n){return"movementY"in n?n.movementY:Hh}}),ax=zn(Xl),L_=A({},Xl,{dataTransfer:0}),q_=zn(L_),$_=A({},Cu,{relatedTarget:0}),zh=zn($_),H_=A({},Xa,{animationName:0,elapsedTime:0,pseudoElement:0}),z_=zn(H_),G_=A({},Xa,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),Q_=zn(G_),k_=A({},Xa,{data:0}),ox=zn(k_),V_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},K_={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"},Y_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function X_(n){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(n):(n=Y_[n])?!!r[n]:!1}function Gh(){return X_}var Z_=A({},Cu,{key:function(n){if(n.key){var r=V_[n.key]||n.key;if(r!=="Unidentified")return r}return n.type==="keypress"?(n=Vl(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?K_[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gh,charCode:function(n){return n.type==="keypress"?Vl(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Vl(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),J_=zn(Z_),W_=A({},Xl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),sx=zn(W_),e6=A({},Cu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gh}),t6=zn(e6),n6=A({},Xa,{propertyName:0,elapsedTime:0,pseudoElement:0}),r6=zn(n6),i6=A({},Xl,{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}),a6=zn(i6),o6=A({},Xa,{newState:0,oldState:0}),s6=zn(o6),u6=[9,13,27,32],Qh=xi&&"CompositionEvent"in window,Fu=null;xi&&"documentMode"in document&&(Fu=document.documentMode);var c6=xi&&"TextEvent"in window&&!Fu,ux=xi&&(!Qh||Fu&&8<Fu&&11>=Fu),cx=" ",lx=!1;function fx(n,r){switch(n){case"keyup":return u6.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function dx(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var is=!1;function l6(n,r){switch(n){case"compositionend":return dx(r);case"keypress":return r.which!==32?null:(lx=!0,cx);case"textInput":return n=r.data,n===cx&&lx?null:n;default:return null}}function f6(n,r){if(is)return n==="compositionend"||!Qh&&fx(n,r)?(n=rx(),kl=qh=ia=null,is=!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 ux&&r.locale!=="ko"?null:r.data;default:return null}}var d6={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 hx(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r==="input"?!!d6[n.type]:r==="textarea"}function px(n,r,o,u){ns?rs?rs.push(u):rs=[u]:ns=u,r=Pf(r,"onChange"),0<r.length&&(o=new Yl("onChange","change",null,o,u),n.push({event:o,listeners:r}))}var Bu=null,Ru=null;function h6(n){Kw(n,0)}function Zl(n){var r=ni(n);if(Yv(r))return n}function yx(n,r){if(n==="change")return r}var gx=!1;if(xi){var kh;if(xi){var Vh="oninput"in document;if(!Vh){var mx=document.createElement("div");mx.setAttribute("oninput","return;"),Vh=typeof mx.oninput=="function"}kh=Vh}else kh=!1;gx=kh&&(!document.documentMode||9<document.documentMode)}function Ax(){Bu&&(Bu.detachEvent("onpropertychange",bx),Ru=Bu=null)}function bx(n){if(n.propertyName==="value"&&Zl(Ru)){var r=[];px(r,Ru,n,Ph(n)),nx(h6,r)}}function p6(n,r,o){n==="focusin"?(Ax(),Bu=r,Ru=o,Bu.attachEvent("onpropertychange",bx)):n==="focusout"&&Ax()}function y6(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Zl(Ru)}function g6(n,r){if(n==="click")return Zl(r)}function m6(n,r){if(n==="input"||n==="change")return Zl(r)}function A6(n,r){return n===r&&(n!==0||1/n===1/r)||n!==n&&r!==r}var rr=typeof Object.is=="function"?Object.is:A6;function Tu(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(!Y.call(r,d)||!rr(n[d],r[d]))return!1}return!0}function vx(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function xx(n,r){var o=vx(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=vx(o)}}function Ex(n,r){return n&&r?n===r?!0:n&&n.nodeType===3?!1:r&&r.nodeType===3?Ex(n,r.parentNode):"contains"in n?n.contains(r):n.compareDocumentPosition?!!(n.compareDocumentPosition(r)&16):!1:!1}function wx(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var r=Gl(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=Gl(n.document)}return r}function Kh(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 b6=xi&&"documentMode"in document&&11>=document.documentMode,as=null,Yh=null,_u=null,Xh=!1;function Ix(n,r,o){var u=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Xh||as==null||as!==Gl(u)||(u=as,"selectionStart"in u&&Kh(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}),_u&&Tu(_u,u)||(_u=u,u=Pf(Yh,"onSelect"),0<u.length&&(r=new Yl("onSelect","select",null,r,o),n.push({event:r,listeners:u}),r.target=as)))}function Za(n,r){var o={};return o[n.toLowerCase()]=r.toLowerCase(),o["Webkit"+n]="webkit"+r,o["Moz"+n]="moz"+r,o}var os={animationend:Za("Animation","AnimationEnd"),animationiteration:Za("Animation","AnimationIteration"),animationstart:Za("Animation","AnimationStart"),transitionrun:Za("Transition","TransitionRun"),transitionstart:Za("Transition","TransitionStart"),transitioncancel:Za("Transition","TransitionCancel"),transitionend:Za("Transition","TransitionEnd")},Zh={},Sx={};xi&&(Sx=document.createElement("div").style,"AnimationEvent"in window||(delete os.animationend.animation,delete os.animationiteration.animation,delete os.animationstart.animation),"TransitionEvent"in window||delete os.transitionend.transition);function Ja(n){if(Zh[n])return Zh[n];if(!os[n])return n;var r=os[n],o;for(o in r)if(r.hasOwnProperty(o)&&o in Sx)return Zh[n]=r[o];return n}var Cx=Ja("animationend"),Ox=Ja("animationiteration"),Fx=Ja("animationstart"),v6=Ja("transitionrun"),x6=Ja("transitionstart"),E6=Ja("transitioncancel"),Bx=Ja("transitionend"),Rx=new Map,Jh="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(" ");Jh.push("scrollEnd");function qr(n,r){Rx.set(n,r),br(r,[n])}var Tx=new WeakMap;function Er(n,r){if(typeof n=="object"&&n!==null){var o=Tx.get(n);return o!==void 0?o:(r={value:n,source:r,stack:Vv(r)},Tx.set(n,r),r)}return{value:n,source:r,stack:Vv(r)}}var wr=[],ss=0,Wh=0;function Jl(){for(var n=ss,r=Wh=ss=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 p=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}p!==0&&_x(o,d,p)}}function Wl(n,r,o,u){wr[ss++]=n,wr[ss++]=r,wr[ss++]=o,wr[ss++]=u,Wh|=u,n.lanes|=u,n=n.alternate,n!==null&&(n.lanes|=u)}function ep(n,r,o,u){return Wl(n,r,o,u),ef(n)}function us(n,r){return Wl(n,null,null,r),ef(n)}function _x(n,r,o){n.lanes|=o;var u=n.alternate;u!==null&&(u.lanes|=o);for(var d=!1,p=n.return;p!==null;)p.childLanes|=o,u=p.alternate,u!==null&&(u.childLanes|=o),p.tag===22&&(n=p.stateNode,n===null||n._visibility&1||(d=!0)),n=p,p=p.return;return n.tag===3?(p=n.stateNode,d&&r!==null&&(d=31-Ne(o),n=p.hiddenUpdates,u=n[d],u===null?n[d]=[r]:u.push(r),r.lane=o|536870912),p):null}function ef(n){if(50<rc)throw rc=0,oy=null,Error(a(185));for(var r=n.return;r!==null;)n=r,r=n.return;return n.tag===3?n.stateNode:null}var cs={};function w6(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 w6(n,r,o,u)}function tp(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Ei(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 Dx(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 tf(n,r,o,u,d,p){var T=0;if(u=n,typeof n=="function")tp(n)&&(T=1);else if(typeof n=="string")T=S8(n,o,N.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case D:return n=ir(31,o,r,d),n.elementType=D,n.lanes=p,n;case O:return Wa(o.children,d,p,r);case M:T=8,d|=24;break;case B:return n=ir(12,o,r,d|2),n.elementType=B,n.lanes=p,n;case H:return n=ir(13,o,r,d),n.elementType=H,n.lanes=p,n;case ie:return n=ir(19,o,r,d),n.elementType=ie,n.lanes=p,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case R:case j:T=10;break e;case U:T=9;break e;case K:T=11;break e;case ye:T=14;break e;case fe: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=p,r}function Wa(n,r,o,u){return n=ir(7,n,u,r),n.lanes=o,n}function np(n,r,o){return n=ir(6,n,null,r),n.lanes=o,n}function rp(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 ls=[],fs=0,nf=null,rf=0,Ir=[],Sr=0,eo=null,wi=1,Ii="";function to(n,r){ls[fs++]=rf,ls[fs++]=nf,nf=n,rf=r}function Ux(n,r,o){Ir[Sr++]=wi,Ir[Sr++]=Ii,Ir[Sr++]=eo,eo=n;var u=wi;n=Ii;var d=32-Ne(u)-1;u&=~(1<<d),o+=1;var p=32-Ne(r)+d;if(30<p){var T=d-d%5;p=(u&(1<<T)-1).toString(32),u>>=T,d-=T,wi=1<<32-Ne(r)+d|o<<d|u,Ii=p+n}else wi=1<<p|o<<d|u,Ii=n}function ip(n){n.return!==null&&(to(n,1),Ux(n,1,0))}function ap(n){for(;n===nf;)nf=ls[--fs],ls[fs]=null,rf=ls[--fs],ls[fs]=null;for(;n===eo;)eo=Ir[--Sr],Ir[Sr]=null,Ii=Ir[--Sr],Ir[Sr]=null,wi=Ir[--Sr],Ir[Sr]=null}var Pn=null,Ht=null,gt=!1,no=null,ri=!1,op=Error(a(519));function ro(n){var r=Error(a(418,""));throw Mu(Er(r,n)),op}function Mx(n){var r=n.stateNode,o=n.type,u=n.memoizedProps;switch(r[kt]=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<ac.length;o++)nt(ac[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),Xv(r,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0),zl(r);break;case"select":nt("invalid",r);break;case"textarea":nt("invalid",r),Jv(r,u.value,u.defaultValue,u.children),zl(r)}o=u.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||r.textContent===""+o||u.suppressHydrationWarning===!0||Jw(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=Nf),r=!0):r=!1,r||ro(n)}function jx(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 Du(n){if(n!==Pn)return!1;if(!gt)return jx(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")||Ey(n.type,n.memoizedProps)),o=!o),o&&Ht&&ro(n),jx(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,va(n.type)?(n=Cy,Cy=null,Ht=n):Ht=r):Ht=Pn?Hr(n.stateNode.nextSibling):null;return!0}function Uu(){Ht=Pn=null,gt=!1}function Px(){var n=no;return n!==null&&(kn===null?kn=n:kn.push.apply(kn,n),no=null),n}function Mu(n){no===null?no=[n]:no.push(n)}var sp=z(null),io=null,Si=null;function aa(n,r,o){q(sp,r._currentValue),r._currentValue=o}function Ci(n){n._currentValue=sp.current,oe(sp)}function up(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 cp(n,r,o,u){var d=n.child;for(d!==null&&(d.return=n);d!==null;){var p=d.dependencies;if(p!==null){var T=d.child;p=p.firstContext;e:for(;p!==null;){var L=p;p=d;for(var ae=0;ae<r.length;ae++)if(L.context===r[ae]){p.lanes|=o,L=p.alternate,L!==null&&(L.lanes|=o),up(p.return,o,n),u||(T=null);break e}p=L.next}}else if(d.tag===18){if(T=d.return,T===null)throw Error(a(341));T.lanes|=o,p=T.alternate,p!==null&&(p.lanes|=o),up(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 ju(n,r,o,u){n=null;for(var d=r,p=!1;d!==null;){if(!p){if((d.flags&524288)!==0)p=!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===J.current){if(T=d.alternate,T===null)throw Error(a(387));T.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(n!==null?n.push(fc):n=[fc])}d=d.return}n!==null&&cp(r,n,o,u),r.flags|=262144}function af(n){for(n=n.firstContext;n!==null;){if(!rr(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function ao(n){io=n,Si=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function Bn(n){return Nx(io,n)}function of(n,r){return io===null&&ao(n),Nx(n,r)}function Nx(n,r){var o=r._currentValue;if(r={context:r,memoizedValue:o,next:null},Si===null){if(n===null)throw Error(a(308));Si=r,n.dependencies={lanes:0,firstContext:r},n.flags|=524288}else Si=Si.next=r;return o}var I6=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()})}},S6=e.unstable_scheduleCallback,C6=e.unstable_NormalPriority,un={$$typeof:j,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function lp(){return{controller:new I6,data:new Map,refCount:0}}function Pu(n){n.refCount--,n.refCount===0&&S6(C6,function(){n.controller.abort()})}var Nu=null,fp=0,ds=0,hs=null;function O6(n,r){if(Nu===null){var o=Nu=[];fp=0,ds=hy(),hs={status:"pending",value:void 0,then:function(u){o.push(u)}}}return fp++,r.then(Lx,Lx),r}function Lx(){if(--fp===0&&Nu!==null){hs!==null&&(hs.status="fulfilled");var n=Nu;Nu=null,ds=0,hs=null;for(var r=0;r<n.length;r++)(0,n[r])()}}function F6(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 qx=_.S;_.S=function(n,r){typeof r=="object"&&r!==null&&typeof r.then=="function"&&O6(n,r),qx!==null&&qx(n,r)};var oo=z(null);function dp(){var n=oo.current;return n!==null?n:Rt.pooledCache}function sf(n,r){r===null?q(oo,oo.current):q(oo,r.pool)}function $x(){var n=dp();return n===null?null:{parent:un._currentValue,pool:n}}var Lu=Error(a(460)),Hx=Error(a(474)),uf=Error(a(542)),hp={then:function(){}};function zx(n){return n=n.status,n==="fulfilled"||n==="rejected"}function cf(){}function Gx(n,r,o){switch(o=n[o],o===void 0?n.push(r):o!==r&&(r.then(cf,cf),r=o),r.status){case"fulfilled":return r.value;case"rejected":throw n=r.reason,kx(n),n;default:if(typeof r.status=="string")r.then(cf,cf);else{if(n=Rt,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,kx(n),n}throw qu=r,Lu}}var qu=null;function Qx(){if(qu===null)throw Error(a(459));var n=qu;return qu=null,n}function kx(n){if(n===Lu||n===uf)throw Error(a(483))}var oa=!1;function pp(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function yp(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 sa(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function ua(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=ef(n),_x(n,null,o),r}return Wl(n,u,r,o),ef(n)}function $u(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 gp(n,r){var o=n.updateQueue,u=n.alternate;if(u!==null&&(u=u.updateQueue,o===u)){var d=null,p=null;if(o=o.firstBaseUpdate,o!==null){do{var T={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};p===null?d=p=T:p=p.next=T,o=o.next}while(o!==null);p===null?d=p=r:p=p.next=r}else d=p=r;o={baseState:u.baseState,firstBaseUpdate:d,lastBaseUpdate:p,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 mp=!1;function Hu(){if(mp){var n=hs;if(n!==null)throw n}}function zu(n,r,o,u){mp=!1;var d=n.updateQueue;oa=!1;var p=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?p=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(p!==null){var Re=d.baseState;T=0,Fe=ve=ae=null,L=p;do{var xe=L.lane&-536870913,we=xe!==L.lane;if(we?(lt&xe)===xe:(u&xe)===xe){xe!==0&&xe===ds&&(mp=!0),Fe!==null&&(Fe=Fe.next={lane:0,tag:L.tag,payload:L.payload,callback:null,next:null});e:{var Ve=n,Qe=L;xe=r;var It=o;switch(Qe.tag){case 1:if(Ve=Qe.payload,typeof Ve=="function"){Re=Ve.call(It,Re,xe);break e}Re=Ve;break e;case 3:Ve.flags=Ve.flags&-65537|128;case 0:if(Ve=Qe.payload,xe=typeof Ve=="function"?Ve.call(It,Re,xe):Ve,xe==null)break e;Re=A({},Re,xe);break e;case 2:oa=!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=Re):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=Re),d.baseState=ae,d.firstBaseUpdate=ve,d.lastBaseUpdate=Fe,p===null&&(d.shared.lanes=0),ga|=T,n.lanes=T,n.memoizedState=Re}}function Vx(n,r){if(typeof n!="function")throw Error(a(191,n));n.call(r)}function Kx(n,r){var o=n.callbacks;if(o!==null)for(n.callbacks=null,n=0;n<o.length;n++)Vx(o[n],r)}var ps=z(null),lf=z(0);function Yx(n,r){n=Di,q(lf,n),q(ps,r),Di=n|r.baseLanes}function Ap(){q(lf,Di),q(ps,ps.current)}function bp(){Di=lf.current,oe(ps),oe(lf)}var ca=0,We=null,Et=null,Wt=null,ff=!1,ys=!1,so=!1,df=0,Gu=0,gs=null,B6=0;function Vt(){throw Error(a(321))}function vp(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 xp(n,r,o,u,d,p){return ca=p,We=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,_.H=n===null||n.memoizedState===null?_E:DE,so=!1,p=o(u,d),so=!1,ys&&(p=Zx(r,o,u,d)),Xx(n),p}function Xx(n){_.H=Af;var r=Et!==null&&Et.next!==null;if(ca=0,Wt=Et=We=null,ff=!1,Gu=0,gs=null,r)throw Error(a(300));n===null||fn||(n=n.dependencies,n!==null&&af(n)&&(fn=!0))}function Zx(n,r,o,u){We=n;var d=0;do{if(ys&&(gs=null),Gu=0,ys=!1,25<=d)throw Error(a(301));if(d+=1,Wt=Et=null,n.updateQueue!=null){var p=n.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}_.H=j6,p=r(o,u)}while(ys);return p}function R6(){var n=_.H,r=n.useState()[0];return r=typeof r.then=="function"?Qu(r):r,n=n.useState()[0],(Et!==null?Et.memoizedState:null)!==n&&(We.flags|=1024),r}function Ep(){var n=df!==0;return df=0,n}function wp(n,r,o){r.updateQueue=n.updateQueue,r.flags&=-2053,n.lanes&=~o}function Ip(n){if(ff){for(n=n.memoizedState;n!==null;){var r=n.queue;r!==null&&(r.pending=null),n=n.next}ff=!1}ca=0,Wt=Et=We=null,ys=!1,Gu=df=0,gs=null}function Gn(){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 Sp(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Qu(n){var r=Gu;return Gu+=1,gs===null&&(gs=[]),n=Gx(gs,n,r),r=We,(Wt===null?r.memoizedState:Wt.next)===null&&(r=r.alternate,_.H=r===null||r.memoizedState===null?_E:DE),n}function hf(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return Qu(n);if(n.$$typeof===j)return Bn(n)}throw Error(a(438,String(n)))}function Cp(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=Sp(),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]=$;return r.index++,o}function Oi(n,r){return typeof r=="function"?r(n):r}function pf(n){var r=en();return Op(r,Et,n)}function Op(n,r,o){var u=n.queue;if(u===null)throw Error(a(311));u.lastRenderedReducer=o;var d=n.baseQueue,p=u.pending;if(p!==null){if(d!==null){var T=d.next;d.next=p.next,p.next=T}r.baseQueue=d=p,u.pending=null}if(p=n.baseState,d===null)n.memoizedState=p;else{r=d.next;var L=T=null,ae=null,ve=r,Fe=!1;do{var Re=ve.lane&-536870913;if(Re!==ve.lane?(lt&Re)===Re:(ca&Re)===Re){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}),Re===ds&&(Fe=!0);else if((ca&xe)===xe){ve=ve.next,xe===ds&&(Fe=!0);continue}else Re={lane:0,revertLane:ve.revertLane,action:ve.action,hasEagerState:ve.hasEagerState,eagerState:ve.eagerState,next:null},ae===null?(L=ae=Re,T=p):ae=ae.next=Re,We.lanes|=xe,ga|=xe;Re=ve.action,so&&o(p,Re),p=ve.hasEagerState?ve.eagerState:o(p,Re)}else xe={lane:Re,revertLane:ve.revertLane,action:ve.action,hasEagerState:ve.hasEagerState,eagerState:ve.eagerState,next:null},ae===null?(L=ae=xe,T=p):ae=ae.next=xe,We.lanes|=Re,ga|=Re;ve=ve.next}while(ve!==null&&ve!==r);if(ae===null?T=p:ae.next=L,!rr(p,n.memoizedState)&&(fn=!0,Fe&&(o=hs,o!==null)))throw o;n.memoizedState=p,n.baseState=T,n.baseQueue=ae,u.lastRenderedState=p}return d===null&&(u.lanes=0),[n.memoizedState,u.dispatch]}function Fp(n){var r=en(),o=r.queue;if(o===null)throw Error(a(311));o.lastRenderedReducer=n;var u=o.dispatch,d=o.pending,p=r.memoizedState;if(d!==null){o.pending=null;var T=d=d.next;do p=n(p,T.action),T=T.next;while(T!==d);rr(p,r.memoizedState)||(fn=!0),r.memoizedState=p,r.baseQueue===null&&(r.baseState=p),o.lastRenderedState=p}return[p,u]}function Jx(n,r,o){var u=We,d=en(),p=gt;if(p){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=tE.bind(null,u,d,n);if(ku(2048,8,L,[n]),d.getSnapshot!==r||T||Wt!==null&&Wt.memoizedState.tag&1){if(u.flags|=2048,ms(9,yf(),eE.bind(null,u,d,o,r),null),Rt===null)throw Error(a(349));p||(ca&124)!==0||Wx(u,r,o)}return o}function Wx(n,r,o){n.flags|=16384,n={getSnapshot:r,value:o},r=We.updateQueue,r===null?(r=Sp(),We.updateQueue=r,r.stores=[n]):(o=r.stores,o===null?r.stores=[n]:o.push(n))}function eE(n,r,o,u){r.value=o,r.getSnapshot=u,nE(r)&&rE(n)}function tE(n,r,o){return o(function(){nE(r)&&rE(n)})}function nE(n){var r=n.getSnapshot;n=n.value;try{var o=r();return!rr(n,o)}catch{return!0}}function rE(n){var r=us(n,2);r!==null&&cr(r,n,2)}function Bp(n){var r=Gn();if(typeof n=="function"){var o=n;if(n=o(),so){Te(!0);try{o()}finally{Te(!1)}}}return r.memoizedState=r.baseState=n,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Oi,lastRenderedState:n},r}function iE(n,r,o,u){return n.baseState=o,Op(n,Et,typeof u=="function"?u:Oi)}function T6(n,r,o,u,d){if(mf(n))throw Error(a(485));if(n=r.action,n!==null){var p={payload:d,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(T){p.listeners.push(T)}};_.T!==null?o(!0):p.isTransition=!1,u(p),o=r.pending,o===null?(p.next=r.pending=p,aE(r,p)):(p.next=o.next,r.pending=o.next=p)}}function aE(n,r){var o=r.action,u=r.payload,d=n.state;if(r.isTransition){var p=_.T,T={};_.T=T;try{var L=o(d,u),ae=_.S;ae!==null&&ae(T,L),oE(n,r,L)}catch(ve){Rp(n,r,ve)}finally{_.T=p}}else try{p=o(d,u),oE(n,r,p)}catch(ve){Rp(n,r,ve)}}function oE(n,r,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(u){sE(n,r,u)},function(u){return Rp(n,r,u)}):sE(n,r,o)}function sE(n,r,o){r.status="fulfilled",r.value=o,uE(r),n.state=o,r=n.pending,r!==null&&(o=r.next,o===r?n.pending=null:(o=o.next,r.next=o,aE(n,o)))}function Rp(n,r,o){var u=n.pending;if(n.pending=null,u!==null){u=u.next;do r.status="rejected",r.reason=o,uE(r),r=r.next;while(r!==u)}n.action=null}function uE(n){n=n.listeners;for(var r=0;r<n.length;r++)(0,n[r])()}function cE(n,r){return r}function lE(n,r){if(gt){var o=Rt.formState;if(o!==null){e:{var u=We;if(gt){if(Ht){t:{for(var d=Ht,p=ri;d.nodeType!==8;){if(!p){d=null;break t}if(d=Hr(d.nextSibling),d===null){d=null;break t}}p=d.data,d=p==="F!"||p==="F"?d:null}if(d){Ht=Hr(d.nextSibling),u=d.data==="F!";break e}}ro(u)}u=!1}u&&(r=o[0])}}return o=Gn(),o.memoizedState=o.baseState=r,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:cE,lastRenderedState:r},o.queue=u,o=BE.bind(null,We,u),u.dispatch=o,u=Bp(!1),p=Mp.bind(null,We,!1,u.queue),u=Gn(),d={state:r,dispatch:null,action:n,pending:null},u.queue=d,o=T6.bind(null,We,d,p,o),d.dispatch=o,u.memoizedState=n,[r,o,!1]}function fE(n){var r=en();return dE(r,Et,n)}function dE(n,r,o){if(r=Op(n,r,cE)[0],n=pf(Oi)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var u=Qu(r)}catch(T){throw T===Lu?uf:T}else u=r;r=en();var d=r.queue,p=d.dispatch;return o!==r.memoizedState&&(We.flags|=2048,ms(9,yf(),_6.bind(null,d,o),null)),[u,p,n]}function _6(n,r){n.action=r}function hE(n){var r=en(),o=Et;if(o!==null)return dE(r,o,n);en(),r=r.memoizedState,o=en();var u=o.queue.dispatch;return o.memoizedState=n,[r,u,!1]}function ms(n,r,o,u){return n={tag:n,create:o,deps:u,inst:r,next:null},r=We.updateQueue,r===null&&(r=Sp(),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 yf(){return{destroy:void 0,resource:void 0}}function pE(){return en().memoizedState}function gf(n,r,o,u){var d=Gn();u=u===void 0?null:u,We.flags|=n,d.memoizedState=ms(1|r,yf(),o,u)}function ku(n,r,o,u){var d=en();u=u===void 0?null:u;var p=d.memoizedState.inst;Et!==null&&u!==null&&vp(u,Et.memoizedState.deps)?d.memoizedState=ms(r,p,o,u):(We.flags|=n,d.memoizedState=ms(1|r,p,o,u))}function yE(n,r){gf(8390656,8,n,r)}function gE(n,r){ku(2048,8,n,r)}function mE(n,r){return ku(4,2,n,r)}function AE(n,r){return ku(4,4,n,r)}function bE(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 vE(n,r,o){o=o!=null?o.concat([n]):null,ku(4,4,bE.bind(null,r,n),o)}function Tp(){}function xE(n,r){var o=en();r=r===void 0?null:r;var u=o.memoizedState;return r!==null&&vp(r,u[1])?u[0]:(o.memoizedState=[n,r],n)}function EE(n,r){var o=en();r=r===void 0?null:r;var u=o.memoizedState;if(r!==null&&vp(r,u[1]))return u[0];if(u=n(),so){Te(!0);try{n()}finally{Te(!1)}}return o.memoizedState=[u,r],u}function _p(n,r,o){return o===void 0||(ca&1073741824)!==0?n.memoizedState=r:(n.memoizedState=o,n=Sw(),We.lanes|=n,ga|=n,o)}function wE(n,r,o,u){return rr(o,r)?o:ps.current!==null?(n=_p(n,o,u),rr(n,r)||(fn=!0),n):(ca&42)===0?(fn=!0,n.memoizedState=o):(n=Sw(),We.lanes|=n,ga|=n,r)}function IE(n,r,o,u,d){var p=te.p;te.p=p!==0&&8>p?p:8;var T=_.T,L={};_.T=L,Mp(n,!1,r,o);try{var ae=d(),ve=_.S;if(ve!==null&&ve(L,ae),ae!==null&&typeof ae=="object"&&typeof ae.then=="function"){var Fe=F6(ae,u);Vu(n,r,Fe,ur(n))}else Vu(n,r,u,ur(n))}catch(Re){Vu(n,r,{then:function(){},status:"rejected",reason:Re},ur())}finally{te.p=p,_.T=T}}function D6(){}function Dp(n,r,o,u){if(n.tag!==5)throw Error(a(476));var d=SE(n).queue;IE(n,d,r,le,o===null?D6:function(){return CE(n),o(u)})}function SE(n){var r=n.memoizedState;if(r!==null)return r;r={memoizedState:le,baseState:le,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Oi,lastRenderedState:le},next:null};var o={};return r.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Oi,lastRenderedState:o},next:null},n.memoizedState=r,n=n.alternate,n!==null&&(n.memoizedState=r),r}function CE(n){var r=SE(n).next.queue;Vu(n,r,{},ur())}function Up(){return Bn(fc)}function OE(){return en().memoizedState}function FE(){return en().memoizedState}function U6(n){for(var r=n.return;r!==null;){switch(r.tag){case 24:case 3:var o=ur();n=sa(o);var u=ua(r,n,o);u!==null&&(cr(u,r,o),$u(u,r,o)),r={cache:lp()},n.payload=r;return}r=r.return}}function M6(n,r,o){var u=ur();o={lane:u,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null},mf(n)?RE(r,o):(o=ep(n,r,o,u),o!==null&&(cr(o,n,u),TE(o,r,u)))}function BE(n,r,o){var u=ur();Vu(n,r,o,u)}function Vu(n,r,o,u){var d={lane:u,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null};if(mf(n))RE(r,d);else{var p=n.alternate;if(n.lanes===0&&(p===null||p.lanes===0)&&(p=r.lastRenderedReducer,p!==null))try{var T=r.lastRenderedState,L=p(T,o);if(d.hasEagerState=!0,d.eagerState=L,rr(L,T))return Wl(n,r,d,0),Rt===null&&Jl(),!1}catch{}finally{}if(o=ep(n,r,d,u),o!==null)return cr(o,n,u),TE(o,r,u),!0}return!1}function Mp(n,r,o,u){if(u={lane:2,revertLane:hy(),action:u,hasEagerState:!1,eagerState:null,next:null},mf(n)){if(r)throw Error(a(479))}else r=ep(n,o,u,2),r!==null&&cr(r,n,2)}function mf(n){var r=n.alternate;return n===We||r!==null&&r===We}function RE(n,r){ys=ff=!0;var o=n.pending;o===null?r.next=r:(r.next=o.next,o.next=r),n.pending=r}function TE(n,r,o){if((o&4194048)!==0){var u=r.lanes;u&=n.pendingLanes,o|=u,r.lanes=o,Pt(n,o)}}var Af={readContext:Bn,use:hf,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},_E={readContext:Bn,use:hf,useCallback:function(n,r){return Gn().memoizedState=[n,r===void 0?null:r],n},useContext:Bn,useEffect:yE,useImperativeHandle:function(n,r,o){o=o!=null?o.concat([n]):null,gf(4194308,4,bE.bind(null,r,n),o)},useLayoutEffect:function(n,r){return gf(4194308,4,n,r)},useInsertionEffect:function(n,r){gf(4,2,n,r)},useMemo:function(n,r){var o=Gn();r=r===void 0?null:r;var u=n();if(so){Te(!0);try{n()}finally{Te(!1)}}return o.memoizedState=[u,r],u},useReducer:function(n,r,o){var u=Gn();if(o!==void 0){var d=o(r);if(so){Te(!0);try{o(r)}finally{Te(!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=M6.bind(null,We,n),[u.memoizedState,n]},useRef:function(n){var r=Gn();return n={current:n},r.memoizedState=n},useState:function(n){n=Bp(n);var r=n.queue,o=BE.bind(null,We,r);return r.dispatch=o,[n.memoizedState,o]},useDebugValue:Tp,useDeferredValue:function(n,r){var o=Gn();return _p(o,n,r)},useTransition:function(){var n=Bp(!1);return n=IE.bind(null,We,n.queue,!0,!1),Gn().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,r,o){var u=We,d=Gn();if(gt){if(o===void 0)throw Error(a(407));o=o()}else{if(o=r(),Rt===null)throw Error(a(349));(lt&124)!==0||Wx(u,r,o)}d.memoizedState=o;var p={value:o,getSnapshot:r};return d.queue=p,yE(tE.bind(null,u,p,n),[n]),u.flags|=2048,ms(9,yf(),eE.bind(null,u,p,o,r),null),o},useId:function(){var n=Gn(),r=Rt.identifierPrefix;if(gt){var o=Ii,u=wi;o=(u&~(1<<32-Ne(u)-1)).toString(32)+o,r="«"+r+"R"+o,o=df++,0<o&&(r+="H"+o.toString(32)),r+="»"}else o=B6++,r="«"+r+"r"+o.toString(32)+"»";return n.memoizedState=r},useHostTransitionStatus:Up,useFormState:lE,useActionState:lE,useOptimistic:function(n){var r=Gn();r.memoizedState=r.baseState=n;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=o,r=Mp.bind(null,We,!0,o),o.dispatch=r,[n,r]},useMemoCache:Cp,useCacheRefresh:function(){return Gn().memoizedState=U6.bind(null,We)}},DE={readContext:Bn,use:hf,useCallback:xE,useContext:Bn,useEffect:gE,useImperativeHandle:vE,useInsertionEffect:mE,useLayoutEffect:AE,useMemo:EE,useReducer:pf,useRef:pE,useState:function(){return pf(Oi)},useDebugValue:Tp,useDeferredValue:function(n,r){var o=en();return wE(o,Et.memoizedState,n,r)},useTransition:function(){var n=pf(Oi)[0],r=en().memoizedState;return[typeof n=="boolean"?n:Qu(n),r]},useSyncExternalStore:Jx,useId:OE,useHostTransitionStatus:Up,useFormState:fE,useActionState:fE,useOptimistic:function(n,r){var o=en();return iE(o,Et,n,r)},useMemoCache:Cp,useCacheRefresh:FE},j6={readContext:Bn,use:hf,useCallback:xE,useContext:Bn,useEffect:gE,useImperativeHandle:vE,useInsertionEffect:mE,useLayoutEffect:AE,useMemo:EE,useReducer:Fp,useRef:pE,useState:function(){return Fp(Oi)},useDebugValue:Tp,useDeferredValue:function(n,r){var o=en();return Et===null?_p(o,n,r):wE(o,Et.memoizedState,n,r)},useTransition:function(){var n=Fp(Oi)[0],r=en().memoizedState;return[typeof n=="boolean"?n:Qu(n),r]},useSyncExternalStore:Jx,useId:OE,useHostTransitionStatus:Up,useFormState:hE,useActionState:hE,useOptimistic:function(n,r){var o=en();return Et!==null?iE(o,Et,n,r):(o.baseState=n,[n,o.queue.dispatch])},useMemoCache:Cp,useCacheRefresh:FE},As=null,Ku=0;function bf(n){var r=Ku;return Ku+=1,As===null&&(As=[]),Gx(As,n,r)}function Yu(n,r){r=r.props.ref,n.ref=r!==void 0?r:null}function vf(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 UE(n){var r=n._init;return r(n._payload)}function ME(n){function r(ge,he){if(n){var be=ge.deletions;be===null?(ge.deletions=[he],ge.flags|=16):be.push(he)}}function o(ge,he){if(!n)return null;for(;he!==null;)r(ge,he),he=he.sibling;return null}function u(ge){for(var he=new Map;ge!==null;)ge.key!==null?he.set(ge.key,ge):he.set(ge.index,ge),ge=ge.sibling;return he}function d(ge,he){return ge=Ei(ge,he),ge.index=0,ge.sibling=null,ge}function p(ge,he,be){return ge.index=be,n?(be=ge.alternate,be!==null?(be=be.index,be<he?(ge.flags|=67108866,he):be):(ge.flags|=67108866,he)):(ge.flags|=1048576,he)}function T(ge){return n&&ge.alternate===null&&(ge.flags|=67108866),ge}function L(ge,he,be,Be){return he===null||he.tag!==6?(he=np(be,ge.mode,Be),he.return=ge,he):(he=d(he,be),he.return=ge,he)}function ae(ge,he,be,Be){var $e=be.type;return $e===O?Fe(ge,he,be.props.children,Be,be.key):he!==null&&(he.elementType===$e||typeof $e=="object"&&$e!==null&&$e.$$typeof===fe&&UE($e)===he.type)?(he=d(he,be.props),Yu(he,be),he.return=ge,he):(he=tf(be.type,be.key,be.props,null,ge.mode,Be),Yu(he,be),he.return=ge,he)}function ve(ge,he,be,Be){return he===null||he.tag!==4||he.stateNode.containerInfo!==be.containerInfo||he.stateNode.implementation!==be.implementation?(he=rp(be,ge.mode,Be),he.return=ge,he):(he=d(he,be.children||[]),he.return=ge,he)}function Fe(ge,he,be,Be,$e){return he===null||he.tag!==7?(he=Wa(be,ge.mode,Be,$e),he.return=ge,he):(he=d(he,be),he.return=ge,he)}function Re(ge,he,be){if(typeof he=="string"&&he!==""||typeof he=="number"||typeof he=="bigint")return he=np(""+he,ge.mode,be),he.return=ge,he;if(typeof he=="object"&&he!==null){switch(he.$$typeof){case m:return be=tf(he.type,he.key,he.props,null,ge.mode,be),Yu(be,he),be.return=ge,be;case I:return he=rp(he,ge.mode,be),he.return=ge,he;case fe:var Be=he._init;return he=Be(he._payload),Re(ge,he,be)}if(pe(he)||Q(he))return he=Wa(he,ge.mode,be,null),he.return=ge,he;if(typeof he.then=="function")return Re(ge,bf(he),be);if(he.$$typeof===j)return Re(ge,of(ge,he),be);vf(ge,he)}return null}function xe(ge,he,be,Be){var $e=he!==null?he.key:null;if(typeof be=="string"&&be!==""||typeof be=="number"||typeof be=="bigint")return $e!==null?null:L(ge,he,""+be,Be);if(typeof be=="object"&&be!==null){switch(be.$$typeof){case m:return be.key===$e?ae(ge,he,be,Be):null;case I:return be.key===$e?ve(ge,he,be,Be):null;case fe:return $e=be._init,be=$e(be._payload),xe(ge,he,be,Be)}if(pe(be)||Q(be))return $e!==null?null:Fe(ge,he,be,Be,null);if(typeof be.then=="function")return xe(ge,he,bf(be),Be);if(be.$$typeof===j)return xe(ge,he,of(ge,be),Be);vf(ge,be)}return null}function we(ge,he,be,Be,$e){if(typeof Be=="string"&&Be!==""||typeof Be=="number"||typeof Be=="bigint")return ge=ge.get(be)||null,L(he,ge,""+Be,$e);if(typeof Be=="object"&&Be!==null){switch(Be.$$typeof){case m:return ge=ge.get(Be.key===null?be:Be.key)||null,ae(he,ge,Be,$e);case I:return ge=ge.get(Be.key===null?be:Be.key)||null,ve(he,ge,Be,$e);case fe:var et=Be._init;return Be=et(Be._payload),we(ge,he,be,Be,$e)}if(pe(Be)||Q(Be))return ge=ge.get(be)||null,Fe(he,ge,Be,$e,null);if(typeof Be.then=="function")return we(ge,he,be,bf(Be),$e);if(Be.$$typeof===j)return we(ge,he,be,of(he,Be),$e);vf(he,Be)}return null}function Ve(ge,he,be,Be){for(var $e=null,et=null,He=he,ke=he=0,hn=null;He!==null&&ke<be.length;ke++){He.index>ke?(hn=He,He=null):hn=He.sibling;var yt=xe(ge,He,be[ke],Be);if(yt===null){He===null&&(He=hn);break}n&&He&&yt.alternate===null&&r(ge,He),he=p(yt,he,ke),et===null?$e=yt:et.sibling=yt,et=yt,He=hn}if(ke===be.length)return o(ge,He),gt&&to(ge,ke),$e;if(He===null){for(;ke<be.length;ke++)He=Re(ge,be[ke],Be),He!==null&&(he=p(He,he,ke),et===null?$e=He:et.sibling=He,et=He);return gt&&to(ge,ke),$e}for(He=u(He);ke<be.length;ke++)hn=we(He,ge,ke,be[ke],Be),hn!==null&&(n&&hn.alternate!==null&&He.delete(hn.key===null?ke:hn.key),he=p(hn,he,ke),et===null?$e=hn:et.sibling=hn,et=hn);return n&&He.forEach(function(Sa){return r(ge,Sa)}),gt&&to(ge,ke),$e}function Qe(ge,he,be,Be){if(be==null)throw Error(a(151));for(var $e=null,et=null,He=he,ke=he=0,hn=null,yt=be.next();He!==null&&!yt.done;ke++,yt=be.next()){He.index>ke?(hn=He,He=null):hn=He.sibling;var Sa=xe(ge,He,yt.value,Be);if(Sa===null){He===null&&(He=hn);break}n&&He&&Sa.alternate===null&&r(ge,He),he=p(Sa,he,ke),et===null?$e=Sa:et.sibling=Sa,et=Sa,He=hn}if(yt.done)return o(ge,He),gt&&to(ge,ke),$e;if(He===null){for(;!yt.done;ke++,yt=be.next())yt=Re(ge,yt.value,Be),yt!==null&&(he=p(yt,he,ke),et===null?$e=yt:et.sibling=yt,et=yt);return gt&&to(ge,ke),$e}for(He=u(He);!yt.done;ke++,yt=be.next())yt=we(He,ge,ke,yt.value,Be),yt!==null&&(n&&yt.alternate!==null&&He.delete(yt.key===null?ke:yt.key),he=p(yt,he,ke),et===null?$e=yt:et.sibling=yt,et=yt);return n&&He.forEach(function(P8){return r(ge,P8)}),gt&&to(ge,ke),$e}function It(ge,he,be,Be){if(typeof be=="object"&&be!==null&&be.type===O&&be.key===null&&(be=be.props.children),typeof be=="object"&&be!==null){switch(be.$$typeof){case m:e:{for(var $e=be.key;he!==null;){if(he.key===$e){if($e=be.type,$e===O){if(he.tag===7){o(ge,he.sibling),Be=d(he,be.props.children),Be.return=ge,ge=Be;break e}}else if(he.elementType===$e||typeof $e=="object"&&$e!==null&&$e.$$typeof===fe&&UE($e)===he.type){o(ge,he.sibling),Be=d(he,be.props),Yu(Be,be),Be.return=ge,ge=Be;break e}o(ge,he);break}else r(ge,he);he=he.sibling}be.type===O?(Be=Wa(be.props.children,ge.mode,Be,be.key),Be.return=ge,ge=Be):(Be=tf(be.type,be.key,be.props,null,ge.mode,Be),Yu(Be,be),Be.return=ge,ge=Be)}return T(ge);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(ge,he.sibling),Be=d(he,be.children||[]),Be.return=ge,ge=Be;break e}else{o(ge,he);break}else r(ge,he);he=he.sibling}Be=rp(be,ge.mode,Be),Be.return=ge,ge=Be}return T(ge);case fe:return $e=be._init,be=$e(be._payload),It(ge,he,be,Be)}if(pe(be))return Ve(ge,he,be,Be);if(Q(be)){if($e=Q(be),typeof $e!="function")throw Error(a(150));return be=$e.call(be),Qe(ge,he,be,Be)}if(typeof be.then=="function")return It(ge,he,bf(be),Be);if(be.$$typeof===j)return It(ge,he,of(ge,be),Be);vf(ge,be)}return typeof be=="string"&&be!==""||typeof be=="number"||typeof be=="bigint"?(be=""+be,he!==null&&he.tag===6?(o(ge,he.sibling),Be=d(he,be),Be.return=ge,ge=Be):(o(ge,he),Be=np(be,ge.mode,Be),Be.return=ge,ge=Be),T(ge)):o(ge,he)}return function(ge,he,be,Be){try{Ku=0;var $e=It(ge,he,be,Be);return As=null,$e}catch(He){if(He===Lu||He===uf)throw He;var et=ir(29,He,null,ge.mode);return et.lanes=Be,et.return=ge,et}finally{}}}var bs=ME(!0),jE=ME(!1),Cr=z(null),ii=null;function la(n){var r=n.alternate;q(cn,cn.current&1),q(Cr,n),ii===null&&(r===null||ps.current!==null||r.memoizedState!==null)&&(ii=n)}function PE(n){if(n.tag===22){if(q(cn,cn.current),q(Cr,n),ii===null){var r=n.alternate;r!==null&&r.memoizedState!==null&&(ii=n)}}else fa()}function fa(){q(cn,cn.current),q(Cr,Cr.current)}function Fi(n){oe(Cr),ii===n&&(ii=null),oe(cn)}var cn=z(0);function xf(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==="$?"||Sy(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 jp(n,r,o,u){r=n.memoizedState,o=o(u,r),o=o==null?r:A({},r,o),n.memoizedState=o,n.lanes===0&&(n.updateQueue.baseState=o)}var Pp={enqueueSetState:function(n,r,o){n=n._reactInternals;var u=ur(),d=sa(u);d.payload=r,o!=null&&(d.callback=o),r=ua(n,d,u),r!==null&&(cr(r,n,u),$u(r,n,u))},enqueueReplaceState:function(n,r,o){n=n._reactInternals;var u=ur(),d=sa(u);d.tag=1,d.payload=r,o!=null&&(d.callback=o),r=ua(n,d,u),r!==null&&(cr(r,n,u),$u(r,n,u))},enqueueForceUpdate:function(n,r){n=n._reactInternals;var o=ur(),u=sa(o);u.tag=2,r!=null&&(u.callback=r),r=ua(n,u,o),r!==null&&(cr(r,n,o),$u(r,n,o))}};function NE(n,r,o,u,d,p,T){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(u,p,T):r.prototype&&r.prototype.isPureReactComponent?!Tu(o,u)||!Tu(d,p):!0}function LE(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&&Pp.enqueueReplaceState(r,r.state,null)}function uo(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=A({},o));for(var d in n)o[d]===void 0&&(o[d]=n[d])}return o}var Ef=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 qE(n){Ef(n)}function $E(n){console.error(n)}function HE(n){Ef(n)}function wf(n,r){try{var o=n.onUncaughtError;o(r.value,{componentStack:r.stack})}catch(u){setTimeout(function(){throw u})}}function zE(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 Np(n,r,o){return o=sa(o),o.tag=3,o.payload={element:null},o.callback=function(){wf(n,r)},o}function GE(n){return n=sa(n),n.tag=3,n}function QE(n,r,o,u){var d=o.type.getDerivedStateFromError;if(typeof d=="function"){var p=u.value;n.payload=function(){return d(p)},n.callback=function(){zE(r,o,u)}}var T=o.stateNode;T!==null&&typeof T.componentDidCatch=="function"&&(n.callback=function(){zE(r,o,u),typeof d!="function"&&(ma===null?ma=new Set([this]):ma.add(this));var L=u.stack;this.componentDidCatch(u.value,{componentStack:L!==null?L:""})})}function P6(n,r,o,u,d){if(o.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(r=o.alternate,r!==null&&ju(r,o,d,!0),o=Cr.current,o!==null){switch(o.tag){case 13:return ii===null?uy():o.alternate===null&&zt===0&&(zt=3),o.flags&=-257,o.flags|=65536,o.lanes=d,u===hp?o.flags|=16384:(r=o.updateQueue,r===null?o.updateQueue=new Set([u]):r.add(u),ly(n,u,d)),!1;case 22:return o.flags|=65536,u===hp?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)),ly(n,u,d)),!1}throw Error(a(435,o.tag))}return ly(n,u,d),uy(),!1}if(gt)return r=Cr.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=d,u!==op&&(n=Error(a(422),{cause:u}),Mu(Er(n,o)))):(u!==op&&(r=Error(a(423),{cause:u}),Mu(Er(r,o))),n=n.current.alternate,n.flags|=65536,d&=-d,n.lanes|=d,u=Er(u,o),d=Np(n.stateNode,u,d),gp(n,d),zt!==4&&(zt=2)),!1;var p=Error(a(520),{cause:u});if(p=Er(p,o),nc===null?nc=[p]:nc.push(p),zt!==4&&(zt=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=Np(o.stateNode,u,n),gp(o,n),!1;case 1:if(r=o.type,p=o.stateNode,(o.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(ma===null||!ma.has(p))))return o.flags|=65536,d&=-d,o.lanes|=d,d=GE(d),QE(d,n,o,u),gp(o,d),!1}o=o.return}while(o!==null);return!1}var kE=Error(a(461)),fn=!1;function bn(n,r,o,u){r.child=n===null?jE(r,null,o,u):bs(r,n.child,o,u)}function VE(n,r,o,u,d){o=o.render;var p=r.ref;if("ref"in u){var T={};for(var L in u)L!=="ref"&&(T[L]=u[L])}else T=u;return ao(r),u=xp(n,r,o,T,p,d),L=Ep(),n!==null&&!fn?(wp(n,r,d),Bi(n,r,d)):(gt&&L&&ip(r),r.flags|=1,bn(n,r,u,d),r.child)}function KE(n,r,o,u,d){if(n===null){var p=o.type;return typeof p=="function"&&!tp(p)&&p.defaultProps===void 0&&o.compare===null?(r.tag=15,r.type=p,YE(n,r,p,u,d)):(n=tf(o.type,null,u,r,r.mode,d),n.ref=r.ref,n.return=r,r.child=n)}if(p=n.child,!kp(n,d)){var T=p.memoizedProps;if(o=o.compare,o=o!==null?o:Tu,o(T,u)&&n.ref===r.ref)return Bi(n,r,d)}return r.flags|=1,n=Ei(p,u),n.ref=r.ref,n.return=r,r.child=n}function YE(n,r,o,u,d){if(n!==null){var p=n.memoizedProps;if(Tu(p,u)&&n.ref===r.ref)if(fn=!1,r.pendingProps=u=p,kp(n,d))(n.flags&131072)!==0&&(fn=!0);else return r.lanes=n.lanes,Bi(n,r,d)}return Lp(n,r,o,u,d)}function XE(n,r,o){var u=r.pendingProps,d=u.children,p=n!==null?n.memoizedState:null;if(u.mode==="hidden"){if((r.flags&128)!==0){if(u=p!==null?p.baseLanes|o:o,n!==null){for(d=r.child=n.child,p=0;d!==null;)p=p|d.lanes|d.childLanes,d=d.sibling;r.childLanes=p&~u}else r.childLanes=0,r.child=null;return ZE(n,r,u,o)}if((o&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},n!==null&&sf(r,p!==null?p.cachePool:null),p!==null?Yx(r,p):Ap(),PE(r);else return r.lanes=r.childLanes=536870912,ZE(n,r,p!==null?p.baseLanes|o:o,o)}else p!==null?(sf(r,p.cachePool),Yx(r,p),fa(),r.memoizedState=null):(n!==null&&sf(r,null),Ap(),fa());return bn(n,r,d,o),r.child}function ZE(n,r,o,u){var d=dp();return d=d===null?null:{parent:un._currentValue,pool:d},r.memoizedState={baseLanes:o,cachePool:d},n!==null&&sf(r,null),Ap(),PE(r),n!==null&&ju(n,r,u,!0),null}function If(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 Lp(n,r,o,u,d){return ao(r),o=xp(n,r,o,u,void 0,d),u=Ep(),n!==null&&!fn?(wp(n,r,d),Bi(n,r,d)):(gt&&u&&ip(r),r.flags|=1,bn(n,r,o,d),r.child)}function JE(n,r,o,u,d,p){return ao(r),r.updateQueue=null,o=Zx(r,u,o,d),Xx(n),u=Ep(),n!==null&&!fn?(wp(n,r,p),Bi(n,r,p)):(gt&&u&&ip(r),r.flags|=1,bn(n,r,o,p),r.child)}function WE(n,r,o,u,d){if(ao(r),r.stateNode===null){var p=cs,T=o.contextType;typeof T=="object"&&T!==null&&(p=Bn(T)),p=new o(u,p),r.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=Pp,r.stateNode=p,p._reactInternals=r,p=r.stateNode,p.props=u,p.state=r.memoizedState,p.refs={},pp(r),T=o.contextType,p.context=typeof T=="object"&&T!==null?Bn(T):cs,p.state=r.memoizedState,T=o.getDerivedStateFromProps,typeof T=="function"&&(jp(r,o,T,u),p.state=r.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(T=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),T!==p.state&&Pp.enqueueReplaceState(p,p.state,null),zu(r,u,p,d),Hu(),p.state=r.memoizedState),typeof p.componentDidMount=="function"&&(r.flags|=4194308),u=!0}else if(n===null){p=r.stateNode;var L=r.memoizedProps,ae=uo(o,L);p.props=ae;var ve=p.context,Fe=o.contextType;T=cs,typeof Fe=="object"&&Fe!==null&&(T=Bn(Fe));var Re=o.getDerivedStateFromProps;Fe=typeof Re=="function"||typeof p.getSnapshotBeforeUpdate=="function",L=r.pendingProps!==L,Fe||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(L||ve!==T)&&LE(r,p,u,T),oa=!1;var xe=r.memoizedState;p.state=xe,zu(r,u,p,d),Hu(),ve=r.memoizedState,L||xe!==ve||oa?(typeof Re=="function"&&(jp(r,o,Re,u),ve=r.memoizedState),(ae=oa||NE(r,o,ae,u,xe,ve,T))?(Fe||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(r.flags|=4194308)):(typeof p.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=u,r.memoizedState=ve),p.props=u,p.state=ve,p.context=T,u=ae):(typeof p.componentDidMount=="function"&&(r.flags|=4194308),u=!1)}else{p=r.stateNode,yp(n,r),T=r.memoizedProps,Fe=uo(o,T),p.props=Fe,Re=r.pendingProps,xe=p.context,ve=o.contextType,ae=cs,typeof ve=="object"&&ve!==null&&(ae=Bn(ve)),L=o.getDerivedStateFromProps,(ve=typeof L=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(T!==Re||xe!==ae)&&LE(r,p,u,ae),oa=!1,xe=r.memoizedState,p.state=xe,zu(r,u,p,d),Hu();var we=r.memoizedState;T!==Re||xe!==we||oa||n!==null&&n.dependencies!==null&&af(n.dependencies)?(typeof L=="function"&&(jp(r,o,L,u),we=r.memoizedState),(Fe=oa||NE(r,o,Fe,u,xe,we,ae)||n!==null&&n.dependencies!==null&&af(n.dependencies))?(ve||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(u,we,ae),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(u,we,ae)),typeof p.componentDidUpdate=="function"&&(r.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof p.componentDidUpdate!="function"||T===n.memoizedProps&&xe===n.memoizedState||(r.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||T===n.memoizedProps&&xe===n.memoizedState||(r.flags|=1024),r.memoizedProps=u,r.memoizedState=we),p.props=u,p.state=we,p.context=ae,u=Fe):(typeof p.componentDidUpdate!="function"||T===n.memoizedProps&&xe===n.memoizedState||(r.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||T===n.memoizedProps&&xe===n.memoizedState||(r.flags|=1024),u=!1)}return p=u,If(n,r),u=(r.flags&128)!==0,p||u?(p=r.stateNode,o=u&&typeof o.getDerivedStateFromError!="function"?null:p.render(),r.flags|=1,n!==null&&u?(r.child=bs(r,n.child,null,d),r.child=bs(r,null,o,d)):bn(n,r,o,d),r.memoizedState=p.state,n=r.child):n=Bi(n,r,d),n}function ew(n,r,o,u){return Uu(),r.flags|=256,bn(n,r,o,u),r.child}var qp={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function $p(n){return{baseLanes:n,cachePool:$x()}}function Hp(n,r,o){return n=n!==null?n.childLanes&~o:0,r&&(n|=Or),n}function tw(n,r,o){var u=r.pendingProps,d=!1,p=(r.flags&128)!==0,T;if((T=p)||(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?la(r):fa(),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:eo!==null?{id:wi,overflow:Ii}: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||ro(r)}if(L=r.memoizedState,L!==null&&(L=L.dehydrated,L!==null))return Sy(L)?r.lanes=32:r.lanes=536870912,null;Fi(r)}return L=u.children,u=u.fallback,d?(fa(),d=r.mode,L=Sf({mode:"hidden",children:L},d),u=Wa(u,d,o,null),L.return=r,u.return=r,L.sibling=u,r.child=L,d=r.child,d.memoizedState=$p(o),d.childLanes=Hp(n,T,o),r.memoizedState=qp,u):(la(r),zp(r,L))}if(ae=n.memoizedState,ae!==null&&(L=ae.dehydrated,L!==null)){if(p)r.flags&256?(la(r),r.flags&=-257,r=Gp(n,r,o)):r.memoizedState!==null?(fa(),r.child=n.child,r.flags|=128,r=null):(fa(),d=u.fallback,L=r.mode,u=Sf({mode:"visible",children:u.children},L),d=Wa(d,L,o,null),d.flags|=2,u.return=r,d.return=r,u.sibling=d,r.child=u,bs(r,n.child,null,o),u=r.child,u.memoizedState=$p(o),u.childLanes=Hp(n,T,o),r.memoizedState=qp,r=d);else if(la(r),Sy(L)){if(T=L.nextSibling&&L.nextSibling.dataset,T)var ve=T.dgst;T=ve,u=Error(a(419)),u.stack="",u.digest=T,Mu({value:u,source:null,stack:null}),r=Gp(n,r,o)}else if(fn||ju(n,r,o,!1),T=(o&n.childLanes)!==0,fn||T){if(T=Rt,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,us(n,u),cr(T,n,u),kE;L.data==="$?"||uy(),r=Gp(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,no=null,ri=!1,n!==null&&(Ir[Sr++]=wi,Ir[Sr++]=Ii,Ir[Sr++]=eo,wi=n.id,Ii=n.overflow,eo=r),r=zp(r,u.children),r.flags|=4096);return r}return d?(fa(),d=u.fallback,L=r.mode,ae=n.child,ve=ae.sibling,u=Ei(ae,{mode:"hidden",children:u.children}),u.subtreeFlags=ae.subtreeFlags&65011712,ve!==null?d=Ei(ve,d):(d=Wa(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=$p(o):(ae=L.cachePool,ae!==null?(ve=un._currentValue,ae=ae.parent!==ve?{parent:ve,pool:ve}:ae):ae=$x(),L={baseLanes:L.baseLanes|o,cachePool:ae}),d.memoizedState=L,d.childLanes=Hp(n,T,o),r.memoizedState=qp,u):(la(r),o=n.child,n=o.sibling,o=Ei(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 zp(n,r){return r=Sf({mode:"visible",children:r},n.mode),r.return=n,n.child=r}function Sf(n,r){return n=ir(22,n,null,r),n.lanes=0,n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},n}function Gp(n,r,o){return bs(r,n.child,null,o),n=zp(r,r.pendingProps.children),n.flags|=2,r.memoizedState=null,n}function nw(n,r,o){n.lanes|=r;var u=n.alternate;u!==null&&(u.lanes|=r),up(n.return,r,o)}function Qp(n,r,o,u,d){var p=n.memoizedState;p===null?n.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:u,tail:o,tailMode:d}:(p.isBackwards=r,p.rendering=null,p.renderingStartTime=0,p.last=u,p.tail=o,p.tailMode=d)}function rw(n,r,o){var u=r.pendingProps,d=u.revealOrder,p=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&&nw(n,o,r);else if(n.tag===19)nw(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(q(cn,u),d){case"forwards":for(o=r.child,d=null;o!==null;)n=o.alternate,n!==null&&xf(n)===null&&(d=o),o=o.sibling;o=d,o===null?(d=r.child,r.child=null):(d=o.sibling,o.sibling=null),Qp(r,!1,d,o,p);break;case"backwards":for(o=null,d=r.child,r.child=null;d!==null;){if(n=d.alternate,n!==null&&xf(n)===null){r.child=d;break}n=d.sibling,d.sibling=o,o=d,d=n}Qp(r,!0,o,null,p);break;case"together":Qp(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),ga|=r.lanes,(o&r.childLanes)===0)if(n!==null){if(ju(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=Ei(n,n.pendingProps),r.child=o,o.return=r;n.sibling!==null;)n=n.sibling,o=o.sibling=Ei(n,n.pendingProps),o.return=r;o.sibling=null}return r.child}function kp(n,r){return(n.lanes&r)!==0?!0:(n=n.dependencies,!!(n!==null&&af(n)))}function N6(n,r,o){switch(r.tag){case 3:ne(r,r.stateNode.containerInfo),aa(r,un,n.memoizedState.cache),Uu();break;case 27:case 5:w(r);break;case 4:ne(r,r.stateNode.containerInfo);break;case 10:aa(r,r.type,r.memoizedProps.value);break;case 13:var u=r.memoizedState;if(u!==null)return u.dehydrated!==null?(la(r),r.flags|=128,null):(o&r.child.childLanes)!==0?tw(n,r,o):(la(r),n=Bi(n,r,o),n!==null?n.sibling:null);la(r);break;case 19:var d=(n.flags&128)!==0;if(u=(o&r.childLanes)!==0,u||(ju(n,r,o,!1),u=(o&r.childLanes)!==0),d){if(u)return rw(n,r,o);r.flags|=128}if(d=r.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),q(cn,cn.current),u)break;return null;case 22:case 23:return r.lanes=0,XE(n,r,o);case 24:aa(r,un,n.memoizedState.cache)}return Bi(n,r,o)}function iw(n,r,o){if(n!==null)if(n.memoizedProps!==r.pendingProps)fn=!0;else{if(!kp(n,o)&&(r.flags&128)===0)return fn=!1,N6(n,r,o);fn=(n.flags&131072)!==0}else fn=!1,gt&&(r.flags&1048576)!==0&&Ux(r,rf,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")tp(u)?(n=uo(u,n),r.tag=1,r=WE(null,r,u,n,o)):(r.tag=0,r=Lp(null,r,u,n,o));else{if(u!=null){if(d=u.$$typeof,d===K){r.tag=11,r=VE(null,r,u,n,o);break e}else if(d===ye){r.tag=14,r=KE(null,r,u,n,o);break e}}throw r=Z(u)||u,Error(a(306,r,""))}}return r;case 0:return Lp(n,r,r.type,r.pendingProps,o);case 1:return u=r.type,d=uo(u,r.pendingProps),WE(n,r,u,d,o);case 3:e:{if(ne(r,r.stateNode.containerInfo),n===null)throw Error(a(387));u=r.pendingProps;var p=r.memoizedState;d=p.element,yp(n,r),zu(r,u,null,o);var T=r.memoizedState;if(u=T.cache,aa(r,un,u),u!==p.cache&&cp(r,[un],o,!0),Hu(),u=T.element,p.isDehydrated)if(p={element:u,isDehydrated:!1,cache:T.cache},r.updateQueue.baseState=p,r.memoizedState=p,r.flags&256){r=ew(n,r,u,o);break e}else if(u!==d){d=Er(Error(a(424)),r),Mu(d),r=ew(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,no=null,ri=!0,o=jE(r,null,u,o),r.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling}else{if(Uu(),u===d){r=Bi(n,r,o);break e}bn(n,r,u,o)}r=r.child}return r;case 26:return If(n,r),n===null?(o=u2(r.type,null,r.pendingProps,null))?r.memoizedState=o:gt||(o=r.type,n=r.pendingProps,u=Lf(P.current).createElement(o),u[kt]=r,u[sn]=n,xn(u,o,n),Nt(u),r.stateNode=u):r.memoizedState=u2(r.type,n.memoizedProps,r.pendingProps,n.memoizedState),null;case 27:return w(r),n===null&&gt&&(u=r.stateNode=a2(r.type,r.pendingProps,P.current),Pn=r,ri=!0,d=Ht,va(r.type)?(Cy=d,Ht=Hr(u.firstChild)):Ht=d),bn(n,r,r.pendingProps.children,o),If(n,r),n===null&&(r.flags|=4194304),r.child;case 5:return n===null&&gt&&((d=u=Ht)&&(u=d8(u,r.type,r.pendingProps,ri),u!==null?(r.stateNode=u,Pn=r,Ht=Hr(u.firstChild),ri=!1,d=!0):d=!1),d||ro(r)),w(r),d=r.type,p=r.pendingProps,T=n!==null?n.memoizedProps:null,u=p.children,Ey(d,p)?u=null:T!==null&&Ey(d,T)&&(r.flags|=32),r.memoizedState!==null&&(d=xp(n,r,R6,null,null,o),fc._currentValue=d),If(n,r),bn(n,r,u,o),r.child;case 6:return n===null&&gt&&((n=o=Ht)&&(o=h8(o,r.pendingProps,ri),o!==null?(r.stateNode=o,Pn=r,Ht=null,n=!0):n=!1),n||ro(r)),null;case 13:return tw(n,r,o);case 4:return ne(r,r.stateNode.containerInfo),u=r.pendingProps,n===null?r.child=bs(r,null,u,o):bn(n,r,u,o),r.child;case 11:return VE(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,aa(r,r.type,u.value),bn(n,r,u.children,o),r.child;case 9:return d=r.type._context,u=r.pendingProps.children,ao(r),d=Bn(d),u=u(d),r.flags|=1,bn(n,r,u,o),r.child;case 14:return KE(n,r,r.type,r.pendingProps,o);case 15:return YE(n,r,r.type,r.pendingProps,o);case 19:return rw(n,r,o);case 31:return u=r.pendingProps,o=r.mode,u={mode:u.mode,children:u.children},n===null?(o=Sf(u,o),o.ref=r.ref,r.child=o,o.return=r,r=o):(o=Ei(n.child,u),o.ref=r.ref,r.child=o,o.return=r,r=o),r;case 22:return XE(n,r,o);case 24:return ao(r),u=Bn(un),n===null?(d=dp(),d===null&&(d=Rt,p=lp(),d.pooledCache=p,p.refCount++,p!==null&&(d.pooledCacheLanes|=o),d=p),r.memoizedState={parent:u,cache:d},pp(r),aa(r,un,d)):((n.lanes&o)!==0&&(yp(n,r),zu(r,null,null,o),Hu()),d=n.memoizedState,p=r.memoizedState,d.parent!==u?(d={parent:u,cache:u},r.memoizedState=d,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=d),aa(r,un,u)):(u=p.cache,aa(r,un,u),u!==d.cache&&cp(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 aw(n,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!h2(r)){if(r=Cr.current,r!==null&&((lt&4194048)===lt?ii!==null:(lt&62914560)!==lt&&(lt&536870912)===0||r!==ii))throw qu=hp,Hx;n.flags|=8192}}function Cf(n,r){r!==null&&(n.flags|=4),n.flags&16384&&(r=n.tag!==22?Mt():536870912,n.lanes|=r,ws|=r)}function Xu(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 L6(n,r,o){var u=r.pendingProps;switch(ap(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),Ci(un),ce(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(n===null||n.child===null)&&(Du(r)?Ri(r):n===null||n.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,Px())),Lt(r),null;case 26:return o=r.memoizedState,n===null?(Ri(r),o!==null?(Lt(r),aw(r,o)):(Lt(r),r.flags&=-16777217)):o?o!==n.memoizedState?(Ri(r),Lt(r),aw(r,o)):(Lt(r),r.flags&=-16777217):(n.memoizedProps!==u&&Ri(r),Lt(r),r.flags&=-16777217),null;case 27:G(r),o=P.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=N.current,Du(r)?Mx(r):(n=a2(d,u,o),r.stateNode=n,Ri(r))}return Lt(r),null;case 5:if(G(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=N.current,Du(r))Mx(r);else{switch(d=Lf(P.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[kt]=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=P.current,Du(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[kt]=r,n=!!(n.nodeValue===o||u!==null&&u.suppressHydrationWarning===!0||Jw(n.nodeValue,o)),n||ro(r)}else n=Lf(n).createTextNode(u),n[kt]=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=Du(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[kt]=r}else Uu(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Lt(r),d=!1}else d=Px(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=d),d=!0;if(!d)return r.flags&256?(Fi(r),r):(Fi(r),null)}if(Fi(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 p=null;u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(p=u.memoizedState.cachePool.pool),p!==d&&(u.flags|=2048)}return o!==n&&o&&(r.child.flags|=8192),Cf(r,r.updateQueue),Lt(r),null;case 4:return ce(),n===null&&my(r.stateNode.containerInfo),Lt(r),null;case 10:return Ci(r.type),Lt(r),null;case 19:if(oe(cn),d=r.memoizedState,d===null)return Lt(r),null;if(u=(r.flags&128)!==0,p=d.rendering,p===null)if(u)Xu(d,!1);else{if(zt!==0||n!==null&&(n.flags&128)!==0)for(n=r.child;n!==null;){if(p=xf(n),p!==null){for(r.flags|=128,Xu(d,!1),n=p.updateQueue,r.updateQueue=n,Cf(r,n),r.subtreeFlags=0,n=o,o=r.child;o!==null;)Dx(o,n),o=o.sibling;return q(cn,cn.current&1|2),r.child}n=n.sibling}d.tail!==null&&g()>Bf&&(r.flags|=128,u=!0,Xu(d,!1),r.lanes=4194304)}else{if(!u)if(n=xf(p),n!==null){if(r.flags|=128,u=!0,n=n.updateQueue,r.updateQueue=n,Cf(r,n),Xu(d,!0),d.tail===null&&d.tailMode==="hidden"&&!p.alternate&&!gt)return Lt(r),null}else 2*g()-d.renderingStartTime>Bf&&o!==536870912&&(r.flags|=128,u=!0,Xu(d,!1),r.lanes=4194304);d.isBackwards?(p.sibling=r.child,r.child=p):(n=d.last,n!==null?n.sibling=p:r.child=p,d.last=p)}return d.tail!==null?(r=d.tail,d.rendering=r,d.tail=r.sibling,d.renderingStartTime=g(),r.sibling=null,n=cn.current,q(cn,u?n&1|2:n&1),r):(Lt(r),null);case 22:case 23:return Fi(r),bp(),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&&Cf(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&&oe(oo),null;case 24:return o=null,n!==null&&(o=n.memoizedState.cache),r.memoizedState.cache!==o&&(r.flags|=2048),Ci(un),Lt(r),null;case 25:return null;case 30:return null}throw Error(a(156,r.tag))}function q6(n,r){switch(ap(r),r.tag){case 1:return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 3:return Ci(un),ce(),n=r.flags,(n&65536)!==0&&(n&128)===0?(r.flags=n&-65537|128,r):null;case 26:case 27:case 5:return G(r),null;case 13:if(Fi(r),n=r.memoizedState,n!==null&&n.dehydrated!==null){if(r.alternate===null)throw Error(a(340));Uu()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 19:return oe(cn),null;case 4:return ce(),null;case 10:return Ci(r.type),null;case 22:case 23:return Fi(r),bp(),n!==null&&oe(oo),n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 24:return Ci(un),null;case 25:return null;default:return null}}function ow(n,r){switch(ap(r),r.tag){case 3:Ci(un),ce();break;case 26:case 27:case 5:G(r);break;case 4:ce();break;case 13:Fi(r);break;case 19:oe(cn);break;case 10:Ci(r.type);break;case 22:case 23:Fi(r),bp(),n!==null&&oe(oo);break;case 24:Ci(un)}}function Zu(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 p=o.create,T=o.inst;u=p(),T.destroy=u}o=o.next}while(o!==d)}}catch(L){Ct(r,r.return,L)}}function da(n,r,o){try{var u=r.updateQueue,d=u!==null?u.lastEffect:null;if(d!==null){var p=d.next;u=p;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!==p)}}catch(Fe){Ct(r,r.return,Fe)}}function sw(n){var r=n.updateQueue;if(r!==null){var o=n.stateNode;try{Kx(r,o)}catch(u){Ct(n,n.return,u)}}}function uw(n,r,o){o.props=uo(n.type,n.memoizedProps),o.state=n.memoizedState;try{o.componentWillUnmount()}catch(u){Ct(n,r,u)}}function Ju(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 cw(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 Vp(n,r,o){try{var u=n.stateNode;s8(u,n.type,o,r),u[sn]=r}catch(d){Ct(n,n.return,d)}}function lw(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&va(n.type)||n.tag===4}function Kp(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||lw(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&&va(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 Yp(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=Nf));else if(u!==4&&(u===27&&va(n.type)&&(o=n.stateNode,r=null),n=n.child,n!==null))for(Yp(n,r,o),n=n.sibling;n!==null;)Yp(n,r,o),n=n.sibling}function Of(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&&va(n.type)&&(o=n.stateNode),n=n.child,n!==null))for(Of(n,r,o),n=n.sibling;n!==null;)Of(n,r,o),n=n.sibling}function fw(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[kt]=n,r[sn]=o}catch(p){Ct(n,n.return,p)}}var Ti=!1,Kt=!1,Xp=!1,dw=typeof WeakSet=="function"?WeakSet:Set,dn=null;function $6(n,r){if(n=n.containerInfo,vy=Qf,n=wx(n),Kh(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,p=u.focusNode;u=u.focusOffset;try{o.nodeType,p.nodeType}catch{o=null;break e}var T=0,L=-1,ae=-1,ve=0,Fe=0,Re=n,xe=null;t:for(;;){for(var we;Re!==o||d!==0&&Re.nodeType!==3||(L=T+d),Re!==p||u!==0&&Re.nodeType!==3||(ae=T+u),Re.nodeType===3&&(T+=Re.nodeValue.length),(we=Re.firstChild)!==null;)xe=Re,Re=we;for(;;){if(Re===n)break t;if(xe===o&&++ve===d&&(L=T),xe===p&&++Fe===u&&(ae=T),(we=Re.nextSibling)!==null)break;Re=xe,xe=Re.parentNode}Re=we}o=L===-1||ae===-1?null:{start:L,end:ae}}else o=null}o=o||{start:0,end:0}}else o=null;for(xy={focusedElem:n,selectionRange:o},Qf=!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,p=r.alternate,n=r.flags,r.tag){case 0:break;case 11:case 15:break;case 1:if((n&1024)!==0&&p!==null){n=void 0,o=r,d=p.memoizedProps,p=p.memoizedState,u=o.stateNode;try{var Ve=uo(o.type,d,o.elementType===o.type);n=u.getSnapshotBeforeUpdate(Ve,p),u.__reactInternalSnapshotBeforeUpdate=n}catch(Qe){Ct(o,o.return,Qe)}}break;case 3:if((n&1024)!==0){if(n=r.stateNode.containerInfo,o=n.nodeType,o===9)Iy(n);else if(o===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":Iy(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 hw(n,r,o){var u=o.flags;switch(o.tag){case 0:case 11:case 15:ha(n,o),u&4&&Zu(5,o);break;case 1:if(ha(n,o),u&4)if(n=o.stateNode,r===null)try{n.componentDidMount()}catch(T){Ct(o,o.return,T)}else{var d=uo(o.type,r.memoizedProps);r=r.memoizedState;try{n.componentDidUpdate(d,r,n.__reactInternalSnapshotBeforeUpdate)}catch(T){Ct(o,o.return,T)}}u&64&&sw(o),u&512&&Ju(o,o.return);break;case 3:if(ha(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{Kx(n,r)}catch(T){Ct(o,o.return,T)}}break;case 27:r===null&&u&4&&fw(o);case 26:case 5:ha(n,o),r===null&&u&4&&cw(o),u&512&&Ju(o,o.return);break;case 12:ha(n,o);break;case 13:ha(n,o),u&4&&gw(n,o),u&64&&(n=o.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(o=X6.bind(null,o),p8(n,o))));break;case 22:if(u=o.memoizedState!==null||Ti,!u){r=r!==null&&r.memoizedState!==null||Kt,d=Ti;var p=Kt;Ti=u,(Kt=r)&&!p?pa(n,o,(o.subtreeFlags&8772)!==0):ha(n,o),Ti=d,Kt=p}break;case 30:break;default:ha(n,o)}}function pw(n){var r=n.alternate;r!==null&&(n.alternate=null,pw(r)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(r=n.stateNode,r!==null&&ra(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,Qn=!1;function _i(n,r,o){for(o=o.child;o!==null;)yw(n,r,o),o=o.sibling}function yw(n,r,o){if(Oe&&typeof Oe.onCommitFiberUnmount=="function")try{Oe.onCommitFiberUnmount(Ee,o)}catch{}switch(o.tag){case 26:Kt||ai(o,r),_i(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=Qn;va(o.type)&&(Dt=o.stateNode,Qn=!1),_i(n,r,o),sc(o.stateNode),Dt=u,Qn=d;break;case 5:Kt||ai(o,r);case 6:if(u=Dt,d=Qn,Dt=null,_i(n,r,o),Dt=u,Qn=d,Dt!==null)if(Qn)try{(Dt.nodeType===9?Dt.body:Dt.nodeName==="HTML"?Dt.ownerDocument.body:Dt).removeChild(o.stateNode)}catch(p){Ct(o,r,p)}else try{Dt.removeChild(o.stateNode)}catch(p){Ct(o,r,p)}break;case 18:Dt!==null&&(Qn?(n=Dt,r2(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,o.stateNode),yc(n)):r2(Dt,o.stateNode));break;case 4:u=Dt,d=Qn,Dt=o.stateNode.containerInfo,Qn=!0,_i(n,r,o),Dt=u,Qn=d;break;case 0:case 11:case 14:case 15:Kt||da(2,o,r),Kt||da(4,o,r),_i(n,r,o);break;case 1:Kt||(ai(o,r),u=o.stateNode,typeof u.componentWillUnmount=="function"&&uw(o,r,u)),_i(n,r,o);break;case 21:_i(n,r,o);break;case 22:Kt=(u=Kt)||o.memoizedState!==null,_i(n,r,o),Kt=u;break;default:_i(n,r,o)}}function gw(n,r){if(r.memoizedState===null&&(n=r.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{yc(n)}catch(o){Ct(r,r.return,o)}}function H6(n){switch(n.tag){case 13:case 19:var r=n.stateNode;return r===null&&(r=n.stateNode=new dw),r;case 22:return n=n.stateNode,r=n._retryCache,r===null&&(r=n._retryCache=new dw),r;default:throw Error(a(435,n.tag))}}function Zp(n,r){var o=H6(n);r.forEach(function(u){var d=Z6.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],p=n,T=r,L=T;e:for(;L!==null;){switch(L.tag){case 27:if(va(L.type)){Dt=L.stateNode,Qn=!1;break e}break;case 5:Dt=L.stateNode,Qn=!1;break e;case 3:case 4:Dt=L.stateNode.containerInfo,Qn=!0;break e}L=L.return}if(Dt===null)throw Error(a(160));yw(p,T,d),Dt=null,Qn=!1,p=d.alternate,p!==null&&(p.return=null),d.return=null}if(r.subtreeFlags&13878)for(r=r.child;r!==null;)mw(r,n),r=r.sibling}var $r=null;function mw(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&&(da(3,n,n.return),Zu(3,n),da(5,n,n.return));break;case 1:ar(r,n),or(n),u&512&&(Kt||o===null||ai(o,o.return)),u&64&&Ti&&(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 p=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":p=d.getElementsByTagName("title")[0],(!p||p[ti]||p[kt]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=d.createElement(u),d.head.insertBefore(p,d.querySelector("head > title"))),xn(p,u,o),p[kt]=n,Nt(p),u=p;break e;case"link":var T=f2("link","href",d).get(u+(o.href||""));if(T){for(var L=0;L<T.length;L++)if(p=T[L],p.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&p.getAttribute("rel")===(o.rel==null?null:o.rel)&&p.getAttribute("title")===(o.title==null?null:o.title)&&p.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){T.splice(L,1);break t}}p=d.createElement(u),xn(p,u,o),d.head.appendChild(p);break;case"meta":if(T=f2("meta","content",d).get(u+(o.content||""))){for(L=0;L<T.length;L++)if(p=T[L],p.getAttribute("content")===(o.content==null?null:""+o.content)&&p.getAttribute("name")===(o.name==null?null:o.name)&&p.getAttribute("property")===(o.property==null?null:o.property)&&p.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&p.getAttribute("charset")===(o.charSet==null?null:o.charSet)){T.splice(L,1);break t}}p=d.createElement(u),xn(p,u,o),d.head.appendChild(p);break;default:throw Error(a(468,u))}p[kt]=n,Nt(p),u=p}n.stateNode=u}else d2(d,n.type,n.stateNode);else n.stateNode=l2(d,u,n.memoizedProps);else p!==u?(p===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):p.count--,u===null?d2(d,n.type,n.stateNode):l2(d,u,n.memoizedProps)):u===null&&n.stateNode!==null&&Vp(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&&Vp(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{ts(d,"")}catch(we){Ct(n,n.return,we)}}u&4&&n.stateNode!=null&&(d=n.memoizedProps,Vp(n,d,o!==null?o.memoizedProps:d)),u&1024&&(Xp=!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(Hf=null,d=$r,$r=qf(r.containerInfo),ar(r,n),$r=d,or(n),u&4&&o!==null&&o.memoizedState.isDehydrated)try{yc(r.containerInfo)}catch(we){Ct(n,n.return,we)}Xp&&(Xp=!1,Aw(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)&&(ry=g()),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,Zp(n,u)));break;case 22:d=n.memoizedState!==null;var ae=o!==null&&o.memoizedState!==null,ve=Ti,Fe=Kt;if(Ti=ve||d,Kt=Fe||ae,ar(r,n),Kt=Fe,Ti=ve,or(n),u&8192)e:for(r=n.stateNode,r._visibility=d?r._visibility&-2:r._visibility|1,d&&(o===null||ae||Ti||Kt||co(n)),o=null,r=n;;){if(r.tag===5||r.tag===26){if(o===null){ae=o=r;try{if(p=ae.stateNode,d)T=p.style,typeof T.setProperty=="function"?T.setProperty("display","none","important"):T.display="none";else{L=ae.stateNode;var Re=ae.memoizedProps.style,xe=Re!=null&&Re.hasOwnProperty("display")?Re.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,Zp(n,o))));break;case 19:ar(r,n),or(n),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,Zp(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(lw(u)){o=u;break}u=u.return}if(o==null)throw Error(a(160));switch(o.tag){case 27:var d=o.stateNode,p=Kp(n);Of(n,p,d);break;case 5:var T=o.stateNode;o.flags&32&&(ts(T,""),o.flags&=-33);var L=Kp(n);Of(n,L,T);break;case 3:case 4:var ae=o.stateNode.containerInfo,ve=Kp(n);Yp(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 Aw(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var r=n;Aw(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),n=n.sibling}}function ha(n,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)hw(n,r.alternate,r),r=r.sibling}function co(n){for(n=n.child;n!==null;){var r=n;switch(r.tag){case 0:case 11:case 14:case 15:da(4,r,r.return),co(r);break;case 1:ai(r,r.return);var o=r.stateNode;typeof o.componentWillUnmount=="function"&&uw(r,r.return,o),co(r);break;case 27:sc(r.stateNode);case 26:case 5:ai(r,r.return),co(r);break;case 22:r.memoizedState===null&&co(r);break;case 30:co(r);break;default:co(r)}n=n.sibling}}function pa(n,r,o){for(o=o&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var u=r.alternate,d=n,p=r,T=p.flags;switch(p.tag){case 0:case 11:case 15:pa(d,p,o),Zu(4,p);break;case 1:if(pa(d,p,o),u=p,d=u.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(ve){Ct(u,u.return,ve)}if(u=p,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++)Vx(ae[d],L)}catch(ve){Ct(u,u.return,ve)}}o&&T&64&&sw(p),Ju(p,p.return);break;case 27:fw(p);case 26:case 5:pa(d,p,o),o&&u===null&&T&4&&cw(p),Ju(p,p.return);break;case 12:pa(d,p,o);break;case 13:pa(d,p,o),o&&T&4&&gw(d,p);break;case 22:p.memoizedState===null&&pa(d,p,o),Ju(p,p.return);break;case 30:break;default:pa(d,p,o)}r=r.sibling}}function Jp(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&&Pu(o))}function Wp(n,r){n=null,r.alternate!==null&&(n=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==n&&(r.refCount++,n!=null&&Pu(n))}function oi(n,r,o,u){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)bw(n,r,o,u),r=r.sibling}function bw(n,r,o,u){var d=r.flags;switch(r.tag){case 0:case 11:case 15:oi(n,r,o,u),d&2048&&Zu(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&&Pu(n)));break;case 12:if(d&2048){oi(n,r,o,u),n=r.stateNode;try{var p=r.memoizedProps,T=p.id,L=p.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:p=r.stateNode,T=r.alternate,r.memoizedState!==null?p._visibility&2?oi(n,r,o,u):Wu(n,r):p._visibility&2?oi(n,r,o,u):(p._visibility|=2,vs(n,r,o,u,(r.subtreeFlags&10256)!==0)),d&2048&&Jp(T,r);break;case 24:oi(n,r,o,u),d&2048&&Wp(r.alternate,r);break;default:oi(n,r,o,u)}}function vs(n,r,o,u,d){for(d=d&&(r.subtreeFlags&10256)!==0,r=r.child;r!==null;){var p=n,T=r,L=o,ae=u,ve=T.flags;switch(T.tag){case 0:case 11:case 15:vs(p,T,L,ae,d),Zu(8,T);break;case 23:break;case 22:var Fe=T.stateNode;T.memoizedState!==null?Fe._visibility&2?vs(p,T,L,ae,d):Wu(p,T):(Fe._visibility|=2,vs(p,T,L,ae,d)),d&&ve&2048&&Jp(T.alternate,T);break;case 24:vs(p,T,L,ae,d),d&&ve&2048&&Wp(T.alternate,T);break;default:vs(p,T,L,ae,d)}r=r.sibling}}function Wu(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:Wu(o,u),d&2048&&Jp(u.alternate,u);break;case 24:Wu(o,u),d&2048&&Wp(u.alternate,u);break;default:Wu(o,u)}r=r.sibling}}var ec=8192;function xs(n){if(n.subtreeFlags&ec)for(n=n.child;n!==null;)vw(n),n=n.sibling}function vw(n){switch(n.tag){case 26:xs(n),n.flags&ec&&n.memoizedState!==null&&O8($r,n.memoizedState,n.memoizedProps);break;case 5:xs(n);break;case 3:case 4:var r=$r;$r=qf(n.stateNode.containerInfo),xs(n),$r=r;break;case 22:n.memoizedState===null&&(r=n.alternate,r!==null&&r.memoizedState!==null?(r=ec,ec=16777216,xs(n),ec=r):xs(n));break;default:xs(n)}}function xw(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 tc(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,ww(u,n)}xw(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Ew(n),n=n.sibling}function Ew(n){switch(n.tag){case 0:case 11:case 15:tc(n),n.flags&2048&&da(9,n,n.return);break;case 3:tc(n);break;case 12:tc(n);break;case 22:var r=n.stateNode;n.memoizedState!==null&&r._visibility&2&&(n.return===null||n.return.tag!==13)?(r._visibility&=-3,Ff(n)):tc(n);break;default:tc(n)}}function Ff(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,ww(u,n)}xw(n)}for(n=n.child;n!==null;){switch(r=n,r.tag){case 0:case 11:case 15:da(8,r,r.return),Ff(r);break;case 22:o=r.stateNode,o._visibility&2&&(o._visibility&=-3,Ff(r));break;default:Ff(r)}n=n.sibling}}function ww(n,r){for(;dn!==null;){var o=dn;switch(o.tag){case 0:case 11:case 15:da(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:Pu(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,p=u.return;if(pw(u),u===o){dn=null;break e}if(d!==null){d.return=p,dn=d;break e}dn=p}}}var z6={getCacheForType:function(n){var r=Bn(un),o=r.data.get(n);return o===void 0&&(o=n(),r.data.set(n,o)),o}},G6=typeof WeakMap=="function"?WeakMap:Map,At=0,Rt=null,tt=null,lt=0,bt=0,sr=null,ya=!1,Es=!1,ey=!1,Di=0,zt=0,ga=0,lo=0,ty=0,Or=0,ws=0,nc=null,kn=null,ny=!1,ry=0,Bf=1/0,Rf=null,ma=null,vn=0,Aa=null,Is=null,Ss=0,iy=0,ay=null,Iw=null,rc=0,oy=null;function ur(){if((At&2)!==0&&lt!==0)return lt&-lt;if(_.T!==null){var n=ds;return n!==0?n:hy()}return Ga()}function Sw(){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===Rt&&(bt===2||bt===9)||n.cancelPendingCommit!==null)&&(Cs(n,0),ba(n,lt,Or,!1)),Bt(n,o),((At&2)===0||n!==Rt)&&(n===Rt&&((At&2)===0&&(lo|=o),zt===4&&ba(n,lt,Or,!1)),si(n))}function Cw(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?V6(n,r):cy(n,r,!0),p=u;do{if(d===0){Es&&!u&&ba(n,r,0,!1);break}else{if(o=n.current.alternate,p&&!Q6(o)){d=cy(n,r,!1),p=!1;continue}if(d===2){if(p=r,n.errorRecoveryDisabledLanes&p)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=nc;var ae=L.current.memoizedState.isDehydrated;if(ae&&(Cs(L,T).flags|=256),T=cy(L,T,!1),T!==2){if(ey&&!ae){L.errorRecoveryDisabledLanes|=p,lo|=p,d=4;break e}p=kn,kn=d,p!==null&&(kn===null?kn=p:kn.push.apply(kn,p))}d=T}if(p=!1,d!==2)continue}}if(d===1){Cs(n,0),ba(n,r,0,!0);break}e:{switch(u=n,p=d,p){case 0:case 1:throw Error(a(345));case 4:if((r&4194048)!==r)break;case 6:ba(u,r,Or,!ya);break e;case 2:kn=null;break;case 3:case 5:break;default:throw Error(a(329))}if((r&62914560)===r&&(d=ry+300-g(),10<d)){if(ba(u,r,Or,!ya),ft(u,0,!0)!==0)break e;u.timeoutHandle=t2(Ow.bind(null,u,o,kn,Rf,ny,r,Or,lo,ws,ya,p,2,-0,0),d);break e}Ow(u,o,kn,Rf,ny,r,Or,lo,ws,ya,p,0,-0,0)}}break}while(!0);si(n)}function Ow(n,r,o,u,d,p,T,L,ae,ve,Fe,Re,xe,we){if(n.timeoutHandle=-1,Re=r.subtreeFlags,(Re&8192||(Re&16785408)===16785408)&&(lc={stylesheets:null,count:0,unsuspend:C8},vw(r),Re=F8(),Re!==null)){n.cancelPendingCommit=Re(Uw.bind(null,n,r,p,o,u,d,T,L,ae,Fe,1,xe,we)),ba(n,p,T,!ve);return}Uw(n,r,p,o,u,d,T,L,ae)}function Q6(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],p=d.getSnapshot;d=d.value;try{if(!rr(p(),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 ba(n,r,o,u){r&=~ty,r&=~lo,n.suspendedLanes|=r,n.pingedLanes&=~r,u&&(n.warmLanes|=r),u=n.expirationTimes;for(var d=r;0<d;){var p=31-Ne(d),T=1<<p;u[p]=-1,d&=~T}o!==0&&jt(n,o,r)}function Tf(){return(At&6)===0?(ic(0),!1):!0}function sy(){if(tt!==null){if(bt===0)var n=tt.return;else n=tt,Si=io=null,Ip(n),As=null,Ku=0,n=tt;for(;n!==null;)ow(n.alternate,n),n=n.return;tt=null}}function Cs(n,r){var o=n.timeoutHandle;o!==-1&&(n.timeoutHandle=-1,c8(o)),o=n.cancelPendingCommit,o!==null&&(n.cancelPendingCommit=null,o()),sy(),Rt=n,tt=o=Ei(n.current,null),lt=r,bt=0,sr=null,ya=!1,Es=ht(n,r),ey=!1,ws=Or=ty=lo=ga=zt=0,kn=nc=null,ny=!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),p=1<<d;r|=n[d],u&=~p}return Di=r,Jl(),o}function Fw(n,r){We=null,_.H=Af,r===Lu||r===uf?(r=Qx(),bt=3):r===Hx?(r=Qx(),bt=4):bt=r===kE?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,sr=r,tt===null&&(zt=1,wf(n,Er(r,n.current)))}function Bw(){var n=_.H;return _.H=Af,n===null?Af:n}function Rw(){var n=_.A;return _.A=z6,n}function uy(){zt=4,ya||(lt&4194048)!==lt&&Cr.current!==null||(Es=!0),(ga&134217727)===0&&(lo&134217727)===0||Rt===null||ba(Rt,lt,Or,!1)}function cy(n,r,o){var u=At;At|=2;var d=Bw(),p=Rw();(Rt!==n||lt!==r)&&(Rf=null,Cs(n,r)),r=!1;var T=zt;e:do try{if(bt!==0&&tt!==null){var L=tt,ae=sr;switch(bt){case 8:sy(),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,Os(n,L,ae,ve),o&&Es){T=0;break e}break;default:ve=bt,bt=0,sr=null,Os(n,L,ae,ve)}}k6(),T=zt;break}catch(Fe){Fw(n,Fe)}while(!0);return r&&n.shellSuspendCounter++,Si=io=null,At=u,_.H=d,_.A=p,tt===null&&(Rt=null,lt=0,Jl()),T}function k6(){for(;tt!==null;)Tw(tt)}function V6(n,r){var o=At;At|=2;var u=Bw(),d=Rw();Rt!==n||lt!==r?(Rf=null,Bf=g()+500,Cs(n,r)):Es=ht(n,r);e:do try{if(bt!==0&&tt!==null){r=tt;var p=sr;t:switch(bt){case 1:bt=0,sr=null,Os(n,r,p,1);break;case 2:case 9:if(zx(p)){bt=0,sr=null,_w(r);break}r=function(){bt!==2&&bt!==9||Rt!==n||(bt=7),si(n)},p.then(r,r);break e;case 3:bt=7;break e;case 4:bt=5;break e;case 7:zx(p)?(bt=0,sr=null,_w(r)):(bt=0,sr=null,Os(n,r,p,7));break;case 5:var T=null;switch(tt.tag){case 26:T=tt.memoizedState;case 5:case 27:var L=tt;if(!T||h2(T)){bt=0,sr=null;var ae=L.sibling;if(ae!==null)tt=ae;else{var ve=L.return;ve!==null?(tt=ve,_f(ve)):tt=null}break t}}bt=0,sr=null,Os(n,r,p,5);break;case 6:bt=0,sr=null,Os(n,r,p,6);break;case 8:sy(),zt=6;break e;default:throw Error(a(462))}}K6();break}catch(Fe){Fw(n,Fe)}while(!0);return Si=io=null,_.H=u,_.A=d,At=o,tt!==null?0:(Rt=null,lt=0,Jl(),zt)}function K6(){for(;tt!==null&&!de();)Tw(tt)}function Tw(n){var r=iw(n.alternate,n,Di);n.memoizedProps=n.pendingProps,r===null?_f(n):tt=r}function _w(n){var r=n,o=r.alternate;switch(r.tag){case 15:case 0:r=JE(o,r,r.pendingProps,r.type,void 0,lt);break;case 11:r=JE(o,r,r.pendingProps,r.type.render,r.ref,lt);break;case 5:Ip(r);default:ow(o,r),r=tt=Dx(r,Di),r=iw(o,r,Di)}n.memoizedProps=n.pendingProps,r===null?_f(n):tt=r}function Os(n,r,o,u){Si=io=null,Ip(r),As=null,Ku=0;var d=r.return;try{if(P6(n,d,r,o,lt)){zt=1,wf(n,Er(o,n.current)),tt=null;return}}catch(p){if(d!==null)throw tt=d,p;zt=1,wf(n,Er(o,n.current)),tt=null;return}r.flags&32768?(gt||u===1?n=!0:Es||(lt&536870912)!==0?n=!1:(ya=n=!0,(u===2||u===9||u===3||u===6)&&(u=Cr.current,u!==null&&u.tag===13&&(u.flags|=16384))),Dw(r,n)):_f(r)}function _f(n){var r=n;do{if((r.flags&32768)!==0){Dw(r,ya);return}n=r.return;var o=L6(r.alternate,r,Di);if(o!==null){tt=o;return}if(r=r.sibling,r!==null){tt=r;return}tt=r=n}while(r!==null);zt===0&&(zt=5)}function Dw(n,r){do{var o=q6(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);zt=6,tt=null}function Uw(n,r,o,u,d,p,T,L,ae){n.cancelPendingCommit=null;do Df();while(vn!==0);if((At&6)!==0)throw Error(a(327));if(r!==null){if(r===n.current)throw Error(a(177));if(p=r.lanes|r.childLanes,p|=Wh,$t(n,o,p,T,L,ae),n===Rt&&(tt=Rt=null,lt=0),Is=r,Aa=n,Ss=o,iy=p,ay=d,Iw=u,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,J6(Ae,function(){return Lw(),null})):(n.callbackNode=null,n.callbackPriority=0),u=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||u){u=_.T,_.T=null,d=te.p,te.p=2,T=At,At|=4;try{$6(n,r,o)}finally{At=T,te.p=d,_.T=u}}vn=1,Mw(),jw(),Pw()}}function Mw(){if(vn===1){vn=0;var n=Aa,r=Is,o=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||o){o=_.T,_.T=null;var u=te.p;te.p=2;var d=At;At|=4;try{mw(r,n);var p=xy,T=wx(n.containerInfo),L=p.focusedElem,ae=p.selectionRange;if(T!==L&&L&&L.ownerDocument&&Ex(L.ownerDocument.documentElement,L)){if(ae!==null&&Kh(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 Re=L.ownerDocument||document,xe=Re&&Re.defaultView||window;if(xe.getSelection){var we=xe.getSelection(),Ve=L.textContent.length,Qe=Math.min(ae.start,Ve),It=ae.end===void 0?Qe:Math.min(ae.end,Ve);!we.extend&&Qe>It&&(T=It,It=Qe,Qe=T);var ge=xx(L,Qe),he=xx(L,It);if(ge&&he&&(we.rangeCount!==1||we.anchorNode!==ge.node||we.anchorOffset!==ge.offset||we.focusNode!==he.node||we.focusOffset!==he.offset)){var be=Re.createRange();be.setStart(ge.node,ge.offset),we.removeAllRanges(),Qe>It?(we.addRange(be),we.extend(he.node,he.offset)):(be.setEnd(he.node,he.offset),we.addRange(be))}}}}for(Re=[],we=L;we=we.parentNode;)we.nodeType===1&&Re.push({element:we,left:we.scrollLeft,top:we.scrollTop});for(typeof L.focus=="function"&&L.focus(),L=0;L<Re.length;L++){var Be=Re[L];Be.element.scrollLeft=Be.left,Be.element.scrollTop=Be.top}}Qf=!!vy,xy=vy=null}finally{At=d,te.p=u,_.T=o}}n.current=r,vn=2}}function jw(){if(vn===2){vn=0;var n=Aa,r=Is,o=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||o){o=_.T,_.T=null;var u=te.p;te.p=2;var d=At;At|=4;try{hw(n,r.alternate,r)}finally{At=d,te.p=u,_.T=o}}vn=3}}function Pw(){if(vn===4||vn===3){vn=0,x();var n=Aa,r=Is,o=Ss,u=Iw;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?vn=5:(vn=0,Is=Aa=null,Nw(n,n.pendingLanes));var d=n.pendingLanes;if(d===0&&(ma=null),ta(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=_.T,d=te.p,te.p=2,_.T=null;try{for(var p=n.onRecoverableError,T=0;T<u.length;T++){var L=u[T];p(L.value,{componentStack:L.stack})}}finally{_.T=r,te.p=d}}(Ss&3)!==0&&Df(),si(n),d=n.pendingLanes,(o&4194090)!==0&&(d&42)!==0?n===oy?rc++:(rc=0,oy=n):rc=0,ic(0)}}function Nw(n,r){(n.pooledCacheLanes&=r)===0&&(r=n.pooledCache,r!=null&&(n.pooledCache=null,Pu(r)))}function Df(n){return Mw(),jw(),Pw(),Lw()}function Lw(){if(vn!==5)return!1;var n=Aa,r=iy;iy=0;var o=ta(Ss),u=_.T,d=te.p;try{te.p=32>o?32:o,_.T=null,o=ay,ay=null;var p=Aa,T=Ss;if(vn=0,Is=Aa=null,Ss=0,(At&6)!==0)throw Error(a(331));var L=At;if(At|=4,Ew(p.current),bw(p,p.current,T,o),At=L,ic(0,!1),Oe&&typeof Oe.onPostCommitFiberRoot=="function")try{Oe.onPostCommitFiberRoot(Ee,p)}catch{}return!0}finally{te.p=d,_.T=u,Nw(n,r)}}function qw(n,r,o){r=Er(o,r),r=Np(n.stateNode,r,2),n=ua(n,r,2),n!==null&&(Bt(n,2),si(n))}function Ct(n,r,o){if(n.tag===3)qw(n,n,o);else for(;r!==null;){if(r.tag===3){qw(r,n,o);break}else if(r.tag===1){var u=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(ma===null||!ma.has(u))){n=Er(o,n),o=GE(2),u=ua(r,o,2),u!==null&&(QE(o,u,r,n),Bt(u,2),si(u));break}}r=r.return}}function ly(n,r,o){var u=n.pingCache;if(u===null){u=n.pingCache=new G6;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)||(ey=!0,d.add(o),n=Y6.bind(null,n,r,o),r.then(n,n))}function Y6(n,r,o){var u=n.pingCache;u!==null&&u.delete(r),n.pingedLanes|=n.suspendedLanes&o,n.warmLanes&=~o,Rt===n&&(lt&o)===o&&(zt===4||zt===3&&(lt&62914560)===lt&&300>g()-ry?(At&2)===0&&Cs(n,0):ty|=o,ws===lt&&(ws=0)),si(n)}function $w(n,r){r===0&&(r=Mt()),n=us(n,r),n!==null&&(Bt(n,r),si(n))}function X6(n){var r=n.memoizedState,o=0;r!==null&&(o=r.retryLane),$w(n,o)}function Z6(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),$w(n,o)}function J6(n,r){return W(n,r)}var Uf=null,Fs=null,fy=!1,Mf=!1,dy=!1,fo=0;function si(n){n!==Fs&&n.next===null&&(Fs===null?Uf=Fs=n:Fs=Fs.next=n),Mf=!0,fy||(fy=!0,e8())}function ic(n,r){if(!dy&&Mf){dy=!0;do for(var o=!1,u=Uf;u!==null;){if(n!==0){var d=u.pendingLanes;if(d===0)var p=0;else{var T=u.suspendedLanes,L=u.pingedLanes;p=(1<<31-Ne(42|n)+1)-1,p&=d&~(T&~L),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(o=!0,Qw(u,p))}else p=lt,p=ft(u,u===Rt?p:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(p&3)===0||ht(u,p)||(o=!0,Qw(u,p));u=u.next}while(o);dy=!1}}function W6(){Hw()}function Hw(){Mf=fy=!1;var n=0;fo!==0&&(u8()&&(n=fo),fo=0);for(var r=g(),o=null,u=Uf;u!==null;){var d=u.next,p=zw(u,r);p===0?(u.next=null,o===null?Uf=d:o.next=d,d===null&&(Fs=o)):(o=u,(n!==0||(p&3)!==0)&&(Mf=!0)),u=d}ic(n)}function zw(n,r){for(var o=n.suspendedLanes,u=n.pingedLanes,d=n.expirationTimes,p=n.pendingLanes&-62914561;0<p;){var T=31-Ne(p),L=1<<T,ae=d[T];ae===-1?((L&o)===0||(L&u)!==0)&&(d[T]=pt(L,r)):ae<=r&&(n.expiredLanes|=L),p&=~L}if(r=Rt,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&&me(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&&me(u),ta(o)){case 2:case 8:o=X;break;case 32:o=Ae;break;case 268435456:o=Me;break;default:o=Ae}return u=Gw.bind(null,n),o=W(o,u),n.callbackPriority=r,n.callbackNode=o,r}return u!==null&&u!==null&&me(u),n.callbackPriority=2,n.callbackNode=null,2}function Gw(n,r){if(vn!==0&&vn!==5)return n.callbackNode=null,n.callbackPriority=0,null;var o=n.callbackNode;if(Df()&&n.callbackNode!==o)return null;var u=lt;return u=ft(n,n===Rt?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),u===0?null:(Cw(n,u,r),zw(n,g()),n.callbackNode!=null&&n.callbackNode===o?Gw.bind(null,n):null)}function Qw(n,r){if(Df())return null;Cw(n,r,!0)}function e8(){l8(function(){(At&6)!==0?W(S,W6):Hw()})}function hy(){return fo===0&&(fo=mt()),fo}function kw(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:Ql(""+n)}function Vw(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 t8(n,r,o,u,d){if(r==="submit"&&o&&o.stateNode===d){var p=kw((d[sn]||null).action),T=u.submitter;T&&(r=(r=T[sn]||null)?kw(r.formAction):T.getAttribute("formAction"),r!==null&&(p=r,T=null));var L=new Yl("action","action",null,u,d);n.push({event:L,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(fo!==0){var ae=T?Vw(d,T):new FormData(d);Dp(o,{pending:!0,data:ae,method:d.method,action:p},null,ae)}}else typeof p=="function"&&(L.preventDefault(),ae=T?Vw(d,T):new FormData(d),Dp(o,{pending:!0,data:ae,method:d.method,action:p},p,ae))},currentTarget:d}]})}}for(var py=0;py<Jh.length;py++){var yy=Jh[py],n8=yy.toLowerCase(),r8=yy[0].toUpperCase()+yy.slice(1);qr(n8,"on"+r8)}qr(Cx,"onAnimationEnd"),qr(Ox,"onAnimationIteration"),qr(Fx,"onAnimationStart"),qr("dblclick","onDoubleClick"),qr("focusin","onFocus"),qr("focusout","onBlur"),qr(v6,"onTransitionRun"),qr(x6,"onTransitionStart"),qr(E6,"onTransitionCancel"),qr(Bx,"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 ac="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(" "),i8=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ac));function Kw(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 p=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!==p&&d.isPropagationStopped())break e;p=L,d.currentTarget=ve;try{p(d)}catch(Fe){Ef(Fe)}d.currentTarget=null,p=ae}else for(T=0;T<u.length;T++){if(L=u[T],ae=L.instance,ve=L.currentTarget,L=L.listener,ae!==p&&d.isPropagationStopped())break e;p=L,d.currentTarget=ve;try{p(d)}catch(Fe){Ef(Fe)}d.currentTarget=null,p=ae}}}}function nt(n,r){var o=r[na];o===void 0&&(o=r[na]=new Set);var u=n+"__bubble";o.has(u)||(Yw(r,n,2,!1),o.add(u))}function gy(n,r,o){var u=0;r&&(u|=4),Yw(o,n,u,r)}var jf="_reactListening"+Math.random().toString(36).slice(2);function my(n){if(!n[jf]){n[jf]=!0,ka.forEach(function(o){o!=="selectionchange"&&(i8.has(o)||gy(o,!1,n),gy(o,!0,n))});var r=n.nodeType===9?n:n.ownerDocument;r===null||r[jf]||(r[jf]=!0,gy("selectionchange",!1,r))}}function Yw(n,r,o,u){switch(b2(r)){case 2:var d=T8;break;case 8:d=_8;break;default:d=Ty}o=d.bind(null,r,o,n),d=void 0,!Lh||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 Ay(n,r,o,u,d){var p=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=p=T;continue e}L=L.parentNode}}u=u.return}nx(function(){var ve=p,Fe=Ph(o),Re=[];e:{var xe=Rx.get(n);if(xe!==void 0){var we=Yl,Ve=n;switch(n){case"keypress":if(Vl(o)===0)break e;case"keydown":case"keyup":we=J_;break;case"focusin":Ve="focus",we=zh;break;case"focusout":Ve="blur",we=zh;break;case"beforeblur":case"afterblur":we=zh;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=ax;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":we=q_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":we=t6;break;case Cx:case Ox:case Fx:we=z_;break;case Bx:we=r6;break;case"scroll":case"scrollend":we=N_;break;case"wheel":we=a6;break;case"copy":case"cut":case"paste":we=Q_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":we=sx;break;case"toggle":case"beforetoggle":we=s6}var Qe=(r&4)!==0,It=!Qe&&(n==="scroll"||n==="scrollend"),ge=Qe?xe!==null?xe+"Capture":null:xe;Qe=[];for(var he=ve,be;he!==null;){var Be=he;if(be=Be.stateNode,Be=Be.tag,Be!==5&&Be!==26&&Be!==27||be===null||ge===null||(Be=Iu(he,ge),Be!=null&&Qe.push(oc(he,Be,be))),It)break;he=he.return}0<Qe.length&&(xe=new we(xe,Ve,null,o,Fe),Re.push({event:xe,listeners:Qe}))}}if((r&7)===0){e:{if(xe=n==="mouseover"||n==="pointerover",we=n==="mouseout"||n==="pointerout",xe&&o!==jh&&(Ve=o.relatedTarget||o.fromElement)&&(jr(Ve)||Ve[Mr]))break e;if((we||xe)&&(xe=Fe.window===Fe?Fe:(xe=Fe.ownerDocument)?xe.defaultView||xe.parentWindow:window,we?(Ve=o.relatedTarget||o.toElement,we=ve,Ve=Ve?jr(Ve):null,Ve!==null&&(It=c(Ve),Qe=Ve.tag,Ve!==It||Qe!==5&&Qe!==27&&Qe!==6)&&(Ve=null)):(we=null,Ve=ve),we!==Ve)){if(Qe=ax,Be="onMouseLeave",ge="onMouseEnter",he="mouse",(n==="pointerout"||n==="pointerover")&&(Qe=sx,Be="onPointerLeave",ge="onPointerEnter",he="pointer"),It=we==null?xe:ni(we),be=Ve==null?xe:ni(Ve),xe=new Qe(Be,he+"leave",we,o,Fe),xe.target=It,xe.relatedTarget=be,Be=null,jr(Fe)===ve&&(Qe=new Qe(ge,he+"enter",Ve,o,Fe),Qe.target=be,Qe.relatedTarget=It,Be=Qe),It=Be,we&&Ve)t:{for(Qe=we,ge=Ve,he=0,be=Qe;be;be=Bs(be))he++;for(be=0,Be=ge;Be;Be=Bs(Be))be++;for(;0<he-be;)Qe=Bs(Qe),he--;for(;0<be-he;)ge=Bs(ge),be--;for(;he--;){if(Qe===ge||ge!==null&&Qe===ge.alternate)break t;Qe=Bs(Qe),ge=Bs(ge)}Qe=null}else Qe=null;we!==null&&Xw(Re,xe,we,Qe,!1),Ve!==null&&It!==null&&Xw(Re,It,Ve,Qe,!0)}}e:{if(xe=ve?ni(ve):window,we=xe.nodeName&&xe.nodeName.toLowerCase(),we==="select"||we==="input"&&xe.type==="file")var $e=yx;else if(hx(xe))if(gx)$e=m6;else{$e=y6;var et=p6}else we=xe.nodeName,!we||we.toLowerCase()!=="input"||xe.type!=="checkbox"&&xe.type!=="radio"?ve&&Mh(ve.elementType)&&($e=yx):$e=g6;if($e&&($e=$e(n,ve))){px(Re,$e,o,Fe);break e}et&&et(n,xe,ve),n==="focusout"&&ve&&xe.type==="number"&&ve.memoizedProps.value!=null&&Uh(xe,"number",xe.value)}switch(et=ve?ni(ve):window,n){case"focusin":(hx(et)||et.contentEditable==="true")&&(as=et,Yh=ve,_u=null);break;case"focusout":_u=Yh=as=null;break;case"mousedown":Xh=!0;break;case"contextmenu":case"mouseup":case"dragend":Xh=!1,Ix(Re,o,Fe);break;case"selectionchange":if(b6)break;case"keydown":case"keyup":Ix(Re,o,Fe)}var He;if(Qh)e:{switch(n){case"compositionstart":var ke="onCompositionStart";break e;case"compositionend":ke="onCompositionEnd";break e;case"compositionupdate":ke="onCompositionUpdate";break e}ke=void 0}else is?fx(n,o)&&(ke="onCompositionEnd"):n==="keydown"&&o.keyCode===229&&(ke="onCompositionStart");ke&&(ux&&o.locale!=="ko"&&(is||ke!=="onCompositionStart"?ke==="onCompositionEnd"&&is&&(He=rx()):(ia=Fe,qh="value"in ia?ia.value:ia.textContent,is=!0)),et=Pf(ve,ke),0<et.length&&(ke=new ox(ke,n,null,o,Fe),Re.push({event:ke,listeners:et}),He?ke.data=He:(He=dx(o),He!==null&&(ke.data=He)))),(He=c6?l6(n,o):f6(n,o))&&(ke=Pf(ve,"onBeforeInput"),0<ke.length&&(et=new ox("onBeforeInput","beforeinput",null,o,Fe),Re.push({event:et,listeners:ke}),et.data=He)),t8(Re,n,ve,o,Fe)}Kw(Re,r)})}function oc(n,r,o){return{instance:n,listener:r,currentTarget:o}}function Pf(n,r){for(var o=r+"Capture",u=[];n!==null;){var d=n,p=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||p===null||(d=Iu(n,o),d!=null&&u.unshift(oc(n,d,p)),d=Iu(n,r),d!=null&&u.push(oc(n,d,p))),n.tag===3)return u;n=n.return}return[]}function Bs(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function Xw(n,r,o,u,d){for(var p=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=Iu(o,p),ve!=null&&T.unshift(oc(o,ve,ae))):d||(ve=Iu(o,p),ve!=null&&T.push(oc(o,ve,ae)))),o=o.return}T.length!==0&&n.push({event:r,listeners:T})}var a8=/\r\n?/g,o8=/\u0000|\uFFFD/g;function Zw(n){return(typeof n=="string"?n:""+n).replace(a8,`
38
+ `).replace(o8,"")}function Jw(n,r){return r=Zw(r),Zw(n)===r}function Nf(){}function wt(n,r,o,u,d,p){switch(o){case"children":typeof u=="string"?r==="body"||r==="textarea"&&u===""||ts(n,u):(typeof u=="number"||typeof u=="bigint")&&r!=="body"&&ts(n,""+u);break;case"className":Hl(n,"class",u);break;case"tabIndex":Hl(n,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":Hl(n,o,u);break;case"style":ex(n,u,p);break;case"data":if(r!=="object"){Hl(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=Ql(""+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 p=="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=Ql(""+u),n.setAttribute(o,u);break;case"onClick":u!=null&&(n.onclick=Nf);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=Ql(""+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),bi(n,"popover",u);break;case"xlinkActuate":vi(n,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":vi(n,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":vi(n,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":vi(n,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":vi(n,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":vi(n,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":vi(n,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":vi(n,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":vi(n,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":bi(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=j_.get(o)||o,bi(n,o,u))}}function by(n,r,o,u,d,p){switch(o){case"style":ex(n,u,p);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"?ts(n,u):(typeof u=="number"||typeof u=="bigint")&&ts(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=Nf);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Va.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(d=o.endsWith("Capture"),r=o.slice(2,d?o.length-7:void 0),p=n[sn]||null,p=p!=null?p[o]:null,typeof p=="function"&&n.removeEventListener(r,p,d),typeof u=="function")){typeof p!="function"&&p!==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,""):bi(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,p;for(p in o)if(o.hasOwnProperty(p)){var T=o[p];if(T!=null)switch(p){case"src":u=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,r));default:wt(n,r,p,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=p=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":p=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)}}Xv(n,p,L,ae,ve,T,d,!1),zl(n);return;case"select":nt("invalid",n),u=T=p=null;for(d in o)if(o.hasOwnProperty(d)&&(L=o[d],L!=null))switch(d){case"value":p=L;break;case"defaultValue":T=L;break;case"multiple":u=L;default:wt(n,r,d,L,o,null)}r=p,o=T,n.multiple=!!u,r!=null?es(n,!!u,r,!1):o!=null&&es(n,!!u,o,!0);return;case"textarea":nt("invalid",n),p=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":p=L;break;case"dangerouslySetInnerHTML":if(L!=null)throw Error(a(91));break;default:wt(n,r,T,L,o,null)}Jv(n,u,d,p),zl(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<ac.length;u++)nt(ac[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(Mh(r)){for(Fe in o)o.hasOwnProperty(Fe)&&(u=o[Fe],u!==void 0&&by(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 s8(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,p=null,T=null,L=null,ae=null,ve=null,Fe=null;for(we in o){var Re=o[we];if(o.hasOwnProperty(we)&&Re!=null)switch(we){case"checked":break;case"value":break;case"defaultValue":ae=Re;default:u.hasOwnProperty(we)||wt(n,r,we,null,u,Re)}}for(var xe in u){var we=u[xe];if(Re=o[xe],u.hasOwnProperty(xe)&&(we!=null||Re!=null))switch(xe){case"type":p=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!==Re&&wt(n,r,xe,we,u,Re)}}Dh(n,T,L,ae,ve,Fe,p,d);return;case"select":we=T=L=xe=null;for(p in o)if(ae=o[p],o.hasOwnProperty(p)&&ae!=null)switch(p){case"value":break;case"multiple":we=ae;default:u.hasOwnProperty(p)||wt(n,r,p,null,u,ae)}for(d in u)if(p=u[d],ae=o[d],u.hasOwnProperty(d)&&(p!=null||ae!=null))switch(d){case"value":xe=p;break;case"defaultValue":L=p;break;case"multiple":T=p;default:p!==ae&&wt(n,r,d,p,u,ae)}r=L,o=T,u=we,xe!=null?es(n,!!o,xe,!1):!!u!=!!o&&(r!=null?es(n,!!o,r,!0):es(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],p=o[T],u.hasOwnProperty(T)&&(d!=null||p!=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!==p&&wt(n,r,T,d,u,p)}Zv(n,xe,we);return;case"option":for(var Ve in o)if(xe=o[Ve],o.hasOwnProperty(Ve)&&xe!=null&&!u.hasOwnProperty(Ve))switch(Ve){case"selected":n.selected=!1;break;default:wt(n,r,Ve,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 Qe in o)xe=o[Qe],o.hasOwnProperty(Qe)&&xe!=null&&!u.hasOwnProperty(Qe)&&wt(n,r,Qe,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(Mh(r)){for(var It in o)xe=o[It],o.hasOwnProperty(It)&&xe!==void 0&&!u.hasOwnProperty(It)&&by(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||by(n,r,Fe,xe,u,we);return}}for(var ge in o)xe=o[ge],o.hasOwnProperty(ge)&&xe!=null&&!u.hasOwnProperty(ge)&&wt(n,r,ge,null,u,xe);for(Re in u)xe=u[Re],we=o[Re],!u.hasOwnProperty(Re)||xe===we||xe==null&&we==null||wt(n,r,Re,xe,u,we)}var vy=null,xy=null;function Lf(n){return n.nodeType===9?n:n.ownerDocument}function Ww(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 e2(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 Ey(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 wy=null;function u8(){var n=window.event;return n&&n.type==="popstate"?n===wy?!1:(wy=n,!0):(wy=null,!1)}var t2=typeof setTimeout=="function"?setTimeout:void 0,c8=typeof clearTimeout=="function"?clearTimeout:void 0,n2=typeof Promise=="function"?Promise:void 0,l8=typeof queueMicrotask=="function"?queueMicrotask:typeof n2<"u"?function(n){return n2.resolve(null).then(n).catch(f8)}:t2;function f8(n){setTimeout(function(){throw n})}function va(n){return n==="head"}function r2(n,r){var o=r,u=0,d=0;do{var p=o.nextSibling;if(n.removeChild(o),p&&p.nodeType===8)if(o=p.data,o==="/$"){if(0<u&&8>u){o=u;var T=n.ownerDocument;if(o&1&&sc(T.documentElement),o&2&&sc(T.body),o&4)for(o=T.head,sc(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(p),yc(r);return}d--}else o==="$"||o==="$?"||o==="$!"?d++:u=o.charCodeAt(0)-48;else u=0;o=p}while(o);yc(r)}function Iy(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":Iy(o),ra(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}n.removeChild(o)}}function d8(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(p=n.getAttribute("rel"),p==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(p!==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(p=n.getAttribute("src"),(p!==(d.src==null?null:d.src)||n.getAttribute("type")!==(d.type==null?null:d.type)||n.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&p&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(r==="input"&&n.type==="hidden"){var p=d.name==null?null:""+d.name;if(d.type==="hidden"&&n.getAttribute("name")===p)return n}else return n;if(n=Hr(n.nextSibling),n===null)break}return null}function h8(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 Sy(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState==="complete"}function p8(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 Cy=null;function i2(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 a2(n,r,o){switch(r=Lf(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 sc(n){for(var r=n.attributes;r.length;)n.removeAttributeNode(r[0]);ra(n)}var Fr=new Map,o2=new Set;function qf(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var Ui=te.d;te.d={f:y8,r:g8,D:m8,C:A8,L:b8,m:v8,X:E8,S:x8,M:w8};function y8(){var n=Ui.f(),r=Tf();return n||r}function g8(n){var r=Pr(n);r!==null&&r.tag===5&&r.type==="form"?CE(r):Ui.r(n)}var Rs=typeof document>"u"?null:document;function s2(n,r,o){var u=Rs;if(u&&typeof r=="string"&&r){var d=xr(r);d='link[rel="'+n+'"][href="'+d+'"]',typeof o=="string"&&(d+='[crossorigin="'+o+'"]'),o2.has(d)||(o2.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 m8(n){Ui.D(n),s2("dns-prefetch",n,null)}function A8(n,r){Ui.C(n,r),s2("preconnect",n,r)}function b8(n,r,o){Ui.L(n,r,o);var u=Rs;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 p=d;switch(r){case"style":p=Ts(n);break;case"script":p=_s(n)}Fr.has(p)||(n=A({rel:"preload",href:r==="image"&&o&&o.imageSrcSet?void 0:n,as:r},o),Fr.set(p,n),u.querySelector(d)!==null||r==="style"&&u.querySelector(uc(p))||r==="script"&&u.querySelector(cc(p))||(r=u.createElement("link"),xn(r,"link",n),Nt(r),u.head.appendChild(r)))}}function v8(n,r){Ui.m(n,r);var o=Rs;if(o&&n){var u=r&&typeof r.as=="string"?r.as:"script",d='link[rel="modulepreload"][as="'+xr(u)+'"][href="'+xr(n)+'"]',p=d;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=_s(n)}if(!Fr.has(p)&&(n=A({rel:"modulepreload",href:n},r),Fr.set(p,n),o.querySelector(d)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(cc(p)))return}u=o.createElement("link"),xn(u,"link",n),Nt(u),o.head.appendChild(u)}}}function x8(n,r,o){Ui.S(n,r,o);var u=Rs;if(u&&n){var d=Nr(u).hoistableStyles,p=Ts(n);r=r||"default";var T=d.get(p);if(!T){var L={loading:0,preload:null};if(T=u.querySelector(uc(p)))L.loading=5;else{n=A({rel:"stylesheet",href:n,"data-precedence":r},o),(o=Fr.get(p))&&Oy(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,$f(T,r,u)}T={type:"stylesheet",instance:T,count:1,state:L},d.set(p,T)}}}function E8(n,r){Ui.X(n,r);var o=Rs;if(o&&n){var u=Nr(o).hoistableScripts,d=_s(n),p=u.get(d);p||(p=o.querySelector(cc(d)),p||(n=A({src:n,async:!0},r),(r=Fr.get(d))&&Fy(n,r),p=o.createElement("script"),Nt(p),xn(p,"link",n),o.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},u.set(d,p))}}function w8(n,r){Ui.M(n,r);var o=Rs;if(o&&n){var u=Nr(o).hoistableScripts,d=_s(n),p=u.get(d);p||(p=o.querySelector(cc(d)),p||(n=A({src:n,async:!0,type:"module"},r),(r=Fr.get(d))&&Fy(n,r),p=o.createElement("script"),Nt(p),xn(p,"link",n),o.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},u.set(d,p))}}function u2(n,r,o,u){var d=(d=P.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=Ts(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=Ts(o.href);var p=Nr(d).hoistableStyles,T=p.get(n);if(T||(d=d.ownerDocument||d,T={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(n,T),(p=d.querySelector(uc(n)))&&!p._p&&(T.instance=p,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),p||I8(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=_s(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 Ts(n){return'href="'+xr(n)+'"'}function uc(n){return'link[rel="stylesheet"]['+n+"]"}function c2(n){return A({},n,{"data-precedence":n.precedence,precedence:null})}function I8(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 _s(n){return'[src="'+xr(n)+'"]'}function cc(n){return"script[async]"+n}function l2(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=A({},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),$f(u,o.precedence,n),r.instance=u;case"stylesheet":d=Ts(o.href);var p=n.querySelector(uc(d));if(p)return r.state.loading|=4,r.instance=p,Nt(p),p;u=c2(o),(d=Fr.get(d))&&Oy(u,d),p=(n.ownerDocument||n).createElement("link"),Nt(p);var T=p;return T._p=new Promise(function(L,ae){T.onload=L,T.onerror=ae}),xn(p,"link",u),r.state.loading|=4,$f(p,o.precedence,n),r.instance=p;case"script":return p=_s(o.src),(d=n.querySelector(cc(p)))?(r.instance=d,Nt(d),d):(u=o,(d=Fr.get(p))&&(u=A({},o),Fy(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,$f(u,o.precedence,n));return r.instance}function $f(n,r,o){for(var u=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=u.length?u[u.length-1]:null,p=d,T=0;T<u.length;T++){var L=u[T];if(L.dataset.precedence===r)p=L;else if(p!==d)break}p?p.parentNode.insertBefore(n,p.nextSibling):(r=o.nodeType===9?o.head:o,r.insertBefore(n,r.firstChild))}function Oy(n,r){n.crossOrigin==null&&(n.crossOrigin=r.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=r.referrerPolicy),n.title==null&&(n.title=r.title)}function Fy(n,r){n.crossOrigin==null&&(n.crossOrigin=r.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=r.referrerPolicy),n.integrity==null&&(n.integrity=r.integrity)}var Hf=null;function f2(n,r,o){if(Hf===null){var u=new Map,d=Hf=new Map;d.set(o,u)}else d=Hf,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 p=o[d];if(!(p[ti]||p[kt]||n==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var T=p.getAttribute(r)||"";T=n+T;var L=u.get(T);L?L.push(p):u.set(T,[p])}}return u}function d2(n,r,o){n=n.ownerDocument||n,n.head.insertBefore(o,r==="title"?n.querySelector("head > title"):null)}function S8(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 h2(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}var lc=null;function C8(){}function O8(n,r,o){if(lc===null)throw Error(a(475));var u=lc;if(r.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var d=Ts(o.href),p=n.querySelector(uc(d));if(p){n=p._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(u.count++,u=zf.bind(u),n.then(u,u)),r.state.loading|=4,r.instance=p,Nt(p);return}p=n.ownerDocument||n,o=c2(o),(d=Fr.get(d))&&Oy(o,d),p=p.createElement("link"),Nt(p);var T=p;T._p=new Promise(function(L,ae){T.onload=L,T.onerror=ae}),xn(p,"link",o),r.instance=p}u.stylesheets===null&&(u.stylesheets=new Map),u.stylesheets.set(r,n),(n=r.state.preload)&&(r.state.loading&3)===0&&(u.count++,r=zf.bind(u),n.addEventListener("load",r),n.addEventListener("error",r))}}function F8(){if(lc===null)throw Error(a(475));var n=lc;return n.stylesheets&&n.count===0&&By(n,n.stylesheets),0<n.count?function(r){var o=setTimeout(function(){if(n.stylesheets&&By(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 zf(){if(this.count--,this.count===0){if(this.stylesheets)By(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var Gf=null;function By(n,r){n.stylesheets=null,n.unsuspend!==null&&(n.count++,Gf=new Map,r.forEach(B8,n),Gf=null,zf.call(n))}function B8(n,r){if(!(r.state.loading&4)){var o=Gf.get(n);if(o)var u=o.get(null);else{o=new Map,Gf.set(n,o);for(var d=n.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<d.length;p++){var T=d[p];(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"),p=o.get(T)||u,p===u&&o.set(null,d),o.set(T,d),this.count++,u=zf.bind(this),d.addEventListener("load",u),d.addEventListener("error",u),p?p.parentNode.insertBefore(d,p.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(d,n.firstChild)),r.state.loading|=4}}var fc={$$typeof:j,Provider:null,Consumer:null,_currentValue:le,_currentValue2:le,_threadCount:0};function R8(n,r,o,u,d,p,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=Tt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Tt(0),this.hiddenUpdates=Tt(null),this.identifierPrefix=u,this.onUncaughtError=d,this.onCaughtError=p,this.onRecoverableError=T,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=L,this.incompleteTransitions=new Map}function p2(n,r,o,u,d,p,T,L,ae,ve,Fe,Re){return n=new R8(n,r,o,T,L,ae,ve,Re),r=1,p===!0&&(r|=24),p=ir(3,null,null,r),n.current=p,p.stateNode=n,r=lp(),r.refCount++,n.pooledCache=r,r.refCount++,p.memoizedState={element:u,isDehydrated:o,cache:r},pp(p),n}function y2(n){return n?(n=cs,n):cs}function g2(n,r,o,u,d,p){d=y2(d),u.context===null?u.context=d:u.pendingContext=d,u=sa(r),u.payload={element:o},p=p===void 0?null:p,p!==null&&(u.callback=p),o=ua(n,u,r),o!==null&&(cr(o,n,r),$u(o,n,r))}function m2(n,r){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var o=n.retryLane;n.retryLane=o!==0&&o<r?o:r}}function Ry(n,r){m2(n,r),(n=n.alternate)&&m2(n,r)}function A2(n){if(n.tag===13){var r=us(n,67108864);r!==null&&cr(r,n,67108864),Ry(n,67108864)}}var Qf=!0;function T8(n,r,o,u){var d=_.T;_.T=null;var p=te.p;try{te.p=2,Ty(n,r,o,u)}finally{te.p=p,_.T=d}}function _8(n,r,o,u){var d=_.T;_.T=null;var p=te.p;try{te.p=8,Ty(n,r,o,u)}finally{te.p=p,_.T=d}}function Ty(n,r,o,u){if(Qf){var d=_y(u);if(d===null)Ay(n,r,u,kf,o),v2(n,u);else if(U8(d,n,r,o,u))u.stopPropagation();else if(v2(n,u),r&4&&-1<D8.indexOf(n)){for(;d!==null;){var p=Pr(d);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var T=ut(p.pendingLanes);if(T!==0){var L=p;for(L.pendingLanes|=2,L.entangledLanes|=2;T;){var ae=1<<31-Ne(T);L.entanglements[1]|=ae,T&=~ae}si(p),(At&6)===0&&(Bf=g()+500,ic(0))}}break;case 13:L=us(p,2),L!==null&&cr(L,p,2),Tf(),Ry(p,2)}if(p=_y(u),p===null&&Ay(n,r,u,kf,o),p===d)break;d=p}d!==null&&u.stopPropagation()}else Ay(n,r,u,null,o)}}function _y(n){return n=Ph(n),Dy(n)}var kf=null;function Dy(n){if(kf=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 kf=n,null}function b2(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(b()){case S:return 2;case X:return 8;case Ae:case Se:return 32;case Me:return 268435456;default:return 32}default:return 32}}var Uy=!1,xa=null,Ea=null,wa=null,dc=new Map,hc=new Map,Ia=[],D8="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 v2(n,r){switch(n){case"focusin":case"focusout":xa=null;break;case"dragenter":case"dragleave":Ea=null;break;case"mouseover":case"mouseout":wa=null;break;case"pointerover":case"pointerout":dc.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":hc.delete(r.pointerId)}}function pc(n,r,o,u,d,p){return n===null||n.nativeEvent!==p?(n={blockedOn:r,domEventName:o,eventSystemFlags:u,nativeEvent:p,targetContainers:[d]},r!==null&&(r=Pr(r),r!==null&&A2(r)),n):(n.eventSystemFlags|=u,r=n.targetContainers,d!==null&&r.indexOf(d)===-1&&r.push(d),n)}function U8(n,r,o,u,d){switch(r){case"focusin":return xa=pc(xa,n,r,o,u,d),!0;case"dragenter":return Ea=pc(Ea,n,r,o,u,d),!0;case"mouseover":return wa=pc(wa,n,r,o,u,d),!0;case"pointerover":var p=d.pointerId;return dc.set(p,pc(dc.get(p)||null,n,r,o,u,d)),!0;case"gotpointercapture":return p=d.pointerId,hc.set(p,pc(hc.get(p)||null,n,r,o,u,d)),!0}return!1}function x2(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,Ko(n.priority,function(){if(o.tag===13){var u=ur();u=_t(u);var d=us(o,u);d!==null&&cr(d,o,u),Ry(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 Vf(n){if(n.blockedOn!==null)return!1;for(var r=n.targetContainers;0<r.length;){var o=_y(n.nativeEvent);if(o===null){o=n.nativeEvent;var u=new o.constructor(o.type,o);jh=u,o.target.dispatchEvent(u),jh=null}else return r=Pr(o),r!==null&&A2(r),n.blockedOn=o,!1;r.shift()}return!0}function E2(n,r,o){Vf(n)&&o.delete(r)}function M8(){Uy=!1,xa!==null&&Vf(xa)&&(xa=null),Ea!==null&&Vf(Ea)&&(Ea=null),wa!==null&&Vf(wa)&&(wa=null),dc.forEach(E2),hc.forEach(E2)}function Kf(n,r){n.blockedOn===r&&(n.blockedOn=null,Uy||(Uy=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,M8)))}var Yf=null;function w2(n){Yf!==n&&(Yf=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Yf===n&&(Yf=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(Dy(u||o)===null)continue;break}var p=Pr(o);p!==null&&(n.splice(r,3),r-=3,Dp(p,{pending:!0,data:d,method:o.method,action:u},u,d))}}))}function yc(n){function r(ae){return Kf(ae,n)}xa!==null&&Kf(xa,n),Ea!==null&&Kf(Ea,n),wa!==null&&Kf(wa,n),dc.forEach(r),hc.forEach(r);for(var o=0;o<Ia.length;o++){var u=Ia[o];u.blockedOn===n&&(u.blockedOn=null)}for(;0<Ia.length&&(o=Ia[0],o.blockedOn===null);)x2(o),o.blockedOn===null&&Ia.shift();if(o=(n.ownerDocument||n).$$reactFormReplay,o!=null)for(u=0;u<o.length;u+=3){var d=o[u],p=o[u+1],T=d[sn]||null;if(typeof p=="function")T||w2(o);else if(T){var L=null;if(p&&p.hasAttribute("formAction")){if(d=p,T=p[sn]||null)L=T.formAction;else if(Dy(d)!==null)continue}else L=T.action;typeof L=="function"?o[u+1]=L:(o.splice(u,3),u-=3),w2(o)}}}function My(n){this._internalRoot=n}Xf.prototype.render=My.prototype.render=function(n){var r=this._internalRoot;if(r===null)throw Error(a(409));var o=r.current,u=ur();g2(o,u,n,r,null,null)},Xf.prototype.unmount=My.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var r=n.containerInfo;g2(n.current,2,null,n,null,null),Tf(),r[Mr]=null}};function Xf(n){this._internalRoot=n}Xf.prototype.unstable_scheduleHydration=function(n){if(n){var r=Ga();n={blockedOn:null,target:n,priority:r};for(var o=0;o<Ia.length&&r!==0&&r<Ia[o].priority;o++);Ia.splice(o,0,n),o===0&&x2(n)}};var I2=t.version;if(I2!=="19.1.1")throw Error(a(527,I2,"19.1.1"));te.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=y(r),n=n!==null?h(n):null,n=n===null?null:n.stateNode,n};var j8={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Zf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zf.isDisabled&&Zf.supportsFiber)try{Ee=Zf.inject(j8),Oe=Zf}catch{}}return Ac.createRoot=function(n,r){if(!s(n))throw Error(a(299));var o=!1,u="",d=qE,p=$E,T=HE,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&&(p=r.onCaughtError),r.onRecoverableError!==void 0&&(T=r.onRecoverableError),r.unstable_transitionCallbacks!==void 0&&(L=r.unstable_transitionCallbacks)),r=p2(n,1,!1,null,null,o,u,d,p,T,L,null),n[Mr]=r.current,my(n),new My(r)},Ac.hydrateRoot=function(n,r,o){if(!s(n))throw Error(a(299));var u=!1,d="",p=qE,T=$E,L=HE,ae=null,ve=null;return o!=null&&(o.unstable_strictMode===!0&&(u=!0),o.identifierPrefix!==void 0&&(d=o.identifierPrefix),o.onUncaughtError!==void 0&&(p=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=p2(n,1,!0,r,o??null,u,d,p,T,L,ae,ve),r.context=y2(null),o=r.current,u=ur(),u=_t(u),d=sa(u),d.callback=null,ua(o,d,u),o=u,r.current.lanes=o,Bt(r,o),si(r),n[Mr]=r.current,my(n),new Xf(r)},Ac.version="19.1.1",Ac}var L2;function Z8(){if(L2)return qy.exports;L2=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=X8(),qy.exports}var J8=Z8();function ed({isOpen:e,onClose:t,title:i,children:a,className:s,url:c}){De.useEffect(()=>{if(e){const f=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=f}}},[e]);const l=()=>{c&&(window.open(c,"_blank","noopener,noreferrer"),t())};return e?ee.jsx("div",{className:"modal-overlay",onClick:t,children:ee.jsxs("div",{className:`modal-content ${s}`,onClick:f=>f.stopPropagation(),children:[ee.jsxs("div",{className:"modal-header",children:[ee.jsx("h2",{className:"modal-title",children:i}),ee.jsxs("div",{className:"modal-header-actions",children:[c&&ee.jsx("button",{className:"modal-open-new-window",onClick:l,children:"🗗"}),ee.jsx("button",{className:"modal-close",onClick:t,children:"×"})]})]}),ee.jsx("div",{className:"modal-body",children:a})]})}):null}const Ds=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function Pd(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function Pc(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function Vi(e,...t){if(!Pd(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 DB(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");Pc(e.outputLen),Pc(e.blockLen)}function Qs(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 UB(e,t){Vi(e);const i=t.outputLen;if(e.length<i)throw new Error("digestInto() expects output buffer of length at least "+i)}function W8(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function ks(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Gy(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function ui(e,t){return e<<32-t|e>>>t}const e4=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function t4(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function n4(e){for(let t=0;t<e.length;t++)e[t]=t4(e[t]);return e}const q2=e4?e=>e:n4,MB=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",r4=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Ls(e){if(Vi(e),MB)return e.toHex();let t="";for(let i=0;i<e.length;i++)t+=r4[e[i]];return t}const ji={_0:48,_9:57,A:65,F:70,a:97,f:102};function $2(e){if(e>=ji._0&&e<=ji._9)return e-ji._0;if(e>=ji.A&&e<=ji.F)return e-(ji.A-10);if(e>=ji.a&&e<=ji.f)return e-(ji.a-10)}function wd(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(MB)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=$2(e.charCodeAt(c)),f=$2(e.charCodeAt(c+1));if(l===void 0||f===void 0){const y=e[c]+e[c+1];throw new Error('hex string expected, got non-hex character "'+y+'" at index '+c)}a[s]=l*16+f}return a}function i4(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function Nd(e){return typeof e=="string"&&(e=i4(e)),Vi(e),e}function Ra(...e){let t=0;for(let a=0;a<e.length;a++){const s=e[a];Vi(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 d1=class{};function jB(e){const t=a=>e().update(Nd(a)).digest(),i=e();return t.outputLen=i.outputLen,t.blockLen=i.blockLen,t.create=()=>e(),t}function PB(e=32){if(Ds&&typeof Ds.getRandomValues=="function")return Ds.getRandomValues(new Uint8Array(e));if(Ds&&typeof Ds.randomBytes=="function")return Uint8Array.from(Ds.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const h1=BigInt(0),Tb=BigInt(1);function Id(e,t=""){if(typeof e!="boolean"){const i=t&&`"${t}"`;throw new Error(i+"expected boolean, got type="+typeof e)}return e}function Eo(e,t,i=""){const a=Pd(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}`:"",y=a?`length=${s}`:`type=${typeof e}`;throw new Error(l+"expected Uint8Array"+f+", got "+y)}return e}function td(e){const t=e.toString(16);return t.length&1?"0"+t:t}function NB(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?h1:BigInt("0x"+e)}function Ld(e){return NB(Ls(e))}function LB(e){return Vi(e),NB(Ls(Uint8Array.from(e).reverse()))}function p1(e,t){return wd(e.toString(16).padStart(t*2,"0"))}function qB(e,t){return p1(e,t).reverse()}function Vn(e,t,i){let a;if(typeof t=="string")try{a=wd(t)}catch(s){throw new Error(e+" must be hex string or Uint8Array, cause: "+s)}else if(Pd(t))a=Uint8Array.from(t);else throw new Error(e+" must be hex string or Uint8Array");return a.length,a}const Qy=e=>typeof e=="bigint"&&h1<=e;function a4(e,t,i){return Qy(e)&&Qy(t)&&Qy(i)&&t<=e&&e<i}function o4(e,t,i,a){if(!a4(t,i,a))throw new Error("expected valid "+e+": "+i+" <= n < "+a+", got "+t)}function $B(e){let t;for(t=0;e>h1;e>>=Tb,t+=1);return t}const gl=e=>(Tb<<BigInt(e))-Tb;function s4(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 y=()=>{c.fill(1),l.fill(0),f=0},h=(...I)=>i(l,c,...I),A=(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 O=[];for(;I<t;){c=h();const M=c.slice();O.push(M),I+=c.length}return Ra(...O)};return(I,O)=>{y(),A(I);let M;for(;!(M=O(v()));)A();return y(),M}}function y1(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 y=typeof f;if(y!==c||f===null)throw new Error(`param "${s}" is invalid: expected ${c}, got ${y}`)}Object.entries(t).forEach(([s,c])=>a(s,c,!1)),Object.entries(i).forEach(([s,c])=>a(s,c,!0))}function H2(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),wo=BigInt(2),HB=BigInt(3),zB=BigInt(4),GB=BigInt(5),u4=BigInt(7),QB=BigInt(8),c4=BigInt(9),kB=BigInt(16);function Gr(e,t){const i=e%t;return i>=Kn?i:t+i}function Br(e,t,i){let a=e;for(;t-- >Kn;)a*=a,a%=i;return a}function z2(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=Gr(e,t),a=t,s=Kn,c=qn;for(;i!==Kn;){const f=a/i,y=a%i,h=s-c*f;a=i,i=y,s=c,c=h}if(a!==qn)throw new Error("invert: does not exist");return Gr(s,t)}function g1(e,t,i){if(!e.eql(e.sqr(t),i))throw new Error("Cannot find square root")}function VB(e,t){const i=(e.ORDER+qn)/zB,a=e.pow(t,i);return g1(e,a,t),a}function l4(e,t){const i=(e.ORDER-GB)/QB,a=e.mul(t,wo),s=e.pow(a,i),c=e.mul(t,s),l=e.mul(e.mul(c,wo),s),f=e.mul(c,e.sub(l,e.ONE));return g1(e,f,t),f}function f4(e){const t=ml(e),i=KB(e),a=i(t,t.neg(t.ONE)),s=i(t,a),c=i(t,t.neg(a)),l=(e+u4)/kB;return(f,y)=>{let h=f.pow(y,l),A=f.mul(h,a);const v=f.mul(h,s),m=f.mul(h,c),I=f.eql(f.sqr(A),y),O=f.eql(f.sqr(v),y);h=f.cmov(h,A,I),A=f.cmov(m,v,O);const M=f.eql(f.sqr(A),y),B=f.cmov(h,A,M);return g1(f,B,y),B}}function KB(e){if(e<HB)throw new Error("sqrt is not defined for small field");let t=e-qn,i=0;for(;t%wo===Kn;)t/=wo,i++;let a=wo;const s=ml(e);for(;G2(s,a)===1;)if(a++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(i===1)return VB;let c=s.pow(a,t);const l=(t+qn)/wo;return function(y,h){if(y.is0(h))return h;if(G2(y,h)!==1)throw new Error("Cannot find square root");let A=i,v=y.mul(y.ONE,c),m=y.pow(h,t),I=y.pow(h,l);for(;!y.eql(m,y.ONE);){if(y.is0(m))return y.ZERO;let O=1,M=y.sqr(m);for(;!y.eql(M,y.ONE);)if(O++,M=y.sqr(M),O===A)throw new Error("Cannot find square root");const B=qn<<BigInt(A-O-1),R=y.pow(v,B);A=O,v=y.sqr(R),m=y.mul(m,v),I=y.mul(I,R)}return I}}function d4(e){return e%zB===HB?VB:e%QB===GB?l4:e%kB===c4?f4(e):KB(e)}const h4=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function p4(e){const t={ORDER:"bigint",MASK:"bigint",BYTES:"number",BITS:"number"},i=h4.reduce((a,s)=>(a[s]="function",a),t);return y1(e,i),e}function y4(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 YB(e,t,i=!1){const a=new Array(t.length).fill(i?e.ZERO:void 0),s=t.reduce((l,f,y)=>e.is0(f)?l:(a[y]=l,e.mul(l,f)),e.ONE),c=e.inv(s);return t.reduceRight((l,f,y)=>e.is0(f)?l:(a[y]=e.mul(l,a[y]),e.mul(l,f)),c),a}function G2(e,t){const i=(e.ORDER-qn)/wo,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 XB(e,t){t!==void 0&&Pc(t);const i=t!==void 0?t:e.toString(2).length,a=Math.ceil(i/8);return{nBitLength:i,nByteLength:a}}function ml(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 m=t;m.BITS&&(s=m.BITS),m.sqrt&&(c=m.sqrt),typeof m.isLE=="boolean"&&(i=m.isLE),typeof m.modFromBytes=="boolean"&&(l=m.modFromBytes),f=m.allowedLengths}else typeof t=="number"&&(s=t),a.sqrt&&(c=a.sqrt);const{nBitLength:y,nByteLength:h}=XB(e,s);if(h>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let A;const v=Object.freeze({ORDER:e,isLE:i,BITS:y,BYTES:h,MASK:gl(y),ZERO:Kn,ONE:qn,allowedLengths:f,create:m=>Gr(m,e),isValid:m=>{if(typeof m!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof m);return Kn<=m&&m<e},is0:m=>m===Kn,isValidNot0:m=>!v.is0(m)&&v.isValid(m),isOdd:m=>(m&qn)===qn,neg:m=>Gr(-m,e),eql:(m,I)=>m===I,sqr:m=>Gr(m*m,e),add:(m,I)=>Gr(m+I,e),sub:(m,I)=>Gr(m-I,e),mul:(m,I)=>Gr(m*I,e),pow:(m,I)=>y4(v,m,I),div:(m,I)=>Gr(m*z2(I,e),e),sqrN:m=>m*m,addN:(m,I)=>m+I,subN:(m,I)=>m-I,mulN:(m,I)=>m*I,inv:m=>z2(m,e),sqrt:c||(m=>(A||(A=d4(e)),A(v,m))),toBytes:m=>i?qB(m,h):p1(m,h),fromBytes:(m,I=!0)=>{if(f){if(!f.includes(m.length)||m.length>h)throw new Error("Field.fromBytes: expected "+f+" bytes, got "+m.length);const M=new Uint8Array(h);M.set(m,i?0:M.length-m.length),m=M}if(m.length!==h)throw new Error("Field.fromBytes: expected "+h+" bytes, got "+m.length);let O=i?LB(m):Ld(m);if(l&&(O=Gr(O,e)),!I&&!v.isValid(O))throw new Error("invalid field element: outside of range 0..ORDER");return O},invertBatch:m=>YB(v,m),cmov:(m,I,O)=>O?I:m});return Object.freeze(v)}function ZB(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 JB(e){const t=ZB(e);return t+Math.ceil(t/2)}function g4(e,t,i=!1){const a=e.length,s=ZB(t),c=JB(t);if(a<16||a<c||a>1024)throw new Error("expected "+c+"-1024 bytes of input, got "+a);const l=i?LB(e):Ld(e),f=Gr(l,t-qn)+qn;return i?qB(f,s):p1(f,s)}function m4(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),y=a?4:0,h=a?0:4;e.setUint32(t+y,l,a),e.setUint32(t+h,f,a)}function A4(e,t,i){return e&t^~e&i}function b4(e,t,i){return e&t^e&i^t&i}class v4 extends d1{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=Gy(this.buffer)}update(t){Qs(this),t=Nd(t),Vi(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 y=Gy(t);for(;s<=c-l;l+=s)this.process(y,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){Qs(this),UB(t,this),this.finished=!0;const{buffer:i,view:a,blockLen:s,isLE:c}=this;let{pos:l}=this;i[l++]=128,ks(this.buffer.subarray(l)),this.padOffset>s-l&&(this.process(a,0),l=0);for(let v=l;v<s;v++)i[v]=0;m4(a,s-8,BigInt(this.length*8),c),this.process(a,0);const f=Gy(t),y=this.outputLen;if(y%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const h=y/4,A=this.get();if(h>A.length)throw new Error("_sha2: outputLen bigger than state");for(let v=0;v<h;v++)f.setUint32(4*v,A[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 Oa=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),nd=BigInt(2**32-1),Q2=BigInt(32);function x4(e,t=!1){return t?{h:Number(e&nd),l:Number(e>>Q2&nd)}:{h:Number(e>>Q2&nd)|0,l:Number(e&nd)|0}}function E4(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}=x4(e[c],t);[a[c],s[c]]=[l,f]}return[a,s]}const w4=(e,t,i)=>e<<i|t>>>32-i,I4=(e,t,i)=>t<<i|e>>>32-i,S4=(e,t,i)=>t<<i-32|e>>>64-i,C4=(e,t,i)=>e<<i-32|t>>>64-i,O4=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]),Fa=new Uint32Array(64);class F4 extends v4{constructor(t=32){super(64,t,8,!1),this.A=Oa[0]|0,this.B=Oa[1]|0,this.C=Oa[2]|0,this.D=Oa[3]|0,this.E=Oa[4]|0,this.F=Oa[5]|0,this.G=Oa[6]|0,this.H=Oa[7]|0}get(){const{A:t,B:i,C:a,D:s,E:c,F:l,G:f,H:y}=this;return[t,i,a,s,c,l,f,y]}set(t,i,a,s,c,l,f,y){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=y|0}process(t,i){for(let v=0;v<16;v++,i+=4)Fa[v]=t.getUint32(i,!1);for(let v=16;v<64;v++){const m=Fa[v-15],I=Fa[v-2],O=ui(m,7)^ui(m,18)^m>>>3,M=ui(I,17)^ui(I,19)^I>>>10;Fa[v]=M+Fa[v-7]+O+Fa[v-16]|0}let{A:a,B:s,C:c,D:l,E:f,F:y,G:h,H:A}=this;for(let v=0;v<64;v++){const m=ui(f,6)^ui(f,11)^ui(f,25),I=A+m+A4(f,y,h)+O4[v]+Fa[v]|0,M=(ui(a,2)^ui(a,13)^ui(a,22))+b4(a,s,c)|0;A=h,h=y,y=f,f=l+I|0,l=c,c=s,s=a,a=I+M|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,y=y+this.F|0,h=h+this.G|0,A=A+this.H|0,this.set(a,s,c,l,f,y,h,A)}roundClean(){ks(Fa)}destroy(){this.set(0,0,0,0,0,0,0,0),ks(this.buffer)}}const WB=jB(()=>new F4);class eR extends d1{constructor(t,i){super(),this.finished=!1,this.destroyed=!1,DB(t);const a=Nd(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),ks(c)}update(t){return Qs(this),this.iHash.update(t),this}digestInto(t){Qs(this),Vi(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 tR=(e,t,i)=>new eR(e,t).update(i).digest();tR.create=(e,t)=>new eR(e,t);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Vs=BigInt(0),Io=BigInt(1);function Sd(e,t){const i=t.negate();return e?i:t}function ky(e,t){const i=YB(e.Fp,t.map(a=>a.Z));return t.map((a,s)=>e.fromAffine(a.toAffine(i[s])))}function nR(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function Vy(e,t){nR(e,t);const i=Math.ceil(t/e)+1,a=2**(e-1),s=2**e,c=gl(e),l=BigInt(e);return{windows:i,windowSize:a,mask:c,maxNumber:s,shiftBy:l}}function k2(e,t,i){const{windowSize:a,mask:s,maxNumber:c,shiftBy:l}=i;let f=Number(e&s),y=e>>l;f>a&&(f-=c,y+=Io);const h=t*a,A=h+Math.abs(f)-1,v=f===0,m=f<0,I=t%2!==0;return{nextN:y,offset:A,isZero:v,isNeg:m,isNegF:I,offsetF:h}}function B4(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 R4(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 Ky=new WeakMap,rR=new WeakMap;function Yy(e){return rR.get(e)||1}function V2(e){if(e!==Vs)throw new Error("invalid wNAF")}class T4{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>Vs;)i&Io&&(a=a.add(s)),s=s.double(),i>>=Io;return a}precomputeWindow(t,i){const{windows:a,windowSize:s}=Vy(i,this.bits),c=[];let l=t,f=l;for(let y=0;y<a;y++){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=Vy(t,this.bits);for(let f=0;f<l.windows;f++){const{nextN:y,offset:h,isZero:A,isNeg:v,isNegF:m,offsetF:I}=k2(a,f,l);a=y,A?c=c.add(Sd(m,i[I])):s=s.add(Sd(v,i[h]))}return V2(a),{p:s,f:c}}wNAFUnsafe(t,i,a,s=this.ZERO){const c=Vy(t,this.bits);for(let l=0;l<c.windows&&a!==Vs;l++){const{nextN:f,offset:y,isZero:h,isNeg:A}=k2(a,l,c);if(a=f,!h){const v=i[y];s=s.add(A?v.negate():v)}}return V2(a),s}getPrecomputes(t,i,a){let s=Ky.get(i);return s||(s=this.precomputeWindow(i,t),t!==1&&(typeof a=="function"&&(s=a(s)),Ky.set(i,s))),s}cached(t,i,a){const s=Yy(t);return this.wNAF(s,this.getPrecomputes(s,t,a),i)}unsafe(t,i,a,s){const c=Yy(t);return c===1?this._unsafeLadder(t,i,s):this.wNAFUnsafe(c,this.getPrecomputes(c,t,a),i,s)}createCache(t,i){nR(i,this.bits),rR.set(t,i),Ky.delete(t)}hasCache(t){return Yy(t)!==1}}function _4(e,t,i,a){let s=t,c=e.ZERO,l=e.ZERO;for(;i>Vs||a>Vs;)i&Io&&(c=c.add(s)),a&Io&&(l=l.add(s)),s=s.double(),i>>=Io,a>>=Io;return{p1:c,p2:l}}function D4(e,t,i,a){B4(i,e),R4(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=$B(BigInt(s));let y=1;f>12?y=f-3:f>4?y=f-2:f>0&&(y=2);const h=gl(y),A=new Array(Number(h)+1).fill(l),v=Math.floor((t.BITS-1)/y)*y;let m=l;for(let I=v;I>=0;I-=y){A.fill(l);for(let M=0;M<c;M++){const B=a[M],R=Number(B>>BigInt(I)&h);A[R]=A[R].add(i[M])}let O=l;for(let M=A.length-1,B=l;M>0;M--)B=B.add(A[M]),O=O.add(B);if(m=m.add(O),I!==0)for(let M=0;M<y;M++)m=m.double()}return m}function K2(e,t,i){if(t){if(t.ORDER!==e)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return p4(t),t}else return ml(e,{isLE:i})}function U4(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 y of["p","n","h"]){const h=t[y];if(!(typeof h=="bigint"&&h>Vs))throw new Error(`CURVE.${y} must be positive bigint`)}const s=K2(t.p,i.Fp,a),c=K2(t.n,i.Fn,a),f=["Gx","Gy","a","b"];for(const y of f)if(!s.isValid(t[y]))throw new Error(`CURVE.${y} 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 Y2=(e,t)=>(e+(e>=0?t:-t)/iR)/t;function M4(e,t,i){const[[a,s],[c,l]]=t,f=Y2(l*e,i),y=Y2(-s*e,i);let h=e-f*a-y*c,A=-f*s-y*l;const v=h<zi,m=A<zi;v&&(h=-h),m&&(A=-A);const I=gl(Math.ceil($B(i)/2))+qs;if(h<zi||h>=I||A<zi||A>=I)throw new Error("splitScalar (endomorphism): failed, k="+e);return{k1neg:v,k1:h,k2neg:m,k2:A}}function _b(e){if(!["compact","recovered","der"].includes(e))throw new Error('Signature format must be "compact", "recovered", or "der"');return e}function Xy(e,t){const i={};for(let a of Object.keys(t))i[a]=e[a]===void 0?t[a]:e[a];return Id(i.lowS,"lowS"),Id(i.prehash,"prehash"),i.format!==void 0&&_b(i.format),i}class j4 extends Error{constructor(t=""){super(t)}}const qi={Err:j4,_tlv:{encode:(e,t)=>{const{Err:i}=qi;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=td(a);if(s.length/2&128)throw new i("tlv.encode: long form length too big");const c=a>127?td(s.length/2|128):"";return td(e)+c+s+t},decode(e,t){const{Err:i}=qi;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 y=s&127;if(!y)throw new i("tlv.decode(long): indefinite length not supported");if(y>4)throw new i("tlv.decode(long): byte length is too big");const h=t.subarray(a,a+y);if(h.length!==y)throw new i("tlv.decode: length bytes not complete");if(h[0]===0)throw new i("tlv.decode(long): zero leftmost byte");for(const A of h)l=l<<8|A;if(a+=y,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}=qi;if(e<zi)throw new t("integer: negative integers are not allowed");let i=td(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}=qi;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 Ld(e)}},toSig(e){const{Err:t,_int:i,_tlv:a}=qi,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:y}=a.decode(2,c),{v:h,l:A}=a.decode(2,y);if(A.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}=qi,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),qs=BigInt(1),iR=BigInt(2),rd=BigInt(3),P4=BigInt(4);function Ms(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 N4(e,t={}){const i=U4("weierstrass",e,t),{Fp:a,Fn:s}=i;let c=i.CURVE;const{h:l,n:f}=c;y1(t,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object",wrapPrivateKey:"boolean"});const{endo:y}=t;if(y&&(!a.is0(c.a)||typeof y.beta!="bigint"||!Array.isArray(y.basises)))throw new Error('invalid endo: expected "beta": bigint and "basises": array');const h=oR(a,s);function A(){if(!a.isOdd)throw new Error("compression is not supported: Field does not have .isOdd()")}function v(Q,re,Z){const{x:pe,y:_}=re.toAffine(),te=a.toBytes(pe);if(Id(Z,"isCompressed"),Z){A();const le=!a.isOdd(_);return Ra(aR(le),te)}else return Ra(Uint8Array.of(4),te,a.toBytes(_))}function m(Q){Eo(Q,void 0,"Point");const{publicKey:re,publicKeyUncompressed:Z}=h,pe=Q.length,_=Q[0],te=Q.subarray(1);if(pe===re&&(_===2||_===3)){const le=a.fromBytes(te);if(!a.isValid(le))throw new Error("bad point: is not on curve, wrong x");const V=M(le);let F;try{F=a.sqrt(V)}catch(q){const N=q instanceof Error?": "+q.message:"";throw new Error("bad point: is not on curve, sqrt error"+N)}A();const z=a.isOdd(F);return(_&1)===1!==z&&(F=a.neg(F)),{x:le,y:F}}else if(pe===Z&&_===4){const le=a.BYTES,V=a.fromBytes(te.subarray(0,le)),F=a.fromBytes(te.subarray(le,le*2));if(!B(V,F))throw new Error("bad point: is not on curve");return{x:V,y:F}}else throw new Error(`bad point: got length ${pe}, expected compressed=${re} or uncompressed=${Z}`)}const I=t.toBytes||v,O=t.fromBytes||m;function M(Q){const re=a.sqr(Q),Z=a.mul(re,Q);return a.add(a.add(Z,a.mul(Q,c.a)),c.b)}function B(Q,re){const Z=a.sqr(re),pe=M(Q);return a.eql(Z,pe)}if(!B(c.Gx,c.Gy))throw new Error("bad curve params: generator point");const R=a.mul(a.pow(c.a,rd),P4),U=a.mul(a.sqr(c.b),BigInt(27));if(a.is0(a.add(R,U)))throw new Error("bad curve params: a or b");function j(Q,re,Z=!1){if(!a.isValid(re)||Z&&a.is0(re))throw new Error(`bad point coordinate ${Q}`);return re}function K(Q){if(!(Q instanceof D))throw new Error("ProjectivePoint expected")}function H(Q){if(!y||!y.basises)throw new Error("no endo");return M4(Q,y.basises,s.ORDER)}const ie=H2((Q,re)=>{const{X:Z,Y:pe,Z:_}=Q;if(a.eql(_,a.ONE))return{x:Z,y:pe};const te=Q.is0();re==null&&(re=te?a.ONE:a.inv(_));const le=a.mul(Z,re),V=a.mul(pe,re),F=a.mul(_,re);if(te)return{x:a.ZERO,y:a.ZERO};if(!a.eql(F,a.ONE))throw new Error("invZ was invalid");return{x:le,y:V}}),ye=H2(Q=>{if(Q.is0()){if(t.allowInfinityPoint&&!a.is0(Q.Y))return;throw new Error("bad point: ZERO")}const{x:re,y:Z}=Q.toAffine();if(!a.isValid(re)||!a.isValid(Z))throw new Error("bad point: x or y not field elements");if(!B(re,Z))throw new Error("bad point: equation left != right");if(!Q.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});function fe(Q,re,Z,pe,_){return Z=new D(a.mul(Z.X,Q),Z.Y,Z.Z),re=Sd(pe,re),Z=Sd(_,Z),re.add(Z)}class D{constructor(re,Z,pe){this.X=j("x",re),this.Y=j("y",Z,!0),this.Z=j("z",pe),Object.freeze(this)}static CURVE(){return c}static fromAffine(re){const{x:Z,y:pe}=re||{};if(!re||!a.isValid(Z)||!a.isValid(pe))throw new Error("invalid affine point");if(re instanceof D)throw new Error("projective point not allowed");return a.is0(Z)&&a.is0(pe)?D.ZERO:new D(Z,pe,a.ONE)}static fromBytes(re){const Z=D.fromAffine(O(Eo(re,void 0,"point")));return Z.assertValidity(),Z}static fromHex(re){return D.fromBytes(Vn("pointHex",re))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(re=8,Z=!0){return k.createCache(this,re),Z||this.multiply(rd),this}assertValidity(){ye(this)}hasEvenY(){const{y:re}=this.toAffine();if(!a.isOdd)throw new Error("Field doesn't support isOdd");return!a.isOdd(re)}equals(re){K(re);const{X:Z,Y:pe,Z:_}=this,{X:te,Y:le,Z:V}=re,F=a.eql(a.mul(Z,V),a.mul(te,_)),z=a.eql(a.mul(pe,V),a.mul(le,_));return F&&z}negate(){return new D(this.X,a.neg(this.Y),this.Z)}double(){const{a:re,b:Z}=c,pe=a.mul(Z,rd),{X:_,Y:te,Z:le}=this;let V=a.ZERO,F=a.ZERO,z=a.ZERO,oe=a.mul(_,_),q=a.mul(te,te),N=a.mul(le,le),C=a.mul(_,te);return C=a.add(C,C),z=a.mul(_,le),z=a.add(z,z),V=a.mul(re,z),F=a.mul(pe,N),F=a.add(V,F),V=a.sub(q,F),F=a.add(q,F),F=a.mul(V,F),V=a.mul(C,V),z=a.mul(pe,z),N=a.mul(re,N),C=a.sub(oe,N),C=a.mul(re,C),C=a.add(C,z),z=a.add(oe,oe),oe=a.add(z,oe),oe=a.add(oe,N),oe=a.mul(oe,C),F=a.add(F,oe),N=a.mul(te,le),N=a.add(N,N),oe=a.mul(N,C),V=a.sub(V,oe),z=a.mul(N,q),z=a.add(z,z),z=a.add(z,z),new D(V,F,z)}add(re){K(re);const{X:Z,Y:pe,Z:_}=this,{X:te,Y:le,Z:V}=re;let F=a.ZERO,z=a.ZERO,oe=a.ZERO;const q=c.a,N=a.mul(c.b,rd);let C=a.mul(Z,te),P=a.mul(pe,le),J=a.mul(_,V),ne=a.add(Z,pe),ce=a.add(te,le);ne=a.mul(ne,ce),ce=a.add(C,P),ne=a.sub(ne,ce),ce=a.add(Z,_);let w=a.add(te,V);return ce=a.mul(ce,w),w=a.add(C,J),ce=a.sub(ce,w),w=a.add(pe,_),F=a.add(le,V),w=a.mul(w,F),F=a.add(P,J),w=a.sub(w,F),oe=a.mul(q,ce),F=a.mul(N,J),oe=a.add(F,oe),F=a.sub(P,oe),oe=a.add(P,oe),z=a.mul(F,oe),P=a.add(C,C),P=a.add(P,C),J=a.mul(q,J),ce=a.mul(N,ce),P=a.add(P,J),J=a.sub(C,J),J=a.mul(q,J),ce=a.add(ce,J),C=a.mul(P,ce),z=a.add(z,C),C=a.mul(w,ce),F=a.mul(ne,F),F=a.sub(F,C),C=a.mul(ne,P),oe=a.mul(w,oe),oe=a.add(oe,C),new D(F,z,oe)}subtract(re){return this.add(re.negate())}is0(){return this.equals(D.ZERO)}multiply(re){const{endo:Z}=t;if(!s.isValidNot0(re))throw new Error("invalid scalar: out of range");let pe,_;const te=le=>k.cached(this,le,V=>ky(D,V));if(Z){const{k1neg:le,k1:V,k2neg:F,k2:z}=H(re),{p:oe,f:q}=te(V),{p:N,f:C}=te(z);_=q.add(C),pe=fe(Z.beta,oe,N,le,F)}else{const{p:le,f:V}=te(re);pe=le,_=V}return ky(D,[pe,_])[0]}multiplyUnsafe(re){const{endo:Z}=t,pe=this;if(!s.isValid(re))throw new Error("invalid scalar: out of range");if(re===zi||pe.is0())return D.ZERO;if(re===qs)return pe;if(k.hasCache(this))return this.multiply(re);if(Z){const{k1neg:_,k1:te,k2neg:le,k2:V}=H(re),{p1:F,p2:z}=_4(D,pe,te,V);return fe(Z.beta,F,z,_,le)}else return k.unsafe(pe,re)}multiplyAndAddUnsafe(re,Z,pe){const _=this.multiplyUnsafe(Z).add(re.multiplyUnsafe(pe));return _.is0()?void 0:_}toAffine(re){return ie(this,re)}isTorsionFree(){const{isTorsionFree:re}=t;return l===qs?!0:re?re(D,this):k.unsafe(this,f).is0()}clearCofactor(){const{clearCofactor:re}=t;return l===qs?this:re?re(D,this):this.multiplyUnsafe(l)}isSmallOrder(){return this.multiplyUnsafe(l).is0()}toBytes(re=!0){return Id(re,"isCompressed"),this.assertValidity(),I(D,this,re)}toHex(re=!0){return Ls(this.toBytes(re))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}get px(){return this.X}get py(){return this.X}get pz(){return this.Z}toRawBytes(re=!0){return this.toBytes(re)}_setWindowSize(re){this.precompute(re)}static normalizeZ(re){return ky(D,re)}static msm(re,Z){return D4(D,s,re,Z)}static fromPrivateKey(re){return D.BASE.multiply(Ms(s,re))}}D.BASE=new D(c.Gx,c.Gy,a.ONE),D.ZERO=new D(a.ZERO,a.ONE,a.ZERO),D.Fp=a,D.Fn=s;const $=s.BITS,k=new T4(D,t.endo?Math.ceil($/2):$);return D.BASE.precompute(8),D}function aR(e){return Uint8Array.of(e?2:3)}function oR(e,t){return{secretKey:t.BYTES,publicKey:1+e.BYTES,publicKeyUncompressed:1+2*e.BYTES,publicKeyHasPrefix:!0,signature:2*t.BYTES}}function L4(e,t={}){const{Fn:i}=e,a=t.randomBytes||PB,s=Object.assign(oR(e.Fp,i),{seed:JB(i.ORDER)});function c(I){try{return!!Ms(i,I)}catch{return!1}}function l(I,O){const{publicKey:M,publicKeyUncompressed:B}=s;try{const R=I.length;return O===!0&&R!==M||O===!1&&R!==B?!1:!!e.fromBytes(I)}catch{return!1}}function f(I=a(s.seed)){return g4(Eo(I,s.seed,"seed"),i.ORDER)}function y(I,O=!0){return e.BASE.multiply(Ms(i,I)).toBytes(O)}function h(I){const O=f(I);return{secretKey:O,publicKey:y(O)}}function A(I){if(typeof I=="bigint")return!1;if(I instanceof e)return!0;const{secretKey:O,publicKey:M,publicKeyUncompressed:B}=s;if(i.allowedLengths||O===M)return;const R=Vn("key",I).length;return R===M||R===B}function v(I,O,M=!0){if(A(I)===!0)throw new Error("first arg must be private key");if(A(O)===!1)throw new Error("second arg must be public key");const B=Ms(i,I);return e.fromHex(O).multiply(B).toBytes(M)}return Object.freeze({getPublicKey:y,getSharedSecret:v,keygen:h,Point:e,utils:{isValidSecretKey:c,isValidPublicKey:l,randomSecretKey:f,isValidPrivateKey:c,randomPrivateKey:f,normPrivateKeyToScalar:I=>Ms(i,I),precompute(I=8,O=e.BASE){return O.precompute(I,!1)}},lengths:s})}function q4(e,t,i={}){DB(t),y1(i,{},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"});const a=i.randomBytes||PB,s=i.hmac||((Z,...pe)=>tR(t,Z,Ra(...pe))),{Fp:c,Fn:l}=e,{ORDER:f,BITS:y}=l,{keygen:h,getPublicKey:A,getSharedSecret:v,utils:m,lengths:I}=L4(e,i),O={prehash:!1,lowS:typeof i.lowS=="boolean"?i.lowS:!1,format:void 0,extraEntropy:!1},M="compact";function B(Z){const pe=f>>qs;return Z>pe}function R(Z,pe){if(!l.isValidNot0(pe))throw new Error(`invalid signature ${Z}: out of range 1..Point.Fn.ORDER`);return pe}function U(Z,pe){_b(pe);const _=I.signature,te=pe==="compact"?_:pe==="recovered"?_+1:void 0;return Eo(Z,te,`${pe} signature`)}class j{constructor(pe,_,te){this.r=R("r",pe),this.s=R("s",_),te!=null&&(this.recovery=te),Object.freeze(this)}static fromBytes(pe,_=M){U(pe,_);let te;if(_==="der"){const{r:z,s:oe}=qi.toSig(Eo(pe));return new j(z,oe)}_==="recovered"&&(te=pe[0],_="compact",pe=pe.subarray(1));const le=l.BYTES,V=pe.subarray(0,le),F=pe.subarray(le,le*2);return new j(l.fromBytes(V),l.fromBytes(F),te)}static fromHex(pe,_){return this.fromBytes(wd(pe),_)}addRecoveryBit(pe){return new j(this.r,this.s,pe)}recoverPublicKey(pe){const _=c.ORDER,{r:te,s:le,recovery:V}=this;if(V==null||![0,1,2,3].includes(V))throw new Error("recovery id invalid");if(f*iR<_&&V>1)throw new Error("recovery id is ambiguous for h>1 curve");const z=V===2||V===3?te+f:te;if(!c.isValid(z))throw new Error("recovery id 2 or 3 invalid");const oe=c.toBytes(z),q=e.fromBytes(Ra(aR((V&1)===0),oe)),N=l.inv(z),C=H(Vn("msgHash",pe)),P=l.create(-C*N),J=l.create(le*N),ne=e.BASE.multiplyUnsafe(P).add(q.multiplyUnsafe(J));if(ne.is0())throw new Error("point at infinify");return ne.assertValidity(),ne}hasHighS(){return B(this.s)}toBytes(pe=M){if(_b(pe),pe==="der")return wd(qi.hexFromSig(this));const _=l.toBytes(this.r),te=l.toBytes(this.s);if(pe==="recovered"){if(this.recovery==null)throw new Error("recovery bit must be present");return Ra(Uint8Array.of(this.recovery),_,te)}return Ra(_,te)}toHex(pe){return Ls(this.toBytes(pe))}assertValidity(){}static fromCompact(pe){return j.fromBytes(Vn("sig",pe),"compact")}static fromDER(pe){return j.fromBytes(Vn("sig",pe),"der")}normalizeS(){return this.hasHighS()?new j(this.r,l.neg(this.s),this.recovery):this}toDERRawBytes(){return this.toBytes("der")}toDERHex(){return Ls(this.toBytes("der"))}toCompactRawBytes(){return this.toBytes("compact")}toCompactHex(){return Ls(this.toBytes("compact"))}}const K=i.bits2int||function(pe){if(pe.length>8192)throw new Error("input is too large");const _=Ld(pe),te=pe.length*8-y;return te>0?_>>BigInt(te):_},H=i.bits2int_modN||function(pe){return l.create(K(pe))},ie=gl(y);function ye(Z){return o4("num < 2^"+y,Z,zi,ie),l.toBytes(Z)}function fe(Z,pe){return Eo(Z,void 0,"message"),pe?Eo(t(Z),void 0,"prehashed message"):Z}function D(Z,pe,_){if(["recovered","canonical"].some(P=>P in _))throw new Error("sign() legacy options not supported");const{lowS:te,prehash:le,extraEntropy:V}=Xy(_,O);Z=fe(Z,le);const F=H(Z),z=Ms(l,pe),oe=[ye(z),ye(F)];if(V!=null&&V!==!1){const P=V===!0?a(I.secretKey):V;oe.push(Vn("extraEntropy",P))}const q=Ra(...oe),N=F;function C(P){const J=K(P);if(!l.isValidNot0(J))return;const ne=l.inv(J),ce=e.BASE.multiply(J).toAffine(),w=l.create(ce.x);if(w===zi)return;const G=l.create(ne*l.create(N+w*z));if(G===zi)return;let Y=(ce.x===w?0:2)|Number(ce.y&qs),W=G;return te&&B(G)&&(W=l.neg(G),Y^=1),new j(w,W,Y)}return{seed:q,k2sig:C}}function $(Z,pe,_={}){Z=Vn("message",Z);const{seed:te,k2sig:le}=D(Z,pe,_);return s4(t.outputLen,l.BYTES,s)(te,le)}function k(Z){let pe;const _=typeof Z=="string"||Pd(Z),te=!_&&Z!==null&&typeof Z=="object"&&typeof Z.r=="bigint"&&typeof Z.s=="bigint";if(!_&&!te)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");if(te)pe=new j(Z.r,Z.s);else if(_){try{pe=j.fromBytes(Vn("sig",Z),"der")}catch(le){if(!(le instanceof qi.Err))throw le}if(!pe)try{pe=j.fromBytes(Vn("sig",Z),"compact")}catch{return!1}}return pe||!1}function Q(Z,pe,_,te={}){const{lowS:le,prehash:V,format:F}=Xy(te,O);if(_=Vn("publicKey",_),pe=fe(Vn("message",pe),V),"strict"in te)throw new Error("options.strict was renamed to lowS");const z=F===void 0?k(Z):j.fromBytes(Vn("sig",Z),F);if(z===!1)return!1;try{const oe=e.fromBytes(_);if(le&&z.hasHighS())return!1;const{r:q,s:N}=z,C=H(pe),P=l.inv(N),J=l.create(C*P),ne=l.create(q*P),ce=e.BASE.multiplyUnsafe(J).add(oe.multiplyUnsafe(ne));return ce.is0()?!1:l.create(ce.x)===q}catch{return!1}}function re(Z,pe,_={}){const{prehash:te}=Xy(_,O);return pe=fe(pe,te),j.fromBytes(Z,"recovered").recoverPublicKey(pe).toBytes()}return Object.freeze({keygen:h,getPublicKey:A,getSharedSecret:v,utils:m,lengths:I,Point:e,sign:$,verify:Q,recoverPublicKey:re,Signature:j,hash:t})}function $4(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=ml(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 H4(e){const{CURVE:t,curveOpts:i}=$4(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 z4(e,t){const i=t.Point;return Object.assign({},t,{ProjectivePoint:i,CURVE:Object.assign({},e,XB(i.Fn.ORDER,i.Fn.BITS))})}function G4(e){const{CURVE:t,curveOpts:i,hash:a,ecdsaOpts:s}=H4(e),c=N4(t,i),l=q4(c,a,s);return z4(e,l)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function Q4(e,t){const i=a=>G4({...e,hash:a});return{...i(t),create:i}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const m1={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},k4={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),basises:[[BigInt("0x3086d221a7d46bcde86c90e49284eb15"),-BigInt("0xe4437ed6010e88286f547fa90abfe4c3")],[BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),BigInt("0x3086d221a7d46bcde86c90e49284eb15")]]},X2=BigInt(2);function V4(e){const t=m1.p,i=BigInt(3),a=BigInt(6),s=BigInt(11),c=BigInt(22),l=BigInt(23),f=BigInt(44),y=BigInt(88),h=e*e*e%t,A=h*h*e%t,v=Br(A,i,t)*A%t,m=Br(v,i,t)*A%t,I=Br(m,X2,t)*h%t,O=Br(I,s,t)*I%t,M=Br(O,c,t)*O%t,B=Br(M,f,t)*M%t,R=Br(B,y,t)*B%t,U=Br(R,f,t)*M%t,j=Br(U,i,t)*A%t,K=Br(j,l,t)*O%t,H=Br(K,a,t)*h%t,ie=Br(H,X2,t);if(!Db.eql(Db.sqr(ie),e))throw new Error("Cannot find square root");return ie}const Db=ml(m1.p,{sqrt:V4}),Al=Q4({...m1,Fp:Db,lowS:!0,endo:k4},WB),K4=Object.freeze(Object.defineProperty({__proto__:null,secp256k1:Al},Symbol.toStringTag,{value:"Module"})),sR="2.34.0";let bc={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:i})=>t?`${e??"https://viem.sh"}${t}${i?`#${i}`:""}`:void 0,version:`viem@${sR}`};class _e extends Error{constructor(t,i={}){var f;const a=(()=>{var y;return i.cause instanceof _e?i.cause.details:(y=i.cause)!=null&&y.message?i.cause.message:i.details})(),s=i.cause instanceof _e&&i.cause.docsPath||i.docsPath,c=(f=bc.getDocsUrl)==null?void 0:f.call(bc,{...i,docsPath:s}),l=[t||"An error occurred.","",...i.metaMessages?[...i.metaMessages,""]:[],...c?[`Docs: ${c}`]:[],...a?[`Details: ${a}`]:[],...bc.version?[`Version: ${bc.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=sR}walk(t){return uR(this,t)}}function uR(e,t){return t!=null&&t(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause!==void 0?uR(e.cause,t):t?null:e}class cR extends _e{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 Y4 extends _e{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 X4 extends _e{constructor({givenSize:t,maxSize:i}){super(`Size cannot exceed ${i} bytes. Given size: ${t} bytes.`,{name:"SizeOverflowError"})}}class lR extends _e{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 fR extends _e{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 Z2 extends _e{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 au(e,{dir:t,size:i=32}={}){return typeof e=="string"?Ta(e,{dir:t,size:i}):Z4(e,{dir:t,size:i})}function Ta(e,{dir:t,size:i=32}={}){if(i===null)return e;const a=e.replace("0x","");if(a.length>i*2)throw new fR({size:Math.ceil(a.length/2),targetSize:i,type:"hex"});return`0x${a[t==="right"?"padEnd":"padStart"](i*2,"0")}`}function Z4(e,{dir:t,size:i=32}={}){if(i===null)return e;if(e.length>i)throw new fR({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 Ki(e,{strict:t=!0}={}){return!e||typeof e!="string"?!1:t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")}function Qt(e){return Ki(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}function _a(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 J4=new TextEncoder;function A1(e,t={}){return typeof e=="number"||typeof e=="bigint"?eD(e,t):typeof e=="boolean"?W4(e,t):Ki(e)?Kr(e,t):dR(e,t)}function W4(e,t={}){const i=new Uint8Array(1);return i[0]=Number(e),typeof t.size=="number"?(gi(i,{size:t.size}),au(i,{size:t.size})):i}const Pi={zero:48,nine:57,A:65,F:70,a:97,f:102};function J2(e){if(e>=Pi.zero&&e<=Pi.nine)return e-Pi.zero;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 Kr(e,t={}){let i=e;t.size&&(gi(i,{size:t.size}),i=au(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 y=J2(a.charCodeAt(f++)),h=J2(a.charCodeAt(f++));if(y===void 0||h===void 0)throw new _e(`Invalid byte sequence ("${a[f-2]}${a[f-1]}" in "${a}").`);c[l]=y*16+h}return c}function eD(e,t){const i=Pe(e,t);return Kr(i)}function dR(e,t={}){const i=J4.encode(e);return typeof t.size=="number"?(gi(i,{size:t.size}),au(i,{dir:"right",size:t.size})):i}function gi(e,{size:t}){if(Qt(e)>t)throw new X4({givenSize:Qt(e),maxSize:t})}function fi(e,t={}){const{signed:i}=t;t.size&&gi(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 Yi(e,t={}){return Number(fi(e,t))}const tD=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function di(e,t={}){return typeof e=="number"||typeof e=="bigint"?Pe(e,t):typeof e=="string"?Ks(e,t):typeof e=="boolean"?hR(e,t):Un(e,t)}function hR(e,t={}){const i=`0x${Number(e)}`;return typeof t.size=="number"?(gi(i,{size:t.size}),au(i,{size:t.size})):i}function Un(e,t={}){let i="";for(let s=0;s<e.length;s++)i+=tD[e[s]];const a=`0x${i}`;return typeof t.size=="number"?(gi(a,{size:t.size}),au(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 y=typeof e=="bigint"?"n":"";throw new cR({max:c?`${c}${y}`:void 0,min:`${l}${y}`,signed:i,size:a,value:`${e}${y}`})}const f=`0x${(i&&s<0?(1n<<BigInt(a*8))+BigInt(s):s).toString(16)}`;return a?au(f,{size:a}):f}const nD=new TextEncoder;function Ks(e,t={}){const i=nD.encode(e);return Un(i,t)}function pR(){return di(Al.utils.randomPrivateKey())}class Hn extends _e{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 rD=BigInt(0),vc=BigInt(1),iD=BigInt(2),aD=BigInt(7),oD=BigInt(256),sD=BigInt(113),yR=[],gR=[],mR=[];for(let e=0,t=vc,i=1,a=0;e<24;e++){[i,a]=[a,(2*i+3*a)%5],yR.push(2*(5*a+i)),gR.push((e+1)*(e+2)/2%64);let s=rD;for(let c=0;c<7;c++)t=(t<<vc^(t>>aD)*sD)%oD,t&iD&&(s^=vc<<(vc<<BigInt(c))-vc);mR.push(s)}const AR=E4(mR,!0),uD=AR[0],cD=AR[1],W2=(e,t,i)=>i>32?S4(e,t,i):w4(e,t,i),eI=(e,t,i)=>i>32?C4(e,t,i):I4(e,t,i);function lD(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,y=(l+2)%10,h=i[y],A=i[y+1],v=W2(h,A,1)^i[f],m=eI(h,A,1)^i[f+1];for(let I=0;I<50;I+=10)e[l+I]^=v,e[l+I+1]^=m}let s=e[2],c=e[3];for(let l=0;l<24;l++){const f=gR[l],y=W2(s,c,f),h=eI(s,c,f),A=yR[l];s=e[A],c=e[A+1],e[A]=y,e[A+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]^=uD[a],e[1]^=cD[a]}ks(i)}class b1 extends d1{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,Pc(a),!(0<t&&t<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=W8(this.state)}clone(){return this._cloneInto()}keccak(){q2(this.state32),lD(this.state32,this.rounds),q2(this.state32),this.posOut=0,this.pos=0}update(t){Qs(this),t=Nd(t),Vi(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){Qs(this,!1),Vi(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 Pc(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(UB(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,ks(this.state)}_cloneInto(t){const{blockLen:i,suffix:a,outputLen:s,rounds:c,enableXOF:l}=this;return t||(t=new b1(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 fD=(e,t,i)=>jB(()=>new b1(t,e,i)),dD=fD(1,136,256/8);function lr(e,t){const i=t||"hex",a=dD(Ki(e,{strict:!1})?A1(e):e);return i==="bytes"?a:di(a)}const Zy=new qd(8192);function bl(e,t){if(Zy.has(`${e}.${t}`))return Zy.get(`${e}.${t}`);const i=e.substring(2).toLowerCase(),a=lr(dR(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 Zy.set(`${e}.${t}`,c),c}function hD(e,t){if(!yn(e,{strict:!1}))throw new Hn({address:e});return bl(e,t)}const pD=/^0x[a-fA-F0-9]{40}$/,Jy=new qd(8192);function yn(e,t){const{strict:i=!0}=t??{},a=`${e}.${i}`;if(Jy.has(a))return Jy.get(a);const s=pD.test(e)?e.toLowerCase()===e?!0:i?bl(e)===e:!0:!1;return Jy.set(a,s),s}function yD(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 bR(e){const t=lr(`0x${e.substring(4)}`).substring(26);return bl(`0x${t}`)}function gD({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 Al.Signature(fi(e),fi(t)).toCompactHex()}${c===0?"1b":"1c"}`;return i==="hex"?l:Kr(l)}let Wy=!1;async function vl({hash:e,privateKey:t,to:i="object"}){const{r:a,s,recovery:c}=Al.sign(e.slice(2),t.slice(2),{lowS:!0,extraEntropy:Ki(Wy,{strict:!1})?Kr(Wy):Wy}),l={r:Pe(a,{size:32}),s:Pe(s,{size:32}),v:c?28n:27n,yParity:c};return i==="bytes"||i==="hex"?gD({...l,to:i}):l}function hi(e){return typeof e[0]=="string"?Ma(e):mD(e)}function mD(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 Ma(e){return`0x${e.reduce((t,i)=>t+i.replace("0x",""),"")}`}class tI extends _e{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class AD extends _e{constructor({length:t,position:i}){super(`Position \`${i}\` is out of bounds (\`0 < position < ${t}\`).`,{name:"PositionOutOfBoundsError"})}}class bD extends _e{constructor({count:t,limit:i}){super(`Recursive read limit of \`${i}\` exceeded (recursive read count: \`${t}\`).`,{name:"RecursiveReadLimitExceededError"})}}const vD={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 bD({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new AD({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new tI({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 tI({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 v1(e,{recursiveReadLimit:t=8192}={}){const i=Object.create(vD);return i.bytes=e,i.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),i.positionReadCount=new Map,i.recursiveReadLimit=t,i}function Fo(e,t="hex"){const i=vR(e),a=v1(new Uint8Array(i.length));return i.encode(a),t==="hex"?Un(a.bytes):a.bytes}function vR(e){return Array.isArray(e)?xD(e.map(t=>vR(t))):ED(e)}function xD(e){const t=e.reduce((s,c)=>s+c.length,0),i=xR(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 ED(e){const t=typeof e=="string"?Kr(e):e,i=xR(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 xR(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 _e("Length is too large.")}function ER(e){const{chainId:t,nonce:i,to:a}=e,s=e.contractAddress??e.address,c=lr(Ma(["0x05",Fo([t?Pe(t):"0x",s,i?Pe(i):"0x"])]));return a==="bytes"?Kr(c):c}async function wD(e){const{chainId:t,nonce:i,privateKey:a,to:s="object"}=e,c=e.contractAddress??e.address,l=await vl({hash:ER({address:c,chainId:t,nonce:i}),privateKey:a,to:s});return s==="object"?{address:c,chainId:t,nonce:i,...l}:l}const ID=`Ethereum Signed Message:
40
+ `;function SD(e){const t=typeof e=="string"?Ks(e):typeof e.raw=="string"?e.raw:Un(e.raw),i=Ks(`${ID}${Qt(t)}`);return hi([i,t])}function CD(e,t){return lr(SD(e),t)}async function OD({message:e,privateKey:t}){return await vl({hash:CD(e),privateKey:t,to:"hex"})}const FD={gwei:9,wei:18},BD={ether:-9,wei:9};function wR(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 IR(e,t="wei"){return wR(e,FD[t])}function kr(e,t="wei"){return wR(e,BD[t])}function $d(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 RD extends _e{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 TD extends _e{constructor({v:t}){super(`Invalid \`v\` value "${t}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class _D extends _e{constructor({transaction:t}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",$d(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 DD extends _e{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 UD extends _e{constructor(t,{account:i,docsPath:a,chain:s,data:c,gas:l,gasPrice:f,maxFeePerGas:y,maxPriorityFeePerGas:h,nonce:A,to:v,value:m}){var O;const I=$d({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 m<"u"&&`${IR(m)} ${((O=s==null?void 0:s.nativeCurrency)==null?void 0:O.symbol)||"ETH"}`,data:c,gas:l,gasPrice:typeof f<"u"&&`${kr(f)} gwei`,maxFeePerGas:typeof y<"u"&&`${kr(y)} gwei`,maxPriorityFeePerGas:typeof h<"u"&&`${kr(h)} gwei`,nonce:A});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 MD(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?di(a):"0x",l,s?di(s):"0x",...xl({},c)])}return t}function x1(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 E1(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],y=s[l];c.push(Uint8Array.from(t.computeBlobKzgProof(f,y)))}return i==="bytes"?c:c.map(l=>Un(l))}const Ub=WB;function jD(e,t){return Ub(Ki(e,{strict:!1})?A1(e):e)}function PD(e){const{commitment:t,version:i=1}=e,a=e.to??(typeof t=="string"?"hex":"bytes"),s=jD(t);return s.set([i],0),a==="bytes"?s:Un(s)}function SR(e){const{commitments:t,version:i}=e,a=e.to??(typeof t[0]=="string"?"hex":"bytes"),s=[];for(const c of t)s.push(PD({commitment:c,to:a,version:i}));return s}const nI=6,CR=32,w1=4096,OR=CR*w1,rI=OR*nI-1-1*w1*nI,FR=1;class ND extends _e{constructor({maxSize:t,size:i}){super("Blob size is too large.",{metaMessages:[`Max: ${t} bytes`,`Given: ${i} bytes`],name:"BlobSizeTooLargeError"})}}class BR extends _e{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class LD extends _e{constructor({hash:t,size:i}){super(`Versioned hash "${t}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${i}`],name:"InvalidVersionedHashSizeError"})}}class qD extends _e{constructor({hash:t,version:i}){super(`Versioned hash "${t}" version is invalid.`,{metaMessages:[`Expected: ${FR}`,`Received: ${i}`],name:"InvalidVersionedHashVersionError"})}}function $D(e){const t=e.to??(typeof e.data=="string"?"hex":"bytes"),i=typeof e.data=="string"?Kr(e.data):e.data,a=Qt(i);if(!a)throw new BR;if(a>rI)throw new ND({maxSize:rI,size:a});const s=[];let c=!0,l=0;for(;c;){const f=v1(new Uint8Array(OR));let y=0;for(;y<w1;){const h=i.slice(l,l+(CR-1));if(f.pushByte(0),f.pushBytes(h),h.length<31){f.pushByte(128),c=!1;break}y++,l+=31}s.push(f)}return t==="bytes"?s.map(f=>f.bytes):s.map(f=>Un(f.bytes))}function RR(e){const{data:t,kzg:i,to:a}=e,s=e.blobs??$D({data:t,to:a}),c=e.commitments??x1({blobs:s,kzg:i,to:a}),l=e.proofs??E1({blobs:s,commitments:c,kzg:i,to:a}),f=[];for(let y=0;y<s.length;y++)f.push({blob:s[y],commitment:c[y],proof:l[y]});return f}const Hd=2n**256n-1n;class HD extends _e{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 zD extends _e{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 zd extends _e{constructor({chainId:t}){super(typeof t=="number"?`Chain ID "${t}" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}class js extends _e{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(js,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(js,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class Bo extends _e{constructor({cause:t,maxFeePerGas:i}={}){super(`The fee cap (\`maxFeePerGas\`${i?` = ${kr(i)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:t,name:"FeeCapTooHighError"})}}Object.defineProperty(Bo,"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 Mb extends _e{constructor({cause:t,maxFeePerGas:i}={}){super(`The fee cap (\`maxFeePerGas\`${i?` = ${kr(i)}`:""} gwei) cannot be lower than the block base fee.`,{cause:t,name:"FeeCapTooLowError"})}}Object.defineProperty(Mb,"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 jb extends _e{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(jb,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class Pb extends _e{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(Pb,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class Nb extends _e{constructor({cause:t,nonce:i}={}){super(`Nonce provided for the transaction ${i?`(${i}) `:""}exceeds the maximum allowed nonce.`,{cause:t,name:"NonceMaxValueError"})}}Object.defineProperty(Nb,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class Lb extends _e{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(Lb,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class qb extends _e{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(qb,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class $b extends _e{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($b,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class Hb extends _e{constructor({cause:t}){super("The transaction type is not supported for this chain.",{cause:t,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(Hb,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class Nc extends _e{constructor({cause:t,maxPriorityFeePerGas:i,maxFeePerGas:a}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${i?` = ${kr(i)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${a?` = ${kr(a)} gwei`:""}).`].join(`
46
+ `),{cause:t,name:"TipAboveFeeCapError"})}}Object.defineProperty(Nc,"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 I1 extends _e{constructor({cause:t}){super(`An error occurred while executing: ${t==null?void 0:t.shortMessage}`,{cause:t,name:"UnknownNodeError"})}}function Lc(e,t,i,{strict:a}={}){return Ki(e,{strict:!1})?zb(e,t,i,{strict:a}):DR(e,t,i,{strict:a})}function TR(e,t){if(typeof t=="number"&&t>0&&t>Qt(e)-1)throw new lR({offset:t,position:"start",size:Qt(e)})}function _R(e,t,i){if(typeof t=="number"&&typeof i=="number"&&Qt(e)!==i-t)throw new lR({offset:i,position:"end",size:Qt(e)})}function DR(e,t,i,{strict:a}={}){TR(e,t);const s=e.slice(t,i);return a&&_R(s,t,i),s}function zb(e,t,i,{strict:a}={}){TR(e,t);const s=`0x${e.replace("0x","").slice((t??0)*2,(i??e.length)*2)}`;return a&&_R(s,t,i),s}function GD(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 zd({chainId:a})}S1(e)}function QD(e){const{blobVersionedHashes:t}=e;if(t){if(t.length===0)throw new BR;for(const i of t){const a=Qt(i),s=Yi(Lc(i,0,1));if(a!==32)throw new LD({hash:i,size:a});if(s!==FR)throw new qD({hash:i,version:s})}}S1(e)}function S1(e){const{chainId:t,maxPriorityFeePerGas:i,maxFeePerGas:a,to:s}=e;if(t<=0)throw new zd({chainId:t});if(s&&!yn(s))throw new Hn({address:s});if(a&&a>Hd)throw new Bo({maxFeePerGas:a});if(i&&a&&i>a)throw new Nc({maxFeePerGas:a,maxPriorityFeePerGas:i})}function kD(e){const{chainId:t,maxPriorityFeePerGas:i,gasPrice:a,maxFeePerGas:s,to:c}=e;if(t<=0)throw new zd({chainId:t});if(c&&!yn(c))throw new Hn({address:c});if(i||s)throw new _e("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(a&&a>Hd)throw new Bo({maxFeePerGas:a})}function VD(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 zd({chainId:t});if(i||s)throw new _e("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(a&&a>Hd)throw new Bo({maxFeePerGas:a})}function UR(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 _D({transaction:e})}function Gd(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 DD({storageKey:s[c]});if(!yn(a,{strict:!1}))throw new Hn({address:a});t.push([a,s])}return t}function KD(e,t){const i=UR(e);return i==="eip1559"?ZD(e,t):i==="eip2930"?JD(e,t):i==="eip4844"?XD(e,t):i==="eip7702"?YD(e,t):WD(e,t)}function YD(e,t){const{authorizationList:i,chainId:a,gas:s,nonce:c,to:l,value:f,maxFeePerGas:y,maxPriorityFeePerGas:h,accessList:A,data:v}=e;GD(e);const m=Gd(A),I=MD(i);return Ma(["0x04",Fo([Pe(a),c?Pe(c):"0x",h?Pe(h):"0x",y?Pe(y):"0x",s?Pe(s):"0x",l??"0x",f?Pe(f):"0x",v??"0x",m,I,...xl(e,t)])])}function XD(e,t){const{chainId:i,gas:a,nonce:s,to:c,value:l,maxFeePerBlobGas:f,maxFeePerGas:y,maxPriorityFeePerGas:h,accessList:A,data:v}=e;QD(e);let m=e.blobVersionedHashes,I=e.sidecars;if(e.blobs&&(typeof m>"u"||typeof I>"u")){const j=typeof e.blobs[0]=="string"?e.blobs:e.blobs.map(ie=>Un(ie)),K=e.kzg,H=x1({blobs:j,kzg:K});if(typeof m>"u"&&(m=SR({commitments:H})),typeof I>"u"){const ie=E1({blobs:j,commitments:H,kzg:K});I=RR({blobs:j,commitments:H,proofs:ie})}}const O=Gd(A),M=[Pe(i),s?Pe(s):"0x",h?Pe(h):"0x",y?Pe(y):"0x",a?Pe(a):"0x",c??"0x",l?Pe(l):"0x",v??"0x",O,f?Pe(f):"0x",m??[],...xl(e,t)],B=[],R=[],U=[];if(I)for(let j=0;j<I.length;j++){const{blob:K,commitment:H,proof:ie}=I[j];B.push(K),R.push(H),U.push(ie)}return Ma(["0x03",Fo(I?[M,B,R,U]:M)])}function ZD(e,t){const{chainId:i,gas:a,nonce:s,to:c,value:l,maxFeePerGas:f,maxPriorityFeePerGas:y,accessList:h,data:A}=e;S1(e);const v=Gd(h),m=[Pe(i),s?Pe(s):"0x",y?Pe(y):"0x",f?Pe(f):"0x",a?Pe(a):"0x",c??"0x",l?Pe(l):"0x",A??"0x",v,...xl(e,t)];return Ma(["0x02",Fo(m)])}function JD(e,t){const{chainId:i,gas:a,data:s,nonce:c,to:l,value:f,accessList:y,gasPrice:h}=e;kD(e);const A=Gd(y),v=[Pe(i),c?Pe(c):"0x",h?Pe(h):"0x",a?Pe(a):"0x",l??"0x",f?Pe(f):"0x",s??"0x",A,...xl(e,t)];return Ma(["0x01",Fo(v)])}function WD(e,t){const{chainId:i=0,gas:a,data:s,nonce:c,to:l,value:f,gasPrice:y}=e;VD(e);let h=[c?Pe(c):"0x",y?Pe(y):"0x",a?Pe(a):"0x",l??"0x",f?Pe(f):"0x",s??"0x"];if(t){const A=(()=>{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 TD({v:t.v});return I})(),v=_a(t.r),m=_a(t.s);h=[...h,Pe(A),v==="0x00"?"0x":v,m==="0x00"?"0x":m]}else i>0&&(h=[...h,Pe(i),"0x","0x"]);return Fo(h)}function xl(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=_a(i.r),l=_a(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 eU(e){const{privateKey:t,transaction:i,serializer:a=KD}=e,s=i.type==="eip4844"?{...i,sidecars:!1}:i,c=await vl({hash:lr(a(s)),privateKey:t});return a(i,c)}function Ys(e,{includeName:t=!1}={}){if(e.type!=="function"&&e.type!=="event"&&e.type!=="error")throw new dU(e.type);return`${e.name}(${C1(e.inputs,{includeName:t})})`}function C1(e,{includeName:t=!1}={}){return e?e.map(i=>tU(i,{includeName:t})).join(t?", ":","):""}function tU(e,{includeName:t}){return e.type.startsWith("tuple")?`(${C1(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")}class nU extends _e{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 iI extends _e{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 rU extends _e{constructor({data:t,params:i,size:a}){super([`Data size of ${a} bytes is too small for given parameters.`].join(`
49
+ `),{metaMessages:[`Params: (${C1(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 O1 extends _e{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError"})}}class iU extends _e{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 aU extends _e{constructor({expectedSize:t,value:i}){super(`Size of bytes "${i}" (bytes${Qt(i)}) does not match expected size (bytes${t}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class oU extends _e{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 MR extends _e{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 aI extends _e{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 sU extends _e{constructor(t,i){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${t.type}\` in \`${Ys(t.abiItem)}\`, and`,`\`${i.type}\` in \`${Ys(i.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}class uU extends _e{constructor({expectedSize:t,givenSize:i}){super(`Expected bytes${t}, got bytes${i}.`,{name:"BytesSizeMismatchError"})}}class cU extends _e{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 lU extends _e{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 fU extends _e{constructor(t){super([`Value "${t}" is not a valid array.`].join(`
56
+ `),{name:"InvalidArrayError"})}}class dU extends _e{constructor(t){super([`"${t}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join(`
57
+ `),{name:"InvalidDefinitionTypeError"})}}const hU=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,jR=/^(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 Qd(e,t){if(e.length!==t.length)throw new oU({expectedLength:e.length,givenLength:t.length});const i=pU({params:e,values:t}),a=B1(i);return a.length===0?"0x":a}function pU({params:e,values:t}){const i=[];for(let a=0;a<e.length;a++)i.push(F1({param:e[a],value:t[a]}));return i}function F1({param:e,value:t}){const i=R1(e.type);if(i){const[a,s]=i;return gU(t,{length:a,param:{...e,type:s}})}if(e.type==="tuple")return xU(t,{param:e});if(e.type==="address")return yU(t);if(e.type==="bool")return AU(t);if(e.type.startsWith("uint")||e.type.startsWith("int")){const a=e.type.startsWith("int"),[,,s="256"]=jR.exec(e.type)??[];return bU(t,{signed:a,size:Number(s)})}if(e.type.startsWith("bytes"))return mU(t,{param:e});if(e.type==="string")return vU(t);throw new cU(e.type,{docsPath:"/docs/contract/encodeAbiParameters"})}function B1(e){let t=0;for(let c=0;c<e.length;c++){const{dynamic:l,encoded:f}=e[c];l?t+=32:t+=Qt(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+=Qt(f)):i.push(f)}return hi([...i,...a])}function yU(e){if(!yn(e))throw new Hn({address:e});return{dynamic:!1,encoded:Ta(e.toLowerCase())}}function gU(e,{length:t,param:i}){const a=t===null;if(!Array.isArray(e))throw new fU(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=F1({param:i,value:e[l]});f.dynamic&&(s=!0),c.push(f)}if(a||s){const l=B1(c);if(a){const f=Pe(c.length,{size:32});return{dynamic:!0,encoded:c.length>0?hi([f,l]):f}}if(s)return{dynamic:!0,encoded:l}}return{dynamic:!1,encoded:hi(c.map(({encoded:l})=>l))}}function mU(e,{param:t}){const[,i]=t.type.split("bytes"),a=Qt(e);if(!i){let s=e;return a%32!==0&&(s=Ta(s,{dir:"right",size:Math.ceil((e.length-2)/2/32)*32})),{dynamic:!0,encoded:hi([Ta(Pe(a,{size:32})),s])}}if(a!==Number.parseInt(i))throw new aU({expectedSize:Number.parseInt(i),value:e});return{dynamic:!1,encoded:Ta(e,{dir:"right"})}}function AU(e){if(typeof e!="boolean")throw new _e(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:Ta(hR(e))}}function bU(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 cR({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 vU(e){const t=Ks(e),i=Math.ceil(Qt(t)/32),a=[];for(let s=0;s<i;s++)a.push(Ta(Lc(t,s*32,(s+1)*32),{dir:"right"}));return{dynamic:!0,encoded:hi([Ta(Pe(Qt(t),{size:32})),...a])}}function xU(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=F1({param:c,value:e[l]});a.push(f),f.dynamic&&(i=!0)}return{dynamic:i,encoded:i?B1(a):hi(a.map(({encoded:s})=>s))}}function R1(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 EU extends _e{constructor({domain:t}){super(`Invalid domain "${Vr(t)}".`,{metaMessages:["Must be a valid EIP-712 domain."]})}}class wU extends _e{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 IU extends _e{constructor({type:t}){super(`Struct type "${t}" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}}function SU(e){const{domain:t,message:i,primaryType:a,types:s}=e,c=(y,h)=>{const A={...h};for(const v of y){const{name:m,type:I}=v;I==="address"&&(A[m]=A[m].toLowerCase())}return A},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 PR(e){const{domain:t,message:i,primaryType:a,types:s}=e,c=(l,f)=>{for(const y of l){const{name:h,type:A}=y,v=f[h],m=A.match(jR);if(m&&(typeof v=="number"||typeof v=="bigint")){const[M,B,R]=m;Pe(v,{signed:B==="int",size:Number.parseInt(R)/8})}if(A==="address"&&typeof v=="string"&&!yn(v))throw new Hn({address:v});const I=A.match(hU);if(I){const[M,B]=I;if(B&&Qt(v)!==Number.parseInt(B))throw new uU({expectedSize:Number.parseInt(B),givenSize:Qt(v)})}const O=s[A];O&&(CU(A),c(O,v))}};if(s.EIP712Domain&&t){if(typeof t!="object")throw new EU({domain:t});c(s.EIP712Domain,t)}if(a!=="EIP712Domain")if(s[a])c(s[a],i);else throw new wU({primaryType:a,types:s})}function NR({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 CU(e){if(e==="address"||e==="bool"||e==="string"||e.startsWith("bytes")||e.startsWith("uint")||e.startsWith("int"))throw new IU({type:e})}function OU(e){const{domain:t={},message:i,primaryType:a}=e,s={EIP712Domain:NR({domain:t}),...e.types};PR({domain:t,message:i,primaryType:a,types:s});const c=["0x1901"];return t&&c.push(FU({domain:t,types:s})),a!=="EIP712Domain"&&c.push(LR({data:i,primaryType:a,types:s})),lr(hi(c))}function FU({domain:e,types:t}){return LR({data:e,primaryType:"EIP712Domain",types:t})}function LR({data:e,primaryType:t,types:i}){const a=qR({data:e,primaryType:t,types:i});return lr(a)}function qR({data:e,primaryType:t,types:i}){const a=[{type:"bytes32"}],s=[BU({primaryType:t,types:i})];for(const c of i[t]){const[l,f]=HR({types:i,name:c.name,type:c.type,value:e[c.name]});a.push(l),s.push(f)}return Qd(a,s)}function BU({primaryType:e,types:t}){const i=di(RU({primaryType:e,types:t}));return lr(i)}function RU({primaryType:e,types:t}){let i="";const a=$R({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 $R({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])$R({primaryType:c.type,types:t},i);return i}function HR({types:e,name:t,type:i,value:a}){if(e[i]!==void 0)return[{type:"bytes32"},lr(qR({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(di(a))];if(i.lastIndexOf("]")===i.length-1){const s=i.slice(0,i.lastIndexOf("[")),c=a.map(l=>HR({name:t,type:s,types:e,value:l}));return[{type:"bytes32"},lr(Qd(c.map(([l])=>l),c.map(([,l])=>l)))]}return[{type:i},a]}async function TU(e){const{privateKey:t,...i}=e;return await vl({hash:OU(i),privateKey:t,to:"hex"})}function li(e,t={}){const{nonceManager:i}=t,a=di(Al.getPublicKey(e.slice(2),!1)),s=bR(a);return{...yD({address:s,nonceManager:i,async sign({hash:l}){return vl({hash:l,privateKey:e,to:"hex"})},async signAuthorization(l){return wD({...l,privateKey:e})},async signMessage({message:l}){return OD({message:l,privateKey:e})},async signTransaction(l,{serializer:f}={}){return eU({privateKey:e,transaction:l,serializer:f})},async signTypedData(l){return TU({...l,privateKey:e})}}),publicKey:a,source:"privateKey"}}function Zn(e){return typeof e=="string"?{address:e,type:"json-rpc"}:e}async function zR(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 Yi(s)}function _U(e,t){const i=e.exec(t);return i==null?void 0:i.groups}const oI=/^tuple(?<array>(\[(\d*)\])*)$/;function Gb(e){let t=e.type;if(oI.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+=Gb(c),s<i-1&&(t+=", ")}const a=_U(oI,e.type);return t+=`)${(a==null?void 0:a.array)??""}`,Gb({...e,type:t})}return"indexed"in e&&e.indexed&&(t=`${t} indexed`),e.name?`${t} ${e.name}`:t}function xc(e){let t="";const i=e.length;for(let a=0;a<i;a++){const s=e[a];t+=Gb(s),a!==i-1&&(t+=", ")}return t}function DU(e){var t;return e.type==="function"?`function ${e.name}(${xc(e.inputs)})${e.stateMutability&&e.stateMutability!=="nonpayable"?` ${e.stateMutability}`:""}${(t=e.outputs)!=null&&t.length?` returns (${xc(e.outputs)})`:""}`:e.type==="event"?`event ${e.name}(${xc(e.inputs)})`:e.type==="error"?`error ${e.name}(${xc(e.inputs)})`:e.type==="constructor"?`constructor(${xc(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 UU=e=>lr(A1(e));function MU(e){return UU(e)}function jU(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 _e("Unable to normalize signature.");return s}const PU=e=>{const t=typeof e=="string"?e:DU(e);return jU(t)};function GR(e){return MU(PU(e))}const NU=GR,T1=e=>Lc(GR(e),0,4);function QR(e){const{abi:t,args:i=[],name:a}=e,s=Ki(a,{strict:!1}),c=t.filter(f=>s?f.type==="function"?T1(f)===a:f.type==="event"?NU(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,A)=>{const v="inputs"in f&&f.inputs[A];return v?Qb(h,v):!1})){if(l&&"inputs"in l&&l.inputs){const h=kR(f.inputs,l.inputs,i);if(h)throw new sU({abiItem:f,type:h[0]},{abiItem:l,type:h[1]})}l=f}}return l||c[0]}function Qb(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)=>Qb(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=>Qb(s,{...t,type:a.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function kR(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 kR(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 sI="/docs/contract/encodeFunctionData";function LU(e){const{abi:t,args:i,functionName:a}=e;let s=t[0];if(a){const c=QR({abi:t,args:i,name:a});if(!c)throw new aI(a,{docsPath:sI});s=c}if(s.type!=="function")throw new aI(void 0,{docsPath:sI});return{abi:[s],functionName:T1(Ys(s))}}function VR(e){const{args:t}=e,{abi:i,functionName:a}=(()=>{var f;return e.abi.length===1&&((f=e.functionName)!=null&&f.startsWith("0x"))?e:LU(e)})(),s=i[0],c=a,l="inputs"in s&&s.inputs?Qd(s.inputs,t??[]):void 0;return Ma([c,l??"0x"])}const qU={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."},$U={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},HU={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};function zU(e,t={}){typeof t.size<"u"&&gi(e,{size:t.size});const i=Un(e,t);return fi(i,t)}function GU(e,t={}){let i=e;if(typeof t.size<"u"&&(gi(i,{size:t.size}),i=_a(i)),i.length>1||i[0]>1)throw new Y4(i);return!!i[0]}function Qi(e,t={}){typeof t.size<"u"&&gi(e,{size:t.size});const i=Un(e,t);return Yi(i,t)}function QU(e,t={}){let i=e;return typeof t.size<"u"&&(gi(i,{size:t.size}),i=_a(i,{dir:"right"})),new TextDecoder().decode(i)}function kU(e,t){const i=typeof t=="string"?Kr(t):t,a=v1(i);if(Qt(i)===0&&e.length>0)throw new O1;if(Qt(t)&&Qt(t)<32)throw new rU({data:typeof t=="string"?t:Un(t),params:e,size:Qt(t)});let s=0;const c=[];for(let l=0;l<e.length;++l){const f=e[l];a.setPosition(s);const[y,h]=$s(a,f,{staticPosition:0});s+=h,c.push(y)}return c}function $s(e,t,{staticPosition:i}){const a=R1(t.type);if(a){const[s,c]=a;return KU(e,{...t,type:c},{length:s,staticPosition:i})}if(t.type==="tuple")return JU(e,t,{staticPosition:i});if(t.type==="address")return VU(e);if(t.type==="bool")return YU(e);if(t.type.startsWith("bytes"))return XU(e,t,{staticPosition:i});if(t.type.startsWith("uint")||t.type.startsWith("int"))return ZU(e,t);if(t.type==="string")return WU(e,{staticPosition:i});throw new lU(t.type,{docsPath:"/docs/contract/decodeAbiParameters"})}const uI=32,kb=32;function VU(e){const t=e.readBytes(32);return[bl(Un(DR(t,-20))),32]}function KU(e,t,{length:i,staticPosition:a}){if(!i){const l=Qi(e.readBytes(kb)),f=a+l,y=f+uI;e.setPosition(f);const h=Qi(e.readBytes(uI)),A=qc(t);let v=0;const m=[];for(let I=0;I<h;++I){e.setPosition(y+(A?I*32:v));const[O,M]=$s(e,t,{staticPosition:y});v+=M,m.push(O)}return e.setPosition(a+32),[m,32]}if(qc(t)){const l=Qi(e.readBytes(kb)),f=a+l,y=[];for(let h=0;h<i;++h){e.setPosition(f+h*32);const[A]=$s(e,t,{staticPosition:f});y.push(A)}return e.setPosition(a+32),[y,32]}let s=0;const c=[];for(let l=0;l<i;++l){const[f,y]=$s(e,t,{staticPosition:a+s});s+=y,c.push(f)}return[c,s]}function YU(e){return[GU(e.readBytes(32),{size:32}),32]}function XU(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 y=e.readBytes(f);return e.setPosition(i+32),[Un(y),32]}return[Un(e.readBytes(Number.parseInt(s),32)),32]}function ZU(e,t){const i=t.type.startsWith("int"),a=Number.parseInt(t.type.split("int")[1]||"256"),s=e.readBytes(32);return[a>48?zU(s,{signed:i}):Qi(s,{signed:i}),32]}function JU(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(kb)),f=i+l;for(let y=0;y<t.components.length;++y){const h=t.components[y];e.setPosition(f+c);const[A,v]=$s(e,h,{staticPosition:f});c+=v,s[a?y:h==null?void 0:h.name]=A}return e.setPosition(i+32),[s,32]}for(let l=0;l<t.components.length;++l){const f=t.components[l],[y,h]=$s(e,f,{staticPosition:i});s[a?l:f==null?void 0:f.name]=y,c+=h}return[s,c]}function WU(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=QU(_a(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=R1(e.type);return!!(i&&qc({...e,type:i[1]}))}function eM(e){const{abi:t,data:i}=e,a=Lc(i,0,4);if(a==="0x")throw new O1;const c=[...t||[],$U,HU].find(l=>l.type==="error"&&a===T1(Ys(l)));if(!c)throw new MR(a,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:c,args:"inputs"in c&&c.inputs&&c.inputs.length>0?kU(c.inputs,Lc(i,4)):void 0,errorName:c.name}}function KR({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 tM extends _e{constructor({address:t}){super(`State for account "${t}" is set multiple times.`,{name:"AccountStateConflictError"})}}class nM extends _e{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}const rM=e=>e,_1=e=>e;class iM extends _e{constructor(t,{abi:i,args:a,contractAddress:s,docsPath:c,functionName:l,sender:f}){const y=QR({abi:i,args:a,name:l}),h=y?KR({abiItem:y,args:a,includeFunctionName:!1,includeName:!1}):void 0,A=y?Ys(y,{includeName:!0}):void 0,v=$d({address:s&&rM(s),function:A,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 aM extends _e{constructor({abi:t,data:i,functionName:a,message:s}){let c,l,f,y;if(i&&i!=="0x")try{l=eM({abi:t,data:i});const{abiItem:A,errorName:v,args:m}=l;if(v==="Error")y=m[0];else if(v==="Panic"){const[I]=m;y=qU[I]}else{const I=A?Ys(A,{includeName:!0}):void 0,O=A&&m?KR({abiItem:A,args:m,includeFunctionName:!1,includeName:!1}):void 0;f=[I?`Error: ${I}`:"",O&&O!=="()"?` ${[...Array((v==null?void 0:v.length)??0).keys()].map(()=>" ").join("")}${O}`:""]}}catch(A){c=A}else s&&(y=s);let h;c instanceof MR&&(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(y&&y!=="execution reverted"||h?[`The contract function "${a}" reverted with the following ${h?"signature":"reason"}:`,y||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=y,this.signature=h}}class oM extends _e{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 sM extends _e{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 _c extends _e{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: ${_1(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 D1 extends _e{constructor({body:t,error:i,url:a}){super("RPC Request failed.",{cause:i,details:i.message,metaMessages:[`URL: ${_1(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 cI extends _e{constructor({body:t,url:i}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${_1(i)}`,`Request body: ${Vr(t)}`],name:"TimeoutError"})}}const uM=-1;class er extends _e{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 D1?t.code:i??uM}}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 $c extends er{constructor(t){super(t,{code:$c.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty($c,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class Hc extends er{constructor(t){super(t,{code:Hc.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(Hc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class zc extends er{constructor(t,{method:i}={}){super(t,{code:zc.code,name:"MethodNotFoundRpcError",shortMessage:`The method${i?` "${i}"`:""} does not exist / is not available.`})}}Object.defineProperty(zc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class Gc extends er{constructor(t){super(t,{code:Gc.code,name:"InvalidParamsRpcError",shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join(`
59
+ `)})}}Object.defineProperty(Gc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class Ro extends er{constructor(t){super(t,{code:Ro.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(Ro,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class Qc extends er{constructor(t){super(t,{code:Qc.code,name:"InvalidInputRpcError",shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join(`
60
+ `)})}}Object.defineProperty(Qc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class kc extends er{constructor(t){super(t,{code:kc.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(kc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class Vc extends er{constructor(t){super(t,{code:Vc.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(Vc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class Kc extends er{constructor(t){super(t,{code:Kc.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(Kc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class So extends er{constructor(t,{method:i}={}){super(t,{code:So.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${i?` "${i}"`:""} is not supported.`})}}Object.defineProperty(So,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class Xs extends er{constructor(t){super(t,{code:Xs.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty(Xs,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class Yc extends er{constructor(t){super(t,{code:Yc.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(Yc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class Hs extends yr{constructor(t){super(t,{code:Hs.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(Hs,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class Xc extends yr{constructor(t){super(t,{code:Xc.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(Xc,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class Zc extends yr{constructor(t,{method:i}={}){super(t,{code:Zc.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${i?` " ${i}"`:""}.`})}}Object.defineProperty(Zc,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class Jc extends yr{constructor(t){super(t,{code:Jc.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(Jc,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class Wc extends yr{constructor(t){super(t,{code:Wc.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(Wc,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class el extends yr{constructor(t){super(t,{code:el.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(el,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class Zs extends yr{constructor(t){super(t,{code:Zs.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}Object.defineProperty(Zs,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class tl extends yr{constructor(t){super(t,{code:tl.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}Object.defineProperty(tl,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class nl extends yr{constructor(t){super(t,{code:nl.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}Object.defineProperty(nl,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class rl extends yr{constructor(t){super(t,{code:rl.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}Object.defineProperty(rl,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class il extends yr{constructor(t){super(t,{code:il.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}Object.defineProperty(il,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class al extends yr{constructor(t){super(t,{code:al.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}Object.defineProperty(al,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750});class Js extends yr{constructor(t){super(t,{code:Js.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}Object.defineProperty(Js,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class cM extends er{constructor(t){super(t,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}const lM=3;function fM(e,{abi:t,address:i,args:a,docsPath:s,functionName:c,sender:l}){const f=e instanceof sM?e:e instanceof _e?e.walk(O=>"data"in O)||e.walk():{},{code:y,data:h,details:A,message:v,shortMessage:m}=f,I=e instanceof O1?new oM({functionName:c}):[lM,Ro.code].includes(y)&&(h||A||v||m)?new aM({abi:t,data:typeof h=="object"?h.data:h,functionName:c,message:f instanceof D1?A:m??v}):e;return new iM(I,{abi:t,args:a,contractAddress:i,docsPath:s,functionName:c,sender:l})}const dM="modulepreload",hM=function(e){return"/"+e},lI={},pM=function(t,i,a){let s=Promise.resolve();if(i&&i.length>0){let l=function(h){return Promise.all(h.map(A=>Promise.resolve(A).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const f=document.querySelector("meta[property=csp-nonce]"),y=(f==null?void 0:f.nonce)||(f==null?void 0:f.getAttribute("nonce"));s=l(i.map(h=>{if(h=hM(h),h in lI)return;lI[h]=!0;const A=h.endsWith(".css"),v=A?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${v}`))return;const m=document.createElement("link");if(m.rel=A?"stylesheet":dM,A||(m.as="script"),m.crossOrigin="",m.href=h,y&&m.setAttribute("nonce",y),document.head.appendChild(m),A)return new Promise((I,O)=>{m.addEventListener("load",I),m.addEventListener("error",()=>O(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 yM({hash:e,signature:t}){const i=Ki(e)?e:di(e),{secp256k1:a}=await pM(async()=>{const{secp256k1:l}=await Promise.resolve().then(()=>K4);return{secp256k1:l}},void 0);return`0x${(()=>{if(typeof t=="object"&&"r"in t&&"s"in t){const{r:h,s:A,v,yParity:m}=t,I=Number(m??v),O=fI(I);return new a.Signature(fi(h),fi(A)).addRecoveryBit(O)}const l=Ki(t)?t:di(t);if(Qt(l)!==65)throw new Error("invalid signature length");const f=Yi(`0x${l.slice(130)}`),y=fI(f);return a.Signature.fromCompact(l.substring(2,130)).addRecoveryBit(y)})().recoverPublicKey(i.substring(2)).toHex(!1)}`}function fI(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 gM({hash:e,signature:t}){return bR(await yM({hash:e,signature:t}))}async function YR(e){const{authorization:t,signature:i}=e;return gM({hash:ER(t),signature:i??t})}class mM extends _e{constructor(t,{account:i,docsPath:a,chain:s,data:c,gas:l,gasPrice:f,maxFeePerGas:y,maxPriorityFeePerGas:h,nonce:A,to:v,value:m}){var O;const I=$d({from:i==null?void 0:i.address,to:v,value:typeof m<"u"&&`${IR(m)} ${((O=s==null?void 0:s.nativeCurrency)==null?void 0:O.symbol)||"ETH"}`,data:c,gas:l,gasPrice:typeof f<"u"&&`${kr(f)} gwei`,maxFeePerGas:typeof y<"u"&&`${kr(y)} gwei`,maxPriorityFeePerGas:typeof h<"u"&&`${kr(h)} gwei`,nonce:A});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 XR(e,t){const i=(e.details||"").toLowerCase(),a=e instanceof _e?e.walk(s=>(s==null?void 0:s.code)===js.code):e;return a instanceof _e?new js({cause:e,message:a.details}):js.nodeMessage.test(i)?new js({cause:e,message:e.details}):Bo.nodeMessage.test(i)?new Bo({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas}):Mb.nodeMessage.test(i)?new Mb({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas}):jb.nodeMessage.test(i)?new jb({cause:e,nonce:t==null?void 0:t.nonce}):Pb.nodeMessage.test(i)?new Pb({cause:e,nonce:t==null?void 0:t.nonce}):Nb.nodeMessage.test(i)?new Nb({cause:e,nonce:t==null?void 0:t.nonce}):Lb.nodeMessage.test(i)?new Lb({cause:e}):qb.nodeMessage.test(i)?new qb({cause:e,gas:t==null?void 0:t.gas}):$b.nodeMessage.test(i)?new $b({cause:e,gas:t==null?void 0:t.gas}):Hb.nodeMessage.test(i)?new Hb({cause:e}):Nc.nodeMessage.test(i)?new Nc({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas,maxPriorityFeePerGas:t==null?void 0:t.maxPriorityFeePerGas}):new I1({cause:e})}function AM(e,{docsPath:t,...i}){const a=(()=>{const s=XR(e,i);return s instanceof I1?e:s})();return new mM(a,{docsPath:t,...i})}function ZR(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 bM={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function U1(e){const t={};return typeof e.authorizationList<"u"&&(t.authorizationList=vM(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=bM[e.type]),typeof e.value<"u"&&(t.value=Pe(e.value)),t}function vM(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 dI(e){if(!(!e||e.length===0))return e.reduce((t,{slot:i,value:a})=>{if(i.length!==66)throw new Z2({size:i.length,targetSize:66,type:"hex"});if(a.length!==66)throw new Z2({size:a.length,targetSize:66,type:"hex"});return t[i]=a,t},{})}function xM(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=dI(a)),s!==void 0){if(l.state)throw new nM;l.stateDiff=dI(s)}return l}function EM(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 tM({address:i});t[i]=xM(a)}return t}function kd(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 RD;if(a&&a>Hd)throw new Bo({maxFeePerGas:a});if(s&&a&&s>a)throw new Nc({maxFeePerGas:a,maxPriorityFeePerGas:s})}class wM extends _e{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}class M1 extends _e{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}class IM extends _e{constructor({maxPriorityFeePerGas:t}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${kr(t)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}class SM extends _e{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 CM={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function OM(e){const t={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?Yi(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?Yi(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?CM[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=FM(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 FM(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 BM(e){const t=(e.transactions??[]).map(i=>typeof i=="string"?i:OM(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 Cd(e,{blockHash:t,blockNumber:i,blockTag:a=e.experimental_blockTag??"latest",includeTransactions:s}={}){var h,A,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 SM({blockHash:t,blockNumber:i});return(((v=(A=(h=e.chain)==null?void 0:h.formatters)==null?void 0:A.block)==null?void 0:v.format)||BM)(f)}async function JR(e){const t=await e.request({method:"eth_gasPrice"});return BigInt(t)}async function RM(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,Cd,"getBlock")({}),A=await f({block:h,client:e,request:s});if(A===null)throw new Error;return A}if(typeof f<"u")return f;const y=await e.request({method:"eth_maxPriorityFeePerGas"});return fi(y)}catch{const[f,y]=await Promise.all([i?Promise.resolve(i):Dn(e,Cd,"getBlock")({}),Dn(e,JR,"getGasPrice")({})]);if(typeof f.baseFeePerGas!="bigint")throw new M1;const h=y-f.baseFeePerGas;return h<0n?0n:h}}async function hI(e,t){var m,I;const{block:i,chain:a=e.chain,request:s,type:c="eip1559"}=t||{},l=await(async()=>{var O,M;return typeof((O=a==null?void 0:a.fees)==null?void 0:O.baseFeeMultiplier)=="function"?a.fees.baseFeeMultiplier({block:i,client:e,request:s}):((M=a==null?void 0:a.fees)==null?void 0:M.baseFeeMultiplier)??1.2})();if(l<1)throw new wM;const y=10**(((m=l.toString().split(".")[1])==null?void 0:m.length)??0),h=O=>O*BigInt(Math.ceil(l*y))/BigInt(y),A=i||await Dn(e,Cd,"getBlock")({});if(typeof((I=a==null?void 0:a.fees)==null?void 0:I.estimateFeesPerGas)=="function"){const O=await a.fees.estimateFeesPerGas({block:i,client:e,multiply:h,request:s,type:c});if(O!==null)return O}if(c==="eip1559"){if(typeof A.baseFeePerGas!="bigint")throw new M1;const O=typeof(s==null?void 0:s.maxPriorityFeePerGas)=="bigint"?s.maxPriorityFeePerGas:await RM(e,{block:A,chain:a,request:s}),M=h(A.baseFeePerGas);return{maxFeePerGas:(s==null?void 0:s.maxFeePerGas)??M+O,maxPriorityFeePerGas:O}}return{gasPrice:(s==null?void 0:s.gasPrice)??h(await Dn(e,JR,"getGasPrice")({}))}}async function El(e){const t=await e.request({method:"eth_chainId"},{dedupe:!0});return Yi(t)}const WR=["blobVersionedHashes","chainId","fees","gas","nonce","type"],pI=new Map;async function j1(e,t){const{account:i=e.account,blobs:a,chain:s,gas:c,kzg:l,nonce:f,nonceManager:y,parameters:h=WR,type:A}=t,v=i&&Zn(i),m={...t,...v?{from:v==null?void 0:v.address}:{}};let I;async function O(){return I||(I=await Dn(e,Cd,"getBlock")({blockTag:"latest"}),I)}let M;async function B(){return M||(s?s.id:typeof t.chainId<"u"?t.chainId:(M=await Dn(e,El,"getChainId")({}),M))}if(h.includes("nonce")&&typeof f>"u"&&v)if(y){const R=await B();m.nonce=await y.consume({address:v.address,chainId:R,client:e})}else m.nonce=await Dn(e,zR,"getTransactionCount")({address:v.address,blockTag:"pending"});if((h.includes("blobVersionedHashes")||h.includes("sidecars"))&&a&&l){const R=x1({blobs:a,kzg:l});if(h.includes("blobVersionedHashes")){const U=SR({commitments:R,to:"hex"});m.blobVersionedHashes=U}if(h.includes("sidecars")){const U=E1({blobs:a,commitments:R,kzg:l}),j=RR({blobs:a,commitments:R,proofs:U,to:"hex"});m.sidecars=j}}if(h.includes("chainId")&&(m.chainId=await B()),(h.includes("fees")||h.includes("type"))&&typeof A>"u")try{m.type=UR(m)}catch{let R=pI.get(e.uid);if(typeof R>"u"){const U=await O();R=typeof(U==null?void 0:U.baseFeePerGas)=="bigint",pI.set(e.uid,R)}m.type=R?"eip1559":"legacy"}if(h.includes("fees"))if(m.type!=="legacy"&&m.type!=="eip2930"){if(typeof m.maxFeePerGas>"u"||typeof m.maxPriorityFeePerGas>"u"){const R=await O(),{maxFeePerGas:U,maxPriorityFeePerGas:j}=await hI(e,{block:R,chain:s,request:m});if(typeof t.maxPriorityFeePerGas>"u"&&t.maxFeePerGas&&t.maxFeePerGas<j)throw new IM({maxPriorityFeePerGas:j});m.maxPriorityFeePerGas=j,m.maxFeePerGas=U}}else{if(typeof t.maxFeePerGas<"u"||typeof t.maxPriorityFeePerGas<"u")throw new M1;if(typeof t.gasPrice>"u"){const R=await O(),{gasPrice:U}=await hI(e,{block:R,chain:s,request:m,type:"legacy"});m.gasPrice=U}}return h.includes("gas")&&typeof c>"u"&&(m.gas=await Dn(e,_M,"estimateGas")({...m,account:v&&{address:v.address,type:"json-rpc"}})),kd(m),delete m.parameters,m}async function TM(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 _M(e,t){var c,l,f;const{account:i=e.account}=t,a=i?Zn(i):void 0;try{let pe=function(te){const{block:le,request:V,rpcStateOverride:F}=te;return e.request({method:"eth_estimateGas",params:F?[V,le??e.experimental_blockTag??"latest",F]:le?[V,le]:[V]})};var s=pe;const{accessList:y,authorizationList:h,blobs:A,blobVersionedHashes:v,blockNumber:m,blockTag:I,data:O,gas:M,gasPrice:B,maxFeePerBlobGas:R,maxFeePerGas:U,maxPriorityFeePerGas:j,nonce:K,value:H,stateOverride:ie,...ye}=await j1(e,{...t,parameters:(a==null?void 0:a.type)==="local"?void 0:["blobVersionedHashes"]}),D=(typeof m=="bigint"?Pe(m):void 0)||I,$=EM(ie),k=await(async()=>{if(ye.to)return ye.to;if(h&&h.length>0)return await YR({authorization:h[0]}).catch(()=>{throw new _e("`to` is required. Could not infer from `authorizationList`")})})();kd(t);const Q=(f=(l=(c=e.chain)==null?void 0:c.formatters)==null?void 0:l.transactionRequest)==null?void 0:f.format,Z=(Q||U1)({...ZR(ye,{format:Q}),from:a==null?void 0:a.address,accessList:y,authorizationList:h,blobs:A,blobVersionedHashes:v,data:O,gas:M,gasPrice:B,maxFeePerBlobGas:R,maxFeePerGas:U,maxPriorityFeePerGas:j,nonce:K,to:k,value:H});let _=BigInt(await pe({block:D,request:Z,rpcStateOverride:$}));if(h){const te=await TM(e,{address:Z.from}),le=await Promise.all(h.map(async V=>{const{address:F}=V,z=await pe({block:D,request:{authorizationList:void 0,data:O,from:a==null?void 0:a.address,to:F,value:Pe(te)},rpcStateOverride:$}).catch(()=>100000n);return 2n*BigInt(z)}));_+=le.reduce((V,F)=>V+F,0n)}return _}catch(y){throw AM(y,{...t,account:a,chain:e.chain})}}function DM(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 eg="/docs/contract/encodeDeployData";function UM(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 nU({docsPath:eg});if(!("inputs"in s))throw new iI({docsPath:eg});if(!s.inputs||s.inputs.length===0)throw new iI({docsPath:eg});const c=Qd(s.inputs,i);return Ma([a,c])}function eT(){let e=()=>{},t=()=>{};return{promise:new Promise((a,s)=>{e=a,t=s}),resolve:e,reject:t}}const tg=new Map;function MM({fn:e,id:t,shouldSplitBatch:i,wait:a=0,sort:s}){const c=async()=>{const A=y();l();const v=A.map(({args:m})=>m);v.length!==0&&e(v).then(m=>{s&&Array.isArray(m)&&m.sort(s);for(let I=0;I<A.length;I++){const{resolve:O}=A[I];O==null||O([m[I],m])}}).catch(m=>{for(let I=0;I<A.length;I++){const{reject:O}=A[I];O==null||O(m)}})},l=()=>tg.delete(t),f=()=>y().map(({args:A})=>A),y=()=>tg.get(t)||[],h=A=>tg.set(t,[...y(),A]);return{flush:l,async schedule(A){const{promise:v,resolve:m,reject:I}=eT();return(i==null?void 0:i([...f(),A]))&&c(),y().length>0?(h({args:A,resolve:m,reject:I}),v):(h({args:A,resolve:m,reject:I}),setTimeout(c,a),v)}}}const ng=new Map,yI=new Map;let jM=0;function PM(e,t,i){const a=++jM,s=()=>ng.get(e)||[],c=()=>{const A=s();ng.set(e,A.filter(v=>v.id!==a))},l=()=>{const A=s();if(!A.some(m=>m.id===a))return;const v=yI.get(e);if(A.length===1&&v){const m=v();m instanceof Promise&&m.catch(()=>{})}c()},f=s();if(ng.set(e,[...f,{id:a,fns:t}]),f&&f.length>0)return l;const y={};for(const A in t)y[A]=((...v)=>{var I,O;const m=s();if(m.length!==0)for(const M of m)(O=(I=M.fns)[A])==null||O.call(I,...v)});const h=i(y);return typeof h=="function"&&yI.set(e,h),l}async function Vb(e){return new Promise(t=>setTimeout(t,e))}function NM(e,{emitOnBegin:t,initialWaitTime:i,interval:a}){let s=!0;const c=()=>s=!1;return(async()=>{let f;f=await e({unpoll:c});const y=await(i==null?void 0:i(f))??a;await Vb(y);const h=async()=>{s&&(await e({unpoll:c}),await Vb(a),h())};h()})(),c}class Uo extends _e{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 gd extends _e{constructor({docsPath:t,metaMessages:i,type:a}){super(`Account type "${a}" is not supported.`,{docsPath:t,metaMessages:i,name:"AccountTypeNotSupportedError"})}}function tT({chain:e,currentChainId:t}){if(!e)throw new zD;if(t!==e.id)throw new HD({chain:e,currentChainId:t})}function nT(e,{docsPath:t,...i}){const a=(()=>{const s=XR(e,i);return s instanceof I1?e:s})();return new UD(a,{docsPath:t,...i})}async function rT(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]},{retryCount:0})}const rg=new qd(128);async function Vd(e,t){var U,j,K,H;const{account:i=e.account,chain:a=e.chain,accessList:s,authorizationList:c,blobs:l,data:f,gas:y,gasPrice:h,maxFeePerBlobGas:A,maxFeePerGas:v,maxPriorityFeePerGas:m,nonce:I,type:O,value:M,...B}=t;if(typeof i>"u")throw new Uo({docsPath:"/docs/actions/wallet/sendTransaction"});const R=i?Zn(i):null;try{kd(t);const ie=await(async()=>{if(t.to)return t.to;if(t.to!==null&&c&&c.length>0)return await YR({authorization:c[0]}).catch(()=>{throw new _e("`to` is required. Could not infer from `authorizationList`.")})})();if((R==null?void 0:R.type)==="json-rpc"||R===null){let ye;a!==null&&(ye=await Dn(e,El,"getChainId")({}),tT({currentChainId:ye,chain:a}));const fe=(K=(j=(U=e.chain)==null?void 0:U.formatters)==null?void 0:j.transactionRequest)==null?void 0:K.format,$=(fe||U1)({...ZR(B,{format:fe}),accessList:s,authorizationList:c,blobs:l,chainId:ye,data:f,from:R==null?void 0:R.address,gas:y,gasPrice:h,maxFeePerBlobGas:A,maxFeePerGas:v,maxPriorityFeePerGas:m,nonce:I,to:ie,type:O,value:M}),k=rg.get(e.uid),Q=k?"wallet_sendTransaction":"eth_sendTransaction";try{return await e.request({method:Q,params:[$]},{retryCount:0})}catch(re){if(k===!1)throw re;const Z=re;if(Z.name==="InvalidInputRpcError"||Z.name==="InvalidParamsRpcError"||Z.name==="MethodNotFoundRpcError"||Z.name==="MethodNotSupportedRpcError")return await e.request({method:"wallet_sendTransaction",params:[$]},{retryCount:0}).then(pe=>(rg.set(e.uid,!0),pe)).catch(pe=>{const _=pe;throw _.name==="MethodNotFoundRpcError"||_.name==="MethodNotSupportedRpcError"?(rg.set(e.uid,!1),Z):_});throw Z}}if((R==null?void 0:R.type)==="local"){const ye=await Dn(e,j1,"prepareTransactionRequest")({account:R,accessList:s,authorizationList:c,blobs:l,chain:a,data:f,gas:y,gasPrice:h,maxFeePerBlobGas:A,maxFeePerGas:v,maxPriorityFeePerGas:m,nonce:I,nonceManager:R.nonceManager,parameters:[...WR,"sidecars"],type:O,value:M,...B,to:ie}),fe=(H=a==null?void 0:a.serializers)==null?void 0:H.transaction,D=await R.signTransaction(ye,{serializer:fe});return await Dn(e,rT,"sendRawTransaction")({serializedTransaction:D})}throw(R==null?void 0:R.type)==="smart"?new gd({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new gd({docsPath:"/docs/actions/wallet/sendTransaction",type:R==null?void 0:R.type})}catch(ie){throw ie instanceof gd?ie:nT(ie,{...t,account:R,chain:t.chain||void 0})}}async function LM(e,t){const{abi:i,account:a=e.account,address:s,args:c,dataSuffix:l,functionName:f,...y}=t;if(typeof a>"u")throw new Uo({docsPath:"/docs/contract/writeContract"});const h=a?Zn(a):null,A=VR({abi:i,args:c,functionName:f});try{return await Dn(e,Vd,"sendTransaction")({data:`${A}${l?l.replace("0x",""):""}`,to:s,account:h,...y})}catch(v){throw fM(v,{abi:i,address:s,args:c,docsPath:"/docs/contract/writeContract",functionName:f,sender:h==null?void 0:h.address})}}class qM extends _e{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 iT(e,{delay:t=100,retryCount:i=2,shouldRetry:a=()=>!0}={}){return new Promise((s,c)=>{const l=async({count:f=0}={})=>{const y=async({error:h})=>{const A=typeof t=="function"?t({count:f,error:h}):t;A&&await Vb(A),l({count:f+1})};try{const h=await e();s(h)}catch(h){if(f<i&&await a({count:f,error:h}))return y({error:h});c(h)}};l()})}const $M={"0x0":"reverted","0x1":"success"},aT="0x5792579257925792579257925792579257925792579257925792579257925792",oT=Pe(0,{size:32});async function HM(e,t){const{account:i=e.account,capabilities:a,chain:s=e.chain,experimental_fallback:c,experimental_fallbackDelay:l=32,forceAtomic:f=!1,id:y,version:h="2.0.0"}=t,A=i?Zn(i):null,v=t.calls.map(m=>{const I=m,O=I.abi?VR({abi:I.abi,functionName:I.functionName,args:I.args}):I.data;return{data:I.dataSuffix&&O?hi([O,I.dataSuffix]):O,to:I.to,value:I.value?Pe(I.value):void 0}});try{const m=await e.request({method:"wallet_sendCalls",params:[{atomicRequired:f,calls:v,capabilities:a,chainId:Pe(s.id),from:A==null?void 0:A.address,id:y,version:h}]},{retryCount:0});return typeof m=="string"?{id:m}:m}catch(m){const I=m;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(U=>!U.optional)){const U="non-optional `capabilities` are not supported on fallback to `eth_sendTransaction`.";throw new Zs(new _e(U,{details:U}))}if(f&&v.length>1){const R="`forceAtomic` is not supported on fallback to `eth_sendTransaction`.";throw new Js(new _e(R,{details:R}))}const O=[];for(const R of v){const U=Vd(e,{account:A,chain:s,data:R.data,to:R.to,value:R.value?fi(R.value):void 0});O.push(U),l>0&&await new Promise(j=>setTimeout(j,l))}const M=await Promise.allSettled(O);if(M.every(R=>R.status==="rejected"))throw M[0].reason;const B=M.map(R=>R.status==="fulfilled"?R.value:oT);return{id:hi([...B,Pe(s.id,{size:32}),aT])}}throw nT(m,{...t,account:A,chain:t.chain})}}async function sT(e,t){async function i(A){if(A.endsWith(aT.slice(2))){const m=_a(zb(A,-64,-32)),I=zb(A,0,-64).slice(2).match(/.{1,64}/g),O=await Promise.all(I.map(B=>oT.slice(2)!==B?e.request({method:"eth_getTransactionReceipt",params:[`0x${B}`]},{dedupe:!0}):void 0)),M=O.some(B=>B===null)?100:O.every(B=>(B==null?void 0:B.status)==="0x1")?200:O.every(B=>(B==null?void 0:B.status)==="0x0")?500:600;return{atomic:!1,chainId:Yi(m),receipts:O.filter(Boolean),status:M,version:"2.0.0"}}return e.request({method:"wallet_getCallsStatus",params:[A]})}const{atomic:a=!1,chainId:s,receipts:c,version:l="2.0.0",...f}=await i(t.id),[y,h]=(()=>{const A=f.status;return A>=100&&A<200?["pending",A]:A>=200&&A<300?["success",A]:A>=300&&A<700?["failure",A]:A==="CONFIRMED"?["success",200]:A==="PENDING"?["pending",100]:[void 0,A]})();return{...f,atomic:a,chainId:s?Yi(s):void 0,receipts:(c==null?void 0:c.map(A=>({...A,blockNumber:fi(A.blockNumber),gasUsed:fi(A.gasUsed),status:$M[A.status]})))??[],statusCode:h,status:y,version:l}}async function zM(e,t){const{id:i,pollingInterval:a=e.pollingInterval,status:s=({statusCode:M})=>M===200||M>=300,retryCount:c=4,retryDelay:l=({count:M})=>~~(1<<M)*200,timeout:f=6e4,throwOnFailure:y=!1}=t,h=Vr(["waitForCallsStatus",e.uid,i]),{promise:A,resolve:v,reject:m}=eT();let I;const O=PM(h,{resolve:v,reject:m},M=>{const B=NM(async()=>{const R=U=>{clearTimeout(I),B(),U(),O()};try{const U=await iT(async()=>{const j=await sT(e,{id:i});if(y&&j.status==="failure")throw new qM(j);return j},{retryCount:c,delay:l});if(!s(U))return;R(()=>M.resolve(U))}catch(U){R(()=>M.reject(U))}},{interval:a,emitOnBegin:!0});return B});return I=f?setTimeout(()=>{O(),clearTimeout(I),m(new GM({id:i}))},f):void 0,await A}class GM extends _e{constructor({id:t}){super(`Timed out while waiting for call bundle with id "${t}" to be confirmed.`,{name:"WaitForCallsStatusTimeoutError"})}}const Kb=256;let id=Kb,ad;function uT(e=11){if(!ad||id+e>Kb*2){ad="",id=0;for(let t=0;t<Kb;t++)ad+=(256+Math.random()*256|0).toString(16).substring(1)}return ad.substring(id,id+++e)}function QM(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),y=(i==null?void 0:i.blockTime)??12e3,h=Math.min(Math.max(Math.floor(y/2),500),4e3),A=e.pollingInterval??h,v=e.cacheTime??A,m=e.account?Zn(e.account):void 0,{config:I,request:O,value:M}=e.transport({chain:i,pollingInterval:A}),B={...I,...M},R={account:m,batch:t,cacheTime:v,ccipRead:a,chain:i,key:s,name:c,pollingInterval:A,request:O,transport:B,type:l,uid:uT(),...f?{experimental_blockTag:f}:{}};function U(j){return K=>{const H=K(j);for(const ye in R)delete H[ye];const ie={...j,...H};return Object.assign(ie,{extend:U(ie)})}}return Object.assign(R,{extend:U(R)})}const od=new qd(8192);function kM(e,{enabled:t=!0,id:i}){if(!t||!i)return e();if(od.get(i))return od.get(i);const a=e().finally(()=>od.delete(i));return od.set(i,a),a}function VM(e,t={}){return async(i,a={})=>{var v;const{dedupe:s=!1,methods:c,retryDelay:l=150,retryCount:f=3,uid:y}={...t,...a},{method:h}=i;if((v=c==null?void 0:c.exclude)!=null&&v.includes(h))throw new So(new Error("method not supported"),{method:h});if(c!=null&&c.include&&!c.include.includes(h))throw new So(new Error("method not supported"),{method:h});const A=s?Ks(`${y}.${Vr(i)}`):void 0;return kM(()=>iT(async()=>{try{return await e(i)}catch(m){const I=m;switch(I.code){case $c.code:throw new $c(I);case Hc.code:throw new Hc(I);case zc.code:throw new zc(I,{method:i.method});case Gc.code:throw new Gc(I);case Ro.code:throw new Ro(I);case Qc.code:throw new Qc(I);case kc.code:throw new kc(I);case Vc.code:throw new Vc(I);case Kc.code:throw new Kc(I);case So.code:throw new So(I,{method:i.method});case Xs.code:throw new Xs(I);case Yc.code:throw new Yc(I);case Hs.code:throw new Hs(I);case Xc.code:throw new Xc(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 Zs.code:throw new Zs(I);case tl.code:throw new tl(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 Js.code:throw new Js(I);case 5e3:throw new Hs(I);default:throw m instanceof _e?m:new cM(I)}}},{delay:({count:m,error:I})=>{var O;if(I&&I instanceof _c){const M=(O=I==null?void 0:I.headers)==null?void 0:O.get("Retry-After");if(M!=null&&M.match(/\d/))return Number.parseInt(M)*1e3}return~~(1<<m)*l},retryCount:f,shouldRetry:({error:m})=>KM(m)}),{enabled:s,id:A})}}function KM(e){return"code"in e&&typeof e.code=="number"?e.code===-1||e.code===Xs.code||e.code===Ro.code:e instanceof _c&&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 YM({key:e,methods:t,name:i,request:a,retryCount:s=3,retryDelay:c=150,timeout:l,type:f},y){const h=uT();return{config:{key:e,methods:t,name:i,request:a,retryCount:s,retryDelay:c,timeout:l,type:f},request:VM(a,{methods:t,retryCount:s,retryDelay:c,uid:h}),value:y}}class XM extends _e{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 ZM(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 JM(){return{current:0,take(){return this.current++},reset(){this.current=0}}}const gI=JM();function WM(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:y,method:h,signal:A}=f;try{const m=await ZM(async({signal:O})=>{const M={...f,body:Array.isArray(a)?Vr(a.map(j=>({jsonrpc:"2.0",id:j.id??gI.take(),...j}))):Vr({jsonrpc:"2.0",id:a.id??gI.take(),...a}),headers:{"Content-Type":"application/json",...y},method:h||"POST",signal:A||(l>0?O:null)},B=new Request(e,M),R=await(s==null?void 0:s(B,M))??{...M,url:e};return await fetch(R.url??e,R)},{errorInstance:new cI({body:a,url:e}),timeout:l,signal:!0});c&&await c(m);let I;if((v=m.headers.get("Content-Type"))!=null&&v.startsWith("application/json"))I=await m.json();else{I=await m.text();try{I=JSON.parse(I||"{}")}catch(O){if(m.ok)throw O;I={error:I}}}if(!m.ok)throw new _c({body:a,details:Vr(I.error)||m.statusText,headers:m.headers,status:m.status,url:e});return I}catch(m){throw m instanceof _c||m instanceof cI?m:new _c({body:a,cause:m,url:e})}}}}function Dc(e,t={}){const{batch:i,fetchOptions:a,key:s="http",methods:c,name:l="HTTP JSON-RPC",onFetchRequest:f,onFetchResponse:y,retryDelay:h,raw:A}=t;return({chain:v,retryCount:m,timeout:I})=>{const{batchSize:O=1e3,wait:M=0}=typeof i=="object"?i:{},B=t.retryCount??m,R=I??t.timeout??1e4,U=v==null?void 0:v.rpcUrls.default.http[0];if(!U)throw new XM;const j=WM(U,{fetchOptions:a,onRequest:f,onResponse:y,timeout:R});return YM({key:s,methods:c,name:l,async request({method:K,params:H}){const ie={method:K,params:H},{schedule:ye}=MM({id:U,wait:M,shouldSplitBatch(k){return k.length>O},fn:k=>j.request({body:k}),sort:(k,Q)=>k.id-Q.id}),fe=async k=>i?ye(k):[await j.request({body:k})],[{error:D,result:$}]=await fe(ie);if(A)return{error:D,result:$};if(D)throw new D1({body:ie,error:D,url:U});return $},retryCount:B,retryDelay:h,timeout:R,type:"http"},{fetchOptions:a,url:U})}}function ej(e){return{formatters:void 0,fees:void 0,serializers:void 0,...e}}async function tj(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 nj(e,t){const{abi:i,args:a,bytecode:s,...c}=t,l=UM({abi:i,args:a,bytecode:s});return Vd(e,{...c,...c.authorizationList?{to:null}:{},data:l})}async function rj(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=>bl(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[y,h]of Object.entries(l)){f[Number(y)]={};for(let[A,v]of Object.entries(h))A==="addSubAccount"&&(A="unstable_addSubAccount"),f[Number(y)][A]=v}return typeof a=="number"?f[a]:f}async function aj(e){return await e.request({method:"wallet_getPermissions"},{dedupe:!0})}async function cT(e,t){var y;const{account:i=e.account,chainId:a,nonce:s}=t;if(!i)throw new Uo({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=((y=e.chain)==null?void 0:y.id)??await Dn(e,El,"getChainId")({})),typeof f.nonce>"u"&&(f.nonce=await Dn(e,zR,"getTransactionCount")({address:c.address,blockTag:"pending"}),(l==="self"||l!=null&&l.address&&DM(l.address,c.address))&&(f.nonce+=1)),f}async function oj(e){return(await e.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(i=>hD(i))}async function sj(e,t){return e.request({method:"wallet_requestPermissions",params:[t]},{retryCount:0})}async function uj(e,t){const{id:i}=t;await e.request({method:"wallet_showCallsStatus",params:[i]})}async function cj(e,t){const{account:i=e.account}=t;if(!i)throw new Uo({docsPath:"/docs/eip7702/signAuthorization"});const a=Zn(i);if(!a.signAuthorization)throw new gd({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:a.type});const s=await cT(e,t);return a.signAuthorization(s)}async function lj(e,{account:t=e.account,message:i}){if(!t)throw new Uo({docsPath:"/docs/actions/wallet/signMessage"});const a=Zn(t);if(a.signMessage)return a.signMessage({message:i});const s=typeof i=="string"?Ks(i):i.raw instanceof Uint8Array?di(i.raw):i.raw;return e.request({method:"personal_sign",params:[s,a.address]},{retryCount:0})}async function fj(e,t){var h,A,v,m;const{account:i=e.account,chain:a=e.chain,...s}=t;if(!i)throw new Uo({docsPath:"/docs/actions/wallet/signTransaction"});const c=Zn(i);kd({account:c,...t});const l=await Dn(e,El,"getChainId")({});a!==null&&tT({currentChainId:l,chain:a});const f=(a==null?void 0:a.formatters)||((h=e.chain)==null?void 0:h.formatters),y=((A=f==null?void 0:f.transactionRequest)==null?void 0:A.format)||U1;return c.signTransaction?c.signTransaction({...s,chainId:l},{serializer:(m=(v=e.chain)==null?void 0:v.serializers)==null?void 0:m.transaction}):await e.request({method:"eth_signTransaction",params:[{...y(s),chainId:Pe(l),from:c.address}]},{retryCount:0})}async function dj(e,t){const{account:i=e.account,domain:a,message:s,primaryType:c}=t;if(!i)throw new Uo({docsPath:"/docs/actions/wallet/signTypedData"});const l=Zn(i),f={EIP712Domain:NR({domain:a}),...t.types};if(PR({domain:a,message:s,primaryType:c,types:f}),l.signTypedData)return l.signTypedData({domain:a,message:s,primaryType:c,types:f});const y=SU({domain:a,message:s,primaryType:c,types:f});return e.request({method:"eth_signTypedData_v4",params:[l.address,y]},{retryCount:0})}async function hj(e,{id:t}){await e.request({method:"wallet_switchEthereumChain",params:[{chainId:Pe(t)}]},{retryCount:0})}async function pj(e,t){return await e.request({method:"wallet_watchAsset",params:t},{retryCount:0})}function yj(e){return{addChain:t=>tj(e,t),deployContract:t=>nj(e,t),getAddresses:()=>rj(e),getCallsStatus:t=>sT(e,t),getCapabilities:t=>ij(e,t),getChainId:()=>El(e),getPermissions:()=>aj(e),prepareAuthorization:t=>cT(e,t),prepareTransactionRequest:t=>j1(e,t),requestAddresses:()=>oj(e),requestPermissions:t=>sj(e,t),sendCalls:t=>HM(e,t),sendRawTransaction:t=>rT(e,t),sendTransaction:t=>Vd(e,t),showCallsStatus:t=>uj(e,t),signAuthorization:t=>cj(e,t),signMessage:t=>lj(e,t),signTransaction:t=>fj(e,t),signTypedData:t=>dj(e,t),switchChain:t=>hj(e,t),waitForCallsStatus:t=>zM(e,t),watchAsset:t=>pj(e,t),writeContract:t=>LM(e,t)}}function Uc(e){const{key:t="wallet",name:i="Wallet Client",transport:a}=e;return QM({...e,key:t,name:i,transport:a,type:"walletClient"}).extend(yj)}const Mc=ej({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:10599,description:"Explorer Port. Example: '10599'"},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 Ke{static get MQTT_BROKER(){return Ke.getConfig(St.MQTT_BROKER)}static get MQTT_ENGINE_BROKER_PORT(){return Ke.getConfig(St.MQTT_ENGINE_BROKER_PORT)}static get MQTT_BATCHER_BROKER_PORT(){return Ke.getConfig(St.MQTT_BATCHER_BROKER_PORT)}static get MQTT_ENGINE_BROKER_URL(){return Ke.getConfig(St.MQTT_ENGINE_BROKER_URL)}static get MQTT_BATCHER_BROKER_URL(){return Ke.getConfig(St.MQTT_BATCHER_BROKER_URL)}static get DB_HOST(){return Ke.getConfig(St.DB_HOST)}static get DB_NAME(){return Ke.getConfig(St.DB_NAME)}static get DB_PORT(){return Ke.getConfig(St.DB_PORT)}static get DB_PW(){return Ke.getConfig(St.DB_PW)}static get DB_USER(){return Ke.getConfig(St.DB_USER)}static get NODE_ENV(){return Ke.getConfig(St.NODE_ENV)}static get ORCHESTRATOR_URL(){return Ke.getConfig(St.ORCHESTRATOR_URL)}static get ORCHESTRATOR_PORT(){return Ke.getConfig(St.ORCHESTRATOR_PORT)}static get TUI_LOG_URL(){return Ke.getConfig(St.TUI_LOG_URL)}static get TUI_LOG_PORT(){return Ke.getConfig(St.TUI_LOG_PORT)}static get SHELL(){return Ke.getConfig(St.SHELL)}static get TMUX(){return Ke.getConfig(St.TMUX)}static get PAIMA_API_PORT(){return Ke.getConfig(St.PAIMA_API_PORT)}static get RECAPTCHA_V3_FRONTEND(){return Ke.getConfig(St.RECAPTCHA_V3_FRONTEND)}static get BATCHER_PORT(){return Ke.getConfig(St.BATCHER_PORT)}static get PAIMA_EXPLORER_PORT(){return Ke.getConfig(St.PAIMA_EXPLORER_PORT)}static get PAIMA_CHAIN_ID(){return Ke.getConfig(St.PAIMA_CHAIN_ID)}static get PGLITE(){return Ke.getConfig(St.PGLITE)}static get DEBUG_PGLITE(){return Ke.getConfig(St.DEBUG_PGLITE)}static get OTEL_COLLECTOR_PORT(){return Ke.getConfig(St.OTEL_COLLECTOR_PORT)}static get DOCS_PORT(){return Ke.getConfig(St.DOCS_PORT)}static getConfig(t){switch(t.type){case"string":return Ke.getString(t.key,t.defaultValue);case"number":return Ke.getNumber(t.key,t.defaultValue);case"boolean":return Ke.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?Ke[s]:i:a[s]=Ke[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=Ke.getEnv(t);return a==null||a===""?i:["true","1","yes"].includes(a.toLowerCase())}static getNumber(t,i=0){const a=Ke.getEnv(t);return a==null||a===""?i:parseInt(a,10)}static getString(t,i=""){return Ke.getEnv(t)??i}static getEnv(t){try{return Deno.env.get(t)}catch{return it.env[t]}}}function gj(e){return rn(e)&&!tr(e)&&!Il(e)&&Symbol.asyncIterator in e}function tr(e){return Array.isArray(e)}function lT(e){return typeof e=="bigint"}function wl(e){return typeof e=="boolean"}function P1(e){return e instanceof globalThis.Date}function mj(e){return typeof e=="function"}function Aj(e){return rn(e)&&!tr(e)&&!Il(e)&&Symbol.iterator in e}function bj(e){return e===null}function pi(e){return typeof e=="number"}function rn(e){return typeof e=="object"&&e!==null}function fT(e){return e instanceof globalThis.RegExp}function Xt(e){return typeof e=="string"}function vj(e){return typeof e=="symbol"}function Il(e){return e instanceof globalThis.Uint8Array}function tn(e){return e===void 0}function xj(e){return e.map(t=>Od(t))}function Ej(e){return new Date(e.getTime())}function wj(e){return new Uint8Array(e)}function Ij(e){return new RegExp(e.source,e.flags)}function Sj(e){const t={};for(const i of Object.getOwnPropertyNames(e))t[i]=Od(e[i]);for(const i of Object.getOwnPropertySymbols(e))t[i]=Od(e[i]);return t}function Od(e){return tr(e)?xj(e):P1(e)?Ej(e):Il(e)?wj(e):fT(e)?Ij(e):rn(e)?Sj(e):e}function fr(e){return Od(e)}function N1(e,t){return fr(t===void 0?e:{...t,...e})}function Cj(e){return yi(e)&&globalThis.Symbol.asyncIterator in e}function Oj(e){return yi(e)&&globalThis.Symbol.iterator in e}function Fj(e){return e instanceof globalThis.Promise}function Kd(e){return e instanceof Date&&globalThis.Number.isFinite(e.getTime())}function Bj(e){return e instanceof globalThis.Map}function Rj(e){return e instanceof globalThis.Set}function Tj(e){return globalThis.ArrayBuffer.isView(e)}function dT(e){return e instanceof globalThis.Uint8Array}function _j(e,t){return t in e}function yi(e){return e!==null&&typeof e=="object"}function Da(e){return globalThis.Array.isArray(e)&&!globalThis.ArrayBuffer.isView(e)}function Mo(e){return e===void 0}function L1(e){return e===null}function q1(e){return typeof e=="boolean"}function Co(e){return typeof e=="number"}function Dj(e){return globalThis.Number.isInteger(e)}function $1(e){return typeof e=="bigint"}function Sl(e){return typeof e=="string"}function hT(e){return typeof e=="function"}function H1(e){return typeof e=="symbol"}function Uj(e){return $1(e)||q1(e)||L1(e)||Co(e)||Sl(e)||H1(e)||Mo(e)}var Ua;(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=yi(l);return e.AllowArrayObject?f:f&&!Da(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?Co(l):Number.isFinite(l)}e.IsNumberLike=s;function c(l){const f=Mo(l);return e.AllowNullVoid?f||l===null:f}e.IsVoidLike=c})(Ua||(Ua={}));function Mj(e){return globalThis.Object.freeze(e).map(t=>Fd(t))}function jj(e){const t={};for(const i of Object.getOwnPropertyNames(e))t[i]=Fd(e[i]);for(const i of Object.getOwnPropertySymbols(e))t[i]=Fd(e[i]);return globalThis.Object.freeze(t)}function Fd(e){return tr(e)?Mj(e):P1(e)?e:Il(e)?e:fT(e)?e:rn(e)?jj(e):e}function Ue(e,t){const i=t!==void 0?{...t,...e}:e;switch(Ua.InstanceMode){case"freeze":return Fd(i);case"clone":return fr(i);default:return i}}class mi extends Error{constructor(t){super(t)}}const Tr=Symbol.for("TypeBox.Transform"),Cl=Symbol.for("TypeBox.Readonly"),Zi=Symbol.for("TypeBox.Optional"),Yd=Symbol.for("TypeBox.Hint"),Le=Symbol.for("TypeBox.Kind");function z1(e){return rn(e)&&e[Cl]==="Readonly"}function ja(e){return rn(e)&&e[Zi]==="Optional"}function pT(e){return ot(e,"Any")}function yT(e){return ot(e,"Argument")}function ou(e){return ot(e,"Array")}function Xd(e){return ot(e,"AsyncIterator")}function Zd(e){return ot(e,"BigInt")}function Ol(e){return ot(e,"Boolean")}function su(e){return ot(e,"Computed")}function uu(e){return ot(e,"Constructor")}function Pj(e){return ot(e,"Date")}function cu(e){return ot(e,"Function")}function lu(e){return ot(e,"Integer")}function Dr(e){return ot(e,"Intersect")}function Jd(e){return ot(e,"Iterator")}function ot(e,t){return rn(e)&&Le in e&&e[Le]===t}function gT(e){return wl(e)||pi(e)||Xt(e)}function jo(e){return ot(e,"Literal")}function Po(e){return ot(e,"MappedKey")}function gr(e){return ot(e,"MappedResult")}function Fl(e){return ot(e,"Never")}function Nj(e){return ot(e,"Not")}function G1(e){return ot(e,"Null")}function fu(e){return ot(e,"Number")}function ei(e){return ot(e,"Object")}function Wd(e){return ot(e,"Promise")}function eh(e){return ot(e,"Record")}function Jn(e){return ot(e,"Ref")}function mT(e){return ot(e,"RegExp")}function Bl(e){return ot(e,"String")}function Q1(e){return ot(e,"Symbol")}function No(e){return ot(e,"TemplateLiteral")}function Lj(e){return ot(e,"This")}function th(e){return rn(e)&&Tr in e}function Lo(e){return ot(e,"Tuple")}function k1(e){return ot(e,"Undefined")}function An(e){return ot(e,"Union")}function qj(e){return ot(e,"Uint8Array")}function $j(e){return ot(e,"Unknown")}function Hj(e){return ot(e,"Unsafe")}function zj(e){return ot(e,"Void")}function AT(e){return rn(e)&&Le in e&&Xt(e[Le])}function ki(e){return pT(e)||yT(e)||ou(e)||Ol(e)||Zd(e)||Xd(e)||su(e)||uu(e)||Pj(e)||cu(e)||lu(e)||Dr(e)||Jd(e)||jo(e)||Po(e)||gr(e)||Fl(e)||Nj(e)||G1(e)||fu(e)||ei(e)||Wd(e)||eh(e)||Jn(e)||mT(e)||Bl(e)||Q1(e)||No(e)||Lj(e)||Lo(e)||k1(e)||An(e)||qj(e)||$j(e)||Hj(e)||zj(e)||AT(e)}const Gj=["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 bT(e){try{return new RegExp(e),!0}catch{return!1}}function V1(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 vT(e){return K1(e)||Sn(e)}function Ec(e){return tn(e)||lT(e)}function Ft(e){return tn(e)||pi(e)}function K1(e){return tn(e)||wl(e)}function xt(e){return tn(e)||Xt(e)}function Qj(e){return tn(e)||Xt(e)&&V1(e)&&bT(e)}function kj(e){return tn(e)||Xt(e)&&V1(e)}function xT(e){return tn(e)||Sn(e)}function Bd(e){return rn(e)&&e[Zi]==="Optional"}function Yr(e){return st(e,"Any")&&xt(e.$id)}function Vj(e){return st(e,"Argument")&&pi(e.index)}function qo(e){return st(e,"Array")&&e.type==="array"&&xt(e.$id)&&Sn(e.items)&&Ft(e.minItems)&&Ft(e.maxItems)&&K1(e.uniqueItems)&&xT(e.contains)&&Ft(e.minContains)&&Ft(e.maxContains)}function Y1(e){return st(e,"AsyncIterator")&&e.type==="AsyncIterator"&&xt(e.$id)&&Sn(e.items)}function nh(e){return st(e,"BigInt")&&e.type==="bigint"&&xt(e.$id)&&Ec(e.exclusiveMaximum)&&Ec(e.exclusiveMinimum)&&Ec(e.maximum)&&Ec(e.minimum)&&Ec(e.multipleOf)}function $o(e){return st(e,"Boolean")&&e.type==="boolean"&&xt(e.$id)}function Kj(e){return st(e,"Computed")&&Xt(e.target)&&tr(e.parameters)&&e.parameters.every(t=>Sn(t))}function rh(e){return st(e,"Constructor")&&e.type==="Constructor"&&xt(e.$id)&&tr(e.parameters)&&e.parameters.every(t=>Sn(t))&&Sn(e.returns)}function ih(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 ah(e){return st(e,"Function")&&e.type==="Function"&&xt(e.$id)&&tr(e.parameters)&&e.parameters.every(t=>Sn(t))&&Sn(e.returns)}function Ji(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 ET(e){return rn(e)&&Object.entries(e).every(([t,i])=>V1(t)&&Sn(i))}function Ho(e){return st(e,"Intersect")&&!(Xt(e.type)&&e.type!=="object")&&tr(e.allOf)&&e.allOf.every(t=>Sn(t)&&!eP(t))&&xt(e.type)&&(K1(e.unevaluatedProperties)||xT(e.unevaluatedProperties))&&xt(e.$id)}function X1(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 wT(e){return Pa(e)&&Xt(e.const)}function IT(e){return Pa(e)&&pi(e.const)}function ST(e){return Pa(e)&&wl(e.const)}function Pa(e){return st(e,"Literal")&&xt(e.$id)&&Yj(e.const)}function Yj(e){return wl(e)||pi(e)||Xt(e)}function Xj(e){return st(e,"MappedKey")&&tr(e.keys)&&e.keys.every(t=>pi(t)||Xt(t))}function Zj(e){return st(e,"MappedResult")&&ET(e.properties)}function Na(e){return st(e,"Never")&&rn(e.not)&&Object.getOwnPropertyNames(e.not).length===0}function Ws(e){return st(e,"Not")&&Sn(e.not)}function Z1(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)&&ET(e.properties)&&vT(e.additionalProperties)&&Ft(e.minProperties)&&Ft(e.maxProperties)}function J1(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)&&vT(e.additionalProperties)&&rn(e.patternProperties)&&(t=>{const i=Object.getOwnPropertyNames(t.patternProperties);return i.length===1&&bT(i[0])&&rn(t.patternProperties)&&Sn(t.patternProperties[i[0]])})(e)}function Jj(e){return st(e,"Ref")&&xt(e.$id)&&Xt(e.$ref)}function ol(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)&&Qj(e.pattern)&&kj(e.format)}function sl(e){return st(e,"Symbol")&&e.type==="symbol"&&xt(e.$id)}function ul(e){return st(e,"TemplateLiteral")&&e.type==="string"&&Xt(e.pattern)&&e.pattern[0]==="^"&&e.pattern[e.pattern.length-1]==="$"}function Wj(e){return st(e,"This")&&xt(e.$id)&&Xt(e.$ref)}function eP(e){return rn(e)&&Tr in e}function oh(e){return st(e,"Tuple")&&e.type==="array"&&xt(e.$id)&&pi(e.minItems)&&pi(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 To(e){return st(e,"Undefined")&&e.type==="undefined"&&xt(e.$id)}function Xi(e){return st(e,"Union")&&xt(e.$id)&&rn(e)&&tr(e.anyOf)&&e.anyOf.every(t=>Sn(t))}function Rl(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 tP(e){return st(e,"Unsafe")}function sh(e){return st(e,"Void")&&e.type==="void"&&xt(e.$id)}function nP(e){return rn(e)&&Le in e&&Xt(e[Le])&&!Gj.includes(e[Le])}function Sn(e){return rn(e)&&(Yr(e)||Vj(e)||qo(e)||$o(e)||nh(e)||Y1(e)||Kj(e)||rh(e)||ih(e)||ah(e)||Ji(e)||Ho(e)||X1(e)||Pa(e)||Xj(e)||Zj(e)||Na(e)||Ws(e)||Z1(e)||Yn(e)||qt(e)||J1(e)||In(e)||Jj(e)||ol(e)||Xr(e)||sl(e)||ul(e)||Wj(e)||oh(e)||To(e)||Xi(e)||Rl(e)||Zr(e)||tP(e)||sh(e)||nP(e))}const rP="(true|false)",md="(0|[1-9][0-9]*)",CT="(.*)",iP="(?!.*)",eu=`^${md}$`,tu=`^${CT}$`,aP=`^${iP}$`,W1=new Map;function oP(e){return W1.has(e)}function Ai(e,t){W1.set(e,t)}function sP(e){return W1.get(e)}const OT=new Map;function FT(e){return OT.has(e)}function uP(e){return OT.get(e)}function cP(e,t){return e.includes(t)}function lP(e){return[...new Set(e)]}function fP(e,t){return e.filter(i=>t.includes(i))}function dP(e,t){return e.reduce((i,a)=>fP(i,a),t)}function hP(e){return e.length===1?e[0]:e.length>1?dP(e.slice(1),e[0]):[]}function pP(e){const t=[];for(const i of e)t.push(...i);return t}function cl(e){return Ue({[Le]:"Any"},e)}function ev(e,t){return Ue({[Le]:"Array",type:"array",items:e},t)}function yP(e){return Ue({[Le]:"Argument",index:e})}function tv(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 gP(e,t){const{[t]:i,...a}=e;return a}function dr(e,t){return t.reduce((i,a)=>gP(i,a),e)}function Zt(e){return Ue({[Le]:"Never",not:{}},e)}function Cn(e){return Ue({[Le]:"MappedResult",properties:e})}function nv(e,t,i){return Ue({[Le]:"Constructor",type:"Constructor",parameters:e,returns:t},i)}function Tl(e,t,i){return Ue({[Le]:"Function",type:"Function",parameters:e,returns:t},i)}function Yb(e,t){return Ue({[Le]:"Union",anyOf:e},t)}function mP(e){return e.some(t=>ja(t))}function mI(e){return e.map(t=>ja(t)?AP(t):t)}function AP(e){return dr(e,[Zi])}function bP(e,t){return mP(e)?$a(Yb(mI(e),t)):Yb(mI(e),t)}function du(e,t){return e.length===1?Ue(e[0],t):e.length===0?Zt(t):bP(e,t)}function On(e,t){return e.length===0?Zt(t):e.length===1?Ue(e[0],t):Yb(e,t)}class AI extends mi{}function vP(e){return e.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}function rv(e,t,i){return e[t]===i&&e.charCodeAt(t-1)!==92}function Gi(e,t){return rv(e,t,"(")}function ll(e,t){return rv(e,t,")")}function BT(e,t){return rv(e,t,"|")}function xP(e){if(!(Gi(e,0)&&ll(e,e.length-1)))return!1;let t=0;for(let i=0;i<e.length;i++)if(Gi(e,i)&&(t+=1),ll(e,i)&&(t-=1),t===0&&i!==e.length-1)return!1;return!0}function EP(e){return e.slice(1,e.length-1)}function wP(e){let t=0;for(let i=0;i<e.length;i++)if(Gi(e,i)&&(t+=1),ll(e,i)&&(t-=1),BT(e,i)&&t===0)return!0;return!1}function IP(e){for(let t=0;t<e.length;t++)if(Gi(e,t))return!0;return!1}function SP(e){let[t,i]=[0,0];const a=[];for(let c=0;c<e.length;c++)if(Gi(e,c)&&(t+=1),ll(e,c)&&(t-=1),BT(e,c)&&t===0){const l=e.slice(i,c);l.length>0&&a.push(nu(l)),i=c+1}const s=e.slice(i);return s.length>0&&a.push(nu(s)),a.length===0?{type:"const",const:""}:a.length===1?a[0]:{type:"or",expr:a}}function CP(e){function t(s,c){if(!Gi(s,c))throw new AI("TemplateLiteralParser: Index must point to open parens");let l=0;for(let f=c;f<s.length;f++)if(Gi(s,f)&&(l+=1),ll(s,f)&&(l-=1),l===0)return[c,f];throw new AI("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(nu(f)),s=l}else{const[c,l]=i(e,s),f=e.slice(c,l);f.length>0&&a.push(nu(f)),s=l-1}return a.length===0?{type:"const",const:""}:a.length===1?a[0]:{type:"and",expr:a}}function nu(e){return xP(e)?nu(EP(e)):wP(e)?SP(e):IP(e)?CP(e):{type:"const",const:vP(e)}}function iv(e){return nu(e.slice(1,e.length-1))}class OP extends mi{}function FP(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 BP(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 RP(e){return e.type==="const"&&e.const===".*"}function fl(e){return FP(e)||RP(e)?!1:BP(e)?!0:e.type==="and"?e.expr.every(t=>fl(t)):e.type==="or"?e.expr.every(t=>fl(t)):e.type==="const"?!0:(()=>{throw new OP("Unknown expression type")})()}function TP(e){const t=iv(e.pattern);return fl(t)}class _P extends mi{}function*RT(e){if(e.length===1)return yield*e[0];for(const t of e[0])for(const i of RT(e.slice(1)))yield`${t}${i}`}function*DP(e){return yield*RT(e.expr.map(t=>[...uh(t)]))}function*UP(e){for(const t of e.expr)yield*uh(t)}function*MP(e){return yield e.const}function*uh(e){return e.type==="and"?yield*DP(e):e.type==="or"?yield*UP(e):e.type==="const"?yield*MP(e):(()=>{throw new _P("Unknown expression")})()}function TT(e){const t=iv(e.pattern);return fl(t)?[...uh(t)]:[]}function nn(e,t){return Ue({[Le]:"Literal",const:e,type:typeof e},t)}function _T(e){return Ue({[Le]:"Boolean",type:"boolean"},e)}function av(e){return Ue({[Le]:"BigInt",type:"bigint"},e)}function zo(e){return Ue({[Le]:"Number",type:"number"},e)}function _o(e){return Ue({[Le]:"String",type:"string"},e)}function*jP(e){const t=e.trim().replace(/"|'/g,"");return t==="boolean"?yield _T():t==="number"?yield zo():t==="bigint"?yield av():t==="string"?yield _o():yield(()=>{const i=t.split("|").map(a=>nn(a.trim()));return i.length===0?Zt():i.length===1?i[0]:du(i)})()}function*PP(e){if(e[1]!=="{"){const t=nn("$"),i=Xb(e.slice(1));return yield*[t,...i]}for(let t=2;t<e.length;t++)if(e[t]==="}"){const i=jP(e.slice(2,t)),a=Xb(e.slice(t+1));return yield*[...i,...a]}yield nn(e)}function*Xb(e){for(let t=0;t<e.length;t++)if(e[t]==="$"){const i=nn(e.slice(0,t)),a=PP(e.slice(t));return yield*[i,...a]}yield nn(e)}function NP(e){return[...Xb(e)]}class LP extends mi{}function qP(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function DT(e,t){return No(e)?e.pattern.slice(1,e.pattern.length-1):An(e)?`(${e.anyOf.map(i=>DT(i,t)).join("|")})`:fu(e)?`${t}${md}`:lu(e)?`${t}${md}`:Zd(e)?`${t}${md}`:Bl(e)?`${t}${CT}`:jo(e)?`${t}${qP(e.const.toString())}`:Ol(e)?`${t}${rP}`:(()=>{throw new LP(`Unexpected Kind '${e[Le]}'`)})()}function bI(e){return`^${e.map(t=>DT(t,"")).join("")}$`}function Rd(e){const i=TT(e).map(a=>nn(a));return du(i)}function UT(e,t){const i=Xt(e)?bI(NP(e)):bI(e);return Ue({[Le]:"TemplateLiteral",type:"string",pattern:i},t)}function $P(e){return TT(e).map(i=>i.toString())}function HP(e){const t=[];for(const i of e)t.push(...La(i));return t}function zP(e){return[e.toString()]}function La(e){return[...new Set(No(e)?$P(e):An(e)?HP(e.anyOf):jo(e)?zP(e.const):fu(e)?["[number]"]:lu(e)?["[number]"]:[])]}function GP(e,t,i){const a={};for(const s of Object.getOwnPropertyNames(t))a[s]=ch(e,La(t[s]),i);return a}function QP(e,t,i){return GP(e,t.properties,i)}function kP(e,t,i){const a=QP(e,t,i);return Cn(a)}function MT(e,t){return e.map(i=>jT(i,t))}function VP(e){return e.filter(t=>!Fl(t))}function KP(e,t){return qT(VP(MT(e,t)))}function YP(e){return e.some(t=>Fl(t))?[]:e}function XP(e,t){return du(YP(MT(e,t)))}function ZP(e,t){return t in e?e[t]:t==="[number]"?du(e):Zt()}function JP(e,t){return t==="[number]"?e:Zt()}function WP(e,t){return t in e?e[t]:Zt()}function jT(e,t){return Dr(e)?KP(e.allOf,t):An(e)?XP(e.anyOf,t):Lo(e)?ZP(e.items??[],t):ou(e)?JP(e.items,t):ei(e)?WP(e.properties,t):Zt()}function PT(e,t){return t.map(i=>jT(e,i))}function vI(e,t){return du(PT(e,t))}function ch(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(!ki(e)||!ki(t))throw new mi(a);return ln("Index",[e,t])}return gr(t)?kP(e,t,i):Po(t)?rN(e,t,i):Ue(ki(t)?vI(e,La(t)):vI(e,t),i)}function eN(e,t,i){return{[t]:ch(e,[t],fr(i))}}function tN(e,t,i){return t.reduce((a,s)=>({...a,...eN(e,s,i)}),{})}function nN(e,t,i){return tN(e,t.keys,i)}function rN(e,t,i){const a=nN(e,t,i);return Cn(a)}function ov(e,t){return Ue({[Le]:"Iterator",type:"Iterator",items:e},t)}function iN(e){const t=[];for(let i in e)ja(e[i])||t.push(i);return t}function aN(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=aN;function NT(e,t){return Ue({[Le]:"Promise",type:"Promise",item:e},t)}function oN(e){return Ue(dr(e,[Cl]))}function sN(e){return Ue({...e,[Cl]:"Readonly"})}function uN(e,t){return t===!1?oN(e):sN(e)}function qa(e,t){const i=t??!0;return gr(e)?fN(e,i):uN(e,i)}function cN(e,t){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=qa(e[a],t);return i}function lN(e,t){return cN(e.properties,t)}function fN(e,t){const i=lN(e,t);return Cn(i)}function hu(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 LT(e,t){return e in t?Rr(e,t[e]):Cn(t)}function dN(e){return{[e]:nn(e)}}function hN(e){const t={};for(const i of e)t[i]=nn(i);return t}function pN(e,t){return cP(t,e)?dN(e):hN(t)}function yN(e,t){const i=pN(e,t);return LT(e,i)}function wc(e,t){return t.map(i=>Rr(e,i))}function gN(e,t){const i={};for(const a of globalThis.Object.getOwnPropertyNames(t))i[a]=Rr(e,t[a]);return i}function Rr(e,t){const i={...t};return ja(t)?$a(Rr(e,dr(t,[Zi]))):z1(t)?qa(Rr(e,dr(t,[Cl]))):gr(t)?LT(e,t.properties):Po(t)?yN(e,t.keys):uu(t)?nv(wc(e,t.parameters),Rr(e,t.returns),i):cu(t)?Tl(wc(e,t.parameters),Rr(e,t.returns),i):Xd(t)?tv(Rr(e,t.items),i):Jd(t)?ov(Rr(e,t.items),i):Dr(t)?Ha(wc(e,t.allOf),i):An(t)?On(wc(e,t.anyOf),i):Lo(t)?hu(wc(e,t.items??[]),i):ei(t)?gn(gN(e,t.properties),i):ou(t)?ev(Rr(e,t.items),i):Wd(t)?NT(Rr(e,t.item),i):t}function mN(e,t){const i={};for(const a of e)i[a]=Rr(a,t);return i}function AN(e,t,i){const a=ki(e)?La(e):e,s=t({[Le]:"MappedKey",keys:a}),c=mN(a,s);return gn(c,i)}function bN(e){return Ue(dr(e,[Zi]))}function vN(e){return Ue({...e,[Zi]:"Optional"})}function xN(e,t){return t===!1?bN(e):vN(e)}function $a(e,t){const i=t??!0;return gr(e)?IN(e,i):xN(e,i)}function EN(e,t){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=$a(e[a],t);return i}function wN(e,t){return EN(e.properties,t)}function IN(e,t){const i=wN(e,t);return Cn(i)}function Zb(e,t={}){const i=e.every(s=>ei(s)),a=ki(t.unevaluatedProperties)?{unevaluatedProperties:t.unevaluatedProperties}:{};return Ue(t.unevaluatedProperties===!1||ki(t.unevaluatedProperties)||i?{...a,[Le]:"Intersect",type:"object",allOf:e}:{...a,[Le]:"Intersect",allOf:e},t)}function SN(e){return e.every(t=>ja(t))}function CN(e){return dr(e,[Zi])}function xI(e){return e.map(t=>ja(t)?CN(t):t)}function ON(e,t){return SN(e)?$a(Zb(xI(e),t)):Zb(xI(e),t)}function qT(e,t={}){if(e.length===1)return Ue(e[0],t);if(e.length===0)return Zt(t);if(e.some(i=>th(i)))throw new Error("Cannot intersect transform types");return ON(e,t)}function Ha(e,t){if(e.length===1)return Ue(e[0],t);if(e.length===0)return Zt(t);if(e.some(i=>th(i)))throw new Error("Cannot intersect transform types");return Zb(e,t)}function _l(...e){const[t,i]=typeof e[0]=="string"?[e[0],e[1]]:[e[0].$id,e[1]];if(typeof t!="string")throw new mi("Ref: $ref must be a string");return Ue({[Le]:"Ref",$ref:t},i)}function FN(e,t){return ln("Awaited",[ln(e,t)])}function BN(e){return ln("Awaited",[_l(e)])}function RN(e){return Ha($T(e))}function TN(e){return On($T(e))}function _N(e){return lh(e)}function $T(e){return e.map(t=>lh(t))}function lh(e,t){return Ue(su(e)?FN(e.target,e.parameters):Dr(e)?RN(e.allOf):An(e)?TN(e.anyOf):Wd(e)?_N(e.item):Jn(e)?BN(e.$ref):e,t)}function HT(e){const t=[];for(const i of e)t.push(fh(i));return t}function DN(e){const t=HT(e);return pP(t)}function UN(e){const t=HT(e);return hP(t)}function MN(e){return e.map((t,i)=>i.toString())}function jN(e){return["[number]"]}function PN(e){return globalThis.Object.getOwnPropertyNames(e)}function NN(e){return Jb?globalThis.Object.getOwnPropertyNames(e).map(i=>i[0]==="^"&&i[i.length-1]==="$"?i.slice(1,i.length-1):i):[]}function fh(e){return Dr(e)?DN(e.allOf):An(e)?UN(e.anyOf):Lo(e)?MN(e.items??[]):ou(e)?jN(e.items):ei(e)?PN(e.properties):eh(e)?NN(e.patternProperties):[]}let Jb=!1;function EI(e){Jb=!0;const t=fh(e);return Jb=!1,`^(${t.map(a=>`(${a})`).join("|")})$`}function LN(e,t){return ln("KeyOf",[ln(e,t)])}function qN(e){return ln("KeyOf",[_l(e)])}function $N(e,t){const i=fh(e),a=HN(i),s=du(a);return Ue(s,t)}function HN(e){return e.map(t=>t==="[number]"?zo():nn(t))}function sv(e,t){return su(e)?LN(e.target,e.parameters):Jn(e)?qN(e.$ref):gr(e)?QN(e,t):$N(e,t)}function zN(e,t){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=sv(e[a],fr(t));return i}function GN(e,t){return zN(e.properties,t)}function QN(e,t){const i=GN(e,t);return Cn(i)}function kN(e){const t=[];for(const i of e)t.push(...fh(i));return lP(t)}function VN(e){return e.filter(t=>!Fl(t))}function KN(e,t){const i=[];for(const a of e)i.push(...PT(a,[t]));return VN(i)}function YN(e,t){const i={};for(const a of t)i[a]=qT(KN(e,a));return i}function XN(e,t){const i=kN(e),a=YN(e,i);return gn(a,t)}function zT(e){return Ue({[Le]:"Date",type:"Date"},e)}function GT(e){return Ue({[Le]:"Null",type:"null"},e)}function QT(e){return Ue({[Le]:"Symbol",type:"symbol"},e)}function kT(e){return Ue({[Le]:"Undefined",type:"undefined"},e)}function VT(e){return Ue({[Le]:"Uint8Array",type:"Uint8Array"},e)}function dh(e){return Ue({[Le]:"Unknown"},e)}function ZN(e){return e.map(t=>uv(t,!1))}function JN(e){const t={};for(const i of globalThis.Object.getOwnPropertyNames(e))t[i]=qa(uv(e[i],!1));return t}function sd(e,t){return t===!0?e:qa(e)}function uv(e,t){return gj(e)||Aj(e)?sd(cl(),t):tr(e)?qa(hu(ZN(e))):Il(e)?VT():P1(e)?zT():rn(e)?sd(gn(JN(e)),t):mj(e)?sd(Tl([],dh()),t):tn(e)?kT():bj(e)?GT():vj(e)?QT():lT(e)?av():pi(e)||wl(e)||Xt(e)?nn(e):gn({})}function WN(e,t){return Ue(uv(e,!0),t)}function eL(e,t){return uu(e)?hu(e.parameters,t):Zt(t)}function tL(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,[Yd]:"Enum"})}class nL extends mi{}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 pu(e){throw new nL(e)}function an(e){return Na(e)||Ho(e)||Xi(e)||Zr(e)||Yr(e)}function on(e,t){return Na(t)?XT():Ho(t)?hh(e,t):Xi(t)?lv(e,t):Zr(t)?e3():Yr(t)?cv():pu("StructuralRight")}function cv(e,t){return Ce.True}function rL(e,t){return Ho(t)?hh(e,t):Xi(t)&&t.anyOf.some(i=>Yr(i)||Zr(i))?Ce.True:Xi(t)?Ce.Union:Zr(t)||Yr(t)?Ce.True:Ce.Union}function iL(e,t){return Zr(e)?Ce.False:Yr(e)?Ce.Union:Na(e)?Ce.True:Ce.False}function aL(e,t){return qt(t)&&ph(t)?Ce.True:an(t)?on(e,t):qo(t)?_r(vt(e.items,t.items)):Ce.False}function oL(e,t){return an(t)?on(e,t):Y1(t)?_r(vt(e.items,t.items)):Ce.False}function sL(e,t){return an(t)?on(e,t):qt(t)?jn(e,t):In(t)?Ur(e,t):nh(t)?Ce.True:Ce.False}function KT(e,t){return ST(e)||$o(e)?Ce.True:Ce.False}function uL(e,t){return an(t)?on(e,t):qt(t)?jn(e,t):In(t)?Ur(e,t):$o(t)?Ce.True:Ce.False}function cL(e,t){return an(t)?on(e,t):qt(t)?jn(e,t):rh(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 lL(e,t){return an(t)?on(e,t):qt(t)?jn(e,t):In(t)?Ur(e,t):ih(t)?Ce.True:Ce.False}function fL(e,t){return an(t)?on(e,t):qt(t)?jn(e,t):ah(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 YT(e,t){return Pa(e)&&pi(e.const)||Yn(e)||Ji(e)?Ce.True:Ce.False}function dL(e,t){return Ji(t)||Yn(t)?Ce.True:an(t)?on(e,t):qt(t)?jn(e,t):In(t)?Ur(e,t):Ce.False}function hh(e,t){return t.allOf.every(i=>vt(e,i)===Ce.True)?Ce.True:Ce.False}function hL(e,t){return e.allOf.some(i=>vt(i,t)===Ce.True)?Ce.True:Ce.False}function pL(e,t){return an(t)?on(e,t):X1(t)?_r(vt(e.items,t.items)):Ce.False}function yL(e,t){return Pa(t)&&t.const===e.const?Ce.True:an(t)?on(e,t):qt(t)?jn(e,t):In(t)?Ur(e,t):Xr(t)?WT(e):Yn(t)?ZT(e):Ji(t)?YT(e):$o(t)?KT(e):Ce.False}function XT(e,t){return Ce.False}function gL(e,t){return Ce.True}function wI(e){let[t,i]=[e,0];for(;Ws(t);)t=t.not,i+=1;return i%2===0?t:dh()}function mL(e,t){return Ws(e)?vt(wI(e),t):Ws(t)?vt(e,wI(t)):pu("Invalid fallthrough for Not")}function AL(e,t){return an(t)?on(e,t):qt(t)?jn(e,t):In(t)?Ur(e,t):Z1(t)?Ce.True:Ce.False}function ZT(e,t){return IT(e)||Yn(e)||Ji(e)?Ce.True:Ce.False}function bL(e,t){return an(t)?on(e,t):qt(t)?jn(e,t):In(t)?Ur(e,t):Ji(t)||Yn(t)?Ce.True:Ce.False}function Wn(e,t){return Object.getOwnPropertyNames(e.properties).length===t}function II(e){return ph(e)}function SI(e){return Wn(e,0)||Wn(e,1)&&"description"in e.properties&&Xi(e.properties.description)&&e.properties.description.anyOf.length===2&&(Xr(e.properties.description.anyOf[0])&&To(e.properties.description.anyOf[1])||Xr(e.properties.description.anyOf[1])&&To(e.properties.description.anyOf[0]))}function ig(e){return Wn(e,0)}function CI(e){return Wn(e,0)}function vL(e){return Wn(e,0)}function xL(e){return Wn(e,0)}function EL(e){return ph(e)}function wL(e){const t=zo();return Wn(e,0)||Wn(e,1)&&"length"in e.properties&&_r(vt(e.properties.length,t))===Ce.True}function IL(e){return Wn(e,0)}function ph(e){const t=zo();return Wn(e,0)||Wn(e,1)&&"length"in e.properties&&_r(vt(e.properties.length,t))===Ce.True}function SL(e){const t=Tl([cl()],cl());return Wn(e,0)||Wn(e,1)&&"then"in e.properties&&_r(vt(e.properties.then,t))===Ce.True}function JT(e,t){return vt(e,t)===Ce.False||Bd(e)&&!Bd(t)?Ce.False:Ce.True}function jn(e,t){return Zr(e)?Ce.False:Yr(e)?Ce.Union:Na(e)||wT(e)&&II(t)||IT(e)&&ig(t)||ST(e)&&CI(t)||sl(e)&&SI(t)||nh(e)&&vL(t)||Xr(e)&&II(t)||sl(e)&&SI(t)||Yn(e)&&ig(t)||Ji(e)&&ig(t)||$o(e)&&CI(t)||Rl(e)&&EL(t)||ih(e)&&xL(t)||rh(e)&&IL(t)||ah(e)&&wL(t)?Ce.True:In(e)&&Xr(Wb(e))?t[Yd]==="Record"?Ce.True:Ce.False:In(e)&&Yn(Wb(e))?Wn(t,0)?Ce.True:Ce.False:Ce.False}function CL(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)&&!Bd(t.properties[i]))return Ce.False;if(Bd(t.properties[i]))return Ce.True;if(JT(e.properties[i],t.properties[i])===Ce.False)return Ce.False}return Ce.True})():Ce.False}function OL(e,t){return an(t)?on(e,t):qt(t)&&SL(t)?Ce.True:J1(t)?_r(vt(e.item,t.item)):Ce.False}function Wb(e){return eu in e.patternProperties?zo():tu in e.patternProperties?_o():pu("Unknown record key pattern")}function e1(e){return eu in e.patternProperties?e.patternProperties[eu]:tu in e.patternProperties?e.patternProperties[tu]:pu("Unable to get record value schema")}function Ur(e,t){const[i,a]=[Wb(t),e1(t)];return wT(e)&&Yn(i)&&_r(vt(e,a))===Ce.True?Ce.True:Rl(e)&&Yn(i)||Xr(e)&&Yn(i)||qo(e)&&Yn(i)?vt(e,a):qt(e)?(()=>{for(const s of Object.getOwnPropertyNames(e.properties))if(JT(a,e.properties[s])===Ce.False)return Ce.False;return Ce.True})():Ce.False}function FL(e,t){return an(t)?on(e,t):qt(t)?jn(e,t):In(t)?vt(e1(e),e1(t)):Ce.False}function BL(e,t){const i=ol(e)?_o():e,a=ol(t)?_o():t;return vt(i,a)}function WT(e,t){return Pa(e)&&Xt(e.const)||Xr(e)?Ce.True:Ce.False}function RL(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 TL(e,t){return an(t)?on(e,t):qt(t)?jn(e,t):In(t)?Ur(e,t):sl(t)?Ce.True:Ce.False}function _L(e,t){return ul(e)?vt(Rd(e),t):ul(t)?vt(e,Rd(t)):pu("Invalid fallthrough for TemplateLiteral")}function DL(e,t){return qo(t)&&e.items!==void 0&&e.items.every(i=>vt(i,t.items)===Ce.True)}function UL(e,t){return Na(e)?Ce.True:Zr(e)?Ce.False:Yr(e)?Ce.Union:Ce.False}function ML(e,t){return an(t)?on(e,t):qt(t)&&ph(t)||qo(t)&&DL(e,t)?Ce.True:oh(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 jL(e,t){return an(t)?on(e,t):qt(t)?jn(e,t):In(t)?Ur(e,t):Rl(t)?Ce.True:Ce.False}function PL(e,t){return an(t)?on(e,t):qt(t)?jn(e,t):In(t)?Ur(e,t):sh(t)?qL(e):To(t)?Ce.True:Ce.False}function lv(e,t){return t.anyOf.some(i=>vt(e,i)===Ce.True)?Ce.True:Ce.False}function NL(e,t){return e.anyOf.every(i=>vt(i,t)===Ce.True)?Ce.True:Ce.False}function e3(e,t){return Ce.True}function LL(e,t){return Na(t)?XT():Ho(t)?hh(e,t):Xi(t)?lv(e,t):Yr(t)?cv():Xr(t)?WT(e):Yn(t)?ZT(e):Ji(t)?YT(e):$o(t)?KT(e):qo(t)?iL(e):oh(t)?UL(e):qt(t)?jn(e,t):Zr(t)?Ce.True:Ce.False}function qL(e,t){return To(e)||To(e)?Ce.True:Ce.False}function $L(e,t){return Ho(t)?hh(e,t):Xi(t)?lv(e,t):Zr(t)?e3():Yr(t)?cv():qt(t)?jn(e,t):sh(t)?Ce.True:Ce.False}function vt(e,t){return ul(e)||ul(t)?_L(e,t):ol(e)||ol(t)?BL(e,t):Ws(e)||Ws(t)?mL(e,t):Yr(e)?rL(e,t):qo(e)?aL(e,t):nh(e)?sL(e,t):$o(e)?uL(e,t):Y1(e)?oL(e,t):rh(e)?cL(e,t):ih(e)?lL(e,t):ah(e)?fL(e,t):Ji(e)?dL(e,t):Ho(e)?hL(e,t):X1(e)?pL(e,t):Pa(e)?yL(e,t):Na(e)?gL():Z1(e)?AL(e,t):Yn(e)?bL(e,t):qt(e)?CL(e,t):In(e)?FL(e,t):Xr(e)?RL(e,t):sl(e)?TL(e,t):oh(e)?ML(e,t):J1(e)?OL(e,t):Rl(e)?jL(e,t):To(e)?PL(e,t):Xi(e)?NL(e,t):Zr(e)?LL(e,t):sh(e)?$L(e,t):pu(`Unknown left type operand '${e[Le]}'`)}function Dl(e,t){return vt(e,t)}function HL(e,t,i,a,s){const c={};for(const l of globalThis.Object.getOwnPropertyNames(e))c[l]=fv(e[l],t,i,a,fr(s));return c}function zL(e,t,i,a,s){return HL(e.properties,t,i,a,s)}function GL(e,t,i,a,s){const c=zL(e,t,i,a,s);return Cn(c)}function QL(e,t,i,a){const s=Dl(e,t);return s===Ce.Union?On([i,a]):s===Ce.True?i:a}function fv(e,t,i,a,s){return gr(e)?GL(e,t,i,a,s):Po(e)?Ue(YL(e,t,i,a,s)):Ue(QL(e,t,i,a),s)}function kL(e,t,i,a,s){return{[e]:fv(nn(e),t,i,a,fr(s))}}function VL(e,t,i,a,s){return e.reduce((c,l)=>({...c,...kL(l,t,i,a,s)}),{})}function KL(e,t,i,a,s){return VL(e.keys,t,i,a,s)}function YL(e,t,i,a,s){const c=KL(e,t,i,a,s);return Cn(c)}function XL(e){return e.allOf.every(t=>yh(t))}function ZL(e){return e.anyOf.some(t=>yh(t))}function JL(e){return!yh(e.not)}function yh(e){return e[Le]==="Intersect"?XL(e):e[Le]==="Union"?ZL(e):e[Le]==="Not"?JL(e):e[Le]==="Undefined"}function WL(e,t){return dv(Rd(e),t)}function e5(e,t){const i=e.filter(a=>Dl(a,t)===Ce.False);return i.length===1?i[0]:On(i)}function dv(e,t,i={}){return No(e)?Ue(WL(e,t),i):gr(e)?Ue(r5(e,t),i):Ue(An(e)?e5(e.anyOf,t):Dl(e,t)!==Ce.False?Zt():e,i)}function t5(e,t){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=dv(e[a],t);return i}function n5(e,t){return t5(e.properties,t)}function r5(e,t){const i=n5(e,t);return Cn(i)}function i5(e,t){return hv(Rd(e),t)}function a5(e,t){const i=e.filter(a=>Dl(a,t)!==Ce.False);return i.length===1?i[0]:On(i)}function hv(e,t,i){return No(e)?Ue(i5(e,t),i):gr(e)?Ue(u5(e,t),i):Ue(An(e)?a5(e.anyOf,t):Dl(e,t)!==Ce.False?e:Zt(),i)}function o5(e,t){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=hv(e[a],t);return i}function s5(e,t){return o5(e.properties,t)}function u5(e,t){const i=s5(e,t);return Cn(i)}function c5(e,t){return uu(e)?Ue(e.returns,t):Zt(t)}function t3(e){return qa($a(e))}function Go(e,t,i){return Ue({[Le]:"Record",type:"object",patternProperties:{[e]:t}},i)}function pv(e,t,i){const a={};for(const s of e)a[s]=t;return gn(a,{...i,[Yd]:"Record"})}function l5(e,t,i){return TP(e)?pv(La(e),t,i):Go(e.pattern,t,i)}function f5(e,t,i){return pv(La(On(e)),t,i)}function d5(e,t,i){return pv([e.toString()],t,i)}function h5(e,t,i){return Go(e.source,t,i)}function p5(e,t,i){const a=tn(e.pattern)?tu:e.pattern;return Go(a,t,i)}function y5(e,t,i){return Go(tu,t,i)}function g5(e,t,i){return Go(aP,t,i)}function m5(e,t,i){return gn({true:t,false:t},i)}function A5(e,t,i){return Go(eu,t,i)}function b5(e,t,i){return Go(eu,t,i)}function n3(e,t,i={}){return An(e)?f5(e.anyOf,t,i):No(e)?l5(e,t,i):jo(e)?d5(e.const,t,i):Ol(e)?m5(e,t,i):lu(e)?A5(e,t,i):fu(e)?b5(e,t,i):mT(e)?h5(e,t,i):Bl(e)?p5(e,t,i):pT(e)?y5(e,t,i):Fl(e)?g5(e,t,i):Zt(i)}function yv(e){return globalThis.Object.getOwnPropertyNames(e.patternProperties)[0]}function v5(e){const t=yv(e);return t===tu?_o():t===eu?zo():_o({pattern:t})}function r3(e){return e.patternProperties[yv(e)]}function x5(e,t){return t.parameters=Ul(e,t.parameters),t.returns=Jr(e,t.returns),t}function E5(e,t){return t.parameters=Ul(e,t.parameters),t.returns=Jr(e,t.returns),t}function w5(e,t){return t.allOf=Ul(e,t.allOf),t}function I5(e,t){return t.anyOf=Ul(e,t.anyOf),t}function S5(e,t){return tn(t.items)||(t.items=Ul(e,t.items)),t}function C5(e,t){return t.items=Jr(e,t.items),t}function O5(e,t){return t.items=Jr(e,t.items),t}function F5(e,t){return t.items=Jr(e,t.items),t}function B5(e,t){return t.item=Jr(e,t.item),t}function R5(e,t){const i=U5(e,t.properties);return{...t,...gn(i)}}function T5(e,t){const i=Jr(e,v5(t)),a=Jr(e,r3(t)),s=n3(i,a);return{...t,...s}}function _5(e,t){return t.index in e?e[t.index]:dh()}function D5(e,t){const i=z1(t),a=ja(t),s=Jr(e,t);return i&&a?t3(s):i&&!a?qa(s):!i&&a?$a(s):s}function U5(e,t){return globalThis.Object.getOwnPropertyNames(t).reduce((i,a)=>({...i,[a]:D5(e,t[a])}),{})}function Ul(e,t){return t.map(i=>Jr(e,i))}function Jr(e,t){return uu(t)?x5(e,t):cu(t)?E5(e,t):Dr(t)?w5(e,t):An(t)?I5(e,t):Lo(t)?S5(e,t):ou(t)?C5(e,t):Xd(t)?O5(e,t):Jd(t)?F5(e,t):Wd(t)?B5(e,t):ei(t)?R5(e,t):eh(t)?T5(e,t):yT(t)?_5(e,t):t}function M5(e,t){return Jr(t,N1(e))}function j5(e){return Ue({[Le]:"Integer",type:"integer"},e)}function P5(e,t,i){return{[e]:yu(nn(e),t,fr(i))}}function N5(e,t,i){return e.reduce((s,c)=>({...s,...P5(c,t,i)}),{})}function L5(e,t,i){return N5(e.keys,t,i)}function q5(e,t,i){const a=L5(e,t,i);return Cn(a)}function $5(e){const[t,i]=[e.slice(0,1),e.slice(1)];return[t.toLowerCase(),i].join("")}function H5(e){const[t,i]=[e.slice(0,1),e.slice(1)];return[t.toUpperCase(),i].join("")}function z5(e){return e.toUpperCase()}function G5(e){return e.toLowerCase()}function Q5(e,t,i){const a=iv(e.pattern);if(!fl(a))return{...e,pattern:i3(e.pattern,t)};const l=[...uh(a)].map(h=>nn(h)),f=a3(l,t),y=On(f);return UT([y],i)}function i3(e,t){return typeof e=="string"?t==="Uncapitalize"?$5(e):t==="Capitalize"?H5(e):t==="Uppercase"?z5(e):t==="Lowercase"?G5(e):e:e.toString()}function a3(e,t){return e.map(i=>yu(i,t))}function yu(e,t,i={}){return Po(e)?q5(e,t,i):No(e)?Q5(e,t,i):An(e)?On(a3(e.anyOf,t),i):jo(e)?nn(i3(e.const,t),i):Ue(e,i)}function k5(e,t={}){return yu(e,"Capitalize",t)}function V5(e,t={}){return yu(e,"Lowercase",t)}function K5(e,t={}){return yu(e,"Uncapitalize",t)}function Y5(e,t={}){return yu(e,"Uppercase",t)}function X5(e,t,i){const a={};for(const s of globalThis.Object.getOwnPropertyNames(e))a[s]=gh(e[s],t,fr(i));return a}function Z5(e,t,i){return X5(e.properties,t,i)}function J5(e,t,i){const a=Z5(e,t,i);return Cn(a)}function W5(e,t){return e.map(i=>gv(i,t))}function eq(e,t){return e.map(i=>gv(i,t))}function tq(e,t){const{[t]:i,...a}=e;return a}function nq(e,t){return t.reduce((i,a)=>tq(i,a),e)}function rq(e,t){const i=dr(e,[Tr,"$id","required","properties"]),a=nq(e.properties,t);return gn(a,i)}function iq(e){const t=e.reduce((i,a)=>gT(a)?[...i,nn(a)]:i,[]);return On(t)}function gv(e,t){return Dr(e)?Ha(W5(e.allOf,t)):An(e)?On(eq(e.anyOf,t)):ei(e)?rq(e,t):gn({})}function gh(e,t,i){const a=tr(t)?iq(t):t,s=ki(t)?La(t):t,c=Jn(e),l=Jn(t);return gr(e)?J5(e,s,i):Po(t)?uq(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({...gv(e,s),...i})}function aq(e,t,i){return{[t]:gh(e,[t],fr(i))}}function oq(e,t,i){return t.reduce((a,s)=>({...a,...aq(e,s,i)}),{})}function sq(e,t,i){return oq(e,t.keys,i)}function uq(e,t,i){const a=sq(e,t,i);return Cn(a)}function cq(e,t,i){const a={};for(const s of globalThis.Object.getOwnPropertyNames(e))a[s]=mh(e[s],t,fr(i));return a}function lq(e,t,i){return cq(e.properties,t,i)}function fq(e,t,i){const a=lq(e,t,i);return Cn(a)}function dq(e,t){return e.map(i=>mv(i,t))}function hq(e,t){return e.map(i=>mv(i,t))}function pq(e,t){const i={};for(const a of t)a in e&&(i[a]=e[a]);return i}function yq(e,t){const i=dr(e,[Tr,"$id","required","properties"]),a=pq(e.properties,t);return gn(a,i)}function gq(e){const t=e.reduce((i,a)=>gT(a)?[...i,nn(a)]:i,[]);return On(t)}function mv(e,t){return Dr(e)?Ha(dq(e.allOf,t)):An(e)?On(hq(e.anyOf,t)):ei(e)?yq(e,t):gn({})}function mh(e,t,i){const a=tr(t)?gq(t):t,s=ki(t)?La(t):t,c=Jn(e),l=Jn(t);return gr(e)?fq(e,s,i):Po(t)?vq(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({...mv(e,s),...i})}function mq(e,t,i){return{[t]:mh(e,[t],fr(i))}}function Aq(e,t,i){return t.reduce((a,s)=>({...a,...mq(e,s,i)}),{})}function bq(e,t,i){return Aq(e,t.keys,i)}function vq(e,t,i){const a=bq(e,t,i);return Cn(a)}function xq(e,t){return ln("Partial",[ln(e,t)])}function Eq(e){return ln("Partial",[_l(e)])}function wq(e){const t={};for(const i of globalThis.Object.getOwnPropertyNames(e))t[i]=$a(e[i]);return t}function Iq(e){const t=dr(e,[Tr,"$id","required","properties"]),i=wq(e.properties);return gn(i,t)}function OI(e){return e.map(t=>o3(t))}function o3(e){return su(e)?xq(e.target,e.parameters):Jn(e)?Eq(e.$ref):Dr(e)?Ha(OI(e.allOf)):An(e)?On(OI(e.anyOf)):ei(e)?Iq(e):Zd(e)||Ol(e)||lu(e)||jo(e)||G1(e)||fu(e)||Bl(e)||Q1(e)||k1(e)?e:gn({})}function Av(e,t){return gr(e)?Oq(e,t):Ue({...o3(e),...t})}function Sq(e,t){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=Av(e[a],fr(t));return i}function Cq(e,t){return Sq(e.properties,t)}function Oq(e,t){const i=Cq(e,t);return Cn(i)}function Fq(e,t){return ln("Required",[ln(e,t)])}function Bq(e){return ln("Required",[_l(e)])}function Rq(e){const t={};for(const i of globalThis.Object.getOwnPropertyNames(e))t[i]=dr(e[i],[Zi]);return t}function Tq(e){const t=dr(e,[Tr,"$id","required","properties"]),i=Rq(e.properties);return gn(i,t)}function FI(e){return e.map(t=>s3(t))}function s3(e){return su(e)?Fq(e.target,e.parameters):Jn(e)?Bq(e.$ref):Dr(e)?Ha(FI(e.allOf)):An(e)?On(FI(e.anyOf)):ei(e)?Tq(e):Zd(e)||Ol(e)||lu(e)||jo(e)||G1(e)||fu(e)||Bl(e)||Q1(e)||k1(e)?e:gn({})}function bv(e,t){return gr(e)?Uq(e,t):Ue({...s3(e),...t})}function _q(e,t){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=bv(e[a],t);return i}function Dq(e,t){return _q(e.properties,t)}function Uq(e,t){const i=Dq(e,t);return Cn(i)}function Mq(e,t){return t.map(i=>Jn(i)?vv(e,i.$ref):hr(e,i))}function vv(e,t){return t in e?Jn(e[t])?vv(e,e[t].$ref):hr(e,e[t]):Zt()}function jq(e){return lh(e[0])}function Pq(e){return ch(e[0],e[1])}function Nq(e){return sv(e[0])}function Lq(e){return Av(e[0])}function qq(e){return gh(e[0],e[1])}function $q(e){return mh(e[0],e[1])}function Hq(e){return bv(e[0])}function zq(e,t,i){const a=Mq(e,i);return t==="Awaited"?jq(a):t==="Index"?Pq(a):t==="KeyOf"?Nq(a):t==="Partial"?Lq(a):t==="Omit"?qq(a):t==="Pick"?$q(a):t==="Required"?Hq(a):Zt()}function Gq(e,t){return ev(hr(e,t))}function Qq(e,t){return tv(hr(e,t))}function kq(e,t,i){return nv(Ml(e,t),hr(e,i))}function Vq(e,t,i){return Tl(Ml(e,t),hr(e,i))}function Kq(e,t){return Ha(Ml(e,t))}function Yq(e,t){return ov(hr(e,t))}function Xq(e,t){return gn(globalThis.Object.keys(t).reduce((i,a)=>({...i,[a]:hr(e,t[a])}),{}))}function Zq(e,t){const[i,a]=[hr(e,r3(t)),yv(t)],s=N1(t);return s.patternProperties[a]=i,s}function Jq(e,t){return Jn(t)?{...vv(e,t.$ref),[Tr]:t[Tr]}:t}function Wq(e,t){return hu(Ml(e,t))}function e7(e,t){return On(Ml(e,t))}function Ml(e,t){return t.map(i=>hr(e,i))}function hr(e,t){return ja(t)?Ue(hr(e,dr(t,[Zi])),t):z1(t)?Ue(hr(e,dr(t,[Cl])),t):th(t)?Ue(Jq(e,t),t):ou(t)?Ue(Gq(e,t.items),t):Xd(t)?Ue(Qq(e,t.items),t):su(t)?Ue(zq(e,t.target,t.parameters)):uu(t)?Ue(kq(e,t.parameters,t.returns),t):cu(t)?Ue(Vq(e,t.parameters,t.returns),t):Dr(t)?Ue(Kq(e,t.allOf),t):Jd(t)?Ue(Yq(e,t.items),t):ei(t)?Ue(Xq(e,t.properties),t):eh(t)?Ue(Zq(e,t)):Lo(t)?Ue(Wq(e,t.items||[]),t):An(t)?Ue(e7(e,t.anyOf),t):t}function t7(e,t){return t in e?hr(e,e[t]):Zt()}function n7(e){return globalThis.Object.getOwnPropertyNames(e).reduce((t,i)=>({...t,[i]:t7(e,i)}),{})}class r7{constructor(t){const i=n7(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 r7(e)}function a7(e,t){return Ue({[Le]:"Not",not:e},t)}function o7(e,t){return cu(e)?hu(e.parameters,t):Zt()}let s7=0;function u7(e,t={}){tn(t.$id)&&(t.$id=`T${s7++}`);const i=N1(e({[Le]:"This",$ref:`${t.$id}`}));return i.$id=t.$id,Ue({[Yd]:"Recursive",...i},t)}function c7(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 l7(e){return Dr(e)?e.allOf:An(e)?e.anyOf:Lo(e)?e.items??[]:[]}function f7(e){return l7(e)}function d7(e,t){return cu(e)?Ue(e.returns,t):Zt(t)}class h7{constructor(t){this.schema=t}Decode(t){return new p7(this.schema,t)}}class p7{constructor(t,i){this.schema=t,this.decode=i}EncodeTransform(t,i){const c={Encode:l=>i[Tr].Encode(t(l)),Decode:l=>this.decode(i[Tr].Decode(l))};return{...i,[Tr]:c}}EncodeSchema(t,i){const a={Decode:this.decode,Encode:t};return{...i,[Tr]:a}}Encode(t){return th(this.schema)?this.EncodeTransform(t,this.schema):this.EncodeSchema(t,this.schema)}}function y7(e){return new h7(e)}function g7(e={}){return Ue({[Le]:e[Le]??"Unsafe"},e)}function m7(e){return Ue({[Le]:"Void",type:"void"},e)}const A7=Object.freeze(Object.defineProperty({__proto__:null,Any:cl,Argument:yP,Array:ev,AsyncIterator:tv,Awaited:lh,BigInt:av,Boolean:_T,Capitalize:k5,Composite:XN,Const:WN,Constructor:nv,ConstructorParameters:eL,Date:zT,Enum:tL,Exclude:dv,Extends:fv,Extract:hv,Function:Tl,Index:ch,InstanceType:c5,Instantiate:M5,Integer:j5,Intersect:Ha,Iterator:ov,KeyOf:sv,Literal:nn,Lowercase:V5,Mapped:AN,Module:i7,Never:Zt,Not:a7,Null:GT,Number:zo,Object:gn,Omit:gh,Optional:$a,Parameters:o7,Partial:Av,Pick:mh,Promise:NT,Readonly:qa,ReadonlyOptional:t3,Record:n3,Recursive:u7,Ref:_l,RegExp:c7,Required:bv,Rest:f7,ReturnType:d7,String:_o,Symbol:QT,TemplateLiteral:UT,Transform:y7,Tuple:hu,Uint8Array:VT,Uncapitalize:K5,Undefined:kT,Union:On,Unknown:dh,Unsafe:g7,Uppercase:Y5,Void:m7},Symbol.toStringTag,{value:"Module"})),E=A7;class b7 extends mi{constructor(t){super(`Unable to dereference schema with $id '${t.$ref}'`),this.schema=t}}function v7(e,t){const i=t.find(a=>a.$id===e.$ref);if(i===void 0)throw new b7(e);return jl(i,t)}function u3(e,t){return!Sl(e.$id)||t.some(i=>i.$id===e.$id)||t.push(e),t}function jl(e,t){return e[Le]==="This"||e[Le]==="Ref"?v7(e,t):e}class x7 extends mi{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 Ps=BigInt("14695981039346656037");const[E7,w7]=[BigInt("1099511628211"),BigInt("18446744073709551616")],I7=Array.from({length:256}).map((e,t)=>BigInt(t)),c3=new Float64Array(1),l3=new DataView(c3.buffer),f3=new Uint8Array(c3.buffer);function*S7(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 C7(e){Mn(pr.Array);for(const t of e)ru(t)}function O7(e){Mn(pr.Boolean),Mn(e?1:0)}function F7(e){Mn(pr.BigInt),l3.setBigInt64(0,e);for(const t of f3)Mn(t)}function B7(e){Mn(pr.Date),ru(e.getTime())}function R7(e){Mn(pr.Null)}function T7(e){Mn(pr.Number),l3.setFloat64(0,e);for(const t of f3)Mn(t)}function _7(e){Mn(pr.Object);for(const t of globalThis.Object.getOwnPropertyNames(e).sort())ru(t),ru(e[t])}function D7(e){Mn(pr.String);for(let t=0;t<e.length;t++)for(const i of S7(e.charCodeAt(t)))Mn(i)}function U7(e){Mn(pr.Symbol),ru(e.description)}function M7(e){Mn(pr.Uint8Array);for(let t=0;t<e.length;t++)Mn(e[t])}function j7(e){return Mn(pr.Undefined)}function ru(e){if(Da(e))return C7(e);if(q1(e))return O7(e);if($1(e))return F7(e);if(Kd(e))return B7(e);if(L1(e))return R7();if(Co(e))return T7(e);if(yi(e))return _7(e);if(Sl(e))return D7(e);if(H1(e))return U7(e);if(dT(e))return M7(e);if(Mo(e))return j7();throw new x7(e)}function Mn(e){Ps=Ps^I7[e],Ps=Ps*E7%w7}function P7(e){return Ps=BigInt("14695981039346656037"),ru(e),Ps}class N7 extends mi{constructor(t){super("Unknown type"),this.schema=t}}function L7(e){return e[Le]==="Any"||e[Le]==="Unknown"}function rt(e){return e!==void 0}function q7(e,t,i){return!0}function $7(e,t,i){return!0}function H7(e,t,i){if(!Da(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=P7(l);if(c.has(f))return!1;c.add(f)}return!0})())return!1;if(!(rt(e.contains)||Co(e.minContains)||Co(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||Co(e.minContains)&&s<e.minContains||Co(e.maxContains)&&s>e.maxContains)}function z7(e,t,i){return Cj(i)}function G7(e,t,i){return!(!$1(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 Q7(e,t,i){return q1(i)}function k7(e,t,i){return pn(e.returns,t,i.prototype)}function V7(e,t,i){return!(!Kd(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 K7(e,t,i){return hT(i)}function Y7(e,t,i){const a=globalThis.Object.values(e.$defs),s=e.$defs[e.$ref];return pn(s,[...t,...a],i)}function X7(e,t,i){return!(!Dj(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 Z7(e,t,i){const a=e.allOf.every(s=>pn(s,t,i));if(e.unevaluatedProperties===!1){const s=new RegExp(EI(e)),c=Object.getOwnPropertyNames(i).every(l=>s.test(l));return a&&c}else if(ki(e.unevaluatedProperties)){const s=new RegExp(EI(e)),c=Object.getOwnPropertyNames(i).every(l=>s.test(l)||pn(e.unevaluatedProperties,t,i[l]));return a&&c}else return a}function J7(e,t,i){return Oj(i)}function W7(e,t,i){return i===e.const}function e$(e,t,i){return!1}function t$(e,t,i){return!pn(e.not,t,i)}function n$(e,t,i){return L1(i)}function r$(e,t,i){return!(!Ua.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(!Ua.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])||(yh(c)||L7(c))&&!(s in i))return!1}else if(Ua.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 a$(e,t,i){return Fj(i)}function o$(e,t,i){if(!Ua.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,A])=>c.test(h)?pn(s,t,A):!0),f=typeof e.additionalProperties=="object"?Object.entries(i).every(([h,A])=>c.test(h)?!0:pn(e.additionalProperties,t,A)):!0,y=e.additionalProperties===!1?Object.getOwnPropertyNames(i).every(h=>c.test(h)):!0;return l&&f&&y}function s$(e,t,i){return pn(jl(e,t),t,i)}function u$(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 c$(e,t,i){return!Sl(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)?oP(e.format)?sP(e.format)(i):!1:!0}function l$(e,t,i){return H1(i)}function f$(e,t,i){return Sl(i)&&new RegExp(e.pattern).test(i)}function d$(e,t,i){return pn(jl(e,t),t,i)}function h$(e,t,i){if(!Da(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 p$(e,t,i){return Mo(i)}function y$(e,t,i){return e.anyOf.some(a=>pn(a,t,i))}function g$(e,t,i){return!(!dT(i)||rt(e.maxByteLength)&&!(i.length<=e.maxByteLength)||rt(e.minByteLength)&&!(i.length>=e.minByteLength))}function m$(e,t,i){return!0}function A$(e,t,i){return Ua.IsVoidLike(i)}function b$(e,t,i){return FT(e[Le])?uP(e[Le])(e,i):!1}function pn(e,t,i){const a=rt(e.$id)?u3(e,t):t,s=e;switch(s[Le]){case"Any":return q7();case"Argument":return $7();case"Array":return H7(s,a,i);case"AsyncIterator":return z7(s,a,i);case"BigInt":return G7(s,a,i);case"Boolean":return Q7(s,a,i);case"Constructor":return k7(s,a,i);case"Date":return V7(s,a,i);case"Function":return K7(s,a,i);case"Import":return Y7(s,a,i);case"Integer":return X7(s,a,i);case"Intersect":return Z7(s,a,i);case"Iterator":return J7(s,a,i);case"Literal":return W7(s,a,i);case"Never":return e$();case"Not":return t$(s,a,i);case"Null":return n$(s,a,i);case"Number":return r$(s,a,i);case"Object":return i$(s,a,i);case"Promise":return a$(s,a,i);case"Record":return o$(s,a,i);case"Ref":return s$(s,a,i);case"RegExp":return u$(s,a,i);case"String":return c$(s,a,i);case"Symbol":return l$(s,a,i);case"TemplateLiteral":return f$(s,a,i);case"This":return d$(s,a,i);case"Tuple":return h$(s,a,i);case"Undefined":return p$(s,a,i);case"Union":return y$(s,a,i);case"Uint8Array":return g$(s,a,i);case"Unknown":return m$();case"Void":return A$(s,a,i);default:if(!FT(s[Le]))throw new N7(s);return b$(s,a,i)}}function v$(...e){return e.length===3?pn(e[0],e[1],e[2]):pn(e[0],[],e[1])}function x$(e){const t={};for(const i of Object.getOwnPropertyNames(e))t[i]=Do(e[i]);for(const i of Object.getOwnPropertySymbols(e))t[i]=Do(e[i]);return t}function E$(e){return e.map(t=>Do(t))}function w$(e){return e.slice()}function I$(e){return new Map(Do([...e.entries()]))}function S$(e){return new Set(Do([...e.entries()]))}function C$(e){return new Date(e.toISOString())}function Do(e){if(Da(e))return E$(e);if(Kd(e))return C$(e);if(Tj(e))return w$(e);if(Bj(e))return I$(e);if(Rj(e))return S$(e);if(yi(e))return x$(e);if(Uj(e))return e;throw new Error("ValueClone: Unable to clone value")}function Wi(e,t){const i=_j(e,"default")?e.default:void 0,a=hT(i)?i():Do(i);return Mo(t)?a:yi(t)&&yi(a)?Object.assign(a,t):t}function t1(e){return AT(e)&&"default"in e}function O$(e,t,i){if(Da(i)){for(let s=0;s<i.length;s++)i[s]=$n(e.items,t,i[s]);return i}const a=Wi(e,i);if(!Da(a))return a;for(let s=0;s<a.length;s++)a[s]=$n(e.items,t,a[s]);return a}function F$(e,t,i){return Kd(i)?i:Wi(e,i)}function B$(e,t,i){const a=globalThis.Object.values(e.$defs),s=e.$defs[e.$ref];return $n(s,[...t,...a],i)}function R$(e,t,i){const a=Wi(e,i);return e.allOf.reduce((s,c)=>{const l=$n(c,t,a);return yi(l)?{...s,...l}:l},{})}function T$(e,t,i){const a=Wi(e,i);if(!yi(a))return a;const s=Object.getOwnPropertyNames(e.properties);for(const c of s){const l=$n(e.properties[c],t,a[c]);Mo(l)||(a[c]=$n(e.properties[c],t,a[c]))}if(!t1(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 _$(e,t,i){const a=Wi(e,i);if(!yi(a))return a;const s=e.additionalProperties,[c,l]=Object.entries(e.patternProperties)[0],f=new RegExp(c);for(const y of Object.getOwnPropertyNames(a))f.test(y)&&t1(l)&&(a[y]=$n(l,t,a[y]));if(!t1(s))return a;for(const y of Object.getOwnPropertyNames(a))f.test(y)||(a[y]=$n(s,t,a[y]));return a}function D$(e,t,i){return $n(jl(e,t),t,Wi(e,i))}function U$(e,t,i){return $n(jl(e,t),t,i)}function M$(e,t,i){const a=Wi(e,i);if(!Da(a)||Mo(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 j$(e,t,i){const a=Wi(e,i);for(const s of e.anyOf){const c=$n(s,t,Do(a));if(v$(s,t,c))return c}return a}function $n(e,t,i){const a=u3(e,t),s=e;switch(s[Le]){case"Array":return O$(s,a,i);case"Date":return F$(s,a,i);case"Import":return B$(s,a,i);case"Intersect":return R$(s,a,i);case"Object":return T$(s,a,i);case"Record":return _$(s,a,i);case"Ref":return D$(s,a,i);case"This":return U$(s,a,i);case"Tuple":return M$(s,a,i);case"Union":return j$(s,a,i);default:return Wi(s,i)}}function P$(...e){return e.length===3?$n(e[0],e[1],e[2]):$n(e[0],[],e[1])}var Ni={},ag={exports:{}},og={},sg={},ug={},cg,BI;function xv(){return BI||(BI=1,cg=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}),cg}var lg,RI;function Ah(){if(RI)return lg;RI=1;var e=xv();return lg=function(){return e()&&!!Symbol.toStringTag},lg}var fg,TI;function Ev(){return TI||(TI=1,fg=Object),fg}var dg,_I;function N$(){return _I||(_I=1,dg=Error),dg}var hg,DI;function L$(){return DI||(DI=1,hg=EvalError),hg}var pg,UI;function q$(){return UI||(UI=1,pg=RangeError),pg}var yg,MI;function $$(){return MI||(MI=1,yg=ReferenceError),yg}var gg,jI;function d3(){return jI||(jI=1,gg=SyntaxError),gg}var mg,PI;function Pl(){return PI||(PI=1,mg=TypeError),mg}var Ag,NI;function H$(){return NI||(NI=1,Ag=URIError),Ag}var bg,LI;function z$(){return LI||(LI=1,bg=Math.abs),bg}var vg,qI;function G$(){return qI||(qI=1,vg=Math.floor),vg}var xg,$I;function Q$(){return $I||($I=1,xg=Math.max),xg}var Eg,HI;function k$(){return HI||(HI=1,Eg=Math.min),Eg}var wg,zI;function V$(){return zI||(zI=1,wg=Math.pow),wg}var Ig,GI;function K$(){return GI||(GI=1,Ig=Math.round),Ig}var Sg,QI;function Y$(){return QI||(QI=1,Sg=Number.isNaN||function(t){return t!==t}),Sg}var Cg,kI;function X$(){if(kI)return Cg;kI=1;var e=Y$();return Cg=function(i){return e(i)||i===0?i:i<0?-1:1},Cg}var Og,VI;function Z$(){return VI||(VI=1,Og=Object.getOwnPropertyDescriptor),Og}var Fg,KI;function gu(){if(KI)return Fg;KI=1;var e=Z$();if(e)try{e([],"length")}catch{e=null}return Fg=e,Fg}var Bg,YI;function bh(){if(YI)return Bg;YI=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return Bg=e,Bg}var Rg,XI;function J$(){if(XI)return Rg;XI=1;var e=typeof Symbol<"u"&&Symbol,t=xv();return Rg=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Rg}var Tg,ZI;function h3(){return ZI||(ZI=1,Tg=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Tg}var _g,JI;function p3(){if(JI)return _g;JI=1;var e=Ev();return _g=e.getPrototypeOf||null,_g}var Dg,WI;function W$(){if(WI)return Dg;WI=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,i=Math.max,a="[object Function]",s=function(y,h){for(var A=[],v=0;v<y.length;v+=1)A[v]=y[v];for(var m=0;m<h.length;m+=1)A[m+y.length]=h[m];return A},c=function(y,h){for(var A=[],v=h,m=0;v<y.length;v+=1,m+=1)A[m]=y[v];return A},l=function(f,y){for(var h="",A=0;A<f.length;A+=1)h+=f[A],A+1<f.length&&(h+=y);return h};return Dg=function(y){var h=this;if(typeof h!="function"||t.apply(h)!==a)throw new TypeError(e+h);for(var A=c(arguments,1),v,m=function(){if(this instanceof v){var R=h.apply(this,s(A,arguments));return Object(R)===R?R:this}return h.apply(y,s(A,arguments))},I=i(0,h.length-A.length),O=[],M=0;M<I;M++)O[M]="$"+M;if(v=Function("binder","return function ("+l(O,",")+"){ return binder.apply(this,arguments); }")(m),h.prototype){var B=function(){};B.prototype=h.prototype,v.prototype=new B,B.prototype=null}return v},Dg}var Ug,eS;function Nl(){if(eS)return Ug;eS=1;var e=W$();return Ug=Function.prototype.bind||e,Ug}var Mg,tS;function wv(){return tS||(tS=1,Mg=Function.prototype.call),Mg}var jg,nS;function Iv(){return nS||(nS=1,jg=Function.prototype.apply),jg}var Pg,rS;function eH(){return rS||(rS=1,Pg=typeof Reflect<"u"&&Reflect&&Reflect.apply),Pg}var Ng,iS;function y3(){if(iS)return Ng;iS=1;var e=Nl(),t=Iv(),i=wv(),a=eH();return Ng=a||e.call(i,t),Ng}var Lg,aS;function Sv(){if(aS)return Lg;aS=1;var e=Nl(),t=Pl(),i=wv(),a=y3();return Lg=function(c){if(c.length<1||typeof c[0]!="function")throw new t("a function is required");return a(e,i,c)},Lg}var qg,oS;function tH(){if(oS)return qg;oS=1;var e=Sv(),t=gu(),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 qg=a&&typeof a.get=="function"?e([a.get]):typeof c=="function"?function(f){return c(f==null?f:s(f))}:!1,qg}var $g,sS;function Cv(){if(sS)return $g;sS=1;var e=h3(),t=p3(),i=tH();return $g=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,$g}var Hg,uS;function g3(){if(uS)return Hg;uS=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,i=Nl();return Hg=i.call(e,t),Hg}var zg,cS;function Ov(){if(cS)return zg;cS=1;var e,t=Ev(),i=N$(),a=L$(),s=q$(),c=$$(),l=d3(),f=Pl(),y=H$(),h=z$(),A=G$(),v=Q$(),m=k$(),I=V$(),O=K$(),M=X$(),B=Function,R=function(ce){try{return B('"use strict"; return ('+ce+").constructor;")()}catch{}},U=gu(),j=bh(),K=function(){throw new f},H=U?(function(){try{return arguments.callee,K}catch{try{return U(arguments,"callee").get}catch{return K}}})():K,ie=J$()(),ye=Cv(),fe=p3(),D=h3(),$=Iv(),k=wv(),Q={},re=typeof Uint8Array>"u"||!ye?e:ye(Uint8Array),Z={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":ie&&ye?ye([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":Q,"%AsyncGenerator%":Q,"%AsyncGeneratorFunction%":Q,"%AsyncIteratorPrototype%":Q,"%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%":Q,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ie&&ye?ye(ye([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ie||!ye?e:ye(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":U,"%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"||!ie||!ye?e:ye(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ie&&ye?ye(""[Symbol.iterator]()):e,"%Symbol%":ie?Symbol:e,"%SyntaxError%":l,"%ThrowTypeError%":H,"%TypedArray%":re,"%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%":y,"%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%":$,"%Object.defineProperty%":j,"%Object.getPrototypeOf%":fe,"%Math.abs%":h,"%Math.floor%":A,"%Math.max%":v,"%Math.min%":m,"%Math.pow%":I,"%Math.round%":O,"%Math.sign%":M,"%Reflect.getPrototypeOf%":D};if(ye)try{null.error}catch(ce){var pe=ye(ye(ce));Z["%Error.prototype%"]=pe}var _=function ce(w){var G;if(w==="%AsyncFunction%")G=R("async function () {}");else if(w==="%GeneratorFunction%")G=R("function* () {}");else if(w==="%AsyncGeneratorFunction%")G=R("async function* () {}");else if(w==="%AsyncGenerator%"){var Y=ce("%AsyncGeneratorFunction%");Y&&(G=Y.prototype)}else if(w==="%AsyncIteratorPrototype%"){var W=ce("%AsyncGenerator%");W&&ye&&(G=ye(W.prototype))}return Z[w]=G,G},te={__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"]},le=Nl(),V=g3(),F=le.call(k,Array.prototype.concat),z=le.call($,Array.prototype.splice),oe=le.call(k,String.prototype.replace),q=le.call(k,String.prototype.slice),N=le.call(k,RegExp.prototype.exec),C=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,P=/\\(\\)?/g,J=function(w){var G=q(w,0,1),Y=q(w,-1);if(G==="%"&&Y!=="%")throw new l("invalid intrinsic syntax, expected closing `%`");if(Y==="%"&&G!=="%")throw new l("invalid intrinsic syntax, expected opening `%`");var W=[];return oe(w,C,function(me,de,x,g){W[W.length]=x?oe(g,P,"$1"):de||me}),W},ne=function(w,G){var Y=w,W;if(V(te,Y)&&(W=te[Y],Y="%"+W[0]+"%"),V(Z,Y)){var me=Z[Y];if(me===Q&&(me=_(Y)),typeof me>"u"&&!G)throw new f("intrinsic "+w+" exists, but is not available. Please file an issue!");return{alias:W,name:Y,value:me}}throw new l("intrinsic "+w+" does not exist!")};return zg=function(w,G){if(typeof w!="string"||w.length===0)throw new f("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof G!="boolean")throw new f('"allowMissing" argument must be a boolean');if(N(/^%?[^%]*%?$/,w)===null)throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Y=J(w),W=Y.length>0?Y[0]:"",me=ne("%"+W+"%",G),de=me.name,x=me.value,g=!1,b=me.alias;b&&(W=b[0],z(Y,F([0,1],b)));for(var S=1,X=!0;S<Y.length;S+=1){var Ae=Y[S],Se=q(Ae,0,1),Me=q(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"||!X)&&(g=!0),W+="."+Ae,de="%"+W+"%",V(Z,de))x=Z[de];else if(x!=null){if(!(Ae in x)){if(!G)throw new f("base intrinsic for "+w+" exists, but the property is not available.");return}if(U&&S+1>=Y.length){var se=U(x,Ae);X=!!se,X&&"get"in se&&!("originalValue"in se.get)?x=se.get:x=x[Ae]}else X=V(x,Ae),x=x[Ae];X&&!g&&(Z[de]=x)}}return x},zg}var Gg,lS;function mu(){if(lS)return Gg;lS=1;var e=Ov(),t=Sv(),i=t([e("%String.prototype.indexOf%")]);return Gg=function(s,c){var l=e(s,!!c);return typeof l=="function"&&i(s,".prototype.")>-1?t([l]):l},Gg}var Qg,fS;function nH(){if(fS)return Qg;fS=1;var e=Ah()(),t=mu(),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,Qg=c?a:s,Qg}var kg,dS;function rH(){if(dS)return kg;dS=1;var e=mu(),t=Ah()(),i=g3(),a=gu(),s;if(t){var c=e("RegExp.prototype.exec"),l={},f=function(){throw l},y={toString:f,valueOf:f};typeof Symbol.toPrimitive=="symbol"&&(y[Symbol.toPrimitive]=f),s=function(m){if(!m||typeof m!="object")return!1;var I=a(m,"lastIndex"),O=I&&i(I,"value");if(!O)return!1;try{c(m,y)}catch(M){return M===l}}}else{var h=e("Object.prototype.toString"),A="[object RegExp]";s=function(m){return!m||typeof m!="object"&&typeof m!="function"?!1:h(m)===A}}return kg=s,kg}var Vg,hS;function iH(){if(hS)return Vg;hS=1;var e=mu(),t=rH(),i=e("RegExp.prototype.exec"),a=Pl();return Vg=function(c){if(!t(c))throw new a("`regex` must be a RegExp");return function(f){return i(c,f)!==null}},Vg}var Kg,pS;function aH(){if(pS)return Kg;pS=1;var e=mu(),t=iH(),i=t(/^\s*(?:function)?\*/),a=Ah()(),s=Cv(),c=e("Object.prototype.toString"),l=e("Function.prototype.toString"),f=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch{}},y;return Kg=function(A){if(typeof A!="function")return!1;if(i(l(A)))return!0;if(!a){var v=c(A);return v==="[object GeneratorFunction]"}if(!s)return!1;if(typeof y>"u"){var m=f();y=m?s(m):!1}return s(A)===y},Kg}var Yg,yS;function oH(){if(yS)return Yg;yS=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(U){U!==a&&(t=null)}else t=null;var s=/^\s*class\b/,c=function(j){try{var K=e.call(j);return s.test(K)}catch{return!1}},l=function(j){try{return c(j)?!1:(e.call(j),!0)}catch{return!1}},f=Object.prototype.toString,y="[object Object]",h="[object Function]",A="[object GeneratorFunction]",v="[object HTMLAllCollection]",m="[object HTML document.all class]",I="[object HTMLCollection]",O=typeof Symbol=="function"&&!!Symbol.toStringTag,M=!(0 in[,]),B=function(){return!1};if(typeof document=="object"){var R=document.all;f.call(R)===f.call(document.all)&&(B=function(j){if((M||!j)&&(typeof j>"u"||typeof j=="object"))try{var K=f.call(j);return(K===v||K===m||K===I||K===y)&&j("")==null}catch{}return!1})}return Yg=t?function(j){if(B(j))return!0;if(!j||typeof j!="function"&&typeof j!="object")return!1;try{t(j,null,i)}catch(K){if(K!==a)return!1}return!c(j)&&l(j)}:function(j){if(B(j))return!0;if(!j||typeof j!="function"&&typeof j!="object")return!1;if(O)return l(j);if(c(j))return!1;var K=f.call(j);return K!==h&&K!==A&&!/^\[object HTML/.test(K)?!1:l(j)},Yg}var Xg,gS;function sH(){if(gS)return Xg;gS=1;var e=oH(),t=Object.prototype.toString,i=Object.prototype.hasOwnProperty,a=function(y,h,A){for(var v=0,m=y.length;v<m;v++)i.call(y,v)&&(A==null?h(y[v],v,y):h.call(A,y[v],v,y))},s=function(y,h,A){for(var v=0,m=y.length;v<m;v++)A==null?h(y.charAt(v),v,y):h.call(A,y.charAt(v),v,y)},c=function(y,h,A){for(var v in y)i.call(y,v)&&(A==null?h(y[v],v,y):h.call(A,y[v],v,y))};function l(f){return t.call(f)==="[object Array]"}return Xg=function(y,h,A){if(!e(h))throw new TypeError("iterator must be a function");var v;arguments.length>=3&&(v=A),l(y)?a(y,h,v):typeof y=="string"?s(y,h,v):c(y,h,v)},Xg}var Zg,mS;function uH(){return mS||(mS=1,Zg=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),Zg}var Jg,AS;function cH(){if(AS)return Jg;AS=1;var e=uH(),t=typeof globalThis>"u"?Hi:globalThis;return Jg=function(){for(var a=[],s=0;s<e.length;s++)typeof t[e[s]]=="function"&&(a[a.length]=e[s]);return a},Jg}var Wg={exports:{}},e0,bS;function m3(){if(bS)return e0;bS=1;var e=bh(),t=d3(),i=Pl(),a=gu();return e0=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 y=arguments.length>3?arguments[3]:null,h=arguments.length>4?arguments[4]:null,A=arguments.length>5?arguments[5]:null,v=arguments.length>6?arguments[6]:!1,m=!!a&&a(c,l);if(e)e(c,l,{configurable:A===null&&m?m.configurable:!A,enumerable:y===null&&m?m.enumerable:!y,value:f,writable:h===null&&m?m.writable:!h});else if(v||!y&&!h&&!A)c[l]=f;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},e0}var t0,vS;function A3(){if(vS)return t0;vS=1;var e=bh(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},t0=t,t0}var n0,xS;function lH(){if(xS)return n0;xS=1;var e=Ov(),t=m3(),i=A3()(),a=gu(),s=Pl(),c=e("%Math.floor%");return n0=function(f,y){if(typeof f!="function")throw new s("`fn` is not a function");if(typeof y!="number"||y<0||y>4294967295||c(y)!==y)throw new s("`length` must be a positive 32-bit integer");var h=arguments.length>2&&!!arguments[2],A=!0,v=!0;if("length"in f&&a){var m=a(f,"length");m&&!m.configurable&&(A=!1),m&&!m.writable&&(v=!1)}return(A||v||!h)&&(i?t(f,"length",y,!0,!0):t(f,"length",y)),f},n0}var r0,ES;function fH(){if(ES)return r0;ES=1;var e=Nl(),t=Iv(),i=y3();return r0=function(){return i(e,t,arguments)},r0}var wS;function vh(){return wS||(wS=1,(function(e){var t=lH(),i=bh(),a=Sv(),s=fH();e.exports=function(l){var f=a(arguments),y=l.length-(arguments.length-1);return t(f,1+(y>0?y:0),!0)},i?i(e.exports,"apply",{value:s}):e.exports.apply=s})(Wg)),Wg.exports}var i0,IS;function b3(){if(IS)return i0;IS=1;var e=sH(),t=cH(),i=vh(),a=mu(),s=gu(),c=Cv(),l=a("Object.prototype.toString"),f=Ah()(),y=typeof globalThis>"u"?Hi:globalThis,h=t(),A=a("String.prototype.slice"),v=a("Array.prototype.indexOf",!0)||function(B,R){for(var U=0;U<B.length;U+=1)if(B[U]===R)return U;return-1},m={__proto__:null};f&&s&&c?e(h,function(M){var B=new y[M];if(Symbol.toStringTag in B&&c){var R=c(B),U=s(R,Symbol.toStringTag);if(!U&&R){var j=c(R);U=s(j,Symbol.toStringTag)}m["$"+M]=i(U.get)}}):e(h,function(M){var B=new y[M],R=B.slice||B.set;R&&(m["$"+M]=i(R))});var I=function(B){var R=!1;return e(m,function(U,j){if(!R)try{"$"+U(B)===j&&(R=A(j,1))}catch{}}),R},O=function(B){var R=!1;return e(m,function(U,j){if(!R)try{U(B),R=A(j,1)}catch{}}),R};return i0=function(B){if(!B||typeof B!="object")return!1;if(!f){var R=A(l(B),8,-1);return v(h,R)>-1?R:R!=="Object"?!1:O(B)}return s?I(B):null},i0}var a0,SS;function dH(){if(SS)return a0;SS=1;var e=b3();return a0=function(i){return!!e(i)},a0}var CS;function hH(){return CS||(CS=1,(function(e){var t=nH(),i=aH(),a=b3(),s=dH();function c(S){return S.call.bind(S)}var l=typeof BigInt<"u",f=typeof Symbol<"u",y=c(Object.prototype.toString),h=c(Number.prototype.valueOf),A=c(String.prototype.valueOf),v=c(Boolean.prototype.valueOf);if(l)var m=c(BigInt.prototype.valueOf);if(f)var I=c(Symbol.prototype.valueOf);function O(S,X){if(typeof S!="object")return!1;try{return X(S),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=i,e.isTypedArray=s;function M(S){return typeof Promise<"u"&&S instanceof Promise||S!==null&&typeof S=="object"&&typeof S.then=="function"&&typeof S.catch=="function"}e.isPromise=M;function B(S){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(S):s(S)||q(S)}e.isArrayBufferView=B;function R(S){return a(S)==="Uint8Array"}e.isUint8Array=R;function U(S){return a(S)==="Uint8ClampedArray"}e.isUint8ClampedArray=U;function j(S){return a(S)==="Uint16Array"}e.isUint16Array=j;function K(S){return a(S)==="Uint32Array"}e.isUint32Array=K;function H(S){return a(S)==="Int8Array"}e.isInt8Array=H;function ie(S){return a(S)==="Int16Array"}e.isInt16Array=ie;function ye(S){return a(S)==="Int32Array"}e.isInt32Array=ye;function fe(S){return a(S)==="Float32Array"}e.isFloat32Array=fe;function D(S){return a(S)==="Float64Array"}e.isFloat64Array=D;function $(S){return a(S)==="BigInt64Array"}e.isBigInt64Array=$;function k(S){return a(S)==="BigUint64Array"}e.isBigUint64Array=k;function Q(S){return y(S)==="[object Map]"}Q.working=typeof Map<"u"&&Q(new Map);function re(S){return typeof Map>"u"?!1:Q.working?Q(S):S instanceof Map}e.isMap=re;function Z(S){return y(S)==="[object Set]"}Z.working=typeof Set<"u"&&Z(new Set);function pe(S){return typeof Set>"u"?!1:Z.working?Z(S):S instanceof Set}e.isSet=pe;function _(S){return y(S)==="[object WeakMap]"}_.working=typeof WeakMap<"u"&&_(new WeakMap);function te(S){return typeof WeakMap>"u"?!1:_.working?_(S):S instanceof WeakMap}e.isWeakMap=te;function le(S){return y(S)==="[object WeakSet]"}le.working=typeof WeakSet<"u"&&le(new WeakSet);function V(S){return le(S)}e.isWeakSet=V;function F(S){return y(S)==="[object ArrayBuffer]"}F.working=typeof ArrayBuffer<"u"&&F(new ArrayBuffer);function z(S){return typeof ArrayBuffer>"u"?!1:F.working?F(S):S instanceof ArrayBuffer}e.isArrayBuffer=z;function oe(S){return y(S)==="[object DataView]"}oe.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&oe(new DataView(new ArrayBuffer(1),0,1));function q(S){return typeof DataView>"u"?!1:oe.working?oe(S):S instanceof DataView}e.isDataView=q;var N=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function C(S){return y(S)==="[object SharedArrayBuffer]"}function P(S){return typeof N>"u"?!1:(typeof C.working>"u"&&(C.working=C(new N)),C.working?C(S):S instanceof N)}e.isSharedArrayBuffer=P;function J(S){return y(S)==="[object AsyncFunction]"}e.isAsyncFunction=J;function ne(S){return y(S)==="[object Map Iterator]"}e.isMapIterator=ne;function ce(S){return y(S)==="[object Set Iterator]"}e.isSetIterator=ce;function w(S){return y(S)==="[object Generator]"}e.isGeneratorObject=w;function G(S){return y(S)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=G;function Y(S){return O(S,h)}e.isNumberObject=Y;function W(S){return O(S,A)}e.isStringObject=W;function me(S){return O(S,v)}e.isBooleanObject=me;function de(S){return l&&O(S,m)}e.isBigIntObject=de;function x(S){return f&&O(S,I)}e.isSymbolObject=x;function g(S){return Y(S)||W(S)||me(S)||de(S)||x(S)}e.isBoxedPrimitive=g;function b(S){return typeof Uint8Array<"u"&&(z(S)||P(S))}e.isAnyArrayBuffer=b,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(S){Object.defineProperty(e,S,{enumerable:!1,value:function(){throw new Error(S+" is not supported in userland")}})})})(ug)),ug}var o0,OS;function pH(){return OS||(OS=1,o0=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),o0}var ud={exports:{}},FS;function yH(){return FS||(FS=1,typeof Object.create=="function"?ud.exports=function(t,i){i&&(t.super_=i,t.prototype=Object.create(i.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:ud.exports=function(t,i){if(i){t.super_=i;var a=function(){};a.prototype=i.prototype,t.prototype=new a,t.prototype.constructor=t}}),ud.exports}var BS;function dl(){return BS||(BS=1,(function(e){var t={},i=Object.getOwnPropertyDescriptors||function(N){for(var C=Object.keys(N),P={},J=0;J<C.length;J++)P[C[J]]=Object.getOwnPropertyDescriptor(N,C[J]);return P},a=/%[sdj%]/g;e.format=function(q){if(!ie(q)){for(var N=[],C=0;C<arguments.length;C++)N.push(f(arguments[C]));return N.join(" ")}for(var C=1,P=arguments,J=P.length,ne=String(q).replace(a,function(w){if(w==="%%")return"%";if(C>=J)return w;switch(w){case"%s":return String(P[C++]);case"%d":return Number(P[C++]);case"%j":try{return JSON.stringify(P[C++])}catch{return"[Circular]"}default:return w}}),ce=P[C];C<J;ce=P[++C])j(ce)||!$(ce)?ne+=" "+ce:ne+=" "+f(ce);return ne},e.deprecate=function(q,N){if(typeof it<"u"&&it.noDeprecation===!0)return q;if(typeof it>"u")return function(){return e.deprecate(q,N).apply(this,arguments)};var C=!1;function P(){if(!C){if(it.throwDeprecation)throw new Error(N);it.traceDeprecation?console.trace(N):console.error(N),C=!0}return q.apply(this,arguments)}return P};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(q){if(q=q.toUpperCase(),!s[q])if(c.test(q)){var N=it.pid;s[q]=function(){var C=e.format.apply(e,arguments);console.error("%s %d: %s",q,N,C)}}else s[q]=function(){};return s[q]};function f(q,N){var C={seen:[],stylize:h};return arguments.length>=3&&(C.depth=arguments[2]),arguments.length>=4&&(C.colors=arguments[3]),U(N)?C.showHidden=N:N&&e._extend(C,N),fe(C.showHidden)&&(C.showHidden=!1),fe(C.depth)&&(C.depth=2),fe(C.colors)&&(C.colors=!1),fe(C.customInspect)&&(C.customInspect=!0),C.colors&&(C.stylize=y),v(C,q,C.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 y(q,N){var C=f.styles[N];return C?"\x1B["+f.colors[C][0]+"m"+q+"\x1B["+f.colors[C][1]+"m":q}function h(q,N){return q}function A(q){var N={};return q.forEach(function(C,P){N[C]=!0}),N}function v(q,N,C){if(q.customInspect&&N&&re(N.inspect)&&N.inspect!==e.inspect&&!(N.constructor&&N.constructor.prototype===N)){var P=N.inspect(C,q);return ie(P)||(P=v(q,P,C)),P}var J=m(q,N);if(J)return J;var ne=Object.keys(N),ce=A(ne);if(q.showHidden&&(ne=Object.getOwnPropertyNames(N)),Q(N)&&(ne.indexOf("message")>=0||ne.indexOf("description")>=0))return I(N);if(ne.length===0){if(re(N)){var w=N.name?": "+N.name:"";return q.stylize("[Function"+w+"]","special")}if(D(N))return q.stylize(RegExp.prototype.toString.call(N),"regexp");if(k(N))return q.stylize(Date.prototype.toString.call(N),"date");if(Q(N))return I(N)}var G="",Y=!1,W=["{","}"];if(R(N)&&(Y=!0,W=["[","]"]),re(N)){var me=N.name?": "+N.name:"";G=" [Function"+me+"]"}if(D(N)&&(G=" "+RegExp.prototype.toString.call(N)),k(N)&&(G=" "+Date.prototype.toUTCString.call(N)),Q(N)&&(G=" "+I(N)),ne.length===0&&(!Y||N.length==0))return W[0]+G+W[1];if(C<0)return D(N)?q.stylize(RegExp.prototype.toString.call(N),"regexp"):q.stylize("[Object]","special");q.seen.push(N);var de;return Y?de=O(q,N,C,ce,ne):de=ne.map(function(x){return M(q,N,C,ce,x,Y)}),q.seen.pop(),B(de,G,W)}function m(q,N){if(fe(N))return q.stylize("undefined","undefined");if(ie(N)){var C="'"+JSON.stringify(N).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return q.stylize(C,"string")}if(H(N))return q.stylize(""+N,"number");if(U(N))return q.stylize(""+N,"boolean");if(j(N))return q.stylize("null","null")}function I(q){return"["+Error.prototype.toString.call(q)+"]"}function O(q,N,C,P,J){for(var ne=[],ce=0,w=N.length;ce<w;++ce)V(N,String(ce))?ne.push(M(q,N,C,P,String(ce),!0)):ne.push("");return J.forEach(function(G){G.match(/^\d+$/)||ne.push(M(q,N,C,P,G,!0))}),ne}function M(q,N,C,P,J,ne){var ce,w,G;if(G=Object.getOwnPropertyDescriptor(N,J)||{value:N[J]},G.get?G.set?w=q.stylize("[Getter/Setter]","special"):w=q.stylize("[Getter]","special"):G.set&&(w=q.stylize("[Setter]","special")),V(P,J)||(ce="["+J+"]"),w||(q.seen.indexOf(G.value)<0?(j(C)?w=v(q,G.value,null):w=v(q,G.value,C-1),w.indexOf(`
62
+ `)>-1&&(ne?w=w.split(`
63
+ `).map(function(Y){return" "+Y}).join(`
64
+ `).slice(2):w=`
65
+ `+w.split(`
66
+ `).map(function(Y){return" "+Y}).join(`
67
+ `))):w=q.stylize("[Circular]","special")),fe(ce)){if(ne&&J.match(/^\d+$/))return w;ce=JSON.stringify(""+J),ce.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(ce=ce.slice(1,-1),ce=q.stylize(ce,"name")):(ce=ce.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),ce=q.stylize(ce,"string"))}return ce+": "+w}function B(q,N,C){var P=q.reduce(function(J,ne){return ne.indexOf(`
68
+ `)>=0,J+ne.replace(/\u001b\[\d\d?m/g,"").length+1},0);return P>60?C[0]+(N===""?"":N+`
69
+ `)+" "+q.join(`,
70
+ `)+" "+C[1]:C[0]+N+" "+q.join(", ")+" "+C[1]}e.types=hH();function R(q){return Array.isArray(q)}e.isArray=R;function U(q){return typeof q=="boolean"}e.isBoolean=U;function j(q){return q===null}e.isNull=j;function K(q){return q==null}e.isNullOrUndefined=K;function H(q){return typeof q=="number"}e.isNumber=H;function ie(q){return typeof q=="string"}e.isString=ie;function ye(q){return typeof q=="symbol"}e.isSymbol=ye;function fe(q){return q===void 0}e.isUndefined=fe;function D(q){return $(q)&&pe(q)==="[object RegExp]"}e.isRegExp=D,e.types.isRegExp=D;function $(q){return typeof q=="object"&&q!==null}e.isObject=$;function k(q){return $(q)&&pe(q)==="[object Date]"}e.isDate=k,e.types.isDate=k;function Q(q){return $(q)&&(pe(q)==="[object Error]"||q instanceof Error)}e.isError=Q,e.types.isNativeError=Q;function re(q){return typeof q=="function"}e.isFunction=re;function Z(q){return q===null||typeof q=="boolean"||typeof q=="number"||typeof q=="string"||typeof q=="symbol"||typeof q>"u"}e.isPrimitive=Z,e.isBuffer=pH();function pe(q){return Object.prototype.toString.call(q)}function _(q){return q<10?"0"+q.toString(10):q.toString(10)}var te=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function le(){var q=new Date,N=[_(q.getHours()),_(q.getMinutes()),_(q.getSeconds())].join(":");return[q.getDate(),te[q.getMonth()],N].join(" ")}e.log=function(){console.log("%s - %s",le(),e.format.apply(e,arguments))},e.inherits=yH(),e._extend=function(q,N){if(!N||!$(N))return q;for(var C=Object.keys(N),P=C.length;P--;)q[C[P]]=N[C[P]];return q};function V(q,N){return Object.prototype.hasOwnProperty.call(q,N)}var F=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(N){if(typeof N!="function")throw new TypeError('The "original" argument must be of type Function');if(F&&N[F]){var C=N[F];if(typeof C!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(C,F,{value:C,enumerable:!1,writable:!1,configurable:!0}),C}function C(){for(var P,J,ne=new Promise(function(G,Y){P=G,J=Y}),ce=[],w=0;w<arguments.length;w++)ce.push(arguments[w]);ce.push(function(G,Y){G?J(G):P(Y)});try{N.apply(this,ce)}catch(G){J(G)}return ne}return Object.setPrototypeOf(C,Object.getPrototypeOf(N)),F&&Object.defineProperty(C,F,{value:C,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(C,i(N))},e.promisify.custom=F;function z(q,N){if(!q){var C=new Error("Promise was rejected with a falsy value");C.reason=q,q=C}return N(q)}function oe(q){if(typeof q!="function")throw new TypeError('The "original" argument must be of type Function');function N(){for(var C=[],P=0;P<arguments.length;P++)C.push(arguments[P]);var J=C.pop();if(typeof J!="function")throw new TypeError("The last argument must be of type Function");var ne=this,ce=function(){return J.apply(ne,arguments)};q.apply(this,C).then(function(w){it.nextTick(ce.bind(null,null,w))},function(w){it.nextTick(z.bind(null,w,ce))})}return Object.setPrototypeOf(N,Object.getPrototypeOf(q)),Object.defineProperties(N,i(q)),N}e.callbackify=oe})(sg)),sg}var RS;function v3(){if(RS)return og;RS=1;function e(U){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(j){return typeof j}:function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j},e(U)}function t(U,j,K){return Object.defineProperty(U,"prototype",{writable:!1}),U}function i(U,j){if(!(U instanceof j))throw new TypeError("Cannot call a class as a function")}function a(U,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");U.prototype=Object.create(j&&j.prototype,{constructor:{value:U,writable:!0,configurable:!0}}),Object.defineProperty(U,"prototype",{writable:!1}),j&&s(U,j)}function s(U,j){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(H,ie){return H.__proto__=ie,H},s(U,j)}function c(U){var j=y();return function(){var H=h(U),ie;if(j){var ye=h(this).constructor;ie=Reflect.construct(H,arguments,ye)}else ie=H.apply(this,arguments);return l(this,ie)}}function l(U,j){if(j&&(e(j)==="object"||typeof j=="function"))return j;if(j!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return f(U)}function f(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}function y(){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(U){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(K){return K.__proto__||Object.getPrototypeOf(K)},h(U)}var A={},v,m;function I(U,j,K){K||(K=Error);function H(ye,fe,D){return typeof j=="string"?j:j(ye,fe,D)}var ie=(function(ye){a(D,ye);var fe=c(D);function D($,k,Q){var re;return i(this,D),re=fe.call(this,H($,k,Q)),re.code=U,re}return t(D)})(K);A[U]=ie}function O(U,j){if(Array.isArray(U)){var K=U.length;return U=U.map(function(H){return String(H)}),K>2?"one of ".concat(j," ").concat(U.slice(0,K-1).join(", "),", or ")+U[K-1]:K===2?"one of ".concat(j," ").concat(U[0]," or ").concat(U[1]):"of ".concat(j," ").concat(U[0])}else return"of ".concat(j," ").concat(String(U))}function M(U,j,K){return U.substr(0,j.length)===j}function B(U,j,K){return(K===void 0||K>U.length)&&(K=U.length),U.substring(K-j.length,K)===j}function R(U,j,K){return typeof K!="number"&&(K=0),K+j.length>U.length?!1:U.indexOf(j,K)!==-1}return I("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),I("ERR_INVALID_ARG_TYPE",function(U,j,K){v===void 0&&(v=n1()),v(typeof U=="string","'name' must be a string");var H;typeof j=="string"&&M(j,"not ")?(H="must not be",j=j.replace(/^not /,"")):H="must be";var ie;if(B(U," argument"))ie="The ".concat(U," ").concat(H," ").concat(O(j,"type"));else{var ye=R(U,".")?"property":"argument";ie='The "'.concat(U,'" ').concat(ye," ").concat(H," ").concat(O(j,"type"))}return ie+=". Received type ".concat(e(K)),ie},TypeError),I("ERR_INVALID_ARG_VALUE",function(U,j){var K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";m===void 0&&(m=dl());var H=m.inspect(j);return H.length>128&&(H="".concat(H.slice(0,128),"...")),"The argument '".concat(U,"' ").concat(K,". Received ").concat(H)},TypeError),I("ERR_INVALID_RETURN_VALUE",function(U,j,K){var H;return K&&K.constructor&&K.constructor.name?H="instance of ".concat(K.constructor.name):H="type ".concat(e(K)),"Expected ".concat(U,' to be returned from the "').concat(j,'"')+" function but got ".concat(H,".")},TypeError),I("ERR_MISSING_ARGS",function(){for(var U=arguments.length,j=new Array(U),K=0;K<U;K++)j[K]=arguments[K];v===void 0&&(v=n1()),v(j.length>0,"At least one arg needs to be specified");var H="The ",ie=j.length;switch(j=j.map(function(ye){return'"'.concat(ye,'"')}),ie){case 1:H+="".concat(j[0]," argument");break;case 2:H+="".concat(j[0]," and ").concat(j[1]," arguments");break;default:H+=j.slice(0,ie-1).join(", "),H+=", and ".concat(j[ie-1]," arguments");break}return"".concat(H," must be specified")},TypeError),og.codes=A,og}var s0,TS;function gH(){if(TS)return s0;TS=1;function e(V,F){var z=Object.keys(V);if(Object.getOwnPropertySymbols){var oe=Object.getOwnPropertySymbols(V);F&&(oe=oe.filter(function(q){return Object.getOwnPropertyDescriptor(V,q).enumerable})),z.push.apply(z,oe)}return z}function t(V){for(var F=1;F<arguments.length;F++){var z=arguments[F]!=null?arguments[F]:{};F%2?e(Object(z),!0).forEach(function(oe){i(V,oe,z[oe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(V,Object.getOwnPropertyDescriptors(z)):e(Object(z)).forEach(function(oe){Object.defineProperty(V,oe,Object.getOwnPropertyDescriptor(z,oe))})}return V}function i(V,F,z){return F=l(F),F in V?Object.defineProperty(V,F,{value:z,enumerable:!0,configurable:!0,writable:!0}):V[F]=z,V}function a(V,F){if(!(V instanceof F))throw new TypeError("Cannot call a class as a function")}function s(V,F){for(var z=0;z<F.length;z++){var oe=F[z];oe.enumerable=oe.enumerable||!1,oe.configurable=!0,"value"in oe&&(oe.writable=!0),Object.defineProperty(V,l(oe.key),oe)}}function c(V,F,z){return F&&s(V.prototype,F),Object.defineProperty(V,"prototype",{writable:!1}),V}function l(V){var F=f(V,"string");return U(F)==="symbol"?F:String(F)}function f(V,F){if(U(V)!=="object"||V===null)return V;var z=V[Symbol.toPrimitive];if(z!==void 0){var oe=z.call(V,F);if(U(oe)!=="object")return oe;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(V)}function y(V,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");V.prototype=Object.create(F&&F.prototype,{constructor:{value:V,writable:!0,configurable:!0}}),Object.defineProperty(V,"prototype",{writable:!1}),F&&B(V,F)}function h(V){var F=O();return function(){var oe=R(V),q;if(F){var N=R(this).constructor;q=Reflect.construct(oe,arguments,N)}else q=oe.apply(this,arguments);return A(this,q)}}function A(V,F){if(F&&(U(F)==="object"||typeof F=="function"))return F;if(F!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(V)}function v(V){if(V===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return V}function m(V){var F=typeof Map=="function"?new Map:void 0;return m=function(oe){if(oe===null||!M(oe))return oe;if(typeof oe!="function")throw new TypeError("Super expression must either be null or a function");if(typeof F<"u"){if(F.has(oe))return F.get(oe);F.set(oe,q)}function q(){return I(oe,arguments,R(this).constructor)}return q.prototype=Object.create(oe.prototype,{constructor:{value:q,enumerable:!1,writable:!0,configurable:!0}}),B(q,oe)},m(V)}function I(V,F,z){return O()?I=Reflect.construct.bind():I=function(q,N,C){var P=[null];P.push.apply(P,N);var J=Function.bind.apply(q,P),ne=new J;return C&&B(ne,C.prototype),ne},I.apply(null,arguments)}function O(){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 M(V){return Function.toString.call(V).indexOf("[native code]")!==-1}function B(V,F){return B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(oe,q){return oe.__proto__=q,oe},B(V,F)}function R(V){return R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(z){return z.__proto__||Object.getPrototypeOf(z)},R(V)}function U(V){"@babel/helpers - typeof";return U=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},U(V)}var j=dl(),K=j.inspect,H=v3(),ie=H.codes.ERR_INVALID_ARG_TYPE;function ye(V,F,z){return(z===void 0||z>V.length)&&(z=V.length),V.substring(z-F.length,z)===F}function fe(V,F){if(F=Math.floor(F),V.length==0||F==0)return"";var z=V.length*F;for(F=Math.floor(Math.log(F)/Math.log(2));F;)V+=V,F--;return V+=V.substring(0,z-V.length),V}var D="",$="",k="",Q="",re={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:"},Z=10;function pe(V){var F=Object.keys(V),z=Object.create(Object.getPrototypeOf(V));return F.forEach(function(oe){z[oe]=V[oe]}),Object.defineProperty(z,"message",{value:V.message}),z}function _(V){return K(V,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function te(V,F,z){var oe="",q="",N=0,C="",P=!1,J=_(V),ne=J.split(`
71
+ `),ce=_(F).split(`
72
+ `),w=0,G="";if(z==="strictEqual"&&U(V)==="object"&&U(F)==="object"&&V!==null&&F!==null&&(z="strictEqualObject"),ne.length===1&&ce.length===1&&ne[0]!==ce[0]){var Y=ne[0].length+ce[0].length;if(Y<=Z){if((U(V)!=="object"||V===null)&&(U(F)!=="object"||F===null)&&(V!==0||F!==0))return"".concat(re[z],`
73
+
74
+ `)+"".concat(ne[0]," !== ").concat(ce[0],`
75
+ `)}else if(z!=="strictEqualObject"){var W=it.stderr&&it.stderr.isTTY?it.stderr.columns:80;if(Y<W){for(;ne[0][w]===ce[0][w];)w++;w>2&&(G=`
76
+ `.concat(fe(" ",w),"^"),w=0)}}}for(var me=ne[ne.length-1],de=ce[ce.length-1];me===de&&(w++<2?C=`
77
+ `.concat(me).concat(C):oe=me,ne.pop(),ce.pop(),!(ne.length===0||ce.length===0));)me=ne[ne.length-1],de=ce[ce.length-1];var x=Math.max(ne.length,ce.length);if(x===0){var g=J.split(`
78
+ `);if(g.length>30)for(g[26]="".concat(D,"...").concat(Q);g.length>27;)g.pop();return"".concat(re.notIdentical,`
79
+
80
+ `).concat(g.join(`
81
+ `),`
82
+ `)}w>3&&(C=`
83
+ `.concat(D,"...").concat(Q).concat(C),P=!0),oe!==""&&(C=`
84
+ `.concat(oe).concat(C),oe="");var b=0,S=re[z]+`
85
+ `.concat($,"+ actual").concat(Q," ").concat(k,"- expected").concat(Q),X=" ".concat(D,"...").concat(Q," Lines skipped");for(w=0;w<x;w++){var Ae=w-N;if(ne.length<w+1)Ae>1&&w>2&&(Ae>4?(q+=`
86
+ `.concat(D,"...").concat(Q),P=!0):Ae>3&&(q+=`
87
+ `.concat(ce[w-2]),b++),q+=`
88
+ `.concat(ce[w-1]),b++),N=w,oe+=`
89
+ `.concat(k,"-").concat(Q," ").concat(ce[w]),b++;else if(ce.length<w+1)Ae>1&&w>2&&(Ae>4?(q+=`
90
+ `.concat(D,"...").concat(Q),P=!0):Ae>3&&(q+=`
91
+ `.concat(ne[w-2]),b++),q+=`
92
+ `.concat(ne[w-1]),b++),N=w,q+=`
93
+ `.concat($,"+").concat(Q," ").concat(ne[w]),b++;else{var Se=ce[w],Me=ne[w],se=Me!==Se&&(!ye(Me,",")||Me.slice(0,-1)!==Se);se&&ye(Se,",")&&Se.slice(0,-1)===Me&&(se=!1,Me+=","),se?(Ae>1&&w>2&&(Ae>4?(q+=`
94
+ `.concat(D,"...").concat(Q),P=!0):Ae>3&&(q+=`
95
+ `.concat(ne[w-2]),b++),q+=`
96
+ `.concat(ne[w-1]),b++),N=w,q+=`
97
+ `.concat($,"+").concat(Q," ").concat(Me),oe+=`
98
+ `.concat(k,"-").concat(Q," ").concat(Se),b+=2):(q+=oe,oe="",(Ae===1||w===0)&&(q+=`
99
+ `.concat(Me),b++))}if(b>20&&w<x-2)return"".concat(S).concat(X,`
100
+ `).concat(q,`
101
+ `).concat(D,"...").concat(Q).concat(oe,`
102
+ `)+"".concat(D,"...").concat(Q)}return"".concat(S).concat(P?X:"",`
103
+ `).concat(q).concat(oe).concat(C).concat(G)}var le=(function(V,F){y(oe,V);var z=h(oe);function oe(q){var N;if(a(this,oe),U(q)!=="object"||q===null)throw new ie("options","Object",q);var C=q.message,P=q.operator,J=q.stackStartFn,ne=q.actual,ce=q.expected,w=Error.stackTraceLimit;if(Error.stackTraceLimit=0,C!=null)N=z.call(this,String(C));else if(it.stderr&&it.stderr.isTTY&&(it.stderr&&it.stderr.getColorDepth&&it.stderr.getColorDepth()!==1?(D="\x1B[34m",$="\x1B[32m",Q="\x1B[39m",k="\x1B[31m"):(D="",$="",Q="",k="")),U(ne)==="object"&&ne!==null&&U(ce)==="object"&&ce!==null&&"stack"in ne&&ne instanceof Error&&"stack"in ce&&ce instanceof Error&&(ne=pe(ne),ce=pe(ce)),P==="deepStrictEqual"||P==="strictEqual")N=z.call(this,te(ne,ce,P));else if(P==="notDeepStrictEqual"||P==="notStrictEqual"){var G=re[P],Y=_(ne).split(`
104
+ `);if(P==="notStrictEqual"&&U(ne)==="object"&&ne!==null&&(G=re.notStrictEqualObject),Y.length>30)for(Y[26]="".concat(D,"...").concat(Q);Y.length>27;)Y.pop();Y.length===1?N=z.call(this,"".concat(G," ").concat(Y[0])):N=z.call(this,"".concat(G,`
105
+
106
+ `).concat(Y.join(`
107
+ `),`
108
+ `))}else{var W=_(ne),me="",de=re[P];P==="notDeepEqual"||P==="notEqual"?(W="".concat(re[P],`
109
+
110
+ `).concat(W),W.length>1024&&(W="".concat(W.slice(0,1021),"..."))):(me="".concat(_(ce)),W.length>512&&(W="".concat(W.slice(0,509),"...")),me.length>512&&(me="".concat(me.slice(0,509),"...")),P==="deepEqual"||P==="equal"?W="".concat(de,`
111
+
112
+ `).concat(W,`
113
+
114
+ should equal
115
+
116
+ `):me=" ".concat(P," ").concat(me)),N=z.call(this,"".concat(W).concat(me))}return Error.stackTraceLimit=w,N.generatedMessage=!C,Object.defineProperty(v(N),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),N.code="ERR_ASSERTION",N.actual=ne,N.expected=ce,N.operator=P,Error.captureStackTrace&&Error.captureStackTrace(v(N),J),N.stack,N.name="AssertionError",A(N)}return c(oe,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:F,value:function(N,C){return K(this,t(t({},C),{},{customInspect:!1,depth:0}))}}]),oe})(m(Error),K.custom);return s0=le,s0}var u0,_S;function x3(){if(_S)return u0;_S=1;var e=Object.prototype.toString;return u0=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},u0}var c0,DS;function mH(){if(DS)return c0;DS=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=x3(),s=Object.prototype.propertyIsEnumerable,c=!s.call({toString:null},"toString"),l=s.call(function(){},"prototype"),f=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],y=function(m){var I=m.constructor;return I&&I.prototype===m},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},A=(function(){if(typeof window>"u")return!1;for(var m in window)try{if(!h["$"+m]&&t.call(window,m)&&window[m]!==null&&typeof window[m]=="object")try{y(window[m])}catch{return!0}}catch{return!0}return!1})(),v=function(m){if(typeof window>"u"||!A)return y(m);try{return y(m)}catch{return!1}};e=function(I){var O=I!==null&&typeof I=="object",M=i.call(I)==="[object Function]",B=a(I),R=O&&i.call(I)==="[object String]",U=[];if(!O&&!M&&!B)throw new TypeError("Object.keys called on a non-object");var j=l&&M;if(R&&I.length>0&&!t.call(I,0))for(var K=0;K<I.length;++K)U.push(String(K));if(B&&I.length>0)for(var H=0;H<I.length;++H)U.push(String(H));else for(var ie in I)!(j&&ie==="prototype")&&t.call(I,ie)&&U.push(String(ie));if(c)for(var ye=v(I),fe=0;fe<f.length;++fe)!(ye&&f[fe]==="constructor")&&t.call(I,f[fe])&&U.push(f[fe]);return U}}return c0=e,c0}var l0,US;function E3(){if(US)return l0;US=1;var e=Array.prototype.slice,t=x3(),i=Object.keys,a=i?function(l){return i(l)}:mH(),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(y){return t(y)?s(e.call(y)):s(y)})}else Object.keys=a;return Object.keys||a},l0=a,l0}var f0,MS;function AH(){if(MS)return f0;MS=1;var e=E3(),t=xv()(),i=mu(),a=Ev(),s=i("Array.prototype.push"),c=i("Object.prototype.propertyIsEnumerable"),l=t?a.getOwnPropertySymbols:null;return f0=function(y,h){if(y==null)throw new TypeError("target must be an object");var A=a(y);if(arguments.length===1)return A;for(var v=1;v<arguments.length;++v){var m=a(arguments[v]),I=e(m),O=t&&(a.getOwnPropertySymbols||l);if(O)for(var M=O(m),B=0;B<M.length;++B){var R=M[B];c(m,R)&&s(I,R)}for(var U=0;U<I.length;++U){var j=I[U];if(c(m,j)){var K=m[j];A[j]=K}}}return A},f0}var d0,jS;function bH(){if(jS)return d0;jS=1;var e=AH(),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),y="";for(var h in f)y+=h;return a!==y},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 d0=function(){return!Object.assign||t()||i()?e:Object.assign},d0}var h0,PS;function w3(){if(PS)return h0;PS=1;var e=function(t){return t!==t};return h0=function(i,a){return i===0&&a===0?1/i===1/a:!!(i===a||e(i)&&e(a))},h0}var p0,NS;function Fv(){if(NS)return p0;NS=1;var e=w3();return p0=function(){return typeof Object.is=="function"?Object.is:e},p0}var y0,LS;function vH(){if(LS)return y0;LS=1;var e=Ov(),t=vh(),i=t(e("String.prototype.indexOf"));return y0=function(s,c){var l=e(s,!!c);return typeof l=="function"&&i(s,".prototype.")>-1?t(l):l},y0}var g0,qS;function xh(){if(qS)return g0;qS=1;var e=E3(),t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",i=Object.prototype.toString,a=Array.prototype.concat,s=m3(),c=function(h){return typeof h=="function"&&i.call(h)==="[object Function]"},l=A3()(),f=function(h,A,v,m){if(A in h){if(m===!0){if(h[A]===v)return}else if(!c(m)||!m())return}l?s(h,A,v,!0):s(h,A,v)},y=function(h,A){var v=arguments.length>2?arguments[2]:{},m=e(A);t&&(m=a.call(m,Object.getOwnPropertySymbols(A)));for(var I=0;I<m.length;I+=1)f(h,m[I],A[m[I]],v[m[I]])};return y.supportsDescriptors=!!l,g0=y,g0}var m0,$S;function xH(){if($S)return m0;$S=1;var e=Fv(),t=xh();return m0=function(){var a=e();return t(Object,{is:a},{is:function(){return Object.is!==a}}),a},m0}var A0,HS;function EH(){if(HS)return A0;HS=1;var e=xh(),t=vh(),i=w3(),a=Fv(),s=xH(),c=t(a(),Object);return e(c,{getPolyfill:a,implementation:i,shim:s}),A0=c,A0}var b0,zS;function I3(){return zS||(zS=1,b0=function(t){return t!==t}),b0}var v0,GS;function S3(){if(GS)return v0;GS=1;var e=I3();return v0=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:e},v0}var x0,QS;function wH(){if(QS)return x0;QS=1;var e=xh(),t=S3();return x0=function(){var a=t();return e(Number,{isNaN:a},{isNaN:function(){return Number.isNaN!==a}}),a},x0}var E0,kS;function IH(){if(kS)return E0;kS=1;var e=vh(),t=xh(),i=I3(),a=S3(),s=wH(),c=e(a(),Number);return t(c,{getPolyfill:a,implementation:i,shim:s}),E0=c,E0}var w0,VS;function SH(){if(VS)return w0;VS=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,Te,Ne,qe,ze=[],Ge=!0,Ye=!1;try{if(Ne=(Ee=Ee.call(se)).next,ue!==0)for(;!(Ge=(Oe=Ne.call(Ee)).done)&&(ze.push(Oe.value),ze.length!==ue);Ge=!0);}catch(Xe){Ye=!0,Te=Xe}finally{try{if(!Ge&&Ee.return!=null&&(qe=Ee.return(),Object(qe)!==qe))return}finally{if(Ye)throw Te}}return ze}}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,y=function(ue){var Ee=[];return ue.forEach(function(Oe){return Ee.push(Oe)}),Ee},h=function(ue){var Ee=[];return ue.forEach(function(Oe,Te){return Ee.push([Te,Oe])}),Ee},A=Object.is?Object.is:EH(),v=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},m=Number.isNaN?Number.isNaN:IH();function I(se){return se.call.bind(se)}var O=I(Object.prototype.hasOwnProperty),M=I(Object.prototype.propertyIsEnumerable),B=I(Object.prototype.toString),R=dl().types,U=R.isAnyArrayBuffer,j=R.isArrayBufferView,K=R.isDate,H=R.isMap,ie=R.isRegExp,ye=R.isSet,fe=R.isNativeError,D=R.isBoxedPrimitive,$=R.isNumberObject,k=R.isStringObject,Q=R.isBooleanObject,re=R.isBigIntObject,Z=R.isSymbolObject,pe=R.isFloat32Array,_=R.isFloat64Array;function te(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 le(se){return Object.keys(se).filter(te).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 V(se,ue){if(se===ue)return 0;for(var Ee=se.length,Oe=ue.length,Te=0,Ne=Math.min(Ee,Oe);Te<Ne;++Te)if(se[Te]!==ue[Te]){Ee=se[Te],Oe=ue[Te];break}return Ee<Oe?-1:Oe<Ee?1:0}var F=!0,z=!1,oe=0,q=1,N=2,C=3;function P(se,ue){return f?se.source===ue.source&&se.flags===ue.flags:RegExp.prototype.toString.call(se)===RegExp.prototype.toString.call(ue)}function J(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 ne(se,ue){return se.byteLength!==ue.byteLength?!1:V(new Uint8Array(se.buffer,se.byteOffset,se.byteLength),new Uint8Array(ue.buffer,ue.byteOffset,ue.byteLength))===0}function ce(se,ue){return se.byteLength===ue.byteLength&&V(new Uint8Array(se),new Uint8Array(ue))===0}function w(se,ue){return $(se)?$(ue)&&A(Number.prototype.valueOf.call(se),Number.prototype.valueOf.call(ue)):k(se)?k(ue)&&String.prototype.valueOf.call(se)===String.prototype.valueOf.call(ue):Q(se)?Q(ue)&&Boolean.prototype.valueOf.call(se)===Boolean.prototype.valueOf.call(ue):re(se)?re(ue)&&BigInt.prototype.valueOf.call(se)===BigInt.prototype.valueOf.call(ue):Z(ue)&&Symbol.prototype.valueOf.call(se)===Symbol.prototype.valueOf.call(ue)}function G(se,ue,Ee,Oe){if(se===ue)return se!==0?!0:Ee?A(se,ue):!0;if(Ee){if(l(se)!=="object")return typeof se=="number"&&m(se)&&m(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 Te=B(se),Ne=B(ue);if(Te!==Ne)return!1;if(Array.isArray(se)){if(se.length!==ue.length)return!1;var qe=le(se),ze=le(ue);return qe.length!==ze.length?!1:W(se,ue,Ee,Oe,q,qe)}if(Te==="[object Object]"&&(!H(se)&&H(ue)||!ye(se)&&ye(ue)))return!1;if(K(se)){if(!K(ue)||Date.prototype.getTime.call(se)!==Date.prototype.getTime.call(ue))return!1}else if(ie(se)){if(!ie(ue)||!P(se,ue))return!1}else if(fe(se)||se instanceof Error){if(se.message!==ue.message||se.name!==ue.name)return!1}else if(j(se)){if(!Ee&&(pe(se)||_(se))){if(!J(se,ue))return!1}else if(!ne(se,ue))return!1;var Ge=le(se),Ye=le(ue);return Ge.length!==Ye.length?!1:W(se,ue,Ee,Oe,oe,Ge)}else{if(ye(se))return!ye(ue)||se.size!==ue.size?!1:W(se,ue,Ee,Oe,N);if(H(se))return!H(ue)||se.size!==ue.size?!1:W(se,ue,Ee,Oe,C);if(U(se)){if(!ce(se,ue))return!1}else if(D(se)&&!w(se,ue))return!1}return W(se,ue,Ee,Oe,oe)}function Y(se,ue){return ue.filter(function(Ee){return M(se,Ee)})}function W(se,ue,Ee,Oe,Te,Ne){if(arguments.length===5){Ne=Object.keys(se);var qe=Object.keys(ue);if(Ne.length!==qe.length)return!1}for(var ze=0;ze<Ne.length;ze++)if(!O(ue,Ne[ze]))return!1;if(Ee&&arguments.length===5){var Ge=v(se);if(Ge.length!==0){var Ye=0;for(ze=0;ze<Ge.length;ze++){var Xe=Ge[ze];if(M(se,Xe)){if(!M(ue,Xe))return!1;Ne.push(Xe),Ye++}else if(M(ue,Xe))return!1}var ut=v(ue);if(Ge.length!==ut.length&&Y(ue,ut).length!==Ye)return!1}else{var ft=v(ue);if(ft.length!==0&&Y(ue,ft).length!==0)return!1}}if(Ne.length===0&&(Te===oe||Te===q&&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,Te);return Oe.val1.delete(se),Oe.val2.delete(ue),mt}function me(se,ue,Ee,Oe){for(var Te=y(se),Ne=0;Ne<Te.length;Ne++){var qe=Te[Ne];if(G(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(m(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,Te){var Ne=de(Ee);if(Ne!=null)return Ne;var qe=ue.get(Ne);return qe===void 0&&!ue.has(Ne)||!G(Oe,qe,!1,Te)?!1:!se.has(Ne)&&G(Oe,qe,!1,Te)}function b(se,ue,Ee,Oe){for(var Te=null,Ne=y(se),qe=0;qe<Ne.length;qe++){var ze=Ne[qe];if(l(ze)==="object"&&ze!==null)Te===null&&(Te=new Set),Te.add(ze);else if(!ue.has(ze)){if(Ee||!x(se,ue,ze))return!1;Te===null&&(Te=new Set),Te.add(ze)}}if(Te!==null){for(var Ge=y(ue),Ye=0;Ye<Ge.length;Ye++){var Xe=Ge[Ye];if(l(Xe)==="object"&&Xe!==null){if(!me(Te,Xe,Ee,Oe))return!1}else if(!Ee&&!se.has(Xe)&&!me(Te,Xe,Ee,Oe))return!1}return Te.size===0}return!0}function S(se,ue,Ee,Oe,Te,Ne){for(var qe=y(se),ze=0;ze<qe.length;ze++){var Ge=qe[ze];if(G(Ee,Ge,Te,Ne)&&G(Oe,ue.get(Ge),Te,Ne))return se.delete(Ge),!0}return!1}function X(se,ue,Ee,Oe){for(var Te=null,Ne=h(se),qe=0;qe<Ne.length;qe++){var ze=e(Ne[qe],2),Ge=ze[0],Ye=ze[1];if(l(Ge)==="object"&&Ge!==null)Te===null&&(Te=new Set),Te.add(Ge);else{var Xe=ue.get(Ge);if(Xe===void 0&&!ue.has(Ge)||!G(Ye,Xe,Ee,Oe)){if(Ee||!g(se,ue,Ge,Ye,Oe))return!1;Te===null&&(Te=new Set),Te.add(Ge)}}}if(Te!==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(Te,se,pt,mt,Ee,Oe))return!1}else if(!Ee&&(!se.has(pt)||!G(se.get(pt),mt,!1,Oe))&&!S(Te,se,pt,mt,!1,Oe))return!1}return Te.size===0}return!0}function Ae(se,ue,Ee,Oe,Te,Ne){var qe=0;if(Ne===N){if(!b(se,ue,Ee,Te))return!1}else if(Ne===C){if(!X(se,ue,Ee,Te))return!1}else if(Ne===q)for(;qe<se.length;qe++)if(O(se,qe)){if(!O(ue,qe)||!G(se[qe],ue[qe],Ee,Te))return!1}else{if(O(ue,qe))return!1;for(var ze=Object.keys(se);qe<ze.length;qe++){var Ge=ze[qe];if(!O(ue,Ge)||!G(se[Ge],ue[Ge],Ee,Te))return!1}return ze.length===Object.keys(ue).length}for(qe=0;qe<Oe.length;qe++){var Ye=Oe[qe];if(!G(se[Ye],ue[Ye],Ee,Te))return!1}return!0}function Se(se,ue){return G(se,ue,z)}function Me(se,ue){return G(se,ue,F)}return w0={isDeepEqual:Se,isDeepStrictEqual:Me},w0}var KS;function n1(){if(KS)return ag.exports;KS=1;function e(N){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(C){return typeof C}:function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},e(N)}function t(N,C,P){return Object.defineProperty(N,"prototype",{writable:!1}),N}function i(N,C){if(!(N instanceof C))throw new TypeError("Cannot call a class as a function")}var a=v3(),s=a.codes,c=s.ERR_AMBIGUOUS_ARGUMENT,l=s.ERR_INVALID_ARG_TYPE,f=s.ERR_INVALID_ARG_VALUE,y=s.ERR_INVALID_RETURN_VALUE,h=s.ERR_MISSING_ARGS,A=gH(),v=dl(),m=v.inspect,I=dl().types,O=I.isPromise,M=I.isRegExp,B=bH()(),R=Fv()(),U=vH()("RegExp.prototype.test"),j,K;function H(){var N=SH();j=N.isDeepEqual,K=N.isDeepStrictEqual}var ie=!1,ye=ag.exports=Q,fe={};function D(N){throw N.message instanceof Error?N.message:new A(N)}function $(N,C,P,J,ne){var ce=arguments.length,w;if(ce===0)w="Failed";else if(ce===1)P=N,N=void 0;else{if(ie===!1){ie=!0;var G=it.emitWarning?it.emitWarning:console.warn.bind(console);G("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}ce===2&&(J="!=")}if(P instanceof Error)throw P;var Y={actual:N,expected:C,operator:J===void 0?"fail":J,stackStartFn:ne||$};P!==void 0&&(Y.message=P);var W=new A(Y);throw w&&(W.message=w,W.generatedMessage=!0),W}ye.fail=$,ye.AssertionError=A;function k(N,C,P,J){if(!P){var ne=!1;if(C===0)ne=!0,J="No value argument passed to `assert.ok()`";else if(J instanceof Error)throw J;var ce=new A({actual:P,expected:!0,message:J,operator:"==",stackStartFn:N});throw ce.generatedMessage=ne,ce}}function Q(){for(var N=arguments.length,C=new Array(N),P=0;P<N;P++)C[P]=arguments[P];k.apply(void 0,[Q,C.length].concat(C))}ye.ok=Q,ye.equal=function N(C,P,J){if(arguments.length<2)throw new h("actual","expected");C!=P&&D({actual:C,expected:P,message:J,operator:"==",stackStartFn:N})},ye.notEqual=function N(C,P,J){if(arguments.length<2)throw new h("actual","expected");C==P&&D({actual:C,expected:P,message:J,operator:"!=",stackStartFn:N})},ye.deepEqual=function N(C,P,J){if(arguments.length<2)throw new h("actual","expected");j===void 0&&H(),j(C,P)||D({actual:C,expected:P,message:J,operator:"deepEqual",stackStartFn:N})},ye.notDeepEqual=function N(C,P,J){if(arguments.length<2)throw new h("actual","expected");j===void 0&&H(),j(C,P)&&D({actual:C,expected:P,message:J,operator:"notDeepEqual",stackStartFn:N})},ye.deepStrictEqual=function N(C,P,J){if(arguments.length<2)throw new h("actual","expected");j===void 0&&H(),K(C,P)||D({actual:C,expected:P,message:J,operator:"deepStrictEqual",stackStartFn:N})},ye.notDeepStrictEqual=re;function re(N,C,P){if(arguments.length<2)throw new h("actual","expected");j===void 0&&H(),K(N,C)&&D({actual:N,expected:C,message:P,operator:"notDeepStrictEqual",stackStartFn:re})}ye.strictEqual=function N(C,P,J){if(arguments.length<2)throw new h("actual","expected");R(C,P)||D({actual:C,expected:P,message:J,operator:"strictEqual",stackStartFn:N})},ye.notStrictEqual=function N(C,P,J){if(arguments.length<2)throw new h("actual","expected");R(C,P)&&D({actual:C,expected:P,message:J,operator:"notStrictEqual",stackStartFn:N})};var Z=t(function N(C,P,J){var ne=this;i(this,N),P.forEach(function(ce){ce in C&&(J!==void 0&&typeof J[ce]=="string"&&M(C[ce])&&U(C[ce],J[ce])?ne[ce]=J[ce]:ne[ce]=C[ce])})});function pe(N,C,P,J,ne,ce){if(!(P in N)||!K(N[P],C[P])){if(!J){var w=new Z(N,ne),G=new Z(C,ne,N),Y=new A({actual:w,expected:G,operator:"deepStrictEqual",stackStartFn:ce});throw Y.actual=N,Y.expected=C,Y.operator=ce.name,Y}D({actual:N,expected:C,message:J,operator:ce.name,stackStartFn:ce})}}function _(N,C,P,J){if(typeof C!="function"){if(M(C))return U(C,N);if(arguments.length===2)throw new l("expected",["Function","RegExp"],C);if(e(N)!=="object"||N===null){var ne=new A({actual:N,expected:C,message:P,operator:"deepStrictEqual",stackStartFn:J});throw ne.operator=J.name,ne}var ce=Object.keys(C);if(C instanceof Error)ce.push("name","message");else if(ce.length===0)throw new f("error",C,"may not be an empty object");return j===void 0&&H(),ce.forEach(function(w){typeof N[w]=="string"&&M(C[w])&&U(C[w],N[w])||pe(N,C,w,P,ce,J)}),!0}return C.prototype!==void 0&&N instanceof C?!0:Error.isPrototypeOf(C)?!1:C.call({},N)===!0}function te(N){if(typeof N!="function")throw new l("fn","Function",N);try{N()}catch(C){return C}return fe}function le(N){return O(N)||N!==null&&e(N)==="object"&&typeof N.then=="function"&&typeof N.catch=="function"}function V(N){return Promise.resolve().then(function(){var C;if(typeof N=="function"){if(C=N(),!le(C))throw new y("instance of Promise","promiseFn",C)}else if(le(N))C=N;else throw new l("promiseFn",["Function","Promise"],N);return Promise.resolve().then(function(){return C}).then(function(){return fe}).catch(function(P){return P})})}function F(N,C,P,J){if(typeof P=="string"){if(arguments.length===4)throw new l("error",["Object","Error","Function","RegExp"],P);if(e(C)==="object"&&C!==null){if(C.message===P)throw new c("error/message",'The error message "'.concat(C.message,'" is identical to the message.'))}else if(C===P)throw new c("error/message",'The error "'.concat(C,'" is identical to the message.'));J=P,P=void 0}else if(P!=null&&e(P)!=="object"&&typeof P!="function")throw new l("error",["Object","Error","Function","RegExp"],P);if(C===fe){var ne="";P&&P.name&&(ne+=" (".concat(P.name,")")),ne+=J?": ".concat(J):".";var ce=N.name==="rejects"?"rejection":"exception";D({actual:void 0,expected:P,operator:N.name,message:"Missing expected ".concat(ce).concat(ne),stackStartFn:N})}if(P&&!_(C,P,J,N))throw C}function z(N,C,P,J){if(C!==fe){if(typeof P=="string"&&(J=P,P=void 0),!P||_(C,P)){var ne=J?": ".concat(J):".",ce=N.name==="doesNotReject"?"rejection":"exception";D({actual:C,expected:P,operator:N.name,message:"Got unwanted ".concat(ce).concat(ne,`
123
+ `)+'Actual message: "'.concat(C&&C.message,'"'),stackStartFn:N})}throw C}}ye.throws=function N(C){for(var P=arguments.length,J=new Array(P>1?P-1:0),ne=1;ne<P;ne++)J[ne-1]=arguments[ne];F.apply(void 0,[N,te(C)].concat(J))},ye.rejects=function N(C){for(var P=arguments.length,J=new Array(P>1?P-1:0),ne=1;ne<P;ne++)J[ne-1]=arguments[ne];return V(C).then(function(ce){return F.apply(void 0,[N,ce].concat(J))})},ye.doesNotThrow=function N(C){for(var P=arguments.length,J=new Array(P>1?P-1:0),ne=1;ne<P;ne++)J[ne-1]=arguments[ne];z.apply(void 0,[N,te(C)].concat(J))},ye.doesNotReject=function N(C){for(var P=arguments.length,J=new Array(P>1?P-1:0),ne=1;ne<P;ne++)J[ne-1]=arguments[ne];return V(C).then(function(ce){return z.apply(void 0,[N,ce].concat(J))})},ye.ifError=function N(C){if(C!=null){var P="ifError got unwanted exception: ";e(C)==="object"&&typeof C.message=="string"?C.message.length===0&&C.constructor?P+=C.constructor.name:P+=C.message:P+=m(C);var J=new A({actual:C,expected:null,operator:"ifError",message:P,stackStartFn:N}),ne=C.stack;if(typeof ne=="string"){var ce=ne.split(`
124
+ `);ce.shift();for(var w=J.stack.split(`
125
+ `),G=0;G<ce.length;G++){var Y=w.indexOf(ce[G]);if(Y!==-1){w=w.slice(0,Y);break}}J.stack="".concat(w.join(`
126
+ `),`
127
+ `).concat(ce.join(`
128
+ `))}throw J}};function oe(N,C,P,J,ne){if(!M(C))throw new l("regexp","RegExp",C);var ce=ne==="match";if(typeof N!="string"||U(C,N)!==ce){if(P instanceof Error)throw P;var w=!P;P=P||(typeof N!="string"?'The "string" argument must be of type string. Received type '+"".concat(e(N)," (").concat(m(N),")"):(ce?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(m(C),`. Input:
129
+
130
+ `).concat(m(N),`
131
+ `));var G=new A({actual:N,expected:C,message:P,operator:ne,stackStartFn:J});throw G.generatedMessage=w,G}}ye.match=function N(C,P,J){oe(C,P,J,N,"match")},ye.doesNotMatch=function N(C,P,J){oe(C,P,J,N,"doesNotMatch")};function q(){for(var N=arguments.length,C=new Array(N),P=0;P<N;P++)C[P]=arguments[P];k.apply(void 0,[q,C.length].concat(C))}return ye.strict=B(q,ye,{equal:ye.strictEqual,deepEqual:ye.deepStrictEqual,notEqual:ye.notStrictEqual,notDeepEqual:ye.notDeepStrictEqual}),ye.strict.strict=ye.strict,ag.exports}var I0,YS;function CH(){if(YS)return I0;YS=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,y=t.charAt(0),h=Math.log(f)/Math.log(256),A=Math.log(256)/Math.log(f);function v(O){if(O instanceof Uint8Array||(ArrayBuffer.isView(O)?O=new Uint8Array(O.buffer,O.byteOffset,O.byteLength):Array.isArray(O)&&(O=Uint8Array.from(O))),!(O instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(O.length===0)return"";for(var M=0,B=0,R=0,U=O.length;R!==U&&O[R]===0;)R++,M++;for(var j=(U-R)*A+1>>>0,K=new Uint8Array(j);R!==U;){for(var H=O[R],ie=0,ye=j-1;(H!==0||ie<B)&&ye!==-1;ye--,ie++)H+=256*K[ye]>>>0,K[ye]=H%f>>>0,H=H/f>>>0;if(H!==0)throw new Error("Non-zero carry");B=ie,R++}for(var fe=j-B;fe!==j&&K[fe]===0;)fe++;for(var D=y.repeat(M);fe<j;++fe)D+=t.charAt(K[fe]);return D}function m(O){if(typeof O!="string")throw new TypeError("Expected String");if(O.length===0)return new Uint8Array;for(var M=0,B=0,R=0;O[M]===y;)B++,M++;for(var U=(O.length-M)*h+1>>>0,j=new Uint8Array(U);O[M];){var K=O.charCodeAt(M);if(K>255)return;var H=i[K];if(H===255)return;for(var ie=0,ye=U-1;(H!==0||ie<R)&&ye!==-1;ye--,ie++)H+=f*j[ye]>>>0,j[ye]=H%256>>>0,H=H/256>>>0;if(H!==0)throw new Error("Non-zero carry");R=ie,M++}for(var fe=U-R;fe!==U&&j[fe]===0;)fe++;for(var D=new Uint8Array(B+(U-fe)),$=B;fe!==U;)D[$++]=j[fe++];return D}function I(O){var M=m(O);if(M)return M;throw new Error("Non-base"+f+" character")}return{encode:v,decodeUnsafe:m,decode:I}}return I0=e,I0}var Tn={exports:{}},S0,XS;function C3(){if(XS)return S0;XS=1,S0=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 S0}var zr={exports:{}},cd={exports:{}},C0,ZS;function OH(){if(ZS)return C0;ZS=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 y=0;y<f;y++)a[c+y]=s.charCodeAt(y);return f}return C0={byteLength:e,toString:t,write:i},C0}var O0,JS;function FH(){if(JS)return O0;JS=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 y=0;y<l;y+=3)f+=e[c[y]>>2]+e[(c[y]&3)<<4|c[y+1]>>4]+e[(c[y+1]&15)<<2|c[y+2]>>6]+e[c[y+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,y=i(l)){const h=Math.min(y,c.byteLength-f);for(let A=0,v=0;v<h;A+=4){const m=t[l.charCodeAt(A)],I=t[l.charCodeAt(A+1)],O=t[l.charCodeAt(A+2)],M=t[l.charCodeAt(A+3)];c[v++]=m<<2|I>>4,c[v++]=(I&15)<<4|O>>2,c[v++]=(O&3)<<6|M&63}return h}return O0={byteLength:i,toString:a,write:s},O0}var F0,WS;function BH(){if(WS)return F0;WS=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 y=c-c%4;f<y;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 y=Math.min(f,s.byteLength-l);for(let h=0;h<y;h++){const A=a(c.charCodeAt(h*2)),v=a(c.charCodeAt(h*2+1));if(A===void 0||v===void 0)return s.subarray(0,h);s[l+h]=A<<4|v}return y}F0={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 F0}var B0,eC;function RH(){if(eC)return B0;eC=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 y=a.charCodeAt(c+1);if(y>=56320&&y<=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 y=s[f];if(y<=127){l+=String.fromCharCode(y),f++;continue}let h=0,A=0;if(y<=223?(h=1,A=y&31):y<=239?(h=2,A=y&15):y<=244&&(h=3,A=y&7),c-f-h>0){let v=0;for(;v<h;)y=s[f+v+1],A=A<<6|y&63,v+=1}else A=65533,h=c-f;l+=String.fromCodePoint(A),f+=h+1}return l};let i;if(typeof TextEncoder<"u"){const a=new TextEncoder;i=function(c,l,f=0,y=e(l)){const h=Math.min(y,c.byteLength-f);return a.encodeInto(l,c.subarray(f,f+h)),h}}else i=function(s,c,l=0,f=e(c)){const y=Math.min(f,s.byteLength-l);s=s.subarray(l,l+y);let h=0,A=0;for(;h<c.length;){const v=c.codePointAt(h);if(v<=127){s[A++]=v,h++;continue}let m=0,I=0;for(v<=2047?(m=6,I=192):v<=65535?(m=12,I=224):v<=2097151&&(m=18,I=240),s[A++]=I|v>>m,m-=6;m>=0;)s[A++]=128|v>>m&63,m-=6;h+=v>=65536?2:1}return y};return B0={byteLength:e,toString:t,write:i},B0}var R0,tC;function TH(){if(tC)return R0;tC=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 y=f;for(let h=0;h<s.length&&!((y-=2)<0);++h){const A=s.charCodeAt(h),v=A>>8,m=A%256;a[c+h*2]=m,a[c+h*2+1]=v}return f}return R0={byteLength:e,toString:t,write:i},R0}var nC;function _H(){return nC||(nC=1,(function(e,t){const i=OH(),a=FH(),s=BH(),c=RH(),l=TH(),f=new Uint8Array(Uint16Array.of(255).buffer)[0]===255;function y(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 A(x){try{return y(x),!0}catch{return!1}}function v(x,g,b){const S=new Uint8Array(x);return g!==void 0&&t.fill(S,g,0,S.byteLength,b),S}function m(x){return new Uint8Array(x)}function I(x){return new Uint8Array(x)}function O(x,g){return y(g).byteLength(x)}function M(x,g){if(x===g)return 0;const b=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 X=b-b%4;S<X;S+=4){const Ae=x.getUint32(S,f),Se=g.getUint32(S,f);if(Ae!==Se)break}for(;S<b;S++){const X=x.getUint8(S),Ae=g.getUint8(S);if(X<Ae)return-1;if(X>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((X,Ae)=>X+Ae.byteLength,0));const b=new Uint8Array(g);let S=0;for(const X of x){if(S+X.byteLength>b.byteLength){const Ae=X.subarray(0,b.byteLength-S);return b.set(Ae,S),b}b.set(X,S),S+=X.byteLength}return b}function R(x,g,b=0,S=0,X=x.byteLength){if(X>0&&X<S||X===S||x.byteLength===0||g.byteLength===0)return 0;if(b<0)throw new RangeError("targetStart is out of range");if(S<0||S>=x.byteLength)throw new RangeError("sourceStart is out of range");if(X<0)throw new RangeError("sourceEnd is out of range");b>=g.byteLength&&(b=g.byteLength),X>x.byteLength&&(X=x.byteLength),g.byteLength-b<X-S&&(X=g.length-b+S);const Ae=X-S;return x===g?g.copyWithin(b,S,X):g.set(x.subarray(S,X),b),Ae}function U(x,g){if(x===g)return!0;if(x.byteLength!==g.byteLength)return!1;const b=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 X=b-b%4;S<X;S+=4)if(x.getUint32(S,f)!==g.getUint32(S,f))return!1;for(;S<b;S++)if(x.getUint8(S)!==g.getUint8(S))return!1;return!0}function j(x,g,b,S,X){if(typeof g=="string"?typeof b=="string"?(X=b,b=0,S=x.byteLength):typeof S=="string"&&(X=S,S=x.byteLength):typeof g=="number"?g=g&255:typeof g=="boolean"&&(g=+g),b<0||x.byteLength<b||x.byteLength<S)throw new RangeError("Out of range index");if(b===void 0&&(b=0),S===void 0&&(S=x.byteLength),S<=b)return x;if(g||(g=0),typeof g=="number")for(let Ae=b;Ae<S;++Ae)x[Ae]=g;else{g=h(g)?g:K(g,X);const Ae=g.byteLength;for(let Se=0;Se<S-b;++Se)x[Se+b]=g[Se%Ae]}return x}function K(x,g,b){return typeof x=="string"?H(x,g):Array.isArray(x)?ie(x):ArrayBuffer.isView(x)?ye(x):fe(x,g,b)}function H(x,g){const b=y(g),S=new Uint8Array(b.byteLength(x));return b.write(S,x,0,S.byteLength),S}function ie(x){const g=new Uint8Array(x.length);return g.set(x),g}function ye(x){const g=new Uint8Array(x.byteLength);return g.set(x),g}function fe(x,g,b){return new Uint8Array(x,g,b)}function D(x,g,b,S){return k(x,g,b,S)!==-1}function $(x,g,b,S,X){if(x.byteLength===0)return-1;if(typeof b=="string"?(S=b,b=0):b===void 0?b=X?0:x.length-1:b<0&&(b+=x.byteLength),b>=x.byteLength){if(X)return-1;b=x.byteLength-1}else if(b<0)if(X)b=0;else return-1;if(typeof g=="string")g=K(g,S);else if(typeof g=="number")return g=g&255,X?x.indexOf(g,b):x.lastIndexOf(g,b);if(g.byteLength===0)return-1;if(X){let Ae=-1;for(let Se=b;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{b+g.byteLength>x.byteLength&&(b=x.byteLength-g.byteLength);for(let Ae=b;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,b,S){return $(x,g,b,S,!0)}function Q(x,g,b,S){return $(x,g,b,S,!1)}function re(x,g,b){const S=x[g];x[g]=x[b],x[b]=S}function Z(x){const g=x.byteLength;if(g%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let b=0;b<g;b+=2)re(x,b,b+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 b=0;b<g;b+=4)re(x,b,b+3),re(x,b+1,b+2);return x}function _(x){const g=x.byteLength;if(g%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let b=0;b<g;b+=8)re(x,b,b+7),re(x,b+1,b+6),re(x,b+2,b+5),re(x,b+3,b+4);return x}function te(x){return x}function le(x,g,b=0,S=x.byteLength){const X=x.byteLength;return b>=X||S<=b?"":(b<0&&(b=0),S>X&&(S=X),(b!==0||S<X)&&(x=x.subarray(b,S)),y(g).toString(x))}function V(x,g,b,S,X){return b===void 0?X="utf8":S===void 0&&typeof b=="string"?(X=b,b=void 0):X===void 0&&typeof S=="string"&&(X=S,S=void 0),y(X).write(x,g,b,S)}function F(x,g,b){return b===void 0&&(b=0),new DataView(x.buffer,x.byteOffset,x.byteLength).setFloat64(b,g,!0),b+8}function z(x,g,b){return b===void 0&&(b=0),new DataView(x.buffer,x.byteOffset,x.byteLength).setFloat32(b,g,!0),b+4}function oe(x,g,b){return b===void 0&&(b=0),new DataView(x.buffer,x.byteOffset,x.byteLength).setUint32(b,g,!0),b+4}function q(x,g,b){return b===void 0&&(b=0),new DataView(x.buffer,x.byteOffset,x.byteLength).setInt32(b,g,!0),b+4}function N(x,g){return g===void 0&&(g=0),new DataView(x.buffer,x.byteOffset,x.byteLength).getFloat64(g,!0)}function C(x,g){return g===void 0&&(g=0),new DataView(x.buffer,x.byteOffset,x.byteLength).getFloat32(g,!0)}function P(x,g){return g===void 0&&(g=0),new DataView(x.buffer,x.byteOffset,x.byteLength).getUint32(g,!0)}function J(x,g){return g===void 0&&(g=0),new DataView(x.buffer,x.byteOffset,x.byteLength).getInt32(g,!0)}function ne(x,g,b){return b===void 0&&(b=0),new DataView(x.buffer,x.byteOffset,x.byteLength).setFloat64(b,g,!1),b+8}function ce(x,g,b){return b===void 0&&(b=0),new DataView(x.buffer,x.byteOffset,x.byteLength).setFloat32(b,g,!1),b+4}function w(x,g,b){return b===void 0&&(b=0),new DataView(x.buffer,x.byteOffset,x.byteLength).setUint32(b,g,!1),b+4}function G(x,g,b){return b===void 0&&(b=0),new DataView(x.buffer,x.byteOffset,x.byteLength).setInt32(b,g,!1),b+4}function Y(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 me(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:A,alloc:v,allocUnsafe:m,allocUnsafeSlow:I,byteLength:O,compare:M,concat:B,copy:R,equals:U,fill:j,from:K,includes:D,indexOf:k,lastIndexOf:Q,swap16:Z,swap32:pe,swap64:_,toBuffer:te,toString:le,write:V,writeDoubleLE:F,writeFloatLE:z,writeUInt32LE:oe,writeInt32LE:q,readDoubleLE:N,readFloatLE:C,readUInt32LE:P,readInt32LE:J,writeDoubleBE:ne,writeFloatBE:ce,writeUInt32BE:w,writeInt32BE:G,readDoubleBE:Y,readFloatBE:W,readUInt32BE:me,readInt32BE:de}})(cd,cd.exports)),cd.exports}var T0,rC;function DH(){if(rC)return T0;rC=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 y=f.length,h=new Uint8Array((y-(f[y-1]=="=")-(f[y-2]=="="))*3/4|0),A=0,v=0;A<y;){var m=c[f.charCodeAt(A++)],I=c[f.charCodeAt(A++)],O=c[f.charCodeAt(A++)],M=c[f.charCodeAt(A++)];h[v++]=m<<2|I>>4,h[v++]=I<<4|O>>2,h[v++]=O<<6|M}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 T0=async c=>(await WebAssembly.instantiate(await s,c)).exports,T0}var iC;function UH(){if(iC)return zr.exports;iC=1;var e=C3(),t=_H(),i=null,a=typeof WebAssembly<"u"&&DH()().then(O=>{i=O}),s=64,c=[];zr.exports=m;var l=zr.exports.BYTES_MIN=16,f=zr.exports.BYTES_MAX=64;zr.exports.BYTES=32;var y=zr.exports.KEYBYTES_MIN=16,h=zr.exports.KEYBYTES_MAX=64;zr.exports.KEYBYTES=32;var A=zr.exports.SALTBYTES=16,v=zr.exports.PERSONALBYTES=16;function m(O,M,B,R,U){if(!(this instanceof m))return new m(O,M,B,R,U);if(!i)throw new Error("WASM not loaded. Wait for Blake2b.ready(cb)");O||(O=32),U!==!0&&(e(O>=l,"digestLength must be at least "+l+", was given "+O),e(O<=f,"digestLength must be at most "+f+", was given "+O),M!=null&&(e(M instanceof Uint8Array,"key must be Uint8Array or Buffer"),e(M.length>=y,"key must be at least "+y+", was given "+M.length),e(M.length<=h,"key must be at least "+h+", was given "+M.length)),B!=null&&(e(B instanceof Uint8Array,"salt must be Uint8Array or Buffer"),e(B.length===A,"salt must be exactly "+A+", was given "+B.length)),R!=null&&(e(R instanceof Uint8Array,"personal must be Uint8Array or Buffer"),e(R.length===v,"personal must be exactly "+v+", was given "+R.length))),c.length||(c.push(s),s+=216),this.digestLength=O,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]=M?M.length:0,this._memory[2]=1,this._memory[3]=1,B&&this._memory.set(B,32),R&&this._memory.set(R,48),this.pointer+216>this._memory.length&&this._realloc(this.pointer+216),i.blake2b_init(this.pointer,this.digestLength),M&&(this.update(M),this._memory.fill(0,s,s+M.length),this._memory[this.pointer+200]=128)}m.prototype._realloc=function(O){i.memory.grow(Math.max(0,Math.ceil(Math.abs(O-this._memory.length)/65536))),this._memory=new Uint8Array(i.memory.buffer)},m.prototype.update=function(O){return e(this.finalized===!1,"Hash instance finalized"),e(O instanceof Uint8Array,"input must be Uint8Array or Buffer"),s+O.length>this._memory.length&&this._realloc(s+O.length),this._memory.set(O,s),i.blake2b_update(this.pointer,s,s+O.length),this},m.prototype.digest=function(O){if(e(this.finalized===!1,"Hash instance finalized"),this.finalized=!0,c.push(this.pointer),i.blake2b_final(this.pointer),!O||O==="binary")return this._memory.slice(this.pointer+128,this.pointer+128+this.digestLength);if(typeof O=="string")return t.toString(this._memory,O,this.pointer+128,this.pointer+128+this.digestLength);e(O instanceof Uint8Array&&O.length>=this.digestLength,"input must be Uint8Array or Buffer");for(var M=0;M<this.digestLength;M++)O[M]=this._memory[this.pointer+128+M];return O},m.prototype.final=m.prototype.digest,m.WASM=i,m.SUPPORTED=typeof WebAssembly<"u",m.ready=function(O){return O||(O=I),a?a.then(()=>O(),O):O(new Error("WebAssembly not supported"))},m.prototype.ready=m.ready,m.prototype.getPartialHash=function(){return this._memory.slice(this.pointer,this.pointer+216)},m.prototype.setPartialHash=function(O){this._memory.set(O,this.pointer)};function I(){}return zr.exports}var aC;function MH(){if(aC)return Tn.exports;aC=1;var e=C3(),t=UH();function i(D,$,k){var Q=D[$]+D[k],re=D[$+1]+D[k+1];Q>=4294967296&&re++,D[$]=Q,D[$+1]=re}function a(D,$,k,Q){var re=D[$]+k;k<0&&(re+=4294967296);var Z=D[$+1]+Q;re>=4294967296&&Z++,D[$]=re,D[$+1]=Z}function s(D,$){return D[$]^D[$+1]<<8^D[$+2]<<16^D[$+3]<<24}function c(D,$,k,Q,re,Z){var pe=A[re],_=A[re+1],te=A[Z],le=A[Z+1];i(h,D,$),a(h,D,pe,_);var V=h[Q]^h[D],F=h[Q+1]^h[D+1];h[Q]=F,h[Q+1]=V,i(h,k,Q),V=h[$]^h[k],F=h[$+1]^h[k+1],h[$]=V>>>24^F<<8,h[$+1]=F>>>24^V<<8,i(h,D,$),a(h,D,te,le),V=h[Q]^h[D],F=h[Q+1]^h[D+1],h[Q]=V>>>16^F<<16,h[Q+1]=F>>>16^V<<16,i(h,k,Q),V=h[$]^h[k],F=h[$+1]^h[k+1],h[$]=F>>>31^V<<1,h[$+1]=V>>>31^F<<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],y=new Uint8Array(f.map(function(D){return D*2})),h=new Uint32Array(32),A=new Uint32Array(32);function v(D,$){var k=0;for(k=0;k<16;k++)h[k]=D.h[k],h[k+16]=l[k];for(h[24]=h[24]^D.t,h[25]=h[25]^D.t/4294967296,$&&(h[28]=~h[28],h[29]=~h[29]),k=0;k<32;k++)A[k]=s(D.b,4*k);for(k=0;k<12;k++)c(0,8,16,24,y[k*16+0],y[k*16+1]),c(2,10,18,26,y[k*16+2],y[k*16+3]),c(4,12,20,28,y[k*16+4],y[k*16+5]),c(6,14,22,30,y[k*16+6],y[k*16+7]),c(0,10,20,30,y[k*16+8],y[k*16+9]),c(2,12,22,24,y[k*16+10],y[k*16+11]),c(4,14,16,26,y[k*16+12],y[k*16+13]),c(6,8,18,28,y[k*16+14],y[k*16+15]);for(k=0;k<16;k++)D.h[k]=D.h[k]^h[k]^h[k+16]}var m=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(D,$,k,Q){m.fill(0),this.b=new Uint8Array(128),this.h=new Uint32Array(16),this.t=0,this.c=0,this.outlen=D,m[0]=D,$&&(m[1]=$.length),m[2]=1,m[3]=1,k&&m.set(k,32),Q&&m.set(Q,48);for(var re=0;re<16;re++)this.h[re]=l[re]^s(m,re*4);$&&(O(this,$),this.c=128)}I.prototype.update=function(D){return e(D instanceof Uint8Array,"input must be Uint8Array or Buffer"),O(this,D),this},I.prototype.digest=function(D){var $=!D||D==="binary"||D==="hex"?new Uint8Array(this.outlen):D;return e($ instanceof Uint8Array,'out must be "binary", "hex", Uint8Array, or Buffer'),e($.length>=this.outlen,"out must have at least outlen bytes of space"),M(this,$),D==="hex"?B($):$},I.prototype.final=I.prototype.digest,I.ready=function(D){t.ready(function(){D()})};function O(D,$){for(var k=0;k<$.length;k++)D.c===128&&(D.t+=D.c,v(D,!1),D.c=0),D.b[D.c++]=$[k]}function M(D,$){for(D.t+=D.c;D.c<128;)D.b[D.c++]=0;v(D,!0);for(var k=0;k<D.outlen;k++)$[k]=D.h[k>>2]>>8*(k&3);return $}function B(D){for(var $="",k=0;k<D.length;k++)$+=R(D[k]);return $}function R(D){return D<16?"0"+D.toString(16):D.toString(16)}var U=I;Tn.exports=function($,k,Q,re,Z){return Z!==!0&&(e($>=j,"outlen must be at least "+j+", was given "+$),e($<=K,"outlen must be at most "+K+", was given "+$),k!=null&&(e(k instanceof Uint8Array,"key must be Uint8Array or Buffer"),e(k.length>=H,"key must be at least "+H+", was given "+k.length),e(k.length<=ie,"key must be at most "+ie+", was given "+k.length)),Q!=null&&(e(Q instanceof Uint8Array,"salt must be Uint8Array or Buffer"),e(Q.length===ye,"salt must be exactly "+ye+", was given "+Q.length)),re!=null&&(e(re instanceof Uint8Array,"personal must be Uint8Array or Buffer"),e(re.length===fe,"personal must be exactly "+fe+", was given "+re.length))),new U($,k,Q,re)},Tn.exports.ready=function(D){t.ready(function(){D()})},Tn.exports.WASM_SUPPORTED=t.SUPPORTED,Tn.exports.WASM_LOADED=!1;var j=Tn.exports.BYTES_MIN=16,K=Tn.exports.BYTES_MAX=64;Tn.exports.BYTES=32;var H=Tn.exports.KEYBYTES_MIN=16,ie=Tn.exports.KEYBYTES_MAX=64;Tn.exports.KEYBYTES=32;var ye=Tn.exports.SALTBYTES=16,fe=Tn.exports.PERSONALBYTES=16;return t.ready(function(D){D||(Tn.exports.WASM_LOADED=!0,Tn.exports=t)}),Tn.exports}var oC;function jH(){if(oC)return Ni;oC=1;var e=Ni&&Ni.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(Ni,"__esModule",{value:!0}),Ni.encode=Ni.decode=void 0;const t=e(n1()),i=e(CH()),a=e(MH()),s=(0,i.default)("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),c=Yt.Buffer.from("SS58PRE"),l=Yt.Buffer.alloc(64);function f(v){let m=s.decodeUnsafe(v);if(m==null||m.length<3)throw A(v);let I=m[0],O,M;if(I<64)M=I,O=1;else if(I<128){let R=m[1],U=(I<<2|R>>6)&255,j=R&63;M=U|j<<8,O=2}else throw A(v);let B;switch(m.length-O){case 34:case 35:B=2;break;case 9:case 5:case 3:case 2:B=1;break;default:throw A(v)}h(m,B);for(let R=0;R<B;R++)if(l[R]!=m[m.length-B+R])throw A(v);return{prefix:M,bytes:m.subarray(O,m.length-B)}}Ni.decode=f;function y(v){let m=v.prefix;(0,t.default)(Number.isInteger(m)&&m>=0&&m<16384,"invalid prefix");let I=v.bytes.length,O;switch(I){case 1:case 2:case 4:case 8:O=1;break;case 32:case 33:O=2;break;default:(0,t.default)(!1,"invalid address length")}let M,B;m<64?(M=Yt.Buffer.allocUnsafe(1+O+I),M[0]=m,B=1):(M=Yt.Buffer.allocUnsafe(2+O+I),M[0]=(m&252)>>2|64,M[1]=m>>8|(m&3)<<6,B=2),M.set(v.bytes,B),h(M,O);for(let R=0;R<O;R++)M[B+I+R]=l[R];return s.encode(M)}Ni.encode=y;function h(v,m){let I=(0,a.default)(64);I.update(c),I.update(v.subarray(0,v.length-m)),I.digest(l)}function A(v){return new Error("Invalid ss58 address: "+v)}return Ni}var PH=jH();function NH(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 A=e.charAt(h),v=A.charCodeAt(0);if(t[v]!==255)throw new TypeError(A+" 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 A=0,v=0,m=0;const I=h.length;for(;m!==I&&h[m]===0;)m++,A++;const O=(I-m)*c+1>>>0,M=new Uint8Array(O);for(;m!==I;){let U=h[m],j=0;for(let K=O-1;(U!==0||j<v)&&K!==-1;K--,j++)U+=256*M[K]>>>0,M[K]=U%i>>>0,U=U/i>>>0;if(U!==0)throw new Error("Non-zero carry");v=j,m++}let B=O-v;for(;B!==O&&M[B]===0;)B++;let R=a.repeat(A);for(;B<O;++B)R+=e.charAt(M[B]);return R}function f(h){if(typeof h!="string")throw new TypeError("Expected String");if(h.length===0)return new Uint8Array;let A=0,v=0,m=0;for(;h[A]===a;)v++,A++;const I=(h.length-A)*s+1>>>0,O=new Uint8Array(I);for(;A<h.length;){const U=h.charCodeAt(A);if(U>255)return;let j=t[U];if(j===255)return;let K=0;for(let H=I-1;(j!==0||K<m)&&H!==-1;H--,K++)j+=i*O[H]>>>0,O[H]=j%256>>>0,j=j/256>>>0;if(j!==0)throw new Error("Non-zero carry");m=K,A++}let M=I-m;for(;M!==I&&O[M]===0;)M++;const B=new Uint8Array(v+(I-M));let R=v;for(;M!==I;)B[R++]=O[M++];return B}function y(h){const A=f(h);if(A)return A;throw new Error("Non-base"+i+" character")}return{encode:l,decodeUnsafe:f,decode:y}}var LH="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";const Ad=NH(LH);function qH(e){function t(c){var l=Uint8Array.from(c),f=e(l),y=l.length+4,h=new Uint8Array(y);return h.set(l,0),h.set(f.subarray(0,4),l.length),Ad.encode(h)}function i(c){var l=c.slice(0,-4),f=c.slice(-4),y=e(l);if(!(f[0]^y[0]|f[1]^y[1]|f[2]^y[2]|f[3]^y[3]))return l}function a(c){var l=Ad.decodeUnsafe(c);if(l!=null)return i(l)}function s(c){var l=Ad.decode(c),f=i(l);if(f==null)throw new Error("Invalid checksum");return f}return{encode:t,decode:s,decodeUnsafe:a}}function $H(e){return Ub(Ub(e))}const Eh=qH($H);var ho={},sC;function HH(){if(sC)return ho;sC=1,Object.defineProperty(ho,"__esModule",{value:!0}),ho.bech32m=ho.bech32=void 0;const e="qpzry9x8gf2tvdw0s3jn54khce6mua7l",t={};for(let h=0;h<e.length;h++){const A=e.charAt(h);t[A]=h}function i(h){const A=h>>25;return(h&33554431)<<5^-(A>>0&1)&996825010^-(A>>1&1)&642813549^-(A>>2&1)&513874426^-(A>>3&1)&1027748829^-(A>>4&1)&705979059}function a(h){let A=1;for(let v=0;v<h.length;++v){const m=h.charCodeAt(v);if(m<33||m>126)return"Invalid prefix ("+h+")";A=i(A)^m>>5}A=i(A);for(let v=0;v<h.length;++v){const m=h.charCodeAt(v);A=i(A)^m&31}return A}function s(h,A,v,m){let I=0,O=0;const M=(1<<v)-1,B=[];for(let R=0;R<h.length;++R)for(I=I<<A|h[R],O+=A;O>=v;)O-=v,B.push(I>>O&M);if(m)O>0&&B.push(I<<v-O&M);else{if(O>=A)return"Excess padding";if(I<<v-O&M)return"Non-zero padding"}return B}function c(h){return s(h,8,5,!0)}function l(h){const A=s(h,5,8,!1);if(Array.isArray(A))return A}function f(h){const A=s(h,5,8,!1);if(Array.isArray(A))return A;throw new Error(A)}function y(h){let A;h==="bech32"?A=1:A=734539939;function v(M,B,R){if(R=R||90,M.length+7+B.length>R)throw new TypeError("Exceeds length limit");M=M.toLowerCase();let U=a(M);if(typeof U=="string")throw new Error(U);let j=M+"1";for(let K=0;K<B.length;++K){const H=B[K];if(H>>5!==0)throw new Error("Non 5-bit word");U=i(U)^H,j+=e.charAt(H)}for(let K=0;K<6;++K)U=i(U);U^=A;for(let K=0;K<6;++K){const H=U>>(5-K)*5&31;j+=e.charAt(H)}return j}function m(M,B){if(B=B||90,M.length<8)return M+" too short";if(M.length>B)return"Exceeds length limit";const R=M.toLowerCase(),U=M.toUpperCase();if(M!==R&&M!==U)return"Mixed-case string "+M;M=R;const j=M.lastIndexOf("1");if(j===-1)return"No separator character for "+M;if(j===0)return"Missing prefix for "+M;const K=M.slice(0,j),H=M.slice(j+1);if(H.length<6)return"Data too short";let ie=a(K);if(typeof ie=="string")return ie;const ye=[];for(let fe=0;fe<H.length;++fe){const D=H.charAt(fe),$=t[D];if($===void 0)return"Unknown character "+D;ie=i(ie)^$,!(fe+6>=H.length)&&ye.push($)}return ie!==A?"Invalid checksum for "+M:{prefix:K,words:ye}}function I(M,B){const R=m(M,B);if(typeof R=="object")return R}function O(M,B){const R=m(M,B);if(typeof R=="object")return R;throw new Error(R)}return{decodeUnsafe:I,decode:O,encode:v,toWords:c,fromWordsUnsafe:l,fromWords:f}}return ho.bech32=y("bech32"),ho.bech32m=y("bech32m"),ho}var r1=HH(),_0={exports:{}},uC;function zH(){return uC||(uC=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=Hi);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,R){R.length>10&&(R="..."+R.substr(-10));var U=new Error("Decoded data is not valid UTF-8. Maybe try base32.decode.asBytes()? Partial data after reading "+B+" bytes: "+R+" <-");throw U.position=B,U},y=function(B){for(var R="",U=B.length,j=0,K=0,H,ie;j<U;){if(H=B[j++],H<=127){R+=String.fromCharCode(H);continue}else H>191&&H<=223?(ie=H&31,K=1):H<=239?(ie=H&15,K=2):H<=247?(ie=H&7,K=3):f(j,R);for(var ye=0;ye<K;++ye)H=B[j++],(H<128||H>191)&&f(j,R),ie<<=6,ie+=H&63;ie>=55296&&ie<=57343&&f(j,R),ie>1114111&&f(j,R),ie<=65535?R+=String.fromCharCode(ie):(ie-=65536,R+=String.fromCharCode((ie>>10)+55296),R+=String.fromCharCode((ie&1023)+56320))}return R},h=function(B){if(B==="")return[];if(!/^[A-Z2-7=]+$/.test(B))throw new Error("Invalid base32 characters");B=B.replace(/=/g,"");for(var R,U,j,K,H,ie,ye,fe,D=[],$=0,k=B.length,Q=0,re=k>>3<<3;Q<re;)R=c[B.charAt(Q++)],U=c[B.charAt(Q++)],j=c[B.charAt(Q++)],K=c[B.charAt(Q++)],H=c[B.charAt(Q++)],ie=c[B.charAt(Q++)],ye=c[B.charAt(Q++)],fe=c[B.charAt(Q++)],D[$++]=(R<<3|U>>>2)&255,D[$++]=(U<<6|j<<1|K>>>4)&255,D[$++]=(K<<4|H>>>1)&255,D[$++]=(H<<7|ie<<2|ye>>>3)&255,D[$++]=(ye<<5|fe)&255;var Z=k-re;return Z===2?(R=c[B.charAt(Q++)],U=c[B.charAt(Q++)],D[$++]=(R<<3|U>>>2)&255):Z===4?(R=c[B.charAt(Q++)],U=c[B.charAt(Q++)],j=c[B.charAt(Q++)],K=c[B.charAt(Q++)],D[$++]=(R<<3|U>>>2)&255,D[$++]=(U<<6|j<<1|K>>>4)&255):Z===5?(R=c[B.charAt(Q++)],U=c[B.charAt(Q++)],j=c[B.charAt(Q++)],K=c[B.charAt(Q++)],H=c[B.charAt(Q++)],D[$++]=(R<<3|U>>>2)&255,D[$++]=(U<<6|j<<1|K>>>4)&255,D[$++]=(K<<4|H>>>1)&255):Z===7&&(R=c[B.charAt(Q++)],U=c[B.charAt(Q++)],j=c[B.charAt(Q++)],K=c[B.charAt(Q++)],H=c[B.charAt(Q++)],ie=c[B.charAt(Q++)],ye=c[B.charAt(Q++)],D[$++]=(R<<3|U>>>2)&255,D[$++]=(U<<6|j<<1|K>>>4)&255,D[$++]=(K<<4|H>>>1)&255,D[$++]=(H<<7|ie<<2|ye>>>3)&255),D},A=function(B){for(var R,U,j,K,H,ie="",ye=B.length,fe=0,D=parseInt(ye/5)*5;fe<D;)R=B.charCodeAt(fe++),U=B.charCodeAt(fe++),j=B.charCodeAt(fe++),K=B.charCodeAt(fe++),H=B.charCodeAt(fe++),ie+=s[R>>>3]+s[(R<<2|U>>>6)&31]+s[U>>>1&31]+s[(U<<4|j>>>4)&31]+s[(j<<1|K>>>7)&31]+s[K>>>2&31]+s[(K<<3|H>>>5)&31]+s[H&31];var $=ye-D;return $===1?(R=B.charCodeAt(fe),ie+=s[R>>>3]+s[R<<2&31]+"======"):$===2?(R=B.charCodeAt(fe++),U=B.charCodeAt(fe),ie+=s[R>>>3]+s[(R<<2|U>>>6)&31]+s[U>>>1&31]+s[U<<4&31]+"===="):$===3?(R=B.charCodeAt(fe++),U=B.charCodeAt(fe++),j=B.charCodeAt(fe),ie+=s[R>>>3]+s[(R<<2|U>>>6)&31]+s[U>>>1&31]+s[(U<<4|j>>>4)&31]+s[j<<1&31]+"==="):$===4&&(R=B.charCodeAt(fe++),U=B.charCodeAt(fe++),j=B.charCodeAt(fe++),K=B.charCodeAt(fe),ie+=s[R>>>3]+s[(R<<2|U>>>6)&31]+s[U>>>1&31]+s[(U<<4|j>>>4)&31]+s[(j<<1|K>>>7)&31]+s[K>>>2&31]+s[K<<3&31]+"="),ie},v=function(B){var R,U,j,K,H,ie,ye=!1,fe="",D=0,$,k=0,Q=B.length;if(B==="")return fe;do{for(l[0]=l[5],l[1]=l[6],l[2]=l[7],$=k;D<Q&&$<5;++D)ie=B.charCodeAt(D),ie<128?l[$++]=ie:ie<2048?(l[$++]=192|ie>>6,l[$++]=128|ie&63):ie<55296||ie>=57344?(l[$++]=224|ie>>12,l[$++]=128|ie>>6&63,l[$++]=128|ie&63):(ie=65536+((ie&1023)<<10|B.charCodeAt(++D)&1023),l[$++]=240|ie>>18,l[$++]=128|ie>>12&63,l[$++]=128|ie>>6&63,l[$++]=128|ie&63);k=$-5,D===Q&&++D,D>Q&&$<6&&(ye=!0),R=l[0],$>4?(U=l[1],j=l[2],K=l[3],H=l[4],fe+=s[R>>>3]+s[(R<<2|U>>>6)&31]+s[U>>>1&31]+s[(U<<4|j>>>4)&31]+s[(j<<1|K>>>7)&31]+s[K>>>2&31]+s[(K<<3|H>>>5)&31]+s[H&31]):$===1?fe+=s[R>>>3]+s[R<<2&31]+"======":$===2?(U=l[1],fe+=s[R>>>3]+s[(R<<2|U>>>6)&31]+s[U>>>1&31]+s[U<<4&31]+"===="):$===3?(U=l[1],j=l[2],fe+=s[R>>>3]+s[(R<<2|U>>>6)&31]+s[U>>>1&31]+s[(U<<4|j>>>4)&31]+s[j<<1&31]+"==="):(U=l[1],j=l[2],K=l[3],fe+=s[R>>>3]+s[(R<<2|U>>>6)&31]+s[U>>>1&31]+s[(U<<4|j>>>4)&31]+s[(j<<1|K>>>7)&31]+s[K>>>2&31]+s[K<<3&31]+"=")}while(!ye);return fe},m=function(B){for(var R,U,j,K,H,ie="",ye=B.length,fe=0,D=parseInt(ye/5)*5;fe<D;)R=B[fe++],U=B[fe++],j=B[fe++],K=B[fe++],H=B[fe++],ie+=s[R>>>3]+s[(R<<2|U>>>6)&31]+s[U>>>1&31]+s[(U<<4|j>>>4)&31]+s[(j<<1|K>>>7)&31]+s[K>>>2&31]+s[(K<<3|H>>>5)&31]+s[H&31];var $=ye-D;return $===1?(R=B[fe],ie+=s[R>>>3]+s[R<<2&31]+"======"):$===2?(R=B[fe++],U=B[fe],ie+=s[R>>>3]+s[(R<<2|U>>>6)&31]+s[U>>>1&31]+s[U<<4&31]+"===="):$===3?(R=B[fe++],U=B[fe++],j=B[fe],ie+=s[R>>>3]+s[(R<<2|U>>>6)&31]+s[U>>>1&31]+s[(U<<4|j>>>4)&31]+s[j<<1&31]+"==="):$===4&&(R=B[fe++],U=B[fe++],j=B[fe++],K=B[fe],ie+=s[R>>>3]+s[(R<<2|U>>>6)&31]+s[U>>>1&31]+s[(U<<4|j>>>4)&31]+s[(j<<1|K>>>7)&31]+s[K>>>2&31]+s[K<<3&31]+"="),ie},I=function(B,R){var U=typeof B!="string";return U&&B.constructor===ArrayBuffer&&(B=new Uint8Array(B)),U?m(B):R?A(B):v(B)},O=function(B,R){if(!R)return y(h(B));if(B==="")return"";if(!/^[A-Z2-7=]+$/.test(B))throw new Error("Invalid base32 characters");var U,j,K,H,ie,ye,fe,D,$="",k=B.indexOf("=");k===-1&&(k=B.length);for(var Q=0,re=k>>3<<3;Q<re;)U=c[B.charAt(Q++)],j=c[B.charAt(Q++)],K=c[B.charAt(Q++)],H=c[B.charAt(Q++)],ie=c[B.charAt(Q++)],ye=c[B.charAt(Q++)],fe=c[B.charAt(Q++)],D=c[B.charAt(Q++)],$+=String.fromCharCode((U<<3|j>>>2)&255)+String.fromCharCode((j<<6|K<<1|H>>>4)&255)+String.fromCharCode((H<<4|ie>>>1)&255)+String.fromCharCode((ie<<7|ye<<2|fe>>>3)&255)+String.fromCharCode((fe<<5|D)&255);var Z=k-re;return Z===2?(U=c[B.charAt(Q++)],j=c[B.charAt(Q++)],$+=String.fromCharCode((U<<3|j>>>2)&255)):Z===4?(U=c[B.charAt(Q++)],j=c[B.charAt(Q++)],K=c[B.charAt(Q++)],H=c[B.charAt(Q++)],$+=String.fromCharCode((U<<3|j>>>2)&255)+String.fromCharCode((j<<6|K<<1|H>>>4)&255)):Z===5?(U=c[B.charAt(Q++)],j=c[B.charAt(Q++)],K=c[B.charAt(Q++)],H=c[B.charAt(Q++)],ie=c[B.charAt(Q++)],$+=String.fromCharCode((U<<3|j>>>2)&255)+String.fromCharCode((j<<6|K<<1|H>>>4)&255)+String.fromCharCode((H<<4|ie>>>1)&255)):Z===7&&(U=c[B.charAt(Q++)],j=c[B.charAt(Q++)],K=c[B.charAt(Q++)],H=c[B.charAt(Q++)],ie=c[B.charAt(Q++)],ye=c[B.charAt(Q++)],fe=c[B.charAt(Q++)],$+=String.fromCharCode((U<<3|j>>>2)&255)+String.fromCharCode((j<<6|K<<1|H>>>4)&255)+String.fromCharCode((H<<4|ie>>>1)&255)+String.fromCharCode((ie<<7|ye<<2|fe>>>3)&255)),$},M={encode:I,decode:O};O.asBytes=h,a?e.exports=M:t.base32=M})()})(_0)),_0.exports}var GH=zH();const O3=jd(GH);var D0={exports:{}},cC;function QH(){return cC||(cC=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=Hi:c&&(s=self);var f=!s.JS_SHA512_NO_COMMON_JS&&!0&&e.exports,y=!s.JS_SHA512_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",h="0123456789abcdef".split(""),A=[-2147483648,8388608,32768,128],v=[24,16,8,0],m=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],I=["hex","array","digest","arrayBuffer"],O=[],M=Array.isArray;(s.JS_SHA512_NO_NODE_JS||!M)&&(M=function(D){return Object.prototype.toString.call(D)==="[object Array]"});var B=ArrayBuffer.isView;y&&(s.JS_SHA512_NO_ARRAY_BUFFER_IS_VIEW||!B)&&(B=function(D){return typeof D=="object"&&D.buffer&&D.buffer.constructor===ArrayBuffer});var R=function(D){var $=typeof D;if($==="string")return[D,!0];if($!=="object"||D===null)throw new Error(t);if(y&&D.constructor===ArrayBuffer)return[new Uint8Array(D),!1];if(!M(D)&&!B(D))throw new Error(t);return[D,!1]},U=function(D,$){return function(k){return new ie($,!0).update(k)[D]()}},j=function(D){var $=U("hex",D);$.create=function(){return new ie(D)},$.update=function(re){return $.create().update(re)};for(var k=0;k<I.length;++k){var Q=I[k];$[Q]=U(Q,D)}return $},K=function(D,$){return function(k,Q){return new ye(k,$,!0).update(Q)[D]()}},H=function(D){var $=K("hex",D);$.create=function(re){return new ye(re,D)},$.update=function(re,Z){return $.create(re).update(Z)};for(var k=0;k<I.length;++k){var Q=I[k];$[Q]=K(Q,D)}return $};function ie(D,$){$?(O[0]=O[1]=O[2]=O[3]=O[4]=O[5]=O[6]=O[7]=O[8]=O[9]=O[10]=O[11]=O[12]=O[13]=O[14]=O[15]=O[16]=O[17]=O[18]=O[19]=O[20]=O[21]=O[22]=O[23]=O[24]=O[25]=O[26]=O[27]=O[28]=O[29]=O[30]=O[31]=O[32]=0,this.blocks=O):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],D==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):D==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):D==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=D,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1}ie.prototype.update=function(D){if(this.finalized)throw new Error(i);var $=R(D);D=$[0];for(var k=$[1],Q,re=0,Z,pe=D.length,_=this.blocks;re<pe;){if(this.hashed&&(this.hashed=!1,_[0]=this.block,this.block=_[1]=_[2]=_[3]=_[4]=_[5]=_[6]=_[7]=_[8]=_[9]=_[10]=_[11]=_[12]=_[13]=_[14]=_[15]=_[16]=_[17]=_[18]=_[19]=_[20]=_[21]=_[22]=_[23]=_[24]=_[25]=_[26]=_[27]=_[28]=_[29]=_[30]=_[31]=_[32]=0),k)for(Z=this.start;re<pe&&Z<128;++re)Q=D.charCodeAt(re),Q<128?_[Z>>>2]|=Q<<v[Z++&3]:Q<2048?(_[Z>>>2]|=(192|Q>>>6)<<v[Z++&3],_[Z>>>2]|=(128|Q&63)<<v[Z++&3]):Q<55296||Q>=57344?(_[Z>>>2]|=(224|Q>>>12)<<v[Z++&3],_[Z>>>2]|=(128|Q>>>6&63)<<v[Z++&3],_[Z>>>2]|=(128|Q&63)<<v[Z++&3]):(Q=65536+((Q&1023)<<10|D.charCodeAt(++re)&1023),_[Z>>>2]|=(240|Q>>>18)<<v[Z++&3],_[Z>>>2]|=(128|Q>>>12&63)<<v[Z++&3],_[Z>>>2]|=(128|Q>>>6&63)<<v[Z++&3],_[Z>>>2]|=(128|Q&63)<<v[Z++&3]);else for(Z=this.start;re<pe&&Z<128;++re)_[Z>>>2]|=D[re]<<v[Z++&3];this.lastByteIndex=Z,this.bytes+=Z-this.start,Z>=128?(this.block=_[32],this.start=Z-128,this.hash(),this.hashed=!0):this.start=Z}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this},ie.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var D=this.blocks,$=this.lastByteIndex;D[32]=this.block,D[$>>>2]|=A[$&3],this.block=D[32],$>=112&&(this.hashed||this.hash(),D[0]=this.block,D[1]=D[2]=D[3]=D[4]=D[5]=D[6]=D[7]=D[8]=D[9]=D[10]=D[11]=D[12]=D[13]=D[14]=D[15]=D[16]=D[17]=D[18]=D[19]=D[20]=D[21]=D[22]=D[23]=D[24]=D[25]=D[26]=D[27]=D[28]=D[29]=D[30]=D[31]=D[32]=0),D[30]=this.hBytes<<3|this.bytes>>>29,D[31]=this.bytes<<3,this.hash()}},ie.prototype.hash=function(){var D=this.h0h,$=this.h0l,k=this.h1h,Q=this.h1l,re=this.h2h,Z=this.h2l,pe=this.h3h,_=this.h3l,te=this.h4h,le=this.h4l,V=this.h5h,F=this.h5l,z=this.h6h,oe=this.h6l,q=this.h7h,N=this.h7l,C=this.blocks,P,J,ne,ce,w,G,Y,W,me,de,x,g,b,S,X,Ae,Se,Me,se,ue,Ee,Oe,Te,Ne,qe;for(P=32;P<160;P+=2)ue=C[P-30],Ee=C[P-29],J=(ue>>>1|Ee<<31)^(ue>>>8|Ee<<24)^ue>>>7,ne=(Ee>>>1|ue<<31)^(Ee>>>8|ue<<24)^(Ee>>>7|ue<<25),ue=C[P-4],Ee=C[P-3],ce=(ue>>>19|Ee<<13)^(Ee>>>29|ue<<3)^ue>>>6,w=(Ee>>>19|ue<<13)^(ue>>>29|Ee<<3)^(Ee>>>6|ue<<26),ue=C[P-32],Ee=C[P-31],Oe=C[P-14],Te=C[P-13],G=(Te&65535)+(Ee&65535)+(ne&65535)+(w&65535),Y=(Te>>>16)+(Ee>>>16)+(ne>>>16)+(w>>>16)+(G>>>16),W=(Oe&65535)+(ue&65535)+(J&65535)+(ce&65535)+(Y>>>16),me=(Oe>>>16)+(ue>>>16)+(J>>>16)+(ce>>>16)+(W>>>16),C[P]=me<<16|W&65535,C[P+1]=Y<<16|G&65535;var ze=D,Ge=$,Ye=k,Xe=Q,ut=re,ft=Z,ht=pe,pt=_,mt=te,Mt=le,Tt=V,Bt=F,$t=z,jt=oe,Pt=q,_t=N;for(Ae=Ye&ut,Se=Xe&ft,P=0;P<160;P+=8)J=(ze>>>28|Ge<<4)^(Ge>>>2|ze<<30)^(Ge>>>7|ze<<25),ne=(Ge>>>28|ze<<4)^(ze>>>2|Ge<<30)^(ze>>>7|Ge<<25),ce=(mt>>>14|Mt<<18)^(mt>>>18|Mt<<14)^(Mt>>>9|mt<<23),w=(Mt>>>14|mt<<18)^(Mt>>>18|mt<<14)^(mt>>>9|Mt<<23),de=ze&Ye,x=Ge&Xe,Me=de^ze&ut^Ae,se=x^Ge&ft^Se,Ne=mt&Tt^~mt&$t,qe=Mt&Bt^~Mt&jt,ue=C[P],Ee=C[P+1],Oe=m[P],Te=m[P+1],G=(Te&65535)+(Ee&65535)+(qe&65535)+(w&65535)+(_t&65535),Y=(Te>>>16)+(Ee>>>16)+(qe>>>16)+(w>>>16)+(_t>>>16)+(G>>>16),W=(Oe&65535)+(ue&65535)+(Ne&65535)+(ce&65535)+(Pt&65535)+(Y>>>16),me=(Oe>>>16)+(ue>>>16)+(Ne>>>16)+(ce>>>16)+(Pt>>>16)+(W>>>16),ue=me<<16|W&65535,Ee=Y<<16|G&65535,G=(se&65535)+(ne&65535),Y=(se>>>16)+(ne>>>16)+(G>>>16),W=(Me&65535)+(J&65535)+(Y>>>16),me=(Me>>>16)+(J>>>16)+(W>>>16),Oe=me<<16|W&65535,Te=Y<<16|G&65535,G=(pt&65535)+(Ee&65535),Y=(pt>>>16)+(Ee>>>16)+(G>>>16),W=(ht&65535)+(ue&65535)+(Y>>>16),me=(ht>>>16)+(ue>>>16)+(W>>>16),Pt=me<<16|W&65535,_t=Y<<16|G&65535,G=(Te&65535)+(Ee&65535),Y=(Te>>>16)+(Ee>>>16)+(G>>>16),W=(Oe&65535)+(ue&65535)+(Y>>>16),me=(Oe>>>16)+(ue>>>16)+(W>>>16),ht=me<<16|W&65535,pt=Y<<16|G&65535,J=(ht>>>28|pt<<4)^(pt>>>2|ht<<30)^(pt>>>7|ht<<25),ne=(pt>>>28|ht<<4)^(ht>>>2|pt<<30)^(ht>>>7|pt<<25),ce=(Pt>>>14|_t<<18)^(Pt>>>18|_t<<14)^(_t>>>9|Pt<<23),w=(_t>>>14|Pt<<18)^(_t>>>18|Pt<<14)^(Pt>>>9|_t<<23),g=ht&ze,b=pt&Ge,Me=g^ht&Ye^de,se=b^pt&Xe^x,Ne=Pt&mt^~Pt&Tt,qe=_t&Mt^~_t&Bt,ue=C[P+2],Ee=C[P+3],Oe=m[P+2],Te=m[P+3],G=(Te&65535)+(Ee&65535)+(qe&65535)+(w&65535)+(jt&65535),Y=(Te>>>16)+(Ee>>>16)+(qe>>>16)+(w>>>16)+(jt>>>16)+(G>>>16),W=(Oe&65535)+(ue&65535)+(Ne&65535)+(ce&65535)+($t&65535)+(Y>>>16),me=(Oe>>>16)+(ue>>>16)+(Ne>>>16)+(ce>>>16)+($t>>>16)+(W>>>16),ue=me<<16|W&65535,Ee=Y<<16|G&65535,G=(se&65535)+(ne&65535),Y=(se>>>16)+(ne>>>16)+(G>>>16),W=(Me&65535)+(J&65535)+(Y>>>16),me=(Me>>>16)+(J>>>16)+(W>>>16),Oe=me<<16|W&65535,Te=Y<<16|G&65535,G=(ft&65535)+(Ee&65535),Y=(ft>>>16)+(Ee>>>16)+(G>>>16),W=(ut&65535)+(ue&65535)+(Y>>>16),me=(ut>>>16)+(ue>>>16)+(W>>>16),$t=me<<16|W&65535,jt=Y<<16|G&65535,G=(Te&65535)+(Ee&65535),Y=(Te>>>16)+(Ee>>>16)+(G>>>16),W=(Oe&65535)+(ue&65535)+(Y>>>16),me=(Oe>>>16)+(ue>>>16)+(W>>>16),ut=me<<16|W&65535,ft=Y<<16|G&65535,J=(ut>>>28|ft<<4)^(ft>>>2|ut<<30)^(ft>>>7|ut<<25),ne=(ft>>>28|ut<<4)^(ut>>>2|ft<<30)^(ut>>>7|ft<<25),ce=($t>>>14|jt<<18)^($t>>>18|jt<<14)^(jt>>>9|$t<<23),w=(jt>>>14|$t<<18)^(jt>>>18|$t<<14)^($t>>>9|jt<<23),S=ut&ht,X=ft&pt,Me=S^ut&ze^g,se=X^ft&Ge^b,Ne=$t&Pt^~$t&mt,qe=jt&_t^~jt&Mt,ue=C[P+4],Ee=C[P+5],Oe=m[P+4],Te=m[P+5],G=(Te&65535)+(Ee&65535)+(qe&65535)+(w&65535)+(Bt&65535),Y=(Te>>>16)+(Ee>>>16)+(qe>>>16)+(w>>>16)+(Bt>>>16)+(G>>>16),W=(Oe&65535)+(ue&65535)+(Ne&65535)+(ce&65535)+(Tt&65535)+(Y>>>16),me=(Oe>>>16)+(ue>>>16)+(Ne>>>16)+(ce>>>16)+(Tt>>>16)+(W>>>16),ue=me<<16|W&65535,Ee=Y<<16|G&65535,G=(se&65535)+(ne&65535),Y=(se>>>16)+(ne>>>16)+(G>>>16),W=(Me&65535)+(J&65535)+(Y>>>16),me=(Me>>>16)+(J>>>16)+(W>>>16),Oe=me<<16|W&65535,Te=Y<<16|G&65535,G=(Xe&65535)+(Ee&65535),Y=(Xe>>>16)+(Ee>>>16)+(G>>>16),W=(Ye&65535)+(ue&65535)+(Y>>>16),me=(Ye>>>16)+(ue>>>16)+(W>>>16),Tt=me<<16|W&65535,Bt=Y<<16|G&65535,G=(Te&65535)+(Ee&65535),Y=(Te>>>16)+(Ee>>>16)+(G>>>16),W=(Oe&65535)+(ue&65535)+(Y>>>16),me=(Oe>>>16)+(ue>>>16)+(W>>>16),Ye=me<<16|W&65535,Xe=Y<<16|G&65535,J=(Ye>>>28|Xe<<4)^(Xe>>>2|Ye<<30)^(Xe>>>7|Ye<<25),ne=(Xe>>>28|Ye<<4)^(Ye>>>2|Xe<<30)^(Ye>>>7|Xe<<25),ce=(Tt>>>14|Bt<<18)^(Tt>>>18|Bt<<14)^(Bt>>>9|Tt<<23),w=(Bt>>>14|Tt<<18)^(Bt>>>18|Tt<<14)^(Tt>>>9|Bt<<23),Ae=Ye&ut,Se=Xe&ft,Me=Ae^Ye&ht^S,se=Se^Xe&pt^X,Ne=Tt&$t^~Tt&Pt,qe=Bt&jt^~Bt&_t,ue=C[P+6],Ee=C[P+7],Oe=m[P+6],Te=m[P+7],G=(Te&65535)+(Ee&65535)+(qe&65535)+(w&65535)+(Mt&65535),Y=(Te>>>16)+(Ee>>>16)+(qe>>>16)+(w>>>16)+(Mt>>>16)+(G>>>16),W=(Oe&65535)+(ue&65535)+(Ne&65535)+(ce&65535)+(mt&65535)+(Y>>>16),me=(Oe>>>16)+(ue>>>16)+(Ne>>>16)+(ce>>>16)+(mt>>>16)+(W>>>16),ue=me<<16|W&65535,Ee=Y<<16|G&65535,G=(se&65535)+(ne&65535),Y=(se>>>16)+(ne>>>16)+(G>>>16),W=(Me&65535)+(J&65535)+(Y>>>16),me=(Me>>>16)+(J>>>16)+(W>>>16),Oe=me<<16|W&65535,Te=Y<<16|G&65535,G=(Ge&65535)+(Ee&65535),Y=(Ge>>>16)+(Ee>>>16)+(G>>>16),W=(ze&65535)+(ue&65535)+(Y>>>16),me=(ze>>>16)+(ue>>>16)+(W>>>16),mt=me<<16|W&65535,Mt=Y<<16|G&65535,G=(Te&65535)+(Ee&65535),Y=(Te>>>16)+(Ee>>>16)+(G>>>16),W=(Oe&65535)+(ue&65535)+(Y>>>16),me=(Oe>>>16)+(ue>>>16)+(W>>>16),ze=me<<16|W&65535,Ge=Y<<16|G&65535;G=($&65535)+(Ge&65535),Y=($>>>16)+(Ge>>>16)+(G>>>16),W=(D&65535)+(ze&65535)+(Y>>>16),me=(D>>>16)+(ze>>>16)+(W>>>16),this.h0h=me<<16|W&65535,this.h0l=Y<<16|G&65535,G=(Q&65535)+(Xe&65535),Y=(Q>>>16)+(Xe>>>16)+(G>>>16),W=(k&65535)+(Ye&65535)+(Y>>>16),me=(k>>>16)+(Ye>>>16)+(W>>>16),this.h1h=me<<16|W&65535,this.h1l=Y<<16|G&65535,G=(Z&65535)+(ft&65535),Y=(Z>>>16)+(ft>>>16)+(G>>>16),W=(re&65535)+(ut&65535)+(Y>>>16),me=(re>>>16)+(ut>>>16)+(W>>>16),this.h2h=me<<16|W&65535,this.h2l=Y<<16|G&65535,G=(_&65535)+(pt&65535),Y=(_>>>16)+(pt>>>16)+(G>>>16),W=(pe&65535)+(ht&65535)+(Y>>>16),me=(pe>>>16)+(ht>>>16)+(W>>>16),this.h3h=me<<16|W&65535,this.h3l=Y<<16|G&65535,G=(le&65535)+(Mt&65535),Y=(le>>>16)+(Mt>>>16)+(G>>>16),W=(te&65535)+(mt&65535)+(Y>>>16),me=(te>>>16)+(mt>>>16)+(W>>>16),this.h4h=me<<16|W&65535,this.h4l=Y<<16|G&65535,G=(F&65535)+(Bt&65535),Y=(F>>>16)+(Bt>>>16)+(G>>>16),W=(V&65535)+(Tt&65535)+(Y>>>16),me=(V>>>16)+(Tt>>>16)+(W>>>16),this.h5h=me<<16|W&65535,this.h5l=Y<<16|G&65535,G=(oe&65535)+(jt&65535),Y=(oe>>>16)+(jt>>>16)+(G>>>16),W=(z&65535)+($t&65535)+(Y>>>16),me=(z>>>16)+($t>>>16)+(W>>>16),this.h6h=me<<16|W&65535,this.h6l=Y<<16|G&65535,G=(N&65535)+(_t&65535),Y=(N>>>16)+(_t>>>16)+(G>>>16),W=(q&65535)+(Pt&65535)+(Y>>>16),me=(q>>>16)+(Pt>>>16)+(W>>>16),this.h7h=me<<16|W&65535,this.h7l=Y<<16|G&65535},ie.prototype.hex=function(){this.finalize();var D=this.h0h,$=this.h0l,k=this.h1h,Q=this.h1l,re=this.h2h,Z=this.h2l,pe=this.h3h,_=this.h3l,te=this.h4h,le=this.h4l,V=this.h5h,F=this.h5l,z=this.h6h,oe=this.h6l,q=this.h7h,N=this.h7l,C=this.bits,P=h[D>>>28&15]+h[D>>>24&15]+h[D>>>20&15]+h[D>>>16&15]+h[D>>>12&15]+h[D>>>8&15]+h[D>>>4&15]+h[D&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[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[Q>>>28&15]+h[Q>>>24&15]+h[Q>>>20&15]+h[Q>>>16&15]+h[Q>>>12&15]+h[Q>>>8&15]+h[Q>>>4&15]+h[Q&15]+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[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[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 C>=256&&(P+=h[_>>>28&15]+h[_>>>24&15]+h[_>>>20&15]+h[_>>>16&15]+h[_>>>12&15]+h[_>>>8&15]+h[_>>>4&15]+h[_&15]),C>=384&&(P+=h[te>>>28&15]+h[te>>>24&15]+h[te>>>20&15]+h[te>>>16&15]+h[te>>>12&15]+h[te>>>8&15]+h[te>>>4&15]+h[te&15]+h[le>>>28&15]+h[le>>>24&15]+h[le>>>20&15]+h[le>>>16&15]+h[le>>>12&15]+h[le>>>8&15]+h[le>>>4&15]+h[le&15]+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[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]),C==512&&(P+=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[oe>>>28&15]+h[oe>>>24&15]+h[oe>>>20&15]+h[oe>>>16&15]+h[oe>>>12&15]+h[oe>>>8&15]+h[oe>>>4&15]+h[oe&15]+h[q>>>28&15]+h[q>>>24&15]+h[q>>>20&15]+h[q>>>16&15]+h[q>>>12&15]+h[q>>>8&15]+h[q>>>4&15]+h[q&15]+h[N>>>28&15]+h[N>>>24&15]+h[N>>>20&15]+h[N>>>16&15]+h[N>>>12&15]+h[N>>>8&15]+h[N>>>4&15]+h[N&15]),P},ie.prototype.toString=ie.prototype.hex,ie.prototype.digest=function(){this.finalize();var D=this.h0h,$=this.h0l,k=this.h1h,Q=this.h1l,re=this.h2h,Z=this.h2l,pe=this.h3h,_=this.h3l,te=this.h4h,le=this.h4l,V=this.h5h,F=this.h5l,z=this.h6h,oe=this.h6l,q=this.h7h,N=this.h7l,C=this.bits,P=[D>>>24&255,D>>>16&255,D>>>8&255,D&255,$>>>24&255,$>>>16&255,$>>>8&255,$&255,k>>>24&255,k>>>16&255,k>>>8&255,k&255,Q>>>24&255,Q>>>16&255,Q>>>8&255,Q&255,re>>>24&255,re>>>16&255,re>>>8&255,re&255,Z>>>24&255,Z>>>16&255,Z>>>8&255,Z&255,pe>>>24&255,pe>>>16&255,pe>>>8&255,pe&255];return C>=256&&P.push(_>>>24&255,_>>>16&255,_>>>8&255,_&255),C>=384&&P.push(te>>>24&255,te>>>16&255,te>>>8&255,te&255,le>>>24&255,le>>>16&255,le>>>8&255,le&255,V>>>24&255,V>>>16&255,V>>>8&255,V&255,F>>>24&255,F>>>16&255,F>>>8&255,F&255),C==512&&P.push(z>>>24&255,z>>>16&255,z>>>8&255,z&255,oe>>>24&255,oe>>>16&255,oe>>>8&255,oe&255,q>>>24&255,q>>>16&255,q>>>8&255,q&255,N>>>24&255,N>>>16&255,N>>>8&255,N&255),P},ie.prototype.array=ie.prototype.digest,ie.prototype.arrayBuffer=function(){this.finalize();var D=this.bits,$=new ArrayBuffer(D/8),k=new DataView($);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),D>=256&&k.setUint32(28,this.h3l),D>=384&&(k.setUint32(32,this.h4h),k.setUint32(36,this.h4l),k.setUint32(40,this.h5h),k.setUint32(44,this.h5l)),D==512&&(k.setUint32(48,this.h6h),k.setUint32(52,this.h6l),k.setUint32(56,this.h7h),k.setUint32(60,this.h7l)),$},ie.prototype.clone=function(){var D=new ie(this.bits,!1);return this.copyTo(D),D},ie.prototype.copyTo=function(D){var $=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($=0;$<k.length;++$)D[k[$]]=this[k[$]];for($=0;$<this.blocks.length;++$)D.blocks[$]=this.blocks[$]};function ye(D,$,k){var Q,re=R(D);if(D=re[0],re[1]){for(var Z=[],pe=D.length,_=0,te,Q=0;Q<pe;++Q)te=D.charCodeAt(Q),te<128?Z[_++]=te:te<2048?(Z[_++]=192|te>>>6,Z[_++]=128|te&63):te<55296||te>=57344?(Z[_++]=224|te>>>12,Z[_++]=128|te>>>6&63,Z[_++]=128|te&63):(te=65536+((te&1023)<<10|D.charCodeAt(++Q)&1023),Z[_++]=240|te>>>18,Z[_++]=128|te>>>12&63,Z[_++]=128|te>>>6&63,Z[_++]=128|te&63);D=Z}D.length>128&&(D=new ie($,!0).update(D).array());for(var le=[],V=[],Q=0;Q<128;++Q){var F=D[Q]||0;le[Q]=92^F,V[Q]=54^F}ie.call(this,$,k),this.update(V),this.oKeyPad=le,this.inner=!0,this.sharedMemory=k}ye.prototype=new ie,ye.prototype.finalize=function(){if(ie.prototype.finalize.call(this),this.inner){this.inner=!1;var D=this.array();ie.call(this,this.bits,this.sharedMemory),this.update(this.oKeyPad),this.update(D),ie.prototype.finalize.call(this)}},ye.prototype.clone=function(){var D=new ye([],this.bits,!1);this.copyTo(D),D.inner=this.inner;for(var $=0;$<this.oKeyPad.length;++$)D.oKeyPad[$]=this.oKeyPad[$];return D};var fe=j(512);fe.sha512=fe,fe.sha384=j(384),fe.sha512_256=j(256),fe.sha512_224=j(224),fe.sha512.hmac=H(512),fe.sha384.hmac=H(384),fe.sha512_256.hmac=H(256),fe.sha512_224.hmac=H(224),f?e.exports=fe:(s.sha512=fe.sha512,s.sha384=fe.sha384,s.sha512_256=fe.sha512_256,s.sha512_224=fe.sha512_224)})()})(D0)),D0.exports}var kH=QH();const VH=jd(kH),F3="3.7.7",KH=F3,Au=typeof Yt.Buffer=="function",lC=typeof TextDecoder=="function"?new TextDecoder:void 0,fC=typeof TextEncoder=="function"?new TextEncoder:void 0,YH="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Sc=Array.prototype.slice.call(YH),ld=(e=>{let t={};return e.forEach((i,a)=>t[i]=a),t})(Sc),XH=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,wn=String.fromCharCode.bind(String),dC=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),B3=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),R3=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),T3=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+=Sc[t>>18&63]+Sc[t>>12&63]+Sc[t>>6&63]+Sc[t&63]}return l?c.slice(0,l-3)+"===".substring(l):c},Bv=typeof btoa=="function"?e=>btoa(e):Au?e=>Yt.Buffer.from(e,"binary").toString("base64"):T3,i1=Au?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 Bv(i.join(""))},bd=(e,t=!1)=>t?B3(i1(e)):i1(e),ZH=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)}},JH=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,_3=e=>e.replace(JH,ZH),hC=Au?e=>Yt.Buffer.from(e,"utf8").toString("base64"):fC?e=>i1(fC.encode(e)):e=>Bv(_3(e)),zs=(e,t=!1)=>t?B3(hC(e)):hC(e),pC=e=>zs(e,!0),WH=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,e9=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))}},D3=e=>e.replace(WH,e9),U3=e=>{if(e=e.replace(/\s+/g,""),!XH.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=ld[e.charAt(c++)]<<18|ld[e.charAt(c++)]<<12|(a=ld[e.charAt(c++)])<<6|(s=ld[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},Rv=typeof atob=="function"?e=>atob(R3(e)):Au?e=>Yt.Buffer.from(e,"base64").toString("binary"):U3,M3=Au?e=>dC(Yt.Buffer.from(e,"base64")):e=>dC(Rv(e).split("").map(t=>t.charCodeAt(0))),j3=e=>M3(P3(e)),t9=Au?e=>Yt.Buffer.from(e,"base64").toString("utf8"):lC?e=>lC.decode(M3(e)):e=>D3(Rv(e)),P3=e=>R3(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),a1=e=>t9(P3(e)),n9=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)},N3=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),L3=function(){const e=(t,i)=>Object.defineProperty(String.prototype,t,N3(i));e("fromBase64",function(){return a1(this)}),e("toBase64",function(t){return zs(this,t)}),e("toBase64URI",function(){return zs(this,!0)}),e("toBase64URL",function(){return zs(this,!0)}),e("toUint8Array",function(){return j3(this)})},q3=function(){const e=(t,i)=>Object.defineProperty(Uint8Array.prototype,t,N3(i));e("toBase64",function(t){return bd(this,t)}),e("toBase64URI",function(){return bd(this,!0)}),e("toBase64URL",function(){return bd(this,!0)})},r9=()=>{L3(),q3()},i9={version:F3,VERSION:KH,atob:Rv,atobPolyfill:U3,btoa:Bv,btoaPolyfill:T3,fromBase64:a1,toBase64:zs,encode:zs,encodeURI:pC,encodeURL:pC,utob:_3,btou:D3,decode:a1,isValid:n9,fromUint8Array:bd,toUint8Array:j3,extendString:L3,extendUint8Array:q3,extendBuiltins:r9},Qo=e=>`${e} is malformed`,$3=e=>`${e} checksum is wrong`,a9=32,yC=32,fd=36,H3=4,gC=58,mC=32,o9=32,AC=Qo("block hash"),s9=Qo("tx id"),U0=Qo("address"),u9=$3("address");function c9(e){return Uint8Array.from(VH.sha512_256.array(e).slice(mC-H3,mC))}function l9(e){if(typeof e!="string")throw new Error(`${U0}: expected string, got ${typeof e}, ${e}`);if(e.length!==gC)throw new Error(`${U0}: expected length ${gC}, got ${e.length}: ${e}`);const t=O3.decode.asBytes(e);if(t.length!==fd)throw new Error(`${U0}: expected byte length ${fd}, got ${t.length}`);const i=new Uint8Array(t.slice(0,fd-H3)),a=new Uint8Array(t.slice(o9,fd)),s=c9(i);if(!h9(s,a))throw new Error(u9);return!0}function f9(e){const t=i9.toUint8Array("3KYSrPgi16Cl3iLu3r+GaeZkBBrgNFbMB60jsrJtTdI=");if(t.length!==yC)throw new Error(`${s9}: expected byte length ${yC}, got ${t.length}`);return!0}function d9(e){const t=O3.decode.asBytes(e);if(t.length!==a9)throw new Error(`${AC}: expected byte length ${AC}, got ${t.length}`);return!0}function h9(e,t){return e.length!==t.length?!1:Array.from(e).every((i,a)=>i===t[a])}const p9=34,o1=34,bC=36,y9=Qo("block hash"),g9=Qo("tx id"),m9=Qo("address");function A9(e){const t=Eh.decode(e);if(t.length!==bC)throw new Error(`${m9}: expected byte length ${bC}, got ${t.length}`);return!0}function b9(e){const t=Eh.decode(e);if(t.length!==o1)throw new Error(`${y9}: expected byte length ${p9}, got ${t.length}`);return!0}function v9(e){const t=Eh.decode(e);if(t.length!==o1)throw new Error(`${g9}: expected byte length ${o1}, got ${t.length}`);return!0}function x9({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 ci=x9({polynomial:3988292384,numTables:8});function E9(){return-1}function w9(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=ci[(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 y=a.getUint32(c+4,!0);s=ci[0*256+(y>>>24&255)]^ci[1*256+(y>>>16&255)]^ci[2*256+(y>>>8&255)]^ci[3*256+(y>>>0&255)]^ci[4*256+(s>>>24&255)]^ci[5*256+(s>>>16&255)]^ci[6*256+(s>>>8&255)]^ci[7*256+(s>>>0&255)]}for(let y=c;y<i;y++)s=ci[(s^a.getUint8(y))&255]^s>>>8;return s}function I9(e){return(e^-1)>>>0}function S9(e){return I9(w9(E9(),e))}const po=Error,dd=Error,M0="Unexpected end of buffer",Ns=class Ns{constructor(t){this.initialByte=t}CborInitialByte(t,i){this.initialByte=t<<5|i}static from(t){return new Ns(t)}getInitialByte(){return this.initialByte}getMajorType(){return this.initialByte>>5}getAdditionalInfo(){return this.initialByte&Ns.AdditionalInformationMask}};Ns.IndefiniteLengthBreakByte=255,Ns.AdditionalInformationMask=31;let Ba=Ns;var $i,Qr,Ud,Gs,Gt,Md,at,z3,G3,Q3,vd,Xn,u1,k3,xd,Cc,Oc,vo,c1,xo;const En=class En{constructor(t){Mi(this,at);Mi(this,$i);Mi(this,Qr,0);Mi(this,Ud,new Array);Mi(this,Gs,!1);Mi(this,Gt);Mi(this,Md,0);Ca(this,$i,new Uint8Array(Yt.Buffer.from(t,"hex"))),Ca(this,Gt,{currentKeyOffset:null,frameOffset:0,itemsRead:0,type:null})}readStartArray(){var c;const t=ct(this,at,Cc).call(this,4);if(t.getAdditionalInfo()===31)return ct(this,at,vo).call(this,1),ct(this,at,c1).call(this,4),null;const i=ct(this,at,xo).call(this),{length:a,bytesRead:s}=ct(c=En,Xn,xd).call(c,t,i);return ct(this,at,vo).call(this,s),ct(this,at,c1).call(this,4,a),a}readTag(){const{tag:t,bytesRead:i}=ct(this,at,k3).call(this);return ct(this,at,vo).call(this,i),Ca(this,Gs,!0),t}readByteString(){var c;const t=ct(this,at,Cc).call(this,2);if(t.getAdditionalInfo()===31){const{val:l,encodingLength:f}=ct(this,at,Q3).call(this,2);return ct(this,at,vo).call(this,f),ct(this,at,vd).call(this),l}const i=ct(this,at,xo).call(this),{length:a,bytesRead:s}=ct(c=En,Xn,xd).call(c,t,i);return ct(this,at,G3).call(this,s+a),ct(this,at,vo).call(this,s+a),ct(this,at,vd).call(this),i.slice(s,s+a)}readInt(){const t=ct(this,at,z3).call(this);return ct(this,at,vo).call(this,t.bytesRead),ct(this,at,vd).call(this),t.signedInt}static ensureReadCapacityInArray(t,i){if(t.length<i)throw new po(M0)}};$i=new WeakMap,Qr=new WeakMap,Ud=new WeakMap,Gs=new WeakMap,Gt=new WeakMap,Md=new WeakMap,at=new WeakSet,z3=function(){var i,a;const t=ct(this,at,Cc).call(this);switch(t.getMajorType()){case 0:{const{unsignedInt:s,bytesRead:c}=ct(i=En,Xn,Oc).call(i,t,ct(this,at,xo).call(this));return{bytesRead:c,signedInt:BigInt(s)}}case 1:{const{unsignedInt:s,bytesRead:c}=ct(a=En,Xn,Oc).call(a,t,ct(this,at,xo).call(this));return{bytesRead:c,signedInt:BigInt(-1)-s}}default:throw new dd(`Reader type mismatch, expected 0 or 1 but got ${t.getMajorType()}`)}},G3=function(t){if(dt(this,$i).length-dt(this,Qr)<t)throw new po(M0)},Q3=function(t){var f,y,h;const i=ct(this,at,xo).call(this);let a=Yt.Buffer.from([]),s=0,c=1,l=ct(f=En,Xn,u1).call(f,i.slice(c),t);for(;l.getInitialByte()!==Ba.IndefiniteLengthBreakByte;){const{length:A,bytesRead:v}=ct(y=En,Xn,xd).call(y,l,i.slice(c)),m=v+Number(A);a=Yt.Buffer.concat([a,i.slice(c+(m-A),c+m)]),c+=m,l=ct(h=En,Xn,u1).call(h,i.slice(c),t)}return s=c+1,{encodingLength:s,val:new Uint8Array(a)}},vd=function(){++dt(this,Gt).itemsRead,Ca(this,Gs,!1)},Xn=new WeakSet,u1=function(t,i){En.ensureReadCapacityInArray(t,1);const a=Ba.from(t[0]);if(a.getInitialByte()!==Ba.IndefiniteLengthBreakByte&&a.getMajorType()!==i)throw new po("Indefinite length string contains invalid data item");return a},k3=function(){var s;const t=ct(this,at,Cc).call(this,6),{unsignedInt:i,bytesRead:a}=ct(s=En,Xn,Oc).call(s,t,ct(this,at,xo).call(this));return{bytesRead:a,tag:Number(i)}},xd=function(t,i){var c;const{unsignedInt:a,bytesRead:s}=ct(c=En,Xn,Oc).call(c,t,i);return{bytesRead:s,length:Number(a)}},Cc=function(t){if(dt(this,Gt).definiteLength!==void 0&&dt(this,Gt).definiteLength-dt(this,Gt).itemsRead===0)throw new dd("No more data items to read");if(dt(this,Qr)===dt(this,$i).length)throw dt(this,Gt).type===null&&dt(this,Gt).definiteLength===void 0&&dt(this,Qr)>0?new dd("End of root-level. No more data items to read"):new po(M0);const i=Ba.from(dt(this,$i)[dt(this,Qr)]);switch(dt(this,Gt).type){case 2:case 3:if(i.getInitialByte()===Ba.IndefiniteLengthBreakByte||i.getMajorType()===dt(this,Gt).type&&i.getAdditionalInfo()!==31)break;throw new po(`Indefinite length string contains invalid data item, ${i.getMajorType()}`)}if(t&&t!==i.getMajorType())throw new dd(`Major type mismatch, expected type ${t} but got ${i.getMajorType()}`);return i},Oc=function(t,i){if((t.getInitialByte()&Ba.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 po("Invalid integer encoding")}},vo=function(t){if(dt(this,Qr)+t>dt(this,$i).length)throw new po("Buffer offset out of bounds");Ca(this,Qr,dt(this,Qr)+t),Ca(this,Md,0)},c1=function(t,i){const a={currentKeyOffset:dt(this,Gt).currentKeyOffset,definiteLength:dt(this,Gt).definiteLength,frameOffset:dt(this,Gt).frameOffset,itemsRead:dt(this,Gt).itemsRead,type:dt(this,Gt).type};dt(this,Ud).push(a),dt(this,Gt).type=t,dt(this,Gt).definiteLength=i,dt(this,Gt).itemsRead=0,dt(this,Gt).frameOffset=dt(this,Qr),Ca(this,Gs,!1),dt(this,Gt).currentKeyOffset=null},xo=function(){return dt(this,$i).slice(dt(this,Qr))},Mi(En,Xn);let s1=En;const C9=$3("address");function O9(e){return V3(Ad.decode(e))}function V3(e){const t=new s1(Yt.Buffer.from(e).toString("hex"));t.readStartArray(),t.readTag();const i=t.readByteString();if(Number(t.readInt())!==S9(i))throw new Error(C9);return!0}function F9(e){const t=r1.bech32.decode(e,Number.MAX_SAFE_INTEGER/2),i=r1.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}=j0(c.subarray(s));s+=l;const{bytesRead:f}=j0(c.subarray(s));return s+=f,j0(c.subarray(s)),!0}case 6:case 7:return i.length===47;case 14:case 15:return i.length===47;case 8:return V3(new Uint8Array(i));default:throw new Error(Qo("address"))}}const j0=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}}Ai("algorand-address",e=>Wr(e,l9));Ai("algorand-blockhash",e=>Wr(e,f9));Ai("algorand-txid",e=>Wr(e,d9));Ai("mina-address",e=>Wr(e,A9));Ai("mina-blockhash",e=>Wr(e,b9));Ai("mina-txid",e=>Wr(e,v9));Ai("cardano-address",e=>Wr(e,O9)||Wr(e,F9));Ai("ss58",e=>Wr(e,PH.decode));Ai("bs58check",e=>Wr(e,Eh.decode));Ai("bech32",e=>Wr(e,t=>r1.bech32.decode(t,Number.MAX_SAFE_INTEGER/2)));function _n(e){return E.Transform(e).Decode(t=>t.toLowerCase()).Encode(t=>t.toLowerCase())}function vC(e){return E.Transform(e).Decode(t=>t.toUpperCase()).Encode(t=>t.toUpperCase())}const Ie={Uint256:E.Transform(E.BigInt({maximum:115792089237316195423570985008687907853269984665640564039457584007913129639935n,minimum:0n})).Decode(e=>e.toString()).Encode(e=>BigInt(e)),BlockNumber:e=>E.Unsafe(E.Number(e)),AbsoluteSlotNumber:e=>E.Unsafe(E.Number(e)),EpochNumber:e=>E.Unsafe(E.Number(e)),Algorand:{BlockHash:E.Unsafe(E.String({format:"algorand-blockhash"})),TxHash:E.Unsafe(vC(E.String({format:"algorand-txid"}))),Address:E.Unsafe(vC(E.String({format:"algorand-address"})))},Substrate:{Address:E.Unsafe(E.String({format:"ss58"}))},Avail:{BlockHash:E.Unsafe(_n(E.RegExp(/^0x[a-fA-F0-9]{64}$/))),Address:E.Unsafe(E.String({format:"ss58"}))},Cardano:{BlockHash:E.Unsafe(_n(E.RegExp(/^[a-fA-F0-9]{64}$/))),TxHash:E.Unsafe(_n(E.RegExp(/^[a-fA-F0-9]{64}$/))),Address:E.Unsafe(E.String({format:"cardano-address"})),Credential:E.Unsafe(_n(E.RegExp(/^[a-fA-F0-9]{64}$/))),PoolId:E.Unsafe(_n(E.String())),PolicyId:E.Unsafe(_n(E.RegExp(/^[a-fA-F0-9]{56}$/))),AssetName:E.Unsafe(_n(E.RegExp(/^[a-fA-F0-9]{64}$/))),Cip14Fingerprint:E.Unsafe(E.String()),AmountLovelace:E.Unsafe(E.RegExp(/^\d+$/))},Evm:{BlockHash:E.Unsafe(_n(E.RegExp(/^0x[a-fA-F0-9]{64}$/))),TxHash:E.Unsafe(_n(E.RegExp(/^0x[a-fA-F0-9]{64}$/))),Address:E.Unsafe(_n(E.RegExp(/^0x[a-fA-F0-9]{40}$/))),Selector:E.Unsafe(_n(E.RegExp(/^0x[a-fA-F0-9]{8}$/))),FullSelector:E.Unsafe(_n(E.RegExp(/^0x[a-fA-F0-9]{64}$/))),Signature:E.Unsafe(E.RegExp(/^0x[a-fA-F0-9]{130}$/)),PrivateKey:E.Unsafe(E.RegExp(/^0x[a-fA-F0-9]{64}$/))},Midnight:{BlockHash:E.Unsafe(_n(E.RegExp(/^0x[a-fA-F0-9]{64}$/))),TxHash:E.Unsafe(_n(E.RegExp(/^0x[a-fA-F0-9]{64}$/))),Address:E.Unsafe(_n(E.RegExp(/^[a-fA-F0-9]{181}$/)))},Mina:{BlockHash:E.Unsafe(E.String({format:"mina-blockhash"})),TxHash:E.Unsafe(E.String({format:"mina-txid"})),Address:E.Unsafe(E.String({format:"mina-address"}))},Caip2:E.Unsafe(E.String()),WalletAddress:()=>E.Union(R9),IntervalMs:e=>E.Unsafe(E.Number(e)),IntervalSec:e=>E.Unsafe(E.Number(e)),TimestampMs:e=>E.Unsafe(E.Number(e)),TimestampMsStr:E.Unsafe(E.RegExp(/^\d+$/)),HexString0x:e=>E.Unsafe(E.RegExp(/^0x[a-fA-F0-9]+$/,e)),HexStringNo0x:e=>E.Unsafe(E.RegExp(/^[a-fA-F0-9]+$/,e)),UnknownFormat:E.Unsafe(E.String()),Lowercase:_n(E.String()),TrueOrFalse:E.Transform(E.Union([E.Literal("T"),E.Literal("F")])).Decode(e=>e==="T").Encode(e=>e?"T":"F"),Nullable:(e,t)=>E.Union([e,E.Null()],t),SerializeObjAsJson:()=>E.Transform(E.Unsafe(E.Any())).Decode(e=>JSON.stringify(e)).Encode(e=>JSON.parse(e)),SerializeJsonAsObj:e=>E.Transform(e).Decode(t=>JSON.parse(t)).Encode(t=>JSON.stringify(t)),EvmAbiEvent:E.Unsafe(E.Any())},B9={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},R9=[E.Object({type:E.Literal(0),address:Ie.Evm.Address}),E.Object({type:E.Literal(1),address:Ie.Cardano.Address}),E.Object({type:E.Literal(2),address:Ie.Substrate.Address}),E.Object({type:E.Literal(6),address:Ie.Avail.Address}),E.Object({type:E.Literal(3),address:Ie.Algorand.Address}),E.Object({type:E.Literal(4),address:Ie.Mina.Address}),E.Object({type:E.Literal(5),address:Ie.Midnight.Address})];function Ed(e){return{from:t=>{const i=[];for(const a of e)i.push([a,t.properties[a]]);return i}}}function Us(e){return{from:t=>Ed(e).from(t)}}const hl=e=>({ok:!0,value:e}),pl=e=>({ok:!1,error:e});function*l1(e){return yield{type:"reset",block:e}}function*Tv(e){return yield{type:"shift",block:e}}function T9(){let e=[];return{reducing:!1,push(...t){return e.push(...t)},pop(){return e.pop()}}}function Oo(e){let t=T9();return t.push({method:"next",iterator:e()[Symbol.iterator]()}),Fc(t)}function Fc(e){try{e.reducing=!0;for(let t=e.pop();t;t=e.pop())try{let i=_9(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=hd(f=>(e.push({method:"next",iterator:s.iterator,value:f}),Fc(e)));c.tail=hd(f=>{e.push({method:"next",iterator:s.iterator,value:f}),e.reducing||Fc(e)});let l=hd(f=>(e.push({method:"throw",iterator:s.iterator,value:f}),Fc(e)));l.tail=hd(f=>{e.push({method:"throw",iterator:s.iterator,value:f}),e.reducing||Fc(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 _9(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 hd(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 iu(e){return Tv((t,i)=>({[Symbol.iterator]:()=>({next(){return{done:!0,value:e(t,i)}}})}))}function Td(){return _v(D9)}function D9(e){return iu(t=>{e.aborted&&t.tail(hl(void 0))})}function xC(e){return _v(function(i){return Tv(function*(a){let s=yield*l1(function*(){let y=yield*iu(A=>A.tail),h=yield*f.destroy();h.ok?a.tail(y):a.tail(h)}),c=y=>s(hl(y)),l=y=>s(pl(y)),f=i.createChild(function*(){let y=e(c,l);if(typeof y=="function")try{yield*Td()}finally{y()}else yield*y,yield*Td()});yield*l1(function*(){let y=yield*f;y.ok||a.tail(y)}),f.enter()})})}function U9(){return _v(e=>iu(t=>t.tail(hl(e))))}function _v(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 yl(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 M9(e){let t=()=>{let i=e();return t=()=>i,i};return()=>t()}function*j9(){let e,t=new Set;return[yield*l1(function*(){let s=yield*iu(c=>c.tail);e={value:s};for(let c of t)t.delete(c),c(s)}),{[Symbol.iterator](){return e?P9(e.value):iu(s=>{t.add(s.tail)})[Symbol.iterator]()}}]}function P9(e){return{next(){return{done:!0,value:e}}}}function N9(e){let t,i=(c,l)=>{Oo(function*(){let f=EC(yield*e);f.ok?c(f.value):l(f.error)})},a=()=>(t=new Promise((c,l)=>{i(c,l)}),a=()=>t,t);return yl("Task",{},{*[Symbol.iterator](){let c=Oo(()=>e);if(c){let l=EC(c);if(l.ok)return l.value;throw l.error}else return yield*xC(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((y,h)=>{f(y,h)}),l=()=>c,e.destroy(),c),f=(y,h)=>{Oo(function*(){let{destruction:A}=yield*e;A.ok?y():h(A.error)})};return yl("Future",{},{*[Symbol.iterator](){let y=Oo(()=>e);if(y){if(!y.ok)throw y.error}else yield*xC(function*(h,A){f(h,A),e.destroy()})},then:(...y)=>l().then(...y),catch:(...y)=>l().catch(...y),finally:(...y)=>l().finally(...y)})}})}function EC(e){return e.ok?e.exit.type==="aborted"?pl(Error("halted")):e.exit.type==="crashed"?pl(e.exit.error):e.exit.result:e}let L9=0;function K3(e){return Oo(function*(){let{operation:t,parent:i}=e,a=new Set,s=Object.create(i??{}),c=[{done:!1,value:wC(void 0)}],l,f=()=>{},[y,h]=yield*j9(),A=yield*iu(B=>{let R=yl("Frame",{id:L9++,context:s},{createChild(j){let K=K3({operation:j,parent:R.context});return a.add(K),Oo(function*(){yield*K,a.delete(K)}),K},getTask(){let j=N9(R);return R.getTask=()=>j,j},enter(){B.tail(R)},crash(j){return U(j),h},destroy(){return U(),h},[Symbol.iterator]:h[Symbol.iterator]}),U=j=>{R.aborted||(R.aborted=!0,l=j,c.unshift({done:!1,value:$9()}),f())};return R}),v=M9(()=>t()[Symbol.iterator]()),m=c.pop();for(;!m.done;){let B=m.value;try{let R=B(v());if(R.done)c.unshift({done:!0,value:hl(R.value)});else{let U=R.value,j=yield*Tv(function*(K){f=()=>K.tail({type:"interrupted"});try{K.tail({type:"settled",result:yield*U(A)})}catch(H){K.tail({type:"settled",result:pl(H)})}});j.type==="settled"&&(j.result.ok?c.unshift({done:!1,value:wC(j.result.value)}):c.unshift({done:!1,value:q9(j.result.error)}))}}catch(R){c.unshift({done:!0,value:pl(R)})}m=c.pop()}A.exited=!0;let I=m.value,O;I.ok?l?O={type:"crashed",error:l}:A.aborted?O={type:"aborted"}:O={type:"result",result:I}:O={type:"result",result:I};let M=hl(void 0);for(;a.size!==0;)for(let B of[...a].reverse()){let R=yield*B.destroy();R.ok||(M=R)}if(!M.ok)y({ok:!1,error:M.error,exit:O,destruction:M});else if(O.type==="aborted")y({ok:!0,value:void 0,exit:O,destruction:M});else if(O.type==="result"){let{result:B}=O;B.ok?y({ok:!0,value:void 0,exit:O,destruction:M}):y({ok:!1,error:B.error,exit:O,destruction:M})}else y({ok:!1,error:O.error,exit:O,destruction:M})})}const wC=e=>function(i){return i.next(e)},q9=e=>function(i){if(i.throw)return i.throw(e);throw e},$9=e=>function(i){return i.return?i.return(e):{done:!0,value:e}};function*P0(){let e=yield*U9(),[t]=H9(e);return t}function H9(e){let t=z9(e)?e.frame.createChild(Td):e??K3({operation:Td}),i=yl("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(),Oo(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 z9(e){return!!e&&typeof e.run=="function"}function G9(e,t){let i=yl("Context",{key:e},{defaultValue:t,*get(){return(yield*P0()).get(i)},*set(s){return(yield*P0()).set(i,s)},expect:a,*with(s,c){let l=yield*P0(),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 Q9(`missing required context: '${e}'`);return s}return i}class Q9 extends Error{constructor(){super(...arguments),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MissingContextError"})}}const k9={Paima:{type:"EVM",name:"Paima Engine",blockTime:300,color:"#667eea",blocks:[],currentBlock:1e6,rpcEndpoint:`http://127.0.0.1:${Ke.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}},V9=`http://127.0.0.1:${Ke.PAIMA_API_PORT}/config`,K9=`http://127.0.0.1:${Ke.PAIMA_API_PORT}/primitives`,Y9=`http://127.0.0.1:${Ke.PAIMA_API_PORT}/tables`,X9=`http://127.0.0.1:${Ke.PAIMA_API_PORT}/grammar`,Z9=`http://127.0.0.1:${Ke.PAIMA_API_PORT}/scheduled-data`,J9=`http://127.0.0.1:${Ke.PAIMA_API_PORT}/primitives-schema`,W9=`http://127.0.0.1:${Ke.PAIMA_API_PORT}/table-schema`,Y3=`http://localhost:${Ke.BATCHER_PORT}/send-input`,IC=`http://localhost:${Ke.BATCHER_PORT}/documentation`,SC=`http://localhost:${Ke.PAIMA_API_PORT}/documentation`,CC=`http://127.0.0.1:${Ke.DOCS_PORT}/`,ez=`http://127.0.0.1:${Ke.PAIMA_API_PORT}/addresses`;function Dv(e){return Object.fromEntries(Object.entries(e).map(([i,a])=>{const s=a.map(([l,f])=>f),c=E.Tuple([E.Literal(i),...s]);return[i,c]}))}function yo(e){return["userAddress",B9[e]]}const go=[["userSignature",E.String()],["gameInput",E.String()],["millisecondTimestamp",E.String()]],tz={[`${Ln.EVM}`]:[yo(Ln.EVM),...go],[`${Ln.CARDANO}`]:[yo(Ln.CARDANO),...go],[`${Ln.SUBSTRATE}`]:[yo(Ln.SUBSTRATE),...go],[`${Ln.AVAIL}`]:[yo(Ln.AVAIL),...go],[`${Ln.ALGORAND}`]:[yo(Ln.ALGORAND),...go],[`${Ln.MINA}`]:[yo(Ln.MINA),...go],[`${Ln.MIDNIGHT}`]:[yo(Ln.MIDNIGHT),...go]};Dv(tz);const nz={batcherInput:"&B"},rz={[nz.batcherInput]:[["input",E.Array(E.String())]]};Dv(rz);const N0={createAccount:"&createAccount",linkAddress:"&linkAddress",unlinkAddress:"&unlinkAddress"},iz={[N0.createAccount]:[],[N0.linkAddress]:[["account_id",E.Number()],["signature_from_primary",E.String()],["new_address",E.String()],["signature_from_new_address",E.String()],["is_new_primary",E.Boolean()]],[N0.unlinkAddress]:[["account_id",E.Number()],["signature_from_primary",E.String()],["account_address",E.String()],["new_primary",E.String()]]};Dv(iz);class mn{constructor(t){this.config=t,this.allProperties=i=>E.Intersect([this.config.required,i?this.config.optional:E.Partial(this.config.optional)]),this.defaultProperties=()=>P$(this.config.optional,{}),this.cloneMerge=i=>{const a=i instanceof mn?i.config:i;return new mn({required:E.Object({...this.config.required.properties,...a.required.properties}),optional:E.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 OC=E.Object({name:E.String(),url:E.String(),apiUrl:E.Optional(E.String())}),az=E.Object({http:E.Array(E.String()),webSocket:E.Optional(E.Array(E.String()))}),FC=E.Unsafe(az),oz=E.Object({name:E.String(),symbol:E.String({minLength:2,maxLength:6}),decimals:E.Number()}),sz=new mn({required:E.Object({name:E.String(),type:E.Literal(Ut.EVM),chainId:E.Number(),nativeCurrency:oz,rpcUrls:E.Intersect([E.Record(E.String(),FC),E.Object({default:FC})])}),optional:E.Object({blockExplorers:Ie.Nullable(E.Intersect([E.Record(E.String(),OC),E.Object({default:OC})]),{default:null}),sourceId:Ie.Nullable(E.Number(),{default:null}),testnet:E.Boolean({default:!1})})}),uz=E.Union([E.Literal("preview"),E.Literal("preprod"),E.Literal("mainnet"),E.Literal("yaci")]),cz=new mn({required:E.Object({name:E.String(),type:E.Literal(Ut.CARDANO),network:uz}),optional:E.Object({})}),lz=new mn({required:E.Object({name:E.String(),type:E.Literal(Ut.MINA),networkId:E.String()}),optional:E.Object({})}),Uv=Ie.HexString0x({maxLength:66,minLength:66}),fz=new mn({required:E.Object({name:E.String(),type:E.Literal(Ut.SUBSTRATE),genesisHash:Uv}),optional:E.Object({})}),dz=new mn({required:E.Object({name:E.String(),type:E.Literal(Ut.AVAIL),genesisHash:Uv}),optional:E.Object({})}),hz=new mn({required:E.Object({name:E.String(),type:E.Literal(Ut.MIDNIGHT),networkId:E.Number(),genesisHash:Uv}),optional:E.Object({})});var Ic={},BC;function pz(){if(BC)return Ic;BC=1,Object.defineProperty(Ic,"__esModule",{value:!0}),Ic.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 Ic.default=e,Ic}pz();const yz=E.RegExp("^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"),gz=new mn({required:E.Object({name:E.String(),type:E.Literal(Ut.ALGORAND),genesisHash:yz}),optional:E.Object({})});E.Object({name:E.String(),url:E.String(),apiUrl:E.Optional(E.String())});const mz=E.Object({http:E.Array(E.String()),webSocket:E.Optional(E.Array(E.String()))});E.Unsafe(mz);E.Object({name:E.String(),symbol:E.String({minLength:2,maxLength:6}),decimals:E.Number()});const Az=new mn({required:E.Object({name:E.String(),type:E.Literal(Ut.NTP),startTime:E.Number(),blockTimeMS:E.Number()}),optional:E.Object({servers:E.Array(E.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:E.Object({name:E.String()}),optional:E.Object({})}),bu=new mn({required:E.Object({pollingInterval:Ie.IntervalMs()}),optional:E.Object({})}),ea=new mn({required:E.Object({startBlockHeight:Ie.BlockNumber()}),optional:E.Object({stopBlockHeight:Ie.Nullable(Ie.BlockNumber(),{default:null})})}),wh=new mn({required:E.Object({startSlot:Ie.AbsoluteSlotNumber()}),optional:E.Object({stopSlot:Ie.Nullable(Ie.AbsoluteSlotNumber(),{default:null})})});new mn({required:E.Object({startTimestamp:Ie.TimestampMs()}),optional:E.Object({stopTimestamp:Ie.Nullable(Ie.TimestampMs(),{default:null})})});const bz=new mn({required:E.Object({abi:Ie.EvmAbiEvent}),optional:E.Object({})}),vz=e=>E.Number({default:e}),xz=e=>Ie.IntervalMs({default:e});function Ll(e,t,i={}){let a=e*t;return i.factor!=null&&(a*=i.factor),i.absolute!=null&&(a+=i.absolute),{confirmationDepth:vz(e),delayMs:xz(a)}}const vu={internal:{},payload:{mainchain:E.Object({blockNumber:Ie.Nullable(Ie.BlockNumber()),timestamp:Ie.Nullable(Ie.TimestampMs())})}};function ko(...e){return E.Object({internal:E.Object(Object.assign({},...e.map(t=>t.internal))),payload:E.Object(Object.assign({},...e.map(t=>t.payload)))})}const Ez=mr.cloneMerge(bu).cloneMerge(ea).cloneMerge({required:E.Object({chainUri:E.String()}),optional:E.Object({stepSize:E.Number({default:1e3})})}),wz={internal:{},payload:{primitiveName:E.String(),caip2:Ie.Caip2,ownChain:E.Object({blockNumber:Ie.BlockNumber()}),transactionHash:Ie.Evm.TxHash,transactionIndex:E.Number(),logIndex:E.Number(),contractAddress:Ie.Evm.Address}},Iz=Ez.cloneMerge({required:E.Object({type:E.Literal(Je.EVM_RPC_PARALLEL),confirmationDepth:E.Number()}),optional:E.Object({delayMs:Ie.IntervalMs({default:2*1e3})})}),Sz=ko(vu,wz);E.Unsafe(E.String());const Cz=Ie.SerializeObjAsJson(),Oz=mr.cloneMerge(bu).cloneMerge(wh).cloneMerge({required:E.Object({name:E.String(),carpUrl:E.String()}),optional:E.Object({stepSize:E.Number({default:1e3}),paginationLimit:E.Number({default:50})})}),Fz={internal:{cursor:Cz},payload:{primitiveName:E.String(),caip2:Ie.Caip2,ownChain:E.Object({absoluteSlotNumber:Ie.AbsoluteSlotNumber()}),transactionHash:Ie.Cardano.TxHash}},Bz=20*1e3,Rz=5,Tz=Oz.cloneMerge({required:E.Object({type:E.Literal(Je.CARDANO_CARP_PARALLEL)}),optional:E.Object({...Ll(Rz,Bz,{factor:2,absolute:0})})}),_z=ko(vu,Fz),Dz=Ie.Mina.TxHash,Uz=mr.cloneMerge(bu).cloneMerge(ea).cloneMerge({required:E.Object({name:E.String(),archiveConnectionString:E.String()}),optional:E.Object({stepSize:E.Number({default:1e3}),paginationLimit:E.Number({default:50})})}),Mz={internal:{cursor:Dz},payload:{primitiveName:E.String(),caip2:Ie.Caip2,ownChain:E.Object({blockNumber:Ie.BlockNumber()}),transactionHash:Ie.Mina.TxHash,contractAddress:Ie.Mina.Address}},jz=180*1e3,Pz=2,Nz=Uz.cloneMerge({required:E.Object({type:E.Literal(Je.MINA_PARALLEL)}),optional:E.Object({...Ll(Pz,jz,{factor:2,absolute:0})})}),Lz=ko(vu,Mz),qz=mr.cloneMerge(bu).cloneMerge(ea).cloneMerge({required:E.Object({name:E.String(),rpc:E.String(),lightClient:E.String()}),optional:E.Object({blockGroupSize:E.Number({default:100}),stepSize:E.Number({default:1e3})})}),$z={internal:{},payload:{primitiveName:E.String(),caip2:Ie.Caip2,ownChain:E.Object({blockNumber:Ie.BlockNumber()}),extrinsicIndex:E.Number()}},RC=20*1e3,Hz=3,zz=qz.cloneMerge({required:E.Object({type:E.Literal(Je.AVAIL_PARALLEL)}),optional:E.Object({...Ll(Hz,RC,{absolute:RC})})}),Gz=ko(vu,$z),Qz=mr.cloneMerge(bu).cloneMerge(ea).cloneMerge({required:E.Object({indexer:E.String()}),optional:E.Object({indexerWS:Ie.Nullable(E.String(),{default:null}),stepSize:E.Number({default:1e3}),paginationLimit:E.Number({default:50})})}),kz={internal:{},payload:{primitiveName:E.String(),caip2:Ie.Caip2,ownChain:E.Object({blockNumber:Ie.BlockNumber()}),transactionHash:Ie.Midnight.TxHash}},Vz=6*1e3,Kz=3,Yz=Qz.cloneMerge({required:E.Object({type:E.Literal(Je.MIDNIGHT_PARALLEL)}),optional:E.Object({...Ll(Kz,Vz,{absolute:2*1e3})})}),Xz=ko(vu,kz),Zz=mr.cloneMerge(wh).cloneMerge({required:E.Object({name:E.String(),rpcUrl:E.String()}),optional:E.Object({})}),Jz={internal:{},payload:{primitiveName:E.String(),caip2:Ie.Caip2,ownChain:E.Object({absoluteSlotNumber:Ie.AbsoluteSlotNumber()}),transactionHash:Ie.Cardano.TxHash}},Wz=20*1e3,eG=5,tG=Zz.cloneMerge({required:E.Object({type:E.Literal(Je.CARDANO_UTXORPC_PARALLEL)}),optional:E.Object({...Ll(eG,Wz,{factor:2,absolute:0})})}),nG=ko(vu,Jz);var Mv=(e=>(e.EMULATED="emulated",e))(Mv||{});const rG=new mn({required:E.Object({name:E.String(),blockTimeMs:Ie.IntervalMs(),type:E.Literal(Mv.EMULATED)}),optional:E.Object({})});Mv.EMULATED+"";const iG=mr.cloneMerge(bu).cloneMerge(ea).cloneMerge({required:E.Object({}),optional:E.Object({stepSize:E.Number({default:1e3})})}),aG={internal:{},payload:{ownChain:E.Object({blockNumber:Ie.BlockNumber()})}},oG=iG.cloneMerge({required:E.Object({type:E.Literal(Je.NTP_MAIN)}),optional:E.Object({})}),sG=ko(aG);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 uG={[Je.NTP_MAIN]:sG,[Je.EVM_RPC_PARALLEL]:Sz,[Je.CARDANO_CARP_PARALLEL]:_z,[Je.CARDANO_UTXORPC_PARALLEL]:nG,[Je.MINA_PARALLEL]:Lz,[Je.AVAIL_PARALLEL]:Gz,[Je.MIDNIGHT_PARALLEL]:Xz};function cG(e,t){return E.Intersect([t,E.Object({name:E.String(),type:E.Literal(e)})])}Object.entries(uG).map(([e,t])=>cG(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 Vo=mr.cloneMerge(ea).cloneMerge(bz);Vo.cloneMerge({required:E.Object({type:E.Literal(je.EvmRpcPaimaL2),contractAddress:Ie.Evm.Address}),optional:E.Object({})});Vo.cloneMerge({required:E.Object({type:E.Literal(je.EvmRpcERC20),contractAddress:Ie.Evm.Address}),optional:E.Object({scheduledPrefix:E.String()})});const lG=Vo.cloneMerge({required:E.Object({type:E.Literal(je.EvmRpcERC721),contractAddress:Ie.Evm.Address,scheduledPrefix:E.String(),burnScheduledPrefix:E.Optional(E.String())}),optional:E.Object({})});Vo.cloneMerge({required:E.Object({type:E.Literal(je.EvmRpcERC1155),contractAddress:Ie.Evm.Address,scheduledPrefix:E.Optional(E.String()),burnScheduledPrefix:E.Optional(E.String())}),optional:E.Object({})});const fG=Vo.cloneMerge({required:E.Object({type:E.Literal(je.EvmRpcGeneric),contractAddress:Ie.Evm.Address,abi:Ie.EvmAbiEvent,scheduledPrefix:E.String()}),optional:E.Object({})});Vo.cloneMerge({required:E.Object({type:E.Literal(je.EvmRpcERC6551Registry),contractAddress:E.Optional(Ie.Evm.Address),implementation:E.Optional(Ie.Evm.Address),tokenContract:E.Optional(Ie.Evm.Address),tokenId:E.Optional(Ie.Uint256),salt:E.Optional(Ie.Uint256)}),optional:E.Object({})});Vo.cloneMerge({required:E.Object({type:E.Literal(je.EvmRpcDynamicPrimitive),contractAddress:Ie.Evm.Address,abi:Ie.EvmAbiEvent,targetConfig:E.Union([E.Omit(lG.allProperties(!1),["name","startBlockHeight","stopBlockHeight","contractAddress"]),E.Omit(fG.allProperties(!1),["name","startBlockHeight","stopBlockHeight","contractAddress"])]),dynamicFields:E.Object({contractAddress:Ie.Evm.Address})}),optional:E.Object({})});const ql=mr.cloneMerge(wh);ql.cloneMerge({required:E.Object({type:E.Literal(je.CardanoCarpDelegation),pools:E.Array(Ie.Cardano.PoolId),scheduledPrefix:E.String()}),optional:E.Object({})});ql.cloneMerge({required:E.Object({type:E.Literal(je.CardanoCarpProjectedNFT),scheduledPrefix:E.Optional(E.String())}),optional:E.Object({})});ql.cloneMerge({required:E.Object({type:E.Literal(je.CardanoCarpDelayedAsset),fingerprints:E.Optional(E.Array(Ie.Cardano.Cip14Fingerprint)),policyIds:E.Optional(E.Array(Ie.Cardano.PolicyId))}),optional:E.Object({})});ql.cloneMerge({required:E.Object({type:E.Literal(je.CardanoCarpTransfer),credential:Ie.Cardano.Credential,scheduledPrefix:E.String()}),optional:E.Object({})});ql.cloneMerge({required:E.Object({type:E.Literal(je.CardanoCarpMintBurn),policyIds:E.Array(Ie.Cardano.PolicyId),scheduledPrefix:E.String()}),optional:E.Object({})});const dG=mr.cloneMerge(wh);dG.cloneMerge({required:E.Object({type:E.Literal(je.CardanoUtxorpcMatchTx),scheduledPrefix:E.String()}),optional:E.Object({})});const X3=mr.cloneMerge(ea);X3.cloneMerge({required:E.Object({type:E.Literal(je.MinaEventGeneric),address:Ie.Mina.Address,scheduledPrefix:E.String(),name:E.String()}),optional:E.Object({})});X3.cloneMerge({required:E.Object({type:E.Literal(je.MinaActionGeneric),address:Ie.Mina.Address,scheduledPrefix:E.String(),name:E.String()}),optional:E.Object({})});const hG=mr.cloneMerge(ea);hG.cloneMerge({required:E.Object({type:E.Literal(je.MidnightContractState),contractAddress:Ie.Midnight.Address,scheduledPrefix:E.String()}),optional:E.Object({})});const pG=mr.cloneMerge(ea);pG.cloneMerge({required:E.Object({type:E.Literal(je.AvailPaimaL2),contractAddress:Ie.Avail.Address,appId:E.Number()}),optional:E.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 yG=E.Object({inputData:Ie.UnknownFormat,suppliedValue:Ie.Uint256,inputNonce:Ie.HexString0x()});E.Object({primitive:E.Literal(je.AvailPaimaL2),payloadType:E.Literal(Jt.Event),payload:yG});var mo={},Li={},pd={exports:{}},L0,TC;function Z3(){return TC||(TC=1,L0=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)}}),L0}var q0,_C;function Fn(){if(_C)return q0;_C=1;var e=Z3(),t=Object.prototype.toString,i=(function(_){return function(te){var le=t.call(te);return _[le]||(_[le]=le.slice(8,-1).toLowerCase())}})(Object.create(null));function a(_){return _=_.toLowerCase(),function(le){return i(le)===_}}function s(_){return Array.isArray(_)}function c(_){return typeof _>"u"}function l(_){return _!==null&&!c(_)&&_.constructor!==null&&!c(_.constructor)&&typeof _.constructor.isBuffer=="function"&&_.constructor.isBuffer(_)}var f=a("ArrayBuffer");function y(_){var te;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?te=ArrayBuffer.isView(_):te=_&&_.buffer&&f(_.buffer),te}function h(_){return typeof _=="string"}function A(_){return typeof _=="number"}function v(_){return _!==null&&typeof _=="object"}function m(_){if(i(_)!=="object")return!1;var te=Object.getPrototypeOf(_);return te===null||te===Object.prototype}var I=a("Date"),O=a("File"),M=a("Blob"),B=a("FileList");function R(_){return t.call(_)==="[object Function]"}function U(_){return v(_)&&R(_.pipe)}function j(_){var te="[object FormData]";return _&&(typeof FormData=="function"&&_ instanceof FormData||t.call(_)===te||R(_.toString)&&_.toString()===te)}var K=a("URLSearchParams");function H(_){return _.trim?_.trim():_.replace(/^\s+|\s+$/g,"")}function ie(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function ye(_,te){if(!(_===null||typeof _>"u"))if(typeof _!="object"&&(_=[_]),s(_))for(var le=0,V=_.length;le<V;le++)te.call(null,_[le],le,_);else for(var F in _)Object.prototype.hasOwnProperty.call(_,F)&&te.call(null,_[F],F,_)}function fe(){var _={};function te(F,z){m(_[z])&&m(F)?_[z]=fe(_[z],F):m(F)?_[z]=fe({},F):s(F)?_[z]=F.slice():_[z]=F}for(var le=0,V=arguments.length;le<V;le++)ye(arguments[le],te);return _}function D(_,te,le){return ye(te,function(F,z){le&&typeof F=="function"?_[z]=e(F,le):_[z]=F}),_}function $(_){return _.charCodeAt(0)===65279&&(_=_.slice(1)),_}function k(_,te,le,V){_.prototype=Object.create(te.prototype,V),_.prototype.constructor=_,le&&Object.assign(_.prototype,le)}function Q(_,te,le){var V,F,z,oe={};te=te||{};do{for(V=Object.getOwnPropertyNames(_),F=V.length;F-- >0;)z=V[F],oe[z]||(te[z]=_[z],oe[z]=!0);_=Object.getPrototypeOf(_)}while(_&&(!le||le(_,te))&&_!==Object.prototype);return te}function re(_,te,le){_=String(_),(le===void 0||le>_.length)&&(le=_.length),le-=te.length;var V=_.indexOf(te,le);return V!==-1&&V===le}function Z(_){if(!_)return null;var te=_.length;if(c(te))return null;for(var le=new Array(te);te-- >0;)le[te]=_[te];return le}var pe=(function(_){return function(te){return _&&te instanceof _}})(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array));return q0={isArray:s,isArrayBuffer:f,isBuffer:l,isFormData:j,isArrayBufferView:y,isString:h,isNumber:A,isObject:v,isPlainObject:m,isUndefined:c,isDate:I,isFile:O,isBlob:M,isFunction:R,isStream:U,isURLSearchParams:K,isStandardBrowserEnv:ie,forEach:ye,merge:fe,extend:D,trim:H,stripBOM:$,inherits:k,toFlatObject:Q,kindOf:i,kindOfTest:a,endsWith:re,toArray:Z,isTypedArray:pe,isFileList:B},q0}var $0,DC;function J3(){if(DC)return $0;DC=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 $0=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(A,v){A===null||typeof A>"u"||(e.isArray(A)?v=v+"[]":A=[A],e.forEach(A,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 y=a.indexOf("#");y!==-1&&(a=a.slice(0,y)),a+=(a.indexOf("?")===-1?"?":"&")+l}return a},$0}var H0,UC;function gG(){if(UC)return H0;UC=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)})},H0=t,H0}var z0,MC;function mG(){if(MC)return z0;MC=1;var e=Fn();return z0=function(i,a){e.forEach(i,function(c,l){l!==a&&l.toUpperCase()===a.toUpperCase()&&(i[a]=c,delete i[l])})},z0}var G0,jC;function xu(){if(jC)return G0;jC=1;var e=Fn();function t(s,c,l,f,y){Error.call(this),this.message=s,this.name="AxiosError",c&&(this.code=c),l&&(this.config=l),f&&(this.request=f),y&&(this.response=y)}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,y,h){var A=Object.create(i);return e.toFlatObject(s,A,function(m){return m!==Error.prototype}),t.call(A,s.message,c,l,f,y),A.name=s.name,h&&Object.assign(A,h),A},G0=t,G0}var Q0,PC;function W3(){return PC||(PC=1,Q0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}),Q0}var k0,NC;function e_(){if(NC)return k0;NC=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,y){if(e.isPlainObject(f)||e.isArray(f)){if(s.indexOf(f)!==-1)throw Error("Circular reference detected in "+y);s.push(f),e.forEach(f,function(A,v){if(!e.isUndefined(A)){var m=y?y+"."+v:v,I;if(A&&!y&&typeof A=="object"){if(e.endsWith(v,"{}"))A=JSON.stringify(A);else if(e.endsWith(v,"[]")&&(I=e.toArray(A))){I.forEach(function(O){!e.isUndefined(O)&&a.append(m,c(O))});return}}l(A,m)}}),s.pop()}else a.append(y,c(f))}return l(i),a}return k0=t,k0}var V0,LC;function AG(){if(LC)return V0;LC=1;var e=xu();return V0=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))},V0}var K0,qC;function bG(){if(qC)return K0;qC=1;var e=Fn();return K0=e.isStandardBrowserEnv()?(function(){return{write:function(a,s,c,l,f,y){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),y===!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(){}}})(),K0}var Y0,$C;function vG(){return $C||($C=1,Y0=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),Y0}var X0,HC;function xG(){return HC||(HC=1,X0=function(t,i){return i?t.replace(/\/+$/,"")+"/"+i.replace(/^\/+/,""):t}),X0}var Z0,zC;function t_(){if(zC)return Z0;zC=1;var e=vG(),t=xG();return Z0=function(a,s){return a&&!e(s)?t(a,s):s},Z0}var J0,GC;function EG(){if(GC)return J0;GC=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 J0=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},J0}var W0,QC;function wG(){if(QC)return W0;QC=1;var e=Fn();return W0=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 y=e.isString(f)?c(f):f;return y.protocol===s.protocol&&y.host===s.host}})():(function(){return function(){return!0}})(),W0}var em,kC;function Ih(){if(kC)return em;kC=1;var e=xu(),t=Fn();function i(a){e.call(this,a??"canceled",e.ERR_CANCELED),this.name="CanceledError"}return t.inherits(i,e,{__CANCEL__:!0}),em=i,em}var tm,VC;function IG(){return VC||(VC=1,tm=function(t){var i=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return i&&i[1]||""}),tm}var nm,KC;function YC(){if(KC)return nm;KC=1;var e=Fn(),t=AG(),i=bG(),a=J3(),s=t_(),c=EG(),l=wG(),f=W3(),y=xu(),h=Ih(),A=IG();return nm=function(m){return new Promise(function(O,M){var B=m.data,R=m.headers,U=m.responseType,j;function K(){m.cancelToken&&m.cancelToken.unsubscribe(j),m.signal&&m.signal.removeEventListener("abort",j)}e.isFormData(B)&&e.isStandardBrowserEnv()&&delete R["Content-Type"];var H=new XMLHttpRequest;if(m.auth){var ie=m.auth.username||"",ye=m.auth.password?unescape(encodeURIComponent(m.auth.password)):"";R.Authorization="Basic "+btoa(ie+":"+ye)}var fe=s(m.baseURL,m.url);H.open(m.method.toUpperCase(),a(fe,m.params,m.paramsSerializer),!0),H.timeout=m.timeout;function D(){if(H){var Q="getAllResponseHeaders"in H?c(H.getAllResponseHeaders()):null,re=!U||U==="text"||U==="json"?H.responseText:H.response,Z={data:re,status:H.status,statusText:H.statusText,headers:Q,config:m,request:H};t(function(_){O(_),K()},function(_){M(_),K()},Z),H=null}}if("onloadend"in H?H.onloadend=D:H.onreadystatechange=function(){!H||H.readyState!==4||H.status===0&&!(H.responseURL&&H.responseURL.indexOf("file:")===0)||setTimeout(D)},H.onabort=function(){H&&(M(new y("Request aborted",y.ECONNABORTED,m,H)),H=null)},H.onerror=function(){M(new y("Network Error",y.ERR_NETWORK,m,H,H)),H=null},H.ontimeout=function(){var re=m.timeout?"timeout of "+m.timeout+"ms exceeded":"timeout exceeded",Z=m.transitional||f;m.timeoutErrorMessage&&(re=m.timeoutErrorMessage),M(new y(re,Z.clarifyTimeoutError?y.ETIMEDOUT:y.ECONNABORTED,m,H)),H=null},e.isStandardBrowserEnv()){var $=(m.withCredentials||l(fe))&&m.xsrfCookieName?i.read(m.xsrfCookieName):void 0;$&&(R[m.xsrfHeaderName]=$)}"setRequestHeader"in H&&e.forEach(R,function(re,Z){typeof B>"u"&&Z.toLowerCase()==="content-type"?delete R[Z]:H.setRequestHeader(Z,re)}),e.isUndefined(m.withCredentials)||(H.withCredentials=!!m.withCredentials),U&&U!=="json"&&(H.responseType=m.responseType),typeof m.onDownloadProgress=="function"&&H.addEventListener("progress",m.onDownloadProgress),typeof m.onUploadProgress=="function"&&H.upload&&H.upload.addEventListener("progress",m.onUploadProgress),(m.cancelToken||m.signal)&&(j=function(Q){H&&(M(!Q||Q&&Q.type?new h:Q),H.abort(),H=null)},m.cancelToken&&m.cancelToken.subscribe(j),m.signal&&(m.signal.aborted?j():m.signal.addEventListener("abort",j))),B||(B=null);var k=A(fe);if(k&&["http","https","file"].indexOf(k)===-1){M(new y("Unsupported protocol "+k+":",y.ERR_BAD_REQUEST,m));return}H.send(B)})},nm}var rm,XC;function SG(){return XC||(XC=1,rm=null),rm}var im,ZC;function jv(){if(ZC)return im;ZC=1;var e=Fn(),t=mG(),i=xu(),a=W3(),s=e_(),c={"Content-Type":"application/x-www-form-urlencoded"};function l(A,v){!e.isUndefined(A)&&e.isUndefined(A["Content-Type"])&&(A["Content-Type"]=v)}function f(){var A;return(typeof XMLHttpRequest<"u"||typeof it<"u"&&Object.prototype.toString.call(it)==="[object process]")&&(A=YC()),A}function y(A,v,m){if(e.isString(A))try{return(v||JSON.parse)(A),e.trim(A)}catch(I){if(I.name!=="SyntaxError")throw I}return(m||JSON.stringify)(A)}var h={transitional:a,adapter:f(),transformRequest:[function(v,m){if(t(m,"Accept"),t(m,"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(m,"application/x-www-form-urlencoded;charset=utf-8"),v.toString();var I=e.isObject(v),O=m&&m["Content-Type"],M;if((M=e.isFileList(v))||I&&O==="multipart/form-data"){var B=this.env&&this.env.FormData;return s(M?{"files[]":v}:v,B&&new B)}else if(I||O==="application/json")return l(m,"application/json"),y(v);return v}],transformResponse:[function(v){var m=this.transitional||h.transitional,I=m&&m.silentJSONParsing,O=m&&m.forcedJSONParsing,M=!I&&this.responseType==="json";if(M||O&&e.isString(v)&&v.length)try{return JSON.parse(v)}catch(B){if(M)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:SG()},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)}),im=h,im}var am,JC;function CG(){if(JC)return am;JC=1;var e=Fn(),t=jv();return am=function(a,s,c){var l=this||t;return e.forEach(c,function(y){a=y.call(l,a,s)}),a},am}var om,WC;function n_(){return WC||(WC=1,om=function(t){return!!(t&&t.__CANCEL__)}),om}var sm,eO;function OG(){if(eO)return sm;eO=1;var e=Fn(),t=CG(),i=n_(),a=jv(),s=Ih();function c(l){if(l.cancelToken&&l.cancelToken.throwIfRequested(),l.signal&&l.signal.aborted)throw new s}return sm=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(A){delete f.headers[A]});var y=f.adapter||a.adapter;return y(f).then(function(A){return c(f),A.data=t.call(f,A.data,A.headers,f.transformResponse),A},function(A){return i(A)||(c(f),A&&A.response&&(A.response.data=t.call(f,A.response.data,A.response.headers,f.transformResponse))),Promise.reject(A)})},sm}var um,tO;function r_(){if(tO)return um;tO=1;var e=Fn();return um=function(i,a){a=a||{};var s={};function c(v,m){return e.isPlainObject(v)&&e.isPlainObject(m)?e.merge(v,m):e.isPlainObject(m)?e.merge({},m):e.isArray(m)?m.slice():m}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 y(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 A={url:f,method:f,data:f,baseURL:y,transformRequest:y,transformResponse:y,paramsSerializer:y,timeout:y,timeoutMessage:y,withCredentials:y,adapter:y,responseType:y,xsrfCookieName:y,xsrfHeaderName:y,onUploadProgress:y,onDownloadProgress:y,decompress:y,maxContentLength:y,maxBodyLength:y,beforeRedirect:y,transport:y,httpAgent:y,httpsAgent:y,cancelToken:y,socketPath:y,responseEncoding:y,validateStatus:h};return e.forEach(Object.keys(i).concat(Object.keys(a)),function(m){var I=A[m]||l,O=I(m);e.isUndefined(O)&&I!==h||(s[m]=O)}),s},um}var cm,nO;function i_(){return nO||(nO=1,cm={version:"0.27.2"}),cm}var lm,rO;function FG(){if(rO)return lm;rO=1;var e=i_().version,t=xu(),i={};["object","boolean","number","function","string","symbol"].forEach(function(c,l){i[c]=function(y){return typeof y===c||"a"+(l<1?"n ":" ")+c}});var a={};i.transitional=function(l,f,y){function h(A,v){return"[Axios v"+e+"] Transitional option '"+A+"'"+v+(y?". "+y:"")}return function(A,v,m){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(A,v,m):!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 y=Object.keys(c),h=y.length;h-- >0;){var A=y[h],v=l[A];if(v){var m=c[A],I=m===void 0||v(m,A,c);if(I!==!0)throw new t("option "+A+" must be "+I,t.ERR_BAD_OPTION_VALUE);continue}if(f!==!0)throw new t("Unknown option "+A,t.ERR_BAD_OPTION)}}return lm={assertOptions:s,validators:i},lm}var fm,iO;function BG(){if(iO)return fm;iO=1;var e=Fn(),t=J3(),i=gG(),a=OG(),s=r_(),c=t_(),l=FG(),f=l.validators;function y(h){this.defaults=h,this.interceptors={request:new i,response:new i}}return y.prototype.request=function(A,v){typeof A=="string"?(v=v||{},v.url=A):v=A||{},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 m=v.transitional;m!==void 0&&l.assertOptions(m,{silentJSONParsing:f.transitional(f.boolean),forcedJSONParsing:f.transitional(f.boolean),clarifyTimeoutError:f.transitional(f.boolean)},!1);var I=[],O=!0;this.interceptors.request.forEach(function(ie){typeof ie.runWhen=="function"&&ie.runWhen(v)===!1||(O=O&&ie.synchronous,I.unshift(ie.fulfilled,ie.rejected))});var M=[];this.interceptors.response.forEach(function(ie){M.push(ie.fulfilled,ie.rejected)});var B;if(!O){var R=[a,void 0];for(Array.prototype.unshift.apply(R,I),R=R.concat(M),B=Promise.resolve(v);R.length;)B=B.then(R.shift(),R.shift());return B}for(var U=v;I.length;){var j=I.shift(),K=I.shift();try{U=j(U)}catch(H){K(H);break}}try{B=a(U)}catch(H){return Promise.reject(H)}for(;M.length;)B=B.then(M.shift(),M.shift());return B},y.prototype.getUri=function(A){A=s(this.defaults,A);var v=c(A.baseURL,A.url);return t(v,A.params,A.paramsSerializer)},e.forEach(["delete","get","head","options"],function(A){y.prototype[A]=function(v,m){return this.request(s(m||{},{method:A,url:v,data:(m||{}).data}))}}),e.forEach(["post","put","patch"],function(A){function v(m){return function(O,M,B){return this.request(s(B||{},{method:A,headers:m?{"Content-Type":"multipart/form-data"}:{},url:O,data:M}))}}y.prototype[A]=v(),y.prototype[A+"Form"]=v(!0)}),fm=y,fm}var dm,aO;function RG(){if(aO)return dm;aO=1;var e=Ih();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(y){s.subscribe(y),l=y}).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}},dm=t,dm}var hm,oO;function TG(){return oO||(oO=1,hm=function(t){return function(a){return t.apply(null,a)}}),hm}var pm,sO;function _G(){if(sO)return pm;sO=1;var e=Fn();return pm=function(i){return e.isObject(i)&&i.isAxiosError===!0},pm}var uO;function DG(){if(uO)return pd.exports;uO=1;var e=Fn(),t=Z3(),i=BG(),a=r_(),s=jv();function c(f){var y=new i(f),h=t(i.prototype.request,y);return e.extend(h,i.prototype,y),e.extend(h,y),h.create=function(v){return c(a(f,v))},h}var l=c(s);return l.Axios=i,l.CanceledError=Ih(),l.CancelToken=RG(),l.isCancel=n_(),l.VERSION=i_().version,l.toFormData=e_(),l.AxiosError=xu(),l.Cancel=l.CanceledError,l.all=function(y){return Promise.all(y)},l.spread=TG(),l.isAxiosError=_G(),pd.exports=l,pd.exports.default=l,pd.exports}var ym,cO;function UG(){return cO||(cO=1,ym=DG()),ym}var lO;function a_(){if(lO)return Li;lO=1;var e=Li&&Li.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(Li,"__esModule",{value:!0}),Li.getErrorResponse=Li.query=void 0;const t=e(UG());async function i(s,c,l){return(await t.default.post(`${s}/${c}`,l)).data}Li.query=i;function a(s){if(s.response==null)throw new Error("Unexpected null response");return s.response}return Li.getErrorResponse=a,Li}var Nn={},gm={},fO;function o_(){return fO||(fO=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={}))})(gm)),gm}var mm,dO;function MG(){if(dO)return mm;dO=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 mm=e,mm}var Am,hO;function Sh(){if(hO)return Am;hO=1;function e(t,i){return t===i||t!==t&&i!==i}return Am=e,Am}var bm,pO;function s_(){if(pO)return bm;pO=1;var e=typeof Hi=="object"&&Hi&&Hi.Object===Object&&Hi;return bm=e,bm}var vm,yO;function Eu(){if(yO)return vm;yO=1;var e=s_(),t=typeof self=="object"&&self&&self.Object===Object&&self,i=e||t||Function("return this")();return vm=i,vm}var xm,gO;function u_(){if(gO)return xm;gO=1;var e=Eu(),t=e.Symbol;return xm=t,xm}var Em,mO;function jG(){if(mO)return Em;mO=1;var e=u_(),t=Object.prototype,i=t.hasOwnProperty,a=t.toString,s=e?e.toStringTag:void 0;function c(l){var f=i.call(l,s),y=l[s];try{l[s]=void 0;var h=!0}catch{}var A=a.call(l);return h&&(f?l[s]=y:delete l[s]),A}return Em=c,Em}var wm,AO;function PG(){if(AO)return wm;AO=1;var e=Object.prototype,t=e.toString;function i(a){return t.call(a)}return wm=i,wm}var Im,bO;function $l(){if(bO)return Im;bO=1;var e=u_(),t=jG(),i=PG(),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 Im=l,Im}var Sm,vO;function za(){if(vO)return Sm;vO=1;function e(t){var i=typeof t;return t!=null&&(i=="object"||i=="function")}return Sm=e,Sm}var Cm,xO;function Pv(){if(xO)return Cm;xO=1;var e=$l(),t=za(),i="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",c="[object Proxy]";function l(f){if(!t(f))return!1;var y=e(f);return y==a||y==s||y==i||y==c}return Cm=l,Cm}var Om,EO;function c_(){if(EO)return Om;EO=1;var e=9007199254740991;function t(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=e}return Om=t,Om}var Fm,wO;function Nv(){if(wO)return Fm;wO=1;var e=Pv(),t=c_();function i(a){return a!=null&&t(a.length)&&!e(a)}return Fm=i,Fm}var Bm,IO;function l_(){if(IO)return Bm;IO=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 Bm=i,Bm}var Rm,SO;function f_(){if(SO)return Rm;SO=1;var e=Sh(),t=Nv(),i=l_(),a=za();function s(c,l,f){if(!a(f))return!1;var y=typeof l;return(y=="number"?t(f)&&i(l,f.length):y=="string"&&l in f)?e(f[l],c):!1}return Rm=s,Rm}var Tm,CO;function NG(){if(CO)return Tm;CO=1;var e=/\s/;function t(i){for(var a=i.length;a--&&e.test(i.charAt(a)););return a}return Tm=t,Tm}var _m,OO;function LG(){if(OO)return _m;OO=1;var e=NG(),t=/^\s+/;function i(a){return a&&a.slice(0,e(a)+1).replace(t,"")}return _m=i,_m}var Dm,FO;function wu(){if(FO)return Dm;FO=1;function e(t){return t!=null&&typeof t=="object"}return Dm=e,Dm}var Um,BO;function qG(){if(BO)return Um;BO=1;var e=$l(),t=wu(),i="[object Symbol]";function a(s){return typeof s=="symbol"||t(s)&&e(s)==i}return Um=a,Um}var Mm,RO;function $G(){if(RO)return Mm;RO=1;var e=LG(),t=za(),i=qG(),a=NaN,s=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,f=parseInt;function y(h){if(typeof h=="number")return h;if(i(h))return a;if(t(h)){var A=typeof h.valueOf=="function"?h.valueOf():h;h=t(A)?A+"":A}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 Mm=y,Mm}var jm,TO;function HG(){if(TO)return jm;TO=1;var e=$G(),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 jm=a,jm}var Pm,_O;function zG(){if(_O)return Pm;_O=1;var e=HG();function t(i){var a=e(i),s=a%1;return a===a?s?a-s:a:0}return Pm=t,Pm}var Nm,DO;function GG(){if(DO)return Nm;DO=1;var e=MG(),t=f_(),i=zG(),a=Math.ceil,s=Math.max;function c(l,f,y){(y?t(l,f,y):f===void 0)?f=1:f=s(i(f),0);var h=l==null?0:l.length;if(!h||f<1)return[];for(var A=0,v=0,m=Array(a(h/f));A<h;)m[v++]=e(l,A,A+=f);return m}return Nm=c,Nm}var Ot={},UO;function d_(){return UO||(UO=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 Lm,MO;function QG(){if(MO)return Lm;MO=1;function e(){this.__data__=[],this.size=0}return Lm=e,Lm}var qm,jO;function Ch(){if(jO)return qm;jO=1;var e=Sh();function t(i,a){for(var s=i.length;s--;)if(e(i[s][0],a))return s;return-1}return qm=t,qm}var $m,PO;function kG(){if(PO)return $m;PO=1;var e=Ch(),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 $m=a,$m}var Hm,NO;function VG(){if(NO)return Hm;NO=1;var e=Ch();function t(i){var a=this.__data__,s=e(a,i);return s<0?void 0:a[s][1]}return Hm=t,Hm}var zm,LO;function KG(){if(LO)return zm;LO=1;var e=Ch();function t(i){return e(this.__data__,i)>-1}return zm=t,zm}var Gm,qO;function YG(){if(qO)return Gm;qO=1;var e=Ch();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 Gm=t,Gm}var Qm,$O;function Oh(){if($O)return Qm;$O=1;var e=QG(),t=kG(),i=VG(),a=KG(),s=YG();function c(l){var f=-1,y=l==null?0:l.length;for(this.clear();++f<y;){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,Qm=c,Qm}var km,HO;function XG(){if(HO)return km;HO=1;var e=Oh();function t(){this.__data__=new e,this.size=0}return km=t,km}var Vm,zO;function ZG(){if(zO)return Vm;zO=1;function e(t){var i=this.__data__,a=i.delete(t);return this.size=i.size,a}return Vm=e,Vm}var Km,GO;function JG(){if(GO)return Km;GO=1;function e(t){return this.__data__.get(t)}return Km=e,Km}var Ym,QO;function WG(){if(QO)return Ym;QO=1;function e(t){return this.__data__.has(t)}return Ym=e,Ym}var Xm,kO;function eQ(){if(kO)return Xm;kO=1;var e=Eu(),t=e["__core-js_shared__"];return Xm=t,Xm}var Zm,VO;function tQ(){if(VO)return Zm;VO=1;var e=eQ(),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 Zm=i,Zm}var Jm,KO;function nQ(){if(KO)return Jm;KO=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 Jm=i,Jm}var Wm,YO;function rQ(){if(YO)return Wm;YO=1;var e=Pv(),t=tQ(),i=za(),a=nQ(),s=/[\\^$.*+?()[\]{}|]/g,c=/^\[object .+?Constructor\]$/,l=Function.prototype,f=Object.prototype,y=l.toString,h=f.hasOwnProperty,A=RegExp("^"+y.call(h).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function v(m){if(!i(m)||t(m))return!1;var I=e(m)?A:c;return I.test(a(m))}return Wm=v,Wm}var eA,XO;function iQ(){if(XO)return eA;XO=1;function e(t,i){return t==null?void 0:t[i]}return eA=e,eA}var tA,ZO;function Lv(){if(ZO)return tA;ZO=1;var e=rQ(),t=iQ();function i(a,s){var c=t(a,s);return e(c)?c:void 0}return tA=i,tA}var nA,JO;function h_(){if(JO)return nA;JO=1;var e=Lv(),t=Eu(),i=e(t,"Map");return nA=i,nA}var rA,WO;function Fh(){if(WO)return rA;WO=1;var e=Lv(),t=e(Object,"create");return rA=t,rA}var iA,eF;function aQ(){if(eF)return iA;eF=1;var e=Fh();function t(){this.__data__=e?e(null):{},this.size=0}return iA=t,iA}var aA,tF;function oQ(){if(tF)return aA;tF=1;function e(t){var i=this.has(t)&&delete this.__data__[t];return this.size-=i?1:0,i}return aA=e,aA}var oA,nF;function sQ(){if(nF)return oA;nF=1;var e=Fh(),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 oA=s,oA}var sA,rF;function uQ(){if(rF)return sA;rF=1;var e=Fh(),t=Object.prototype,i=t.hasOwnProperty;function a(s){var c=this.__data__;return e?c[s]!==void 0:i.call(c,s)}return sA=a,sA}var uA,iF;function cQ(){if(iF)return uA;iF=1;var e=Fh(),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 uA=i,uA}var cA,aF;function lQ(){if(aF)return cA;aF=1;var e=aQ(),t=oQ(),i=sQ(),a=uQ(),s=cQ();function c(l){var f=-1,y=l==null?0:l.length;for(this.clear();++f<y;){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,cA=c,cA}var lA,oF;function fQ(){if(oF)return lA;oF=1;var e=lQ(),t=Oh(),i=h_();function a(){this.size=0,this.__data__={hash:new e,map:new(i||t),string:new e}}return lA=a,lA}var fA,sF;function dQ(){if(sF)return fA;sF=1;function e(t){var i=typeof t;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?t!=="__proto__":t===null}return fA=e,fA}var dA,uF;function Bh(){if(uF)return dA;uF=1;var e=dQ();function t(i,a){var s=i.__data__;return e(a)?s[typeof a=="string"?"string":"hash"]:s.map}return dA=t,dA}var hA,cF;function hQ(){if(cF)return hA;cF=1;var e=Bh();function t(i){var a=e(this,i).delete(i);return this.size-=a?1:0,a}return hA=t,hA}var pA,lF;function pQ(){if(lF)return pA;lF=1;var e=Bh();function t(i){return e(this,i).get(i)}return pA=t,pA}var yA,fF;function yQ(){if(fF)return yA;fF=1;var e=Bh();function t(i){return e(this,i).has(i)}return yA=t,yA}var gA,dF;function gQ(){if(dF)return gA;dF=1;var e=Bh();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 gA=t,gA}var mA,hF;function mQ(){if(hF)return mA;hF=1;var e=fQ(),t=hQ(),i=pQ(),a=yQ(),s=gQ();function c(l){var f=-1,y=l==null?0:l.length;for(this.clear();++f<y;){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,mA=c,mA}var AA,pF;function AQ(){if(pF)return AA;pF=1;var e=Oh(),t=h_(),i=mQ(),a=200;function s(c,l){var f=this.__data__;if(f instanceof e){var y=f.__data__;if(!t||y.length<a-1)return y.push([c,l]),this.size=++f.size,this;f=this.__data__=new i(y)}return f.set(c,l),this.size=f.size,this}return AA=s,AA}var bA,yF;function bQ(){if(yF)return bA;yF=1;var e=Oh(),t=XG(),i=ZG(),a=JG(),s=WG(),c=AQ();function l(f){var y=this.__data__=new e(f);this.size=y.size}return l.prototype.clear=t,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=s,l.prototype.set=c,bA=l,bA}var vA,gF;function p_(){if(gF)return vA;gF=1;var e=Lv(),t=(function(){try{var i=e(Object,"defineProperty");return i({},"",{}),i}catch{}})();return vA=t,vA}var xA,mF;function qv(){if(mF)return xA;mF=1;var e=p_();function t(i,a,s){a=="__proto__"&&e?e(i,a,{configurable:!0,enumerable:!0,value:s,writable:!0}):i[a]=s}return xA=t,xA}var EA,AF;function y_(){if(AF)return EA;AF=1;var e=qv(),t=Sh();function i(a,s,c){(c!==void 0&&!t(a[s],c)||c===void 0&&!(s in a))&&e(a,s,c)}return EA=i,EA}var wA,bF;function vQ(){if(bF)return wA;bF=1;function e(t){return function(i,a,s){for(var c=-1,l=Object(i),f=s(i),y=f.length;y--;){var h=f[t?y:++c];if(a(l[h],h,l)===!1)break}return i}}return wA=e,wA}var IA,vF;function xQ(){if(vF)return IA;vF=1;var e=vQ(),t=e();return IA=t,IA}var Bc={exports:{}};Bc.exports;var xF;function EQ(){return xF||(xF=1,(function(e,t){var i=Eu(),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 y(h,A){if(A)return h.slice();var v=h.length,m=f?f(v):new h.constructor(v);return h.copy(m),m}e.exports=y})(Bc,Bc.exports)),Bc.exports}var SA,EF;function wQ(){if(EF)return SA;EF=1;var e=Eu(),t=e.Uint8Array;return SA=t,SA}var CA,wF;function IQ(){if(wF)return CA;wF=1;var e=wQ();function t(i){var a=new i.constructor(i.byteLength);return new e(a).set(new e(i)),a}return CA=t,CA}var OA,IF;function SQ(){if(IF)return OA;IF=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 OA=t,OA}var FA,SF;function CQ(){if(SF)return FA;SF=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 FA=e,FA}var BA,CF;function OQ(){if(CF)return BA;CF=1;var e=za(),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 BA=i,BA}var RA,OF;function FQ(){if(OF)return RA;OF=1;function e(t,i){return function(a){return t(i(a))}}return RA=e,RA}var TA,FF;function g_(){if(FF)return TA;FF=1;var e=FQ(),t=e(Object.getPrototypeOf,Object);return TA=t,TA}var _A,BF;function m_(){if(BF)return _A;BF=1;var e=Object.prototype;function t(i){var a=i&&i.constructor,s=typeof a=="function"&&a.prototype||e;return i===s}return _A=t,_A}var DA,RF;function BQ(){if(RF)return DA;RF=1;var e=OQ(),t=g_(),i=m_();function a(s){return typeof s.constructor=="function"&&!i(s)?e(t(s)):{}}return DA=a,DA}var UA,TF;function RQ(){if(TF)return UA;TF=1;var e=$l(),t=wu(),i="[object Arguments]";function a(s){return t(s)&&e(s)==i}return UA=a,UA}var MA,_F;function A_(){if(_F)return MA;_F=1;var e=RQ(),t=wu(),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 MA=c,MA}var jA,DF;function b_(){if(DF)return jA;DF=1;var e=Array.isArray;return jA=e,jA}var PA,UF;function TQ(){if(UF)return PA;UF=1;var e=Nv(),t=wu();function i(a){return t(a)&&e(a)}return PA=i,PA}var Rc={exports:{}},NA,MF;function _Q(){if(MF)return NA;MF=1;function e(){return!1}return NA=e,NA}Rc.exports;var jF;function v_(){return jF||(jF=1,(function(e,t){var i=Eu(),a=_Q(),s=t&&!t.nodeType&&t,c=s&&!0&&e&&!e.nodeType&&e,l=c&&c.exports===s,f=l?i.Buffer:void 0,y=f?f.isBuffer:void 0,h=y||a;e.exports=h})(Rc,Rc.exports)),Rc.exports}var LA,PF;function DQ(){if(PF)return LA;PF=1;var e=$l(),t=g_(),i=wu(),a="[object Object]",s=Function.prototype,c=Object.prototype,l=s.toString,f=c.hasOwnProperty,y=l.call(Object);function h(A){if(!i(A)||e(A)!=a)return!1;var v=t(A);if(v===null)return!0;var m=f.call(v,"constructor")&&v.constructor;return typeof m=="function"&&m instanceof m&&l.call(m)==y}return LA=h,LA}var qA,NF;function UQ(){if(NF)return qA;NF=1;var e=$l(),t=c_(),i=wu(),a="[object Arguments]",s="[object Array]",c="[object Boolean]",l="[object Date]",f="[object Error]",y="[object Function]",h="[object Map]",A="[object Number]",v="[object Object]",m="[object RegExp]",I="[object Set]",O="[object String]",M="[object WeakMap]",B="[object ArrayBuffer]",R="[object DataView]",U="[object Float32Array]",j="[object Float64Array]",K="[object Int8Array]",H="[object Int16Array]",ie="[object Int32Array]",ye="[object Uint8Array]",fe="[object Uint8ClampedArray]",D="[object Uint16Array]",$="[object Uint32Array]",k={};k[U]=k[j]=k[K]=k[H]=k[ie]=k[ye]=k[fe]=k[D]=k[$]=!0,k[a]=k[s]=k[B]=k[c]=k[R]=k[l]=k[f]=k[y]=k[h]=k[A]=k[v]=k[m]=k[I]=k[O]=k[M]=!1;function Q(re){return i(re)&&t(re.length)&&!!k[e(re)]}return qA=Q,qA}var $A,LF;function MQ(){if(LF)return $A;LF=1;function e(t){return function(i){return t(i)}}return $A=e,$A}var Tc={exports:{}};Tc.exports;var qF;function jQ(){return qF||(qF=1,(function(e,t){var i=s_(),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 y=s&&s.require&&s.require("util").types;return y||l&&l.binding&&l.binding("util")}catch{}})();e.exports=f})(Tc,Tc.exports)),Tc.exports}var HA,$F;function x_(){if($F)return HA;$F=1;var e=UQ(),t=MQ(),i=jQ(),a=i&&i.isTypedArray,s=a?t(a):e;return HA=s,HA}var zA,HF;function E_(){if(HF)return zA;HF=1;function e(t,i){if(!(i==="constructor"&&typeof t[i]=="function")&&i!="__proto__")return t[i]}return zA=e,zA}var GA,zF;function PQ(){if(zF)return GA;zF=1;var e=qv(),t=Sh(),i=Object.prototype,a=i.hasOwnProperty;function s(c,l,f){var y=c[l];(!(a.call(c,l)&&t(y,f))||f===void 0&&!(l in c))&&e(c,l,f)}return GA=s,GA}var QA,GF;function NQ(){if(GF)return QA;GF=1;var e=PQ(),t=qv();function i(a,s,c,l){var f=!c;c||(c={});for(var y=-1,h=s.length;++y<h;){var A=s[y],v=l?l(c[A],a[A],A,c,a):void 0;v===void 0&&(v=a[A]),f?t(c,A,v):e(c,A,v)}return c}return QA=i,QA}var kA,QF;function LQ(){if(QF)return kA;QF=1;function e(t,i){for(var a=-1,s=Array(t);++a<t;)s[a]=i(a);return s}return kA=e,kA}var VA,kF;function qQ(){if(kF)return VA;kF=1;var e=LQ(),t=A_(),i=b_(),a=v_(),s=l_(),c=x_(),l=Object.prototype,f=l.hasOwnProperty;function y(h,A){var v=i(h),m=!v&&t(h),I=!v&&!m&&a(h),O=!v&&!m&&!I&&c(h),M=v||m||I||O,B=M?e(h.length,String):[],R=B.length;for(var U in h)(A||f.call(h,U))&&!(M&&(U=="length"||I&&(U=="offset"||U=="parent")||O&&(U=="buffer"||U=="byteLength"||U=="byteOffset")||s(U,R)))&&B.push(U);return B}return VA=y,VA}var KA,VF;function $Q(){if(VF)return KA;VF=1;function e(t){var i=[];if(t!=null)for(var a in Object(t))i.push(a);return i}return KA=e,KA}var YA,KF;function HQ(){if(KF)return YA;KF=1;var e=za(),t=m_(),i=$Q(),a=Object.prototype,s=a.hasOwnProperty;function c(l){if(!e(l))return i(l);var f=t(l),y=[];for(var h in l)h=="constructor"&&(f||!s.call(l,h))||y.push(h);return y}return YA=c,YA}var XA,YF;function w_(){if(YF)return XA;YF=1;var e=qQ(),t=HQ(),i=Nv();function a(s){return i(s)?e(s,!0):t(s)}return XA=a,XA}var ZA,XF;function zQ(){if(XF)return ZA;XF=1;var e=NQ(),t=w_();function i(a){return e(a,t(a))}return ZA=i,ZA}var JA,ZF;function GQ(){if(ZF)return JA;ZF=1;var e=y_(),t=EQ(),i=SQ(),a=CQ(),s=BQ(),c=A_(),l=b_(),f=TQ(),y=v_(),h=Pv(),A=za(),v=DQ(),m=x_(),I=E_(),O=zQ();function M(B,R,U,j,K,H,ie){var ye=I(B,U),fe=I(R,U),D=ie.get(fe);if(D){e(B,U,D);return}var $=H?H(ye,fe,U+"",B,R,ie):void 0,k=$===void 0;if(k){var Q=l(fe),re=!Q&&y(fe),Z=!Q&&!re&&m(fe);$=fe,Q||re||Z?l(ye)?$=ye:f(ye)?$=a(ye):re?(k=!1,$=t(fe,!0)):Z?(k=!1,$=i(fe,!0)):$=[]:v(fe)||c(fe)?($=ye,c(ye)?$=O(ye):(!A(ye)||h(ye))&&($=s(fe))):k=!1}k&&(ie.set(fe,$),K($,fe,j,H,ie),ie.delete(fe)),e(B,U,$)}return JA=M,JA}var WA,JF;function QQ(){if(JF)return WA;JF=1;var e=bQ(),t=y_(),i=xQ(),a=GQ(),s=za(),c=w_(),l=E_();function f(y,h,A,v,m){y!==h&&i(h,function(I,O){if(m||(m=new e),s(I))a(y,h,O,A,f,v,m);else{var M=v?v(l(y,O),I,O+"",y,h,m):void 0;M===void 0&&(M=I),t(y,O,M)}},c)}return WA=f,WA}var eb,WF;function I_(){if(WF)return eb;WF=1;function e(t){return t}return eb=e,eb}var tb,eB;function kQ(){if(eB)return tb;eB=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 tb=e,tb}var nb,tB;function VQ(){if(tB)return nb;tB=1;var e=kQ(),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,y=t(l.length-s,0),h=Array(y);++f<y;)h[f]=l[s+f];f=-1;for(var A=Array(s+1);++f<s;)A[f]=l[f];return A[s]=c(h),e(a,this,A)}}return nb=i,nb}var rb,nB;function KQ(){if(nB)return rb;nB=1;function e(t){return function(){return t}}return rb=e,rb}var ib,rB;function YQ(){if(rB)return ib;rB=1;var e=KQ(),t=p_(),i=I_(),a=t?function(s,c){return t(s,"toString",{configurable:!0,enumerable:!1,value:e(c),writable:!0})}:i;return ib=a,ib}var ab,iB;function XQ(){if(iB)return ab;iB=1;var e=800,t=16,i=Date.now;function a(s){var c=0,l=0;return function(){var f=i(),y=t-(f-l);if(l=f,y>0){if(++c>=e)return arguments[0]}else c=0;return s.apply(void 0,arguments)}}return ab=a,ab}var ob,aB;function ZQ(){if(aB)return ob;aB=1;var e=YQ(),t=XQ(),i=t(e);return ob=i,ob}var sb,oB;function JQ(){if(oB)return sb;oB=1;var e=I_(),t=VQ(),i=ZQ();function a(s,c){return i(t(s,c,e),s+"")}return sb=a,sb}var ub,sB;function WQ(){if(sB)return ub;sB=1;var e=JQ(),t=f_();function i(a){return e(function(s,c){var l=-1,f=c.length,y=f>1?c[f-1]:void 0,h=f>2?c[2]:void 0;for(y=a.length>3&&typeof y=="function"?(f--,y):void 0,h&&t(c[0],c[1],h)&&(y=f<3?void 0:y,f=1),s=Object(s);++l<f;){var A=c[l];A&&a(s,A,l,y)}return s})}return ub=i,ub}var cb,uB;function ek(){if(uB)return cb;uB=1;var e=QQ(),t=WQ(),i=t(function(a,s,c){e(a,s,c)});return cb=i,cb}var cB;function tk(){if(cB)return Nn;cB=1;var e=Nn&&Nn.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(Nn,"__esModule",{value:!0}),Nn.nftCborToJson=Nn.paginatedMetadataNft=Nn.paginatedProjectedNft=Nn.paginatedTransactionHistory=Nn.paginateQuery=void 0;const t=a_(),i=o_(),a=e(GG()),s=d_(),c=e(ek());async function l(m,I,O){let M=m;const B=[];let R=[];do R=await I(M),B.push(...R),M={...M,after:O(R[R.length-1])};while(R.length!==0);return B}Nn.paginateQuery=l;async function f(m,I){return{transactions:await l(I,async M=>(await(0,t.query)(m,i.Routes.transactionHistory,M)).transactions,M=>M!=null?{block:M.block.hash,tx:M.transaction.hash}:void 0)}}Nn.paginatedTransactionHistory=f;async function y(m,I){return await l(I,async M=>await(0,t.query)(m,i.Routes.projectedNftEventsRange,M),M=>M!=null?{block:M.block,tx:M.txId}:void 0)}Nn.paginatedProjectedNft=y;function h(m){var I;const O={};for(const[M,B]of m){const R=(I=O[M])!==null&&I!==void 0?I:[];R.push(B),R.length===1&&(O[M]=R)}return{assets:O}}async function A(m,I){const O=[];for(const[R,U]of Object.entries(I.assets))for(const j of U)O.push([R,j]);let M={cip25:{}};const B=await Promise.all((0,a.default)(O,s.ASSET_LIMIT.REQUEST).map(R=>(0,t.query)(m,i.Routes.metadataNft,h(R))));for(const R of B)M=(0,c.default)(M,R);return M}Nn.paginatedMetadataNft=A;function v(m,I,O,M){const B={};for(const[R,U]of Object.entries(m.cip25)){const j={};for(const[K,H]of Object.entries(U)){const ie=I.from_cbor_bytes(Yt.Buffer.from(H,"hex")),ye=O(ie,M);j[K]=ye}B[R]=j}return{cip25:B}}return Nn.nftCborToJson=v,Nn}var Ao={},lb={},lB;function nk(){return lB||(lB=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})(lb)),lb}var bo={},fb={},fB;function rk(){return fB||(fB=1,Object.defineProperty(fb,"__esModule",{value:!0})),fb}var db={},dB;function ik(){return dB||(dB=1,Object.defineProperty(db,"__esModule",{value:!0})),db}var hb={},hB;function ak(){return hB||(hB=1,Object.defineProperty(hb,"__esModule",{value:!0})),hb}var pb={},pB;function ok(){return pB||(pB=1,Object.defineProperty(pb,"__esModule",{value:!0})),pb}var yb={},yB;function sk(){return yB||(yB=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={}))})(yb)),yb}var gb={},gB;function uk(){return gB||(gB=1,Object.defineProperty(gb,"__esModule",{value:!0})),gb}var mb={},mB;function ck(){return mB||(mB=1,Object.defineProperty(mb,"__esModule",{value:!0})),mb}var Ab={},AB;function lk(){return AB||(AB=1,Object.defineProperty(Ab,"__esModule",{value:!0})),Ab}var bb={},bB;function fk(){return bB||(bB=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={}))})(bb)),bb}var vb={},vB;function dk(){return vB||(vB=1,Object.defineProperty(vb,"__esModule",{value:!0})),vb}var xb={},xB;function hk(){return xB||(xB=1,Object.defineProperty(xb,"__esModule",{value:!0})),xb}var Eb={},EB;function pk(){return EB||(EB=1,Object.defineProperty(Eb,"__esModule",{value:!0})),Eb}var wb={},wB;function yk(){return wB||(wB=1,Object.defineProperty(wb,"__esModule",{value:!0})),wb}var Ib={},IB;function gk(){return IB||(IB=1,Object.defineProperty(Ib,"__esModule",{value:!0})),Ib}var Sb={},SB;function mk(){return SB||(SB=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={}))})(Sb)),Sb}var Cb={},CB;function Ak(){return CB||(CB=1,Object.defineProperty(Cb,"__esModule",{value:!0})),Cb}var Ob={},OB;function bk(){return OB||(OB=1,Object.defineProperty(Ob,"__esModule",{value:!0})),Ob}var FB;function vk(){return FB||(FB=1,(function(e){var t=bo&&bo.__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=bo&&bo.__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(rk(),e),i(ik(),e),i(ak(),e),i(ok(),e),i(sk(),e),i(uk(),e),i(ck(),e),i(lk(),e),i(fk(),e),i(dk(),e),i(hk(),e),i(pk(),e),i(yk(),e),i(gk(),e),i(mk(),e),i(Ak(),e),i(bk(),e)})(bo)),bo}var BB;function xk(){return BB||(BB=1,(function(e){var t=Ao&&Ao.__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=Ao&&Ao.__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(d_(),e),i(nk(),e),i(o_(),e),i(vk(),e)})(Ao)),Ao}var RB;function Ek(){return RB||(RB=1,(function(e){var t=mo&&mo.__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=mo&&mo.__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(a_(),e),i(tk(),e),i(xk(),e)})(mo)),mo}var wk=Ek();const $v=E.Object({address:Ie.Cardano.Address,pool:Ie.Nullable(Ie.Cardano.PoolId),epoch:Ie.EpochNumber()});E.Object({primitive:E.Literal(je.CardanoCarpDelegation),payloadType:E.Literal(Jt.Delegate),payload:$v});const jc=E.Object({ownerAddress:Ie.Cardano.Address,actionTxId:Ie.Cardano.TxHash,actionOutputIndex:Ie.Nullable(E.Number()),previousTxHash:Ie.Nullable(Ie.Cardano.TxHash),previousTxOutputIndex:Ie.Nullable(E.Number()),policyId:Ie.Cardano.PolicyId,assetName:Ie.Cardano.AssetName,amount:Ie.Cardano.AmountLovelace,status:E.Enum(wk.ProjectedNftStatus),plutusDatum:Ie.HexStringNo0x(),forHowLong:Ie.Nullable(Ie.TimestampMsStr)});E.Object({primitive:E.Literal(je.CardanoCarpProjectedNFT),payloadType:E.Literal(Jt.Projection),payload:jc});const S_=E.Object({address:Ie.Cardano.Address,txId:Ie.Cardano.TxHash,outputIndex:E.Number(),amount:Ie.Nullable(Ie.Cardano.AmountLovelace),cip14Fingerprint:Ie.Cardano.Cip14Fingerprint,policyId:Ie.Cardano.PolicyId,assetName:Ie.Cardano.AssetName,spent:E.Boolean()});E.Object({primitive:E.Literal(je.CardanoCarpDelayedAsset),payloadType:E.Literal(Jt.Transfer),payload:S_});const Hv=E.Object({txId:Ie.Cardano.TxHash,rawTx:E.String(),inputCredentials:E.Array(Ie.Cardano.Credential),outputs:E.Array(E.Object({asset:Ie.Nullable(E.Object({policyId:Ie.Cardano.PolicyId,assetName:Ie.Cardano.AssetName})),amount:Ie.Cardano.AmountLovelace})),metadata:Ie.Nullable(E.String())});E.Object({primitive:E.Literal(je.CardanoCarpTransfer),payloadType:E.Literal(Jt.Transfer),payload:Hv});const Ik=E.Unsafe(E.Record(Ie.Cardano.AssetName,E.String())),Sk=E.Unsafe(E.Record(Ie.Cardano.PolicyId,Ik)),Ck=E.Object({policyId:Ie.Cardano.PolicyId,assetName:Ie.Cardano.AssetName}),Ok=E.Intersect([Ck,E.Object({amount:Ie.Cardano.AmountLovelace})]),TB=E.Unsafe(E.Record(Ie.Cardano.Credential,E.Array(Ok))),zv=E.Object({txId:Ie.Cardano.TxHash,metadata:Ie.Nullable(E.String()),assets:Sk,inputAddresses:TB,outputAddresses:TB});E.Object({primitive:E.Literal(je.CardanoCarpMintBurn),payloadType:E.Literal(Jt.MintOrBurn),payload:zv});const Fk=E.Object({});E.Object({primitive:E.Literal(je.CardanoUtxorpcMatchTx),payloadType:E.Literal(Jt.Event),payload:Fk});je.EvmRpcPaimaL2+"",je.EvmRpcERC20+"",je.EvmRpcERC721+"",je.EvmRpcERC1155+"",je.EvmRpcGeneric+"",je.EvmRpcERC6551Registry+"",je.EvmRpcDynamicPrimitive+"";const C_=E.Object({userAddress:Ie.Evm.Address,data:Ie.HexString0x(),value:Ie.Uint256});E.Object({primitive:E.Literal(je.EvmRpcPaimaL2),payloadType:E.Literal(Jt.PaimaL2Event),payload:C_});const Gv=E.Object({from:Ie.Evm.Address,to:Ie.Evm.Address,value:Ie.Uint256});E.Object({primitive:E.Literal(je.EvmRpcERC20),payloadType:E.Literal(Jt.Transfer),payload:Gv});const Qv=E.Object({from:Ie.Evm.Address,to:Ie.Evm.Address,tokenId:Ie.Uint256});E.Object({primitive:E.Literal(je.EvmRpcERC721),payloadType:E.Literal(Jt.Transfer),payload:Qv});const _d=E.Object({tokenId:Ie.Uint256,mintData:E.String(),from:Ie.Evm.Address});E.Object({primitive:E.Literal(je.EvmRpcERC721),payloadType:E.Literal(Jt.Mint),payload:_d});const Dd=E.Object({operator:Ie.Evm.Address,from:Ie.Evm.Address,to:Ie.Evm.Address,ids:E.Array(Ie.Uint256),values:E.Array(Ie.Uint256)});E.Object({primitive:E.Literal(je.EvmRpcERC1155),payloadType:E.Literal(Jt.Transfer),payload:Dd});const Bk=E.Any();E.Object({primitive:E.Literal(je.EvmRpcGeneric),payloadType:E.Literal(Jt.Event),payload:Bk});const O_=E.Object({accountCreated:Ie.Evm.Address,implementation:Ie.Evm.Address,chainId:Ie.Uint256,tokenContract:Ie.Evm.Address,tokenId:Ie.Uint256,salt:Ie.Uint256});E.Object({primitive:E.Literal(je.EvmRpcERC6551Registry),payloadType:E.Literal(Jt.Registry),payload:O_});const Rk=E.Union([E.Object({type:E.Literal(je.EvmRpcERC721),scheduledPrefix:E.String(),burnScheduledPrefix:E.Optional(E.String())}),E.Object({type:E.Literal(je.EvmRpcGeneric),abi:Ie.EvmAbiEvent,scheduledPrefix:E.String()})]),Tk=E.Object({contractAddress:Ie.Evm.Address,targetConfig:Rk});E.Object({primitive:E.Literal(je.EvmRpcDynamicPrimitive),payloadType:E.Literal(Jt.Event),payload:Tk});const _k=E.Recursive(e=>E.Union([E.Object({tag:E.Literal("null")}),E.Object({tag:E.Literal("cell"),content:e}),E.Object({tag:E.Literal("array"),content:E.Array(e)}),E.Object({tag:E.Literal("map"),content:E.Any()}),E.Object({tag:E.Literal("some"),value:e}),E.Object({tag:E.Literal("none")})])),F_=E.Unsafe(_k);E.Object({primitive:E.Literal(je.MidnightContractState),payloadType:E.Literal(Jt.Event),payload:F_});const Dk=E.Array(E.Array(Ie.UnknownFormat));E.Object({primitive:E.Literal(je.MinaEventGeneric),payloadType:E.Literal(Jt.Event),payload:Dk});const Uk=E.Array(E.Array(Ie.UnknownFormat));E.Object({primitive:E.Literal(je.MinaActionGeneric),payloadType:E.Literal(Jt.Event),payload:Uk});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||{});E.Object({primitive:E.Literal(je.CardanoCarpDelayedAsset),payloadType:E.Literal(Ar.Transfer),payload:S_});E.Object({primitive:E.Literal(je.CardanoCarpDelegation),payloadType:E.Literal(Ar.Transfer),payload:$v});E.Object({primitive:E.Literal(je.CardanoCarpMintBurn),payloadType:E.Literal(Ar.MintOrBurn),payload:zv});E.Object({primitive:E.Literal(je.CardanoCarpProjectedNFT),payloadType:E.Literal(Ar.ProjectedNft),payload:jc});E.Object({primitive:E.Literal(je.CardanoCarpTransfer),payloadType:E.Literal(Ar.Transfer),payload:Hv});E.Object({primitive:E.Literal(je.EvmRpcPaimaL2),payloadType:E.Literal(Ar.Event),payload:C_});E.Object({primitive:E.Literal(je.EvmRpcERC20),payloadType:E.Literal(Ar.Transfer),payload:Gv});E.Object({primitive:E.Literal(je.EvmRpcERC721),payloadType:E.Literal(Ar.Transfer),payload:Qv});E.Object({primitive:E.Literal(je.EvmRpcERC721),payloadType:E.Literal(Ar.MintOrBurn),payload:_d});E.Object({primitive:E.Literal(je.EvmRpcERC1155),payloadType:E.Literal(Ar.Transfer),payload:Dd});E.Object({primitive:E.Literal(je.EvmRpcERC6551Registry),payloadType:E.Literal(Ar.Registry),payload:O_});E.Object({primitive:E.Literal(je.MidnightContractState),payloadType:E.Literal(Ar.Event),payload:F_});G9("paima:static-config");var Fb={exports:{}},_B;function Mk(){return _B||(_B=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=Hi:c&&(s=self);for(var f=!s.JS_SHA3_NO_COMMON_JS&&!0&&e.exports,y=!s.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",h="0123456789abcdef".split(""),A=[31,7936,2031616,520093696],v=[4,1024,262144,67108864],m=[1,256,65536,16777216],I=[6,1536,393216,100663296],O=[0,8,16,24],M=[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],R=[128,256],U=["hex","buffer","arrayBuffer","array","digest"],j={128:168,256:136},K=s.JS_SHA3_NO_NODE_JS||!Array.isArray?function(w){return Object.prototype.toString.call(w)==="[object Array]"}:Array.isArray,H=y&&(s.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)?function(w){return typeof w=="object"&&w.buffer&&w.buffer.constructor===ArrayBuffer}:ArrayBuffer.isView,ie=function(w){var G=typeof w;if(G==="string")return[w,!0];if(G!=="object"||w===null)throw new Error(t);if(y&&w.constructor===ArrayBuffer)return[new Uint8Array(w),!1];if(!K(w)&&!H(w))throw new Error(t);return[w,!1]},ye=function(w){return ie(w)[0].length===0},fe=function(w){for(var G=[],Y=0;Y<w.length;++Y)G[Y]=w[Y];return G},D=function(w,G,Y){return function(W){return new J(w,G,w).update(W)[Y]()}},$=function(w,G,Y){return function(W,me){return new J(w,G,me).update(W)[Y]()}},k=function(w,G,Y){return function(W,me,de,x){return V["cshake"+w].update(W,me,de,x)[Y]()}},Q=function(w,G,Y){return function(W,me,de,x){return V["kmac"+w].update(W,me,de,x)[Y]()}},re=function(w,G,Y,W){for(var me=0;me<U.length;++me){var de=U[me];w[de]=G(Y,W,de)}return w},Z=function(w,G){var Y=D(w,G,"hex");return Y.create=function(){return new J(w,G,w)},Y.update=function(W){return Y.create().update(W)},re(Y,D,w,G)},pe=function(w,G){var Y=$(w,G,"hex");return Y.create=function(W){return new J(w,G,W)},Y.update=function(W,me){return Y.create(me).update(W)},re(Y,$,w,G)},_=function(w,G){var Y=j[w],W=k(w,G,"hex");return W.create=function(me,de,x){return ye(de)&&ye(x)?V["shake"+w].create(me):new J(w,G,me).bytepad([de,x],Y)},W.update=function(me,de,x,g){return W.create(de,x,g).update(me)},re(W,k,w,G)},te=function(w,G){var Y=j[w],W=Q(w,G,"hex");return W.create=function(me,de,x){return new ne(w,G,de).bytepad(["KMAC",x],Y).bytepad([me],Y)},W.update=function(me,de,x,g){return W.create(me,x,g).update(de)},re(W,Q,w,G)},le=[{name:"keccak",padding:m,bits:B,createMethod:Z},{name:"sha3",padding:I,bits:B,createMethod:Z},{name:"shake",padding:A,bits:R,createMethod:pe},{name:"cshake",padding:v,bits:R,createMethod:_},{name:"kmac",padding:v,bits:R,createMethod:te}],V={},F=[],z=0;z<le.length;++z)for(var oe=le[z],q=oe.bits,N=0;N<q.length;++N){var C=oe.name+"_"+q[N];if(F.push(C),V[C]=oe.createMethod(q[N],oe.padding),oe.name!=="sha3"){var P=oe.name+q[N];F.push(P),V[P]=V[C]}}function J(w,G,Y){this.blocks=[],this.s=[],this.padding=G,this.outputBits=Y,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(w<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=Y>>5,this.extraBytes=(Y&31)>>3;for(var W=0;W<50;++W)this.s[W]=0}J.prototype.update=function(w){if(this.finalized)throw new Error(i);var G=ie(w);w=G[0];for(var Y=G[1],W=this.blocks,me=this.byteCount,de=w.length,x=this.blockCount,g=0,b=this.s,S,X;g<de;){if(this.reset)for(this.reset=!1,W[0]=this.block,S=1;S<x+1;++S)W[S]=0;if(Y)for(S=this.start;g<de&&S<me;++g)X=w.charCodeAt(g),X<128?W[S>>2]|=X<<O[S++&3]:X<2048?(W[S>>2]|=(192|X>>6)<<O[S++&3],W[S>>2]|=(128|X&63)<<O[S++&3]):X<55296||X>=57344?(W[S>>2]|=(224|X>>12)<<O[S++&3],W[S>>2]|=(128|X>>6&63)<<O[S++&3],W[S>>2]|=(128|X&63)<<O[S++&3]):(X=65536+((X&1023)<<10|w.charCodeAt(++g)&1023),W[S>>2]|=(240|X>>18)<<O[S++&3],W[S>>2]|=(128|X>>12&63)<<O[S++&3],W[S>>2]|=(128|X>>6&63)<<O[S++&3],W[S>>2]|=(128|X&63)<<O[S++&3]);else for(S=this.start;g<de&&S<me;++g)W[S>>2]|=w[g]<<O[S++&3];if(this.lastByteIndex=S,S>=me){for(this.start=S-me,this.block=W[x],S=0;S<x;++S)b[S]^=W[S];ce(b),this.reset=!0}else this.start=S}return this},J.prototype.encode=function(w,G){var Y=w&255,W=1,me=[Y];for(w=w>>8,Y=w&255;Y>0;)me.unshift(Y),w=w>>8,Y=w&255,++W;return G?me.push(W):me.unshift(W),this.update(me),me.length},J.prototype.encodeString=function(w){var G=ie(w);w=G[0];var Y=G[1],W=0,me=w.length;if(Y)for(var de=0;de<w.length;++de){var x=w.charCodeAt(de);x<128?W+=1:x<2048?W+=2:x<55296||x>=57344?W+=3:(x=65536+((x&1023)<<10|w.charCodeAt(++de)&1023),W+=4)}else W=me;return W+=this.encode(W*8),this.update(w),W},J.prototype.bytepad=function(w,G){for(var Y=this.encode(G),W=0;W<w.length;++W)Y+=this.encodeString(w[W]);var me=(G-Y%G)%G,de=[];return de.length=me,this.update(de),this},J.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var w=this.blocks,G=this.lastByteIndex,Y=this.blockCount,W=this.s;if(w[G>>2]|=this.padding[G&3],this.lastByteIndex===this.byteCount)for(w[0]=w[Y],G=1;G<Y+1;++G)w[G]=0;for(w[Y-1]|=2147483648,G=0;G<Y;++G)W[G]^=w[G];ce(W)}},J.prototype.toString=J.prototype.hex=function(){this.finalize();for(var w=this.blockCount,G=this.s,Y=this.outputBlocks,W=this.extraBytes,me=0,de=0,x="",g;de<Y;){for(me=0;me<w&&de<Y;++me,++de)g=G[me],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%w===0&&(G=fe(G),ce(G),me=0)}return W&&(g=G[me],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},J.prototype.arrayBuffer=function(){this.finalize();var w=this.blockCount,G=this.s,Y=this.outputBlocks,W=this.extraBytes,me=0,de=0,x=this.outputBits>>3,g;W?g=new ArrayBuffer(Y+1<<2):g=new ArrayBuffer(x);for(var b=new Uint32Array(g);de<Y;){for(me=0;me<w&&de<Y;++me,++de)b[de]=G[me];de%w===0&&(G=fe(G),ce(G))}return W&&(b[de]=G[me],g=g.slice(0,x)),g},J.prototype.buffer=J.prototype.arrayBuffer,J.prototype.digest=J.prototype.array=function(){this.finalize();for(var w=this.blockCount,G=this.s,Y=this.outputBlocks,W=this.extraBytes,me=0,de=0,x=[],g,b;de<Y;){for(me=0;me<w&&de<Y;++me,++de)g=de<<2,b=G[me],x[g]=b&255,x[g+1]=b>>8&255,x[g+2]=b>>16&255,x[g+3]=b>>24&255;de%w===0&&(G=fe(G),ce(G))}return W&&(g=de<<2,b=G[me],x[g]=b&255,W>1&&(x[g+1]=b>>8&255),W>2&&(x[g+2]=b>>16&255)),x};function ne(w,G,Y){J.call(this,w,G,Y)}ne.prototype=new J,ne.prototype.finalize=function(){return this.encode(this.outputBits,!0),J.prototype.finalize.call(this)};var ce=function(w){var G,Y,W,me,de,x,g,b,S,X,Ae,Se,Me,se,ue,Ee,Oe,Te,Ne,qe,ze,Ge,Ye,Xe,ut,ft,ht,pt,mt,Mt,Tt,Bt,$t,jt,Pt,_t,ta,Ga,Ko,nr,kt,sn,Mr,na,Yo,Xo,Qa,ti,ra,jr,Pr,ni,Nr,Nt,ka,Va,br,Lr,Zo,Ka,Ya,Jo,bi;for(W=0;W<48;W+=2)me=w[0]^w[10]^w[20]^w[30]^w[40],de=w[1]^w[11]^w[21]^w[31]^w[41],x=w[2]^w[12]^w[22]^w[32]^w[42],g=w[3]^w[13]^w[23]^w[33]^w[43],b=w[4]^w[14]^w[24]^w[34]^w[44],S=w[5]^w[15]^w[25]^w[35]^w[45],X=w[6]^w[16]^w[26]^w[36]^w[46],Ae=w[7]^w[17]^w[27]^w[37]^w[47],Se=w[8]^w[18]^w[28]^w[38]^w[48],Me=w[9]^w[19]^w[29]^w[39]^w[49],G=Se^(x<<1|g>>>31),Y=Me^(g<<1|x>>>31),w[0]^=G,w[1]^=Y,w[10]^=G,w[11]^=Y,w[20]^=G,w[21]^=Y,w[30]^=G,w[31]^=Y,w[40]^=G,w[41]^=Y,G=me^(b<<1|S>>>31),Y=de^(S<<1|b>>>31),w[2]^=G,w[3]^=Y,w[12]^=G,w[13]^=Y,w[22]^=G,w[23]^=Y,w[32]^=G,w[33]^=Y,w[42]^=G,w[43]^=Y,G=x^(X<<1|Ae>>>31),Y=g^(Ae<<1|X>>>31),w[4]^=G,w[5]^=Y,w[14]^=G,w[15]^=Y,w[24]^=G,w[25]^=Y,w[34]^=G,w[35]^=Y,w[44]^=G,w[45]^=Y,G=b^(Se<<1|Me>>>31),Y=S^(Me<<1|Se>>>31),w[6]^=G,w[7]^=Y,w[16]^=G,w[17]^=Y,w[26]^=G,w[27]^=Y,w[36]^=G,w[37]^=Y,w[46]^=G,w[47]^=Y,G=X^(me<<1|de>>>31),Y=Ae^(de<<1|me>>>31),w[8]^=G,w[9]^=Y,w[18]^=G,w[19]^=Y,w[28]^=G,w[29]^=Y,w[38]^=G,w[39]^=Y,w[48]^=G,w[49]^=Y,se=w[0],ue=w[1],Xo=w[11]<<4|w[10]>>>28,Qa=w[10]<<4|w[11]>>>28,pt=w[20]<<3|w[21]>>>29,mt=w[21]<<3|w[20]>>>29,Ka=w[31]<<9|w[30]>>>23,Ya=w[30]<<9|w[31]>>>23,sn=w[40]<<18|w[41]>>>14,Mr=w[41]<<18|w[40]>>>14,jt=w[2]<<1|w[3]>>>31,Pt=w[3]<<1|w[2]>>>31,Ee=w[13]<<12|w[12]>>>20,Oe=w[12]<<12|w[13]>>>20,ti=w[22]<<10|w[23]>>>22,ra=w[23]<<10|w[22]>>>22,Mt=w[33]<<13|w[32]>>>19,Tt=w[32]<<13|w[33]>>>19,Jo=w[42]<<2|w[43]>>>30,bi=w[43]<<2|w[42]>>>30,Nt=w[5]<<30|w[4]>>>2,ka=w[4]<<30|w[5]>>>2,_t=w[14]<<6|w[15]>>>26,ta=w[15]<<6|w[14]>>>26,Te=w[25]<<11|w[24]>>>21,Ne=w[24]<<11|w[25]>>>21,jr=w[34]<<15|w[35]>>>17,Pr=w[35]<<15|w[34]>>>17,Bt=w[45]<<29|w[44]>>>3,$t=w[44]<<29|w[45]>>>3,Xe=w[6]<<28|w[7]>>>4,ut=w[7]<<28|w[6]>>>4,Va=w[17]<<23|w[16]>>>9,br=w[16]<<23|w[17]>>>9,Ga=w[26]<<25|w[27]>>>7,Ko=w[27]<<25|w[26]>>>7,qe=w[36]<<21|w[37]>>>11,ze=w[37]<<21|w[36]>>>11,ni=w[47]<<24|w[46]>>>8,Nr=w[46]<<24|w[47]>>>8,na=w[8]<<27|w[9]>>>5,Yo=w[9]<<27|w[8]>>>5,ft=w[18]<<20|w[19]>>>12,ht=w[19]<<20|w[18]>>>12,Lr=w[29]<<7|w[28]>>>25,Zo=w[28]<<7|w[29]>>>25,nr=w[38]<<8|w[39]>>>24,kt=w[39]<<8|w[38]>>>24,Ge=w[48]<<14|w[49]>>>18,Ye=w[49]<<14|w[48]>>>18,w[0]=se^~Ee&Te,w[1]=ue^~Oe&Ne,w[10]=Xe^~ft&pt,w[11]=ut^~ht&mt,w[20]=jt^~_t&Ga,w[21]=Pt^~ta&Ko,w[30]=na^~Xo&ti,w[31]=Yo^~Qa&ra,w[40]=Nt^~Va&Lr,w[41]=ka^~br&Zo,w[2]=Ee^~Te&qe,w[3]=Oe^~Ne&ze,w[12]=ft^~pt&Mt,w[13]=ht^~mt&Tt,w[22]=_t^~Ga&nr,w[23]=ta^~Ko&kt,w[32]=Xo^~ti&jr,w[33]=Qa^~ra&Pr,w[42]=Va^~Lr&Ka,w[43]=br^~Zo&Ya,w[4]=Te^~qe&Ge,w[5]=Ne^~ze&Ye,w[14]=pt^~Mt&Bt,w[15]=mt^~Tt&$t,w[24]=Ga^~nr&sn,w[25]=Ko^~kt&Mr,w[34]=ti^~jr&ni,w[35]=ra^~Pr&Nr,w[44]=Lr^~Ka&Jo,w[45]=Zo^~Ya&bi,w[6]=qe^~Ge&se,w[7]=ze^~Ye&ue,w[16]=Mt^~Bt&Xe,w[17]=Tt^~$t&ut,w[26]=nr^~sn&jt,w[27]=kt^~Mr&Pt,w[36]=jr^~ni&na,w[37]=Pr^~Nr&Yo,w[46]=Ka^~Jo&Nt,w[47]=Ya^~bi&ka,w[8]=Ge^~se&Ee,w[9]=Ye^~ue&Oe,w[18]=Bt^~Xe&ft,w[19]=$t^~ut&ht,w[28]=sn^~jt&_t,w[29]=Mr^~Pt&ta,w[38]=ni^~na&Xo,w[39]=Nr^~Yo&Qa,w[48]=Jo^~Nt&Va,w[49]=bi^~ka&br,w[0]^=M[W],w[1]^=M[W+1]};if(f)e.exports=V;else for(z=0;z<F.length;++z)s[F[z]]=V[F[z]]})()})(Fb)),Fb.exports}var jk=Mk();const B_=jd(jk),{keccak_256:Pk}=B_;function R_(e){return`0x${Pk(e).slice(0,40)}`}R_(`${Je.CARDANO_CARP_PARALLEL}-${je.CardanoCarpMintBurn}-${Jt.MintOrBurn}`);R_(`${Je.CARDANO_CARP_PARALLEL}-${je.CardanoCarpTransfer}-${Jt.Transfer}`);je.EvmRpcERC20+"",Us(["from","to","value"]).from(Gv),je.EvmRpcERC721+"",Us(["from","tokenId","mintData"]).from(_d),[Qv.properties.from,...Ed(["tokenId"]).from(_d)],je.EvmRpcERC1155+"",Us(["operator","from","to","ids","values"]).from(Dd),Ed(["operator","from","ids","values"]).from(Dd),je.EvmRpcERC6551Registry+"",je.EvmRpcDynamicPrimitive+"",je.EvmRpcGeneric+"",je.CardanoCarpDelegation+"",Us(["address","pool","epoch"]).from($v),je.CardanoCarpProjectedNFT+"",[...Ed(["ownerAddress","previousTxHash","previousTxOutputIndex","policyId","assetName","amount","status","forHowLong"]).from(jc),jc.properties.actionTxId,jc.properties.actionOutputIndex],je.CardanoCarpDelayedAsset+"",je.CardanoCarpTransfer+"",Us(["txId","rawTx","inputCredentials","outputs","metadata"]).from(Hv),je.CardanoCarpMintBurn+"",Us(["txId","metadata","assets","inputAddresses","outputAddresses"]).from(zv),je.CardanoUtxorpcMatchTx+"",je.MinaEventGeneric+"",je.MinaActionGeneric+"",je.MidnightContractState+"";const{keccak_256:sV}=B_;function T_(e,t,i,a){return(""+t+i+a).replace(/[^a-zA-Z0-9]/g,"-").toLocaleLowerCase()}const Nk={EVM:0};async function Lk(e,t){const i=li(t.privateKey),a=Uc({account:i,chain:Mc,transport:Dc()}),s=Date.now().toString(),c=i.address,l=Nk.EVM,f=T_(null,s,c,e),y=await a.signMessage({account:i,message:f});return{addressType:l,userAddress:c,userSignature:y,gameInput:e,millisecondTimestamp:s}}async function qk(e){const t=await fetch(Y3,{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 yd(e,t){console.log("🚀 Creating signed input for:",e);const i=await Lk(e,t);console.log("✅ Signed input created:",{...i,userSignature:i.userSignature.slice(0,10)+"..."}),console.log("📤 Sending to batcher...");const a=await qk(i);return console.log("🎉 Batcher response:",a),a}function $k(){const[e,t]=De.useState([]),[i,a]=De.useState(!0),[s,c]=De.useState(null),[l,f]=De.useState(10),[y,h]=De.useState(0),[A,v]=De.useState([void 0]),[m,I]=De.useState(!1),[O,M]=De.useState([]),[B,R]=De.useState(null),[U,j]=De.useState([]),[K,H]=De.useState(!1),[ie,ye]=De.useState(!1),[fe,D]=De.useState(!1),[$,k]=De.useState(""),[Q,re]=De.useState(""),[Z,pe]=De.useState(""),[_,te]=De.useState(null),[le,V]=De.useState(null),F=(de,x,g)=>{const b=Date.now(),S={id:b,type:de,title:x,message:g};j(X=>[...X,S]),setTimeout(()=>{j(X=>X.filter(Ae=>Ae.id!==b))},5e3)},z=de=>{j(x=>x.filter(g=>g.id!==de))},oe=()=>{const de=pR(),x=li(de),g={id:Date.now().toString(),privateKey:de,address:x.address,name:`Wallet ${O.length+1}`};M(b=>[...b,g]),R(g),F("success","Wallet Generated",`New wallet created: ${x.address.slice(0,6)}...${x.address.slice(-4)}`)},q=de=>{M(x=>x.filter(g=>g.id!==de)),(B==null?void 0:B.id)===de&&R(null)},N=async()=>{if(!B){F("error","No Wallet","Please select a wallet first");return}D(!0);try{const x=JSON.stringify(["&createAccount"]);await yd(x,B),F("success","Account Created","Successfully created account! Use the refresh button to see updated addresses.")}catch(de){F("error","Create Account Error",`Error creating account: ${de instanceof Error?de.message:"Unknown error"}`)}finally{D(!1)}},C=async()=>{if(!B){F("error","No Wallet","Please select a wallet first");return}if(!_){F("error","No Account","Please select an account ID");return}D(!0);try{const de=["&unlinkAddress",_.toString(),"","",""],x=JSON.stringify(de);await yd(x,B),F("success","Self Unlinked","Successfully unlinked self from account! Use the refresh button to see updated addresses.")}catch(de){F("error","Unlink Self Error",`Error unlinking self: ${de instanceof Error?de.message:"Unknown error"}`)}finally{D(!1)}},P=async()=>{if(!B){F("error","No Wallet","Please select a wallet first");return}if(!_){F("error","No Account","Please select an account ID");return}if(!Z.trim()){F("error","No Address","Please enter an address to unlink");return}const de=Uc({account:li(B.privateKey),chain:Mc,transport:Dc()});D(!0);const x=`unlink:${String(_)}:${Z.toString().toLowerCase().trim()}:`,g=await de.signMessage({account:li(B.privateKey),message:x});try{const b=["&unlinkAddress",_.toString(),g,Z.toString().toLowerCase().trim(),""],S=JSON.stringify(b);await yd(S,B),F("success","Address Unlinked","Successfully unlinked address from account! Use the refresh button to see updated addresses."),pe("")}catch(b){F("error","Unlink Other Error",`Error unlinking address: ${b instanceof Error?b.message:"Unknown error"}`)}finally{D(!1)}},J=async()=>{if(!B){F("error","No Wallet","Please select a wallet first");return}if(!_){F("error","No Account","Please select an account ID");return}if(!le){F("error","No Link Wallet","Please select a wallet to link");return}D(!0);try{const de=Uc({account:li(B.privateKey),chain:Mc,transport:Dc()}),x=Uc({account:li(le.privateKey),chain:Mc,transport:Dc()}),g=`link:${_}:${le.address.toString().toLowerCase().trim()}:false`,b=await de.signMessage({account:li(B.privateKey),message:g}),S=`link:${_}:${B.address.toString().toLowerCase().trim()}:false`,X=await x.signMessage({account:li(le.privateKey),message:S}),Ae=["&linkAddress",_.toString(),b,le.address.toString().toLowerCase().trim(),X,"false"],Se=JSON.stringify(Ae);await yd(Se,B),F("success","Address Linked","Successfully linked address to account! Use the refresh button to see updated addresses."),V(null)}catch(de){F("error","Link Address Error",`Error linking address: ${de instanceof Error?de.message:"Unknown error"}`)}finally{D(!1)}},ne=async()=>{try{a(!0),c(null);const de=new URL(ez);de.searchParams.set("limit",String(l));const x=A[y];x&&de.searchParams.set("after",x);const g=await fetch(de.toString());if(!g.ok)throw new Error(`HTTP error! status: ${g.status}`);const b=await g.json(),S=b.data??[];t(S),b.pagination&&(I(b.pagination.hasMore??!1),b.pagination.nextCursor&&A.length===y+1&&v(X=>[...X,b.pagination.nextCursor]))}catch(de){console.error("Error fetching addresses:",de),c(de instanceof Error?de.message:"Unknown error")}finally{a(!1)}};De.useEffect(()=>{ne()},[l,y]);const ce=e.reduce((de,x)=>{const g=de.find(b=>b.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},[]),w=[...new Set(ce.map(de=>de.account_id).filter(de=>de!==null))],G=de=>{f(Number(de.target.value)),h(0),v([void 0])},Y=()=>{m&&h(de=>de+1)},W=()=>{h(de=>Math.max(0,de-1))},me=()=>{h(0)};return i?ee.jsx("div",{className:"addresses-loading",children:ee.jsx("div",{className:"loading-text",children:"Loading addresses..."})}):s?ee.jsx("div",{className:"addresses-error",children:ee.jsxs("div",{className:"error-text",children:["Error loading addresses: ",s]})}):ee.jsxs("div",{className:"addresses-table-container",children:[ee.jsx("div",{style:{position:"fixed",top:"20px",right:"20px",zIndex:1e3,display:"flex",flexDirection:"column",gap:"10px"},children:U.map(de=>ee.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:[ee.jsxs("div",{children:[ee.jsx("div",{style:{fontWeight:"600",marginBottom:"4px"},children:de.title}),ee.jsx("div",{style:{fontSize:"14px",opacity:.9},children:de.message})]}),ee.jsx("button",{type:"button",onClick:()=>z(de.id),style:{background:"none",border:"none",color:"white",cursor:"pointer",fontSize:"18px",padding:"0",marginLeft:"12px",opacity:.7},children:"×"})]},de.id))}),ee.jsxs("div",{style:{marginBottom:"20px",padding:"20px",border:"1px solid #ddd",borderRadius:"8px",background:"#f8fafc"},children:[ee.jsxs("div",{onClick:()=>H(!K),style:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",marginBottom:K?0:"20px"},children:[ee.jsx("h3",{style:{margin:0,color:"#333"},children:"Wallet Management"}),ee.jsx("span",{style:{fontSize:"18px",color:"#666",transform:K?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.2s ease-in-out"},children:"▼"})]}),!K&&ee.jsxs(ee.Fragment,{children:[ee.jsx("div",{style:{marginBottom:"20px"},children:ee.jsx("button",{type:"button",onClick:oe,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"})}),O.length>0&&ee.jsxs("div",{style:{marginBottom:"20px"},children:[ee.jsx("h4",{style:{margin:"0 0 10px 0",color:"#333"},children:"Available Wallets:"}),ee.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:O.map(de=>ee.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:[ee.jsx("input",{type:"radio",name:"selectedWallet",checked:(B==null?void 0:B.id)===de.id,onChange:()=>R(de),style:{margin:0}}),ee.jsx("span",{style:{fontSize:"14px",fontFamily:"monospace",color:"#666",flex:"1"},children:de.name}),ee.jsx("span",{style:{fontSize:"14px",fontFamily:"monospace",color:"#666",flex:"2"},children:de.address}),ee.jsx("button",{type:"button",onClick:()=>q(de.id),style:{padding:"4px 8px",background:"#ef4444",color:"white",border:"none",borderRadius:"4px",cursor:"pointer",fontSize:"12px"},children:"Remove"})]},de.id))})]})]})]}),B&&ee.jsxs("div",{style:{marginBottom:"20px",padding:"20px",border:"1px solid #ddd",borderRadius:"8px",background:"#fef7ff"},children:[ee.jsxs("div",{onClick:()=>ye(!ie),style:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",marginBottom:ie?0:"20px"},children:[ee.jsx("h3",{style:{margin:0,color:"#333"},children:"Account Commands"}),ee.jsx("span",{style:{fontSize:"18px",color:"#666",transform:ie?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.2s ease-in-out"},children:"▼"})]}),!ie&&ee.jsxs(ee.Fragment,{children:[ee.jsxs("div",{style:{marginBottom:"20px"},children:[ee.jsx("label",{style:{display:"block",marginBottom:"10px",fontWeight:"600",fontSize:"16px"},children:"What would you like to do?"}),ee.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:[ee.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"12px",border:$==="create"?"2px solid #19b17b":"1px solid #ddd",borderRadius:"6px",background:$==="create"?"#f0fdf4":"white",cursor:"pointer"},onClick:()=>k("create"),children:[ee.jsx("input",{type:"radio",name:"action",checked:$==="create",onChange:()=>k("create"),style:{margin:0}}),ee.jsxs("div",{style:{flex:"1"},children:[ee.jsx("div",{style:{fontWeight:"600",marginBottom:"4px"},children:"1. Create new account"}),ee.jsx("div",{style:{fontSize:"14px",color:"#666",fontStyle:"italic"},children:"Can only create if not linked to any account"})]})]}),ee.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"12px",border:$==="link"?"2px solid #3b82f6":"1px solid #ddd",borderRadius:"6px",background:$==="link"?"#eff6ff":"white",cursor:"pointer"},onClick:()=>k("link"),children:[ee.jsx("input",{type:"radio",name:"action",checked:$==="link",onChange:()=>k("link"),style:{margin:0}}),ee.jsxs("div",{style:{flex:"1"},children:[ee.jsx("div",{style:{fontWeight:"600",marginBottom:"4px"},children:"2. Link Account"}),ee.jsx("div",{style:{fontSize:"14px",color:"#666",fontStyle:"italic"},children:"Only Account Primary can do this Action"})]})]}),ee.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"12px",border:$==="unlink-other"?"2px solid #f59e0b":"1px solid #ddd",borderRadius:"6px",background:$==="unlink-other"?"#fffbeb":"white",cursor:"pointer"},onClick:()=>k("unlink-other"),children:[ee.jsx("input",{type:"radio",name:"action",checked:$==="unlink-other",onChange:()=>k("unlink-other"),style:{margin:0}}),ee.jsxs("div",{style:{flex:"1"},children:[ee.jsx("div",{style:{fontWeight:"600",marginBottom:"4px"},children:"3. Unlink Account"}),ee.jsx("div",{style:{fontSize:"14px",color:"#666",fontStyle:"italic"},children:"Only Account Primary can do this Action"})]})]}),ee.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"12px",border:$==="unlink-self"?"2px solid #ef4444":"1px solid #ddd",borderRadius:"6px",background:$==="unlink-self"?"#fef2f2":"white",cursor:"pointer"},onClick:()=>k("unlink-self"),children:[ee.jsx("input",{type:"radio",name:"action",checked:$==="unlink-self",onChange:()=>k("unlink-self"),style:{margin:0}}),ee.jsxs("div",{style:{flex:"1"},children:[ee.jsx("div",{style:{fontWeight:"600",marginBottom:"4px"},children:"4. Unlink Self"}),ee.jsx("div",{style:{fontSize:"14px",color:"#666",fontStyle:"italic"},children:"Unlink self from account"})]})]})]})]}),$&&ee.jsxs("div",{style:{marginTop:"20px",padding:"20px",background:"#f8fafc",borderRadius:"8px",border:"1px solid #e2e8f0"},children:[$==="create"&&ee.jsxs("div",{children:[ee.jsx("h4",{style:{margin:"0 0 15px 0",color:"#333"},children:"Create New Account"}),ee.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."}),ee.jsx("button",{type:"button",onClick:N,disabled:fe,style:{padding:"10px 20px",background:fe?"#ccc":"linear-gradient(45deg, #19b17b, #022418)",color:"white",border:"none",borderRadius:"6px",cursor:fe?"not-allowed":"pointer",fontWeight:"600",fontSize:"14px"},children:fe?"Creating...":"Create Account"})]}),$==="link"&&ee.jsxs("div",{children:[ee.jsx("h4",{style:{margin:"0 0 15px 0",color:"#333"},children:"Link Account"}),ee.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."}),ee.jsxs("div",{style:{marginBottom:"15px"},children:[ee.jsx("label",{style:{display:"block",marginBottom:"5px",fontWeight:"600"},children:"Account ID:"}),ee.jsxs("select",{value:_||"",onChange:de=>te(de.target.value?parseInt(de.target.value):null),style:{padding:"8px",border:"1px solid #ddd",borderRadius:"4px",width:"200px"},children:[ee.jsx("option",{value:"",children:"-- Select Account ID --"}),w.map(de=>ee.jsxs("option",{value:de,children:["Account ",de]},de))]})]}),ee.jsxs("div",{style:{marginBottom:"15px"},children:[ee.jsx("label",{style:{display:"block",marginBottom:"5px",fontWeight:"600"},children:"Wallet to Link:"}),ee.jsxs("select",{value:(le==null?void 0:le.id)||"",onChange:de=>{const x=O.find(g=>g.id===de.target.value);V(x||null)},style:{padding:"8px",border:"1px solid #ddd",borderRadius:"4px",width:"300px"},children:[ee.jsx("option",{value:"",children:"-- Select a wallet to link --"}),O.filter(de=>de.id!==(B==null?void 0:B.id)).map(de=>ee.jsxs("option",{value:de.id,children:[de.name," (",de.address,")"]},de.id))]})]}),ee.jsx("button",{type:"button",onClick:J,disabled:fe||!_||!le,style:{padding:"10px 20px",background:fe||!_||!le?"#ccc":"linear-gradient(45deg, #3b82f6, #1e3a8a)",color:"white",border:"none",borderRadius:"6px",cursor:fe||!_||!le?"not-allowed":"pointer",fontWeight:"600",fontSize:"14px"},children:fe?"Linking...":"Link Wallet"})]}),$==="unlink-other"&&ee.jsxs("div",{children:[ee.jsx("h4",{style:{margin:"0 0 15px 0",color:"#333"},children:"Unlink Account"}),ee.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."}),ee.jsxs("div",{style:{marginBottom:"15px"},children:[ee.jsx("label",{style:{display:"block",marginBottom:"5px",fontWeight:"600"},children:"Account ID:"}),ee.jsxs("select",{value:_||"",onChange:de=>te(de.target.value?parseInt(de.target.value):null),style:{padding:"8px",border:"1px solid #ddd",borderRadius:"4px",width:"200px"},children:[ee.jsx("option",{value:"",children:"-- Select Account ID --"}),w.map(de=>ee.jsxs("option",{value:de,children:["Account ",de]},de))]})]}),ee.jsxs("div",{style:{marginBottom:"15px"},children:[ee.jsx("label",{style:{display:"block",marginBottom:"5px",fontWeight:"600"},children:"Address to Unlink:"}),ee.jsx("input",{type:"text",value:Z,onChange:de=>pe(de.target.value),placeholder:"Enter address to unlink",style:{padding:"8px",border:"1px solid #ddd",borderRadius:"4px",width:"300px"}})]}),ee.jsx("button",{type:"button",onClick:P,disabled:fe||!_||!Z.trim(),style:{padding:"10px 20px",background:fe||!_||!Z.trim()?"#ccc":"linear-gradient(45deg, #f59e0b, #92400e)",color:"white",border:"none",borderRadius:"6px",cursor:fe||!_||!Z.trim()?"not-allowed":"pointer",fontWeight:"600",fontSize:"14px"},children:fe?"Unlinking...":"Unlink Address"})]}),$==="unlink-self"&&ee.jsxs("div",{children:[ee.jsx("h4",{style:{margin:"0 0 15px 0",color:"#333"},children:"Unlink Self"}),ee.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."}),ee.jsxs("div",{style:{marginBottom:"15px"},children:[ee.jsx("label",{style:{display:"block",marginBottom:"5px",fontWeight:"600"},children:"Account ID:"}),ee.jsxs("select",{value:_||"",onChange:de=>te(de.target.value?parseInt(de.target.value):null),style:{padding:"8px",border:"1px solid #ddd",borderRadius:"4px",width:"200px"},children:[ee.jsx("option",{value:"",children:"-- Select Account ID --"}),w.map(de=>ee.jsxs("option",{value:de,children:["Account ",de]},de))]})]}),ee.jsx("button",{type:"button",onClick:C,disabled:fe||!_,style:{padding:"10px 20px",background:fe||!_?"#ccc":"linear-gradient(45deg, #ef4444, #7f1d1d)",color:"white",border:"none",borderRadius:"6px",cursor:fe||!_?"not-allowed":"pointer",fontWeight:"600",fontSize:"14px"},children:fe?"Unlinking...":"Unlink Self"})]})]})]})]}),ee.jsxs("div",{className:"addresses-table-wrapper",children:[ee.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"15px"},children:[ee.jsx("h3",{style:{margin:0,color:"#333"},children:"Addresses"}),ee.jsx("div",{className:"table-controls",children:ee.jsxs("label",{children:["Rows per page:",ee.jsxs("select",{value:l,onChange:G,children:[ee.jsx("option",{value:10,children:"10"}),ee.jsx("option",{value:20,children:"20"}),ee.jsx("option",{value:50,children:"50"})]})]})})]}),i&&ee.jsx("p",{children:"Loading..."}),s&&ee.jsx("p",{className:"error",children:s}),!i&&!s&&ee.jsxs(ee.Fragment,{children:[ee.jsxs("table",{className:"addresses-table",children:[ee.jsx("thead",{children:ee.jsxs("tr",{children:[ee.jsx("th",{children:"Account ID"}),ee.jsx("th",{children:"Addresses"})]})}),ee.jsx("tbody",{children:ce.map((de,x)=>ee.jsxs("tr",{className:de.hasPrimaryAddress?"has-primary-address":"",children:[ee.jsx("td",{className:"account-id-cell",children:ee.jsx("div",{className:"account-id-content",children:de.account_id??"No Account ID"})}),ee.jsx("td",{className:"addresses-cell",children:de.addresses.map((g,b)=>ee.jsxs("div",{className:`address-item ${g===de.primaryAddress?"primary-address":""}`,title:g===de.primaryAddress?`${g} (Primary)`:g,children:[g,g===de.primaryAddress&&ee.jsx("span",{className:"primary-badge",children:"Primary"})]},g))})]},de.account_id??`null-${x}`))})]}),ee.jsxs("div",{className:"pagination-controls",children:[ee.jsx("button",{type:"button",onClick:me,disabled:y===0,children:"First"}),ee.jsx("button",{type:"button",onClick:W,disabled:y===0,children:"Previous"}),ee.jsx("button",{type:"button",onClick:Y,disabled:!m||e.length<l,children:"Next"})]})]})]}),ce.length===0&&ee.jsx("div",{className:"no-addresses",children:ee.jsx("div",{className:"no-data-text",children:"No addresses found"})}),ee.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 Hk({latestBlock:e,isConnected:t}){const[i,a]=De.useState(!1),[s,c]=De.useState(!1),[l,f]=De.useState(!1),[y,h]=De.useState(!1),A=()=>{a(!0)},v=()=>{a(!1)},m=()=>{c(!0)},I=()=>{c(!1)},O=()=>{f(!0)},M=()=>{f(!1)},B=()=>{h(!0)},R=()=>{h(!1)};return ee.jsxs(ee.Fragment,{children:[ee.jsxs("header",{className:"header",children:[ee.jsx("h1",{className:"title",children:"Paima Explorer"}),ee.jsxs("div",{className:"header-right",children:[ee.jsx("button",{type:"button",className:"batcher-api-button",onClick:A,children:"Batcher API"}),ee.jsx("button",{type:"button",className:"node-api-button",onClick:m,children:"Paima Engine Node API"}),ee.jsx("button",{type:"button",className:"documentation-button",onClick:O,children:"Documentation"}),ee.jsx("button",{type:"button",className:"addresses-button",onClick:B,children:"Addresses"}),ee.jsxs("div",{className:"block-info",children:[ee.jsx("span",{children:"Latest Block:"}),ee.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"})]})]})]}),ee.jsx(ed,{isOpen:i,onClose:v,title:"Batcher API Documentation",className:"api",url:IC,children:ee.jsx("div",{className:"documentation-content",children:ee.jsx("iframe",{src:IC,className:"documentation-iframe",title:"Batcher API Documentation"})})}),ee.jsx(ed,{isOpen:s,onClose:I,title:"Paima Engine Node API Documentation",className:"api",url:SC,children:ee.jsx("div",{className:"documentation-content",children:ee.jsx("iframe",{src:SC,className:"documentation-iframe",title:"Paima Engine Node API Documentation"})})}),ee.jsx(ed,{className:"docs",isOpen:l,onClose:M,title:"Documentation",url:CC,children:ee.jsx("div",{className:"documentation-content",children:ee.jsx("iframe",{src:CC,className:"documentation-iframe",title:"Documentation"})})}),ee.jsx(ed,{className:"addresses",isOpen:y,onClose:R,title:"Addresses",children:ee.jsx($k,{})})]})}function zk(e){return e.toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})}function Gk({block:e,isNew:t=!1}){const[i,a]=De.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 ee.jsxs("div",{className:`block-item ${t?"new-block":""}`,onClick:s,style:{backgroundColor:i?"rgba(76, 175, 80, 0.2)":void 0,cursor:"pointer"},children:[ee.jsxs("div",{className:"block-number",children:["Block #",e.number.toLocaleString()]}),ee.jsx("div",{className:"block-hash",children:e.hash}),ee.jsx("div",{className:"block-timestamp",children:zk(e.timestamp)})]})}function Qk({title:e,blockTime:t,blocks:i,isMainColumn:a=!1,newBlockIndex:s}){const c=i.filter((l,f,y)=>f===y.findIndex(h=>h.number===l.number&&h.hash===l.hash));return ee.jsxs("div",{className:`column ${a?"main-column":""}`,children:[ee.jsx("h2",{className:"column-title",children:e}),ee.jsxs("div",{className:"block-time",children:["Block Time: ",ee.jsx("span",{children:t})]}),ee.jsx("div",{className:"blocks-list",children:c.map((l,f)=>ee.jsx(Gk,{block:l,isNew:s===f},`${f}-${l.number}-${l.hash}`))})]})}function kk(e,t){return`${t.blockTime/1e3}s`}function Vk({chainConfigs:e,newBlockIndices:t}){return ee.jsx("div",{className:"columns-container",children:Object.entries(e).map(([i,a])=>ee.jsx(Qk,{title:a.name,blockTime:kk(i,a),blocks:a.blocks,isMainColumn:i==="paima",newBlockIndex:t[i]},i))})}function Kk(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 Yk({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,y=(t==null?void 0:t.fields)||[],h=(t==null?void 0:t.rows)||[],A=!!i&&i.hasMore&&h.length>=i.limit,v=!!i&&i.currentPage>0,m=!i||!v&&!A;return ee.jsxs("div",{className:`primitive-table-container ${h.length>6?"has-scroll":""}`,children:[ee.jsx("h3",{className:"primitive-table-title",children:e}),f?ee.jsxs("table",{className:"primitive-table",children:[ee.jsx("thead",{children:ee.jsx("tr",{children:y.map(I=>ee.jsx("th",{children:I.name.replace(/_/g," ").toUpperCase()},I.name))})}),ee.jsx("tbody",{children:h.slice().reverse().map((I,O)=>ee.jsx("tr",{children:y.map(M=>{const B=I[M.name],R=Kk(B,M.name),U=B?B.toString():"";return ee.jsx("td",{dangerouslySetInnerHTML:{__html:R},title:U.length>30?U:void 0},M.name)})},O))})]}):ee.jsx("div",{className:"table-error",children:"No data available"}),i&&!m&&ee.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginTop:8},children:ee.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[ee.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"}),ee.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"}),ee.jsx("button",{type:"button",onClick:s,disabled:!A,style:{padding:"6px 10px",borderRadius:6,border:"1px solid #ddd",background:A?"white":"#f3f4f6",cursor:A?"pointer":"not-allowed"},children:"Next"})]})})]})}function Bb({title:e,tables:t,isLoading:i=!1,children:a,pagination:s,onPrev:c,onNext:l,onFirst:f,onLimitChange:y}){const h=Object.entries(t);return ee.jsxs("div",{className:"tables-section",children:[ee.jsx("h2",{className:"section-title",children:e}),a,ee.jsx("div",{className:"primitive-tables",children:h.length===0?ee.jsxs("div",{className:"table-error",children:["No ",e.toLowerCase()," configured"]}):h.map(([A,v])=>ee.jsx(Yk,{title:A,data:v,pagination:s==null?void 0:s[A],onPrev:c?()=>c(A):void 0,onNext:l?()=>l(A):void 0,onFirst:f?()=>f(A):void 0,onLimitChange:y?m=>y(A,m):void 0},A))})]})}const Xk={EVM:0};async function Zk(e,t){const i=li(t.privateKey),a=Uc({account:i,chain:Mc,transport:Dc()}),s=Date.now().toString(),c=i.address,l=Xk.EVM,f=T_(null,s,c,e),y=await a.signMessage({message:f});return{addressType:l,userAddress:c,userSignature:y,gameInput:e,millisecondTimestamp:s}}async function Jk(e){const t=await fetch(Y3,{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 Wk(e,t){console.log("🚀 Creating signed input for:",e);const i=await Zk(e,t);console.log("✅ Signed input created:",{...i,userSignature:i.userSignature.slice(0,10)+"..."}),console.log("📤 Sending to batcher...");const a=await Jk(i);return console.log("🎉 Batcher response:",a),a}async function eV(){try{const e=await fetch(X9);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 tV(){const[e,t]=De.useState(""),[i,a]=De.useState({}),[s,c]=De.useState(!1),[l,f]=De.useState(null),[y,h]=De.useState([]),[A,v]=De.useState(!0),[m,I]=De.useState({}),[O,M]=De.useState(!0),B=(D,$,k)=>{const Q=Date.now(),re={id:Q,type:D,title:$,message:k};h(Z=>[...Z,re]),setTimeout(()=>{h(Z=>Z.filter(pe=>pe.id!==Q))},5e3)};De.useEffect(()=>{(async()=>{try{M(!0);const $=await eV();I($)}catch{B("error","Grammar Error","Failed to load grammar from server")}finally{M(!1)}})()},[]);const R=Object.keys(m),U=()=>{const D=pR(),$=li(D),k={privateKey:D,address:$.address};f(k),B("success","Wallet Generated",`New wallet created: ${$.address.slice(0,6)}...${$.address.slice(-4)}`)},j=D=>{h($=>$.filter(k=>k.id!==D))},K=D=>{t(D),a({})},H=(D,$)=>{a(k=>({...k,[D]:$}))},ie=()=>{if(!e)return null;const D=[e],$=m[e];for(const[k,Q]of $){const re=i[k];if(re!==void 0&&re!=="")if(Q.type==="integer")D.push(parseInt(re)||0);else if(Q.type==="object")try{D.push(typeof re=="string"?JSON.parse(re):re)}catch{D.push(re)}else D.push(re)}return D},ye=(D,$)=>{const k=i[D]||"";return $.type==="integer"?ee.jsx("input",{type:"number",value:k,onChange:Q=>H(D,Q.target.value),placeholder:`Enter ${D}`,style:{padding:"8px",border:"1px solid #ccc",borderRadius:"4px",width:"200px"}}):$.type==="string"?ee.jsx("input",{type:"text",value:k,onChange:Q=>H(D,Q.target.value),placeholder:`Enter ${D}`,style:{padding:"8px",border:"1px solid #ccc",borderRadius:"4px",width:"200px"}}):$.type==="object"?ee.jsx("textarea",{value:typeof k=="string"?k:JSON.stringify(k,null,2),onChange:Q=>H(D,Q.target.value),placeholder:`Enter ${D} as JSON object`,rows:3,style:{padding:"8px",border:"1px solid #ccc",borderRadius:"4px",width:"300px",fontFamily:"monospace"}}):ee.jsx("input",{type:"text",value:k,onChange:Q=>H(D,Q.target.value),placeholder:`Enter ${D}`,style:{padding:"8px",border:"1px solid #ccc",borderRadius:"4px",width:"200px"}})},fe=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 D=ie();if(!D){B("error","Invalid Input","Failed to build JSON array");return}c(!0);try{const $=JSON.stringify(D);await Wk($,l),B("success","Success!","Successfully sent to batcher! Check console for details."),a({})}catch($){B("error","Batcher Error",`Error sending to batcher: ${$ instanceof Error?$.message:"Unknown error"}`)}finally{c(!1)}};return ee.jsxs("div",{style:{marginBottom:"20px",padding:"20px",border:"1px solid #ddd",borderRadius:"8px",position:"relative"},children:[ee.jsx("div",{style:{position:"fixed",top:"20px",right:"20px",zIndex:1e3,display:"flex",flexDirection:"column",gap:"10px"},children:y.map(D=>ee.jsxs("div",{style:{background:D.type==="success"?"#10b981":D.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:[ee.jsxs("div",{children:[ee.jsx("div",{style:{fontWeight:"600",marginBottom:"4px"},children:D.title}),ee.jsx("div",{style:{fontSize:"14px",opacity:.9},children:D.message})]}),ee.jsx("button",{onClick:()=>j(D.id),style:{background:"none",border:"none",color:"white",cursor:"pointer",fontSize:"18px",padding:"0",marginLeft:"12px",opacity:.7},children:"×"})]},D.id))}),ee.jsxs("div",{onClick:()=>v(!A),style:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",marginTop:0,marginBottom:A?0:"20px"},children:[ee.jsx("h3",{style:{margin:0,color:"#333"},children:"Batcher Input"}),ee.jsx("span",{style:{fontSize:"18px",color:"#666",transform:A?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.2s ease-in-out"},children:"▼"})]}),!A&&ee.jsxs(ee.Fragment,{children:[O&&ee.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"40px",color:"#666"},children:ee.jsxs("div",{style:{textAlign:"center"},children:[ee.jsx("div",{style:{fontSize:"16px",marginBottom:"10px"},children:"Loading grammar..."}),ee.jsx("div",{style:{fontSize:"14px",opacity:.8},children:"Fetching available input types from server"})]})}),!O&&ee.jsxs(ee.Fragment,{children:[ee.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"20px",padding:"15px",background:"#f8fafc",borderRadius:"6px",border:"1px solid #e2e8f0"},children:[ee.jsx("button",{onClick:U,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"}),ee.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[ee.jsx("span",{style:{fontSize:"14px",color:"#64748b",fontWeight:"500"},children:"Current Address:"}),ee.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"})]})]}),ee.jsxs("div",{style:{display:"flex",gap:"30px",alignItems:"flex-start"},children:[ee.jsx("div",{style:{flex:"0 0 300px"},children:ee.jsxs("div",{style:{marginBottom:"15px"},children:[ee.jsx("label",{style:{display:"block",marginBottom:"25px",fontWeight:"600"},children:"Select Type:"}),ee.jsxs("select",{value:e,onChange:D=>K(D.target.value),disabled:s,style:{padding:"8px",border:"2px solid #19b17b",borderRadius:"4px",width:"100%"},children:[ee.jsx("option",{value:"",children:"-- Select a type --"}),R.map(D=>ee.jsx("option",{value:D,children:D.charAt(0).toUpperCase()+D.slice(1)},D))]})]})}),e&&ee.jsx("div",{style:{flex:"1",minWidth:"0"},children:ee.jsxs("div",{style:{marginBottom:"15px"},children:[ee.jsxs("label",{style:{display:"block",marginBottom:"5px",fontWeight:"600"},children:["Parameters for ",e,":"]}),ee.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"15px",alignItems:"flex-end"},children:m[e].map(([D,$])=>ee.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[ee.jsxs("label",{style:{marginBottom:"5px",fontWeight:"500",fontSize:"14px"},children:[D," (",$.type,"):"]}),ye(D,$)]},D))})]})})]}),e&&ee.jsxs("div",{style:{marginTop:"20px",marginBottom:"15px"},children:[ee.jsx("label",{style:{display:"block",marginBottom:"5px",fontWeight:"500"},children:"Preview JSON Array:"}),ee.jsx("pre",{style:{background:"#f5f5f5",padding:"10px",borderRadius:"4px",border:"1px solid #ddd",fontSize:"12px",overflow:"auto"},children:JSON.stringify(ie(),null,2)})]}),ee.jsx("button",{onClick:fe,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"}),ee.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 Rb(){return"0x"+Array.from({length:64},()=>Math.floor(Math.random()*16).toString(16)).join("")}function nV(){const[e,t]=De.useState(k9),[i,a]=De.useState({}),s=De.useCallback(async A=>{const v=e[A];if(!(v.type!=="EVM"||!v.rpcEndpoint))try{const m=await fetch(v.rpcEndpoint,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jsonrpc:"2.0",method:"eth_blockNumber",params:[],id:1})});if(!m.ok)throw new Error(`HTTP error! status: ${m.status}`);const I=await m.json();if(I.error)throw new Error(I.error.message);const O=parseInt(I.result,16);t(M=>{const B={...M},R=B[A];if(O>(R.latestBlockNumber||0)&&(R.previousLatestBlockNumber=R.latestBlockNumber||0,R.latestBlockNumber=O,R.isConnected=!0,R.previousLatestBlockNumber>0)){const U=Rb(),K={number:O,hash:U,timestamp:new Date};R.blocks.some(ie=>ie.number===O&&ie.hash===U)||(R.blocks.unshift(K),R.blocks.length>20&&(R.blocks=R.blocks.slice(0,20)),a(ie=>({...ie,[A]:0})),setTimeout(()=>{a(ie=>({...ie,[A]:void 0}))},250))}return B})}catch(m){console.error(`Error fetching latest block for ${A}:`,m),t(I=>({...I,[A]:{...I[A],isConnected:!1}}))}},[e]),c=De.useCallback((A,v=e)=>{const m=v[A];if(!m)return;const I=m.rpcEndpoint?m.latestBlockNumber||0:m.currentBlock++,O=Rb(),B={number:I,hash:O,timestamp:new Date};t(R=>{const U={...R},j=U[A];return j.blocks.some(H=>H.number===I)||(j.blocks.unshift(B),j.blocks.length>20&&(j.blocks=j.blocks.slice(0,20))),U}),a(R=>({...R,[A]:0})),setTimeout(()=>{a(R=>({...R,[A]:void 0}))},250)},[e]),l=De.useCallback(()=>{t(A=>{const v={...A};return Object.keys(v).forEach(m=>{const I=v[m];if(!I.rpcEndpoint){const O=[];for(let M=-5;M<0;M++){const B=I.currentBlock+M,R=Rb(),U=new Date(Date.now()+M*I.blockTime);O.push({number:B,hash:R,timestamp:U})}I.blocks=O.reverse(),I.currentBlock=I.currentBlock+1}}),v})},[]);De.useEffect(()=>{l();const A=[];Object.keys(e).forEach(m=>{const I=e[m];if(!I.rpcEndpoint){const O=setInterval(()=>{c(m)},I.blockTime);A.push(O)}});const v=[];return Object.keys(e).forEach(m=>{const I=e[m];if(I.type==="EVM"&&I.rpcEndpoint){s(m);const O=setInterval(()=>{s(m)},1e3);v.push(O)}}),()=>{[...A,...v].forEach(m=>clearInterval(m))}},[]);const f=e.Paima,y=(f==null?void 0:f.latestBlockNumber)||0,h=(f==null?void 0:f.isConnected)||!1;return{chainConfigs:e,newBlockIndices:i,latestBlock:y,isConnected:h}}function rV(){const[t,i]=De.useState([]),[a,s]=De.useState({}),[c,l]=De.useState({}),[f,y]=De.useState({}),[h,A]=De.useState({}),[v,m]=De.useState({}),[I,O]=De.useState({}),[M,B]=De.useState({}),R=De.useRef(!1),U=De.useRef([]),j=De.useRef({}),K=De.useRef({}),H=De.useRef({}),ie=De.useRef({}),ye=De.useRef(new Set),fe=De.useRef(new Set);De.useEffect(()=>{U.current=t},[t]),De.useEffect(()=>{j.current=I},[I]),De.useEffect(()=>{K.current=M},[M]),De.useEffect(()=>{H.current=h},[h]),De.useEffect(()=>{ie.current=v},[v]);const D=De.useCallback(C=>C.map(P=>({name:P.column_name,dataTypeID:25})),[]),$=De.useCallback((C,P,J)=>{const ne=Array.isArray(C)?C:[];let ce=[];return J&&J.length>0?ce=D(J):ne.length>0&&(ce=Object.keys(ne[0]).map(w=>({name:w,dataTypeID:25}))),{command:"SELECT",rowCount:ne.length,rows:ne,fields:ce}},[D]),k=De.useCallback((C,P,J)=>{const ne=Array.isArray(C)?C:[];let ce=[];return J&&J.length>0?ce=D(J):ne.length>0&&(ce=Object.keys(ne[0]).map(w=>({name:w,dataTypeID:25}))),{command:"SELECT",rowCount:ne.length,rows:ne,fields:ce}},[D]),Q=De.useCallback(async C=>{try{if(ye.current.has(C))return null;const P=j.current[C];if(P)return P;const J=await fetch(`${J9}/${C}`);if(!J.ok){if(J.status===404)return console.log(`🚫 Schema for primitive ${C} not found (404)`),ye.current.add(C),null;throw new Error(`HTTP error! status: ${J.status}`)}const ne=await J.json();return console.log(`📋 Fetched schema for ${C}:`,ne),ne}catch(P){return console.error(`Error fetching schema for primitive ${C}:`,P),null}},[]),re=De.useCallback(async C=>{try{const P=await fetch(`${W9}/${C}`);if(!P.ok){if(P.status===404)return console.log(`🚫 Schema for table ${C} not found (404)`),null;throw new Error(`HTTP error! status: ${P.status}`)}const J=await P.json();return console.log(`📋 Fetched schema for ${C}:`,J),J}catch(P){return console.error(`Error fetching schema for table ${C}:`,P),null}},[]),Z=De.useCallback(async()=>{try{const C=await fetch(V9);if(!C.ok)throw new Error(`HTTP error! status: ${C.status}`);const P=await C.json();return console.log("📋 Fetched config:",P),P}catch(C){return console.error("Error fetching config:",C),null}},[]),pe=De.useCallback(C=>{const P=[];return!C||!Array.isArray(C)?P:(C.forEach(J=>{J.primitives&&Array.isArray(J.primitives)&&J.primitives.forEach(ne=>{ne.primitive&&ne.primitive.name&&ne.primitive.type!=="evm-rpc-paima-l2"&&P.push(ne.primitive.name)})}),[...new Set(P)])},[]),_=De.useCallback(async(C,P,J)=>{try{if(fe.current.has(C))return null;const ne=J??{limit:20,cursors:[void 0],currentPage:0,hasMore:!1},ce=new URL(`${K9}/${C}`);ce.searchParams.set("limit",String(ne.limit));const w=ne.cursors[ne.currentPage];w&&ce.searchParams.set("after",w);const G=await fetch(ce.toString());if(!G.ok){if(G.status===404)return console.log(`🚫 Primitive ${C} not found (404)`),fe.current.add(C),null;throw new Error(`HTTP error! status: ${G.status}`)}const Y=await G.json(),W=Array.isArray(Y)?Y:Y.data??[],me=Y.pagination;return me&&A(de=>{const x=[...de[C].cursors];return me.nextCursor&&x.length===de[C].currentPage+1&&x.push(me.nextCursor),{...de,[C]:{...de[C],hasMore:me.hasMore,cursors:x}}}),console.log(`📊 Fetched data for ${C}:`,W),$(W,C,P)}catch(ne){return console.error(`Error fetching primitive data for ${C}:`,ne),null}},[$]),te=De.useCallback(async(C,P,J)=>{try{const ne=J??{limit:20,cursors:[void 0],currentPage:0,hasMore:!1},ce=new URL(`${Y9}/${C}`);ce.searchParams.set("limit",String(ne.limit));const w=ne.cursors[ne.currentPage];w&&ce.searchParams.set("after",w);const G=await fetch(ce.toString());if(!G.ok){if(G.status===404)return console.log(`🚫 Table ${C} not found (404)`),null;throw new Error(`HTTP error! status: ${G.status}`)}const Y=await G.json();console.log(`📊 Fetched table data for ${C}:`,Y);const W=Y.data??[],me=Y.pagination;return me&&m(de=>{const x=[...de[C].cursors];return me.nextCursor&&x.length===de[C].currentPage+1&&x.push(me.nextCursor),{...de,[C]:{...de[C],hasMore:me.hasMore,cursors:x}}}),k(W,C,P)}catch(ne){return console.error(`Error fetching table data for ${C}:`,ne),null}},[k]),le=De.useCallback(async()=>{try{const C=await fetch(Z9);if(!C.ok)throw new Error(`HTTP error! status: ${C.status}`);const J=(await C.json()).data??[];console.log("📊 Fetched scheduled data:",J);const ne=[{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:J.length,rows:J,fields:ne}}catch(C){return console.error("Error fetching scheduled data:",C),null}},[]),V=De.useCallback(async()=>{if(!(U.current.length===0||!R.current))try{const C=U.current.map(async J=>{const ne=j.current[J],ce=H.current[J],w=await _(J,ne,ce);return{primitiveName:J,data:w}}),P=await Promise.all(C);P.length>0&&s(J=>{const ne={...J};return P.forEach(({primitiveName:ce,data:w})=>{w!==null&&(ne[ce]=w)}),ne})}catch(C){console.error("Error refreshing primitive data:",C)}},[_]),F=De.useCallback(async()=>{if(R.current)try{const C="user_state_machine",P=K.current[C],J=ie.current[C],ne=await te(C,P,J);ne!==null&&l({[C]:ne})}catch(C){console.error("Error refreshing static table data:",C)}},[te]),z=De.useCallback(async()=>{if(R.current)try{const C=await le();C!==null&&y({scheduled_data:C})}catch(C){console.error("Error refreshing scheduled data:",C)}},[le]),oe=De.useCallback(async()=>{console.log("📋 Initializing primitive tables...");try{const C=await Z();if(!C){console.error("Failed to fetch config");return}const P=pe(C);if(i(P),console.log("📊 Found primitives:",P),P.length===0){console.log("No primitives found in config");return}const J=P.map(async W=>{const me=await Q(W);return{primitiveName:W,schema:me}}),ne=await Promise.all(J),ce={};ne.forEach(({primitiveName:W,schema:me})=>{me&&(ce[W]=me)}),O(ce),A(W=>{const me={...W};return P.forEach(de=>{me[de]||(me[de]={limit:20,cursors:[void 0],currentPage:0,hasMore:!1})}),me});const w=P.map(async W=>{const me=ce[W],de=H.current[W]??{limit:20,cursors:[void 0],currentPage:0,hasMore:!1},x=await _(W,me,de);return{primitiveName:W,data:x}}),G=await Promise.all(w),Y={};G.forEach(({primitiveName:W,data:me})=>{Y[W]=me}),s(Y),console.log("✅ Primitive tables initialized")}catch(C){console.error("Error initializing primitive tables:",C)}},[Z,pe,Q,_]),q=De.useCallback(async()=>{console.log("📋 Initializing state machine tables...");try{const C=await re("user_state_machine");C&&B({user_state_machine:C}),m(ce=>({...ce,user_state_machine:ce.user_state_machine??{limit:20,cursors:[void 0],currentPage:0,hasMore:!1}}));const P="user_state_machine",J=ie.current[P]??{limit:20,cursors:[void 0],currentPage:0,hasMore:!1},ne=await te(P,C||void 0,J);l({[P]:ne}),console.log("✅ State machine tables initialized")}catch(C){console.error("Error initializing state machine tables:",C)}},[re,te]),N=De.useCallback(async()=>{console.log("📋 Initializing scheduled data...");try{const C=await le();y({scheduled_data:C}),console.log("✅ Scheduled data initialized")}catch(C){console.error("Error initializing scheduled data:",C)}},[le]);return De.useEffect(()=>{let C,P,J;return(async()=>{await Promise.all([oe(),q(),N()]),R.current=!0,C=setInterval(()=>{V()},5e3),setTimeout(()=>{F(),P=setInterval(()=>{F()},5e3)},1500),setTimeout(()=>{z(),J=setInterval(()=>{z()},5e3)},3e3)})(),()=>{C&&clearInterval(C),P&&clearInterval(P),J&&clearInterval(J)}},[]),{primitiveData:a,staticTableData:c,scheduledData:f,refreshPrimitiveData:V,refreshStaticTableData:F,refreshScheduledData:z,primitivePagination:h,staticTablePagination:v,setPrimitiveLimit:async(C,P)=>{const J={limit:P,cursors:[void 0],currentPage:0,hasMore:!1};A(w=>({...w,[C]:J}));const ne=j.current[C],ce=await _(C,ne,J);s(w=>({...w,[C]:ce}))},nextPrimitivePage:async C=>{const P=H.current[C];if(!P||!P.hasMore)return;const J={...P,currentPage:P.currentPage+1};A(w=>({...w,[C]:J}));const ne=j.current[C],ce=await _(C,ne,J);s(w=>({...w,[C]:ce}))},prevPrimitivePage:async C=>{const P=H.current[C];if(!P||P.currentPage===0)return;const J={...P,currentPage:P.currentPage-1};A(w=>({...w,[C]:J}));const ne=j.current[C],ce=await _(C,ne,J);s(w=>({...w,[C]:ce}))},firstPrimitivePage:async C=>{const P=H.current[C];if(!P)return;const J={...P,cursors:[void 0],currentPage:0};A(w=>({...w,[C]:J}));const ne=j.current[C],ce=await _(C,ne,J);s(w=>({...w,[C]:ce}))},setStaticTableLimit:async(C,P)=>{const J={limit:P,cursors:[void 0],currentPage:0,hasMore:!1};m(w=>({...w,[C]:J}));const ne=K.current[C],ce=await te(C,ne,J);l(w=>({...w,[C]:ce}))},nextStaticTablePage:async C=>{const P=ie.current[C];if(!P||!P.hasMore)return;const J={...P,currentPage:P.currentPage+1};m(w=>({...w,[C]:J}));const ne=K.current[C],ce=await te(C,ne,J);l(w=>({...w,[C]:ce}))},prevStaticTablePage:async C=>{const P=ie.current[C];if(!P||P.currentPage===0)return;const J={...P,currentPage:P.currentPage-1};m(w=>({...w,[C]:J}));const ne=K.current[C],ce=await te(C,ne,J);l(w=>({...w,[C]:ce}))},firstStaticTablePage:async C=>{const P=ie.current[C];if(!P)return;const J={...P,cursors:[void 0],currentPage:0};m(w=>({...w,[C]:J}));const ne=K.current[C],ce=await te(C,ne,J);l(w=>({...w,[C]:ce}))}}}function iV(){const{chainConfigs:e,newBlockIndices:t,latestBlock:i,isConnected:a}=nV(),{primitiveData:s,staticTableData:c,scheduledData:l,primitivePagination:f,staticTablePagination:y,nextPrimitivePage:h,prevPrimitivePage:A,firstPrimitivePage:v,setPrimitiveLimit:m,nextStaticTablePage:I,prevStaticTablePage:O,firstStaticTablePage:M,setStaticTableLimit:B}=rV();return De.useEffect(()=>{const R=U=>{console.error("Unhandled promise rejection:",U.reason)};return globalThis.addEventListener("unhandledrejection",R),()=>{globalThis.removeEventListener("unhandledrejection",R)}},[]),De.useEffect(()=>{const R=U=>{U.key==="r"&&U.ctrlKey&&(U.preventDefault(),console.log("🔄 Manually refreshed (keyboard shortcut)"))};return document.addEventListener("keydown",R),()=>{document.removeEventListener("keydown",R)}},[]),ee.jsxs("div",{className:"container",children:[ee.jsx(Hk,{latestBlock:i,isConnected:a}),ee.jsx(Vk,{chainConfigs:e,newBlockIndices:t}),ee.jsx(Bb,{title:"Primitive Data",tables:s,pagination:f,onPrev:R=>A(R),onNext:R=>h(R),onFirst:R=>v(R),onLimitChange:(R,U)=>m(R,U)}),ee.jsx(Bb,{title:"State Machine Tables",tables:c,pagination:y,onPrev:R=>O(R),onNext:R=>I(R),onFirst:R=>M(R),onLimitChange:(R,U)=>B(R,U),children:ee.jsx(tV,{})}),ee.jsx(Bb,{title:"Scheduled Data",tables:l})]})}J8.createRoot(document.getElementById("root")).render(ee.jsx(De.StrictMode,{children:ee.jsx(iV,{})}));