@paimaexample/explorer 0.3.31 → 0.3.33

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 z2=e=>{throw TypeError(e)};var Zy=(e,t,r)=>t.has(e)||z2("Cannot "+r);var yt=(e,t,r)=>(Zy(e,t,"read from private field"),r?r.call(e):t.get(e)),Xi=(e,t,r)=>t.has(e)?z2("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),ko=(e,t,r,o)=>(Zy(e,t,"write to private field"),o?o.call(e,r):t.set(e,r),r),dt=(e,t,r)=>(Zy(e,t,"access private method"),r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(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"&&o(l)}).observe(document,{childList:!0,subtree:!0});function r(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 o(s){if(s.ep)return;s.ep=!0;const c=r(s);fetch(s.href,c)}})();var oo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Jy={exports:{}},Sc={};/**
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 G2;function c4(){if(G2)return Sc;G2=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(o,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:o,key:l,ref:s!==void 0?s:null,props:c}}return Sc.Fragment=t,Sc.jsx=r,Sc.jsxs=r,Sc}var Q2;function l4(){return Q2||(Q2=1,Jy.exports=c4()),Jy.exports}var J=l4(),Wy={exports:{}},eg={},Cc={},K2;function f4(){if(K2)return Cc;K2=1,Cc.byteLength=f,Cc.toByteArray=h,Cc.fromByteArray=x;for(var e=[],t=[],r=typeof Uint8Array<"u"?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=o.length;s<c;++s)e[s]=o[s],t[o.charCodeAt(s)]=s;t[45]=62,t[95]=63;function l(S){var R=S.length;if(R%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var U=S.indexOf("=");U===-1&&(U=R);var T=U===R?0:4-U%4;return[U,T]}function f(S){var R=l(S),U=R[0],T=R[1];return(U+T)*3/4-T}function p(S,R,U){return(R+U)*3/4-U}function h(S){var R,U=l(S),T=U[0],_=U[1],M=new r(p(S,T,_)),D=0,$=_>0?T-4:T,P;for(P=0;P<$;P+=4)R=t[S.charCodeAt(P)]<<18|t[S.charCodeAt(P+1)]<<12|t[S.charCodeAt(P+2)]<<6|t[S.charCodeAt(P+3)],M[D++]=R>>16&255,M[D++]=R>>8&255,M[D++]=R&255;return _===2&&(R=t[S.charCodeAt(P)]<<2|t[S.charCodeAt(P+1)]>>4,M[D++]=R&255),_===1&&(R=t[S.charCodeAt(P)]<<10|t[S.charCodeAt(P+1)]<<4|t[S.charCodeAt(P+2)]>>2,M[D++]=R>>8&255,M[D++]=R&255),M}function A(S){return e[S>>18&63]+e[S>>12&63]+e[S>>6&63]+e[S&63]}function v(S,R,U){for(var T,_=[],M=R;M<U;M+=3)T=(S[M]<<16&16711680)+(S[M+1]<<8&65280)+(S[M+2]&255),_.push(A(T));return _.join("")}function x(S){for(var R,U=S.length,T=U%3,_=[],M=16383,D=0,$=U-T;D<$;D+=M)_.push(v(S,D,D+M>$?$:D+M));return T===1?(R=S[U-1],_.push(e[R>>2]+e[R<<4&63]+"==")):T===2&&(R=(S[U-2]<<8)+S[U-1],_.push(e[R>>10]+e[R>>4&63]+e[R<<2&63]+"=")),_.join("")}return Cc}var fd={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var V2;function d4(){return V2||(V2=1,fd.read=function(e,t,r,o,s){var c,l,f=s*8-o-1,p=(1<<f)-1,h=p>>1,A=-7,v=r?s-1:0,x=r?-1:1,S=e[t+v];for(v+=x,c=S&(1<<-A)-1,S>>=-A,A+=f;A>0;c=c*256+e[t+v],v+=x,A-=8);for(l=c&(1<<-A)-1,c>>=-A,A+=o;A>0;l=l*256+e[t+v],v+=x,A-=8);if(c===0)c=1-h;else{if(c===p)return l?NaN:(S?-1:1)*(1/0);l=l+Math.pow(2,o),c=c-h}return(S?-1:1)*l*Math.pow(2,c-o)},fd.write=function(e,t,r,o,s,c){var l,f,p,h=c*8-s-1,A=(1<<h)-1,v=A>>1,x=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,S=o?0:c-1,R=o?1:-1,U=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(f=isNaN(t)?1:0,l=A):(l=Math.floor(Math.log(t)/Math.LN2),t*(p=Math.pow(2,-l))<1&&(l--,p*=2),l+v>=1?t+=x/p:t+=x*Math.pow(2,1-v),t*p>=2&&(l++,p/=2),l+v>=A?(f=0,l=A):l+v>=1?(f=(t*p-1)*Math.pow(2,s),l=l+v):(f=t*Math.pow(2,v-1)*Math.pow(2,s),l=0));s>=8;e[r+S]=f&255,S+=R,f/=256,s-=8);for(l=l<<s|f,h+=s;h>0;e[r+S]=l&255,S+=R,l/=256,h-=8);e[r+S-R]|=U*128}),fd}/*!
10
+ * The buffer module from node.js, for the browser.
11
+ *
12
+ * @author Feross Aboukhadijeh <https://feross.org>
13
+ * @license MIT
14
+ */var Y2;function h4(){return Y2||(Y2=1,(function(e){var t=f4(),r=d4(),o=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=f,e.SlowBuffer=M,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 b=new Uint8Array(1),g={foo:function(){return 42}};return Object.setPrototypeOf(g,Uint8Array.prototype),Object.setPrototypeOf(b,g),b.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(b){if(b>s)throw new RangeError('The value "'+b+'" is invalid for option "size"');var g=new Uint8Array(b);return Object.setPrototypeOf(g,f.prototype),g}function f(b,g,m){if(typeof b=="number"){if(typeof g=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return v(b)}return p(b,g,m)}f.poolSize=8192;function p(b,g,m){if(typeof b=="string")return x(b,g);if(ArrayBuffer.isView(b))return R(b);if(b==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof b);if(Z(b,ArrayBuffer)||b&&Z(b.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Z(b,SharedArrayBuffer)||b&&Z(b.buffer,SharedArrayBuffer)))return U(b,g,m);if(typeof b=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var I=b.valueOf&&b.valueOf();if(I!=null&&I!==b)return f.from(I,g,m);var ee=T(b);if(ee)return ee;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof b[Symbol.toPrimitive]=="function")return f.from(b[Symbol.toPrimitive]("string"),g,m);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof b)}f.from=function(b,g,m){return p(b,g,m)},Object.setPrototypeOf(f.prototype,Uint8Array.prototype),Object.setPrototypeOf(f,Uint8Array);function h(b){if(typeof b!="number")throw new TypeError('"size" argument must be of type number');if(b<0)throw new RangeError('The value "'+b+'" is invalid for option "size"')}function A(b,g,m){return h(b),b<=0?l(b):g!==void 0?typeof m=="string"?l(b).fill(g,m):l(b).fill(g):l(b)}f.alloc=function(b,g,m){return A(b,g,m)};function v(b){return h(b),l(b<0?0:_(b)|0)}f.allocUnsafe=function(b){return v(b)},f.allocUnsafeSlow=function(b){return v(b)};function x(b,g){if((typeof g!="string"||g==="")&&(g="utf8"),!f.isEncoding(g))throw new TypeError("Unknown encoding: "+g);var m=D(b,g)|0,I=l(m),ee=I.write(b,g);return ee!==m&&(I=I.slice(0,ee)),I}function S(b){for(var g=b.length<0?0:_(b.length)|0,m=l(g),I=0;I<g;I+=1)m[I]=b[I]&255;return m}function R(b){if(Z(b,Uint8Array)){var g=new Uint8Array(b);return U(g.buffer,g.byteOffset,g.byteLength)}return S(b)}function U(b,g,m){if(g<0||b.byteLength<g)throw new RangeError('"offset" is outside of buffer bounds');if(b.byteLength<g+(m||0))throw new RangeError('"length" is outside of buffer bounds');var I;return g===void 0&&m===void 0?I=new Uint8Array(b):m===void 0?I=new Uint8Array(b,g):I=new Uint8Array(b,g,m),Object.setPrototypeOf(I,f.prototype),I}function T(b){if(f.isBuffer(b)){var g=_(b.length)|0,m=l(g);return m.length===0||b.copy(m,0,0,g),m}if(b.length!==void 0)return typeof b.length!="number"||ce(b.length)?l(0):S(b);if(b.type==="Buffer"&&Array.isArray(b.data))return S(b.data)}function _(b){if(b>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return b|0}function M(b){return+b!=b&&(b=0),f.alloc(+b)}f.isBuffer=function(g){return g!=null&&g._isBuffer===!0&&g!==f.prototype},f.compare=function(g,m){if(Z(g,Uint8Array)&&(g=f.from(g,g.offset,g.byteLength)),Z(m,Uint8Array)&&(m=f.from(m,m.offset,m.byteLength)),!f.isBuffer(g)||!f.isBuffer(m))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(g===m)return 0;for(var I=g.length,ee=m.length,me=0,Ce=Math.min(I,ee);me<Ce;++me)if(g[me]!==m[me]){I=g[me],ee=m[me];break}return I<ee?-1:ee<I?1:0},f.isEncoding=function(g){switch(String(g).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(g,m){if(!Array.isArray(g))throw new TypeError('"list" argument must be an Array of Buffers');if(g.length===0)return f.alloc(0);var I;if(m===void 0)for(m=0,I=0;I<g.length;++I)m+=g[I].length;var ee=f.allocUnsafe(m),me=0;for(I=0;I<g.length;++I){var Ce=g[I];if(Z(Ce,Uint8Array))me+Ce.length>ee.length?f.from(Ce).copy(ee,me):Uint8Array.prototype.set.call(ee,Ce,me);else if(f.isBuffer(Ce))Ce.copy(ee,me);else throw new TypeError('"list" argument must be an Array of Buffers');me+=Ce.length}return ee};function D(b,g){if(f.isBuffer(b))return b.length;if(ArrayBuffer.isView(b)||Z(b,ArrayBuffer))return b.byteLength;if(typeof b!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof b);var m=b.length,I=arguments.length>2&&arguments[2]===!0;if(!I&&m===0)return 0;for(var ee=!1;;)switch(g){case"ascii":case"latin1":case"binary":return m;case"utf8":case"utf-8":return ye(b).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return m*2;case"hex":return m>>>1;case"base64":return N(b).length;default:if(ee)return I?-1:ye(b).length;g=(""+g).toLowerCase(),ee=!0}}f.byteLength=D;function $(b,g,m){var I=!1;if((g===void 0||g<0)&&(g=0),g>this.length||((m===void 0||m>this.length)&&(m=this.length),m<=0)||(m>>>=0,g>>>=0,m<=g))return"";for(b||(b="utf8");;)switch(b){case"hex":return W(this,g,m);case"utf8":case"utf-8":return de(this,g,m);case"ascii":return re(this,g,m);case"latin1":case"binary":return he(this,g,m);case"base64":return ie(this,g,m);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,g,m);default:if(I)throw new TypeError("Unknown encoding: "+b);b=(b+"").toLowerCase(),I=!0}}f.prototype._isBuffer=!0;function P(b,g,m){var I=b[g];b[g]=b[m],b[m]=I}f.prototype.swap16=function(){var g=this.length;if(g%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var m=0;m<g;m+=2)P(this,m,m+1);return this},f.prototype.swap32=function(){var g=this.length;if(g%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var m=0;m<g;m+=4)P(this,m,m+3),P(this,m+1,m+2);return this},f.prototype.swap64=function(){var g=this.length;if(g%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var m=0;m<g;m+=8)P(this,m,m+7),P(this,m+1,m+6),P(this,m+2,m+5),P(this,m+3,m+4);return this},f.prototype.toString=function(){var g=this.length;return g===0?"":arguments.length===0?de(this,0,g):$.apply(this,arguments)},f.prototype.toLocaleString=f.prototype.toString,f.prototype.equals=function(g){if(!f.isBuffer(g))throw new TypeError("Argument must be a Buffer");return this===g?!0:f.compare(this,g)===0},f.prototype.inspect=function(){var g="",m=e.INSPECT_MAX_BYTES;return g=this.toString("hex",0,m).replace(/(.{2})/g,"$1 ").trim(),this.length>m&&(g+=" ... "),"<Buffer "+g+">"},o&&(f.prototype[o]=f.prototype.inspect),f.prototype.compare=function(g,m,I,ee,me){if(Z(g,Uint8Array)&&(g=f.from(g,g.offset,g.byteLength)),!f.isBuffer(g))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof g);if(m===void 0&&(m=0),I===void 0&&(I=g?g.length:0),ee===void 0&&(ee=0),me===void 0&&(me=this.length),m<0||I>g.length||ee<0||me>this.length)throw new RangeError("out of range index");if(ee>=me&&m>=I)return 0;if(ee>=me)return-1;if(m>=I)return 1;if(m>>>=0,I>>>=0,ee>>>=0,me>>>=0,this===g)return 0;for(var Ce=me-ee,je=I-m,ae=Math.min(Ce,je),se=this.slice(ee,me),Ee=g.slice(m,I),Fe=0;Fe<ae;++Fe)if(se[Fe]!==Ee[Fe]){Ce=se[Fe],je=Ee[Fe];break}return Ce<je?-1:je<Ce?1:0};function Y(b,g,m,I,ee){if(b.length===0)return-1;if(typeof m=="string"?(I=m,m=0):m>2147483647?m=2147483647:m<-2147483648&&(m=-2147483648),m=+m,ce(m)&&(m=ee?0:b.length-1),m<0&&(m=b.length+m),m>=b.length){if(ee)return-1;m=b.length-1}else if(m<0)if(ee)m=0;else return-1;if(typeof g=="string"&&(g=f.from(g,I)),f.isBuffer(g))return g.length===0?-1:ne(b,g,m,I,ee);if(typeof g=="number")return g=g&255,typeof Uint8Array.prototype.indexOf=="function"?ee?Uint8Array.prototype.indexOf.call(b,g,m):Uint8Array.prototype.lastIndexOf.call(b,g,m):ne(b,[g],m,I,ee);throw new TypeError("val must be string, number or Buffer")}function ne(b,g,m,I,ee){var me=1,Ce=b.length,je=g.length;if(I!==void 0&&(I=String(I).toLowerCase(),I==="ucs2"||I==="ucs-2"||I==="utf16le"||I==="utf-16le")){if(b.length<2||g.length<2)return-1;me=2,Ce/=2,je/=2,m/=2}function ae(qe,ke){return me===1?qe[ke]:qe.readUInt16BE(ke*me)}var se;if(ee){var Ee=-1;for(se=m;se<Ce;se++)if(ae(b,se)===ae(g,Ee===-1?0:se-Ee)){if(Ee===-1&&(Ee=se),se-Ee+1===je)return Ee*me}else Ee!==-1&&(se-=se-Ee),Ee=-1}else for(m+je>Ce&&(m=Ce-je),se=m;se>=0;se--){for(var Fe=!0,Me=0;Me<je;Me++)if(ae(b,se+Me)!==ae(g,Me)){Fe=!1;break}if(Fe)return se}return-1}f.prototype.includes=function(g,m,I){return this.indexOf(g,m,I)!==-1},f.prototype.indexOf=function(g,m,I){return Y(this,g,m,I,!0)},f.prototype.lastIndexOf=function(g,m,I){return Y(this,g,m,I,!1)};function te(b,g,m,I){m=Number(m)||0;var ee=b.length-m;I?(I=Number(I),I>ee&&(I=ee)):I=ee;var me=g.length;I>me/2&&(I=me/2);for(var Ce=0;Ce<I;++Ce){var je=parseInt(g.substr(Ce*2,2),16);if(ce(je))return Ce;b[m+Ce]=je}return Ce}function B(b,g,m,I){return K(ye(g,b.length-m),b,m,I)}function L(b,g,m,I){return K(G(g),b,m,I)}function z(b,g,m,I){return K(N(g),b,m,I)}function H(b,g,m,I){return K(w(g,b.length-m),b,m,I)}f.prototype.write=function(g,m,I,ee){if(m===void 0)ee="utf8",I=this.length,m=0;else if(I===void 0&&typeof m=="string")ee=m,I=this.length,m=0;else if(isFinite(m))m=m>>>0,isFinite(I)?(I=I>>>0,ee===void 0&&(ee="utf8")):(ee=I,I=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var me=this.length-m;if((I===void 0||I>me)&&(I=me),g.length>0&&(I<0||m<0)||m>this.length)throw new RangeError("Attempt to write outside buffer bounds");ee||(ee="utf8");for(var Ce=!1;;)switch(ee){case"hex":return te(this,g,m,I);case"utf8":case"utf-8":return B(this,g,m,I);case"ascii":case"latin1":case"binary":return L(this,g,m,I);case"base64":return z(this,g,m,I);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return H(this,g,m,I);default:if(Ce)throw new TypeError("Unknown encoding: "+ee);ee=(""+ee).toLowerCase(),Ce=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ie(b,g,m){return g===0&&m===b.length?t.fromByteArray(b):t.fromByteArray(b.slice(g,m))}function de(b,g,m){m=Math.min(b.length,m);for(var I=[],ee=g;ee<m;){var me=b[ee],Ce=null,je=me>239?4:me>223?3:me>191?2:1;if(ee+je<=m){var ae,se,Ee,Fe;switch(je){case 1:me<128&&(Ce=me);break;case 2:ae=b[ee+1],(ae&192)===128&&(Fe=(me&31)<<6|ae&63,Fe>127&&(Ce=Fe));break;case 3:ae=b[ee+1],se=b[ee+2],(ae&192)===128&&(se&192)===128&&(Fe=(me&15)<<12|(ae&63)<<6|se&63,Fe>2047&&(Fe<55296||Fe>57343)&&(Ce=Fe));break;case 4:ae=b[ee+1],se=b[ee+2],Ee=b[ee+3],(ae&192)===128&&(se&192)===128&&(Ee&192)===128&&(Fe=(me&15)<<18|(ae&63)<<12|(se&63)<<6|Ee&63,Fe>65535&&Fe<1114112&&(Ce=Fe))}}Ce===null?(Ce=65533,je=1):Ce>65535&&(Ce-=65536,I.push(Ce>>>10&1023|55296),Ce=56320|Ce&1023),I.push(Ce),ee+=je}return O(I)}var Ae=4096;function O(b){var g=b.length;if(g<=Ae)return String.fromCharCode.apply(String,b);for(var m="",I=0;I<g;)m+=String.fromCharCode.apply(String,b.slice(I,I+=Ae));return m}function re(b,g,m){var I="";m=Math.min(b.length,m);for(var ee=g;ee<m;++ee)I+=String.fromCharCode(b[ee]&127);return I}function he(b,g,m){var I="";m=Math.min(b.length,m);for(var ee=g;ee<m;++ee)I+=String.fromCharCode(b[ee]);return I}function W(b,g,m){var I=b.length;(!g||g<0)&&(g=0),(!m||m<0||m>I)&&(m=I);for(var ee="",me=g;me<m;++me)ee+=le[b[me]];return ee}function C(b,g,m){for(var I=b.slice(g,m),ee="",me=0;me<I.length-1;me+=2)ee+=String.fromCharCode(I[me]+I[me+1]*256);return ee}f.prototype.slice=function(g,m){var I=this.length;g=~~g,m=m===void 0?I:~~m,g<0?(g+=I,g<0&&(g=0)):g>I&&(g=I),m<0?(m+=I,m<0&&(m=0)):m>I&&(m=I),m<g&&(m=g);var ee=this.subarray(g,m);return Object.setPrototypeOf(ee,f.prototype),ee};function X(b,g,m){if(b%1!==0||b<0)throw new RangeError("offset is not uint");if(b+g>m)throw new RangeError("Trying to access beyond buffer length")}f.prototype.readUintLE=f.prototype.readUIntLE=function(g,m,I){g=g>>>0,m=m>>>0,I||X(g,m,this.length);for(var ee=this[g],me=1,Ce=0;++Ce<m&&(me*=256);)ee+=this[g+Ce]*me;return ee},f.prototype.readUintBE=f.prototype.readUIntBE=function(g,m,I){g=g>>>0,m=m>>>0,I||X(g,m,this.length);for(var ee=this[g+--m],me=1;m>0&&(me*=256);)ee+=this[g+--m]*me;return ee},f.prototype.readUint8=f.prototype.readUInt8=function(g,m){return g=g>>>0,m||X(g,1,this.length),this[g]},f.prototype.readUint16LE=f.prototype.readUInt16LE=function(g,m){return g=g>>>0,m||X(g,2,this.length),this[g]|this[g+1]<<8},f.prototype.readUint16BE=f.prototype.readUInt16BE=function(g,m){return g=g>>>0,m||X(g,2,this.length),this[g]<<8|this[g+1]},f.prototype.readUint32LE=f.prototype.readUInt32LE=function(g,m){return g=g>>>0,m||X(g,4,this.length),(this[g]|this[g+1]<<8|this[g+2]<<16)+this[g+3]*16777216},f.prototype.readUint32BE=f.prototype.readUInt32BE=function(g,m){return g=g>>>0,m||X(g,4,this.length),this[g]*16777216+(this[g+1]<<16|this[g+2]<<8|this[g+3])},f.prototype.readIntLE=function(g,m,I){g=g>>>0,m=m>>>0,I||X(g,m,this.length);for(var ee=this[g],me=1,Ce=0;++Ce<m&&(me*=256);)ee+=this[g+Ce]*me;return me*=128,ee>=me&&(ee-=Math.pow(2,8*m)),ee},f.prototype.readIntBE=function(g,m,I){g=g>>>0,m=m>>>0,I||X(g,m,this.length);for(var ee=m,me=1,Ce=this[g+--ee];ee>0&&(me*=256);)Ce+=this[g+--ee]*me;return me*=128,Ce>=me&&(Ce-=Math.pow(2,8*m)),Ce},f.prototype.readInt8=function(g,m){return g=g>>>0,m||X(g,1,this.length),this[g]&128?(255-this[g]+1)*-1:this[g]},f.prototype.readInt16LE=function(g,m){g=g>>>0,m||X(g,2,this.length);var I=this[g]|this[g+1]<<8;return I&32768?I|4294901760:I},f.prototype.readInt16BE=function(g,m){g=g>>>0,m||X(g,2,this.length);var I=this[g+1]|this[g]<<8;return I&32768?I|4294901760:I},f.prototype.readInt32LE=function(g,m){return g=g>>>0,m||X(g,4,this.length),this[g]|this[g+1]<<8|this[g+2]<<16|this[g+3]<<24},f.prototype.readInt32BE=function(g,m){return g=g>>>0,m||X(g,4,this.length),this[g]<<24|this[g+1]<<16|this[g+2]<<8|this[g+3]},f.prototype.readFloatLE=function(g,m){return g=g>>>0,m||X(g,4,this.length),r.read(this,g,!0,23,4)},f.prototype.readFloatBE=function(g,m){return g=g>>>0,m||X(g,4,this.length),r.read(this,g,!1,23,4)},f.prototype.readDoubleLE=function(g,m){return g=g>>>0,m||X(g,8,this.length),r.read(this,g,!0,52,8)},f.prototype.readDoubleBE=function(g,m){return g=g>>>0,m||X(g,8,this.length),r.read(this,g,!1,52,8)};function ue(b,g,m,I,ee,me){if(!f.isBuffer(b))throw new TypeError('"buffer" argument must be a Buffer instance');if(g>ee||g<me)throw new RangeError('"value" argument is out of bounds');if(m+I>b.length)throw new RangeError("Index out of range")}f.prototype.writeUintLE=f.prototype.writeUIntLE=function(g,m,I,ee){if(g=+g,m=m>>>0,I=I>>>0,!ee){var me=Math.pow(2,8*I)-1;ue(this,g,m,I,me,0)}var Ce=1,je=0;for(this[m]=g&255;++je<I&&(Ce*=256);)this[m+je]=g/Ce&255;return m+I},f.prototype.writeUintBE=f.prototype.writeUIntBE=function(g,m,I,ee){if(g=+g,m=m>>>0,I=I>>>0,!ee){var me=Math.pow(2,8*I)-1;ue(this,g,m,I,me,0)}var Ce=I-1,je=1;for(this[m+Ce]=g&255;--Ce>=0&&(je*=256);)this[m+Ce]=g/je&255;return m+I},f.prototype.writeUint8=f.prototype.writeUInt8=function(g,m,I){return g=+g,m=m>>>0,I||ue(this,g,m,1,255,0),this[m]=g&255,m+1},f.prototype.writeUint16LE=f.prototype.writeUInt16LE=function(g,m,I){return g=+g,m=m>>>0,I||ue(this,g,m,2,65535,0),this[m]=g&255,this[m+1]=g>>>8,m+2},f.prototype.writeUint16BE=f.prototype.writeUInt16BE=function(g,m,I){return g=+g,m=m>>>0,I||ue(this,g,m,2,65535,0),this[m]=g>>>8,this[m+1]=g&255,m+2},f.prototype.writeUint32LE=f.prototype.writeUInt32LE=function(g,m,I){return g=+g,m=m>>>0,I||ue(this,g,m,4,4294967295,0),this[m+3]=g>>>24,this[m+2]=g>>>16,this[m+1]=g>>>8,this[m]=g&255,m+4},f.prototype.writeUint32BE=f.prototype.writeUInt32BE=function(g,m,I){return g=+g,m=m>>>0,I||ue(this,g,m,4,4294967295,0),this[m]=g>>>24,this[m+1]=g>>>16,this[m+2]=g>>>8,this[m+3]=g&255,m+4},f.prototype.writeIntLE=function(g,m,I,ee){if(g=+g,m=m>>>0,!ee){var me=Math.pow(2,8*I-1);ue(this,g,m,I,me-1,-me)}var Ce=0,je=1,ae=0;for(this[m]=g&255;++Ce<I&&(je*=256);)g<0&&ae===0&&this[m+Ce-1]!==0&&(ae=1),this[m+Ce]=(g/je>>0)-ae&255;return m+I},f.prototype.writeIntBE=function(g,m,I,ee){if(g=+g,m=m>>>0,!ee){var me=Math.pow(2,8*I-1);ue(this,g,m,I,me-1,-me)}var Ce=I-1,je=1,ae=0;for(this[m+Ce]=g&255;--Ce>=0&&(je*=256);)g<0&&ae===0&&this[m+Ce+1]!==0&&(ae=1),this[m+Ce]=(g/je>>0)-ae&255;return m+I},f.prototype.writeInt8=function(g,m,I){return g=+g,m=m>>>0,I||ue(this,g,m,1,127,-128),g<0&&(g=255+g+1),this[m]=g&255,m+1},f.prototype.writeInt16LE=function(g,m,I){return g=+g,m=m>>>0,I||ue(this,g,m,2,32767,-32768),this[m]=g&255,this[m+1]=g>>>8,m+2},f.prototype.writeInt16BE=function(g,m,I){return g=+g,m=m>>>0,I||ue(this,g,m,2,32767,-32768),this[m]=g>>>8,this[m+1]=g&255,m+2},f.prototype.writeInt32LE=function(g,m,I){return g=+g,m=m>>>0,I||ue(this,g,m,4,2147483647,-2147483648),this[m]=g&255,this[m+1]=g>>>8,this[m+2]=g>>>16,this[m+3]=g>>>24,m+4},f.prototype.writeInt32BE=function(g,m,I){return g=+g,m=m>>>0,I||ue(this,g,m,4,2147483647,-2147483648),g<0&&(g=4294967295+g+1),this[m]=g>>>24,this[m+1]=g>>>16,this[m+2]=g>>>8,this[m+3]=g&255,m+4};function Q(b,g,m,I,ee,me){if(m+I>b.length)throw new RangeError("Index out of range");if(m<0)throw new RangeError("Index out of range")}function j(b,g,m,I,ee){return g=+g,m=m>>>0,ee||Q(b,g,m,4),r.write(b,g,m,I,23,4),m+4}f.prototype.writeFloatLE=function(g,m,I){return j(this,g,m,!0,I)},f.prototype.writeFloatBE=function(g,m,I){return j(this,g,m,!1,I)};function k(b,g,m,I,ee){return g=+g,m=m>>>0,ee||Q(b,g,m,8),r.write(b,g,m,I,52,8),m+8}f.prototype.writeDoubleLE=function(g,m,I){return k(this,g,m,!0,I)},f.prototype.writeDoubleBE=function(g,m,I){return k(this,g,m,!1,I)},f.prototype.copy=function(g,m,I,ee){if(!f.isBuffer(g))throw new TypeError("argument should be a Buffer");if(I||(I=0),!ee&&ee!==0&&(ee=this.length),m>=g.length&&(m=g.length),m||(m=0),ee>0&&ee<I&&(ee=I),ee===I||g.length===0||this.length===0)return 0;if(m<0)throw new RangeError("targetStart out of bounds");if(I<0||I>=this.length)throw new RangeError("Index out of range");if(ee<0)throw new RangeError("sourceEnd out of bounds");ee>this.length&&(ee=this.length),g.length-m<ee-I&&(ee=g.length-m+I);var me=ee-I;return this===g&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(m,I,ee):Uint8Array.prototype.set.call(g,this.subarray(I,ee),m),me},f.prototype.fill=function(g,m,I,ee){if(typeof g=="string"){if(typeof m=="string"?(ee=m,m=0,I=this.length):typeof I=="string"&&(ee=I,I=this.length),ee!==void 0&&typeof ee!="string")throw new TypeError("encoding must be a string");if(typeof ee=="string"&&!f.isEncoding(ee))throw new TypeError("Unknown encoding: "+ee);if(g.length===1){var me=g.charCodeAt(0);(ee==="utf8"&&me<128||ee==="latin1")&&(g=me)}}else typeof g=="number"?g=g&255:typeof g=="boolean"&&(g=Number(g));if(m<0||this.length<m||this.length<I)throw new RangeError("Out of range index");if(I<=m)return this;m=m>>>0,I=I===void 0?this.length:I>>>0,g||(g=0);var Ce;if(typeof g=="number")for(Ce=m;Ce<I;++Ce)this[Ce]=g;else{var je=f.isBuffer(g)?g:f.from(g,ee),ae=je.length;if(ae===0)throw new TypeError('The value "'+g+'" is invalid for argument "value"');for(Ce=0;Ce<I-m;++Ce)this[Ce+m]=je[Ce%ae]}return this};var V=/[^+/0-9A-Za-z-_]/g;function pe(b){if(b=b.split("=")[0],b=b.trim().replace(V,""),b.length<2)return"";for(;b.length%4!==0;)b=b+"=";return b}function ye(b,g){g=g||1/0;for(var m,I=b.length,ee=null,me=[],Ce=0;Ce<I;++Ce){if(m=b.charCodeAt(Ce),m>55295&&m<57344){if(!ee){if(m>56319){(g-=3)>-1&&me.push(239,191,189);continue}else if(Ce+1===I){(g-=3)>-1&&me.push(239,191,189);continue}ee=m;continue}if(m<56320){(g-=3)>-1&&me.push(239,191,189),ee=m;continue}m=(ee-55296<<10|m-56320)+65536}else ee&&(g-=3)>-1&&me.push(239,191,189);if(ee=null,m<128){if((g-=1)<0)break;me.push(m)}else if(m<2048){if((g-=2)<0)break;me.push(m>>6|192,m&63|128)}else if(m<65536){if((g-=3)<0)break;me.push(m>>12|224,m>>6&63|128,m&63|128)}else if(m<1114112){if((g-=4)<0)break;me.push(m>>18|240,m>>12&63|128,m>>6&63|128,m&63|128)}else throw new Error("Invalid code point")}return me}function G(b){for(var g=[],m=0;m<b.length;++m)g.push(b.charCodeAt(m)&255);return g}function w(b,g){for(var m,I,ee,me=[],Ce=0;Ce<b.length&&!((g-=2)<0);++Ce)m=b.charCodeAt(Ce),I=m>>8,ee=m%256,me.push(ee),me.push(I);return me}function N(b){return t.toByteArray(pe(b))}function K(b,g,m,I){for(var ee=0;ee<I&&!(ee+m>=g.length||ee>=b.length);++ee)g[ee+m]=b[ee];return ee}function Z(b,g){return b instanceof g||b!=null&&b.constructor!=null&&b.constructor.name!=null&&b.constructor.name===g.name}function ce(b){return b!==b}var le=(function(){for(var b="0123456789abcdef",g=new Array(256),m=0;m<16;++m)for(var I=m*16,ee=0;ee<16;++ee)g[I+ee]=b[m]+b[ee];return g})()})(eg)),eg}var tn=h4(),dd={exports:{}},X2;function p4(){return X2||(X2=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r={exports:{}},o=r.exports={},s,c;function l(){throw new Error("setTimeout has not been defined")}function f(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?s=setTimeout:s=l}catch{s=l}try{typeof clearTimeout=="function"?c=clearTimeout:c=f}catch{c=f}})();function p(W){if(s===setTimeout)return setTimeout(W,0);if((s===l||!s)&&setTimeout)return s=setTimeout,setTimeout(W,0);try{return s(W,0)}catch{try{return s.call(null,W,0)}catch{return s.call(this,W,0)}}}function h(W){if(c===clearTimeout)return clearTimeout(W);if((c===f||!c)&&clearTimeout)return c=clearTimeout,clearTimeout(W);try{return c(W)}catch{try{return c.call(null,W)}catch{return c.call(this,W)}}}var A=[],v=!1,x,S=-1;function R(){!v||!x||(v=!1,x.length?A=x.concat(A):S=-1,A.length&&U())}function U(){if(!v){var W=p(R);v=!0;for(var C=A.length;C;){for(x=A,A=[];++S<C;)x&&x[S].run();S=-1,C=A.length}x=null,v=!1,h(W)}}o.nextTick=function(W){var C=new Array(arguments.length-1);if(arguments.length>1)for(var X=1;X<arguments.length;X++)C[X-1]=arguments[X];A.push(new T(W,C)),A.length===1&&!v&&p(U)};function T(W,C){this.fun=W,this.array=C}T.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={};function _(){}o.on=_,o.addListener=_,o.once=_,o.off=_,o.removeListener=_,o.removeAllListeners=_,o.emit=_,o.prependListener=_,o.prependOnceListener=_,o.listeners=function(W){return[]},o.binding=function(W){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(W){throw new Error("process.chdir is not supported")},o.umask=function(){return 0};function M(){}var D=r.exports.browser,$=M,P=r.exports.binding,Y=M,ne=1,te={},B=M,L=M,z=M,H=M,ie=M,de="browser",Ae="browser",O="browser",re=[],he={nextTick:r.exports.nextTick,title:r.exports.title,browser:D,env:r.exports.env,argv:r.exports.argv,version:r.exports.version,versions:r.exports.versions,on:r.exports.on,addListener:r.exports.addListener,once:r.exports.once,off:r.exports.off,removeListener:r.exports.removeListener,removeAllListeners:r.exports.removeAllListeners,emit:r.exports.emit,emitWarning:$,prependListener:r.exports.prependListener,prependOnceListener:r.exports.prependOnceListener,listeners:r.exports.listeners,binding:P,cwd:r.exports.cwd,chdir:r.exports.chdir,umask:r.exports.umask,exit:Y,pid:ne,features:te,kill:B,dlopen:L,uptime:z,memoryUsage:H,uvCounters:ie,platform:de,arch:Ae,execPath:O,execArgv:re};t.addListener=r.exports.addListener,t.arch=Ae,t.argv=r.exports.argv,t.binding=P,t.browser=D,t.chdir=r.exports.chdir,t.cwd=r.exports.cwd,t.default=he,t.dlopen=L,t.emit=r.exports.emit,t.emitWarning=$,t.env=r.exports.env,t.execArgv=re,t.execPath=O,t.exit=Y,t.features=te,t.kill=B,t.listeners=r.exports.listeners,t.memoryUsage=H,t.nextTick=r.exports.nextTick,t.off=r.exports.off,t.on=r.exports.on,t.once=r.exports.once,t.pid=ne,t.platform=de,t.prependListener=r.exports.prependListener,t.prependOnceListener=r.exports.prependOnceListener,t.removeAllListeners=r.exports.removeAllListeners,t.removeListener=r.exports.removeListener,t.title=r.exports.title,t.umask=r.exports.umask,t.uptime=z,t.uvCounters=ie,t.version=r.exports.version,t.versions=r.exports.versions,t=e.exports=he})(dd,dd.exports)),dd.exports}var y4=p4();const st=Vd(y4);(function(e){function t(){var o=this||self;return delete e.prototype.__magic__,o}if(typeof globalThis=="object")return globalThis;if(this)return t();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:t});var r=__magic__;return r})(Object);var We={},Z2;function g4(){if(Z2)return We;Z2=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),l=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),v=Symbol.iterator;function x(C){return C===null||typeof C!="object"?null:(C=v&&C[v]||C["@@iterator"],typeof C=="function"?C:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,U={};function T(C,X,ue){this.props=C,this.context=X,this.refs=U,this.updater=ue||S}T.prototype.isReactComponent={},T.prototype.setState=function(C,X){if(typeof C!="object"&&typeof C!="function"&&C!=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,C,X,"setState")},T.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function _(){}_.prototype=T.prototype;function M(C,X,ue){this.props=C,this.context=X,this.refs=U,this.updater=ue||S}var D=M.prototype=new _;D.constructor=M,R(D,T.prototype),D.isPureReactComponent=!0;var $=Array.isArray,P={H:null,A:null,T:null,S:null,V:null},Y=Object.prototype.hasOwnProperty;function ne(C,X,ue,Q,j,k){return ue=k.ref,{$$typeof:e,type:C,key:X,ref:ue!==void 0?ue:null,props:k}}function te(C,X){return ne(C.type,X,void 0,void 0,void 0,C.props)}function B(C){return typeof C=="object"&&C!==null&&C.$$typeof===e}function L(C){var X={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(ue){return X[ue]})}var z=/\/+/g;function H(C,X){return typeof C=="object"&&C!==null&&C.key!=null?L(""+C.key):X.toString(36)}function ie(){}function de(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(ie,ie):(C.status="pending",C.then(function(X){C.status==="pending"&&(C.status="fulfilled",C.value=X)},function(X){C.status==="pending"&&(C.status="rejected",C.reason=X)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function Ae(C,X,ue,Q,j){var k=typeof C;(k==="undefined"||k==="boolean")&&(C=null);var V=!1;if(C===null)V=!0;else switch(k){case"bigint":case"string":case"number":V=!0;break;case"object":switch(C.$$typeof){case e:case t:V=!0;break;case A:return V=C._init,Ae(V(C._payload),X,ue,Q,j)}}if(V)return j=j(C),V=Q===""?"."+H(C,0):Q,$(j)?(ue="",V!=null&&(ue=V.replace(z,"$&/")+"/"),Ae(j,X,ue,"",function(G){return G})):j!=null&&(B(j)&&(j=te(j,ue+(j.key==null||C&&C.key===j.key?"":(""+j.key).replace(z,"$&/")+"/")+V)),X.push(j)),1;V=0;var pe=Q===""?".":Q+":";if($(C))for(var ye=0;ye<C.length;ye++)Q=C[ye],k=pe+H(Q,ye),V+=Ae(Q,X,ue,k,j);else if(ye=x(C),typeof ye=="function")for(C=ye.call(C),ye=0;!(Q=C.next()).done;)Q=Q.value,k=pe+H(Q,ye++),V+=Ae(Q,X,ue,k,j);else if(k==="object"){if(typeof C.then=="function")return Ae(de(C),X,ue,Q,j);throw X=String(C),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return V}function O(C,X,ue){if(C==null)return C;var Q=[],j=0;return Ae(C,Q,"","",function(k){return X.call(ue,k,j++)}),Q}function re(C){if(C._status===-1){var X=C._result;X=X(),X.then(function(ue){(C._status===0||C._status===-1)&&(C._status=1,C._result=ue)},function(ue){(C._status===0||C._status===-1)&&(C._status=2,C._result=ue)}),C._status===-1&&(C._status=0,C._result=X)}if(C._status===1)return C._result.default;throw C._result}var he=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(X))return}else if(typeof st=="object"&&typeof st.emit=="function"){st.emit("uncaughtException",C);return}console.error(C)};function W(){}return We.Children={map:O,forEach:function(C,X,ue){O(C,function(){X.apply(this,arguments)},ue)},count:function(C){var X=0;return O(C,function(){X++}),X},toArray:function(C){return O(C,function(X){return X})||[]},only:function(C){if(!B(C))throw Error("React.Children.only expected to receive a single React element child.");return C}},We.Component=T,We.Fragment=r,We.Profiler=s,We.PureComponent=M,We.StrictMode=o,We.Suspense=p,We.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,We.__COMPILER_RUNTIME={__proto__:null,c:function(C){return P.H.useMemoCache(C)}},We.cache=function(C){return function(){return C.apply(null,arguments)}},We.cloneElement=function(C,X,ue){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var Q=R({},C.props),j=C.key,k=void 0;if(X!=null)for(V in X.ref!==void 0&&(k=void 0),X.key!==void 0&&(j=""+X.key),X)!Y.call(X,V)||V==="key"||V==="__self"||V==="__source"||V==="ref"&&X.ref===void 0||(Q[V]=X[V]);var V=arguments.length-2;if(V===1)Q.children=ue;else if(1<V){for(var pe=Array(V),ye=0;ye<V;ye++)pe[ye]=arguments[ye+2];Q.children=pe}return ne(C.type,j,void 0,void 0,k,Q)},We.createContext=function(C){return C={$$typeof:l,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:c,_context:C},C},We.createElement=function(C,X,ue){var Q,j={},k=null;if(X!=null)for(Q in X.key!==void 0&&(k=""+X.key),X)Y.call(X,Q)&&Q!=="key"&&Q!=="__self"&&Q!=="__source"&&(j[Q]=X[Q]);var V=arguments.length-2;if(V===1)j.children=ue;else if(1<V){for(var pe=Array(V),ye=0;ye<V;ye++)pe[ye]=arguments[ye+2];j.children=pe}if(C&&C.defaultProps)for(Q in V=C.defaultProps,V)j[Q]===void 0&&(j[Q]=V[Q]);return ne(C,k,void 0,void 0,null,j)},We.createRef=function(){return{current:null}},We.forwardRef=function(C){return{$$typeof:f,render:C}},We.isValidElement=B,We.lazy=function(C){return{$$typeof:A,_payload:{_status:-1,_result:C},_init:re}},We.memo=function(C,X){return{$$typeof:h,type:C,compare:X===void 0?null:X}},We.startTransition=function(C){var X=P.T,ue={};P.T=ue;try{var Q=C(),j=P.S;j!==null&&j(ue,Q),typeof Q=="object"&&Q!==null&&typeof Q.then=="function"&&Q.then(W,he)}catch(k){he(k)}finally{P.T=X}},We.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},We.use=function(C){return P.H.use(C)},We.useActionState=function(C,X,ue){return P.H.useActionState(C,X,ue)},We.useCallback=function(C,X){return P.H.useCallback(C,X)},We.useContext=function(C){return P.H.useContext(C)},We.useDebugValue=function(){},We.useDeferredValue=function(C,X){return P.H.useDeferredValue(C,X)},We.useEffect=function(C,X,ue){var Q=P.H;if(typeof ue=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return Q.useEffect(C,X)},We.useId=function(){return P.H.useId()},We.useImperativeHandle=function(C,X,ue){return P.H.useImperativeHandle(C,X,ue)},We.useInsertionEffect=function(C,X){return P.H.useInsertionEffect(C,X)},We.useLayoutEffect=function(C,X){return P.H.useLayoutEffect(C,X)},We.useMemo=function(C,X){return P.H.useMemo(C,X)},We.useOptimistic=function(C,X){return P.H.useOptimistic(C,X)},We.useReducer=function(C,X,ue){return P.H.useReducer(C,X,ue)},We.useRef=function(C){return P.H.useRef(C)},We.useState=function(C){return P.H.useState(C)},We.useSyncExternalStore=function(C,X,ue){return P.H.useSyncExternalStore(C,X,ue)},We.useTransition=function(){return P.H.useTransition()},We.version="19.1.1",We}var J2;function _1(){return J2||(J2=1,Wy.exports=g4()),Wy.exports}var _e=_1(),tg={exports:{}},Oc={},ng={exports:{}},rg={};/**
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 W2;function m4(){return W2||(W2=1,(function(e){function t(O,re){var he=O.length;O.push(re);e:for(;0<he;){var W=he-1>>>1,C=O[W];if(0<s(C,re))O[W]=re,O[he]=C,he=W;else break e}}function r(O){return O.length===0?null:O[0]}function o(O){if(O.length===0)return null;var re=O[0],he=O.pop();if(he!==re){O[0]=he;e:for(var W=0,C=O.length,X=C>>>1;W<X;){var ue=2*(W+1)-1,Q=O[ue],j=ue+1,k=O[j];if(0>s(Q,he))j<C&&0>s(k,Q)?(O[W]=k,O[j]=he,W=j):(O[W]=Q,O[ue]=he,W=ue);else if(j<C&&0>s(k,he))O[W]=k,O[j]=he,W=j;else break e}}return re}function s(O,re){var he=O.sortIndex-re.sortIndex;return he!==0?he:O.id-re.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var l=Date,f=l.now();e.unstable_now=function(){return l.now()-f}}var p=[],h=[],A=1,v=null,x=3,S=!1,R=!1,U=!1,T=!1,_=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;function $(O){for(var re=r(h);re!==null;){if(re.callback===null)o(h);else if(re.startTime<=O)o(h),re.sortIndex=re.expirationTime,t(p,re);else break;re=r(h)}}function P(O){if(U=!1,$(O),!R)if(r(p)!==null)R=!0,Y||(Y=!0,H());else{var re=r(h);re!==null&&Ae(P,re.startTime-O)}}var Y=!1,ne=-1,te=5,B=-1;function L(){return T?!0:!(e.unstable_now()-B<te)}function z(){if(T=!1,Y){var O=e.unstable_now();B=O;var re=!0;try{e:{R=!1,U&&(U=!1,M(ne),ne=-1),S=!0;var he=x;try{t:{for($(O),v=r(p);v!==null&&!(v.expirationTime>O&&L());){var W=v.callback;if(typeof W=="function"){v.callback=null,x=v.priorityLevel;var C=W(v.expirationTime<=O);if(O=e.unstable_now(),typeof C=="function"){v.callback=C,$(O),re=!0;break t}v===r(p)&&o(p),$(O)}else o(p);v=r(p)}if(v!==null)re=!0;else{var X=r(h);X!==null&&Ae(P,X.startTime-O),re=!1}}break e}finally{v=null,x=he,S=!1}re=void 0}}finally{re?H():Y=!1}}}var H;if(typeof D=="function")H=function(){D(z)};else if(typeof MessageChannel<"u"){var ie=new MessageChannel,de=ie.port2;ie.port1.onmessage=z,H=function(){de.postMessage(null)}}else H=function(){_(z,0)};function Ae(O,re){ne=_(function(){O(e.unstable_now())},re)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(O){O.callback=null},e.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):te=0<O?Math.floor(1e3/O):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_next=function(O){switch(x){case 1:case 2:case 3:var re=3;break;default:re=x}var he=x;x=re;try{return O()}finally{x=he}},e.unstable_requestPaint=function(){T=!0},e.unstable_runWithPriority=function(O,re){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var he=x;x=O;try{return re()}finally{x=he}},e.unstable_scheduleCallback=function(O,re,he){var W=e.unstable_now();switch(typeof he=="object"&&he!==null?(he=he.delay,he=typeof he=="number"&&0<he?W+he:W):he=W,O){case 1:var C=-1;break;case 2:C=250;break;case 5:C=1073741823;break;case 4:C=1e4;break;default:C=5e3}return C=he+C,O={id:A++,callback:re,priorityLevel:O,startTime:he,expirationTime:C,sortIndex:-1},he>W?(O.sortIndex=he,t(h,O),r(p)===null&&O===r(h)&&(U?(M(ne),ne=-1):U=!0,Ae(P,he-W))):(O.sortIndex=C,t(p,O),R||S||(R=!0,Y||(Y=!0,H()))),O},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(O){var re=x;return function(){var he=x;x=re;try{return O.apply(this,arguments)}finally{x=he}}}})(rg)),rg}var eI;function A4(){return eI||(eI=1,ng.exports=m4()),ng.exports}var ig={exports:{}},qn={};/**
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 tI;function b4(){if(tI)return qn;tI=1;var e=_1();function t(p){var h="https://react.dev/errors/"+p;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 #"+p+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var o={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},s=Symbol.for("react.portal");function c(p,h,A){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:v==null?null:""+v,children:p,containerInfo:h,implementation:A}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(p,h){if(p==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return qn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,qn.createPortal=function(p,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(p,h,null,A)},qn.flushSync=function(p){var h=l.T,A=o.p;try{if(l.T=null,o.p=2,p)return p()}finally{l.T=h,o.p=A,o.d.f()}},qn.preconnect=function(p,h){typeof p=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,o.d.C(p,h))},qn.prefetchDNS=function(p){typeof p=="string"&&o.d.D(p)},qn.preinit=function(p,h){if(typeof p=="string"&&h&&typeof h.as=="string"){var A=h.as,v=f(A,h.crossOrigin),x=typeof h.integrity=="string"?h.integrity:void 0,S=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;A==="style"?o.d.S(p,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:v,integrity:x,fetchPriority:S}):A==="script"&&o.d.X(p,{crossOrigin:v,integrity:x,fetchPriority:S,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},qn.preinitModule=function(p,h){if(typeof p=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var A=f(h.as,h.crossOrigin);o.d.M(p,{crossOrigin:A,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&o.d.M(p)},qn.preload=function(p,h){if(typeof p=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var A=h.as,v=f(A,h.crossOrigin);o.d.L(p,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})}},qn.preloadModule=function(p,h){if(typeof p=="string")if(h){var A=f(h.as,h.crossOrigin);o.d.m(p,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:A,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else o.d.m(p)},qn.requestFormReset=function(p){o.d.r(p)},qn.unstable_batchedUpdates=function(p,h){return p(h)},qn.useFormState=function(p,h,A){return l.H.useFormState(p,h,A)},qn.useFormStatus=function(){return l.H.useHostTransitionStatus()},qn.version="19.1.1",qn}var nI;function tB(){if(nI)return ig.exports;nI=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(),ig.exports=b4(),ig.exports}var rI;function x4(){if(rI)return Oc;rI=1;var e=A4(),t=_1(),r=tB();function o(n){var i="https://react.dev/errors/"+n;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)i+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+n+"; visit "+i+" 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 i=n,a=n;if(n.alternate)for(;i.return;)i=i.return;else{n=i;do i=n,(i.flags&4098)!==0&&(a=i.return),n=i.return;while(n)}return i.tag===3?a:null}function l(n){if(n.tag===13){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function f(n){if(c(n)!==n)throw Error(o(188))}function p(n){var i=n.alternate;if(!i){if(i=c(n),i===null)throw Error(o(188));return i!==n?null:n}for(var a=n,u=i;;){var d=a.return;if(d===null)break;var y=d.alternate;if(y===null){if(u=d.return,u!==null){a=u;continue}break}if(d.child===y.child){for(y=d.child;y;){if(y===a)return f(d),n;if(y===u)return f(d),i;y=y.sibling}throw Error(o(188))}if(a.return!==u.return)a=d,u=y;else{for(var F=!1,q=d.child;q;){if(q===a){F=!0,a=d,u=y;break}if(q===u){F=!0,u=d,a=y;break}q=q.sibling}if(!F){for(q=y.child;q;){if(q===a){F=!0,a=y,u=d;break}if(q===u){F=!0,u=y,a=d;break}q=q.sibling}if(!F)throw Error(o(189))}}if(a.alternate!==u)throw Error(o(190))}if(a.tag!==3)throw Error(o(188));return a.stateNode.current===a?n:i}function h(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n;for(n=n.child;n!==null;){if(i=h(n),i!==null)return i;n=n.sibling}return null}var A=Object.assign,v=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),M=Symbol.for("react.consumer"),D=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),Y=Symbol.for("react.suspense_list"),ne=Symbol.for("react.memo"),te=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),L=Symbol.for("react.memo_cache_sentinel"),z=Symbol.iterator;function H(n){return n===null||typeof n!="object"?null:(n=z&&n[z]||n["@@iterator"],typeof n=="function"?n:null)}var ie=Symbol.for("react.client.reference");function de(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===ie?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case R:return"Fragment";case T:return"Profiler";case U:return"StrictMode";case P:return"Suspense";case Y:return"SuspenseList";case B:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case S:return"Portal";case D:return(n.displayName||"Context")+".Provider";case M:return(n._context.displayName||"Context")+".Consumer";case $:var i=n.render;return n=n.displayName,n||(n=i.displayName||i.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case ne:return i=n.displayName||null,i!==null?i:de(n.type)||"Memo";case te:i=n._payload,n=n._init;try{return de(n(i))}catch{}}return null}var Ae=Array.isArray,O=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,he={pending:!1,data:null,method:null,action:null},W=[],C=-1;function X(n){return{current:n}}function ue(n){0>C||(n.current=W[C],W[C]=null,C--)}function Q(n,i){C++,W[C]=n.current,n.current=i}var j=X(null),k=X(null),V=X(null),pe=X(null);function ye(n,i){switch(Q(V,i),Q(k,n),Q(j,null),i.nodeType){case 9:case 11:n=(n=i.documentElement)&&(n=n.namespaceURI)?A2(n):0;break;default:if(n=i.tagName,i=i.namespaceURI)i=A2(i),n=b2(i,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}ue(j),Q(j,n)}function G(){ue(j),ue(k),ue(V)}function w(n){n.memoizedState!==null&&Q(pe,n);var i=j.current,a=b2(i,n.type);i!==a&&(Q(k,n),Q(j,a))}function N(n){k.current===n&&(ue(j),ue(k)),pe.current===n&&(ue(pe),xc._currentValue=he)}var K=Object.prototype.hasOwnProperty,Z=e.unstable_scheduleCallback,ce=e.unstable_cancelCallback,le=e.unstable_shouldYield,b=e.unstable_requestPaint,g=e.unstable_now,m=e.unstable_getCurrentPriorityLevel,I=e.unstable_ImmediatePriority,ee=e.unstable_UserBlockingPriority,me=e.unstable_NormalPriority,Ce=e.unstable_LowPriority,je=e.unstable_IdlePriority,ae=e.log,se=e.unstable_setDisableYieldValue,Ee=null,Fe=null;function Me(n){if(typeof ae=="function"&&se(n),Fe&&typeof Fe.setStrictMode=="function")try{Fe.setStrictMode(Ee,n)}catch{}}var qe=Math.clz32?Math.clz32:Qe,ke=Math.log,Ge=Math.LN2;function Qe(n){return n>>>=0,n===0?32:31-(ke(n)/Ge|0)|0}var Ze=256,Je=4194304;function ft(n){var i=n&42;if(i!==0)return i;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 pt(n,i,a){var u=n.pendingLanes;if(u===0)return 0;var d=0,y=n.suspendedLanes,F=n.pingedLanes;n=n.warmLanes;var q=u&134217727;return q!==0?(u=q&~y,u!==0?d=ft(u):(F&=q,F!==0?d=ft(F):a||(a=q&~n,a!==0&&(d=ft(a))))):(q=u&~y,q!==0?d=ft(q):F!==0?d=ft(F):a||(a=u&~n,a!==0&&(d=ft(a)))),d===0?0:i!==0&&i!==d&&(i&y)===0&&(y=d&-d,a=i&-i,y>=a||y===32&&(a&4194048)!==0)?i:d}function gt(n,i){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&i)===0}function mt(n,i){switch(n){case 1:case 2:case 4:case 8:case 64:return i+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 i+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 xt(){var n=Ze;return Ze<<=1,(Ze&4194048)===0&&(Ze=256),n}function qt(){var n=Je;return Je<<=1,(Je&62914560)===0&&(Je=4194304),n}function Dt(n){for(var i=[],a=0;31>a;a++)i.push(n);return i}function _t(n,i){n.pendingLanes|=i,i!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function Qt(n,i,a,u,d,y){var F=n.pendingLanes;n.pendingLanes=a,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=a,n.entangledLanes&=a,n.errorRecoveryDisabledLanes&=a,n.shellSuspendCounter=0;var q=n.entanglements,oe=n.expirationTimes,xe=n.hiddenUpdates;for(a=F&~a;0<a;){var Re=31-qe(a),Te=1<<Re;q[Re]=0,oe[Re]=-1;var ve=xe[Re];if(ve!==null)for(xe[Re]=null,Re=0;Re<ve.length;Re++){var Ie=ve[Re];Ie!==null&&(Ie.lane&=-536870913)}a&=~Te}u!==0&&$t(n,u,0),y!==0&&d===0&&n.tag!==0&&(n.suspendedLanes|=y&~(F&~i))}function $t(n,i,a){n.pendingLanes|=i,n.suspendedLanes&=~i;var u=31-qe(i);n.entangledLanes|=i,n.entanglements[u]=n.entanglements[u]|1073741824|a&4194090}function kt(n,i){var a=n.entangledLanes|=i;for(n=n.entanglements;a;){var u=31-qe(a),d=1<<u;d&i|n[u]&i&&(n[u]|=i),a&=~d}}function Ut(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 mo(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function aa(){var n=re.p;return n!==0?n:(n=window.event,n===void 0?32:N2(n.type))}function os(n,i){var a=re.p;try{return re.p=n,i()}finally{re.p=a}}var fr=Math.random().toString(36).slice(2),Jt="__reactFiber$"+fr,dn="__reactProps$"+fr,Yr="__reactContainer$"+fr,Ao="__reactEvents$"+fr,as="__reactListeners$"+fr,ss="__reactHandles$"+fr,sa="__reactResources$"+fr,gi="__reactMarker$"+fr;function bo(n){delete n[Jt],delete n[dn],delete n[Ao],delete n[as],delete n[ss]}function Xr(n){var i=n[Jt];if(i)return i;for(var a=n.parentNode;a;){if(i=a[Yr]||a[Jt]){if(a=i.alternate,i.child!==null||a!==null&&a.child!==null)for(n=w2(n);n!==null;){if(a=n[Jt])return a;n=w2(n)}return i}n=a,a=n.parentNode}return null}function Zr(n){if(n=n[Jt]||n[Yr]){var i=n.tag;if(i===5||i===6||i===13||i===26||i===27||i===3)return n}return null}function mi(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n.stateNode;throw Error(o(33))}function Jr(n){var i=n[sa];return i||(i=n[sa]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function Ht(n){n[gi]=!0}var ua=new Set,ca={};function Mr(n,i){Wr(n,i),Wr(n+"Capture",i)}function Wr(n,i){for(ca[n]=i,n=0;n<i.length;n++)ua.add(i[n])}var us=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]*$"),la={},fa={};function cs(n){return K.call(fa,n)?!0:K.call(la,n)?!1:us.test(n)?fa[n]=!0:(la[n]=!0,!1)}function Di(n,i,a){if(cs(i))if(a===null)n.removeAttribute(i);else{switch(typeof a){case"undefined":case"function":case"symbol":n.removeAttribute(i);return;case"boolean":var u=i.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){n.removeAttribute(i);return}}n.setAttribute(i,""+a)}}function tf(n,i,a){if(a===null)n.removeAttribute(i);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(i);return}n.setAttribute(i,""+a)}}function Ui(n,i,a,u){if(u===null)n.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(a);return}n.setAttributeNS(i,a,""+u)}}var Gh,fv;function ls(n){if(Gh===void 0)try{throw Error()}catch(a){var i=a.stack.trim().match(/\n( *(at )?)/);Gh=i&&i[1]||"",fv=-1<a.stack.indexOf(`
31
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
32
+ `+Gh+n+fv}var Qh=!1;function Kh(n,i){if(!n||Qh)return"";Qh=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(i){var Te=function(){throw Error()};if(Object.defineProperty(Te.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Te,[])}catch(Ie){var ve=Ie}Reflect.construct(n,[],Te)}else{try{Te.call()}catch(Ie){ve=Ie}n.call(Te.prototype)}}else{try{throw Error()}catch(Ie){ve=Ie}(Te=n())&&typeof Te.catch=="function"&&Te.catch(function(){})}}catch(Ie){if(Ie&&ve&&typeof Ie.stack=="string")return[Ie.stack,ve.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=u.DetermineComponentFrameRoot(),F=y[0],q=y[1];if(F&&q){var oe=F.split(`
33
+ `),xe=q.split(`
34
+ `);for(d=u=0;u<oe.length&&!oe[u].includes("DetermineComponentFrameRoot");)u++;for(;d<xe.length&&!xe[d].includes("DetermineComponentFrameRoot");)d++;if(u===oe.length||d===xe.length)for(u=oe.length-1,d=xe.length-1;1<=u&&0<=d&&oe[u]!==xe[d];)d--;for(;1<=u&&0<=d;u--,d--)if(oe[u]!==xe[d]){if(u!==1||d!==1)do if(u--,d--,0>d||oe[u]!==xe[d]){var Re=`
35
+ `+oe[u].replace(" at new "," at ");return n.displayName&&Re.includes("<anonymous>")&&(Re=Re.replace("<anonymous>",n.displayName)),Re}while(1<=u&&0<=d);break}}}finally{Qh=!1,Error.prepareStackTrace=a}return(a=n?n.displayName||n.name:"")?ls(a):""}function r6(n){switch(n.tag){case 26:case 27:case 5:return ls(n.type);case 16:return ls("Lazy");case 13:return ls("Suspense");case 19:return ls("SuspenseList");case 0:case 15:return Kh(n.type,!1);case 11:return Kh(n.type.render,!1);case 1:return Kh(n.type,!0);case 31:return ls("Activity");default:return""}}function dv(n){try{var i="";do i+=r6(n),n=n.return;while(n);return i}catch(a){return`
36
+ Error generating stack: `+a.message+`
37
+ `+a.stack}}function Dr(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function hv(n){var i=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function i6(n){var i=hv(n)?"checked":"value",a=Object.getOwnPropertyDescriptor(n.constructor.prototype,i),u=""+n[i];if(!n.hasOwnProperty(i)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var d=a.get,y=a.set;return Object.defineProperty(n,i,{configurable:!0,get:function(){return d.call(this)},set:function(F){u=""+F,y.call(this,F)}}),Object.defineProperty(n,i,{enumerable:a.enumerable}),{getValue:function(){return u},setValue:function(F){u=""+F},stopTracking:function(){n._valueTracker=null,delete n[i]}}}}function nf(n){n._valueTracker||(n._valueTracker=i6(n))}function pv(n){if(!n)return!1;var i=n._valueTracker;if(!i)return!0;var a=i.getValue(),u="";return n&&(u=hv(n)?n.checked?"true":"false":n.value),n=u,n!==a?(i.setValue(n),!0):!1}function rf(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 o6=/[\n"\\]/g;function Ur(n){return n.replace(o6,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function Vh(n,i,a,u,d,y,F,q){n.name="",F!=null&&typeof F!="function"&&typeof F!="symbol"&&typeof F!="boolean"?n.type=F:n.removeAttribute("type"),i!=null?F==="number"?(i===0&&n.value===""||n.value!=i)&&(n.value=""+Dr(i)):n.value!==""+Dr(i)&&(n.value=""+Dr(i)):F!=="submit"&&F!=="reset"||n.removeAttribute("value"),i!=null?Yh(n,F,Dr(i)):a!=null?Yh(n,F,Dr(a)):u!=null&&n.removeAttribute("value"),d==null&&y!=null&&(n.defaultChecked=!!y),d!=null&&(n.checked=d&&typeof d!="function"&&typeof d!="symbol"),q!=null&&typeof q!="function"&&typeof q!="symbol"&&typeof q!="boolean"?n.name=""+Dr(q):n.removeAttribute("name")}function yv(n,i,a,u,d,y,F,q){if(y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(n.type=y),i!=null||a!=null){if(!(y!=="submit"&&y!=="reset"||i!=null))return;a=a!=null?""+Dr(a):"",i=i!=null?""+Dr(i):a,q||i===n.value||(n.value=i),n.defaultValue=i}u=u??d,u=typeof u!="function"&&typeof u!="symbol"&&!!u,n.checked=q?n.checked:!!u,n.defaultChecked=!!u,F!=null&&typeof F!="function"&&typeof F!="symbol"&&typeof F!="boolean"&&(n.name=F)}function Yh(n,i,a){i==="number"&&rf(n.ownerDocument)===n||n.defaultValue===""+a||(n.defaultValue=""+a)}function fs(n,i,a,u){if(n=n.options,i){i={};for(var d=0;d<a.length;d++)i["$"+a[d]]=!0;for(a=0;a<n.length;a++)d=i.hasOwnProperty("$"+n[a].value),n[a].selected!==d&&(n[a].selected=d),d&&u&&(n[a].defaultSelected=!0)}else{for(a=""+Dr(a),i=null,d=0;d<n.length;d++){if(n[d].value===a){n[d].selected=!0,u&&(n[d].defaultSelected=!0);return}i!==null||n[d].disabled||(i=n[d])}i!==null&&(i.selected=!0)}}function gv(n,i,a){if(i!=null&&(i=""+Dr(i),i!==n.value&&(n.value=i),a==null)){n.defaultValue!==i&&(n.defaultValue=i);return}n.defaultValue=a!=null?""+Dr(a):""}function mv(n,i,a,u){if(i==null){if(u!=null){if(a!=null)throw Error(o(92));if(Ae(u)){if(1<u.length)throw Error(o(93));u=u[0]}a=u}a==null&&(a=""),i=a}a=Dr(i),n.defaultValue=a,u=n.textContent,u===a&&u!==""&&u!==null&&(n.value=u)}function ds(n,i){if(i){var a=n.firstChild;if(a&&a===n.lastChild&&a.nodeType===3){a.nodeValue=i;return}}n.textContent=i}var a6=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 Av(n,i,a){var u=i.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?u?n.setProperty(i,""):i==="float"?n.cssFloat="":n[i]="":u?n.setProperty(i,a):typeof a!="number"||a===0||a6.has(i)?i==="float"?n.cssFloat=a:n[i]=(""+a).trim():n[i]=a+"px"}function bv(n,i,a){if(i!=null&&typeof i!="object")throw Error(o(62));if(n=n.style,a!=null){for(var u in a)!a.hasOwnProperty(u)||i!=null&&i.hasOwnProperty(u)||(u.indexOf("--")===0?n.setProperty(u,""):u==="float"?n.cssFloat="":n[u]="");for(var d in i)u=i[d],i.hasOwnProperty(d)&&a[d]!==u&&Av(n,d,u)}else for(var y in i)i.hasOwnProperty(y)&&Av(n,y,i[y])}function Xh(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 s6=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"]]),u6=/^[\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 of(n){return u6.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}var Zh=null;function Jh(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var hs=null,ps=null;function xv(n){var i=Zr(n);if(i&&(n=i.stateNode)){var a=n[dn]||null;e:switch(n=i.stateNode,i.type){case"input":if(Vh(n,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),i=a.name,a.type==="radio"&&i!=null){for(a=n;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Ur(""+i)+'"][type="radio"]'),i=0;i<a.length;i++){var u=a[i];if(u!==n&&u.form===n.form){var d=u[dn]||null;if(!d)throw Error(o(90));Vh(u,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(i=0;i<a.length;i++)u=a[i],u.form===n.form&&pv(u)}break e;case"textarea":gv(n,a.value,a.defaultValue);break e;case"select":i=a.value,i!=null&&fs(n,!!a.multiple,i,!1)}}}var Wh=!1;function vv(n,i,a){if(Wh)return n(i,a);Wh=!0;try{var u=n(i);return u}finally{if(Wh=!1,(hs!==null||ps!==null)&&(zf(),hs&&(i=hs,n=ps,ps=hs=null,xv(i),n)))for(i=0;i<n.length;i++)xv(n[i])}}function Mu(n,i){var a=n.stateNode;if(a===null)return null;var u=a[dn]||null;if(u===null)return null;a=u[i];e:switch(i){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(a&&typeof a!="function")throw Error(o(231,i,typeof a));return a}var Pi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ep=!1;if(Pi)try{var Du={};Object.defineProperty(Du,"passive",{get:function(){ep=!0}}),window.addEventListener("test",Du,Du),window.removeEventListener("test",Du,Du)}catch{ep=!1}var xo=null,tp=null,af=null;function Ev(){if(af)return af;var n,i=tp,a=i.length,u,d="value"in xo?xo.value:xo.textContent,y=d.length;for(n=0;n<a&&i[n]===d[n];n++);var F=a-n;for(u=1;u<=F&&i[a-u]===d[y-u];u++);return af=d.slice(n,1<u?1-u:void 0)}function sf(n){var i=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&i===13&&(n=13)):n=i,n===10&&(n=13),32<=n||n===13?n:0}function uf(){return!0}function wv(){return!1}function Zn(n){function i(a,u,d,y,F){this._reactName=a,this._targetInst=d,this.type=u,this.nativeEvent=y,this.target=F,this.currentTarget=null;for(var q in n)n.hasOwnProperty(q)&&(a=n[q],this[q]=a?a(y):y[q]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?uf:wv,this.isPropagationStopped=wv,this}return A(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=uf)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=uf)},persist:function(){},isPersistent:uf}),i}var da={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cf=Zn(da),Uu=A({},da,{view:0,detail:0}),c6=Zn(Uu),np,rp,Pu,lf=A({},Uu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:op,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!==Pu&&(Pu&&n.type==="mousemove"?(np=n.screenX-Pu.screenX,rp=n.screenY-Pu.screenY):rp=np=0,Pu=n),np)},movementY:function(n){return"movementY"in n?n.movementY:rp}}),Iv=Zn(lf),l6=A({},lf,{dataTransfer:0}),f6=Zn(l6),d6=A({},Uu,{relatedTarget:0}),ip=Zn(d6),h6=A({},da,{animationName:0,elapsedTime:0,pseudoElement:0}),p6=Zn(h6),y6=A({},da,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),g6=Zn(y6),m6=A({},da,{data:0}),Sv=Zn(m6),A6={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},b6={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"},x6={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function v6(n){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(n):(n=x6[n])?!!i[n]:!1}function op(){return v6}var E6=A({},Uu,{key:function(n){if(n.key){var i=A6[n.key]||n.key;if(i!=="Unidentified")return i}return n.type==="keypress"?(n=sf(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?b6[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:op,charCode:function(n){return n.type==="keypress"?sf(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?sf(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),w6=Zn(E6),I6=A({},lf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Cv=Zn(I6),S6=A({},Uu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:op}),C6=Zn(S6),O6=A({},da,{propertyName:0,elapsedTime:0,pseudoElement:0}),F6=Zn(O6),R6=A({},lf,{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}),B6=Zn(R6),T6=A({},da,{newState:0,oldState:0}),_6=Zn(T6),M6=[9,13,27,32],ap=Pi&&"CompositionEvent"in window,ju=null;Pi&&"documentMode"in document&&(ju=document.documentMode);var D6=Pi&&"TextEvent"in window&&!ju,Ov=Pi&&(!ap||ju&&8<ju&&11>=ju),Fv=" ",Rv=!1;function Bv(n,i){switch(n){case"keyup":return M6.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tv(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var ys=!1;function U6(n,i){switch(n){case"compositionend":return Tv(i);case"keypress":return i.which!==32?null:(Rv=!0,Fv);case"textInput":return n=i.data,n===Fv&&Rv?null:n;default:return null}}function P6(n,i){if(ys)return n==="compositionend"||!ap&&Bv(n,i)?(n=Ev(),af=tp=xo=null,ys=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return Ov&&i.locale!=="ko"?null:i.data;default:return null}}var j6={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 _v(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i==="input"?!!j6[n.type]:i==="textarea"}function Mv(n,i,a,u){hs?ps?ps.push(u):ps=[u]:hs=u,i=Xf(i,"onChange"),0<i.length&&(a=new cf("onChange","change",null,a,u),n.push({event:a,listeners:i}))}var Nu=null,Lu=null;function N6(n){h2(n,0)}function ff(n){var i=mi(n);if(pv(i))return n}function Dv(n,i){if(n==="change")return i}var Uv=!1;if(Pi){var sp;if(Pi){var up="oninput"in document;if(!up){var Pv=document.createElement("div");Pv.setAttribute("oninput","return;"),up=typeof Pv.oninput=="function"}sp=up}else sp=!1;Uv=sp&&(!document.documentMode||9<document.documentMode)}function jv(){Nu&&(Nu.detachEvent("onpropertychange",Nv),Lu=Nu=null)}function Nv(n){if(n.propertyName==="value"&&ff(Lu)){var i=[];Mv(i,Lu,n,Jh(n)),vv(N6,i)}}function L6(n,i,a){n==="focusin"?(jv(),Nu=i,Lu=a,Nu.attachEvent("onpropertychange",Nv)):n==="focusout"&&jv()}function q6(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return ff(Lu)}function $6(n,i){if(n==="click")return ff(i)}function k6(n,i){if(n==="input"||n==="change")return ff(i)}function H6(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var dr=typeof Object.is=="function"?Object.is:H6;function qu(n,i){if(dr(n,i))return!0;if(typeof n!="object"||n===null||typeof i!="object"||i===null)return!1;var a=Object.keys(n),u=Object.keys(i);if(a.length!==u.length)return!1;for(u=0;u<a.length;u++){var d=a[u];if(!K.call(i,d)||!dr(n[d],i[d]))return!1}return!0}function Lv(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function qv(n,i){var a=Lv(n);n=0;for(var u;a;){if(a.nodeType===3){if(u=n+a.textContent.length,n<=i&&u>=i)return{node:a,offset:i-n};n=u}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Lv(a)}}function $v(n,i){return n&&i?n===i?!0:n&&n.nodeType===3?!1:i&&i.nodeType===3?$v(n,i.parentNode):"contains"in n?n.contains(i):n.compareDocumentPosition?!!(n.compareDocumentPosition(i)&16):!1:!1}function kv(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var i=rf(n.document);i instanceof n.HTMLIFrameElement;){try{var a=typeof i.contentWindow.location.href=="string"}catch{a=!1}if(a)n=i.contentWindow;else break;i=rf(n.document)}return i}function cp(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i&&(i==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||i==="textarea"||n.contentEditable==="true")}var z6=Pi&&"documentMode"in document&&11>=document.documentMode,gs=null,lp=null,$u=null,fp=!1;function Hv(n,i,a){var u=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;fp||gs==null||gs!==rf(u)||(u=gs,"selectionStart"in u&&cp(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&&qu($u,u)||($u=u,u=Xf(lp,"onSelect"),0<u.length&&(i=new cf("onSelect","select",null,i,a),n.push({event:i,listeners:u}),i.target=gs)))}function ha(n,i){var a={};return a[n.toLowerCase()]=i.toLowerCase(),a["Webkit"+n]="webkit"+i,a["Moz"+n]="moz"+i,a}var ms={animationend:ha("Animation","AnimationEnd"),animationiteration:ha("Animation","AnimationIteration"),animationstart:ha("Animation","AnimationStart"),transitionrun:ha("Transition","TransitionRun"),transitionstart:ha("Transition","TransitionStart"),transitioncancel:ha("Transition","TransitionCancel"),transitionend:ha("Transition","TransitionEnd")},dp={},zv={};Pi&&(zv=document.createElement("div").style,"AnimationEvent"in window||(delete ms.animationend.animation,delete ms.animationiteration.animation,delete ms.animationstart.animation),"TransitionEvent"in window||delete ms.transitionend.transition);function pa(n){if(dp[n])return dp[n];if(!ms[n])return n;var i=ms[n],a;for(a in i)if(i.hasOwnProperty(a)&&a in zv)return dp[n]=i[a];return n}var Gv=pa("animationend"),Qv=pa("animationiteration"),Kv=pa("animationstart"),G6=pa("transitionrun"),Q6=pa("transitionstart"),K6=pa("transitioncancel"),Vv=pa("transitionend"),Yv=new Map,hp="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(" ");hp.push("scrollEnd");function ei(n,i){Yv.set(n,i),Mr(i,[n])}var Xv=new WeakMap;function Pr(n,i){if(typeof n=="object"&&n!==null){var a=Xv.get(n);return a!==void 0?a:(i={value:n,source:i,stack:dv(i)},Xv.set(n,i),i)}return{value:n,source:i,stack:dv(i)}}var jr=[],As=0,pp=0;function df(){for(var n=As,i=pp=As=0;i<n;){var a=jr[i];jr[i++]=null;var u=jr[i];jr[i++]=null;var d=jr[i];jr[i++]=null;var y=jr[i];if(jr[i++]=null,u!==null&&d!==null){var F=u.pending;F===null?d.next=d:(d.next=F.next,F.next=d),u.pending=d}y!==0&&Zv(a,d,y)}}function hf(n,i,a,u){jr[As++]=n,jr[As++]=i,jr[As++]=a,jr[As++]=u,pp|=u,n.lanes|=u,n=n.alternate,n!==null&&(n.lanes|=u)}function yp(n,i,a,u){return hf(n,i,a,u),pf(n)}function bs(n,i){return hf(n,null,null,i),pf(n)}function Zv(n,i,a){n.lanes|=a;var u=n.alternate;u!==null&&(u.lanes|=a);for(var d=!1,y=n.return;y!==null;)y.childLanes|=a,u=y.alternate,u!==null&&(u.childLanes|=a),y.tag===22&&(n=y.stateNode,n===null||n._visibility&1||(d=!0)),n=y,y=y.return;return n.tag===3?(y=n.stateNode,d&&i!==null&&(d=31-qe(a),n=y.hiddenUpdates,u=n[d],u===null?n[d]=[i]:u.push(i),i.lane=a|536870912),y):null}function pf(n){if(50<dc)throw dc=0,vy=null,Error(o(185));for(var i=n.return;i!==null;)n=i,i=n.return;return n.tag===3?n.stateNode:null}var xs={};function V6(n,i,a,u){this.tag=n,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,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 hr(n,i,a,u){return new V6(n,i,a,u)}function gp(n){return n=n.prototype,!(!n||!n.isReactComponent)}function ji(n,i){var a=n.alternate;return a===null?(a=hr(n.tag,i,n.key,n.mode),a.elementType=n.elementType,a.type=n.type,a.stateNode=n.stateNode,a.alternate=n,n.alternate=a):(a.pendingProps=i,a.type=n.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=n.flags&65011712,a.childLanes=n.childLanes,a.lanes=n.lanes,a.child=n.child,a.memoizedProps=n.memoizedProps,a.memoizedState=n.memoizedState,a.updateQueue=n.updateQueue,i=n.dependencies,a.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},a.sibling=n.sibling,a.index=n.index,a.ref=n.ref,a.refCleanup=n.refCleanup,a}function Jv(n,i){n.flags&=65011714;var a=n.alternate;return a===null?(n.childLanes=0,n.lanes=i,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=a.childLanes,n.lanes=a.lanes,n.child=a.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=a.memoizedProps,n.memoizedState=a.memoizedState,n.updateQueue=a.updateQueue,n.type=a.type,i=a.dependencies,n.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),n}function yf(n,i,a,u,d,y){var F=0;if(u=n,typeof n=="function")gp(n)&&(F=1);else if(typeof n=="string")F=X8(n,a,j.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case B:return n=hr(31,a,i,d),n.elementType=B,n.lanes=y,n;case R:return ya(a.children,d,y,i);case U:F=8,d|=24;break;case T:return n=hr(12,a,i,d|2),n.elementType=T,n.lanes=y,n;case P:return n=hr(13,a,i,d),n.elementType=P,n.lanes=y,n;case Y:return n=hr(19,a,i,d),n.elementType=Y,n.lanes=y,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case _:case D:F=10;break e;case M:F=9;break e;case $:F=11;break e;case ne:F=14;break e;case te:F=16,u=null;break e}F=29,a=Error(o(130,n===null?"null":typeof n,"")),u=null}return i=hr(F,a,i,d),i.elementType=n,i.type=u,i.lanes=y,i}function ya(n,i,a,u){return n=hr(7,n,u,i),n.lanes=a,n}function mp(n,i,a){return n=hr(6,n,null,i),n.lanes=a,n}function Ap(n,i,a){return i=hr(4,n.children!==null?n.children:[],n.key,i),i.lanes=a,i.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},i}var vs=[],Es=0,gf=null,mf=0,Nr=[],Lr=0,ga=null,Ni=1,Li="";function ma(n,i){vs[Es++]=mf,vs[Es++]=gf,gf=n,mf=i}function Wv(n,i,a){Nr[Lr++]=Ni,Nr[Lr++]=Li,Nr[Lr++]=ga,ga=n;var u=Ni;n=Li;var d=32-qe(u)-1;u&=~(1<<d),a+=1;var y=32-qe(i)+d;if(30<y){var F=d-d%5;y=(u&(1<<F)-1).toString(32),u>>=F,d-=F,Ni=1<<32-qe(i)+d|a<<d|u,Li=y+n}else Ni=1<<y|a<<d|u,Li=n}function bp(n){n.return!==null&&(ma(n,1),Wv(n,1,0))}function xp(n){for(;n===gf;)gf=vs[--Es],vs[Es]=null,mf=vs[--Es],vs[Es]=null;for(;n===ga;)ga=Nr[--Lr],Nr[Lr]=null,Li=Nr[--Lr],Nr[Lr]=null,Ni=Nr[--Lr],Nr[Lr]=null}var Qn=null,Kt=null,bt=!1,Aa=null,Ai=!1,vp=Error(o(519));function ba(n){var i=Error(o(418,""));throw zu(Pr(i,n)),vp}function eE(n){var i=n.stateNode,a=n.type,u=n.memoizedProps;switch(i[Jt]=n,i[dn]=u,a){case"dialog":it("cancel",i),it("close",i);break;case"iframe":case"object":case"embed":it("load",i);break;case"video":case"audio":for(a=0;a<pc.length;a++)it(pc[a],i);break;case"source":it("error",i);break;case"img":case"image":case"link":it("error",i),it("load",i);break;case"details":it("toggle",i);break;case"input":it("invalid",i),yv(i,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0),nf(i);break;case"select":it("invalid",i);break;case"textarea":it("invalid",i),mv(i,u.value,u.defaultValue,u.children),nf(i)}a=u.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||i.textContent===""+a||u.suppressHydrationWarning===!0||m2(i.textContent,a)?(u.popover!=null&&(it("beforetoggle",i),it("toggle",i)),u.onScroll!=null&&it("scroll",i),u.onScrollEnd!=null&&it("scrollend",i),u.onClick!=null&&(i.onclick=Zf),i=!0):i=!1,i||ba(n)}function tE(n){for(Qn=n.return;Qn;)switch(Qn.tag){case 5:case 13:Ai=!1;return;case 27:case 3:Ai=!0;return;default:Qn=Qn.return}}function ku(n){if(n!==Qn)return!1;if(!bt)return tE(n),bt=!0,!1;var i=n.tag,a;if((a=i!==3&&i!==27)&&((a=i===5)&&(a=n.type,a=!(a!=="form"&&a!=="button")||jy(n.type,n.memoizedProps)),a=!a),a&&Kt&&ba(n),tE(n),i===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(o(317));e:{for(n=n.nextSibling,i=0;n;){if(n.nodeType===8)if(a=n.data,a==="/$"){if(i===0){Kt=ni(n.nextSibling);break e}i--}else a!=="$"&&a!=="$!"&&a!=="$?"||i++;n=n.nextSibling}Kt=null}}else i===27?(i=Kt,Po(n.type)?(n=$y,$y=null,Kt=n):Kt=i):Kt=Qn?ni(n.stateNode.nextSibling):null;return!0}function Hu(){Kt=Qn=null,bt=!1}function nE(){var n=Aa;return n!==null&&(er===null?er=n:er.push.apply(er,n),Aa=null),n}function zu(n){Aa===null?Aa=[n]:Aa.push(n)}var Ep=X(null),xa=null,qi=null;function vo(n,i,a){Q(Ep,i._currentValue),i._currentValue=a}function $i(n){n._currentValue=Ep.current,ue(Ep)}function wp(n,i,a){for(;n!==null;){var u=n.alternate;if((n.childLanes&i)!==i?(n.childLanes|=i,u!==null&&(u.childLanes|=i)):u!==null&&(u.childLanes&i)!==i&&(u.childLanes|=i),n===a)break;n=n.return}}function Ip(n,i,a,u){var d=n.child;for(d!==null&&(d.return=n);d!==null;){var y=d.dependencies;if(y!==null){var F=d.child;y=y.firstContext;e:for(;y!==null;){var q=y;y=d;for(var oe=0;oe<i.length;oe++)if(q.context===i[oe]){y.lanes|=a,q=y.alternate,q!==null&&(q.lanes|=a),wp(y.return,a,n),u||(F=null);break e}y=q.next}}else if(d.tag===18){if(F=d.return,F===null)throw Error(o(341));F.lanes|=a,y=F.alternate,y!==null&&(y.lanes|=a),wp(F,a,n),F=null}else F=d.child;if(F!==null)F.return=d;else for(F=d;F!==null;){if(F===n){F=null;break}if(d=F.sibling,d!==null){d.return=F.return,F=d;break}F=F.return}d=F}}function Gu(n,i,a,u){n=null;for(var d=i,y=!1;d!==null;){if(!y){if((d.flags&524288)!==0)y=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var F=d.alternate;if(F===null)throw Error(o(387));if(F=F.memoizedProps,F!==null){var q=d.type;dr(d.pendingProps.value,F.value)||(n!==null?n.push(q):n=[q])}}else if(d===pe.current){if(F=d.alternate,F===null)throw Error(o(387));F.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(n!==null?n.push(xc):n=[xc])}d=d.return}n!==null&&Ip(i,n,a,u),i.flags|=262144}function Af(n){for(n=n.firstContext;n!==null;){if(!dr(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function va(n){xa=n,qi=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function Ln(n){return rE(xa,n)}function bf(n,i){return xa===null&&va(n),rE(n,i)}function rE(n,i){var a=i._currentValue;if(i={context:i,memoizedValue:a,next:null},qi===null){if(n===null)throw Error(o(308));qi=i,n.dependencies={lanes:0,firstContext:i},n.flags|=524288}else qi=qi.next=i;return a}var Y6=typeof AbortController<"u"?AbortController:function(){var n=[],i=this.signal={aborted:!1,addEventListener:function(a,u){n.push(u)}};this.abort=function(){i.aborted=!0,n.forEach(function(a){return a()})}},X6=e.unstable_scheduleCallback,Z6=e.unstable_NormalPriority,hn={$$typeof:D,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Sp(){return{controller:new Y6,data:new Map,refCount:0}}function Qu(n){n.refCount--,n.refCount===0&&X6(Z6,function(){n.controller.abort()})}var Ku=null,Cp=0,ws=0,Is=null;function J6(n,i){if(Ku===null){var a=Ku=[];Cp=0,ws=Fy(),Is={status:"pending",value:void 0,then:function(u){a.push(u)}}}return Cp++,i.then(iE,iE),i}function iE(){if(--Cp===0&&Ku!==null){Is!==null&&(Is.status="fulfilled");var n=Ku;Ku=null,ws=0,Is=null;for(var i=0;i<n.length;i++)(0,n[i])()}}function W6(n,i){var a=[],u={status:"pending",value:null,reason:null,then:function(d){a.push(d)}};return n.then(function(){u.status="fulfilled",u.value=i;for(var d=0;d<a.length;d++)(0,a[d])(i)},function(d){for(u.status="rejected",u.reason=d,d=0;d<a.length;d++)(0,a[d])(void 0)}),u}var oE=O.S;O.S=function(n,i){typeof i=="object"&&i!==null&&typeof i.then=="function"&&J6(n,i),oE!==null&&oE(n,i)};var Ea=X(null);function Op(){var n=Ea.current;return n!==null?n:Mt.pooledCache}function xf(n,i){i===null?Q(Ea,Ea.current):Q(Ea,i.pool)}function aE(){var n=Op();return n===null?null:{parent:hn._currentValue,pool:n}}var Vu=Error(o(460)),sE=Error(o(474)),vf=Error(o(542)),Fp={then:function(){}};function uE(n){return n=n.status,n==="fulfilled"||n==="rejected"}function Ef(){}function cE(n,i,a){switch(a=n[a],a===void 0?n.push(i):a!==i&&(i.then(Ef,Ef),i=a),i.status){case"fulfilled":return i.value;case"rejected":throw n=i.reason,fE(n),n;default:if(typeof i.status=="string")i.then(Ef,Ef);else{if(n=Mt,n!==null&&100<n.shellSuspendCounter)throw Error(o(482));n=i,n.status="pending",n.then(function(u){if(i.status==="pending"){var d=i;d.status="fulfilled",d.value=u}},function(u){if(i.status==="pending"){var d=i;d.status="rejected",d.reason=u}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw n=i.reason,fE(n),n}throw Yu=i,Vu}}var Yu=null;function lE(){if(Yu===null)throw Error(o(459));var n=Yu;return Yu=null,n}function fE(n){if(n===Vu||n===vf)throw Error(o(483))}var Eo=!1;function Rp(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Bp(n,i){n=n.updateQueue,i.updateQueue===n&&(i.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function wo(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function Io(n,i,a){var u=n.updateQueue;if(u===null)return null;if(u=u.shared,(vt&2)!==0){var d=u.pending;return d===null?i.next=i:(i.next=d.next,d.next=i),u.pending=i,i=pf(n),Zv(n,null,a),i}return hf(n,u,i,a),pf(n)}function Xu(n,i,a){if(i=i.updateQueue,i!==null&&(i=i.shared,(a&4194048)!==0)){var u=i.lanes;u&=n.pendingLanes,a|=u,i.lanes=a,kt(n,a)}}function Tp(n,i){var a=n.updateQueue,u=n.alternate;if(u!==null&&(u=u.updateQueue,a===u)){var d=null,y=null;if(a=a.firstBaseUpdate,a!==null){do{var F={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};y===null?d=y=F:y=y.next=F,a=a.next}while(a!==null);y===null?d=y=i:y=y.next=i}else d=y=i;a={baseState:u.baseState,firstBaseUpdate:d,lastBaseUpdate:y,shared:u.shared,callbacks:u.callbacks},n.updateQueue=a;return}n=a.lastBaseUpdate,n===null?a.firstBaseUpdate=i:n.next=i,a.lastBaseUpdate=i}var _p=!1;function Zu(){if(_p){var n=Is;if(n!==null)throw n}}function Ju(n,i,a,u){_p=!1;var d=n.updateQueue;Eo=!1;var y=d.firstBaseUpdate,F=d.lastBaseUpdate,q=d.shared.pending;if(q!==null){d.shared.pending=null;var oe=q,xe=oe.next;oe.next=null,F===null?y=xe:F.next=xe,F=oe;var Re=n.alternate;Re!==null&&(Re=Re.updateQueue,q=Re.lastBaseUpdate,q!==F&&(q===null?Re.firstBaseUpdate=xe:q.next=xe,Re.lastBaseUpdate=oe))}if(y!==null){var Te=d.baseState;F=0,Re=xe=oe=null,q=y;do{var ve=q.lane&-536870913,Ie=ve!==q.lane;if(Ie?(ht&ve)===ve:(u&ve)===ve){ve!==0&&ve===ws&&(_p=!0),Re!==null&&(Re=Re.next={lane:0,tag:q.tag,payload:q.payload,callback:null,next:null});e:{var Xe=n,Ke=q;ve=i;var Ot=a;switch(Ke.tag){case 1:if(Xe=Ke.payload,typeof Xe=="function"){Te=Xe.call(Ot,Te,ve);break e}Te=Xe;break e;case 3:Xe.flags=Xe.flags&-65537|128;case 0:if(Xe=Ke.payload,ve=typeof Xe=="function"?Xe.call(Ot,Te,ve):Xe,ve==null)break e;Te=A({},Te,ve);break e;case 2:Eo=!0}}ve=q.callback,ve!==null&&(n.flags|=64,Ie&&(n.flags|=8192),Ie=d.callbacks,Ie===null?d.callbacks=[ve]:Ie.push(ve))}else Ie={lane:ve,tag:q.tag,payload:q.payload,callback:q.callback,next:null},Re===null?(xe=Re=Ie,oe=Te):Re=Re.next=Ie,F|=ve;if(q=q.next,q===null){if(q=d.shared.pending,q===null)break;Ie=q,q=Ie.next,Ie.next=null,d.lastBaseUpdate=Ie,d.shared.pending=null}}while(!0);Re===null&&(oe=Te),d.baseState=oe,d.firstBaseUpdate=xe,d.lastBaseUpdate=Re,y===null&&(d.shared.lanes=0),_o|=F,n.lanes=F,n.memoizedState=Te}}function dE(n,i){if(typeof n!="function")throw Error(o(191,n));n.call(i)}function hE(n,i){var a=n.callbacks;if(a!==null)for(n.callbacks=null,n=0;n<a.length;n++)dE(a[n],i)}var Ss=X(null),wf=X(0);function pE(n,i){n=Vi,Q(wf,n),Q(Ss,i),Vi=n|i.baseLanes}function Mp(){Q(wf,Vi),Q(Ss,Ss.current)}function Dp(){Vi=wf.current,ue(Ss),ue(wf)}var So=0,tt=null,St=null,on=null,If=!1,Cs=!1,wa=!1,Sf=0,Wu=0,Os=null,e8=0;function Wt(){throw Error(o(321))}function Up(n,i){if(i===null)return!1;for(var a=0;a<i.length&&a<n.length;a++)if(!dr(n[a],i[a]))return!1;return!0}function Pp(n,i,a,u,d,y){return So=y,tt=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,O.H=n===null||n.memoizedState===null?ZE:JE,wa=!1,y=a(u,d),wa=!1,Cs&&(y=gE(i,a,u,d)),yE(n),y}function yE(n){O.H=Tf;var i=St!==null&&St.next!==null;if(So=0,on=St=tt=null,If=!1,Wu=0,Os=null,i)throw Error(o(300));n===null||mn||(n=n.dependencies,n!==null&&Af(n)&&(mn=!0))}function gE(n,i,a,u){tt=n;var d=0;do{if(Cs&&(Os=null),Wu=0,Cs=!1,25<=d)throw Error(o(301));if(d+=1,on=St=null,n.updateQueue!=null){var y=n.updateQueue;y.lastEffect=null,y.events=null,y.stores=null,y.memoCache!=null&&(y.memoCache.index=0)}O.H=s8,y=i(a,u)}while(Cs);return y}function t8(){var n=O.H,i=n.useState()[0];return i=typeof i.then=="function"?ec(i):i,n=n.useState()[0],(St!==null?St.memoizedState:null)!==n&&(tt.flags|=1024),i}function jp(){var n=Sf!==0;return Sf=0,n}function Np(n,i,a){i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~a}function Lp(n){if(If){for(n=n.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}If=!1}So=0,on=St=tt=null,Cs=!1,Wu=Sf=0,Os=null}function Jn(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return on===null?tt.memoizedState=on=n:on=on.next=n,on}function an(){if(St===null){var n=tt.alternate;n=n!==null?n.memoizedState:null}else n=St.next;var i=on===null?tt.memoizedState:on.next;if(i!==null)on=i,St=n;else{if(n===null)throw tt.alternate===null?Error(o(467)):Error(o(310));St=n,n={memoizedState:St.memoizedState,baseState:St.baseState,baseQueue:St.baseQueue,queue:St.queue,next:null},on===null?tt.memoizedState=on=n:on=on.next=n}return on}function qp(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ec(n){var i=Wu;return Wu+=1,Os===null&&(Os=[]),n=cE(Os,n,i),i=tt,(on===null?i.memoizedState:on.next)===null&&(i=i.alternate,O.H=i===null||i.memoizedState===null?ZE:JE),n}function Cf(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return ec(n);if(n.$$typeof===D)return Ln(n)}throw Error(o(438,String(n)))}function $p(n){var i=null,a=tt.updateQueue;if(a!==null&&(i=a.memoCache),i==null){var u=tt.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(i={data:u.data.map(function(d){return d.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),a===null&&(a=qp(),tt.updateQueue=a),a.memoCache=i,a=i.data[i.index],a===void 0)for(a=i.data[i.index]=Array(n),u=0;u<n;u++)a[u]=L;return i.index++,a}function ki(n,i){return typeof i=="function"?i(n):i}function Of(n){var i=an();return kp(i,St,n)}function kp(n,i,a){var u=n.queue;if(u===null)throw Error(o(311));u.lastRenderedReducer=a;var d=n.baseQueue,y=u.pending;if(y!==null){if(d!==null){var F=d.next;d.next=y.next,y.next=F}i.baseQueue=d=y,u.pending=null}if(y=n.baseState,d===null)n.memoizedState=y;else{i=d.next;var q=F=null,oe=null,xe=i,Re=!1;do{var Te=xe.lane&-536870913;if(Te!==xe.lane?(ht&Te)===Te:(So&Te)===Te){var ve=xe.revertLane;if(ve===0)oe!==null&&(oe=oe.next={lane:0,revertLane:0,action:xe.action,hasEagerState:xe.hasEagerState,eagerState:xe.eagerState,next:null}),Te===ws&&(Re=!0);else if((So&ve)===ve){xe=xe.next,ve===ws&&(Re=!0);continue}else Te={lane:0,revertLane:xe.revertLane,action:xe.action,hasEagerState:xe.hasEagerState,eagerState:xe.eagerState,next:null},oe===null?(q=oe=Te,F=y):oe=oe.next=Te,tt.lanes|=ve,_o|=ve;Te=xe.action,wa&&a(y,Te),y=xe.hasEagerState?xe.eagerState:a(y,Te)}else ve={lane:Te,revertLane:xe.revertLane,action:xe.action,hasEagerState:xe.hasEagerState,eagerState:xe.eagerState,next:null},oe===null?(q=oe=ve,F=y):oe=oe.next=ve,tt.lanes|=Te,_o|=Te;xe=xe.next}while(xe!==null&&xe!==i);if(oe===null?F=y:oe.next=q,!dr(y,n.memoizedState)&&(mn=!0,Re&&(a=Is,a!==null)))throw a;n.memoizedState=y,n.baseState=F,n.baseQueue=oe,u.lastRenderedState=y}return d===null&&(u.lanes=0),[n.memoizedState,u.dispatch]}function Hp(n){var i=an(),a=i.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=n;var u=a.dispatch,d=a.pending,y=i.memoizedState;if(d!==null){a.pending=null;var F=d=d.next;do y=n(y,F.action),F=F.next;while(F!==d);dr(y,i.memoizedState)||(mn=!0),i.memoizedState=y,i.baseQueue===null&&(i.baseState=y),a.lastRenderedState=y}return[y,u]}function mE(n,i,a){var u=tt,d=an(),y=bt;if(y){if(a===void 0)throw Error(o(407));a=a()}else a=i();var F=!dr((St||d).memoizedState,a);F&&(d.memoizedState=a,mn=!0),d=d.queue;var q=xE.bind(null,u,d,n);if(tc(2048,8,q,[n]),d.getSnapshot!==i||F||on!==null&&on.memoizedState.tag&1){if(u.flags|=2048,Fs(9,Ff(),bE.bind(null,u,d,a,i),null),Mt===null)throw Error(o(349));y||(So&124)!==0||AE(u,i,a)}return a}function AE(n,i,a){n.flags|=16384,n={getSnapshot:i,value:a},i=tt.updateQueue,i===null?(i=qp(),tt.updateQueue=i,i.stores=[n]):(a=i.stores,a===null?i.stores=[n]:a.push(n))}function bE(n,i,a,u){i.value=a,i.getSnapshot=u,vE(i)&&EE(n)}function xE(n,i,a){return a(function(){vE(i)&&EE(n)})}function vE(n){var i=n.getSnapshot;n=n.value;try{var a=i();return!dr(n,a)}catch{return!0}}function EE(n){var i=bs(n,2);i!==null&&Ar(i,n,2)}function zp(n){var i=Jn();if(typeof n=="function"){var a=n;if(n=a(),wa){Me(!0);try{a()}finally{Me(!1)}}}return i.memoizedState=i.baseState=n,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ki,lastRenderedState:n},i}function wE(n,i,a,u){return n.baseState=a,kp(n,St,typeof u=="function"?u:ki)}function n8(n,i,a,u,d){if(Bf(n))throw Error(o(485));if(n=i.action,n!==null){var y={payload:d,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(F){y.listeners.push(F)}};O.T!==null?a(!0):y.isTransition=!1,u(y),a=i.pending,a===null?(y.next=i.pending=y,IE(i,y)):(y.next=a.next,i.pending=a.next=y)}}function IE(n,i){var a=i.action,u=i.payload,d=n.state;if(i.isTransition){var y=O.T,F={};O.T=F;try{var q=a(d,u),oe=O.S;oe!==null&&oe(F,q),SE(n,i,q)}catch(xe){Gp(n,i,xe)}finally{O.T=y}}else try{y=a(d,u),SE(n,i,y)}catch(xe){Gp(n,i,xe)}}function SE(n,i,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(u){CE(n,i,u)},function(u){return Gp(n,i,u)}):CE(n,i,a)}function CE(n,i,a){i.status="fulfilled",i.value=a,OE(i),n.state=a,i=n.pending,i!==null&&(a=i.next,a===i?n.pending=null:(a=a.next,i.next=a,IE(n,a)))}function Gp(n,i,a){var u=n.pending;if(n.pending=null,u!==null){u=u.next;do i.status="rejected",i.reason=a,OE(i),i=i.next;while(i!==u)}n.action=null}function OE(n){n=n.listeners;for(var i=0;i<n.length;i++)(0,n[i])()}function FE(n,i){return i}function RE(n,i){if(bt){var a=Mt.formState;if(a!==null){e:{var u=tt;if(bt){if(Kt){t:{for(var d=Kt,y=Ai;d.nodeType!==8;){if(!y){d=null;break t}if(d=ni(d.nextSibling),d===null){d=null;break t}}y=d.data,d=y==="F!"||y==="F"?d:null}if(d){Kt=ni(d.nextSibling),u=d.data==="F!";break e}}ba(u)}u=!1}u&&(i=a[0])}}return a=Jn(),a.memoizedState=a.baseState=i,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:FE,lastRenderedState:i},a.queue=u,a=VE.bind(null,tt,u),u.dispatch=a,u=zp(!1),y=Xp.bind(null,tt,!1,u.queue),u=Jn(),d={state:i,dispatch:null,action:n,pending:null},u.queue=d,a=n8.bind(null,tt,d,y,a),d.dispatch=a,u.memoizedState=n,[i,a,!1]}function BE(n){var i=an();return TE(i,St,n)}function TE(n,i,a){if(i=kp(n,i,FE)[0],n=Of(ki)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var u=ec(i)}catch(F){throw F===Vu?vf:F}else u=i;i=an();var d=i.queue,y=d.dispatch;return a!==i.memoizedState&&(tt.flags|=2048,Fs(9,Ff(),r8.bind(null,d,a),null)),[u,y,n]}function r8(n,i){n.action=i}function _E(n){var i=an(),a=St;if(a!==null)return TE(i,a,n);an(),i=i.memoizedState,a=an();var u=a.queue.dispatch;return a.memoizedState=n,[i,u,!1]}function Fs(n,i,a,u){return n={tag:n,create:a,deps:u,inst:i,next:null},i=tt.updateQueue,i===null&&(i=qp(),tt.updateQueue=i),a=i.lastEffect,a===null?i.lastEffect=n.next=n:(u=a.next,a.next=n,n.next=u,i.lastEffect=n),n}function Ff(){return{destroy:void 0,resource:void 0}}function ME(){return an().memoizedState}function Rf(n,i,a,u){var d=Jn();u=u===void 0?null:u,tt.flags|=n,d.memoizedState=Fs(1|i,Ff(),a,u)}function tc(n,i,a,u){var d=an();u=u===void 0?null:u;var y=d.memoizedState.inst;St!==null&&u!==null&&Up(u,St.memoizedState.deps)?d.memoizedState=Fs(i,y,a,u):(tt.flags|=n,d.memoizedState=Fs(1|i,y,a,u))}function DE(n,i){Rf(8390656,8,n,i)}function UE(n,i){tc(2048,8,n,i)}function PE(n,i){return tc(4,2,n,i)}function jE(n,i){return tc(4,4,n,i)}function NE(n,i){if(typeof i=="function"){n=n();var a=i(n);return function(){typeof a=="function"?a():i(null)}}if(i!=null)return n=n(),i.current=n,function(){i.current=null}}function LE(n,i,a){a=a!=null?a.concat([n]):null,tc(4,4,NE.bind(null,i,n),a)}function Qp(){}function qE(n,i){var a=an();i=i===void 0?null:i;var u=a.memoizedState;return i!==null&&Up(i,u[1])?u[0]:(a.memoizedState=[n,i],n)}function $E(n,i){var a=an();i=i===void 0?null:i;var u=a.memoizedState;if(i!==null&&Up(i,u[1]))return u[0];if(u=n(),wa){Me(!0);try{n()}finally{Me(!1)}}return a.memoizedState=[u,i],u}function Kp(n,i,a){return a===void 0||(So&1073741824)!==0?n.memoizedState=i:(n.memoizedState=a,n=zw(),tt.lanes|=n,_o|=n,a)}function kE(n,i,a,u){return dr(a,i)?a:Ss.current!==null?(n=Kp(n,a,u),dr(n,i)||(mn=!0),n):(So&42)===0?(mn=!0,n.memoizedState=a):(n=zw(),tt.lanes|=n,_o|=n,i)}function HE(n,i,a,u,d){var y=re.p;re.p=y!==0&&8>y?y:8;var F=O.T,q={};O.T=q,Xp(n,!1,i,a);try{var oe=d(),xe=O.S;if(xe!==null&&xe(q,oe),oe!==null&&typeof oe=="object"&&typeof oe.then=="function"){var Re=W6(oe,u);nc(n,i,Re,mr(n))}else nc(n,i,u,mr(n))}catch(Te){nc(n,i,{then:function(){},status:"rejected",reason:Te},mr())}finally{re.p=y,O.T=F}}function i8(){}function Vp(n,i,a,u){if(n.tag!==5)throw Error(o(476));var d=zE(n).queue;HE(n,d,i,he,a===null?i8:function(){return GE(n),a(u)})}function zE(n){var i=n.memoizedState;if(i!==null)return i;i={memoizedState:he,baseState:he,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ki,lastRenderedState:he},next:null};var a={};return i.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ki,lastRenderedState:a},next:null},n.memoizedState=i,n=n.alternate,n!==null&&(n.memoizedState=i),i}function GE(n){var i=zE(n).next.queue;nc(n,i,{},mr())}function Yp(){return Ln(xc)}function QE(){return an().memoizedState}function KE(){return an().memoizedState}function o8(n){for(var i=n.return;i!==null;){switch(i.tag){case 24:case 3:var a=mr();n=wo(a);var u=Io(i,n,a);u!==null&&(Ar(u,i,a),Xu(u,i,a)),i={cache:Sp()},n.payload=i;return}i=i.return}}function a8(n,i,a){var u=mr();a={lane:u,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},Bf(n)?YE(i,a):(a=yp(n,i,a,u),a!==null&&(Ar(a,n,u),XE(a,i,u)))}function VE(n,i,a){var u=mr();nc(n,i,a,u)}function nc(n,i,a,u){var d={lane:u,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(Bf(n))YE(i,d);else{var y=n.alternate;if(n.lanes===0&&(y===null||y.lanes===0)&&(y=i.lastRenderedReducer,y!==null))try{var F=i.lastRenderedState,q=y(F,a);if(d.hasEagerState=!0,d.eagerState=q,dr(q,F))return hf(n,i,d,0),Mt===null&&df(),!1}catch{}finally{}if(a=yp(n,i,d,u),a!==null)return Ar(a,n,u),XE(a,i,u),!0}return!1}function Xp(n,i,a,u){if(u={lane:2,revertLane:Fy(),action:u,hasEagerState:!1,eagerState:null,next:null},Bf(n)){if(i)throw Error(o(479))}else i=yp(n,a,u,2),i!==null&&Ar(i,n,2)}function Bf(n){var i=n.alternate;return n===tt||i!==null&&i===tt}function YE(n,i){Cs=If=!0;var a=n.pending;a===null?i.next=i:(i.next=a.next,a.next=i),n.pending=i}function XE(n,i,a){if((a&4194048)!==0){var u=i.lanes;u&=n.pendingLanes,a|=u,i.lanes=a,kt(n,a)}}var Tf={readContext:Ln,use:Cf,useCallback:Wt,useContext:Wt,useEffect:Wt,useImperativeHandle:Wt,useLayoutEffect:Wt,useInsertionEffect:Wt,useMemo:Wt,useReducer:Wt,useRef:Wt,useState:Wt,useDebugValue:Wt,useDeferredValue:Wt,useTransition:Wt,useSyncExternalStore:Wt,useId:Wt,useHostTransitionStatus:Wt,useFormState:Wt,useActionState:Wt,useOptimistic:Wt,useMemoCache:Wt,useCacheRefresh:Wt},ZE={readContext:Ln,use:Cf,useCallback:function(n,i){return Jn().memoizedState=[n,i===void 0?null:i],n},useContext:Ln,useEffect:DE,useImperativeHandle:function(n,i,a){a=a!=null?a.concat([n]):null,Rf(4194308,4,NE.bind(null,i,n),a)},useLayoutEffect:function(n,i){return Rf(4194308,4,n,i)},useInsertionEffect:function(n,i){Rf(4,2,n,i)},useMemo:function(n,i){var a=Jn();i=i===void 0?null:i;var u=n();if(wa){Me(!0);try{n()}finally{Me(!1)}}return a.memoizedState=[u,i],u},useReducer:function(n,i,a){var u=Jn();if(a!==void 0){var d=a(i);if(wa){Me(!0);try{a(i)}finally{Me(!1)}}}else d=i;return u.memoizedState=u.baseState=d,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:d},u.queue=n,n=n.dispatch=a8.bind(null,tt,n),[u.memoizedState,n]},useRef:function(n){var i=Jn();return n={current:n},i.memoizedState=n},useState:function(n){n=zp(n);var i=n.queue,a=VE.bind(null,tt,i);return i.dispatch=a,[n.memoizedState,a]},useDebugValue:Qp,useDeferredValue:function(n,i){var a=Jn();return Kp(a,n,i)},useTransition:function(){var n=zp(!1);return n=HE.bind(null,tt,n.queue,!0,!1),Jn().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,i,a){var u=tt,d=Jn();if(bt){if(a===void 0)throw Error(o(407));a=a()}else{if(a=i(),Mt===null)throw Error(o(349));(ht&124)!==0||AE(u,i,a)}d.memoizedState=a;var y={value:a,getSnapshot:i};return d.queue=y,DE(xE.bind(null,u,y,n),[n]),u.flags|=2048,Fs(9,Ff(),bE.bind(null,u,y,a,i),null),a},useId:function(){var n=Jn(),i=Mt.identifierPrefix;if(bt){var a=Li,u=Ni;a=(u&~(1<<32-qe(u)-1)).toString(32)+a,i="«"+i+"R"+a,a=Sf++,0<a&&(i+="H"+a.toString(32)),i+="»"}else a=e8++,i="«"+i+"r"+a.toString(32)+"»";return n.memoizedState=i},useHostTransitionStatus:Yp,useFormState:RE,useActionState:RE,useOptimistic:function(n){var i=Jn();i.memoizedState=i.baseState=n;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=a,i=Xp.bind(null,tt,!0,a),a.dispatch=i,[n,i]},useMemoCache:$p,useCacheRefresh:function(){return Jn().memoizedState=o8.bind(null,tt)}},JE={readContext:Ln,use:Cf,useCallback:qE,useContext:Ln,useEffect:UE,useImperativeHandle:LE,useInsertionEffect:PE,useLayoutEffect:jE,useMemo:$E,useReducer:Of,useRef:ME,useState:function(){return Of(ki)},useDebugValue:Qp,useDeferredValue:function(n,i){var a=an();return kE(a,St.memoizedState,n,i)},useTransition:function(){var n=Of(ki)[0],i=an().memoizedState;return[typeof n=="boolean"?n:ec(n),i]},useSyncExternalStore:mE,useId:QE,useHostTransitionStatus:Yp,useFormState:BE,useActionState:BE,useOptimistic:function(n,i){var a=an();return wE(a,St,n,i)},useMemoCache:$p,useCacheRefresh:KE},s8={readContext:Ln,use:Cf,useCallback:qE,useContext:Ln,useEffect:UE,useImperativeHandle:LE,useInsertionEffect:PE,useLayoutEffect:jE,useMemo:$E,useReducer:Hp,useRef:ME,useState:function(){return Hp(ki)},useDebugValue:Qp,useDeferredValue:function(n,i){var a=an();return St===null?Kp(a,n,i):kE(a,St.memoizedState,n,i)},useTransition:function(){var n=Hp(ki)[0],i=an().memoizedState;return[typeof n=="boolean"?n:ec(n),i]},useSyncExternalStore:mE,useId:QE,useHostTransitionStatus:Yp,useFormState:_E,useActionState:_E,useOptimistic:function(n,i){var a=an();return St!==null?wE(a,St,n,i):(a.baseState=n,[n,a.queue.dispatch])},useMemoCache:$p,useCacheRefresh:KE},Rs=null,rc=0;function _f(n){var i=rc;return rc+=1,Rs===null&&(Rs=[]),cE(Rs,n,i)}function ic(n,i){i=i.props.ref,n.ref=i!==void 0?i:null}function Mf(n,i){throw i.$$typeof===v?Error(o(525)):(n=Object.prototype.toString.call(i),Error(o(31,n==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":n)))}function WE(n){var i=n._init;return i(n._payload)}function ew(n){function i(ge,fe){if(n){var be=ge.deletions;be===null?(ge.deletions=[fe],ge.flags|=16):be.push(fe)}}function a(ge,fe){if(!n)return null;for(;fe!==null;)i(ge,fe),fe=fe.sibling;return null}function u(ge){for(var fe=new Map;ge!==null;)ge.key!==null?fe.set(ge.key,ge):fe.set(ge.index,ge),ge=ge.sibling;return fe}function d(ge,fe){return ge=ji(ge,fe),ge.index=0,ge.sibling=null,ge}function y(ge,fe,be){return ge.index=be,n?(be=ge.alternate,be!==null?(be=be.index,be<fe?(ge.flags|=67108866,fe):be):(ge.flags|=67108866,fe)):(ge.flags|=1048576,fe)}function F(ge){return n&&ge.alternate===null&&(ge.flags|=67108866),ge}function q(ge,fe,be,Be){return fe===null||fe.tag!==6?(fe=mp(be,ge.mode,Be),fe.return=ge,fe):(fe=d(fe,be),fe.return=ge,fe)}function oe(ge,fe,be,Be){var He=be.type;return He===R?Re(ge,fe,be.props.children,Be,be.key):fe!==null&&(fe.elementType===He||typeof He=="object"&&He!==null&&He.$$typeof===te&&WE(He)===fe.type)?(fe=d(fe,be.props),ic(fe,be),fe.return=ge,fe):(fe=yf(be.type,be.key,be.props,null,ge.mode,Be),ic(fe,be),fe.return=ge,fe)}function xe(ge,fe,be,Be){return fe===null||fe.tag!==4||fe.stateNode.containerInfo!==be.containerInfo||fe.stateNode.implementation!==be.implementation?(fe=Ap(be,ge.mode,Be),fe.return=ge,fe):(fe=d(fe,be.children||[]),fe.return=ge,fe)}function Re(ge,fe,be,Be,He){return fe===null||fe.tag!==7?(fe=ya(be,ge.mode,Be,He),fe.return=ge,fe):(fe=d(fe,be),fe.return=ge,fe)}function Te(ge,fe,be){if(typeof fe=="string"&&fe!==""||typeof fe=="number"||typeof fe=="bigint")return fe=mp(""+fe,ge.mode,be),fe.return=ge,fe;if(typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case x:return be=yf(fe.type,fe.key,fe.props,null,ge.mode,be),ic(be,fe),be.return=ge,be;case S:return fe=Ap(fe,ge.mode,be),fe.return=ge,fe;case te:var Be=fe._init;return fe=Be(fe._payload),Te(ge,fe,be)}if(Ae(fe)||H(fe))return fe=ya(fe,ge.mode,be,null),fe.return=ge,fe;if(typeof fe.then=="function")return Te(ge,_f(fe),be);if(fe.$$typeof===D)return Te(ge,bf(ge,fe),be);Mf(ge,fe)}return null}function ve(ge,fe,be,Be){var He=fe!==null?fe.key:null;if(typeof be=="string"&&be!==""||typeof be=="number"||typeof be=="bigint")return He!==null?null:q(ge,fe,""+be,Be);if(typeof be=="object"&&be!==null){switch(be.$$typeof){case x:return be.key===He?oe(ge,fe,be,Be):null;case S:return be.key===He?xe(ge,fe,be,Be):null;case te:return He=be._init,be=He(be._payload),ve(ge,fe,be,Be)}if(Ae(be)||H(be))return He!==null?null:Re(ge,fe,be,Be,null);if(typeof be.then=="function")return ve(ge,fe,_f(be),Be);if(be.$$typeof===D)return ve(ge,fe,bf(ge,be),Be);Mf(ge,be)}return null}function Ie(ge,fe,be,Be,He){if(typeof Be=="string"&&Be!==""||typeof Be=="number"||typeof Be=="bigint")return ge=ge.get(be)||null,q(fe,ge,""+Be,He);if(typeof Be=="object"&&Be!==null){switch(Be.$$typeof){case x:return ge=ge.get(Be.key===null?be:Be.key)||null,oe(fe,ge,Be,He);case S:return ge=ge.get(Be.key===null?be:Be.key)||null,xe(fe,ge,Be,He);case te:var nt=Be._init;return Be=nt(Be._payload),Ie(ge,fe,be,Be,He)}if(Ae(Be)||H(Be))return ge=ge.get(be)||null,Re(fe,ge,Be,He,null);if(typeof Be.then=="function")return Ie(ge,fe,be,_f(Be),He);if(Be.$$typeof===D)return Ie(ge,fe,be,bf(fe,Be),He);Mf(fe,Be)}return null}function Xe(ge,fe,be,Be){for(var He=null,nt=null,ze=fe,Ve=fe=0,bn=null;ze!==null&&Ve<be.length;Ve++){ze.index>Ve?(bn=ze,ze=null):bn=ze.sibling;var At=ve(ge,ze,be[Ve],Be);if(At===null){ze===null&&(ze=bn);break}n&&ze&&At.alternate===null&&i(ge,ze),fe=y(At,fe,Ve),nt===null?He=At:nt.sibling=At,nt=At,ze=bn}if(Ve===be.length)return a(ge,ze),bt&&ma(ge,Ve),He;if(ze===null){for(;Ve<be.length;Ve++)ze=Te(ge,be[Ve],Be),ze!==null&&(fe=y(ze,fe,Ve),nt===null?He=ze:nt.sibling=ze,nt=ze);return bt&&ma(ge,Ve),He}for(ze=u(ze);Ve<be.length;Ve++)bn=Ie(ze,ge,Ve,be[Ve],Be),bn!==null&&(n&&bn.alternate!==null&&ze.delete(bn.key===null?Ve:bn.key),fe=y(bn,fe,Ve),nt===null?He=bn:nt.sibling=bn,nt=bn);return n&&ze.forEach(function($o){return i(ge,$o)}),bt&&ma(ge,Ve),He}function Ke(ge,fe,be,Be){if(be==null)throw Error(o(151));for(var He=null,nt=null,ze=fe,Ve=fe=0,bn=null,At=be.next();ze!==null&&!At.done;Ve++,At=be.next()){ze.index>Ve?(bn=ze,ze=null):bn=ze.sibling;var $o=ve(ge,ze,At.value,Be);if($o===null){ze===null&&(ze=bn);break}n&&ze&&$o.alternate===null&&i(ge,ze),fe=y($o,fe,Ve),nt===null?He=$o:nt.sibling=$o,nt=$o,ze=bn}if(At.done)return a(ge,ze),bt&&ma(ge,Ve),He;if(ze===null){for(;!At.done;Ve++,At=be.next())At=Te(ge,At.value,Be),At!==null&&(fe=y(At,fe,Ve),nt===null?He=At:nt.sibling=At,nt=At);return bt&&ma(ge,Ve),He}for(ze=u(ze);!At.done;Ve++,At=be.next())At=Ie(ze,ge,Ve,At.value,Be),At!==null&&(n&&At.alternate!==null&&ze.delete(At.key===null?Ve:At.key),fe=y(At,fe,Ve),nt===null?He=At:nt.sibling=At,nt=At);return n&&ze.forEach(function(u4){return i(ge,u4)}),bt&&ma(ge,Ve),He}function Ot(ge,fe,be,Be){if(typeof be=="object"&&be!==null&&be.type===R&&be.key===null&&(be=be.props.children),typeof be=="object"&&be!==null){switch(be.$$typeof){case x:e:{for(var He=be.key;fe!==null;){if(fe.key===He){if(He=be.type,He===R){if(fe.tag===7){a(ge,fe.sibling),Be=d(fe,be.props.children),Be.return=ge,ge=Be;break e}}else if(fe.elementType===He||typeof He=="object"&&He!==null&&He.$$typeof===te&&WE(He)===fe.type){a(ge,fe.sibling),Be=d(fe,be.props),ic(Be,be),Be.return=ge,ge=Be;break e}a(ge,fe);break}else i(ge,fe);fe=fe.sibling}be.type===R?(Be=ya(be.props.children,ge.mode,Be,be.key),Be.return=ge,ge=Be):(Be=yf(be.type,be.key,be.props,null,ge.mode,Be),ic(Be,be),Be.return=ge,ge=Be)}return F(ge);case S:e:{for(He=be.key;fe!==null;){if(fe.key===He)if(fe.tag===4&&fe.stateNode.containerInfo===be.containerInfo&&fe.stateNode.implementation===be.implementation){a(ge,fe.sibling),Be=d(fe,be.children||[]),Be.return=ge,ge=Be;break e}else{a(ge,fe);break}else i(ge,fe);fe=fe.sibling}Be=Ap(be,ge.mode,Be),Be.return=ge,ge=Be}return F(ge);case te:return He=be._init,be=He(be._payload),Ot(ge,fe,be,Be)}if(Ae(be))return Xe(ge,fe,be,Be);if(H(be)){if(He=H(be),typeof He!="function")throw Error(o(150));return be=He.call(be),Ke(ge,fe,be,Be)}if(typeof be.then=="function")return Ot(ge,fe,_f(be),Be);if(be.$$typeof===D)return Ot(ge,fe,bf(ge,be),Be);Mf(ge,be)}return typeof be=="string"&&be!==""||typeof be=="number"||typeof be=="bigint"?(be=""+be,fe!==null&&fe.tag===6?(a(ge,fe.sibling),Be=d(fe,be),Be.return=ge,ge=Be):(a(ge,fe),Be=mp(be,ge.mode,Be),Be.return=ge,ge=Be),F(ge)):a(ge,fe)}return function(ge,fe,be,Be){try{rc=0;var He=Ot(ge,fe,be,Be);return Rs=null,He}catch(ze){if(ze===Vu||ze===vf)throw ze;var nt=hr(29,ze,null,ge.mode);return nt.lanes=Be,nt.return=ge,nt}finally{}}}var Bs=ew(!0),tw=ew(!1),qr=X(null),bi=null;function Co(n){var i=n.alternate;Q(pn,pn.current&1),Q(qr,n),bi===null&&(i===null||Ss.current!==null||i.memoizedState!==null)&&(bi=n)}function nw(n){if(n.tag===22){if(Q(pn,pn.current),Q(qr,n),bi===null){var i=n.alternate;i!==null&&i.memoizedState!==null&&(bi=n)}}else Oo()}function Oo(){Q(pn,pn.current),Q(qr,qr.current)}function Hi(n){ue(qr),bi===n&&(bi=null),ue(pn)}var pn=X(0);function Df(n){for(var i=n;i!==null;){if(i.tag===13){var a=i.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||qy(a)))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}function Zp(n,i,a,u){i=n.memoizedState,a=a(u,i),a=a==null?i:A({},i,a),n.memoizedState=a,n.lanes===0&&(n.updateQueue.baseState=a)}var Jp={enqueueSetState:function(n,i,a){n=n._reactInternals;var u=mr(),d=wo(u);d.payload=i,a!=null&&(d.callback=a),i=Io(n,d,u),i!==null&&(Ar(i,n,u),Xu(i,n,u))},enqueueReplaceState:function(n,i,a){n=n._reactInternals;var u=mr(),d=wo(u);d.tag=1,d.payload=i,a!=null&&(d.callback=a),i=Io(n,d,u),i!==null&&(Ar(i,n,u),Xu(i,n,u))},enqueueForceUpdate:function(n,i){n=n._reactInternals;var a=mr(),u=wo(a);u.tag=2,i!=null&&(u.callback=i),i=Io(n,u,a),i!==null&&(Ar(i,n,a),Xu(i,n,a))}};function rw(n,i,a,u,d,y,F){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(u,y,F):i.prototype&&i.prototype.isPureReactComponent?!qu(a,u)||!qu(d,y):!0}function iw(n,i,a,u){n=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(a,u),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(a,u),i.state!==n&&Jp.enqueueReplaceState(i,i.state,null)}function Ia(n,i){var a=i;if("ref"in i){a={};for(var u in i)u!=="ref"&&(a[u]=i[u])}if(n=n.defaultProps){a===i&&(a=A({},a));for(var d in n)a[d]===void 0&&(a[d]=n[d])}return a}var Uf=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=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(i))return}else if(typeof st=="object"&&typeof st.emit=="function"){st.emit("uncaughtException",n);return}console.error(n)};function ow(n){Uf(n)}function aw(n){console.error(n)}function sw(n){Uf(n)}function Pf(n,i){try{var a=n.onUncaughtError;a(i.value,{componentStack:i.stack})}catch(u){setTimeout(function(){throw u})}}function uw(n,i,a){try{var u=n.onCaughtError;u(a.value,{componentStack:a.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function Wp(n,i,a){return a=wo(a),a.tag=3,a.payload={element:null},a.callback=function(){Pf(n,i)},a}function cw(n){return n=wo(n),n.tag=3,n}function lw(n,i,a,u){var d=a.type.getDerivedStateFromError;if(typeof d=="function"){var y=u.value;n.payload=function(){return d(y)},n.callback=function(){uw(i,a,u)}}var F=a.stateNode;F!==null&&typeof F.componentDidCatch=="function"&&(n.callback=function(){uw(i,a,u),typeof d!="function"&&(Mo===null?Mo=new Set([this]):Mo.add(this));var q=u.stack;this.componentDidCatch(u.value,{componentStack:q!==null?q:""})})}function u8(n,i,a,u,d){if(a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(i=a.alternate,i!==null&&Gu(i,a,d,!0),a=qr.current,a!==null){switch(a.tag){case 13:return bi===null?wy():a.alternate===null&&Vt===0&&(Vt=3),a.flags&=-257,a.flags|=65536,a.lanes=d,u===Fp?a.flags|=16384:(i=a.updateQueue,i===null?a.updateQueue=new Set([u]):i.add(u),Sy(n,u,d)),!1;case 22:return a.flags|=65536,u===Fp?a.flags|=16384:(i=a.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([u])},a.updateQueue=i):(a=i.retryQueue,a===null?i.retryQueue=new Set([u]):a.add(u)),Sy(n,u,d)),!1}throw Error(o(435,a.tag))}return Sy(n,u,d),wy(),!1}if(bt)return i=qr.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=d,u!==vp&&(n=Error(o(422),{cause:u}),zu(Pr(n,a)))):(u!==vp&&(i=Error(o(423),{cause:u}),zu(Pr(i,a))),n=n.current.alternate,n.flags|=65536,d&=-d,n.lanes|=d,u=Pr(u,a),d=Wp(n.stateNode,u,d),Tp(n,d),Vt!==4&&(Vt=2)),!1;var y=Error(o(520),{cause:u});if(y=Pr(y,a),fc===null?fc=[y]:fc.push(y),Vt!==4&&(Vt=2),i===null)return!0;u=Pr(u,a),a=i;do{switch(a.tag){case 3:return a.flags|=65536,n=d&-d,a.lanes|=n,n=Wp(a.stateNode,u,n),Tp(a,n),!1;case 1:if(i=a.type,y=a.stateNode,(a.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Mo===null||!Mo.has(y))))return a.flags|=65536,d&=-d,a.lanes|=d,d=cw(d),lw(d,n,a,u),Tp(a,d),!1}a=a.return}while(a!==null);return!1}var fw=Error(o(461)),mn=!1;function Fn(n,i,a,u){i.child=n===null?tw(i,null,a,u):Bs(i,n.child,a,u)}function dw(n,i,a,u,d){a=a.render;var y=i.ref;if("ref"in u){var F={};for(var q in u)q!=="ref"&&(F[q]=u[q])}else F=u;return va(i),u=Pp(n,i,a,F,y,d),q=jp(),n!==null&&!mn?(Np(n,i,d),zi(n,i,d)):(bt&&q&&bp(i),i.flags|=1,Fn(n,i,u,d),i.child)}function hw(n,i,a,u,d){if(n===null){var y=a.type;return typeof y=="function"&&!gp(y)&&y.defaultProps===void 0&&a.compare===null?(i.tag=15,i.type=y,pw(n,i,y,u,d)):(n=yf(a.type,null,u,i,i.mode,d),n.ref=i.ref,n.return=i,i.child=n)}if(y=n.child,!sy(n,d)){var F=y.memoizedProps;if(a=a.compare,a=a!==null?a:qu,a(F,u)&&n.ref===i.ref)return zi(n,i,d)}return i.flags|=1,n=ji(y,u),n.ref=i.ref,n.return=i,i.child=n}function pw(n,i,a,u,d){if(n!==null){var y=n.memoizedProps;if(qu(y,u)&&n.ref===i.ref)if(mn=!1,i.pendingProps=u=y,sy(n,d))(n.flags&131072)!==0&&(mn=!0);else return i.lanes=n.lanes,zi(n,i,d)}return ey(n,i,a,u,d)}function yw(n,i,a){var u=i.pendingProps,d=u.children,y=n!==null?n.memoizedState:null;if(u.mode==="hidden"){if((i.flags&128)!==0){if(u=y!==null?y.baseLanes|a:a,n!==null){for(d=i.child=n.child,y=0;d!==null;)y=y|d.lanes|d.childLanes,d=d.sibling;i.childLanes=y&~u}else i.childLanes=0,i.child=null;return gw(n,i,u,a)}if((a&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},n!==null&&xf(i,y!==null?y.cachePool:null),y!==null?pE(i,y):Mp(),nw(i);else return i.lanes=i.childLanes=536870912,gw(n,i,y!==null?y.baseLanes|a:a,a)}else y!==null?(xf(i,y.cachePool),pE(i,y),Oo(),i.memoizedState=null):(n!==null&&xf(i,null),Mp(),Oo());return Fn(n,i,d,a),i.child}function gw(n,i,a,u){var d=Op();return d=d===null?null:{parent:hn._currentValue,pool:d},i.memoizedState={baseLanes:a,cachePool:d},n!==null&&xf(i,null),Mp(),nw(i),n!==null&&Gu(n,i,u,!0),null}function jf(n,i){var a=i.ref;if(a===null)n!==null&&n.ref!==null&&(i.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(o(284));(n===null||n.ref!==a)&&(i.flags|=4194816)}}function ey(n,i,a,u,d){return va(i),a=Pp(n,i,a,u,void 0,d),u=jp(),n!==null&&!mn?(Np(n,i,d),zi(n,i,d)):(bt&&u&&bp(i),i.flags|=1,Fn(n,i,a,d),i.child)}function mw(n,i,a,u,d,y){return va(i),i.updateQueue=null,a=gE(i,u,a,d),yE(n),u=jp(),n!==null&&!mn?(Np(n,i,y),zi(n,i,y)):(bt&&u&&bp(i),i.flags|=1,Fn(n,i,a,y),i.child)}function Aw(n,i,a,u,d){if(va(i),i.stateNode===null){var y=xs,F=a.contextType;typeof F=="object"&&F!==null&&(y=Ln(F)),y=new a(u,y),i.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=Jp,i.stateNode=y,y._reactInternals=i,y=i.stateNode,y.props=u,y.state=i.memoizedState,y.refs={},Rp(i),F=a.contextType,y.context=typeof F=="object"&&F!==null?Ln(F):xs,y.state=i.memoizedState,F=a.getDerivedStateFromProps,typeof F=="function"&&(Zp(i,a,F,u),y.state=i.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(F=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),F!==y.state&&Jp.enqueueReplaceState(y,y.state,null),Ju(i,u,y,d),Zu(),y.state=i.memoizedState),typeof y.componentDidMount=="function"&&(i.flags|=4194308),u=!0}else if(n===null){y=i.stateNode;var q=i.memoizedProps,oe=Ia(a,q);y.props=oe;var xe=y.context,Re=a.contextType;F=xs,typeof Re=="object"&&Re!==null&&(F=Ln(Re));var Te=a.getDerivedStateFromProps;Re=typeof Te=="function"||typeof y.getSnapshotBeforeUpdate=="function",q=i.pendingProps!==q,Re||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(q||xe!==F)&&iw(i,y,u,F),Eo=!1;var ve=i.memoizedState;y.state=ve,Ju(i,u,y,d),Zu(),xe=i.memoizedState,q||ve!==xe||Eo?(typeof Te=="function"&&(Zp(i,a,Te,u),xe=i.memoizedState),(oe=Eo||rw(i,a,oe,u,ve,xe,F))?(Re||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(i.flags|=4194308)):(typeof y.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=u,i.memoizedState=xe),y.props=u,y.state=xe,y.context=F,u=oe):(typeof y.componentDidMount=="function"&&(i.flags|=4194308),u=!1)}else{y=i.stateNode,Bp(n,i),F=i.memoizedProps,Re=Ia(a,F),y.props=Re,Te=i.pendingProps,ve=y.context,xe=a.contextType,oe=xs,typeof xe=="object"&&xe!==null&&(oe=Ln(xe)),q=a.getDerivedStateFromProps,(xe=typeof q=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(F!==Te||ve!==oe)&&iw(i,y,u,oe),Eo=!1,ve=i.memoizedState,y.state=ve,Ju(i,u,y,d),Zu();var Ie=i.memoizedState;F!==Te||ve!==Ie||Eo||n!==null&&n.dependencies!==null&&Af(n.dependencies)?(typeof q=="function"&&(Zp(i,a,q,u),Ie=i.memoizedState),(Re=Eo||rw(i,a,Re,u,ve,Ie,oe)||n!==null&&n.dependencies!==null&&Af(n.dependencies))?(xe||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(u,Ie,oe),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(u,Ie,oe)),typeof y.componentDidUpdate=="function"&&(i.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof y.componentDidUpdate!="function"||F===n.memoizedProps&&ve===n.memoizedState||(i.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||F===n.memoizedProps&&ve===n.memoizedState||(i.flags|=1024),i.memoizedProps=u,i.memoizedState=Ie),y.props=u,y.state=Ie,y.context=oe,u=Re):(typeof y.componentDidUpdate!="function"||F===n.memoizedProps&&ve===n.memoizedState||(i.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||F===n.memoizedProps&&ve===n.memoizedState||(i.flags|=1024),u=!1)}return y=u,jf(n,i),u=(i.flags&128)!==0,y||u?(y=i.stateNode,a=u&&typeof a.getDerivedStateFromError!="function"?null:y.render(),i.flags|=1,n!==null&&u?(i.child=Bs(i,n.child,null,d),i.child=Bs(i,null,a,d)):Fn(n,i,a,d),i.memoizedState=y.state,n=i.child):n=zi(n,i,d),n}function bw(n,i,a,u){return Hu(),i.flags|=256,Fn(n,i,a,u),i.child}var ty={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ny(n){return{baseLanes:n,cachePool:aE()}}function ry(n,i,a){return n=n!==null?n.childLanes&~a:0,i&&(n|=$r),n}function xw(n,i,a){var u=i.pendingProps,d=!1,y=(i.flags&128)!==0,F;if((F=y)||(F=n!==null&&n.memoizedState===null?!1:(pn.current&2)!==0),F&&(d=!0,i.flags&=-129),F=(i.flags&32)!==0,i.flags&=-33,n===null){if(bt){if(d?Co(i):Oo(),bt){var q=Kt,oe;if(oe=q){e:{for(oe=q,q=Ai;oe.nodeType!==8;){if(!q){q=null;break e}if(oe=ni(oe.nextSibling),oe===null){q=null;break e}}q=oe}q!==null?(i.memoizedState={dehydrated:q,treeContext:ga!==null?{id:Ni,overflow:Li}:null,retryLane:536870912,hydrationErrors:null},oe=hr(18,null,null,0),oe.stateNode=q,oe.return=i,i.child=oe,Qn=i,Kt=null,oe=!0):oe=!1}oe||ba(i)}if(q=i.memoizedState,q!==null&&(q=q.dehydrated,q!==null))return qy(q)?i.lanes=32:i.lanes=536870912,null;Hi(i)}return q=u.children,u=u.fallback,d?(Oo(),d=i.mode,q=Nf({mode:"hidden",children:q},d),u=ya(u,d,a,null),q.return=i,u.return=i,q.sibling=u,i.child=q,d=i.child,d.memoizedState=ny(a),d.childLanes=ry(n,F,a),i.memoizedState=ty,u):(Co(i),iy(i,q))}if(oe=n.memoizedState,oe!==null&&(q=oe.dehydrated,q!==null)){if(y)i.flags&256?(Co(i),i.flags&=-257,i=oy(n,i,a)):i.memoizedState!==null?(Oo(),i.child=n.child,i.flags|=128,i=null):(Oo(),d=u.fallback,q=i.mode,u=Nf({mode:"visible",children:u.children},q),d=ya(d,q,a,null),d.flags|=2,u.return=i,d.return=i,u.sibling=d,i.child=u,Bs(i,n.child,null,a),u=i.child,u.memoizedState=ny(a),u.childLanes=ry(n,F,a),i.memoizedState=ty,i=d);else if(Co(i),qy(q)){if(F=q.nextSibling&&q.nextSibling.dataset,F)var xe=F.dgst;F=xe,u=Error(o(419)),u.stack="",u.digest=F,zu({value:u,source:null,stack:null}),i=oy(n,i,a)}else if(mn||Gu(n,i,a,!1),F=(a&n.childLanes)!==0,mn||F){if(F=Mt,F!==null&&(u=a&-a,u=(u&42)!==0?1:Ut(u),u=(u&(F.suspendedLanes|a))!==0?0:u,u!==0&&u!==oe.retryLane))throw oe.retryLane=u,bs(n,u),Ar(F,n,u),fw;q.data==="$?"||wy(),i=oy(n,i,a)}else q.data==="$?"?(i.flags|=192,i.child=n.child,i=null):(n=oe.treeContext,Kt=ni(q.nextSibling),Qn=i,bt=!0,Aa=null,Ai=!1,n!==null&&(Nr[Lr++]=Ni,Nr[Lr++]=Li,Nr[Lr++]=ga,Ni=n.id,Li=n.overflow,ga=i),i=iy(i,u.children),i.flags|=4096);return i}return d?(Oo(),d=u.fallback,q=i.mode,oe=n.child,xe=oe.sibling,u=ji(oe,{mode:"hidden",children:u.children}),u.subtreeFlags=oe.subtreeFlags&65011712,xe!==null?d=ji(xe,d):(d=ya(d,q,a,null),d.flags|=2),d.return=i,u.return=i,u.sibling=d,i.child=u,u=d,d=i.child,q=n.child.memoizedState,q===null?q=ny(a):(oe=q.cachePool,oe!==null?(xe=hn._currentValue,oe=oe.parent!==xe?{parent:xe,pool:xe}:oe):oe=aE(),q={baseLanes:q.baseLanes|a,cachePool:oe}),d.memoizedState=q,d.childLanes=ry(n,F,a),i.memoizedState=ty,u):(Co(i),a=n.child,n=a.sibling,a=ji(a,{mode:"visible",children:u.children}),a.return=i,a.sibling=null,n!==null&&(F=i.deletions,F===null?(i.deletions=[n],i.flags|=16):F.push(n)),i.child=a,i.memoizedState=null,a)}function iy(n,i){return i=Nf({mode:"visible",children:i},n.mode),i.return=n,n.child=i}function Nf(n,i){return n=hr(22,n,null,i),n.lanes=0,n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},n}function oy(n,i,a){return Bs(i,n.child,null,a),n=iy(i,i.pendingProps.children),n.flags|=2,i.memoizedState=null,n}function vw(n,i,a){n.lanes|=i;var u=n.alternate;u!==null&&(u.lanes|=i),wp(n.return,i,a)}function ay(n,i,a,u,d){var y=n.memoizedState;y===null?n.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:u,tail:a,tailMode:d}:(y.isBackwards=i,y.rendering=null,y.renderingStartTime=0,y.last=u,y.tail=a,y.tailMode=d)}function Ew(n,i,a){var u=i.pendingProps,d=u.revealOrder,y=u.tail;if(Fn(n,i,u.children,a),u=pn.current,(u&2)!==0)u=u&1|2,i.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=i.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&vw(n,a,i);else if(n.tag===19)vw(n,a,i);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===i)break e;for(;n.sibling===null;){if(n.return===null||n.return===i)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}u&=1}switch(Q(pn,u),d){case"forwards":for(a=i.child,d=null;a!==null;)n=a.alternate,n!==null&&Df(n)===null&&(d=a),a=a.sibling;a=d,a===null?(d=i.child,i.child=null):(d=a.sibling,a.sibling=null),ay(i,!1,d,a,y);break;case"backwards":for(a=null,d=i.child,i.child=null;d!==null;){if(n=d.alternate,n!==null&&Df(n)===null){i.child=d;break}n=d.sibling,d.sibling=a,a=d,d=n}ay(i,!0,a,null,y);break;case"together":ay(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function zi(n,i,a){if(n!==null&&(i.dependencies=n.dependencies),_o|=i.lanes,(a&i.childLanes)===0)if(n!==null){if(Gu(n,i,a,!1),(a&i.childLanes)===0)return null}else return null;if(n!==null&&i.child!==n.child)throw Error(o(153));if(i.child!==null){for(n=i.child,a=ji(n,n.pendingProps),i.child=a,a.return=i;n.sibling!==null;)n=n.sibling,a=a.sibling=ji(n,n.pendingProps),a.return=i;a.sibling=null}return i.child}function sy(n,i){return(n.lanes&i)!==0?!0:(n=n.dependencies,!!(n!==null&&Af(n)))}function c8(n,i,a){switch(i.tag){case 3:ye(i,i.stateNode.containerInfo),vo(i,hn,n.memoizedState.cache),Hu();break;case 27:case 5:w(i);break;case 4:ye(i,i.stateNode.containerInfo);break;case 10:vo(i,i.type,i.memoizedProps.value);break;case 13:var u=i.memoizedState;if(u!==null)return u.dehydrated!==null?(Co(i),i.flags|=128,null):(a&i.child.childLanes)!==0?xw(n,i,a):(Co(i),n=zi(n,i,a),n!==null?n.sibling:null);Co(i);break;case 19:var d=(n.flags&128)!==0;if(u=(a&i.childLanes)!==0,u||(Gu(n,i,a,!1),u=(a&i.childLanes)!==0),d){if(u)return Ew(n,i,a);i.flags|=128}if(d=i.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),Q(pn,pn.current),u)break;return null;case 22:case 23:return i.lanes=0,yw(n,i,a);case 24:vo(i,hn,n.memoizedState.cache)}return zi(n,i,a)}function ww(n,i,a){if(n!==null)if(n.memoizedProps!==i.pendingProps)mn=!0;else{if(!sy(n,a)&&(i.flags&128)===0)return mn=!1,c8(n,i,a);mn=(n.flags&131072)!==0}else mn=!1,bt&&(i.flags&1048576)!==0&&Wv(i,mf,i.index);switch(i.lanes=0,i.tag){case 16:e:{n=i.pendingProps;var u=i.elementType,d=u._init;if(u=d(u._payload),i.type=u,typeof u=="function")gp(u)?(n=Ia(u,n),i.tag=1,i=Aw(null,i,u,n,a)):(i.tag=0,i=ey(null,i,u,n,a));else{if(u!=null){if(d=u.$$typeof,d===$){i.tag=11,i=dw(null,i,u,n,a);break e}else if(d===ne){i.tag=14,i=hw(null,i,u,n,a);break e}}throw i=de(u)||u,Error(o(306,i,""))}}return i;case 0:return ey(n,i,i.type,i.pendingProps,a);case 1:return u=i.type,d=Ia(u,i.pendingProps),Aw(n,i,u,d,a);case 3:e:{if(ye(i,i.stateNode.containerInfo),n===null)throw Error(o(387));u=i.pendingProps;var y=i.memoizedState;d=y.element,Bp(n,i),Ju(i,u,null,a);var F=i.memoizedState;if(u=F.cache,vo(i,hn,u),u!==y.cache&&Ip(i,[hn],a,!0),Zu(),u=F.element,y.isDehydrated)if(y={element:u,isDehydrated:!1,cache:F.cache},i.updateQueue.baseState=y,i.memoizedState=y,i.flags&256){i=bw(n,i,u,a);break e}else if(u!==d){d=Pr(Error(o(424)),i),zu(d),i=bw(n,i,u,a);break e}else{switch(n=i.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(Kt=ni(n.firstChild),Qn=i,bt=!0,Aa=null,Ai=!0,a=tw(i,null,u,a),i.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Hu(),u===d){i=zi(n,i,a);break e}Fn(n,i,u,a)}i=i.child}return i;case 26:return jf(n,i),n===null?(a=O2(i.type,null,i.pendingProps,null))?i.memoizedState=a:bt||(a=i.type,n=i.pendingProps,u=Jf(V.current).createElement(a),u[Jt]=i,u[dn]=n,Bn(u,a,n),Ht(u),i.stateNode=u):i.memoizedState=O2(i.type,n.memoizedProps,i.pendingProps,n.memoizedState),null;case 27:return w(i),n===null&&bt&&(u=i.stateNode=I2(i.type,i.pendingProps,V.current),Qn=i,Ai=!0,d=Kt,Po(i.type)?($y=d,Kt=ni(u.firstChild)):Kt=d),Fn(n,i,i.pendingProps.children,a),jf(n,i),n===null&&(i.flags|=4194304),i.child;case 5:return n===null&&bt&&((d=u=Kt)&&(u=j8(u,i.type,i.pendingProps,Ai),u!==null?(i.stateNode=u,Qn=i,Kt=ni(u.firstChild),Ai=!1,d=!0):d=!1),d||ba(i)),w(i),d=i.type,y=i.pendingProps,F=n!==null?n.memoizedProps:null,u=y.children,jy(d,y)?u=null:F!==null&&jy(d,F)&&(i.flags|=32),i.memoizedState!==null&&(d=Pp(n,i,t8,null,null,a),xc._currentValue=d),jf(n,i),Fn(n,i,u,a),i.child;case 6:return n===null&&bt&&((n=a=Kt)&&(a=N8(a,i.pendingProps,Ai),a!==null?(i.stateNode=a,Qn=i,Kt=null,n=!0):n=!1),n||ba(i)),null;case 13:return xw(n,i,a);case 4:return ye(i,i.stateNode.containerInfo),u=i.pendingProps,n===null?i.child=Bs(i,null,u,a):Fn(n,i,u,a),i.child;case 11:return dw(n,i,i.type,i.pendingProps,a);case 7:return Fn(n,i,i.pendingProps,a),i.child;case 8:return Fn(n,i,i.pendingProps.children,a),i.child;case 12:return Fn(n,i,i.pendingProps.children,a),i.child;case 10:return u=i.pendingProps,vo(i,i.type,u.value),Fn(n,i,u.children,a),i.child;case 9:return d=i.type._context,u=i.pendingProps.children,va(i),d=Ln(d),u=u(d),i.flags|=1,Fn(n,i,u,a),i.child;case 14:return hw(n,i,i.type,i.pendingProps,a);case 15:return pw(n,i,i.type,i.pendingProps,a);case 19:return Ew(n,i,a);case 31:return u=i.pendingProps,a=i.mode,u={mode:u.mode,children:u.children},n===null?(a=Nf(u,a),a.ref=i.ref,i.child=a,a.return=i,i=a):(a=ji(n.child,u),a.ref=i.ref,i.child=a,a.return=i,i=a),i;case 22:return yw(n,i,a);case 24:return va(i),u=Ln(hn),n===null?(d=Op(),d===null&&(d=Mt,y=Sp(),d.pooledCache=y,y.refCount++,y!==null&&(d.pooledCacheLanes|=a),d=y),i.memoizedState={parent:u,cache:d},Rp(i),vo(i,hn,d)):((n.lanes&a)!==0&&(Bp(n,i),Ju(i,null,null,a),Zu()),d=n.memoizedState,y=i.memoizedState,d.parent!==u?(d={parent:u,cache:u},i.memoizedState=d,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=d),vo(i,hn,u)):(u=y.cache,vo(i,hn,u),u!==d.cache&&Ip(i,[hn],a,!0))),Fn(n,i,i.pendingProps.children,a),i.child;case 29:throw i.pendingProps}throw Error(o(156,i.tag))}function Gi(n){n.flags|=4}function Iw(n,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!_2(i)){if(i=qr.current,i!==null&&((ht&4194048)===ht?bi!==null:(ht&62914560)!==ht&&(ht&536870912)===0||i!==bi))throw Yu=Fp,sE;n.flags|=8192}}function Lf(n,i){i!==null&&(n.flags|=4),n.flags&16384&&(i=n.tag!==22?qt():536870912,n.lanes|=i,Ds|=i)}function oc(n,i){if(!bt)switch(n.tailMode){case"hidden":i=n.tail;for(var a=null;i!==null;)i.alternate!==null&&(a=i),i=i.sibling;a===null?n.tail=null:a.sibling=null;break;case"collapsed":a=n.tail;for(var u=null;a!==null;)a.alternate!==null&&(u=a),a=a.sibling;u===null?i||n.tail===null?n.tail=null:n.tail.sibling=null:u.sibling=null}}function zt(n){var i=n.alternate!==null&&n.alternate.child===n.child,a=0,u=0;if(i)for(var d=n.child;d!==null;)a|=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;)a|=d.lanes|d.childLanes,u|=d.subtreeFlags,u|=d.flags,d.return=n,d=d.sibling;return n.subtreeFlags|=u,n.childLanes=a,i}function l8(n,i,a){var u=i.pendingProps;switch(xp(i),i.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return zt(i),null;case 1:return zt(i),null;case 3:return a=i.stateNode,u=null,n!==null&&(u=n.memoizedState.cache),i.memoizedState.cache!==u&&(i.flags|=2048),$i(hn),G(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(n===null||n.child===null)&&(ku(i)?Gi(i):n===null||n.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,nE())),zt(i),null;case 26:return a=i.memoizedState,n===null?(Gi(i),a!==null?(zt(i),Iw(i,a)):(zt(i),i.flags&=-16777217)):a?a!==n.memoizedState?(Gi(i),zt(i),Iw(i,a)):(zt(i),i.flags&=-16777217):(n.memoizedProps!==u&&Gi(i),zt(i),i.flags&=-16777217),null;case 27:N(i),a=V.current;var d=i.type;if(n!==null&&i.stateNode!=null)n.memoizedProps!==u&&Gi(i);else{if(!u){if(i.stateNode===null)throw Error(o(166));return zt(i),null}n=j.current,ku(i)?eE(i):(n=I2(d,u,a),i.stateNode=n,Gi(i))}return zt(i),null;case 5:if(N(i),a=i.type,n!==null&&i.stateNode!=null)n.memoizedProps!==u&&Gi(i);else{if(!u){if(i.stateNode===null)throw Error(o(166));return zt(i),null}if(n=j.current,ku(i))eE(i);else{switch(d=Jf(V.current),n){case 1:n=d.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:n=d.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":n=d.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":n=d.createElementNS("http://www.w3.org/1998/Math/MathML",a);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(a,{is:u.is}):d.createElement(a)}}n[Jt]=i,n[dn]=u;e:for(d=i.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===i)break e;for(;d.sibling===null;){if(d.return===null||d.return===i)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}i.stateNode=n;e:switch(Bn(n,a,u),a){case"button":case"input":case"select":case"textarea":n=!!u.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&Gi(i)}}return zt(i),i.flags&=-16777217,null;case 6:if(n&&i.stateNode!=null)n.memoizedProps!==u&&Gi(i);else{if(typeof u!="string"&&i.stateNode===null)throw Error(o(166));if(n=V.current,ku(i)){if(n=i.stateNode,a=i.memoizedProps,u=null,d=Qn,d!==null)switch(d.tag){case 27:case 5:u=d.memoizedProps}n[Jt]=i,n=!!(n.nodeValue===a||u!==null&&u.suppressHydrationWarning===!0||m2(n.nodeValue,a)),n||ba(i)}else n=Jf(n).createTextNode(u),n[Jt]=i,i.stateNode=n}return zt(i),null;case 13:if(u=i.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(d=ku(i),u!==null&&u.dehydrated!==null){if(n===null){if(!d)throw Error(o(318));if(d=i.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(o(317));d[Jt]=i}else Hu(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;zt(i),d=!1}else d=nE(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=d),d=!0;if(!d)return i.flags&256?(Hi(i),i):(Hi(i),null)}if(Hi(i),(i.flags&128)!==0)return i.lanes=a,i;if(a=u!==null,n=n!==null&&n.memoizedState!==null,a){u=i.child,d=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(d=u.alternate.memoizedState.cachePool.pool);var y=null;u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(y=u.memoizedState.cachePool.pool),y!==d&&(u.flags|=2048)}return a!==n&&a&&(i.child.flags|=8192),Lf(i,i.updateQueue),zt(i),null;case 4:return G(),n===null&&_y(i.stateNode.containerInfo),zt(i),null;case 10:return $i(i.type),zt(i),null;case 19:if(ue(pn),d=i.memoizedState,d===null)return zt(i),null;if(u=(i.flags&128)!==0,y=d.rendering,y===null)if(u)oc(d,!1);else{if(Vt!==0||n!==null&&(n.flags&128)!==0)for(n=i.child;n!==null;){if(y=Df(n),y!==null){for(i.flags|=128,oc(d,!1),n=y.updateQueue,i.updateQueue=n,Lf(i,n),i.subtreeFlags=0,n=a,a=i.child;a!==null;)Jv(a,n),a=a.sibling;return Q(pn,pn.current&1|2),i.child}n=n.sibling}d.tail!==null&&g()>kf&&(i.flags|=128,u=!0,oc(d,!1),i.lanes=4194304)}else{if(!u)if(n=Df(y),n!==null){if(i.flags|=128,u=!0,n=n.updateQueue,i.updateQueue=n,Lf(i,n),oc(d,!0),d.tail===null&&d.tailMode==="hidden"&&!y.alternate&&!bt)return zt(i),null}else 2*g()-d.renderingStartTime>kf&&a!==536870912&&(i.flags|=128,u=!0,oc(d,!1),i.lanes=4194304);d.isBackwards?(y.sibling=i.child,i.child=y):(n=d.last,n!==null?n.sibling=y:i.child=y,d.last=y)}return d.tail!==null?(i=d.tail,d.rendering=i,d.tail=i.sibling,d.renderingStartTime=g(),i.sibling=null,n=pn.current,Q(pn,u?n&1|2:n&1),i):(zt(i),null);case 22:case 23:return Hi(i),Dp(),u=i.memoizedState!==null,n!==null?n.memoizedState!==null!==u&&(i.flags|=8192):u&&(i.flags|=8192),u?(a&536870912)!==0&&(i.flags&128)===0&&(zt(i),i.subtreeFlags&6&&(i.flags|=8192)):zt(i),a=i.updateQueue,a!==null&&Lf(i,a.retryQueue),a=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(a=n.memoizedState.cachePool.pool),u=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),u!==a&&(i.flags|=2048),n!==null&&ue(Ea),null;case 24:return a=null,n!==null&&(a=n.memoizedState.cache),i.memoizedState.cache!==a&&(i.flags|=2048),$i(hn),zt(i),null;case 25:return null;case 30:return null}throw Error(o(156,i.tag))}function f8(n,i){switch(xp(i),i.tag){case 1:return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 3:return $i(hn),G(),n=i.flags,(n&65536)!==0&&(n&128)===0?(i.flags=n&-65537|128,i):null;case 26:case 27:case 5:return N(i),null;case 13:if(Hi(i),n=i.memoizedState,n!==null&&n.dehydrated!==null){if(i.alternate===null)throw Error(o(340));Hu()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 19:return ue(pn),null;case 4:return G(),null;case 10:return $i(i.type),null;case 22:case 23:return Hi(i),Dp(),n!==null&&ue(Ea),n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 24:return $i(hn),null;case 25:return null;default:return null}}function Sw(n,i){switch(xp(i),i.tag){case 3:$i(hn),G();break;case 26:case 27:case 5:N(i);break;case 4:G();break;case 13:Hi(i);break;case 19:ue(pn);break;case 10:$i(i.type);break;case 22:case 23:Hi(i),Dp(),n!==null&&ue(Ea);break;case 24:$i(hn)}}function ac(n,i){try{var a=i.updateQueue,u=a!==null?a.lastEffect:null;if(u!==null){var d=u.next;a=d;do{if((a.tag&n)===n){u=void 0;var y=a.create,F=a.inst;u=y(),F.destroy=u}a=a.next}while(a!==d)}}catch(q){Rt(i,i.return,q)}}function Fo(n,i,a){try{var u=i.updateQueue,d=u!==null?u.lastEffect:null;if(d!==null){var y=d.next;u=y;do{if((u.tag&n)===n){var F=u.inst,q=F.destroy;if(q!==void 0){F.destroy=void 0,d=i;var oe=a,xe=q;try{xe()}catch(Re){Rt(d,oe,Re)}}}u=u.next}while(u!==y)}}catch(Re){Rt(i,i.return,Re)}}function Cw(n){var i=n.updateQueue;if(i!==null){var a=n.stateNode;try{hE(i,a)}catch(u){Rt(n,n.return,u)}}}function Ow(n,i,a){a.props=Ia(n.type,n.memoizedProps),a.state=n.memoizedState;try{a.componentWillUnmount()}catch(u){Rt(n,i,u)}}function sc(n,i){try{var a=n.ref;if(a!==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 a=="function"?n.refCleanup=a(u):a.current=u}}catch(d){Rt(n,i,d)}}function xi(n,i){var a=n.ref,u=n.refCleanup;if(a!==null)if(typeof u=="function")try{u()}catch(d){Rt(n,i,d)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(d){Rt(n,i,d)}else a.current=null}function Fw(n){var i=n.type,a=n.memoizedProps,u=n.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":a.autoFocus&&u.focus();break e;case"img":a.src?u.src=a.src:a.srcSet&&(u.srcset=a.srcSet)}}catch(d){Rt(n,n.return,d)}}function uy(n,i,a){try{var u=n.stateNode;_8(u,n.type,a,i),u[dn]=i}catch(d){Rt(n,n.return,d)}}function Rw(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Po(n.type)||n.tag===4}function cy(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||Rw(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&&Po(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 ly(n,i,a){var u=n.tag;if(u===5||u===6)n=n.stateNode,i?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(n,i):(i=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,i.appendChild(n),a=a._reactRootContainer,a!=null||i.onclick!==null||(i.onclick=Zf));else if(u!==4&&(u===27&&Po(n.type)&&(a=n.stateNode,i=null),n=n.child,n!==null))for(ly(n,i,a),n=n.sibling;n!==null;)ly(n,i,a),n=n.sibling}function qf(n,i,a){var u=n.tag;if(u===5||u===6)n=n.stateNode,i?a.insertBefore(n,i):a.appendChild(n);else if(u!==4&&(u===27&&Po(n.type)&&(a=n.stateNode),n=n.child,n!==null))for(qf(n,i,a),n=n.sibling;n!==null;)qf(n,i,a),n=n.sibling}function Bw(n){var i=n.stateNode,a=n.memoizedProps;try{for(var u=n.type,d=i.attributes;d.length;)i.removeAttributeNode(d[0]);Bn(i,u,a),i[Jt]=n,i[dn]=a}catch(y){Rt(n,n.return,y)}}var Qi=!1,en=!1,fy=!1,Tw=typeof WeakSet=="function"?WeakSet:Set,An=null;function d8(n,i){if(n=n.containerInfo,Uy=id,n=kv(n),cp(n)){if("selectionStart"in n)var a={start:n.selectionStart,end:n.selectionEnd};else e:{a=(a=n.ownerDocument)&&a.defaultView||window;var u=a.getSelection&&a.getSelection();if(u&&u.rangeCount!==0){a=u.anchorNode;var d=u.anchorOffset,y=u.focusNode;u=u.focusOffset;try{a.nodeType,y.nodeType}catch{a=null;break e}var F=0,q=-1,oe=-1,xe=0,Re=0,Te=n,ve=null;t:for(;;){for(var Ie;Te!==a||d!==0&&Te.nodeType!==3||(q=F+d),Te!==y||u!==0&&Te.nodeType!==3||(oe=F+u),Te.nodeType===3&&(F+=Te.nodeValue.length),(Ie=Te.firstChild)!==null;)ve=Te,Te=Ie;for(;;){if(Te===n)break t;if(ve===a&&++xe===d&&(q=F),ve===y&&++Re===u&&(oe=F),(Ie=Te.nextSibling)!==null)break;Te=ve,ve=Te.parentNode}Te=Ie}a=q===-1||oe===-1?null:{start:q,end:oe}}else a=null}a=a||{start:0,end:0}}else a=null;for(Py={focusedElem:n,selectionRange:a},id=!1,An=i;An!==null;)if(i=An,n=i.child,(i.subtreeFlags&1024)!==0&&n!==null)n.return=i,An=n;else for(;An!==null;){switch(i=An,y=i.alternate,n=i.flags,i.tag){case 0:break;case 11:case 15:break;case 1:if((n&1024)!==0&&y!==null){n=void 0,a=i,d=y.memoizedProps,y=y.memoizedState,u=a.stateNode;try{var Xe=Ia(a.type,d,a.elementType===a.type);n=u.getSnapshotBeforeUpdate(Xe,y),u.__reactInternalSnapshotBeforeUpdate=n}catch(Ke){Rt(a,a.return,Ke)}}break;case 3:if((n&1024)!==0){if(n=i.stateNode.containerInfo,a=n.nodeType,a===9)Ly(n);else if(a===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":Ly(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(o(163))}if(n=i.sibling,n!==null){n.return=i.return,An=n;break}An=i.return}}function _w(n,i,a){var u=a.flags;switch(a.tag){case 0:case 11:case 15:Ro(n,a),u&4&&ac(5,a);break;case 1:if(Ro(n,a),u&4)if(n=a.stateNode,i===null)try{n.componentDidMount()}catch(F){Rt(a,a.return,F)}else{var d=Ia(a.type,i.memoizedProps);i=i.memoizedState;try{n.componentDidUpdate(d,i,n.__reactInternalSnapshotBeforeUpdate)}catch(F){Rt(a,a.return,F)}}u&64&&Cw(a),u&512&&sc(a,a.return);break;case 3:if(Ro(n,a),u&64&&(n=a.updateQueue,n!==null)){if(i=null,a.child!==null)switch(a.child.tag){case 27:case 5:i=a.child.stateNode;break;case 1:i=a.child.stateNode}try{hE(n,i)}catch(F){Rt(a,a.return,F)}}break;case 27:i===null&&u&4&&Bw(a);case 26:case 5:Ro(n,a),i===null&&u&4&&Fw(a),u&512&&sc(a,a.return);break;case 12:Ro(n,a);break;case 13:Ro(n,a),u&4&&Uw(n,a),u&64&&(n=a.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(a=v8.bind(null,a),L8(n,a))));break;case 22:if(u=a.memoizedState!==null||Qi,!u){i=i!==null&&i.memoizedState!==null||en,d=Qi;var y=en;Qi=u,(en=i)&&!y?Bo(n,a,(a.subtreeFlags&8772)!==0):Ro(n,a),Qi=d,en=y}break;case 30:break;default:Ro(n,a)}}function Mw(n){var i=n.alternate;i!==null&&(n.alternate=null,Mw(i)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(i=n.stateNode,i!==null&&bo(i)),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 Pt=null,Wn=!1;function Ki(n,i,a){for(a=a.child;a!==null;)Dw(n,i,a),a=a.sibling}function Dw(n,i,a){if(Fe&&typeof Fe.onCommitFiberUnmount=="function")try{Fe.onCommitFiberUnmount(Ee,a)}catch{}switch(a.tag){case 26:en||xi(a,i),Ki(n,i,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:en||xi(a,i);var u=Pt,d=Wn;Po(a.type)&&(Pt=a.stateNode,Wn=!1),Ki(n,i,a),gc(a.stateNode),Pt=u,Wn=d;break;case 5:en||xi(a,i);case 6:if(u=Pt,d=Wn,Pt=null,Ki(n,i,a),Pt=u,Wn=d,Pt!==null)if(Wn)try{(Pt.nodeType===9?Pt.body:Pt.nodeName==="HTML"?Pt.ownerDocument.body:Pt).removeChild(a.stateNode)}catch(y){Rt(a,i,y)}else try{Pt.removeChild(a.stateNode)}catch(y){Rt(a,i,y)}break;case 18:Pt!==null&&(Wn?(n=Pt,E2(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,a.stateNode),Ic(n)):E2(Pt,a.stateNode));break;case 4:u=Pt,d=Wn,Pt=a.stateNode.containerInfo,Wn=!0,Ki(n,i,a),Pt=u,Wn=d;break;case 0:case 11:case 14:case 15:en||Fo(2,a,i),en||Fo(4,a,i),Ki(n,i,a);break;case 1:en||(xi(a,i),u=a.stateNode,typeof u.componentWillUnmount=="function"&&Ow(a,i,u)),Ki(n,i,a);break;case 21:Ki(n,i,a);break;case 22:en=(u=en)||a.memoizedState!==null,Ki(n,i,a),en=u;break;default:Ki(n,i,a)}}function Uw(n,i){if(i.memoizedState===null&&(n=i.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{Ic(n)}catch(a){Rt(i,i.return,a)}}function h8(n){switch(n.tag){case 13:case 19:var i=n.stateNode;return i===null&&(i=n.stateNode=new Tw),i;case 22:return n=n.stateNode,i=n._retryCache,i===null&&(i=n._retryCache=new Tw),i;default:throw Error(o(435,n.tag))}}function dy(n,i){var a=h8(n);i.forEach(function(u){var d=E8.bind(null,n,u);a.has(u)||(a.add(u),u.then(d,d))})}function pr(n,i){var a=i.deletions;if(a!==null)for(var u=0;u<a.length;u++){var d=a[u],y=n,F=i,q=F;e:for(;q!==null;){switch(q.tag){case 27:if(Po(q.type)){Pt=q.stateNode,Wn=!1;break e}break;case 5:Pt=q.stateNode,Wn=!1;break e;case 3:case 4:Pt=q.stateNode.containerInfo,Wn=!0;break e}q=q.return}if(Pt===null)throw Error(o(160));Dw(y,F,d),Pt=null,Wn=!1,y=d.alternate,y!==null&&(y.return=null),d.return=null}if(i.subtreeFlags&13878)for(i=i.child;i!==null;)Pw(i,n),i=i.sibling}var ti=null;function Pw(n,i){var a=n.alternate,u=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:pr(i,n),yr(n),u&4&&(Fo(3,n,n.return),ac(3,n),Fo(5,n,n.return));break;case 1:pr(i,n),yr(n),u&512&&(en||a===null||xi(a,a.return)),u&64&&Qi&&(n=n.updateQueue,n!==null&&(u=n.callbacks,u!==null&&(a=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=a===null?u:a.concat(u))));break;case 26:var d=ti;if(pr(i,n),yr(n),u&512&&(en||a===null||xi(a,a.return)),u&4){var y=a!==null?a.memoizedState:null;if(u=n.memoizedState,a===null)if(u===null)if(n.stateNode===null){e:{u=n.type,a=n.memoizedProps,d=d.ownerDocument||d;t:switch(u){case"title":y=d.getElementsByTagName("title")[0],(!y||y[gi]||y[Jt]||y.namespaceURI==="http://www.w3.org/2000/svg"||y.hasAttribute("itemprop"))&&(y=d.createElement(u),d.head.insertBefore(y,d.querySelector("head > title"))),Bn(y,u,a),y[Jt]=n,Ht(y),u=y;break e;case"link":var F=B2("link","href",d).get(u+(a.href||""));if(F){for(var q=0;q<F.length;q++)if(y=F[q],y.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&y.getAttribute("rel")===(a.rel==null?null:a.rel)&&y.getAttribute("title")===(a.title==null?null:a.title)&&y.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){F.splice(q,1);break t}}y=d.createElement(u),Bn(y,u,a),d.head.appendChild(y);break;case"meta":if(F=B2("meta","content",d).get(u+(a.content||""))){for(q=0;q<F.length;q++)if(y=F[q],y.getAttribute("content")===(a.content==null?null:""+a.content)&&y.getAttribute("name")===(a.name==null?null:a.name)&&y.getAttribute("property")===(a.property==null?null:a.property)&&y.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&y.getAttribute("charset")===(a.charSet==null?null:a.charSet)){F.splice(q,1);break t}}y=d.createElement(u),Bn(y,u,a),d.head.appendChild(y);break;default:throw Error(o(468,u))}y[Jt]=n,Ht(y),u=y}n.stateNode=u}else T2(d,n.type,n.stateNode);else n.stateNode=R2(d,u,n.memoizedProps);else y!==u?(y===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):y.count--,u===null?T2(d,n.type,n.stateNode):R2(d,u,n.memoizedProps)):u===null&&n.stateNode!==null&&uy(n,n.memoizedProps,a.memoizedProps)}break;case 27:pr(i,n),yr(n),u&512&&(en||a===null||xi(a,a.return)),a!==null&&u&4&&uy(n,n.memoizedProps,a.memoizedProps);break;case 5:if(pr(i,n),yr(n),u&512&&(en||a===null||xi(a,a.return)),n.flags&32){d=n.stateNode;try{ds(d,"")}catch(Ie){Rt(n,n.return,Ie)}}u&4&&n.stateNode!=null&&(d=n.memoizedProps,uy(n,d,a!==null?a.memoizedProps:d)),u&1024&&(fy=!0);break;case 6:if(pr(i,n),yr(n),u&4){if(n.stateNode===null)throw Error(o(162));u=n.memoizedProps,a=n.stateNode;try{a.nodeValue=u}catch(Ie){Rt(n,n.return,Ie)}}break;case 3:if(td=null,d=ti,ti=Wf(i.containerInfo),pr(i,n),ti=d,yr(n),u&4&&a!==null&&a.memoizedState.isDehydrated)try{Ic(i.containerInfo)}catch(Ie){Rt(n,n.return,Ie)}fy&&(fy=!1,jw(n));break;case 4:u=ti,ti=Wf(n.stateNode.containerInfo),pr(i,n),yr(n),ti=u;break;case 12:pr(i,n),yr(n);break;case 13:pr(i,n),yr(n),n.child.flags&8192&&n.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Ay=g()),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,dy(n,u)));break;case 22:d=n.memoizedState!==null;var oe=a!==null&&a.memoizedState!==null,xe=Qi,Re=en;if(Qi=xe||d,en=Re||oe,pr(i,n),en=Re,Qi=xe,yr(n),u&8192)e:for(i=n.stateNode,i._visibility=d?i._visibility&-2:i._visibility|1,d&&(a===null||oe||Qi||en||Sa(n)),a=null,i=n;;){if(i.tag===5||i.tag===26){if(a===null){oe=a=i;try{if(y=oe.stateNode,d)F=y.style,typeof F.setProperty=="function"?F.setProperty("display","none","important"):F.display="none";else{q=oe.stateNode;var Te=oe.memoizedProps.style,ve=Te!=null&&Te.hasOwnProperty("display")?Te.display:null;q.style.display=ve==null||typeof ve=="boolean"?"":(""+ve).trim()}}catch(Ie){Rt(oe,oe.return,Ie)}}}else if(i.tag===6){if(a===null){oe=i;try{oe.stateNode.nodeValue=d?"":oe.memoizedProps}catch(Ie){Rt(oe,oe.return,Ie)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===n)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break e;for(;i.sibling===null;){if(i.return===null||i.return===n)break e;a===i&&(a=null),i=i.return}a===i&&(a=null),i.sibling.return=i.return,i=i.sibling}u&4&&(u=n.updateQueue,u!==null&&(a=u.retryQueue,a!==null&&(u.retryQueue=null,dy(n,a))));break;case 19:pr(i,n),yr(n),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,dy(n,u)));break;case 30:break;case 21:break;default:pr(i,n),yr(n)}}function yr(n){var i=n.flags;if(i&2){try{for(var a,u=n.return;u!==null;){if(Rw(u)){a=u;break}u=u.return}if(a==null)throw Error(o(160));switch(a.tag){case 27:var d=a.stateNode,y=cy(n);qf(n,y,d);break;case 5:var F=a.stateNode;a.flags&32&&(ds(F,""),a.flags&=-33);var q=cy(n);qf(n,q,F);break;case 3:case 4:var oe=a.stateNode.containerInfo,xe=cy(n);ly(n,xe,oe);break;default:throw Error(o(161))}}catch(Re){Rt(n,n.return,Re)}n.flags&=-3}i&4096&&(n.flags&=-4097)}function jw(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var i=n;jw(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),n=n.sibling}}function Ro(n,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)_w(n,i.alternate,i),i=i.sibling}function Sa(n){for(n=n.child;n!==null;){var i=n;switch(i.tag){case 0:case 11:case 14:case 15:Fo(4,i,i.return),Sa(i);break;case 1:xi(i,i.return);var a=i.stateNode;typeof a.componentWillUnmount=="function"&&Ow(i,i.return,a),Sa(i);break;case 27:gc(i.stateNode);case 26:case 5:xi(i,i.return),Sa(i);break;case 22:i.memoizedState===null&&Sa(i);break;case 30:Sa(i);break;default:Sa(i)}n=n.sibling}}function Bo(n,i,a){for(a=a&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var u=i.alternate,d=n,y=i,F=y.flags;switch(y.tag){case 0:case 11:case 15:Bo(d,y,a),ac(4,y);break;case 1:if(Bo(d,y,a),u=y,d=u.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(xe){Rt(u,u.return,xe)}if(u=y,d=u.updateQueue,d!==null){var q=u.stateNode;try{var oe=d.shared.hiddenCallbacks;if(oe!==null)for(d.shared.hiddenCallbacks=null,d=0;d<oe.length;d++)dE(oe[d],q)}catch(xe){Rt(u,u.return,xe)}}a&&F&64&&Cw(y),sc(y,y.return);break;case 27:Bw(y);case 26:case 5:Bo(d,y,a),a&&u===null&&F&4&&Fw(y),sc(y,y.return);break;case 12:Bo(d,y,a);break;case 13:Bo(d,y,a),a&&F&4&&Uw(d,y);break;case 22:y.memoizedState===null&&Bo(d,y,a),sc(y,y.return);break;case 30:break;default:Bo(d,y,a)}i=i.sibling}}function hy(n,i){var a=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(a=n.memoizedState.cachePool.pool),n=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(n=i.memoizedState.cachePool.pool),n!==a&&(n!=null&&n.refCount++,a!=null&&Qu(a))}function py(n,i){n=null,i.alternate!==null&&(n=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==n&&(i.refCount++,n!=null&&Qu(n))}function vi(n,i,a,u){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)Nw(n,i,a,u),i=i.sibling}function Nw(n,i,a,u){var d=i.flags;switch(i.tag){case 0:case 11:case 15:vi(n,i,a,u),d&2048&&ac(9,i);break;case 1:vi(n,i,a,u);break;case 3:vi(n,i,a,u),d&2048&&(n=null,i.alternate!==null&&(n=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==n&&(i.refCount++,n!=null&&Qu(n)));break;case 12:if(d&2048){vi(n,i,a,u),n=i.stateNode;try{var y=i.memoizedProps,F=y.id,q=y.onPostCommit;typeof q=="function"&&q(F,i.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(oe){Rt(i,i.return,oe)}}else vi(n,i,a,u);break;case 13:vi(n,i,a,u);break;case 23:break;case 22:y=i.stateNode,F=i.alternate,i.memoizedState!==null?y._visibility&2?vi(n,i,a,u):uc(n,i):y._visibility&2?vi(n,i,a,u):(y._visibility|=2,Ts(n,i,a,u,(i.subtreeFlags&10256)!==0)),d&2048&&hy(F,i);break;case 24:vi(n,i,a,u),d&2048&&py(i.alternate,i);break;default:vi(n,i,a,u)}}function Ts(n,i,a,u,d){for(d=d&&(i.subtreeFlags&10256)!==0,i=i.child;i!==null;){var y=n,F=i,q=a,oe=u,xe=F.flags;switch(F.tag){case 0:case 11:case 15:Ts(y,F,q,oe,d),ac(8,F);break;case 23:break;case 22:var Re=F.stateNode;F.memoizedState!==null?Re._visibility&2?Ts(y,F,q,oe,d):uc(y,F):(Re._visibility|=2,Ts(y,F,q,oe,d)),d&&xe&2048&&hy(F.alternate,F);break;case 24:Ts(y,F,q,oe,d),d&&xe&2048&&py(F.alternate,F);break;default:Ts(y,F,q,oe,d)}i=i.sibling}}function uc(n,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var a=n,u=i,d=u.flags;switch(u.tag){case 22:uc(a,u),d&2048&&hy(u.alternate,u);break;case 24:uc(a,u),d&2048&&py(u.alternate,u);break;default:uc(a,u)}i=i.sibling}}var cc=8192;function _s(n){if(n.subtreeFlags&cc)for(n=n.child;n!==null;)Lw(n),n=n.sibling}function Lw(n){switch(n.tag){case 26:_s(n),n.flags&cc&&n.memoizedState!==null&&J8(ti,n.memoizedState,n.memoizedProps);break;case 5:_s(n);break;case 3:case 4:var i=ti;ti=Wf(n.stateNode.containerInfo),_s(n),ti=i;break;case 22:n.memoizedState===null&&(i=n.alternate,i!==null&&i.memoizedState!==null?(i=cc,cc=16777216,_s(n),cc=i):_s(n));break;default:_s(n)}}function qw(n){var i=n.alternate;if(i!==null&&(n=i.child,n!==null)){i.child=null;do i=n.sibling,n.sibling=null,n=i;while(n!==null)}}function lc(n){var i=n.deletions;if((n.flags&16)!==0){if(i!==null)for(var a=0;a<i.length;a++){var u=i[a];An=u,kw(u,n)}qw(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)$w(n),n=n.sibling}function $w(n){switch(n.tag){case 0:case 11:case 15:lc(n),n.flags&2048&&Fo(9,n,n.return);break;case 3:lc(n);break;case 12:lc(n);break;case 22:var i=n.stateNode;n.memoizedState!==null&&i._visibility&2&&(n.return===null||n.return.tag!==13)?(i._visibility&=-3,$f(n)):lc(n);break;default:lc(n)}}function $f(n){var i=n.deletions;if((n.flags&16)!==0){if(i!==null)for(var a=0;a<i.length;a++){var u=i[a];An=u,kw(u,n)}qw(n)}for(n=n.child;n!==null;){switch(i=n,i.tag){case 0:case 11:case 15:Fo(8,i,i.return),$f(i);break;case 22:a=i.stateNode,a._visibility&2&&(a._visibility&=-3,$f(i));break;default:$f(i)}n=n.sibling}}function kw(n,i){for(;An!==null;){var a=An;switch(a.tag){case 0:case 11:case 15:Fo(8,a,i);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var u=a.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:Qu(a.memoizedState.cache)}if(u=a.child,u!==null)u.return=a,An=u;else e:for(a=n;An!==null;){u=An;var d=u.sibling,y=u.return;if(Mw(u),u===a){An=null;break e}if(d!==null){d.return=y,An=d;break e}An=y}}}var p8={getCacheForType:function(n){var i=Ln(hn),a=i.data.get(n);return a===void 0&&(a=n(),i.data.set(n,a)),a}},y8=typeof WeakMap=="function"?WeakMap:Map,vt=0,Mt=null,rt=null,ht=0,Et=0,gr=null,To=!1,Ms=!1,yy=!1,Vi=0,Vt=0,_o=0,Ca=0,gy=0,$r=0,Ds=0,fc=null,er=null,my=!1,Ay=0,kf=1/0,Hf=null,Mo=null,Rn=0,Do=null,Us=null,Ps=0,by=0,xy=null,Hw=null,dc=0,vy=null;function mr(){if((vt&2)!==0&&ht!==0)return ht&-ht;if(O.T!==null){var n=ws;return n!==0?n:Fy()}return aa()}function zw(){$r===0&&($r=(ht&536870912)===0||bt?xt():536870912);var n=qr.current;return n!==null&&(n.flags|=32),$r}function Ar(n,i,a){(n===Mt&&(Et===2||Et===9)||n.cancelPendingCommit!==null)&&(js(n,0),Uo(n,ht,$r,!1)),_t(n,a),((vt&2)===0||n!==Mt)&&(n===Mt&&((vt&2)===0&&(Ca|=a),Vt===4&&Uo(n,ht,$r,!1)),Ei(n))}function Gw(n,i,a){if((vt&6)!==0)throw Error(o(327));var u=!a&&(i&124)===0&&(i&n.expiredLanes)===0||gt(n,i),d=u?A8(n,i):Iy(n,i,!0),y=u;do{if(d===0){Ms&&!u&&Uo(n,i,0,!1);break}else{if(a=n.current.alternate,y&&!g8(a)){d=Iy(n,i,!1),y=!1;continue}if(d===2){if(y=i,n.errorRecoveryDisabledLanes&y)var F=0;else F=n.pendingLanes&-536870913,F=F!==0?F:F&536870912?536870912:0;if(F!==0){i=F;e:{var q=n;d=fc;var oe=q.current.memoizedState.isDehydrated;if(oe&&(js(q,F).flags|=256),F=Iy(q,F,!1),F!==2){if(yy&&!oe){q.errorRecoveryDisabledLanes|=y,Ca|=y,d=4;break e}y=er,er=d,y!==null&&(er===null?er=y:er.push.apply(er,y))}d=F}if(y=!1,d!==2)continue}}if(d===1){js(n,0),Uo(n,i,0,!0);break}e:{switch(u=n,y=d,y){case 0:case 1:throw Error(o(345));case 4:if((i&4194048)!==i)break;case 6:Uo(u,i,$r,!To);break e;case 2:er=null;break;case 3:case 5:break;default:throw Error(o(329))}if((i&62914560)===i&&(d=Ay+300-g(),10<d)){if(Uo(u,i,$r,!To),pt(u,0,!0)!==0)break e;u.timeoutHandle=x2(Qw.bind(null,u,a,er,Hf,my,i,$r,Ca,Ds,To,y,2,-0,0),d);break e}Qw(u,a,er,Hf,my,i,$r,Ca,Ds,To,y,0,-0,0)}}break}while(!0);Ei(n)}function Qw(n,i,a,u,d,y,F,q,oe,xe,Re,Te,ve,Ie){if(n.timeoutHandle=-1,Te=i.subtreeFlags,(Te&8192||(Te&16785408)===16785408)&&(bc={stylesheets:null,count:0,unsuspend:Z8},Lw(i),Te=W8(),Te!==null)){n.cancelPendingCommit=Te(Ww.bind(null,n,i,y,a,u,d,F,q,oe,Re,1,ve,Ie)),Uo(n,y,F,!xe);return}Ww(n,i,y,a,u,d,F,q,oe)}function g8(n){for(var i=n;;){var a=i.tag;if((a===0||a===11||a===15)&&i.flags&16384&&(a=i.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var u=0;u<a.length;u++){var d=a[u],y=d.getSnapshot;d=d.value;try{if(!dr(y(),d))return!1}catch{return!1}}if(a=i.child,i.subtreeFlags&16384&&a!==null)a.return=i,i=a;else{if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Uo(n,i,a,u){i&=~gy,i&=~Ca,n.suspendedLanes|=i,n.pingedLanes&=~i,u&&(n.warmLanes|=i),u=n.expirationTimes;for(var d=i;0<d;){var y=31-qe(d),F=1<<y;u[y]=-1,d&=~F}a!==0&&$t(n,a,i)}function zf(){return(vt&6)===0?(hc(0),!1):!0}function Ey(){if(rt!==null){if(Et===0)var n=rt.return;else n=rt,qi=xa=null,Lp(n),Rs=null,rc=0,n=rt;for(;n!==null;)Sw(n.alternate,n),n=n.return;rt=null}}function js(n,i){var a=n.timeoutHandle;a!==-1&&(n.timeoutHandle=-1,D8(a)),a=n.cancelPendingCommit,a!==null&&(n.cancelPendingCommit=null,a()),Ey(),Mt=n,rt=a=ji(n.current,null),ht=i,Et=0,gr=null,To=!1,Ms=gt(n,i),yy=!1,Ds=$r=gy=Ca=_o=Vt=0,er=fc=null,my=!1,(i&8)!==0&&(i|=i&32);var u=n.entangledLanes;if(u!==0)for(n=n.entanglements,u&=i;0<u;){var d=31-qe(u),y=1<<d;i|=n[d],u&=~y}return Vi=i,df(),a}function Kw(n,i){tt=null,O.H=Tf,i===Vu||i===vf?(i=lE(),Et=3):i===sE?(i=lE(),Et=4):Et=i===fw?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,gr=i,rt===null&&(Vt=1,Pf(n,Pr(i,n.current)))}function Vw(){var n=O.H;return O.H=Tf,n===null?Tf:n}function Yw(){var n=O.A;return O.A=p8,n}function wy(){Vt=4,To||(ht&4194048)!==ht&&qr.current!==null||(Ms=!0),(_o&134217727)===0&&(Ca&134217727)===0||Mt===null||Uo(Mt,ht,$r,!1)}function Iy(n,i,a){var u=vt;vt|=2;var d=Vw(),y=Yw();(Mt!==n||ht!==i)&&(Hf=null,js(n,i)),i=!1;var F=Vt;e:do try{if(Et!==0&&rt!==null){var q=rt,oe=gr;switch(Et){case 8:Ey(),F=6;break e;case 3:case 2:case 9:case 6:qr.current===null&&(i=!0);var xe=Et;if(Et=0,gr=null,Ns(n,q,oe,xe),a&&Ms){F=0;break e}break;default:xe=Et,Et=0,gr=null,Ns(n,q,oe,xe)}}m8(),F=Vt;break}catch(Re){Kw(n,Re)}while(!0);return i&&n.shellSuspendCounter++,qi=xa=null,vt=u,O.H=d,O.A=y,rt===null&&(Mt=null,ht=0,df()),F}function m8(){for(;rt!==null;)Xw(rt)}function A8(n,i){var a=vt;vt|=2;var u=Vw(),d=Yw();Mt!==n||ht!==i?(Hf=null,kf=g()+500,js(n,i)):Ms=gt(n,i);e:do try{if(Et!==0&&rt!==null){i=rt;var y=gr;t:switch(Et){case 1:Et=0,gr=null,Ns(n,i,y,1);break;case 2:case 9:if(uE(y)){Et=0,gr=null,Zw(i);break}i=function(){Et!==2&&Et!==9||Mt!==n||(Et=7),Ei(n)},y.then(i,i);break e;case 3:Et=7;break e;case 4:Et=5;break e;case 7:uE(y)?(Et=0,gr=null,Zw(i)):(Et=0,gr=null,Ns(n,i,y,7));break;case 5:var F=null;switch(rt.tag){case 26:F=rt.memoizedState;case 5:case 27:var q=rt;if(!F||_2(F)){Et=0,gr=null;var oe=q.sibling;if(oe!==null)rt=oe;else{var xe=q.return;xe!==null?(rt=xe,Gf(xe)):rt=null}break t}}Et=0,gr=null,Ns(n,i,y,5);break;case 6:Et=0,gr=null,Ns(n,i,y,6);break;case 8:Ey(),Vt=6;break e;default:throw Error(o(462))}}b8();break}catch(Re){Kw(n,Re)}while(!0);return qi=xa=null,O.H=u,O.A=d,vt=a,rt!==null?0:(Mt=null,ht=0,df(),Vt)}function b8(){for(;rt!==null&&!le();)Xw(rt)}function Xw(n){var i=ww(n.alternate,n,Vi);n.memoizedProps=n.pendingProps,i===null?Gf(n):rt=i}function Zw(n){var i=n,a=i.alternate;switch(i.tag){case 15:case 0:i=mw(a,i,i.pendingProps,i.type,void 0,ht);break;case 11:i=mw(a,i,i.pendingProps,i.type.render,i.ref,ht);break;case 5:Lp(i);default:Sw(a,i),i=rt=Jv(i,Vi),i=ww(a,i,Vi)}n.memoizedProps=n.pendingProps,i===null?Gf(n):rt=i}function Ns(n,i,a,u){qi=xa=null,Lp(i),Rs=null,rc=0;var d=i.return;try{if(u8(n,d,i,a,ht)){Vt=1,Pf(n,Pr(a,n.current)),rt=null;return}}catch(y){if(d!==null)throw rt=d,y;Vt=1,Pf(n,Pr(a,n.current)),rt=null;return}i.flags&32768?(bt||u===1?n=!0:Ms||(ht&536870912)!==0?n=!1:(To=n=!0,(u===2||u===9||u===3||u===6)&&(u=qr.current,u!==null&&u.tag===13&&(u.flags|=16384))),Jw(i,n)):Gf(i)}function Gf(n){var i=n;do{if((i.flags&32768)!==0){Jw(i,To);return}n=i.return;var a=l8(i.alternate,i,Vi);if(a!==null){rt=a;return}if(i=i.sibling,i!==null){rt=i;return}rt=i=n}while(i!==null);Vt===0&&(Vt=5)}function Jw(n,i){do{var a=f8(n.alternate,n);if(a!==null){a.flags&=32767,rt=a;return}if(a=n.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!i&&(n=n.sibling,n!==null)){rt=n;return}rt=n=a}while(n!==null);Vt=6,rt=null}function Ww(n,i,a,u,d,y,F,q,oe){n.cancelPendingCommit=null;do Qf();while(Rn!==0);if((vt&6)!==0)throw Error(o(327));if(i!==null){if(i===n.current)throw Error(o(177));if(y=i.lanes|i.childLanes,y|=pp,Qt(n,a,y,F,q,oe),n===Mt&&(rt=Mt=null,ht=0),Us=i,Do=n,Ps=a,by=y,xy=d,Hw=u,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,w8(me,function(){return i2(),null})):(n.callbackNode=null,n.callbackPriority=0),u=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||u){u=O.T,O.T=null,d=re.p,re.p=2,F=vt,vt|=4;try{d8(n,i,a)}finally{vt=F,re.p=d,O.T=u}}Rn=1,e2(),t2(),n2()}}function e2(){if(Rn===1){Rn=0;var n=Do,i=Us,a=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||a){a=O.T,O.T=null;var u=re.p;re.p=2;var d=vt;vt|=4;try{Pw(i,n);var y=Py,F=kv(n.containerInfo),q=y.focusedElem,oe=y.selectionRange;if(F!==q&&q&&q.ownerDocument&&$v(q.ownerDocument.documentElement,q)){if(oe!==null&&cp(q)){var xe=oe.start,Re=oe.end;if(Re===void 0&&(Re=xe),"selectionStart"in q)q.selectionStart=xe,q.selectionEnd=Math.min(Re,q.value.length);else{var Te=q.ownerDocument||document,ve=Te&&Te.defaultView||window;if(ve.getSelection){var Ie=ve.getSelection(),Xe=q.textContent.length,Ke=Math.min(oe.start,Xe),Ot=oe.end===void 0?Ke:Math.min(oe.end,Xe);!Ie.extend&&Ke>Ot&&(F=Ot,Ot=Ke,Ke=F);var ge=qv(q,Ke),fe=qv(q,Ot);if(ge&&fe&&(Ie.rangeCount!==1||Ie.anchorNode!==ge.node||Ie.anchorOffset!==ge.offset||Ie.focusNode!==fe.node||Ie.focusOffset!==fe.offset)){var be=Te.createRange();be.setStart(ge.node,ge.offset),Ie.removeAllRanges(),Ke>Ot?(Ie.addRange(be),Ie.extend(fe.node,fe.offset)):(be.setEnd(fe.node,fe.offset),Ie.addRange(be))}}}}for(Te=[],Ie=q;Ie=Ie.parentNode;)Ie.nodeType===1&&Te.push({element:Ie,left:Ie.scrollLeft,top:Ie.scrollTop});for(typeof q.focus=="function"&&q.focus(),q=0;q<Te.length;q++){var Be=Te[q];Be.element.scrollLeft=Be.left,Be.element.scrollTop=Be.top}}id=!!Uy,Py=Uy=null}finally{vt=d,re.p=u,O.T=a}}n.current=i,Rn=2}}function t2(){if(Rn===2){Rn=0;var n=Do,i=Us,a=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||a){a=O.T,O.T=null;var u=re.p;re.p=2;var d=vt;vt|=4;try{_w(n,i.alternate,i)}finally{vt=d,re.p=u,O.T=a}}Rn=3}}function n2(){if(Rn===4||Rn===3){Rn=0,b();var n=Do,i=Us,a=Ps,u=Hw;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?Rn=5:(Rn=0,Us=Do=null,r2(n,n.pendingLanes));var d=n.pendingLanes;if(d===0&&(Mo=null),mo(a),i=i.stateNode,Fe&&typeof Fe.onCommitFiberRoot=="function")try{Fe.onCommitFiberRoot(Ee,i,void 0,(i.current.flags&128)===128)}catch{}if(u!==null){i=O.T,d=re.p,re.p=2,O.T=null;try{for(var y=n.onRecoverableError,F=0;F<u.length;F++){var q=u[F];y(q.value,{componentStack:q.stack})}}finally{O.T=i,re.p=d}}(Ps&3)!==0&&Qf(),Ei(n),d=n.pendingLanes,(a&4194090)!==0&&(d&42)!==0?n===vy?dc++:(dc=0,vy=n):dc=0,hc(0)}}function r2(n,i){(n.pooledCacheLanes&=i)===0&&(i=n.pooledCache,i!=null&&(n.pooledCache=null,Qu(i)))}function Qf(n){return e2(),t2(),n2(),i2()}function i2(){if(Rn!==5)return!1;var n=Do,i=by;by=0;var a=mo(Ps),u=O.T,d=re.p;try{re.p=32>a?32:a,O.T=null,a=xy,xy=null;var y=Do,F=Ps;if(Rn=0,Us=Do=null,Ps=0,(vt&6)!==0)throw Error(o(331));var q=vt;if(vt|=4,$w(y.current),Nw(y,y.current,F,a),vt=q,hc(0,!1),Fe&&typeof Fe.onPostCommitFiberRoot=="function")try{Fe.onPostCommitFiberRoot(Ee,y)}catch{}return!0}finally{re.p=d,O.T=u,r2(n,i)}}function o2(n,i,a){i=Pr(a,i),i=Wp(n.stateNode,i,2),n=Io(n,i,2),n!==null&&(_t(n,2),Ei(n))}function Rt(n,i,a){if(n.tag===3)o2(n,n,a);else for(;i!==null;){if(i.tag===3){o2(i,n,a);break}else if(i.tag===1){var u=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Mo===null||!Mo.has(u))){n=Pr(a,n),a=cw(2),u=Io(i,a,2),u!==null&&(lw(a,u,i,n),_t(u,2),Ei(u));break}}i=i.return}}function Sy(n,i,a){var u=n.pingCache;if(u===null){u=n.pingCache=new y8;var d=new Set;u.set(i,d)}else d=u.get(i),d===void 0&&(d=new Set,u.set(i,d));d.has(a)||(yy=!0,d.add(a),n=x8.bind(null,n,i,a),i.then(n,n))}function x8(n,i,a){var u=n.pingCache;u!==null&&u.delete(i),n.pingedLanes|=n.suspendedLanes&a,n.warmLanes&=~a,Mt===n&&(ht&a)===a&&(Vt===4||Vt===3&&(ht&62914560)===ht&&300>g()-Ay?(vt&2)===0&&js(n,0):gy|=a,Ds===ht&&(Ds=0)),Ei(n)}function a2(n,i){i===0&&(i=qt()),n=bs(n,i),n!==null&&(_t(n,i),Ei(n))}function v8(n){var i=n.memoizedState,a=0;i!==null&&(a=i.retryLane),a2(n,a)}function E8(n,i){var a=0;switch(n.tag){case 13:var u=n.stateNode,d=n.memoizedState;d!==null&&(a=d.retryLane);break;case 19:u=n.stateNode;break;case 22:u=n.stateNode._retryCache;break;default:throw Error(o(314))}u!==null&&u.delete(i),a2(n,a)}function w8(n,i){return Z(n,i)}var Kf=null,Ls=null,Cy=!1,Vf=!1,Oy=!1,Oa=0;function Ei(n){n!==Ls&&n.next===null&&(Ls===null?Kf=Ls=n:Ls=Ls.next=n),Vf=!0,Cy||(Cy=!0,S8())}function hc(n,i){if(!Oy&&Vf){Oy=!0;do for(var a=!1,u=Kf;u!==null;){if(n!==0){var d=u.pendingLanes;if(d===0)var y=0;else{var F=u.suspendedLanes,q=u.pingedLanes;y=(1<<31-qe(42|n)+1)-1,y&=d&~(F&~q),y=y&201326741?y&201326741|1:y?y|2:0}y!==0&&(a=!0,l2(u,y))}else y=ht,y=pt(u,u===Mt?y:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(y&3)===0||gt(u,y)||(a=!0,l2(u,y));u=u.next}while(a);Oy=!1}}function I8(){s2()}function s2(){Vf=Cy=!1;var n=0;Oa!==0&&(M8()&&(n=Oa),Oa=0);for(var i=g(),a=null,u=Kf;u!==null;){var d=u.next,y=u2(u,i);y===0?(u.next=null,a===null?Kf=d:a.next=d,d===null&&(Ls=a)):(a=u,(n!==0||(y&3)!==0)&&(Vf=!0)),u=d}hc(n)}function u2(n,i){for(var a=n.suspendedLanes,u=n.pingedLanes,d=n.expirationTimes,y=n.pendingLanes&-62914561;0<y;){var F=31-qe(y),q=1<<F,oe=d[F];oe===-1?((q&a)===0||(q&u)!==0)&&(d[F]=mt(q,i)):oe<=i&&(n.expiredLanes|=q),y&=~q}if(i=Mt,a=ht,a=pt(n,n===i?a:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),u=n.callbackNode,a===0||n===i&&(Et===2||Et===9)||n.cancelPendingCommit!==null)return u!==null&&u!==null&&ce(u),n.callbackNode=null,n.callbackPriority=0;if((a&3)===0||gt(n,a)){if(i=a&-a,i===n.callbackPriority)return i;switch(u!==null&&ce(u),mo(a)){case 2:case 8:a=ee;break;case 32:a=me;break;case 268435456:a=je;break;default:a=me}return u=c2.bind(null,n),a=Z(a,u),n.callbackPriority=i,n.callbackNode=a,i}return u!==null&&u!==null&&ce(u),n.callbackPriority=2,n.callbackNode=null,2}function c2(n,i){if(Rn!==0&&Rn!==5)return n.callbackNode=null,n.callbackPriority=0,null;var a=n.callbackNode;if(Qf()&&n.callbackNode!==a)return null;var u=ht;return u=pt(n,n===Mt?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),u===0?null:(Gw(n,u,i),u2(n,g()),n.callbackNode!=null&&n.callbackNode===a?c2.bind(null,n):null)}function l2(n,i){if(Qf())return null;Gw(n,i,!0)}function S8(){U8(function(){(vt&6)!==0?Z(I,I8):s2()})}function Fy(){return Oa===0&&(Oa=xt()),Oa}function f2(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:of(""+n)}function d2(n,i){var a=i.ownerDocument.createElement("input");return a.name=i.name,a.value=i.value,n.id&&a.setAttribute("form",n.id),i.parentNode.insertBefore(a,i),n=new FormData(n),a.parentNode.removeChild(a),n}function C8(n,i,a,u,d){if(i==="submit"&&a&&a.stateNode===d){var y=f2((d[dn]||null).action),F=u.submitter;F&&(i=(i=F[dn]||null)?f2(i.formAction):F.getAttribute("formAction"),i!==null&&(y=i,F=null));var q=new cf("action","action",null,u,d);n.push({event:q,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(Oa!==0){var oe=F?d2(d,F):new FormData(d);Vp(a,{pending:!0,data:oe,method:d.method,action:y},null,oe)}}else typeof y=="function"&&(q.preventDefault(),oe=F?d2(d,F):new FormData(d),Vp(a,{pending:!0,data:oe,method:d.method,action:y},y,oe))},currentTarget:d}]})}}for(var Ry=0;Ry<hp.length;Ry++){var By=hp[Ry],O8=By.toLowerCase(),F8=By[0].toUpperCase()+By.slice(1);ei(O8,"on"+F8)}ei(Gv,"onAnimationEnd"),ei(Qv,"onAnimationIteration"),ei(Kv,"onAnimationStart"),ei("dblclick","onDoubleClick"),ei("focusin","onFocus"),ei("focusout","onBlur"),ei(G6,"onTransitionRun"),ei(Q6,"onTransitionStart"),ei(K6,"onTransitionCancel"),ei(Vv,"onTransitionEnd"),Wr("onMouseEnter",["mouseout","mouseover"]),Wr("onMouseLeave",["mouseout","mouseover"]),Wr("onPointerEnter",["pointerout","pointerover"]),Wr("onPointerLeave",["pointerout","pointerover"]),Mr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Mr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Mr("onBeforeInput",["compositionend","keypress","textInput","paste"]),Mr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Mr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Mr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var pc="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(" "),R8=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(pc));function h2(n,i){i=(i&4)!==0;for(var a=0;a<n.length;a++){var u=n[a],d=u.event;u=u.listeners;e:{var y=void 0;if(i)for(var F=u.length-1;0<=F;F--){var q=u[F],oe=q.instance,xe=q.currentTarget;if(q=q.listener,oe!==y&&d.isPropagationStopped())break e;y=q,d.currentTarget=xe;try{y(d)}catch(Re){Uf(Re)}d.currentTarget=null,y=oe}else for(F=0;F<u.length;F++){if(q=u[F],oe=q.instance,xe=q.currentTarget,q=q.listener,oe!==y&&d.isPropagationStopped())break e;y=q,d.currentTarget=xe;try{y(d)}catch(Re){Uf(Re)}d.currentTarget=null,y=oe}}}}function it(n,i){var a=i[Ao];a===void 0&&(a=i[Ao]=new Set);var u=n+"__bubble";a.has(u)||(p2(i,n,2,!1),a.add(u))}function Ty(n,i,a){var u=0;i&&(u|=4),p2(a,n,u,i)}var Yf="_reactListening"+Math.random().toString(36).slice(2);function _y(n){if(!n[Yf]){n[Yf]=!0,ua.forEach(function(a){a!=="selectionchange"&&(R8.has(a)||Ty(a,!1,n),Ty(a,!0,n))});var i=n.nodeType===9?n:n.ownerDocument;i===null||i[Yf]||(i[Yf]=!0,Ty("selectionchange",!1,i))}}function p2(n,i,a,u){switch(N2(i)){case 2:var d=n4;break;case 8:d=r4;break;default:d=Qy}a=d.bind(null,i,a,n),d=void 0,!ep||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(d=!0),u?d!==void 0?n.addEventListener(i,a,{capture:!0,passive:d}):n.addEventListener(i,a,!0):d!==void 0?n.addEventListener(i,a,{passive:d}):n.addEventListener(i,a,!1)}function My(n,i,a,u,d){var y=u;if((i&1)===0&&(i&2)===0&&u!==null)e:for(;;){if(u===null)return;var F=u.tag;if(F===3||F===4){var q=u.stateNode.containerInfo;if(q===d)break;if(F===4)for(F=u.return;F!==null;){var oe=F.tag;if((oe===3||oe===4)&&F.stateNode.containerInfo===d)return;F=F.return}for(;q!==null;){if(F=Xr(q),F===null)return;if(oe=F.tag,oe===5||oe===6||oe===26||oe===27){u=y=F;continue e}q=q.parentNode}}u=u.return}vv(function(){var xe=y,Re=Jh(a),Te=[];e:{var ve=Yv.get(n);if(ve!==void 0){var Ie=cf,Xe=n;switch(n){case"keypress":if(sf(a)===0)break e;case"keydown":case"keyup":Ie=w6;break;case"focusin":Xe="focus",Ie=ip;break;case"focusout":Xe="blur",Ie=ip;break;case"beforeblur":case"afterblur":Ie=ip;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ie=Iv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ie=f6;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ie=C6;break;case Gv:case Qv:case Kv:Ie=p6;break;case Vv:Ie=F6;break;case"scroll":case"scrollend":Ie=c6;break;case"wheel":Ie=B6;break;case"copy":case"cut":case"paste":Ie=g6;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ie=Cv;break;case"toggle":case"beforetoggle":Ie=_6}var Ke=(i&4)!==0,Ot=!Ke&&(n==="scroll"||n==="scrollend"),ge=Ke?ve!==null?ve+"Capture":null:ve;Ke=[];for(var fe=xe,be;fe!==null;){var Be=fe;if(be=Be.stateNode,Be=Be.tag,Be!==5&&Be!==26&&Be!==27||be===null||ge===null||(Be=Mu(fe,ge),Be!=null&&Ke.push(yc(fe,Be,be))),Ot)break;fe=fe.return}0<Ke.length&&(ve=new Ie(ve,Xe,null,a,Re),Te.push({event:ve,listeners:Ke}))}}if((i&7)===0){e:{if(ve=n==="mouseover"||n==="pointerover",Ie=n==="mouseout"||n==="pointerout",ve&&a!==Zh&&(Xe=a.relatedTarget||a.fromElement)&&(Xr(Xe)||Xe[Yr]))break e;if((Ie||ve)&&(ve=Re.window===Re?Re:(ve=Re.ownerDocument)?ve.defaultView||ve.parentWindow:window,Ie?(Xe=a.relatedTarget||a.toElement,Ie=xe,Xe=Xe?Xr(Xe):null,Xe!==null&&(Ot=c(Xe),Ke=Xe.tag,Xe!==Ot||Ke!==5&&Ke!==27&&Ke!==6)&&(Xe=null)):(Ie=null,Xe=xe),Ie!==Xe)){if(Ke=Iv,Be="onMouseLeave",ge="onMouseEnter",fe="mouse",(n==="pointerout"||n==="pointerover")&&(Ke=Cv,Be="onPointerLeave",ge="onPointerEnter",fe="pointer"),Ot=Ie==null?ve:mi(Ie),be=Xe==null?ve:mi(Xe),ve=new Ke(Be,fe+"leave",Ie,a,Re),ve.target=Ot,ve.relatedTarget=be,Be=null,Xr(Re)===xe&&(Ke=new Ke(ge,fe+"enter",Xe,a,Re),Ke.target=be,Ke.relatedTarget=Ot,Be=Ke),Ot=Be,Ie&&Xe)t:{for(Ke=Ie,ge=Xe,fe=0,be=Ke;be;be=qs(be))fe++;for(be=0,Be=ge;Be;Be=qs(Be))be++;for(;0<fe-be;)Ke=qs(Ke),fe--;for(;0<be-fe;)ge=qs(ge),be--;for(;fe--;){if(Ke===ge||ge!==null&&Ke===ge.alternate)break t;Ke=qs(Ke),ge=qs(ge)}Ke=null}else Ke=null;Ie!==null&&y2(Te,ve,Ie,Ke,!1),Xe!==null&&Ot!==null&&y2(Te,Ot,Xe,Ke,!0)}}e:{if(ve=xe?mi(xe):window,Ie=ve.nodeName&&ve.nodeName.toLowerCase(),Ie==="select"||Ie==="input"&&ve.type==="file")var He=Dv;else if(_v(ve))if(Uv)He=k6;else{He=q6;var nt=L6}else Ie=ve.nodeName,!Ie||Ie.toLowerCase()!=="input"||ve.type!=="checkbox"&&ve.type!=="radio"?xe&&Xh(xe.elementType)&&(He=Dv):He=$6;if(He&&(He=He(n,xe))){Mv(Te,He,a,Re);break e}nt&&nt(n,ve,xe),n==="focusout"&&xe&&ve.type==="number"&&xe.memoizedProps.value!=null&&Yh(ve,"number",ve.value)}switch(nt=xe?mi(xe):window,n){case"focusin":(_v(nt)||nt.contentEditable==="true")&&(gs=nt,lp=xe,$u=null);break;case"focusout":$u=lp=gs=null;break;case"mousedown":fp=!0;break;case"contextmenu":case"mouseup":case"dragend":fp=!1,Hv(Te,a,Re);break;case"selectionchange":if(z6)break;case"keydown":case"keyup":Hv(Te,a,Re)}var ze;if(ap)e:{switch(n){case"compositionstart":var Ve="onCompositionStart";break e;case"compositionend":Ve="onCompositionEnd";break e;case"compositionupdate":Ve="onCompositionUpdate";break e}Ve=void 0}else ys?Bv(n,a)&&(Ve="onCompositionEnd"):n==="keydown"&&a.keyCode===229&&(Ve="onCompositionStart");Ve&&(Ov&&a.locale!=="ko"&&(ys||Ve!=="onCompositionStart"?Ve==="onCompositionEnd"&&ys&&(ze=Ev()):(xo=Re,tp="value"in xo?xo.value:xo.textContent,ys=!0)),nt=Xf(xe,Ve),0<nt.length&&(Ve=new Sv(Ve,n,null,a,Re),Te.push({event:Ve,listeners:nt}),ze?Ve.data=ze:(ze=Tv(a),ze!==null&&(Ve.data=ze)))),(ze=D6?U6(n,a):P6(n,a))&&(Ve=Xf(xe,"onBeforeInput"),0<Ve.length&&(nt=new Sv("onBeforeInput","beforeinput",null,a,Re),Te.push({event:nt,listeners:Ve}),nt.data=ze)),C8(Te,n,xe,a,Re)}h2(Te,i)})}function yc(n,i,a){return{instance:n,listener:i,currentTarget:a}}function Xf(n,i){for(var a=i+"Capture",u=[];n!==null;){var d=n,y=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||y===null||(d=Mu(n,a),d!=null&&u.unshift(yc(n,d,y)),d=Mu(n,i),d!=null&&u.push(yc(n,d,y))),n.tag===3)return u;n=n.return}return[]}function qs(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function y2(n,i,a,u,d){for(var y=i._reactName,F=[];a!==null&&a!==u;){var q=a,oe=q.alternate,xe=q.stateNode;if(q=q.tag,oe!==null&&oe===u)break;q!==5&&q!==26&&q!==27||xe===null||(oe=xe,d?(xe=Mu(a,y),xe!=null&&F.unshift(yc(a,xe,oe))):d||(xe=Mu(a,y),xe!=null&&F.push(yc(a,xe,oe)))),a=a.return}F.length!==0&&n.push({event:i,listeners:F})}var B8=/\r\n?/g,T8=/\u0000|\uFFFD/g;function g2(n){return(typeof n=="string"?n:""+n).replace(B8,`
38
+ `).replace(T8,"")}function m2(n,i){return i=g2(i),g2(n)===i}function Zf(){}function Ct(n,i,a,u,d,y){switch(a){case"children":typeof u=="string"?i==="body"||i==="textarea"&&u===""||ds(n,u):(typeof u=="number"||typeof u=="bigint")&&i!=="body"&&ds(n,""+u);break;case"className":tf(n,"class",u);break;case"tabIndex":tf(n,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":tf(n,a,u);break;case"style":bv(n,u,y);break;case"data":if(i!=="object"){tf(n,"data",u);break}case"src":case"href":if(u===""&&(i!=="a"||a!=="href")){n.removeAttribute(a);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){n.removeAttribute(a);break}u=of(""+u),n.setAttribute(a,u);break;case"action":case"formAction":if(typeof u=="function"){n.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof y=="function"&&(a==="formAction"?(i!=="input"&&Ct(n,i,"name",d.name,d,null),Ct(n,i,"formEncType",d.formEncType,d,null),Ct(n,i,"formMethod",d.formMethod,d,null),Ct(n,i,"formTarget",d.formTarget,d,null)):(Ct(n,i,"encType",d.encType,d,null),Ct(n,i,"method",d.method,d,null),Ct(n,i,"target",d.target,d,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){n.removeAttribute(a);break}u=of(""+u),n.setAttribute(a,u);break;case"onClick":u!=null&&(n.onclick=Zf);break;case"onScroll":u!=null&&it("scroll",n);break;case"onScrollEnd":u!=null&&it("scrollend",n);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(o(61));if(a=u.__html,a!=null){if(d.children!=null)throw Error(o(60));n.innerHTML=a}}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}a=of(""+u),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);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(a,""+u):n.removeAttribute(a);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(a,""):n.removeAttribute(a);break;case"capture":case"download":u===!0?n.setAttribute(a,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(a,u):n.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?n.setAttribute(a,u):n.removeAttribute(a);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?n.removeAttribute(a):n.setAttribute(a,u);break;case"popover":it("beforetoggle",n),it("toggle",n),Di(n,"popover",u);break;case"xlinkActuate":Ui(n,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":Ui(n,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":Ui(n,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":Ui(n,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":Ui(n,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":Ui(n,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":Ui(n,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":Ui(n,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":Ui(n,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":Di(n,"is",u);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=s6.get(a)||a,Di(n,a,u))}}function Dy(n,i,a,u,d,y){switch(a){case"style":bv(n,u,y);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(o(61));if(a=u.__html,a!=null){if(d.children!=null)throw Error(o(60));n.innerHTML=a}}break;case"children":typeof u=="string"?ds(n,u):(typeof u=="number"||typeof u=="bigint")&&ds(n,""+u);break;case"onScroll":u!=null&&it("scroll",n);break;case"onScrollEnd":u!=null&&it("scrollend",n);break;case"onClick":u!=null&&(n.onclick=Zf);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ca.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(d=a.endsWith("Capture"),i=a.slice(2,d?a.length-7:void 0),y=n[dn]||null,y=y!=null?y[a]:null,typeof y=="function"&&n.removeEventListener(i,y,d),typeof u=="function")){typeof y!="function"&&y!==null&&(a in n?n[a]=null:n.hasAttribute(a)&&n.removeAttribute(a)),n.addEventListener(i,u,d);break e}a in n?n[a]=u:u===!0?n.setAttribute(a,""):Di(n,a,u)}}}function Bn(n,i,a){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":it("error",n),it("load",n);var u=!1,d=!1,y;for(y in a)if(a.hasOwnProperty(y)){var F=a[y];if(F!=null)switch(y){case"src":u=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,i));default:Ct(n,i,y,F,a,null)}}d&&Ct(n,i,"srcSet",a.srcSet,a,null),u&&Ct(n,i,"src",a.src,a,null);return;case"input":it("invalid",n);var q=y=F=d=null,oe=null,xe=null;for(u in a)if(a.hasOwnProperty(u)){var Re=a[u];if(Re!=null)switch(u){case"name":d=Re;break;case"type":F=Re;break;case"checked":oe=Re;break;case"defaultChecked":xe=Re;break;case"value":y=Re;break;case"defaultValue":q=Re;break;case"children":case"dangerouslySetInnerHTML":if(Re!=null)throw Error(o(137,i));break;default:Ct(n,i,u,Re,a,null)}}yv(n,y,q,oe,xe,F,d,!1),nf(n);return;case"select":it("invalid",n),u=F=y=null;for(d in a)if(a.hasOwnProperty(d)&&(q=a[d],q!=null))switch(d){case"value":y=q;break;case"defaultValue":F=q;break;case"multiple":u=q;default:Ct(n,i,d,q,a,null)}i=y,a=F,n.multiple=!!u,i!=null?fs(n,!!u,i,!1):a!=null&&fs(n,!!u,a,!0);return;case"textarea":it("invalid",n),y=d=u=null;for(F in a)if(a.hasOwnProperty(F)&&(q=a[F],q!=null))switch(F){case"value":u=q;break;case"defaultValue":d=q;break;case"children":y=q;break;case"dangerouslySetInnerHTML":if(q!=null)throw Error(o(91));break;default:Ct(n,i,F,q,a,null)}mv(n,u,d,y),nf(n);return;case"option":for(oe in a)if(a.hasOwnProperty(oe)&&(u=a[oe],u!=null))switch(oe){case"selected":n.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:Ct(n,i,oe,u,a,null)}return;case"dialog":it("beforetoggle",n),it("toggle",n),it("cancel",n),it("close",n);break;case"iframe":case"object":it("load",n);break;case"video":case"audio":for(u=0;u<pc.length;u++)it(pc[u],n);break;case"image":it("error",n),it("load",n);break;case"details":it("toggle",n);break;case"embed":case"source":case"link":it("error",n),it("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(xe in a)if(a.hasOwnProperty(xe)&&(u=a[xe],u!=null))switch(xe){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,i));default:Ct(n,i,xe,u,a,null)}return;default:if(Xh(i)){for(Re in a)a.hasOwnProperty(Re)&&(u=a[Re],u!==void 0&&Dy(n,i,Re,u,a,void 0));return}}for(q in a)a.hasOwnProperty(q)&&(u=a[q],u!=null&&Ct(n,i,q,u,a,null))}function _8(n,i,a,u){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,y=null,F=null,q=null,oe=null,xe=null,Re=null;for(Ie in a){var Te=a[Ie];if(a.hasOwnProperty(Ie)&&Te!=null)switch(Ie){case"checked":break;case"value":break;case"defaultValue":oe=Te;default:u.hasOwnProperty(Ie)||Ct(n,i,Ie,null,u,Te)}}for(var ve in u){var Ie=u[ve];if(Te=a[ve],u.hasOwnProperty(ve)&&(Ie!=null||Te!=null))switch(ve){case"type":y=Ie;break;case"name":d=Ie;break;case"checked":xe=Ie;break;case"defaultChecked":Re=Ie;break;case"value":F=Ie;break;case"defaultValue":q=Ie;break;case"children":case"dangerouslySetInnerHTML":if(Ie!=null)throw Error(o(137,i));break;default:Ie!==Te&&Ct(n,i,ve,Ie,u,Te)}}Vh(n,F,q,oe,xe,Re,y,d);return;case"select":Ie=F=q=ve=null;for(y in a)if(oe=a[y],a.hasOwnProperty(y)&&oe!=null)switch(y){case"value":break;case"multiple":Ie=oe;default:u.hasOwnProperty(y)||Ct(n,i,y,null,u,oe)}for(d in u)if(y=u[d],oe=a[d],u.hasOwnProperty(d)&&(y!=null||oe!=null))switch(d){case"value":ve=y;break;case"defaultValue":q=y;break;case"multiple":F=y;default:y!==oe&&Ct(n,i,d,y,u,oe)}i=q,a=F,u=Ie,ve!=null?fs(n,!!a,ve,!1):!!u!=!!a&&(i!=null?fs(n,!!a,i,!0):fs(n,!!a,a?[]:"",!1));return;case"textarea":Ie=ve=null;for(q in a)if(d=a[q],a.hasOwnProperty(q)&&d!=null&&!u.hasOwnProperty(q))switch(q){case"value":break;case"children":break;default:Ct(n,i,q,null,u,d)}for(F in u)if(d=u[F],y=a[F],u.hasOwnProperty(F)&&(d!=null||y!=null))switch(F){case"value":ve=d;break;case"defaultValue":Ie=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(o(91));break;default:d!==y&&Ct(n,i,F,d,u,y)}gv(n,ve,Ie);return;case"option":for(var Xe in a)if(ve=a[Xe],a.hasOwnProperty(Xe)&&ve!=null&&!u.hasOwnProperty(Xe))switch(Xe){case"selected":n.selected=!1;break;default:Ct(n,i,Xe,null,u,ve)}for(oe in u)if(ve=u[oe],Ie=a[oe],u.hasOwnProperty(oe)&&ve!==Ie&&(ve!=null||Ie!=null))switch(oe){case"selected":n.selected=ve&&typeof ve!="function"&&typeof ve!="symbol";break;default:Ct(n,i,oe,ve,u,Ie)}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 Ke in a)ve=a[Ke],a.hasOwnProperty(Ke)&&ve!=null&&!u.hasOwnProperty(Ke)&&Ct(n,i,Ke,null,u,ve);for(xe in u)if(ve=u[xe],Ie=a[xe],u.hasOwnProperty(xe)&&ve!==Ie&&(ve!=null||Ie!=null))switch(xe){case"children":case"dangerouslySetInnerHTML":if(ve!=null)throw Error(o(137,i));break;default:Ct(n,i,xe,ve,u,Ie)}return;default:if(Xh(i)){for(var Ot in a)ve=a[Ot],a.hasOwnProperty(Ot)&&ve!==void 0&&!u.hasOwnProperty(Ot)&&Dy(n,i,Ot,void 0,u,ve);for(Re in u)ve=u[Re],Ie=a[Re],!u.hasOwnProperty(Re)||ve===Ie||ve===void 0&&Ie===void 0||Dy(n,i,Re,ve,u,Ie);return}}for(var ge in a)ve=a[ge],a.hasOwnProperty(ge)&&ve!=null&&!u.hasOwnProperty(ge)&&Ct(n,i,ge,null,u,ve);for(Te in u)ve=u[Te],Ie=a[Te],!u.hasOwnProperty(Te)||ve===Ie||ve==null&&Ie==null||Ct(n,i,Te,ve,u,Ie)}var Uy=null,Py=null;function Jf(n){return n.nodeType===9?n:n.ownerDocument}function A2(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 b2(n,i){if(n===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&i==="foreignObject"?0:n}function jy(n,i){return n==="textarea"||n==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var Ny=null;function M8(){var n=window.event;return n&&n.type==="popstate"?n===Ny?!1:(Ny=n,!0):(Ny=null,!1)}var x2=typeof setTimeout=="function"?setTimeout:void 0,D8=typeof clearTimeout=="function"?clearTimeout:void 0,v2=typeof Promise=="function"?Promise:void 0,U8=typeof queueMicrotask=="function"?queueMicrotask:typeof v2<"u"?function(n){return v2.resolve(null).then(n).catch(P8)}:x2;function P8(n){setTimeout(function(){throw n})}function Po(n){return n==="head"}function E2(n,i){var a=i,u=0,d=0;do{var y=a.nextSibling;if(n.removeChild(a),y&&y.nodeType===8)if(a=y.data,a==="/$"){if(0<u&&8>u){a=u;var F=n.ownerDocument;if(a&1&&gc(F.documentElement),a&2&&gc(F.body),a&4)for(a=F.head,gc(a),F=a.firstChild;F;){var q=F.nextSibling,oe=F.nodeName;F[gi]||oe==="SCRIPT"||oe==="STYLE"||oe==="LINK"&&F.rel.toLowerCase()==="stylesheet"||a.removeChild(F),F=q}}if(d===0){n.removeChild(y),Ic(i);return}d--}else a==="$"||a==="$?"||a==="$!"?d++:u=a.charCodeAt(0)-48;else u=0;a=y}while(a);Ic(i)}function Ly(n){var i=n.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var a=i;switch(i=i.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Ly(a),bo(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}n.removeChild(a)}}function j8(n,i,a,u){for(;n.nodeType===1;){var d=a;if(n.nodeName.toLowerCase()!==i.toLowerCase()){if(!u&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(u){if(!n[gi])switch(i){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(y=n.getAttribute("rel"),y==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(y!==d.rel||n.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||n.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||n.getAttribute("title")!==(d.title==null?null:d.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(y=n.getAttribute("src"),(y!==(d.src==null?null:d.src)||n.getAttribute("type")!==(d.type==null?null:d.type)||n.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&y&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(i==="input"&&n.type==="hidden"){var y=d.name==null?null:""+d.name;if(d.type==="hidden"&&n.getAttribute("name")===y)return n}else return n;if(n=ni(n.nextSibling),n===null)break}return null}function N8(n,i,a){if(i==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!a||(n=ni(n.nextSibling),n===null))return null;return n}function qy(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState==="complete"}function L8(n,i){var a=n.ownerDocument;if(n.data!=="$?"||a.readyState==="complete")i();else{var u=function(){i(),a.removeEventListener("DOMContentLoaded",u)};a.addEventListener("DOMContentLoaded",u),n._reactRetry=u}}function ni(n){for(;n!=null;n=n.nextSibling){var i=n.nodeType;if(i===1||i===3)break;if(i===8){if(i=n.data,i==="$"||i==="$!"||i==="$?"||i==="F!"||i==="F")break;if(i==="/$")return null}}return n}var $y=null;function w2(n){n=n.previousSibling;for(var i=0;n;){if(n.nodeType===8){var a=n.data;if(a==="$"||a==="$!"||a==="$?"){if(i===0)return n;i--}else a==="/$"&&i++}n=n.previousSibling}return null}function I2(n,i,a){switch(i=Jf(a),n){case"html":if(n=i.documentElement,!n)throw Error(o(452));return n;case"head":if(n=i.head,!n)throw Error(o(453));return n;case"body":if(n=i.body,!n)throw Error(o(454));return n;default:throw Error(o(451))}}function gc(n){for(var i=n.attributes;i.length;)n.removeAttributeNode(i[0]);bo(n)}var kr=new Map,S2=new Set;function Wf(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var Yi=re.d;re.d={f:q8,r:$8,D:k8,C:H8,L:z8,m:G8,X:K8,S:Q8,M:V8};function q8(){var n=Yi.f(),i=zf();return n||i}function $8(n){var i=Zr(n);i!==null&&i.tag===5&&i.type==="form"?GE(i):Yi.r(n)}var $s=typeof document>"u"?null:document;function C2(n,i,a){var u=$s;if(u&&typeof i=="string"&&i){var d=Ur(i);d='link[rel="'+n+'"][href="'+d+'"]',typeof a=="string"&&(d+='[crossorigin="'+a+'"]'),S2.has(d)||(S2.add(d),n={rel:n,crossOrigin:a,href:i},u.querySelector(d)===null&&(i=u.createElement("link"),Bn(i,"link",n),Ht(i),u.head.appendChild(i)))}}function k8(n){Yi.D(n),C2("dns-prefetch",n,null)}function H8(n,i){Yi.C(n,i),C2("preconnect",n,i)}function z8(n,i,a){Yi.L(n,i,a);var u=$s;if(u&&n&&i){var d='link[rel="preload"][as="'+Ur(i)+'"]';i==="image"&&a&&a.imageSrcSet?(d+='[imagesrcset="'+Ur(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(d+='[imagesizes="'+Ur(a.imageSizes)+'"]')):d+='[href="'+Ur(n)+'"]';var y=d;switch(i){case"style":y=ks(n);break;case"script":y=Hs(n)}kr.has(y)||(n=A({rel:"preload",href:i==="image"&&a&&a.imageSrcSet?void 0:n,as:i},a),kr.set(y,n),u.querySelector(d)!==null||i==="style"&&u.querySelector(mc(y))||i==="script"&&u.querySelector(Ac(y))||(i=u.createElement("link"),Bn(i,"link",n),Ht(i),u.head.appendChild(i)))}}function G8(n,i){Yi.m(n,i);var a=$s;if(a&&n){var u=i&&typeof i.as=="string"?i.as:"script",d='link[rel="modulepreload"][as="'+Ur(u)+'"][href="'+Ur(n)+'"]',y=d;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=Hs(n)}if(!kr.has(y)&&(n=A({rel:"modulepreload",href:n},i),kr.set(y,n),a.querySelector(d)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Ac(y)))return}u=a.createElement("link"),Bn(u,"link",n),Ht(u),a.head.appendChild(u)}}}function Q8(n,i,a){Yi.S(n,i,a);var u=$s;if(u&&n){var d=Jr(u).hoistableStyles,y=ks(n);i=i||"default";var F=d.get(y);if(!F){var q={loading:0,preload:null};if(F=u.querySelector(mc(y)))q.loading=5;else{n=A({rel:"stylesheet",href:n,"data-precedence":i},a),(a=kr.get(y))&&ky(n,a);var oe=F=u.createElement("link");Ht(oe),Bn(oe,"link",n),oe._p=new Promise(function(xe,Re){oe.onload=xe,oe.onerror=Re}),oe.addEventListener("load",function(){q.loading|=1}),oe.addEventListener("error",function(){q.loading|=2}),q.loading|=4,ed(F,i,u)}F={type:"stylesheet",instance:F,count:1,state:q},d.set(y,F)}}}function K8(n,i){Yi.X(n,i);var a=$s;if(a&&n){var u=Jr(a).hoistableScripts,d=Hs(n),y=u.get(d);y||(y=a.querySelector(Ac(d)),y||(n=A({src:n,async:!0},i),(i=kr.get(d))&&Hy(n,i),y=a.createElement("script"),Ht(y),Bn(y,"link",n),a.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},u.set(d,y))}}function V8(n,i){Yi.M(n,i);var a=$s;if(a&&n){var u=Jr(a).hoistableScripts,d=Hs(n),y=u.get(d);y||(y=a.querySelector(Ac(d)),y||(n=A({src:n,async:!0,type:"module"},i),(i=kr.get(d))&&Hy(n,i),y=a.createElement("script"),Ht(y),Bn(y,"link",n),a.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},u.set(d,y))}}function O2(n,i,a,u){var d=(d=V.current)?Wf(d):null;if(!d)throw Error(o(446));switch(n){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(i=ks(a.href),a=Jr(d).hoistableStyles,u=a.get(i),u||(u={type:"style",instance:null,count:0,state:null},a.set(i,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){n=ks(a.href);var y=Jr(d).hoistableStyles,F=y.get(n);if(F||(d=d.ownerDocument||d,F={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},y.set(n,F),(y=d.querySelector(mc(n)))&&!y._p&&(F.instance=y,F.state.loading=5),kr.has(n)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},kr.set(n,a),y||Y8(d,n,a,F.state))),i&&u===null)throw Error(o(528,""));return F}if(i&&u!==null)throw Error(o(529,""));return null;case"script":return i=a.async,a=a.src,typeof a=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=Hs(a),a=Jr(d).hoistableScripts,u=a.get(i),u||(u={type:"script",instance:null,count:0,state:null},a.set(i,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,n))}}function ks(n){return'href="'+Ur(n)+'"'}function mc(n){return'link[rel="stylesheet"]['+n+"]"}function F2(n){return A({},n,{"data-precedence":n.precedence,precedence:null})}function Y8(n,i,a,u){n.querySelector('link[rel="preload"][as="style"]['+i+"]")?u.loading=1:(i=n.createElement("link"),u.preload=i,i.addEventListener("load",function(){return u.loading|=1}),i.addEventListener("error",function(){return u.loading|=2}),Bn(i,"link",a),Ht(i),n.head.appendChild(i))}function Hs(n){return'[src="'+Ur(n)+'"]'}function Ac(n){return"script[async]"+n}function R2(n,i,a){if(i.count++,i.instance===null)switch(i.type){case"style":var u=n.querySelector('style[data-href~="'+Ur(a.href)+'"]');if(u)return i.instance=u,Ht(u),u;var d=A({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return u=(n.ownerDocument||n).createElement("style"),Ht(u),Bn(u,"style",d),ed(u,a.precedence,n),i.instance=u;case"stylesheet":d=ks(a.href);var y=n.querySelector(mc(d));if(y)return i.state.loading|=4,i.instance=y,Ht(y),y;u=F2(a),(d=kr.get(d))&&ky(u,d),y=(n.ownerDocument||n).createElement("link"),Ht(y);var F=y;return F._p=new Promise(function(q,oe){F.onload=q,F.onerror=oe}),Bn(y,"link",u),i.state.loading|=4,ed(y,a.precedence,n),i.instance=y;case"script":return y=Hs(a.src),(d=n.querySelector(Ac(y)))?(i.instance=d,Ht(d),d):(u=a,(d=kr.get(y))&&(u=A({},a),Hy(u,d)),n=n.ownerDocument||n,d=n.createElement("script"),Ht(d),Bn(d,"link",u),n.head.appendChild(d),i.instance=d);case"void":return null;default:throw Error(o(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(u=i.instance,i.state.loading|=4,ed(u,a.precedence,n));return i.instance}function ed(n,i,a){for(var u=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=u.length?u[u.length-1]:null,y=d,F=0;F<u.length;F++){var q=u[F];if(q.dataset.precedence===i)y=q;else if(y!==d)break}y?y.parentNode.insertBefore(n,y.nextSibling):(i=a.nodeType===9?a.head:a,i.insertBefore(n,i.firstChild))}function ky(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.title==null&&(n.title=i.title)}function Hy(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.integrity==null&&(n.integrity=i.integrity)}var td=null;function B2(n,i,a){if(td===null){var u=new Map,d=td=new Map;d.set(a,u)}else d=td,u=d.get(a),u||(u=new Map,d.set(a,u));if(u.has(n))return u;for(u.set(n,null),a=a.getElementsByTagName(n),d=0;d<a.length;d++){var y=a[d];if(!(y[gi]||y[Jt]||n==="link"&&y.getAttribute("rel")==="stylesheet")&&y.namespaceURI!=="http://www.w3.org/2000/svg"){var F=y.getAttribute(i)||"";F=n+F;var q=u.get(F);q?q.push(y):u.set(F,[y])}}return u}function T2(n,i,a){n=n.ownerDocument||n,n.head.insertBefore(a,i==="title"?n.querySelector("head > title"):null)}function X8(n,i,a){if(a===1||i.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;switch(i.rel){case"stylesheet":return n=i.disabled,typeof i.precedence=="string"&&n==null;default:return!0}case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function _2(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}var bc=null;function Z8(){}function J8(n,i,a){if(bc===null)throw Error(o(475));var u=bc;if(i.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var d=ks(a.href),y=n.querySelector(mc(d));if(y){n=y._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(u.count++,u=nd.bind(u),n.then(u,u)),i.state.loading|=4,i.instance=y,Ht(y);return}y=n.ownerDocument||n,a=F2(a),(d=kr.get(d))&&ky(a,d),y=y.createElement("link"),Ht(y);var F=y;F._p=new Promise(function(q,oe){F.onload=q,F.onerror=oe}),Bn(y,"link",a),i.instance=y}u.stylesheets===null&&(u.stylesheets=new Map),u.stylesheets.set(i,n),(n=i.state.preload)&&(i.state.loading&3)===0&&(u.count++,i=nd.bind(u),n.addEventListener("load",i),n.addEventListener("error",i))}}function W8(){if(bc===null)throw Error(o(475));var n=bc;return n.stylesheets&&n.count===0&&zy(n,n.stylesheets),0<n.count?function(i){var a=setTimeout(function(){if(n.stylesheets&&zy(n,n.stylesheets),n.unsuspend){var u=n.unsuspend;n.unsuspend=null,u()}},6e4);return n.unsuspend=i,function(){n.unsuspend=null,clearTimeout(a)}}:null}function nd(){if(this.count--,this.count===0){if(this.stylesheets)zy(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var rd=null;function zy(n,i){n.stylesheets=null,n.unsuspend!==null&&(n.count++,rd=new Map,i.forEach(e4,n),rd=null,nd.call(n))}function e4(n,i){if(!(i.state.loading&4)){var a=rd.get(n);if(a)var u=a.get(null);else{a=new Map,rd.set(n,a);for(var d=n.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y<d.length;y++){var F=d[y];(F.nodeName==="LINK"||F.getAttribute("media")!=="not all")&&(a.set(F.dataset.precedence,F),u=F)}u&&a.set(null,u)}d=i.instance,F=d.getAttribute("data-precedence"),y=a.get(F)||u,y===u&&a.set(null,d),a.set(F,d),this.count++,u=nd.bind(this),d.addEventListener("load",u),d.addEventListener("error",u),y?y.parentNode.insertBefore(d,y.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(d,n.firstChild)),i.state.loading|=4}}var xc={$$typeof:D,Provider:null,Consumer:null,_currentValue:he,_currentValue2:he,_threadCount:0};function t4(n,i,a,u,d,y,F,q){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=Dt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Dt(0),this.hiddenUpdates=Dt(null),this.identifierPrefix=u,this.onUncaughtError=d,this.onCaughtError=y,this.onRecoverableError=F,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=q,this.incompleteTransitions=new Map}function M2(n,i,a,u,d,y,F,q,oe,xe,Re,Te){return n=new t4(n,i,a,F,q,oe,xe,Te),i=1,y===!0&&(i|=24),y=hr(3,null,null,i),n.current=y,y.stateNode=n,i=Sp(),i.refCount++,n.pooledCache=i,i.refCount++,y.memoizedState={element:u,isDehydrated:a,cache:i},Rp(y),n}function D2(n){return n?(n=xs,n):xs}function U2(n,i,a,u,d,y){d=D2(d),u.context===null?u.context=d:u.pendingContext=d,u=wo(i),u.payload={element:a},y=y===void 0?null:y,y!==null&&(u.callback=y),a=Io(n,u,i),a!==null&&(Ar(a,n,i),Xu(a,n,i))}function P2(n,i){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var a=n.retryLane;n.retryLane=a!==0&&a<i?a:i}}function Gy(n,i){P2(n,i),(n=n.alternate)&&P2(n,i)}function j2(n){if(n.tag===13){var i=bs(n,67108864);i!==null&&Ar(i,n,67108864),Gy(n,67108864)}}var id=!0;function n4(n,i,a,u){var d=O.T;O.T=null;var y=re.p;try{re.p=2,Qy(n,i,a,u)}finally{re.p=y,O.T=d}}function r4(n,i,a,u){var d=O.T;O.T=null;var y=re.p;try{re.p=8,Qy(n,i,a,u)}finally{re.p=y,O.T=d}}function Qy(n,i,a,u){if(id){var d=Ky(u);if(d===null)My(n,i,u,od,a),L2(n,u);else if(o4(d,n,i,a,u))u.stopPropagation();else if(L2(n,u),i&4&&-1<i4.indexOf(n)){for(;d!==null;){var y=Zr(d);if(y!==null)switch(y.tag){case 3:if(y=y.stateNode,y.current.memoizedState.isDehydrated){var F=ft(y.pendingLanes);if(F!==0){var q=y;for(q.pendingLanes|=2,q.entangledLanes|=2;F;){var oe=1<<31-qe(F);q.entanglements[1]|=oe,F&=~oe}Ei(y),(vt&6)===0&&(kf=g()+500,hc(0))}}break;case 13:q=bs(y,2),q!==null&&Ar(q,y,2),zf(),Gy(y,2)}if(y=Ky(u),y===null&&My(n,i,u,od,a),y===d)break;d=y}d!==null&&u.stopPropagation()}else My(n,i,u,null,a)}}function Ky(n){return n=Jh(n),Vy(n)}var od=null;function Vy(n){if(od=null,n=Xr(n),n!==null){var i=c(n);if(i===null)n=null;else{var a=i.tag;if(a===13){if(n=l(i),n!==null)return n;n=null}else if(a===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}return od=n,null}function N2(n){switch(n){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(m()){case I:return 2;case ee:return 8;case me:case Ce:return 32;case je:return 268435456;default:return 32}default:return 32}}var Yy=!1,jo=null,No=null,Lo=null,vc=new Map,Ec=new Map,qo=[],i4="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 L2(n,i){switch(n){case"focusin":case"focusout":jo=null;break;case"dragenter":case"dragleave":No=null;break;case"mouseover":case"mouseout":Lo=null;break;case"pointerover":case"pointerout":vc.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ec.delete(i.pointerId)}}function wc(n,i,a,u,d,y){return n===null||n.nativeEvent!==y?(n={blockedOn:i,domEventName:a,eventSystemFlags:u,nativeEvent:y,targetContainers:[d]},i!==null&&(i=Zr(i),i!==null&&j2(i)),n):(n.eventSystemFlags|=u,i=n.targetContainers,d!==null&&i.indexOf(d)===-1&&i.push(d),n)}function o4(n,i,a,u,d){switch(i){case"focusin":return jo=wc(jo,n,i,a,u,d),!0;case"dragenter":return No=wc(No,n,i,a,u,d),!0;case"mouseover":return Lo=wc(Lo,n,i,a,u,d),!0;case"pointerover":var y=d.pointerId;return vc.set(y,wc(vc.get(y)||null,n,i,a,u,d)),!0;case"gotpointercapture":return y=d.pointerId,Ec.set(y,wc(Ec.get(y)||null,n,i,a,u,d)),!0}return!1}function q2(n){var i=Xr(n.target);if(i!==null){var a=c(i);if(a!==null){if(i=a.tag,i===13){if(i=l(a),i!==null){n.blockedOn=i,os(n.priority,function(){if(a.tag===13){var u=mr();u=Ut(u);var d=bs(a,u);d!==null&&Ar(d,a,u),Gy(a,u)}});return}}else if(i===3&&a.stateNode.current.memoizedState.isDehydrated){n.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}n.blockedOn=null}function ad(n){if(n.blockedOn!==null)return!1;for(var i=n.targetContainers;0<i.length;){var a=Ky(n.nativeEvent);if(a===null){a=n.nativeEvent;var u=new a.constructor(a.type,a);Zh=u,a.target.dispatchEvent(u),Zh=null}else return i=Zr(a),i!==null&&j2(i),n.blockedOn=a,!1;i.shift()}return!0}function $2(n,i,a){ad(n)&&a.delete(i)}function a4(){Yy=!1,jo!==null&&ad(jo)&&(jo=null),No!==null&&ad(No)&&(No=null),Lo!==null&&ad(Lo)&&(Lo=null),vc.forEach($2),Ec.forEach($2)}function sd(n,i){n.blockedOn===i&&(n.blockedOn=null,Yy||(Yy=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,a4)))}var ud=null;function k2(n){ud!==n&&(ud=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){ud===n&&(ud=null);for(var i=0;i<n.length;i+=3){var a=n[i],u=n[i+1],d=n[i+2];if(typeof u!="function"){if(Vy(u||a)===null)continue;break}var y=Zr(a);y!==null&&(n.splice(i,3),i-=3,Vp(y,{pending:!0,data:d,method:a.method,action:u},u,d))}}))}function Ic(n){function i(oe){return sd(oe,n)}jo!==null&&sd(jo,n),No!==null&&sd(No,n),Lo!==null&&sd(Lo,n),vc.forEach(i),Ec.forEach(i);for(var a=0;a<qo.length;a++){var u=qo[a];u.blockedOn===n&&(u.blockedOn=null)}for(;0<qo.length&&(a=qo[0],a.blockedOn===null);)q2(a),a.blockedOn===null&&qo.shift();if(a=(n.ownerDocument||n).$$reactFormReplay,a!=null)for(u=0;u<a.length;u+=3){var d=a[u],y=a[u+1],F=d[dn]||null;if(typeof y=="function")F||k2(a);else if(F){var q=null;if(y&&y.hasAttribute("formAction")){if(d=y,F=y[dn]||null)q=F.formAction;else if(Vy(d)!==null)continue}else q=F.action;typeof q=="function"?a[u+1]=q:(a.splice(u,3),u-=3),k2(a)}}}function Xy(n){this._internalRoot=n}cd.prototype.render=Xy.prototype.render=function(n){var i=this._internalRoot;if(i===null)throw Error(o(409));var a=i.current,u=mr();U2(a,u,n,i,null,null)},cd.prototype.unmount=Xy.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var i=n.containerInfo;U2(n.current,2,null,n,null,null),zf(),i[Yr]=null}};function cd(n){this._internalRoot=n}cd.prototype.unstable_scheduleHydration=function(n){if(n){var i=aa();n={blockedOn:null,target:n,priority:i};for(var a=0;a<qo.length&&i!==0&&i<qo[a].priority;a++);qo.splice(a,0,n),a===0&&q2(n)}};var H2=t.version;if(H2!=="19.1.1")throw Error(o(527,H2,"19.1.1"));re.findDOMNode=function(n){var i=n._reactInternals;if(i===void 0)throw typeof n.render=="function"?Error(o(188)):(n=Object.keys(n).join(","),Error(o(268,n)));return n=p(i),n=n!==null?h(n):null,n=n===null?null:n.stateNode,n};var s4={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ld=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ld.isDisabled&&ld.supportsFiber)try{Ee=ld.inject(s4),Fe=ld}catch{}}return Oc.createRoot=function(n,i){if(!s(n))throw Error(o(299));var a=!1,u="",d=ow,y=aw,F=sw,q=null;return i!=null&&(i.unstable_strictMode===!0&&(a=!0),i.identifierPrefix!==void 0&&(u=i.identifierPrefix),i.onUncaughtError!==void 0&&(d=i.onUncaughtError),i.onCaughtError!==void 0&&(y=i.onCaughtError),i.onRecoverableError!==void 0&&(F=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(q=i.unstable_transitionCallbacks)),i=M2(n,1,!1,null,null,a,u,d,y,F,q,null),n[Yr]=i.current,_y(n),new Xy(i)},Oc.hydrateRoot=function(n,i,a){if(!s(n))throw Error(o(299));var u=!1,d="",y=ow,F=aw,q=sw,oe=null,xe=null;return a!=null&&(a.unstable_strictMode===!0&&(u=!0),a.identifierPrefix!==void 0&&(d=a.identifierPrefix),a.onUncaughtError!==void 0&&(y=a.onUncaughtError),a.onCaughtError!==void 0&&(F=a.onCaughtError),a.onRecoverableError!==void 0&&(q=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(oe=a.unstable_transitionCallbacks),a.formState!==void 0&&(xe=a.formState)),i=M2(n,1,!0,i,a??null,u,d,y,F,q,oe,xe),i.context=D2(null),a=i.current,u=mr(),u=Ut(u),d=wo(u),d.callback=null,Io(a,d,u),a=u,i.current.lanes=a,_t(i,a),Ei(i),n[Yr]=i.current,_y(n),new cd(i)},Oc.version="19.1.1",Oc}var iI;function v4(){if(iI)return tg.exports;iI=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(),tg.exports=x4(),tg.exports}var E4=v4(),w4=tB();function Uc({isOpen:e,onClose:t,title:r,children:o,className:s,url:c}){_e.useEffect(()=>{if(e){const p=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=p}}},[e]);const l=()=>{var p;c&&((p=globalThis==null?void 0:globalThis.open)==null||p.call(globalThis,c,"_blank","noopener,noreferrer"),t())};if(!e)return null;const f=J.jsx("div",{className:"modal-overlay",onClick:t,children:J.jsxs("div",{className:`modal-content ${s}`,onClick:p=>p.stopPropagation(),children:[J.jsxs("div",{className:"modal-header",children:[J.jsx("h2",{className:"modal-title",children:r}),J.jsxs("div",{className:"modal-header-actions",children:[c&&J.jsx("button",{className:"modal-open-new-window",onClick:l,"aria-label":"Open in new window",title:"Open in new window",type:"button",children:J.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[J.jsx("path",{d:"M18 13v6a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),J.jsx("polyline",{points:"15 3 21 3 21 9"}),J.jsx("line",{x1:"10",y1:"14",x2:"21",y2:"3"})]})}),J.jsx("button",{className:"modal-close",onClick:t,type:"button",children:"×"})]})]}),J.jsx("div",{className:"modal-body",children:o})]})});return typeof document<"u"&&document.body?w4.createPortal(f,document.body):f}const zs=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function I4(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function Vc(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function La(e,...t){if(!I4(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 S4(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");Vc(e.outputLen),Vc(e.blockLen)}function eu(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 nB(e,t){La(e);const r=t.outputLen;if(e.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)}function C4(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function tu(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function og(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function wi(e,t){return e<<32-t|e>>>t}const O4=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function F4(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function R4(e){for(let t=0;t<e.length;t++)e[t]=F4(e[t]);return e}const oI=O4?e=>e:R4;function B4(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function Yd(e){return typeof e=="string"&&(e=B4(e)),La(e),e}function T4(...e){let t=0;for(let o=0;o<e.length;o++){const s=e[o];La(s),t+=s.length}const r=new Uint8Array(t);for(let o=0,s=0;o<e.length;o++){const c=e[o];r.set(c,s),s+=c.length}return r}let M1=class{};function rB(e){const t=o=>e().update(Yd(o)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function _4(e=32){if(zs&&typeof zs.getRandomValues=="function")return zs.getRandomValues(new Uint8Array(e));if(zs&&typeof zs.randomBytes=="function")return Uint8Array.from(zs.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const D1=BigInt(0),Yb=BigInt(1);function Rl(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function U1(e){if(!Rl(e))throw new Error("Uint8Array expected")}function Yc(e,t){if(typeof t!="boolean")throw new Error(e+" boolean expected, got "+t)}function hd(e){const t=e.toString(16);return t.length&1?"0"+t:t}function iB(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?D1:BigInt("0x"+e)}const oB=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",M4=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Xc(e){if(U1(e),oB)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=M4[e[r]];return t}const Zi={_0:48,_9:57,A:65,F:70,a:97,f:102};function aI(e){if(e>=Zi._0&&e<=Zi._9)return e-Zi._0;if(e>=Zi.A&&e<=Zi.F)return e-(Zi.A-10);if(e>=Zi.a&&e<=Zi.f)return e-(Zi.a-10)}function Ud(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(oB)return Uint8Array.fromHex(e);const t=e.length,r=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const o=new Uint8Array(r);for(let s=0,c=0;s<r;s++,c+=2){const l=aI(e.charCodeAt(c)),f=aI(e.charCodeAt(c+1));if(l===void 0||f===void 0){const p=e[c]+e[c+1];throw new Error('hex string expected, got non-hex character "'+p+'" at index '+c)}o[s]=l*16+f}return o}function Na(e){return iB(Xc(e))}function aB(e){return U1(e),iB(Xc(Uint8Array.from(e).reverse()))}function Bl(e,t){return Ud(e.toString(16).padStart(t*2,"0"))}function sB(e,t){return Bl(e,t).reverse()}function zr(e,t,r){let o;if(typeof t=="string")try{o=Ud(t)}catch(c){throw new Error(e+" must be hex string or Uint8Array, cause: "+c)}else if(Rl(t))o=Uint8Array.from(t);else throw new Error(e+" must be hex string or Uint8Array");const s=o.length;if(typeof r=="number"&&s!==r)throw new Error(e+" of length "+r+" expected, got "+s);return o}function Pd(...e){let t=0;for(let o=0;o<e.length;o++){const s=e[o];U1(s),t+=s.length}const r=new Uint8Array(t);for(let o=0,s=0;o<e.length;o++){const c=e[o];r.set(c,s),s+=c.length}return r}const ag=e=>typeof e=="bigint"&&D1<=e;function P1(e,t,r){return ag(e)&&ag(t)&&ag(r)&&t<=e&&e<r}function Ys(e,t,r,o){if(!P1(t,r,o))throw new Error("expected valid "+e+": "+r+" <= n < "+o+", got "+t)}function D4(e){let t;for(t=0;e>D1;e>>=Yb,t+=1);return t}const Xd=e=>(Yb<<BigInt(e))-Yb,sg=e=>new Uint8Array(e),sI=e=>Uint8Array.from(e);function U4(e,t,r){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 r!="function")throw new Error("hmacFn must be a function");let o=sg(e),s=sg(e),c=0;const l=()=>{o.fill(1),s.fill(0),c=0},f=(...v)=>r(s,o,...v),p=(v=sg(0))=>{s=f(sI([0]),v),o=f(),v.length!==0&&(s=f(sI([1]),v),o=f())},h=()=>{if(c++>=1e3)throw new Error("drbg: tried 1000 values");let v=0;const x=[];for(;v<t;){o=f();const S=o.slice();x.push(S),v+=o.length}return Pd(...x)};return(v,x)=>{l(),p(v);let S;for(;!(S=x(h()));)p();return l(),S}}const P4={bigint:e=>typeof e=="bigint",function:e=>typeof e=="function",boolean:e=>typeof e=="boolean",string:e=>typeof e=="string",stringOrUint8Array:e=>typeof e=="string"||Rl(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>typeof e=="function"&&Number.isSafeInteger(e.outputLen)};function Zd(e,t,r={}){const o=(s,c,l)=>{const f=P4[c];if(typeof f!="function")throw new Error("invalid validator function");const p=e[s];if(!(l&&p===void 0)&&!f(p,e))throw new Error("param "+String(s)+" is invalid. Expected "+c+", got "+p)};for(const[s,c]of Object.entries(t))o(s,c,!1);for(const[s,c]of Object.entries(r))o(s,c,!0);return e}function uI(e){const t=new WeakMap;return(r,...o)=>{const s=t.get(r);if(s!==void 0)return s;const c=e(r,...o);return t.set(r,c),c}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const nr=BigInt(0),Vn=BigInt(1),Ua=BigInt(2),j4=BigInt(3),uB=BigInt(4),cB=BigInt(5),lB=BigInt(8);function tr(e,t){const r=e%t;return r>=nr?r:t+r}function Hr(e,t,r){let o=e;for(;t-- >nr;)o*=o,o%=r;return o}function Xb(e,t){if(e===nr)throw new Error("invert: expected non-zero number");if(t<=nr)throw new Error("invert: expected positive modulus, got "+t);let r=tr(e,t),o=t,s=nr,c=Vn;for(;r!==nr;){const f=o/r,p=o%r,h=s-c*f;o=r,r=p,s=c,c=h}if(o!==Vn)throw new Error("invert: does not exist");return tr(s,t)}function fB(e,t){const r=(e.ORDER+Vn)/uB,o=e.pow(t,r);if(!e.eql(e.sqr(o),t))throw new Error("Cannot find square root");return o}function N4(e,t){const r=(e.ORDER-cB)/lB,o=e.mul(t,Ua),s=e.pow(o,r),c=e.mul(t,s),l=e.mul(e.mul(c,Ua),s),f=e.mul(c,e.sub(l,e.ONE));if(!e.eql(e.sqr(f),t))throw new Error("Cannot find square root");return f}function L4(e){if(e<BigInt(3))throw new Error("sqrt is not defined for small field");let t=e-Vn,r=0;for(;t%Ua===nr;)t/=Ua,r++;let o=Ua;const s=j1(e);for(;cI(s,o)===1;)if(o++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(r===1)return fB;let c=s.pow(o,t);const l=(t+Vn)/Ua;return function(p,h){if(p.is0(h))return h;if(cI(p,h)!==1)throw new Error("Cannot find square root");let A=r,v=p.mul(p.ONE,c),x=p.pow(h,t),S=p.pow(h,l);for(;!p.eql(x,p.ONE);){if(p.is0(x))return p.ZERO;let R=1,U=p.sqr(x);for(;!p.eql(U,p.ONE);)if(R++,U=p.sqr(U),R===A)throw new Error("Cannot find square root");const T=Vn<<BigInt(A-R-1),_=p.pow(v,T);A=R,v=p.sqr(_),x=p.mul(x,v),S=p.mul(S,_)}return S}}function q4(e){return e%uB===j4?fB:e%lB===cB?N4:L4(e)}const $4=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function k4(e){const t={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},r=$4.reduce((o,s)=>(o[s]="function",o),t);return Zd(e,r)}function H4(e,t,r){if(r<nr)throw new Error("invalid exponent, negatives unsupported");if(r===nr)return e.ONE;if(r===Vn)return t;let o=e.ONE,s=t;for(;r>nr;)r&Vn&&(o=e.mul(o,s)),s=e.sqr(s),r>>=Vn;return o}function dB(e,t,r=!1){const o=new Array(t.length).fill(r?e.ZERO:void 0),s=t.reduce((l,f,p)=>e.is0(f)?l:(o[p]=l,e.mul(l,f)),e.ONE),c=e.inv(s);return t.reduceRight((l,f,p)=>e.is0(f)?l:(o[p]=e.mul(l,o[p]),e.mul(l,f)),c),o}function cI(e,t){const r=(e.ORDER-Vn)/Ua,o=e.pow(t,r),s=e.eql(o,e.ONE),c=e.eql(o,e.ZERO),l=e.eql(o,e.neg(e.ONE));if(!s&&!c&&!l)throw new Error("invalid Legendre symbol result");return s?1:c?0:-1}function hB(e,t){t!==void 0&&Vc(t);const r=t!==void 0?t:e.toString(2).length,o=Math.ceil(r/8);return{nBitLength:r,nByteLength:o}}function j1(e,t,r=!1,o={}){if(e<=nr)throw new Error("invalid field: expected ORDER > 0, got "+e);const{nBitLength:s,nByteLength:c}=hB(e,t);if(c>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let l;const f=Object.freeze({ORDER:e,isLE:r,BITS:s,BYTES:c,MASK:Xd(s),ZERO:nr,ONE:Vn,create:p=>tr(p,e),isValid:p=>{if(typeof p!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof p);return nr<=p&&p<e},is0:p=>p===nr,isOdd:p=>(p&Vn)===Vn,neg:p=>tr(-p,e),eql:(p,h)=>p===h,sqr:p=>tr(p*p,e),add:(p,h)=>tr(p+h,e),sub:(p,h)=>tr(p-h,e),mul:(p,h)=>tr(p*h,e),pow:(p,h)=>H4(f,p,h),div:(p,h)=>tr(p*Xb(h,e),e),sqrN:p=>p*p,addN:(p,h)=>p+h,subN:(p,h)=>p-h,mulN:(p,h)=>p*h,inv:p=>Xb(p,e),sqrt:o.sqrt||(p=>(l||(l=q4(e)),l(f,p))),toBytes:p=>r?sB(p,c):Bl(p,c),fromBytes:p=>{if(p.length!==c)throw new Error("Field.fromBytes: expected "+c+" bytes, got "+p.length);return r?aB(p):Na(p)},invertBatch:p=>dB(f,p),cmov:(p,h,A)=>A?h:p});return Object.freeze(f)}function pB(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 yB(e){const t=pB(e);return t+Math.ceil(t/2)}function z4(e,t,r=!1){const o=e.length,s=pB(t),c=yB(t);if(o<16||o<c||o>1024)throw new Error("expected "+c+"-1024 bytes of input, got "+o);const l=r?aB(e):Na(e),f=tr(l,t-Vn)+Vn;return r?sB(f,s):Bl(f,s)}function G4(e,t,r,o){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,r,o);const s=BigInt(32),c=BigInt(4294967295),l=Number(r>>s&c),f=Number(r&c),p=o?4:0,h=o?0:4;e.setUint32(t+p,l,o),e.setUint32(t+h,f,o)}function Q4(e,t,r){return e&t^~e&r}function K4(e,t,r){return e&t^e&r^t&r}class V4 extends M1{constructor(t,r,o,s){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=r,this.padOffset=o,this.isLE=s,this.buffer=new Uint8Array(t),this.view=og(this.buffer)}update(t){eu(this),t=Yd(t),La(t);const{view:r,buffer:o,blockLen:s}=this,c=t.length;for(let l=0;l<c;){const f=Math.min(s-this.pos,c-l);if(f===s){const p=og(t);for(;s<=c-l;l+=s)this.process(p,l);continue}o.set(t.subarray(l,l+f),this.pos),this.pos+=f,l+=f,this.pos===s&&(this.process(r,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){eu(this),nB(t,this),this.finished=!0;const{buffer:r,view:o,blockLen:s,isLE:c}=this;let{pos:l}=this;r[l++]=128,tu(this.buffer.subarray(l)),this.padOffset>s-l&&(this.process(o,0),l=0);for(let v=l;v<s;v++)r[v]=0;G4(o,s-8,BigInt(this.length*8),c),this.process(o,0);const f=og(t),p=this.outputLen;if(p%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const h=p/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:r}=this;this.digestInto(t);const o=t.slice(0,r);return this.destroy(),o}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:r,buffer:o,length:s,finished:c,destroyed:l,pos:f}=this;return t.destroyed=l,t.finished=c,t.length=s,t.pos=f,s%r&&t.buffer.set(o),t}clone(){return this._cloneInto()}}const Ho=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),pd=BigInt(2**32-1),lI=BigInt(32);function Y4(e,t=!1){return t?{h:Number(e&pd),l:Number(e>>lI&pd)}:{h:Number(e>>lI&pd)|0,l:Number(e&pd)|0}}function X4(e,t=!1){const r=e.length;let o=new Uint32Array(r),s=new Uint32Array(r);for(let c=0;c<r;c++){const{h:l,l:f}=Y4(e[c],t);[o[c],s[c]]=[l,f]}return[o,s]}const Z4=(e,t,r)=>e<<r|t>>>32-r,J4=(e,t,r)=>t<<r|e>>>32-r,W4=(e,t,r)=>t<<r-32|e>>>64-r,eM=(e,t,r)=>e<<r-32|t>>>64-r,tM=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]),zo=new Uint32Array(64);class nM extends V4{constructor(t=32){super(64,t,8,!1),this.A=Ho[0]|0,this.B=Ho[1]|0,this.C=Ho[2]|0,this.D=Ho[3]|0,this.E=Ho[4]|0,this.F=Ho[5]|0,this.G=Ho[6]|0,this.H=Ho[7]|0}get(){const{A:t,B:r,C:o,D:s,E:c,F:l,G:f,H:p}=this;return[t,r,o,s,c,l,f,p]}set(t,r,o,s,c,l,f,p){this.A=t|0,this.B=r|0,this.C=o|0,this.D=s|0,this.E=c|0,this.F=l|0,this.G=f|0,this.H=p|0}process(t,r){for(let v=0;v<16;v++,r+=4)zo[v]=t.getUint32(r,!1);for(let v=16;v<64;v++){const x=zo[v-15],S=zo[v-2],R=wi(x,7)^wi(x,18)^x>>>3,U=wi(S,17)^wi(S,19)^S>>>10;zo[v]=U+zo[v-7]+R+zo[v-16]|0}let{A:o,B:s,C:c,D:l,E:f,F:p,G:h,H:A}=this;for(let v=0;v<64;v++){const x=wi(f,6)^wi(f,11)^wi(f,25),S=A+x+Q4(f,p,h)+tM[v]+zo[v]|0,U=(wi(o,2)^wi(o,13)^wi(o,22))+K4(o,s,c)|0;A=h,h=p,p=f,f=l+S|0,l=c,c=s,s=o,o=S+U|0}o=o+this.A|0,s=s+this.B|0,c=c+this.C|0,l=l+this.D|0,f=f+this.E|0,p=p+this.F|0,h=h+this.G|0,A=A+this.H|0,this.set(o,s,c,l,f,p,h,A)}roundClean(){tu(zo)}destroy(){this.set(0,0,0,0,0,0,0,0),tu(this.buffer)}}const gB=rB(()=>new nM);class mB extends M1{constructor(t,r){super(),this.finished=!1,this.destroyed=!1,S4(t);const o=Yd(r);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(o.length>s?t.create().update(o).digest():o);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),tu(c)}update(t){return eu(this),this.iHash.update(t),this}digestInto(t){eu(this),La(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:r,iHash:o,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=r._cloneInto(t.oHash),t.iHash=o._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const AB=(e,t,r)=>new mB(e,t).update(r).digest();AB.create=(e,t)=>new mB(e,t);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const fI=BigInt(0),Zb=BigInt(1);function ug(e,t){const r=t.negate();return e?r:t}function bB(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function cg(e,t){bB(e,t);const r=Math.ceil(t/e)+1,o=2**(e-1),s=2**e,c=Xd(e),l=BigInt(e);return{windows:r,windowSize:o,mask:c,maxNumber:s,shiftBy:l}}function dI(e,t,r){const{windowSize:o,mask:s,maxNumber:c,shiftBy:l}=r;let f=Number(e&s),p=e>>l;f>o&&(f-=c,p+=Zb);const h=t*o,A=h+Math.abs(f)-1,v=f===0,x=f<0,S=t%2!==0;return{nextN:p,offset:A,isZero:v,isNeg:x,isNegF:S,offsetF:h}}function rM(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach((r,o)=>{if(!(r instanceof t))throw new Error("invalid point at index "+o)})}function iM(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((r,o)=>{if(!t.isValid(r))throw new Error("invalid scalar at index "+o)})}const lg=new WeakMap,xB=new WeakMap;function fg(e){return xB.get(e)||1}function oM(e,t){return{constTimeNegate:ug,hasPrecomputes(r){return fg(r)!==1},unsafeLadder(r,o,s=e.ZERO){let c=r;for(;o>fI;)o&Zb&&(s=s.add(c)),c=c.double(),o>>=Zb;return s},precomputeWindow(r,o){const{windows:s,windowSize:c}=cg(o,t),l=[];let f=r,p=f;for(let h=0;h<s;h++){p=f,l.push(p);for(let A=1;A<c;A++)p=p.add(f),l.push(p);f=p.double()}return l},wNAF(r,o,s){let c=e.ZERO,l=e.BASE;const f=cg(r,t);for(let p=0;p<f.windows;p++){const{nextN:h,offset:A,isZero:v,isNeg:x,isNegF:S,offsetF:R}=dI(s,p,f);s=h,v?l=l.add(ug(S,o[R])):c=c.add(ug(x,o[A]))}return{p:c,f:l}},wNAFUnsafe(r,o,s,c=e.ZERO){const l=cg(r,t);for(let f=0;f<l.windows&&s!==fI;f++){const{nextN:p,offset:h,isZero:A,isNeg:v}=dI(s,f,l);if(s=p,!A){const x=o[h];c=c.add(v?x.negate():x)}}return c},getPrecomputes(r,o,s){let c=lg.get(o);return c||(c=this.precomputeWindow(o,r),r!==1&&lg.set(o,s(c))),c},wNAFCached(r,o,s){const c=fg(r);return this.wNAF(c,this.getPrecomputes(c,r,s),o)},wNAFCachedUnsafe(r,o,s,c){const l=fg(r);return l===1?this.unsafeLadder(r,o,c):this.wNAFUnsafe(l,this.getPrecomputes(l,r,s),o,c)},setWindowSize(r,o){bB(o,t),xB.set(r,o),lg.delete(r)}}}function aM(e,t,r,o){rM(r,e),iM(o,t);const s=r.length,c=o.length;if(s!==c)throw new Error("arrays of points and scalars must have equal length");const l=e.ZERO,f=D4(BigInt(s));let p=1;f>12?p=f-3:f>4?p=f-2:f>0&&(p=2);const h=Xd(p),A=new Array(Number(h)+1).fill(l),v=Math.floor((t.BITS-1)/p)*p;let x=l;for(let S=v;S>=0;S-=p){A.fill(l);for(let U=0;U<c;U++){const T=o[U],_=Number(T>>BigInt(S)&h);A[_]=A[_].add(r[U])}let R=l;for(let U=A.length-1,T=l;U>0;U--)T=T.add(A[U]),R=R.add(T);if(x=x.add(R),S!==0)for(let U=0;U<p;U++)x=x.double()}return x}function vB(e){return k4(e.Fp),Zd(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...hB(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function hI(e){e.lowS!==void 0&&Yc("lowS",e.lowS),e.prehash!==void 0&&Yc("prehash",e.prehash)}function sM(e){const t=vB(e);Zd(t,{a:"field",b:"field"},{allowInfinityPoint:"boolean",allowedPrivateKeyLengths:"array",clearCofactor:"function",fromBytes:"function",isTorsionFree:"function",toBytes:"function",wrapPrivateKey:"boolean"});const{endo:r,Fp:o,a:s}=t;if(r){if(!o.eql(s,o.ZERO))throw new Error("invalid endo: CURVE.a must be 0");if(typeof r!="object"||typeof r.beta!="bigint"||typeof r.splitScalar!="function")throw new Error('invalid endo: expected "beta": bigint and "splitScalar": function')}return Object.freeze({...t})}class uM extends Error{constructor(t=""){super(t)}}const to={Err:uM,_tlv:{encode:(e,t)=>{const{Err:r}=to;if(e<0||e>256)throw new r("tlv.encode: wrong tag");if(t.length&1)throw new r("tlv.encode: unpadded data");const o=t.length/2,s=hd(o);if(s.length/2&128)throw new r("tlv.encode: long form length too big");const c=o>127?hd(s.length/2|128):"";return hd(e)+c+s+t},decode(e,t){const{Err:r}=to;let o=0;if(e<0||e>256)throw new r("tlv.encode: wrong tag");if(t.length<2||t[o++]!==e)throw new r("tlv.decode: wrong tlv");const s=t[o++],c=!!(s&128);let l=0;if(!c)l=s;else{const p=s&127;if(!p)throw new r("tlv.decode(long): indefinite length not supported");if(p>4)throw new r("tlv.decode(long): byte length is too big");const h=t.subarray(o,o+p);if(h.length!==p)throw new r("tlv.decode: length bytes not complete");if(h[0]===0)throw new r("tlv.decode(long): zero leftmost byte");for(const A of h)l=l<<8|A;if(o+=p,l<128)throw new r("tlv.decode(long): not minimal encoding")}const f=t.subarray(o,o+l);if(f.length!==l)throw new r("tlv.decode: wrong value length");return{v:f,l:t.subarray(o+l)}}},_int:{encode(e){const{Err:t}=to;if(e<io)throw new t("integer: negative integers are not allowed");let r=hd(e);if(Number.parseInt(r[0],16)&8&&(r="00"+r),r.length&1)throw new t("unexpected DER parsing assertion: unpadded hex");return r},decode(e){const{Err:t}=to;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 Na(e)}},toSig(e){const{Err:t,_int:r,_tlv:o}=to,s=zr("signature",e),{v:c,l}=o.decode(48,s);if(l.length)throw new t("invalid signature: left bytes after parsing");const{v:f,l:p}=o.decode(2,c),{v:h,l:A}=o.decode(2,p);if(A.length)throw new t("invalid signature: left bytes after parsing");return{r:r.decode(f),s:r.decode(h)}},hexFromSig(e){const{_tlv:t,_int:r}=to,o=t.encode(2,r.encode(e.r)),s=t.encode(2,r.encode(e.s)),c=o+s;return t.encode(48,c)}};function dg(e,t){return Xc(Bl(e,t))}const io=BigInt(0),vn=BigInt(1);BigInt(2);const hg=BigInt(3),cM=BigInt(4);function lM(e){const t=sM(e),{Fp:r}=t,o=j1(t.n,t.nBitLength),s=t.toBytes||((D,$,P)=>{const Y=$.toAffine();return Pd(Uint8Array.from([4]),r.toBytes(Y.x),r.toBytes(Y.y))}),c=t.fromBytes||(D=>{const $=D.subarray(1),P=r.fromBytes($.subarray(0,r.BYTES)),Y=r.fromBytes($.subarray(r.BYTES,2*r.BYTES));return{x:P,y:Y}});function l(D){const{a:$,b:P}=t,Y=r.sqr(D),ne=r.mul(Y,D);return r.add(r.add(ne,r.mul(D,$)),P)}function f(D,$){const P=r.sqr($),Y=l(D);return r.eql(P,Y)}if(!f(t.Gx,t.Gy))throw new Error("bad curve params: generator point");const p=r.mul(r.pow(t.a,hg),cM),h=r.mul(r.sqr(t.b),BigInt(27));if(r.is0(r.add(p,h)))throw new Error("bad curve params: a or b");function A(D){return P1(D,vn,t.n)}function v(D){const{allowedPrivateKeyLengths:$,nByteLength:P,wrapPrivateKey:Y,n:ne}=t;if($&&typeof D!="bigint"){if(Rl(D)&&(D=Xc(D)),typeof D!="string"||!$.includes(D.length))throw new Error("invalid private key");D=D.padStart(P*2,"0")}let te;try{te=typeof D=="bigint"?D:Na(zr("private key",D,P))}catch{throw new Error("invalid private key, expected hex or "+P+" bytes, got "+typeof D)}return Y&&(te=tr(te,ne)),Ys("private key",te,vn,ne),te}function x(D){if(!(D instanceof U))throw new Error("ProjectivePoint expected")}const S=uI((D,$)=>{const{px:P,py:Y,pz:ne}=D;if(r.eql(ne,r.ONE))return{x:P,y:Y};const te=D.is0();$==null&&($=te?r.ONE:r.inv(ne));const B=r.mul(P,$),L=r.mul(Y,$),z=r.mul(ne,$);if(te)return{x:r.ZERO,y:r.ZERO};if(!r.eql(z,r.ONE))throw new Error("invZ was invalid");return{x:B,y:L}}),R=uI(D=>{if(D.is0()){if(t.allowInfinityPoint&&!r.is0(D.py))return;throw new Error("bad point: ZERO")}const{x:$,y:P}=D.toAffine();if(!r.isValid($)||!r.isValid(P))throw new Error("bad point: x or y not FE");if(!f($,P))throw new Error("bad point: equation left != right");if(!D.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});class U{constructor($,P,Y){if($==null||!r.isValid($))throw new Error("x required");if(P==null||!r.isValid(P)||r.is0(P))throw new Error("y required");if(Y==null||!r.isValid(Y))throw new Error("z required");this.px=$,this.py=P,this.pz=Y,Object.freeze(this)}static fromAffine($){const{x:P,y:Y}=$||{};if(!$||!r.isValid(P)||!r.isValid(Y))throw new Error("invalid affine point");if($ instanceof U)throw new Error("projective point not allowed");const ne=te=>r.eql(te,r.ZERO);return ne(P)&&ne(Y)?U.ZERO:new U(P,Y,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ($){const P=dB(r,$.map(Y=>Y.pz));return $.map((Y,ne)=>Y.toAffine(P[ne])).map(U.fromAffine)}static fromHex($){const P=U.fromAffine(c(zr("pointHex",$)));return P.assertValidity(),P}static fromPrivateKey($){return U.BASE.multiply(v($))}static msm($,P){return aM(U,o,$,P)}_setWindowSize($){M.setWindowSize(this,$)}assertValidity(){R(this)}hasEvenY(){const{y:$}=this.toAffine();if(r.isOdd)return!r.isOdd($);throw new Error("Field doesn't support isOdd")}equals($){x($);const{px:P,py:Y,pz:ne}=this,{px:te,py:B,pz:L}=$,z=r.eql(r.mul(P,L),r.mul(te,ne)),H=r.eql(r.mul(Y,L),r.mul(B,ne));return z&&H}negate(){return new U(this.px,r.neg(this.py),this.pz)}double(){const{a:$,b:P}=t,Y=r.mul(P,hg),{px:ne,py:te,pz:B}=this;let L=r.ZERO,z=r.ZERO,H=r.ZERO,ie=r.mul(ne,ne),de=r.mul(te,te),Ae=r.mul(B,B),O=r.mul(ne,te);return O=r.add(O,O),H=r.mul(ne,B),H=r.add(H,H),L=r.mul($,H),z=r.mul(Y,Ae),z=r.add(L,z),L=r.sub(de,z),z=r.add(de,z),z=r.mul(L,z),L=r.mul(O,L),H=r.mul(Y,H),Ae=r.mul($,Ae),O=r.sub(ie,Ae),O=r.mul($,O),O=r.add(O,H),H=r.add(ie,ie),ie=r.add(H,ie),ie=r.add(ie,Ae),ie=r.mul(ie,O),z=r.add(z,ie),Ae=r.mul(te,B),Ae=r.add(Ae,Ae),ie=r.mul(Ae,O),L=r.sub(L,ie),H=r.mul(Ae,de),H=r.add(H,H),H=r.add(H,H),new U(L,z,H)}add($){x($);const{px:P,py:Y,pz:ne}=this,{px:te,py:B,pz:L}=$;let z=r.ZERO,H=r.ZERO,ie=r.ZERO;const de=t.a,Ae=r.mul(t.b,hg);let O=r.mul(P,te),re=r.mul(Y,B),he=r.mul(ne,L),W=r.add(P,Y),C=r.add(te,B);W=r.mul(W,C),C=r.add(O,re),W=r.sub(W,C),C=r.add(P,ne);let X=r.add(te,L);return C=r.mul(C,X),X=r.add(O,he),C=r.sub(C,X),X=r.add(Y,ne),z=r.add(B,L),X=r.mul(X,z),z=r.add(re,he),X=r.sub(X,z),ie=r.mul(de,C),z=r.mul(Ae,he),ie=r.add(z,ie),z=r.sub(re,ie),ie=r.add(re,ie),H=r.mul(z,ie),re=r.add(O,O),re=r.add(re,O),he=r.mul(de,he),C=r.mul(Ae,C),re=r.add(re,he),he=r.sub(O,he),he=r.mul(de,he),C=r.add(C,he),O=r.mul(re,C),H=r.add(H,O),O=r.mul(X,C),z=r.mul(W,z),z=r.sub(z,O),O=r.mul(W,re),ie=r.mul(X,ie),ie=r.add(ie,O),new U(z,H,ie)}subtract($){return this.add($.negate())}is0(){return this.equals(U.ZERO)}wNAF($){return M.wNAFCached(this,$,U.normalizeZ)}multiplyUnsafe($){const{endo:P,n:Y}=t;Ys("scalar",$,io,Y);const ne=U.ZERO;if($===io)return ne;if(this.is0()||$===vn)return this;if(!P||M.hasPrecomputes(this))return M.wNAFCachedUnsafe(this,$,U.normalizeZ);let{k1neg:te,k1:B,k2neg:L,k2:z}=P.splitScalar($),H=ne,ie=ne,de=this;for(;B>io||z>io;)B&vn&&(H=H.add(de)),z&vn&&(ie=ie.add(de)),de=de.double(),B>>=vn,z>>=vn;return te&&(H=H.negate()),L&&(ie=ie.negate()),ie=new U(r.mul(ie.px,P.beta),ie.py,ie.pz),H.add(ie)}multiply($){const{endo:P,n:Y}=t;Ys("scalar",$,vn,Y);let ne,te;if(P){const{k1neg:B,k1:L,k2neg:z,k2:H}=P.splitScalar($);let{p:ie,f:de}=this.wNAF(L),{p:Ae,f:O}=this.wNAF(H);ie=M.constTimeNegate(B,ie),Ae=M.constTimeNegate(z,Ae),Ae=new U(r.mul(Ae.px,P.beta),Ae.py,Ae.pz),ne=ie.add(Ae),te=de.add(O)}else{const{p:B,f:L}=this.wNAF($);ne=B,te=L}return U.normalizeZ([ne,te])[0]}multiplyAndAddUnsafe($,P,Y){const ne=U.BASE,te=(L,z)=>z===io||z===vn||!L.equals(ne)?L.multiplyUnsafe(z):L.multiply(z),B=te(this,P).add(te($,Y));return B.is0()?void 0:B}toAffine($){return S(this,$)}isTorsionFree(){const{h:$,isTorsionFree:P}=t;if($===vn)return!0;if(P)return P(U,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:$,clearCofactor:P}=t;return $===vn?this:P?P(U,this):this.multiplyUnsafe(t.h)}toRawBytes($=!0){return Yc("isCompressed",$),this.assertValidity(),s(U,this,$)}toHex($=!0){return Yc("isCompressed",$),Xc(this.toRawBytes($))}}U.BASE=new U(t.Gx,t.Gy,r.ONE),U.ZERO=new U(r.ZERO,r.ONE,r.ZERO);const{endo:T,nBitLength:_}=t,M=oM(U,T?Math.ceil(_/2):_);return{CURVE:t,ProjectivePoint:U,normPrivateKeyToScalar:v,weierstrassEquation:l,isWithinCurveOrder:A}}function fM(e){const t=vB(e);return Zd(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}function dM(e){const t=fM(e),{Fp:r,n:o,nByteLength:s,nBitLength:c}=t,l=r.BYTES+1,f=2*r.BYTES+1;function p(Ae){return tr(Ae,o)}function h(Ae){return Xb(Ae,o)}const{ProjectivePoint:A,normPrivateKeyToScalar:v,weierstrassEquation:x,isWithinCurveOrder:S}=lM({...t,toBytes(Ae,O,re){const he=O.toAffine(),W=r.toBytes(he.x),C=Pd;return Yc("isCompressed",re),re?C(Uint8Array.from([O.hasEvenY()?2:3]),W):C(Uint8Array.from([4]),W,r.toBytes(he.y))},fromBytes(Ae){const O=Ae.length,re=Ae[0],he=Ae.subarray(1);if(O===l&&(re===2||re===3)){const W=Na(he);if(!P1(W,vn,r.ORDER))throw new Error("Point is not on curve");const C=x(W);let X;try{X=r.sqrt(C)}catch(j){const k=j instanceof Error?": "+j.message:"";throw new Error("Point is not on curve"+k)}const ue=(X&vn)===vn;return(re&1)===1!==ue&&(X=r.neg(X)),{x:W,y:X}}else if(O===f&&re===4){const W=r.fromBytes(he.subarray(0,r.BYTES)),C=r.fromBytes(he.subarray(r.BYTES,2*r.BYTES));return{x:W,y:C}}else{const W=l,C=f;throw new Error("invalid Point, expected length of "+W+", or uncompressed "+C+", got "+O)}}});function R(Ae){const O=o>>vn;return Ae>O}function U(Ae){return R(Ae)?p(-Ae):Ae}const T=(Ae,O,re)=>Na(Ae.slice(O,re));class _{constructor(O,re,he){Ys("r",O,vn,o),Ys("s",re,vn,o),this.r=O,this.s=re,he!=null&&(this.recovery=he),Object.freeze(this)}static fromCompact(O){const re=s;return O=zr("compactSignature",O,re*2),new _(T(O,0,re),T(O,re,2*re))}static fromDER(O){const{r:re,s:he}=to.toSig(zr("DER",O));return new _(re,he)}assertValidity(){}addRecoveryBit(O){return new _(this.r,this.s,O)}recoverPublicKey(O){const{r:re,s:he,recovery:W}=this,C=ne(zr("msgHash",O));if(W==null||![0,1,2,3].includes(W))throw new Error("recovery id invalid");const X=W===2||W===3?re+t.n:re;if(X>=r.ORDER)throw new Error("recovery id 2 or 3 invalid");const ue=(W&1)===0?"02":"03",Q=A.fromHex(ue+dg(X,r.BYTES)),j=h(X),k=p(-C*j),V=p(he*j),pe=A.BASE.multiplyAndAddUnsafe(Q,k,V);if(!pe)throw new Error("point at infinify");return pe.assertValidity(),pe}hasHighS(){return R(this.s)}normalizeS(){return this.hasHighS()?new _(this.r,p(-this.s),this.recovery):this}toDERRawBytes(){return Ud(this.toDERHex())}toDERHex(){return to.hexFromSig(this)}toCompactRawBytes(){return Ud(this.toCompactHex())}toCompactHex(){const O=s;return dg(this.r,O)+dg(this.s,O)}}const M={isValidPrivateKey(Ae){try{return v(Ae),!0}catch{return!1}},normPrivateKeyToScalar:v,randomPrivateKey:()=>{const Ae=yB(t.n);return z4(t.randomBytes(Ae),t.n)},precompute(Ae=8,O=A.BASE){return O._setWindowSize(Ae),O.multiply(BigInt(3)),O}};function D(Ae,O=!0){return A.fromPrivateKey(Ae).toRawBytes(O)}function $(Ae){if(typeof Ae=="bigint")return!1;if(Ae instanceof A)return!0;const re=zr("key",Ae).length,he=r.BYTES,W=he+1,C=2*he+1;if(!(t.allowedPrivateKeyLengths||s===W))return re===W||re===C}function P(Ae,O,re=!0){if($(Ae)===!0)throw new Error("first arg must be private key");if($(O)===!1)throw new Error("second arg must be public key");return A.fromHex(O).multiply(v(Ae)).toRawBytes(re)}const Y=t.bits2int||function(Ae){if(Ae.length>8192)throw new Error("input is too large");const O=Na(Ae),re=Ae.length*8-c;return re>0?O>>BigInt(re):O},ne=t.bits2int_modN||function(Ae){return p(Y(Ae))},te=Xd(c);function B(Ae){return Ys("num < 2^"+c,Ae,io,te),Bl(Ae,s)}function L(Ae,O,re=z){if(["recovered","canonical"].some(G=>G in re))throw new Error("sign() legacy options not supported");const{hash:he,randomBytes:W}=t;let{lowS:C,prehash:X,extraEntropy:ue}=re;C==null&&(C=!0),Ae=zr("msgHash",Ae),hI(re),X&&(Ae=zr("prehashed msgHash",he(Ae)));const Q=ne(Ae),j=v(O),k=[B(j),B(Q)];if(ue!=null&&ue!==!1){const G=ue===!0?W(r.BYTES):ue;k.push(zr("extraEntropy",G))}const V=Pd(...k),pe=Q;function ye(G){const w=Y(G);if(!S(w))return;const N=h(w),K=A.BASE.multiply(w).toAffine(),Z=p(K.x);if(Z===io)return;const ce=p(N*p(pe+Z*j));if(ce===io)return;let le=(K.x===Z?0:2)|Number(K.y&vn),b=ce;return C&&R(ce)&&(b=U(ce),le^=1),new _(Z,b,le)}return{seed:V,k2sig:ye}}const z={lowS:t.lowS,prehash:!1},H={lowS:t.lowS,prehash:!1};function ie(Ae,O,re=z){const{seed:he,k2sig:W}=L(Ae,O,re),C=t;return U4(C.hash.outputLen,C.nByteLength,C.hmac)(he,W)}A.BASE._setWindowSize(8);function de(Ae,O,re,he=H){var le;const W=Ae;O=zr("msgHash",O),re=zr("publicKey",re);const{lowS:C,prehash:X,format:ue}=he;if(hI(he),"strict"in he)throw new Error("options.strict was renamed to lowS");if(ue!==void 0&&ue!=="compact"&&ue!=="der")throw new Error("format must be compact or der");const Q=typeof W=="string"||Rl(W),j=!Q&&!ue&&typeof W=="object"&&W!==null&&typeof W.r=="bigint"&&typeof W.s=="bigint";if(!Q&&!j)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let k,V;try{if(j&&(k=new _(W.r,W.s)),Q){try{ue!=="compact"&&(k=_.fromDER(W))}catch(b){if(!(b instanceof to.Err))throw b}!k&&ue!=="der"&&(k=_.fromCompact(W))}V=A.fromHex(re)}catch{return!1}if(!k||C&&k.hasHighS())return!1;X&&(O=t.hash(O));const{r:pe,s:ye}=k,G=ne(O),w=h(ye),N=p(G*w),K=p(pe*w),Z=(le=A.BASE.multiplyAndAddUnsafe(V,N,K))==null?void 0:le.toAffine();return Z?p(Z.x)===pe:!1}return{CURVE:t,getPublicKey:D,getSharedSecret:P,sign:ie,verify:de,ProjectivePoint:A,Signature:_,utils:M}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function hM(e){return{hash:e,hmac:(t,...r)=>AB(e,t,T4(...r)),randomBytes:_4}}function pM(e,t){const r=o=>dM({...e,...hM(o)});return{...r(t),create:r}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const EB=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),pI=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),yM=BigInt(0),gM=BigInt(1),Jb=BigInt(2),yI=(e,t)=>(e+t/Jb)/t;function mM(e){const t=EB,r=BigInt(3),o=BigInt(6),s=BigInt(11),c=BigInt(22),l=BigInt(23),f=BigInt(44),p=BigInt(88),h=e*e*e%t,A=h*h*e%t,v=Hr(A,r,t)*A%t,x=Hr(v,r,t)*A%t,S=Hr(x,Jb,t)*h%t,R=Hr(S,s,t)*S%t,U=Hr(R,c,t)*R%t,T=Hr(U,f,t)*U%t,_=Hr(T,p,t)*T%t,M=Hr(_,f,t)*U%t,D=Hr(M,r,t)*A%t,$=Hr(D,l,t)*R%t,P=Hr($,o,t)*h%t,Y=Hr(P,Jb,t);if(!Wb.eql(Wb.sqr(Y),e))throw new Error("Cannot find square root");return Y}const Wb=j1(EB,void 0,void 0,{sqrt:mM}),Tl=pM({a:yM,b:BigInt(7),Fp:Wb,n:pI,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=pI,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),o=-gM*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),s=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),c=r,l=BigInt("0x100000000000000000000000000000000"),f=yI(c*e,t),p=yI(-o*e,t);let h=tr(e-f*r-p*s,t),A=tr(-f*o-p*c,t);const v=h>l,x=A>l;if(v&&(h=t-h),x&&(A=t-A),h>l||A>l)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:v,k1:h,k2neg:x,k2:A}}}},gB),AM=Object.freeze(Object.defineProperty({__proto__:null,secp256k1:Tl},Symbol.toStringTag,{value:"Module"})),wB="2.37.3";let Fc={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:r})=>t?`${e??"https://viem.sh"}${t}${r?`#${r}`:""}`:void 0,version:`viem@${wB}`};class De extends Error{constructor(t,r={}){var f;const o=(()=>{var p;return r.cause instanceof De?r.cause.details:(p=r.cause)!=null&&p.message?r.cause.message:r.details})(),s=r.cause instanceof De&&r.cause.docsPath||r.docsPath,c=(f=Fc.getDocsUrl)==null?void 0:f.call(Fc,{...r,docsPath:s}),l=[t||"An error occurred.","",...r.metaMessages?[...r.metaMessages,""]:[],...c?[`Docs: ${c}`]:[],...o?[`Details: ${o}`]:[],...Fc.version?[`Version: ${Fc.version}`]:[]].join(`
39
+ `);super(l,r.cause?{cause:r.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=o,this.docsPath=s,this.metaMessages=r.metaMessages,this.name=r.name??this.name,this.shortMessage=t,this.version=wB}walk(t){return IB(this,t)}}function IB(e,t){return t!=null&&t(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause!==void 0?IB(e.cause,t):t?null:e}class SB extends De{constructor({max:t,min:r,signed:o,size:s,value:c}){super(`Number "${c}" is not in safe ${s?`${s*8}-bit ${o?"signed":"unsigned"} `:""}integer range ${t?`(${r} to ${t})`:`(above ${r})`}`,{name:"IntegerOutOfRangeError"})}}class bM extends De{constructor(t){super(`Bytes value "${t}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}class xM extends De{constructor({givenSize:t,maxSize:r}){super(`Size cannot exceed ${r} bytes. Given size: ${t} bytes.`,{name:"SizeOverflowError"})}}function co(e,{strict:t=!0}={}){return!e||typeof e!="string"?!1:t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")}function Xt(e){return co(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}function Xo(e,{dir:t="left"}={}){let r=typeof e=="string"?e.replace("0x",""):e,o=0;for(let s=0;s<r.length-1&&r[t==="left"?s:r.length-s-1].toString()==="0";s++)o++;return r=t==="left"?r.slice(o):r.slice(0,r.length-o),typeof e=="string"?(r.length===1&&t==="right"&&(r=`${r}0`),`0x${r.length%2===1?`0${r}`:r}`):r}class CB extends De{constructor({offset:t,position:r,size:o}){super(`Slice ${r==="start"?"starting":"ending"} at offset "${t}" is out-of-bounds (size: ${o}).`,{name:"SliceOffsetOutOfBoundsError"})}}class OB extends De{constructor({size:t,targetSize:r,type:o}){super(`${o.charAt(0).toUpperCase()}${o.slice(1).toLowerCase()} size (${t}) exceeds padding size (${r}).`,{name:"SizeExceedsPaddingSizeError"})}}class gI extends De{constructor({size:t,targetSize:r,type:o}){super(`${o.charAt(0).toUpperCase()}${o.slice(1).toLowerCase()} is expected to be ${r} ${o} long, but is ${t} ${o} long.`,{name:"InvalidBytesLengthError"})}}function hu(e,{dir:t,size:r=32}={}){return typeof e=="string"?Yo(e,{dir:t,size:r}):vM(e,{dir:t,size:r})}function Yo(e,{dir:t,size:r=32}={}){if(r===null)return e;const o=e.replace("0x","");if(o.length>r*2)throw new OB({size:Math.ceil(o.length/2),targetSize:r,type:"hex"});return`0x${o[t==="right"?"padEnd":"padStart"](r*2,"0")}`}function vM(e,{dir:t,size:r=32}={}){if(r===null)return e;if(e.length>r)throw new OB({size:e.length,targetSize:r,type:"bytes"});const o=new Uint8Array(r);for(let s=0;s<r;s++){const c=t==="right";o[c?s:r-s-1]=e[c?s:e.length-s-1]}return o}const EM=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Oi(e,t={}){return typeof e=="number"||typeof e=="bigint"?Le(e,t):typeof e=="string"?nu(e,t):typeof e=="boolean"?FB(e,t):Hn(e,t)}function FB(e,t={}){const r=`0x${Number(e)}`;return typeof t.size=="number"?(Ti(r,{size:t.size}),hu(r,{size:t.size})):r}function Hn(e,t={}){let r="";for(let s=0;s<e.length;s++)r+=EM[e[s]];const o=`0x${r}`;return typeof t.size=="number"?(Ti(o,{size:t.size}),hu(o,{dir:"right",size:t.size})):o}function Le(e,t={}){const{signed:r,size:o}=t,s=BigInt(e);let c;o?r?c=(1n<<BigInt(o)*8n-1n)-1n:c=2n**(BigInt(o)*8n)-1n:typeof e=="number"&&(c=BigInt(Number.MAX_SAFE_INTEGER));const l=typeof c=="bigint"&&r?-c-1n:0;if(c&&s>c||s<l){const p=typeof e=="bigint"?"n":"";throw new SB({max:c?`${c}${p}`:void 0,min:`${l}${p}`,signed:r,size:o,value:`${e}${p}`})}const f=`0x${(r&&s<0?(1n<<BigInt(o*8))+BigInt(s):s).toString(16)}`;return o?hu(f,{size:o}):f}const wM=new TextEncoder;function nu(e,t={}){const r=wM.encode(e);return Hn(r,t)}const IM=new TextEncoder;function N1(e,t={}){return typeof e=="number"||typeof e=="bigint"?CM(e,t):typeof e=="boolean"?SM(e,t):co(e)?si(e,t):RB(e,t)}function SM(e,t={}){const r=new Uint8Array(1);return r[0]=Number(e),typeof t.size=="number"?(Ti(r,{size:t.size}),hu(r,{size:t.size})):r}const Ji={zero:48,nine:57,A:65,F:70,a:97,f:102};function mI(e){if(e>=Ji.zero&&e<=Ji.nine)return e-Ji.zero;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 si(e,t={}){let r=e;t.size&&(Ti(r,{size:t.size}),r=hu(r,{dir:"right",size:t.size}));let o=r.slice(2);o.length%2&&(o=`0${o}`);const s=o.length/2,c=new Uint8Array(s);for(let l=0,f=0;l<s;l++){const p=mI(o.charCodeAt(f++)),h=mI(o.charCodeAt(f++));if(p===void 0||h===void 0)throw new De(`Invalid byte sequence ("${o[f-2]}${o[f-1]}" in "${o}").`);c[l]=p*16+h}return c}function CM(e,t){const r=Le(e,t);return si(r)}function RB(e,t={}){const r=IM.encode(e);return typeof t.size=="number"?(Ti(r,{size:t.size}),hu(r,{dir:"right",size:t.size})):r}function Ti(e,{size:t}){if(Xt(e)>t)throw new xM({givenSize:Xt(e),maxSize:t})}function Fi(e,t={}){const{signed:r}=t;t.size&&Ti(e,{size:t.size});const o=BigInt(e);if(!r)return o;const s=(e.length-2)/2,c=(1n<<BigInt(s)*8n-1n)-1n;return o<=c?o:o-BigInt(`0x${"f".padStart(s*2,"f")}`)-1n}function lo(e,t={}){return Number(Fi(e,t))}async function BB(e,{address:t,blockTag:r="latest",blockNumber:o}){const s=await e.request({method:"eth_getTransactionCount",params:[t,typeof o=="bigint"?Le(o):r]},{dedupe:!!o});return lo(s)}class Jd extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){const r=super.get(t);return super.has(t)&&r!==void 0&&(this.delete(t),super.set(t,r)),r}set(t,r){if(super.set(t,r),this.maxSize&&this.size>this.maxSize){const o=this.keys().next().value;o&&this.delete(o)}return this}}function OM({r:e,s:t,to:r="hex",v:o,yParity:s}){const c=(()=>{if(s===0||s===1)return s;if(o&&(o===27n||o===28n||o>=35n))return o%2n===0n?1:0;throw new Error("Invalid `v` or `yParity` value")})(),l=`0x${new Tl.Signature(Fi(e),Fi(t)).toCompactHex()}${c===0?"1b":"1c"}`;return r==="hex"?l:si(l)}function TB(){return Oi(Tl.utils.randomPrivateKey())}class Xn extends De{constructor({address:t}){super(`Address "${t}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}const FM=BigInt(0),Rc=BigInt(1),RM=BigInt(2),BM=BigInt(7),TM=BigInt(256),_M=BigInt(113),_B=[],MB=[],DB=[];for(let e=0,t=Rc,r=1,o=0;e<24;e++){[r,o]=[o,(2*r+3*o)%5],_B.push(2*(5*o+r)),MB.push((e+1)*(e+2)/2%64);let s=FM;for(let c=0;c<7;c++)t=(t<<Rc^(t>>BM)*_M)%TM,t&RM&&(s^=Rc<<(Rc<<BigInt(c))-Rc);DB.push(s)}const UB=X4(DB,!0),MM=UB[0],DM=UB[1],AI=(e,t,r)=>r>32?W4(e,t,r):Z4(e,t,r),bI=(e,t,r)=>r>32?eM(e,t,r):J4(e,t,r);function UM(e,t=24){const r=new Uint32Array(10);for(let o=24-t;o<24;o++){for(let l=0;l<10;l++)r[l]=e[l]^e[l+10]^e[l+20]^e[l+30]^e[l+40];for(let l=0;l<10;l+=2){const f=(l+8)%10,p=(l+2)%10,h=r[p],A=r[p+1],v=AI(h,A,1)^r[f],x=bI(h,A,1)^r[f+1];for(let S=0;S<50;S+=10)e[l+S]^=v,e[l+S+1]^=x}let s=e[2],c=e[3];for(let l=0;l<24;l++){const f=MB[l],p=AI(s,c,f),h=bI(s,c,f),A=_B[l];s=e[A],c=e[A+1],e[A]=p,e[A+1]=h}for(let l=0;l<50;l+=10){for(let f=0;f<10;f++)r[f]=e[l+f];for(let f=0;f<10;f++)e[l+f]^=~r[(f+2)%10]&r[(f+4)%10]}e[0]^=MM[o],e[1]^=DM[o]}tu(r)}class L1 extends M1{constructor(t,r,o,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=r,this.outputLen=o,this.enableXOF=s,this.rounds=c,Vc(o),!(0<t&&t<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=C4(this.state)}clone(){return this._cloneInto()}keccak(){oI(this.state32),UM(this.state32,this.rounds),oI(this.state32),this.posOut=0,this.pos=0}update(t){eu(this),t=Yd(t),La(t);const{blockLen:r,state:o}=this,s=t.length;for(let c=0;c<s;){const l=Math.min(r-this.pos,s-c);for(let f=0;f<l;f++)o[this.pos++]^=t[c++];this.pos===r&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:t,suffix:r,pos:o,blockLen:s}=this;t[o]^=r,(r&128)!==0&&o===s-1&&this.keccak(),t[s-1]^=128,this.keccak()}writeInto(t){eu(this,!1),La(t),this.finish();const r=this.state,{blockLen:o}=this;for(let s=0,c=t.length;s<c;){this.posOut>=o&&this.keccak();const l=Math.min(o-this.posOut,c-s);t.set(r.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 Vc(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(nB(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,tu(this.state)}_cloneInto(t){const{blockLen:r,suffix:o,outputLen:s,rounds:c,enableXOF:l}=this;return t||(t=new L1(r,o,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=o,t.outputLen=s,t.enableXOF=l,t.destroyed=this.destroyed,t}}const PM=(e,t,r)=>rB(()=>new L1(t,e,r)),jM=PM(1,136,256/8);function br(e,t){const r=t||"hex",o=jM(co(e,{strict:!1})?N1(e):e);return r==="bytes"?o:Oi(o)}const pg=new Jd(8192);function _l(e,t){if(pg.has(`${e}.${t}`))return pg.get(`${e}.${t}`);const r=e.substring(2).toLowerCase(),o=br(RB(r),"bytes"),s=r.split("");for(let l=0;l<40;l+=2)o[l>>1]>>4>=8&&s[l]&&(s[l]=s[l].toUpperCase()),(o[l>>1]&15)>=8&&s[l+1]&&(s[l+1]=s[l+1].toUpperCase());const c=`0x${s.join("")}`;return pg.set(`${e}.${t}`,c),c}function NM(e,t){if(!In(e,{strict:!1}))throw new Xn({address:e});return _l(e,t)}const LM=/^0x[a-fA-F0-9]{40}$/,yg=new Jd(8192);function In(e,t){const{strict:r=!0}=t??{},o=`${e}.${r}`;if(yg.has(o))return yg.get(o);const s=LM.test(e)?e.toLowerCase()===e?!0:r?_l(e)===e:!0:!1;return yg.set(o,s),s}function qM(e){if(typeof e=="string"){if(!In(e,{strict:!1}))throw new Xn({address:e});return{address:e,type:"json-rpc"}}if(!In(e.address,{strict:!1}))throw new Xn({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 PB(e){const t=br(`0x${e.substring(4)}`).substring(26);return _l(`0x${t}`)}let gg=!1;async function Ml({hash:e,privateKey:t,to:r="object"}){const{r:o,s,recovery:c}=Tl.sign(e.slice(2),t.slice(2),{lowS:!0,extraEntropy:co(gg,{strict:!1})?si(gg):gg}),l={r:Le(o,{size:32}),s:Le(s,{size:32}),v:c?28n:27n,yParity:c};return r==="bytes"||r==="hex"?OM({...l,to:r}):l}function Ri(e){return typeof e[0]=="string"?Zo(e):$M(e)}function $M(e){let t=0;for(const s of e)t+=s.length;const r=new Uint8Array(t);let o=0;for(const s of e)r.set(s,o),o+=s.length;return r}function Zo(e){return`0x${e.reduce((t,r)=>t+r.replace("0x",""),"")}`}class xI extends De{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class kM extends De{constructor({length:t,position:r}){super(`Position \`${r}\` is out of bounds (\`0 < position < ${t}\`).`,{name:"PositionOutOfBoundsError"})}}class HM extends De{constructor({count:t,limit:r}){super(`Recursive read limit of \`${r}\` exceeded (recursive read count: \`${t}\`).`,{name:"RecursiveReadLimitExceededError"})}}const zM={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 HM({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new kM({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new xI({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 xI({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 r=t??this.position;return this.assertPosition(r+e-1),this.bytes.subarray(r,r+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 r=this.inspectBytes(e);return this.position+=t??e,r},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 q1(e,{recursiveReadLimit:t=8192}={}){const r=Object.create(zM);return r.bytes=e,r.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=t,r}function qa(e,t="hex"){const r=jB(e),o=q1(new Uint8Array(r.length));return r.encode(o),t==="hex"?Hn(o.bytes):o.bytes}function jB(e){return Array.isArray(e)?GM(e.map(t=>jB(t))):QM(e)}function GM(e){const t=e.reduce((s,c)=>s+c.length,0),r=NB(t);return{length:t<=55?1+t:1+r+t,encode(s){t<=55?s.pushByte(192+t):(s.pushByte(247+r),r===1?s.pushUint8(t):r===2?s.pushUint16(t):r===3?s.pushUint24(t):s.pushUint32(t));for(const{encode:c}of e)c(s)}}}function QM(e){const t=typeof e=="string"?si(e):e,r=NB(t.length);return{length:t.length===1&&t[0]<128?1:t.length<=55?1+t.length:1+r+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+r),r===1?s.pushUint8(t.length):r===2?s.pushUint16(t.length):r===3?s.pushUint24(t.length):s.pushUint32(t.length),s.pushBytes(t))}}}function NB(e){if(e<2**8)return 1;if(e<2**16)return 2;if(e<2**24)return 3;if(e<2**32)return 4;throw new De("Length is too large.")}function LB(e){const{chainId:t,nonce:r,to:o}=e,s=e.contractAddress??e.address,c=br(Zo(["0x05",qa([t?Le(t):"0x",s,r?Le(r):"0x"])]));return o==="bytes"?si(c):c}async function KM(e){const{chainId:t,nonce:r,privateKey:o,to:s="object"}=e,c=e.contractAddress??e.address,l=await Ml({hash:LB({address:c,chainId:t,nonce:r}),privateKey:o,to:s});return s==="object"?{address:c,chainId:t,nonce:r,...l}:l}const VM=`Ethereum Signed Message:
40
+ `;function YM(e){const t=typeof e=="string"?nu(e):typeof e.raw=="string"?e.raw:Hn(e.raw),r=nu(`${VM}${Xt(t)}`);return Ri([r,t])}function XM(e,t){return br(YM(e),t)}async function ZM({message:e,privateKey:t}){return await Ml({hash:XM(e),privateKey:t,to:"hex"})}const JM={gwei:9,wei:18},WM={ether:-9,wei:9};function qB(e,t){let r=e.toString();const o=r.startsWith("-");o&&(r=r.slice(1)),r=r.padStart(t,"0");let[s,c]=[r.slice(0,r.length-t),r.slice(r.length-t)];return c=c.replace(/(0+)$/,""),`${o?"-":""}${s||"0"}${c?`.${c}`:""}`}function $B(e,t="wei"){return qB(e,JM[t])}function oi(e,t="wei"){return qB(e,WM[t])}function Wd(e){const t=Object.entries(e).map(([o,s])=>s===void 0||s===!1?null:[o,s]).filter(Boolean),r=t.reduce((o,[s])=>Math.max(o,s.length),0);return t.map(([o,s])=>` ${`${o}:`.padEnd(r+1)} ${s}`).join(`
41
+ `)}class eD extends De{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join(`
42
+ `),{name:"FeeConflictError"})}}class tD extends De{constructor({v:t}){super(`Invalid \`v\` value "${t}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class nD extends De{constructor({transaction:t}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",Wd(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 rD extends De{constructor({storageKey:t}){super(`Size for storage key "${t}" is invalid. Expected 32 bytes. Got ${Math.floor((t.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}class iD extends De{constructor(t,{account:r,docsPath:o,chain:s,data:c,gas:l,gasPrice:f,maxFeePerGas:p,maxPriorityFeePerGas:h,nonce:A,to:v,value:x}){var R;const S=Wd({chain:s&&`${s==null?void 0:s.name} (id: ${s==null?void 0:s.id})`,from:r==null?void 0:r.address,to:v,value:typeof x<"u"&&`${$B(x)} ${((R=s==null?void 0:s.nativeCurrency)==null?void 0:R.symbol)||"ETH"}`,data:c,gas:l,gasPrice:typeof f<"u"&&`${oi(f)} gwei`,maxFeePerGas:typeof p<"u"&&`${oi(p)} gwei`,maxPriorityFeePerGas:typeof h<"u"&&`${oi(h)} gwei`,nonce:A});super(t.shortMessage,{cause:t,docsPath:o,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Request Arguments:",S].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}function oD(e){if(!e||e.length===0)return[];const t=[];for(const r of e){const{chainId:o,nonce:s,...c}=r,l=r.address;t.push([o?Oi(o):"0x",l,s?Oi(s):"0x",...Dl({},c)])}return t}function $1(e){const{kzg:t}=e,r=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),o=typeof e.blobs[0]=="string"?e.blobs.map(c=>si(c)):e.blobs,s=[];for(const c of o)s.push(Uint8Array.from(t.blobToKzgCommitment(c)));return r==="bytes"?s:s.map(c=>Hn(c))}function k1(e){const{kzg:t}=e,r=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),o=typeof e.blobs[0]=="string"?e.blobs.map(l=>si(l)):e.blobs,s=typeof e.commitments[0]=="string"?e.commitments.map(l=>si(l)):e.commitments,c=[];for(let l=0;l<o.length;l++){const f=o[l],p=s[l];c.push(Uint8Array.from(t.computeBlobKzgProof(f,p)))}return r==="bytes"?c:c.map(l=>Hn(l))}const e1=gB;function aD(e,t){return e1(co(e,{strict:!1})?N1(e):e)}function sD(e){const{commitment:t,version:r=1}=e,o=e.to??(typeof t=="string"?"hex":"bytes"),s=aD(t);return s.set([r],0),o==="bytes"?s:Hn(s)}function kB(e){const{commitments:t,version:r}=e,o=e.to??(typeof t[0]=="string"?"hex":"bytes"),s=[];for(const c of t)s.push(sD({commitment:c,to:o,version:r}));return s}const vI=6,HB=32,H1=4096,zB=HB*H1,EI=zB*vI-1-1*H1*vI,GB=1;class uD extends De{constructor({maxSize:t,size:r}){super("Blob size is too large.",{metaMessages:[`Max: ${t} bytes`,`Given: ${r} bytes`],name:"BlobSizeTooLargeError"})}}class QB extends De{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class cD extends De{constructor({hash:t,size:r}){super(`Versioned hash "${t}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${r}`],name:"InvalidVersionedHashSizeError"})}}class lD extends De{constructor({hash:t,version:r}){super(`Versioned hash "${t}" version is invalid.`,{metaMessages:[`Expected: ${GB}`,`Received: ${r}`],name:"InvalidVersionedHashVersionError"})}}function fD(e){const t=e.to??(typeof e.data=="string"?"hex":"bytes"),r=typeof e.data=="string"?si(e.data):e.data,o=Xt(r);if(!o)throw new QB;if(o>EI)throw new uD({maxSize:EI,size:o});const s=[];let c=!0,l=0;for(;c;){const f=q1(new Uint8Array(zB));let p=0;for(;p<H1;){const h=r.slice(l,l+(HB-1));if(f.pushByte(0),f.pushBytes(h),h.length<31){f.pushByte(128),c=!1;break}p++,l+=31}s.push(f)}return t==="bytes"?s.map(f=>f.bytes):s.map(f=>Hn(f.bytes))}function KB(e){const{data:t,kzg:r,to:o}=e,s=e.blobs??fD({data:t,to:o}),c=e.commitments??$1({blobs:s,kzg:r,to:o}),l=e.proofs??k1({blobs:s,commitments:c,kzg:r,to:o}),f=[];for(let p=0;p<s.length;p++)f.push({blob:s[p],commitment:c[p],proof:l[p]});return f}const eh=2n**256n-1n;class dD extends De{constructor({chain:t,currentChainId:r}){super(`The current chain of the wallet (id: ${r}) does not match the target chain for the transaction (id: ${t.id} – ${t.name}).`,{metaMessages:[`Current Chain ID: ${r}`,`Expected Chain ID: ${t.id} – ${t.name}`],name:"ChainMismatchError"})}}class hD extends De{constructor(){super(["No chain was provided to the request.","Please provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."].join(`
43
+ `),{name:"ChainNotFoundError"})}}class th extends De{constructor({chainId:t}){super(typeof t=="number"?`Chain ID "${t}" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}class Qs extends De{constructor({cause:t,message:r}={}){var s;const o=(s=r==null?void 0:r.replace("execution reverted: ",""))==null?void 0:s.replace("execution reverted","");super(`Execution reverted ${o?`with reason: ${o}`:"for an unknown reason"}.`,{cause:t,name:"ExecutionRevertedError"})}}Object.defineProperty(Qs,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(Qs,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class $a extends De{constructor({cause:t,maxFeePerGas:r}={}){super(`The fee cap (\`maxFeePerGas\`${r?` = ${oi(r)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:t,name:"FeeCapTooHighError"})}}Object.defineProperty($a,"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 t1 extends De{constructor({cause:t,maxFeePerGas:r}={}){super(`The fee cap (\`maxFeePerGas\`${r?` = ${oi(r)}`:""} gwei) cannot be lower than the block base fee.`,{cause:t,name:"FeeCapTooLowError"})}}Object.defineProperty(t1,"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 n1 extends De{constructor({cause:t,nonce:r}={}){super(`Nonce provided for the transaction ${r?`(${r}) `:""}is higher than the next one expected.`,{cause:t,name:"NonceTooHighError"})}}Object.defineProperty(n1,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class r1 extends De{constructor({cause:t,nonce:r}={}){super([`Nonce provided for the transaction ${r?`(${r}) `:""}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(r1,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class i1 extends De{constructor({cause:t,nonce:r}={}){super(`Nonce provided for the transaction ${r?`(${r}) `:""}exceeds the maximum allowed nonce.`,{cause:t,name:"NonceMaxValueError"})}}Object.defineProperty(i1,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class o1 extends De{constructor({cause:t}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join(`
45
+ `),{cause:t,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}}Object.defineProperty(o1,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class a1 extends De{constructor({cause:t,gas:r}={}){super(`The amount of gas ${r?`(${r}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:t,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(a1,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class s1 extends De{constructor({cause:t,gas:r}={}){super(`The amount of gas ${r?`(${r}) `:""}provided for the transaction is too low.`,{cause:t,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(s1,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class u1 extends De{constructor({cause:t}){super("The transaction type is not supported for this chain.",{cause:t,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(u1,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class Zc extends De{constructor({cause:t,maxPriorityFeePerGas:r,maxFeePerGas:o}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${r?` = ${oi(r)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${o?` = ${oi(o)} gwei`:""}).`].join(`
46
+ `),{cause:t,name:"TipAboveFeeCapError"})}}Object.defineProperty(Zc,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class z1 extends De{constructor({cause:t}){super(`An error occurred while executing: ${t==null?void 0:t.shortMessage}`,{cause:t,name:"UnknownNodeError"})}}function Jc(e,t,r,{strict:o}={}){return co(e,{strict:!1})?c1(e,t,r,{strict:o}):XB(e,t,r,{strict:o})}function VB(e,t){if(typeof t=="number"&&t>0&&t>Xt(e)-1)throw new CB({offset:t,position:"start",size:Xt(e)})}function YB(e,t,r){if(typeof t=="number"&&typeof r=="number"&&Xt(e)!==r-t)throw new CB({offset:r,position:"end",size:Xt(e)})}function XB(e,t,r,{strict:o}={}){VB(e,t);const s=e.slice(t,r);return o&&YB(s,t,r),s}function c1(e,t,r,{strict:o}={}){VB(e,t);const s=`0x${e.replace("0x","").slice((t??0)*2,(r??e.length)*2)}`;return o&&YB(s,t,r),s}function pD(e){const{authorizationList:t}=e;if(t)for(const r of t){const{chainId:o}=r,s=r.address;if(!In(s))throw new Xn({address:s});if(o<0)throw new th({chainId:o})}G1(e)}function yD(e){const{blobVersionedHashes:t}=e;if(t){if(t.length===0)throw new QB;for(const r of t){const o=Xt(r),s=lo(Jc(r,0,1));if(o!==32)throw new cD({hash:r,size:o});if(s!==GB)throw new lD({hash:r,version:s})}}G1(e)}function G1(e){const{chainId:t,maxPriorityFeePerGas:r,maxFeePerGas:o,to:s}=e;if(t<=0)throw new th({chainId:t});if(s&&!In(s))throw new Xn({address:s});if(o&&o>eh)throw new $a({maxFeePerGas:o});if(r&&o&&r>o)throw new Zc({maxFeePerGas:o,maxPriorityFeePerGas:r})}function gD(e){const{chainId:t,maxPriorityFeePerGas:r,gasPrice:o,maxFeePerGas:s,to:c}=e;if(t<=0)throw new th({chainId:t});if(c&&!In(c))throw new Xn({address:c});if(r||s)throw new De("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(o&&o>eh)throw new $a({maxFeePerGas:o})}function mD(e){const{chainId:t,maxPriorityFeePerGas:r,gasPrice:o,maxFeePerGas:s,to:c}=e;if(c&&!In(c))throw new Xn({address:c});if(typeof t<"u"&&t<=0)throw new th({chainId:t});if(r||s)throw new De("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(o&&o>eh)throw new $a({maxFeePerGas:o})}function ZB(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 nD({transaction:e})}function nh(e){if(!e||e.length===0)return[];const t=[];for(let r=0;r<e.length;r++){const{address:o,storageKeys:s}=e[r];for(let c=0;c<s.length;c++)if(s[c].length-2!==64)throw new rD({storageKey:s[c]});if(!In(o,{strict:!1}))throw new Xn({address:o});t.push([o,s])}return t}function AD(e,t){const r=ZB(e);return r==="eip1559"?vD(e,t):r==="eip2930"?ED(e,t):r==="eip4844"?xD(e,t):r==="eip7702"?bD(e,t):wD(e,t)}function bD(e,t){const{authorizationList:r,chainId:o,gas:s,nonce:c,to:l,value:f,maxFeePerGas:p,maxPriorityFeePerGas:h,accessList:A,data:v}=e;pD(e);const x=nh(A),S=oD(r);return Zo(["0x04",qa([Le(o),c?Le(c):"0x",h?Le(h):"0x",p?Le(p):"0x",s?Le(s):"0x",l??"0x",f?Le(f):"0x",v??"0x",x,S,...Dl(e,t)])])}function xD(e,t){const{chainId:r,gas:o,nonce:s,to:c,value:l,maxFeePerBlobGas:f,maxFeePerGas:p,maxPriorityFeePerGas:h,accessList:A,data:v}=e;yD(e);let x=e.blobVersionedHashes,S=e.sidecars;if(e.blobs&&(typeof x>"u"||typeof S>"u")){const D=typeof e.blobs[0]=="string"?e.blobs:e.blobs.map(Y=>Hn(Y)),$=e.kzg,P=$1({blobs:D,kzg:$});if(typeof x>"u"&&(x=kB({commitments:P})),typeof S>"u"){const Y=k1({blobs:D,commitments:P,kzg:$});S=KB({blobs:D,commitments:P,proofs:Y})}}const R=nh(A),U=[Le(r),s?Le(s):"0x",h?Le(h):"0x",p?Le(p):"0x",o?Le(o):"0x",c??"0x",l?Le(l):"0x",v??"0x",R,f?Le(f):"0x",x??[],...Dl(e,t)],T=[],_=[],M=[];if(S)for(let D=0;D<S.length;D++){const{blob:$,commitment:P,proof:Y}=S[D];T.push($),_.push(P),M.push(Y)}return Zo(["0x03",qa(S?[U,T,_,M]:U)])}function vD(e,t){const{chainId:r,gas:o,nonce:s,to:c,value:l,maxFeePerGas:f,maxPriorityFeePerGas:p,accessList:h,data:A}=e;G1(e);const v=nh(h),x=[Le(r),s?Le(s):"0x",p?Le(p):"0x",f?Le(f):"0x",o?Le(o):"0x",c??"0x",l?Le(l):"0x",A??"0x",v,...Dl(e,t)];return Zo(["0x02",qa(x)])}function ED(e,t){const{chainId:r,gas:o,data:s,nonce:c,to:l,value:f,accessList:p,gasPrice:h}=e;gD(e);const A=nh(p),v=[Le(r),c?Le(c):"0x",h?Le(h):"0x",o?Le(o):"0x",l??"0x",f?Le(f):"0x",s??"0x",A,...Dl(e,t)];return Zo(["0x01",qa(v)])}function wD(e,t){const{chainId:r=0,gas:o,data:s,nonce:c,to:l,value:f,gasPrice:p}=e;mD(e);let h=[c?Le(c):"0x",p?Le(p):"0x",o?Le(o):"0x",l??"0x",f?Le(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(r>0)return BigInt(r*2)+BigInt(35n+t.v-27n);const S=27n+(t.v===27n?0n:1n);if(t.v!==S)throw new tD({v:t.v});return S})(),v=Xo(t.r),x=Xo(t.s);h=[...h,Le(A),v==="0x00"?"0x":v,x==="0x00"?"0x":x]}else r>0&&(h=[...h,Le(r),"0x","0x"]);return qa(h)}function Dl(e,t){const r=t??e,{v:o,yParity:s}=r;if(typeof r.r>"u")return[];if(typeof r.s>"u")return[];if(typeof o>"u"&&typeof s>"u")return[];const c=Xo(r.r),l=Xo(r.s);return[typeof s=="number"?s?Le(1):"0x":o===0n?"0x":o===1n?Le(1):o===27n?"0x":Le(1),c==="0x00"?"0x":c,l==="0x00"?"0x":l]}async function ID(e){const{privateKey:t,transaction:r,serializer:o=AD}=e,s=r.type==="eip4844"?{...r,sidecars:!1}:r,c=await Ml({hash:br(o(s)),privateKey:t});return o(r,c)}function ru(e,{includeName:t=!1}={}){if(e.type!=="function"&&e.type!=="event"&&e.type!=="error")throw new PD(e.type);return`${e.name}(${Q1(e.inputs,{includeName:t})})`}function Q1(e,{includeName:t=!1}={}){return e?e.map(r=>SD(r,{includeName:t})).join(t?", ":","):""}function SD(e,{includeName:t}){return e.type.startsWith("tuple")?`(${Q1(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")}class CD extends De{constructor({docsPath:t}){super(["A constructor was not found on the ABI.","Make sure you are using the correct ABI and that the constructor exists on it."].join(`
47
+ `),{docsPath:t,name:"AbiConstructorNotFoundError"})}}class wI extends De{constructor({docsPath:t}){super(["Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.","Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."].join(`
48
+ `),{docsPath:t,name:"AbiConstructorParamsNotFoundError"})}}class OD extends De{constructor({data:t,params:r,size:o}){super([`Data size of ${o} bytes is too small for given parameters.`].join(`
49
+ `),{metaMessages:[`Params: (${Q1(r,{includeName:!0})})`,`Data: ${t} (${o} 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=r,this.size=o}}class K1 extends De{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError"})}}class FD extends De{constructor({expectedLength:t,givenLength:r,type:o}){super([`ABI encoding array length mismatch for type ${o}.`,`Expected length: ${t}`,`Given length: ${r}`].join(`
50
+ `),{name:"AbiEncodingArrayLengthMismatchError"})}}class RD extends De{constructor({expectedSize:t,value:r}){super(`Size of bytes "${r}" (bytes${Xt(r)}) does not match expected size (bytes${t}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class BD extends De{constructor({expectedLength:t,givenLength:r}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${t}`,`Given length (values): ${r}`].join(`
51
+ `),{name:"AbiEncodingLengthMismatchError"})}}class JB extends De{constructor(t,{docsPath:r}){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:r,name:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=t}}class II extends De{constructor(t,{docsPath:r}={}){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:r,name:"AbiFunctionNotFoundError"})}}class TD extends De{constructor(t,r){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${t.type}\` in \`${ru(t.abiItem)}\`, and`,`\`${r.type}\` in \`${ru(r.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}class _D extends De{constructor({expectedSize:t,givenSize:r}){super(`Expected bytes${t}, got bytes${r}.`,{name:"BytesSizeMismatchError"})}}class MD extends De{constructor(t,{docsPath:r}){super([`Type "${t}" is not a valid encoding type.`,"Please provide a valid ABI type."].join(`
54
+ `),{docsPath:r,name:"InvalidAbiEncodingType"})}}class DD extends De{constructor(t,{docsPath:r}){super([`Type "${t}" is not a valid decoding type.`,"Please provide a valid ABI type."].join(`
55
+ `),{docsPath:r,name:"InvalidAbiDecodingType"})}}class UD extends De{constructor(t){super([`Value "${t}" is not a valid array.`].join(`
56
+ `),{name:"InvalidArrayError"})}}class PD extends De{constructor(t){super([`"${t}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join(`
57
+ `),{name:"InvalidDefinitionTypeError"})}}const jD=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,WB=/^(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 rh(e,t){if(e.length!==t.length)throw new BD({expectedLength:e.length,givenLength:t.length});const r=ND({params:e,values:t}),o=Y1(r);return o.length===0?"0x":o}function ND({params:e,values:t}){const r=[];for(let o=0;o<e.length;o++)r.push(V1({param:e[o],value:t[o]}));return r}function V1({param:e,value:t}){const r=X1(e.type);if(r){const[o,s]=r;return qD(t,{length:o,param:{...e,type:s}})}if(e.type==="tuple")return GD(t,{param:e});if(e.type==="address")return LD(t);if(e.type==="bool")return kD(t);if(e.type.startsWith("uint")||e.type.startsWith("int")){const o=e.type.startsWith("int"),[,,s="256"]=WB.exec(e.type)??[];return HD(t,{signed:o,size:Number(s)})}if(e.type.startsWith("bytes"))return $D(t,{param:e});if(e.type==="string")return zD(t);throw new MD(e.type,{docsPath:"/docs/contract/encodeAbiParameters"})}function Y1(e){let t=0;for(let c=0;c<e.length;c++){const{dynamic:l,encoded:f}=e[c];l?t+=32:t+=Xt(f)}const r=[],o=[];let s=0;for(let c=0;c<e.length;c++){const{dynamic:l,encoded:f}=e[c];l?(r.push(Le(t+s,{size:32})),o.push(f),s+=Xt(f)):r.push(f)}return Ri([...r,...o])}function LD(e){if(!In(e))throw new Xn({address:e});return{dynamic:!1,encoded:Yo(e.toLowerCase())}}function qD(e,{length:t,param:r}){const o=t===null;if(!Array.isArray(e))throw new UD(e);if(!o&&e.length!==t)throw new FD({expectedLength:t,givenLength:e.length,type:`${r.type}[${t}]`});let s=!1;const c=[];for(let l=0;l<e.length;l++){const f=V1({param:r,value:e[l]});f.dynamic&&(s=!0),c.push(f)}if(o||s){const l=Y1(c);if(o){const f=Le(c.length,{size:32});return{dynamic:!0,encoded:c.length>0?Ri([f,l]):f}}if(s)return{dynamic:!0,encoded:l}}return{dynamic:!1,encoded:Ri(c.map(({encoded:l})=>l))}}function $D(e,{param:t}){const[,r]=t.type.split("bytes"),o=Xt(e);if(!r){let s=e;return o%32!==0&&(s=Yo(s,{dir:"right",size:Math.ceil((e.length-2)/2/32)*32})),{dynamic:!0,encoded:Ri([Yo(Le(o,{size:32})),s])}}if(o!==Number.parseInt(r,10))throw new RD({expectedSize:Number.parseInt(r,10),value:e});return{dynamic:!1,encoded:Yo(e,{dir:"right"})}}function kD(e){if(typeof e!="boolean")throw new De(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:Yo(FB(e))}}function HD(e,{signed:t,size:r=256}){if(typeof r=="number"){const o=2n**(BigInt(r)-(t?1n:0n))-1n,s=t?-o-1n:0n;if(e>o||e<s)throw new SB({max:o.toString(),min:s.toString(),signed:t,size:r/8,value:e.toString()})}return{dynamic:!1,encoded:Le(e,{size:32,signed:t})}}function zD(e){const t=nu(e),r=Math.ceil(Xt(t)/32),o=[];for(let s=0;s<r;s++)o.push(Yo(Jc(t,s*32,(s+1)*32),{dir:"right"}));return{dynamic:!0,encoded:Ri([Yo(Le(Xt(t),{size:32})),...o])}}function GD(e,{param:t}){let r=!1;const o=[];for(let s=0;s<t.components.length;s++){const c=t.components[s],l=Array.isArray(e)?s:c.name,f=V1({param:c,value:e[l]});o.push(f),f.dynamic&&(r=!0)}return{dynamic:r,encoded:r?Y1(o):Ri(o.map(({encoded:s})=>s))}}function X1(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}const ai=(e,t,r)=>JSON.stringify(e,(o,s)=>typeof s=="bigint"?s.toString():s,r);class QD extends De{constructor({domain:t}){super(`Invalid domain "${ai(t)}".`,{metaMessages:["Must be a valid EIP-712 domain."]})}}class KD extends De{constructor({primaryType:t,types:r}){super(`Invalid primary type \`${t}\` must be one of \`${JSON.stringify(Object.keys(r))}\`.`,{docsPath:"/api/glossary/Errors#typeddatainvalidprimarytypeerror",metaMessages:["Check that the primary type is a key in `types`."]})}}class VD extends De{constructor({type:t}){super(`Struct type "${t}" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}}function YD(e){const{domain:t,message:r,primaryType:o,types:s}=e,c=(p,h)=>{const A={...h};for(const v of p){const{name:x,type:S}=v;S==="address"&&(A[x]=A[x].toLowerCase())}return A},l=s.EIP712Domain?t?c(s.EIP712Domain,t):{}:{},f=(()=>{if(o!=="EIP712Domain")return c(s[o],r)})();return ai({domain:l,message:f,primaryType:o,types:s})}function eT(e){const{domain:t,message:r,primaryType:o,types:s}=e,c=(l,f)=>{for(const p of l){const{name:h,type:A}=p,v=f[h],x=A.match(WB);if(x&&(typeof v=="number"||typeof v=="bigint")){const[U,T,_]=x;Le(v,{signed:T==="int",size:Number.parseInt(_,10)/8})}if(A==="address"&&typeof v=="string"&&!In(v))throw new Xn({address:v});const S=A.match(jD);if(S){const[U,T]=S;if(T&&Xt(v)!==Number.parseInt(T,10))throw new _D({expectedSize:Number.parseInt(T,10),givenSize:Xt(v)})}const R=s[A];R&&(XD(A),c(R,v))}};if(s.EIP712Domain&&t){if(typeof t!="object")throw new QD({domain:t});c(s.EIP712Domain,t)}if(o!=="EIP712Domain")if(s[o])c(s[o],r);else throw new KD({primaryType:o,types:s})}function tT({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 XD(e){if(e==="address"||e==="bool"||e==="string"||e.startsWith("bytes")||e.startsWith("uint")||e.startsWith("int"))throw new VD({type:e})}function ZD(e){const{domain:t={},message:r,primaryType:o}=e,s={EIP712Domain:tT({domain:t}),...e.types};eT({domain:t,message:r,primaryType:o,types:s});const c=["0x1901"];return t&&c.push(JD({domain:t,types:s})),o!=="EIP712Domain"&&c.push(nT({data:r,primaryType:o,types:s})),br(Ri(c))}function JD({domain:e,types:t}){return nT({data:e,primaryType:"EIP712Domain",types:t})}function nT({data:e,primaryType:t,types:r}){const o=rT({data:e,primaryType:t,types:r});return br(o)}function rT({data:e,primaryType:t,types:r}){const o=[{type:"bytes32"}],s=[WD({primaryType:t,types:r})];for(const c of r[t]){const[l,f]=oT({types:r,name:c.name,type:c.type,value:e[c.name]});o.push(l),s.push(f)}return rh(o,s)}function WD({primaryType:e,types:t}){const r=Oi(eU({primaryType:e,types:t}));return br(r)}function eU({primaryType:e,types:t}){let r="";const o=iT({primaryType:e,types:t});o.delete(e);const s=[e,...Array.from(o).sort()];for(const c of s)r+=`${c}(${t[c].map(({name:l,type:f})=>`${f} ${l}`).join(",")})`;return r}function iT({primaryType:e,types:t},r=new Set){const o=e.match(/^\w*/u),s=o==null?void 0:o[0];if(r.has(s)||t[s]===void 0)return r;r.add(s);for(const c of t[s])iT({primaryType:c.type,types:t},r);return r}function oT({types:e,name:t,type:r,value:o}){if(e[r]!==void 0)return[{type:"bytes32"},br(rT({data:o,primaryType:r,types:e}))];if(r==="bytes")return o=`0x${(o.length%2?"0":"")+o.slice(2)}`,[{type:"bytes32"},br(o)];if(r==="string")return[{type:"bytes32"},br(Oi(o))];if(r.lastIndexOf("]")===r.length-1){const s=r.slice(0,r.lastIndexOf("[")),c=o.map(l=>oT({name:t,type:s,types:e,value:l}));return[{type:"bytes32"},br(rh(c.map(([l])=>l),c.map(([,l])=>l)))]}return[{type:r},o]}async function tU(e){const{privateKey:t,...r}=e;return await Ml({hash:ZD(r),privateKey:t,to:"hex"})}function Si(e,t={}){const{nonceManager:r}=t,o=Oi(Tl.getPublicKey(e.slice(2),!1)),s=PB(o);return{...qM({address:s,nonceManager:r,async sign({hash:l}){return Ml({hash:l,privateKey:e,to:"hex"})},async signAuthorization(l){return KM({...l,privateKey:e})},async signMessage({message:l}){return ZM({message:l,privateKey:e})},async signTransaction(l,{serializer:f}={}){return ID({privateKey:e,transaction:l,serializer:f})},async signTypedData(l){return tU({...l,privateKey:e})}}),publicKey:o,source:"privateKey"}}function or(e){return typeof e=="string"?{address:e,type:"json-rpc"}:e}function nU(e,t){const r=e.exec(t);return r==null?void 0:r.groups}const SI=/^tuple(?<array>(\[(\d*)\])*)$/;function l1(e){let t=e.type;if(SI.test(e.type)&&"components"in e){t="(";const r=e.components.length;for(let s=0;s<r;s++){const c=e.components[s];t+=l1(c),s<r-1&&(t+=", ")}const o=nU(SI,e.type);return t+=`)${(o==null?void 0:o.array)??""}`,l1({...e,type:t})}return"indexed"in e&&e.indexed&&(t=`${t} indexed`),e.name?`${t} ${e.name}`:t}function Bc(e){let t="";const r=e.length;for(let o=0;o<r;o++){const s=e[o];t+=l1(s),o!==r-1&&(t+=", ")}return t}function rU(e){var t;return e.type==="function"?`function ${e.name}(${Bc(e.inputs)})${e.stateMutability&&e.stateMutability!=="nonpayable"?` ${e.stateMutability}`:""}${(t=e.outputs)!=null&&t.length?` returns (${Bc(e.outputs)})`:""}`:e.type==="event"?`event ${e.name}(${Bc(e.inputs)})`:e.type==="error"?`error ${e.name}(${Bc(e.inputs)})`:e.type==="constructor"?`constructor(${Bc(e.inputs)})${e.stateMutability==="payable"?" payable":""}`:e.type==="fallback"?`fallback() external${e.stateMutability==="payable"?" payable":""}`:"receive() external payable"}function Mn(e,t,r){const o=e[t.name];if(typeof o=="function")return o;const s=e[r];return typeof s=="function"?s:c=>t(e,c)}const iU=e=>br(N1(e));function oU(e){return iU(e)}function aU(e){let t=!0,r="",o=0,s="",c=!1;for(let l=0;l<e.length;l++){const f=e[l];if(["(",")",","].includes(f)&&(t=!0),f==="("&&o++,f===")"&&o--,!!t){if(o===0){if(f===" "&&["event","function",""].includes(s))s="";else if(s+=f,f===")"){c=!0;break}continue}if(f===" "){e[l-1]!==","&&r!==","&&r!==",("&&(r="",t=!1);continue}s+=f,r+=f}}if(!c)throw new De("Unable to normalize signature.");return s}const sU=e=>{const t=typeof e=="string"?e:rU(e);return aU(t)};function aT(e){return oU(sU(e))}const uU=aT,Z1=e=>Jc(aT(e),0,4);function sT(e){const{abi:t,args:r=[],name:o}=e,s=co(o,{strict:!1}),c=t.filter(f=>s?f.type==="function"?Z1(f)===o:f.type==="event"?uU(f)===o:!1:"name"in f&&f.name===o);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(!r||r.length===0){if(!f.inputs||f.inputs.length===0)return f;continue}if(!f.inputs||f.inputs.length===0||f.inputs.length!==r.length)continue;if(r.every((h,A)=>{const v="inputs"in f&&f.inputs[A];return v?f1(h,v):!1})){if(l&&"inputs"in l&&l.inputs){const h=uT(f.inputs,l.inputs,r);if(h)throw new TD({abiItem:f,type:h[0]},{abiItem:l,type:h[1]})}l=f}}return l||c[0]}function f1(e,t){const r=typeof e,o=t.type;switch(o){case"address":return In(e,{strict:!1});case"bool":return r==="boolean";case"function":return r==="string";case"string":return r==="string";default:return o==="tuple"&&"components"in t?Object.values(t.components).every((s,c)=>f1(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(o)?r==="number"||r==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(o)?r==="string"||e instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(o)?Array.isArray(e)&&e.every(s=>f1(s,{...t,type:o.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function uT(e,t,r){for(const o in e){const s=e[o],c=t[o];if(s.type==="tuple"&&c.type==="tuple"&&"components"in s&&"components"in c)return uT(s.components,c.components,r[o]);const l=[s.type,c.type];if(l.includes("address")&&l.includes("bytes20")?!0:l.includes("address")&&l.includes("string")?In(r[o],{strict:!1}):l.includes("address")&&l.includes("bytes")?In(r[o],{strict:!1}):!1)return l}}const CI="/docs/contract/encodeFunctionData";function cU(e){const{abi:t,args:r,functionName:o}=e;let s=t[0];if(o){const c=sT({abi:t,args:r,name:o});if(!c)throw new II(o,{docsPath:CI});s=c}if(s.type!=="function")throw new II(void 0,{docsPath:CI});return{abi:[s],functionName:Z1(ru(s))}}function cT(e){const{args:t}=e,{abi:r,functionName:o}=(()=>{var f;return e.abi.length===1&&((f=e.functionName)!=null&&f.startsWith("0x"))?e:cU(e)})(),s=r[0],c=o,l="inputs"in s&&s.inputs?rh(s.inputs,t??[]):void 0;return Zo([c,l??"0x"])}const lU={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."},fU={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},dU={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};function hU(e,t={}){typeof t.size<"u"&&Ti(e,{size:t.size});const r=Hn(e,t);return Fi(r,t)}function pU(e,t={}){let r=e;if(typeof t.size<"u"&&(Ti(r,{size:t.size}),r=Xo(r)),r.length>1||r[0]>1)throw new bM(r);return!!r[0]}function uo(e,t={}){typeof t.size<"u"&&Ti(e,{size:t.size});const r=Hn(e,t);return lo(r,t)}function yU(e,t={}){let r=e;return typeof t.size<"u"&&(Ti(r,{size:t.size}),r=Xo(r,{dir:"right"})),new TextDecoder().decode(r)}function gU(e,t){const r=typeof t=="string"?si(t):t,o=q1(r);if(Xt(r)===0&&e.length>0)throw new K1;if(Xt(t)&&Xt(t)<32)throw new OD({data:typeof t=="string"?t:Hn(t),params:e,size:Xt(t)});let s=0;const c=[];for(let l=0;l<e.length;++l){const f=e[l];o.setPosition(s);const[p,h]=Xs(o,f,{staticPosition:0});s+=h,c.push(p)}return c}function Xs(e,t,{staticPosition:r}){const o=X1(t.type);if(o){const[s,c]=o;return AU(e,{...t,type:c},{length:s,staticPosition:r})}if(t.type==="tuple")return EU(e,t,{staticPosition:r});if(t.type==="address")return mU(e);if(t.type==="bool")return bU(e);if(t.type.startsWith("bytes"))return xU(e,t,{staticPosition:r});if(t.type.startsWith("uint")||t.type.startsWith("int"))return vU(e,t);if(t.type==="string")return wU(e,{staticPosition:r});throw new DD(t.type,{docsPath:"/docs/contract/decodeAbiParameters"})}const OI=32,d1=32;function mU(e){const t=e.readBytes(32);return[_l(Hn(XB(t,-20))),32]}function AU(e,t,{length:r,staticPosition:o}){if(!r){const l=uo(e.readBytes(d1)),f=o+l,p=f+OI;e.setPosition(f);const h=uo(e.readBytes(OI)),A=Wc(t);let v=0;const x=[];for(let S=0;S<h;++S){e.setPosition(p+(A?S*32:v));const[R,U]=Xs(e,t,{staticPosition:p});v+=U,x.push(R)}return e.setPosition(o+32),[x,32]}if(Wc(t)){const l=uo(e.readBytes(d1)),f=o+l,p=[];for(let h=0;h<r;++h){e.setPosition(f+h*32);const[A]=Xs(e,t,{staticPosition:f});p.push(A)}return e.setPosition(o+32),[p,32]}let s=0;const c=[];for(let l=0;l<r;++l){const[f,p]=Xs(e,t,{staticPosition:o+s});s+=p,c.push(f)}return[c,s]}function bU(e){return[pU(e.readBytes(32),{size:32}),32]}function xU(e,t,{staticPosition:r}){const[o,s]=t.type.split("bytes");if(!s){const l=uo(e.readBytes(32));e.setPosition(r+l);const f=uo(e.readBytes(32));if(f===0)return e.setPosition(r+32),["0x",32];const p=e.readBytes(f);return e.setPosition(r+32),[Hn(p),32]}return[Hn(e.readBytes(Number.parseInt(s,10),32)),32]}function vU(e,t){const r=t.type.startsWith("int"),o=Number.parseInt(t.type.split("int")[1]||"256",10),s=e.readBytes(32);return[o>48?hU(s,{signed:r}):uo(s,{signed:r}),32]}function EU(e,t,{staticPosition:r}){const o=t.components.length===0||t.components.some(({name:l})=>!l),s=o?[]:{};let c=0;if(Wc(t)){const l=uo(e.readBytes(d1)),f=r+l;for(let p=0;p<t.components.length;++p){const h=t.components[p];e.setPosition(f+c);const[A,v]=Xs(e,h,{staticPosition:f});c+=v,s[o?p:h==null?void 0:h.name]=A}return e.setPosition(r+32),[s,32]}for(let l=0;l<t.components.length;++l){const f=t.components[l],[p,h]=Xs(e,f,{staticPosition:r});s[o?l:f==null?void 0:f.name]=p,c+=h}return[s,c]}function wU(e,{staticPosition:t}){const r=uo(e.readBytes(32)),o=t+r;e.setPosition(o);const s=uo(e.readBytes(32));if(s===0)return e.setPosition(t+32),["",32];const c=e.readBytes(s,32),l=yU(Xo(c));return e.setPosition(t+32),[l,32]}function Wc(e){var o;const{type:t}=e;if(t==="string"||t==="bytes"||t.endsWith("[]"))return!0;if(t==="tuple")return(o=e.components)==null?void 0:o.some(Wc);const r=X1(e.type);return!!(r&&Wc({...e,type:r[1]}))}function IU(e){const{abi:t,data:r}=e,o=Jc(r,0,4);if(o==="0x")throw new K1;const c=[...t||[],fU,dU].find(l=>l.type==="error"&&o===Z1(ru(l)));if(!c)throw new JB(o,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:c,args:"inputs"in c&&c.inputs&&c.inputs.length>0?gU(c.inputs,Jc(r,4)):void 0,errorName:c.name}}function lT({abiItem:e,args:t,includeFunctionName:r=!0,includeName:o=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${r?e.name:""}(${e.inputs.map((s,c)=>`${o&&s.name?`${s.name}: `:""}${typeof t[c]=="object"?ai(t[c]):t[c]}`).join(", ")})`}class SU extends De{constructor({address:t}){super(`State for account "${t}" is set multiple times.`,{name:"AccountStateConflictError"})}}class CU extends De{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}const OU=e=>e,J1=e=>e;class FU extends De{constructor(t,{abi:r,args:o,contractAddress:s,docsPath:c,functionName:l,sender:f}){const p=sT({abi:r,args:o,name:l}),h=p?lT({abiItem:p,args:o,includeFunctionName:!1,includeName:!1}):void 0,A=p?ru(p,{includeName:!0}):void 0,v=Wd({address:s&&OU(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=r,this.args=o,this.cause=t,this.contractAddress=s,this.functionName=l,this.sender=f}}class RU extends De{constructor({abi:t,data:r,functionName:o,message:s}){let c,l,f,p;if(r&&r!=="0x")try{l=IU({abi:t,data:r});const{abiItem:A,errorName:v,args:x}=l;if(v==="Error")p=x[0];else if(v==="Panic"){const[S]=x;p=lU[S]}else{const S=A?ru(A,{includeName:!0}):void 0,R=A&&x?lT({abiItem:A,args:x,includeFunctionName:!1,includeName:!1}):void 0;f=[S?`Error: ${S}`:"",R&&R!=="()"?` ${[...Array((v==null?void 0:v.length)??0).keys()].map(()=>" ").join("")}${R}`:""]}}catch(A){c=A}else s&&(p=s);let h;c instanceof JB&&(h=c.signature,f=[`Unable to decode signature "${h}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${h}.`]),super(p&&p!=="execution reverted"||h?[`The contract function "${o}" reverted with the following ${h?"signature":"reason"}:`,p||h].join(`
58
+ `):`The contract function "${o}" 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=r,this.reason=p,this.signature=h}}class BU extends De{constructor({functionName:t}){super(`The contract function "${t}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${t}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."],name:"ContractFunctionZeroDataError"})}}class TU extends De{constructor({data:t,message:r}){super(r||"",{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 Hc extends De{constructor({body:t,cause:r,details:o,headers:s,status:c,url:l}){super("HTTP request failed.",{cause:r,details:o,metaMessages:[c&&`Status: ${c}`,`URL: ${J1(l)}`,t&&`Request body: ${ai(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 W1 extends De{constructor({body:t,error:r,url:o}){super("RPC Request failed.",{cause:r,details:r.message,metaMessages:[`URL: ${J1(o)}`,`Request body: ${ai(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=r.code,this.data=r.data}}class FI extends De{constructor({body:t,url:r}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${J1(r)}`,`Request body: ${ai(t)}`],name:"TimeoutError"})}}const _U=-1;class cr extends De{constructor(t,{code:r,docsPath:o,metaMessages:s,name:c,shortMessage:l}){super(l,{cause:t,docsPath:o,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 W1?t.code:r??_U}}class Fr extends cr{constructor(t,r){super(t,r),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=r.data}}class el extends cr{constructor(t){super(t,{code:el.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(el,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class tl extends cr{constructor(t){super(t,{code:tl.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(tl,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class nl extends cr{constructor(t,{method:r}={}){super(t,{code:nl.code,name:"MethodNotFoundRpcError",shortMessage:`The method${r?` "${r}"`:""} does not exist / is not available.`})}}Object.defineProperty(nl,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class rl extends cr{constructor(t){super(t,{code:rl.code,name:"InvalidParamsRpcError",shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join(`
59
+ `)})}}Object.defineProperty(rl,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class ka extends cr{constructor(t){super(t,{code:ka.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(ka,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class il extends cr{constructor(t){super(t,{code:il.code,name:"InvalidInputRpcError",shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join(`
60
+ `)})}}Object.defineProperty(il,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class ol extends cr{constructor(t){super(t,{code:ol.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(ol,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class al extends cr{constructor(t){super(t,{code:al.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(al,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class sl extends cr{constructor(t){super(t,{code:sl.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(sl,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class Pa extends cr{constructor(t,{method:r}={}){super(t,{code:Pa.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${r?` "${r}"`:""} is not supported.`})}}Object.defineProperty(Pa,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class iu extends cr{constructor(t){super(t,{code:iu.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty(iu,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class ul extends cr{constructor(t){super(t,{code:ul.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(ul,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class Zs extends Fr{constructor(t){super(t,{code:Zs.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(Zs,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class cl extends Fr{constructor(t){super(t,{code:cl.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(cl,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class ll extends Fr{constructor(t,{method:r}={}){super(t,{code:ll.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${r?` " ${r}"`:""}.`})}}Object.defineProperty(ll,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class fl extends Fr{constructor(t){super(t,{code:fl.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(fl,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class dl extends Fr{constructor(t){super(t,{code:dl.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(dl,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class hl extends Fr{constructor(t){super(t,{code:hl.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(hl,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class ou extends Fr{constructor(t){super(t,{code:ou.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}Object.defineProperty(ou,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class pl extends Fr{constructor(t){super(t,{code:pl.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}Object.defineProperty(pl,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class yl extends Fr{constructor(t){super(t,{code:yl.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}Object.defineProperty(yl,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class gl extends Fr{constructor(t){super(t,{code:gl.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}Object.defineProperty(gl,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class ml extends Fr{constructor(t){super(t,{code:ml.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}Object.defineProperty(ml,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class Al extends Fr{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 au extends Fr{constructor(t){super(t,{code:au.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}Object.defineProperty(au,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class MU extends cr{constructor(t){super(t,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}const DU=3;function UU(e,{abi:t,address:r,args:o,docsPath:s,functionName:c,sender:l}){const f=e instanceof TU?e:e instanceof De?e.walk(R=>"data"in R)||e.walk():{},{code:p,data:h,details:A,message:v,shortMessage:x}=f,S=e instanceof K1?new BU({functionName:c}):[DU,ka.code].includes(p)&&(h||A||v||x)?new RU({abi:t,data:typeof h=="object"?h.data:h,functionName:c,message:f instanceof W1?A:x??v}):e;return new FU(S,{abi:t,args:o,contractAddress:r,docsPath:s,functionName:c,sender:l})}const PU="modulepreload",jU=function(e){return"/"+e},RI={},NU=function(t,r,o){let s=Promise.resolve();if(r&&r.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]"),p=(f==null?void 0:f.nonce)||(f==null?void 0:f.getAttribute("nonce"));s=l(r.map(h=>{if(h=jU(h),h in RI)return;RI[h]=!0;const A=h.endsWith(".css"),v=A?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${v}`))return;const x=document.createElement("link");if(x.rel=A?"stylesheet":PU,A||(x.as="script"),x.crossOrigin="",x.href=h,p&&x.setAttribute("nonce",p),document.head.appendChild(x),A)return new Promise((S,R)=>{x.addEventListener("load",S),x.addEventListener("error",()=>R(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 LU({hash:e,signature:t}){const r=co(e)?e:Oi(e),{secp256k1:o}=await NU(async()=>{const{secp256k1:l}=await Promise.resolve().then(()=>AM);return{secp256k1:l}},void 0);return`0x${(()=>{if(typeof t=="object"&&"r"in t&&"s"in t){const{r:h,s:A,v,yParity:x}=t,S=Number(x??v),R=BI(S);return new o.Signature(Fi(h),Fi(A)).addRecoveryBit(R)}const l=co(t)?t:Oi(t);if(Xt(l)!==65)throw new Error("invalid signature length");const f=lo(`0x${l.slice(130)}`),p=BI(f);return o.Signature.fromCompact(l.substring(2,130)).addRecoveryBit(p)})().recoverPublicKey(r.substring(2)).toHex(!1)}`}function BI(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 qU({hash:e,signature:t}){return PB(await LU({hash:e,signature:t}))}async function fT(e){const{authorization:t,signature:r}=e;return qU({hash:LB(t),signature:r??t})}class $U extends De{constructor(t,{account:r,docsPath:o,chain:s,data:c,gas:l,gasPrice:f,maxFeePerGas:p,maxPriorityFeePerGas:h,nonce:A,to:v,value:x}){var R;const S=Wd({from:r==null?void 0:r.address,to:v,value:typeof x<"u"&&`${$B(x)} ${((R=s==null?void 0:s.nativeCurrency)==null?void 0:R.symbol)||"ETH"}`,data:c,gas:l,gasPrice:typeof f<"u"&&`${oi(f)} gwei`,maxFeePerGas:typeof p<"u"&&`${oi(p)} gwei`,maxPriorityFeePerGas:typeof h<"u"&&`${oi(h)} gwei`,nonce:A});super(t.shortMessage,{cause:t,docsPath:o,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Estimate Gas Arguments:",S].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}function dT(e,t){const r=(e.details||"").toLowerCase(),o=e instanceof De?e.walk(s=>(s==null?void 0:s.code)===Qs.code):e;return o instanceof De?new Qs({cause:e,message:o.details}):Qs.nodeMessage.test(r)?new Qs({cause:e,message:e.details}):$a.nodeMessage.test(r)?new $a({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas}):t1.nodeMessage.test(r)?new t1({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas}):n1.nodeMessage.test(r)?new n1({cause:e,nonce:t==null?void 0:t.nonce}):r1.nodeMessage.test(r)?new r1({cause:e,nonce:t==null?void 0:t.nonce}):i1.nodeMessage.test(r)?new i1({cause:e,nonce:t==null?void 0:t.nonce}):o1.nodeMessage.test(r)?new o1({cause:e}):a1.nodeMessage.test(r)?new a1({cause:e,gas:t==null?void 0:t.gas}):s1.nodeMessage.test(r)?new s1({cause:e,gas:t==null?void 0:t.gas}):u1.nodeMessage.test(r)?new u1({cause:e}):Zc.nodeMessage.test(r)?new Zc({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas,maxPriorityFeePerGas:t==null?void 0:t.maxPriorityFeePerGas}):new z1({cause:e})}function kU(e,{docsPath:t,...r}){const o=(()=>{const s=dT(e,r);return s instanceof z1?e:s})();return new $U(o,{docsPath:t,...r})}function hT(e,{format:t}){if(!t)return{};const r={};function o(c){const l=Object.keys(c);for(const f of l)f in e&&(r[f]=e[f]),c[f]&&typeof c[f]=="object"&&!Array.isArray(c[f])&&o(c[f])}const s=t(e||{});return o(s),r}const HU={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function ex(e){const t={};return typeof e.authorizationList<"u"&&(t.authorizationList=zU(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(r=>Hn(r)):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=Le(e.gas)),typeof e.gasPrice<"u"&&(t.gasPrice=Le(e.gasPrice)),typeof e.maxFeePerBlobGas<"u"&&(t.maxFeePerBlobGas=Le(e.maxFeePerBlobGas)),typeof e.maxFeePerGas<"u"&&(t.maxFeePerGas=Le(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<"u"&&(t.maxPriorityFeePerGas=Le(e.maxPriorityFeePerGas)),typeof e.nonce<"u"&&(t.nonce=Le(e.nonce)),typeof e.to<"u"&&(t.to=e.to),typeof e.type<"u"&&(t.type=HU[e.type]),typeof e.value<"u"&&(t.value=Le(e.value)),t}function zU(e){return e.map(t=>({address:t.address,r:t.r?Le(BigInt(t.r)):t.r,s:t.s?Le(BigInt(t.s)):t.s,chainId:Le(t.chainId),nonce:Le(t.nonce),...typeof t.yParity<"u"?{yParity:Le(t.yParity)}:{},...typeof t.v<"u"&&typeof t.yParity>"u"?{v:Le(t.v)}:{}}))}function TI(e){if(!(!e||e.length===0))return e.reduce((t,{slot:r,value:o})=>{if(r.length!==66)throw new gI({size:r.length,targetSize:66,type:"hex"});if(o.length!==66)throw new gI({size:o.length,targetSize:66,type:"hex"});return t[r]=o,t},{})}function GU(e){const{balance:t,nonce:r,state:o,stateDiff:s,code:c}=e,l={};if(c!==void 0&&(l.code=c),t!==void 0&&(l.balance=Le(t)),r!==void 0&&(l.nonce=Le(r)),o!==void 0&&(l.state=TI(o)),s!==void 0){if(l.state)throw new CU;l.stateDiff=TI(s)}return l}function QU(e){if(!e)return;const t={};for(const{address:r,...o}of e){if(!In(r,{strict:!1}))throw new Xn({address:r});if(t[r])throw new SU({address:r});t[r]=GU(o)}return t}function ih(e){const{account:t,gasPrice:r,maxFeePerGas:o,maxPriorityFeePerGas:s,to:c}=e,l=t?or(t):void 0;if(l&&!In(l.address))throw new Xn({address:l.address});if(c&&!In(c))throw new Xn({address:c});if(typeof r<"u"&&(typeof o<"u"||typeof s<"u"))throw new eD;if(o&&o>eh)throw new $a({maxFeePerGas:o});if(s&&o&&s>o)throw new Zc({maxFeePerGas:o,maxPriorityFeePerGas:s})}class KU extends De{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}class tx extends De{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}class VU extends De{constructor({maxPriorityFeePerGas:t}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${oi(t)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}class YU extends De{constructor({blockHash:t,blockNumber:r}){let o="Block";t&&(o=`Block at hash "${t}"`),r&&(o=`Block at number "${r}"`),super(`${o} could not be found.`,{name:"BlockNotFoundError"})}}const XU={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function ZU(e){const t={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?lo(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?lo(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?XU[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=JU(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 JU(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 WU(e){const t=(e.transactions??[]).map(r=>typeof r=="string"?r:ZU(r));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 jd(e,{blockHash:t,blockNumber:r,blockTag:o=e.experimental_blockTag??"latest",includeTransactions:s}={}){var h,A,v;const c=s??!1,l=r!==void 0?Le(r):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||o,c]},{dedupe:!!l}),!f)throw new YU({blockHash:t,blockNumber:r});return(((v=(A=(h=e.chain)==null?void 0:h.formatters)==null?void 0:A.block)==null?void 0:v.format)||WU)(f)}async function pT(e){const t=await e.request({method:"eth_gasPrice"});return BigInt(t)}async function eP(e,t){var c,l;const{block:r,chain:o=e.chain,request:s}=t||{};try{const f=((c=o==null?void 0:o.fees)==null?void 0:c.maxPriorityFeePerGas)??((l=o==null?void 0:o.fees)==null?void 0:l.defaultPriorityFee);if(typeof f=="function"){const h=r||await Mn(e,jd,"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 p=await e.request({method:"eth_maxPriorityFeePerGas"});return Fi(p)}catch{const[f,p]=await Promise.all([r?Promise.resolve(r):Mn(e,jd,"getBlock")({}),Mn(e,pT,"getGasPrice")({})]);if(typeof f.baseFeePerGas!="bigint")throw new tx;const h=p-f.baseFeePerGas;return h<0n?0n:h}}async function _I(e,t){var x,S;const{block:r,chain:o=e.chain,request:s,type:c="eip1559"}=t||{},l=await(async()=>{var R,U;return typeof((R=o==null?void 0:o.fees)==null?void 0:R.baseFeeMultiplier)=="function"?o.fees.baseFeeMultiplier({block:r,client:e,request:s}):((U=o==null?void 0:o.fees)==null?void 0:U.baseFeeMultiplier)??1.2})();if(l<1)throw new KU;const p=10**(((x=l.toString().split(".")[1])==null?void 0:x.length)??0),h=R=>R*BigInt(Math.ceil(l*p))/BigInt(p),A=r||await Mn(e,jd,"getBlock")({});if(typeof((S=o==null?void 0:o.fees)==null?void 0:S.estimateFeesPerGas)=="function"){const R=await o.fees.estimateFeesPerGas({block:r,client:e,multiply:h,request:s,type:c});if(R!==null)return R}if(c==="eip1559"){if(typeof A.baseFeePerGas!="bigint")throw new tx;const R=typeof(s==null?void 0:s.maxPriorityFeePerGas)=="bigint"?s.maxPriorityFeePerGas:await eP(e,{block:A,chain:o,request:s}),U=h(A.baseFeePerGas);return{maxFeePerGas:(s==null?void 0:s.maxFeePerGas)??U+R,maxPriorityFeePerGas:R}}return{gasPrice:(s==null?void 0:s.gasPrice)??h(await Mn(e,pT,"getGasPrice")({}))}}async function Ul(e){const t=await e.request({method:"eth_chainId"},{dedupe:!0});return lo(t)}const yT=["blobVersionedHashes","chainId","fees","gas","nonce","type"],MI=new Map;async function nx(e,t){const{account:r=e.account,blobs:o,chain:s,gas:c,kzg:l,nonce:f,nonceManager:p,parameters:h=yT,type:A}=t,v=r&&or(r),x={...t,...v?{from:v==null?void 0:v.address}:{}};let S;async function R(){return S||(S=await Mn(e,jd,"getBlock")({blockTag:"latest"}),S)}let U;async function T(){return U||(s?s.id:typeof t.chainId<"u"?t.chainId:(U=await Mn(e,Ul,"getChainId")({}),U))}if(h.includes("nonce")&&typeof f>"u"&&v)if(p){const _=await T();x.nonce=await p.consume({address:v.address,chainId:_,client:e})}else x.nonce=await Mn(e,BB,"getTransactionCount")({address:v.address,blockTag:"pending"});if((h.includes("blobVersionedHashes")||h.includes("sidecars"))&&o&&l){const _=$1({blobs:o,kzg:l});if(h.includes("blobVersionedHashes")){const M=kB({commitments:_,to:"hex"});x.blobVersionedHashes=M}if(h.includes("sidecars")){const M=k1({blobs:o,commitments:_,kzg:l}),D=KB({blobs:o,commitments:_,proofs:M,to:"hex"});x.sidecars=D}}if(h.includes("chainId")&&(x.chainId=await T()),(h.includes("fees")||h.includes("type"))&&typeof A>"u")try{x.type=ZB(x)}catch{let _=MI.get(e.uid);if(typeof _>"u"){const M=await R();_=typeof(M==null?void 0:M.baseFeePerGas)=="bigint",MI.set(e.uid,_)}x.type=_?"eip1559":"legacy"}if(h.includes("fees"))if(x.type!=="legacy"&&x.type!=="eip2930"){if(typeof x.maxFeePerGas>"u"||typeof x.maxPriorityFeePerGas>"u"){const _=await R(),{maxFeePerGas:M,maxPriorityFeePerGas:D}=await _I(e,{block:_,chain:s,request:x});if(typeof t.maxPriorityFeePerGas>"u"&&t.maxFeePerGas&&t.maxFeePerGas<D)throw new VU({maxPriorityFeePerGas:D});x.maxPriorityFeePerGas=D,x.maxFeePerGas=M}}else{if(typeof t.maxFeePerGas<"u"||typeof t.maxPriorityFeePerGas<"u")throw new tx;if(typeof t.gasPrice>"u"){const _=await R(),{gasPrice:M}=await _I(e,{block:_,chain:s,request:x,type:"legacy"});x.gasPrice=M}}return h.includes("gas")&&typeof c>"u"&&(x.gas=await Mn(e,nP,"estimateGas")({...x,account:v&&{address:v.address,type:"json-rpc"}})),ih(x),delete x.parameters,x}async function tP(e,{address:t,blockNumber:r,blockTag:o=e.experimental_blockTag??"latest"}){const s=typeof r=="bigint"?Le(r):void 0,c=await e.request({method:"eth_getBalance",params:[t,s||o]});return BigInt(c)}async function nP(e,t){var c,l,f;const{account:r=e.account}=t,o=r?or(r):void 0;try{let Ae=function(re){const{block:he,request:W,rpcStateOverride:C}=re;return e.request({method:"eth_estimateGas",params:C?[W,he??e.experimental_blockTag??"latest",C]:he?[W,he]:[W]})};var s=Ae;const{accessList:p,authorizationList:h,blobs:A,blobVersionedHashes:v,blockNumber:x,blockTag:S,data:R,gas:U,gasPrice:T,maxFeePerBlobGas:_,maxFeePerGas:M,maxPriorityFeePerGas:D,nonce:$,value:P,stateOverride:Y,...ne}=await nx(e,{...t,parameters:(o==null?void 0:o.type)==="local"?void 0:["blobVersionedHashes"]}),B=(typeof x=="bigint"?Le(x):void 0)||S,L=QU(Y),z=await(async()=>{if(ne.to)return ne.to;if(h&&h.length>0)return await fT({authorization:h[0]}).catch(()=>{throw new De("`to` is required. Could not infer from `authorizationList`")})})();ih(t);const H=(f=(l=(c=e.chain)==null?void 0:c.formatters)==null?void 0:l.transactionRequest)==null?void 0:f.format,de=(H||ex)({...hT(ne,{format:H}),from:o==null?void 0:o.address,accessList:p,authorizationList:h,blobs:A,blobVersionedHashes:v,data:R,gas:U,gasPrice:T,maxFeePerBlobGas:_,maxFeePerGas:M,maxPriorityFeePerGas:D,nonce:$,to:z,value:P});let O=BigInt(await Ae({block:B,request:de,rpcStateOverride:L}));if(h){const re=await tP(e,{address:de.from}),he=await Promise.all(h.map(async W=>{const{address:C}=W,X=await Ae({block:B,request:{authorizationList:void 0,data:R,from:o==null?void 0:o.address,to:C,value:Le(re)},rpcStateOverride:L}).catch(()=>100000n);return 2n*BigInt(X)}));O+=he.reduce((W,C)=>W+C,0n)}return O}catch(p){throw kU(p,{...t,account:o,chain:e.chain})}}function rP(e,t){if(!In(e,{strict:!1}))throw new Xn({address:e});if(!In(t,{strict:!1}))throw new Xn({address:t});return e.toLowerCase()===t.toLowerCase()}const mg="/docs/contract/encodeDeployData";function iP(e){const{abi:t,args:r,bytecode:o}=e;if(!r||r.length===0)return o;const s=t.find(l=>"type"in l&&l.type==="constructor");if(!s)throw new CD({docsPath:mg});if(!("inputs"in s))throw new wI({docsPath:mg});if(!s.inputs||s.inputs.length===0)throw new wI({docsPath:mg});const c=rh(s.inputs,r);return Zo([o,c])}function gT(){let e=()=>{},t=()=>{};return{promise:new Promise((o,s)=>{e=o,t=s}),resolve:e,reject:t}}const Ag=new Map;function oP({fn:e,id:t,shouldSplitBatch:r,wait:o=0,sort:s}){const c=async()=>{const A=p();l();const v=A.map(({args:x})=>x);v.length!==0&&e(v).then(x=>{s&&Array.isArray(x)&&x.sort(s);for(let S=0;S<A.length;S++){const{resolve:R}=A[S];R==null||R([x[S],x])}}).catch(x=>{for(let S=0;S<A.length;S++){const{reject:R}=A[S];R==null||R(x)}})},l=()=>Ag.delete(t),f=()=>p().map(({args:A})=>A),p=()=>Ag.get(t)||[],h=A=>Ag.set(t,[...p(),A]);return{flush:l,async schedule(A){const{promise:v,resolve:x,reject:S}=gT();return(r==null?void 0:r([...f(),A]))&&c(),p().length>0?(h({args:A,resolve:x,reject:S}),v):(h({args:A,resolve:x,reject:S}),setTimeout(c,o),v)}}}const bg=new Map,DI=new Map;let aP=0;function sP(e,t,r){const o=++aP,s=()=>bg.get(e)||[],c=()=>{const A=s();bg.set(e,A.filter(v=>v.id!==o))},l=()=>{const A=s();if(!A.some(x=>x.id===o))return;const v=DI.get(e);if(A.length===1&&v){const x=v();x instanceof Promise&&x.catch(()=>{})}c()},f=s();if(bg.set(e,[...f,{id:o,fns:t}]),f&&f.length>0)return l;const p={};for(const A in t)p[A]=((...v)=>{var S,R;const x=s();if(x.length!==0)for(const U of x)(R=(S=U.fns)[A])==null||R.call(S,...v)});const h=r(p);return typeof h=="function"&&DI.set(e,h),l}async function h1(e){return new Promise(t=>setTimeout(t,e))}function uP(e,{emitOnBegin:t,initialWaitTime:r,interval:o}){let s=!0;const c=()=>s=!1;return(async()=>{let f;f=await e({unpoll:c});const p=await(r==null?void 0:r(f))??o;await h1(p);const h=async()=>{s&&(await e({unpoll:c}),await h1(o),h())};h()})(),c}class Qa extends De{constructor({docsPath:t}={}){super(["Could not find an Account to execute with this Action.","Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client."].join(`
61
+ `),{docsPath:t,docsSlug:"account",name:"AccountNotFoundError"})}}class Fd extends De{constructor({docsPath:t,metaMessages:r,type:o}){super(`Account type "${o}" is not supported.`,{docsPath:t,metaMessages:r,name:"AccountTypeNotSupportedError"})}}function mT({chain:e,currentChainId:t}){if(!e)throw new hD;if(t!==e.id)throw new dD({chain:e,currentChainId:t})}function AT(e,{docsPath:t,...r}){const o=(()=>{const s=dT(e,r);return s instanceof z1?e:s})();return new iD(o,{docsPath:t,...r})}async function bT(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]},{retryCount:0})}const xg=new Jd(128);async function oh(e,t){var M,D,$,P;const{account:r=e.account,chain:o=e.chain,accessList:s,authorizationList:c,blobs:l,data:f,gas:p,gasPrice:h,maxFeePerBlobGas:A,maxFeePerGas:v,maxPriorityFeePerGas:x,nonce:S,type:R,value:U,...T}=t;if(typeof r>"u")throw new Qa({docsPath:"/docs/actions/wallet/sendTransaction"});const _=r?or(r):null;try{ih(t);const Y=await(async()=>{if(t.to)return t.to;if(t.to!==null&&c&&c.length>0)return await fT({authorization:c[0]}).catch(()=>{throw new De("`to` is required. Could not infer from `authorizationList`.")})})();if((_==null?void 0:_.type)==="json-rpc"||_===null){let ne;o!==null&&(ne=await Mn(e,Ul,"getChainId")({}),mT({currentChainId:ne,chain:o}));const te=($=(D=(M=e.chain)==null?void 0:M.formatters)==null?void 0:D.transactionRequest)==null?void 0:$.format,L=(te||ex)({...hT(T,{format:te}),accessList:s,authorizationList:c,blobs:l,chainId:ne,data:f,from:_==null?void 0:_.address,gas:p,gasPrice:h,maxFeePerBlobGas:A,maxFeePerGas:v,maxPriorityFeePerGas:x,nonce:S,to:Y,type:R,value:U}),z=xg.get(e.uid),H=z?"wallet_sendTransaction":"eth_sendTransaction";try{return await e.request({method:H,params:[L]},{retryCount:0})}catch(ie){if(z===!1)throw ie;const de=ie;if(de.name==="InvalidInputRpcError"||de.name==="InvalidParamsRpcError"||de.name==="MethodNotFoundRpcError"||de.name==="MethodNotSupportedRpcError")return await e.request({method:"wallet_sendTransaction",params:[L]},{retryCount:0}).then(Ae=>(xg.set(e.uid,!0),Ae)).catch(Ae=>{const O=Ae;throw O.name==="MethodNotFoundRpcError"||O.name==="MethodNotSupportedRpcError"?(xg.set(e.uid,!1),de):O});throw de}}if((_==null?void 0:_.type)==="local"){const ne=await Mn(e,nx,"prepareTransactionRequest")({account:_,accessList:s,authorizationList:c,blobs:l,chain:o,data:f,gas:p,gasPrice:h,maxFeePerBlobGas:A,maxFeePerGas:v,maxPriorityFeePerGas:x,nonce:S,nonceManager:_.nonceManager,parameters:[...yT,"sidecars"],type:R,value:U,...T,to:Y}),te=(P=o==null?void 0:o.serializers)==null?void 0:P.transaction,B=await _.signTransaction(ne,{serializer:te});return await Mn(e,bT,"sendRawTransaction")({serializedTransaction:B})}throw(_==null?void 0:_.type)==="smart"?new Fd({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new Fd({docsPath:"/docs/actions/wallet/sendTransaction",type:_==null?void 0:_.type})}catch(Y){throw Y instanceof Fd?Y:AT(Y,{...t,account:_,chain:t.chain||void 0})}}async function cP(e,t){const{abi:r,account:o=e.account,address:s,args:c,dataSuffix:l,functionName:f,...p}=t;if(typeof o>"u")throw new Qa({docsPath:"/docs/contract/writeContract"});const h=o?or(o):null,A=cT({abi:r,args:c,functionName:f});try{return await Mn(e,oh,"sendTransaction")({data:`${A}${l?l.replace("0x",""):""}`,to:s,account:h,...p})}catch(v){throw UU(v,{abi:r,address:s,args:c,docsPath:"/docs/contract/writeContract",functionName:f,sender:h==null?void 0:h.address})}}class lP extends De{constructor(t){super(`Call bundle failed with status: ${t.statusCode}`,{name:"BundleFailedError"}),Object.defineProperty(this,"result",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.result=t}}function xT(e,{delay:t=100,retryCount:r=2,shouldRetry:o=()=>!0}={}){return new Promise((s,c)=>{const l=async({count:f=0}={})=>{const p=async({error:h})=>{const A=typeof t=="function"?t({count:f,error:h}):t;A&&await h1(A),l({count:f+1})};try{const h=await e();s(h)}catch(h){if(f<r&&await o({count:f,error:h}))return p({error:h});c(h)}};l()})}const fP={"0x0":"reverted","0x1":"success"},vT="0x5792579257925792579257925792579257925792579257925792579257925792",ET=Le(0,{size:32});async function dP(e,t){const{account:r=e.account,capabilities:o,chain:s=e.chain,experimental_fallback:c,experimental_fallbackDelay:l=32,forceAtomic:f=!1,id:p,version:h="2.0.0"}=t,A=r?or(r):null,v=t.calls.map(x=>{const S=x,R=S.abi?cT({abi:S.abi,functionName:S.functionName,args:S.args}):S.data;return{data:S.dataSuffix&&R?Ri([R,S.dataSuffix]):R,to:S.to,value:S.value?Le(S.value):void 0}});try{const x=await e.request({method:"wallet_sendCalls",params:[{atomicRequired:f,calls:v,capabilities:o,chainId:Le(s.id),from:A==null?void 0:A.address,id:p,version:h}]},{retryCount:0});return typeof x=="string"?{id:x}:x}catch(x){const S=x;if(c&&(S.name==="MethodNotFoundRpcError"||S.name==="MethodNotSupportedRpcError"||S.name==="UnknownRpcError"||S.details.toLowerCase().includes("does not exist / is not available")||S.details.toLowerCase().includes("missing or invalid. request()")||S.details.toLowerCase().includes("did not match any variant of untagged enum")||S.details.toLowerCase().includes("account upgraded to unsupported contract")||S.details.toLowerCase().includes("eip-7702 not supported")||S.details.toLowerCase().includes("unsupported wc_ method")||S.details.toLowerCase().includes("feature toggled misconfigured"))){if(o&&Object.values(o).some(M=>!M.optional)){const M="non-optional `capabilities` are not supported on fallback to `eth_sendTransaction`.";throw new ou(new De(M,{details:M}))}if(f&&v.length>1){const _="`forceAtomic` is not supported on fallback to `eth_sendTransaction`.";throw new au(new De(_,{details:_}))}const R=[];for(const _ of v){const M=oh(e,{account:A,chain:s,data:_.data,to:_.to,value:_.value?Fi(_.value):void 0});R.push(M),l>0&&await new Promise(D=>setTimeout(D,l))}const U=await Promise.allSettled(R);if(U.every(_=>_.status==="rejected"))throw U[0].reason;const T=U.map(_=>_.status==="fulfilled"?_.value:ET);return{id:Ri([...T,Le(s.id,{size:32}),vT])}}throw AT(x,{...t,account:A,chain:t.chain})}}async function wT(e,t){async function r(A){if(A.endsWith(vT.slice(2))){const x=Xo(c1(A,-64,-32)),S=c1(A,0,-64).slice(2).match(/.{1,64}/g),R=await Promise.all(S.map(T=>ET.slice(2)!==T?e.request({method:"eth_getTransactionReceipt",params:[`0x${T}`]},{dedupe:!0}):void 0)),U=R.some(T=>T===null)?100:R.every(T=>(T==null?void 0:T.status)==="0x1")?200:R.every(T=>(T==null?void 0:T.status)==="0x0")?500:600;return{atomic:!1,chainId:lo(x),receipts:R.filter(Boolean),status:U,version:"2.0.0"}}return e.request({method:"wallet_getCallsStatus",params:[A]})}const{atomic:o=!1,chainId:s,receipts:c,version:l="2.0.0",...f}=await r(t.id),[p,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:o,chainId:s?lo(s):void 0,receipts:(c==null?void 0:c.map(A=>({...A,blockNumber:Fi(A.blockNumber),gasUsed:Fi(A.gasUsed),status:fP[A.status]})))??[],statusCode:h,status:p,version:l}}async function hP(e,t){const{id:r,pollingInterval:o=e.pollingInterval,status:s=({statusCode:U})=>U===200||U>=300,retryCount:c=4,retryDelay:l=({count:U})=>~~(1<<U)*200,timeout:f=6e4,throwOnFailure:p=!1}=t,h=ai(["waitForCallsStatus",e.uid,r]),{promise:A,resolve:v,reject:x}=gT();let S;const R=sP(h,{resolve:v,reject:x},U=>{const T=uP(async()=>{const _=M=>{clearTimeout(S),T(),M(),R()};try{const M=await xT(async()=>{const D=await Mn(e,wT,"getCallsStatus")({id:r});if(p&&D.status==="failure")throw new lP(D);return D},{retryCount:c,delay:l});if(!s(M))return;_(()=>U.resolve(M))}catch(M){_(()=>U.reject(M))}},{interval:o,emitOnBegin:!0});return T});return S=f?setTimeout(()=>{R(),clearTimeout(S),x(new pP({id:r}))},f):void 0,await A}class pP extends De{constructor({id:t}){super(`Timed out while waiting for call bundle with id "${t}" to be confirmed.`,{name:"WaitForCallsStatusTimeoutError"})}}const p1=256;let yd=p1,gd;function IT(e=11){if(!gd||yd+e>p1*2){gd="",yd=0;for(let t=0;t<p1;t++)gd+=(256+Math.random()*256|0).toString(16).substring(1)}return gd.substring(yd,yd+++e)}function yP(e){const{batch:t,chain:r,ccipRead:o,key:s="base",name:c="Base Client",type:l="base"}=e,f=e.experimental_blockTag??(typeof(r==null?void 0:r.experimental_preconfirmationTime)=="number"?"pending":void 0),p=(r==null?void 0:r.blockTime)??12e3,h=Math.min(Math.max(Math.floor(p/2),500),4e3),A=e.pollingInterval??h,v=e.cacheTime??A,x=e.account?or(e.account):void 0,{config:S,request:R,value:U}=e.transport({chain:r,pollingInterval:A}),T={...S,...U},_={account:x,batch:t,cacheTime:v,ccipRead:o,chain:r,key:s,name:c,pollingInterval:A,request:R,transport:T,type:l,uid:IT(),...f?{experimental_blockTag:f}:{}};function M(D){return $=>{const P=$(D);for(const ne in _)delete P[ne];const Y={...D,...P};return Object.assign(Y,{extend:M(Y)})}}return Object.assign(_,{extend:M(_)})}const md=new Jd(8192);function gP(e,{enabled:t=!0,id:r}){if(!t||!r)return e();if(md.get(r))return md.get(r);const o=e().finally(()=>md.delete(r));return md.set(r,o),o}function mP(e,t={}){return async(r,o={})=>{var v;const{dedupe:s=!1,methods:c,retryDelay:l=150,retryCount:f=3,uid:p}={...t,...o},{method:h}=r;if((v=c==null?void 0:c.exclude)!=null&&v.includes(h))throw new Pa(new Error("method not supported"),{method:h});if(c!=null&&c.include&&!c.include.includes(h))throw new Pa(new Error("method not supported"),{method:h});const A=s?nu(`${p}.${ai(r)}`):void 0;return gP(()=>xT(async()=>{try{return await e(r)}catch(x){const S=x;switch(S.code){case el.code:throw new el(S);case tl.code:throw new tl(S);case nl.code:throw new nl(S,{method:r.method});case rl.code:throw new rl(S);case ka.code:throw new ka(S);case il.code:throw new il(S);case ol.code:throw new ol(S);case al.code:throw new al(S);case sl.code:throw new sl(S);case Pa.code:throw new Pa(S,{method:r.method});case iu.code:throw new iu(S);case ul.code:throw new ul(S);case Zs.code:throw new Zs(S);case cl.code:throw new cl(S);case ll.code:throw new ll(S);case fl.code:throw new fl(S);case dl.code:throw new dl(S);case hl.code:throw new hl(S);case ou.code:throw new ou(S);case pl.code:throw new pl(S);case yl.code:throw new yl(S);case gl.code:throw new gl(S);case ml.code:throw new ml(S);case Al.code:throw new Al(S);case au.code:throw new au(S);case 5e3:throw new Zs(S);default:throw x instanceof De?x:new MU(S)}}},{delay:({count:x,error:S})=>{var R;if(S&&S instanceof Hc){const U=(R=S==null?void 0:S.headers)==null?void 0:R.get("Retry-After");if(U!=null&&U.match(/\d/))return Number.parseInt(U,10)*1e3}return~~(1<<x)*l},retryCount:f,shouldRetry:({error:x})=>AP(x)}),{enabled:s,id:A})}}function AP(e){return"code"in e&&typeof e.code=="number"?e.code===-1||e.code===iu.code||e.code===ka.code:e instanceof Hc&&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 bP(e){return{formatters:void 0,fees:void 0,serializers:void 0,...e}}function xP(e,{errorInstance:t=new Error("timed out"),timeout:r,signal:o}){return new Promise((s,c)=>{(async()=>{let l;try{const f=new AbortController;r>0&&(l=setTimeout(()=>{o&&f.abort()},r)),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 vP(){return{current:0,take(){return this.current++},reset(){this.current=0}}}const UI=vP();function EP(e,t={}){return{async request(r){var x;const{body:o,fetchFn:s=t.fetchFn??fetch,onRequest:c=t.onRequest,onResponse:l=t.onResponse,timeout:f=t.timeout??1e4}=r,p={...t.fetchOptions??{},...r.fetchOptions??{}},{headers:h,method:A,signal:v}=p;try{const S=await xP(async({signal:U})=>{const T={...p,body:Array.isArray(o)?ai(o.map($=>({jsonrpc:"2.0",id:$.id??UI.take(),...$}))):ai({jsonrpc:"2.0",id:o.id??UI.take(),...o}),headers:{"Content-Type":"application/json",...h},method:A||"POST",signal:v||(f>0?U:null)},_=new Request(e,T),M=await(c==null?void 0:c(_,T))??{...T,url:e};return await s(M.url??e,M)},{errorInstance:new FI({body:o,url:e}),timeout:f,signal:!0});l&&await l(S);let R;if((x=S.headers.get("Content-Type"))!=null&&x.startsWith("application/json"))R=await S.json();else{R=await S.text();try{R=JSON.parse(R||"{}")}catch(U){if(S.ok)throw U;R={error:R}}}if(!S.ok)throw new Hc({body:o,details:ai(R.error)||S.statusText,headers:S.headers,status:S.status,url:e});return R}catch(S){throw S instanceof Hc||S instanceof FI?S:new Hc({body:o,cause:S,url:e})}}}}async function wP(e,{chain:t}){const{id:r,name:o,nativeCurrency:s,rpcUrls:c,blockExplorers:l}=t;await e.request({method:"wallet_addEthereumChain",params:[{chainId:Le(r),chainName:o,nativeCurrency:s,rpcUrls:c.default.http,blockExplorerUrls:l?Object.values(l).map(({url:f})=>f):void 0}]},{dedupe:!0,retryCount:0})}function IP(e,t){const{abi:r,args:o,bytecode:s,...c}=t,l=iP({abi:r,args:o,bytecode:s});return oh(e,{...c,...c.authorizationList?{to:null}:{},data:l})}async function SP(e){var r;return((r=e.account)==null?void 0:r.type)==="local"?[e.account.address]:(await e.request({method:"eth_accounts"},{dedupe:!0})).map(o=>_l(o))}async function CP(e,t={}){const{account:r=e.account,chainId:o}=t,s=r?or(r):void 0,c=o?[s==null?void 0:s.address,[Le(o)]]:[s==null?void 0:s.address],l=await e.request({method:"wallet_getCapabilities",params:c}),f={};for(const[p,h]of Object.entries(l)){f[Number(p)]={};for(let[A,v]of Object.entries(h))A==="addSubAccount"&&(A="unstable_addSubAccount"),f[Number(p)][A]=v}return typeof o=="number"?f[o]:f}async function OP(e){return await e.request({method:"wallet_getPermissions"},{dedupe:!0})}async function ST(e,t){var p;const{account:r=e.account,chainId:o,nonce:s}=t;if(!r)throw new Qa({docsPath:"/docs/eip7702/prepareAuthorization"});const c=or(r),l=(()=>{if(t.executor)return t.executor==="self"?t.executor:or(t.executor)})(),f={address:t.contractAddress??t.address,chainId:o,nonce:s};return typeof f.chainId>"u"&&(f.chainId=((p=e.chain)==null?void 0:p.id)??await Mn(e,Ul,"getChainId")({})),typeof f.nonce>"u"&&(f.nonce=await Mn(e,BB,"getTransactionCount")({address:c.address,blockTag:"pending"}),(l==="self"||l!=null&&l.address&&rP(l.address,c.address))&&(f.nonce+=1)),f}async function FP(e){return(await e.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(r=>NM(r))}async function RP(e,t){return e.request({method:"wallet_requestPermissions",params:[t]},{retryCount:0})}async function BP(e,t){const{id:r}=t;await e.request({method:"wallet_showCallsStatus",params:[r]})}async function TP(e,t){const{account:r=e.account}=t;if(!r)throw new Qa({docsPath:"/docs/eip7702/signAuthorization"});const o=or(r);if(!o.signAuthorization)throw new Fd({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:o.type});const s=await ST(e,t);return o.signAuthorization(s)}async function _P(e,{account:t=e.account,message:r}){if(!t)throw new Qa({docsPath:"/docs/actions/wallet/signMessage"});const o=or(t);if(o.signMessage)return o.signMessage({message:r});const s=typeof r=="string"?nu(r):r.raw instanceof Uint8Array?Oi(r.raw):r.raw;return e.request({method:"personal_sign",params:[s,o.address]},{retryCount:0})}async function MP(e,t){var h,A,v,x;const{account:r=e.account,chain:o=e.chain,...s}=t;if(!r)throw new Qa({docsPath:"/docs/actions/wallet/signTransaction"});const c=or(r);ih({account:c,...t});const l=await Mn(e,Ul,"getChainId")({});o!==null&&mT({currentChainId:l,chain:o});const f=(o==null?void 0:o.formatters)||((h=e.chain)==null?void 0:h.formatters),p=((A=f==null?void 0:f.transactionRequest)==null?void 0:A.format)||ex;return c.signTransaction?c.signTransaction({...s,chainId:l},{serializer:(x=(v=e.chain)==null?void 0:v.serializers)==null?void 0:x.transaction}):await e.request({method:"eth_signTransaction",params:[{...p(s),chainId:Le(l),from:c.address}]},{retryCount:0})}async function DP(e,t){const{account:r=e.account,domain:o,message:s,primaryType:c}=t;if(!r)throw new Qa({docsPath:"/docs/actions/wallet/signTypedData"});const l=or(r),f={EIP712Domain:tT({domain:o}),...t.types};if(eT({domain:o,message:s,primaryType:c,types:f}),l.signTypedData)return l.signTypedData({domain:o,message:s,primaryType:c,types:f});const p=YD({domain:o,message:s,primaryType:c,types:f});return e.request({method:"eth_signTypedData_v4",params:[l.address,p]},{retryCount:0})}async function UP(e,{id:t}){await e.request({method:"wallet_switchEthereumChain",params:[{chainId:Le(t)}]},{retryCount:0})}async function PP(e,t){return await e.request({method:"wallet_watchAsset",params:t},{retryCount:0})}function jP(e){return{addChain:t=>wP(e,t),deployContract:t=>IP(e,t),getAddresses:()=>SP(e),getCallsStatus:t=>wT(e,t),getCapabilities:t=>CP(e,t),getChainId:()=>Ul(e),getPermissions:()=>OP(e),prepareAuthorization:t=>ST(e,t),prepareTransactionRequest:t=>nx(e,t),requestAddresses:()=>FP(e),requestPermissions:t=>RP(e,t),sendCalls:t=>dP(e,t),sendRawTransaction:t=>bT(e,t),sendTransaction:t=>oh(e,t),showCallsStatus:t=>BP(e,t),signAuthorization:t=>TP(e,t),signMessage:t=>_P(e,t),signTransaction:t=>MP(e,t),signTypedData:t=>DP(e,t),switchChain:t=>UP(e,t),waitForCallsStatus:t=>hP(e,t),watchAsset:t=>PP(e,t),writeContract:t=>cP(e,t)}}function zc(e){const{key:t="wallet",name:r="Wallet Client",transport:o}=e;return yP({...e,key:t,name:r,transport:o,type:"walletClient"}).extend(jP)}function NP({key:e,methods:t,name:r,request:o,retryCount:s=3,retryDelay:c=150,timeout:l,type:f},p){const h=IT();return{config:{key:e,methods:t,name:r,request:o,retryCount:s,retryDelay:c,timeout:l,type:f},request:mP(o,{methods:t,retryCount:s,retryDelay:c,uid:h}),value:p}}class LP extends De{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}function Gc(e,t={}){const{batch:r,fetchFn:o,fetchOptions:s,key:c="http",methods:l,name:f="HTTP JSON-RPC",onFetchRequest:p,onFetchResponse:h,retryDelay:A,raw:v}=t;return({chain:x,retryCount:S,timeout:R})=>{const{batchSize:U=1e3,wait:T=0}=typeof r=="object"?r:{},_=t.retryCount??S,M=R??t.timeout??1e4,D=x==null?void 0:x.rpcUrls.default.http[0];if(!D)throw new LP;const $=EP(D,{fetchFn:o,fetchOptions:s,onRequest:p,onResponse:h,timeout:M});return NP({key:c,methods:l,name:f,async request({method:P,params:Y}){const ne={method:P,params:Y},{schedule:te}=oP({id:D,wait:T,shouldSplitBatch(H){return H.length>U},fn:H=>$.request({body:H}),sort:(H,ie)=>H.id-ie.id}),B=async H=>r?te(H):[await $.request({body:H})],[{error:L,result:z}]=await B(ne);if(v)return{error:L,result:z};if(L)throw new W1({body:ne,error:L,url:D});return z},retryCount:_,retryDelay:A,timeout:M,type:"http"},{fetchOptions:s,url:D})}}const Qc=bP({id:31337,name:"Hardhat",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]}}}),Ft={DB_HOST:{key:"DB_HOST",isSecret:!1,type:"string",defaultValue:"localhost",description:"Paima Engine Postgres Host URL. Example: 'localhost'"},DB_NAME:{key:"DB_NAME",isSecret:!1,type:"string",defaultValue:"postgres",description:"Paima Engine Postgres Database Name. Example: 'postgres'"},DB_PORT:{key:"DB_PORT",isSecret:!1,type:"number",defaultValue:5432,description:"Paima Engine Postgres Port. Example: '5432'"},DB_PW:{key:"DB_PW",isSecret:!0,type:"string",defaultValue:"postgres",description:"Paima Engine Postgres Password. Example: 'password'"},DB_USER:{key:"DB_USER",isSecret:!1,type:"string",defaultValue:"postgres",description:"Paima Engine Postgres User. Example: 'postgres'"},NODE_ENV:{key:"NODE_ENV",isSecret:!1,type:"string",defaultValue:void 0,description:"Node Environment. Example: 'development' or 'production'"},ORCHESTRATOR_URL:{key:"ORCHESTRATOR_URL",isSecret:!1,type:"string",defaultValue:"http://localhost",description:"Paima Engine Orchestrator URL. Example: 'http://localhost'"},ORCHESTRATOR_PORT:{key:"ORCHESTRATOR_PORT",isSecret:!1,type:"number",defaultValue:3e3,description:"Paima Engine Orchestrator Port. Used by the TUI to monitor processes. Example: '3000'"},TUI_LOG_URL:{key:"TUI_LOG_URL",isSecret:!1,type:"string",defaultValue:"http://localhost",description:"TUI Log URL. Example: 'http://localhost'"},TUI_LOG_PORT:{key:"TUI_LOG_PORT",isSecret:!1,type:"number",defaultValue:11033,description:"TUI Log Port. Example: '11033'"},SHELL:{isSystem:!0,key:"SHELL",isSecret:!1,type:"string",defaultValue:void 0,description:"System shell path. This is set by the OS. Used to run TUI/tmux commands"},TMUX:{isSystem:!0,key:"TMUX",isSecret:!1,type:"string",defaultValue:void 0,description:"System tmux path. This is set by Tmux itself. Used to check if the process is running in a tmux session"},RECAPTCHA_V3_FRONTEND:{key:"RECAPTCHA_V3_FRONTEND",isSecret:!1,type:"string",defaultValue:void 0,description:"ReCaptcha V3 Frontend Key. Used by the Batcher to verify requests. Leave empty to disable. Example: '6Lc123456789012345678901234567890'"},BATCHER_PORT:{key:"BATCHER_PORT",isSecret:!1,type:"number",defaultValue:3334,description:"Batcher Port. Example: '3334'"},STORE_HISTORICAL_GAME_INPUTS:{key:"STORE_HISTORICAL_GAME_INPUTS",isSecret:!1,type:"boolean",defaultValue:!0,description:"Store Historical Game Inputs. Example: 'true' or 'false'"},MQTT_BROKER:{key:"MQTT_BROKER",isSecret:!1,type:"boolean",defaultValue:!0,description:"MQTT Broker. Example: 'true' or 'false'"},MQTT_ENGINE_BROKER_URL:{key:"MQTT_ENGINE_BROKER_URL",isSecret:!1,type:"string",defaultValue:"ws://127.0.0.1:8883",description:"MQTT Engine Broker URL. Example: 'ws://127.0.0.1:8883'"},MQTT_ENGINE_BROKER_PORT:{key:"MQTT_ENGINE_BROKER_PORT",isSecret:!1,type:"number",defaultValue:8883,description:"MQTT Engine Broker Port. Example: '8883'"},MQTT_BATCHER_BROKER_URL:{key:"MQTT_BATCHER_BROKER_URL",isSecret:!1,type:"string",defaultValue:"ws://127.0.0.1:8884",description:"MQTT Batcher Broker URL. Example: 'ws://127.0.0.1:8884'"},MQTT_BATCHER_BROKER_PORT:{key:"MQTT_BATCHER_BROKER_PORT",isSecret:!1,type:"number",defaultValue:8884,description:"MQTT Batcher Broker Port. Example: '8884'"},PAIMA_API_PORT:{key:"PAIMA_API_PORT",isSecret:!1,type:"number",defaultValue:9999,description:"Main Paima API Port. Used by developers custom endpoints and RPC endpoints. Example: '9999'"},PAIMA_EXPLORER_PORT:{key:"PAIMA_EXPLORER_PORT",isSecret:!1,type:"number",defaultValue:10590,description:"Explorer Port. Example: '10590'"},PAIMA_CHAIN_ID:{key:"PAIMA_CHAIN_ID",isSecret:!1,type:"number",defaultValue:87401284021,description:"Paima Chain ID. Example: '87401284021'"},PGLITE:{key:"PGLITE",isSecret:!1,type:"boolean",defaultValue:!0,description:"Enable single connection mode and other specific PGLite features. IMPORTANT enable only for development. ('true' or 'false')"},DEBUG_PGLITE:{key:"DEBUG_PGLITE",isSecret:!1,type:"number",defaultValue:void 0,description:"Enable PGLite Debug/Verbose mode. Example: '1'"},OTEL_COLLECTOR_PORT:{key:"OTEL_COLLECTOR_PORT",isSecret:!1,type:"number",defaultValue:4318,description:"OTEL Collector Port. Example: '4318'"},DOCS_PORT:{key:"DOCS_PORT",isSecret:!1,type:"number",defaultValue:10600,description:"Docs Port. Example: '10600'"}};class Ye{static get MQTT_BROKER(){return Ye.getConfig(Ft.MQTT_BROKER)}static get MQTT_ENGINE_BROKER_PORT(){return Ye.getConfig(Ft.MQTT_ENGINE_BROKER_PORT)}static get MQTT_BATCHER_BROKER_PORT(){return Ye.getConfig(Ft.MQTT_BATCHER_BROKER_PORT)}static get MQTT_ENGINE_BROKER_URL(){return Ye.getConfig(Ft.MQTT_ENGINE_BROKER_URL)}static get MQTT_BATCHER_BROKER_URL(){return Ye.getConfig(Ft.MQTT_BATCHER_BROKER_URL)}static get DB_HOST(){return Ye.getConfig(Ft.DB_HOST)}static get DB_NAME(){return Ye.getConfig(Ft.DB_NAME)}static get DB_PORT(){return Ye.getConfig(Ft.DB_PORT)}static get DB_PW(){return Ye.getConfig(Ft.DB_PW)}static get DB_USER(){return Ye.getConfig(Ft.DB_USER)}static get NODE_ENV(){return Ye.getConfig(Ft.NODE_ENV)}static get ORCHESTRATOR_URL(){return Ye.getConfig(Ft.ORCHESTRATOR_URL)}static get ORCHESTRATOR_PORT(){return Ye.getConfig(Ft.ORCHESTRATOR_PORT)}static get TUI_LOG_URL(){return Ye.getConfig(Ft.TUI_LOG_URL)}static get TUI_LOG_PORT(){return Ye.getConfig(Ft.TUI_LOG_PORT)}static get SHELL(){return Ye.getConfig(Ft.SHELL)}static get TMUX(){return Ye.getConfig(Ft.TMUX)}static get PAIMA_API_PORT(){return Ye.getConfig(Ft.PAIMA_API_PORT)}static get RECAPTCHA_V3_FRONTEND(){return Ye.getConfig(Ft.RECAPTCHA_V3_FRONTEND)}static get BATCHER_PORT(){return Ye.getConfig(Ft.BATCHER_PORT)}static get PAIMA_EXPLORER_PORT(){return Ye.getConfig(Ft.PAIMA_EXPLORER_PORT)}static get PAIMA_CHAIN_ID(){return Ye.getConfig(Ft.PAIMA_CHAIN_ID)}static get PGLITE(){return Ye.getConfig(Ft.PGLITE)}static get DEBUG_PGLITE(){return Ye.getConfig(Ft.DEBUG_PGLITE)}static get OTEL_COLLECTOR_PORT(){return Ye.getConfig(Ft.OTEL_COLLECTOR_PORT)}static get DOCS_PORT(){return Ye.getConfig(Ft.DOCS_PORT)}static getConfig(t){switch(t.type){case"string":return Ye.getString(t.key,t.defaultValue);case"number":return Ye.getNumber(t.key,t.defaultValue);case"boolean":return Ye.getBoolean(t.key,t.defaultValue);default:throw new Error(`Invalid config type: ${t}`)}}static getCurrentConfig(t=!1){const r="********",o={};return Object.entries(Ft).forEach(([s,c])=>{c.isSecret?o[s]=t?Ye[s]:r:o[s]=Ye[s]}),o}static getDocumentation(){return Object.fromEntries(Object.entries(Ft).map(([t,r])=>[t,{defaultValue:r.defaultValue,description:r.description}]))}static getBoolean(t,r=!1){const o=Ye.getEnv(t);return o==null||o===""?r:["true","1","yes"].includes(o.toLowerCase())}static getNumber(t,r=0){const o=Ye.getEnv(t);return o==null||o===""?r:parseInt(o,10)}static getString(t,r=""){return Ye.getEnv(t)??r}static getEnv(t){try{return Deno.env.get(t)}catch{return st.env[t]}}}function qP(e){return cn(e)&&!lr(e)&&!jl(e)&&Symbol.asyncIterator in e}function lr(e){return Array.isArray(e)}function CT(e){return typeof e=="bigint"}function Pl(e){return typeof e=="boolean"}function rx(e){return e instanceof globalThis.Date}function $P(e){return typeof e=="function"}function kP(e){return cn(e)&&!lr(e)&&!jl(e)&&Symbol.iterator in e}function HP(e){return e===null}function Bi(e){return typeof e=="number"}function cn(e){return typeof e=="object"&&e!==null}function OT(e){return e instanceof globalThis.RegExp}function nn(e){return typeof e=="string"}function zP(e){return typeof e=="symbol"}function jl(e){return e instanceof globalThis.Uint8Array}function sn(e){return e===void 0}function GP(e){return e.map(t=>Nd(t))}function QP(e){return new Date(e.getTime())}function KP(e){return new Uint8Array(e)}function VP(e){return new RegExp(e.source,e.flags)}function YP(e){const t={};for(const r of Object.getOwnPropertyNames(e))t[r]=Nd(e[r]);for(const r of Object.getOwnPropertySymbols(e))t[r]=Nd(e[r]);return t}function Nd(e){return lr(e)?GP(e):rx(e)?QP(e):jl(e)?KP(e):OT(e)?VP(e):cn(e)?YP(e):e}function Er(e){return Nd(e)}function ix(e,t){return Er(t===void 0?e:{...t,...e})}function FT(e){return wr(e)&&globalThis.Symbol.asyncIterator in e}function RT(e){return wr(e)&&globalThis.Symbol.iterator in e}function BT(e){return e instanceof globalThis.Promise}function Nl(e){return e instanceof Date&&globalThis.Number.isFinite(e.getTime())}function XP(e){return e instanceof globalThis.Map}function ZP(e){return e instanceof globalThis.Set}function JP(e){return globalThis.ArrayBuffer.isView(e)}function ox(e){return e instanceof globalThis.Uint8Array}function TT(e,t){return t in e}function wr(e){return e!==null&&typeof e=="object"}function Ir(e){return globalThis.Array.isArray(e)&&!globalThis.ArrayBuffer.isView(e)}function _i(e){return e===void 0}function ah(e){return e===null}function sh(e){return typeof e=="boolean"}function ao(e){return typeof e=="number"}function _T(e){return globalThis.Number.isInteger(e)}function uh(e){return typeof e=="bigint"}function Ci(e){return typeof e=="string"}function ax(e){return typeof e=="function"}function ch(e){return typeof e=="symbol"}function MT(e){return uh(e)||sh(e)||ah(e)||ao(e)||Ci(e)||ch(e)||_i(e)}var ar;(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 r(l){const f=wr(l);return e.AllowArrayObject?f:f&&!Ir(l)}e.IsObjectLike=r;function o(l){return r(l)&&!(l instanceof Date)&&!(l instanceof Uint8Array)}e.IsRecordLike=o;function s(l){return e.AllowNaN?ao(l):Number.isFinite(l)}e.IsNumberLike=s;function c(l){const f=_i(l);return e.AllowNullVoid?f||l===null:f}e.IsVoidLike=c})(ar||(ar={}));function WP(e){return globalThis.Object.freeze(e).map(t=>Ld(t))}function ej(e){const t={};for(const r of Object.getOwnPropertyNames(e))t[r]=Ld(e[r]);for(const r of Object.getOwnPropertySymbols(e))t[r]=Ld(e[r]);return globalThis.Object.freeze(t)}function Ld(e){return lr(e)?WP(e):rx(e)?e:jl(e)?e:OT(e)?e:cn(e)?ej(e):e}function Ue(e,t){const r=t!==void 0?{...t,...e}:e;switch(ar.InstanceMode){case"freeze":return Ld(r);case"clone":return Er(r);default:return r}}class Rr extends Error{constructor(t){super(t)}}const xr=Symbol.for("TypeBox.Transform"),Ll=Symbol.for("TypeBox.Readonly"),ho=Symbol.for("TypeBox.Optional"),lh=Symbol.for("TypeBox.Hint"),$e=Symbol.for("TypeBox.Kind");function sx(e){return cn(e)&&e[Ll]==="Readonly"}function Jo(e){return cn(e)&&e[ho]==="Optional"}function DT(e){return ct(e,"Any")}function UT(e){return ct(e,"Argument")}function pu(e){return ct(e,"Array")}function fh(e){return ct(e,"AsyncIterator")}function dh(e){return ct(e,"BigInt")}function ql(e){return ct(e,"Boolean")}function yu(e){return ct(e,"Computed")}function gu(e){return ct(e,"Constructor")}function tj(e){return ct(e,"Date")}function mu(e){return ct(e,"Function")}function Au(e){return ct(e,"Integer")}function Kr(e){return ct(e,"Intersect")}function hh(e){return ct(e,"Iterator")}function ct(e,t){return cn(e)&&$e in e&&e[$e]===t}function PT(e){return Pl(e)||Bi(e)||nn(e)}function Ka(e){return ct(e,"Literal")}function Va(e){return ct(e,"MappedKey")}function Br(e){return ct(e,"MappedResult")}function $l(e){return ct(e,"Never")}function nj(e){return ct(e,"Not")}function ux(e){return ct(e,"Null")}function bu(e){return ct(e,"Number")}function hi(e){return ct(e,"Object")}function ph(e){return ct(e,"Promise")}function yh(e){return ct(e,"Record")}function sr(e){return ct(e,"Ref")}function jT(e){return ct(e,"RegExp")}function kl(e){return ct(e,"String")}function cx(e){return ct(e,"Symbol")}function Ya(e){return ct(e,"TemplateLiteral")}function rj(e){return ct(e,"This")}function Lt(e){return cn(e)&&xr in e}function Xa(e){return ct(e,"Tuple")}function gh(e){return ct(e,"Undefined")}function On(e){return ct(e,"Union")}function ij(e){return ct(e,"Uint8Array")}function oj(e){return ct(e,"Unknown")}function aj(e){return ct(e,"Unsafe")}function sj(e){return ct(e,"Void")}function NT(e){return cn(e)&&$e in e&&nn(e[$e])}function vr(e){return DT(e)||UT(e)||pu(e)||ql(e)||dh(e)||fh(e)||yu(e)||gu(e)||tj(e)||mu(e)||Au(e)||Kr(e)||hh(e)||Ka(e)||Va(e)||Br(e)||$l(e)||nj(e)||ux(e)||bu(e)||hi(e)||ph(e)||yh(e)||sr(e)||jT(e)||kl(e)||cx(e)||Ya(e)||rj(e)||Xa(e)||gh(e)||On(e)||ij(e)||oj(e)||aj(e)||sj(e)||NT(e)}const uj=["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 LT(e){try{return new RegExp(e),!0}catch{return!1}}function lx(e){if(!nn(e))return!1;for(let t=0;t<e.length;t++){const r=e.charCodeAt(t);if(r>=7&&r<=13||r===27||r===127)return!1}return!0}function qT(e){return fx(e)||Un(e)}function Tc(e){return sn(e)||CT(e)}function Tt(e){return sn(e)||Bi(e)}function fx(e){return sn(e)||Pl(e)}function It(e){return sn(e)||nn(e)}function cj(e){return sn(e)||nn(e)&&lx(e)&&LT(e)}function lj(e){return sn(e)||nn(e)&&lx(e)}function $T(e){return sn(e)||Un(e)}function qd(e){return cn(e)&&e[ho]==="Optional"}function ui(e){return lt(e,"Any")&&It(e.$id)}function fj(e){return lt(e,"Argument")&&Bi(e.index)}function Za(e){return lt(e,"Array")&&e.type==="array"&&It(e.$id)&&Un(e.items)&&Tt(e.minItems)&&Tt(e.maxItems)&&fx(e.uniqueItems)&&$T(e.contains)&&Tt(e.minContains)&&Tt(e.maxContains)}function dx(e){return lt(e,"AsyncIterator")&&e.type==="AsyncIterator"&&It(e.$id)&&Un(e.items)}function mh(e){return lt(e,"BigInt")&&e.type==="bigint"&&It(e.$id)&&Tc(e.exclusiveMaximum)&&Tc(e.exclusiveMinimum)&&Tc(e.maximum)&&Tc(e.minimum)&&Tc(e.multipleOf)}function Ja(e){return lt(e,"Boolean")&&e.type==="boolean"&&It(e.$id)}function dj(e){return lt(e,"Computed")&&nn(e.target)&&lr(e.parameters)&&e.parameters.every(t=>Un(t))}function Ah(e){return lt(e,"Constructor")&&e.type==="Constructor"&&It(e.$id)&&lr(e.parameters)&&e.parameters.every(t=>Un(t))&&Un(e.returns)}function bh(e){return lt(e,"Date")&&e.type==="Date"&&It(e.$id)&&Tt(e.exclusiveMaximumTimestamp)&&Tt(e.exclusiveMinimumTimestamp)&&Tt(e.maximumTimestamp)&&Tt(e.minimumTimestamp)&&Tt(e.multipleOfTimestamp)}function xh(e){return lt(e,"Function")&&e.type==="Function"&&It(e.$id)&&lr(e.parameters)&&e.parameters.every(t=>Un(t))&&Un(e.returns)}function po(e){return lt(e,"Integer")&&e.type==="integer"&&It(e.$id)&&Tt(e.exclusiveMaximum)&&Tt(e.exclusiveMinimum)&&Tt(e.maximum)&&Tt(e.minimum)&&Tt(e.multipleOf)}function kT(e){return cn(e)&&Object.entries(e).every(([t,r])=>lx(t)&&Un(r))}function Wa(e){return lt(e,"Intersect")&&!(nn(e.type)&&e.type!=="object")&&lr(e.allOf)&&e.allOf.every(t=>Un(t)&&!Aj(t))&&It(e.type)&&(fx(e.unevaluatedProperties)||$T(e.unevaluatedProperties))&&It(e.$id)}function hx(e){return lt(e,"Iterator")&&e.type==="Iterator"&&It(e.$id)&&Un(e.items)}function lt(e,t){return cn(e)&&$e in e&&e[$e]===t}function HT(e){return Wo(e)&&nn(e.const)}function zT(e){return Wo(e)&&Bi(e.const)}function GT(e){return Wo(e)&&Pl(e.const)}function Wo(e){return lt(e,"Literal")&&It(e.$id)&&hj(e.const)}function hj(e){return Pl(e)||Bi(e)||nn(e)}function pj(e){return lt(e,"MappedKey")&&lr(e.keys)&&e.keys.every(t=>Bi(t)||nn(t))}function yj(e){return lt(e,"MappedResult")&&kT(e.properties)}function ea(e){return lt(e,"Never")&&cn(e.not)&&Object.getOwnPropertyNames(e.not).length===0}function su(e){return lt(e,"Not")&&Un(e.not)}function px(e){return lt(e,"Null")&&e.type==="null"&&It(e.$id)}function rr(e){return lt(e,"Number")&&e.type==="number"&&It(e.$id)&&Tt(e.exclusiveMaximum)&&Tt(e.exclusiveMinimum)&&Tt(e.maximum)&&Tt(e.minimum)&&Tt(e.multipleOf)}function Gt(e){return lt(e,"Object")&&e.type==="object"&&It(e.$id)&&kT(e.properties)&&qT(e.additionalProperties)&&Tt(e.minProperties)&&Tt(e.maxProperties)}function yx(e){return lt(e,"Promise")&&e.type==="Promise"&&It(e.$id)&&Un(e.item)}function Dn(e){return lt(e,"Record")&&e.type==="object"&&It(e.$id)&&qT(e.additionalProperties)&&cn(e.patternProperties)&&(t=>{const r=Object.getOwnPropertyNames(t.patternProperties);return r.length===1&&LT(r[0])&&cn(t.patternProperties)&&Un(t.patternProperties[r[0]])})(e)}function gj(e){return lt(e,"Ref")&&It(e.$id)&&nn(e.$ref)}function bl(e){return lt(e,"RegExp")&&It(e.$id)&&nn(e.source)&&nn(e.flags)&&Tt(e.maxLength)&&Tt(e.minLength)}function ci(e){return lt(e,"String")&&e.type==="string"&&It(e.$id)&&Tt(e.minLength)&&Tt(e.maxLength)&&cj(e.pattern)&&lj(e.format)}function xl(e){return lt(e,"Symbol")&&e.type==="symbol"&&It(e.$id)}function vl(e){return lt(e,"TemplateLiteral")&&e.type==="string"&&nn(e.pattern)&&e.pattern[0]==="^"&&e.pattern[e.pattern.length-1]==="$"}function mj(e){return lt(e,"This")&&It(e.$id)&&nn(e.$ref)}function Aj(e){return cn(e)&&xr in e}function vh(e){return lt(e,"Tuple")&&e.type==="array"&&It(e.$id)&&Bi(e.minItems)&&Bi(e.maxItems)&&e.minItems===e.maxItems&&(sn(e.items)&&sn(e.additionalItems)&&e.minItems===0||lr(e.items)&&e.items.every(t=>Un(t)))}function Ha(e){return lt(e,"Undefined")&&e.type==="undefined"&&It(e.$id)}function fo(e){return lt(e,"Union")&&It(e.$id)&&cn(e)&&lr(e.anyOf)&&e.anyOf.every(t=>Un(t))}function Hl(e){return lt(e,"Uint8Array")&&e.type==="Uint8Array"&&It(e.$id)&&Tt(e.minByteLength)&&Tt(e.maxByteLength)}function li(e){return lt(e,"Unknown")&&It(e.$id)}function bj(e){return lt(e,"Unsafe")}function Eh(e){return lt(e,"Void")&&e.type==="void"&&It(e.$id)}function xj(e){return cn(e)&&$e in e&&nn(e[$e])&&!uj.includes(e[$e])}function Un(e){return cn(e)&&(ui(e)||fj(e)||Za(e)||Ja(e)||mh(e)||dx(e)||dj(e)||Ah(e)||bh(e)||xh(e)||po(e)||Wa(e)||hx(e)||Wo(e)||pj(e)||yj(e)||ea(e)||su(e)||px(e)||rr(e)||Gt(e)||yx(e)||Dn(e)||gj(e)||bl(e)||ci(e)||xl(e)||vl(e)||mj(e)||vh(e)||Ha(e)||fo(e)||Hl(e)||li(e)||bj(e)||Eh(e)||xj(e))}const vj="(true|false)",Rd="(0|[1-9][0-9]*)",QT="(.*)",Ej="(?!.*)",uu=`^${Rd}$`,cu=`^${QT}$`,wj=`^${Ej}$`,gx=new Map;function KT(e){return gx.has(e)}function Mi(e,t){gx.set(e,t)}function VT(e){return gx.get(e)}const YT=new Map;function mx(e){return YT.has(e)}function XT(e){return YT.get(e)}function Ij(e,t){return e.includes(t)}function Sj(e){return[...new Set(e)]}function Cj(e,t){return e.filter(r=>t.includes(r))}function Oj(e,t){return e.reduce((r,o)=>Cj(r,o),t)}function Fj(e){return e.length===1?e[0]:e.length>1?Oj(e.slice(1),e[0]):[]}function Rj(e){const t=[];for(const r of e)t.push(...r);return t}function El(e){return Ue({[$e]:"Any"},e)}function Ax(e,t){return Ue({[$e]:"Array",type:"array",items:e},t)}function Bj(e){return Ue({[$e]:"Argument",index:e})}function bx(e,t){return Ue({[$e]:"AsyncIterator",type:"AsyncIterator",items:e},t)}function yn(e,t,r){return Ue({[$e]:"Computed",target:e,parameters:t},r)}function Tj(e,t){const{[t]:r,...o}=e;return o}function Sr(e,t){return t.reduce((r,o)=>Tj(r,o),e)}function Zt(e){return Ue({[$e]:"Never",not:{}},e)}function Pn(e){return Ue({[$e]:"MappedResult",properties:e})}function xx(e,t,r){return Ue({[$e]:"Constructor",type:"Constructor",parameters:e,returns:t},r)}function zl(e,t,r){return Ue({[$e]:"Function",type:"Function",parameters:e,returns:t},r)}function y1(e,t){return Ue({[$e]:"Union",anyOf:e},t)}function _j(e){return e.some(t=>Jo(t))}function PI(e){return e.map(t=>Jo(t)?Mj(t):t)}function Mj(e){return Sr(e,[ho])}function Dj(e,t){return _j(e)?ra(y1(PI(e),t)):y1(PI(e),t)}function xu(e,t){return e.length===1?Ue(e[0],t):e.length===0?Zt(t):Dj(e,t)}function jn(e,t){return e.length===0?Zt(t):e.length===1?Ue(e[0],t):y1(e,t)}class jI extends Rr{}function Uj(e){return e.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}function vx(e,t,r){return e[t]===r&&e.charCodeAt(t-1)!==92}function so(e,t){return vx(e,t,"(")}function wl(e,t){return vx(e,t,")")}function ZT(e,t){return vx(e,t,"|")}function Pj(e){if(!(so(e,0)&&wl(e,e.length-1)))return!1;let t=0;for(let r=0;r<e.length;r++)if(so(e,r)&&(t+=1),wl(e,r)&&(t-=1),t===0&&r!==e.length-1)return!1;return!0}function jj(e){return e.slice(1,e.length-1)}function Nj(e){let t=0;for(let r=0;r<e.length;r++)if(so(e,r)&&(t+=1),wl(e,r)&&(t-=1),ZT(e,r)&&t===0)return!0;return!1}function Lj(e){for(let t=0;t<e.length;t++)if(so(e,t))return!0;return!1}function qj(e){let[t,r]=[0,0];const o=[];for(let c=0;c<e.length;c++)if(so(e,c)&&(t+=1),wl(e,c)&&(t-=1),ZT(e,c)&&t===0){const l=e.slice(r,c);l.length>0&&o.push(lu(l)),r=c+1}const s=e.slice(r);return s.length>0&&o.push(lu(s)),o.length===0?{type:"const",const:""}:o.length===1?o[0]:{type:"or",expr:o}}function $j(e){function t(s,c){if(!so(s,c))throw new jI("TemplateLiteralParser: Index must point to open parens");let l=0;for(let f=c;f<s.length;f++)if(so(s,f)&&(l+=1),wl(s,f)&&(l-=1),l===0)return[c,f];throw new jI("TemplateLiteralParser: Unclosed group parens in expression")}function r(s,c){for(let l=c;l<s.length;l++)if(so(s,l))return[c,l];return[c,s.length]}const o=[];for(let s=0;s<e.length;s++)if(so(e,s)){const[c,l]=t(e,s),f=e.slice(c,l+1);o.push(lu(f)),s=l}else{const[c,l]=r(e,s),f=e.slice(c,l);f.length>0&&o.push(lu(f)),s=l-1}return o.length===0?{type:"const",const:""}:o.length===1?o[0]:{type:"and",expr:o}}function lu(e){return Pj(e)?lu(jj(e)):Nj(e)?qj(e):Lj(e)?$j(e):{type:"const",const:Uj(e)}}function Ex(e){return lu(e.slice(1,e.length-1))}class kj extends Rr{}function Hj(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 zj(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 Gj(e){return e.type==="const"&&e.const===".*"}function Il(e){return Hj(e)||Gj(e)?!1:zj(e)?!0:e.type==="and"?e.expr.every(t=>Il(t)):e.type==="or"?e.expr.every(t=>Il(t)):e.type==="const"?!0:(()=>{throw new kj("Unknown expression type")})()}function Qj(e){const t=Ex(e.pattern);return Il(t)}class Kj extends Rr{}function*JT(e){if(e.length===1)return yield*e[0];for(const t of e[0])for(const r of JT(e.slice(1)))yield`${t}${r}`}function*Vj(e){return yield*JT(e.expr.map(t=>[...wh(t)]))}function*Yj(e){for(const t of e.expr)yield*wh(t)}function*Xj(e){return yield e.const}function*wh(e){return e.type==="and"?yield*Vj(e):e.type==="or"?yield*Yj(e):e.type==="const"?yield*Xj(e):(()=>{throw new Kj("Unknown expression")})()}function WT(e){const t=Ex(e.pattern);return Il(t)?[...wh(t)]:[]}function un(e,t){return Ue({[$e]:"Literal",const:e,type:typeof e},t)}function e3(e){return Ue({[$e]:"Boolean",type:"boolean"},e)}function wx(e){return Ue({[$e]:"BigInt",type:"bigint"},e)}function es(e){return Ue({[$e]:"Number",type:"number"},e)}function za(e){return Ue({[$e]:"String",type:"string"},e)}function*Zj(e){const t=e.trim().replace(/"|'/g,"");return t==="boolean"?yield e3():t==="number"?yield es():t==="bigint"?yield wx():t==="string"?yield za():yield(()=>{const r=t.split("|").map(o=>un(o.trim()));return r.length===0?Zt():r.length===1?r[0]:xu(r)})()}function*Jj(e){if(e[1]!=="{"){const t=un("$"),r=g1(e.slice(1));return yield*[t,...r]}for(let t=2;t<e.length;t++)if(e[t]==="}"){const r=Zj(e.slice(2,t)),o=g1(e.slice(t+1));return yield*[...r,...o]}yield un(e)}function*g1(e){for(let t=0;t<e.length;t++)if(e[t]==="$"){const r=un(e.slice(0,t)),o=Jj(e.slice(t));return yield*[r,...o]}yield un(e)}function Wj(e){return[...g1(e)]}class eN extends Rr{}function tN(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function t3(e,t){return Ya(e)?e.pattern.slice(1,e.pattern.length-1):On(e)?`(${e.anyOf.map(r=>t3(r,t)).join("|")})`:bu(e)?`${t}${Rd}`:Au(e)?`${t}${Rd}`:dh(e)?`${t}${Rd}`:kl(e)?`${t}${QT}`:Ka(e)?`${t}${tN(e.const.toString())}`:ql(e)?`${t}${vj}`:(()=>{throw new eN(`Unexpected Kind '${e[$e]}'`)})()}function NI(e){return`^${e.map(t=>t3(t,"")).join("")}$`}function $d(e){const r=WT(e).map(o=>un(o));return xu(r)}function n3(e,t){const r=nn(e)?NI(Wj(e)):NI(e);return Ue({[$e]:"TemplateLiteral",type:"string",pattern:r},t)}function nN(e){return WT(e).map(r=>r.toString())}function rN(e){const t=[];for(const r of e)t.push(...ta(r));return t}function iN(e){return[e.toString()]}function ta(e){return[...new Set(Ya(e)?nN(e):On(e)?rN(e.anyOf):Ka(e)?iN(e.const):bu(e)?["[number]"]:Au(e)?["[number]"]:[])]}function oN(e,t,r){const o={};for(const s of Object.getOwnPropertyNames(t))o[s]=Ih(e,ta(t[s]),r);return o}function aN(e,t,r){return oN(e,t.properties,r)}function sN(e,t,r){const o=aN(e,t,r);return Pn(o)}function r3(e,t){return e.map(r=>i3(r,t))}function uN(e){return e.filter(t=>!$l(t))}function cN(e,t){return s3(uN(r3(e,t)))}function lN(e){return e.some(t=>$l(t))?[]:e}function fN(e,t){return xu(lN(r3(e,t)))}function dN(e,t){return t in e?e[t]:t==="[number]"?xu(e):Zt()}function hN(e,t){return t==="[number]"?e:Zt()}function pN(e,t){return t in e?e[t]:Zt()}function i3(e,t){return Kr(e)?cN(e.allOf,t):On(e)?fN(e.anyOf,t):Xa(e)?dN(e.items??[],t):pu(e)?hN(e.items,t):hi(e)?pN(e.properties,t):Zt()}function Ix(e,t){return t.map(r=>i3(e,r))}function LI(e,t){return xu(Ix(e,t))}function Ih(e,t,r){if(sr(e)||sr(t)){const o="Index types using Ref parameters require both Type and Key to be of TSchema";if(!vr(e)||!vr(t))throw new Rr(o);return yn("Index",[e,t])}return Br(t)?sN(e,t,r):Va(t)?AN(e,t,r):Ue(vr(t)?LI(e,ta(t)):LI(e,t),r)}function yN(e,t,r){return{[t]:Ih(e,[t],Er(r))}}function gN(e,t,r){return t.reduce((o,s)=>({...o,...yN(e,s,r)}),{})}function mN(e,t,r){return gN(e,t.keys,r)}function AN(e,t,r){const o=mN(e,t,r);return Pn(o)}function Sx(e,t){return Ue({[$e]:"Iterator",type:"Iterator",items:e},t)}function bN(e){const t=[];for(let r in e)Jo(e[r])||t.push(r);return t}function xN(e,t){const r=bN(e),o=r.length>0?{[$e]:"Object",type:"object",properties:e,required:r}:{[$e]:"Object",type:"object",properties:e};return Ue(o,t)}var Sn=xN;function o3(e,t){return Ue({[$e]:"Promise",type:"Promise",item:e},t)}function vN(e){return Ue(Sr(e,[Ll]))}function EN(e){return Ue({...e,[Ll]:"Readonly"})}function wN(e,t){return t===!1?vN(e):EN(e)}function na(e,t){const r=t??!0;return Br(e)?CN(e,r):wN(e,r)}function IN(e,t){const r={};for(const o of globalThis.Object.getOwnPropertyNames(e))r[o]=na(e[o],t);return r}function SN(e,t){return IN(e.properties,t)}function CN(e,t){const r=SN(e,t);return Pn(r)}function vu(e,t){return Ue(e.length>0?{[$e]:"Tuple",type:"array",items:e,additionalItems:!1,minItems:e.length,maxItems:e.length}:{[$e]:"Tuple",type:"array",minItems:e.length,maxItems:e.length},t)}function a3(e,t){return e in t?Gr(e,t[e]):Pn(t)}function ON(e){return{[e]:un(e)}}function FN(e){const t={};for(const r of e)t[r]=un(r);return t}function RN(e,t){return Ij(t,e)?ON(e):FN(t)}function BN(e,t){const r=RN(e,t);return a3(e,r)}function _c(e,t){return t.map(r=>Gr(e,r))}function TN(e,t){const r={};for(const o of globalThis.Object.getOwnPropertyNames(t))r[o]=Gr(e,t[o]);return r}function Gr(e,t){const r={...t};return Jo(t)?ra(Gr(e,Sr(t,[ho]))):sx(t)?na(Gr(e,Sr(t,[Ll]))):Br(t)?a3(e,t.properties):Va(t)?BN(e,t.keys):gu(t)?xx(_c(e,t.parameters),Gr(e,t.returns),r):mu(t)?zl(_c(e,t.parameters),Gr(e,t.returns),r):fh(t)?bx(Gr(e,t.items),r):hh(t)?Sx(Gr(e,t.items),r):Kr(t)?ia(_c(e,t.allOf),r):On(t)?jn(_c(e,t.anyOf),r):Xa(t)?vu(_c(e,t.items??[]),r):hi(t)?Sn(TN(e,t.properties),r):pu(t)?Ax(Gr(e,t.items),r):ph(t)?o3(Gr(e,t.item),r):t}function _N(e,t){const r={};for(const o of e)r[o]=Gr(o,t);return r}function MN(e,t,r){const o=vr(e)?ta(e):e,s=t({[$e]:"MappedKey",keys:o}),c=_N(o,s);return Sn(c,r)}function DN(e){return Ue(Sr(e,[ho]))}function UN(e){return Ue({...e,[ho]:"Optional"})}function PN(e,t){return t===!1?DN(e):UN(e)}function ra(e,t){const r=t??!0;return Br(e)?LN(e,r):PN(e,r)}function jN(e,t){const r={};for(const o of globalThis.Object.getOwnPropertyNames(e))r[o]=ra(e[o],t);return r}function NN(e,t){return jN(e.properties,t)}function LN(e,t){const r=NN(e,t);return Pn(r)}function m1(e,t={}){const r=e.every(s=>hi(s)),o=vr(t.unevaluatedProperties)?{unevaluatedProperties:t.unevaluatedProperties}:{};return Ue(t.unevaluatedProperties===!1||vr(t.unevaluatedProperties)||r?{...o,[$e]:"Intersect",type:"object",allOf:e}:{...o,[$e]:"Intersect",allOf:e},t)}function qN(e){return e.every(t=>Jo(t))}function $N(e){return Sr(e,[ho])}function qI(e){return e.map(t=>Jo(t)?$N(t):t)}function kN(e,t){return qN(e)?ra(m1(qI(e),t)):m1(qI(e),t)}function s3(e,t={}){if(e.length===1)return Ue(e[0],t);if(e.length===0)return Zt(t);if(e.some(r=>Lt(r)))throw new Error("Cannot intersect transform types");return kN(e,t)}function ia(e,t){if(e.length===1)return Ue(e[0],t);if(e.length===0)return Zt(t);if(e.some(r=>Lt(r)))throw new Error("Cannot intersect transform types");return m1(e,t)}function Gl(...e){const[t,r]=typeof e[0]=="string"?[e[0],e[1]]:[e[0].$id,e[1]];if(typeof t!="string")throw new Rr("Ref: $ref must be a string");return Ue({[$e]:"Ref",$ref:t},r)}function HN(e,t){return yn("Awaited",[yn(e,t)])}function zN(e){return yn("Awaited",[Gl(e)])}function GN(e){return ia(u3(e))}function QN(e){return jn(u3(e))}function KN(e){return Sh(e)}function u3(e){return e.map(t=>Sh(t))}function Sh(e,t){return Ue(yu(e)?HN(e.target,e.parameters):Kr(e)?GN(e.allOf):On(e)?QN(e.anyOf):ph(e)?KN(e.item):sr(e)?zN(e.$ref):e,t)}function c3(e){const t=[];for(const r of e)t.push(Eu(r));return t}function VN(e){const t=c3(e);return Rj(t)}function YN(e){const t=c3(e);return Fj(t)}function XN(e){return e.map((t,r)=>r.toString())}function ZN(e){return["[number]"]}function JN(e){return globalThis.Object.getOwnPropertyNames(e)}function WN(e){return A1?globalThis.Object.getOwnPropertyNames(e).map(r=>r[0]==="^"&&r[r.length-1]==="$"?r.slice(1,r.length-1):r):[]}function Eu(e){return Kr(e)?VN(e.allOf):On(e)?YN(e.anyOf):Xa(e)?XN(e.items??[]):pu(e)?ZN(e.items):hi(e)?JN(e.properties):yh(e)?WN(e.patternProperties):[]}let A1=!1;function kd(e){A1=!0;const t=Eu(e);return A1=!1,`^(${t.map(o=>`(${o})`).join("|")})$`}function eL(e,t){return yn("KeyOf",[yn(e,t)])}function tL(e){return yn("KeyOf",[Gl(e)])}function nL(e,t){const r=Eu(e),o=rL(r),s=xu(o);return Ue(s,t)}function rL(e){return e.map(t=>t==="[number]"?es():un(t))}function Cx(e,t){return yu(e)?eL(e.target,e.parameters):sr(e)?tL(e.$ref):Br(e)?aL(e,t):nL(e,t)}function iL(e,t){const r={};for(const o of globalThis.Object.getOwnPropertyNames(e))r[o]=Cx(e[o],Er(t));return r}function oL(e,t){return iL(e.properties,t)}function aL(e,t){const r=oL(e,t);return Pn(r)}function sL(e){const t=Eu(e),r=Ix(e,t);return t.map((o,s)=>[t[s],r[s]])}function uL(e){const t=[];for(const r of e)t.push(...Eu(r));return Sj(t)}function cL(e){return e.filter(t=>!$l(t))}function lL(e,t){const r=[];for(const o of e)r.push(...Ix(o,[t]));return cL(r)}function fL(e,t){const r={};for(const o of t)r[o]=s3(lL(e,o));return r}function dL(e,t){const r=uL(e),o=fL(e,r);return Sn(o,t)}function l3(e){return Ue({[$e]:"Date",type:"Date"},e)}function f3(e){return Ue({[$e]:"Null",type:"null"},e)}function d3(e){return Ue({[$e]:"Symbol",type:"symbol"},e)}function h3(e){return Ue({[$e]:"Undefined",type:"undefined"},e)}function p3(e){return Ue({[$e]:"Uint8Array",type:"Uint8Array"},e)}function Ch(e){return Ue({[$e]:"Unknown"},e)}function hL(e){return e.map(t=>Ox(t,!1))}function pL(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=na(Ox(e[r],!1));return t}function Ad(e,t){return t===!0?e:na(e)}function Ox(e,t){return qP(e)||kP(e)?Ad(El(),t):lr(e)?na(vu(hL(e))):jl(e)?p3():rx(e)?l3():cn(e)?Ad(Sn(pL(e)),t):$P(e)?Ad(zl([],Ch()),t):sn(e)?h3():HP(e)?f3():zP(e)?d3():CT(e)?wx():Bi(e)||Pl(e)||nn(e)?un(e):Sn({})}function yL(e,t){return Ue(Ox(e,!0),t)}function gL(e,t){return gu(e)?vu(e.parameters,t):Zt(t)}function mL(e,t){if(sn(e))throw new Error("Enum undefined or empty");const r=globalThis.Object.getOwnPropertyNames(e).filter(c=>isNaN(c)).map(c=>e[c]),s=[...new Set(r)].map(c=>un(c));return jn(s,{...t,[lh]:"Enum"})}class AL extends Rr{}var Oe;(function(e){e[e.Union=0]="Union",e[e.True=1]="True",e[e.False=2]="False"})(Oe||(Oe={}));function Qr(e){return e===Oe.False?e:Oe.True}function wu(e){throw new AL(e)}function ln(e){return ea(e)||Wa(e)||fo(e)||li(e)||ui(e)}function fn(e,t){return ea(t)?m3():Wa(t)?Oh(e,t):fo(t)?Rx(e,t):li(t)?v3():ui(t)?Fx():wu("StructuralRight")}function Fx(e,t){return Oe.True}function bL(e,t){return Wa(t)?Oh(e,t):fo(t)&&t.anyOf.some(r=>ui(r)||li(r))?Oe.True:fo(t)?Oe.Union:li(t)||ui(t)?Oe.True:Oe.Union}function xL(e,t){return li(e)?Oe.False:ui(e)?Oe.Union:ea(e)?Oe.True:Oe.False}function vL(e,t){return Gt(t)&&Fh(t)?Oe.True:ln(t)?fn(e,t):Za(t)?Qr(wt(e.items,t.items)):Oe.False}function EL(e,t){return ln(t)?fn(e,t):dx(t)?Qr(wt(e.items,t.items)):Oe.False}function wL(e,t){return ln(t)?fn(e,t):Gt(t)?Gn(e,t):Dn(t)?Vr(e,t):mh(t)?Oe.True:Oe.False}function y3(e,t){return GT(e)||Ja(e)?Oe.True:Oe.False}function IL(e,t){return ln(t)?fn(e,t):Gt(t)?Gn(e,t):Dn(t)?Vr(e,t):Ja(t)?Oe.True:Oe.False}function SL(e,t){return ln(t)?fn(e,t):Gt(t)?Gn(e,t):Ah(t)?e.parameters.length>t.parameters.length?Oe.False:e.parameters.every((r,o)=>Qr(wt(t.parameters[o],r))===Oe.True)?Qr(wt(e.returns,t.returns)):Oe.False:Oe.False}function CL(e,t){return ln(t)?fn(e,t):Gt(t)?Gn(e,t):Dn(t)?Vr(e,t):bh(t)?Oe.True:Oe.False}function OL(e,t){return ln(t)?fn(e,t):Gt(t)?Gn(e,t):xh(t)?e.parameters.length>t.parameters.length?Oe.False:e.parameters.every((r,o)=>Qr(wt(t.parameters[o],r))===Oe.True)?Qr(wt(e.returns,t.returns)):Oe.False:Oe.False}function g3(e,t){return Wo(e)&&Bi(e.const)||rr(e)||po(e)?Oe.True:Oe.False}function FL(e,t){return po(t)||rr(t)?Oe.True:ln(t)?fn(e,t):Gt(t)?Gn(e,t):Dn(t)?Vr(e,t):Oe.False}function Oh(e,t){return t.allOf.every(r=>wt(e,r)===Oe.True)?Oe.True:Oe.False}function RL(e,t){return e.allOf.some(r=>wt(r,t)===Oe.True)?Oe.True:Oe.False}function BL(e,t){return ln(t)?fn(e,t):hx(t)?Qr(wt(e.items,t.items)):Oe.False}function TL(e,t){return Wo(t)&&t.const===e.const?Oe.True:ln(t)?fn(e,t):Gt(t)?Gn(e,t):Dn(t)?Vr(e,t):ci(t)?x3(e):rr(t)?A3(e):po(t)?g3(e):Ja(t)?y3(e):Oe.False}function m3(e,t){return Oe.False}function _L(e,t){return Oe.True}function $I(e){let[t,r]=[e,0];for(;su(t);)t=t.not,r+=1;return r%2===0?t:Ch()}function ML(e,t){return su(e)?wt($I(e),t):su(t)?wt(e,$I(t)):wu("Invalid fallthrough for Not")}function DL(e,t){return ln(t)?fn(e,t):Gt(t)?Gn(e,t):Dn(t)?Vr(e,t):px(t)?Oe.True:Oe.False}function A3(e,t){return zT(e)||rr(e)||po(e)?Oe.True:Oe.False}function UL(e,t){return ln(t)?fn(e,t):Gt(t)?Gn(e,t):Dn(t)?Vr(e,t):po(t)||rr(t)?Oe.True:Oe.False}function ur(e,t){return Object.getOwnPropertyNames(e.properties).length===t}function kI(e){return Fh(e)}function HI(e){return ur(e,0)||ur(e,1)&&"description"in e.properties&&fo(e.properties.description)&&e.properties.description.anyOf.length===2&&(ci(e.properties.description.anyOf[0])&&Ha(e.properties.description.anyOf[1])||ci(e.properties.description.anyOf[1])&&Ha(e.properties.description.anyOf[0]))}function vg(e){return ur(e,0)}function zI(e){return ur(e,0)}function PL(e){return ur(e,0)}function jL(e){return ur(e,0)}function NL(e){return Fh(e)}function LL(e){const t=es();return ur(e,0)||ur(e,1)&&"length"in e.properties&&Qr(wt(e.properties.length,t))===Oe.True}function qL(e){return ur(e,0)}function Fh(e){const t=es();return ur(e,0)||ur(e,1)&&"length"in e.properties&&Qr(wt(e.properties.length,t))===Oe.True}function $L(e){const t=zl([El()],El());return ur(e,0)||ur(e,1)&&"then"in e.properties&&Qr(wt(e.properties.then,t))===Oe.True}function b3(e,t){return wt(e,t)===Oe.False||qd(e)&&!qd(t)?Oe.False:Oe.True}function Gn(e,t){return li(e)?Oe.False:ui(e)?Oe.Union:ea(e)||HT(e)&&kI(t)||zT(e)&&vg(t)||GT(e)&&zI(t)||xl(e)&&HI(t)||mh(e)&&PL(t)||ci(e)&&kI(t)||xl(e)&&HI(t)||rr(e)&&vg(t)||po(e)&&vg(t)||Ja(e)&&zI(t)||Hl(e)&&NL(t)||bh(e)&&jL(t)||Ah(e)&&qL(t)||xh(e)&&LL(t)?Oe.True:Dn(e)&&ci(b1(e))?t[lh]==="Record"?Oe.True:Oe.False:Dn(e)&&rr(b1(e))?ur(t,0)?Oe.True:Oe.False:Oe.False}function kL(e,t){return ln(t)?fn(e,t):Dn(t)?Vr(e,t):Gt(t)?(()=>{for(const r of Object.getOwnPropertyNames(t.properties)){if(!(r in e.properties)&&!qd(t.properties[r]))return Oe.False;if(qd(t.properties[r]))return Oe.True;if(b3(e.properties[r],t.properties[r])===Oe.False)return Oe.False}return Oe.True})():Oe.False}function HL(e,t){return ln(t)?fn(e,t):Gt(t)&&$L(t)?Oe.True:yx(t)?Qr(wt(e.item,t.item)):Oe.False}function b1(e){return uu in e.patternProperties?es():cu in e.patternProperties?za():wu("Unknown record key pattern")}function x1(e){return uu in e.patternProperties?e.patternProperties[uu]:cu in e.patternProperties?e.patternProperties[cu]:wu("Unable to get record value schema")}function Vr(e,t){const[r,o]=[b1(t),x1(t)];return HT(e)&&rr(r)&&Qr(wt(e,o))===Oe.True?Oe.True:Hl(e)&&rr(r)||ci(e)&&rr(r)||Za(e)&&rr(r)?wt(e,o):Gt(e)?(()=>{for(const s of Object.getOwnPropertyNames(e.properties))if(b3(o,e.properties[s])===Oe.False)return Oe.False;return Oe.True})():Oe.False}function zL(e,t){return ln(t)?fn(e,t):Gt(t)?Gn(e,t):Dn(t)?wt(x1(e),x1(t)):Oe.False}function GL(e,t){const r=bl(e)?za():e,o=bl(t)?za():t;return wt(r,o)}function x3(e,t){return Wo(e)&&nn(e.const)||ci(e)?Oe.True:Oe.False}function QL(e,t){return ln(t)?fn(e,t):Gt(t)?Gn(e,t):Dn(t)?Vr(e,t):ci(t)?Oe.True:Oe.False}function KL(e,t){return ln(t)?fn(e,t):Gt(t)?Gn(e,t):Dn(t)?Vr(e,t):xl(t)?Oe.True:Oe.False}function VL(e,t){return vl(e)?wt($d(e),t):vl(t)?wt(e,$d(t)):wu("Invalid fallthrough for TemplateLiteral")}function YL(e,t){return Za(t)&&e.items!==void 0&&e.items.every(r=>wt(r,t.items)===Oe.True)}function XL(e,t){return ea(e)?Oe.True:li(e)?Oe.False:ui(e)?Oe.Union:Oe.False}function ZL(e,t){return ln(t)?fn(e,t):Gt(t)&&Fh(t)||Za(t)&&YL(e,t)?Oe.True:vh(t)?sn(e.items)&&!sn(t.items)||!sn(e.items)&&sn(t.items)?Oe.False:sn(e.items)&&!sn(t.items)||e.items.every((r,o)=>wt(r,t.items[o])===Oe.True)?Oe.True:Oe.False:Oe.False}function JL(e,t){return ln(t)?fn(e,t):Gt(t)?Gn(e,t):Dn(t)?Vr(e,t):Hl(t)?Oe.True:Oe.False}function WL(e,t){return ln(t)?fn(e,t):Gt(t)?Gn(e,t):Dn(t)?Vr(e,t):Eh(t)?n5(e):Ha(t)?Oe.True:Oe.False}function Rx(e,t){return t.anyOf.some(r=>wt(e,r)===Oe.True)?Oe.True:Oe.False}function e5(e,t){return e.anyOf.every(r=>wt(r,t)===Oe.True)?Oe.True:Oe.False}function v3(e,t){return Oe.True}function t5(e,t){return ea(t)?m3():Wa(t)?Oh(e,t):fo(t)?Rx(e,t):ui(t)?Fx():ci(t)?x3(e):rr(t)?A3(e):po(t)?g3(e):Ja(t)?y3(e):Za(t)?xL(e):vh(t)?XL(e):Gt(t)?Gn(e,t):li(t)?Oe.True:Oe.False}function n5(e,t){return Ha(e)||Ha(e)?Oe.True:Oe.False}function r5(e,t){return Wa(t)?Oh(e,t):fo(t)?Rx(e,t):li(t)?v3():ui(t)?Fx():Gt(t)?Gn(e,t):Eh(t)?Oe.True:Oe.False}function wt(e,t){return vl(e)||vl(t)?VL(e,t):bl(e)||bl(t)?GL(e,t):su(e)||su(t)?ML(e,t):ui(e)?bL(e,t):Za(e)?vL(e,t):mh(e)?wL(e,t):Ja(e)?IL(e,t):dx(e)?EL(e,t):Ah(e)?SL(e,t):bh(e)?CL(e,t):xh(e)?OL(e,t):po(e)?FL(e,t):Wa(e)?RL(e,t):hx(e)?BL(e,t):Wo(e)?TL(e,t):ea(e)?_L():px(e)?DL(e,t):rr(e)?UL(e,t):Gt(e)?kL(e,t):Dn(e)?zL(e,t):ci(e)?QL(e,t):xl(e)?KL(e,t):vh(e)?ZL(e,t):yx(e)?HL(e,t):Hl(e)?JL(e,t):Ha(e)?WL(e,t):fo(e)?e5(e,t):li(e)?t5(e,t):Eh(e)?r5(e,t):wu(`Unknown left type operand '${e[$e]}'`)}function Ql(e,t){return wt(e,t)}function i5(e,t,r,o,s){const c={};for(const l of globalThis.Object.getOwnPropertyNames(e))c[l]=Bx(e[l],t,r,o,Er(s));return c}function o5(e,t,r,o,s){return i5(e.properties,t,r,o,s)}function a5(e,t,r,o,s){const c=o5(e,t,r,o,s);return Pn(c)}function s5(e,t,r,o){const s=Ql(e,t);return s===Oe.Union?jn([r,o]):s===Oe.True?r:o}function Bx(e,t,r,o,s){return Br(e)?a5(e,t,r,o,s):Va(e)?Ue(f5(e,t,r,o,s)):Ue(s5(e,t,r,o),s)}function u5(e,t,r,o,s){return{[e]:Bx(un(e),t,r,o,Er(s))}}function c5(e,t,r,o,s){return e.reduce((c,l)=>({...c,...u5(l,t,r,o,s)}),{})}function l5(e,t,r,o,s){return c5(e.keys,t,r,o,s)}function f5(e,t,r,o,s){const c=l5(e,t,r,o,s);return Pn(c)}function d5(e){return e.allOf.every(t=>Kl(t))}function h5(e){return e.anyOf.some(t=>Kl(t))}function p5(e){return!Kl(e.not)}function Kl(e){return e[$e]==="Intersect"?d5(e):e[$e]==="Union"?h5(e):e[$e]==="Not"?p5(e):e[$e]==="Undefined"}function y5(e,t){return Tx($d(e),t)}function g5(e,t){const r=e.filter(o=>Ql(o,t)===Oe.False);return r.length===1?r[0]:jn(r)}function Tx(e,t,r={}){return Ya(e)?Ue(y5(e,t),r):Br(e)?Ue(b5(e,t),r):Ue(On(e)?g5(e.anyOf,t):Ql(e,t)!==Oe.False?Zt():e,r)}function m5(e,t){const r={};for(const o of globalThis.Object.getOwnPropertyNames(e))r[o]=Tx(e[o],t);return r}function A5(e,t){return m5(e.properties,t)}function b5(e,t){const r=A5(e,t);return Pn(r)}function x5(e,t){return _x($d(e),t)}function v5(e,t){const r=e.filter(o=>Ql(o,t)!==Oe.False);return r.length===1?r[0]:jn(r)}function _x(e,t,r){return Ya(e)?Ue(x5(e,t),r):Br(e)?Ue(I5(e,t),r):Ue(On(e)?v5(e.anyOf,t):Ql(e,t)!==Oe.False?e:Zt(),r)}function E5(e,t){const r={};for(const o of globalThis.Object.getOwnPropertyNames(e))r[o]=_x(e[o],t);return r}function w5(e,t){return E5(e.properties,t)}function I5(e,t){const r=w5(e,t);return Pn(r)}function S5(e,t){return gu(e)?Ue(e.returns,t):Zt(t)}function E3(e){return na(ra(e))}function ts(e,t,r){return Ue({[$e]:"Record",type:"object",patternProperties:{[e]:t}},r)}function Mx(e,t,r){const o={};for(const s of e)o[s]=t;return Sn(o,{...r,[lh]:"Record"})}function C5(e,t,r){return Qj(e)?Mx(ta(e),t,r):ts(e.pattern,t,r)}function O5(e,t,r){return Mx(ta(jn(e)),t,r)}function F5(e,t,r){return Mx([e.toString()],t,r)}function R5(e,t,r){return ts(e.source,t,r)}function B5(e,t,r){const o=sn(e.pattern)?cu:e.pattern;return ts(o,t,r)}function T5(e,t,r){return ts(cu,t,r)}function _5(e,t,r){return ts(wj,t,r)}function M5(e,t,r){return Sn({true:t,false:t},r)}function D5(e,t,r){return ts(uu,t,r)}function U5(e,t,r){return ts(uu,t,r)}function w3(e,t,r={}){return On(e)?O5(e.anyOf,t,r):Ya(e)?C5(e,t,r):Ka(e)?F5(e.const,t,r):ql(e)?M5(e,t,r):Au(e)?D5(e,t,r):bu(e)?U5(e,t,r):jT(e)?R5(e,t,r):kl(e)?B5(e,t,r):DT(e)?T5(e,t,r):$l(e)?_5(e,t,r):Zt(r)}function Dx(e){return globalThis.Object.getOwnPropertyNames(e.patternProperties)[0]}function P5(e){const t=Dx(e);return t===cu?za():t===uu?es():za({pattern:t})}function I3(e){return e.patternProperties[Dx(e)]}function j5(e,t){return t.parameters=Vl(e,t.parameters),t.returns=fi(e,t.returns),t}function N5(e,t){return t.parameters=Vl(e,t.parameters),t.returns=fi(e,t.returns),t}function L5(e,t){return t.allOf=Vl(e,t.allOf),t}function q5(e,t){return t.anyOf=Vl(e,t.anyOf),t}function $5(e,t){return sn(t.items)||(t.items=Vl(e,t.items)),t}function k5(e,t){return t.items=fi(e,t.items),t}function H5(e,t){return t.items=fi(e,t.items),t}function z5(e,t){return t.items=fi(e,t.items),t}function G5(e,t){return t.item=fi(e,t.item),t}function Q5(e,t){const r=X5(e,t.properties);return{...t,...Sn(r)}}function K5(e,t){const r=fi(e,P5(t)),o=fi(e,I3(t)),s=w3(r,o);return{...t,...s}}function V5(e,t){return t.index in e?e[t.index]:Ch()}function Y5(e,t){const r=sx(t),o=Jo(t),s=fi(e,t);return r&&o?E3(s):r&&!o?na(s):!r&&o?ra(s):s}function X5(e,t){return globalThis.Object.getOwnPropertyNames(t).reduce((r,o)=>({...r,[o]:Y5(e,t[o])}),{})}function Vl(e,t){return t.map(r=>fi(e,r))}function fi(e,t){return gu(t)?j5(e,t):mu(t)?N5(e,t):Kr(t)?L5(e,t):On(t)?q5(e,t):Xa(t)?$5(e,t):pu(t)?k5(e,t):fh(t)?H5(e,t):hh(t)?z5(e,t):ph(t)?G5(e,t):hi(t)?Q5(e,t):yh(t)?K5(e,t):UT(t)?V5(e,t):t}function Z5(e,t){return fi(t,ix(e))}function J5(e){return Ue({[$e]:"Integer",type:"integer"},e)}function W5(e,t,r){return{[e]:Iu(un(e),t,Er(r))}}function eq(e,t,r){return e.reduce((s,c)=>({...s,...W5(c,t,r)}),{})}function tq(e,t,r){return eq(e.keys,t,r)}function nq(e,t,r){const o=tq(e,t,r);return Pn(o)}function rq(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toLowerCase(),r].join("")}function iq(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toUpperCase(),r].join("")}function oq(e){return e.toUpperCase()}function aq(e){return e.toLowerCase()}function sq(e,t,r){const o=Ex(e.pattern);if(!Il(o))return{...e,pattern:S3(e.pattern,t)};const l=[...wh(o)].map(h=>un(h)),f=C3(l,t),p=jn(f);return n3([p],r)}function S3(e,t){return typeof e=="string"?t==="Uncapitalize"?rq(e):t==="Capitalize"?iq(e):t==="Uppercase"?oq(e):t==="Lowercase"?aq(e):e:e.toString()}function C3(e,t){return e.map(r=>Iu(r,t))}function Iu(e,t,r={}){return Va(e)?nq(e,t,r):Ya(e)?sq(e,t,r):On(e)?jn(C3(e.anyOf,t),r):Ka(e)?un(S3(e.const,t),r):Ue(e,r)}function uq(e,t={}){return Iu(e,"Capitalize",t)}function cq(e,t={}){return Iu(e,"Lowercase",t)}function lq(e,t={}){return Iu(e,"Uncapitalize",t)}function fq(e,t={}){return Iu(e,"Uppercase",t)}function dq(e,t,r){const o={};for(const s of globalThis.Object.getOwnPropertyNames(e))o[s]=Rh(e[s],t,Er(r));return o}function hq(e,t,r){return dq(e.properties,t,r)}function pq(e,t,r){const o=hq(e,t,r);return Pn(o)}function yq(e,t){return e.map(r=>Ux(r,t))}function gq(e,t){return e.map(r=>Ux(r,t))}function mq(e,t){const{[t]:r,...o}=e;return o}function Aq(e,t){return t.reduce((r,o)=>mq(r,o),e)}function bq(e,t){const r=Sr(e,[xr,"$id","required","properties"]),o=Aq(e.properties,t);return Sn(o,r)}function xq(e){const t=e.reduce((r,o)=>PT(o)?[...r,un(o)]:r,[]);return jn(t)}function Ux(e,t){return Kr(e)?ia(yq(e.allOf,t)):On(e)?jn(gq(e.anyOf,t)):hi(e)?bq(e,t):Sn({})}function Rh(e,t,r){const o=lr(t)?xq(t):t,s=vr(t)?ta(t):t,c=sr(e),l=sr(t);return Br(e)?pq(e,s,r):Va(t)?Iq(e,t,r):c&&l?yn("Omit",[e,o],r):!c&&l?yn("Omit",[e,o],r):c&&!l?yn("Omit",[e,o],r):Ue({...Ux(e,s),...r})}function vq(e,t,r){return{[t]:Rh(e,[t],Er(r))}}function Eq(e,t,r){return t.reduce((o,s)=>({...o,...vq(e,s,r)}),{})}function wq(e,t,r){return Eq(e,t.keys,r)}function Iq(e,t,r){const o=wq(e,t,r);return Pn(o)}function Sq(e,t,r){const o={};for(const s of globalThis.Object.getOwnPropertyNames(e))o[s]=Bh(e[s],t,Er(r));return o}function Cq(e,t,r){return Sq(e.properties,t,r)}function Oq(e,t,r){const o=Cq(e,t,r);return Pn(o)}function Fq(e,t){return e.map(r=>Px(r,t))}function Rq(e,t){return e.map(r=>Px(r,t))}function Bq(e,t){const r={};for(const o of t)o in e&&(r[o]=e[o]);return r}function Tq(e,t){const r=Sr(e,[xr,"$id","required","properties"]),o=Bq(e.properties,t);return Sn(o,r)}function _q(e){const t=e.reduce((r,o)=>PT(o)?[...r,un(o)]:r,[]);return jn(t)}function Px(e,t){return Kr(e)?ia(Fq(e.allOf,t)):On(e)?jn(Rq(e.anyOf,t)):hi(e)?Tq(e,t):Sn({})}function Bh(e,t,r){const o=lr(t)?_q(t):t,s=vr(t)?ta(t):t,c=sr(e),l=sr(t);return Br(e)?Oq(e,s,r):Va(t)?Pq(e,t,r):c&&l?yn("Pick",[e,o],r):!c&&l?yn("Pick",[e,o],r):c&&!l?yn("Pick",[e,o],r):Ue({...Px(e,s),...r})}function Mq(e,t,r){return{[t]:Bh(e,[t],Er(r))}}function Dq(e,t,r){return t.reduce((o,s)=>({...o,...Mq(e,s,r)}),{})}function Uq(e,t,r){return Dq(e,t.keys,r)}function Pq(e,t,r){const o=Uq(e,t,r);return Pn(o)}function jq(e,t){return yn("Partial",[yn(e,t)])}function Nq(e){return yn("Partial",[Gl(e)])}function Lq(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=ra(e[r]);return t}function qq(e){const t=Sr(e,[xr,"$id","required","properties"]),r=Lq(e.properties);return Sn(r,t)}function GI(e){return e.map(t=>O3(t))}function O3(e){return yu(e)?jq(e.target,e.parameters):sr(e)?Nq(e.$ref):Kr(e)?ia(GI(e.allOf)):On(e)?jn(GI(e.anyOf)):hi(e)?qq(e):dh(e)||ql(e)||Au(e)||Ka(e)||ux(e)||bu(e)||kl(e)||cx(e)||gh(e)?e:Sn({})}function jx(e,t){return Br(e)?Hq(e,t):Ue({...O3(e),...t})}function $q(e,t){const r={};for(const o of globalThis.Object.getOwnPropertyNames(e))r[o]=jx(e[o],Er(t));return r}function kq(e,t){return $q(e.properties,t)}function Hq(e,t){const r=kq(e,t);return Pn(r)}function zq(e,t){return yn("Required",[yn(e,t)])}function Gq(e){return yn("Required",[Gl(e)])}function Qq(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=Sr(e[r],[ho]);return t}function Kq(e){const t=Sr(e,[xr,"$id","required","properties"]),r=Qq(e.properties);return Sn(r,t)}function QI(e){return e.map(t=>F3(t))}function F3(e){return yu(e)?zq(e.target,e.parameters):sr(e)?Gq(e.$ref):Kr(e)?ia(QI(e.allOf)):On(e)?jn(QI(e.anyOf)):hi(e)?Kq(e):dh(e)||ql(e)||Au(e)||Ka(e)||ux(e)||bu(e)||kl(e)||cx(e)||gh(e)?e:Sn({})}function Nx(e,t){return Br(e)?Xq(e,t):Ue({...F3(e),...t})}function Vq(e,t){const r={};for(const o of globalThis.Object.getOwnPropertyNames(e))r[o]=Nx(e[o],t);return r}function Yq(e,t){return Vq(e.properties,t)}function Xq(e,t){const r=Yq(e,t);return Pn(r)}function Zq(e,t){return t.map(r=>sr(r)?Lx(e,r.$ref):Cr(e,r))}function Lx(e,t){return t in e?sr(e[t])?Lx(e,e[t].$ref):Cr(e,e[t]):Zt()}function Jq(e){return Sh(e[0])}function Wq(e){return Ih(e[0],e[1])}function e$(e){return Cx(e[0])}function t$(e){return jx(e[0])}function n$(e){return Rh(e[0],e[1])}function r$(e){return Bh(e[0],e[1])}function i$(e){return Nx(e[0])}function o$(e,t,r){const o=Zq(e,r);return t==="Awaited"?Jq(o):t==="Index"?Wq(o):t==="KeyOf"?e$(o):t==="Partial"?t$(o):t==="Omit"?n$(o):t==="Pick"?r$(o):t==="Required"?i$(o):Zt()}function a$(e,t){return Ax(Cr(e,t))}function s$(e,t){return bx(Cr(e,t))}function u$(e,t,r){return xx(Yl(e,t),Cr(e,r))}function c$(e,t,r){return zl(Yl(e,t),Cr(e,r))}function l$(e,t){return ia(Yl(e,t))}function f$(e,t){return Sx(Cr(e,t))}function d$(e,t){return Sn(globalThis.Object.keys(t).reduce((r,o)=>({...r,[o]:Cr(e,t[o])}),{}))}function h$(e,t){const[r,o]=[Cr(e,I3(t)),Dx(t)],s=ix(t);return s.patternProperties[o]=r,s}function p$(e,t){return sr(t)?{...Lx(e,t.$ref),[xr]:t[xr]}:t}function y$(e,t){return vu(Yl(e,t))}function g$(e,t){return jn(Yl(e,t))}function Yl(e,t){return t.map(r=>Cr(e,r))}function Cr(e,t){return Jo(t)?Ue(Cr(e,Sr(t,[ho])),t):sx(t)?Ue(Cr(e,Sr(t,[Ll])),t):Lt(t)?Ue(p$(e,t),t):pu(t)?Ue(a$(e,t.items),t):fh(t)?Ue(s$(e,t.items),t):yu(t)?Ue(o$(e,t.target,t.parameters)):gu(t)?Ue(u$(e,t.parameters,t.returns),t):mu(t)?Ue(c$(e,t.parameters,t.returns),t):Kr(t)?Ue(l$(e,t.allOf),t):hh(t)?Ue(f$(e,t.items),t):hi(t)?Ue(d$(e,t.properties),t):yh(t)?Ue(h$(e,t)):Xa(t)?Ue(y$(e,t.items||[]),t):On(t)?Ue(g$(e,t.anyOf),t):t}function m$(e,t){return t in e?Cr(e,e[t]):Zt()}function A$(e){return globalThis.Object.getOwnPropertyNames(e).reduce((t,r)=>({...t,[r]:m$(e,r)}),{})}class b${constructor(t){const r=A$(t),o=this.WithIdentifiers(r);this.$defs=o}Import(t,r){const o={...this.$defs,[t]:Ue(this.$defs[t],r)};return Ue({[$e]:"Import",$defs:o,$ref:t})}WithIdentifiers(t){return globalThis.Object.getOwnPropertyNames(t).reduce((r,o)=>({...r,[o]:{...t[o],$id:o}}),{})}}function x$(e){return new b$(e)}function v$(e,t){return Ue({[$e]:"Not",not:e},t)}function E$(e,t){return mu(e)?vu(e.parameters,t):Zt()}let w$=0;function I$(e,t={}){sn(t.$id)&&(t.$id=`T${w$++}`);const r=ix(e({[$e]:"This",$ref:`${t.$id}`}));return r.$id=t.$id,Ue({[lh]:"Recursive",...r},t)}function S$(e,t){const r=nn(e)?new globalThis.RegExp(e):e;return Ue({[$e]:"RegExp",type:"RegExp",source:r.source,flags:r.flags},t)}function C$(e){return Kr(e)?e.allOf:On(e)?e.anyOf:Xa(e)?e.items??[]:[]}function O$(e){return C$(e)}function F$(e,t){return mu(e)?Ue(e.returns,t):Zt(t)}class R${constructor(t){this.schema=t}Decode(t){return new B$(this.schema,t)}}class B${constructor(t,r){this.schema=t,this.decode=r}EncodeTransform(t,r){const c={Encode:l=>r[xr].Encode(t(l)),Decode:l=>this.decode(r[xr].Decode(l))};return{...r,[xr]:c}}EncodeSchema(t,r){const o={Decode:this.decode,Encode:t};return{...r,[xr]:o}}Encode(t){return Lt(this.schema)?this.EncodeTransform(t,this.schema):this.EncodeSchema(t,this.schema)}}function T$(e){return new R$(e)}function _$(e={}){return Ue({[$e]:e[$e]??"Unsafe"},e)}function M$(e){return Ue({[$e]:"Void",type:"void"},e)}const D$=Object.freeze(Object.defineProperty({__proto__:null,Any:El,Argument:Bj,Array:Ax,AsyncIterator:bx,Awaited:Sh,BigInt:wx,Boolean:e3,Capitalize:uq,Composite:dL,Const:yL,Constructor:xx,ConstructorParameters:gL,Date:l3,Enum:mL,Exclude:Tx,Extends:Bx,Extract:_x,Function:zl,Index:Ih,InstanceType:S5,Instantiate:Z5,Integer:J5,Intersect:ia,Iterator:Sx,KeyOf:Cx,Literal:un,Lowercase:cq,Mapped:MN,Module:x$,Never:Zt,Not:v$,Null:f3,Number:es,Object:Sn,Omit:Rh,Optional:ra,Parameters:E$,Partial:jx,Pick:Bh,Promise:o3,Readonly:na,ReadonlyOptional:E3,Record:w3,Recursive:I$,Ref:Gl,RegExp:S$,Required:Nx,Rest:O$,ReturnType:F$,String:za,Symbol:d3,TemplateLiteral:n3,Transform:T$,Tuple:vu,Uint8Array:p3,Uncapitalize:lq,Undefined:h3,Union:jn,Unknown:Ch,Unsafe:_$,Uppercase:fq,Void:M$},Symbol.toStringTag,{value:"Module"})),E=D$;function U$(e){switch(e.errorType){case Se.ArrayContains:return"Expected array to contain at least one matching value";case Se.ArrayMaxContains:return`Expected array to contain no more than ${e.schema.maxContains} matching values`;case Se.ArrayMinContains:return`Expected array to contain at least ${e.schema.minContains} matching values`;case Se.ArrayMaxItems:return`Expected array length to be less or equal to ${e.schema.maxItems}`;case Se.ArrayMinItems:return`Expected array length to be greater or equal to ${e.schema.minItems}`;case Se.ArrayUniqueItems:return"Expected array elements to be unique";case Se.Array:return"Expected array";case Se.AsyncIterator:return"Expected AsyncIterator";case Se.BigIntExclusiveMaximum:return`Expected bigint to be less than ${e.schema.exclusiveMaximum}`;case Se.BigIntExclusiveMinimum:return`Expected bigint to be greater than ${e.schema.exclusiveMinimum}`;case Se.BigIntMaximum:return`Expected bigint to be less or equal to ${e.schema.maximum}`;case Se.BigIntMinimum:return`Expected bigint to be greater or equal to ${e.schema.minimum}`;case Se.BigIntMultipleOf:return`Expected bigint to be a multiple of ${e.schema.multipleOf}`;case Se.BigInt:return"Expected bigint";case Se.Boolean:return"Expected boolean";case Se.DateExclusiveMinimumTimestamp:return`Expected Date timestamp to be greater than ${e.schema.exclusiveMinimumTimestamp}`;case Se.DateExclusiveMaximumTimestamp:return`Expected Date timestamp to be less than ${e.schema.exclusiveMaximumTimestamp}`;case Se.DateMinimumTimestamp:return`Expected Date timestamp to be greater or equal to ${e.schema.minimumTimestamp}`;case Se.DateMaximumTimestamp:return`Expected Date timestamp to be less or equal to ${e.schema.maximumTimestamp}`;case Se.DateMultipleOfTimestamp:return`Expected Date timestamp to be a multiple of ${e.schema.multipleOfTimestamp}`;case Se.Date:return"Expected Date";case Se.Function:return"Expected function";case Se.IntegerExclusiveMaximum:return`Expected integer to be less than ${e.schema.exclusiveMaximum}`;case Se.IntegerExclusiveMinimum:return`Expected integer to be greater than ${e.schema.exclusiveMinimum}`;case Se.IntegerMaximum:return`Expected integer to be less or equal to ${e.schema.maximum}`;case Se.IntegerMinimum:return`Expected integer to be greater or equal to ${e.schema.minimum}`;case Se.IntegerMultipleOf:return`Expected integer to be a multiple of ${e.schema.multipleOf}`;case Se.Integer:return"Expected integer";case Se.IntersectUnevaluatedProperties:return"Unexpected property";case Se.Intersect:return"Expected all values to match";case Se.Iterator:return"Expected Iterator";case Se.Literal:return`Expected ${typeof e.schema.const=="string"?`'${e.schema.const}'`:e.schema.const}`;case Se.Never:return"Never";case Se.Not:return"Value should not match";case Se.Null:return"Expected null";case Se.NumberExclusiveMaximum:return`Expected number to be less than ${e.schema.exclusiveMaximum}`;case Se.NumberExclusiveMinimum:return`Expected number to be greater than ${e.schema.exclusiveMinimum}`;case Se.NumberMaximum:return`Expected number to be less or equal to ${e.schema.maximum}`;case Se.NumberMinimum:return`Expected number to be greater or equal to ${e.schema.minimum}`;case Se.NumberMultipleOf:return`Expected number to be a multiple of ${e.schema.multipleOf}`;case Se.Number:return"Expected number";case Se.Object:return"Expected object";case Se.ObjectAdditionalProperties:return"Unexpected property";case Se.ObjectMaxProperties:return`Expected object to have no more than ${e.schema.maxProperties} properties`;case Se.ObjectMinProperties:return`Expected object to have at least ${e.schema.minProperties} properties`;case Se.ObjectRequiredProperty:return"Expected required property";case Se.Promise:return"Expected Promise";case Se.RegExp:return"Expected string to match regular expression";case Se.StringFormatUnknown:return`Unknown format '${e.schema.format}'`;case Se.StringFormat:return`Expected string to match '${e.schema.format}' format`;case Se.StringMaxLength:return`Expected string length less or equal to ${e.schema.maxLength}`;case Se.StringMinLength:return`Expected string length greater or equal to ${e.schema.minLength}`;case Se.StringPattern:return`Expected string to match '${e.schema.pattern}'`;case Se.String:return"Expected string";case Se.Symbol:return"Expected symbol";case Se.TupleLength:return`Expected tuple to have ${e.schema.maxItems||0} elements`;case Se.Tuple:return"Expected tuple";case Se.Uint8ArrayMaxByteLength:return`Expected byte length less or equal to ${e.schema.maxByteLength}`;case Se.Uint8ArrayMinByteLength:return`Expected byte length greater or equal to ${e.schema.minByteLength}`;case Se.Uint8Array:return"Expected Uint8Array";case Se.Undefined:return"Expected undefined";case Se.Union:return"Expected union value";case Se.Void:return"Expected void";case Se.Kind:return`Expected kind '${e.schema[$e]}'`;default:return"Unknown error type"}}let P$=U$;function j$(){return P$}class N$ extends Rr{constructor(t){super(`Unable to dereference schema with $id '${t.$ref}'`),this.schema=t}}function L$(e,t){const r=t.find(o=>o.$id===e.$ref);if(r===void 0)throw new N$(e);return pi(r,t)}function Th(e,t){return!Ci(e.$id)||t.some(r=>r.$id===e.$id)||t.push(e),t}function pi(e,t){return e[$e]==="This"||e[$e]==="Ref"?L$(e,t):e}class q$ extends Rr{constructor(t){super("Unable to hash value"),this.value=t}}var Or;(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"})(Or||(Or={}));let Ks=BigInt("14695981039346656037");const[$$,k$]=[BigInt("1099511628211"),BigInt("18446744073709551616")],H$=Array.from({length:256}).map((e,t)=>BigInt(t)),R3=new Float64Array(1),B3=new DataView(R3.buffer),T3=new Uint8Array(R3.buffer);function*z$(e){const t=e===0?1:Math.ceil(Math.floor(Math.log2(e)+1)/8);for(let r=0;r<t;r++)yield e>>8*(t-1-r)&255}function G$(e){zn(Or.Array);for(const t of e)fu(t)}function Q$(e){zn(Or.Boolean),zn(e?1:0)}function K$(e){zn(Or.BigInt),B3.setBigInt64(0,e);for(const t of T3)zn(t)}function V$(e){zn(Or.Date),fu(e.getTime())}function Y$(e){zn(Or.Null)}function X$(e){zn(Or.Number),B3.setFloat64(0,e);for(const t of T3)zn(t)}function Z$(e){zn(Or.Object);for(const t of globalThis.Object.getOwnPropertyNames(e).sort())fu(t),fu(e[t])}function J$(e){zn(Or.String);for(let t=0;t<e.length;t++)for(const r of z$(e.charCodeAt(t)))zn(r)}function W$(e){zn(Or.Symbol),fu(e.description)}function e7(e){zn(Or.Uint8Array);for(let t=0;t<e.length;t++)zn(e[t])}function t7(e){return zn(Or.Undefined)}function fu(e){if(Ir(e))return G$(e);if(sh(e))return Q$(e);if(uh(e))return K$(e);if(Nl(e))return V$(e);if(ah(e))return Y$();if(ao(e))return X$(e);if(wr(e))return Z$(e);if(Ci(e))return J$(e);if(ch(e))return W$(e);if(ox(e))return e7(e);if(_i(e))return t7();throw new q$(e)}function zn(e){Ks=Ks^H$[e],Ks=Ks*$$%k$}function _3(e){return Ks=BigInt("14695981039346656037"),fu(e),Ks}class n7 extends Rr{constructor(t){super("Unknown type"),this.schema=t}}function r7(e){return e[$e]==="Any"||e[$e]==="Unknown"}function at(e){return e!==void 0}function i7(e,t,r){return!0}function o7(e,t,r){return!0}function a7(e,t,r){if(!Ir(r)||at(e.minItems)&&!(r.length>=e.minItems)||at(e.maxItems)&&!(r.length<=e.maxItems)||!r.every(c=>En(e.items,t,c))||e.uniqueItems===!0&&!(function(){const c=new Set;for(const l of r){const f=_3(l);if(c.has(f))return!1;c.add(f)}return!0})())return!1;if(!(at(e.contains)||ao(e.minContains)||ao(e.maxContains)))return!0;const o=at(e.contains)?e.contains:Zt(),s=r.reduce((c,l)=>En(o,t,l)?c+1:c,0);return!(s===0||ao(e.minContains)&&s<e.minContains||ao(e.maxContains)&&s>e.maxContains)}function s7(e,t,r){return FT(r)}function u7(e,t,r){return!(!uh(r)||at(e.exclusiveMaximum)&&!(r<e.exclusiveMaximum)||at(e.exclusiveMinimum)&&!(r>e.exclusiveMinimum)||at(e.maximum)&&!(r<=e.maximum)||at(e.minimum)&&!(r>=e.minimum)||at(e.multipleOf)&&r%e.multipleOf!==BigInt(0))}function c7(e,t,r){return sh(r)}function l7(e,t,r){return En(e.returns,t,r.prototype)}function f7(e,t,r){return!(!Nl(r)||at(e.exclusiveMaximumTimestamp)&&!(r.getTime()<e.exclusiveMaximumTimestamp)||at(e.exclusiveMinimumTimestamp)&&!(r.getTime()>e.exclusiveMinimumTimestamp)||at(e.maximumTimestamp)&&!(r.getTime()<=e.maximumTimestamp)||at(e.minimumTimestamp)&&!(r.getTime()>=e.minimumTimestamp)||at(e.multipleOfTimestamp)&&r.getTime()%e.multipleOfTimestamp!==0)}function d7(e,t,r){return ax(r)}function h7(e,t,r){const o=globalThis.Object.values(e.$defs),s=e.$defs[e.$ref];return En(s,[...t,...o],r)}function p7(e,t,r){return!(!_T(r)||at(e.exclusiveMaximum)&&!(r<e.exclusiveMaximum)||at(e.exclusiveMinimum)&&!(r>e.exclusiveMinimum)||at(e.maximum)&&!(r<=e.maximum)||at(e.minimum)&&!(r>=e.minimum)||at(e.multipleOf)&&r%e.multipleOf!==0)}function y7(e,t,r){const o=e.allOf.every(s=>En(s,t,r));if(e.unevaluatedProperties===!1){const s=new RegExp(kd(e)),c=Object.getOwnPropertyNames(r).every(l=>s.test(l));return o&&c}else if(vr(e.unevaluatedProperties)){const s=new RegExp(kd(e)),c=Object.getOwnPropertyNames(r).every(l=>s.test(l)||En(e.unevaluatedProperties,t,r[l]));return o&&c}else return o}function g7(e,t,r){return RT(r)}function m7(e,t,r){return r===e.const}function A7(e,t,r){return!1}function b7(e,t,r){return!En(e.not,t,r)}function x7(e,t,r){return ah(r)}function v7(e,t,r){return!(!ar.IsNumberLike(r)||at(e.exclusiveMaximum)&&!(r<e.exclusiveMaximum)||at(e.exclusiveMinimum)&&!(r>e.exclusiveMinimum)||at(e.minimum)&&!(r>=e.minimum)||at(e.maximum)&&!(r<=e.maximum)||at(e.multipleOf)&&r%e.multipleOf!==0)}function E7(e,t,r){if(!ar.IsObjectLike(r)||at(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)||at(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties))return!1;const o=Object.getOwnPropertyNames(e.properties);for(const s of o){const c=e.properties[s];if(e.required&&e.required.includes(s)){if(!En(c,t,r[s])||(Kl(c)||r7(c))&&!(s in r))return!1}else if(ar.IsExactOptionalProperty(r,s)&&!En(c,t,r[s]))return!1}if(e.additionalProperties===!1){const s=Object.getOwnPropertyNames(r);return e.required&&e.required.length===o.length&&s.length===o.length?!0:s.every(c=>o.includes(c))}else return typeof e.additionalProperties=="object"?Object.getOwnPropertyNames(r).every(c=>o.includes(c)||En(e.additionalProperties,t,r[c])):!0}function w7(e,t,r){return BT(r)}function I7(e,t,r){if(!ar.IsRecordLike(r)||at(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)||at(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties))return!1;const[o,s]=Object.entries(e.patternProperties)[0],c=new RegExp(o),l=Object.entries(r).every(([h,A])=>c.test(h)?En(s,t,A):!0),f=typeof e.additionalProperties=="object"?Object.entries(r).every(([h,A])=>c.test(h)?!0:En(e.additionalProperties,t,A)):!0,p=e.additionalProperties===!1?Object.getOwnPropertyNames(r).every(h=>c.test(h)):!0;return l&&f&&p}function S7(e,t,r){return En(pi(e,t),t,r)}function C7(e,t,r){const o=new RegExp(e.source,e.flags);return at(e.minLength)&&!(r.length>=e.minLength)||at(e.maxLength)&&!(r.length<=e.maxLength)?!1:o.test(r)}function O7(e,t,r){return!Ci(r)||at(e.minLength)&&!(r.length>=e.minLength)||at(e.maxLength)&&!(r.length<=e.maxLength)||at(e.pattern)&&!new RegExp(e.pattern).test(r)?!1:at(e.format)?KT(e.format)?VT(e.format)(r):!1:!0}function F7(e,t,r){return ch(r)}function R7(e,t,r){return Ci(r)&&new RegExp(e.pattern).test(r)}function B7(e,t,r){return En(pi(e,t),t,r)}function T7(e,t,r){if(!Ir(r)||e.items===void 0&&r.length!==0||r.length!==e.maxItems)return!1;if(!e.items)return!0;for(let o=0;o<e.items.length;o++)if(!En(e.items[o],t,r[o]))return!1;return!0}function _7(e,t,r){return _i(r)}function M7(e,t,r){return e.anyOf.some(o=>En(o,t,r))}function D7(e,t,r){return!(!ox(r)||at(e.maxByteLength)&&!(r.length<=e.maxByteLength)||at(e.minByteLength)&&!(r.length>=e.minByteLength))}function U7(e,t,r){return!0}function P7(e,t,r){return ar.IsVoidLike(r)}function j7(e,t,r){return mx(e[$e])?XT(e[$e])(e,r):!1}function En(e,t,r){const o=at(e.$id)?Th(e,t):t,s=e;switch(s[$e]){case"Any":return i7();case"Argument":return o7();case"Array":return a7(s,o,r);case"AsyncIterator":return s7(s,o,r);case"BigInt":return u7(s,o,r);case"Boolean":return c7(s,o,r);case"Constructor":return l7(s,o,r);case"Date":return f7(s,o,r);case"Function":return d7(s,o,r);case"Import":return h7(s,o,r);case"Integer":return p7(s,o,r);case"Intersect":return y7(s,o,r);case"Iterator":return g7(s,o,r);case"Literal":return m7(s,o,r);case"Never":return A7();case"Not":return b7(s,o,r);case"Null":return x7(s,o,r);case"Number":return v7(s,o,r);case"Object":return E7(s,o,r);case"Promise":return w7(s,o,r);case"Record":return I7(s,o,r);case"Ref":return S7(s,o,r);case"RegExp":return C7(s,o,r);case"String":return O7(s,o,r);case"Symbol":return F7(s,o,r);case"TemplateLiteral":return R7(s,o,r);case"This":return B7(s,o,r);case"Tuple":return T7(s,o,r);case"Undefined":return _7(s,o,r);case"Union":return M7(s,o,r);case"Uint8Array":return D7(s,o,r);case"Unknown":return U7();case"Void":return P7(s,o,r);default:if(!mx(s[$e]))throw new n7(s);return j7(s,o,r)}}function _h(...e){return e.length===3?En(e[0],e[1],e[2]):En(e[0],[],e[1])}var Se;(function(e){e[e.ArrayContains=0]="ArrayContains",e[e.ArrayMaxContains=1]="ArrayMaxContains",e[e.ArrayMaxItems=2]="ArrayMaxItems",e[e.ArrayMinContains=3]="ArrayMinContains",e[e.ArrayMinItems=4]="ArrayMinItems",e[e.ArrayUniqueItems=5]="ArrayUniqueItems",e[e.Array=6]="Array",e[e.AsyncIterator=7]="AsyncIterator",e[e.BigIntExclusiveMaximum=8]="BigIntExclusiveMaximum",e[e.BigIntExclusiveMinimum=9]="BigIntExclusiveMinimum",e[e.BigIntMaximum=10]="BigIntMaximum",e[e.BigIntMinimum=11]="BigIntMinimum",e[e.BigIntMultipleOf=12]="BigIntMultipleOf",e[e.BigInt=13]="BigInt",e[e.Boolean=14]="Boolean",e[e.DateExclusiveMaximumTimestamp=15]="DateExclusiveMaximumTimestamp",e[e.DateExclusiveMinimumTimestamp=16]="DateExclusiveMinimumTimestamp",e[e.DateMaximumTimestamp=17]="DateMaximumTimestamp",e[e.DateMinimumTimestamp=18]="DateMinimumTimestamp",e[e.DateMultipleOfTimestamp=19]="DateMultipleOfTimestamp",e[e.Date=20]="Date",e[e.Function=21]="Function",e[e.IntegerExclusiveMaximum=22]="IntegerExclusiveMaximum",e[e.IntegerExclusiveMinimum=23]="IntegerExclusiveMinimum",e[e.IntegerMaximum=24]="IntegerMaximum",e[e.IntegerMinimum=25]="IntegerMinimum",e[e.IntegerMultipleOf=26]="IntegerMultipleOf",e[e.Integer=27]="Integer",e[e.IntersectUnevaluatedProperties=28]="IntersectUnevaluatedProperties",e[e.Intersect=29]="Intersect",e[e.Iterator=30]="Iterator",e[e.Kind=31]="Kind",e[e.Literal=32]="Literal",e[e.Never=33]="Never",e[e.Not=34]="Not",e[e.Null=35]="Null",e[e.NumberExclusiveMaximum=36]="NumberExclusiveMaximum",e[e.NumberExclusiveMinimum=37]="NumberExclusiveMinimum",e[e.NumberMaximum=38]="NumberMaximum",e[e.NumberMinimum=39]="NumberMinimum",e[e.NumberMultipleOf=40]="NumberMultipleOf",e[e.Number=41]="Number",e[e.ObjectAdditionalProperties=42]="ObjectAdditionalProperties",e[e.ObjectMaxProperties=43]="ObjectMaxProperties",e[e.ObjectMinProperties=44]="ObjectMinProperties",e[e.ObjectRequiredProperty=45]="ObjectRequiredProperty",e[e.Object=46]="Object",e[e.Promise=47]="Promise",e[e.RegExp=48]="RegExp",e[e.StringFormatUnknown=49]="StringFormatUnknown",e[e.StringFormat=50]="StringFormat",e[e.StringMaxLength=51]="StringMaxLength",e[e.StringMinLength=52]="StringMinLength",e[e.StringPattern=53]="StringPattern",e[e.String=54]="String",e[e.Symbol=55]="Symbol",e[e.TupleLength=56]="TupleLength",e[e.Tuple=57]="Tuple",e[e.Uint8ArrayMaxByteLength=58]="Uint8ArrayMaxByteLength",e[e.Uint8ArrayMinByteLength=59]="Uint8ArrayMinByteLength",e[e.Uint8Array=60]="Uint8Array",e[e.Undefined=61]="Undefined",e[e.Union=62]="Union",e[e.Void=63]="Void"})(Se||(Se={}));class N7 extends Rr{constructor(t){super("Unknown type"),this.schema=t}}function no(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function ot(e){return e!==void 0}class M3{constructor(t){this.iterator=t}[Symbol.iterator](){return this.iterator}First(){const t=this.iterator.next();return t.done?void 0:t.value}}function Pe(e,t,r,o,s=[]){return{type:e,schema:t,path:r,value:o,message:j$()({errorType:e,path:r,schema:t,value:o,errors:s}),errors:s}}function*L7(e,t,r,o){}function*q7(e,t,r,o){}function*$7(e,t,r,o){if(!Ir(o))return yield Pe(Se.Array,e,r,o);ot(e.minItems)&&!(o.length>=e.minItems)&&(yield Pe(Se.ArrayMinItems,e,r,o)),ot(e.maxItems)&&!(o.length<=e.maxItems)&&(yield Pe(Se.ArrayMaxItems,e,r,o));for(let l=0;l<o.length;l++)yield*wn(e.items,t,`${r}/${l}`,o[l]);if(e.uniqueItems===!0&&!(function(){const l=new Set;for(const f of o){const p=_3(f);if(l.has(p))return!1;l.add(p)}return!0})()&&(yield Pe(Se.ArrayUniqueItems,e,r,o)),!(ot(e.contains)||ot(e.minContains)||ot(e.maxContains)))return;const s=ot(e.contains)?e.contains:Zt(),c=o.reduce((l,f,p)=>wn(s,t,`${r}${p}`,f).next().done===!0?l+1:l,0);c===0&&(yield Pe(Se.ArrayContains,e,r,o)),ao(e.minContains)&&c<e.minContains&&(yield Pe(Se.ArrayMinContains,e,r,o)),ao(e.maxContains)&&c>e.maxContains&&(yield Pe(Se.ArrayMaxContains,e,r,o))}function*k7(e,t,r,o){FT(o)||(yield Pe(Se.AsyncIterator,e,r,o))}function*H7(e,t,r,o){if(!uh(o))return yield Pe(Se.BigInt,e,r,o);ot(e.exclusiveMaximum)&&!(o<e.exclusiveMaximum)&&(yield Pe(Se.BigIntExclusiveMaximum,e,r,o)),ot(e.exclusiveMinimum)&&!(o>e.exclusiveMinimum)&&(yield Pe(Se.BigIntExclusiveMinimum,e,r,o)),ot(e.maximum)&&!(o<=e.maximum)&&(yield Pe(Se.BigIntMaximum,e,r,o)),ot(e.minimum)&&!(o>=e.minimum)&&(yield Pe(Se.BigIntMinimum,e,r,o)),ot(e.multipleOf)&&o%e.multipleOf!==BigInt(0)&&(yield Pe(Se.BigIntMultipleOf,e,r,o))}function*z7(e,t,r,o){sh(o)||(yield Pe(Se.Boolean,e,r,o))}function*G7(e,t,r,o){yield*wn(e.returns,t,r,o.prototype)}function*Q7(e,t,r,o){if(!Nl(o))return yield Pe(Se.Date,e,r,o);ot(e.exclusiveMaximumTimestamp)&&!(o.getTime()<e.exclusiveMaximumTimestamp)&&(yield Pe(Se.DateExclusiveMaximumTimestamp,e,r,o)),ot(e.exclusiveMinimumTimestamp)&&!(o.getTime()>e.exclusiveMinimumTimestamp)&&(yield Pe(Se.DateExclusiveMinimumTimestamp,e,r,o)),ot(e.maximumTimestamp)&&!(o.getTime()<=e.maximumTimestamp)&&(yield Pe(Se.DateMaximumTimestamp,e,r,o)),ot(e.minimumTimestamp)&&!(o.getTime()>=e.minimumTimestamp)&&(yield Pe(Se.DateMinimumTimestamp,e,r,o)),ot(e.multipleOfTimestamp)&&o.getTime()%e.multipleOfTimestamp!==0&&(yield Pe(Se.DateMultipleOfTimestamp,e,r,o))}function*K7(e,t,r,o){ax(o)||(yield Pe(Se.Function,e,r,o))}function*V7(e,t,r,o){const s=globalThis.Object.values(e.$defs),c=e.$defs[e.$ref];yield*wn(c,[...t,...s],r,o)}function*Y7(e,t,r,o){if(!_T(o))return yield Pe(Se.Integer,e,r,o);ot(e.exclusiveMaximum)&&!(o<e.exclusiveMaximum)&&(yield Pe(Se.IntegerExclusiveMaximum,e,r,o)),ot(e.exclusiveMinimum)&&!(o>e.exclusiveMinimum)&&(yield Pe(Se.IntegerExclusiveMinimum,e,r,o)),ot(e.maximum)&&!(o<=e.maximum)&&(yield Pe(Se.IntegerMaximum,e,r,o)),ot(e.minimum)&&!(o>=e.minimum)&&(yield Pe(Se.IntegerMinimum,e,r,o)),ot(e.multipleOf)&&o%e.multipleOf!==0&&(yield Pe(Se.IntegerMultipleOf,e,r,o))}function*X7(e,t,r,o){let s=!1;for(const c of e.allOf)for(const l of wn(c,t,r,o))s=!0,yield l;if(s)return yield Pe(Se.Intersect,e,r,o);if(e.unevaluatedProperties===!1){const c=new RegExp(kd(e));for(const l of Object.getOwnPropertyNames(o))c.test(l)||(yield Pe(Se.IntersectUnevaluatedProperties,e,`${r}/${l}`,o))}if(typeof e.unevaluatedProperties=="object"){const c=new RegExp(kd(e));for(const l of Object.getOwnPropertyNames(o))if(!c.test(l)){const f=wn(e.unevaluatedProperties,t,`${r}/${l}`,o[l]).next();f.done||(yield f.value)}}}function*Z7(e,t,r,o){RT(o)||(yield Pe(Se.Iterator,e,r,o))}function*J7(e,t,r,o){o!==e.const&&(yield Pe(Se.Literal,e,r,o))}function*W7(e,t,r,o){yield Pe(Se.Never,e,r,o)}function*ek(e,t,r,o){wn(e.not,t,r,o).next().done===!0&&(yield Pe(Se.Not,e,r,o))}function*tk(e,t,r,o){ah(o)||(yield Pe(Se.Null,e,r,o))}function*nk(e,t,r,o){if(!ar.IsNumberLike(o))return yield Pe(Se.Number,e,r,o);ot(e.exclusiveMaximum)&&!(o<e.exclusiveMaximum)&&(yield Pe(Se.NumberExclusiveMaximum,e,r,o)),ot(e.exclusiveMinimum)&&!(o>e.exclusiveMinimum)&&(yield Pe(Se.NumberExclusiveMinimum,e,r,o)),ot(e.maximum)&&!(o<=e.maximum)&&(yield Pe(Se.NumberMaximum,e,r,o)),ot(e.minimum)&&!(o>=e.minimum)&&(yield Pe(Se.NumberMinimum,e,r,o)),ot(e.multipleOf)&&o%e.multipleOf!==0&&(yield Pe(Se.NumberMultipleOf,e,r,o))}function*rk(e,t,r,o){if(!ar.IsObjectLike(o))return yield Pe(Se.Object,e,r,o);ot(e.minProperties)&&!(Object.getOwnPropertyNames(o).length>=e.minProperties)&&(yield Pe(Se.ObjectMinProperties,e,r,o)),ot(e.maxProperties)&&!(Object.getOwnPropertyNames(o).length<=e.maxProperties)&&(yield Pe(Se.ObjectMaxProperties,e,r,o));const s=Array.isArray(e.required)?e.required:[],c=Object.getOwnPropertyNames(e.properties),l=Object.getOwnPropertyNames(o);for(const f of s)l.includes(f)||(yield Pe(Se.ObjectRequiredProperty,e.properties[f],`${r}/${no(f)}`,void 0));if(e.additionalProperties===!1)for(const f of l)c.includes(f)||(yield Pe(Se.ObjectAdditionalProperties,e,`${r}/${no(f)}`,o[f]));if(typeof e.additionalProperties=="object")for(const f of l)c.includes(f)||(yield*wn(e.additionalProperties,t,`${r}/${no(f)}`,o[f]));for(const f of c){const p=e.properties[f];e.required&&e.required.includes(f)?(yield*wn(p,t,`${r}/${no(f)}`,o[f]),Kl(e)&&!(f in o)&&(yield Pe(Se.ObjectRequiredProperty,p,`${r}/${no(f)}`,void 0))):ar.IsExactOptionalProperty(o,f)&&(yield*wn(p,t,`${r}/${no(f)}`,o[f]))}}function*ik(e,t,r,o){BT(o)||(yield Pe(Se.Promise,e,r,o))}function*ok(e,t,r,o){if(!ar.IsRecordLike(o))return yield Pe(Se.Object,e,r,o);ot(e.minProperties)&&!(Object.getOwnPropertyNames(o).length>=e.minProperties)&&(yield Pe(Se.ObjectMinProperties,e,r,o)),ot(e.maxProperties)&&!(Object.getOwnPropertyNames(o).length<=e.maxProperties)&&(yield Pe(Se.ObjectMaxProperties,e,r,o));const[s,c]=Object.entries(e.patternProperties)[0],l=new RegExp(s);for(const[f,p]of Object.entries(o))l.test(f)&&(yield*wn(c,t,`${r}/${no(f)}`,p));if(typeof e.additionalProperties=="object")for(const[f,p]of Object.entries(o))l.test(f)||(yield*wn(e.additionalProperties,t,`${r}/${no(f)}`,p));if(e.additionalProperties===!1){for(const[f,p]of Object.entries(o))if(!l.test(f))return yield Pe(Se.ObjectAdditionalProperties,e,`${r}/${no(f)}`,p)}}function*ak(e,t,r,o){yield*wn(pi(e,t),t,r,o)}function*sk(e,t,r,o){if(!Ci(o))return yield Pe(Se.String,e,r,o);if(ot(e.minLength)&&!(o.length>=e.minLength)&&(yield Pe(Se.StringMinLength,e,r,o)),ot(e.maxLength)&&!(o.length<=e.maxLength)&&(yield Pe(Se.StringMaxLength,e,r,o)),!new RegExp(e.source,e.flags).test(o))return yield Pe(Se.RegExp,e,r,o)}function*uk(e,t,r,o){if(!Ci(o))return yield Pe(Se.String,e,r,o);ot(e.minLength)&&!(o.length>=e.minLength)&&(yield Pe(Se.StringMinLength,e,r,o)),ot(e.maxLength)&&!(o.length<=e.maxLength)&&(yield Pe(Se.StringMaxLength,e,r,o)),Ci(e.pattern)&&(new RegExp(e.pattern).test(o)||(yield Pe(Se.StringPattern,e,r,o))),Ci(e.format)&&(KT(e.format)?VT(e.format)(o)||(yield Pe(Se.StringFormat,e,r,o)):yield Pe(Se.StringFormatUnknown,e,r,o))}function*ck(e,t,r,o){ch(o)||(yield Pe(Se.Symbol,e,r,o))}function*lk(e,t,r,o){if(!Ci(o))return yield Pe(Se.String,e,r,o);new RegExp(e.pattern).test(o)||(yield Pe(Se.StringPattern,e,r,o))}function*fk(e,t,r,o){yield*wn(pi(e,t),t,r,o)}function*dk(e,t,r,o){if(!Ir(o))return yield Pe(Se.Tuple,e,r,o);if(e.items===void 0&&o.length!==0)return yield Pe(Se.TupleLength,e,r,o);if(o.length!==e.maxItems)return yield Pe(Se.TupleLength,e,r,o);if(e.items)for(let s=0;s<e.items.length;s++)yield*wn(e.items[s],t,`${r}/${s}`,o[s])}function*hk(e,t,r,o){_i(o)||(yield Pe(Se.Undefined,e,r,o))}function*pk(e,t,r,o){if(_h(e,t,o))return;const s=e.anyOf.map(c=>new M3(wn(c,t,r,o)));yield Pe(Se.Union,e,r,o,s)}function*yk(e,t,r,o){if(!ox(o))return yield Pe(Se.Uint8Array,e,r,o);ot(e.maxByteLength)&&!(o.length<=e.maxByteLength)&&(yield Pe(Se.Uint8ArrayMaxByteLength,e,r,o)),ot(e.minByteLength)&&!(o.length>=e.minByteLength)&&(yield Pe(Se.Uint8ArrayMinByteLength,e,r,o))}function*gk(e,t,r,o){}function*mk(e,t,r,o){ar.IsVoidLike(o)||(yield Pe(Se.Void,e,r,o))}function*Ak(e,t,r,o){XT(e[$e])(e,o)||(yield Pe(Se.Kind,e,r,o))}function*wn(e,t,r,o){const s=ot(e.$id)?[...t,e]:t,c=e;switch(c[$e]){case"Any":return yield*L7();case"Argument":return yield*q7();case"Array":return yield*$7(c,s,r,o);case"AsyncIterator":return yield*k7(c,s,r,o);case"BigInt":return yield*H7(c,s,r,o);case"Boolean":return yield*z7(c,s,r,o);case"Constructor":return yield*G7(c,s,r,o);case"Date":return yield*Q7(c,s,r,o);case"Function":return yield*K7(c,s,r,o);case"Import":return yield*V7(c,s,r,o);case"Integer":return yield*Y7(c,s,r,o);case"Intersect":return yield*X7(c,s,r,o);case"Iterator":return yield*Z7(c,s,r,o);case"Literal":return yield*J7(c,s,r,o);case"Never":return yield*W7(c,s,r,o);case"Not":return yield*ek(c,s,r,o);case"Null":return yield*tk(c,s,r,o);case"Number":return yield*nk(c,s,r,o);case"Object":return yield*rk(c,s,r,o);case"Promise":return yield*ik(c,s,r,o);case"Record":return yield*ok(c,s,r,o);case"Ref":return yield*ak(c,s,r,o);case"RegExp":return yield*sk(c,s,r,o);case"String":return yield*uk(c,s,r,o);case"Symbol":return yield*ck(c,s,r,o);case"TemplateLiteral":return yield*lk(c,s,r,o);case"This":return yield*fk(c,s,r,o);case"Tuple":return yield*dk(c,s,r,o);case"Undefined":return yield*hk(c,s,r,o);case"Union":return yield*pk(c,s,r,o);case"Uint8Array":return yield*yk(c,s,r,o);case"Unknown":return yield*gk();case"Void":return yield*mk(c,s,r,o);default:if(!mx(c[$e]))throw new N7(e);return yield*Ak(c,s,r,o)}}function bk(...e){const t=e.length===3?wn(e[0],e[1],"",e[2]):wn(e[0],[],"",e[1]);return new M3(t)}function xk(e){const t={};for(const r of Object.getOwnPropertyNames(e))t[r]=Ga(e[r]);for(const r of Object.getOwnPropertySymbols(e))t[r]=Ga(e[r]);return t}function vk(e){return e.map(t=>Ga(t))}function Ek(e){return e.slice()}function wk(e){return new Map(Ga([...e.entries()]))}function Ik(e){return new Set(Ga([...e.entries()]))}function Sk(e){return new Date(e.toISOString())}function Ga(e){if(Ir(e))return vk(e);if(Nl(e))return Sk(e);if(JP(e))return Ek(e);if(XP(e))return wk(e);if(ZP(e))return Ik(e);if(wr(e))return xk(e);if(MT(e))return e;throw new Error("ValueClone: Unable to clone value")}class Ck extends Rr{constructor(t,r,o){super("Unable to decode value as it does not match the expected schema"),this.schema=t,this.value=r,this.error=o}}class Ok extends Rr{constructor(t,r,o,s){super(s instanceof Error?s.message:"Unknown error"),this.schema=t,this.path=r,this.value=o,this.error=s}}function Nt(e,t,r){try{return Lt(e)?e[xr].Decode(r):r}catch(o){throw new Ok(e,t,r,o)}}function Fk(e,t,r,o){return Ir(o)?Nt(e,r,o.map((s,c)=>yi(e.items,t,`${r}/${c}`,s))):Nt(e,r,o)}function Rk(e,t,r,o){if(!wr(o)||MT(o))return Nt(e,r,o);const s=sL(e),c=s.map(A=>A[0]),l={...o};for(const[A,v]of s)A in l&&(l[A]=yi(v,t,`${r}/${A}`,l[A]));if(!Lt(e.unevaluatedProperties))return Nt(e,r,l);const f=Object.getOwnPropertyNames(l),p=e.unevaluatedProperties,h={...l};for(const A of f)c.includes(A)||(h[A]=Nt(p,`${r}/${A}`,h[A]));return Nt(e,r,h)}function Bk(e,t,r,o){const s=globalThis.Object.values(e.$defs),c=e.$defs[e.$ref],l=yi(c,[...t,...s],r,o);return Nt(e,r,l)}function Tk(e,t,r,o){return Nt(e,r,yi(e.not,t,r,o))}function _k(e,t,r,o){if(!wr(o))return Nt(e,r,o);const s=Eu(e),c={...o};for(const h of s)TT(c,h)&&(_i(c[h])&&(!gh(e.properties[h])||ar.IsExactOptionalProperty(c,h))||(c[h]=yi(e.properties[h],t,`${r}/${h}`,c[h])));if(!vr(e.additionalProperties))return Nt(e,r,c);const l=Object.getOwnPropertyNames(c),f=e.additionalProperties,p={...c};for(const h of l)s.includes(h)||(p[h]=Nt(f,`${r}/${h}`,p[h]));return Nt(e,r,p)}function Mk(e,t,r,o){if(!wr(o))return Nt(e,r,o);const s=Object.getOwnPropertyNames(e.patternProperties)[0],c=new RegExp(s),l={...o};for(const A of Object.getOwnPropertyNames(o))c.test(A)&&(l[A]=yi(e.patternProperties[s],t,`${r}/${A}`,l[A]));if(!vr(e.additionalProperties))return Nt(e,r,l);const f=Object.getOwnPropertyNames(l),p=e.additionalProperties,h={...l};for(const A of f)c.test(A)||(h[A]=Nt(p,`${r}/${A}`,h[A]));return Nt(e,r,h)}function Dk(e,t,r,o){const s=pi(e,t);return Nt(e,r,yi(s,t,r,o))}function Uk(e,t,r,o){const s=pi(e,t);return Nt(e,r,yi(s,t,r,o))}function Pk(e,t,r,o){return Ir(o)&&Ir(e.items)?Nt(e,r,e.items.map((s,c)=>yi(s,t,`${r}/${c}`,o[c]))):Nt(e,r,o)}function jk(e,t,r,o){for(const s of e.anyOf){if(!_h(s,t,o))continue;const c=yi(s,t,r,o);return Nt(e,r,c)}return Nt(e,r,o)}function yi(e,t,r,o){const s=Th(e,t),c=e;switch(e[$e]){case"Array":return Fk(c,s,r,o);case"Import":return Bk(c,s,r,o);case"Intersect":return Rk(c,s,r,o);case"Not":return Tk(c,s,r,o);case"Object":return _k(c,s,r,o);case"Record":return Mk(c,s,r,o);case"Ref":return Dk(c,s,r,o);case"Symbol":return Nt(c,r,o);case"This":return Uk(c,s,r,o);case"Tuple":return Pk(c,s,r,o);case"Union":return jk(c,s,r,o);default:return Nt(c,r,o)}}function Nk(e,t,r){return yi(e,t,"",r)}function Lk(e,t){return Lt(e)||gn(e.items,t)}function qk(e,t){return Lt(e)||gn(e.items,t)}function $k(e,t){return Lt(e)||gn(e.returns,t)||e.parameters.some(r=>gn(r,t))}function kk(e,t){return Lt(e)||gn(e.returns,t)||e.parameters.some(r=>gn(r,t))}function Hk(e,t){return Lt(e)||Lt(e.unevaluatedProperties)||e.allOf.some(r=>gn(r,t))}function zk(e,t){const r=globalThis.Object.getOwnPropertyNames(e.$defs).reduce((s,c)=>[...s,e.$defs[c]],[]),o=e.$defs[e.$ref];return Lt(e)||gn(o,[...r,...t])}function Gk(e,t){return Lt(e)||gn(e.items,t)}function Qk(e,t){return Lt(e)||gn(e.not,t)}function Kk(e,t){return Lt(e)||Object.values(e.properties).some(r=>gn(r,t))||vr(e.additionalProperties)&&gn(e.additionalProperties,t)}function Vk(e,t){return Lt(e)||gn(e.item,t)}function Yk(e,t){const r=Object.getOwnPropertyNames(e.patternProperties)[0],o=e.patternProperties[r];return Lt(e)||gn(o,t)||vr(e.additionalProperties)&&Lt(e.additionalProperties)}function Xk(e,t){return Lt(e)?!0:gn(pi(e,t),t)}function Zk(e,t){return Lt(e)?!0:gn(pi(e,t),t)}function Jk(e,t){return Lt(e)||!_i(e.items)&&e.items.some(r=>gn(r,t))}function Wk(e,t){return Lt(e)||e.anyOf.some(r=>gn(r,t))}function gn(e,t){const r=Th(e,t),o=e;if(e.$id&&v1.has(e.$id))return!1;switch(e.$id&&v1.add(e.$id),e[$e]){case"Array":return Lk(o,r);case"AsyncIterator":return qk(o,r);case"Constructor":return $k(o,r);case"Function":return kk(o,r);case"Import":return zk(o,r);case"Intersect":return Hk(o,r);case"Iterator":return Gk(o,r);case"Not":return Qk(o,r);case"Object":return Kk(o,r);case"Promise":return Vk(o,r);case"Record":return Yk(o,r);case"Ref":return Xk(o,r);case"This":return Zk(o,r);case"Tuple":return Jk(o,r);case"Union":return Wk(o,r);default:return Lt(e)}}const v1=new Set;function eH(e,t){return v1.clear(),gn(e,t)}function tH(...e){const[t,r,o]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];if(!_h(t,r,o))throw new Ck(t,o,bk(t,r,o).First());return eH(t,r)?Nk(t,r,o):o}function yo(e,t){const r=TT(e,"default")?e.default:void 0,o=ax(r)?r():Ga(r);return _i(t)?o:wr(t)&&wr(o)?Object.assign(o,t):t}function E1(e){return NT(e)&&"default"in e}function nH(e,t,r){if(Ir(r)){for(let s=0;s<r.length;s++)r[s]=Yn(e.items,t,r[s]);return r}const o=yo(e,r);if(!Ir(o))return o;for(let s=0;s<o.length;s++)o[s]=Yn(e.items,t,o[s]);return o}function rH(e,t,r){return Nl(r)?r:yo(e,r)}function iH(e,t,r){const o=globalThis.Object.values(e.$defs),s=e.$defs[e.$ref];return Yn(s,[...t,...o],r)}function oH(e,t,r){const o=yo(e,r);return e.allOf.reduce((s,c)=>{const l=Yn(c,t,o);return wr(l)?{...s,...l}:l},{})}function aH(e,t,r){const o=yo(e,r);if(!wr(o))return o;const s=Object.getOwnPropertyNames(e.properties);for(const c of s){const l=Yn(e.properties[c],t,o[c]);_i(l)||(o[c]=Yn(e.properties[c],t,o[c]))}if(!E1(e.additionalProperties))return o;for(const c of Object.getOwnPropertyNames(o))s.includes(c)||(o[c]=Yn(e.additionalProperties,t,o[c]));return o}function sH(e,t,r){const o=yo(e,r);if(!wr(o))return o;const s=e.additionalProperties,[c,l]=Object.entries(e.patternProperties)[0],f=new RegExp(c);for(const p of Object.getOwnPropertyNames(o))f.test(p)&&E1(l)&&(o[p]=Yn(l,t,o[p]));if(!E1(s))return o;for(const p of Object.getOwnPropertyNames(o))f.test(p)||(o[p]=Yn(s,t,o[p]));return o}function uH(e,t,r){return Yn(pi(e,t),t,yo(e,r))}function cH(e,t,r){return Yn(pi(e,t),t,r)}function lH(e,t,r){const o=yo(e,r);if(!Ir(o)||_i(e.items))return o;const[s,c]=[e.items,Math.max(e.items.length,o.length)];for(let l=0;l<c;l++)l<s.length&&(o[l]=Yn(s[l],t,o[l]));return o}function fH(e,t,r){const o=yo(e,r);for(const s of e.anyOf){const c=Yn(s,t,Ga(o));if(_h(s,t,c))return c}return o}function Yn(e,t,r){const o=Th(e,t),s=e;switch(s[$e]){case"Array":return nH(s,o,r);case"Date":return rH(s,o,r);case"Import":return iH(s,o,r);case"Intersect":return oH(s,o,r);case"Object":return aH(s,o,r);case"Record":return sH(s,o,r);case"Ref":return uH(s,o,r);case"This":return cH(s,o,r);case"Tuple":return lH(s,o,r);case"Union":return fH(s,o,r);default:return yo(s,r)}}function dH(...e){return e.length===3?Yn(e[0],e[1],e[2]):Yn(e[0],[],e[1])}var Wi={},Eg={exports:{}},wg={},Ig={},Sg={},Cg,KI;function qx(){return KI||(KI=1,Cg=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),o=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var s=42;t[r]=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]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var f=Object.getOwnPropertyDescriptor(t,r);if(f.value!==s||f.enumerable!==!0)return!1}return!0}),Cg}var Og,VI;function Mh(){if(VI)return Og;VI=1;var e=qx();return Og=function(){return e()&&!!Symbol.toStringTag},Og}var Fg,YI;function $x(){return YI||(YI=1,Fg=Object),Fg}var Rg,XI;function hH(){return XI||(XI=1,Rg=Error),Rg}var Bg,ZI;function pH(){return ZI||(ZI=1,Bg=EvalError),Bg}var Tg,JI;function yH(){return JI||(JI=1,Tg=RangeError),Tg}var _g,WI;function gH(){return WI||(WI=1,_g=ReferenceError),_g}var Mg,eS;function D3(){return eS||(eS=1,Mg=SyntaxError),Mg}var Dg,tS;function Xl(){return tS||(tS=1,Dg=TypeError),Dg}var Ug,nS;function mH(){return nS||(nS=1,Ug=URIError),Ug}var Pg,rS;function AH(){return rS||(rS=1,Pg=Math.abs),Pg}var jg,iS;function bH(){return iS||(iS=1,jg=Math.floor),jg}var Ng,oS;function xH(){return oS||(oS=1,Ng=Math.max),Ng}var Lg,aS;function vH(){return aS||(aS=1,Lg=Math.min),Lg}var qg,sS;function EH(){return sS||(sS=1,qg=Math.pow),qg}var $g,uS;function wH(){return uS||(uS=1,$g=Math.round),$g}var kg,cS;function IH(){return cS||(cS=1,kg=Number.isNaN||function(t){return t!==t}),kg}var Hg,lS;function SH(){if(lS)return Hg;lS=1;var e=IH();return Hg=function(r){return e(r)||r===0?r:r<0?-1:1},Hg}var zg,fS;function CH(){return fS||(fS=1,zg=Object.getOwnPropertyDescriptor),zg}var Gg,dS;function Su(){if(dS)return Gg;dS=1;var e=CH();if(e)try{e([],"length")}catch{e=null}return Gg=e,Gg}var Qg,hS;function Dh(){if(hS)return Qg;hS=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return Qg=e,Qg}var Kg,pS;function OH(){if(pS)return Kg;pS=1;var e=typeof Symbol<"u"&&Symbol,t=qx();return Kg=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Kg}var Vg,yS;function U3(){return yS||(yS=1,Vg=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Vg}var Yg,gS;function P3(){if(gS)return Yg;gS=1;var e=$x();return Yg=e.getPrototypeOf||null,Yg}var Xg,mS;function FH(){if(mS)return Xg;mS=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,o="[object Function]",s=function(p,h){for(var A=[],v=0;v<p.length;v+=1)A[v]=p[v];for(var x=0;x<h.length;x+=1)A[x+p.length]=h[x];return A},c=function(p,h){for(var A=[],v=h,x=0;v<p.length;v+=1,x+=1)A[x]=p[v];return A},l=function(f,p){for(var h="",A=0;A<f.length;A+=1)h+=f[A],A+1<f.length&&(h+=p);return h};return Xg=function(p){var h=this;if(typeof h!="function"||t.apply(h)!==o)throw new TypeError(e+h);for(var A=c(arguments,1),v,x=function(){if(this instanceof v){var _=h.apply(this,s(A,arguments));return Object(_)===_?_:this}return h.apply(p,s(A,arguments))},S=r(0,h.length-A.length),R=[],U=0;U<S;U++)R[U]="$"+U;if(v=Function("binder","return function ("+l(R,",")+"){ return binder.apply(this,arguments); }")(x),h.prototype){var T=function(){};T.prototype=h.prototype,v.prototype=new T,T.prototype=null}return v},Xg}var Zg,AS;function Zl(){if(AS)return Zg;AS=1;var e=FH();return Zg=Function.prototype.bind||e,Zg}var Jg,bS;function kx(){return bS||(bS=1,Jg=Function.prototype.call),Jg}var Wg,xS;function Hx(){return xS||(xS=1,Wg=Function.prototype.apply),Wg}var em,vS;function RH(){return vS||(vS=1,em=typeof Reflect<"u"&&Reflect&&Reflect.apply),em}var tm,ES;function j3(){if(ES)return tm;ES=1;var e=Zl(),t=Hx(),r=kx(),o=RH();return tm=o||e.call(r,t),tm}var nm,wS;function zx(){if(wS)return nm;wS=1;var e=Zl(),t=Xl(),r=kx(),o=j3();return nm=function(c){if(c.length<1||typeof c[0]!="function")throw new t("a function is required");return o(e,r,c)},nm}var rm,IS;function BH(){if(IS)return rm;IS=1;var e=zx(),t=Su(),r;try{r=[].__proto__===Array.prototype}catch(l){if(!l||typeof l!="object"||!("code"in l)||l.code!=="ERR_PROTO_ACCESS")throw l}var o=!!r&&t&&t(Object.prototype,"__proto__"),s=Object,c=s.getPrototypeOf;return rm=o&&typeof o.get=="function"?e([o.get]):typeof c=="function"?function(f){return c(f==null?f:s(f))}:!1,rm}var im,SS;function Gx(){if(SS)return im;SS=1;var e=U3(),t=P3(),r=BH();return im=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)}:r?function(s){return r(s)}:null,im}var om,CS;function N3(){if(CS)return om;CS=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=Zl();return om=r.call(e,t),om}var am,OS;function Qx(){if(OS)return am;OS=1;var e,t=$x(),r=hH(),o=pH(),s=yH(),c=gH(),l=D3(),f=Xl(),p=mH(),h=AH(),A=bH(),v=xH(),x=vH(),S=EH(),R=wH(),U=SH(),T=Function,_=function(G){try{return T('"use strict"; return ('+G+").constructor;")()}catch{}},M=Su(),D=Dh(),$=function(){throw new f},P=M?(function(){try{return arguments.callee,$}catch{try{return M(arguments,"callee").get}catch{return $}}})():$,Y=OH()(),ne=Gx(),te=P3(),B=U3(),L=Hx(),z=kx(),H={},ie=typeof Uint8Array>"u"||!ne?e:ne(Uint8Array),de={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":Y&&ne?ne([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":H,"%AsyncGenerator%":H,"%AsyncGeneratorFunction%":H,"%AsyncIteratorPrototype%":H,"%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%":r,"%eval%":eval,"%EvalError%":o,"%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%":T,"%GeneratorFunction%":H,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Y&&ne?ne(ne([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Y||!ne?e:ne(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":M,"%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"||!Y||!ne?e:ne(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Y&&ne?ne(""[Symbol.iterator]()):e,"%Symbol%":Y?Symbol:e,"%SyntaxError%":l,"%ThrowTypeError%":P,"%TypedArray%":ie,"%TypeError%":f,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":p,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":z,"%Function.prototype.apply%":L,"%Object.defineProperty%":D,"%Object.getPrototypeOf%":te,"%Math.abs%":h,"%Math.floor%":A,"%Math.max%":v,"%Math.min%":x,"%Math.pow%":S,"%Math.round%":R,"%Math.sign%":U,"%Reflect.getPrototypeOf%":B};if(ne)try{null.error}catch(G){var Ae=ne(ne(G));de["%Error.prototype%"]=Ae}var O=function G(w){var N;if(w==="%AsyncFunction%")N=_("async function () {}");else if(w==="%GeneratorFunction%")N=_("function* () {}");else if(w==="%AsyncGeneratorFunction%")N=_("async function* () {}");else if(w==="%AsyncGenerator%"){var K=G("%AsyncGeneratorFunction%");K&&(N=K.prototype)}else if(w==="%AsyncIteratorPrototype%"){var Z=G("%AsyncGenerator%");Z&&ne&&(N=ne(Z.prototype))}return de[w]=N,N},re={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},he=Zl(),W=N3(),C=he.call(z,Array.prototype.concat),X=he.call(L,Array.prototype.splice),ue=he.call(z,String.prototype.replace),Q=he.call(z,String.prototype.slice),j=he.call(z,RegExp.prototype.exec),k=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,V=/\\(\\)?/g,pe=function(w){var N=Q(w,0,1),K=Q(w,-1);if(N==="%"&&K!=="%")throw new l("invalid intrinsic syntax, expected closing `%`");if(K==="%"&&N!=="%")throw new l("invalid intrinsic syntax, expected opening `%`");var Z=[];return ue(w,k,function(ce,le,b,g){Z[Z.length]=b?ue(g,V,"$1"):le||ce}),Z},ye=function(w,N){var K=w,Z;if(W(re,K)&&(Z=re[K],K="%"+Z[0]+"%"),W(de,K)){var ce=de[K];if(ce===H&&(ce=O(K)),typeof ce>"u"&&!N)throw new f("intrinsic "+w+" exists, but is not available. Please file an issue!");return{alias:Z,name:K,value:ce}}throw new l("intrinsic "+w+" does not exist!")};return am=function(w,N){if(typeof w!="string"||w.length===0)throw new f("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof N!="boolean")throw new f('"allowMissing" argument must be a boolean');if(j(/^%?[^%]*%?$/,w)===null)throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var K=pe(w),Z=K.length>0?K[0]:"",ce=ye("%"+Z+"%",N),le=ce.name,b=ce.value,g=!1,m=ce.alias;m&&(Z=m[0],X(K,C([0,1],m)));for(var I=1,ee=!0;I<K.length;I+=1){var me=K[I],Ce=Q(me,0,1),je=Q(me,-1);if((Ce==='"'||Ce==="'"||Ce==="`"||je==='"'||je==="'"||je==="`")&&Ce!==je)throw new l("property names with quotes must have matching quotes");if((me==="constructor"||!ee)&&(g=!0),Z+="."+me,le="%"+Z+"%",W(de,le))b=de[le];else if(b!=null){if(!(me in b)){if(!N)throw new f("base intrinsic for "+w+" exists, but the property is not available.");return}if(M&&I+1>=K.length){var ae=M(b,me);ee=!!ae,ee&&"get"in ae&&!("originalValue"in ae.get)?b=ae.get:b=b[me]}else ee=W(b,me),b=b[me];ee&&!g&&(de[le]=b)}}return b},am}var sm,FS;function Cu(){if(FS)return sm;FS=1;var e=Qx(),t=zx(),r=t([e("%String.prototype.indexOf%")]);return sm=function(s,c){var l=e(s,!!c);return typeof l=="function"&&r(s,".prototype.")>-1?t([l]):l},sm}var um,RS;function TH(){if(RS)return um;RS=1;var e=Mh()(),t=Cu(),r=t("Object.prototype.toString"),o=function(f){return e&&f&&typeof f=="object"&&Symbol.toStringTag in f?!1:r(f)==="[object Arguments]"},s=function(f){return o(f)?!0:f!==null&&typeof f=="object"&&"length"in f&&typeof f.length=="number"&&f.length>=0&&r(f)!=="[object Array]"&&"callee"in f&&r(f.callee)==="[object Function]"},c=(function(){return o(arguments)})();return o.isLegacyArguments=s,um=c?o:s,um}var cm,BS;function _H(){if(BS)return cm;BS=1;var e=Cu(),t=Mh()(),r=N3(),o=Su(),s;if(t){var c=e("RegExp.prototype.exec"),l={},f=function(){throw l},p={toString:f,valueOf:f};typeof Symbol.toPrimitive=="symbol"&&(p[Symbol.toPrimitive]=f),s=function(x){if(!x||typeof x!="object")return!1;var S=o(x,"lastIndex"),R=S&&r(S,"value");if(!R)return!1;try{c(x,p)}catch(U){return U===l}}}else{var h=e("Object.prototype.toString"),A="[object RegExp]";s=function(x){return!x||typeof x!="object"&&typeof x!="function"?!1:h(x)===A}}return cm=s,cm}var lm,TS;function MH(){if(TS)return lm;TS=1;var e=Cu(),t=_H(),r=e("RegExp.prototype.exec"),o=Xl();return lm=function(c){if(!t(c))throw new o("`regex` must be a RegExp");return function(f){return r(c,f)!==null}},lm}var fm,_S;function DH(){if(_S)return fm;_S=1;var e=Cu(),t=MH(),r=t(/^\s*(?:function)?\*/),o=Mh()(),s=Gx(),c=e("Object.prototype.toString"),l=e("Function.prototype.toString"),f=function(){if(!o)return!1;try{return Function("return function*() {}")()}catch{}},p;return fm=function(A){if(typeof A!="function")return!1;if(r(l(A)))return!0;if(!o){var v=c(A);return v==="[object GeneratorFunction]"}if(!s)return!1;if(typeof p>"u"){var x=f();p=x?s(x):!1}return s(A)===p},fm}var dm,MS;function UH(){if(MS)return dm;MS=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,o;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw o}}),o={},t(function(){throw 42},null,r)}catch(M){M!==o&&(t=null)}else t=null;var s=/^\s*class\b/,c=function(D){try{var $=e.call(D);return s.test($)}catch{return!1}},l=function(D){try{return c(D)?!1:(e.call(D),!0)}catch{return!1}},f=Object.prototype.toString,p="[object Object]",h="[object Function]",A="[object GeneratorFunction]",v="[object HTMLAllCollection]",x="[object HTML document.all class]",S="[object HTMLCollection]",R=typeof Symbol=="function"&&!!Symbol.toStringTag,U=!(0 in[,]),T=function(){return!1};if(typeof document=="object"){var _=document.all;f.call(_)===f.call(document.all)&&(T=function(D){if((U||!D)&&(typeof D>"u"||typeof D=="object"))try{var $=f.call(D);return($===v||$===x||$===S||$===p)&&D("")==null}catch{}return!1})}return dm=t?function(D){if(T(D))return!0;if(!D||typeof D!="function"&&typeof D!="object")return!1;try{t(D,null,r)}catch($){if($!==o)return!1}return!c(D)&&l(D)}:function(D){if(T(D))return!0;if(!D||typeof D!="function"&&typeof D!="object")return!1;if(R)return l(D);if(c(D))return!1;var $=f.call(D);return $!==h&&$!==A&&!/^\[object HTML/.test($)?!1:l(D)},dm}var hm,DS;function PH(){if(DS)return hm;DS=1;var e=UH(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,o=function(p,h,A){for(var v=0,x=p.length;v<x;v++)r.call(p,v)&&(A==null?h(p[v],v,p):h.call(A,p[v],v,p))},s=function(p,h,A){for(var v=0,x=p.length;v<x;v++)A==null?h(p.charAt(v),v,p):h.call(A,p.charAt(v),v,p)},c=function(p,h,A){for(var v in p)r.call(p,v)&&(A==null?h(p[v],v,p):h.call(A,p[v],v,p))};function l(f){return t.call(f)==="[object Array]"}return hm=function(p,h,A){if(!e(h))throw new TypeError("iterator must be a function");var v;arguments.length>=3&&(v=A),l(p)?o(p,h,v):typeof p=="string"?s(p,h,v):c(p,h,v)},hm}var pm,US;function jH(){return US||(US=1,pm=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),pm}var ym,PS;function NH(){if(PS)return ym;PS=1;var e=jH(),t=typeof globalThis>"u"?oo:globalThis;return ym=function(){for(var o=[],s=0;s<e.length;s++)typeof t[e[s]]=="function"&&(o[o.length]=e[s]);return o},ym}var gm={exports:{}},mm,jS;function L3(){if(jS)return mm;jS=1;var e=Dh(),t=D3(),r=Xl(),o=Su();return mm=function(c,l,f){if(!c||typeof c!="object"&&typeof c!="function")throw new r("`obj` must be an object or a function`");if(typeof l!="string"&&typeof l!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var p=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,x=!!o&&o(c,l);if(e)e(c,l,{configurable:A===null&&x?x.configurable:!A,enumerable:p===null&&x?x.enumerable:!p,value:f,writable:h===null&&x?x.writable:!h});else if(v||!p&&!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.")},mm}var Am,NS;function q3(){if(NS)return Am;NS=1;var e=Dh(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},Am=t,Am}var bm,LS;function LH(){if(LS)return bm;LS=1;var e=Qx(),t=L3(),r=q3()(),o=Su(),s=Xl(),c=e("%Math.floor%");return bm=function(f,p){if(typeof f!="function")throw new s("`fn` is not a function");if(typeof p!="number"||p<0||p>4294967295||c(p)!==p)throw new s("`length` must be a positive 32-bit integer");var h=arguments.length>2&&!!arguments[2],A=!0,v=!0;if("length"in f&&o){var x=o(f,"length");x&&!x.configurable&&(A=!1),x&&!x.writable&&(v=!1)}return(A||v||!h)&&(r?t(f,"length",p,!0,!0):t(f,"length",p)),f},bm}var xm,qS;function qH(){if(qS)return xm;qS=1;var e=Zl(),t=Hx(),r=j3();return xm=function(){return r(e,t,arguments)},xm}var $S;function Uh(){return $S||($S=1,(function(e){var t=LH(),r=Dh(),o=zx(),s=qH();e.exports=function(l){var f=o(arguments),p=l.length-(arguments.length-1);return t(f,1+(p>0?p:0),!0)},r?r(e.exports,"apply",{value:s}):e.exports.apply=s})(gm)),gm.exports}var vm,kS;function $3(){if(kS)return vm;kS=1;var e=PH(),t=NH(),r=Uh(),o=Cu(),s=Su(),c=Gx(),l=o("Object.prototype.toString"),f=Mh()(),p=typeof globalThis>"u"?oo:globalThis,h=t(),A=o("String.prototype.slice"),v=o("Array.prototype.indexOf",!0)||function(T,_){for(var M=0;M<T.length;M+=1)if(T[M]===_)return M;return-1},x={__proto__:null};f&&s&&c?e(h,function(U){var T=new p[U];if(Symbol.toStringTag in T&&c){var _=c(T),M=s(_,Symbol.toStringTag);if(!M&&_){var D=c(_);M=s(D,Symbol.toStringTag)}x["$"+U]=r(M.get)}}):e(h,function(U){var T=new p[U],_=T.slice||T.set;_&&(x["$"+U]=r(_))});var S=function(T){var _=!1;return e(x,function(M,D){if(!_)try{"$"+M(T)===D&&(_=A(D,1))}catch{}}),_},R=function(T){var _=!1;return e(x,function(M,D){if(!_)try{M(T),_=A(D,1)}catch{}}),_};return vm=function(T){if(!T||typeof T!="object")return!1;if(!f){var _=A(l(T),8,-1);return v(h,_)>-1?_:_!=="Object"?!1:R(T)}return s?S(T):null},vm}var Em,HS;function $H(){if(HS)return Em;HS=1;var e=$3();return Em=function(r){return!!e(r)},Em}var zS;function kH(){return zS||(zS=1,(function(e){var t=TH(),r=DH(),o=$3(),s=$H();function c(I){return I.call.bind(I)}var l=typeof BigInt<"u",f=typeof Symbol<"u",p=c(Object.prototype.toString),h=c(Number.prototype.valueOf),A=c(String.prototype.valueOf),v=c(Boolean.prototype.valueOf);if(l)var x=c(BigInt.prototype.valueOf);if(f)var S=c(Symbol.prototype.valueOf);function R(I,ee){if(typeof I!="object")return!1;try{return ee(I),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=s;function U(I){return typeof Promise<"u"&&I instanceof Promise||I!==null&&typeof I=="object"&&typeof I.then=="function"&&typeof I.catch=="function"}e.isPromise=U;function T(I){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(I):s(I)||Q(I)}e.isArrayBufferView=T;function _(I){return o(I)==="Uint8Array"}e.isUint8Array=_;function M(I){return o(I)==="Uint8ClampedArray"}e.isUint8ClampedArray=M;function D(I){return o(I)==="Uint16Array"}e.isUint16Array=D;function $(I){return o(I)==="Uint32Array"}e.isUint32Array=$;function P(I){return o(I)==="Int8Array"}e.isInt8Array=P;function Y(I){return o(I)==="Int16Array"}e.isInt16Array=Y;function ne(I){return o(I)==="Int32Array"}e.isInt32Array=ne;function te(I){return o(I)==="Float32Array"}e.isFloat32Array=te;function B(I){return o(I)==="Float64Array"}e.isFloat64Array=B;function L(I){return o(I)==="BigInt64Array"}e.isBigInt64Array=L;function z(I){return o(I)==="BigUint64Array"}e.isBigUint64Array=z;function H(I){return p(I)==="[object Map]"}H.working=typeof Map<"u"&&H(new Map);function ie(I){return typeof Map>"u"?!1:H.working?H(I):I instanceof Map}e.isMap=ie;function de(I){return p(I)==="[object Set]"}de.working=typeof Set<"u"&&de(new Set);function Ae(I){return typeof Set>"u"?!1:de.working?de(I):I instanceof Set}e.isSet=Ae;function O(I){return p(I)==="[object WeakMap]"}O.working=typeof WeakMap<"u"&&O(new WeakMap);function re(I){return typeof WeakMap>"u"?!1:O.working?O(I):I instanceof WeakMap}e.isWeakMap=re;function he(I){return p(I)==="[object WeakSet]"}he.working=typeof WeakSet<"u"&&he(new WeakSet);function W(I){return he(I)}e.isWeakSet=W;function C(I){return p(I)==="[object ArrayBuffer]"}C.working=typeof ArrayBuffer<"u"&&C(new ArrayBuffer);function X(I){return typeof ArrayBuffer>"u"?!1:C.working?C(I):I instanceof ArrayBuffer}e.isArrayBuffer=X;function ue(I){return p(I)==="[object DataView]"}ue.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&ue(new DataView(new ArrayBuffer(1),0,1));function Q(I){return typeof DataView>"u"?!1:ue.working?ue(I):I instanceof DataView}e.isDataView=Q;var j=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function k(I){return p(I)==="[object SharedArrayBuffer]"}function V(I){return typeof j>"u"?!1:(typeof k.working>"u"&&(k.working=k(new j)),k.working?k(I):I instanceof j)}e.isSharedArrayBuffer=V;function pe(I){return p(I)==="[object AsyncFunction]"}e.isAsyncFunction=pe;function ye(I){return p(I)==="[object Map Iterator]"}e.isMapIterator=ye;function G(I){return p(I)==="[object Set Iterator]"}e.isSetIterator=G;function w(I){return p(I)==="[object Generator]"}e.isGeneratorObject=w;function N(I){return p(I)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=N;function K(I){return R(I,h)}e.isNumberObject=K;function Z(I){return R(I,A)}e.isStringObject=Z;function ce(I){return R(I,v)}e.isBooleanObject=ce;function le(I){return l&&R(I,x)}e.isBigIntObject=le;function b(I){return f&&R(I,S)}e.isSymbolObject=b;function g(I){return K(I)||Z(I)||ce(I)||le(I)||b(I)}e.isBoxedPrimitive=g;function m(I){return typeof Uint8Array<"u"&&(X(I)||V(I))}e.isAnyArrayBuffer=m,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(I){Object.defineProperty(e,I,{enumerable:!1,value:function(){throw new Error(I+" is not supported in userland")}})})})(Sg)),Sg}var wm,GS;function HH(){return GS||(GS=1,wm=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),wm}var bd={exports:{}},QS;function zH(){return QS||(QS=1,typeof Object.create=="function"?bd.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:bd.exports=function(t,r){if(r){t.super_=r;var o=function(){};o.prototype=r.prototype,t.prototype=new o,t.prototype.constructor=t}}),bd.exports}var KS;function Sl(){return KS||(KS=1,(function(e){var t={},r=Object.getOwnPropertyDescriptors||function(j){for(var k=Object.keys(j),V={},pe=0;pe<k.length;pe++)V[k[pe]]=Object.getOwnPropertyDescriptor(j,k[pe]);return V},o=/%[sdj%]/g;e.format=function(Q){if(!Y(Q)){for(var j=[],k=0;k<arguments.length;k++)j.push(f(arguments[k]));return j.join(" ")}for(var k=1,V=arguments,pe=V.length,ye=String(Q).replace(o,function(w){if(w==="%%")return"%";if(k>=pe)return w;switch(w){case"%s":return String(V[k++]);case"%d":return Number(V[k++]);case"%j":try{return JSON.stringify(V[k++])}catch{return"[Circular]"}default:return w}}),G=V[k];k<pe;G=V[++k])D(G)||!L(G)?ye+=" "+G:ye+=" "+f(G);return ye},e.deprecate=function(Q,j){if(typeof st<"u"&&st.noDeprecation===!0)return Q;if(typeof st>"u")return function(){return e.deprecate(Q,j).apply(this,arguments)};var k=!1;function V(){if(!k){if(st.throwDeprecation)throw new Error(j);st.traceDeprecation?console.trace(j):console.error(j),k=!0}return Q.apply(this,arguments)}return V};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 j=st.pid;s[Q]=function(){var k=e.format.apply(e,arguments);console.error("%s %d: %s",Q,j,k)}}else s[Q]=function(){};return s[Q]};function f(Q,j){var k={seen:[],stylize:h};return arguments.length>=3&&(k.depth=arguments[2]),arguments.length>=4&&(k.colors=arguments[3]),M(j)?k.showHidden=j:j&&e._extend(k,j),te(k.showHidden)&&(k.showHidden=!1),te(k.depth)&&(k.depth=2),te(k.colors)&&(k.colors=!1),te(k.customInspect)&&(k.customInspect=!0),k.colors&&(k.stylize=p),v(k,Q,k.depth)}e.inspect=f,f.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},f.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function p(Q,j){var k=f.styles[j];return k?"\x1B["+f.colors[k][0]+"m"+Q+"\x1B["+f.colors[k][1]+"m":Q}function h(Q,j){return Q}function A(Q){var j={};return Q.forEach(function(k,V){j[k]=!0}),j}function v(Q,j,k){if(Q.customInspect&&j&&ie(j.inspect)&&j.inspect!==e.inspect&&!(j.constructor&&j.constructor.prototype===j)){var V=j.inspect(k,Q);return Y(V)||(V=v(Q,V,k)),V}var pe=x(Q,j);if(pe)return pe;var ye=Object.keys(j),G=A(ye);if(Q.showHidden&&(ye=Object.getOwnPropertyNames(j)),H(j)&&(ye.indexOf("message")>=0||ye.indexOf("description")>=0))return S(j);if(ye.length===0){if(ie(j)){var w=j.name?": "+j.name:"";return Q.stylize("[Function"+w+"]","special")}if(B(j))return Q.stylize(RegExp.prototype.toString.call(j),"regexp");if(z(j))return Q.stylize(Date.prototype.toString.call(j),"date");if(H(j))return S(j)}var N="",K=!1,Z=["{","}"];if(_(j)&&(K=!0,Z=["[","]"]),ie(j)){var ce=j.name?": "+j.name:"";N=" [Function"+ce+"]"}if(B(j)&&(N=" "+RegExp.prototype.toString.call(j)),z(j)&&(N=" "+Date.prototype.toUTCString.call(j)),H(j)&&(N=" "+S(j)),ye.length===0&&(!K||j.length==0))return Z[0]+N+Z[1];if(k<0)return B(j)?Q.stylize(RegExp.prototype.toString.call(j),"regexp"):Q.stylize("[Object]","special");Q.seen.push(j);var le;return K?le=R(Q,j,k,G,ye):le=ye.map(function(b){return U(Q,j,k,G,b,K)}),Q.seen.pop(),T(le,N,Z)}function x(Q,j){if(te(j))return Q.stylize("undefined","undefined");if(Y(j)){var k="'"+JSON.stringify(j).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Q.stylize(k,"string")}if(P(j))return Q.stylize(""+j,"number");if(M(j))return Q.stylize(""+j,"boolean");if(D(j))return Q.stylize("null","null")}function S(Q){return"["+Error.prototype.toString.call(Q)+"]"}function R(Q,j,k,V,pe){for(var ye=[],G=0,w=j.length;G<w;++G)W(j,String(G))?ye.push(U(Q,j,k,V,String(G),!0)):ye.push("");return pe.forEach(function(N){N.match(/^\d+$/)||ye.push(U(Q,j,k,V,N,!0))}),ye}function U(Q,j,k,V,pe,ye){var G,w,N;if(N=Object.getOwnPropertyDescriptor(j,pe)||{value:j[pe]},N.get?N.set?w=Q.stylize("[Getter/Setter]","special"):w=Q.stylize("[Getter]","special"):N.set&&(w=Q.stylize("[Setter]","special")),W(V,pe)||(G="["+pe+"]"),w||(Q.seen.indexOf(N.value)<0?(D(k)?w=v(Q,N.value,null):w=v(Q,N.value,k-1),w.indexOf(`
62
+ `)>-1&&(ye?w=w.split(`
63
+ `).map(function(K){return" "+K}).join(`
64
+ `).slice(2):w=`
65
+ `+w.split(`
66
+ `).map(function(K){return" "+K}).join(`
67
+ `))):w=Q.stylize("[Circular]","special")),te(G)){if(ye&&pe.match(/^\d+$/))return w;G=JSON.stringify(""+pe),G.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(G=G.slice(1,-1),G=Q.stylize(G,"name")):(G=G.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),G=Q.stylize(G,"string"))}return G+": "+w}function T(Q,j,k){var V=Q.reduce(function(pe,ye){return ye.indexOf(`
68
+ `)>=0,pe+ye.replace(/\u001b\[\d\d?m/g,"").length+1},0);return V>60?k[0]+(j===""?"":j+`
69
+ `)+" "+Q.join(`,
70
+ `)+" "+k[1]:k[0]+j+" "+Q.join(", ")+" "+k[1]}e.types=kH();function _(Q){return Array.isArray(Q)}e.isArray=_;function M(Q){return typeof Q=="boolean"}e.isBoolean=M;function D(Q){return Q===null}e.isNull=D;function $(Q){return Q==null}e.isNullOrUndefined=$;function P(Q){return typeof Q=="number"}e.isNumber=P;function Y(Q){return typeof Q=="string"}e.isString=Y;function ne(Q){return typeof Q=="symbol"}e.isSymbol=ne;function te(Q){return Q===void 0}e.isUndefined=te;function B(Q){return L(Q)&&Ae(Q)==="[object RegExp]"}e.isRegExp=B,e.types.isRegExp=B;function L(Q){return typeof Q=="object"&&Q!==null}e.isObject=L;function z(Q){return L(Q)&&Ae(Q)==="[object Date]"}e.isDate=z,e.types.isDate=z;function H(Q){return L(Q)&&(Ae(Q)==="[object Error]"||Q instanceof Error)}e.isError=H,e.types.isNativeError=H;function ie(Q){return typeof Q=="function"}e.isFunction=ie;function de(Q){return Q===null||typeof Q=="boolean"||typeof Q=="number"||typeof Q=="string"||typeof Q=="symbol"||typeof Q>"u"}e.isPrimitive=de,e.isBuffer=HH();function Ae(Q){return Object.prototype.toString.call(Q)}function O(Q){return Q<10?"0"+Q.toString(10):Q.toString(10)}var re=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function he(){var Q=new Date,j=[O(Q.getHours()),O(Q.getMinutes()),O(Q.getSeconds())].join(":");return[Q.getDate(),re[Q.getMonth()],j].join(" ")}e.log=function(){console.log("%s - %s",he(),e.format.apply(e,arguments))},e.inherits=zH(),e._extend=function(Q,j){if(!j||!L(j))return Q;for(var k=Object.keys(j),V=k.length;V--;)Q[k[V]]=j[k[V]];return Q};function W(Q,j){return Object.prototype.hasOwnProperty.call(Q,j)}var C=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(j){if(typeof j!="function")throw new TypeError('The "original" argument must be of type Function');if(C&&j[C]){var k=j[C];if(typeof k!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(k,C,{value:k,enumerable:!1,writable:!1,configurable:!0}),k}function k(){for(var V,pe,ye=new Promise(function(N,K){V=N,pe=K}),G=[],w=0;w<arguments.length;w++)G.push(arguments[w]);G.push(function(N,K){N?pe(N):V(K)});try{j.apply(this,G)}catch(N){pe(N)}return ye}return Object.setPrototypeOf(k,Object.getPrototypeOf(j)),C&&Object.defineProperty(k,C,{value:k,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(k,r(j))},e.promisify.custom=C;function X(Q,j){if(!Q){var k=new Error("Promise was rejected with a falsy value");k.reason=Q,Q=k}return j(Q)}function ue(Q){if(typeof Q!="function")throw new TypeError('The "original" argument must be of type Function');function j(){for(var k=[],V=0;V<arguments.length;V++)k.push(arguments[V]);var pe=k.pop();if(typeof pe!="function")throw new TypeError("The last argument must be of type Function");var ye=this,G=function(){return pe.apply(ye,arguments)};Q.apply(this,k).then(function(w){st.nextTick(G.bind(null,null,w))},function(w){st.nextTick(X.bind(null,w,G))})}return Object.setPrototypeOf(j,Object.getPrototypeOf(Q)),Object.defineProperties(j,r(Q)),j}e.callbackify=ue})(Ig)),Ig}var VS;function k3(){if(VS)return wg;VS=1;function e(M){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(D){return typeof D}:function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},e(M)}function t(M,D,$){return Object.defineProperty(M,"prototype",{writable:!1}),M}function r(M,D){if(!(M instanceof D))throw new TypeError("Cannot call a class as a function")}function o(M,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(D&&D.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),Object.defineProperty(M,"prototype",{writable:!1}),D&&s(M,D)}function s(M,D){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(P,Y){return P.__proto__=Y,P},s(M,D)}function c(M){var D=p();return function(){var P=h(M),Y;if(D){var ne=h(this).constructor;Y=Reflect.construct(P,arguments,ne)}else Y=P.apply(this,arguments);return l(this,Y)}}function l(M,D){if(D&&(e(D)==="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return f(M)}function f(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}function p(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function h(M){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function($){return $.__proto__||Object.getPrototypeOf($)},h(M)}var A={},v,x;function S(M,D,$){$||($=Error);function P(ne,te,B){return typeof D=="string"?D:D(ne,te,B)}var Y=(function(ne){o(B,ne);var te=c(B);function B(L,z,H){var ie;return r(this,B),ie=te.call(this,P(L,z,H)),ie.code=M,ie}return t(B)})($);A[M]=Y}function R(M,D){if(Array.isArray(M)){var $=M.length;return M=M.map(function(P){return String(P)}),$>2?"one of ".concat(D," ").concat(M.slice(0,$-1).join(", "),", or ")+M[$-1]:$===2?"one of ".concat(D," ").concat(M[0]," or ").concat(M[1]):"of ".concat(D," ").concat(M[0])}else return"of ".concat(D," ").concat(String(M))}function U(M,D,$){return M.substr(0,D.length)===D}function T(M,D,$){return($===void 0||$>M.length)&&($=M.length),M.substring($-D.length,$)===D}function _(M,D,$){return typeof $!="number"&&($=0),$+D.length>M.length?!1:M.indexOf(D,$)!==-1}return S("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),S("ERR_INVALID_ARG_TYPE",function(M,D,$){v===void 0&&(v=w1()),v(typeof M=="string","'name' must be a string");var P;typeof D=="string"&&U(D,"not ")?(P="must not be",D=D.replace(/^not /,"")):P="must be";var Y;if(T(M," argument"))Y="The ".concat(M," ").concat(P," ").concat(R(D,"type"));else{var ne=_(M,".")?"property":"argument";Y='The "'.concat(M,'" ').concat(ne," ").concat(P," ").concat(R(D,"type"))}return Y+=". Received type ".concat(e($)),Y},TypeError),S("ERR_INVALID_ARG_VALUE",function(M,D){var $=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";x===void 0&&(x=Sl());var P=x.inspect(D);return P.length>128&&(P="".concat(P.slice(0,128),"...")),"The argument '".concat(M,"' ").concat($,". Received ").concat(P)},TypeError),S("ERR_INVALID_RETURN_VALUE",function(M,D,$){var P;return $&&$.constructor&&$.constructor.name?P="instance of ".concat($.constructor.name):P="type ".concat(e($)),"Expected ".concat(M,' to be returned from the "').concat(D,'"')+" function but got ".concat(P,".")},TypeError),S("ERR_MISSING_ARGS",function(){for(var M=arguments.length,D=new Array(M),$=0;$<M;$++)D[$]=arguments[$];v===void 0&&(v=w1()),v(D.length>0,"At least one arg needs to be specified");var P="The ",Y=D.length;switch(D=D.map(function(ne){return'"'.concat(ne,'"')}),Y){case 1:P+="".concat(D[0]," argument");break;case 2:P+="".concat(D[0]," and ").concat(D[1]," arguments");break;default:P+=D.slice(0,Y-1).join(", "),P+=", and ".concat(D[Y-1]," arguments");break}return"".concat(P," must be specified")},TypeError),wg.codes=A,wg}var Im,YS;function GH(){if(YS)return Im;YS=1;function e(W,C){var X=Object.keys(W);if(Object.getOwnPropertySymbols){var ue=Object.getOwnPropertySymbols(W);C&&(ue=ue.filter(function(Q){return Object.getOwnPropertyDescriptor(W,Q).enumerable})),X.push.apply(X,ue)}return X}function t(W){for(var C=1;C<arguments.length;C++){var X=arguments[C]!=null?arguments[C]:{};C%2?e(Object(X),!0).forEach(function(ue){r(W,ue,X[ue])}):Object.getOwnPropertyDescriptors?Object.defineProperties(W,Object.getOwnPropertyDescriptors(X)):e(Object(X)).forEach(function(ue){Object.defineProperty(W,ue,Object.getOwnPropertyDescriptor(X,ue))})}return W}function r(W,C,X){return C=l(C),C in W?Object.defineProperty(W,C,{value:X,enumerable:!0,configurable:!0,writable:!0}):W[C]=X,W}function o(W,C){if(!(W instanceof C))throw new TypeError("Cannot call a class as a function")}function s(W,C){for(var X=0;X<C.length;X++){var ue=C[X];ue.enumerable=ue.enumerable||!1,ue.configurable=!0,"value"in ue&&(ue.writable=!0),Object.defineProperty(W,l(ue.key),ue)}}function c(W,C,X){return C&&s(W.prototype,C),Object.defineProperty(W,"prototype",{writable:!1}),W}function l(W){var C=f(W,"string");return M(C)==="symbol"?C:String(C)}function f(W,C){if(M(W)!=="object"||W===null)return W;var X=W[Symbol.toPrimitive];if(X!==void 0){var ue=X.call(W,C);if(M(ue)!=="object")return ue;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(W)}function p(W,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function");W.prototype=Object.create(C&&C.prototype,{constructor:{value:W,writable:!0,configurable:!0}}),Object.defineProperty(W,"prototype",{writable:!1}),C&&T(W,C)}function h(W){var C=R();return function(){var ue=_(W),Q;if(C){var j=_(this).constructor;Q=Reflect.construct(ue,arguments,j)}else Q=ue.apply(this,arguments);return A(this,Q)}}function A(W,C){if(C&&(M(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(W)}function v(W){if(W===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return W}function x(W){var C=typeof Map=="function"?new Map:void 0;return x=function(ue){if(ue===null||!U(ue))return ue;if(typeof ue!="function")throw new TypeError("Super expression must either be null or a function");if(typeof C<"u"){if(C.has(ue))return C.get(ue);C.set(ue,Q)}function Q(){return S(ue,arguments,_(this).constructor)}return Q.prototype=Object.create(ue.prototype,{constructor:{value:Q,enumerable:!1,writable:!0,configurable:!0}}),T(Q,ue)},x(W)}function S(W,C,X){return R()?S=Reflect.construct.bind():S=function(Q,j,k){var V=[null];V.push.apply(V,j);var pe=Function.bind.apply(Q,V),ye=new pe;return k&&T(ye,k.prototype),ye},S.apply(null,arguments)}function R(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function U(W){return Function.toString.call(W).indexOf("[native code]")!==-1}function T(W,C){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ue,Q){return ue.__proto__=Q,ue},T(W,C)}function _(W){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(X){return X.__proto__||Object.getPrototypeOf(X)},_(W)}function M(W){"@babel/helpers - typeof";return M=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},M(W)}var D=Sl(),$=D.inspect,P=k3(),Y=P.codes.ERR_INVALID_ARG_TYPE;function ne(W,C,X){return(X===void 0||X>W.length)&&(X=W.length),W.substring(X-C.length,X)===C}function te(W,C){if(C=Math.floor(C),W.length==0||C==0)return"";var X=W.length*C;for(C=Math.floor(Math.log(C)/Math.log(2));C;)W+=W,C--;return W+=W.substring(0,X-W.length),W}var B="",L="",z="",H="",ie={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:"},de=10;function Ae(W){var C=Object.keys(W),X=Object.create(Object.getPrototypeOf(W));return C.forEach(function(ue){X[ue]=W[ue]}),Object.defineProperty(X,"message",{value:W.message}),X}function O(W){return $(W,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function re(W,C,X){var ue="",Q="",j=0,k="",V=!1,pe=O(W),ye=pe.split(`
71
+ `),G=O(C).split(`
72
+ `),w=0,N="";if(X==="strictEqual"&&M(W)==="object"&&M(C)==="object"&&W!==null&&C!==null&&(X="strictEqualObject"),ye.length===1&&G.length===1&&ye[0]!==G[0]){var K=ye[0].length+G[0].length;if(K<=de){if((M(W)!=="object"||W===null)&&(M(C)!=="object"||C===null)&&(W!==0||C!==0))return"".concat(ie[X],`
73
+
74
+ `)+"".concat(ye[0]," !== ").concat(G[0],`
75
+ `)}else if(X!=="strictEqualObject"){var Z=st.stderr&&st.stderr.isTTY?st.stderr.columns:80;if(K<Z){for(;ye[0][w]===G[0][w];)w++;w>2&&(N=`
76
+ `.concat(te(" ",w),"^"),w=0)}}}for(var ce=ye[ye.length-1],le=G[G.length-1];ce===le&&(w++<2?k=`
77
+ `.concat(ce).concat(k):ue=ce,ye.pop(),G.pop(),!(ye.length===0||G.length===0));)ce=ye[ye.length-1],le=G[G.length-1];var b=Math.max(ye.length,G.length);if(b===0){var g=pe.split(`
78
+ `);if(g.length>30)for(g[26]="".concat(B,"...").concat(H);g.length>27;)g.pop();return"".concat(ie.notIdentical,`
79
+
80
+ `).concat(g.join(`
81
+ `),`
82
+ `)}w>3&&(k=`
83
+ `.concat(B,"...").concat(H).concat(k),V=!0),ue!==""&&(k=`
84
+ `.concat(ue).concat(k),ue="");var m=0,I=ie[X]+`
85
+ `.concat(L,"+ actual").concat(H," ").concat(z,"- expected").concat(H),ee=" ".concat(B,"...").concat(H," Lines skipped");for(w=0;w<b;w++){var me=w-j;if(ye.length<w+1)me>1&&w>2&&(me>4?(Q+=`
86
+ `.concat(B,"...").concat(H),V=!0):me>3&&(Q+=`
87
+ `.concat(G[w-2]),m++),Q+=`
88
+ `.concat(G[w-1]),m++),j=w,ue+=`
89
+ `.concat(z,"-").concat(H," ").concat(G[w]),m++;else if(G.length<w+1)me>1&&w>2&&(me>4?(Q+=`
90
+ `.concat(B,"...").concat(H),V=!0):me>3&&(Q+=`
91
+ `.concat(ye[w-2]),m++),Q+=`
92
+ `.concat(ye[w-1]),m++),j=w,Q+=`
93
+ `.concat(L,"+").concat(H," ").concat(ye[w]),m++;else{var Ce=G[w],je=ye[w],ae=je!==Ce&&(!ne(je,",")||je.slice(0,-1)!==Ce);ae&&ne(Ce,",")&&Ce.slice(0,-1)===je&&(ae=!1,je+=","),ae?(me>1&&w>2&&(me>4?(Q+=`
94
+ `.concat(B,"...").concat(H),V=!0):me>3&&(Q+=`
95
+ `.concat(ye[w-2]),m++),Q+=`
96
+ `.concat(ye[w-1]),m++),j=w,Q+=`
97
+ `.concat(L,"+").concat(H," ").concat(je),ue+=`
98
+ `.concat(z,"-").concat(H," ").concat(Ce),m+=2):(Q+=ue,ue="",(me===1||w===0)&&(Q+=`
99
+ `.concat(je),m++))}if(m>20&&w<b-2)return"".concat(I).concat(ee,`
100
+ `).concat(Q,`
101
+ `).concat(B,"...").concat(H).concat(ue,`
102
+ `)+"".concat(B,"...").concat(H)}return"".concat(I).concat(V?ee:"",`
103
+ `).concat(Q).concat(ue).concat(k).concat(N)}var he=(function(W,C){p(ue,W);var X=h(ue);function ue(Q){var j;if(o(this,ue),M(Q)!=="object"||Q===null)throw new Y("options","Object",Q);var k=Q.message,V=Q.operator,pe=Q.stackStartFn,ye=Q.actual,G=Q.expected,w=Error.stackTraceLimit;if(Error.stackTraceLimit=0,k!=null)j=X.call(this,String(k));else if(st.stderr&&st.stderr.isTTY&&(st.stderr&&st.stderr.getColorDepth&&st.stderr.getColorDepth()!==1?(B="\x1B[34m",L="\x1B[32m",H="\x1B[39m",z="\x1B[31m"):(B="",L="",H="",z="")),M(ye)==="object"&&ye!==null&&M(G)==="object"&&G!==null&&"stack"in ye&&ye instanceof Error&&"stack"in G&&G instanceof Error&&(ye=Ae(ye),G=Ae(G)),V==="deepStrictEqual"||V==="strictEqual")j=X.call(this,re(ye,G,V));else if(V==="notDeepStrictEqual"||V==="notStrictEqual"){var N=ie[V],K=O(ye).split(`
104
+ `);if(V==="notStrictEqual"&&M(ye)==="object"&&ye!==null&&(N=ie.notStrictEqualObject),K.length>30)for(K[26]="".concat(B,"...").concat(H);K.length>27;)K.pop();K.length===1?j=X.call(this,"".concat(N," ").concat(K[0])):j=X.call(this,"".concat(N,`
105
+
106
+ `).concat(K.join(`
107
+ `),`
108
+ `))}else{var Z=O(ye),ce="",le=ie[V];V==="notDeepEqual"||V==="notEqual"?(Z="".concat(ie[V],`
109
+
110
+ `).concat(Z),Z.length>1024&&(Z="".concat(Z.slice(0,1021),"..."))):(ce="".concat(O(G)),Z.length>512&&(Z="".concat(Z.slice(0,509),"...")),ce.length>512&&(ce="".concat(ce.slice(0,509),"...")),V==="deepEqual"||V==="equal"?Z="".concat(le,`
111
+
112
+ `).concat(Z,`
113
+
114
+ should equal
115
+
116
+ `):ce=" ".concat(V," ").concat(ce)),j=X.call(this,"".concat(Z).concat(ce))}return Error.stackTraceLimit=w,j.generatedMessage=!k,Object.defineProperty(v(j),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),j.code="ERR_ASSERTION",j.actual=ye,j.expected=G,j.operator=V,Error.captureStackTrace&&Error.captureStackTrace(v(j),pe),j.stack,j.name="AssertionError",A(j)}return c(ue,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:C,value:function(j,k){return $(this,t(t({},k),{},{customInspect:!1,depth:0}))}}]),ue})(x(Error),$.custom);return Im=he,Im}var Sm,XS;function H3(){if(XS)return Sm;XS=1;var e=Object.prototype.toString;return Sm=function(r){var o=e.call(r),s=o==="[object Arguments]";return s||(s=o!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&e.call(r.callee)==="[object Function]"),s},Sm}var Cm,ZS;function QH(){if(ZS)return Cm;ZS=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,o=H3(),s=Object.prototype.propertyIsEnumerable,c=!s.call({toString:null},"toString"),l=s.call(function(){},"prototype"),f=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],p=function(x){var S=x.constructor;return S&&S.prototype===x},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 x in window)try{if(!h["$"+x]&&t.call(window,x)&&window[x]!==null&&typeof window[x]=="object")try{p(window[x])}catch{return!0}}catch{return!0}return!1})(),v=function(x){if(typeof window>"u"||!A)return p(x);try{return p(x)}catch{return!1}};e=function(S){var R=S!==null&&typeof S=="object",U=r.call(S)==="[object Function]",T=o(S),_=R&&r.call(S)==="[object String]",M=[];if(!R&&!U&&!T)throw new TypeError("Object.keys called on a non-object");var D=l&&U;if(_&&S.length>0&&!t.call(S,0))for(var $=0;$<S.length;++$)M.push(String($));if(T&&S.length>0)for(var P=0;P<S.length;++P)M.push(String(P));else for(var Y in S)!(D&&Y==="prototype")&&t.call(S,Y)&&M.push(String(Y));if(c)for(var ne=v(S),te=0;te<f.length;++te)!(ne&&f[te]==="constructor")&&t.call(S,f[te])&&M.push(f[te]);return M}}return Cm=e,Cm}var Om,JS;function z3(){if(JS)return Om;JS=1;var e=Array.prototype.slice,t=H3(),r=Object.keys,o=r?function(l){return r(l)}:QH(),s=Object.keys;return o.shim=function(){if(Object.keys){var l=(function(){var f=Object.keys(arguments);return f&&f.length===arguments.length})(1,2);l||(Object.keys=function(p){return t(p)?s(e.call(p)):s(p)})}else Object.keys=o;return Object.keys||o},Om=o,Om}var Fm,WS;function KH(){if(WS)return Fm;WS=1;var e=z3(),t=qx()(),r=Cu(),o=$x(),s=r("Array.prototype.push"),c=r("Object.prototype.propertyIsEnumerable"),l=t?o.getOwnPropertySymbols:null;return Fm=function(p,h){if(p==null)throw new TypeError("target must be an object");var A=o(p);if(arguments.length===1)return A;for(var v=1;v<arguments.length;++v){var x=o(arguments[v]),S=e(x),R=t&&(o.getOwnPropertySymbols||l);if(R)for(var U=R(x),T=0;T<U.length;++T){var _=U[T];c(x,_)&&s(S,_)}for(var M=0;M<S.length;++M){var D=S[M];if(c(x,D)){var $=x[D];A[D]=$}}}return A},Fm}var Rm,eC;function VH(){if(eC)return Rm;eC=1;var e=KH(),t=function(){if(!Object.assign)return!1;for(var o="abcdefghijklmnopqrst",s=o.split(""),c={},l=0;l<s.length;++l)c[s[l]]=s[l];var f=Object.assign({},c),p="";for(var h in f)p+=h;return o!==p},r=function(){if(!Object.assign||!Object.preventExtensions)return!1;var o=Object.preventExtensions({1:2});try{Object.assign(o,"xy")}catch{return o[1]==="y"}return!1};return Rm=function(){return!Object.assign||t()||r()?e:Object.assign},Rm}var Bm,tC;function G3(){if(tC)return Bm;tC=1;var e=function(t){return t!==t};return Bm=function(r,o){return r===0&&o===0?1/r===1/o:!!(r===o||e(r)&&e(o))},Bm}var Tm,nC;function Kx(){if(nC)return Tm;nC=1;var e=G3();return Tm=function(){return typeof Object.is=="function"?Object.is:e},Tm}var _m,rC;function YH(){if(rC)return _m;rC=1;var e=Qx(),t=Uh(),r=t(e("String.prototype.indexOf"));return _m=function(s,c){var l=e(s,!!c);return typeof l=="function"&&r(s,".prototype.")>-1?t(l):l},_m}var Mm,iC;function Ph(){if(iC)return Mm;iC=1;var e=z3(),t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",r=Object.prototype.toString,o=Array.prototype.concat,s=L3(),c=function(h){return typeof h=="function"&&r.call(h)==="[object Function]"},l=q3()(),f=function(h,A,v,x){if(A in h){if(x===!0){if(h[A]===v)return}else if(!c(x)||!x())return}l?s(h,A,v,!0):s(h,A,v)},p=function(h,A){var v=arguments.length>2?arguments[2]:{},x=e(A);t&&(x=o.call(x,Object.getOwnPropertySymbols(A)));for(var S=0;S<x.length;S+=1)f(h,x[S],A[x[S]],v[x[S]])};return p.supportsDescriptors=!!l,Mm=p,Mm}var Dm,oC;function XH(){if(oC)return Dm;oC=1;var e=Kx(),t=Ph();return Dm=function(){var o=e();return t(Object,{is:o},{is:function(){return Object.is!==o}}),o},Dm}var Um,aC;function ZH(){if(aC)return Um;aC=1;var e=Ph(),t=Uh(),r=G3(),o=Kx(),s=XH(),c=t(o(),Object);return e(c,{getPolyfill:o,implementation:r,shim:s}),Um=c,Um}var Pm,sC;function Q3(){return sC||(sC=1,Pm=function(t){return t!==t}),Pm}var jm,uC;function K3(){if(uC)return jm;uC=1;var e=Q3();return jm=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:e},jm}var Nm,cC;function JH(){if(cC)return Nm;cC=1;var e=Ph(),t=K3();return Nm=function(){var o=t();return e(Number,{isNaN:o},{isNaN:function(){return Number.isNaN!==o}}),o},Nm}var Lm,lC;function WH(){if(lC)return Lm;lC=1;var e=Uh(),t=Ph(),r=Q3(),o=K3(),s=JH(),c=e(o(),Number);return t(c,{getPolyfill:o,implementation:r,shim:s}),Lm=c,Lm}var qm,fC;function e9(){if(fC)return qm;fC=1;function e(ae,se){return c(ae)||s(ae,se)||r(ae,se)||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 r(ae,se){if(ae){if(typeof ae=="string")return o(ae,se);var Ee=Object.prototype.toString.call(ae).slice(8,-1);if(Ee==="Object"&&ae.constructor&&(Ee=ae.constructor.name),Ee==="Map"||Ee==="Set")return Array.from(ae);if(Ee==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ee))return o(ae,se)}}function o(ae,se){(se==null||se>ae.length)&&(se=ae.length);for(var Ee=0,Fe=new Array(se);Ee<se;Ee++)Fe[Ee]=ae[Ee];return Fe}function s(ae,se){var Ee=ae==null?null:typeof Symbol<"u"&&ae[Symbol.iterator]||ae["@@iterator"];if(Ee!=null){var Fe,Me,qe,ke,Ge=[],Qe=!0,Ze=!1;try{if(qe=(Ee=Ee.call(ae)).next,se!==0)for(;!(Qe=(Fe=qe.call(Ee)).done)&&(Ge.push(Fe.value),Ge.length!==se);Qe=!0);}catch(Je){Ze=!0,Me=Je}finally{try{if(!Qe&&Ee.return!=null&&(ke=Ee.return(),Object(ke)!==ke))return}finally{if(Ze)throw Me}}return Ge}}function c(ae){if(Array.isArray(ae))return ae}function l(ae){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(se){return typeof se}:function(se){return se&&typeof Symbol=="function"&&se.constructor===Symbol&&se!==Symbol.prototype?"symbol":typeof se},l(ae)}var f=/a/g.flags!==void 0,p=function(se){var Ee=[];return se.forEach(function(Fe){return Ee.push(Fe)}),Ee},h=function(se){var Ee=[];return se.forEach(function(Fe,Me){return Ee.push([Me,Fe])}),Ee},A=Object.is?Object.is:ZH(),v=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},x=Number.isNaN?Number.isNaN:WH();function S(ae){return ae.call.bind(ae)}var R=S(Object.prototype.hasOwnProperty),U=S(Object.prototype.propertyIsEnumerable),T=S(Object.prototype.toString),_=Sl().types,M=_.isAnyArrayBuffer,D=_.isArrayBufferView,$=_.isDate,P=_.isMap,Y=_.isRegExp,ne=_.isSet,te=_.isNativeError,B=_.isBoxedPrimitive,L=_.isNumberObject,z=_.isStringObject,H=_.isBooleanObject,ie=_.isBigIntObject,de=_.isSymbolObject,Ae=_.isFloat32Array,O=_.isFloat64Array;function re(ae){if(ae.length===0||ae.length>10)return!0;for(var se=0;se<ae.length;se++){var Ee=ae.charCodeAt(se);if(Ee<48||Ee>57)return!0}return ae.length===10&&ae>=Math.pow(2,32)}function he(ae){return Object.keys(ae).filter(re).concat(v(ae).filter(Object.prototype.propertyIsEnumerable.bind(ae)))}/*!
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 W(ae,se){if(ae===se)return 0;for(var Ee=ae.length,Fe=se.length,Me=0,qe=Math.min(Ee,Fe);Me<qe;++Me)if(ae[Me]!==se[Me]){Ee=ae[Me],Fe=se[Me];break}return Ee<Fe?-1:Fe<Ee?1:0}var C=!0,X=!1,ue=0,Q=1,j=2,k=3;function V(ae,se){return f?ae.source===se.source&&ae.flags===se.flags:RegExp.prototype.toString.call(ae)===RegExp.prototype.toString.call(se)}function pe(ae,se){if(ae.byteLength!==se.byteLength)return!1;for(var Ee=0;Ee<ae.byteLength;Ee++)if(ae[Ee]!==se[Ee])return!1;return!0}function ye(ae,se){return ae.byteLength!==se.byteLength?!1:W(new Uint8Array(ae.buffer,ae.byteOffset,ae.byteLength),new Uint8Array(se.buffer,se.byteOffset,se.byteLength))===0}function G(ae,se){return ae.byteLength===se.byteLength&&W(new Uint8Array(ae),new Uint8Array(se))===0}function w(ae,se){return L(ae)?L(se)&&A(Number.prototype.valueOf.call(ae),Number.prototype.valueOf.call(se)):z(ae)?z(se)&&String.prototype.valueOf.call(ae)===String.prototype.valueOf.call(se):H(ae)?H(se)&&Boolean.prototype.valueOf.call(ae)===Boolean.prototype.valueOf.call(se):ie(ae)?ie(se)&&BigInt.prototype.valueOf.call(ae)===BigInt.prototype.valueOf.call(se):de(se)&&Symbol.prototype.valueOf.call(ae)===Symbol.prototype.valueOf.call(se)}function N(ae,se,Ee,Fe){if(ae===se)return ae!==0?!0:Ee?A(ae,se):!0;if(Ee){if(l(ae)!=="object")return typeof ae=="number"&&x(ae)&&x(se);if(l(se)!=="object"||ae===null||se===null||Object.getPrototypeOf(ae)!==Object.getPrototypeOf(se))return!1}else{if(ae===null||l(ae)!=="object")return se===null||l(se)!=="object"?ae==se:!1;if(se===null||l(se)!=="object")return!1}var Me=T(ae),qe=T(se);if(Me!==qe)return!1;if(Array.isArray(ae)){if(ae.length!==se.length)return!1;var ke=he(ae),Ge=he(se);return ke.length!==Ge.length?!1:Z(ae,se,Ee,Fe,Q,ke)}if(Me==="[object Object]"&&(!P(ae)&&P(se)||!ne(ae)&&ne(se)))return!1;if($(ae)){if(!$(se)||Date.prototype.getTime.call(ae)!==Date.prototype.getTime.call(se))return!1}else if(Y(ae)){if(!Y(se)||!V(ae,se))return!1}else if(te(ae)||ae instanceof Error){if(ae.message!==se.message||ae.name!==se.name)return!1}else if(D(ae)){if(!Ee&&(Ae(ae)||O(ae))){if(!pe(ae,se))return!1}else if(!ye(ae,se))return!1;var Qe=he(ae),Ze=he(se);return Qe.length!==Ze.length?!1:Z(ae,se,Ee,Fe,ue,Qe)}else{if(ne(ae))return!ne(se)||ae.size!==se.size?!1:Z(ae,se,Ee,Fe,j);if(P(ae))return!P(se)||ae.size!==se.size?!1:Z(ae,se,Ee,Fe,k);if(M(ae)){if(!G(ae,se))return!1}else if(B(ae)&&!w(ae,se))return!1}return Z(ae,se,Ee,Fe,ue)}function K(ae,se){return se.filter(function(Ee){return U(ae,Ee)})}function Z(ae,se,Ee,Fe,Me,qe){if(arguments.length===5){qe=Object.keys(ae);var ke=Object.keys(se);if(qe.length!==ke.length)return!1}for(var Ge=0;Ge<qe.length;Ge++)if(!R(se,qe[Ge]))return!1;if(Ee&&arguments.length===5){var Qe=v(ae);if(Qe.length!==0){var Ze=0;for(Ge=0;Ge<Qe.length;Ge++){var Je=Qe[Ge];if(U(ae,Je)){if(!U(se,Je))return!1;qe.push(Je),Ze++}else if(U(se,Je))return!1}var ft=v(se);if(Qe.length!==ft.length&&K(se,ft).length!==Ze)return!1}else{var pt=v(se);if(pt.length!==0&&K(se,pt).length!==0)return!1}}if(qe.length===0&&(Me===ue||Me===Q&&ae.length===0||ae.size===0))return!0;if(Fe===void 0)Fe={val1:new Map,val2:new Map,position:0};else{var gt=Fe.val1.get(ae);if(gt!==void 0){var mt=Fe.val2.get(se);if(mt!==void 0)return gt===mt}Fe.position++}Fe.val1.set(ae,Fe.position),Fe.val2.set(se,Fe.position);var xt=me(ae,se,Ee,qe,Fe,Me);return Fe.val1.delete(ae),Fe.val2.delete(se),xt}function ce(ae,se,Ee,Fe){for(var Me=p(ae),qe=0;qe<Me.length;qe++){var ke=Me[qe];if(N(se,ke,Ee,Fe))return ae.delete(ke),!0}return!1}function le(ae){switch(l(ae)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":ae=+ae;case"number":if(x(ae))return!1}return!0}function b(ae,se,Ee){var Fe=le(Ee);return Fe??(se.has(Fe)&&!ae.has(Fe))}function g(ae,se,Ee,Fe,Me){var qe=le(Ee);if(qe!=null)return qe;var ke=se.get(qe);return ke===void 0&&!se.has(qe)||!N(Fe,ke,!1,Me)?!1:!ae.has(qe)&&N(Fe,ke,!1,Me)}function m(ae,se,Ee,Fe){for(var Me=null,qe=p(ae),ke=0;ke<qe.length;ke++){var Ge=qe[ke];if(l(Ge)==="object"&&Ge!==null)Me===null&&(Me=new Set),Me.add(Ge);else if(!se.has(Ge)){if(Ee||!b(ae,se,Ge))return!1;Me===null&&(Me=new Set),Me.add(Ge)}}if(Me!==null){for(var Qe=p(se),Ze=0;Ze<Qe.length;Ze++){var Je=Qe[Ze];if(l(Je)==="object"&&Je!==null){if(!ce(Me,Je,Ee,Fe))return!1}else if(!Ee&&!ae.has(Je)&&!ce(Me,Je,Ee,Fe))return!1}return Me.size===0}return!0}function I(ae,se,Ee,Fe,Me,qe){for(var ke=p(ae),Ge=0;Ge<ke.length;Ge++){var Qe=ke[Ge];if(N(Ee,Qe,Me,qe)&&N(Fe,se.get(Qe),Me,qe))return ae.delete(Qe),!0}return!1}function ee(ae,se,Ee,Fe){for(var Me=null,qe=h(ae),ke=0;ke<qe.length;ke++){var Ge=e(qe[ke],2),Qe=Ge[0],Ze=Ge[1];if(l(Qe)==="object"&&Qe!==null)Me===null&&(Me=new Set),Me.add(Qe);else{var Je=se.get(Qe);if(Je===void 0&&!se.has(Qe)||!N(Ze,Je,Ee,Fe)){if(Ee||!g(ae,se,Qe,Ze,Fe))return!1;Me===null&&(Me=new Set),Me.add(Qe)}}}if(Me!==null){for(var ft=h(se),pt=0;pt<ft.length;pt++){var gt=e(ft[pt],2),mt=gt[0],xt=gt[1];if(l(mt)==="object"&&mt!==null){if(!I(Me,ae,mt,xt,Ee,Fe))return!1}else if(!Ee&&(!ae.has(mt)||!N(ae.get(mt),xt,!1,Fe))&&!I(Me,ae,mt,xt,!1,Fe))return!1}return Me.size===0}return!0}function me(ae,se,Ee,Fe,Me,qe){var ke=0;if(qe===j){if(!m(ae,se,Ee,Me))return!1}else if(qe===k){if(!ee(ae,se,Ee,Me))return!1}else if(qe===Q)for(;ke<ae.length;ke++)if(R(ae,ke)){if(!R(se,ke)||!N(ae[ke],se[ke],Ee,Me))return!1}else{if(R(se,ke))return!1;for(var Ge=Object.keys(ae);ke<Ge.length;ke++){var Qe=Ge[ke];if(!R(se,Qe)||!N(ae[Qe],se[Qe],Ee,Me))return!1}return Ge.length===Object.keys(se).length}for(ke=0;ke<Fe.length;ke++){var Ze=Fe[ke];if(!N(ae[Ze],se[Ze],Ee,Me))return!1}return!0}function Ce(ae,se){return N(ae,se,X)}function je(ae,se){return N(ae,se,C)}return qm={isDeepEqual:Ce,isDeepStrictEqual:je},qm}var dC;function w1(){if(dC)return Eg.exports;dC=1;function e(j){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(k){return typeof k}:function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k},e(j)}function t(j,k,V){return Object.defineProperty(j,"prototype",{writable:!1}),j}function r(j,k){if(!(j instanceof k))throw new TypeError("Cannot call a class as a function")}var o=k3(),s=o.codes,c=s.ERR_AMBIGUOUS_ARGUMENT,l=s.ERR_INVALID_ARG_TYPE,f=s.ERR_INVALID_ARG_VALUE,p=s.ERR_INVALID_RETURN_VALUE,h=s.ERR_MISSING_ARGS,A=GH(),v=Sl(),x=v.inspect,S=Sl().types,R=S.isPromise,U=S.isRegExp,T=VH()(),_=Kx()(),M=YH()("RegExp.prototype.test"),D,$;function P(){var j=e9();D=j.isDeepEqual,$=j.isDeepStrictEqual}var Y=!1,ne=Eg.exports=H,te={};function B(j){throw j.message instanceof Error?j.message:new A(j)}function L(j,k,V,pe,ye){var G=arguments.length,w;if(G===0)w="Failed";else if(G===1)V=j,j=void 0;else{if(Y===!1){Y=!0;var N=st.emitWarning?st.emitWarning:console.warn.bind(console);N("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}G===2&&(pe="!=")}if(V instanceof Error)throw V;var K={actual:j,expected:k,operator:pe===void 0?"fail":pe,stackStartFn:ye||L};V!==void 0&&(K.message=V);var Z=new A(K);throw w&&(Z.message=w,Z.generatedMessage=!0),Z}ne.fail=L,ne.AssertionError=A;function z(j,k,V,pe){if(!V){var ye=!1;if(k===0)ye=!0,pe="No value argument passed to `assert.ok()`";else if(pe instanceof Error)throw pe;var G=new A({actual:V,expected:!0,message:pe,operator:"==",stackStartFn:j});throw G.generatedMessage=ye,G}}function H(){for(var j=arguments.length,k=new Array(j),V=0;V<j;V++)k[V]=arguments[V];z.apply(void 0,[H,k.length].concat(k))}ne.ok=H,ne.equal=function j(k,V,pe){if(arguments.length<2)throw new h("actual","expected");k!=V&&B({actual:k,expected:V,message:pe,operator:"==",stackStartFn:j})},ne.notEqual=function j(k,V,pe){if(arguments.length<2)throw new h("actual","expected");k==V&&B({actual:k,expected:V,message:pe,operator:"!=",stackStartFn:j})},ne.deepEqual=function j(k,V,pe){if(arguments.length<2)throw new h("actual","expected");D===void 0&&P(),D(k,V)||B({actual:k,expected:V,message:pe,operator:"deepEqual",stackStartFn:j})},ne.notDeepEqual=function j(k,V,pe){if(arguments.length<2)throw new h("actual","expected");D===void 0&&P(),D(k,V)&&B({actual:k,expected:V,message:pe,operator:"notDeepEqual",stackStartFn:j})},ne.deepStrictEqual=function j(k,V,pe){if(arguments.length<2)throw new h("actual","expected");D===void 0&&P(),$(k,V)||B({actual:k,expected:V,message:pe,operator:"deepStrictEqual",stackStartFn:j})},ne.notDeepStrictEqual=ie;function ie(j,k,V){if(arguments.length<2)throw new h("actual","expected");D===void 0&&P(),$(j,k)&&B({actual:j,expected:k,message:V,operator:"notDeepStrictEqual",stackStartFn:ie})}ne.strictEqual=function j(k,V,pe){if(arguments.length<2)throw new h("actual","expected");_(k,V)||B({actual:k,expected:V,message:pe,operator:"strictEqual",stackStartFn:j})},ne.notStrictEqual=function j(k,V,pe){if(arguments.length<2)throw new h("actual","expected");_(k,V)&&B({actual:k,expected:V,message:pe,operator:"notStrictEqual",stackStartFn:j})};var de=t(function j(k,V,pe){var ye=this;r(this,j),V.forEach(function(G){G in k&&(pe!==void 0&&typeof pe[G]=="string"&&U(k[G])&&M(k[G],pe[G])?ye[G]=pe[G]:ye[G]=k[G])})});function Ae(j,k,V,pe,ye,G){if(!(V in j)||!$(j[V],k[V])){if(!pe){var w=new de(j,ye),N=new de(k,ye,j),K=new A({actual:w,expected:N,operator:"deepStrictEqual",stackStartFn:G});throw K.actual=j,K.expected=k,K.operator=G.name,K}B({actual:j,expected:k,message:pe,operator:G.name,stackStartFn:G})}}function O(j,k,V,pe){if(typeof k!="function"){if(U(k))return M(k,j);if(arguments.length===2)throw new l("expected",["Function","RegExp"],k);if(e(j)!=="object"||j===null){var ye=new A({actual:j,expected:k,message:V,operator:"deepStrictEqual",stackStartFn:pe});throw ye.operator=pe.name,ye}var G=Object.keys(k);if(k instanceof Error)G.push("name","message");else if(G.length===0)throw new f("error",k,"may not be an empty object");return D===void 0&&P(),G.forEach(function(w){typeof j[w]=="string"&&U(k[w])&&M(k[w],j[w])||Ae(j,k,w,V,G,pe)}),!0}return k.prototype!==void 0&&j instanceof k?!0:Error.isPrototypeOf(k)?!1:k.call({},j)===!0}function re(j){if(typeof j!="function")throw new l("fn","Function",j);try{j()}catch(k){return k}return te}function he(j){return R(j)||j!==null&&e(j)==="object"&&typeof j.then=="function"&&typeof j.catch=="function"}function W(j){return Promise.resolve().then(function(){var k;if(typeof j=="function"){if(k=j(),!he(k))throw new p("instance of Promise","promiseFn",k)}else if(he(j))k=j;else throw new l("promiseFn",["Function","Promise"],j);return Promise.resolve().then(function(){return k}).then(function(){return te}).catch(function(V){return V})})}function C(j,k,V,pe){if(typeof V=="string"){if(arguments.length===4)throw new l("error",["Object","Error","Function","RegExp"],V);if(e(k)==="object"&&k!==null){if(k.message===V)throw new c("error/message",'The error message "'.concat(k.message,'" is identical to the message.'))}else if(k===V)throw new c("error/message",'The error "'.concat(k,'" is identical to the message.'));pe=V,V=void 0}else if(V!=null&&e(V)!=="object"&&typeof V!="function")throw new l("error",["Object","Error","Function","RegExp"],V);if(k===te){var ye="";V&&V.name&&(ye+=" (".concat(V.name,")")),ye+=pe?": ".concat(pe):".";var G=j.name==="rejects"?"rejection":"exception";B({actual:void 0,expected:V,operator:j.name,message:"Missing expected ".concat(G).concat(ye),stackStartFn:j})}if(V&&!O(k,V,pe,j))throw k}function X(j,k,V,pe){if(k!==te){if(typeof V=="string"&&(pe=V,V=void 0),!V||O(k,V)){var ye=pe?": ".concat(pe):".",G=j.name==="doesNotReject"?"rejection":"exception";B({actual:k,expected:V,operator:j.name,message:"Got unwanted ".concat(G).concat(ye,`
123
+ `)+'Actual message: "'.concat(k&&k.message,'"'),stackStartFn:j})}throw k}}ne.throws=function j(k){for(var V=arguments.length,pe=new Array(V>1?V-1:0),ye=1;ye<V;ye++)pe[ye-1]=arguments[ye];C.apply(void 0,[j,re(k)].concat(pe))},ne.rejects=function j(k){for(var V=arguments.length,pe=new Array(V>1?V-1:0),ye=1;ye<V;ye++)pe[ye-1]=arguments[ye];return W(k).then(function(G){return C.apply(void 0,[j,G].concat(pe))})},ne.doesNotThrow=function j(k){for(var V=arguments.length,pe=new Array(V>1?V-1:0),ye=1;ye<V;ye++)pe[ye-1]=arguments[ye];X.apply(void 0,[j,re(k)].concat(pe))},ne.doesNotReject=function j(k){for(var V=arguments.length,pe=new Array(V>1?V-1:0),ye=1;ye<V;ye++)pe[ye-1]=arguments[ye];return W(k).then(function(G){return X.apply(void 0,[j,G].concat(pe))})},ne.ifError=function j(k){if(k!=null){var V="ifError got unwanted exception: ";e(k)==="object"&&typeof k.message=="string"?k.message.length===0&&k.constructor?V+=k.constructor.name:V+=k.message:V+=x(k);var pe=new A({actual:k,expected:null,operator:"ifError",message:V,stackStartFn:j}),ye=k.stack;if(typeof ye=="string"){var G=ye.split(`
124
+ `);G.shift();for(var w=pe.stack.split(`
125
+ `),N=0;N<G.length;N++){var K=w.indexOf(G[N]);if(K!==-1){w=w.slice(0,K);break}}pe.stack="".concat(w.join(`
126
+ `),`
127
+ `).concat(G.join(`
128
+ `))}throw pe}};function ue(j,k,V,pe,ye){if(!U(k))throw new l("regexp","RegExp",k);var G=ye==="match";if(typeof j!="string"||M(k,j)!==G){if(V instanceof Error)throw V;var w=!V;V=V||(typeof j!="string"?'The "string" argument must be of type string. Received type '+"".concat(e(j)," (").concat(x(j),")"):(G?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(x(k),`. Input:
129
+
130
+ `).concat(x(j),`
131
+ `));var N=new A({actual:j,expected:k,message:V,operator:ye,stackStartFn:pe});throw N.generatedMessage=w,N}}ne.match=function j(k,V,pe){ue(k,V,pe,j,"match")},ne.doesNotMatch=function j(k,V,pe){ue(k,V,pe,j,"doesNotMatch")};function Q(){for(var j=arguments.length,k=new Array(j),V=0;V<j;V++)k[V]=arguments[V];z.apply(void 0,[Q,k.length].concat(k))}return ne.strict=T(Q,ne,{equal:ne.strictEqual,deepEqual:ne.deepStrictEqual,notEqual:ne.notStrictEqual,notDeepEqual:ne.notDeepStrictEqual}),ne.strict.strict=ne.strict,Eg.exports}var $m,hC;function t9(){if(hC)return $m;hC=1;function e(t){if(t.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),o=0;o<r.length;o++)r[o]=255;for(var s=0;s<t.length;s++){var c=t.charAt(s),l=c.charCodeAt(0);if(r[l]!==255)throw new TypeError(c+" is ambiguous");r[l]=s}var f=t.length,p=t.charAt(0),h=Math.log(f)/Math.log(256),A=Math.log(256)/Math.log(f);function v(R){if(R instanceof Uint8Array||(ArrayBuffer.isView(R)?R=new Uint8Array(R.buffer,R.byteOffset,R.byteLength):Array.isArray(R)&&(R=Uint8Array.from(R))),!(R instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(R.length===0)return"";for(var U=0,T=0,_=0,M=R.length;_!==M&&R[_]===0;)_++,U++;for(var D=(M-_)*A+1>>>0,$=new Uint8Array(D);_!==M;){for(var P=R[_],Y=0,ne=D-1;(P!==0||Y<T)&&ne!==-1;ne--,Y++)P+=256*$[ne]>>>0,$[ne]=P%f>>>0,P=P/f>>>0;if(P!==0)throw new Error("Non-zero carry");T=Y,_++}for(var te=D-T;te!==D&&$[te]===0;)te++;for(var B=p.repeat(U);te<D;++te)B+=t.charAt($[te]);return B}function x(R){if(typeof R!="string")throw new TypeError("Expected String");if(R.length===0)return new Uint8Array;for(var U=0,T=0,_=0;R[U]===p;)T++,U++;for(var M=(R.length-U)*h+1>>>0,D=new Uint8Array(M);R[U];){var $=R.charCodeAt(U);if($>255)return;var P=r[$];if(P===255)return;for(var Y=0,ne=M-1;(P!==0||Y<_)&&ne!==-1;ne--,Y++)P+=f*D[ne]>>>0,D[ne]=P%256>>>0,P=P/256>>>0;if(P!==0)throw new Error("Non-zero carry");_=Y,U++}for(var te=M-_;te!==M&&D[te]===0;)te++;for(var B=new Uint8Array(T+(M-te)),L=T;te!==M;)B[L++]=D[te++];return B}function S(R){var U=x(R);if(U)return U;throw new Error("Non-base"+f+" character")}return{encode:v,decodeUnsafe:x,decode:S}}return $m=e,$m}var $n={exports:{}},km,pC;function V3(){if(pC)return km;pC=1,km=t;class e extends Error{}e.prototype.name="AssertionError";function t(r,o){if(!r){var s=new e(o);throw Error.captureStackTrace&&Error.captureStackTrace(s,t),s}}return km}var ri={exports:{}},xd={exports:{}},Hm,yC;function n9(){if(yC)return Hm;yC=1;function e(o){return o.length}function t(o){const s=o.byteLength;let c="";for(let l=0;l<s;l++)c+=String.fromCharCode(o[l]);return c}function r(o,s,c=0,l=e(s)){const f=Math.min(l,o.byteLength-c);for(let p=0;p<f;p++)o[c+p]=s.charCodeAt(p);return f}return Hm={byteLength:e,toString:t,write:r},Hm}var zm,gC;function r9(){if(gC)return zm;gC=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 r(c){let l=c.length;return c.charCodeAt(l-1)===61&&l--,l>1&&c.charCodeAt(l-1)===61&&l--,l*3>>>2}function o(c){const l=c.byteLength;let f="";for(let p=0;p<l;p+=3)f+=e[c[p]>>2]+e[(c[p]&3)<<4|c[p+1]>>4]+e[(c[p+1]&15)<<2|c[p+2]>>6]+e[c[p+2]&63];return l%3===2?f=f.substring(0,f.length-1)+"=":l%3===1&&(f=f.substring(0,f.length-2)+"=="),f}function s(c,l,f=0,p=r(l)){const h=Math.min(p,c.byteLength-f);for(let A=0,v=0;v<h;A+=4){const x=t[l.charCodeAt(A)],S=t[l.charCodeAt(A+1)],R=t[l.charCodeAt(A+2)],U=t[l.charCodeAt(A+3)];c[v++]=x<<2|S>>4,c[v++]=(S&15)<<4|R>>2,c[v++]=(R&3)<<6|U&63}return h}return zm={byteLength:r,toString:o,write:s},zm}var Gm,mC;function i9(){if(mC)return Gm;mC=1;function e(s){return s.length>>>1}function t(s){const c=s.byteLength;s=new DataView(s.buffer,s.byteOffset,c);let l="",f=0;for(let p=c-c%4;f<p;f+=4)l+=s.getUint32(f).toString(16).padStart(8,"0");for(;f<c;f++)l+=s.getUint8(f).toString(16).padStart(2,"0");return l}function r(s,c,l=0,f=e(c)){const p=Math.min(f,s.byteLength-l);for(let h=0;h<p;h++){const A=o(c.charCodeAt(h*2)),v=o(c.charCodeAt(h*2+1));if(A===void 0||v===void 0)return s.subarray(0,h);s[l+h]=A<<4|v}return p}Gm={byteLength:e,toString:t,write:r};function o(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 Gm}var Qm,AC;function o9(){if(AC)return Qm;AC=1;function e(o){let s=0;for(let c=0,l=o.length;c<l;c++){const f=o.charCodeAt(c);if(f>=55296&&f<=56319&&c+1<l){const p=o.charCodeAt(c+1);if(p>=56320&&p<=57343){s+=4,c++;continue}}f<=127?s+=1:f<=2047?s+=2:s+=3}return s}let t;if(typeof TextDecoder<"u"){const o=new TextDecoder;t=function(c){return o.decode(c)}}else t=function(s){const c=s.byteLength;let l="",f=0;for(;f<c;){let p=s[f];if(p<=127){l+=String.fromCharCode(p),f++;continue}let h=0,A=0;if(p<=223?(h=1,A=p&31):p<=239?(h=2,A=p&15):p<=244&&(h=3,A=p&7),c-f-h>0){let v=0;for(;v<h;)p=s[f+v+1],A=A<<6|p&63,v+=1}else A=65533,h=c-f;l+=String.fromCodePoint(A),f+=h+1}return l};let r;if(typeof TextEncoder<"u"){const o=new TextEncoder;r=function(c,l,f=0,p=e(l)){const h=Math.min(p,c.byteLength-f);return o.encodeInto(l,c.subarray(f,f+h)),h}}else r=function(s,c,l=0,f=e(c)){const p=Math.min(f,s.byteLength-l);s=s.subarray(l,l+p);let h=0,A=0;for(;h<c.length;){const v=c.codePointAt(h);if(v<=127){s[A++]=v,h++;continue}let x=0,S=0;for(v<=2047?(x=6,S=192):v<=65535?(x=12,S=224):v<=2097151&&(x=18,S=240),s[A++]=S|v>>x,x-=6;x>=0;)s[A++]=128|v>>x&63,x-=6;h+=v>=65536?2:1}return p};return Qm={byteLength:e,toString:t,write:r},Qm}var Km,bC;function a9(){if(bC)return Km;bC=1;function e(o){return o.length*2}function t(o){const s=o.byteLength;let c="";for(let l=0;l<s-1;l+=2)c+=String.fromCharCode(o[l]+o[l+1]*256);return c}function r(o,s,c=0,l=e(s)){const f=Math.min(l,o.byteLength-c);let p=f;for(let h=0;h<s.length&&!((p-=2)<0);++h){const A=s.charCodeAt(h),v=A>>8,x=A%256;o[c+h*2]=x,o[c+h*2+1]=v}return f}return Km={byteLength:e,toString:t,write:r},Km}var xC;function s9(){return xC||(xC=1,(function(e,t){const r=n9(),o=r9(),s=i9(),c=o9(),l=a9(),f=new Uint8Array(Uint16Array.of(255).buffer)[0]===255;function p(b){switch(b){case"ascii":return r;case"base64":return o;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: ${b}`)}}function h(b){return b instanceof Uint8Array}function A(b){try{return p(b),!0}catch{return!1}}function v(b,g,m){const I=new Uint8Array(b);return g!==void 0&&t.fill(I,g,0,I.byteLength,m),I}function x(b){return new Uint8Array(b)}function S(b){return new Uint8Array(b)}function R(b,g){return p(g).byteLength(b)}function U(b,g){if(b===g)return 0;const m=Math.min(b.byteLength,g.byteLength);b=new DataView(b.buffer,b.byteOffset,b.byteLength),g=new DataView(g.buffer,g.byteOffset,g.byteLength);let I=0;for(let ee=m-m%4;I<ee;I+=4){const me=b.getUint32(I,f),Ce=g.getUint32(I,f);if(me!==Ce)break}for(;I<m;I++){const ee=b.getUint8(I),me=g.getUint8(I);if(ee<me)return-1;if(ee>me)return 1}return b.byteLength>g.byteLength?1:b.byteLength<g.byteLength?-1:0}function T(b,g){g===void 0&&(g=b.reduce((ee,me)=>ee+me.byteLength,0));const m=new Uint8Array(g);let I=0;for(const ee of b){if(I+ee.byteLength>m.byteLength){const me=ee.subarray(0,m.byteLength-I);return m.set(me,I),m}m.set(ee,I),I+=ee.byteLength}return m}function _(b,g,m=0,I=0,ee=b.byteLength){if(ee>0&&ee<I||ee===I||b.byteLength===0||g.byteLength===0)return 0;if(m<0)throw new RangeError("targetStart is out of range");if(I<0||I>=b.byteLength)throw new RangeError("sourceStart is out of range");if(ee<0)throw new RangeError("sourceEnd is out of range");m>=g.byteLength&&(m=g.byteLength),ee>b.byteLength&&(ee=b.byteLength),g.byteLength-m<ee-I&&(ee=g.length-m+I);const me=ee-I;return b===g?g.copyWithin(m,I,ee):g.set(b.subarray(I,ee),m),me}function M(b,g){if(b===g)return!0;if(b.byteLength!==g.byteLength)return!1;const m=b.byteLength;b=new DataView(b.buffer,b.byteOffset,b.byteLength),g=new DataView(g.buffer,g.byteOffset,g.byteLength);let I=0;for(let ee=m-m%4;I<ee;I+=4)if(b.getUint32(I,f)!==g.getUint32(I,f))return!1;for(;I<m;I++)if(b.getUint8(I)!==g.getUint8(I))return!1;return!0}function D(b,g,m,I,ee){if(typeof g=="string"?typeof m=="string"?(ee=m,m=0,I=b.byteLength):typeof I=="string"&&(ee=I,I=b.byteLength):typeof g=="number"?g=g&255:typeof g=="boolean"&&(g=+g),m<0||b.byteLength<m||b.byteLength<I)throw new RangeError("Out of range index");if(m===void 0&&(m=0),I===void 0&&(I=b.byteLength),I<=m)return b;if(g||(g=0),typeof g=="number")for(let me=m;me<I;++me)b[me]=g;else{g=h(g)?g:$(g,ee);const me=g.byteLength;for(let Ce=0;Ce<I-m;++Ce)b[Ce+m]=g[Ce%me]}return b}function $(b,g,m){return typeof b=="string"?P(b,g):Array.isArray(b)?Y(b):ArrayBuffer.isView(b)?ne(b):te(b,g,m)}function P(b,g){const m=p(g),I=new Uint8Array(m.byteLength(b));return m.write(I,b,0,I.byteLength),I}function Y(b){const g=new Uint8Array(b.length);return g.set(b),g}function ne(b){const g=new Uint8Array(b.byteLength);return g.set(b),g}function te(b,g,m){return new Uint8Array(b,g,m)}function B(b,g,m,I){return z(b,g,m,I)!==-1}function L(b,g,m,I,ee){if(b.byteLength===0)return-1;if(typeof m=="string"?(I=m,m=0):m===void 0?m=ee?0:b.length-1:m<0&&(m+=b.byteLength),m>=b.byteLength){if(ee)return-1;m=b.byteLength-1}else if(m<0)if(ee)m=0;else return-1;if(typeof g=="string")g=$(g,I);else if(typeof g=="number")return g=g&255,ee?b.indexOf(g,m):b.lastIndexOf(g,m);if(g.byteLength===0)return-1;if(ee){let me=-1;for(let Ce=m;Ce<b.byteLength;Ce++)if(b[Ce]===g[me===-1?0:Ce-me]){if(me===-1&&(me=Ce),Ce-me+1===g.byteLength)return me}else me!==-1&&(Ce-=Ce-me),me=-1}else{m+g.byteLength>b.byteLength&&(m=b.byteLength-g.byteLength);for(let me=m;me>=0;me--){let Ce=!0;for(let je=0;je<g.byteLength;je++)if(b[me+je]!==g[je]){Ce=!1;break}if(Ce)return me}}return-1}function z(b,g,m,I){return L(b,g,m,I,!0)}function H(b,g,m,I){return L(b,g,m,I,!1)}function ie(b,g,m){const I=b[g];b[g]=b[m],b[m]=I}function de(b){const g=b.byteLength;if(g%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let m=0;m<g;m+=2)ie(b,m,m+1);return b}function Ae(b){const g=b.byteLength;if(g%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let m=0;m<g;m+=4)ie(b,m,m+3),ie(b,m+1,m+2);return b}function O(b){const g=b.byteLength;if(g%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let m=0;m<g;m+=8)ie(b,m,m+7),ie(b,m+1,m+6),ie(b,m+2,m+5),ie(b,m+3,m+4);return b}function re(b){return b}function he(b,g,m=0,I=b.byteLength){const ee=b.byteLength;return m>=ee||I<=m?"":(m<0&&(m=0),I>ee&&(I=ee),(m!==0||I<ee)&&(b=b.subarray(m,I)),p(g).toString(b))}function W(b,g,m,I,ee){return m===void 0?ee="utf8":I===void 0&&typeof m=="string"?(ee=m,m=void 0):ee===void 0&&typeof I=="string"&&(ee=I,I=void 0),p(ee).write(b,g,m,I)}function C(b,g,m){return m===void 0&&(m=0),new DataView(b.buffer,b.byteOffset,b.byteLength).setFloat64(m,g,!0),m+8}function X(b,g,m){return m===void 0&&(m=0),new DataView(b.buffer,b.byteOffset,b.byteLength).setFloat32(m,g,!0),m+4}function ue(b,g,m){return m===void 0&&(m=0),new DataView(b.buffer,b.byteOffset,b.byteLength).setUint32(m,g,!0),m+4}function Q(b,g,m){return m===void 0&&(m=0),new DataView(b.buffer,b.byteOffset,b.byteLength).setInt32(m,g,!0),m+4}function j(b,g){return g===void 0&&(g=0),new DataView(b.buffer,b.byteOffset,b.byteLength).getFloat64(g,!0)}function k(b,g){return g===void 0&&(g=0),new DataView(b.buffer,b.byteOffset,b.byteLength).getFloat32(g,!0)}function V(b,g){return g===void 0&&(g=0),new DataView(b.buffer,b.byteOffset,b.byteLength).getUint32(g,!0)}function pe(b,g){return g===void 0&&(g=0),new DataView(b.buffer,b.byteOffset,b.byteLength).getInt32(g,!0)}function ye(b,g,m){return m===void 0&&(m=0),new DataView(b.buffer,b.byteOffset,b.byteLength).setFloat64(m,g,!1),m+8}function G(b,g,m){return m===void 0&&(m=0),new DataView(b.buffer,b.byteOffset,b.byteLength).setFloat32(m,g,!1),m+4}function w(b,g,m){return m===void 0&&(m=0),new DataView(b.buffer,b.byteOffset,b.byteLength).setUint32(m,g,!1),m+4}function N(b,g,m){return m===void 0&&(m=0),new DataView(b.buffer,b.byteOffset,b.byteLength).setInt32(m,g,!1),m+4}function K(b,g){return g===void 0&&(g=0),new DataView(b.buffer,b.byteOffset,b.byteLength).getFloat64(g,!1)}function Z(b,g){return g===void 0&&(g=0),new DataView(b.buffer,b.byteOffset,b.byteLength).getFloat32(g,!1)}function ce(b,g){return g===void 0&&(g=0),new DataView(b.buffer,b.byteOffset,b.byteLength).getUint32(g,!1)}function le(b,g){return g===void 0&&(g=0),new DataView(b.buffer,b.byteOffset,b.byteLength).getInt32(g,!1)}e.exports=t={isBuffer:h,isEncoding:A,alloc:v,allocUnsafe:x,allocUnsafeSlow:S,byteLength:R,compare:U,concat:T,copy:_,equals:M,fill:D,from:$,includes:B,indexOf:z,lastIndexOf:H,swap16:de,swap32:Ae,swap64:O,toBuffer:re,toString:he,write:W,writeDoubleLE:C,writeFloatLE:X,writeUInt32LE:ue,writeInt32LE:Q,readDoubleLE:j,readFloatLE:k,readUInt32LE:V,readInt32LE:pe,writeDoubleBE:ye,writeFloatBE:G,writeUInt32BE:w,writeInt32BE:N,readDoubleBE:K,readFloatBE:Z,readUInt32BE:ce,readInt32BE:le}})(xd,xd.exports)),xd.exports}var Vm,vC;function u9(){if(vC)return Vm;vC=1;var e=(c,l)=>function(){return l||(0,c[Object.keys(c)[0]])((l={exports:{}}).exports,l),l.exports},t=(()=>{for(var c=new Uint8Array(128),l=0;l<64;l++)c[l<26?l+65:l<52?l+71:l<62?l-4:l*4-205]=l;return f=>{for(var p=f.length,h=new Uint8Array((p-(f[p-1]=="=")-(f[p-2]=="="))*3/4|0),A=0,v=0;A<p;){var x=c[f.charCodeAt(A++)],S=c[f.charCodeAt(A++)],R=c[f.charCodeAt(A++)],U=c[f.charCodeAt(A++)];h[v++]=x<<2|S>>4,h[v++]=S<<4|R>>2,h[v++]=R<<6|U}return h}})(),r=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=")}}),o=r(),s=WebAssembly.compile(o);return Vm=async c=>(await WebAssembly.instantiate(await s,c)).exports,Vm}var EC;function c9(){if(EC)return ri.exports;EC=1;var e=V3(),t=s9(),r=null,o=typeof WebAssembly<"u"&&u9()().then(R=>{r=R}),s=64,c=[];ri.exports=x;var l=ri.exports.BYTES_MIN=16,f=ri.exports.BYTES_MAX=64;ri.exports.BYTES=32;var p=ri.exports.KEYBYTES_MIN=16,h=ri.exports.KEYBYTES_MAX=64;ri.exports.KEYBYTES=32;var A=ri.exports.SALTBYTES=16,v=ri.exports.PERSONALBYTES=16;function x(R,U,T,_,M){if(!(this instanceof x))return new x(R,U,T,_,M);if(!r)throw new Error("WASM not loaded. Wait for Blake2b.ready(cb)");R||(R=32),M!==!0&&(e(R>=l,"digestLength must be at least "+l+", was given "+R),e(R<=f,"digestLength must be at most "+f+", was given "+R),U!=null&&(e(U instanceof Uint8Array,"key must be Uint8Array or Buffer"),e(U.length>=p,"key must be at least "+p+", was given "+U.length),e(U.length<=h,"key must be at least "+h+", was given "+U.length)),T!=null&&(e(T instanceof Uint8Array,"salt must be Uint8Array or Buffer"),e(T.length===A,"salt must be exactly "+A+", was given "+T.length)),_!=null&&(e(_ instanceof Uint8Array,"personal must be Uint8Array or Buffer"),e(_.length===v,"personal must be exactly "+v+", was given "+_.length))),c.length||(c.push(s),s+=216),this.digestLength=R,this.finalized=!1,this.pointer=c.pop(),this._memory=new Uint8Array(r.memory.buffer),this._memory.fill(0,0,64),this._memory[0]=this.digestLength,this._memory[1]=U?U.length:0,this._memory[2]=1,this._memory[3]=1,T&&this._memory.set(T,32),_&&this._memory.set(_,48),this.pointer+216>this._memory.length&&this._realloc(this.pointer+216),r.blake2b_init(this.pointer,this.digestLength),U&&(this.update(U),this._memory.fill(0,s,s+U.length),this._memory[this.pointer+200]=128)}x.prototype._realloc=function(R){r.memory.grow(Math.max(0,Math.ceil(Math.abs(R-this._memory.length)/65536))),this._memory=new Uint8Array(r.memory.buffer)},x.prototype.update=function(R){return e(this.finalized===!1,"Hash instance finalized"),e(R instanceof Uint8Array,"input must be Uint8Array or Buffer"),s+R.length>this._memory.length&&this._realloc(s+R.length),this._memory.set(R,s),r.blake2b_update(this.pointer,s,s+R.length),this},x.prototype.digest=function(R){if(e(this.finalized===!1,"Hash instance finalized"),this.finalized=!0,c.push(this.pointer),r.blake2b_final(this.pointer),!R||R==="binary")return this._memory.slice(this.pointer+128,this.pointer+128+this.digestLength);if(typeof R=="string")return t.toString(this._memory,R,this.pointer+128,this.pointer+128+this.digestLength);e(R instanceof Uint8Array&&R.length>=this.digestLength,"input must be Uint8Array or Buffer");for(var U=0;U<this.digestLength;U++)R[U]=this._memory[this.pointer+128+U];return R},x.prototype.final=x.prototype.digest,x.WASM=r,x.SUPPORTED=typeof WebAssembly<"u",x.ready=function(R){return R||(R=S),o?o.then(()=>R(),R):R(new Error("WebAssembly not supported"))},x.prototype.ready=x.ready,x.prototype.getPartialHash=function(){return this._memory.slice(this.pointer,this.pointer+216)},x.prototype.setPartialHash=function(R){this._memory.set(R,this.pointer)};function S(){}return ri.exports}var wC;function l9(){if(wC)return $n.exports;wC=1;var e=V3(),t=c9();function r(B,L,z){var H=B[L]+B[z],ie=B[L+1]+B[z+1];H>=4294967296&&ie++,B[L]=H,B[L+1]=ie}function o(B,L,z,H){var ie=B[L]+z;z<0&&(ie+=4294967296);var de=B[L+1]+H;ie>=4294967296&&de++,B[L]=ie,B[L+1]=de}function s(B,L){return B[L]^B[L+1]<<8^B[L+2]<<16^B[L+3]<<24}function c(B,L,z,H,ie,de){var Ae=A[ie],O=A[ie+1],re=A[de],he=A[de+1];r(h,B,L),o(h,B,Ae,O);var W=h[H]^h[B],C=h[H+1]^h[B+1];h[H]=C,h[H+1]=W,r(h,z,H),W=h[L]^h[z],C=h[L+1]^h[z+1],h[L]=W>>>24^C<<8,h[L+1]=C>>>24^W<<8,r(h,B,L),o(h,B,re,he),W=h[H]^h[B],C=h[H+1]^h[B+1],h[H]=W>>>16^C<<16,h[H+1]=C>>>16^W<<16,r(h,z,H),W=h[L]^h[z],C=h[L+1]^h[z+1],h[L]=C>>>31^W<<1,h[L+1]=W>>>31^C<<1}var l=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),f=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3],p=new Uint8Array(f.map(function(B){return B*2})),h=new Uint32Array(32),A=new Uint32Array(32);function v(B,L){var z=0;for(z=0;z<16;z++)h[z]=B.h[z],h[z+16]=l[z];for(h[24]=h[24]^B.t,h[25]=h[25]^B.t/4294967296,L&&(h[28]=~h[28],h[29]=~h[29]),z=0;z<32;z++)A[z]=s(B.b,4*z);for(z=0;z<12;z++)c(0,8,16,24,p[z*16+0],p[z*16+1]),c(2,10,18,26,p[z*16+2],p[z*16+3]),c(4,12,20,28,p[z*16+4],p[z*16+5]),c(6,14,22,30,p[z*16+6],p[z*16+7]),c(0,10,20,30,p[z*16+8],p[z*16+9]),c(2,12,22,24,p[z*16+10],p[z*16+11]),c(4,14,16,26,p[z*16+12],p[z*16+13]),c(6,8,18,28,p[z*16+14],p[z*16+15]);for(z=0;z<16;z++)B.h[z]=B.h[z]^h[z]^h[z+16]}var x=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 S(B,L,z,H){x.fill(0),this.b=new Uint8Array(128),this.h=new Uint32Array(16),this.t=0,this.c=0,this.outlen=B,x[0]=B,L&&(x[1]=L.length),x[2]=1,x[3]=1,z&&x.set(z,32),H&&x.set(H,48);for(var ie=0;ie<16;ie++)this.h[ie]=l[ie]^s(x,ie*4);L&&(R(this,L),this.c=128)}S.prototype.update=function(B){return e(B instanceof Uint8Array,"input must be Uint8Array or Buffer"),R(this,B),this},S.prototype.digest=function(B){var L=!B||B==="binary"||B==="hex"?new Uint8Array(this.outlen):B;return e(L instanceof Uint8Array,'out must be "binary", "hex", Uint8Array, or Buffer'),e(L.length>=this.outlen,"out must have at least outlen bytes of space"),U(this,L),B==="hex"?T(L):L},S.prototype.final=S.prototype.digest,S.ready=function(B){t.ready(function(){B()})};function R(B,L){for(var z=0;z<L.length;z++)B.c===128&&(B.t+=B.c,v(B,!1),B.c=0),B.b[B.c++]=L[z]}function U(B,L){for(B.t+=B.c;B.c<128;)B.b[B.c++]=0;v(B,!0);for(var z=0;z<B.outlen;z++)L[z]=B.h[z>>2]>>8*(z&3);return L}function T(B){for(var L="",z=0;z<B.length;z++)L+=_(B[z]);return L}function _(B){return B<16?"0"+B.toString(16):B.toString(16)}var M=S;$n.exports=function(L,z,H,ie,de){return de!==!0&&(e(L>=D,"outlen must be at least "+D+", was given "+L),e(L<=$,"outlen must be at most "+$+", was given "+L),z!=null&&(e(z instanceof Uint8Array,"key must be Uint8Array or Buffer"),e(z.length>=P,"key must be at least "+P+", was given "+z.length),e(z.length<=Y,"key must be at most "+Y+", was given "+z.length)),H!=null&&(e(H instanceof Uint8Array,"salt must be Uint8Array or Buffer"),e(H.length===ne,"salt must be exactly "+ne+", was given "+H.length)),ie!=null&&(e(ie instanceof Uint8Array,"personal must be Uint8Array or Buffer"),e(ie.length===te,"personal must be exactly "+te+", was given "+ie.length))),new M(L,z,H,ie)},$n.exports.ready=function(B){t.ready(function(){B()})},$n.exports.WASM_SUPPORTED=t.SUPPORTED,$n.exports.WASM_LOADED=!1;var D=$n.exports.BYTES_MIN=16,$=$n.exports.BYTES_MAX=64;$n.exports.BYTES=32;var P=$n.exports.KEYBYTES_MIN=16,Y=$n.exports.KEYBYTES_MAX=64;$n.exports.KEYBYTES=32;var ne=$n.exports.SALTBYTES=16,te=$n.exports.PERSONALBYTES=16;return t.ready(function(B){B||($n.exports.WASM_LOADED=!0,$n.exports=t)}),$n.exports}var IC;function f9(){if(IC)return Wi;IC=1;var e=Wi&&Wi.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(Wi,"__esModule",{value:!0}),Wi.encode=Wi.decode=void 0;const t=e(w1()),r=e(t9()),o=e(l9()),s=(0,r.default)("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),c=tn.Buffer.from("SS58PRE"),l=tn.Buffer.alloc(64);function f(v){let x=s.decodeUnsafe(v);if(x==null||x.length<3)throw A(v);let S=x[0],R,U;if(S<64)U=S,R=1;else if(S<128){let _=x[1],M=(S<<2|_>>6)&255,D=_&63;U=M|D<<8,R=2}else throw A(v);let T;switch(x.length-R){case 34:case 35:T=2;break;case 9:case 5:case 3:case 2:T=1;break;default:throw A(v)}h(x,T);for(let _=0;_<T;_++)if(l[_]!=x[x.length-T+_])throw A(v);return{prefix:U,bytes:x.subarray(R,x.length-T)}}Wi.decode=f;function p(v){let x=v.prefix;(0,t.default)(Number.isInteger(x)&&x>=0&&x<16384,"invalid prefix");let S=v.bytes.length,R;switch(S){case 1:case 2:case 4:case 8:R=1;break;case 32:case 33:R=2;break;default:(0,t.default)(!1,"invalid address length")}let U,T;x<64?(U=tn.Buffer.allocUnsafe(1+R+S),U[0]=x,T=1):(U=tn.Buffer.allocUnsafe(2+R+S),U[0]=(x&252)>>2|64,U[1]=x>>8|(x&3)<<6,T=2),U.set(v.bytes,T),h(U,R);for(let _=0;_<R;_++)U[T+S+_]=l[_];return s.encode(U)}Wi.encode=p;function h(v,x){let S=(0,o.default)(64);S.update(c),S.update(v.subarray(0,v.length-x)),S.digest(l)}function A(v){return new Error("Invalid ss58 address: "+v)}return Wi}var d9=f9();function h9(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 r=e.length,o=e.charAt(0),s=Math.log(r)/Math.log(256),c=Math.log(256)/Math.log(r);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,x=0;const S=h.length;for(;x!==S&&h[x]===0;)x++,A++;const R=(S-x)*c+1>>>0,U=new Uint8Array(R);for(;x!==S;){let M=h[x],D=0;for(let $=R-1;(M!==0||D<v)&&$!==-1;$--,D++)M+=256*U[$]>>>0,U[$]=M%r>>>0,M=M/r>>>0;if(M!==0)throw new Error("Non-zero carry");v=D,x++}let T=R-v;for(;T!==R&&U[T]===0;)T++;let _=o.repeat(A);for(;T<R;++T)_+=e.charAt(U[T]);return _}function f(h){if(typeof h!="string")throw new TypeError("Expected String");if(h.length===0)return new Uint8Array;let A=0,v=0,x=0;for(;h[A]===o;)v++,A++;const S=(h.length-A)*s+1>>>0,R=new Uint8Array(S);for(;A<h.length;){const M=h.charCodeAt(A);if(M>255)return;let D=t[M];if(D===255)return;let $=0;for(let P=S-1;(D!==0||$<x)&&P!==-1;P--,$++)D+=r*R[P]>>>0,R[P]=D%256>>>0,D=D/256>>>0;if(D!==0)throw new Error("Non-zero carry");x=$,A++}let U=S-x;for(;U!==S&&R[U]===0;)U++;const T=new Uint8Array(v+(S-U));let _=v;for(;U!==S;)T[_++]=R[U++];return T}function p(h){const A=f(h);if(A)return A;throw new Error("Non-base"+r+" character")}return{encode:l,decodeUnsafe:f,decode:p}}var p9="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";const Bd=h9(p9);function y9(e){function t(c){var l=Uint8Array.from(c),f=e(l),p=l.length+4,h=new Uint8Array(p);return h.set(l,0),h.set(f.subarray(0,4),l.length),Bd.encode(h)}function r(c){var l=c.slice(0,-4),f=c.slice(-4),p=e(l);if(!(f[0]^p[0]|f[1]^p[1]|f[2]^p[2]|f[3]^p[3]))return l}function o(c){var l=Bd.decodeUnsafe(c);if(l!=null)return r(l)}function s(c){var l=Bd.decode(c),f=r(l);if(f==null)throw new Error("Invalid checksum");return f}return{encode:t,decode:s,decodeUnsafe:o}}function g9(e){return e1(e1(e))}const jh=y9(g9);var Fa={},SC;function m9(){if(SC)return Fa;SC=1,Object.defineProperty(Fa,"__esModule",{value:!0}),Fa.bech32m=Fa.bech32=void 0;const e="qpzry9x8gf2tvdw0s3jn54khce6mua7l",t={};for(let h=0;h<e.length;h++){const A=e.charAt(h);t[A]=h}function r(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 o(h){let A=1;for(let v=0;v<h.length;++v){const x=h.charCodeAt(v);if(x<33||x>126)return"Invalid prefix ("+h+")";A=r(A)^x>>5}A=r(A);for(let v=0;v<h.length;++v){const x=h.charCodeAt(v);A=r(A)^x&31}return A}function s(h,A,v,x){let S=0,R=0;const U=(1<<v)-1,T=[];for(let _=0;_<h.length;++_)for(S=S<<A|h[_],R+=A;R>=v;)R-=v,T.push(S>>R&U);if(x)R>0&&T.push(S<<v-R&U);else{if(R>=A)return"Excess padding";if(S<<v-R&U)return"Non-zero padding"}return T}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 p(h){let A;h==="bech32"?A=1:A=734539939;function v(U,T,_){if(_=_||90,U.length+7+T.length>_)throw new TypeError("Exceeds length limit");U=U.toLowerCase();let M=o(U);if(typeof M=="string")throw new Error(M);let D=U+"1";for(let $=0;$<T.length;++$){const P=T[$];if(P>>5!==0)throw new Error("Non 5-bit word");M=r(M)^P,D+=e.charAt(P)}for(let $=0;$<6;++$)M=r(M);M^=A;for(let $=0;$<6;++$){const P=M>>(5-$)*5&31;D+=e.charAt(P)}return D}function x(U,T){if(T=T||90,U.length<8)return U+" too short";if(U.length>T)return"Exceeds length limit";const _=U.toLowerCase(),M=U.toUpperCase();if(U!==_&&U!==M)return"Mixed-case string "+U;U=_;const D=U.lastIndexOf("1");if(D===-1)return"No separator character for "+U;if(D===0)return"Missing prefix for "+U;const $=U.slice(0,D),P=U.slice(D+1);if(P.length<6)return"Data too short";let Y=o($);if(typeof Y=="string")return Y;const ne=[];for(let te=0;te<P.length;++te){const B=P.charAt(te),L=t[B];if(L===void 0)return"Unknown character "+B;Y=r(Y)^L,!(te+6>=P.length)&&ne.push(L)}return Y!==A?"Invalid checksum for "+U:{prefix:$,words:ne}}function S(U,T){const _=x(U,T);if(typeof _=="object")return _}function R(U,T){const _=x(U,T);if(typeof _=="object")return _;throw new Error(_)}return{decodeUnsafe:S,decode:R,encode:v,toWords:c,fromWordsUnsafe:l,fromWords:f}}return Fa.bech32=p("bech32"),Fa.bech32m=p("bech32m"),Fa}var I1=m9(),Ym={exports:{}},CC;function A9(){return CC||(CC=1,(function(e){(function(){var t=typeof window=="object"?window:{},r=!t.HI_BASE32_NO_NODE_JS&&typeof st=="object"&&st.versions&&st.versions.node;r&&(t=oo);var o=!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(T,_){_.length>10&&(_="..."+_.substr(-10));var M=new Error("Decoded data is not valid UTF-8. Maybe try base32.decode.asBytes()? Partial data after reading "+T+" bytes: "+_+" <-");throw M.position=T,M},p=function(T){for(var _="",M=T.length,D=0,$=0,P,Y;D<M;){if(P=T[D++],P<=127){_+=String.fromCharCode(P);continue}else P>191&&P<=223?(Y=P&31,$=1):P<=239?(Y=P&15,$=2):P<=247?(Y=P&7,$=3):f(D,_);for(var ne=0;ne<$;++ne)P=T[D++],(P<128||P>191)&&f(D,_),Y<<=6,Y+=P&63;Y>=55296&&Y<=57343&&f(D,_),Y>1114111&&f(D,_),Y<=65535?_+=String.fromCharCode(Y):(Y-=65536,_+=String.fromCharCode((Y>>10)+55296),_+=String.fromCharCode((Y&1023)+56320))}return _},h=function(T){if(T==="")return[];if(!/^[A-Z2-7=]+$/.test(T))throw new Error("Invalid base32 characters");T=T.replace(/=/g,"");for(var _,M,D,$,P,Y,ne,te,B=[],L=0,z=T.length,H=0,ie=z>>3<<3;H<ie;)_=c[T.charAt(H++)],M=c[T.charAt(H++)],D=c[T.charAt(H++)],$=c[T.charAt(H++)],P=c[T.charAt(H++)],Y=c[T.charAt(H++)],ne=c[T.charAt(H++)],te=c[T.charAt(H++)],B[L++]=(_<<3|M>>>2)&255,B[L++]=(M<<6|D<<1|$>>>4)&255,B[L++]=($<<4|P>>>1)&255,B[L++]=(P<<7|Y<<2|ne>>>3)&255,B[L++]=(ne<<5|te)&255;var de=z-ie;return de===2?(_=c[T.charAt(H++)],M=c[T.charAt(H++)],B[L++]=(_<<3|M>>>2)&255):de===4?(_=c[T.charAt(H++)],M=c[T.charAt(H++)],D=c[T.charAt(H++)],$=c[T.charAt(H++)],B[L++]=(_<<3|M>>>2)&255,B[L++]=(M<<6|D<<1|$>>>4)&255):de===5?(_=c[T.charAt(H++)],M=c[T.charAt(H++)],D=c[T.charAt(H++)],$=c[T.charAt(H++)],P=c[T.charAt(H++)],B[L++]=(_<<3|M>>>2)&255,B[L++]=(M<<6|D<<1|$>>>4)&255,B[L++]=($<<4|P>>>1)&255):de===7&&(_=c[T.charAt(H++)],M=c[T.charAt(H++)],D=c[T.charAt(H++)],$=c[T.charAt(H++)],P=c[T.charAt(H++)],Y=c[T.charAt(H++)],ne=c[T.charAt(H++)],B[L++]=(_<<3|M>>>2)&255,B[L++]=(M<<6|D<<1|$>>>4)&255,B[L++]=($<<4|P>>>1)&255,B[L++]=(P<<7|Y<<2|ne>>>3)&255),B},A=function(T){for(var _,M,D,$,P,Y="",ne=T.length,te=0,B=parseInt(ne/5)*5;te<B;)_=T.charCodeAt(te++),M=T.charCodeAt(te++),D=T.charCodeAt(te++),$=T.charCodeAt(te++),P=T.charCodeAt(te++),Y+=s[_>>>3]+s[(_<<2|M>>>6)&31]+s[M>>>1&31]+s[(M<<4|D>>>4)&31]+s[(D<<1|$>>>7)&31]+s[$>>>2&31]+s[($<<3|P>>>5)&31]+s[P&31];var L=ne-B;return L===1?(_=T.charCodeAt(te),Y+=s[_>>>3]+s[_<<2&31]+"======"):L===2?(_=T.charCodeAt(te++),M=T.charCodeAt(te),Y+=s[_>>>3]+s[(_<<2|M>>>6)&31]+s[M>>>1&31]+s[M<<4&31]+"===="):L===3?(_=T.charCodeAt(te++),M=T.charCodeAt(te++),D=T.charCodeAt(te),Y+=s[_>>>3]+s[(_<<2|M>>>6)&31]+s[M>>>1&31]+s[(M<<4|D>>>4)&31]+s[D<<1&31]+"==="):L===4&&(_=T.charCodeAt(te++),M=T.charCodeAt(te++),D=T.charCodeAt(te++),$=T.charCodeAt(te),Y+=s[_>>>3]+s[(_<<2|M>>>6)&31]+s[M>>>1&31]+s[(M<<4|D>>>4)&31]+s[(D<<1|$>>>7)&31]+s[$>>>2&31]+s[$<<3&31]+"="),Y},v=function(T){var _,M,D,$,P,Y,ne=!1,te="",B=0,L,z=0,H=T.length;if(T==="")return te;do{for(l[0]=l[5],l[1]=l[6],l[2]=l[7],L=z;B<H&&L<5;++B)Y=T.charCodeAt(B),Y<128?l[L++]=Y:Y<2048?(l[L++]=192|Y>>6,l[L++]=128|Y&63):Y<55296||Y>=57344?(l[L++]=224|Y>>12,l[L++]=128|Y>>6&63,l[L++]=128|Y&63):(Y=65536+((Y&1023)<<10|T.charCodeAt(++B)&1023),l[L++]=240|Y>>18,l[L++]=128|Y>>12&63,l[L++]=128|Y>>6&63,l[L++]=128|Y&63);z=L-5,B===H&&++B,B>H&&L<6&&(ne=!0),_=l[0],L>4?(M=l[1],D=l[2],$=l[3],P=l[4],te+=s[_>>>3]+s[(_<<2|M>>>6)&31]+s[M>>>1&31]+s[(M<<4|D>>>4)&31]+s[(D<<1|$>>>7)&31]+s[$>>>2&31]+s[($<<3|P>>>5)&31]+s[P&31]):L===1?te+=s[_>>>3]+s[_<<2&31]+"======":L===2?(M=l[1],te+=s[_>>>3]+s[(_<<2|M>>>6)&31]+s[M>>>1&31]+s[M<<4&31]+"===="):L===3?(M=l[1],D=l[2],te+=s[_>>>3]+s[(_<<2|M>>>6)&31]+s[M>>>1&31]+s[(M<<4|D>>>4)&31]+s[D<<1&31]+"==="):(M=l[1],D=l[2],$=l[3],te+=s[_>>>3]+s[(_<<2|M>>>6)&31]+s[M>>>1&31]+s[(M<<4|D>>>4)&31]+s[(D<<1|$>>>7)&31]+s[$>>>2&31]+s[$<<3&31]+"=")}while(!ne);return te},x=function(T){for(var _,M,D,$,P,Y="",ne=T.length,te=0,B=parseInt(ne/5)*5;te<B;)_=T[te++],M=T[te++],D=T[te++],$=T[te++],P=T[te++],Y+=s[_>>>3]+s[(_<<2|M>>>6)&31]+s[M>>>1&31]+s[(M<<4|D>>>4)&31]+s[(D<<1|$>>>7)&31]+s[$>>>2&31]+s[($<<3|P>>>5)&31]+s[P&31];var L=ne-B;return L===1?(_=T[te],Y+=s[_>>>3]+s[_<<2&31]+"======"):L===2?(_=T[te++],M=T[te],Y+=s[_>>>3]+s[(_<<2|M>>>6)&31]+s[M>>>1&31]+s[M<<4&31]+"===="):L===3?(_=T[te++],M=T[te++],D=T[te],Y+=s[_>>>3]+s[(_<<2|M>>>6)&31]+s[M>>>1&31]+s[(M<<4|D>>>4)&31]+s[D<<1&31]+"==="):L===4&&(_=T[te++],M=T[te++],D=T[te++],$=T[te],Y+=s[_>>>3]+s[(_<<2|M>>>6)&31]+s[M>>>1&31]+s[(M<<4|D>>>4)&31]+s[(D<<1|$>>>7)&31]+s[$>>>2&31]+s[$<<3&31]+"="),Y},S=function(T,_){var M=typeof T!="string";return M&&T.constructor===ArrayBuffer&&(T=new Uint8Array(T)),M?x(T):_?A(T):v(T)},R=function(T,_){if(!_)return p(h(T));if(T==="")return"";if(!/^[A-Z2-7=]+$/.test(T))throw new Error("Invalid base32 characters");var M,D,$,P,Y,ne,te,B,L="",z=T.indexOf("=");z===-1&&(z=T.length);for(var H=0,ie=z>>3<<3;H<ie;)M=c[T.charAt(H++)],D=c[T.charAt(H++)],$=c[T.charAt(H++)],P=c[T.charAt(H++)],Y=c[T.charAt(H++)],ne=c[T.charAt(H++)],te=c[T.charAt(H++)],B=c[T.charAt(H++)],L+=String.fromCharCode((M<<3|D>>>2)&255)+String.fromCharCode((D<<6|$<<1|P>>>4)&255)+String.fromCharCode((P<<4|Y>>>1)&255)+String.fromCharCode((Y<<7|ne<<2|te>>>3)&255)+String.fromCharCode((te<<5|B)&255);var de=z-ie;return de===2?(M=c[T.charAt(H++)],D=c[T.charAt(H++)],L+=String.fromCharCode((M<<3|D>>>2)&255)):de===4?(M=c[T.charAt(H++)],D=c[T.charAt(H++)],$=c[T.charAt(H++)],P=c[T.charAt(H++)],L+=String.fromCharCode((M<<3|D>>>2)&255)+String.fromCharCode((D<<6|$<<1|P>>>4)&255)):de===5?(M=c[T.charAt(H++)],D=c[T.charAt(H++)],$=c[T.charAt(H++)],P=c[T.charAt(H++)],Y=c[T.charAt(H++)],L+=String.fromCharCode((M<<3|D>>>2)&255)+String.fromCharCode((D<<6|$<<1|P>>>4)&255)+String.fromCharCode((P<<4|Y>>>1)&255)):de===7&&(M=c[T.charAt(H++)],D=c[T.charAt(H++)],$=c[T.charAt(H++)],P=c[T.charAt(H++)],Y=c[T.charAt(H++)],ne=c[T.charAt(H++)],te=c[T.charAt(H++)],L+=String.fromCharCode((M<<3|D>>>2)&255)+String.fromCharCode((D<<6|$<<1|P>>>4)&255)+String.fromCharCode((P<<4|Y>>>1)&255)+String.fromCharCode((Y<<7|ne<<2|te>>>3)&255)),L},U={encode:S,decode:R};R.asBytes=h,o?e.exports=U:t.base32=U})()})(Ym)),Ym.exports}var b9=A9();const Y3=Vd(b9);var Xm={exports:{}},OC;function x9(){return OC||(OC=1,(function(e){(function(){var t="input is invalid type",r="finalize already called",o=typeof window=="object",s=o?window:{};s.JS_SHA512_NO_WINDOW&&(o=!1);var c=!o&&typeof self=="object",l=!s.JS_SHA512_NO_NODE_JS&&typeof st=="object"&&st.versions&&st.versions.node;l?s=oo:c&&(s=self);var f=!s.JS_SHA512_NO_COMMON_JS&&!0&&e.exports,p=!s.JS_SHA512_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",h="0123456789abcdef".split(""),A=[-2147483648,8388608,32768,128],v=[24,16,8,0],x=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],S=["hex","array","digest","arrayBuffer"],R=[],U=Array.isArray;(s.JS_SHA512_NO_NODE_JS||!U)&&(U=function(B){return Object.prototype.toString.call(B)==="[object Array]"});var T=ArrayBuffer.isView;p&&(s.JS_SHA512_NO_ARRAY_BUFFER_IS_VIEW||!T)&&(T=function(B){return typeof B=="object"&&B.buffer&&B.buffer.constructor===ArrayBuffer});var _=function(B){var L=typeof B;if(L==="string")return[B,!0];if(L!=="object"||B===null)throw new Error(t);if(p&&B.constructor===ArrayBuffer)return[new Uint8Array(B),!1];if(!U(B)&&!T(B))throw new Error(t);return[B,!1]},M=function(B,L){return function(z){return new Y(L,!0).update(z)[B]()}},D=function(B){var L=M("hex",B);L.create=function(){return new Y(B)},L.update=function(ie){return L.create().update(ie)};for(var z=0;z<S.length;++z){var H=S[z];L[H]=M(H,B)}return L},$=function(B,L){return function(z,H){return new ne(z,L,!0).update(H)[B]()}},P=function(B){var L=$("hex",B);L.create=function(ie){return new ne(ie,B)},L.update=function(ie,de){return L.create(ie).update(de)};for(var z=0;z<S.length;++z){var H=S[z];L[H]=$(H,B)}return L};function Y(B,L){L?(R[0]=R[1]=R[2]=R[3]=R[4]=R[5]=R[6]=R[7]=R[8]=R[9]=R[10]=R[11]=R[12]=R[13]=R[14]=R[15]=R[16]=R[17]=R[18]=R[19]=R[20]=R[21]=R[22]=R[23]=R[24]=R[25]=R[26]=R[27]=R[28]=R[29]=R[30]=R[31]=R[32]=0,this.blocks=R):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],B==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):B==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):B==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=B,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1}Y.prototype.update=function(B){if(this.finalized)throw new Error(r);var L=_(B);B=L[0];for(var z=L[1],H,ie=0,de,Ae=B.length,O=this.blocks;ie<Ae;){if(this.hashed&&(this.hashed=!1,O[0]=this.block,this.block=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),z)for(de=this.start;ie<Ae&&de<128;++ie)H=B.charCodeAt(ie),H<128?O[de>>>2]|=H<<v[de++&3]:H<2048?(O[de>>>2]|=(192|H>>>6)<<v[de++&3],O[de>>>2]|=(128|H&63)<<v[de++&3]):H<55296||H>=57344?(O[de>>>2]|=(224|H>>>12)<<v[de++&3],O[de>>>2]|=(128|H>>>6&63)<<v[de++&3],O[de>>>2]|=(128|H&63)<<v[de++&3]):(H=65536+((H&1023)<<10|B.charCodeAt(++ie)&1023),O[de>>>2]|=(240|H>>>18)<<v[de++&3],O[de>>>2]|=(128|H>>>12&63)<<v[de++&3],O[de>>>2]|=(128|H>>>6&63)<<v[de++&3],O[de>>>2]|=(128|H&63)<<v[de++&3]);else for(de=this.start;ie<Ae&&de<128;++ie)O[de>>>2]|=B[ie]<<v[de++&3];this.lastByteIndex=de,this.bytes+=de-this.start,de>=128?(this.block=O[32],this.start=de-128,this.hash(),this.hashed=!0):this.start=de}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this},Y.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var B=this.blocks,L=this.lastByteIndex;B[32]=this.block,B[L>>>2]|=A[L&3],this.block=B[32],L>=112&&(this.hashed||this.hash(),B[0]=this.block,B[1]=B[2]=B[3]=B[4]=B[5]=B[6]=B[7]=B[8]=B[9]=B[10]=B[11]=B[12]=B[13]=B[14]=B[15]=B[16]=B[17]=B[18]=B[19]=B[20]=B[21]=B[22]=B[23]=B[24]=B[25]=B[26]=B[27]=B[28]=B[29]=B[30]=B[31]=B[32]=0),B[30]=this.hBytes<<3|this.bytes>>>29,B[31]=this.bytes<<3,this.hash()}},Y.prototype.hash=function(){var B=this.h0h,L=this.h0l,z=this.h1h,H=this.h1l,ie=this.h2h,de=this.h2l,Ae=this.h3h,O=this.h3l,re=this.h4h,he=this.h4l,W=this.h5h,C=this.h5l,X=this.h6h,ue=this.h6l,Q=this.h7h,j=this.h7l,k=this.blocks,V,pe,ye,G,w,N,K,Z,ce,le,b,g,m,I,ee,me,Ce,je,ae,se,Ee,Fe,Me,qe,ke;for(V=32;V<160;V+=2)se=k[V-30],Ee=k[V-29],pe=(se>>>1|Ee<<31)^(se>>>8|Ee<<24)^se>>>7,ye=(Ee>>>1|se<<31)^(Ee>>>8|se<<24)^(Ee>>>7|se<<25),se=k[V-4],Ee=k[V-3],G=(se>>>19|Ee<<13)^(Ee>>>29|se<<3)^se>>>6,w=(Ee>>>19|se<<13)^(se>>>29|Ee<<3)^(Ee>>>6|se<<26),se=k[V-32],Ee=k[V-31],Fe=k[V-14],Me=k[V-13],N=(Me&65535)+(Ee&65535)+(ye&65535)+(w&65535),K=(Me>>>16)+(Ee>>>16)+(ye>>>16)+(w>>>16)+(N>>>16),Z=(Fe&65535)+(se&65535)+(pe&65535)+(G&65535)+(K>>>16),ce=(Fe>>>16)+(se>>>16)+(pe>>>16)+(G>>>16)+(Z>>>16),k[V]=ce<<16|Z&65535,k[V+1]=K<<16|N&65535;var Ge=B,Qe=L,Ze=z,Je=H,ft=ie,pt=de,gt=Ae,mt=O,xt=re,qt=he,Dt=W,_t=C,Qt=X,$t=ue,kt=Q,Ut=j;for(me=Ze&ft,Ce=Je&pt,V=0;V<160;V+=8)pe=(Ge>>>28|Qe<<4)^(Qe>>>2|Ge<<30)^(Qe>>>7|Ge<<25),ye=(Qe>>>28|Ge<<4)^(Ge>>>2|Qe<<30)^(Ge>>>7|Qe<<25),G=(xt>>>14|qt<<18)^(xt>>>18|qt<<14)^(qt>>>9|xt<<23),w=(qt>>>14|xt<<18)^(qt>>>18|xt<<14)^(xt>>>9|qt<<23),le=Ge&Ze,b=Qe&Je,je=le^Ge&ft^me,ae=b^Qe&pt^Ce,qe=xt&Dt^~xt&Qt,ke=qt&_t^~qt&$t,se=k[V],Ee=k[V+1],Fe=x[V],Me=x[V+1],N=(Me&65535)+(Ee&65535)+(ke&65535)+(w&65535)+(Ut&65535),K=(Me>>>16)+(Ee>>>16)+(ke>>>16)+(w>>>16)+(Ut>>>16)+(N>>>16),Z=(Fe&65535)+(se&65535)+(qe&65535)+(G&65535)+(kt&65535)+(K>>>16),ce=(Fe>>>16)+(se>>>16)+(qe>>>16)+(G>>>16)+(kt>>>16)+(Z>>>16),se=ce<<16|Z&65535,Ee=K<<16|N&65535,N=(ae&65535)+(ye&65535),K=(ae>>>16)+(ye>>>16)+(N>>>16),Z=(je&65535)+(pe&65535)+(K>>>16),ce=(je>>>16)+(pe>>>16)+(Z>>>16),Fe=ce<<16|Z&65535,Me=K<<16|N&65535,N=(mt&65535)+(Ee&65535),K=(mt>>>16)+(Ee>>>16)+(N>>>16),Z=(gt&65535)+(se&65535)+(K>>>16),ce=(gt>>>16)+(se>>>16)+(Z>>>16),kt=ce<<16|Z&65535,Ut=K<<16|N&65535,N=(Me&65535)+(Ee&65535),K=(Me>>>16)+(Ee>>>16)+(N>>>16),Z=(Fe&65535)+(se&65535)+(K>>>16),ce=(Fe>>>16)+(se>>>16)+(Z>>>16),gt=ce<<16|Z&65535,mt=K<<16|N&65535,pe=(gt>>>28|mt<<4)^(mt>>>2|gt<<30)^(mt>>>7|gt<<25),ye=(mt>>>28|gt<<4)^(gt>>>2|mt<<30)^(gt>>>7|mt<<25),G=(kt>>>14|Ut<<18)^(kt>>>18|Ut<<14)^(Ut>>>9|kt<<23),w=(Ut>>>14|kt<<18)^(Ut>>>18|kt<<14)^(kt>>>9|Ut<<23),g=gt&Ge,m=mt&Qe,je=g^gt&Ze^le,ae=m^mt&Je^b,qe=kt&xt^~kt&Dt,ke=Ut&qt^~Ut&_t,se=k[V+2],Ee=k[V+3],Fe=x[V+2],Me=x[V+3],N=(Me&65535)+(Ee&65535)+(ke&65535)+(w&65535)+($t&65535),K=(Me>>>16)+(Ee>>>16)+(ke>>>16)+(w>>>16)+($t>>>16)+(N>>>16),Z=(Fe&65535)+(se&65535)+(qe&65535)+(G&65535)+(Qt&65535)+(K>>>16),ce=(Fe>>>16)+(se>>>16)+(qe>>>16)+(G>>>16)+(Qt>>>16)+(Z>>>16),se=ce<<16|Z&65535,Ee=K<<16|N&65535,N=(ae&65535)+(ye&65535),K=(ae>>>16)+(ye>>>16)+(N>>>16),Z=(je&65535)+(pe&65535)+(K>>>16),ce=(je>>>16)+(pe>>>16)+(Z>>>16),Fe=ce<<16|Z&65535,Me=K<<16|N&65535,N=(pt&65535)+(Ee&65535),K=(pt>>>16)+(Ee>>>16)+(N>>>16),Z=(ft&65535)+(se&65535)+(K>>>16),ce=(ft>>>16)+(se>>>16)+(Z>>>16),Qt=ce<<16|Z&65535,$t=K<<16|N&65535,N=(Me&65535)+(Ee&65535),K=(Me>>>16)+(Ee>>>16)+(N>>>16),Z=(Fe&65535)+(se&65535)+(K>>>16),ce=(Fe>>>16)+(se>>>16)+(Z>>>16),ft=ce<<16|Z&65535,pt=K<<16|N&65535,pe=(ft>>>28|pt<<4)^(pt>>>2|ft<<30)^(pt>>>7|ft<<25),ye=(pt>>>28|ft<<4)^(ft>>>2|pt<<30)^(ft>>>7|pt<<25),G=(Qt>>>14|$t<<18)^(Qt>>>18|$t<<14)^($t>>>9|Qt<<23),w=($t>>>14|Qt<<18)^($t>>>18|Qt<<14)^(Qt>>>9|$t<<23),I=ft&gt,ee=pt&mt,je=I^ft&Ge^g,ae=ee^pt&Qe^m,qe=Qt&kt^~Qt&xt,ke=$t&Ut^~$t&qt,se=k[V+4],Ee=k[V+5],Fe=x[V+4],Me=x[V+5],N=(Me&65535)+(Ee&65535)+(ke&65535)+(w&65535)+(_t&65535),K=(Me>>>16)+(Ee>>>16)+(ke>>>16)+(w>>>16)+(_t>>>16)+(N>>>16),Z=(Fe&65535)+(se&65535)+(qe&65535)+(G&65535)+(Dt&65535)+(K>>>16),ce=(Fe>>>16)+(se>>>16)+(qe>>>16)+(G>>>16)+(Dt>>>16)+(Z>>>16),se=ce<<16|Z&65535,Ee=K<<16|N&65535,N=(ae&65535)+(ye&65535),K=(ae>>>16)+(ye>>>16)+(N>>>16),Z=(je&65535)+(pe&65535)+(K>>>16),ce=(je>>>16)+(pe>>>16)+(Z>>>16),Fe=ce<<16|Z&65535,Me=K<<16|N&65535,N=(Je&65535)+(Ee&65535),K=(Je>>>16)+(Ee>>>16)+(N>>>16),Z=(Ze&65535)+(se&65535)+(K>>>16),ce=(Ze>>>16)+(se>>>16)+(Z>>>16),Dt=ce<<16|Z&65535,_t=K<<16|N&65535,N=(Me&65535)+(Ee&65535),K=(Me>>>16)+(Ee>>>16)+(N>>>16),Z=(Fe&65535)+(se&65535)+(K>>>16),ce=(Fe>>>16)+(se>>>16)+(Z>>>16),Ze=ce<<16|Z&65535,Je=K<<16|N&65535,pe=(Ze>>>28|Je<<4)^(Je>>>2|Ze<<30)^(Je>>>7|Ze<<25),ye=(Je>>>28|Ze<<4)^(Ze>>>2|Je<<30)^(Ze>>>7|Je<<25),G=(Dt>>>14|_t<<18)^(Dt>>>18|_t<<14)^(_t>>>9|Dt<<23),w=(_t>>>14|Dt<<18)^(_t>>>18|Dt<<14)^(Dt>>>9|_t<<23),me=Ze&ft,Ce=Je&pt,je=me^Ze&gt^I,ae=Ce^Je&mt^ee,qe=Dt&Qt^~Dt&kt,ke=_t&$t^~_t&Ut,se=k[V+6],Ee=k[V+7],Fe=x[V+6],Me=x[V+7],N=(Me&65535)+(Ee&65535)+(ke&65535)+(w&65535)+(qt&65535),K=(Me>>>16)+(Ee>>>16)+(ke>>>16)+(w>>>16)+(qt>>>16)+(N>>>16),Z=(Fe&65535)+(se&65535)+(qe&65535)+(G&65535)+(xt&65535)+(K>>>16),ce=(Fe>>>16)+(se>>>16)+(qe>>>16)+(G>>>16)+(xt>>>16)+(Z>>>16),se=ce<<16|Z&65535,Ee=K<<16|N&65535,N=(ae&65535)+(ye&65535),K=(ae>>>16)+(ye>>>16)+(N>>>16),Z=(je&65535)+(pe&65535)+(K>>>16),ce=(je>>>16)+(pe>>>16)+(Z>>>16),Fe=ce<<16|Z&65535,Me=K<<16|N&65535,N=(Qe&65535)+(Ee&65535),K=(Qe>>>16)+(Ee>>>16)+(N>>>16),Z=(Ge&65535)+(se&65535)+(K>>>16),ce=(Ge>>>16)+(se>>>16)+(Z>>>16),xt=ce<<16|Z&65535,qt=K<<16|N&65535,N=(Me&65535)+(Ee&65535),K=(Me>>>16)+(Ee>>>16)+(N>>>16),Z=(Fe&65535)+(se&65535)+(K>>>16),ce=(Fe>>>16)+(se>>>16)+(Z>>>16),Ge=ce<<16|Z&65535,Qe=K<<16|N&65535;N=(L&65535)+(Qe&65535),K=(L>>>16)+(Qe>>>16)+(N>>>16),Z=(B&65535)+(Ge&65535)+(K>>>16),ce=(B>>>16)+(Ge>>>16)+(Z>>>16),this.h0h=ce<<16|Z&65535,this.h0l=K<<16|N&65535,N=(H&65535)+(Je&65535),K=(H>>>16)+(Je>>>16)+(N>>>16),Z=(z&65535)+(Ze&65535)+(K>>>16),ce=(z>>>16)+(Ze>>>16)+(Z>>>16),this.h1h=ce<<16|Z&65535,this.h1l=K<<16|N&65535,N=(de&65535)+(pt&65535),K=(de>>>16)+(pt>>>16)+(N>>>16),Z=(ie&65535)+(ft&65535)+(K>>>16),ce=(ie>>>16)+(ft>>>16)+(Z>>>16),this.h2h=ce<<16|Z&65535,this.h2l=K<<16|N&65535,N=(O&65535)+(mt&65535),K=(O>>>16)+(mt>>>16)+(N>>>16),Z=(Ae&65535)+(gt&65535)+(K>>>16),ce=(Ae>>>16)+(gt>>>16)+(Z>>>16),this.h3h=ce<<16|Z&65535,this.h3l=K<<16|N&65535,N=(he&65535)+(qt&65535),K=(he>>>16)+(qt>>>16)+(N>>>16),Z=(re&65535)+(xt&65535)+(K>>>16),ce=(re>>>16)+(xt>>>16)+(Z>>>16),this.h4h=ce<<16|Z&65535,this.h4l=K<<16|N&65535,N=(C&65535)+(_t&65535),K=(C>>>16)+(_t>>>16)+(N>>>16),Z=(W&65535)+(Dt&65535)+(K>>>16),ce=(W>>>16)+(Dt>>>16)+(Z>>>16),this.h5h=ce<<16|Z&65535,this.h5l=K<<16|N&65535,N=(ue&65535)+($t&65535),K=(ue>>>16)+($t>>>16)+(N>>>16),Z=(X&65535)+(Qt&65535)+(K>>>16),ce=(X>>>16)+(Qt>>>16)+(Z>>>16),this.h6h=ce<<16|Z&65535,this.h6l=K<<16|N&65535,N=(j&65535)+(Ut&65535),K=(j>>>16)+(Ut>>>16)+(N>>>16),Z=(Q&65535)+(kt&65535)+(K>>>16),ce=(Q>>>16)+(kt>>>16)+(Z>>>16),this.h7h=ce<<16|Z&65535,this.h7l=K<<16|N&65535},Y.prototype.hex=function(){this.finalize();var B=this.h0h,L=this.h0l,z=this.h1h,H=this.h1l,ie=this.h2h,de=this.h2l,Ae=this.h3h,O=this.h3l,re=this.h4h,he=this.h4l,W=this.h5h,C=this.h5l,X=this.h6h,ue=this.h6l,Q=this.h7h,j=this.h7l,k=this.bits,V=h[B>>>28&15]+h[B>>>24&15]+h[B>>>20&15]+h[B>>>16&15]+h[B>>>12&15]+h[B>>>8&15]+h[B>>>4&15]+h[B&15]+h[L>>>28&15]+h[L>>>24&15]+h[L>>>20&15]+h[L>>>16&15]+h[L>>>12&15]+h[L>>>8&15]+h[L>>>4&15]+h[L&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[H>>>28&15]+h[H>>>24&15]+h[H>>>20&15]+h[H>>>16&15]+h[H>>>12&15]+h[H>>>8&15]+h[H>>>4&15]+h[H&15]+h[ie>>>28&15]+h[ie>>>24&15]+h[ie>>>20&15]+h[ie>>>16&15]+h[ie>>>12&15]+h[ie>>>8&15]+h[ie>>>4&15]+h[ie&15]+h[de>>>28&15]+h[de>>>24&15]+h[de>>>20&15]+h[de>>>16&15]+h[de>>>12&15]+h[de>>>8&15]+h[de>>>4&15]+h[de&15]+h[Ae>>>28&15]+h[Ae>>>24&15]+h[Ae>>>20&15]+h[Ae>>>16&15]+h[Ae>>>12&15]+h[Ae>>>8&15]+h[Ae>>>4&15]+h[Ae&15];return k>=256&&(V+=h[O>>>28&15]+h[O>>>24&15]+h[O>>>20&15]+h[O>>>16&15]+h[O>>>12&15]+h[O>>>8&15]+h[O>>>4&15]+h[O&15]),k>=384&&(V+=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[he>>>28&15]+h[he>>>24&15]+h[he>>>20&15]+h[he>>>16&15]+h[he>>>12&15]+h[he>>>8&15]+h[he>>>4&15]+h[he&15]+h[W>>>28&15]+h[W>>>24&15]+h[W>>>20&15]+h[W>>>16&15]+h[W>>>12&15]+h[W>>>8&15]+h[W>>>4&15]+h[W&15]+h[C>>>28&15]+h[C>>>24&15]+h[C>>>20&15]+h[C>>>16&15]+h[C>>>12&15]+h[C>>>8&15]+h[C>>>4&15]+h[C&15]),k==512&&(V+=h[X>>>28&15]+h[X>>>24&15]+h[X>>>20&15]+h[X>>>16&15]+h[X>>>12&15]+h[X>>>8&15]+h[X>>>4&15]+h[X&15]+h[ue>>>28&15]+h[ue>>>24&15]+h[ue>>>20&15]+h[ue>>>16&15]+h[ue>>>12&15]+h[ue>>>8&15]+h[ue>>>4&15]+h[ue&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[j>>>28&15]+h[j>>>24&15]+h[j>>>20&15]+h[j>>>16&15]+h[j>>>12&15]+h[j>>>8&15]+h[j>>>4&15]+h[j&15]),V},Y.prototype.toString=Y.prototype.hex,Y.prototype.digest=function(){this.finalize();var B=this.h0h,L=this.h0l,z=this.h1h,H=this.h1l,ie=this.h2h,de=this.h2l,Ae=this.h3h,O=this.h3l,re=this.h4h,he=this.h4l,W=this.h5h,C=this.h5l,X=this.h6h,ue=this.h6l,Q=this.h7h,j=this.h7l,k=this.bits,V=[B>>>24&255,B>>>16&255,B>>>8&255,B&255,L>>>24&255,L>>>16&255,L>>>8&255,L&255,z>>>24&255,z>>>16&255,z>>>8&255,z&255,H>>>24&255,H>>>16&255,H>>>8&255,H&255,ie>>>24&255,ie>>>16&255,ie>>>8&255,ie&255,de>>>24&255,de>>>16&255,de>>>8&255,de&255,Ae>>>24&255,Ae>>>16&255,Ae>>>8&255,Ae&255];return k>=256&&V.push(O>>>24&255,O>>>16&255,O>>>8&255,O&255),k>=384&&V.push(re>>>24&255,re>>>16&255,re>>>8&255,re&255,he>>>24&255,he>>>16&255,he>>>8&255,he&255,W>>>24&255,W>>>16&255,W>>>8&255,W&255,C>>>24&255,C>>>16&255,C>>>8&255,C&255),k==512&&V.push(X>>>24&255,X>>>16&255,X>>>8&255,X&255,ue>>>24&255,ue>>>16&255,ue>>>8&255,ue&255,Q>>>24&255,Q>>>16&255,Q>>>8&255,Q&255,j>>>24&255,j>>>16&255,j>>>8&255,j&255),V},Y.prototype.array=Y.prototype.digest,Y.prototype.arrayBuffer=function(){this.finalize();var B=this.bits,L=new ArrayBuffer(B/8),z=new DataView(L);return z.setUint32(0,this.h0h),z.setUint32(4,this.h0l),z.setUint32(8,this.h1h),z.setUint32(12,this.h1l),z.setUint32(16,this.h2h),z.setUint32(20,this.h2l),z.setUint32(24,this.h3h),B>=256&&z.setUint32(28,this.h3l),B>=384&&(z.setUint32(32,this.h4h),z.setUint32(36,this.h4l),z.setUint32(40,this.h5h),z.setUint32(44,this.h5l)),B==512&&(z.setUint32(48,this.h6h),z.setUint32(52,this.h6l),z.setUint32(56,this.h7h),z.setUint32(60,this.h7l)),L},Y.prototype.clone=function(){var B=new Y(this.bits,!1);return this.copyTo(B),B},Y.prototype.copyTo=function(B){var L=0,z=["h0h","h0l","h1h","h1l","h2h","h2l","h3h","h3l","h4h","h4l","h5h","h5l","h6h","h6l","h7h","h7l","start","bytes","hBytes","finalized","hashed","lastByteIndex"];for(L=0;L<z.length;++L)B[z[L]]=this[z[L]];for(L=0;L<this.blocks.length;++L)B.blocks[L]=this.blocks[L]};function ne(B,L,z){var H,ie=_(B);if(B=ie[0],ie[1]){for(var de=[],Ae=B.length,O=0,re,H=0;H<Ae;++H)re=B.charCodeAt(H),re<128?de[O++]=re:re<2048?(de[O++]=192|re>>>6,de[O++]=128|re&63):re<55296||re>=57344?(de[O++]=224|re>>>12,de[O++]=128|re>>>6&63,de[O++]=128|re&63):(re=65536+((re&1023)<<10|B.charCodeAt(++H)&1023),de[O++]=240|re>>>18,de[O++]=128|re>>>12&63,de[O++]=128|re>>>6&63,de[O++]=128|re&63);B=de}B.length>128&&(B=new Y(L,!0).update(B).array());for(var he=[],W=[],H=0;H<128;++H){var C=B[H]||0;he[H]=92^C,W[H]=54^C}Y.call(this,L,z),this.update(W),this.oKeyPad=he,this.inner=!0,this.sharedMemory=z}ne.prototype=new Y,ne.prototype.finalize=function(){if(Y.prototype.finalize.call(this),this.inner){this.inner=!1;var B=this.array();Y.call(this,this.bits,this.sharedMemory),this.update(this.oKeyPad),this.update(B),Y.prototype.finalize.call(this)}},ne.prototype.clone=function(){var B=new ne([],this.bits,!1);this.copyTo(B),B.inner=this.inner;for(var L=0;L<this.oKeyPad.length;++L)B.oKeyPad[L]=this.oKeyPad[L];return B};var te=D(512);te.sha512=te,te.sha384=D(384),te.sha512_256=D(256),te.sha512_224=D(224),te.sha512.hmac=P(512),te.sha384.hmac=P(384),te.sha512_256.hmac=P(256),te.sha512_224.hmac=P(224),f?e.exports=te:(s.sha512=te.sha512,s.sha384=te.sha384,s.sha512_256=te.sha512_256,s.sha512_224=te.sha512_224)})()})(Xm)),Xm.exports}var v9=x9();const E9=Vd(v9),X3="3.7.8",w9=X3,Ou=typeof tn.Buffer=="function",FC=typeof TextDecoder=="function"?new TextDecoder:void 0,RC=typeof TextEncoder=="function"?new TextEncoder:void 0,I9="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Pc=Array.prototype.slice.call(I9),vd=(e=>{let t={};return e.forEach((r,o)=>t[r]=o),t})(Pc),S9=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,_n=String.fromCharCode.bind(String),BC=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),Z3=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),J3=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),W3=e=>{let t,r,o,s,c="";const l=e.length%3;for(let f=0;f<e.length;){if((r=e.charCodeAt(f++))>255||(o=e.charCodeAt(f++))>255||(s=e.charCodeAt(f++))>255)throw new TypeError("invalid character found");t=r<<16|o<<8|s,c+=Pc[t>>18&63]+Pc[t>>12&63]+Pc[t>>6&63]+Pc[t&63]}return l?c.slice(0,l-3)+"===".substring(l):c},Vx=typeof btoa=="function"?e=>btoa(e):Ou?e=>tn.Buffer.from(e,"binary").toString("base64"):W3,S1=Ou?e=>tn.Buffer.from(e).toString("base64"):e=>{let r=[];for(let o=0,s=e.length;o<s;o+=4096)r.push(_n.apply(null,e.subarray(o,o+4096)));return Vx(r.join(""))},Td=(e,t=!1)=>t?Z3(S1(e)):S1(e),C9=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?_n(192|t>>>6)+_n(128|t&63):_n(224|t>>>12&15)+_n(128|t>>>6&63)+_n(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return _n(240|t>>>18&7)+_n(128|t>>>12&63)+_n(128|t>>>6&63)+_n(128|t&63)}},O9=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,e_=e=>e.replace(O9,C9),TC=Ou?e=>tn.Buffer.from(e,"utf8").toString("base64"):RC?e=>S1(RC.encode(e)):e=>Vx(e_(e)),Js=(e,t=!1)=>t?Z3(TC(e)):TC(e),_C=e=>Js(e,!0),F9=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,R9=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),r=t-65536;return _n((r>>>10)+55296)+_n((r&1023)+56320);case 3:return _n((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return _n((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},t_=e=>e.replace(F9,R9),n_=e=>{if(e=e.replace(/\s+/g,""),!S9.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,r,o,s=[];for(let c=0;c<e.length;)t=vd[e.charAt(c++)]<<18|vd[e.charAt(c++)]<<12|(r=vd[e.charAt(c++)])<<6|(o=vd[e.charAt(c++)]),r===64?s.push(_n(t>>16&255)):o===64?s.push(_n(t>>16&255,t>>8&255)):s.push(_n(t>>16&255,t>>8&255,t&255));return s.join("")},Yx=typeof atob=="function"?e=>atob(J3(e)):Ou?e=>tn.Buffer.from(e,"base64").toString("binary"):n_,r_=Ou?e=>BC(tn.Buffer.from(e,"base64")):e=>BC(Yx(e).split("").map(t=>t.charCodeAt(0))),i_=e=>r_(o_(e)),B9=Ou?e=>tn.Buffer.from(e,"base64").toString("utf8"):FC?e=>FC.decode(r_(e)):e=>t_(Yx(e)),o_=e=>J3(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),C1=e=>B9(o_(e)),T9=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)},a_=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),s_=function(){const e=(t,r)=>Object.defineProperty(String.prototype,t,a_(r));e("fromBase64",function(){return C1(this)}),e("toBase64",function(t){return Js(this,t)}),e("toBase64URI",function(){return Js(this,!0)}),e("toBase64URL",function(){return Js(this,!0)}),e("toUint8Array",function(){return i_(this)})},u_=function(){const e=(t,r)=>Object.defineProperty(Uint8Array.prototype,t,a_(r));e("toBase64",function(t){return Td(this,t)}),e("toBase64URI",function(){return Td(this,!0)}),e("toBase64URL",function(){return Td(this,!0)})},_9=()=>{s_(),u_()},M9={version:X3,VERSION:w9,atob:Yx,atobPolyfill:n_,btoa:Vx,btoaPolyfill:W3,fromBase64:C1,toBase64:Js,encode:Js,encodeURI:_C,encodeURL:_C,utob:e_,btou:t_,decode:C1,isValid:T9,fromUint8Array:Td,toUint8Array:i_,extendString:s_,extendUint8Array:u_,extendBuiltins:_9},ns=e=>`${e} is malformed`,c_=e=>`${e} checksum is wrong`,D9=32,MC=32,Ed=36,l_=4,DC=58,UC=32,U9=32,PC=ns("block hash"),P9=ns("tx id"),Zm=ns("address"),j9=c_("address");function N9(e){return Uint8Array.from(E9.sha512_256.array(e).slice(UC-l_,UC))}function L9(e){if(typeof e!="string")throw new Error(`${Zm}: expected string, got ${typeof e}, ${e}`);if(e.length!==DC)throw new Error(`${Zm}: expected length ${DC}, got ${e.length}: ${e}`);const t=Y3.decode.asBytes(e);if(t.length!==Ed)throw new Error(`${Zm}: expected byte length ${Ed}, got ${t.length}`);const r=new Uint8Array(t.slice(0,Ed-l_)),o=new Uint8Array(t.slice(U9,Ed)),s=N9(r);if(!k9(s,o))throw new Error(j9);return!0}function q9(e){const t=M9.toUint8Array("3KYSrPgi16Cl3iLu3r+GaeZkBBrgNFbMB60jsrJtTdI=");if(t.length!==MC)throw new Error(`${P9}: expected byte length ${MC}, got ${t.length}`);return!0}function $9(e){const t=Y3.decode.asBytes(e);if(t.length!==D9)throw new Error(`${PC}: expected byte length ${PC}, got ${t.length}`);return!0}function k9(e,t){return e.length!==t.length?!1:Array.from(e).every((r,o)=>r===t[o])}const H9=34,O1=34,jC=36,z9=ns("block hash"),G9=ns("tx id"),Q9=ns("address");function K9(e){const t=jh.decode(e);if(t.length!==jC)throw new Error(`${Q9}: expected byte length ${jC}, got ${t.length}`);return!0}function V9(e){const t=jh.decode(e);if(t.length!==O1)throw new Error(`${z9}: expected byte length ${H9}, got ${t.length}`);return!0}function Y9(e){const t=jh.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 r=new Uint32Array(256*t);for(let o=0;o<256;o++){let s=o;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,r[o]=s}for(let o=256;o<r.length;o++){const s=r[o-256];r[o]=r[s&255]^s>>>8}return r}const Ii=X9({polynomial:3988292384,numTables:8});function Z9(){return-1}function J9(e,t){const r=t.byteLength,o=new DataView(t.buffer,t.byteOffset,r);let s=e,c=0;const l=-o.byteOffset&3;for(;c<l&&c<r;c++)s=Ii[(s^o.getUint8(c))&255]^s>>>8;if(c===r)return s;c=l;let f=r-c;for(;f>=8;c+=8,f-=8){s^=o.getUint32(c,!0);const p=o.getUint32(c+4,!0);s=Ii[0*256+(p>>>24&255)]^Ii[1*256+(p>>>16&255)]^Ii[2*256+(p>>>8&255)]^Ii[3*256+(p>>>0&255)]^Ii[4*256+(s>>>24&255)]^Ii[5*256+(s>>>16&255)]^Ii[6*256+(s>>>8&255)]^Ii[7*256+(s>>>0&255)]}for(let p=c;p<r;p++)s=Ii[(s^o.getUint8(p))&255]^s>>>8;return s}function W9(e){return(e^-1)>>>0}function ez(e){return W9(J9(Z9(),e))}const Ra=Error,wd=Error,Jm="Unexpected end of buffer",Vs=class Vs{constructor(t){this.initialByte=t}CborInitialByte(t,r){this.initialByte=t<<5|r}static from(t){return new Vs(t)}getInitialByte(){return this.initialByte}getMajorType(){return this.initialByte>>5}getAdditionalInfo(){return this.initialByte&Vs.AdditionalInformationMask}};Vs.IndefiniteLengthBreakByte=255,Vs.AdditionalInformationMask=31;let Vo=Vs;var ro,ii,Qd,Ws,Yt,Kd,ut,f_,d_,h_,_d,ir,R1,p_,Md,jc,Nc,Ma,B1,Da;const Tn=class Tn{constructor(t){Xi(this,ut);Xi(this,ro);Xi(this,ii,0);Xi(this,Qd,new Array);Xi(this,Ws,!1);Xi(this,Yt);Xi(this,Kd,0);ko(this,ro,new Uint8Array(tn.Buffer.from(t,"hex"))),ko(this,Yt,{currentKeyOffset:null,frameOffset:0,itemsRead:0,type:null})}readStartArray(){var c;const t=dt(this,ut,jc).call(this,4);if(t.getAdditionalInfo()===31)return dt(this,ut,Ma).call(this,1),dt(this,ut,B1).call(this,4),null;const r=dt(this,ut,Da).call(this),{length:o,bytesRead:s}=dt(c=Tn,ir,Md).call(c,t,r);return dt(this,ut,Ma).call(this,s),dt(this,ut,B1).call(this,4,o),o}readTag(){const{tag:t,bytesRead:r}=dt(this,ut,p_).call(this);return dt(this,ut,Ma).call(this,r),ko(this,Ws,!0),t}readByteString(){var c;const t=dt(this,ut,jc).call(this,2);if(t.getAdditionalInfo()===31){const{val:l,encodingLength:f}=dt(this,ut,h_).call(this,2);return dt(this,ut,Ma).call(this,f),dt(this,ut,_d).call(this),l}const r=dt(this,ut,Da).call(this),{length:o,bytesRead:s}=dt(c=Tn,ir,Md).call(c,t,r);return dt(this,ut,d_).call(this,s+o),dt(this,ut,Ma).call(this,s+o),dt(this,ut,_d).call(this),r.slice(s,s+o)}readInt(){const t=dt(this,ut,f_).call(this);return dt(this,ut,Ma).call(this,t.bytesRead),dt(this,ut,_d).call(this),t.signedInt}static ensureReadCapacityInArray(t,r){if(t.length<r)throw new Ra(Jm)}};ro=new WeakMap,ii=new WeakMap,Qd=new WeakMap,Ws=new WeakMap,Yt=new WeakMap,Kd=new WeakMap,ut=new WeakSet,f_=function(){var r,o;const t=dt(this,ut,jc).call(this);switch(t.getMajorType()){case 0:{const{unsignedInt:s,bytesRead:c}=dt(r=Tn,ir,Nc).call(r,t,dt(this,ut,Da).call(this));return{bytesRead:c,signedInt:BigInt(s)}}case 1:{const{unsignedInt:s,bytesRead:c}=dt(o=Tn,ir,Nc).call(o,t,dt(this,ut,Da).call(this));return{bytesRead:c,signedInt:BigInt(-1)-s}}default:throw new wd(`Reader type mismatch, expected 0 or 1 but got ${t.getMajorType()}`)}},d_=function(t){if(yt(this,ro).length-yt(this,ii)<t)throw new Ra(Jm)},h_=function(t){var f,p,h;const r=dt(this,ut,Da).call(this);let o=tn.Buffer.from([]),s=0,c=1,l=dt(f=Tn,ir,R1).call(f,r.slice(c),t);for(;l.getInitialByte()!==Vo.IndefiniteLengthBreakByte;){const{length:A,bytesRead:v}=dt(p=Tn,ir,Md).call(p,l,r.slice(c)),x=v+Number(A);o=tn.Buffer.concat([o,r.slice(c+(x-A),c+x)]),c+=x,l=dt(h=Tn,ir,R1).call(h,r.slice(c),t)}return s=c+1,{encodingLength:s,val:new Uint8Array(o)}},_d=function(){++yt(this,Yt).itemsRead,ko(this,Ws,!1)},ir=new WeakSet,R1=function(t,r){Tn.ensureReadCapacityInArray(t,1);const o=Vo.from(t[0]);if(o.getInitialByte()!==Vo.IndefiniteLengthBreakByte&&o.getMajorType()!==r)throw new Ra("Indefinite length string contains invalid data item");return o},p_=function(){var s;const t=dt(this,ut,jc).call(this,6),{unsignedInt:r,bytesRead:o}=dt(s=Tn,ir,Nc).call(s,t,dt(this,ut,Da).call(this));return{bytesRead:o,tag:Number(r)}},Md=function(t,r){var c;const{unsignedInt:o,bytesRead:s}=dt(c=Tn,ir,Nc).call(c,t,r);return{bytesRead:s,length:Number(o)}},jc=function(t){if(yt(this,Yt).definiteLength!==void 0&&yt(this,Yt).definiteLength-yt(this,Yt).itemsRead===0)throw new wd("No more data items to read");if(yt(this,ii)===yt(this,ro).length)throw yt(this,Yt).type===null&&yt(this,Yt).definiteLength===void 0&&yt(this,ii)>0?new wd("End of root-level. No more data items to read"):new Ra(Jm);const r=Vo.from(yt(this,ro)[yt(this,ii)]);switch(yt(this,Yt).type){case 2:case 3:if(r.getInitialByte()===Vo.IndefiniteLengthBreakByte||r.getMajorType()===yt(this,Yt).type&&r.getAdditionalInfo()!==31)break;throw new Ra(`Indefinite length string contains invalid data item, ${r.getMajorType()}`)}if(t&&t!==r.getMajorType())throw new wd(`Major type mismatch, expected type ${t} but got ${r.getMajorType()}`);return r},Nc=function(t,r){if((t.getInitialByte()&Vo.AdditionalInformationMask)<24)return{bytesRead:1,unsignedInt:BigInt(t.getAdditionalInfo())};switch(t.getAdditionalInfo()){case 24:return Tn.ensureReadCapacityInArray(r,2),{bytesRead:2,unsignedInt:BigInt(r[1])};case 25:{Tn.ensureReadCapacityInArray(r,3);const s=tn.Buffer.from(r.slice(1)).readUInt16BE();return{bytesRead:3,unsignedInt:BigInt(s)}}case 26:{Tn.ensureReadCapacityInArray(r,5);const s=tn.Buffer.from(r.slice(1)).readUInt32BE();return{bytesRead:5,unsignedInt:BigInt(s)}}case 27:{Tn.ensureReadCapacityInArray(r,9);const o=tn.Buffer.from(r.slice(1,9));let s=BigInt(0);for(const c of o)s=(s<<BigInt(8))+BigInt(c);return{bytesRead:9,unsignedInt:s}}default:throw new Ra("Invalid integer encoding")}},Ma=function(t){if(yt(this,ii)+t>yt(this,ro).length)throw new Ra("Buffer offset out of bounds");ko(this,ii,yt(this,ii)+t),ko(this,Kd,0)},B1=function(t,r){const o={currentKeyOffset:yt(this,Yt).currentKeyOffset,definiteLength:yt(this,Yt).definiteLength,frameOffset:yt(this,Yt).frameOffset,itemsRead:yt(this,Yt).itemsRead,type:yt(this,Yt).type};yt(this,Qd).push(o),yt(this,Yt).type=t,yt(this,Yt).definiteLength=r,yt(this,Yt).itemsRead=0,yt(this,Yt).frameOffset=yt(this,ii),ko(this,Ws,!1),yt(this,Yt).currentKeyOffset=null},Da=function(){return yt(this,ro).slice(yt(this,ii))},Xi(Tn,ir);let F1=Tn;const tz=c_("address");function nz(e){return y_(Bd.decode(e))}function y_(e){const t=new F1(tn.Buffer.from(e).toString("hex"));t.readStartArray(),t.readTag();const r=t.readByteString();if(Number(t.readInt())!==ez(r))throw new Error(tz);return!0}function rz(e){const t=I1.bech32.decode(e,Number.MAX_SAFE_INTEGER/2),r=I1.bech32.fromWords(t.words);if(!["addr","addr_test","stake","stake_test"].includes(t.prefix))return!1;switch(r[0]>>4){case 0:case 1:case 2:case 3:return r.length===57;case 4:case 5:{if(r.length<=29)return!1;let s=29;const c=tn.Buffer.from(r),{bytesRead:l}=Wm(c.subarray(s));s+=l;const{bytesRead:f}=Wm(c.subarray(s));return s+=f,Wm(c.subarray(s)),!0}case 6:case 7:return r.length===47;case 14:case 15:return r.length===47;case 8:return y_(new Uint8Array(r));default:throw new Error(ns("address"))}}const Wm=e=>{let t=!0,r=0n,o=0;for(;t&&o<e.length;){const s=e[o];r<<=7n,r|=BigInt(s&127),t=(s&128)!==0,++o}return{bytesRead:o,value:r}};var xn=(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[e.POLKADOT=7]="POLKADOT",e))(xn||{});function di(e,t,r=()=>!0){try{return r(t(e))}catch{return!1}}Mi("algorand-address",e=>di(e,L9));Mi("algorand-blockhash",e=>di(e,q9));Mi("algorand-txid",e=>di(e,$9));Mi("mina-address",e=>di(e,K9));Mi("mina-blockhash",e=>di(e,V9));Mi("mina-txid",e=>di(e,Y9));Mi("cardano-address",e=>di(e,nz)||di(e,rz));Mi("ss58",e=>di(e,d9.decode));Mi("bs58check",e=>di(e,jh.decode));Mi("bech32",e=>di(e,t=>I1.bech32.decode(t,Number.MAX_SAFE_INTEGER/2)));function kn(e){return E.Transform(e).Decode(t=>t.toLowerCase()).Encode(t=>t.toLowerCase())}function NC(e){return E.Transform(e).Decode(t=>t.toUpperCase()).Encode(t=>t.toUpperCase())}const we={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(NC(E.String({format:"algorand-txid"}))),Address:E.Unsafe(NC(E.String({format:"algorand-address"})))},Substrate:{Address:E.Unsafe(E.String({format:"ss58"}))},Avail:{BlockHash:E.Unsafe(kn(E.RegExp(/^0x[a-fA-F0-9]{64}$/))),Address:E.Unsafe(E.String({format:"ss58"}))},Cardano:{BlockHash:E.Unsafe(kn(E.RegExp(/^[a-fA-F0-9]{64}$/))),TxHash:E.Unsafe(kn(E.RegExp(/^[a-fA-F0-9]{64}$/))),Address:E.Unsafe(E.String({format:"cardano-address"})),Credential:E.Unsafe(kn(E.RegExp(/^[a-fA-F0-9]{64}$/))),PoolId:E.Unsafe(kn(E.String())),PolicyId:E.Unsafe(kn(E.RegExp(/^[a-fA-F0-9]{56}$/))),AssetName:E.Unsafe(kn(E.RegExp(/^[a-fA-F0-9]{64}$/))),Cip14Fingerprint:E.Unsafe(E.String()),AmountLovelace:E.Unsafe(E.RegExp(/^\d+$/))},Evm:{BlockHash:E.Unsafe(kn(E.RegExp(/^0x[a-fA-F0-9]{64}$/))),TxHash:E.Unsafe(kn(E.RegExp(/^0x[a-fA-F0-9]{64}$/))),Address:E.Unsafe(kn(E.RegExp(/^0x[a-fA-F0-9]{40}$/))),Selector:E.Unsafe(kn(E.RegExp(/^0x[a-fA-F0-9]{8}$/))),FullSelector:E.Unsafe(kn(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(kn(E.RegExp(/^0x[a-fA-F0-9]{64}$/))),TxHash:E.Unsafe(kn(E.RegExp(/^0x[a-fA-F0-9]{64}$/))),Address:E.Unsafe(kn(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"}))},Polkadot:{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(oz),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:kn(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())},iz={0:we.Evm.Address,1:we.Cardano.Address,2:we.Substrate.Address,6:we.Avail.Address,3:we.Algorand.Address,4:we.Mina.Address,5:we.Midnight.Address,7:we.Polkadot.Address},oz=[E.Object({type:E.Literal(0),address:we.Evm.Address}),E.Object({type:E.Literal(1),address:we.Cardano.Address}),E.Object({type:E.Literal(2),address:we.Substrate.Address}),E.Object({type:E.Literal(6),address:we.Avail.Address}),E.Object({type:E.Literal(3),address:we.Algorand.Address}),E.Object({type:E.Literal(4),address:we.Mina.Address}),E.Object({type:E.Literal(5),address:we.Midnight.Address}),E.Object({type:E.Literal(7),address:we.Polkadot.Address})];function Dd(e){return{from:t=>{const r=[];for(const o of e)r.push([o,t.properties[o]]);return r}}}function Gs(e){return{from:t=>Dd(e).from(t)}}const Cl=e=>({ok:!0,value:e}),Ol=e=>({ok:!1,error:e}),az={},g_=sz(globalThis,az);function sz(e,t){return new Proxy(e,{get(r,o,s){return o in t?t[o]:e[o]},set(r,o,s){return o in t&&delete t[o],e[o]=s,!0},deleteProperty(r,o){let s=!1;return o in t&&(delete t[o],s=!0),o in e&&(delete e[o],s=!0),s},ownKeys(r){const o=Reflect.ownKeys(e),s=Reflect.ownKeys(t),c=new Set(s);return[...o.filter(l=>!c.has(l)),...s]},defineProperty(r,o,s){return o in t&&delete t[o],Reflect.defineProperty(e,o,s),!0},getOwnPropertyDescriptor(r,o){return o in t?Reflect.getOwnPropertyDescriptor(t,o):Reflect.getOwnPropertyDescriptor(e,o)},has(r,o){return o in t||o in e}})}const Go=g_.Temporal??new Proxy({},{get:()=>{}});new Set([Intl.Locale,RegExp,Go.Duration,Go.Instant,Go.PlainDate,Go.PlainDateTime,Go.PlainTime,Go.PlainYearMonth,Go.PlainMonthDay,Go.ZonedDateTime,URL,URLSearchParams].filter(e=>e!=null).map(e=>e.prototype));const{Deno:Id}=g_;typeof(Id==null?void 0:Id.noColor)=="boolean"&&Id.noColor;function*T1(e){return yield{type:"reset",block:e}}function*Xx(e){return yield{type:"shift",block:e}}function uz(){let e=[];return{reducing:!1,push(...t){return e.push(...t)},pop(){return e.pop()}}}function ja(e){let t=uz();return t.push({method:"next",iterator:e()[Symbol.iterator]()}),Lc(t)}function Lc(e){try{e.reducing=!0;for(let t=e.pop();t;t=e.pop())try{let r=cz(t);if(e.value=r.value,!r.done){let o=r.value;if(o.type==="reset")e.push({...t,method:"next",get value(){return e.value}},{method:"next",iterator:o.block()[Symbol.iterator]()});else{let s=t,c=Sd(f=>(e.push({method:"next",iterator:s.iterator,value:f}),Lc(e)));c.tail=Sd(f=>{e.push({method:"next",iterator:s.iterator,value:f}),e.reducing||Lc(e)});let l=Sd(f=>(e.push({method:"throw",iterator:s.iterator,value:f}),Lc(e)));l.tail=Sd(f=>{e.push({method:"throw",iterator:s.iterator,value:f}),e.reducing||Lc(e)}),e.push({method:"next",iterator:o.block(c,l)[Symbol.iterator](),value:void 0})}}}catch(r){let o=e.pop();if(o)e.push({...o,method:"throw",value:r});else throw r}}finally{e.reducing=!1}return e.value}function cz(e){let{iterator:t}=e;if(e.method==="next")return t.next(e.value);{let r=e.value;if(t.throw)return t.throw(r);throw r}}function Sd(e){let t=!1,r,o;return(s=>{if(t){if(r)throw r.error;return o}else{t=!0;try{return o=e(s)}catch(c){throw r={error:c},c}}})}function du(e){return Xx((t,r)=>({[Symbol.iterator]:()=>({next(){return{done:!0,value:e(t,r)}}})}))}function Hd(){return Zx(lz)}function lz(e){return du(t=>{e.aborted&&t.tail(Cl(void 0))})}function LC(e){return Zx(function(r){return Xx(function*(o){let s=yield*T1(function*(){let p=yield*du(A=>A.tail),h=yield*f.destroy();h.ok?o.tail(p):o.tail(h)}),c=p=>s(Cl(p)),l=p=>s(Ol(p)),f=r.createChild(function*(){let p=e(c,l);if(typeof p=="function")try{yield*Hd()}finally{p()}else yield*p,yield*Hd()});yield*T1(function*(){let p=yield*f;p.ok||o.tail(p)}),f.enter()})})}function fz(){return Zx(e=>du(t=>t.tail(Cl(e))))}function Zx(e){return{[Symbol.iterator](){let t=!1;return{next(r){return t?{done:!0,value:r}:(t=!0,{done:!1,value:e})},throw(r){throw r}}}}}function Fl(e,t,r){let o={};for(let[s,c]of Object.entries(t))o[s]={enumerable:!0,value:c};return Object.create({...r,[Symbol.toStringTag]:e},o)}function dz(e){let t=()=>{let r=e();return t=()=>r,r};return()=>t()}function*hz(){let e,t=new Set;return[yield*T1(function*(){let s=yield*du(c=>c.tail);e={value:s};for(let c of t)t.delete(c),c(s)}),{[Symbol.iterator](){return e?pz(e.value):du(s=>{t.add(s.tail)})[Symbol.iterator]()}}]}function pz(e){return{next(){return{done:!0,value:e}}}}function yz(e){let t,r=(c,l)=>{ja(function*(){let f=qC(yield*e);f.ok?c(f.value):l(f.error)})},o=()=>(t=new Promise((c,l)=>{r(c,l)}),o=()=>t,t);return Fl("Task",{},{*[Symbol.iterator](){let c=ja(()=>e);if(c){let l=qC(c);if(l.ok)return l.value;throw l.error}else return yield*LC(function*(l,f){r(l,f)})},then:(...c)=>o().then(...c),catch:(...c)=>o().catch(...c),finally:(...c)=>o().finally(...c),halt(){let c,l=()=>(c=new Promise((p,h)=>{f(p,h)}),l=()=>c,e.destroy(),c),f=(p,h)=>{ja(function*(){let{destruction:A}=yield*e;A.ok?p():h(A.error)})};return Fl("Future",{},{*[Symbol.iterator](){let p=ja(()=>e);if(p){if(!p.ok)throw p.error}else yield*LC(function*(h,A){f(h,A),e.destroy()})},then:(...p)=>l().then(...p),catch:(...p)=>l().catch(...p),finally:(...p)=>l().finally(...p)})}})}function qC(e){return e.ok?e.exit.type==="aborted"?Ol(Error("halted")):e.exit.type==="crashed"?Ol(e.exit.error):e.exit.result:e}let gz=0;function m_(e){return ja(function*(){let{operation:t,parent:r}=e,o=new Set,s=Object.create(r??{}),c=[{done:!1,value:$C(void 0)}],l,f=()=>{},[p,h]=yield*hz(),A=yield*du(T=>{let _=Fl("Frame",{id:gz++,context:s},{createChild(D){let $=m_({operation:D,parent:_.context});return o.add($),ja(function*(){yield*$,o.delete($)}),$},getTask(){let D=yz(_);return _.getTask=()=>D,D},enter(){T.tail(_)},crash(D){return M(D),h},destroy(){return M(),h},[Symbol.iterator]:h[Symbol.iterator]}),M=D=>{_.aborted||(_.aborted=!0,l=D,c.unshift({done:!1,value:Az()}),f())};return _}),v=dz(()=>t()[Symbol.iterator]()),x=c.pop();for(;!x.done;){let T=x.value;try{let _=T(v());if(_.done)c.unshift({done:!0,value:Cl(_.value)});else{let M=_.value,D=yield*Xx(function*($){f=()=>$.tail({type:"interrupted"});try{$.tail({type:"settled",result:yield*M(A)})}catch(P){$.tail({type:"settled",result:Ol(P)})}});D.type==="settled"&&(D.result.ok?c.unshift({done:!1,value:$C(D.result.value)}):c.unshift({done:!1,value:mz(D.result.error)}))}}catch(_){c.unshift({done:!0,value:Ol(_)})}x=c.pop()}A.exited=!0;let S=x.value,R;S.ok?l?R={type:"crashed",error:l}:A.aborted?R={type:"aborted"}:R={type:"result",result:S}:R={type:"result",result:S};let U=Cl(void 0);for(;o.size!==0;)for(let T of[...o].reverse()){let _=yield*T.destroy();_.ok||(U=_)}if(!U.ok)p({ok:!1,error:U.error,exit:R,destruction:U});else if(R.type==="aborted")p({ok:!0,value:void 0,exit:R,destruction:U});else if(R.type==="result"){let{result:T}=R;T.ok?p({ok:!0,value:void 0,exit:R,destruction:U}):p({ok:!1,error:T.error,exit:R,destruction:U})}else p({ok:!1,error:R.error,exit:R,destruction:U})})}const $C=e=>function(r){return r.next(e)},mz=e=>function(r){if(r.throw)return r.throw(e);throw e},Az=e=>function(r){return r.return?r.return(e):{done:!0,value:e}};function*e0(){let e=yield*fz(),[t]=bz(e);return t}function bz(e){let t=xz(e)?e.frame.createChild(Hd):e??m_({operation:Hd}),r=Fl("Scope",{},{frame:t,run(o){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(o);return s.enter(),ja(function*(){let c=yield*s;c.ok||(yield*t.crash(c.error))}),s.getTask()},get spawn(){let o=this;return function(c){return{*[Symbol.iterator](){return o.run(c)}}}},get(o){let{key:s,defaultValue:c}=o;return t.context[s]??c},set(o,s){let{key:c}=o;return t.context[c]=s,s},expect(o){let s=r.get(o);if(typeof s>"u"){let c=new Error(o.key);throw c.name="MissingContextError",c}return s},delete(o){let{key:s}=o;return delete t.context[s]},hasOwn(o){return!!Reflect.getOwnPropertyDescriptor(t.context,o.key)}});return t.enter(),[r,t.getTask().halt]}function xz(e){return!!e&&typeof e.run=="function"}function vz(e,t){let r=Fl("Context",{key:e},{defaultValue:t,*get(){return(yield*e0()).get(r)},*set(s){return(yield*e0()).set(r,s)},expect:o,*with(s,c){let l=yield*e0(),f=l.hasOwn(r)?l.get(r):void 0;try{return yield*c(l.set(r,s))}finally{typeof f>"u"?l.delete(r):l.set(r,f)}},[Symbol.iterator](){return console.warn(`⚠️ using a context (${e}) directly as an operation is deprecated. Use context.expect() instead`),r[Symbol.iterator]=o,o()}});function*o(){let s=yield*r.get();if(typeof s>"u")throw new Ez(`missing required context: '${e}'`);return s}return r}class Ez extends Error{constructor(){super(...arguments),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MissingContextError"})}}const Mc={evm:"#4caf50",evmParallel:"#ff9800",cardano:"#2196f3",midnight:"#9c27b0"};function wz(e){const t={};return e.filter(o=>o.networkType!=="ntp").forEach((o,s)=>{var v,x,S;const c=o.network,l=o.syncProtocol;let f=c.name;c.type==="evm"&&c.chainId?f=`evm_${c.chainId}`:c.type==="evm"&&c.id&&(f=`evm_${c.id}`),t[f]&&(f=`${f}_${s}`);let p;c.type==="evm"?(S=(x=(v=c.rpcUrls)==null?void 0:v.default)==null?void 0:x.http)!=null&&S[0]?p=c.rpcUrls.default.http[0]:l.chainUri&&(p=l.chainUri):c.type==="midnight"&&(p=c.nodeUrl);let h=Mc.evm;c.type==="cardano"?h=Mc.cardano:c.type==="midnight"?h=Mc.midnight:c.name.toLowerCase().includes("arbitrum")?h=Mc.evm:(c.name.toLowerCase().includes("ethereum")||c.name.toLowerCase().includes("l1"))&&(h=Mc.evmParallel);const A={type:c.type.toUpperCase(),name:c.name,blockTime:c.blockTimeMS??void 0,color:h,blocks:[],currentBlock:c.type==="evm"?5e5:1e5,rpcEndpoint:p,latestBlockNumber:0,previousLatestBlockNumber:0,isConnected:!1,protocolName:l.name};t[f]=A}),t}async function Iz(){var e;try{const t=await fetch(b_);if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);const r=await t.json(),o=wz(r);return{Paima:{type:"EVM",name:"Paima Engine",blockTime:((e=r.find(c=>c.syncProtocol.name==="mainNtp"))==null?void 0:e.network.blockTimeMS)??1e3,color:"#667eea",blocks:[],currentBlock:1e6,rpcEndpoint:`http://127.0.0.1:${Ye.PAIMA_API_PORT}/rpc/evm`,latestBlockNumber:0,previousLatestBlockNumber:0,isConnected:!1},...o}}catch(t){return console.error("Error fetching chain configs:",t),A_}}const A_={Paima:{type:"EVM",name:"Paima Engine",blockTime:1e3,color:"#667eea",blocks:[],currentBlock:1e6,rpcEndpoint:`http://127.0.0.1:${Ye.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}},b_=`http://127.0.0.1:${Ye.PAIMA_API_PORT}/config`,Sz=`http://127.0.0.1:${Ye.PAIMA_API_PORT}/block-heights`,Cz=`http://127.0.0.1:${Ye.PAIMA_API_PORT}/primitives`,kC=`http://127.0.0.1:${Ye.PAIMA_API_PORT}/tables`,Oz=`http://127.0.0.1:${Ye.PAIMA_API_PORT}/grammar`,Fz=`http://127.0.0.1:${Ye.PAIMA_API_PORT}/scheduled-data`,Rz=`http://127.0.0.1:${Ye.PAIMA_API_PORT}/primitives-schema`,Bz=`http://127.0.0.1:${Ye.PAIMA_API_PORT}/table-schema`,Tz=`http://127.0.0.1:${Ye.PAIMA_API_PORT}/sync-protocols`,x_=`http://localhost:${Ye.BATCHER_PORT}/send-input`,HC=`http://localhost:${Ye.BATCHER_PORT}/documentation`,zC=`http://localhost:${Ye.PAIMA_API_PORT}/documentation`,GC="https://acedward.github.io/paima-v-next-docs/",_z=`http://127.0.0.1:${Ye.PAIMA_API_PORT}/addresses`;function Jx(e){return Object.fromEntries(Object.entries(e).map(([r,o])=>{const s=o.map(([l,f])=>f),c=E.Tuple([E.Literal(r),...s]);return[r,c]}))}function Qo(e){return["userAddress",iz[e]]}const Ko=[["userSignature",E.String()],["conciseInput",E.String()],["millisecondTimestamp",E.String()]],Mz={[`${xn.EVM}`]:[Qo(xn.EVM),...Ko],[`${xn.CARDANO}`]:[Qo(xn.CARDANO),...Ko],[`${xn.SUBSTRATE}`]:[Qo(xn.SUBSTRATE),...Ko],[`${xn.AVAIL}`]:[Qo(xn.AVAIL),...Ko],[`${xn.ALGORAND}`]:[Qo(xn.ALGORAND),...Ko],[`${xn.MINA}`]:[Qo(xn.MINA),...Ko],[`${xn.MIDNIGHT}`]:[Qo(xn.MIDNIGHT),...Ko],[`${xn.POLKADOT}`]:[Qo(xn.POLKADOT),...Ko]};Jx(Mz);const Dz={batcherInput:"&B"},Uz={[Dz.batcherInput]:[["input",E.Array(E.String())]]};Jx(Uz);const t0={createAccount:"&createAccount",linkAddress:"&linkAddress",unlinkAddress:"&unlinkAddress"},Pz={[t0.createAccount]:[],[t0.linkAddress]:[["account_id",E.Number()],["signature_from_primary",E.String()],["primary_address_type",E.Number()],["new_address",E.String()],["signature_from_new_address",E.String()],["new_address_type",E.Number()],["is_new_primary",E.Boolean()]],[t0.unlinkAddress]:[["account_id",E.Number()],["signature_from_primary",E.String()],["primary_address_type",E.Number()],["target_address",E.String()],["target_address_type",E.Number()],["new_primary_address",E.String()],["new_primary_address_type",E.Number()]]};Jx(Pz);class Cn{constructor(t){this.config=t,this.allProperties=r=>E.Intersect([this.config.required,r?this.config.optional:E.Partial(this.config.optional)]),this.defaultProperties=()=>dH(this.config.optional,{}),this.cloneMerge=r=>{const o=r instanceof Cn?r.config:r;return new Cn({required:E.Object({...this.config.required.properties,...o.required.properties}),optional:E.Object({...this.config.optional.properties,...o.optional.properties})})},this.allProperties.bind(this),this.defaultProperties.bind(this),this.cloneMerge.bind(this)}}var jt=(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))(jt||{});const QC=E.Object({name:E.String(),url:E.String(),apiUrl:E.Optional(E.String())}),jz=E.Object({http:E.Array(E.String()),webSocket:E.Optional(E.Array(E.String()))}),KC=E.Unsafe(jz),Nz=E.Object({name:E.String(),symbol:E.String({minLength:2,maxLength:6}),decimals:E.Number()}),Lz=new Cn({required:E.Object({name:E.String(),type:E.Literal(jt.EVM),chainId:E.Number(),nativeCurrency:Nz,rpcUrls:E.Intersect([E.Record(E.String(),KC),E.Object({default:KC})])}),optional:E.Object({blockExplorers:we.Nullable(E.Intersect([E.Record(E.String(),QC),E.Object({default:QC})]),{default:null}),sourceId:we.Nullable(E.Number(),{default:null}),testnet:E.Boolean({default:!1})})}),qz=E.Union([E.Literal("preview"),E.Literal("preprod"),E.Literal("mainnet"),E.Literal("yaci")]),$z=new Cn({required:E.Object({name:E.String(),type:E.Literal(jt.CARDANO),network:qz}),optional:E.Object({})}),kz=new Cn({required:E.Object({name:E.String(),type:E.Literal(jt.MINA),networkId:E.String()}),optional:E.Object({})}),Wx=we.HexString0x({maxLength:66,minLength:66}),Hz=new Cn({required:E.Object({name:E.String(),type:E.Literal(jt.SUBSTRATE),genesisHash:Wx}),optional:E.Object({})}),zz=new Cn({required:E.Object({name:E.String(),type:E.Literal(jt.AVAIL),genesisHash:Wx}),optional:E.Object({})}),Gz=new Cn({required:E.Object({name:E.String(),type:E.Literal(jt.MIDNIGHT),networkId:E.Number(),genesisHash:Wx}),optional:E.Object({})});var Dc={},VC;function Qz(){if(VC)return Dc;VC=1,Object.defineProperty(Dc,"__esModule",{value:!0}),Dc.assertNever=e;function e(t,r){if(typeof r=="string")throw new Error(r);if(typeof r=="function")throw new Error(r(t));if(r)return t;throw new Error("Unhandled discriminated union member: ".concat(JSON.stringify(t)))}return Dc.default=e,Dc}Qz();const Kz=E.RegExp("^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"),Vz=new Cn({required:E.Object({name:E.String(),type:E.Literal(jt.ALGORAND),genesisHash:Kz}),optional:E.Object({})});E.Object({name:E.String(),url:E.String(),apiUrl:E.Optional(E.String())});const Yz=E.Object({http:E.Array(E.String()),webSocket:E.Optional(E.Array(E.String()))});E.Unsafe(Yz);E.Object({name:E.String(),symbol:E.String({minLength:2,maxLength:6}),decimals:E.Number()});const Xz=new Cn({required:E.Object({name:E.String(),type:E.Literal(jt.NTP),startTime:E.Number(),blockTimeMS:E.Number()}),optional:E.Object({servers:E.Array(E.String())})});jt.NTP+"",jt.EVM+"",jt.CARDANO+"",jt.MINA+"",jt.AVAIL+"",jt.ALGORAND+"",jt.MIDNIGHT+"",jt.SUBSTRATE+"";var et=(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))(et||{});jt.NTP,jt.EVM,jt.CARDANO,jt.CARDANO,jt.MINA,jt.AVAIL,jt.MIDNIGHT;const Tr=new Cn({required:E.Object({name:E.String()}),optional:E.Object({})}),Fu=new Cn({required:E.Object({pollingInterval:we.IntervalMs()}),optional:E.Object({})}),go=new Cn({required:E.Object({startBlockHeight:we.BlockNumber()}),optional:E.Object({stopBlockHeight:we.Nullable(we.BlockNumber(),{default:null})})}),Nh=new Cn({required:E.Object({startSlot:we.AbsoluteSlotNumber()}),optional:E.Object({stopSlot:we.Nullable(we.AbsoluteSlotNumber(),{default:null})})});new Cn({required:E.Object({startTimestamp:we.TimestampMs()}),optional:E.Object({stopTimestamp:we.Nullable(we.TimestampMs(),{default:null})})});const Zz=new Cn({required:E.Object({abi:we.EvmAbiEvent}),optional:E.Object({})}),Jz=e=>E.Number({default:e}),Wz=e=>we.IntervalMs({default:e});function Jl(e,t,r={}){let o=e*t;return r.factor!=null&&(o*=r.factor),r.absolute!=null&&(o+=r.absolute),{confirmationDepth:Jz(e),delayMs:Wz(o)}}const Ru={internal:{},payload:{mainchain:E.Object({blockNumber:we.Nullable(we.BlockNumber()),timestamp:we.Nullable(we.TimestampMs())})}};function rs(...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 eG=Tr.cloneMerge(Fu).cloneMerge(go).cloneMerge({required:E.Object({chainUri:E.String()}),optional:E.Object({stepSize:E.Number({default:1e3})})}),tG={internal:{},payload:{primitiveName:E.String(),caip2:we.Caip2,ownChain:E.Object({blockNumber:we.BlockNumber()}),transactionHash:we.Evm.TxHash,transactionIndex:E.Number(),logIndex:E.Number(),contractAddress:we.Evm.Address}},nG=eG.cloneMerge({required:E.Object({type:E.Literal(et.EVM_RPC_PARALLEL),confirmationDepth:E.Number()}),optional:E.Object({delayMs:we.IntervalMs({default:2*1e3})})}),rG=rs(Ru,tG);E.Unsafe(E.String());const iG=we.SerializeObjAsJson(),oG=Tr.cloneMerge(Fu).cloneMerge(Nh).cloneMerge({required:E.Object({name:E.String(),carpUrl:E.String()}),optional:E.Object({stepSize:E.Number({default:1e3}),paginationLimit:E.Number({default:50})})}),aG={internal:{cursor:iG},payload:{primitiveName:E.String(),caip2:we.Caip2,ownChain:E.Object({absoluteSlotNumber:we.AbsoluteSlotNumber()}),transactionHash:we.Cardano.TxHash}},sG=20*1e3,uG=5,cG=oG.cloneMerge({required:E.Object({type:E.Literal(et.CARDANO_CARP_PARALLEL)}),optional:E.Object({...Jl(uG,sG,{factor:2,absolute:0})})}),lG=rs(Ru,aG),fG=we.Mina.TxHash,dG=Tr.cloneMerge(Fu).cloneMerge(go).cloneMerge({required:E.Object({name:E.String(),archiveConnectionString:E.String()}),optional:E.Object({stepSize:E.Number({default:1e3}),paginationLimit:E.Number({default:50})})}),hG={internal:{cursor:fG},payload:{primitiveName:E.String(),caip2:we.Caip2,ownChain:E.Object({blockNumber:we.BlockNumber()}),transactionHash:we.Mina.TxHash,contractAddress:we.Mina.Address}},pG=180*1e3,yG=2,gG=dG.cloneMerge({required:E.Object({type:E.Literal(et.MINA_PARALLEL)}),optional:E.Object({...Jl(yG,pG,{factor:2,absolute:0})})}),mG=rs(Ru,hG),AG=Tr.cloneMerge(Fu).cloneMerge(go).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})})}),bG={internal:{},payload:{primitiveName:E.String(),caip2:we.Caip2,ownChain:E.Object({blockNumber:we.BlockNumber()}),extrinsicIndex:E.Number()}},YC=20*1e3,xG=3,vG=AG.cloneMerge({required:E.Object({type:E.Literal(et.AVAIL_PARALLEL)}),optional:E.Object({...Jl(xG,YC,{absolute:YC})})}),EG=rs(Ru,bG),wG=Tr.cloneMerge(Fu).cloneMerge(go).cloneMerge({required:E.Object({indexer:E.String()}),optional:E.Object({indexerWS:we.Nullable(E.String(),{default:null}),stepSize:E.Number({default:1e3}),paginationLimit:E.Number({default:50})})}),IG={internal:{},payload:{primitiveName:E.String(),caip2:we.Caip2,ownChain:E.Object({blockNumber:we.BlockNumber()}),transactionHash:we.Midnight.TxHash}},SG=6*1e3,CG=3,OG=wG.cloneMerge({required:E.Object({type:E.Literal(et.MIDNIGHT_PARALLEL)}),optional:E.Object({...Jl(CG,SG,{absolute:2*1e3})})}),FG=rs(Ru,IG),RG=Tr.cloneMerge(Nh).cloneMerge({required:E.Object({name:E.String(),rpcUrl:E.String()}),optional:E.Object({})}),BG={internal:{},payload:{primitiveName:E.String(),caip2:we.Caip2,ownChain:E.Object({absoluteSlotNumber:we.AbsoluteSlotNumber()}),transactionHash:we.Cardano.TxHash}},TG=20*1e3,_G=5,MG=RG.cloneMerge({required:E.Object({type:E.Literal(et.CARDANO_UTXORPC_PARALLEL)}),optional:E.Object({...Jl(_G,TG,{factor:2,absolute:0})})}),DG=rs(Ru,BG);var ev=(e=>(e.EMULATED="emulated",e))(ev||{});const UG=new Cn({required:E.Object({name:E.String(),blockTimeMs:we.IntervalMs(),type:E.Literal(ev.EMULATED)}),optional:E.Object({})});ev.EMULATED+"";const PG=Tr.cloneMerge(Fu).cloneMerge(go).cloneMerge({required:E.Object({}),optional:E.Object({stepSize:E.Number({default:1e3})})}),jG={internal:{},payload:{ownChain:E.Object({blockNumber:we.BlockNumber()})}},NG=PG.cloneMerge({required:E.Object({type:E.Literal(et.NTP_MAIN)}),optional:E.Object({})}),LG=rs(jG);et.NTP_MAIN+"";et.EVM_RPC_PARALLEL+"",et.CARDANO_CARP_PARALLEL+"",et.CARDANO_UTXORPC_PARALLEL+"",et.MINA_PARALLEL+"",et.AVAIL_PARALLEL+"",et.MIDNIGHT_PARALLEL+"";const qG={[et.NTP_MAIN]:LG,[et.EVM_RPC_PARALLEL]:rG,[et.CARDANO_CARP_PARALLEL]:lG,[et.CARDANO_UTXORPC_PARALLEL]:DG,[et.MINA_PARALLEL]:mG,[et.AVAIL_PARALLEL]:EG,[et.MIDNIGHT_PARALLEL]:FG};function $G(e,t){return E.Intersect([t,E.Object({name:E.String(),type:E.Literal(e)})])}Object.entries(qG).map(([e,t])=>$G(e,t));var Ne=(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))(Ne||{});et.AVAIL_PARALLEL;et.CARDANO_CARP_PARALLEL,et.CARDANO_CARP_PARALLEL,et.CARDANO_CARP_PARALLEL,et.CARDANO_CARP_PARALLEL,et.CARDANO_CARP_PARALLEL;et.CARDANO_UTXORPC_PARALLEL;et.EVM_RPC_PARALLEL,et.EVM_RPC_PARALLEL,et.EVM_RPC_PARALLEL,et.EVM_RPC_PARALLEL,et.EVM_RPC_PARALLEL,et.EVM_RPC_PARALLEL,et.EVM_RPC_PARALLEL;et.MINA_PARALLEL,et.MINA_PARALLEL;et.MIDNIGHT_PARALLEL;const is=Tr.cloneMerge(go).cloneMerge(Zz);is.cloneMerge({required:E.Object({type:E.Literal(Ne.EvmRpcPaimaL2),contractAddress:we.Evm.Address}),optional:E.Object({})});is.cloneMerge({required:E.Object({type:E.Literal(Ne.EvmRpcERC20),contractAddress:we.Evm.Address}),optional:E.Object({scheduledPrefix:E.String()})});const kG=is.cloneMerge({required:E.Object({type:E.Literal(Ne.EvmRpcERC721),contractAddress:we.Evm.Address,scheduledPrefix:E.String(),burnScheduledPrefix:E.Optional(E.String())}),optional:E.Object({})});is.cloneMerge({required:E.Object({type:E.Literal(Ne.EvmRpcERC1155),contractAddress:we.Evm.Address,scheduledPrefix:E.Optional(E.String()),burnScheduledPrefix:E.Optional(E.String())}),optional:E.Object({})});const HG=is.cloneMerge({required:E.Object({type:E.Literal(Ne.EvmRpcGeneric),contractAddress:we.Evm.Address,abi:we.EvmAbiEvent,scheduledPrefix:E.String()}),optional:E.Object({})});is.cloneMerge({required:E.Object({type:E.Literal(Ne.EvmRpcERC6551Registry),contractAddress:E.Optional(we.Evm.Address),implementation:E.Optional(we.Evm.Address),tokenContract:E.Optional(we.Evm.Address),tokenId:E.Optional(we.Uint256),salt:E.Optional(we.Uint256)}),optional:E.Object({})});is.cloneMerge({required:E.Object({type:E.Literal(Ne.EvmRpcDynamicPrimitive),contractAddress:we.Evm.Address,abi:we.EvmAbiEvent,targetConfig:E.Union([E.Omit(kG.allProperties(!1),["name","startBlockHeight","stopBlockHeight","contractAddress"]),E.Omit(HG.allProperties(!1),["name","startBlockHeight","stopBlockHeight","contractAddress"])]),dynamicFields:E.Object({contractAddress:we.Evm.Address})}),optional:E.Object({})});const Wl=Tr.cloneMerge(Nh);Wl.cloneMerge({required:E.Object({type:E.Literal(Ne.CardanoCarpDelegation),pools:E.Array(we.Cardano.PoolId),scheduledPrefix:E.String()}),optional:E.Object({})});Wl.cloneMerge({required:E.Object({type:E.Literal(Ne.CardanoCarpProjectedNFT),scheduledPrefix:E.Optional(E.String())}),optional:E.Object({})});Wl.cloneMerge({required:E.Object({type:E.Literal(Ne.CardanoCarpDelayedAsset),fingerprints:E.Optional(E.Array(we.Cardano.Cip14Fingerprint)),policyIds:E.Optional(E.Array(we.Cardano.PolicyId))}),optional:E.Object({})});Wl.cloneMerge({required:E.Object({type:E.Literal(Ne.CardanoCarpTransfer),credential:we.Cardano.Credential,scheduledPrefix:E.String()}),optional:E.Object({})});Wl.cloneMerge({required:E.Object({type:E.Literal(Ne.CardanoCarpMintBurn),policyIds:E.Array(we.Cardano.PolicyId),scheduledPrefix:E.String()}),optional:E.Object({})});const zG=Tr.cloneMerge(Nh);zG.cloneMerge({required:E.Object({type:E.Literal(Ne.CardanoUtxorpcMatchTx),scheduledPrefix:E.String()}),optional:E.Object({})});const v_=Tr.cloneMerge(go);v_.cloneMerge({required:E.Object({type:E.Literal(Ne.MinaEventGeneric),address:we.Mina.Address,scheduledPrefix:E.String(),name:E.String()}),optional:E.Object({})});v_.cloneMerge({required:E.Object({type:E.Literal(Ne.MinaActionGeneric),address:we.Mina.Address,scheduledPrefix:E.String(),name:E.String()}),optional:E.Object({})});const GG=Tr.cloneMerge(go);GG.cloneMerge({required:E.Object({type:E.Literal(Ne.MidnightContractState),contractAddress:we.Midnight.Address,scheduledPrefix:E.String()}),optional:E.Object({})});const QG=Tr.cloneMerge(go);QG.cloneMerge({required:E.Object({type:E.Literal(Ne.AvailPaimaL2),contractAddress:we.Avail.Address,appId:E.Number()}),optional:E.Object({})});var rn=(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))(rn||{});const KG=E.Object({inputData:we.UnknownFormat,suppliedValue:we.Uint256,inputNonce:we.HexString0x()});E.Object({primitive:E.Literal(Ne.AvailPaimaL2),payloadType:E.Literal(rn.Event),payload:KG});var Ba={},eo={},Cd={exports:{}},n0,XC;function E_(){return XC||(XC=1,n0=function(t,r){return function(){for(var s=new Array(arguments.length),c=0;c<s.length;c++)s[c]=arguments[c];return t.apply(r,s)}}),n0}var r0,ZC;function Nn(){if(ZC)return r0;ZC=1;var e=E_(),t=Object.prototype.toString,r=(function(O){return function(re){var he=t.call(re);return O[he]||(O[he]=he.slice(8,-1).toLowerCase())}})(Object.create(null));function o(O){return O=O.toLowerCase(),function(he){return r(he)===O}}function s(O){return Array.isArray(O)}function c(O){return typeof O>"u"}function l(O){return O!==null&&!c(O)&&O.constructor!==null&&!c(O.constructor)&&typeof O.constructor.isBuffer=="function"&&O.constructor.isBuffer(O)}var f=o("ArrayBuffer");function p(O){var re;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?re=ArrayBuffer.isView(O):re=O&&O.buffer&&f(O.buffer),re}function h(O){return typeof O=="string"}function A(O){return typeof O=="number"}function v(O){return O!==null&&typeof O=="object"}function x(O){if(r(O)!=="object")return!1;var re=Object.getPrototypeOf(O);return re===null||re===Object.prototype}var S=o("Date"),R=o("File"),U=o("Blob"),T=o("FileList");function _(O){return t.call(O)==="[object Function]"}function M(O){return v(O)&&_(O.pipe)}function D(O){var re="[object FormData]";return O&&(typeof FormData=="function"&&O instanceof FormData||t.call(O)===re||_(O.toString)&&O.toString()===re)}var $=o("URLSearchParams");function P(O){return O.trim?O.trim():O.replace(/^\s+|\s+$/g,"")}function Y(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function ne(O,re){if(!(O===null||typeof O>"u"))if(typeof O!="object"&&(O=[O]),s(O))for(var he=0,W=O.length;he<W;he++)re.call(null,O[he],he,O);else for(var C in O)Object.prototype.hasOwnProperty.call(O,C)&&re.call(null,O[C],C,O)}function te(){var O={};function re(C,X){x(O[X])&&x(C)?O[X]=te(O[X],C):x(C)?O[X]=te({},C):s(C)?O[X]=C.slice():O[X]=C}for(var he=0,W=arguments.length;he<W;he++)ne(arguments[he],re);return O}function B(O,re,he){return ne(re,function(C,X){he&&typeof C=="function"?O[X]=e(C,he):O[X]=C}),O}function L(O){return O.charCodeAt(0)===65279&&(O=O.slice(1)),O}function z(O,re,he,W){O.prototype=Object.create(re.prototype,W),O.prototype.constructor=O,he&&Object.assign(O.prototype,he)}function H(O,re,he){var W,C,X,ue={};re=re||{};do{for(W=Object.getOwnPropertyNames(O),C=W.length;C-- >0;)X=W[C],ue[X]||(re[X]=O[X],ue[X]=!0);O=Object.getPrototypeOf(O)}while(O&&(!he||he(O,re))&&O!==Object.prototype);return re}function ie(O,re,he){O=String(O),(he===void 0||he>O.length)&&(he=O.length),he-=re.length;var W=O.indexOf(re,he);return W!==-1&&W===he}function de(O){if(!O)return null;var re=O.length;if(c(re))return null;for(var he=new Array(re);re-- >0;)he[re]=O[re];return he}var Ae=(function(O){return function(re){return O&&re instanceof O}})(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array));return r0={isArray:s,isArrayBuffer:f,isBuffer:l,isFormData:D,isArrayBufferView:p,isString:h,isNumber:A,isObject:v,isPlainObject:x,isUndefined:c,isDate:S,isFile:R,isBlob:U,isFunction:_,isStream:M,isURLSearchParams:$,isStandardBrowserEnv:Y,forEach:ne,merge:te,extend:B,trim:P,stripBOM:L,inherits:z,toFlatObject:H,kindOf:r,kindOfTest:o,endsWith:ie,toArray:de,isTypedArray:Ae,isFileList:T},r0}var i0,JC;function w_(){if(JC)return i0;JC=1;var e=Nn();function t(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}return i0=function(o,s,c){if(!s)return o;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(S){e.isDate(S)?S=S.toISOString():e.isObject(S)&&(S=JSON.stringify(S)),f.push(t(v)+"="+t(S))}))}),l=f.join("&")}if(l){var p=o.indexOf("#");p!==-1&&(o=o.slice(0,p)),o+=(o.indexOf("?")===-1?"?":"&")+l}return o},i0}var o0,WC;function VG(){if(WC)return o0;WC=1;var e=Nn();function t(){this.handlers=[]}return t.prototype.use=function(o,s,c){return this.handlers.push({fulfilled:o,rejected:s,synchronous:c?c.synchronous:!1,runWhen:c?c.runWhen:null}),this.handlers.length-1},t.prototype.eject=function(o){this.handlers[o]&&(this.handlers[o]=null)},t.prototype.forEach=function(o){e.forEach(this.handlers,function(c){c!==null&&o(c)})},o0=t,o0}var a0,eO;function YG(){if(eO)return a0;eO=1;var e=Nn();return a0=function(r,o){e.forEach(r,function(c,l){l!==o&&l.toUpperCase()===o.toUpperCase()&&(r[o]=c,delete r[l])})},a0}var s0,tO;function Bu(){if(tO)return s0;tO=1;var e=Nn();function t(s,c,l,f,p){Error.call(this),this.message=s,this.name="AxiosError",c&&(this.code=c),l&&(this.config=l),f&&(this.request=f),p&&(this.response=p)}e.inherits(t,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var r=t.prototype,o={};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){o[s]={value:s}}),Object.defineProperties(t,o),Object.defineProperty(r,"isAxiosError",{value:!0}),t.from=function(s,c,l,f,p,h){var A=Object.create(r);return e.toFlatObject(s,A,function(x){return x!==Error.prototype}),t.call(A,s.message,c,l,f,p),A.name=s.name,h&&Object.assign(A,h),A},s0=t,s0}var u0,nO;function I_(){return nO||(nO=1,u0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}),u0}var c0,rO;function S_(){if(rO)return c0;rO=1;var e=Nn();function t(r,o){o=o||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]):tn.Buffer.from(f):f}function l(f,p){if(e.isPlainObject(f)||e.isArray(f)){if(s.indexOf(f)!==-1)throw Error("Circular reference detected in "+p);s.push(f),e.forEach(f,function(A,v){if(!e.isUndefined(A)){var x=p?p+"."+v:v,S;if(A&&!p&&typeof A=="object"){if(e.endsWith(v,"{}"))A=JSON.stringify(A);else if(e.endsWith(v,"[]")&&(S=e.toArray(A))){S.forEach(function(R){!e.isUndefined(R)&&o.append(x,c(R))});return}}l(A,x)}}),s.pop()}else o.append(p,c(f))}return l(r),o}return c0=t,c0}var l0,iO;function XG(){if(iO)return l0;iO=1;var e=Bu();return l0=function(r,o,s){var c=s.config.validateStatus;!s.status||!c||c(s.status)?r(s):o(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))},l0}var f0,oO;function ZG(){if(oO)return f0;oO=1;var e=Nn();return f0=e.isStandardBrowserEnv()?(function(){return{write:function(o,s,c,l,f,p){var h=[];h.push(o+"="+encodeURIComponent(s)),e.isNumber(c)&&h.push("expires="+new Date(c).toGMTString()),e.isString(l)&&h.push("path="+l),e.isString(f)&&h.push("domain="+f),p===!0&&h.push("secure"),document.cookie=h.join("; ")},read:function(o){var s=document.cookie.match(new RegExp("(^|;\\s*)("+o+")=([^;]*)"));return s?decodeURIComponent(s[3]):null},remove:function(o){this.write(o,"",Date.now()-864e5)}}})():(function(){return{write:function(){},read:function(){return null},remove:function(){}}})(),f0}var d0,aO;function JG(){return aO||(aO=1,d0=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),d0}var h0,sO;function WG(){return sO||(sO=1,h0=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}),h0}var p0,uO;function C_(){if(uO)return p0;uO=1;var e=JG(),t=WG();return p0=function(o,s){return o&&!e(s)?t(o,s):s},p0}var y0,cO;function eQ(){if(cO)return y0;cO=1;var e=Nn(),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 y0=function(o){var s={},c,l,f;return o&&e.forEach(o.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},y0}var g0,lO;function tQ(){if(lO)return g0;lO=1;var e=Nn();return g0=e.isStandardBrowserEnv()?(function(){var r=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a"),s;function c(l){var f=l;return r&&(o.setAttribute("href",f),f=o.href),o.setAttribute("href",f),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:o.pathname.charAt(0)==="/"?o.pathname:"/"+o.pathname}}return s=c(window.location.href),function(f){var p=e.isString(f)?c(f):f;return p.protocol===s.protocol&&p.host===s.host}})():(function(){return function(){return!0}})(),g0}var m0,fO;function Lh(){if(fO)return m0;fO=1;var e=Bu(),t=Nn();function r(o){e.call(this,o??"canceled",e.ERR_CANCELED),this.name="CanceledError"}return t.inherits(r,e,{__CANCEL__:!0}),m0=r,m0}var A0,dO;function nQ(){return dO||(dO=1,A0=function(t){var r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return r&&r[1]||""}),A0}var b0,hO;function pO(){if(hO)return b0;hO=1;var e=Nn(),t=XG(),r=ZG(),o=w_(),s=C_(),c=eQ(),l=tQ(),f=I_(),p=Bu(),h=Lh(),A=nQ();return b0=function(x){return new Promise(function(R,U){var T=x.data,_=x.headers,M=x.responseType,D;function $(){x.cancelToken&&x.cancelToken.unsubscribe(D),x.signal&&x.signal.removeEventListener("abort",D)}e.isFormData(T)&&e.isStandardBrowserEnv()&&delete _["Content-Type"];var P=new XMLHttpRequest;if(x.auth){var Y=x.auth.username||"",ne=x.auth.password?unescape(encodeURIComponent(x.auth.password)):"";_.Authorization="Basic "+btoa(Y+":"+ne)}var te=s(x.baseURL,x.url);P.open(x.method.toUpperCase(),o(te,x.params,x.paramsSerializer),!0),P.timeout=x.timeout;function B(){if(P){var H="getAllResponseHeaders"in P?c(P.getAllResponseHeaders()):null,ie=!M||M==="text"||M==="json"?P.responseText:P.response,de={data:ie,status:P.status,statusText:P.statusText,headers:H,config:x,request:P};t(function(O){R(O),$()},function(O){U(O),$()},de),P=null}}if("onloadend"in P?P.onloadend=B:P.onreadystatechange=function(){!P||P.readyState!==4||P.status===0&&!(P.responseURL&&P.responseURL.indexOf("file:")===0)||setTimeout(B)},P.onabort=function(){P&&(U(new p("Request aborted",p.ECONNABORTED,x,P)),P=null)},P.onerror=function(){U(new p("Network Error",p.ERR_NETWORK,x,P,P)),P=null},P.ontimeout=function(){var ie=x.timeout?"timeout of "+x.timeout+"ms exceeded":"timeout exceeded",de=x.transitional||f;x.timeoutErrorMessage&&(ie=x.timeoutErrorMessage),U(new p(ie,de.clarifyTimeoutError?p.ETIMEDOUT:p.ECONNABORTED,x,P)),P=null},e.isStandardBrowserEnv()){var L=(x.withCredentials||l(te))&&x.xsrfCookieName?r.read(x.xsrfCookieName):void 0;L&&(_[x.xsrfHeaderName]=L)}"setRequestHeader"in P&&e.forEach(_,function(ie,de){typeof T>"u"&&de.toLowerCase()==="content-type"?delete _[de]:P.setRequestHeader(de,ie)}),e.isUndefined(x.withCredentials)||(P.withCredentials=!!x.withCredentials),M&&M!=="json"&&(P.responseType=x.responseType),typeof x.onDownloadProgress=="function"&&P.addEventListener("progress",x.onDownloadProgress),typeof x.onUploadProgress=="function"&&P.upload&&P.upload.addEventListener("progress",x.onUploadProgress),(x.cancelToken||x.signal)&&(D=function(H){P&&(U(!H||H&&H.type?new h:H),P.abort(),P=null)},x.cancelToken&&x.cancelToken.subscribe(D),x.signal&&(x.signal.aborted?D():x.signal.addEventListener("abort",D))),T||(T=null);var z=A(te);if(z&&["http","https","file"].indexOf(z)===-1){U(new p("Unsupported protocol "+z+":",p.ERR_BAD_REQUEST,x));return}P.send(T)})},b0}var x0,yO;function rQ(){return yO||(yO=1,x0=null),x0}var v0,gO;function tv(){if(gO)return v0;gO=1;var e=Nn(),t=YG(),r=Bu(),o=I_(),s=S_(),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 st<"u"&&Object.prototype.toString.call(st)==="[object process]")&&(A=pO()),A}function p(A,v,x){if(e.isString(A))try{return(v||JSON.parse)(A),e.trim(A)}catch(S){if(S.name!=="SyntaxError")throw S}return(x||JSON.stringify)(A)}var h={transitional:o,adapter:f(),transformRequest:[function(v,x){if(t(x,"Accept"),t(x,"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(x,"application/x-www-form-urlencoded;charset=utf-8"),v.toString();var S=e.isObject(v),R=x&&x["Content-Type"],U;if((U=e.isFileList(v))||S&&R==="multipart/form-data"){var T=this.env&&this.env.FormData;return s(U?{"files[]":v}:v,T&&new T)}else if(S||R==="application/json")return l(x,"application/json"),p(v);return v}],transformResponse:[function(v){var x=this.transitional||h.transitional,S=x&&x.silentJSONParsing,R=x&&x.forcedJSONParsing,U=!S&&this.responseType==="json";if(U||R&&e.isString(v)&&v.length)try{return JSON.parse(v)}catch(T){if(U)throw T.name==="SyntaxError"?r.from(T,r.ERR_BAD_RESPONSE,this,null,this.response):T}return v}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:rQ()},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)}),v0=h,v0}var E0,mO;function iQ(){if(mO)return E0;mO=1;var e=Nn(),t=tv();return E0=function(o,s,c){var l=this||t;return e.forEach(c,function(p){o=p.call(l,o,s)}),o},E0}var w0,AO;function O_(){return AO||(AO=1,w0=function(t){return!!(t&&t.__CANCEL__)}),w0}var I0,bO;function oQ(){if(bO)return I0;bO=1;var e=Nn(),t=iQ(),r=O_(),o=tv(),s=Lh();function c(l){if(l.cancelToken&&l.cancelToken.throwIfRequested(),l.signal&&l.signal.aborted)throw new s}return I0=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 p=f.adapter||o.adapter;return p(f).then(function(A){return c(f),A.data=t.call(f,A.data,A.headers,f.transformResponse),A},function(A){return r(A)||(c(f),A&&A.response&&(A.response.data=t.call(f,A.response.data,A.response.headers,f.transformResponse))),Promise.reject(A)})},I0}var S0,xO;function F_(){if(xO)return S0;xO=1;var e=Nn();return S0=function(r,o){o=o||{};var s={};function c(v,x){return e.isPlainObject(v)&&e.isPlainObject(x)?e.merge(v,x):e.isPlainObject(x)?e.merge({},x):e.isArray(x)?x.slice():x}function l(v){if(e.isUndefined(o[v])){if(!e.isUndefined(r[v]))return c(void 0,r[v])}else return c(r[v],o[v])}function f(v){if(!e.isUndefined(o[v]))return c(void 0,o[v])}function p(v){if(e.isUndefined(o[v])){if(!e.isUndefined(r[v]))return c(void 0,r[v])}else return c(void 0,o[v])}function h(v){if(v in o)return c(r[v],o[v]);if(v in r)return c(void 0,r[v])}var A={url:f,method:f,data:f,baseURL:p,transformRequest:p,transformResponse:p,paramsSerializer:p,timeout:p,timeoutMessage:p,withCredentials:p,adapter:p,responseType:p,xsrfCookieName:p,xsrfHeaderName:p,onUploadProgress:p,onDownloadProgress:p,decompress:p,maxContentLength:p,maxBodyLength:p,beforeRedirect:p,transport:p,httpAgent:p,httpsAgent:p,cancelToken:p,socketPath:p,responseEncoding:p,validateStatus:h};return e.forEach(Object.keys(r).concat(Object.keys(o)),function(x){var S=A[x]||l,R=S(x);e.isUndefined(R)&&S!==h||(s[x]=R)}),s},S0}var C0,vO;function R_(){return vO||(vO=1,C0={version:"0.27.2"}),C0}var O0,EO;function aQ(){if(EO)return O0;EO=1;var e=R_().version,t=Bu(),r={};["object","boolean","number","function","string","symbol"].forEach(function(c,l){r[c]=function(p){return typeof p===c||"a"+(l<1?"n ":" ")+c}});var o={};r.transitional=function(l,f,p){function h(A,v){return"[Axios v"+e+"] Transitional option '"+A+"'"+v+(p?". "+p:"")}return function(A,v,x){if(l===!1)throw new t(h(v," has been removed"+(f?" in "+f:"")),t.ERR_DEPRECATED);return f&&!o[v]&&(o[v]=!0,console.warn(h(v," has been deprecated since v"+f+" and will be removed in the near future"))),l?l(A,v,x):!0}};function s(c,l,f){if(typeof c!="object")throw new t("options must be an object",t.ERR_BAD_OPTION_VALUE);for(var p=Object.keys(c),h=p.length;h-- >0;){var A=p[h],v=l[A];if(v){var x=c[A],S=x===void 0||v(x,A,c);if(S!==!0)throw new t("option "+A+" must be "+S,t.ERR_BAD_OPTION_VALUE);continue}if(f!==!0)throw new t("Unknown option "+A,t.ERR_BAD_OPTION)}}return O0={assertOptions:s,validators:r},O0}var F0,wO;function sQ(){if(wO)return F0;wO=1;var e=Nn(),t=w_(),r=VG(),o=oQ(),s=F_(),c=C_(),l=aQ(),f=l.validators;function p(h){this.defaults=h,this.interceptors={request:new r,response:new r}}return p.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 x=v.transitional;x!==void 0&&l.assertOptions(x,{silentJSONParsing:f.transitional(f.boolean),forcedJSONParsing:f.transitional(f.boolean),clarifyTimeoutError:f.transitional(f.boolean)},!1);var S=[],R=!0;this.interceptors.request.forEach(function(Y){typeof Y.runWhen=="function"&&Y.runWhen(v)===!1||(R=R&&Y.synchronous,S.unshift(Y.fulfilled,Y.rejected))});var U=[];this.interceptors.response.forEach(function(Y){U.push(Y.fulfilled,Y.rejected)});var T;if(!R){var _=[o,void 0];for(Array.prototype.unshift.apply(_,S),_=_.concat(U),T=Promise.resolve(v);_.length;)T=T.then(_.shift(),_.shift());return T}for(var M=v;S.length;){var D=S.shift(),$=S.shift();try{M=D(M)}catch(P){$(P);break}}try{T=o(M)}catch(P){return Promise.reject(P)}for(;U.length;)T=T.then(U.shift(),U.shift());return T},p.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){p.prototype[A]=function(v,x){return this.request(s(x||{},{method:A,url:v,data:(x||{}).data}))}}),e.forEach(["post","put","patch"],function(A){function v(x){return function(R,U,T){return this.request(s(T||{},{method:A,headers:x?{"Content-Type":"multipart/form-data"}:{},url:R,data:U}))}}p.prototype[A]=v(),p.prototype[A+"Form"]=v(!0)}),F0=p,F0}var R0,IO;function uQ(){if(IO)return R0;IO=1;var e=Lh();function t(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var o;this.promise=new Promise(function(l){o=l});var s=this;this.promise.then(function(c){if(s._listeners){var l,f=s._listeners.length;for(l=0;l<f;l++)s._listeners[l](c);s._listeners=null}}),this.promise.then=function(c){var l,f=new Promise(function(p){s.subscribe(p),l=p}).then(c);return f.cancel=function(){s.unsubscribe(l)},f},r(function(l){s.reason||(s.reason=new e(l),o(s.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.prototype.subscribe=function(o){if(this.reason){o(this.reason);return}this._listeners?this._listeners.push(o):this._listeners=[o]},t.prototype.unsubscribe=function(o){if(this._listeners){var s=this._listeners.indexOf(o);s!==-1&&this._listeners.splice(s,1)}},t.source=function(){var o,s=new t(function(l){o=l});return{token:s,cancel:o}},R0=t,R0}var B0,SO;function cQ(){return SO||(SO=1,B0=function(t){return function(o){return t.apply(null,o)}}),B0}var T0,CO;function lQ(){if(CO)return T0;CO=1;var e=Nn();return T0=function(r){return e.isObject(r)&&r.isAxiosError===!0},T0}var OO;function fQ(){if(OO)return Cd.exports;OO=1;var e=Nn(),t=E_(),r=sQ(),o=F_(),s=tv();function c(f){var p=new r(f),h=t(r.prototype.request,p);return e.extend(h,r.prototype,p),e.extend(h,p),h.create=function(v){return c(o(f,v))},h}var l=c(s);return l.Axios=r,l.CanceledError=Lh(),l.CancelToken=uQ(),l.isCancel=O_(),l.VERSION=R_().version,l.toFormData=S_(),l.AxiosError=Bu(),l.Cancel=l.CanceledError,l.all=function(p){return Promise.all(p)},l.spread=cQ(),l.isAxiosError=lQ(),Cd.exports=l,Cd.exports.default=l,Cd.exports}var _0,FO;function dQ(){return FO||(FO=1,_0=fQ()),_0}var RO;function B_(){if(RO)return eo;RO=1;var e=eo&&eo.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.getErrorResponse=eo.query=void 0;const t=e(dQ());async function r(s,c,l){return(await t.default.post(`${s}/${c}`,l)).data}eo.query=r;function o(s){if(s.response==null)throw new Error("Unexpected null response");return s.response}return eo.getErrorResponse=o,eo}var Kn={},M0={},BO;function T_(){return BO||(BO=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={}))})(M0)),M0}var D0,TO;function hQ(){if(TO)return D0;TO=1;function e(t,r,o){var s=-1,c=t.length;r<0&&(r=-r>c?0:c+r),o=o>c?c:o,o<0&&(o+=c),c=r>o?0:o-r>>>0,r>>>=0;for(var l=Array(c);++s<c;)l[s]=t[s+r];return l}return D0=e,D0}var U0,_O;function qh(){if(_O)return U0;_O=1;function e(t,r){return t===r||t!==t&&r!==r}return U0=e,U0}var P0,MO;function __(){if(MO)return P0;MO=1;var e=typeof oo=="object"&&oo&&oo.Object===Object&&oo;return P0=e,P0}var j0,DO;function Tu(){if(DO)return j0;DO=1;var e=__(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return j0=r,j0}var N0,UO;function M_(){if(UO)return N0;UO=1;var e=Tu(),t=e.Symbol;return N0=t,N0}var L0,PO;function pQ(){if(PO)return L0;PO=1;var e=M_(),t=Object.prototype,r=t.hasOwnProperty,o=t.toString,s=e?e.toStringTag:void 0;function c(l){var f=r.call(l,s),p=l[s];try{l[s]=void 0;var h=!0}catch{}var A=o.call(l);return h&&(f?l[s]=p:delete l[s]),A}return L0=c,L0}var q0,jO;function yQ(){if(jO)return q0;jO=1;var e=Object.prototype,t=e.toString;function r(o){return t.call(o)}return q0=r,q0}var $0,NO;function ef(){if(NO)return $0;NO=1;var e=M_(),t=pQ(),r=yQ(),o="[object Null]",s="[object Undefined]",c=e?e.toStringTag:void 0;function l(f){return f==null?f===void 0?s:o:c&&c in Object(f)?t(f):r(f)}return $0=l,$0}var k0,LO;function oa(){if(LO)return k0;LO=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return k0=e,k0}var H0,qO;function nv(){if(qO)return H0;qO=1;var e=ef(),t=oa(),r="[object AsyncFunction]",o="[object Function]",s="[object GeneratorFunction]",c="[object Proxy]";function l(f){if(!t(f))return!1;var p=e(f);return p==o||p==s||p==r||p==c}return H0=l,H0}var z0,$O;function D_(){if($O)return z0;$O=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return z0=t,z0}var G0,kO;function rv(){if(kO)return G0;kO=1;var e=nv(),t=D_();function r(o){return o!=null&&t(o.length)&&!e(o)}return G0=r,G0}var Q0,HO;function U_(){if(HO)return Q0;HO=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(o,s){var c=typeof o;return s=s??e,!!s&&(c=="number"||c!="symbol"&&t.test(o))&&o>-1&&o%1==0&&o<s}return Q0=r,Q0}var K0,zO;function P_(){if(zO)return K0;zO=1;var e=qh(),t=rv(),r=U_(),o=oa();function s(c,l,f){if(!o(f))return!1;var p=typeof l;return(p=="number"?t(f)&&r(l,f.length):p=="string"&&l in f)?e(f[l],c):!1}return K0=s,K0}var V0,GO;function gQ(){if(GO)return V0;GO=1;var e=/\s/;function t(r){for(var o=r.length;o--&&e.test(r.charAt(o)););return o}return V0=t,V0}var Y0,QO;function mQ(){if(QO)return Y0;QO=1;var e=gQ(),t=/^\s+/;function r(o){return o&&o.slice(0,e(o)+1).replace(t,"")}return Y0=r,Y0}var X0,KO;function _u(){if(KO)return X0;KO=1;function e(t){return t!=null&&typeof t=="object"}return X0=e,X0}var Z0,VO;function AQ(){if(VO)return Z0;VO=1;var e=ef(),t=_u(),r="[object Symbol]";function o(s){return typeof s=="symbol"||t(s)&&e(s)==r}return Z0=o,Z0}var J0,YO;function bQ(){if(YO)return J0;YO=1;var e=mQ(),t=oa(),r=AQ(),o=NaN,s=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,f=parseInt;function p(h){if(typeof h=="number")return h;if(r(h))return o;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)?o:+h}return J0=p,J0}var W0,XO;function xQ(){if(XO)return W0;XO=1;var e=bQ(),t=1/0,r=17976931348623157e292;function o(s){if(!s)return s===0?s:0;if(s=e(s),s===t||s===-t){var c=s<0?-1:1;return c*r}return s===s?s:0}return W0=o,W0}var eA,ZO;function vQ(){if(ZO)return eA;ZO=1;var e=xQ();function t(r){var o=e(r),s=o%1;return o===o?s?o-s:o:0}return eA=t,eA}var tA,JO;function EQ(){if(JO)return tA;JO=1;var e=hQ(),t=P_(),r=vQ(),o=Math.ceil,s=Math.max;function c(l,f,p){(p?t(l,f,p):f===void 0)?f=1:f=s(r(f),0);var h=l==null?0:l.length;if(!h||f<1)return[];for(var A=0,v=0,x=Array(o(h/f));A<h;)x[v++]=e(l,A,A+=f);return x}return tA=c,tA}var Bt={},WO;function j_(){return WO||(WO=1,Object.defineProperty(Bt,"__esModule",{value:!0}),Bt.GOVERNANCE_VOTES_BY_GOV_IDS_LIMIT=Bt.GOVERNANCE_VOTES_LIMIT=Bt.MINT_BURN_HISTORY_LIMIT=Bt.ASSET_UTXOS_LIMIT=Bt.POOL_DELEGATION_LIMIT=Bt.PROJECTED_NFT_LIMIT=Bt.DEX_PRICE_LIMIT=Bt.BLOCK_LIMIT=Bt.CREDENTIAL_LIMIT=Bt.ASSET_LIMIT=Bt.UTXO_LIMIT=Bt.ADDRESS_LIMIT=void 0,Bt.ADDRESS_LIMIT={REQUEST:100,RESPONSE:1e3},Bt.UTXO_LIMIT={REQUEST:100,RESPONSE:1e3},Bt.ASSET_LIMIT={REQUEST:1e3,RESPONSE:1e3},Bt.CREDENTIAL_LIMIT={REQUEST:50,RESPONSE:50},Bt.BLOCK_LIMIT={OFFSET:21600},Bt.DEX_PRICE_LIMIT={REQUEST_ADDRESSES:100,REQUEST_ASSET_PAIRS:100,RESPONSE:1e3},Bt.PROJECTED_NFT_LIMIT={DEFAULT_PAGE_SIZE:50},Bt.POOL_DELEGATION_LIMIT={POOLS:50,DEFAULT_PAGE_SIZE:50},Bt.ASSET_UTXOS_LIMIT={ASSETS:50,DEFAULT_PAGE_SIZE:50},Bt.MINT_BURN_HISTORY_LIMIT={DEFAULT_PAGE_SIZE:50},Bt.GOVERNANCE_VOTES_LIMIT={DEFAULT_PAGE_SIZE:50},Bt.GOVERNANCE_VOTES_BY_GOV_IDS_LIMIT={MAX_ACTION_IDS:50}),Bt}var nA,eF;function wQ(){if(eF)return nA;eF=1;function e(){this.__data__=[],this.size=0}return nA=e,nA}var rA,tF;function $h(){if(tF)return rA;tF=1;var e=qh();function t(r,o){for(var s=r.length;s--;)if(e(r[s][0],o))return s;return-1}return rA=t,rA}var iA,nF;function IQ(){if(nF)return iA;nF=1;var e=$h(),t=Array.prototype,r=t.splice;function o(s){var c=this.__data__,l=e(c,s);if(l<0)return!1;var f=c.length-1;return l==f?c.pop():r.call(c,l,1),--this.size,!0}return iA=o,iA}var oA,rF;function SQ(){if(rF)return oA;rF=1;var e=$h();function t(r){var o=this.__data__,s=e(o,r);return s<0?void 0:o[s][1]}return oA=t,oA}var aA,iF;function CQ(){if(iF)return aA;iF=1;var e=$h();function t(r){return e(this.__data__,r)>-1}return aA=t,aA}var sA,oF;function OQ(){if(oF)return sA;oF=1;var e=$h();function t(r,o){var s=this.__data__,c=e(s,r);return c<0?(++this.size,s.push([r,o])):s[c][1]=o,this}return sA=t,sA}var uA,aF;function kh(){if(aF)return uA;aF=1;var e=wQ(),t=IQ(),r=SQ(),o=CQ(),s=OQ();function c(l){var f=-1,p=l==null?0:l.length;for(this.clear();++f<p;){var h=l[f];this.set(h[0],h[1])}}return c.prototype.clear=e,c.prototype.delete=t,c.prototype.get=r,c.prototype.has=o,c.prototype.set=s,uA=c,uA}var cA,sF;function FQ(){if(sF)return cA;sF=1;var e=kh();function t(){this.__data__=new e,this.size=0}return cA=t,cA}var lA,uF;function RQ(){if(uF)return lA;uF=1;function e(t){var r=this.__data__,o=r.delete(t);return this.size=r.size,o}return lA=e,lA}var fA,cF;function BQ(){if(cF)return fA;cF=1;function e(t){return this.__data__.get(t)}return fA=e,fA}var dA,lF;function TQ(){if(lF)return dA;lF=1;function e(t){return this.__data__.has(t)}return dA=e,dA}var hA,fF;function _Q(){if(fF)return hA;fF=1;var e=Tu(),t=e["__core-js_shared__"];return hA=t,hA}var pA,dF;function MQ(){if(dF)return pA;dF=1;var e=_Q(),t=(function(){var o=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""})();function r(o){return!!t&&t in o}return pA=r,pA}var yA,hF;function DQ(){if(hF)return yA;hF=1;var e=Function.prototype,t=e.toString;function r(o){if(o!=null){try{return t.call(o)}catch{}try{return o+""}catch{}}return""}return yA=r,yA}var gA,pF;function UQ(){if(pF)return gA;pF=1;var e=nv(),t=MQ(),r=oa(),o=DQ(),s=/[\\^$.*+?()[\]{}|]/g,c=/^\[object .+?Constructor\]$/,l=Function.prototype,f=Object.prototype,p=l.toString,h=f.hasOwnProperty,A=RegExp("^"+p.call(h).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function v(x){if(!r(x)||t(x))return!1;var S=e(x)?A:c;return S.test(o(x))}return gA=v,gA}var mA,yF;function PQ(){if(yF)return mA;yF=1;function e(t,r){return t==null?void 0:t[r]}return mA=e,mA}var AA,gF;function iv(){if(gF)return AA;gF=1;var e=UQ(),t=PQ();function r(o,s){var c=t(o,s);return e(c)?c:void 0}return AA=r,AA}var bA,mF;function N_(){if(mF)return bA;mF=1;var e=iv(),t=Tu(),r=e(t,"Map");return bA=r,bA}var xA,AF;function Hh(){if(AF)return xA;AF=1;var e=iv(),t=e(Object,"create");return xA=t,xA}var vA,bF;function jQ(){if(bF)return vA;bF=1;var e=Hh();function t(){this.__data__=e?e(null):{},this.size=0}return vA=t,vA}var EA,xF;function NQ(){if(xF)return EA;xF=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return EA=e,EA}var wA,vF;function LQ(){if(vF)return wA;vF=1;var e=Hh(),t="__lodash_hash_undefined__",r=Object.prototype,o=r.hasOwnProperty;function s(c){var l=this.__data__;if(e){var f=l[c];return f===t?void 0:f}return o.call(l,c)?l[c]:void 0}return wA=s,wA}var IA,EF;function qQ(){if(EF)return IA;EF=1;var e=Hh(),t=Object.prototype,r=t.hasOwnProperty;function o(s){var c=this.__data__;return e?c[s]!==void 0:r.call(c,s)}return IA=o,IA}var SA,wF;function $Q(){if(wF)return SA;wF=1;var e=Hh(),t="__lodash_hash_undefined__";function r(o,s){var c=this.__data__;return this.size+=this.has(o)?0:1,c[o]=e&&s===void 0?t:s,this}return SA=r,SA}var CA,IF;function kQ(){if(IF)return CA;IF=1;var e=jQ(),t=NQ(),r=LQ(),o=qQ(),s=$Q();function c(l){var f=-1,p=l==null?0:l.length;for(this.clear();++f<p;){var h=l[f];this.set(h[0],h[1])}}return c.prototype.clear=e,c.prototype.delete=t,c.prototype.get=r,c.prototype.has=o,c.prototype.set=s,CA=c,CA}var OA,SF;function HQ(){if(SF)return OA;SF=1;var e=kQ(),t=kh(),r=N_();function o(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return OA=o,OA}var FA,CF;function zQ(){if(CF)return FA;CF=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return FA=e,FA}var RA,OF;function zh(){if(OF)return RA;OF=1;var e=zQ();function t(r,o){var s=r.__data__;return e(o)?s[typeof o=="string"?"string":"hash"]:s.map}return RA=t,RA}var BA,FF;function GQ(){if(FF)return BA;FF=1;var e=zh();function t(r){var o=e(this,r).delete(r);return this.size-=o?1:0,o}return BA=t,BA}var TA,RF;function QQ(){if(RF)return TA;RF=1;var e=zh();function t(r){return e(this,r).get(r)}return TA=t,TA}var _A,BF;function KQ(){if(BF)return _A;BF=1;var e=zh();function t(r){return e(this,r).has(r)}return _A=t,_A}var MA,TF;function VQ(){if(TF)return MA;TF=1;var e=zh();function t(r,o){var s=e(this,r),c=s.size;return s.set(r,o),this.size+=s.size==c?0:1,this}return MA=t,MA}var DA,_F;function YQ(){if(_F)return DA;_F=1;var e=HQ(),t=GQ(),r=QQ(),o=KQ(),s=VQ();function c(l){var f=-1,p=l==null?0:l.length;for(this.clear();++f<p;){var h=l[f];this.set(h[0],h[1])}}return c.prototype.clear=e,c.prototype.delete=t,c.prototype.get=r,c.prototype.has=o,c.prototype.set=s,DA=c,DA}var UA,MF;function XQ(){if(MF)return UA;MF=1;var e=kh(),t=N_(),r=YQ(),o=200;function s(c,l){var f=this.__data__;if(f instanceof e){var p=f.__data__;if(!t||p.length<o-1)return p.push([c,l]),this.size=++f.size,this;f=this.__data__=new r(p)}return f.set(c,l),this.size=f.size,this}return UA=s,UA}var PA,DF;function ZQ(){if(DF)return PA;DF=1;var e=kh(),t=FQ(),r=RQ(),o=BQ(),s=TQ(),c=XQ();function l(f){var p=this.__data__=new e(f);this.size=p.size}return l.prototype.clear=t,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=s,l.prototype.set=c,PA=l,PA}var jA,UF;function L_(){if(UF)return jA;UF=1;var e=iv(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return jA=t,jA}var NA,PF;function ov(){if(PF)return NA;PF=1;var e=L_();function t(r,o,s){o=="__proto__"&&e?e(r,o,{configurable:!0,enumerable:!0,value:s,writable:!0}):r[o]=s}return NA=t,NA}var LA,jF;function q_(){if(jF)return LA;jF=1;var e=ov(),t=qh();function r(o,s,c){(c!==void 0&&!t(o[s],c)||c===void 0&&!(s in o))&&e(o,s,c)}return LA=r,LA}var qA,NF;function JQ(){if(NF)return qA;NF=1;function e(t){return function(r,o,s){for(var c=-1,l=Object(r),f=s(r),p=f.length;p--;){var h=f[t?p:++c];if(o(l[h],h,l)===!1)break}return r}}return qA=e,qA}var $A,LF;function WQ(){if(LF)return $A;LF=1;var e=JQ(),t=e();return $A=t,$A}var qc={exports:{}};qc.exports;var qF;function eK(){return qF||(qF=1,(function(e,t){var r=Tu(),o=t&&!t.nodeType&&t,s=o&&!0&&e&&!e.nodeType&&e,c=s&&s.exports===o,l=c?r.Buffer:void 0,f=l?l.allocUnsafe:void 0;function p(h,A){if(A)return h.slice();var v=h.length,x=f?f(v):new h.constructor(v);return h.copy(x),x}e.exports=p})(qc,qc.exports)),qc.exports}var kA,$F;function tK(){if($F)return kA;$F=1;var e=Tu(),t=e.Uint8Array;return kA=t,kA}var HA,kF;function nK(){if(kF)return HA;kF=1;var e=tK();function t(r){var o=new r.constructor(r.byteLength);return new e(o).set(new e(r)),o}return HA=t,HA}var zA,HF;function rK(){if(HF)return zA;HF=1;var e=nK();function t(r,o){var s=o?e(r.buffer):r.buffer;return new r.constructor(s,r.byteOffset,r.length)}return zA=t,zA}var GA,zF;function iK(){if(zF)return GA;zF=1;function e(t,r){var o=-1,s=t.length;for(r||(r=Array(s));++o<s;)r[o]=t[o];return r}return GA=e,GA}var QA,GF;function oK(){if(GF)return QA;GF=1;var e=oa(),t=Object.create,r=(function(){function o(){}return function(s){if(!e(s))return{};if(t)return t(s);o.prototype=s;var c=new o;return o.prototype=void 0,c}})();return QA=r,QA}var KA,QF;function aK(){if(QF)return KA;QF=1;function e(t,r){return function(o){return t(r(o))}}return KA=e,KA}var VA,KF;function $_(){if(KF)return VA;KF=1;var e=aK(),t=e(Object.getPrototypeOf,Object);return VA=t,VA}var YA,VF;function k_(){if(VF)return YA;VF=1;var e=Object.prototype;function t(r){var o=r&&r.constructor,s=typeof o=="function"&&o.prototype||e;return r===s}return YA=t,YA}var XA,YF;function sK(){if(YF)return XA;YF=1;var e=oK(),t=$_(),r=k_();function o(s){return typeof s.constructor=="function"&&!r(s)?e(t(s)):{}}return XA=o,XA}var ZA,XF;function uK(){if(XF)return ZA;XF=1;var e=ef(),t=_u(),r="[object Arguments]";function o(s){return t(s)&&e(s)==r}return ZA=o,ZA}var JA,ZF;function H_(){if(ZF)return JA;ZF=1;var e=uK(),t=_u(),r=Object.prototype,o=r.hasOwnProperty,s=r.propertyIsEnumerable,c=e((function(){return arguments})())?e:function(l){return t(l)&&o.call(l,"callee")&&!s.call(l,"callee")};return JA=c,JA}var WA,JF;function z_(){if(JF)return WA;JF=1;var e=Array.isArray;return WA=e,WA}var eb,WF;function cK(){if(WF)return eb;WF=1;var e=rv(),t=_u();function r(o){return t(o)&&e(o)}return eb=r,eb}var $c={exports:{}},tb,eR;function lK(){if(eR)return tb;eR=1;function e(){return!1}return tb=e,tb}$c.exports;var tR;function G_(){return tR||(tR=1,(function(e,t){var r=Tu(),o=lK(),s=t&&!t.nodeType&&t,c=s&&!0&&e&&!e.nodeType&&e,l=c&&c.exports===s,f=l?r.Buffer:void 0,p=f?f.isBuffer:void 0,h=p||o;e.exports=h})($c,$c.exports)),$c.exports}var nb,nR;function fK(){if(nR)return nb;nR=1;var e=ef(),t=$_(),r=_u(),o="[object Object]",s=Function.prototype,c=Object.prototype,l=s.toString,f=c.hasOwnProperty,p=l.call(Object);function h(A){if(!r(A)||e(A)!=o)return!1;var v=t(A);if(v===null)return!0;var x=f.call(v,"constructor")&&v.constructor;return typeof x=="function"&&x instanceof x&&l.call(x)==p}return nb=h,nb}var rb,rR;function dK(){if(rR)return rb;rR=1;var e=ef(),t=D_(),r=_u(),o="[object Arguments]",s="[object Array]",c="[object Boolean]",l="[object Date]",f="[object Error]",p="[object Function]",h="[object Map]",A="[object Number]",v="[object Object]",x="[object RegExp]",S="[object Set]",R="[object String]",U="[object WeakMap]",T="[object ArrayBuffer]",_="[object DataView]",M="[object Float32Array]",D="[object Float64Array]",$="[object Int8Array]",P="[object Int16Array]",Y="[object Int32Array]",ne="[object Uint8Array]",te="[object Uint8ClampedArray]",B="[object Uint16Array]",L="[object Uint32Array]",z={};z[M]=z[D]=z[$]=z[P]=z[Y]=z[ne]=z[te]=z[B]=z[L]=!0,z[o]=z[s]=z[T]=z[c]=z[_]=z[l]=z[f]=z[p]=z[h]=z[A]=z[v]=z[x]=z[S]=z[R]=z[U]=!1;function H(ie){return r(ie)&&t(ie.length)&&!!z[e(ie)]}return rb=H,rb}var ib,iR;function hK(){if(iR)return ib;iR=1;function e(t){return function(r){return t(r)}}return ib=e,ib}var kc={exports:{}};kc.exports;var oR;function pK(){return oR||(oR=1,(function(e,t){var r=__(),o=t&&!t.nodeType&&t,s=o&&!0&&e&&!e.nodeType&&e,c=s&&s.exports===o,l=c&&r.process,f=(function(){try{var p=s&&s.require&&s.require("util").types;return p||l&&l.binding&&l.binding("util")}catch{}})();e.exports=f})(kc,kc.exports)),kc.exports}var ob,aR;function Q_(){if(aR)return ob;aR=1;var e=dK(),t=hK(),r=pK(),o=r&&r.isTypedArray,s=o?t(o):e;return ob=s,ob}var ab,sR;function K_(){if(sR)return ab;sR=1;function e(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}return ab=e,ab}var sb,uR;function yK(){if(uR)return sb;uR=1;var e=ov(),t=qh(),r=Object.prototype,o=r.hasOwnProperty;function s(c,l,f){var p=c[l];(!(o.call(c,l)&&t(p,f))||f===void 0&&!(l in c))&&e(c,l,f)}return sb=s,sb}var ub,cR;function gK(){if(cR)return ub;cR=1;var e=yK(),t=ov();function r(o,s,c,l){var f=!c;c||(c={});for(var p=-1,h=s.length;++p<h;){var A=s[p],v=l?l(c[A],o[A],A,c,o):void 0;v===void 0&&(v=o[A]),f?t(c,A,v):e(c,A,v)}return c}return ub=r,ub}var cb,lR;function mK(){if(lR)return cb;lR=1;function e(t,r){for(var o=-1,s=Array(t);++o<t;)s[o]=r(o);return s}return cb=e,cb}var lb,fR;function AK(){if(fR)return lb;fR=1;var e=mK(),t=H_(),r=z_(),o=G_(),s=U_(),c=Q_(),l=Object.prototype,f=l.hasOwnProperty;function p(h,A){var v=r(h),x=!v&&t(h),S=!v&&!x&&o(h),R=!v&&!x&&!S&&c(h),U=v||x||S||R,T=U?e(h.length,String):[],_=T.length;for(var M in h)(A||f.call(h,M))&&!(U&&(M=="length"||S&&(M=="offset"||M=="parent")||R&&(M=="buffer"||M=="byteLength"||M=="byteOffset")||s(M,_)))&&T.push(M);return T}return lb=p,lb}var fb,dR;function bK(){if(dR)return fb;dR=1;function e(t){var r=[];if(t!=null)for(var o in Object(t))r.push(o);return r}return fb=e,fb}var db,hR;function xK(){if(hR)return db;hR=1;var e=oa(),t=k_(),r=bK(),o=Object.prototype,s=o.hasOwnProperty;function c(l){if(!e(l))return r(l);var f=t(l),p=[];for(var h in l)h=="constructor"&&(f||!s.call(l,h))||p.push(h);return p}return db=c,db}var hb,pR;function V_(){if(pR)return hb;pR=1;var e=AK(),t=xK(),r=rv();function o(s){return r(s)?e(s,!0):t(s)}return hb=o,hb}var pb,yR;function vK(){if(yR)return pb;yR=1;var e=gK(),t=V_();function r(o){return e(o,t(o))}return pb=r,pb}var yb,gR;function EK(){if(gR)return yb;gR=1;var e=q_(),t=eK(),r=rK(),o=iK(),s=sK(),c=H_(),l=z_(),f=cK(),p=G_(),h=nv(),A=oa(),v=fK(),x=Q_(),S=K_(),R=vK();function U(T,_,M,D,$,P,Y){var ne=S(T,M),te=S(_,M),B=Y.get(te);if(B){e(T,M,B);return}var L=P?P(ne,te,M+"",T,_,Y):void 0,z=L===void 0;if(z){var H=l(te),ie=!H&&p(te),de=!H&&!ie&&x(te);L=te,H||ie||de?l(ne)?L=ne:f(ne)?L=o(ne):ie?(z=!1,L=t(te,!0)):de?(z=!1,L=r(te,!0)):L=[]:v(te)||c(te)?(L=ne,c(ne)?L=R(ne):(!A(ne)||h(ne))&&(L=s(te))):z=!1}z&&(Y.set(te,L),$(L,te,D,P,Y),Y.delete(te)),e(T,M,L)}return yb=U,yb}var gb,mR;function wK(){if(mR)return gb;mR=1;var e=ZQ(),t=q_(),r=WQ(),o=EK(),s=oa(),c=V_(),l=K_();function f(p,h,A,v,x){p!==h&&r(h,function(S,R){if(x||(x=new e),s(S))o(p,h,R,A,f,v,x);else{var U=v?v(l(p,R),S,R+"",p,h,x):void 0;U===void 0&&(U=S),t(p,R,U)}},c)}return gb=f,gb}var mb,AR;function Y_(){if(AR)return mb;AR=1;function e(t){return t}return mb=e,mb}var Ab,bR;function IK(){if(bR)return Ab;bR=1;function e(t,r,o){switch(o.length){case 0:return t.call(r);case 1:return t.call(r,o[0]);case 2:return t.call(r,o[0],o[1]);case 3:return t.call(r,o[0],o[1],o[2])}return t.apply(r,o)}return Ab=e,Ab}var bb,xR;function SK(){if(xR)return bb;xR=1;var e=IK(),t=Math.max;function r(o,s,c){return s=t(s===void 0?o.length-1:s,0),function(){for(var l=arguments,f=-1,p=t(l.length-s,0),h=Array(p);++f<p;)h[f]=l[s+f];f=-1;for(var A=Array(s+1);++f<s;)A[f]=l[f];return A[s]=c(h),e(o,this,A)}}return bb=r,bb}var xb,vR;function CK(){if(vR)return xb;vR=1;function e(t){return function(){return t}}return xb=e,xb}var vb,ER;function OK(){if(ER)return vb;ER=1;var e=CK(),t=L_(),r=Y_(),o=t?function(s,c){return t(s,"toString",{configurable:!0,enumerable:!1,value:e(c),writable:!0})}:r;return vb=o,vb}var Eb,wR;function FK(){if(wR)return Eb;wR=1;var e=800,t=16,r=Date.now;function o(s){var c=0,l=0;return function(){var f=r(),p=t-(f-l);if(l=f,p>0){if(++c>=e)return arguments[0]}else c=0;return s.apply(void 0,arguments)}}return Eb=o,Eb}var wb,IR;function RK(){if(IR)return wb;IR=1;var e=OK(),t=FK(),r=t(e);return wb=r,wb}var Ib,SR;function BK(){if(SR)return Ib;SR=1;var e=Y_(),t=SK(),r=RK();function o(s,c){return r(t(s,c,e),s+"")}return Ib=o,Ib}var Sb,CR;function TK(){if(CR)return Sb;CR=1;var e=BK(),t=P_();function r(o){return e(function(s,c){var l=-1,f=c.length,p=f>1?c[f-1]:void 0,h=f>2?c[2]:void 0;for(p=o.length>3&&typeof p=="function"?(f--,p):void 0,h&&t(c[0],c[1],h)&&(p=f<3?void 0:p,f=1),s=Object(s);++l<f;){var A=c[l];A&&o(s,A,l,p)}return s})}return Sb=r,Sb}var Cb,OR;function _K(){if(OR)return Cb;OR=1;var e=wK(),t=TK(),r=t(function(o,s,c){e(o,s,c)});return Cb=r,Cb}var FR;function MK(){if(FR)return Kn;FR=1;var e=Kn&&Kn.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(Kn,"__esModule",{value:!0}),Kn.nftCborToJson=Kn.paginatedMetadataNft=Kn.paginatedProjectedNft=Kn.paginatedTransactionHistory=Kn.paginateQuery=void 0;const t=B_(),r=T_(),o=e(EQ()),s=j_(),c=e(_K());async function l(x,S,R){let U=x;const T=[];let _=[];do _=await S(U),T.push(..._),U={...U,after:R(_[_.length-1])};while(_.length!==0);return T}Kn.paginateQuery=l;async function f(x,S){return{transactions:await l(S,async U=>(await(0,t.query)(x,r.Routes.transactionHistory,U)).transactions,U=>U!=null?{block:U.block.hash,tx:U.transaction.hash}:void 0)}}Kn.paginatedTransactionHistory=f;async function p(x,S){return await l(S,async U=>await(0,t.query)(x,r.Routes.projectedNftEventsRange,U),U=>U!=null?{block:U.block,tx:U.txId}:void 0)}Kn.paginatedProjectedNft=p;function h(x){var S;const R={};for(const[U,T]of x){const _=(S=R[U])!==null&&S!==void 0?S:[];_.push(T),_.length===1&&(R[U]=_)}return{assets:R}}async function A(x,S){const R=[];for(const[_,M]of Object.entries(S.assets))for(const D of M)R.push([_,D]);let U={cip25:{}};const T=await Promise.all((0,o.default)(R,s.ASSET_LIMIT.REQUEST).map(_=>(0,t.query)(x,r.Routes.metadataNft,h(_))));for(const _ of T)U=(0,c.default)(U,_);return U}Kn.paginatedMetadataNft=A;function v(x,S,R,U){const T={};for(const[_,M]of Object.entries(x.cip25)){const D={};for(const[$,P]of Object.entries(M)){const Y=S.from_cbor_bytes(tn.Buffer.from(P,"hex")),ne=R(Y,U);D[$]=ne}T[_]=D}return{cip25:T}}return Kn.nftCborToJson=v,Kn}var Ta={},Ob={},RR;function DK(){return RR||(RR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.genErrorMessage=e.Errors=e.ErrorCodes=void 0;var t;(function(o){o[o.AddressLimitExceeded=0]="AddressLimitExceeded",o[o.IncorrectAddressFormat=1]="IncorrectAddressFormat",o[o.BlockHashNotFound=2]="BlockHashNotFound",o[o.PageStartNotFound=3]="PageStartNotFound",o[o.UtxoLimitExceeded=4]="UtxoLimitExceeded",o[o.IncorrectFormat=5]="IncorrectFormat",o[o.BlockOffsetLimit=6]="BlockOffsetLimit",o[o.OffsetBlockNotFound=7]="OffsetBlockNotFound",o[o.AssetLimitExceeded=8]="AssetLimitExceeded",o[o.CredentialLimitExceeded=9]="CredentialLimitExceeded",o[o.AssetPairLimitExceeded=10]="AssetPairLimitExceeded",o[o.PoolsLimitExceeded=11]="PoolsLimitExceeded",o[o.SlotRangeLimitExceeded=12]="SlotRangeLimitExceeded",o[o.AssetsLimitExceeded=12]="AssetsLimitExceeded"})(t=e.ErrorCodes||(e.ErrorCodes={})),e.Errors={AddressLimitExceeded:{code:t.AddressLimitExceeded,prefix:"Exceeded request address limit.",detailsGen:o=>`Limit of ${o.limit}, found ${o.found}`},UtxoLimitExceeded:{code:t.UtxoLimitExceeded,prefix:"Exceeded request utxo limit.",detailsGen:o=>`Limit of ${o.limit}, found ${o.found}`},IncorrectAddressFormat:{code:t.IncorrectAddressFormat,prefix:"Incorrectly formatted addresses found.",detailsGen:o=>JSON.stringify(o.addresses)},IncorrectFormat:{code:t.IncorrectFormat,prefix:"Incorrectly formatted data found.",detailsGen:o=>JSON.stringify(o)},BlockHashNotFound:{code:t.BlockHashNotFound,prefix:"Block hash not found.",detailsGen:o=>`Searched block hash: ${o.untilBlock}`},PageStartNotFound:{code:t.PageStartNotFound,prefix:"Combination of block and transaction not found.",detailsGen:o=>`Searched block hash ${o.blockHash} and tx hash ${o.txHash}`},BlockOffsetLimit:{code:t.BlockOffsetLimit,prefix:"Block offset exceeded the limit.",detailsGen:o=>`Offset used was ${o.offset}, but limit is ${o.limit}`},OffsetBlockNotFound:{code:t.OffsetBlockNotFound,prefix:"Block not found at offset. Are you sure your database is synchronized?",detailsGen:o=>`Offset used was ${o.offset}`},AssetLimitExceeded:{code:t.AssetLimitExceeded,prefix:"Exceeded request <policy, asset> pair limit.",detailsGen:o=>`Limit of ${o.limit}, found ${o.found}`},CredentialLimitExceeded:{code:t.CredentialLimitExceeded,prefix:"Exceeded request credential limit.",detailsGen:o=>`Limit of ${o.limit}, found ${o.found}`},AssetPairLimitExceeded:{code:t.AssetPairLimitExceeded,prefix:"Exceeded request asset pair limit.",detailsGen:o=>`Limit of ${o.limit}, found ${o.found}`},PoolsLimitExceeded:{code:t.PoolsLimitExceeded,prefix:"Exceeded request pools limit.",detailsGen:o=>`Limit of ${o.limit}, found ${o.found}`},SlotRangeLimitExceeded:{code:t.SlotRangeLimitExceeded,prefix:"Exceeded request slot range limit.",detailsGen:o=>`Limit of ${o.limit}, found ${o.found}`},AssetsLimitExceeded:{code:t.AssetLimitExceeded,prefix:"Exceeded request native assets limit.",detailsGen:o=>`Limit of ${o.limit}, found ${o.found}`},GovActionIdsLimitExceeded:{code:t.AssetLimitExceeded,prefix:"Exceeded request governance action ids limit.",detailsGen:o=>`Limit of ${o.limit}, found ${o.found}`}};function r(o,s){const c=o.detailsGen(s);return{code:o.code,reason:c.length===0?o.prefix:`${o.prefix} ${c}`}}e.genErrorMessage=r})(Ob)),Ob}var _a={},Fb={},BR;function UK(){return BR||(BR=1,Object.defineProperty(Fb,"__esModule",{value:!0})),Fb}var Rb={},TR;function PK(){return TR||(TR=1,Object.defineProperty(Rb,"__esModule",{value:!0})),Rb}var Bb={},_R;function jK(){return _R||(_R=1,Object.defineProperty(Bb,"__esModule",{value:!0})),Bb}var Tb={},MR;function NK(){return MR||(MR=1,Object.defineProperty(Tb,"__esModule",{value:!0})),Tb}var _b={},DR;function LK(){return DR||(DR=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={}))})(_b)),_b}var Mb={},UR;function qK(){return UR||(UR=1,Object.defineProperty(Mb,"__esModule",{value:!0})),Mb}var Db={},PR;function $K(){return PR||(PR=1,Object.defineProperty(Db,"__esModule",{value:!0})),Db}var Ub={},jR;function kK(){return jR||(jR=1,Object.defineProperty(Ub,"__esModule",{value:!0})),Ub}var Pb={},NR;function HK(){return NR||(NR=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={}))})(Pb)),Pb}var jb={},LR;function zK(){return LR||(LR=1,Object.defineProperty(jb,"__esModule",{value:!0})),jb}var Nb={},qR;function GK(){return qR||(qR=1,Object.defineProperty(Nb,"__esModule",{value:!0})),Nb}var Lb={},$R;function QK(){return $R||($R=1,Object.defineProperty(Lb,"__esModule",{value:!0})),Lb}var qb={},kR;function KK(){return kR||(kR=1,Object.defineProperty(qb,"__esModule",{value:!0})),qb}var $b={},HR;function VK(){return HR||(HR=1,Object.defineProperty($b,"__esModule",{value:!0})),$b}var kb={},zR;function YK(){return zR||(zR=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={}))})(kb)),kb}var Hb={},GR;function XK(){return GR||(GR=1,Object.defineProperty(Hb,"__esModule",{value:!0})),Hb}var zb={},QR;function ZK(){return QR||(QR=1,Object.defineProperty(zb,"__esModule",{value:!0})),zb}var KR;function JK(){return KR||(KR=1,(function(e){var t=_a&&_a.__createBinding||(Object.create?(function(o,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(o,l,f)}):(function(o,s,c,l){l===void 0&&(l=c),o[l]=s[c]})),r=_a&&_a.__exportStar||function(o,s){for(var c in o)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&t(s,o,c)};Object.defineProperty(e,"__esModule",{value:!0}),r(UK(),e),r(PK(),e),r(jK(),e),r(NK(),e),r(LK(),e),r(qK(),e),r($K(),e),r(kK(),e),r(HK(),e),r(zK(),e),r(GK(),e),r(QK(),e),r(KK(),e),r(VK(),e),r(YK(),e),r(XK(),e),r(ZK(),e)})(_a)),_a}var VR;function WK(){return VR||(VR=1,(function(e){var t=Ta&&Ta.__createBinding||(Object.create?(function(o,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(o,l,f)}):(function(o,s,c,l){l===void 0&&(l=c),o[l]=s[c]})),r=Ta&&Ta.__exportStar||function(o,s){for(var c in o)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&t(s,o,c)};Object.defineProperty(e,"__esModule",{value:!0}),r(j_(),e),r(DK(),e),r(T_(),e),r(JK(),e)})(Ta)),Ta}var YR;function eV(){return YR||(YR=1,(function(e){var t=Ba&&Ba.__createBinding||(Object.create?(function(o,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(o,l,f)}):(function(o,s,c,l){l===void 0&&(l=c),o[l]=s[c]})),r=Ba&&Ba.__exportStar||function(o,s){for(var c in o)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&t(s,o,c)};Object.defineProperty(e,"__esModule",{value:!0}),r(B_(),e),r(MK(),e),r(WK(),e)})(Ba)),Ba}var tV=eV();const av=E.Object({address:we.Cardano.Address,pool:we.Nullable(we.Cardano.PoolId),epoch:we.EpochNumber()});E.Object({primitive:E.Literal(Ne.CardanoCarpDelegation),payloadType:E.Literal(rn.Delegate),payload:av});const Kc=E.Object({ownerAddress:we.Cardano.Address,actionTxId:we.Cardano.TxHash,actionOutputIndex:we.Nullable(E.Number()),previousTxHash:we.Nullable(we.Cardano.TxHash),previousTxOutputIndex:we.Nullable(E.Number()),policyId:we.Cardano.PolicyId,assetName:we.Cardano.AssetName,amount:we.Cardano.AmountLovelace,status:E.Enum(tV.ProjectedNftStatus),plutusDatum:we.HexStringNo0x(),forHowLong:we.Nullable(we.TimestampMsStr)});E.Object({primitive:E.Literal(Ne.CardanoCarpProjectedNFT),payloadType:E.Literal(rn.Projection),payload:Kc});const X_=E.Object({address:we.Cardano.Address,txId:we.Cardano.TxHash,outputIndex:E.Number(),amount:we.Nullable(we.Cardano.AmountLovelace),cip14Fingerprint:we.Cardano.Cip14Fingerprint,policyId:we.Cardano.PolicyId,assetName:we.Cardano.AssetName,spent:E.Boolean()});E.Object({primitive:E.Literal(Ne.CardanoCarpDelayedAsset),payloadType:E.Literal(rn.Transfer),payload:X_});const sv=E.Object({txId:we.Cardano.TxHash,rawTx:E.String(),inputCredentials:E.Array(we.Cardano.Credential),outputs:E.Array(E.Object({asset:we.Nullable(E.Object({policyId:we.Cardano.PolicyId,assetName:we.Cardano.AssetName})),amount:we.Cardano.AmountLovelace})),metadata:we.Nullable(E.String())});E.Object({primitive:E.Literal(Ne.CardanoCarpTransfer),payloadType:E.Literal(rn.Transfer),payload:sv});const nV=E.Unsafe(E.Record(we.Cardano.AssetName,E.String())),rV=E.Unsafe(E.Record(we.Cardano.PolicyId,nV)),iV=E.Object({policyId:we.Cardano.PolicyId,assetName:we.Cardano.AssetName}),oV=E.Intersect([iV,E.Object({amount:we.Cardano.AmountLovelace})]),XR=E.Unsafe(E.Record(we.Cardano.Credential,E.Array(oV))),uv=E.Object({txId:we.Cardano.TxHash,metadata:we.Nullable(E.String()),assets:rV,inputAddresses:XR,outputAddresses:XR});E.Object({primitive:E.Literal(Ne.CardanoCarpMintBurn),payloadType:E.Literal(rn.MintOrBurn),payload:uv});const aV=E.Object({});E.Object({primitive:E.Literal(Ne.CardanoUtxorpcMatchTx),payloadType:E.Literal(rn.Event),payload:aV});Ne.EvmRpcPaimaL2+"",Ne.EvmRpcERC20+"",Ne.EvmRpcERC721+"",Ne.EvmRpcERC1155+"",Ne.EvmRpcGeneric+"",Ne.EvmRpcERC6551Registry+"",Ne.EvmRpcDynamicPrimitive+"";const Z_=E.Object({userAddress:we.Evm.Address,data:we.HexString0x(),value:we.Uint256});E.Object({primitive:E.Literal(Ne.EvmRpcPaimaL2),payloadType:E.Literal(rn.PaimaL2Event),payload:Z_});const cv=E.Object({from:we.Evm.Address,to:we.Evm.Address,value:we.Uint256});E.Object({primitive:E.Literal(Ne.EvmRpcERC20),payloadType:E.Literal(rn.Transfer),payload:cv});const lv=E.Object({from:we.Evm.Address,to:we.Evm.Address,tokenId:we.Uint256});E.Object({primitive:E.Literal(Ne.EvmRpcERC721),payloadType:E.Literal(rn.Transfer),payload:lv});const zd=E.Object({tokenId:we.Uint256,mintData:E.String(),from:we.Evm.Address});E.Object({primitive:E.Literal(Ne.EvmRpcERC721),payloadType:E.Literal(rn.Mint),payload:zd});const Gd=E.Object({operator:we.Evm.Address,from:we.Evm.Address,to:we.Evm.Address,ids:E.Array(we.Uint256),values:E.Array(we.Uint256)});E.Object({primitive:E.Literal(Ne.EvmRpcERC1155),payloadType:E.Literal(rn.Transfer),payload:Gd});const sV=E.Any();E.Object({primitive:E.Literal(Ne.EvmRpcGeneric),payloadType:E.Literal(rn.Event),payload:sV});const J_=E.Object({accountCreated:we.Evm.Address,implementation:we.Evm.Address,chainId:we.Uint256,tokenContract:we.Evm.Address,tokenId:we.Uint256,salt:we.Uint256});E.Object({primitive:E.Literal(Ne.EvmRpcERC6551Registry),payloadType:E.Literal(rn.Registry),payload:J_});const uV=E.Union([E.Object({type:E.Literal(Ne.EvmRpcERC721),scheduledPrefix:E.String(),burnScheduledPrefix:E.Optional(E.String())}),E.Object({type:E.Literal(Ne.EvmRpcGeneric),abi:we.EvmAbiEvent,scheduledPrefix:E.String()})]),cV=E.Object({contractAddress:we.Evm.Address,targetConfig:uV});E.Object({primitive:E.Literal(Ne.EvmRpcDynamicPrimitive),payloadType:E.Literal(rn.Event),payload:cV});const lV=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")})])),W_=E.Unsafe(lV);E.Object({primitive:E.Literal(Ne.MidnightContractState),payloadType:E.Literal(rn.Event),payload:W_});const fV=E.Array(E.Array(we.UnknownFormat));E.Object({primitive:E.Literal(Ne.MinaEventGeneric),payloadType:E.Literal(rn.Event),payload:fV});const dV=E.Array(E.Array(we.UnknownFormat));E.Object({primitive:E.Literal(Ne.MinaActionGeneric),payloadType:E.Literal(rn.Event),payload:dV});var _r=(e=>(e.Transfer="transfer",e.Delegate="delegate",e.MintOrBurn="mint-or-burn",e.ProjectedNft="projected-nft",e.Registry="registry",e.Event="event",e))(_r||{});E.Object({primitive:E.Literal(Ne.CardanoCarpDelayedAsset),payloadType:E.Literal(_r.Transfer),payload:X_});E.Object({primitive:E.Literal(Ne.CardanoCarpDelegation),payloadType:E.Literal(_r.Transfer),payload:av});E.Object({primitive:E.Literal(Ne.CardanoCarpMintBurn),payloadType:E.Literal(_r.MintOrBurn),payload:uv});E.Object({primitive:E.Literal(Ne.CardanoCarpProjectedNFT),payloadType:E.Literal(_r.ProjectedNft),payload:Kc});E.Object({primitive:E.Literal(Ne.CardanoCarpTransfer),payloadType:E.Literal(_r.Transfer),payload:sv});E.Object({primitive:E.Literal(Ne.EvmRpcPaimaL2),payloadType:E.Literal(_r.Event),payload:Z_});E.Object({primitive:E.Literal(Ne.EvmRpcERC20),payloadType:E.Literal(_r.Transfer),payload:cv});E.Object({primitive:E.Literal(Ne.EvmRpcERC721),payloadType:E.Literal(_r.Transfer),payload:lv});E.Object({primitive:E.Literal(Ne.EvmRpcERC721),payloadType:E.Literal(_r.MintOrBurn),payload:zd});E.Object({primitive:E.Literal(Ne.EvmRpcERC1155),payloadType:E.Literal(_r.Transfer),payload:Gd});E.Object({primitive:E.Literal(Ne.EvmRpcERC6551Registry),payloadType:E.Literal(_r.Registry),payload:J_});E.Object({primitive:E.Literal(Ne.MidnightContractState),payloadType:E.Literal(_r.Event),payload:W_});vz("paima:static-config");var Gb={exports:{}},ZR;function hV(){return ZR||(ZR=1,(function(e){(function(){var t="input is invalid type",r="finalize already called",o=typeof window=="object",s=o?window:{};s.JS_SHA3_NO_WINDOW&&(o=!1);var c=!o&&typeof self=="object",l=!s.JS_SHA3_NO_NODE_JS&&typeof st=="object"&&st.versions&&st.versions.node;l?s=oo:c&&(s=self);for(var f=!s.JS_SHA3_NO_COMMON_JS&&!0&&e.exports,p=!s.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",h="0123456789abcdef".split(""),A=[31,7936,2031616,520093696],v=[4,1024,262144,67108864],x=[1,256,65536,16777216],S=[6,1536,393216,100663296],R=[0,8,16,24],U=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],T=[224,256,384,512],_=[128,256],M=["hex","buffer","arrayBuffer","array","digest"],D={128:168,256:136},$=s.JS_SHA3_NO_NODE_JS||!Array.isArray?function(w){return Object.prototype.toString.call(w)==="[object Array]"}:Array.isArray,P=p&&(s.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)?function(w){return typeof w=="object"&&w.buffer&&w.buffer.constructor===ArrayBuffer}:ArrayBuffer.isView,Y=function(w){var N=typeof w;if(N==="string")return[w,!0];if(N!=="object"||w===null)throw new Error(t);if(p&&w.constructor===ArrayBuffer)return[new Uint8Array(w),!1];if(!$(w)&&!P(w))throw new Error(t);return[w,!1]},ne=function(w){return Y(w)[0].length===0},te=function(w){for(var N=[],K=0;K<w.length;++K)N[K]=w[K];return N},B=function(w,N,K){return function(Z){return new pe(w,N,w).update(Z)[K]()}},L=function(w,N,K){return function(Z,ce){return new pe(w,N,ce).update(Z)[K]()}},z=function(w,N,K){return function(Z,ce,le,b){return W["cshake"+w].update(Z,ce,le,b)[K]()}},H=function(w,N,K){return function(Z,ce,le,b){return W["kmac"+w].update(Z,ce,le,b)[K]()}},ie=function(w,N,K,Z){for(var ce=0;ce<M.length;++ce){var le=M[ce];w[le]=N(K,Z,le)}return w},de=function(w,N){var K=B(w,N,"hex");return K.create=function(){return new pe(w,N,w)},K.update=function(Z){return K.create().update(Z)},ie(K,B,w,N)},Ae=function(w,N){var K=L(w,N,"hex");return K.create=function(Z){return new pe(w,N,Z)},K.update=function(Z,ce){return K.create(ce).update(Z)},ie(K,L,w,N)},O=function(w,N){var K=D[w],Z=z(w,N,"hex");return Z.create=function(ce,le,b){return ne(le)&&ne(b)?W["shake"+w].create(ce):new pe(w,N,ce).bytepad([le,b],K)},Z.update=function(ce,le,b,g){return Z.create(le,b,g).update(ce)},ie(Z,z,w,N)},re=function(w,N){var K=D[w],Z=H(w,N,"hex");return Z.create=function(ce,le,b){return new ye(w,N,le).bytepad(["KMAC",b],K).bytepad([ce],K)},Z.update=function(ce,le,b,g){return Z.create(ce,b,g).update(le)},ie(Z,H,w,N)},he=[{name:"keccak",padding:x,bits:T,createMethod:de},{name:"sha3",padding:S,bits:T,createMethod:de},{name:"shake",padding:A,bits:_,createMethod:Ae},{name:"cshake",padding:v,bits:_,createMethod:O},{name:"kmac",padding:v,bits:_,createMethod:re}],W={},C=[],X=0;X<he.length;++X)for(var ue=he[X],Q=ue.bits,j=0;j<Q.length;++j){var k=ue.name+"_"+Q[j];if(C.push(k),W[k]=ue.createMethod(Q[j],ue.padding),ue.name!=="sha3"){var V=ue.name+Q[j];C.push(V),W[V]=W[k]}}function pe(w,N,K){this.blocks=[],this.s=[],this.padding=N,this.outputBits=K,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=K>>5,this.extraBytes=(K&31)>>3;for(var Z=0;Z<50;++Z)this.s[Z]=0}pe.prototype.update=function(w){if(this.finalized)throw new Error(r);var N=Y(w);w=N[0];for(var K=N[1],Z=this.blocks,ce=this.byteCount,le=w.length,b=this.blockCount,g=0,m=this.s,I,ee;g<le;){if(this.reset)for(this.reset=!1,Z[0]=this.block,I=1;I<b+1;++I)Z[I]=0;if(K)for(I=this.start;g<le&&I<ce;++g)ee=w.charCodeAt(g),ee<128?Z[I>>2]|=ee<<R[I++&3]:ee<2048?(Z[I>>2]|=(192|ee>>6)<<R[I++&3],Z[I>>2]|=(128|ee&63)<<R[I++&3]):ee<55296||ee>=57344?(Z[I>>2]|=(224|ee>>12)<<R[I++&3],Z[I>>2]|=(128|ee>>6&63)<<R[I++&3],Z[I>>2]|=(128|ee&63)<<R[I++&3]):(ee=65536+((ee&1023)<<10|w.charCodeAt(++g)&1023),Z[I>>2]|=(240|ee>>18)<<R[I++&3],Z[I>>2]|=(128|ee>>12&63)<<R[I++&3],Z[I>>2]|=(128|ee>>6&63)<<R[I++&3],Z[I>>2]|=(128|ee&63)<<R[I++&3]);else for(I=this.start;g<le&&I<ce;++g)Z[I>>2]|=w[g]<<R[I++&3];if(this.lastByteIndex=I,I>=ce){for(this.start=I-ce,this.block=Z[b],I=0;I<b;++I)m[I]^=Z[I];G(m),this.reset=!0}else this.start=I}return this},pe.prototype.encode=function(w,N){var K=w&255,Z=1,ce=[K];for(w=w>>8,K=w&255;K>0;)ce.unshift(K),w=w>>8,K=w&255,++Z;return N?ce.push(Z):ce.unshift(Z),this.update(ce),ce.length},pe.prototype.encodeString=function(w){var N=Y(w);w=N[0];var K=N[1],Z=0,ce=w.length;if(K)for(var le=0;le<w.length;++le){var b=w.charCodeAt(le);b<128?Z+=1:b<2048?Z+=2:b<55296||b>=57344?Z+=3:(b=65536+((b&1023)<<10|w.charCodeAt(++le)&1023),Z+=4)}else Z=ce;return Z+=this.encode(Z*8),this.update(w),Z},pe.prototype.bytepad=function(w,N){for(var K=this.encode(N),Z=0;Z<w.length;++Z)K+=this.encodeString(w[Z]);var ce=(N-K%N)%N,le=[];return le.length=ce,this.update(le),this},pe.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var w=this.blocks,N=this.lastByteIndex,K=this.blockCount,Z=this.s;if(w[N>>2]|=this.padding[N&3],this.lastByteIndex===this.byteCount)for(w[0]=w[K],N=1;N<K+1;++N)w[N]=0;for(w[K-1]|=2147483648,N=0;N<K;++N)Z[N]^=w[N];G(Z)}},pe.prototype.toString=pe.prototype.hex=function(){this.finalize();for(var w=this.blockCount,N=this.s,K=this.outputBlocks,Z=this.extraBytes,ce=0,le=0,b="",g;le<K;){for(ce=0;ce<w&&le<K;++ce,++le)g=N[ce],b+=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];le%w===0&&(N=te(N),G(N),ce=0)}return Z&&(g=N[ce],b+=h[g>>4&15]+h[g&15],Z>1&&(b+=h[g>>12&15]+h[g>>8&15]),Z>2&&(b+=h[g>>20&15]+h[g>>16&15])),b},pe.prototype.arrayBuffer=function(){this.finalize();var w=this.blockCount,N=this.s,K=this.outputBlocks,Z=this.extraBytes,ce=0,le=0,b=this.outputBits>>3,g;Z?g=new ArrayBuffer(K+1<<2):g=new ArrayBuffer(b);for(var m=new Uint32Array(g);le<K;){for(ce=0;ce<w&&le<K;++ce,++le)m[le]=N[ce];le%w===0&&(N=te(N),G(N))}return Z&&(m[le]=N[ce],g=g.slice(0,b)),g},pe.prototype.buffer=pe.prototype.arrayBuffer,pe.prototype.digest=pe.prototype.array=function(){this.finalize();for(var w=this.blockCount,N=this.s,K=this.outputBlocks,Z=this.extraBytes,ce=0,le=0,b=[],g,m;le<K;){for(ce=0;ce<w&&le<K;++ce,++le)g=le<<2,m=N[ce],b[g]=m&255,b[g+1]=m>>8&255,b[g+2]=m>>16&255,b[g+3]=m>>24&255;le%w===0&&(N=te(N),G(N))}return Z&&(g=le<<2,m=N[ce],b[g]=m&255,Z>1&&(b[g+1]=m>>8&255),Z>2&&(b[g+2]=m>>16&255)),b};function ye(w,N,K){pe.call(this,w,N,K)}ye.prototype=new pe,ye.prototype.finalize=function(){return this.encode(this.outputBits,!0),pe.prototype.finalize.call(this)};var G=function(w){var N,K,Z,ce,le,b,g,m,I,ee,me,Ce,je,ae,se,Ee,Fe,Me,qe,ke,Ge,Qe,Ze,Je,ft,pt,gt,mt,xt,qt,Dt,_t,Qt,$t,kt,Ut,mo,aa,os,fr,Jt,dn,Yr,Ao,as,ss,sa,gi,bo,Xr,Zr,mi,Jr,Ht,ua,ca,Mr,Wr,us,la,fa,cs,Di;for(Z=0;Z<48;Z+=2)ce=w[0]^w[10]^w[20]^w[30]^w[40],le=w[1]^w[11]^w[21]^w[31]^w[41],b=w[2]^w[12]^w[22]^w[32]^w[42],g=w[3]^w[13]^w[23]^w[33]^w[43],m=w[4]^w[14]^w[24]^w[34]^w[44],I=w[5]^w[15]^w[25]^w[35]^w[45],ee=w[6]^w[16]^w[26]^w[36]^w[46],me=w[7]^w[17]^w[27]^w[37]^w[47],Ce=w[8]^w[18]^w[28]^w[38]^w[48],je=w[9]^w[19]^w[29]^w[39]^w[49],N=Ce^(b<<1|g>>>31),K=je^(g<<1|b>>>31),w[0]^=N,w[1]^=K,w[10]^=N,w[11]^=K,w[20]^=N,w[21]^=K,w[30]^=N,w[31]^=K,w[40]^=N,w[41]^=K,N=ce^(m<<1|I>>>31),K=le^(I<<1|m>>>31),w[2]^=N,w[3]^=K,w[12]^=N,w[13]^=K,w[22]^=N,w[23]^=K,w[32]^=N,w[33]^=K,w[42]^=N,w[43]^=K,N=b^(ee<<1|me>>>31),K=g^(me<<1|ee>>>31),w[4]^=N,w[5]^=K,w[14]^=N,w[15]^=K,w[24]^=N,w[25]^=K,w[34]^=N,w[35]^=K,w[44]^=N,w[45]^=K,N=m^(Ce<<1|je>>>31),K=I^(je<<1|Ce>>>31),w[6]^=N,w[7]^=K,w[16]^=N,w[17]^=K,w[26]^=N,w[27]^=K,w[36]^=N,w[37]^=K,w[46]^=N,w[47]^=K,N=ee^(ce<<1|le>>>31),K=me^(le<<1|ce>>>31),w[8]^=N,w[9]^=K,w[18]^=N,w[19]^=K,w[28]^=N,w[29]^=K,w[38]^=N,w[39]^=K,w[48]^=N,w[49]^=K,ae=w[0],se=w[1],ss=w[11]<<4|w[10]>>>28,sa=w[10]<<4|w[11]>>>28,mt=w[20]<<3|w[21]>>>29,xt=w[21]<<3|w[20]>>>29,la=w[31]<<9|w[30]>>>23,fa=w[30]<<9|w[31]>>>23,dn=w[40]<<18|w[41]>>>14,Yr=w[41]<<18|w[40]>>>14,$t=w[2]<<1|w[3]>>>31,kt=w[3]<<1|w[2]>>>31,Ee=w[13]<<12|w[12]>>>20,Fe=w[12]<<12|w[13]>>>20,gi=w[22]<<10|w[23]>>>22,bo=w[23]<<10|w[22]>>>22,qt=w[33]<<13|w[32]>>>19,Dt=w[32]<<13|w[33]>>>19,cs=w[42]<<2|w[43]>>>30,Di=w[43]<<2|w[42]>>>30,Ht=w[5]<<30|w[4]>>>2,ua=w[4]<<30|w[5]>>>2,Ut=w[14]<<6|w[15]>>>26,mo=w[15]<<6|w[14]>>>26,Me=w[25]<<11|w[24]>>>21,qe=w[24]<<11|w[25]>>>21,Xr=w[34]<<15|w[35]>>>17,Zr=w[35]<<15|w[34]>>>17,_t=w[45]<<29|w[44]>>>3,Qt=w[44]<<29|w[45]>>>3,Je=w[6]<<28|w[7]>>>4,ft=w[7]<<28|w[6]>>>4,ca=w[17]<<23|w[16]>>>9,Mr=w[16]<<23|w[17]>>>9,aa=w[26]<<25|w[27]>>>7,os=w[27]<<25|w[26]>>>7,ke=w[36]<<21|w[37]>>>11,Ge=w[37]<<21|w[36]>>>11,mi=w[47]<<24|w[46]>>>8,Jr=w[46]<<24|w[47]>>>8,Ao=w[8]<<27|w[9]>>>5,as=w[9]<<27|w[8]>>>5,pt=w[18]<<20|w[19]>>>12,gt=w[19]<<20|w[18]>>>12,Wr=w[29]<<7|w[28]>>>25,us=w[28]<<7|w[29]>>>25,fr=w[38]<<8|w[39]>>>24,Jt=w[39]<<8|w[38]>>>24,Qe=w[48]<<14|w[49]>>>18,Ze=w[49]<<14|w[48]>>>18,w[0]=ae^~Ee&Me,w[1]=se^~Fe&qe,w[10]=Je^~pt&mt,w[11]=ft^~gt&xt,w[20]=$t^~Ut&aa,w[21]=kt^~mo&os,w[30]=Ao^~ss&gi,w[31]=as^~sa&bo,w[40]=Ht^~ca&Wr,w[41]=ua^~Mr&us,w[2]=Ee^~Me&ke,w[3]=Fe^~qe&Ge,w[12]=pt^~mt&qt,w[13]=gt^~xt&Dt,w[22]=Ut^~aa&fr,w[23]=mo^~os&Jt,w[32]=ss^~gi&Xr,w[33]=sa^~bo&Zr,w[42]=ca^~Wr&la,w[43]=Mr^~us&fa,w[4]=Me^~ke&Qe,w[5]=qe^~Ge&Ze,w[14]=mt^~qt&_t,w[15]=xt^~Dt&Qt,w[24]=aa^~fr&dn,w[25]=os^~Jt&Yr,w[34]=gi^~Xr&mi,w[35]=bo^~Zr&Jr,w[44]=Wr^~la&cs,w[45]=us^~fa&Di,w[6]=ke^~Qe&ae,w[7]=Ge^~Ze&se,w[16]=qt^~_t&Je,w[17]=Dt^~Qt&ft,w[26]=fr^~dn&$t,w[27]=Jt^~Yr&kt,w[36]=Xr^~mi&Ao,w[37]=Zr^~Jr&as,w[46]=la^~cs&Ht,w[47]=fa^~Di&ua,w[8]=Qe^~ae&Ee,w[9]=Ze^~se&Fe,w[18]=_t^~Je&pt,w[19]=Qt^~ft&gt,w[28]=dn^~$t&Ut,w[29]=Yr^~kt&mo,w[38]=mi^~Ao&ss,w[39]=Jr^~as&sa,w[48]=cs^~Ht&ca,w[49]=Di^~ua&Mr,w[0]^=U[Z],w[1]^=U[Z+1]};if(f)e.exports=W;else for(X=0;X<C.length;++X)s[C[X]]=W[C[X]]})()})(Gb)),Gb.exports}var pV=hV();const e6=Vd(pV),{keccak_256:yV}=e6;function t6(e){return`0x${yV(e).slice(0,40)}`}t6(`${et.CARDANO_CARP_PARALLEL}-${Ne.CardanoCarpMintBurn}-${rn.MintOrBurn}`);t6(`${et.CARDANO_CARP_PARALLEL}-${Ne.CardanoCarpTransfer}-${rn.Transfer}`);Ne.EvmRpcERC20+"",Gs(["from","to","value"]).from(cv),Ne.EvmRpcERC721+"",Gs(["from","tokenId","mintData"]).from(zd),[lv.properties.from,...Dd(["tokenId"]).from(zd)],Ne.EvmRpcERC1155+"",Gs(["operator","from","to","ids","values"]).from(Gd),Dd(["operator","from","ids","values"]).from(Gd),Ne.EvmRpcERC6551Registry+"",Ne.EvmRpcDynamicPrimitive+"",Ne.EvmRpcGeneric+"",Ne.CardanoCarpDelegation+"",Gs(["address","pool","epoch"]).from(av),Ne.CardanoCarpProjectedNFT+"",[...Dd(["ownerAddress","previousTxHash","previousTxOutputIndex","policyId","assetName","amount","status","forHowLong"]).from(Kc),Kc.properties.actionTxId,Kc.properties.actionOutputIndex],Ne.CardanoCarpDelayedAsset+"",Ne.CardanoCarpTransfer+"",Gs(["txId","rawTx","inputCredentials","outputs","metadata"]).from(sv),Ne.CardanoCarpMintBurn+"",Gs(["txId","metadata","assets","inputAddresses","outputAddresses"]).from(uv),Ne.CardanoUtxorpcMatchTx+"",Ne.MinaEventGeneric+"",Ne.MinaActionGeneric+"",Ne.MidnightContractState+"";const{keccak_256:jV}=e6;function n6(e,t,r,o,s){let c;switch(o){case xn.EVM:c=tH(we.Evm.Address,r);break;default:throw new Error("NYI: Unsupported wallet address type: "+o)}return(""+t+c+s).replace(/[^a-zA-Z0-9]/g,"-").toLocaleLowerCase()}const gV={EVM:0};async function mV(e,t){const r=Si(t.privateKey),o=zc({account:r,chain:Qc,transport:Gc()}),s=Date.now().toString(),c=r.address,l=gV.EVM,f=n6(null,s,c,l,e),p=await o.signMessage({account:r,message:f});return{addressType:l,userAddress:c,userSignature:p,conciseInput:e,millisecondTimestamp:s}}async function AV(e){const t=await fetch(x_,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({data:e})});if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);return await t.json()}async function Od(e,t){console.log("🚀 Creating signed input for:",e);const r=await mV(e,t);console.log("✅ Signed input created:",{...r,userSignature:r.userSignature.slice(0,10)+"..."}),console.log("📤 Sending to batcher...");const o=await AV(r);return console.log("🎉 Batcher response:",o),o}function bV(){const[e,t]=_e.useState([]),[r,o]=_e.useState(!0),[s,c]=_e.useState(null),[l,f]=_e.useState(10),[p,h]=_e.useState(0),[A,v]=_e.useState([void 0]),[x,S]=_e.useState(!1),[R,U]=_e.useState([]),[T,_]=_e.useState(null),[M,D]=_e.useState([]),[$,P]=_e.useState(!1),[Y,ne]=_e.useState(!1),[te,B]=_e.useState(!1),[L,z]=_e.useState(""),[H,ie]=_e.useState(""),[de,Ae]=_e.useState(""),[O,re]=_e.useState(null),[he,W]=_e.useState(null),C=(le,b,g)=>{const m=Date.now(),I={id:m,type:le,title:b,message:g};D(ee=>[...ee,I]),setTimeout(()=>{D(ee=>ee.filter(me=>me.id!==m))},5e3)},X=le=>{D(b=>b.filter(g=>g.id!==le))},ue=()=>{const le=TB(),b=Si(le),g={id:Date.now().toString(),privateKey:le,address:b.address,name:`Wallet ${R.length+1}`};U(m=>[...m,g]),_(g),C("success","Wallet Generated",`New wallet created: ${b.address.slice(0,6)}...${b.address.slice(-4)}`)},Q=le=>{U(b=>b.filter(g=>g.id!==le)),(T==null?void 0:T.id)===le&&_(null)},j=async()=>{if(!T){C("error","No Wallet","Please select a wallet first");return}B(!0);try{const b=JSON.stringify(["&createAccount"]);await Od(b,T),C("success","Account Created","Successfully created account! Use the refresh button to see updated addresses.")}catch(le){C("error","Create Account Error",`Error creating account: ${le instanceof Error?le.message:"Unknown error"}`)}finally{B(!1)}},k=async()=>{if(!T){C("error","No Wallet","Please select a wallet first");return}if(!O){C("error","No Account","Please select an account ID");return}B(!0);try{const le=["&unlinkAddress",O.toString(),"","",""],b=JSON.stringify(le);await Od(b,T),C("success","Self Unlinked","Successfully unlinked self from account! Use the refresh button to see updated addresses.")}catch(le){C("error","Unlink Self Error",`Error unlinking self: ${le instanceof Error?le.message:"Unknown error"}`)}finally{B(!1)}},V=async()=>{if(!T){C("error","No Wallet","Please select a wallet first");return}if(!O){C("error","No Account","Please select an account ID");return}if(!de.trim()){C("error","No Address","Please enter an address to unlink");return}const le=zc({account:Si(T.privateKey),chain:Qc,transport:Gc()});B(!0);const b=`unlink:${String(O)}:${de.toString().toLowerCase().trim()}:`,g=await le.signMessage({account:Si(T.privateKey),message:b});try{const m=["&unlinkAddress",O.toString(),g,de.toString().toLowerCase().trim(),""],I=JSON.stringify(m);await Od(I,T),C("success","Address Unlinked","Successfully unlinked address from account! Use the refresh button to see updated addresses."),Ae("")}catch(m){C("error","Unlink Other Error",`Error unlinking address: ${m instanceof Error?m.message:"Unknown error"}`)}finally{B(!1)}},pe=async()=>{if(!T){C("error","No Wallet","Please select a wallet first");return}if(!O){C("error","No Account","Please select an account ID");return}if(!he){C("error","No Link Wallet","Please select a wallet to link");return}B(!0);try{const le=zc({account:Si(T.privateKey),chain:Qc,transport:Gc()}),b=zc({account:Si(he.privateKey),chain:Qc,transport:Gc()}),g=`link:${O}:${he.address.toString().toLowerCase().trim()}:false`,m=await le.signMessage({account:Si(T.privateKey),message:g}),I=`link:${O}:${T.address.toString().toLowerCase().trim()}:false`,ee=await b.signMessage({account:Si(he.privateKey),message:I}),me=["&linkAddress",O.toString(),m,he.address.toString().toLowerCase().trim(),ee,"false"],Ce=JSON.stringify(me);await Od(Ce,T),C("success","Address Linked","Successfully linked address to account! Use the refresh button to see updated addresses."),W(null)}catch(le){C("error","Link Address Error",`Error linking address: ${le instanceof Error?le.message:"Unknown error"}`)}finally{B(!1)}},ye=async()=>{try{o(!0),c(null);const le=new URL(_z);le.searchParams.set("limit",String(l));const b=A[p];b&&le.searchParams.set("after",b);const g=await fetch(le.toString());if(!g.ok)throw new Error(`HTTP error! status: ${g.status}`);const m=await g.json(),I=m.data??[];t(I),m.pagination&&(S(m.pagination.hasMore??!1),m.pagination.nextCursor&&A.length===p+1&&v(ee=>[...ee,m.pagination.nextCursor]))}catch(le){console.error("Error fetching addresses:",le),c(le instanceof Error?le.message:"Unknown error")}finally{o(!1)}};_e.useEffect(()=>{ye()},[l,p]);const G=e.reduce((le,b)=>{const g=le.find(m=>m.account_id===b.account_id);return g?(g.addresses.includes(b.address)||g.addresses.push(b.address),b.primary_address&&(g.hasPrimaryAddress=!0,g.primaryAddress=b.primary_address)):le.push({account_id:b.account_id,addresses:[b.address],hasPrimaryAddress:!!b.primary_address,primaryAddress:b.primary_address}),le},[]),w=[...new Set(G.map(le=>le.account_id).filter(le=>le!==null))],N=le=>{f(Number(le.target.value)),h(0),v([void 0])},K=()=>{x&&h(le=>le+1)},Z=()=>{h(le=>Math.max(0,le-1))},ce=()=>{h(0)};return r?J.jsx("div",{className:"addresses-loading",children:J.jsx("div",{className:"loading-text",children:"Loading addresses..."})}):s?J.jsx("div",{className:"addresses-error",children:J.jsxs("div",{className:"error-text",children:["Error loading addresses: ",s]})}):J.jsxs("div",{className:"addresses-table-container",children:[J.jsx("div",{style:{position:"fixed",top:"20px",right:"20px",zIndex:1e3,display:"flex",flexDirection:"column",gap:"10px"},children:M.map(le=>J.jsxs("div",{style:{background:le.type==="success"?"#10b981":le.type==="error"?"#ef4444":"#3b82f6",color:"white",padding:"12px 16px",borderRadius:"8px",minWidth:"300px",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",display:"flex",justifyContent:"space-between",alignItems:"flex-start",animation:"slideIn 0.3s ease-out"},children:[J.jsxs("div",{children:[J.jsx("div",{style:{fontWeight:"600",marginBottom:"4px"},children:le.title}),J.jsx("div",{style:{fontSize:"14px",opacity:.9},children:le.message})]}),J.jsx("button",{type:"button",onClick:()=>X(le.id),style:{background:"none",border:"none",color:"white",cursor:"pointer",fontSize:"18px",padding:"0",marginLeft:"12px",opacity:.7},children:"×"})]},le.id))}),J.jsxs("div",{style:{marginBottom:"20px",padding:"20px",border:"1px solid #ddd",borderRadius:"8px",background:"#f8fafc"},children:[J.jsxs("div",{onClick:()=>P(!$),style:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",marginBottom:$?0:"20px"},children:[J.jsx("h3",{style:{margin:0,color:"#333"},children:"Wallet Management"}),J.jsx("span",{style:{fontSize:"18px",color:"#666",transform:$?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.2s ease-in-out"},children:"▼"})]}),!$&&J.jsxs(J.Fragment,{children:[J.jsx("div",{style:{marginBottom:"20px"},children:J.jsx("button",{type:"button",onClick:ue,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"})}),R.length>0&&J.jsxs("div",{style:{marginBottom:"20px"},children:[J.jsx("h4",{style:{margin:"0 0 10px 0",color:"#333"},children:"Available Wallets:"}),J.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:R.map(le=>J.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"10px",border:(T==null?void 0:T.id)===le.id?"2px solid #19b17b":"1px solid #ddd",borderRadius:"6px",background:(T==null?void 0:T.id)===le.id?"#f0fdf4":"white"},children:[J.jsx("input",{type:"radio",name:"selectedWallet",checked:(T==null?void 0:T.id)===le.id,onChange:()=>_(le),style:{margin:0}}),J.jsx("span",{style:{fontSize:"14px",fontFamily:"monospace",color:"#666",flex:"1"},children:le.name}),J.jsx("span",{style:{fontSize:"14px",fontFamily:"monospace",color:"#666",flex:"2"},children:le.address}),J.jsx("button",{type:"button",onClick:()=>Q(le.id),style:{padding:"4px 8px",background:"#ef4444",color:"white",border:"none",borderRadius:"4px",cursor:"pointer",fontSize:"12px"},children:"Remove"})]},le.id))})]})]})]}),T&&J.jsxs("div",{style:{marginBottom:"20px",padding:"20px",border:"1px solid #ddd",borderRadius:"8px",background:"#fef7ff"},children:[J.jsxs("div",{onClick:()=>ne(!Y),style:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",marginBottom:Y?0:"20px"},children:[J.jsx("h3",{style:{margin:0,color:"#333"},children:"Account Commands"}),J.jsx("span",{style:{fontSize:"18px",color:"#666",transform:Y?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.2s ease-in-out"},children:"▼"})]}),!Y&&J.jsxs(J.Fragment,{children:[J.jsxs("div",{style:{marginBottom:"20px"},children:[J.jsx("label",{style:{display:"block",marginBottom:"10px",fontWeight:"600",fontSize:"16px"},children:"What would you like to do?"}),J.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:[J.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"12px",border:L==="create"?"2px solid #19b17b":"1px solid #ddd",borderRadius:"6px",background:L==="create"?"#f0fdf4":"white",cursor:"pointer"},onClick:()=>z("create"),children:[J.jsx("input",{type:"radio",name:"action",checked:L==="create",onChange:()=>z("create"),style:{margin:0}}),J.jsxs("div",{style:{flex:"1"},children:[J.jsx("div",{style:{fontWeight:"600",marginBottom:"4px"},children:"1. Create new account"}),J.jsx("div",{style:{fontSize:"14px",color:"#666",fontStyle:"italic"},children:"Can only create if not linked to any account"})]})]}),J.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"12px",border:L==="link"?"2px solid #3b82f6":"1px solid #ddd",borderRadius:"6px",background:L==="link"?"#eff6ff":"white",cursor:"pointer"},onClick:()=>z("link"),children:[J.jsx("input",{type:"radio",name:"action",checked:L==="link",onChange:()=>z("link"),style:{margin:0}}),J.jsxs("div",{style:{flex:"1"},children:[J.jsx("div",{style:{fontWeight:"600",marginBottom:"4px"},children:"2. Link Account"}),J.jsx("div",{style:{fontSize:"14px",color:"#666",fontStyle:"italic"},children:"Only Account Primary can do this Action"})]})]}),J.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"12px",border:L==="unlink-other"?"2px solid #f59e0b":"1px solid #ddd",borderRadius:"6px",background:L==="unlink-other"?"#fffbeb":"white",cursor:"pointer"},onClick:()=>z("unlink-other"),children:[J.jsx("input",{type:"radio",name:"action",checked:L==="unlink-other",onChange:()=>z("unlink-other"),style:{margin:0}}),J.jsxs("div",{style:{flex:"1"},children:[J.jsx("div",{style:{fontWeight:"600",marginBottom:"4px"},children:"3. Unlink Account"}),J.jsx("div",{style:{fontSize:"14px",color:"#666",fontStyle:"italic"},children:"Only Account Primary can do this Action"})]})]}),J.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"12px",border:L==="unlink-self"?"2px solid #ef4444":"1px solid #ddd",borderRadius:"6px",background:L==="unlink-self"?"#fef2f2":"white",cursor:"pointer"},onClick:()=>z("unlink-self"),children:[J.jsx("input",{type:"radio",name:"action",checked:L==="unlink-self",onChange:()=>z("unlink-self"),style:{margin:0}}),J.jsxs("div",{style:{flex:"1"},children:[J.jsx("div",{style:{fontWeight:"600",marginBottom:"4px"},children:"4. Unlink Self"}),J.jsx("div",{style:{fontSize:"14px",color:"#666",fontStyle:"italic"},children:"Unlink self from account"})]})]})]})]}),L&&J.jsxs("div",{style:{marginTop:"20px",padding:"20px",background:"#f8fafc",borderRadius:"8px",border:"1px solid #e2e8f0"},children:[L==="create"&&J.jsxs("div",{children:[J.jsx("h4",{style:{margin:"0 0 15px 0",color:"#333"},children:"Create New Account"}),J.jsx("p",{style:{margin:"0 0 15px 0",color:"#666",fontSize:"14px"},children:"This will create a new account with your selected wallet as the primary address."}),J.jsx("button",{type:"button",onClick:j,disabled:te,style:{padding:"10px 20px",background:te?"#ccc":"linear-gradient(45deg, #19b17b, #022418)",color:"white",border:"none",borderRadius:"6px",cursor:te?"not-allowed":"pointer",fontWeight:"600",fontSize:"14px"},children:te?"Creating...":"Create Account"})]}),L==="link"&&J.jsxs("div",{children:[J.jsx("h4",{style:{margin:"0 0 15px 0",color:"#333"},children:"Link Account"}),J.jsx("p",{style:{margin:"0 0 15px 0",color:"#666",fontSize:"14px"},children:"Link a wallet to an existing account. You must be the primary address of the account, and the wallet to link must have a private key."}),J.jsxs("div",{style:{marginBottom:"15px"},children:[J.jsx("label",{style:{display:"block",marginBottom:"5px",fontWeight:"600"},children:"Account ID:"}),J.jsxs("select",{value:O||"",onChange:le=>re(le.target.value?parseInt(le.target.value):null),style:{padding:"8px",border:"1px solid #ddd",borderRadius:"4px",width:"200px"},children:[J.jsx("option",{value:"",children:"-- Select Account ID --"}),w.map(le=>J.jsxs("option",{value:le,children:["Account ",le]},le))]})]}),J.jsxs("div",{style:{marginBottom:"15px"},children:[J.jsx("label",{style:{display:"block",marginBottom:"5px",fontWeight:"600"},children:"Wallet to Link:"}),J.jsxs("select",{value:(he==null?void 0:he.id)||"",onChange:le=>{const b=R.find(g=>g.id===le.target.value);W(b||null)},style:{padding:"8px",border:"1px solid #ddd",borderRadius:"4px",width:"300px"},children:[J.jsx("option",{value:"",children:"-- Select a wallet to link --"}),R.filter(le=>le.id!==(T==null?void 0:T.id)).map(le=>J.jsxs("option",{value:le.id,children:[le.name," (",le.address,")"]},le.id))]})]}),J.jsx("button",{type:"button",onClick:pe,disabled:te||!O||!he,style:{padding:"10px 20px",background:te||!O||!he?"#ccc":"linear-gradient(45deg, #3b82f6, #1e3a8a)",color:"white",border:"none",borderRadius:"6px",cursor:te||!O||!he?"not-allowed":"pointer",fontWeight:"600",fontSize:"14px"},children:te?"Linking...":"Link Wallet"})]}),L==="unlink-other"&&J.jsxs("div",{children:[J.jsx("h4",{style:{margin:"0 0 15px 0",color:"#333"},children:"Unlink Account"}),J.jsx("p",{style:{margin:"0 0 15px 0",color:"#666",fontSize:"14px"},children:"Unlink a specific address from an account. You must be the primary address of the account."}),J.jsxs("div",{style:{marginBottom:"15px"},children:[J.jsx("label",{style:{display:"block",marginBottom:"5px",fontWeight:"600"},children:"Account ID:"}),J.jsxs("select",{value:O||"",onChange:le=>re(le.target.value?parseInt(le.target.value):null),style:{padding:"8px",border:"1px solid #ddd",borderRadius:"4px",width:"200px"},children:[J.jsx("option",{value:"",children:"-- Select Account ID --"}),w.map(le=>J.jsxs("option",{value:le,children:["Account ",le]},le))]})]}),J.jsxs("div",{style:{marginBottom:"15px"},children:[J.jsx("label",{style:{display:"block",marginBottom:"5px",fontWeight:"600"},children:"Address to Unlink:"}),J.jsx("input",{type:"text",value:de,onChange:le=>Ae(le.target.value),placeholder:"Enter address to unlink",style:{padding:"8px",border:"1px solid #ddd",borderRadius:"4px",width:"300px"}})]}),J.jsx("button",{type:"button",onClick:V,disabled:te||!O||!de.trim(),style:{padding:"10px 20px",background:te||!O||!de.trim()?"#ccc":"linear-gradient(45deg, #f59e0b, #92400e)",color:"white",border:"none",borderRadius:"6px",cursor:te||!O||!de.trim()?"not-allowed":"pointer",fontWeight:"600",fontSize:"14px"},children:te?"Unlinking...":"Unlink Address"})]}),L==="unlink-self"&&J.jsxs("div",{children:[J.jsx("h4",{style:{margin:"0 0 15px 0",color:"#333"},children:"Unlink Self"}),J.jsx("p",{style:{margin:"0 0 15px 0",color:"#666",fontSize:"14px"},children:"Unlink yourself from an account. This will remove your address from the account."}),J.jsxs("div",{style:{marginBottom:"15px"},children:[J.jsx("label",{style:{display:"block",marginBottom:"5px",fontWeight:"600"},children:"Account ID:"}),J.jsxs("select",{value:O||"",onChange:le=>re(le.target.value?parseInt(le.target.value):null),style:{padding:"8px",border:"1px solid #ddd",borderRadius:"4px",width:"200px"},children:[J.jsx("option",{value:"",children:"-- Select Account ID --"}),w.map(le=>J.jsxs("option",{value:le,children:["Account ",le]},le))]})]}),J.jsx("button",{type:"button",onClick:k,disabled:te||!O,style:{padding:"10px 20px",background:te||!O?"#ccc":"linear-gradient(45deg, #ef4444, #7f1d1d)",color:"white",border:"none",borderRadius:"6px",cursor:te||!O?"not-allowed":"pointer",fontWeight:"600",fontSize:"14px"},children:te?"Unlinking...":"Unlink Self"})]})]})]})]}),J.jsxs("div",{className:"addresses-table-wrapper",children:[J.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"15px"},children:[J.jsx("h3",{style:{margin:0,color:"#333"},children:"Addresses"}),J.jsx("div",{className:"table-controls",children:J.jsxs("label",{children:["Rows per page:",J.jsxs("select",{value:l,onChange:N,children:[J.jsx("option",{value:10,children:"10"}),J.jsx("option",{value:20,children:"20"}),J.jsx("option",{value:50,children:"50"})]})]})})]}),r&&J.jsx("p",{children:"Loading..."}),s&&J.jsx("p",{className:"error",children:s}),!r&&!s&&J.jsxs(J.Fragment,{children:[J.jsxs("table",{className:"addresses-table",children:[J.jsx("thead",{children:J.jsxs("tr",{children:[J.jsx("th",{children:"Account ID"}),J.jsx("th",{children:"Addresses"})]})}),J.jsx("tbody",{children:G.map((le,b)=>J.jsxs("tr",{className:le.hasPrimaryAddress?"has-primary-address":"",children:[J.jsx("td",{className:"account-id-cell",children:J.jsx("div",{className:"account-id-content",children:le.account_id??"No Account ID"})}),J.jsx("td",{className:"addresses-cell",children:le.addresses.map((g,m)=>J.jsxs("div",{className:`address-item ${g===le.primaryAddress?"primary-address":""}`,title:g===le.primaryAddress?`${g} (Primary)`:g,children:[g,g===le.primaryAddress&&J.jsx("span",{className:"primary-badge",children:"Primary"})]},g))})]},le.account_id??`null-${b}`))})]}),J.jsxs("div",{className:"pagination-controls",children:[J.jsx("button",{type:"button",onClick:ce,disabled:p===0,children:"First"}),J.jsx("button",{type:"button",onClick:Z,disabled:p===0,children:"Previous"}),J.jsx("button",{type:"button",onClick:K,disabled:!x||e.length<l,children:"Next"})]})]})]}),G.length===0&&J.jsx("div",{className:"no-addresses",children:J.jsx("div",{className:"no-data-text",children:"No addresses found"})}),J.jsx("style",{children:`
133
+ @keyframes slideIn {
134
+ from {
135
+ transform: translateX(100%);
136
+ opacity: 0;
137
+ }
138
+ to {
139
+ transform: translateX(0);
140
+ opacity: 1;
141
+ }
142
+ }
143
+ `})]})}function Qb({latestBlock:e,isConnected:t}){const[r,o]=_e.useState(!1),[s,c]=_e.useState(!1),[l,f]=_e.useState(!1),[p,h]=_e.useState(!1),A=()=>{o(!0)},v=()=>{o(!1)},x=()=>{c(!0)},S=()=>{c(!1)},R=()=>{f(!0)},U=()=>{f(!1)},T=()=>{h(!0)},_=()=>{h(!1)};return J.jsxs(J.Fragment,{children:[J.jsxs("header",{className:"header",children:[J.jsx("h1",{className:"title",children:"Paima Explorer"}),J.jsxs("div",{className:"header-right",children:[J.jsx("button",{type:"button",className:"batcher-api-button",onClick:A,children:"Batcher API"}),J.jsx("button",{type:"button",className:"node-api-button",onClick:x,children:"Paima Engine Node API"}),J.jsx("button",{type:"button",className:"documentation-button",onClick:R,children:"Documentation"}),J.jsx("button",{type:"button",className:"addresses-button",onClick:T,children:"Addresses"}),J.jsxs("div",{className:"block-info",children:[J.jsx("span",{children:"Latest Block:"}),J.jsx("span",{id:"latest-block",style:{backgroundColor:t?"rgba(76, 175, 80, 0.1)":"rgba(244, 67, 54, 0.1)",color:t?"#4caf50":"#f44336"},children:t?e.toLocaleString():"Connection Error"})]})]})]}),J.jsx(Uc,{isOpen:r,onClose:v,title:"Batcher API Documentation",className:"api",url:HC,children:J.jsx("div",{className:"documentation-content",children:J.jsx("iframe",{src:HC,className:"documentation-iframe",title:"Batcher API Documentation"})})}),J.jsx(Uc,{isOpen:s,onClose:S,title:"Paima Engine Node API Documentation",className:"api",url:zC,children:J.jsx("div",{className:"documentation-content",children:J.jsx("iframe",{src:zC,className:"documentation-iframe",title:"Paima Engine Node API Documentation"})})}),J.jsx(Uc,{className:"docs",isOpen:l,onClose:U,title:"Documentation",url:GC,children:J.jsx("div",{className:"documentation-content",children:J.jsx("iframe",{src:GC,className:"documentation-iframe",title:"Documentation"})})}),J.jsx(Uc,{className:"addresses",isOpen:p,onClose:_,title:"Addresses",children:J.jsx(bV,{})})]})}function xV(e){return e.toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})}function vV({block:e,isNew:t=!1}){const[r,o]=_e.useState(!1),s=async()=>{try{await navigator.clipboard.writeText(e.hash),o(!0),setTimeout(()=>o(!1),300),console.log(`📋 Copied to clipboard: ${e.hash}`)}catch(c){console.error("Failed to copy to clipboard:",c)}};return J.jsxs("div",{className:`block-item ${t?"new-block":""}`,onClick:s,style:{backgroundColor:r?"rgba(76, 175, 80, 0.2)":void 0,cursor:"pointer"},children:[J.jsxs("div",{className:"block-header",children:[J.jsxs("div",{className:"block-number",children:["Block #",e.number.toLocaleString()]}),J.jsx("div",{className:"block-timestamp",children:xV(e.timestamp)})]}),J.jsx("div",{className:"block-hash",children:e.hash})]})}function EV({title:e,blockTime:t,blocks:r,isMainColumn:o=!1,newBlockIndex:s}){const c=r.filter((l,f,p)=>f===p.findIndex(h=>h.number===l.number&&h.hash===l.hash));return J.jsxs("div",{className:`row ${o?"main-row":""}`,children:[J.jsxs("h2",{className:"row-title",children:[e,t?` - Block Time: ${t}`:""]}),J.jsx("div",{className:"blocks-list",children:c.length===0?J.jsx("div",{className:"block-item placeholder",children:"No Blocks Fetched"}):c.map((l,f)=>J.jsx(vV,{block:l,isNew:s===f},`${f}-${l.number}-${l.hash}`))})]})}function wV(e,t){if(t.blockTime)return`${t.blockTime/1e3}s`}function JR({chainConfigs:e,newBlockIndices:t}){return J.jsx("div",{className:"rows-container",children:Object.entries(e).map(([r,o])=>{const c=(o.type||"").toUpperCase()==="CARDANO"?[]:o.blocks;return J.jsx(EV,{title:o.name,blockTime:wV(r,o),blocks:c,isMainColumn:r==="paima",newBlockIndex:t[r]},r)})})}function IV(e,t){if(e==null)return"";if(t==="inputs"&&typeof e=="string")try{const r=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(r,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 r=BigInt(e);return t&&t.toLowerCase().includes("balance")?`${(Number(r)/Math.pow(10,18)).toFixed(6)} ETH`:r.toString()}return e.toString()}function SV({title:e,data:t,pagination:r,onPrev:o,onNext:s,onFirst:c,onLimitChange:l}){const f=t&&t.rows&&t.fields&&t.rows.length>0,p=(t==null?void 0:t.fields)||[],h=(t==null?void 0:t.rows)||[],A=!!r&&r.hasMore&&h.length>=r.limit,v=!!r&&r.currentPage>0,x=!r||!v&&!A;return J.jsxs("div",{className:`primitive-table-container ${h.length>6?"has-scroll":""}`,children:[J.jsx("h3",{className:"primitive-table-title",children:e}),f?J.jsxs("table",{className:"primitive-table",children:[J.jsx("thead",{children:J.jsx("tr",{children:p.map(S=>J.jsx("th",{children:S.name.replace(/_/g," ").toUpperCase()},S.name))})}),J.jsx("tbody",{children:h.slice().reverse().map((S,R)=>J.jsx("tr",{children:p.map(U=>{const T=S[U.name],_=IV(T,U.name),M=T?T.toString():"";return J.jsx("td",{dangerouslySetInnerHTML:{__html:_},title:M.length>30?M:void 0},U.name)})},R))})]}):J.jsx("div",{className:"table-error",children:"No data available"}),r&&!x&&J.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginTop:8},children:J.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[J.jsx("button",{type:"button",onClick:c,disabled:!v,style:{padding:"6px 10px",borderRadius:6,border:"1px solid #ddd",background:v?"white":"#f3f4f6",cursor:v?"pointer":"not-allowed"},children:"First"}),J.jsx("button",{type:"button",onClick:o,disabled:!v,style:{padding:"6px 10px",borderRadius:6,border:"1px solid #ddd",background:v?"white":"#f3f4f6",cursor:v?"pointer":"not-allowed"},children:"Prev"}),J.jsx("button",{type:"button",onClick:s,disabled:!A,style:{padding:"6px 10px",borderRadius:6,border:"1px solid #ddd",background:A?"white":"#f3f4f6",cursor:A?"pointer":"not-allowed"},children:"Next"})]})})]})}function Kb({title:e,tables:t,isLoading:r=!1,children:o,pagination:s,onPrev:c,onNext:l,onFirst:f,onLimitChange:p}){const h=Object.entries(t);return J.jsxs("div",{className:"tables-section",children:[J.jsx("h2",{className:"section-title",children:e}),o,J.jsx("div",{className:"primitive-tables",children:h.length===0?J.jsxs("div",{className:"table-error",children:["No ",e.toLowerCase()," configured"]}):h.map(([A,v])=>J.jsx(SV,{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:p?x=>p(A,x):void 0},A))})]})}const CV={EVM:0};async function OV(e,t){const r=Si(t.privateKey),o=zc({account:r,chain:Qc,transport:Gc()}),s=Date.now().toString(),c=r.address,l=CV.EVM,f=n6(null,s,c,l,e),p=await o.signMessage({message:f});return{addressType:l,userAddress:c,userSignature:p,conciseInput:e,millisecondTimestamp:s}}async function FV(e){const t=await fetch(x_,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({data:e})});if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);return await t.json()}async function RV(e,t){console.log("🚀 Creating signed input for:",e);const r=await OV(e,t);console.log("✅ Signed input created:",{...r,userSignature:r.userSignature.slice(0,10)+"..."}),console.log("📤 Sending to batcher...");const o=await FV(r);return console.log("🎉 Batcher response:",o),o}async function BV(){try{const e=await fetch(Oz);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]=_e.useState(""),[r,o]=_e.useState({}),[s,c]=_e.useState(!1),[l,f]=_e.useState(null),[p,h]=_e.useState([]),[A,v]=_e.useState(!0),[x,S]=_e.useState({}),[R,U]=_e.useState(!0),T=(B,L,z)=>{const H=Date.now(),ie={id:H,type:B,title:L,message:z};h(de=>[...de,ie]),setTimeout(()=>{h(de=>de.filter(Ae=>Ae.id!==H))},5e3)};_e.useEffect(()=>{(async()=>{try{U(!0);const L=await BV();S(L)}catch{T("error","Grammar Error","Failed to load grammar from server")}finally{U(!1)}})()},[]);const _=Object.keys(x),M=()=>{const B=TB(),L=Si(B),z={privateKey:B,address:L.address};f(z),T("success","Wallet Generated",`New wallet created: ${L.address.slice(0,6)}...${L.address.slice(-4)}`)},D=B=>{h(L=>L.filter(z=>z.id!==B))},$=B=>{t(B),o({})},P=(B,L)=>{o(z=>({...z,[B]:L}))},Y=()=>{if(!e)return null;const B=[e],L=x[e];for(const[z,H]of L){const ie=r[z];if(ie!==void 0&&ie!=="")if(H.type==="integer")B.push(parseInt(ie)||0);else if(H.type==="object")try{B.push(typeof ie=="string"?JSON.parse(ie):ie)}catch{B.push(ie)}else B.push(ie)}return B},ne=(B,L)=>{const z=r[B]||"";return L.type==="integer"?J.jsx("input",{type:"number",value:z,onChange:H=>P(B,H.target.value),placeholder:`Enter ${B}`,style:{padding:"8px",border:"1px solid #ccc",borderRadius:"4px",width:"200px"}}):L.type==="string"?J.jsx("input",{type:"text",value:z,onChange:H=>P(B,H.target.value),placeholder:`Enter ${B}`,style:{padding:"8px",border:"1px solid #ccc",borderRadius:"4px",width:"200px"}}):L.type==="object"?J.jsx("textarea",{value:typeof z=="string"?z:JSON.stringify(z,null,2),onChange:H=>P(B,H.target.value),placeholder:`Enter ${B} as JSON object`,rows:3,style:{padding:"8px",border:"1px solid #ccc",borderRadius:"4px",width:"300px",fontFamily:"monospace"}}):J.jsx("input",{type:"text",value:z,onChange:H=>P(B,H.target.value),placeholder:`Enter ${B}`,style:{padding:"8px",border:"1px solid #ccc",borderRadius:"4px",width:"200px"}})},te=async()=>{if(!e){T("error","Missing Type","Please select a type");return}if(!l){T("error","No Wallet","Please generate a wallet first");return}const B=Y();if(!B){T("error","Invalid Input","Failed to build JSON array");return}c(!0);try{const L=JSON.stringify(B);await RV(L,l),T("success","Success!","Successfully sent to batcher! Check console for details."),o({})}catch(L){T("error","Batcher Error",`Error sending to batcher: ${L instanceof Error?L.message:"Unknown error"}`)}finally{c(!1)}};return J.jsxs("div",{style:{marginBottom:"20px",padding:"20px",border:"1px solid #ddd",borderRadius:"8px",position:"relative"},children:[J.jsx("div",{style:{position:"fixed",top:"20px",right:"20px",zIndex:1e3,display:"flex",flexDirection:"column",gap:"10px"},children:p.map(B=>J.jsxs("div",{style:{background:B.type==="success"?"#10b981":B.type==="error"?"#ef4444":"#3b82f6",color:"white",padding:"12px 16px",borderRadius:"8px",minWidth:"300px",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",display:"flex",justifyContent:"space-between",alignItems:"flex-start",animation:"slideIn 0.3s ease-out"},children:[J.jsxs("div",{children:[J.jsx("div",{style:{fontWeight:"600",marginBottom:"4px"},children:B.title}),J.jsx("div",{style:{fontSize:"14px",opacity:.9},children:B.message})]}),J.jsx("button",{onClick:()=>D(B.id),style:{background:"none",border:"none",color:"white",cursor:"pointer",fontSize:"18px",padding:"0",marginLeft:"12px",opacity:.7},children:"×"})]},B.id))}),J.jsxs("div",{onClick:()=>v(!A),style:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",marginTop:0,marginBottom:A?0:"20px"},children:[J.jsx("h3",{style:{margin:0,color:"#333"},children:"Batcher Input"}),J.jsx("span",{style:{fontSize:"18px",color:"#666",transform:A?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.2s ease-in-out"},children:"▼"})]}),!A&&J.jsxs(J.Fragment,{children:[R&&J.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"40px",color:"#666"},children:J.jsxs("div",{style:{textAlign:"center"},children:[J.jsx("div",{style:{fontSize:"16px",marginBottom:"10px"},children:"Loading grammar..."}),J.jsx("div",{style:{fontSize:"14px",opacity:.8},children:"Fetching available input types from server"})]})}),!R&&J.jsxs(J.Fragment,{children:[J.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"20px",padding:"15px",background:"#f8fafc",borderRadius:"6px",border:"1px solid #e2e8f0"},children:[J.jsx("button",{onClick:M,style:{padding:"10px 16px",background:"linear-gradient(45deg, #19b17b, #022418)",color:"white",border:"none",borderRadius:"6px",cursor:"pointer",fontWeight:"600",fontSize:"14px"},children:"Generate new EVM Wallet"}),J.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[J.jsx("span",{style:{fontSize:"14px",color:"#64748b",fontWeight:"500"},children:"Current Address:"}),J.jsx("span",{style:{fontSize:"14px",fontFamily:"monospace",background:l?"#e0f2fe":"#fef3c7",padding:"4px 8px",borderRadius:"4px",color:l?"#0369a1":"#92400e",border:`1px solid ${l?"#bae6fd":"#fde68a"}`},children:l?`${l.address.slice(0,6)}...${l.address.slice(-4)}`:"No wallet generated"})]})]}),J.jsxs("div",{style:{display:"flex",gap:"30px",alignItems:"flex-start"},children:[J.jsx("div",{style:{flex:"0 0 300px"},children:J.jsxs("div",{style:{marginBottom:"15px"},children:[J.jsx("label",{style:{display:"block",marginBottom:"25px",fontWeight:"600"},children:"Select Type:"}),J.jsxs("select",{value:e,onChange:B=>$(B.target.value),disabled:s,style:{padding:"8px",border:"2px solid #19b17b",borderRadius:"4px",width:"100%"},children:[J.jsx("option",{value:"",children:"-- Select a type --"}),_.map(B=>J.jsx("option",{value:B,children:B.charAt(0).toUpperCase()+B.slice(1)},B))]})]})}),e&&J.jsx("div",{style:{flex:"1",minWidth:"0"},children:J.jsxs("div",{style:{marginBottom:"15px"},children:[J.jsxs("label",{style:{display:"block",marginBottom:"5px",fontWeight:"600"},children:["Parameters for ",e,":"]}),J.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"15px",alignItems:"flex-end"},children:x[e].map(([B,L])=>J.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[J.jsxs("label",{style:{marginBottom:"5px",fontWeight:"500",fontSize:"14px"},children:[B," (",L.type,"):"]}),ne(B,L)]},B))})]})})]}),e&&J.jsxs("div",{style:{marginTop:"20px",marginBottom:"15px"},children:[J.jsx("label",{style:{display:"block",marginBottom:"5px",fontWeight:"500"},children:"Preview JSON Array:"}),J.jsx("pre",{style:{background:"#f5f5f5",padding:"10px",borderRadius:"4px",border:"1px solid #ddd",fontSize:"12px",overflow:"auto"},children:JSON.stringify(Y(),null,2)})]}),J.jsx("button",{onClick:te,disabled:s||!e||!l,style:{padding:"10px 20px",background:e&&l?"linear-gradient(45deg, #19b17b, #022418)":"#ccc",color:"white",border:"none",borderRadius:"8px",cursor:s||!e||!l?"not-allowed":"pointer",fontWeight:"600",opacity:s?.6:1},children:s?"Sending...":"Send to Batcher"}),J.jsx("style",{children:`
144
+ @keyframes slideIn {
145
+ from {
146
+ transform: translateX(100%);
147
+ opacity: 0;
148
+ }
149
+ to {
150
+ transform: translateX(0);
151
+ opacity: 1;
152
+ }
153
+ }
154
+ `})]})]})]})}function WR({isOpen:e,onClose:t,title:r,tableNames:o,selectedNames:s,onApply:c}){const l=_e.useMemo(()=>new Set(s),[s]),[f,p]=_e.useState(l);_e.useEffect(()=>{p(new Set(s))},[s,e]);const h=S=>{p(R=>{const U=new Set(R);return U.has(S)?U.delete(S):U.add(S),U})},A=()=>p(new Set(o)),v=()=>p(new Set),x=()=>{c(Array.from(f)),t()};return J.jsx(Uc,{isOpen:e,onClose:t,title:r,className:"table-selector",children:J.jsxs("div",{className:"table-selector-content",children:[J.jsxs("div",{style:{display:"flex",gap:8,marginBottom:12},children:[J.jsx("button",{type:"button",className:"batcher-api-button",onClick:A,children:"Select All"}),J.jsx("button",{type:"button",className:"batcher-api-button",onClick:v,children:"Deselect All"})]}),J.jsx("ul",{children:o.map(S=>J.jsx("li",{children:J.jsxs("label",{style:{display:"flex",alignItems:"center",gap:8},children:[J.jsx("input",{type:"checkbox",checked:f.has(S),onChange:()=>h(S)}),S]})},S))}),J.jsxs("div",{style:{display:"flex",gap:8,marginTop:12},children:[J.jsx("button",{type:"button",className:"batcher-api-button",onClick:x,children:"Apply"}),J.jsx("button",{type:"button",className:"documentation-button",onClick:t,children:"Cancel"})]})]})})}function Vb(){return"0x"+Array.from({length:64},()=>Math.floor(Math.random()*16).toString(16)).join("")}let eB=1e3;function _V(){const[e,t]=_e.useState({}),[r,o]=_e.useState(!0),[s,c]=_e.useState(null),[l,f]=_e.useState({}),p=_e.useRef(null),h=_e.useRef(!1),A=_e.useRef(()=>{}),v=_e.useRef(!1),x=_e.useRef(!1),S=_e.useRef(null),R=_e.useCallback(async P=>{if(P!=="Paima")return;const Y=e[P];if(Y&&Y.rpcEndpoint&&Y.type==="EVM"&&!h.current){h.current=!0;try{const ne=await fetch(Y.rpcEndpoint,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jsonrpc:"2.0",method:"eth_blockNumber",params:[],id:1})});if(!ne.ok)throw new Error(`HTTP error! status: ${ne.status}`);const te=await ne.json();if(te.error)throw new Error(te.error.message);const B=parseInt(te.result,16);t(L=>{const z={...L},H=z[P];if(B>(H.latestBlockNumber||0)&&(H.previousLatestBlockNumber=H.latestBlockNumber||0,H.latestBlockNumber=B,H.isConnected=!0,H.previousLatestBlockNumber>0)){const ie=Vb(),Ae={number:B,hash:ie,timestamp:new Date};H.blocks.some(re=>re.number===B&&re.hash===ie)||(H.blocks.unshift(Ae),H.blocks.length>20&&(H.blocks=H.blocks.slice(0,20)),f(re=>({...re,[P]:0})),setTimeout(()=>{f(re=>({...re,[P]:void 0}))},500))}return z})}catch(ne){console.error(`Error fetching latest block for ${P}:`,ne),t(te=>({...te,[P]:{...te[P],isConnected:!1}}))}finally{h.current=!1}}},[e]);_e.useEffect(()=>{A.current=R},[R]);const U=_e.useCallback((P,Y=e)=>{const ne=Y[P];if(!ne)return;const te=ne.rpcEndpoint?ne.latestBlockNumber||0:ne.currentBlock++,B=Vb(),z={number:te,hash:B,timestamp:new Date};t(H=>{const ie={...H},de=ie[P];return de.blocks.some(O=>O.number===te)||(de.blocks.unshift(z),de.blocks.length>20&&(de.blocks=de.blocks.slice(0,20))),ie}),f(H=>({...H,[P]:0})),setTimeout(()=>{f(H=>({...H,[P]:void 0}))},250)},[e]),T=_e.useCallback(async()=>{o(!0),c(null);try{const P=await Iz();eB=P.Paima.blockTime??1e3,t(P),console.log("✅ Loaded chain configs from API:",P)}catch(P){const Y=P instanceof Error?P.message:"Unknown error";c(Y),console.error("❌ Failed to load chain configs, using fallback:",Y),t(A_)}finally{o(!1)}},[]),_=_e.useCallback(P=>{t(Y=>{const ne={...Y};return Object.keys(P).forEach(te=>{const B=ne[te];if(B&&!B.rpcEndpoint){const L=[];for(let z=-5;z<0;z++){const H=B.currentBlock+z,ie=Vb(),de=new Date(Date.now()+z*(B.blockTime??1e3));L.push({number:H,hash:ie,timestamp:de})}B.blocks=L.reverse(),B.currentBlock=B.currentBlock+1}}),ne})},[]);_e.useEffect(()=>{T()},[T]),_e.useEffect(()=>{r||v.current||Object.keys(e).length!==0&&(_(e),v.current=!0)},[r]),_e.useEffect(()=>{if(r||x.current||Object.keys(e).length===0)return;const P=[];return Object.keys(e).forEach(Y=>{const ne=e[Y];if(!ne.rpcEndpoint){const te=setInterval(()=>{U(Y)},ne.blockTime);P.push(te)}}),x.current=!0,()=>{P.forEach(Y=>clearInterval(Y)),x.current=!1}},[r]),_e.useEffect(()=>{if(console.log("🔄 Starting Paima RPC polling"),!r&&p.current==null)return A.current("Paima"),p.current=setInterval(()=>{A.current("Paima")},eB),()=>{p.current!=null&&(clearInterval(p.current),p.current=null)}},[r]),_e.useEffect(()=>{if(r||S.current!=null)return;const P=()=>{const te=Object.entries(e).filter(([L])=>L!=="Paima");let B=Number.POSITIVE_INFINITY;for(const[,L]of te)typeof L.blockTime=="number"&&L.blockTime>0&&L.blockTime<B&&(B=L.blockTime);return Number.isFinite(B)?Math.max(1e3,B):1e4},Y=async()=>{var te,B,L,z,H,ie,de,Ae,O;try{const re=await fetch(Sz);if(!re.ok)throw new Error(`block-heights HTTP ${re.status}`);const he=await re.json(),W=[];for(const[C,X]of Object.entries(e)){if(C==="Paima")continue;const ue=X.protocolName;if(!ue)continue;const Q=he.find(j=>j.protocol_name===ue);if(!(!Q||Q.synced_page==null))try{const j=await fetch(`${Tz}/${encodeURIComponent(ue)}/blocks?page=${Q.synced_page}`);if(!j.ok)throw new Error(`blocks HTTP ${j.status}`);const k=await j.json(),V=(te=k==null?void 0:k.blocks)==null?void 0:te[0];if(!V)continue;let pe=null,ye=null,G=null;if(X.type==="EVM")pe=Number(V.number),ye=V.hash,G=V.timestamp!=null?Number(V.timestamp)*1e3:null;else if(X.type==="MIDNIGHT"){const w=(B=V==null?void 0:V.header)==null?void 0:B.number,N=w?parseInt(w,16):void 0;pe=Number(V.height??(N!==void 0?N:void 0)),ye=V.hash??((L=V.header)==null?void 0:L.parentHash)??"",G=null}else X.type==="CARDANO"?(pe=Number(((H=(z=V.block)==null?void 0:z.header)==null?void 0:H.height)??((ie=V.header)==null?void 0:ie.height)),ye=((Ae=(de=V.block)==null?void 0:de.header)==null?void 0:Ae.hash)??((O=V.header)==null?void 0:O.hash)??"",G=Number(V.timestamp??0)):(pe=Number(V.blockNumber??Q.synced_page),ye=V.hash??"",G=V.timestamp!=null?Number(V.timestamp):null);pe!=null&&!Number.isNaN(pe)&&W.push({key:C,block:{number:pe,hash:ye??"",timestamp:G?new Date(G):new Date}})}catch{}}W.length>0&&t(C=>{const X={...C};for(const ue of W){const Q=X[ue.key];if(!Q||!ue.block)continue;Q.blocks.some(k=>k.number===ue.block.number)||(Q.blocks.unshift(ue.block),Q.blocks.length>20&&(Q.blocks=Q.blocks.slice(0,20)))}return X})}catch{}};Y();const ne=P();return console.log(`[Explorer] Engine block-heights polling interval resolved to ${ne} ms`),S.current=setInterval(Y,ne),()=>{S.current!=null&&(clearInterval(S.current),S.current=null)}},[r]);const M=e.Paima,D=(M==null?void 0:M.latestBlockNumber)||0,$=(M==null?void 0:M.isConnected)||!1;return{chainConfigs:e,newBlockIndices:l,latestBlock:D,isConnected:$,isLoadingConfig:r,configError:s}}function MV(){const[t,r]=_e.useState([]),[o,s]=_e.useState([]),[c,l]=_e.useState({}),[f,p]=_e.useState({}),[h,A]=_e.useState({}),[v,x]=_e.useState({}),[S,R]=_e.useState({}),[U,T]=_e.useState({}),[_,M]=_e.useState({}),D=_e.useRef(!1),$=_e.useRef([]),P=_e.useRef([]),Y=_e.useRef({}),ne=_e.useRef({}),te=_e.useRef({}),B=_e.useRef({}),L=_e.useRef(new Set),z=_e.useRef(new Set);_e.useEffect(()=>{$.current=t},[t]),_e.useEffect(()=>{P.current=o},[o]),_e.useEffect(()=>{Y.current=U},[U]),_e.useEffect(()=>{ne.current=_},[_]),_e.useEffect(()=>{te.current=v},[v]),_e.useEffect(()=>{B.current=S},[S]);const H=_e.useCallback(G=>G.map(w=>({name:w.column_name,dataTypeID:25})),[]),ie=_e.useCallback((G,w,N)=>{const K=Array.isArray(G)?G:[];let Z=[];return N&&N.length>0?Z=H(N):K.length>0&&(Z=Object.keys(K[0]).map(ce=>({name:ce,dataTypeID:25}))),{command:"SELECT",rowCount:K.length,rows:K,fields:Z}},[H]),de=_e.useCallback((G,w,N)=>{const K=Array.isArray(G)?G:[];let Z=[];return N&&N.length>0?Z=H(N):K.length>0&&(Z=Object.keys(K[0]).map(ce=>({name:ce,dataTypeID:25}))),{command:"SELECT",rowCount:K.length,rows:K,fields:Z}},[H]),Ae=_e.useCallback(async G=>{try{if(L.current.has(G))return null;const w=Y.current[G];if(w)return w;const N=await fetch(`${Rz}/${G}`);if(!N.ok){if(N.status===404)return console.log(`🚫 Schema for primitive ${G} not found (404)`),L.current.add(G),null;throw new Error(`HTTP error! status: ${N.status}`)}const K=await N.json();return console.log(`📋 Fetched schema for ${G}:`,K),K}catch(w){return console.error(`Error fetching schema for primitive ${G}:`,w),null}},[]),O=_e.useCallback(async G=>{try{const w=await fetch(`${Bz}/${G}`);if(!w.ok){if(w.status===404)return console.log(`🚫 Schema for table ${G} not found (404)`),null;throw new Error(`HTTP error! status: ${w.status}`)}const N=await w.json();return console.log(`📋 Fetched schema for ${G}:`,N),N}catch(w){return console.error(`Error fetching schema for table ${G}:`,w),null}},[]),re=_e.useCallback(async()=>{try{const G=await fetch(b_);if(!G.ok)throw new Error(`HTTP error! status: ${G.status}`);const w=await G.json();return console.log("📋 Fetched config:",w),w}catch(G){return console.error("Error fetching config:",G),null}},[]),he=_e.useCallback(async()=>{try{const G=await fetch(kC);if(!G.ok)throw new Error(`HTTP error! status: ${G.status}`);const w=await G.json();return console.log("📋 Fetched user table names:",w),w.map(N=>N.table_name)}catch(G){return console.error("Error fetching user table names:",G),[]}},[]),W=_e.useCallback(G=>{const w=[];return!G||!Array.isArray(G)?w:(G.forEach(N=>{N.primitives&&Array.isArray(N.primitives)&&N.primitives.forEach(K=>{K.primitive&&K.primitive.name&&K.primitive.type!=="evm-rpc-paima-l2"&&w.push(K.primitive.name)})}),[...new Set(w)])},[]),C=_e.useCallback(async(G,w,N)=>{try{if(z.current.has(G))return null;const K=N??{limit:20,cursors:[void 0],currentPage:0,hasMore:!1},Z=new URL(`${Cz}/${G}`);Z.searchParams.set("limit",String(K.limit));const ce=K.cursors[K.currentPage];ce&&Z.searchParams.set("after",ce);const le=await fetch(Z.toString());if(!le.ok){if(le.status===404)return console.log(`🚫 Primitive ${G} not found (404)`),z.current.add(G),null;throw new Error(`HTTP error! status: ${le.status}`)}const b=await le.json(),g=Array.isArray(b)?b:b.data??[],m=b.pagination;return m&&x(I=>{const ee=[...I[G].cursors];return m.nextCursor&&ee.length===I[G].currentPage+1&&ee.push(m.nextCursor),{...I,[G]:{...I[G],hasMore:m.hasMore,cursors:ee}}}),console.log(`📊 Fetched data for ${G}:`,g),ie(g,G,w)}catch(K){return console.error(`Error fetching primitive data for ${G}:`,K),null}},[ie]),X=_e.useCallback(async(G,w,N)=>{try{const K=N??{limit:20,cursors:[void 0],currentPage:0,hasMore:!1},Z=new URL(`${kC}/${G}`);Z.searchParams.set("limit",String(K.limit));const ce=K.cursors[K.currentPage];ce&&Z.searchParams.set("after",ce);const le=await fetch(Z.toString());if(!le.ok){if(le.status===404)return console.log(`🚫 Table ${G} not found (404)`),null;throw new Error(`HTTP error! status: ${le.status}`)}const b=await le.json();console.log(`📊 Fetched table data for ${G}:`,b);const g=b.data??[],m=b.pagination;return m&&R(I=>{const ee=[...I[G].cursors];return m.nextCursor&&ee.length===I[G].currentPage+1&&ee.push(m.nextCursor),{...I,[G]:{...I[G],hasMore:m.hasMore,cursors:ee}}}),de(g,G,w)}catch(K){return console.error(`Error fetching table data for ${G}:`,K),null}},[de]),ue=_e.useCallback(async()=>{try{const G=await fetch(Fz);if(!G.ok)throw new Error(`HTTP error! status: ${G.status}`);const N=(await G.json()).data??[];console.log("📊 Fetched scheduled data:",N);const K=[{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:N.length,rows:N,fields:K}}catch(G){return console.error("Error fetching scheduled data:",G),null}},[]),Q=_e.useCallback(async()=>{if(!($.current.length===0||!D.current))try{const G=$.current.map(async N=>{const K=Y.current[N],Z=te.current[N],ce=await C(N,K,Z);return{primitiveName:N,data:ce}}),w=await Promise.all(G);w.length>0&&l(N=>{const K={...N};return w.forEach(({primitiveName:Z,data:ce})=>{ce!==null&&(K[Z]=ce)}),K})}catch(G){console.error("Error refreshing primitive data:",G)}},[C]),j=_e.useCallback(async()=>{if(!(!D.current||P.current.length===0))try{const G=P.current.map(async N=>{const K=ne.current[N],Z=B.current[N],ce=await X(N,K,Z);return{tableName:N,data:ce}}),w=await Promise.all(G);w.length>0&&p(N=>{const K={...N};return w.forEach(({tableName:Z,data:ce})=>{ce!==null&&(K[Z]=ce)}),K})}catch(G){console.error("Error refreshing user table data:",G)}},[X]),k=_e.useCallback(async()=>{if(D.current)try{const G=await ue();G!==null&&A({scheduled_data:G})}catch(G){console.error("Error refreshing scheduled data:",G)}},[ue]),V=_e.useCallback(async()=>{console.log("📋 Initializing primitive tables...");try{const G=await re();if(!G){console.error("Failed to fetch config");return}const w=W(G);if(r(w),console.log("📊 Found primitives:",w),w.length===0){console.log("No primitives found in config");return}const N=w.map(async g=>{const m=await Ae(g);return{primitiveName:g,schema:m}}),K=await Promise.all(N),Z={};K.forEach(({primitiveName:g,schema:m})=>{m&&(Z[g]=m)}),T(Z),x(g=>{const m={...g};return w.forEach(I=>{m[I]||(m[I]={limit:20,cursors:[void 0],currentPage:0,hasMore:!1})}),m});const ce=w.map(async g=>{const m=Z[g],I=te.current[g]??{limit:20,cursors:[void 0],currentPage:0,hasMore:!1},ee=await C(g,m,I);return{primitiveName:g,data:ee}}),le=await Promise.all(ce),b={};le.forEach(({primitiveName:g,data:m})=>{b[g]=m}),l(b),console.log("✅ Primitive tables initialized")}catch(G){console.error("Error initializing primitive tables:",G)}},[re,W,Ae,C]),pe=_e.useCallback(async()=>{console.log("📋 Initializing state machine tables...");try{const G=await he();if(s(G),G.length===0){console.log("No user tables found");return}const w=G.map(async b=>{const g=await O(b);return{tableName:b,schema:g}}),N=await Promise.all(w),K={};N.forEach(({tableName:b,schema:g})=>{g&&(K[b]=g)}),M(K),R(b=>{const g={...b};return G.forEach(m=>{g[m]||(g[m]={limit:20,cursors:[void 0],currentPage:0,hasMore:!1})}),g});const Z=G.map(async b=>{const g=K[b],m=B.current[b]??{limit:20,cursors:[void 0],currentPage:0,hasMore:!1},I=await X(b,g||void 0,m);return{tableName:b,data:I}}),ce=await Promise.all(Z),le={};ce.forEach(({tableName:b,data:g})=>{le[b]=g}),p(le),console.log("✅ State machine tables initialized")}catch(G){console.error("Error initializing state machine tables:",G)}},[O,X,he]),ye=_e.useCallback(async()=>{console.log("📋 Initializing scheduled data...");try{const G=await ue();A({scheduled_data:G}),console.log("✅ Scheduled data initialized")}catch(G){console.error("Error initializing scheduled data:",G)}},[ue]);return _e.useEffect(()=>{let G,w,N;return(async()=>{await Promise.all([V(),pe(),ye()]),D.current=!0,G=setInterval(()=>{Q()},5e3),setTimeout(()=>{j(),w=setInterval(()=>{j()},5e3)},1500),setTimeout(()=>{k(),N=setInterval(()=>{k()},5e3)},3e3)})(),()=>{G&&clearInterval(G),w&&clearInterval(w),N&&clearInterval(N)}},[]),{primitiveData:c,userTableData:f,scheduledData:h,primitiveNames:t,userTableNames:o,refreshPrimitiveData:Q,refreshUserTableData:j,refreshScheduledData:k,primitivePagination:v,userTablePagination:S,setPrimitiveLimit:async(G,w)=>{const N={limit:w,cursors:[void 0],currentPage:0,hasMore:!1};x(ce=>({...ce,[G]:N}));const K=Y.current[G],Z=await C(G,K,N);l(ce=>({...ce,[G]:Z}))},nextPrimitivePage:async G=>{const w=te.current[G];if(!w||!w.hasMore)return;const N={...w,currentPage:w.currentPage+1};x(ce=>({...ce,[G]:N}));const K=Y.current[G],Z=await C(G,K,N);l(ce=>({...ce,[G]:Z}))},prevPrimitivePage:async G=>{const w=te.current[G];if(!w||w.currentPage===0)return;const N={...w,currentPage:w.currentPage-1};x(ce=>({...ce,[G]:N}));const K=Y.current[G],Z=await C(G,K,N);l(ce=>({...ce,[G]:Z}))},firstPrimitivePage:async G=>{const w=te.current[G];if(!w)return;const N={...w,cursors:[void 0],currentPage:0};x(ce=>({...ce,[G]:N}));const K=Y.current[G],Z=await C(G,K,N);l(ce=>({...ce,[G]:Z}))},setUserTableLimit:async(G,w)=>{const N={limit:w,cursors:[void 0],currentPage:0,hasMore:!1};R(ce=>({...ce,[G]:N}));const K=ne.current[G],Z=await X(G,K,N);p(ce=>({...ce,[G]:Z}))},nextUserTablePage:async G=>{const w=B.current[G];if(!w||!w.hasMore)return;const N={...w,currentPage:w.currentPage+1};R(ce=>({...ce,[G]:N}));const K=ne.current[G],Z=await X(G,K,N);p(ce=>({...ce,[G]:Z}))},prevUserTablePage:async G=>{const w=B.current[G];if(!w||w.currentPage===0)return;const N={...w,currentPage:w.currentPage-1};R(ce=>({...ce,[G]:N}));const K=ne.current[G],Z=await X(G,K,N);p(ce=>({...ce,[G]:Z}))},firstUserTablePage:async G=>{const w=B.current[G];if(!w)return;const N={...w,cursors:[void 0],currentPage:0};R(ce=>({...ce,[G]:N}));const K=ne.current[G],Z=await X(G,K,N);p(ce=>({...ce,[G]:Z}))}}}function DV(){const[e,t]=_e.useState([]),[r,o]=_e.useState([]),[s,c]=_e.useState(!1),[l,f]=_e.useState(!1),{chainConfigs:p,newBlockIndices:h,latestBlock:A,isConnected:v,isLoadingConfig:x,configError:S}=_V(),{primitiveData:R,userTableData:U,scheduledData:T,primitiveNames:_,userTableNames:M,primitivePagination:D,userTablePagination:$,nextPrimitivePage:P,prevPrimitivePage:Y,firstPrimitivePage:ne,setPrimitiveLimit:te,nextUserTablePage:B,prevUserTablePage:L,firstUserTablePage:z,setUserTableLimit:H}=MV();return _e.useEffect(()=>{_.length>0&&e.length===0&&t(_)},[_,e]),_e.useEffect(()=>{M.length>0&&r.length===0&&o([M[0]])},[M,r]),_e.useEffect(()=>{const ie=de=>{console.error("Unhandled promise rejection:",de.reason)};return globalThis.addEventListener("unhandledrejection",ie),()=>{globalThis.removeEventListener("unhandledrejection",ie)}},[]),_e.useEffect(()=>{const ie=de=>{de.key==="r"&&de.ctrlKey&&(de.preventDefault(),console.log("🔄 Manually refreshed (keyboard shortcut)"))};return document.addEventListener("keydown",ie),()=>{document.removeEventListener("keydown",ie)}},[]),x?J.jsxs("div",{className:"container",children:[J.jsx(Qb,{latestBlock:A,isConnected:v}),J.jsx("div",{style:{padding:"20px",textAlign:"center",fontSize:"18px",color:"#667eea"},children:"🔄 Loading chain configurations..."})]}):S?J.jsxs("div",{className:"container",children:[J.jsx(Qb,{latestBlock:A,isConnected:v}),J.jsxs("div",{style:{padding:"20px",textAlign:"center",fontSize:"16px",color:"#f44336",backgroundColor:"rgba(244, 67, 54, 0.1)",border:"1px solid rgba(244, 67, 54, 0.3)",borderRadius:"8px",margin:"20px"},children:["⚠️ Failed to load chain configurations: ",S,J.jsx("br",{}),J.jsx("small",{style:{color:"#666",marginTop:"8px",display:"block"},children:"Using fallback configuration. Some features may not work correctly."})]}),J.jsx(JR,{chainConfigs:p,newBlockIndices:h})]}):J.jsxs("div",{className:"container",children:[J.jsx(Qb,{latestBlock:A,isConnected:v}),J.jsx(JR,{chainConfigs:p,newBlockIndices:h}),J.jsxs(Kb,{title:"Primitive Data",tables:Object.fromEntries(Object.entries(R).filter(([ie])=>e.includes(ie))),pagination:D,onPrev:ie=>Y(ie),onNext:ie=>P(ie),onFirst:ie=>ne(ie),onLimitChange:(ie,de)=>te(ie,de),children:[J.jsx("div",{style:{display:"flex",gap:8,marginBottom:12},children:J.jsx("button",{type:"button",className:"batcher-api-button",onClick:()=>c(!0),children:"Select Primitives"})}),J.jsx(WR,{isOpen:s,onClose:()=>c(!1),title:"Select Primitives",tableNames:_,selectedNames:e,onApply:ie=>t(ie.length?ie:[_[0]].filter(Boolean))})]}),J.jsxs(Kb,{title:"State Machine Tables",tables:Object.fromEntries(Object.entries(U).filter(([ie])=>r.includes(ie))),pagination:$,onPrev:ie=>L(ie),onNext:ie=>B(ie),onFirst:ie=>z(ie),onLimitChange:(ie,de)=>H(ie,de),children:[J.jsx("div",{style:{display:"flex",gap:8,marginBottom:12},children:J.jsx("button",{type:"button",className:"batcher-api-button",onClick:()=>f(!0),children:"Select Tables"})}),J.jsx(WR,{isOpen:l,onClose:()=>f(!1),title:"Select Custom Tables",tableNames:M,selectedNames:r,onApply:ie=>o(ie.length?ie:[M[0]].filter(Boolean))}),J.jsx(TV,{})]}),J.jsx(Kb,{title:"Scheduled Data",tables:T})]})}E4.createRoot(document.getElementById("root")).render(J.jsx(_e.StrictMode,{children:J.jsx(DV,{})}));